var ML=Object.defineProperty;var AL=(e,t,r)=>t in e?ML(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var EL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ft=(e,t,r)=>(AL(e,typeof t!="symbol"?t+"":t,r),r);var Ree=EL((Or,kr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function mm(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i!!r[i.toLowerCase()]:i=>!!r[i]}function At(e){if(ye(e)){const t={};for(let r=0;r{if(r){const n=r.split(LL);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function de(e){let t="";if(Ue(e))t=e;else if(ye(e))for(let r=0;rmd(r,t))}const Ae=e=>Ue(e)?e:e==null?"":ye(e)||Ke(e)&&(e.toString===XS||!Le(e.toString))?JSON.stringify(e,jS,2):String(e),jS=(e,t)=>t&&t.__v_isRef?jS(e,t.value):Qo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:_d(t)?{[`Set(${t.size})`]:[...t.values()]}:Ke(t)&&!ye(t)&&!ZS(t)?String(t):t,mt={},Zo=[],sr=()=>{},NL=()=>!1,BL=/^on[^a-z]/,yd=e=>BL.test(e),ym=e=>e.startsWith("onUpdate:"),Kt=Object.assign,_m=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},FL=Object.prototype.hasOwnProperty,ze=(e,t)=>FL.call(e,t),ye=Array.isArray,Qo=e=>Du(e)==="[object Map]",_d=e=>Du(e)==="[object Set]",N0=e=>Du(e)==="[object Date]",Le=e=>typeof e=="function",Ue=e=>typeof e=="string",Zl=e=>typeof e=="symbol",Ke=e=>e!==null&&typeof e=="object",KS=e=>Ke(e)&&Le(e.then)&&Le(e.catch),XS=Object.prototype.toString,Du=e=>XS.call(e),$L=e=>Du(e).slice(8,-1),ZS=e=>Du(e)==="[object Object]",bm=e=>Ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ic=mm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bd=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},HL=/-(\w)/g,Sn=bd(e=>e.replace(HL,(t,r)=>r?r.toUpperCase():"")),zL=/\B([A-Z])/g,Ps=bd(e=>e.replace(zL,"-$1").toLowerCase()),wd=bd(e=>e.charAt(0).toUpperCase()+e.slice(1)),ac=bd(e=>e?`on${wd(e)}`:""),Ql=(e,t)=>!Object.is(e,t),oc=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},wm=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let B0;const WL=()=>B0||(B0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Dr;class VL{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Dr,!t&&Dr&&(this.index=(Dr.scopes||(Dr.scopes=[])).push(this)-1)}run(t){if(this.active){const r=Dr;try{return Dr=this,t()}finally{Dr=r}}}on(){Dr=this}off(){Dr=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},QS=e=>(e.w&Qi)>0,JS=e=>(e.n&Qi)>0,qL=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(f==="length"||f>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":ye(e)?bm(r)&&s.push(o.get("length")):(s.push(o.get(Ja)),Qo(e)&&s.push(o.get(gp)));break;case"delete":ye(e)||(s.push(o.get(Ja)),Qo(e)&&s.push(o.get(gp)));break;case"set":Qo(e)&&s.push(o.get(Ja));break}if(s.length===1)s[0]&&mp(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);mp(xm(l))}}function mp(e,t){const r=ye(e)?e:[...e];for(const n of r)n.computed&&$0(n);for(const n of r)n.computed||$0(n)}function $0(e,t){(e!==mn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const KL=mm("__proto__,__v_isRef,__isVue"),rC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zl)),XL=Cm(),ZL=Cm(!1,!0),QL=Cm(!0),H0=JL();function JL(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Qe(this);for(let a=0,o=this.length;a{e[t]=function(...r){Ls();const n=Qe(this)[t].apply(this,r);return Ds(),n}}),e}function Cm(e=!1,t=!1){return function(n,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?pD:sC:t?oC:aC).get(n))return n;const o=ye(n);if(!e&&o&&ze(H0,i))return Reflect.get(H0,i,a);const s=Reflect.get(n,i,a);return(Zl(i)?rC.has(i):KL(i))||(e||Fr(n,"get",i),t)?s:St(s)?o&&bm(i)?s:s.value:Ke(s)?e?Sd(s):ln(s):s}}const eD=nC(),tD=nC(!0);function nC(e=!1){return function(r,n,i,a){let o=r[n];if(us(o)&&St(o)&&!St(i))return!1;if(!e&&(!Oc(i)&&!us(i)&&(o=Qe(o),i=Qe(i)),!ye(r)&&St(o)&&!St(i)))return o.value=i,!0;const s=ye(r)&&bm(n)?Number(n)e,xd=e=>Reflect.getPrototypeOf(e);function Zu(e,t,r=!1,n=!1){e=e.__v_raw;const i=Qe(e),a=Qe(t);r||(t!==a&&Fr(i,"get",t),Fr(i,"get",a));const{has:o}=xd(i),s=n?Tm:r?Em:Jl;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function Qu(e,t=!1){const r=this.__v_raw,n=Qe(r),i=Qe(e);return t||(e!==i&&Fr(n,"has",e),Fr(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function Ju(e,t=!1){return e=e.__v_raw,!t&&Fr(Qe(e),"iterate",Ja),Reflect.get(e,"size",e)}function z0(e){e=Qe(e);const t=Qe(this);return xd(t).has.call(t,e)||(t.add(e),di(t,"add",e,e)),this}function W0(e,t){t=Qe(t);const r=Qe(this),{has:n,get:i}=xd(r);let a=n.call(r,e);a||(e=Qe(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?Ql(t,o)&&di(r,"set",e,t):di(r,"add",e,t),this}function V0(e){const t=Qe(this),{has:r,get:n}=xd(t);let i=r.call(t,e);i||(e=Qe(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&di(t,"delete",e,void 0),a}function G0(){const e=Qe(this),t=e.size!==0,r=e.clear();return t&&di(e,"clear",void 0,void 0),r}function ef(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Qe(o),l=t?Tm:e?Em:Jl;return!e&&Fr(s,"iterate",Ja),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function tf(e,t,r){return function(...n){const i=this.__v_raw,a=Qe(i),o=Qo(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?Tm:t?Em:Jl;return!t&&Fr(a,"iterate",l?gp:Ja),{next(){const{value:c,done:d}=u.next();return d?{value:c,done:d}:{value:s?[f(c[0]),f(c[1])]:f(c),done:d}},[Symbol.iterator](){return this}}}}function Mi(e){return function(...t){return e==="delete"?!1:this}}function sD(){const e={get(a){return Zu(this,a)},get size(){return Ju(this)},has:Qu,add:z0,set:W0,delete:V0,clear:G0,forEach:ef(!1,!1)},t={get(a){return Zu(this,a,!1,!0)},get size(){return Ju(this)},has:Qu,add:z0,set:W0,delete:V0,clear:G0,forEach:ef(!1,!0)},r={get(a){return Zu(this,a,!0)},get size(){return Ju(this,!0)},has(a){return Qu.call(this,a,!0)},add:Mi("add"),set:Mi("set"),delete:Mi("delete"),clear:Mi("clear"),forEach:ef(!0,!1)},n={get(a){return Zu(this,a,!0,!0)},get size(){return Ju(this,!0)},has(a){return Qu.call(this,a,!0)},add:Mi("add"),set:Mi("set"),delete:Mi("delete"),clear:Mi("clear"),forEach:ef(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=tf(a,!1,!1),r[a]=tf(a,!0,!1),t[a]=tf(a,!1,!0),n[a]=tf(a,!0,!0)}),[e,r,t,n]}const[lD,uD,fD,cD]=sD();function Mm(e,t){const r=t?e?cD:fD:e?uD:lD;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ze(r,i)&&i in n?r:n,i,a)}const dD={get:Mm(!1,!1)},hD={get:Mm(!1,!0)},vD={get:Mm(!0,!1)},aC=new WeakMap,oC=new WeakMap,sC=new WeakMap,pD=new WeakMap;function gD(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mD(e){return e.__v_skip||!Object.isExtensible(e)?0:gD($L(e))}function ln(e){return us(e)?e:Am(e,!1,iC,dD,aC)}function lC(e){return Am(e,!1,oD,hD,oC)}function Sd(e){return Am(e,!0,aD,vD,sC)}function Am(e,t,r,n,i){if(!Ke(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=mD(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function Jo(e){return us(e)?Jo(e.__v_raw):!!(e&&e.__v_isReactive)}function us(e){return!!(e&&e.__v_isReadonly)}function Oc(e){return!!(e&&e.__v_isShallow)}function uC(e){return Jo(e)||us(e)}function Qe(e){const t=e&&e.__v_raw;return t?Qe(t):e}function fC(e){return Rc(e,"__v_skip",!0),e}const Jl=e=>Ke(e)?ln(e):e,Em=e=>Ke(e)?Sd(e):e;function cC(e){ji&&mn&&(e=Qe(e),tC(e.dep||(e.dep=xm())))}function dC(e,t){e=Qe(e),e.dep&&mp(e.dep)}function St(e){return!!(e&&e.__v_isRef===!0)}function H(e){return hC(e,!1)}function yD(e){return hC(e,!0)}function hC(e,t){return St(e)?e:new _D(e,t)}class _D{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Qe(t),this._value=r?t:Jl(t)}get value(){return cC(this),this._value}set value(t){const r=this.__v_isShallow||Oc(t)||us(t);t=r?t:Qe(t),Ql(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Jl(t),dC(this))}}function L(e){return St(e)?e.value:e}const bD={get:(e,t,r)=>L(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return St(i)&&!St(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function vC(e){return Jo(e)?e:new Proxy(e,bD)}function Cd(e){const t=ye(e)?new Array(e.length):{};for(const r in e)t[r]=wn(e,r);return t}class wD{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function wn(e,t,r){const n=e[t];return St(n)?n:new wD(e,t,r)}var pC;class xD{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[pC]=!1,this._dirty=!0,this.effect=new Sm(t,()=>{this._dirty||(this._dirty=!0,dC(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Qe(this);return cC(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}pC="__v_isReadonly";function SD(e,t,r=!1){let n,i;const a=Le(e);return a?(n=e,i=sr):(n=e.get,i=e.set),new xD(n,i,a||!i,r)}function CD(e,...t){}function Ki(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Td(a,t,r)}return i}function en(e,t,r,n){if(Le(e)){const a=Ki(e,t,r,n);return a&&KS(a)&&a.catch(o=>{Td(o,t,r)}),a}const i=[];for(let a=0;a>>1;tu(er[n])Nn&&er.splice(t,1)}function ED(e){ye(e)?es.push(...e):(!oi||!oi.includes(e,e.allowRecurse?Ha+1:Ha))&&es.push(e),mC()}function U0(e,t=eu?Nn+1:0){for(;ttu(r)-tu(n)),Ha=0;Hae.id==null?1/0:e.id,PD=(e,t)=>{const r=tu(e)-tu(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function _C(e){yp=!1,eu=!0,er.sort(PD);const t=sr;try{for(Nn=0;NnUe(h)?h.trim():h)),c&&(i=r.map(wm))}let s,l=n[s=ac(t)]||n[s=ac(Sn(t))];!l&&a&&(l=n[s=ac(Ps(t))]),l&&en(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,en(u,e,6,i)}}function bC(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!Le(e)){const l=u=>{const f=bC(u,t,!0);f&&(s=!0,Kt(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Ke(e)&&n.set(e,null),null):(ye(a)?a.forEach(l=>o[l]=null):Kt(o,a),Ke(e)&&n.set(e,o),o)}function Md(e,t){return!e||!yd(t)?!1:(t=t.slice(2).replace(/Once$/,""),ze(e,t[0].toLowerCase()+t.slice(1))||ze(e,Ps(t))||ze(e,t))}let Yt=null,wC=null;function kc(e){const t=Yt;return Yt=e,wC=e&&e.type.__scopeId||null,t}function Z(e,t=Yt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&n_(-1);const a=kc(t);let o;try{o=e(...i)}finally{kc(a),n._d&&n_(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function xh(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,data:d,setupState:h,ctx:v,inheritAttrs:p}=e;let g,m;const y=kc(e);try{if(r.shapeFlag&4){const b=i||n;g=kn(f.call(b,b,c,a,h,d,v)),m=l}else{const b=t;g=kn(b.length>1?b(a,{attrs:l,slots:s,emit:u}):b(a,null)),m=t.props?l:DD(l)}}catch(b){Al.length=0,Td(b,e,1),g=ee(br)}let _=g;if(m&&p!==!1){const b=Object.keys(m),{shapeFlag:x}=_;b.length&&x&7&&(o&&b.some(ym)&&(m=ID(m,o)),_=vi(_,m))}return r.dirs&&(_=vi(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,kc(y),g}const DD=e=>{let t;for(const r in e)(r==="class"||r==="style"||yd(r))&&((t||(t={}))[r]=e[r]);return t},ID=(e,t)=>{const r={};for(const n in e)(!ym(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function RD(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Y0(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;ce.__isSuspense;function ND(e,t){t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):ED(e)}function Ct(e,t){if(Ht){let r=Ht.provides;const n=Ht.parent&&Ht.parent.provides;n===r&&(r=Ht.provides=Object.create(n)),r[e]=t}}function Re(e,t,r=!1){const n=Ht||Yt;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&Le(t)?t.call(n.proxy):t}}function ts(e,t){return Dm(e,null,t)}const rf={};function Ee(e,t,r){return Dm(e,t,r)}function Dm(e,t,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=mt){const s=Ht;let l,u=!1,f=!1;if(St(e)?(l=()=>e.value,u=Oc(e)):Jo(e)?(l=()=>e,n=!0):ye(e)?(f=!0,u=e.some(_=>Jo(_)||Oc(_)),l=()=>e.map(_=>{if(St(_))return _.value;if(Jo(_))return Ya(_);if(Le(_))return Ki(_,s,2)})):Le(e)?t?l=()=>Ki(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return c&&c(),en(e,s,3,[d])}:l=sr,t&&n){const _=l;l=()=>Ya(_())}let c,d=_=>{c=m.onStop=()=>{Ki(_,s,4)}},h;if(nu)if(d=sr,t?r&&en(t,s,3,[l(),f?[]:void 0,d]):l(),i==="sync"){const _=EI();h=_.__watcherHandles||(_.__watcherHandles=[])}else return sr;let v=f?new Array(e.length).fill(rf):rf;const p=()=>{if(m.active)if(t){const _=m.run();(n||u||(f?_.some((b,x)=>Ql(b,v[x])):Ql(_,v)))&&(c&&c(),en(t,s,3,[_,v===rf?void 0:f&&v[0]===rf?[]:v,d]),v=_)}else m.run()};p.allowRecurse=!!t;let g;i==="sync"?g=p:i==="post"?g=()=>pr(p,s&&s.suspense):(p.pre=!0,s&&(p.id=s.uid),g=()=>Lm(p));const m=new Sm(l,g);t?r?p():v=m.run():i==="post"?pr(m.run.bind(m),s&&s.suspense):m.run();const y=()=>{m.stop(),s&&s.scope&&_m(s.scope.effects,m)};return h&&h.push(y),y}function BD(e,t,r){const n=this.proxy,i=Ue(e)?e.includes(".")?xC(n,e):()=>n[e]:e.bind(n,n);let a;Le(t)?a=t:(a=t.handler,r=t);const o=Ht;fs(this);const s=Dm(i,a.bind(n),r);return o?fs(o):eo(),s}function xC(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i{Ya(r,t)});else if(ZS(e))for(const r in e)Ya(e[r],t);return e}function FD(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Et(()=>{e.isMounted=!0}),rr(()=>{e.isUnmounting=!0}),e}const zr=[Function,Array],$D={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zr,onEnter:zr,onAfterEnter:zr,onEnterCancelled:zr,onBeforeLeave:zr,onLeave:zr,onAfterLeave:zr,onLeaveCancelled:zr,onBeforeAppear:zr,onAppear:zr,onAfterAppear:zr,onAppearCancelled:zr},setup(e,{slots:t}){const r=dt(),n=FD();let i;return()=>{const a=t.default&&TC(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const p of a)if(p.type!==br){o=p;break}}const s=Qe(e),{mode:l}=s;if(n.isLeaving)return Sh(o);const u=q0(o);if(!u)return Sh(o);const f=_p(u,s,n,r);bp(u,f);const c=r.subTree,d=c&&q0(c);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();i===void 0?i=p:p!==i&&(i=p,h=!0)}if(d&&d.type!==br&&(!za(u,d)||h)){const p=_p(d,s,n,r);if(bp(d,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Sh(o);l==="in-out"&&u.type!==br&&(p.delayLeave=(g,m,y)=>{const _=CC(n,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=y})}return o}}},SC=$D;function CC(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function _p(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),b=CC(r,e),x=(C,T)=>{C&&en(C,n,9,T)},w=(C,T)=>{const E=T[1];x(C,T),ye(C)?C.every(A=>A.length<=1)&&E():C.length<=1&&E()},S={mode:a,persisted:o,beforeEnter(C){let T=s;if(!r.isMounted)if(i)T=p||s;else return;C._leaveCb&&C._leaveCb(!0);const E=b[_];E&&za(e,E)&&E.el._leaveCb&&E.el._leaveCb(),x(T,[C])},enter(C){let T=l,E=u,A=f;if(!r.isMounted)if(i)T=g||l,E=m||u,A=y||f;else return;let M=!1;const D=C._enterCb=O=>{M||(M=!0,O?x(A,[C]):x(E,[C]),S.delayedLeave&&S.delayedLeave(),C._enterCb=void 0)};T?w(T,[C,D]):D()},leave(C,T){const E=String(e.key);if(C._enterCb&&C._enterCb(!0),r.isUnmounting)return T();x(c,[C]);let A=!1;const M=C._leaveCb=D=>{A||(A=!0,T(),D?x(v,[C]):x(h,[C]),C._leaveCb=void 0,b[E]===e&&delete b[E])};b[E]=e,d?w(d,[C,M]):M()},clone(C){return _p(C,t,r,n)}};return S}function Sh(e){if(Ad(e))return e=vi(e),e.children=null,e}function q0(e){return Ad(e)?e.children?e.children[0]:void 0:e}function bp(e,t){e.shapeFlag&6&&e.component?bp(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function TC(e,t=!1,r){let n=[],i=0;for(let a=0;a1)for(let a=0;a!!e.type.__asyncLoader,Ad=e=>e.type.__isKeepAlive;function HD(e,t){AC(e,"a",t)}function MC(e,t){AC(e,"da",t)}function AC(e,t,r=Ht){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ed(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Ad(i.parent.vnode)&&zD(n,t,r,i),i=i.parent}}function zD(e,t,r,n){const i=Ed(t,e,n,!0);Iu(()=>{_m(n[t],i)},r)}function Ed(e,t,r=Ht,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Ls(),fs(r);const s=en(t,r,e,o);return eo(),Ds(),s});return n?i.unshift(a):i.push(a),a}}const wi=e=>(t,r=Ht)=>(!nu||e==="sp")&&Ed(e,(...n)=>t(...n),r),Pd=wi("bm"),Et=wi("m"),WD=wi("bu"),Ld=wi("u"),rr=wi("bum"),Iu=wi("um"),VD=wi("sp"),GD=wi("rtg"),UD=wi("rtc");function YD(e,t=Ht){Ed("ec",e,t)}function qt(e,t){const r=Yt;if(r===null)return e;const n=Id(r)||r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;at(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,l=o.length;sJi(t)?!(t.type===br||t.type===yt&&!PC(t.children)):!0)?e:null}function jD(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:ac(n)]=e[n];return r}const wp=e=>e?HC(e)?Id(e)||e.proxy:wp(e.parent):null,Tl=Kt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>wp(e.parent),$root:e=>wp(e.root),$emit:e=>e.emit,$options:e=>km(e),$forceUpdate:e=>e.f||(e.f=()=>Lm(e.update)),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>BD.bind(e)}),Ch=(e,t)=>e!==mt&&!e.__isScriptSetup&&ze(e,t),KD={get({_:e},t){const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(Ch(n,t))return o[t]=1,n[t];if(i!==mt&&ze(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&ze(u,t))return o[t]=3,a[t];if(r!==mt&&ze(r,t))return o[t]=4,r[t];xp&&(o[t]=0)}}const f=Tl[t];let c,d;if(f)return t==="$attrs"&&Fr(e,"get",t),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==mt&&ze(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,ze(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Ch(i,t)?(i[t]=r,!0):n!==mt&&ze(n,t)?(n[t]=r,!0):ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==mt&&ze(e,o)||Ch(t,o)||(s=a[0])&&ze(s,o)||ze(n,o)||ze(Tl,o)||ze(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ze(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let xp=!0;function XD(e){const t=km(e),r=e.proxy,n=e.ctx;xp=!1,t.beforeCreate&&X0(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:b,render:x,renderTracked:w,renderTriggered:S,errorCaptured:C,serverPrefetch:T,expose:E,inheritAttrs:A,components:M,directives:D,filters:O}=t;if(u&&ZD(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const j in o){const B=o[j];Le(B)&&(n[j]=B.bind(r))}if(i){const j=i.call(r,r);Ke(j)&&(e.data=ln(j))}if(xp=!0,a)for(const j in a){const B=a[j],N=Le(B)?B.bind(r,r):Le(B.get)?B.get.bind(r,r):sr,U=!Le(B)&&Le(B.set)?B.set.bind(r):sr,re=$({get:N,set:U});Object.defineProperty(n,j,{enumerable:!0,configurable:!0,get:()=>re.value,set:ae=>re.value=ae})}if(s)for(const j in s)LC(s[j],n,r,j);if(l){const j=Le(l)?l.call(r):l;Reflect.ownKeys(j).forEach(B=>{Ct(B,j[B])})}f&&X0(f,e,"c");function F(j,B){ye(B)?B.forEach(N=>j(N.bind(r))):B&&j(B.bind(r))}if(F(Pd,c),F(Et,d),F(WD,h),F(Ld,v),F(HD,p),F(MC,g),F(YD,C),F(UD,w),F(GD,S),F(rr,y),F(Iu,b),F(VD,T),ye(E))if(E.length){const j=e.exposed||(e.exposed={});E.forEach(B=>{Object.defineProperty(j,B,{get:()=>r[B],set:N=>r[B]=N})})}else e.exposed||(e.exposed={});x&&e.render===sr&&(e.render=x),A!=null&&(e.inheritAttrs=A),M&&(e.components=M),D&&(e.directives=D)}function ZD(e,t,r=sr,n=!1){ye(e)&&(e=Sp(e));for(const i in e){const a=e[i];let o;Ke(a)?"default"in a?o=Re(a.from||i,a.default,!0):o=Re(a.from||i):o=Re(a),St(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function X0(e,t,r){en(ye(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function LC(e,t,r,n){const i=n.includes(".")?xC(r,n):()=>r[n];if(Ue(e)){const a=t[e];Le(a)&&Ee(i,a)}else if(Le(e))Ee(i,e.bind(r));else if(Ke(e))if(ye(e))e.forEach(a=>LC(a,t,r,n));else{const a=Le(e.handler)?e.handler.bind(r):t[e.handler];Le(a)&&Ee(i,a,e)}}function km(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>Nc(l,u,o,!0)),Nc(l,t,o)),Ke(t)&&a.set(t,l),l}function Nc(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Nc(e,a,r,!0),i&&i.forEach(o=>Nc(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=QD[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const QD={data:Z0,props:Ba,emits:Ba,methods:Ba,computed:Ba,beforeCreate:nr,created:nr,beforeMount:nr,mounted:nr,beforeUpdate:nr,updated:nr,beforeDestroy:nr,beforeUnmount:nr,destroyed:nr,unmounted:nr,activated:nr,deactivated:nr,errorCaptured:nr,serverPrefetch:nr,components:Ba,directives:Ba,watch:eI,provide:Z0,inject:JD};function Z0(e,t){return t?e?function(){return Kt(Le(e)?e.call(this,this):e,Le(t)?t.call(this,this):t)}:t:e}function JD(e,t){return Ba(Sp(e),Sp(t))}function Sp(e){if(ye(e)){const t={};for(let r=0;r0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let c=0;c{l=!0;const[d,h]=IC(c,t,!0);Kt(o,d),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return Ke(e)&&n.set(e,Zo),Zo;if(ye(a))for(let f=0;f-1,h[1]=p<0||v-1||ze(h,"default"))&&s.push(c)}}}const u=[o,s];return Ke(e)&&n.set(e,u),u}function Q0(e){return e[0]!=="$"}function J0(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function e_(e,t){return J0(e)===J0(t)}function t_(e,t){return ye(t)?t.findIndex(r=>e_(r,e)):Le(t)&&e_(t,e)?0:-1}const RC=e=>e[0]==="_"||e==="$stable",Nm=e=>ye(e)?e.map(kn):[kn(e)],nI=(e,t,r)=>{if(t._n)return t;const n=Z((...i)=>Nm(t(...i)),r);return n._c=!1,n},OC=(e,t,r)=>{const n=e._ctx;for(const i in e){if(RC(i))continue;const a=e[i];if(Le(a))t[i]=nI(i,a,n);else if(a!=null){const o=Nm(a);t[i]=()=>o}}},kC=(e,t)=>{const r=Nm(t);e.slots.default=()=>r},iI=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Qe(t),Rc(t,"_",r)):OC(t,e.slots={})}else e.slots={},t&&kC(e,t);Rc(e.slots,Dd,1)},aI=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=mt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(Kt(i,t),!r&&s===1&&delete i._):(a=!t.$stable,OC(t,i)),o=t}else t&&(kC(e,t),o={default:1});if(a)for(const s in i)!RC(s)&&!(s in o)&&delete i[s]};function NC(){return{app:null,config:{isNativeTag:NL,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let oI=0;function sI(e,t){return function(n,i=null){Le(n)||(n=Object.assign({},n)),i!=null&&!Ke(i)&&(i=null);const a=NC(),o=new Set;let s=!1;const l=a.app={_uid:oI++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:PI,get config(){return a.config},set config(u){},use(u,...f){return o.has(u)||(u&&Le(u.install)?(o.add(u),u.install(l,...f)):Le(u)&&(o.add(u),u(l,...f))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,f){return f?(a.components[u]=f,l):a.components[u]},directive(u,f){return f?(a.directives[u]=f,l):a.directives[u]},mount(u,f,c){if(!s){const d=ee(n,i);return d.appContext=a,f&&t?t(d,u):e(d,u,c),s=!0,l._container=u,u.__vue_app__=l,Id(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return a.provides[u]=f,l}};return l}}function Tp(e,t,r,n,i=!1){if(ye(e)){e.forEach((d,h)=>Tp(d,t&&(ye(t)?t[h]:t),r,n,i));return}if(Cl(n)&&!i)return;const a=n.shapeFlag&4?Id(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===mt?s.refs={}:s.refs,c=s.setupState;if(u!=null&&u!==l&&(Ue(u)?(f[u]=null,ze(c,u)&&(c[u]=null)):St(u)&&(u.value=null)),Le(l))Ki(l,s,12,[o,f]);else{const d=Ue(l),h=St(l);if(d||h){const v=()=>{if(e.f){const p=d?ze(c,l)?c[l]:f[l]:l.value;i?ye(p)&&_m(p,a):ye(p)?p.includes(a)||p.push(a):d?(f[l]=[a],ze(c,l)&&(c[l]=f[l])):(l.value=[a],e.k&&(f[e.k]=l.value))}else d?(f[l]=o,ze(c,l)&&(c[l]=o)):h&&(l.value=o,e.k&&(f[e.k]=o))};o?(v.id=-1,pr(v,r)):v()}}}const pr=ND;function lI(e){return uI(e)}function uI(e,t){const r=WL();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:d,setScopeId:h=sr,insertStaticContent:v}=e,p=(P,I,z,G=null,q=null,ne=null,ce=!1,te=null,ie=!!I.dynamicChildren)=>{if(P===I)return;P&&!za(P,I)&&(G=W(P),ae(P,q,ne,!0),P=null),I.patchFlag===-2&&(ie=!1,I.dynamicChildren=null);const{type:X,ref:_e,shapeFlag:ve}=I;switch(X){case Is:g(P,I,z,G);break;case br:m(P,I,z,G);break;case Th:P==null&&y(I,z,G,ce);break;case yt:M(P,I,z,G,q,ne,ce,te,ie);break;default:ve&1?x(P,I,z,G,q,ne,ce,te,ie):ve&6?D(P,I,z,G,q,ne,ce,te,ie):(ve&64||ve&128)&&X.process(P,I,z,G,q,ne,ce,te,ie,le)}_e!=null&&q&&Tp(_e,P&&P.ref,ne,I||P,!I)},g=(P,I,z,G)=>{if(P==null)n(I.el=s(I.children),z,G);else{const q=I.el=P.el;I.children!==P.children&&u(q,I.children)}},m=(P,I,z,G)=>{P==null?n(I.el=l(I.children||""),z,G):I.el=P.el},y=(P,I,z,G)=>{[P.el,P.anchor]=v(P.children,I,z,G,P.el,P.anchor)},_=({el:P,anchor:I},z,G)=>{let q;for(;P&&P!==I;)q=d(P),n(P,z,G),P=q;n(I,z,G)},b=({el:P,anchor:I})=>{let z;for(;P&&P!==I;)z=d(P),i(P),P=z;i(I)},x=(P,I,z,G,q,ne,ce,te,ie)=>{ce=ce||I.type==="svg",P==null?w(I,z,G,q,ne,ce,te,ie):T(P,I,q,ne,ce,te,ie)},w=(P,I,z,G,q,ne,ce,te)=>{let ie,X;const{type:_e,props:ve,shapeFlag:be,transition:Ie,dirs:Fe}=P;if(ie=P.el=o(P.type,ne,ve&&ve.is,ve),be&8?f(ie,P.children):be&16&&C(P.children,ie,null,G,q,ne&&_e!=="foreignObject",ce,te),Fe&&la(P,null,G,"created"),ve){for(const et in ve)et!=="value"&&!ic(et)&&a(ie,et,null,ve[et],ne,P.children,G,q,J);"value"in ve&&a(ie,"value",null,ve.value),(X=ve.onVnodeBeforeMount)&&Ln(X,G,P)}S(ie,P,P.scopeId,ce,G),Fe&&la(P,null,G,"beforeMount");const rt=(!q||q&&!q.pendingBranch)&&Ie&&!Ie.persisted;rt&&Ie.beforeEnter(ie),n(ie,I,z),((X=ve&&ve.onVnodeMounted)||rt||Fe)&&pr(()=>{X&&Ln(X,G,P),rt&&Ie.enter(ie),Fe&&la(P,null,G,"mounted")},q)},S=(P,I,z,G,q)=>{if(z&&h(P,z),G)for(let ne=0;ne{for(let X=ie;X{const te=I.el=P.el;let{patchFlag:ie,dynamicChildren:X,dirs:_e}=I;ie|=P.patchFlag&16;const ve=P.props||mt,be=I.props||mt;let Ie;z&&ua(z,!1),(Ie=be.onVnodeBeforeUpdate)&&Ln(Ie,z,I,P),_e&&la(I,P,z,"beforeUpdate"),z&&ua(z,!0);const Fe=q&&I.type!=="foreignObject";if(X?E(P.dynamicChildren,X,te,z,G,Fe,ne):ce||B(P,I,te,null,z,G,Fe,ne,!1),ie>0){if(ie&16)A(te,I,ve,be,z,G,q);else if(ie&2&&ve.class!==be.class&&a(te,"class",null,be.class,q),ie&4&&a(te,"style",ve.style,be.style,q),ie&8){const rt=I.dynamicProps;for(let et=0;et{Ie&&Ln(Ie,z,I,P),_e&&la(I,P,z,"updated")},G)},E=(P,I,z,G,q,ne,ce)=>{for(let te=0;te{if(z!==G){if(z!==mt)for(const te in z)!ic(te)&&!(te in G)&&a(P,te,z[te],null,ce,I.children,q,ne,J);for(const te in G){if(ic(te))continue;const ie=G[te],X=z[te];ie!==X&&te!=="value"&&a(P,te,X,ie,ce,I.children,q,ne,J)}"value"in G&&a(P,"value",z.value,G.value)}},M=(P,I,z,G,q,ne,ce,te,ie)=>{const X=I.el=P?P.el:s(""),_e=I.anchor=P?P.anchor:s("");let{patchFlag:ve,dynamicChildren:be,slotScopeIds:Ie}=I;Ie&&(te=te?te.concat(Ie):Ie),P==null?(n(X,z,G),n(_e,z,G),C(I.children,z,_e,q,ne,ce,te,ie)):ve>0&&ve&64&&be&&P.dynamicChildren?(E(P.dynamicChildren,be,z,q,ne,ce,te),(I.key!=null||q&&I===q.subTree)&&Bm(P,I,!0)):B(P,I,z,_e,q,ne,ce,te,ie)},D=(P,I,z,G,q,ne,ce,te,ie)=>{I.slotScopeIds=te,P==null?I.shapeFlag&512?q.ctx.activate(I,z,G,ce,ie):O(I,z,G,q,ne,ce,ie):k(P,I,ie)},O=(P,I,z,G,q,ne,ce)=>{const te=P.component=bI(P,G,q);if(Ad(P)&&(te.ctx.renderer=le),wI(te),te.asyncDep){if(q&&q.registerDep(te,F),!P.el){const ie=te.subTree=ee(br);m(null,ie,I,z)}return}F(te,P,I,z,q,ne,ce)},k=(P,I,z)=>{const G=I.component=P.component;if(RD(P,I,z))if(G.asyncDep&&!G.asyncResolved){j(G,I,z);return}else G.next=I,AD(G.update),G.update();else I.el=P.el,G.vnode=I},F=(P,I,z,G,q,ne,ce)=>{const te=()=>{if(P.isMounted){let{next:_e,bu:ve,u:be,parent:Ie,vnode:Fe}=P,rt=_e,et;ua(P,!1),_e?(_e.el=Fe.el,j(P,_e,ce)):_e=Fe,ve&&oc(ve),(et=_e.props&&_e.props.onVnodeBeforeUpdate)&&Ln(et,Ie,_e,Fe),ua(P,!0);const fe=xh(P),Ce=P.subTree;P.subTree=fe,p(Ce,fe,c(Ce.el),W(Ce),P,q,ne),_e.el=fe.el,rt===null&&OD(P,fe.el),be&&pr(be,q),(et=_e.props&&_e.props.onVnodeUpdated)&&pr(()=>Ln(et,Ie,_e,Fe),q)}else{let _e;const{el:ve,props:be}=I,{bm:Ie,m:Fe,parent:rt}=P,et=Cl(I);if(ua(P,!1),Ie&&oc(Ie),!et&&(_e=be&&be.onVnodeBeforeMount)&&Ln(_e,rt,I),ua(P,!0),ve&&Q){const fe=()=>{P.subTree=xh(P),Q(ve,P.subTree,P,q,null)};et?I.type.__asyncLoader().then(()=>!P.isUnmounted&&fe()):fe()}else{const fe=P.subTree=xh(P);p(null,fe,z,G,P,q,ne),I.el=fe.el}if(Fe&&pr(Fe,q),!et&&(_e=be&&be.onVnodeMounted)){const fe=I;pr(()=>Ln(_e,rt,fe),q)}(I.shapeFlag&256||rt&&Cl(rt.vnode)&&rt.vnode.shapeFlag&256)&&P.a&&pr(P.a,q),P.isMounted=!0,I=z=G=null}},ie=P.effect=new Sm(te,()=>Lm(X),P.scope),X=P.update=()=>ie.run();X.id=P.uid,ua(P,!0),X()},j=(P,I,z)=>{I.component=P;const G=P.vnode.props;P.vnode=I,P.next=null,rI(P,I.props,G,z),aI(P,I.children,z),Ls(),U0(),Ds()},B=(P,I,z,G,q,ne,ce,te,ie=!1)=>{const X=P&&P.children,_e=P?P.shapeFlag:0,ve=I.children,{patchFlag:be,shapeFlag:Ie}=I;if(be>0){if(be&128){U(X,ve,z,G,q,ne,ce,te,ie);return}else if(be&256){N(X,ve,z,G,q,ne,ce,te,ie);return}}Ie&8?(_e&16&&J(X,q,ne),ve!==X&&f(z,ve)):_e&16?Ie&16?U(X,ve,z,G,q,ne,ce,te,ie):J(X,q,ne,!0):(_e&8&&f(z,""),Ie&16&&C(ve,z,G,q,ne,ce,te,ie))},N=(P,I,z,G,q,ne,ce,te,ie)=>{P=P||Zo,I=I||Zo;const X=P.length,_e=I.length,ve=Math.min(X,_e);let be;for(be=0;be_e?J(P,q,ne,!0,!1,ve):C(I,z,G,q,ne,ce,te,ie,ve)},U=(P,I,z,G,q,ne,ce,te,ie)=>{let X=0;const _e=I.length;let ve=P.length-1,be=_e-1;for(;X<=ve&&X<=be;){const Ie=P[X],Fe=I[X]=ie?Hi(I[X]):kn(I[X]);if(za(Ie,Fe))p(Ie,Fe,z,null,q,ne,ce,te,ie);else break;X++}for(;X<=ve&&X<=be;){const Ie=P[ve],Fe=I[be]=ie?Hi(I[be]):kn(I[be]);if(za(Ie,Fe))p(Ie,Fe,z,null,q,ne,ce,te,ie);else break;ve--,be--}if(X>ve){if(X<=be){const Ie=be+1,Fe=Ie<_e?I[Ie].el:G;for(;X<=be;)p(null,I[X]=ie?Hi(I[X]):kn(I[X]),z,Fe,q,ne,ce,te,ie),X++}}else if(X>be)for(;X<=ve;)ae(P[X],q,ne,!0),X++;else{const Ie=X,Fe=X,rt=new Map;for(X=Fe;X<=be;X++){const ht=I[X]=ie?Hi(I[X]):kn(I[X]);ht.key!=null&&rt.set(ht.key,X)}let et,fe=0;const Ce=be-Fe+1;let $e=!1,He=0;const Xe=new Array(Ce);for(X=0;X=Ce){ae(ht,q,ne,!0);continue}let Wt;if(ht.key!=null)Wt=rt.get(ht.key);else for(et=Fe;et<=be;et++)if(Xe[et-Fe]===0&&za(ht,I[et])){Wt=et;break}Wt===void 0?ae(ht,q,ne,!0):(Xe[Wt-Fe]=X+1,Wt>=He?He=Wt:$e=!0,p(ht,I[Wt],z,null,q,ne,ce,te,ie),fe++)}const Ot=$e?fI(Xe):Zo;for(et=Ot.length-1,X=Ce-1;X>=0;X--){const ht=Fe+X,Wt=I[ht],Hr=ht+1<_e?I[ht+1].el:G;Xe[X]===0?p(null,Wt,z,Hr,q,ne,ce,te,ie):$e&&(et<0||X!==Ot[et]?re(Wt,z,Hr,2):et--)}}},re=(P,I,z,G,q=null)=>{const{el:ne,type:ce,transition:te,children:ie,shapeFlag:X}=P;if(X&6){re(P.component.subTree,I,z,G);return}if(X&128){P.suspense.move(I,z,G);return}if(X&64){ce.move(P,I,z,le);return}if(ce===yt){n(ne,I,z);for(let ve=0;vete.enter(ne),q);else{const{leave:ve,delayLeave:be,afterLeave:Ie}=te,Fe=()=>n(ne,I,z),rt=()=>{ve(ne,()=>{Fe(),Ie&&Ie()})};be?be(ne,Fe,rt):rt()}else n(ne,I,z)},ae=(P,I,z,G=!1,q=!1)=>{const{type:ne,props:ce,ref:te,children:ie,dynamicChildren:X,shapeFlag:_e,patchFlag:ve,dirs:be}=P;if(te!=null&&Tp(te,null,z,P,!0),_e&256){I.ctx.deactivate(P);return}const Ie=_e&1&&be,Fe=!Cl(P);let rt;if(Fe&&(rt=ce&&ce.onVnodeBeforeUnmount)&&Ln(rt,I,P),_e&6)V(P.component,z,G);else{if(_e&128){P.suspense.unmount(z,G);return}Ie&&la(P,null,I,"beforeUnmount"),_e&64?P.type.remove(P,I,z,q,le,G):X&&(ne!==yt||ve>0&&ve&64)?J(X,I,z,!1,!0):(ne===yt&&ve&384||!q&&_e&16)&&J(ie,I,z),G&&me(P)}(Fe&&(rt=ce&&ce.onVnodeUnmounted)||Ie)&&pr(()=>{rt&&Ln(rt,I,P),Ie&&la(P,null,I,"unmounted")},z)},me=P=>{const{type:I,el:z,anchor:G,transition:q}=P;if(I===yt){Me(z,G);return}if(I===Th){b(P);return}const ne=()=>{i(z),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(P.shapeFlag&1&&q&&!q.persisted){const{leave:ce,delayLeave:te}=q,ie=()=>ce(z,ne);te?te(P.el,ne,ie):ie()}else ne()},Me=(P,I)=>{let z;for(;P!==I;)z=d(P),i(P),P=z;i(I)},V=(P,I,z)=>{const{bum:G,scope:q,update:ne,subTree:ce,um:te}=P;G&&oc(G),q.stop(),ne&&(ne.active=!1,ae(ce,P,I,z)),te&&pr(te,I),pr(()=>{P.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},J=(P,I,z,G=!1,q=!1,ne=0)=>{for(let ce=ne;ceP.shapeFlag&6?W(P.component.subTree):P.shapeFlag&128?P.suspense.next():d(P.anchor||P.el),Y=(P,I,z)=>{P==null?I._vnode&&ae(I._vnode,null,null,!0):p(I._vnode||null,P,I,null,null,null,z),U0(),yC(),I._vnode=P},le={p,um:ae,m:re,r:me,mt:O,mc:C,pc:B,pbc:E,n:W,o:e};let he,Q;return t&&([he,Q]=t(le)),{render:Y,hydrate:he,createApp:sI(Y,he)}}function ua({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Bm(e,t,r=!1){const n=e.children,i=t.children;if(ye(n)&&ye(i))for(let a=0;a>1,e[r[s]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}const cI=e=>e.__isTeleport,Ml=e=>e&&(e.disabled||e.disabled===""),r_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Mp=(e,t)=>{const r=e&&e.to;return Ue(r)?t?t(r):null:r},dI={__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=Ml(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const x=t.el=p(""),w=t.anchor=p("");h(x,r,n),h(w,r,n);const S=t.target=Mp(t.props,v),C=t.targetAnchor=p("");S&&(h(C,S),o=o||r_(S));const T=(E,A)=>{y&16&&f(_,E,A,i,a,o,s,l)};m?T(r,w):S&&T(S,C)}else{t.el=e.el;const x=t.anchor=e.anchor,w=t.target=e.target,S=t.targetAnchor=e.targetAnchor,C=Ml(e.props),T=C?r:w,E=C?x:S;if(o=o||r_(w),b?(d(e.dynamicChildren,b,T,i,a,o,s),Bm(e,t,!0)):l||c(e,t,T,E,i,a,o,s,!1),m)C||nf(t,r,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Mp(t.props,v);A&&nf(t,A,null,u,0)}else C&&nf(t,w,S,u,1)}BC(t)},remove(e,t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:f,target:c,props:d}=e;if(c&&a(f),(o||!Ml(d))&&(a(u),s&16))for(let h=0;h0?yn||Zo:null,pI(),ru>0&&yn&&yn.push(e),e}function Se(e,t,r,n,i,a){return FC(se(e,t,r,n,i,a,!0))}function xe(e,t,r,n,i){return FC(ee(e,t,r,n,i,!0))}function Ji(e){return e?e.__v_isVNode===!0:!1}function za(e,t){return e.type===t.type&&e.key===t.key}const Dd="__vInternal",$C=({key:e})=>e??null,sc=({ref:e,ref_key:t,ref_for:r})=>e!=null?Ue(e)||St(e)||Le(e)?{i:Yt,r:e,k:t,f:!!r}:e:null;function se(e,t=null,r=null,n=0,i=null,a=e===yt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$C(t),ref:t&&sc(t),scopeId:wC,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Yt};return s?(Fm(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Ue(r)?8:16),ru>0&&!o&&yn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&yn.push(l),l}const ee=gI;function gI(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===EC)&&(e=br),Ji(e)){const s=vi(e,t,!0);return r&&Fm(s,r),ru>0&&!a&&yn&&(s.shapeFlag&6?yn[yn.indexOf(e)]=s:yn.push(s)),s.patchFlag|=-2,s}if(TI(e)&&(e=e.__vccOpts),t){t=mI(t);let{class:s,style:l}=t;s&&!Ue(s)&&(t.class=de(s)),Ke(l)&&(uC(l)&&!ye(l)&&(l=Kt({},l)),t.style=At(l))}const o=Ue(e)?1:kD(e)?128:cI(e)?64:Ke(e)?4:Le(e)?2:0;return se(e,t,r,n,i,o,a,!0)}function mI(e){return e?uC(e)||Dd in e?Kt({},e):e:null}function vi(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?go(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&$C(s),ref:t&&t.ref?r&&i?ye(i)?i.concat(sc(t)):[i,sc(t)]:sc(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vi(e.ssContent),ssFallback:e.ssFallback&&vi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function kt(e=" ",t=0){return ee(Is,null,e,t)}function Ye(e="",t=!1){return t?(K(),xe(br,null,e)):ee(br,null,e)}function kn(e){return e==null||typeof e=="boolean"?ee(br):ye(e)?ee(yt,null,e.slice()):typeof e=="object"?Hi(e):ee(Is,null,String(e))}function Hi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vi(e)}function Fm(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ye(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Fm(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(Dd in t)?t._ctx=Yt:i===3&&Yt&&(Yt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Le(t)?(t={default:t,_ctx:Yt},r=32):(t=String(t),n&64?(r=16,t=[kt(t)]):r=8);e.children=t,e.shapeFlag|=r}function go(...e){const t={};for(let r=0;rHt||Yt,fs=e=>{Ht=e,e.scope.on()},eo=()=>{Ht&&Ht.scope.off(),Ht=null};function HC(e){return e.vnode.shapeFlag&4}let nu=!1;function wI(e,t=!1){nu=t;const{props:r,children:n}=e.vnode,i=HC(e);tI(e,r,i,t),iI(e,n);const a=i?xI(e,t):void 0;return nu=!1,a}function xI(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=fC(new Proxy(e.ctx,KD));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?WC(e):null;fs(e),Ls();const a=Ki(n,e,0,[e.props,i]);if(Ds(),eo(),KS(a)){if(a.then(eo,eo),t)return a.then(o=>{i_(e,o,t)}).catch(o=>{Td(o,e,0)});e.asyncDep=a}else i_(e,a,t)}else zC(e,t)}function i_(e,t,r){Le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ke(t)&&(e.setupState=vC(t)),zC(e,r)}let a_;function zC(e,t,r){const n=e.type;if(!e.render){if(!t&&a_&&!n.render){const i=n.template||km(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Kt(Kt({isCustomElement:a,delimiters:s},o),l);n.render=a_(i,u)}}e.render=n.render||sr}fs(e),Ls(),XD(e),Ds(),eo()}function SI(e){return new Proxy(e.attrs,{get(t,r){return Fr(e,"get","$attrs"),t[r]}})}function WC(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=SI(e))},slots:e.slots,emit:e.emit,expose:t}}function Id(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(vC(fC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Tl)return Tl[r](e)},has(t,r){return r in t||r in Tl}}))}function CI(e,t=!0){return Le(e)?e.displayName||e.name:e.name||t&&e.__name}function TI(e){return Le(e)&&"__vccOpts"in e}const $=(e,t)=>SD(e,t,nu);function Rd(){return MI().slots}function MI(){const e=dt();return e.setupContext||(e.setupContext=WC(e))}function we(e,t,r){const n=arguments.length;return n===2?Ke(t)&&!ye(t)?Ji(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ji(r)&&(r=[r]),ee(e,t,r))}const AI=Symbol(""),EI=()=>Re(AI),PI="3.2.45",LI="http://www.w3.org/2000/svg",Wa=typeof document<"u"?document:null,o_=Wa&&Wa.createElement("template"),DI={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t?Wa.createElementNS(LI,e):Wa.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Wa.createTextNode(e),createComment:e=>Wa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{o_.innerHTML=n?`${e}`:e;const s=o_.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function II(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function RI(e,t,r){const n=e.style,i=Ue(r);if(r&&!i){for(const a in r)Ap(n,a,r[a]);if(t&&!Ue(t))for(const a in t)r[a]==null&&Ap(n,a,"")}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const s_=/\s*!important$/;function Ap(e,t,r){if(ye(r))r.forEach(n=>Ap(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=OI(e,t);s_.test(r)?e.setProperty(Ps(n),r.replace(s_,""),"important"):e[n]=r}}const l_=["Webkit","Moz","ms"],Mh={};function OI(e,t){const r=Mh[t];if(r)return r;let n=Sn(t);if(n!=="filter"&&n in e)return Mh[t]=n;n=wd(n);for(let i=0;iAh||(HI.then(()=>Ah=0),Ah=Date.now());function WI(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;en(VI(n,r.value),t,5,[n])};return r.value=e,r.attached=zI(),r}function VI(e,t){if(ye(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const c_=/^on[a-z]/,GI=(e,t,r,n,i=!1,a,o,s,l)=>{t==="class"?II(e,n,i):t==="style"?RI(e,r,n):yd(t)?ym(t)||FI(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):UI(e,t,n,i))?NI(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),kI(e,t,n,i))};function UI(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&c_.test(t)&&Le(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||c_.test(t)&&Ue(r)?!1:t in e}const Ai="transition",Vs="animation",Kn=(e,{slots:t})=>we(SC,YI(e),t);Kn.displayName="Transition";const GC={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Kn.props=Kt({},SC.props,GC);const fa=(e,t=[])=>{ye(e)?e.forEach(r=>r(...t)):e&&e(...t)},d_=e=>e?ye(e)?e.some(t=>t.length>1):e.length>1:!1;function YI(e){const t={};for(const M in e)M in GC||(t[M]=e[M]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=qI(i),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:x,onBeforeAppear:w=m,onAppear:S=y,onAppearCancelled:C=_}=t,T=(M,D,O)=>{ca(M,D?f:s),ca(M,D?u:o),O&&O()},E=(M,D)=>{M._isLeaving=!1,ca(M,c),ca(M,h),ca(M,d),D&&D()},A=M=>(D,O)=>{const k=M?S:y,F=()=>T(D,M,O);fa(k,[D,F]),h_(()=>{ca(D,M?l:a),Ei(D,M?f:s),d_(k)||v_(D,n,p,F)})};return Kt(t,{onBeforeEnter(M){fa(m,[M]),Ei(M,a),Ei(M,o)},onBeforeAppear(M){fa(w,[M]),Ei(M,l),Ei(M,u)},onEnter:A(!1),onAppear:A(!0),onLeave(M,D){M._isLeaving=!0;const O=()=>E(M,D);Ei(M,c),XI(),Ei(M,d),h_(()=>{M._isLeaving&&(ca(M,c),Ei(M,h),d_(b)||v_(M,n,g,O))}),fa(b,[M,O])},onEnterCancelled(M){T(M,!1),fa(_,[M])},onAppearCancelled(M){T(M,!0),fa(C,[M])},onLeaveCancelled(M){E(M),fa(x,[M])}})}function qI(e){if(e==null)return null;if(Ke(e))return[Eh(e.enter),Eh(e.leave)];{const t=Eh(e);return[t,t]}}function Eh(e){return wm(e)}function Ei(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function ca(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function h_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jI=0;function v_(e,t,r,n){const i=e._endId=++jI,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=KI(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,d),a()},d=h=>{h.target===e&&++f>=l&&c()};setTimeout(()=>{f(r[v]||"").split(", "),i=n(`${Ai}Delay`),a=n(`${Ai}Duration`),o=p_(i,a),s=n(`${Vs}Delay`),l=n(`${Vs}Duration`),u=p_(s,l);let f=null,c=0,d=0;t===Ai?o>0&&(f=Ai,c=o,d=a.length):t===Vs?u>0&&(f=Vs,c=u,d=l.length):(c=Math.max(o,u),f=c>0?o>u?Ai:Vs:null,d=f?f===Ai?a.length:l.length:0);const h=f===Ai&&/\b(transform|all)(,|$)/.test(n(`${Ai}Property`).toString());return{type:f,timeout:c,propCount:d,hasTransform:h}}function p_(e,t){for(;e.lengthg_(r)+g_(e[n])))}function g_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function XI(){return document.body.offsetHeight}const m_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ye(t)?r=>oc(t,r):t},Bc={deep:!0,created(e,t,r){e._assign=m_(r),VC(e,"change",()=>{const n=e._modelValue,i=ZI(e),a=e.checked,o=e._assign;if(ye(n)){const s=qS(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(_d(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(UC(e,a))})},mounted:y_,beforeUpdate(e,t,r){e._assign=m_(r),y_(e,t,r)}};function y_(e,{value:t,oldValue:r},n){e._modelValue=t,ye(t)?e.checked=qS(t,n.props.value)>-1:_d(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=md(t,UC(e,!0)))}function ZI(e){return"_value"in e?e._value:e.value}function UC(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const QI=["ctrl","shift","alt","meta"],JI={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>QI.some(r=>e[`${r}Key`]&&!t.includes(r))},Ep=(e,t)=>(r,...n)=>{for(let i=0;i{Gs(e,!1)}):Gs(e,t))},beforeUnmount(e,{value:t}){Gs(e,t)}};function Gs(e,t){e.style.display=t?e._vod:"none"}const eR=Kt({patchProp:GI},DI);let __;function YC(){return __||(__=lI(eR))}const b_=(...e)=>{YC().render(...e)},tR=(...e)=>{const t=YC().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=rR(n);if(!i)return;const a=t._component;!Le(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function rR(e){return Ue(e)?document.querySelector(e):e}var nR=typeof global=="object"&&global&&global.Object===Object&&global;const qC=nR;var iR=typeof self=="object"&&self&&self.Object===Object&&self,aR=qC||iR||Function("return this")();const Mn=aR;var oR=Mn.Symbol;const nn=oR;var jC=Object.prototype,sR=jC.hasOwnProperty,lR=jC.toString,Us=nn?nn.toStringTag:void 0;function uR(e){var t=sR.call(e,Us),r=e[Us];try{e[Us]=void 0;var n=!0}catch{}var i=lR.call(e);return n&&(t?e[Us]=r:delete e[Us]),i}var fR=Object.prototype,cR=fR.toString;function dR(e){return cR.call(e)}var hR="[object Null]",vR="[object Undefined]",w_=nn?nn.toStringTag:void 0;function mo(e){return e==null?e===void 0?vR:hR:w_&&w_ in Object(e)?uR(e):dR(e)}function Yn(e){return e!=null&&typeof e=="object"}var pR="[object Symbol]";function Od(e){return typeof e=="symbol"||Yn(e)&&mo(e)==pR}function KC(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r0){if(++t>=qR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ZR(e){return function(){return e}}var QR=function(){try{var e=_o(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Fc=QR;var JR=Fc?function(e,t){return Fc(e,"toString",{configurable:!0,enumerable:!1,value:ZR(t),writable:!0})}:$m;const eO=JR;var tO=XR(eO);const QC=tO;function rO(e,t){for(var r=-1,n=e==null?0:e.length;++r-1&&e%1==0&&e-1&&e%1==0&&e<=lO}function Rs(e){return e!=null&&Vm(e.length)&&!Hm(e)}function uO(e,t,r){if(!Cr(r))return!1;var n=typeof t;return(n=="number"?Rs(r)&&kd(t,r.length):n=="string"&&t in r)?Ru(r[t],e):!1}function fO(e){return sO(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&uO(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n-1}function Mk(e,t){var r=this.__data__,n=Nd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0&&r(s)?t>1?Zm(s,t-1,r,n,i):Xm(i,s):n||(i[i.length]=s)}return i}function Gk(e){var t=e==null?0:e.length;return t?Zm(e,1):[]}function Uk(e){return QC(JC(e,void 0,Gk),e+"")}var Yk=iT(Object.getPrototypeOf,Object);const Qm=Yk;var qk="[object Object]",jk=Function.prototype,Kk=Object.prototype,aT=jk.toString,Xk=Kk.hasOwnProperty,Zk=aT.call(Object);function Qk(e){if(!Yn(e)||mo(e)!=qk)return!1;var t=Qm(e);if(t===null)return!0;var r=Xk.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&aT.call(r)==Zk}function Lp(){if(!arguments.length)return[];var e=arguments[0];return ur(e)?e:[e]}function Jk(){this.__data__=new xi,this.size=0}function eN(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function tN(e){return this.__data__.get(e)}function rN(e){return this.__data__.has(e)}var nN=200;function iN(e,t){var r=this.__data__;if(r instanceof xi){var n=r.__data__;if(!su||n.lengths))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,h=r&zB?new Hc:void 0;for(a.set(e,t),a.set(t,e);++c=t||S<0||c&&C>=a}function m(){var w=Ih();if(g(w))return y(w);s=setTimeout(m,p(w))}function y(w){return s=void 0,d&&n?h(w):(n=i=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function b(){return s===void 0?o:y(Ih())}function x(){var w=Ih(),S=g(w);if(n=arguments,i=this,l=w,S){if(s===void 0)return v(l);if(c)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return x.cancel=_,x.flush=b,x}function kp(e,t,r){(r!==void 0&&!Ru(e[t],r)||r===void 0&&!(t in e))&&zm(e,t,r)}function kF(e){return Yn(e)&&Rs(e)}function Np(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function NF(e){return Ou(e,Nu(e))}function BF(e,t,r,n,i,a,o){var s=Np(e,r),l=Np(t,r),u=o.get(l);if(u){kp(e,r,u);return}var f=a?a(s,l,r+"",e,t,o):void 0,c=f===void 0;if(c){var d=ur(l),h=!d&&au(l),v=!d&&!h&&Ym(l);f=l,d||h||v?ur(s)?f=s:kF(s)?f=ZC(s):h?(c=!1,f=sT(l,!0)):v?(c=!1,f=cT(l,!0)):f=[]:Qk(l)||iu(l)?(f=s,iu(s)?f=NF(s):(!Cr(s)||Hm(s))&&(f=dT(l))):c=!1}c&&(o.set(l,f),i(f,l,n,a,o),o.delete(l)),kp(e,r,f)}function wT(e,t,r,n,i){e!==t&&bT(t,function(a,o){if(i||(i=new xn),Cr(a))BF(e,t,o,r,wT,n,i);else{var s=n?n(Np(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),kp(e,o,s)}},Nu)}function FF(e,t){var r=-1,n=Rs(e)?Array(e.length):[];return LF(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function $F(e,t){var r=ur(e)?KC:FF;return r(e,CF(t))}function HF(e,t){return Zm($F(e,t),1)}function zF(e){for(var t=-1,r=e==null?0:e.length,n={};++ti=>{const a=e==null?void 0:e(i);if(r===!1||!a)return t==null?void 0:t(i)};var Q_;const Rt=typeof window<"u",gi=e=>typeof e=="boolean",_r=e=>typeof e=="number",KF=e=>typeof e=="string",Bp=()=>{};Rt&&((Q_=window==null?void 0:window.navigator)!=null&&Q_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Wc(e){return typeof e=="function"?e():L(e)}function XF(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}function ZF(e,t={}){let r,n,i=Bp;const a=s=>{clearTimeout(s),i(),i=Bp};return s=>{const l=Wc(e),u=Wc(t.maxWait);return r&&a(r),l<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((f,c)=>{i=t.rejectOnCancel?c:f,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,f(s())},u)),r=setTimeout(()=>{n&&a(n),n=null,f(s())},l)})}}function QF(e){return e}function Hd(e){return UL()?(YL(e),!0):!1}function JF(e,t=200,r={}){return XF(ZF(t,r),e)}function e$(e,t=200,r={}){const n=H(e.value),i=JF(()=>{n.value=e.value},t,r);return Ee(e,()=>i()),n}function t$(e,t=!0){dt()?Et(e):t?e():zt(e)}function Fp(e,t,r={}){const{immediate:n=!0}=r,i=H(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){i.value=!1,o()}function l(...u){o(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=null,e(...u)},Wc(t))}return n&&(i.value=!0,Rt&&l()),Hd(s),{isPending:Sd(i),start:l,stop:s}}function Wi(e){var t;const r=Wc(e);return(t=r==null?void 0:r.$el)!=null?t:r}const ry=Rt?window:void 0;function $n(...e){let t,r,n,i;if(KF(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=ry):[t,r,n,i]=e,!t)return Bp;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,c,d)=>(f.addEventListener(c,d,i),()=>f.removeEventListener(c,d,i)),l=Ee(()=>Wi(t),f=>{o(),f&&a.push(...r.flatMap(c=>n.map(d=>s(f,c,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Hd(u),u}function r$(e,t,r={}){const{window:n=ry,ignore:i=[],capture:a=!0,detectIframe:o=!1}=r;if(!n)return;let s=!0,l;const u=h=>i.some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(p=>p===h.target||h.composedPath().includes(p));{const p=Wi(v);return p&&(h.target===p||h.composedPath().includes(p))}}),f=h=>{n.clearTimeout(l);const v=Wi(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(s=!u(h)),!s){s=!0;return}t(h)}},c=[$n(n,"click",f,{passive:!0,capture:a}),$n(n,"pointerdown",h=>{const v=Wi(e);v&&(s=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),$n(n,"pointerup",h=>{if(h.button===0){const v=h.composedPath();h.composedPath=()=>v,l=n.setTimeout(()=>f(h),50)}},{passive:!0}),o&&$n(n,"blur",h=>{var v;const p=Wi(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(h)})].filter(Boolean);return()=>c.forEach(h=>h())}function n$(e,t=!1){const r=H(),n=()=>r.value=Boolean(e());return n(),t$(n,t),r}const $p=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Hp="__vueuse_ssr_handlers__";$p[Hp]=$p[Hp]||{};$p[Hp];var J_=Object.getOwnPropertySymbols,i$=Object.prototype.hasOwnProperty,a$=Object.prototype.propertyIsEnumerable,o$=(e,t)=>{var r={};for(var n in e)i$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&J_)for(var n of J_(e))t.indexOf(n)<0&&a$.call(e,n)&&(r[n]=e[n]);return r};function ds(e,t,r={}){const n=r,{window:i=ry}=n,a=o$(n,["window"]);let o;const s=n$(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ee(()=>Wi(e),c=>{l(),s.value&&i&&c&&(o=new ResizeObserver(t),o.observe(c,a))},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return Hd(f),{isSupported:s,stop:f}}var eb;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(eb||(eb={}));var s$=Object.defineProperty,tb=Object.getOwnPropertySymbols,l$=Object.prototype.hasOwnProperty,u$=Object.prototype.propertyIsEnumerable,rb=(e,t,r)=>t in e?s$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f$=(e,t)=>{for(var r in t||(t={}))l$.call(t,r)&&rb(e,r,t[r]);if(tb)for(var r of tb(t))u$.call(t,r)&&rb(e,r,t[r]);return e};const c$={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]};f$({linear:QF},c$);const Vc=e=>e===void 0,hs=e=>typeof Element>"u"?!1:e instanceof Element,d$=e=>Ue(e)?!Number.isNaN(Number(e)):!1,nb=e=>Object.keys(e),fc=(e,t,r)=>({get value(){return lu(e,t,r)},set value(n){jF(e,t,n)}});class h$ extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function lo(e,t){throw new h$(`[${e}] ${t}`)}const CT=(e="")=>e.split(" ").filter(t=>!!t.trim()),Pl=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Uo=(e,t)=>{!e||!t.trim()||e.classList.add(...CT(t))},rs=(e,t)=>{!e||!t.trim()||e.classList.remove(...CT(t))},ib=(e,t)=>{var r;if(!Rt||!e||!t)return"";let n=Sn(t);n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const a=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return a?a[n]:""}catch{return e.style[n]}};function vs(e,t="px"){if(!e)return"";if(_r(e)||d$(e))return`${e}${t}`;if(Ue(e))return e}/*! Element Plus Icons Vue v2.0.10 */var Xn=(e,t)=>{let r=e.__vccOpts||e;for(let[n,i]of t)r[n]=i;return r},v$={name:"ArrowDown"},p$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},g$=se("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),m$=[g$];function y$(e,t,r,n,i,a){return K(),Se("svg",p$,m$)}var TT=Xn(v$,[["render",y$],["__file","arrow-down.vue"]]),_$={name:"ArrowRight"},b$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},w$=se("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),x$=[w$];function S$(e,t,r,n,i,a){return K(),Se("svg",b$,x$)}var ny=Xn(_$,[["render",S$],["__file","arrow-right.vue"]]),C$={name:"ArrowUp"},T$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},M$=se("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),A$=[M$];function E$(e,t,r,n,i,a){return K(),Se("svg",T$,A$)}var P$=Xn(C$,[["render",E$],["__file","arrow-up.vue"]]),L$={name:"CircleCloseFilled"},D$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},I$=se("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),R$=[I$];function O$(e,t,r,n,i,a){return K(),Se("svg",D$,R$)}var MT=Xn(L$,[["render",O$],["__file","circle-close-filled.vue"]]),k$={name:"Close"},N$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},B$=se("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),F$=[B$];function $$(e,t,r,n,i,a){return K(),Se("svg",N$,F$)}var zp=Xn(k$,[["render",$$],["__file","close.vue"]]),H$={name:"InfoFilled"},z$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},W$=se("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),V$=[W$];function G$(e,t,r,n,i,a){return K(),Se("svg",z$,V$)}var AT=Xn(H$,[["render",G$],["__file","info-filled.vue"]]),U$={name:"Loading"},Y$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},q$=se("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),j$=[q$];function K$(e,t,r,n,i,a){return K(),Se("svg",Y$,j$)}var ET=Xn(U$,[["render",K$],["__file","loading.vue"]]),X$={name:"More"},Z$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Q$=se("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),J$=[Q$];function e5(e,t,r,n,i,a){return K(),Se("svg",Z$,J$)}var t5=Xn(X$,[["render",e5],["__file","more.vue"]]),r5={name:"SuccessFilled"},n5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},i5=se("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),a5=[i5];function o5(e,t,r,n,i,a){return K(),Se("svg",n5,a5)}var PT=Xn(r5,[["render",o5],["__file","success-filled.vue"]]),s5={name:"WarningFilled"},l5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},u5=se("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),f5=[u5];function c5(e,t,r,n,i,a){return K(),Se("svg",l5,f5)}var LT=Xn(s5,[["render",c5],["__file","warning-filled.vue"]]);const DT="__epPropKey",Pe=e=>e,d5=e=>Ke(e)&&!!e[DT],zd=(e,t)=>{if(!Ke(e)||d5(e))return e;const{values:r,required:n,default:i,type:a,validator:o}=e,l={type:a,required:!!n,validator:r||o?u=>{let f=!1,c=[];if(r&&(c=Array.from(r),ze(e,"default")&&c.push(i),f||(f=c.includes(u))),o&&(f||(f=o(u))),!f&&c.length>0){const d=[...new Set(c)].map(h=>JSON.stringify(h)).join(", ");CD(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return f}:void 0,[DT]:!0};return ze(e,"default")&&(l.default=i),l},ot=e=>zF(Object.entries(e).map(([t,r])=>[t,zd(r,t)])),Vi=Pe([String,Object,Function]),h5={Close:zp,SuccessFilled:PT,InfoFilled:AT,WarningFilled:LT,CircleCloseFilled:MT},ab={success:PT,warning:LT,error:MT,info:AT},Er=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},v5=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),p5=(e,t)=>(e.install=r=>{r.directive(t,e)},e),aa=e=>(e.install=sr,e),Lt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Wd="update:modelValue",Vd=["","default","small","large"],cc=e=>{const t=ye(e)?e:[e],r=[];return t.forEach(n=>{var i;ye(n)?r.push(...cc(n)):Ji(n)&&ye(n.children)?r.push(...cc(n.children)):(r.push(n),Ji(n)&&((i=n.component)!=null&&i.subTree)&&r.push(...cc(n.component.subTree)))}),r},Va=e=>e,IT=Symbol("buttonGroupContextKey"),Os=Symbol("checkboxGroupContextKey"),RT=Symbol(),ks=Symbol("formContextKey"),uo=Symbol("formItemContextKey"),OT=Symbol("rowContextKey"),kT=Symbol("scrollbarContextKey"),iy=Symbol("popper"),NT=Symbol("popperContent"),ay=Symbol("elTooltip"),BT=e=>{const t=dt();return $(()=>{var r,n;return(n=((r=t.proxy)==null?void 0:r.$props)[e])!=null?n:void 0})},Gc=H();function oa(e,t=void 0){const r=dt()?Re(RT,Gc):Gc;return e?$(()=>{var n,i;return(i=(n=r.value)==null?void 0:n[e])!=null?i:t}):r}const g5=(e,t,r=!1)=>{var n;const i=!!dt(),a=i?oa():void 0,o=(n=t==null?void 0:t.provide)!=null?n:i?Ct:void 0;if(!o)return;const s=$(()=>{const l=L(e);return a!=null&&a.value?m5(a.value,l):l});return o(RT,s),(r||!Gc.value)&&(Gc.value=s.value),s},m5=(e,t)=>{var r;const n=[...new Set([...nb(e),...nb(t)])],i={};for(const a of n)i[a]=(r=t[a])!=null?r:e[a];return i},Gd=zd({type:String,values:Vd,required:!1}),fo=(e,t={})=>{const r=H(void 0),n=t.prop?r:BT("size"),i=t.global?r:oa("size"),a=t.form?{size:void 0}:Re(ks,void 0),o=t.formItem?{size:void 0}:Re(uo,void 0);return $(()=>n.value||L(e)||(o==null?void 0:o.size)||(a==null?void 0:a.size)||i.value||"")},oy=e=>{const t=BT("disabled"),r=Re(ks,void 0);return $(()=>t.value||L(e)||(r==null?void 0:r.disabled)||!1)},y5=({from:e,replacement:t,scope:r,version:n,ref:i,type:a="API"},o)=>{Ee(()=>L(o),s=>{},{immediate:!0})},sy="el",_5="is-",da=(e,t,r,n,i)=>{let a=`${e}-${t}`;return r&&(a+=`-${r}`),n&&(a+=`__${n}`),i&&(a+=`--${i}`),a},Ne=e=>{const t=oa("namespace",sy);return{namespace:t,b:(v="")=>da(t.value,e,v,"",""),e:v=>v?da(t.value,e,"",v,""):"",m:v=>v?da(t.value,e,"","",v):"",be:(v,p)=>v&&p?da(t.value,e,v,p,""):"",em:(v,p)=>v&&p?da(t.value,e,"",v,p):"",bm:(v,p)=>v&&p?da(t.value,e,v,"",p):"",bem:(v,p,g)=>v&&p&&g?da(t.value,e,v,p,g):"",is:(v,...p)=>{const g=p.length>=1?p[0]:!0;return v&&g?`${_5}${v}`:""},cssVar:v=>{const p={};for(const g in v)v[g]&&(p[`--${t.value}-${g}`]=v[g]);return p},cssVarName:v=>`--${t.value}-${v}`,cssVarBlock:v=>{const p={};for(const g in v)v[g]&&(p[`--${t.value}-${e}-${g}`]=v[g]);return p},cssVarBlockName:v=>`--${t.value}-${e}-${v}`}},ob={prefix:Math.floor(Math.random()*1e4),current:0},b5=Symbol("elIdInjection"),FT=()=>dt()?Re(b5,ob):ob,ly=e=>{const t=FT(),r=oa("namespace",sy);return $(()=>L(e)||`${r.value}-id-${t.prefix}-${t.current++}`)},Ud=()=>{const e=Re(ks,void 0),t=Re(uo,void 0);return{form:e,formItem:t}},$T=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=H(!1)),n||(n=H(!1));const i=H();let a;const o=$(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return Et(()=>{a=Ee([wn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:ly().value);u!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(n!=null&&n.value)&&!l&&u&&t.addInputId(u)),i.value=u)},{immediate:!0})}),Iu(()=>{a&&a(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}};var w5={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",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"},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:"",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"},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"}}};const x5=e=>(t,r)=>S5(t,r,L(e)),S5=(e,t,r)=>lu(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var a;return`${(a=t==null?void 0:t[i])!=null?a:`{${i}}`}`}),C5=e=>{const t=$(()=>L(e).name),r=St(e)?e:H(e);return{lang:t,locale:r,t:x5(e)}},HT=()=>{const e=oa("locale");return C5($(()=>e.value||w5))},T5=zd({type:Pe(Boolean),default:null}),M5=zd({type:Pe(Function)}),A5=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:T5,[r]:M5};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:f,onHide:c})=>{const d=dt(),{emit:h}=d,v=d.props,p=$(()=>Le(v[r])),g=$(()=>v[e]===null),m=S=>{o.value!==!0&&(o.value=!0,s&&(s.value=S),Le(f)&&f(S))},y=S=>{o.value!==!1&&(o.value=!1,s&&(s.value=S),Le(c)&&c(S))},_=S=>{if(v.disabled===!0||Le(u)&&!u())return;const C=p.value&&Rt;C&&h(t,!0),(g.value||!C)&&m(S)},b=S=>{if(v.disabled===!0||!Rt)return;const C=p.value&&Rt;C&&h(t,!1),(g.value||!C)&&y(S)},x=S=>{gi(S)&&(v.disabled&&S?p.value&&h(t,!1):o.value!==S&&(S?m():y()))},w=()=>{o.value?b():_()};return Ee(()=>v[e],x),l&&d.appContext.config.globalProperties.$route!==void 0&&Ee(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&b()}),Et(()=>{x(v[e])}),{hide:b,show:_,toggle:w,hasUpdateHandler:p}},useModelToggleProps:i,useModelToggleEmits:n}};var wr="top",an="bottom",on="right",xr="left",uy="auto",Fu=[wr,an,on,xr],ps="start",fu="end",E5="clippingParents",zT="viewport",Ys="popper",P5="reference",sb=Fu.reduce(function(e,t){return e.concat([t+"-"+ps,t+"-"+fu])},[]),fy=[].concat(Fu,[uy]).reduce(function(e,t){return e.concat([t,t+"-"+ps,t+"-"+fu])},[]),L5="beforeRead",D5="read",I5="afterRead",R5="beforeMain",O5="main",k5="afterMain",N5="beforeWrite",B5="write",F5="afterWrite",$5=[L5,D5,I5,R5,O5,k5,N5,B5,F5];function qn(e){return e?(e.nodeName||"").toLowerCase():null}function An(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gs(e){var t=An(e).Element;return e instanceof t||e instanceof Element}function tn(e){var t=An(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cy(e){if(typeof ShadowRoot>"u")return!1;var t=An(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function H5(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!tn(a)||!qn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function z5(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!tn(i)||!qn(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var WT={name:"applyStyles",enabled:!0,phase:"write",fn:H5,effect:z5,requires:["computeStyles"]};function Gn(e){return e.split("-")[0]}var to=Math.max,Uc=Math.min,ms=Math.round;function ys(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(tn(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(n=ms(r.width)/o||1),a>0&&(i=ms(r.height)/a||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function dy(e){var t=ys(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function VT(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&cy(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function mi(e){return An(e).getComputedStyle(e)}function W5(e){return["table","td","th"].indexOf(qn(e))>=0}function sa(e){return((gs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yd(e){return qn(e)==="html"?e:e.assignedSlot||e.parentNode||(cy(e)?e.host:null)||sa(e)}function lb(e){return!tn(e)||mi(e).position==="fixed"?null:e.offsetParent}function V5(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&tn(e)){var n=mi(e);if(n.position==="fixed")return null}var i=Yd(e);for(cy(i)&&(i=i.host);tn(i)&&["html","body"].indexOf(qn(i))<0;){var a=mi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function $u(e){for(var t=An(e),r=lb(e);r&&W5(r)&&mi(r).position==="static";)r=lb(r);return r&&(qn(r)==="html"||qn(r)==="body"&&mi(r).position==="static")?t:r||V5(e)||t}function hy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ll(e,t,r){return to(e,Uc(t,r))}function G5(e,t,r){var n=Ll(e,t,r);return n>r?r:n}function GT(){return{top:0,right:0,bottom:0,left:0}}function UT(e){return Object.assign({},GT(),e)}function YT(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var U5=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,UT(typeof e!="number"?e:YT(e,Fu))};function Y5(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Gn(r.placement),l=hy(s),u=[xr,on].indexOf(s)>=0,f=u?"height":"width";if(!(!a||!o)){var c=U5(i.padding,r),d=dy(a),h=l==="y"?wr:xr,v=l==="y"?an:on,p=r.rects.reference[f]+r.rects.reference[l]-o[l]-r.rects.popper[f],g=o[l]-r.rects.reference[l],m=$u(a),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,b=c[h],x=y-d[f]-c[v],w=y/2-d[f]/2+_,S=Ll(b,w,x),C=l;r.modifiersData[n]=(t={},t[C]=S,t.centerOffset=S-w,t)}}function q5(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!VT(t.elements.popper,i)||(t.elements.arrow=i))}var j5={name:"arrow",enabled:!0,phase:"main",fn:Y5,effect:q5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _s(e){return e.split("-")[1]}var K5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X5(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:ms(t*i)/i||0,y:ms(r*i)/i||0}}function ub(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,c=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,p=v===void 0?0:v,g=typeof f=="function"?f({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=xr,b=wr,x=window;if(u){var w=$u(r),S="clientHeight",C="clientWidth";if(w===An(r)&&(w=sa(r),mi(w).position!=="static"&&s==="absolute"&&(S="scrollHeight",C="scrollWidth")),w=w,i===wr||(i===xr||i===on)&&a===fu){b=an;var T=c&&w===x&&x.visualViewport?x.visualViewport.height:w[S];p-=T-n.height,p*=l?1:-1}if(i===xr||(i===wr||i===an)&&a===fu){_=on;var E=c&&w===x&&x.visualViewport?x.visualViewport.width:w[C];h-=E-n.width,h*=l?1:-1}}var A=Object.assign({position:s},u&&K5),M=f===!0?X5({x:h,y:p}):{x:h,y:p};if(h=M.x,p=M.y,l){var D;return Object.assign({},A,(D={},D[b]=y?"0":"",D[_]=m?"0":"",D.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",D))}return Object.assign({},A,(t={},t[b]=y?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function Z5(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Gn(t.placement),variation:_s(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ub(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ub(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var qT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Z5,data:{}},of={passive:!0};function Q5(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=An(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(f){f.addEventListener("scroll",r.update,of)}),s&&l.addEventListener("resize",r.update,of),function(){a&&u.forEach(function(f){f.removeEventListener("scroll",r.update,of)}),s&&l.removeEventListener("resize",r.update,of)}}var jT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Q5,data:{}},J5={left:"right",right:"left",bottom:"top",top:"bottom"};function dc(e){return e.replace(/left|right|bottom|top/g,function(t){return J5[t]})}var e3={start:"end",end:"start"};function fb(e){return e.replace(/start|end/g,function(t){return e3[t]})}function vy(e){var t=An(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function py(e){return ys(sa(e)).left+vy(e).scrollLeft}function t3(e){var t=An(e),r=sa(e),n=t.visualViewport,i=r.clientWidth,a=r.clientHeight,o=0,s=0;return n&&(i=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,s=n.offsetTop)),{width:i,height:a,x:o+py(e),y:s}}function r3(e){var t,r=sa(e),n=vy(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=to(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=to(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+py(e),l=-n.scrollTop;return mi(i||r).direction==="rtl"&&(s+=to(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function gy(e){var t=mi(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function KT(e){return["html","body","#document"].indexOf(qn(e))>=0?e.ownerDocument.body:tn(e)&&gy(e)?e:KT(Yd(e))}function Dl(e,t){var r;t===void 0&&(t=[]);var n=KT(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=An(n),o=i?[a].concat(a.visualViewport||[],gy(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Dl(Yd(o)))}function Wp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function n3(e){var t=ys(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 cb(e,t){return t===zT?Wp(t3(e)):gs(t)?n3(t):Wp(r3(sa(e)))}function i3(e){var t=Dl(Yd(e)),r=["absolute","fixed"].indexOf(mi(e).position)>=0,n=r&&tn(e)?$u(e):e;return gs(n)?t.filter(function(i){return gs(i)&&VT(i,n)&&qn(i)!=="body"}):[]}function a3(e,t,r){var n=t==="clippingParents"?i3(e):[].concat(t),i=[].concat(n,[r]),a=i[0],o=i.reduce(function(s,l){var u=cb(e,l);return s.top=to(u.top,s.top),s.right=Uc(u.right,s.right),s.bottom=Uc(u.bottom,s.bottom),s.left=to(u.left,s.left),s},cb(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function XT(e){var t=e.reference,r=e.element,n=e.placement,i=n?Gn(n):null,a=n?_s(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case wr:l={x:o,y:t.y-r.height};break;case an:l={x:o,y:t.y+t.height};break;case on:l={x:t.x+t.width,y:s};break;case xr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?hy(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case ps:l[u]=l[u]-(t[f]/2-r[f]/2);break;case fu:l[u]=l[u]+(t[f]/2-r[f]/2);break}}return l}function cu(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.boundary,o=a===void 0?E5:a,s=r.rootBoundary,l=s===void 0?zT:s,u=r.elementContext,f=u===void 0?Ys:u,c=r.altBoundary,d=c===void 0?!1:c,h=r.padding,v=h===void 0?0:h,p=UT(typeof v!="number"?v:YT(v,Fu)),g=f===Ys?P5:Ys,m=e.rects.popper,y=e.elements[d?g:f],_=a3(gs(y)?y:y.contextElement||sa(e.elements.popper),o,l),b=ys(e.elements.reference),x=XT({reference:b,element:m,strategy:"absolute",placement:i}),w=Wp(Object.assign({},m,x)),S=f===Ys?w:b,C={top:_.top-S.top+p.top,bottom:S.bottom-_.bottom+p.bottom,left:_.left-S.left+p.left,right:S.right-_.right+p.right},T=e.modifiersData.offset;if(f===Ys&&T){var E=T[i];Object.keys(C).forEach(function(A){var M=[on,an].indexOf(A)>=0?1:-1,D=[wr,an].indexOf(A)>=0?"y":"x";C[A]+=E[D]*M})}return C}function o3(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?fy:l,f=_s(n),c=f?s?sb:sb.filter(function(v){return _s(v)===f}):Fu,d=c.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=c);var h=d.reduce(function(v,p){return v[p]=cu(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[Gn(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function s3(e){if(Gn(e)===uy)return[];var t=dc(e);return[fb(e),t,fb(t)]}function l3(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,f=r.boundary,c=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,p=r.allowedAutoPlacements,g=t.options.placement,m=Gn(g),y=m===g,_=l||(y||!v?[dc(g)]:s3(g)),b=[g].concat(_).reduce(function(Me,V){return Me.concat(Gn(V)===uy?o3(t,{placement:V,boundary:f,rootBoundary:c,padding:u,flipVariations:v,allowedAutoPlacements:p}):V)},[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,T=b[0],E=0;E=0,k=O?"width":"height",F=cu(t,{placement:A,boundary:f,rootBoundary:c,altBoundary:d,padding:u}),j=O?D?on:xr:D?an:wr;x[k]>w[k]&&(j=dc(j));var B=dc(j),N=[];if(a&&N.push(F[M]<=0),s&&N.push(F[j]<=0,F[B]<=0),N.every(function(Me){return Me})){T=A,C=!1;break}S.set(A,N)}if(C)for(var U=v?3:1,re=function(Me){var V=b.find(function(J){var W=S.get(J);if(W)return W.slice(0,Me).every(function(Y){return Y})});if(V)return T=V,"break"},ae=U;ae>0;ae--){var me=re(ae);if(me==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}var u3={name:"flip",enabled:!0,phase:"main",fn:l3,requiresIfExists:["offset"],data:{_skip:!1}};function db(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function hb(e){return[wr,on,an,xr].some(function(t){return e[t]>=0})}function f3(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=cu(t,{elementContext:"reference"}),s=cu(t,{altBoundary:!0}),l=db(o,n),u=db(s,i,a),f=hb(l),c=hb(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":c})}var c3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:f3};function d3(e,t,r){var n=Gn(e),i=[xr,wr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[xr,on].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function h3(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=fy.reduce(function(f,c){return f[c]=d3(c,t.rects,a),f},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}var v3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:h3};function p3(e){var t=e.state,r=e.name;t.modifiersData[r]=XT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ZT={name:"popperOffsets",enabled:!0,phase:"read",fn:p3,data:{}};function g3(e){return e==="x"?"y":"x"}function m3(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,f=r.altBoundary,c=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,p=v===void 0?0:v,g=cu(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:f}),m=Gn(t.placement),y=_s(t.placement),_=!y,b=hy(m),x=g3(b),w=t.modifiersData.popperOffsets,S=t.rects.reference,C=t.rects.popper,T=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(w){if(a){var D,O=b==="y"?wr:xr,k=b==="y"?an:on,F=b==="y"?"height":"width",j=w[b],B=j+g[O],N=j-g[k],U=h?-C[F]/2:0,re=y===ps?S[F]:C[F],ae=y===ps?-C[F]:-S[F],me=t.elements.arrow,Me=h&&me?dy(me):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:GT(),J=V[O],W=V[k],Y=Ll(0,S[F],Me[F]),le=_?S[F]/2-U-Y-J-E.mainAxis:re-Y-J-E.mainAxis,he=_?-S[F]/2+U+Y+W+E.mainAxis:ae+Y+W+E.mainAxis,Q=t.elements.arrow&&$u(t.elements.arrow),P=Q?b==="y"?Q.clientTop||0:Q.clientLeft||0:0,I=(D=A==null?void 0:A[b])!=null?D:0,z=j+le-I-P,G=j+he-I,q=Ll(h?Uc(B,z):B,j,h?to(N,G):N);w[b]=q,M[b]=q-j}if(s){var ne,ce=b==="x"?wr:xr,te=b==="x"?an:on,ie=w[x],X=x==="y"?"height":"width",_e=ie+g[ce],ve=ie-g[te],be=[wr,xr].indexOf(m)!==-1,Ie=(ne=A==null?void 0:A[x])!=null?ne:0,Fe=be?_e:ie-S[X]-C[X]-Ie+E.altAxis,rt=be?ie+S[X]+C[X]-Ie-E.altAxis:ve,et=h&&be?G5(Fe,ie,rt):Ll(h?Fe:_e,ie,h?rt:ve);w[x]=et,M[x]=et-ie}t.modifiersData[n]=M}}var y3={name:"preventOverflow",enabled:!0,phase:"main",fn:m3,requiresIfExists:["offset"]};function _3(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function b3(e){return e===An(e)||!tn(e)?vy(e):_3(e)}function w3(e){var t=e.getBoundingClientRect(),r=ms(t.width)/e.offsetWidth||1,n=ms(t.height)/e.offsetHeight||1;return r!==1||n!==1}function x3(e,t,r){r===void 0&&(r=!1);var n=tn(t),i=tn(t)&&w3(t),a=sa(t),o=ys(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((qn(t)!=="body"||gy(a))&&(s=b3(t)),tn(t)?(l=ys(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=py(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function S3(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function C3(e){var t=S3(e);return $5.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function T3(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function M3(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var vb={placement:"bottom",modifiers:[],strategy:"absolute"};function pb(){for(var e=arguments.length,t=new Array(e),r=0;r{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return Hd(()=>r()),{registerTimeout:t,cancelTimeout:r}}let zo=[];const gb=e=>{const t=e;t.key===Lt.esc&&zo.forEach(r=>r(t))},L3=e=>{Et(()=>{zo.length===0&&document.addEventListener("keydown",gb),Rt&&zo.push(e)}),rr(()=>{zo=zo.filter(t=>t!==e),zo.length===0&&Rt&&document.removeEventListener("keydown",gb)})};let mb;const JT=()=>{const e=oa("namespace",sy),t=FT(),r=$(()=>`${e.value}-popper-container-${t.prefix}`),n=$(()=>`#${r.value}`);return{id:r,selector:n}},D3=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},I3=()=>{Pd(()=>{if(!Rt)return;const{id:e,selector:t}=JT();!mb&&!document.body.querySelector(t.value)&&(mb=D3(e.value))})},R3=ot({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),eM=({showAfter:e,hideAfter:t,open:r,close:n})=>{const{registerTimeout:i}=P3();return{onOpen:s=>{i(()=>{r(s)},L(e))},onClose:s=>{i(()=>{n(s)},L(t))}}},tM=Symbol("elForwardRef"),O3=e=>{Ct(tM,{setForwardRef:r=>{e.value=r}})},k3=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),yb=H(0),yy=()=>{const e=oa("zIndex",2e3),t=$(()=>e.value+yb.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(yb.value++,t.value)}};var Je=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const N3=ot({size:{type:Pe([Number,String])},color:{type:String}}),B3=ue({name:"ElIcon",inheritAttrs:!1}),F3=ue({...B3,props:N3,setup(e){const t=e,r=Ne("icon"),n=$(()=>{const{size:i,color:a}=t;return!i&&!a?{}:{fontSize:Vc(i)?void 0:vs(i),"--color":a}});return(i,a)=>(K(),Se("i",go({class:L(r).b(),style:L(n)},i.$attrs),[Be(i.$slots,"default")],16))}});var $3=Je(F3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Cn=Er($3),Yo=4,H3={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"}},z3=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),W3=ot({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),V3="Thumb",G3=ue({__name:"thumb",props:W3,setup(e){const t=e,r=Re(kT),n=Ne("scrollbar");r||lo(V3,"can not inject scrollbar context");const i=H(),a=H(),o=H({}),s=H(!1);let l=!1,u=!1,f=Rt?document.onselectstart:null;const c=$(()=>H3[t.vertical?"vertical":"horizontal"]),d=$(()=>z3({size:t.size,move:t.move,bar:c.value})),h=$(()=>i.value[c.value.offset]**2/r.wrapElement[c.value.scrollSize]/t.ratio/a.value[c.value.offset]),v=w=>{var S;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(S=window.getSelection())==null||S.removeAllRanges(),g(w);const C=w.currentTarget;C&&(o.value[c.value.axis]=C[c.value.offset]-(w[c.value.client]-C.getBoundingClientRect()[c.value.direction]))},p=w=>{if(!a.value||!i.value||!r.wrapElement)return;const S=Math.abs(w.target.getBoundingClientRect()[c.value.direction]-w[c.value.client]),C=a.value[c.value.offset]/2,T=(S-C)*100*h.value/i.value[c.value.offset];r.wrapElement[c.value.scroll]=T*r.wrapElement[c.value.scrollSize]/100},g=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),f=document.onselectstart,document.onselectstart=()=>!1},m=w=>{if(!i.value||!a.value||l===!1)return;const S=o.value[c.value.axis];if(!S)return;const C=(i.value.getBoundingClientRect()[c.value.direction]-w[c.value.client])*-1,T=a.value[c.value.offset]-S,E=(C-T)*100*h.value/i.value[c.value.offset];r.wrapElement[c.value.scroll]=E*r.wrapElement[c.value.scrollSize]/100},y=()=>{l=!1,o.value[c.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),x(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},b=()=>{u=!0,s.value=l};rr(()=>{x(),document.removeEventListener("mouseup",y)});const x=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return $n(wn(r,"scrollbarElement"),"mousemove",_),$n(wn(r,"scrollbarElement"),"mouseleave",b),(w,S)=>(K(),xe(Kn,{name:L(n).b("fade"),persisted:""},{default:Z(()=>[qt(se("div",{ref_key:"instance",ref:i,class:de([L(n).e("bar"),L(n).is(L(c).key)]),onMousedown:p},[se("div",{ref_key:"thumb",ref:a,class:de(L(n).e("thumb")),style:At(L(d)),onMousedown:v},null,38)],34),[[pi,w.always||s.value]])]),_:1},8,["name"]))}});var _b=Je(G3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const U3=ot({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Y3=ue({__name:"bar",props:U3,setup(e,{expose:t}){const r=e,n=H(0),i=H(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-Yo,l=o.offsetWidth-Yo;i.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/l*r.ratioX}}}),(o,s)=>(K(),Se(yt,null,[ee(_b,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),ee(_b,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var q3=Je(Y3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const j3=ot({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Pe([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}}),K3={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(_r)},X3="ElScrollbar",Z3=ue({name:X3}),Q3=ue({...Z3,props:j3,emits:K3,setup(e,{expose:t,emit:r}){const n=e,i=Ne("scrollbar");let a,o;const s=H(),l=H(),u=H(),f=H("0"),c=H("0"),d=H(),h=H(1),v=H(1),p=$(()=>{const S={};return n.height&&(S.height=vs(n.height)),n.maxHeight&&(S.maxHeight=vs(n.maxHeight)),[n.wrapStyle,S]}),g=$(()=>[n.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!n.native}]),m=$(()=>[i.e("view"),n.viewClass]),y=()=>{var S;l.value&&((S=d.value)==null||S.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(S,C){Ke(S)?l.value.scrollTo(S):_r(S)&&_r(C)&&l.value.scrollTo(S,C)}const b=S=>{_r(S)&&(l.value.scrollTop=S)},x=S=>{_r(S)&&(l.value.scrollLeft=S)},w=()=>{if(!l.value)return;const S=l.value.offsetHeight-Yo,C=l.value.offsetWidth-Yo,T=S**2/l.value.scrollHeight,E=C**2/l.value.scrollWidth,A=Math.max(T,n.minSize),M=Math.max(E,n.minSize);h.value=T/(S-T)/(A/(S-A)),v.value=E/(C-E)/(M/(C-M)),c.value=A+Yon.noresize,S=>{S?(a==null||a(),o==null||o()):({stop:a}=ds(u,w),o=$n("resize",w))},{immediate:!0}),Ee(()=>[n.maxHeight,n.height],()=>{n.native||zt(()=>{var S;w(),l.value&&((S=d.value)==null||S.handleScroll(l.value))})}),Ct(kT,ln({scrollbarElement:s,wrapElement:l})),Et(()=>{n.native||zt(()=>{w()})}),Ld(()=>w()),t({wrapRef:l,update:w,scrollTo:_,setScrollTop:b,setScrollLeft:x,handleScroll:y}),(S,C)=>(K(),Se("div",{ref_key:"scrollbarRef",ref:s,class:de(L(i).b())},[se("div",{ref_key:"wrapRef",ref:l,class:de(L(g)),style:At(L(p)),onScroll:y},[(K(),xe(hi(S.tag),{ref_key:"resizeRef",ref:u,class:de(L(m)),style:At(S.viewStyle)},{default:Z(()=>[Be(S.$slots,"default")]),_:3},8,["class","style"]))],38),S.native?Ye("v-if",!0):(K(),xe(q3,{key:0,ref_key:"barRef",ref:d,height:c.value,width:f.value,always:S.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var J3=Je(Q3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const rM=Er(J3),e4=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],nM=ot({role:{type:String,values:e4,default:"tooltip"}}),t4=ue({name:"ElPopperRoot",inheritAttrs:!1}),r4=ue({...t4,props:nM,setup(e,{expose:t}){const r=e,n=H(),i=H(),a=H(),o=H(),s=$(()=>r.role),l={triggerRef:n,popperInstanceRef:i,contentRef:a,referenceRef:o,role:s};return t(l),Ct(iy,l),(u,f)=>Be(u.$slots,"default")}});var n4=Je(r4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const iM=ot({arrowOffset:{type:Number,default:5}}),i4=ue({name:"ElPopperArrow",inheritAttrs:!1}),a4=ue({...i4,props:iM,setup(e,{expose:t}){const r=e,n=Ne("popper"),{arrowOffset:i,arrowRef:a}=Re(NT,void 0);return Ee(()=>r.arrowOffset,o=>{i.value=o}),rr(()=>{a.value=void 0}),t({arrowRef:a}),(o,s)=>(K(),Se("span",{ref_key:"arrowRef",ref:a,class:de(L(n).e("arrow")),"data-popper-arrow":""},null,2))}});var o4=Je(a4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const s4="ElOnlyChild",l4=ue({name:s4,setup(e,{slots:t,attrs:r}){var n;const i=Re(tM),a=k3((n=i==null?void 0:i.setForwardRef)!=null?n:sr);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=aM(s);return l?qt(vi(l,r),[[a]]):null}}});function aM(e){if(!e)return null;const t=e;for(const r of t){if(Ke(r))switch(r.type){case br:continue;case Is:case"svg":return bb(r);case yt:return aM(r.children);default:return r}return bb(r)}return null}function bb(e){const t=Ne("only-child");return ee("span",{class:t.e("content")},[e])}const oM=ot({virtualRef:{type:Pe(Object)},virtualTriggering:Boolean,onMouseenter:{type:Pe(Function)},onMouseleave:{type:Pe(Function)},onClick:{type:Pe(Function)},onKeydown:{type:Pe(Function)},onFocus:{type:Pe(Function)},onBlur:{type:Pe(Function)},onContextmenu:{type:Pe(Function)},id:String,open:Boolean}),u4=ue({name:"ElPopperTrigger",inheritAttrs:!1}),f4=ue({...u4,props:oM,setup(e,{expose:t}){const r=e,{role:n,triggerRef:i}=Re(iy,void 0);O3(i);const a=$(()=>s.value?r.id:void 0),o=$(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),s=$(()=>{if(n&&n.value!=="tooltip")return n.value}),l=$(()=>s.value?`${r.open}`:void 0);let u;return Et(()=>{Ee(()=>r.virtualRef,f=>{f&&(i.value=Wi(f))},{immediate:!0}),Ee(i,(f,c)=>{u==null||u(),u=void 0,hs(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=r[d];v&&(f.addEventListener(d.slice(2).toLowerCase(),v),(h=c==null?void 0:c.removeEventListener)==null||h.call(c,d.slice(2).toLowerCase(),v))}),u=Ee([a,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{ty(d[v])?f.removeAttribute(h):f.setAttribute(h,d[v])})},{immediate:!0})),hs(c)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>c.removeAttribute(d))},{immediate:!0})}),rr(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(f,c)=>f.virtualTriggering?Ye("v-if",!0):(K(),xe(L(l4),go({key:0},f.$attrs,{"aria-controls":L(a),"aria-describedby":L(o),"aria-expanded":L(l),"aria-haspopup":L(s)}),{default:Z(()=>[Be(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var c4=Je(f4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Rh="focus-trap.focus-after-trapped",Oh="focus-trap.focus-after-released",d4="focus-trap.focusout-prevented",wb={cancelable:!0,bubbles:!1},h4={cancelable:!0,bubbles:!1},xb="focusAfterTrapped",Sb="focusAfterReleased",v4=Symbol("elFocusTrap"),_y=H(),qd=H(0),by=H(0);let sf=0;const sM=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},Cb=(e,t)=>{for(const r of e)if(!p4(r,t))return r},p4=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},g4=e=>{const t=sM(e),r=Cb(t,e),n=Cb(t.reverse(),e);return[r,n]},m4=e=>e instanceof HTMLInputElement&&"select"in e,Ni=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),by.value=window.performance.now(),e!==r&&m4(e)&&t&&e.select()}};function Tb(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const y4=()=>{let e=[];return{push:n=>{const i=e[0];i&&n!==i&&i.pause(),e=Tb(e,n),e.unshift(n)},remove:n=>{var i,a;e=Tb(e,n),(a=(i=e[0])==null?void 0:i.resume)==null||a.call(i)}}},_4=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Ni(n,t),document.activeElement!==r)return},Mb=y4(),b4=()=>qd.value>by.value,lf=()=>{_y.value="pointer",qd.value=window.performance.now()},Ab=()=>{_y.value="keyboard",qd.value=window.performance.now()},w4=()=>(Et(()=>{sf===0&&(document.addEventListener("mousedown",lf),document.addEventListener("touchstart",lf),document.addEventListener("keydown",Ab)),sf++}),rr(()=>{sf--,sf<=0&&(document.removeEventListener("mousedown",lf),document.removeEventListener("touchstart",lf),document.removeEventListener("keydown",Ab))}),{focusReason:_y,lastUserFocusTimestamp:qd,lastAutomatedFocusTimestamp:by}),uf=e=>new CustomEvent(d4,{...h4,detail:e}),x4=ue({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[xb,Sb,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=H();let n,i;const{focusReason:a}=w4();L3(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:p,altKey:g,ctrlKey:m,metaKey:y,currentTarget:_,shiftKey:b}=v,{loop:x}=e,w=p===Lt.tab&&!g&&!m&&!y,S=document.activeElement;if(w&&S){const C=_,[T,E]=g4(C);if(T&&E){if(!b&&S===E){const M=uf({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),x&&Ni(T,!0))}else if(b&&[T,C].includes(S)){const M=uf({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),x&&Ni(E,!0))}}else if(S===C){const M=uf({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||v.preventDefault()}}};Ct(v4,{focusTrapRef:r,onKeydown:s}),Ee(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),Ee([r],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",f),v.addEventListener("focusout",c)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",f),p.removeEventListener("focusout",c))});const l=v=>{t(xb,v)},u=v=>t(Sb,v),f=v=>{const p=L(r);if(!p)return;const g=v.target,m=v.relatedTarget,y=g&&p.contains(g);e.trapped||m&&p.contains(m)||(n=m),y&&t("focusin",v),!o.paused&&e.trapped&&(y?i=g:Ni(i,!0))},c=v=>{const p=L(r);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!ty(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=uf({focusReason:a.value});t("focusout-prevented",m),m.defaultPrevented||Ni(i,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await zt();const v=L(r);if(v){Mb.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const m=new Event(Rh,wb);v.addEventListener(Rh,l),v.dispatchEvent(m),m.defaultPrevented||zt(()=>{let y=e.focusStartEl;Ue(y)||(Ni(y),document.activeElement!==y&&(y="first")),y==="first"&&_4(sM(v),!0),(document.activeElement===p||y==="container")&&Ni(v)})}}}function h(){const v=L(r);if(v){v.removeEventListener(Rh,l);const p=new CustomEvent(Oh,{...wb,detail:{focusReason:a.value}});v.addEventListener(Oh,u),v.dispatchEvent(p),!p.defaultPrevented&&(a.value=="keyboard"||!b4())&&Ni(n??document.body),v.removeEventListener(Oh,l),Mb.remove(o)}}return Et(()=>{e.trapped&&d(),Ee(()=>e.trapped,v=>{v?d():h()})}),rr(()=>{e.trapped&&h()}),{onKeydown:s}}});function S4(e,t,r,n,i,a){return Be(e.$slots,"default",{handleKeydown:e.onKeydown})}var C4=Je(x4,[["render",S4],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const T4=["fixed","absolute"],M4=ot({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Pe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:fy,default:"bottom"},popperOptions:{type:Pe(Object),default:()=>({})},strategy:{type:String,values:T4,default:"absolute"}}),lM=ot({...M4,id:String,style:{type:Pe([String,Array,Object])},className:{type:Pe([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:Pe([String,Array,Object])},popperStyle:{type:Pe([String,Array,Object])},referenceEl:{type:Pe(Object)},triggerTargetEl:{type:Pe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),A4={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Eb=(e,t)=>{const{placement:r,strategy:n,popperOptions:i}=e,a={placement:r,strategy:n,...i,modifiers:P4(e)};return L4(a,t),D4(a,i==null?void 0:i.modifiers),a},E4=e=>{if(Rt)return Wi(e)};function P4(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=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:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function L4(e,{arrowEl:t,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:t,padding:r??5}})}function D4(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const I4=ue({name:"ElPopperContent"}),R4=ue({...I4,props:lM,emits:A4,setup(e,{expose:t,emit:r}){const n=e,{popperInstanceRef:i,contentRef:a,triggerRef:o,role:s}=Re(iy,void 0),l=Re(uo,void 0),{nextZIndex:u}=yy(),f=Ne("popper"),c=H(),d=H("first"),h=H(),v=H();Ct(NT,{arrowRef:h,arrowOffset:v}),l&&(l.addInputId||l.removeInputId)&&Ct(uo,{...l,addInputId:sr,removeInputId:sr});const p=H(n.zIndex||u()),g=H(!1);let m;const y=$(()=>E4(n.referenceEl)||L(o)),_=$(()=>[{zIndex:L(p)},n.popperStyle]),b=$(()=>[f.b(),f.is("pure",n.pure),f.is(n.effect),n.popperClass]),x=$(()=>s&&s.value==="dialog"?"false":void 0),w=({referenceEl:O,popperContentEl:k,arrowEl:F})=>{const j=Eb(n,{arrowEl:F,arrowOffset:L(v)});return QT(O,k,j)},S=(O=!0)=>{var k;(k=L(i))==null||k.update(),O&&(p.value=n.zIndex||u())},C=()=>{var O,k;const F={name:"eventListeners",enabled:n.visible};(k=(O=L(i))==null?void 0:O.setOptions)==null||k.call(O,j=>({...j,modifiers:[...j.modifiers||[],F]})),S(!1),n.visible&&n.focusOnShow?g.value=!0:n.visible===!1&&(g.value=!1)},T=()=>{r("focus")},E=O=>{var k;((k=O.detail)==null?void 0:k.focusReason)!=="pointer"&&(d.value="first",r("blur"))},A=O=>{n.visible&&!g.value&&(O.target&&(d.value=O.target),g.value=!0)},M=O=>{n.trapping||(O.detail.focusReason==="pointer"&&O.preventDefault(),g.value=!1)},D=()=>{g.value=!1,r("close")};return Et(()=>{let O;Ee(y,k=>{var F;O==null||O();const j=L(i);if((F=j==null?void 0:j.destroy)==null||F.call(j),k){const B=L(c);a.value=B,i.value=w({referenceEl:k,popperContentEl:B,arrowEl:L(h)}),O=Ee(()=>k.getBoundingClientRect(),()=>S(),{immediate:!0})}else i.value=void 0},{immediate:!0}),Ee(()=>n.triggerTargetEl,(k,F)=>{m==null||m(),m=void 0;const j=L(k||c.value),B=L(F||c.value);hs(j)&&(m=Ee([s,()=>n.ariaLabel,x,()=>n.id],N=>{["role","aria-label","aria-modal","id"].forEach((U,re)=>{ty(N[re])?j.removeAttribute(U):j.setAttribute(U,N[re])})},{immediate:!0})),B!==j&&hs(B)&&["role","aria-label","aria-modal","id"].forEach(N=>{B.removeAttribute(N)})},{immediate:!0}),Ee(()=>n.visible,C,{immediate:!0}),Ee(()=>Eb(n,{arrowEl:L(h),arrowOffset:L(v)}),k=>{var F;return(F=i.value)==null?void 0:F.setOptions(k)})}),rr(()=>{m==null||m(),m=void 0}),t({popperContentRef:c,popperInstanceRef:i,updatePopper:S,contentStyle:_}),(O,k)=>(K(),Se("div",{ref_key:"popperContentRef",ref:c,style:At(L(_)),class:de(L(b)),tabindex:"-1",onMouseenter:k[0]||(k[0]=F=>O.$emit("mouseenter",F)),onMouseleave:k[1]||(k[1]=F=>O.$emit("mouseleave",F))},[ee(L(C4),{trapped:g.value,"trap-on-focus-in":!0,"focus-trap-el":c.value,"focus-start-el":d.value,onFocusAfterTrapped:T,onFocusAfterReleased:E,onFocusin:A,onFocusoutPrevented:M,onReleaseRequested:D},{default:Z(()=>[Be(O.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var O4=Je(R4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const k4=Er(n4),N4=Ne("tooltip"),qr=ot({...R3,...lM,appendTo:{type:Pe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Pe(Boolean),default:null},transition:{type:String,default:`${N4.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),du=ot({...oM,disabled:Boolean,trigger:{type:Pe([String,Array]),default:"hover"},triggerKeys:{type:Pe(Array),default:()=>[Lt.enter,Lt.space]}}),{useModelToggleProps:B4,useModelToggleEmits:F4,useModelToggle:$4}=A5("visible"),H4=ot({...nM,...B4,...qr,...du,...iM,showArrow:{type:Boolean,default:!0}}),z4=[...F4,"before-show","before-hide","show","hide","open","close"],W4=(e,t)=>ye(e)?e.includes(t):e===t,Co=(e,t,r)=>n=>{W4(L(e),t)&&r(n)},V4=ue({name:"ElTooltipTrigger"}),G4=ue({...V4,props:du,setup(e,{expose:t}){const r=e,n=Ne("tooltip"),{controlled:i,id:a,open:o,onOpen:s,onClose:l,onToggle:u}=Re(ay,void 0),f=H(null),c=()=>{if(L(i)||r.disabled)return!0},d=wn(r,"trigger"),h=si(c,Co(d,"hover",s)),v=si(c,Co(d,"hover",l)),p=si(c,Co(d,"click",b=>{b.button===0&&u(b)})),g=si(c,Co(d,"focus",s)),m=si(c,Co(d,"focus",l)),y=si(c,Co(d,"contextmenu",b=>{b.preventDefault(),u(b)})),_=si(c,b=>{const{code:x}=b;r.triggerKeys.includes(x)&&(b.preventDefault(),u(b))});return t({triggerRef:f}),(b,x)=>(K(),xe(L(c4),{id:L(a),"virtual-ref":b.virtualRef,open:L(o),"virtual-triggering":b.virtualTriggering,class:de(L(n).e("trigger")),onBlur:L(m),onClick:L(p),onContextmenu:L(y),onFocus:L(g),onMouseenter:L(h),onMouseleave:L(v),onKeydown:L(_)},{default:Z(()=>[Be(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var U4=Je(G4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Y4=ue({name:"ElTooltipContent",inheritAttrs:!1}),q4=ue({...Y4,props:qr,setup(e,{expose:t}){const r=e,{selector:n}=JT(),i=H(null),a=H(!1),{controlled:o,id:s,open:l,trigger:u,onClose:f,onOpen:c,onShow:d,onHide:h,onBeforeShow:v,onBeforeHide:p}=Re(ay,void 0),g=$(()=>r.persistent);rr(()=>{a.value=!0});const m=$(()=>L(g)?!0:L(l)),y=$(()=>r.disabled?!1:L(l)),_=$(()=>r.appendTo||n.value),b=$(()=>{var k;return(k=r.style)!=null?k:{}}),x=$(()=>!L(l)),w=()=>{h()},S=()=>{if(L(o))return!0},C=si(S,()=>{r.enterable&&L(u)==="hover"&&c()}),T=si(S,()=>{L(u)==="hover"&&f()}),E=()=>{var k,F;(F=(k=i.value)==null?void 0:k.updatePopper)==null||F.call(k),v==null||v()},A=()=>{p==null||p()},M=()=>{d(),O=r$($(()=>{var k;return(k=i.value)==null?void 0:k.popperContentRef}),()=>{if(L(o))return;L(u)!=="hover"&&f()})},D=()=>{r.virtualTriggering||f()};let O;return Ee(()=>L(l),k=>{k||O==null||O()},{flush:"post"}),Ee(()=>r.content,()=>{var k,F;(F=(k=i.value)==null?void 0:k.updatePopper)==null||F.call(k)}),t({contentRef:i}),(k,F)=>(K(),xe(vI,{disabled:!k.teleported,to:L(_)},[ee(Kn,{name:k.transition,onAfterLeave:w,onBeforeEnter:E,onAfterEnter:M,onBeforeLeave:A},{default:Z(()=>[L(m)?qt((K(),xe(L(O4),go({key:0,id:L(s),ref_key:"contentRef",ref:i},k.$attrs,{"aria-label":k.ariaLabel,"aria-hidden":L(x),"boundaries-padding":k.boundariesPadding,"fallback-placements":k.fallbackPlacements,"gpu-acceleration":k.gpuAcceleration,offset:k.offset,placement:k.placement,"popper-options":k.popperOptions,strategy:k.strategy,effect:k.effect,enterable:k.enterable,pure:k.pure,"popper-class":k.popperClass,"popper-style":[k.popperStyle,L(b)],"reference-el":k.referenceEl,"trigger-target-el":k.triggerTargetEl,visible:L(y),"z-index":k.zIndex,onMouseenter:L(C),onMouseleave:L(T),onBlur:D,onClose:L(f)}),{default:Z(()=>[a.value?Ye("v-if",!0):Be(k.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[pi,L(y)]]):Ye("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var j4=Je(q4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const K4=["innerHTML"],X4={key:1},Z4=ue({name:"ElTooltip"}),Q4=ue({...Z4,props:H4,emits:z4,setup(e,{expose:t,emit:r}){const n=e;I3();const i=ly(),a=H(),o=H(),s=()=>{var m;const y=L(a);y&&((m=y.popperInstanceRef)==null||m.update())},l=H(!1),u=H(),{show:f,hide:c,hasUpdateHandler:d}=$4({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=eM({showAfter:wn(n,"showAfter"),hideAfter:wn(n,"hideAfter"),open:f,close:c}),p=$(()=>gi(n.visible)&&!d.value);Ct(ay,{controlled:p,id:i,open:Sd(l),trigger:wn(n,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{L(l)?v(m):h(m)},onShow:()=>{r("show",u.value)},onHide:()=>{r("hide",u.value)},onBeforeShow:()=>{r("before-show",u.value)},onBeforeHide:()=>{r("before-hide",u.value)},updatePopper:s}),Ee(()=>n.disabled,m=>{m&&l.value&&(l.value=!1)});const g=()=>{var m,y;const _=(y=(m=o.value)==null?void 0:m.contentRef)==null?void 0:y.popperContentRef;return _&&_.contains(document.activeElement)};return MC(()=>l.value&&c()),t({popperRef:a,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:c}),(m,y)=>(K(),xe(L(k4),{ref_key:"popperRef",ref:a,role:m.role},{default:Z(()=>[ee(U4,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:Z(()=>[m.$slots.default?Be(m.$slots,"default",{key:0}):Ye("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ee(j4,{ref_key:"contentRef",ref:o,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:Z(()=>[Be(m.$slots,"content",{},()=>[m.rawContent?(K(),Se("span",{key:0,innerHTML:m.content},null,8,K4)):(K(),Se("span",X4,Ae(m.content),1))]),m.showArrow?(K(),xe(L(o4),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):Ye("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 J4=Je(Q4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Hu=Er(J4),eH=ot({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),tH=["textContent"],rH=ue({name:"ElBadge"}),nH=ue({...rH,props:eH,setup(e,{expose:t}){const r=e,n=Ne("badge"),i=$(()=>r.isDot?"":_r(r.value)&&_r(r.max)?r.max(K(),Se("div",{class:de(L(n).b())},[Be(a.$slots,"default"),ee(Kn,{name:`${L(n).namespace.value}-zoom-in-center`,persisted:""},{default:Z(()=>[qt(se("sup",{class:de([L(n).e("content"),L(n).em("content",a.type),L(n).is("fixed",!!a.$slots.default),L(n).is("dot",a.isDot)]),textContent:Ae(L(i))},null,10,tH),[[pi,!a.hidden&&(L(i)||a.isDot)]])]),_:1},8,["name"])],2))}});var iH=Je(nH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const aH=Er(iH),oH=(e,t)=>{y5({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},$(()=>e.type==="text"));const r=Re(IT,void 0),n=oa("button"),{form:i}=Ud(),a=fo($(()=>r==null?void 0:r.size)),o=oy(),s=H(),l=Rd(),u=$(()=>e.type||(r==null?void 0:r.type)||""),f=$(()=>{var h,v,p;return(p=(v=e.autoInsertSpace)!=null?v:(h=n.value)==null?void 0:h.autoInsertSpace)!=null?p:!1}),c=$(()=>{var h;const v=(h=l.default)==null?void 0:h.call(l);if(f.value&&(v==null?void 0:v.length)===1){const p=v[0];if((p==null?void 0:p.type)===Is){const g=p.children;return/^\p{Unified_Ideograph}{2}$/u.test(g.trim())}}return!1});return{_disabled:o,_size:a,_type:u,_ref:s,shouldAddSpace:c,handleClick:h=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",h)}}},sH=["default","primary","success","warning","info","danger","text",""],lH=["button","submit","reset"],Vp=ot({size:Gd,disabled:Boolean,type:{type:String,values:sH,default:""},icon:{type:Vi},nativeType:{type:String,values:lH,default:"button"},loading:Boolean,loadingIcon:{type:Vi,default:()=>ET},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),uH={click:e=>e instanceof MouseEvent};function jt(e,t){fH(e)&&(e="100%");var r=cH(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 ff(e){return Math.min(1,Math.max(0,e))}function fH(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function cH(e){return typeof e=="string"&&e.indexOf("%")!==-1}function uM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function cf(e){return e<=1?"".concat(Number(e)*100,"%"):e}function qa(e){return e.length===1?"0"+e:String(e)}function dH(e,t,r){return{r:jt(e,255)*255,g:jt(t,255)*255,b:jt(r,255)*255}}function Pb(e,t,r){e=jt(e,255),t=jt(t,255),r=jt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=0,s=(n+i)/2;if(n===i)o=0,a=0;else{var l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case e:a=(t-r)/l+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hH(e,t,r){var n,i,a;if(e=jt(e,360),t=jt(t,100),r=jt(r,100),t===0)i=r,a=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=kh(s,o,e+1/3),i=kh(s,o,e),a=kh(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function Lb(e,t,r){e=jt(e,255),t=jt(t,255),r=jt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=n,s=n-i,l=n===0?0:s/n;if(n===i)a=0;else{switch(n){case e:a=(t-r)/s+(t>16,g:(e&65280)>>8,b:e&255}}var Gp={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 yH(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=wH(e)),typeof e=="object"&&(ti(e.r)&&ti(e.g)&&ti(e.b)?(t=dH(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ti(e.h)&&ti(e.s)&&ti(e.v)?(n=cf(e.s),i=cf(e.v),t=vH(e.h,n,i),o=!0,s="hsv"):ti(e.h)&&ti(e.s)&&ti(e.l)&&(n=cf(e.s),a=cf(e.l),t=hH(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=uM(r),{ok:o,format:e.format||s,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:r}}var _H="[-\\+]?\\d+%?",bH="[-\\+]?\\d*\\.\\d+%?",Gi="(?:".concat(bH,")|(?:").concat(_H,")"),Nh="[\\s|\\(]+(".concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")\\s*\\)?"),Bh="[\\s|\\(]+(".concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")\\s*\\)?"),dn={CSS_UNIT:new RegExp(Gi),rgb:new RegExp("rgb"+Nh),rgba:new RegExp("rgba"+Bh),hsl:new RegExp("hsl"+Nh),hsla:new RegExp("hsla"+Bh),hsv:new RegExp("hsv"+Nh),hsva:new RegExp("hsva"+Bh),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 wH(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Gp[e])e=Gp[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=dn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=dn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=dn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=dn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=dn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=dn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=dn.hex8.exec(e),r?{r:Lr(r[1]),g:Lr(r[2]),b:Lr(r[3]),a:Ib(r[4]),format:t?"name":"hex8"}:(r=dn.hex6.exec(e),r?{r:Lr(r[1]),g:Lr(r[2]),b:Lr(r[3]),format:t?"name":"hex"}:(r=dn.hex4.exec(e),r?{r:Lr(r[1]+r[1]),g:Lr(r[2]+r[2]),b:Lr(r[3]+r[3]),a:Ib(r[4]+r[4]),format:t?"name":"hex8"}:(r=dn.hex3.exec(e),r?{r:Lr(r[1]+r[1]),g:Lr(r[2]+r[2]),b:Lr(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function ti(e){return Boolean(dn.CSS_UNIT.exec(String(e)))}var fM=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=mH(t)),this.originalInput=t;var i=yH(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.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=i.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(),r,n,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=uM(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=Lb(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=Lb(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Pb(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=Pb(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Db(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),pH(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.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),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(jt(r,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(r){return Math.round(jt(r,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="#"+Db(this.r,this.g,this.b,!1),r=0,n=Object.entries(Gp);r=0,a=!r&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||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 r=this.toHsl();return r.l+=t/100,r.l=ff(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=ff(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=ff(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=ff(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,a=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(new e(n));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],a=360/t,o=1;o{let n={};const i=e.color;if(i){const a=new fM(i),o=e.dark?a.tint(20).toString():Pi(a,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Pi(a,90):a.tint(90).toString(),"text-color":i,"border-color":e.dark?Pi(a,50):a.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?Pi(a,90):a.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Pi(a,50):a.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Pi(a,80):a.tint(80).toString());else{const s=e.dark?Pi(a,30):a.tint(30).toString(),l=a.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":i,"text-color":l,"border-color":i,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":o,"active-border-color":o}),t.value){const u=e.dark?Pi(a,50):a.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=u,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=u}}}return n})}const SH=["aria-disabled","disabled","autofocus","type"],CH=ue({name:"ElButton"}),TH=ue({...CH,props:Vp,emits:uH,setup(e,{expose:t,emit:r}){const n=e,i=xH(n),a=Ne("button"),{_ref:o,_size:s,_type:l,_disabled:u,shouldAddSpace:f,handleClick:c}=oH(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(d,h)=>(K(),Se("button",{ref_key:"_ref",ref:o,class:de([L(a).b(),L(a).m(L(l)),L(a).m(L(s)),L(a).is("disabled",L(u)),L(a).is("loading",d.loading),L(a).is("plain",d.plain),L(a).is("round",d.round),L(a).is("circle",d.circle),L(a).is("text",d.text),L(a).is("link",d.link),L(a).is("has-bg",d.bg)]),"aria-disabled":L(u)||d.loading,disabled:L(u)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:At(L(i)),onClick:h[0]||(h[0]=(...v)=>L(c)&&L(c)(...v))},[d.loading?(K(),Se(yt,{key:0},[d.$slots.loading?Be(d.$slots,"loading",{key:0}):(K(),xe(L(Cn),{key:1,class:de(L(a).is("loading"))},{default:Z(()=>[(K(),xe(hi(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(K(),xe(L(Cn),{key:1},{default:Z(()=>[d.icon?(K(),xe(hi(d.icon),{key:0})):Be(d.$slots,"icon",{key:1})]),_:3})):Ye("v-if",!0),d.$slots.default?(K(),Se("span",{key:2,class:de({[L(a).em("text","expand")]:L(f)})},[Be(d.$slots,"default")],2)):Ye("v-if",!0)],14,SH))}});var MH=Je(TH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const AH={size:Vp.size,type:Vp.type},EH=ue({name:"ElButtonGroup"}),PH=ue({...EH,props:AH,setup(e){const t=e;Ct(IT,ln({size:wn(t,"size"),type:wn(t,"type")}));const r=Ne("button");return(n,i)=>(K(),Se("div",{class:de(`${L(r).b("group")}`)},[Be(n.$slots,"default")],2))}});var cM=Je(PH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const LH=Er(MH,{ButtonGroup:cM});aa(cM);var DH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const Bi=new Map;let Rb;Rt&&(document.addEventListener("mousedown",e=>Rb=e),document.addEventListener("mouseup",e=>{for(const t of Bi.values())for(const{documentHandler:r}of t)r(e,Rb)}));function Ob(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:hs(t.arg)&&r.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i==null?void 0:i.target,l=!t||!t.instance,u=!o||!s,f=e.contains(o)||e.contains(s),c=e===o,d=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(s),h=a&&(a.contains(o)||a.contains(s));l||u||f||c||d||h||t.value(n,i)}}const IH={beforeMount(e,t){Bi.has(e)||Bi.set(e,[]),Bi.get(e).push({documentHandler:Ob(e,t),bindingFn:t.value})},updated(e,t){Bi.has(e)||Bi.set(e,[]);const r=Bi.get(e),n=r.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:Ob(e,t),bindingFn:t.value};n>=0?r.splice(n,1,i):r.push(i)},unmounted(e){Bi.delete(e)}};var kb=!1,Ga,Up,Yp,hc,vc,dM,pc,qp,jp,Kp,hM,Xp,Zp,vM,pM;function cr(){if(!kb){kb=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Xp=/\b(iPhone|iP[ao]d)/.exec(e),Zp=/\b(iP[ao]d)/.exec(e),Kp=/Android/i.exec(e),vM=/FBAN\/\w+;/i.exec(e),pM=/Mobile/i.exec(e),hM=!!/Win64/.exec(e),t){Ga=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ga&&document&&document.documentMode&&(Ga=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);dM=n?parseFloat(n[1])+4:Ga,Up=t[2]?parseFloat(t[2]):NaN,Yp=t[3]?parseFloat(t[3]):NaN,hc=t[4]?parseFloat(t[4]):NaN,hc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),vc=t&&t[1]?parseFloat(t[1]):NaN):vc=NaN}else Ga=Up=Yp=vc=hc=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);pc=i?parseFloat(i[1].replace("_",".")):!0}else pc=!1;qp=!!r[2],jp=!!r[3]}else pc=qp=jp=!1}}var Qp={ie:function(){return cr()||Ga},ieCompatibilityMode:function(){return cr()||dM>Ga},ie64:function(){return Qp.ie()&&hM},firefox:function(){return cr()||Up},opera:function(){return cr()||Yp},webkit:function(){return cr()||hc},safari:function(){return Qp.webkit()},chrome:function(){return cr()||vc},windows:function(){return cr()||qp},osx:function(){return cr()||pc},linux:function(){return cr()||jp},iphone:function(){return cr()||Xp},mobile:function(){return cr()||Xp||Zp||Kp||pM},nativeApp:function(){return cr()||vM},android:function(){return cr()||Kp},ipad:function(){return cr()||Zp}},RH=Qp,df=!!(typeof window<"u"&&window.document&&window.document.createElement),OH={canUseDOM:df,canUseWorkers:typeof Worker<"u",canUseEventListeners:df&&!!(window.addEventListener||window.attachEvent),canUseViewport:df&&!!window.screen,isInWorker:!df},gM=OH,mM;gM.canUseDOM&&(mM=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function kH(e,t){if(!gM.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var i=document.createElement("div");i.setAttribute(r,"return;"),n=typeof i[r]=="function"}return!n&&mM&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var NH=kH,Nb=10,Bb=40,Fb=800;function yM(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*Nb,i=r*Nb,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=Bb,i*=Bb):(n*=Fb,i*=Fb)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}yM.getEventType=function(){return RH.firefox()?"DOMMouseScroll":NH("wheel")?"wheel":"mousewheel"};var BH=yM;/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */const FH=function(e,t){if(e&&e.addEventListener){const r=function(n){const i=BH(n);t&&Reflect.apply(t,this,[n,i])};e.addEventListener("wheel",r,{passive:!0})}},$H={beforeMount(e,t){FH(e,t.value)}},_M={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Gd,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},bM={[Wd]:e=>Ue(e)||_r(e)||gi(e),change:e=>Ue(e)||_r(e)||gi(e)},HH=({model:e,isChecked:t})=>{const r=Re(Os,void 0),n=$(()=>{var a,o;const s=(a=r==null?void 0:r.max)==null?void 0:a.value,l=(o=r==null?void 0:r.min)==null?void 0:o.value;return!Vc(s)&&e.value.length>=s&&!t.value||!Vc(l)&&e.value.length<=l&&t.value});return{isDisabled:oy($(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},zH=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:i,isLabeledByFormItem:a})=>{const o=Re(Os,void 0),{formItem:s}=Ud(),{emit:l}=dt();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function f(v,p){l("change",u(v),p)}function c(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){r.value||!n.value&&!i.value&&a.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await zt(),f(t.value,v)))}const h=$(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Ee(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:c,onClickRoot:d}},WH=e=>{const t=H(!1),{emit:r}=dt(),n=Re(Os,void 0),i=$(()=>Vc(n)===!1),a=H(!1);return{model:$({get(){var s,l;return i.value?(s=n==null?void 0:n.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;i.value&&ye(s)?(a.value=((l=n==null?void 0:n.max)==null?void 0:l.value)!==void 0&&s.length>(n==null?void 0:n.max.value),a.value===!1&&((u=n==null?void 0:n.changeEvent)==null||u.call(n,s))):(r(Wd,s),t.value=s)}}),isGroup:i,isLimitExceeded:a}},VH=(e,t,{model:r})=>{const n=Re(Os,void 0),i=H(!1),a=$(()=>{const u=r.value;return gi(u)?u:ye(u)?Ke(e.label)?u.map(Qe).some(f=>WF(f,e.label)):u.map(Qe).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=fo($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=fo($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=$(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:a,isFocused:i,checkboxSize:s,hasOwnLabel:l}},GH=(e,{model:t})=>{function r(){ye(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},wM=(e,t)=>{const{formItem:r}=Ud(),{model:n,isGroup:i,isLimitExceeded:a}=WH(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f}=VH(e,t,{model:n}),{isDisabled:c}=HH({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=$T(e,{formItemContext:r,disableIdGeneration:f,disableIdManagement:i}),{handleChange:v,onClickRoot:p}=zH(e,{model:n,isLimitExceeded:a,hasOwnLabel:f,isDisabled:c,isLabeledByFormItem:h});return GH(e,{model:n}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:c,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f,model:n,handleChange:v,onClickRoot:p}},UH=["tabindex","role","aria-checked"],YH=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],qH=["id","aria-hidden","disabled","value","name","tabindex"],jH=ue({name:"ElCheckbox"}),KH=ue({...jH,props:_M,emits:bM,setup(e){const t=e,r=Rd(),{inputId:n,isLabeledByFormItem:i,isChecked:a,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:f,handleChange:c,onClickRoot:d}=wM(t,r),h=Ne("checkbox"),v=$(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",a.value)]),p=$(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",a.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(K(),xe(hi(!L(u)&&L(i)?"span":"label"),{class:de(L(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:L(d)},{default:Z(()=>[se("span",{class:de(L(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?qt((K(),Se("input",{key:0,id:L(n),"onUpdate:modelValue":m[0]||(m[0]=y=>St(f)?f.value=y:null),class:de(L(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:L(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...y)=>L(c)&&L(c)(...y)),onFocus:m[2]||(m[2]=y=>s.value=!0),onBlur:m[3]||(m[3]=y=>s.value=!1)},null,42,YH)),[[Bc,L(f)]]):qt((K(),Se("input",{key:1,id:L(n),"onUpdate:modelValue":m[4]||(m[4]=y=>St(f)?f.value=y:null),class:de(L(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:L(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[5]||(m[5]=(...y)=>L(c)&&L(c)(...y)),onFocus:m[6]||(m[6]=y=>s.value=!0),onBlur:m[7]||(m[7]=y=>s.value=!1)},null,42,qH)),[[Bc,L(f)]]),se("span",{class:de(L(h).e("inner"))},null,2)],10,UH),L(u)?(K(),Se("span",{key:0,class:de(L(h).e("label"))},[Be(g.$slots,"default"),g.$slots.default?Ye("v-if",!0):(K(),Se(yt,{key:0},[kt(Ae(g.label),1)],64))],2)):Ye("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var XH=Je(KH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const ZH=["name","tabindex","disabled","true-value","false-value"],QH=["name","tabindex","disabled","value"],JH=ue({name:"ElCheckboxButton"}),ez=ue({...JH,props:_M,emits:bM,setup(e){const t=e,r=Rd(),{isFocused:n,isChecked:i,isDisabled:a,checkboxButtonSize:o,model:s,handleChange:l}=wM(t,r),u=Re(Os,void 0),f=Ne("checkbox"),c=$(()=>{var h,v,p,g;const m=(v=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:m,borderColor:m,color:(g=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=$(()=>[f.b("button"),f.bm("button",o.value),f.is("disabled",a.value),f.is("checked",i.value),f.is("focus",n.value)]);return(h,v)=>(K(),Se("label",{class:de(L(d))},[h.trueLabel||h.falseLabel?qt((K(),Se("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>St(s)?s.value=p:null),class:de(L(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:L(a),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>L(l)&&L(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1)},null,42,ZH)),[[Bc,L(s)]]):qt((K(),Se("input",{key:1,"onUpdate:modelValue":v[4]||(v[4]=p=>St(s)?s.value=p:null),class:de(L(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:L(a),value:h.label,onChange:v[5]||(v[5]=(...p)=>L(l)&&L(l)(...p)),onFocus:v[6]||(v[6]=p=>n.value=!0),onBlur:v[7]||(v[7]=p=>n.value=!1)},null,42,QH)),[[Bc,L(s)]]),h.$slots.default||h.label?(K(),Se("span",{key:2,class:de(L(f).be("button","inner")),style:At(L(i)?L(c):void 0)},[Be(h.$slots,"default",{},()=>[kt(Ae(h.label),1)])],6)):Ye("v-if",!0)],2))}});var xM=Je(ez,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const tz=ot({modelValue:{type:Pe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Gd,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),rz={[Wd]:e=>ye(e),change:e=>ye(e)},nz=ue({name:"ElCheckboxGroup"}),iz=ue({...nz,props:tz,emits:rz,setup(e,{emit:t}){const r=e,n=Ne("checkbox"),{formItem:i}=Ud(),{inputId:a,isLabeledByFormItem:o}=$T(r,{formItemContext:i}),s=async u=>{t(Wd,u),await zt(),t("change",u)},l=$({get(){return r.modelValue},set(u){s(u)}});return Ct(Os,{...qF(Cd(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Ee(()=>r.modelValue,()=>{r.validateEvent&&(i==null||i.validate("change").catch(u=>void 0))}),(u,f)=>{var c;return K(),xe(hi(u.tag),{id:L(a),class:de(L(n).b("group")),role:"group","aria-label":L(o)?void 0:u.label||"checkbox-group","aria-labelledby":L(o)?(c=L(i))==null?void 0:c.labelId:void 0},{default:Z(()=>[Be(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var SM=Je(iz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const bs=Er(XH,{CheckboxButton:xM,CheckboxGroup:SM});aa(xM);aa(SM);const az=ot({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Vd,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),oz={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},sz=ue({name:"ElTag"}),lz=ue({...sz,props:az,emits:oz,setup(e,{emit:t}){const r=e,n=fo(),i=Ne("tag"),a=$(()=>{const{type:l,hit:u,effect:f,closable:c,round:d}=r;return[i.b(),i.is("closable",c),i.m(l),i.m(n.value),i.m(f),i.is("hit",u),i.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(K(),Se("span",{key:0,class:de(L(a)),style:At({backgroundColor:l.color}),onClick:s},[se("span",{class:de(L(i).e("content"))},[Be(l.$slots,"default")],2),l.closable?(K(),xe(L(Cn),{key:0,class:de(L(i).e("close")),onClick:Ep(o,["stop"])},{default:Z(()=>[ee(L(zp))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],6)):(K(),xe(Kn,{key:1,name:`${L(i).namespace.value}-zoom-in-center`,appear:""},{default:Z(()=>[se("span",{class:de(L(a)),style:At({backgroundColor:l.color}),onClick:s},[se("span",{class:de(L(i).e("content"))},[Be(l.$slots,"default")],2),l.closable?(K(),xe(L(Cn),{key:0,class:de(L(i).e("close")),onClick:Ep(o,["stop"])},{default:Z(()=>[ee(L(zp))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],6)]),_:3},8,["name"]))}});var uz=Je(lz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const fz=Er(uz),cz=ot({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:Pe([Number,Object]),default:()=>Va({})},sm:{type:Pe([Number,Object]),default:()=>Va({})},md:{type:Pe([Number,Object]),default:()=>Va({})},lg:{type:Pe([Number,Object]),default:()=>Va({})},xl:{type:Pe([Number,Object]),default:()=>Va({})}}),dz=ue({name:"ElCol"}),hz=ue({...dz,props:cz,setup(e){const t=e,{gutter:r}=Re(OT,{gutter:$(()=>0)}),n=Ne("col"),i=$(()=>{const o={};return r.value&&(o.paddingLeft=o.paddingRight=`${r.value/2}px`),o}),a=$(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const f=t[u];_r(f)&&(u==="span"?o.push(n.b(`${t[u]}`)):f>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{_r(t[u])?o.push(n.b(`${u}-${t[u]}`)):Ke(t[u])&&Object.entries(t[u]).forEach(([f,c])=>{o.push(f!=="span"?n.b(`${u}-${f}-${c}`):n.b(`${u}-${c}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(K(),xe(hi(o.tag),{class:de(L(a)),style:At(L(i))},{default:Z(()=>[Be(o.$slots,"default")]),_:3},8,["class","style"]))}});var vz=Je(hz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const CM=Er(vz),pz=ue({name:"ElCollapseTransition"}),gz=ue({...pz,setup(e){const t=Ne("collapse-transition"),r={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){n.dataset.oldOverflow=n.style.overflow,n.scrollHeight!==0?(n.style.maxHeight=`${n.scrollHeight}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom):(n.style.maxHeight=0,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom),n.style.overflow="hidden"},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.maxHeight=`${n.scrollHeight}px`,n.style.overflow="hidden"},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom}};return(n,i)=>(K(),xe(Kn,go({name:L(t).b()},jD(r)),{default:Z(()=>[Be(n.$slots,"default")]),_:3},16,["name"]))}});var gc=Je(gz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);gc.install=e=>{e.component(gc.name,gc)};const mz=gc,Jp={},yz=ot({a11y:{type:Boolean,default:!0},locale:{type:Pe(Object)},size:Gd,button:{type:Pe(Object)},experimentalFeatures:{type:Pe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Pe(Object)},zIndex:Number,namespace:{type:String,default:"el"}});ue({name:"ElConfigProvider",props:yz,setup(e,{slots:t}){Ee(()=>e.message,n=>{Object.assign(Jp,n??{})},{immediate:!0,deep:!0});const r=g5(e);return()=>Be(t,"default",{config:r==null?void 0:r.value})}});const _z=ue({inheritAttrs:!1});function bz(e,t,r,n,i,a){return Be(e.$slots,"default")}var wz=Je(_z,[["render",bz],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const xz=ue({name:"ElCollectionItem",inheritAttrs:!1});function Sz(e,t,r,n,i,a){return Be(e.$slots,"default")}var Cz=Je(xz,[["render",Sz],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Tz="data-el-collection-item",Mz=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),i=Symbol(r),a={...wz,name:t,setup(){const s=H(null),l=new Map;Ct(n,{itemMap:l,getItems:()=>{const f=L(s);if(!f)return[];const c=Array.from(f.querySelectorAll(`[${Tz}]`));return[...l.values()].sort((h,v)=>c.indexOf(h.ref)-c.indexOf(v.ref))},collectionRef:s})}},o={...Cz,name:r,setup(s,{attrs:l}){const u=H(null),f=Re(n,void 0);Ct(i,{collectionItemRef:u}),Et(()=>{const c=L(u);c&&f.itemMap.set(c,{ref:c,...l})}),rr(()=>{const c=L(u);f.itemMap.delete(c)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:a,ElCollectionItem:o}},Fh=ot({trigger:du.trigger,effect:{...qr.effect,default:"light"},type:{type:Pe(String)},placement:{type:Pe(String),default:"bottom"},popperOptions:{type:Pe(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:Pe([Number,String]),default:0},maxHeight:{type:Pe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Pe(Object)},teleported:qr.teleported});ot({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Vi}});ot({onKeydown:{type:Pe(Function)}});Lt.down,Lt.pageDown,Lt.home;Lt.up,Lt.pageUp,Lt.end;Mz("Dropdown");const Az=ot({model:Object,rules:{type:Pe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:Vd},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),Ez={validate:(e,t,r)=>(ye(e)||Ue(e))&&gi(t)&&Ue(r)};function Pz(){const e=H([]),t=$(()=>{if(!e.value.length)return"0";const a=Math.max(...e.value);return a?`${a}px`:""});function r(a){const o=e.value.indexOf(a);return o===-1&&t.value,o}function n(a,o){if(a&&o){const s=r(o);e.value.splice(s,1,a)}else a&&e.value.push(a)}function i(a){const o=r(a);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:i}}const hf=(e,t)=>{const r=Lp(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},Lz="ElForm",Dz=ue({name:Lz}),Iz=ue({...Dz,props:Az,emits:Ez,setup(e,{expose:t,emit:r}){const n=e,i=[],a=fo(),o=Ne("form"),s=$(()=>{const{labelPosition:y,inline:_}=n;return[o.b(),o.m(a.value||"default"),{[o.m(`label-${y}`)]:y,[o.m("inline")]:_}]}),l=y=>{i.push(y)},u=y=>{y.prop&&i.splice(i.indexOf(y),1)},f=(y=[])=>{n.model&&hf(i,y).forEach(_=>_.resetField())},c=(y=[])=>{hf(i,y).forEach(_=>_.clearValidate())},d=$(()=>!!n.model),h=y=>{if(i.length===0)return[];const _=hf(i,y);return _.length?_:[]},v=async y=>g(void 0,y),p=async(y=[])=>{if(!d.value)return!1;const _=h(y);if(_.length===0)return!0;let b={};for(const x of _)try{await x.validate("")}catch(w){b={...b,...w}}return Object.keys(b).length===0?!0:Promise.reject(b)},g=async(y=[],_)=>{const b=!Le(_);try{const x=await p(y);return x===!0&&(_==null||_(x)),x}catch(x){if(x instanceof Error)throw x;const w=x;return n.scrollToError&&m(Object.keys(w)[0]),_==null||_(!1,w),b&&Promise.reject(w)}},m=y=>{var _;const b=hf(i,y)[0];b&&((_=b.$el)==null||_.scrollIntoView())};return Ee(()=>n.rules,()=>{n.validateOnRuleChange&&v().catch(y=>void 0)},{deep:!0}),Ct(ks,ln({...Cd(n),emit:r,resetFields:f,clearValidate:c,validateField:g,addField:l,removeField:u,...Pz()})),t({validate:v,validateField:g,resetFields:f,clearValidate:c,scrollToField:m}),(y,_)=>(K(),Se("form",{class:de(L(s))},[Be(y.$slots,"default")],2))}});var Rz=Je(Iz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mc(e,t,r){return kz()?mc=Reflect.construct.bind():mc=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&hu(u,o.prototype),u},mc.apply(null,arguments)}function Nz(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function tg(e){var t=typeof Map=="function"?new Map:void 0;return tg=function(n){if(n===null||!Nz(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return mc(n,arguments,eg(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),hu(i,n)},tg(e)}var Bz=/%[sdj%]/g,Fz=function(){};typeof process<"u"&&process.env;function rg(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Rr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=a)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function $z(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Bt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$z(t)&&typeof e=="string"&&!e)}function Hz(e,t,r){var n=[],i=0,a=e.length;function o(s){n.push.apply(n,s||[]),i++,i===a&&r(n)}e.forEach(function(s){t(s,o)})}function $b(e,t,r){var n=0,i=e.length;function a(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},gl={integer:function(t){return gl.number(t)&&parseInt(t,10)===t},float:function(t){return gl.number(t)&&!gl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!gl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Vb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Yz())},hex:function(t){return typeof t=="string"&&!!t.match(Vb.hex)}},qz=function(t,r,n,i,a){if(t.required&&r===void 0){TM(t,r,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?gl[s](r)||i.push(Rr(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Rr(a.messages.types[s],t.fullField,t.type))},jz=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=r,c=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?c="number":h?c="string":v&&(c="array"),!c)return!1;v&&(f=r.length),h&&(f=r.replace(u,"_").length),o?f!==t.len&&i.push(Rr(a.messages[c].len,t.fullField,t.len)):s&&!l&&ft.max?i.push(Rr(a.messages[c].max,t.fullField,t.max)):s&&l&&(ft.max)&&i.push(Rr(a.messages[c].range,t.fullField,t.min,t.max))},To="enum",Kz=function(t,r,n,i,a){t[To]=Array.isArray(t[To])?t[To]:[],t[To].indexOf(r)===-1&&i.push(Rr(a.messages[To],t.fullField,t[To].join(", ")))},Xz=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},qe={required:TM,whitespace:Uz,type:qz,range:jz,enum:Kz,pattern:Xz},Zz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r,"string")&&!t.required)return n();qe.required(t,r,i,o,a,"string"),Bt(r,"string")||(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a),qe.pattern(t,r,i,o,a),t.whitespace===!0&&qe.whitespace(t,r,i,o,a))}n(o)},Qz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&qe.type(t,r,i,o,a)}n(o)},Jz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a))}n(o)},e6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&qe.type(t,r,i,o,a)}n(o)},t6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),Bt(r)||qe.type(t,r,i,o,a)}n(o)},r6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a))}n(o)},n6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a))}n(o)},i6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();qe.required(t,r,i,o,a,"array"),r!=null&&(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a))}n(o)},a6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&qe.type(t,r,i,o,a)}n(o)},o6="enum",s6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&qe[o6](t,r,i,o,a)}n(o)},l6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r,"string")&&!t.required)return n();qe.required(t,r,i,o,a),Bt(r,"string")||qe.pattern(t,r,i,o,a)}n(o)},u6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r,"date")&&!t.required)return n();if(qe.required(t,r,i,o,a),!Bt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),qe.type(t,l,i,o,a),l&&qe.range(t,l.getTime(),i,o,a)}}n(o)},f6=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;qe.required(t,r,i,o,a,s),n(o)},$h=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Bt(r,o)&&!t.required)return n();qe.required(t,r,i,s,a,o),Bt(r,o)||qe.type(t,r,i,s,a)}n(s)},c6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a)}n(o)},Il={string:Zz,method:Qz,number:Jz,boolean:e6,regexp:t6,integer:r6,float:n6,array:i6,object:a6,enum:s6,pattern:l6,date:u6,url:$h,hex:$h,email:$h,required:f6,any:c6};function ng(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ig=ng(),zu=function(){function e(r){this.rules=null,this._messages=ig,this.define(r)}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];i.rules[a]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=Wb(ng(),n)),this._messages},t.validate=function(n,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=n,l=i,u=a;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function f(p){var g=[],m={};function y(b){if(Array.isArray(b)){var x;g=(x=g).concat.apply(x,b)}else g.push(b)}for(var _=0;_");const i=Ne("form"),a=H(),o=H(0),s=()=>{var f;if((f=a.value)!=null&&f.firstElementChild){const c=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},l=(f="update")=>{zt(()=>{t.default&&e.isAutoWidth&&(f==="update"?o.value=s():f==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return Et(()=>{u()}),rr(()=>{l("remove")}),Ld(()=>u()),Ee(o,(f,c)=>{e.updateAll&&(r==null||r.registerLabelWidth(f,c))}),ds($(()=>{var f,c;return(c=(f=a.value)==null?void 0:f.firstElementChild)!=null?c:null}),u),()=>{var f,c;if(!t)return null;const{isAutoWidth:d}=e;if(d){const h=r==null?void 0:r.autoLabelWidth,v=n==null?void 0:n.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=r.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return ee("div",{ref:a,class:[i.be("item","label-wrap")],style:p},[(f=t.default)==null?void 0:f.call(t)])}else return ee(yt,{ref:a},[(c=t.default)==null?void 0:c.call(t)])}}});const p6=["role","aria-labelledby"],g6=ue({name:"ElFormItem"}),m6=ue({...g6,props:h6,setup(e,{expose:t}){const r=e,n=Rd(),i=Re(ks,void 0),a=Re(uo,void 0),o=fo(void 0,{formItem:!1}),s=Ne("form-item"),l=ly().value,u=H([]),f=H(""),c=e$(f,100),d=H(""),h=H();let v,p=!1;const g=$(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const W=vs(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return W?{width:W}:{}}),m=$(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!r.label&&!r.labelWidth&&T)return{};const W=vs(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return!r.label&&!n.label?{marginLeft:W}:{}}),y=$(()=>[s.b(),s.m(o.value),s.is("error",f.value==="error"),s.is("validating",f.value==="validating"),s.is("success",f.value==="success"),s.is("required",O.value||r.required),s.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:i==null?void 0:i.statusIcon}]),_=$(()=>gi(r.inlineMessage)?r.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),b=$(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),x=$(()=>r.prop?Ue(r.prop)?r.prop:r.prop.join("."):""),w=$(()=>!!(r.label||n.label)),S=$(()=>r.for||u.value.length===1?u.value[0]:void 0),C=$(()=>!S.value&&w.value),T=!!a,E=$(()=>{const W=i==null?void 0:i.model;if(!(!W||!r.prop))return fc(W,r.prop).value}),A=$(()=>{const{required:W}=r,Y=[];r.rules&&Y.push(...Lp(r.rules));const le=i==null?void 0:i.rules;if(le&&r.prop){const he=fc(le,r.prop).value;he&&Y.push(...Lp(he))}if(W!==void 0){const he=Y.map((Q,P)=>[Q,P]).filter(([Q])=>Object.keys(Q).includes("required"));if(he.length>0)for(const[Q,P]of he)Q.required!==W&&(Y[P]={...Q,required:W});else Y.push({required:W})}return Y}),M=$(()=>A.value.length>0),D=W=>A.value.filter(le=>!le.trigger||!W?!0:Array.isArray(le.trigger)?le.trigger.includes(W):le.trigger===W).map(({trigger:le,...he})=>he),O=$(()=>A.value.some(W=>W.required)),k=$(()=>{var W;return c.value==="error"&&r.showMessage&&((W=i==null?void 0:i.showMessage)!=null?W:!0)}),F=$(()=>`${r.label||""}${(i==null?void 0:i.labelSuffix)||""}`),j=W=>{f.value=W},B=W=>{var Y,le;const{errors:he,fields:Q}=W;(!he||!Q)&&console.error(W),j("error"),d.value=he?(le=(Y=he==null?void 0:he[0])==null?void 0:Y.message)!=null?le:`${r.prop} is required`:"",i==null||i.emit("validate",r.prop,!1,d.value)},N=()=>{j("success"),i==null||i.emit("validate",r.prop,!0,"")},U=async W=>{const Y=x.value;return new zu({[Y]:W}).validate({[Y]:E.value},{firstFields:!0}).then(()=>(N(),!0)).catch(he=>(B(he),Promise.reject(he)))},re=async(W,Y)=>{if(p||!r.prop)return!1;const le=Le(Y);if(!M.value)return Y==null||Y(!1),!1;const he=D(W);return he.length===0?(Y==null||Y(!0),!0):(j("validating"),U(he).then(()=>(Y==null||Y(!0),!0)).catch(Q=>{const{fields:P}=Q;return Y==null||Y(!1,P),le?!1:Promise.reject(P)}))},ae=()=>{j(""),d.value="",p=!1},me=async()=>{const W=i==null?void 0:i.model;if(!W||!r.prop)return;const Y=fc(W,r.prop);p=!0,Y.value=q_(v),await zt(),ae(),p=!1},Me=W=>{u.value.includes(W)||u.value.push(W)},V=W=>{u.value=u.value.filter(Y=>Y!==W)};Ee(()=>r.error,W=>{d.value=W||"",j(W?"error":"")},{immediate:!0}),Ee(()=>r.validateStatus,W=>j(W||""));const J=ln({...Cd(r),$el:h,size:o,validateState:f,labelId:l,inputIds:u,isGroup:C,hasLabel:w,addInputId:Me,removeInputId:V,resetField:me,clearValidate:ae,validate:re});return Ct(uo,J),Et(()=>{r.prop&&(i==null||i.addField(J),v=q_(E.value))}),rr(()=>{i==null||i.removeField(J)}),t({size:o,validateMessage:d,validateState:f,validate:re,clearValidate:ae,resetField:me}),(W,Y)=>{var le;return K(),Se("div",{ref_key:"formItemRef",ref:h,class:de(L(y)),role:L(C)?"group":void 0,"aria-labelledby":L(C)?L(l):void 0},[ee(L(v6),{"is-auto-width":L(g).width==="auto","update-all":((le=L(i))==null?void 0:le.labelWidth)==="auto"},{default:Z(()=>[L(w)?(K(),xe(hi(L(S)?"label":"div"),{key:0,id:L(l),for:L(S),class:de(L(s).e("label")),style:At(L(g))},{default:Z(()=>[Be(W.$slots,"label",{label:L(F)},()=>[kt(Ae(L(F)),1)])]),_:3},8,["id","for","class","style"])):Ye("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),se("div",{class:de(L(s).e("content")),style:At(L(m))},[Be(W.$slots,"default"),ee(Kn,{name:`${L(s).namespace.value}-zoom-in-top`},{default:Z(()=>[L(k)?Be(W.$slots,"error",{key:0,error:d.value},()=>[se("div",{class:de(L(b))},Ae(d.value),3)]):Ye("v-if",!0)]),_:3},8,["name"])],6)],10,p6)}}});var MM=Je(m6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const AM=Er(Rz,{FormItem:MM}),EM=aa(MM);let y6=class{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",n=>{let i=!1;switch(n.code){case Lt.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Lt.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Lt.tab:{uc(t,"mouseleave");break}case Lt.enter:case Lt.space:{i=!0,n.currentTarget.click();break}}return i&&(n.preventDefault(),n.stopPropagation()),!1})})}},_6=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new y6(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case Lt.down:{uc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Lt.up:{uc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Lt.tab:{uc(t.currentTarget,"mouseleave");break}case Lt.enter:case Lt.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},b6=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new _6(n,t)})}};const w6=ue({name:"ElMenuCollapseTransition",setup(){const e=Ne("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Uo(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){rs(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Pl(r,e.m("collapse"))?(rs(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Uo(r,e.m("collapse"))):(Uo(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),rs(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Uo(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function x6(e,t,r,n,i,a){return K(),xe(Kn,go({mode:"out-in"},e.listeners),{default:Z(()=>[Be(e.$slots,"default")]),_:3},16)}var S6=Je(w6,[["render",x6],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function PM(e,t){const r=$(()=>{let i=e.parent;const a=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&a.unshift(i.props.index),i=i.parent;return a});return{parentMenu:$(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:r}}function C6(e){return $(()=>{const r=e.backgroundColor;return r?new fM(r).shade(20).toString():""})}const LM=(e,t)=>{const r=Ne("menu");return $(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":C6(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},T6=ot({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Vi},expandOpenIcon:{type:Vi},collapseCloseIcon:{type:Vi},collapseOpenIcon:{type:Vi}}),Hh="ElSubMenu";var wy=ue({name:Hh,props:T6,setup(e,{slots:t,expose:r}){const n=dt(),{indexPath:i,parentMenu:a}=PM(n,$(()=>e.index)),o=Ne("menu"),s=Ne("sub-menu"),l=Re("rootMenu");l||lo(Hh,"can not inject root menu");const u=Re(`subMenu:${a.value.uid}`);u||lo(Hh,"can not inject sub menu");const f=H({}),c=H({});let d;const h=H(!1),v=H(),p=H(null),g=$(()=>A.value==="horizontal"&&y.value?"bottom-start":"right-start"),m=$(()=>A.value==="horizontal"&&y.value||A.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?w.value?e.expandOpenIcon:e.expandCloseIcon:TT:e.collapseCloseIcon&&e.collapseOpenIcon?w.value?e.collapseOpenIcon:e.collapseCloseIcon:ny),y=$(()=>u.level===0),_=$(()=>e.popperAppendToBody===void 0?y.value:Boolean(e.popperAppendToBody)),b=$(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=$(()=>A.value==="horizontal"&&y.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),w=$(()=>l.openedMenus.includes(e.index)),S=$(()=>{let N=!1;return Object.values(f.value).forEach(U=>{U.active&&(N=!0)}),Object.values(c.value).forEach(U=>{U.active&&(N=!0)}),N}),C=$(()=>l.props.backgroundColor||""),T=$(()=>l.props.activeTextColor||""),E=$(()=>l.props.textColor||""),A=$(()=>l.props.mode),M=ln({index:e.index,indexPath:i,active:S}),D=$(()=>A.value!=="horizontal"?{color:E.value}:{borderBottomColor:S.value?l.props.activeTextColor?T.value:"":"transparent",color:S.value?T.value:E.value}),O=()=>{var N,U,re;return(re=(U=(N=p.value)==null?void 0:N.popperRef)==null?void 0:U.popperInstanceRef)==null?void 0:re.destroy()},k=N=>{N||O()},F=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:i.value,active:S.value})},j=(N,U=e.showTimeout)=>{var re;N.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=Fp(()=>{l.openMenu(e.index,i.value)},U),_.value&&((re=a.value.vnode.el)==null||re.dispatchEvent(new MouseEvent("mouseenter")))))},B=(N=!1)=>{var U,re;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Fp(()=>!h.value&&l.closeMenu(e.index,i.value),e.hideTimeout),_.value&&N&&((U=n.parent)==null?void 0:U.type.name)==="ElSubMenu"&&((re=u.handleMouseleave)==null||re.call(u,!0)))};Ee(()=>l.props.collapse,N=>k(Boolean(N)));{const N=re=>{c.value[re.index]=re},U=re=>{delete c.value[re.index]};Ct(`subMenu:${n.uid}`,{addSubMenu:N,removeSubMenu:U,handleMouseleave:B,mouseInChild:h,level:u.level+1})}return r({opened:w}),Et(()=>{l.addSubMenu(M),u.addSubMenu(M)}),rr(()=>{u.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var N;const U=[(N=t.title)==null?void 0:N.call(t),we(Cn,{class:s.e("icon-arrow"),style:{transform:w.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ue(m.value)?we(n.appContext.components[m.value]):we(m.value)})],re=LM(l.props,u.level+1),ae=l.isMenuPopup?we(Hu,{ref:p,visible:w.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:x.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var me;return we("div",{class:[o.m(A.value),o.m("popup-container"),e.popperClass],onMouseenter:Me=>j(Me,100),onMouseleave:()=>B(!0),onFocus:Me=>j(Me,100)},[we("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:re.value},[(me=t.default)==null?void 0:me.call(t)])])},default:()=>we("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],onClick:F},U)}):we(yt,{},[we("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],ref:v,onClick:F},U),we(mz,{},{default:()=>{var me;return qt(we("ul",{role:"menu",class:[o.b(),o.m("inline")],style:re.value},[(me=t.default)==null?void 0:me.call(t)]),[[pi,w.value]])}})]);return we("li",{class:[s.b(),s.is("active",S.value),s.is("opened",w.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:w.value,onMouseenter:j,onMouseleave:()=>B(!0),onFocus:j},[ae])}}});const M6=ot({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Pe(Array),default:()=>Va([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),zh=e=>Array.isArray(e)&&e.every(t=>Ue(t)),A6={close:(e,t)=>Ue(e)&&zh(t),open:(e,t)=>Ue(e)&&zh(t),select:(e,t,r,n)=>Ue(e)&&zh(t)&&Ke(r)&&(n===void 0||n instanceof Promise)};var E6=ue({name:"ElMenu",props:M6,emits:A6,setup(e,{emit:t,slots:r,expose:n}){const i=dt(),a=i.appContext.config.globalProperties.$router,o=H(),s=Ne("menu"),l=Ne("sub-menu"),u=H(-1),f=H(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),c=H(e.defaultActive),d=H({}),h=H({}),v=$(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const E=c.value&&d.value[c.value];if(!E||e.mode==="horizontal"||e.collapse)return;E.indexPath.forEach(M=>{const D=h.value[M];D&&g(M,D.indexPath)})},g=(E,A)=>{f.value.includes(E)||(e.uniqueOpened&&(f.value=f.value.filter(M=>A.includes(M))),f.value.push(E),t("open",E,A))},m=(E,A)=>{const M=f.value.indexOf(E);M!==-1&&f.value.splice(M,1),t("close",E,A)},y=({index:E,indexPath:A})=>{f.value.includes(E)?m(E,A):g(E,A)},_=E=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:A,indexPath:M}=E;if(!(A===void 0||M===void 0))if(e.router&&a){const D=E.route||A,O=a.push(D).then(k=>(k||(c.value=A),k));t("select",A,M,{index:A,indexPath:M,route:D},O)}else c.value=A,t("select",A,M,{index:A,indexPath:M})},b=E=>{const A=d.value,M=A[E]||c.value&&A[c.value]||A[e.defaultActive];M?c.value=M.index:c.value=E},x=()=>{var E,A;if(!o.value)return-1;const M=Array.from((A=(E=o.value)==null?void 0:E.childNodes)!=null?A:[]).filter(N=>N.nodeName!=="#text"||N.nodeValue),D=64,O=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),k=Number.parseInt(getComputedStyle(o.value).paddingRight,10),F=o.value.clientWidth-O-k;let j=0,B=0;return M.forEach((N,U)=>{j+=N.offsetWidth||0,j<=F-D&&(B=U+1)}),B===M.length?-1:B},w=(E,A=33.34)=>{let M;return()=>{M&&clearTimeout(M),M=setTimeout(()=>{E()},A)}};let S=!0;const C=()=>{const E=()=>{u.value=-1,zt(()=>{u.value=x()})};S?E():w(E)(),S=!1};Ee(()=>e.defaultActive,E=>{d.value[E]||(c.value=""),b(E)}),Ee(()=>e.collapse,E=>{E&&(f.value=[])}),Ee(d.value,p);let T;ts(()=>{e.mode==="horizontal"&&e.ellipsis?T=ds(o,C).stop:T==null||T()});{const E=O=>{h.value[O.index]=O},A=O=>{delete h.value[O.index]};Ct("rootMenu",ln({props:e,openedMenus:f,items:d,subMenus:h,activeIndex:c,isMenuPopup:v,addMenuItem:O=>{d.value[O.index]=O},removeMenuItem:O=>{delete d.value[O.index]},addSubMenu:E,removeSubMenu:A,openMenu:g,closeMenu:m,handleMenuItemClick:_,handleSubMenuClick:y})),Ct(`subMenu:${i.uid}`,{addSubMenu:E,removeSubMenu:A,mouseInChild:H(!1),level:0})}return Et(()=>{e.mode==="horizontal"&&new b6(i.vnode.el,s.namespace.value)}),n({open:A=>{const{indexPath:M}=h.value[A];M.forEach(D=>g(D,M))},close:m,handleResize:C}),()=>{var E,A;let M=(A=(E=r.default)==null?void 0:E.call(r))!=null?A:[];const D=[];if(e.mode==="horizontal"&&o.value){const F=cc(M),j=u.value===-1?F:F.slice(0,u.value),B=u.value===-1?[]:F.slice(u.value);B!=null&&B.length&&e.ellipsis&&(M=j,D.push(we(wy,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>we(Cn,{class:l.e("icon-more")},{default:()=>we(t5)}),default:()=>B})))}const O=LM(e,0),k=we("ul",{key:String(e.collapse),role:"menubar",ref:o,style:O.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...M,...D]);return e.collapseTransition&&e.mode==="vertical"?we(S6,()=>k):k}}});const P6=ot({index:{type:Pe([String,null]),default:null},route:{type:Pe([String,Object])},disabled:Boolean}),L6={click:e=>Ue(e.index)&&Array.isArray(e.indexPath)},Wh="ElMenuItem",D6=ue({name:Wh,components:{ElTooltip:Hu},props:P6,emits:L6,setup(e,{emit:t}){const r=dt(),n=Re("rootMenu"),i=Ne("menu"),a=Ne("menu-item");n||lo(Wh,"can not inject root menu");const{parentMenu:o,indexPath:s}=PM(r,wn(e,"index")),l=Re(`subMenu:${o.value.uid}`);l||lo(Wh,"can not inject sub menu");const u=$(()=>e.index===n.activeIndex),f=ln({index:e.index,indexPath:s,active:u}),c=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",f))};return Et(()=>{l.addSubMenu(f),n.addMenuItem(f)}),rr(()=>{l.removeSubMenu(f),n.removeMenuItem(f)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:i,nsMenuItem:a,handleClick:c}}});function I6(e,t,r,n,i,a){const o=gr("el-tooltip");return K(),Se("li",{class:de([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(K(),xe(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Z(()=>[Be(e.$slots,"title")]),default:Z(()=>[se("div",{class:de(e.nsMenu.be("tooltip","trigger"))},[Be(e.$slots,"default")],2)]),_:3},8,["effect"])):(K(),Se(yt,{key:1},[Be(e.$slots,"default"),Be(e.$slots,"title")],64))],2)}var DM=Je(D6,[["render",I6],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const R6={title:String},O6="ElMenuItemGroup",k6=ue({name:O6,props:R6,setup(){return{ns:Ne("menu-item-group")}}});function N6(e,t,r,n,i,a){return K(),Se("li",{class:de(e.ns.b())},[se("div",{class:de(e.ns.e("title"))},[e.$slots.title?Be(e.$slots,"title",{key:1}):(K(),Se(yt,{key:0},[kt(Ae(e.title),1)],64))],2),se("ul",null,[Be(e.$slots,"default")])],2)}var IM=Je(k6,[["render",N6],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const B6=Er(E6,{MenuItem:DM,MenuItemGroup:IM,SubMenu:wy}),F6=aa(DM);aa(IM);const $6=aa(wy),H6=ot({trigger:du.trigger,placement:Fh.placement,disabled:du.disabled,visible:qr.visible,transition:qr.transition,popperOptions:Fh.popperOptions,tabindex:Fh.tabindex,content:qr.content,popperStyle:qr.popperStyle,popperClass:qr.popperClass,enterable:{...qr.enterable,default:!0},effect:{...qr.effect,default:"light"},teleported:qr.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}}),z6={"update:visible":e=>gi(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},W6="onUpdate:visible",V6=ue({name:"ElPopover"}),G6=ue({...V6,props:H6,emits:z6,setup(e,{expose:t,emit:r}){const n=e,i=$(()=>n[W6]),a=Ne("popover"),o=H(),s=$(()=>{var g;return(g=L(o))==null?void 0:g.popperRef}),l=$(()=>[{width:vs(n.width)},n.popperStyle]),u=$(()=>[a.b(),n.popperClass,{[a.m("plain")]:!!n.content}]),f=$(()=>n.transition===`${a.namespace.value}-fade-in-linear`),c=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{r("before-enter")},h=()=>{r("before-leave")},v=()=>{r("after-enter")},p=()=>{r("update:visible",!1),r("after-leave")};return t({popperRef:s,hide:c}),(g,m)=>(K(),xe(L(Hu),go({ref_key:"tooltipRef",ref:o},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":L(u),"popper-style":L(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":L(f),"onUpdate:visible":L(i),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:Z(()=>[g.title?(K(),Se("div",{key:0,class:de(L(a).e("title")),role:"title"},Ae(g.title),3)):Ye("v-if",!0),Be(g.$slots,"default",{},()=>[kt(Ae(g.content),1)])]),default:Z(()=>[g.$slots.reference?Be(g.$slots,"reference",{key:0}):Ye("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 U6=Je(G6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const Ub=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var Y6={mounted(e,t){Ub(e,t)},updated(e,t){Ub(e,t)}};const q6="popover",j6=p5(Y6,q6),K6=Er(U6,{directive:j6}),X6=["start","center","end","space-around","space-between","space-evenly"],Z6=["top","middle","bottom"],Q6=ot({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:X6,default:"start"},align:{type:String,values:Z6,default:"top"}}),J6=ue({name:"ElRow"}),e8=ue({...J6,props:Q6,setup(e){const t=e,r=Ne("row"),n=$(()=>t.gutter);Ct(OT,{gutter:n});const i=$(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),a=$(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,t.align!=="top")]);return(o,s)=>(K(),xe(hi(o.tag),{class:de(L(a)),style:At(L(i))},{default:Z(()=>[Be(o.$slots,"default")]),_:3},8,["class","style"]))}});var t8=Je(e8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const RM=Er(t8);/*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */var r8=/["'&<>]/,n8=i8;function i8(e){var t=""+e,r=r8.exec(t);if(!r)return t;var n,i="",a=0,o=0;for(a=r.index;atypeof u=="string"?lu(s,u):u(s,l,e))):(t!=="$key"&&Ke(s)&&"$value"in s&&(s=s.$value),[Ke(s)?lu(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,f=s.key.length;ul.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:a?a(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+r}).map(s=>s.value)},OM=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},o8=function(e,t){let r=null;for(let n=0;n{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const r=t.split(".");let n=e;for(const i of r)n=n[i];return`${n}`}else if(typeof t=="function")return t.call(null,e)},Ka=function(e,t){const r={};return(e||[]).forEach((n,i)=>{r[Ut(n,t)]={row:n,index:i}}),r};function s8(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(ze(t,n)){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function xy(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function kM(e){return e===""||e!==void 0&&(e=xy(e),Number.isNaN(e)&&(e=80)),e}function l8(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function u8(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Rl(e,t,r){let n=!1;const i=e.indexOf(t),a=i!==-1,o=s=>{s==="add"?e.push(t):e.splice(i,1),n=!0,ye(t.children)&&t.children.forEach(l=>{Rl(e,l,r??!a)})};return gi(r)?r&&!a?o("add"):!r&&a&&o("remove"):o(a?"remove":"add"),n}function f8(e,t,r="children",n="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function a(o,s,l){t(o,s,l),s.forEach(u=>{if(u[n]){t(u,null,l+1);return}const f=u[r];i(f)||a(u,f,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];i(s)||a(o,s,0)})}let ai;function c8(e,t,r,n){n=xT({enterable:!0,showArrow:!0},n);const{nextZIndex:i}=yy(),a=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function s(){const g=n.effect==="light",m=document.createElement("div");return m.className=[`${a}-popper`,g?"is-light":"is-dark",n.popperClass||""].join(" "),r=n8(r),m.innerHTML=r,m.style.zIndex=String(i()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${a}-popper__arrow`,g}function u(){f&&f.update()}ai==null||ai(),ai=()=>{try{f&&f.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",c),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",ai),ai=void 0}catch{}};let f=null,c=u,d=ai;n.enterable&&({onOpen:c,onClose:d}=eM({showAfter:n.showAfter,hideAfter:n.hideAfter,open:u,close:ai}));const h=s();h.onmouseenter=c,h.onmouseleave=d;const v=[];if(n.offset&&v.push({name:"offset",options:{offset:[0,n.offset]}}),n.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=n.popperOptions||{};return f=QT(t,h,{placement:n.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",c),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",ai),f}function NM(e){return e.children?HF(e.children,NM):[e]}function qb(e,t){return e+t.colSpan}const BM=(e,t,r,n)=>{let i=0,a=e;const o=r.states.columns.value;if(n){const l=NM(n[e]);i=o.slice(0,o.indexOf(l[0])).reduce(qb,0),a=i+l.reduce(qb,0)-1}else i=e;let s;switch(t){case"left":a=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:a=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:i,after:a}:{}},Sy=(e,t,r,n,i,a=0)=>{const o=[],{direction:s,start:l,after:u}=BM(t,r,n,i);if(s){const f=s==="left";o.push(`${e}-fixed-column--${s}`),f&&u+a===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!f&&l-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function jb(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Cy=(e,t,r,n)=>{const{direction:i,start:a=0,after:o=0}=BM(e,t,r,n);if(!i)return;const s={},l=i==="left",u=r.states.columns.value;return l?s.left=u.slice(0,a).reduce(jb,0):s.right=u.slice(o+1).reverse().reduce(jb,0),s},ws=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function d8(e){const t=dt(),r=H(!1),n=H([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const f=Ka(n.value,u);n.value=l.reduce((c,d)=>{const h=Ut(d,u);return f[h]&&c.push(d),c},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{Rl(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],f=e.rowKey.value,c=Ka(u,f);n.value=l.reduce((d,h)=>{const v=c[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Ka(n.value,u)[Ut(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function h8(e){const t=dt(),r=H(null),n=H(null),i=u=>{t.store.assertRowKey(),r.value=u,o(u)},a=()=>{r.value=null},o=u=>{const{data:f,rowKey:c}=e;let d=null;c.value&&(d=(L(f)||[]).find(h=>Ut(h,c.value)===u)),n.value=d,t.emit("current-change",n.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:a,setCurrentRowByKey:o,updateCurrentRow:u=>{const f=n.value;if(u&&u!==f){n.value=u,t.emit("current-change",n.value,f);return}!u&&f&&(n.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const u=e.rowKey.value,f=e.data.value||[],c=n.value;if(!f.includes(c)&&c){if(u){const d=Ut(c,u);o(d)}else n.value=null;n.value===null&&t.emit("current-change",null,c)}else r.value&&(o(r.value),a())},states:{_currentRowKey:r,currentRow:n}}}function v8(e){const t=H([]),r=H({}),n=H(16),i=H(!1),a=H({}),o=H("hasChildren"),s=H("children"),l=dt(),u=$(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return c(m)}),f=$(()=>{const m=e.rowKey.value,y=Object.keys(a.value),_={};return y.length&&y.forEach(b=>{if(a.value[b].length){const x={children:[]};a.value[b].forEach(w=>{const S=Ut(w,m);x.children.push(S),w[o.value]&&!_[S]&&(_[S]={children:[]})}),_[b]=x}}),_}),c=m=>{const y=e.rowKey.value,_={};return f8(m,(b,x,w)=>{const S=Ut(b,y);Array.isArray(x)?_[S]={children:x.map(C=>Ut(C,y)),level:w}:i.value&&(_[S]={children:[],lazy:!0,level:w})},s.value,o.value),_},d=(m=!1,y=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const b=u.value,x=f.value,w=Object.keys(b),S={};if(w.length){const C=L(r),T=[],E=(M,D)=>{if(m)return t.value?y||t.value.includes(D):!!(y||M!=null&&M.expanded);{const O=y||t.value&&t.value.includes(D);return!!(M!=null&&M.expanded||O)}};w.forEach(M=>{const D=C[M],O={...b[M]};if(O.expanded=E(D,M),O.lazy){const{loaded:k=!1,loading:F=!1}=D||{};O.loaded=!!k,O.loading=!!F,T.push(M)}S[M]=O});const A=Object.keys(x);i.value&&A.length&&T.length&&A.forEach(M=>{const D=C[M],O=x[M].children;if(T.includes(M)){if(S[M].children.length!==0)throw new Error("[ElTable]children must be an empty array.");S[M].children=O}else{const{loaded:k=!1,loading:F=!1}=D||{};S[M]={lazy:!0,loaded:!!k,loading:!!F,expanded:E(D,M),children:O,level:""}}})}r.value=S,(_=l.store)==null||_.updateTableScrollY()};Ee(()=>t.value,()=>{d(!0)}),Ee(()=>u.value,()=>{d()}),Ee(()=>f.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,y)=>{l.store.assertRowKey();const _=e.rowKey.value,b=Ut(m,_),x=b&&r.value[b];if(b&&x&&"expanded"in x){const w=x.expanded;y=typeof y>"u"?!x.expanded:y,r.value[b].expanded=y,w!==y&&l.emit("expand-change",m,y),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const y=e.rowKey.value,_=Ut(m,y),b=r.value[_];i.value&&b&&"loaded"in b&&!b.loaded?g(m,_,b):v(m,void 0)},g=(m,y,_)=>{const{load:b}=l.props;b&&!r.value[y].loaded&&(r.value[y].loading=!0,b(m,_,x=>{if(!Array.isArray(x))throw new TypeError("[ElTable] data must be an array");r.value[y].loading=!1,r.value[y].loaded=!0,r.value[y].expanded=!0,x.length&&(a.value[y]=x),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:c,states:{expandRowKeys:t,treeData:r,indent:n,lazy:i,lazyTreeNodeMap:a,lazyColumnIdentifier:o,childrenColumnName:s}}}const p8=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:a8(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},yc=e=>{const t=[];return e.forEach(r=>{r.children?t.push.apply(t,yc(r.children)):t.push(r)}),t};function g8(){var e;const t=dt(),{size:r}=Cd((e=t.proxy)==null?void 0:e.$props),n=H(null),i=H([]),a=H([]),o=H(!1),s=H([]),l=H([]),u=H([]),f=H([]),c=H([]),d=H([]),h=H([]),v=H([]),p=H(0),g=H(0),m=H(0),y=H(!1),_=H([]),b=H(!1),x=H(!1),w=H(null),S=H({}),C=H(null),T=H(null),E=H(null),A=H(null),M=H(null);Ee(i,()=>t.state&&F(!1),{deep:!0});const D=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},O=fe=>{var Ce;(Ce=fe.children)==null||Ce.forEach($e=>{$e.fixed=fe.fixed,O($e)})},k=()=>{s.value.forEach(Xe=>{O(Xe)}),f.value=s.value.filter(Xe=>Xe.fixed===!0||Xe.fixed==="left"),c.value=s.value.filter(Xe=>Xe.fixed==="right"),f.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,f.value.unshift(s.value[0]));const fe=s.value.filter(Xe=>!Xe.fixed);l.value=[].concat(f.value).concat(fe).concat(c.value);const Ce=yc(fe),$e=yc(f.value),He=yc(c.value);p.value=Ce.length,g.value=$e.length,m.value=He.length,u.value=[].concat($e).concat(Ce).concat(He),o.value=f.value.length>0||c.value.length>0},F=(fe,Ce=!1)=>{fe&&k(),Ce?t.state.doLayout():t.state.debouncedUpdateLayout()},j=fe=>_.value.includes(fe),B=()=>{y.value=!1,_.value.length&&(_.value=[],t.emit("selection-change",[]))},N=()=>{let fe;if(n.value){fe=[];const Ce=Ka(_.value,n.value),$e=Ka(i.value,n.value);for(const He in Ce)ze(Ce,He)&&!$e[He]&&fe.push(Ce[He].row)}else fe=_.value.filter(Ce=>!i.value.includes(Ce));if(fe.length){const Ce=_.value.filter($e=>!fe.includes($e));_.value=Ce,t.emit("selection-change",Ce.slice())}},U=()=>(_.value||[]).slice(),re=(fe,Ce=void 0,$e=!0)=>{if(Rl(_.value,fe,Ce)){const Xe=(_.value||[]).slice();$e&&t.emit("select",Xe,fe),t.emit("selection-change",Xe)}},ae=()=>{var fe,Ce;const $e=x.value?!y.value:!(y.value||_.value.length);y.value=$e;let He=!1,Xe=0;const Ot=(Ce=(fe=t==null?void 0:t.store)==null?void 0:fe.states)==null?void 0:Ce.rowKey.value;i.value.forEach((ht,Wt)=>{const Hr=Wt+Xe;w.value?w.value.call(null,ht,Hr)&&Rl(_.value,ht,$e)&&(He=!0):Rl(_.value,ht,$e)&&(He=!0),Xe+=V(Ut(ht,Ot))}),He&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",_.value)},me=()=>{const fe=Ka(_.value,n.value);i.value.forEach(Ce=>{const $e=Ut(Ce,n.value),He=fe[$e];He&&(_.value[He.index]=Ce)})},Me=()=>{var fe,Ce,$e;if(((fe=i.value)==null?void 0:fe.length)===0){y.value=!1;return}let He;n.value&&(He=Ka(_.value,n.value));const Xe=function(Hr){return He?!!He[Ut(Hr,n.value)]:_.value.includes(Hr)};let Ot=!0,ht=0,Wt=0;for(let Hr=0,xL=(i.value||[]).length;Hr{var Ce;if(!t||!t.store)return 0;const{treeData:$e}=t.store.states;let He=0;const Xe=(Ce=$e.value[fe])==null?void 0:Ce.children;return Xe&&(He+=Xe.length,Xe.forEach(Ot=>{He+=V(Ot)})),He},J=(fe,Ce)=>{Array.isArray(fe)||(fe=[fe]);const $e={};return fe.forEach(He=>{S.value[He.id]=Ce,$e[He.columnKey||He.id]=Ce}),$e},W=(fe,Ce,$e)=>{T.value&&T.value!==fe&&(T.value.order=null),T.value=fe,E.value=Ce,A.value=$e},Y=()=>{let fe=L(a);Object.keys(S.value).forEach(Ce=>{const $e=S.value[Ce];if(!$e||$e.length===0)return;const He=OM({columns:u.value},Ce);He&&He.filterMethod&&(fe=fe.filter(Xe=>$e.some(Ot=>He.filterMethod.call(null,Ot,Xe,He))))}),C.value=fe},le=()=>{i.value=p8(C.value,{sortingColumn:T.value,sortProp:E.value,sortOrder:A.value})},he=(fe=void 0)=>{fe&&fe.filter||Y(),le()},Q=fe=>{const{tableHeaderRef:Ce}=t.refs;if(!Ce)return;const $e=Object.assign({},Ce.filterPanels),He=Object.keys($e);if(He.length)if(typeof fe=="string"&&(fe=[fe]),Array.isArray(fe)){const Xe=fe.map(Ot=>o8({columns:u.value},Ot));He.forEach(Ot=>{const ht=Xe.find(Wt=>Wt.id===Ot);ht&&(ht.filteredValue=[])}),t.store.commit("filterChange",{column:Xe,values:[],silent:!0,multi:!0})}else He.forEach(Xe=>{const Ot=u.value.find(ht=>ht.id===Xe);Ot&&(Ot.filteredValue=[])}),S.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},P=()=>{T.value&&(W(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:I,toggleRowExpansion:z,updateExpandRows:G,states:q,isRowExpanded:ne}=d8({data:i,rowKey:n}),{updateTreeExpandKeys:ce,toggleTreeExpansion:te,updateTreeData:ie,loadOrToggle:X,states:_e}=v8({data:i,rowKey:n}),{updateCurrentRowData:ve,updateCurrentRow:be,setCurrentRowKey:Ie,states:Fe}=h8({data:i,rowKey:n});return{assertRowKey:D,updateColumns:k,scheduleLayout:F,isSelected:j,clearSelection:B,cleanSelection:N,getSelectionRows:U,toggleRowSelection:re,_toggleAllSelection:ae,toggleAllSelection:null,updateSelectionByRowKey:me,updateAllSelected:Me,updateFilters:J,updateCurrentRow:be,updateSort:W,execFilter:Y,execSort:le,execQuery:he,clearFilter:Q,clearSort:P,toggleRowExpansion:z,setExpandRowKeysAdapter:fe=>{I(fe),ce(fe)},setCurrentRowKey:Ie,toggleRowExpansionAdapter:(fe,Ce)=>{u.value.some(({type:He})=>He==="expand")?z(fe,Ce):te(fe,Ce)},isRowExpanded:ne,updateExpandRows:G,updateCurrentRowData:ve,loadOrToggle:X,updateTreeData:ie,states:{tableSize:r,rowKey:n,data:i,_data:a,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:f,rightFixedColumns:c,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,leafColumnsLength:p,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:m,isAllSelected:y,selection:_,reserveSelection:b,selectOnIndeterminate:x,selectable:w,filters:S,filteredData:C,sortingColumn:T,sortProp:E,sortOrder:A,hoverRow:M,...q,..._e,...Fe}}}function ag(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=ag(r.children,t)),r)})}function FM(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&FM(t.children)}),e.sort((t,r)=>t.no-r.no)}function m8(){const e=dt(),t=g8();return{ns:Ne("table"),...t,mutations:{setData(o,s){const l=L(o._data)!==s;o.data.value=s,o._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),L(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,s,l){const u=L(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=ag(u,l)):(u.push(s),f=u),FM(f),o._columns.value=f,s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(o,s,l){const u=L(o._columns)||[];if(l)l.children.splice(l.children.findIndex(f=>f.id===s.id),1),zt(()=>{var f;((f=l.children)==null?void 0:f.length)===0&&delete l.children}),o._columns.value=ag(u,l);else{const f=u.indexOf(s);f>-1&&(u.splice(f,1),o._columns.value=u)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:f}=s;if(l){const c=L(o.columns).find(d=>d.property===l);c&&(c.order=u,e.store.updateSort(c,l,u),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:f}=o,c=L(l),d=L(u),h=L(f);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:c,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:f}=s,c=e.store.updateFilters(l,u);e.store.execQuery(),f||e.emit("filter-change",c),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){zt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Ol={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function y8(e,t){if(!e)throw new Error("Table is required.");const r=m8();return r.toggleAllSelection=zc(r._toggleAllSelection,10),Object.keys(Ol).forEach(n=>{$M(HM(t,n),n,r)}),_8(r,t),r}function _8(e,t){Object.keys(Ol).forEach(r=>{Ee(()=>HM(t,r),n=>{$M(n,r,e)})})}function $M(e,t,r){let n=e,i=Ol[t];typeof Ol[t]=="object"&&(i=i.key,n=n||Ol[t].default),r.states[i].value=n}function HM(e,t){if(t.includes(".")){const r=t.split(".");let n=e;return r.forEach(i=>{n=n[i]}),n}else return e[t]}class b8{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=H(null),this.scrollX=H(!1),this.scrollY=H(!1),this.bodyWidth=H(null),this.fixedWidth=H(null),this.rightFixedWidth=H(null),this.gutterWidth=0;for(const r in t)ze(t,r)&&(St(this[r])?this[r].value=t[r]:this[r]=t[r]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&r){let n=!0;const i=this.scrollY.value;return n=r.wrapRef.scrollHeight>r.wrapRef.clientHeight,this.scrollY.value=n,i!==n}return!1}setHeight(t,r="height"){if(!Rt)return;const n=this.table.vnode.el;if(t=l8(t),this.height.value=Number(t),!n&&(t||t===0))return zt(()=>this.setHeight(t,r));typeof t=="number"?(n.style[r]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!Rt)return;const t=this.fit,r=this.table.vnode.el.clientWidth;let n=0;const i=this.getFlattenColumns(),a=i.filter(l=>typeof l.width!="number");if(i.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),a.length>0&&t){if(i.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=r){this.scrollX.value=!1;const l=r-n;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+l;else{const u=a.reduce((d,h)=>d+Number(h.minWidth||80),0),f=l/u;let c=0;a.forEach((d,h)=>{if(h===0)return;const v=Math.floor(Number(d.minWidth||80)*f);c+=v,d.realWidth=Number(d.minWidth||80)+v}),a[0].realWidth=Number(a[0].minWidth||80)+l-c}}else this.scrollX.value=!0,a.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var i,a;switch(t){case"columns":(i=n.state)==null||i.onColumnsChange(this);break;case"scrollable":(a=n.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:w8}=bs,x8=ue({name:"ElTableFilterPanel",components:{ElCheckbox:bs,ElCheckboxGroup:w8,ElScrollbar:rM,ElTooltip:Hu,ElIcon:Cn,ArrowDown:TT,ArrowUp:P$},directives:{ClickOutside:IH},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=dt(),{t:r}=HT(),n=Ne("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const a=H(!1),o=H(null),s=$(()=>e.column&&e.column.filters),l=$({get:()=>{var b;return(((b=e.column)==null?void 0:b.filteredValue)||[])[0]},set:b=>{u.value&&(typeof b<"u"&&b!==null?u.value.splice(0,1,b):u.value.splice(0,1))}}),u=$({get(){return e.column?e.column.filteredValue||[]:[]},set(b){e.column&&e.upDataColumn("filteredValue",b)}}),f=$(()=>e.column?e.column.filterMultiple:!0),c=b=>b.value===l.value,d=()=>{a.value=!1},h=b=>{b.stopPropagation(),a.value=!a.value},v=()=>{a.value=!1},p=()=>{y(u.value),d()},g=()=>{u.value=[],y(u.value),d()},m=b=>{l.value=b,y(typeof b<"u"&&b!==null?u.value:[]),d()},y=b=>{e.store.commit("filterChange",{column:e.column,values:b}),e.store.updateAllSelected()};Ee(a,b=>{e.column&&e.upDataColumn("filterOpened",b)},{immediate:!0});const _=$(()=>{var b,x;return(x=(b=o.value)==null?void 0:b.popperRef)==null?void 0:x.contentRef});return{tooltipVisible:a,multiple:f,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:c,t:r,ns:n,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),S8={key:0},C8=["disabled"],T8=["label","onClick"];function M8(e,t,r,n,i,a){const o=gr("el-checkbox"),s=gr("el-checkbox-group"),l=gr("el-scrollbar"),u=gr("arrow-up"),f=gr("arrow-down"),c=gr("el-icon"),d=gr("el-tooltip"),h=Rm("click-outside");return K(),xe(d,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:Z(()=>[e.multiple?(K(),Se("div",S8,[se("div",{class:de(e.ns.e("content"))},[ee(l,{"wrap-class":e.ns.e("wrap")},{default:Z(()=>[ee(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:de(e.ns.e("checkbox-group"))},{default:Z(()=>[(K(!0),Se(yt,null,K0(e.filters,v=>(K(),xe(o,{key:v.value,label:v.value},{default:Z(()=>[kt(Ae(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),se("div",{class:de(e.ns.e("bottom"))},[se("button",{class:de({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},Ae(e.t("el.table.confirmFilter")),11,C8),se("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},Ae(e.t("el.table.resetFilter")),1)],2)])):(K(),Se("ul",{key:1,class:de(e.ns.e("list"))},[se("li",{class:de([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},Ae(e.t("el.table.clearFilter")),3),(K(!0),Se(yt,null,K0(e.filters,v=>(K(),Se("li",{key:v.value,class:de([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},Ae(v.text),11,T8))),128))],2))]),default:Z(()=>[qt((K(),Se("span",{class:de([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[ee(c,null,{default:Z(()=>[e.column.filterOpened?(K(),xe(u,{key:0})):(K(),xe(f,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var A8=Je(x8,[["render",M8],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function zM(e){const t=dt();Pd(()=>{r.value.addObserver(t)}),Et(()=>{n(r.value),i(r.value)}),Ld(()=>{n(r.value),i(r.value)}),Iu(()=>{r.value.removeObserver(t)});const r=$(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),n=a=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=a.getFlattenColumns(),u={};l.forEach(f=>{u[f.id]=f});for(let f=0,c=s.length;f{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,c=l.length;f{p.stopPropagation()},a=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&i(p),n==null||n.emit("header-click",g,p)},o=(p,g)=>{n==null||n.emit("header-contextmenu",g,p)},s=H(null),l=H(!1),u=H({}),f=(p,g)=>{if(Rt&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=n;t("set-drag-visible",!0);const _=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,b=r.vnode.el.querySelector(`th.${g.id}`),x=b.getBoundingClientRect(),w=x.left-_+30;Uo(b,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:x.right-_,startColumnLeft:x.left-_,tableLeft:_};const S=m==null?void 0:m.refs.resizeProxy;S.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const C=E=>{const A=E.clientX-u.value.startMouseLeft,M=u.value.startLeft+A;S.style.left=`${Math.max(w,M)}px`},T=()=>{if(l.value){const{startColumnLeft:E,startLeft:A}=u.value,D=Number.parseInt(S.style.left,10)-E;g.width=g.realWidth=D,m==null||m.emit("header-dragend",g.width,A-E,g,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",T),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{rs(b,"noclick")},0)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",T)}},c=(p,g)=>{var m;if(g.children&&g.children.length>0)return;const y=(m=p.target)==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=y.getBoundingClientRect(),b=document.body.style;_.width>12&&_.right-p.pageX<8?(b.cursor="col-resize",Pl(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=g):l.value||(b.cursor="",Pl(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},d=()=>{Rt&&(document.body.style.cursor="")},h=({order:p,sortOrders:g})=>{if(p==="")return g[0];const m=g.indexOf(p||null);return g[m>g.length-2?0:m+1]},v=(p,g,m)=>{var y;p.stopPropagation();const _=g.order===m?null:m||h(g),b=(y=p.target)==null?void 0:y.closest("th");if(b&&Pl(b,"noclick")){rs(b,"noclick");return}if(!g.sortable)return;const x=e.store.states;let w=x.sortProp.value,S;const C=x.sortingColumn.value;(C!==g||C===g&&C.order===null)&&(C&&(C.order=null),x.sortingColumn.value=g,w=g.property),_?S=g.order=_:S=g.order=null,x.sortProp.value=w,x.sortOrder.value=S,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:o,handleMouseDown:f,handleMouseMove:c,handleMouseOut:d,handleSortClick:v,handleFilterClick:i}}function P8(e){const t=Re(Zn),r=Ne("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,f)=>{var c;let d=(c=t==null?void 0:t.props.headerCellStyle)!=null?c:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:f}));const h=Cy(l,f.fixed,e.store,u);return ws(h,"left"),ws(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,f)=>{const c=Sy(r.b(),l,f.fixed,e.store,u),d=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...c];f.children||d.push("is-leaf"),f.sortable&&d.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return typeof h=="string"?d.push(h):typeof h=="function"&&d.push(h.call(null,{rowIndex:s,columnIndex:l,row:u,column:f})),d.push(r.e("cell")),d.filter(v=>Boolean(v)).join(" ")}}}const WM=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,WM(r.children))):t.push(r)}),t},L8=e=>{let t=1;const r=(a,o)=>{if(o&&(a.level=o.level+1,t{r(l,a),s+=l.colSpan}),a.colSpan=s}else a.colSpan=1};e.forEach(a=>{a.level=1,r(a,void 0)});const n=[];for(let a=0;a{a.children?(a.rowSpan=1,a.children.forEach(o=>o.isSubColumn=!0)):a.rowSpan=t-a.level+1,n[a.level-1].push(a)}),n};function D8(e){const t=Re(Zn),r=$(()=>L8(e.store.states.originColumns.value));return{isGroup:$(()=>{const a=r.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}var I8=ue({name:"ElTableHeader",components:{ElCheckbox:bs},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=dt(),n=Re(Zn),i=Ne("table"),a=H({}),{onColumnsChange:o,onScrollableChange:s}=zM(n);Et(async()=>{await zt(),await zt();const{prop:w,order:S}=e.defaultSort;n==null||n.store.commit("sort",{prop:w,order:S,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:c,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=E8(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:y}=P8(e),{isGroup:_,toggleAllSelection:b,columnRows:x}=D8(e);return r.state={onColumnsChange:o,onScrollableChange:s},r.filterPanels=a,{ns:i,filterPanels:a,onColumnsChange:o,onScrollableChange:s,columnRows:x,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:y,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:c,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,toggleAllSelection:b}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:n,getHeaderCellClass:i,getHeaderRowClass:a,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:f,handleSortClick:c,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return we("thead",{class:{[e.is("group")]:t}},r.map((g,m)=>we("tr",{class:a(m),key:m,style:o(m)},g.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),we("th",{class:i(m,_,g,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:n(m,_,g,y),onClick:b=>s(b,y),onContextmenu:b=>l(b,y),onMousedown:b=>u(b,y),onMousemove:b=>f(b,y),onMouseout:d},[we("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:_,store:h,_self:v}):y.label,y.sortable&&we("span",{onClick:b=>c(b,y),class:"caret-wrapper"},[we("i",{onClick:b=>c(b,y,"ascending"),class:"sort-caret ascending"}),we("i",{onClick:b=>c(b,y,"descending"),class:"sort-caret descending"})]),y.filterable&&we(A8,{store:h,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(b,x)=>{y[b]=x}})])]))))))}});function R8(e){const t=Re(Zn),r=H(""),n=H(we("div")),i=(d,h,v)=>{var p;const g=t,m=Vh(d);let y;const _=(p=g==null?void 0:g.vnode.el)==null?void 0:p.dataset.prefix;m&&(y=Yb({columns:e.store.states.columns.value},m,_),y&&(g==null||g.emit(`cell-${v}`,h,y,m,d))),g==null||g.emit(`row-${v}`,h,y,d)},a=(d,h)=>{i(d,h,"dblclick")},o=(d,h)=>{e.store.commit("setCurrentRow",h),i(d,h,"click")},s=(d,h)=>{i(d,h,"contextmenu")},l=zc(d=>{e.store.commit("setHoverRow",d)},30),u=zc(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:a,handleClick:o,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(d,h,v)=>{var p;const g=t,m=Vh(d),y=(p=g==null?void 0:g.vnode.el)==null?void 0:p.dataset.prefix;if(m){const S=Yb({columns:e.store.states.columns.value},m,y),C=g.hoverState={cell:m,column:S,row:h};g==null||g.emit("cell-mouse-enter",C.row,C.column,C.cell,d)}if(!v)return;const _=d.target.querySelector(".cell");if(!(Pl(_,`${y}-tooltip`)&&_.childNodes.length))return;const b=document.createRange();b.setStart(_,0),b.setEnd(_,_.childNodes.length);const x=Math.round(b.getBoundingClientRect().width),w=(Number.parseInt(ib(_,"paddingLeft"),10)||0)+(Number.parseInt(ib(_,"paddingRight"),10)||0);(x+w>_.offsetWidth||_.scrollWidth>_.offsetWidth)&&c8(t==null?void 0:t.refs.tableWrapper,m,m.innerText||m.textContent,v)},handleCellMouseLeave:d=>{if(!Vh(d))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,d)},tooltipContent:r,tooltipTrigger:n}}function O8(e){const t=Re(Zn),r=Ne("table");return{getRowStyle:(u,f)=>{const c=t==null?void 0:t.props.rowStyle;return typeof c=="function"?c.call(null,{row:u,rowIndex:f}):c||null},getRowClass:(u,f)=>{const c=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&c.push("current-row"),e.stripe&&f%2===1&&c.push(r.em("row","striped"));const d=t==null?void 0:t.props.rowClassName;return typeof d=="string"?c.push(d):typeof d=="function"&&c.push(d.call(null,{row:u,rowIndex:f})),c},getCellStyle:(u,f,c,d)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:f,row:c,column:d}));const p=Cy(f,e==null?void 0:e.fixed,e.store);return ws(p,"left"),ws(p,"right"),Object.assign({},v,p)},getCellClass:(u,f,c,d,h)=>{const v=Sy(r.b(),f,e==null?void 0:e.fixed,e.store,void 0,h),p=[d.id,d.align,d.className,...v],g=t==null?void 0:t.props.cellClassName;return typeof g=="string"?p.push(g):typeof g=="function"&&p.push(g.call(null,{rowIndex:u,columnIndex:f,row:c,column:d})),p.push(r.e("cell")),p.filter(m=>Boolean(m)).join(" ")},getSpan:(u,f,c,d)=>{let h=1,v=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const g=p({row:u,column:f,rowIndex:c,columnIndex:d});Array.isArray(g)?(h=g[0],v=g[1]):typeof g=="object"&&(h=g.rowspan,v=g.colspan)}return{rowspan:h,colspan:v}},getColspanRealWidth:(u,f,c)=>{if(f<1)return u[c].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(c,c+f);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function k8(e){const t=Re(Zn),r=Ne("table"),{handleDoubleClick:n,handleClick:i,handleContextMenu:a,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:f,tooltipTrigger:c}=R8(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=O8(e),y=$(()=>e.store.states.columns.value.findIndex(({type:S})=>S==="default")),_=(S,C)=>{const T=t.props.rowKey;return T?Ut(S,T):C},b=(S,C,T,E=!1)=>{const{tooltipEffect:A,tooltipOptions:M,store:D}=e,{indent:O,columns:k}=D.states,F=h(S,C);let j=!0;return T&&(F.push(r.em("row",`level-${T.level}`)),j=T.display),we("tr",{style:[j?null:{display:"none"},d(S,C)],class:F,key:_(S,C),onDblclick:N=>n(N,S),onClick:N=>i(N,S),onContextmenu:N=>a(N,S),onMouseenter:()=>o(C),onMouseleave:s},k.value.map((N,U)=>{const{rowspan:re,colspan:ae}=g(S,N,C,U);if(!re||!ae)return null;const me={...N};me.realWidth=m(k.value,ae,U);const Me={store:e.store,_self:e.context||t,column:me,row:S,$index:C,cellIndex:U,expanded:E};U===y.value&&T&&(Me.treeNode={indent:T.level*O.value,level:T.level},typeof T.expanded=="boolean"&&(Me.treeNode.expanded=T.expanded,"loading"in T&&(Me.treeNode.loading=T.loading),"noLazyChildren"in T&&(Me.treeNode.noLazyChildren=T.noLazyChildren)));const V=`${C},${U}`,J=me.columnKey||me.rawColumnKey||"",W=x(U,N,Me),Y=N.showOverflowTooltip&&xT({effect:A},M,N.showOverflowTooltip);return we("td",{style:v(C,U,S,N),class:p(C,U,S,N,ae-1),key:`${J}${V}`,rowspan:re,colspan:ae,onMouseenter:le=>l(le,S,Y),onMouseleave:u},[W])}))},x=(S,C,T)=>C.renderCell(T);return{wrappedRowRender:(S,C)=>{const T=e.store,{isRowExpanded:E,assertRowKey:A}=T,{treeData:M,lazyTreeNodeMap:D,childrenColumnName:O,rowKey:k}=T.states,F=T.states.columns.value;if(F.some(({type:B})=>B==="expand")){const B=E(S),N=b(S,C,void 0,B),U=t.renderExpanded;return B?U?[[N,we("tr",{key:`expanded-row__${N.key}`},[we("td",{colspan:F.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[U({row:S,$index:C,store:T,expanded:B})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(M.value).length){A();const B=Ut(S,k.value);let N=M.value[B],U=null;N&&(U={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(U.noLazyChildren=!(N.children&&N.children.length)),U.loading=N.loading));const re=[b(S,C,U)];if(N){let ae=0;const me=(V,J)=>{V&&V.length&&J&&V.forEach(W=>{const Y={display:J.display&&J.expanded,level:J.level+1,expanded:!1,noLazyChildren:!1,loading:!1},le=Ut(W,k.value);if(le==null)throw new Error("For nested data item, row-key is required.");if(N={...M.value[le]},N&&(Y.expanded=N.expanded,N.level=N.level||Y.level,N.display=!!(N.expanded&&Y.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(Y.noLazyChildren=!(N.children&&N.children.length)),Y.loading=N.loading)),ae++,re.push(b(W,C+ae,Y)),N){const he=D.value[le]||W[O.value];me(he,N)}})};N.display=!0;const Me=D.value[B]||S[O.value];me(Me,N)}return re}else return b(S,C,void 0)},tooltipContent:f,tooltipTrigger:c}}const N8={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var B8=ue({name:"ElTableBody",props:N8,setup(e){const t=dt(),r=Re(Zn),n=Ne("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}=k8(e),{onColumnsChange:s,onScrollableChange:l}=zM(r);return Ee(e.store.states.hoverRow,(u,f)=>{if(!e.store.states.isComplex.value||!Rt)return;let c=window.requestAnimationFrame;c||(c=d=>window.setTimeout(d,16)),c(()=>{const d=t==null?void 0:t.vnode.el,h=Array.from((d==null?void 0:d.children)||[]).filter(g=>g==null?void 0:g.classList.contains(`${n.e("row")}`)),v=h[f],p=h[u];v&&rs(v,"hover-row"),p&&Uo(p,"hover-row")})}),Iu(()=>{var u;(u=ai)==null||u()}),{ns:n,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,r=t.states.data.value||[];return we("tbody",{},[r.reduce((n,i)=>n.concat(e(i,n.length)),[])])}});function Ty(e){const t=e.tableLayout==="auto";let r=e.columns||[];t&&r.every(i=>i.width===void 0)&&(r=[]);const n=i=>{const a={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?a.style={width:`${i.width}px`}:a.name=i.id,a};return we("colgroup",{},r.map(i=>we("col",n(i))))}Ty.props=["columns","tableLayout"];function F8(){const e=Re(Zn),t=e==null?void 0:e.store,r=$(()=>t.states.fixedLeafColumnsLength.value),n=$(()=>t.states.rightFixedColumns.value.length),i=$(()=>t.states.columns.value.length),a=$(()=>t.states.fixedColumns.value.length),o=$(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:n,columnsCount:i,leftFixedCount:a,rightFixedCount:o,columns:t.states.columns}}function $8(e){const{columns:t}=F8(),r=Ne("table");return{getCellClasses:(a,o)=>{const s=a[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...Sy(r.b(),o,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(r.is("leaf")),l},getCellStyles:(a,o)=>{const s=Cy(o,a.fixed,e.store);return ws(s,"left"),ws(s,"right"),s},columns:t}}var H8=ue({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:r,columns:n}=$8(e);return{ns:Ne("table"),getCellClasses:t,getCellStyles:r,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:n,sumText:i,ns:a}=this,o=this.store.states.data.value;let s=[];return n?s=n({columns:e,data:o}):e.forEach((l,u)=>{if(u===0){s[u]=i;return}const f=o.map(v=>Number(v[l.property])),c=[];let d=!0;f.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const p=`${v}`.split(".")[1];c.push(p?p.length:0)}});const h=Math.max.apply(null,c);d?s[u]="":s[u]=f.reduce((v,p)=>{const g=Number(p);return Number.isNaN(+g)?v:Number.parseFloat((v+p).toFixed(Math.min(h,20)))},0)}),we("table",{class:a.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Ty({columns:e}),we("tbody",[we("tr",{},[...e.map((l,u)=>we("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:r(e,u),style:t(l,u)},[we("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function z8(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,c)=>{e.toggleRowSelection(f,c,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,c)=>{e.toggleRowExpansionAdapter(f,c)},clearSort:()=>{e.clearSort()},sort:(f,c)=>{e.commit("sort",{prop:f,order:c})}}}function W8(e,t,r,n){const i=H(!1),a=H(null),o=H(!1),s=B=>{o.value=B},l=H({width:null,height:null,headerHeight:null}),u=H(!1),f={display:"inline-block",verticalAlign:"middle"},c=H(),d=H(0),h=H(0),v=H(0),p=H(0);ts(()=>{t.setHeight(e.height)}),ts(()=>{t.setMaxHeight(e.maxHeight)}),Ee(()=>[e.currentRowKey,r.states.rowKey],([B,N])=>{!L(N)||!L(B)||r.setCurrentRowKey(`${B}`)},{immediate:!0}),Ee(()=>e.data,B=>{n.store.commit("setData",B)},{immediate:!0,deep:!0}),ts(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},m=(B,N)=>{const{pixelX:U,pixelY:re}=N;Math.abs(U)>=Math.abs(re)&&(n.refs.bodyWrapper.scrollLeft+=N.pixelX/5)},y=$(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),_=$(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),b=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(C)};Et(async()=>{await zt(),r.updateColumns(),T(),requestAnimationFrame(b);const B=n.vnode.el,N=n.refs.headerWrapper;e.flexible&&B&&B.parentElement&&(B.parentElement.style.minWidth="0"),l.value={width:c.value=B.offsetWidth,height:B.offsetHeight,headerHeight:e.showHeader&&N?N.offsetHeight:null},r.states.columns.value.forEach(U=>{U.filteredValue&&U.filteredValue.length&&n.store.commit("filterChange",{column:U,values:U.filteredValue,silent:!0})}),n.$ready=!0});const x=(B,N)=>{if(!B)return;const U=Array.from(B.classList).filter(re=>!re.startsWith("is-scrolling-"));U.push(t.scrollX.value?N:"is-scrolling-none"),B.className=U.join(" ")},w=B=>{const{tableWrapper:N}=n.refs;x(N,B)},S=B=>{const{tableWrapper:N}=n.refs;return!!(N&&N.classList.contains(B))},C=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const V="is-scrolling-none";S(V)||w(V);return}const B=n.refs.scrollBarRef.wrapRef;if(!B)return;const{scrollLeft:N,offsetWidth:U,scrollWidth:re}=B,{headerWrapper:ae,footerWrapper:me}=n.refs;ae&&(ae.scrollLeft=N),me&&(me.scrollLeft=N);const Me=re-U-1;N>=Me?w("is-scrolling-right"):w(N===0?"is-scrolling-left":"is-scrolling-middle")},T=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&$n(n.refs.scrollBarRef.wrapRef,"scroll",C,{passive:!0}),e.fit?ds(n.vnode.el,E):$n(window,"resize",E),ds(n.refs.bodyWrapper,()=>{var B,N;E(),(N=(B=n.refs)==null?void 0:B.scrollBarRef)==null||N.update()}))},E=()=>{var B,N,U;const re=n.vnode.el;if(!n.$ready||!re)return;let ae=!1;const{width:me,height:Me,headerHeight:V}=l.value,J=c.value=re.offsetWidth;me!==J&&(ae=!0);const W=re.offsetHeight;(e.height||y.value)&&Me!==W&&(ae=!0);const Y=e.tableLayout==="fixed"?n.refs.headerWrapper:(B=n.refs.tableHeaderRef)==null?void 0:B.$el;e.showHeader&&(Y==null?void 0:Y.offsetHeight)!==V&&(ae=!0),d.value=((N=n.refs.tableWrapper)==null?void 0:N.scrollHeight)||0,v.value=(Y==null?void 0:Y.scrollHeight)||0,p.value=((U=n.refs.footerWrapper)==null?void 0:U.offsetHeight)||0,h.value=d.value-v.value-p.value,ae&&(l.value={width:J,height:W,headerHeight:e.showHeader&&(Y==null?void 0:Y.offsetHeight)||0},b())},A=fo(),M=$(()=>{const{bodyWidth:B,scrollY:N,gutterWidth:U}=t;return B.value?`${B.value-(N.value?U:0)}px`:""}),D=$(()=>e.maxHeight?"fixed":e.tableLayout),O=$(()=>{if(e.data&&e.data.length)return null;let B="100%";e.height&&h.value&&(B=`${h.value}px`);const N=c.value;return{width:N?`${N}px`:"",height:B}}),k=$(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),F=$(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`};{const B=e.maxHeight;if(d.value>=Number(B))return{maxHeight:`${d.value-v.value-p.value}px`}}}return{}});return{isHidden:i,renderExpanded:a,setDragVisible:s,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:m,tableSize:A,emptyBlockStyle:O,handleFixedMousewheel:(B,N)=>{const U=n.refs.bodyWrapper;if(Math.abs(N.spinY)>0){const re=U.scrollTop;N.pixelY<0&&re!==0&&B.preventDefault(),N.pixelY>0&&U.scrollHeight-U.clientHeight>re&&B.preventDefault(),U.scrollTop+=Math.ceil(N.pixelY/5)}else U.scrollLeft+=Math.ceil(N.pixelX/5)},resizeProxyVisible:o,bodyWidth:M,resizeState:l,doLayout:b,tableBodyStyles:_,tableLayout:D,scrollbarViewStyle:f,tableInnerStyle:k,scrollbarStyle:F}}var V8={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const G8=()=>{const e=H(),t=(a,o)=>{const s=e.value;s&&s.scrollTo(a,o)},r=(a,o)=>{const s=e.value;s&&_r(o)&&["Top","Left"].includes(a)&&s[`setScroll${a}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>r("Top",a),setScrollLeft:a=>r("Left",a)}};let U8=1;const Y8=ue({name:"ElTable",directives:{Mousewheel:$H},components:{TableHeader:I8,TableBody:B8,TableFooter:H8,ElScrollbar:rM,hColgroup:Ty},props:V8,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=HT(),r=Ne("table"),n=dt();Ct(Zn,n);const i=y8(n,e);n.store=i;const a=new b8({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=a;const o=$(()=>(i.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:f,clearFilter:c,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=z8(i),{isHidden:g,renderExpanded:m,setDragVisible:y,isGroup:_,handleMouseLeave:b,handleHeaderFooterMousewheel:x,tableSize:w,emptyBlockStyle:S,handleFixedMousewheel:C,resizeProxyVisible:T,bodyWidth:E,resizeState:A,doLayout:M,tableBodyStyles:D,tableLayout:O,scrollbarViewStyle:k,tableInnerStyle:F,scrollbarStyle:j}=W8(e,a,i,n),{scrollBarRef:B,scrollTo:N,setScrollLeft:U,setScrollTop:re}=G8(),ae=zc(M,50),me=`${r.namespace.value}-table_${U8++}`;n.tableId=me,n.state={isGroup:_,resizeState:A,doLayout:M,debouncedUpdateLayout:ae};const Me=$(()=>e.sumText||t("el.table.sumText")),V=$(()=>e.emptyText||t("el.table.emptyText"));return{ns:r,layout:a,store:i,handleHeaderFooterMousewheel:x,handleMouseLeave:b,tableId:me,tableSize:w,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:T,resizeState:A,isGroup:_,bodyWidth:E,tableBodyStyles:D,emptyBlockStyle:S,debouncedUpdateLayout:ae,handleFixedMousewheel:C,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:f,clearFilter:c,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:M,sort:p,t,setDragVisible:y,context:n,computedSumText:Me,computedEmptyText:V,tableLayout:O,scrollbarViewStyle:k,tableInnerStyle:F,scrollbarStyle:j,scrollBarRef:B,scrollTo:N,setScrollLeft:U,setScrollTop:re}}}),q8=["data-prefix"],j8={ref:"hiddenColumns",class:"hidden-columns"};function K8(e,t,r,n,i,a){const o=gr("hColgroup"),s=gr("table-header"),l=gr("table-body"),u=gr("el-scrollbar"),f=gr("table-footer"),c=Rm("mousewheel");return K(),Se("div",{ref:"tableWrapper",class:de([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:At(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=d=>e.handleMouseLeave())},[se("div",{class:de(e.ns.e("inner-wrapper")),style:At(e.tableInnerStyle)},[se("div",j8,[Be(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?qt((K(),Se("div",{key:0,ref:"headerWrapper",class:de(e.ns.e("header-wrapper"))},[se("table",{ref:"tableHeader",class:de(e.ns.e("header")),style:At(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[ee(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ee(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[c,e.handleHeaderFooterMousewheel]]):Ye("v-if",!0),se("div",{ref:"bodyWrapper",class:de(e.ns.e("body-wrapper"))},[ee(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Z(()=>[se("table",{ref:"tableBody",class:de(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:At({width:e.bodyWidth,tableLayout:e.tableLayout})},[ee(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(K(),xe(s,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):Ye("v-if",!0),ee(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(K(),Se("div",{key:0,ref:"emptyBlock",style:At(e.emptyBlockStyle),class:de(e.ns.e("empty-block"))},[se("span",{class:de(e.ns.e("empty-text"))},[Be(e.$slots,"empty",{},()=>[kt(Ae(e.computedEmptyText),1)])],2)],6)):Ye("v-if",!0),e.$slots.append?(K(),Se("div",{key:1,ref:"appendWrapper",class:de(e.ns.e("append-wrapper"))},[Be(e.$slots,"append")],2)):Ye("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?qt((K(),Se("div",{key:1,ref:"footerWrapper",class:de(e.ns.e("footer-wrapper"))},[ee(f,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:At(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[pi,!e.isEmpty],[c,e.handleHeaderFooterMousewheel]]):Ye("v-if",!0),e.border||e.isGroup?(K(),Se("div",{key:2,class:de(e.ns.e("border-left-patch"))},null,2)):Ye("v-if",!0)],6),qt(se("div",{ref:"resizeProxy",class:de(e.ns.e("column-resize-proxy"))},null,2),[[pi,e.resizeProxyVisible]])],46,q8)}var X8=Je(Y8,[["render",K8],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const Z8={selection:"table-column--selection",expand:"table__expand-column"},Q8={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},J8=e=>Z8[e]||"",eW={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return we(bs,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:r,$index:n}){return we(bs,{disabled:t.selectable?!t.selectable.call(null,e,n):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:r.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let r=t+1;const n=e.index;return typeof n=="number"?r=t+n:typeof n=="function"&&(r=n(t)),we("div",{},[r])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:r}){const{ns:n}=t,i=[n.e("expand-icon")];return r&&i.push(n.em("expand-icon","expanded")),we("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[we(Cn,null,{default:()=>[we(ny)]})]})},sortable:!1,resizable:!1}};function tW({row:e,column:t,$index:r}){var n;const i=t.property,a=i&&fc(e,i).value;return t&&t.formatter?t.formatter(e,t,a,r):((n=a==null?void 0:a.toString)==null?void 0:n.call(a))||""}function rW({row:e,treeNode:t,store:r},n=!1){const{ns:i}=r;if(!t)return n?[we("span",{class:i.e("placeholder")})]:null;const a=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&a.push(we("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let l=ny;t.loading&&(l=ET),a.push(we("div",{class:s,onClick:o},{default:()=>[we(Cn,{class:{[i.is("loading")]:t.loading}},{default:()=>[we(l)]})]}))}else a.push(we("span",{class:i.e("placeholder")}));return a}function Kb(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function nW(e,t){const r=dt();return{registerComplexWatchers:()=>{const a=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=Kb(a,o);Object.keys(s).forEach(l=>{const u=o[l];ze(t,u)&&Ee(()=>t[u],f=>{let c=f;u==="width"&&l==="realWidth"&&(c=xy(f)),u==="minWidth"&&l==="realMinWidth"&&(c=kM(f)),r.columnConfig.value[u]=c,r.columnConfig.value[l]=c;const d=u==="fixed";e.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=Kb(a,o);Object.keys(s).forEach(l=>{const u=o[l];ze(t,u)&&Ee(()=>t[u],f=>{r.columnConfig.value[l]=f})})}}}function iW(e,t,r){const n=dt(),i=H(""),a=H(!1),o=H(),s=H(),l=Ne("table");ts(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),ts(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=$(()=>{let _=n.vnode.vParent||n.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),f=$(()=>{const{store:_}=n.parent;if(!_)return!1;const{treeData:b}=_.states,x=b.value;return x&&Object.keys(x).length>0}),c=H(xy(e.width)),d=H(kM(e.minWidth)),h=_=>(c.value&&(_.width=c.value),d.value&&(_.minWidth=d.value),!c.value&&d.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(_.width===void 0?_.minWidth:_.width),_),v=_=>{const b=_.type,x=eW[b]||{};Object.keys(x).forEach(S=>{const C=x[S];S!=="className"&&C!==void 0&&(_[S]=C)});const w=J8(b);if(w){const S=`${L(l.namespace)}-${w}`;_.className=_.className?`${_.className} ${S}`:S}return _},p=_=>{Array.isArray(_)?_.forEach(x=>b(x)):b(_);function b(x){var w;((w=x==null?void 0:x.type)==null?void 0:w.name)==="ElTableColumn"&&(x.vParent=n)}};return{columnId:i,realAlign:o,isSubColumn:a,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=x=>{n.columnConfig.value.label;const w=t.header;return w?w(x):_.label});let b=_.renderCell;return _.type==="expand"?(_.renderCell=x=>we("div",{class:"cell"},[b(x)]),r.value.renderExpanded=x=>t.default?t.default(x):t.default):(b=b||tW,_.renderCell=x=>{let w=null;if(t.default){const E=t.default(x);w=E.some(A=>A.type!==br)?E:b(x)}else w=b(x);const S=f.value&&x.cellIndex===0&&x.column.type!=="selection",C=rW(x,S),T={class:"cell",style:{}};return _.showOverflowTooltip&&(T.class=`${T.class} ${L(l.namespace)}-tooltip`,T.style={width:`${(x.column.realWidth||Number(x.column.width))-1}px`}),p(w),we("div",T,[C,w])}),_},getPropsData:(..._)=>_.reduce((b,x)=>(Array.isArray(x)&&x.forEach(w=>{b[w]=e[w]}),b),{}),getColumnElIndex:(_,b)=>Array.prototype.indexOf.call(_,b)}}var aW={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let oW=1;var VM=ue({name:"ElTableColumn",components:{ElCheckbox:bs},props:aW,setup(e,{slots:t}){const r=dt(),n=H({}),i=$(()=>{let y=r.parent;for(;y&&!y.tableId;)y=y.parent;return y}),{registerNormalWatchers:a,registerComplexWatchers:o}=nW(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:f,setColumnWidth:c,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g}=iW(e,t,i),m=f.value;s.value=`${m.tableId||m.columnId}_column_${oW++}`,Pd(()=>{l.value=i.value!==m;const y=e.type||"default",_=e.sortable===""?!0:e.sortable,b={...Q8[y],id:s.value,type:y,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:r.vnode.key};let T=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);T=s8(b,T),T=u8(h,c,d)(T),n.value=T,a(),o()}),Et(()=>{var y;const _=f.value,b=l.value?_.vnode.el.children:(y=_.refs.hiddenColumns)==null?void 0:y.children,x=()=>p(b||[],r.vnode.el);n.value.getColumnIndex=x,x()>-1&&i.value.store.commit("insertColumn",n.value,l.value?_.columnConfig.value:null)}),rr(()=>{i.value.store.commit("removeColumn",n.value,l.value?m.columnConfig.value:null)}),r.columnId=s.value,r.columnConfig=n},render(){var e,t,r;try{const n=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(n))for(const o of n)((r=o.type)==null?void 0:r.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===yt&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!Ue(s==null?void 0:s.children)&&i.push(s)});return we("div",i)}catch{return we("div",[])}}});const sW=Er(X8,{TableColumn:VM}),lW=aa(VM),GM=["success","info","warning","error"],vr=Va({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Rt?document.body:void 0}),uW=ot({customClass:{type:String,default:vr.customClass},center:{type:Boolean,default:vr.center},dangerouslyUseHTMLString:{type:Boolean,default:vr.dangerouslyUseHTMLString},duration:{type:Number,default:vr.duration},icon:{type:Vi,default:vr.icon},id:{type:String,default:vr.id},message:{type:Pe([String,Object,Function]),default:vr.message},onClose:{type:Pe(Function),required:!1},showClose:{type:Boolean,default:vr.showClose},type:{type:String,values:GM,default:vr.type},offset:{type:Number,default:vr.offset},zIndex:{type:Number,default:vr.zIndex},grouping:{type:Boolean,default:vr.grouping},repeatNum:{type:Number,default:vr.repeatNum}}),fW={destroy:()=>!0},Hn=lC([]),cW=e=>{const t=Hn.findIndex(i=>i.id===e),r=Hn[t];let n;return t>0&&(n=Hn[t-1]),{current:r,prev:n}},dW=e=>{const{prev:t}=cW(e);return t?t.vm.exposed.bottom.value:0},hW=["id"],vW=["innerHTML"],pW=ue({name:"ElMessage"}),gW=ue({...pW,props:uW,emits:fW,setup(e,{expose:t}){const r=e,{Close:n}=h5,i=Ne("message"),a=H(),o=H(!1),s=H(0);let l;const u=$(()=>r.type?r.type==="error"?"danger":r.type:"info"),f=$(()=>{const b=r.type;return{[i.bm("icon",b)]:b&&ab[b]}}),c=$(()=>r.icon||ab[r.type]||""),d=$(()=>dW(r.id)),h=$(()=>r.offset+d.value),v=$(()=>s.value+h.value),p=$(()=>({top:`${h.value}px`,zIndex:r.zIndex}));function g(){r.duration!==0&&({stop:l}=Fp(()=>{y()},r.duration))}function m(){l==null||l()}function y(){o.value=!1}function _({code:b}){b===Lt.esc&&y()}return Et(()=>{g(),o.value=!0}),Ee(()=>r.repeatNum,()=>{m(),g()}),$n(document,"keydown",_),ds(a,()=>{s.value=a.value.getBoundingClientRect().height}),t({visible:o,bottom:v,close:y}),(b,x)=>(K(),xe(Kn,{name:L(i).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:x[0]||(x[0]=w=>b.$emit("destroy")),persisted:""},{default:Z(()=>[qt(se("div",{id:b.id,ref_key:"messageRef",ref:a,class:de([L(i).b(),{[L(i).m(b.type)]:b.type&&!b.icon},L(i).is("center",b.center),L(i).is("closable",b.showClose),b.customClass]),style:At(L(p)),role:"alert",onMouseenter:m,onMouseleave:g},[b.repeatNum>1?(K(),xe(L(aH),{key:0,value:b.repeatNum,type:L(u),class:de(L(i).e("badge"))},null,8,["value","type","class"])):Ye("v-if",!0),L(c)?(K(),xe(L(Cn),{key:1,class:de([L(i).e("icon"),L(f)])},{default:Z(()=>[(K(),xe(hi(L(c))))]),_:1},8,["class"])):Ye("v-if",!0),Be(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(K(),Se(yt,{key:1},[Ye(" Caution here, message could've been compromised, never use user's input as message "),se("p",{class:de(L(i).e("content")),innerHTML:b.message},null,10,vW)],2112)):(K(),Se("p",{key:0,class:de(L(i).e("content"))},Ae(b.message),3))]),b.showClose?(K(),xe(L(Cn),{key:2,class:de(L(i).e("closeBtn")),onClick:Ep(y,["stop"])},{default:Z(()=>[ee(L(n))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],46,hW),[[pi,o.value]])]),_:3},8,["name","onBeforeLeave"]))}});var mW=Je(gW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let yW=1;const UM=e=>{const t=!e||Ue(e)||Ji(e)||Le(e)?{message:e}:e,r={...vr,...t};if(!r.appendTo)r.appendTo=document.body;else if(Ue(r.appendTo)){let n=document.querySelector(r.appendTo);hs(n)||(n=document.body),r.appendTo=n}return r},_W=e=>{const t=Hn.indexOf(e);if(t===-1)return;Hn.splice(t,1);const{handler:r}=e;r.close()},bW=({appendTo:e,...t},r)=>{const{nextZIndex:n}=yy(),i=`message_${yW++}`,a=t.onClose,o=document.createElement("div"),s={...t,zIndex:n()+t.zIndex,id:i,onClose:()=>{a==null||a(),_W(c)},onDestroy:()=>{b_(null,o)}},l=ee(mW,s,Le(s.message)||Ji(s.message)?{default:Le(s.message)?s.message:()=>s.message}:null);l.appContext=r||xs._context,b_(l,o),e.appendChild(o.firstElementChild);const u=l.component,c={id:i,vnode:l,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:l.component.props};return c},xs=(e={},t)=>{if(!Rt)return{close:()=>{}};if(_r(Jp.max)&&Hn.length>=Jp.max)return{close:()=>{}};const r=UM(e);if(r.grouping&&Hn.length){const i=Hn.find(({vnode:a})=>{var o;return((o=a.props)==null?void 0:o.message)===r.message});if(i)return i.props.repeatNum+=1,i.props.type=r.type,i.handler}const n=bW(r,t);return Hn.push(n),n.handler};GM.forEach(e=>{xs[e]=(t={},r)=>{const n=UM(t);return xs({...n,type:e},r)}});function wW(e){for(const t of Hn)(!e||e===t.props.type)&&t.handler.close()}xs.closeAll=wW;xs._context=null;const YM=v5(xs,"$message"),xW={id:"app"},SW={class:"grid-content header-color"},CW=se("a",{class:"brand",href:"#"},"frp",-1),TW=se("span",null,"Proxies",-1),MW={id:"content"},AW=se("footer",null,null,-1),EW=ue({__name:"App",setup(e){const t=r=>{r==""&&window.open("https://github.com/fatedier/frp")};return(r,n)=>{const i=RM,a=F6,o=$6,s=B6,l=CM,u=gr("router-view");return K(),Se("div",xW,[se("header",SW,[ee(i,null,{default:Z(()=>[CW]),_:1})]),se("section",null,[ee(i,null,{default:Z(()=>[ee(l,{id:"side-nav",xs:24,md:4},{default:Z(()=>[ee(s,{"default-active":"/",mode:"vertical",theme:"light",router:"false",onSelect:t},{default:Z(()=>[ee(a,{index:"/"},{default:Z(()=>[kt("Overview")]),_:1}),ee(o,{index:"/proxies"},{title:Z(()=>[TW]),default:Z(()=>[ee(a,{index:"/proxies/tcp"},{default:Z(()=>[kt("TCP")]),_:1}),ee(a,{index:"/proxies/udp"},{default:Z(()=>[kt("UDP")]),_:1}),ee(a,{index:"/proxies/http"},{default:Z(()=>[kt("HTTP")]),_:1}),ee(a,{index:"/proxies/https"},{default:Z(()=>[kt("HTTPS")]),_:1}),ee(a,{index:"/proxies/stcp"},{default:Z(()=>[kt("STCP")]),_:1}),ee(a,{index:"/proxies/sudp"},{default:Z(()=>[kt("SUDP")]),_:1})]),_:1}),ee(a,{index:""},{default:Z(()=>[kt("Help")]),_:1})]),_:1})]),_:1}),ee(l,{xs:24,md:20},{default:Z(()=>[se("div",MW,[ee(u)])]),_:1})]),_:1})]),AW])}}});/*! * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT */const Wo=typeof window<"u";function PW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const st=Object.assign;function Gh(e,t){const r={};for(const n in t){const i=t[n];r[n]=Tn(i)?i.map(e):e(i)}return r}const kl=()=>{},Tn=Array.isArray,LW=/\/$/,DW=e=>e.replace(LW,"");function Uh(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=kW(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function IW(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Xb(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function RW(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Ss(t.matched[n],r.matched[i])&&qM(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Ss(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qM(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!OW(e[r],t[r]))return!1;return!0}function OW(e,t){return Tn(e)?Zb(e,t):Tn(t)?Zb(t,e):e===t}function Zb(e,t){return Tn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function kW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let i=r.length-1,a,o;for(a=0;a1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var vu;(function(e){e.pop="pop",e.push="push"})(vu||(vu={}));var Nl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Nl||(Nl={}));function NW(e){if(!e)if(Wo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),DW(e)}const BW=/^[^#]+#/;function FW(e,t){return e.replace(BW,"#")+t}function $W(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const jd=()=>({left:window.pageXOffset,top:window.pageYOffset});function HW(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=$W(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Qb(e,t){return(history.state?history.state.position-t:-1)+e}const og=new Map;function zW(e,t){og.set(e,t)}function WW(e){const t=og.get(e);return og.delete(e),t}let VW=()=>location.protocol+"//"+location.host;function jM(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),Xb(l,"")}return Xb(r,e)+n+i}function GW(e,t,r,n){let i=[],a=[],o=null;const s=({state:d})=>{const h=jM(e,location),v=r.value,p=t.value;let g=0;if(d){if(r.value=h,t.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else n(h);i.forEach(m=>{m(r.value,v,{delta:g,type:vu.pop,direction:g?g>0?Nl.forward:Nl.back:Nl.unknown})})};function l(){o=r.value}function u(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return a.push(h),h}function f(){const{history:d}=window;d.state&&d.replaceState(st({},d.state,{scroll:jd()}),"")}function c(){for(const d of a)d();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:c}}function Jb(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?jd():null}}function UW(e){const{history:t,location:r}=window,n={value:jM(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=e.indexOf("#"),d=c>-1?(r.host&&document.querySelector("base")?e:e.slice(c))+l:VW()+e+l;try{t[f?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),r[f?"replace":"assign"](d)}}function o(l,u){const f=st({},t.state,Jb(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,f,!0),n.value=l}function s(l,u){const f=st({},i.value,t.state,{forward:l,scroll:jd()});a(f.current,f,!0);const c=st({},Jb(n.value,l,null),{position:f.position+1},u);a(l,c,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function YW(e){e=NW(e);const t=UW(e),r=GW(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=st({location:"",base:e,go:n,createHref:FW.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function qW(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),YW(e)}function jW(e){return typeof e=="string"||e&&typeof e=="object"}function KM(e){return typeof e=="string"||typeof e=="symbol"}const Li={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},XM=Symbol("");var e1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(e1||(e1={}));function Cs(e,t){return st(new Error,{type:e,[XM]:!0},t)}function ri(e,t){return e instanceof Error&&XM in e&&(t==null||!!(e.type&t))}const t1="[^/]+?",KW={sensitive:!1,strict:!1,start:!0,end:!0},XW=/[.+*?^${}()[\]/\\]/g;function ZW(e,t){const r=st({},KW,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let c=0;ct.length?t.length===1&&t[0]===40+40?1:-1:0}function JW(e,t){let r=0;const n=e.score,i=t.score;for(;r0&&t[t.length-1]<0}const eV={type:0,value:""},tV=/[a-zA-Z0-9_]/;function rV(e){if(!e)return[[]];if(e==="/")return[[eV]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s{o(y)}:kl}function o(f){if(KM(f)){const c=n.get(f);c&&(n.delete(f),r.splice(r.indexOf(c),1),c.children.forEach(o),c.alias.forEach(o))}else{const c=r.indexOf(f);c>-1&&(r.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){let c=0;for(;c=0&&(f.record.path!==r[c].record.path||!ZM(f,r[c]));)c++;r.splice(c,0,f),f.record.name&&!i1(f)&&n.set(f.record.name,f)}function u(f,c){let d,h={},v,p;if("name"in f&&f.name){if(d=n.get(f.name),!d)throw Cs(1,{location:f});p=d.record.name,h=st(n1(c.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),f.params&&n1(f.params,d.keys.map(y=>y.name))),v=d.stringify(h)}else if("path"in f)v=f.path,d=r.find(y=>y.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=c.name?n.get(c.name):r.find(y=>y.re.test(c.path)),!d)throw Cs(1,{location:f,currentLocation:c});p=d.record.name,h=st({},c.params,f.params),v=d.stringify(h)}const g=[];let m=d;for(;m;)g.unshift(m.record),m=m.parent;return{name:p,path:v,params:h,matched:g,meta:sV(g)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function n1(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function aV(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:oV(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function oV(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function i1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function sV(e){return e.reduce((t,r)=>st(t,r.meta),{})}function a1(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function ZM(e,t){return t.children.some(r=>r===e||ZM(e,r))}const QM=/#/g,lV=/&/g,uV=/\//g,fV=/=/g,cV=/\?/g,JM=/\+/g,dV=/%5B/g,hV=/%5D/g,eA=/%5E/g,vV=/%60/g,tA=/%7B/g,pV=/%7C/g,rA=/%7D/g,gV=/%20/g;function My(e){return encodeURI(""+e).replace(pV,"|").replace(dV,"[").replace(hV,"]")}function mV(e){return My(e).replace(tA,"{").replace(rA,"}").replace(eA,"^")}function sg(e){return My(e).replace(JM,"%2B").replace(gV,"+").replace(QM,"%23").replace(lV,"%26").replace(vV,"`").replace(tA,"{").replace(rA,"}").replace(eA,"^")}function yV(e){return sg(e).replace(fV,"%3D")}function _V(e){return My(e).replace(QM,"%23").replace(cV,"%3F")}function bV(e){return e==null?"":_V(e).replace(uV,"%2F")}function Yc(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function wV(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&sg(a)):[n&&sg(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function xV(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Tn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const SV=Symbol(""),s1=Symbol(""),Ay=Symbol(""),nA=Symbol(""),lg=Symbol("");function qs(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function zi(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(Cs(4,{from:r,to:t})):c instanceof Error?s(c):jW(c)?s(Cs(2,{from:t,to:c})):(a&&n.enterCallbacks[i]===a&&typeof c=="function"&&a.push(c),o())},u=e.call(n&&n.instances[i],t,r,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function Yh(e,t,r,n){const i=[];for(const a of e)for(const o in a.components){let s=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(CV(s)){const u=(s.__vccOpts||s)[t];u&&i.push(zi(u,r,n,a,o))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=PW(u)?u.default:u;a.components[o]=f;const d=(f.__vccOpts||f)[t];return d&&zi(d,r,n,a,o)()}))}}return i}function CV(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function l1(e){const t=Re(Ay),r=Re(nA),n=$(()=>t.resolve(L(e.to))),i=$(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const d=c.findIndex(Ss.bind(null,f));if(d>-1)return d;const h=u1(l[u-2]);return u>1&&u1(f)===h&&c[c.length-1].path!==h?c.findIndex(Ss.bind(null,l[u-2])):d}),a=$(()=>i.value>-1&&EV(r.params,n.value.params)),o=$(()=>i.value>-1&&i.value===r.matched.length-1&&qM(r.params,n.value.params));function s(l={}){return AV(l)?t[L(e.replace)?"replace":"push"](L(e.to)).catch(kl):Promise.resolve()}return{route:n,href:$(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const TV=ue({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:l1,setup(e,{slots:t}){const r=ln(l1(e)),{options:n}=Re(Ay),i=$(()=>({[f1(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[f1(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:we("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),MV=TV;function AV(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function EV(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Tn(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function u1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const f1=(e,t,r)=>e??t??r,PV=ue({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Re(lg),i=$(()=>e.route||n.value),a=Re(s1,0),o=$(()=>{let u=L(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=$(()=>i.value.matched[o.value]);Ct(s1,$(()=>o.value+1)),Ct(SV,s),Ct(lg,i);const l=H();return Ee(()=>[l.value,s.value,e.name],([u,f,c],[d,h,v])=>{f&&(f.instances[c]=u,h&&h!==f&&u&&u===d&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),u&&f&&(!h||!Ss(f,h)||!d)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=e.name,c=s.value,d=c&&c.components[f];if(!d)return c1(r.default,{Component:d,route:u});const h=c.props[f],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=we(d,st({},v,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return c1(r.default,{Component:g,route:u})||g}}});function c1(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const LV=PV;function DV(e){const t=iV(e.routes,e),r=e.parseQuery||wV,n=e.stringifyQuery||o1,i=e.history,a=qs(),o=qs(),s=qs(),l=yD(Li);let u=Li;Wo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Gh.bind(null,V=>""+V),c=Gh.bind(null,bV),d=Gh.bind(null,Yc);function h(V,J){let W,Y;return KM(V)?(W=t.getRecordMatcher(V),Y=J):Y=V,t.addRoute(Y,W)}function v(V){const J=t.getRecordMatcher(V);J&&t.removeRoute(J)}function p(){return t.getRoutes().map(V=>V.record)}function g(V){return!!t.getRecordMatcher(V)}function m(V,J){if(J=st({},J||l.value),typeof V=="string"){const P=Uh(r,V,J.path),I=t.resolve({path:P.path},J),z=i.createHref(P.fullPath);return st(P,I,{params:d(I.params),hash:Yc(P.hash),redirectedFrom:void 0,href:z})}let W;if("path"in V)W=st({},V,{path:Uh(r,V.path,J.path).path});else{const P=st({},V.params);for(const I in P)P[I]==null&&delete P[I];W=st({},V,{params:c(V.params)}),J.params=c(J.params)}const Y=t.resolve(W,J),le=V.hash||"";Y.params=f(d(Y.params));const he=IW(n,st({},V,{hash:mV(le),path:Y.path})),Q=i.createHref(he);return st({fullPath:he,hash:le,query:n===o1?xV(V.query):V.query||{}},Y,{redirectedFrom:void 0,href:Q})}function y(V){return typeof V=="string"?Uh(r,V,l.value.path):st({},V)}function _(V,J){if(u!==V)return Cs(8,{from:J,to:V})}function b(V){return S(V)}function x(V){return b(st(y(V),{replace:!0}))}function w(V){const J=V.matched[V.matched.length-1];if(J&&J.redirect){const{redirect:W}=J;let Y=typeof W=="function"?W(V):W;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=y(Y):{path:Y},Y.params={}),st({query:V.query,hash:V.hash,params:"path"in Y?{}:V.params},Y)}}function S(V,J){const W=u=m(V),Y=l.value,le=V.state,he=V.force,Q=V.replace===!0,P=w(W);if(P)return S(st(y(P),{state:typeof P=="object"?st({},le,P.state):le,force:he,replace:Q}),J||W);const I=W;I.redirectedFrom=J;let z;return!he&&RW(n,Y,W)&&(z=Cs(16,{to:I,from:Y}),U(Y,Y,!0,!1)),(z?Promise.resolve(z):T(I,Y)).catch(G=>ri(G)?ri(G,2)?G:N(G):j(G,I,Y)).then(G=>{if(G){if(ri(G,2))return S(st({replace:Q},y(G.to),{state:typeof G.to=="object"?st({},le,G.to.state):le,force:he}),J||I)}else G=A(I,Y,!0,Q,le);return E(I,Y,G),G})}function C(V,J){const W=_(V,J);return W?Promise.reject(W):Promise.resolve()}function T(V,J){let W;const[Y,le,he]=IV(V,J);W=Yh(Y.reverse(),"beforeRouteLeave",V,J);for(const P of Y)P.leaveGuards.forEach(I=>{W.push(zi(I,V,J))});const Q=C.bind(null,V,J);return W.push(Q),Mo(W).then(()=>{W=[];for(const P of a.list())W.push(zi(P,V,J));return W.push(Q),Mo(W)}).then(()=>{W=Yh(le,"beforeRouteUpdate",V,J);for(const P of le)P.updateGuards.forEach(I=>{W.push(zi(I,V,J))});return W.push(Q),Mo(W)}).then(()=>{W=[];for(const P of V.matched)if(P.beforeEnter&&!J.matched.includes(P))if(Tn(P.beforeEnter))for(const I of P.beforeEnter)W.push(zi(I,V,J));else W.push(zi(P.beforeEnter,V,J));return W.push(Q),Mo(W)}).then(()=>(V.matched.forEach(P=>P.enterCallbacks={}),W=Yh(he,"beforeRouteEnter",V,J),W.push(Q),Mo(W))).then(()=>{W=[];for(const P of o.list())W.push(zi(P,V,J));return W.push(Q),Mo(W)}).catch(P=>ri(P,8)?P:Promise.reject(P))}function E(V,J,W){for(const Y of s.list())Y(V,J,W)}function A(V,J,W,Y,le){const he=_(V,J);if(he)return he;const Q=J===Li,P=Wo?history.state:{};W&&(Y||Q?i.replace(V.fullPath,st({scroll:Q&&P&&P.scroll},le)):i.push(V.fullPath,le)),l.value=V,U(V,J,W,Q),N()}let M;function D(){M||(M=i.listen((V,J,W)=>{if(!Me.listening)return;const Y=m(V),le=w(Y);if(le){S(st(le,{replace:!0}),Y).catch(kl);return}u=Y;const he=l.value;Wo&&zW(Qb(he.fullPath,W.delta),jd()),T(Y,he).catch(Q=>ri(Q,12)?Q:ri(Q,2)?(S(Q.to,Y).then(P=>{ri(P,20)&&!W.delta&&W.type===vu.pop&&i.go(-1,!1)}).catch(kl),Promise.reject()):(W.delta&&i.go(-W.delta,!1),j(Q,Y,he))).then(Q=>{Q=Q||A(Y,he,!1),Q&&(W.delta&&!ri(Q,8)?i.go(-W.delta,!1):W.type===vu.pop&&ri(Q,20)&&i.go(-1,!1)),E(Y,he,Q)}).catch(kl)}))}let O=qs(),k=qs(),F;function j(V,J,W){N(V);const Y=k.list();return Y.length?Y.forEach(le=>le(V,J,W)):console.error(V),Promise.reject(V)}function B(){return F&&l.value!==Li?Promise.resolve():new Promise((V,J)=>{O.add([V,J])})}function N(V){return F||(F=!V,D(),O.list().forEach(([J,W])=>V?W(V):J()),O.reset()),V}function U(V,J,W,Y){const{scrollBehavior:le}=e;if(!Wo||!le)return Promise.resolve();const he=!W&&WW(Qb(V.fullPath,0))||(Y||!W)&&history.state&&history.state.scroll||null;return zt().then(()=>le(V,J,he)).then(Q=>Q&&HW(Q)).catch(Q=>j(Q,V,J))}const re=V=>i.go(V);let ae;const me=new Set,Me={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:b,replace:x,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:k.add,isReady:B,install(V){const J=this;V.component("RouterLink",MV),V.component("RouterView",LV),V.config.globalProperties.$router=J,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>L(l)}),Wo&&!ae&&l.value===Li&&(ae=!0,b(i.location).catch(le=>{}));const W={};for(const le in Li)W[le]=$(()=>l.value[le]);V.provide(Ay,J),V.provide(nA,ln(W)),V.provide(lg,l);const Y=V.unmount;me.add(V),V.unmount=function(){me.delete(V),me.size<1&&(u=Li,M&&M(),M=null,l.value=Li,ae=!1,F=!1),Y()}}};return Me}function Mo(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function IV(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oSs(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Ss(u,l))||i.push(l))}return[r,n,i]}var ea={},RV={get exports(){return ea},set exports(e){ea=e}};(function(e,t){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n};(function(n,i){r(t)==="object"?e.exports=i():n.Humanize=i()})(DH,function(){var n=[{name:"second",value:1e3},{name:"minute",value:6e4},{name:"hour",value:36e5},{name:"day",value:864e5},{name:"week",value:6048e5}],i={P:Math.pow(2,50),T:Math.pow(2,40),G:Math.pow(2,30),M:Math.pow(2,20)},a=function(c){return typeof c<"u"&&c!==null},o=function(c){return c!==c},s=function(c){return isFinite(c)&&!o(parseFloat(c))},l=function(c){var d=Object.prototype.toString.call(c);return d==="[object Array]"},u={intword:function(c,d){var h=arguments.length<=2||arguments[2]===void 0?2:arguments[2];return u.compactInteger(c,h)},compactInteger:function(c){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];d=Math.max(d,0);var h=parseInt(c,10),v=h<0?"-":"",p=Math.abs(h),g=String(p),m=g.length,y=[13,10,7,4],_=["T","B","M","k"];if(p<1e3)return""+v+g;if(m>y[0]+3)return h.toExponential(d).replace("e+","x10^");for(var b=void 0,x=0;x=w){b=w;break}}var S=m-b+1,C=g.split(""),T=C.slice(0,S),E=C.slice(S,S+d+1),A=T.join(""),M=E.join("");M.length=v)return u.formatNumber(c/v,d,"")+" "+h+"B"}return c>=1024?u.formatNumber(c/1024,0)+" KB":u.formatNumber(c,0)+u.pluralize(c," byte")},filesize:function(){return u.fileSize.apply(u,arguments)},formatNumber:function(c){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1],h=arguments.length<=2||arguments[2]===void 0?",":arguments[2],v=arguments.length<=3||arguments[3]===void 0?".":arguments[3],p=function(S,C,T){return T?S.substr(0,T)+C:""},g=function(S,C,T){return S.substr(T).replace(/(\d{3})(?=\d)/g,"$1"+C)},m=function(S,C,T){return T?C+u.toFixed(Math.abs(S),T).split(".")[1]:""},y=u.normalizePrecision(d),_=c<0&&"-"||"",b=String(parseInt(u.toFixed(Math.abs(c||0),y),10)),x=b.length>3?b.length%3:0;return _+p(b,h,x)+g(b,h,x)+m(c,v,y)},toFixed:function(c,d){d=a(d)?d:u.normalizePrecision(d,0);var h=Math.pow(10,d);return(Math.round(c*h)/h).toFixed(d)},normalizePrecision:function(c,d){return c=Math.round(Math.abs(c)),o(c)?d:c},ordinal:function(c){var d=parseInt(c,10);if(d===0)return c;var h=d%100;if([11,12,13].indexOf(h)>=0)return d+"th";var v=d%10,p=void 0;switch(v){case 1:p="st";break;case 2:p="nd";break;case 3:p="rd";break;default:p="th"}return""+d+p},times:function(c){var d=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(s(c)&&c>=0){var h=parseFloat(c),v=["never","once","twice"];if(a(d[h]))return String(d[h]);var p=a(v[h])&&v[h].toString();return p||h.toString()+" times"}return null},pluralize:function(c,d,h){return a(c)&&a(d)?(h=a(h)?h:d+"s",parseInt(c,10)===1?d:h):null},truncate:function(c){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"...":arguments[2];return c.length>d?c.substring(0,d-h.length)+h:c},truncateWords:function(c,d){for(var h=c.split(" "),v="",p=0;pd?v+"...":null},truncatewords:function(){return u.truncateWords.apply(u,arguments)},boundedNumber:function(c){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"+":arguments[2],v=void 0;return s(c)&&s(d)&&c>d&&(v=d+h),(v||c).toString()},truncatenumber:function(){return u.boundedNumber.apply(u,arguments)},oxford:function(c,d,h){var v=c.length,p=void 0;if(v<2)return String(c);if(v===2)return c.join(" and ");if(a(d)&&v>d){var g=v-d;p=d,h=a(h)?h:", and "+g+" "+u.pluralize(g,"other")}else p=-1,h=", and "+c[v-1];return c.slice(0,p).join(", ")+h},dictionary:function(c){var d=arguments.length<=1||arguments[1]===void 0?" is ":arguments[1],h=arguments.length<=2||arguments[2]===void 0?", ":arguments[2],v="";if(a(c)&&(typeof c>"u"?"undefined":r(c))==="object"&&!l(c)){var p=[];for(var g in c)if(c.hasOwnProperty(g)){var m=c[g];p.push(""+g+d+m)}return p.join(h)}return v},frequency:function(c,d){if(!l(c))return null;var h=c.length,v=u.times(h);return h===0?v+" "+d:d+" "+v},pace:function(c,d){var h=arguments.length<=2||arguments[2]===void 0?"time":arguments[2];if(c===0||d===0)return"No "+u.pluralize(0,h);for(var v="Approximately",p=void 0,g=void 0,m=c/d,y=0;y1){p=_.name;break}}p||(v="Less than",g=1,p=n[n.length-1].name);var b=Math.round(g);return h=u.pluralize(b,h),v+" "+b+" "+h+" per "+p},nl2br:function(c){var d=arguments.length<=1||arguments[1]===void 0?"
":arguments[1];return c.replace(/\n/g,d)},br2nl:function(c){var d=arguments.length<=1||arguments[1]===void 0?`\r `:arguments[1];return c.replace(/\/g,d)},capitalize:function(c){var d=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return""+c.charAt(0).toUpperCase()+(d?c.slice(1).toLowerCase():c.slice(1))},capitalizeAll:function(c){return c.replace(/(?:^|\s)\S/g,function(d){return d.toUpperCase()})},titleCase:function(c){var d=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,h=/\S+[A-Z]+\S*/,v=/\s+/,p=/-/,g=void 0;return g=function(y){for(var _=arguments.length<=1||arguments[1]===void 0?!1:arguments[1],b=arguments.length<=2||arguments[2]===void 0?!0:arguments[2],x=[],w=y.split(_?p:v),S=0;S"u"&&typeof self<"u"?$a.worker=!0:typeof navigator>"u"?($a.node=!0,$a.svgSupported=!0):NV(navigator.userAgent,$a);function NV(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const Ve=$a;var Ey=12,BV="sans-serif",co=Ey+"px "+BV,FV=20,$V=100,HV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function zV(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function hG(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,d=f.left,h=f.top;o.push(d,h),l=l&&a&&d===a[c]&&h===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?p1(s,o):p1(o,s))}function cA(e){return e.nodeName.toUpperCase()==="CANVAS"}var vG=/([&<>"'])/g,pG={"&":"&","<":"<",">":">",'"':""","'":"'"};function Kr(e){return e==null?"":(e+"").replace(vG,function(t,r){return pG[r]})}var gG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xh=[],mG=Ve.browser.firefox&&+Ve.browser.version.split(".")[0]<39;function gg(e,t,r,n){return r=r||{},n?m1(e,t,r):mG&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):m1(e,t,r),r}function m1(e,t,r){if(Ve.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(cA(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(pg(Xh,e,n,i)){r.zrX=Xh[0],r.zrY=Xh[1];return}}r.zrX=r.zrY=0}function Ry(e){return e||window.event}function Ur(e,t,r){if(t=Ry(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&gg(e,o,t,r)}else{gg(e,t,t,r);var a=yG(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&gG.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function yG(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function _G(e,t,r,n){e.addEventListener(t,r,n)}function bG(e,t,r,n){e.removeEventListener(t,r,n)}var dA=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},wG=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=y1(n)/y1(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=xG(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function gu(){return[1,0,0,1,0,0]}function Oy(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function SG(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function is(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function mg(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function ky(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),f=Math.cos(r);return e[0]=n*f+o*u,e[1]=-n*u+o*f,e[2]=i*f+s*u,e[3]=-i*u+f*s,e[4]=f*a+u*l,e[5]=f*l-u*a,e}function CG(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Qd(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var TG=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const ke=TG;var gf=Math.min,mf=Math.max,ha=new ke,va=new ke,pa=new ke,ga=new ke,js=new ke,Ks=new ke,MG=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=gf(t.x,this.x),n=gf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mf(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mf(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=gu();return mg(a,a,[-r.x,-r.y]),CG(a,a,[n,i]),mg(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,d=!(av&&(v=_,pv&&(v=b,m=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ha.x=pa.x=r.x,ha.y=ga.y=r.y,va.x=ga.x=r.x+r.width,va.y=pa.y=r.y+r.height,ha.transform(n),ga.transform(n),va.transform(n),pa.transform(n),t.x=gf(ha.x,va.x,pa.x,ga.x),t.y=gf(ha.y,va.y,pa.y,ga.y);var l=mf(ha.x,va.x,pa.x,ga.x),u=mf(ha.y,va.y,pa.y,ga.y);t.width=l-t.x,t.height=u-t.y},e}();const tt=MG;var hA="silent";function AG(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:EG}}function EG(){dA(this.event)}var PG=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Jn),Xs=function(){function e(t,r){this.x=t,this.y=r}return e}(),LG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qh=new tt(0,0,0,0),vA=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Xs(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new PG,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new lG(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(LG,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=pA(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Xs(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Xs(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=AG(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Xs(r,n);if(_1(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new tt(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var d=a[c];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Qh.copy(d.getBoundingRect()),d.transform&&Qh.applyTransform(d.transform),Qh.intersect(f)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function DG(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?hA:!0}return!1}function _1(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=DG(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==hA)){t.target=o;break}}}function pA(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const IG=vA;var gA=32,Zs=7;function RG(e){for(var t=0;e>=gA;)t|=e&1,e>>=1;return e+t}function b1(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function OG(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function Jh(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function ev(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function kG(e,t){var r=Zs,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,v){n[a]=h,i[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=Zs||S>=Zs);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(m=0;m=0;m--)e[w+m]=e[x+m];e[b]=o[_];return}for(var S=r;;){var C=0,T=0,E=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,T=0,--v===0){E=!0;break}}else if(e[b--]=o[_--],T++,C=0,--g===1){E=!0;break}while((C|T)=0;m--)e[w+m]=e[x+m];if(v===0){E=!0;break}}if(e[b--]=o[_--],--g===1){E=!0;break}if(T=g-Jh(e[y],o,0,g,g-1,t),T!==0){for(b-=T,_-=T,g-=T,w=b+1,x=_+1,m=0;m=Zs||T>=Zs);if(E)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),g===1){for(b-=v,y-=v,w=b+1,x=y+1,m=v-1;m>=0;m--)e[w+m]=e[x+m];e[b]=o[_]}else{if(g===0)throw new Error;for(x=b-(g-1),m=0;ms&&(l=s),w1(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ir=1,ml=2,Vo=4,x1=!1;function tv(){x1||(x1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function S1(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var NG=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=S1}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(tv(),f.z=0),isNaN(f.z2)&&(tv(),f.z2=0),isNaN(f.zlevel)&&(tv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const BG=NG;var mA;mA=Ve.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const yg=mA;var bc={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-bc.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?bc.bounceIn(e*2)*.5:bc.bounceOut(e*2-1)*.5+.5}};const yA=bc;var yf=Math.pow,Xi=Math.sqrt,Kc=1e-8,_A=1e-4,C1=Xi(3),_f=1/3,Bn=Ns(),Xr=Ns(),as=Ns();function Ui(e){return e>-Kc&&eKc||e<-Kc}function Gt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function T1(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function wA(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Ui(f)&&Ui(c))if(Ui(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var p=c*c-4*f*d;if(Ui(p)){var g=c/f,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Xi(p),_=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);_<0?_=-yf(-_,_f):_=yf(_,_f),b<0?b=-yf(-b,_f):b=yf(b,_f);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var x=(2*f*s-3*o*c)/(2*Xi(f*f*f)),w=Math.acos(x)/3,S=Xi(f),C=Math.cos(w),v=(-s-2*S*C)/(3*o),m=(-s+S*(C+C1*Math.sin(w)))/(3*o),T=(-s+S*(C-C1*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),T>=0&&T<=1&&(a[h++]=T)}}return h}function xA(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Ui(o)){if(bA(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Ui(f))i[0]=-a/(2*o);else if(f>0){var c=Xi(f),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Xc(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function SA(e,t,r,n,i,a,o,s,l,u,f){var c,d=.005,h=1/0,v,p,g,m;Bn[0]=l,Bn[1]=u;for(var y=0;y<1;y+=.05)Xr[0]=Gt(e,r,i,o,y),Xr[1]=Gt(t,n,a,s,y),g=ns(Bn,Xr),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Ui(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Xi(f),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function CA(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Zc(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function TA(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Bn[0]=o,Bn[1]=s;for(var d=0;d<1;d+=.05){Xr[0]=Qt(e,r,i,d),Xr[1]=Qt(t,n,a,d);var h=ns(Bn,Xr);h=0&&h=1?1:wA(0,n,a,1,l,s)&&Gt(0,i,o,1,s[0])}}}var WG=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Sr,this.ondestroy=t.ondestroy||Sr,this.onrestart=t.onrestart||Sr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=We(t)?t:yA[t]||MA(t)},e}();const VG=WG;var AA=function(){function e(t){this.value=t}return e}(),GG=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new AA(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),UG=function(){function e(t){this._list=new GG,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new AA(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Vu=UG;var A1={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function $l(e){return e=Math.round(e),e<0?0:e>255?255:e}function E1(e){return e<0?0:e>1?1:e}function rv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$l(parseFloat(t)/100*255):$l(parseInt(t,10))}function Hl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?E1(parseFloat(t)/100):E1(parseFloat(t))}function nv(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Gr(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function _g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var EA=new Vu(20),bf=null;function Eo(e,t){bf&&_g(bf,t),bf=EA.put(e,bf||t.slice())}function ro(e,t){if(e){t=t||[];var r=EA.get(e);if(r)return _g(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in A1)return _g(t,A1[n]),Eo(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Gr(t,0,0,0,1);return}return Gr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Eo(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Gr(t,0,0,0,1);return}return Gr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Eo(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Gr(t,+u[0],+u[1],+u[2],1):Gr(t,0,0,0,1);f=Hl(u.pop());case"rgb":if(u.length>=3)return Gr(t,rv(u[0]),rv(u[1]),rv(u[2]),u.length===3?f:Hl(u[3])),Eo(e,t),t;Gr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Gr(t,0,0,0,1);return}return u[3]=Hl(u[3]),P1(u,t),Eo(e,t),t;case"hsl":if(u.length!==3){Gr(t,0,0,0,1);return}return P1(u,t),Eo(e,t),t;default:return}}Gr(t,0,0,0,1)}}function P1(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Hl(e[1]),i=Hl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Gr(t,$l(nv(o,a,r+1/3)*255),$l(nv(o,a,r)*255),$l(nv(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function L1(e,t){var r=ro(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Ny(r,r.length===4?"rgba":"rgb")}}function Ny(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Qc(e,t){var r=ro(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function YG(e){return e.type==="linear"}function qG(e){return e.type==="radial"}(function(){return Ve.hasGlobalWindow&&We(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var bg=Array.prototype.slice;function li(e,t,r){return(t-e)*r+e}function iv(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=I1,l=r;if(Tr(r)){var u=ZG(r);s=u,(u===1&&!bt(r[0])||u===2&&!bt(r[0][0]))&&(o=!0)}else if(bt(r)&&!jc(r))s=xf;else if(Te(r))if(!isNaN(+r))s=xf;else{var f=ro(r);f&&(l=f,s=yl)}else if(Xd(r)){var c=oe({},l);c.colorStops=Oe(r.colorStops,function(h){return{offset:h.offset,color:ro(h.color)}}),YG(r)?s=wg:qG(r)&&(s=xg),l=c}a===0?this.valType=s:(s!==this.valType||s===I1)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=We(n)?n:yA[n]||MA(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Sf(i),u=R1(i),f=0;f=0&&!(o[f].percent<=r);f--);f=d(f,s-2)}else{for(f=c;fr);f++);f=d(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?Qs:t[l];if((Sf(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(Sf(a))a===Sc?iv(y,h[i],v[i],m):jG(y,h[i],v[i],m);else if(R1(a)){var _=h[i],b=v[i],x=a===wg;t[l]={type:x?"linear":"radial",x:li(_.x,b.x,m),y:li(_.y,b.y,m),colorStops:Oe(_.colorStops,function(S,C){var T=b.colorStops[C];return{offset:li(S.offset,T.offset,m),color:xc(iv([],S.color,T.color,m))}}),global:b.global},x?(t[l].x2=li(_.x2,b.x2,m),t[l].y2=li(_.y2,b.y2,m)):t[l].r=li(_.r,b.r,m)}else if(u)iv(y,h[i],v[i],m),n||(t[l]=xc(y));else{var w=li(h[i],v[i],m);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===xf?t[n]=t[n]+i:r===yl?(ro(t[n],Qs),wf(Qs,Qs,i,1),t[n]=xc(Qs)):r===Sc?wf(t[n],t[n],i,1):r===PA&&D1(t[n],t[n],i,1)},e}(),JG=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Dy("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,xt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,wc(u),i),this._trackKeys.push(s)}l.addKeyframe(t,wc(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const By=JG;function Ko(){return new Date().getTime()}var eU=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Ko()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(yg(n),!r._paused&&r.update())}yg(n)},t.prototype.start=function(){this._running||(this._time=Ko(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ko(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ko()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new By(r,n.loop);return this.addAnimator(i),i},t}(Jn);const tU=eU;var rU=300,av=Ve.domSupported,ov=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Oe(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),O1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},k1=!1;function Sg(e){var t=e.pointerType;return t==="pen"||t==="touch"}function nU(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function sv(e){e&&(e.zrByTouch=!0)}function iU(e,t){return Ur(e.dom,new aU(e,t),!0)}function LA(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var aU=function(){function e(t,r){this.stopPropagation=Sr,this.stopImmediatePropagation=Sr,this.preventDefault=Sr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),vn={mousedown:function(e){e=Ur(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ur(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Ur(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ur(this.dom,e);var t=e.toElement||e.relatedTarget;LA(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){k1=!0,e=Ur(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){k1||(e=Ur(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ur(this.dom,e),sv(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),vn.mousemove.call(this,e),vn.mousedown.call(this,e)},touchmove:function(e){e=Ur(this.dom,e),sv(e),this.handler.processGesture(e,"change"),vn.mousemove.call(this,e)},touchend:function(e){e=Ur(this.dom,e),sv(e),this.handler.processGesture(e,"end"),vn.mouseup.call(this,e),+new Date-+this.__lastTouchMomentF1||e<-F1}var ya=[],Po=[],uv=gu(),fv=Math.abs,cU=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return ma(this.rotation)||ma(this.x)||ma(this.y)||ma(this.scaleX-1)||ma(this.scaleY-1)||ma(this.skewX)||ma(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&B1(n);return}n=n||gu(),r?this.getLocalTransform(n):B1(n),t&&(r?is(n,t,n):SG(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ya);var n=ya[0]<0?-1:1,i=ya[1]<0?-1:1,a=((ya[0]-n)*r+n)/ya[0]||0,o=((ya[1]-i)*r+i)/ya[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||gu(),Qd(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(is(Po,t.invTransform,r),r=Po);var n=this.originX,i=this.originY;(n||i)&&(uv[4]=n,uv[5]=i,is(Po,r,uv),Po[4]-=n,Po[5]-=i,r=Po),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&rn(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&rn(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&fv(t[0]-1)>1e-10&&fv(t[3]-1)>1e-10?Math.sqrt(fv(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){dU(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-d*p*o,r[5]=-p*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&ky(r,r,u),r[4]+=n+f,r[5]+=i+c,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),mu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dU(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function ed(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=ra(n[0],r.width),u+=ra(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var cv="__zr_normal__",dv=mu.concat(["ignore"]),hU=ta(mu,function(e,t){return e[t]=!0,e},{ignore:!1}),Lo={},vU=new tt(0,0,0,0),Hy=function(){function e(t){this.id=oA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=vU;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lo,n,f):ed(Lo,n,f),a.x=Lo.x,a.y=Lo.y,o=Lo.align,s=Lo.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,h=void 0;c==="center"?(d=f.width*.5,h=f.height*.5):(d=ra(c[0],f.width),h=ra(c[1],f.height)),u=!0,a.originX=-a.x+d+(i?0:f.x),a.originY=-a.y+h+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ir,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ag:Mg},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ro(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ny(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},oe(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(De(t))for(var n=t,i=xt(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(cv,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===cv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(it(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Dy("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,r,n,f),d&&d.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ir),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ir)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=it(i,t),o=it(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var d=0;d0||i.force&&!o.length){var C=void 0,T=void 0,E=void 0;if(s){T={},d&&(C={});for(var b=0;b<_;b++){var m=p[b];T[m]=r[m],d?C[m]=n[m]:r[m]=n[m]}}else if(d){E={};for(var b=0;b<_;b++){var m=p[b];E[m]=wc(r[m]),gU(r,n,m)}}var x=new By(r,!1,!1,c?$t(v,function(M){return M.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),d&&C&&x.whenWithKeys(0,C,p),E&&x.whenWithKeys(0,E,p),x.whenWithKeys(u??500,s?T:n,p).delay(f||0),e.addAnimator(x,t),o.push(x)}}const RA=Hy;var OA=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=it(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=it(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function pt(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Te(e)?SU(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function It(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),NA),e=(+e).toFixed(t),r?e:+e}function ui(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return CU(e)}function CU(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function TU(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function MU(e,t){var r=ta(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Oe(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Oe(i,function(h){return Math.floor(h)}),s=ta(o,function(h,v){return h+v},0),l=Oe(i,function(h,v){return h-o[v]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Oe(o,function(h){return h/n})}function AU(e,t){var r=Math.max(ui(e),ui(t)),n=e+t;return r>NA?n:It(n,r)}function BA(e){var t=Math.PI*2;return(e%t+t)%t}function td(e){return e>-W1&&e=10&&t++,t}function FA(e,t){var r=zy(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function rd(e){var t=parseFloat(e);return t==e&&(t!==0||!Te(e)||e.indexOf("x")<=0)?t:NaN}function LU(e){return!isNaN(rd(e))}function $A(){return Math.round(Math.random()*9)}function HA(e,t){return t===0?e:HA(t,e%t)}function V1(e,t){return e==null?t:t==null?e:e*t/HA(e,t)}function mr(e){throw new Error(e)}function G1(e,t,r){return(t-e)*r+e}var zA="series\0",DU="\0_ec_\0";function lr(e){return e instanceof Array?e:e==null?[]:[e]}function Pg(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n=0||a&&it(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var e9=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],t9=_u(e9),r9=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return t9(this,t,r)},e}(),Lg=new Vu(50);function n9(e){if(typeof e=="string"){var t=Lg.get(e);return t&&t.image}else return e}function YA(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Lg.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!th(t)&&a.pending.push(o)):(t=bo.loadImage(e,Y1,Y1),t.__zrImageSrc=e,Lg.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Y1(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Nr(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function jA(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Nr(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?a9(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Nr(e,n)}return e===""&&(e=t.placeholder),e}function a9(e,t,r,n){for(var i=0,a=0,o=e.length;ah&&u){var v=Math.floor(h/s);c=c.slice(0,v)}if(e&&a&&f!=null)for(var p=qA(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&mv(r,e.substring(s,u),t,o),mv(r,l[2],t,o,l[1]),s=gv.lastIndex}si){x>0?(y.tokens=y.tokens.slice(0,x),g(y,b,_),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var M=S.width,D=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")w.percentWidth=M,f.push(w),w.contentWidth=Nr(w.text,E);else{if(D){var O=S.backgroundColor,k=O&&O.image;k&&(k=n9(k),th(k)&&(w.width=Math.max(w.width,k.width*A/k.height)))}var F=v&&n!=null?n-b:null;F!=null&&F0&&v+n.accumWidth>n.width&&(f=t.split(` `),u=!0),n.accumWidth=v}else{var p=KA(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}else f=t.split(` `);for(var g=0;g=33&&t<=383}var c9=ta(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function d9(e){return f9(e)?!!c9[e]:!0}function KA(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;cr:i+f+h>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=d,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=d,f=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}f+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Dg="__zr_style_"+Math.round(Math.random()*10),no={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},rh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};no[Dg]=!0;var j1=["z","z2","invisible"],h9=["invisible"],v9=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=xt(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Cf[0]=wv(i)*r+e,Cf[1]=bv(i)*n+t,Tf[0]=wv(a)*r+e,Tf[1]=bv(a)*n+t,u(s,Cf,Tf),f(l,Cf,Tf),i=i%ba,i<0&&(i=i+ba),a=a%ba,a<0&&(a=a+ba),i>a&&!o?a+=ba:ii&&(Mf[0]=wv(h)*r+e,Mf[1]=bv(h)*n+t,u(s,Mf,s),f(l,Mf,l))}var nt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wa=[],xa=[],Dn=[],Di=[],In=[],Rn=[],xv=Math.min,Sv=Math.max,Sa=Math.cos,Ca=Math.sin,ni=Math.abs,Ig=Math.PI,Fi=Ig*2,Cv=typeof Float32Array<"u",Js=[];function Tv(e){var t=Math.round(e/Ig*1e8)/1e8;return t%2*Ig}function _9(e,t){var r=Tv(e[0]);r<0&&(r+=Fi);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Fi?i=r+Fi:t&&r-i>=Fi?i=r-Fi:!t&&r>i?i=r+(Fi-Tv(r-i)):t&&r0&&(this._ux=ni(n/Jc/t)||0,this._uy=ni(n/Jc/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(nt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=ni(t-this._xi),i=ni(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(nt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(nt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(nt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Js[0]=i,Js[1]=a,_9(Js,o),i=Js[0],a=Js[1];var s=a-i;return this.addData(nt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Sa(a)*n+t,this._yi=Ca(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(nt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(nt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Cv&&(this.data=new Float32Array(r));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Dn[0]=Dn[1]=In[0]=In[1]=Number.MAX_VALUE,Di[0]=Di[1]=Rn[0]=Rn[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||ni(_)>i||d===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case nt.C:{var b=t[d++],x=t[d++],g=t[d++],m=t[d++],w=t[d++],S=t[d++];p=FG(a,o,b,x,g,m,w,S,10),a=w,o=S;break}case nt.Q:{var b=t[d++],x=t[d++],g=t[d++],m=t[d++];p=HG(a,o,b,x,g,m,10),a=g,o=m;break}case nt.A:var C=t[d++],T=t[d++],E=t[d++],A=t[d++],M=t[d++],D=t[d++],O=D+M;d+=1,t[d++],v&&(s=Sa(M)*E+C,l=Ca(M)*A+T),p=Sv(E,A)*xv(Fi,Math.abs(D)),a=Sa(O)*E+C,o=Ca(O)*A+T;break;case nt.R:{s=a=t[d++],l=o=t[d++];var k=t[d++],F=t[d++];p=k*2+F*2;break}case nt.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,d,h=r<1,v,p,g=0,m=0,y,_=0,b,x;if(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y))return;e:for(var w=0;w0&&(t.lineTo(b,x),_=0),S){case nt.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case nt.L:{c=n[w++],d=n[w++];var T=ni(c-u),E=ni(d-f);if(T>i||E>a){if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;t.lineTo(u*(1-M)+c*M,f*(1-M)+d*M);break e}g+=A}t.lineTo(c,d),u=c,f=d,_=0}else{var D=T*T+E*E;D>_&&(b=c,x=d,_=D)}break}case nt.C:{var O=n[w++],k=n[w++],F=n[w++],j=n[w++],B=n[w++],N=n[w++];if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;Xc(u,O,F,B,M,wa),Xc(f,k,j,N,M,xa),t.bezierCurveTo(wa[1],xa[1],wa[2],xa[2],wa[3],xa[3]);break e}g+=A}t.bezierCurveTo(O,k,F,j,B,N),u=B,f=N;break}case nt.Q:{var O=n[w++],k=n[w++],F=n[w++],j=n[w++];if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;Zc(u,O,F,M,wa),Zc(f,k,j,M,xa),t.quadraticCurveTo(wa[1],xa[1],wa[2],xa[2]);break e}g+=A}t.quadraticCurveTo(O,k,F,j),u=F,f=j;break}case nt.A:var U=n[w++],re=n[w++],ae=n[w++],me=n[w++],Me=n[w++],V=n[w++],J=n[w++],W=!n[w++],Y=ae>me?ae:me,le=ni(ae-me)>.001,he=Me+V,Q=!1;if(h){var A=v[m++];g+A>y&&(he=Me+V*(y-g)/A,Q=!0),g+=A}if(le&&t.ellipse?t.ellipse(U,re,ae,me,J,Me,he,W):t.arc(U,re,Y,Me,he,W),Q)break e;C&&(s=Sa(Me)*ae+U,l=Ca(Me)*me+re),u=Sa(he)*ae+U,f=Ca(he)*me+re;break;case nt.R:s=u=n[w],l=f=n[w+1],c=n[w++],d=n[w++];var P=n[w++],I=n[w++];if(h){var A=v[m++];if(g+A>y){var z=y-g;t.moveTo(c,d),t.lineTo(c+xv(z,P),d),z-=P,z>0&&t.lineTo(c+P,d+xv(z,I)),z-=I,z>0&&t.lineTo(c+Sv(P-z,0),d+I),z-=P,z>0&&t.lineTo(c,d+Sv(I-z,0));break e}g+=A}t.rect(c,d,P,I);break;case nt.Z:if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;t.lineTo(u*(1-M)+s*M,f*(1-M)+l*M);break e}g+=A}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=nt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const ho=b9;function Do(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+c&&f>n+c&&f>a+c&&f>s+c||fe+c&&u>r+c&&u>i+c&&u>o+c||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||f+ui&&(i+=el);var d=Math.atan2(l,s);return d<0&&(d+=el),d>=n&&d<=i||d+el>=n&&d+el<=i}function Ta(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Ii=ho.CMD,Ma=Math.PI*2,C9=1e-4;function T9(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&M9(),h=Gt(t,n,a,s,jr[0]),d>1&&(v=Gt(t,n,a,s,jr[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var f=0,c=Qt(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);ar[0]=-l,ar[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ma-1e-4){n=0,i=Ma;var f=a?1:-1;return o>=ar[0]+e&&o<=ar[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Ma,i+=Ma);for(var d=0,h=0;h<2;h++){var v=ar[h];if(v+e>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=Ma+p),(p>=n&&p<=i||p+Ma>=n&&p+Ma<=i)&&(p>Math.PI/2&&p1&&(r||(s+=Ta(l,u,f,c,n,i))),g&&(l=a[v],u=a[v+1],f=l,c=u),p){case Ii.M:f=a[v++],c=a[v++],l=f,u=c;break;case Ii.L:if(r){if(Do(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Ta(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ii.C:if(r){if(w9(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=A9(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ii.Q:if(r){if(x9(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=E9(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ii.A:var m=a[v++],y=a[v++],_=a[v++],b=a[v++],x=a[v++],w=a[v++];v+=1;var S=!!(1-a[v++]);d=Math.cos(x)*_+m,h=Math.sin(x)*b+y,g?(f=d,c=h):s+=Ta(l,u,d,h,n,i);var C=(n-m)*b/_+m;if(r){if(S9(m,y,b,x,x+w,S,t,C,i))return!0}else s+=P9(m,y,b,x,x+w,S,C,i);l=Math.cos(x+w)*_+m,u=Math.sin(x+w)*b+y;break;case Ii.R:f=l=a[v++],c=u=a[v++];var T=a[v++],E=a[v++];if(d=f+T,h=c+E,r){if(Do(f,c,d,c,t,n,i)||Do(d,c,d,h,t,n,i)||Do(d,h,f,h,t,n,i)||Do(f,h,f,c,t,n,i))return!0}else s+=Ta(d,c,d,h,n,i),s+=Ta(f,h,f,c,n,i);break;case Ii.Z:if(r){if(Do(l,u,f,c,t,n,i))return!0}else s+=Ta(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!T9(u,c)&&(s+=Ta(l,u,f,c,n,i)||0),s!==0}function L9(e,t,r){return XA(e,0,!1,t,r)}function D9(e,t,r,n){return XA(e,t,!0,r,n)}var ZA=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},no),I9={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},rh.style)},Mv=mu.concat(["invisible","culling","z","z2","zlevel","parent"]),R9=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Mg:n>.2?fU:Ag}else if(r)return Ag}return Mg},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Te(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Qc(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Vo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),D9(s,l/u,r,n)))return!0}if(this.hasFill())return L9(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Vo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:oe(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Vo)},t.prototype.createStyle=function(r){return Zd(ZA,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=oe({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=oe({},i.shape),oe(u,n.shape)):(u=oe({},a?this.shape:i.shape),oe(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=oe({},this.shape);for(var f={},c=xt(u),d=0;d0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Zd(O9,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Fy(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(qu);QA.prototype.type="tspan";const Rg=QA;var k9=ft({x:0,y:0},no),N9={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},rh.style)};function B9(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var JA=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Zd(k9,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=B9(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return N9},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new tt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(qu);JA.prototype.type="image";const Bs=JA;function F9(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Xo=Math.round;function e2(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Xo(n*2)===Xo(i*2)&&(e.x1=e.x2=Xa(n,s,!0)),Xo(a*2)===Xo(o*2)&&(e.y1=e.y2=Xa(a,s,!0))),e}}function t2(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Xa(n,s,!0),e.y=Xa(i,s,!0),e.width=Math.max(Xa(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Xa(i+o,s,!1)-e.y,o===0?0:1)),e}}function Xa(e,t,r){if(!t)return e;var n=Xo(e*2);return(n+Xo(t))%2===0?n/2:(n+(r?1:-1))/2}var $9=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),H9={},r2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $9},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=t2(H9,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?F9(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ct);r2.prototype.type="rect";const Nt=r2;var J1={fill:"#000"},ew=2,z9={style:ft({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},rh.style)},n2=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=J1,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),D=o.calculatedLineHeight,O=0;O=0&&(O=w[D],O.align==="right");)this._placeToken(O,r,C,m,M,"right",_),T-=O.width,M-=O.width,D--;for(A+=(a-(A-g)-(y-M)-T)/2;E<=D;)O=w[E],this._placeToken(O,r,C,m,A+O.width/2,"center",_),A+=O.width,E++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var d=!r.isLineHolder&&Av(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=ow(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Rg),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,b=aw("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),x=iw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=ew,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||co,g.opacity=Bl(u.opacity,n.opacity,1),rw(g,u),x&&(g.lineWidth=Bl(u.lineWidth,n.lineWidth,_),g.lineDash=je(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),b&&(g.fill=b);var S=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new tt(_l(g.x,S,g.textAlign),Go(g.y,C,g.textBaseline),S,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,d=l&&!c,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&f){p=this._getOrCreateChild(Nt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var y=p.style;y.fill=l||null,y.fillOpacity=je(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Bs),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=je(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Bl(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return U9(r)&&(n=[r.fontStyle,r.fontWeight,G9(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&zn(n)||r.textFont||r.font},t}(qu),W9={left:!0,right:1,center:1},V9={top:1,bottom:1,middle:1},tw=["fontStyle","fontWeight","fontSize","fontFamily"];function G9(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Ey+"px":e+"px"}function rw(e,t){for(var r=0;r=0,a=!1;if(e instanceof ct){var o=i2(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Io(s)||Io(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=oe({},n),u=oe({},u),u.fill=s):!Io(u.fill)&&Io(s)?(a=!0,n=oe({},n),u=oe({},u),u.fill=cw(s)):!Io(u.stroke)&&Io(l)&&(a||(n=oe({},n),u=oe({},u)),u.stroke=cw(l)),n.style=u}}if(n&&n.z2==null){a||(n=oe({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??j9)}return n}function eY(e,t,r){if(r&&r.z2==null){r=oe({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??K9)}return r}function tY(e,t,r){var n=it(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Q9(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=oe({},r),o=oe({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ev(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return J9(this,e,t,r);if(e==="blur")return tY(this,e,r);if(e==="select")return eY(this,e,r)}return r}function rY(e){e.stateProxy=Ev;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ev),r&&(r.stateProxy=Ev)}function hw(e,t){!d2(e,t)&&!e.__highByOuter&&Ci(e,o2)}function vw(e,t){!d2(e,t)&&!e.__highByOuter&&Ci(e,s2)}function Og(e,t){e.__highByOuter|=1<<(t||0),Ci(e,o2)}function kg(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ci(e,s2)}function nY(e){Ci(e,jy)}function u2(e){Ci(e,l2)}function f2(e){Ci(e,X9)}function c2(e){Ci(e,Z9)}function d2(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function h2(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Uy(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){l2(u)}),s&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function Ng(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Fg(e,t,r){g2(e,!0),Ci(e,rY),fY(e,t,r)}function uY(e){g2(e,!1)}function v2(e,t,r,n){n?uY(e):Fg(e,t,r)}function fY(e,t,r){var n=ut(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var gw=["emphasis","blur","select"],cY={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function p2(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Pv(v),s*=Pv(v));var p=(i===a?-1:1)*Pv((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,y=(e+r)/2+Ef(c)*g-Af(c)*m,_=(t+n)/2+Af(c)*g+Ef(c)*m,b=bw([1,0],[(d-g)/o,(h-m)/s]),x=[(d-g)/o,(h-m)/s],w=[(-1*d-g)/o,(-1*h-m)/s],S=bw(x,w);if(zg(x,w)<=-1&&(S=tl),zg(x,w)>=1&&(S=0),S<0){var C=Math.round(S/tl*1e6)/1e6;S=tl*2+C%2*tl}f.addData(u,y,_,o,s,b,S,c,a)}var mY=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,yY=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function _Y(e){var t=new ho;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=ho.CMD,l=e.match(mY);if(!l)return t;for(var u=0;uO*O+k*k&&(C=E,T=A),{cx:C,cy:T,x0:-f,y0:-c,x1:C*(i/x-1),y1:T*(i/x-1)}}function AY(e){var t;if(ge(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function EY(e,t){var r,n=bl(t.r,0),i=bl(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,d=!!t.clockwise,h=xw(u-l),v=h>Lv&&h%Lv;if(v>hn&&(h=v),!(n>hn))e.moveTo(f,c);else if(h>Lv-hn)e.moveTo(f+n*Oo(l),c+n*Aa(l)),e.arc(f,c,n,l,u,!d),i>hn&&(e.moveTo(f+i*Oo(u),c+i*Aa(u)),e.arc(f,c,i,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,C=void 0,T=void 0,E=void 0,A=void 0,M=void 0,D=void 0,O=void 0,k=n*Oo(l),F=n*Aa(l),j=i*Oo(u),B=i*Aa(u),N=h>hn;if(N){var U=t.cornerRadius;U&&(r=AY(U),p=r[0],g=r[1],m=r[2],y=r[3]);var re=xw(n-i)/2;if(_=On(re,m),b=On(re,y),x=On(re,p),w=On(re,g),T=S=bl(_,b),E=C=bl(x,w),(S>hn||C>hn)&&(A=n*Oo(u),M=n*Aa(u),D=i*Oo(l),O=i*Aa(l),hhn){var le=On(m,T),he=On(y,T),Q=Pf(D,O,k,F,n,le,d),P=Pf(A,M,j,B,n,he,d);e.moveTo(f+Q.cx+Q.x0,c+Q.cy+Q.y0),T0&&e.arc(f+Q.cx,c+Q.cy,le,Xt(Q.y0,Q.x0),Xt(Q.y1,Q.x1),!d),e.arc(f,c,n,Xt(Q.cy+Q.y1,Q.cx+Q.x1),Xt(P.cy+P.y1,P.cx+P.x1),!d),he>0&&e.arc(f+P.cx,c+P.cy,he,Xt(P.y1,P.x1),Xt(P.y0,P.x0),!d))}else e.moveTo(f+k,c+F),e.arc(f,c,n,l,u,!d);if(!(i>hn)||!N)e.lineTo(f+j,c+B);else if(E>hn){var le=On(p,E),he=On(g,E),Q=Pf(j,B,A,M,i,-he,d),P=Pf(k,F,D,O,i,-le,d);e.lineTo(f+Q.cx+Q.x0,c+Q.cy+Q.y0),E0&&e.arc(f+Q.cx,c+Q.cy,he,Xt(Q.y0,Q.x0),Xt(Q.y1,Q.x1),!d),e.arc(f,c,i,Xt(Q.cy+Q.y1,Q.cx+Q.x1),Xt(P.cy+P.y1,P.cx+P.x1),d),le>0&&e.arc(f+P.cx,c+P.cy,le,Xt(P.y1,P.x1),Xt(P.y0,P.x0),!d))}else e.lineTo(f+j,c+B),e.arc(f,c,i,u,l,d)}e.closePath()}}}var PY=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),C2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new PY},t.prototype.buildPath=function(r,n){EY(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ct);C2.prototype.type="sector";const wo=C2;var LY=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),T2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new LY},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(ct);T2.prototype.type="ring";const M2=T2;function DY(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,h=e.length;d=2){if(n){var a=DY(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;sPa[1]){if(s=!1,a)return s;var f=Math.abs(Pa[0]-Ea[1]),c=Math.abs(Ea[0]-Pa[1]);Math.min(f,c)>i.len()&&(f0){var c=f.duration,d=f.delay,h=f.easing,v={duration:c,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Mr(e,t,r,n,i,a){Qy("update",e,t,r,n,i,a)}function Br(e,t,r,n,i,a){Qy("enter",e,t,r,n,i,a)}function os(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Tw(e){return!e.isGroup}function o7(e){return e.shape!=null}function z2(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Tw(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return o7(o)&&(s.shape=oe({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Tw(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Mr(o,l,r,ut(o).dataIndex)}}})}function s7(e,t){return Oe(e,function(r){var n=r[0];n=od(n,t.x),n=sd(n,t.x+t.width);var i=r[1];return i=od(i,t.y),i=sd(i,t.y+t.height),[n,i]})}function l7(e,t){var r=od(e.x,t.x),n=sd(e.x+e.width,t.x+t.width),i=od(e.y,t.y),a=sd(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function t0(e,t,r){var n=oe({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),ft(i,r),new Bs(n)):Jy(e.replace("path://",""),n,r,"center")}function u7(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Dv(h,v,f,c)/d;return!(g<0||g>1)}function Dv(e,t,r,n){return e*n-r*t}function f7(e){return e<=1e-6&&e>=-1e-6}function r0(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Te(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&R(xt(l),function(f){Ts(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ut(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ft({content:n,formatterParams:s},i)}}function Mw(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function n0(e,t){if(e)if(ge(e))for(var r=0;r=0&&s.push(l)}),s}}function q2(e,t){return at(at({},e,!0),t,!0)}const A7={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},E7={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ld="ZH",a0="EN",wu=a0,Ec={},o0={},j2=Ve.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(ld)>-1?ld:wu}():wu;function K2(e,t){e=e.toUpperCase(),o0[e]=new tr(t),Ec[e]=t}function P7(e){if(Te(e)){var t=Ec[e.toUpperCase()]||{};return e===ld||e===a0?Ze(t):at(Ze(t),Ze(Ec[wu]),!1)}else return at(Ze(e),Ze(Ec[wu]),!1)}function L7(e){return o0[e]}function D7(){return o0[wu]}K2(a0,A7);K2(ld,E7);var s0=1e3,l0=s0*60,Ul=l0*60,Jr=Ul*24,Iw=Jr*365,wl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},If="{yyyy}-{MM}-{dd}",Rw={year:"{yyyy}",month:"{yyyy}-{MM}",day:If,hour:If+" "+wl.hour,minute:If+" "+wl.minute,second:If+" "+wl.second,millisecond:wl.none},Ov=["year","month","day","hour","minute","second","millisecond"],X2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function La(e,t){return e+="","0000".substr(0,t-e.length)+e}function ss(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function I7(e){return e===ss(e)}function R7(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function sh(e,t,r,n){var i=_i(e),a=i[u0(r)](),o=i[ls(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[lh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[xu(r)](),c=(f-1)%12+1,d=i[uh(r)](),h=i[fh(r)](),v=i[ch(r)](),p=n instanceof tr?n:L7(n||j2)||D7(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),b=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,La(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,La(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,La(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,La(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,La(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,La(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,La(v,3)).replace(/{S}/g,v+"")}function O7(e,t,r,n,i){var a=null;if(Te(r))a=r;else if(We(r))a=r(e.value,t,{level:e.level});else{var o=oe({},wl);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ge(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return sh(new Date(e.value),a,i,n)}function Z2(e,t){var r=_i(e),n=r[ls(t)]()+1,i=r[lh(t)](),a=r[xu(t)](),o=r[uh(t)](),s=r[fh(t)](),l=r[ch(t)](),u=l===0,f=u&&s===0,c=f&&o===0,d=c&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Ow(e,t,r){var n=bt(e)?_i(e):e;switch(t=t||Z2(e,r),t){case"year":return n[u0(r)]();case"half-year":return n[ls(r)]()>=6?1:0;case"quarter":return Math.floor((n[ls(r)]()+1)/4);case"month":return n[ls(r)]();case"day":return n[lh(r)]();case"half-day":return n[xu(r)]()/24;case"hour":return n[xu(r)]();case"minute":return n[uh(r)]();case"second":return n[fh(r)]();case"millisecond":return n[ch(r)]()}}function u0(e){return e?"getUTCFullYear":"getFullYear"}function ls(e){return e?"getUTCMonth":"getMonth"}function lh(e){return e?"getUTCDate":"getDate"}function xu(e){return e?"getUTCHours":"getHours"}function uh(e){return e?"getUTCMinutes":"getMinutes"}function fh(e){return e?"getUTCSeconds":"getSeconds"}function ch(e){return e?"getUTCMilliseconds":"getMilliseconds"}function k7(e){return e?"setUTCFullYear":"setFullYear"}function Q2(e){return e?"setUTCMonth":"setMonth"}function J2(e){return e?"setUTCDate":"setDate"}function eE(e){return e?"setUTCHours":"setHours"}function tE(e){return e?"setUTCMinutes":"setMinutes"}function rE(e){return e?"setUTCSeconds":"setSeconds"}function nE(e){return e?"setUTCMilliseconds":"setMilliseconds"}function iE(e){if(!LU(e))return Te(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function aE(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var dh=sA;function Gg(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&zn(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?_i(e):e;if(isNaN(+l)){if(s)return"-"}else return sh(l,n,r)}if(t==="ordinal")return fg(e)?i(e):bt(e)&&a(e)?e+"":"-";var u=rd(e);return a(u)?iE(u):fg(e)?i(e):typeof e=="boolean"?e+"":"-"}var kw=["a","b","c","d","e","f","g"],kv=function(e,t){return"{"+e+(t??"")+"}"};function oE(e,t,r){ge(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Su(e,t){return t=t||"transparent",Te(e)?e:De(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Nw(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Pc=R,B7=["left","right","top","bottom","width","height"],Rf=[["width","left","right"],["height","top","bottom"]];function f0(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),d=c&&c.getBoundingRect(),h,v;if(e==="horizontal"){var p=f.width+(d?-d.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(d?-d.y+f.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var Yl=f0;Dt(f0,"vertical");Dt(f0,"horizontal");function Ms(e,t,r){r=dh(r||0);var n=t.width,i=t.height,a=pt(e.left,n),o=pt(e.top,i),s=pt(e.right,n),l=pt(e.bottom,i),u=pt(e.width,n),f=pt(e.height,i),c=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new tt(a+r[3],o+r[0],u,f);return v.margin=r,v}function Cu(e){var t=e.layoutMode||e.constructor.layoutMode;return De(t)?t:t?{type:t}:null}function As(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o(Rf[0],0),a=o(Rf[1],1);u(Rf[0],e,i),u(Rf[1],e,a);function o(f,c){var d={},h=0,v={},p=0,g=2;if(Pc(f,function(_){v[_]=e[_]}),Pc(f,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),n[c])return l(t,f[1])?v[f[2]]=null:l(t,f[2])&&(v[f[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m=0;l--)s=at(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Yu(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(tr);UA(Fs,tr);eh(Fs);T7(Fs);M7(Fs,H7);function H7(e){var t=[];return R(Fs.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Oe(t,function(r){return Wn(r).main}),e!=="dataset"&&it(t,"dataset")<=0&&t.unshift("dataset"),t}const wt=Fs;var sE="";typeof navigator<"u"&&(sE=navigator.platform||"");var ko="rgba(0, 0, 0, 0.2)";const z7={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ko,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ko,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ko,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ko,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ko,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ko,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:sE.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var lE=Ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),un="original",Ar="arrayRows",Pn="objectRows",ei="keyedColumns",Zi="typedArray",uE="unknown",ci="column",$s="row",Vt={Must:1,Might:2,Not:3},fE=Tt();function W7(e){fE(e).datasetMap=Ge()}function V7(e,t,r){var n={},i=c0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=fE(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),R(e,function(p,g){var m=De(p)?p:e[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});R(e,function(p,g){var m=p.name,y=v(p);if(f==null){var _=d.valueWayDim;h(n[m],_,y),h(o,_,y),d.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var _=d.categoryWayDim;h(n[m],_,y),h(o,_,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;yt)return e[n];return e[r-1]}function K7(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:j7(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function X7(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Of,rl,Fw,$w="\0_ec_inner",Z7=1,hE=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new tr(a),this._locale=new tr(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=Ww(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Ww(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Fw(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&R(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Ge(),u=n&&n.replaceMergeMainTypeMap;W7(this),R(r,function(c,d){c!=null&&(wt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Ze(c):at(i[d],c,!0))}),u&&u.each(function(c,d){wt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),f,this);function f(c){var d=q7(this,c,lr(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=RU(h,d,v);HU(p,c,wt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;R(p,function(b,x){var w=b.existing,S=b.newOption;if(!S)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",T=wt.getClass(c,b.keyInfo.subType,!C);if(!T)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===T)w.name=b.keyInfo.name,w.mergeOption(S,this),w.optionUpdated(S,!1);else{var E=oe({componentIndex:x},b.keyInfo);w=new T(S,this,this,E),oe(w,E),b.brandNew&&(w.__requireNewView=!0),w.init(S,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&Of(this)}this._seriesIndices||Of(this)},t.prototype.getOption=function(){var r=Ze(this.option);return R(r,function(n,i){if(wt.hasClass(i)){for(var a=lr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!yu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[$w],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function lq(e,t){return e.join(",")===t.join(",")}const uq=iq;var fn=R,Tu=De,Vw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Bv(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Vw.length;r=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=AU(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var vh=function(){function e(t){this.data=t.data||(t.sourceFormat===ei?{}:[]),this.sourceFormat=t.sourceFormat||uE,this.seriesLayoutBy=t.seriesLayoutBy||ci,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;np&&(p=_)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Xw=(t={},t[Ar+"_"+ci]={pure:!0,appendData:a},t[Ar+"_"+$s]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Pn]={pure:!0,appendData:a},t[ei]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[un]={appendData:a},t[Zi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Es(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function ex(e){var t,r;return De(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function ql(e){return new Aq(e)}var Aq=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(c||h1&&n>0?s:o}};return a;function o(){return t=e?null:li?-this._resultLT:0},e}(),Pq=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Lc(t,r)},e}();function Lq(e,t){var r=new Pq,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ci&&mr(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Ts(l,m)&&mr(_),l[m]=y}});else for(var f=0;f65535?Fq:$q}function No(){return[1/0,-1/0]}function Hq(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function nx(e,t,r,n,i){var a=ME[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Oe(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=c&&y<=d||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],b=t[i[1]][0],x=t[i[1]][1],m=0;m=c&&y<=d||isNaN(y))&&(w>=b&&w<=x||isNaN(w))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m=c&&y<=d||isNaN(y))&&(l[u++]=S)}else for(var m=0;mt[E][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,d,h=new(il(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;vf&&(f=c,d=b)}A>0&&Af-v&&(l=f-v,s.length=l);for(var p=0;pc[1]&&(c[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Lc(r[a],this._dimensions[a])}Hv={arrayRows:t,objectRows:function(r,n,i,a){return Lc(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Lc(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),zq=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(kf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=$r(s)?Zi:un,a=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=je(c.seriesLayoutBy,d.seriesLayoutBy)||null,v=je(c.sourceHeader,d.sourceHeader),p=je(c.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[Ug(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Ug(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&ix(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&ix(c),s.push(f),l.push(u._getVersionSign())}),n?o=Nq(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[_q(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return R(e.blocks,function(i){var a=LE(i);a>=t&&(t=a+ +(n&&(!a||qg(i)&&!i.noHeader)))}),t}return 0}function Gq(e,t,r,n){var i=t.noHeader,a=Yq(LE(t)),o=[],s=t.blocks||[];yi(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ts(u,l)){var f=new Eq(u[l],null);s.sort(function(v,p){return f.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(v,p){var g=t.valueFormatter,m=PE(v)(g?oe(oe({},e),{valueFormatter:g}):e,v,p>0?a.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(a.richText):jg(o.join(""),i?r:a.html);if(i)return c;var d=Gg(t.header,"ordinal",e.useUTC),h=EE(n,e.renderMode).nameStyle;return e.renderMode==="richText"?DE(e,d,h)+a.richText+c:jg('
'+Kr(d)+"
"+c,r)}function Uq(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=ge(b)?b:[b],Oe(b,function(x,w){return Gg(x,ge(h)?h[w]:h,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":Gg(l,"ordinal",u),h=t.valueType,v=o?[]:f(t.value),p=!s||!a,g=!s&&a,m=EE(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":DE(e,d,y))+(o?"":Kq(e,v,p,g,_)):jg((s?"":c)+(a?"":qq(d,!s,y))+(o?"":jq(v,p,g,_)),r)}}function ax(e,t,r,n,i,a){if(e){var o=PE(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Yq(e){return{html:Wq[e],richText:Vq[e]}}function jg(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function qq(e,t,r){var n=t?"margin-left:2px":"";return''+Kr(e)+""}function jq(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],''+Oe(e,function(o){return Kr(o)}).join("  ")+""}function DE(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Kq(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ge(t)?t.join(" "):t,a)}function Xq(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Su(n)}function IE(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var zv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=$A()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=N7({color:r,type:t,renderMode:n,markerId:i});return Te(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ge(r)?R(r,function(a){return oe(n,a)}):oe(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function Zq(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=ge(s),u=Xq(t,r),f,c,d,h;if(o>1||l&&!o){var v=Qq(s,t,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=Es(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=Wy(t),m=g&&t.name||"",y=i.getName(r),_=n?m:y;return Mu("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Mu("nameValue",{markerType:"item",markerColor:u,name:_,noName:!zn(_),value:f,valueType:c})].concat(d||[])})}function Qq(e,t,r,n,i){var a=t.getData(),o=ta(e,function(c,d,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(c){f(Es(a,r,c),c)}):R(e,f);function f(c,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Mu("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ri=Tt();function Nf(e,t){return e.getName(t)||e.getId(t)}var Jq="__universalTransitionEnabled",gh=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ql({count:tj,reset:rj}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ri(this).sourceManager=new zq(this);a.prepareSource();var o=this.getInitialData(r,i);sx(o,this),this.dataTask.context.data=o,Ri(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Cu(this),a=i?hh(r):{},o=this.subType;wt.hasClass(o)&&(o+="Series"),at(r,n.getTheme().get(this.subType)),at(r,this.getDefaultOption()),Pg(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&As(r,a,i)},t.prototype.mergeOption=function(r,n){r=at(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Cu(this);i&&As(this.option,r,i);var a=Ri(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);sx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ri(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!$r(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=d0.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Nf(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Jq])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){De(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(r,n)}},t.registerClass=function(r){return wt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(wt);Qn(gh,Mq);Qn(gh,d0);UA(gh,wt);function ox(e){var t=e.name;Wy(e)||(e.name=ej(e)||t)}function ej(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function tj(e){return e.model.getRawData().count()}function rj(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),nj}function nj(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sx(e,t){R(JV(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Dt(ij,t))})}function ij(e,t){var r=Kg(e);return r&&r.setOutputEnd((t||this).count()),t}function Kg(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const po=gh;var y0=function(){function e(){this.group=new sn,this.uid=oh("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Gy(y0);eh(y0);const bi=y0;function RE(){var e=Tt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var OE=Tt(),aj=RE(),_0=function(){function e(){this.group=new sn,this.uid=oh("viewChart"),this.renderTask=ql({plan:oj,reset:sj}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&ux(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&ux(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){n0(this.group,t)},e.markUpdateMethod=function(t,r){OE(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function lx(e,t,r){e&&$g(e)&&(t==="emphasis"?Og:kg)(e,r)}function ux(e,t,r){var n=Uu(e,t),i=t&&t.highlightKey!=null?dY(t.highlightKey):null;n!=null?R(lr(n),function(a){lx(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){lx(a,r,i)})}Gy(_0);eh(_0);function oj(e){return aj(e.model)}function sj(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&OE(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),lj[l]}var lj={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ao=_0;var ud="\0__throttleOriginMethod",fx="\0__throttleRate",cx="\0__throttleType";function b0(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v=0?c():o=setTimeout(c,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){f=h},d}function kE(e,t,r,n){var i=e[t];if(i){var a=i[ud]||i,o=i[cx],s=i[fx];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=b0(a,r,n==="debounce"),i[ud]=a,i[cx]=n,i[fx]=r}return i}}function Xg(e,t){var r=e[t];r&&r[ud]&&(r.clear&&r.clear(),e[t]=r[ud])}var dx=Tt(),hx={itemStyle:_u(Y2,!0),lineStyle:_u(U2,!0)},uj={lineStyle:"stroke",itemStyle:"fill"};function NE(e,t){var r=e.visualStyleMapper||hx[t];return r||(console.warn("Unknown style type '"+t+"'."),hx.itemStyle)}function BE(e,t){var r=e.visualDrawType||uj[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var fj={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=NE(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=BE(e,n),u=o[l],f=We(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||We(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||We(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=oe({},o);g[l]=f(p),h.setItemVisual(v,"style",g)}}}},al=new tr,cj={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=NE(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){al.option=l[n];var u=i(al),f=o.ensureUniqueItemVisual(s,"style");oe(f,u),al.option.decal&&(o.setItemVisual(s,"decal",al.option.decal),al.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},dj={performRawSeries:!0,overallReset:function(e){var t=Ge();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),dx(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=dx(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=BE(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var d=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Bf=Math.PI;function hj(e,t){t=t||{},ft(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new sn,n=new Nt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new fr({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Nt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Zy({shape:{startAngle:-Bf/2,endAngle:-Bf/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Bf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Bf*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var vj=function(){function e(t,r,n,i){this._stageTaskMap=Ge(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Ge();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";yi(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;R(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,d=f.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var p=o.getPerformArgs(d,i.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Ge(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var d=c.uid,h=s.set(d,o&&o.get(d)||ql({plan:_j,reset:bj,count:xj}));h.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||ql({reset:pj});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Ge(),u=t.seriesType,f=t.getTargetSeries,c=!0,d=!1,h="";yi(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,R(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,ql({reset:gj,onDirty:yj})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return We(t)&&(t={overallReset:t,seriesType:Sj(t)}),t.uid=oh("stageHandler"),r&&(t.visualType=r),t},e}();function pj(e){e.overallReset(e.ecModel,e.api,e.payload)}function gj(e){return e.overallProgress&&mj}function mj(){this.agent.dirty(),this.getDownstream().dirty()}function yj(){this.agent&&this.agent.dirty()}function _j(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function bj(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=lr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Oe(t,function(r,n){return FE(n)}):wj}var wj=FE(0);function FE(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,d,h,v){return c[h]==null||d[v||h]===c[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Zg=["symbol","symbolSize","symbolRotate","symbolOffset"],mx=Zg.concat(["symbolKeepAspect"]),Aj={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Za(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Jg(e,t,r){for(var n=t.type==="radial"?qj(e,t,r):Yj(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:bt(e)?[e]:ge(e)?e:null}function VE(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Kj(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Oe(r,function(a){return a/i}),n/=i)}return[r,n]}var Xj=new ho(!0);function cd(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function yx(e){return typeof e=="string"&&e!=="none"}function dd(e){var t=e.fill;return t!=null&&t!=="none"}function _x(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function bx(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function em(e,t,r){var n=YA(t.image,t.__image,r);if(th(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*eG),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Zj(e,t,r,n){var i,a=cd(r),o=dd(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||Xj,c=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,p=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(v||p)&&(w=t.getBoundingRect()),v&&(y=c?Jg(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=c?Jg(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=c||!t.__canvasFillPattern?em(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=c||!t.__canvasStrokePattern?em(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),v?e.fillStyle=y:g&&(b?e.fillStyle=b:o=!1),p?e.strokeStyle=_:m&&(x?e.strokeStyle=x:a=!1)}var S=t.getGlobalScale();f.setScale(S[0],S[1],t.segmentIgnoreThreshold);var C,T;e.setLineDash&&r.lineDash&&(i=VE(t),C=i[0],T=i[1]);var E=!0;(u||c&Vo)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),E=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),E&&f.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=T),n||(r.strokeFirst?(a&&bx(e,r),o&&_x(e,r)):(o&&_x(e,r),a&&bx(e,r))),C&&e.setLineDash([])}function Qj(e,t,r){var n=t.__image=YA(r.image,t.__image,t,t.onload);if(!(!n||!th(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,d=s-f;e.drawImage(n,u,f,c,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Jj(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||co,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=VE(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(cd(r)&&e.strokeText(i,r.x,r.y),dd(r)&&e.fillText(i,r.x,r.y)):(dd(r)&&e.fillText(i,r.x,r.y),cd(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var xx=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function GE(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){yr(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?no.opacity:o}(n||t.blend!==r.blend)&&(a||(yr(e,i),a=!0),e.globalCompositeOperation=t.blend||no.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Zt]){if(this._disposed){this.id;return}var a,o,s;if(De(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Zt]=!0,!this._model||n){var l=new uq(this._api),u=this._theme,f=this._model=new vE;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},nm);var c={seriesTransition:s,optionChanged:!0};if(i)this[hr]={silent:a,updateParams:c},this[Zt]=!1,this.getZr().wakeUp();else{try{Fo(this),Oi.update.call(this,null,c)}catch(d){throw this[hr]=null,this[Zt]=!1,d}this._ssr||this._zr.flush(),this[hr]=null,this[Zt]=!1,ol.call(this,a),sl.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ve.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ve.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return R(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;R(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return R(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Fx[i]){var l=s,u=s,f=-s,c=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();R(Kl,function(_,b){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ze(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),d.push({dom:x,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,p=c-u,g=bo.createCanvas(),m=z1(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return R(d,function(_){var b=_.left-l,x=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Nt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),R(d,function(_){var b=new Bs({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Yv(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Yv(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=pv(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=pv(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Pj(s,l,n):Lj(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;R(TK,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Sl(s,function(v){var p=ut(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=oe({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var d=f&&c!=null&&o.getComponent(f,c),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),R(jl,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),R(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),Ij(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&VA(this.getDom(),C0,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Kl[n.id]},t.prototype.resize=function(r){if(!this[Zt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[hr]&&(a==null&&(a=this[hr].silent),i=!0,this[hr]=null),this[Zt]=!0;try{i&&Fo(this),Oi.update.call(this,{type:"resize",animation:oe({duration:0},r&&r.animation)})}catch(o){throw this[Zt]=!1,o}this[Zt]=!1,ol.call(this,a),sl.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(De(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!im[r]){var i=im[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=oe({},r);return n.type=jl[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(De(n)||(n={silent:!!n}),!!hd[r.type]&&this._model){if(this[Zt]){this._pendingActions.push(r);return}var i=n.silent;jv.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Ve.browser.weChat&&this._throttledZrFlush(),ol.call(this,i),sl.call(this,i)}},t.prototype.updateLabelLayout=function(){pn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Fo=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),Uv(c,!0),Uv(c,!1),d.plan()},Uv=function(c,d){for(var h=c._model,v=c._scheduler,p=d?c._componentsViews:c._chartsViews,g=d?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_d.get("hoverLayerThreshold")&&!Ve.node&&!Ve.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,d){var h=c.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(c,d){if(!c.preventAutoZ){var h=c.get("z")||0,v=c.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(c,d,h,v){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),_=0;_0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(os(m))return;if(m instanceof ct&&hY(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&i(m)}})}Nx=function(c){return new(function(d){pe(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){Og(v,p),Wr(c)},h.prototype.leaveEmphasis=function(v,p){kg(v,p),Wr(c)},h.prototype.enterBlur=function(v){nY(v),Wr(c)},h.prototype.leaveBlur=function(v){u2(v),Wr(c)},h.prototype.enterSelect=function(v){f2(v),Wr(c)},h.prototype.leaveSelect=function(v){c2(v),Wr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h}(pE))(c)},aP=function(c){function d(h,v){for(var p=0;p=0)){$x.push(r);var a=zE.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function cP(e,t){im[e]=t}function IK(e,t,r){var n=fK("registerMap");n&&n(e,t,r)}var RK=kq;So(x0,fj);So(mh,cj);So(mh,dj);So(x0,Aj);So(mh,Ej);So(JE,sK);uP(mE);fP(hK,mq);cP("default",hj);Hs({type:io,event:io,update:io},Sr);Hs({type:Mc,event:Mc,update:Mc},Sr);Hs({type:Wl,event:Wl,update:Wl},Sr);Hs({type:Ac,event:Ac,update:Ac},Sr);Hs({type:Vl,event:Vl,update:Vl},Sr);lP("light",Cj);lP("dark",Tj);function ll(e){return e==null?0:e.length||1}function Hx(e){return e}var OK=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Hx,this._newKeyGetter=i||Hx,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&d>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&d===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h1)for(var s=0;s30}var ul=De,ki=Oe,VK=typeof Int32Array>"u"?Array:Int32Array,GK="e\0\0",zx=-1,UK=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],YK=["_approximateExtent"],Wx,Vf,fl,cl,Zv,Gf,Qv,qK=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;hP(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===un;if(l&&!i.pure)for(var u=[],f=t;f0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),ge(a)?a=a.slice():ul(a)&&(a=oe({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ul(r)?oe(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){ul(t)?oe(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?oe(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;q9(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){R(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ki(this.dimensions,this._getDimInfo,this),this.hostModel)),Zv(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];We(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Iy(arguments)))})},e.internalField=function(){Wx=function(t){var r=t._invertedIndicesMap;R(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new VK(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[r]=l}}}(),e}();const mP=qK;function yP(e,t){v0(e)||(e=p0(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Ge(),a=[],o=KK(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&gP(o),l=n===e.dimensionsDefine,u=l?pP(e):vP(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=Ge(f),d=new TE(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function KK(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;De(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function XK(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var ZK=function(){function e(t){this.coordSysDims=[],this.axisMap=Ge(),this.categoryAxisMap=Ge(),this.coordSysName=t}return e}();function QK(e){var t=e.get("coordinateSystem"),r=new ZK(t),n=JK[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var JK={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",_n).models[0],a=e.getReferringComponents("yAxis",_n).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),$o(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),$o(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",_n).models[0];t.coordSysDims=["single"],r.set("single",i),$o(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",_n).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),$o(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),$o(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),$o(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function $o(e){return e.get("type")==="category"}function eX(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;tX(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,d;if(R(a,function(y,_){Te(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,v=f.type,p=0;R(a,function(y){y.coordDim===h&&p++});var g={name:c,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:c}}function tX(e){return!hP(e.schema)}function _P(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function rX(e,t){return _P(e,t)?e.getCalculationInfo("stackResultDimension"):t}function nX(e,t){var r=e.get("coordinateSystem"),n=h0.get(r),i;return t&&t.coordSysDims&&(i=Oe(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=FK(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function iX(e,t,r){var n,i;return r&&R(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function bP(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=p0(e)):(i=n.getSource(),a=i.sourceFormat===un);var o=QK(t),s=nX(t,o),l=r.useEncodeDefaulter,u=We(l)?l:l?Dt(V7,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=yP(i,f),d=iX(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),v=eX(t,{schema:c,store:h}),p=new mP(c,t);p.setCalculationInfo(v);var g=d!=null&&aX(i)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function aX(e){if(e.sourceFormat===un){var t=oX(e.data||[]);return!ge(Gu(t))}}function oX(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();eh(wP);const Ti=wP;var sX=0,lX=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++sX}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Oe(n,uX);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Te(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Ge(this.categories))},e}();function uX(e){return De(e)&&e.value!=null?e.value:e+""}const am=lX;function om(e){return e.type==="interval"||e.type==="log"}function fX(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=FA(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=xP(o),l=i.niceTickExtent=[It(Math.ceil(e[0]/o)*o,s),It(Math.floor(e[1]/o)*o,s)];return cX(l,e),i}function Jv(e){var t=Math.pow(10,zy(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,It(r*t)}function xP(e){return ui(e)+2}function Vx(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function cX(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Vx(e,0,t),Vx(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function yh(e,t){return e>=t[0]&&e<=t[1]}function _h(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function bh(e,t){return e*(t[1]-t[0])+t[0]}var SP=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new am({})),ge(i)&&(i=new am({categories:Oe(i,function(a){return De(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Te(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),yh(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),_h(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(bh(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ti);Ti.registerClass(SP);const CP=SP;var Oa=It,TP=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return yh(r,this._extent)},t.prototype.normalize=function(r){return _h(r,this._extent)},t.prototype.scale=function(r){return bh(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=xP(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:Oa(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function EP(e){var t=vX(e),r=[];return R(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),d=Math.abs(c[1]-c[0]);s=u?f/d*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=pt(n.get("barWidth"),s),p=pt(n.get("barMaxWidth"),s),g=pt(n.get("barMinWidth")||(LP(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:P0(a),stackId:E0(n)})}),pX(r)}function pX(e){var t={};R(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=xt(a).length;s=Math.max(35-l*4,15)+"%"}var u=pt(s,o),f=pt(n.gap,1),c=n.remainedWidth,d=n.autoWidthCount,h=(c-u)/(d+(d-1)*f);h=Math.max(h,0),R(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,c-=b+f*b,d--}else{var b=h;y&&yb&&(b=_),b!==h&&(m.width=b,c-=b+f*b,d--)}}),h=(c-u)/(d+(d-1)*f),h=Math.max(h,0);var v=0,p;R(a,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+f)}),p&&(v-=p.width*f);var g=-v/2;R(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function gX(e,t,r){if(e&&t){var n=e[P0(t)];return n!=null&&r!=null?n[E0(r)]:n}}function mX(e,t){var r=AP(e,t),n=EP(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=E0(i),u=n[P0(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function yX(e){return{seriesType:e,plan:RE(),reset:function(t){if(PP(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=_P(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=_X(i,a),v=LP(t),p=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var x=_.count,w=v&&ep(x*3),S=v&&l&&ep(x*3),C=v&&ep(x),T=n.master.getRect(),E=d?T.width:T.height,A,M=b.getStore(),D=0;(A=_.next())!=null;){var O=M.get(c?g:o,A),k=M.get(s,A),F=h,j=void 0;c&&(j=+O-M.get(o,A));var B=void 0,N=void 0,U=void 0,re=void 0;if(d){var ae=n.dataToPoint([O,k]);if(c){var me=n.dataToPoint([j,k]);F=me[0]}B=F,N=ae[1]+y,U=ae[0]-F,re=m,Math.abs(U)>>1;e[i][1]i&&(this._approxInterval=i);var s=Uf.length,l=Math.min(bX(Uf,this._approxInterval,0,s),s-1);this._interval=Uf[l][1],this._minLevelUnit=Uf[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return bt(r)?r:+_i(r)},t.prototype.contain=function(r){return yh(this.parse(r),this._extent)},t.prototype.normalize=function(r){return _h(this.parse(r),this._extent)},t.prototype.scale=function(r){return bh(r,this._extent)},t.type="time",t}(Ku),Uf=[["second",s0],["minute",l0],["hour",Ul],["quarter-day",Ul*6],["half-day",Ul*12],["day",Jr*1.2],["half-week",Jr*3.5],["week",Jr*7],["month",Jr*31],["quarter",Jr*95],["half-year",Iw/2],["year",Iw]];function wX(e,t,r,n){var i=_i(t),a=_i(r),o=function(v){return Ow(i,v,n)===Ow(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},d=function(){return c()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return d();case"millisecond":return h()}}function xX(e,t){return e/=Jr,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function SX(e){var t=30*Jr;return e/=t,e>6?6:e>3?3:e>2?2:1}function CX(e){return e/=Ul,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Gx(e,t){return e/=t?l0:s0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function TX(e){return FA(e,!0)}function MX(e,t,r){var n=new Date(e);switch(ss(t)){case"year":case"month":n[Q2(r)](0);case"day":n[J2(r)](1);case"hour":n[eE(r)](0);case"minute":n[tE(r)](0);case"second":n[rE(r)](0),n[nE(r)](0)}return n.getTime()}function AX(e,t,r,n){var i=1e4,a=X2,o=0;function s(E,A,M,D,O,k,F){for(var j=new Date(A),B=A,N=j[D]();B1&&k===0&&M.unshift({value:M[0].value-B})}}for(var k=0;k=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&d>_/1.5||(u.push(g),c>_||e===a[h]))break}f=[]}}}for(var b=$t(Oe(u,function(E){return $t(E,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(E){return E.length>0}),x=[],w=b.length-1,h=0;h0;)a*=10;var s=[It(DX(n[0]/a)*a),It(LX(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Xl.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=cn(r)/cn(this.base),yh(r,this._extent)},t.prototype.normalize=function(r){return r=cn(r)/cn(this.base),_h(r,this._extent)},t.prototype.scale=function(r){return r=bh(r,this._extent),Yf(this.base,r)},t.type="log",t}(Ti),IP=L0.prototype;IP.getMinorTicks=Xl.getMinorTicks;IP.getLabel=Xl.getLabel;function qf(e,t){return PX(e,ui(t))}Ti.registerClass(L0);const IX=L0;var RX=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[kX[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=OX[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),OX={min:"_determinedMin",max:"_determinedMax"},kX={min:"_dataMin",max:"_dataMax"};function NX(e,t,r){var n=e.rawExtentInfo;return n||(n=new RX(e,t,r),e.rawExtentInfo=n,n)}function jf(e,t){return t==null?null:jc(t)?NaN:e.parse(t)}function RP(e,t){var r=e.type,n=NX(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=AP("bar",o),l=!1;if(R(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=EP(s),f=BX(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function BX(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=gX(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;R(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,d=f/c-f;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Yx(e,t){var r=t,n=RP(e,r),i=n.extent,a=r.get("splitNumber");e instanceof IX&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function FX(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new CP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new EX({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ti.getClass(t)||Ku)}}function $X(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Xu(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):Te(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):We(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(D0(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function D0(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function HX(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof CP?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Xu(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f=0||(qx.push(e),We(e)&&(e={install:e}),e.install(GX))}var Pu=Tt();function UX(e){return e.type==="category"?qX(e):KX(e)}function YX(e,t){return e.type==="category"?jX(e,t):{ticks:Oe(e.scale.getTicks(),function(r){return r.value})}}function qX(e){var t=e.getLabelModel(),r=kP(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function kP(e,t){var r=NP(e,"labels"),n=I0(t),i=BP(r,n);if(i)return i;var a,o;return We(n)?a=HP(e,n):(o=n==="auto"?XX(e):n,a=$P(e,o)),FP(r,n,{labels:a,labelCategoryInterval:o})}function jX(e,t){var r=NP(e,"ticks"),n=I0(t),i=BP(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),We(n))a=HP(e,n,!0);else if(n==="auto"){var s=kP(e,e.getLabelModel());o=s.labelCategoryInterval,a=Oe(s.labels,function(l){return l.tickValue})}else o=n,a=$P(e,o,!0);return FP(r,n,{ticks:a,tickCategoryInterval:o})}function KX(e){var t=e.scale.getTicks(),r=Xu(e);return{labels:Oe(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function NP(e,t){return Pu(e)[t]||(Pu(e)[t]=[])}function BP(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,p=0,g=Fy(r({value:l}),t.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/f,y=h/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=Pu(e.model),x=e.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return w!=null&&S!=null&&Math.abs(w-_)<=1&&Math.abs(S-o)<=1&&w>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=w:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function QX(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function $P(e,t,r){var n=Xu(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=OP(e),d=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;d&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);h&&v-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function HP(e,t,r){var n=e.scale,i=Xu(e),a=[];return R(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var jx=[0,1],JX=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return TU(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Kx(n,i.count())),Eg(t,jx,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Kx(n,i.count()));var a=Eg(t,n,jx,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=YX(this,r),i=n.ticks,a=Oe(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return eZ(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Oe(n,function(a){return Oe(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return UX(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return ZX(this)},e}();function Kx(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function eZ(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;R(t,function(h){h.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,v){return h=It(h),v=It(v),c?h>v:hi&&(i+=dl);var h=Math.atan2(s,o);if(h<0&&(h+=dl),h>=n&&h<=i||h+dl>=n&&h+dl<=i)return l[0]=f,l[1]=c,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=v,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function pd(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,f=r-e,c=n-t,d=Math.sqrt(f*f+c*c);f/=d,c/=d;var h=l*f+u*c,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*f,g=o[1]=t+v*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function zP(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var gn=[];function aZ(e,t,r){var n=zP(t.x,t.y,t.width,t.height,e.x,e.y,gn);return r.set(gn[0],gn[1]),n}function oZ(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,c=e.x,d=e.y,h=0;h0){t=t/180*Math.PI,bn.fromArray(e[0]),lt.fromArray(e[1]),Mt.fromArray(e[2]),ke.sub(Vn,bn,lt),ke.sub(Fn,Mt,lt);var r=Vn.len(),n=Fn.len();if(!(r<.001||n<.001)){Vn.scale(1/r),Fn.scale(1/n);var i=Vn.dot(Fn),a=Math.cos(t);if(a1&&ke.copy(or,Mt),or.toArray(e[1])}}}}function sZ(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,bn.fromArray(e[0]),lt.fromArray(e[1]),Mt.fromArray(e[2]),ke.sub(Vn,lt,bn),ke.sub(Fn,Mt,lt);var n=Vn.len(),i=Fn.len();if(!(n<.001||i<.001)){Vn.scale(1/n),Fn.scale(1/i);var a=Vn.dot(t),o=Math.cos(r);if(a=l)ke.copy(or,Mt);else{or.scaleAndAdd(Fn,s/Math.tan(Math.PI/2-f));var c=Mt.x!==lt.x?(or.x-lt.x)/(Mt.x-lt.x):(or.y-lt.y)/(Mt.y-lt.y);if(isNaN(c))return;c<0?ke.copy(or,lt):c>1&&ke.copy(or,Mt)}or.toArray(e[1])}}}}function Zx(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function lZ(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=hg(n[0],n[1]),a=hg(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=jh([],n[1],n[0],o/i),l=jh([],n[1],n[2],o/a),u=jh([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&x(-f/o,0,o);var p=e[0],g=e[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),b(m,y,1),b(y,m,-1),_(),m<0&&S(-m),y<0&&S(y);function _(){m=p.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function b(C,T,E){if(C<0){var A=Math.min(T,-C);if(A>0){x(A*E,0,o);var M=A+C;M<0&&w(-M*E,1)}else w(-C*E,1)}}function x(C,T,E){C!==0&&(u=!0);for(var A=T;A0)for(var M=0;M0;M--){var F=E[M-1]*k;x(-F,M,o)}}}function S(C){var T=C<0?-1:1;C=Math.abs(C);for(var E=Math.ceil(C/(o-1)),A=0;A0?x(E,0,A+1):x(-E,o-A-1,o),C-=E,C<=0)return}return u}function uZ(e,t,r,n){return YP(e,"x","width",t,r,n)}function qP(e,t,r,n){return YP(e,"y","height",t,r,n)}function jP(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new tt(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),it(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Mr(n,u,r,l)}else if(n.attr(u),!ju(n).valueAnimation){var c=je(n.style.opacity,1);n.style.opacity=0,Br(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};Kf(h,u,Xf),Kf(h,n.states.select,Xf)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};Kf(v,u,Xf),Kf(v,n.states.emphasis,Xf)}g7(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=dZ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Mr(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,Br(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}();const vZ=hZ;var rp=Tt();function pZ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=rp(r).labelManager;i||(i=rp(r).labelManager=new vZ),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=rp(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function gZ(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Es(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}function yZ(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new Nt({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var p=We(i)?function(g){i(g,c)}:null;Br(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function _Z(e,t,r){var n=e.getArea(),i=It(n.r0,1),a=It(n.r,1),o=new wo({shape:{cx:It(e.cx,1),cy:It(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Br(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function bZ(e,t,r,n,i){if(e){if(e.type==="polar")return _Z(e,t,r);if(e.type==="cartesian2d")return yZ(e,t,r,n,i)}else return null;return null}function KP(e,t){return e.type===t}var wZ={average:function(e){for(var t=0,r=0,n=0;nt&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var v=void 0;Te(a)?v=wZ[a]:We(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,xZ))}}}}}var XP=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return bP(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.dataToPoint(a.clampData(r));if(i)R(a.getAxes(),function(c,d){if(c.type==="category"){var h=c.getTicksCoords(),v=a.clampData(r)[d];n&&(n[d]==="x1"||n[d]==="y1")&&(v+=1),v>h.length-1&&(v=h.length-1),v<0&&(v=0),h[v]&&(o[d]=c.toGlobalCoord(h[v].coord))}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(po);po.registerClass(XP);const Jx=XP;var CZ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return bP(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=q2(Jx.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Jx);const TZ=CZ;var MZ=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),AZ=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new MZ},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ad(a,r,ut(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ao),tS={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=np(t.x,e.x),s=ip(t.x+t.width,i),l=np(t.y,e.y),u=ip(t.y+t.height,a),f=si?s:o,t.y=c&&l>a?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=ip(t.r,e.r),a=np(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},rS={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Nt({shape:oe({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?eS:wo,f=new u({shape:n,z2:1});f.name="item";var c=ZP(i);if(f.calculateTextPosition=EZ(c,{isRoundCap:u===eS}),a){var d=f.shape,h=i?"r":"endAngle",v={};d[h]=i?0:n.startAngle,v[h]=n[h],(s?Mr:Br)(f,{shape:v},a)}return f}};function IZ(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function nS(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Mr:Br)(r,{shape:l},t,i,null);var f=t?e.baseAxis.model:null;(o?Mr:Br)(r,{shape:u},f,i)}function iS(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function kZ(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function ZP(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function oS(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");s||e.setShape("r",n.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=n.getShallow("cursor");u&&e.attr("cursor",u);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",c=G2(n);i0(e,c,{labelFetcher:a,labelDataIndex:r,defaultText:gZ(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var d=e.getTextContent();if(s&&d){var h=n.get(["label","position"]);e.textConfig.inside=h==="middle"?!0:null,PZ(e,h==="outside"?f:h,ZP(o),n.get(["label","rotate"]))}p7(d,c,a.getRawValue(r),function(p){return mZ(t,p)});var v=n.getModel(["emphasis"]);v2(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),p2(e,n),kZ(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function NZ(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var BZ=function(){function e(){}return e}(),sS=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new BZ},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?r:null},30,!1);function FZ(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=a.length/3;f=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function QP(e,t,r){if(KP(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function $Z(e,t,r){var n=e.type==="polar"?wo:Nt;return new n({shape:QP(t,r,e),silent:!0,z2:0})}const HZ=DZ;function zZ(e){e.registerChartView(HZ),e.registerSeriesModel(TZ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Dt(mX,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yX("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,SZ("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var ec=Math.PI*2,fS=Math.PI/180;function JP(e,t){return Ms(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function eL(e,t){var r=JP(e,t),n=e.get("center"),i=e.get("radius");ge(i)||(i=[0,i]);var a=pt(r.width,t.getWidth()),o=pt(r.height,t.getHeight()),s=Math.min(a,o),l=pt(i[0],s/2),u=pt(i[1],s/2),f,c,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);f=h[0]||0,c=h[1]||0}else ge(n)||(n=[n,n]),f=pt(n[0],a)+r.x,c=pt(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function WZ(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=JP(n,r),s=eL(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,d=-n.get("startAngle")*fS,h=n.get("minAngle")*fS,v=0;i.each(a,function(E){!isNaN(E)&&v++});var p=i.getSum(a),g=Math.PI/(p||v)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var x=ec,w=0,S=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(E,A){var M;if(isNaN(E)){i.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:c,r:y?NaN:f});return}y!=="area"?M=p===0&&_?g:E*g:M=ec/v,Mr?m:g,x=Math.abs(_.label.y-r);if(x>=b.maxY){var w=_.label.x-t-_.len2*i,S=n+_.len,C=Math.abs(w)e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function ap(e){return e.position==="center"}function YZ(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*GZ,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,d=s.height;function h(w){w.ignore=!0}function v(w){if(!w.ignore)return!0;for(var S in w.states)if(w.states[S].ignore===!1)return!0;return!1}t.each(function(w){var S=t.getItemGraphicEl(w),C=S.shape,T=S.getTextContent(),E=S.getTextGuideLine(),A=t.getItemModel(w),M=A.getModel("label"),D=M.get("position")||A.get(["emphasis","label","position"]),O=M.get("distanceToLabelLine"),k=M.get("alignTo"),F=pt(M.get("edgeDistance"),u),j=M.get("bleedMargin"),B=A.getModel("labelLine"),N=B.get("length");N=pt(N,u);var U=B.get("length2");if(U=pt(U,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":ae>0?"left":"right"}var G=Math.PI,q=0,ne=M.get("rotate");if(bt(ne))q=ne*(G/180);else if(D==="center")q=0;else if(ne==="radial"||ne===!0){var ce=ae<0?-re+G:-re;q=ce}else if(ne==="tangential"&&D!=="outside"&&D!=="outer"){var te=Math.atan2(ae,me);te<0&&(te=G*2+te);var ie=me>0;ie&&(te=G+te),q=te-G}if(a=!!q,T.x=Me,T.y=V,T.rotation=q,T.setStyle({verticalAlign:"middle"}),Y){T.setStyle({align:W});var ve=T.states.select;ve&&(ve.x+=T.x,ve.y+=T.y)}else{var X=T.getBoundingRect().clone();X.applyTransform(T.getComputedTransform());var _e=(T.style.margin||0)+2.1;X.y-=_e/2,X.height+=_e,r.push({label:T,labelLine:E,position:D,len:N,len2:U,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new ke(ae,me),linePoints:J,textAlign:W,labelDistance:O,labelAlignTo:k,edgeDistance:F,bleedMargin:j,rect:X,unconstrainedWidth:X.width,labelStyleWidth:T.style.width})}S.setTextConfig({inside:Y})}}),!a&&e.get("avoidLabelOverlap")&&UZ(r,n,i,l,u,d,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=a.r0}},t.type="pie",t}(ao);const KZ=jZ;function XZ(e,t,r){t=ge(t)&&{coordDimensions:t}||oe({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=yP(n,t).dimensions,a=new mP(i,e);return a.initData(n,r),a}var ZZ=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const QZ=ZZ;var JZ=Tt(),eQ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new QZ(_t(this.getData,this),_t(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return XZ(this,{coordDimensions:["value"],encodeDefaulter:Dt(G7,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=JZ(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=MU(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Pg(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(po);const tQ=eQ;function rQ(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(bt(o)&&!isNaN(o)&&o<0)})}}}function nQ(e){e.registerChartView(KZ),e.registerSeriesModel(tQ),Dj("pie",e.registerAction),e.registerLayout(Dt(WZ,"pie")),e.registerProcessor(VZ("pie")),e.registerProcessor(rQ("pie"))}var iQ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(wt);const aQ=iQ;var sm=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",_n).models[0]},t.type="cartesian2dAxis",t}(wt);Qn(sm,VX);var rL={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},oQ=at({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},rL),R0=at({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},rL),sQ=at({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},R0),lQ=ft({logBase:10},R0);const uQ={category:oQ,value:R0,time:sQ,log:lQ};var fQ={value:1,category:1,time:1,log:1};function dS(e,t,r,n){R(fQ,function(i,a){var o=at(at({},uQ[a],!0),n,!0),s=function(l){pe(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var d=Cu(this),h=d?hh(f):{},v=c.getTheme();at(f,v.get(a+"Axis")),at(f,this.getDefaultOption()),f.type=hS(f),d&&As(f,h,d)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=am.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",hS)}function hS(e){return e.type||(e.data?"category":"value")}var cQ=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Oe(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),$t(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const dQ=cQ;var lm=["x","y"];function vS(e){return e.type==="interval"||e.type==="time"}var hQ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=lm,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!vS(r)||!vS(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,d=o[0]-i[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,d,h];this._invTransform=Qd([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new tt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return rn(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return rn(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new tt(i,a,o,s)},t}(dQ),vQ=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(tZ);const pQ=vQ;function um(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[c[2]-h,c[3]+h]:[c[0]-h,c[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[d[l]]:c[0],u==="x"?v[d[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),pu(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function pS(e){return e.get("coordinateSystem")==="cartesian2d"}function gS(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,_n).models[0];t[n]=a}),t}var op=Math.log;function gQ(e,t,r){var n=Ku.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=RP(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(e.type==="log"){var d=op(e.base);u=[op(u[0])/d,op(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(e);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=n.getInterval.call(e),p=u[0],g=u[1];if(f&&c)v=(g-p)/o;else if(f)for(g=u[0]+v*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)v=Jv(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=Jv(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=It(g-y),p<0&&u[0]>=0?(p=0,g=It(y)):g>0&&u[1]<=0&&(g=0,p=-It(y))}var _=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+v*_,g+v*b),n.setInterval.call(e,v),(_||b)&&n.setNiceExtent.call(e,p+v,g-v)}var mQ=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lm,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=xt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var d=+l[c],h=o[d],v=h.model,p=h.scale;om(p)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(Yx(p,v),om(p)&&(s=h))}f.length&&(s||(s=f.pop(),Yx(s.scale,s.model)),R(f,function(g){gQ(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){mS(n,"y",o,a)}),R(n.y,function(o){mS(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Ms(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=HX(u);if(f){var c=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+d,u.position==="top"?o.y+=f.height+d:u.position==="left"&&(o.x+=f.width+d)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(c[d],c[1-d]),yQ(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}De(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):td(i-qi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),_S={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(rn(s,s,o),rn(l,l,o));var f=oe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new vo({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});bu(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);Te(d)&&(d=[d,d]),(Te(h)||bt(h))&&(h=[h,h]);var v=Uj(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var _=w0(d[y],-p/2,-g/2,p,g,f.stroke,!0),b=m.r+m.offset,x=u?l:s;_.attr({rotation:m.rotate,x:x[0]+b*Math.cos(e.rotation),y:x[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=xQ(r,n,t,e),a=CQ(r,n,t,e);if(wQ(t,a,i),SQ(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=UP(Oe(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));jP(o)}},axisName:function(e,t,r,n){var i=pu(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,wS(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*qi/180);var v;wS(a)?d=oo.innerTextLayout(e.rotation,h??e.rotation,o):(d=bQ(e.rotation,a,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=pu(e.nameTruncateMaxWidth,g.maxWidth,v),_=new fr({x:c[0],y:c[1],rotation:d.rotation,silent:oo.isLabelSilent(t),style:na(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(r0({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=oo.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,ut(_).eventData=b}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function bQ(e,t,r,n){var i=BA(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return td(i-qi/2)?(o=l?"bottom":"top",a="center"):td(i-qi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iqi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function wQ(e,t,r){if(!OP(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],d=r[r.length-2];n===!1?(Vr(a),Vr(u)):bS(a,o)&&(n?(Vr(o),Vr(f)):(Vr(a),Vr(u))),i===!1?(Vr(s),Vr(c)):bS(l,s)&&(i?(Vr(l),Vr(d)):(Vr(s),Vr(c)))}}function Vr(e){e&&(e.ignore=!0)}function bS(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Oy([]);return ky(i,i,-e.rotation),r.applyTransform(is([],i,e.getLocalTransform())),n.applyTransform(is([],i,t.getLocalTransform())),r.intersect(n)}}function wS(e){return e==="middle"||e==="center"}function nL(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function LQ(e){var t=O0(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=fm(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o=s)}}for(var c=this.__startIndex;c15)break}}O.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var E=h.dpr,A=0;A0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?rc:0),this._needsManuallyCompositing),f.__builtin__||Dy("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Ir&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,d){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?at(n[t],r,!0):n[t]=r;for(var i=0;is)return!0;if(o){var l=O0(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Ua(t).pointerEl=new c7[a.type](MS(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ua(t).labelEl=new fr(MS(r.label));t.add(a),ES(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ua(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Ua(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),ES(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=t0(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){dA(u.event)},onmousedown:fp(this._onHandleDragMove,this,0,0),drift:fp(this._onHandleDragMove,this),ondragend:fp(this._onHandleDragEnd,this)}),n.add(i)),PS(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ge(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,kE(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){AS(this._axisPointerModel,!r&&this._moveAnimation,this._handle,cp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(cp(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(cp(i)),Ua(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Xg(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function AS(e,t,r,n){lL(Ua(r).lastProp,n)||(Ua(r).lastProp=n,t?Mr(r,n,e):(r.stopAnimation(),r.attr(n)))}function lL(e,t){if(De(e)&&De(t)){var r=!0;return R(t,function(n,i){r=r&&lL(e[i],n)}),!!r}else return e===t}function ES(e,t){e[t.get(["label","show"])?"show":"hide"]()}function cp(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function PS(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const KQ=jQ;function XQ(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function ZQ(e,t,r,n,i){var a=r.get("value"),o=uL(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=dh(s.get("padding")||0),u=s.getFont(),f=Fy(o,u),c=i.position,d=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=d),v==="center"&&(c[0]-=d/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),QQ(c,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:na(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function QQ(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function uL(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:D0(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Te(o)?a=o.replace("{value}",a):We(o)&&(a=o(s))}return a}function fL(e,t,r){var n=gu();return ky(n,n,r.rotation),mg(n,n,r.position),e0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function JQ(e,t,r,n,i,a){var o=iL.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),ZQ(t,n,i,a,{position:fL(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function eJ(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function tJ(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var rJ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=LS(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=XQ(a),h=nJ[u](s,c,f);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=um(l.model,i);JQ(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=um(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=fL(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=LS(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var d=(u[1]+u[0])/2,h=[d,d];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},t}(KQ);function LS(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var nJ={line:function(e,t,r){var n=eJ([t,r[0]],[t,r[1]],DS(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:tJ([t-n/2,r[0]],[n,i],DS(e))}}};function DS(e){return e.dim==="x"?0:1}const iJ=rJ;var aJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(wt);const oJ=aJ;var fi=Tt(),sJ=R;function cL(e,t,r){if(!Ve.node){var n=t.getZr();fi(n).records||(fi(n).records={}),lJ(n,t);var i=fi(n).records[e]||(fi(n).records[e]={});i.handler=r}}function lJ(e,t){if(fi(e).initialized)return;fi(e).initialized=!0,r("click",Dt(IS,"click")),r("mousemove",Dt(IS,"mousemove")),r("globalout",fJ);function r(n,i){e.on(n,function(a){var o=cJ(t);sJ(fi(e).records,function(s){s&&i(s,a,o.dispatchAction)}),uJ(o.pendings,t)})}}function uJ(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function fJ(e,t,r){e.handler("leave",null,r)}function IS(e,t,r,n){t.handler(e,r,n)}function cJ(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function dm(e,t){if(!Ve.node){var r=t.getZr(),n=(fi(r).records||{})[e];n&&(fi(r).records[e]=null)}}var dJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";cL("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){dm("axisPointer",n)},t.prototype.dispose=function(r,n){dm("axisPointer",n)},t.type="axisPointer",t}(bi);const hJ=dJ;function dL(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Uu(a,e);if(o==null||o<0||ge(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,d=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(d),p=[];p[h]=a.get(v,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Oe(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var RS=Tt();function vJ(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||_t(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ic(i)&&(i=dL({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Ic(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Ic(i),d={},h={},v={list:[],map:{}},p={showPointer:Dt(gJ,h),showTooltip:Dt(mJ,v)};R(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);R(s.coordSysAxesInfo[y],function(b,x){var w=b.axis,S=wJ(u,b);if(!c&&_&&(!u||S)){var C=S&&S.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&OS(b,C,p,!1,d)}})});var g={};return R(f,function(m,y){var _=m.linkGroup;_&&!h[y]&&R(_.axesInfo,function(b,x){var w=h[x];if(b!==m&&w){var S=w.value;_.mapper&&(S=m.axis.scale.parse(_.mapper(S,kS(b),kS(m)))),g[m.key]=S}})}),R(g,function(m,y){OS(f[y],m,p,!0,d)}),yJ(h,f,d),_J(v,i,e,o),bJ(f,o,r),d}}function OS(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=pJ(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&oe(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function pJ(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,e,r);d=h.dataIndices,c=h.nestestValue}else{if(d=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!d.length)return;c=l.getData().get(f[0],d[0])}if(!(c==null||!isFinite(c))){var v=e-c,p=Math.abs(v);p<=o&&((p=0&&s<0)&&(o=p,s=v,i=c,a.length=0),R(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function gJ(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function mJ(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Lu(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function yJ(e,t,r){var n=r.axesInfo=[];R(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function _J(e,t,r,n){if(Ic(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function bJ(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=RS(n)[i]||{},o=RS(n)[i]={};R(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&R(c.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];R(a,function(u,f){!o[f]&&l.push(u)}),R(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function wJ(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function kS(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Ic(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function hL(e){aL.registerAxisPointerClass("CartesianAxisPointer",iJ),e.registerComponentModel(oJ),e.registerComponentView(hJ),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ge(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=TQ(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},vJ)}function xJ(e){ia(HQ),ia(hL)}function SJ(e,t){var r=dh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Nt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var CJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(wt);const TJ=CJ;function vL(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function pL(e){if(Ve.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,d=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function IJ(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=Ve.transformSupported?","+k0+n:",left"+n+",top"+n),EJ+":"+i}function NS(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ve.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Ve.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+k0+":"+o+";":[["top",0],["left",0],[gL,o]]}function RJ(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function OJ(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=IE(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(IJ(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(h){var v="border-"+h,p=aE(v),g=e.get(p);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(RJ(f)),c!=null&&n.push("padding:"+dh(c).join("px ")+"px"),n.join(";")+";"}function BS(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&cG(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var kJ=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Ve.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;BS(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Ur(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=AJ(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=PJ+OJ(t,!this._firstShow,this._longHide)+NS(a[0],a[1],!0)+("border-color:"+Su(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Te(a)&&n.get("trigger")==="item"&&!vL(n)&&(s=DJ(n,i,a)),Te(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ge(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||Ve.node||!i.getDom())){var o=HS(a,i);this._ticket="";var s=a.dataByCoordSys,l=GJ(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=$J;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=dL(a,n),d=c.point[0],h=c.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(HS(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=hl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Sl(i,function(u){if(ut(u).dataIndex!=null)return s=u,!0;if(ut(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=_t(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=hl([n.tooltipOption],a),l=this._renderMode,u=[],f=Mu("section",{blocks:[],noHeader:!0}),c=[],d=new zv;R(r,function(y){R(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var w=uL(x,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),S=Mu("section",{header:w,noHeader:!zn(w),sortBlocks:!0,blocks:[]});f.blocks.push(S),R(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),E=C.dataIndexInside,A=T.getDataParams(E);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=D0(b.axis,{value:x}),A.axisValueLabel=w,A.marker=d.makeTooltipMarker("item",Su(A.color),l);var M=ex(T.formatTooltip(E,!0,null)),D=M.frag;if(D){var O=hl([T],a).get("valueFormatter");S.blocks.push(O?oe({valueFormatter:O},D):D)}M.text&&c.push(M.text),u.push(A)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,v=s.get("order"),p=ax(f,d,l,v,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` `:"
",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,d=u.getData(c),h=this._renderMode,v=r.positionDefault,p=hl([d.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new zv;m.marker=y.makeTooltipMarker("item",Su(m.color),h);var _=ex(u.formatTooltip(f,!1,c)),b=p.get("order"),x=p.get("valueFormatter"),w=_.frag,S=w?ax(x?oe({valueFormatter:x},w):w,y,h,b,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,S,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:d.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if(Te(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,d=hl(u,this._tooltipModel,c?{position:c}:null),h=d.get("content"),v=Math.random()+"",p=new zv;this._showOrMove(d,function(){var g=Ze(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(d)if(Te(d)){var g=r.ecModel.get("useUTC"),m=ge(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=sh(m.axisValue,h,g)),h=oE(h,i,!0)}else if(We(d)){var _=_t(function(b,x){b===this._ticket&&(c.setContent(x,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=d(i,a,_)}else h=d;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ge(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ge(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),We(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),ge(n))i=pt(n[0],u),a=pt(n[1],f);else if(De(n)){var p=n;p.width=c[0],p.height=c[1];var g=Ms(p,{width:u,height:f});i=g.x,a=g.y,d=null,h=null}else if(Te(n)&&l){var m=VJ(n,v,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=zJ(i,a,o,u,f,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=zS(d)?c[0]/2:d==="right"?c[0]:0),h&&(a-=zS(h)?c[1]/2:h==="bottom"?c[1]:0),vL(r)){var m=WJ(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&R(u,function(d,h){var v=c[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&R(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&R(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Ve.node||!n.getDom()||(Xg(this,"_updatePosition"),this._tooltipContent.dispose(),dm("itemTooltip",n))},t.type="tooltip",t}(bi);function hl(e,t,r){var n=t.ecModel,i;r?(i=new tr(r,n,n),i=new tr(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof tr&&(o=o.get("tooltip",!0)),Te(o)&&(o={formatter:o}),o&&(i=new tr(o,i,n)))}return i}function HS(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function zJ(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function WJ(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function VJ(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function zS(e){return e==="center"||e==="middle"}function GJ(e,t,r){var n=Vy(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Yu(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ut(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const UJ=HJ;function YJ(e){ia(hL),e.registerComponentModel(TJ),e.registerComponentView(UJ),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Sr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Sr)}var qJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(wt),jJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=je(r.get("textBaseline"),r.get("textVerticalAlign")),f=new fr({style:na(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),d=r.get("subtext"),h=new fr({style:na(s,{text:d,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!v&&!g,h.silent=!p&&!g,v&&f.on("click",function(){Nw(v,"_"+r.get("target"))}),p&&h.on("click",function(){Nw(p,"_"+r.get("subtarget"))}),ut(f).eventData=ut(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ms(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),m=a.getBoundingRect();var x=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var S=new Nt({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(S)}},t.type="title",t}(bi);function KJ(e){e.registerComponentModel(qJ),e.registerComponentView(jJ)}var XJ=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},ZJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),ge(n)&&R(n,function(a,o){Te(a)&&(a={type:a}),n[o]=at(a,XJ(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(wt);const hm=ZJ;var Ho=Dt,vm=R,nc=sn,QJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new nc),this.group.add(this._selectorGroup=new nc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=Ms(f,c,d),v=this.layoutInner(r,o,h,a,l,u),p=Ms(ft({width:v.width,height:v.height},f),c,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=SJ(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=Ge(),c=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),vm(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new nc;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),x=y.getVisual("style"),w=this._createItem(m,p,v,h,n,r,_,x,b,c,a);w.on("click",Ho(WS,p,null,a,d)).on("mouseover",Ho(pm,m.name,null,a,d)).on("mouseout",Ho(gm,m.name,null,a,d)),f.set(p,!0)}else i.eachRawSeries(function(S){if(!f.get(p)&&S.legendVisualProvider){var C=S.legendVisualProvider;if(!C.containName(p))return;var T=C.indexOfName(p),E=C.getItemVisual(T,"style"),A=C.getItemVisual(T,"legendIcon"),M=ro(E.fill);M&&M[3]===0&&(M[3]=.2,E=oe(oe({},E),{fill:Ny(M,"rgba")}));var D=this._createItem(S,p,v,h,n,r,{},E,A,c,a);D.on("click",Ho(WS,null,p,a,d)).on("mouseover",Ho(pm,null,p,a,d)).on("mouseout",Ho(gm,null,p,a,d)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();vm(r,function(u){var f=u.type,c=new fr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);i0(c,{normal:d,emphasis:h},{defaultText:u.title}),Fg(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=JJ(f,a,l,u,h,g,d),x=new nc,w=a.getModel("textStyle");if(We(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var S=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;x.add(eee({itemWidth:v,itemHeight:p,icon:f,iconRotate:S,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,T=s,E=o.get("formatter"),A=n;Te(E)&&E?A=E.replace("{name}",n??""):We(E)&&(A=E(n));var M=a.get("inactiveColor");x.add(new fr({style:na(w,{text:A,x:C,y:p/2,fill:g?w.getTextColor():M,align:T,verticalAlign:"middle"})}));var D=new Nt({shape:x.getBoundingRect(),invisible:!0}),O=a.getModel("tooltip");return O.get("show")&&r0({el:D,componentModel:o,itemName:n,itemTooltipOption:O.option}),x.add(D),x.eachChild(function(k){k.silent=!0}),D.silent=!c,this.getContentGroup().add(x),Fg(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Yl(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Yl("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[g]+v:c[p]+=d[g]+v,h[1-p]+=f[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+v+d[g],_[m]=Math.max(f[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(bi);function JJ(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),vm(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:tm(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function eee(e){var t=e.icon||"roundRect",r=w0(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function WS(e,t,r,n){gm(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),pm(e,t,r,n)}function yL(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var m=[0,0],y=[-v.x,-v.y],_=je(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[o]=p?i[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=x[s],c.setClipPath(new Nt({shape:w})),c.__rectSize=w[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(r);return S.pageIndex!=null&&Mr(f,{x:S.contentPosition[0],y:S.contentPosition[1]},p?r:null),this._updatePageInfoView(r,S),x},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",d=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Te(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=dp[o],l=hp[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],d=f.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=b(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=d;++g)_=b(f[g]),(!_&&y.e>m.s+a||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=b(f[g]),(!_||!x(y,_.s))&&m.i=S&&w.s<=S+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(_L);const oee=aee;function see(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function lee(e){ia(bL),e.registerComponentModel(iee),e.registerComponentView(oee),see(e)}function uee(e){ia(bL),ia(lee)}ia([nQ,zZ,qQ,pZ,KJ,YJ,uee,xJ]);function fee(e,t,r){const n=T0(document.getElementById(e),"macarons");n.showLoading();const i={title:{text:"Network Traffic",subtext:"today",left:"center"},tooltip:{trigger:"item",formatter:function(a){return ea.fileSize(a.data.value)+" ("+a.percent+"%)"}},legend:{orient:"vertical",left:"left",data:["Traffic In","Traffic Out"]},series:[{type:"pie",radius:"55%",center:["50%","60%"],data:[{value:t,name:"Traffic In"},{value:r,name:"Traffic Out"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};n.setOption(i),n.hideLoading()}function cee(e,t){const r=T0(document.getElementById(e),"macarons");r.showLoading();const n={title:{text:"Proxies",subtext:"now",left:"center"},tooltip:{trigger:"item",formatter:function(i){return String(i.data.value)}},legend:{orient:"vertical",left:"left",data:[]},series:[{type:"pie",radius:"55%",center:["50%","60%"],data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};t.proxy_type_count.tcp!=null&&t.proxy_type_count.tcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.tcp,name:"TCP"}),n.legend.data.push("TCP")),t.proxy_type_count.udp!=null&&t.proxy_type_count.udp!=0&&(n.series[0].data.push({value:t.proxy_type_count.udp,name:"UDP"}),n.legend.data.push("UDP")),t.proxy_type_count.http!=null&&t.proxy_type_count.http!=0&&(n.series[0].data.push({value:t.proxy_type_count.http,name:"HTTP"}),n.legend.data.push("HTTP")),t.proxy_type_count.https!=null&&t.proxy_type_count.https!=0&&(n.series[0].data.push({value:t.proxy_type_count.https,name:"HTTPS"}),n.legend.data.push("HTTPS")),t.proxy_type_count.stcp!=null&&t.proxy_type_count.stcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.stcp,name:"STCP"}),n.legend.data.push("STCP")),t.proxy_type_count.sudp!=null&&t.proxy_type_count.sudp!=0&&(n.series[0].data.push({value:t.proxy_type_count.sudp,name:"SUDP"}),n.legend.data.push("SUDP")),t.proxy_type_count.xtcp!=null&&t.proxy_type_count.xtcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.xtcp,name:"XTCP"}),n.legend.data.push("XTCP")),r.setOption(n),r.hideLoading()}function dee(e,t,r){const n={width:"600px",height:"400px"},i=T0(document.getElementById(e),"macarons",n);i.showLoading(),t=t.reverse(),r=r.reverse();let a=new Date;a=new Date(a.getFullYear(),a.getMonth(),a.getDate()-6);const o=[];for(let l=0;l<7;l++)o.push(a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate()),a=new Date(a.getFullYear(),a.getMonth(),a.getDate()+1);const s={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(l){let u="";l.length>0&&(u+=l[0].name+"
");for(const f of l){const c='';u+=c+f.seriesName+": "+ea.fileSize(f.value)+"
"}return u}},legend:{data:["Traffic In","Traffic Out"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:o}],yAxis:[{type:"value",axisLabel:{formatter:function(l){return ea.fileSize(l)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:r}]};i.setOption(s),i.hideLoading()}const US=ue({__name:"LongSpan",props:{content:null,length:null},setup(e){return(t,r)=>{const n=Hu;return K(),Se(yt,null,[ee(n,{content:e.content,placement:"top"},{default:Z(()=>[qt(se("span",null,Ae(e.content.slice(0,e.length))+"...",513),[[pi,e.content.length>e.length]])]),_:1},8,["content"]),qt(se("span",null,Ae(e.content),513),[[pi,e.content.length<30]])],64)}}}),hee={class:"source"},vee=se("div",{id:"traffic",style:{width:"400px",height:"250px","margin-bottom":"30px"}},null,-1),pee=se("div",{id:"proxies",style:{width:"400px",height:"250px"}},null,-1),gee=ue({__name:"ServerOverview",setup(e){let t=H({version:"",bind_port:0,bind_udp_port:0,kcp_bind_port:0,quic_bind_port:0,vhost_http_port:0,vhost_https_port:0,tcpmux_httpconnect_port:0,subdomain_host:"",max_pool_count:0,max_ports_per_client:"",allow_ports_str:"",tls_only:!1,heart_beat_timeout:0,client_counts:0,cur_conns:0,proxy_counts:0});return(()=>{fetch("../api/serverinfo",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value.version=n.version,t.value.bind_port=n.bind_port,t.value.bind_udp_port=n.bind_udp_port,t.value.kcp_bind_port=n.kcp_bind_port,t.value.quic_bind_port=n.quic_bind_port,t.value.vhost_http_port=n.vhost_http_port,t.value.vhost_https_port=n.vhost_https_port,t.value.tcpmux_httpconnect_port=n.tcpmux_httpconnect_port,t.value.subdomain_host=n.subdomain_host,t.value.max_pool_count=n.max_pool_count,t.value.max_ports_per_client=n.max_ports_per_client,t.value.max_ports_per_client=="0"&&(t.value.max_ports_per_client="no limit"),t.value.allow_ports_str=n.allow_ports_str,t.value.tls_only=n.tls_only,t.value.heart_beat_timeout=n.heart_beat_timeout,t.value.client_counts=n.client_counts,t.value.cur_conns=n.cur_conns,t.value.proxy_counts=0,n.proxy_type_count!=null&&(n.proxy_type_count.tcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.tcp),n.proxy_type_count.udp!=null&&(t.value.proxy_counts+=n.proxy_type_count.udp),n.proxy_type_count.http!=null&&(t.value.proxy_counts+=n.proxy_type_count.http),n.proxy_type_count.https!=null&&(t.value.proxy_counts+=n.proxy_type_count.https),n.proxy_type_count.stcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.stcp),n.proxy_type_count.sudp!=null&&(t.value.proxy_counts+=n.proxy_type_count.sudp),n.proxy_type_count.xtcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.xtcp)),fee("traffic",n.total_traffic_in,n.total_traffic_out),cee("proxies",n)}).catch(()=>{YM({showClose:!0,message:"Get server info from frps failed!",type:"warning"})})})(),(n,i)=>{const a=EM,o=AM,s=CM,l=RM;return K(),Se("div",null,[ee(l,null,{default:Z(()=>[ee(s,{md:12},{default:Z(()=>[se("div",hee,[ee(o,{"label-position":"left","label-width":"220px",class:"server_info"},{default:Z(()=>[ee(a,{label:"Version"},{default:Z(()=>[se("span",null,Ae(L(t).version),1)]),_:1}),ee(a,{label:"BindPort"},{default:Z(()=>[se("span",null,Ae(L(t).bind_port),1)]),_:1}),L(t).bind_udp_port!=0?(K(),xe(a,{key:0,label:"Bind UDP Port"},{default:Z(()=>[se("span",null,Ae(L(t).bind_udp_port),1)]),_:1})):Ye("",!0),L(t).kcp_bind_port!=0?(K(),xe(a,{key:1,label:"KCP Bind Port"},{default:Z(()=>[se("span",null,Ae(L(t).kcp_bind_port),1)]),_:1})):Ye("",!0),L(t).quic_bind_port!=0?(K(),xe(a,{key:2,label:"QUIC Bind Port"},{default:Z(()=>[se("span",null,Ae(L(t).quic_bind_port),1)]),_:1})):Ye("",!0),L(t).vhost_http_port!=0?(K(),xe(a,{key:3,label:"Http Port"},{default:Z(()=>[se("span",null,Ae(L(t).vhost_http_port),1)]),_:1})):Ye("",!0),L(t).vhost_https_port!=0?(K(),xe(a,{key:4,label:"Https Port"},{default:Z(()=>[se("span",null,Ae(L(t).vhost_https_port),1)]),_:1})):Ye("",!0),L(t).tcpmux_httpconnect_port!=0?(K(),xe(a,{key:5,label:"TCPMux HTTPConnect Port"},{default:Z(()=>[se("span",null,Ae(L(t).tcpmux_httpconnect_port),1)]),_:1})):Ye("",!0),L(t).subdomain_host!=""?(K(),xe(a,{key:6,label:"Subdomain Host"},{default:Z(()=>[ee(US,{content:L(t).subdomain_host,length:30},null,8,["content"])]),_:1})):Ye("",!0),ee(a,{label:"Max PoolCount"},{default:Z(()=>[se("span",null,Ae(L(t).max_pool_count),1)]),_:1}),ee(a,{label:"Max Ports Per Client"},{default:Z(()=>[se("span",null,Ae(L(t).max_ports_per_client),1)]),_:1}),L(t).allow_ports_str!=""?(K(),xe(a,{key:7,label:"Allow Ports"},{default:Z(()=>[ee(US,{content:L(t).allow_ports_str,length:30},null,8,["content"])]),_:1})):Ye("",!0),L(t).tls_only===!0?(K(),xe(a,{key:8,label:"TLS Only"},{default:Z(()=>[se("span",null,Ae(L(t).tls_only),1)]),_:1})):Ye("",!0),ee(a,{label:"HeartBeat Timeout"},{default:Z(()=>[se("span",null,Ae(L(t).heart_beat_timeout),1)]),_:1}),ee(a,{label:"Client Counts"},{default:Z(()=>[se("span",null,Ae(L(t).client_counts),1)]),_:1}),ee(a,{label:"Current Connections"},{default:Z(()=>[se("span",null,Ae(L(t).cur_conns),1)]),_:1}),ee(a,{label:"Proxy Counts"},{default:Z(()=>[se("span",null,Ae(L(t).proxy_counts),1)]),_:1})]),_:1})])]),_:1}),ee(s,{md:12},{default:Z(()=>[vee,pee]),_:1})]),_:1})])}}});class zs{constructor(t){Ft(this,"name");Ft(this,"type");Ft(this,"encryption");Ft(this,"compression");Ft(this,"conns");Ft(this,"traffic_in");Ft(this,"traffic_out");Ft(this,"last_start_time");Ft(this,"last_close_time");Ft(this,"status");Ft(this,"client_version");Ft(this,"addr");Ft(this,"port");Ft(this,"custom_domains");Ft(this,"host_header_rewrite");Ft(this,"locations");Ft(this,"subdomain");this.name=t.name,this.type="",t.conf!=null?(this.encryption=t.conf.use_encryption,this.compression=t.conf.use_compression):(this.encryption=!1,this.compression=!1),this.conns=t.cur_conns,this.traffic_in=t.today_traffic_in,this.traffic_out=t.today_traffic_out,this.last_start_time=t.last_start_time,this.last_close_time=t.last_close_time,this.status=t.status,this.client_version=t.client_version,this.addr="",this.port=0,this.custom_domains="",this.host_header_rewrite="",this.locations="",this.subdomain=""}}class mee extends zs{constructor(t){super(t),this.type="tcp",t.conf!=null?(this.addr=":"+t.conf.remote_port,this.port=t.conf.remote_port):(this.addr="",this.port=0)}}class yee extends zs{constructor(t){super(t),this.type="udp",t.conf!=null?(this.addr=":"+t.conf.remote_port,this.port=t.conf.remote_port):(this.addr="",this.port=0)}}class _ee extends zs{constructor(t,r,n){super(t),this.type="http",this.port=r,t.conf!=null?(this.custom_domains=t.conf.custom_domains,this.host_header_rewrite=t.conf.host_header_rewrite,this.locations=t.conf.locations,t.conf.subdomain!=""?this.subdomain=t.conf.subdomain+"."+n:this.subdomain=""):(this.custom_domains="",this.host_header_rewrite="",this.subdomain="",this.locations="")}}class bee extends zs{constructor(t,r,n){super(t),this.type="https",this.port=r,t.conf!=null?(this.custom_domains=t.conf.custom_domains,t.conf.subdomain!=""?this.subdomain=t.conf.subdomain+"."+n:this.subdomain=""):(this.custom_domains="",this.subdomain="")}}class wee extends zs{constructor(t){super(t),this.type="stcp"}}class xee extends zs{constructor(t){super(t),this.type="sudp"}}const See=["id"],Cee=ue({__name:"Traffic",props:{proxy_name:null},setup(e){const t=e;return(()=>{let n="../api/traffic/"+t.proxy_name;fetch(n,{credentials:"include"}).then(i=>i.json()).then(i=>{dee(t.proxy_name,i.traffic_in,i.traffic_out)}).catch(i=>{YM({showClose:!0,message:"Get traffic info failed!"+i,type:"warning"})})})(),(n,i)=>(K(),Se("div",{id:e.proxy_name,style:{width:"600px",height:"400px"}},null,8,See))}}),Tee=ue({__name:"ProxyViewExpand",props:{row:null,proxyType:null},setup(e){return(t,r)=>{const n=EM,i=AM;return e.proxyType==="http"||e.proxyType==="https"?(K(),xe(i,{key:0,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[se("span",null,Ae(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[se("span",null,Ae(e.row.type),1)]),_:1}),ee(n,{label:"Domains"},{default:Z(()=>[se("span",null,Ae(e.row.custom_domains),1)]),_:1}),ee(n,{label:"SubDomain"},{default:Z(()=>[se("span",null,Ae(e.row.subdomain),1)]),_:1}),ee(n,{label:"locations"},{default:Z(()=>[se("span",null,Ae(e.row.locations),1)]),_:1}),ee(n,{label:"HostRewrite"},{default:Z(()=>[se("span",null,Ae(e.row.host_header_rewrite),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[se("span",null,Ae(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[se("span",null,Ae(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[se("span",null,Ae(e.row.last_start_time),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[se("span",null,Ae(e.row.last_close_time),1)]),_:1})]),_:1})):(K(),xe(i,{key:1,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[se("span",null,Ae(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[se("span",null,Ae(e.row.type),1)]),_:1}),ee(n,{label:"Addr"},{default:Z(()=>[se("span",null,Ae(e.row.addr),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[se("span",null,Ae(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[se("span",null,Ae(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[se("span",null,Ae(e.row.last_start_time),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[se("span",null,Ae(e.row.last_close_time),1)]),_:1})]),_:1}))}}}),Ws=ue({__name:"ProxyView",props:{proxies:null,proxyType:null},setup(e){const t=(o,s)=>ea.fileSize(o.traffic_in),r=(o,s)=>ea.fileSize(o.traffic_out),n=H(),i=H(),a=()=>{var o,s;(s=(o=L(i).popoverTraffic)==null?void 0:o.delayHide)==null||s.call(o)};return(o,s)=>{const l=Cee,u=K6,f=LH,c=lW,d=fz,h=sW,v=Rm("click-outside");return K(),Se("div",null,[ee(h,{data:e.proxies,"default-sort":{prop:"name",order:"ascending"},style:{width:"100%"}},{default:Z(()=>[ee(c,{type:"expand"},{default:Z(p=>[ee(u,{ref_key:"popoverTraffic",ref:i,"virtual-ref":n.value,placement:"right",width:"600",style:{"margin-left":"0px"},trigger:"click","virtual-triggering":""},{default:Z(()=>[ee(l,{proxy_name:p.row.name},null,8,["proxy_name"])]),_:2},1032,["virtual-ref"]),qt((K(),xe(f,{ref_key:"buttonTraffic",ref:n,type:"primary",size:"large",name:p.row.name,style:{"margin-bottom":"10px"}},{default:Z(()=>[kt("Traffic Statistics ")]),_:2},1032,["name"])),[[v,a]]),ee(Tee,{row:p.row,proxyType:e.proxyType},null,8,["row","proxyType"])]),_:1}),ee(c,{label:"Name",prop:"name",sortable:""}),ee(c,{label:"Port",prop:"port",sortable:""}),ee(c,{label:"Connections",prop:"conns",sortable:""}),ee(c,{label:"Traffic In",prop:"traffic_in",formatter:t,sortable:""}),ee(c,{label:"Traffic Out",prop:"traffic_out",formatter:r,sortable:""}),ee(c,{label:"ClientVersion",prop:"client_version",sortable:""}),ee(c,{label:"Status",prop:"status",sortable:""},{default:Z(p=>[p.row.status==="online"?(K(),xe(d,{key:0,type:"success"},{default:Z(()=>[kt(Ae(p.row.status),1)]),_:2},1024)):(K(),xe(d,{key:1,type:"danger"},{default:Z(()=>[kt(Ae(p.row.status),1)]),_:2},1024))]),_:1})]),_:1},8,["data"])])}}}),Mee=ue({__name:"ProxiesTCP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/tcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new mee(i))})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"tcp"},null,8,["proxies"]))}}),Aee=ue({__name:"ProxiesUDP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/udp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new yee(i))})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"udp"},null,8,["proxies"]))}}),Eee=ue({__name:"ProxiesHTTP",setup(e){let t=H([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhost_http_port,i=a.subdomain_host,!(n==null||n==0)&&fetch("../api/proxy/http",{credentials:"include"}).then(o=>o.json()).then(o=>{for(let s of o.proxies)t.value.push(new _ee(s,n,i))})})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"http"},null,8,["proxies"]))}}),Pee=ue({__name:"ProxiesHTTPS",setup(e){let t=H([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhost_https_port,i=a.subdomain_host,!(n==null||n==0)&&fetch("../api/proxy/https",{credentials:"include"}).then(o=>o.json()).then(o=>{for(let s of o.proxies)t.value.push(new bee(s,n,i))})})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"https"},null,8,["proxies"]))}}),Lee=ue({__name:"ProxiesSTCP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/stcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new wee(i))})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"stcp"},null,8,["proxies"]))}}),Dee=ue({__name:"ProxiesSUDP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/sudp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new xee(i))})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"sudp"},null,8,["proxies"]))}}),Iee=DV({history:qW(),routes:[{path:"/",name:"ServerOverview",component:gee},{path:"/proxies/tcp",name:"ProxiesTCP",component:Mee},{path:"/proxies/udp",name:"ProxiesUDP",component:Aee},{path:"/proxies/http",name:"ProxiesHTTP",component:Eee},{path:"/proxies/https",name:"ProxiesHTTPS",component:Pee},{path:"/proxies/stcp",name:"ProxiesSTCP",component:Lee},{path:"/proxies/sudp",name:"ProxiesSUDP",component:Dee}]}),wL=tR(EW);wL.use(Iee);wL.mount("#app")});export default Ree();