Repository: fatedier/frp (language: go)

Issue:
/api/proxy/tcp `{"proxies":[]}`
### Bug Description

`/api/proxy/*` 都没有数据

### frpc Version

0.52.0

### frps Version

0.52.0

### System Architecture

linux/amd64

### Configurations

```json
{
 "webServer": {
  "addr": "::1",
  "port": 7501,
  "user": "●●●●",
  "password": "●●●●"
 }
}
```

### Logs

```
2023/10/11 00:56:10 [I] [dashboard_api.go:192] Http request: [/api/proxy/tcp]
2023/10/11 00:56:10 [W] [dashboard_api.go:214] unmarshal proxy [●●●●] conf info error: unknown plugin type:
2023/10/11 00:56:10 [I] [dashboard_api.go:186] Http response [/api/proxy/tcp]: code [200]
```

### Steps to reproduce

1. `curl -s ●●●●:●●●●@[::1]:7501/api/serverinfo | jq .proxy_type_count`
```json
{
  "https": 3,
  "tcp": 12,
  "udp": 3,
  "xtcp": 8
}
```
2. `curl -s ●●●●:●●●●@[::1]:7501/api/proxy/tcp | jq .`
```json
{
  "proxies": []
}
```


### Affected area

- [ ] Docs
- [ ] Installation
- [ ] Performance and Scalability
- [ ] Security
- [ ] User Experience
- [ ] Test and Release
- [X] Developer Infrastructure
- [ ] Client Plugin
- [ ] Server Plugin
- [X] Extensions
- [ ] Others


Discussion / hints:
I have the same issue as you

Fix patch:
diff --git a/Release.md b/Release.md
index 3d164f73f43..b5f39eec02d 100644
--- a/Release.md
+++ b/Release.md
@@ -1,3 +1,5 @@
 ### Fixes
 
 * `transport.tls.disableCustomTLSFirstByte` doesn't have any effect.
+* The Server API did not return the data correctly.
+* The Dashboard is unable to display data.
diff --git a/assets/frps/static/index-ea3edf22.js b/assets/frps/static/index-9465253b.js
similarity index 76%
rename from assets/frps/static/index-ea3edf22.js
rename to assets/frps/static/index-9465253b.js
index 206292caf46..c2f4e63ddc1 100644
--- a/assets/frps/static/index-ea3edf22.js
+++ b/assets/frps/static/index-9465253b.js
@@ -1,4 +1,4 @@
-var fD=Object.defineProperty;var dD=(e,t,r)=>t in e?fD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var hD=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Wt=(e,t,r)=>(dD(e,typeof t!="symbol"?t+"":t,r),r);var Tre=hD((Nr,Fr)=>{(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 Em(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}function St(e){if(be(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=He(n)?mD(n):St(n);if(i)for(const a in i)t[a]=i[a]}return t}else{if(He(e))return e;if(Xe(e))return e}}const vD=/;(?![^(]*\))/g,pD=/:([^]+)/,gD=/\/\*.*?\*\//gs;function mD(e){const t={};return e.replace(gD,"").split(vD).forEach(r=>{if(r){const n=r.split(pD);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ue(e){let t="";if(He(e))t=e;else if(be(e))for(let r=0;r<e.length;r++){const n=ue(e[r]);n&&(t+=n+" ")}else if(Xe(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const yD="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_D=Em(yD);function vC(e){return!!e||e===""}function bD(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Od(e[n],t[n]);return r}function Od(e,t){if(e===t)return!0;let r=K0(e),n=K0(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=tu(e),n=tu(t),r||n)return e===t;if(r=be(e),n=be(t),r||n)return r&&n?bD(e,t):!1;if(r=Xe(e),n=Xe(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Od(e[o],t[o]))return!1}}return String(e)===String(t)}function pC(e,t){return e.findIndex(r=>Od(r,t))}const Me=e=>He(e)?e:e==null?"":be(e)||Xe(e)&&(e.toString===mC||!De(e.toString))?JSON.stringify(e,gC,2):String(e),gC=(e,t)=>t&&t.__v_isRef?gC(e,t.value):is(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:kd(t)?{[`Set(${t.size})`]:[...t.values()]}:Xe(t)&&!be(t)&&!yC(t)?String(t):t,yt={},ns=[],ur=()=>{},wD=()=>!1,xD=/^on[^a-z]/,Rd=e=>xD.test(e),Pm=e=>e.startsWith("onUpdate:"),Gt=Object.assign,Lm=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},SD=Object.prototype.hasOwnProperty,We=(e,t)=>SD.call(e,t),be=Array.isArray,is=e=>Bu(e)==="[object Map]",kd=e=>Bu(e)==="[object Set]",K0=e=>Bu(e)==="[object Date]",De=e=>typeof e=="function",He=e=>typeof e=="string",tu=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",jf=e=>Xe(e)&&De(e.then)&&De(e.catch),mC=Object.prototype.toString,Bu=e=>mC.call(e),CD=e=>Bu(e).slice(8,-1),yC=e=>Bu(e)==="[object Object]",Dm=e=>He(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mf=Em(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nd=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},TD=/-(\w)/g,An=Nd(e=>e.replace(TD,(t,r)=>r?r.toUpperCase():"")),MD=/\B([A-Z])/g,xo=Nd(e=>e.replace(MD,"-$1").toLowerCase()),Fd=Nd(e=>e.charAt(0).toUpperCase()+e.slice(1)),yf=Nd(e=>e?`on${Fd(e)}`:""),ru=(e,t)=>!Object.is(e,t),_f=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Yf=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},AD=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ED=e=>{const t=He(e)?Number(e):NaN;return isNaN(t)?e:t};let X0;const PD=()=>X0||(X0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Or;class LD{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Or,!t&&Or&&(this.index=(Or.scopes||(Or.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Or;try{return Or=this,t()}finally{Or=r}}}on(){Or=this}off(){Or=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function DD(e,t=Or){t&&t.active&&t.effects.push(e)}function _C(){return Or}function ID(e){Or&&Or.cleanups.push(e)}const Im=e=>{const t=new Set(e);return t.w=0,t.n=0,t},bC=e=>(e.w&ea)>0,wC=e=>(e.n&ea)>0,OD=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ea},RD=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const i=t[n];bC(i)&&!wC(i)?i.delete(e):t[r++]=i,i.w&=~ea,i.n&=~ea}t.length=r}},qf=new WeakMap;let _l=0,ea=1;const Sp=30;let bn;const no=Symbol(""),Cp=Symbol("");class Om{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,DD(this,n)}run(){if(!this.active)return this.fn();let t=bn,r=Xi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=bn,bn=this,Xi=!0,ea=1<<++_l,_l<=Sp?OD(this):Z0(this),this.fn()}finally{_l<=Sp&&RD(this),ea=1<<--_l,bn=this.parent,Xi=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){bn===this?this.deferStop=!0:this.active&&(Z0(this),this.onStop&&this.onStop(),this.active=!1)}}function Z0(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let Xi=!0;const xC=[];function Os(){xC.push(Xi),Xi=!1}function Rs(){const e=xC.pop();Xi=e===void 0?!0:e}function Mr(e,t,r){if(Xi&&bn){let n=qf.get(e);n||qf.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=Im()),SC(i)}}function SC(e,t){let r=!1;_l<=Sp?wC(e)||(e.n|=ea,r=!bC(e)):r=!e.has(bn),r&&(e.add(bn),bn.deps.push(e))}function gi(e,t,r,n,i,a){const o=qf.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&be(e)){const l=Number(n);o.forEach((u,c)=>{(c==="length"||c>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":be(e)?Dm(r)&&s.push(o.get("length")):(s.push(o.get(no)),is(e)&&s.push(o.get(Cp)));break;case"delete":be(e)||(s.push(o.get(no)),is(e)&&s.push(o.get(Cp)));break;case"set":is(e)&&s.push(o.get(no));break}if(s.length===1)s[0]&&Tp(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);Tp(Im(l))}}function Tp(e,t){const r=be(e)?e:[...e];for(const n of r)n.computed&&Q0(n);for(const n of r)n.computed||Q0(n)}function Q0(e,t){(e!==bn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function kD(e,t){var r;return(r=qf.get(e))===null||r===void 0?void 0:r.get(t)}const ND=Em("__proto__,__v_isRef,__isVue"),CC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tu)),FD=Rm(),BD=Rm(!1,!0),$D=Rm(!0),J0=HD();function HD(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Ke(this);for(let a=0,o=this.length;a<o;a++)Mr(n,"get",a+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(Ke)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Os();const n=Ke(this)[t].apply(this,r);return Rs(),n}}),e}function zD(e){const t=Ke(this);return Mr(t,"has",e),t.hasOwnProperty(e)}function Rm(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?nI:PC:t?EC:AC).get(n))return n;const o=be(n);if(!e){if(o&&We(J0,i))return Reflect.get(J0,i,a);if(i==="hasOwnProperty")return zD}const s=Reflect.get(n,i,a);return(tu(i)?CC.has(i):ND(i))||(e||Mr(n,"get",i),t)?s:Ct(s)?o&&Dm(i)?s:s.value:Xe(s)?e?$u(s):fn(s):s}}const WD=TC(),VD=TC(!0);function TC(e=!1){return function(r,n,i,a){let o=r[n];if(vs(o)&&Ct(o)&&!Ct(i))return!1;if(!e&&(!Kf(i)&&!vs(i)&&(o=Ke(o),i=Ke(i)),!be(r)&&Ct(o)&&!Ct(i)))return o.value=i,!0;const s=be(r)&&Dm(n)?Number(n)<r.length:We(r,n),l=Reflect.set(r,n,i,a);return r===Ke(a)&&(s?ru(i,o)&&gi(r,"set",n,i):gi(r,"add",n,i)),l}}function GD(e,t){const r=We(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&gi(e,"delete",t,void 0),n}function UD(e,t){const r=Reflect.has(e,t);return(!tu(t)||!CC.has(t))&&Mr(e,"has",t),r}function jD(e){return Mr(e,"iterate",be(e)?"length":no),Reflect.ownKeys(e)}const MC={get:FD,set:WD,deleteProperty:GD,has:UD,ownKeys:jD},YD={get:$D,set(e,t){return!0},deleteProperty(e,t){return!0}},qD=Gt({},MC,{get:BD,set:VD}),km=e=>e,Bd=e=>Reflect.getPrototypeOf(e);function uc(e,t,r=!1,n=!1){e=e.__v_raw;const i=Ke(e),a=Ke(t);r||(t!==a&&Mr(i,"get",t),Mr(i,"get",a));const{has:o}=Bd(i),s=n?km:r?Bm:nu;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 cc(e,t=!1){const r=this.__v_raw,n=Ke(r),i=Ke(e);return t||(e!==i&&Mr(n,"has",e),Mr(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function fc(e,t=!1){return e=e.__v_raw,!t&&Mr(Ke(e),"iterate",no),Reflect.get(e,"size",e)}function e_(e){e=Ke(e);const t=Ke(this);return Bd(t).has.call(t,e)||(t.add(e),gi(t,"add",e,e)),this}function t_(e,t){t=Ke(t);const r=Ke(this),{has:n,get:i}=Bd(r);let a=n.call(r,e);a||(e=Ke(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?ru(t,o)&&gi(r,"set",e,t):gi(r,"add",e,t),this}function r_(e){const t=Ke(this),{has:r,get:n}=Bd(t);let i=r.call(t,e);i||(e=Ke(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&gi(t,"delete",e,void 0),a}function n_(){const e=Ke(this),t=e.size!==0,r=e.clear();return t&&gi(e,"clear",void 0,void 0),r}function dc(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Ke(o),l=t?km:e?Bm:nu;return!e&&Mr(s,"iterate",no),o.forEach((u,c)=>n.call(i,l(u),l(c),a))}}function hc(e,t,r){return function(...n){const i=this.__v_raw,a=Ke(i),o=is(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?km:t?Bm:nu;return!t&&Mr(a,"iterate",l?Cp:no),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Pi(e){return function(...t){return e==="delete"?!1:this}}function KD(){const e={get(a){return uc(this,a)},get size(){return fc(this)},has:cc,add:e_,set:t_,delete:r_,clear:n_,forEach:dc(!1,!1)},t={get(a){return uc(this,a,!1,!0)},get size(){return fc(this)},has:cc,add:e_,set:t_,delete:r_,clear:n_,forEach:dc(!1,!0)},r={get(a){return uc(this,a,!0)},get size(){return fc(this,!0)},has(a){return cc.call(this,a,!0)},add:Pi("add"),set:Pi("set"),delete:Pi("delete"),clear:Pi("clear"),forEach:dc(!0,!1)},n={get(a){return uc(this,a,!0,!0)},get size(){return fc(this,!0)},has(a){return cc.call(this,a,!0)},add:Pi("add"),set:Pi("set"),delete:Pi("delete"),clear:Pi("clear"),forEach:dc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=hc(a,!1,!1),r[a]=hc(a,!0,!1),t[a]=hc(a,!1,!0),n[a]=hc(a,!0,!0)}),[e,r,t,n]}const[XD,ZD,QD,JD]=KD();function Nm(e,t){const r=t?e?JD:QD:e?ZD:XD;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(We(r,i)&&i in n?r:n,i,a)}const eI={get:Nm(!1,!1)},tI={get:Nm(!1,!0)},rI={get:Nm(!0,!1)},AC=new WeakMap,EC=new WeakMap,PC=new WeakMap,nI=new WeakMap;function iI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aI(e){return e.__v_skip||!Object.isExtensible(e)?0:iI(CD(e))}function fn(e){return vs(e)?e:Fm(e,!1,MC,eI,AC)}function LC(e){return Fm(e,!1,qD,tI,EC)}function $u(e){return Fm(e,!0,YD,rI,PC)}function Fm(e,t,r,n,i){if(!Xe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=aI(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function as(e){return vs(e)?as(e.__v_raw):!!(e&&e.__v_isReactive)}function vs(e){return!!(e&&e.__v_isReadonly)}function Kf(e){return!!(e&&e.__v_isShallow)}function DC(e){return as(e)||vs(e)}function Ke(e){const t=e&&e.__v_raw;return t?Ke(t):e}function IC(e){return Yf(e,"__v_skip",!0),e}const nu=e=>Xe(e)?fn(e):e,Bm=e=>Xe(e)?$u(e):e;function OC(e){Xi&&bn&&(e=Ke(e),SC(e.dep||(e.dep=Im())))}function RC(e,t){e=Ke(e);const r=e.dep;r&&Tp(r)}function Ct(e){return!!(e&&e.__v_isRef===!0)}function B(e){return kC(e,!1)}function $m(e){return kC(e,!0)}function kC(e,t){return Ct(e)?e:new oI(e,t)}class oI{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Ke(t),this._value=r?t:nu(t)}get value(){return OC(this),this._value}set value(t){const r=this.__v_isShallow||Kf(t)||vs(t);t=r?t:Ke(t),ru(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:nu(t),RC(this))}}function E(e){return Ct(e)?e.value:e}const sI={get:(e,t,r)=>E(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Ct(i)&&!Ct(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function NC(e){return as(e)?e:new Proxy(e,sI)}function $d(e){const t=be(e)?new Array(e.length):{};for(const r in e)t[r]=tn(e,r);return t}class lI{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}get dep(){return kD(Ke(this._object),this._key)}}function tn(e,t,r){const n=e[t];return Ct(n)?n:new lI(e,t,r)}var FC;class uI{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[FC]=!1,this._dirty=!0,this.effect=new Om(t,()=>{this._dirty||(this._dirty=!0,RC(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Ke(this);return OC(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}FC="__v_isReadonly";function cI(e,t,r=!1){let n,i;const a=De(e);return a?(n=e,i=ur):(n=e.get,i=e.set),new uI(n,i,a||!i,r)}function fI(e,...t){}function Zi(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Hd(a,t,r)}return i}function rn(e,t,r,n){if(De(e)){const a=Zi(e,t,r,n);return a&&jf(a)&&a.catch(o=>{Hd(o,t,r)}),a}const i=[];for(let a=0;a<e.length;a++)i.push(rn(e[a],t,r,n));return i}function Hd(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=r;for(;a;){const u=a.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){Zi(l,null,10,[e,o,s]);return}}dI(e,r,i,n)}function dI(e,t,r,n=!0){console.error(e)}let iu=!1,Mp=!1;const tr=[];let $n=0;const os=[];let ci=null,Ga=0;const BC=Promise.resolve();let Hm=null;function Ft(e){const t=Hm||BC;return e?t.then(this?e.bind(this):e):t}function hI(e){let t=$n+1,r=tr.length;for(;t<r;){const n=t+r>>>1;au(tr[n])<e?t=n+1:r=n}return t}function zm(e){(!tr.length||!tr.includes(e,iu&&e.allowRecurse?$n+1:$n))&&(e.id==null?tr.push(e):tr.splice(hI(e.id),0,e),$C())}function $C(){!iu&&!Mp&&(Mp=!0,Hm=BC.then(zC))}function vI(e){const t=tr.indexOf(e);t>$n&&tr.splice(t,1)}function pI(e){be(e)?os.push(...e):(!ci||!ci.includes(e,e.allowRecurse?Ga+1:Ga))&&os.push(e),$C()}function i_(e,t=iu?$n+1:0){for(;t<tr.length;t++){const r=tr[t];r&&r.pre&&(tr.splice(t,1),t--,r())}}function HC(e){if(os.length){const t=[...new Set(os)];if(os.length=0,ci){ci.push(...t);return}for(ci=t,ci.sort((r,n)=>au(r)-au(n)),Ga=0;Ga<ci.length;Ga++)ci[Ga]();ci=null,Ga=0}}const au=e=>e.id==null?1/0:e.id,gI=(e,t)=>{const r=au(e)-au(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function zC(e){Mp=!1,iu=!0,tr.sort(gI);const t=ur;try{for($n=0;$n<tr.length;$n++){const r=tr[$n];r&&r.active!==!1&&Zi(r,null,14)}}finally{$n=0,tr.length=0,HC(),iu=!1,Hm=null,(tr.length||os.length)&&zC()}}function mI(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||yt;let i=r;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in n){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=n[c]||yt;d&&(i=r.map(h=>He(h)?h.trim():h)),f&&(i=r.map(AD))}let s,l=n[s=yf(t)]||n[s=yf(An(t))];!l&&a&&(l=n[s=yf(xo(t))]),l&&rn(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,rn(u,e,6,i)}}function WC(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(!De(e)){const l=u=>{const c=WC(u,t,!0);c&&(s=!0,Gt(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Xe(e)&&n.set(e,null),null):(be(a)?a.forEach(l=>o[l]=null):Gt(o,a),Xe(e)&&n.set(e,o),o)}function zd(e,t){return!e||!Rd(t)?!1:(t=t.slice(2).replace(/Once$/,""),We(e,t[0].toLowerCase()+t.slice(1))||We(e,xo(t))||We(e,t))}let qt=null,VC=null;function Xf(e){const t=qt;return qt=e,VC=e&&e.type.__scopeId||null,t}function Z(e,t=qt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&g_(-1);const a=Xf(t);let o;try{o=e(...i)}finally{Xf(a),n._d&&g_(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Ih(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:v,inheritAttrs:p}=e;let g,m;const y=Xf(e);try{if(r.shapeFlag&4){const b=i||n;g=Bn(c.call(b,b,f,a,h,d,v)),m=l}else{const b=t;g=Bn(b.length>1?b(a,{attrs:l,slots:s,emit:u}):b(a,null)),m=t.props?l:yI(l)}}catch(b){Dl.length=0,Hd(b,e,1),g=ee(xr)}let _=g;if(m&&p!==!1){const b=Object.keys(m),{shapeFlag:x}=_;b.length&&x&7&&(o&&b.some(Pm)&&(m=_I(m,o)),_=mi(_,m))}return r.dirs&&(_=mi(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,Xf(y),g}const yI=e=>{let t;for(const r in e)(r==="class"||r==="style"||Rd(r))&&((t||(t={}))[r]=e[r]);return t},_I=(e,t)=>{const r={};for(const n in e)(!Pm(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function bI(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?a_(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==n[d]&&!zd(u,d))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?a_(n,o,u):!0:!!o;return!1}function a_(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(t[a]!==e[a]&&!zd(r,a))return!0}return!1}function wI({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const xI=e=>e.__isSuspense;function SI(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):pI(e)}function At(e,t){if(It){let r=It.provides;const n=It.parent&&It.parent.provides;n===r&&(r=It.provides=Object.create(n)),r[e]=t}}function Ee(e,t,r=!1){const n=It||qt;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&&De(t)?t.call(n.proxy):t}}function io(e,t){return Wm(e,null,t)}const vc={};function Se(e,t,r){return Wm(e,t,r)}function Wm(e,t,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=yt){const s=_C()===(It==null?void 0:It.scope)?It:null;let l,u=!1,c=!1;if(Ct(e)?(l=()=>e.value,u=Kf(e)):as(e)?(l=()=>e,n=!0):be(e)?(c=!0,u=e.some(_=>as(_)||Kf(_)),l=()=>e.map(_=>{if(Ct(_))return _.value;if(as(_))return Xa(_);if(De(_))return Zi(_,s,2)})):De(e)?t?l=()=>Zi(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return f&&f(),rn(e,s,3,[d])}:l=ur,t&&n){const _=l;l=()=>Xa(_())}let f,d=_=>{f=m.onStop=()=>{Zi(_,s,4)}},h;if(uu)if(d=ur,t?r&&rn(t,s,3,[l(),c?[]:void 0,d]):l(),i==="sync"){const _=vO();h=_.__watcherHandles||(_.__watcherHandles=[])}else return ur;let v=c?new Array(e.length).fill(vc):vc;const p=()=>{if(m.active)if(t){const _=m.run();(n||u||(c?_.some((b,x)=>ru(b,v[x])):ru(_,v)))&&(f&&f(),rn(t,s,3,[_,v===vc?void 0:c&&v[0]===vc?[]:v,d]),v=_)}else m.run()};p.allowRecurse=!!t;let g;i==="sync"?g=p:i==="post"?g=()=>yr(p,s&&s.suspense):(p.pre=!0,s&&(p.id=s.uid),g=()=>zm(p));const m=new Om(l,g);t?r?p():v=m.run():i==="post"?yr(m.run.bind(m),s&&s.suspense):m.run();const y=()=>{m.stop(),s&&s.scope&&Lm(s.scope.effects,m)};return h&&h.push(y),y}function CI(e,t,r){const n=this.proxy,i=He(e)?e.includes(".")?GC(n,e):()=>n[e]:e.bind(n,n);let a;De(t)?a=t:(a=t.handler,r=t);const o=It;ps(this);const s=Wm(i,a.bind(n),r);return o?ps(o):ao(),s}function GC(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function Xa(e,t){if(!Xe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ct(e))Xa(e.value,t);else if(be(e))for(let r=0;r<e.length;r++)Xa(e[r],t);else if(kd(e)||is(e))e.forEach(r=>{Xa(r,t)});else if(yC(e))for(const r in e)Xa(e[r],t);return e}function UC(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return wt(()=>{e.isMounted=!0}),Xt(()=>{e.isUnmounting=!0}),e}const Wr=[Function,Array],TI={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wr,onEnter:Wr,onAfterEnter:Wr,onEnterCancelled:Wr,onBeforeLeave:Wr,onLeave:Wr,onAfterLeave:Wr,onLeaveCancelled:Wr,onBeforeAppear:Wr,onAppear:Wr,onAfterAppear:Wr,onAppearCancelled:Wr},setup(e,{slots:t}){const r=ct(),n=UC();let i;return()=>{const a=t.default&&Vm(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const p of a)if(p.type!==xr){o=p;break}}const s=Ke(e),{mode:l}=s;if(n.isLeaving)return Oh(o);const u=o_(o);if(!u)return Oh(o);const c=ou(u,s,n,r);su(u,c);const f=r.subTree,d=f&&o_(f);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!==xr&&(!Ua(u,d)||h)){const p=ou(d,s,n,r);if(su(d,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Oh(o);l==="in-out"&&u.type!==xr&&(p.delayLeave=(g,m,y)=>{const _=YC(n,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=y})}return o}}},jC=TI;function YC(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 ou(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),b=YC(r,e),x=(C,M)=>{C&&rn(C,n,9,M)},w=(C,M)=>{const P=M[1];x(C,M),be(C)?C.every(A=>A.length<=1)&&P():C.length<=1&&P()},S={mode:a,persisted:o,beforeEnter(C){let M=s;if(!r.isMounted)if(i)M=p||s;else return;C._leaveCb&&C._leaveCb(!0);const P=b[_];P&&Ua(e,P)&&P.el._leaveCb&&P.el._leaveCb(),x(M,[C])},enter(C){let M=l,P=u,A=c;if(!r.isMounted)if(i)M=g||l,P=m||u,A=y||c;else return;let T=!1;const D=C._enterCb=N=>{T||(T=!0,N?x(A,[C]):x(P,[C]),S.delayedLeave&&S.delayedLeave(),C._enterCb=void 0)};M?w(M,[C,D]):D()},leave(C,M){const P=String(e.key);if(C._enterCb&&C._enterCb(!0),r.isUnmounting)return M();x(f,[C]);let A=!1;const T=C._leaveCb=D=>{A||(A=!0,M(),D?x(v,[C]):x(h,[C]),C._leaveCb=void 0,b[P]===e&&delete b[P])};b[P]=e,d?w(d,[C,T]):T()},clone(C){return ou(C,t,r,n)}};return S}function Oh(e){if(Wd(e))return e=mi(e),e.children=null,e}function o_(e){return Wd(e)?e.children?e.children[0]:void 0:e}function su(e,t){e.shapeFlag&6&&e.component?su(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 Vm(e,t=!1,r){let n=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===pt?(o.patchFlag&128&&i++,n=n.concat(Vm(o.children,t,s))):(t||o.type!==xr)&&n.push(s!=null?mi(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function ce(e){return De(e)?{setup:e,name:e.name}:e}const El=e=>!!e.type.__asyncLoader,Wd=e=>e.type.__isKeepAlive;function MI(e,t){KC(e,"a",t)}function qC(e,t){KC(e,"da",t)}function KC(e,t,r=It){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Vd(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Wd(i.parent.vnode)&&AI(n,t,r,i),i=i.parent}}function AI(e,t,r,n){const i=Vd(t,e,n,!0);ks(()=>{Lm(n[t],i)},r)}function Vd(e,t,r=It,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Os(),ps(r);const s=rn(t,r,e,o);return ao(),Rs(),s});return n?i.unshift(a):i.push(a),a}}const Si=e=>(t,r=It)=>(!uu||e==="sp")&&Vd(e,(...n)=>t(...n),r),Gd=Si("bm"),wt=Si("m"),EI=Si("bu"),Hu=Si("u"),Xt=Si("bum"),ks=Si("um"),PI=Si("sp"),LI=Si("rtg"),DI=Si("rtc");function II(e,t=It){Vd("ec",e,t)}function nr(e,t){const r=qt;if(r===null)return e;const n=jd(r)||r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,s,l,u=yt]=t[a];o&&(De(o)&&(o={mounted:o,updated:o}),o.deep&&Xa(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function ha(e,t,r,n){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(Os(),rn(l,r,8,[e.el,s,e,t]),Rs())}}const Gm="components",OI="directives";function _r(e,t){return Um(Gm,e,!0,t)||e}const XC=Symbol();function nn(e){return He(e)?Um(Gm,e,!1)||e:e||XC}function ZC(e){return Um(OI,e)}function Um(e,t,r=!0,n=!1){const i=qt||It;if(i){const a=i.type;if(e===Gm){const s=cO(a,!1);if(s&&(s===t||s===An(t)||s===Fd(An(t))))return a}const o=s_(i[e]||a[e],t)||s_(i.appContext[e],t);return!o&&n?a:o}}function s_(e,t){return e&&(e[t]||e[An(t)]||e[Fd(An(t))])}function l_(e,t,r,n){let i;const a=r&&r[n];if(be(e)||He(e)){i=new Array(e.length);for(let o=0,s=e.length;o<s;o++)i[o]=t(e[o],o,void 0,a&&a[o])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a&&a[o])}else if(Xe(e))if(e[Symbol.iterator])i=Array.from(e,(o,s)=>t(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;s<l;s++){const u=o[s];i[s]=t(e[u],u,s,a&&a[s])}}else i=[];return r&&(r[n]=i),i}function $e(e,t,r={},n,i){if(qt.isCE||qt.parent&&El(qt.parent)&&qt.parent.isCE)return t!=="default"&&(r.name=t),ee("slot",r,n&&n());let a=e[t];a&&a._c&&(a._d=!1),Y();const o=a&&QC(a(r)),s=_e(pt,{key:r.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function QC(e){return e.some(t=>ta(t)?!(t.type===xr||t.type===pt&&!QC(t.children)):!0)?e:null}function RI(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:yf(n)]=e[n];return r}const Ap=e=>e?uT(e)?jd(e)||e.proxy:Ap(e.parent):null,Pl=Gt(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=>Ap(e.parent),$root:e=>Ap(e.root),$emit:e=>e.emit,$options:e=>jm(e),$forceUpdate:e=>e.f||(e.f=()=>zm(e.update)),$nextTick:e=>e.n||(e.n=Ft.bind(e.proxy)),$watch:e=>CI.bind(e)}),Rh=(e,t)=>e!==yt&&!e.__isScriptSetup&&We(e,t),kI={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(Rh(n,t))return o[t]=1,n[t];if(i!==yt&&We(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&We(u,t))return o[t]=3,a[t];if(r!==yt&&We(r,t))return o[t]=4,r[t];Ep&&(o[t]=0)}}const c=Pl[t];let f,d;if(c)return t==="$attrs"&&Mr(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==yt&&We(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,We(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Rh(i,t)?(i[t]=r,!0):n!==yt&&We(n,t)?(n[t]=r,!0):We(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!==yt&&We(e,o)||Rh(t,o)||(s=a[0])&&We(s,o)||We(n,o)||We(Pl,o)||We(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:We(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let Ep=!0;function NI(e){const t=jm(e),r=e.proxy,n=e.ctx;Ep=!1,t.beforeCreate&&u_(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,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:M,expose:P,inheritAttrs:A,components:T,directives:D,filters:N}=t;if(u&&FI(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const G in o){const F=o[G];De(F)&&(n[G]=F.bind(r))}if(i){const G=i.call(r,r);Xe(G)&&(e.data=fn(G))}if(Ep=!0,a)for(const G in a){const F=a[G],R=De(F)?F.bind(r,r):De(F.get)?F.get.bind(r,r):ur,j=!De(F)&&De(F.set)?F.set.bind(r):ur,re=k({get:R,set:j});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>re.value,set:oe=>re.value=oe})}if(s)for(const G in s)JC(s[G],n,r,G);if(l){const G=De(l)?l.call(r):l;Reflect.ownKeys(G).forEach(F=>{At(F,G[F])})}c&&u_(c,e,"c");function $(G,F){be(F)?F.forEach(R=>G(R.bind(r))):F&&G(F.bind(r))}if($(Gd,f),$(wt,d),$(EI,h),$(Hu,v),$(MI,p),$(qC,g),$(II,C),$(DI,w),$(LI,S),$(Xt,y),$(ks,b),$(PI,M),be(P))if(P.length){const G=e.exposed||(e.exposed={});P.forEach(F=>{Object.defineProperty(G,F,{get:()=>r[F],set:R=>r[F]=R})})}else e.exposed||(e.exposed={});x&&e.render===ur&&(e.render=x),A!=null&&(e.inheritAttrs=A),T&&(e.components=T),D&&(e.directives=D)}function FI(e,t,r=ur,n=!1){be(e)&&(e=Pp(e));for(const i in e){const a=e[i];let o;Xe(a)?"default"in a?o=Ee(a.from||i,a.default,!0):o=Ee(a.from||i):o=Ee(a),Ct(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function u_(e,t,r){rn(be(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function JC(e,t,r,n){const i=n.includes(".")?GC(r,n):()=>r[n];if(He(e)){const a=t[e];De(a)&&Se(i,a)}else if(De(e))Se(i,e.bind(r));else if(Xe(e))if(be(e))e.forEach(a=>JC(a,t,r,n));else{const a=De(e.handler)?e.handler.bind(r):t[e.handler];De(a)&&Se(i,a,e)}}function jm(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=>Zf(l,u,o,!0)),Zf(l,t,o)),Xe(t)&&a.set(t,l),l}function Zf(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Zf(e,a,r,!0),i&&i.forEach(o=>Zf(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=BI[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const BI={data:c_,props:za,emits:za,methods:za,computed:za,beforeCreate:ir,created:ir,beforeMount:ir,mounted:ir,beforeUpdate:ir,updated:ir,beforeDestroy:ir,beforeUnmount:ir,destroyed:ir,unmounted:ir,activated:ir,deactivated:ir,errorCaptured:ir,serverPrefetch:ir,components:za,directives:za,watch:HI,provide:c_,inject:$I};function c_(e,t){return t?e?function(){return Gt(De(e)?e.call(this,this):e,De(t)?t.call(this,this):t)}:t:e}function $I(e,t){return za(Pp(e),Pp(t))}function Pp(e){if(be(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ir(e,t){return e?[...new Set([].concat(e,t))]:t}function za(e,t){return e?Gt(Gt(Object.create(null),e),t):t}function HI(e,t){if(!e)return t;if(!t)return e;const r=Gt(Object.create(null),e);for(const n in t)r[n]=ir(e[n],t[n]);return r}function zI(e,t,r,n=!1){const i={},a={};Yf(a,Ud,1),e.propsDefaults=Object.create(null),eT(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:LC(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function WI(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Ke(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(zd(e.emitsOptions,d))continue;const h=t[d];if(l)if(We(a,d))h!==a[d]&&(a[d]=h,u=!0);else{const v=An(d);i[v]=Lp(l,s,v,h,e,!1)}else h!==a[d]&&(a[d]=h,u=!0)}}}else{eT(e,t,i,a)&&(u=!0);let c;for(const f in s)(!t||!We(t,f)&&((c=xo(f))===f||!We(t,c)))&&(l?r&&(r[f]!==void 0||r[c]!==void 0)&&(i[f]=Lp(l,s,f,void 0,e,!0)):delete i[f]);if(a!==s)for(const f in a)(!t||!We(t,f))&&(delete a[f],u=!0)}u&&gi(e,"set","$attrs")}function eT(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(mf(l))continue;const u=t[l];let c;i&&We(i,c=An(l))?!a||!a.includes(c)?r[c]=u:(s||(s={}))[c]=u:zd(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Ke(r),u=s||yt;for(let c=0;c<a.length;c++){const f=a[c];r[f]=Lp(i,l,f,u[f],e,!We(u,f))}}return o}function Lp(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=We(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&De(l)){const{propsDefaults:u}=i;r in u?n=u[r]:(ps(i),n=u[r]=l.call(null,t),ao())}else n=l}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===xo(r))&&(n=!0))}return n}function tT(e,t,r=!1){const n=t.propsCache,i=n.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!De(e)){const c=f=>{l=!0;const[d,h]=tT(f,t,!0);Gt(o,d),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return Xe(e)&&n.set(e,ns),ns;if(be(a))for(let c=0;c<a.length;c++){const f=An(a[c]);f_(f)&&(o[f]=yt)}else if(a)for(const c in a){const f=An(c);if(f_(f)){const d=a[c],h=o[f]=be(d)||De(d)?{type:d}:Object.assign({},d);if(h){const v=v_(Boolean,h.type),p=v_(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||We(h,"default"))&&s.push(f)}}}const u=[o,s];return Xe(e)&&n.set(e,u),u}function f_(e){return e[0]!=="$"}function d_(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function h_(e,t){return d_(e)===d_(t)}function v_(e,t){return be(t)?t.findIndex(r=>h_(r,e)):De(t)&&h_(t,e)?0:-1}const rT=e=>e[0]==="_"||e==="$stable",Ym=e=>be(e)?e.map(Bn):[Bn(e)],VI=(e,t,r)=>{if(t._n)return t;const n=Z((...i)=>Ym(t(...i)),r);return n._c=!1,n},nT=(e,t,r)=>{const n=e._ctx;for(const i in e){if(rT(i))continue;const a=e[i];if(De(a))t[i]=VI(i,a,n);else if(a!=null){const o=Ym(a);t[i]=()=>o}}},iT=(e,t)=>{const r=Ym(t);e.slots.default=()=>r},GI=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Ke(t),Yf(t,"_",r)):nT(t,e.slots={})}else e.slots={},t&&iT(e,t);Yf(e.slots,Ud,1)},UI=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=yt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(Gt(i,t),!r&&s===1&&delete i._):(a=!t.$stable,nT(t,i)),o=t}else t&&(iT(e,t),o={default:1});if(a)for(const s in i)!rT(s)&&!(s in o)&&delete i[s]};function aT(){return{app:null,config:{isNativeTag:wD,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 jI=0;function YI(e,t){return function(n,i=null){De(n)||(n=Object.assign({},n)),i!=null&&!Xe(i)&&(i=null);const a=aT(),o=new Set;let s=!1;const l=a.app={_uid:jI++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:pO,get config(){return a.config},set config(u){},use(u,...c){return o.has(u)||(u&&De(u.install)?(o.add(u),u.install(l,...c)):De(u)&&(o.add(u),u(l,...c))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,c){return c?(a.components[u]=c,l):a.components[u]},directive(u,c){return c?(a.directives[u]=c,l):a.directives[u]},mount(u,c,f){if(!s){const d=ee(n,i);return d.appContext=a,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,jd(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return a.provides[u]=c,l}};return l}}function Dp(e,t,r,n,i=!1){if(be(e)){e.forEach((d,h)=>Dp(d,t&&(be(t)?t[h]:t),r,n,i));return}if(El(n)&&!i)return;const a=n.shapeFlag&4?jd(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===yt?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(He(u)?(c[u]=null,We(f,u)&&(f[u]=null)):Ct(u)&&(u.value=null)),De(l))Zi(l,s,12,[o,c]);else{const d=He(l),h=Ct(l);if(d||h){const v=()=>{if(e.f){const p=d?We(f,l)?f[l]:c[l]:l.value;i?be(p)&&Lm(p,a):be(p)?p.includes(a)||p.push(a):d?(c[l]=[a],We(f,l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,We(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,yr(v,r)):v()}}}const yr=SI;function qI(e){return KI(e)}function KI(e,t){const r=PD();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=ur,insertStaticContent:v}=e,p=(L,I,z,U=null,K=null,ne=null,fe=!1,te=null,ie=!!I.dynamicChildren)=>{if(L===I)return;L&&!Ua(L,I)&&(U=W(L),oe(L,K,ne,!0),L=null),I.patchFlag===-2&&(ie=!1,I.dynamicChildren=null);const{type:X,ref:we,shapeFlag:he}=I;switch(X){case Ns:g(L,I,z,U);break;case xr:m(L,I,z,U);break;case kh:L==null&&y(I,z,U,fe);break;case pt:T(L,I,z,U,K,ne,fe,te,ie);break;default:he&1?x(L,I,z,U,K,ne,fe,te,ie):he&6?D(L,I,z,U,K,ne,fe,te,ie):(he&64||he&128)&&X.process(L,I,z,U,K,ne,fe,te,ie,le)}we!=null&&K&&Dp(we,L&&L.ref,ne,I||L,!I)},g=(L,I,z,U)=>{if(L==null)n(I.el=s(I.children),z,U);else{const K=I.el=L.el;I.children!==L.children&&u(K,I.children)}},m=(L,I,z,U)=>{L==null?n(I.el=l(I.children||""),z,U):I.el=L.el},y=(L,I,z,U)=>{[L.el,L.anchor]=v(L.children,I,z,U,L.el,L.anchor)},_=({el:L,anchor:I},z,U)=>{let K;for(;L&&L!==I;)K=d(L),n(L,z,U),L=K;n(I,z,U)},b=({el:L,anchor:I})=>{let z;for(;L&&L!==I;)z=d(L),i(L),L=z;i(I)},x=(L,I,z,U,K,ne,fe,te,ie)=>{fe=fe||I.type==="svg",L==null?w(I,z,U,K,ne,fe,te,ie):M(L,I,K,ne,fe,te,ie)},w=(L,I,z,U,K,ne,fe,te)=>{let ie,X;const{type:we,props:he,shapeFlag:xe,transition:Oe,dirs:ze}=L;if(ie=L.el=o(L.type,ne,he&&he.is,he),xe&8?c(ie,L.children):xe&16&&C(L.children,ie,null,U,K,ne&&we!=="foreignObject",fe,te),ze&&ha(L,null,U,"created"),S(ie,L,L.scopeId,fe,U),he){for(const Je in he)Je!=="value"&&!mf(Je)&&a(ie,Je,null,he[Je],ne,L.children,U,K,Q);"value"in he&&a(ie,"value",null,he.value),(X=he.onVnodeBeforeMount)&&On(X,U,L)}ze&&ha(L,null,U,"beforeMount");const rt=(!K||K&&!K.pendingBranch)&&Oe&&!Oe.persisted;rt&&Oe.beforeEnter(ie),n(ie,I,z),((X=he&&he.onVnodeMounted)||rt||ze)&&yr(()=>{X&&On(X,U,L),rt&&Oe.enter(ie),ze&&ha(L,null,U,"mounted")},K)},S=(L,I,z,U,K)=>{if(z&&h(L,z),U)for(let ne=0;ne<U.length;ne++)h(L,U[ne]);if(K){let ne=K.subTree;if(I===ne){const fe=K.vnode;S(L,fe,fe.scopeId,fe.slotScopeIds,K.parent)}}},C=(L,I,z,U,K,ne,fe,te,ie=0)=>{for(let X=ie;X<L.length;X++){const we=L[X]=te?Vi(L[X]):Bn(L[X]);p(null,we,I,z,U,K,ne,fe,te)}},M=(L,I,z,U,K,ne,fe)=>{const te=I.el=L.el;let{patchFlag:ie,dynamicChildren:X,dirs:we}=I;ie|=L.patchFlag&16;const he=L.props||yt,xe=I.props||yt;let Oe;z&&va(z,!1),(Oe=xe.onVnodeBeforeUpdate)&&On(Oe,z,I,L),we&&ha(I,L,z,"beforeUpdate"),z&&va(z,!0);const ze=K&&I.type!=="foreignObject";if(X?P(L.dynamicChildren,X,te,z,U,ze,ne):fe||F(L,I,te,null,z,U,ze,ne,!1),ie>0){if(ie&16)A(te,I,he,xe,z,U,K);else if(ie&2&&he.class!==xe.class&&a(te,"class",null,xe.class,K),ie&4&&a(te,"style",he.style,xe.style,K),ie&8){const rt=I.dynamicProps;for(let Je=0;Je<rt.length;Je++){const Lt=rt[Je],ve=he[Lt],Pe=xe[Lt];(Pe!==ve||Lt==="value")&&a(te,Lt,ve,Pe,K,L.children,z,U,Q)}}ie&1&&L.children!==I.children&&c(te,I.children)}else!fe&&X==null&&A(te,I,he,xe,z,U,K);((Oe=xe.onVnodeUpdated)||we)&&yr(()=>{Oe&&On(Oe,z,I,L),we&&ha(I,L,z,"updated")},U)},P=(L,I,z,U,K,ne,fe)=>{for(let te=0;te<I.length;te++){const ie=L[te],X=I[te],we=ie.el&&(ie.type===pt||!Ua(ie,X)||ie.shapeFlag&70)?f(ie.el):z;p(ie,X,we,null,U,K,ne,fe,!0)}},A=(L,I,z,U,K,ne,fe)=>{if(z!==U){if(z!==yt)for(const te in z)!mf(te)&&!(te in U)&&a(L,te,z[te],null,fe,I.children,K,ne,Q);for(const te in U){if(mf(te))continue;const ie=U[te],X=z[te];ie!==X&&te!=="value"&&a(L,te,X,ie,fe,I.children,K,ne,Q)}"value"in U&&a(L,"value",z.value,U.value)}},T=(L,I,z,U,K,ne,fe,te,ie)=>{const X=I.el=L?L.el:s(""),we=I.anchor=L?L.anchor:s("");let{patchFlag:he,dynamicChildren:xe,slotScopeIds:Oe}=I;Oe&&(te=te?te.concat(Oe):Oe),L==null?(n(X,z,U),n(we,z,U),C(I.children,z,we,K,ne,fe,te,ie)):he>0&&he&64&&xe&&L.dynamicChildren?(P(L.dynamicChildren,xe,z,K,ne,fe,te),(I.key!=null||K&&I===K.subTree)&&qm(L,I,!0)):F(L,I,z,we,K,ne,fe,te,ie)},D=(L,I,z,U,K,ne,fe,te,ie)=>{I.slotScopeIds=te,L==null?I.shapeFlag&512?K.ctx.activate(I,z,U,fe,ie):N(I,z,U,K,ne,fe,ie):H(L,I,ie)},N=(L,I,z,U,K,ne,fe)=>{const te=L.component=oO(L,U,K);if(Wd(L)&&(te.ctx.renderer=le),sO(te),te.asyncDep){if(K&&K.registerDep(te,$),!L.el){const ie=te.subTree=ee(xr);m(null,ie,I,z)}return}$(te,L,I,z,K,ne,fe)},H=(L,I,z)=>{const U=I.component=L.component;if(bI(L,I,z))if(U.asyncDep&&!U.asyncResolved){G(U,I,z);return}else U.next=I,vI(U.update),U.update();else I.el=L.el,U.vnode=I},$=(L,I,z,U,K,ne,fe)=>{const te=()=>{if(L.isMounted){let{next:we,bu:he,u:xe,parent:Oe,vnode:ze}=L,rt=we,Je;va(L,!1),we?(we.el=ze.el,G(L,we,fe)):we=ze,he&&_f(he),(Je=we.props&&we.props.onVnodeBeforeUpdate)&&On(Je,Oe,we,ze),va(L,!0);const Lt=Ih(L),ve=L.subTree;L.subTree=Lt,p(ve,Lt,f(ve.el),W(ve),L,K,ne),we.el=Lt.el,rt===null&&wI(L,Lt.el),xe&&yr(xe,K),(Je=we.props&&we.props.onVnodeUpdated)&&yr(()=>On(Je,Oe,we,ze),K)}else{let we;const{el:he,props:xe}=I,{bm:Oe,m:ze,parent:rt}=L,Je=El(I);if(va(L,!1),Oe&&_f(Oe),!Je&&(we=xe&&xe.onVnodeBeforeMount)&&On(we,rt,I),va(L,!0),he&&J){const Lt=()=>{L.subTree=Ih(L),J(he,L.subTree,L,K,null)};Je?I.type.__asyncLoader().then(()=>!L.isUnmounted&&Lt()):Lt()}else{const Lt=L.subTree=Ih(L);p(null,Lt,z,U,L,K,ne),I.el=Lt.el}if(ze&&yr(ze,K),!Je&&(we=xe&&xe.onVnodeMounted)){const Lt=I;yr(()=>On(we,rt,Lt),K)}(I.shapeFlag&256||rt&&El(rt.vnode)&&rt.vnode.shapeFlag&256)&&L.a&&yr(L.a,K),L.isMounted=!0,I=z=U=null}},ie=L.effect=new Om(te,()=>zm(X),L.scope),X=L.update=()=>ie.run();X.id=L.uid,va(L,!0),X()},G=(L,I,z)=>{I.component=L;const U=L.vnode.props;L.vnode=I,L.next=null,WI(L,I.props,U,z),UI(L,I.children,z),Os(),i_(),Rs()},F=(L,I,z,U,K,ne,fe,te,ie=!1)=>{const X=L&&L.children,we=L?L.shapeFlag:0,he=I.children,{patchFlag:xe,shapeFlag:Oe}=I;if(xe>0){if(xe&128){j(X,he,z,U,K,ne,fe,te,ie);return}else if(xe&256){R(X,he,z,U,K,ne,fe,te,ie);return}}Oe&8?(we&16&&Q(X,K,ne),he!==X&&c(z,he)):we&16?Oe&16?j(X,he,z,U,K,ne,fe,te,ie):Q(X,K,ne,!0):(we&8&&c(z,""),Oe&16&&C(he,z,U,K,ne,fe,te,ie))},R=(L,I,z,U,K,ne,fe,te,ie)=>{L=L||ns,I=I||ns;const X=L.length,we=I.length,he=Math.min(X,we);let xe;for(xe=0;xe<he;xe++){const Oe=I[xe]=ie?Vi(I[xe]):Bn(I[xe]);p(L[xe],Oe,z,null,K,ne,fe,te,ie)}X>we?Q(L,K,ne,!0,!1,he):C(I,z,U,K,ne,fe,te,ie,he)},j=(L,I,z,U,K,ne,fe,te,ie)=>{let X=0;const we=I.length;let he=L.length-1,xe=we-1;for(;X<=he&&X<=xe;){const Oe=L[X],ze=I[X]=ie?Vi(I[X]):Bn(I[X]);if(Ua(Oe,ze))p(Oe,ze,z,null,K,ne,fe,te,ie);else break;X++}for(;X<=he&&X<=xe;){const Oe=L[he],ze=I[xe]=ie?Vi(I[xe]):Bn(I[xe]);if(Ua(Oe,ze))p(Oe,ze,z,null,K,ne,fe,te,ie);else break;he--,xe--}if(X>he){if(X<=xe){const Oe=xe+1,ze=Oe<we?I[Oe].el:U;for(;X<=xe;)p(null,I[X]=ie?Vi(I[X]):Bn(I[X]),z,ze,K,ne,fe,te,ie),X++}}else if(X>xe)for(;X<=he;)oe(L[X],K,ne,!0),X++;else{const Oe=X,ze=X,rt=new Map;for(X=ze;X<=xe;X++){const it=I[X]=ie?Vi(I[X]):Bn(I[X]);it.key!=null&&rt.set(it.key,X)}let Je,Lt=0;const ve=xe-ze+1;let Pe=!1,je=0;const Be=new Array(ve);for(X=0;X<ve;X++)Be[X]=0;for(X=Oe;X<=he;X++){const it=L[X];if(Lt>=ve){oe(it,K,ne,!0);continue}let Mt;if(it.key!=null)Mt=rt.get(it.key);else for(Je=ze;Je<=xe;Je++)if(Be[Je-ze]===0&&Ua(it,I[Je])){Mt=Je;break}Mt===void 0?oe(it,K,ne,!0):(Be[Mt-ze]=X+1,Mt>=je?je=Mt:Pe=!0,p(it,I[Mt],z,null,K,ne,fe,te,ie),Lt++)}const nt=Pe?XI(Be):ns;for(Je=nt.length-1,X=ve-1;X>=0;X--){const it=ze+X,Mt=I[it],ri=it+1<we?I[it+1].el:U;Be[X]===0?p(null,Mt,z,ri,K,ne,fe,te,ie):Pe&&(Je<0||X!==nt[Je]?re(Mt,z,ri,2):Je--)}}},re=(L,I,z,U,K=null)=>{const{el:ne,type:fe,transition:te,children:ie,shapeFlag:X}=L;if(X&6){re(L.component.subTree,I,z,U);return}if(X&128){L.suspense.move(I,z,U);return}if(X&64){fe.move(L,I,z,le);return}if(fe===pt){n(ne,I,z);for(let he=0;he<ie.length;he++)re(ie[he],I,z,U);n(L.anchor,I,z);return}if(fe===kh){_(L,I,z);return}if(U!==2&&X&1&&te)if(U===0)te.beforeEnter(ne),n(ne,I,z),yr(()=>te.enter(ne),K);else{const{leave:he,delayLeave:xe,afterLeave:Oe}=te,ze=()=>n(ne,I,z),rt=()=>{he(ne,()=>{ze(),Oe&&Oe()})};xe?xe(ne,ze,rt):rt()}else n(ne,I,z)},oe=(L,I,z,U=!1,K=!1)=>{const{type:ne,props:fe,ref:te,children:ie,dynamicChildren:X,shapeFlag:we,patchFlag:he,dirs:xe}=L;if(te!=null&&Dp(te,null,z,L,!0),we&256){I.ctx.deactivate(L);return}const Oe=we&1&&xe,ze=!El(L);let rt;if(ze&&(rt=fe&&fe.onVnodeBeforeUnmount)&&On(rt,I,L),we&6)V(L.component,z,U);else{if(we&128){L.suspense.unmount(z,U);return}Oe&&ha(L,null,I,"beforeUnmount"),we&64?L.type.remove(L,I,z,K,le,U):X&&(ne!==pt||he>0&&he&64)?Q(X,I,z,!1,!0):(ne===pt&&he&384||!K&&we&16)&&Q(ie,I,z),U&&ye(L)}(ze&&(rt=fe&&fe.onVnodeUnmounted)||Oe)&&yr(()=>{rt&&On(rt,I,L),Oe&&ha(L,null,I,"unmounted")},z)},ye=L=>{const{type:I,el:z,anchor:U,transition:K}=L;if(I===pt){Ae(z,U);return}if(I===kh){b(L);return}const ne=()=>{i(z),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(L.shapeFlag&1&&K&&!K.persisted){const{leave:fe,delayLeave:te}=K,ie=()=>fe(z,ne);te?te(L.el,ne,ie):ie()}else ne()},Ae=(L,I)=>{let z;for(;L!==I;)z=d(L),i(L),L=z;i(I)},V=(L,I,z)=>{const{bum:U,scope:K,update:ne,subTree:fe,um:te}=L;U&&_f(U),K.stop(),ne&&(ne.active=!1,oe(fe,L,I,z)),te&&yr(te,I),yr(()=>{L.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Q=(L,I,z,U=!1,K=!1,ne=0)=>{for(let fe=ne;fe<L.length;fe++)oe(L[fe],I,z,U,K)},W=L=>L.shapeFlag&6?W(L.component.subTree):L.shapeFlag&128?L.suspense.next():d(L.anchor||L.el),q=(L,I,z)=>{L==null?I._vnode&&oe(I._vnode,null,null,!0):p(I._vnode||null,L,I,null,null,null,z),i_(),HC(),I._vnode=L},le={p,um:oe,m:re,r:ye,mt:N,mc:C,pc:F,pbc:P,n:W,o:e};let de,J;return t&&([de,J]=t(le)),{render:q,hydrate:de,createApp:YI(q,de)}}function va({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function qm(e,t,r=!1){const n=e.children,i=t.children;if(be(n)&&be(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=Vi(i[a]),s.el=o.el),r||qm(o,s)),s.type===Ns&&(s.el=o.el)}}function XI(e){const t=e.slice(),r=[0];let n,i,a,o,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(i=r[r.length-1],e[i]<u){t[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,e[r[s]]<u?a=s+1:o=s;u<e[r[a]]&&(a>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 ZI=e=>e.__isTeleport,Ll=e=>e&&(e.disabled||e.disabled===""),p_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ip=(e,t)=>{const r=e&&e.to;return He(r)?t?t(r):null:r},QI={__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=Ll(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=Ip(t.props,v),C=t.targetAnchor=p("");S&&(h(C,S),o=o||p_(S));const M=(P,A)=>{y&16&&c(_,P,A,i,a,o,s,l)};m?M(r,w):S&&M(S,C)}else{t.el=e.el;const x=t.anchor=e.anchor,w=t.target=e.target,S=t.targetAnchor=e.targetAnchor,C=Ll(e.props),M=C?r:w,P=C?x:S;if(o=o||p_(w),b?(d(e.dynamicChildren,b,M,i,a,o,s),qm(e,t,!0)):l||f(e,t,M,P,i,a,o,s,!1),m)C||pc(t,r,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Ip(t.props,v);A&&pc(t,A,null,u,0)}else C&&pc(t,w,S,u,1)}oT(t)},remove(e,t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&a(c),(o||!Ll(d))&&(a(u),s&16))for(let h=0;h<l.length;h++){const v=l[h];i(v,t,r,!0,!!v.dynamicChildren)}},move:pc,hydrate:JI};function pc(e,t,r,{o:{insert:n},m:i},a=2){a===0&&n(e.targetAnchor,t,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,f=a===2;if(f&&n(o,t,r),(!f||Ll(c))&&l&16)for(let d=0;d<u.length;d++)i(u[d],t,r,2);f&&n(s,t,r)}function JI(e,t,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=Ip(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(Ll(t.props))t.anchor=u(o(e),t,s(e),r,n,i,a),t.targetAnchor=f;else{t.anchor=o(e);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,c._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(f,t,c,r,n,i,a)}oT(t)}return t.anchor&&o(t.anchor)}const eO=QI;function oT(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const pt=Symbol(void 0),Ns=Symbol(void 0),xr=Symbol(void 0),kh=Symbol(void 0),Dl=[];let wn=null;function Y(e=!1){Dl.push(wn=e?null:[])}function tO(){Dl.pop(),wn=Dl[Dl.length-1]||null}let lu=1;function g_(e){lu+=e}function sT(e){return e.dynamicChildren=lu>0?wn||ns:null,tO(),lu>0&&wn&&wn.push(e),e}function me(e,t,r,n,i,a){return sT(ae(e,t,r,n,i,a,!0))}function _e(e,t,r,n,i){return sT(ee(e,t,r,n,i,!0))}function ta(e){return e?e.__v_isVNode===!0:!1}function Ua(e,t){return e.type===t.type&&e.key===t.key}const Ud="__vInternal",lT=({key:e})=>e??null,bf=({ref:e,ref_key:t,ref_for:r})=>e!=null?He(e)||Ct(e)||De(e)?{i:qt,r:e,k:t,f:!!r}:e:null;function ae(e,t=null,r=null,n=0,i=null,a=e===pt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lT(t),ref:t&&bf(t),scopeId:VC,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:qt};return s?(Km(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=He(r)?8:16),lu>0&&!o&&wn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&wn.push(l),l}const ee=rO;function rO(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===XC)&&(e=xr),ta(e)){const s=mi(e,t,!0);return r&&Km(s,r),lu>0&&!a&&wn&&(s.shapeFlag&6?wn[wn.indexOf(e)]=s:wn.push(s)),s.patchFlag|=-2,s}if(fO(e)&&(e=e.__vccOpts),t){t=nO(t);let{class:s,style:l}=t;s&&!He(s)&&(t.class=ue(s)),Xe(l)&&(DC(l)&&!be(l)&&(l=Gt({},l)),t.style=St(l))}const o=He(e)?1:xI(e)?128:ZI(e)?64:Xe(e)?4:De(e)?2:0;return ae(e,t,r,n,i,o,a,!0)}function nO(e){return e?DC(e)||Ud in e?Gt({},e):e:null}function mi(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?ca(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&lT(s),ref:t&&t.ref?r&&i?be(i)?i.concat(bf(t)):[i,bf(t)]:bf(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!==pt?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&&mi(e.ssContent),ssFallback:e.ssFallback&&mi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Bt(e=" ",t=0){return ee(Ns,null,e,t)}function Fe(e="",t=!1){return t?(Y(),_e(xr,null,e)):ee(xr,null,e)}function Bn(e){return e==null||typeof e=="boolean"?ee(xr):be(e)?ee(pt,null,e.slice()):typeof e=="object"?Vi(e):ee(Ns,null,String(e))}function Vi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mi(e)}function Km(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(be(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Km(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(Ud in t)?t._ctx=qt:i===3&&qt&&(qt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else De(t)?(t={default:t,_ctx:qt},r=32):(t=String(t),n&64?(r=16,t=[Bt(t)]):r=8);e.children=t,e.shapeFlag|=r}function ca(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=ue([t.class,n.class]));else if(i==="style")t.style=St([t.style,n.style]);else if(Rd(i)){const a=t[i],o=n[i];o&&a!==o&&!(be(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function On(e,t,r,n=null){rn(e,t,7,[r,n])}const iO=aT();let aO=0;function oO(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||iO,a={uid:aO++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new LD(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tT(n,i),emitsOptions:WC(n,i),emit:null,emitted:null,propsDefaults:yt,inheritAttrs:n.inheritAttrs,ctx:yt,data:yt,props:yt,attrs:yt,slots:yt,refs:yt,setupState:yt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=mI.bind(null,a),e.ce&&e.ce(a),a}let It=null;const ct=()=>It||qt,ps=e=>{It=e,e.scope.on()},ao=()=>{It&&It.scope.off(),It=null};function uT(e){return e.vnode.shapeFlag&4}let uu=!1;function sO(e,t=!1){uu=t;const{props:r,children:n}=e.vnode,i=uT(e);zI(e,r,i,t),GI(e,n);const a=i?lO(e,t):void 0;return uu=!1,a}function lO(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=IC(new Proxy(e.ctx,kI));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?fT(e):null;ps(e),Os();const a=Zi(n,e,0,[e.props,i]);if(Rs(),ao(),jf(a)){if(a.then(ao,ao),t)return a.then(o=>{m_(e,o,t)}).catch(o=>{Hd(o,e,0)});e.asyncDep=a}else m_(e,a,t)}else cT(e,t)}function m_(e,t,r){De(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xe(t)&&(e.setupState=NC(t)),cT(e,r)}let y_;function cT(e,t,r){const n=e.type;if(!e.render){if(!t&&y_&&!n.render){const i=n.template||jm(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Gt(Gt({isCustomElement:a,delimiters:s},o),l);n.render=y_(i,u)}}e.render=n.render||ur}ps(e),Os(),NI(e),Rs(),ao()}function uO(e){return new Proxy(e.attrs,{get(t,r){return Mr(e,"get","$attrs"),t[r]}})}function fT(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=uO(e))},slots:e.slots,emit:e.emit,expose:t}}function jd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(NC(IC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Pl)return Pl[r](e)},has(t,r){return r in t||r in Pl}}))}function cO(e,t=!0){return De(e)?e.displayName||e.name:e.name||t&&e.__name}function fO(e){return De(e)&&"__vccOpts"in e}const k=(e,t)=>cI(e,t,uu);function Yd(){return dO().slots}function dO(){const e=ct();return e.setupContext||(e.setupContext=fT(e))}function Ce(e,t,r){const n=arguments.length;return n===2?Xe(t)&&!be(t)?ta(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&ta(r)&&(r=[r]),ee(e,t,r))}const hO=Symbol(""),vO=()=>Ee(hO),pO="3.2.47",gO="http://www.w3.org/2000/svg",ja=typeof document<"u"?document:null,__=ja&&ja.createElement("template"),mO={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?ja.createElementNS(gO,e):ja.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ja.createTextNode(e),createComment:e=>ja.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ja.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{__.innerHTML=n?`<svg>${e}</svg>`:e;const s=__.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 yO(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 _O(e,t,r){const n=e.style,i=He(r);if(r&&!i){if(t&&!He(t))for(const a in t)r[a]==null&&Op(n,a,"");for(const a in r)Op(n,a,r[a])}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const b_=/\s*!important$/;function Op(e,t,r){if(be(r))r.forEach(n=>Op(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=bO(e,t);b_.test(r)?e.setProperty(xo(n),r.replace(b_,""),"important"):e[n]=r}}const w_=["Webkit","Moz","ms"],Nh={};function bO(e,t){const r=Nh[t];if(r)return r;let n=An(t);if(n!=="filter"&&n in e)return Nh[t]=n;n=Fd(n);for(let i=0;i<w_.length;i++){const a=w_[i]+n;if(a in e)return Nh[t]=a}return t}const x_="http://www.w3.org/1999/xlink";function wO(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(x_,t.slice(6,t.length)):e.setAttributeNS(x_,t,r);else{const a=_D(t);r==null||a&&!vC(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function xO(e,t,r,n,i,a,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,a),e[t]=r??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const l=r??"";(e.value!==l||e.tagName==="OPTION")&&(e.value=l),r==null&&e.removeAttribute(t);return}let s=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=vC(r):r==null&&l==="string"?(r="",s=!0):l==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(t)}function dT(e,t,r,n){e.addEventListener(t,r,n)}function SO(e,t,r,n){e.removeEventListener(t,r,n)}function CO(e,t,r,n,i=null){const a=e._vei||(e._vei={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=TO(t);if(n){const u=a[t]=EO(n,i);dT(e,s,u,l)}else o&&(SO(e,s,o,l),a[t]=void 0)}}const S_=/(?:Once|Passive|Capture)$/;function TO(e){let t;if(S_.test(e)){t={};let n;for(;n=e.match(S_);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xo(e.slice(2)),t]}let Fh=0;const MO=Promise.resolve(),AO=()=>Fh||(MO.then(()=>Fh=0),Fh=Date.now());function EO(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;rn(PO(n,r.value),t,5,[n])};return r.value=e,r.attached=AO(),r}function PO(e,t){if(be(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]/,LO=(e,t,r,n,i=!1,a,o,s,l)=>{t==="class"?yO(e,n,i):t==="style"?_O(e,r,n):Rd(t)?Pm(t)||CO(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):DO(e,t,n,i))?xO(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),wO(e,t,n,i))};function DO(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&C_.test(t)&&De(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||C_.test(t)&&He(r)?!1:t in e}const Li="transition",Ys="animation",Ci=(e,{slots:t})=>Ce(jC,vT(e),t);Ci.displayName="Transition";const hT={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},IO=Ci.props=Gt({},jC.props,hT),pa=(e,t=[])=>{be(e)?e.forEach(r=>r(...t)):e&&e(...t)},T_=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function vT(e){const t={};for(const T in e)T in hT||(t[T]=e[T]);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:c=s,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=OO(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,M=(T,D,N)=>{Bi(T,D?c:s),Bi(T,D?u:o),N&&N()},P=(T,D)=>{T._isLeaving=!1,Bi(T,f),Bi(T,h),Bi(T,d),D&&D()},A=T=>(D,N)=>{const H=T?S:y,$=()=>M(D,T,N);pa(H,[D,$]),M_(()=>{Bi(D,T?l:a),li(D,T?c:s),T_(H)||A_(D,n,p,$)})};return Gt(t,{onBeforeEnter(T){pa(m,[T]),li(T,a),li(T,o)},onBeforeAppear(T){pa(w,[T]),li(T,l),li(T,u)},onEnter:A(!1),onAppear:A(!0),onLeave(T,D){T._isLeaving=!0;const N=()=>P(T,D);li(T,f),gT(),li(T,d),M_(()=>{T._isLeaving&&(Bi(T,f),li(T,h),T_(b)||A_(T,n,g,N))}),pa(b,[T,N])},onEnterCancelled(T){M(T,!1),pa(_,[T])},onAppearCancelled(T){M(T,!0),pa(C,[T])},onLeaveCancelled(T){P(T),pa(x,[T])}})}function OO(e){if(e==null)return null;if(Xe(e))return[Bh(e.enter),Bh(e.leave)];{const t=Bh(e);return[t,t]}}function Bh(e){return ED(e)}function li(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function Bi(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 M_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let RO=0;function A_(e,t,r,n){const i=e._endId=++RO,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=pT(e,t);if(!o)return n();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),a()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,d)}function pT(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),i=n(`${Li}Delay`),a=n(`${Li}Duration`),o=E_(i,a),s=n(`${Ys}Delay`),l=n(`${Ys}Duration`),u=E_(s,l);let c=null,f=0,d=0;t===Li?o>0&&(c=Li,f=o,d=a.length):t===Ys?u>0&&(c=Ys,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?Li:Ys:null,d=c?c===Li?a.length:l.length:0);const h=c===Li&&/\b(transform|all)(,|$)/.test(n(`${Li}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function E_(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>P_(r)+P_(e[n])))}function P_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function gT(){return document.body.offsetHeight}const mT=new WeakMap,yT=new WeakMap,_T={name:"TransitionGroup",props:Gt({},IO,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=ct(),n=UC();let i,a;return Hu(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!HO(i[0].el,r.vnode.el,o))return;i.forEach(FO),i.forEach(BO);const s=i.filter($O);gT(),s.forEach(l=>{const u=l.el,c=u.style;li(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,Bi(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=Ke(e),s=vT(o);let l=o.tag||pt;i=a,a=t.default?Vm(t.default()):[];for(let u=0;u<a.length;u++){const c=a[u];c.key!=null&&su(c,ou(c,s,n,r))}if(i)for(let u=0;u<i.length;u++){const c=i[u];su(c,ou(c,s,n,r)),mT.set(c,c.el.getBoundingClientRect())}return ee(l,null,a)}}},kO=e=>delete e.mode;_T.props;const NO=_T;function FO(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function BO(e){yT.set(e,e.el.getBoundingClientRect())}function $O(e){const t=mT.get(e),r=yT.get(e),n=t.left-r.left,i=t.top-r.top;if(n||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${i}px)`,a.transitionDuration="0s",e}}function HO(e,t,r){const n=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),r.split(/\s+/).forEach(o=>o&&n.classList.add(o)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:a}=pT(n);return i.removeChild(n),a}const L_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return be(t)?r=>_f(t,r):t},Qf={deep:!0,created(e,t,r){e._assign=L_(r),dT(e,"change",()=>{const n=e._modelValue,i=zO(e),a=e.checked,o=e._assign;if(be(n)){const s=pC(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(kd(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(bT(e,a))})},mounted:D_,beforeUpdate(e,t,r){e._assign=L_(r),D_(e,t,r)}};function D_(e,{value:t,oldValue:r},n){e._modelValue=t,be(t)?e.checked=pC(t,n.props.value)>-1:kd(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=Od(t,bT(e,!0)))}function zO(e){return"_value"in e?e._value:e.value}function bT(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const WO=["ctrl","shift","alt","meta"],VO={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)=>WO.some(r=>e[`${r}Key`]&&!t.includes(r))},Jf=(e,t)=>(r,...n)=>{for(let i=0;i<t.length;i++){const a=VO[t[i]];if(a&&a(r,t))return}return e(r,...n)},GO={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},UO=(e,t)=>r=>{if(!("key"in r))return;const n=xo(r.key);if(t.some(i=>i===n||GO[i]===n))return e(r)},yi={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):qs(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),qs(e,!0),n.enter(e)):n.leave(e,()=>{qs(e,!1)}):qs(e,t))},beforeUnmount(e,{value:t}){qs(e,t)}};function qs(e,t){e.style.display=t?e._vod:"none"}const jO=Gt({patchProp:LO},mO);let I_;function wT(){return I_||(I_=qI(jO))}const O_=(...e)=>{wT().render(...e)},YO=(...e)=>{const t=wT().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=qO(n);if(!i)return;const a=t._component;!De(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 qO(e){return He(e)?document.querySelector(e):e}const wf=function(e,t,...r){let n;t.includes("mouse")||t.includes("click")?n="MouseEvents":t.includes("key")?n="KeyboardEvent":n="HTMLEvents";const i=document.createEvent(n);return i.initEvent(t,...r),e.dispatchEvent(i),e},fi=(e,t,{checkForDefaultPrevented:r=!0}={})=>i=>{const a=e==null?void 0:e(i);if(r===!1||!a)return t==null?void 0:t(i)};var R_;const Nt=typeof window<"u",Br=e=>typeof e=="boolean",KO=e=>typeof e=="function",$t=e=>typeof e=="number",XO=e=>typeof e=="string",Rp=()=>{};Nt&&((R_=window==null?void 0:window.navigator)!=null&&R_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ho(e){return typeof e=="function"?e():E(e)}function xT(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}const ST=e=>e();function ZO(e,t={}){let r,n,i=Rp;const a=s=>{clearTimeout(s),i(),i=Rp};return s=>{const l=ho(e),u=ho(t.maxWait);return r&&a(r),l<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((c,f)=>{i=t.rejectOnCancel?f:c,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(s())},u)),r=setTimeout(()=>{n&&a(n),n=null,c(s())},l)})}}function QO(e=ST){const t=B(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:$u(t),pause:r,resume:n,eventFilter:i}}function JO(e){return e}function zu(e){return _C()?(ID(e),!0):!1}function eR(e,t=200,r={}){return xT(ZO(t,r),e)}function tR(e,t=200,r={}){const n=B(e.value),i=eR(()=>{n.value=e.value},t,r);return Se(e,()=>i()),n}function rR(e){return typeof e=="function"?k(e):B(e)}function CT(e,t=!0){ct()?wt(e):t?e():Ft(e)}function kp(e,t,r={}){const{immediate:n=!0}=r,i=B(!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)},ho(t))}return n&&(i.value=!0,Nt&&l()),zu(s),{isPending:$u(i),start:l,stop:s}}function nR(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,i=Ct(e),a=B(e);function o(s){if(arguments.length)return a.value=s,a.value;{const l=ho(r);return a.value=a.value===l?ho(n):l,a.value}}return i?o:[a,o]}var k_=Object.getOwnPropertySymbols,iR=Object.prototype.hasOwnProperty,aR=Object.prototype.propertyIsEnumerable,oR=(e,t)=>{var r={};for(var n in e)iR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&k_)for(var n of k_(e))t.indexOf(n)<0&&aR.call(e,n)&&(r[n]=e[n]);return r};function sR(e,t,r={}){const n=r,{eventFilter:i=ST}=n,a=oR(n,["eventFilter"]);return Se(e,xT(i,t),a)}var lR=Object.defineProperty,uR=Object.defineProperties,cR=Object.getOwnPropertyDescriptors,ed=Object.getOwnPropertySymbols,TT=Object.prototype.hasOwnProperty,MT=Object.prototype.propertyIsEnumerable,N_=(e,t,r)=>t in e?lR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fR=(e,t)=>{for(var r in t||(t={}))TT.call(t,r)&&N_(e,r,t[r]);if(ed)for(var r of ed(t))MT.call(t,r)&&N_(e,r,t[r]);return e},dR=(e,t)=>uR(e,cR(t)),hR=(e,t)=>{var r={};for(var n in e)TT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ed)for(var n of ed(e))t.indexOf(n)<0&&MT.call(e,n)&&(r[n]=e[n]);return r};function vR(e,t,r={}){const n=r,{eventFilter:i}=n,a=hR(n,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=QO(i);return{stop:sR(e,t,dR(fR({},a),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Ui(e){var t;const r=ho(e);return(t=r==null?void 0:r.$el)!=null?t:r}const ra=Nt?window:void 0;function xn(...e){let t,r,n,i;if(XO(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=ra):[t,r,n,i]=e,!t)return Rp;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,d)=>(c.addEventListener(f,d,i),()=>c.removeEventListener(f,d,i)),l=Se(()=>Ui(t),c=>{o(),c&&a.push(...r.flatMap(f=>n.map(d=>s(c,f,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return zu(u),u}function pR(e,t,r={}){const{window:n=ra,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=Ui(v);return p&&(h.target===p||h.composedPath().includes(p))}}),c=h=>{n.clearTimeout(l);const v=Ui(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(s=!u(h)),!s){s=!0;return}t(h)}},f=[xn(n,"click",c,{passive:!0,capture:a}),xn(n,"pointerdown",h=>{const v=Ui(e);v&&(s=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),xn(n,"pointerup",h=>{if(h.button===0){const v=h.composedPath();h.composedPath=()=>v,l=n.setTimeout(()=>c(h),50)}},{passive:!0}),o&&xn(n,"blur",h=>{var v;const p=Ui(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(h)})].filter(Boolean);return()=>f.forEach(h=>h())}function AT(e,t=!1){const r=B(),n=()=>r.value=Boolean(e());return n(),CT(n,t),r}function gR(e,t={}){const{window:r=ra}=t,n=AT(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=B(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},s=()=>{n.value&&(o(),i=r.matchMedia(rR(e).value),a.value=i.matches,"addEventListener"in i?i.addEventListener("change",s):i.addListener(s))};return io(s),zu(()=>o()),a}const Np=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fp="__vueuse_ssr_handlers__";Np[Fp]=Np[Fp]||{};const mR=Np[Fp];function ET(e,t){return mR[e]||t}function yR(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var _R=Object.defineProperty,F_=Object.getOwnPropertySymbols,bR=Object.prototype.hasOwnProperty,wR=Object.prototype.propertyIsEnumerable,B_=(e,t,r)=>t in e?_R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$_=(e,t)=>{for(var r in t||(t={}))bR.call(t,r)&&B_(e,r,t[r]);if(F_)for(var r of F_(t))wR.call(t,r)&&B_(e,r,t[r]);return e};const xR={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function SR(e,t,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=ra,eventFilter:d,onError:h=S=>{console.error(S)}}=n,v=(c?$m:B)(t);if(!r)try{r=ET("getDefaultStorage",()=>{var S;return(S=ra)==null?void 0:S.localStorage})()}catch(S){h(S)}if(!r)return v;const p=ho(t),g=yR(p),m=(i=n.serializer)!=null?i:xR[g],{pause:y,resume:_}=vR(v,()=>b(v.value),{flush:a,deep:o,eventFilter:d});return f&&s&&xn(f,"storage",w),w(),v;function b(S){try{if(S==null)r.removeItem(e);else{const C=m.write(S),M=r.getItem(e);M!==C&&(r.setItem(e,C),f&&(f==null||f.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:M,newValue:C,storageArea:r}))))}}catch(C){h(C)}}function x(S){const C=S?S.newValue:r.getItem(e);if(C==null)return l&&p!==null&&r.setItem(e,m.write(p)),p;if(!S&&u){const M=m.read(C);return KO(u)?u(M,p):g==="object"&&!Array.isArray(M)?$_($_({},p),M):M}else return typeof C!="string"?C:m.read(C)}function w(S){if(!(S&&S.storageArea!==r)){if(S&&S.key==null){v.value=p;return}if(!(S&&S.key!==e)){y();try{v.value=x(S)}catch(C){h(C)}finally{S?Ft(_):_()}}}}}function PT(e){return gR("(prefers-color-scheme: dark)",e)}var CR=Object.defineProperty,H_=Object.getOwnPropertySymbols,TR=Object.prototype.hasOwnProperty,MR=Object.prototype.propertyIsEnumerable,z_=(e,t,r)=>t in e?CR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,AR=(e,t)=>{for(var r in t||(t={}))TR.call(t,r)&&z_(e,r,t[r]);if(H_)for(var r of H_(t))MR.call(t,r)&&z_(e,r,t[r]);return e};function ER(e={}){const{selector:t="html",attribute:r="class",initialValue:n="auto",window:i=ra,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:u}=e,c=AR({auto:"",light:"light",dark:"dark"},e.modes||{}),f=PT({window:i}),d=k(()=>f.value?"dark":"light"),h=l||(o==null?B(n):SR(o,n,a,{window:i,listenToStorageChanges:s})),v=k({get(){return h.value==="auto"&&!u?d.value:h.value},set(y){h.value=y}}),p=ET("updateHTMLAttrs",(y,_,b)=>{const x=i==null?void 0:i.document.querySelector(y);if(x)if(_==="class"){const w=b.split(/\s/g);Object.values(c).flatMap(S=>(S||"").split(/\s/g)).filter(Boolean).forEach(S=>{w.includes(S)?x.classList.add(S):x.classList.remove(S)})}else x.setAttribute(_,b)});function g(y){var _;const b=y==="auto"?d.value:y;p(t,r,(_=c[b])!=null?_:b)}function m(y){e.onChanged?e.onChanged(y,g):g(y)}return Se(v,m,{flush:"post",immediate:!0}),u&&Se(d,()=>m(v.value),{flush:"post"}),CT(()=>m(v.value)),v}var PR=Object.defineProperty,LR=Object.defineProperties,DR=Object.getOwnPropertyDescriptors,W_=Object.getOwnPropertySymbols,IR=Object.prototype.hasOwnProperty,OR=Object.prototype.propertyIsEnumerable,V_=(e,t,r)=>t in e?PR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,RR=(e,t)=>{for(var r in t||(t={}))IR.call(t,r)&&V_(e,r,t[r]);if(W_)for(var r of W_(t))OR.call(t,r)&&V_(e,r,t[r]);return e},kR=(e,t)=>LR(e,DR(t));function NR(e={}){const{valueDark:t="dark",valueLight:r="",window:n=ra}=e,i=ER(kR(RR({},e),{onChanged:(s,l)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,s==="dark"):l(s)},modes:{dark:t,light:r}})),a=PT({window:n});return k({get(){return i.value==="dark"},set(s){s===a.value?i.value="auto":i.value=s?"dark":"light"}})}var G_=Object.getOwnPropertySymbols,FR=Object.prototype.hasOwnProperty,BR=Object.prototype.propertyIsEnumerable,$R=(e,t)=>{var r={};for(var n in e)FR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&G_)for(var n of G_(e))t.indexOf(n)<0&&BR.call(e,n)&&(r[n]=e[n]);return r};function gs(e,t,r={}){const n=r,{window:i=ra}=n,a=$R(n,["window"]);let o;const s=AT(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=Se(()=>Ui(e),f=>{l(),s.value&&i&&f&&(o=new ResizeObserver(t),o.observe(f,a))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return zu(c),{isSupported:s,stop:c}}var U_;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(U_||(U_={}));var HR=Object.defineProperty,j_=Object.getOwnPropertySymbols,zR=Object.prototype.hasOwnProperty,WR=Object.prototype.propertyIsEnumerable,Y_=(e,t,r)=>t in e?HR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VR=(e,t)=>{for(var r in t||(t={}))zR.call(t,r)&&Y_(e,r,t[r]);if(j_)for(var r of j_(t))WR.call(t,r)&&Y_(e,r,t[r]);return e};const GR={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]};VR({linear:JO},GR);var UR=typeof global=="object"&&global&&global.Object===Object&&global;const LT=UR;var jR=typeof self=="object"&&self&&self.Object===Object&&self,YR=LT||jR||Function("return this")();const Pn=YR;var qR=Pn.Symbol;const sn=qR;var DT=Object.prototype,KR=DT.hasOwnProperty,XR=DT.toString,Ks=sn?sn.toStringTag:void 0;function ZR(e){var t=KR.call(e,Ks),r=e[Ks];try{e[Ks]=void 0;var n=!0}catch{}var i=XR.call(e);return n&&(t?e[Ks]=r:delete e[Ks]),i}var QR=Object.prototype,JR=QR.toString;function ek(e){return JR.call(e)}var tk="[object Null]",rk="[object Undefined]",q_=sn?sn.toStringTag:void 0;function So(e){return e==null?e===void 0?rk:tk:q_&&q_ in Object(e)?ZR(e):ek(e)}function qn(e){return e!=null&&typeof e=="object"}var nk="[object Symbol]";function qd(e){return typeof e=="symbol"||qn(e)&&So(e)==nk}function IT(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var ik=Array.isArray;const fr=ik;var ak=1/0,K_=sn?sn.prototype:void 0,X_=K_?K_.toString:void 0;function OT(e){if(typeof e=="string")return e;if(fr(e))return IT(e,OT)+"";if(qd(e))return X_?X_.call(e):"";var t=e+"";return t=="0"&&1/e==-ak?"-0":t}var ok=/\s/;function sk(e){for(var t=e.length;t--&&ok.test(e.charAt(t)););return t}var lk=/^\s+/;function uk(e){return e&&e.slice(0,sk(e)+1).replace(lk,"")}function Ar(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Z_=0/0,ck=/^[-+]0x[0-9a-f]+$/i,fk=/^0b[01]+$/i,dk=/^0o[0-7]+$/i,hk=parseInt;function Q_(e){if(typeof e=="number")return e;if(qd(e))return Z_;if(Ar(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ar(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uk(e);var r=fk.test(e);return r||dk.test(e)?hk(e.slice(2),r?2:8):ck.test(e)?Z_:+e}function Xm(e){return e}var vk="[object AsyncFunction]",pk="[object Function]",gk="[object GeneratorFunction]",mk="[object Proxy]";function Zm(e){if(!Ar(e))return!1;var t=So(e);return t==pk||t==gk||t==vk||t==mk}var yk=Pn["__core-js_shared__"];const $h=yk;var J_=function(){var e=/[^.]+$/.exec($h&&$h.keys&&$h.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _k(e){return!!J_&&J_ in e}var bk=Function.prototype,wk=bk.toString;function Co(e){if(e!=null){try{return wk.call(e)}catch{}try{return e+""}catch{}}return""}var xk=/[\\^$.*+?()[\]{}|]/g,Sk=/^\[object .+?Constructor\]$/,Ck=Function.prototype,Tk=Object.prototype,Mk=Ck.toString,Ak=Tk.hasOwnProperty,Ek=RegExp("^"+Mk.call(Ak).replace(xk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pk(e){if(!Ar(e)||_k(e))return!1;var t=Zm(e)?Ek:Sk;return t.test(Co(e))}function Lk(e,t){return e==null?void 0:e[t]}function To(e,t){var r=Lk(e,t);return Pk(r)?r:void 0}var Dk=To(Pn,"WeakMap");const Bp=Dk;var eb=Object.create,Ik=function(){function e(){}return function(t){if(!Ar(t))return{};if(eb)return eb(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Ok=Ik;function Rk(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function RT(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var kk=800,Nk=16,Fk=Date.now;function Bk(e){var t=0,r=0;return function(){var n=Fk(),i=Nk-(n-r);if(r=n,i>0){if(++t>=kk)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function $k(e){return function(){return e}}var Hk=function(){try{var e=To(Object,"defineProperty");return e({},"",{}),e}catch{}}();const td=Hk;var zk=td?function(e,t){return td(e,"toString",{configurable:!0,enumerable:!1,value:$k(t),writable:!0})}:Xm;const Wk=zk;var Vk=Bk(Wk);const kT=Vk;function Gk(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Uk=9007199254740991,jk=/^(?:0|[1-9]\d*)$/;function Kd(e,t){var r=typeof e;return t=t??Uk,!!t&&(r=="number"||r!="symbol"&&jk.test(e))&&e>-1&&e%1==0&&e<t}function Qm(e,t,r){t=="__proto__"&&td?td(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Wu(e,t){return e===t||e!==e&&t!==t}var Yk=Object.prototype,qk=Yk.hasOwnProperty;function Jm(e,t,r){var n=e[t];(!(qk.call(e,t)&&Wu(n,r))||r===void 0&&!(t in e))&&Qm(e,t,r)}function Vu(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),i?Qm(r,s,l):Jm(r,s,l)}return r}var tb=Math.max;function NT(e,t,r){return t=tb(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=tb(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Rk(e,this,s)}}function Kk(e,t){return kT(NT(e,t,Xm),e+"")}var Xk=9007199254740991;function ey(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xk}function Fs(e){return e!=null&&ey(e.length)&&!Zm(e)}function Zk(e,t,r){if(!Ar(r))return!1;var n=typeof t;return(n=="number"?Fs(r)&&Kd(t,r.length):n=="string"&&t in r)?Wu(r[t],e):!1}function Qk(e){return Kk(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&&Zk(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var Jk=Object.prototype;function ty(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Jk;return e===r}function eN(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var tN="[object Arguments]";function rb(e){return qn(e)&&So(e)==tN}var FT=Object.prototype,rN=FT.hasOwnProperty,nN=FT.propertyIsEnumerable,iN=rb(function(){return arguments}())?rb:function(e){return qn(e)&&rN.call(e,"callee")&&!nN.call(e,"callee")};const cu=iN;function aN(){return!1}var BT=typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,nb=BT&&typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,oN=nb&&nb.exports===BT,ib=oN?Pn.Buffer:void 0,sN=ib?ib.isBuffer:void 0,lN=sN||aN;const fu=lN;var uN="[object Arguments]",cN="[object Array]",fN="[object Boolean]",dN="[object Date]",hN="[object Error]",vN="[object Function]",pN="[object Map]",gN="[object Number]",mN="[object Object]",yN="[object RegExp]",_N="[object Set]",bN="[object String]",wN="[object WeakMap]",xN="[object ArrayBuffer]",SN="[object DataView]",CN="[object Float32Array]",TN="[object Float64Array]",MN="[object Int8Array]",AN="[object Int16Array]",EN="[object Int32Array]",PN="[object Uint8Array]",LN="[object Uint8ClampedArray]",DN="[object Uint16Array]",IN="[object Uint32Array]",mt={};mt[CN]=mt[TN]=mt[MN]=mt[AN]=mt[EN]=mt[PN]=mt[LN]=mt[DN]=mt[IN]=!0;mt[uN]=mt[cN]=mt[xN]=mt[fN]=mt[SN]=mt[dN]=mt[hN]=mt[vN]=mt[pN]=mt[gN]=mt[mN]=mt[yN]=mt[_N]=mt[bN]=mt[wN]=!1;function ON(e){return qn(e)&&ey(e.length)&&!!mt[So(e)]}function ry(e){return function(t){return e(t)}}var $T=typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,Il=$T&&typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,RN=Il&&Il.exports===$T,Hh=RN&&LT.process,kN=function(){try{var e=Il&&Il.require&&Il.require("util").types;return e||Hh&&Hh.binding&&Hh.binding("util")}catch{}}();const ms=kN;var ab=ms&&ms.isTypedArray,NN=ab?ry(ab):ON;const ny=NN;var FN=Object.prototype,BN=FN.hasOwnProperty;function HT(e,t){var r=fr(e),n=!r&&cu(e),i=!r&&!n&&fu(e),a=!r&&!n&&!i&&ny(e),o=r||n||i||a,s=o?eN(e.length,String):[],l=s.length;for(var u in e)(t||BN.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Kd(u,l)))&&s.push(u);return s}function zT(e,t){return function(r){return e(t(r))}}var $N=zT(Object.keys,Object);const HN=$N;var zN=Object.prototype,WN=zN.hasOwnProperty;function VN(e){if(!ty(e))return HN(e);var t=[];for(var r in Object(e))WN.call(e,r)&&r!="constructor"&&t.push(r);return t}function Gu(e){return Fs(e)?HT(e):VN(e)}function GN(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var UN=Object.prototype,jN=UN.hasOwnProperty;function YN(e){if(!Ar(e))return GN(e);var t=ty(e),r=[];for(var n in e)n=="constructor"&&(t||!jN.call(e,n))||r.push(n);return r}function Uu(e){return Fs(e)?HT(e,!0):YN(e)}var qN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KN=/^\w*$/;function iy(e,t){if(fr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qd(e)?!0:KN.test(e)||!qN.test(e)||t!=null&&e in Object(t)}var XN=To(Object,"create");const du=XN;function ZN(){this.__data__=du?du(null):{},this.size=0}function QN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var JN="__lodash_hash_undefined__",eF=Object.prototype,tF=eF.hasOwnProperty;function rF(e){var t=this.__data__;if(du){var r=t[e];return r===JN?void 0:r}return tF.call(t,e)?t[e]:void 0}var nF=Object.prototype,iF=nF.hasOwnProperty;function aF(e){var t=this.__data__;return du?t[e]!==void 0:iF.call(t,e)}var oF="__lodash_hash_undefined__";function sF(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=du&&t===void 0?oF:t,this}function vo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vo.prototype.clear=ZN;vo.prototype.delete=QN;vo.prototype.get=rF;vo.prototype.has=aF;vo.prototype.set=sF;function lF(){this.__data__=[],this.size=0}function Xd(e,t){for(var r=e.length;r--;)if(Wu(e[r][0],t))return r;return-1}var uF=Array.prototype,cF=uF.splice;function fF(e){var t=this.__data__,r=Xd(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():cF.call(t,r,1),--this.size,!0}function dF(e){var t=this.__data__,r=Xd(t,e);return r<0?void 0:t[r][1]}function hF(e){return Xd(this.__data__,e)>-1}function vF(e,t){var r=this.__data__,n=Xd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ti(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ti.prototype.clear=lF;Ti.prototype.delete=fF;Ti.prototype.get=dF;Ti.prototype.has=hF;Ti.prototype.set=vF;var pF=To(Pn,"Map");const hu=pF;function gF(){this.size=0,this.__data__={hash:new vo,map:new(hu||Ti),string:new vo}}function mF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Zd(e,t){var r=e.__data__;return mF(t)?r[typeof t=="string"?"string":"hash"]:r.map}function yF(e){var t=Zd(this,e).delete(e);return this.size-=t?1:0,t}function _F(e){return Zd(this,e).get(e)}function bF(e){return Zd(this,e).has(e)}function wF(e,t){var r=Zd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Mi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mi.prototype.clear=gF;Mi.prototype.delete=yF;Mi.prototype.get=_F;Mi.prototype.has=bF;Mi.prototype.set=wF;var xF="Expected a function";function ay(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xF);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(ay.Cache||Mi),r}ay.Cache=Mi;var SF=500;function CF(e){var t=ay(e,function(n){return r.size===SF&&r.clear(),n}),r=t.cache;return t}var TF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MF=/\\(\\)?/g,AF=CF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(TF,function(r,n,i,a){t.push(i?a.replace(MF,"$1"):n||r)}),t});const EF=AF;function PF(e){return e==null?"":OT(e)}function Qd(e,t){return fr(e)?e:iy(e,t)?[e]:EF(PF(e))}var LF=1/0;function ju(e){if(typeof e=="string"||qd(e))return e;var t=e+"";return t=="0"&&1/e==-LF?"-0":t}function oy(e,t){t=Qd(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ju(t[r++])];return r&&r==n?e:void 0}function vu(e,t,r){var n=e==null?void 0:oy(e,t);return n===void 0?r:n}function sy(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ob=sn?sn.isConcatSpreadable:void 0;function DF(e){return fr(e)||cu(e)||!!(ob&&e&&e[ob])}function ly(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=DF),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?ly(s,t-1,r,n,i):sy(i,s):n||(i[i.length]=s)}return i}function IF(e){var t=e==null?0:e.length;return t?ly(e,1):[]}function OF(e){return kT(NT(e,void 0,IF),e+"")}var RF=zT(Object.getPrototypeOf,Object);const uy=RF;var kF="[object Object]",NF=Function.prototype,FF=Object.prototype,WT=NF.toString,BF=FF.hasOwnProperty,$F=WT.call(Object);function HF(e){if(!qn(e)||So(e)!=kF)return!1;var t=uy(e);if(t===null)return!0;var r=BF.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&WT.call(r)==$F}function $p(){if(!arguments.length)return[];var e=arguments[0];return fr(e)?e:[e]}function zF(){this.__data__=new Ti,this.size=0}function WF(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function VF(e){return this.__data__.get(e)}function GF(e){return this.__data__.has(e)}var UF=200;function jF(e,t){var r=this.__data__;if(r instanceof Ti){var n=r.__data__;if(!hu||n.length<UF-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Mi(n)}return r.set(e,t),this.size=r.size,this}function Mn(e){var t=this.__data__=new Ti(e);this.size=t.size}Mn.prototype.clear=zF;Mn.prototype.delete=WF;Mn.prototype.get=VF;Mn.prototype.has=GF;Mn.prototype.set=jF;function YF(e,t){return e&&Vu(t,Gu(t),e)}function qF(e,t){return e&&Vu(t,Uu(t),e)}var VT=typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,sb=VT&&typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,KF=sb&&sb.exports===VT,lb=KF?Pn.Buffer:void 0,ub=lb?lb.allocUnsafe:void 0;function GT(e,t){if(t)return e.slice();var r=e.length,n=ub?ub(r):new e.constructor(r);return e.copy(n),n}function XF(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function UT(){return[]}var ZF=Object.prototype,QF=ZF.propertyIsEnumerable,cb=Object.getOwnPropertySymbols,JF=cb?function(e){return e==null?[]:(e=Object(e),XF(cb(e),function(t){return QF.call(e,t)}))}:UT;const cy=JF;function eB(e,t){return Vu(e,cy(e),t)}var tB=Object.getOwnPropertySymbols,rB=tB?function(e){for(var t=[];e;)sy(t,cy(e)),e=uy(e);return t}:UT;const jT=rB;function nB(e,t){return Vu(e,jT(e),t)}function YT(e,t,r){var n=t(e);return fr(e)?n:sy(n,r(e))}function Hp(e){return YT(e,Gu,cy)}function iB(e){return YT(e,Uu,jT)}var aB=To(Pn,"DataView");const zp=aB;var oB=To(Pn,"Promise");const Wp=oB;var sB=To(Pn,"Set");const Vp=sB;var fb="[object Map]",lB="[object Object]",db="[object Promise]",hb="[object Set]",vb="[object WeakMap]",pb="[object DataView]",uB=Co(zp),cB=Co(hu),fB=Co(Wp),dB=Co(Vp),hB=Co(Bp),Wa=So;(zp&&Wa(new zp(new ArrayBuffer(1)))!=pb||hu&&Wa(new hu)!=fb||Wp&&Wa(Wp.resolve())!=db||Vp&&Wa(new Vp)!=hb||Bp&&Wa(new Bp)!=vb)&&(Wa=function(e){var t=So(e),r=t==lB?e.constructor:void 0,n=r?Co(r):"";if(n)switch(n){case uB:return pb;case cB:return fb;case fB:return db;case dB:return hb;case hB:return vb}return t});const pu=Wa;var vB=Object.prototype,pB=vB.hasOwnProperty;function gB(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&pB.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var mB=Pn.Uint8Array;const rd=mB;function fy(e){var t=new e.constructor(e.byteLength);return new rd(t).set(new rd(e)),t}function yB(e,t){var r=t?fy(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var _B=/\w*$/;function bB(e){var t=new e.constructor(e.source,_B.exec(e));return t.lastIndex=e.lastIndex,t}var gb=sn?sn.prototype:void 0,mb=gb?gb.valueOf:void 0;function wB(e){return mb?Object(mb.call(e)):{}}function qT(e,t){var r=t?fy(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var xB="[object Boolean]",SB="[object Date]",CB="[object Map]",TB="[object Number]",MB="[object RegExp]",AB="[object Set]",EB="[object String]",PB="[object Symbol]",LB="[object ArrayBuffer]",DB="[object DataView]",IB="[object Float32Array]",OB="[object Float64Array]",RB="[object Int8Array]",kB="[object Int16Array]",NB="[object Int32Array]",FB="[object Uint8Array]",BB="[object Uint8ClampedArray]",$B="[object Uint16Array]",HB="[object Uint32Array]";function zB(e,t,r){var n=e.constructor;switch(t){case LB:return fy(e);case xB:case SB:return new n(+e);case DB:return yB(e,r);case IB:case OB:case RB:case kB:case NB:case FB:case BB:case $B:case HB:return qT(e,r);case CB:return new n;case TB:case EB:return new n(e);case MB:return bB(e);case AB:return new n;case PB:return wB(e)}}function KT(e){return typeof e.constructor=="function"&&!ty(e)?Ok(uy(e)):{}}var WB="[object Map]";function VB(e){return qn(e)&&pu(e)==WB}var yb=ms&&ms.isMap,GB=yb?ry(yb):VB;const UB=GB;var jB="[object Set]";function YB(e){return qn(e)&&pu(e)==jB}var _b=ms&&ms.isSet,qB=_b?ry(_b):YB;const KB=qB;var XB=1,ZB=2,QB=4,XT="[object Arguments]",JB="[object Array]",e$="[object Boolean]",t$="[object Date]",r$="[object Error]",ZT="[object Function]",n$="[object GeneratorFunction]",i$="[object Map]",a$="[object Number]",QT="[object Object]",o$="[object RegExp]",s$="[object Set]",l$="[object String]",u$="[object Symbol]",c$="[object WeakMap]",f$="[object ArrayBuffer]",d$="[object DataView]",h$="[object Float32Array]",v$="[object Float64Array]",p$="[object Int8Array]",g$="[object Int16Array]",m$="[object Int32Array]",y$="[object Uint8Array]",_$="[object Uint8ClampedArray]",b$="[object Uint16Array]",w$="[object Uint32Array]",vt={};vt[XT]=vt[JB]=vt[f$]=vt[d$]=vt[e$]=vt[t$]=vt[h$]=vt[v$]=vt[p$]=vt[g$]=vt[m$]=vt[i$]=vt[a$]=vt[QT]=vt[o$]=vt[s$]=vt[l$]=vt[u$]=vt[y$]=vt[_$]=vt[b$]=vt[w$]=!0;vt[r$]=vt[ZT]=vt[c$]=!1;function xf(e,t,r,n,i,a){var o,s=t&XB,l=t&ZB,u=t&QB;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!Ar(e))return e;var c=fr(e);if(c){if(o=gB(e),!s)return RT(e,o)}else{var f=pu(e),d=f==ZT||f==n$;if(fu(e))return GT(e,s);if(f==QT||f==XT||d&&!i){if(o=l||d?{}:KT(e),!s)return l?nB(e,qF(o,e)):eB(e,YF(o,e))}else{if(!vt[f])return i?e:{};o=zB(e,f,s)}}a||(a=new Mn);var h=a.get(e);if(h)return h;a.set(e,o),KB(e)?e.forEach(function(g){o.add(xf(g,t,r,g,e,a))}):UB(e)&&e.forEach(function(g,m){o.set(m,xf(g,t,r,m,e,a))});var v=u?l?iB:Hp:l?Uu:Gu,p=c?void 0:v(e);return Gk(p||e,function(g,m){p&&(m=g,g=e[m]),Jm(o,m,xf(g,t,r,m,e,a))}),o}var x$=4;function bb(e){return xf(e,x$)}var S$="__lodash_hash_undefined__";function C$(e){return this.__data__.set(e,S$),this}function T$(e){return this.__data__.has(e)}function nd(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Mi;++t<r;)this.add(e[t])}nd.prototype.add=nd.prototype.push=C$;nd.prototype.has=T$;function M$(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function A$(e,t){return e.has(t)}var E$=1,P$=2;function JT(e,t,r,n,i,a){var o=r&E$,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&P$?new nd:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var v=e[f],p=t[f];if(n)var g=o?n(p,v,f,t,e,a):n(v,p,f,e,t,a);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!M$(t,function(m,y){if(!A$(h,y)&&(v===m||i(v,m,r,n,a)))return h.push(y)})){d=!1;break}}else if(!(v===p||i(v,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function L$(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function D$(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var I$=1,O$=2,R$="[object Boolean]",k$="[object Date]",N$="[object Error]",F$="[object Map]",B$="[object Number]",$$="[object RegExp]",H$="[object Set]",z$="[object String]",W$="[object Symbol]",V$="[object ArrayBuffer]",G$="[object DataView]",wb=sn?sn.prototype:void 0,zh=wb?wb.valueOf:void 0;function U$(e,t,r,n,i,a,o){switch(r){case G$:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case V$:return!(e.byteLength!=t.byteLength||!a(new rd(e),new rd(t)));case R$:case k$:case B$:return Wu(+e,+t);case N$:return e.name==t.name&&e.message==t.message;case $$:case z$:return e==t+"";case F$:var s=L$;case H$:var l=n&I$;if(s||(s=D$),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=O$,o.set(e,t);var c=JT(s(e),s(t),n,i,a,o);return o.delete(e),c;case W$:if(zh)return zh.call(e)==zh.call(t)}return!1}var j$=1,Y$=Object.prototype,q$=Y$.hasOwnProperty;function K$(e,t,r,n,i,a){var o=r&j$,s=Hp(e),l=s.length,u=Hp(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:q$.call(t,d)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=o;++f<l;){d=s[f];var m=e[d],y=t[d];if(n)var _=o?n(y,m,d,t,e,a):n(m,y,d,e,t,a);if(!(_===void 0?m===y||i(m,y,r,n,a):_)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof x=="function"&&x instanceof x)&&(p=!1)}return a.delete(e),a.delete(t),p}var X$=1,xb="[object Arguments]",Sb="[object Array]",gc="[object Object]",Z$=Object.prototype,Cb=Z$.hasOwnProperty;function Q$(e,t,r,n,i,a){var o=fr(e),s=fr(t),l=o?Sb:pu(e),u=s?Sb:pu(t);l=l==xb?gc:l,u=u==xb?gc:u;var c=l==gc,f=u==gc,d=l==u;if(d&&fu(e)){if(!fu(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new Mn),o||ny(e)?JT(e,t,r,n,i,a):U$(e,t,l,r,n,i,a);if(!(r&X$)){var h=c&&Cb.call(e,"__wrapped__"),v=f&&Cb.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return a||(a=new Mn),i(p,g,r,n,a)}}return d?(a||(a=new Mn),K$(e,t,r,n,i,a)):!1}function Jd(e,t,r,n,i){return e===t?!0:e==null||t==null||!qn(e)&&!qn(t)?e!==e&&t!==t:Q$(e,t,r,n,Jd,i)}var J$=1,e5=2;function t5(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new Mn;if(n)var d=n(u,c,l,e,t,f);if(!(d===void 0?Jd(c,u,J$|e5,n,f):d))return!1}}return!0}function eM(e){return e===e&&!Ar(e)}function r5(e){for(var t=Gu(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,eM(i)]}return t}function tM(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function n5(e){var t=r5(e);return t.length==1&&t[0][2]?tM(t[0][0],t[0][1]):function(r){return r===e||t5(r,e,t)}}function i5(e,t){return e!=null&&t in Object(e)}function a5(e,t,r){t=Qd(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=ju(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&ey(i)&&Kd(o,i)&&(fr(e)||cu(e)))}function rM(e,t){return e!=null&&a5(e,t,i5)}var o5=1,s5=2;function l5(e,t){return iy(e)&&eM(t)?tM(ju(e),t):function(r){var n=vu(r,e);return n===void 0&&n===t?rM(r,e):Jd(t,n,o5|s5)}}function u5(e){return function(t){return t==null?void 0:t[e]}}function c5(e){return function(t){return oy(t,e)}}function f5(e){return iy(e)?u5(ju(e)):c5(e)}function d5(e){return typeof e=="function"?e:e==null?Xm:typeof e=="object"?fr(e)?l5(e[0],e[1]):n5(e):f5(e)}function h5(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var v5=h5();const nM=v5;function p5(e,t){return e&&nM(e,t,Gu)}function g5(e,t){return function(r,n){if(r==null)return r;if(!Fs(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var m5=g5(p5);const y5=m5;var _5=function(){return Pn.Date.now()};const Wh=_5;var b5="Expected a function",w5=Math.max,x5=Math.min;function id(e,t,r){var n,i,a,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(b5);t=Q_(t)||0,Ar(r)&&(c=!!r.leading,f="maxWait"in r,a=f?w5(Q_(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(w){var S=n,C=i;return n=i=void 0,u=w,o=e.apply(C,S),o}function v(w){return u=w,s=setTimeout(m,t),c?h(w):o}function p(w){var S=w-l,C=w-u,M=t-S;return f?x5(M,a-C):M}function g(w){var S=w-l,C=w-u;return l===void 0||S>=t||S<0||f&&C>=a}function m(){var w=Wh();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(Wh())}function x(){var w=Wh(),S=g(w);if(n=arguments,i=this,l=w,S){if(s===void 0)return v(l);if(f)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 Gp(e,t,r){(r!==void 0&&!Wu(e[t],r)||r===void 0&&!(t in e))&&Qm(e,t,r)}function S5(e){return qn(e)&&Fs(e)}function Up(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function C5(e){return Vu(e,Uu(e))}function T5(e,t,r,n,i,a,o){var s=Up(e,r),l=Up(t,r),u=o.get(l);if(u){Gp(e,r,u);return}var c=a?a(s,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var d=fr(l),h=!d&&fu(l),v=!d&&!h&&ny(l);c=l,d||h||v?fr(s)?c=s:S5(s)?c=RT(s):h?(f=!1,c=GT(l,!0)):v?(f=!1,c=qT(l,!0)):c=[]:HF(l)||cu(l)?(c=s,cu(s)?c=C5(s):(!Ar(s)||Zm(s))&&(c=KT(l))):f=!1}f&&(o.set(l,c),i(c,l,n,a,o),o.delete(l)),Gp(e,r,c)}function iM(e,t,r,n,i){e!==t&&nM(t,function(a,o){if(i||(i=new Mn),Ar(a))T5(e,t,o,r,iM,n,i);else{var s=n?n(Up(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),Gp(e,o,s)}},Uu)}function M5(e,t){var r=-1,n=Fs(e)?Array(e.length):[];return y5(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function A5(e,t){var r=fr(e)?IT:M5;return r(e,d5(t))}function E5(e,t){return ly(A5(e,t),1)}function jp(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function P5(e,t){return Jd(e,t)}function gu(e){return e==null}function L5(e){return e===void 0}var D5=Qk(function(e,t,r){iM(e,t,r)});const aM=D5;function oM(e,t,r,n){if(!Ar(e))return e;t=Qd(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=ju(t[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var c=s[l];u=n?n(c,l,s):void 0,u===void 0&&(u=Ar(c)?c:Kd(t[i+1])?[]:{})}Jm(s,l,u),s=s[l]}return e}function I5(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=oy(e,o);r(s,o)&&oM(a,Qd(o,e),s)}return a}function O5(e,t){return I5(e,t,function(r,n){return rM(e,n)})}var R5=OF(function(e,t){return e==null?{}:O5(e,t)});const k5=R5;function N5(e,t,r){return e==null?e:oM(e,t,r)}const ad=e=>e===void 0,ys=e=>typeof Element>"u"?!1:e instanceof Element,F5=e=>He(e)?!Number.isNaN(Number(e)):!1,Tb=e=>Object.keys(e),Sf=(e,t,r)=>({get value(){return vu(e,t,r)},set value(n){N5(e,t,n)}});class B5 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function na(e,t){throw new B5(`[${e}] ${t}`)}const sM=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ol=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Zo=(e,t)=>{!e||!t.trim()||e.classList.add(...sM(t))},ss=(e,t)=>{!e||!t.trim()||e.classList.remove(...sM(t))},Mb=(e,t)=>{var r;if(!Nt||!e||!t)return"";let n=An(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 po(e,t="px"){if(!e)return"";if($t(e)||F5(e))return`${e}${t}`;if(He(e))return e}/*! Element Plus Icons Vue v2.0.10 */var Zn=(e,t)=>{let r=e.__vccOpts||e;for(let[n,i]of t)r[n]=i;return r},$5={name:"ArrowDown"},H5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},z5=ae("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),W5=[z5];function V5(e,t,r,n,i,a){return Y(),me("svg",H5,W5)}var lM=Zn($5,[["render",V5],["__file","arrow-down.vue"]]),G5={name:"ArrowRight"},U5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},j5=ae("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),Y5=[j5];function q5(e,t,r,n,i,a){return Y(),me("svg",U5,Y5)}var dy=Zn(G5,[["render",q5],["__file","arrow-right.vue"]]),K5={name:"ArrowUp"},X5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Z5=ae("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),Q5=[Z5];function J5(e,t,r,n,i,a){return Y(),me("svg",X5,Q5)}var e3=Zn(K5,[["render",J5],["__file","arrow-up.vue"]]),t3={name:"CircleCloseFilled"},r3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},n3=ae("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),i3=[n3];function a3(e,t,r,n,i,a){return Y(),me("svg",r3,i3)}var uM=Zn(t3,[["render",a3],["__file","circle-close-filled.vue"]]),o3={name:"Close"},s3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},l3=ae("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),u3=[l3];function c3(e,t,r,n,i,a){return Y(),me("svg",s3,u3)}var Yp=Zn(o3,[["render",c3],["__file","close.vue"]]),f3={name:"InfoFilled"},d3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},h3=ae("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),v3=[h3];function p3(e,t,r,n,i,a){return Y(),me("svg",d3,v3)}var cM=Zn(f3,[["render",p3],["__file","info-filled.vue"]]),g3={name:"Loading"},m3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},y3=ae("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),_3=[y3];function b3(e,t,r,n,i,a){return Y(),me("svg",m3,_3)}var hy=Zn(g3,[["render",b3],["__file","loading.vue"]]),w3={name:"More"},x3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},S3=ae("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),C3=[S3];function T3(e,t,r,n,i,a){return Y(),me("svg",x3,C3)}var M3=Zn(w3,[["render",T3],["__file","more.vue"]]),A3={name:"SuccessFilled"},E3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P3=ae("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),L3=[P3];function D3(e,t,r,n,i,a){return Y(),me("svg",E3,L3)}var fM=Zn(A3,[["render",D3],["__file","success-filled.vue"]]),I3={name:"WarningFilled"},O3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},R3=ae("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),k3=[R3];function N3(e,t,r,n,i,a){return Y(),me("svg",O3,k3)}var dM=Zn(I3,[["render",N3],["__file","warning-filled.vue"]]);const hM="__epPropKey",Le=e=>e,F3=e=>Xe(e)&&!!e[hM],eh=(e,t)=>{if(!Xe(e)||F3(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 c=!1,f=[];if(r&&(f=Array.from(r),We(e,"default")&&f.push(i),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");fI(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[hM]:!0};return We(e,"default")&&(l.default=i),l},tt=e=>jp(Object.entries(e).map(([t,r])=>[t,eh(r,t)])),Wn=Le([String,Object,Function]),B3={Close:Yp,SuccessFilled:fM,InfoFilled:cM,WarningFilled:dM,CircleCloseFilled:uM},Ab={success:fM,warning:dM,error:uM,info:cM},hr=(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},$3=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),H3=(e,t)=>(e.install=r=>{r.directive(t,e)},e),fa=e=>(e.install=ur,e),Ot={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"},go="update:modelValue",qp="change",Kp="input",Yu=["","default","small","large"],z3=e=>["",...Yu].includes(e),Cf=e=>{const t=be(e)?e:[e],r=[];return t.forEach(n=>{var i;be(n)?r.push(...Cf(n)):ta(n)&&be(n.children)?r.push(...Cf(n.children)):(r.push(n),ta(n)&&((i=n.component)!=null&&i.subTree)&&r.push(...Cf(n.component.subTree)))}),r},Ya=e=>e,vy=({from:e,replacement:t,scope:r,version:n,ref:i,type:a="API"},o)=>{Se(()=>E(o),s=>{},{immediate:!0})};var W3={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:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},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 V3=e=>(t,r)=>G3(t,r,E(e)),G3=(e,t,r)=>vu(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var a;return`${(a=t==null?void 0:t[i])!=null?a:`{${i}}`}`}),U3=e=>{const t=k(()=>E(e).name),r=Ct(e)?e:B(e);return{lang:t,locale:r,t:V3(e)}},vM=Symbol("localeContextKey"),py=e=>{const t=e||Ee(vM,B());return U3(k(()=>t.value||W3))},Xp="el",j3="is-",ga=(e,t,r,n,i)=>{let a=`${e}-${t}`;return r&&(a+=`-${r}`),n&&(a+=`__${n}`),i&&(a+=`--${i}`),a},pM=Symbol("namespaceContextKey"),gy=e=>{const t=e||Ee(pM,B(Xp));return k(()=>E(t)||Xp)},Ne=(e,t)=>{const r=gy(t);return{namespace:r,b:(p="")=>ga(r.value,e,p,"",""),e:p=>p?ga(r.value,e,"",p,""):"",m:p=>p?ga(r.value,e,"","",p):"",be:(p,g)=>p&&g?ga(r.value,e,p,g,""):"",em:(p,g)=>p&&g?ga(r.value,e,"",p,g):"",bm:(p,g)=>p&&g?ga(r.value,e,p,"",g):"",bem:(p,g,m)=>p&&g&&m?ga(r.value,e,p,g,m):"",is:(p,...g)=>{const m=g.length>=1?g[0]:!0;return p&&m?`${j3}${p}`:""},cssVar:p=>{const g={};for(const m in p)p[m]&&(g[`--${r.value}-${m}`]=p[m]);return g},cssVarName:p=>`--${r.value}-${p}`,cssVarBlock:p=>{const g={};for(const m in p)p[m]&&(g[`--${r.value}-${e}-${m}`]=p[m]);return g},cssVarBlockName:p=>`--${r.value}-${e}-${p}`}},Y3=eh({type:Le(Boolean),default:null}),q3=eh({type:Le(Function)}),K3=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:Y3,[r]:q3};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=ct(),{emit:h}=d,v=d.props,p=k(()=>De(v[r])),g=k(()=>v[e]===null),m=S=>{o.value!==!0&&(o.value=!0,s&&(s.value=S),De(c)&&c(S))},y=S=>{o.value!==!1&&(o.value=!1,s&&(s.value=S),De(f)&&f(S))},_=S=>{if(v.disabled===!0||De(u)&&!u())return;const C=p.value&&Nt;C&&h(t,!0),(g.value||!C)&&m(S)},b=S=>{if(v.disabled===!0||!Nt)return;const C=p.value&&Nt;C&&h(t,!1),(g.value||!C)&&y(S)},x=S=>{Br(S)&&(v.disabled&&S?p.value&&h(t,!1):o.value!==S&&(S?m():y()))},w=()=>{o.value?b():_()};return Se(()=>v[e],x),l&&d.appContext.config.globalProperties.$route!==void 0&&Se(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&b()}),wt(()=>{x(v[e])}),{hide:b,show:_,toggle:w,hasUpdateHandler:p}},useModelToggleProps:i,useModelToggleEmits:n}},gM=e=>{const t=ct();return k(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})};var Sr="top",ln="bottom",un="right",Cr="left",my="auto",qu=[Sr,ln,un,Cr],_s="start",mu="end",X3="clippingParents",mM="viewport",Xs="popper",Z3="reference",Eb=qu.reduce(function(e,t){return e.concat([t+"-"+_s,t+"-"+mu])},[]),yy=[].concat(qu,[my]).reduce(function(e,t){return e.concat([t,t+"-"+_s,t+"-"+mu])},[]),Q3="beforeRead",J3="read",e4="afterRead",t4="beforeMain",r4="main",n4="afterMain",i4="beforeWrite",a4="write",o4="afterWrite",s4=[Q3,J3,e4,t4,r4,n4,i4,a4,o4];function Kn(e){return e?(e.nodeName||"").toLowerCase():null}function Ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bs(e){var t=Ln(e).Element;return e instanceof t||e instanceof Element}function an(e){var t=Ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _y(e){if(typeof ShadowRoot>"u")return!1;var t=Ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function l4(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];!an(a)||!Kn(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 u4(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},{});!an(i)||!Kn(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var yM={name:"applyStyles",enabled:!0,phase:"write",fn:l4,effect:u4,requires:["computeStyles"]};function jn(e){return e.split("-")[0]}var oo=Math.max,od=Math.min,ws=Math.round;function xs(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(an(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(n=ws(r.width)/o||1),a>0&&(i=ws(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 by(e){var t=xs(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 _M(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_y(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _i(e){return Ln(e).getComputedStyle(e)}function c4(e){return["table","td","th"].indexOf(Kn(e))>=0}function da(e){return((bs(e)?e.ownerDocument:e.document)||window.document).documentElement}function th(e){return Kn(e)==="html"?e:e.assignedSlot||e.parentNode||(_y(e)?e.host:null)||da(e)}function Pb(e){return!an(e)||_i(e).position==="fixed"?null:e.offsetParent}function f4(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&an(e)){var n=_i(e);if(n.position==="fixed")return null}var i=th(e);for(_y(i)&&(i=i.host);an(i)&&["html","body"].indexOf(Kn(i))<0;){var a=_i(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 Ku(e){for(var t=Ln(e),r=Pb(e);r&&c4(r)&&_i(r).position==="static";)r=Pb(r);return r&&(Kn(r)==="html"||Kn(r)==="body"&&_i(r).position==="static")?t:r||f4(e)||t}function wy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rl(e,t,r){return oo(e,od(t,r))}function d4(e,t,r){var n=Rl(e,t,r);return n>r?r:n}function bM(){return{top:0,right:0,bottom:0,left:0}}function wM(e){return Object.assign({},bM(),e)}function xM(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var h4=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,wM(typeof e!="number"?e:xM(e,qu))};function v4(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=jn(r.placement),l=wy(s),u=[Cr,un].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!o)){var f=h4(i.padding,r),d=by(a),h=l==="y"?Sr:Cr,v=l==="y"?ln:un,p=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],g=o[l]-r.rects.reference[l],m=Ku(a),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,b=f[h],x=y-d[c]-f[v],w=y/2-d[c]/2+_,S=Rl(b,w,x),C=l;r.modifiersData[n]=(t={},t[C]=S,t.centerOffset=S-w,t)}}function p4(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)||!_M(t.elements.popper,i)||(t.elements.arrow=i))}var g4={name:"arrow",enabled:!0,phase:"main",fn:v4,effect:p4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ss(e){return e.split("-")[1]}var m4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function y4(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:ws(t*i)/i||0,y:ws(r*i)/i||0}}function Lb(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,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,p=v===void 0?0:v,g=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=Cr,b=Sr,x=window;if(u){var w=Ku(r),S="clientHeight",C="clientWidth";if(w===Ln(r)&&(w=da(r),_i(w).position!=="static"&&s==="absolute"&&(S="scrollHeight",C="scrollWidth")),w=w,i===Sr||(i===Cr||i===un)&&a===mu){b=ln;var M=f&&w===x&&x.visualViewport?x.visualViewport.height:w[S];p-=M-n.height,p*=l?1:-1}if(i===Cr||(i===Sr||i===ln)&&a===mu){_=un;var P=f&&w===x&&x.visualViewport?x.visualViewport.width:w[C];h-=P-n.width,h*=l?1:-1}}var A=Object.assign({position:s},u&&m4),T=c===!0?y4({x:h,y:p}):{x:h,y:p};if(h=T.x,p=T.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 _4(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:jn(t.placement),variation:Ss(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,Lb(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,Lb(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 SM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_4,data:{}},mc={passive:!0};function b4(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=Ln(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,mc)}),s&&l.addEventListener("resize",r.update,mc),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,mc)}),s&&l.removeEventListener("resize",r.update,mc)}}var CM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:b4,data:{}},w4={left:"right",right:"left",bottom:"top",top:"bottom"};function Tf(e){return e.replace(/left|right|bottom|top/g,function(t){return w4[t]})}var x4={start:"end",end:"start"};function Db(e){return e.replace(/start|end/g,function(t){return x4[t]})}function xy(e){var t=Ln(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Sy(e){return xs(da(e)).left+xy(e).scrollLeft}function S4(e){var t=Ln(e),r=da(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+Sy(e),y:s}}function C4(e){var t,r=da(e),n=xy(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=oo(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=oo(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Sy(e),l=-n.scrollTop;return _i(i||r).direction==="rtl"&&(s+=oo(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function Cy(e){var t=_i(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function TM(e){return["html","body","#document"].indexOf(Kn(e))>=0?e.ownerDocument.body:an(e)&&Cy(e)?e:TM(th(e))}function kl(e,t){var r;t===void 0&&(t=[]);var n=TM(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Ln(n),o=i?[a].concat(a.visualViewport||[],Cy(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(kl(th(o)))}function Zp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function T4(e){var t=xs(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 Ib(e,t){return t===mM?Zp(S4(e)):bs(t)?T4(t):Zp(C4(da(e)))}function M4(e){var t=kl(th(e)),r=["absolute","fixed"].indexOf(_i(e).position)>=0,n=r&&an(e)?Ku(e):e;return bs(n)?t.filter(function(i){return bs(i)&&_M(i,n)&&Kn(i)!=="body"}):[]}function A4(e,t,r){var n=t==="clippingParents"?M4(e):[].concat(t),i=[].concat(n,[r]),a=i[0],o=i.reduce(function(s,l){var u=Ib(e,l);return s.top=oo(u.top,s.top),s.right=od(u.right,s.right),s.bottom=od(u.bottom,s.bottom),s.left=oo(u.left,s.left),s},Ib(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 MM(e){var t=e.reference,r=e.element,n=e.placement,i=n?jn(n):null,a=n?Ss(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case Sr:l={x:o,y:t.y-r.height};break;case ln:l={x:o,y:t.y+t.height};break;case un:l={x:t.x+t.width,y:s};break;case Cr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?wy(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case _s:l[u]=l[u]-(t[c]/2-r[c]/2);break;case mu:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function yu(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?X3:a,s=r.rootBoundary,l=s===void 0?mM:s,u=r.elementContext,c=u===void 0?Xs:u,f=r.altBoundary,d=f===void 0?!1:f,h=r.padding,v=h===void 0?0:h,p=wM(typeof v!="number"?v:xM(v,qu)),g=c===Xs?Z3:Xs,m=e.rects.popper,y=e.elements[d?g:c],_=A4(bs(y)?y:y.contextElement||da(e.elements.popper),o,l),b=xs(e.elements.reference),x=MM({reference:b,element:m,strategy:"absolute",placement:i}),w=Zp(Object.assign({},m,x)),S=c===Xs?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},M=e.modifiersData.offset;if(c===Xs&&M){var P=M[i];Object.keys(C).forEach(function(A){var T=[un,ln].indexOf(A)>=0?1:-1,D=[Sr,ln].indexOf(A)>=0?"y":"x";C[A]+=P[D]*T})}return C}function E4(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?yy:l,c=Ss(n),f=c?s?Eb:Eb.filter(function(v){return Ss(v)===c}):qu,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,p){return v[p]=yu(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[jn(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function P4(e){if(jn(e)===my)return[];var t=Tf(e);return[Db(e),t,Db(t)]}function L4(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,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,p=r.allowedAutoPlacements,g=t.options.placement,m=jn(g),y=m===g,_=l||(y||!v?[Tf(g)]:P4(g)),b=[g].concat(_).reduce(function(Ae,V){return Ae.concat(jn(V)===my?E4(t,{placement:V,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):V)},[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,M=b[0],P=0;P<b.length;P++){var A=b[P],T=jn(A),D=Ss(A)===_s,N=[Sr,ln].indexOf(T)>=0,H=N?"width":"height",$=yu(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),G=N?D?un:Cr:D?ln:Sr;x[H]>w[H]&&(G=Tf(G));var F=Tf(G),R=[];if(a&&R.push($[T]<=0),s&&R.push($[G]<=0,$[F]<=0),R.every(function(Ae){return Ae})){M=A,C=!1;break}S.set(A,R)}if(C)for(var j=v?3:1,re=function(Ae){var V=b.find(function(Q){var W=S.get(Q);if(W)return W.slice(0,Ae).every(function(q){return q})});if(V)return M=V,"break"},oe=j;oe>0;oe--){var ye=re(oe);if(ye==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}var D4={name:"flip",enabled:!0,phase:"main",fn:L4,requiresIfExists:["offset"],data:{_skip:!1}};function Ob(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 Rb(e){return[Sr,un,ln,Cr].some(function(t){return e[t]>=0})}function I4(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=yu(t,{elementContext:"reference"}),s=yu(t,{altBoundary:!0}),l=Ob(o,n),u=Ob(s,i,a),c=Rb(l),f=Rb(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var O4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:I4};function R4(e,t,r){var n=jn(e),i=[Cr,Sr].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,[Cr,un].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function k4(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=yy.reduce(function(c,f){return c[f]=R4(f,t.rects,a),c},{}),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 N4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:k4};function F4(e){var t=e.state,r=e.name;t.modifiersData[r]=MM({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var AM={name:"popperOffsets",enabled:!0,phase:"read",fn:F4,data:{}};function B4(e){return e==="x"?"y":"x"}function $4(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,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,p=v===void 0?0:v,g=yu(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=jn(t.placement),y=Ss(t.placement),_=!y,b=wy(m),x=B4(b),w=t.modifiersData.popperOffsets,S=t.rects.reference,C=t.rects.popper,M=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,P=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(w){if(a){var D,N=b==="y"?Sr:Cr,H=b==="y"?ln:un,$=b==="y"?"height":"width",G=w[b],F=G+g[N],R=G-g[H],j=h?-C[$]/2:0,re=y===_s?S[$]:C[$],oe=y===_s?-C[$]:-S[$],ye=t.elements.arrow,Ae=h&&ye?by(ye):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bM(),Q=V[N],W=V[H],q=Rl(0,S[$],Ae[$]),le=_?S[$]/2-j-q-Q-P.mainAxis:re-q-Q-P.mainAxis,de=_?-S[$]/2+j+q+W+P.mainAxis:oe+q+W+P.mainAxis,J=t.elements.arrow&&Ku(t.elements.arrow),L=J?b==="y"?J.clientTop||0:J.clientLeft||0:0,I=(D=A==null?void 0:A[b])!=null?D:0,z=G+le-I-L,U=G+de-I,K=Rl(h?od(F,z):F,G,h?oo(R,U):R);w[b]=K,T[b]=K-G}if(s){var ne,fe=b==="x"?Sr:Cr,te=b==="x"?ln:un,ie=w[x],X=x==="y"?"height":"width",we=ie+g[fe],he=ie-g[te],xe=[Sr,Cr].indexOf(m)!==-1,Oe=(ne=A==null?void 0:A[x])!=null?ne:0,ze=xe?we:ie-S[X]-C[X]-Oe+P.altAxis,rt=xe?ie+S[X]+C[X]-Oe-P.altAxis:he,Je=h&&xe?d4(ze,ie,rt):Rl(h?ze:we,ie,h?rt:he);w[x]=Je,T[x]=Je-ie}t.modifiersData[n]=T}}var H4={name:"preventOverflow",enabled:!0,phase:"main",fn:$4,requiresIfExists:["offset"]};function z4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function W4(e){return e===Ln(e)||!an(e)?xy(e):z4(e)}function V4(e){var t=e.getBoundingClientRect(),r=ws(t.width)/e.offsetWidth||1,n=ws(t.height)/e.offsetHeight||1;return r!==1||n!==1}function G4(e,t,r){r===void 0&&(r=!1);var n=an(t),i=an(t)&&V4(t),a=da(t),o=xs(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Kn(t)!=="body"||Cy(a))&&(s=W4(t)),an(t)?(l=xs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Sy(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function U4(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 j4(e){var t=U4(e);return s4.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Y4(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function q4(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 kb={placement:"bottom",modifiers:[],strategy:"absolute"};function Nb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Ty(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?kb:i;return function(o,s,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},kb,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},a,u.options,g),u.scrollParents={reference:bs(o)?kl(o):o.contextElement?kl(o.contextElement):[],popper:kl(s)};var m=j4(q4([].concat(n,u.options.modifiers)));return u.orderedModifiers=m.filter(function(y){return y.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var p=u.elements,g=p.reference,m=p.popper;if(Nb(g,m)){u.rects={reference:G4(g,Ku(m),u.options.strategy==="fixed"),popper:by(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var _=u.orderedModifiers[y],b=_.fn,x=_.options,w=x===void 0?{}:x,S=_.name;typeof b=="function"&&(u=b({state:u,options:w,name:S,instance:d})||u)}}}},update:Y4(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),f=!0}};if(!Nb(o,s))return d;d.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){u.orderedModifiers.forEach(function(p){var g=p.name,m=p.options,y=m===void 0?{}:m,_=p.effect;if(typeof _=="function"){var b=_({state:u,name:g,instance:d,options:y}),x=function(){};c.push(b||x)}})}function v(){c.forEach(function(p){return p()}),c=[]}return d}}Ty();var K4=[CM,AM,SM,yM];Ty({defaultModifiers:K4});var X4=[CM,AM,SM,yM,N4,D4,H4,g4,O4],EM=Ty({defaultModifiers:X4});const Z4=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Q4(l);Object.assign(o.value,u)},requires:["computeStyles"]},i=k(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=E(r);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],n,{name:"applyStyles",enabled:!1}]}}),a=$m(),o=B({styles:{popper:{position:E(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return Se(i,l=>{const u=E(a);u&&u.setOptions(l)},{deep:!0}),Se([e,t],([l,u])=>{s(),!(!l||!u)&&(a.value=EM(l,u,E(i)))}),Xt(()=>{s()}),{state:k(()=>{var l;return{...((l=E(a))==null?void 0:l.state)||{}}}),styles:k(()=>E(o).styles),attributes:k(()=>E(o).attributes),update:()=>{var l;return(l=E(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=E(a))==null?void 0:l.forceUpdate()},instanceRef:k(()=>E(a))}};function Q4(e){const t=Object.keys(e.elements),r=jp(t.map(i=>[i,e.styles[i]||{}])),n=jp(t.map(i=>[i,e.attributes[i]]));return{styles:r,attributes:n}}function Fb(){let e;const t=(n,i)=>{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return zu(()=>r()),{registerTimeout:t,cancelTimeout:r}}const Bb={prefix:Math.floor(Math.random()*1e4),current:0},J4=Symbol("elIdInjection"),PM=()=>ct()?Ee(J4,Bb):Bb,My=e=>{const t=PM(),r=gy();return k(()=>E(e)||`${r.value}-id-${t.prefix}-${t.current++}`)};let Yo=[];const $b=e=>{const t=e;t.key===Ot.esc&&Yo.forEach(r=>r(t))},eH=e=>{wt(()=>{Yo.length===0&&document.addEventListener("keydown",$b),Nt&&Yo.push(e)}),Xt(()=>{Yo=Yo.filter(t=>t!==e),Yo.length===0&&Nt&&document.removeEventListener("keydown",$b)})};let Hb;const LM=()=>{const e=gy(),t=PM(),r=k(()=>`${e.value}-popper-container-${t.prefix}`),n=k(()=>`#${r.value}`);return{id:r,selector:n}},tH=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},rH=()=>{const{id:e,selector:t}=LM();return Gd(()=>{Nt&&!Hb&&!document.body.querySelector(t.value)&&(Hb=tH(e.value))}),{id:e,selector:t}},nH=tt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),DM=({showAfter:e,hideAfter:t,autoClose:r,open:n,close:i})=>{const{registerTimeout:a}=Fb(),{registerTimeout:o,cancelTimeout:s}=Fb();return{onOpen:c=>{a(()=>{n(c);const f=E(r);$t(f)&&f>0&&o(()=>{i(c)},f)},E(e))},onClose:c=>{s(),a(()=>{i(c)},E(t))}}},IM=Symbol("elForwardRef"),iH=e=>{At(IM,{setForwardRef:r=>{e.value=r}})},aH=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),zb=B(0),OM=2e3,RM=Symbol("zIndexContextKey"),Ay=e=>{const t=e||Ee(RM,void 0),r=k(()=>{const a=E(t);return $t(a)?a:OM}),n=k(()=>r.value+zb.value);return{initialZIndex:r,currentZIndex:n,nextZIndex:()=>(zb.value++,n.value)}},Xu=eh({type:String,values:Yu,required:!1}),kM=Symbol("size"),oH=()=>{const e=Ee(kM,{});return k(()=>E(e.size)||"")},NM=Symbol(),sd=B();function Ey(e,t=void 0){const r=ct()?Ee(NM,sd):sd;return e?k(()=>{var n,i;return(i=(n=r.value)==null?void 0:n[e])!=null?i:t}):r}function sH(e,t){const r=Ey(),n=Ne(e,k(()=>{var s;return((s=r.value)==null?void 0:s.namespace)||Xp})),i=py(k(()=>{var s;return(s=r.value)==null?void 0:s.locale})),a=Ay(k(()=>{var s;return((s=r.value)==null?void 0:s.zIndex)||OM})),o=k(()=>{var s;return E(t)||((s=r.value)==null?void 0:s.size)||""});return FM(k(()=>E(r)||{})),{ns:n,locale:i,zIndex:a,size:o}}const FM=(e,t,r=!1)=>{var n;const i=!!ct(),a=i?Ey():void 0,o=(n=t==null?void 0:t.provide)!=null?n:i?At:void 0;if(!o)return;const s=k(()=>{const l=E(e);return a!=null&&a.value?lH(a.value,l):l});return o(NM,s),o(vM,k(()=>s.value.locale)),o(pM,k(()=>s.value.namespace)),o(RM,k(()=>s.value.zIndex)),o(kM,{size:k(()=>s.value.size||"")}),(r||!sd.value)&&(sd.value=s.value),s},lH=(e,t)=>{var r;const n=[...new Set([...Tb(e),...Tb(t)])],i={};for(const a of n)i[a]=(r=t[a])!=null?r:e[a];return i},uH=tt({a11y:{type:Boolean,default:!0},locale:{type:Le(Object)},size:Xu,button:{type:Le(Object)},experimentalFeatures:{type:Le(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Le(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Qp={};ce({name:"ElConfigProvider",props:uH,setup(e,{slots:t}){Se(()=>e.message,n=>{Object.assign(Qp,n??{})},{immediate:!0,deep:!0});const r=FM(e);return()=>$e(t,"default",{config:r==null?void 0:r.value})}});var Ze=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const cH=tt({size:{type:Le([Number,String])},color:{type:String}}),fH=ce({name:"ElIcon",inheritAttrs:!1}),dH=ce({...fH,props:cH,setup(e){const t=e,r=Ne("icon"),n=k(()=>{const{size:i,color:a}=t;return!i&&!a?{}:{fontSize:ad(i)?void 0:po(i),"--color":a}});return(i,a)=>(Y(),me("i",ca({class:E(r).b(),style:E(n)},i.$attrs),[$e(i.$slots,"default")],16))}});var hH=Ze(dH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const lr=hr(hH),Bs=Symbol("formContextKey"),mo=Symbol("formItemContextKey"),ia=(e,t={})=>{const r=B(void 0),n=t.prop?r:gM("size"),i=t.global?r:oH(),a=t.form?{size:void 0}:Ee(Bs,void 0),o=t.formItem?{size:void 0}:Ee(mo,void 0);return k(()=>n.value||E(e)||(o==null?void 0:o.size)||(a==null?void 0:a.size)||i.value||"")},rh=e=>{const t=gM("disabled"),r=Ee(Bs,void 0);return k(()=>t.value||E(e)||(r==null?void 0:r.disabled)||!1)},Zu=()=>{const e=Ee(Bs,void 0),t=Ee(mo,void 0);return{form:e,formItem:t}},Py=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=B(!1)),n||(n=B(!1));const i=B();let a;const o=k(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return wt(()=>{a=Se([tn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:My().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})}),ks(()=>{a&&a(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}},vH=tt({size:{type:String,values:Yu},disabled:Boolean}),pH=tt({...vH,model:Object,rules:{type:Le(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},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),gH={validate:(e,t,r)=>(be(e)||He(e))&&Br(t)&&He(r)};function mH(){const e=B([]),t=k(()=>{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 yc=(e,t)=>{const r=$p(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},yH="ElForm",_H=ce({name:yH}),bH=ce({..._H,props:pH,emits:gH,setup(e,{expose:t,emit:r}){const n=e,i=[],a=ia(),o=Ne("form"),s=k(()=>{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)},c=(y=[])=>{n.model&&yc(i,y).forEach(_=>_.resetField())},f=(y=[])=>{yc(i,y).forEach(_=>_.clearValidate())},d=k(()=>!!n.model),h=y=>{if(i.length===0)return[];const _=yc(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=!De(_);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=yc(i,y)[0];b&&((_=b.$el)==null||_.scrollIntoView(n.scrollIntoViewOptions))};return Se(()=>n.rules,()=>{n.validateOnRuleChange&&v().catch(y=>void 0)},{deep:!0}),At(Bs,fn({...$d(n),emit:r,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...mH()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(y,_)=>(Y(),me("form",{class:ue(E(s))},[$e(y.$slots,"default")],2))}});var wH=Ze(bH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Za.apply(this,arguments)}function xH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_u(e,t)}function Jp(e){return Jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jp(e)}function _u(e,t){return _u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_u(e,t)}function SH(){if(typeof Reflect>"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 Mf(e,t,r){return SH()?Mf=Reflect.construct.bind():Mf=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&_u(u,o.prototype),u},Mf.apply(null,arguments)}function CH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function eg(e){var t=typeof Map=="function"?new Map:void 0;return eg=function(n){if(n===null||!CH(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 Mf(n,arguments,Jp(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_u(i,n)},eg(e)}var TH=/%[sdj%]/g,MH=function(){};typeof process<"u"&&process.env;function tg(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 kr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(TH,function(s){if(s==="%%")return"%";if(i>=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 AH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function zt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||AH(t)&&typeof e=="string"&&!e)}function EH(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 Wb(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<i?t(e[s],a):r([])}a([])}function PH(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var Vb=function(e){xH(t,e);function t(r,n){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return t}(eg(Error));function LH(e,t,r,n,i){if(t.first){var a=new Promise(function(d,h){var v=function(m){return n(m),m.length?h(new Vb(m,tg(m))):d(i)},p=PH(e);Wb(p,r,v)});return a.catch(function(d){return d}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],f=new Promise(function(d,h){var v=function(g){if(c.push.apply(c,g),u++,u===l)return n(c),c.length?h(new Vb(c,tg(c))):d(i)};s.length||(n(c),d(i)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?Wb(g,r,v):EH(g,r,v)})});return f.catch(function(d){return d}),f}function DH(e){return!!(e&&e.message!==void 0)}function IH(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Gb(e,t){return function(r){var n;return e.fullFields?n=IH(t,e.fullFields):n=t[r.field||e.fullField],DH(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Ub(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Za({},e[r],n):e[r]=n}}return e}var BM=function(t,r,n,i,a,o){t.required&&(!n.hasOwnProperty(t.field)||zt(r,o||t.type))&&i.push(kr(a.messages.required,t.fullField))},OH=function(t,r,n,i,a){(/^\s+$/.test(r)||r==="")&&i.push(kr(a.messages.whitespace,t.fullField))},_c,RH=function(){if(_c)return _c;var e="[a-fA-F\\d:]",t=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=(`
+var fD=Object.defineProperty;var dD=(e,t,r)=>t in e?fD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var hD=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Wt=(e,t,r)=>(dD(e,typeof t!="symbol"?t+"":t,r),r);var Tre=hD((Nr,Fr)=>{(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 Pm(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}function xt(e){if(be(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=He(n)?mD(n):xt(n);if(i)for(const a in i)t[a]=i[a]}return t}else{if(He(e))return e;if(Xe(e))return e}}const vD=/;(?![^(]*\))/g,pD=/:([^]+)/,gD=/\/\*.*?\*\//gs;function mD(e){const t={};return e.replace(gD,"").split(vD).forEach(r=>{if(r){const n=r.split(pD);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ue(e){let t="";if(He(e))t=e;else if(be(e))for(let r=0;r<e.length;r++){const n=ue(e[r]);n&&(t+=n+" ")}else if(Xe(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const yD="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_D=Pm(yD);function vC(e){return!!e||e===""}function bD(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Od(e[n],t[n]);return r}function Od(e,t){if(e===t)return!0;let r=K0(e),n=K0(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=tu(e),n=tu(t),r||n)return e===t;if(r=be(e),n=be(t),r||n)return r&&n?bD(e,t):!1;if(r=Xe(e),n=Xe(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Od(e[o],t[o]))return!1}}return String(e)===String(t)}function pC(e,t){return e.findIndex(r=>Od(r,t))}const Me=e=>He(e)?e:e==null?"":be(e)||Xe(e)&&(e.toString===mC||!De(e.toString))?JSON.stringify(e,gC,2):String(e),gC=(e,t)=>t&&t.__v_isRef?gC(e,t.value):is(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:kd(t)?{[`Set(${t.size})`]:[...t.values()]}:Xe(t)&&!be(t)&&!yC(t)?String(t):t,yt={},ns=[],ur=()=>{},wD=()=>!1,SD=/^on[^a-z]/,Rd=e=>SD.test(e),Em=e=>e.startsWith("onUpdate:"),Gt=Object.assign,Lm=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},xD=Object.prototype.hasOwnProperty,We=(e,t)=>xD.call(e,t),be=Array.isArray,is=e=>Bu(e)==="[object Map]",kd=e=>Bu(e)==="[object Set]",K0=e=>Bu(e)==="[object Date]",De=e=>typeof e=="function",He=e=>typeof e=="string",tu=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",jf=e=>Xe(e)&&De(e.then)&&De(e.catch),mC=Object.prototype.toString,Bu=e=>mC.call(e),CD=e=>Bu(e).slice(8,-1),yC=e=>Bu(e)==="[object Object]",Dm=e=>He(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mf=Pm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nd=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},TD=/-(\w)/g,An=Nd(e=>e.replace(TD,(t,r)=>r?r.toUpperCase():"")),MD=/\B([A-Z])/g,So=Nd(e=>e.replace(MD,"-$1").toLowerCase()),Fd=Nd(e=>e.charAt(0).toUpperCase()+e.slice(1)),yf=Nd(e=>e?`on${Fd(e)}`:""),ru=(e,t)=>!Object.is(e,t),_f=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Yf=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},AD=e=>{const t=parseFloat(e);return isNaN(t)?e:t},PD=e=>{const t=He(e)?Number(e):NaN;return isNaN(t)?e:t};let X0;const ED=()=>X0||(X0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Or;class LD{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Or,!t&&Or&&(this.index=(Or.scopes||(Or.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Or;try{return Or=this,t()}finally{Or=r}}}on(){Or=this}off(){Or=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function DD(e,t=Or){t&&t.active&&t.effects.push(e)}function _C(){return Or}function ID(e){Or&&Or.cleanups.push(e)}const Im=e=>{const t=new Set(e);return t.w=0,t.n=0,t},bC=e=>(e.w&ea)>0,wC=e=>(e.n&ea)>0,OD=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ea},RD=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const i=t[n];bC(i)&&!wC(i)?i.delete(e):t[r++]=i,i.w&=~ea,i.n&=~ea}t.length=r}},qf=new WeakMap;let _l=0,ea=1;const xp=30;let bn;const no=Symbol(""),Cp=Symbol("");class Om{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,DD(this,n)}run(){if(!this.active)return this.fn();let t=bn,r=Xi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=bn,bn=this,Xi=!0,ea=1<<++_l,_l<=xp?OD(this):Z0(this),this.fn()}finally{_l<=xp&&RD(this),ea=1<<--_l,bn=this.parent,Xi=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){bn===this?this.deferStop=!0:this.active&&(Z0(this),this.onStop&&this.onStop(),this.active=!1)}}function Z0(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let Xi=!0;const SC=[];function Os(){SC.push(Xi),Xi=!1}function Rs(){const e=SC.pop();Xi=e===void 0?!0:e}function Mr(e,t,r){if(Xi&&bn){let n=qf.get(e);n||qf.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=Im()),xC(i)}}function xC(e,t){let r=!1;_l<=xp?wC(e)||(e.n|=ea,r=!bC(e)):r=!e.has(bn),r&&(e.add(bn),bn.deps.push(e))}function gi(e,t,r,n,i,a){const o=qf.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&be(e)){const l=Number(n);o.forEach((u,c)=>{(c==="length"||c>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":be(e)?Dm(r)&&s.push(o.get("length")):(s.push(o.get(no)),is(e)&&s.push(o.get(Cp)));break;case"delete":be(e)||(s.push(o.get(no)),is(e)&&s.push(o.get(Cp)));break;case"set":is(e)&&s.push(o.get(no));break}if(s.length===1)s[0]&&Tp(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);Tp(Im(l))}}function Tp(e,t){const r=be(e)?e:[...e];for(const n of r)n.computed&&Q0(n);for(const n of r)n.computed||Q0(n)}function Q0(e,t){(e!==bn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function kD(e,t){var r;return(r=qf.get(e))===null||r===void 0?void 0:r.get(t)}const ND=Pm("__proto__,__v_isRef,__isVue"),CC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tu)),FD=Rm(),BD=Rm(!1,!0),$D=Rm(!0),J0=HD();function HD(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Ke(this);for(let a=0,o=this.length;a<o;a++)Mr(n,"get",a+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(Ke)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Os();const n=Ke(this)[t].apply(this,r);return Rs(),n}}),e}function zD(e){const t=Ke(this);return Mr(t,"has",e),t.hasOwnProperty(e)}function Rm(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?nI:EC:t?PC:AC).get(n))return n;const o=be(n);if(!e){if(o&&We(J0,i))return Reflect.get(J0,i,a);if(i==="hasOwnProperty")return zD}const s=Reflect.get(n,i,a);return(tu(i)?CC.has(i):ND(i))||(e||Mr(n,"get",i),t)?s:Ct(s)?o&&Dm(i)?s:s.value:Xe(s)?e?$u(s):fn(s):s}}const WD=TC(),VD=TC(!0);function TC(e=!1){return function(r,n,i,a){let o=r[n];if(vs(o)&&Ct(o)&&!Ct(i))return!1;if(!e&&(!Kf(i)&&!vs(i)&&(o=Ke(o),i=Ke(i)),!be(r)&&Ct(o)&&!Ct(i)))return o.value=i,!0;const s=be(r)&&Dm(n)?Number(n)<r.length:We(r,n),l=Reflect.set(r,n,i,a);return r===Ke(a)&&(s?ru(i,o)&&gi(r,"set",n,i):gi(r,"add",n,i)),l}}function GD(e,t){const r=We(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&gi(e,"delete",t,void 0),n}function UD(e,t){const r=Reflect.has(e,t);return(!tu(t)||!CC.has(t))&&Mr(e,"has",t),r}function jD(e){return Mr(e,"iterate",be(e)?"length":no),Reflect.ownKeys(e)}const MC={get:FD,set:WD,deleteProperty:GD,has:UD,ownKeys:jD},YD={get:$D,set(e,t){return!0},deleteProperty(e,t){return!0}},qD=Gt({},MC,{get:BD,set:VD}),km=e=>e,Bd=e=>Reflect.getPrototypeOf(e);function uc(e,t,r=!1,n=!1){e=e.__v_raw;const i=Ke(e),a=Ke(t);r||(t!==a&&Mr(i,"get",t),Mr(i,"get",a));const{has:o}=Bd(i),s=n?km:r?Bm:nu;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 cc(e,t=!1){const r=this.__v_raw,n=Ke(r),i=Ke(e);return t||(e!==i&&Mr(n,"has",e),Mr(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function fc(e,t=!1){return e=e.__v_raw,!t&&Mr(Ke(e),"iterate",no),Reflect.get(e,"size",e)}function e_(e){e=Ke(e);const t=Ke(this);return Bd(t).has.call(t,e)||(t.add(e),gi(t,"add",e,e)),this}function t_(e,t){t=Ke(t);const r=Ke(this),{has:n,get:i}=Bd(r);let a=n.call(r,e);a||(e=Ke(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?ru(t,o)&&gi(r,"set",e,t):gi(r,"add",e,t),this}function r_(e){const t=Ke(this),{has:r,get:n}=Bd(t);let i=r.call(t,e);i||(e=Ke(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&gi(t,"delete",e,void 0),a}function n_(){const e=Ke(this),t=e.size!==0,r=e.clear();return t&&gi(e,"clear",void 0,void 0),r}function dc(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Ke(o),l=t?km:e?Bm:nu;return!e&&Mr(s,"iterate",no),o.forEach((u,c)=>n.call(i,l(u),l(c),a))}}function hc(e,t,r){return function(...n){const i=this.__v_raw,a=Ke(i),o=is(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?km:t?Bm:nu;return!t&&Mr(a,"iterate",l?Cp:no),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Ei(e){return function(...t){return e==="delete"?!1:this}}function KD(){const e={get(a){return uc(this,a)},get size(){return fc(this)},has:cc,add:e_,set:t_,delete:r_,clear:n_,forEach:dc(!1,!1)},t={get(a){return uc(this,a,!1,!0)},get size(){return fc(this)},has:cc,add:e_,set:t_,delete:r_,clear:n_,forEach:dc(!1,!0)},r={get(a){return uc(this,a,!0)},get size(){return fc(this,!0)},has(a){return cc.call(this,a,!0)},add:Ei("add"),set:Ei("set"),delete:Ei("delete"),clear:Ei("clear"),forEach:dc(!0,!1)},n={get(a){return uc(this,a,!0,!0)},get size(){return fc(this,!0)},has(a){return cc.call(this,a,!0)},add:Ei("add"),set:Ei("set"),delete:Ei("delete"),clear:Ei("clear"),forEach:dc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=hc(a,!1,!1),r[a]=hc(a,!0,!1),t[a]=hc(a,!1,!0),n[a]=hc(a,!0,!0)}),[e,r,t,n]}const[XD,ZD,QD,JD]=KD();function Nm(e,t){const r=t?e?JD:QD:e?ZD:XD;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(We(r,i)&&i in n?r:n,i,a)}const eI={get:Nm(!1,!1)},tI={get:Nm(!1,!0)},rI={get:Nm(!0,!1)},AC=new WeakMap,PC=new WeakMap,EC=new WeakMap,nI=new WeakMap;function iI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aI(e){return e.__v_skip||!Object.isExtensible(e)?0:iI(CD(e))}function fn(e){return vs(e)?e:Fm(e,!1,MC,eI,AC)}function LC(e){return Fm(e,!1,qD,tI,PC)}function $u(e){return Fm(e,!0,YD,rI,EC)}function Fm(e,t,r,n,i){if(!Xe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=aI(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function as(e){return vs(e)?as(e.__v_raw):!!(e&&e.__v_isReactive)}function vs(e){return!!(e&&e.__v_isReadonly)}function Kf(e){return!!(e&&e.__v_isShallow)}function DC(e){return as(e)||vs(e)}function Ke(e){const t=e&&e.__v_raw;return t?Ke(t):e}function IC(e){return Yf(e,"__v_skip",!0),e}const nu=e=>Xe(e)?fn(e):e,Bm=e=>Xe(e)?$u(e):e;function OC(e){Xi&&bn&&(e=Ke(e),xC(e.dep||(e.dep=Im())))}function RC(e,t){e=Ke(e);const r=e.dep;r&&Tp(r)}function Ct(e){return!!(e&&e.__v_isRef===!0)}function B(e){return kC(e,!1)}function $m(e){return kC(e,!0)}function kC(e,t){return Ct(e)?e:new oI(e,t)}class oI{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Ke(t),this._value=r?t:nu(t)}get value(){return OC(this),this._value}set value(t){const r=this.__v_isShallow||Kf(t)||vs(t);t=r?t:Ke(t),ru(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:nu(t),RC(this))}}function P(e){return Ct(e)?e.value:e}const sI={get:(e,t,r)=>P(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Ct(i)&&!Ct(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function NC(e){return as(e)?e:new Proxy(e,sI)}function $d(e){const t=be(e)?new Array(e.length):{};for(const r in e)t[r]=tn(e,r);return t}class lI{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}get dep(){return kD(Ke(this._object),this._key)}}function tn(e,t,r){const n=e[t];return Ct(n)?n:new lI(e,t,r)}var FC;class uI{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[FC]=!1,this._dirty=!0,this.effect=new Om(t,()=>{this._dirty||(this._dirty=!0,RC(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Ke(this);return OC(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}FC="__v_isReadonly";function cI(e,t,r=!1){let n,i;const a=De(e);return a?(n=e,i=ur):(n=e.get,i=e.set),new uI(n,i,a||!i,r)}function fI(e,...t){}function Zi(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Hd(a,t,r)}return i}function rn(e,t,r,n){if(De(e)){const a=Zi(e,t,r,n);return a&&jf(a)&&a.catch(o=>{Hd(o,t,r)}),a}const i=[];for(let a=0;a<e.length;a++)i.push(rn(e[a],t,r,n));return i}function Hd(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=r;for(;a;){const u=a.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){Zi(l,null,10,[e,o,s]);return}}dI(e,r,i,n)}function dI(e,t,r,n=!0){console.error(e)}let iu=!1,Mp=!1;const tr=[];let $n=0;const os=[];let ci=null,Ga=0;const BC=Promise.resolve();let Hm=null;function Ft(e){const t=Hm||BC;return e?t.then(this?e.bind(this):e):t}function hI(e){let t=$n+1,r=tr.length;for(;t<r;){const n=t+r>>>1;au(tr[n])<e?t=n+1:r=n}return t}function zm(e){(!tr.length||!tr.includes(e,iu&&e.allowRecurse?$n+1:$n))&&(e.id==null?tr.push(e):tr.splice(hI(e.id),0,e),$C())}function $C(){!iu&&!Mp&&(Mp=!0,Hm=BC.then(zC))}function vI(e){const t=tr.indexOf(e);t>$n&&tr.splice(t,1)}function pI(e){be(e)?os.push(...e):(!ci||!ci.includes(e,e.allowRecurse?Ga+1:Ga))&&os.push(e),$C()}function i_(e,t=iu?$n+1:0){for(;t<tr.length;t++){const r=tr[t];r&&r.pre&&(tr.splice(t,1),t--,r())}}function HC(e){if(os.length){const t=[...new Set(os)];if(os.length=0,ci){ci.push(...t);return}for(ci=t,ci.sort((r,n)=>au(r)-au(n)),Ga=0;Ga<ci.length;Ga++)ci[Ga]();ci=null,Ga=0}}const au=e=>e.id==null?1/0:e.id,gI=(e,t)=>{const r=au(e)-au(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function zC(e){Mp=!1,iu=!0,tr.sort(gI);const t=ur;try{for($n=0;$n<tr.length;$n++){const r=tr[$n];r&&r.active!==!1&&Zi(r,null,14)}}finally{$n=0,tr.length=0,HC(),iu=!1,Hm=null,(tr.length||os.length)&&zC()}}function mI(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||yt;let i=r;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in n){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=n[c]||yt;d&&(i=r.map(h=>He(h)?h.trim():h)),f&&(i=r.map(AD))}let s,l=n[s=yf(t)]||n[s=yf(An(t))];!l&&a&&(l=n[s=yf(So(t))]),l&&rn(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,rn(u,e,6,i)}}function WC(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(!De(e)){const l=u=>{const c=WC(u,t,!0);c&&(s=!0,Gt(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Xe(e)&&n.set(e,null),null):(be(a)?a.forEach(l=>o[l]=null):Gt(o,a),Xe(e)&&n.set(e,o),o)}function zd(e,t){return!e||!Rd(t)?!1:(t=t.slice(2).replace(/Once$/,""),We(e,t[0].toLowerCase()+t.slice(1))||We(e,So(t))||We(e,t))}let qt=null,VC=null;function Xf(e){const t=qt;return qt=e,VC=e&&e.type.__scopeId||null,t}function Z(e,t=qt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&g_(-1);const a=Xf(t);let o;try{o=e(...i)}finally{Xf(a),n._d&&g_(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Ih(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:v,inheritAttrs:p}=e;let g,m;const y=Xf(e);try{if(r.shapeFlag&4){const b=i||n;g=Bn(c.call(b,b,f,a,h,d,v)),m=l}else{const b=t;g=Bn(b.length>1?b(a,{attrs:l,slots:s,emit:u}):b(a,null)),m=t.props?l:yI(l)}}catch(b){Dl.length=0,Hd(b,e,1),g=ee(Sr)}let _=g;if(m&&p!==!1){const b=Object.keys(m),{shapeFlag:S}=_;b.length&&S&7&&(o&&b.some(Em)&&(m=_I(m,o)),_=mi(_,m))}return r.dirs&&(_=mi(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,Xf(y),g}const yI=e=>{let t;for(const r in e)(r==="class"||r==="style"||Rd(r))&&((t||(t={}))[r]=e[r]);return t},_I=(e,t)=>{const r={};for(const n in e)(!Em(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function bI(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?a_(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==n[d]&&!zd(u,d))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?a_(n,o,u):!0:!!o;return!1}function a_(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(t[a]!==e[a]&&!zd(r,a))return!0}return!1}function wI({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const SI=e=>e.__isSuspense;function xI(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):pI(e)}function At(e,t){if(It){let r=It.provides;const n=It.parent&&It.parent.provides;n===r&&(r=It.provides=Object.create(n)),r[e]=t}}function Pe(e,t,r=!1){const n=It||qt;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&&De(t)?t.call(n.proxy):t}}function io(e,t){return Wm(e,null,t)}const vc={};function xe(e,t,r){return Wm(e,t,r)}function Wm(e,t,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=yt){const s=_C()===(It==null?void 0:It.scope)?It:null;let l,u=!1,c=!1;if(Ct(e)?(l=()=>e.value,u=Kf(e)):as(e)?(l=()=>e,n=!0):be(e)?(c=!0,u=e.some(_=>as(_)||Kf(_)),l=()=>e.map(_=>{if(Ct(_))return _.value;if(as(_))return Xa(_);if(De(_))return Zi(_,s,2)})):De(e)?t?l=()=>Zi(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return f&&f(),rn(e,s,3,[d])}:l=ur,t&&n){const _=l;l=()=>Xa(_())}let f,d=_=>{f=m.onStop=()=>{Zi(_,s,4)}},h;if(uu)if(d=ur,t?r&&rn(t,s,3,[l(),c?[]:void 0,d]):l(),i==="sync"){const _=vO();h=_.__watcherHandles||(_.__watcherHandles=[])}else return ur;let v=c?new Array(e.length).fill(vc):vc;const p=()=>{if(m.active)if(t){const _=m.run();(n||u||(c?_.some((b,S)=>ru(b,v[S])):ru(_,v)))&&(f&&f(),rn(t,s,3,[_,v===vc?void 0:c&&v[0]===vc?[]:v,d]),v=_)}else m.run()};p.allowRecurse=!!t;let g;i==="sync"?g=p:i==="post"?g=()=>yr(p,s&&s.suspense):(p.pre=!0,s&&(p.id=s.uid),g=()=>zm(p));const m=new Om(l,g);t?r?p():v=m.run():i==="post"?yr(m.run.bind(m),s&&s.suspense):m.run();const y=()=>{m.stop(),s&&s.scope&&Lm(s.scope.effects,m)};return h&&h.push(y),y}function CI(e,t,r){const n=this.proxy,i=He(e)?e.includes(".")?GC(n,e):()=>n[e]:e.bind(n,n);let a;De(t)?a=t:(a=t.handler,r=t);const o=It;ps(this);const s=Wm(i,a.bind(n),r);return o?ps(o):ao(),s}function GC(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function Xa(e,t){if(!Xe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ct(e))Xa(e.value,t);else if(be(e))for(let r=0;r<e.length;r++)Xa(e[r],t);else if(kd(e)||is(e))e.forEach(r=>{Xa(r,t)});else if(yC(e))for(const r in e)Xa(e[r],t);return e}function UC(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return wt(()=>{e.isMounted=!0}),Xt(()=>{e.isUnmounting=!0}),e}const Wr=[Function,Array],TI={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wr,onEnter:Wr,onAfterEnter:Wr,onEnterCancelled:Wr,onBeforeLeave:Wr,onLeave:Wr,onAfterLeave:Wr,onLeaveCancelled:Wr,onBeforeAppear:Wr,onAppear:Wr,onAfterAppear:Wr,onAppearCancelled:Wr},setup(e,{slots:t}){const r=ct(),n=UC();let i;return()=>{const a=t.default&&Vm(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const p of a)if(p.type!==Sr){o=p;break}}const s=Ke(e),{mode:l}=s;if(n.isLeaving)return Oh(o);const u=o_(o);if(!u)return Oh(o);const c=ou(u,s,n,r);su(u,c);const f=r.subTree,d=f&&o_(f);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!==Sr&&(!Ua(u,d)||h)){const p=ou(d,s,n,r);if(su(d,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Oh(o);l==="in-out"&&u.type!==Sr&&(p.delayLeave=(g,m,y)=>{const _=YC(n,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=y})}return o}}},jC=TI;function YC(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 ou(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),b=YC(r,e),S=(C,M)=>{C&&rn(C,n,9,M)},w=(C,M)=>{const E=M[1];S(C,M),be(C)?C.every(A=>A.length<=1)&&E():C.length<=1&&E()},x={mode:a,persisted:o,beforeEnter(C){let M=s;if(!r.isMounted)if(i)M=p||s;else return;C._leaveCb&&C._leaveCb(!0);const E=b[_];E&&Ua(e,E)&&E.el._leaveCb&&E.el._leaveCb(),S(M,[C])},enter(C){let M=l,E=u,A=c;if(!r.isMounted)if(i)M=g||l,E=m||u,A=y||c;else return;let T=!1;const D=C._enterCb=N=>{T||(T=!0,N?S(A,[C]):S(E,[C]),x.delayedLeave&&x.delayedLeave(),C._enterCb=void 0)};M?w(M,[C,D]):D()},leave(C,M){const E=String(e.key);if(C._enterCb&&C._enterCb(!0),r.isUnmounting)return M();S(f,[C]);let A=!1;const T=C._leaveCb=D=>{A||(A=!0,M(),D?S(v,[C]):S(h,[C]),C._leaveCb=void 0,b[E]===e&&delete b[E])};b[E]=e,d?w(d,[C,T]):T()},clone(C){return ou(C,t,r,n)}};return x}function Oh(e){if(Wd(e))return e=mi(e),e.children=null,e}function o_(e){return Wd(e)?e.children?e.children[0]:void 0:e}function su(e,t){e.shapeFlag&6&&e.component?su(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 Vm(e,t=!1,r){let n=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===pt?(o.patchFlag&128&&i++,n=n.concat(Vm(o.children,t,s))):(t||o.type!==Sr)&&n.push(s!=null?mi(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function ce(e){return De(e)?{setup:e,name:e.name}:e}const Pl=e=>!!e.type.__asyncLoader,Wd=e=>e.type.__isKeepAlive;function MI(e,t){KC(e,"a",t)}function qC(e,t){KC(e,"da",t)}function KC(e,t,r=It){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Vd(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Wd(i.parent.vnode)&&AI(n,t,r,i),i=i.parent}}function AI(e,t,r,n){const i=Vd(t,e,n,!0);ks(()=>{Lm(n[t],i)},r)}function Vd(e,t,r=It,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Os(),ps(r);const s=rn(t,r,e,o);return ao(),Rs(),s});return n?i.unshift(a):i.push(a),a}}const xi=e=>(t,r=It)=>(!uu||e==="sp")&&Vd(e,(...n)=>t(...n),r),Gd=xi("bm"),wt=xi("m"),PI=xi("bu"),Hu=xi("u"),Xt=xi("bum"),ks=xi("um"),EI=xi("sp"),LI=xi("rtg"),DI=xi("rtc");function II(e,t=It){Vd("ec",e,t)}function nr(e,t){const r=qt;if(r===null)return e;const n=jd(r)||r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,s,l,u=yt]=t[a];o&&(De(o)&&(o={mounted:o,updated:o}),o.deep&&Xa(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function ha(e,t,r,n){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(Os(),rn(l,r,8,[e.el,s,e,t]),Rs())}}const Gm="components",OI="directives";function _r(e,t){return Um(Gm,e,!0,t)||e}const XC=Symbol();function nn(e){return He(e)?Um(Gm,e,!1)||e:e||XC}function ZC(e){return Um(OI,e)}function Um(e,t,r=!0,n=!1){const i=qt||It;if(i){const a=i.type;if(e===Gm){const s=cO(a,!1);if(s&&(s===t||s===An(t)||s===Fd(An(t))))return a}const o=s_(i[e]||a[e],t)||s_(i.appContext[e],t);return!o&&n?a:o}}function s_(e,t){return e&&(e[t]||e[An(t)]||e[Fd(An(t))])}function l_(e,t,r,n){let i;const a=r&&r[n];if(be(e)||He(e)){i=new Array(e.length);for(let o=0,s=e.length;o<s;o++)i[o]=t(e[o],o,void 0,a&&a[o])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a&&a[o])}else if(Xe(e))if(e[Symbol.iterator])i=Array.from(e,(o,s)=>t(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;s<l;s++){const u=o[s];i[s]=t(e[u],u,s,a&&a[s])}}else i=[];return r&&(r[n]=i),i}function $e(e,t,r={},n,i){if(qt.isCE||qt.parent&&Pl(qt.parent)&&qt.parent.isCE)return t!=="default"&&(r.name=t),ee("slot",r,n&&n());let a=e[t];a&&a._c&&(a._d=!1),Y();const o=a&&QC(a(r)),s=_e(pt,{key:r.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function QC(e){return e.some(t=>ta(t)?!(t.type===Sr||t.type===pt&&!QC(t.children)):!0)?e:null}function RI(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:yf(n)]=e[n];return r}const Ap=e=>e?uT(e)?jd(e)||e.proxy:Ap(e.parent):null,El=Gt(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=>Ap(e.parent),$root:e=>Ap(e.root),$emit:e=>e.emit,$options:e=>jm(e),$forceUpdate:e=>e.f||(e.f=()=>zm(e.update)),$nextTick:e=>e.n||(e.n=Ft.bind(e.proxy)),$watch:e=>CI.bind(e)}),Rh=(e,t)=>e!==yt&&!e.__isScriptSetup&&We(e,t),kI={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(Rh(n,t))return o[t]=1,n[t];if(i!==yt&&We(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&We(u,t))return o[t]=3,a[t];if(r!==yt&&We(r,t))return o[t]=4,r[t];Pp&&(o[t]=0)}}const c=El[t];let f,d;if(c)return t==="$attrs"&&Mr(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==yt&&We(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,We(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Rh(i,t)?(i[t]=r,!0):n!==yt&&We(n,t)?(n[t]=r,!0):We(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!==yt&&We(e,o)||Rh(t,o)||(s=a[0])&&We(s,o)||We(n,o)||We(El,o)||We(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:We(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let Pp=!0;function NI(e){const t=jm(e),r=e.proxy,n=e.ctx;Pp=!1,t.beforeCreate&&u_(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:b,render:S,renderTracked:w,renderTriggered:x,errorCaptured:C,serverPrefetch:M,expose:E,inheritAttrs:A,components:T,directives:D,filters:N}=t;if(u&&FI(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const G in o){const F=o[G];De(F)&&(n[G]=F.bind(r))}if(i){const G=i.call(r,r);Xe(G)&&(e.data=fn(G))}if(Pp=!0,a)for(const G in a){const F=a[G],R=De(F)?F.bind(r,r):De(F.get)?F.get.bind(r,r):ur,j=!De(F)&&De(F.set)?F.set.bind(r):ur,re=k({get:R,set:j});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>re.value,set:oe=>re.value=oe})}if(s)for(const G in s)JC(s[G],n,r,G);if(l){const G=De(l)?l.call(r):l;Reflect.ownKeys(G).forEach(F=>{At(F,G[F])})}c&&u_(c,e,"c");function $(G,F){be(F)?F.forEach(R=>G(R.bind(r))):F&&G(F.bind(r))}if($(Gd,f),$(wt,d),$(PI,h),$(Hu,v),$(MI,p),$(qC,g),$(II,C),$(DI,w),$(LI,x),$(Xt,y),$(ks,b),$(EI,M),be(E))if(E.length){const G=e.exposed||(e.exposed={});E.forEach(F=>{Object.defineProperty(G,F,{get:()=>r[F],set:R=>r[F]=R})})}else e.exposed||(e.exposed={});S&&e.render===ur&&(e.render=S),A!=null&&(e.inheritAttrs=A),T&&(e.components=T),D&&(e.directives=D)}function FI(e,t,r=ur,n=!1){be(e)&&(e=Ep(e));for(const i in e){const a=e[i];let o;Xe(a)?"default"in a?o=Pe(a.from||i,a.default,!0):o=Pe(a.from||i):o=Pe(a),Ct(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function u_(e,t,r){rn(be(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function JC(e,t,r,n){const i=n.includes(".")?GC(r,n):()=>r[n];if(He(e)){const a=t[e];De(a)&&xe(i,a)}else if(De(e))xe(i,e.bind(r));else if(Xe(e))if(be(e))e.forEach(a=>JC(a,t,r,n));else{const a=De(e.handler)?e.handler.bind(r):t[e.handler];De(a)&&xe(i,a,e)}}function jm(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=>Zf(l,u,o,!0)),Zf(l,t,o)),Xe(t)&&a.set(t,l),l}function Zf(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Zf(e,a,r,!0),i&&i.forEach(o=>Zf(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=BI[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const BI={data:c_,props:za,emits:za,methods:za,computed:za,beforeCreate:ir,created:ir,beforeMount:ir,mounted:ir,beforeUpdate:ir,updated:ir,beforeDestroy:ir,beforeUnmount:ir,destroyed:ir,unmounted:ir,activated:ir,deactivated:ir,errorCaptured:ir,serverPrefetch:ir,components:za,directives:za,watch:HI,provide:c_,inject:$I};function c_(e,t){return t?e?function(){return Gt(De(e)?e.call(this,this):e,De(t)?t.call(this,this):t)}:t:e}function $I(e,t){return za(Ep(e),Ep(t))}function Ep(e){if(be(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ir(e,t){return e?[...new Set([].concat(e,t))]:t}function za(e,t){return e?Gt(Gt(Object.create(null),e),t):t}function HI(e,t){if(!e)return t;if(!t)return e;const r=Gt(Object.create(null),e);for(const n in t)r[n]=ir(e[n],t[n]);return r}function zI(e,t,r,n=!1){const i={},a={};Yf(a,Ud,1),e.propsDefaults=Object.create(null),eT(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:LC(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function WI(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Ke(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(zd(e.emitsOptions,d))continue;const h=t[d];if(l)if(We(a,d))h!==a[d]&&(a[d]=h,u=!0);else{const v=An(d);i[v]=Lp(l,s,v,h,e,!1)}else h!==a[d]&&(a[d]=h,u=!0)}}}else{eT(e,t,i,a)&&(u=!0);let c;for(const f in s)(!t||!We(t,f)&&((c=So(f))===f||!We(t,c)))&&(l?r&&(r[f]!==void 0||r[c]!==void 0)&&(i[f]=Lp(l,s,f,void 0,e,!0)):delete i[f]);if(a!==s)for(const f in a)(!t||!We(t,f))&&(delete a[f],u=!0)}u&&gi(e,"set","$attrs")}function eT(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(mf(l))continue;const u=t[l];let c;i&&We(i,c=An(l))?!a||!a.includes(c)?r[c]=u:(s||(s={}))[c]=u:zd(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Ke(r),u=s||yt;for(let c=0;c<a.length;c++){const f=a[c];r[f]=Lp(i,l,f,u[f],e,!We(u,f))}}return o}function Lp(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=We(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&De(l)){const{propsDefaults:u}=i;r in u?n=u[r]:(ps(i),n=u[r]=l.call(null,t),ao())}else n=l}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===So(r))&&(n=!0))}return n}function tT(e,t,r=!1){const n=t.propsCache,i=n.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!De(e)){const c=f=>{l=!0;const[d,h]=tT(f,t,!0);Gt(o,d),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return Xe(e)&&n.set(e,ns),ns;if(be(a))for(let c=0;c<a.length;c++){const f=An(a[c]);f_(f)&&(o[f]=yt)}else if(a)for(const c in a){const f=An(c);if(f_(f)){const d=a[c],h=o[f]=be(d)||De(d)?{type:d}:Object.assign({},d);if(h){const v=v_(Boolean,h.type),p=v_(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||We(h,"default"))&&s.push(f)}}}const u=[o,s];return Xe(e)&&n.set(e,u),u}function f_(e){return e[0]!=="$"}function d_(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function h_(e,t){return d_(e)===d_(t)}function v_(e,t){return be(t)?t.findIndex(r=>h_(r,e)):De(t)&&h_(t,e)?0:-1}const rT=e=>e[0]==="_"||e==="$stable",Ym=e=>be(e)?e.map(Bn):[Bn(e)],VI=(e,t,r)=>{if(t._n)return t;const n=Z((...i)=>Ym(t(...i)),r);return n._c=!1,n},nT=(e,t,r)=>{const n=e._ctx;for(const i in e){if(rT(i))continue;const a=e[i];if(De(a))t[i]=VI(i,a,n);else if(a!=null){const o=Ym(a);t[i]=()=>o}}},iT=(e,t)=>{const r=Ym(t);e.slots.default=()=>r},GI=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Ke(t),Yf(t,"_",r)):nT(t,e.slots={})}else e.slots={},t&&iT(e,t);Yf(e.slots,Ud,1)},UI=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=yt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(Gt(i,t),!r&&s===1&&delete i._):(a=!t.$stable,nT(t,i)),o=t}else t&&(iT(e,t),o={default:1});if(a)for(const s in i)!rT(s)&&!(s in o)&&delete i[s]};function aT(){return{app:null,config:{isNativeTag:wD,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 jI=0;function YI(e,t){return function(n,i=null){De(n)||(n=Object.assign({},n)),i!=null&&!Xe(i)&&(i=null);const a=aT(),o=new Set;let s=!1;const l=a.app={_uid:jI++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:pO,get config(){return a.config},set config(u){},use(u,...c){return o.has(u)||(u&&De(u.install)?(o.add(u),u.install(l,...c)):De(u)&&(o.add(u),u(l,...c))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,c){return c?(a.components[u]=c,l):a.components[u]},directive(u,c){return c?(a.directives[u]=c,l):a.directives[u]},mount(u,c,f){if(!s){const d=ee(n,i);return d.appContext=a,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,jd(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return a.provides[u]=c,l}};return l}}function Dp(e,t,r,n,i=!1){if(be(e)){e.forEach((d,h)=>Dp(d,t&&(be(t)?t[h]:t),r,n,i));return}if(Pl(n)&&!i)return;const a=n.shapeFlag&4?jd(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===yt?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(He(u)?(c[u]=null,We(f,u)&&(f[u]=null)):Ct(u)&&(u.value=null)),De(l))Zi(l,s,12,[o,c]);else{const d=He(l),h=Ct(l);if(d||h){const v=()=>{if(e.f){const p=d?We(f,l)?f[l]:c[l]:l.value;i?be(p)&&Lm(p,a):be(p)?p.includes(a)||p.push(a):d?(c[l]=[a],We(f,l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,We(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,yr(v,r)):v()}}}const yr=xI;function qI(e){return KI(e)}function KI(e,t){const r=ED();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=ur,insertStaticContent:v}=e,p=(L,I,z,U=null,K=null,ne=null,fe=!1,te=null,ie=!!I.dynamicChildren)=>{if(L===I)return;L&&!Ua(L,I)&&(U=W(L),oe(L,K,ne,!0),L=null),I.patchFlag===-2&&(ie=!1,I.dynamicChildren=null);const{type:X,ref:we,shapeFlag:he}=I;switch(X){case Ns:g(L,I,z,U);break;case Sr:m(L,I,z,U);break;case kh:L==null&&y(I,z,U,fe);break;case pt:T(L,I,z,U,K,ne,fe,te,ie);break;default:he&1?S(L,I,z,U,K,ne,fe,te,ie):he&6?D(L,I,z,U,K,ne,fe,te,ie):(he&64||he&128)&&X.process(L,I,z,U,K,ne,fe,te,ie,le)}we!=null&&K&&Dp(we,L&&L.ref,ne,I||L,!I)},g=(L,I,z,U)=>{if(L==null)n(I.el=s(I.children),z,U);else{const K=I.el=L.el;I.children!==L.children&&u(K,I.children)}},m=(L,I,z,U)=>{L==null?n(I.el=l(I.children||""),z,U):I.el=L.el},y=(L,I,z,U)=>{[L.el,L.anchor]=v(L.children,I,z,U,L.el,L.anchor)},_=({el:L,anchor:I},z,U)=>{let K;for(;L&&L!==I;)K=d(L),n(L,z,U),L=K;n(I,z,U)},b=({el:L,anchor:I})=>{let z;for(;L&&L!==I;)z=d(L),i(L),L=z;i(I)},S=(L,I,z,U,K,ne,fe,te,ie)=>{fe=fe||I.type==="svg",L==null?w(I,z,U,K,ne,fe,te,ie):M(L,I,K,ne,fe,te,ie)},w=(L,I,z,U,K,ne,fe,te)=>{let ie,X;const{type:we,props:he,shapeFlag:Se,transition:Oe,dirs:ze}=L;if(ie=L.el=o(L.type,ne,he&&he.is,he),Se&8?c(ie,L.children):Se&16&&C(L.children,ie,null,U,K,ne&&we!=="foreignObject",fe,te),ze&&ha(L,null,U,"created"),x(ie,L,L.scopeId,fe,U),he){for(const Je in he)Je!=="value"&&!mf(Je)&&a(ie,Je,null,he[Je],ne,L.children,U,K,Q);"value"in he&&a(ie,"value",null,he.value),(X=he.onVnodeBeforeMount)&&On(X,U,L)}ze&&ha(L,null,U,"beforeMount");const rt=(!K||K&&!K.pendingBranch)&&Oe&&!Oe.persisted;rt&&Oe.beforeEnter(ie),n(ie,I,z),((X=he&&he.onVnodeMounted)||rt||ze)&&yr(()=>{X&&On(X,U,L),rt&&Oe.enter(ie),ze&&ha(L,null,U,"mounted")},K)},x=(L,I,z,U,K)=>{if(z&&h(L,z),U)for(let ne=0;ne<U.length;ne++)h(L,U[ne]);if(K){let ne=K.subTree;if(I===ne){const fe=K.vnode;x(L,fe,fe.scopeId,fe.slotScopeIds,K.parent)}}},C=(L,I,z,U,K,ne,fe,te,ie=0)=>{for(let X=ie;X<L.length;X++){const we=L[X]=te?Vi(L[X]):Bn(L[X]);p(null,we,I,z,U,K,ne,fe,te)}},M=(L,I,z,U,K,ne,fe)=>{const te=I.el=L.el;let{patchFlag:ie,dynamicChildren:X,dirs:we}=I;ie|=L.patchFlag&16;const he=L.props||yt,Se=I.props||yt;let Oe;z&&va(z,!1),(Oe=Se.onVnodeBeforeUpdate)&&On(Oe,z,I,L),we&&ha(I,L,z,"beforeUpdate"),z&&va(z,!0);const ze=K&&I.type!=="foreignObject";if(X?E(L.dynamicChildren,X,te,z,U,ze,ne):fe||F(L,I,te,null,z,U,ze,ne,!1),ie>0){if(ie&16)A(te,I,he,Se,z,U,K);else if(ie&2&&he.class!==Se.class&&a(te,"class",null,Se.class,K),ie&4&&a(te,"style",he.style,Se.style,K),ie&8){const rt=I.dynamicProps;for(let Je=0;Je<rt.length;Je++){const Lt=rt[Je],ve=he[Lt],Ee=Se[Lt];(Ee!==ve||Lt==="value")&&a(te,Lt,ve,Ee,K,L.children,z,U,Q)}}ie&1&&L.children!==I.children&&c(te,I.children)}else!fe&&X==null&&A(te,I,he,Se,z,U,K);((Oe=Se.onVnodeUpdated)||we)&&yr(()=>{Oe&&On(Oe,z,I,L),we&&ha(I,L,z,"updated")},U)},E=(L,I,z,U,K,ne,fe)=>{for(let te=0;te<I.length;te++){const ie=L[te],X=I[te],we=ie.el&&(ie.type===pt||!Ua(ie,X)||ie.shapeFlag&70)?f(ie.el):z;p(ie,X,we,null,U,K,ne,fe,!0)}},A=(L,I,z,U,K,ne,fe)=>{if(z!==U){if(z!==yt)for(const te in z)!mf(te)&&!(te in U)&&a(L,te,z[te],null,fe,I.children,K,ne,Q);for(const te in U){if(mf(te))continue;const ie=U[te],X=z[te];ie!==X&&te!=="value"&&a(L,te,X,ie,fe,I.children,K,ne,Q)}"value"in U&&a(L,"value",z.value,U.value)}},T=(L,I,z,U,K,ne,fe,te,ie)=>{const X=I.el=L?L.el:s(""),we=I.anchor=L?L.anchor:s("");let{patchFlag:he,dynamicChildren:Se,slotScopeIds:Oe}=I;Oe&&(te=te?te.concat(Oe):Oe),L==null?(n(X,z,U),n(we,z,U),C(I.children,z,we,K,ne,fe,te,ie)):he>0&&he&64&&Se&&L.dynamicChildren?(E(L.dynamicChildren,Se,z,K,ne,fe,te),(I.key!=null||K&&I===K.subTree)&&qm(L,I,!0)):F(L,I,z,we,K,ne,fe,te,ie)},D=(L,I,z,U,K,ne,fe,te,ie)=>{I.slotScopeIds=te,L==null?I.shapeFlag&512?K.ctx.activate(I,z,U,fe,ie):N(I,z,U,K,ne,fe,ie):H(L,I,ie)},N=(L,I,z,U,K,ne,fe)=>{const te=L.component=oO(L,U,K);if(Wd(L)&&(te.ctx.renderer=le),sO(te),te.asyncDep){if(K&&K.registerDep(te,$),!L.el){const ie=te.subTree=ee(Sr);m(null,ie,I,z)}return}$(te,L,I,z,K,ne,fe)},H=(L,I,z)=>{const U=I.component=L.component;if(bI(L,I,z))if(U.asyncDep&&!U.asyncResolved){G(U,I,z);return}else U.next=I,vI(U.update),U.update();else I.el=L.el,U.vnode=I},$=(L,I,z,U,K,ne,fe)=>{const te=()=>{if(L.isMounted){let{next:we,bu:he,u:Se,parent:Oe,vnode:ze}=L,rt=we,Je;va(L,!1),we?(we.el=ze.el,G(L,we,fe)):we=ze,he&&_f(he),(Je=we.props&&we.props.onVnodeBeforeUpdate)&&On(Je,Oe,we,ze),va(L,!0);const Lt=Ih(L),ve=L.subTree;L.subTree=Lt,p(ve,Lt,f(ve.el),W(ve),L,K,ne),we.el=Lt.el,rt===null&&wI(L,Lt.el),Se&&yr(Se,K),(Je=we.props&&we.props.onVnodeUpdated)&&yr(()=>On(Je,Oe,we,ze),K)}else{let we;const{el:he,props:Se}=I,{bm:Oe,m:ze,parent:rt}=L,Je=Pl(I);if(va(L,!1),Oe&&_f(Oe),!Je&&(we=Se&&Se.onVnodeBeforeMount)&&On(we,rt,I),va(L,!0),he&&J){const Lt=()=>{L.subTree=Ih(L),J(he,L.subTree,L,K,null)};Je?I.type.__asyncLoader().then(()=>!L.isUnmounted&&Lt()):Lt()}else{const Lt=L.subTree=Ih(L);p(null,Lt,z,U,L,K,ne),I.el=Lt.el}if(ze&&yr(ze,K),!Je&&(we=Se&&Se.onVnodeMounted)){const Lt=I;yr(()=>On(we,rt,Lt),K)}(I.shapeFlag&256||rt&&Pl(rt.vnode)&&rt.vnode.shapeFlag&256)&&L.a&&yr(L.a,K),L.isMounted=!0,I=z=U=null}},ie=L.effect=new Om(te,()=>zm(X),L.scope),X=L.update=()=>ie.run();X.id=L.uid,va(L,!0),X()},G=(L,I,z)=>{I.component=L;const U=L.vnode.props;L.vnode=I,L.next=null,WI(L,I.props,U,z),UI(L,I.children,z),Os(),i_(),Rs()},F=(L,I,z,U,K,ne,fe,te,ie=!1)=>{const X=L&&L.children,we=L?L.shapeFlag:0,he=I.children,{patchFlag:Se,shapeFlag:Oe}=I;if(Se>0){if(Se&128){j(X,he,z,U,K,ne,fe,te,ie);return}else if(Se&256){R(X,he,z,U,K,ne,fe,te,ie);return}}Oe&8?(we&16&&Q(X,K,ne),he!==X&&c(z,he)):we&16?Oe&16?j(X,he,z,U,K,ne,fe,te,ie):Q(X,K,ne,!0):(we&8&&c(z,""),Oe&16&&C(he,z,U,K,ne,fe,te,ie))},R=(L,I,z,U,K,ne,fe,te,ie)=>{L=L||ns,I=I||ns;const X=L.length,we=I.length,he=Math.min(X,we);let Se;for(Se=0;Se<he;Se++){const Oe=I[Se]=ie?Vi(I[Se]):Bn(I[Se]);p(L[Se],Oe,z,null,K,ne,fe,te,ie)}X>we?Q(L,K,ne,!0,!1,he):C(I,z,U,K,ne,fe,te,ie,he)},j=(L,I,z,U,K,ne,fe,te,ie)=>{let X=0;const we=I.length;let he=L.length-1,Se=we-1;for(;X<=he&&X<=Se;){const Oe=L[X],ze=I[X]=ie?Vi(I[X]):Bn(I[X]);if(Ua(Oe,ze))p(Oe,ze,z,null,K,ne,fe,te,ie);else break;X++}for(;X<=he&&X<=Se;){const Oe=L[he],ze=I[Se]=ie?Vi(I[Se]):Bn(I[Se]);if(Ua(Oe,ze))p(Oe,ze,z,null,K,ne,fe,te,ie);else break;he--,Se--}if(X>he){if(X<=Se){const Oe=Se+1,ze=Oe<we?I[Oe].el:U;for(;X<=Se;)p(null,I[X]=ie?Vi(I[X]):Bn(I[X]),z,ze,K,ne,fe,te,ie),X++}}else if(X>Se)for(;X<=he;)oe(L[X],K,ne,!0),X++;else{const Oe=X,ze=X,rt=new Map;for(X=ze;X<=Se;X++){const it=I[X]=ie?Vi(I[X]):Bn(I[X]);it.key!=null&&rt.set(it.key,X)}let Je,Lt=0;const ve=Se-ze+1;let Ee=!1,je=0;const Be=new Array(ve);for(X=0;X<ve;X++)Be[X]=0;for(X=Oe;X<=he;X++){const it=L[X];if(Lt>=ve){oe(it,K,ne,!0);continue}let Mt;if(it.key!=null)Mt=rt.get(it.key);else for(Je=ze;Je<=Se;Je++)if(Be[Je-ze]===0&&Ua(it,I[Je])){Mt=Je;break}Mt===void 0?oe(it,K,ne,!0):(Be[Mt-ze]=X+1,Mt>=je?je=Mt:Ee=!0,p(it,I[Mt],z,null,K,ne,fe,te,ie),Lt++)}const nt=Ee?XI(Be):ns;for(Je=nt.length-1,X=ve-1;X>=0;X--){const it=ze+X,Mt=I[it],ri=it+1<we?I[it+1].el:U;Be[X]===0?p(null,Mt,z,ri,K,ne,fe,te,ie):Ee&&(Je<0||X!==nt[Je]?re(Mt,z,ri,2):Je--)}}},re=(L,I,z,U,K=null)=>{const{el:ne,type:fe,transition:te,children:ie,shapeFlag:X}=L;if(X&6){re(L.component.subTree,I,z,U);return}if(X&128){L.suspense.move(I,z,U);return}if(X&64){fe.move(L,I,z,le);return}if(fe===pt){n(ne,I,z);for(let he=0;he<ie.length;he++)re(ie[he],I,z,U);n(L.anchor,I,z);return}if(fe===kh){_(L,I,z);return}if(U!==2&&X&1&&te)if(U===0)te.beforeEnter(ne),n(ne,I,z),yr(()=>te.enter(ne),K);else{const{leave:he,delayLeave:Se,afterLeave:Oe}=te,ze=()=>n(ne,I,z),rt=()=>{he(ne,()=>{ze(),Oe&&Oe()})};Se?Se(ne,ze,rt):rt()}else n(ne,I,z)},oe=(L,I,z,U=!1,K=!1)=>{const{type:ne,props:fe,ref:te,children:ie,dynamicChildren:X,shapeFlag:we,patchFlag:he,dirs:Se}=L;if(te!=null&&Dp(te,null,z,L,!0),we&256){I.ctx.deactivate(L);return}const Oe=we&1&&Se,ze=!Pl(L);let rt;if(ze&&(rt=fe&&fe.onVnodeBeforeUnmount)&&On(rt,I,L),we&6)V(L.component,z,U);else{if(we&128){L.suspense.unmount(z,U);return}Oe&&ha(L,null,I,"beforeUnmount"),we&64?L.type.remove(L,I,z,K,le,U):X&&(ne!==pt||he>0&&he&64)?Q(X,I,z,!1,!0):(ne===pt&&he&384||!K&&we&16)&&Q(ie,I,z),U&&ye(L)}(ze&&(rt=fe&&fe.onVnodeUnmounted)||Oe)&&yr(()=>{rt&&On(rt,I,L),Oe&&ha(L,null,I,"unmounted")},z)},ye=L=>{const{type:I,el:z,anchor:U,transition:K}=L;if(I===pt){Ae(z,U);return}if(I===kh){b(L);return}const ne=()=>{i(z),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(L.shapeFlag&1&&K&&!K.persisted){const{leave:fe,delayLeave:te}=K,ie=()=>fe(z,ne);te?te(L.el,ne,ie):ie()}else ne()},Ae=(L,I)=>{let z;for(;L!==I;)z=d(L),i(L),L=z;i(I)},V=(L,I,z)=>{const{bum:U,scope:K,update:ne,subTree:fe,um:te}=L;U&&_f(U),K.stop(),ne&&(ne.active=!1,oe(fe,L,I,z)),te&&yr(te,I),yr(()=>{L.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Q=(L,I,z,U=!1,K=!1,ne=0)=>{for(let fe=ne;fe<L.length;fe++)oe(L[fe],I,z,U,K)},W=L=>L.shapeFlag&6?W(L.component.subTree):L.shapeFlag&128?L.suspense.next():d(L.anchor||L.el),q=(L,I,z)=>{L==null?I._vnode&&oe(I._vnode,null,null,!0):p(I._vnode||null,L,I,null,null,null,z),i_(),HC(),I._vnode=L},le={p,um:oe,m:re,r:ye,mt:N,mc:C,pc:F,pbc:E,n:W,o:e};let de,J;return t&&([de,J]=t(le)),{render:q,hydrate:de,createApp:YI(q,de)}}function va({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function qm(e,t,r=!1){const n=e.children,i=t.children;if(be(n)&&be(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=Vi(i[a]),s.el=o.el),r||qm(o,s)),s.type===Ns&&(s.el=o.el)}}function XI(e){const t=e.slice(),r=[0];let n,i,a,o,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(i=r[r.length-1],e[i]<u){t[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,e[r[s]]<u?a=s+1:o=s;u<e[r[a]]&&(a>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 ZI=e=>e.__isTeleport,Ll=e=>e&&(e.disabled||e.disabled===""),p_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ip=(e,t)=>{const r=e&&e.to;return He(r)?t?t(r):null:r},QI={__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=Ll(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const S=t.el=p(""),w=t.anchor=p("");h(S,r,n),h(w,r,n);const x=t.target=Ip(t.props,v),C=t.targetAnchor=p("");x&&(h(C,x),o=o||p_(x));const M=(E,A)=>{y&16&&c(_,E,A,i,a,o,s,l)};m?M(r,w):x&&M(x,C)}else{t.el=e.el;const S=t.anchor=e.anchor,w=t.target=e.target,x=t.targetAnchor=e.targetAnchor,C=Ll(e.props),M=C?r:w,E=C?S:x;if(o=o||p_(w),b?(d(e.dynamicChildren,b,M,i,a,o,s),qm(e,t,!0)):l||f(e,t,M,E,i,a,o,s,!1),m)C||pc(t,r,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Ip(t.props,v);A&&pc(t,A,null,u,0)}else C&&pc(t,w,x,u,1)}oT(t)},remove(e,t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&a(c),(o||!Ll(d))&&(a(u),s&16))for(let h=0;h<l.length;h++){const v=l[h];i(v,t,r,!0,!!v.dynamicChildren)}},move:pc,hydrate:JI};function pc(e,t,r,{o:{insert:n},m:i},a=2){a===0&&n(e.targetAnchor,t,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,f=a===2;if(f&&n(o,t,r),(!f||Ll(c))&&l&16)for(let d=0;d<u.length;d++)i(u[d],t,r,2);f&&n(s,t,r)}function JI(e,t,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=Ip(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(Ll(t.props))t.anchor=u(o(e),t,s(e),r,n,i,a),t.targetAnchor=f;else{t.anchor=o(e);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,c._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(f,t,c,r,n,i,a)}oT(t)}return t.anchor&&o(t.anchor)}const eO=QI;function oT(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const pt=Symbol(void 0),Ns=Symbol(void 0),Sr=Symbol(void 0),kh=Symbol(void 0),Dl=[];let wn=null;function Y(e=!1){Dl.push(wn=e?null:[])}function tO(){Dl.pop(),wn=Dl[Dl.length-1]||null}let lu=1;function g_(e){lu+=e}function sT(e){return e.dynamicChildren=lu>0?wn||ns:null,tO(),lu>0&&wn&&wn.push(e),e}function me(e,t,r,n,i,a){return sT(ae(e,t,r,n,i,a,!0))}function _e(e,t,r,n,i){return sT(ee(e,t,r,n,i,!0))}function ta(e){return e?e.__v_isVNode===!0:!1}function Ua(e,t){return e.type===t.type&&e.key===t.key}const Ud="__vInternal",lT=({key:e})=>e??null,bf=({ref:e,ref_key:t,ref_for:r})=>e!=null?He(e)||Ct(e)||De(e)?{i:qt,r:e,k:t,f:!!r}:e:null;function ae(e,t=null,r=null,n=0,i=null,a=e===pt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lT(t),ref:t&&bf(t),scopeId:VC,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:qt};return s?(Km(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=He(r)?8:16),lu>0&&!o&&wn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&wn.push(l),l}const ee=rO;function rO(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===XC)&&(e=Sr),ta(e)){const s=mi(e,t,!0);return r&&Km(s,r),lu>0&&!a&&wn&&(s.shapeFlag&6?wn[wn.indexOf(e)]=s:wn.push(s)),s.patchFlag|=-2,s}if(fO(e)&&(e=e.__vccOpts),t){t=nO(t);let{class:s,style:l}=t;s&&!He(s)&&(t.class=ue(s)),Xe(l)&&(DC(l)&&!be(l)&&(l=Gt({},l)),t.style=xt(l))}const o=He(e)?1:SI(e)?128:ZI(e)?64:Xe(e)?4:De(e)?2:0;return ae(e,t,r,n,i,o,a,!0)}function nO(e){return e?DC(e)||Ud in e?Gt({},e):e:null}function mi(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?ca(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&lT(s),ref:t&&t.ref?r&&i?be(i)?i.concat(bf(t)):[i,bf(t)]:bf(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!==pt?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&&mi(e.ssContent),ssFallback:e.ssFallback&&mi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Bt(e=" ",t=0){return ee(Ns,null,e,t)}function Fe(e="",t=!1){return t?(Y(),_e(Sr,null,e)):ee(Sr,null,e)}function Bn(e){return e==null||typeof e=="boolean"?ee(Sr):be(e)?ee(pt,null,e.slice()):typeof e=="object"?Vi(e):ee(Ns,null,String(e))}function Vi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mi(e)}function Km(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(be(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Km(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(Ud in t)?t._ctx=qt:i===3&&qt&&(qt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else De(t)?(t={default:t,_ctx:qt},r=32):(t=String(t),n&64?(r=16,t=[Bt(t)]):r=8);e.children=t,e.shapeFlag|=r}function ca(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=ue([t.class,n.class]));else if(i==="style")t.style=xt([t.style,n.style]);else if(Rd(i)){const a=t[i],o=n[i];o&&a!==o&&!(be(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function On(e,t,r,n=null){rn(e,t,7,[r,n])}const iO=aT();let aO=0;function oO(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||iO,a={uid:aO++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new LD(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tT(n,i),emitsOptions:WC(n,i),emit:null,emitted:null,propsDefaults:yt,inheritAttrs:n.inheritAttrs,ctx:yt,data:yt,props:yt,attrs:yt,slots:yt,refs:yt,setupState:yt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=mI.bind(null,a),e.ce&&e.ce(a),a}let It=null;const ct=()=>It||qt,ps=e=>{It=e,e.scope.on()},ao=()=>{It&&It.scope.off(),It=null};function uT(e){return e.vnode.shapeFlag&4}let uu=!1;function sO(e,t=!1){uu=t;const{props:r,children:n}=e.vnode,i=uT(e);zI(e,r,i,t),GI(e,n);const a=i?lO(e,t):void 0;return uu=!1,a}function lO(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=IC(new Proxy(e.ctx,kI));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?fT(e):null;ps(e),Os();const a=Zi(n,e,0,[e.props,i]);if(Rs(),ao(),jf(a)){if(a.then(ao,ao),t)return a.then(o=>{m_(e,o,t)}).catch(o=>{Hd(o,e,0)});e.asyncDep=a}else m_(e,a,t)}else cT(e,t)}function m_(e,t,r){De(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xe(t)&&(e.setupState=NC(t)),cT(e,r)}let y_;function cT(e,t,r){const n=e.type;if(!e.render){if(!t&&y_&&!n.render){const i=n.template||jm(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Gt(Gt({isCustomElement:a,delimiters:s},o),l);n.render=y_(i,u)}}e.render=n.render||ur}ps(e),Os(),NI(e),Rs(),ao()}function uO(e){return new Proxy(e.attrs,{get(t,r){return Mr(e,"get","$attrs"),t[r]}})}function fT(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=uO(e))},slots:e.slots,emit:e.emit,expose:t}}function jd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(NC(IC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in El)return El[r](e)},has(t,r){return r in t||r in El}}))}function cO(e,t=!0){return De(e)?e.displayName||e.name:e.name||t&&e.__name}function fO(e){return De(e)&&"__vccOpts"in e}const k=(e,t)=>cI(e,t,uu);function Yd(){return dO().slots}function dO(){const e=ct();return e.setupContext||(e.setupContext=fT(e))}function Ce(e,t,r){const n=arguments.length;return n===2?Xe(t)&&!be(t)?ta(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&ta(r)&&(r=[r]),ee(e,t,r))}const hO=Symbol(""),vO=()=>Pe(hO),pO="3.2.47",gO="http://www.w3.org/2000/svg",ja=typeof document<"u"?document:null,__=ja&&ja.createElement("template"),mO={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?ja.createElementNS(gO,e):ja.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ja.createTextNode(e),createComment:e=>ja.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ja.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{__.innerHTML=n?`<svg>${e}</svg>`:e;const s=__.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 yO(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 _O(e,t,r){const n=e.style,i=He(r);if(r&&!i){if(t&&!He(t))for(const a in t)r[a]==null&&Op(n,a,"");for(const a in r)Op(n,a,r[a])}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const b_=/\s*!important$/;function Op(e,t,r){if(be(r))r.forEach(n=>Op(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=bO(e,t);b_.test(r)?e.setProperty(So(n),r.replace(b_,""),"important"):e[n]=r}}const w_=["Webkit","Moz","ms"],Nh={};function bO(e,t){const r=Nh[t];if(r)return r;let n=An(t);if(n!=="filter"&&n in e)return Nh[t]=n;n=Fd(n);for(let i=0;i<w_.length;i++){const a=w_[i]+n;if(a in e)return Nh[t]=a}return t}const S_="http://www.w3.org/1999/xlink";function wO(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(S_,t.slice(6,t.length)):e.setAttributeNS(S_,t,r);else{const a=_D(t);r==null||a&&!vC(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function SO(e,t,r,n,i,a,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,a),e[t]=r??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const l=r??"";(e.value!==l||e.tagName==="OPTION")&&(e.value=l),r==null&&e.removeAttribute(t);return}let s=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=vC(r):r==null&&l==="string"?(r="",s=!0):l==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(t)}function dT(e,t,r,n){e.addEventListener(t,r,n)}function xO(e,t,r,n){e.removeEventListener(t,r,n)}function CO(e,t,r,n,i=null){const a=e._vei||(e._vei={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=TO(t);if(n){const u=a[t]=PO(n,i);dT(e,s,u,l)}else o&&(xO(e,s,o,l),a[t]=void 0)}}const x_=/(?:Once|Passive|Capture)$/;function TO(e){let t;if(x_.test(e)){t={};let n;for(;n=e.match(x_);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):So(e.slice(2)),t]}let Fh=0;const MO=Promise.resolve(),AO=()=>Fh||(MO.then(()=>Fh=0),Fh=Date.now());function PO(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;rn(EO(n,r.value),t,5,[n])};return r.value=e,r.attached=AO(),r}function EO(e,t){if(be(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]/,LO=(e,t,r,n,i=!1,a,o,s,l)=>{t==="class"?yO(e,n,i):t==="style"?_O(e,r,n):Rd(t)?Em(t)||CO(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):DO(e,t,n,i))?SO(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),wO(e,t,n,i))};function DO(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&C_.test(t)&&De(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||C_.test(t)&&He(r)?!1:t in e}const Li="transition",Ys="animation",Ci=(e,{slots:t})=>Ce(jC,vT(e),t);Ci.displayName="Transition";const hT={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},IO=Ci.props=Gt({},jC.props,hT),pa=(e,t=[])=>{be(e)?e.forEach(r=>r(...t)):e&&e(...t)},T_=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function vT(e){const t={};for(const T in e)T in hT||(t[T]=e[T]);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:c=s,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=OO(i),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:S,onBeforeAppear:w=m,onAppear:x=y,onAppearCancelled:C=_}=t,M=(T,D,N)=>{Bi(T,D?c:s),Bi(T,D?u:o),N&&N()},E=(T,D)=>{T._isLeaving=!1,Bi(T,f),Bi(T,h),Bi(T,d),D&&D()},A=T=>(D,N)=>{const H=T?x:y,$=()=>M(D,T,N);pa(H,[D,$]),M_(()=>{Bi(D,T?l:a),li(D,T?c:s),T_(H)||A_(D,n,p,$)})};return Gt(t,{onBeforeEnter(T){pa(m,[T]),li(T,a),li(T,o)},onBeforeAppear(T){pa(w,[T]),li(T,l),li(T,u)},onEnter:A(!1),onAppear:A(!0),onLeave(T,D){T._isLeaving=!0;const N=()=>E(T,D);li(T,f),gT(),li(T,d),M_(()=>{T._isLeaving&&(Bi(T,f),li(T,h),T_(b)||A_(T,n,g,N))}),pa(b,[T,N])},onEnterCancelled(T){M(T,!1),pa(_,[T])},onAppearCancelled(T){M(T,!0),pa(C,[T])},onLeaveCancelled(T){E(T),pa(S,[T])}})}function OO(e){if(e==null)return null;if(Xe(e))return[Bh(e.enter),Bh(e.leave)];{const t=Bh(e);return[t,t]}}function Bh(e){return PD(e)}function li(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function Bi(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 M_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let RO=0;function A_(e,t,r,n){const i=e._endId=++RO,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=pT(e,t);if(!o)return n();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),a()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,d)}function pT(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),i=n(`${Li}Delay`),a=n(`${Li}Duration`),o=P_(i,a),s=n(`${Ys}Delay`),l=n(`${Ys}Duration`),u=P_(s,l);let c=null,f=0,d=0;t===Li?o>0&&(c=Li,f=o,d=a.length):t===Ys?u>0&&(c=Ys,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?Li:Ys:null,d=c?c===Li?a.length:l.length:0);const h=c===Li&&/\b(transform|all)(,|$)/.test(n(`${Li}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function P_(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>E_(r)+E_(e[n])))}function E_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function gT(){return document.body.offsetHeight}const mT=new WeakMap,yT=new WeakMap,_T={name:"TransitionGroup",props:Gt({},IO,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=ct(),n=UC();let i,a;return Hu(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!HO(i[0].el,r.vnode.el,o))return;i.forEach(FO),i.forEach(BO);const s=i.filter($O);gT(),s.forEach(l=>{const u=l.el,c=u.style;li(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,Bi(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=Ke(e),s=vT(o);let l=o.tag||pt;i=a,a=t.default?Vm(t.default()):[];for(let u=0;u<a.length;u++){const c=a[u];c.key!=null&&su(c,ou(c,s,n,r))}if(i)for(let u=0;u<i.length;u++){const c=i[u];su(c,ou(c,s,n,r)),mT.set(c,c.el.getBoundingClientRect())}return ee(l,null,a)}}},kO=e=>delete e.mode;_T.props;const NO=_T;function FO(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function BO(e){yT.set(e,e.el.getBoundingClientRect())}function $O(e){const t=mT.get(e),r=yT.get(e),n=t.left-r.left,i=t.top-r.top;if(n||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${i}px)`,a.transitionDuration="0s",e}}function HO(e,t,r){const n=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),r.split(/\s+/).forEach(o=>o&&n.classList.add(o)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:a}=pT(n);return i.removeChild(n),a}const L_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return be(t)?r=>_f(t,r):t},Qf={deep:!0,created(e,t,r){e._assign=L_(r),dT(e,"change",()=>{const n=e._modelValue,i=zO(e),a=e.checked,o=e._assign;if(be(n)){const s=pC(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(kd(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(bT(e,a))})},mounted:D_,beforeUpdate(e,t,r){e._assign=L_(r),D_(e,t,r)}};function D_(e,{value:t,oldValue:r},n){e._modelValue=t,be(t)?e.checked=pC(t,n.props.value)>-1:kd(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=Od(t,bT(e,!0)))}function zO(e){return"_value"in e?e._value:e.value}function bT(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const WO=["ctrl","shift","alt","meta"],VO={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)=>WO.some(r=>e[`${r}Key`]&&!t.includes(r))},Jf=(e,t)=>(r,...n)=>{for(let i=0;i<t.length;i++){const a=VO[t[i]];if(a&&a(r,t))return}return e(r,...n)},GO={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},UO=(e,t)=>r=>{if(!("key"in r))return;const n=So(r.key);if(t.some(i=>i===n||GO[i]===n))return e(r)},yi={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):qs(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),qs(e,!0),n.enter(e)):n.leave(e,()=>{qs(e,!1)}):qs(e,t))},beforeUnmount(e,{value:t}){qs(e,t)}};function qs(e,t){e.style.display=t?e._vod:"none"}const jO=Gt({patchProp:LO},mO);let I_;function wT(){return I_||(I_=qI(jO))}const O_=(...e)=>{wT().render(...e)},YO=(...e)=>{const t=wT().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=qO(n);if(!i)return;const a=t._component;!De(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 qO(e){return He(e)?document.querySelector(e):e}const wf=function(e,t,...r){let n;t.includes("mouse")||t.includes("click")?n="MouseEvents":t.includes("key")?n="KeyboardEvent":n="HTMLEvents";const i=document.createEvent(n);return i.initEvent(t,...r),e.dispatchEvent(i),e},fi=(e,t,{checkForDefaultPrevented:r=!0}={})=>i=>{const a=e==null?void 0:e(i);if(r===!1||!a)return t==null?void 0:t(i)};var R_;const Nt=typeof window<"u",Br=e=>typeof e=="boolean",KO=e=>typeof e=="function",$t=e=>typeof e=="number",XO=e=>typeof e=="string",Rp=()=>{};Nt&&((R_=window==null?void 0:window.navigator)!=null&&R_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ho(e){return typeof e=="function"?e():P(e)}function ST(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}const xT=e=>e();function ZO(e,t={}){let r,n,i=Rp;const a=s=>{clearTimeout(s),i(),i=Rp};return s=>{const l=ho(e),u=ho(t.maxWait);return r&&a(r),l<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((c,f)=>{i=t.rejectOnCancel?f:c,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(s())},u)),r=setTimeout(()=>{n&&a(n),n=null,c(s())},l)})}}function QO(e=xT){const t=B(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:$u(t),pause:r,resume:n,eventFilter:i}}function JO(e){return e}function zu(e){return _C()?(ID(e),!0):!1}function eR(e,t=200,r={}){return ST(ZO(t,r),e)}function tR(e,t=200,r={}){const n=B(e.value),i=eR(()=>{n.value=e.value},t,r);return xe(e,()=>i()),n}function rR(e){return typeof e=="function"?k(e):B(e)}function CT(e,t=!0){ct()?wt(e):t?e():Ft(e)}function kp(e,t,r={}){const{immediate:n=!0}=r,i=B(!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)},ho(t))}return n&&(i.value=!0,Nt&&l()),zu(s),{isPending:$u(i),start:l,stop:s}}function nR(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,i=Ct(e),a=B(e);function o(s){if(arguments.length)return a.value=s,a.value;{const l=ho(r);return a.value=a.value===l?ho(n):l,a.value}}return i?o:[a,o]}var k_=Object.getOwnPropertySymbols,iR=Object.prototype.hasOwnProperty,aR=Object.prototype.propertyIsEnumerable,oR=(e,t)=>{var r={};for(var n in e)iR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&k_)for(var n of k_(e))t.indexOf(n)<0&&aR.call(e,n)&&(r[n]=e[n]);return r};function sR(e,t,r={}){const n=r,{eventFilter:i=xT}=n,a=oR(n,["eventFilter"]);return xe(e,ST(i,t),a)}var lR=Object.defineProperty,uR=Object.defineProperties,cR=Object.getOwnPropertyDescriptors,ed=Object.getOwnPropertySymbols,TT=Object.prototype.hasOwnProperty,MT=Object.prototype.propertyIsEnumerable,N_=(e,t,r)=>t in e?lR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fR=(e,t)=>{for(var r in t||(t={}))TT.call(t,r)&&N_(e,r,t[r]);if(ed)for(var r of ed(t))MT.call(t,r)&&N_(e,r,t[r]);return e},dR=(e,t)=>uR(e,cR(t)),hR=(e,t)=>{var r={};for(var n in e)TT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ed)for(var n of ed(e))t.indexOf(n)<0&&MT.call(e,n)&&(r[n]=e[n]);return r};function vR(e,t,r={}){const n=r,{eventFilter:i}=n,a=hR(n,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=QO(i);return{stop:sR(e,t,dR(fR({},a),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Ui(e){var t;const r=ho(e);return(t=r==null?void 0:r.$el)!=null?t:r}const ra=Nt?window:void 0;function Sn(...e){let t,r,n,i;if(XO(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=ra):[t,r,n,i]=e,!t)return Rp;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,d)=>(c.addEventListener(f,d,i),()=>c.removeEventListener(f,d,i)),l=xe(()=>Ui(t),c=>{o(),c&&a.push(...r.flatMap(f=>n.map(d=>s(c,f,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return zu(u),u}function pR(e,t,r={}){const{window:n=ra,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=Ui(v);return p&&(h.target===p||h.composedPath().includes(p))}}),c=h=>{n.clearTimeout(l);const v=Ui(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(s=!u(h)),!s){s=!0;return}t(h)}},f=[Sn(n,"click",c,{passive:!0,capture:a}),Sn(n,"pointerdown",h=>{const v=Ui(e);v&&(s=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),Sn(n,"pointerup",h=>{if(h.button===0){const v=h.composedPath();h.composedPath=()=>v,l=n.setTimeout(()=>c(h),50)}},{passive:!0}),o&&Sn(n,"blur",h=>{var v;const p=Ui(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(h)})].filter(Boolean);return()=>f.forEach(h=>h())}function AT(e,t=!1){const r=B(),n=()=>r.value=Boolean(e());return n(),CT(n,t),r}function gR(e,t={}){const{window:r=ra}=t,n=AT(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=B(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},s=()=>{n.value&&(o(),i=r.matchMedia(rR(e).value),a.value=i.matches,"addEventListener"in i?i.addEventListener("change",s):i.addListener(s))};return io(s),zu(()=>o()),a}const Np=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fp="__vueuse_ssr_handlers__";Np[Fp]=Np[Fp]||{};const mR=Np[Fp];function PT(e,t){return mR[e]||t}function yR(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var _R=Object.defineProperty,F_=Object.getOwnPropertySymbols,bR=Object.prototype.hasOwnProperty,wR=Object.prototype.propertyIsEnumerable,B_=(e,t,r)=>t in e?_R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$_=(e,t)=>{for(var r in t||(t={}))bR.call(t,r)&&B_(e,r,t[r]);if(F_)for(var r of F_(t))wR.call(t,r)&&B_(e,r,t[r]);return e};const SR={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function xR(e,t,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=ra,eventFilter:d,onError:h=x=>{console.error(x)}}=n,v=(c?$m:B)(t);if(!r)try{r=PT("getDefaultStorage",()=>{var x;return(x=ra)==null?void 0:x.localStorage})()}catch(x){h(x)}if(!r)return v;const p=ho(t),g=yR(p),m=(i=n.serializer)!=null?i:SR[g],{pause:y,resume:_}=vR(v,()=>b(v.value),{flush:a,deep:o,eventFilter:d});return f&&s&&Sn(f,"storage",w),w(),v;function b(x){try{if(x==null)r.removeItem(e);else{const C=m.write(x),M=r.getItem(e);M!==C&&(r.setItem(e,C),f&&(f==null||f.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:M,newValue:C,storageArea:r}))))}}catch(C){h(C)}}function S(x){const C=x?x.newValue:r.getItem(e);if(C==null)return l&&p!==null&&r.setItem(e,m.write(p)),p;if(!x&&u){const M=m.read(C);return KO(u)?u(M,p):g==="object"&&!Array.isArray(M)?$_($_({},p),M):M}else return typeof C!="string"?C:m.read(C)}function w(x){if(!(x&&x.storageArea!==r)){if(x&&x.key==null){v.value=p;return}if(!(x&&x.key!==e)){y();try{v.value=S(x)}catch(C){h(C)}finally{x?Ft(_):_()}}}}}function ET(e){return gR("(prefers-color-scheme: dark)",e)}var CR=Object.defineProperty,H_=Object.getOwnPropertySymbols,TR=Object.prototype.hasOwnProperty,MR=Object.prototype.propertyIsEnumerable,z_=(e,t,r)=>t in e?CR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,AR=(e,t)=>{for(var r in t||(t={}))TR.call(t,r)&&z_(e,r,t[r]);if(H_)for(var r of H_(t))MR.call(t,r)&&z_(e,r,t[r]);return e};function PR(e={}){const{selector:t="html",attribute:r="class",initialValue:n="auto",window:i=ra,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:u}=e,c=AR({auto:"",light:"light",dark:"dark"},e.modes||{}),f=ET({window:i}),d=k(()=>f.value?"dark":"light"),h=l||(o==null?B(n):xR(o,n,a,{window:i,listenToStorageChanges:s})),v=k({get(){return h.value==="auto"&&!u?d.value:h.value},set(y){h.value=y}}),p=PT("updateHTMLAttrs",(y,_,b)=>{const S=i==null?void 0:i.document.querySelector(y);if(S)if(_==="class"){const w=b.split(/\s/g);Object.values(c).flatMap(x=>(x||"").split(/\s/g)).filter(Boolean).forEach(x=>{w.includes(x)?S.classList.add(x):S.classList.remove(x)})}else S.setAttribute(_,b)});function g(y){var _;const b=y==="auto"?d.value:y;p(t,r,(_=c[b])!=null?_:b)}function m(y){e.onChanged?e.onChanged(y,g):g(y)}return xe(v,m,{flush:"post",immediate:!0}),u&&xe(d,()=>m(v.value),{flush:"post"}),CT(()=>m(v.value)),v}var ER=Object.defineProperty,LR=Object.defineProperties,DR=Object.getOwnPropertyDescriptors,W_=Object.getOwnPropertySymbols,IR=Object.prototype.hasOwnProperty,OR=Object.prototype.propertyIsEnumerable,V_=(e,t,r)=>t in e?ER(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,RR=(e,t)=>{for(var r in t||(t={}))IR.call(t,r)&&V_(e,r,t[r]);if(W_)for(var r of W_(t))OR.call(t,r)&&V_(e,r,t[r]);return e},kR=(e,t)=>LR(e,DR(t));function NR(e={}){const{valueDark:t="dark",valueLight:r="",window:n=ra}=e,i=PR(kR(RR({},e),{onChanged:(s,l)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,s==="dark"):l(s)},modes:{dark:t,light:r}})),a=ET({window:n});return k({get(){return i.value==="dark"},set(s){s===a.value?i.value="auto":i.value=s?"dark":"light"}})}var G_=Object.getOwnPropertySymbols,FR=Object.prototype.hasOwnProperty,BR=Object.prototype.propertyIsEnumerable,$R=(e,t)=>{var r={};for(var n in e)FR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&G_)for(var n of G_(e))t.indexOf(n)<0&&BR.call(e,n)&&(r[n]=e[n]);return r};function gs(e,t,r={}){const n=r,{window:i=ra}=n,a=$R(n,["window"]);let o;const s=AT(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=xe(()=>Ui(e),f=>{l(),s.value&&i&&f&&(o=new ResizeObserver(t),o.observe(f,a))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return zu(c),{isSupported:s,stop:c}}var U_;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(U_||(U_={}));var HR=Object.defineProperty,j_=Object.getOwnPropertySymbols,zR=Object.prototype.hasOwnProperty,WR=Object.prototype.propertyIsEnumerable,Y_=(e,t,r)=>t in e?HR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VR=(e,t)=>{for(var r in t||(t={}))zR.call(t,r)&&Y_(e,r,t[r]);if(j_)for(var r of j_(t))WR.call(t,r)&&Y_(e,r,t[r]);return e};const GR={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]};VR({linear:JO},GR);var UR=typeof global=="object"&&global&&global.Object===Object&&global;const LT=UR;var jR=typeof self=="object"&&self&&self.Object===Object&&self,YR=LT||jR||Function("return this")();const En=YR;var qR=En.Symbol;const sn=qR;var DT=Object.prototype,KR=DT.hasOwnProperty,XR=DT.toString,Ks=sn?sn.toStringTag:void 0;function ZR(e){var t=KR.call(e,Ks),r=e[Ks];try{e[Ks]=void 0;var n=!0}catch{}var i=XR.call(e);return n&&(t?e[Ks]=r:delete e[Ks]),i}var QR=Object.prototype,JR=QR.toString;function ek(e){return JR.call(e)}var tk="[object Null]",rk="[object Undefined]",q_=sn?sn.toStringTag:void 0;function xo(e){return e==null?e===void 0?rk:tk:q_&&q_ in Object(e)?ZR(e):ek(e)}function qn(e){return e!=null&&typeof e=="object"}var nk="[object Symbol]";function qd(e){return typeof e=="symbol"||qn(e)&&xo(e)==nk}function IT(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var ik=Array.isArray;const fr=ik;var ak=1/0,K_=sn?sn.prototype:void 0,X_=K_?K_.toString:void 0;function OT(e){if(typeof e=="string")return e;if(fr(e))return IT(e,OT)+"";if(qd(e))return X_?X_.call(e):"";var t=e+"";return t=="0"&&1/e==-ak?"-0":t}var ok=/\s/;function sk(e){for(var t=e.length;t--&&ok.test(e.charAt(t)););return t}var lk=/^\s+/;function uk(e){return e&&e.slice(0,sk(e)+1).replace(lk,"")}function Ar(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Z_=0/0,ck=/^[-+]0x[0-9a-f]+$/i,fk=/^0b[01]+$/i,dk=/^0o[0-7]+$/i,hk=parseInt;function Q_(e){if(typeof e=="number")return e;if(qd(e))return Z_;if(Ar(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ar(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uk(e);var r=fk.test(e);return r||dk.test(e)?hk(e.slice(2),r?2:8):ck.test(e)?Z_:+e}function Xm(e){return e}var vk="[object AsyncFunction]",pk="[object Function]",gk="[object GeneratorFunction]",mk="[object Proxy]";function Zm(e){if(!Ar(e))return!1;var t=xo(e);return t==pk||t==gk||t==vk||t==mk}var yk=En["__core-js_shared__"];const $h=yk;var J_=function(){var e=/[^.]+$/.exec($h&&$h.keys&&$h.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _k(e){return!!J_&&J_ in e}var bk=Function.prototype,wk=bk.toString;function Co(e){if(e!=null){try{return wk.call(e)}catch{}try{return e+""}catch{}}return""}var Sk=/[\\^$.*+?()[\]{}|]/g,xk=/^\[object .+?Constructor\]$/,Ck=Function.prototype,Tk=Object.prototype,Mk=Ck.toString,Ak=Tk.hasOwnProperty,Pk=RegExp("^"+Mk.call(Ak).replace(Sk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ek(e){if(!Ar(e)||_k(e))return!1;var t=Zm(e)?Pk:xk;return t.test(Co(e))}function Lk(e,t){return e==null?void 0:e[t]}function To(e,t){var r=Lk(e,t);return Ek(r)?r:void 0}var Dk=To(En,"WeakMap");const Bp=Dk;var eb=Object.create,Ik=function(){function e(){}return function(t){if(!Ar(t))return{};if(eb)return eb(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Ok=Ik;function Rk(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function RT(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var kk=800,Nk=16,Fk=Date.now;function Bk(e){var t=0,r=0;return function(){var n=Fk(),i=Nk-(n-r);if(r=n,i>0){if(++t>=kk)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function $k(e){return function(){return e}}var Hk=function(){try{var e=To(Object,"defineProperty");return e({},"",{}),e}catch{}}();const td=Hk;var zk=td?function(e,t){return td(e,"toString",{configurable:!0,enumerable:!1,value:$k(t),writable:!0})}:Xm;const Wk=zk;var Vk=Bk(Wk);const kT=Vk;function Gk(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Uk=9007199254740991,jk=/^(?:0|[1-9]\d*)$/;function Kd(e,t){var r=typeof e;return t=t??Uk,!!t&&(r=="number"||r!="symbol"&&jk.test(e))&&e>-1&&e%1==0&&e<t}function Qm(e,t,r){t=="__proto__"&&td?td(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Wu(e,t){return e===t||e!==e&&t!==t}var Yk=Object.prototype,qk=Yk.hasOwnProperty;function Jm(e,t,r){var n=e[t];(!(qk.call(e,t)&&Wu(n,r))||r===void 0&&!(t in e))&&Qm(e,t,r)}function Vu(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),i?Qm(r,s,l):Jm(r,s,l)}return r}var tb=Math.max;function NT(e,t,r){return t=tb(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=tb(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Rk(e,this,s)}}function Kk(e,t){return kT(NT(e,t,Xm),e+"")}var Xk=9007199254740991;function ey(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xk}function Fs(e){return e!=null&&ey(e.length)&&!Zm(e)}function Zk(e,t,r){if(!Ar(r))return!1;var n=typeof t;return(n=="number"?Fs(r)&&Kd(t,r.length):n=="string"&&t in r)?Wu(r[t],e):!1}function Qk(e){return Kk(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&&Zk(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var Jk=Object.prototype;function ty(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Jk;return e===r}function eN(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var tN="[object Arguments]";function rb(e){return qn(e)&&xo(e)==tN}var FT=Object.prototype,rN=FT.hasOwnProperty,nN=FT.propertyIsEnumerable,iN=rb(function(){return arguments}())?rb:function(e){return qn(e)&&rN.call(e,"callee")&&!nN.call(e,"callee")};const cu=iN;function aN(){return!1}var BT=typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,nb=BT&&typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,oN=nb&&nb.exports===BT,ib=oN?En.Buffer:void 0,sN=ib?ib.isBuffer:void 0,lN=sN||aN;const fu=lN;var uN="[object Arguments]",cN="[object Array]",fN="[object Boolean]",dN="[object Date]",hN="[object Error]",vN="[object Function]",pN="[object Map]",gN="[object Number]",mN="[object Object]",yN="[object RegExp]",_N="[object Set]",bN="[object String]",wN="[object WeakMap]",SN="[object ArrayBuffer]",xN="[object DataView]",CN="[object Float32Array]",TN="[object Float64Array]",MN="[object Int8Array]",AN="[object Int16Array]",PN="[object Int32Array]",EN="[object Uint8Array]",LN="[object Uint8ClampedArray]",DN="[object Uint16Array]",IN="[object Uint32Array]",mt={};mt[CN]=mt[TN]=mt[MN]=mt[AN]=mt[PN]=mt[EN]=mt[LN]=mt[DN]=mt[IN]=!0;mt[uN]=mt[cN]=mt[SN]=mt[fN]=mt[xN]=mt[dN]=mt[hN]=mt[vN]=mt[pN]=mt[gN]=mt[mN]=mt[yN]=mt[_N]=mt[bN]=mt[wN]=!1;function ON(e){return qn(e)&&ey(e.length)&&!!mt[xo(e)]}function ry(e){return function(t){return e(t)}}var $T=typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,Il=$T&&typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,RN=Il&&Il.exports===$T,Hh=RN&&LT.process,kN=function(){try{var e=Il&&Il.require&&Il.require("util").types;return e||Hh&&Hh.binding&&Hh.binding("util")}catch{}}();const ms=kN;var ab=ms&&ms.isTypedArray,NN=ab?ry(ab):ON;const ny=NN;var FN=Object.prototype,BN=FN.hasOwnProperty;function HT(e,t){var r=fr(e),n=!r&&cu(e),i=!r&&!n&&fu(e),a=!r&&!n&&!i&&ny(e),o=r||n||i||a,s=o?eN(e.length,String):[],l=s.length;for(var u in e)(t||BN.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Kd(u,l)))&&s.push(u);return s}function zT(e,t){return function(r){return e(t(r))}}var $N=zT(Object.keys,Object);const HN=$N;var zN=Object.prototype,WN=zN.hasOwnProperty;function VN(e){if(!ty(e))return HN(e);var t=[];for(var r in Object(e))WN.call(e,r)&&r!="constructor"&&t.push(r);return t}function Gu(e){return Fs(e)?HT(e):VN(e)}function GN(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var UN=Object.prototype,jN=UN.hasOwnProperty;function YN(e){if(!Ar(e))return GN(e);var t=ty(e),r=[];for(var n in e)n=="constructor"&&(t||!jN.call(e,n))||r.push(n);return r}function Uu(e){return Fs(e)?HT(e,!0):YN(e)}var qN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KN=/^\w*$/;function iy(e,t){if(fr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qd(e)?!0:KN.test(e)||!qN.test(e)||t!=null&&e in Object(t)}var XN=To(Object,"create");const du=XN;function ZN(){this.__data__=du?du(null):{},this.size=0}function QN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var JN="__lodash_hash_undefined__",eF=Object.prototype,tF=eF.hasOwnProperty;function rF(e){var t=this.__data__;if(du){var r=t[e];return r===JN?void 0:r}return tF.call(t,e)?t[e]:void 0}var nF=Object.prototype,iF=nF.hasOwnProperty;function aF(e){var t=this.__data__;return du?t[e]!==void 0:iF.call(t,e)}var oF="__lodash_hash_undefined__";function sF(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=du&&t===void 0?oF:t,this}function vo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vo.prototype.clear=ZN;vo.prototype.delete=QN;vo.prototype.get=rF;vo.prototype.has=aF;vo.prototype.set=sF;function lF(){this.__data__=[],this.size=0}function Xd(e,t){for(var r=e.length;r--;)if(Wu(e[r][0],t))return r;return-1}var uF=Array.prototype,cF=uF.splice;function fF(e){var t=this.__data__,r=Xd(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():cF.call(t,r,1),--this.size,!0}function dF(e){var t=this.__data__,r=Xd(t,e);return r<0?void 0:t[r][1]}function hF(e){return Xd(this.__data__,e)>-1}function vF(e,t){var r=this.__data__,n=Xd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ti(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ti.prototype.clear=lF;Ti.prototype.delete=fF;Ti.prototype.get=dF;Ti.prototype.has=hF;Ti.prototype.set=vF;var pF=To(En,"Map");const hu=pF;function gF(){this.size=0,this.__data__={hash:new vo,map:new(hu||Ti),string:new vo}}function mF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Zd(e,t){var r=e.__data__;return mF(t)?r[typeof t=="string"?"string":"hash"]:r.map}function yF(e){var t=Zd(this,e).delete(e);return this.size-=t?1:0,t}function _F(e){return Zd(this,e).get(e)}function bF(e){return Zd(this,e).has(e)}function wF(e,t){var r=Zd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Mi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mi.prototype.clear=gF;Mi.prototype.delete=yF;Mi.prototype.get=_F;Mi.prototype.has=bF;Mi.prototype.set=wF;var SF="Expected a function";function ay(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(SF);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(ay.Cache||Mi),r}ay.Cache=Mi;var xF=500;function CF(e){var t=ay(e,function(n){return r.size===xF&&r.clear(),n}),r=t.cache;return t}var TF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MF=/\\(\\)?/g,AF=CF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(TF,function(r,n,i,a){t.push(i?a.replace(MF,"$1"):n||r)}),t});const PF=AF;function EF(e){return e==null?"":OT(e)}function Qd(e,t){return fr(e)?e:iy(e,t)?[e]:PF(EF(e))}var LF=1/0;function ju(e){if(typeof e=="string"||qd(e))return e;var t=e+"";return t=="0"&&1/e==-LF?"-0":t}function oy(e,t){t=Qd(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ju(t[r++])];return r&&r==n?e:void 0}function vu(e,t,r){var n=e==null?void 0:oy(e,t);return n===void 0?r:n}function sy(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ob=sn?sn.isConcatSpreadable:void 0;function DF(e){return fr(e)||cu(e)||!!(ob&&e&&e[ob])}function ly(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=DF),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?ly(s,t-1,r,n,i):sy(i,s):n||(i[i.length]=s)}return i}function IF(e){var t=e==null?0:e.length;return t?ly(e,1):[]}function OF(e){return kT(NT(e,void 0,IF),e+"")}var RF=zT(Object.getPrototypeOf,Object);const uy=RF;var kF="[object Object]",NF=Function.prototype,FF=Object.prototype,WT=NF.toString,BF=FF.hasOwnProperty,$F=WT.call(Object);function HF(e){if(!qn(e)||xo(e)!=kF)return!1;var t=uy(e);if(t===null)return!0;var r=BF.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&WT.call(r)==$F}function $p(){if(!arguments.length)return[];var e=arguments[0];return fr(e)?e:[e]}function zF(){this.__data__=new Ti,this.size=0}function WF(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function VF(e){return this.__data__.get(e)}function GF(e){return this.__data__.has(e)}var UF=200;function jF(e,t){var r=this.__data__;if(r instanceof Ti){var n=r.__data__;if(!hu||n.length<UF-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Mi(n)}return r.set(e,t),this.size=r.size,this}function Mn(e){var t=this.__data__=new Ti(e);this.size=t.size}Mn.prototype.clear=zF;Mn.prototype.delete=WF;Mn.prototype.get=VF;Mn.prototype.has=GF;Mn.prototype.set=jF;function YF(e,t){return e&&Vu(t,Gu(t),e)}function qF(e,t){return e&&Vu(t,Uu(t),e)}var VT=typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,sb=VT&&typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,KF=sb&&sb.exports===VT,lb=KF?En.Buffer:void 0,ub=lb?lb.allocUnsafe:void 0;function GT(e,t){if(t)return e.slice();var r=e.length,n=ub?ub(r):new e.constructor(r);return e.copy(n),n}function XF(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function UT(){return[]}var ZF=Object.prototype,QF=ZF.propertyIsEnumerable,cb=Object.getOwnPropertySymbols,JF=cb?function(e){return e==null?[]:(e=Object(e),XF(cb(e),function(t){return QF.call(e,t)}))}:UT;const cy=JF;function eB(e,t){return Vu(e,cy(e),t)}var tB=Object.getOwnPropertySymbols,rB=tB?function(e){for(var t=[];e;)sy(t,cy(e)),e=uy(e);return t}:UT;const jT=rB;function nB(e,t){return Vu(e,jT(e),t)}function YT(e,t,r){var n=t(e);return fr(e)?n:sy(n,r(e))}function Hp(e){return YT(e,Gu,cy)}function iB(e){return YT(e,Uu,jT)}var aB=To(En,"DataView");const zp=aB;var oB=To(En,"Promise");const Wp=oB;var sB=To(En,"Set");const Vp=sB;var fb="[object Map]",lB="[object Object]",db="[object Promise]",hb="[object Set]",vb="[object WeakMap]",pb="[object DataView]",uB=Co(zp),cB=Co(hu),fB=Co(Wp),dB=Co(Vp),hB=Co(Bp),Wa=xo;(zp&&Wa(new zp(new ArrayBuffer(1)))!=pb||hu&&Wa(new hu)!=fb||Wp&&Wa(Wp.resolve())!=db||Vp&&Wa(new Vp)!=hb||Bp&&Wa(new Bp)!=vb)&&(Wa=function(e){var t=xo(e),r=t==lB?e.constructor:void 0,n=r?Co(r):"";if(n)switch(n){case uB:return pb;case cB:return fb;case fB:return db;case dB:return hb;case hB:return vb}return t});const pu=Wa;var vB=Object.prototype,pB=vB.hasOwnProperty;function gB(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&pB.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var mB=En.Uint8Array;const rd=mB;function fy(e){var t=new e.constructor(e.byteLength);return new rd(t).set(new rd(e)),t}function yB(e,t){var r=t?fy(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var _B=/\w*$/;function bB(e){var t=new e.constructor(e.source,_B.exec(e));return t.lastIndex=e.lastIndex,t}var gb=sn?sn.prototype:void 0,mb=gb?gb.valueOf:void 0;function wB(e){return mb?Object(mb.call(e)):{}}function qT(e,t){var r=t?fy(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var SB="[object Boolean]",xB="[object Date]",CB="[object Map]",TB="[object Number]",MB="[object RegExp]",AB="[object Set]",PB="[object String]",EB="[object Symbol]",LB="[object ArrayBuffer]",DB="[object DataView]",IB="[object Float32Array]",OB="[object Float64Array]",RB="[object Int8Array]",kB="[object Int16Array]",NB="[object Int32Array]",FB="[object Uint8Array]",BB="[object Uint8ClampedArray]",$B="[object Uint16Array]",HB="[object Uint32Array]";function zB(e,t,r){var n=e.constructor;switch(t){case LB:return fy(e);case SB:case xB:return new n(+e);case DB:return yB(e,r);case IB:case OB:case RB:case kB:case NB:case FB:case BB:case $B:case HB:return qT(e,r);case CB:return new n;case TB:case PB:return new n(e);case MB:return bB(e);case AB:return new n;case EB:return wB(e)}}function KT(e){return typeof e.constructor=="function"&&!ty(e)?Ok(uy(e)):{}}var WB="[object Map]";function VB(e){return qn(e)&&pu(e)==WB}var yb=ms&&ms.isMap,GB=yb?ry(yb):VB;const UB=GB;var jB="[object Set]";function YB(e){return qn(e)&&pu(e)==jB}var _b=ms&&ms.isSet,qB=_b?ry(_b):YB;const KB=qB;var XB=1,ZB=2,QB=4,XT="[object Arguments]",JB="[object Array]",e$="[object Boolean]",t$="[object Date]",r$="[object Error]",ZT="[object Function]",n$="[object GeneratorFunction]",i$="[object Map]",a$="[object Number]",QT="[object Object]",o$="[object RegExp]",s$="[object Set]",l$="[object String]",u$="[object Symbol]",c$="[object WeakMap]",f$="[object ArrayBuffer]",d$="[object DataView]",h$="[object Float32Array]",v$="[object Float64Array]",p$="[object Int8Array]",g$="[object Int16Array]",m$="[object Int32Array]",y$="[object Uint8Array]",_$="[object Uint8ClampedArray]",b$="[object Uint16Array]",w$="[object Uint32Array]",vt={};vt[XT]=vt[JB]=vt[f$]=vt[d$]=vt[e$]=vt[t$]=vt[h$]=vt[v$]=vt[p$]=vt[g$]=vt[m$]=vt[i$]=vt[a$]=vt[QT]=vt[o$]=vt[s$]=vt[l$]=vt[u$]=vt[y$]=vt[_$]=vt[b$]=vt[w$]=!0;vt[r$]=vt[ZT]=vt[c$]=!1;function Sf(e,t,r,n,i,a){var o,s=t&XB,l=t&ZB,u=t&QB;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!Ar(e))return e;var c=fr(e);if(c){if(o=gB(e),!s)return RT(e,o)}else{var f=pu(e),d=f==ZT||f==n$;if(fu(e))return GT(e,s);if(f==QT||f==XT||d&&!i){if(o=l||d?{}:KT(e),!s)return l?nB(e,qF(o,e)):eB(e,YF(o,e))}else{if(!vt[f])return i?e:{};o=zB(e,f,s)}}a||(a=new Mn);var h=a.get(e);if(h)return h;a.set(e,o),KB(e)?e.forEach(function(g){o.add(Sf(g,t,r,g,e,a))}):UB(e)&&e.forEach(function(g,m){o.set(m,Sf(g,t,r,m,e,a))});var v=u?l?iB:Hp:l?Uu:Gu,p=c?void 0:v(e);return Gk(p||e,function(g,m){p&&(m=g,g=e[m]),Jm(o,m,Sf(g,t,r,m,e,a))}),o}var S$=4;function bb(e){return Sf(e,S$)}var x$="__lodash_hash_undefined__";function C$(e){return this.__data__.set(e,x$),this}function T$(e){return this.__data__.has(e)}function nd(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Mi;++t<r;)this.add(e[t])}nd.prototype.add=nd.prototype.push=C$;nd.prototype.has=T$;function M$(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function A$(e,t){return e.has(t)}var P$=1,E$=2;function JT(e,t,r,n,i,a){var o=r&P$,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&E$?new nd:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var v=e[f],p=t[f];if(n)var g=o?n(p,v,f,t,e,a):n(v,p,f,e,t,a);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!M$(t,function(m,y){if(!A$(h,y)&&(v===m||i(v,m,r,n,a)))return h.push(y)})){d=!1;break}}else if(!(v===p||i(v,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function L$(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function D$(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var I$=1,O$=2,R$="[object Boolean]",k$="[object Date]",N$="[object Error]",F$="[object Map]",B$="[object Number]",$$="[object RegExp]",H$="[object Set]",z$="[object String]",W$="[object Symbol]",V$="[object ArrayBuffer]",G$="[object DataView]",wb=sn?sn.prototype:void 0,zh=wb?wb.valueOf:void 0;function U$(e,t,r,n,i,a,o){switch(r){case G$:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case V$:return!(e.byteLength!=t.byteLength||!a(new rd(e),new rd(t)));case R$:case k$:case B$:return Wu(+e,+t);case N$:return e.name==t.name&&e.message==t.message;case $$:case z$:return e==t+"";case F$:var s=L$;case H$:var l=n&I$;if(s||(s=D$),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=O$,o.set(e,t);var c=JT(s(e),s(t),n,i,a,o);return o.delete(e),c;case W$:if(zh)return zh.call(e)==zh.call(t)}return!1}var j$=1,Y$=Object.prototype,q$=Y$.hasOwnProperty;function K$(e,t,r,n,i,a){var o=r&j$,s=Hp(e),l=s.length,u=Hp(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:q$.call(t,d)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=o;++f<l;){d=s[f];var m=e[d],y=t[d];if(n)var _=o?n(y,m,d,t,e,a):n(m,y,d,e,t,a);if(!(_===void 0?m===y||i(m,y,r,n,a):_)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var b=e.constructor,S=t.constructor;b!=S&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof S=="function"&&S instanceof S)&&(p=!1)}return a.delete(e),a.delete(t),p}var X$=1,Sb="[object Arguments]",xb="[object Array]",gc="[object Object]",Z$=Object.prototype,Cb=Z$.hasOwnProperty;function Q$(e,t,r,n,i,a){var o=fr(e),s=fr(t),l=o?xb:pu(e),u=s?xb:pu(t);l=l==Sb?gc:l,u=u==Sb?gc:u;var c=l==gc,f=u==gc,d=l==u;if(d&&fu(e)){if(!fu(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new Mn),o||ny(e)?JT(e,t,r,n,i,a):U$(e,t,l,r,n,i,a);if(!(r&X$)){var h=c&&Cb.call(e,"__wrapped__"),v=f&&Cb.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return a||(a=new Mn),i(p,g,r,n,a)}}return d?(a||(a=new Mn),K$(e,t,r,n,i,a)):!1}function Jd(e,t,r,n,i){return e===t?!0:e==null||t==null||!qn(e)&&!qn(t)?e!==e&&t!==t:Q$(e,t,r,n,Jd,i)}var J$=1,e5=2;function t5(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new Mn;if(n)var d=n(u,c,l,e,t,f);if(!(d===void 0?Jd(c,u,J$|e5,n,f):d))return!1}}return!0}function eM(e){return e===e&&!Ar(e)}function r5(e){for(var t=Gu(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,eM(i)]}return t}function tM(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function n5(e){var t=r5(e);return t.length==1&&t[0][2]?tM(t[0][0],t[0][1]):function(r){return r===e||t5(r,e,t)}}function i5(e,t){return e!=null&&t in Object(e)}function a5(e,t,r){t=Qd(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=ju(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&ey(i)&&Kd(o,i)&&(fr(e)||cu(e)))}function rM(e,t){return e!=null&&a5(e,t,i5)}var o5=1,s5=2;function l5(e,t){return iy(e)&&eM(t)?tM(ju(e),t):function(r){var n=vu(r,e);return n===void 0&&n===t?rM(r,e):Jd(t,n,o5|s5)}}function u5(e){return function(t){return t==null?void 0:t[e]}}function c5(e){return function(t){return oy(t,e)}}function f5(e){return iy(e)?u5(ju(e)):c5(e)}function d5(e){return typeof e=="function"?e:e==null?Xm:typeof e=="object"?fr(e)?l5(e[0],e[1]):n5(e):f5(e)}function h5(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var v5=h5();const nM=v5;function p5(e,t){return e&&nM(e,t,Gu)}function g5(e,t){return function(r,n){if(r==null)return r;if(!Fs(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var m5=g5(p5);const y5=m5;var _5=function(){return En.Date.now()};const Wh=_5;var b5="Expected a function",w5=Math.max,S5=Math.min;function id(e,t,r){var n,i,a,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(b5);t=Q_(t)||0,Ar(r)&&(c=!!r.leading,f="maxWait"in r,a=f?w5(Q_(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(w){var x=n,C=i;return n=i=void 0,u=w,o=e.apply(C,x),o}function v(w){return u=w,s=setTimeout(m,t),c?h(w):o}function p(w){var x=w-l,C=w-u,M=t-x;return f?S5(M,a-C):M}function g(w){var x=w-l,C=w-u;return l===void 0||x>=t||x<0||f&&C>=a}function m(){var w=Wh();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(Wh())}function S(){var w=Wh(),x=g(w);if(n=arguments,i=this,l=w,x){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return S.cancel=_,S.flush=b,S}function Gp(e,t,r){(r!==void 0&&!Wu(e[t],r)||r===void 0&&!(t in e))&&Qm(e,t,r)}function x5(e){return qn(e)&&Fs(e)}function Up(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function C5(e){return Vu(e,Uu(e))}function T5(e,t,r,n,i,a,o){var s=Up(e,r),l=Up(t,r),u=o.get(l);if(u){Gp(e,r,u);return}var c=a?a(s,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var d=fr(l),h=!d&&fu(l),v=!d&&!h&&ny(l);c=l,d||h||v?fr(s)?c=s:x5(s)?c=RT(s):h?(f=!1,c=GT(l,!0)):v?(f=!1,c=qT(l,!0)):c=[]:HF(l)||cu(l)?(c=s,cu(s)?c=C5(s):(!Ar(s)||Zm(s))&&(c=KT(l))):f=!1}f&&(o.set(l,c),i(c,l,n,a,o),o.delete(l)),Gp(e,r,c)}function iM(e,t,r,n,i){e!==t&&nM(t,function(a,o){if(i||(i=new Mn),Ar(a))T5(e,t,o,r,iM,n,i);else{var s=n?n(Up(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),Gp(e,o,s)}},Uu)}function M5(e,t){var r=-1,n=Fs(e)?Array(e.length):[];return y5(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function A5(e,t){var r=fr(e)?IT:M5;return r(e,d5(t))}function P5(e,t){return ly(A5(e,t),1)}function jp(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function E5(e,t){return Jd(e,t)}function gu(e){return e==null}function L5(e){return e===void 0}var D5=Qk(function(e,t,r){iM(e,t,r)});const aM=D5;function oM(e,t,r,n){if(!Ar(e))return e;t=Qd(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=ju(t[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var c=s[l];u=n?n(c,l,s):void 0,u===void 0&&(u=Ar(c)?c:Kd(t[i+1])?[]:{})}Jm(s,l,u),s=s[l]}return e}function I5(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=oy(e,o);r(s,o)&&oM(a,Qd(o,e),s)}return a}function O5(e,t){return I5(e,t,function(r,n){return rM(e,n)})}var R5=OF(function(e,t){return e==null?{}:O5(e,t)});const k5=R5;function N5(e,t,r){return e==null?e:oM(e,t,r)}const ad=e=>e===void 0,ys=e=>typeof Element>"u"?!1:e instanceof Element,F5=e=>He(e)?!Number.isNaN(Number(e)):!1,Tb=e=>Object.keys(e),xf=(e,t,r)=>({get value(){return vu(e,t,r)},set value(n){N5(e,t,n)}});class B5 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function na(e,t){throw new B5(`[${e}] ${t}`)}const sM=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ol=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Zo=(e,t)=>{!e||!t.trim()||e.classList.add(...sM(t))},ss=(e,t)=>{!e||!t.trim()||e.classList.remove(...sM(t))},Mb=(e,t)=>{var r;if(!Nt||!e||!t)return"";let n=An(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 po(e,t="px"){if(!e)return"";if($t(e)||F5(e))return`${e}${t}`;if(He(e))return e}/*! Element Plus Icons Vue v2.0.10 */var Zn=(e,t)=>{let r=e.__vccOpts||e;for(let[n,i]of t)r[n]=i;return r},$5={name:"ArrowDown"},H5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},z5=ae("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),W5=[z5];function V5(e,t,r,n,i,a){return Y(),me("svg",H5,W5)}var lM=Zn($5,[["render",V5],["__file","arrow-down.vue"]]),G5={name:"ArrowRight"},U5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},j5=ae("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),Y5=[j5];function q5(e,t,r,n,i,a){return Y(),me("svg",U5,Y5)}var dy=Zn(G5,[["render",q5],["__file","arrow-right.vue"]]),K5={name:"ArrowUp"},X5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Z5=ae("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),Q5=[Z5];function J5(e,t,r,n,i,a){return Y(),me("svg",X5,Q5)}var e3=Zn(K5,[["render",J5],["__file","arrow-up.vue"]]),t3={name:"CircleCloseFilled"},r3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},n3=ae("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),i3=[n3];function a3(e,t,r,n,i,a){return Y(),me("svg",r3,i3)}var uM=Zn(t3,[["render",a3],["__file","circle-close-filled.vue"]]),o3={name:"Close"},s3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},l3=ae("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),u3=[l3];function c3(e,t,r,n,i,a){return Y(),me("svg",s3,u3)}var Yp=Zn(o3,[["render",c3],["__file","close.vue"]]),f3={name:"InfoFilled"},d3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},h3=ae("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),v3=[h3];function p3(e,t,r,n,i,a){return Y(),me("svg",d3,v3)}var cM=Zn(f3,[["render",p3],["__file","info-filled.vue"]]),g3={name:"Loading"},m3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},y3=ae("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),_3=[y3];function b3(e,t,r,n,i,a){return Y(),me("svg",m3,_3)}var hy=Zn(g3,[["render",b3],["__file","loading.vue"]]),w3={name:"More"},S3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},x3=ae("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),C3=[x3];function T3(e,t,r,n,i,a){return Y(),me("svg",S3,C3)}var M3=Zn(w3,[["render",T3],["__file","more.vue"]]),A3={name:"SuccessFilled"},P3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},E3=ae("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),L3=[E3];function D3(e,t,r,n,i,a){return Y(),me("svg",P3,L3)}var fM=Zn(A3,[["render",D3],["__file","success-filled.vue"]]),I3={name:"WarningFilled"},O3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},R3=ae("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),k3=[R3];function N3(e,t,r,n,i,a){return Y(),me("svg",O3,k3)}var dM=Zn(I3,[["render",N3],["__file","warning-filled.vue"]]);const hM="__epPropKey",Le=e=>e,F3=e=>Xe(e)&&!!e[hM],eh=(e,t)=>{if(!Xe(e)||F3(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 c=!1,f=[];if(r&&(f=Array.from(r),We(e,"default")&&f.push(i),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");fI(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[hM]:!0};return We(e,"default")&&(l.default=i),l},tt=e=>jp(Object.entries(e).map(([t,r])=>[t,eh(r,t)])),Wn=Le([String,Object,Function]),B3={Close:Yp,SuccessFilled:fM,InfoFilled:cM,WarningFilled:dM,CircleCloseFilled:uM},Ab={success:fM,warning:dM,error:uM,info:cM},hr=(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},$3=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),H3=(e,t)=>(e.install=r=>{r.directive(t,e)},e),fa=e=>(e.install=ur,e),Ot={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"},go="update:modelValue",qp="change",Kp="input",Yu=["","default","small","large"],z3=e=>["",...Yu].includes(e),Cf=e=>{const t=be(e)?e:[e],r=[];return t.forEach(n=>{var i;be(n)?r.push(...Cf(n)):ta(n)&&be(n.children)?r.push(...Cf(n.children)):(r.push(n),ta(n)&&((i=n.component)!=null&&i.subTree)&&r.push(...Cf(n.component.subTree)))}),r},Ya=e=>e,vy=({from:e,replacement:t,scope:r,version:n,ref:i,type:a="API"},o)=>{xe(()=>P(o),s=>{},{immediate:!0})};var W3={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:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},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 V3=e=>(t,r)=>G3(t,r,P(e)),G3=(e,t,r)=>vu(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var a;return`${(a=t==null?void 0:t[i])!=null?a:`{${i}}`}`}),U3=e=>{const t=k(()=>P(e).name),r=Ct(e)?e:B(e);return{lang:t,locale:r,t:V3(e)}},vM=Symbol("localeContextKey"),py=e=>{const t=e||Pe(vM,B());return U3(k(()=>t.value||W3))},Xp="el",j3="is-",ga=(e,t,r,n,i)=>{let a=`${e}-${t}`;return r&&(a+=`-${r}`),n&&(a+=`__${n}`),i&&(a+=`--${i}`),a},pM=Symbol("namespaceContextKey"),gy=e=>{const t=e||Pe(pM,B(Xp));return k(()=>P(t)||Xp)},Ne=(e,t)=>{const r=gy(t);return{namespace:r,b:(p="")=>ga(r.value,e,p,"",""),e:p=>p?ga(r.value,e,"",p,""):"",m:p=>p?ga(r.value,e,"","",p):"",be:(p,g)=>p&&g?ga(r.value,e,p,g,""):"",em:(p,g)=>p&&g?ga(r.value,e,"",p,g):"",bm:(p,g)=>p&&g?ga(r.value,e,p,"",g):"",bem:(p,g,m)=>p&&g&&m?ga(r.value,e,p,g,m):"",is:(p,...g)=>{const m=g.length>=1?g[0]:!0;return p&&m?`${j3}${p}`:""},cssVar:p=>{const g={};for(const m in p)p[m]&&(g[`--${r.value}-${m}`]=p[m]);return g},cssVarName:p=>`--${r.value}-${p}`,cssVarBlock:p=>{const g={};for(const m in p)p[m]&&(g[`--${r.value}-${e}-${m}`]=p[m]);return g},cssVarBlockName:p=>`--${r.value}-${e}-${p}`}},Y3=eh({type:Le(Boolean),default:null}),q3=eh({type:Le(Function)}),K3=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:Y3,[r]:q3};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=ct(),{emit:h}=d,v=d.props,p=k(()=>De(v[r])),g=k(()=>v[e]===null),m=x=>{o.value!==!0&&(o.value=!0,s&&(s.value=x),De(c)&&c(x))},y=x=>{o.value!==!1&&(o.value=!1,s&&(s.value=x),De(f)&&f(x))},_=x=>{if(v.disabled===!0||De(u)&&!u())return;const C=p.value&&Nt;C&&h(t,!0),(g.value||!C)&&m(x)},b=x=>{if(v.disabled===!0||!Nt)return;const C=p.value&&Nt;C&&h(t,!1),(g.value||!C)&&y(x)},S=x=>{Br(x)&&(v.disabled&&x?p.value&&h(t,!1):o.value!==x&&(x?m():y()))},w=()=>{o.value?b():_()};return xe(()=>v[e],S),l&&d.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&b()}),wt(()=>{S(v[e])}),{hide:b,show:_,toggle:w,hasUpdateHandler:p}},useModelToggleProps:i,useModelToggleEmits:n}},gM=e=>{const t=ct();return k(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})};var xr="top",ln="bottom",un="right",Cr="left",my="auto",qu=[xr,ln,un,Cr],_s="start",mu="end",X3="clippingParents",mM="viewport",Xs="popper",Z3="reference",Pb=qu.reduce(function(e,t){return e.concat([t+"-"+_s,t+"-"+mu])},[]),yy=[].concat(qu,[my]).reduce(function(e,t){return e.concat([t,t+"-"+_s,t+"-"+mu])},[]),Q3="beforeRead",J3="read",e4="afterRead",t4="beforeMain",r4="main",n4="afterMain",i4="beforeWrite",a4="write",o4="afterWrite",s4=[Q3,J3,e4,t4,r4,n4,i4,a4,o4];function Kn(e){return e?(e.nodeName||"").toLowerCase():null}function Ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bs(e){var t=Ln(e).Element;return e instanceof t||e instanceof Element}function an(e){var t=Ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _y(e){if(typeof ShadowRoot>"u")return!1;var t=Ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function l4(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];!an(a)||!Kn(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 u4(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},{});!an(i)||!Kn(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var yM={name:"applyStyles",enabled:!0,phase:"write",fn:l4,effect:u4,requires:["computeStyles"]};function jn(e){return e.split("-")[0]}var oo=Math.max,od=Math.min,ws=Math.round;function Ss(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(an(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(n=ws(r.width)/o||1),a>0&&(i=ws(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 by(e){var t=Ss(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 _M(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_y(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _i(e){return Ln(e).getComputedStyle(e)}function c4(e){return["table","td","th"].indexOf(Kn(e))>=0}function da(e){return((bs(e)?e.ownerDocument:e.document)||window.document).documentElement}function th(e){return Kn(e)==="html"?e:e.assignedSlot||e.parentNode||(_y(e)?e.host:null)||da(e)}function Eb(e){return!an(e)||_i(e).position==="fixed"?null:e.offsetParent}function f4(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&an(e)){var n=_i(e);if(n.position==="fixed")return null}var i=th(e);for(_y(i)&&(i=i.host);an(i)&&["html","body"].indexOf(Kn(i))<0;){var a=_i(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 Ku(e){for(var t=Ln(e),r=Eb(e);r&&c4(r)&&_i(r).position==="static";)r=Eb(r);return r&&(Kn(r)==="html"||Kn(r)==="body"&&_i(r).position==="static")?t:r||f4(e)||t}function wy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rl(e,t,r){return oo(e,od(t,r))}function d4(e,t,r){var n=Rl(e,t,r);return n>r?r:n}function bM(){return{top:0,right:0,bottom:0,left:0}}function wM(e){return Object.assign({},bM(),e)}function SM(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var h4=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,wM(typeof e!="number"?e:SM(e,qu))};function v4(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=jn(r.placement),l=wy(s),u=[Cr,un].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!o)){var f=h4(i.padding,r),d=by(a),h=l==="y"?xr:Cr,v=l==="y"?ln:un,p=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],g=o[l]-r.rects.reference[l],m=Ku(a),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,b=f[h],S=y-d[c]-f[v],w=y/2-d[c]/2+_,x=Rl(b,w,S),C=l;r.modifiersData[n]=(t={},t[C]=x,t.centerOffset=x-w,t)}}function p4(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)||!_M(t.elements.popper,i)||(t.elements.arrow=i))}var g4={name:"arrow",enabled:!0,phase:"main",fn:v4,effect:p4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xs(e){return e.split("-")[1]}var m4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function y4(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:ws(t*i)/i||0,y:ws(r*i)/i||0}}function Lb(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,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,p=v===void 0?0:v,g=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=Cr,b=xr,S=window;if(u){var w=Ku(r),x="clientHeight",C="clientWidth";if(w===Ln(r)&&(w=da(r),_i(w).position!=="static"&&s==="absolute"&&(x="scrollHeight",C="scrollWidth")),w=w,i===xr||(i===Cr||i===un)&&a===mu){b=ln;var M=f&&w===S&&S.visualViewport?S.visualViewport.height:w[x];p-=M-n.height,p*=l?1:-1}if(i===Cr||(i===xr||i===ln)&&a===mu){_=un;var E=f&&w===S&&S.visualViewport?S.visualViewport.width:w[C];h-=E-n.width,h*=l?1:-1}}var A=Object.assign({position:s},u&&m4),T=c===!0?y4({x:h,y:p}):{x:h,y:p};if(h=T.x,p=T.y,l){var D;return Object.assign({},A,(D={},D[b]=y?"0":"",D[_]=m?"0":"",D.transform=(S.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 _4(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:jn(t.placement),variation:xs(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,Lb(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,Lb(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 xM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_4,data:{}},mc={passive:!0};function b4(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=Ln(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,mc)}),s&&l.addEventListener("resize",r.update,mc),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,mc)}),s&&l.removeEventListener("resize",r.update,mc)}}var CM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:b4,data:{}},w4={left:"right",right:"left",bottom:"top",top:"bottom"};function Tf(e){return e.replace(/left|right|bottom|top/g,function(t){return w4[t]})}var S4={start:"end",end:"start"};function Db(e){return e.replace(/start|end/g,function(t){return S4[t]})}function Sy(e){var t=Ln(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function xy(e){return Ss(da(e)).left+Sy(e).scrollLeft}function x4(e){var t=Ln(e),r=da(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+xy(e),y:s}}function C4(e){var t,r=da(e),n=Sy(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=oo(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=oo(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+xy(e),l=-n.scrollTop;return _i(i||r).direction==="rtl"&&(s+=oo(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function Cy(e){var t=_i(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function TM(e){return["html","body","#document"].indexOf(Kn(e))>=0?e.ownerDocument.body:an(e)&&Cy(e)?e:TM(th(e))}function kl(e,t){var r;t===void 0&&(t=[]);var n=TM(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Ln(n),o=i?[a].concat(a.visualViewport||[],Cy(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(kl(th(o)))}function Zp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function T4(e){var t=Ss(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 Ib(e,t){return t===mM?Zp(x4(e)):bs(t)?T4(t):Zp(C4(da(e)))}function M4(e){var t=kl(th(e)),r=["absolute","fixed"].indexOf(_i(e).position)>=0,n=r&&an(e)?Ku(e):e;return bs(n)?t.filter(function(i){return bs(i)&&_M(i,n)&&Kn(i)!=="body"}):[]}function A4(e,t,r){var n=t==="clippingParents"?M4(e):[].concat(t),i=[].concat(n,[r]),a=i[0],o=i.reduce(function(s,l){var u=Ib(e,l);return s.top=oo(u.top,s.top),s.right=od(u.right,s.right),s.bottom=od(u.bottom,s.bottom),s.left=oo(u.left,s.left),s},Ib(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 MM(e){var t=e.reference,r=e.element,n=e.placement,i=n?jn(n):null,a=n?xs(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case xr:l={x:o,y:t.y-r.height};break;case ln:l={x:o,y:t.y+t.height};break;case un:l={x:t.x+t.width,y:s};break;case Cr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?wy(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case _s:l[u]=l[u]-(t[c]/2-r[c]/2);break;case mu:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function yu(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?X3:a,s=r.rootBoundary,l=s===void 0?mM:s,u=r.elementContext,c=u===void 0?Xs:u,f=r.altBoundary,d=f===void 0?!1:f,h=r.padding,v=h===void 0?0:h,p=wM(typeof v!="number"?v:SM(v,qu)),g=c===Xs?Z3:Xs,m=e.rects.popper,y=e.elements[d?g:c],_=A4(bs(y)?y:y.contextElement||da(e.elements.popper),o,l),b=Ss(e.elements.reference),S=MM({reference:b,element:m,strategy:"absolute",placement:i}),w=Zp(Object.assign({},m,S)),x=c===Xs?w:b,C={top:_.top-x.top+p.top,bottom:x.bottom-_.bottom+p.bottom,left:_.left-x.left+p.left,right:x.right-_.right+p.right},M=e.modifiersData.offset;if(c===Xs&&M){var E=M[i];Object.keys(C).forEach(function(A){var T=[un,ln].indexOf(A)>=0?1:-1,D=[xr,ln].indexOf(A)>=0?"y":"x";C[A]+=E[D]*T})}return C}function P4(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?yy:l,c=xs(n),f=c?s?Pb:Pb.filter(function(v){return xs(v)===c}):qu,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,p){return v[p]=yu(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[jn(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function E4(e){if(jn(e)===my)return[];var t=Tf(e);return[Db(e),t,Db(t)]}function L4(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,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,p=r.allowedAutoPlacements,g=t.options.placement,m=jn(g),y=m===g,_=l||(y||!v?[Tf(g)]:E4(g)),b=[g].concat(_).reduce(function(Ae,V){return Ae.concat(jn(V)===my?P4(t,{placement:V,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):V)},[]),S=t.rects.reference,w=t.rects.popper,x=new Map,C=!0,M=b[0],E=0;E<b.length;E++){var A=b[E],T=jn(A),D=xs(A)===_s,N=[xr,ln].indexOf(T)>=0,H=N?"width":"height",$=yu(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),G=N?D?un:Cr:D?ln:xr;S[H]>w[H]&&(G=Tf(G));var F=Tf(G),R=[];if(a&&R.push($[T]<=0),s&&R.push($[G]<=0,$[F]<=0),R.every(function(Ae){return Ae})){M=A,C=!1;break}x.set(A,R)}if(C)for(var j=v?3:1,re=function(Ae){var V=b.find(function(Q){var W=x.get(Q);if(W)return W.slice(0,Ae).every(function(q){return q})});if(V)return M=V,"break"},oe=j;oe>0;oe--){var ye=re(oe);if(ye==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}var D4={name:"flip",enabled:!0,phase:"main",fn:L4,requiresIfExists:["offset"],data:{_skip:!1}};function Ob(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 Rb(e){return[xr,un,ln,Cr].some(function(t){return e[t]>=0})}function I4(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=yu(t,{elementContext:"reference"}),s=yu(t,{altBoundary:!0}),l=Ob(o,n),u=Ob(s,i,a),c=Rb(l),f=Rb(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var O4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:I4};function R4(e,t,r){var n=jn(e),i=[Cr,xr].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,[Cr,un].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function k4(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=yy.reduce(function(c,f){return c[f]=R4(f,t.rects,a),c},{}),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 N4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:k4};function F4(e){var t=e.state,r=e.name;t.modifiersData[r]=MM({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var AM={name:"popperOffsets",enabled:!0,phase:"read",fn:F4,data:{}};function B4(e){return e==="x"?"y":"x"}function $4(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,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,p=v===void 0?0:v,g=yu(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=jn(t.placement),y=xs(t.placement),_=!y,b=wy(m),S=B4(b),w=t.modifiersData.popperOffsets,x=t.rects.reference,C=t.rects.popper,M=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(w){if(a){var D,N=b==="y"?xr:Cr,H=b==="y"?ln:un,$=b==="y"?"height":"width",G=w[b],F=G+g[N],R=G-g[H],j=h?-C[$]/2:0,re=y===_s?x[$]:C[$],oe=y===_s?-C[$]:-x[$],ye=t.elements.arrow,Ae=h&&ye?by(ye):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bM(),Q=V[N],W=V[H],q=Rl(0,x[$],Ae[$]),le=_?x[$]/2-j-q-Q-E.mainAxis:re-q-Q-E.mainAxis,de=_?-x[$]/2+j+q+W+E.mainAxis:oe+q+W+E.mainAxis,J=t.elements.arrow&&Ku(t.elements.arrow),L=J?b==="y"?J.clientTop||0:J.clientLeft||0:0,I=(D=A==null?void 0:A[b])!=null?D:0,z=G+le-I-L,U=G+de-I,K=Rl(h?od(F,z):F,G,h?oo(R,U):R);w[b]=K,T[b]=K-G}if(s){var ne,fe=b==="x"?xr:Cr,te=b==="x"?ln:un,ie=w[S],X=S==="y"?"height":"width",we=ie+g[fe],he=ie-g[te],Se=[xr,Cr].indexOf(m)!==-1,Oe=(ne=A==null?void 0:A[S])!=null?ne:0,ze=Se?we:ie-x[X]-C[X]-Oe+E.altAxis,rt=Se?ie+x[X]+C[X]-Oe-E.altAxis:he,Je=h&&Se?d4(ze,ie,rt):Rl(h?ze:we,ie,h?rt:he);w[S]=Je,T[S]=Je-ie}t.modifiersData[n]=T}}var H4={name:"preventOverflow",enabled:!0,phase:"main",fn:$4,requiresIfExists:["offset"]};function z4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function W4(e){return e===Ln(e)||!an(e)?Sy(e):z4(e)}function V4(e){var t=e.getBoundingClientRect(),r=ws(t.width)/e.offsetWidth||1,n=ws(t.height)/e.offsetHeight||1;return r!==1||n!==1}function G4(e,t,r){r===void 0&&(r=!1);var n=an(t),i=an(t)&&V4(t),a=da(t),o=Ss(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Kn(t)!=="body"||Cy(a))&&(s=W4(t)),an(t)?(l=Ss(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=xy(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function U4(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 j4(e){var t=U4(e);return s4.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Y4(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function q4(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 kb={placement:"bottom",modifiers:[],strategy:"absolute"};function Nb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Ty(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?kb:i;return function(o,s,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},kb,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},a,u.options,g),u.scrollParents={reference:bs(o)?kl(o):o.contextElement?kl(o.contextElement):[],popper:kl(s)};var m=j4(q4([].concat(n,u.options.modifiers)));return u.orderedModifiers=m.filter(function(y){return y.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var p=u.elements,g=p.reference,m=p.popper;if(Nb(g,m)){u.rects={reference:G4(g,Ku(m),u.options.strategy==="fixed"),popper:by(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var _=u.orderedModifiers[y],b=_.fn,S=_.options,w=S===void 0?{}:S,x=_.name;typeof b=="function"&&(u=b({state:u,options:w,name:x,instance:d})||u)}}}},update:Y4(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),f=!0}};if(!Nb(o,s))return d;d.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){u.orderedModifiers.forEach(function(p){var g=p.name,m=p.options,y=m===void 0?{}:m,_=p.effect;if(typeof _=="function"){var b=_({state:u,name:g,instance:d,options:y}),S=function(){};c.push(b||S)}})}function v(){c.forEach(function(p){return p()}),c=[]}return d}}Ty();var K4=[CM,AM,xM,yM];Ty({defaultModifiers:K4});var X4=[CM,AM,xM,yM,N4,D4,H4,g4,O4],PM=Ty({defaultModifiers:X4});const Z4=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Q4(l);Object.assign(o.value,u)},requires:["computeStyles"]},i=k(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=P(r);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],n,{name:"applyStyles",enabled:!1}]}}),a=$m(),o=B({styles:{popper:{position:P(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return xe(i,l=>{const u=P(a);u&&u.setOptions(l)},{deep:!0}),xe([e,t],([l,u])=>{s(),!(!l||!u)&&(a.value=PM(l,u,P(i)))}),Xt(()=>{s()}),{state:k(()=>{var l;return{...((l=P(a))==null?void 0:l.state)||{}}}),styles:k(()=>P(o).styles),attributes:k(()=>P(o).attributes),update:()=>{var l;return(l=P(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=P(a))==null?void 0:l.forceUpdate()},instanceRef:k(()=>P(a))}};function Q4(e){const t=Object.keys(e.elements),r=jp(t.map(i=>[i,e.styles[i]||{}])),n=jp(t.map(i=>[i,e.attributes[i]]));return{styles:r,attributes:n}}function Fb(){let e;const t=(n,i)=>{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return zu(()=>r()),{registerTimeout:t,cancelTimeout:r}}const Bb={prefix:Math.floor(Math.random()*1e4),current:0},J4=Symbol("elIdInjection"),EM=()=>ct()?Pe(J4,Bb):Bb,My=e=>{const t=EM(),r=gy();return k(()=>P(e)||`${r.value}-id-${t.prefix}-${t.current++}`)};let Yo=[];const $b=e=>{const t=e;t.key===Ot.esc&&Yo.forEach(r=>r(t))},eH=e=>{wt(()=>{Yo.length===0&&document.addEventListener("keydown",$b),Nt&&Yo.push(e)}),Xt(()=>{Yo=Yo.filter(t=>t!==e),Yo.length===0&&Nt&&document.removeEventListener("keydown",$b)})};let Hb;const LM=()=>{const e=gy(),t=EM(),r=k(()=>`${e.value}-popper-container-${t.prefix}`),n=k(()=>`#${r.value}`);return{id:r,selector:n}},tH=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},rH=()=>{const{id:e,selector:t}=LM();return Gd(()=>{Nt&&!Hb&&!document.body.querySelector(t.value)&&(Hb=tH(e.value))}),{id:e,selector:t}},nH=tt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),DM=({showAfter:e,hideAfter:t,autoClose:r,open:n,close:i})=>{const{registerTimeout:a}=Fb(),{registerTimeout:o,cancelTimeout:s}=Fb();return{onOpen:c=>{a(()=>{n(c);const f=P(r);$t(f)&&f>0&&o(()=>{i(c)},f)},P(e))},onClose:c=>{s(),a(()=>{i(c)},P(t))}}},IM=Symbol("elForwardRef"),iH=e=>{At(IM,{setForwardRef:r=>{e.value=r}})},aH=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),zb=B(0),OM=2e3,RM=Symbol("zIndexContextKey"),Ay=e=>{const t=e||Pe(RM,void 0),r=k(()=>{const a=P(t);return $t(a)?a:OM}),n=k(()=>r.value+zb.value);return{initialZIndex:r,currentZIndex:n,nextZIndex:()=>(zb.value++,n.value)}},Xu=eh({type:String,values:Yu,required:!1}),kM=Symbol("size"),oH=()=>{const e=Pe(kM,{});return k(()=>P(e.size)||"")},NM=Symbol(),sd=B();function Py(e,t=void 0){const r=ct()?Pe(NM,sd):sd;return e?k(()=>{var n,i;return(i=(n=r.value)==null?void 0:n[e])!=null?i:t}):r}function sH(e,t){const r=Py(),n=Ne(e,k(()=>{var s;return((s=r.value)==null?void 0:s.namespace)||Xp})),i=py(k(()=>{var s;return(s=r.value)==null?void 0:s.locale})),a=Ay(k(()=>{var s;return((s=r.value)==null?void 0:s.zIndex)||OM})),o=k(()=>{var s;return P(t)||((s=r.value)==null?void 0:s.size)||""});return FM(k(()=>P(r)||{})),{ns:n,locale:i,zIndex:a,size:o}}const FM=(e,t,r=!1)=>{var n;const i=!!ct(),a=i?Py():void 0,o=(n=t==null?void 0:t.provide)!=null?n:i?At:void 0;if(!o)return;const s=k(()=>{const l=P(e);return a!=null&&a.value?lH(a.value,l):l});return o(NM,s),o(vM,k(()=>s.value.locale)),o(pM,k(()=>s.value.namespace)),o(RM,k(()=>s.value.zIndex)),o(kM,{size:k(()=>s.value.size||"")}),(r||!sd.value)&&(sd.value=s.value),s},lH=(e,t)=>{var r;const n=[...new Set([...Tb(e),...Tb(t)])],i={};for(const a of n)i[a]=(r=t[a])!=null?r:e[a];return i},uH=tt({a11y:{type:Boolean,default:!0},locale:{type:Le(Object)},size:Xu,button:{type:Le(Object)},experimentalFeatures:{type:Le(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Le(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Qp={};ce({name:"ElConfigProvider",props:uH,setup(e,{slots:t}){xe(()=>e.message,n=>{Object.assign(Qp,n??{})},{immediate:!0,deep:!0});const r=FM(e);return()=>$e(t,"default",{config:r==null?void 0:r.value})}});var Ze=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const cH=tt({size:{type:Le([Number,String])},color:{type:String}}),fH=ce({name:"ElIcon",inheritAttrs:!1}),dH=ce({...fH,props:cH,setup(e){const t=e,r=Ne("icon"),n=k(()=>{const{size:i,color:a}=t;return!i&&!a?{}:{fontSize:ad(i)?void 0:po(i),"--color":a}});return(i,a)=>(Y(),me("i",ca({class:P(r).b(),style:P(n)},i.$attrs),[$e(i.$slots,"default")],16))}});var hH=Ze(dH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const lr=hr(hH),Bs=Symbol("formContextKey"),mo=Symbol("formItemContextKey"),ia=(e,t={})=>{const r=B(void 0),n=t.prop?r:gM("size"),i=t.global?r:oH(),a=t.form?{size:void 0}:Pe(Bs,void 0),o=t.formItem?{size:void 0}:Pe(mo,void 0);return k(()=>n.value||P(e)||(o==null?void 0:o.size)||(a==null?void 0:a.size)||i.value||"")},rh=e=>{const t=gM("disabled"),r=Pe(Bs,void 0);return k(()=>t.value||P(e)||(r==null?void 0:r.disabled)||!1)},Zu=()=>{const e=Pe(Bs,void 0),t=Pe(mo,void 0);return{form:e,formItem:t}},Ey=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=B(!1)),n||(n=B(!1));const i=B();let a;const o=k(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return wt(()=>{a=xe([tn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:My().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})}),ks(()=>{a&&a(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}},vH=tt({size:{type:String,values:Yu},disabled:Boolean}),pH=tt({...vH,model:Object,rules:{type:Le(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},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),gH={validate:(e,t,r)=>(be(e)||He(e))&&Br(t)&&He(r)};function mH(){const e=B([]),t=k(()=>{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 yc=(e,t)=>{const r=$p(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},yH="ElForm",_H=ce({name:yH}),bH=ce({..._H,props:pH,emits:gH,setup(e,{expose:t,emit:r}){const n=e,i=[],a=ia(),o=Ne("form"),s=k(()=>{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)},c=(y=[])=>{n.model&&yc(i,y).forEach(_=>_.resetField())},f=(y=[])=>{yc(i,y).forEach(_=>_.clearValidate())},d=k(()=>!!n.model),h=y=>{if(i.length===0)return[];const _=yc(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 S of _)try{await S.validate("")}catch(w){b={...b,...w}}return Object.keys(b).length===0?!0:Promise.reject(b)},g=async(y=[],_)=>{const b=!De(_);try{const S=await p(y);return S===!0&&(_==null||_(S)),S}catch(S){if(S instanceof Error)throw S;const w=S;return n.scrollToError&&m(Object.keys(w)[0]),_==null||_(!1,w),b&&Promise.reject(w)}},m=y=>{var _;const b=yc(i,y)[0];b&&((_=b.$el)==null||_.scrollIntoView(n.scrollIntoViewOptions))};return xe(()=>n.rules,()=>{n.validateOnRuleChange&&v().catch(y=>void 0)},{deep:!0}),At(Bs,fn({...$d(n),emit:r,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...mH()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(y,_)=>(Y(),me("form",{class:ue(P(s))},[$e(y.$slots,"default")],2))}});var wH=Ze(bH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Za.apply(this,arguments)}function SH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_u(e,t)}function Jp(e){return Jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jp(e)}function _u(e,t){return _u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_u(e,t)}function xH(){if(typeof Reflect>"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 Mf(e,t,r){return xH()?Mf=Reflect.construct.bind():Mf=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&_u(u,o.prototype),u},Mf.apply(null,arguments)}function CH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function eg(e){var t=typeof Map=="function"?new Map:void 0;return eg=function(n){if(n===null||!CH(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 Mf(n,arguments,Jp(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_u(i,n)},eg(e)}var TH=/%[sdj%]/g,MH=function(){};typeof process<"u"&&process.env;function tg(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 kr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(TH,function(s){if(s==="%%")return"%";if(i>=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 AH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function zt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||AH(t)&&typeof e=="string"&&!e)}function PH(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 Wb(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<i?t(e[s],a):r([])}a([])}function EH(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var Vb=function(e){SH(t,e);function t(r,n){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return t}(eg(Error));function LH(e,t,r,n,i){if(t.first){var a=new Promise(function(d,h){var v=function(m){return n(m),m.length?h(new Vb(m,tg(m))):d(i)},p=EH(e);Wb(p,r,v)});return a.catch(function(d){return d}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],f=new Promise(function(d,h){var v=function(g){if(c.push.apply(c,g),u++,u===l)return n(c),c.length?h(new Vb(c,tg(c))):d(i)};s.length||(n(c),d(i)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?Wb(g,r,v):PH(g,r,v)})});return f.catch(function(d){return d}),f}function DH(e){return!!(e&&e.message!==void 0)}function IH(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Gb(e,t){return function(r){var n;return e.fullFields?n=IH(t,e.fullFields):n=t[r.field||e.fullField],DH(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Ub(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Za({},e[r],n):e[r]=n}}return e}var BM=function(t,r,n,i,a,o){t.required&&(!n.hasOwnProperty(t.field)||zt(r,o||t.type))&&i.push(kr(a.messages.required,t.fullField))},OH=function(t,r,n,i,a){(/^\s+$/.test(r)||r==="")&&i.push(kr(a.messages.whitespace,t.fullField))},_c,RH=function(){if(_c)return _c;var e="[a-fA-F\\d:]",t=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=(`
 (?:
 (?:`+n+":){7}(?:"+n+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
 (?:`+n+":){6}(?:"+r+"|:"+n+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
@@ -9,7 +9,7 @@ var fD=Object.defineProperty;var dD=(e,t,r)=>t in e?fD(e,t,{enumerable:!0,config
 (?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
 (?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
 )(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
-`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+r+"$)|(?:^"+i+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),l=function(b){return b&&b.exact?a:new RegExp("(?:"+t(b)+r+t(b)+")|(?:"+t(b)+i+t(b)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+t(_)+r+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+i+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+v+p+")"+g+m;return _c=new RegExp("(?:^"+y+"$)","i"),_c},jb={email:/^(([^<>()\[\]\\.,;:\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},bl={integer:function(t){return bl.number(t)&&parseInt(t,10)===t},float:function(t){return bl.number(t)&&!bl.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"&&!bl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(jb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(RH())},hex:function(t){return typeof t=="string"&&!!t.match(jb.hex)}},kH=function(t,r,n,i,a){if(t.required&&r===void 0){BM(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?bl[s](r)||i.push(kr(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(kr(a.messages.types[s],t.fullField,t.type))},NH=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,c=r,f=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(c=r.length),h&&(c=r.replace(u,"_").length),o?c!==t.len&&i.push(kr(a.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?i.push(kr(a.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?i.push(kr(a.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&i.push(kr(a.messages[f].range,t.fullField,t.min,t.max))},Lo="enum",FH=function(t,r,n,i,a){t[Lo]=Array.isArray(t[Lo])?t[Lo]:[],t[Lo].indexOf(r)===-1&&i.push(kr(a.messages[Lo],t.fullField,t[Lo].join(", ")))},BH=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(kr(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(kr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ye={required:BM,whitespace:OH,type:kH,range:NH,enum:FH,pattern:BH},$H=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r,"string")&&!t.required)return n();Ye.required(t,r,i,o,a,"string"),zt(r,"string")||(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a),Ye.pattern(t,r,i,o,a),t.whitespace===!0&&Ye.whitespace(t,r,i,o,a))}n(o)},HH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},zH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},WH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},VH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),zt(r)||Ye.type(t,r,i,o,a)}n(o)},GH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},UH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},jH=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();Ye.required(t,r,i,o,a,"array"),r!=null&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},YH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},qH="enum",KH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye[qH](t,r,i,o,a)}n(o)},XH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r,"string")&&!t.required)return n();Ye.required(t,r,i,o,a),zt(r,"string")||Ye.pattern(t,r,i,o,a)}n(o)},ZH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r,"date")&&!t.required)return n();if(Ye.required(t,r,i,o,a),!zt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ye.type(t,l,i,o,a),l&&Ye.range(t,l.getTime(),i,o,a)}}n(o)},QH=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;Ye.required(t,r,i,o,a,s),n(o)},Vh=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(zt(r,o)&&!t.required)return n();Ye.required(t,r,i,s,a,o),zt(r,o)||Ye.type(t,r,i,s,a)}n(s)},JH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a)}n(o)},Nl={string:$H,method:HH,number:zH,boolean:WH,regexp:VH,integer:GH,float:UH,array:jH,object:YH,enum:KH,pattern:XH,date:ZH,url:Vh,hex:Vh,email:Vh,required:QH,any:JH};function rg(){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 ng=rg(),Qu=function(){function e(r){this.rules=null,this._messages=ng,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=Ub(rg(),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 c(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;_<p.length;_++)y(p[_]);g.length?(m=tg(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===ng&&(f=rg()),Ub(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(p){var g=o.rules[p],m=s[p];g.forEach(function(y){var _=y;typeof _.transform=="function"&&(s===n&&(s=Za({},s)),m=s[p]=_.transform(m)),typeof _=="function"?_={validator:_}:_=Za({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=p,_.fullField=_.fullField||p,_.type=o.getType(_),d[p]=d[p]||[],d[p].push({rule:_,value:m,source:s,field:p}))})});var v={};return LH(d,l,function(p,g){var m=p.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&p.value),m.field=p.field;function _(w,S){return Za({},S,{fullField:m.fullField+"."+w,fullFields:m.fullFields?[].concat(m.fullFields,[w]):[w]})}function b(w){w===void 0&&(w=[]);var S=Array.isArray(w)?w:[w];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&m.message!==void 0&&(S=[].concat(m.message));var C=S.map(Gb(m,s));if(l.first&&C.length)return v[m.field]=1,g(C);if(!y)g(C);else{if(m.required&&!p.value)return m.message!==void 0?C=[].concat(m.message).map(Gb(m,s)):l.error&&(C=[l.error(m,kr(l.messages.required,m.field))]),g(C);var M={};m.defaultField&&Object.keys(p.value).map(function(T){M[T]=m.defaultField}),M=Za({},M,p.rule.fields);var P={};Object.keys(M).forEach(function(T){var D=M[T],N=Array.isArray(D)?D:[D];P[T]=N.map(_.bind(null,T))});var A=new e(P);A.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),A.validate(p.value,p.rule.options||l,function(T){var D=[];C&&C.length&&D.push.apply(D,C),T&&T.length&&D.push.apply(D,T),g(D.length?D:null)})}}var x;if(m.asyncValidator)x=m.asyncValidator(m,p.value,b,p.source,l);else if(m.validator){try{x=m.validator(m,p.value,b,p.source,l)}catch(w){console.error==null||console.error(w),l.suppressValidatorError||setTimeout(function(){throw w},0),b(w.message)}x===!0?b():x===!1?b(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(w){return b(w)})},function(p){c(p)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Nl.hasOwnProperty(n.type))throw new Error(kr("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var i=Object.keys(n),a=i.indexOf("message");return a!==-1&&i.splice(a,1),i.length===1&&i[0]==="required"?Nl.required:Nl[this.getType(n)]||void 0},e}();Qu.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Nl[t]=r};Qu.warning=MH;Qu.messages=ng;Qu.validators=Nl;const ez=["","error","validating","success"],tz=tt({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Le([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Le([Object,Array])},error:String,validateStatus:{type:String,values:ez},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Yu}}),Yb="ElLabelWrap";var rz=ce({name:Yb,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Ee(Bs,void 0),n=Ee(mo);n||na(Yb,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Ne("form"),a=B(),o=B(0),s=()=>{var c;if((c=a.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{Ft(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return wt(()=>{u()}),Xt(()=>{l("remove")}),Hu(()=>u()),Se(o,(c,f)=>{e.updateAll&&(r==null||r.registerLabelWidth(c,f))}),gs(k(()=>{var c,f;return(f=(c=a.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;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},[(c=t.default)==null?void 0:c.call(t)])}else return ee(pt,{ref:a},[(f=t.default)==null?void 0:f.call(t)])}}});const nz=["role","aria-labelledby"],iz=ce({name:"ElFormItem"}),az=ce({...iz,props:tz,setup(e,{expose:t}){const r=e,n=Yd(),i=Ee(Bs,void 0),a=Ee(mo,void 0),o=ia(void 0,{formItem:!1}),s=Ne("form-item"),l=My().value,u=B([]),c=B(""),f=tR(c,100),d=B(""),h=B();let v,p=!1;const g=k(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const W=po(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return W?{width:W}:{}}),m=k(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!r.label&&!r.labelWidth&&M)return{};const W=po(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return!r.label&&!n.label?{marginLeft:W}:{}}),y=k(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",N.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}]),_=k(()=>Br(r.inlineMessage)?r.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),b=k(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),x=k(()=>r.prop?He(r.prop)?r.prop:r.prop.join("."):""),w=k(()=>!!(r.label||n.label)),S=k(()=>r.for||u.value.length===1?u.value[0]:void 0),C=k(()=>!S.value&&w.value),M=!!a,P=k(()=>{const W=i==null?void 0:i.model;if(!(!W||!r.prop))return Sf(W,r.prop).value}),A=k(()=>{const{required:W}=r,q=[];r.rules&&q.push(...$p(r.rules));const le=i==null?void 0:i.rules;if(le&&r.prop){const de=Sf(le,r.prop).value;de&&q.push(...$p(de))}if(W!==void 0){const de=q.map((J,L)=>[J,L]).filter(([J])=>Object.keys(J).includes("required"));if(de.length>0)for(const[J,L]of de)J.required!==W&&(q[L]={...J,required:W});else q.push({required:W})}return q}),T=k(()=>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,...de})=>de),N=k(()=>A.value.some(W=>W.required)),H=k(()=>{var W;return f.value==="error"&&r.showMessage&&((W=i==null?void 0:i.showMessage)!=null?W:!0)}),$=k(()=>`${r.label||""}${(i==null?void 0:i.labelSuffix)||""}`),G=W=>{c.value=W},F=W=>{var q,le;const{errors:de,fields:J}=W;(!de||!J)&&console.error(W),G("error"),d.value=de?(le=(q=de==null?void 0:de[0])==null?void 0:q.message)!=null?le:`${r.prop} is required`:"",i==null||i.emit("validate",r.prop,!1,d.value)},R=()=>{G("success"),i==null||i.emit("validate",r.prop,!0,"")},j=async W=>{const q=x.value;return new Qu({[q]:W}).validate({[q]:P.value},{firstFields:!0}).then(()=>(R(),!0)).catch(de=>(F(de),Promise.reject(de)))},re=async(W,q)=>{if(p||!r.prop)return!1;const le=De(q);if(!T.value)return q==null||q(!1),!1;const de=D(W);return de.length===0?(q==null||q(!0),!0):(G("validating"),j(de).then(()=>(q==null||q(!0),!0)).catch(J=>{const{fields:L}=J;return q==null||q(!1,L),le?!1:Promise.reject(L)}))},oe=()=>{G(""),d.value="",p=!1},ye=async()=>{const W=i==null?void 0:i.model;if(!W||!r.prop)return;const q=Sf(W,r.prop);p=!0,q.value=bb(v),await Ft(),oe(),p=!1},Ae=W=>{u.value.includes(W)||u.value.push(W)},V=W=>{u.value=u.value.filter(q=>q!==W)};Se(()=>r.error,W=>{d.value=W||"",G(W?"error":"")},{immediate:!0}),Se(()=>r.validateStatus,W=>G(W||""));const Q=fn({...$d(r),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:C,hasLabel:w,addInputId:Ae,removeInputId:V,resetField:ye,clearValidate:oe,validate:re});return At(mo,Q),wt(()=>{r.prop&&(i==null||i.addField(Q),v=bb(P.value))}),Xt(()=>{i==null||i.removeField(Q)}),t({size:o,validateMessage:d,validateState:c,validate:re,clearValidate:oe,resetField:ye}),(W,q)=>{var le;return Y(),me("div",{ref_key:"formItemRef",ref:h,class:ue(E(y)),role:E(C)?"group":void 0,"aria-labelledby":E(C)?E(l):void 0},[ee(E(rz),{"is-auto-width":E(g).width==="auto","update-all":((le=E(i))==null?void 0:le.labelWidth)==="auto"},{default:Z(()=>[E(w)?(Y(),_e(nn(E(S)?"label":"div"),{key:0,id:E(l),for:E(S),class:ue(E(s).e("label")),style:St(E(g))},{default:Z(()=>[$e(W.$slots,"label",{label:E($)},()=>[Bt(Me(E($)),1)])]),_:3},8,["id","for","class","style"])):Fe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ae("div",{class:ue(E(s).e("content")),style:St(E(m))},[$e(W.$slots,"default"),ee(NO,{name:`${E(s).namespace.value}-zoom-in-top`},{default:Z(()=>[E(H)?$e(W.$slots,"error",{key:0,error:d.value},()=>[ae("div",{class:ue(E(b))},Me(d.value),3)]):Fe("v-if",!0)]),_:3},8,["name"])],6)],10,nz)}}});var $M=Ze(az,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const HM=hr(wH,{FormItem:$M}),zM=fa($M),Qo=4,oz={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"}},sz=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),WM=Symbol("scrollbarContextKey"),lz=tt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),uz="Thumb",cz=ce({__name:"thumb",props:lz,setup(e){const t=e,r=Ee(WM),n=Ne("scrollbar");r||na(uz,"can not inject scrollbar context");const i=B(),a=B(),o=B({}),s=B(!1);let l=!1,u=!1,c=Nt?document.onselectstart:null;const f=k(()=>oz[t.vertical?"vertical":"horizontal"]),d=k(()=>sz({size:t.size,move:t.move,bar:f.value})),h=k(()=>i.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/a.value[f.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[f.value.axis]=C[f.value.offset]-(w[f.value.client]-C.getBoundingClientRect()[f.value.direction]))},p=w=>{if(!a.value||!i.value||!r.wrapElement)return;const S=Math.abs(w.target.getBoundingClientRect()[f.value.direction]-w[f.value.client]),C=a.value[f.value.offset]/2,M=(S-C)*100*h.value/i.value[f.value.offset];r.wrapElement[f.value.scroll]=M*r.wrapElement[f.value.scrollSize]/100},g=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),c=document.onselectstart,document.onselectstart=()=>!1},m=w=>{if(!i.value||!a.value||l===!1)return;const S=o.value[f.value.axis];if(!S)return;const C=(i.value.getBoundingClientRect()[f.value.direction]-w[f.value.client])*-1,M=a.value[f.value.offset]-S,P=(C-M)*100*h.value/i.value[f.value.offset];r.wrapElement[f.value.scroll]=P*r.wrapElement[f.value.scrollSize]/100},y=()=>{l=!1,o.value[f.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};Xt(()=>{x(),document.removeEventListener("mouseup",y)});const x=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return xn(tn(r,"scrollbarElement"),"mousemove",_),xn(tn(r,"scrollbarElement"),"mouseleave",b),(w,S)=>(Y(),_e(Ci,{name:E(n).b("fade"),persisted:""},{default:Z(()=>[nr(ae("div",{ref_key:"instance",ref:i,class:ue([E(n).e("bar"),E(n).is(E(f).key)]),onMousedown:p},[ae("div",{ref_key:"thumb",ref:a,class:ue(E(n).e("thumb")),style:St(E(d)),onMousedown:v},null,38)],34),[[yi,w.always||s.value]])]),_:1},8,["name"]))}});var qb=Ze(cz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const fz=tt({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),dz=ce({__name:"bar",props:fz,setup(e,{expose:t}){const r=e,n=B(0),i=B(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-Qo,l=o.offsetWidth-Qo;i.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/l*r.ratioX}}}),(o,s)=>(Y(),me(pt,null,[ee(qb,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),ee(qb,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var hz=Ze(dz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const vz=tt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Le([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}}),pz={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every($t)},gz="ElScrollbar",mz=ce({name:gz}),yz=ce({...mz,props:vz,emits:pz,setup(e,{expose:t,emit:r}){const n=e,i=Ne("scrollbar");let a,o;const s=B(),l=B(),u=B(),c=B("0"),f=B("0"),d=B(),h=B(1),v=B(1),p=k(()=>{const S={};return n.height&&(S.height=po(n.height)),n.maxHeight&&(S.maxHeight=po(n.maxHeight)),[n.wrapStyle,S]}),g=k(()=>[n.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!n.native}]),m=k(()=>[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){Xe(S)?l.value.scrollTo(S):$t(S)&&$t(C)&&l.value.scrollTo(S,C)}const b=S=>{$t(S)&&(l.value.scrollTop=S)},x=S=>{$t(S)&&(l.value.scrollLeft=S)},w=()=>{if(!l.value)return;const S=l.value.offsetHeight-Qo,C=l.value.offsetWidth-Qo,M=S**2/l.value.scrollHeight,P=C**2/l.value.scrollWidth,A=Math.max(M,n.minSize),T=Math.max(P,n.minSize);h.value=M/(S-M)/(A/(S-A)),v.value=P/(C-P)/(T/(C-T)),f.value=A+Qo<S?`${A}px`:"",c.value=T+Qo<C?`${T}px`:""};return Se(()=>n.noresize,S=>{S?(a==null||a(),o==null||o()):({stop:a}=gs(u,w),o=xn("resize",w))},{immediate:!0}),Se(()=>[n.maxHeight,n.height],()=>{n.native||Ft(()=>{var S;w(),l.value&&((S=d.value)==null||S.handleScroll(l.value))})}),At(WM,fn({scrollbarElement:s,wrapElement:l})),wt(()=>{n.native||Ft(()=>{w()})}),Hu(()=>w()),t({wrapRef:l,update:w,scrollTo:_,setScrollTop:b,setScrollLeft:x,handleScroll:y}),(S,C)=>(Y(),me("div",{ref_key:"scrollbarRef",ref:s,class:ue(E(i).b())},[ae("div",{ref_key:"wrapRef",ref:l,class:ue(E(g)),style:St(E(p)),onScroll:y},[(Y(),_e(nn(S.tag),{ref_key:"resizeRef",ref:u,class:ue(E(m)),style:St(S.viewStyle)},{default:Z(()=>[$e(S.$slots,"default")]),_:3},8,["class","style"]))],38),S.native?Fe("v-if",!0):(Y(),_e(hz,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:S.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var _z=Ze(yz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const VM=hr(_z),Ly=Symbol("popper"),GM=Symbol("popperContent"),bz=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],UM=tt({role:{type:String,values:bz,default:"tooltip"}}),wz=ce({name:"ElPopper",inheritAttrs:!1}),xz=ce({...wz,props:UM,setup(e,{expose:t}){const r=e,n=B(),i=B(),a=B(),o=B(),s=k(()=>r.role),l={triggerRef:n,popperInstanceRef:i,contentRef:a,referenceRef:o,role:s};return t(l),At(Ly,l),(u,c)=>$e(u.$slots,"default")}});var Sz=Ze(xz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const jM=tt({arrowOffset:{type:Number,default:5}}),Cz=ce({name:"ElPopperArrow",inheritAttrs:!1}),Tz=ce({...Cz,props:jM,setup(e,{expose:t}){const r=e,n=Ne("popper"),{arrowOffset:i,arrowRef:a,arrowStyle:o}=Ee(GM,void 0);return Se(()=>r.arrowOffset,s=>{i.value=s}),Xt(()=>{a.value=void 0}),t({arrowRef:a}),(s,l)=>(Y(),me("span",{ref_key:"arrowRef",ref:a,class:ue(E(n).e("arrow")),style:St(E(o)),"data-popper-arrow":""},null,6))}});var Mz=Ze(Tz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Az="ElOnlyChild",Ez=ce({name:Az,setup(e,{slots:t,attrs:r}){var n;const i=Ee(IM),a=aH((n=i==null?void 0:i.setForwardRef)!=null?n:ur);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=YM(s);return l?nr(mi(l,r),[[a]]):null}}});function YM(e){if(!e)return null;const t=e;for(const r of t){if(Xe(r))switch(r.type){case xr:continue;case Ns:case"svg":return Kb(r);case pt:return YM(r.children);default:return r}return Kb(r)}return null}function Kb(e){const t=Ne("only-child");return ee("span",{class:t.e("content")},[e])}const qM=tt({virtualRef:{type:Le(Object)},virtualTriggering:Boolean,onMouseenter:{type:Le(Function)},onMouseleave:{type:Le(Function)},onClick:{type:Le(Function)},onKeydown:{type:Le(Function)},onFocus:{type:Le(Function)},onBlur:{type:Le(Function)},onContextmenu:{type:Le(Function)},id:String,open:Boolean}),Pz=ce({name:"ElPopperTrigger",inheritAttrs:!1}),Lz=ce({...Pz,props:qM,setup(e,{expose:t}){const r=e,{role:n,triggerRef:i}=Ee(Ly,void 0);iH(i);const a=k(()=>s.value?r.id:void 0),o=k(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),s=k(()=>{if(n&&n.value!=="tooltip")return n.value}),l=k(()=>s.value?`${r.open}`:void 0);let u;return wt(()=>{Se(()=>r.virtualRef,c=>{c&&(i.value=Ui(c))},{immediate:!0}),Se(i,(c,f)=>{u==null||u(),u=void 0,ys(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=r[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),v))}),u=Se([a,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{gu(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),ys(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),Xt(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(c,f)=>c.virtualTriggering?Fe("v-if",!0):(Y(),_e(E(Ez),ca({key:0},c.$attrs,{"aria-controls":E(a),"aria-describedby":E(o),"aria-expanded":E(l),"aria-haspopup":E(s)}),{default:Z(()=>[$e(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Dz=Ze(Lz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Gh="focus-trap.focus-after-trapped",Uh="focus-trap.focus-after-released",Iz="focus-trap.focusout-prevented",Xb={cancelable:!0,bubbles:!1},Oz={cancelable:!0,bubbles:!1},Zb="focusAfterTrapped",Qb="focusAfterReleased",Rz=Symbol("elFocusTrap"),Dy=B(),nh=B(0),Iy=B(0);let bc=0;const KM=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},Jb=(e,t)=>{for(const r of e)if(!kz(r,t))return r},kz=(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},Nz=e=>{const t=KM(e),r=Jb(t,e),n=Jb(t.reverse(),e);return[r,n]},Fz=e=>e instanceof HTMLInputElement&&"select"in e,$i=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),Iy.value=window.performance.now(),e!==r&&Fz(e)&&t&&e.select()}};function e1(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const Bz=()=>{let e=[];return{push:n=>{const i=e[0];i&&n!==i&&i.pause(),e=e1(e,n),e.unshift(n)},remove:n=>{var i,a;e=e1(e,n),(a=(i=e[0])==null?void 0:i.resume)==null||a.call(i)}}},$z=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if($i(n,t),document.activeElement!==r)return},t1=Bz(),Hz=()=>nh.value>Iy.value,wc=()=>{Dy.value="pointer",nh.value=window.performance.now()},r1=()=>{Dy.value="keyboard",nh.value=window.performance.now()},zz=()=>(wt(()=>{bc===0&&(document.addEventListener("mousedown",wc),document.addEventListener("touchstart",wc),document.addEventListener("keydown",r1)),bc++}),Xt(()=>{bc--,bc<=0&&(document.removeEventListener("mousedown",wc),document.removeEventListener("touchstart",wc),document.removeEventListener("keydown",r1))}),{focusReason:Dy,lastUserFocusTimestamp:nh,lastAutomatedFocusTimestamp:Iy}),xc=e=>new CustomEvent(Iz,{...Oz,detail:e}),Wz=ce({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Zb,Qb,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=B();let n,i;const{focusReason:a}=zz();eH(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===Ot.tab&&!g&&!m&&!y,S=document.activeElement;if(w&&S){const C=_,[M,P]=Nz(C);if(M&&P){if(!b&&S===P){const T=xc({focusReason:a.value});t("focusout-prevented",T),T.defaultPrevented||(v.preventDefault(),x&&$i(M,!0))}else if(b&&[M,C].includes(S)){const T=xc({focusReason:a.value});t("focusout-prevented",T),T.defaultPrevented||(v.preventDefault(),x&&$i(P,!0))}}else if(S===C){const T=xc({focusReason:a.value});t("focusout-prevented",T),T.defaultPrevented||v.preventDefault()}}};At(Rz,{focusTrapRef:r,onKeydown:s}),Se(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),Se([r],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=v=>{t(Zb,v)},u=v=>t(Qb,v),c=v=>{const p=E(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:$i(i,!0))},f=v=>{const p=E(r);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!gu(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=xc({focusReason:a.value});t("focusout-prevented",m),m.defaultPrevented||$i(i,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await Ft();const v=E(r);if(v){t1.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const m=new Event(Gh,Xb);v.addEventListener(Gh,l),v.dispatchEvent(m),m.defaultPrevented||Ft(()=>{let y=e.focusStartEl;He(y)||($i(y),document.activeElement!==y&&(y="first")),y==="first"&&$z(KM(v),!0),(document.activeElement===p||y==="container")&&$i(v)})}}}function h(){const v=E(r);if(v){v.removeEventListener(Gh,l);const p=new CustomEvent(Uh,{...Xb,detail:{focusReason:a.value}});v.addEventListener(Uh,u),v.dispatchEvent(p),!p.defaultPrevented&&(a.value=="keyboard"||!Hz()||v.contains(document.activeElement))&&$i(n??document.body),v.removeEventListener(Uh,l),t1.remove(o)}}return wt(()=>{e.trapped&&d(),Se(()=>e.trapped,v=>{v?d():h()})}),Xt(()=>{e.trapped&&h()}),{onKeydown:s}}});function Vz(e,t,r,n,i,a){return $e(e.$slots,"default",{handleKeydown:e.onKeydown})}var Gz=Ze(Wz,[["render",Vz],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Uz=["fixed","absolute"],jz=tt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Le(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:yy,default:"bottom"},popperOptions:{type:Le(Object),default:()=>({})},strategy:{type:String,values:Uz,default:"absolute"}}),XM=tt({...jz,id:String,style:{type:Le([String,Array,Object])},className:{type:Le([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:Le([String,Array,Object])},popperStyle:{type:Le([String,Array,Object])},referenceEl:{type:Le(Object)},triggerTargetEl:{type:Le(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Yz={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},qz=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:i}=e,a={placement:r,strategy:n,...i,modifiers:[...Xz(e),...t]};return Zz(a,i==null?void 0:i.modifiers),a},Kz=e=>{if(Nt)return Ui(e)};function Xz(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 Zz(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Qz=0,Jz=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:i}=Ee(Ly,void 0),a=B(),o=B(),s=k(()=>({name:"eventListeners",enabled:!!e.visible})),l=k(()=>{var m;const y=E(a),_=(m=E(o))!=null?m:Qz;return{name:"arrow",enabled:!L5(y),options:{element:y,padding:_}}}),u=k(()=>({onFirstUpdate:()=>{v()},...qz(e,[E(l),E(s)])})),c=k(()=>Kz(e.referenceEl)||E(n)),{attributes:f,state:d,styles:h,update:v,forceUpdate:p,instanceRef:g}=Z4(c,r,u);return Se(g,m=>t.value=m),wt(()=>{Se(()=>{var m;return(m=E(c))==null?void 0:m.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:a,contentRef:r,instanceRef:g,state:d,styles:h,role:i,forceUpdate:p,update:v}},e6=(e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:i}=Ay(),a=Ne("popper"),o=k(()=>E(t).popper),s=B(e.zIndex||i()),l=k(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),u=k(()=>[{zIndex:E(s)},e.popperStyle||{},E(r).popper]),c=k(()=>n.value==="dialog"?"false":void 0),f=k(()=>E(r).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=e.zIndex||i()}}},t6=(e,t)=>{const r=B(!1),n=B();return{focusStartRef:n,trapped:r,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(n.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!r.value&&(u.target&&(n.value=u.target),r.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}},r6=ce({name:"ElPopperContent"}),n6=ce({...r6,props:XM,emits:Yz,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:i,trapped:a,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=t6(n,r),{attributes:f,arrowRef:d,contentRef:h,styles:v,instanceRef:p,role:g,update:m}=Jz(n),{ariaModal:y,arrowStyle:_,contentAttrs:b,contentClass:x,contentStyle:w,updateZIndex:S}=e6(n,{styles:v,attributes:f,role:g}),C=Ee(mo,void 0),M=B();At(GM,{arrowStyle:_,arrowRef:d,arrowOffset:M}),C&&(C.addInputId||C.removeInputId)&&At(mo,{...C,addInputId:ur,removeInputId:ur});let P;const A=(D=!0)=>{m(),D&&S()},T=()=>{A(!1),n.visible&&n.focusOnShow?a.value=!0:n.visible===!1&&(a.value=!1)};return wt(()=>{Se(()=>n.triggerTargetEl,(D,N)=>{P==null||P(),P=void 0;const H=E(D||h.value),$=E(N||h.value);ys(H)&&(P=Se([g,()=>n.ariaLabel,y,()=>n.id],G=>{["role","aria-label","aria-modal","id"].forEach((F,R)=>{gu(G[R])?H.removeAttribute(F):H.setAttribute(F,G[R])})},{immediate:!0})),$!==H&&ys($)&&["role","aria-label","aria-modal","id"].forEach(G=>{$.removeAttribute(G)})},{immediate:!0}),Se(()=>n.visible,T,{immediate:!0})}),Xt(()=>{P==null||P(),P=void 0}),t({popperContentRef:h,popperInstanceRef:p,updatePopper:A,contentStyle:w}),(D,N)=>(Y(),me("div",ca({ref_key:"contentRef",ref:h},E(b),{style:E(w),class:E(x),tabindex:"-1",onMouseenter:N[0]||(N[0]=H=>D.$emit("mouseenter",H)),onMouseleave:N[1]||(N[1]=H=>D.$emit("mouseleave",H))}),[ee(E(Gz),{trapped:E(a),"trap-on-focus-in":!0,"focus-trap-el":E(h),"focus-start-el":E(i),onFocusAfterTrapped:E(s),onFocusAfterReleased:E(o),onFocusin:E(l),onFocusoutPrevented:E(u),onReleaseRequested:E(c)},{default:Z(()=>[$e(D.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var i6=Ze(n6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const a6=hr(Sz),Oy=Symbol("elTooltip"),qr=tt({...nH,...XM,appendTo:{type:Le([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Le(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),bu=tt({...qM,disabled:Boolean,trigger:{type:Le([String,Array]),default:"hover"},triggerKeys:{type:Le(Array),default:()=>[Ot.enter,Ot.space]}}),{useModelToggleProps:o6,useModelToggleEmits:s6,useModelToggle:l6}=K3("visible"),u6=tt({...UM,...o6,...qr,...bu,...jM,showArrow:{type:Boolean,default:!0}}),c6=[...s6,"before-show","before-hide","show","hide","open","close"],f6=(e,t)=>be(e)?e.includes(t):e===t,Do=(e,t,r)=>n=>{f6(E(e),t)&&r(n)},d6=ce({name:"ElTooltipTrigger"}),h6=ce({...d6,props:bu,setup(e,{expose:t}){const r=e,n=Ne("tooltip"),{controlled:i,id:a,open:o,onOpen:s,onClose:l,onToggle:u}=Ee(Oy,void 0),c=B(null),f=()=>{if(E(i)||r.disabled)return!0},d=tn(r,"trigger"),h=fi(f,Do(d,"hover",s)),v=fi(f,Do(d,"hover",l)),p=fi(f,Do(d,"click",b=>{b.button===0&&u(b)})),g=fi(f,Do(d,"focus",s)),m=fi(f,Do(d,"focus",l)),y=fi(f,Do(d,"contextmenu",b=>{b.preventDefault(),u(b)})),_=fi(f,b=>{const{code:x}=b;r.triggerKeys.includes(x)&&(b.preventDefault(),u(b))});return t({triggerRef:c}),(b,x)=>(Y(),_e(E(Dz),{id:E(a),"virtual-ref":b.virtualRef,open:E(o),"virtual-triggering":b.virtualTriggering,class:ue(E(n).e("trigger")),onBlur:E(m),onClick:E(p),onContextmenu:E(y),onFocus:E(g),onMouseenter:E(h),onMouseleave:E(v),onKeydown:E(_)},{default:Z(()=>[$e(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var v6=Ze(h6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const p6=ce({name:"ElTooltipContent",inheritAttrs:!1}),g6=ce({...p6,props:qr,setup(e,{expose:t}){const r=e,{selector:n}=LM(),i=Ne("tooltip"),a=B(null),o=B(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:p,onBeforeHide:g}=Ee(Oy,void 0),m=k(()=>r.transition||`${i.namespace.value}-fade-in-linear`),y=k(()=>r.persistent);Xt(()=>{o.value=!0});const _=k(()=>E(y)?!0:E(u)),b=k(()=>r.disabled?!1:E(u)),x=k(()=>r.appendTo||n.value),w=k(()=>{var G;return(G=r.style)!=null?G:{}}),S=k(()=>!E(u)),C=()=>{v()},M=()=>{if(E(s))return!0},P=fi(M,()=>{r.enterable&&E(c)==="hover"&&d()}),A=fi(M,()=>{E(c)==="hover"&&f()}),T=()=>{var G,F;(F=(G=a.value)==null?void 0:G.updatePopper)==null||F.call(G),p==null||p()},D=()=>{g==null||g()},N=()=>{h(),$=pR(k(()=>{var G;return(G=a.value)==null?void 0:G.popperContentRef}),()=>{if(E(s))return;E(c)!=="hover"&&f()})},H=()=>{r.virtualTriggering||f()};let $;return Se(()=>E(u),G=>{G||$==null||$()},{flush:"post"}),Se(()=>r.content,()=>{var G,F;(F=(G=a.value)==null?void 0:G.updatePopper)==null||F.call(G)}),t({contentRef:a}),(G,F)=>(Y(),_e(eO,{disabled:!G.teleported,to:E(x)},[ee(Ci,{name:E(m),onAfterLeave:C,onBeforeEnter:T,onAfterEnter:N,onBeforeLeave:D},{default:Z(()=>[E(_)?nr((Y(),_e(E(i6),ca({key:0,id:E(l),ref_key:"contentRef",ref:a},G.$attrs,{"aria-label":G.ariaLabel,"aria-hidden":E(S),"boundaries-padding":G.boundariesPadding,"fallback-placements":G.fallbackPlacements,"gpu-acceleration":G.gpuAcceleration,offset:G.offset,placement:G.placement,"popper-options":G.popperOptions,strategy:G.strategy,effect:G.effect,enterable:G.enterable,pure:G.pure,"popper-class":G.popperClass,"popper-style":[G.popperStyle,E(w)],"reference-el":G.referenceEl,"trigger-target-el":G.triggerTargetEl,visible:E(b),"z-index":G.zIndex,onMouseenter:E(P),onMouseleave:E(A),onBlur:H,onClose:E(f)}),{default:Z(()=>[o.value?Fe("v-if",!0):$e(G.$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"])),[[yi,E(b)]]):Fe("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var m6=Ze(g6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const y6=["innerHTML"],_6={key:1},b6=ce({name:"ElTooltip"}),w6=ce({...b6,props:u6,emits:c6,setup(e,{expose:t,emit:r}){const n=e;rH();const i=My(),a=B(),o=B(),s=()=>{var m;const y=E(a);y&&((m=y.popperInstanceRef)==null||m.update())},l=B(!1),u=B(),{show:c,hide:f,hasUpdateHandler:d}=l6({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=DM({showAfter:tn(n,"showAfter"),hideAfter:tn(n,"hideAfter"),autoClose:tn(n,"autoClose"),open:c,close:f}),p=k(()=>Br(n.visible)&&!d.value);At(Oy,{controlled:p,id:i,open:$u(l),trigger:tn(n,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{E(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}),Se(()=>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 qC(()=>l.value&&f()),t({popperRef:a,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,y)=>(Y(),_e(E(a6),{ref_key:"popperRef",ref:a,role:m.role},{default:Z(()=>[ee(v6,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:Z(()=>[m.$slots.default?$e(m.$slots,"default",{key:0}):Fe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ee(m6,{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(()=>[$e(m.$slots,"content",{},()=>[m.rawContent?(Y(),me("span",{key:0,innerHTML:m.content},null,8,y6)):(Y(),me("span",_6,Me(m.content),1))]),m.showArrow?(Y(),_e(E(Mz),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):Fe("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 x6=Ze(w6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Ju=hr(x6),S6=tt({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"}}),C6=["textContent"],T6=ce({name:"ElBadge"}),M6=ce({...T6,props:S6,setup(e,{expose:t}){const r=e,n=Ne("badge"),i=k(()=>r.isDot?"":$t(r.value)&&$t(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:i}),(a,o)=>(Y(),me("div",{class:ue(E(n).b())},[$e(a.$slots,"default"),ee(Ci,{name:`${E(n).namespace.value}-zoom-in-center`,persisted:""},{default:Z(()=>[nr(ae("sup",{class:ue([E(n).e("content"),E(n).em("content",a.type),E(n).is("fixed",!!a.$slots.default),E(n).is("dot",a.isDot)]),textContent:Me(E(i))},null,10,C6),[[yi,!a.hidden&&(E(i)||a.isDot)]])]),_:1},8,["name"])],2))}});var A6=Ze(M6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const E6=hr(A6),ZM=Symbol("buttonGroupContextKey"),P6=(e,t)=>{vy({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},k(()=>e.type==="text"));const r=Ee(ZM,void 0),n=Ey("button"),{form:i}=Zu(),a=ia(k(()=>r==null?void 0:r.size)),o=rh(),s=B(),l=Yd(),u=k(()=>e.type||(r==null?void 0:r.type)||""),c=k(()=>{var h,v,p;return(p=(v=e.autoInsertSpace)!=null?v:(h=n.value)==null?void 0:h.autoInsertSpace)!=null?p:!1}),f=k(()=>{var h;const v=(h=l.default)==null?void 0:h.call(l);if(c.value&&(v==null?void 0:v.length)===1){const p=v[0];if((p==null?void 0:p.type)===Ns){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:f,handleClick:h=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",h)}}},L6=["default","primary","success","warning","info","danger","text",""],D6=["button","submit","reset"],ig=tt({size:Xu,disabled:Boolean,type:{type:String,values:L6,default:""},icon:{type:Wn},nativeType:{type:String,values:D6,default:"button"},loading:Boolean,loadingIcon:{type:Wn,default:()=>hy},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),I6={click:e=>e instanceof MouseEvent};function Kt(e,t){O6(e)&&(e="100%");var r=R6(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 Sc(e){return Math.min(1,Math.max(0,e))}function O6(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function R6(e){return typeof e=="string"&&e.indexOf("%")!==-1}function QM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Cc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Qa(e){return e.length===1?"0"+e:String(e)}function k6(e,t,r){return{r:Kt(e,255)*255,g:Kt(t,255)*255,b:Kt(r,255)*255}}function n1(e,t,r){e=Kt(e,255),t=Kt(t,255),r=Kt(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+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s:o,l:s}}function jh(e,t,r){return r<0&&(r+=1),r>1&&(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 N6(e,t,r){var n,i,a;if(e=Kt(e,360),t=Kt(t,100),r=Kt(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=jh(s,o,e+1/3),i=jh(s,o,e),a=jh(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function i1(e,t,r){e=Kt(e,255),t=Kt(t,255),r=Kt(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<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:l,v:o}}function F6(e,t,r){e=Kt(e,360)*6,t=Kt(t,100),r=Kt(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),o=r*(1-i*t),s=r*(1-(1-i)*t),l=n%6,u=[r,o,a,a,s,r][l],c=[s,r,r,o,a,a][l],f=[a,a,s,r,r,o][l];return{r:u*255,g:c*255,b:f*255}}function a1(e,t,r,n){var i=[Qa(Math.round(e).toString(16)),Qa(Math.round(t).toString(16)),Qa(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function B6(e,t,r,n,i){var a=[Qa(Math.round(e).toString(16)),Qa(Math.round(t).toString(16)),Qa(Math.round(r).toString(16)),Qa($6(n))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function $6(e){return Math.round(parseFloat(e)*255).toString(16)}function o1(e){return Ir(e)/255}function Ir(e){return parseInt(e,16)}function H6(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ag={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 z6(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=G6(e)),typeof e=="object"&&(ii(e.r)&&ii(e.g)&&ii(e.b)?(t=k6(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ii(e.h)&&ii(e.s)&&ii(e.v)?(n=Cc(e.s),i=Cc(e.v),t=F6(e.h,n,i),o=!0,s="hsv"):ii(e.h)&&ii(e.s)&&ii(e.l)&&(n=Cc(e.s),a=Cc(e.l),t=N6(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=QM(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 W6="[-\\+]?\\d+%?",V6="[-\\+]?\\d*\\.\\d+%?",ji="(?:".concat(V6,")|(?:").concat(W6,")"),Yh="[\\s|\\(]+(".concat(ji,")[,|\\s]+(").concat(ji,")[,|\\s]+(").concat(ji,")\\s*\\)?"),qh="[\\s|\\(]+(".concat(ji,")[,|\\s]+(").concat(ji,")[,|\\s]+(").concat(ji,")[,|\\s]+(").concat(ji,")\\s*\\)?"),pn={CSS_UNIT:new RegExp(ji),rgb:new RegExp("rgb"+Yh),rgba:new RegExp("rgba"+qh),hsl:new RegExp("hsl"+Yh),hsla:new RegExp("hsla"+qh),hsv:new RegExp("hsv"+Yh),hsva:new RegExp("hsva"+qh),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 G6(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ag[e])e=ag[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=pn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=pn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=pn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=pn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=pn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=pn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=pn.hex8.exec(e),r?{r:Ir(r[1]),g:Ir(r[2]),b:Ir(r[3]),a:o1(r[4]),format:t?"name":"hex8"}:(r=pn.hex6.exec(e),r?{r:Ir(r[1]),g:Ir(r[2]),b:Ir(r[3]),format:t?"name":"hex"}:(r=pn.hex4.exec(e),r?{r:Ir(r[1]+r[1]),g:Ir(r[2]+r[2]),b:Ir(r[3]+r[3]),a:o1(r[4]+r[4]),format:t?"name":"hex8"}:(r=pn.hex3.exec(e),r?{r:Ir(r[1]+r[1]),g:Ir(r[2]+r[2]),b:Ir(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function ii(e){return Boolean(pn.CSS_UNIT.exec(String(e)))}var JM=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=H6(t)),this.originalInput=t;var i=z6(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=QM(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=i1(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=i1(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=n1(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=n1(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),a1(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),B6(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(Kt(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(Kt(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="#"+a1(this.r,this.g,this.b,!1),r=0,n=Object.entries(ag);r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(t===o)return a}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t??this.format;var n=!1,i=this.a<1&&this.a>=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=Sc(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=Sc(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=Sc(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=Sc(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<t;o++)i.push(new e({h:(n+o*a)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Di(e,t=20){return e.mix("#141414",t).toString()}function U6(e){const t=rh(),r=Ne("button");return k(()=>{let n={};const i=e.color;if(i){const a=new JM(i),o=e.dark?a.tint(20).toString():Di(a,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Di(a,90):a.tint(90).toString(),"text-color":i,"border-color":e.dark?Di(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?Di(a,90):a.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Di(a,50):a.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Di(a,80):a.tint(80).toString());else{const s=e.dark?Di(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?Di(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 j6=["aria-disabled","disabled","autofocus","type"],Y6=ce({name:"ElButton"}),q6=ce({...Y6,props:ig,emits:I6,setup(e,{expose:t,emit:r}){const n=e,i=U6(n),a=Ne("button"),{_ref:o,_size:s,_type:l,_disabled:u,shouldAddSpace:c,handleClick:f}=P6(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:c}),(d,h)=>(Y(),me("button",{ref_key:"_ref",ref:o,class:ue([E(a).b(),E(a).m(E(l)),E(a).m(E(s)),E(a).is("disabled",E(u)),E(a).is("loading",d.loading),E(a).is("plain",d.plain),E(a).is("round",d.round),E(a).is("circle",d.circle),E(a).is("text",d.text),E(a).is("link",d.link),E(a).is("has-bg",d.bg)]),"aria-disabled":E(u)||d.loading,disabled:E(u)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:St(E(i)),onClick:h[0]||(h[0]=(...v)=>E(f)&&E(f)(...v))},[d.loading?(Y(),me(pt,{key:0},[d.$slots.loading?$e(d.$slots,"loading",{key:0}):(Y(),_e(E(lr),{key:1,class:ue(E(a).is("loading"))},{default:Z(()=>[(Y(),_e(nn(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(Y(),_e(E(lr),{key:1},{default:Z(()=>[d.icon?(Y(),_e(nn(d.icon),{key:0})):$e(d.$slots,"icon",{key:1})]),_:3})):Fe("v-if",!0),d.$slots.default?(Y(),me("span",{key:2,class:ue({[E(a).em("text","expand")]:E(c)})},[$e(d.$slots,"default")],2)):Fe("v-if",!0)],14,j6))}});var K6=Ze(q6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const X6={size:ig.size,type:ig.type},Z6=ce({name:"ElButtonGroup"}),Q6=ce({...Z6,props:X6,setup(e){const t=e;At(ZM,fn({size:tn(t,"size"),type:tn(t,"type")}));const r=Ne("button");return(n,i)=>(Y(),me("div",{class:ue(`${E(r).b("group")}`)},[$e(n.$slots,"default")],2))}});var eA=Ze(Q6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const J6=hr(K6,{ButtonGroup:eA});fa(eA);var e8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const Hi=new Map;let s1;Nt&&(document.addEventListener("mousedown",e=>s1=e),document.addEventListener("mouseup",e=>{for(const t of Hi.values())for(const{documentHandler:r}of t)r(e,s1)}));function l1(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:ys(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,c=e.contains(o)||e.contains(s),f=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||c||f||d||h||t.value(n,i)}}const t8={beforeMount(e,t){Hi.has(e)||Hi.set(e,[]),Hi.get(e).push({documentHandler:l1(e,t),bindingFn:t.value})},updated(e,t){Hi.has(e)||Hi.set(e,[]);const r=Hi.get(e),n=r.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:l1(e,t),bindingFn:t.value};n>=0?r.splice(n,1,i):r.push(i)},unmounted(e){Hi.delete(e)}};var u1=!1,qa,og,sg,Af,Ef,tA,Pf,lg,ug,cg,rA,fg,dg,nA,iA;function vr(){if(!u1){u1=!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(fg=/\b(iPhone|iP[ao]d)/.exec(e),dg=/\b(iP[ao]d)/.exec(e),cg=/Android/i.exec(e),nA=/FBAN\/\w+;/i.exec(e),iA=/Mobile/i.exec(e),rA=!!/Win64/.exec(e),t){qa=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,qa&&document&&document.documentMode&&(qa=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);tA=n?parseFloat(n[1])+4:qa,og=t[2]?parseFloat(t[2]):NaN,sg=t[3]?parseFloat(t[3]):NaN,Af=t[4]?parseFloat(t[4]):NaN,Af?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ef=t&&t[1]?parseFloat(t[1]):NaN):Ef=NaN}else qa=og=sg=Ef=Af=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Pf=i?parseFloat(i[1].replace("_",".")):!0}else Pf=!1;lg=!!r[2],ug=!!r[3]}else Pf=lg=ug=!1}}var hg={ie:function(){return vr()||qa},ieCompatibilityMode:function(){return vr()||tA>qa},ie64:function(){return hg.ie()&&rA},firefox:function(){return vr()||og},opera:function(){return vr()||sg},webkit:function(){return vr()||Af},safari:function(){return hg.webkit()},chrome:function(){return vr()||Ef},windows:function(){return vr()||lg},osx:function(){return vr()||Pf},linux:function(){return vr()||ug},iphone:function(){return vr()||fg},mobile:function(){return vr()||fg||dg||cg||iA},nativeApp:function(){return vr()||nA},android:function(){return vr()||cg},ipad:function(){return vr()||dg}},r8=hg,Tc=!!(typeof window<"u"&&window.document&&window.document.createElement),n8={canUseDOM:Tc,canUseWorkers:typeof Worker<"u",canUseEventListeners:Tc&&!!(window.addEventListener||window.attachEvent),canUseViewport:Tc&&!!window.screen,isInWorker:!Tc},aA=n8,oA;aA.canUseDOM&&(oA=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function i8(e,t){if(!aA.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&&oA&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var a8=i8,c1=10,f1=40,d1=800;function sA(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*c1,i=r*c1,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=f1,i*=f1):(n*=d1,i*=d1)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}sA.getEventType=function(){return r8.firefox()?"DOMMouseScroll":a8("wheel")?"wheel":"mousewheel"};var o8=sA;/**
+`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+r+"$)|(?:^"+i+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),l=function(b){return b&&b.exact?a:new RegExp("(?:"+t(b)+r+t(b)+")|(?:"+t(b)+i+t(b)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+t(_)+r+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+i+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+v+p+")"+g+m;return _c=new RegExp("(?:^"+y+"$)","i"),_c},jb={email:/^(([^<>()\[\]\\.,;:\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},bl={integer:function(t){return bl.number(t)&&parseInt(t,10)===t},float:function(t){return bl.number(t)&&!bl.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"&&!bl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(jb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(RH())},hex:function(t){return typeof t=="string"&&!!t.match(jb.hex)}},kH=function(t,r,n,i,a){if(t.required&&r===void 0){BM(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?bl[s](r)||i.push(kr(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(kr(a.messages.types[s],t.fullField,t.type))},NH=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,c=r,f=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(c=r.length),h&&(c=r.replace(u,"_").length),o?c!==t.len&&i.push(kr(a.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?i.push(kr(a.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?i.push(kr(a.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&i.push(kr(a.messages[f].range,t.fullField,t.min,t.max))},Lo="enum",FH=function(t,r,n,i,a){t[Lo]=Array.isArray(t[Lo])?t[Lo]:[],t[Lo].indexOf(r)===-1&&i.push(kr(a.messages[Lo],t.fullField,t[Lo].join(", ")))},BH=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(kr(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(kr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ye={required:BM,whitespace:OH,type:kH,range:NH,enum:FH,pattern:BH},$H=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r,"string")&&!t.required)return n();Ye.required(t,r,i,o,a,"string"),zt(r,"string")||(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a),Ye.pattern(t,r,i,o,a),t.whitespace===!0&&Ye.whitespace(t,r,i,o,a))}n(o)},HH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},zH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},WH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},VH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),zt(r)||Ye.type(t,r,i,o,a)}n(o)},GH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},UH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},jH=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();Ye.required(t,r,i,o,a,"array"),r!=null&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},YH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},qH="enum",KH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye[qH](t,r,i,o,a)}n(o)},XH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r,"string")&&!t.required)return n();Ye.required(t,r,i,o,a),zt(r,"string")||Ye.pattern(t,r,i,o,a)}n(o)},ZH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r,"date")&&!t.required)return n();if(Ye.required(t,r,i,o,a),!zt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ye.type(t,l,i,o,a),l&&Ye.range(t,l.getTime(),i,o,a)}}n(o)},QH=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;Ye.required(t,r,i,o,a,s),n(o)},Vh=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(zt(r,o)&&!t.required)return n();Ye.required(t,r,i,s,a,o),zt(r,o)||Ye.type(t,r,i,s,a)}n(s)},JH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return n();Ye.required(t,r,i,o,a)}n(o)},Nl={string:$H,method:HH,number:zH,boolean:WH,regexp:VH,integer:GH,float:UH,array:jH,object:YH,enum:KH,pattern:XH,date:ZH,url:Vh,hex:Vh,email:Vh,required:QH,any:JH};function rg(){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 ng=rg(),Qu=function(){function e(r){this.rules=null,this._messages=ng,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=Ub(rg(),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 c(p){var g=[],m={};function y(b){if(Array.isArray(b)){var S;g=(S=g).concat.apply(S,b)}else g.push(b)}for(var _=0;_<p.length;_++)y(p[_]);g.length?(m=tg(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===ng&&(f=rg()),Ub(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(p){var g=o.rules[p],m=s[p];g.forEach(function(y){var _=y;typeof _.transform=="function"&&(s===n&&(s=Za({},s)),m=s[p]=_.transform(m)),typeof _=="function"?_={validator:_}:_=Za({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=p,_.fullField=_.fullField||p,_.type=o.getType(_),d[p]=d[p]||[],d[p].push({rule:_,value:m,source:s,field:p}))})});var v={};return LH(d,l,function(p,g){var m=p.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&p.value),m.field=p.field;function _(w,x){return Za({},x,{fullField:m.fullField+"."+w,fullFields:m.fullFields?[].concat(m.fullFields,[w]):[w]})}function b(w){w===void 0&&(w=[]);var x=Array.isArray(w)?w:[w];!l.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&m.message!==void 0&&(x=[].concat(m.message));var C=x.map(Gb(m,s));if(l.first&&C.length)return v[m.field]=1,g(C);if(!y)g(C);else{if(m.required&&!p.value)return m.message!==void 0?C=[].concat(m.message).map(Gb(m,s)):l.error&&(C=[l.error(m,kr(l.messages.required,m.field))]),g(C);var M={};m.defaultField&&Object.keys(p.value).map(function(T){M[T]=m.defaultField}),M=Za({},M,p.rule.fields);var E={};Object.keys(M).forEach(function(T){var D=M[T],N=Array.isArray(D)?D:[D];E[T]=N.map(_.bind(null,T))});var A=new e(E);A.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),A.validate(p.value,p.rule.options||l,function(T){var D=[];C&&C.length&&D.push.apply(D,C),T&&T.length&&D.push.apply(D,T),g(D.length?D:null)})}}var S;if(m.asyncValidator)S=m.asyncValidator(m,p.value,b,p.source,l);else if(m.validator){try{S=m.validator(m,p.value,b,p.source,l)}catch(w){console.error==null||console.error(w),l.suppressValidatorError||setTimeout(function(){throw w},0),b(w.message)}S===!0?b():S===!1?b(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):S instanceof Array?b(S):S instanceof Error&&b(S.message)}S&&S.then&&S.then(function(){return b()},function(w){return b(w)})},function(p){c(p)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Nl.hasOwnProperty(n.type))throw new Error(kr("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var i=Object.keys(n),a=i.indexOf("message");return a!==-1&&i.splice(a,1),i.length===1&&i[0]==="required"?Nl.required:Nl[this.getType(n)]||void 0},e}();Qu.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Nl[t]=r};Qu.warning=MH;Qu.messages=ng;Qu.validators=Nl;const ez=["","error","validating","success"],tz=tt({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Le([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Le([Object,Array])},error:String,validateStatus:{type:String,values:ez},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Yu}}),Yb="ElLabelWrap";var rz=ce({name:Yb,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Pe(Bs,void 0),n=Pe(mo);n||na(Yb,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Ne("form"),a=B(),o=B(0),s=()=>{var c;if((c=a.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{Ft(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return wt(()=>{u()}),Xt(()=>{l("remove")}),Hu(()=>u()),xe(o,(c,f)=>{e.updateAll&&(r==null||r.registerLabelWidth(c,f))}),gs(k(()=>{var c,f;return(f=(c=a.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;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},[(c=t.default)==null?void 0:c.call(t)])}else return ee(pt,{ref:a},[(f=t.default)==null?void 0:f.call(t)])}}});const nz=["role","aria-labelledby"],iz=ce({name:"ElFormItem"}),az=ce({...iz,props:tz,setup(e,{expose:t}){const r=e,n=Yd(),i=Pe(Bs,void 0),a=Pe(mo,void 0),o=ia(void 0,{formItem:!1}),s=Ne("form-item"),l=My().value,u=B([]),c=B(""),f=tR(c,100),d=B(""),h=B();let v,p=!1;const g=k(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const W=po(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return W?{width:W}:{}}),m=k(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!r.label&&!r.labelWidth&&M)return{};const W=po(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return!r.label&&!n.label?{marginLeft:W}:{}}),y=k(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",N.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}]),_=k(()=>Br(r.inlineMessage)?r.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),b=k(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),S=k(()=>r.prop?He(r.prop)?r.prop:r.prop.join("."):""),w=k(()=>!!(r.label||n.label)),x=k(()=>r.for||u.value.length===1?u.value[0]:void 0),C=k(()=>!x.value&&w.value),M=!!a,E=k(()=>{const W=i==null?void 0:i.model;if(!(!W||!r.prop))return xf(W,r.prop).value}),A=k(()=>{const{required:W}=r,q=[];r.rules&&q.push(...$p(r.rules));const le=i==null?void 0:i.rules;if(le&&r.prop){const de=xf(le,r.prop).value;de&&q.push(...$p(de))}if(W!==void 0){const de=q.map((J,L)=>[J,L]).filter(([J])=>Object.keys(J).includes("required"));if(de.length>0)for(const[J,L]of de)J.required!==W&&(q[L]={...J,required:W});else q.push({required:W})}return q}),T=k(()=>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,...de})=>de),N=k(()=>A.value.some(W=>W.required)),H=k(()=>{var W;return f.value==="error"&&r.showMessage&&((W=i==null?void 0:i.showMessage)!=null?W:!0)}),$=k(()=>`${r.label||""}${(i==null?void 0:i.labelSuffix)||""}`),G=W=>{c.value=W},F=W=>{var q,le;const{errors:de,fields:J}=W;(!de||!J)&&console.error(W),G("error"),d.value=de?(le=(q=de==null?void 0:de[0])==null?void 0:q.message)!=null?le:`${r.prop} is required`:"",i==null||i.emit("validate",r.prop,!1,d.value)},R=()=>{G("success"),i==null||i.emit("validate",r.prop,!0,"")},j=async W=>{const q=S.value;return new Qu({[q]:W}).validate({[q]:E.value},{firstFields:!0}).then(()=>(R(),!0)).catch(de=>(F(de),Promise.reject(de)))},re=async(W,q)=>{if(p||!r.prop)return!1;const le=De(q);if(!T.value)return q==null||q(!1),!1;const de=D(W);return de.length===0?(q==null||q(!0),!0):(G("validating"),j(de).then(()=>(q==null||q(!0),!0)).catch(J=>{const{fields:L}=J;return q==null||q(!1,L),le?!1:Promise.reject(L)}))},oe=()=>{G(""),d.value="",p=!1},ye=async()=>{const W=i==null?void 0:i.model;if(!W||!r.prop)return;const q=xf(W,r.prop);p=!0,q.value=bb(v),await Ft(),oe(),p=!1},Ae=W=>{u.value.includes(W)||u.value.push(W)},V=W=>{u.value=u.value.filter(q=>q!==W)};xe(()=>r.error,W=>{d.value=W||"",G(W?"error":"")},{immediate:!0}),xe(()=>r.validateStatus,W=>G(W||""));const Q=fn({...$d(r),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:C,hasLabel:w,addInputId:Ae,removeInputId:V,resetField:ye,clearValidate:oe,validate:re});return At(mo,Q),wt(()=>{r.prop&&(i==null||i.addField(Q),v=bb(E.value))}),Xt(()=>{i==null||i.removeField(Q)}),t({size:o,validateMessage:d,validateState:c,validate:re,clearValidate:oe,resetField:ye}),(W,q)=>{var le;return Y(),me("div",{ref_key:"formItemRef",ref:h,class:ue(P(y)),role:P(C)?"group":void 0,"aria-labelledby":P(C)?P(l):void 0},[ee(P(rz),{"is-auto-width":P(g).width==="auto","update-all":((le=P(i))==null?void 0:le.labelWidth)==="auto"},{default:Z(()=>[P(w)?(Y(),_e(nn(P(x)?"label":"div"),{key:0,id:P(l),for:P(x),class:ue(P(s).e("label")),style:xt(P(g))},{default:Z(()=>[$e(W.$slots,"label",{label:P($)},()=>[Bt(Me(P($)),1)])]),_:3},8,["id","for","class","style"])):Fe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ae("div",{class:ue(P(s).e("content")),style:xt(P(m))},[$e(W.$slots,"default"),ee(NO,{name:`${P(s).namespace.value}-zoom-in-top`},{default:Z(()=>[P(H)?$e(W.$slots,"error",{key:0,error:d.value},()=>[ae("div",{class:ue(P(b))},Me(d.value),3)]):Fe("v-if",!0)]),_:3},8,["name"])],6)],10,nz)}}});var $M=Ze(az,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const HM=hr(wH,{FormItem:$M}),zM=fa($M),Qo=4,oz={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"}},sz=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),WM=Symbol("scrollbarContextKey"),lz=tt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),uz="Thumb",cz=ce({__name:"thumb",props:lz,setup(e){const t=e,r=Pe(WM),n=Ne("scrollbar");r||na(uz,"can not inject scrollbar context");const i=B(),a=B(),o=B({}),s=B(!1);let l=!1,u=!1,c=Nt?document.onselectstart:null;const f=k(()=>oz[t.vertical?"vertical":"horizontal"]),d=k(()=>sz({size:t.size,move:t.move,bar:f.value})),h=k(()=>i.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/a.value[f.value.offset]),v=w=>{var x;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(x=window.getSelection())==null||x.removeAllRanges(),g(w);const C=w.currentTarget;C&&(o.value[f.value.axis]=C[f.value.offset]-(w[f.value.client]-C.getBoundingClientRect()[f.value.direction]))},p=w=>{if(!a.value||!i.value||!r.wrapElement)return;const x=Math.abs(w.target.getBoundingClientRect()[f.value.direction]-w[f.value.client]),C=a.value[f.value.offset]/2,M=(x-C)*100*h.value/i.value[f.value.offset];r.wrapElement[f.value.scroll]=M*r.wrapElement[f.value.scrollSize]/100},g=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),c=document.onselectstart,document.onselectstart=()=>!1},m=w=>{if(!i.value||!a.value||l===!1)return;const x=o.value[f.value.axis];if(!x)return;const C=(i.value.getBoundingClientRect()[f.value.direction]-w[f.value.client])*-1,M=a.value[f.value.offset]-x,E=(C-M)*100*h.value/i.value[f.value.offset];r.wrapElement[f.value.scroll]=E*r.wrapElement[f.value.scrollSize]/100},y=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),S(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},b=()=>{u=!0,s.value=l};Xt(()=>{S(),document.removeEventListener("mouseup",y)});const S=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Sn(tn(r,"scrollbarElement"),"mousemove",_),Sn(tn(r,"scrollbarElement"),"mouseleave",b),(w,x)=>(Y(),_e(Ci,{name:P(n).b("fade"),persisted:""},{default:Z(()=>[nr(ae("div",{ref_key:"instance",ref:i,class:ue([P(n).e("bar"),P(n).is(P(f).key)]),onMousedown:p},[ae("div",{ref_key:"thumb",ref:a,class:ue(P(n).e("thumb")),style:xt(P(d)),onMousedown:v},null,38)],34),[[yi,w.always||s.value]])]),_:1},8,["name"]))}});var qb=Ze(cz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const fz=tt({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),dz=ce({__name:"bar",props:fz,setup(e,{expose:t}){const r=e,n=B(0),i=B(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-Qo,l=o.offsetWidth-Qo;i.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/l*r.ratioX}}}),(o,s)=>(Y(),me(pt,null,[ee(qb,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),ee(qb,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var hz=Ze(dz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const vz=tt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Le([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}}),pz={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every($t)},gz="ElScrollbar",mz=ce({name:gz}),yz=ce({...mz,props:vz,emits:pz,setup(e,{expose:t,emit:r}){const n=e,i=Ne("scrollbar");let a,o;const s=B(),l=B(),u=B(),c=B("0"),f=B("0"),d=B(),h=B(1),v=B(1),p=k(()=>{const x={};return n.height&&(x.height=po(n.height)),n.maxHeight&&(x.maxHeight=po(n.maxHeight)),[n.wrapStyle,x]}),g=k(()=>[n.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!n.native}]),m=k(()=>[i.e("view"),n.viewClass]),y=()=>{var x;l.value&&((x=d.value)==null||x.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(x,C){Xe(x)?l.value.scrollTo(x):$t(x)&&$t(C)&&l.value.scrollTo(x,C)}const b=x=>{$t(x)&&(l.value.scrollTop=x)},S=x=>{$t(x)&&(l.value.scrollLeft=x)},w=()=>{if(!l.value)return;const x=l.value.offsetHeight-Qo,C=l.value.offsetWidth-Qo,M=x**2/l.value.scrollHeight,E=C**2/l.value.scrollWidth,A=Math.max(M,n.minSize),T=Math.max(E,n.minSize);h.value=M/(x-M)/(A/(x-A)),v.value=E/(C-E)/(T/(C-T)),f.value=A+Qo<x?`${A}px`:"",c.value=T+Qo<C?`${T}px`:""};return xe(()=>n.noresize,x=>{x?(a==null||a(),o==null||o()):({stop:a}=gs(u,w),o=Sn("resize",w))},{immediate:!0}),xe(()=>[n.maxHeight,n.height],()=>{n.native||Ft(()=>{var x;w(),l.value&&((x=d.value)==null||x.handleScroll(l.value))})}),At(WM,fn({scrollbarElement:s,wrapElement:l})),wt(()=>{n.native||Ft(()=>{w()})}),Hu(()=>w()),t({wrapRef:l,update:w,scrollTo:_,setScrollTop:b,setScrollLeft:S,handleScroll:y}),(x,C)=>(Y(),me("div",{ref_key:"scrollbarRef",ref:s,class:ue(P(i).b())},[ae("div",{ref_key:"wrapRef",ref:l,class:ue(P(g)),style:xt(P(p)),onScroll:y},[(Y(),_e(nn(x.tag),{ref_key:"resizeRef",ref:u,class:ue(P(m)),style:xt(x.viewStyle)},{default:Z(()=>[$e(x.$slots,"default")]),_:3},8,["class","style"]))],38),x.native?Fe("v-if",!0):(Y(),_e(hz,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:x.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var _z=Ze(yz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const VM=hr(_z),Ly=Symbol("popper"),GM=Symbol("popperContent"),bz=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],UM=tt({role:{type:String,values:bz,default:"tooltip"}}),wz=ce({name:"ElPopper",inheritAttrs:!1}),Sz=ce({...wz,props:UM,setup(e,{expose:t}){const r=e,n=B(),i=B(),a=B(),o=B(),s=k(()=>r.role),l={triggerRef:n,popperInstanceRef:i,contentRef:a,referenceRef:o,role:s};return t(l),At(Ly,l),(u,c)=>$e(u.$slots,"default")}});var xz=Ze(Sz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const jM=tt({arrowOffset:{type:Number,default:5}}),Cz=ce({name:"ElPopperArrow",inheritAttrs:!1}),Tz=ce({...Cz,props:jM,setup(e,{expose:t}){const r=e,n=Ne("popper"),{arrowOffset:i,arrowRef:a,arrowStyle:o}=Pe(GM,void 0);return xe(()=>r.arrowOffset,s=>{i.value=s}),Xt(()=>{a.value=void 0}),t({arrowRef:a}),(s,l)=>(Y(),me("span",{ref_key:"arrowRef",ref:a,class:ue(P(n).e("arrow")),style:xt(P(o)),"data-popper-arrow":""},null,6))}});var Mz=Ze(Tz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Az="ElOnlyChild",Pz=ce({name:Az,setup(e,{slots:t,attrs:r}){var n;const i=Pe(IM),a=aH((n=i==null?void 0:i.setForwardRef)!=null?n:ur);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=YM(s);return l?nr(mi(l,r),[[a]]):null}}});function YM(e){if(!e)return null;const t=e;for(const r of t){if(Xe(r))switch(r.type){case Sr:continue;case Ns:case"svg":return Kb(r);case pt:return YM(r.children);default:return r}return Kb(r)}return null}function Kb(e){const t=Ne("only-child");return ee("span",{class:t.e("content")},[e])}const qM=tt({virtualRef:{type:Le(Object)},virtualTriggering:Boolean,onMouseenter:{type:Le(Function)},onMouseleave:{type:Le(Function)},onClick:{type:Le(Function)},onKeydown:{type:Le(Function)},onFocus:{type:Le(Function)},onBlur:{type:Le(Function)},onContextmenu:{type:Le(Function)},id:String,open:Boolean}),Ez=ce({name:"ElPopperTrigger",inheritAttrs:!1}),Lz=ce({...Ez,props:qM,setup(e,{expose:t}){const r=e,{role:n,triggerRef:i}=Pe(Ly,void 0);iH(i);const a=k(()=>s.value?r.id:void 0),o=k(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),s=k(()=>{if(n&&n.value!=="tooltip")return n.value}),l=k(()=>s.value?`${r.open}`:void 0);let u;return wt(()=>{xe(()=>r.virtualRef,c=>{c&&(i.value=Ui(c))},{immediate:!0}),xe(i,(c,f)=>{u==null||u(),u=void 0,ys(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=r[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),v))}),u=xe([a,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{gu(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),ys(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),Xt(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(c,f)=>c.virtualTriggering?Fe("v-if",!0):(Y(),_e(P(Pz),ca({key:0},c.$attrs,{"aria-controls":P(a),"aria-describedby":P(o),"aria-expanded":P(l),"aria-haspopup":P(s)}),{default:Z(()=>[$e(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Dz=Ze(Lz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Gh="focus-trap.focus-after-trapped",Uh="focus-trap.focus-after-released",Iz="focus-trap.focusout-prevented",Xb={cancelable:!0,bubbles:!1},Oz={cancelable:!0,bubbles:!1},Zb="focusAfterTrapped",Qb="focusAfterReleased",Rz=Symbol("elFocusTrap"),Dy=B(),nh=B(0),Iy=B(0);let bc=0;const KM=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},Jb=(e,t)=>{for(const r of e)if(!kz(r,t))return r},kz=(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},Nz=e=>{const t=KM(e),r=Jb(t,e),n=Jb(t.reverse(),e);return[r,n]},Fz=e=>e instanceof HTMLInputElement&&"select"in e,$i=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),Iy.value=window.performance.now(),e!==r&&Fz(e)&&t&&e.select()}};function e1(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const Bz=()=>{let e=[];return{push:n=>{const i=e[0];i&&n!==i&&i.pause(),e=e1(e,n),e.unshift(n)},remove:n=>{var i,a;e=e1(e,n),(a=(i=e[0])==null?void 0:i.resume)==null||a.call(i)}}},$z=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if($i(n,t),document.activeElement!==r)return},t1=Bz(),Hz=()=>nh.value>Iy.value,wc=()=>{Dy.value="pointer",nh.value=window.performance.now()},r1=()=>{Dy.value="keyboard",nh.value=window.performance.now()},zz=()=>(wt(()=>{bc===0&&(document.addEventListener("mousedown",wc),document.addEventListener("touchstart",wc),document.addEventListener("keydown",r1)),bc++}),Xt(()=>{bc--,bc<=0&&(document.removeEventListener("mousedown",wc),document.removeEventListener("touchstart",wc),document.removeEventListener("keydown",r1))}),{focusReason:Dy,lastUserFocusTimestamp:nh,lastAutomatedFocusTimestamp:Iy}),Sc=e=>new CustomEvent(Iz,{...Oz,detail:e}),Wz=ce({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Zb,Qb,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=B();let n,i;const{focusReason:a}=zz();eH(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:S}=e,w=p===Ot.tab&&!g&&!m&&!y,x=document.activeElement;if(w&&x){const C=_,[M,E]=Nz(C);if(M&&E){if(!b&&x===E){const T=Sc({focusReason:a.value});t("focusout-prevented",T),T.defaultPrevented||(v.preventDefault(),S&&$i(M,!0))}else if(b&&[M,C].includes(x)){const T=Sc({focusReason:a.value});t("focusout-prevented",T),T.defaultPrevented||(v.preventDefault(),S&&$i(E,!0))}}else if(x===C){const T=Sc({focusReason:a.value});t("focusout-prevented",T),T.defaultPrevented||v.preventDefault()}}};At(Rz,{focusTrapRef:r,onKeydown:s}),xe(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),xe([r],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=v=>{t(Zb,v)},u=v=>t(Qb,v),c=v=>{const p=P(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:$i(i,!0))},f=v=>{const p=P(r);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!gu(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=Sc({focusReason:a.value});t("focusout-prevented",m),m.defaultPrevented||$i(i,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await Ft();const v=P(r);if(v){t1.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const m=new Event(Gh,Xb);v.addEventListener(Gh,l),v.dispatchEvent(m),m.defaultPrevented||Ft(()=>{let y=e.focusStartEl;He(y)||($i(y),document.activeElement!==y&&(y="first")),y==="first"&&$z(KM(v),!0),(document.activeElement===p||y==="container")&&$i(v)})}}}function h(){const v=P(r);if(v){v.removeEventListener(Gh,l);const p=new CustomEvent(Uh,{...Xb,detail:{focusReason:a.value}});v.addEventListener(Uh,u),v.dispatchEvent(p),!p.defaultPrevented&&(a.value=="keyboard"||!Hz()||v.contains(document.activeElement))&&$i(n??document.body),v.removeEventListener(Uh,l),t1.remove(o)}}return wt(()=>{e.trapped&&d(),xe(()=>e.trapped,v=>{v?d():h()})}),Xt(()=>{e.trapped&&h()}),{onKeydown:s}}});function Vz(e,t,r,n,i,a){return $e(e.$slots,"default",{handleKeydown:e.onKeydown})}var Gz=Ze(Wz,[["render",Vz],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Uz=["fixed","absolute"],jz=tt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Le(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:yy,default:"bottom"},popperOptions:{type:Le(Object),default:()=>({})},strategy:{type:String,values:Uz,default:"absolute"}}),XM=tt({...jz,id:String,style:{type:Le([String,Array,Object])},className:{type:Le([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:Le([String,Array,Object])},popperStyle:{type:Le([String,Array,Object])},referenceEl:{type:Le(Object)},triggerTargetEl:{type:Le(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Yz={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},qz=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:i}=e,a={placement:r,strategy:n,...i,modifiers:[...Xz(e),...t]};return Zz(a,i==null?void 0:i.modifiers),a},Kz=e=>{if(Nt)return Ui(e)};function Xz(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 Zz(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Qz=0,Jz=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:i}=Pe(Ly,void 0),a=B(),o=B(),s=k(()=>({name:"eventListeners",enabled:!!e.visible})),l=k(()=>{var m;const y=P(a),_=(m=P(o))!=null?m:Qz;return{name:"arrow",enabled:!L5(y),options:{element:y,padding:_}}}),u=k(()=>({onFirstUpdate:()=>{v()},...qz(e,[P(l),P(s)])})),c=k(()=>Kz(e.referenceEl)||P(n)),{attributes:f,state:d,styles:h,update:v,forceUpdate:p,instanceRef:g}=Z4(c,r,u);return xe(g,m=>t.value=m),wt(()=>{xe(()=>{var m;return(m=P(c))==null?void 0:m.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:a,contentRef:r,instanceRef:g,state:d,styles:h,role:i,forceUpdate:p,update:v}},e6=(e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:i}=Ay(),a=Ne("popper"),o=k(()=>P(t).popper),s=B(e.zIndex||i()),l=k(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),u=k(()=>[{zIndex:P(s)},e.popperStyle||{},P(r).popper]),c=k(()=>n.value==="dialog"?"false":void 0),f=k(()=>P(r).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=e.zIndex||i()}}},t6=(e,t)=>{const r=B(!1),n=B();return{focusStartRef:n,trapped:r,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(n.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!r.value&&(u.target&&(n.value=u.target),r.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}},r6=ce({name:"ElPopperContent"}),n6=ce({...r6,props:XM,emits:Yz,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:i,trapped:a,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=t6(n,r),{attributes:f,arrowRef:d,contentRef:h,styles:v,instanceRef:p,role:g,update:m}=Jz(n),{ariaModal:y,arrowStyle:_,contentAttrs:b,contentClass:S,contentStyle:w,updateZIndex:x}=e6(n,{styles:v,attributes:f,role:g}),C=Pe(mo,void 0),M=B();At(GM,{arrowStyle:_,arrowRef:d,arrowOffset:M}),C&&(C.addInputId||C.removeInputId)&&At(mo,{...C,addInputId:ur,removeInputId:ur});let E;const A=(D=!0)=>{m(),D&&x()},T=()=>{A(!1),n.visible&&n.focusOnShow?a.value=!0:n.visible===!1&&(a.value=!1)};return wt(()=>{xe(()=>n.triggerTargetEl,(D,N)=>{E==null||E(),E=void 0;const H=P(D||h.value),$=P(N||h.value);ys(H)&&(E=xe([g,()=>n.ariaLabel,y,()=>n.id],G=>{["role","aria-label","aria-modal","id"].forEach((F,R)=>{gu(G[R])?H.removeAttribute(F):H.setAttribute(F,G[R])})},{immediate:!0})),$!==H&&ys($)&&["role","aria-label","aria-modal","id"].forEach(G=>{$.removeAttribute(G)})},{immediate:!0}),xe(()=>n.visible,T,{immediate:!0})}),Xt(()=>{E==null||E(),E=void 0}),t({popperContentRef:h,popperInstanceRef:p,updatePopper:A,contentStyle:w}),(D,N)=>(Y(),me("div",ca({ref_key:"contentRef",ref:h},P(b),{style:P(w),class:P(S),tabindex:"-1",onMouseenter:N[0]||(N[0]=H=>D.$emit("mouseenter",H)),onMouseleave:N[1]||(N[1]=H=>D.$emit("mouseleave",H))}),[ee(P(Gz),{trapped:P(a),"trap-on-focus-in":!0,"focus-trap-el":P(h),"focus-start-el":P(i),onFocusAfterTrapped:P(s),onFocusAfterReleased:P(o),onFocusin:P(l),onFocusoutPrevented:P(u),onReleaseRequested:P(c)},{default:Z(()=>[$e(D.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var i6=Ze(n6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const a6=hr(xz),Oy=Symbol("elTooltip"),qr=tt({...nH,...XM,appendTo:{type:Le([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Le(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),bu=tt({...qM,disabled:Boolean,trigger:{type:Le([String,Array]),default:"hover"},triggerKeys:{type:Le(Array),default:()=>[Ot.enter,Ot.space]}}),{useModelToggleProps:o6,useModelToggleEmits:s6,useModelToggle:l6}=K3("visible"),u6=tt({...UM,...o6,...qr,...bu,...jM,showArrow:{type:Boolean,default:!0}}),c6=[...s6,"before-show","before-hide","show","hide","open","close"],f6=(e,t)=>be(e)?e.includes(t):e===t,Do=(e,t,r)=>n=>{f6(P(e),t)&&r(n)},d6=ce({name:"ElTooltipTrigger"}),h6=ce({...d6,props:bu,setup(e,{expose:t}){const r=e,n=Ne("tooltip"),{controlled:i,id:a,open:o,onOpen:s,onClose:l,onToggle:u}=Pe(Oy,void 0),c=B(null),f=()=>{if(P(i)||r.disabled)return!0},d=tn(r,"trigger"),h=fi(f,Do(d,"hover",s)),v=fi(f,Do(d,"hover",l)),p=fi(f,Do(d,"click",b=>{b.button===0&&u(b)})),g=fi(f,Do(d,"focus",s)),m=fi(f,Do(d,"focus",l)),y=fi(f,Do(d,"contextmenu",b=>{b.preventDefault(),u(b)})),_=fi(f,b=>{const{code:S}=b;r.triggerKeys.includes(S)&&(b.preventDefault(),u(b))});return t({triggerRef:c}),(b,S)=>(Y(),_e(P(Dz),{id:P(a),"virtual-ref":b.virtualRef,open:P(o),"virtual-triggering":b.virtualTriggering,class:ue(P(n).e("trigger")),onBlur:P(m),onClick:P(p),onContextmenu:P(y),onFocus:P(g),onMouseenter:P(h),onMouseleave:P(v),onKeydown:P(_)},{default:Z(()=>[$e(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var v6=Ze(h6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const p6=ce({name:"ElTooltipContent",inheritAttrs:!1}),g6=ce({...p6,props:qr,setup(e,{expose:t}){const r=e,{selector:n}=LM(),i=Ne("tooltip"),a=B(null),o=B(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:p,onBeforeHide:g}=Pe(Oy,void 0),m=k(()=>r.transition||`${i.namespace.value}-fade-in-linear`),y=k(()=>r.persistent);Xt(()=>{o.value=!0});const _=k(()=>P(y)?!0:P(u)),b=k(()=>r.disabled?!1:P(u)),S=k(()=>r.appendTo||n.value),w=k(()=>{var G;return(G=r.style)!=null?G:{}}),x=k(()=>!P(u)),C=()=>{v()},M=()=>{if(P(s))return!0},E=fi(M,()=>{r.enterable&&P(c)==="hover"&&d()}),A=fi(M,()=>{P(c)==="hover"&&f()}),T=()=>{var G,F;(F=(G=a.value)==null?void 0:G.updatePopper)==null||F.call(G),p==null||p()},D=()=>{g==null||g()},N=()=>{h(),$=pR(k(()=>{var G;return(G=a.value)==null?void 0:G.popperContentRef}),()=>{if(P(s))return;P(c)!=="hover"&&f()})},H=()=>{r.virtualTriggering||f()};let $;return xe(()=>P(u),G=>{G||$==null||$()},{flush:"post"}),xe(()=>r.content,()=>{var G,F;(F=(G=a.value)==null?void 0:G.updatePopper)==null||F.call(G)}),t({contentRef:a}),(G,F)=>(Y(),_e(eO,{disabled:!G.teleported,to:P(S)},[ee(Ci,{name:P(m),onAfterLeave:C,onBeforeEnter:T,onAfterEnter:N,onBeforeLeave:D},{default:Z(()=>[P(_)?nr((Y(),_e(P(i6),ca({key:0,id:P(l),ref_key:"contentRef",ref:a},G.$attrs,{"aria-label":G.ariaLabel,"aria-hidden":P(x),"boundaries-padding":G.boundariesPadding,"fallback-placements":G.fallbackPlacements,"gpu-acceleration":G.gpuAcceleration,offset:G.offset,placement:G.placement,"popper-options":G.popperOptions,strategy:G.strategy,effect:G.effect,enterable:G.enterable,pure:G.pure,"popper-class":G.popperClass,"popper-style":[G.popperStyle,P(w)],"reference-el":G.referenceEl,"trigger-target-el":G.triggerTargetEl,visible:P(b),"z-index":G.zIndex,onMouseenter:P(E),onMouseleave:P(A),onBlur:H,onClose:P(f)}),{default:Z(()=>[o.value?Fe("v-if",!0):$e(G.$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"])),[[yi,P(b)]]):Fe("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var m6=Ze(g6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const y6=["innerHTML"],_6={key:1},b6=ce({name:"ElTooltip"}),w6=ce({...b6,props:u6,emits:c6,setup(e,{expose:t,emit:r}){const n=e;rH();const i=My(),a=B(),o=B(),s=()=>{var m;const y=P(a);y&&((m=y.popperInstanceRef)==null||m.update())},l=B(!1),u=B(),{show:c,hide:f,hasUpdateHandler:d}=l6({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=DM({showAfter:tn(n,"showAfter"),hideAfter:tn(n,"hideAfter"),autoClose:tn(n,"autoClose"),open:c,close:f}),p=k(()=>Br(n.visible)&&!d.value);At(Oy,{controlled:p,id:i,open:$u(l),trigger:tn(n,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{P(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}),xe(()=>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 qC(()=>l.value&&f()),t({popperRef:a,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,y)=>(Y(),_e(P(a6),{ref_key:"popperRef",ref:a,role:m.role},{default:Z(()=>[ee(v6,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:Z(()=>[m.$slots.default?$e(m.$slots,"default",{key:0}):Fe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ee(m6,{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(()=>[$e(m.$slots,"content",{},()=>[m.rawContent?(Y(),me("span",{key:0,innerHTML:m.content},null,8,y6)):(Y(),me("span",_6,Me(m.content),1))]),m.showArrow?(Y(),_e(P(Mz),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):Fe("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 S6=Ze(w6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Ju=hr(S6),x6=tt({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"}}),C6=["textContent"],T6=ce({name:"ElBadge"}),M6=ce({...T6,props:x6,setup(e,{expose:t}){const r=e,n=Ne("badge"),i=k(()=>r.isDot?"":$t(r.value)&&$t(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:i}),(a,o)=>(Y(),me("div",{class:ue(P(n).b())},[$e(a.$slots,"default"),ee(Ci,{name:`${P(n).namespace.value}-zoom-in-center`,persisted:""},{default:Z(()=>[nr(ae("sup",{class:ue([P(n).e("content"),P(n).em("content",a.type),P(n).is("fixed",!!a.$slots.default),P(n).is("dot",a.isDot)]),textContent:Me(P(i))},null,10,C6),[[yi,!a.hidden&&(P(i)||a.isDot)]])]),_:1},8,["name"])],2))}});var A6=Ze(M6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const P6=hr(A6),ZM=Symbol("buttonGroupContextKey"),E6=(e,t)=>{vy({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},k(()=>e.type==="text"));const r=Pe(ZM,void 0),n=Py("button"),{form:i}=Zu(),a=ia(k(()=>r==null?void 0:r.size)),o=rh(),s=B(),l=Yd(),u=k(()=>e.type||(r==null?void 0:r.type)||""),c=k(()=>{var h,v,p;return(p=(v=e.autoInsertSpace)!=null?v:(h=n.value)==null?void 0:h.autoInsertSpace)!=null?p:!1}),f=k(()=>{var h;const v=(h=l.default)==null?void 0:h.call(l);if(c.value&&(v==null?void 0:v.length)===1){const p=v[0];if((p==null?void 0:p.type)===Ns){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:f,handleClick:h=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",h)}}},L6=["default","primary","success","warning","info","danger","text",""],D6=["button","submit","reset"],ig=tt({size:Xu,disabled:Boolean,type:{type:String,values:L6,default:""},icon:{type:Wn},nativeType:{type:String,values:D6,default:"button"},loading:Boolean,loadingIcon:{type:Wn,default:()=>hy},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),I6={click:e=>e instanceof MouseEvent};function Kt(e,t){O6(e)&&(e="100%");var r=R6(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 xc(e){return Math.min(1,Math.max(0,e))}function O6(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function R6(e){return typeof e=="string"&&e.indexOf("%")!==-1}function QM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Cc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Qa(e){return e.length===1?"0"+e:String(e)}function k6(e,t,r){return{r:Kt(e,255)*255,g:Kt(t,255)*255,b:Kt(r,255)*255}}function n1(e,t,r){e=Kt(e,255),t=Kt(t,255),r=Kt(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+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s:o,l:s}}function jh(e,t,r){return r<0&&(r+=1),r>1&&(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 N6(e,t,r){var n,i,a;if(e=Kt(e,360),t=Kt(t,100),r=Kt(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=jh(s,o,e+1/3),i=jh(s,o,e),a=jh(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function i1(e,t,r){e=Kt(e,255),t=Kt(t,255),r=Kt(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<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:l,v:o}}function F6(e,t,r){e=Kt(e,360)*6,t=Kt(t,100),r=Kt(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),o=r*(1-i*t),s=r*(1-(1-i)*t),l=n%6,u=[r,o,a,a,s,r][l],c=[s,r,r,o,a,a][l],f=[a,a,s,r,r,o][l];return{r:u*255,g:c*255,b:f*255}}function a1(e,t,r,n){var i=[Qa(Math.round(e).toString(16)),Qa(Math.round(t).toString(16)),Qa(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function B6(e,t,r,n,i){var a=[Qa(Math.round(e).toString(16)),Qa(Math.round(t).toString(16)),Qa(Math.round(r).toString(16)),Qa($6(n))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function $6(e){return Math.round(parseFloat(e)*255).toString(16)}function o1(e){return Ir(e)/255}function Ir(e){return parseInt(e,16)}function H6(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ag={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 z6(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=G6(e)),typeof e=="object"&&(ii(e.r)&&ii(e.g)&&ii(e.b)?(t=k6(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ii(e.h)&&ii(e.s)&&ii(e.v)?(n=Cc(e.s),i=Cc(e.v),t=F6(e.h,n,i),o=!0,s="hsv"):ii(e.h)&&ii(e.s)&&ii(e.l)&&(n=Cc(e.s),a=Cc(e.l),t=N6(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=QM(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 W6="[-\\+]?\\d+%?",V6="[-\\+]?\\d*\\.\\d+%?",ji="(?:".concat(V6,")|(?:").concat(W6,")"),Yh="[\\s|\\(]+(".concat(ji,")[,|\\s]+(").concat(ji,")[,|\\s]+(").concat(ji,")\\s*\\)?"),qh="[\\s|\\(]+(".concat(ji,")[,|\\s]+(").concat(ji,")[,|\\s]+(").concat(ji,")[,|\\s]+(").concat(ji,")\\s*\\)?"),pn={CSS_UNIT:new RegExp(ji),rgb:new RegExp("rgb"+Yh),rgba:new RegExp("rgba"+qh),hsl:new RegExp("hsl"+Yh),hsla:new RegExp("hsla"+qh),hsv:new RegExp("hsv"+Yh),hsva:new RegExp("hsva"+qh),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 G6(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ag[e])e=ag[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=pn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=pn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=pn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=pn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=pn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=pn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=pn.hex8.exec(e),r?{r:Ir(r[1]),g:Ir(r[2]),b:Ir(r[3]),a:o1(r[4]),format:t?"name":"hex8"}:(r=pn.hex6.exec(e),r?{r:Ir(r[1]),g:Ir(r[2]),b:Ir(r[3]),format:t?"name":"hex"}:(r=pn.hex4.exec(e),r?{r:Ir(r[1]+r[1]),g:Ir(r[2]+r[2]),b:Ir(r[3]+r[3]),a:o1(r[4]+r[4]),format:t?"name":"hex8"}:(r=pn.hex3.exec(e),r?{r:Ir(r[1]+r[1]),g:Ir(r[2]+r[2]),b:Ir(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function ii(e){return Boolean(pn.CSS_UNIT.exec(String(e)))}var JM=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=H6(t)),this.originalInput=t;var i=z6(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=QM(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=i1(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=i1(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=n1(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=n1(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),a1(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),B6(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(Kt(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(Kt(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="#"+a1(this.r,this.g,this.b,!1),r=0,n=Object.entries(ag);r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(t===o)return a}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t??this.format;var n=!1,i=this.a<1&&this.a>=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=xc(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=xc(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=xc(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=xc(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<t;o++)i.push(new e({h:(n+o*a)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Di(e,t=20){return e.mix("#141414",t).toString()}function U6(e){const t=rh(),r=Ne("button");return k(()=>{let n={};const i=e.color;if(i){const a=new JM(i),o=e.dark?a.tint(20).toString():Di(a,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Di(a,90):a.tint(90).toString(),"text-color":i,"border-color":e.dark?Di(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?Di(a,90):a.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Di(a,50):a.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Di(a,80):a.tint(80).toString());else{const s=e.dark?Di(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?Di(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 j6=["aria-disabled","disabled","autofocus","type"],Y6=ce({name:"ElButton"}),q6=ce({...Y6,props:ig,emits:I6,setup(e,{expose:t,emit:r}){const n=e,i=U6(n),a=Ne("button"),{_ref:o,_size:s,_type:l,_disabled:u,shouldAddSpace:c,handleClick:f}=E6(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:c}),(d,h)=>(Y(),me("button",{ref_key:"_ref",ref:o,class:ue([P(a).b(),P(a).m(P(l)),P(a).m(P(s)),P(a).is("disabled",P(u)),P(a).is("loading",d.loading),P(a).is("plain",d.plain),P(a).is("round",d.round),P(a).is("circle",d.circle),P(a).is("text",d.text),P(a).is("link",d.link),P(a).is("has-bg",d.bg)]),"aria-disabled":P(u)||d.loading,disabled:P(u)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:xt(P(i)),onClick:h[0]||(h[0]=(...v)=>P(f)&&P(f)(...v))},[d.loading?(Y(),me(pt,{key:0},[d.$slots.loading?$e(d.$slots,"loading",{key:0}):(Y(),_e(P(lr),{key:1,class:ue(P(a).is("loading"))},{default:Z(()=>[(Y(),_e(nn(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(Y(),_e(P(lr),{key:1},{default:Z(()=>[d.icon?(Y(),_e(nn(d.icon),{key:0})):$e(d.$slots,"icon",{key:1})]),_:3})):Fe("v-if",!0),d.$slots.default?(Y(),me("span",{key:2,class:ue({[P(a).em("text","expand")]:P(c)})},[$e(d.$slots,"default")],2)):Fe("v-if",!0)],14,j6))}});var K6=Ze(q6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const X6={size:ig.size,type:ig.type},Z6=ce({name:"ElButtonGroup"}),Q6=ce({...Z6,props:X6,setup(e){const t=e;At(ZM,fn({size:tn(t,"size"),type:tn(t,"type")}));const r=Ne("button");return(n,i)=>(Y(),me("div",{class:ue(`${P(r).b("group")}`)},[$e(n.$slots,"default")],2))}});var eA=Ze(Q6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const J6=hr(K6,{ButtonGroup:eA});fa(eA);var e8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const Hi=new Map;let s1;Nt&&(document.addEventListener("mousedown",e=>s1=e),document.addEventListener("mouseup",e=>{for(const t of Hi.values())for(const{documentHandler:r}of t)r(e,s1)}));function l1(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:ys(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,c=e.contains(o)||e.contains(s),f=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||c||f||d||h||t.value(n,i)}}const t8={beforeMount(e,t){Hi.has(e)||Hi.set(e,[]),Hi.get(e).push({documentHandler:l1(e,t),bindingFn:t.value})},updated(e,t){Hi.has(e)||Hi.set(e,[]);const r=Hi.get(e),n=r.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:l1(e,t),bindingFn:t.value};n>=0?r.splice(n,1,i):r.push(i)},unmounted(e){Hi.delete(e)}};var u1=!1,qa,og,sg,Af,Pf,tA,Ef,lg,ug,cg,rA,fg,dg,nA,iA;function vr(){if(!u1){u1=!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(fg=/\b(iPhone|iP[ao]d)/.exec(e),dg=/\b(iP[ao]d)/.exec(e),cg=/Android/i.exec(e),nA=/FBAN\/\w+;/i.exec(e),iA=/Mobile/i.exec(e),rA=!!/Win64/.exec(e),t){qa=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,qa&&document&&document.documentMode&&(qa=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);tA=n?parseFloat(n[1])+4:qa,og=t[2]?parseFloat(t[2]):NaN,sg=t[3]?parseFloat(t[3]):NaN,Af=t[4]?parseFloat(t[4]):NaN,Af?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Pf=t&&t[1]?parseFloat(t[1]):NaN):Pf=NaN}else qa=og=sg=Pf=Af=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ef=i?parseFloat(i[1].replace("_",".")):!0}else Ef=!1;lg=!!r[2],ug=!!r[3]}else Ef=lg=ug=!1}}var hg={ie:function(){return vr()||qa},ieCompatibilityMode:function(){return vr()||tA>qa},ie64:function(){return hg.ie()&&rA},firefox:function(){return vr()||og},opera:function(){return vr()||sg},webkit:function(){return vr()||Af},safari:function(){return hg.webkit()},chrome:function(){return vr()||Pf},windows:function(){return vr()||lg},osx:function(){return vr()||Ef},linux:function(){return vr()||ug},iphone:function(){return vr()||fg},mobile:function(){return vr()||fg||dg||cg||iA},nativeApp:function(){return vr()||nA},android:function(){return vr()||cg},ipad:function(){return vr()||dg}},r8=hg,Tc=!!(typeof window<"u"&&window.document&&window.document.createElement),n8={canUseDOM:Tc,canUseWorkers:typeof Worker<"u",canUseEventListeners:Tc&&!!(window.addEventListener||window.attachEvent),canUseViewport:Tc&&!!window.screen,isInWorker:!Tc},aA=n8,oA;aA.canUseDOM&&(oA=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function i8(e,t){if(!aA.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&&oA&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var a8=i8,c1=10,f1=40,d1=800;function sA(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*c1,i=r*c1,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=f1,i*=f1):(n*=d1,i*=d1)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}sA.getEventType=function(){return r8.firefox()?"DOMMouseScroll":a8("wheel")?"wheel":"mousewheel"};var o8=sA;/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
@@ -22,18 +22,18 @@ var fD=Object.defineProperty;var dD=(e,t,r)=>t in e?fD(e,t,{enumerable:!0,config
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
-*/const s8=function(e,t){if(e&&e.addEventListener){const r=function(n){const i=o8(n);t&&Reflect.apply(t,this,[n,i])};e.addEventListener("wheel",r,{passive:!0})}},l8={beforeMount(e,t){s8(e,t.value)}},lA={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:Xu,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},uA={[go]:e=>He(e)||$t(e)||Br(e),change:e=>He(e)||$t(e)||Br(e)},$s=Symbol("checkboxGroupContextKey"),u8=({model:e,isChecked:t})=>{const r=Ee($s,void 0),n=k(()=>{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!ad(s)&&e.value.length>=s&&!t.value||!ad(l)&&e.value.length<=l&&t.value});return{isDisabled:rh(k(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},c8=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:i,isLabeledByFormItem:a})=>{const o=Ee($s,void 0),{formItem:s}=Zu(),{emit:l}=ct();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 c(v,p){l("change",u(v),p)}function f(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 Ft(),c(t.value,v)))}const h=k(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Se(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},f8=e=>{const t=B(!1),{emit:r}=ct(),n=Ee($s,void 0),i=k(()=>ad(n)===!1),a=B(!1);return{model:k({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&&be(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(go,s),t.value=s)}}),isGroup:i,isLimitExceeded:a}},d8=(e,t,{model:r})=>{const n=Ee($s,void 0),i=B(!1),a=k(()=>{const u=r.value;return Br(u)?u:be(u)?Xe(e.label)?u.map(Ke).some(c=>P5(c,e.label)):u.map(Ke).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=ia(k(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=ia(k(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=k(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:a,isFocused:i,checkboxSize:s,hasOwnLabel:l}},h8=(e,{model:t})=>{function r(){be(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},cA=(e,t)=>{const{formItem:r}=Zu(),{model:n,isGroup:i,isLimitExceeded:a}=f8(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=d8(e,t,{model:n}),{isDisabled:f}=u8({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=Py(e,{formItemContext:r,disableIdGeneration:c,disableIdManagement:i}),{handleChange:v,onClickRoot:p}=c8(e,{model:n,isLimitExceeded:a,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return h8(e,{model:n}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:n,handleChange:v,onClickRoot:p}},v8=["tabindex","role","aria-checked"],p8=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],g8=["id","aria-hidden","disabled","value","name","tabindex"],m8=ce({name:"ElCheckbox"}),y8=ce({...m8,props:lA,emits:uA,setup(e){const t=e,r=Yd(),{inputId:n,isLabeledByFormItem:i,isChecked:a,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=cA(t,r),h=Ne("checkbox"),v=k(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",a.value)]),p=k(()=>[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)=>(Y(),_e(nn(!E(u)&&E(i)?"span":"label"),{class:ue(E(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:E(d)},{default:Z(()=>[ae("span",{class:ue(E(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?nr((Y(),me("input",{key:0,id:E(n),"onUpdate:modelValue":m[0]||(m[0]=y=>Ct(c)?c.value=y:null),class:ue(E(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:E(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...y)=>E(f)&&E(f)(...y)),onFocus:m[2]||(m[2]=y=>s.value=!0),onBlur:m[3]||(m[3]=y=>s.value=!1)},null,42,p8)),[[Qf,E(c)]]):nr((Y(),me("input",{key:1,id:E(n),"onUpdate:modelValue":m[4]||(m[4]=y=>Ct(c)?c.value=y:null),class:ue(E(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:E(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[5]||(m[5]=(...y)=>E(f)&&E(f)(...y)),onFocus:m[6]||(m[6]=y=>s.value=!0),onBlur:m[7]||(m[7]=y=>s.value=!1)},null,42,g8)),[[Qf,E(c)]]),ae("span",{class:ue(E(h).e("inner"))},null,2)],10,v8),E(u)?(Y(),me("span",{key:0,class:ue(E(h).e("label"))},[$e(g.$slots,"default"),g.$slots.default?Fe("v-if",!0):(Y(),me(pt,{key:0},[Bt(Me(g.label),1)],64))],2)):Fe("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var _8=Ze(y8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const b8=["name","tabindex","disabled","true-value","false-value"],w8=["name","tabindex","disabled","value"],x8=ce({name:"ElCheckboxButton"}),S8=ce({...x8,props:lA,emits:uA,setup(e){const t=e,r=Yd(),{isFocused:n,isChecked:i,isDisabled:a,checkboxButtonSize:o,model:s,handleChange:l}=cA(t,r),u=Ee($s,void 0),c=Ne("checkbox"),f=k(()=>{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=k(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",a.value),c.is("checked",i.value),c.is("focus",n.value)]);return(h,v)=>(Y(),me("label",{class:ue(E(d))},[h.trueLabel||h.falseLabel?nr((Y(),me("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>Ct(s)?s.value=p:null),class:ue(E(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:E(a),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>E(l)&&E(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1)},null,42,b8)),[[Qf,E(s)]]):nr((Y(),me("input",{key:1,"onUpdate:modelValue":v[4]||(v[4]=p=>Ct(s)?s.value=p:null),class:ue(E(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:E(a),value:h.label,onChange:v[5]||(v[5]=(...p)=>E(l)&&E(l)(...p)),onFocus:v[6]||(v[6]=p=>n.value=!0),onBlur:v[7]||(v[7]=p=>n.value=!1)},null,42,w8)),[[Qf,E(s)]]),h.$slots.default||h.label?(Y(),me("span",{key:2,class:ue(E(c).be("button","inner")),style:St(E(i)?E(f):void 0)},[$e(h.$slots,"default",{},()=>[Bt(Me(h.label),1)])],6)):Fe("v-if",!0)],2))}});var fA=Ze(S8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const C8=tt({modelValue:{type:Le(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Xu,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),T8={[go]:e=>be(e),change:e=>be(e)},M8=ce({name:"ElCheckboxGroup"}),A8=ce({...M8,props:C8,emits:T8,setup(e,{emit:t}){const r=e,n=Ne("checkbox"),{formItem:i}=Zu(),{inputId:a,isLabeledByFormItem:o}=Py(r,{formItemContext:i}),s=async u=>{t(go,u),await Ft(),t("change",u)},l=k({get(){return r.modelValue},set(u){s(u)}});return At($s,{...k5($d(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Se(()=>r.modelValue,()=>{r.validateEvent&&(i==null||i.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return Y(),_e(nn(u.tag),{id:E(a),class:ue(E(n).b("group")),role:"group","aria-label":E(o)?void 0:u.label||"checkbox-group","aria-labelledby":E(o)?(f=E(i))==null?void 0:f.labelId:void 0},{default:Z(()=>[$e(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var dA=Ze(A8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Cs=hr(_8,{CheckboxButton:fA,CheckboxGroup:dA});fa(fA);fa(dA);const E8=tt({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Yu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),P8={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},L8=ce({name:"ElTag"}),D8=ce({...L8,props:E8,emits:P8,setup(e,{emit:t}){const r=e,n=ia(),i=Ne("tag"),a=k(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=r;return[i.b(),i.is("closable",f),i.m(l),i.m(n.value),i.m(c),i.is("hit",u),i.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(Y(),me("span",{key:0,class:ue(E(a)),style:St({backgroundColor:l.color}),onClick:s},[ae("span",{class:ue(E(i).e("content"))},[$e(l.$slots,"default")],2),l.closable?(Y(),_e(E(lr),{key:0,class:ue(E(i).e("close")),onClick:Jf(o,["stop"])},{default:Z(()=>[ee(E(Yp))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],6)):(Y(),_e(Ci,{key:1,name:`${E(i).namespace.value}-zoom-in-center`,appear:""},{default:Z(()=>[ae("span",{class:ue(E(a)),style:St({backgroundColor:l.color}),onClick:s},[ae("span",{class:ue(E(i).e("content"))},[$e(l.$slots,"default")],2),l.closable?(Y(),_e(E(lr),{key:0,class:ue(E(i).e("close")),onClick:Jf(o,["stop"])},{default:Z(()=>[ee(E(Yp))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],6)]),_:3},8,["name"]))}});var I8=Ze(D8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const O8=hr(I8),hA=Symbol("rowContextKey"),R8=["start","center","end","space-around","space-between","space-evenly"],k8=["top","middle","bottom"],N8=tt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:R8,default:"start"},align:{type:String,values:k8,default:"top"}}),F8=ce({name:"ElRow"}),B8=ce({...F8,props:N8,setup(e){const t=e,r=Ne("row"),n=k(()=>t.gutter);At(hA,{gutter:n});const i=k(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),a=k(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,t.align!=="top")]);return(o,s)=>(Y(),_e(nn(o.tag),{class:ue(E(a)),style:St(E(i))},{default:Z(()=>[$e(o.$slots,"default")]),_:3},8,["class","style"]))}});var $8=Ze(B8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const vA=hr($8),H8=tt({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:Le([Number,Object]),default:()=>Ya({})},sm:{type:Le([Number,Object]),default:()=>Ya({})},md:{type:Le([Number,Object]),default:()=>Ya({})},lg:{type:Le([Number,Object]),default:()=>Ya({})},xl:{type:Le([Number,Object]),default:()=>Ya({})}}),z8=ce({name:"ElCol"}),W8=ce({...z8,props:H8,setup(e){const t=e,{gutter:r}=Ee(hA,{gutter:k(()=>0)}),n=Ne("col"),i=k(()=>{const o={};return r.value&&(o.paddingLeft=o.paddingRight=`${r.value/2}px`),o}),a=k(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];$t(c)&&(u==="span"?o.push(n.b(`${t[u]}`)):c>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{$t(t[u])?o.push(n.b(`${u}-${t[u]}`)):Xe(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{o.push(c!=="span"?n.b(`${u}-${c}-${f}`):n.b(`${u}-${f}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(Y(),_e(nn(o.tag),{class:ue(E(a)),style:St(E(i))},{default:Z(()=>[$e(o.$slots,"default")]),_:3},8,["class","style"]))}});var V8=Ze(W8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const pA=hr(V8),G8=ce({name:"ElCollapseTransition"}),U8=ce({...G8,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)=>(Y(),_e(Ci,ca({name:E(t).b()},RI(r)),{default:Z(()=>[$e(n.$slots,"default")]),_:3},16,["name"]))}});var Lf=Ze(U8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Lf.install=e=>{e.component(Lf.name,Lf)};const j8=Lf,Y8=ce({inheritAttrs:!1});function q8(e,t,r,n,i,a){return $e(e.$slots,"default")}var K8=Ze(Y8,[["render",q8],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const X8=ce({name:"ElCollectionItem",inheritAttrs:!1});function Z8(e,t,r,n,i,a){return $e(e.$slots,"default")}var Q8=Ze(X8,[["render",Z8],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const J8="data-el-collection-item",eW=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),i=Symbol(r),a={...K8,name:t,setup(){const s=B(null),l=new Map;At(n,{itemMap:l,getItems:()=>{const c=E(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${J8}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...Q8,name:r,setup(s,{attrs:l}){const u=B(null),c=Ee(n,void 0);At(i,{collectionItemRef:u}),wt(()=>{const f=E(u);f&&c.itemMap.set(f,{ref:f,...l})}),Xt(()=>{const f=E(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:a,ElCollectionItem:o}},Kh=tt({trigger:bu.trigger,effect:{...qr.effect,default:"light"},type:{type:Le(String)},placement:{type:Le(String),default:"bottom"},popperOptions:{type:Le(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:Le([Number,String]),default:0},maxHeight:{type:Le([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Le(Object)},teleported:qr.teleported});tt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Wn}});tt({onKeydown:{type:Le(Function)}});Ot.down,Ot.pageDown,Ot.home;Ot.up,Ot.pageUp,Ot.end;eW("Dropdown");let tW=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 Ot.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Ot.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Ot.tab:{wf(t,"mouseleave");break}case Ot.enter:case Ot.space:{i=!0,n.currentTarget.click();break}}return i&&(n.preventDefault(),n.stopPropagation()),!1})})}},rW=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 tW(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case Ot.down:{wf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Ot.up:{wf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Ot.tab:{wf(t.currentTarget,"mouseleave");break}case Ot.enter:case Ot.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},nW=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 rW(n,t)})}};const iW=ce({name:"ElMenuCollapseTransition",setup(){const e=Ne("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Zo(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){ss(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Ol(r,e.m("collapse"))?(ss(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Zo(r,e.m("collapse"))):(Zo(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),ss(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Zo(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function aW(e,t,r,n,i,a){return Y(),_e(Ci,ca({mode:"out-in"},e.listeners),{default:Z(()=>[$e(e.$slots,"default")]),_:3},16)}var oW=Ze(iW,[["render",aW],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function gA(e,t){const r=k(()=>{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:k(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:r}}function sW(e){return k(()=>{const r=e.backgroundColor;return r?new JM(r).shade(20).toString():""})}const mA=(e,t)=>{const r=Ne("menu");return k(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":sW(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},lW=tt({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},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Wn},expandOpenIcon:{type:Wn},collapseCloseIcon:{type:Wn},collapseOpenIcon:{type:Wn}}),Mc="ElSubMenu";var Ry=ce({name:Mc,props:lW,setup(e,{slots:t,expose:r}){vy({from:"popper-append-to-body",replacement:"teleported",scope:Mc,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},k(()=>e.popperAppendToBody!==void 0));const n=ct(),{indexPath:i,parentMenu:a}=gA(n,k(()=>e.index)),o=Ne("menu"),s=Ne("sub-menu"),l=Ee("rootMenu");l||na(Mc,"can not inject root menu");const u=Ee(`subMenu:${a.value.uid}`);u||na(Mc,"can not inject sub menu");const c=B({}),f=B({});let d;const h=B(!1),v=B(),p=B(null),g=k(()=>A.value==="horizontal"&&y.value?"bottom-start":"right-start"),m=k(()=>A.value==="horizontal"&&y.value||A.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?w.value?e.expandOpenIcon:e.expandCloseIcon:lM:e.collapseCloseIcon&&e.collapseOpenIcon?w.value?e.collapseOpenIcon:e.collapseCloseIcon:dy),y=k(()=>u.level===0),_=k(()=>{var R;const j=(R=e.teleported)!=null?R:e.popperAppendToBody;return j===void 0?y.value:j}),b=k(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=k(()=>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=k(()=>l.openedMenus.includes(e.index)),S=k(()=>{let R=!1;return Object.values(c.value).forEach(j=>{j.active&&(R=!0)}),Object.values(f.value).forEach(j=>{j.active&&(R=!0)}),R}),C=k(()=>l.props.backgroundColor||""),M=k(()=>l.props.activeTextColor||""),P=k(()=>l.props.textColor||""),A=k(()=>l.props.mode),T=fn({index:e.index,indexPath:i,active:S}),D=k(()=>A.value!=="horizontal"?{color:P.value}:{borderBottomColor:S.value?l.props.activeTextColor?M.value:"":"transparent",color:S.value?M.value:P.value}),N=()=>{var R,j,re;return(re=(j=(R=p.value)==null?void 0:R.popperRef)==null?void 0:j.popperInstanceRef)==null?void 0:re.destroy()},H=R=>{R||N()},$=()=>{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})},G=(R,j=e.showTimeout)=>{var re;R.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}=kp(()=>{l.openMenu(e.index,i.value)},j),_.value&&((re=a.value.vnode.el)==null||re.dispatchEvent(new MouseEvent("mouseenter")))))},F=(R=!1)=>{var j,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}=kp(()=>!h.value&&l.closeMenu(e.index,i.value),e.hideTimeout),_.value&&R&&((j=n.parent)==null?void 0:j.type.name)==="ElSubMenu"&&((re=u.handleMouseleave)==null||re.call(u,!0)))};Se(()=>l.props.collapse,R=>H(Boolean(R)));{const R=re=>{f.value[re.index]=re},j=re=>{delete f.value[re.index]};At(`subMenu:${n.uid}`,{addSubMenu:R,removeSubMenu:j,handleMouseleave:F,mouseInChild:h,level:u.level+1})}return r({opened:w}),wt(()=>{l.addSubMenu(T),u.addSubMenu(T)}),Xt(()=>{u.removeSubMenu(T),l.removeSubMenu(T)}),()=>{var R;const j=[(R=t.title)==null?void 0:R.call(t),Ce(lr,{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:()=>He(m.value)?Ce(n.appContext.components[m.value]):Ce(m.value)})],re=mA(l.props,u.level+1),oe=l.isMenuPopup?Ce(Ju,{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 ye;return Ce("div",{class:[o.m(A.value),o.m("popup-container"),e.popperClass],onMouseenter:Ae=>G(Ae,100),onMouseleave:()=>F(!0),onFocus:Ae=>G(Ae,100)},[Ce("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:re.value},[(ye=t.default)==null?void 0:ye.call(t)])])},default:()=>Ce("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],onClick:$},j)}):Ce(pt,{},[Ce("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],ref:v,onClick:$},j),Ce(j8,{},{default:()=>{var ye;return nr(Ce("ul",{role:"menu",class:[o.b(),o.m("inline")],style:re.value},[(ye=t.default)==null?void 0:ye.call(t)]),[[yi,w.value]])}})]);return Ce("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:G,onMouseleave:()=>F(!0),onFocus:G},[oe])}}});const uW=tt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Le(Array),default:()=>Ya([])},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"}}),Xh=e=>Array.isArray(e)&&e.every(t=>He(t)),cW={close:(e,t)=>He(e)&&Xh(t),open:(e,t)=>He(e)&&Xh(t),select:(e,t,r,n)=>He(e)&&Xh(t)&&Xe(r)&&(n===void 0||n instanceof Promise)};var fW=ce({name:"ElMenu",props:uW,emits:cW,setup(e,{emit:t,slots:r,expose:n}){const i=ct(),a=i.appContext.config.globalProperties.$router,o=B(),s=Ne("menu"),l=Ne("sub-menu"),u=B(-1),c=B(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=B(e.defaultActive),d=B({}),h=B({}),v=k(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const A=f.value&&d.value[f.value];if(!A||e.mode==="horizontal"||e.collapse)return;A.indexPath.forEach(D=>{const N=h.value[D];N&&g(D,N.indexPath)})},g=(A,T)=>{c.value.includes(A)||(e.uniqueOpened&&(c.value=c.value.filter(D=>T.includes(D))),c.value.push(A),t("open",A,T))},m=A=>{const T=c.value.indexOf(A);T!==-1&&c.value.splice(T,1)},y=(A,T)=>{m(A),t("close",A,T)},_=({index:A,indexPath:T})=>{c.value.includes(A)?y(A,T):g(A,T)},b=A=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:T,indexPath:D}=A;if(!(gu(T)||gu(D)))if(e.router&&a){const N=A.route||T,H=a.push(N).then($=>($||(f.value=T),$));t("select",T,D,{index:T,indexPath:D,route:N},H)}else f.value=T,t("select",T,D,{index:T,indexPath:D})},x=A=>{const T=d.value,D=T[A]||f.value&&T[f.value]||T[e.defaultActive];D?f.value=D.index:f.value=A},w=()=>{var A,T;if(!o.value)return-1;const D=Array.from((T=(A=o.value)==null?void 0:A.childNodes)!=null?T:[]).filter(j=>j.nodeName!=="#text"||j.nodeValue),N=64,H=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),$=Number.parseInt(getComputedStyle(o.value).paddingRight,10),G=o.value.clientWidth-H-$;let F=0,R=0;return D.forEach((j,re)=>{F+=j.offsetWidth||0,F<=G-N&&(R=re+1)}),R===D.length?-1:R},S=(A,T=33.34)=>{let D;return()=>{D&&clearTimeout(D),D=setTimeout(()=>{A()},T)}};let C=!0;const M=()=>{const A=()=>{u.value=-1,Ft(()=>{u.value=w()})};C?A():S(A)(),C=!1};Se(()=>e.defaultActive,A=>{d.value[A]||(f.value=""),x(A)}),Se(()=>e.collapse,A=>{A&&(c.value=[])}),Se(d.value,p);let P;io(()=>{e.mode==="horizontal"&&e.ellipsis?P=gs(o,M).stop:P==null||P()});{const A=H=>{h.value[H.index]=H},T=H=>{delete h.value[H.index]};At("rootMenu",fn({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:H=>{d.value[H.index]=H},removeMenuItem:H=>{delete d.value[H.index]},addSubMenu:A,removeSubMenu:T,openMenu:g,closeMenu:y,handleMenuItemClick:b,handleSubMenuClick:_})),At(`subMenu:${i.uid}`,{addSubMenu:A,removeSubMenu:T,mouseInChild:B(!1),level:0})}return wt(()=>{e.mode==="horizontal"&&new nW(i.vnode.el,s.namespace.value)}),n({open:T=>{const{indexPath:D}=h.value[T];D.forEach(N=>g(N,D))},close:m,handleResize:M}),()=>{var A,T;let D=(T=(A=r.default)==null?void 0:A.call(r))!=null?T:[];const N=[];if(e.mode==="horizontal"&&o.value){const G=Cf(D),F=u.value===-1?G:G.slice(0,u.value),R=u.value===-1?[]:G.slice(u.value);R!=null&&R.length&&e.ellipsis&&(D=F,N.push(Ce(Ry,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>Ce(lr,{class:l.e("icon-more")},{default:()=>Ce(M3)}),default:()=>R})))}const H=mA(e,0),$=Ce("ul",{key:String(e.collapse),role:"menubar",ref:o,style:H.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...D,...N]);return e.collapseTransition&&e.mode==="vertical"?Ce(oW,()=>$):$}}});const dW=tt({index:{type:Le([String,null]),default:null},route:{type:Le([String,Object])},disabled:Boolean}),hW={click:e=>He(e.index)&&Array.isArray(e.indexPath)},Zh="ElMenuItem",vW=ce({name:Zh,components:{ElTooltip:Ju},props:dW,emits:hW,setup(e,{emit:t}){const r=ct(),n=Ee("rootMenu"),i=Ne("menu"),a=Ne("menu-item");n||na(Zh,"can not inject root menu");const{parentMenu:o,indexPath:s}=gA(r,tn(e,"index")),l=Ee(`subMenu:${o.value.uid}`);l||na(Zh,"can not inject sub menu");const u=k(()=>e.index===n.activeIndex),c=fn({index:e.index,indexPath:s,active:u}),f=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",c))};return wt(()=>{l.addSubMenu(c),n.addMenuItem(c)}),Xt(()=>{l.removeSubMenu(c),n.removeMenuItem(c)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:i,nsMenuItem:a,handleClick:f}}});function pW(e,t,r,n,i,a){const o=_r("el-tooltip");return Y(),me("li",{class:ue([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?(Y(),_e(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Z(()=>[$e(e.$slots,"title")]),default:Z(()=>[ae("div",{class:ue(e.nsMenu.be("tooltip","trigger"))},[$e(e.$slots,"default")],2)]),_:3},8,["effect"])):(Y(),me(pt,{key:1},[$e(e.$slots,"default"),$e(e.$slots,"title")],64))],2)}var yA=Ze(vW,[["render",pW],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const gW={title:String},mW="ElMenuItemGroup",yW=ce({name:mW,props:gW,setup(){return{ns:Ne("menu-item-group")}}});function _W(e,t,r,n,i,a){return Y(),me("li",{class:ue(e.ns.b())},[ae("div",{class:ue(e.ns.e("title"))},[e.$slots.title?$e(e.$slots,"title",{key:1}):(Y(),me(pt,{key:0},[Bt(Me(e.title),1)],64))],2),ae("ul",null,[$e(e.$slots,"default")])],2)}var _A=Ze(yW,[["render",_W],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const bW=hr(fW,{MenuItem:yA,MenuItemGroup:_A,SubMenu:Ry}),wW=fa(yA);fa(_A);const xW=fa(Ry),SW=tt({trigger:bu.trigger,placement:Kh.placement,disabled:bu.disabled,visible:qr.visible,transition:qr.transition,popperOptions:Kh.popperOptions,tabindex:Kh.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}}),CW={"update:visible":e=>Br(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},TW="onUpdate:visible",MW=ce({name:"ElPopover"}),AW=ce({...MW,props:SW,emits:CW,setup(e,{expose:t,emit:r}){const n=e,i=k(()=>n[TW]),a=Ne("popover"),o=B(),s=k(()=>{var g;return(g=E(o))==null?void 0:g.popperRef}),l=k(()=>[{width:po(n.width)},n.popperStyle]),u=k(()=>[a.b(),n.popperClass,{[a.m("plain")]:!!n.content}]),c=k(()=>n.transition===`${a.namespace.value}-fade-in-linear`),f=()=>{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:f}),(g,m)=>(Y(),_e(E(Ju),ca({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":E(u),"popper-style":E(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":E(c),"onUpdate:visible":E(i),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:Z(()=>[g.title?(Y(),me("div",{key:0,class:ue(E(a).e("title")),role:"title"},Me(g.title),3)):Fe("v-if",!0),$e(g.$slots,"default",{},()=>[Bt(Me(g.content),1)])]),default:Z(()=>[g.$slots.reference?$e(g.$slots,"reference",{key:0}):Fe("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 EW=Ze(AW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const h1=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var PW={mounted(e,t){h1(e,t)},updated(e,t){h1(e,t)}};const LW="popover",DW=H3(PW,LW),IW=hr(EW,{directive:DW}),OW=tt({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Wn},inactiveIcon:{type:Wn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Le(Function)},size:{type:String,validator:z3},tabindex:{type:[String,Number]}}),RW={[go]:e=>Br(e)||He(e)||$t(e),[qp]:e=>Br(e)||He(e)||$t(e),[Kp]:e=>Br(e)||He(e)||$t(e)},kW=["onClick"],NW=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],FW=["aria-hidden"],BW=["aria-hidden"],$W=["aria-hidden"],vg="ElSwitch",HW=ce({name:vg}),zW=ce({...HW,props:OW,emits:RW,setup(e,{expose:t,emit:r}){const n=e,i=ct(),{formItem:a}=Zu(),o=ia(),s=Ne("switch");vy({from:'"value"',replacement:'"model-value" or "v-model"',scope:vg,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},k(()=>{var x;return!!((x=i.vnode.props)!=null&&x.value)}));const{inputId:l}=Py(n,{formItemContext:a}),u=rh(k(()=>n.loading)),c=B(n.modelValue!==!1),f=B(),d=B(),h=k(()=>[s.b(),s.m(o.value),s.is("disabled",u.value),s.is("checked",g.value)]),v=k(()=>({width:po(n.width)}));Se(()=>n.modelValue,()=>{c.value=!0}),Se(()=>n.value,()=>{c.value=!1});const p=k(()=>c.value?n.modelValue:n.value),g=k(()=>p.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(p.value)||(r(go,n.inactiveValue),r(qp,n.inactiveValue),r(Kp,n.inactiveValue)),Se(g,x=>{var w;f.value.checked=x,n.validateEvent&&((w=a==null?void 0:a.validate)==null||w.call(a,"change").catch(S=>void 0))});const m=()=>{const x=g.value?n.inactiveValue:n.activeValue;r(go,x),r(qp,x),r(Kp,x),Ft(()=>{f.value.checked=g.value})},y=()=>{if(u.value)return;const{beforeChange:x}=n;if(!x){m();return}const w=x();[jf(w),Br(w)].includes(!0)||na(vg,"beforeChange must return type `Promise<boolean>` or `boolean`"),jf(w)?w.then(C=>{C&&m()}).catch(C=>{}):w&&m()},_=k(()=>s.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),b=()=>{var x,w;(w=(x=f.value)==null?void 0:x.focus)==null||w.call(x)};return wt(()=>{f.value.checked=g.value}),t({focus:b,checked:g}),(x,w)=>(Y(),me("div",{class:ue(E(h)),style:St(E(_)),onClick:Jf(y,["prevent"])},[ae("input",{id:E(l),ref_key:"input",ref:f,class:ue(E(s).e("input")),type:"checkbox",role:"switch","aria-checked":E(g),"aria-disabled":E(u),name:x.name,"true-value":x.activeValue,"false-value":x.inactiveValue,disabled:E(u),tabindex:x.tabindex,onChange:m,onKeydown:UO(y,["enter"])},null,42,NW),!x.inlinePrompt&&(x.inactiveIcon||x.inactiveText)?(Y(),me("span",{key:0,class:ue([E(s).e("label"),E(s).em("label","left"),E(s).is("active",!E(g))])},[x.inactiveIcon?(Y(),_e(E(lr),{key:0},{default:Z(()=>[(Y(),_e(nn(x.inactiveIcon)))]),_:1})):Fe("v-if",!0),!x.inactiveIcon&&x.inactiveText?(Y(),me("span",{key:1,"aria-hidden":E(g)},Me(x.inactiveText),9,FW)):Fe("v-if",!0)],2)):Fe("v-if",!0),ae("span",{ref_key:"core",ref:d,class:ue(E(s).e("core")),style:St(E(v))},[x.inlinePrompt?(Y(),me("div",{key:0,class:ue(E(s).e("inner"))},[x.activeIcon||x.inactiveIcon?(Y(),_e(E(lr),{key:0,class:ue(E(s).is("icon"))},{default:Z(()=>[(Y(),_e(nn(E(g)?x.activeIcon:x.inactiveIcon)))]),_:1},8,["class"])):x.activeText||x.inactiveText?(Y(),me("span",{key:1,class:ue(E(s).is("text")),"aria-hidden":!E(g)},Me(E(g)?x.activeText:x.inactiveText),11,BW)):Fe("v-if",!0)],2)):Fe("v-if",!0),ae("div",{class:ue(E(s).e("action"))},[x.loading?(Y(),_e(E(lr),{key:0,class:ue(E(s).is("loading"))},{default:Z(()=>[ee(E(hy))]),_:1},8,["class"])):Fe("v-if",!0)],2)],6),!x.inlinePrompt&&(x.activeIcon||x.activeText)?(Y(),me("span",{key:1,class:ue([E(s).e("label"),E(s).em("label","right"),E(s).is("active",E(g))])},[x.activeIcon?(Y(),_e(E(lr),{key:0},{default:Z(()=>[(Y(),_e(nn(x.activeIcon)))]),_:1})):Fe("v-if",!0),!x.activeIcon&&x.activeText?(Y(),me("span",{key:1,"aria-hidden":!E(g)},Me(x.activeText),9,$W)):Fe("v-if",!0)],2)):Fe("v-if",!0)],14,kW))}});var WW=Ze(zW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const VW=hr(WW);/*!
+*/const s8=function(e,t){if(e&&e.addEventListener){const r=function(n){const i=o8(n);t&&Reflect.apply(t,this,[n,i])};e.addEventListener("wheel",r,{passive:!0})}},l8={beforeMount(e,t){s8(e,t.value)}},lA={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:Xu,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},uA={[go]:e=>He(e)||$t(e)||Br(e),change:e=>He(e)||$t(e)||Br(e)},$s=Symbol("checkboxGroupContextKey"),u8=({model:e,isChecked:t})=>{const r=Pe($s,void 0),n=k(()=>{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!ad(s)&&e.value.length>=s&&!t.value||!ad(l)&&e.value.length<=l&&t.value});return{isDisabled:rh(k(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},c8=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:i,isLabeledByFormItem:a})=>{const o=Pe($s,void 0),{formItem:s}=Zu(),{emit:l}=ct();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 c(v,p){l("change",u(v),p)}function f(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 Ft(),c(t.value,v)))}const h=k(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return xe(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},f8=e=>{const t=B(!1),{emit:r}=ct(),n=Pe($s,void 0),i=k(()=>ad(n)===!1),a=B(!1);return{model:k({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&&be(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(go,s),t.value=s)}}),isGroup:i,isLimitExceeded:a}},d8=(e,t,{model:r})=>{const n=Pe($s,void 0),i=B(!1),a=k(()=>{const u=r.value;return Br(u)?u:be(u)?Xe(e.label)?u.map(Ke).some(c=>E5(c,e.label)):u.map(Ke).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=ia(k(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=ia(k(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=k(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:a,isFocused:i,checkboxSize:s,hasOwnLabel:l}},h8=(e,{model:t})=>{function r(){be(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},cA=(e,t)=>{const{formItem:r}=Zu(),{model:n,isGroup:i,isLimitExceeded:a}=f8(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=d8(e,t,{model:n}),{isDisabled:f}=u8({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=Ey(e,{formItemContext:r,disableIdGeneration:c,disableIdManagement:i}),{handleChange:v,onClickRoot:p}=c8(e,{model:n,isLimitExceeded:a,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return h8(e,{model:n}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:n,handleChange:v,onClickRoot:p}},v8=["tabindex","role","aria-checked"],p8=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],g8=["id","aria-hidden","disabled","value","name","tabindex"],m8=ce({name:"ElCheckbox"}),y8=ce({...m8,props:lA,emits:uA,setup(e){const t=e,r=Yd(),{inputId:n,isLabeledByFormItem:i,isChecked:a,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=cA(t,r),h=Ne("checkbox"),v=k(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",a.value)]),p=k(()=>[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)=>(Y(),_e(nn(!P(u)&&P(i)?"span":"label"),{class:ue(P(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:P(d)},{default:Z(()=>[ae("span",{class:ue(P(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?nr((Y(),me("input",{key:0,id:P(n),"onUpdate:modelValue":m[0]||(m[0]=y=>Ct(c)?c.value=y:null),class:ue(P(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:P(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...y)=>P(f)&&P(f)(...y)),onFocus:m[2]||(m[2]=y=>s.value=!0),onBlur:m[3]||(m[3]=y=>s.value=!1)},null,42,p8)),[[Qf,P(c)]]):nr((Y(),me("input",{key:1,id:P(n),"onUpdate:modelValue":m[4]||(m[4]=y=>Ct(c)?c.value=y:null),class:ue(P(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:P(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[5]||(m[5]=(...y)=>P(f)&&P(f)(...y)),onFocus:m[6]||(m[6]=y=>s.value=!0),onBlur:m[7]||(m[7]=y=>s.value=!1)},null,42,g8)),[[Qf,P(c)]]),ae("span",{class:ue(P(h).e("inner"))},null,2)],10,v8),P(u)?(Y(),me("span",{key:0,class:ue(P(h).e("label"))},[$e(g.$slots,"default"),g.$slots.default?Fe("v-if",!0):(Y(),me(pt,{key:0},[Bt(Me(g.label),1)],64))],2)):Fe("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var _8=Ze(y8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const b8=["name","tabindex","disabled","true-value","false-value"],w8=["name","tabindex","disabled","value"],S8=ce({name:"ElCheckboxButton"}),x8=ce({...S8,props:lA,emits:uA,setup(e){const t=e,r=Yd(),{isFocused:n,isChecked:i,isDisabled:a,checkboxButtonSize:o,model:s,handleChange:l}=cA(t,r),u=Pe($s,void 0),c=Ne("checkbox"),f=k(()=>{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=k(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",a.value),c.is("checked",i.value),c.is("focus",n.value)]);return(h,v)=>(Y(),me("label",{class:ue(P(d))},[h.trueLabel||h.falseLabel?nr((Y(),me("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>Ct(s)?s.value=p:null),class:ue(P(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:P(a),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>P(l)&&P(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1)},null,42,b8)),[[Qf,P(s)]]):nr((Y(),me("input",{key:1,"onUpdate:modelValue":v[4]||(v[4]=p=>Ct(s)?s.value=p:null),class:ue(P(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:P(a),value:h.label,onChange:v[5]||(v[5]=(...p)=>P(l)&&P(l)(...p)),onFocus:v[6]||(v[6]=p=>n.value=!0),onBlur:v[7]||(v[7]=p=>n.value=!1)},null,42,w8)),[[Qf,P(s)]]),h.$slots.default||h.label?(Y(),me("span",{key:2,class:ue(P(c).be("button","inner")),style:xt(P(i)?P(f):void 0)},[$e(h.$slots,"default",{},()=>[Bt(Me(h.label),1)])],6)):Fe("v-if",!0)],2))}});var fA=Ze(x8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const C8=tt({modelValue:{type:Le(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Xu,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),T8={[go]:e=>be(e),change:e=>be(e)},M8=ce({name:"ElCheckboxGroup"}),A8=ce({...M8,props:C8,emits:T8,setup(e,{emit:t}){const r=e,n=Ne("checkbox"),{formItem:i}=Zu(),{inputId:a,isLabeledByFormItem:o}=Ey(r,{formItemContext:i}),s=async u=>{t(go,u),await Ft(),t("change",u)},l=k({get(){return r.modelValue},set(u){s(u)}});return At($s,{...k5($d(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),xe(()=>r.modelValue,()=>{r.validateEvent&&(i==null||i.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return Y(),_e(nn(u.tag),{id:P(a),class:ue(P(n).b("group")),role:"group","aria-label":P(o)?void 0:u.label||"checkbox-group","aria-labelledby":P(o)?(f=P(i))==null?void 0:f.labelId:void 0},{default:Z(()=>[$e(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var dA=Ze(A8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Cs=hr(_8,{CheckboxButton:fA,CheckboxGroup:dA});fa(fA);fa(dA);const P8=tt({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Yu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),E8={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},L8=ce({name:"ElTag"}),D8=ce({...L8,props:P8,emits:E8,setup(e,{emit:t}){const r=e,n=ia(),i=Ne("tag"),a=k(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=r;return[i.b(),i.is("closable",f),i.m(l),i.m(n.value),i.m(c),i.is("hit",u),i.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(Y(),me("span",{key:0,class:ue(P(a)),style:xt({backgroundColor:l.color}),onClick:s},[ae("span",{class:ue(P(i).e("content"))},[$e(l.$slots,"default")],2),l.closable?(Y(),_e(P(lr),{key:0,class:ue(P(i).e("close")),onClick:Jf(o,["stop"])},{default:Z(()=>[ee(P(Yp))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],6)):(Y(),_e(Ci,{key:1,name:`${P(i).namespace.value}-zoom-in-center`,appear:""},{default:Z(()=>[ae("span",{class:ue(P(a)),style:xt({backgroundColor:l.color}),onClick:s},[ae("span",{class:ue(P(i).e("content"))},[$e(l.$slots,"default")],2),l.closable?(Y(),_e(P(lr),{key:0,class:ue(P(i).e("close")),onClick:Jf(o,["stop"])},{default:Z(()=>[ee(P(Yp))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],6)]),_:3},8,["name"]))}});var I8=Ze(D8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const O8=hr(I8),hA=Symbol("rowContextKey"),R8=["start","center","end","space-around","space-between","space-evenly"],k8=["top","middle","bottom"],N8=tt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:R8,default:"start"},align:{type:String,values:k8,default:"top"}}),F8=ce({name:"ElRow"}),B8=ce({...F8,props:N8,setup(e){const t=e,r=Ne("row"),n=k(()=>t.gutter);At(hA,{gutter:n});const i=k(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),a=k(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,t.align!=="top")]);return(o,s)=>(Y(),_e(nn(o.tag),{class:ue(P(a)),style:xt(P(i))},{default:Z(()=>[$e(o.$slots,"default")]),_:3},8,["class","style"]))}});var $8=Ze(B8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const vA=hr($8),H8=tt({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:Le([Number,Object]),default:()=>Ya({})},sm:{type:Le([Number,Object]),default:()=>Ya({})},md:{type:Le([Number,Object]),default:()=>Ya({})},lg:{type:Le([Number,Object]),default:()=>Ya({})},xl:{type:Le([Number,Object]),default:()=>Ya({})}}),z8=ce({name:"ElCol"}),W8=ce({...z8,props:H8,setup(e){const t=e,{gutter:r}=Pe(hA,{gutter:k(()=>0)}),n=Ne("col"),i=k(()=>{const o={};return r.value&&(o.paddingLeft=o.paddingRight=`${r.value/2}px`),o}),a=k(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];$t(c)&&(u==="span"?o.push(n.b(`${t[u]}`)):c>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{$t(t[u])?o.push(n.b(`${u}-${t[u]}`)):Xe(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{o.push(c!=="span"?n.b(`${u}-${c}-${f}`):n.b(`${u}-${f}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(Y(),_e(nn(o.tag),{class:ue(P(a)),style:xt(P(i))},{default:Z(()=>[$e(o.$slots,"default")]),_:3},8,["class","style"]))}});var V8=Ze(W8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const pA=hr(V8),G8=ce({name:"ElCollapseTransition"}),U8=ce({...G8,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)=>(Y(),_e(Ci,ca({name:P(t).b()},RI(r)),{default:Z(()=>[$e(n.$slots,"default")]),_:3},16,["name"]))}});var Lf=Ze(U8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Lf.install=e=>{e.component(Lf.name,Lf)};const j8=Lf,Y8=ce({inheritAttrs:!1});function q8(e,t,r,n,i,a){return $e(e.$slots,"default")}var K8=Ze(Y8,[["render",q8],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const X8=ce({name:"ElCollectionItem",inheritAttrs:!1});function Z8(e,t,r,n,i,a){return $e(e.$slots,"default")}var Q8=Ze(X8,[["render",Z8],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const J8="data-el-collection-item",eW=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),i=Symbol(r),a={...K8,name:t,setup(){const s=B(null),l=new Map;At(n,{itemMap:l,getItems:()=>{const c=P(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${J8}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...Q8,name:r,setup(s,{attrs:l}){const u=B(null),c=Pe(n,void 0);At(i,{collectionItemRef:u}),wt(()=>{const f=P(u);f&&c.itemMap.set(f,{ref:f,...l})}),Xt(()=>{const f=P(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:a,ElCollectionItem:o}},Kh=tt({trigger:bu.trigger,effect:{...qr.effect,default:"light"},type:{type:Le(String)},placement:{type:Le(String),default:"bottom"},popperOptions:{type:Le(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:Le([Number,String]),default:0},maxHeight:{type:Le([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Le(Object)},teleported:qr.teleported});tt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Wn}});tt({onKeydown:{type:Le(Function)}});Ot.down,Ot.pageDown,Ot.home;Ot.up,Ot.pageUp,Ot.end;eW("Dropdown");let tW=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 Ot.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Ot.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Ot.tab:{wf(t,"mouseleave");break}case Ot.enter:case Ot.space:{i=!0,n.currentTarget.click();break}}return i&&(n.preventDefault(),n.stopPropagation()),!1})})}},rW=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 tW(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case Ot.down:{wf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Ot.up:{wf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Ot.tab:{wf(t.currentTarget,"mouseleave");break}case Ot.enter:case Ot.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},nW=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 rW(n,t)})}};const iW=ce({name:"ElMenuCollapseTransition",setup(){const e=Ne("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Zo(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){ss(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Ol(r,e.m("collapse"))?(ss(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Zo(r,e.m("collapse"))):(Zo(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),ss(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Zo(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function aW(e,t,r,n,i,a){return Y(),_e(Ci,ca({mode:"out-in"},e.listeners),{default:Z(()=>[$e(e.$slots,"default")]),_:3},16)}var oW=Ze(iW,[["render",aW],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function gA(e,t){const r=k(()=>{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:k(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:r}}function sW(e){return k(()=>{const r=e.backgroundColor;return r?new JM(r).shade(20).toString():""})}const mA=(e,t)=>{const r=Ne("menu");return k(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":sW(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},lW=tt({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},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Wn},expandOpenIcon:{type:Wn},collapseCloseIcon:{type:Wn},collapseOpenIcon:{type:Wn}}),Mc="ElSubMenu";var Ry=ce({name:Mc,props:lW,setup(e,{slots:t,expose:r}){vy({from:"popper-append-to-body",replacement:"teleported",scope:Mc,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},k(()=>e.popperAppendToBody!==void 0));const n=ct(),{indexPath:i,parentMenu:a}=gA(n,k(()=>e.index)),o=Ne("menu"),s=Ne("sub-menu"),l=Pe("rootMenu");l||na(Mc,"can not inject root menu");const u=Pe(`subMenu:${a.value.uid}`);u||na(Mc,"can not inject sub menu");const c=B({}),f=B({});let d;const h=B(!1),v=B(),p=B(null),g=k(()=>A.value==="horizontal"&&y.value?"bottom-start":"right-start"),m=k(()=>A.value==="horizontal"&&y.value||A.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?w.value?e.expandOpenIcon:e.expandCloseIcon:lM:e.collapseCloseIcon&&e.collapseOpenIcon?w.value?e.collapseOpenIcon:e.collapseCloseIcon:dy),y=k(()=>u.level===0),_=k(()=>{var R;const j=(R=e.teleported)!=null?R:e.popperAppendToBody;return j===void 0?y.value:j}),b=k(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),S=k(()=>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=k(()=>l.openedMenus.includes(e.index)),x=k(()=>{let R=!1;return Object.values(c.value).forEach(j=>{j.active&&(R=!0)}),Object.values(f.value).forEach(j=>{j.active&&(R=!0)}),R}),C=k(()=>l.props.backgroundColor||""),M=k(()=>l.props.activeTextColor||""),E=k(()=>l.props.textColor||""),A=k(()=>l.props.mode),T=fn({index:e.index,indexPath:i,active:x}),D=k(()=>A.value!=="horizontal"?{color:E.value}:{borderBottomColor:x.value?l.props.activeTextColor?M.value:"":"transparent",color:x.value?M.value:E.value}),N=()=>{var R,j,re;return(re=(j=(R=p.value)==null?void 0:R.popperRef)==null?void 0:j.popperInstanceRef)==null?void 0:re.destroy()},H=R=>{R||N()},$=()=>{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:x.value})},G=(R,j=e.showTimeout)=>{var re;R.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}=kp(()=>{l.openMenu(e.index,i.value)},j),_.value&&((re=a.value.vnode.el)==null||re.dispatchEvent(new MouseEvent("mouseenter")))))},F=(R=!1)=>{var j,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}=kp(()=>!h.value&&l.closeMenu(e.index,i.value),e.hideTimeout),_.value&&R&&((j=n.parent)==null?void 0:j.type.name)==="ElSubMenu"&&((re=u.handleMouseleave)==null||re.call(u,!0)))};xe(()=>l.props.collapse,R=>H(Boolean(R)));{const R=re=>{f.value[re.index]=re},j=re=>{delete f.value[re.index]};At(`subMenu:${n.uid}`,{addSubMenu:R,removeSubMenu:j,handleMouseleave:F,mouseInChild:h,level:u.level+1})}return r({opened:w}),wt(()=>{l.addSubMenu(T),u.addSubMenu(T)}),Xt(()=>{u.removeSubMenu(T),l.removeSubMenu(T)}),()=>{var R;const j=[(R=t.title)==null?void 0:R.call(t),Ce(lr,{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:()=>He(m.value)?Ce(n.appContext.components[m.value]):Ce(m.value)})],re=mA(l.props,u.level+1),oe=l.isMenuPopup?Ce(Ju,{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:S.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var ye;return Ce("div",{class:[o.m(A.value),o.m("popup-container"),e.popperClass],onMouseenter:Ae=>G(Ae,100),onMouseleave:()=>F(!0),onFocus:Ae=>G(Ae,100)},[Ce("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:re.value},[(ye=t.default)==null?void 0:ye.call(t)])])},default:()=>Ce("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],onClick:$},j)}):Ce(pt,{},[Ce("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],ref:v,onClick:$},j),Ce(j8,{},{default:()=>{var ye;return nr(Ce("ul",{role:"menu",class:[o.b(),o.m("inline")],style:re.value},[(ye=t.default)==null?void 0:ye.call(t)]),[[yi,w.value]])}})]);return Ce("li",{class:[s.b(),s.is("active",x.value),s.is("opened",w.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:w.value,onMouseenter:G,onMouseleave:()=>F(!0),onFocus:G},[oe])}}});const uW=tt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Le(Array),default:()=>Ya([])},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"}}),Xh=e=>Array.isArray(e)&&e.every(t=>He(t)),cW={close:(e,t)=>He(e)&&Xh(t),open:(e,t)=>He(e)&&Xh(t),select:(e,t,r,n)=>He(e)&&Xh(t)&&Xe(r)&&(n===void 0||n instanceof Promise)};var fW=ce({name:"ElMenu",props:uW,emits:cW,setup(e,{emit:t,slots:r,expose:n}){const i=ct(),a=i.appContext.config.globalProperties.$router,o=B(),s=Ne("menu"),l=Ne("sub-menu"),u=B(-1),c=B(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=B(e.defaultActive),d=B({}),h=B({}),v=k(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const A=f.value&&d.value[f.value];if(!A||e.mode==="horizontal"||e.collapse)return;A.indexPath.forEach(D=>{const N=h.value[D];N&&g(D,N.indexPath)})},g=(A,T)=>{c.value.includes(A)||(e.uniqueOpened&&(c.value=c.value.filter(D=>T.includes(D))),c.value.push(A),t("open",A,T))},m=A=>{const T=c.value.indexOf(A);T!==-1&&c.value.splice(T,1)},y=(A,T)=>{m(A),t("close",A,T)},_=({index:A,indexPath:T})=>{c.value.includes(A)?y(A,T):g(A,T)},b=A=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:T,indexPath:D}=A;if(!(gu(T)||gu(D)))if(e.router&&a){const N=A.route||T,H=a.push(N).then($=>($||(f.value=T),$));t("select",T,D,{index:T,indexPath:D,route:N},H)}else f.value=T,t("select",T,D,{index:T,indexPath:D})},S=A=>{const T=d.value,D=T[A]||f.value&&T[f.value]||T[e.defaultActive];D?f.value=D.index:f.value=A},w=()=>{var A,T;if(!o.value)return-1;const D=Array.from((T=(A=o.value)==null?void 0:A.childNodes)!=null?T:[]).filter(j=>j.nodeName!=="#text"||j.nodeValue),N=64,H=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),$=Number.parseInt(getComputedStyle(o.value).paddingRight,10),G=o.value.clientWidth-H-$;let F=0,R=0;return D.forEach((j,re)=>{F+=j.offsetWidth||0,F<=G-N&&(R=re+1)}),R===D.length?-1:R},x=(A,T=33.34)=>{let D;return()=>{D&&clearTimeout(D),D=setTimeout(()=>{A()},T)}};let C=!0;const M=()=>{const A=()=>{u.value=-1,Ft(()=>{u.value=w()})};C?A():x(A)(),C=!1};xe(()=>e.defaultActive,A=>{d.value[A]||(f.value=""),S(A)}),xe(()=>e.collapse,A=>{A&&(c.value=[])}),xe(d.value,p);let E;io(()=>{e.mode==="horizontal"&&e.ellipsis?E=gs(o,M).stop:E==null||E()});{const A=H=>{h.value[H.index]=H},T=H=>{delete h.value[H.index]};At("rootMenu",fn({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:H=>{d.value[H.index]=H},removeMenuItem:H=>{delete d.value[H.index]},addSubMenu:A,removeSubMenu:T,openMenu:g,closeMenu:y,handleMenuItemClick:b,handleSubMenuClick:_})),At(`subMenu:${i.uid}`,{addSubMenu:A,removeSubMenu:T,mouseInChild:B(!1),level:0})}return wt(()=>{e.mode==="horizontal"&&new nW(i.vnode.el,s.namespace.value)}),n({open:T=>{const{indexPath:D}=h.value[T];D.forEach(N=>g(N,D))},close:m,handleResize:M}),()=>{var A,T;let D=(T=(A=r.default)==null?void 0:A.call(r))!=null?T:[];const N=[];if(e.mode==="horizontal"&&o.value){const G=Cf(D),F=u.value===-1?G:G.slice(0,u.value),R=u.value===-1?[]:G.slice(u.value);R!=null&&R.length&&e.ellipsis&&(D=F,N.push(Ce(Ry,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>Ce(lr,{class:l.e("icon-more")},{default:()=>Ce(M3)}),default:()=>R})))}const H=mA(e,0),$=Ce("ul",{key:String(e.collapse),role:"menubar",ref:o,style:H.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...D,...N]);return e.collapseTransition&&e.mode==="vertical"?Ce(oW,()=>$):$}}});const dW=tt({index:{type:Le([String,null]),default:null},route:{type:Le([String,Object])},disabled:Boolean}),hW={click:e=>He(e.index)&&Array.isArray(e.indexPath)},Zh="ElMenuItem",vW=ce({name:Zh,components:{ElTooltip:Ju},props:dW,emits:hW,setup(e,{emit:t}){const r=ct(),n=Pe("rootMenu"),i=Ne("menu"),a=Ne("menu-item");n||na(Zh,"can not inject root menu");const{parentMenu:o,indexPath:s}=gA(r,tn(e,"index")),l=Pe(`subMenu:${o.value.uid}`);l||na(Zh,"can not inject sub menu");const u=k(()=>e.index===n.activeIndex),c=fn({index:e.index,indexPath:s,active:u}),f=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",c))};return wt(()=>{l.addSubMenu(c),n.addMenuItem(c)}),Xt(()=>{l.removeSubMenu(c),n.removeMenuItem(c)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:i,nsMenuItem:a,handleClick:f}}});function pW(e,t,r,n,i,a){const o=_r("el-tooltip");return Y(),me("li",{class:ue([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?(Y(),_e(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Z(()=>[$e(e.$slots,"title")]),default:Z(()=>[ae("div",{class:ue(e.nsMenu.be("tooltip","trigger"))},[$e(e.$slots,"default")],2)]),_:3},8,["effect"])):(Y(),me(pt,{key:1},[$e(e.$slots,"default"),$e(e.$slots,"title")],64))],2)}var yA=Ze(vW,[["render",pW],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const gW={title:String},mW="ElMenuItemGroup",yW=ce({name:mW,props:gW,setup(){return{ns:Ne("menu-item-group")}}});function _W(e,t,r,n,i,a){return Y(),me("li",{class:ue(e.ns.b())},[ae("div",{class:ue(e.ns.e("title"))},[e.$slots.title?$e(e.$slots,"title",{key:1}):(Y(),me(pt,{key:0},[Bt(Me(e.title),1)],64))],2),ae("ul",null,[$e(e.$slots,"default")])],2)}var _A=Ze(yW,[["render",_W],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const bW=hr(fW,{MenuItem:yA,MenuItemGroup:_A,SubMenu:Ry}),wW=fa(yA);fa(_A);const SW=fa(Ry),xW=tt({trigger:bu.trigger,placement:Kh.placement,disabled:bu.disabled,visible:qr.visible,transition:qr.transition,popperOptions:Kh.popperOptions,tabindex:Kh.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}}),CW={"update:visible":e=>Br(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},TW="onUpdate:visible",MW=ce({name:"ElPopover"}),AW=ce({...MW,props:xW,emits:CW,setup(e,{expose:t,emit:r}){const n=e,i=k(()=>n[TW]),a=Ne("popover"),o=B(),s=k(()=>{var g;return(g=P(o))==null?void 0:g.popperRef}),l=k(()=>[{width:po(n.width)},n.popperStyle]),u=k(()=>[a.b(),n.popperClass,{[a.m("plain")]:!!n.content}]),c=k(()=>n.transition===`${a.namespace.value}-fade-in-linear`),f=()=>{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:f}),(g,m)=>(Y(),_e(P(Ju),ca({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":P(u),"popper-style":P(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":P(c),"onUpdate:visible":P(i),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:Z(()=>[g.title?(Y(),me("div",{key:0,class:ue(P(a).e("title")),role:"title"},Me(g.title),3)):Fe("v-if",!0),$e(g.$slots,"default",{},()=>[Bt(Me(g.content),1)])]),default:Z(()=>[g.$slots.reference?$e(g.$slots,"reference",{key:0}):Fe("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 PW=Ze(AW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const h1=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var EW={mounted(e,t){h1(e,t)},updated(e,t){h1(e,t)}};const LW="popover",DW=H3(EW,LW),IW=hr(PW,{directive:DW}),OW=tt({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Wn},inactiveIcon:{type:Wn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Le(Function)},size:{type:String,validator:z3},tabindex:{type:[String,Number]}}),RW={[go]:e=>Br(e)||He(e)||$t(e),[qp]:e=>Br(e)||He(e)||$t(e),[Kp]:e=>Br(e)||He(e)||$t(e)},kW=["onClick"],NW=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],FW=["aria-hidden"],BW=["aria-hidden"],$W=["aria-hidden"],vg="ElSwitch",HW=ce({name:vg}),zW=ce({...HW,props:OW,emits:RW,setup(e,{expose:t,emit:r}){const n=e,i=ct(),{formItem:a}=Zu(),o=ia(),s=Ne("switch");vy({from:'"value"',replacement:'"model-value" or "v-model"',scope:vg,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},k(()=>{var S;return!!((S=i.vnode.props)!=null&&S.value)}));const{inputId:l}=Ey(n,{formItemContext:a}),u=rh(k(()=>n.loading)),c=B(n.modelValue!==!1),f=B(),d=B(),h=k(()=>[s.b(),s.m(o.value),s.is("disabled",u.value),s.is("checked",g.value)]),v=k(()=>({width:po(n.width)}));xe(()=>n.modelValue,()=>{c.value=!0}),xe(()=>n.value,()=>{c.value=!1});const p=k(()=>c.value?n.modelValue:n.value),g=k(()=>p.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(p.value)||(r(go,n.inactiveValue),r(qp,n.inactiveValue),r(Kp,n.inactiveValue)),xe(g,S=>{var w;f.value.checked=S,n.validateEvent&&((w=a==null?void 0:a.validate)==null||w.call(a,"change").catch(x=>void 0))});const m=()=>{const S=g.value?n.inactiveValue:n.activeValue;r(go,S),r(qp,S),r(Kp,S),Ft(()=>{f.value.checked=g.value})},y=()=>{if(u.value)return;const{beforeChange:S}=n;if(!S){m();return}const w=S();[jf(w),Br(w)].includes(!0)||na(vg,"beforeChange must return type `Promise<boolean>` or `boolean`"),jf(w)?w.then(C=>{C&&m()}).catch(C=>{}):w&&m()},_=k(()=>s.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),b=()=>{var S,w;(w=(S=f.value)==null?void 0:S.focus)==null||w.call(S)};return wt(()=>{f.value.checked=g.value}),t({focus:b,checked:g}),(S,w)=>(Y(),me("div",{class:ue(P(h)),style:xt(P(_)),onClick:Jf(y,["prevent"])},[ae("input",{id:P(l),ref_key:"input",ref:f,class:ue(P(s).e("input")),type:"checkbox",role:"switch","aria-checked":P(g),"aria-disabled":P(u),name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:P(u),tabindex:S.tabindex,onChange:m,onKeydown:UO(y,["enter"])},null,42,NW),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText)?(Y(),me("span",{key:0,class:ue([P(s).e("label"),P(s).em("label","left"),P(s).is("active",!P(g))])},[S.inactiveIcon?(Y(),_e(P(lr),{key:0},{default:Z(()=>[(Y(),_e(nn(S.inactiveIcon)))]),_:1})):Fe("v-if",!0),!S.inactiveIcon&&S.inactiveText?(Y(),me("span",{key:1,"aria-hidden":P(g)},Me(S.inactiveText),9,FW)):Fe("v-if",!0)],2)):Fe("v-if",!0),ae("span",{ref_key:"core",ref:d,class:ue(P(s).e("core")),style:xt(P(v))},[S.inlinePrompt?(Y(),me("div",{key:0,class:ue(P(s).e("inner"))},[S.activeIcon||S.inactiveIcon?(Y(),_e(P(lr),{key:0,class:ue(P(s).is("icon"))},{default:Z(()=>[(Y(),_e(nn(P(g)?S.activeIcon:S.inactiveIcon)))]),_:1},8,["class"])):S.activeText||S.inactiveText?(Y(),me("span",{key:1,class:ue(P(s).is("text")),"aria-hidden":!P(g)},Me(P(g)?S.activeText:S.inactiveText),11,BW)):Fe("v-if",!0)],2)):Fe("v-if",!0),ae("div",{class:ue(P(s).e("action"))},[S.loading?(Y(),_e(P(lr),{key:0,class:ue(P(s).is("loading"))},{default:Z(()=>[ee(P(hy))]),_:1},8,["class"])):Fe("v-if",!0)],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText)?(Y(),me("span",{key:1,class:ue([P(s).e("label"),P(s).em("label","right"),P(s).is("active",P(g))])},[S.activeIcon?(Y(),_e(P(lr),{key:0},{default:Z(()=>[(Y(),_e(nn(S.activeIcon)))]),_:1})):Fe("v-if",!0),!S.activeIcon&&S.activeText?(Y(),me("span",{key:1,"aria-hidden":!P(g)},Me(S.activeText),9,$W)):Fe("v-if",!0)],2)):Fe("v-if",!0)],14,kW))}});var WW=Ze(zW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const VW=hr(WW);/*!
  * escape-html
  * Copyright(c) 2012-2013 TJ Holowaychuk
  * Copyright(c) 2015 Andreas Lubbe
  * Copyright(c) 2015 Tiancheng "Timothy" Gu
  * MIT Licensed
- */var GW=/["'&<>]/,UW=jW;function jW(e){var t=""+e,r=GW.exec(t);if(!r)return t;var n,i="",a=0,o=0;for(a=r.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=n}return o!==a?i+t.substring(o,a):i}const Qh=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},YW=function(e,t,r,n,i){if(!t&&!n&&(!i||Array.isArray(i)&&!i.length))return e;typeof r=="string"?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const a=n?null:function(s,l){return i?(Array.isArray(i)||(i=[i]),i.map(u=>typeof u=="string"?vu(s,u):u(s,l,e))):(t!=="$key"&&Xe(s)&&"$value"in s&&(s=s.$value),[Xe(s)?vu(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,c=s.key.length;u<c;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.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)},bA=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},qW=function(e,t){let r=null;for(let n=0;n<e.columns.length;n++){const i=e.columns[n];if(i.columnKey===t){r=i;break}}return r||na("ElTable",`No column matching with column-key: ${t}`),r},v1=function(e,t,r){const n=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return n?bA(e,n[0]):null},Yt=(e,t)=>{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)},Ja=function(e,t){const r={};return(e||[]).forEach((n,i)=>{r[Yt(n,t)]={row:n,index:i}}),r};function KW(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(We(t,n)){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function ky(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function wA(e){return e===""||e!==void 0&&(e=ky(e),Number.isNaN(e)&&(e=80)),e}function XW(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function ZW(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Fl(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,be(t.children)&&t.children.forEach(l=>{Fl(e,l,r??!a)})};return Br(r)?r&&!a?o("add"):!r&&a&&o("remove"):o(a?"remove":"add"),n}function QW(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 c=u[r];i(c)||a(u,c,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];i(s)||a(o,s,0)})}let ui;function JW(e,t,r,n,i){i=aM({enterable:!0,showArrow:!0},i);const a=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function s(){const g=i.effect==="light",m=document.createElement("div");return m.className=[`${a}-popper`,g?"is-light":"is-dark",i.popperClass||""].join(" "),r=UW(r),m.innerHTML=r,m.style.zIndex=String(n()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${a}-popper__arrow`,g}function u(){c&&c.update()}ui==null||ui(),ui=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",ui),ui=void 0}catch{}};let c=null,f=u,d=ui;i.enterable&&({onOpen:f,onClose:d}=DM({showAfter:i.showAfter,hideAfter:i.hideAfter,open:u,close:ui}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const v=[];if(i.offset&&v.push({name:"offset",options:{offset:[0,i.offset]}}),i.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=i.popperOptions||{};return c=EM(t,h,{placement:i.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",ui),c}function xA(e){return e.children?E5(e.children,xA):[e]}function p1(e,t){return e+t.colSpan}const SA=(e,t,r,n)=>{let i=0,a=e;const o=r.states.columns.value;if(n){const l=xA(n[e]);i=o.slice(0,o.indexOf(l[0])).reduce(p1,0),a=i+l.reduce(p1,0)-1}else i=e;let s;switch(t){case"left":a<r.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":i>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:a<r.states.fixedLeafColumnsLength.value?s="left":i>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:i,after:a}:{}},Ny=(e,t,r,n,i,a=0)=>{const o=[],{direction:s,start:l,after:u}=SA(t,r,n,i);if(s){const c=s==="left";o.push(`${e}-fixed-column--${s}`),c&&u+a===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function g1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Fy=(e,t,r,n)=>{const{direction:i,start:a=0,after:o=0}=SA(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(g1,0):s.right=u.slice(o+1).reverse().reduce(g1,0),s},Ts=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function eV(e){const t=ct(),r=B(!1),n=B([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const c=Ja(n.value,u);n.value=l.reduce((f,d)=>{const h=Yt(d,u);return c[h]&&f.push(d),f},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{Fl(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=Ja(u,c);n.value=l.reduce((d,h)=>{const v=f[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Ja(n.value,u)[Yt(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function tV(e){const t=ct(),r=B(null),n=B(null),i=u=>{t.store.assertRowKey(),r.value=u,o(u)},a=()=>{r.value=null},o=u=>{const{data:c,rowKey:f}=e;let d=null;f.value&&(d=(E(c)||[]).find(h=>Yt(h,f.value)===u)),n.value=d,t.emit("current-change",n.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:a,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=n.value;if(u&&u!==c){n.value=u,t.emit("current-change",n.value,c);return}!u&&c&&(n.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=n.value;if(!c.includes(f)&&f){if(u){const d=Yt(f,u);o(d)}else n.value=null;n.value===null&&t.emit("current-change",null,f)}else r.value&&(o(r.value),a())},states:{_currentRowKey:r,currentRow:n}}}function rV(e){const t=B([]),r=B({}),n=B(16),i=B(!1),a=B({}),o=B("hasChildren"),s=B("children"),l=ct(),u=k(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=k(()=>{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=Yt(w,m);x.children.push(S),w[o.value]&&!_[S]&&(_[S]={children:[]})}),_[b]=x}}),_}),f=m=>{const y=e.rowKey.value,_={};return QW(m,(b,x,w)=>{const S=Yt(b,y);Array.isArray(x)?_[S]={children:x.map(C=>Yt(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=c.value,w=Object.keys(b),S={};if(w.length){const C=E(r),M=[],P=(T,D)=>{if(m)return t.value?y||t.value.includes(D):!!(y||T!=null&&T.expanded);{const N=y||t.value&&t.value.includes(D);return!!(T!=null&&T.expanded||N)}};w.forEach(T=>{const D=C[T],N={...b[T]};if(N.expanded=P(D,T),N.lazy){const{loaded:H=!1,loading:$=!1}=D||{};N.loaded=!!H,N.loading=!!$,M.push(T)}S[T]=N});const A=Object.keys(x);i.value&&A.length&&M.length&&A.forEach(T=>{const D=C[T],N=x[T].children;if(M.includes(T)){if(S[T].children.length!==0)throw new Error("[ElTable]children must be an empty array.");S[T].children=N}else{const{loaded:H=!1,loading:$=!1}=D||{};S[T]={lazy:!0,loaded:!!H,loading:!!$,expanded:P(D,T),children:N,level:""}}})}r.value=S,(_=l.store)==null||_.updateTableScrollY()};Se(()=>t.value,()=>{d(!0)}),Se(()=>u.value,()=>{d()}),Se(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,y)=>{l.store.assertRowKey();const _=e.rowKey.value,b=Yt(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,_=Yt(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:f,states:{expandRowKeys:t,treeData:r,indent:n,lazy:i,lazyTreeNodeMap:a,lazyColumnIdentifier:o,childrenColumnName:s}}}const nV=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:YW(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},Df=e=>{const t=[];return e.forEach(r=>{r.children?t.push.apply(t,Df(r.children)):t.push(r)}),t};function iV(){var e;const t=ct(),{size:r}=$d((e=t.proxy)==null?void 0:e.$props),n=B(null),i=B([]),a=B([]),o=B(!1),s=B([]),l=B([]),u=B([]),c=B([]),f=B([]),d=B([]),h=B([]),v=B([]),p=[],g=B(0),m=B(0),y=B(0),_=B(!1),b=B([]),x=B(!1),w=B(!1),S=B(null),C=B({}),M=B(null),P=B(null),A=B(null),T=B(null),D=B(null);Se(i,()=>t.state&&G(!1),{deep:!0});const N=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},H=ve=>{var Pe;(Pe=ve.children)==null||Pe.forEach(je=>{je.fixed=ve.fixed,H(je)})},$=()=>{s.value.forEach(nt=>{H(nt)}),c.value=s.value.filter(nt=>nt.fixed===!0||nt.fixed==="left"),f.value=s.value.filter(nt=>nt.fixed==="right"),c.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,c.value.unshift(s.value[0]));const ve=s.value.filter(nt=>!nt.fixed);l.value=[].concat(c.value).concat(ve).concat(f.value);const Pe=Df(ve),je=Df(c.value),Be=Df(f.value);g.value=Pe.length,m.value=je.length,y.value=Be.length,u.value=[].concat(je).concat(Pe).concat(Be),o.value=c.value.length>0||f.value.length>0},G=(ve,Pe=!1)=>{ve&&$(),Pe?t.state.doLayout():t.state.debouncedUpdateLayout()},F=ve=>b.value.includes(ve),R=()=>{_.value=!1,b.value.length&&(b.value=[],t.emit("selection-change",[]))},j=()=>{let ve;if(n.value){ve=[];const Pe=Ja(b.value,n.value),je=Ja(i.value,n.value);for(const Be in Pe)We(Pe,Be)&&!je[Be]&&ve.push(Pe[Be].row)}else ve=b.value.filter(Pe=>!i.value.includes(Pe));if(ve.length){const Pe=b.value.filter(je=>!ve.includes(je));b.value=Pe,t.emit("selection-change",Pe.slice())}},re=()=>(b.value||[]).slice(),oe=(ve,Pe=void 0,je=!0)=>{if(Fl(b.value,ve,Pe)){const nt=(b.value||[]).slice();je&&t.emit("select",nt,ve),t.emit("selection-change",nt)}},ye=()=>{var ve,Pe;const je=w.value?!_.value:!(_.value||b.value.length);_.value=je;let Be=!1,nt=0;const it=(Pe=(ve=t==null?void 0:t.store)==null?void 0:ve.states)==null?void 0:Pe.rowKey.value;i.value.forEach((Mt,ri)=>{const ni=ri+nt;S.value?S.value.call(null,Mt,ni)&&Fl(b.value,Mt,je)&&(Be=!0):Fl(b.value,Mt,je)&&(Be=!0),nt+=Q(Yt(Mt,it))}),Be&&t.emit("selection-change",b.value?b.value.slice():[]),t.emit("select-all",b.value)},Ae=()=>{const ve=Ja(b.value,n.value);i.value.forEach(Pe=>{const je=Yt(Pe,n.value),Be=ve[je];Be&&(b.value[Be.index]=Pe)})},V=()=>{var ve,Pe,je;if(((ve=i.value)==null?void 0:ve.length)===0){_.value=!1;return}let Be;n.value&&(Be=Ja(b.value,n.value));const nt=function(ni){return Be?!!Be[Yt(ni,n.value)]:b.value.includes(ni)};let it=!0,Mt=0,ri=0;for(let ni=0,sD=(i.value||[]).length;ni<sD;ni++){const lD=(je=(Pe=t==null?void 0:t.store)==null?void 0:Pe.states)==null?void 0:je.rowKey.value,uD=ni+ri,Dh=i.value[ni],cD=S.value&&S.value.call(null,Dh,uD);if(nt(Dh))Mt++;else if(!S.value||cD){it=!1;break}ri+=Q(Yt(Dh,lD))}Mt===0&&(it=!1),_.value=it},Q=ve=>{var Pe;if(!t||!t.store)return 0;const{treeData:je}=t.store.states;let Be=0;const nt=(Pe=je.value[ve])==null?void 0:Pe.children;return nt&&(Be+=nt.length,nt.forEach(it=>{Be+=Q(it)})),Be},W=(ve,Pe)=>{Array.isArray(ve)||(ve=[ve]);const je={};return ve.forEach(Be=>{C.value[Be.id]=Pe,je[Be.columnKey||Be.id]=Pe}),je},q=(ve,Pe,je)=>{P.value&&P.value!==ve&&(P.value.order=null),P.value=ve,A.value=Pe,T.value=je},le=()=>{let ve=E(a);Object.keys(C.value).forEach(Pe=>{const je=C.value[Pe];if(!je||je.length===0)return;const Be=bA({columns:u.value},Pe);Be&&Be.filterMethod&&(ve=ve.filter(nt=>je.some(it=>Be.filterMethod.call(null,it,nt,Be))))}),M.value=ve},de=()=>{i.value=nV(M.value,{sortingColumn:P.value,sortProp:A.value,sortOrder:T.value})},J=(ve=void 0)=>{ve&&ve.filter||le(),de()},L=ve=>{const{tableHeaderRef:Pe}=t.refs;if(!Pe)return;const je=Object.assign({},Pe.filterPanels),Be=Object.keys(je);if(Be.length)if(typeof ve=="string"&&(ve=[ve]),Array.isArray(ve)){const nt=ve.map(it=>qW({columns:u.value},it));Be.forEach(it=>{const Mt=nt.find(ri=>ri.id===it);Mt&&(Mt.filteredValue=[])}),t.store.commit("filterChange",{column:nt,values:[],silent:!0,multi:!0})}else Be.forEach(nt=>{const it=u.value.find(Mt=>Mt.id===nt);it&&(it.filteredValue=[])}),C.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},I=()=>{P.value&&(q(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:z,toggleRowExpansion:U,updateExpandRows:K,states:ne,isRowExpanded:fe}=eV({data:i,rowKey:n}),{updateTreeExpandKeys:te,toggleTreeExpansion:ie,updateTreeData:X,loadOrToggle:we,states:he}=rV({data:i,rowKey:n}),{updateCurrentRowData:xe,updateCurrentRow:Oe,setCurrentRowKey:ze,states:rt}=tV({data:i,rowKey:n});return{assertRowKey:N,updateColumns:$,scheduleLayout:G,isSelected:F,clearSelection:R,cleanSelection:j,getSelectionRows:re,toggleRowSelection:oe,_toggleAllSelection:ye,toggleAllSelection:null,updateSelectionByRowKey:Ae,updateAllSelected:V,updateFilters:W,updateCurrentRow:Oe,updateSort:q,execFilter:le,execSort:de,execQuery:J,clearFilter:L,clearSort:I,toggleRowExpansion:U,setExpandRowKeysAdapter:ve=>{z(ve),te(ve)},setCurrentRowKey:ze,toggleRowExpansionAdapter:(ve,Pe)=>{u.value.some(({type:Be})=>Be==="expand")?U(ve,Pe):ie(ve,Pe)},isRowExpanded:fe,updateExpandRows:K,updateCurrentRowData:xe,loadOrToggle:we,updateTreeData:X,states:{tableSize:r,rowKey:n,data:i,_data:a,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,updateOrderFns:p,leafColumnsLength:g,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:_,selection:b,reserveSelection:x,selectOnIndeterminate:w,selectable:S,filters:C,filteredData:M,sortingColumn:P,sortProp:A,sortOrder:T,hoverRow:D,...ne,...he,...rt}}}function pg(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=pg(r.children,t)),r)})}function gg(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&gg(t.children)}),e.sort((t,r)=>t.no-r.no)}function aV(){const e=ct(),t=iV();return{ns:Ne("table"),...t,mutations:{setData(o,s){const l=E(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),E(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,u){const c=E(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=pg(c,l)):(c.push(s),f=c),gg(f),o._columns.value=f,o.updateOrderFns.push(u),s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(gg(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const c=E(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),Ft(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=pg(c,l);else{const d=c.indexOf(s);d>-1&&(c.splice(d,1),o._columns.value=c)}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=E(o.columns).find(d=>d.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,f=E(l),d=E(u),h=E(c);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:f,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",f),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(){Ft(()=>e.layout.updateScrollY.apply(e.layout))}}}const Bl={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 oV(e,t){if(!e)throw new Error("Table is required.");const r=aV();return r.toggleAllSelection=id(r._toggleAllSelection,10),Object.keys(Bl).forEach(n=>{CA(TA(t,n),n,r)}),sV(r,t),r}function sV(e,t){Object.keys(Bl).forEach(r=>{Se(()=>TA(t,r),n=>{CA(n,r,e)})})}function CA(e,t,r){let n=e,i=Bl[t];typeof Bl[t]=="object"&&(i=i.key,n=n||Bl[t].default),r.states[i].value=n}function TA(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 lV{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=B(null),this.scrollX=B(!1),this.scrollY=B(!1),this.bodyWidth=B(null),this.fixedWidth=B(null),this.rightFixedWidth=B(null),this.gutterWidth=0;for(const r in t)We(t,r)&&(Ct(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!=null&&r.wrapRef)){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(!Nt)return;const n=this.table.vnode.el;if(t=XW(t),this.height.value=Number(t),!n&&(t||t===0))return Ft(()=>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(!Nt)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),c=l/u;let f=0;a.forEach((d,h)=>{if(h===0)return;const v=Math.floor(Number(d.minWidth||80)*c);f+=v,d.realWidth=Number(d.minWidth||80)+v}),a[0].realWidth=Number(a[0].minWidth||80)+l-f}}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:uV}=Cs,cV=ce({name:"ElTableFilterPanel",components:{ElCheckbox:Cs,ElCheckboxGroup:uV,ElScrollbar:VM,ElTooltip:Ju,ElIcon:lr,ArrowDown:lM,ArrowUp:e3},directives:{ClickOutside:t8},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=ct(),{t:r}=py(),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=B(!1),o=B(null),s=k(()=>e.column&&e.column.filters),l=k({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=k({get(){return e.column?e.column.filteredValue||[]:[]},set(b){e.column&&e.upDataColumn("filteredValue",b)}}),c=k(()=>e.column?e.column.filterMultiple:!0),f=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()};Se(a,b=>{e.column&&e.upDataColumn("filterOpened",b)},{immediate:!0});const _=k(()=>{var b,x;return(x=(b=o.value)==null?void 0:b.popperRef)==null?void 0:x.contentRef});return{tooltipVisible:a,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:f,t:r,ns:n,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),fV={key:0},dV=["disabled"],hV=["label","onClick"];function vV(e,t,r,n,i,a){const o=_r("el-checkbox"),s=_r("el-checkbox-group"),l=_r("el-scrollbar"),u=_r("arrow-up"),c=_r("arrow-down"),f=_r("el-icon"),d=_r("el-tooltip"),h=ZC("click-outside");return Y(),_e(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?(Y(),me("div",fV,[ae("div",{class:ue(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:ue(e.ns.e("checkbox-group"))},{default:Z(()=>[(Y(!0),me(pt,null,l_(e.filters,v=>(Y(),_e(o,{key:v.value,label:v.value},{default:Z(()=>[Bt(Me(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),ae("div",{class:ue(e.ns.e("bottom"))},[ae("button",{class:ue({[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))},Me(e.t("el.table.confirmFilter")),11,dV),ae("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},Me(e.t("el.table.resetFilter")),1)],2)])):(Y(),me("ul",{key:1,class:ue(e.ns.e("list"))},[ae("li",{class:ue([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))},Me(e.t("el.table.clearFilter")),3),(Y(!0),me(pt,null,l_(e.filters,v=>(Y(),me("li",{key:v.value,class:ue([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},Me(v.text),11,hV))),128))],2))]),default:Z(()=>[nr((Y(),me("span",{class:ue([`${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(f,null,{default:Z(()=>[e.column.filterOpened?(Y(),_e(u,{key:0})):(Y(),_e(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var pV=Ze(cV,[["render",vV],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function MA(e){const t=ct();Gd(()=>{r.value.addObserver(t)}),wt(()=>{n(r.value),i(r.value)}),Hu(()=>{n(r.value),i(r.value)}),ks(()=>{r.value.removeObserver(t)});const r=k(()=>{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(c=>{u[c.id]=c});for(let c=0,f=s.length;c<f;c++){const d=s[c],h=d.getAttribute("name"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.width)}},i=a=>{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",a.scrollY.value?a.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=a.scrollY.value?`${a.gutterWidth}px`:"0",d.style.display=a.scrollY.value?"":"none"}};return{tableLayout:r.value,onColumnsChange:n,onScrollableChange:i}}const Qn=Symbol("ElTable");function gV(e,t){const r=ct(),n=Ee(Qn),i=p=>{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=B(null),l=B(!1),u=B({}),c=(p,g)=>{if(Nt&&!(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;Zo(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=P=>{const A=P.clientX-u.value.startMouseLeft,T=u.value.startLeft+A;S.style.left=`${Math.max(w,T)}px`},M=()=>{if(l.value){const{startColumnLeft:P,startLeft:A}=u.value,D=Number.parseInt(S.style.left,10)-P;g.width=g.realWidth=D,m==null||m.emit("header-dragend",g.width,A-P,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",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ss(b,"noclick")},0)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",M)}},f=(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",Ol(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=g):l.value||(b.cursor="",Ol(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},d=()=>{Nt&&(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&&Ol(b,"noclick")){ss(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:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:i}}function mV(e){const t=Ee(Qn),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,c)=>{var f;let d=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const h=Fy(l,c.fixed,e.store,u);return Ts(h,"left"),Ts(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=Ny(r.b(),l,c.fixed,e.store,u),d=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...f];c.children||d.push("is-leaf"),c.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:c})),d.push(r.e("cell")),d.filter(v=>Boolean(v)).join(" ")}}}const AA=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,AA(r.children))):t.push(r)}),t},yV=e=>{let t=1;const r=(a,o)=>{if(o&&(a.level=o.level+1,t<a.level&&(t=a.level)),a.children){let s=0;a.children.forEach(l=>{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<t;a++)n.push([]);return AA(e).forEach(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 _V(e){const t=Ee(Qn),r=k(()=>yV(e.store.states.originColumns.value));return{isGroup:k(()=>{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 bV=ce({name:"ElTableHeader",components:{ElCheckbox:Cs},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=ct(),n=Ee(Qn),i=Ne("table"),a=B({}),{onColumnsChange:o,onScrollableChange:s}=MA(n);wt(async()=>{await Ft(),await Ft();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:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=gV(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:y}=mV(e),{isGroup:_,toggleAllSelection:b,columnRows:x}=_V(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:c,handleMouseMove:f,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:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return Ce("thead",{class:{[e.is("group")]:t}},r.map((g,m)=>Ce("tr",{class:a(m),key:m,style:o(m)},g.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),Ce("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=>c(b,y),onMouseout:d},[Ce("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&&Ce("span",{onClick:b=>f(b,y),class:"caret-wrapper"},[Ce("i",{onClick:b=>f(b,y,"ascending"),class:"sort-caret ascending"}),Ce("i",{onClick:b=>f(b,y,"descending"),class:"sort-caret descending"})]),y.filterable&&Ce(pV,{store:h,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(b,x)=>{y[b]=x}})])]))))))}});function wV(e){const t=Ee(Qn),r=B(""),n=B(Ce("div")),{nextZIndex:i}=Ay(),a=(h,v,p)=>{var g;const m=t,y=Qh(h);let _;const b=(g=m==null?void 0:m.vnode.el)==null?void 0:g.dataset.prefix;y&&(_=v1({columns:e.store.states.columns.value},y,b),_&&(m==null||m.emit(`cell-${p}`,v,_,y,h))),m==null||m.emit(`row-${p}`,v,_,h)},o=(h,v)=>{a(h,v,"dblclick")},s=(h,v)=>{e.store.commit("setCurrentRow",v),a(h,v,"click")},l=(h,v)=>{a(h,v,"contextmenu")},u=id(h=>{e.store.commit("setHoverRow",h)},30),c=id(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(h,v,p)=>{var g;const m=t,y=Qh(h),_=(g=m==null?void 0:m.vnode.el)==null?void 0:g.dataset.prefix;if(y){const C=v1({columns:e.store.states.columns.value},y,_),M=m.hoverState={cell:y,column:C,row:v};m==null||m.emit("cell-mouse-enter",M.row,M.column,M.cell,h)}if(!p)return;const b=h.target.querySelector(".cell");if(!(Ol(b,`${_}-tooltip`)&&b.childNodes.length))return;const x=document.createRange();x.setStart(b,0),x.setEnd(b,b.childNodes.length);const w=Math.round(x.getBoundingClientRect().width),S=(Number.parseInt(Mb(b,"paddingLeft"),10)||0)+(Number.parseInt(Mb(b,"paddingRight"),10)||0);(w+S>b.offsetWidth||b.scrollWidth>b.offsetWidth)&&JW(t==null?void 0:t.refs.tableWrapper,y,y.innerText||y.textContent,i,p)},handleCellMouseLeave:h=>{if(!Qh(h))return;const p=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",p==null?void 0:p.row,p==null?void 0:p.column,p==null?void 0:p.cell,h)},tooltipContent:r,tooltipTrigger:n}}function xV(e){const t=Ee(Qn),r=Ne("table");return{getRowStyle:(u,c)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(r.em("row","striped"));const d=t==null?void 0:t.props.rowClassName;return typeof d=="string"?f.push(d):typeof d=="function"&&f.push(d.call(null,{row:u,rowIndex:c})),f},getCellStyle:(u,c,f,d)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const p=Fy(c,e==null?void 0:e.fixed,e.store);return Ts(p,"left"),Ts(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=Ny(r.b(),c,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:c,row:f,column:d})),p.push(r.e("cell")),p.filter(m=>Boolean(m)).join(" ")},getSpan:(u,c,f,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:c,rowIndex:f,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,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(f,f+c);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function SV(e){const t=Ee(Qn),r=Ne("table"),{handleDoubleClick:n,handleClick:i,handleContextMenu:a,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=wV(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=xV(e),y=k(()=>e.store.states.columns.value.findIndex(({type:S})=>S==="default")),_=(S,C)=>{const M=t.props.rowKey;return M?Yt(S,M):C},b=(S,C,M,P=!1)=>{const{tooltipEffect:A,tooltipOptions:T,store:D}=e,{indent:N,columns:H}=D.states,$=h(S,C);let G=!0;return M&&($.push(r.em("row",`level-${M.level}`)),G=M.display),Ce("tr",{style:[G?null:{display:"none"},d(S,C)],class:$,key:_(S,C),onDblclick:R=>n(R,S),onClick:R=>i(R,S),onContextmenu:R=>a(R,S),onMouseenter:()=>o(C),onMouseleave:s},H.value.map((R,j)=>{const{rowspan:re,colspan:oe}=g(S,R,C,j);if(!re||!oe)return null;const ye={...R};ye.realWidth=m(H.value,oe,j);const Ae={store:e.store,_self:e.context||t,column:ye,row:S,$index:C,cellIndex:j,expanded:P};j===y.value&&M&&(Ae.treeNode={indent:M.level*N.value,level:M.level},typeof M.expanded=="boolean"&&(Ae.treeNode.expanded=M.expanded,"loading"in M&&(Ae.treeNode.loading=M.loading),"noLazyChildren"in M&&(Ae.treeNode.noLazyChildren=M.noLazyChildren)));const V=`${C},${j}`,Q=ye.columnKey||ye.rawColumnKey||"",W=x(j,R,Ae),q=R.showOverflowTooltip&&aM({effect:A},T,R.showOverflowTooltip);return Ce("td",{style:v(C,j,S,R),class:p(C,j,S,R,oe-1),key:`${Q}${V}`,rowspan:re,colspan:oe,onMouseenter:le=>l(le,S,q),onMouseleave:u},[W])}))},x=(S,C,M)=>C.renderCell(M);return{wrappedRowRender:(S,C)=>{const M=e.store,{isRowExpanded:P,assertRowKey:A}=M,{treeData:T,lazyTreeNodeMap:D,childrenColumnName:N,rowKey:H}=M.states,$=M.states.columns.value;if($.some(({type:F})=>F==="expand")){const F=P(S),R=b(S,C,void 0,F),j=t.renderExpanded;return F?j?[[R,Ce("tr",{key:`expanded-row__${R.key}`},[Ce("td",{colspan:$.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[j({row:S,$index:C,store:M,expanded:F})])])]]:(console.error("[Element Error]renderExpanded is required."),R):[[R]]}else if(Object.keys(T.value).length){A();const F=Yt(S,H.value);let R=T.value[F],j=null;R&&(j={expanded:R.expanded,level:R.level,display:!0},typeof R.lazy=="boolean"&&(typeof R.loaded=="boolean"&&R.loaded&&(j.noLazyChildren=!(R.children&&R.children.length)),j.loading=R.loading));const re=[b(S,C,j)];if(R){let oe=0;const ye=(V,Q)=>{V&&V.length&&Q&&V.forEach(W=>{const q={display:Q.display&&Q.expanded,level:Q.level+1,expanded:!1,noLazyChildren:!1,loading:!1},le=Yt(W,H.value);if(le==null)throw new Error("For nested data item, row-key is required.");if(R={...T.value[le]},R&&(q.expanded=R.expanded,R.level=R.level||q.level,R.display=!!(R.expanded&&q.display),typeof R.lazy=="boolean"&&(typeof R.loaded=="boolean"&&R.loaded&&(q.noLazyChildren=!(R.children&&R.children.length)),q.loading=R.loading)),oe++,re.push(b(W,C+oe,q)),R){const de=D.value[le]||W[N.value];ye(de,R)}})};R.display=!0;const Ae=D.value[F]||S[N.value];ye(Ae,R)}return re}else return b(S,C,void 0)},tooltipContent:c,tooltipTrigger:f}}const CV={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 TV=ce({name:"ElTableBody",props:CV,setup(e){const t=ct(),r=Ee(Qn),n=Ne("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}=SV(e),{onColumnsChange:s,onScrollableChange:l}=MA(r);return Se(e.store.states.hoverRow,(u,c)=>{if(!e.store.states.isComplex.value||!Nt)return;let f=window.requestAnimationFrame;f||(f=d=>window.setTimeout(d,16)),f(()=>{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[c],p=h[u];v&&ss(v,"hover-row"),p&&Zo(p,"hover-row")})}),ks(()=>{var u;(u=ui)==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 Ce("tbody",{},[r.reduce((n,i)=>n.concat(e(i,n.length)),[])])}});function By(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 Ce("colgroup",{},r.map(i=>Ce("col",n(i))))}By.props=["columns","tableLayout"];function MV(){const e=Ee(Qn),t=e==null?void 0:e.store,r=k(()=>t.states.fixedLeafColumnsLength.value),n=k(()=>t.states.rightFixedColumns.value.length),i=k(()=>t.states.columns.value.length),a=k(()=>t.states.fixedColumns.value.length),o=k(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:n,columnsCount:i,leftFixedCount:a,rightFixedCount:o,columns:t.states.columns}}function AV(e){const{columns:t}=MV(),r=Ne("table");return{getCellClasses:(a,o)=>{const s=a[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...Ny(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=Fy(o,a.fixed,e.store);return Ts(s,"left"),Ts(s,"right"),s},columns:t}}var EV=ce({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}=AV(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 c=o.map(v=>Number(v[l.property])),f=[];let d=!0;c.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const p=`${v}`.split(".")[1];f.push(p?p.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((v,p)=>{const g=Number(p);return Number.isNaN(+g)?v:Number.parseFloat((v+p).toFixed(Math.min(h,20)))},0)}),Ce("table",{class:a.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[By({columns:e}),Ce("tbody",[Ce("tr",{},[...e.map((l,u)=>Ce("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:r(e,u),style:t(l,u)},[Ce("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function PV(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,f)=>{e.toggleRowSelection(c,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{e.toggleRowExpansionAdapter(c,f)},clearSort:()=>{e.clearSort()},sort:(c,f)=>{e.commit("sort",{prop:c,order:f})}}}function LV(e,t,r,n){const i=B(!1),a=B(null),o=B(!1),s=F=>{o.value=F},l=B({width:null,height:null,headerHeight:null}),u=B(!1),c={display:"inline-block",verticalAlign:"middle"},f=B(),d=B(0),h=B(0),v=B(0),p=B(0);io(()=>{t.setHeight(e.height)}),io(()=>{t.setMaxHeight(e.maxHeight)}),Se(()=>[e.currentRowKey,r.states.rowKey],([F,R])=>{!E(R)||!E(F)||r.setCurrentRowKey(`${F}`)},{immediate:!0}),Se(()=>e.data,F=>{n.store.commit("setData",F)},{immediate:!0,deep:!0}),io(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},m=(F,R)=>{const{pixelX:j,pixelY:re}=R;Math.abs(j)>=Math.abs(re)&&(n.refs.bodyWrapper.scrollLeft+=R.pixelX/5)},y=k(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),_=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),b=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(C)};wt(async()=>{await Ft(),r.updateColumns(),M(),requestAnimationFrame(b);const F=n.vnode.el,R=n.refs.headerWrapper;e.flexible&&F&&F.parentElement&&(F.parentElement.style.minWidth="0"),l.value={width:f.value=F.offsetWidth,height:F.offsetHeight,headerHeight:e.showHeader&&R?R.offsetHeight:null},r.states.columns.value.forEach(j=>{j.filteredValue&&j.filteredValue.length&&n.store.commit("filterChange",{column:j,values:j.filteredValue,silent:!0})}),n.$ready=!0});const x=(F,R)=>{if(!F)return;const j=Array.from(F.classList).filter(re=>!re.startsWith("is-scrolling-"));j.push(t.scrollX.value?R:"is-scrolling-none"),F.className=j.join(" ")},w=F=>{const{tableWrapper:R}=n.refs;x(R,F)},S=F=>{const{tableWrapper:R}=n.refs;return!!(R&&R.classList.contains(F))},C=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const V="is-scrolling-none";S(V)||w(V);return}const F=n.refs.scrollBarRef.wrapRef;if(!F)return;const{scrollLeft:R,offsetWidth:j,scrollWidth:re}=F,{headerWrapper:oe,footerWrapper:ye}=n.refs;oe&&(oe.scrollLeft=R),ye&&(ye.scrollLeft=R);const Ae=re-j-1;R>=Ae?w("is-scrolling-right"):w(R===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&xn(n.refs.scrollBarRef.wrapRef,"scroll",C,{passive:!0}),e.fit?gs(n.vnode.el,P):xn(window,"resize",P),gs(n.refs.bodyWrapper,()=>{var F,R;P(),(R=(F=n.refs)==null?void 0:F.scrollBarRef)==null||R.update()}))},P=()=>{var F,R,j;const re=n.vnode.el;if(!n.$ready||!re)return;let oe=!1;const{width:ye,height:Ae,headerHeight:V}=l.value,Q=f.value=re.offsetWidth;ye!==Q&&(oe=!0);const W=re.offsetHeight;(e.height||y.value)&&Ae!==W&&(oe=!0);const q=e.tableLayout==="fixed"?n.refs.headerWrapper:(F=n.refs.tableHeaderRef)==null?void 0:F.$el;e.showHeader&&(q==null?void 0:q.offsetHeight)!==V&&(oe=!0),d.value=((R=n.refs.tableWrapper)==null?void 0:R.scrollHeight)||0,v.value=(q==null?void 0:q.scrollHeight)||0,p.value=((j=n.refs.footerWrapper)==null?void 0:j.offsetHeight)||0,h.value=d.value-v.value-p.value,oe&&(l.value={width:Q,height:W,headerHeight:e.showHeader&&(q==null?void 0:q.offsetHeight)||0},b())},A=ia(),T=k(()=>{const{bodyWidth:F,scrollY:R,gutterWidth:j}=t;return F.value?`${F.value-(R.value?j:0)}px`:""}),D=k(()=>e.maxHeight?"fixed":e.tableLayout),N=k(()=>{if(e.data&&e.data.length)return null;let F="100%";e.height&&h.value&&(F=`${h.value}px`);const R=f.value;return{width:R?`${R}px`:"",height:F}}),H=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`}:{}),$=k(()=>{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 F=e.maxHeight;if(d.value>=Number(F))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:N,handleFixedMousewheel:(F,R)=>{const j=n.refs.bodyWrapper;if(Math.abs(R.spinY)>0){const re=j.scrollTop;R.pixelY<0&&re!==0&&F.preventDefault(),R.pixelY>0&&j.scrollHeight-j.clientHeight>re&&F.preventDefault(),j.scrollTop+=Math.ceil(R.pixelY/5)}else j.scrollLeft+=Math.ceil(R.pixelX/5)},resizeProxyVisible:o,bodyWidth:T,resizeState:l,doLayout:b,tableBodyStyles:_,tableLayout:D,scrollbarViewStyle:c,tableInnerStyle:H,scrollbarStyle:$}}function DV(e){const t=B(),r=()=>{const i=e.vnode.el.querySelector(".hidden-columns"),a={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(s=>s())}),t.value.observe(i,a)};wt(()=>{r()}),ks(()=>{var n;(n=t.value)==null||n.disconnect()})}var IV={data:{type:Array,default:()=>[]},size:Xu,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 OV=()=>{const e=B(),t=(a,o)=>{const s=e.value;s&&s.scrollTo(a,o)},r=(a,o)=>{const s=e.value;s&&$t(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 RV=1;const kV=ce({name:"ElTable",directives:{Mousewheel:l8},components:{TableHeader:bV,TableBody:TV,TableFooter:EV,ElScrollbar:VM,hColgroup:By},props:IV,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}=py(),r=Ne("table"),n=ct();At(Qn,n);const i=oV(n,e);n.store=i;const a=new lV({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=a;const o=k(()=>(i.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=PV(i),{isHidden:g,renderExpanded:m,setDragVisible:y,isGroup:_,handleMouseLeave:b,handleHeaderFooterMousewheel:x,tableSize:w,emptyBlockStyle:S,handleFixedMousewheel:C,resizeProxyVisible:M,bodyWidth:P,resizeState:A,doLayout:T,tableBodyStyles:D,tableLayout:N,scrollbarViewStyle:H,tableInnerStyle:$,scrollbarStyle:G}=LV(e,a,i,n),{scrollBarRef:F,scrollTo:R,setScrollLeft:j,setScrollTop:re}=OV(),oe=id(T,50),ye=`${r.namespace.value}-table_${RV++}`;n.tableId=ye,n.state={isGroup:_,resizeState:A,doLayout:T,debouncedUpdateLayout:oe};const Ae=k(()=>e.sumText||t("el.table.sumText")),V=k(()=>e.emptyText||t("el.table.emptyText"));return DV(n),{ns:r,layout:a,store:i,handleHeaderFooterMousewheel:x,handleMouseLeave:b,tableId:ye,tableSize:w,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:M,resizeState:A,isGroup:_,bodyWidth:P,tableBodyStyles:D,emptyBlockStyle:S,debouncedUpdateLayout:oe,handleFixedMousewheel:C,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:T,sort:p,t,setDragVisible:y,context:n,computedSumText:Ae,computedEmptyText:V,tableLayout:N,scrollbarViewStyle:H,tableInnerStyle:$,scrollbarStyle:G,scrollBarRef:F,scrollTo:R,setScrollLeft:j,setScrollTop:re}}}),NV=["data-prefix"],FV={ref:"hiddenColumns",class:"hidden-columns"};function BV(e,t,r,n,i,a){const o=_r("hColgroup"),s=_r("table-header"),l=_r("table-body"),u=_r("el-scrollbar"),c=_r("table-footer"),f=ZC("mousewheel");return Y(),me("div",{ref:"tableWrapper",class:ue([{[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:St(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[ae("div",{class:ue(e.ns.e("inner-wrapper")),style:St(e.tableInnerStyle)},[ae("div",FV,[$e(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?nr((Y(),me("div",{key:0,ref:"headerWrapper",class:ue(e.ns.e("header-wrapper"))},[ae("table",{ref:"tableHeader",class:ue(e.ns.e("header")),style:St(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)),[[f,e.handleHeaderFooterMousewheel]]):Fe("v-if",!0),ae("div",{ref:"bodyWrapper",class:ue(e.ns.e("body-wrapper"))},[ee(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Z(()=>[ae("table",{ref:"tableBody",class:ue(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:St({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"?(Y(),_e(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"])):Fe("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?(Y(),me("div",{key:0,ref:"emptyBlock",style:St(e.emptyBlockStyle),class:ue(e.ns.e("empty-block"))},[ae("span",{class:ue(e.ns.e("empty-text"))},[$e(e.$slots,"empty",{},()=>[Bt(Me(e.computedEmptyText),1)])],2)],6)):Fe("v-if",!0),e.$slots.append?(Y(),me("div",{key:1,ref:"appendWrapper",class:ue(e.ns.e("append-wrapper"))},[$e(e.$slots,"append")],2)):Fe("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?nr((Y(),me("div",{key:1,ref:"footerWrapper",class:ue(e.ns.e("footer-wrapper"))},[ee(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:St(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[yi,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):Fe("v-if",!0),e.border||e.isGroup?(Y(),me("div",{key:2,class:ue(e.ns.e("border-left-patch"))},null,2)):Fe("v-if",!0)],6),nr(ae("div",{ref:"resizeProxy",class:ue(e.ns.e("column-resize-proxy"))},null,2),[[yi,e.resizeProxyVisible]])],46,NV)}var $V=Ze(kV,[["render",BV],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const HV={selection:"table-column--selection",expand:"table__expand-column"},zV={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:""}},WV=e=>HV[e]||"",VV={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ce(Cs,{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 Ce(Cs,{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)),Ce("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")),Ce("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ce(lr,null,{default:()=>[Ce(dy)]})]})},sortable:!1,resizable:!1}};function GV({row:e,column:t,$index:r}){var n;const i=t.property,a=i&&Sf(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 UV({row:e,treeNode:t,store:r},n=!1){const{ns:i}=r;if(!t)return n?[Ce("span",{class:i.e("placeholder")})]:null;const a=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&a.push(Ce("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=dy;t.loading&&(l=hy),a.push(Ce("div",{class:s,onClick:o},{default:()=>[Ce(lr,{class:{[i.is("loading")]:t.loading}},{default:()=>[Ce(l)]})]}))}else a.push(Ce("span",{class:i.e("placeholder")}));return a}function m1(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function jV(e,t){const r=ct();return{registerComplexWatchers:()=>{const a=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=m1(a,o);Object.keys(s).forEach(l=>{const u=o[l];We(t,u)&&Se(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=ky(c)),u==="minWidth"&&l==="realMinWidth"&&(f=wA(c)),r.columnConfig.value[u]=f,r.columnConfig.value[l]=f;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=m1(a,o);Object.keys(s).forEach(l=>{const u=o[l];We(t,u)&&Se(()=>t[u],c=>{r.columnConfig.value[l]=c})})}}}function YV(e,t,r){const n=ct(),i=B(""),a=B(!1),o=B(),s=B(),l=Ne("table");io(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),io(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=k(()=>{let b=n.vnode.vParent||n.parent;for(;b&&!b.tableId&&!b.columnId;)b=b.vnode.vParent||b.parent;return b}),c=k(()=>{const{store:b}=n.parent;if(!b)return!1;const{treeData:x}=b.states,w=x.value;return w&&Object.keys(w).length>0}),f=B(ky(e.width)),d=B(wA(e.minWidth)),h=b=>(f.value&&(b.width=f.value),d.value&&(b.minWidth=d.value),!f.value&&d.value&&(b.width=void 0),b.minWidth||(b.minWidth=80),b.realWidth=Number(b.width===void 0?b.minWidth:b.width),b),v=b=>{const x=b.type,w=VV[x]||{};Object.keys(w).forEach(C=>{const M=w[C];C!=="className"&&M!==void 0&&(b[C]=M)});const S=WV(x);if(S){const C=`${E(l.namespace)}-${S}`;b.className=b.className?`${b.className} ${C}`:C}return b},p=b=>{Array.isArray(b)?b.forEach(w=>x(w)):x(b);function x(w){var S;((S=w==null?void 0:w.type)==null?void 0:S.name)==="ElTableColumn"&&(w.vParent=n)}};return{columnId:i,realAlign:o,isSubColumn:a,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:b=>{e.renderHeader||b.type!=="selection"&&(b.renderHeader=w=>{n.columnConfig.value.label;const S=t.header;return S?S(w):b.label});let x=b.renderCell;return b.type==="expand"?(b.renderCell=w=>Ce("div",{class:"cell"},[x(w)]),r.value.renderExpanded=w=>t.default?t.default(w):t.default):(x=x||GV,b.renderCell=w=>{let S=null;if(t.default){const D=t.default(w);S=D.some(N=>N.type!==xr)?D:x(w)}else S=x(w);const{columns:C}=r.value.store.states,M=C.value.findIndex(D=>D.type==="default"),P=c.value&&w.cellIndex===M,A=UV(w,P),T={class:"cell",style:{}};return b.showOverflowTooltip&&(T.class=`${T.class} ${E(l.namespace)}-tooltip`,T.style={width:`${(w.column.realWidth||Number(w.column.width))-1}px`}),p(S),Ce("div",T,[A,S])}),b},getPropsData:(...b)=>b.reduce((x,w)=>(Array.isArray(w)&&w.forEach(S=>{x[S]=e[S]}),x),{}),getColumnElIndex:(b,x)=>Array.prototype.indexOf.call(b,x),updateColumnOrder:()=>{r.value.store.commit("updateColumnOrder",n.columnConfig.value)}}}var qV={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 KV=1;var EA=ce({name:"ElTableColumn",components:{ElCheckbox:Cs},props:qV,setup(e,{slots:t}){const r=ct(),n=B({}),i=k(()=>{let _=r.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:a,registerComplexWatchers:o}=jV(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g,updateColumnOrder:m}=YV(e,t,i),y=c.value;s.value=`${y.tableId||y.columnId}_column_${KV++}`,Gd(()=>{l.value=i.value!==y;const _=e.type||"default",b=e.sortable===""?!0:e.sortable,x={...zV[_],id:s.value,type:_,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:b,index:e.index,rawColumnKey:r.vnode.key};let P=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);P=KW(x,P),P=ZW(h,f,d)(P),n.value=P,a(),o()}),wt(()=>{var _;const b=c.value,x=l.value?b.vnode.el.children:(_=b.refs.hiddenColumns)==null?void 0:_.children,w=()=>p(x||[],r.vnode.el);n.value.getColumnIndex=w,w()>-1&&i.value.store.commit("insertColumn",n.value,l.value?b.columnConfig.value:null,m)}),Xt(()=>{i.value.store.commit("removeColumn",n.value,l.value?y.columnConfig.value:null,m)}),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===pt&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!He(s==null?void 0:s.children)&&i.push(s)});return Ce("div",i)}catch{return Ce("div",[])}}});const XV=hr($V,{TableColumn:EA}),ZV=fa(EA),PA=["success","info","warning","error"],mr=Ya({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:Nt?document.body:void 0}),QV=tt({customClass:{type:String,default:mr.customClass},center:{type:Boolean,default:mr.center},dangerouslyUseHTMLString:{type:Boolean,default:mr.dangerouslyUseHTMLString},duration:{type:Number,default:mr.duration},icon:{type:Wn,default:mr.icon},id:{type:String,default:mr.id},message:{type:Le([String,Object,Function]),default:mr.message},onClose:{type:Le(Function),required:!1},showClose:{type:Boolean,default:mr.showClose},type:{type:String,values:PA,default:mr.type},offset:{type:Number,default:mr.offset},zIndex:{type:Number,default:mr.zIndex},grouping:{type:Boolean,default:mr.grouping},repeatNum:{type:Number,default:mr.repeatNum}}),JV={destroy:()=>!0},Sn=LC([]),eG=e=>{const t=Sn.findIndex(i=>i.id===e),r=Sn[t];let n;return t>0&&(n=Sn[t-1]),{current:r,prev:n}},tG=e=>{const{prev:t}=eG(e);return t?t.vm.exposed.bottom.value:0},rG=(e,t)=>Sn.findIndex(n=>n.id===e)>0?20:t,nG=["id"],iG=["innerHTML"],aG=ce({name:"ElMessage"}),oG=ce({...aG,props:QV,emits:JV,setup(e,{expose:t}){const r=e,{Close:n}=B3,{ns:i,zIndex:a}=sH("message"),{currentZIndex:o,nextZIndex:s}=a,l=B(),u=B(!1),c=B(0);let f;const d=k(()=>r.type?r.type==="error"?"danger":r.type:"info"),h=k(()=>{const S=r.type;return{[i.bm("icon",S)]:S&&Ab[S]}}),v=k(()=>r.icon||Ab[r.type]||""),p=k(()=>tG(r.id)),g=k(()=>rG(r.id,r.offset)+p.value),m=k(()=>c.value+g.value),y=k(()=>({top:`${g.value}px`,zIndex:o.value}));function _(){r.duration!==0&&({stop:f}=kp(()=>{x()},r.duration))}function b(){f==null||f()}function x(){u.value=!1}function w({code:S}){S===Ot.esc&&x()}return wt(()=>{_(),s(),u.value=!0}),Se(()=>r.repeatNum,()=>{b(),_()}),xn(document,"keydown",w),gs(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:x}),(S,C)=>(Y(),_e(Ci,{name:E(i).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:C[0]||(C[0]=M=>S.$emit("destroy")),persisted:""},{default:Z(()=>[nr(ae("div",{id:S.id,ref_key:"messageRef",ref:l,class:ue([E(i).b(),{[E(i).m(S.type)]:S.type&&!S.icon},E(i).is("center",S.center),E(i).is("closable",S.showClose),S.customClass]),style:St(E(y)),role:"alert",onMouseenter:b,onMouseleave:_},[S.repeatNum>1?(Y(),_e(E(E6),{key:0,value:S.repeatNum,type:E(d),class:ue(E(i).e("badge"))},null,8,["value","type","class"])):Fe("v-if",!0),E(v)?(Y(),_e(E(lr),{key:1,class:ue([E(i).e("icon"),E(h)])},{default:Z(()=>[(Y(),_e(nn(E(v))))]),_:1},8,["class"])):Fe("v-if",!0),$e(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(Y(),me(pt,{key:1},[Fe(" Caution here, message could've been compromised, never use user's input as message "),ae("p",{class:ue(E(i).e("content")),innerHTML:S.message},null,10,iG)],2112)):(Y(),me("p",{key:0,class:ue(E(i).e("content"))},Me(S.message),3))]),S.showClose?(Y(),_e(E(lr),{key:2,class:ue(E(i).e("closeBtn")),onClick:Jf(x,["stop"])},{default:Z(()=>[ee(E(n))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],46,nG),[[yi,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var sG=Ze(oG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let lG=1;const LA=e=>{const t=!e||He(e)||ta(e)||De(e)?{message:e}:e,r={...mr,...t};if(!r.appendTo)r.appendTo=document.body;else if(He(r.appendTo)){let n=document.querySelector(r.appendTo);ys(n)||(n=document.body),r.appendTo=n}return r},uG=e=>{const t=Sn.indexOf(e);if(t===-1)return;Sn.splice(t,1);const{handler:r}=e;r.close()},cG=({appendTo:e,...t},r)=>{const n=`message_${lG++}`,i=t.onClose,a=document.createElement("div"),o={...t,id:n,onClose:()=>{i==null||i(),uG(c)},onDestroy:()=>{O_(null,a)}},s=ee(sG,o,De(o.message)||ta(o.message)?{default:De(o.message)?o.message:()=>o.message}:null);s.appContext=r||Ms._context,O_(s,a),e.appendChild(a.firstElementChild);const l=s.component,c={id:n,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return c},Ms=(e={},t)=>{if(!Nt)return{close:()=>{}};if($t(Qp.max)&&Sn.length>=Qp.max)return{close:()=>{}};const r=LA(e);if(r.grouping&&Sn.length){const i=Sn.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=cG(r,t);return Sn.push(n),n.handler};PA.forEach(e=>{Ms[e]=(t={},r)=>{const n=LA(t);return Ms({...n,type:e},r)}});function fG(e){for(const t of Sn)(!e||e===t.props.type)&&t.handler.close()}Ms.closeAll=fG;Ms._context=null;const DA=$3(Ms,"$message"),dG={id:"app"},hG={class:"grid-content header-color"},vG={class:"header-content"},pG=ae("div",{class:"brand"},[ae("a",{href:"#"},"frp")],-1),gG={class:"dark-switch"},mG=ae("span",null,"Proxies",-1),yG={id:"content"},_G=ae("footer",null,null,-1),bG=ce({__name:"App",setup(e){const t=NR(),r=B(t),n=nR(t),i=a=>{a==""&&window.open("https://github.com/fatedier/frp")};return(a,o)=>{const s=VW,l=wW,u=xW,c=bW,f=pA,d=_r("router-view"),h=vA;return Y(),me("div",dG,[ae("header",hG,[ae("div",vG,[pG,ae("div",gG,[ee(s,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=v=>r.value=v),"inline-prompt":"","active-text":"Dark","inactive-text":"Light",onChange:E(n),style:{"--el-switch-on-color":"#444452","--el-switch-off-color":"#589ef8"}},null,8,["modelValue","onChange"])])])]),ae("section",null,[ee(h,null,{default:Z(()=>[ee(f,{id:"side-nav",xs:24,md:4},{default:Z(()=>[ee(c,{"default-active":"/",mode:"vertical",theme:"light",router:"false",onSelect:i},{default:Z(()=>[ee(l,{index:"/"},{default:Z(()=>[Bt("Overview")]),_:1}),ee(u,{index:"/proxies"},{title:Z(()=>[mG]),default:Z(()=>[ee(l,{index:"/proxies/tcp"},{default:Z(()=>[Bt("TCP")]),_:1}),ee(l,{index:"/proxies/udp"},{default:Z(()=>[Bt("UDP")]),_:1}),ee(l,{index:"/proxies/http"},{default:Z(()=>[Bt("HTTP")]),_:1}),ee(l,{index:"/proxies/https"},{default:Z(()=>[Bt("HTTPS")]),_:1}),ee(l,{index:"/proxies/stcp"},{default:Z(()=>[Bt("STCP")]),_:1}),ee(l,{index:"/proxies/sudp"},{default:Z(()=>[Bt("SUDP")]),_:1})]),_:1}),ee(l,{index:""},{default:Z(()=>[Bt("Help")]),_:1})]),_:1})]),_:1}),ee(f,{xs:24,md:20},{default:Z(()=>[ae("div",yG,[ee(d)])]),_:1})]),_:1})]),_G])}}});/*!
+ */var GW=/["'&<>]/,UW=jW;function jW(e){var t=""+e,r=GW.exec(t);if(!r)return t;var n,i="",a=0,o=0;for(a=r.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=n}return o!==a?i+t.substring(o,a):i}const Qh=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},YW=function(e,t,r,n,i){if(!t&&!n&&(!i||Array.isArray(i)&&!i.length))return e;typeof r=="string"?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const a=n?null:function(s,l){return i?(Array.isArray(i)||(i=[i]),i.map(u=>typeof u=="string"?vu(s,u):u(s,l,e))):(t!=="$key"&&Xe(s)&&"$value"in s&&(s=s.$value),[Xe(s)?vu(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,c=s.key.length;u<c;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.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)},bA=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},qW=function(e,t){let r=null;for(let n=0;n<e.columns.length;n++){const i=e.columns[n];if(i.columnKey===t){r=i;break}}return r||na("ElTable",`No column matching with column-key: ${t}`),r},v1=function(e,t,r){const n=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return n?bA(e,n[0]):null},Yt=(e,t)=>{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)},Ja=function(e,t){const r={};return(e||[]).forEach((n,i)=>{r[Yt(n,t)]={row:n,index:i}}),r};function KW(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(We(t,n)){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function ky(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function wA(e){return e===""||e!==void 0&&(e=ky(e),Number.isNaN(e)&&(e=80)),e}function XW(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function ZW(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Fl(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,be(t.children)&&t.children.forEach(l=>{Fl(e,l,r??!a)})};return Br(r)?r&&!a?o("add"):!r&&a&&o("remove"):o(a?"remove":"add"),n}function QW(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 c=u[r];i(c)||a(u,c,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];i(s)||a(o,s,0)})}let ui;function JW(e,t,r,n,i){i=aM({enterable:!0,showArrow:!0},i);const a=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function s(){const g=i.effect==="light",m=document.createElement("div");return m.className=[`${a}-popper`,g?"is-light":"is-dark",i.popperClass||""].join(" "),r=UW(r),m.innerHTML=r,m.style.zIndex=String(n()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${a}-popper__arrow`,g}function u(){c&&c.update()}ui==null||ui(),ui=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",ui),ui=void 0}catch{}};let c=null,f=u,d=ui;i.enterable&&({onOpen:f,onClose:d}=DM({showAfter:i.showAfter,hideAfter:i.hideAfter,open:u,close:ui}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const v=[];if(i.offset&&v.push({name:"offset",options:{offset:[0,i.offset]}}),i.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=i.popperOptions||{};return c=PM(t,h,{placement:i.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",ui),c}function SA(e){return e.children?P5(e.children,SA):[e]}function p1(e,t){return e+t.colSpan}const xA=(e,t,r,n)=>{let i=0,a=e;const o=r.states.columns.value;if(n){const l=SA(n[e]);i=o.slice(0,o.indexOf(l[0])).reduce(p1,0),a=i+l.reduce(p1,0)-1}else i=e;let s;switch(t){case"left":a<r.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":i>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:a<r.states.fixedLeafColumnsLength.value?s="left":i>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:i,after:a}:{}},Ny=(e,t,r,n,i,a=0)=>{const o=[],{direction:s,start:l,after:u}=xA(t,r,n,i);if(s){const c=s==="left";o.push(`${e}-fixed-column--${s}`),c&&u+a===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function g1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Fy=(e,t,r,n)=>{const{direction:i,start:a=0,after:o=0}=xA(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(g1,0):s.right=u.slice(o+1).reverse().reduce(g1,0),s},Ts=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function eV(e){const t=ct(),r=B(!1),n=B([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const c=Ja(n.value,u);n.value=l.reduce((f,d)=>{const h=Yt(d,u);return c[h]&&f.push(d),f},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{Fl(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=Ja(u,c);n.value=l.reduce((d,h)=>{const v=f[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Ja(n.value,u)[Yt(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function tV(e){const t=ct(),r=B(null),n=B(null),i=u=>{t.store.assertRowKey(),r.value=u,o(u)},a=()=>{r.value=null},o=u=>{const{data:c,rowKey:f}=e;let d=null;f.value&&(d=(P(c)||[]).find(h=>Yt(h,f.value)===u)),n.value=d,t.emit("current-change",n.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:a,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=n.value;if(u&&u!==c){n.value=u,t.emit("current-change",n.value,c);return}!u&&c&&(n.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=n.value;if(!c.includes(f)&&f){if(u){const d=Yt(f,u);o(d)}else n.value=null;n.value===null&&t.emit("current-change",null,f)}else r.value&&(o(r.value),a())},states:{_currentRowKey:r,currentRow:n}}}function rV(e){const t=B([]),r=B({}),n=B(16),i=B(!1),a=B({}),o=B("hasChildren"),s=B("children"),l=ct(),u=k(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=k(()=>{const m=e.rowKey.value,y=Object.keys(a.value),_={};return y.length&&y.forEach(b=>{if(a.value[b].length){const S={children:[]};a.value[b].forEach(w=>{const x=Yt(w,m);S.children.push(x),w[o.value]&&!_[x]&&(_[x]={children:[]})}),_[b]=S}}),_}),f=m=>{const y=e.rowKey.value,_={};return QW(m,(b,S,w)=>{const x=Yt(b,y);Array.isArray(S)?_[x]={children:S.map(C=>Yt(C,y)),level:w}:i.value&&(_[x]={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,S=c.value,w=Object.keys(b),x={};if(w.length){const C=P(r),M=[],E=(T,D)=>{if(m)return t.value?y||t.value.includes(D):!!(y||T!=null&&T.expanded);{const N=y||t.value&&t.value.includes(D);return!!(T!=null&&T.expanded||N)}};w.forEach(T=>{const D=C[T],N={...b[T]};if(N.expanded=E(D,T),N.lazy){const{loaded:H=!1,loading:$=!1}=D||{};N.loaded=!!H,N.loading=!!$,M.push(T)}x[T]=N});const A=Object.keys(S);i.value&&A.length&&M.length&&A.forEach(T=>{const D=C[T],N=S[T].children;if(M.includes(T)){if(x[T].children.length!==0)throw new Error("[ElTable]children must be an empty array.");x[T].children=N}else{const{loaded:H=!1,loading:$=!1}=D||{};x[T]={lazy:!0,loaded:!!H,loading:!!$,expanded:E(D,T),children:N,level:""}}})}r.value=x,(_=l.store)==null||_.updateTableScrollY()};xe(()=>t.value,()=>{d(!0)}),xe(()=>u.value,()=>{d()}),xe(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,y)=>{l.store.assertRowKey();const _=e.rowKey.value,b=Yt(m,_),S=b&&r.value[b];if(b&&S&&"expanded"in S){const w=S.expanded;y=typeof y>"u"?!S.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,_=Yt(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,_,S=>{if(!Array.isArray(S))throw new TypeError("[ElTable] data must be an array");r.value[y].loading=!1,r.value[y].loaded=!0,r.value[y].expanded=!0,S.length&&(a.value[y]=S),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:t,treeData:r,indent:n,lazy:i,lazyTreeNodeMap:a,lazyColumnIdentifier:o,childrenColumnName:s}}}const nV=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:YW(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},Df=e=>{const t=[];return e.forEach(r=>{r.children?t.push.apply(t,Df(r.children)):t.push(r)}),t};function iV(){var e;const t=ct(),{size:r}=$d((e=t.proxy)==null?void 0:e.$props),n=B(null),i=B([]),a=B([]),o=B(!1),s=B([]),l=B([]),u=B([]),c=B([]),f=B([]),d=B([]),h=B([]),v=B([]),p=[],g=B(0),m=B(0),y=B(0),_=B(!1),b=B([]),S=B(!1),w=B(!1),x=B(null),C=B({}),M=B(null),E=B(null),A=B(null),T=B(null),D=B(null);xe(i,()=>t.state&&G(!1),{deep:!0});const N=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},H=ve=>{var Ee;(Ee=ve.children)==null||Ee.forEach(je=>{je.fixed=ve.fixed,H(je)})},$=()=>{s.value.forEach(nt=>{H(nt)}),c.value=s.value.filter(nt=>nt.fixed===!0||nt.fixed==="left"),f.value=s.value.filter(nt=>nt.fixed==="right"),c.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,c.value.unshift(s.value[0]));const ve=s.value.filter(nt=>!nt.fixed);l.value=[].concat(c.value).concat(ve).concat(f.value);const Ee=Df(ve),je=Df(c.value),Be=Df(f.value);g.value=Ee.length,m.value=je.length,y.value=Be.length,u.value=[].concat(je).concat(Ee).concat(Be),o.value=c.value.length>0||f.value.length>0},G=(ve,Ee=!1)=>{ve&&$(),Ee?t.state.doLayout():t.state.debouncedUpdateLayout()},F=ve=>b.value.includes(ve),R=()=>{_.value=!1,b.value.length&&(b.value=[],t.emit("selection-change",[]))},j=()=>{let ve;if(n.value){ve=[];const Ee=Ja(b.value,n.value),je=Ja(i.value,n.value);for(const Be in Ee)We(Ee,Be)&&!je[Be]&&ve.push(Ee[Be].row)}else ve=b.value.filter(Ee=>!i.value.includes(Ee));if(ve.length){const Ee=b.value.filter(je=>!ve.includes(je));b.value=Ee,t.emit("selection-change",Ee.slice())}},re=()=>(b.value||[]).slice(),oe=(ve,Ee=void 0,je=!0)=>{if(Fl(b.value,ve,Ee)){const nt=(b.value||[]).slice();je&&t.emit("select",nt,ve),t.emit("selection-change",nt)}},ye=()=>{var ve,Ee;const je=w.value?!_.value:!(_.value||b.value.length);_.value=je;let Be=!1,nt=0;const it=(Ee=(ve=t==null?void 0:t.store)==null?void 0:ve.states)==null?void 0:Ee.rowKey.value;i.value.forEach((Mt,ri)=>{const ni=ri+nt;x.value?x.value.call(null,Mt,ni)&&Fl(b.value,Mt,je)&&(Be=!0):Fl(b.value,Mt,je)&&(Be=!0),nt+=Q(Yt(Mt,it))}),Be&&t.emit("selection-change",b.value?b.value.slice():[]),t.emit("select-all",b.value)},Ae=()=>{const ve=Ja(b.value,n.value);i.value.forEach(Ee=>{const je=Yt(Ee,n.value),Be=ve[je];Be&&(b.value[Be.index]=Ee)})},V=()=>{var ve,Ee,je;if(((ve=i.value)==null?void 0:ve.length)===0){_.value=!1;return}let Be;n.value&&(Be=Ja(b.value,n.value));const nt=function(ni){return Be?!!Be[Yt(ni,n.value)]:b.value.includes(ni)};let it=!0,Mt=0,ri=0;for(let ni=0,sD=(i.value||[]).length;ni<sD;ni++){const lD=(je=(Ee=t==null?void 0:t.store)==null?void 0:Ee.states)==null?void 0:je.rowKey.value,uD=ni+ri,Dh=i.value[ni],cD=x.value&&x.value.call(null,Dh,uD);if(nt(Dh))Mt++;else if(!x.value||cD){it=!1;break}ri+=Q(Yt(Dh,lD))}Mt===0&&(it=!1),_.value=it},Q=ve=>{var Ee;if(!t||!t.store)return 0;const{treeData:je}=t.store.states;let Be=0;const nt=(Ee=je.value[ve])==null?void 0:Ee.children;return nt&&(Be+=nt.length,nt.forEach(it=>{Be+=Q(it)})),Be},W=(ve,Ee)=>{Array.isArray(ve)||(ve=[ve]);const je={};return ve.forEach(Be=>{C.value[Be.id]=Ee,je[Be.columnKey||Be.id]=Ee}),je},q=(ve,Ee,je)=>{E.value&&E.value!==ve&&(E.value.order=null),E.value=ve,A.value=Ee,T.value=je},le=()=>{let ve=P(a);Object.keys(C.value).forEach(Ee=>{const je=C.value[Ee];if(!je||je.length===0)return;const Be=bA({columns:u.value},Ee);Be&&Be.filterMethod&&(ve=ve.filter(nt=>je.some(it=>Be.filterMethod.call(null,it,nt,Be))))}),M.value=ve},de=()=>{i.value=nV(M.value,{sortingColumn:E.value,sortProp:A.value,sortOrder:T.value})},J=(ve=void 0)=>{ve&&ve.filter||le(),de()},L=ve=>{const{tableHeaderRef:Ee}=t.refs;if(!Ee)return;const je=Object.assign({},Ee.filterPanels),Be=Object.keys(je);if(Be.length)if(typeof ve=="string"&&(ve=[ve]),Array.isArray(ve)){const nt=ve.map(it=>qW({columns:u.value},it));Be.forEach(it=>{const Mt=nt.find(ri=>ri.id===it);Mt&&(Mt.filteredValue=[])}),t.store.commit("filterChange",{column:nt,values:[],silent:!0,multi:!0})}else Be.forEach(nt=>{const it=u.value.find(Mt=>Mt.id===nt);it&&(it.filteredValue=[])}),C.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},I=()=>{E.value&&(q(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:z,toggleRowExpansion:U,updateExpandRows:K,states:ne,isRowExpanded:fe}=eV({data:i,rowKey:n}),{updateTreeExpandKeys:te,toggleTreeExpansion:ie,updateTreeData:X,loadOrToggle:we,states:he}=rV({data:i,rowKey:n}),{updateCurrentRowData:Se,updateCurrentRow:Oe,setCurrentRowKey:ze,states:rt}=tV({data:i,rowKey:n});return{assertRowKey:N,updateColumns:$,scheduleLayout:G,isSelected:F,clearSelection:R,cleanSelection:j,getSelectionRows:re,toggleRowSelection:oe,_toggleAllSelection:ye,toggleAllSelection:null,updateSelectionByRowKey:Ae,updateAllSelected:V,updateFilters:W,updateCurrentRow:Oe,updateSort:q,execFilter:le,execSort:de,execQuery:J,clearFilter:L,clearSort:I,toggleRowExpansion:U,setExpandRowKeysAdapter:ve=>{z(ve),te(ve)},setCurrentRowKey:ze,toggleRowExpansionAdapter:(ve,Ee)=>{u.value.some(({type:Be})=>Be==="expand")?U(ve,Ee):ie(ve,Ee)},isRowExpanded:fe,updateExpandRows:K,updateCurrentRowData:Se,loadOrToggle:we,updateTreeData:X,states:{tableSize:r,rowKey:n,data:i,_data:a,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,updateOrderFns:p,leafColumnsLength:g,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:_,selection:b,reserveSelection:S,selectOnIndeterminate:w,selectable:x,filters:C,filteredData:M,sortingColumn:E,sortProp:A,sortOrder:T,hoverRow:D,...ne,...he,...rt}}}function pg(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=pg(r.children,t)),r)})}function gg(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&gg(t.children)}),e.sort((t,r)=>t.no-r.no)}function aV(){const e=ct(),t=iV();return{ns:Ne("table"),...t,mutations:{setData(o,s){const l=P(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),P(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,u){const c=P(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=pg(c,l)):(c.push(s),f=c),gg(f),o._columns.value=f,o.updateOrderFns.push(u),s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(gg(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const c=P(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),Ft(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=pg(c,l);else{const d=c.indexOf(s);d>-1&&(c.splice(d,1),o._columns.value=c)}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=P(o.columns).find(d=>d.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,f=P(l),d=P(u),h=P(c);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:f,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",f),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(){Ft(()=>e.layout.updateScrollY.apply(e.layout))}}}const Bl={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 oV(e,t){if(!e)throw new Error("Table is required.");const r=aV();return r.toggleAllSelection=id(r._toggleAllSelection,10),Object.keys(Bl).forEach(n=>{CA(TA(t,n),n,r)}),sV(r,t),r}function sV(e,t){Object.keys(Bl).forEach(r=>{xe(()=>TA(t,r),n=>{CA(n,r,e)})})}function CA(e,t,r){let n=e,i=Bl[t];typeof Bl[t]=="object"&&(i=i.key,n=n||Bl[t].default),r.states[i].value=n}function TA(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 lV{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=B(null),this.scrollX=B(!1),this.scrollY=B(!1),this.bodyWidth=B(null),this.fixedWidth=B(null),this.rightFixedWidth=B(null),this.gutterWidth=0;for(const r in t)We(t,r)&&(Ct(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!=null&&r.wrapRef)){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(!Nt)return;const n=this.table.vnode.el;if(t=XW(t),this.height.value=Number(t),!n&&(t||t===0))return Ft(()=>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(!Nt)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),c=l/u;let f=0;a.forEach((d,h)=>{if(h===0)return;const v=Math.floor(Number(d.minWidth||80)*c);f+=v,d.realWidth=Number(d.minWidth||80)+v}),a[0].realWidth=Number(a[0].minWidth||80)+l-f}}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:uV}=Cs,cV=ce({name:"ElTableFilterPanel",components:{ElCheckbox:Cs,ElCheckboxGroup:uV,ElScrollbar:VM,ElTooltip:Ju,ElIcon:lr,ArrowDown:lM,ArrowUp:e3},directives:{ClickOutside:t8},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=ct(),{t:r}=py(),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=B(!1),o=B(null),s=k(()=>e.column&&e.column.filters),l=k({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=k({get(){return e.column?e.column.filteredValue||[]:[]},set(b){e.column&&e.upDataColumn("filteredValue",b)}}),c=k(()=>e.column?e.column.filterMultiple:!0),f=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()};xe(a,b=>{e.column&&e.upDataColumn("filterOpened",b)},{immediate:!0});const _=k(()=>{var b,S;return(S=(b=o.value)==null?void 0:b.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:a,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:f,t:r,ns:n,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),fV={key:0},dV=["disabled"],hV=["label","onClick"];function vV(e,t,r,n,i,a){const o=_r("el-checkbox"),s=_r("el-checkbox-group"),l=_r("el-scrollbar"),u=_r("arrow-up"),c=_r("arrow-down"),f=_r("el-icon"),d=_r("el-tooltip"),h=ZC("click-outside");return Y(),_e(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?(Y(),me("div",fV,[ae("div",{class:ue(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:ue(e.ns.e("checkbox-group"))},{default:Z(()=>[(Y(!0),me(pt,null,l_(e.filters,v=>(Y(),_e(o,{key:v.value,label:v.value},{default:Z(()=>[Bt(Me(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),ae("div",{class:ue(e.ns.e("bottom"))},[ae("button",{class:ue({[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))},Me(e.t("el.table.confirmFilter")),11,dV),ae("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},Me(e.t("el.table.resetFilter")),1)],2)])):(Y(),me("ul",{key:1,class:ue(e.ns.e("list"))},[ae("li",{class:ue([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))},Me(e.t("el.table.clearFilter")),3),(Y(!0),me(pt,null,l_(e.filters,v=>(Y(),me("li",{key:v.value,class:ue([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},Me(v.text),11,hV))),128))],2))]),default:Z(()=>[nr((Y(),me("span",{class:ue([`${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(f,null,{default:Z(()=>[e.column.filterOpened?(Y(),_e(u,{key:0})):(Y(),_e(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var pV=Ze(cV,[["render",vV],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function MA(e){const t=ct();Gd(()=>{r.value.addObserver(t)}),wt(()=>{n(r.value),i(r.value)}),Hu(()=>{n(r.value),i(r.value)}),ks(()=>{r.value.removeObserver(t)});const r=k(()=>{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(c=>{u[c.id]=c});for(let c=0,f=s.length;c<f;c++){const d=s[c],h=d.getAttribute("name"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.width)}},i=a=>{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",a.scrollY.value?a.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=a.scrollY.value?`${a.gutterWidth}px`:"0",d.style.display=a.scrollY.value?"":"none"}};return{tableLayout:r.value,onColumnsChange:n,onScrollableChange:i}}const Qn=Symbol("ElTable");function gV(e,t){const r=ct(),n=Pe(Qn),i=p=>{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=B(null),l=B(!1),u=B({}),c=(p,g)=>{if(Nt&&!(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}`),S=b.getBoundingClientRect(),w=S.left-_+30;Zo(b,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:S.right-_,startColumnLeft:S.left-_,tableLeft:_};const x=m==null?void 0:m.refs.resizeProxy;x.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,T=u.value.startLeft+A;x.style.left=`${Math.max(w,T)}px`},M=()=>{if(l.value){const{startColumnLeft:E,startLeft:A}=u.value,D=Number.parseInt(x.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",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ss(b,"noclick")},0)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",M)}},f=(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",Ol(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=g):l.value||(b.cursor="",Ol(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},d=()=>{Nt&&(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&&Ol(b,"noclick")){ss(b,"noclick");return}if(!g.sortable)return;const S=e.store.states;let w=S.sortProp.value,x;const C=S.sortingColumn.value;(C!==g||C===g&&C.order===null)&&(C&&(C.order=null),S.sortingColumn.value=g,w=g.property),_?x=g.order=_:x=g.order=null,S.sortProp.value=w,S.sortOrder.value=x,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:i}}function mV(e){const t=Pe(Qn),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,c)=>{var f;let d=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const h=Fy(l,c.fixed,e.store,u);return Ts(h,"left"),Ts(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=Ny(r.b(),l,c.fixed,e.store,u),d=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...f];c.children||d.push("is-leaf"),c.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:c})),d.push(r.e("cell")),d.filter(v=>Boolean(v)).join(" ")}}}const AA=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,AA(r.children))):t.push(r)}),t},yV=e=>{let t=1;const r=(a,o)=>{if(o&&(a.level=o.level+1,t<a.level&&(t=a.level)),a.children){let s=0;a.children.forEach(l=>{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<t;a++)n.push([]);return AA(e).forEach(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 _V(e){const t=Pe(Qn),r=k(()=>yV(e.store.states.originColumns.value));return{isGroup:k(()=>{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 bV=ce({name:"ElTableHeader",components:{ElCheckbox:Cs},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=ct(),n=Pe(Qn),i=Ne("table"),a=B({}),{onColumnsChange:o,onScrollableChange:s}=MA(n);wt(async()=>{await Ft(),await Ft();const{prop:w,order:x}=e.defaultSort;n==null||n.store.commit("sort",{prop:w,order:x,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=gV(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:y}=mV(e),{isGroup:_,toggleAllSelection:b,columnRows:S}=_V(e);return r.state={onColumnsChange:o,onScrollableChange:s},r.filterPanels=a,{ns:i,filterPanels:a,onColumnsChange:o,onScrollableChange:s,columnRows:S,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:y,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,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:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return Ce("thead",{class:{[e.is("group")]:t}},r.map((g,m)=>Ce("tr",{class:a(m),key:m,style:o(m)},g.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),Ce("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=>c(b,y),onMouseout:d},[Ce("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&&Ce("span",{onClick:b=>f(b,y),class:"caret-wrapper"},[Ce("i",{onClick:b=>f(b,y,"ascending"),class:"sort-caret ascending"}),Ce("i",{onClick:b=>f(b,y,"descending"),class:"sort-caret descending"})]),y.filterable&&Ce(pV,{store:h,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(b,S)=>{y[b]=S}})])]))))))}});function wV(e){const t=Pe(Qn),r=B(""),n=B(Ce("div")),{nextZIndex:i}=Ay(),a=(h,v,p)=>{var g;const m=t,y=Qh(h);let _;const b=(g=m==null?void 0:m.vnode.el)==null?void 0:g.dataset.prefix;y&&(_=v1({columns:e.store.states.columns.value},y,b),_&&(m==null||m.emit(`cell-${p}`,v,_,y,h))),m==null||m.emit(`row-${p}`,v,_,h)},o=(h,v)=>{a(h,v,"dblclick")},s=(h,v)=>{e.store.commit("setCurrentRow",v),a(h,v,"click")},l=(h,v)=>{a(h,v,"contextmenu")},u=id(h=>{e.store.commit("setHoverRow",h)},30),c=id(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(h,v,p)=>{var g;const m=t,y=Qh(h),_=(g=m==null?void 0:m.vnode.el)==null?void 0:g.dataset.prefix;if(y){const C=v1({columns:e.store.states.columns.value},y,_),M=m.hoverState={cell:y,column:C,row:v};m==null||m.emit("cell-mouse-enter",M.row,M.column,M.cell,h)}if(!p)return;const b=h.target.querySelector(".cell");if(!(Ol(b,`${_}-tooltip`)&&b.childNodes.length))return;const S=document.createRange();S.setStart(b,0),S.setEnd(b,b.childNodes.length);const w=Math.round(S.getBoundingClientRect().width),x=(Number.parseInt(Mb(b,"paddingLeft"),10)||0)+(Number.parseInt(Mb(b,"paddingRight"),10)||0);(w+x>b.offsetWidth||b.scrollWidth>b.offsetWidth)&&JW(t==null?void 0:t.refs.tableWrapper,y,y.innerText||y.textContent,i,p)},handleCellMouseLeave:h=>{if(!Qh(h))return;const p=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",p==null?void 0:p.row,p==null?void 0:p.column,p==null?void 0:p.cell,h)},tooltipContent:r,tooltipTrigger:n}}function SV(e){const t=Pe(Qn),r=Ne("table");return{getRowStyle:(u,c)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(r.em("row","striped"));const d=t==null?void 0:t.props.rowClassName;return typeof d=="string"?f.push(d):typeof d=="function"&&f.push(d.call(null,{row:u,rowIndex:c})),f},getCellStyle:(u,c,f,d)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const p=Fy(c,e==null?void 0:e.fixed,e.store);return Ts(p,"left"),Ts(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=Ny(r.b(),c,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:c,row:f,column:d})),p.push(r.e("cell")),p.filter(m=>Boolean(m)).join(" ")},getSpan:(u,c,f,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:c,rowIndex:f,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,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(f,f+c);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function xV(e){const t=Pe(Qn),r=Ne("table"),{handleDoubleClick:n,handleClick:i,handleContextMenu:a,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=wV(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=SV(e),y=k(()=>e.store.states.columns.value.findIndex(({type:x})=>x==="default")),_=(x,C)=>{const M=t.props.rowKey;return M?Yt(x,M):C},b=(x,C,M,E=!1)=>{const{tooltipEffect:A,tooltipOptions:T,store:D}=e,{indent:N,columns:H}=D.states,$=h(x,C);let G=!0;return M&&($.push(r.em("row",`level-${M.level}`)),G=M.display),Ce("tr",{style:[G?null:{display:"none"},d(x,C)],class:$,key:_(x,C),onDblclick:R=>n(R,x),onClick:R=>i(R,x),onContextmenu:R=>a(R,x),onMouseenter:()=>o(C),onMouseleave:s},H.value.map((R,j)=>{const{rowspan:re,colspan:oe}=g(x,R,C,j);if(!re||!oe)return null;const ye={...R};ye.realWidth=m(H.value,oe,j);const Ae={store:e.store,_self:e.context||t,column:ye,row:x,$index:C,cellIndex:j,expanded:E};j===y.value&&M&&(Ae.treeNode={indent:M.level*N.value,level:M.level},typeof M.expanded=="boolean"&&(Ae.treeNode.expanded=M.expanded,"loading"in M&&(Ae.treeNode.loading=M.loading),"noLazyChildren"in M&&(Ae.treeNode.noLazyChildren=M.noLazyChildren)));const V=`${C},${j}`,Q=ye.columnKey||ye.rawColumnKey||"",W=S(j,R,Ae),q=R.showOverflowTooltip&&aM({effect:A},T,R.showOverflowTooltip);return Ce("td",{style:v(C,j,x,R),class:p(C,j,x,R,oe-1),key:`${Q}${V}`,rowspan:re,colspan:oe,onMouseenter:le=>l(le,x,q),onMouseleave:u},[W])}))},S=(x,C,M)=>C.renderCell(M);return{wrappedRowRender:(x,C)=>{const M=e.store,{isRowExpanded:E,assertRowKey:A}=M,{treeData:T,lazyTreeNodeMap:D,childrenColumnName:N,rowKey:H}=M.states,$=M.states.columns.value;if($.some(({type:F})=>F==="expand")){const F=E(x),R=b(x,C,void 0,F),j=t.renderExpanded;return F?j?[[R,Ce("tr",{key:`expanded-row__${R.key}`},[Ce("td",{colspan:$.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[j({row:x,$index:C,store:M,expanded:F})])])]]:(console.error("[Element Error]renderExpanded is required."),R):[[R]]}else if(Object.keys(T.value).length){A();const F=Yt(x,H.value);let R=T.value[F],j=null;R&&(j={expanded:R.expanded,level:R.level,display:!0},typeof R.lazy=="boolean"&&(typeof R.loaded=="boolean"&&R.loaded&&(j.noLazyChildren=!(R.children&&R.children.length)),j.loading=R.loading));const re=[b(x,C,j)];if(R){let oe=0;const ye=(V,Q)=>{V&&V.length&&Q&&V.forEach(W=>{const q={display:Q.display&&Q.expanded,level:Q.level+1,expanded:!1,noLazyChildren:!1,loading:!1},le=Yt(W,H.value);if(le==null)throw new Error("For nested data item, row-key is required.");if(R={...T.value[le]},R&&(q.expanded=R.expanded,R.level=R.level||q.level,R.display=!!(R.expanded&&q.display),typeof R.lazy=="boolean"&&(typeof R.loaded=="boolean"&&R.loaded&&(q.noLazyChildren=!(R.children&&R.children.length)),q.loading=R.loading)),oe++,re.push(b(W,C+oe,q)),R){const de=D.value[le]||W[N.value];ye(de,R)}})};R.display=!0;const Ae=D.value[F]||x[N.value];ye(Ae,R)}return re}else return b(x,C,void 0)},tooltipContent:c,tooltipTrigger:f}}const CV={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 TV=ce({name:"ElTableBody",props:CV,setup(e){const t=ct(),r=Pe(Qn),n=Ne("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}=xV(e),{onColumnsChange:s,onScrollableChange:l}=MA(r);return xe(e.store.states.hoverRow,(u,c)=>{if(!e.store.states.isComplex.value||!Nt)return;let f=window.requestAnimationFrame;f||(f=d=>window.setTimeout(d,16)),f(()=>{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[c],p=h[u];v&&ss(v,"hover-row"),p&&Zo(p,"hover-row")})}),ks(()=>{var u;(u=ui)==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 Ce("tbody",{},[r.reduce((n,i)=>n.concat(e(i,n.length)),[])])}});function By(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 Ce("colgroup",{},r.map(i=>Ce("col",n(i))))}By.props=["columns","tableLayout"];function MV(){const e=Pe(Qn),t=e==null?void 0:e.store,r=k(()=>t.states.fixedLeafColumnsLength.value),n=k(()=>t.states.rightFixedColumns.value.length),i=k(()=>t.states.columns.value.length),a=k(()=>t.states.fixedColumns.value.length),o=k(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:n,columnsCount:i,leftFixedCount:a,rightFixedCount:o,columns:t.states.columns}}function AV(e){const{columns:t}=MV(),r=Ne("table");return{getCellClasses:(a,o)=>{const s=a[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...Ny(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=Fy(o,a.fixed,e.store);return Ts(s,"left"),Ts(s,"right"),s},columns:t}}var PV=ce({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}=AV(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 c=o.map(v=>Number(v[l.property])),f=[];let d=!0;c.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const p=`${v}`.split(".")[1];f.push(p?p.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((v,p)=>{const g=Number(p);return Number.isNaN(+g)?v:Number.parseFloat((v+p).toFixed(Math.min(h,20)))},0)}),Ce("table",{class:a.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[By({columns:e}),Ce("tbody",[Ce("tr",{},[...e.map((l,u)=>Ce("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:r(e,u),style:t(l,u)},[Ce("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function EV(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,f)=>{e.toggleRowSelection(c,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{e.toggleRowExpansionAdapter(c,f)},clearSort:()=>{e.clearSort()},sort:(c,f)=>{e.commit("sort",{prop:c,order:f})}}}function LV(e,t,r,n){const i=B(!1),a=B(null),o=B(!1),s=F=>{o.value=F},l=B({width:null,height:null,headerHeight:null}),u=B(!1),c={display:"inline-block",verticalAlign:"middle"},f=B(),d=B(0),h=B(0),v=B(0),p=B(0);io(()=>{t.setHeight(e.height)}),io(()=>{t.setMaxHeight(e.maxHeight)}),xe(()=>[e.currentRowKey,r.states.rowKey],([F,R])=>{!P(R)||!P(F)||r.setCurrentRowKey(`${F}`)},{immediate:!0}),xe(()=>e.data,F=>{n.store.commit("setData",F)},{immediate:!0,deep:!0}),io(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},m=(F,R)=>{const{pixelX:j,pixelY:re}=R;Math.abs(j)>=Math.abs(re)&&(n.refs.bodyWrapper.scrollLeft+=R.pixelX/5)},y=k(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),_=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),b=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(C)};wt(async()=>{await Ft(),r.updateColumns(),M(),requestAnimationFrame(b);const F=n.vnode.el,R=n.refs.headerWrapper;e.flexible&&F&&F.parentElement&&(F.parentElement.style.minWidth="0"),l.value={width:f.value=F.offsetWidth,height:F.offsetHeight,headerHeight:e.showHeader&&R?R.offsetHeight:null},r.states.columns.value.forEach(j=>{j.filteredValue&&j.filteredValue.length&&n.store.commit("filterChange",{column:j,values:j.filteredValue,silent:!0})}),n.$ready=!0});const S=(F,R)=>{if(!F)return;const j=Array.from(F.classList).filter(re=>!re.startsWith("is-scrolling-"));j.push(t.scrollX.value?R:"is-scrolling-none"),F.className=j.join(" ")},w=F=>{const{tableWrapper:R}=n.refs;S(R,F)},x=F=>{const{tableWrapper:R}=n.refs;return!!(R&&R.classList.contains(F))},C=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const V="is-scrolling-none";x(V)||w(V);return}const F=n.refs.scrollBarRef.wrapRef;if(!F)return;const{scrollLeft:R,offsetWidth:j,scrollWidth:re}=F,{headerWrapper:oe,footerWrapper:ye}=n.refs;oe&&(oe.scrollLeft=R),ye&&(ye.scrollLeft=R);const Ae=re-j-1;R>=Ae?w("is-scrolling-right"):w(R===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&Sn(n.refs.scrollBarRef.wrapRef,"scroll",C,{passive:!0}),e.fit?gs(n.vnode.el,E):Sn(window,"resize",E),gs(n.refs.bodyWrapper,()=>{var F,R;E(),(R=(F=n.refs)==null?void 0:F.scrollBarRef)==null||R.update()}))},E=()=>{var F,R,j;const re=n.vnode.el;if(!n.$ready||!re)return;let oe=!1;const{width:ye,height:Ae,headerHeight:V}=l.value,Q=f.value=re.offsetWidth;ye!==Q&&(oe=!0);const W=re.offsetHeight;(e.height||y.value)&&Ae!==W&&(oe=!0);const q=e.tableLayout==="fixed"?n.refs.headerWrapper:(F=n.refs.tableHeaderRef)==null?void 0:F.$el;e.showHeader&&(q==null?void 0:q.offsetHeight)!==V&&(oe=!0),d.value=((R=n.refs.tableWrapper)==null?void 0:R.scrollHeight)||0,v.value=(q==null?void 0:q.scrollHeight)||0,p.value=((j=n.refs.footerWrapper)==null?void 0:j.offsetHeight)||0,h.value=d.value-v.value-p.value,oe&&(l.value={width:Q,height:W,headerHeight:e.showHeader&&(q==null?void 0:q.offsetHeight)||0},b())},A=ia(),T=k(()=>{const{bodyWidth:F,scrollY:R,gutterWidth:j}=t;return F.value?`${F.value-(R.value?j:0)}px`:""}),D=k(()=>e.maxHeight?"fixed":e.tableLayout),N=k(()=>{if(e.data&&e.data.length)return null;let F="100%";e.height&&h.value&&(F=`${h.value}px`);const R=f.value;return{width:R?`${R}px`:"",height:F}}),H=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`}:{}),$=k(()=>{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 F=e.maxHeight;if(d.value>=Number(F))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:N,handleFixedMousewheel:(F,R)=>{const j=n.refs.bodyWrapper;if(Math.abs(R.spinY)>0){const re=j.scrollTop;R.pixelY<0&&re!==0&&F.preventDefault(),R.pixelY>0&&j.scrollHeight-j.clientHeight>re&&F.preventDefault(),j.scrollTop+=Math.ceil(R.pixelY/5)}else j.scrollLeft+=Math.ceil(R.pixelX/5)},resizeProxyVisible:o,bodyWidth:T,resizeState:l,doLayout:b,tableBodyStyles:_,tableLayout:D,scrollbarViewStyle:c,tableInnerStyle:H,scrollbarStyle:$}}function DV(e){const t=B(),r=()=>{const i=e.vnode.el.querySelector(".hidden-columns"),a={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(s=>s())}),t.value.observe(i,a)};wt(()=>{r()}),ks(()=>{var n;(n=t.value)==null||n.disconnect()})}var IV={data:{type:Array,default:()=>[]},size:Xu,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 OV=()=>{const e=B(),t=(a,o)=>{const s=e.value;s&&s.scrollTo(a,o)},r=(a,o)=>{const s=e.value;s&&$t(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 RV=1;const kV=ce({name:"ElTable",directives:{Mousewheel:l8},components:{TableHeader:bV,TableBody:TV,TableFooter:PV,ElScrollbar:VM,hColgroup:By},props:IV,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}=py(),r=Ne("table"),n=ct();At(Qn,n);const i=oV(n,e);n.store=i;const a=new lV({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=a;const o=k(()=>(i.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=EV(i),{isHidden:g,renderExpanded:m,setDragVisible:y,isGroup:_,handleMouseLeave:b,handleHeaderFooterMousewheel:S,tableSize:w,emptyBlockStyle:x,handleFixedMousewheel:C,resizeProxyVisible:M,bodyWidth:E,resizeState:A,doLayout:T,tableBodyStyles:D,tableLayout:N,scrollbarViewStyle:H,tableInnerStyle:$,scrollbarStyle:G}=LV(e,a,i,n),{scrollBarRef:F,scrollTo:R,setScrollLeft:j,setScrollTop:re}=OV(),oe=id(T,50),ye=`${r.namespace.value}-table_${RV++}`;n.tableId=ye,n.state={isGroup:_,resizeState:A,doLayout:T,debouncedUpdateLayout:oe};const Ae=k(()=>e.sumText||t("el.table.sumText")),V=k(()=>e.emptyText||t("el.table.emptyText"));return DV(n),{ns:r,layout:a,store:i,handleHeaderFooterMousewheel:S,handleMouseLeave:b,tableId:ye,tableSize:w,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:M,resizeState:A,isGroup:_,bodyWidth:E,tableBodyStyles:D,emptyBlockStyle:x,debouncedUpdateLayout:oe,handleFixedMousewheel:C,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:T,sort:p,t,setDragVisible:y,context:n,computedSumText:Ae,computedEmptyText:V,tableLayout:N,scrollbarViewStyle:H,tableInnerStyle:$,scrollbarStyle:G,scrollBarRef:F,scrollTo:R,setScrollLeft:j,setScrollTop:re}}}),NV=["data-prefix"],FV={ref:"hiddenColumns",class:"hidden-columns"};function BV(e,t,r,n,i,a){const o=_r("hColgroup"),s=_r("table-header"),l=_r("table-body"),u=_r("el-scrollbar"),c=_r("table-footer"),f=ZC("mousewheel");return Y(),me("div",{ref:"tableWrapper",class:ue([{[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:xt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[ae("div",{class:ue(e.ns.e("inner-wrapper")),style:xt(e.tableInnerStyle)},[ae("div",FV,[$e(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?nr((Y(),me("div",{key:0,ref:"headerWrapper",class:ue(e.ns.e("header-wrapper"))},[ae("table",{ref:"tableHeader",class:ue(e.ns.e("header")),style:xt(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)),[[f,e.handleHeaderFooterMousewheel]]):Fe("v-if",!0),ae("div",{ref:"bodyWrapper",class:ue(e.ns.e("body-wrapper"))},[ee(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Z(()=>[ae("table",{ref:"tableBody",class:ue(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:xt({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"?(Y(),_e(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"])):Fe("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?(Y(),me("div",{key:0,ref:"emptyBlock",style:xt(e.emptyBlockStyle),class:ue(e.ns.e("empty-block"))},[ae("span",{class:ue(e.ns.e("empty-text"))},[$e(e.$slots,"empty",{},()=>[Bt(Me(e.computedEmptyText),1)])],2)],6)):Fe("v-if",!0),e.$slots.append?(Y(),me("div",{key:1,ref:"appendWrapper",class:ue(e.ns.e("append-wrapper"))},[$e(e.$slots,"append")],2)):Fe("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?nr((Y(),me("div",{key:1,ref:"footerWrapper",class:ue(e.ns.e("footer-wrapper"))},[ee(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:xt(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[yi,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):Fe("v-if",!0),e.border||e.isGroup?(Y(),me("div",{key:2,class:ue(e.ns.e("border-left-patch"))},null,2)):Fe("v-if",!0)],6),nr(ae("div",{ref:"resizeProxy",class:ue(e.ns.e("column-resize-proxy"))},null,2),[[yi,e.resizeProxyVisible]])],46,NV)}var $V=Ze(kV,[["render",BV],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const HV={selection:"table-column--selection",expand:"table__expand-column"},zV={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:""}},WV=e=>HV[e]||"",VV={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ce(Cs,{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 Ce(Cs,{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)),Ce("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")),Ce("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ce(lr,null,{default:()=>[Ce(dy)]})]})},sortable:!1,resizable:!1}};function GV({row:e,column:t,$index:r}){var n;const i=t.property,a=i&&xf(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 UV({row:e,treeNode:t,store:r},n=!1){const{ns:i}=r;if(!t)return n?[Ce("span",{class:i.e("placeholder")})]:null;const a=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&a.push(Ce("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=dy;t.loading&&(l=hy),a.push(Ce("div",{class:s,onClick:o},{default:()=>[Ce(lr,{class:{[i.is("loading")]:t.loading}},{default:()=>[Ce(l)]})]}))}else a.push(Ce("span",{class:i.e("placeholder")}));return a}function m1(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function jV(e,t){const r=ct();return{registerComplexWatchers:()=>{const a=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=m1(a,o);Object.keys(s).forEach(l=>{const u=o[l];We(t,u)&&xe(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=ky(c)),u==="minWidth"&&l==="realMinWidth"&&(f=wA(c)),r.columnConfig.value[u]=f,r.columnConfig.value[l]=f;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=m1(a,o);Object.keys(s).forEach(l=>{const u=o[l];We(t,u)&&xe(()=>t[u],c=>{r.columnConfig.value[l]=c})})}}}function YV(e,t,r){const n=ct(),i=B(""),a=B(!1),o=B(),s=B(),l=Ne("table");io(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),io(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=k(()=>{let b=n.vnode.vParent||n.parent;for(;b&&!b.tableId&&!b.columnId;)b=b.vnode.vParent||b.parent;return b}),c=k(()=>{const{store:b}=n.parent;if(!b)return!1;const{treeData:S}=b.states,w=S.value;return w&&Object.keys(w).length>0}),f=B(ky(e.width)),d=B(wA(e.minWidth)),h=b=>(f.value&&(b.width=f.value),d.value&&(b.minWidth=d.value),!f.value&&d.value&&(b.width=void 0),b.minWidth||(b.minWidth=80),b.realWidth=Number(b.width===void 0?b.minWidth:b.width),b),v=b=>{const S=b.type,w=VV[S]||{};Object.keys(w).forEach(C=>{const M=w[C];C!=="className"&&M!==void 0&&(b[C]=M)});const x=WV(S);if(x){const C=`${P(l.namespace)}-${x}`;b.className=b.className?`${b.className} ${C}`:C}return b},p=b=>{Array.isArray(b)?b.forEach(w=>S(w)):S(b);function S(w){var x;((x=w==null?void 0:w.type)==null?void 0:x.name)==="ElTableColumn"&&(w.vParent=n)}};return{columnId:i,realAlign:o,isSubColumn:a,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:b=>{e.renderHeader||b.type!=="selection"&&(b.renderHeader=w=>{n.columnConfig.value.label;const x=t.header;return x?x(w):b.label});let S=b.renderCell;return b.type==="expand"?(b.renderCell=w=>Ce("div",{class:"cell"},[S(w)]),r.value.renderExpanded=w=>t.default?t.default(w):t.default):(S=S||GV,b.renderCell=w=>{let x=null;if(t.default){const D=t.default(w);x=D.some(N=>N.type!==Sr)?D:S(w)}else x=S(w);const{columns:C}=r.value.store.states,M=C.value.findIndex(D=>D.type==="default"),E=c.value&&w.cellIndex===M,A=UV(w,E),T={class:"cell",style:{}};return b.showOverflowTooltip&&(T.class=`${T.class} ${P(l.namespace)}-tooltip`,T.style={width:`${(w.column.realWidth||Number(w.column.width))-1}px`}),p(x),Ce("div",T,[A,x])}),b},getPropsData:(...b)=>b.reduce((S,w)=>(Array.isArray(w)&&w.forEach(x=>{S[x]=e[x]}),S),{}),getColumnElIndex:(b,S)=>Array.prototype.indexOf.call(b,S),updateColumnOrder:()=>{r.value.store.commit("updateColumnOrder",n.columnConfig.value)}}}var qV={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 KV=1;var PA=ce({name:"ElTableColumn",components:{ElCheckbox:Cs},props:qV,setup(e,{slots:t}){const r=ct(),n=B({}),i=k(()=>{let _=r.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:a,registerComplexWatchers:o}=jV(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g,updateColumnOrder:m}=YV(e,t,i),y=c.value;s.value=`${y.tableId||y.columnId}_column_${KV++}`,Gd(()=>{l.value=i.value!==y;const _=e.type||"default",b=e.sortable===""?!0:e.sortable,S={...zV[_],id:s.value,type:_,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:b,index:e.index,rawColumnKey:r.vnode.key};let E=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);E=KW(S,E),E=ZW(h,f,d)(E),n.value=E,a(),o()}),wt(()=>{var _;const b=c.value,S=l.value?b.vnode.el.children:(_=b.refs.hiddenColumns)==null?void 0:_.children,w=()=>p(S||[],r.vnode.el);n.value.getColumnIndex=w,w()>-1&&i.value.store.commit("insertColumn",n.value,l.value?b.columnConfig.value:null,m)}),Xt(()=>{i.value.store.commit("removeColumn",n.value,l.value?y.columnConfig.value:null,m)}),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===pt&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!He(s==null?void 0:s.children)&&i.push(s)});return Ce("div",i)}catch{return Ce("div",[])}}});const XV=hr($V,{TableColumn:PA}),ZV=fa(PA),EA=["success","info","warning","error"],mr=Ya({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:Nt?document.body:void 0}),QV=tt({customClass:{type:String,default:mr.customClass},center:{type:Boolean,default:mr.center},dangerouslyUseHTMLString:{type:Boolean,default:mr.dangerouslyUseHTMLString},duration:{type:Number,default:mr.duration},icon:{type:Wn,default:mr.icon},id:{type:String,default:mr.id},message:{type:Le([String,Object,Function]),default:mr.message},onClose:{type:Le(Function),required:!1},showClose:{type:Boolean,default:mr.showClose},type:{type:String,values:EA,default:mr.type},offset:{type:Number,default:mr.offset},zIndex:{type:Number,default:mr.zIndex},grouping:{type:Boolean,default:mr.grouping},repeatNum:{type:Number,default:mr.repeatNum}}),JV={destroy:()=>!0},xn=LC([]),eG=e=>{const t=xn.findIndex(i=>i.id===e),r=xn[t];let n;return t>0&&(n=xn[t-1]),{current:r,prev:n}},tG=e=>{const{prev:t}=eG(e);return t?t.vm.exposed.bottom.value:0},rG=(e,t)=>xn.findIndex(n=>n.id===e)>0?20:t,nG=["id"],iG=["innerHTML"],aG=ce({name:"ElMessage"}),oG=ce({...aG,props:QV,emits:JV,setup(e,{expose:t}){const r=e,{Close:n}=B3,{ns:i,zIndex:a}=sH("message"),{currentZIndex:o,nextZIndex:s}=a,l=B(),u=B(!1),c=B(0);let f;const d=k(()=>r.type?r.type==="error"?"danger":r.type:"info"),h=k(()=>{const x=r.type;return{[i.bm("icon",x)]:x&&Ab[x]}}),v=k(()=>r.icon||Ab[r.type]||""),p=k(()=>tG(r.id)),g=k(()=>rG(r.id,r.offset)+p.value),m=k(()=>c.value+g.value),y=k(()=>({top:`${g.value}px`,zIndex:o.value}));function _(){r.duration!==0&&({stop:f}=kp(()=>{S()},r.duration))}function b(){f==null||f()}function S(){u.value=!1}function w({code:x}){x===Ot.esc&&S()}return wt(()=>{_(),s(),u.value=!0}),xe(()=>r.repeatNum,()=>{b(),_()}),Sn(document,"keydown",w),gs(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:S}),(x,C)=>(Y(),_e(Ci,{name:P(i).b("fade"),onBeforeLeave:x.onClose,onAfterLeave:C[0]||(C[0]=M=>x.$emit("destroy")),persisted:""},{default:Z(()=>[nr(ae("div",{id:x.id,ref_key:"messageRef",ref:l,class:ue([P(i).b(),{[P(i).m(x.type)]:x.type&&!x.icon},P(i).is("center",x.center),P(i).is("closable",x.showClose),x.customClass]),style:xt(P(y)),role:"alert",onMouseenter:b,onMouseleave:_},[x.repeatNum>1?(Y(),_e(P(P6),{key:0,value:x.repeatNum,type:P(d),class:ue(P(i).e("badge"))},null,8,["value","type","class"])):Fe("v-if",!0),P(v)?(Y(),_e(P(lr),{key:1,class:ue([P(i).e("icon"),P(h)])},{default:Z(()=>[(Y(),_e(nn(P(v))))]),_:1},8,["class"])):Fe("v-if",!0),$e(x.$slots,"default",{},()=>[x.dangerouslyUseHTMLString?(Y(),me(pt,{key:1},[Fe(" Caution here, message could've been compromised, never use user's input as message "),ae("p",{class:ue(P(i).e("content")),innerHTML:x.message},null,10,iG)],2112)):(Y(),me("p",{key:0,class:ue(P(i).e("content"))},Me(x.message),3))]),x.showClose?(Y(),_e(P(lr),{key:2,class:ue(P(i).e("closeBtn")),onClick:Jf(S,["stop"])},{default:Z(()=>[ee(P(n))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],46,nG),[[yi,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var sG=Ze(oG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let lG=1;const LA=e=>{const t=!e||He(e)||ta(e)||De(e)?{message:e}:e,r={...mr,...t};if(!r.appendTo)r.appendTo=document.body;else if(He(r.appendTo)){let n=document.querySelector(r.appendTo);ys(n)||(n=document.body),r.appendTo=n}return r},uG=e=>{const t=xn.indexOf(e);if(t===-1)return;xn.splice(t,1);const{handler:r}=e;r.close()},cG=({appendTo:e,...t},r)=>{const n=`message_${lG++}`,i=t.onClose,a=document.createElement("div"),o={...t,id:n,onClose:()=>{i==null||i(),uG(c)},onDestroy:()=>{O_(null,a)}},s=ee(sG,o,De(o.message)||ta(o.message)?{default:De(o.message)?o.message:()=>o.message}:null);s.appContext=r||Ms._context,O_(s,a),e.appendChild(a.firstElementChild);const l=s.component,c={id:n,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return c},Ms=(e={},t)=>{if(!Nt)return{close:()=>{}};if($t(Qp.max)&&xn.length>=Qp.max)return{close:()=>{}};const r=LA(e);if(r.grouping&&xn.length){const i=xn.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=cG(r,t);return xn.push(n),n.handler};EA.forEach(e=>{Ms[e]=(t={},r)=>{const n=LA(t);return Ms({...n,type:e},r)}});function fG(e){for(const t of xn)(!e||e===t.props.type)&&t.handler.close()}Ms.closeAll=fG;Ms._context=null;const DA=$3(Ms,"$message"),dG={id:"app"},hG={class:"grid-content header-color"},vG={class:"header-content"},pG=ae("div",{class:"brand"},[ae("a",{href:"#"},"frp")],-1),gG={class:"dark-switch"},mG=ae("span",null,"Proxies",-1),yG={id:"content"},_G=ae("footer",null,null,-1),bG=ce({__name:"App",setup(e){const t=NR(),r=B(t),n=nR(t),i=a=>{a==""&&window.open("https://github.com/fatedier/frp")};return(a,o)=>{const s=VW,l=wW,u=SW,c=bW,f=pA,d=_r("router-view"),h=vA;return Y(),me("div",dG,[ae("header",hG,[ae("div",vG,[pG,ae("div",gG,[ee(s,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=v=>r.value=v),"inline-prompt":"","active-text":"Dark","inactive-text":"Light",onChange:P(n),style:{"--el-switch-on-color":"#444452","--el-switch-off-color":"#589ef8"}},null,8,["modelValue","onChange"])])])]),ae("section",null,[ee(h,null,{default:Z(()=>[ee(f,{id:"side-nav",xs:24,md:4},{default:Z(()=>[ee(c,{"default-active":"/",mode:"vertical",theme:"light",router:"false",onSelect:i},{default:Z(()=>[ee(l,{index:"/"},{default:Z(()=>[Bt("Overview")]),_:1}),ee(u,{index:"/proxies"},{title:Z(()=>[mG]),default:Z(()=>[ee(l,{index:"/proxies/tcp"},{default:Z(()=>[Bt("TCP")]),_:1}),ee(l,{index:"/proxies/udp"},{default:Z(()=>[Bt("UDP")]),_:1}),ee(l,{index:"/proxies/http"},{default:Z(()=>[Bt("HTTP")]),_:1}),ee(l,{index:"/proxies/https"},{default:Z(()=>[Bt("HTTPS")]),_:1}),ee(l,{index:"/proxies/stcp"},{default:Z(()=>[Bt("STCP")]),_:1}),ee(l,{index:"/proxies/sudp"},{default:Z(()=>[Bt("SUDP")]),_:1})]),_:1}),ee(l,{index:""},{default:Z(()=>[Bt("Help")]),_:1})]),_:1})]),_:1}),ee(f,{xs:24,md:20},{default:Z(()=>[ae("div",yG,[ee(d)])]),_:1})]),_:1})]),_G])}}});/*!
   * vue-router v4.1.6
   * (c) 2022 Eduardo San Martin Morote
   * @license MIT
-  */const qo=typeof window<"u";function wG(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const lt=Object.assign;function Jh(e,t){const r={};for(const n in t){const i=t[n];r[n]=En(i)?i.map(e):e(i)}return r}const $l=()=>{},En=Array.isArray,xG=/\/$/,SG=e=>e.replace(xG,"");function ev(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&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=AG(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function CG(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function y1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function TG(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&As(t.matched[n],r.matched[i])&&IA(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function As(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function IA(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!MG(e[r],t[r]))return!1;return!0}function MG(e,t){return En(e)?_1(e,t):En(t)?_1(t,e):e===t}function _1(e,t){return En(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function AG(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;a<n.length;a++)if(o=n[a],o!==".")if(o==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var wu;(function(e){e.pop="pop",e.push="push"})(wu||(wu={}));var Hl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Hl||(Hl={}));function EG(e){if(!e)if(qo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),SG(e)}const PG=/^[^#]+#/;function LG(e,t){return e.replace(PG,"#")+t}function DG(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 ih=()=>({left:window.pageXOffset,top:window.pageYOffset});function IG(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=DG(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 b1(e,t){return(history.state?history.state.position-t:-1)+e}const mg=new Map;function OG(e,t){mg.set(e,t)}function RG(e){const t=mg.get(e);return mg.delete(e),t}let kG=()=>location.protocol+"//"+location.host;function OA(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),y1(l,"")}return y1(r,e)+n+i}function NG(e,t,r,n){let i=[],a=[],o=null;const s=({state:d})=>{const h=OA(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:wu.pop,direction:g?g>0?Hl.forward:Hl.back:Hl.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 c(){const{history:d}=window;d.state&&d.replaceState(lt({},d.state,{scroll:ih()}),"")}function f(){for(const d of a)d();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function w1(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?ih():null}}function FG(e){const{history:t,location:r}=window,n={value:OA(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,c){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:kG()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),r[c?"replace":"assign"](d)}}function o(l,u){const c=lt({},t.state,w1(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,c,!0),n.value=l}function s(l,u){const c=lt({},i.value,t.state,{forward:l,scroll:ih()});a(c.current,c,!0);const f=lt({},w1(n.value,l,null),{position:c.position+1},u);a(l,f,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function BG(e){e=EG(e);const t=FG(e),r=NG(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=lt({location:"",base:e,go:n,createHref:LG.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 $G(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),BG(e)}function HG(e){return typeof e=="string"||e&&typeof e=="object"}function RA(e){return typeof e=="string"||typeof e=="symbol"}const Ii={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},kA=Symbol("");var x1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(x1||(x1={}));function Es(e,t){return lt(new Error,{type:e,[kA]:!0},t)}function ai(e,t){return e instanceof Error&&kA in e&&(t==null||!!(e.type&t))}const S1="[^/]+?",zG={sensitive:!1,strict:!1,start:!0,end:!0},WG=/[.+*?^${}()[\]/\\]/g;function VG(e,t){const r=lt({},zG,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(r.sensitive?.25:0);if(d.type===0)f||(i+="/"),i+=d.value.replace(WG,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:p,optional:g,regexp:m}=d;a.push({name:v,repeatable:p,optional:g});const y=m||S1;if(y!==S1){h+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${v}" (${y}): `+b.message)}}let _=p?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),i+=_,h+=20,g&&(h+=-8),p&&(h+=-20),y===".*"&&(h+=-50)}c.push(h)}n.push(c)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(i+="/?"),r.end?i+="$":r.strict&&(i+="(?:/|$)");const o=new RegExp(i,r.sensitive?"":"i");function s(u){const c=u.match(o),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=a[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:p,optional:g}=h,m=v in u?u[v]:"";if(En(m)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const y=En(m)?m.join("/"):m;if(!y)if(g)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=y}}return c||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function GG(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function UG(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const a=GG(n[r],i[r]);if(a)return a;r++}if(Math.abs(i.length-n.length)===1){if(C1(n))return 1;if(C1(i))return-1}return i.length-n.length}function C1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const jG={type:0,value:""},YG=/[a-zA-Z0-9_]/;function qG(e){if(!e)return[[]];if(e==="/")return[[jG]];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="",c="";function f(){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:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),r=1):d();break;case 4:d(),r=n;break;case 1:l==="("?r=2:YG.test(l)?d():(f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:r=3:c+=l;break;case 3:f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),i}function KG(e,t,r){const n=VG(qG(e.path),r),i=lt(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function XG(e,t){const r=[],n=new Map;t=A1({strict:!1,end:!0,sensitive:!1},t);function i(c){return n.get(c)}function a(c,f,d){const h=!d,v=ZG(c);v.aliasOf=d&&d.record;const p=A1(t,c),g=[v];if("alias"in c){const _=typeof c.alias=="string"?[c.alias]:c.alias;for(const b of _)g.push(lt({},v,{components:d?d.record.components:v.components,path:b,aliasOf:d?d.record:v}))}let m,y;for(const _ of g){const{path:b}=_;if(f&&b[0]!=="/"){const x=f.record.path,w=x[x.length-1]==="/"?"":"/";_.path=f.record.path+(b&&w+b)}if(m=KG(_,f,p),d?d.alias.push(m):(y=y||m,y!==m&&y.alias.push(m),h&&c.name&&!M1(m)&&o(c.name)),v.children){const x=v.children;for(let w=0;w<x.length;w++)a(x[w],m,d&&d.children[w])}d=d||m,(m.record.components&&Object.keys(m.record.components).length||m.record.name||m.record.redirect)&&l(m)}return y?()=>{o(y)}:$l}function o(c){if(RA(c)){const f=n.get(c);f&&(n.delete(c),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(c);f>-1&&(r.splice(f,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return r}function l(c){let f=0;for(;f<r.length&&UG(c,r[f])>=0&&(c.record.path!==r[f].record.path||!NA(c,r[f]));)f++;r.splice(f,0,c),c.record.name&&!M1(c)&&n.set(c.record.name,c)}function u(c,f){let d,h={},v,p;if("name"in c&&c.name){if(d=n.get(c.name),!d)throw Es(1,{location:c});p=d.record.name,h=lt(T1(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),c.params&&T1(c.params,d.keys.map(y=>y.name))),v=d.stringify(h)}else if("path"in c)v=c.path,d=r.find(y=>y.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=f.name?n.get(f.name):r.find(y=>y.re.test(f.path)),!d)throw Es(1,{location:c,currentLocation:f});p=d.record.name,h=lt({},f.params,c.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:JG(g)}}return e.forEach(c=>a(c)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function T1(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function ZG(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:QG(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 QG(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 M1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function JG(e){return e.reduce((t,r)=>lt(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 NA(e,t){return t.children.some(r=>r===e||NA(e,r))}const FA=/#/g,eU=/&/g,tU=/\//g,rU=/=/g,nU=/\?/g,BA=/\+/g,iU=/%5B/g,aU=/%5D/g,$A=/%5E/g,oU=/%60/g,HA=/%7B/g,sU=/%7C/g,zA=/%7D/g,lU=/%20/g;function $y(e){return encodeURI(""+e).replace(sU,"|").replace(iU,"[").replace(aU,"]")}function uU(e){return $y(e).replace(HA,"{").replace(zA,"}").replace($A,"^")}function yg(e){return $y(e).replace(BA,"%2B").replace(lU,"+").replace(FA,"%23").replace(eU,"%26").replace(oU,"`").replace(HA,"{").replace(zA,"}").replace($A,"^")}function cU(e){return yg(e).replace(rU,"%3D")}function fU(e){return $y(e).replace(FA,"%23").replace(nU,"%3F")}function dU(e){return e==null?"":fU(e).replace(tU,"%2F")}function ld(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function hU(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const a=n[i].replace(BA," "),o=a.indexOf("="),s=ld(o<0?a:a.slice(0,o)),l=o<0?null:ld(a.slice(o+1));if(s in t){let u=t[s];En(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function E1(e){let t="";for(let r in e){const n=e[r];if(r=cU(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(En(n)?n.map(a=>a&&yg(a)):[n&&yg(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function vU(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=En(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const pU=Symbol(""),P1=Symbol(""),Hy=Symbol(""),WA=Symbol(""),_g=Symbol("");function Zs(){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 Gi(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(Es(4,{from:r,to:t})):f instanceof Error?s(f):HG(f)?s(Es(2,{from:t,to:f})):(a&&n.enterCallbacks[i]===a&&typeof f=="function"&&a.push(f),o())},u=e.call(n&&n.instances[i],t,r,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function tv(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(gU(s)){const u=(s.__vccOpts||s)[t];u&&i.push(Gi(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 c=wG(u)?u.default:u;a.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Gi(d,r,n,a,o)()}))}}return i}function gU(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function L1(e){const t=Ee(Hy),r=Ee(WA),n=k(()=>t.resolve(E(e.to))),i=k(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const d=f.findIndex(As.bind(null,c));if(d>-1)return d;const h=D1(l[u-2]);return u>1&&D1(c)===h&&f[f.length-1].path!==h?f.findIndex(As.bind(null,l[u-2])):d}),a=k(()=>i.value>-1&&bU(r.params,n.value.params)),o=k(()=>i.value>-1&&i.value===r.matched.length-1&&IA(r.params,n.value.params));function s(l={}){return _U(l)?t[E(e.replace)?"replace":"push"](E(e.to)).catch($l):Promise.resolve()}return{route:n,href:k(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const mU=ce({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=fn(L1(e)),{options:n}=Ee(Hy),i=k(()=>({[I1(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[I1(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:Ce("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),yU=mU;function _U(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 bU(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(!En(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function D1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const I1=(e,t,r)=>e??t??r,wU=ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Ee(_g),i=k(()=>e.route||n.value),a=Ee(P1,0),o=k(()=>{let u=E(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=k(()=>i.value.matched[o.value]);At(P1,k(()=>o.value+1)),At(pU,s),At(_g,i);const l=B();return Se(()=>[l.value,s.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!As(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return O1(r.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=Ce(d,lt({},v,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return O1(r.default,{Component:g,route:u})||g}}});function O1(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const xU=wU;function SU(e){const t=XG(e.routes,e),r=e.parseQuery||hU,n=e.stringifyQuery||E1,i=e.history,a=Zs(),o=Zs(),s=Zs(),l=$m(Ii);let u=Ii;qo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Jh.bind(null,V=>""+V),f=Jh.bind(null,dU),d=Jh.bind(null,ld);function h(V,Q){let W,q;return RA(V)?(W=t.getRecordMatcher(V),q=Q):q=V,t.addRoute(q,W)}function v(V){const Q=t.getRecordMatcher(V);Q&&t.removeRoute(Q)}function p(){return t.getRoutes().map(V=>V.record)}function g(V){return!!t.getRecordMatcher(V)}function m(V,Q){if(Q=lt({},Q||l.value),typeof V=="string"){const L=ev(r,V,Q.path),I=t.resolve({path:L.path},Q),z=i.createHref(L.fullPath);return lt(L,I,{params:d(I.params),hash:ld(L.hash),redirectedFrom:void 0,href:z})}let W;if("path"in V)W=lt({},V,{path:ev(r,V.path,Q.path).path});else{const L=lt({},V.params);for(const I in L)L[I]==null&&delete L[I];W=lt({},V,{params:f(V.params)}),Q.params=f(Q.params)}const q=t.resolve(W,Q),le=V.hash||"";q.params=c(d(q.params));const de=CG(n,lt({},V,{hash:uU(le),path:q.path})),J=i.createHref(de);return lt({fullPath:de,hash:le,query:n===E1?vU(V.query):V.query||{}},q,{redirectedFrom:void 0,href:J})}function y(V){return typeof V=="string"?ev(r,V,l.value.path):lt({},V)}function _(V,Q){if(u!==V)return Es(8,{from:Q,to:V})}function b(V){return S(V)}function x(V){return b(lt(y(V),{replace:!0}))}function w(V){const Q=V.matched[V.matched.length-1];if(Q&&Q.redirect){const{redirect:W}=Q;let q=typeof W=="function"?W(V):W;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=y(q):{path:q},q.params={}),lt({query:V.query,hash:V.hash,params:"path"in q?{}:V.params},q)}}function S(V,Q){const W=u=m(V),q=l.value,le=V.state,de=V.force,J=V.replace===!0,L=w(W);if(L)return S(lt(y(L),{state:typeof L=="object"?lt({},le,L.state):le,force:de,replace:J}),Q||W);const I=W;I.redirectedFrom=Q;let z;return!de&&TG(n,q,W)&&(z=Es(16,{to:I,from:q}),j(q,q,!0,!1)),(z?Promise.resolve(z):M(I,q)).catch(U=>ai(U)?ai(U,2)?U:R(U):G(U,I,q)).then(U=>{if(U){if(ai(U,2))return S(lt({replace:J},y(U.to),{state:typeof U.to=="object"?lt({},le,U.to.state):le,force:de}),Q||I)}else U=A(I,q,!0,J,le);return P(I,q,U),U})}function C(V,Q){const W=_(V,Q);return W?Promise.reject(W):Promise.resolve()}function M(V,Q){let W;const[q,le,de]=CU(V,Q);W=tv(q.reverse(),"beforeRouteLeave",V,Q);for(const L of q)L.leaveGuards.forEach(I=>{W.push(Gi(I,V,Q))});const J=C.bind(null,V,Q);return W.push(J),Io(W).then(()=>{W=[];for(const L of a.list())W.push(Gi(L,V,Q));return W.push(J),Io(W)}).then(()=>{W=tv(le,"beforeRouteUpdate",V,Q);for(const L of le)L.updateGuards.forEach(I=>{W.push(Gi(I,V,Q))});return W.push(J),Io(W)}).then(()=>{W=[];for(const L of V.matched)if(L.beforeEnter&&!Q.matched.includes(L))if(En(L.beforeEnter))for(const I of L.beforeEnter)W.push(Gi(I,V,Q));else W.push(Gi(L.beforeEnter,V,Q));return W.push(J),Io(W)}).then(()=>(V.matched.forEach(L=>L.enterCallbacks={}),W=tv(de,"beforeRouteEnter",V,Q),W.push(J),Io(W))).then(()=>{W=[];for(const L of o.list())W.push(Gi(L,V,Q));return W.push(J),Io(W)}).catch(L=>ai(L,8)?L:Promise.reject(L))}function P(V,Q,W){for(const q of s.list())q(V,Q,W)}function A(V,Q,W,q,le){const de=_(V,Q);if(de)return de;const J=Q===Ii,L=qo?history.state:{};W&&(q||J?i.replace(V.fullPath,lt({scroll:J&&L&&L.scroll},le)):i.push(V.fullPath,le)),l.value=V,j(V,Q,W,J),R()}let T;function D(){T||(T=i.listen((V,Q,W)=>{if(!Ae.listening)return;const q=m(V),le=w(q);if(le){S(lt(le,{replace:!0}),q).catch($l);return}u=q;const de=l.value;qo&&OG(b1(de.fullPath,W.delta),ih()),M(q,de).catch(J=>ai(J,12)?J:ai(J,2)?(S(J.to,q).then(L=>{ai(L,20)&&!W.delta&&W.type===wu.pop&&i.go(-1,!1)}).catch($l),Promise.reject()):(W.delta&&i.go(-W.delta,!1),G(J,q,de))).then(J=>{J=J||A(q,de,!1),J&&(W.delta&&!ai(J,8)?i.go(-W.delta,!1):W.type===wu.pop&&ai(J,20)&&i.go(-1,!1)),P(q,de,J)}).catch($l)}))}let N=Zs(),H=Zs(),$;function G(V,Q,W){R(V);const q=H.list();return q.length?q.forEach(le=>le(V,Q,W)):console.error(V),Promise.reject(V)}function F(){return $&&l.value!==Ii?Promise.resolve():new Promise((V,Q)=>{N.add([V,Q])})}function R(V){return $||($=!V,D(),N.list().forEach(([Q,W])=>V?W(V):Q()),N.reset()),V}function j(V,Q,W,q){const{scrollBehavior:le}=e;if(!qo||!le)return Promise.resolve();const de=!W&&RG(b1(V.fullPath,0))||(q||!W)&&history.state&&history.state.scroll||null;return Ft().then(()=>le(V,Q,de)).then(J=>J&&IG(J)).catch(J=>G(J,V,Q))}const re=V=>i.go(V);let oe;const ye=new Set,Ae={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:H.add,isReady:F,install(V){const Q=this;V.component("RouterLink",yU),V.component("RouterView",xU),V.config.globalProperties.$router=Q,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>E(l)}),qo&&!oe&&l.value===Ii&&(oe=!0,b(i.location).catch(le=>{}));const W={};for(const le in Ii)W[le]=k(()=>l.value[le]);V.provide(Hy,Q),V.provide(WA,fn(W)),V.provide(_g,l);const q=V.unmount;ye.add(V),V.unmount=function(){ye.delete(V),ye.size<1&&(u=Ii,T&&T(),T=null,l.value=Ii,oe=!1,$=!1),q()}}};return Ae}function Io(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function CU(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(u=>As(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>As(u,l))||i.push(l))}return[r,n,i]}var aa={},TU={get exports(){return aa},set exports(e){aa=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()})(e8,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(f){return typeof f<"u"&&f!==null},o=function(f){return f!==f},s=function(f){return isFinite(f)&&!o(parseFloat(f))},l=function(f){var d=Object.prototype.toString.call(f);return d==="[object Array]"},u={intword:function(f,d){var h=arguments.length<=2||arguments[2]===void 0?2:arguments[2];return u.compactInteger(f,h)},compactInteger:function(f){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];d=Math.max(d,0);var h=parseInt(f,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<y.length;x++){var w=y[x];if(m>=w){b=w;break}}var S=m-b+1,C=g.split(""),M=C.slice(0,S),P=C.slice(S,S+d+1),A=M.join(""),T=P.join("");T.length<d&&(T+=""+Array(d-T.length+1).join("0"));var D=void 0;if(d===0)D=""+v+A+_[y.indexOf(b)];else{var N=Number(A+"."+T).toFixed(d);D=""+v+N+_[y.indexOf(b)]}return D},intComma:function(f){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];return u.formatNumber(f,d)},intcomma:function(){return u.intComma.apply(u,arguments)},fileSize:function(f){var d=arguments.length<=1||arguments[1]===void 0?2:arguments[1];for(var h in i)if(i.hasOwnProperty(h)){var v=i[h];if(f>=v)return u.formatNumber(f/v,d,"")+" "+h+"B"}return f>=1024?u.formatNumber(f/1024,0)+" KB":u.formatNumber(f,0)+u.pluralize(f," byte")},filesize:function(){return u.fileSize.apply(u,arguments)},formatNumber:function(f){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,M){return M?S.substr(0,M)+C:""},g=function(S,C,M){return S.substr(M).replace(/(\d{3})(?=\d)/g,"$1"+C)},m=function(S,C,M){return M?C+u.toFixed(Math.abs(S),M).split(".")[1]:""},y=u.normalizePrecision(d),_=f<0&&"-"||"",b=String(parseInt(u.toFixed(Math.abs(f||0),y),10)),x=b.length>3?b.length%3:0;return _+p(b,h,x)+g(b,h,x)+m(f,v,y)},toFixed:function(f,d){d=a(d)?d:u.normalizePrecision(d,0);var h=Math.pow(10,d);return(Math.round(f*h)/h).toFixed(d)},normalizePrecision:function(f,d){return f=Math.round(Math.abs(f)),o(f)?d:f},ordinal:function(f){var d=parseInt(f,10);if(d===0)return f;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(f){var d=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(s(f)&&f>=0){var h=parseFloat(f),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(f,d,h){return a(f)&&a(d)?(h=a(h)?h:d+"s",parseInt(f,10)===1?d:h):null},truncate:function(f){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"...":arguments[2];return f.length>d?f.substring(0,d-h.length)+h:f},truncateWords:function(f,d){for(var h=f.split(" "),v="",p=0;p<d;)a(h[p])&&(v+=h[p]+" "),p++;return h.length>d?v+"...":null},truncatewords:function(){return u.truncateWords.apply(u,arguments)},boundedNumber:function(f){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(f)&&s(d)&&f>d&&(v=d+h),(v||f).toString()},truncatenumber:function(){return u.boundedNumber.apply(u,arguments)},oxford:function(f,d,h){var v=f.length,p=void 0;if(v<2)return String(f);if(v===2)return f.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 "+f[v-1];return f.slice(0,p).join(", ")+h},dictionary:function(f){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(f)&&(typeof f>"u"?"undefined":r(f))==="object"&&!l(f)){var p=[];for(var g in f)if(f.hasOwnProperty(g)){var m=f[g];p.push(""+g+d+m)}return p.join(h)}return v},frequency:function(f,d){if(!l(f))return null;var h=f.length,v=u.times(h);return h===0?v+" "+d:d+" "+v},pace:function(f,d){var h=arguments.length<=2||arguments[2]===void 0?"time":arguments[2];if(f===0||d===0)return"No "+u.pluralize(0,h);for(var v="Approximately",p=void 0,g=void 0,m=f/d,y=0;y<n.length;++y){var _=n[y];if(g=m*_.value,g>1){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(f){var d=arguments.length<=1||arguments[1]===void 0?"<br/>":arguments[1];return f.replace(/\n/g,d)},br2nl:function(f){var d=arguments.length<=1||arguments[1]===void 0?`\r
-`:arguments[1];return f.replace(/\<br\s*\/?\>/g,d)},capitalize:function(f){var d=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return""+f.charAt(0).toUpperCase()+(d?f.slice(1).toLowerCase():f.slice(1))},capitalizeAll:function(f){return f.replace(/(?:^|\s)\S/g,function(d){return d.toUpperCase()})},titleCase:function(f){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<w.length;++S){var C=w[S];if(C.indexOf("-")!==-1){x.push(g(C,!0,S===0||S===w.length-1));continue}if(b&&(S===0||S===w.length-1)){x.push(h.test(C)?C:u.capitalize(C));continue}h.test(C)?x.push(C):d.test(C)?x.push(C.toLowerCase()):x.push(u.capitalize(C))}return x.join(_?"-":" ")},g(f)},titlecase:function(){return u.titleCase.apply(u,arguments)}};return u})})(TU,aa);/*! *****************************************************************************
+  */const qo=typeof window<"u";function wG(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const lt=Object.assign;function Jh(e,t){const r={};for(const n in t){const i=t[n];r[n]=Pn(i)?i.map(e):e(i)}return r}const $l=()=>{},Pn=Array.isArray,SG=/\/$/,xG=e=>e.replace(SG,"");function ev(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&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=AG(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function CG(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function y1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function TG(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&As(t.matched[n],r.matched[i])&&IA(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function As(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function IA(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!MG(e[r],t[r]))return!1;return!0}function MG(e,t){return Pn(e)?_1(e,t):Pn(t)?_1(t,e):e===t}function _1(e,t){return Pn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function AG(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;a<n.length;a++)if(o=n[a],o!==".")if(o==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var wu;(function(e){e.pop="pop",e.push="push"})(wu||(wu={}));var Hl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Hl||(Hl={}));function PG(e){if(!e)if(qo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xG(e)}const EG=/^[^#]+#/;function LG(e,t){return e.replace(EG,"#")+t}function DG(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 ih=()=>({left:window.pageXOffset,top:window.pageYOffset});function IG(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=DG(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 b1(e,t){return(history.state?history.state.position-t:-1)+e}const mg=new Map;function OG(e,t){mg.set(e,t)}function RG(e){const t=mg.get(e);return mg.delete(e),t}let kG=()=>location.protocol+"//"+location.host;function OA(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),y1(l,"")}return y1(r,e)+n+i}function NG(e,t,r,n){let i=[],a=[],o=null;const s=({state:d})=>{const h=OA(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:wu.pop,direction:g?g>0?Hl.forward:Hl.back:Hl.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 c(){const{history:d}=window;d.state&&d.replaceState(lt({},d.state,{scroll:ih()}),"")}function f(){for(const d of a)d();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function w1(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?ih():null}}function FG(e){const{history:t,location:r}=window,n={value:OA(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,c){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:kG()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),r[c?"replace":"assign"](d)}}function o(l,u){const c=lt({},t.state,w1(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,c,!0),n.value=l}function s(l,u){const c=lt({},i.value,t.state,{forward:l,scroll:ih()});a(c.current,c,!0);const f=lt({},w1(n.value,l,null),{position:c.position+1},u);a(l,f,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function BG(e){e=PG(e);const t=FG(e),r=NG(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=lt({location:"",base:e,go:n,createHref:LG.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 $G(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),BG(e)}function HG(e){return typeof e=="string"||e&&typeof e=="object"}function RA(e){return typeof e=="string"||typeof e=="symbol"}const Ii={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},kA=Symbol("");var S1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(S1||(S1={}));function Ps(e,t){return lt(new Error,{type:e,[kA]:!0},t)}function ai(e,t){return e instanceof Error&&kA in e&&(t==null||!!(e.type&t))}const x1="[^/]+?",zG={sensitive:!1,strict:!1,start:!0,end:!0},WG=/[.+*?^${}()[\]/\\]/g;function VG(e,t){const r=lt({},zG,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(r.sensitive?.25:0);if(d.type===0)f||(i+="/"),i+=d.value.replace(WG,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:p,optional:g,regexp:m}=d;a.push({name:v,repeatable:p,optional:g});const y=m||x1;if(y!==x1){h+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${v}" (${y}): `+b.message)}}let _=p?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),i+=_,h+=20,g&&(h+=-8),p&&(h+=-20),y===".*"&&(h+=-50)}c.push(h)}n.push(c)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(i+="/?"),r.end?i+="$":r.strict&&(i+="(?:/|$)");const o=new RegExp(i,r.sensitive?"":"i");function s(u){const c=u.match(o),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=a[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:p,optional:g}=h,m=v in u?u[v]:"";if(Pn(m)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const y=Pn(m)?m.join("/"):m;if(!y)if(g)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=y}}return c||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function GG(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function UG(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const a=GG(n[r],i[r]);if(a)return a;r++}if(Math.abs(i.length-n.length)===1){if(C1(n))return 1;if(C1(i))return-1}return i.length-n.length}function C1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const jG={type:0,value:""},YG=/[a-zA-Z0-9_]/;function qG(e){if(!e)return[[]];if(e==="/")return[[jG]];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="",c="";function f(){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:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),r=1):d();break;case 4:d(),r=n;break;case 1:l==="("?r=2:YG.test(l)?d():(f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:r=3:c+=l;break;case 3:f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),i}function KG(e,t,r){const n=VG(qG(e.path),r),i=lt(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function XG(e,t){const r=[],n=new Map;t=A1({strict:!1,end:!0,sensitive:!1},t);function i(c){return n.get(c)}function a(c,f,d){const h=!d,v=ZG(c);v.aliasOf=d&&d.record;const p=A1(t,c),g=[v];if("alias"in c){const _=typeof c.alias=="string"?[c.alias]:c.alias;for(const b of _)g.push(lt({},v,{components:d?d.record.components:v.components,path:b,aliasOf:d?d.record:v}))}let m,y;for(const _ of g){const{path:b}=_;if(f&&b[0]!=="/"){const S=f.record.path,w=S[S.length-1]==="/"?"":"/";_.path=f.record.path+(b&&w+b)}if(m=KG(_,f,p),d?d.alias.push(m):(y=y||m,y!==m&&y.alias.push(m),h&&c.name&&!M1(m)&&o(c.name)),v.children){const S=v.children;for(let w=0;w<S.length;w++)a(S[w],m,d&&d.children[w])}d=d||m,(m.record.components&&Object.keys(m.record.components).length||m.record.name||m.record.redirect)&&l(m)}return y?()=>{o(y)}:$l}function o(c){if(RA(c)){const f=n.get(c);f&&(n.delete(c),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(c);f>-1&&(r.splice(f,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return r}function l(c){let f=0;for(;f<r.length&&UG(c,r[f])>=0&&(c.record.path!==r[f].record.path||!NA(c,r[f]));)f++;r.splice(f,0,c),c.record.name&&!M1(c)&&n.set(c.record.name,c)}function u(c,f){let d,h={},v,p;if("name"in c&&c.name){if(d=n.get(c.name),!d)throw Ps(1,{location:c});p=d.record.name,h=lt(T1(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),c.params&&T1(c.params,d.keys.map(y=>y.name))),v=d.stringify(h)}else if("path"in c)v=c.path,d=r.find(y=>y.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=f.name?n.get(f.name):r.find(y=>y.re.test(f.path)),!d)throw Ps(1,{location:c,currentLocation:f});p=d.record.name,h=lt({},f.params,c.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:JG(g)}}return e.forEach(c=>a(c)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function T1(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function ZG(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:QG(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 QG(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 M1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function JG(e){return e.reduce((t,r)=>lt(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 NA(e,t){return t.children.some(r=>r===e||NA(e,r))}const FA=/#/g,eU=/&/g,tU=/\//g,rU=/=/g,nU=/\?/g,BA=/\+/g,iU=/%5B/g,aU=/%5D/g,$A=/%5E/g,oU=/%60/g,HA=/%7B/g,sU=/%7C/g,zA=/%7D/g,lU=/%20/g;function $y(e){return encodeURI(""+e).replace(sU,"|").replace(iU,"[").replace(aU,"]")}function uU(e){return $y(e).replace(HA,"{").replace(zA,"}").replace($A,"^")}function yg(e){return $y(e).replace(BA,"%2B").replace(lU,"+").replace(FA,"%23").replace(eU,"%26").replace(oU,"`").replace(HA,"{").replace(zA,"}").replace($A,"^")}function cU(e){return yg(e).replace(rU,"%3D")}function fU(e){return $y(e).replace(FA,"%23").replace(nU,"%3F")}function dU(e){return e==null?"":fU(e).replace(tU,"%2F")}function ld(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function hU(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const a=n[i].replace(BA," "),o=a.indexOf("="),s=ld(o<0?a:a.slice(0,o)),l=o<0?null:ld(a.slice(o+1));if(s in t){let u=t[s];Pn(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function P1(e){let t="";for(let r in e){const n=e[r];if(r=cU(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Pn(n)?n.map(a=>a&&yg(a)):[n&&yg(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function vU(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Pn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const pU=Symbol(""),E1=Symbol(""),Hy=Symbol(""),WA=Symbol(""),_g=Symbol("");function Zs(){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 Gi(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(Ps(4,{from:r,to:t})):f instanceof Error?s(f):HG(f)?s(Ps(2,{from:t,to:f})):(a&&n.enterCallbacks[i]===a&&typeof f=="function"&&a.push(f),o())},u=e.call(n&&n.instances[i],t,r,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function tv(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(gU(s)){const u=(s.__vccOpts||s)[t];u&&i.push(Gi(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 c=wG(u)?u.default:u;a.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Gi(d,r,n,a,o)()}))}}return i}function gU(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function L1(e){const t=Pe(Hy),r=Pe(WA),n=k(()=>t.resolve(P(e.to))),i=k(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const d=f.findIndex(As.bind(null,c));if(d>-1)return d;const h=D1(l[u-2]);return u>1&&D1(c)===h&&f[f.length-1].path!==h?f.findIndex(As.bind(null,l[u-2])):d}),a=k(()=>i.value>-1&&bU(r.params,n.value.params)),o=k(()=>i.value>-1&&i.value===r.matched.length-1&&IA(r.params,n.value.params));function s(l={}){return _U(l)?t[P(e.replace)?"replace":"push"](P(e.to)).catch($l):Promise.resolve()}return{route:n,href:k(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const mU=ce({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=fn(L1(e)),{options:n}=Pe(Hy),i=k(()=>({[I1(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[I1(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:Ce("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),yU=mU;function _U(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 bU(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(!Pn(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function D1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const I1=(e,t,r)=>e??t??r,wU=ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Pe(_g),i=k(()=>e.route||n.value),a=Pe(E1,0),o=k(()=>{let u=P(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=k(()=>i.value.matched[o.value]);At(E1,k(()=>o.value+1)),At(pU,s),At(_g,i);const l=B();return xe(()=>[l.value,s.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!As(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return O1(r.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=Ce(d,lt({},v,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return O1(r.default,{Component:g,route:u})||g}}});function O1(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const SU=wU;function xU(e){const t=XG(e.routes,e),r=e.parseQuery||hU,n=e.stringifyQuery||P1,i=e.history,a=Zs(),o=Zs(),s=Zs(),l=$m(Ii);let u=Ii;qo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Jh.bind(null,V=>""+V),f=Jh.bind(null,dU),d=Jh.bind(null,ld);function h(V,Q){let W,q;return RA(V)?(W=t.getRecordMatcher(V),q=Q):q=V,t.addRoute(q,W)}function v(V){const Q=t.getRecordMatcher(V);Q&&t.removeRoute(Q)}function p(){return t.getRoutes().map(V=>V.record)}function g(V){return!!t.getRecordMatcher(V)}function m(V,Q){if(Q=lt({},Q||l.value),typeof V=="string"){const L=ev(r,V,Q.path),I=t.resolve({path:L.path},Q),z=i.createHref(L.fullPath);return lt(L,I,{params:d(I.params),hash:ld(L.hash),redirectedFrom:void 0,href:z})}let W;if("path"in V)W=lt({},V,{path:ev(r,V.path,Q.path).path});else{const L=lt({},V.params);for(const I in L)L[I]==null&&delete L[I];W=lt({},V,{params:f(V.params)}),Q.params=f(Q.params)}const q=t.resolve(W,Q),le=V.hash||"";q.params=c(d(q.params));const de=CG(n,lt({},V,{hash:uU(le),path:q.path})),J=i.createHref(de);return lt({fullPath:de,hash:le,query:n===P1?vU(V.query):V.query||{}},q,{redirectedFrom:void 0,href:J})}function y(V){return typeof V=="string"?ev(r,V,l.value.path):lt({},V)}function _(V,Q){if(u!==V)return Ps(8,{from:Q,to:V})}function b(V){return x(V)}function S(V){return b(lt(y(V),{replace:!0}))}function w(V){const Q=V.matched[V.matched.length-1];if(Q&&Q.redirect){const{redirect:W}=Q;let q=typeof W=="function"?W(V):W;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=y(q):{path:q},q.params={}),lt({query:V.query,hash:V.hash,params:"path"in q?{}:V.params},q)}}function x(V,Q){const W=u=m(V),q=l.value,le=V.state,de=V.force,J=V.replace===!0,L=w(W);if(L)return x(lt(y(L),{state:typeof L=="object"?lt({},le,L.state):le,force:de,replace:J}),Q||W);const I=W;I.redirectedFrom=Q;let z;return!de&&TG(n,q,W)&&(z=Ps(16,{to:I,from:q}),j(q,q,!0,!1)),(z?Promise.resolve(z):M(I,q)).catch(U=>ai(U)?ai(U,2)?U:R(U):G(U,I,q)).then(U=>{if(U){if(ai(U,2))return x(lt({replace:J},y(U.to),{state:typeof U.to=="object"?lt({},le,U.to.state):le,force:de}),Q||I)}else U=A(I,q,!0,J,le);return E(I,q,U),U})}function C(V,Q){const W=_(V,Q);return W?Promise.reject(W):Promise.resolve()}function M(V,Q){let W;const[q,le,de]=CU(V,Q);W=tv(q.reverse(),"beforeRouteLeave",V,Q);for(const L of q)L.leaveGuards.forEach(I=>{W.push(Gi(I,V,Q))});const J=C.bind(null,V,Q);return W.push(J),Io(W).then(()=>{W=[];for(const L of a.list())W.push(Gi(L,V,Q));return W.push(J),Io(W)}).then(()=>{W=tv(le,"beforeRouteUpdate",V,Q);for(const L of le)L.updateGuards.forEach(I=>{W.push(Gi(I,V,Q))});return W.push(J),Io(W)}).then(()=>{W=[];for(const L of V.matched)if(L.beforeEnter&&!Q.matched.includes(L))if(Pn(L.beforeEnter))for(const I of L.beforeEnter)W.push(Gi(I,V,Q));else W.push(Gi(L.beforeEnter,V,Q));return W.push(J),Io(W)}).then(()=>(V.matched.forEach(L=>L.enterCallbacks={}),W=tv(de,"beforeRouteEnter",V,Q),W.push(J),Io(W))).then(()=>{W=[];for(const L of o.list())W.push(Gi(L,V,Q));return W.push(J),Io(W)}).catch(L=>ai(L,8)?L:Promise.reject(L))}function E(V,Q,W){for(const q of s.list())q(V,Q,W)}function A(V,Q,W,q,le){const de=_(V,Q);if(de)return de;const J=Q===Ii,L=qo?history.state:{};W&&(q||J?i.replace(V.fullPath,lt({scroll:J&&L&&L.scroll},le)):i.push(V.fullPath,le)),l.value=V,j(V,Q,W,J),R()}let T;function D(){T||(T=i.listen((V,Q,W)=>{if(!Ae.listening)return;const q=m(V),le=w(q);if(le){x(lt(le,{replace:!0}),q).catch($l);return}u=q;const de=l.value;qo&&OG(b1(de.fullPath,W.delta),ih()),M(q,de).catch(J=>ai(J,12)?J:ai(J,2)?(x(J.to,q).then(L=>{ai(L,20)&&!W.delta&&W.type===wu.pop&&i.go(-1,!1)}).catch($l),Promise.reject()):(W.delta&&i.go(-W.delta,!1),G(J,q,de))).then(J=>{J=J||A(q,de,!1),J&&(W.delta&&!ai(J,8)?i.go(-W.delta,!1):W.type===wu.pop&&ai(J,20)&&i.go(-1,!1)),E(q,de,J)}).catch($l)}))}let N=Zs(),H=Zs(),$;function G(V,Q,W){R(V);const q=H.list();return q.length?q.forEach(le=>le(V,Q,W)):console.error(V),Promise.reject(V)}function F(){return $&&l.value!==Ii?Promise.resolve():new Promise((V,Q)=>{N.add([V,Q])})}function R(V){return $||($=!V,D(),N.list().forEach(([Q,W])=>V?W(V):Q()),N.reset()),V}function j(V,Q,W,q){const{scrollBehavior:le}=e;if(!qo||!le)return Promise.resolve();const de=!W&&RG(b1(V.fullPath,0))||(q||!W)&&history.state&&history.state.scroll||null;return Ft().then(()=>le(V,Q,de)).then(J=>J&&IG(J)).catch(J=>G(J,V,Q))}const re=V=>i.go(V);let oe;const ye=new Set,Ae={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:b,replace:S,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:H.add,isReady:F,install(V){const Q=this;V.component("RouterLink",yU),V.component("RouterView",SU),V.config.globalProperties.$router=Q,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>P(l)}),qo&&!oe&&l.value===Ii&&(oe=!0,b(i.location).catch(le=>{}));const W={};for(const le in Ii)W[le]=k(()=>l.value[le]);V.provide(Hy,Q),V.provide(WA,fn(W)),V.provide(_g,l);const q=V.unmount;ye.add(V),V.unmount=function(){ye.delete(V),ye.size<1&&(u=Ii,T&&T(),T=null,l.value=Ii,oe=!1,$=!1),q()}}};return Ae}function Io(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function CU(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(u=>As(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>As(u,l))||i.push(l))}return[r,n,i]}var aa={},TU={get exports(){return aa},set exports(e){aa=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()})(e8,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(f){return typeof f<"u"&&f!==null},o=function(f){return f!==f},s=function(f){return isFinite(f)&&!o(parseFloat(f))},l=function(f){var d=Object.prototype.toString.call(f);return d==="[object Array]"},u={intword:function(f,d){var h=arguments.length<=2||arguments[2]===void 0?2:arguments[2];return u.compactInteger(f,h)},compactInteger:function(f){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];d=Math.max(d,0);var h=parseInt(f,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,S=0;S<y.length;S++){var w=y[S];if(m>=w){b=w;break}}var x=m-b+1,C=g.split(""),M=C.slice(0,x),E=C.slice(x,x+d+1),A=M.join(""),T=E.join("");T.length<d&&(T+=""+Array(d-T.length+1).join("0"));var D=void 0;if(d===0)D=""+v+A+_[y.indexOf(b)];else{var N=Number(A+"."+T).toFixed(d);D=""+v+N+_[y.indexOf(b)]}return D},intComma:function(f){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];return u.formatNumber(f,d)},intcomma:function(){return u.intComma.apply(u,arguments)},fileSize:function(f){var d=arguments.length<=1||arguments[1]===void 0?2:arguments[1];for(var h in i)if(i.hasOwnProperty(h)){var v=i[h];if(f>=v)return u.formatNumber(f/v,d,"")+" "+h+"B"}return f>=1024?u.formatNumber(f/1024,0)+" KB":u.formatNumber(f,0)+u.pluralize(f," byte")},filesize:function(){return u.fileSize.apply(u,arguments)},formatNumber:function(f){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(x,C,M){return M?x.substr(0,M)+C:""},g=function(x,C,M){return x.substr(M).replace(/(\d{3})(?=\d)/g,"$1"+C)},m=function(x,C,M){return M?C+u.toFixed(Math.abs(x),M).split(".")[1]:""},y=u.normalizePrecision(d),_=f<0&&"-"||"",b=String(parseInt(u.toFixed(Math.abs(f||0),y),10)),S=b.length>3?b.length%3:0;return _+p(b,h,S)+g(b,h,S)+m(f,v,y)},toFixed:function(f,d){d=a(d)?d:u.normalizePrecision(d,0);var h=Math.pow(10,d);return(Math.round(f*h)/h).toFixed(d)},normalizePrecision:function(f,d){return f=Math.round(Math.abs(f)),o(f)?d:f},ordinal:function(f){var d=parseInt(f,10);if(d===0)return f;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(f){var d=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(s(f)&&f>=0){var h=parseFloat(f),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(f,d,h){return a(f)&&a(d)?(h=a(h)?h:d+"s",parseInt(f,10)===1?d:h):null},truncate:function(f){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"...":arguments[2];return f.length>d?f.substring(0,d-h.length)+h:f},truncateWords:function(f,d){for(var h=f.split(" "),v="",p=0;p<d;)a(h[p])&&(v+=h[p]+" "),p++;return h.length>d?v+"...":null},truncatewords:function(){return u.truncateWords.apply(u,arguments)},boundedNumber:function(f){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(f)&&s(d)&&f>d&&(v=d+h),(v||f).toString()},truncatenumber:function(){return u.boundedNumber.apply(u,arguments)},oxford:function(f,d,h){var v=f.length,p=void 0;if(v<2)return String(f);if(v===2)return f.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 "+f[v-1];return f.slice(0,p).join(", ")+h},dictionary:function(f){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(f)&&(typeof f>"u"?"undefined":r(f))==="object"&&!l(f)){var p=[];for(var g in f)if(f.hasOwnProperty(g)){var m=f[g];p.push(""+g+d+m)}return p.join(h)}return v},frequency:function(f,d){if(!l(f))return null;var h=f.length,v=u.times(h);return h===0?v+" "+d:d+" "+v},pace:function(f,d){var h=arguments.length<=2||arguments[2]===void 0?"time":arguments[2];if(f===0||d===0)return"No "+u.pluralize(0,h);for(var v="Approximately",p=void 0,g=void 0,m=f/d,y=0;y<n.length;++y){var _=n[y];if(g=m*_.value,g>1){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(f){var d=arguments.length<=1||arguments[1]===void 0?"<br/>":arguments[1];return f.replace(/\n/g,d)},br2nl:function(f){var d=arguments.length<=1||arguments[1]===void 0?`\r
+`:arguments[1];return f.replace(/\<br\s*\/?\>/g,d)},capitalize:function(f){var d=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return""+f.charAt(0).toUpperCase()+(d?f.slice(1).toLowerCase():f.slice(1))},capitalizeAll:function(f){return f.replace(/(?:^|\s)\S/g,function(d){return d.toUpperCase()})},titleCase:function(f){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],S=[],w=y.split(_?p:v),x=0;x<w.length;++x){var C=w[x];if(C.indexOf("-")!==-1){S.push(g(C,!0,x===0||x===w.length-1));continue}if(b&&(x===0||x===w.length-1)){S.push(h.test(C)?C:u.capitalize(C));continue}h.test(C)?S.push(C):d.test(C)?S.push(C.toLowerCase()):S.push(u.capitalize(C))}return S.join(_?"-":" ")},g(f)},titlecase:function(){return u.titleCase.apply(u,arguments)}};return u})})(TU,aa);/*! *****************************************************************************
 Copyright (c) Microsoft Corporation.
 
 Permission to use, copy, modify, and/or distribute this software for any
@@ -46,8 +46,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */var bg=function(e,t){return bg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},bg(e,t)};function pe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var MU=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),AU=function(){function e(){this.browser=new MU,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Va=new AU;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Va.wxa=!0,Va.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Va.worker=!0:typeof navigator>"u"?(Va.node=!0,Va.svgSupported=!0):EU(navigator.userAgent,Va);function EU(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 Ge=Va;var zy=12,PU="sans-serif",yo=zy+"px "+PU,LU=20,DU=100,IU="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function OU(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-LU)/DU;t[n]=i}return t}var RU=OU(IU),Mo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Mo.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||yo),e.measureText(r);r=r||"",n=n||yo;var a=/(\d+)px/.exec(n),o=a&&+a[1]||zy,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=RU[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},VA=oa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),GA=oa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ec=Object.prototype.toString,ah=Array.prototype,kU=ah.forEach,NU=ah.filter,Wy=ah.slice,FU=ah.map,R1=function(){}.constructor,Ac=R1?R1.prototype:null,Vy="__proto__",BU=2311;function UA(){return BU++}function Gy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Qe(e){if(e==null||typeof e!="object")return e;var t=e,r=ec.call(e);if(r==="[object Array]"){if(!Wl(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Qe(e[n])}}else if(GA[r]){if(!Wl(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!VA[r]&&!Wl(e)&&!ud(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Vy&&(t[o]=Qe(e[o]))}return t}function st(e,t,r){if(!Ie(t)||!Ie(e))return r?Qe(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Vy){var i=e[n],a=t[n];Ie(a)&&Ie(i)&&!ge(a)&&!ge(i)&&!ud(a)&&!ud(i)&&!k1(a)&&!k1(i)&&!Wl(a)&&!Wl(i)?st(i,a,r):(r||!(n in e))&&(e[n]=Qe(t[n]))}return e}function se(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Vy&&(e[r]=t[r]);return e}function dt(e,t,r){for(var n=Tt(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}Mo.createCanvas;function ot(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function $U(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Jn(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else dt(e,t,r)}function Er(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function O(e,t,r){if(e&&t)if(e.forEach&&e.forEach===kU)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Re(e,t,r){if(!e)return[];if(!t)return Uy(e);if(e.map&&e.map===FU)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function oa(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Vt(e,t,r){if(!e)return[];if(!t)return Uy(e);if(e.filter&&e.filter===NU)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Tt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function HU(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Wy.call(arguments)))}}var _t=Ac&&Ve(Ac.bind)?Ac.call.bind(Ac.bind):HU;function Rt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Wy.call(arguments)))}}function ge(e){return Array.isArray?Array.isArray(e):ec.call(e)==="[object Array]"}function Ve(e){return typeof e=="function"}function Te(e){return typeof e=="string"}function wg(e){return ec.call(e)==="[object String]"}function bt(e){return typeof e=="number"}function Ie(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function k1(e){return!!VA[ec.call(e)]}function zr(e){return!!GA[ec.call(e)]}function ud(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function oh(e){return e.colorStops!=null}function zU(e){return e.image!=null}function cd(e){return e!==e}function xu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function qe(e,t){return e??t}function zl(e,t,r){return e??t??r}function Uy(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Wy.apply(e,t)}function jA(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function bi(e,t){if(!e)throw new Error(t)}function Vn(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var YA="__ec_primitive__";function xg(e){e[YA]=!0}function Wl(e){return e[YA]}var WU=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return Tt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),qA=typeof Map=="function";function VU(){return qA?new Map:new WU}var GU=function(){function e(t){var r=ge(t);this.data=VU();var n=this;t instanceof e?t.each(i):t&&O(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return qA?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Ue(e){return new GU(e)}function UU(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function sh(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&se(r,t),r}function KA(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ps(e,t){return e.hasOwnProperty(t)}function Tr(){}var jU=180/Math.PI;function Hs(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function YU(e){return[e[0],e[1]]}function N1(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function qU(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function KU(e){return Math.sqrt(XU(e))}function XU(e){return e[0]*e[0]+e[1]*e[1]}function rv(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function ZU(e,t){var r=KU(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Sg(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Cg=Sg;function QU(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ls=QU;function nv(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function on(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Jo(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function es(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Oo=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),JU=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Oo(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Oo(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Oo(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Oo(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Oo(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Oo(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const e9=JU;var t9=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const ei=t9;var r9=Math.log(2);function Tg(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/r9);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(f+=(h%2?-1:1)*e[r][d]*Tg(e,t-1,c,u,i|v,a),h++)}return a[o]=f,f}function F1(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=Tg(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Tg(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var B1="___zrEVENTSAVED",iv=[];function n9(e,t,r,n,i){return Mg(iv,t,n,i,!0)&&Mg(e,r,iv[0],iv[1])}function Mg(e,t,r,n,i){if(t.getBoundingClientRect&&Ge.domSupported&&!XA(t)){var a=t[B1]||(t[B1]={}),o=i9(t,a),s=a9(o,a,i);if(s)return s(e,r,n),!0}return!1}function i9(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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 a9(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 c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?F1(s,o):F1(o,s))}function XA(e){return e.nodeName.toUpperCase()==="CANVAS"}var o9=/([&<>"'])/g,s9={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Xr(e){return e==null?"":(e+"").replace(o9,function(t,r){return s9[r]})}var l9=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,av=[],u9=Ge.browser.firefox&&+Ge.browser.version.split(".")[0]<39;function Ag(e,t,r,n){return r=r||{},n?$1(e,t,r):u9&&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):$1(e,t,r),r}function $1(e,t,r){if(Ge.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(XA(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Mg(av,e,n,i)){r.zrX=av[0],r.zrY=av[1];return}}r.zrX=r.zrY=0}function jy(e){return e||window.event}function jr(e,t,r){if(t=jy(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&&Ag(e,o,t,r)}else{Ag(e,t,t,r);var a=c9(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&l9.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function c9(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 f9(e,t,r,n){e.addEventListener(t,r,n)}function d9(e,t,r,n){e.removeEventListener(t,r,n)}var ZA=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},h9=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;o<s;o++){var l=i[o],u=Ag(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in ov)if(ov.hasOwnProperty(r)){var n=ov[r](this._track,t);if(n)return n}},e}();function H1(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function v9(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var ov={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=H1(n)/H1(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=v9(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Su(){return[1,0,0,1,0,0]}function Yy(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function p9(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 us(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 Eg(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 qy(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),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function g9(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 lh(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 m9=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=m9;var Ec=Math.min,Pc=Math.max,ma=new ke,ya=new ke,_a=new ke,ba=new ke,Qs=new ke,Js=new ke,y9=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=Ec(t.x,this.x),n=Ec(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pc(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pc(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=Su();return Eg(a,a,[-r.x,-r.y]),g9(a,a,[n,i]),Eg(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,c=t.y,f=t.y+t.height,d=!(a<l||u<i||s<c||f<o);if(r){var h=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-c),y=Math.abs(f-o),_=Math.min(p,g),b=Math.min(m,y);a<l||u<i?_>v&&(v=_,p<g?ke.set(Js,-p,0):ke.set(Js,g,0)):_<h&&(h=_,p<g?ke.set(Qs,p,0):ke.set(Qs,-g,0)),s<c||f<o?b>v&&(v=b,m<y?ke.set(Js,0,-m):ke.set(Js,0,y)):_<h&&(h=_,m<y?ke.set(Qs,0,m):ke.set(Qs,0,-y))}return r&&ke.copy(r,d?Qs:Js),d},e.prototype.contain=function(t,r){var n=this;return t>=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}ma.x=_a.x=r.x,ma.y=ba.y=r.y,ya.x=ba.x=r.x+r.width,ya.y=_a.y=r.y+r.height,ma.transform(n),ba.transform(n),ya.transform(n),_a.transform(n),t.x=Ec(ma.x,ya.x,_a.x,ba.x),t.y=Ec(ma.y,ya.y,_a.y,ba.y);var l=Pc(ma.x,ya.x,_a.x,ba.x),u=Pc(ma.y,ya.y,_a.y,ba.y);t.width=l-t.x,t.height=u-t.y},e}();const et=y9;var QA="silent";function _9(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:b9}}function b9(){ZA(this.event)}var w9=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}(ei),el=function(){function e(t,r){this.x=t,this.y=r}return e}(),x9=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],sv=new et(0,0,0,0),JA=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new el(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new w9,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new e9(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(O(x9,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=e2(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 el(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.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 el(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=_9(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 el(r,n);if(z1(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new et(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(sv.copy(d.getBoundingRect()),d.transform&&sv.applyTransform(d.transform),sv.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=v){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(z1(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new h9);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new el;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(ei);O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){JA.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=e2(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Cg(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function S9(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?QA:!0}return!1}function z1(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=S9(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==QA)){t.target=o;break}}}function e2(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const C9=JA;var t2=32,tl=7;function T9(e){for(var t=0;e>=t2;)t|=e&1,e>>=1;return e+t}function W1(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;M9(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function M9(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function V1(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>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 lv(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function uv(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function A9(e,t){var r=tl,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]&&h--;else if(i[h]>i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var v=n[h],p=i[h],g=n[h+1],m=i[h+1];i[h]=p+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=uv(e[g],e,v,p,0,t);v+=y,p-=y,p!==0&&(m=lv(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?f(v,p,g,m):d(v,p,g,m)))}function f(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[h+m];var y=0,_=p,b=h;if(e[b++]=e[_++],--g===0){for(m=0;m<v;m++)e[b+m]=o[y+m];return}if(v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y];return}for(var x=r,w,S,C;;){w=0,S=0,C=!1;do if(t(e[_],o[y])<0){if(e[b++]=e[_++],S++,w=0,--g===0){C=!0;break}}else if(e[b++]=o[y++],w++,S=0,--v===1){C=!0;break}while((w|S)<x);if(C)break;do{if(w=uv(e[_],o,y,v,0,t),w!==0){for(m=0;m<w;m++)e[b+m]=o[y+m];if(b+=w,y+=w,v-=w,v<=1){C=!0;break}}if(e[b++]=e[_++],--g===0){C=!0;break}if(S=lv(o[y],e,_,g,0,t),S!==0){for(m=0;m<S;m++)e[b+m]=e[_+m];if(b+=S,_+=S,g-=S,g===0){C=!0;break}}if(e[b++]=o[y++],--v===1){C=!0;break}x--}while(w>=tl||S>=tl);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[b+m]=o[y+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var y=h+v-1,_=g-1,b=p+g-1,x=0,w=0;if(e[b--]=e[y--],--v===0){for(x=b-(g-1),m=0;m<g;m++)e[x+m]=o[m];return}if(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[_];return}for(var S=r;;){var C=0,M=0,P=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,M=0,--v===0){P=!0;break}}else if(e[b--]=o[_--],M++,C=0,--g===1){P=!0;break}while((C|M)<S);if(P)break;do{if(C=v-uv(o[_],e,h,v,v-1,t),C!==0){for(b-=C,y-=C,v-=C,w=b+1,x=y+1,m=C-1;m>=0;m--)e[w+m]=e[x+m];if(v===0){P=!0;break}}if(e[b--]=o[_--],--g===1){P=!0;break}if(M=g-lv(e[y],o,0,g,g-1,t),M!==0){for(b-=M,_-=M,g-=M,w=b+1,x=_+1,m=0;m<M;m++)e[w+m]=o[x+m];if(g<=1){P=!0;break}}if(e[b--]=e[y--],--v===0){P=!0;break}S--}while(C>=tl||M>=tl);if(P)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;m<g;m++)e[x+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function If(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<t2){a=W1(e,r,n,t),V1(e,r,n,r+a,t);return}var o=A9(e,t),s=T9(i);do{if(a=W1(e,r,n,t),a<s){var l=i;l>s&&(l=s),V1(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 Rr=1,wl=2,Ko=4,G1=!1;function cv(){G1||(G1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function U1(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var E9=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=U1}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,If(n,U1)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Rr),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(cv(),c.z=0),isNaN(c.z2)&&(cv(),c.z2=0),isNaN(c.zlevel)&&(cv(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,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<n;r++)this.delRoot(t[r]);return}var i=ot(this._roots,t);i>=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 P9=E9;var r2;r2=Ge.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Pg=r2;var Of={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-Of.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?Of.bounceIn(e*2)*.5:Of.bounceOut(e*2-1)*.5+.5}};const n2=Of;var Lc=Math.pow,Qi=Math.sqrt,fd=1e-8,i2=1e-4,j1=Qi(3),Dc=1/3,Hn=Hs(),Zr=Hs(),cs=Hs();function Yi(e){return e>-fd&&e<fd}function a2(e){return e>fd||e<-fd}function jt(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 Y1(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function o2(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,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Yi(c)&&Yi(f))if(Yi(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var p=f*f-4*c*d;if(Yi(p)){var g=f/c,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=Qi(p),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-Lc(-_,Dc):_=Lc(_,Dc),b<0?b=-Lc(-b,Dc):b=Lc(b,Dc);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var x=(2*c*s-3*o*f)/(2*Qi(c*c*c)),w=Math.acos(x)/3,S=Qi(c),C=Math.cos(w),v=(-s-2*S*C)/(3*o),m=(-s+S*(C+j1*Math.sin(w)))/(3*o),M=(-s+S*(C-j1*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),M>=0&&M<=1&&(a[h++]=M)}}return h}function s2(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(Yi(o)){if(a2(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Yi(c))i[0]=-a/(2*o);else if(c>0){var f=Qi(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function dd(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,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function l2(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;Hn[0]=l,Hn[1]=u;for(var y=0;y<1;y+=.05)Zr[0]=jt(e,r,i,o,y),Zr[1]=jt(t,n,a,s,y),g=ls(Hn,Zr),g<h&&(f=y,h=g);h=1/0;for(var _=0;_<32&&!(d<i2);_++)v=f-d,p=f+d,Zr[0]=jt(e,r,i,o,v),Zr[1]=jt(t,n,a,s,v),g=ls(Zr,Hn),v>=0&&g<h?(f=v,h=g):(cs[0]=jt(e,r,i,o,p),cs[1]=jt(t,n,a,s,p),m=ls(cs,Hn),p<=1&&m<h?(f=p,h=m):d*=.5);return c&&(c[0]=jt(e,r,i,o,f),c[1]=jt(t,n,a,s,f)),Qi(h)}function L9(e,t,r,n,i,a,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,p=jt(e,r,i,o,v),g=jt(t,n,a,s,v),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function Jt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function q1(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function D9(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Yi(a)){if(a2(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Yi(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Qi(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function u2(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function hd(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 c2(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Hn[0]=o,Hn[1]=s;for(var d=0;d<1;d+=.05){Zr[0]=Jt(e,r,i,d),Zr[1]=Jt(t,n,a,d);var h=ls(Hn,Zr);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<i2);v++){var p=u-c,g=u+c;Zr[0]=Jt(e,r,i,p),Zr[1]=Jt(t,n,a,p);var h=ls(Zr,Hn);if(p>=0&&h<f)u=p,f=h;else{cs[0]=Jt(e,r,i,g),cs[1]=Jt(t,n,a,g);var m=ls(cs,Hn);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Jt(e,r,i,u),l[1]=Jt(t,n,a,u)),Qi(f)}function I9(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Jt(e,r,i,d),v=Jt(t,n,a,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var O9=/cubic-bezier\(([0-9,\.e ]+)\)/;function f2(e){var t=e&&O9.exec(e);if(t){var r=t[1].split(","),n=+Vn(r[0]),i=+Vn(r[1]),a=+Vn(r[2]),o=+Vn(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:o2(0,n,a,1,l,s)&&jt(0,i,o,1,s[0])}}}var R9=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||Tr,this.ondestroy=t.ondestroy||Tr,this.onrestart=t.onrestart||Tr,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=Ve(t)?t:n2[t]||f2(t)},e}();const k9=R9;var d2=function(){function e(t){this.value=t}return e}(),N9=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new d2(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}(),F9=function(){function e(t){this._list=new N9,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 d2(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 tc=F9;var K1={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 Vl(e){return e=Math.round(e),e<0?0:e>255?255:e}function X1(e){return e<0?0:e>1?1:e}function fv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Vl(parseFloat(t)/100*255):Vl(parseInt(t,10))}function Gl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?X1(parseFloat(t)/100):X1(parseFloat(t))}function dv(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 Ur(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Lg(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var h2=new tc(20),Ic=null;function Ro(e,t){Ic&&Lg(Ic,t),Ic=h2.put(e,Ic||t.slice())}function so(e,t){if(e){t=t||[];var r=h2.get(e);if(r)return Lg(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in K1)return Lg(t,K1[n]),Ro(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)){Ur(t,0,0,0,1);return}return Ur(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),Ro(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ur(t,0,0,0,1);return}return Ur(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ro(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(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ur(t,+u[0],+u[1],+u[2],1):Ur(t,0,0,0,1);c=Gl(u.pop());case"rgb":if(u.length>=3)return Ur(t,fv(u[0]),fv(u[1]),fv(u[2]),u.length===3?c:Gl(u[3])),Ro(e,t),t;Ur(t,0,0,0,1);return;case"hsla":if(u.length!==4){Ur(t,0,0,0,1);return}return u[3]=Gl(u[3]),Z1(u,t),Ro(e,t),t;case"hsl":if(u.length!==3){Ur(t,0,0,0,1);return}return Z1(u,t),Ro(e,t),t;default:return}}Ur(t,0,0,0,1)}}function Z1(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Gl(e[1]),i=Gl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Ur(t,Vl(dv(o,a,r+1/3)*255),Vl(dv(o,a,r)*255),Vl(dv(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Q1(e,t){var r=so(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 Ky(r,r.length===4?"rgba":"rgb")}}function Ky(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 vd(e,t){var r=so(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function B9(e){return e.type==="linear"}function $9(e){return e.type==="radial"}(function(){return Ge.hasGlobalWindow&&Ve(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 Dg=Array.prototype.slice;function di(e,t,r){return(t-e)*r+e}function hv(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=di(t[a],r[a],n);return e}function H9(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=di(t[o][s],r[o][s],n)}return e}function Oc(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function J1(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function z9(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function W9(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Dg.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function Rf(e){if(Er(e)){var t=e.length;if(Er(e[0])){for(var r=[],n=0;n<t;n++)r.push(Dg.call(e[n]));return r}return Dg.call(e)}return e}function kf(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function V9(e){return Er(e&&e[0])?2:1}var Rc=0,Nf=1,v2=2,xl=3,Ig=4,Og=5,ew=6;function tw(e){return e===Ig||e===Og}function kc(e){return e===Nf||e===v2}var rl=[0,0,0,0],G9=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=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=ew,l=r;if(Er(r)){var u=V9(r);s=u,(u===1&&!bt(r[0])||u===2&&!bt(r[0][0]))&&(o=!0)}else if(bt(r)&&!cd(r))s=Rc;else if(Te(r))if(!isNaN(+r))s=Rc;else{var c=so(r);c&&(l=c,s=xl)}else if(oh(r)){var f=se({},l);f.colorStops=Re(r.colorStops,function(h){return{offset:h.offset,color:so(h.color)}}),B9(r)?s=Ig:$9(r)&&(s=Og),l=f}a===0?this.valType=s:(s!==this.valType||s===ew)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Ve(n)?n:n2[n]||f2(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=kc(i),u=tw(i),c=0;c<a;c++){var f=n[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==a-1?W9(d,h,i):u&&z9(d.colorStops,h.colorStops))}if(!s&&i!==Og&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<a;c++)i===Rc?n[c].additiveValue=n[c].value-v:i===xl?n[c].additiveValue=Oc([],n[c].value,v,-1):kc(i)&&(n[c].additiveValue=i===Nf?Oc([],n[c].value,v,-1):J1([],n[c].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===xl,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var p=d(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,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?rl:t[l];if((kc(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(kc(a))a===Nf?hv(y,h[i],v[i],m):H9(y,h[i],v[i],m);else if(tw(a)){var _=h[i],b=v[i],x=a===Ig;t[l]={type:x?"linear":"radial",x:di(_.x,b.x,m),y:di(_.y,b.y,m),colorStops:Re(_.colorStops,function(S,C){var M=b.colorStops[C];return{offset:di(S.offset,M.offset,m),color:kf(hv([],S.color,M.color,m))}}),global:b.global},x?(t[l].x2=di(_.x2,b.x2,m),t[l].y2=di(_.y2,b.y2,m)):t[l].r=di(_.r,b.r,m)}else if(u)hv(y,h[i],v[i],m),n||(t[l]=kf(y));else{var w=di(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===Rc?t[n]=t[n]+i:r===xl?(so(t[n],rl),Oc(rl,rl,i,1),t[n]=kf(rl)):r===Nf?Oc(t[n],t[n],i,1):r===v2&&J1(t[n],t[n],i,1)},e}(),U9=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){Gy("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,Tt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new G9(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===xl&&u&&(u=kf(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Rf(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Rf(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;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new k9({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Re(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=Rf(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Tt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const Xy=U9;function ts(){return new Date().getTime()}var j9=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=ts()-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&&(Pg(n),!r._paused&&r.update())}Pg(n)},t.prototype.start=function(){this._running||(this._time=ts(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ts(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ts()-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 Xy(r,n.loop);return this.addAnimator(i),i},t}(ei);const Y9=j9;var q9=300,vv=Ge.domSupported,pv=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=Re(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),rw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},nw=!1;function Rg(e){var t=e.pointerType;return t==="pen"||t==="touch"}function K9(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 gv(e){e&&(e.zrByTouch=!0)}function X9(e,t){return jr(e.dom,new Z9(e,t),!0)}function p2(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 Z9=function(){function e(t,r){this.stopPropagation=Tr,this.stopImmediatePropagation=Tr,this.preventDefault=Tr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),mn={mousedown:function(e){e=jr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=jr(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=jr(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=jr(this.dom,e);var t=e.toElement||e.relatedTarget;p2(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){nw=!0,e=jr(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){nw||(e=jr(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=jr(this.dom,e),gv(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),mn.mousemove.call(this,e),mn.mousedown.call(this,e)},touchmove:function(e){e=jr(this.dom,e),gv(e),this.handler.processGesture(e,"change"),mn.mousemove.call(this,e)},touchend:function(e){e=jr(this.dom,e),gv(e),this.handler.processGesture(e,"end"),mn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<q9&&mn.click.call(this,e)},pointerdown:function(e){mn.mousedown.call(this,e)},pointermove:function(e){Rg(e)||mn.mousemove.call(this,e)},pointerup:function(e){mn.mouseup.call(this,e)},pointerout:function(e){Rg(e)||mn.mouseout.call(this,e)}};O(["click","dblclick","contextmenu"],function(e){mn[e]=function(t){t=jr(this.dom,t),this.trigger(e,t)}});var kg={pointermove:function(e){Rg(e)||kg.mousemove.call(this,e)},pointerup:function(e){kg.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Q9(e,t){var r=t.domHandlers;Ge.pointerEventsSupported?O(pv.pointer,function(n){Ff(t,n,function(i){r[n].call(e,i)})}):(Ge.touchEventsSupported&&O(pv.touch,function(n){Ff(t,n,function(i){r[n].call(e,i),K9(t)})}),O(pv.mouse,function(n){Ff(t,n,function(i){i=jy(i),t.touching||r[n].call(e,i)})}))}function J9(e,t){Ge.pointerEventsSupported?O(rw.pointer,r):Ge.touchEventsSupported||O(rw.mouse,r);function r(n){function i(a){a=jy(a),p2(e,a.target)||(a=X9(e,a),t.domHandlers[n].call(e,a))}Ff(t,n,i,{capture:!0})}}function Ff(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,f9(e.domTarget,t,r,n)}function mv(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&d9(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var iw=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),ej=function(e){pe(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new iw(r,mn),vv&&(i._globalHandlerScope=new iw(document,kg)),Q9(i,i._localHandlerScope),i}return t.prototype.dispose=function(){mv(this._localHandlerScope),vv&&mv(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,vv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?J9(this,n):mv(n)}},t}(ei);const tj=ej;var g2=1;Ge.hasGlobalWindow&&(g2=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var pd=g2,Ng=.4,Fg="#333",Bg="#ccc",rj="#eee",aw=Yy,ow=5e-5;function wa(e){return e>ow||e<-ow}var xa=[],ko=[],yv=Su(),_v=Math.abs,nj=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 wa(this.rotation)||wa(this.x)||wa(this.y)||wa(this.scaleX-1)||wa(this.scaleY-1)||wa(this.skewX)||wa(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&aw(n);return}n=n||Su(),r?this.getLocalTransform(n):aw(n),t&&(r?us(n,t,n):p9(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(xa);var n=xa[0]<0?-1:1,i=xa[1]<0?-1:1,a=((xa[0]-n)*r+n)/xa[0]||0,o=((xa[1]-i)*r+i)/xa[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Su(),lh(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&&(us(ko,t.invTransform,r),r=ko);var n=this.originX,i=this.originY;(n||i)&&(yv[4]=n,yv[5]=i,us(ko,r,yv),ko[4]-=n,ko[5]-=i,r=ko),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&&on(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&on(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&_v(t[0]-1)>1e-10&&_v(t[3]-1)>1e-10?Math.sqrt(_v(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){ij(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,c=t.x,f=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&&qy(r,r,u),r[4]+=n+c,r[5]+=i+f,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}(),Cu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ij(e,t){for(var r=0;r<Cu.length;r++){var n=Cu[r];e[n]=t[n]}}const uh=nj;var sw={};function $r(e,t){t=t||yo;var r=sw[t];r||(r=sw[t]=new tc(500));var n=r.get(e);return n==null&&(n=Mo.measureText(e,t).width,r.put(e,n)),n}function lw(e,t,r,n){var i=$r(e,t),a=Qy(t),o=Sl(0,i,r),s=Xo(0,a,n),l=new et(o,s,i,a);return l}function Zy(e,t,r,n){var i=((e||"")+"").split(`
-`),a=i.length;if(a===1)return lw(i[0],t,r,n);for(var o=new et(0,0,0,0),s=0;s<i.length;s++){var l=lw(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Sl(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Xo(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Qy(e){return $r("国",e)}function sa(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function gd(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,c="left",f="top";if(n instanceof Array)l+=sa(n[0],r.width),u+=sa(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var bv="__zr_normal__",wv=Cu.concat(["ignore"]),aj=oa(Cu,function(e,t){return e[t]=!0,e},{ignore:!1}),No={},oj=new et(0,0,0,0),Jy=function(){function e(t){this.id=UA(),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 c=oj;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(No,n,c):gd(No,n,c),a.x=No.x,a.y=No.y,o=No.align,s=No.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=sa(f[0],c.width),h=sa(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.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|=Rr,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()?Bg:Fg},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&so(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,Ky(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||{},se(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(Ie(t))for(var n=t,i=Tt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==bv)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,wv)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},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(bv,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===bv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ot(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){Gy("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Rr),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;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,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&=~Rr)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=ot(this.currentStates,t);if(r>=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=ot(i,t),o=ot(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<t.length;i++){var a=t[i];se(r,a),a.textConfig&&(n=n||{},se(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=se({},i?this.textConfig:n.textConfig),se(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<wv.length;c++){var f=wv[c],d=a&&aj[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new uh,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),se(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Rr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new Xy(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ot(a,t);o>=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;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){xv(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){xv(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=xv(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Rr;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Jn(Jy,ei);Jn(Jy,uh);function xv(e,t,r,n,i){r=r||{};var a=[];m2(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var d=0;d<a.length;d++){var h=a[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Sv(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function sj(e){return Er(e[0])}function lj(e,t,r){if(Er(t[r]))if(Er(e[r])||(e[r]=[]),zr(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Sv(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(sj(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Sv(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Sv(a,i,o);a.length=i.length}else e[r]=t[r]}function uj(e,t){return e===t||Er(e)&&Er(t)&&cj(e,t)}function cj(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function m2(e,t,r,n,i,a,o,s){for(var l=Tt(n),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!Ie(a),v=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(Ie(y)&&!Er(y)&&!oh(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}m2(e,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!f&&_)for(var b=0;b<v.length;b++){var x=v[b];if(x.targetName===t){var w=x.stopTracks(p);if(w){var S=ot(v,x);v.splice(S,1)}}}if(i.force||(p=Vt(p,function(A){return!uj(n[A],r[A])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,M=void 0,P=void 0;if(s){M={},d&&(C={});for(var b=0;b<_;b++){var m=p[b];M[m]=r[m],d?C[m]=n[m]:r[m]=n[m]}}else if(d){P={};for(var b=0;b<_;b++){var m=p[b];P[m]=Rf(r[m]),lj(r,n,m)}}var x=new Xy(r,!1,!1,f?Vt(v,function(T){return T.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),d&&C&&x.whenWithKeys(0,C,p),P&&x.whenWithKeys(0,P,p),x.whenWithKeys(u??500,s?M:n,p).delay(c||0),e.addAnimator(x,t),o.push(x)}}const y2=Jy;var _2=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<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ot(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=ot(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;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new et(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(et.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(y2);_2.prototype.type="group";const cn=_2;/*!
+***************************************************************************** */var bg=function(e,t){return bg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},bg(e,t)};function pe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var MU=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),AU=function(){function e(){this.browser=new MU,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Va=new AU;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Va.wxa=!0,Va.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Va.worker=!0:typeof navigator>"u"?(Va.node=!0,Va.svgSupported=!0):PU(navigator.userAgent,Va);function PU(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 Ge=Va;var zy=12,EU="sans-serif",yo=zy+"px "+EU,LU=20,DU=100,IU="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function OU(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-LU)/DU;t[n]=i}return t}var RU=OU(IU),Mo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Mo.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||yo),e.measureText(r);r=r||"",n=n||yo;var a=/(\d+)px/.exec(n),o=a&&+a[1]||zy,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=RU[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},VA=oa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),GA=oa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ec=Object.prototype.toString,ah=Array.prototype,kU=ah.forEach,NU=ah.filter,Wy=ah.slice,FU=ah.map,R1=function(){}.constructor,Ac=R1?R1.prototype:null,Vy="__proto__",BU=2311;function UA(){return BU++}function Gy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Qe(e){if(e==null||typeof e!="object")return e;var t=e,r=ec.call(e);if(r==="[object Array]"){if(!Wl(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Qe(e[n])}}else if(GA[r]){if(!Wl(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!VA[r]&&!Wl(e)&&!ud(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Vy&&(t[o]=Qe(e[o]))}return t}function st(e,t,r){if(!Ie(t)||!Ie(e))return r?Qe(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Vy){var i=e[n],a=t[n];Ie(a)&&Ie(i)&&!ge(a)&&!ge(i)&&!ud(a)&&!ud(i)&&!k1(a)&&!k1(i)&&!Wl(a)&&!Wl(i)?st(i,a,r):(r||!(n in e))&&(e[n]=Qe(t[n]))}return e}function se(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Vy&&(e[r]=t[r]);return e}function dt(e,t,r){for(var n=Tt(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}Mo.createCanvas;function ot(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function $U(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Jn(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else dt(e,t,r)}function Pr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function O(e,t,r){if(e&&t)if(e.forEach&&e.forEach===kU)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Re(e,t,r){if(!e)return[];if(!t)return Uy(e);if(e.map&&e.map===FU)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function oa(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Vt(e,t,r){if(!e)return[];if(!t)return Uy(e);if(e.filter&&e.filter===NU)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Tt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function HU(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Wy.call(arguments)))}}var _t=Ac&&Ve(Ac.bind)?Ac.call.bind(Ac.bind):HU;function Rt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Wy.call(arguments)))}}function ge(e){return Array.isArray?Array.isArray(e):ec.call(e)==="[object Array]"}function Ve(e){return typeof e=="function"}function Te(e){return typeof e=="string"}function wg(e){return ec.call(e)==="[object String]"}function bt(e){return typeof e=="number"}function Ie(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function k1(e){return!!VA[ec.call(e)]}function zr(e){return!!GA[ec.call(e)]}function ud(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function oh(e){return e.colorStops!=null}function zU(e){return e.image!=null}function cd(e){return e!==e}function Su(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function qe(e,t){return e??t}function zl(e,t,r){return e??t??r}function Uy(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Wy.apply(e,t)}function jA(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function bi(e,t){if(!e)throw new Error(t)}function Vn(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var YA="__ec_primitive__";function Sg(e){e[YA]=!0}function Wl(e){return e[YA]}var WU=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return Tt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),qA=typeof Map=="function";function VU(){return qA?new Map:new WU}var GU=function(){function e(t){var r=ge(t);this.data=VU();var n=this;t instanceof e?t.each(i):t&&O(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return qA?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Ue(e){return new GU(e)}function UU(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function sh(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&se(r,t),r}function KA(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Es(e,t){return e.hasOwnProperty(t)}function Tr(){}var jU=180/Math.PI;function Hs(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function YU(e){return[e[0],e[1]]}function N1(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function qU(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function KU(e){return Math.sqrt(XU(e))}function XU(e){return e[0]*e[0]+e[1]*e[1]}function rv(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function ZU(e,t){var r=KU(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function xg(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Cg=xg;function QU(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ls=QU;function nv(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function on(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Jo(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function es(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Oo=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),JU=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Oo(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Oo(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Oo(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Oo(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Oo(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Oo(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const e9=JU;var t9=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const ei=t9;var r9=Math.log(2);function Tg(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/r9);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(f+=(h%2?-1:1)*e[r][d]*Tg(e,t-1,c,u,i|v,a),h++)}return a[o]=f,f}function F1(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=Tg(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Tg(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var B1="___zrEVENTSAVED",iv=[];function n9(e,t,r,n,i){return Mg(iv,t,n,i,!0)&&Mg(e,r,iv[0],iv[1])}function Mg(e,t,r,n,i){if(t.getBoundingClientRect&&Ge.domSupported&&!XA(t)){var a=t[B1]||(t[B1]={}),o=i9(t,a),s=a9(o,a,i);if(s)return s(e,r,n),!0}return!1}function i9(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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 a9(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 c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?F1(s,o):F1(o,s))}function XA(e){return e.nodeName.toUpperCase()==="CANVAS"}var o9=/([&<>"'])/g,s9={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Xr(e){return e==null?"":(e+"").replace(o9,function(t,r){return s9[r]})}var l9=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,av=[],u9=Ge.browser.firefox&&+Ge.browser.version.split(".")[0]<39;function Ag(e,t,r,n){return r=r||{},n?$1(e,t,r):u9&&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):$1(e,t,r),r}function $1(e,t,r){if(Ge.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(XA(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Mg(av,e,n,i)){r.zrX=av[0],r.zrY=av[1];return}}r.zrX=r.zrY=0}function jy(e){return e||window.event}function jr(e,t,r){if(t=jy(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&&Ag(e,o,t,r)}else{Ag(e,t,t,r);var a=c9(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&l9.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function c9(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 f9(e,t,r,n){e.addEventListener(t,r,n)}function d9(e,t,r,n){e.removeEventListener(t,r,n)}var ZA=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},h9=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;o<s;o++){var l=i[o],u=Ag(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in ov)if(ov.hasOwnProperty(r)){var n=ov[r](this._track,t);if(n)return n}},e}();function H1(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function v9(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var ov={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=H1(n)/H1(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=v9(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function xu(){return[1,0,0,1,0,0]}function Yy(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function p9(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 us(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 Pg(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 qy(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),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function g9(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 lh(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 m9=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=m9;var Pc=Math.min,Ec=Math.max,ma=new ke,ya=new ke,_a=new ke,ba=new ke,Qs=new ke,Js=new ke,y9=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=Pc(t.x,this.x),n=Pc(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ec(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ec(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=xu();return Pg(a,a,[-r.x,-r.y]),g9(a,a,[n,i]),Pg(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,c=t.y,f=t.y+t.height,d=!(a<l||u<i||s<c||f<o);if(r){var h=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-c),y=Math.abs(f-o),_=Math.min(p,g),b=Math.min(m,y);a<l||u<i?_>v&&(v=_,p<g?ke.set(Js,-p,0):ke.set(Js,g,0)):_<h&&(h=_,p<g?ke.set(Qs,p,0):ke.set(Qs,-g,0)),s<c||f<o?b>v&&(v=b,m<y?ke.set(Js,0,-m):ke.set(Js,0,y)):_<h&&(h=_,m<y?ke.set(Qs,0,m):ke.set(Qs,0,-y))}return r&&ke.copy(r,d?Qs:Js),d},e.prototype.contain=function(t,r){var n=this;return t>=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}ma.x=_a.x=r.x,ma.y=ba.y=r.y,ya.x=ba.x=r.x+r.width,ya.y=_a.y=r.y+r.height,ma.transform(n),ba.transform(n),ya.transform(n),_a.transform(n),t.x=Pc(ma.x,ya.x,_a.x,ba.x),t.y=Pc(ma.y,ya.y,_a.y,ba.y);var l=Ec(ma.x,ya.x,_a.x,ba.x),u=Ec(ma.y,ya.y,_a.y,ba.y);t.width=l-t.x,t.height=u-t.y},e}();const et=y9;var QA="silent";function _9(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:b9}}function b9(){ZA(this.event)}var w9=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}(ei),el=function(){function e(t,r){this.x=t,this.y=r}return e}(),S9=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],sv=new et(0,0,0,0),JA=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new el(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new w9,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new e9(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(O(S9,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=eP(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 el(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.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 el(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=_9(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 el(r,n);if(z1(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new et(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(sv.copy(d.getBoundingRect()),d.transform&&sv.applyTransform(d.transform),sv.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=v){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(z1(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new h9);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new el;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(ei);O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){JA.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=eP(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Cg(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function x9(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?QA:!0}return!1}function z1(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=x9(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==QA)){t.target=o;break}}}function eP(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const C9=JA;var tP=32,tl=7;function T9(e){for(var t=0;e>=tP;)t|=e&1,e>>=1;return e+t}function W1(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;M9(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function M9(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function V1(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>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 lv(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function uv(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function A9(e,t){var r=tl,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]&&h--;else if(i[h]>i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var v=n[h],p=i[h],g=n[h+1],m=i[h+1];i[h]=p+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=uv(e[g],e,v,p,0,t);v+=y,p-=y,p!==0&&(m=lv(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?f(v,p,g,m):d(v,p,g,m)))}function f(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[h+m];var y=0,_=p,b=h;if(e[b++]=e[_++],--g===0){for(m=0;m<v;m++)e[b+m]=o[y+m];return}if(v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y];return}for(var S=r,w,x,C;;){w=0,x=0,C=!1;do if(t(e[_],o[y])<0){if(e[b++]=e[_++],x++,w=0,--g===0){C=!0;break}}else if(e[b++]=o[y++],w++,x=0,--v===1){C=!0;break}while((w|x)<S);if(C)break;do{if(w=uv(e[_],o,y,v,0,t),w!==0){for(m=0;m<w;m++)e[b+m]=o[y+m];if(b+=w,y+=w,v-=w,v<=1){C=!0;break}}if(e[b++]=e[_++],--g===0){C=!0;break}if(x=lv(o[y],e,_,g,0,t),x!==0){for(m=0;m<x;m++)e[b+m]=e[_+m];if(b+=x,_+=x,g-=x,g===0){C=!0;break}}if(e[b++]=o[y++],--v===1){C=!0;break}S--}while(w>=tl||x>=tl);if(C)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[b+m]=o[y+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var y=h+v-1,_=g-1,b=p+g-1,S=0,w=0;if(e[b--]=e[y--],--v===0){for(S=b-(g-1),m=0;m<g;m++)e[S+m]=o[m];return}if(g===1){for(b-=v,y-=v,w=b+1,S=y+1,m=v-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[_];return}for(var x=r;;){var C=0,M=0,E=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,M=0,--v===0){E=!0;break}}else if(e[b--]=o[_--],M++,C=0,--g===1){E=!0;break}while((C|M)<x);if(E)break;do{if(C=v-uv(o[_],e,h,v,v-1,t),C!==0){for(b-=C,y-=C,v-=C,w=b+1,S=y+1,m=C-1;m>=0;m--)e[w+m]=e[S+m];if(v===0){E=!0;break}}if(e[b--]=o[_--],--g===1){E=!0;break}if(M=g-lv(e[y],o,0,g,g-1,t),M!==0){for(b-=M,_-=M,g-=M,w=b+1,S=_+1,m=0;m<M;m++)e[w+m]=o[S+m];if(g<=1){E=!0;break}}if(e[b--]=e[y--],--v===0){E=!0;break}x--}while(C>=tl||M>=tl);if(E)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),g===1){for(b-=v,y-=v,w=b+1,S=y+1,m=v-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[_]}else{if(g===0)throw new Error;for(S=b-(g-1),m=0;m<g;m++)e[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function If(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<tP){a=W1(e,r,n,t),V1(e,r,n,r+a,t);return}var o=A9(e,t),s=T9(i);do{if(a=W1(e,r,n,t),a<s){var l=i;l>s&&(l=s),V1(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 Rr=1,wl=2,Ko=4,G1=!1;function cv(){G1||(G1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function U1(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var P9=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=U1}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,If(n,U1)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Rr),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(cv(),c.z=0),isNaN(c.z2)&&(cv(),c.z2=0),isNaN(c.zlevel)&&(cv(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,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<n;r++)this.delRoot(t[r]);return}var i=ot(this._roots,t);i>=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 E9=P9;var rP;rP=Ge.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Eg=rP;var Of={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-Of.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?Of.bounceIn(e*2)*.5:Of.bounceOut(e*2-1)*.5+.5}};const nP=Of;var Lc=Math.pow,Qi=Math.sqrt,fd=1e-8,iP=1e-4,j1=Qi(3),Dc=1/3,Hn=Hs(),Zr=Hs(),cs=Hs();function Yi(e){return e>-fd&&e<fd}function aP(e){return e>fd||e<-fd}function jt(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 Y1(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function oP(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,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Yi(c)&&Yi(f))if(Yi(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var p=f*f-4*c*d;if(Yi(p)){var g=f/c,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=Qi(p),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-Lc(-_,Dc):_=Lc(_,Dc),b<0?b=-Lc(-b,Dc):b=Lc(b,Dc);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*c*s-3*o*f)/(2*Qi(c*c*c)),w=Math.acos(S)/3,x=Qi(c),C=Math.cos(w),v=(-s-2*x*C)/(3*o),m=(-s+x*(C+j1*Math.sin(w)))/(3*o),M=(-s+x*(C-j1*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),M>=0&&M<=1&&(a[h++]=M)}}return h}function sP(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(Yi(o)){if(aP(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Yi(c))i[0]=-a/(2*o);else if(c>0){var f=Qi(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function dd(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,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function lP(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;Hn[0]=l,Hn[1]=u;for(var y=0;y<1;y+=.05)Zr[0]=jt(e,r,i,o,y),Zr[1]=jt(t,n,a,s,y),g=ls(Hn,Zr),g<h&&(f=y,h=g);h=1/0;for(var _=0;_<32&&!(d<iP);_++)v=f-d,p=f+d,Zr[0]=jt(e,r,i,o,v),Zr[1]=jt(t,n,a,s,v),g=ls(Zr,Hn),v>=0&&g<h?(f=v,h=g):(cs[0]=jt(e,r,i,o,p),cs[1]=jt(t,n,a,s,p),m=ls(cs,Hn),p<=1&&m<h?(f=p,h=m):d*=.5);return c&&(c[0]=jt(e,r,i,o,f),c[1]=jt(t,n,a,s,f)),Qi(h)}function L9(e,t,r,n,i,a,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,p=jt(e,r,i,o,v),g=jt(t,n,a,s,v),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function Jt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function q1(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function D9(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Yi(a)){if(aP(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Yi(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Qi(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function uP(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function hd(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 cP(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Hn[0]=o,Hn[1]=s;for(var d=0;d<1;d+=.05){Zr[0]=Jt(e,r,i,d),Zr[1]=Jt(t,n,a,d);var h=ls(Hn,Zr);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<iP);v++){var p=u-c,g=u+c;Zr[0]=Jt(e,r,i,p),Zr[1]=Jt(t,n,a,p);var h=ls(Zr,Hn);if(p>=0&&h<f)u=p,f=h;else{cs[0]=Jt(e,r,i,g),cs[1]=Jt(t,n,a,g);var m=ls(cs,Hn);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Jt(e,r,i,u),l[1]=Jt(t,n,a,u)),Qi(f)}function I9(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Jt(e,r,i,d),v=Jt(t,n,a,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var O9=/cubic-bezier\(([0-9,\.e ]+)\)/;function fP(e){var t=e&&O9.exec(e);if(t){var r=t[1].split(","),n=+Vn(r[0]),i=+Vn(r[1]),a=+Vn(r[2]),o=+Vn(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:oP(0,n,a,1,l,s)&&jt(0,i,o,1,s[0])}}}var R9=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||Tr,this.ondestroy=t.ondestroy||Tr,this.onrestart=t.onrestart||Tr,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=Ve(t)?t:nP[t]||fP(t)},e}();const k9=R9;var dP=function(){function e(t){this.value=t}return e}(),N9=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new dP(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}(),F9=function(){function e(t){this._list=new N9,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 dP(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 tc=F9;var K1={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 Vl(e){return e=Math.round(e),e<0?0:e>255?255:e}function X1(e){return e<0?0:e>1?1:e}function fv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Vl(parseFloat(t)/100*255):Vl(parseInt(t,10))}function Gl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?X1(parseFloat(t)/100):X1(parseFloat(t))}function dv(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 Ur(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Lg(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var hP=new tc(20),Ic=null;function Ro(e,t){Ic&&Lg(Ic,t),Ic=hP.put(e,Ic||t.slice())}function so(e,t){if(e){t=t||[];var r=hP.get(e);if(r)return Lg(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in K1)return Lg(t,K1[n]),Ro(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)){Ur(t,0,0,0,1);return}return Ur(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),Ro(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ur(t,0,0,0,1);return}return Ur(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ro(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(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ur(t,+u[0],+u[1],+u[2],1):Ur(t,0,0,0,1);c=Gl(u.pop());case"rgb":if(u.length>=3)return Ur(t,fv(u[0]),fv(u[1]),fv(u[2]),u.length===3?c:Gl(u[3])),Ro(e,t),t;Ur(t,0,0,0,1);return;case"hsla":if(u.length!==4){Ur(t,0,0,0,1);return}return u[3]=Gl(u[3]),Z1(u,t),Ro(e,t),t;case"hsl":if(u.length!==3){Ur(t,0,0,0,1);return}return Z1(u,t),Ro(e,t),t;default:return}}Ur(t,0,0,0,1)}}function Z1(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Gl(e[1]),i=Gl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Ur(t,Vl(dv(o,a,r+1/3)*255),Vl(dv(o,a,r)*255),Vl(dv(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Q1(e,t){var r=so(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 Ky(r,r.length===4?"rgba":"rgb")}}function Ky(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 vd(e,t){var r=so(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function B9(e){return e.type==="linear"}function $9(e){return e.type==="radial"}(function(){return Ge.hasGlobalWindow&&Ve(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 Dg=Array.prototype.slice;function di(e,t,r){return(t-e)*r+e}function hv(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=di(t[a],r[a],n);return e}function H9(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=di(t[o][s],r[o][s],n)}return e}function Oc(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function J1(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function z9(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function W9(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Dg.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function Rf(e){if(Pr(e)){var t=e.length;if(Pr(e[0])){for(var r=[],n=0;n<t;n++)r.push(Dg.call(e[n]));return r}return Dg.call(e)}return e}function kf(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function V9(e){return Pr(e&&e[0])?2:1}var Rc=0,Nf=1,vP=2,Sl=3,Ig=4,Og=5,ew=6;function tw(e){return e===Ig||e===Og}function kc(e){return e===Nf||e===vP}var rl=[0,0,0,0],G9=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=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=ew,l=r;if(Pr(r)){var u=V9(r);s=u,(u===1&&!bt(r[0])||u===2&&!bt(r[0][0]))&&(o=!0)}else if(bt(r)&&!cd(r))s=Rc;else if(Te(r))if(!isNaN(+r))s=Rc;else{var c=so(r);c&&(l=c,s=Sl)}else if(oh(r)){var f=se({},l);f.colorStops=Re(r.colorStops,function(h){return{offset:h.offset,color:so(h.color)}}),B9(r)?s=Ig:$9(r)&&(s=Og),l=f}a===0?this.valType=s:(s!==this.valType||s===ew)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Ve(n)?n:nP[n]||fP(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=kc(i),u=tw(i),c=0;c<a;c++){var f=n[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==a-1?W9(d,h,i):u&&z9(d.colorStops,h.colorStops))}if(!s&&i!==Og&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<a;c++)i===Rc?n[c].additiveValue=n[c].value-v:i===Sl?n[c].additiveValue=Oc([],n[c].value,v,-1):kc(i)&&(n[c].additiveValue=i===Nf?Oc([],n[c].value,v,-1):J1([],n[c].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Sl,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var p=d(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,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?rl:t[l];if((kc(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(kc(a))a===Nf?hv(y,h[i],v[i],m):H9(y,h[i],v[i],m);else if(tw(a)){var _=h[i],b=v[i],S=a===Ig;t[l]={type:S?"linear":"radial",x:di(_.x,b.x,m),y:di(_.y,b.y,m),colorStops:Re(_.colorStops,function(x,C){var M=b.colorStops[C];return{offset:di(x.offset,M.offset,m),color:kf(hv([],x.color,M.color,m))}}),global:b.global},S?(t[l].x2=di(_.x2,b.x2,m),t[l].y2=di(_.y2,b.y2,m)):t[l].r=di(_.r,b.r,m)}else if(u)hv(y,h[i],v[i],m),n||(t[l]=kf(y));else{var w=di(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===Rc?t[n]=t[n]+i:r===Sl?(so(t[n],rl),Oc(rl,rl,i,1),t[n]=kf(rl)):r===Nf?Oc(t[n],t[n],i,1):r===vP&&J1(t[n],t[n],i,1)},e}(),U9=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){Gy("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,Tt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new G9(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Sl&&u&&(u=kf(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Rf(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Rf(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;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new k9({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Re(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=Rf(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Tt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const Xy=U9;function ts(){return new Date().getTime()}var j9=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=ts()-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&&(Eg(n),!r._paused&&r.update())}Eg(n)},t.prototype.start=function(){this._running||(this._time=ts(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ts(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ts()-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 Xy(r,n.loop);return this.addAnimator(i),i},t}(ei);const Y9=j9;var q9=300,vv=Ge.domSupported,pv=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=Re(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),rw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},nw=!1;function Rg(e){var t=e.pointerType;return t==="pen"||t==="touch"}function K9(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 gv(e){e&&(e.zrByTouch=!0)}function X9(e,t){return jr(e.dom,new Z9(e,t),!0)}function pP(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 Z9=function(){function e(t,r){this.stopPropagation=Tr,this.stopImmediatePropagation=Tr,this.preventDefault=Tr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),mn={mousedown:function(e){e=jr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=jr(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=jr(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=jr(this.dom,e);var t=e.toElement||e.relatedTarget;pP(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){nw=!0,e=jr(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){nw||(e=jr(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=jr(this.dom,e),gv(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),mn.mousemove.call(this,e),mn.mousedown.call(this,e)},touchmove:function(e){e=jr(this.dom,e),gv(e),this.handler.processGesture(e,"change"),mn.mousemove.call(this,e)},touchend:function(e){e=jr(this.dom,e),gv(e),this.handler.processGesture(e,"end"),mn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<q9&&mn.click.call(this,e)},pointerdown:function(e){mn.mousedown.call(this,e)},pointermove:function(e){Rg(e)||mn.mousemove.call(this,e)},pointerup:function(e){mn.mouseup.call(this,e)},pointerout:function(e){Rg(e)||mn.mouseout.call(this,e)}};O(["click","dblclick","contextmenu"],function(e){mn[e]=function(t){t=jr(this.dom,t),this.trigger(e,t)}});var kg={pointermove:function(e){Rg(e)||kg.mousemove.call(this,e)},pointerup:function(e){kg.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Q9(e,t){var r=t.domHandlers;Ge.pointerEventsSupported?O(pv.pointer,function(n){Ff(t,n,function(i){r[n].call(e,i)})}):(Ge.touchEventsSupported&&O(pv.touch,function(n){Ff(t,n,function(i){r[n].call(e,i),K9(t)})}),O(pv.mouse,function(n){Ff(t,n,function(i){i=jy(i),t.touching||r[n].call(e,i)})}))}function J9(e,t){Ge.pointerEventsSupported?O(rw.pointer,r):Ge.touchEventsSupported||O(rw.mouse,r);function r(n){function i(a){a=jy(a),pP(e,a.target)||(a=X9(e,a),t.domHandlers[n].call(e,a))}Ff(t,n,i,{capture:!0})}}function Ff(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,f9(e.domTarget,t,r,n)}function mv(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&d9(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var iw=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),ej=function(e){pe(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new iw(r,mn),vv&&(i._globalHandlerScope=new iw(document,kg)),Q9(i,i._localHandlerScope),i}return t.prototype.dispose=function(){mv(this._localHandlerScope),vv&&mv(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,vv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?J9(this,n):mv(n)}},t}(ei);const tj=ej;var gP=1;Ge.hasGlobalWindow&&(gP=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var pd=gP,Ng=.4,Fg="#333",Bg="#ccc",rj="#eee",aw=Yy,ow=5e-5;function wa(e){return e>ow||e<-ow}var Sa=[],ko=[],yv=xu(),_v=Math.abs,nj=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 wa(this.rotation)||wa(this.x)||wa(this.y)||wa(this.scaleX-1)||wa(this.scaleY-1)||wa(this.skewX)||wa(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&aw(n);return}n=n||xu(),r?this.getLocalTransform(n):aw(n),t&&(r?us(n,t,n):p9(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Sa);var n=Sa[0]<0?-1:1,i=Sa[1]<0?-1:1,a=((Sa[0]-n)*r+n)/Sa[0]||0,o=((Sa[1]-i)*r+i)/Sa[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||xu(),lh(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&&(us(ko,t.invTransform,r),r=ko);var n=this.originX,i=this.originY;(n||i)&&(yv[4]=n,yv[5]=i,us(ko,r,yv),ko[4]-=n,ko[5]-=i,r=ko),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&&on(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&on(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&_v(t[0]-1)>1e-10&&_v(t[3]-1)>1e-10?Math.sqrt(_v(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){ij(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,c=t.x,f=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&&qy(r,r,u),r[4]+=n+c,r[5]+=i+f,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}(),Cu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ij(e,t){for(var r=0;r<Cu.length;r++){var n=Cu[r];e[n]=t[n]}}const uh=nj;var sw={};function $r(e,t){t=t||yo;var r=sw[t];r||(r=sw[t]=new tc(500));var n=r.get(e);return n==null&&(n=Mo.measureText(e,t).width,r.put(e,n)),n}function lw(e,t,r,n){var i=$r(e,t),a=Qy(t),o=xl(0,i,r),s=Xo(0,a,n),l=new et(o,s,i,a);return l}function Zy(e,t,r,n){var i=((e||"")+"").split(`
+`),a=i.length;if(a===1)return lw(i[0],t,r,n);for(var o=new et(0,0,0,0),s=0;s<i.length;s++){var l=lw(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function xl(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Xo(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Qy(e){return $r("国",e)}function sa(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function gd(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,c="left",f="top";if(n instanceof Array)l+=sa(n[0],r.width),u+=sa(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var bv="__zr_normal__",wv=Cu.concat(["ignore"]),aj=oa(Cu,function(e,t){return e[t]=!0,e},{ignore:!1}),No={},oj=new et(0,0,0,0),Jy=function(){function e(t){this.id=UA(),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 c=oj;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(No,n,c):gd(No,n,c),a.x=No.x,a.y=No.y,o=No.align,s=No.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=sa(f[0],c.width),h=sa(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.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|=Rr,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()?Bg:Fg},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&so(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,Ky(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||{},se(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(Ie(t))for(var n=t,i=Tt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==bv)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,wv)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},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(bv,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===bv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ot(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){Gy("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Rr),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;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,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&=~Rr)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=ot(this.currentStates,t);if(r>=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=ot(i,t),o=ot(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<t.length;i++){var a=t[i];se(r,a),a.textConfig&&(n=n||{},se(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=se({},i?this.textConfig:n.textConfig),se(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<wv.length;c++){var f=wv[c],d=a&&aj[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new uh,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),se(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Rr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new Xy(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ot(a,t);o>=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;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Sv(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Sv(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Sv(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Rr;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Jn(Jy,ei);Jn(Jy,uh);function Sv(e,t,r,n,i){r=r||{};var a=[];mP(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var d=0;d<a.length;d++){var h=a[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function xv(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function sj(e){return Pr(e[0])}function lj(e,t,r){if(Pr(t[r]))if(Pr(e[r])||(e[r]=[]),zr(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),xv(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(sj(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?xv(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else xv(a,i,o);a.length=i.length}else e[r]=t[r]}function uj(e,t){return e===t||Pr(e)&&Pr(t)&&cj(e,t)}function cj(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function mP(e,t,r,n,i,a,o,s){for(var l=Tt(n),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!Ie(a),v=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(Ie(y)&&!Pr(y)&&!oh(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}mP(e,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!f&&_)for(var b=0;b<v.length;b++){var S=v[b];if(S.targetName===t){var w=S.stopTracks(p);if(w){var x=ot(v,S);v.splice(x,1)}}}if(i.force||(p=Vt(p,function(A){return!uj(n[A],r[A])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,M=void 0,E=void 0;if(s){M={},d&&(C={});for(var b=0;b<_;b++){var m=p[b];M[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]=Rf(r[m]),lj(r,n,m)}}var S=new Xy(r,!1,!1,f?Vt(v,function(T){return T.targetName===t}):null);S.targetName=t,i.scope&&(S.scope=i.scope),d&&C&&S.whenWithKeys(0,C,p),E&&S.whenWithKeys(0,E,p),S.whenWithKeys(u??500,s?M:n,p).delay(c||0),e.addAnimator(S,t),o.push(S)}}const yP=Jy;var _P=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<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ot(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=ot(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;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new et(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(et.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(yP);_P.prototype.type="group";const cn=_P;/*!
 * ZRender, a high performance 2d drawing library.
 *
 * Copyright (c) 2013, Baidu Inc.
@@ -55,20 +55,20 @@ PERFORMANCE OF THIS SOFTWARE.
 *
 * LICENSE
 * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
-*/var Bf={},b2={};function fj(e){delete b2[e]}function dj(e){if(!e)return!1;if(typeof e=="string")return vd(e,1)<Ng;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=vd(t[i].color,1);return r/=n,r<Ng}return!1}var hj=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new P9,o=n.renderer||"canvas";Bf[o]||(o=Tt(Bf)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Bf[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Ge.node&&!Ge.worker&&!l?new tj(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?Ge.touchEventsSupported:!!c,d=44,h;f&&(h=qe(n.pointerSize,d)),this.handler=new C9(a,s,u,s.root,h),this.animation=new Y9({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=dj(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=ts();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=ts();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(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;r<t.length;r++)t[r]instanceof cn&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,fj(this.id)},e}();function uw(e,t){var r=new hj(UA(),e,t);return b2[r.id]=r,r}function vj(e,t){Bf[e]=t}var cw=1e-4,w2=20;function pj(e){return e.replace(/^\s+|\s+$/g,"")}function $g(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){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 gt(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)?pj(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function kt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),w2),e=(+e).toFixed(t),r?e:+e}function hi(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 gj(e)}function gj(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 mj(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 yj(e,t){var r=oa(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Re(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Re(i,function(h){return Math.floor(h)}),s=oa(o,function(h,v){return h+v},0),l=Re(i,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Re(o,function(h){return h/n})}function _j(e,t){var r=Math.max(hi(e),hi(t)),n=e+t;return r>w2?n:kt(n,r)}function x2(e){var t=Math.PI*2;return(e%t+t)%t}function md(e){return e>-cw&&e<cw}var bj=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function wi(e){if(e instanceof Date)return e;if(Te(e)){var t=bj.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function wj(e){return Math.pow(10,e0(e))}function e0(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function S2(e,t){var r=e0(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 yd(e){var t=parseFloat(e);return t==e&&(t!==0||!Te(e)||e.indexOf("x")<=0)?t:NaN}function xj(e){return!isNaN(yd(e))}function C2(){return Math.round(Math.random()*9)}function T2(e,t){return t===0?e:T2(t,e%t)}function fw(e,t){return e==null?t:t==null?e:e*t/T2(e,t)}function br(e){throw new Error(e)}function dw(e,t,r){return(t-e)*r+e}var M2="series\0",Sj="\0_ec_\0";function cr(e){return e instanceof Array?e:e==null?[]:[e]}function Hg(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<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var hw=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function rc(e){return Ie(e)&&!ge(e)&&!(e instanceof Date)?e.value:e}function Cj(e){return Ie(e)&&!(e instanceof Array)}function Tj(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Ue();O(t,function(l,u){if(!Ie(l)){t[u]=null;return}});var s=Mj(e,o,r);return(n||i)&&Aj(s,e,o,t),n&&Ej(s,t),n||i?Pj(s,t,i):a&&Lj(s,t),Dj(s),s}function Mj(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||Tu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Aj(e,t,r,n){O(n,function(i,a){if(!(!i||i.id==null)){var o=Ul(i.id),s=r.get(o);if(s!=null){var l=e[s];bi(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function Ej(e,t){O(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!Tu(r)&&!Tu(a)&&A2("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function Pj(e,t,r){O(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||Tu(i.existing)||i.existing&&n.id!=null&&!A2("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function Lj(e,t){O(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Dj(e){var t=Ue();O(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),O(e,function(r){var n=r.newOption;bi(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),O(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Ie(a)){if(o.name=a.name!=null?Ul(a.name):i?i.name:M2+n,i)o.id=Ul(i.id);else if(a.id!=null)o.id=Ul(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function A2(e,t,r){var n=Yn(t[e],null),i=Yn(r[e],null);return n!=null&&i!=null&&n===i}function Ul(e){return Yn(e,"")}function Yn(e,t){return e==null?t:Te(e)?e:bt(e)||wg(e)?e+"":t}function t0(e){var t=e.name;return!!(t&&t.indexOf(M2))}function Tu(e){return e&&e.id!=null&&Ul(e.id).indexOf(Sj)===0}function Ij(e,t,r){O(e,function(n){var i=n.newOption;Ie(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Oj(t,i,n.existing,r))})}function Oj(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function nc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ge(t.dataIndex)?Re(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ge(t.name)?Re(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Et(){var e="__ec_inner_"+Rj++;return function(t){return t[e]||(t[e]={})}}var Rj=C2();function Cv(e,t,r){var n=r0(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=ic(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function r0(e,t){var r;if(Te(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Ue(),a={},o=!1;return O(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&ot(t.includeMainTypes,c)<0)){o=o||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Cn={useDefault:!0,enableAll:!1,enableNone:!1};function ic(e,t,r,n){n=n||Cn;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(bi(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(bi(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function E2(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function kj(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Nj(e){return e==="auto"?Ge.domSupported?"html":"richText":e||"html"}function Fj(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(bt(n)){var o=dw(r||0,n,i);return kt(o,a?Math.max(hi(r||0),hi(n)):t)}else{if(Te(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],o=dw(h,v,i);s[f]=kt(o,a?Math.max(hi(h),hi(v)):t)}}return s}}var Bj=".",Sa="___EC__COMPONENT__CONTAINER___",P2="___EC__EXTENDED_CLASS___";function Gn(e){var t={main:"",sub:""};if(e){var r=e.split(Bj);t.main=r[0]||"",t.sub=r[1]||""}return t}function $j(e){bi(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Hj(e){return!!(e&&e[P2])}function n0(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return zj(n)?i=function(a){pe(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},$U(i,this)),se(i.prototype,r),i[P2]=!0,i.extend=this.extend,i.superCall=Gj,i.superApply=Uj,i.superClass=n,i}}function zj(e){return Ve(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function L2(e,t){e.extend=t.extend}var Wj=Math.round(Math.random()*10);function Vj(e){var t=["__\0is_clz",Wj++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Gj(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Uj(e,t,r){return this.superClass.prototype[t].apply(e,r)}function ch(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){$j(i),n.prototype.type=i;var a=Gn(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Sa){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Sa]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=Gn(n),a=[],o=t[i.main];return o&&o[Sa]?O(o,function(s,l){l!==Sa&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Gn(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return O(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Gn(n),a=t[i.main];return a&&a[Sa]};function r(n){var i=t[n.main];return(!i||!i[Sa])&&(i=t[n.main]={},i[Sa]=!0),i}}function Mu(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&ot(i,l)>=0||a&&ot(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var jj=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Yj=Mu(jj),qj=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Yj(this,t,r)},e}(),zg=new tc(50);function Kj(e){if(typeof e=="string"){var t=zg.get(e);return t&&t.image}else return e}function D2(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=zg.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!fh(t)&&a.pending.push(o)):(t=Mo.loadImage(e,vw,vw),t.__zrImageSrc=e,zg.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function vw(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function fh(e){return e&&e.width&&e.height}var Tv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Xj(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
-`);i=I2(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=O2(a[o],i);return a.join(`
-`)}function I2(e,t,r,n){n=n||{};var i=se({},n);i.font=t,r=qe(r,"..."),i.maxIterations=qe(n.maxIterations,2);var a=i.minChar=qe(n.minChar,0);i.cnCharWidth=$r("国",t);var o=i.ascCharWidth=$r("a",t);i.placeholder=qe(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=$r(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 O2(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=$r(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?Zj(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=$r(e,n)}return e===""&&(e=t.placeholder),e}function Zj(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function Qj(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=Qy(i),s=qe(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?R2(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
-`):[];var d=f.length*s,h=qe(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var p=I2(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=O2(f[g],p);for(var m=h,y=0,g=0;g<f.length;g++)y=Math.max($r(f[g],i),y);c==null&&(c=y);var _=y;return n&&(m+=n[0]+n[2],_+=n[1]+n[3],c+=n[1]+n[3]),l&&(_=c),{lines:f,height:h,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:d,width:c}}var Jj=function(){function e(){}return e}(),pw=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),eY=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function tY(e,t){var r=new eY;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Tv.lastIndex=0,l;(l=Tv.exec(e))!=null;){var u=l.index;u>s&&Mv(r,e.substring(s,u),t,o),Mv(r,l[2],t,o,l[1]),s=Tv.lastIndex}s<e.length&&Mv(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=a==="truncate",p=t.lineOverflow==="truncate";function g(F,R,j){F.width=R,F.lineHeight=j,f+=j,d=Math.max(d,R)}e:for(var m=0;m<r.lines.length;m++){for(var y=r.lines[m],_=0,b=0,x=0;x<y.tokens.length;x++){var w=y.tokens[x],S=w.styleName&&t.rich[w.styleName]||{},C=w.textPadding=S.padding,M=C?C[1]+C[3]:0,P=w.font=S.font||t.font;w.contentHeight=Qy(P);var A=qe(S.height,w.contentHeight);if(w.innerHeight=A,C&&(A+=C[0]+C[2]),w.height=A,w.lineHeight=zl(S.lineHeight,t.lineHeight,A),w.align=S&&S.align||t.align,w.verticalAlign=S&&S.verticalAlign||"middle",p&&i!=null&&f+w.lineHeight>i){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 T=S.width,D=T==null||T==="auto";if(typeof T=="string"&&T.charAt(T.length-1)==="%")w.percentWidth=T,c.push(w),w.contentWidth=$r(w.text,P);else{if(D){var N=S.backgroundColor,H=N&&N.image;H&&(H=Kj(H),fh(H)&&(w.width=Math.max(w.width,H.width*A/H.height)))}var $=v&&n!=null?n-b:null;$!=null&&$<w.width?!D||$<M?(w.text="",w.width=w.contentWidth=0):(w.text=Xj(w.text,$-M,P,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=$r(w.text,P)):w.contentWidth=$r(w.text,P)}w.width+=M,b+=w.width,S&&(_=Math.max(_,w.lineHeight))}g(y,b,_)}r.outerWidth=r.width=qe(n,d),r.outerHeight=r.height=qe(i,f),r.contentHeight=f,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var m=0;m<c.length;m++){var w=c[m],G=w.percentWidth;w.width=parseInt(G,10)/100*r.width}return r}function Mv(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=sa(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
-`),u=!0),n.accumWidth=v}else{var p=R2(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(`
-`);for(var g=0;g<c.length;g++){var m=c[g],y=new Jj;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=f?f[g]:$r(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new pw)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=y:(m||!b||a)&&_.push(y)}else s.push(new pw([y]))}}function rY(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var nY=oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function iY(e){return rY(e)?!!nY[e]:!0}function R2(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
-`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=$r(d,t),v=n?!1:!iY(d);if(a.length?c+h>r:i+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=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(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var Wg="__zr_style_"+Math.round(Math.random()*10),lo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},dh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};lo[Wg]=!0;var gw=["z","z2","invisible"],aY=["invisible"],oY=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Tt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&sY(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new et(0,0,0,0)),n?et.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new et(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:se(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=wl,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&wl)},t.prototype.styleUpdated=function(){this.__dirty&=~wl},t.prototype.createStyle=function(r){return sh(lo,r)},t.prototype.useStyle=function(r){r[Wg]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Wg]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,gw)},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.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Tt(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=Tt(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?aY:gw,d=0;d<p.length;d++){var h=p[d];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return se(r,n),r},t.prototype.getAnimationStyleProps=function(){return dh},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Rr|wl}(),t}(y2),Av=new et(0,0,0,0),Ev=new et(0,0,0,0);function sY(e,t,r){return Av.copy(e.getBoundingRect()),e.transform&&Av.applyTransform(e.transform),Ev.width=t,Ev.height=r,!Av.intersect(Ev)}const ac=oY;var Qr=Math.min,Jr=Math.max,Pv=Math.sin,Lv=Math.cos,Ca=Math.PI*2,Nc=Hs(),Fc=Hs(),Bc=Hs();function mw(e,t,r,n,i,a){i[0]=Qr(e,r),i[1]=Qr(t,n),a[0]=Jr(e,r),a[1]=Jr(t,n)}var yw=[],_w=[];function lY(e,t,r,n,i,a,o,s,l,u){var c=s2,f=jt,d=c(e,r,i,o,yw);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,i,o,yw[h]);l[0]=Qr(v,l[0]),u[0]=Jr(v,u[0])}d=c(t,n,a,s,_w);for(var h=0;h<d;h++){var p=f(t,n,a,s,_w[h]);l[1]=Qr(p,l[1]),u[1]=Jr(p,u[1])}l[0]=Qr(e,l[0]),u[0]=Jr(e,u[0]),l[0]=Qr(o,l[0]),u[0]=Jr(o,u[0]),l[1]=Qr(t,l[1]),u[1]=Jr(t,u[1]),l[1]=Qr(s,l[1]),u[1]=Jr(s,u[1])}function uY(e,t,r,n,i,a,o,s){var l=u2,u=Jt,c=Jr(Qr(l(e,r,i),1),0),f=Jr(Qr(l(t,n,a),1),0),d=u(e,r,i,c),h=u(t,n,a,f);o[0]=Qr(e,i,d),o[1]=Qr(t,a,h),s[0]=Jr(e,i,d),s[1]=Jr(t,a,h)}function cY(e,t,r,n,i,a,o,s,l){var u=Jo,c=es,f=Math.abs(i-a);if(f%Ca<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Nc[0]=Lv(i)*r+e,Nc[1]=Pv(i)*n+t,Fc[0]=Lv(a)*r+e,Fc[1]=Pv(a)*n+t,u(s,Nc,Fc),c(l,Nc,Fc),i=i%Ca,i<0&&(i=i+Ca),a=a%Ca,a<0&&(a=a+Ca),i>a&&!o?a+=Ca:i<a&&o&&(i+=Ca),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Bc[0]=Lv(h)*r+e,Bc[1]=Pv(h)*n+t,u(s,Bc,s),c(l,Bc,l))}var at={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ta=[],Ma=[],Rn=[],Oi=[],kn=[],Nn=[],Dv=Math.min,Iv=Math.max,Aa=Math.cos,Ea=Math.sin,oi=Math.abs,Vg=Math.PI,zi=Vg*2,Ov=typeof Float32Array<"u",nl=[];function Rv(e){var t=Math.round(e/Vg*1e8)/1e8;return t%2*Vg}function fY(e,t){var r=Rv(e[0]);r<0&&(r+=zi);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=zi?i=r+zi:t&&r-i>=zi?i=r-zi:!t&&r>i?i=r+(zi-Rv(r-i)):t&&r<i&&(i=r-(zi-Rv(i-r))),e[0]=r,e[1]=i}var dY=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=oi(n/pd/t)||0,this._uy=oi(n/pd/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(at.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=oi(t-this._xi),i=oi(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(at.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(at.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(at.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(),nl[0]=i,nl[1]=a,fY(nl,o),i=nl[0],a=nl[1];var s=a-i;return this.addData(at.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Aa(a)*n+t,this._yi=Ea(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(at.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(at.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)&&Ov&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Ov&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(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;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ov&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Rn[0]=Rn[1]=kn[0]=kn[1]=Number.MAX_VALUE,Oi[0]=Oi[1]=Nn[0]=Nn[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case at.M:r=i=t[o++],n=a=t[o++],kn[0]=i,kn[1]=a,Nn[0]=i,Nn[1]=a;break;case at.L:mw(r,n,t[o],t[o+1],kn,Nn),r=t[o++],n=t[o++];break;case at.C:lY(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],kn,Nn),r=t[o++],n=t[o++];break;case at.Q:uY(r,n,t[o++],t[o++],t[o],t[o+1],kn,Nn),r=t[o++],n=t[o++];break;case at.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var p=!t[o++];l&&(i=Aa(h)*f+u,a=Ea(h)*d+c),cY(u,c,f,d,h,v,p,kn,Nn),r=Aa(v)*f+u,n=Ea(v)*d+c;break;case at.R:i=r=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];mw(i,a,i+g,a+m,kn,Nn);break;case at.Z:r=i,n=a;break}Jo(Rn,Rn,kn),es(Oi,Oi,Nn)}return o===0&&(Rn[0]=Rn[1]=Oi[0]=Oi[1]=0),new et(Rn[0],Rn[1],Oi[0]-Rn[0],Oi[1]-Rn[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(a=t[d],o=t[d+1],s=a,l=o);var p=-1;switch(h){case at.M:a=s=t[d++],o=l=t[d++];break;case at.L:{var g=t[d++],m=t[d++],y=g-a,_=m-o;(oi(y)>n||oi(_)>i||d===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case at.C:{var b=t[d++],x=t[d++],g=t[d++],m=t[d++],w=t[d++],S=t[d++];p=L9(a,o,b,x,g,m,w,S,10),a=w,o=S;break}case at.Q:{var b=t[d++],x=t[d++],g=t[d++],m=t[d++];p=I9(a,o,b,x,g,m,10),a=g,o=m;break}case at.A:var C=t[d++],M=t[d++],P=t[d++],A=t[d++],T=t[d++],D=t[d++],N=D+T;d+=1,t[d++],v&&(s=Aa(T)*P+C,l=Ea(T)*A+M),p=Iv(P,A)*Dv(zi,Math.abs(D)),a=Aa(N)*P+C,o=Ea(N)*A+M;break;case at.R:{s=a=t[d++],l=o=t[d++];var H=t[d++],$=t[d++];p=H*2+$*2;break}case at.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,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;w<o;){var S=n[w++],C=w===1;switch(C&&(u=n[w],c=n[w+1],s=u,l=c),S!==at.L&&_>0&&(t.lineTo(b,x),_=0),S){case at.M:s=u=n[w++],l=c=n[w++],t.moveTo(u,c);break;case at.L:{f=n[w++],d=n[w++];var M=oi(f-u),P=oi(d-c);if(M>i||P>a){if(h){var A=v[m++];if(g+A>y){var T=(y-g)/A;t.lineTo(u*(1-T)+f*T,c*(1-T)+d*T);break e}g+=A}t.lineTo(f,d),u=f,c=d,_=0}else{var D=M*M+P*P;D>_&&(b=f,x=d,_=D)}break}case at.C:{var N=n[w++],H=n[w++],$=n[w++],G=n[w++],F=n[w++],R=n[w++];if(h){var A=v[m++];if(g+A>y){var T=(y-g)/A;dd(u,N,$,F,T,Ta),dd(c,H,G,R,T,Ma),t.bezierCurveTo(Ta[1],Ma[1],Ta[2],Ma[2],Ta[3],Ma[3]);break e}g+=A}t.bezierCurveTo(N,H,$,G,F,R),u=F,c=R;break}case at.Q:{var N=n[w++],H=n[w++],$=n[w++],G=n[w++];if(h){var A=v[m++];if(g+A>y){var T=(y-g)/A;hd(u,N,$,T,Ta),hd(c,H,G,T,Ma),t.quadraticCurveTo(Ta[1],Ma[1],Ta[2],Ma[2]);break e}g+=A}t.quadraticCurveTo(N,H,$,G),u=$,c=G;break}case at.A:var j=n[w++],re=n[w++],oe=n[w++],ye=n[w++],Ae=n[w++],V=n[w++],Q=n[w++],W=!n[w++],q=oe>ye?oe:ye,le=oi(oe-ye)>.001,de=Ae+V,J=!1;if(h){var A=v[m++];g+A>y&&(de=Ae+V*(y-g)/A,J=!0),g+=A}if(le&&t.ellipse?t.ellipse(j,re,oe,ye,Q,Ae,de,W):t.arc(j,re,q,Ae,de,W),J)break e;C&&(s=Aa(Ae)*oe+j,l=Ea(Ae)*ye+re),u=Aa(de)*oe+j,c=Ea(de)*ye+re;break;case at.R:s=u=n[w],l=c=n[w+1],f=n[w++],d=n[w++];var L=n[w++],I=n[w++];if(h){var A=v[m++];if(g+A>y){var z=y-g;t.moveTo(f,d),t.lineTo(f+Dv(z,L),d),z-=L,z>0&&t.lineTo(f+L,d+Dv(z,I)),z-=I,z>0&&t.lineTo(f+Iv(L-z,0),d+I),z-=L,z>0&&t.lineTo(f,d+Iv(I-z,0));break e}g+=A}t.rect(f,d,L,I);break;case at.Z:if(h){var A=v[m++];if(g+A>y){var T=(y-g)/A;t.lineTo(u*(1-T)+s*T,c*(1-T)+l*T);break e}g+=A}t.closePath(),u=s,c=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=at,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const _o=dY;function Fo(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||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function hY(e,t,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>a+f&&c>s+f||c<t-f&&c<n-f&&c<a-f&&c<s-f||u>e+f&&u>r+f&&u>i+f&&u>o+f||u<e-f&&u<r-f&&u<i-f&&u<o-f)return!1;var d=l2(e,t,r,n,i,a,o,s,u,c,null);return d<=f/2}function vY(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var c=c2(e,t,r,n,i,a,s,l,null);return c<=u/2}var bw=Math.PI*2;function qi(e){return e%=bw,e<0&&(e+=bw),e}var il=Math.PI*2;function pY(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%il<1e-4)return!0;if(a){var f=n;n=qi(i),i=qi(f)}else n=qi(n),i=qi(i);n>i&&(i+=il);var d=Math.atan2(l,s);return d<0&&(d+=il),d>=n&&d<=i||d+il>=n&&d+il<=i}function Pa(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Ri=_o.CMD,La=Math.PI*2,gY=1e-4;function mY(e,t){return Math.abs(e-t)<gY}var or=[-1,-1,-1],Kr=[-1,-1];function yY(){var e=Kr[0];Kr[0]=Kr[1],Kr[1]=e}function _Y(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=o2(t,n,a,s,u,or);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=or[p],m=g===0||g===1?.5:1,y=jt(e,r,i,o,g);y<l||(d<0&&(d=s2(t,n,a,s,Kr),Kr[1]<Kr[0]&&d>1&&yY(),h=jt(t,n,a,s,Kr[0]),d>1&&(v=jt(t,n,a,s,Kr[1]))),d===2?g<Kr[0]?f+=h<t?m:-m:g<Kr[1]?f+=v<h?m:-m:f+=s<v?m:-m:g<Kr[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function bY(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=D9(t,n,a,s,or);if(l===0)return 0;var u=u2(t,n,a);if(u>=0&&u<=1){for(var c=0,f=Jt(t,n,a,u),d=0;d<l;d++){var h=or[d]===0||or[d]===1?.5:1,v=Jt(e,r,i,or[d]);v<o||(or[d]<u?c+=f<t?h:-h:c+=a<f?h:-h)}return c}else{var h=or[0]===0||or[0]===1?.5:1,v=Jt(e,r,i,or[0]);return v<o?0:a<t?h:-h}}function wY(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);or[0]=-l,or[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=La-1e-4){n=0,i=La;var c=a?1:-1;return o>=or[0]+e&&o<=or[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=La,i+=La);for(var d=0,h=0;h<2;h++){var v=or[h];if(v+e>o){var p=Math.atan2(s,v),c=a?1:-1;p<0&&(p=La+p),(p>=n&&p<=i||p+La>=n&&p+La<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function k2(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<o;){var p=a[v++],g=v===1;switch(p===Ri.M&&v>1&&(r||(s+=Pa(l,u,c,f,n,i))),g&&(l=a[v],u=a[v+1],c=l,f=u),p){case Ri.M:c=a[v++],f=a[v++],l=c,u=f;break;case Ri.L:if(r){if(Fo(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Pa(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ri.C:if(r){if(hY(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=_Y(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 Ri.Q:if(r){if(vY(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=bY(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ri.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?(c=d,f=h):s+=Pa(l,u,d,h,n,i);var C=(n-m)*b/_+m;if(r){if(pY(m,y,b,x,x+w,S,t,C,i))return!0}else s+=wY(m,y,b,x,x+w,S,C,i);l=Math.cos(x+w)*_+m,u=Math.sin(x+w)*b+y;break;case Ri.R:c=l=a[v++],f=u=a[v++];var M=a[v++],P=a[v++];if(d=c+M,h=f+P,r){if(Fo(c,f,d,f,t,n,i)||Fo(d,f,d,h,t,n,i)||Fo(d,h,c,h,t,n,i)||Fo(c,h,c,f,t,n,i))return!0}else s+=Pa(d,f,d,h,n,i),s+=Pa(c,h,c,f,n,i);break;case Ri.Z:if(r){if(Fo(l,u,c,f,t,n,i))return!0}else s+=Pa(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!mY(u,f)&&(s+=Pa(l,u,c,f,n,i)||0),s!==0}function xY(e,t,r){return k2(e,0,!1,t,r)}function SY(e,t,r,n){return k2(e,t,!0,r,n)}var N2=dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},lo),CY={style:dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},dh.style)},kv=Cu.concat(["invisible","culling","z","z2","zlevel","parent"]),TY=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<kv.length;++s)i[kv[s]]=this[kv[s]];i.__dirty|=Rr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Tt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?se(this.style,s):this.useStyle(s):o==="shape"?se(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Te(r)){var n=vd(r,0);return n>.5?Fg:n>.2?rj:Bg}else if(r)return Bg}return Fg},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Te(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=vd(r,0)<Ng;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Ko},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new _o(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>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&Ko)&&(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 c=this.strokeContainThreshold;u=Math.max(u,c??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)),SY(s,l/u,r,n)))return!0}if(this.hasFill())return xY(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ko,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:se(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ko)},t.prototype.createStyle=function(r){return sh(N2,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=se({},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=se({},i.shape),se(u,n.shape)):(u=se({},a?this.shape:i.shape),se(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=se({},this.shape);for(var c={},f=Tt(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return CY},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){pe(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Qe(r.style)},o.prototype.getDefaultShape=function(){return Qe(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Rr|wl|Ko}(),t}(ac);const ht=TY;var MY=dt({strokeFirst:!0,font:yo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},N2),F2=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return sh(MY,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=Zy(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}(ac);F2.prototype.type="tspan";const Gg=F2;var AY=dt({x:0,y:0},lo),EY={style:dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},dh.style)};function PY(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var B2=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return sh(AY,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=PY(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 EY},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new et(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ac);B2.prototype.type="image";const zs=B2;function LY(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),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+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,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 rs=Math.round;function $2(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&&(rs(n*2)===rs(i*2)&&(e.x1=e.x2=eo(n,s,!0)),rs(a*2)===rs(o*2)&&(e.y1=e.y2=eo(a,s,!0))),e}}function H2(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=eo(n,s,!0),e.y=eo(i,s,!0),e.width=Math.max(eo(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(eo(i+o,s,!1)-e.y,o===0?0:1)),e}}function eo(e,t,r){if(!t)return e;var n=rs(e*2);return(n+rs(t))%2===0?n/2:(n+(r?1:-1))/2}var DY=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),IY={},z2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new DY},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=H2(IY,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?LY(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ht);z2.prototype.type="rect";const Ht=z2;var ww={fill:"#000"},xw=2,OY={style:dt({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},dh.style)},W2=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ww,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;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,BY(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new et(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||ww},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return se(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=Tt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},se(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return OY},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||yo,i=r.padding,a=Pw(r),o=Qj(a,r),s=Nv(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=r.x||0,g=r.y||0,m=r.align||v.align||"left",y=r.verticalAlign||v.verticalAlign||"top",_=p,b=Xo(g,o.contentHeight,y);if(s||i){var x=Sl(p,c,m),w=Xo(g,u,y);s&&this._renderBackground(r,r,x,w,c,u)}b+=h/2,i&&(_=Ew(p,m,i),y==="top"?b+=i[0]:y==="bottom"&&(b-=i[2]));for(var S=0,C=!1,M=Aw("fill"in r?r.fill:(C=!0,v.fill)),P=Mw("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(S=xw,v.stroke):null),A=r.textShadowBlur>0,T=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),D=o.calculatedLineHeight,N=0;N<d.length;N++){var H=this._getOrCreateChild(Gg),$=H.createStyle();H.useStyle($),$.text=d[N],$.x=_,$.y=b,m&&($.textAlign=m),$.textBaseline="middle",$.opacity=r.opacity,$.strokeFirst=!0,A&&($.shadowBlur=r.textShadowBlur||0,$.shadowColor=r.textShadowColor||"transparent",$.shadowOffsetX=r.textShadowOffsetX||0,$.shadowOffsetY=r.textShadowOffsetY||0),$.stroke=P,$.fill=M,P&&($.lineWidth=r.lineWidth||S,$.lineDash=r.lineDash,$.lineDashOffset=r.lineDashOffset||0),$.font=n,Cw($,r),b+=h,T&&H.setBoundingRect(new et(Sl($.x,r.width,$.textAlign),Xo($.y,D,$.textBaseline),f,D))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Pw(r),i=tY(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,v=Sl(u,o,d),p=Xo(c,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var y=g+a;Nv(r)&&this._renderBackground(r,r,v,p,o,s);for(var _=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var x=i.lines[b],w=x.tokens,S=w.length,C=x.lineHeight,M=x.width,P=0,A=g,T=y,D=S-1,N=void 0;P<S&&(N=w[P],!N.align||N.align==="left");)this._placeToken(N,r,C,m,A,"left",_),M-=N.width,A+=N.width,P++;for(;D>=0&&(N=w[D],N.align==="right");)this._placeToken(N,r,C,m,T,"right",_),M-=N.width,T-=N.width,D--;for(A+=(a-(A-g)-(y-T)-M)/2;P<=D;)N=w[P],this._placeToken(N,r,C,m,A+N.width/2,"center",_),A+=N.width,P++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&Nv(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=Ew(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Gg),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=Mw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=xw,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,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||yo,g.opacity=zl(u.opacity,n.opacity,1),Cw(g,u),x&&(g.lineWidth=zl(u.lineWidth,n.lineWidth,_),g.lineDash=qe(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 et(Sl(g.x,S,g.textAlign),Xo(g.y,C,g.textBaseline),S,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&c){p=this._getOrCreateChild(Ht),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=qe(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(zs),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var y=p.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=qe(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=zl(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return FY(r)&&(n=[r.fontStyle,r.fontWeight,NY(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Vn(n)||r.textFont||r.font},t}(ac),RY={left:!0,right:1,center:1},kY={top:1,bottom:1,middle:1},Sw=["fontStyle","fontWeight","fontSize","fontFamily"];function NY(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?zy+"px":e+"px"}function Cw(e,t){for(var r=0;r<Sw.length;r++){var n=Sw[r],i=t[n];i!=null&&(e[n]=i)}}function FY(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function BY(e){return Tw(e),O(e.rich,Tw),e}function Tw(e){if(e){e.font=W2.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||RY[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||kY[r]?r:"top";var n=e.padding;n&&(e.padding=jA(e.padding))}}function Mw(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Aw(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Ew(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Pw(e){var t=e.text;return t!=null&&(t+=""),t}function Nv(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const dr=W2;var ft=Et(),$Y=function(e,t,r,n){if(n){var i=ft(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=ft(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},Lw=1,Dw={},V2=Et(),i0=Et(),G2=0,a0=1,o0=2,Xn=["emphasis","blur","select"],_d=["normal","emphasis","blur","select"],HY=10,zY=9,uo="highlight",$f="downplay",jl="select",Hf="unselect",Yl="toggleSelect";function Bo(e){return e!=null&&e!=="none"}var Iw=new tc(100);function Ow(e){if(Te(e)){var t=Iw.get(e);return t||(t=Q1(e,-.1),Iw.put(e,t)),t}else if(oh(e)){var r=se({},e);return r.colorStops=Re(e.colorStops,function(n){return{offset:n.offset,color:Q1(n.color,-.1)}}),r}return e}function hh(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function U2(e){hh(e,"emphasis",o0)}function j2(e){e.hoverState===o0&&hh(e,"normal",G2)}function s0(e){hh(e,"blur",a0)}function Y2(e){e.hoverState===a0&&hh(e,"normal",G2)}function WY(e){e.selected=!0}function VY(e){e.selected=!1}function Rw(e,t,r){t(e,r)}function Ai(e,t,r){Rw(e,t,r),e.isGroup&&e.traverse(function(n){Rw(n,t,r)})}function GY(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function UY(e,t,r,n){var i=r&&ot(r,"select")>=0,a=!1;if(e instanceof ht){var o=V2(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Bo(s)||Bo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=se({},n),u=se({},u),u.fill=s):!Bo(u.fill)&&Bo(s)?(a=!0,n=se({},n),u=se({},u),u.fill=Ow(s)):!Bo(u.stroke)&&Bo(l)&&(a||(n=se({},n),u=se({},u)),u.stroke=Ow(l)),n.style=u}}if(n&&n.z2==null){a||(n=se({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??HY)}return n}function jY(e,t,r){if(r&&r.z2==null){r=se({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??zY)}return r}function YY(e,t,r){var n=ot(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:GY(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=se({},r),o=se({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Fv(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return UY(this,e,t,r);if(e==="blur")return YY(this,e,r);if(e==="select")return jY(this,e,r)}return r}function qY(e){e.stateProxy=Fv;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Fv),r&&(r.stateProxy=Fv)}function kw(e,t){!Z2(e,t)&&!e.__highByOuter&&Ai(e,U2)}function Nw(e,t){!Z2(e,t)&&!e.__highByOuter&&Ai(e,j2)}function Ug(e,t){e.__highByOuter|=1<<(t||0),Ai(e,U2)}function jg(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ai(e,j2)}function KY(e){Ai(e,s0)}function q2(e){Ai(e,Y2)}function K2(e){Ai(e,WY)}function X2(e){Ai(e,VY)}function Z2(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Q2(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=i0(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Y2(u)}),s&&r.push(a)),o.isBlured=!1}),O(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function Yg(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&q2(d)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){s0(g)}),Er(t))a(u.getData(),t);else if(Ie(t))for(var v=Tt(t),p=0;p<v.length;p++)a(u.getData(v[p]),t[v[p]]);l.push(u),i0(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function qg(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){i0(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){s0(a)})}}}function XY(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=nc(i,t);a=(ge(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ft(o);Yg(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&Yg(n,c,f,r)}}}function l0(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ft(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function ZY(e,t,r){var n=ft(e),i=l0(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&qg(n.componentMainType,n.componentIndex,r),O(a,function(s){return kw(s,t)})):(Yg(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&qg(n.componentMainType,n.componentIndex,r),kw(e,t))}function QY(e,t,r){Q2(r);var n=ft(e),i=l0(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?O(i,function(a){return Nw(a,t)}):Nw(e,t)}function JY(e,t,r){if(Zg(t)){var n=t.dataType,i=e.getData(n),a=nc(i,t);ge(a)||(a=[a]),e[t.type===Yl?"toggleSelect":t.type===jl?"select":"unselect"](a,n)}}function Fw(e){var t=e.getAllData();O(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?K2(a):X2(a)})})}function e7(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();O(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Kg(e,t,r){tE(e,!0),Ai(e,qY),r7(e,t,r)}function t7(e){tE(e,!1)}function J2(e,t,r,n){n?t7(e):Kg(e,t,r)}function r7(e,t,r){var n=ft(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Bw=["emphasis","blur","select"],n7={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function eE(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Bw.length;i++){var a=Bw[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[n7[r]]()}}function tE(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Xg(e){return!!(e&&e.__highDownDispatcher)}function i7(e){var t=Dw[e];return t==null&&Lw<=32&&(t=Dw[e]=Lw++),t}function Zg(e){var t=e.type;return t===jl||t===Hf||t===Yl}function $w(e){var t=e.type;return t===uo||t===$f}function a7(e){var t=V2(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var $o=_o.CMD,o7=[[],[],[]],Hw=Math.sqrt,s7=Math.atan2;function l7(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=$o.M,f=$o.C,d=$o.L,h=$o.R,v=$o.A,p=$o.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case d:a=1;break;case f:a=3;break;case p:a=2;break;case v:var g=t[4],m=t[5],y=Hw(t[0]*t[0]+t[1]*t[1]),_=Hw(t[2]*t[2]+t[3]*t[3]),b=s7(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],on(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],on(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var x=o7[l];x[0]=r[o++],x[1]=r[o++],on(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Bv=Math.sqrt,$c=Math.sin,Hc=Math.cos,al=Math.PI;function zw(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Qg(e,t){return(e[0]*t[0]+e[1]*t[1])/(zw(e)*zw(t))}function Ww(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Qg(e,t))}function Vw(e,t,r,n,i,a,o,s,l,u,c){var f=l*(al/180),d=Hc(f)*(e-r)/2+$c(f)*(t-n)/2,h=-1*$c(f)*(e-r)/2+Hc(f)*(t-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Bv(v),s*=Bv(v));var p=(i===a?-1:1)*Bv((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+Hc(f)*g-$c(f)*m,_=(t+n)/2+$c(f)*g+Hc(f)*m,b=Ww([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=Ww(x,w);if(Qg(x,w)<=-1&&(S=al),Qg(x,w)>=1&&(S=0),S<0){var C=Math.round(S/al*1e6)/1e6;S=al*2+C%2*al}c.addData(u,y,_,o,s,b,S,f,a)}var u7=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,c7=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function f7(e){var t=new _o;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=_o.CMD,l=e.match(u7);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(c7)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,C=r,M=n,P=void 0,A=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,f="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,P=t.len(),A=t.data,o===s.C&&(m+=r-A[P-4],y+=n-A[P-3]),d=s.C,C=h[g++],M=h[g++],r=h[g++],n=h[g++],t.addData(d,m,y,C,M,r,n);break;case"s":m=r,y=n,P=t.len(),A=t.data,o===s.C&&(m+=r-A[P-4],y+=n-A[P-3]),d=s.C,C=r+h[g++],M=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,m,y,C,M,r,n);break;case"Q":C=h[g++],M=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,C,M,r,n);break;case"q":C=h[g++]+r,M=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,C,M,r,n);break;case"T":m=r,y=n,P=t.len(),A=t.data,o===s.Q&&(m+=r-A[P-4],y+=n-A[P-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"t":m=r,y=n,P=t.len(),A=t.data,o===s.Q&&(m+=r-A[P-4],y+=n-A[P-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"A":_=h[g++],b=h[g++],x=h[g++],w=h[g++],S=h[g++],C=r,M=n,r=h[g++],n=h[g++],d=s.A,Vw(C,M,r,n,w,S,_,b,x,d,t);break;case"a":_=h[g++],b=h[g++],x=h[g++],w=h[g++],S=h[g++],C=r,M=n,r+=h[g++],n+=h[g++],d=s.A,Vw(C,M,r,n,w,S,_,b,x,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=i,n=a),o=d}return t.toStatic(),t}var rE=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ht);function nE(e){return e.setData!=null}function iE(e,t){var r=f7(e),n=se({},t);return n.buildPath=function(i){if(nE(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){l7(r,i),this.dirtyShape()},n}function d7(e,t){return new rE(iE(e,t))}function h7(e,t){var r=iE(e,t),n=function(i){pe(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(rE);return n}function v7(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ht(t);return o.createPathProxy(),o.buildPath=function(s){if(nE(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var p7=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),aE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new p7},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(ht);aE.prototype.type="circle";const u0=aE;var g7=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),oE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new g7},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},t}(ht);oE.prototype.type="ellipse";const sE=oE;var lE=Math.PI,$v=lE*2,Da=Math.sin,Ho=Math.cos,m7=Math.acos,Zt=Math.atan2,Gw=Math.abs,ql=Math.sqrt,Cl=Math.max,Fn=Math.min,gn=1e-4;function y7(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=f*l-c*u;if(!(d*d<gn))return d=(c*(t-a)-f*(e-i))/d,[e+d*l,t+d*u]}function zc(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/ql(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=r+c,p=n+f,g=(d+v)/2,m=(h+p)/2,y=v-d,_=p-h,b=y*y+_*_,x=i-a,w=d*p-v*h,S=(_<0?-1:1)*ql(Cl(0,x*x*b-w*w)),C=(w*_-y*S)/b,M=(-w*y-_*S)/b,P=(w*_+y*S)/b,A=(-w*y+_*S)/b,T=C-g,D=M-m,N=P-g,H=A-m;return T*T+D*D>N*N+H*H&&(C=P,M=A),{cx:C,cy:M,x0:-c,y0:-f,x1:C*(i/x-1),y1:M*(i/x-1)}}function _7(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 b7(e,t){var r,n=Cl(t.r,0),i=Cl(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 c=t.cx,f=t.cy,d=!!t.clockwise,h=Gw(u-l),v=h>$v&&h%$v;if(v>gn&&(h=v),!(n>gn))e.moveTo(c,f);else if(h>$v-gn)e.moveTo(c+n*Ho(l),f+n*Da(l)),e.arc(c,f,n,l,u,!d),i>gn&&(e.moveTo(c+i*Ho(u),f+i*Da(u)),e.arc(c,f,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,M=void 0,P=void 0,A=void 0,T=void 0,D=void 0,N=void 0,H=n*Ho(l),$=n*Da(l),G=i*Ho(u),F=i*Da(u),R=h>gn;if(R){var j=t.cornerRadius;j&&(r=_7(j),p=r[0],g=r[1],m=r[2],y=r[3]);var re=Gw(n-i)/2;if(_=Fn(re,m),b=Fn(re,y),x=Fn(re,p),w=Fn(re,g),M=S=Cl(_,b),P=C=Cl(x,w),(S>gn||C>gn)&&(A=n*Ho(u),T=n*Da(u),D=i*Ho(l),N=i*Da(l),h<lE)){var oe=y7(H,$,D,N,A,T,G,F);if(oe){var ye=H-oe[0],Ae=$-oe[1],V=A-oe[0],Q=T-oe[1],W=1/Da(m7((ye*V+Ae*Q)/(ql(ye*ye+Ae*Ae)*ql(V*V+Q*Q)))/2),q=ql(oe[0]*oe[0]+oe[1]*oe[1]);M=Fn(S,(n-q)/(W+1)),P=Fn(C,(i-q)/(W-1))}}}if(!R)e.moveTo(c+H,f+$);else if(M>gn){var le=Fn(m,M),de=Fn(y,M),J=zc(D,N,H,$,n,le,d),L=zc(A,T,G,F,n,de,d);e.moveTo(c+J.cx+J.x0,f+J.cy+J.y0),M<S&&le===de?e.arc(c+J.cx,f+J.cy,M,Zt(J.y0,J.x0),Zt(L.y0,L.x0),!d):(le>0&&e.arc(c+J.cx,f+J.cy,le,Zt(J.y0,J.x0),Zt(J.y1,J.x1),!d),e.arc(c,f,n,Zt(J.cy+J.y1,J.cx+J.x1),Zt(L.cy+L.y1,L.cx+L.x1),!d),de>0&&e.arc(c+L.cx,f+L.cy,de,Zt(L.y1,L.x1),Zt(L.y0,L.x0),!d))}else e.moveTo(c+H,f+$),e.arc(c,f,n,l,u,!d);if(!(i>gn)||!R)e.lineTo(c+G,f+F);else if(P>gn){var le=Fn(p,P),de=Fn(g,P),J=zc(G,F,A,T,i,-de,d),L=zc(H,$,D,N,i,-le,d);e.lineTo(c+J.cx+J.x0,f+J.cy+J.y0),P<C&&le===de?e.arc(c+J.cx,f+J.cy,P,Zt(J.y0,J.x0),Zt(L.y0,L.x0),!d):(de>0&&e.arc(c+J.cx,f+J.cy,de,Zt(J.y0,J.x0),Zt(J.y1,J.x1),!d),e.arc(c,f,i,Zt(J.cy+J.y1,J.cx+J.x1),Zt(L.cy+L.y1,L.cx+L.x1),d),le>0&&e.arc(c+L.cx,f+L.cy,le,Zt(L.y1,L.x1),Zt(L.y0,L.x0),!d))}else e.lineTo(c+G,f+F),e.arc(c,f,i,u,l,d)}e.closePath()}}}var w7=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}(),uE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new w7},t.prototype.buildPath=function(r,n){b7(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ht);uE.prototype.type="sector";const Ao=uE;var x7=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),cE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new x7},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}(ht);cE.prototype.type="ring";const fE=cE;function S7(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Jo(c,c,e[d]),es(f,f,e[d]);Jo(c,c,n[0]),es(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(YU(e[d]));continue}else l=e[d-1],u=e[d+1];qU(a,u,l),rv(a,a,t);var p=Sg(v,l),g=Sg(v,u),m=p+g;m!==0&&(p/=m,g/=m),rv(o,a,-p),rv(s,a,g);var y=N1([],v,o),_=N1([],v,s);n&&(es(y,y,c),Jo(y,y,f),es(_,_,c),Jo(_,_,f)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function dE(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=S7(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],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var C7=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),hE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new C7},t.prototype.buildPath=function(r,n){dE(r,n,!0)},t}(ht);hE.prototype.type="polygon";const vE=hE;var T7=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),pE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new T7},t.prototype.buildPath=function(r,n){dE(r,n,!1)},t}(ht);pE.prototype.type="polyline";const vh=pE;var M7={},A7=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),gE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new A7},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=$2(M7,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(ht);gE.prototype.type="line";const bo=gE;var pr=[],E7=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Uw(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?Y1:jt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Y1:jt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?q1:Jt)(e.x1,e.cpx1,e.x2,t),(r?q1:Jt)(e.y1,e.cpy1,e.y2,t)]}var mE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new E7},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),c==null||f==null?(d<1&&(hd(i,l,o,d,pr),l=pr[1],o=pr[2],hd(a,u,s,d,pr),u=pr[1],s=pr[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(dd(i,l,c,o,d,pr),l=pr[1],c=pr[2],o=pr[3],dd(a,u,f,s,d,pr),u=pr[1],f=pr[2],s=pr[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return Uw(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Uw(this.shape,r,!0);return ZU(n,n)},t}(ht);mE.prototype.type="bezier-curve";const yE=mE;var P7=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),_E=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new P7},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},t}(ht);_E.prototype.type="arc";const c0=_E;var L7=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ht.prototype.getBoundingRect.call(this)},t}(ht);const D7=L7;var I7=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const bE=I7;var O7=function(e){pe(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(bE);const R7=O7;var k7=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(bE);const N7=k7;var Ia=[0,0],Oa=[0,0],Wc=new ke,Vc=new ke,F7=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ke;for(var n=0;n<2;n++)this._axes[n]=new ke;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);ke.sub(i[0],n[1],n[0]),ke.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Wc.set(1/0,1/0),Vc.set(0,0),!this._intersectCheckOneSide(this,t,Wc,Vc,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Wc,Vc,i,-1)&&(n=!1,i)||i||ke.copy(r,n?Wc:Vc),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Ia),this._getProjMinMaxOnAxis(l,r._corners,Oa),Ia[1]<Oa[0]||Ia[0]>Oa[1]){if(s=!1,a)return s;var c=Math.abs(Oa[0]-Ia[1]),f=Math.abs(Ia[0]-Oa[1]);Math.min(c,f)>i.len()&&(c<f?ke.scale(i,u,-c*o):ke.scale(i,u,f*o))}else if(n){var c=Math.abs(Oa[0]-Ia[1]),f=Math.abs(Ia[0]-Oa[1]);Math.min(c,f)<n.len()&&(c<f?ke.scale(n,u,c*o):ke.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const bd=F7;var B7=[],$7=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new et(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(B7)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(ac);const H7=$7;var z7=Et();function W7(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=qe(n.duration,200),c=qe(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),Ve(f)&&(f=f(r,i)),Ve(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function f0(e,t,r,n,i,a,o){var s=!1,l;Ve(i)?(o=a,a=i,i=null):Ie(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=W7(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,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 Pr(e,t,r,n,i,a){f0("update",e,t,r,n,i,a)}function Hr(e,t,r,n,i,a){f0("enter",e,t,r,n,i,a)}function fs(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function wE(e,t,r,n,i,a){fs(e)||f0("leave",e,t,r,n,i,a)}function jw(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),wE(e,{style:{opacity:0}},t,r,n)}function wd(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||jw(i,t,r,n)}):jw(e,t,r,n)}function xE(e){z7(e).oldStyle=e.style}var xd=Math.max,Sd=Math.min,Jg={};function V7(e){return ht.extend(e)}var G7=h7;function U7(e,t){return G7(e,t)}function Dn(e,t){Jg[e]=t}function j7(e){if(Jg.hasOwnProperty(e))return Jg[e]}function d0(e,t,r,n){var i=d7(e,t);return r&&(n==="center"&&(r=CE(r,i.getBoundingRect())),TE(i,r)),i}function SE(e,t,r){var n=new zs({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(CE(t,a))}}});return n}function CE(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Y7=v7;function TE(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Au(e,t){return $2(e,e,{lineWidth:t}),e}function q7(e){return H2(e.shape,e.shape,e.style),e}var K7=eo;function X7(e,t){for(var r=Yy([]);e&&e!==t;)us(r,e.getLocalTransform(),r),e=e.parent;return r}function h0(e,t,r){return t&&!Er(t)&&(t=uh.getLocalTransform(t)),r&&(t=lh([],t)),on([],e,t)}function Z7(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=h0(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Yw(e){return!e.isGroup}function Q7(e){return e.shape!=null}function ME(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Yw(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Q7(o)&&(s.shape=se({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Yw(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Pr(o,l,r,ft(o).dataIndex)}}})}function J7(e,t){return Re(e,function(r){var n=r[0];n=xd(n,t.x),n=Sd(n,t.x+t.width);var i=r[1];return i=xd(i,t.y),i=Sd(i,t.y+t.height),[n,i]})}function eq(e,t){var r=xd(e.x,t.x),n=Sd(e.x+e.width,t.x+t.width),i=xd(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 v0(e,t,r){var n=se({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),dt(i,r),new zs(n)):d0(e.replace("path://",""),n,r,"center")}function tq(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(AE(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function AE(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=Hv(c,f,l,u);if(rq(d))return!1;var h=e-i,v=t-a,p=Hv(h,v,l,u)/d;if(p<0||p>1)return!1;var g=Hv(h,v,c,f)/d;return!(g<0||g>1)}function Hv(e,t,r,n){return e*n-r*t}function rq(e){return e<=1e-6&&e>=-1e-6}function p0(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&&O(Tt(l),function(c){Ps(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ft(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:dt({content:n,formatterParams:s},i)}}function qw(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function g0(e,t){if(e)if(ge(e))for(var r=0;r<e.length;r++)qw(e[r],t);else qw(e,t)}Dn("circle",u0);Dn("ellipse",sE);Dn("sector",Ao);Dn("ring",fE);Dn("polygon",vE);Dn("polyline",vh);Dn("rect",Ht);Dn("line",bo);Dn("bezierCurve",yE);Dn("arc",c0);const nq=Object.freeze(Object.defineProperty({__proto__:null,Arc:c0,BezierCurve:yE,BoundingRect:et,Circle:u0,CompoundPath:D7,Ellipse:sE,Group:cn,Image:zs,IncrementalDisplayable:H7,Line:bo,LinearGradient:R7,OrientedBoundingRect:bd,Path:ht,Point:ke,Polygon:vE,Polyline:vh,RadialGradient:N7,Rect:Ht,Ring:fE,Sector:Ao,Text:dr,applyTransform:h0,clipPointsByRect:J7,clipRectByRect:eq,createIcon:v0,extendPath:U7,extendShape:V7,getShapeClass:j7,getTransform:X7,groupTransition:ME,initProps:Hr,isElementRemoved:fs,lineLineIntersect:AE,linePolygonIntersect:tq,makeImage:SE,makePath:d0,mergePath:Y7,registerShape:Dn,removeElement:wE,removeElementWithFadeOut:wd,resizePath:TE,setTooltipConfig:p0,subPixelOptimize:K7,subPixelOptimizeLine:Au,subPixelOptimizeRect:q7,transformDirection:Z7,traverseElements:g0,updateProps:Pr},Symbol.toStringTag,{value:"Module"}));var ph={};function EE(e,t){for(var r=0;r<Xn.length;r++){var n=Xn[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function em(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Ve(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Xn.length;u++){var c=Xn[u],f=t[c];l[c]=qe(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function m0(e,t,r,n){r=r||ph;for(var i=e instanceof dr,a=!1,o=0;o<_d.length;o++){var s=t[_d[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new dr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=em(r,t),c=t.normal,f=!!c.getShallow("show"),d=la(c,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig(Kw(c,r,!1));for(var o=0;o<Xn.length;o++){var h=Xn[o],s=t[h];if(s){var v=l.ensureState(h),p=!!qe(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=la(s,n&&n[h],r,!0,!i),v.style.text=u[h],!i){var g=e.ensureState(h);g.textConfig=Kw(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(oc(l).setLabelText=function(m){var y=em(r,t,m);EE(l,y)})}else l&&(l.ignore=!0);e.dirty()}function PE(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Xn.length;n++){var i=Xn[n];r[i]=e.getModel([i,t])}return r}function la(e,t,r,n,i){var a={};return iq(a,e,r,n,i),t&&se(a,t),a}function Kw(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=qe(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function iq(e,t,r,n,i){r=r||ph;var a=t.ecModel,o=a&&a.option.textStyle,s=aq(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Jw(l[u]={},c,o,r,n,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),Jw(e,t,o,r,n,i,!0,!1)}function aq(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||ph).rich;if(r){t=t||{};for(var n=Tt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var Xw=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Zw=["align","lineHeight","width","height","tag","verticalAlign"],Qw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Jw(e,t,r,n,i,a,o,s){r=!i&&r||ph;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=qe(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=qe(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=qe(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=qe(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<Xw.length;p++){var g=Xw[p],m=qe(t.getShallow(g),r[g]);m!=null&&(e[g]=m)}for(var p=0;p<Zw.length;p++){var g=Zw[p],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<Qw.length;p++){var g=Qw[p],m=t.getShallow(g);m!=null&&(e[g]=m)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function oq(e,t){var r=t&&t.getModel("textStyle");return Vn([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var oc=Et();function sq(e,t,r,n){if(e){var i=oc(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function lq(e,t,r,n,i){var a=oc(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=qe(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=Fj(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var d=em({labelDataIndex:t,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);EE(e,d)}e.percent=0,(a.prevValue==null?Hr:Pr)(e,{percent:1},n,t,null,u)}var uq=["textStyle","color"],zv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Wv=new dr,cq=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(uq):null)},e.prototype.getFont=function(){return oq({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<zv.length;n++)r[zv[n]]=this.getShallow(zv[n]);return Wv.useStyle(r),Wv.update(),Wv.getBoundingRect()},e}();const fq=cq;var LE=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],dq=Mu(LE),hq=function(){function e(){}return e.prototype.getLineStyle=function(t){return dq(this,t)},e}(),DE=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],vq=Mu(DE),pq=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return vq(this,t,r)},e}(),Eo=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){st(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Qe(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Ge.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();n0(Eo);Vj(Eo);Jn(Eo,hq);Jn(Eo,pq);Jn(Eo,qj);Jn(Eo,fq);const rr=Eo;var gq=Math.round(Math.random()*10);function gh(e){return[e||"",gq++].join("_")}function mq(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Gn(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Gn(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function yq(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(O(a,function(y){d[y]=!0});f.length;){var h=f.pop(),v=c[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),O(v.successor,p?m:g)}O(d,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){d[y]=!0,g(y)}};function r(a){var o={},s=[];return O(a,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),O(f,function(d){ot(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);ot(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return O(a,function(l){ot(o,l)>=0&&s.push(l)}),s}}function IE(e,t){return st(st({},e,!0),t,!0)}const _q={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:". "}}}},bq={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 Cd="ZH",y0="EN",Eu=y0,zf={},_0={},OE=Ge.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Cd)>-1?Cd:Eu}():Eu;function RE(e,t){e=e.toUpperCase(),_0[e]=new rr(t),zf[e]=t}function wq(e){if(Te(e)){var t=zf[e.toUpperCase()]||{};return e===Cd||e===y0?Qe(t):st(Qe(t),Qe(zf[Eu]),!1)}else return st(Qe(e),Qe(zf[Eu]),!1)}function xq(e){return _0[e]}function Sq(){return _0[Eu]}RE(y0,_q);RE(Cd,bq);var b0=1e3,w0=b0*60,Kl=w0*60,en=Kl*24,ex=en*365,Tl={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}"},Gc="{yyyy}-{MM}-{dd}",tx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gc,hour:Gc+" "+Tl.hour,minute:Gc+" "+Tl.minute,second:Gc+" "+Tl.second,millisecond:Tl.none},Vv=["year","month","day","hour","minute","second","millisecond"],kE=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ra(e,t){return e+="","0000".substr(0,t-e.length)+e}function ds(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 Cq(e){return e===ds(e)}function Tq(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function mh(e,t,r,n){var i=wi(e),a=i[x0(r)](),o=i[hs(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[yh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Pu(r)](),f=(c-1)%12+1,d=i[_h(r)](),h=i[bh(r)](),v=i[wh(r)](),p=n instanceof rr?n:xq(n||OE)||Sq(),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,Ra(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ra(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ra(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ra(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ra(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Ra(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ra(v,3)).replace(/{S}/g,v+"")}function Mq(e,t,r,n,i){var a=null;if(Te(r))a=r;else if(Ve(r))a=r(e.value,t,{level:e.level});else{var o=se({},Tl);if(e.level>0)for(var s=0;s<Vv.length;++s)o[Vv[s]]="{primary|"+o[Vv[s]]+"}";var l=r?r.inherit===!1?r:dt(r,o):o,u=NE(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=kE.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ge(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return mh(new Date(e.value),a,i,n)}function NE(e,t){var r=wi(e),n=r[hs(t)]()+1,i=r[yh(t)](),a=r[Pu(t)](),o=r[_h(t)](),s=r[bh(t)](),l=r[wh(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function rx(e,t,r){var n=bt(e)?wi(e):e;switch(t=t||NE(e,r),t){case"year":return n[x0(r)]();case"half-year":return n[hs(r)]()>=6?1:0;case"quarter":return Math.floor((n[hs(r)]()+1)/4);case"month":return n[hs(r)]();case"day":return n[yh(r)]();case"half-day":return n[Pu(r)]()/24;case"hour":return n[Pu(r)]();case"minute":return n[_h(r)]();case"second":return n[bh(r)]();case"millisecond":return n[wh(r)]()}}function x0(e){return e?"getUTCFullYear":"getFullYear"}function hs(e){return e?"getUTCMonth":"getMonth"}function yh(e){return e?"getUTCDate":"getDate"}function Pu(e){return e?"getUTCHours":"getHours"}function _h(e){return e?"getUTCMinutes":"getMinutes"}function bh(e){return e?"getUTCSeconds":"getSeconds"}function wh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Aq(e){return e?"setUTCFullYear":"setFullYear"}function FE(e){return e?"setUTCMonth":"setMonth"}function BE(e){return e?"setUTCDate":"setDate"}function $E(e){return e?"setUTCHours":"setHours"}function HE(e){return e?"setUTCMinutes":"setMinutes"}function zE(e){return e?"setUTCSeconds":"setSeconds"}function WE(e){return e?"setUTCMilliseconds":"setMilliseconds"}function VE(e){if(!xj(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 GE(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 xh=jA;function tm(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Vn(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?wi(e):e;if(isNaN(+l)){if(s)return"-"}else return mh(l,n,r)}if(t==="ordinal")return wg(e)?i(e):bt(e)&&a(e)?e+"":"-";var u=yd(e);return a(u)?VE(u):wg(e)?i(e):typeof e=="boolean"?e+"":"-"}var nx=["a","b","c","d","e","f","g"],Gv=function(e,t){return"{"+e+(t??"")+"}"};function UE(e,t,r){ge(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=nx[a];e=e.replace(Gv(o),Gv(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(Gv(nx[l],s),r?Xr(u):u)}return e}function Eq(e,t){var r=Te(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Xr(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Xr(n)+";"+(t||"")+'"></span>';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 Lu(e,t){return t=t||"transparent",Te(e)?e:Ie(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function ix(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Wf=O,Pq=["left","right","top","bottom","width","height"],Uc=[["width","left","right"],["height","top","bottom"]];function S0(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 c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var p=c.width+(d?-d.x+c.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var Xl=S0;Rt(S0,"vertical");Rt(S0,"horizontal");function Ls(e,t,r){r=xh(r||0);var n=t.width,i=t.height,a=gt(e.left,n),o=gt(e.top,i),s=gt(e.right,n),l=gt(e.bottom,i),u=gt(e.width,n),c=gt(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),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-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var v=new et(a+r[3],o+r[0],u,c);return v.margin=r,v}function Du(e){var t=e.layoutMode||e.constructor.layoutMode;return Ie(t)?t:t?{type:t}:null}function Ds(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o(Uc[0],0),a=o(Uc[1],1);u(Uc[0],e,i),u(Uc[1],e,a);function o(c,f){var d={},h=0,v={},p=0,g=2;if(Wf(c,function(_){v[_]=e[_]}),Wf(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m<c.length;m++){var y=c[m];if(!s(d,y)&&s(e,y)){d[y]=e[y];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){Wf(c,function(h){f[h]=d[h]})}}function Sh(e){return Lq({},e)}function Lq(e,t){return t&&e&&Wf(Pq,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Dq=Et(),Ws=function(e){pe(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=gh("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Du(this),a=i?Sh(r):{},o=n.getTheme();st(r,o.get(this.mainType)),st(r,this.getDefaultOption()),i&&Ds(r,a,i)},t.prototype.mergeOption=function(r,n){st(this.option,r,!0);var i=Du(this);i&&Ds(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Hj(r))return r.defaultOption;var n=Dq(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=st(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ic(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}(rr);L2(Ws,rr);ch(Ws);mq(Ws);yq(Ws,Iq);function Iq(e){var t=[];return O(Ws.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Re(t,function(r){return Gn(r).main}),e!=="dataset"&&ot(t,"dataset")<=0&&t.unshift("dataset"),t}const xt=Ws;var jE="";typeof navigator<"u"&&(jE=navigator.platform||"");var zo="rgba(0, 0, 0, 0.2)";const Oq={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:jE.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 YE=Ue(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),dn="original",Lr="arrayRows",In="objectRows",ti="keyedColumns",Ji="typedArray",qE="unknown",pi="column",Vs="row",Ut={Must:1,Might:2,Not:3},KE=Et();function Rq(e){KE(e).datasetMap=Ue()}function kq(e,t,r){var n={},i=C0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=KE(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),O(e,function(p,g){var m=Ie(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});O(e,function(p,g){var m=p.name,y=v(p);if(c==null){var _=d.valueWayDim;h(n[m],_,y),h(o,_,y),d.valueWayDim+=y}else if(c===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;y<m;y++)p.push(g+y)}function v(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Nq(e,t,r){var n={},i=C0(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===In||a===ti)&&O(o,function(c,f){(Ie(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var p=ZE(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===Ut.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===Ut.Not)&&(c.n=h),m(c)&&d[c.n]!==Ut.Not)return c;g||(p===Ut.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function C0(e){var t=e.get("data",!0);if(!t)return ic(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Cn).models[0]}function Fq(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:ic(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Cn).models}function XE(e,t){return ZE(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function ZE(e,t,r,n,i,a){var o,s=5;if(zr(e))return Ut.Not;var l,u;if(n){var c=n[a];Ie(c)?(l=c.name,u=c.type):Te(c)&&(l=c)}if(u!=null)return u==="ordinal"?Ut.Must:Ut.Not;if(t===Lr){var f=e;if(r===Vs){for(var d=f[a],h=0;h<(d||[]).length&&h<s;h++)if((o=b(d[i+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[i+h];if(v&&(o=b(v[a]))!=null)return o}}else if(t===In){var p=e;if(!l)return Ut.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=b(g[l]))!=null)return o}}else if(t===ti){var m=e;if(!l)return Ut.Not;var d=m[l];if(!d||zr(d))return Ut.Not;for(var h=0;h<d.length&&h<s;h++)if((o=b(d[h]))!=null)return o}else if(t===dn)for(var y=e,h=0;h<y.length&&h<s;h++){var g=y[h],_=rc(g);if(!ge(_))return Ut.Not;if((o=b(_[a]))!=null)return o}function b(x){var w=Te(x);if(x!=null&&isFinite(x)&&x!=="")return w?Ut.Might:Ut.Not;if(w&&x!=="-")return Ut.Must}return Ut.Not}var Bq=Ue();function $q(e,t,r){var n=Bq.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var ax=Et();Et();var T0=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=cr(this.get("color",!0)),a=this.get("colorLayer",!0);return zq(this,ax,i,a,t,r,n)},e.prototype.clearColorPalette=function(){Wq(this,ax)},e}();function Hq(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function zq(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 c=o==null||!n?r:Hq(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Wq(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var jc,ol,ox,sx="\0_ec_inner",Vq=1,QE=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 rr(a),this._locale=new rr(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=cx(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,cx(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"?ox(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&&O(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=Ue(),u=n&&n.replaceMergeMainTypeMap;Rq(this),O(r,function(f,d){f!=null&&(xt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Qe(f):st(i[d],f,!0))}),u&&u.each(function(f,d){xt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),xt.topologicalTravel(s,xt.getAllClassMainTypes(),c,this);function c(f){var d=$q(this,f,cr(r[f])),h=a.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Tj(h,d,v);Ij(p,f,xt),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;O(p,function(b,x){var w=b.existing,S=b.newOption;if(!S)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=f==="series",M=xt.getClass(f,b.keyInfo.subType,!C);if(!M)return;if(f==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===M)w.name=b.keyInfo.name,w.mergeOption(S,this),w.optionUpdated(S,!1);else{var P=se({componentIndex:x},b.keyInfo);w=new M(S,this,this,P),se(w,P),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[f]=g,a.set(f,m),o.set(f,y),f==="series"&&jc(this)}this._seriesIndices||jc(this)},t.prototype.getOption=function(){var r=Qe(this.option);return O(r,function(n,i){if(xt.hasClass(i)){for(var a=cr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Tu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[sx],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<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],O(cr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=lx("id",a,s):o!=null?l=lx("name",o,s):l=Vt(s,function(u){return!!u}),ux(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Vt(this._componentsMap.get(i),function(u){return!!u});return l(ux(o,r));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?Vt(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Ve(r)){var o=n,s=r;a.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=Te(r)?a.get(r):Ie(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Yn(r,null);return Vt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Vt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Vt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){ol(this),O(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){O(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){ol(this),O(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return O(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return ol(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){ol(this);var i=[];O(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Ue(i)},t.prototype.restoreData=function(r){jc(this);var n=this._componentsMap,i=[];n.each(function(a,o){xt.hasClass(o)&&i.push(o)}),xt.topologicalTravel(i,xt.getAllClassMainTypes(),function(a){O(n.get(a),function(o){o&&(a!=="series"||!Gq(o,r))&&o.restoreData()})})},t.internalField=function(){jc=function(r){var n=r._seriesIndices=[];O(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Ue(n)},ol=function(r){},ox=function(r,n){r.option={},r.option[sx]=Vq,r._componentsMap=Ue({series:[]}),r._componentsCount=Ue();var i=n.aria;Ie(i)&&i.enabled==null&&(i.enabled=!0),Uq(n,r._theme.option),st(n,Oq,!1),r._mergeOption(n,null)}}(),t}(rr);function Gq(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function Uq(e,t){var r=e.color&&!e.colorLayer;O(t,function(n,i){i==="colorLayer"&&r||xt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?st(e[i],n,!1):Qe(n):e[i]==null&&(e[i]=n))})}function lx(e,t,r){if(ge(t)){var n=Ue();return O(t,function(a){if(a!=null){var o=Yn(a,null);o!=null&&n.set(a,!0)}}),Vt(r,function(a){return a&&n.get(a[e])})}else{var i=Yn(t,null);return Vt(r,function(a){return a&&i!=null&&a[e]===i})}}function ux(e,t){return t.hasOwnProperty("subType")?Vt(e,function(r){return r&&r.subType===t.subType}):e}function cx(e){var t=Ue();return e&&O(cr(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Jn(QE,T0);const JE=QE;var jq=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Yq=function(){function e(t){O(jq,function(r){this[r]=_t(t[r],t)},this)}return e}();const eP=Yq;var Uv={},qq=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];O(Uv,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){O(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Uv[t]=r},e.get=function(t){return Uv[t]},e}();const M0=qq;var Kq=/^(min|max)?(.+)$/,Xq=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(O(cr(t.series),function(o){o&&o.data&&zr(o.data)&&xg(o.data)}),O(cr(t.dataset),function(o){o&&o.source&&zr(o.source)&&xg(o.source)})),t=Qe(t);var i=this._optionBackup,a=Zq(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Qe(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=Qe(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)Qq(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!eK(o,this._currentMediaIndices)&&(s=Re(o,function(c){return Qe(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},e}();function Zq(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&ge(u)&&O(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),d(a),O(l,function(h){return d(h)}),O(n,function(h){return d(h.option)});function d(h){O(t,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Qq(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return O(e,function(a,o){var s=o.match(Kq);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Jq(n[u],a,l)||(i=!1)}}),i}function Jq(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function eK(e,t){return e.join(",")===t.join(",")}const tK=Xq;var hn=O,Iu=Ie,fx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jv(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=fx.length;r<n;r++){var i=fx[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?st(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?st(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function er(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,dt(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Ml(e){er(e,"itemStyle"),er(e,"lineStyle"),er(e,"areaStyle"),er(e,"label"),er(e,"labelLine"),er(e,"upperLabel"),er(e,"edgeLabel")}function Dt(e,t){var r=Iu(e)&&e[t],n=Iu(r)&&r.textStyle;if(n)for(var i=0,a=hw.length;i<a;i++){var o=hw[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Yr(e){e&&(Ml(e),Dt(e,"label"),e.emphasis&&Dt(e.emphasis,"label"))}function rK(e){if(Iu(e)){jv(e),Ml(e),Dt(e,"label"),Dt(e,"upperLabel"),Dt(e,"edgeLabel"),e.emphasis&&(Dt(e.emphasis,"label"),Dt(e.emphasis,"upperLabel"),Dt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(jv(t),Yr(t));var r=e.markLine;r&&(jv(r),Yr(r));var n=e.markArea;n&&Yr(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!zr(a))for(var o=0;o<a.length;o++)Yr(a[o]);O(e.categories,function(u){Ml(u)})}if(i&&!zr(i))for(var o=0;o<i.length;o++)Yr(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Yr(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)ge(l[o])?(Yr(l[o][0]),Yr(l[o][1])):Yr(l[o]);e.type==="gauge"?(Dt(e,"axisLabel"),Dt(e,"title"),Dt(e,"detail")):e.type==="treemap"?(er(e.breadcrumb,"itemStyle"),O(e.levels,function(u){Ml(u)})):e.type==="tree"&&Ml(e.leaves)}}function si(e){return ge(e)?e:e?[e]:[]}function dx(e){return(ge(e)?e[0]:e)||{}}function nK(e,t){hn(si(e.series),function(n){Iu(n)&&rK(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),hn(r,function(n){hn(si(e[n]),function(i){i&&(Dt(i,"axisLabel"),Dt(i.axisPointer,"label"))})}),hn(si(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Dt(i,"axisLabel"),Dt(i&&i.axisPointer,"label")}),hn(si(e.calendar),function(n){er(n,"itemStyle"),Dt(n,"dayLabel"),Dt(n,"monthLabel"),Dt(n,"yearLabel")}),hn(si(e.radar),function(n){Dt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),hn(si(e.geo),function(n){Iu(n)&&(Yr(n),hn(si(n.regions),function(i){Yr(i)}))}),hn(si(e.timeline),function(n){Yr(n),er(n,"label"),er(n,"itemStyle"),er(n,"controlStyle",!0);var i=n.data;ge(i)&&O(i,function(a){Ie(a)&&(er(a,"label"),er(a,"itemStyle"))})}),hn(si(e.toolbox),function(n){er(n,"iconStyle"),hn(n.feature,function(i){er(i,"iconStyle")})}),Dt(dx(e.axisPointer),"label"),Dt(dx(e.tooltip).axisPointer,"label")}function iK(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function aK(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function hx(e){e&&O(oK,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var oK=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],sK=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Yv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function sl(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Yv.length;r++){var n=Yv[r][1],i=Yv[r][0];t[n]!=null&&(t[i]=t[n])}}function vx(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function px(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function lK(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function tP(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&tP(e[r].children,t)}function rP(e,t){nK(e,t),e.series=cr(e.series),O(e.series,function(r){if(Ie(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),vx(r.label);var i=r.data;if(i&&!zr(i))for(var a=0;a<i.length;a++)vx(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=iK(r,"pointer.color");o!=null&&aK(r,"itemStyle.color",o)}else if(n==="bar"){sl(r),sl(r.backgroundStyle),sl(r.emphasis);var i=r.data;if(i&&!zr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(sl(i[a]),sl(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),px(r),tP(r.data,px)}else n==="graph"||n==="sankey"?lK(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&dt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),hx(r)}}),e.dataRange&&(e.visualMap=e.dataRange),O(sK,function(r){var n=e[r];n&&(ge(n)||(n=[n]),O(n,function(i){hx(i)}))})}function uK(e){var t=Ue();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(cK)}function cK(e){O(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return i;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=r-1;g>=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=_j(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var Ch=function(){function e(t){this.data=t.data||(t.sourceFormat===ti?{}:[]),this.sourceFormat=t.sourceFormat||qE,this.seriesLayoutBy=t.seriesLayoutBy||pi,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;n<r.length;n++){var i=r[n];i.type==null&&XE(this,n)===Ut.Must&&(i.type="ordinal")}}return e}();function A0(e){return e instanceof Ch}function rm(e,t,r){r=r||nP(e);var n=t.seriesLayoutBy,i=dK(e,r,n,t.sourceHeader,t.dimensions),a=new Ch({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Qe(t)});return a}function E0(e){return new Ch({data:e,sourceFormat:zr(e)?Ji:dn})}function fK(e){return new Ch({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Qe(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function nP(e){var t=qE;if(zr(e))t=Ji;else if(ge(e)){e.length===0&&(t=Lr);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(ge(i)){t=Lr;break}else if(Ie(i)){t=In;break}}}}else if(Ie(e)){for(var a in e)if(Ps(e,a)&&Er(e[a])){t=ti;break}}return t}function dK(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:gx(i),startIndex:o,dimensionsDetectedCount:a};if(t===Lr){var s=e;n==="auto"||n==null?mx(function(u){u!=null&&u!=="-"&&(Te(u)?o==null&&(o=1):o=0)},r,s,10):o=bt(n)?n:n?1:0,!i&&o===1&&(i=[],mx(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Vs?s.length:s[0]?s[0].length:null}else if(t===In)i||(i=hK(e));else if(t===ti)i||(i=[],O(e,function(u,c){i.push(c)}));else if(t===dn){var l=rc(e[0]);a=ge(l)&&l.length||1}return{startIndex:o,dimensionsDefine:gx(i),dimensionsDetectedCount:a}}function hK(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r){var n=[];return O(r,function(i,a){n.push(a)}),n}}function gx(e){if(e){var t=Ue();return Re(e,function(r,n){r=Ie(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function mx(e,t,r,n){if(t===Vs)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function iP(e){var t=e.sourceFormat;return t===In||t===ti}var ka,Na,Fa,yx,_x,aP=function(){function e(t,r){var n=A0(t)?t:E0(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Ji&&(this._offset=0,this._dimSize=r,this._data=i),_x(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;_x=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=yx[P0(u,c)];if(se(o,h),u===Ji)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=oP(u,c);o.getItem=_t(v,null,s,f,d);var p=sP(u,c);o.count=_t(p,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[d],y=0;y<g;y++){var _=c[y*f+d];m[o+y]=_,_<v&&(v=_),_>p&&(p=_)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};yx=(t={},t[Lr+"_"+pi]={pure:!0,appendData:a},t[Lr+"_"+Vs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[In]={pure:!0,appendData:a},t[ti]={pure:!0,appendData:function(o){var s=this._data;O(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[dn]={appendData:a},t[Ji]={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<o.length;s++)this._data.push(o[s])}}(),e}(),bx=function(e,t,r,n){return e[n]},vK=(ka={},ka[Lr+"_"+pi]=function(e,t,r,n){return e[n+t]},ka[Lr+"_"+Vs]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ka[In]=bx,ka[ti]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},ka[dn]=bx,ka);function oP(e,t){var r=vK[P0(e,t)];return r}var xx=function(e,t,r){return e.length},pK=(Na={},Na[Lr+"_"+pi]=function(e,t,r){return Math.max(0,e.length-t)},Na[Lr+"_"+Vs]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Na[In]=xx,Na[ti]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},Na[dn]=xx,Na);function sP(e,t){var r=pK[P0(e,t)];return r}var qv=function(e,t,r){return e[t]},gK=(Fa={},Fa[Lr]=qv,Fa[In]=function(e,t,r){return e[r]},Fa[ti]=qv,Fa[dn]=function(e,t,r){var n=rc(e);return n instanceof Array?n[t]:n},Fa[Ji]=qv,Fa);function lP(e){var t=gK[e];return t}function P0(e,t){return e===Lr?e+"_"+t:e}function Is(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return lP(a)(n,o,s)}else{var l=n;return a===dn&&(l=rc(n)),l}}}}var mK=/\{@(.+?)\}/g,yK=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&ge(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Ve(a))return l.status=r,l.dimensionIndex=i,a(l);if(Te(a)){var c=UE(a,l);return c.replace(mK,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=Is(s,t,v);if(o&&ge(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Is(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function Sx(e){var t,r;return Ie(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Zl(e){return new _K(e)}var _K=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=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=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&&(f||h<v)){var p=this._progress;if(ge(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,l,u);else this._doProgress(p,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){Cx.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Cx.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),ge(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),Cx=function(){var e,t,r,n,i,a={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function Vf(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!bt(e)&&e!=null&&e!=="-"&&(e=+wi(e)),e==null||e===""?NaN:+e)}Ue({number:function(e){return parseFloat(e)},time:function(e){return+wi(e)},trim:function(e){return Te(e)?Vn(e):e}});var bK=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=bt(t)?t:yd(t),i=bt(r)?r:yd(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Te(t),l=Te(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),wK=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 Vf(t,r)},e}();function xK(e,t){var r=new wK,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==pi&&br(o);var s=[],l={},u=e.dimensionsDefine;if(u)O(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Ps(l,m)&&br(_),l[m]=y}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=oP(i,pi);t.__isBuiltIn&&(r.getRawDataItem=function(p){return f(n,a,s,p)},r.getRawData=_t(SK,null,e)),r.cloneRawData=_t(CK,null,e);var d=sP(i,pi);r.count=_t(d,null,n,a,s);var h=lP(i);r.retrieveValue=function(p,g){var m=f(n,a,s,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=_t(TK,null,s,l),r.cloneAllDimensionInfo=_t(MK,null,s),r}function SK(e){var t=e.sourceFormat;if(!L0(t)){var r="";br(r)}return e.data}function CK(e){var t=e.sourceFormat,r=e.data;if(!L0(t)){var n="";br(n)}if(t===Lr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===In){for(var i=[],a=0,o=r.length;a<o;a++)i.push(se({},r[a]));return i}}function TK(e,t,r){if(r!=null){if(bt(r)||!isNaN(r)&&!Ps(t,r))return e[r];if(Ps(t,r))return t[r]}}function MK(e){return Qe(e)}var uP=Ue();function AK(e){e=Qe(e);var t=e.type,r="";t||br(r);var n=t.split(":");n.length!==2&&br(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,uP.set(t,e)}function EK(e,t,r){var n=cr(e),i=n.length,a="";i||br(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=PK(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function PK(e,t,r,n){var i="";t.length||br(i),Ie(e)||br(i);var a=e.type,o=uP.get(a);o||br(i);var s=Re(t,function(u){return xK(u,o)}),l=cr(o.transform({upstream:s[0],upstreamList:s,config:Qe(e.config)}));return Re(l,function(u,c){var f="";Ie(u)||br(f),u.data||br(f);var d=nP(u.data);L0(d)||br(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:pi,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:pi,sourceHeader:0,dimensions:u.dimensions};return rm(u.data,h,null)})}function L0(e){return e===Lr||e===In}var Th="undefined",LK=typeof Uint32Array===Th?Array:Uint32Array,DK=typeof Uint16Array===Th?Array:Uint16Array,cP=typeof Int32Array===Th?Array:Int32Array,Tx=typeof Float64Array===Th?Array:Float64Array,fP={float:Tx,int:cP,ordinal:Array,number:Array,time:Tx},Kv;function ll(e){return e>65535?LK:DK}function Wo(){return[1/0,-1/0]}function IK(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Mx(e,t,r,n,i){var a=fP[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var nm=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ue()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Kv[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],iP(i),this._dimensions=Re(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new fP[r||"float"](this._rawCount),this._rawExtent[a]=Wo(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Wo());for(var l=a[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var c=i[u];Mx(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<a;v++){var c=i[v],p=Kv.arrayRows.call(this,t[h]||f,c.property,h,v);n[v][d]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[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=Re(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Wo()),Mx(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],h=t;h<r;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var p=a[v],g=this._dimValueGetter(d,u[v],h,v);p[h]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[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<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)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,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=r-a[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=c))}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<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=ll(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=ll(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<i;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var p=f[c][v];h=r(p,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=Tt(t),a=i.length;if(!a)return this;var o=r.count(),s=ll(r._rawCount),l=new s(o),u=0,c=i[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=f&&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<n;m++){var y=g[m],w=_[m];(y>=f&&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<o;m++){var S=r.getRawIndex(m),y=h[i[0]][S];(y>=f&&y<=d||isNaN(y))&&(l[u++]=S)}else for(var m=0;m<o;m++){for(var C=!0,S=r.getRawIndex(m),M=0;M<a;M++){var P=i[M],y=h[P][S];(y<t[P][0]||y>t[P][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=Wo();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)l[h]=i[r[h]][d];l[o]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var c=0;c<v.length;c++){var p=r[c],g=v[c],m=u[p],y=i[p];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[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),c,f,d,h=new(ll(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var b=this.getRawIndex(_),x=a[b];isNaN(x)||(y+=x)}y/=g-p;var w=v,S=Math.min(v+l,o),C=v-1,M=a[u];c=-1,d=w;for(var P=-1,A=0,_=w;_<S;_++){var b=this.getRawIndex(_),x=a[b];if(isNaN(x)){A++,P<0&&(P=b);continue}f=Math.abs((C-m)*(x-M)-(C-_)*(y-M)),f>c&&(c=f,d=b)}A>0&&A<S-w&&(h[s++]=Math.min(P,d),d=Math.max(P,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=a._rawExtent[t]=Wo(),d=new(ll(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(v+i(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[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();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Wo();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}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<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&oa(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?IK(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Qe(this._extent),t._rawExtent=Qe(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=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 Vf(r[a],this._dimensions[a])}Kv={arrayRows:t,objectRows:function(r,n,i,a){return Vf(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Vf(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),OK=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(Yc(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=zr(s)?Ji:dn,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=qe(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=qe(f.sourceHeader,d.sourceHeader),p=qe(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[rm(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=[rm(_,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&&Ax(a)}var o,s=[],l=[];return O(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&Ax(f),s.push(c),l.push(u._getVersionSign())}),n?o=EK(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[fK(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Yc(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new nm,s.initData(new aP(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Yc(t)){var r=C0(t);return r?[r.getSourceManager()]:[]}else return Re(Fq(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Yc(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function Yc(e){return e.mainType==="series"}function Ax(e){throw new Error(e)}var dP="line-height:1";function hP(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Xr(n+"")+"px;color:"+Xr(r)+";font-weight:"+Xr(i+""),valueStyle:"font-size:"+Xr(o+"")+"px;color:"+Xr(a)+";font-weight:"+Xr(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var RK=[0,10,20,30],kK=["",`
+*/var Bf={},bP={};function fj(e){delete bP[e]}function dj(e){if(!e)return!1;if(typeof e=="string")return vd(e,1)<Ng;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=vd(t[i].color,1);return r/=n,r<Ng}return!1}var hj=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new E9,o=n.renderer||"canvas";Bf[o]||(o=Tt(Bf)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Bf[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Ge.node&&!Ge.worker&&!l?new tj(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?Ge.touchEventsSupported:!!c,d=44,h;f&&(h=qe(n.pointerSize,d)),this.handler=new C9(a,s,u,s.root,h),this.animation=new Y9({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=dj(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=ts();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=ts();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(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;r<t.length;r++)t[r]instanceof cn&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,fj(this.id)},e}();function uw(e,t){var r=new hj(UA(),e,t);return bP[r.id]=r,r}function vj(e,t){Bf[e]=t}var cw=1e-4,wP=20;function pj(e){return e.replace(/^\s+|\s+$/g,"")}function $g(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){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 gt(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)?pj(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function kt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),wP),e=(+e).toFixed(t),r?e:+e}function hi(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 gj(e)}function gj(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 mj(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 yj(e,t){var r=oa(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Re(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Re(i,function(h){return Math.floor(h)}),s=oa(o,function(h,v){return h+v},0),l=Re(i,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Re(o,function(h){return h/n})}function _j(e,t){var r=Math.max(hi(e),hi(t)),n=e+t;return r>wP?n:kt(n,r)}function SP(e){var t=Math.PI*2;return(e%t+t)%t}function md(e){return e>-cw&&e<cw}var bj=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function wi(e){if(e instanceof Date)return e;if(Te(e)){var t=bj.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function wj(e){return Math.pow(10,e0(e))}function e0(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function xP(e,t){var r=e0(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 yd(e){var t=parseFloat(e);return t==e&&(t!==0||!Te(e)||e.indexOf("x")<=0)?t:NaN}function Sj(e){return!isNaN(yd(e))}function CP(){return Math.round(Math.random()*9)}function TP(e,t){return t===0?e:TP(t,e%t)}function fw(e,t){return e==null?t:t==null?e:e*t/TP(e,t)}function br(e){throw new Error(e)}function dw(e,t,r){return(t-e)*r+e}var MP="series\0",xj="\0_ec_\0";function cr(e){return e instanceof Array?e:e==null?[]:[e]}function Hg(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<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var hw=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function rc(e){return Ie(e)&&!ge(e)&&!(e instanceof Date)?e.value:e}function Cj(e){return Ie(e)&&!(e instanceof Array)}function Tj(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Ue();O(t,function(l,u){if(!Ie(l)){t[u]=null;return}});var s=Mj(e,o,r);return(n||i)&&Aj(s,e,o,t),n&&Pj(s,t),n||i?Ej(s,t,i):a&&Lj(s,t),Dj(s),s}function Mj(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||Tu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Aj(e,t,r,n){O(n,function(i,a){if(!(!i||i.id==null)){var o=Ul(i.id),s=r.get(o);if(s!=null){var l=e[s];bi(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function Pj(e,t){O(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!Tu(r)&&!Tu(a)&&AP("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function Ej(e,t,r){O(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||Tu(i.existing)||i.existing&&n.id!=null&&!AP("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function Lj(e,t){O(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Dj(e){var t=Ue();O(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),O(e,function(r){var n=r.newOption;bi(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),O(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Ie(a)){if(o.name=a.name!=null?Ul(a.name):i?i.name:MP+n,i)o.id=Ul(i.id);else if(a.id!=null)o.id=Ul(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function AP(e,t,r){var n=Yn(t[e],null),i=Yn(r[e],null);return n!=null&&i!=null&&n===i}function Ul(e){return Yn(e,"")}function Yn(e,t){return e==null?t:Te(e)?e:bt(e)||wg(e)?e+"":t}function t0(e){var t=e.name;return!!(t&&t.indexOf(MP))}function Tu(e){return e&&e.id!=null&&Ul(e.id).indexOf(xj)===0}function Ij(e,t,r){O(e,function(n){var i=n.newOption;Ie(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Oj(t,i,n.existing,r))})}function Oj(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function nc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ge(t.dataIndex)?Re(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ge(t.name)?Re(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Pt(){var e="__ec_inner_"+Rj++;return function(t){return t[e]||(t[e]={})}}var Rj=CP();function Cv(e,t,r){var n=r0(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=ic(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function r0(e,t){var r;if(Te(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Ue(),a={},o=!1;return O(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&ot(t.includeMainTypes,c)<0)){o=o||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Cn={useDefault:!0,enableAll:!1,enableNone:!1};function ic(e,t,r,n){n=n||Cn;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(bi(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(bi(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function PP(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function kj(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Nj(e){return e==="auto"?Ge.domSupported?"html":"richText":e||"html"}function Fj(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(bt(n)){var o=dw(r||0,n,i);return kt(o,a?Math.max(hi(r||0),hi(n)):t)}else{if(Te(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],o=dw(h,v,i);s[f]=kt(o,a?Math.max(hi(h),hi(v)):t)}}return s}}var Bj=".",xa="___EC__COMPONENT__CONTAINER___",EP="___EC__EXTENDED_CLASS___";function Gn(e){var t={main:"",sub:""};if(e){var r=e.split(Bj);t.main=r[0]||"",t.sub=r[1]||""}return t}function $j(e){bi(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Hj(e){return!!(e&&e[EP])}function n0(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return zj(n)?i=function(a){pe(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},$U(i,this)),se(i.prototype,r),i[EP]=!0,i.extend=this.extend,i.superCall=Gj,i.superApply=Uj,i.superClass=n,i}}function zj(e){return Ve(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function LP(e,t){e.extend=t.extend}var Wj=Math.round(Math.random()*10);function Vj(e){var t=["__\0is_clz",Wj++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Gj(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Uj(e,t,r){return this.superClass.prototype[t].apply(e,r)}function ch(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){$j(i),n.prototype.type=i;var a=Gn(i);if(!a.sub)t[a.main]=n;else if(a.sub!==xa){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[xa]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=Gn(n),a=[],o=t[i.main];return o&&o[xa]?O(o,function(s,l){l!==xa&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Gn(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return O(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Gn(n),a=t[i.main];return a&&a[xa]};function r(n){var i=t[n.main];return(!i||!i[xa])&&(i=t[n.main]={},i[xa]=!0),i}}function Mu(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&ot(i,l)>=0||a&&ot(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var jj=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Yj=Mu(jj),qj=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Yj(this,t,r)},e}(),zg=new tc(50);function Kj(e){if(typeof e=="string"){var t=zg.get(e);return t&&t.image}else return e}function DP(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=zg.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!fh(t)&&a.pending.push(o)):(t=Mo.loadImage(e,vw,vw),t.__zrImageSrc=e,zg.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function vw(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function fh(e){return e&&e.width&&e.height}var Tv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Xj(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
+`);i=IP(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=OP(a[o],i);return a.join(`
+`)}function IP(e,t,r,n){n=n||{};var i=se({},n);i.font=t,r=qe(r,"..."),i.maxIterations=qe(n.maxIterations,2);var a=i.minChar=qe(n.minChar,0);i.cnCharWidth=$r("国",t);var o=i.ascCharWidth=$r("a",t);i.placeholder=qe(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=$r(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 OP(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=$r(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?Zj(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=$r(e,n)}return e===""&&(e=t.placeholder),e}function Zj(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function Qj(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=Qy(i),s=qe(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?RP(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
+`):[];var d=f.length*s,h=qe(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var p=IP(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=OP(f[g],p);for(var m=h,y=0,g=0;g<f.length;g++)y=Math.max($r(f[g],i),y);c==null&&(c=y);var _=y;return n&&(m+=n[0]+n[2],_+=n[1]+n[3],c+=n[1]+n[3]),l&&(_=c),{lines:f,height:h,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:d,width:c}}var Jj=function(){function e(){}return e}(),pw=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),eY=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function tY(e,t){var r=new eY;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Tv.lastIndex=0,l;(l=Tv.exec(e))!=null;){var u=l.index;u>s&&Mv(r,e.substring(s,u),t,o),Mv(r,l[2],t,o,l[1]),s=Tv.lastIndex}s<e.length&&Mv(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=a==="truncate",p=t.lineOverflow==="truncate";function g(F,R,j){F.width=R,F.lineHeight=j,f+=j,d=Math.max(d,R)}e:for(var m=0;m<r.lines.length;m++){for(var y=r.lines[m],_=0,b=0,S=0;S<y.tokens.length;S++){var w=y.tokens[S],x=w.styleName&&t.rich[w.styleName]||{},C=w.textPadding=x.padding,M=C?C[1]+C[3]:0,E=w.font=x.font||t.font;w.contentHeight=Qy(E);var A=qe(x.height,w.contentHeight);if(w.innerHeight=A,C&&(A+=C[0]+C[2]),w.height=A,w.lineHeight=zl(x.lineHeight,t.lineHeight,A),w.align=x&&x.align||t.align,w.verticalAlign=x&&x.verticalAlign||"middle",p&&i!=null&&f+w.lineHeight>i){S>0?(y.tokens=y.tokens.slice(0,S),g(y,b,_),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var T=x.width,D=T==null||T==="auto";if(typeof T=="string"&&T.charAt(T.length-1)==="%")w.percentWidth=T,c.push(w),w.contentWidth=$r(w.text,E);else{if(D){var N=x.backgroundColor,H=N&&N.image;H&&(H=Kj(H),fh(H)&&(w.width=Math.max(w.width,H.width*A/H.height)))}var $=v&&n!=null?n-b:null;$!=null&&$<w.width?!D||$<M?(w.text="",w.width=w.contentWidth=0):(w.text=Xj(w.text,$-M,E,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=$r(w.text,E)):w.contentWidth=$r(w.text,E)}w.width+=M,b+=w.width,x&&(_=Math.max(_,w.lineHeight))}g(y,b,_)}r.outerWidth=r.width=qe(n,d),r.outerHeight=r.height=qe(i,f),r.contentHeight=f,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var m=0;m<c.length;m++){var w=c[m],G=w.percentWidth;w.width=parseInt(G,10)/100*r.width}return r}function Mv(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=sa(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
+`),u=!0),n.accumWidth=v}else{var p=RP(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(`
+`);for(var g=0;g<c.length;g++){var m=c[g],y=new Jj;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=f?f[g]:$r(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new pw)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=y:(m||!b||a)&&_.push(y)}else s.push(new pw([y]))}}function rY(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var nY=oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function iY(e){return rY(e)?!!nY[e]:!0}function RP(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
+`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=$r(d,t),v=n?!1:!iY(d);if(a.length?c+h>r:i+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=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(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var Wg="__zr_style_"+Math.round(Math.random()*10),lo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},dh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};lo[Wg]=!0;var gw=["z","z2","invisible"],aY=["invisible"],oY=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Tt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&sY(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new et(0,0,0,0)),n?et.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new et(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:se(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=wl,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&wl)},t.prototype.styleUpdated=function(){this.__dirty&=~wl},t.prototype.createStyle=function(r){return sh(lo,r)},t.prototype.useStyle=function(r){r[Wg]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Wg]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,gw)},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.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Tt(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=Tt(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?aY:gw,d=0;d<p.length;d++){var h=p[d];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return se(r,n),r},t.prototype.getAnimationStyleProps=function(){return dh},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Rr|wl}(),t}(yP),Av=new et(0,0,0,0),Pv=new et(0,0,0,0);function sY(e,t,r){return Av.copy(e.getBoundingRect()),e.transform&&Av.applyTransform(e.transform),Pv.width=t,Pv.height=r,!Av.intersect(Pv)}const ac=oY;var Qr=Math.min,Jr=Math.max,Ev=Math.sin,Lv=Math.cos,Ca=Math.PI*2,Nc=Hs(),Fc=Hs(),Bc=Hs();function mw(e,t,r,n,i,a){i[0]=Qr(e,r),i[1]=Qr(t,n),a[0]=Jr(e,r),a[1]=Jr(t,n)}var yw=[],_w=[];function lY(e,t,r,n,i,a,o,s,l,u){var c=sP,f=jt,d=c(e,r,i,o,yw);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,i,o,yw[h]);l[0]=Qr(v,l[0]),u[0]=Jr(v,u[0])}d=c(t,n,a,s,_w);for(var h=0;h<d;h++){var p=f(t,n,a,s,_w[h]);l[1]=Qr(p,l[1]),u[1]=Jr(p,u[1])}l[0]=Qr(e,l[0]),u[0]=Jr(e,u[0]),l[0]=Qr(o,l[0]),u[0]=Jr(o,u[0]),l[1]=Qr(t,l[1]),u[1]=Jr(t,u[1]),l[1]=Qr(s,l[1]),u[1]=Jr(s,u[1])}function uY(e,t,r,n,i,a,o,s){var l=uP,u=Jt,c=Jr(Qr(l(e,r,i),1),0),f=Jr(Qr(l(t,n,a),1),0),d=u(e,r,i,c),h=u(t,n,a,f);o[0]=Qr(e,i,d),o[1]=Qr(t,a,h),s[0]=Jr(e,i,d),s[1]=Jr(t,a,h)}function cY(e,t,r,n,i,a,o,s,l){var u=Jo,c=es,f=Math.abs(i-a);if(f%Ca<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Nc[0]=Lv(i)*r+e,Nc[1]=Ev(i)*n+t,Fc[0]=Lv(a)*r+e,Fc[1]=Ev(a)*n+t,u(s,Nc,Fc),c(l,Nc,Fc),i=i%Ca,i<0&&(i=i+Ca),a=a%Ca,a<0&&(a=a+Ca),i>a&&!o?a+=Ca:i<a&&o&&(i+=Ca),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Bc[0]=Lv(h)*r+e,Bc[1]=Ev(h)*n+t,u(s,Bc,s),c(l,Bc,l))}var at={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ta=[],Ma=[],Rn=[],Oi=[],kn=[],Nn=[],Dv=Math.min,Iv=Math.max,Aa=Math.cos,Pa=Math.sin,oi=Math.abs,Vg=Math.PI,zi=Vg*2,Ov=typeof Float32Array<"u",nl=[];function Rv(e){var t=Math.round(e/Vg*1e8)/1e8;return t%2*Vg}function fY(e,t){var r=Rv(e[0]);r<0&&(r+=zi);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=zi?i=r+zi:t&&r-i>=zi?i=r-zi:!t&&r>i?i=r+(zi-Rv(r-i)):t&&r<i&&(i=r-(zi-Rv(i-r))),e[0]=r,e[1]=i}var dY=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=oi(n/pd/t)||0,this._uy=oi(n/pd/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(at.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=oi(t-this._xi),i=oi(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(at.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(at.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(at.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(),nl[0]=i,nl[1]=a,fY(nl,o),i=nl[0],a=nl[1];var s=a-i;return this.addData(at.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Aa(a)*n+t,this._yi=Pa(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(at.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(at.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)&&Ov&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Ov&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(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;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ov&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Rn[0]=Rn[1]=kn[0]=kn[1]=Number.MAX_VALUE,Oi[0]=Oi[1]=Nn[0]=Nn[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case at.M:r=i=t[o++],n=a=t[o++],kn[0]=i,kn[1]=a,Nn[0]=i,Nn[1]=a;break;case at.L:mw(r,n,t[o],t[o+1],kn,Nn),r=t[o++],n=t[o++];break;case at.C:lY(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],kn,Nn),r=t[o++],n=t[o++];break;case at.Q:uY(r,n,t[o++],t[o++],t[o],t[o+1],kn,Nn),r=t[o++],n=t[o++];break;case at.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var p=!t[o++];l&&(i=Aa(h)*f+u,a=Pa(h)*d+c),cY(u,c,f,d,h,v,p,kn,Nn),r=Aa(v)*f+u,n=Pa(v)*d+c;break;case at.R:i=r=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];mw(i,a,i+g,a+m,kn,Nn);break;case at.Z:r=i,n=a;break}Jo(Rn,Rn,kn),es(Oi,Oi,Nn)}return o===0&&(Rn[0]=Rn[1]=Oi[0]=Oi[1]=0),new et(Rn[0],Rn[1],Oi[0]-Rn[0],Oi[1]-Rn[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(a=t[d],o=t[d+1],s=a,l=o);var p=-1;switch(h){case at.M:a=s=t[d++],o=l=t[d++];break;case at.L:{var g=t[d++],m=t[d++],y=g-a,_=m-o;(oi(y)>n||oi(_)>i||d===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case at.C:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++],w=t[d++],x=t[d++];p=L9(a,o,b,S,g,m,w,x,10),a=w,o=x;break}case at.Q:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++];p=I9(a,o,b,S,g,m,10),a=g,o=m;break}case at.A:var C=t[d++],M=t[d++],E=t[d++],A=t[d++],T=t[d++],D=t[d++],N=D+T;d+=1,t[d++],v&&(s=Aa(T)*E+C,l=Pa(T)*A+M),p=Iv(E,A)*Dv(zi,Math.abs(D)),a=Aa(N)*E+C,o=Pa(N)*A+M;break;case at.R:{s=a=t[d++],l=o=t[d++];var H=t[d++],$=t[d++];p=H*2+$*2;break}case at.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,v,p,g=0,m=0,y,_=0,b,S;if(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y))return;e:for(var w=0;w<o;){var x=n[w++],C=w===1;switch(C&&(u=n[w],c=n[w+1],s=u,l=c),x!==at.L&&_>0&&(t.lineTo(b,S),_=0),x){case at.M:s=u=n[w++],l=c=n[w++],t.moveTo(u,c);break;case at.L:{f=n[w++],d=n[w++];var M=oi(f-u),E=oi(d-c);if(M>i||E>a){if(h){var A=v[m++];if(g+A>y){var T=(y-g)/A;t.lineTo(u*(1-T)+f*T,c*(1-T)+d*T);break e}g+=A}t.lineTo(f,d),u=f,c=d,_=0}else{var D=M*M+E*E;D>_&&(b=f,S=d,_=D)}break}case at.C:{var N=n[w++],H=n[w++],$=n[w++],G=n[w++],F=n[w++],R=n[w++];if(h){var A=v[m++];if(g+A>y){var T=(y-g)/A;dd(u,N,$,F,T,Ta),dd(c,H,G,R,T,Ma),t.bezierCurveTo(Ta[1],Ma[1],Ta[2],Ma[2],Ta[3],Ma[3]);break e}g+=A}t.bezierCurveTo(N,H,$,G,F,R),u=F,c=R;break}case at.Q:{var N=n[w++],H=n[w++],$=n[w++],G=n[w++];if(h){var A=v[m++];if(g+A>y){var T=(y-g)/A;hd(u,N,$,T,Ta),hd(c,H,G,T,Ma),t.quadraticCurveTo(Ta[1],Ma[1],Ta[2],Ma[2]);break e}g+=A}t.quadraticCurveTo(N,H,$,G),u=$,c=G;break}case at.A:var j=n[w++],re=n[w++],oe=n[w++],ye=n[w++],Ae=n[w++],V=n[w++],Q=n[w++],W=!n[w++],q=oe>ye?oe:ye,le=oi(oe-ye)>.001,de=Ae+V,J=!1;if(h){var A=v[m++];g+A>y&&(de=Ae+V*(y-g)/A,J=!0),g+=A}if(le&&t.ellipse?t.ellipse(j,re,oe,ye,Q,Ae,de,W):t.arc(j,re,q,Ae,de,W),J)break e;C&&(s=Aa(Ae)*oe+j,l=Pa(Ae)*ye+re),u=Aa(de)*oe+j,c=Pa(de)*ye+re;break;case at.R:s=u=n[w],l=c=n[w+1],f=n[w++],d=n[w++];var L=n[w++],I=n[w++];if(h){var A=v[m++];if(g+A>y){var z=y-g;t.moveTo(f,d),t.lineTo(f+Dv(z,L),d),z-=L,z>0&&t.lineTo(f+L,d+Dv(z,I)),z-=I,z>0&&t.lineTo(f+Iv(L-z,0),d+I),z-=L,z>0&&t.lineTo(f,d+Iv(I-z,0));break e}g+=A}t.rect(f,d,L,I);break;case at.Z:if(h){var A=v[m++];if(g+A>y){var T=(y-g)/A;t.lineTo(u*(1-T)+s*T,c*(1-T)+l*T);break e}g+=A}t.closePath(),u=s,c=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=at,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const _o=dY;function Fo(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||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function hY(e,t,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>a+f&&c>s+f||c<t-f&&c<n-f&&c<a-f&&c<s-f||u>e+f&&u>r+f&&u>i+f&&u>o+f||u<e-f&&u<r-f&&u<i-f&&u<o-f)return!1;var d=lP(e,t,r,n,i,a,o,s,u,c,null);return d<=f/2}function vY(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var c=cP(e,t,r,n,i,a,s,l,null);return c<=u/2}var bw=Math.PI*2;function qi(e){return e%=bw,e<0&&(e+=bw),e}var il=Math.PI*2;function pY(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%il<1e-4)return!0;if(a){var f=n;n=qi(i),i=qi(f)}else n=qi(n),i=qi(i);n>i&&(i+=il);var d=Math.atan2(l,s);return d<0&&(d+=il),d>=n&&d<=i||d+il>=n&&d+il<=i}function Ea(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Ri=_o.CMD,La=Math.PI*2,gY=1e-4;function mY(e,t){return Math.abs(e-t)<gY}var or=[-1,-1,-1],Kr=[-1,-1];function yY(){var e=Kr[0];Kr[0]=Kr[1],Kr[1]=e}function _Y(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=oP(t,n,a,s,u,or);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=or[p],m=g===0||g===1?.5:1,y=jt(e,r,i,o,g);y<l||(d<0&&(d=sP(t,n,a,s,Kr),Kr[1]<Kr[0]&&d>1&&yY(),h=jt(t,n,a,s,Kr[0]),d>1&&(v=jt(t,n,a,s,Kr[1]))),d===2?g<Kr[0]?f+=h<t?m:-m:g<Kr[1]?f+=v<h?m:-m:f+=s<v?m:-m:g<Kr[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function bY(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=D9(t,n,a,s,or);if(l===0)return 0;var u=uP(t,n,a);if(u>=0&&u<=1){for(var c=0,f=Jt(t,n,a,u),d=0;d<l;d++){var h=or[d]===0||or[d]===1?.5:1,v=Jt(e,r,i,or[d]);v<o||(or[d]<u?c+=f<t?h:-h:c+=a<f?h:-h)}return c}else{var h=or[0]===0||or[0]===1?.5:1,v=Jt(e,r,i,or[0]);return v<o?0:a<t?h:-h}}function wY(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);or[0]=-l,or[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=La-1e-4){n=0,i=La;var c=a?1:-1;return o>=or[0]+e&&o<=or[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=La,i+=La);for(var d=0,h=0;h<2;h++){var v=or[h];if(v+e>o){var p=Math.atan2(s,v),c=a?1:-1;p<0&&(p=La+p),(p>=n&&p<=i||p+La>=n&&p+La<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function kP(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<o;){var p=a[v++],g=v===1;switch(p===Ri.M&&v>1&&(r||(s+=Ea(l,u,c,f,n,i))),g&&(l=a[v],u=a[v+1],c=l,f=u),p){case Ri.M:c=a[v++],f=a[v++],l=c,u=f;break;case Ri.L:if(r){if(Fo(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Ea(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ri.C:if(r){if(hY(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=_Y(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 Ri.Q:if(r){if(vY(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=bY(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ri.A:var m=a[v++],y=a[v++],_=a[v++],b=a[v++],S=a[v++],w=a[v++];v+=1;var x=!!(1-a[v++]);d=Math.cos(S)*_+m,h=Math.sin(S)*b+y,g?(c=d,f=h):s+=Ea(l,u,d,h,n,i);var C=(n-m)*b/_+m;if(r){if(pY(m,y,b,S,S+w,x,t,C,i))return!0}else s+=wY(m,y,b,S,S+w,x,C,i);l=Math.cos(S+w)*_+m,u=Math.sin(S+w)*b+y;break;case Ri.R:c=l=a[v++],f=u=a[v++];var M=a[v++],E=a[v++];if(d=c+M,h=f+E,r){if(Fo(c,f,d,f,t,n,i)||Fo(d,f,d,h,t,n,i)||Fo(d,h,c,h,t,n,i)||Fo(c,h,c,f,t,n,i))return!0}else s+=Ea(d,f,d,h,n,i),s+=Ea(c,h,c,f,n,i);break;case Ri.Z:if(r){if(Fo(l,u,c,f,t,n,i))return!0}else s+=Ea(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!mY(u,f)&&(s+=Ea(l,u,c,f,n,i)||0),s!==0}function SY(e,t,r){return kP(e,0,!1,t,r)}function xY(e,t,r,n){return kP(e,t,!0,r,n)}var NP=dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},lo),CY={style:dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},dh.style)},kv=Cu.concat(["invisible","culling","z","z2","zlevel","parent"]),TY=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<kv.length;++s)i[kv[s]]=this[kv[s]];i.__dirty|=Rr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Tt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?se(this.style,s):this.useStyle(s):o==="shape"?se(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Te(r)){var n=vd(r,0);return n>.5?Fg:n>.2?rj:Bg}else if(r)return Bg}return Fg},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Te(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=vd(r,0)<Ng;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Ko},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new _o(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>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&Ko)&&(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 c=this.strokeContainThreshold;u=Math.max(u,c??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)),xY(s,l/u,r,n)))return!0}if(this.hasFill())return SY(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ko,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:se(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ko)},t.prototype.createStyle=function(r){return sh(NP,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=se({},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=se({},i.shape),se(u,n.shape)):(u=se({},a?this.shape:i.shape),se(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=se({},this.shape);for(var c={},f=Tt(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return CY},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){pe(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Qe(r.style)},o.prototype.getDefaultShape=function(){return Qe(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Rr|wl|Ko}(),t}(ac);const ht=TY;var MY=dt({strokeFirst:!0,font:yo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},NP),FP=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return sh(MY,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=Zy(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}(ac);FP.prototype.type="tspan";const Gg=FP;var AY=dt({x:0,y:0},lo),PY={style:dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},dh.style)};function EY(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var BP=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return sh(AY,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=EY(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 PY},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new et(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ac);BP.prototype.type="image";const zs=BP;function LY(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),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+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,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 rs=Math.round;function $P(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&&(rs(n*2)===rs(i*2)&&(e.x1=e.x2=eo(n,s,!0)),rs(a*2)===rs(o*2)&&(e.y1=e.y2=eo(a,s,!0))),e}}function HP(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=eo(n,s,!0),e.y=eo(i,s,!0),e.width=Math.max(eo(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(eo(i+o,s,!1)-e.y,o===0?0:1)),e}}function eo(e,t,r){if(!t)return e;var n=rs(e*2);return(n+rs(t))%2===0?n/2:(n+(r?1:-1))/2}var DY=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),IY={},zP=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new DY},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=HP(IY,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?LY(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ht);zP.prototype.type="rect";const Ht=zP;var ww={fill:"#000"},Sw=2,OY={style:dt({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},dh.style)},WP=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ww,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;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,BY(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new et(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||ww},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return se(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=Tt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},se(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return OY},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||yo,i=r.padding,a=Ew(r),o=Qj(a,r),s=Nv(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=r.x||0,g=r.y||0,m=r.align||v.align||"left",y=r.verticalAlign||v.verticalAlign||"top",_=p,b=Xo(g,o.contentHeight,y);if(s||i){var S=xl(p,c,m),w=Xo(g,u,y);s&&this._renderBackground(r,r,S,w,c,u)}b+=h/2,i&&(_=Pw(p,m,i),y==="top"?b+=i[0]:y==="bottom"&&(b-=i[2]));for(var x=0,C=!1,M=Aw("fill"in r?r.fill:(C=!0,v.fill)),E=Mw("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(x=Sw,v.stroke):null),A=r.textShadowBlur>0,T=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),D=o.calculatedLineHeight,N=0;N<d.length;N++){var H=this._getOrCreateChild(Gg),$=H.createStyle();H.useStyle($),$.text=d[N],$.x=_,$.y=b,m&&($.textAlign=m),$.textBaseline="middle",$.opacity=r.opacity,$.strokeFirst=!0,A&&($.shadowBlur=r.textShadowBlur||0,$.shadowColor=r.textShadowColor||"transparent",$.shadowOffsetX=r.textShadowOffsetX||0,$.shadowOffsetY=r.textShadowOffsetY||0),$.stroke=E,$.fill=M,E&&($.lineWidth=r.lineWidth||x,$.lineDash=r.lineDash,$.lineDashOffset=r.lineDashOffset||0),$.font=n,Cw($,r),b+=h,T&&H.setBoundingRect(new et(xl($.x,r.width,$.textAlign),Xo($.y,D,$.textBaseline),f,D))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Ew(r),i=tY(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,v=xl(u,o,d),p=Xo(c,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var y=g+a;Nv(r)&&this._renderBackground(r,r,v,p,o,s);for(var _=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var S=i.lines[b],w=S.tokens,x=w.length,C=S.lineHeight,M=S.width,E=0,A=g,T=y,D=x-1,N=void 0;E<x&&(N=w[E],!N.align||N.align==="left");)this._placeToken(N,r,C,m,A,"left",_),M-=N.width,A+=N.width,E++;for(;D>=0&&(N=w[D],N.align==="right");)this._placeToken(N,r,C,m,T,"right",_),M-=N.width,T-=N.width,D--;for(A+=(a-(A-g)-(y-T)-M)/2;E<=D;)N=w[E],this._placeToken(N,r,C,m,A+N.width/2,"center",_),A+=N.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 c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&Nv(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=Pw(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Gg),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)),S=Mw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=Sw,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,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||yo,g.opacity=zl(u.opacity,n.opacity,1),Cw(g,u),S&&(g.lineWidth=zl(u.lineWidth,n.lineWidth,_),g.lineDash=qe(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=S),b&&(g.fill=b);var x=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new et(xl(g.x,x,g.textAlign),Xo(g.y,C,g.textBaseline),x,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&c){p=this._getOrCreateChild(Ht),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=qe(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(zs),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var y=p.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=qe(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=zl(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return FY(r)&&(n=[r.fontStyle,r.fontWeight,NY(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Vn(n)||r.textFont||r.font},t}(ac),RY={left:!0,right:1,center:1},kY={top:1,bottom:1,middle:1},xw=["fontStyle","fontWeight","fontSize","fontFamily"];function NY(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?zy+"px":e+"px"}function Cw(e,t){for(var r=0;r<xw.length;r++){var n=xw[r],i=t[n];i!=null&&(e[n]=i)}}function FY(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function BY(e){return Tw(e),O(e.rich,Tw),e}function Tw(e){if(e){e.font=WP.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||RY[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||kY[r]?r:"top";var n=e.padding;n&&(e.padding=jA(e.padding))}}function Mw(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Aw(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Pw(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Ew(e){var t=e.text;return t!=null&&(t+=""),t}function Nv(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const dr=WP;var ft=Pt(),$Y=function(e,t,r,n){if(n){var i=ft(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=ft(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},Lw=1,Dw={},VP=Pt(),i0=Pt(),GP=0,a0=1,o0=2,Xn=["emphasis","blur","select"],_d=["normal","emphasis","blur","select"],HY=10,zY=9,uo="highlight",$f="downplay",jl="select",Hf="unselect",Yl="toggleSelect";function Bo(e){return e!=null&&e!=="none"}var Iw=new tc(100);function Ow(e){if(Te(e)){var t=Iw.get(e);return t||(t=Q1(e,-.1),Iw.put(e,t)),t}else if(oh(e)){var r=se({},e);return r.colorStops=Re(e.colorStops,function(n){return{offset:n.offset,color:Q1(n.color,-.1)}}),r}return e}function hh(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function UP(e){hh(e,"emphasis",o0)}function jP(e){e.hoverState===o0&&hh(e,"normal",GP)}function s0(e){hh(e,"blur",a0)}function YP(e){e.hoverState===a0&&hh(e,"normal",GP)}function WY(e){e.selected=!0}function VY(e){e.selected=!1}function Rw(e,t,r){t(e,r)}function Ai(e,t,r){Rw(e,t,r),e.isGroup&&e.traverse(function(n){Rw(n,t,r)})}function GY(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function UY(e,t,r,n){var i=r&&ot(r,"select")>=0,a=!1;if(e instanceof ht){var o=VP(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Bo(s)||Bo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=se({},n),u=se({},u),u.fill=s):!Bo(u.fill)&&Bo(s)?(a=!0,n=se({},n),u=se({},u),u.fill=Ow(s)):!Bo(u.stroke)&&Bo(l)&&(a||(n=se({},n),u=se({},u)),u.stroke=Ow(l)),n.style=u}}if(n&&n.z2==null){a||(n=se({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??HY)}return n}function jY(e,t,r){if(r&&r.z2==null){r=se({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??zY)}return r}function YY(e,t,r){var n=ot(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:GY(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=se({},r),o=se({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Fv(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return UY(this,e,t,r);if(e==="blur")return YY(this,e,r);if(e==="select")return jY(this,e,r)}return r}function qY(e){e.stateProxy=Fv;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Fv),r&&(r.stateProxy=Fv)}function kw(e,t){!ZP(e,t)&&!e.__highByOuter&&Ai(e,UP)}function Nw(e,t){!ZP(e,t)&&!e.__highByOuter&&Ai(e,jP)}function Ug(e,t){e.__highByOuter|=1<<(t||0),Ai(e,UP)}function jg(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ai(e,jP)}function KY(e){Ai(e,s0)}function qP(e){Ai(e,YP)}function KP(e){Ai(e,WY)}function XP(e){Ai(e,VY)}function ZP(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function QP(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=i0(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){YP(u)}),s&&r.push(a)),o.isBlured=!1}),O(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function Yg(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&qP(d)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){s0(g)}),Pr(t))a(u.getData(),t);else if(Ie(t))for(var v=Tt(t),p=0;p<v.length;p++)a(u.getData(v[p]),t[v[p]]);l.push(u),i0(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function qg(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){i0(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){s0(a)})}}}function XY(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=nc(i,t);a=(ge(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ft(o);Yg(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&Yg(n,c,f,r)}}}function l0(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ft(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function ZY(e,t,r){var n=ft(e),i=l0(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&qg(n.componentMainType,n.componentIndex,r),O(a,function(s){return kw(s,t)})):(Yg(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&qg(n.componentMainType,n.componentIndex,r),kw(e,t))}function QY(e,t,r){QP(r);var n=ft(e),i=l0(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?O(i,function(a){return Nw(a,t)}):Nw(e,t)}function JY(e,t,r){if(Zg(t)){var n=t.dataType,i=e.getData(n),a=nc(i,t);ge(a)||(a=[a]),e[t.type===Yl?"toggleSelect":t.type===jl?"select":"unselect"](a,n)}}function Fw(e){var t=e.getAllData();O(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?KP(a):XP(a)})})}function e7(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();O(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Kg(e,t,r){t2(e,!0),Ai(e,qY),r7(e,t,r)}function t7(e){t2(e,!1)}function JP(e,t,r,n){n?t7(e):Kg(e,t,r)}function r7(e,t,r){var n=ft(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Bw=["emphasis","blur","select"],n7={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function e2(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Bw.length;i++){var a=Bw[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[n7[r]]()}}function t2(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Xg(e){return!!(e&&e.__highDownDispatcher)}function i7(e){var t=Dw[e];return t==null&&Lw<=32&&(t=Dw[e]=Lw++),t}function Zg(e){var t=e.type;return t===jl||t===Hf||t===Yl}function $w(e){var t=e.type;return t===uo||t===$f}function a7(e){var t=VP(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var $o=_o.CMD,o7=[[],[],[]],Hw=Math.sqrt,s7=Math.atan2;function l7(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=$o.M,f=$o.C,d=$o.L,h=$o.R,v=$o.A,p=$o.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case d:a=1;break;case f:a=3;break;case p:a=2;break;case v:var g=t[4],m=t[5],y=Hw(t[0]*t[0]+t[1]*t[1]),_=Hw(t[2]*t[2]+t[3]*t[3]),b=s7(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],on(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],on(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=o7[l];S[0]=r[o++],S[1]=r[o++],on(S,S,t),r[s++]=S[0],r[s++]=S[1]}}e.increaseVersion()}}var Bv=Math.sqrt,$c=Math.sin,Hc=Math.cos,al=Math.PI;function zw(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Qg(e,t){return(e[0]*t[0]+e[1]*t[1])/(zw(e)*zw(t))}function Ww(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Qg(e,t))}function Vw(e,t,r,n,i,a,o,s,l,u,c){var f=l*(al/180),d=Hc(f)*(e-r)/2+$c(f)*(t-n)/2,h=-1*$c(f)*(e-r)/2+Hc(f)*(t-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Bv(v),s*=Bv(v));var p=(i===a?-1:1)*Bv((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+Hc(f)*g-$c(f)*m,_=(t+n)/2+$c(f)*g+Hc(f)*m,b=Ww([1,0],[(d-g)/o,(h-m)/s]),S=[(d-g)/o,(h-m)/s],w=[(-1*d-g)/o,(-1*h-m)/s],x=Ww(S,w);if(Qg(S,w)<=-1&&(x=al),Qg(S,w)>=1&&(x=0),x<0){var C=Math.round(x/al*1e6)/1e6;x=al*2+C%2*al}c.addData(u,y,_,o,s,b,x,f,a)}var u7=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,c7=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function f7(e){var t=new _o;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=_o.CMD,l=e.match(u7);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(c7)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,C=r,M=n,E=void 0,A=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,f="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,E=t.len(),A=t.data,o===s.C&&(m+=r-A[E-4],y+=n-A[E-3]),d=s.C,C=h[g++],M=h[g++],r=h[g++],n=h[g++],t.addData(d,m,y,C,M,r,n);break;case"s":m=r,y=n,E=t.len(),A=t.data,o===s.C&&(m+=r-A[E-4],y+=n-A[E-3]),d=s.C,C=r+h[g++],M=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,m,y,C,M,r,n);break;case"Q":C=h[g++],M=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,C,M,r,n);break;case"q":C=h[g++]+r,M=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,C,M,r,n);break;case"T":m=r,y=n,E=t.len(),A=t.data,o===s.Q&&(m+=r-A[E-4],y+=n-A[E-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"t":m=r,y=n,E=t.len(),A=t.data,o===s.Q&&(m+=r-A[E-4],y+=n-A[E-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"A":_=h[g++],b=h[g++],S=h[g++],w=h[g++],x=h[g++],C=r,M=n,r=h[g++],n=h[g++],d=s.A,Vw(C,M,r,n,w,x,_,b,S,d,t);break;case"a":_=h[g++],b=h[g++],S=h[g++],w=h[g++],x=h[g++],C=r,M=n,r+=h[g++],n+=h[g++],d=s.A,Vw(C,M,r,n,w,x,_,b,S,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=i,n=a),o=d}return t.toStatic(),t}var r2=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ht);function n2(e){return e.setData!=null}function i2(e,t){var r=f7(e),n=se({},t);return n.buildPath=function(i){if(n2(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){l7(r,i),this.dirtyShape()},n}function d7(e,t){return new r2(i2(e,t))}function h7(e,t){var r=i2(e,t),n=function(i){pe(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(r2);return n}function v7(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ht(t);return o.createPathProxy(),o.buildPath=function(s){if(n2(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var p7=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),a2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new p7},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(ht);a2.prototype.type="circle";const u0=a2;var g7=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),o2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new g7},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},t}(ht);o2.prototype.type="ellipse";const s2=o2;var l2=Math.PI,$v=l2*2,Da=Math.sin,Ho=Math.cos,m7=Math.acos,Zt=Math.atan2,Gw=Math.abs,ql=Math.sqrt,Cl=Math.max,Fn=Math.min,gn=1e-4;function y7(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=f*l-c*u;if(!(d*d<gn))return d=(c*(t-a)-f*(e-i))/d,[e+d*l,t+d*u]}function zc(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/ql(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=r+c,p=n+f,g=(d+v)/2,m=(h+p)/2,y=v-d,_=p-h,b=y*y+_*_,S=i-a,w=d*p-v*h,x=(_<0?-1:1)*ql(Cl(0,S*S*b-w*w)),C=(w*_-y*x)/b,M=(-w*y-_*x)/b,E=(w*_+y*x)/b,A=(-w*y+_*x)/b,T=C-g,D=M-m,N=E-g,H=A-m;return T*T+D*D>N*N+H*H&&(C=E,M=A),{cx:C,cy:M,x0:-c,y0:-f,x1:C*(i/S-1),y1:M*(i/S-1)}}function _7(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 b7(e,t){var r,n=Cl(t.r,0),i=Cl(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 c=t.cx,f=t.cy,d=!!t.clockwise,h=Gw(u-l),v=h>$v&&h%$v;if(v>gn&&(h=v),!(n>gn))e.moveTo(c,f);else if(h>$v-gn)e.moveTo(c+n*Ho(l),f+n*Da(l)),e.arc(c,f,n,l,u,!d),i>gn&&(e.moveTo(c+i*Ho(u),f+i*Da(u)),e.arc(c,f,i,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,C=void 0,M=void 0,E=void 0,A=void 0,T=void 0,D=void 0,N=void 0,H=n*Ho(l),$=n*Da(l),G=i*Ho(u),F=i*Da(u),R=h>gn;if(R){var j=t.cornerRadius;j&&(r=_7(j),p=r[0],g=r[1],m=r[2],y=r[3]);var re=Gw(n-i)/2;if(_=Fn(re,m),b=Fn(re,y),S=Fn(re,p),w=Fn(re,g),M=x=Cl(_,b),E=C=Cl(S,w),(x>gn||C>gn)&&(A=n*Ho(u),T=n*Da(u),D=i*Ho(l),N=i*Da(l),h<l2)){var oe=y7(H,$,D,N,A,T,G,F);if(oe){var ye=H-oe[0],Ae=$-oe[1],V=A-oe[0],Q=T-oe[1],W=1/Da(m7((ye*V+Ae*Q)/(ql(ye*ye+Ae*Ae)*ql(V*V+Q*Q)))/2),q=ql(oe[0]*oe[0]+oe[1]*oe[1]);M=Fn(x,(n-q)/(W+1)),E=Fn(C,(i-q)/(W-1))}}}if(!R)e.moveTo(c+H,f+$);else if(M>gn){var le=Fn(m,M),de=Fn(y,M),J=zc(D,N,H,$,n,le,d),L=zc(A,T,G,F,n,de,d);e.moveTo(c+J.cx+J.x0,f+J.cy+J.y0),M<x&&le===de?e.arc(c+J.cx,f+J.cy,M,Zt(J.y0,J.x0),Zt(L.y0,L.x0),!d):(le>0&&e.arc(c+J.cx,f+J.cy,le,Zt(J.y0,J.x0),Zt(J.y1,J.x1),!d),e.arc(c,f,n,Zt(J.cy+J.y1,J.cx+J.x1),Zt(L.cy+L.y1,L.cx+L.x1),!d),de>0&&e.arc(c+L.cx,f+L.cy,de,Zt(L.y1,L.x1),Zt(L.y0,L.x0),!d))}else e.moveTo(c+H,f+$),e.arc(c,f,n,l,u,!d);if(!(i>gn)||!R)e.lineTo(c+G,f+F);else if(E>gn){var le=Fn(p,E),de=Fn(g,E),J=zc(G,F,A,T,i,-de,d),L=zc(H,$,D,N,i,-le,d);e.lineTo(c+J.cx+J.x0,f+J.cy+J.y0),E<C&&le===de?e.arc(c+J.cx,f+J.cy,E,Zt(J.y0,J.x0),Zt(L.y0,L.x0),!d):(de>0&&e.arc(c+J.cx,f+J.cy,de,Zt(J.y0,J.x0),Zt(J.y1,J.x1),!d),e.arc(c,f,i,Zt(J.cy+J.y1,J.cx+J.x1),Zt(L.cy+L.y1,L.cx+L.x1),d),le>0&&e.arc(c+L.cx,f+L.cy,le,Zt(L.y1,L.x1),Zt(L.y0,L.x0),!d))}else e.lineTo(c+G,f+F),e.arc(c,f,i,u,l,d)}e.closePath()}}}var w7=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}(),u2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new w7},t.prototype.buildPath=function(r,n){b7(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ht);u2.prototype.type="sector";const Ao=u2;var S7=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=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 S7},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}(ht);c2.prototype.type="ring";const f2=c2;function x7(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Jo(c,c,e[d]),es(f,f,e[d]);Jo(c,c,n[0]),es(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(YU(e[d]));continue}else l=e[d-1],u=e[d+1];qU(a,u,l),rv(a,a,t);var p=xg(v,l),g=xg(v,u),m=p+g;m!==0&&(p/=m,g/=m),rv(o,a,-p),rv(s,a,g);var y=N1([],v,o),_=N1([],v,s);n&&(es(y,y,c),Jo(y,y,f),es(_,_,c),Jo(_,_,f)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function d2(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=x7(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],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var C7=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),h2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new C7},t.prototype.buildPath=function(r,n){d2(r,n,!0)},t}(ht);h2.prototype.type="polygon";const v2=h2;var T7=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),p2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new T7},t.prototype.buildPath=function(r,n){d2(r,n,!1)},t}(ht);p2.prototype.type="polyline";const vh=p2;var M7={},A7=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),g2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new A7},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=$P(M7,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(ht);g2.prototype.type="line";const bo=g2;var pr=[],P7=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Uw(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?Y1:jt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Y1:jt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?q1:Jt)(e.x1,e.cpx1,e.x2,t),(r?q1:Jt)(e.y1,e.cpy1,e.y2,t)]}var m2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new P7},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),c==null||f==null?(d<1&&(hd(i,l,o,d,pr),l=pr[1],o=pr[2],hd(a,u,s,d,pr),u=pr[1],s=pr[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(dd(i,l,c,o,d,pr),l=pr[1],c=pr[2],o=pr[3],dd(a,u,f,s,d,pr),u=pr[1],f=pr[2],s=pr[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return Uw(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Uw(this.shape,r,!0);return ZU(n,n)},t}(ht);m2.prototype.type="bezier-curve";const y2=m2;var E7=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),_2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new E7},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},t}(ht);_2.prototype.type="arc";const c0=_2;var L7=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ht.prototype.getBoundingRect.call(this)},t}(ht);const D7=L7;var I7=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const b2=I7;var O7=function(e){pe(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(b2);const R7=O7;var k7=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(b2);const N7=k7;var Ia=[0,0],Oa=[0,0],Wc=new ke,Vc=new ke,F7=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ke;for(var n=0;n<2;n++)this._axes[n]=new ke;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);ke.sub(i[0],n[1],n[0]),ke.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Wc.set(1/0,1/0),Vc.set(0,0),!this._intersectCheckOneSide(this,t,Wc,Vc,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Wc,Vc,i,-1)&&(n=!1,i)||i||ke.copy(r,n?Wc:Vc),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Ia),this._getProjMinMaxOnAxis(l,r._corners,Oa),Ia[1]<Oa[0]||Ia[0]>Oa[1]){if(s=!1,a)return s;var c=Math.abs(Oa[0]-Ia[1]),f=Math.abs(Ia[0]-Oa[1]);Math.min(c,f)>i.len()&&(c<f?ke.scale(i,u,-c*o):ke.scale(i,u,f*o))}else if(n){var c=Math.abs(Oa[0]-Ia[1]),f=Math.abs(Ia[0]-Oa[1]);Math.min(c,f)<n.len()&&(c<f?ke.scale(n,u,c*o):ke.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const bd=F7;var B7=[],$7=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new et(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(B7)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(ac);const H7=$7;var z7=Pt();function W7(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=qe(n.duration,200),c=qe(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),Ve(f)&&(f=f(r,i)),Ve(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function f0(e,t,r,n,i,a,o){var s=!1,l;Ve(i)?(o=a,a=i,i=null):Ie(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=W7(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,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 Er(e,t,r,n,i,a){f0("update",e,t,r,n,i,a)}function Hr(e,t,r,n,i,a){f0("enter",e,t,r,n,i,a)}function fs(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function w2(e,t,r,n,i,a){fs(e)||f0("leave",e,t,r,n,i,a)}function jw(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),w2(e,{style:{opacity:0}},t,r,n)}function wd(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||jw(i,t,r,n)}):jw(e,t,r,n)}function S2(e){z7(e).oldStyle=e.style}var Sd=Math.max,xd=Math.min,Jg={};function V7(e){return ht.extend(e)}var G7=h7;function U7(e,t){return G7(e,t)}function Dn(e,t){Jg[e]=t}function j7(e){if(Jg.hasOwnProperty(e))return Jg[e]}function d0(e,t,r,n){var i=d7(e,t);return r&&(n==="center"&&(r=C2(r,i.getBoundingRect())),T2(i,r)),i}function x2(e,t,r){var n=new zs({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(C2(t,a))}}});return n}function C2(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Y7=v7;function T2(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Au(e,t){return $P(e,e,{lineWidth:t}),e}function q7(e){return HP(e.shape,e.shape,e.style),e}var K7=eo;function X7(e,t){for(var r=Yy([]);e&&e!==t;)us(r,e.getLocalTransform(),r),e=e.parent;return r}function h0(e,t,r){return t&&!Pr(t)&&(t=uh.getLocalTransform(t)),r&&(t=lh([],t)),on([],e,t)}function Z7(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=h0(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Yw(e){return!e.isGroup}function Q7(e){return e.shape!=null}function M2(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Yw(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Q7(o)&&(s.shape=se({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Yw(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Er(o,l,r,ft(o).dataIndex)}}})}function J7(e,t){return Re(e,function(r){var n=r[0];n=Sd(n,t.x),n=xd(n,t.x+t.width);var i=r[1];return i=Sd(i,t.y),i=xd(i,t.y+t.height),[n,i]})}function eq(e,t){var r=Sd(e.x,t.x),n=xd(e.x+e.width,t.x+t.width),i=Sd(e.y,t.y),a=xd(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 v0(e,t,r){var n=se({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),dt(i,r),new zs(n)):d0(e.replace("path://",""),n,r,"center")}function tq(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(A2(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function A2(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=Hv(c,f,l,u);if(rq(d))return!1;var h=e-i,v=t-a,p=Hv(h,v,l,u)/d;if(p<0||p>1)return!1;var g=Hv(h,v,c,f)/d;return!(g<0||g>1)}function Hv(e,t,r,n){return e*n-r*t}function rq(e){return e<=1e-6&&e>=-1e-6}function p0(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&&O(Tt(l),function(c){Es(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ft(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:dt({content:n,formatterParams:s},i)}}function qw(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function g0(e,t){if(e)if(ge(e))for(var r=0;r<e.length;r++)qw(e[r],t);else qw(e,t)}Dn("circle",u0);Dn("ellipse",s2);Dn("sector",Ao);Dn("ring",f2);Dn("polygon",v2);Dn("polyline",vh);Dn("rect",Ht);Dn("line",bo);Dn("bezierCurve",y2);Dn("arc",c0);const nq=Object.freeze(Object.defineProperty({__proto__:null,Arc:c0,BezierCurve:y2,BoundingRect:et,Circle:u0,CompoundPath:D7,Ellipse:s2,Group:cn,Image:zs,IncrementalDisplayable:H7,Line:bo,LinearGradient:R7,OrientedBoundingRect:bd,Path:ht,Point:ke,Polygon:v2,Polyline:vh,RadialGradient:N7,Rect:Ht,Ring:f2,Sector:Ao,Text:dr,applyTransform:h0,clipPointsByRect:J7,clipRectByRect:eq,createIcon:v0,extendPath:U7,extendShape:V7,getShapeClass:j7,getTransform:X7,groupTransition:M2,initProps:Hr,isElementRemoved:fs,lineLineIntersect:A2,linePolygonIntersect:tq,makeImage:x2,makePath:d0,mergePath:Y7,registerShape:Dn,removeElement:w2,removeElementWithFadeOut:wd,resizePath:T2,setTooltipConfig:p0,subPixelOptimize:K7,subPixelOptimizeLine:Au,subPixelOptimizeRect:q7,transformDirection:Z7,traverseElements:g0,updateProps:Er},Symbol.toStringTag,{value:"Module"}));var ph={};function P2(e,t){for(var r=0;r<Xn.length;r++){var n=Xn[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function em(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Ve(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Xn.length;u++){var c=Xn[u],f=t[c];l[c]=qe(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function m0(e,t,r,n){r=r||ph;for(var i=e instanceof dr,a=!1,o=0;o<_d.length;o++){var s=t[_d[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new dr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=em(r,t),c=t.normal,f=!!c.getShallow("show"),d=la(c,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig(Kw(c,r,!1));for(var o=0;o<Xn.length;o++){var h=Xn[o],s=t[h];if(s){var v=l.ensureState(h),p=!!qe(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=la(s,n&&n[h],r,!0,!i),v.style.text=u[h],!i){var g=e.ensureState(h);g.textConfig=Kw(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(oc(l).setLabelText=function(m){var y=em(r,t,m);P2(l,y)})}else l&&(l.ignore=!0);e.dirty()}function E2(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Xn.length;n++){var i=Xn[n];r[i]=e.getModel([i,t])}return r}function la(e,t,r,n,i){var a={};return iq(a,e,r,n,i),t&&se(a,t),a}function Kw(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=qe(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function iq(e,t,r,n,i){r=r||ph;var a=t.ecModel,o=a&&a.option.textStyle,s=aq(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Jw(l[u]={},c,o,r,n,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),Jw(e,t,o,r,n,i,!0,!1)}function aq(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||ph).rich;if(r){t=t||{};for(var n=Tt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var Xw=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Zw=["align","lineHeight","width","height","tag","verticalAlign"],Qw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Jw(e,t,r,n,i,a,o,s){r=!i&&r||ph;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=qe(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=qe(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=qe(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=qe(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<Xw.length;p++){var g=Xw[p],m=qe(t.getShallow(g),r[g]);m!=null&&(e[g]=m)}for(var p=0;p<Zw.length;p++){var g=Zw[p],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<Qw.length;p++){var g=Qw[p],m=t.getShallow(g);m!=null&&(e[g]=m)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function oq(e,t){var r=t&&t.getModel("textStyle");return Vn([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var oc=Pt();function sq(e,t,r,n){if(e){var i=oc(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function lq(e,t,r,n,i){var a=oc(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=qe(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=Fj(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var d=em({labelDataIndex:t,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);P2(e,d)}e.percent=0,(a.prevValue==null?Hr:Er)(e,{percent:1},n,t,null,u)}var uq=["textStyle","color"],zv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Wv=new dr,cq=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(uq):null)},e.prototype.getFont=function(){return oq({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<zv.length;n++)r[zv[n]]=this.getShallow(zv[n]);return Wv.useStyle(r),Wv.update(),Wv.getBoundingRect()},e}();const fq=cq;var L2=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],dq=Mu(L2),hq=function(){function e(){}return e.prototype.getLineStyle=function(t){return dq(this,t)},e}(),D2=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],vq=Mu(D2),pq=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return vq(this,t,r)},e}(),Po=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){st(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Qe(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Ge.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();n0(Po);Vj(Po);Jn(Po,hq);Jn(Po,pq);Jn(Po,qj);Jn(Po,fq);const rr=Po;var gq=Math.round(Math.random()*10);function gh(e){return[e||"",gq++].join("_")}function mq(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Gn(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Gn(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function yq(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(O(a,function(y){d[y]=!0});f.length;){var h=f.pop(),v=c[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),O(v.successor,p?m:g)}O(d,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){d[y]=!0,g(y)}};function r(a){var o={},s=[];return O(a,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),O(f,function(d){ot(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);ot(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return O(a,function(l){ot(o,l)>=0&&s.push(l)}),s}}function I2(e,t){return st(st({},e,!0),t,!0)}const _q={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:". "}}}},bq={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 Cd="ZH",y0="EN",Pu=y0,zf={},_0={},O2=Ge.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Cd)>-1?Cd:Pu}():Pu;function R2(e,t){e=e.toUpperCase(),_0[e]=new rr(t),zf[e]=t}function wq(e){if(Te(e)){var t=zf[e.toUpperCase()]||{};return e===Cd||e===y0?Qe(t):st(Qe(t),Qe(zf[Pu]),!1)}else return st(Qe(e),Qe(zf[Pu]),!1)}function Sq(e){return _0[e]}function xq(){return _0[Pu]}R2(y0,_q);R2(Cd,bq);var b0=1e3,w0=b0*60,Kl=w0*60,en=Kl*24,eS=en*365,Tl={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}"},Gc="{yyyy}-{MM}-{dd}",tS={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gc,hour:Gc+" "+Tl.hour,minute:Gc+" "+Tl.minute,second:Gc+" "+Tl.second,millisecond:Tl.none},Vv=["year","month","day","hour","minute","second","millisecond"],k2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ra(e,t){return e+="","0000".substr(0,t-e.length)+e}function ds(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 Cq(e){return e===ds(e)}function Tq(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function mh(e,t,r,n){var i=wi(e),a=i[S0(r)](),o=i[hs(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[yh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Eu(r)](),f=(c-1)%12+1,d=i[_h(r)](),h=i[bh(r)](),v=i[wh(r)](),p=n instanceof rr?n:Sq(n||O2)||xq(),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,Ra(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ra(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ra(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ra(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ra(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Ra(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ra(v,3)).replace(/{S}/g,v+"")}function Mq(e,t,r,n,i){var a=null;if(Te(r))a=r;else if(Ve(r))a=r(e.value,t,{level:e.level});else{var o=se({},Tl);if(e.level>0)for(var s=0;s<Vv.length;++s)o[Vv[s]]="{primary|"+o[Vv[s]]+"}";var l=r?r.inherit===!1?r:dt(r,o):o,u=N2(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=k2.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ge(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return mh(new Date(e.value),a,i,n)}function N2(e,t){var r=wi(e),n=r[hs(t)]()+1,i=r[yh(t)](),a=r[Eu(t)](),o=r[_h(t)](),s=r[bh(t)](),l=r[wh(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function rS(e,t,r){var n=bt(e)?wi(e):e;switch(t=t||N2(e,r),t){case"year":return n[S0(r)]();case"half-year":return n[hs(r)]()>=6?1:0;case"quarter":return Math.floor((n[hs(r)]()+1)/4);case"month":return n[hs(r)]();case"day":return n[yh(r)]();case"half-day":return n[Eu(r)]()/24;case"hour":return n[Eu(r)]();case"minute":return n[_h(r)]();case"second":return n[bh(r)]();case"millisecond":return n[wh(r)]()}}function S0(e){return e?"getUTCFullYear":"getFullYear"}function hs(e){return e?"getUTCMonth":"getMonth"}function yh(e){return e?"getUTCDate":"getDate"}function Eu(e){return e?"getUTCHours":"getHours"}function _h(e){return e?"getUTCMinutes":"getMinutes"}function bh(e){return e?"getUTCSeconds":"getSeconds"}function wh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Aq(e){return e?"setUTCFullYear":"setFullYear"}function F2(e){return e?"setUTCMonth":"setMonth"}function B2(e){return e?"setUTCDate":"setDate"}function $2(e){return e?"setUTCHours":"setHours"}function H2(e){return e?"setUTCMinutes":"setMinutes"}function z2(e){return e?"setUTCSeconds":"setSeconds"}function W2(e){return e?"setUTCMilliseconds":"setMilliseconds"}function V2(e){if(!Sj(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 G2(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 Sh=jA;function tm(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Vn(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?wi(e):e;if(isNaN(+l)){if(s)return"-"}else return mh(l,n,r)}if(t==="ordinal")return wg(e)?i(e):bt(e)&&a(e)?e+"":"-";var u=yd(e);return a(u)?V2(u):wg(e)?i(e):typeof e=="boolean"?e+"":"-"}var nS=["a","b","c","d","e","f","g"],Gv=function(e,t){return"{"+e+(t??"")+"}"};function U2(e,t,r){ge(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=nS[a];e=e.replace(Gv(o),Gv(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(Gv(nS[l],s),r?Xr(u):u)}return e}function Pq(e,t){var r=Te(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Xr(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Xr(n)+";"+(t||"")+'"></span>';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 Lu(e,t){return t=t||"transparent",Te(e)?e:Ie(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function iS(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Wf=O,Eq=["left","right","top","bottom","width","height"],Uc=[["width","left","right"],["height","top","bottom"]];function x0(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 c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var p=c.width+(d?-d.x+c.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var Xl=x0;Rt(x0,"vertical");Rt(x0,"horizontal");function Ls(e,t,r){r=Sh(r||0);var n=t.width,i=t.height,a=gt(e.left,n),o=gt(e.top,i),s=gt(e.right,n),l=gt(e.bottom,i),u=gt(e.width,n),c=gt(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),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-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var v=new et(a+r[3],o+r[0],u,c);return v.margin=r,v}function Du(e){var t=e.layoutMode||e.constructor.layoutMode;return Ie(t)?t:t?{type:t}:null}function Ds(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o(Uc[0],0),a=o(Uc[1],1);u(Uc[0],e,i),u(Uc[1],e,a);function o(c,f){var d={},h=0,v={},p=0,g=2;if(Wf(c,function(_){v[_]=e[_]}),Wf(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m<c.length;m++){var y=c[m];if(!s(d,y)&&s(e,y)){d[y]=e[y];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){Wf(c,function(h){f[h]=d[h]})}}function xh(e){return Lq({},e)}function Lq(e,t){return t&&e&&Wf(Eq,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Dq=Pt(),Ws=function(e){pe(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=gh("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Du(this),a=i?xh(r):{},o=n.getTheme();st(r,o.get(this.mainType)),st(r,this.getDefaultOption()),i&&Ds(r,a,i)},t.prototype.mergeOption=function(r,n){st(this.option,r,!0);var i=Du(this);i&&Ds(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Hj(r))return r.defaultOption;var n=Dq(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=st(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ic(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}(rr);LP(Ws,rr);ch(Ws);mq(Ws);yq(Ws,Iq);function Iq(e){var t=[];return O(Ws.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Re(t,function(r){return Gn(r).main}),e!=="dataset"&&ot(t,"dataset")<=0&&t.unshift("dataset"),t}const St=Ws;var j2="";typeof navigator<"u"&&(j2=navigator.platform||"");var zo="rgba(0, 0, 0, 0.2)";const Oq={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:j2.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 Y2=Ue(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),dn="original",Lr="arrayRows",In="objectRows",ti="keyedColumns",Ji="typedArray",q2="unknown",pi="column",Vs="row",Ut={Must:1,Might:2,Not:3},K2=Pt();function Rq(e){K2(e).datasetMap=Ue()}function kq(e,t,r){var n={},i=C0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=K2(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),O(e,function(p,g){var m=Ie(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});O(e,function(p,g){var m=p.name,y=v(p);if(c==null){var _=d.valueWayDim;h(n[m],_,y),h(o,_,y),d.valueWayDim+=y}else if(c===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;y<m;y++)p.push(g+y)}function v(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Nq(e,t,r){var n={},i=C0(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===In||a===ti)&&O(o,function(c,f){(Ie(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var p=Z2(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===Ut.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===Ut.Not)&&(c.n=h),m(c)&&d[c.n]!==Ut.Not)return c;g||(p===Ut.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function C0(e){var t=e.get("data",!0);if(!t)return ic(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Cn).models[0]}function Fq(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:ic(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Cn).models}function X2(e,t){return Z2(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Z2(e,t,r,n,i,a){var o,s=5;if(zr(e))return Ut.Not;var l,u;if(n){var c=n[a];Ie(c)?(l=c.name,u=c.type):Te(c)&&(l=c)}if(u!=null)return u==="ordinal"?Ut.Must:Ut.Not;if(t===Lr){var f=e;if(r===Vs){for(var d=f[a],h=0;h<(d||[]).length&&h<s;h++)if((o=b(d[i+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[i+h];if(v&&(o=b(v[a]))!=null)return o}}else if(t===In){var p=e;if(!l)return Ut.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=b(g[l]))!=null)return o}}else if(t===ti){var m=e;if(!l)return Ut.Not;var d=m[l];if(!d||zr(d))return Ut.Not;for(var h=0;h<d.length&&h<s;h++)if((o=b(d[h]))!=null)return o}else if(t===dn)for(var y=e,h=0;h<y.length&&h<s;h++){var g=y[h],_=rc(g);if(!ge(_))return Ut.Not;if((o=b(_[a]))!=null)return o}function b(S){var w=Te(S);if(S!=null&&isFinite(S)&&S!=="")return w?Ut.Might:Ut.Not;if(w&&S!=="-")return Ut.Must}return Ut.Not}var Bq=Ue();function $q(e,t,r){var n=Bq.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var aS=Pt();Pt();var T0=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=cr(this.get("color",!0)),a=this.get("colorLayer",!0);return zq(this,aS,i,a,t,r,n)},e.prototype.clearColorPalette=function(){Wq(this,aS)},e}();function Hq(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function zq(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 c=o==null||!n?r:Hq(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Wq(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var jc,ol,oS,sS="\0_ec_inner",Vq=1,Q2=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 rr(a),this._locale=new rr(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=cS(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,cS(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"?oS(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&&O(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=Ue(),u=n&&n.replaceMergeMainTypeMap;Rq(this),O(r,function(f,d){f!=null&&(St.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Qe(f):st(i[d],f,!0))}),u&&u.each(function(f,d){St.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),St.topologicalTravel(s,St.getAllClassMainTypes(),c,this);function c(f){var d=$q(this,f,cr(r[f])),h=a.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Tj(h,d,v);Ij(p,f,St),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;O(p,function(b,S){var w=b.existing,x=b.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=f==="series",M=St.getClass(f,b.keyInfo.subType,!C);if(!M)return;if(f==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===M)w.name=b.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var E=se({componentIndex:S},b.keyInfo);w=new M(x,this,this,E),se(w,E),b.brandNew&&(w.__requireNewView=!0),w.init(x,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[f]=g,a.set(f,m),o.set(f,y),f==="series"&&jc(this)}this._seriesIndices||jc(this)},t.prototype.getOption=function(){var r=Qe(this.option);return O(r,function(n,i){if(St.hasClass(i)){for(var a=cr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Tu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[sS],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<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],O(cr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=lS("id",a,s):o!=null?l=lS("name",o,s):l=Vt(s,function(u){return!!u}),uS(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Vt(this._componentsMap.get(i),function(u){return!!u});return l(uS(o,r));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?Vt(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Ve(r)){var o=n,s=r;a.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=Te(r)?a.get(r):Ie(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Yn(r,null);return Vt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Vt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Vt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){ol(this),O(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){O(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){ol(this),O(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return O(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return ol(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){ol(this);var i=[];O(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Ue(i)},t.prototype.restoreData=function(r){jc(this);var n=this._componentsMap,i=[];n.each(function(a,o){St.hasClass(o)&&i.push(o)}),St.topologicalTravel(i,St.getAllClassMainTypes(),function(a){O(n.get(a),function(o){o&&(a!=="series"||!Gq(o,r))&&o.restoreData()})})},t.internalField=function(){jc=function(r){var n=r._seriesIndices=[];O(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Ue(n)},ol=function(r){},oS=function(r,n){r.option={},r.option[sS]=Vq,r._componentsMap=Ue({series:[]}),r._componentsCount=Ue();var i=n.aria;Ie(i)&&i.enabled==null&&(i.enabled=!0),Uq(n,r._theme.option),st(n,Oq,!1),r._mergeOption(n,null)}}(),t}(rr);function Gq(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function Uq(e,t){var r=e.color&&!e.colorLayer;O(t,function(n,i){i==="colorLayer"&&r||St.hasClass(i)||(typeof n=="object"?e[i]=e[i]?st(e[i],n,!1):Qe(n):e[i]==null&&(e[i]=n))})}function lS(e,t,r){if(ge(t)){var n=Ue();return O(t,function(a){if(a!=null){var o=Yn(a,null);o!=null&&n.set(a,!0)}}),Vt(r,function(a){return a&&n.get(a[e])})}else{var i=Yn(t,null);return Vt(r,function(a){return a&&i!=null&&a[e]===i})}}function uS(e,t){return t.hasOwnProperty("subType")?Vt(e,function(r){return r&&r.subType===t.subType}):e}function cS(e){var t=Ue();return e&&O(cr(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Jn(Q2,T0);const J2=Q2;var jq=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Yq=function(){function e(t){O(jq,function(r){this[r]=_t(t[r],t)},this)}return e}();const eE=Yq;var Uv={},qq=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];O(Uv,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){O(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Uv[t]=r},e.get=function(t){return Uv[t]},e}();const M0=qq;var Kq=/^(min|max)?(.+)$/,Xq=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(O(cr(t.series),function(o){o&&o.data&&zr(o.data)&&Sg(o.data)}),O(cr(t.dataset),function(o){o&&o.source&&zr(o.source)&&Sg(o.source)})),t=Qe(t);var i=this._optionBackup,a=Zq(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Qe(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=Qe(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)Qq(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!eK(o,this._currentMediaIndices)&&(s=Re(o,function(c){return Qe(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},e}();function Zq(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&ge(u)&&O(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),d(a),O(l,function(h){return d(h)}),O(n,function(h){return d(h.option)});function d(h){O(t,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Qq(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return O(e,function(a,o){var s=o.match(Kq);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Jq(n[u],a,l)||(i=!1)}}),i}function Jq(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function eK(e,t){return e.join(",")===t.join(",")}const tK=Xq;var hn=O,Iu=Ie,fS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jv(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=fS.length;r<n;r++){var i=fS[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?st(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?st(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function er(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,dt(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Ml(e){er(e,"itemStyle"),er(e,"lineStyle"),er(e,"areaStyle"),er(e,"label"),er(e,"labelLine"),er(e,"upperLabel"),er(e,"edgeLabel")}function Dt(e,t){var r=Iu(e)&&e[t],n=Iu(r)&&r.textStyle;if(n)for(var i=0,a=hw.length;i<a;i++){var o=hw[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Yr(e){e&&(Ml(e),Dt(e,"label"),e.emphasis&&Dt(e.emphasis,"label"))}function rK(e){if(Iu(e)){jv(e),Ml(e),Dt(e,"label"),Dt(e,"upperLabel"),Dt(e,"edgeLabel"),e.emphasis&&(Dt(e.emphasis,"label"),Dt(e.emphasis,"upperLabel"),Dt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(jv(t),Yr(t));var r=e.markLine;r&&(jv(r),Yr(r));var n=e.markArea;n&&Yr(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!zr(a))for(var o=0;o<a.length;o++)Yr(a[o]);O(e.categories,function(u){Ml(u)})}if(i&&!zr(i))for(var o=0;o<i.length;o++)Yr(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Yr(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)ge(l[o])?(Yr(l[o][0]),Yr(l[o][1])):Yr(l[o]);e.type==="gauge"?(Dt(e,"axisLabel"),Dt(e,"title"),Dt(e,"detail")):e.type==="treemap"?(er(e.breadcrumb,"itemStyle"),O(e.levels,function(u){Ml(u)})):e.type==="tree"&&Ml(e.leaves)}}function si(e){return ge(e)?e:e?[e]:[]}function dS(e){return(ge(e)?e[0]:e)||{}}function nK(e,t){hn(si(e.series),function(n){Iu(n)&&rK(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),hn(r,function(n){hn(si(e[n]),function(i){i&&(Dt(i,"axisLabel"),Dt(i.axisPointer,"label"))})}),hn(si(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Dt(i,"axisLabel"),Dt(i&&i.axisPointer,"label")}),hn(si(e.calendar),function(n){er(n,"itemStyle"),Dt(n,"dayLabel"),Dt(n,"monthLabel"),Dt(n,"yearLabel")}),hn(si(e.radar),function(n){Dt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),hn(si(e.geo),function(n){Iu(n)&&(Yr(n),hn(si(n.regions),function(i){Yr(i)}))}),hn(si(e.timeline),function(n){Yr(n),er(n,"label"),er(n,"itemStyle"),er(n,"controlStyle",!0);var i=n.data;ge(i)&&O(i,function(a){Ie(a)&&(er(a,"label"),er(a,"itemStyle"))})}),hn(si(e.toolbox),function(n){er(n,"iconStyle"),hn(n.feature,function(i){er(i,"iconStyle")})}),Dt(dS(e.axisPointer),"label"),Dt(dS(e.tooltip).axisPointer,"label")}function iK(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function aK(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function hS(e){e&&O(oK,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var oK=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],sK=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Yv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function sl(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Yv.length;r++){var n=Yv[r][1],i=Yv[r][0];t[n]!=null&&(t[i]=t[n])}}function vS(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function pS(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function lK(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function tE(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&tE(e[r].children,t)}function rE(e,t){nK(e,t),e.series=cr(e.series),O(e.series,function(r){if(Ie(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),vS(r.label);var i=r.data;if(i&&!zr(i))for(var a=0;a<i.length;a++)vS(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=iK(r,"pointer.color");o!=null&&aK(r,"itemStyle.color",o)}else if(n==="bar"){sl(r),sl(r.backgroundStyle),sl(r.emphasis);var i=r.data;if(i&&!zr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(sl(i[a]),sl(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),pS(r),tE(r.data,pS)}else n==="graph"||n==="sankey"?lK(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&dt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),hS(r)}}),e.dataRange&&(e.visualMap=e.dataRange),O(sK,function(r){var n=e[r];n&&(ge(n)||(n=[n]),O(n,function(i){hS(i)}))})}function uK(e){var t=Ue();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(cK)}function cK(e){O(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return i;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=r-1;g>=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=_j(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var Ch=function(){function e(t){this.data=t.data||(t.sourceFormat===ti?{}:[]),this.sourceFormat=t.sourceFormat||q2,this.seriesLayoutBy=t.seriesLayoutBy||pi,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;n<r.length;n++){var i=r[n];i.type==null&&X2(this,n)===Ut.Must&&(i.type="ordinal")}}return e}();function A0(e){return e instanceof Ch}function rm(e,t,r){r=r||nE(e);var n=t.seriesLayoutBy,i=dK(e,r,n,t.sourceHeader,t.dimensions),a=new Ch({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Qe(t)});return a}function P0(e){return new Ch({data:e,sourceFormat:zr(e)?Ji:dn})}function fK(e){return new Ch({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Qe(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function nE(e){var t=q2;if(zr(e))t=Ji;else if(ge(e)){e.length===0&&(t=Lr);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(ge(i)){t=Lr;break}else if(Ie(i)){t=In;break}}}}else if(Ie(e)){for(var a in e)if(Es(e,a)&&Pr(e[a])){t=ti;break}}return t}function dK(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:gS(i),startIndex:o,dimensionsDetectedCount:a};if(t===Lr){var s=e;n==="auto"||n==null?mS(function(u){u!=null&&u!=="-"&&(Te(u)?o==null&&(o=1):o=0)},r,s,10):o=bt(n)?n:n?1:0,!i&&o===1&&(i=[],mS(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Vs?s.length:s[0]?s[0].length:null}else if(t===In)i||(i=hK(e));else if(t===ti)i||(i=[],O(e,function(u,c){i.push(c)}));else if(t===dn){var l=rc(e[0]);a=ge(l)&&l.length||1}return{startIndex:o,dimensionsDefine:gS(i),dimensionsDetectedCount:a}}function hK(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r){var n=[];return O(r,function(i,a){n.push(a)}),n}}function gS(e){if(e){var t=Ue();return Re(e,function(r,n){r=Ie(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function mS(e,t,r,n){if(t===Vs)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function iE(e){var t=e.sourceFormat;return t===In||t===ti}var ka,Na,Fa,yS,_S,aE=function(){function e(t,r){var n=A0(t)?t:P0(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Ji&&(this._offset=0,this._dimSize=r,this._data=i),_S(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;_S=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=yS[E0(u,c)];if(se(o,h),u===Ji)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=oE(u,c);o.getItem=_t(v,null,s,f,d);var p=sE(u,c);o.count=_t(p,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[d],y=0;y<g;y++){var _=c[y*f+d];m[o+y]=_,_<v&&(v=_),_>p&&(p=_)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};yS=(t={},t[Lr+"_"+pi]={pure:!0,appendData:a},t[Lr+"_"+Vs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[In]={pure:!0,appendData:a},t[ti]={pure:!0,appendData:function(o){var s=this._data;O(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[dn]={appendData:a},t[Ji]={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<o.length;s++)this._data.push(o[s])}}(),e}(),bS=function(e,t,r,n){return e[n]},vK=(ka={},ka[Lr+"_"+pi]=function(e,t,r,n){return e[n+t]},ka[Lr+"_"+Vs]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ka[In]=bS,ka[ti]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},ka[dn]=bS,ka);function oE(e,t){var r=vK[E0(e,t)];return r}var wS=function(e,t,r){return e.length},pK=(Na={},Na[Lr+"_"+pi]=function(e,t,r){return Math.max(0,e.length-t)},Na[Lr+"_"+Vs]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Na[In]=wS,Na[ti]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},Na[dn]=wS,Na);function sE(e,t){var r=pK[E0(e,t)];return r}var qv=function(e,t,r){return e[t]},gK=(Fa={},Fa[Lr]=qv,Fa[In]=function(e,t,r){return e[r]},Fa[ti]=qv,Fa[dn]=function(e,t,r){var n=rc(e);return n instanceof Array?n[t]:n},Fa[Ji]=qv,Fa);function lE(e){var t=gK[e];return t}function E0(e,t){return e===Lr?e+"_"+t:e}function Is(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return lE(a)(n,o,s)}else{var l=n;return a===dn&&(l=rc(n)),l}}}}var mK=/\{@(.+?)\}/g,yK=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&ge(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Ve(a))return l.status=r,l.dimensionIndex=i,a(l);if(Te(a)){var c=U2(a,l);return c.replace(mK,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=Is(s,t,v);if(o&&ge(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Is(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function SS(e){var t,r;return Ie(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Zl(e){return new _K(e)}var _K=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=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=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&&(f||h<v)){var p=this._progress;if(ge(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,l,u);else this._doProgress(p,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){xS.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:xS.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),ge(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),xS=function(){var e,t,r,n,i,a={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function Vf(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!bt(e)&&e!=null&&e!=="-"&&(e=+wi(e)),e==null||e===""?NaN:+e)}Ue({number:function(e){return parseFloat(e)},time:function(e){return+wi(e)},trim:function(e){return Te(e)?Vn(e):e}});var bK=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=bt(t)?t:yd(t),i=bt(r)?r:yd(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Te(t),l=Te(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),wK=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 Vf(t,r)},e}();function SK(e,t){var r=new wK,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==pi&&br(o);var s=[],l={},u=e.dimensionsDefine;if(u)O(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Es(l,m)&&br(_),l[m]=y}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=oE(i,pi);t.__isBuiltIn&&(r.getRawDataItem=function(p){return f(n,a,s,p)},r.getRawData=_t(xK,null,e)),r.cloneRawData=_t(CK,null,e);var d=sE(i,pi);r.count=_t(d,null,n,a,s);var h=lE(i);r.retrieveValue=function(p,g){var m=f(n,a,s,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=_t(TK,null,s,l),r.cloneAllDimensionInfo=_t(MK,null,s),r}function xK(e){var t=e.sourceFormat;if(!L0(t)){var r="";br(r)}return e.data}function CK(e){var t=e.sourceFormat,r=e.data;if(!L0(t)){var n="";br(n)}if(t===Lr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===In){for(var i=[],a=0,o=r.length;a<o;a++)i.push(se({},r[a]));return i}}function TK(e,t,r){if(r!=null){if(bt(r)||!isNaN(r)&&!Es(t,r))return e[r];if(Es(t,r))return t[r]}}function MK(e){return Qe(e)}var uE=Ue();function AK(e){e=Qe(e);var t=e.type,r="";t||br(r);var n=t.split(":");n.length!==2&&br(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,uE.set(t,e)}function PK(e,t,r){var n=cr(e),i=n.length,a="";i||br(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=EK(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function EK(e,t,r,n){var i="";t.length||br(i),Ie(e)||br(i);var a=e.type,o=uE.get(a);o||br(i);var s=Re(t,function(u){return SK(u,o)}),l=cr(o.transform({upstream:s[0],upstreamList:s,config:Qe(e.config)}));return Re(l,function(u,c){var f="";Ie(u)||br(f),u.data||br(f);var d=nE(u.data);L0(d)||br(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:pi,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:pi,sourceHeader:0,dimensions:u.dimensions};return rm(u.data,h,null)})}function L0(e){return e===Lr||e===In}var Th="undefined",LK=typeof Uint32Array===Th?Array:Uint32Array,DK=typeof Uint16Array===Th?Array:Uint16Array,cE=typeof Int32Array===Th?Array:Int32Array,CS=typeof Float64Array===Th?Array:Float64Array,fE={float:CS,int:cE,ordinal:Array,number:Array,time:CS},Kv;function ll(e){return e>65535?LK:DK}function Wo(){return[1/0,-1/0]}function IK(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function TS(e,t,r,n,i){var a=fE[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var nm=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ue()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Kv[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],iE(i),this._dimensions=Re(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new fE[r||"float"](this._rawCount),this._rawExtent[a]=Wo(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Wo());for(var l=a[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var c=i[u];TS(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<a;v++){var c=i[v],p=Kv.arrayRows.call(this,t[h]||f,c.property,h,v);n[v][d]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[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=Re(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Wo()),TS(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],h=t;h<r;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var p=a[v],g=this._dimValueGetter(d,u[v],h,v);p[h]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[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<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)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,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=r-a[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=c))}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<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=ll(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=ll(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<i;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var p=f[c][v];h=r(p,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=Tt(t),a=i.length;if(!a)return this;var o=r.count(),s=ll(r._rawCount),l=new s(o),u=0,c=i[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=f&&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],S=t[i[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=f&&y<=d||isNaN(y))&&(w>=b&&w<=S||isNaN(w))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var x=r.getRawIndex(m),y=h[i[0]][x];(y>=f&&y<=d||isNaN(y))&&(l[u++]=x)}else for(var m=0;m<o;m++){for(var C=!0,x=r.getRawIndex(m),M=0;M<a;M++){var E=i[M],y=h[E][x];(y<t[E][0]||y>t[E][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=Wo();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)l[h]=i[r[h]][d];l[o]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var c=0;c<v.length;c++){var p=r[c],g=v[c],m=u[p],y=i[p];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[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),c,f,d,h=new(ll(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var b=this.getRawIndex(_),S=a[b];isNaN(S)||(y+=S)}y/=g-p;var w=v,x=Math.min(v+l,o),C=v-1,M=a[u];c=-1,d=w;for(var E=-1,A=0,_=w;_<x;_++){var b=this.getRawIndex(_),S=a[b];if(isNaN(S)){A++,E<0&&(E=b);continue}f=Math.abs((C-m)*(S-M)-(C-_)*(y-M)),f>c&&(c=f,d=b)}A>0&&A<x-w&&(h[s++]=Math.min(E,d),d=Math.max(E,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=a._rawExtent[t]=Wo(),d=new(ll(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(v+i(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[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();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Wo();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}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<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&oa(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?IK(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Qe(this._extent),t._rawExtent=Qe(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=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 Vf(r[a],this._dimensions[a])}Kv={arrayRows:t,objectRows:function(r,n,i,a){return Vf(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Vf(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),OK=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(Yc(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=zr(s)?Ji:dn,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=qe(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=qe(f.sourceHeader,d.sourceHeader),p=qe(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[rm(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=[rm(_,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&&MS(a)}var o,s=[],l=[];return O(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&MS(f),s.push(c),l.push(u._getVersionSign())}),n?o=PK(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[fK(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Yc(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new nm,s.initData(new aE(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Yc(t)){var r=C0(t);return r?[r.getSourceManager()]:[]}else return Re(Fq(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Yc(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function Yc(e){return e.mainType==="series"}function MS(e){throw new Error(e)}var dE="line-height:1";function hE(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Xr(n+"")+"px;color:"+Xr(r)+";font-weight:"+Xr(i+""),valueStyle:"font-size:"+Xr(o+"")+"px;color:"+Xr(a)+";font-weight:"+Xr(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var RK=[0,10,20,30],kK=["",`
 `,`
 
 `,`
 
 
-`];function Ou(e,t){return t.type=e,t}function im(e){return e.type==="section"}function vP(e){return im(e)?NK:FK}function pP(e){if(im(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return O(e.blocks,function(i){var a=pP(i);a>=t&&(t=a+ +(n&&(!a||im(i)&&!i.noHeader)))}),t}return 0}function NK(e,t,r,n){var i=t.noHeader,a=BK(pP(t)),o=[],s=t.blocks||[];bi(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ps(u,l)){var c=new bK(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}O(s,function(v,p){var g=t.valueFormatter,m=vP(v)(g?se(se({},e),{valueFormatter:g}):e,v,p>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):am(o.join(""),i?r:a.html);if(i)return f;var d=tm(t.header,"ordinal",e.useUTC),h=hP(n,e.renderMode).nameStyle;return e.renderMode==="richText"?gP(e,d,h)+a.richText+f:am('<div style="'+h+";"+dP+';">'+Xr(d)+"</div>"+f,r)}function FK(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=ge(b)?b:[b],Re(b,function(x,w){return tm(x,ge(h)?h[w]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":tm(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!a,g=!s&&a,m=hP(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":gP(e,d,y))+(o?"":zK(e,v,p,g,_)):am((s?"":f)+(a?"":$K(d,!s,y))+(o?"":HK(v,p,g,_)),r)}}function Ex(e,t,r,n,i,a){if(e){var o=vP(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function BK(e){return{html:RK[e],richText:kK[e]}}function am(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+dP+';">'+e+r+"</div>"}function $K(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Xr(e)+"</span>"}function HK(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],'<span style="'+a+";"+n+'">'+Re(e,function(o){return Xr(o)}).join("&nbsp;&nbsp;")+"</span>"}function gP(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function zK(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 WK(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Lu(n)}function mP(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Xv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=C2()}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=Eq({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)?O(r,function(a){return se(n,a)}):se(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function VK(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=WK(t,r),c,f,d,h;if(o>1||l&&!o){var v=GK(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=c=Is(i,r,a[0]),f=p.type}else h=c=l?s[0]:s;var g=t0(t),m=g&&t.name||"",y=i.getName(r),_=n?m:y;return Ou("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Ou("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Vn(_),value:c,valueType:f})].concat(d||[])})}function GK(e,t,r,n,i){var a=t.getData(),o=oa(e,function(f,d,h){var v=a.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?O(n,function(f){c(Is(a,r,f),f)}):O(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Ou("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ki=Et();function qc(e,t){return e.getName(t)||e.getId(t)}var UK="__universalTransitionEnabled",Mh=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=Zl({count:YK,reset:qK}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=ki(this).sourceManager=new OK(this);a.prepareSource();var o=this.getInitialData(r,i);Lx(o,this),this.dataTask.context.data=o,ki(this).dataBeforeProcessed=o,Px(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Du(this),a=i?Sh(r):{},o=this.subType;xt.hasClass(o)&&(o+="Series"),st(r,n.getTheme().get(this.subType)),st(r,this.getDefaultOption()),Hg(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ds(r,a,i)},t.prototype.mergeOption=function(r,n){r=st(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Du(this);i&&Ds(this.option,r,i);var a=ki(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Lx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ki(this).dataBeforeProcessed=o,Px(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!zr(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Hg(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=om(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return ki(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=om(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}ki(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Ue(r)},t.prototype.getSourceManager=function(){return ki(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ki(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return VK({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Ge.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=T0.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<r.length;s++){var l=r[s],u=qc(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Tt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=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[qc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[UK])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"){Ie(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=qc(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=qc(r,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return xt.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}(xt);Jn(Mh,yK);Jn(Mh,T0);L2(Mh,xt);function Px(e){var t=e.name;t0(e)||(e.name=jK(e)||t)}function jK(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return O(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function YK(e){return e.model.getRawData().count()}function qK(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),KK}function KK(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Lx(e,t){O(UU(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Rt(XK,t))})}function XK(e,t){var r=om(e);return r&&r.setOutputEnd((t||this).count()),t}function om(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 wo=Mh;var D0=function(){function e(){this.group=new cn,this.uid=gh("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}();n0(D0);ch(D0);const xi=D0;function yP(){var e=Et();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 _P=Et(),ZK=yP(),I0=function(){function e(){this.group=new cn,this.uid=gh("viewChart"),this.renderTask=Zl({plan:QK,reset:JK}),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&&Ix(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Ix(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){g0(this.group,t)},e.markUpdateMethod=function(t,r){_P(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Dx(e,t,r){e&&Xg(e)&&(t==="emphasis"?Ug:jg)(e,r)}function Ix(e,t,r){var n=nc(e,t),i=t&&t.highlightKey!=null?i7(t.highlightKey):null;n!=null?O(cr(n),function(a){Dx(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){Dx(a,r,i)})}n0(I0);ch(I0);function QK(e){return ZK(e.model)}function JK(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&_P(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),eX[l]}var eX={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 co=I0;var Td="\0__throttleOriginMethod",Ox="\0__throttleRate",Rx="\0__throttleType";function O0(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var p=c||t,g=c||r;c=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function bP(e,t,r,n){var i=e[t];if(i){var a=i[Td]||i,o=i[Rx],s=i[Ox];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=O0(a,r,n==="debounce"),i[Td]=a,i[Rx]=n,i[Ox]=r}return i}}function sm(e,t){var r=e[t];r&&r[Td]&&(r.clear&&r.clear(),e[t]=r[Td])}var kx=Et(),Nx={itemStyle:Mu(DE,!0),lineStyle:Mu(LE,!0)},tX={lineStyle:"stroke",itemStyle:"fill"};function wP(e,t){var r=e.visualStyleMapper||Nx[t];return r||(console.warn("Unknown style type '"+t+"'."),Nx.itemStyle)}function xP(e,t){var r=e.visualDrawType||tX[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var rX={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=wP(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=xP(e,n),u=o[l],c=Ve(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ve(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Ve(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=se({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},ul=new rr,nX={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=wP(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ul.option=l[n];var u=i(ul),c=o.ensureUniqueItemVisual(s,"style");se(c,u),ul.option.decal&&(o.setItemVisual(s,"decal",ul.option.decal),ul.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},iX={performRawSeries:!0,overallReset:function(e){var t=Ue();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)),kx(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=kx(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=xP(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Kc=Math.PI;function aX(e,t){t=t||{},dt(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 cn,n=new Ht({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new dr({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 Ht({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 c0({shape:{startAngle:-Kc/2,endAngle:-Kc/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:Kc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Kc*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),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var oX=function(){function e(t,r,n,i){this._stageTaskMap=Ue(),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=Ue();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;O(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";bi(!(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;O(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.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 f&&f.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=Ue(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Zl({plan:fX,reset:dX,count:vX}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Zl({reset:sX});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Ue(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";bi(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,O(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Zl({reset:lX,onDirty:cX})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,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 Ve(t)&&(t={overallReset:t,seriesType:pX(t)}),t.uid=gh("stageHandler"),r&&(t.visualType=r),t},e}();function sX(e){e.overallReset(e.ecModel,e.api,e.payload)}function lX(e){return e.overallProgress&&uX}function uX(){this.agent.dirty(),this.getDownstream().dirty()}function cX(){this.agent&&this.agent.dirty()}function fX(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function dX(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=cr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Re(t,function(r,n){return SP(n)}):hX}var hX=SP(0);function SP(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function vX(e){return e.data.count()}function pX(e){Md=null;try{e(Ru,CP)}catch{}return Md}var Ru={},CP={},Md;TP(Ru,JE);TP(CP,eP);Ru.eachSeriesByType=Ru.eachRawSeriesByType=function(e){Md=e};Ru.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Md=e.subType)};function TP(e,t){for(var r in t.prototype)e[r]=Tr}const MP=oX;var Fx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const gX={color:Fx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Fx]};var ar="#B9B8CE",Bx="#100C2A",Xc=function(){return{axisLine:{lineStyle:{color:ar}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},$x=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],AP={darkMode:!0,color:$x,backgroundColor:Bx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ar}},textStyle:{color:ar},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ar}},dataZoom:{borderColor:"#71708A",textStyle:{color:ar},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:ar}},timeline:{lineStyle:{color:ar},label:{color:ar},controlStyle:{color:ar,borderColor:ar}},calendar:{itemStyle:{color:Bx},dayLabel:{color:ar},monthLabel:{color:ar},yearLabel:{color:ar}},timeAxis:Xc(),logAxis:Xc(),valueAxis:Xc(),categoryAxis:Xc(),line:{symbol:"circle"},graph:{color:$x},gauge:{title:{color:ar},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ar},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};AP.categoryAxis.splitLine.show=!1;const mX=AP;var yX=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Te(t)){var a=Gn(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};O(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(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 c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),lm=["symbol","symbolSize","symbolRotate","symbolOffset"],Hx=lm.concat(["symbolKeepAspect"]),_X={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<lm.length;o++){var s=lm[o],l=e.get(s);Ve(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(se({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Tt(i);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(d,g,i[g](h,v))}}return{dataEach:a?c:null}}},bX={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Hx.length;s++){var l=Hx[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function wX(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function xX(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function SX(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}O([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=se({},i),o.dispatchAction(se(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Vo(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=nc(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:ge(d)?f.getName(d[0]):f.getName(d),selected:Te(l)?l:se({},l)})}})}function CX(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Vo("map","selectchanged",t,i,n),Vo("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Vo("map","selected",t,i,n),Vo("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Vo("map","unselected",t,i,n),Vo("pie","unselected",t,i,n))})}function Al(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var TX=Math.round(Math.random()*9),MX=typeof Object.defineProperty=="function",AX=function(){function e(){this._id="__ec_inner_"+TX++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return MX?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const EX=AX;var PX=ht.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),LX=ht.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),DX=ht.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),IX=ht.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),OX={line:bo,rect:Ht,roundRect:Ht,square:Ht,circle:u0,diamond:LX,pin:DX,arrow:IX,triangle:PX},RX={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},um={};O(OX,function(e,t){um[t]=new e});var kX=ht.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=gd(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=um[n];i||(n="rect",i=um[n]),RX[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function NX(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function R0(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=SE(e.slice(8),new et(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=d0(e.slice(7),{},new et(t,r,n,i),o?"center":"cover"):l=new kX({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=NX,a&&l.setColor(a),l}function FX(e,t){if(e!=null)return ge(e)||(e=[e,e]),[gt(e[0],t[0])||0,gt(qe(e[1],e[0]),t[1])||0]}function to(e){return isFinite(e)}function BX(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=to(n)?n:0,i=to(i)?i:1,a=to(a)?a:0,o=to(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function $X(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=to(o)?o:.5,s=to(s)?s:.5,l=l>=0&&to(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function cm(e,t,r){for(var n=t.type==="radial"?$X(e,t,r):BX(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function HX(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Zc(e){return parseInt(e,10)}function Qc(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Zc(s[n])||Zc(e.style[n]))-(Zc(s[a])||0)-(Zc(s[o])||0)|0}function zX(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:bt(e)?[e]:ge(e)?e:null}function EP(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&zX(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Re(r,function(a){return a/i}),n/=i)}return[r,n]}var WX=new _o(!0);function Ad(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function zx(e){return typeof e=="string"&&e!=="none"}function Ed(e){var t=e.fill;return t!=null&&t!=="none"}function Wx(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 Vx(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 fm(e,t,r){var n=D2(t.image,t.__image,r);if(fh(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)*jU),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function VX(e,t,r,n){var i,a=Ad(r),o=Ed(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||WX,f=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=f?cm(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=f?cm(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=f||!t.__canvasFillPattern?fm(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=f||!t.__canvasStrokePattern?fm(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();c.setScale(S[0],S[1],t.segmentIgnoreThreshold);var C,M;e.setLineDash&&r.lineDash&&(i=EP(t),C=i[0],M=i[1]);var P=!0;(u||f&Ko)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),P=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),P&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=M),n||(r.strokeFirst?(a&&Vx(e,r),o&&Wx(e,r)):(o&&Wx(e,r),a&&Vx(e,r))),C&&e.setLineDash([])}function GX(e,t,r){var n=t.__image=D2(r.image,t.__image,t,t.onload);if(!(!n||!fh(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,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function UX(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||yo,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=EP(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Ad(r)&&e.strokeText(i,r.x,r.y),Ed(r)&&e.fillText(i,r.x,r.y)):(Ed(r)&&e.fillText(i,r.x,r.y),Ad(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var Gx=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ux=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function PP(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){wr(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?lo.opacity:o}(n||t.blend!==r.blend)&&(a||(wr(e,i),a=!0),e.globalCompositeOperation=t.blend||lo.blend);for(var s=0;s<Gx.length;s++){var l=Gx[s];(n||t[l]!==r[l])&&(a||(wr(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(wr(e,i),a=!0),e.shadowColor=t.shadowColor||lo.shadowColor),a}function jx(e,t,r,n,i){var a=ku(t,i.inHover),o=n?null:r&&ku(r,i.inHover)||{};if(a===o)return!1;var s=PP(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(wr(e,i),s=!0),zx(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(wr(e,i),s=!0),zx(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(wr(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(wr(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<Ux.length;c++){var f=Ux[c],d=f[0];(n||a[d]!==o[d])&&(s||(wr(e,i),s=!0),e[d]=a[d]||f[1])}return s}function jX(e,t,r,n,i){return PP(e,ku(t,i.inHover),r&&ku(r,i.inHover),n,i)}function LP(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function YX(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),LP(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function qX(e,t){return e&&t?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&&!t)}var Yx=1,qx=2,Kx=3,Xx=4;function KX(e){var t=Ed(e),r=Ad(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function wr(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function ku(e,t){return t&&e.__hoverStyle||e.style}function DP(e,t){ro(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ro(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Rr,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||HX(a,o))&&(o&&o.length&&(wr(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(wr(e,r),e.save(),YX(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof ht&&t.autoBatch&&KX(t.style);s||qX(i,u.transform)?(wr(e,r),LP(e,t)):c||wr(e,r);var f=ku(t,r.inHover);t instanceof ht?(r.lastDrawType!==Yx&&(l=!0,r.lastDrawType=Yx),jx(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),VX(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof Gg?(r.lastDrawType!==Kx&&(l=!0,r.lastDrawType=Kx),jx(e,t,u,l,r),UX(e,t,f)):t instanceof zs?(r.lastDrawType!==qx&&(l=!0,r.lastDrawType=qx),jX(e,t,u,l,r),GX(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==Xx&&(l=!0,r.lastDrawType=Xx),XX(e,t,r)),c&&n&&wr(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function XX(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ro(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ro(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Zv=new EX,Zx=new tc(100),Qx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function dm(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Zv.delete(e);var a=Zv.get(e);if(a)return a;var o=dt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Zv.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<Qx.length;++d){var h=o[Qx[d]];if(h!=null&&!ge(h)&&!Te(h)&&!bt(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(i?"-svg":"");var p=Zx.get(v);p&&(i?u.svgElement=p:u.image=p)}var g=OP(o.dashArrayX),m=ZX(o.dashArrayY),y=IP(o.symbol),_=QX(g),b=RP(m),x=!i&&Mo.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},S=M(),C;x&&(x.width=S.width*r,x.height=S.height*r,C=x.getContext("2d")),P(),f&&Zx.put(v,x||w),u.image=x,u.svgElement=w,u.svgWidth=S.width,u.svgHeight=S.height;function M(){for(var A=1,T=0,D=_.length;T<D;++T)A=fw(A,_[T]);for(var N=1,T=0,D=y.length;T<D;++T)N=fw(N,y[T].length);A*=N;var H=b*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(H,o.maxTileHeight))}}function P(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var A=0,T=0;T<m.length;++T)A+=m[T];if(A<=0)return;for(var D=-b,N=0,H=0,$=0;D<S.height;){if(N%2===0){for(var G=H/2%y.length,F=0,R=0,j=0;F<S.width*2;){for(var re=0,T=0;T<g[$].length;++T)re+=g[$][T];if(re<=0)break;if(R%2===0){var oe=(1-o.symbolSize)*.5,ye=F+g[$][R]*oe,Ae=D+m[N]*oe,V=g[$][R]*o.symbolSize,Q=m[N]*o.symbolSize,W=j/2%y[G].length;q(ye,Ae,V,Q,y[G][W])}F+=g[$][R],++j,++R,R===g[$].length&&(R=0)}++$,$===g.length&&($=0)}D+=m[N],++H,++N,N===m.length&&(N=0)}function q(le,de,J,L,I){var z=i?1:r,U=R0(I,le*z,de*z,J*z,L*z,o.color,o.symbolKeepAspect);if(i){var K=n.painter.renderOneToVNode(U);K&&w.children.push(K)}else DP(C,U)}}}}function IP(e){if(!e||e.length===0)return[["rect"]];if(Te(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Te(e[r])){t=!1;break}if(t)return IP([e]);for(var n=[],r=0;r<e.length;++r)Te(e[r])?n.push([e[r]]):n.push(e[r]);return n}function OP(e){if(!e||e.length===0)return[[0,0]];if(bt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!bt(e[n])){r=!1;break}if(r)return OP([e]);for(var i=[],n=0;n<e.length;++n)if(bt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Re(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function ZX(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(bt(e)){var t=Math.ceil(e);return[t,t]}var r=Re(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function QX(e){return Re(e,function(t){return RP(t)})}function RP(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function JX(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=dm(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=dm(i,t)}}})}var eZ=new ei;const yn=eZ;var kP={};function tZ(e,t){kP[e]=t}function rZ(e){return kP[e]}var nZ=1,iZ=800,aZ=900,oZ=1e3,sZ=2e3,lZ=5e3,NP=1e3,uZ=1100,k0=2e3,FP=3e3,cZ=4e3,Ah=4500,fZ=4600,dZ=5e3,hZ=6e3,BP=7e3,vZ={PROCESSOR:{FILTER:oZ,SERIES_FILTER:iZ,STATISTIC:lZ},VISUAL:{LAYOUT:NP,PROGRESSIVE_LAYOUT:uZ,GLOBAL:k0,CHART:FP,POST_CHART_LAYOUT:fZ,COMPONENT:cZ,BRUSH:dZ,CHART_ITEM:Ah,ARIA:hZ,DECAL:BP}},Qt="__flagInMainProcess",gr="__pendingUpdate",Qv="__needsUpdateStatus",Jx=/^[a-zA-Z0-9_]+$/,Jv="__connectUpdateStatus",eS=0,pZ=1,gZ=2;function $P(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return zP(this,e,t)}}function HP(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return zP(this,e,t)}}function zP(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),ei.prototype[t].apply(e,r)}var WP=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ei),VP=WP.prototype;VP.on=HP("on");VP.off=HP("off");var Go,ep,Jc,Ni,tp,rp,np,cl,fl,tS,rS,ip,nS,ef,iS,GP,Vr,aS,UP=function(e){pe(t,e);function t(r,n,i){var a=e.call(this,new yX)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Te(n)&&(n=jP[n]),a._dom=r;var o="canvas",s="auto",l=!1,u=a._zr=uw(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:qe(i.useDirtyRect,l),useCoarsePointer:qe(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=O0(_t(u.flush,u),17),n=Qe(n),n&&rP(n,!0),a._theme=n,a._locale=wq(i.locale||OE),a._coordSysMgr=new M0;var c=a._api=iS(a);function f(d,h){return d.__prio-h.__prio}return If(Ld,f),If(hm,f),a._scheduler=new MP(a,c,hm,Ld),a._messageCenter=new WP,a._initEvents(),a.resize=_t(a.resize,a),u.animation.on("frame",a._onframe,a),tS(u,a),rS(u,a),xg(a),a}return t.prototype._onframe=function(){if(!this._disposed){aS(this);var r=this._scheduler;if(this[gr]){var n=this[gr].silent;this[Qt]=!0;try{Go(this),Ni.update.call(this,null,this[gr].updateParams)}catch(l){throw this[Qt]=!1,this[gr]=null,l}this._zr.flush(),this[Qt]=!1,this[gr]=null,cl.call(this,n),fl.call(this,n)}else if(r.unfinished){var i=nZ,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),rp(this,a),r.performVisualTasks(a),ef(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&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[Qt]){if(this._disposed){this.id;return}var a,o,s;if(Ie(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Qt]=!0,!this._model||n){var l=new tK(this._api),u=this._theme,c=this._model=new JE;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},vm);var f={seriesTransition:s,optionChanged:!0};if(i)this[gr]={silent:a,updateParams:f},this[Qt]=!1,this.getZr().wakeUp();else{try{Go(this),Ni.update.call(this,null,f)}catch(d){throw this[gr]=null,this[Qt]=!1,d}this._ssr||this._zr.flush(),this[gr]=null,this[Qt]=!1,cl.call(this,a),fl.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||Ge.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(Ge.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return O(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;O(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return O(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(oS[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();O(Jl,function(_,b){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Qe(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),c=o(w.right,c),f=o(w.bottom,f),d.push({dom:x,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Mo.createCanvas(),m=uw(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return O(d,function(_){var b=_.left-l,x=_.top-u;y+='<g transform="translate('+b+","+x+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Ht({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),O(d,function(_){var b=new zs({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 tp(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return tp(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Cv(i,r);return O(o,function(s,l){l.indexOf("Models")>=0&&O(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Cv(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?wX(s,l,n):xX(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;O(mZ,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Al(s,function(v){var p=ft(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=se({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),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)}),O(Ql,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),O(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),CX(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&&E2(this.getDom(),F0,"");var n=this,i=n._api,a=n._model;O(n._componentsViews,function(o){o.dispose(a,i)}),O(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 Jl[n.id]},t.prototype.resize=function(r){if(!this[Qt]){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[gr]&&(a==null&&(a=this[gr].silent),i=!0,this[gr]=null),this[Qt]=!0;try{i&&Go(this),Ni.update.call(this,{type:"resize",animation:se({duration:0},r&&r.animation)})}catch(o){throw this[Qt]=!1,o}this[Qt]=!1,cl.call(this,a),fl.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ie(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!pm[r]){var i=pm[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=se({},r);return n.type=Ql[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ie(n)||(n={silent:!!n}),!!Pd[r.type]&&this._model){if(this[Qt]){this._pendingActions.push(r);return}var i=n.silent;np.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Ge.browser.weChat&&this._throttledZrFlush(),cl.call(this,i),fl.call(this,i)}},t.prototype.updateLabelLayout=function(){yn.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(){Go=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),ep(f,!0),ep(f,!1),d.plan()},ep=function(f,d){for(var h=f._model,v=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_<p.length;_++)p[_].__alive=!1;d?h.eachComponent(function(w,S){w!=="series"&&b(S)}):h.eachSeries(b);function b(w){var S=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,M=!S&&g[C];if(!M){var P=Gn(w.type),A=d?xi.getClass(P.main,P.sub):co.getClass(P.sub);M=new A,M.init(h,y),g[C]=M,p.push(M),m.add(M.group)}w.__viewId=M.__id=C,M.__alive=!0,M.__model=w,M.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!d&&v.prepareView(M,w,h,y)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!d&&x.renderTask.dispose(),m.remove(x.group),x.dispose(h,y),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Jc=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){O([].concat(f._componentsViews).concat(f._chartsViews),x);return}var m={};m[v+"Id"]=h[v+"Id"],m[v+"Index"]=h[v+"Index"],m[v+"Name"]=h[v+"Name"];var y={mainType:v,query:m};p&&(y.subType=p);var _=h.excludeSeriesId,b;_!=null&&(b=Ue(),O(cr(_),function(w){var S=Yn(w,null);S!=null&&b.set(S,!0)})),g&&g.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;if(!S)if($w(h))if(w instanceof wo)h.type===uo&&!h.notBlur&&!w.get(["emphasis","disabled"])&&XY(w,h,f._api);else{var C=l0(w.mainType,w.componentIndex,h.name,f._api),M=C.focusSelf,P=C.dispatchers;h.type===uo&&M&&!h.notBlur&&qg(w.mainType,w.componentIndex,f._api),P&&O(P,function(A){h.type===uo?Ug(A):jg(A)})}else Zg(h)&&w instanceof wo&&(JY(w,h,f._api),Fw(w),Vr(f))},f),g&&g.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;S||x(f[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},f);function x(w){w&&w.__alive&&w[d]&&w[d](w.__model,g,f._api,h)}},Ni={prepareAndUpdate:function(f){Go(this),Ni.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),g.create(h,v),m.performDataProcessorTasks(h,f),rp(this,h),g.update(h,v),r(h),m.performVisualTasks(h,f),ip(this,h,v,f,d);var y=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),yn.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(m,y){if(m!=="series"){var _=d.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,h,v,f);b&&b.update&&p.push(_)}else p.push(_)}});var g=Ue();h.eachSeries(function(m){var y=d._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,h,v,f);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),ef(this,h,v,f,{},g),yn.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),co.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),ip(this,d,this._api,f,{}),yn.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),co.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,f)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,f)}),yn.trigger("afterupdate",h,this._api))},updateLayout:function(f){Ni.update.call(this,f)}},tp=function(f,d,h,v){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,y=Cv(p,h),_=0;_<g.length;_++){var b=g[_];if(b[d]&&(m=b[d](p,y,v))!=null)return m}},rp=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},np=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,m=Pd[p],y=m.actionInfo,_=(y.update||"update").split(":"),b=_.pop(),x=_[0]!=null&&Gn(_[0]);this[Qt]=!0;var w=[f],S=!1;f.batch&&(S=!0,w=Re(f.batch,function(N){return N=dt(se({},N),f),N.batch=null,N}));var C=[],M,P=Zg(f),A=$w(f);if(A&&Q2(this._api),O(w,function(N){if(M=m.action(N,h._model,h._api),M=M||se({},N),M.type=y.event||M.type,C.push(M),A){var H=r0(f),$=H.queryOptionMap,G=H.mainTypeSpecified,F=G?$.keys()[0]:"series";Jc(h,b,N,F),Vr(h)}else P?(Jc(h,b,N,"series"),Vr(h)):x&&Jc(h,b,N,x.main,x.sub)}),b!=="none"&&!A&&!P&&!x)try{this[gr]?(Go(this),Ni.update.call(this,f),this[gr]=null):Ni[b].call(this,f)}catch(N){throw this[Qt]=!1,N}if(S?M={type:y.event||p,escapeConnect:g,batch:C}:M=C[0],this[Qt]=!1,!d){var T=this._messageCenter;if(T.trigger(M.type,M),P){var D={type:"selectchanged",escapeConnect:g,selected:e7(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};T.trigger(D.type,D)}}},cl=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();np.call(this,h,f)}},fl=function(f){!f&&this.trigger("updated")},tS=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[gr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},rS=function(f,d){f.on("mouseover",function(h){var v=h.target,p=Al(v,Xg);p&&(ZY(p,h,d._api),Vr(d))}).on("mouseout",function(h){var v=h.target,p=Al(v,Xg);p&&(QY(p,h,d._api),Vr(d))}).on("click",function(h){var v=h.target,p=Al(v,function(y){return ft(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ft(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],v=!1;if(f.eachComponent(function(y,_){var b=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();v=v||!!w,(y==="series"?h:d).push({zlevel:b,z:x,idx:_.componentIndex,type:y,key:w})}),v){var p=d.concat(h),g,m;If(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),O(p,function(y){var _=f.getComponent(y.type,y.idx),b=y.zlevel,x=y.key;g!=null&&(b=Math.max(g,b)),x?(b===g&&x!==m&&b++,m=x):m&&(b===g&&b++,m=""),g=b,_.setZLevel(b)})}}ip=function(f,d,h,v,p){n(d),nS(f,d,h,v,p),O(f._chartsViews,function(g){g.__alive=!1}),ef(f,d,h,v,p),O(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},nS=function(f,d,h,v,p,g){O(g||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,d,h,v),s(y,m),c(y,m)})},ef=function(f,d,h,v,p,g){var m=f._scheduler;p=se(p||{},{updatedSeries:d.getSeries()}),yn.trigger("series:beforeupdate",d,h,p);var y=!1;d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];b.__alive=!0;var x=b.renderTask;m.updatePayload(x,v),u(_,b),g&&g.get(_.uid)&&x.dirty(),x.perform(m.getPerformArgs(x))&&(y=!0),b.group.silent=!!_.get("silent"),o(_,b),Fw(_)}),m.unfinished=y||m.unfinished,yn.trigger("series:layoutlabels",d,h,p),yn.trigger("series:transition",d,h,p),d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];s(_,b),c(_,b)}),a(f,d),yn.trigger("series:afterupdate",d,h,p)},Vr=function(f){f[Qv]=!0,f.getZr().wakeUp()},aS=function(f){f[Qv]&&(f.getZr().storage.traverse(function(d){fs(d)||i(d)}),f[Qv]=!1)};function i(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}f.selected&&f.states.select&&d.push("select"),f.hoverState===o0&&f.states.emphasis?d.push("emphasis"):f.hoverState===a0&&f.states.blur&&d.push("blur"),f.useStates(d)}function a(f,d){var h=f._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!Ge.node&&!Ge.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(f,d,h,v){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var b=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(b&&b.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!fs(h)){var v=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(fs(m))return;if(m instanceof ht&&a7(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)}})}iS=function(f){return new(function(d){pe(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){Ug(v,p),Vr(f)},h.prototype.leaveEmphasis=function(v,p){jg(v,p),Vr(f)},h.prototype.enterBlur=function(v){KY(v),Vr(f)},h.prototype.leaveBlur=function(v){q2(v),Vr(f)},h.prototype.enterSelect=function(v){K2(v),Vr(f)},h.prototype.leaveSelect=function(v){X2(v),Vr(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(eP))(f)},GP=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[Jv]=v}}O(Ql,function(h,v){f._messageCenter.on(v,function(p){if(oS[f.group]&&f[Jv]!==eS){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];O(Jl,function(y){y!==f&&y.group===f.group&&m.push(y)}),d(m,eS),O(m,function(y){y[Jv]!==pZ&&y.dispatchAction(g)}),d(m,gZ)}})})}}(),t}(ei),N0=UP.prototype;N0.on=$P("on");N0.off=$P("off");N0.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var mZ=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],Pd={},Ql={},hm=[],vm=[],Ld=[],jP={},pm={},Jl={},oS={},yZ=+new Date-0,F0="_echarts_instance_";function B0(e,t,r){var n=!(r&&r.ssr);if(n){var i=_Z(e);if(i)return i}var a=new UP(e,t,r);return a.id="ec_"+yZ++,Jl[a.id]=a,n&&E2(e,F0,a.id),GP(a),yn.trigger("afterinit",a),a}function _Z(e){return Jl[kj(e,F0)]}function YP(e,t){jP[e]=t}function qP(e){ot(vm,e)<0&&vm.push(e)}function KP(e,t){H0(hm,e,t,sZ)}function bZ(e){$0("afterinit",e)}function wZ(e){$0("afterupdate",e)}function $0(e,t){yn.on(e,t)}function Gs(e,t,r){Ve(t)&&(r=t,t="");var n=Ie(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Ql[t]&&(bi(Jx.test(n)&&Jx.test(t)),Pd[n]||(Pd[n]={action:r,actionInfo:e}),Ql[t]=n)}function xZ(e,t){M0.register(e,t)}function SZ(e,t){H0(Ld,e,t,NP,"layout")}function Po(e,t){H0(Ld,e,t,FP,"visual")}var sS=[];function H0(e,t,r,n,i){if((Ve(t)||Ie(t))&&(r=t,t=n),!(ot(sS,r)>=0)){sS.push(r);var a=MP.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function XP(e,t){pm[e]=t}function CZ(e,t,r){var n=rZ("registerMap");n&&n(e,t,r)}var TZ=AK;Po(k0,rX);Po(Ah,nX);Po(Ah,iX);Po(k0,_X);Po(Ah,bX);Po(BP,JX);qP(rP);KP(aZ,uK);XP("default",aX);Gs({type:uo,event:uo,update:uo},Tr);Gs({type:$f,event:$f,update:$f},Tr);Gs({type:jl,event:jl,update:jl},Tr);Gs({type:Hf,event:Hf,update:Hf},Tr);Gs({type:Yl,event:Yl,update:Yl},Tr);YP("light",gX);YP("dark",mX);function dl(e){return e==null?0:e.length||1}function lS(e){return e}var MZ=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||lS,this._newKeyGetter=i||lS,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;o<t.length;o++){var s=i[o],l=n[s],u=dl(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,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;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=dl(u),d=dl(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=dl(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=dl(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const AZ=MZ;var EZ=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function PZ(e,t){var r={},n=r.encode={},i=Ue(),a=[],o=[],s={};O(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;ap(n,v)[p]=d,h.isExtraCoord||(i.set(v,1),DZ(h.type)&&(a[0]=d),ap(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}YE.each(function(g,m){var y=ap(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Re(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new EZ(s,t),r}function ap(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function LZ(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function DZ(e){return!(e==="ordinal"||e==="time")}var IZ=function(){function e(t){this.otherDims={},t!=null&&se(this,t)}return e}();const Gf=IZ;var OZ=Et(),RZ={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ZP=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=eL(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return qe(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=iP(this.source),n=!tL(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=RZ[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function QP(e){return e instanceof ZP}function JP(e){for(var t=Ue(),r=0;r<(e||[]).length;r++){var n=e[r],i=Ie(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function eL(e){var t=OZ(e);return t.dimNameMap||(t.dimNameMap=JP(e.dimensionsDefine))}function tL(e){return e>30}var hl=Ie,Fi=Re,kZ=typeof Int32Array>"u"?Array:Int32Array,NZ="e\0\0",uS=-1,FZ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],BZ=["_approximateExtent"],cS,tf,vl,pl,op,rf,sp,$Z=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;QP(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={},c=0;c<n.length;c++){var f=n[c],d=Te(f)?new Gf({name:f}):f instanceof Gf?f:new Gf(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Ue();O(o,function(g){p.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(bt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof nm&&(a=t),!a){var o=this.dimensions,s=A0(t)||Er(t)?new aP(t,o.length):t;a=new nm;var l=Fi(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=PZ(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&sp(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Ji&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===dn;if(l&&!i.pure)for(var u=[],c=t;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&Cj(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=Yn(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=Yn(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)sp(this,c);cS(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){hl(t)?se(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=vl(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return tf(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return ge(t)?i.getValues(Fi(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?uS:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Ve(t)&&(n=r,r=t,t=[]);var i=n||this,a=Fi(pl(t),this._getStoreDimIndex,this);this._store.each(a,i?_t(r,i):r)},e.prototype.filterSelf=function(t,r,n){Ve(t)&&(n=r,r=t,t=[]);var i=n||this,a=Fi(pl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?_t(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Tt(t);return O(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Ve(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Fi(pl(t),this._getStoreDimIndex,this),s=rf(this);return s._store=this._store.map(o,a?_t(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Fi(pl(t),this._getStoreDimIndex,this);this._store.modify(o,a?_t(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=rf(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=rf(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new rr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new AZ(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return tf(t,n)},function(n){return tf(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},hl(t)?se(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},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():hl(a)&&(a=se({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,hl(r)?se(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){hl(t)?se(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?se(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;$Y(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){O(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:Fi(this.dimensions,this._getDimInfo,this),this.hostModel)),op(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Ve(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Uy(arguments)))})},e.internalField=function(){cS=function(t){var r=t._invertedIndicesMap;O(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new kZ(o.categories.length);for(var l=0;l<n.length;l++)n[l]=uS;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},vl=function(t,r,n){return Yn(t._getCategory(r,n),null)},tf=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=vl(t,t._idDimIdx,r)),n==null&&(n=NZ+r),n},pl=function(t){return ge(t)||(t=t!=null?[t]:[]),t},rf=function(t){var r=new e(t._schema?t._schema:Fi(t.dimensions,t._getDimInfo,t),t.hostModel);return op(r,t),r},op=function(t,r){O(FZ.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,O(BZ,function(n){t[n]=Qe(r[n])}),t._calculationInfo=se({},r._calculationInfo)},sp=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=vl(t,a,r)),l==null&&o!=null&&(i[r]=l=vl(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const rL=$Z;function nL(e,t){A0(e)||(e=E0(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Ue(),a=[],o=zZ(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&tL(o),l=n===e.dimensionsDefine,u=l?eL(e):JP(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Ue(c),d=new cP(o),h=0;h<d.length;h++)d[h]=-1;function v(M){var P=d[M];if(P<0){var A=n[M],T=Ie(A)?A:{name:A},D=new Gf,N=T.name;N!=null&&u.get(N)!=null&&(D.name=D.displayName=N),T.type!=null&&(D.type=T.type),T.displayName!=null&&(D.displayName=T.displayName);var H=a.length;return d[M]=H,D.storeDimIndex=M,a.push(D),D}return a[P]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(M,P){var A=cr(M).slice();if(A.length===1&&!Te(A[0])&&A[0]<0){f.set(P,!1);return}var T=f.set(P,[]);O(A,function(D,N){var H=Te(D)?u.get(D):D;H!=null&&H<o&&(T[N]=H,g(v(H),P,N))})});var p=0;O(r,function(M){var P,A,T,D;if(Te(M))P=M,D={};else{D=M,P=D.name;var N=D.ordinalMeta;D.ordinalMeta=null,D=se({},D),D.ordinalMeta=N,A=D.dimsDef,T=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var H=f.get(P);if(H!==!1){if(H=cr(H),!H.length)for(var $=0;$<(A&&A.length||1);$++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&H.push(p++)}O(H,function(G,F){var R=v(G);if(l&&D.type!=null&&(R.type=D.type),g(dt(R,D),P,F),R.name==null&&A){var j=A[F];!Ie(j)&&(j={name:j}),R.name=R.displayName=j.name,R.defaultTooltip=j.defaultTooltip}T&&dt(R.otherDims,T)})}});function g(M,P,A){YE.get(P)!=null?M.otherDims[P]=A:(M.coordDim=P,M.coordDimIndex=A,i.set(P,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function x(M){M.name==null&&(M.name=M.coordDim)}if(s)O(a,function(M){x(M)}),a.sort(function(M,P){return M.storeDimIndex-P.storeDimIndex});else for(var w=0;w<o;w++){var S=v(w),C=S.coordDim;C==null&&(S.coordDim=WZ(b,i,_),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),x(S),S.type==null&&(XE(e,w)===Ut.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return HZ(a),new ZP({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function HZ(e){for(var t=Ue(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function zZ(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return O(t,function(a){var o;Ie(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function WZ(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 VZ=function(){function e(t){this.coordSysDims=[],this.axisMap=Ue(),this.categoryAxisMap=Ue(),this.coordSysName=t}return e}();function GZ(e){var t=e.get("coordinateSystem"),r=new VZ(t),n=UZ[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var UZ={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Cn).models[0],a=e.getReferringComponents("yAxis",Cn).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Uo(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Uo(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Cn).models[0];t.coordSysDims=["single"],r.set("single",i),Uo(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Cn).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Uo(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Uo(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();O(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Uo(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Uo(e){return e.get("type")==="category"}function jZ(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;YZ(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(O(a,function(y,_){Te(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,p=0;O(a,function(y){y.coordDim===h&&p++});var g={name:f,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(f,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function YZ(e){return!QP(e.schema)}function iL(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function qZ(e,t){return iL(e,t)?e.getCalculationInfo("stackResultDimension"):t}function KZ(e,t){var r=e.get("coordinateSystem"),n=M0.get(r),i;return t&&t.coordSysDims&&(i=Re(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=LZ(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function XZ(e,t,r){var n,i;return r&&O(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 aL(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=E0(e)):(i=n.getSource(),a=i.sourceFormat===dn);var o=GZ(t),s=KZ(t,o),l=r.useEncodeDefaulter,u=Ve(l)?l:l?Rt(kq,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=nL(i,c),d=XZ(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),v=jZ(t,{schema:f,store:h}),p=new rL(f,t);p.setCalculationInfo(v);var g=d!=null&&ZZ(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 ZZ(e){if(e.sourceFormat===dn){var t=QZ(e.data||[]);return!ge(rc(t))}}function QZ(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var oL=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[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}();ch(oL);const Ei=oL;var JZ=0,eQ=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++JZ}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Re(n,tQ);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=Ue(this.categories))},e}();function tQ(e){return Ie(e)&&e.value!=null?e.value:e+""}const gm=eQ;function mm(e){return e.type==="interval"||e.type==="log"}function rQ(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=S2(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=sL(o),l=i.niceTickExtent=[kt(Math.ceil(e[0]/o)*o,s),kt(Math.floor(e[1]/o)*o,s)];return nQ(l,e),i}function lp(e){var t=Math.pow(10,e0(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,kt(r*t)}function sL(e){return hi(e)+2}function fS(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function nQ(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),fS(e,0,t),fS(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Eh(e,t){return e>=t[0]&&e<=t[1]}function Ph(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Lh(e,t){return e*(t[1]-t[0])+t[0]}var lL=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 gm({})),ge(i)&&(i=new gm({categories:Re(i,function(a){return Ie(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),Eh(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Ph(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Lh(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<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ei);Ei.registerClass(lL);const uL=lL;var Ba=kt,cL=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 Eh(r,this._extent)},t.prototype.normalize=function(r){return Ph(r,this._extent)},t.prototype.scale=function(r){return Lh(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[0]&&(n[0]=r[0]),r[1]>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=sL(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]<a[0]&&(r?s.push({value:Ba(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Ba(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:Ba(c+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;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=Ba(l.value+(u+1)*d);h>a[0]&&h<a[1]&&c.push(h),u++}i.push(c)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=hi(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Ba(r.value,i,!0);return VE(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=rQ(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Ba(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Ba(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Ei);Ei.registerClass(cL);const sc=cL;var fL=typeof Float32Array<"u",iQ=fL?Float32Array:Array;function up(e){return ge(e)?fL?new Float32Array(e):e:new iQ(e)}var aQ="__ec_stack_";function z0(e){return e.get("stack")||aQ+e.seriesIndex}function W0(e){return e.dim+e.index}function dL(e,t){var r=[];return t.eachSeriesByType(e,function(n){vL(n)&&r.push(n)}),r}function oQ(e){var t={};O(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),p=0,g=v.count();p<g;++p){var m=v.get(h,p);t[d]?t[d].push(m):t[d]=[m]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function hL(e){var t=oQ(e),r=[];return O(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],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=gt(n.get("barWidth"),s),p=gt(n.get("barMaxWidth"),s),g=gt(n.get("barMinWidth")||(pL(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:W0(a),stackId:z0(n)})}),sQ(r)}function sQ(e){var t={};O(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 c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);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 O(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Tt(a).length;s=Math.max(35-l*4,15)+"%"}var u=gt(s,o),c=gt(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),O(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,f-=b+c*b,d--}else{var b=h;y&&y<b&&(b=Math.min(y,f)),_&&_>b&&(b=_),b!==h&&(m.width=b,f-=b+c*b,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;O(a,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+c)}),p&&(v-=p.width*c);var g=-v/2;O(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function lQ(e,t,r){if(e&&t){var n=e[W0(t)];return n!=null&&r!=null?n[z0(r)]:n}}function uQ(e,t){var r=dL(e,t),n=hL(r);O(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=z0(i),u=n[W0(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function cQ(e){return{seriesType:e,plan:yP(),reset:function(t){if(vL(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),c=r.getCalculationInfo("stackResultDimension"),f=iL(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=fQ(i,a),v=pL(t),p=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var x=_.count,w=v&&up(x*3),S=v&&l&&up(x*3),C=v&&up(x),M=n.master.getRect(),P=d?M.width:M.height,A,T=b.getStore(),D=0;(A=_.next())!=null;){var N=T.get(f?g:o,A),H=T.get(s,A),$=h,G=void 0;f&&(G=+N-T.get(o,A));var F=void 0,R=void 0,j=void 0,re=void 0;if(d){var oe=n.dataToPoint([N,H]);if(f){var ye=n.dataToPoint([G,H]);$=ye[0]}F=$,R=oe[1]+y,j=oe[0]-$,re=m,Math.abs(j)<p&&(j=(j<0?-1:1)*p)}else{var oe=n.dataToPoint([H,N]);if(f){var ye=n.dataToPoint([H,G]);$=ye[1]}F=oe[0]+y,R=$,j=m,re=oe[1]-$,Math.abs(re)<p&&(re=(re<=0?-1:1)*p)}v?(w[D]=F,w[D+1]=R,w[D+2]=d?j:re,S&&(S[D]=d?M.x:F,S[D+1]=d?R:M.y,S[D+2]=P),C[A]=A):b.setItemLayout(A,{x:F,y:R,width:j,height:re}),D+=3}v&&b.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:S,valueAxisHorizontal:d})}}}}}}function vL(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function pL(e){return e.pipelineContext&&e.pipelineContext.large}function fQ(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var dQ=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},gL=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return mh(r.value,tx[Tq(ds(this._minLevelUnit))]||tx.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Mq(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=_Q(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=en,n[1]+=en),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-en}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=nf.length,l=Math.min(dQ(nf,this._approxInterval,0,s),s-1);this._interval=nf[l][1],this._minLevelUnit=nf[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return bt(r)?r:+wi(r)},t.prototype.contain=function(r){return Eh(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Ph(this.parse(r),this._extent)},t.prototype.scale=function(r){return Lh(r,this._extent)},t.type="time",t}(sc),nf=[["second",b0],["minute",w0],["hour",Kl],["quarter-day",Kl*6],["half-day",Kl*12],["day",en*1.2],["half-week",en*3.5],["week",en*7],["month",en*31],["quarter",en*95],["half-year",ex/2],["year",ex]];function hQ(e,t,r,n){var i=wi(t),a=wi(r),o=function(v){return rx(i,v,n)===rx(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&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 c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function vQ(e,t){return e/=en,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function pQ(e){var t=30*en;return e/=t,e>6?6:e>3?3:e>2?2:1}function gQ(e){return e/=Kl,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function dS(e,t){return e/=t?w0:b0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function mQ(e){return S2(e,!0)}function yQ(e,t,r){var n=new Date(e);switch(ds(t)){case"year":case"month":n[FE(r)](0);case"day":n[BE(r)](1);case"hour":n[$E(r)](0);case"minute":n[HE(r)](0);case"second":n[zE(r)](0),n[WE(r)](0)}return n.getTime()}function _Q(e,t,r,n){var i=1e4,a=kE,o=0;function s(P,A,T,D,N,H,$){for(var G=new Date(A),F=A,R=G[D]();F<T&&F<=n[1];)$.push({value:F}),R+=P,G[N](R),F=G.getTime();$.push({value:F,notAdd:!0})}function l(P,A,T){var D=[],N=!A.length;if(!hQ(ds(P),n[0],n[1],r)){N&&(A=[{value:yQ(new Date(n[0]),P,r)},{value:n[1]}]);for(var H=0;H<A.length-1;H++){var $=A[H].value,G=A[H+1].value;if($!==G){var F=void 0,R=void 0,j=void 0,re=!1;switch(P){case"year":F=Math.max(1,Math.round(t/en/365)),R=x0(r),j=Aq(r);break;case"half-year":case"quarter":case"month":F=pQ(t),R=hs(r),j=FE(r);break;case"week":case"half-week":case"day":F=vQ(t),R=yh(r),j=BE(r),re=!0;break;case"half-day":case"quarter-day":case"hour":F=gQ(t),R=Pu(r),j=$E(r);break;case"minute":F=dS(t,!0),R=_h(r),j=HE(r);break;case"second":F=dS(t,!1),R=bh(r),j=zE(r);break;case"millisecond":F=mQ(t),R=wh(r),j=WE(r);break}s(F,$,G,R,j,re,D),P==="year"&&T.length>1&&H===0&&T.unshift({value:T[0].value-F})}}for(var H=0;H<D.length;H++)T.push(D[H]);return D}}for(var u=[],c=[],f=0,d=0,h=0;h<a.length&&o++<i;++h){var v=ds(a[h]);if(Cq(a[h])){l(a[h],u[u.length-1]||[],c);var p=a[h+1]?ds(a[h+1]):null;if(v!==p){if(c.length){d=f,c.sort(function(P,A){return P.value-A.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;(m===0||c[m-1].value!==y)&&(g.push(c[m]),y>=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===a[h]))break}c=[]}}}for(var b=Vt(Re(u,function(P){return Vt(P,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(P){return P.length>0}),x=[],w=b.length-1,h=0;h<b.length;++h)for(var S=b[h],C=0;C<S.length;++C)x.push({value:S[C].value,level:w-h});x.sort(function(P,A){return P.value-A.value});for(var M=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&M.push(x[h]);return M}Ei.registerClass(gL);const bQ=gL;var hS=Ei.prototype,eu=sc.prototype,wQ=kt,xQ=Math.floor,SQ=Math.ceil,af=Math.pow,vn=Math.log,V0=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new sc,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=eu.getTicks.call(this,r);return Re(o,function(s){var l=s.value,u=kt(af(this.base,l));return u=l===i[0]&&this._fixMin?of(u,a[0]):u,u=l===i[1]&&this._fixMax?of(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=vn(this.base);r=vn(Math.max(0,r))/i,n=vn(Math.max(0,n))/i,eu.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=hS.getExtent.call(this);n[0]=af(r,n[0]),n[1]=af(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=of(n[0],a[0])),this._fixMax&&(n[1]=of(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=vn(r[0])/vn(n),r[1]=vn(r[1])/vn(n),hS.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=wj(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[kt(SQ(n[0]/a)*a),kt(xQ(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){eu.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=vn(r)/vn(this.base),Eh(r,this._extent)},t.prototype.normalize=function(r){return r=vn(r)/vn(this.base),Ph(r,this._extent)},t.prototype.scale=function(r){return r=Lh(r,this._extent),af(this.base,r)},t.type="log",t}(Ei),mL=V0.prototype;mL.getMinorTicks=eu.getMinorTicks;mL.getLabel=eu.getLabel;function of(e,t){return wQ(e,hi(t))}Ei.registerClass(V0);const CQ=V0;var TQ=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=this._modelMinRaw=r.get("min",!0);Ve(a)?this._modelMinNum=sf(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=sf(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(Ve(o)?this._modelMaxNum=sf(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=sf(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=ge(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[sa(l[0],1),sa(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=cd(s)||cd(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[AQ[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=MQ[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),MQ={min:"_determinedMin",max:"_determinedMax"},AQ={min:"_dataMin",max:"_dataMax"};function EQ(e,t,r){var n=e.rawExtentInfo;return n||(n=new TQ(e,t,r),e.rawExtentInfo=n,n)}function sf(e,t){return t==null?null:cd(t)?NaN:e.parse(t)}function yL(e,t){var r=e.type,n=EQ(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=dL("bar",o),l=!1;if(O(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=hL(s),c=PQ(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function PQ(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=lQ(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;O(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;O(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function vS(e,t){var r=t,n=yL(e,r),i=n.extent,a=r.get("splitNumber");e instanceof CQ&&(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 LQ(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new uL({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new bQ({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ei.getClass(t)||sc)}}function DQ(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function lc(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):Ve(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(G0(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function G0(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function IQ(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof uL?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=lc(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c},d=s(f,c),h=o.getTextRect(d),v=OQ(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function OQ(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new et(e.x,e.y,a,o);return s}function U0(e){var t=e.get("interval");return t??"auto"}function _L(e){return e.type==="category"&&U0(e.getLabelModel())===0}function RQ(e,t){var r={};return O(e.mapDimensionsAll(t),function(n){r[qZ(e,n)]=!0}),Tt(r)}var kQ=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),pS=[],NQ={registerPreprocessor:qP,registerProcessor:KP,registerPostInit:bZ,registerPostUpdate:wZ,registerUpdateLifecycle:$0,registerAction:Gs,registerCoordinateSystem:xZ,registerLayout:SZ,registerVisual:Po,registerTransform:TZ,registerLoading:XP,registerMap:CZ,registerImpl:tZ,PRIORITY:vZ,ComponentModel:xt,ComponentView:xi,SeriesModel:wo,ChartView:co,registerComponentModel:function(e){xt.registerClass(e)},registerComponentView:function(e){xi.registerClass(e)},registerSeriesModel:function(e){wo.registerClass(e)},registerChartView:function(e){co.registerClass(e)},registerSubTypeDefaulter:function(e,t){xt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){vj(e,t)}};function ua(e){if(ge(e)){O(e,function(t){ua(t)});return}ot(pS,e)>=0||(pS.push(e),Ve(e)&&(e={install:e}),e.install(NQ))}var Nu=Et();function FQ(e){return e.type==="category"?$Q(e):zQ(e)}function BQ(e,t){return e.type==="category"?HQ(e,t):{ticks:Re(e.scale.getTicks(),function(r){return r.value})}}function $Q(e){var t=e.getLabelModel(),r=bL(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function bL(e,t){var r=wL(e,"labels"),n=U0(t),i=xL(r,n);if(i)return i;var a,o;return Ve(n)?a=TL(e,n):(o=n==="auto"?WQ(e):n,a=CL(e,o)),SL(r,n,{labels:a,labelCategoryInterval:o})}function HQ(e,t){var r=wL(e,"ticks"),n=U0(t),i=xL(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Ve(n))a=TL(e,n,!0);else if(n==="auto"){var s=bL(e,e.getLabelModel());o=s.labelCategoryInterval,a=Re(s.labels,function(l){return l.tickValue})}else o=n,a=CL(e,o,!0);return SL(r,n,{ticks:a,tickCategoryInterval:o})}function zQ(e){var t=e.scale.getTicks(),r=lc(e);return{labels:Re(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function wL(e,t){return Nu(e)[t]||(Nu(e)[t]=[])}function xL(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function SL(e,t,r){return e.push({key:t,value:r}),r}function WQ(e){var t=Nu(e).autoInterval;return t??(Nu(e).autoInterval=e.calculateCategoryInterval())}function VQ(e){var t=GQ(e),r=lc(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,p=0,g=Zy(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/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=Nu(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 GQ(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 CL(e,t,r){var n=lc(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=_L(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;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 TL(e,t,r){var n=e.scale,i=lc(e),a=[];return O(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 gS=[0,1],UQ=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 mj(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(),mS(n,i.count())),$g(t,gS,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),mS(n,i.count()));var a=$g(t,n,gS,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=BQ(this,r),i=n.ticks,a=Re(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return jQ(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=Re(n,function(a){return Re(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return FQ(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 VQ(this)},e}();function mS(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function jQ(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;O(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=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=kt(h),v=kt(v),f?h>v:h<v}}const YQ=UQ;var gl=Math.PI*2,$a=_o.CMD,qQ=["top","right","bottom","left"];function KQ(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function XQ(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-i)%gl<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var d=n;n=qi(i),i=qi(d)}else n=qi(n),i=qi(i);n>i&&(i+=gl);var h=Math.atan2(s,o);if(h<0&&(h+=gl),h>=n&&h<=i||h+gl>=n&&h+gl<=i)return l[0]=c,l[1]=f,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 Dd(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*c,g=o[1]=t+v*f;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function ML(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),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var _n=[];function ZQ(e,t,r){var n=ML(t.x,t.y,t.width,t.height,e.x,e.y,_n);return r.set(_n[0],_n[1]),n}function QQ(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var v=c[h++];h===1&&(n=c[h],i=c[h+1],a=n,o=i);var p=u;switch(v){case $a.M:a=c[h++],o=c[h++],n=a,i=o;break;case $a.L:p=Dd(n,i,c[h],c[h+1],f,d,_n,!0),n=c[h++],i=c[h++];break;case $a.C:p=l2(n,i,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,_n),n=c[h++],i=c[h++];break;case $a.Q:p=c2(n,i,c[h++],c[h++],c[h],c[h+1],f,d,_n),n=c[h++],i=c[h++];break;case $a.A:var g=c[h++],m=c[h++],y=c[h++],_=c[h++],b=c[h++],x=c[h++];h+=1;var w=!!(1-c[h++]);s=Math.cos(b)*y+g,l=Math.sin(b)*_+m,h<=1&&(a=s,o=l);var S=(f-g)*_/y+g;p=XQ(g,m,_,b,b+x,w,S,d,_n),n=Math.cos(b+x)*y+g,i=Math.sin(b+x)*_+m;break;case $a.R:a=n=c[h++],o=i=c[h++];var C=c[h++],M=c[h++];p=ML(a,o,C,M,f,d,_n);break;case $a.Z:p=Dd(n,i,a,o,f,d,_n,!0),n=a,i=o;break}p<u&&(u=p,r.set(_n[0],_n[1]))}return u}var Tn=new ke,ut=new ke,Pt=new ke,Un=new ke,zn=new ke;function yS(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||qQ,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&lh([],c),d=t.get("length2")||0;u&&Pt.copy(u);for(var h=0;h<o.length;h++){var v=o[h];KQ(v,0,s,Tn,Un),ke.scaleAndAdd(ut,Tn,Un,d),ut.transform(f);var p=e.getBoundingRect(),g=u?u.distance(ut):e instanceof ht?QQ(ut,e.path,Pt):ZQ(ut,p,Pt);g<l&&(l=g,ut.transform(c),Pt.transform(c),Pt.toArray(a[0]),ut.toArray(a[1]),Tn.toArray(a[2]))}AL(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var Id=[],sr=new ke;function AL(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Tn.fromArray(e[0]),ut.fromArray(e[1]),Pt.fromArray(e[2]),ke.sub(Un,Tn,ut),ke.sub(zn,Pt,ut);var r=Un.len(),n=zn.len();if(!(r<.001||n<.001)){Un.scale(1/r),zn.scale(1/n);var i=Un.dot(zn),a=Math.cos(t);if(a<i){var o=Dd(ut.x,ut.y,Pt.x,Pt.y,Tn.x,Tn.y,Id,!1);sr.fromArray(Id),sr.scaleAndAdd(zn,o/Math.tan(Math.PI-t));var s=Pt.x!==ut.x?(sr.x-ut.x)/(Pt.x-ut.x):(sr.y-ut.y)/(Pt.y-ut.y);if(isNaN(s))return;s<0?ke.copy(sr,ut):s>1&&ke.copy(sr,Pt),sr.toArray(e[1])}}}}function JQ(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Tn.fromArray(e[0]),ut.fromArray(e[1]),Pt.fromArray(e[2]),ke.sub(Un,ut,Tn),ke.sub(zn,Pt,ut);var n=Un.len(),i=zn.len();if(!(n<.001||i<.001)){Un.scale(1/n),zn.scale(1/i);var a=Un.dot(t),o=Math.cos(r);if(a<o){var s=Dd(ut.x,ut.y,Pt.x,Pt.y,Tn.x,Tn.y,Id,!1);sr.fromArray(Id);var l=Math.PI/2,u=Math.acos(zn.dot(t)),c=l+u-r;if(c>=l)ke.copy(sr,Pt);else{sr.scaleAndAdd(zn,s/Math.tan(Math.PI/2-c));var f=Pt.x!==ut.x?(sr.x-ut.x)/(Pt.x-ut.x):(sr.y-ut.y)/(Pt.y-ut.y);if(isNaN(f))return;f<0?ke.copy(sr,ut):f>1&&ke.copy(sr,Pt)}sr.toArray(e[1])}}}}function _S(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 eJ(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=Cg(n[0],n[1]),a=Cg(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=nv([],n[1],n[0],o/i),l=nv([],n[1],n[2],o/a),u=nv([],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 c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function EL(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<_d.length;l++){var u=_d[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:qe(i.states[u]&&i.states[u].ignore,s);if(h||!qe(d,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0);continue}n||(n=new vh,e.setTextGuideLine(n),!f&&(s||!o)&&_S(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),_S(n,!1,u,c)}}if(n){dt(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=eJ}}function PL(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Xn.length;n++){var i=Xn[n];r[i]=e.getModel([i,t])}return r}function LL(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new bd(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function DL(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(C,M){return C.rect[t]-M.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[r]}c>0&&a&&x(-c/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,M,P){if(C<0){var A=Math.min(M,-C);if(A>0){x(A*P,0,o);var T=A+C;T<0&&w(-T*P,1)}else w(-C*P,1)}}function x(C,M,P){C!==0&&(u=!0);for(var A=M;A<P;A++){var T=e[A],D=T.rect;D[t]+=C,T.label[t]+=C}}function w(C,M){for(var P=[],A=0,T=1;T<o;T++){var D=e[T-1].rect,N=Math.max(e[T].rect[t]-D[t]-D[r],0);P.push(N),A+=N}if(A){var H=Math.min(Math.abs(C)/A,M);if(C>0)for(var T=0;T<o-1;T++){var $=P[T]*H;x($,0,T+1)}else for(var T=o-1;T>0;T--){var $=P[T-1]*H;x(-$,T,o)}}}function S(C){var M=C<0?-1:1;C=Math.abs(C);for(var P=Math.ceil(C/(o-1)),A=0;A<o-1;A++)if(M>0?x(P,0,A+1):x(-P,o-A-1,o),C-=P,C<=0)return}return u}function tJ(e,t,r,n){return DL(e,"x","width",t,r,n)}function IL(e,t,r,n){return DL(e,"y","height",t,r,n)}function OL(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new et(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<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=a.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new bd(v.localRect,v.transform)),f||(f=new bd(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function rJ(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function nJ(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:rJ(n&&n.shape.points)}}var bS=["align","verticalAlign","width","height","fontSize"],Dr=new uh,cp=Et(),iJ=Et();function lf(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var uf=["x","y","rotation"],aJ=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();et.applyTransform(c,c,u),u?Dr.setLocalTransform(u):(Dr.x=Dr.y=Dr.rotation=Dr.originX=Dr.originY=0,Dr.scaleX=Dr.scaleY=1);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();et.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:Dr.x,y:Dr.y,scaleX:Dr.scaleX,scaleY:Dr.scaleY,rotation:Dr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Ve(i)||Tt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ft(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(_,b){return function(){yS(_,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Ve(o.layoutOption)?c=o.layoutOption(nJ(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=gt(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=gt(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var v=cp(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<bS.length;p++){var g=bS[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",i(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=LL(this._labelList),a=Vt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Vt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});tJ(a,0,r),IL(o,0,n);var s=Vt(i,function(l){return l.layoutOption.hideOverlap});OL(s)},e.prototype.processLabelsOverall=function(){var t=this;O(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=cp(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=ft(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style"),c=o.getVisual("drawType");l.stroke=u[c];var f=s.getModel("labelLine");EL(t,PL(s),l),yS(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!fs(t))){var a=cp(n),o=a.oldLayout,s=ft(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(ot(d,"select")>=0&&n.attr(a.oldLayoutSelect),ot(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Pr(n,u,r,l)}else if(n.attr(u),!oc(n).valueAnimation){var f=qe(n.style.opacity,1);n.style.opacity=0,Hr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};lf(h,u,uf),lf(h,n.states.select,uf)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};lf(v,u,uf),lf(v,n.states.emphasis,uf)}lq(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=iJ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Pr(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,Hr(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}();const oJ=aJ;var fp=Et();function sJ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=fp(r).labelManager;i||(i=fp(r).labelManager=new oJ),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=fp(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function lJ(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Is(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Is(e,t,r[o]));return a.join(" ")}}function uJ(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!ge(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}function cJ(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var f=new Ht({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var p=Ve(i)?function(g){i(g,f)}:null;Hr(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return f}function fJ(e,t,r){var n=e.getArea(),i=kt(n.r0,1),a=kt(n.r,1),o=new Ao({shape:{cx:kt(e.cx,1),cy:kt(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,Hr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function dJ(e,t,r,n,i){if(e){if(e.type==="polar")return fJ(e,t,r);if(e.type==="cartesian2d")return cJ(e,t,r,n,i)}else return null;return null}function RL(e,t){return e.type===t}var hJ={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},vJ=function(e){return Math.round(e.length/2)};function pJ(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||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=hJ[a]:Ve(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,vJ))}}}}}var kL=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 aL(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)O(a.getAxes(),function(f,d){if(f.type==="category"){var h=f.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]=f.toGlobalCoord(h[v].coord))}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;o[c]+=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}(wo);wo.registerClass(kL);const wS=kL;var gJ=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 aL(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=IE(wS.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}(wS);const mJ=gJ;var yJ=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}(),_J=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 yJ},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,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);v?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+c,c,!d)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,c,f,!d),r.arc(m*u+i,y*u+a,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(i,a,o,f,c,d)},t}(ht);const xS=_J;function bJ(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return gd(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(d-h)/2:0,_=Math.cos,b=Math.sin,x=c+d*_(p),w=f+d*b(p),S="left",C="top";switch(s){case"startArc":x=c+(h-l)*_(m),w=f+(h-l)*b(m),S="center",C="top";break;case"insideStartArc":x=c+(h+l)*_(m),w=f+(h+l)*b(m),S="center",C="bottom";break;case"startAngle":x=c+v*_(p)+cf(p,l+y,!1),w=f+v*b(p)+ff(p,l+y,!1),S="right",C="middle";break;case"insideStartAngle":x=c+v*_(p)+cf(p,-l+y,!1),w=f+v*b(p)+ff(p,-l+y,!1),S="left",C="middle";break;case"middle":x=c+v*_(m),w=f+v*b(m),S="center",C="middle";break;case"endArc":x=c+(d+l)*_(m),w=f+(d+l)*b(m),S="center",C="bottom";break;case"insideEndArc":x=c+(d-l)*_(m),w=f+(d-l)*b(m),S="center",C="top";break;case"endAngle":x=c+v*_(g)+cf(g,l+y,!0),w=f+v*b(g)+ff(g,l+y,!0),S="left",C="middle";break;case"insideEndAngle":x=c+v*_(g)+cf(g,-l+y,!0),w=f+v*b(g)+ff(g,-l+y,!0),S="right",C="middle";break;default:return gd(n,i,a)}return n=n||{},n.x=x,n.y=w,n.align=S,n.verticalAlign=C,n}}function wJ(e,t,r,n){if(bt(n)){e.setTextConfig({rotation:n});return}else if(ge(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function cf(e,t,r){return t*Math.sin(e)*(r?-1:1)}function ff(e,t,r){return t*Math.cos(e)*(r?1:-1)}var dp=Math.max,hp=Math.min;function xJ(e,t){var r=e.getArea&&e.getArea();if(RL(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var SJ=function(e){pe(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){g0(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=CJ(r,u);h&&this._enableRealtimeSort(h,s,i);var v=r.get("clip",!0)||h,p=xJ(u,s);o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],x=this._backgroundEls,w=a&&a.isInitSort,S=a&&a.type==="changeAxisOrder";function C(A){var T=df[u.type](s,A),D=DJ(u,f,T);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&D.setShape("r",_),b[A]=D,D}s.diff(l).add(function(A){var T=s.getItemModel(A),D=df[u.type](s,A,T);if(m&&C(A),!(!s.hasValue(A)||!AS[u.type](D))){var N=!1;v&&(N=SS[u.type](p,D));var H=CS[u.type](r,s,A,D,f,d,c.model,!1,g);h&&(H.forceLabelAnimation=!0),ES(H,s,A,T,D,r,f,u.type==="polar"),w?H.attr({shape:D}):h?TS(h,d,H,D,A,f,!1,!1):Hr(H,{shape:D},r,A),s.setItemGraphicEl(A,H),o.add(H),H.ignore=N}}).update(function(A,T){var D=s.getItemModel(A),N=df[u.type](s,A,D);if(m){var H=void 0;x.length===0?H=C(T):(H=x[T],H.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&H.setShape("r",_),b[A]=H);var $=df[u.type](s,A),G=FL(f,$,u);Pr(H,{shape:G},d,A)}var F=l.getItemGraphicEl(T);if(!s.hasValue(A)||!AS[u.type](N)){o.remove(F);return}var R=!1;if(v&&(R=SS[u.type](p,N),R&&o.remove(F)),F?xE(F):F=CS[u.type](r,s,A,N,f,d,c.model,!!F,g),h&&(F.forceLabelAnimation=!0),S){var j=F.getTextContent();if(j){var re=oc(j);re.prevValue!=null&&(re.prevValue=re.value)}}else ES(F,s,A,D,N,r,f,u.type==="polar");w?F.attr({shape:N}):h?TS(h,d,F,N,A,f,!0,S):Pr(F,{shape:N},r,A,null),s.setItemGraphicEl(A,F),F.ignore=R,o.add(F)}).remove(function(A){var T=l.getItemGraphicEl(A);T&&wd(T,r,A)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new cn);M.removeAll();for(var P=0;P<b.length;++P)M.add(b[P]);o.add(M),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),LS(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),LS(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&dJ(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Re(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}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){wd(a,r,ft(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}(co),SS={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=dp(t.x,e.x),s=hp(t.x+t.width,i),l=dp(t.y,e.y),u=hp(t.y+t.height,a),c=s<o,f=u<l;return t.x=c&&o>i?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},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=hp(t.r,e.r),a=dp(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}},CS={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Ht({shape:se({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?xS:Ao,c=new u({shape:n,z2:1});c.name="item";var f=NL(i);if(c.calculateTextPosition=bJ(f,{isRoundCap:u===xS}),a){var d=c.shape,h=i?"r":"endAngle",v={};d[h]=i?0:n.startAngle,v[h]=n[h],(s?Pr:Hr)(c,{shape:v},a)}return c}};function CJ(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 TS(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?Pr:Hr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Pr:Hr)(r,{shape:u},c,i)}function MS(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var TJ=["x","y","width","height"],MJ=["cx","cy","r","startAngle","endAngle"],AS={cartesian2d:function(e){return!MS(e,TJ)},polar:function(e){return!MS(e,MJ)}},df={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?EJ(r,n):0,a=n.width>0?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 AJ(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function NL(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 ES(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 c=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",f=PE(n);m0(e,f,{labelFetcher:a,labelDataIndex:r,defaultText:lJ(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=e.getTextContent();if(s&&d){var h=n.get(["label","position"]);e.textConfig.inside=h==="middle"?!0:null,wJ(e,h==="outside"?c:h,NL(o),n.get(["label","rotate"]))}sq(d,f,a.getRawValue(r),function(p){return uJ(t,p)});var v=n.getModel(["emphasis"]);J2(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),eE(e,n),AJ(i)&&(e.style.fill="none",e.style.stroke="none",O(e.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function EJ(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 PJ=function(){function e(){}return e}(),PS=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 PJ},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(ht);function LS(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new PS({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new PS({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),ft(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",DS),f.on("mousemove",DS)),r&&r.push(f)}var DS=O0(function(e){var t=this,r=LJ(t,e.offsetX,e.offsetY);ft(t).dataIndex=r>=0?r:null},30,!1);function LJ(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function FL(e,t,r){if(RL(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 DJ(e,t,r){var n=e.type==="polar"?Ao:Ht;return new n({shape:FL(t,r,e),silent:!0,z2:0})}const IJ=SJ;function OJ(e){e.registerChartView(IJ),e.registerSeriesModel(mJ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Rt(uQ,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cQ("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,pJ("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 hf=Math.PI*2,IS=Math.PI/180;function BL(e,t){return Ls(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function $L(e,t){var r=BL(e,t),n=e.get("center"),i=e.get("radius");ge(i)||(i=[0,i]);var a=gt(r.width,t.getWidth()),o=gt(r.height,t.getHeight()),s=Math.min(a,o),l=gt(i[0],s/2),u=gt(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else ge(n)||(n=[n,n]),c=gt(n[0],a)+r.x,f=gt(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function RJ(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=BL(n,r),s=$L(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*IS,h=n.get("minAngle")*IS,v=0;i.each(a,function(P){!isNaN(P)&&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=hf,w=0,S=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(P,A){var T;if(isNaN(P)){i.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?T=p===0&&_?g:P*g:T=hf/v,T<h?(T=h,x-=h):w+=P;var D=S+C*T;i.setItemLayout(A,{angle:T,startAngle:S,endAngle:D,clockwise:m,cx:l,cy:u,r0:f,r:y?$g(P,b,[f,c]):c}),S=D}),x<hf&&v)if(x<=.001){var M=hf/v;i.each(a,function(P,A){if(!isNaN(P)){var T=i.getItemLayout(A);T.angle=M,T.startAngle=d+C*A*M,T.endAngle=d+C*(A+1)*M}})}else g=x/w,S=d,i.each(a,function(P,A){if(!isNaN(P)){var T=i.getItemLayout(A),D=T.angle===h?h:P*g;T.startAngle=S,T.endAngle=S+C*D,S+=C*D}})})}function kJ(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var NJ=Math.PI/180;function OS(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],b=Math.abs(_.label.y-r),x=n+_.len,w=x*x,S=Math.sqrt((1-Math.abs(b*b/m))*w),C=t+(S+_.len2)*i,M=C-_.label.x,P=_.targetTextWidth-M*i;HL(_,P,!0),_.label.x=C}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],b=_.label.y>r?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)<S?Math.sqrt(x*x/(1-w*w/S/S)):S;b.rB=C,b.maxY=x}b.list.push(_)}c(g),c(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}IL(e,l,l+o)&&f(e)}function FJ(e,t,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;vp(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!vp(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,p=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=p[2][0]-v.labelDistance-o-v.edgeDistance:g=o+i-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-o-v.bleedMargin:g=o+i-f-v.bleedMargin:h.x<t?g=h.x-o-v.bleedMargin:g=o+i-h.x-v.bleedMargin,v.targetTextWidth=g,HL(v,g)}}OS(u,t,r,n,1,i,a,o,s,f),OS(l,t,r,n,-1,i,a,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!vp(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:_,x=v.rect.width+b,w=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+x+v.labelDistance:p[2][0]=o+i-v.edgeDistance-x-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function HL(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||r){var f=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,v=t<c?h:r?h>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-f)/2}}}function vp(e){return e.position==="center"}function BJ(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*NJ,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=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,M=S.getTextContent(),P=S.getTextGuideLine(),A=t.getItemModel(w),T=A.getModel("label"),D=T.get("position")||A.get(["emphasis","label","position"]),N=T.get("distanceToLabelLine"),H=T.get("alignTo"),$=gt(T.get("edgeDistance"),u),G=T.get("bleedMargin"),F=A.getModel("labelLine"),R=F.get("length");R=gt(R,u);var j=F.get("length2");if(j=gt(j,u),Math.abs(C.endAngle-C.startAngle)<o){O(M.states,h),M.ignore=!0,P&&(O(P.states,h),P.ignore=!0);return}if(v(M)){var re=(C.startAngle+C.endAngle)/2,oe=Math.cos(re),ye=Math.sin(re),Ae,V,Q,W;n=C.cx,i=C.cy;var q=D==="inside"||D==="inner";if(D==="center")Ae=C.cx,V=C.cy,W="center";else{var le=(q?(C.r+C.r0)/2*oe:C.r*oe)+n,de=(q?(C.r+C.r0)/2*ye:C.r*ye)+i;if(Ae=le+oe*3,V=de+ye*3,!q){var J=le+oe*(R+l-C.r),L=de+ye*(R+l-C.r),I=J+(oe<0?-1:1)*j,z=L;H==="edge"?Ae=oe<0?c+$:c+u-$:Ae=I+(oe<0?-N:N),V=z,Q=[[le,de],[J,L],[I,z]]}W=q?"center":H==="edge"?oe>0?"right":"left":oe>0?"left":"right"}var U=Math.PI,K=0,ne=T.get("rotate");if(bt(ne))K=ne*(U/180);else if(D==="center")K=0;else if(ne==="radial"||ne===!0){var fe=oe<0?-re+U:-re;K=fe}else if(ne==="tangential"&&D!=="outside"&&D!=="outer"){var te=Math.atan2(oe,ye);te<0&&(te=U*2+te);var ie=ye>0;ie&&(te=U+te),K=te-U}if(a=!!K,M.x=Ae,M.y=V,M.rotation=K,M.setStyle({verticalAlign:"middle"}),q){M.setStyle({align:W});var he=M.states.select;he&&(he.x+=M.x,he.y+=M.y)}else{var X=M.getBoundingRect().clone();X.applyTransform(M.getComputedTransform());var we=(M.style.margin||0)+2.1;X.y-=we/2,X.height+=we,r.push({label:M,labelLine:P,position:D,len:R,len2:j,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new ke(oe,ye),linePoints:Q,textAlign:W,labelDistance:N,labelAlignTo:H,edgeDistance:$,bleedMargin:G,rect:X,unconstrainedWidth:X.width,labelStyleWidth:M.style.width})}S.setTextConfig({inside:q})}}),!a&&e.get("avoidLabelOverlap")&&FJ(r,n,i,l,u,d,c,f);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(O(m.states,h),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var x=g.linePoints;_||!x?(O(y.states,h),y.ignore=!0):(AL(x,g.minTurnAngle),JQ(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new ke(x[0][0],x[0][1])})}}}function vf(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;ge(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Re(n,function(a){return sa(a,i)})}}var $J=function(e){pe(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new dr;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=se(vf(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(Hr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,Hr(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Hr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Pr(o,{shape:{endAngle:c.endAngle}},s,n))}else xE(o),Pr(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),eE(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=se({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},vf(u.getModel("itemStyle"),c)),se(o.ensureState("select"),{x:p,y:g,shape:vf(l.getModel(["select","itemStyle"]),c)}),se(o.ensureState("blur"),{shape:vf(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&se(y.ensureState("select"),{x:p,y:g}),se(_.ensureState("select"),{x:p,y:g}),J2(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;m0(a,PE(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new vh,this.setTextGuideLine(h)),EL(this,PL(o),{stroke:u,opacity:zl(s.get(["lineStyle","opacity"]),c,1)})}},t}(Ao),HJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=new Ao({shape:$L(r,i)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new $J(o,h,u);o.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var p=s.getItemGraphicEl(v);p.updateData(o,h,u),p.off("click"),l.add(p),o.setItemGraphicEl(h,p)}).remove(function(h){var v=s.getItemGraphicEl(h);wd(v,r,h)}).execute(),BJ(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(co);const zJ=HJ;function WJ(e,t,r){t=ge(t)&&{coordDimensions:t}||se({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=nL(n,t).dimensions,a=new rL(i,e);return a.initData(n,r),a}var VJ=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 GJ=VJ;var UJ=Et(),jJ=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 GJ(_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 WJ(this,{coordDimensions:["value"],encodeDefaulter:Rt(Nq,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=UJ(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=yj(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){Hg(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}(wo);const YJ=jJ;function qJ(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 KJ(e){e.registerChartView(zJ),e.registerSeriesModel(YJ),SX("pie",e.registerAction),e.registerLayout(Rt(RJ,"pie")),e.registerProcessor(kJ("pie")),e.registerProcessor(qJ("pie"))}var XJ=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}(xt);const ZJ=XJ;var ym=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Cn).models[0]},t.type="cartesian2dAxis",t}(xt);Jn(ym,kQ);var zL={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)"]}}},QJ=st({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},zL),j0=st({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}}},zL),JJ=st({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},j0),eee=dt({logBase:10},j0);const tee={category:QJ,value:j0,time:JJ,log:eee};var ree={value:1,category:1,time:1,log:1};function RS(e,t,r,n){O(ree,function(i,a){var o=st(st({},tee[a],!0),n,!0),s=function(l){pe(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Du(this),h=d?Sh(c):{},v=f.getTheme();st(c,v.get(a+"Axis")),st(c,this.getDefaultOption()),c.type=kS(c),d&&Ds(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=gm.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.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",kS)}function kS(e){return e.type||(e.data?"category":"value")}var nee=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 Re(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Vt(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 iee=nee;var _m=["x","y"];function NS(e){return e.type==="interval"||e.type==="time"}var aee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=_m,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!NS(r)||!NS(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 c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=lh([],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 et(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 on(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 on(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 et(i,a,o,s)},t}(iee),oee=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}(YQ);const see=oee;function bm(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,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[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]]:f[0],u==="x"?v[d[l]]:f[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),xu(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 FS(e){return e.get("coordinateSystem")==="cartesian2d"}function BS(e){var t={xAxisModel:null,yAxisModel:null};return O(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Cn).models[0];t[n]=a}),t}var pp=Math.log;function lee(e,t,r){var n=sc.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=yL(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=pp(e.base);u=[pp(u[0])/d,pp(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.getInterval.call(e),p=u[0],g=u[1];if(c&&f)v=(g-p)/o;else if(c)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=lp(v),g=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=lp(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=lp(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=kt(g-y),p<0&&u[0]>=0?(p=0,g=kt(y)):g>0&&u[1]<=0&&(g=0,p=-kt(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 uee=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_m,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=Tt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,p=h.scale;mm(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(vS(p,v),mm(p)&&(s=h))}c.length&&(s||(s=c.pop(),vS(s.scale,s.model)),O(c,function(g){lee(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};O(n.x,function(o){$S(n,"y",o,a)}),O(n.y,function(o){$S(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=Ls(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(O(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=IQ(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),O(this._coordsList,function(u){u.calcAffineTransform()});function l(){O(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),cee(u,c?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]}Ie(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Cn).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Cn).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ot(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,O(s.x,function(c,f){O(s.y,function(d,h){var v="x"+f+"y"+h,p=new aee(v);p.master=i,p.model=t,i._coordsMap[v]=p,i._coordsList.push(p),p.addAxis(c),p.addAxis(d)})});function u(c){return function(f,d){if(gp(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new see(c,LQ(f),[0,0],f.get("type"),h),p=v.type==="category";v.onBand=p&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=a,v.index=d,a._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){O(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(FS(i)){var a=BS(i),o=a.xAxisModel,s=a.yAxisModel;if(!gp(o,r)||!gp(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){O(RQ(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return O(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ot(r,a)<0&&r.push(a),ot(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(FS(i)){var a=BS(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=_m,e}();function gp(e,t){return e.getCoordSysModel()===t}function $S(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)HS(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&HS(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function HS(e){return e&&e.type!=="category"&&e.type!=="time"&&DQ(e)}function cee(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const fee=uee;var Ki=Math.PI,fo=function(){function e(t,r){this.group=new cn,this.opt=r,this.axisModel=t,dt(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new cn({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!zS[t]},e.prototype.add=function(t){zS[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=x2(r-t),a,o;return md(i)?(o=n>0?"top":"bottom",a="center"):md(i-Ki)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Ki?a=n>0?"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}(),zS={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&&(on(s,s,o),on(l,l,o));var c=se({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new bo({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Au(f.shape,f.style.lineWidth),f.anid="line",r.add(f);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=FX(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];O([{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 _=R0(d[y],-p/2,-g/2,p,g,c.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=vee(r,n,t,e),a=gee(r,n,t,e);if(hee(t,a,i),pee(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=LL(Re(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));OL(o)}},axisName:function(e,t,r,n){var i=xu(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(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,VS(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Ki/180);var v;VS(a)?d=fo.innerTextLayout(e.rotation,h??e.rotation,o):(d=dee(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=xu(e.nameTruncateMaxWidth,g.maxWidth,v),_=new dr({x:f[0],y:f[1],rotation:d.rotation,silent:fo.isLabelSilent(t),style:la(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(p0({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=fo.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,ft(_).eventData=b}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function dee(e,t,r,n){var i=x2(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return md(i-Ki/2)?(o=l?"bottom":"top",a="center"):md(i-Ki*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Ki*1.5&&i>Ki/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function hee(e,t,r){if(!_L(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],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Gr(a),Gr(u)):WS(a,o)&&(n?(Gr(o),Gr(c)):(Gr(a),Gr(u))),i===!1?(Gr(s),Gr(f)):WS(l,s)&&(i?(Gr(l),Gr(d)):(Gr(s),Gr(f)))}}function Gr(e){e&&(e.ignore=!0)}function WS(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Yy([]);return qy(i,i,-e.rotation),r.applyTransform(us([],i,e.getLocalTransform())),n.applyTransform(us([],i,t.getLocalTransform())),r.intersect(n)}}function VS(e){return e==="middle"||e==="center"}function WL(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(on(o,o,t),on(s,s,t));var c=new bo({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Au(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function vee(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),c=WL(u,t.transform,l,dt(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function pee(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=dt(s.getLineStyle(),dt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=WL(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function gee(e,t,r,n){var i=r.axis,a=xu(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(xu(n.labelRotate,o.get("rotate"))||0)*Ki/180,c=fo.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=fo.isLabelSilent(r),v=r.get("triggerEvent");return O(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,b=o;if(f&&f[m]){var x=f[m];Ie(x)&&x.textStyle&&(b=new rr(x.textStyle,o,r.ecModel))}var w=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),S=i.dataToCoord(m),C=new dr({x:S,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:la(b,{text:y,align:b.getShallow("align",!0)||c.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,fill:Ve(w)?w(i.type==="category"?_:i.type==="value"?m+"":m,g):w})});if(C.anid="label_"+m,v){var M=fo.makeAxisEventDataBase(r);M.targetType="axisLabel",M.value=_,M.tickIndex=g,i.type==="category"&&(M.dataIndex=m),ft(C).eventData=M}t.add(C),C.updateTransform(),d.push(C),e.add(C),C.decomposeTransform()}),d}}const VL=fo;function mee(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return yee(r,e,t),r.seriesInvolved&&bee(r,e),r}function yee(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];O(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Fu(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(O(s.getAxes(),Rt(p,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&O(v.baseAxes,Rt(p,h?"cross":!0,d)),h&&O(v.otherAxes,Rt(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!g&&!wm(_))){m==null&&(m=_.get("triggerTooltip")),_=g?_ee(y,f,i,t,g,m):_;var x=_.get("snap"),w=Fu(y.model),S=m||x||y.type==="category",C=e.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,involveSeries:S,snap:x,useHandle:wm(_),seriesModels:[],linkGroup:null};u[w]=C,e.seriesInvolved=e.seriesInvolved||S;var M=wee(a,y);if(M!=null){var P=o[M]||(o[M]={axesInfo:{}});P.axesInfo[w]=C,P.mapper=a[M].mapper,C.linkGroup=P}}}})}function _ee(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};O(s,function(d){l[d]=Qe(o.get(d))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&dt(u,f.textStyle)}}return e.model.getModel("axisPointer",new rr(l,r,n))}function bee(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||O(e.coordSysAxesInfo[Fu(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function wee(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(mp(a[n+"AxisId"],r.id)||mp(a[n+"AxisIndex"],r.componentIndex)||mp(a[n+"AxisName"],r.name))return i}}function mp(e,t){return e==="all"||ge(e)&&ot(e,t)>=0||e===t}function xee(e){var t=Y0(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=wm(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<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Y0(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Fu(e)]}function See(e){var t=Y0(e);return t&&t.axisPointerModel}function wm(e){return!!e.get(["handle","show"])}function Fu(e){return e.type+"||"+e.id}var GS={},Cee=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,a){this.axisPointerClass&&xee(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=See(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){GS[r]=n},t.getAxisPointerClass=function(r){return r&&GS[r]},t.type="axis",t}(xi);const GL=Cee;var xm=Et();function Tee(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=xm(e).splitAreaColors,d=Ue(),h=0;if(f)for(var v=0;v<u.length;v++){var p=f.get(u[v].tickValue);if(p!=null){h=(p+(c-1)*v)%c;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=ge(s)?s:[s];for(var v=1;v<u.length;v++){var y=i.toGlobalCoord(u[v].coord),_=void 0,b=void 0,x=void 0,w=void 0;i.isHorizontal()?(_=g,b=l.y,x=y-_,w=l.height,g=_+x):(_=l.x,b=g,x=l.width,w=y-b,g=b+w);var S=u[v-1].tickValue;S!=null&&d.set(S,h),t.add(new Ht({anid:S!=null?"area_"+S:null,shape:{x:_,y:b,width:x,height:w},style:dt({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}xm(e).splitAreaColors=d}}}function Mee(e){xm(e).splitAreaColors=null}var Aee=["axisLine","axisTickLabel","axisName"],Eee=["splitArea","splitLine","minorSplitLine"],UL=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new cn,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=bm(s,r),u=new VL(r,se({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(mm(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));O(Aee,u.add,u),this._axisGroup.add(u.getGroup()),O(Eee,function(f){r.get([f,"show"])&&Pee[f](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||ME(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){Mee(this)},t.type="cartesianAxis",t}(GL),Pee={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=ge(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:a}),d=[],h=[],v=o.getLineStyle(),p=0;p<f.length;p++){var g=i.toGlobalCoord(f[p].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var m=c++%s.length,y=f[p].tickValue,_=new bo({anid:y!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:dt({stroke:s[m]},v),silent:!0});Au(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var p=i.toGlobalCoord(u[h][v].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new bo({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Au(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){Tee(e,t,r,n)}},jL=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="xAxis",t}(UL),Lee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=jL.type,r}return t.type="yAxis",t}(UL),Dee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ht({shape:r.coordinateSystem.getRect(),style:dt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(xi),US={offset:0};function Iee(e){e.registerComponentView(Dee),e.registerComponentModel(ZJ),e.registerCoordinateSystem("cartesian2d",fee),RS(e,"x",ym,US),RS(e,"y",ym,US),e.registerComponentView(jL),e.registerComponentView(Lee),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function jS(e,t,r){var n=Mo.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var Oee=function(e){pe(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||pd,typeof r=="string"?o=jS(r,n,i):Ie(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(KA(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=jS("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new et(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new et(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,x=1/0,w=0,S=0;S<o.length;++S){var C=o[S];if(C.intersect(y)){var M=new et(0,0,0,0);M.copy(C),M.union(y),o[S]=M,b=!0;break}else if(l){u.copy(y),u.union(C);var P=y.width*y.height,A=C.width*C.height,T=u.width*u.height,D=T-P-A;D<x&&(x=D,w=S)}}if(l&&(o[w].union(y),b=!0),!b){var _=new et(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(i,a,!0,!0),v=d.__isRendered&&(d.__dirty&Rr||!h)?d.getPrevPaintRect():null;v&&c(v);var p=h&&(d.__dirty&Rr||!d.__isRendered)?d.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d.shouldBePainted(i,a,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var h=this.domBack;function v(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(oh(n)){var b=n.global||n.__width===m&&n.__height===y;_=b&&n.__canvasGradient||cm(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else zU(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=fm(o,n,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,p,g,m,y),o.restore())}!i||u?v(0,0,s,l):i.length&&O(i,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(ei);const yp=Oee;var YS=1e5,Ha=314159,pf=.01,Ree=.001;function kee(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Nee(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var Fee=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=se({},n||{}),this.dpr=n.devicePixelRatio||pd,this._singleCanvas=a,this.root=t;var o=t.style;o&&(KA(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new yp(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Ha]=h,h.zlevel=Ha,s.push(Ha),this._domRoot=t}else{this._width=Qc(t,0,n),this._height=Qc(t,1,n);var u=this._domRoot=Nee(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(YS)),a||(a=n.ctx,a.save()),ro(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(YS)},e.prototype.paintOne=function(t,r){DP(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Pg(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Ha).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,f=!1,d=function(p){var g=a[p],m=g.ctx,y=o&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,b=!n&&g.incremental&&Date.now,x=b&&Date.now(),w=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,y);else if(_===g.__startIndex){var S=t[_];(!S.incremental||!S.notClear||n)&&g.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,M=function(D){var N={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<g.__endIndex;C++){var H=t[C];if(H.__inHover&&(f=!0),i._doPaintEl(H,g,o,D,N,C===g.__endIndex-1),b){var $=Date.now()-x;if($>15)break}}N.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var P=h.dpr,A=0;A<y.length;++A){var T=y[A];m.save(),m.beginPath(),m.rect(T.x*P,T.y*P,T.width*P,T.height*P),m.clip(),M(T),m.restore()}else m.save(),M(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<a.length;v++)d(v);return Ge.wxa&&O(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(ro(s,t,a,o),t.setPrevPaintRect(l))}else ro(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Ha);var n=this._layers[t];return n||(n=new yp("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?st(n,this._layerConfig[t],!0):this._layerConfig[t-pf]&&st(n,this._layerConfig[t-pf],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&kee(r)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);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;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+Ree,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?pf:0),this._needsManuallyCompositing),c.__builtin__||Gy("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&Rr&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__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,O(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?st(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+pf){var o=this._layers[a];st(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(ot(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Qc(a,0,i),r=Qc(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Ha).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Ha].dom;var r=new yp("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];ro(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const Bee=Fee;function $ee(e){e.registerPainter("canvas",Bee)}var Ka=Et(),qS=Qe,_p=_t,Hee=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new cn,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Rt(KS,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}ZS(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Y0(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=Ka(t).pointerEl=new nq[a.type](qS(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ka(t).labelEl=new dr(qS(r.label));t.add(a),XS(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ka(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=Ka(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),XS(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=v0(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ZA(u.event)},onmousedown:_p(this._onHandleDragMove,this,0,0),drift:_p(this._onHandleDragMove,this),ondragend:_p(this._onHandleDragEnd,this)}),n.add(i)),ZS(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,bP(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){KS(this._axisPointerModel,!r&&this._moveAnimation,this._handle,bp(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(bp(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(bp(i)),Ka(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),sm(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 KS(e,t,r,n){YL(Ka(r).lastProp,n)||(Ka(r).lastProp=n,t?Pr(r,n,e):(r.stopAnimation(),r.attr(n)))}function YL(e,t){if(Ie(e)&&Ie(t)){var r=!0;return O(t,function(n,i){r=r&&YL(e[i],n)}),!!r}else return e===t}function XS(e,t){e[t.get(["label","show"])?"show":"hide"]()}function bp(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function ZS(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 zee=Hee;function Wee(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 Vee(e,t,r,n,i){var a=r.get("value"),o=qL(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=xh(s.get("padding")||0),u=s.getFont(),c=Zy(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var p=i.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),Gee(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:la(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Gee(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 qL(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:G0(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};O(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Te(o)?a=o.replace("{value}",a):Ve(o)&&(a=o(s))}return a}function KL(e,t,r){var n=Su();return qy(n,n,r.rotation),Eg(n,n,r.position),h0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Uee(e,t,r,n,i,a){var o=VL.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),Vee(t,n,i,a,{position:KL(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function jee(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Yee(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var qee=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"),c=QS(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=Wee(a),h=Kee[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=bm(l.model,i);Uee(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=bm(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=KL(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=QS(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(zee);function QS(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var Kee={line:function(e,t,r){var n=jee([t,r[0]],[t,r[1]],JS(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:Yee([t-n/2,r[0]],[n,i],JS(e))}}};function JS(e){return e.dim==="x"?0:1}const Xee=qee;var Zee=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}(xt);const Qee=Zee;var vi=Et(),Jee=O;function XL(e,t,r){if(!Ge.node){var n=t.getZr();vi(n).records||(vi(n).records={}),ete(n,t);var i=vi(n).records[e]||(vi(n).records[e]={});i.handler=r}}function ete(e,t){if(vi(e).initialized)return;vi(e).initialized=!0,r("click",Rt(eC,"click")),r("mousemove",Rt(eC,"mousemove")),r("globalout",rte);function r(n,i){e.on(n,function(a){var o=nte(t);Jee(vi(e).records,function(s){s&&i(s,a,o.dispatchAction)}),tte(o.pendings,t)})}}function tte(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 rte(e,t,r){e.handler("leave",null,r)}function eC(e,t,r,n){t.handler(e,r,n)}function nte(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 Sm(e,t){if(!Ge.node){var r=t.getZr(),n=(vi(r).records||{})[e];n&&(vi(r).records[e]=null)}}var ite=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";XL("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){Sm("axisPointer",n)},t.prototype.dispose=function(r,n){Sm("axisPointer",n)},t.type="axisPointer",t}(xi);const ate=ite;function ZL(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=nc(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(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="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(Re(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 tC=Et();function ote(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){Uf(i)&&(i=ZL({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Uf(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Uf(i),d={},h={},v={list:[],map:{}},p={showPointer:Rt(lte,h),showTooltip:Rt(ute,v)};O(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);O(s.coordSysAxesInfo[y],function(b,x){var w=b.axis,S=hte(u,b);if(!f&&_&&(!u||S)){var C=S&&S.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&rC(b,C,p,!1,d)}})});var g={};return O(c,function(m,y){var _=m.linkGroup;_&&!h[y]&&O(_.axesInfo,function(b,x){var w=h[x];if(b!==m&&w){var S=w.value;_.mapper&&(S=m.axis.scale.parse(_.mapper(S,nC(b),nC(m)))),g[m.key]=S}})}),O(g,function(m,y){rC(c[y],m,p,!0,d)}),cte(h,c,d),fte(v,i,e,o),dte(c,o,r),d}}function rC(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=ste(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&se(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function ste(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return O(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=f,a.length=0),O(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function lte(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function ute(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=Fu(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.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 cte(e,t,r){var n=r.axesInfo=[];O(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 fte(e,t,r,n){if(Uf(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 dte(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=tC(n)[i]||{},o=tC(n)[i]={};O(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&O(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];O(a,function(u,c){!o[c]&&l.push(u)}),O(o,function(u,c){!a[c]&&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 hte(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 nC(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 Uf(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function QL(e){GL.registerAxisPointerClass("CartesianAxisPointer",Xee),e.registerComponentModel(Qee),e.registerComponentView(ate),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=mee(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ote)}function vte(e){ua(Iee),ua(QL)}function pte(e,t){var r=xh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ht({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 gte=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}(xt);const mte=gte;function JL(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function eD(e){if(Ge.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var tD=eD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),yte=eD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function rD(e,t){if(!e)return t;t=GE(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function _te(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var bte=rD(yte,"transition"),q0=rD(tD,"transform"),wte="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ge.transform3dSupported?"will-change:transform;":"");function xte(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Ste(e,t,r){if(!Te(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Lu(t);var a=xte(r),o=Math.max(Math.round(i)*1.5,6),s="",l=q0+":",u;ot(["left","right"],a)>-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 c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/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'<div style="'+p.join("")+'"></div>'}function Cte(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+=Ge.transformSupported?","+q0+n:",left"+n+",top"+n),bte+":"+i}function iC(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ge.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Ge.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+q0+":"+o+";":[["top",0],["left",0],[tD,o]]}function Tte(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),O(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Mte(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"),c=e.getModel("textStyle"),f=mP(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(Cte(i,r)),a&&n.push("background-color:"+a),O(["width","color","radius"],function(h){var v="border-"+h,p=GE(v),g=e.get(p);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(Tte(c)),f!=null&&n.push("padding:"+xh(f).join("px ")+"px"),n.join(";")+";"}function aC(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&n9(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 Ate=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,Ge.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;aC(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,c=a.painter.getViewportRoot();jr(c,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=_te(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=wte+Mte(t,!this._firstShow,this._longHide)+iC(a[0],a[1],!0)+("border-color:"+Lu(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"&&!JL(n)&&(s=Ste(n,i,a)),Te(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ge(t)||(t=[t]);for(var l=0;l<t.length;l++)ud(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(aC(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=iC(n[0],n[1]);O(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Ge.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const Ete=Ate;var Pte=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),sC(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;Ie(t)&&br(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new dr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:mP(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),O(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),O(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=oC(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;sC(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Wi(a.borderWidth||0),s=oC(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Wi(e){return Math.max(0,e)}function oC(e){var t=Wi(e.shadowBlur||0),r=Wi(e.shadowOffsetX||0),n=Wi(e.shadowOffsetY||0);return{left:Wi(t-r),right:Wi(t+r),top:Wi(t-n),bottom:Wi(t+n)}}function sC(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const Lte=Pte;var Dte=new Ht({shape:{x:-1,y:-1,width:2,height:2}}),Ite=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.init=function(r,n){if(!(Ge.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=Nj(i.get("renderMode"));this._tooltipContent=a==="richText"?new Lte(n):new Ete(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(r,n,i){if(!(Ge.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i,this._alwaysShowContent=r.get("alwaysShowContent");var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?bP(this,"_updatePosition",50,"fixRate"):sm(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");XL("itemTooltip",this._api,_t(function(i,a,o){n!=="none"&&(n.indexOf(i)>=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||Ge.node||!i.getDom())){var o=lC(a,i);this._ticket="";var s=a.dataByCoordSys,l=Nte(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 c=Dte;c.x=a.x,c.y=a.y,c.update(),ft(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},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 f=ZL(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.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(lC(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 c=u.getData(),f=ml([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.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;Al(i,function(u){if(ft(u).dataIndex!=null)return s=u,!0;if(ft(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=ml([n.tooltipOption],a),l=this._renderMode,u=[],c=Ou("section",{blocks:[],noHeader:!0}),f=[],d=new Xv;O(r,function(y){O(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var w=qL(x,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),S=Ou("section",{header:w,noHeader:!Vn(w),sortBlocks:!0,blocks:[]});c.blocks.push(S),O(_.seriesDataIndices,function(C){var M=i.getSeriesByIndex(C.seriesIndex),P=C.dataIndexInside,A=M.getDataParams(P);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=G0(b.axis,{value:x}),A.axisValueLabel=w,A.marker=d.makeTooltipMarker("item",Lu(A.color),l);var T=Sx(M.formatTooltip(P,!0,null)),D=T.frag;if(D){var N=ml([M],a).get("valueFormatter");S.blocks.push(N?se({valueFormatter:N},D):D)}T.text&&f.push(T.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),p=Ex(c,d,l,v,i.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
+`];function Ou(e,t){return t.type=e,t}function im(e){return e.type==="section"}function vE(e){return im(e)?NK:FK}function pE(e){if(im(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return O(e.blocks,function(i){var a=pE(i);a>=t&&(t=a+ +(n&&(!a||im(i)&&!i.noHeader)))}),t}return 0}function NK(e,t,r,n){var i=t.noHeader,a=BK(pE(t)),o=[],s=t.blocks||[];bi(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Es(u,l)){var c=new bK(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}O(s,function(v,p){var g=t.valueFormatter,m=vE(v)(g?se(se({},e),{valueFormatter:g}):e,v,p>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):am(o.join(""),i?r:a.html);if(i)return f;var d=tm(t.header,"ordinal",e.useUTC),h=hE(n,e.renderMode).nameStyle;return e.renderMode==="richText"?gE(e,d,h)+a.richText+f:am('<div style="'+h+";"+dE+';">'+Xr(d)+"</div>"+f,r)}function FK(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=ge(b)?b:[b],Re(b,function(S,w){return tm(S,ge(h)?h[w]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":tm(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!a,g=!s&&a,m=hE(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":gE(e,d,y))+(o?"":zK(e,v,p,g,_)):am((s?"":f)+(a?"":$K(d,!s,y))+(o?"":HK(v,p,g,_)),r)}}function AS(e,t,r,n,i,a){if(e){var o=vE(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function BK(e){return{html:RK[e],richText:kK[e]}}function am(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+dE+';">'+e+r+"</div>"}function $K(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Xr(e)+"</span>"}function HK(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],'<span style="'+a+";"+n+'">'+Re(e,function(o){return Xr(o)}).join("&nbsp;&nbsp;")+"</span>"}function gE(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function zK(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 WK(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Lu(n)}function mE(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Xv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=CP()}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=Pq({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)?O(r,function(a){return se(n,a)}):se(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function VK(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=WK(t,r),c,f,d,h;if(o>1||l&&!o){var v=GK(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=c=Is(i,r,a[0]),f=p.type}else h=c=l?s[0]:s;var g=t0(t),m=g&&t.name||"",y=i.getName(r),_=n?m:y;return Ou("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Ou("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Vn(_),value:c,valueType:f})].concat(d||[])})}function GK(e,t,r,n,i){var a=t.getData(),o=oa(e,function(f,d,h){var v=a.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?O(n,function(f){c(Is(a,r,f),f)}):O(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Ou("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ki=Pt();function qc(e,t){return e.getName(t)||e.getId(t)}var UK="__universalTransitionEnabled",Mh=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=Zl({count:YK,reset:qK}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=ki(this).sourceManager=new OK(this);a.prepareSource();var o=this.getInitialData(r,i);ES(o,this),this.dataTask.context.data=o,ki(this).dataBeforeProcessed=o,PS(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Du(this),a=i?xh(r):{},o=this.subType;St.hasClass(o)&&(o+="Series"),st(r,n.getTheme().get(this.subType)),st(r,this.getDefaultOption()),Hg(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ds(r,a,i)},t.prototype.mergeOption=function(r,n){r=st(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Du(this);i&&Ds(this.option,r,i);var a=ki(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);ES(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ki(this).dataBeforeProcessed=o,PS(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!zr(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Hg(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=om(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return ki(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=om(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}ki(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Ue(r)},t.prototype.getSourceManager=function(){return ki(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ki(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return VK({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Ge.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=T0.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<r.length;s++){var l=r[s],u=qc(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Tt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=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[qc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[UK])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"){Ie(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=qc(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=qc(r,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return St.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}(St);Jn(Mh,yK);Jn(Mh,T0);LP(Mh,St);function PS(e){var t=e.name;t0(e)||(e.name=jK(e)||t)}function jK(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return O(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function YK(e){return e.model.getRawData().count()}function qK(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),KK}function KK(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ES(e,t){O(UU(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Rt(XK,t))})}function XK(e,t){var r=om(e);return r&&r.setOutputEnd((t||this).count()),t}function om(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 wo=Mh;var D0=function(){function e(){this.group=new cn,this.uid=gh("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}();n0(D0);ch(D0);const Si=D0;function yE(){var e=Pt();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 _E=Pt(),ZK=yE(),I0=function(){function e(){this.group=new cn,this.uid=gh("viewChart"),this.renderTask=Zl({plan:QK,reset:JK}),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&&DS(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&DS(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){g0(this.group,t)},e.markUpdateMethod=function(t,r){_E(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function LS(e,t,r){e&&Xg(e)&&(t==="emphasis"?Ug:jg)(e,r)}function DS(e,t,r){var n=nc(e,t),i=t&&t.highlightKey!=null?i7(t.highlightKey):null;n!=null?O(cr(n),function(a){LS(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){LS(a,r,i)})}n0(I0);ch(I0);function QK(e){return ZK(e.model)}function JK(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&_E(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),eX[l]}var eX={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 co=I0;var Td="\0__throttleOriginMethod",IS="\0__throttleRate",OS="\0__throttleType";function O0(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var p=c||t,g=c||r;c=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function bE(e,t,r,n){var i=e[t];if(i){var a=i[Td]||i,o=i[OS],s=i[IS];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=O0(a,r,n==="debounce"),i[Td]=a,i[OS]=n,i[IS]=r}return i}}function sm(e,t){var r=e[t];r&&r[Td]&&(r.clear&&r.clear(),e[t]=r[Td])}var RS=Pt(),kS={itemStyle:Mu(D2,!0),lineStyle:Mu(L2,!0)},tX={lineStyle:"stroke",itemStyle:"fill"};function wE(e,t){var r=e.visualStyleMapper||kS[t];return r||(console.warn("Unknown style type '"+t+"'."),kS.itemStyle)}function SE(e,t){var r=e.visualDrawType||tX[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var rX={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=wE(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=SE(e,n),u=o[l],c=Ve(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ve(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Ve(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=se({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},ul=new rr,nX={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=wE(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ul.option=l[n];var u=i(ul),c=o.ensureUniqueItemVisual(s,"style");se(c,u),ul.option.decal&&(o.setItemVisual(s,"decal",ul.option.decal),ul.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},iX={performRawSeries:!0,overallReset:function(e){var t=Ue();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)),RS(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=RS(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=SE(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Kc=Math.PI;function aX(e,t){t=t||{},dt(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 cn,n=new Ht({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new dr({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 Ht({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 c0({shape:{startAngle:-Kc/2,endAngle:-Kc/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:Kc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Kc*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),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var oX=function(){function e(t,r,n,i){this._stageTaskMap=Ue(),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=Ue();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;O(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";bi(!(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;O(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.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 f&&f.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=Ue(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Zl({plan:fX,reset:dX,count:vX}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Zl({reset:sX});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Ue(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";bi(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,O(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Zl({reset:lX,onDirty:cX})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,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 Ve(t)&&(t={overallReset:t,seriesType:pX(t)}),t.uid=gh("stageHandler"),r&&(t.visualType=r),t},e}();function sX(e){e.overallReset(e.ecModel,e.api,e.payload)}function lX(e){return e.overallProgress&&uX}function uX(){this.agent.dirty(),this.getDownstream().dirty()}function cX(){this.agent&&this.agent.dirty()}function fX(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function dX(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=cr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Re(t,function(r,n){return xE(n)}):hX}var hX=xE(0);function xE(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function vX(e){return e.data.count()}function pX(e){Md=null;try{e(Ru,CE)}catch{}return Md}var Ru={},CE={},Md;TE(Ru,J2);TE(CE,eE);Ru.eachSeriesByType=Ru.eachRawSeriesByType=function(e){Md=e};Ru.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Md=e.subType)};function TE(e,t){for(var r in t.prototype)e[r]=Tr}const ME=oX;var NS=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const gX={color:NS,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],NS]};var ar="#B9B8CE",FS="#100C2A",Xc=function(){return{axisLine:{lineStyle:{color:ar}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},BS=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],AE={darkMode:!0,color:BS,backgroundColor:FS,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ar}},textStyle:{color:ar},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ar}},dataZoom:{borderColor:"#71708A",textStyle:{color:ar},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:ar}},timeline:{lineStyle:{color:ar},label:{color:ar},controlStyle:{color:ar,borderColor:ar}},calendar:{itemStyle:{color:FS},dayLabel:{color:ar},monthLabel:{color:ar},yearLabel:{color:ar}},timeAxis:Xc(),logAxis:Xc(),valueAxis:Xc(),categoryAxis:Xc(),line:{symbol:"circle"},graph:{color:BS},gauge:{title:{color:ar},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ar},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};AE.categoryAxis.splitLine.show=!1;const mX=AE;var yX=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Te(t)){var a=Gn(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};O(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(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 c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),lm=["symbol","symbolSize","symbolRotate","symbolOffset"],$S=lm.concat(["symbolKeepAspect"]),_X={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<lm.length;o++){var s=lm[o],l=e.get(s);Ve(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(se({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Tt(i);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(d,g,i[g](h,v))}}return{dataEach:a?c:null}}},bX={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<$S.length;s++){var l=$S[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function wX(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function SX(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function xX(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}O([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=se({},i),o.dispatchAction(se(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Vo(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=nc(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:ge(d)?f.getName(d[0]):f.getName(d),selected:Te(l)?l:se({},l)})}})}function CX(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Vo("map","selectchanged",t,i,n),Vo("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Vo("map","selected",t,i,n),Vo("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Vo("map","unselected",t,i,n),Vo("pie","unselected",t,i,n))})}function Al(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var TX=Math.round(Math.random()*9),MX=typeof Object.defineProperty=="function",AX=function(){function e(){this._id="__ec_inner_"+TX++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return MX?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const PX=AX;var EX=ht.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),LX=ht.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),DX=ht.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),IX=ht.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),OX={line:bo,rect:Ht,roundRect:Ht,square:Ht,circle:u0,diamond:LX,pin:DX,arrow:IX,triangle:EX},RX={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},um={};O(OX,function(e,t){um[t]=new e});var kX=ht.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=gd(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=um[n];i||(n="rect",i=um[n]),RX[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function NX(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function R0(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=x2(e.slice(8),new et(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=d0(e.slice(7),{},new et(t,r,n,i),o?"center":"cover"):l=new kX({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=NX,a&&l.setColor(a),l}function FX(e,t){if(e!=null)return ge(e)||(e=[e,e]),[gt(e[0],t[0])||0,gt(qe(e[1],e[0]),t[1])||0]}function to(e){return isFinite(e)}function BX(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=to(n)?n:0,i=to(i)?i:1,a=to(a)?a:0,o=to(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function $X(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=to(o)?o:.5,s=to(s)?s:.5,l=l>=0&&to(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function cm(e,t,r){for(var n=t.type==="radial"?$X(e,t,r):BX(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function HX(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Zc(e){return parseInt(e,10)}function Qc(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Zc(s[n])||Zc(e.style[n]))-(Zc(s[a])||0)-(Zc(s[o])||0)|0}function zX(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:bt(e)?[e]:ge(e)?e:null}function PE(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&zX(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Re(r,function(a){return a/i}),n/=i)}return[r,n]}var WX=new _o(!0);function Ad(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function HS(e){return typeof e=="string"&&e!=="none"}function Pd(e){var t=e.fill;return t!=null&&t!=="none"}function zS(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 WS(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 fm(e,t,r){var n=DP(t.image,t.__image,r);if(fh(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)*jU),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function VX(e,t,r,n){var i,a=Ad(r),o=Pd(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||WX,f=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,S=void 0,w=void 0;(v||p)&&(w=t.getBoundingRect()),v&&(y=f?cm(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=f?cm(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=f||!t.__canvasFillPattern?fm(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(S=f||!t.__canvasStrokePattern?fm(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),v?e.fillStyle=y:g&&(b?e.fillStyle=b:o=!1),p?e.strokeStyle=_:m&&(S?e.strokeStyle=S:a=!1)}var x=t.getGlobalScale();c.setScale(x[0],x[1],t.segmentIgnoreThreshold);var C,M;e.setLineDash&&r.lineDash&&(i=PE(t),C=i[0],M=i[1]);var E=!0;(u||f&Ko)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),E=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),E&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=M),n||(r.strokeFirst?(a&&WS(e,r),o&&zS(e,r)):(o&&zS(e,r),a&&WS(e,r))),C&&e.setLineDash([])}function GX(e,t,r){var n=t.__image=DP(r.image,t.__image,t,t.onload);if(!(!n||!fh(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,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function UX(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||yo,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=PE(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Ad(r)&&e.strokeText(i,r.x,r.y),Pd(r)&&e.fillText(i,r.x,r.y)):(Pd(r)&&e.fillText(i,r.x,r.y),Ad(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var VS=["shadowBlur","shadowOffsetX","shadowOffsetY"],GS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function EE(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){wr(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?lo.opacity:o}(n||t.blend!==r.blend)&&(a||(wr(e,i),a=!0),e.globalCompositeOperation=t.blend||lo.blend);for(var s=0;s<VS.length;s++){var l=VS[s];(n||t[l]!==r[l])&&(a||(wr(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(wr(e,i),a=!0),e.shadowColor=t.shadowColor||lo.shadowColor),a}function US(e,t,r,n,i){var a=ku(t,i.inHover),o=n?null:r&&ku(r,i.inHover)||{};if(a===o)return!1;var s=EE(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(wr(e,i),s=!0),HS(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(wr(e,i),s=!0),HS(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(wr(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(wr(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<GS.length;c++){var f=GS[c],d=f[0];(n||a[d]!==o[d])&&(s||(wr(e,i),s=!0),e[d]=a[d]||f[1])}return s}function jX(e,t,r,n,i){return EE(e,ku(t,i.inHover),r&&ku(r,i.inHover),n,i)}function LE(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function YX(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),LE(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function qX(e,t){return e&&t?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&&!t)}var jS=1,YS=2,qS=3,KS=4;function KX(e){var t=Pd(e),r=Ad(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function wr(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function ku(e,t){return t&&e.__hoverStyle||e.style}function DE(e,t){ro(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ro(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Rr,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||HX(a,o))&&(o&&o.length&&(wr(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(wr(e,r),e.save(),YX(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof ht&&t.autoBatch&&KX(t.style);s||qX(i,u.transform)?(wr(e,r),LE(e,t)):c||wr(e,r);var f=ku(t,r.inHover);t instanceof ht?(r.lastDrawType!==jS&&(l=!0,r.lastDrawType=jS),US(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),VX(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof Gg?(r.lastDrawType!==qS&&(l=!0,r.lastDrawType=qS),US(e,t,u,l,r),UX(e,t,f)):t instanceof zs?(r.lastDrawType!==YS&&(l=!0,r.lastDrawType=YS),jX(e,t,u,l,r),GX(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==KS&&(l=!0,r.lastDrawType=KS),XX(e,t,r)),c&&n&&wr(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function XX(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ro(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ro(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Zv=new PX,XS=new tc(100),ZS=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function dm(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Zv.delete(e);var a=Zv.get(e);if(a)return a;var o=dt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Zv.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<ZS.length;++d){var h=o[ZS[d]];if(h!=null&&!ge(h)&&!Te(h)&&!bt(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(i?"-svg":"");var p=XS.get(v);p&&(i?u.svgElement=p:u.image=p)}var g=OE(o.dashArrayX),m=ZX(o.dashArrayY),y=IE(o.symbol),_=QX(g),b=RE(m),S=!i&&Mo.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=M(),C;S&&(S.width=x.width*r,S.height=x.height*r,C=S.getContext("2d")),E(),f&&XS.put(v,S||w),u.image=S,u.svgElement=w,u.svgWidth=x.width,u.svgHeight=x.height;function M(){for(var A=1,T=0,D=_.length;T<D;++T)A=fw(A,_[T]);for(var N=1,T=0,D=y.length;T<D;++T)N=fw(N,y[T].length);A*=N;var H=b*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(H,o.maxTileHeight))}}function E(){C&&(C.clearRect(0,0,S.width,S.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,S.width,S.height)));for(var A=0,T=0;T<m.length;++T)A+=m[T];if(A<=0)return;for(var D=-b,N=0,H=0,$=0;D<x.height;){if(N%2===0){for(var G=H/2%y.length,F=0,R=0,j=0;F<x.width*2;){for(var re=0,T=0;T<g[$].length;++T)re+=g[$][T];if(re<=0)break;if(R%2===0){var oe=(1-o.symbolSize)*.5,ye=F+g[$][R]*oe,Ae=D+m[N]*oe,V=g[$][R]*o.symbolSize,Q=m[N]*o.symbolSize,W=j/2%y[G].length;q(ye,Ae,V,Q,y[G][W])}F+=g[$][R],++j,++R,R===g[$].length&&(R=0)}++$,$===g.length&&($=0)}D+=m[N],++H,++N,N===m.length&&(N=0)}function q(le,de,J,L,I){var z=i?1:r,U=R0(I,le*z,de*z,J*z,L*z,o.color,o.symbolKeepAspect);if(i){var K=n.painter.renderOneToVNode(U);K&&w.children.push(K)}else DE(C,U)}}}}function IE(e){if(!e||e.length===0)return[["rect"]];if(Te(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Te(e[r])){t=!1;break}if(t)return IE([e]);for(var n=[],r=0;r<e.length;++r)Te(e[r])?n.push([e[r]]):n.push(e[r]);return n}function OE(e){if(!e||e.length===0)return[[0,0]];if(bt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!bt(e[n])){r=!1;break}if(r)return OE([e]);for(var i=[],n=0;n<e.length;++n)if(bt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Re(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function ZX(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(bt(e)){var t=Math.ceil(e);return[t,t]}var r=Re(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function QX(e){return Re(e,function(t){return RE(t)})}function RE(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function JX(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=dm(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=dm(i,t)}}})}var eZ=new ei;const yn=eZ;var kE={};function tZ(e,t){kE[e]=t}function rZ(e){return kE[e]}var nZ=1,iZ=800,aZ=900,oZ=1e3,sZ=2e3,lZ=5e3,NE=1e3,uZ=1100,k0=2e3,FE=3e3,cZ=4e3,Ah=4500,fZ=4600,dZ=5e3,hZ=6e3,BE=7e3,vZ={PROCESSOR:{FILTER:oZ,SERIES_FILTER:iZ,STATISTIC:lZ},VISUAL:{LAYOUT:NE,PROGRESSIVE_LAYOUT:uZ,GLOBAL:k0,CHART:FE,POST_CHART_LAYOUT:fZ,COMPONENT:cZ,BRUSH:dZ,CHART_ITEM:Ah,ARIA:hZ,DECAL:BE}},Qt="__flagInMainProcess",gr="__pendingUpdate",Qv="__needsUpdateStatus",QS=/^[a-zA-Z0-9_]+$/,Jv="__connectUpdateStatus",JS=0,pZ=1,gZ=2;function $E(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return zE(this,e,t)}}function HE(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return zE(this,e,t)}}function zE(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),ei.prototype[t].apply(e,r)}var WE=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ei),VE=WE.prototype;VE.on=HE("on");VE.off=HE("off");var Go,ep,Jc,Ni,tp,rp,np,cl,fl,ex,tx,ip,rx,ef,nx,GE,Vr,ix,UE=function(e){pe(t,e);function t(r,n,i){var a=e.call(this,new yX)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Te(n)&&(n=jE[n]),a._dom=r;var o="canvas",s="auto",l=!1,u=a._zr=uw(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:qe(i.useDirtyRect,l),useCoarsePointer:qe(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=O0(_t(u.flush,u),17),n=Qe(n),n&&rE(n,!0),a._theme=n,a._locale=wq(i.locale||O2),a._coordSysMgr=new M0;var c=a._api=nx(a);function f(d,h){return d.__prio-h.__prio}return If(Ld,f),If(hm,f),a._scheduler=new ME(a,c,hm,Ld),a._messageCenter=new WE,a._initEvents(),a.resize=_t(a.resize,a),u.animation.on("frame",a._onframe,a),ex(u,a),tx(u,a),Sg(a),a}return t.prototype._onframe=function(){if(!this._disposed){ix(this);var r=this._scheduler;if(this[gr]){var n=this[gr].silent;this[Qt]=!0;try{Go(this),Ni.update.call(this,null,this[gr].updateParams)}catch(l){throw this[Qt]=!1,this[gr]=null,l}this._zr.flush(),this[Qt]=!1,this[gr]=null,cl.call(this,n),fl.call(this,n)}else if(r.unfinished){var i=nZ,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),rp(this,a),r.performVisualTasks(a),ef(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&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[Qt]){if(this._disposed){this.id;return}var a,o,s;if(Ie(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Qt]=!0,!this._model||n){var l=new tK(this._api),u=this._theme,c=this._model=new J2;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},vm);var f={seriesTransition:s,optionChanged:!0};if(i)this[gr]={silent:a,updateParams:f},this[Qt]=!1,this.getZr().wakeUp();else{try{Go(this),Ni.update.call(this,null,f)}catch(d){throw this[gr]=null,this[Qt]=!1,d}this._ssr||this._zr.flush(),this[gr]=null,this[Qt]=!1,cl.call(this,a),fl.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||Ge.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(Ge.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return O(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;O(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return O(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(ax[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();O(Jl,function(_,b){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Qe(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),c=o(w.right,c),f=o(w.bottom,f),d.push({dom:S,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Mo.createCanvas(),m=uw(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return O(d,function(_){var b=_.left-l,S=_.top-u;y+='<g transform="translate('+b+","+S+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Ht({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),O(d,function(_){var b=new zs({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 tp(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return tp(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Cv(i,r);return O(o,function(s,l){l.indexOf("Models")>=0&&O(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Cv(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?wX(s,l,n):SX(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;O(mZ,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Al(s,function(v){var p=ft(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=se({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),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)}),O(Ql,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),O(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),CX(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&&PP(this.getDom(),F0,"");var n=this,i=n._api,a=n._model;O(n._componentsViews,function(o){o.dispose(a,i)}),O(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 Jl[n.id]},t.prototype.resize=function(r){if(!this[Qt]){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[gr]&&(a==null&&(a=this[gr].silent),i=!0,this[gr]=null),this[Qt]=!0;try{i&&Go(this),Ni.update.call(this,{type:"resize",animation:se({duration:0},r&&r.animation)})}catch(o){throw this[Qt]=!1,o}this[Qt]=!1,cl.call(this,a),fl.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ie(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!pm[r]){var i=pm[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=se({},r);return n.type=Ql[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ie(n)||(n={silent:!!n}),!!Ed[r.type]&&this._model){if(this[Qt]){this._pendingActions.push(r);return}var i=n.silent;np.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Ge.browser.weChat&&this._throttledZrFlush(),cl.call(this,i),fl.call(this,i)}},t.prototype.updateLabelLayout=function(){yn.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(){Go=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),ep(f,!0),ep(f,!1),d.plan()},ep=function(f,d){for(var h=f._model,v=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_<p.length;_++)p[_].__alive=!1;d?h.eachComponent(function(w,x){w!=="series"&&b(x)}):h.eachSeries(b);function b(w){var x=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,M=!x&&g[C];if(!M){var E=Gn(w.type),A=d?Si.getClass(E.main,E.sub):co.getClass(E.sub);M=new A,M.init(h,y),g[C]=M,p.push(M),m.add(M.group)}w.__viewId=M.__id=C,M.__alive=!0,M.__model=w,M.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!d&&v.prepareView(M,w,h,y)}for(var _=0;_<p.length;){var S=p[_];S.__alive?_++:(!d&&S.renderTask.dispose(),m.remove(S.group),S.dispose(h,y),p.splice(_,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Jc=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){O([].concat(f._componentsViews).concat(f._chartsViews),S);return}var m={};m[v+"Id"]=h[v+"Id"],m[v+"Index"]=h[v+"Index"],m[v+"Name"]=h[v+"Name"];var y={mainType:v,query:m};p&&(y.subType=p);var _=h.excludeSeriesId,b;_!=null&&(b=Ue(),O(cr(_),function(w){var x=Yn(w,null);x!=null&&b.set(x,!0)})),g&&g.eachComponent(y,function(w){var x=b&&b.get(w.id)!=null;if(!x)if($w(h))if(w instanceof wo)h.type===uo&&!h.notBlur&&!w.get(["emphasis","disabled"])&&XY(w,h,f._api);else{var C=l0(w.mainType,w.componentIndex,h.name,f._api),M=C.focusSelf,E=C.dispatchers;h.type===uo&&M&&!h.notBlur&&qg(w.mainType,w.componentIndex,f._api),E&&O(E,function(A){h.type===uo?Ug(A):jg(A)})}else Zg(h)&&w instanceof wo&&(JY(w,h,f._api),Fw(w),Vr(f))},f),g&&g.eachComponent(y,function(w){var x=b&&b.get(w.id)!=null;x||S(f[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},f);function S(w){w&&w.__alive&&w[d]&&w[d](w.__model,g,f._api,h)}},Ni={prepareAndUpdate:function(f){Go(this),Ni.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),g.create(h,v),m.performDataProcessorTasks(h,f),rp(this,h),g.update(h,v),r(h),m.performVisualTasks(h,f),ip(this,h,v,f,d);var y=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),yn.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(m,y){if(m!=="series"){var _=d.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,h,v,f);b&&b.update&&p.push(_)}else p.push(_)}});var g=Ue();h.eachSeries(function(m){var y=d._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,h,v,f);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),ef(this,h,v,f,{},g),yn.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),co.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),ip(this,d,this._api,f,{}),yn.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),co.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,f)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,f)}),yn.trigger("afterupdate",h,this._api))},updateLayout:function(f){Ni.update.call(this,f)}},tp=function(f,d,h,v){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,y=Cv(p,h),_=0;_<g.length;_++){var b=g[_];if(b[d]&&(m=b[d](p,y,v))!=null)return m}},rp=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},np=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,m=Ed[p],y=m.actionInfo,_=(y.update||"update").split(":"),b=_.pop(),S=_[0]!=null&&Gn(_[0]);this[Qt]=!0;var w=[f],x=!1;f.batch&&(x=!0,w=Re(f.batch,function(N){return N=dt(se({},N),f),N.batch=null,N}));var C=[],M,E=Zg(f),A=$w(f);if(A&&QP(this._api),O(w,function(N){if(M=m.action(N,h._model,h._api),M=M||se({},N),M.type=y.event||M.type,C.push(M),A){var H=r0(f),$=H.queryOptionMap,G=H.mainTypeSpecified,F=G?$.keys()[0]:"series";Jc(h,b,N,F),Vr(h)}else E?(Jc(h,b,N,"series"),Vr(h)):S&&Jc(h,b,N,S.main,S.sub)}),b!=="none"&&!A&&!E&&!S)try{this[gr]?(Go(this),Ni.update.call(this,f),this[gr]=null):Ni[b].call(this,f)}catch(N){throw this[Qt]=!1,N}if(x?M={type:y.event||p,escapeConnect:g,batch:C}:M=C[0],this[Qt]=!1,!d){var T=this._messageCenter;if(T.trigger(M.type,M),E){var D={type:"selectchanged",escapeConnect:g,selected:e7(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};T.trigger(D.type,D)}}},cl=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();np.call(this,h,f)}},fl=function(f){!f&&this.trigger("updated")},ex=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[gr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},tx=function(f,d){f.on("mouseover",function(h){var v=h.target,p=Al(v,Xg);p&&(ZY(p,h,d._api),Vr(d))}).on("mouseout",function(h){var v=h.target,p=Al(v,Xg);p&&(QY(p,h,d._api),Vr(d))}).on("click",function(h){var v=h.target,p=Al(v,function(y){return ft(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ft(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],v=!1;if(f.eachComponent(function(y,_){var b=_.get("zlevel")||0,S=_.get("z")||0,w=_.getZLevelKey();v=v||!!w,(y==="series"?h:d).push({zlevel:b,z:S,idx:_.componentIndex,type:y,key:w})}),v){var p=d.concat(h),g,m;If(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),O(p,function(y){var _=f.getComponent(y.type,y.idx),b=y.zlevel,S=y.key;g!=null&&(b=Math.max(g,b)),S?(b===g&&S!==m&&b++,m=S):m&&(b===g&&b++,m=""),g=b,_.setZLevel(b)})}}ip=function(f,d,h,v,p){n(d),rx(f,d,h,v,p),O(f._chartsViews,function(g){g.__alive=!1}),ef(f,d,h,v,p),O(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},rx=function(f,d,h,v,p,g){O(g||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,d,h,v),s(y,m),c(y,m)})},ef=function(f,d,h,v,p,g){var m=f._scheduler;p=se(p||{},{updatedSeries:d.getSeries()}),yn.trigger("series:beforeupdate",d,h,p);var y=!1;d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];b.__alive=!0;var S=b.renderTask;m.updatePayload(S,v),u(_,b),g&&g.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),b.group.silent=!!_.get("silent"),o(_,b),Fw(_)}),m.unfinished=y||m.unfinished,yn.trigger("series:layoutlabels",d,h,p),yn.trigger("series:transition",d,h,p),d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];s(_,b),c(_,b)}),a(f,d),yn.trigger("series:afterupdate",d,h,p)},Vr=function(f){f[Qv]=!0,f.getZr().wakeUp()},ix=function(f){f[Qv]&&(f.getZr().storage.traverse(function(d){fs(d)||i(d)}),f[Qv]=!1)};function i(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}f.selected&&f.states.select&&d.push("select"),f.hoverState===o0&&f.states.emphasis?d.push("emphasis"):f.hoverState===a0&&f.states.blur&&d.push("blur"),f.useStates(d)}function a(f,d){var h=f._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!Ge.node&&!Ge.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(f,d,h,v){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var b=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(b&&b.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!fs(h)){var v=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(fs(m))return;if(m instanceof ht&&a7(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(f){return new(function(d){pe(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){Ug(v,p),Vr(f)},h.prototype.leaveEmphasis=function(v,p){jg(v,p),Vr(f)},h.prototype.enterBlur=function(v){KY(v),Vr(f)},h.prototype.leaveBlur=function(v){qP(v),Vr(f)},h.prototype.enterSelect=function(v){KP(v),Vr(f)},h.prototype.leaveSelect=function(v){XP(v),Vr(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(eE))(f)},GE=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[Jv]=v}}O(Ql,function(h,v){f._messageCenter.on(v,function(p){if(ax[f.group]&&f[Jv]!==JS){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];O(Jl,function(y){y!==f&&y.group===f.group&&m.push(y)}),d(m,JS),O(m,function(y){y[Jv]!==pZ&&y.dispatchAction(g)}),d(m,gZ)}})})}}(),t}(ei),N0=UE.prototype;N0.on=$E("on");N0.off=$E("off");N0.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var mZ=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],Ed={},Ql={},hm=[],vm=[],Ld=[],jE={},pm={},Jl={},ax={},yZ=+new Date-0,F0="_echarts_instance_";function B0(e,t,r){var n=!(r&&r.ssr);if(n){var i=_Z(e);if(i)return i}var a=new UE(e,t,r);return a.id="ec_"+yZ++,Jl[a.id]=a,n&&PP(e,F0,a.id),GE(a),yn.trigger("afterinit",a),a}function _Z(e){return Jl[kj(e,F0)]}function YE(e,t){jE[e]=t}function qE(e){ot(vm,e)<0&&vm.push(e)}function KE(e,t){H0(hm,e,t,sZ)}function bZ(e){$0("afterinit",e)}function wZ(e){$0("afterupdate",e)}function $0(e,t){yn.on(e,t)}function Gs(e,t,r){Ve(t)&&(r=t,t="");var n=Ie(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Ql[t]&&(bi(QS.test(n)&&QS.test(t)),Ed[n]||(Ed[n]={action:r,actionInfo:e}),Ql[t]=n)}function SZ(e,t){M0.register(e,t)}function xZ(e,t){H0(Ld,e,t,NE,"layout")}function Eo(e,t){H0(Ld,e,t,FE,"visual")}var ox=[];function H0(e,t,r,n,i){if((Ve(t)||Ie(t))&&(r=t,t=n),!(ot(ox,r)>=0)){ox.push(r);var a=ME.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function XE(e,t){pm[e]=t}function CZ(e,t,r){var n=rZ("registerMap");n&&n(e,t,r)}var TZ=AK;Eo(k0,rX);Eo(Ah,nX);Eo(Ah,iX);Eo(k0,_X);Eo(Ah,bX);Eo(BE,JX);qE(rE);KE(aZ,uK);XE("default",aX);Gs({type:uo,event:uo,update:uo},Tr);Gs({type:$f,event:$f,update:$f},Tr);Gs({type:jl,event:jl,update:jl},Tr);Gs({type:Hf,event:Hf,update:Hf},Tr);Gs({type:Yl,event:Yl,update:Yl},Tr);YE("light",gX);YE("dark",mX);function dl(e){return e==null?0:e.length||1}function sx(e){return e}var MZ=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||sx,this._newKeyGetter=i||sx,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;o<t.length;o++){var s=i[o],l=n[s],u=dl(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,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;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=dl(u),d=dl(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=dl(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=dl(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const AZ=MZ;var PZ=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function EZ(e,t){var r={},n=r.encode={},i=Ue(),a=[],o=[],s={};O(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;ap(n,v)[p]=d,h.isExtraCoord||(i.set(v,1),DZ(h.type)&&(a[0]=d),ap(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}Y2.each(function(g,m){var y=ap(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Re(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new PZ(s,t),r}function ap(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function LZ(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function DZ(e){return!(e==="ordinal"||e==="time")}var IZ=function(){function e(t){this.otherDims={},t!=null&&se(this,t)}return e}();const Gf=IZ;var OZ=Pt(),RZ={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ZE=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=eL(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return qe(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=iE(this.source),n=!tL(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=RZ[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function QE(e){return e instanceof ZE}function JE(e){for(var t=Ue(),r=0;r<(e||[]).length;r++){var n=e[r],i=Ie(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function eL(e){var t=OZ(e);return t.dimNameMap||(t.dimNameMap=JE(e.dimensionsDefine))}function tL(e){return e>30}var hl=Ie,Fi=Re,kZ=typeof Int32Array>"u"?Array:Int32Array,NZ="e\0\0",lx=-1,FZ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],BZ=["_approximateExtent"],ux,tf,vl,pl,op,rf,sp,$Z=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;QE(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={},c=0;c<n.length;c++){var f=n[c],d=Te(f)?new Gf({name:f}):f instanceof Gf?f:new Gf(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Ue();O(o,function(g){p.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(bt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof nm&&(a=t),!a){var o=this.dimensions,s=A0(t)||Pr(t)?new aE(t,o.length):t;a=new nm;var l=Fi(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=EZ(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&sp(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Ji&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===dn;if(l&&!i.pure)for(var u=[],c=t;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&Cj(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=Yn(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=Yn(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)sp(this,c);ux(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){hl(t)?se(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=vl(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return tf(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return ge(t)?i.getValues(Fi(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?lx:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Ve(t)&&(n=r,r=t,t=[]);var i=n||this,a=Fi(pl(t),this._getStoreDimIndex,this);this._store.each(a,i?_t(r,i):r)},e.prototype.filterSelf=function(t,r,n){Ve(t)&&(n=r,r=t,t=[]);var i=n||this,a=Fi(pl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?_t(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Tt(t);return O(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Ve(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Fi(pl(t),this._getStoreDimIndex,this),s=rf(this);return s._store=this._store.map(o,a?_t(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Fi(pl(t),this._getStoreDimIndex,this);this._store.modify(o,a?_t(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=rf(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=rf(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new rr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new AZ(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return tf(t,n)},function(n){return tf(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},hl(t)?se(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},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():hl(a)&&(a=se({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,hl(r)?se(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){hl(t)?se(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?se(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;$Y(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){O(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:Fi(this.dimensions,this._getDimInfo,this),this.hostModel)),op(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Ve(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Uy(arguments)))})},e.internalField=function(){ux=function(t){var r=t._invertedIndicesMap;O(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new kZ(o.categories.length);for(var l=0;l<n.length;l++)n[l]=lx;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},vl=function(t,r,n){return Yn(t._getCategory(r,n),null)},tf=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=vl(t,t._idDimIdx,r)),n==null&&(n=NZ+r),n},pl=function(t){return ge(t)||(t=t!=null?[t]:[]),t},rf=function(t){var r=new e(t._schema?t._schema:Fi(t.dimensions,t._getDimInfo,t),t.hostModel);return op(r,t),r},op=function(t,r){O(FZ.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,O(BZ,function(n){t[n]=Qe(r[n])}),t._calculationInfo=se({},r._calculationInfo)},sp=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=vl(t,a,r)),l==null&&o!=null&&(i[r]=l=vl(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const rL=$Z;function nL(e,t){A0(e)||(e=P0(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Ue(),a=[],o=zZ(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&tL(o),l=n===e.dimensionsDefine,u=l?eL(e):JE(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Ue(c),d=new cE(o),h=0;h<d.length;h++)d[h]=-1;function v(M){var E=d[M];if(E<0){var A=n[M],T=Ie(A)?A:{name:A},D=new Gf,N=T.name;N!=null&&u.get(N)!=null&&(D.name=D.displayName=N),T.type!=null&&(D.type=T.type),T.displayName!=null&&(D.displayName=T.displayName);var H=a.length;return d[M]=H,D.storeDimIndex=M,a.push(D),D}return a[E]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(M,E){var A=cr(M).slice();if(A.length===1&&!Te(A[0])&&A[0]<0){f.set(E,!1);return}var T=f.set(E,[]);O(A,function(D,N){var H=Te(D)?u.get(D):D;H!=null&&H<o&&(T[N]=H,g(v(H),E,N))})});var p=0;O(r,function(M){var E,A,T,D;if(Te(M))E=M,D={};else{D=M,E=D.name;var N=D.ordinalMeta;D.ordinalMeta=null,D=se({},D),D.ordinalMeta=N,A=D.dimsDef,T=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var H=f.get(E);if(H!==!1){if(H=cr(H),!H.length)for(var $=0;$<(A&&A.length||1);$++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&H.push(p++)}O(H,function(G,F){var R=v(G);if(l&&D.type!=null&&(R.type=D.type),g(dt(R,D),E,F),R.name==null&&A){var j=A[F];!Ie(j)&&(j={name:j}),R.name=R.displayName=j.name,R.defaultTooltip=j.defaultTooltip}T&&dt(R.otherDims,T)})}});function g(M,E,A){Y2.get(E)!=null?M.otherDims[E]=A:(M.coordDim=E,M.coordDimIndex=A,i.set(E,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function S(M){M.name==null&&(M.name=M.coordDim)}if(s)O(a,function(M){S(M)}),a.sort(function(M,E){return M.storeDimIndex-E.storeDimIndex});else for(var w=0;w<o;w++){var x=v(w),C=x.coordDim;C==null&&(x.coordDim=WZ(b,i,_),x.coordDimIndex=0,(!m||y<=0)&&(x.isExtraCoord=!0),y--),S(x),x.type==null&&(X2(e,w)===Ut.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return HZ(a),new ZE({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function HZ(e){for(var t=Ue(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function zZ(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return O(t,function(a){var o;Ie(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function WZ(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 VZ=function(){function e(t){this.coordSysDims=[],this.axisMap=Ue(),this.categoryAxisMap=Ue(),this.coordSysName=t}return e}();function GZ(e){var t=e.get("coordinateSystem"),r=new VZ(t),n=UZ[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var UZ={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Cn).models[0],a=e.getReferringComponents("yAxis",Cn).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Uo(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Uo(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Cn).models[0];t.coordSysDims=["single"],r.set("single",i),Uo(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Cn).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Uo(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Uo(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();O(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Uo(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Uo(e){return e.get("type")==="category"}function jZ(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;YZ(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(O(a,function(y,_){Te(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,p=0;O(a,function(y){y.coordDim===h&&p++});var g={name:f,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(f,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function YZ(e){return!QE(e.schema)}function iL(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function qZ(e,t){return iL(e,t)?e.getCalculationInfo("stackResultDimension"):t}function KZ(e,t){var r=e.get("coordinateSystem"),n=M0.get(r),i;return t&&t.coordSysDims&&(i=Re(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=LZ(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function XZ(e,t,r){var n,i;return r&&O(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 aL(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=P0(e)):(i=n.getSource(),a=i.sourceFormat===dn);var o=GZ(t),s=KZ(t,o),l=r.useEncodeDefaulter,u=Ve(l)?l:l?Rt(kq,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=nL(i,c),d=XZ(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),v=jZ(t,{schema:f,store:h}),p=new rL(f,t);p.setCalculationInfo(v);var g=d!=null&&ZZ(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 ZZ(e){if(e.sourceFormat===dn){var t=QZ(e.data||[]);return!ge(rc(t))}}function QZ(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var oL=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[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}();ch(oL);const Pi=oL;var JZ=0,eQ=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++JZ}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Re(n,tQ);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=Ue(this.categories))},e}();function tQ(e){return Ie(e)&&e.value!=null?e.value:e+""}const gm=eQ;function mm(e){return e.type==="interval"||e.type==="log"}function rQ(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=xP(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=sL(o),l=i.niceTickExtent=[kt(Math.ceil(e[0]/o)*o,s),kt(Math.floor(e[1]/o)*o,s)];return nQ(l,e),i}function lp(e){var t=Math.pow(10,e0(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,kt(r*t)}function sL(e){return hi(e)+2}function cx(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function nQ(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),cx(e,0,t),cx(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Ph(e,t){return e>=t[0]&&e<=t[1]}function Eh(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Lh(e,t){return e*(t[1]-t[0])+t[0]}var lL=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 gm({})),ge(i)&&(i=new gm({categories:Re(i,function(a){return Ie(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),Ph(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Eh(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Lh(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<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Pi);Pi.registerClass(lL);const uL=lL;var Ba=kt,cL=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 Ph(r,this._extent)},t.prototype.normalize=function(r){return Eh(r,this._extent)},t.prototype.scale=function(r){return Lh(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[0]&&(n[0]=r[0]),r[1]>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=sL(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]<a[0]&&(r?s.push({value:Ba(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Ba(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:Ba(c+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;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=Ba(l.value+(u+1)*d);h>a[0]&&h<a[1]&&c.push(h),u++}i.push(c)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=hi(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Ba(r.value,i,!0);return V2(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=rQ(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Ba(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Ba(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Pi);Pi.registerClass(cL);const sc=cL;var fL=typeof Float32Array<"u",iQ=fL?Float32Array:Array;function up(e){return ge(e)?fL?new Float32Array(e):e:new iQ(e)}var aQ="__ec_stack_";function z0(e){return e.get("stack")||aQ+e.seriesIndex}function W0(e){return e.dim+e.index}function dL(e,t){var r=[];return t.eachSeriesByType(e,function(n){vL(n)&&r.push(n)}),r}function oQ(e){var t={};O(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),p=0,g=v.count();p<g;++p){var m=v.get(h,p);t[d]?t[d].push(m):t[d]=[m]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function hL(e){var t=oQ(e),r=[];return O(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],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=gt(n.get("barWidth"),s),p=gt(n.get("barMaxWidth"),s),g=gt(n.get("barMinWidth")||(pL(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:W0(a),stackId:z0(n)})}),sQ(r)}function sQ(e){var t={};O(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 c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);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 O(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Tt(a).length;s=Math.max(35-l*4,15)+"%"}var u=gt(s,o),c=gt(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),O(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,f-=b+c*b,d--}else{var b=h;y&&y<b&&(b=Math.min(y,f)),_&&_>b&&(b=_),b!==h&&(m.width=b,f-=b+c*b,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;O(a,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+c)}),p&&(v-=p.width*c);var g=-v/2;O(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function lQ(e,t,r){if(e&&t){var n=e[W0(t)];return n!=null&&r!=null?n[z0(r)]:n}}function uQ(e,t){var r=dL(e,t),n=hL(r);O(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=z0(i),u=n[W0(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function cQ(e){return{seriesType:e,plan:yE(),reset:function(t){if(vL(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),c=r.getCalculationInfo("stackResultDimension"),f=iL(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=fQ(i,a),v=pL(t),p=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var S=_.count,w=v&&up(S*3),x=v&&l&&up(S*3),C=v&&up(S),M=n.master.getRect(),E=d?M.width:M.height,A,T=b.getStore(),D=0;(A=_.next())!=null;){var N=T.get(f?g:o,A),H=T.get(s,A),$=h,G=void 0;f&&(G=+N-T.get(o,A));var F=void 0,R=void 0,j=void 0,re=void 0;if(d){var oe=n.dataToPoint([N,H]);if(f){var ye=n.dataToPoint([G,H]);$=ye[0]}F=$,R=oe[1]+y,j=oe[0]-$,re=m,Math.abs(j)<p&&(j=(j<0?-1:1)*p)}else{var oe=n.dataToPoint([H,N]);if(f){var ye=n.dataToPoint([H,G]);$=ye[1]}F=oe[0]+y,R=$,j=m,re=oe[1]-$,Math.abs(re)<p&&(re=(re<=0?-1:1)*p)}v?(w[D]=F,w[D+1]=R,w[D+2]=d?j:re,x&&(x[D]=d?M.x:F,x[D+1]=d?R:M.y,x[D+2]=E),C[A]=A):b.setItemLayout(A,{x:F,y:R,width:j,height:re}),D+=3}v&&b.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:x,valueAxisHorizontal:d})}}}}}}function vL(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function pL(e){return e.pipelineContext&&e.pipelineContext.large}function fQ(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var dQ=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},gL=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return mh(r.value,tS[Tq(ds(this._minLevelUnit))]||tS.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Mq(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=_Q(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=en,n[1]+=en),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-en}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=nf.length,l=Math.min(dQ(nf,this._approxInterval,0,s),s-1);this._interval=nf[l][1],this._minLevelUnit=nf[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return bt(r)?r:+wi(r)},t.prototype.contain=function(r){return Ph(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Eh(this.parse(r),this._extent)},t.prototype.scale=function(r){return Lh(r,this._extent)},t.type="time",t}(sc),nf=[["second",b0],["minute",w0],["hour",Kl],["quarter-day",Kl*6],["half-day",Kl*12],["day",en*1.2],["half-week",en*3.5],["week",en*7],["month",en*31],["quarter",en*95],["half-year",eS/2],["year",eS]];function hQ(e,t,r,n){var i=wi(t),a=wi(r),o=function(v){return rS(i,v,n)===rS(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&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 c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function vQ(e,t){return e/=en,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function pQ(e){var t=30*en;return e/=t,e>6?6:e>3?3:e>2?2:1}function gQ(e){return e/=Kl,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function fx(e,t){return e/=t?w0:b0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function mQ(e){return xP(e,!0)}function yQ(e,t,r){var n=new Date(e);switch(ds(t)){case"year":case"month":n[F2(r)](0);case"day":n[B2(r)](1);case"hour":n[$2(r)](0);case"minute":n[H2(r)](0);case"second":n[z2(r)](0),n[W2(r)](0)}return n.getTime()}function _Q(e,t,r,n){var i=1e4,a=k2,o=0;function s(E,A,T,D,N,H,$){for(var G=new Date(A),F=A,R=G[D]();F<T&&F<=n[1];)$.push({value:F}),R+=E,G[N](R),F=G.getTime();$.push({value:F,notAdd:!0})}function l(E,A,T){var D=[],N=!A.length;if(!hQ(ds(E),n[0],n[1],r)){N&&(A=[{value:yQ(new Date(n[0]),E,r)},{value:n[1]}]);for(var H=0;H<A.length-1;H++){var $=A[H].value,G=A[H+1].value;if($!==G){var F=void 0,R=void 0,j=void 0,re=!1;switch(E){case"year":F=Math.max(1,Math.round(t/en/365)),R=S0(r),j=Aq(r);break;case"half-year":case"quarter":case"month":F=pQ(t),R=hs(r),j=F2(r);break;case"week":case"half-week":case"day":F=vQ(t),R=yh(r),j=B2(r),re=!0;break;case"half-day":case"quarter-day":case"hour":F=gQ(t),R=Eu(r),j=$2(r);break;case"minute":F=fx(t,!0),R=_h(r),j=H2(r);break;case"second":F=fx(t,!1),R=bh(r),j=z2(r);break;case"millisecond":F=mQ(t),R=wh(r),j=W2(r);break}s(F,$,G,R,j,re,D),E==="year"&&T.length>1&&H===0&&T.unshift({value:T[0].value-F})}}for(var H=0;H<D.length;H++)T.push(D[H]);return D}}for(var u=[],c=[],f=0,d=0,h=0;h<a.length&&o++<i;++h){var v=ds(a[h]);if(Cq(a[h])){l(a[h],u[u.length-1]||[],c);var p=a[h+1]?ds(a[h+1]):null;if(v!==p){if(c.length){d=f,c.sort(function(E,A){return E.value-A.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;(m===0||c[m-1].value!==y)&&(g.push(c[m]),y>=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===a[h]))break}c=[]}}}for(var b=Vt(Re(u,function(E){return Vt(E,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(E){return E.length>0}),S=[],w=b.length-1,h=0;h<b.length;++h)for(var x=b[h],C=0;C<x.length;++C)S.push({value:x[C].value,level:w-h});S.sort(function(E,A){return E.value-A.value});for(var M=[],h=0;h<S.length;++h)(h===0||S[h].value!==S[h-1].value)&&M.push(S[h]);return M}Pi.registerClass(gL);const bQ=gL;var dx=Pi.prototype,eu=sc.prototype,wQ=kt,SQ=Math.floor,xQ=Math.ceil,af=Math.pow,vn=Math.log,V0=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new sc,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=eu.getTicks.call(this,r);return Re(o,function(s){var l=s.value,u=kt(af(this.base,l));return u=l===i[0]&&this._fixMin?of(u,a[0]):u,u=l===i[1]&&this._fixMax?of(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=vn(this.base);r=vn(Math.max(0,r))/i,n=vn(Math.max(0,n))/i,eu.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=dx.getExtent.call(this);n[0]=af(r,n[0]),n[1]=af(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=of(n[0],a[0])),this._fixMax&&(n[1]=of(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=vn(r[0])/vn(n),r[1]=vn(r[1])/vn(n),dx.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=wj(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[kt(xQ(n[0]/a)*a),kt(SQ(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){eu.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=vn(r)/vn(this.base),Ph(r,this._extent)},t.prototype.normalize=function(r){return r=vn(r)/vn(this.base),Eh(r,this._extent)},t.prototype.scale=function(r){return r=Lh(r,this._extent),af(this.base,r)},t.type="log",t}(Pi),mL=V0.prototype;mL.getMinorTicks=eu.getMinorTicks;mL.getLabel=eu.getLabel;function of(e,t){return wQ(e,hi(t))}Pi.registerClass(V0);const CQ=V0;var TQ=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=this._modelMinRaw=r.get("min",!0);Ve(a)?this._modelMinNum=sf(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=sf(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(Ve(o)?this._modelMaxNum=sf(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=sf(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=ge(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[sa(l[0],1),sa(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=cd(s)||cd(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[AQ[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=MQ[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),MQ={min:"_determinedMin",max:"_determinedMax"},AQ={min:"_dataMin",max:"_dataMax"};function PQ(e,t,r){var n=e.rawExtentInfo;return n||(n=new TQ(e,t,r),e.rawExtentInfo=n,n)}function sf(e,t){return t==null?null:cd(t)?NaN:e.parse(t)}function yL(e,t){var r=e.type,n=PQ(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=dL("bar",o),l=!1;if(O(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=hL(s),c=EQ(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function EQ(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=lQ(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;O(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;O(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function hx(e,t){var r=t,n=yL(e,r),i=n.extent,a=r.get("splitNumber");e instanceof CQ&&(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 LQ(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new uL({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new bQ({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Pi.getClass(t)||sc)}}function DQ(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function lc(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):Ve(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(G0(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function G0(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function IQ(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof uL?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=lc(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c},d=s(f,c),h=o.getTextRect(d),v=OQ(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function OQ(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new et(e.x,e.y,a,o);return s}function U0(e){var t=e.get("interval");return t??"auto"}function _L(e){return e.type==="category"&&U0(e.getLabelModel())===0}function RQ(e,t){var r={};return O(e.mapDimensionsAll(t),function(n){r[qZ(e,n)]=!0}),Tt(r)}var kQ=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),vx=[],NQ={registerPreprocessor:qE,registerProcessor:KE,registerPostInit:bZ,registerPostUpdate:wZ,registerUpdateLifecycle:$0,registerAction:Gs,registerCoordinateSystem:SZ,registerLayout:xZ,registerVisual:Eo,registerTransform:TZ,registerLoading:XE,registerMap:CZ,registerImpl:tZ,PRIORITY:vZ,ComponentModel:St,ComponentView:Si,SeriesModel:wo,ChartView:co,registerComponentModel:function(e){St.registerClass(e)},registerComponentView:function(e){Si.registerClass(e)},registerSeriesModel:function(e){wo.registerClass(e)},registerChartView:function(e){co.registerClass(e)},registerSubTypeDefaulter:function(e,t){St.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){vj(e,t)}};function ua(e){if(ge(e)){O(e,function(t){ua(t)});return}ot(vx,e)>=0||(vx.push(e),Ve(e)&&(e={install:e}),e.install(NQ))}var Nu=Pt();function FQ(e){return e.type==="category"?$Q(e):zQ(e)}function BQ(e,t){return e.type==="category"?HQ(e,t):{ticks:Re(e.scale.getTicks(),function(r){return r.value})}}function $Q(e){var t=e.getLabelModel(),r=bL(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function bL(e,t){var r=wL(e,"labels"),n=U0(t),i=SL(r,n);if(i)return i;var a,o;return Ve(n)?a=TL(e,n):(o=n==="auto"?WQ(e):n,a=CL(e,o)),xL(r,n,{labels:a,labelCategoryInterval:o})}function HQ(e,t){var r=wL(e,"ticks"),n=U0(t),i=SL(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Ve(n))a=TL(e,n,!0);else if(n==="auto"){var s=bL(e,e.getLabelModel());o=s.labelCategoryInterval,a=Re(s.labels,function(l){return l.tickValue})}else o=n,a=CL(e,o,!0);return xL(r,n,{ticks:a,tickCategoryInterval:o})}function zQ(e){var t=e.scale.getTicks(),r=lc(e);return{labels:Re(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function wL(e,t){return Nu(e)[t]||(Nu(e)[t]=[])}function SL(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function xL(e,t,r){return e.push({key:t,value:r}),r}function WQ(e){var t=Nu(e).autoInterval;return t??(Nu(e).autoInterval=e.calculateCategoryInterval())}function VQ(e){var t=GQ(e),r=lc(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,p=0,g=Zy(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/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=Nu(e.model),S=e.getExtent(),w=b.lastAutoInterval,x=b.lastTickCount;return w!=null&&x!=null&&Math.abs(w-_)<=1&&Math.abs(x-o)<=1&&w>_&&b.axisExtent0===S[0]&&b.axisExtent1===S[1]?_=w:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=S[0],b.axisExtent1=S[1]),_}function GQ(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 CL(e,t,r){var n=lc(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=_L(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;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 TL(e,t,r){var n=e.scale,i=lc(e),a=[];return O(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 px=[0,1],UQ=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 mj(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(),gx(n,i.count())),$g(t,px,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),gx(n,i.count()));var a=$g(t,n,px,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=BQ(this,r),i=n.ticks,a=Re(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return jQ(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=Re(n,function(a){return Re(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return FQ(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 VQ(this)},e}();function gx(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function jQ(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;O(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=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=kt(h),v=kt(v),f?h>v:h<v}}const YQ=UQ;var gl=Math.PI*2,$a=_o.CMD,qQ=["top","right","bottom","left"];function KQ(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function XQ(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-i)%gl<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var d=n;n=qi(i),i=qi(d)}else n=qi(n),i=qi(i);n>i&&(i+=gl);var h=Math.atan2(s,o);if(h<0&&(h+=gl),h>=n&&h<=i||h+gl>=n&&h+gl<=i)return l[0]=c,l[1]=f,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 Dd(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*c,g=o[1]=t+v*f;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function ML(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),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var _n=[];function ZQ(e,t,r){var n=ML(t.x,t.y,t.width,t.height,e.x,e.y,_n);return r.set(_n[0],_n[1]),n}function QQ(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var v=c[h++];h===1&&(n=c[h],i=c[h+1],a=n,o=i);var p=u;switch(v){case $a.M:a=c[h++],o=c[h++],n=a,i=o;break;case $a.L:p=Dd(n,i,c[h],c[h+1],f,d,_n,!0),n=c[h++],i=c[h++];break;case $a.C:p=lP(n,i,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,_n),n=c[h++],i=c[h++];break;case $a.Q:p=cP(n,i,c[h++],c[h++],c[h],c[h+1],f,d,_n),n=c[h++],i=c[h++];break;case $a.A:var g=c[h++],m=c[h++],y=c[h++],_=c[h++],b=c[h++],S=c[h++];h+=1;var w=!!(1-c[h++]);s=Math.cos(b)*y+g,l=Math.sin(b)*_+m,h<=1&&(a=s,o=l);var x=(f-g)*_/y+g;p=XQ(g,m,_,b,b+S,w,x,d,_n),n=Math.cos(b+S)*y+g,i=Math.sin(b+S)*_+m;break;case $a.R:a=n=c[h++],o=i=c[h++];var C=c[h++],M=c[h++];p=ML(a,o,C,M,f,d,_n);break;case $a.Z:p=Dd(n,i,a,o,f,d,_n,!0),n=a,i=o;break}p<u&&(u=p,r.set(_n[0],_n[1]))}return u}var Tn=new ke,ut=new ke,Et=new ke,Un=new ke,zn=new ke;function mx(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||qQ,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&lh([],c),d=t.get("length2")||0;u&&Et.copy(u);for(var h=0;h<o.length;h++){var v=o[h];KQ(v,0,s,Tn,Un),ke.scaleAndAdd(ut,Tn,Un,d),ut.transform(f);var p=e.getBoundingRect(),g=u?u.distance(ut):e instanceof ht?QQ(ut,e.path,Et):ZQ(ut,p,Et);g<l&&(l=g,ut.transform(c),Et.transform(c),Et.toArray(a[0]),ut.toArray(a[1]),Tn.toArray(a[2]))}AL(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var Id=[],sr=new ke;function AL(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Tn.fromArray(e[0]),ut.fromArray(e[1]),Et.fromArray(e[2]),ke.sub(Un,Tn,ut),ke.sub(zn,Et,ut);var r=Un.len(),n=zn.len();if(!(r<.001||n<.001)){Un.scale(1/r),zn.scale(1/n);var i=Un.dot(zn),a=Math.cos(t);if(a<i){var o=Dd(ut.x,ut.y,Et.x,Et.y,Tn.x,Tn.y,Id,!1);sr.fromArray(Id),sr.scaleAndAdd(zn,o/Math.tan(Math.PI-t));var s=Et.x!==ut.x?(sr.x-ut.x)/(Et.x-ut.x):(sr.y-ut.y)/(Et.y-ut.y);if(isNaN(s))return;s<0?ke.copy(sr,ut):s>1&&ke.copy(sr,Et),sr.toArray(e[1])}}}}function JQ(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Tn.fromArray(e[0]),ut.fromArray(e[1]),Et.fromArray(e[2]),ke.sub(Un,ut,Tn),ke.sub(zn,Et,ut);var n=Un.len(),i=zn.len();if(!(n<.001||i<.001)){Un.scale(1/n),zn.scale(1/i);var a=Un.dot(t),o=Math.cos(r);if(a<o){var s=Dd(ut.x,ut.y,Et.x,Et.y,Tn.x,Tn.y,Id,!1);sr.fromArray(Id);var l=Math.PI/2,u=Math.acos(zn.dot(t)),c=l+u-r;if(c>=l)ke.copy(sr,Et);else{sr.scaleAndAdd(zn,s/Math.tan(Math.PI/2-c));var f=Et.x!==ut.x?(sr.x-ut.x)/(Et.x-ut.x):(sr.y-ut.y)/(Et.y-ut.y);if(isNaN(f))return;f<0?ke.copy(sr,ut):f>1&&ke.copy(sr,Et)}sr.toArray(e[1])}}}}function yx(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 eJ(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=Cg(n[0],n[1]),a=Cg(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=nv([],n[1],n[0],o/i),l=nv([],n[1],n[2],o/a),u=nv([],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 c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function PL(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<_d.length;l++){var u=_d[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:qe(i.states[u]&&i.states[u].ignore,s);if(h||!qe(d,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0);continue}n||(n=new vh,e.setTextGuideLine(n),!f&&(s||!o)&&yx(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),yx(n,!1,u,c)}}if(n){dt(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=eJ}}function EL(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Xn.length;n++){var i=Xn[n];r[i]=e.getModel([i,t])}return r}function LL(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new bd(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function DL(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(C,M){return C.rect[t]-M.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[r]}c>0&&a&&S(-c/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&&x(-m),y<0&&x(y);function _(){m=p.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function b(C,M,E){if(C<0){var A=Math.min(M,-C);if(A>0){S(A*E,0,o);var T=A+C;T<0&&w(-T*E,1)}else w(-C*E,1)}}function S(C,M,E){C!==0&&(u=!0);for(var A=M;A<E;A++){var T=e[A],D=T.rect;D[t]+=C,T.label[t]+=C}}function w(C,M){for(var E=[],A=0,T=1;T<o;T++){var D=e[T-1].rect,N=Math.max(e[T].rect[t]-D[t]-D[r],0);E.push(N),A+=N}if(A){var H=Math.min(Math.abs(C)/A,M);if(C>0)for(var T=0;T<o-1;T++){var $=E[T]*H;S($,0,T+1)}else for(var T=o-1;T>0;T--){var $=E[T-1]*H;S(-$,T,o)}}}function x(C){var M=C<0?-1:1;C=Math.abs(C);for(var E=Math.ceil(C/(o-1)),A=0;A<o-1;A++)if(M>0?S(E,0,A+1):S(-E,o-A-1,o),C-=E,C<=0)return}return u}function tJ(e,t,r,n){return DL(e,"x","width",t,r,n)}function IL(e,t,r,n){return DL(e,"y","height",t,r,n)}function OL(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new et(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<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=a.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new bd(v.localRect,v.transform)),f||(f=new bd(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function rJ(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function nJ(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:rJ(n&&n.shape.points)}}var _x=["align","verticalAlign","width","height","fontSize"],Dr=new uh,cp=Pt(),iJ=Pt();function lf(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var uf=["x","y","rotation"],aJ=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();et.applyTransform(c,c,u),u?Dr.setLocalTransform(u):(Dr.x=Dr.y=Dr.rotation=Dr.originX=Dr.originY=0,Dr.scaleX=Dr.scaleY=1);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();et.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:Dr.x,y:Dr.y,scaleX:Dr.scaleX,scaleY:Dr.scaleY,rotation:Dr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Ve(i)||Tt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ft(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(_,b){return function(){mx(_,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Ve(o.layoutOption)?c=o.layoutOption(nJ(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=gt(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=gt(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var v=cp(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<_x.length;p++){var g=_x[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",i(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=LL(this._labelList),a=Vt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Vt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});tJ(a,0,r),IL(o,0,n);var s=Vt(i,function(l){return l.layoutOption.hideOverlap});OL(s)},e.prototype.processLabelsOverall=function(){var t=this;O(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=cp(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=ft(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style"),c=o.getVisual("drawType");l.stroke=u[c];var f=s.getModel("labelLine");PL(t,EL(s),l),mx(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!fs(t))){var a=cp(n),o=a.oldLayout,s=ft(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(ot(d,"select")>=0&&n.attr(a.oldLayoutSelect),ot(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Er(n,u,r,l)}else if(n.attr(u),!oc(n).valueAnimation){var f=qe(n.style.opacity,1);n.style.opacity=0,Hr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};lf(h,u,uf),lf(h,n.states.select,uf)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};lf(v,u,uf),lf(v,n.states.emphasis,uf)}lq(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=iJ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Er(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,Hr(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}();const oJ=aJ;var fp=Pt();function sJ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=fp(r).labelManager;i||(i=fp(r).labelManager=new oJ),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=fp(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function lJ(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Is(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Is(e,t,r[o]));return a.join(" ")}}function uJ(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!ge(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}function cJ(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var f=new Ht({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var p=Ve(i)?function(g){i(g,f)}:null;Hr(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return f}function fJ(e,t,r){var n=e.getArea(),i=kt(n.r0,1),a=kt(n.r,1),o=new Ao({shape:{cx:kt(e.cx,1),cy:kt(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,Hr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function dJ(e,t,r,n,i){if(e){if(e.type==="polar")return fJ(e,t,r);if(e.type==="cartesian2d")return cJ(e,t,r,n,i)}else return null;return null}function RL(e,t){return e.type===t}var hJ={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},vJ=function(e){return Math.round(e.length/2)};function pJ(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||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=hJ[a]:Ve(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,vJ))}}}}}var kL=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 aL(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)O(a.getAxes(),function(f,d){if(f.type==="category"){var h=f.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]=f.toGlobalCoord(h[v].coord))}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;o[c]+=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}(wo);wo.registerClass(kL);const bx=kL;var gJ=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 aL(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=I2(bx.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}(bx);const mJ=gJ;var yJ=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}(),_J=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 yJ},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,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);v?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+c,c,!d)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,c,f,!d),r.arc(m*u+i,y*u+a,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(i,a,o,f,c,d)},t}(ht);const Sx=_J;function bJ(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return gd(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(d-h)/2:0,_=Math.cos,b=Math.sin,S=c+d*_(p),w=f+d*b(p),x="left",C="top";switch(s){case"startArc":S=c+(h-l)*_(m),w=f+(h-l)*b(m),x="center",C="top";break;case"insideStartArc":S=c+(h+l)*_(m),w=f+(h+l)*b(m),x="center",C="bottom";break;case"startAngle":S=c+v*_(p)+cf(p,l+y,!1),w=f+v*b(p)+ff(p,l+y,!1),x="right",C="middle";break;case"insideStartAngle":S=c+v*_(p)+cf(p,-l+y,!1),w=f+v*b(p)+ff(p,-l+y,!1),x="left",C="middle";break;case"middle":S=c+v*_(m),w=f+v*b(m),x="center",C="middle";break;case"endArc":S=c+(d+l)*_(m),w=f+(d+l)*b(m),x="center",C="bottom";break;case"insideEndArc":S=c+(d-l)*_(m),w=f+(d-l)*b(m),x="center",C="top";break;case"endAngle":S=c+v*_(g)+cf(g,l+y,!0),w=f+v*b(g)+ff(g,l+y,!0),x="left",C="middle";break;case"insideEndAngle":S=c+v*_(g)+cf(g,-l+y,!0),w=f+v*b(g)+ff(g,-l+y,!0),x="right",C="middle";break;default:return gd(n,i,a)}return n=n||{},n.x=S,n.y=w,n.align=x,n.verticalAlign=C,n}}function wJ(e,t,r,n){if(bt(n)){e.setTextConfig({rotation:n});return}else if(ge(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function cf(e,t,r){return t*Math.sin(e)*(r?-1:1)}function ff(e,t,r){return t*Math.cos(e)*(r?1:-1)}var dp=Math.max,hp=Math.min;function SJ(e,t){var r=e.getArea&&e.getArea();if(RL(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var xJ=function(e){pe(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){g0(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=CJ(r,u);h&&this._enableRealtimeSort(h,s,i);var v=r.get("clip",!0)||h,p=SJ(u,s);o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],S=this._backgroundEls,w=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function C(A){var T=df[u.type](s,A),D=DJ(u,f,T);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&D.setShape("r",_),b[A]=D,D}s.diff(l).add(function(A){var T=s.getItemModel(A),D=df[u.type](s,A,T);if(m&&C(A),!(!s.hasValue(A)||!Ax[u.type](D))){var N=!1;v&&(N=xx[u.type](p,D));var H=Cx[u.type](r,s,A,D,f,d,c.model,!1,g);h&&(H.forceLabelAnimation=!0),Px(H,s,A,T,D,r,f,u.type==="polar"),w?H.attr({shape:D}):h?Tx(h,d,H,D,A,f,!1,!1):Hr(H,{shape:D},r,A),s.setItemGraphicEl(A,H),o.add(H),H.ignore=N}}).update(function(A,T){var D=s.getItemModel(A),N=df[u.type](s,A,D);if(m){var H=void 0;S.length===0?H=C(T):(H=S[T],H.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&H.setShape("r",_),b[A]=H);var $=df[u.type](s,A),G=FL(f,$,u);Er(H,{shape:G},d,A)}var F=l.getItemGraphicEl(T);if(!s.hasValue(A)||!Ax[u.type](N)){o.remove(F);return}var R=!1;if(v&&(R=xx[u.type](p,N),R&&o.remove(F)),F?S2(F):F=Cx[u.type](r,s,A,N,f,d,c.model,!!F,g),h&&(F.forceLabelAnimation=!0),x){var j=F.getTextContent();if(j){var re=oc(j);re.prevValue!=null&&(re.prevValue=re.value)}}else Px(F,s,A,D,N,r,f,u.type==="polar");w?F.attr({shape:N}):h?Tx(h,d,F,N,A,f,!0,x):Er(F,{shape:N},r,A,null),s.setItemGraphicEl(A,F),F.ignore=R,o.add(F)}).remove(function(A){var T=l.getItemGraphicEl(A);T&&wd(T,r,A)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new cn);M.removeAll();for(var E=0;E<b.length;++E)M.add(b[E]);o.add(M),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),Lx(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Lx(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&dJ(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Re(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}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){wd(a,r,ft(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}(co),xx={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=dp(t.x,e.x),s=hp(t.x+t.width,i),l=dp(t.y,e.y),u=hp(t.y+t.height,a),c=s<o,f=u<l;return t.x=c&&o>i?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},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=hp(t.r,e.r),a=dp(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}},Cx={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Ht({shape:se({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?Sx:Ao,c=new u({shape:n,z2:1});c.name="item";var f=NL(i);if(c.calculateTextPosition=bJ(f,{isRoundCap:u===Sx}),a){var d=c.shape,h=i?"r":"endAngle",v={};d[h]=i?0:n.startAngle,v[h]=n[h],(s?Er:Hr)(c,{shape:v},a)}return c}};function CJ(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 Tx(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?Er:Hr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Er:Hr)(r,{shape:u},c,i)}function Mx(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var TJ=["x","y","width","height"],MJ=["cx","cy","r","startAngle","endAngle"],Ax={cartesian2d:function(e){return!Mx(e,TJ)},polar:function(e){return!Mx(e,MJ)}},df={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?PJ(r,n):0,a=n.width>0?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 AJ(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function NL(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 Px(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 c=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",f=E2(n);m0(e,f,{labelFetcher:a,labelDataIndex:r,defaultText:lJ(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=e.getTextContent();if(s&&d){var h=n.get(["label","position"]);e.textConfig.inside=h==="middle"?!0:null,wJ(e,h==="outside"?c:h,NL(o),n.get(["label","rotate"]))}sq(d,f,a.getRawValue(r),function(p){return uJ(t,p)});var v=n.getModel(["emphasis"]);JP(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),e2(e,n),AJ(i)&&(e.style.fill="none",e.style.stroke="none",O(e.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function PJ(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 EJ=function(){function e(){}return e}(),Ex=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 EJ},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(ht);function Lx(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new Ex({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new Ex({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),ft(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",Dx),f.on("mousemove",Dx)),r&&r.push(f)}var Dx=O0(function(e){var t=this,r=LJ(t,e.offsetX,e.offsetY);ft(t).dataIndex=r>=0?r:null},30,!1);function LJ(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function FL(e,t,r){if(RL(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 DJ(e,t,r){var n=e.type==="polar"?Ao:Ht;return new n({shape:FL(t,r,e),silent:!0,z2:0})}const IJ=xJ;function OJ(e){e.registerChartView(IJ),e.registerSeriesModel(mJ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Rt(uQ,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cQ("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,pJ("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 hf=Math.PI*2,Ix=Math.PI/180;function BL(e,t){return Ls(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function $L(e,t){var r=BL(e,t),n=e.get("center"),i=e.get("radius");ge(i)||(i=[0,i]);var a=gt(r.width,t.getWidth()),o=gt(r.height,t.getHeight()),s=Math.min(a,o),l=gt(i[0],s/2),u=gt(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else ge(n)||(n=[n,n]),c=gt(n[0],a)+r.x,f=gt(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function RJ(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=BL(n,r),s=$L(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*Ix,h=n.get("minAngle")*Ix,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 S=hf,w=0,x=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(E,A){var T;if(isNaN(E)){i.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?T=p===0&&_?g:E*g:T=hf/v,T<h?(T=h,S-=h):w+=E;var D=x+C*T;i.setItemLayout(A,{angle:T,startAngle:x,endAngle:D,clockwise:m,cx:l,cy:u,r0:f,r:y?$g(E,b,[f,c]):c}),x=D}),S<hf&&v)if(S<=.001){var M=hf/v;i.each(a,function(E,A){if(!isNaN(E)){var T=i.getItemLayout(A);T.angle=M,T.startAngle=d+C*A*M,T.endAngle=d+C*(A+1)*M}})}else g=S/w,x=d,i.each(a,function(E,A){if(!isNaN(E)){var T=i.getItemLayout(A),D=T.angle===h?h:E*g;T.startAngle=x,T.endAngle=x+C*D,x+=C*D}})})}function kJ(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var NJ=Math.PI/180;function Ox(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],b=Math.abs(_.label.y-r),S=n+_.len,w=S*S,x=Math.sqrt((1-Math.abs(b*b/m))*w),C=t+(x+_.len2)*i,M=C-_.label.x,E=_.targetTextWidth-M*i;HL(_,E,!0),_.label.x=C}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],b=_.label.y>r?m:g,S=Math.abs(_.label.y-r);if(S>=b.maxY){var w=_.label.x-t-_.len2*i,x=n+_.len,C=Math.abs(w)<x?Math.sqrt(S*S/(1-w*w/x/x)):x;b.rB=C,b.maxY=S}b.list.push(_)}c(g),c(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}IL(e,l,l+o)&&f(e)}function FJ(e,t,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;vp(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!vp(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,p=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=p[2][0]-v.labelDistance-o-v.edgeDistance:g=o+i-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-o-v.bleedMargin:g=o+i-f-v.bleedMargin:h.x<t?g=h.x-o-v.bleedMargin:g=o+i-h.x-v.bleedMargin,v.targetTextWidth=g,HL(v,g)}}Ox(u,t,r,n,1,i,a,o,s,f),Ox(l,t,r,n,-1,i,a,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!vp(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:_,S=v.rect.width+b,w=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+S+v.labelDistance:p[2][0]=o+i-v.edgeDistance-S-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function HL(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||r){var f=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,v=t<c?h:r?h>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-f)/2}}}function vp(e){return e.position==="center"}function BJ(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*NJ,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(w){w.ignore=!0}function v(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}t.each(function(w){var x=t.getItemGraphicEl(w),C=x.shape,M=x.getTextContent(),E=x.getTextGuideLine(),A=t.getItemModel(w),T=A.getModel("label"),D=T.get("position")||A.get(["emphasis","label","position"]),N=T.get("distanceToLabelLine"),H=T.get("alignTo"),$=gt(T.get("edgeDistance"),u),G=T.get("bleedMargin"),F=A.getModel("labelLine"),R=F.get("length");R=gt(R,u);var j=F.get("length2");if(j=gt(j,u),Math.abs(C.endAngle-C.startAngle)<o){O(M.states,h),M.ignore=!0,E&&(O(E.states,h),E.ignore=!0);return}if(v(M)){var re=(C.startAngle+C.endAngle)/2,oe=Math.cos(re),ye=Math.sin(re),Ae,V,Q,W;n=C.cx,i=C.cy;var q=D==="inside"||D==="inner";if(D==="center")Ae=C.cx,V=C.cy,W="center";else{var le=(q?(C.r+C.r0)/2*oe:C.r*oe)+n,de=(q?(C.r+C.r0)/2*ye:C.r*ye)+i;if(Ae=le+oe*3,V=de+ye*3,!q){var J=le+oe*(R+l-C.r),L=de+ye*(R+l-C.r),I=J+(oe<0?-1:1)*j,z=L;H==="edge"?Ae=oe<0?c+$:c+u-$:Ae=I+(oe<0?-N:N),V=z,Q=[[le,de],[J,L],[I,z]]}W=q?"center":H==="edge"?oe>0?"right":"left":oe>0?"left":"right"}var U=Math.PI,K=0,ne=T.get("rotate");if(bt(ne))K=ne*(U/180);else if(D==="center")K=0;else if(ne==="radial"||ne===!0){var fe=oe<0?-re+U:-re;K=fe}else if(ne==="tangential"&&D!=="outside"&&D!=="outer"){var te=Math.atan2(oe,ye);te<0&&(te=U*2+te);var ie=ye>0;ie&&(te=U+te),K=te-U}if(a=!!K,M.x=Ae,M.y=V,M.rotation=K,M.setStyle({verticalAlign:"middle"}),q){M.setStyle({align:W});var he=M.states.select;he&&(he.x+=M.x,he.y+=M.y)}else{var X=M.getBoundingRect().clone();X.applyTransform(M.getComputedTransform());var we=(M.style.margin||0)+2.1;X.y-=we/2,X.height+=we,r.push({label:M,labelLine:E,position:D,len:R,len2:j,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new ke(oe,ye),linePoints:Q,textAlign:W,labelDistance:N,labelAlignTo:H,edgeDistance:$,bleedMargin:G,rect:X,unconstrainedWidth:X.width,labelStyleWidth:M.style.width})}x.setTextConfig({inside:q})}}),!a&&e.get("avoidLabelOverlap")&&FJ(r,n,i,l,u,d,c,f);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(O(m.states,h),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var S=g.linePoints;_||!S?(O(y.states,h),y.ignore=!0):(AL(S,g.minTurnAngle),JQ(S,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new ke(S[0][0],S[0][1])})}}}function vf(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;ge(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Re(n,function(a){return sa(a,i)})}}var $J=function(e){pe(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new dr;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=se(vf(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(Hr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,Hr(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Hr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Er(o,{shape:{endAngle:c.endAngle}},s,n))}else S2(o),Er(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),e2(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=se({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},vf(u.getModel("itemStyle"),c)),se(o.ensureState("select"),{x:p,y:g,shape:vf(l.getModel(["select","itemStyle"]),c)}),se(o.ensureState("blur"),{shape:vf(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&se(y.ensureState("select"),{x:p,y:g}),se(_.ensureState("select"),{x:p,y:g}),JP(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;m0(a,E2(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new vh,this.setTextGuideLine(h)),PL(this,EL(o),{stroke:u,opacity:zl(s.get(["lineStyle","opacity"]),c,1)})}},t}(Ao),HJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=new Ao({shape:$L(r,i)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new $J(o,h,u);o.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var p=s.getItemGraphicEl(v);p.updateData(o,h,u),p.off("click"),l.add(p),o.setItemGraphicEl(h,p)}).remove(function(h){var v=s.getItemGraphicEl(h);wd(v,r,h)}).execute(),BJ(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(co);const zJ=HJ;function WJ(e,t,r){t=ge(t)&&{coordDimensions:t}||se({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=nL(n,t).dimensions,a=new rL(i,e);return a.initData(n,r),a}var VJ=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 GJ=VJ;var UJ=Pt(),jJ=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 GJ(_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 WJ(this,{coordDimensions:["value"],encodeDefaulter:Rt(Nq,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=UJ(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=yj(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){Hg(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}(wo);const YJ=jJ;function qJ(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 KJ(e){e.registerChartView(zJ),e.registerSeriesModel(YJ),xX("pie",e.registerAction),e.registerLayout(Rt(RJ,"pie")),e.registerProcessor(kJ("pie")),e.registerProcessor(qJ("pie"))}var XJ=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}(St);const ZJ=XJ;var ym=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Cn).models[0]},t.type="cartesian2dAxis",t}(St);Jn(ym,kQ);var zL={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)"]}}},QJ=st({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},zL),j0=st({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}}},zL),JJ=st({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},j0),eee=dt({logBase:10},j0);const tee={category:QJ,value:j0,time:JJ,log:eee};var ree={value:1,category:1,time:1,log:1};function Rx(e,t,r,n){O(ree,function(i,a){var o=st(st({},tee[a],!0),n,!0),s=function(l){pe(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Du(this),h=d?xh(c):{},v=f.getTheme();st(c,v.get(a+"Axis")),st(c,this.getDefaultOption()),c.type=kx(c),d&&Ds(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=gm.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.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",kx)}function kx(e){return e.type||(e.data?"category":"value")}var nee=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 Re(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Vt(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 iee=nee;var _m=["x","y"];function Nx(e){return e.type==="interval"||e.type==="time"}var aee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=_m,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Nx(r)||!Nx(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 c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=lh([],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 et(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 on(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 on(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 et(i,a,o,s)},t}(iee),oee=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}(YQ);const see=oee;function bm(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,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[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]]:f[0],u==="x"?v[d[l]]:f[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),Su(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 Fx(e){return e.get("coordinateSystem")==="cartesian2d"}function Bx(e){var t={xAxisModel:null,yAxisModel:null};return O(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Cn).models[0];t[n]=a}),t}var pp=Math.log;function lee(e,t,r){var n=sc.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=yL(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=pp(e.base);u=[pp(u[0])/d,pp(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.getInterval.call(e),p=u[0],g=u[1];if(c&&f)v=(g-p)/o;else if(c)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=lp(v),g=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=lp(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=lp(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=kt(g-y),p<0&&u[0]>=0?(p=0,g=kt(y)):g>0&&u[1]<=0&&(g=0,p=-kt(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 uee=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_m,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=Tt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,p=h.scale;mm(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(hx(p,v),mm(p)&&(s=h))}c.length&&(s||(s=c.pop(),hx(s.scale,s.model)),O(c,function(g){lee(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};O(n.x,function(o){$x(n,"y",o,a)}),O(n.y,function(o){$x(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=Ls(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(O(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=IQ(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),O(this._coordsList,function(u){u.calcAffineTransform()});function l(){O(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),cee(u,c?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]}Ie(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Cn).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Cn).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ot(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,O(s.x,function(c,f){O(s.y,function(d,h){var v="x"+f+"y"+h,p=new aee(v);p.master=i,p.model=t,i._coordsMap[v]=p,i._coordsList.push(p),p.addAxis(c),p.addAxis(d)})});function u(c){return function(f,d){if(gp(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new see(c,LQ(f),[0,0],f.get("type"),h),p=v.type==="category";v.onBand=p&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=a,v.index=d,a._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){O(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(Fx(i)){var a=Bx(i),o=a.xAxisModel,s=a.yAxisModel;if(!gp(o,r)||!gp(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){O(RQ(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return O(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ot(r,a)<0&&r.push(a),ot(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(Fx(i)){var a=Bx(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=_m,e}();function gp(e,t){return e.getCoordSysModel()===t}function $x(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Hx(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&Hx(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function Hx(e){return e&&e.type!=="category"&&e.type!=="time"&&DQ(e)}function cee(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const fee=uee;var Ki=Math.PI,fo=function(){function e(t,r){this.group=new cn,this.opt=r,this.axisModel=t,dt(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new cn({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!zx[t]},e.prototype.add=function(t){zx[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=SP(r-t),a,o;return md(i)?(o=n>0?"top":"bottom",a="center"):md(i-Ki)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Ki?a=n>0?"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}(),zx={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&&(on(s,s,o),on(l,l,o));var c=se({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new bo({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Au(f.shape,f.style.lineWidth),f.anid="line",r.add(f);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=FX(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];O([{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 _=R0(d[y],-p/2,-g/2,p,g,c.stroke,!0),b=m.r+m.offset,S=u?l:s;_.attr({rotation:m.rotate,x:S[0]+b*Math.cos(e.rotation),y:S[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=vee(r,n,t,e),a=gee(r,n,t,e);if(hee(t,a,i),pee(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=LL(Re(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));OL(o)}},axisName:function(e,t,r,n){var i=Su(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(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,Vx(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Ki/180);var v;Vx(a)?d=fo.innerTextLayout(e.rotation,h??e.rotation,o):(d=dee(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=Su(e.nameTruncateMaxWidth,g.maxWidth,v),_=new dr({x:f[0],y:f[1],rotation:d.rotation,silent:fo.isLabelSilent(t),style:la(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(p0({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=fo.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,ft(_).eventData=b}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function dee(e,t,r,n){var i=SP(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return md(i-Ki/2)?(o=l?"bottom":"top",a="center"):md(i-Ki*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Ki*1.5&&i>Ki/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function hee(e,t,r){if(!_L(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],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Gr(a),Gr(u)):Wx(a,o)&&(n?(Gr(o),Gr(c)):(Gr(a),Gr(u))),i===!1?(Gr(s),Gr(f)):Wx(l,s)&&(i?(Gr(l),Gr(d)):(Gr(s),Gr(f)))}}function Gr(e){e&&(e.ignore=!0)}function Wx(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Yy([]);return qy(i,i,-e.rotation),r.applyTransform(us([],i,e.getLocalTransform())),n.applyTransform(us([],i,t.getLocalTransform())),r.intersect(n)}}function Vx(e){return e==="middle"||e==="center"}function WL(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(on(o,o,t),on(s,s,t));var c=new bo({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Au(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function vee(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),c=WL(u,t.transform,l,dt(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function pee(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=dt(s.getLineStyle(),dt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=WL(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function gee(e,t,r,n){var i=r.axis,a=Su(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Su(n.labelRotate,o.get("rotate"))||0)*Ki/180,c=fo.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=fo.isLabelSilent(r),v=r.get("triggerEvent");return O(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,b=o;if(f&&f[m]){var S=f[m];Ie(S)&&S.textStyle&&(b=new rr(S.textStyle,o,r.ecModel))}var w=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(m),C=new dr({x,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:la(b,{text:y,align:b.getShallow("align",!0)||c.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,fill:Ve(w)?w(i.type==="category"?_:i.type==="value"?m+"":m,g):w})});if(C.anid="label_"+m,v){var M=fo.makeAxisEventDataBase(r);M.targetType="axisLabel",M.value=_,M.tickIndex=g,i.type==="category"&&(M.dataIndex=m),ft(C).eventData=M}t.add(C),C.updateTransform(),d.push(C),e.add(C),C.decomposeTransform()}),d}}const VL=fo;function mee(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return yee(r,e,t),r.seriesInvolved&&bee(r,e),r}function yee(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];O(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Fu(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(O(s.getAxes(),Rt(p,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&O(v.baseAxes,Rt(p,h?"cross":!0,d)),h&&O(v.otherAxes,Rt(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!g&&!wm(_))){m==null&&(m=_.get("triggerTooltip")),_=g?_ee(y,f,i,t,g,m):_;var S=_.get("snap"),w=Fu(y.model),x=m||S||y.type==="category",C=e.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,involveSeries:x,snap:S,useHandle:wm(_),seriesModels:[],linkGroup:null};u[w]=C,e.seriesInvolved=e.seriesInvolved||x;var M=wee(a,y);if(M!=null){var E=o[M]||(o[M]={axesInfo:{}});E.axesInfo[w]=C,E.mapper=a[M].mapper,C.linkGroup=E}}}})}function _ee(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};O(s,function(d){l[d]=Qe(o.get(d))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&dt(u,f.textStyle)}}return e.model.getModel("axisPointer",new rr(l,r,n))}function bee(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||O(e.coordSysAxesInfo[Fu(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function wee(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(mp(a[n+"AxisId"],r.id)||mp(a[n+"AxisIndex"],r.componentIndex)||mp(a[n+"AxisName"],r.name))return i}}function mp(e,t){return e==="all"||ge(e)&&ot(e,t)>=0||e===t}function See(e){var t=Y0(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=wm(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<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Y0(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Fu(e)]}function xee(e){var t=Y0(e);return t&&t.axisPointerModel}function wm(e){return!!e.get(["handle","show"])}function Fu(e){return e.type+"||"+e.id}var Gx={},Cee=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,a){this.axisPointerClass&&See(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=xee(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){Gx[r]=n},t.getAxisPointerClass=function(r){return r&&Gx[r]},t.type="axis",t}(Si);const GL=Cee;var Sm=Pt();function Tee(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=Sm(e).splitAreaColors,d=Ue(),h=0;if(f)for(var v=0;v<u.length;v++){var p=f.get(u[v].tickValue);if(p!=null){h=(p+(c-1)*v)%c;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=ge(s)?s:[s];for(var v=1;v<u.length;v++){var y=i.toGlobalCoord(u[v].coord),_=void 0,b=void 0,S=void 0,w=void 0;i.isHorizontal()?(_=g,b=l.y,S=y-_,w=l.height,g=_+S):(_=l.x,b=g,S=l.width,w=y-b,g=b+w);var x=u[v-1].tickValue;x!=null&&d.set(x,h),t.add(new Ht({anid:x!=null?"area_"+x:null,shape:{x:_,y:b,width:S,height:w},style:dt({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}Sm(e).splitAreaColors=d}}}function Mee(e){Sm(e).splitAreaColors=null}var Aee=["axisLine","axisTickLabel","axisName"],Pee=["splitArea","splitLine","minorSplitLine"],UL=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new cn,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=bm(s,r),u=new VL(r,se({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(mm(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));O(Aee,u.add,u),this._axisGroup.add(u.getGroup()),O(Pee,function(f){r.get([f,"show"])&&Eee[f](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||M2(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){Mee(this)},t.type="cartesianAxis",t}(GL),Eee={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=ge(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:a}),d=[],h=[],v=o.getLineStyle(),p=0;p<f.length;p++){var g=i.toGlobalCoord(f[p].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var m=c++%s.length,y=f[p].tickValue,_=new bo({anid:y!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:dt({stroke:s[m]},v),silent:!0});Au(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var p=i.toGlobalCoord(u[h][v].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new bo({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Au(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){Tee(e,t,r,n)}},jL=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="xAxis",t}(UL),Lee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=jL.type,r}return t.type="yAxis",t}(UL),Dee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ht({shape:r.coordinateSystem.getRect(),style:dt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Si),Ux={offset:0};function Iee(e){e.registerComponentView(Dee),e.registerComponentModel(ZJ),e.registerCoordinateSystem("cartesian2d",fee),Rx(e,"x",ym,Ux),Rx(e,"y",ym,Ux),e.registerComponentView(jL),e.registerComponentView(Lee),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function jx(e,t,r){var n=Mo.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var Oee=function(e){pe(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||pd,typeof r=="string"?o=jx(r,n,i):Ie(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(KA(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=jx("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new et(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new et(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,S=1/0,w=0,x=0;x<o.length;++x){var C=o[x];if(C.intersect(y)){var M=new et(0,0,0,0);M.copy(C),M.union(y),o[x]=M,b=!0;break}else if(l){u.copy(y),u.union(C);var E=y.width*y.height,A=C.width*C.height,T=u.width*u.height,D=T-E-A;D<S&&(S=D,w=x)}}if(l&&(o[w].union(y),b=!0),!b){var _=new et(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(i,a,!0,!0),v=d.__isRendered&&(d.__dirty&Rr||!h)?d.getPrevPaintRect():null;v&&c(v);var p=h&&(d.__dirty&Rr||!d.__isRendered)?d.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d.shouldBePainted(i,a,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var h=this.domBack;function v(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(oh(n)){var b=n.global||n.__width===m&&n.__height===y;_=b&&n.__canvasGradient||cm(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else zU(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=fm(o,n,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,p,g,m,y),o.restore())}!i||u?v(0,0,s,l):i.length&&O(i,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(ei);const yp=Oee;var Yx=1e5,Ha=314159,pf=.01,Ree=.001;function kee(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Nee(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var Fee=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=se({},n||{}),this.dpr=n.devicePixelRatio||pd,this._singleCanvas=a,this.root=t;var o=t.style;o&&(KA(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new yp(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Ha]=h,h.zlevel=Ha,s.push(Ha),this._domRoot=t}else{this._width=Qc(t,0,n),this._height=Qc(t,1,n);var u=this._domRoot=Nee(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Yx)),a||(a=n.ctx,a.save()),ro(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Yx)},e.prototype.paintOne=function(t,r){DE(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Eg(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Ha).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,f=!1,d=function(p){var g=a[p],m=g.ctx,y=o&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,b=!n&&g.incremental&&Date.now,S=b&&Date.now(),w=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,y);else if(_===g.__startIndex){var x=t[_];(!x.incremental||!x.notClear||n)&&g.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,M=function(D){var N={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<g.__endIndex;C++){var H=t[C];if(H.__inHover&&(f=!0),i._doPaintEl(H,g,o,D,N,C===g.__endIndex-1),b){var $=Date.now()-S;if($>15)break}}N.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var E=h.dpr,A=0;A<y.length;++A){var T=y[A];m.save(),m.beginPath(),m.rect(T.x*E,T.y*E,T.width*E,T.height*E),m.clip(),M(T),m.restore()}else m.save(),M(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<a.length;v++)d(v);return Ge.wxa&&O(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(ro(s,t,a,o),t.setPrevPaintRect(l))}else ro(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Ha);var n=this._layers[t];return n||(n=new yp("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?st(n,this._layerConfig[t],!0):this._layerConfig[t-pf]&&st(n,this._layerConfig[t-pf],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&kee(r)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);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;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+Ree,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?pf:0),this._needsManuallyCompositing),c.__builtin__||Gy("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&Rr&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__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,O(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?st(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+pf){var o=this._layers[a];st(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(ot(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Qc(a,0,i),r=Qc(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Ha).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Ha].dom;var r=new yp("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];ro(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const Bee=Fee;function $ee(e){e.registerPainter("canvas",Bee)}var Ka=Pt(),qx=Qe,_p=_t,Hee=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new cn,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Rt(Kx,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Zx(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Y0(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=Ka(t).pointerEl=new nq[a.type](qx(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ka(t).labelEl=new dr(qx(r.label));t.add(a),Xx(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ka(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=Ka(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Xx(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=v0(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ZA(u.event)},onmousedown:_p(this._onHandleDragMove,this,0,0),drift:_p(this._onHandleDragMove,this),ondragend:_p(this._onHandleDragEnd,this)}),n.add(i)),Zx(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,bE(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Kx(this._axisPointerModel,!r&&this._moveAnimation,this._handle,bp(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(bp(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(bp(i)),Ka(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),sm(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 Kx(e,t,r,n){YL(Ka(r).lastProp,n)||(Ka(r).lastProp=n,t?Er(r,n,e):(r.stopAnimation(),r.attr(n)))}function YL(e,t){if(Ie(e)&&Ie(t)){var r=!0;return O(t,function(n,i){r=r&&YL(e[i],n)}),!!r}else return e===t}function Xx(e,t){e[t.get(["label","show"])?"show":"hide"]()}function bp(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Zx(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 zee=Hee;function Wee(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 Vee(e,t,r,n,i){var a=r.get("value"),o=qL(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Sh(s.get("padding")||0),u=s.getFont(),c=Zy(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var p=i.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),Gee(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:la(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Gee(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 qL(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:G0(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};O(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Te(o)?a=o.replace("{value}",a):Ve(o)&&(a=o(s))}return a}function KL(e,t,r){var n=xu();return qy(n,n,r.rotation),Pg(n,n,r.position),h0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Uee(e,t,r,n,i,a){var o=VL.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),Vee(t,n,i,a,{position:KL(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function jee(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Yee(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var qee=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"),c=Qx(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=Wee(a),h=Kee[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=bm(l.model,i);Uee(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=bm(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=KL(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=Qx(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(zee);function Qx(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var Kee={line:function(e,t,r){var n=jee([t,r[0]],[t,r[1]],Jx(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:Yee([t-n/2,r[0]],[n,i],Jx(e))}}};function Jx(e){return e.dim==="x"?0:1}const Xee=qee;var Zee=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}(St);const Qee=Zee;var vi=Pt(),Jee=O;function XL(e,t,r){if(!Ge.node){var n=t.getZr();vi(n).records||(vi(n).records={}),ete(n,t);var i=vi(n).records[e]||(vi(n).records[e]={});i.handler=r}}function ete(e,t){if(vi(e).initialized)return;vi(e).initialized=!0,r("click",Rt(eC,"click")),r("mousemove",Rt(eC,"mousemove")),r("globalout",rte);function r(n,i){e.on(n,function(a){var o=nte(t);Jee(vi(e).records,function(s){s&&i(s,a,o.dispatchAction)}),tte(o.pendings,t)})}}function tte(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 rte(e,t,r){e.handler("leave",null,r)}function eC(e,t,r,n){t.handler(e,r,n)}function nte(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 xm(e,t){if(!Ge.node){var r=t.getZr(),n=(vi(r).records||{})[e];n&&(vi(r).records[e]=null)}}var ite=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";XL("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){xm("axisPointer",n)},t.prototype.dispose=function(r,n){xm("axisPointer",n)},t.type="axisPointer",t}(Si);const ate=ite;function ZL(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=nc(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(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="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(Re(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 tC=Pt();function ote(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){Uf(i)&&(i=ZL({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Uf(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Uf(i),d={},h={},v={list:[],map:{}},p={showPointer:Rt(lte,h),showTooltip:Rt(ute,v)};O(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);O(s.coordSysAxesInfo[y],function(b,S){var w=b.axis,x=hte(u,b);if(!f&&_&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&rC(b,C,p,!1,d)}})});var g={};return O(c,function(m,y){var _=m.linkGroup;_&&!h[y]&&O(_.axesInfo,function(b,S){var w=h[S];if(b!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,nC(b),nC(m)))),g[m.key]=x}})}),O(g,function(m,y){rC(c[y],m,p,!0,d)}),cte(h,c,d),fte(v,i,e,o),dte(c,o,r),d}}function rC(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=ste(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&se(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function ste(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return O(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=f,a.length=0),O(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function lte(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function ute(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=Fu(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.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 cte(e,t,r){var n=r.axesInfo=[];O(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 fte(e,t,r,n){if(Uf(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 dte(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=tC(n)[i]||{},o=tC(n)[i]={};O(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&O(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];O(a,function(u,c){!o[c]&&l.push(u)}),O(o,function(u,c){!a[c]&&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 hte(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 nC(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 Uf(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function QL(e){GL.registerAxisPointerClass("CartesianAxisPointer",Xee),e.registerComponentModel(Qee),e.registerComponentView(ate),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=mee(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ote)}function vte(e){ua(Iee),ua(QL)}function pte(e,t){var r=Sh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ht({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 gte=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}(St);const mte=gte;function JL(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function eD(e){if(Ge.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var tD=eD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),yte=eD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function rD(e,t){if(!e)return t;t=G2(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function _te(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var bte=rD(yte,"transition"),q0=rD(tD,"transform"),wte="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ge.transform3dSupported?"will-change:transform;":"");function Ste(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function xte(e,t,r){if(!Te(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Lu(t);var a=Ste(r),o=Math.max(Math.round(i)*1.5,6),s="",l=q0+":",u;ot(["left","right"],a)>-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 c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/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'<div style="'+p.join("")+'"></div>'}function Cte(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+=Ge.transformSupported?","+q0+n:",left"+n+",top"+n),bte+":"+i}function iC(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ge.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Ge.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+q0+":"+o+";":[["top",0],["left",0],[tD,o]]}function Tte(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),O(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Mte(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"),c=e.getModel("textStyle"),f=mE(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(Cte(i,r)),a&&n.push("background-color:"+a),O(["width","color","radius"],function(h){var v="border-"+h,p=G2(v),g=e.get(p);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(Tte(c)),f!=null&&n.push("padding:"+Sh(f).join("px ")+"px"),n.join(";")+";"}function aC(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&n9(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 Ate=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,Ge.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;aC(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,c=a.painter.getViewportRoot();jr(c,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=_te(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=wte+Mte(t,!this._firstShow,this._longHide)+iC(a[0],a[1],!0)+("border-color:"+Lu(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"&&!JL(n)&&(s=xte(n,i,a)),Te(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ge(t)||(t=[t]);for(var l=0;l<t.length;l++)ud(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(aC(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=iC(n[0],n[1]);O(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Ge.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const Pte=Ate;var Ete=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),sC(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;Ie(t)&&br(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new dr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:mE(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),O(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),O(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=oC(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;sC(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Wi(a.borderWidth||0),s=oC(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Wi(e){return Math.max(0,e)}function oC(e){var t=Wi(e.shadowBlur||0),r=Wi(e.shadowOffsetX||0),n=Wi(e.shadowOffsetY||0);return{left:Wi(t-r),right:Wi(t+r),top:Wi(t-n),bottom:Wi(t+n)}}function sC(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const Lte=Ete;var Dte=new Ht({shape:{x:-1,y:-1,width:2,height:2}}),Ite=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.init=function(r,n){if(!(Ge.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=Nj(i.get("renderMode"));this._tooltipContent=a==="richText"?new Lte(n):new Pte(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(r,n,i){if(!(Ge.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i,this._alwaysShowContent=r.get("alwaysShowContent");var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?bE(this,"_updatePosition",50,"fixRate"):sm(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");XL("itemTooltip",this._api,_t(function(i,a,o){n!=="none"&&(n.indexOf(i)>=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||Ge.node||!i.getDom())){var o=lC(a,i);this._ticket="";var s=a.dataByCoordSys,l=Nte(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 c=Dte;c.x=a.x,c.y=a.y,c.update(),ft(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},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 f=ZL(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.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(lC(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 c=u.getData(),f=ml([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.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;Al(i,function(u){if(ft(u).dataIndex!=null)return s=u,!0;if(ft(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=ml([n.tooltipOption],a),l=this._renderMode,u=[],c=Ou("section",{blocks:[],noHeader:!0}),f=[],d=new Xv;O(r,function(y){O(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!b||S==null)){var w=qL(S,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Ou("section",{header:w,noHeader:!Vn(w),sortBlocks:!0,blocks:[]});c.blocks.push(x),O(_.seriesDataIndices,function(C){var M=i.getSeriesByIndex(C.seriesIndex),E=C.dataIndexInside,A=M.getDataParams(E);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=G0(b.axis,{value:S}),A.axisValueLabel=w,A.marker=d.makeTooltipMarker("item",Lu(A.color),l);var T=SS(M.formatTooltip(E,!0,null)),D=T.frag;if(D){var N=ml([M],a).get("valueFormatter");x.blocks.push(N?se({valueFormatter:N},D):D)}T.text&&f.push(T.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),p=AS(c,d,l,v,i.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
 
-`:"<br/>",m=f.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=ft(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,p=ml([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new Xv;m.marker=y.makeTooltipMarker("item",Lu(m.color),h);var _=Sx(u.formatTooltip(c,!1,f)),b=p.get("order"),x=p.get("valueFormatter"),w=_.frag,S=w?Ex(x?se({valueFormatter:x},w):w,y,h,b,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,S,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ft(n),o=a.tooltipConfig,s=o.option||{};if(Te(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=ml(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new Xv;this._showOrMove(d,function(){var g=Qe(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,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.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=mh(m.axisValue,h,g)),h=UE(h,i,!0)}else if(Ve(d)){var _=_t(function(b,x){b===this._ticket&&(f.setContent(x,c,r,p,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,_)}else h=d;f.setContent(h,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,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(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Ve(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),ge(n))i=gt(n[0],u),a=gt(n[1],c);else if(Ie(n)){var p=n;p.width=f[0],p.height=f[1];var g=Ls(p,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(Te(n)&&l){var m=kte(n,v,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=Ote(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=uC(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=uC(h)?f[1]/2:h==="bottom"?f[1]:0),JL(r)){var m=Rte(i,a,o,u,c);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&&O(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&O(u,function(d,h){var v=f[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&&O(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&O(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){Ge.node||!n.getDom()||(sm(this,"_updatePosition"),this._tooltipContent.dispose(),Sm("itemTooltip",n))},t.type="tooltip",t}(xi);function ml(e,t,r){var n=t.ecModel,i;r?(i=new rr(r,n,n),i=new rr(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof rr&&(o=o.get("tooltip",!0)),Te(o)&&(o={formatter:o}),o&&(i=new rr(o,i,n)))}return i}function lC(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function Ote(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 Rte(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 kte(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,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/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+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function uC(e){return e==="center"||e==="middle"}function Nte(e,t,r){var n=r0(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ic(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 c=ft(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const Fte=Ite;function Bte(e){ua(QL),e.registerComponentModel(mte),e.registerComponentView(Fte),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Tr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Tr)}var $te=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}(xt),Hte=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=qe(r.get("textBaseline"),r.get("textVerticalAlign")),c=new dr({style:la(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new dr({style:la(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){ix(v,"_"+r.get("target"))}),p&&h.on("click",function(){ix(p,"_"+r.get("subtarget"))}),ft(c).eventData=ft(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ls(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};c.setStyle(b),h.setStyle(b),m=a.getBoundingRect();var x=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var S=new Ht({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}(xi);function zte(e){e.registerComponentModel($te),e.registerComponentView(Hte)}var Wte=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"])}},Vte=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)&&O(n,function(a,o){Te(a)&&(a={type:a}),n[o]=st(a,Wte(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<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&t0(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Ue(),s=Re(a,function(l){return(Te(l)||bt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new rr(l,this,this.ecModel))},this);this._data=Vt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;O(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;O(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;O(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ot(this._availableNames,r)>=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}(xt);const Cm=Vte;var jo=Rt,Tm=O,gf=cn,Gte=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 gf),this.group.add(this._selectorGroup=new gf),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 c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=Ls(c,f,d),v=this.layoutInner(r,o,h,a,l,u),p=Ls(dt({width:v.width,height:v.height},c),f,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=pte(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(),c=Ue(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),Tm(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
-`)){var g=new gf;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!c.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,f,a);w.on("click",jo(cC,p,null,a,d)).on("mouseover",jo(Mm,m.name,null,a,d)).on("mouseout",jo(Am,m.name,null,a,d)),c.set(p,!0)}else i.eachRawSeries(function(S){if(!c.get(p)&&S.legendVisualProvider){var C=S.legendVisualProvider;if(!C.containName(p))return;var M=C.indexOfName(p),P=C.getItemVisual(M,"style"),A=C.getItemVisual(M,"legendIcon"),T=so(P.fill);T&&T[3]===0&&(T[3]=.2,P=se(se({},P),{fill:Ky(T,"rgba")}));var D=this._createItem(S,p,v,h,n,r,{},P,A,f,a);D.on("click",jo(cC,null,p,a,d)).on("mouseover",jo(Mm,null,p,a,d)).on("mouseout",jo(Am,null,p,a,d)),c.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();Tm(r,function(u){var c=u.type,f=new dr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);m0(f,{normal:d,emphasis:h},{defaultText:u.title}),Kg(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,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");c=_||c||"roundRect";var b=Ute(c,a,l,u,h,g,d),x=new gf,w=a.getModel("textStyle");if(Ve(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,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(jte({itemWidth:v,itemHeight:p,icon:c,iconRotate:S,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,M=s,P=o.get("formatter"),A=n;Te(P)&&P?A=P.replace("{name}",n??""):Ve(P)&&(A=P(n));var T=a.get("inactiveColor");x.add(new dr({style:la(w,{text:A,x:C,y:p/2,fill:g?w.getTextColor():T,align:M,verticalAlign:"middle"})}));var D=new Ht({shape:x.getBoundingRect(),invisible:!0}),N=a.getModel("tooltip");return N.get("show")&&p0({el:D,componentModel:o,itemName:n,itemTooltipOption:N.option}),x.add(D),x.eachChild(function(H){H.silent=!0}),D.silent=!f,this.getContentGroup().add(x),Kg(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Xl(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Xl("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]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(xi);function Ute(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Tm(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:dm(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),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[c];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 jte(e){var t=e.icon||"roundRect",r=R0(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 cC(e,t,r,n){Am(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Mm(e,t,r,n)}function nD(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function Mm(e,t,r,n){nD(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Am(e,t,r,n){nD(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const iD=Gte;function Yte(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function yl(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();O(s,function(l){var u=l.get("name");if(!(u===`
-`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function qte(e){e.registerAction("legendToggleSelect","legendselectchanged",Rt(yl,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Rt(yl,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Rt(yl,"inverseSelect")),e.registerAction("legendSelect","legendselected",Rt(yl,"select")),e.registerAction("legendUnSelect","legendunselected",Rt(yl,"unSelect"))}function aD(e){e.registerComponentModel(Cm),e.registerComponentView(iD),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Yte),e.registerSubTypeDefaulter("legend",function(){return"plain"}),qte(e)}var Kte=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.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=Sh(r);e.prototype.init.call(this,r,n,i),fC(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),fC(this,this.option,r)},t.type="legend.scroll",t.defaultOption=IE(Cm.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Cm);function fC(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ds(t,r,{type:"box",ignoreSize:!!i})}const Xte=Kte;var dC=cn,wp=["width","height"],xp=["x","y"],Zte=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new dC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new dC)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=ge(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new dr({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",y=v0(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:_t(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,c.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=wp[u],f=xp[u],d=wp[1-u],h=xp[1-u];o&&Xl("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Qe(i);o&&(m[c]=i[c]-p[c]-v);var y=this._layoutContentAndController(r,a,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=y[c]+v;else{var _=p[c]+v;g[u]-=_,y[f]-=_}y[c]+=p[c]+v,g[1-u]+=y[h]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Xl(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),Xl("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-v.x,-v.y],_=qe(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,c.setPosition(g),f.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]),f.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=x[s],f.setClipPath(new Ht({shape:w})),f.__rectSize=w[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(r);return S.pageIndex!=null&&Pr(c,{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;O(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);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=wp[o],l=xp[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=b(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=d;++g)_=b(c[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(c[g]),(!_||!x(y,_.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function b(w){if(w){var S=w.getBoundingRect(),C=S[l]+w[l];return{s:C,e:C+S[s],i:w.__legendDataIndex}}}function x(w,S){return w.e>=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}(iD);const Qte=Zte;function Jte(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 ere(e){ua(aD),e.registerComponentModel(Xte),e.registerComponentView(Qte),Jte(e)}function tre(e){ua(aD),ua(ere)}ua([KJ,OJ,$ee,sJ,zte,Bte,tre,vte]);function rre(e,t,r){const n=B0(document.getElementById(e),"macarons");n.showLoading();const i={title:{text:"Network Traffic",subtext:"today",left:"center"},tooltip:{trigger:"item",formatter:function(a){return aa.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 nre(e,t){const r=B0(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 ire(e,t,r){const n={width:"600px",height:"400px"},i=B0(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+"<br/>");for(const c of l){const f='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+c.color+'"></span>';u+=f+c.seriesName+": "+aa.fileSize(c.value)+"<br/>"}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 aa.fileSize(l)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:r}]};i.setOption(s),i.hideLoading()}const hC=ce({__name:"LongSpan",props:{content:null,length:null},setup(e){return(t,r)=>{const n=Ju;return Y(),me(pt,null,[ee(n,{content:e.content,placement:"top"},{default:Z(()=>[nr(ae("span",null,Me(e.content.slice(0,e.length))+"...",513),[[yi,e.content.length>e.length]])]),_:1},8,["content"]),nr(ae("span",null,Me(e.content),513),[[yi,e.content.length<30]])],64)}}}),are={class:"source"},ore=ae("div",{id:"traffic",style:{width:"400px",height:"250px","margin-bottom":"30px"}},null,-1),sre=ae("div",{id:"proxies",style:{width:"400px",height:"250px"}},null,-1),lre=ce({__name:"ServerOverview",setup(e){let t=B({version:"",bind_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.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)),rre("traffic",n.total_traffic_in,n.total_traffic_out),nre("proxies",n)}).catch(()=>{DA({showClose:!0,message:"Get server info from frps failed!",type:"warning"})})})(),(n,i)=>{const a=zM,o=HM,s=pA,l=vA;return Y(),me("div",null,[ee(l,null,{default:Z(()=>[ee(s,{md:12},{default:Z(()=>[ae("div",are,[ee(o,{"label-position":"left","label-width":"220px",class:"server_info"},{default:Z(()=>[ee(a,{label:"Version"},{default:Z(()=>[ae("span",null,Me(E(t).version),1)]),_:1}),ee(a,{label:"BindPort"},{default:Z(()=>[ae("span",null,Me(E(t).bind_port),1)]),_:1}),E(t).kcp_bind_port!=0?(Y(),_e(a,{key:0,label:"KCP Bind Port"},{default:Z(()=>[ae("span",null,Me(E(t).kcp_bind_port),1)]),_:1})):Fe("",!0),E(t).quic_bind_port!=0?(Y(),_e(a,{key:1,label:"QUIC Bind Port"},{default:Z(()=>[ae("span",null,Me(E(t).quic_bind_port),1)]),_:1})):Fe("",!0),E(t).vhost_http_port!=0?(Y(),_e(a,{key:2,label:"Http Port"},{default:Z(()=>[ae("span",null,Me(E(t).vhost_http_port),1)]),_:1})):Fe("",!0),E(t).vhost_https_port!=0?(Y(),_e(a,{key:3,label:"Https Port"},{default:Z(()=>[ae("span",null,Me(E(t).vhost_https_port),1)]),_:1})):Fe("",!0),E(t).tcpmux_httpconnect_port!=0?(Y(),_e(a,{key:4,label:"TCPMux HTTPConnect Port"},{default:Z(()=>[ae("span",null,Me(E(t).tcpmux_httpconnect_port),1)]),_:1})):Fe("",!0),E(t).subdomain_host!=""?(Y(),_e(a,{key:5,label:"Subdomain Host"},{default:Z(()=>[ee(hC,{content:E(t).subdomain_host,length:30},null,8,["content"])]),_:1})):Fe("",!0),ee(a,{label:"Max PoolCount"},{default:Z(()=>[ae("span",null,Me(E(t).max_pool_count),1)]),_:1}),ee(a,{label:"Max Ports Per Client"},{default:Z(()=>[ae("span",null,Me(E(t).max_ports_per_client),1)]),_:1}),E(t).allow_ports_str!=""?(Y(),_e(a,{key:6,label:"Allow Ports"},{default:Z(()=>[ee(hC,{content:E(t).allow_ports_str,length:30},null,8,["content"])]),_:1})):Fe("",!0),E(t).tls_only===!0?(Y(),_e(a,{key:7,label:"TLS Only"},{default:Z(()=>[ae("span",null,Me(E(t).tls_only),1)]),_:1})):Fe("",!0),ee(a,{label:"HeartBeat Timeout"},{default:Z(()=>[ae("span",null,Me(E(t).heart_beat_timeout),1)]),_:1}),ee(a,{label:"Client Counts"},{default:Z(()=>[ae("span",null,Me(E(t).client_counts),1)]),_:1}),ee(a,{label:"Current Connections"},{default:Z(()=>[ae("span",null,Me(E(t).cur_conns),1)]),_:1}),ee(a,{label:"Proxy Counts"},{default:Z(()=>[ae("span",null,Me(E(t).proxy_counts),1)]),_:1})]),_:1})])]),_:1}),ee(s,{md:12},{default:Z(()=>[ore,sre]),_:1})]),_:1})])}}});class Us{constructor(t){Wt(this,"name");Wt(this,"type");Wt(this,"encryption");Wt(this,"compression");Wt(this,"conns");Wt(this,"traffic_in");Wt(this,"traffic_out");Wt(this,"last_start_time");Wt(this,"last_close_time");Wt(this,"status");Wt(this,"client_version");Wt(this,"addr");Wt(this,"port");Wt(this,"custom_domains");Wt(this,"host_header_rewrite");Wt(this,"locations");Wt(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 ure extends Us{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 cre extends Us{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 fre extends Us{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 dre extends Us{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 hre extends Us{constructor(t){super(t),this.type="stcp"}}class vre extends Us{constructor(t){super(t),this.type="sudp"}}const pre=["id"],gre=ce({__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=>{ire(t.proxy_name,i.traffic_in,i.traffic_out)}).catch(i=>{DA({showClose:!0,message:"Get traffic info failed!"+i,type:"warning"})})})(),(n,i)=>(Y(),me("div",{id:e.proxy_name,style:{width:"600px",height:"400px"}},null,8,pre))}}),mre=ce({__name:"ProxyViewExpand",props:{row:null,proxyType:null},setup(e){return(t,r)=>{const n=zM,i=HM;return e.proxyType==="http"||e.proxyType==="https"?(Y(),_e(i,{key:0,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[ae("span",null,Me(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[ae("span",null,Me(e.row.type),1)]),_:1}),ee(n,{label:"Domains"},{default:Z(()=>[ae("span",null,Me(e.row.custom_domains),1)]),_:1}),ee(n,{label:"SubDomain"},{default:Z(()=>[ae("span",null,Me(e.row.subdomain),1)]),_:1}),ee(n,{label:"locations"},{default:Z(()=>[ae("span",null,Me(e.row.locations),1)]),_:1}),ee(n,{label:"HostRewrite"},{default:Z(()=>[ae("span",null,Me(e.row.host_header_rewrite),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[ae("span",null,Me(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[ae("span",null,Me(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[ae("span",null,Me(e.row.last_start_time),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[ae("span",null,Me(e.row.last_close_time),1)]),_:1})]),_:1})):(Y(),_e(i,{key:1,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[ae("span",null,Me(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[ae("span",null,Me(e.row.type),1)]),_:1}),ee(n,{label:"Addr"},{default:Z(()=>[ae("span",null,Me(e.row.addr),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[ae("span",null,Me(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[ae("span",null,Me(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[ae("span",null,Me(e.row.last_start_time),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[ae("span",null,Me(e.row.last_close_time),1)]),_:1})]),_:1}))}}}),js=ce({__name:"ProxyView",props:{proxies:null,proxyType:null},setup(e){const t=(n,i)=>aa.fileSize(n.traffic_in),r=(n,i)=>aa.fileSize(n.traffic_out);return(n,i)=>{const a=gre,o=J6,s=IW,l=ZV,u=O8,c=XV;return Y(),me("div",null,[ee(c,{data:e.proxies,"default-sort":{prop:"name",order:"ascending"},style:{width:"100%"}},{default:Z(()=>[ee(l,{type:"expand"},{default:Z(f=>[ee(s,{placement:"right",width:"600",style:{"margin-left":"0px"},trigger:"click"},{default:Z(()=>[ee(a,{proxy_name:f.row.name},null,8,["proxy_name"])]),reference:Z(()=>[ee(o,{type:"primary",size:"large",name:f.row.name,style:{"margin-bottom":"10px"}},{default:Z(()=>[Bt("Traffic Statistics ")]),_:2},1032,["name"])]),_:2},1024),ee(mre,{row:f.row,proxyType:e.proxyType},null,8,["row","proxyType"])]),_:1}),ee(l,{label:"Name",prop:"name",sortable:""}),ee(l,{label:"Port",prop:"port",sortable:""}),ee(l,{label:"Connections",prop:"conns",sortable:""}),ee(l,{label:"Traffic In",prop:"traffic_in",formatter:t,sortable:""}),ee(l,{label:"Traffic Out",prop:"traffic_out",formatter:r,sortable:""}),ee(l,{label:"ClientVersion",prop:"client_version",sortable:""}),ee(l,{label:"Status",prop:"status",sortable:""},{default:Z(f=>[f.row.status==="online"?(Y(),_e(u,{key:0,type:"success"},{default:Z(()=>[Bt(Me(f.row.status),1)]),_:2},1024)):(Y(),_e(u,{key:1,type:"danger"},{default:Z(()=>[Bt(Me(f.row.status),1)]),_:2},1024))]),_:1})]),_:1},8,["data"])])}}}),yre=ce({__name:"ProxiesTCP",setup(e){let t=B([]);return(()=>{fetch("../api/proxy/tcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new ure(i))})})(),(n,i)=>(Y(),_e(js,{proxies:E(t),proxyType:"tcp"},null,8,["proxies"]))}}),_re=ce({__name:"ProxiesUDP",setup(e){let t=B([]);return(()=>{fetch("../api/proxy/udp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new cre(i))})})(),(n,i)=>(Y(),_e(js,{proxies:E(t),proxyType:"udp"},null,8,["proxies"]))}}),bre=ce({__name:"ProxiesHTTP",setup(e){let t=B([]);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 fre(s,n,i))})})})(),(n,i)=>(Y(),_e(js,{proxies:E(t),proxyType:"http"},null,8,["proxies"]))}}),wre=ce({__name:"ProxiesHTTPS",setup(e){let t=B([]);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 dre(s,n,i))})})})(),(n,i)=>(Y(),_e(js,{proxies:E(t),proxyType:"https"},null,8,["proxies"]))}}),xre=ce({__name:"ProxiesSTCP",setup(e){let t=B([]);return(()=>{fetch("../api/proxy/stcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new hre(i))})})(),(n,i)=>(Y(),_e(js,{proxies:E(t),proxyType:"stcp"},null,8,["proxies"]))}}),Sre=ce({__name:"ProxiesSUDP",setup(e){let t=B([]);return(()=>{fetch("../api/proxy/sudp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new vre(i))})})(),(n,i)=>(Y(),_e(js,{proxies:E(t),proxyType:"sudp"},null,8,["proxies"]))}}),Cre=SU({history:$G(),routes:[{path:"/",name:"ServerOverview",component:lre},{path:"/proxies/tcp",name:"ProxiesTCP",component:yre},{path:"/proxies/udp",name:"ProxiesUDP",component:_re},{path:"/proxies/http",name:"ProxiesHTTP",component:bre},{path:"/proxies/https",name:"ProxiesHTTPS",component:wre},{path:"/proxies/stcp",name:"ProxiesSTCP",component:xre},{path:"/proxies/sudp",name:"ProxiesSUDP",component:Sre}]}),oD=YO(bG);oD.use(Cre);oD.mount("#app")});export default Tre();
+`:"<br/>",m=f.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=ft(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,p=ml([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new Xv;m.marker=y.makeTooltipMarker("item",Lu(m.color),h);var _=SS(u.formatTooltip(c,!1,f)),b=p.get("order"),S=p.get("valueFormatter"),w=_.frag,x=w?AS(S?se({valueFormatter:S},w):w,y,h,b,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ft(n),o=a.tooltipConfig,s=o.option||{};if(Te(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=ml(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new Xv;this._showOrMove(d,function(){var g=Qe(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,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.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=mh(m.axisValue,h,g)),h=U2(h,i,!0)}else if(Ve(d)){var _=_t(function(b,S){b===this._ticket&&(f.setContent(S,c,r,p,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,_)}else h=d;f.setContent(h,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,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(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Ve(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),ge(n))i=gt(n[0],u),a=gt(n[1],c);else if(Ie(n)){var p=n;p.width=f[0],p.height=f[1];var g=Ls(p,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(Te(n)&&l){var m=kte(n,v,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=Ote(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=uC(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=uC(h)?f[1]/2:h==="bottom"?f[1]:0),JL(r)){var m=Rte(i,a,o,u,c);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&&O(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&O(u,function(d,h){var v=f[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&&O(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&O(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){Ge.node||!n.getDom()||(sm(this,"_updatePosition"),this._tooltipContent.dispose(),xm("itemTooltip",n))},t.type="tooltip",t}(Si);function ml(e,t,r){var n=t.ecModel,i;r?(i=new rr(r,n,n),i=new rr(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof rr&&(o=o.get("tooltip",!0)),Te(o)&&(o={formatter:o}),o&&(i=new rr(o,i,n)))}return i}function lC(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function Ote(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 Rte(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 kte(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,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/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+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function uC(e){return e==="center"||e==="middle"}function Nte(e,t,r){var n=r0(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ic(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 c=ft(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const Fte=Ite;function Bte(e){ua(QL),e.registerComponentModel(mte),e.registerComponentView(Fte),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Tr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Tr)}var $te=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}(St),Hte=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=qe(r.get("textBaseline"),r.get("textVerticalAlign")),c=new dr({style:la(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new dr({style:la(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){iS(v,"_"+r.get("target"))}),p&&h.on("click",function(){iS(p,"_"+r.get("subtarget"))}),ft(c).eventData=ft(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ls(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};c.setStyle(b),h.setStyle(b),m=a.getBoundingRect();var S=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var x=new Ht({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(Si);function zte(e){e.registerComponentModel($te),e.registerComponentView(Hte)}var Wte=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"])}},Vte=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)&&O(n,function(a,o){Te(a)&&(a={type:a}),n[o]=st(a,Wte(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<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&t0(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Ue(),s=Re(a,function(l){return(Te(l)||bt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new rr(l,this,this.ecModel))},this);this._data=Vt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;O(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;O(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;O(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ot(this._availableNames,r)>=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}(St);const Cm=Vte;var jo=Rt,Tm=O,gf=cn,Gte=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 gf),this.group.add(this._selectorGroup=new gf),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 c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=Ls(c,f,d),v=this.layoutInner(r,o,h,a,l,u),p=Ls(dt({width:v.width,height:v.height},c),f,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=pte(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(),c=Ue(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),Tm(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
+`)){var g=new gf;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!c.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),S=y.getVisual("style"),w=this._createItem(m,p,v,h,n,r,_,S,b,f,a);w.on("click",jo(cC,p,null,a,d)).on("mouseover",jo(Mm,m.name,null,a,d)).on("mouseout",jo(Am,m.name,null,a,d)),c.set(p,!0)}else i.eachRawSeries(function(x){if(!c.get(p)&&x.legendVisualProvider){var C=x.legendVisualProvider;if(!C.containName(p))return;var M=C.indexOfName(p),E=C.getItemVisual(M,"style"),A=C.getItemVisual(M,"legendIcon"),T=so(E.fill);T&&T[3]===0&&(T[3]=.2,E=se(se({},E),{fill:Ky(T,"rgba")}));var D=this._createItem(x,p,v,h,n,r,{},E,A,f,a);D.on("click",jo(cC,null,p,a,d)).on("mouseover",jo(Mm,null,p,a,d)).on("mouseout",jo(Am,null,p,a,d)),c.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();Tm(r,function(u){var c=u.type,f=new dr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);m0(f,{normal:d,emphasis:h},{defaultText:u.title}),Kg(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,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");c=_||c||"roundRect";var b=Ute(c,a,l,u,h,g,d),S=new gf,w=a.getModel("textStyle");if(Ve(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(jte({itemWidth:v,itemHeight:p,icon:c,iconRotate:x,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,M=s,E=o.get("formatter"),A=n;Te(E)&&E?A=E.replace("{name}",n??""):Ve(E)&&(A=E(n));var T=a.get("inactiveColor");S.add(new dr({style:la(w,{text:A,x:C,y:p/2,fill:g?w.getTextColor():T,align:M,verticalAlign:"middle"})}));var D=new Ht({shape:S.getBoundingRect(),invisible:!0}),N=a.getModel("tooltip");return N.get("show")&&p0({el:D,componentModel:o,itemName:n,itemTooltipOption:N.option}),S.add(D),S.eachChild(function(H){H.silent=!0}),D.silent=!f,this.getContentGroup().add(S),Kg(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Xl(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Xl("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]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Si);function Ute(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Tm(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:dm(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),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[c];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 jte(e){var t=e.icon||"roundRect",r=R0(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 cC(e,t,r,n){Am(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Mm(e,t,r,n)}function nD(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function Mm(e,t,r,n){nD(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Am(e,t,r,n){nD(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const iD=Gte;function Yte(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function yl(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();O(s,function(l){var u=l.get("name");if(!(u===`
+`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function qte(e){e.registerAction("legendToggleSelect","legendselectchanged",Rt(yl,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Rt(yl,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Rt(yl,"inverseSelect")),e.registerAction("legendSelect","legendselected",Rt(yl,"select")),e.registerAction("legendUnSelect","legendunselected",Rt(yl,"unSelect"))}function aD(e){e.registerComponentModel(Cm),e.registerComponentView(iD),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Yte),e.registerSubTypeDefaulter("legend",function(){return"plain"}),qte(e)}var Kte=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.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=xh(r);e.prototype.init.call(this,r,n,i),fC(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),fC(this,this.option,r)},t.type="legend.scroll",t.defaultOption=I2(Cm.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Cm);function fC(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ds(t,r,{type:"box",ignoreSize:!!i})}const Xte=Kte;var dC=cn,wp=["width","height"],Sp=["x","y"],Zte=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new dC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new dC)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=ge(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new dr({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",y=v0(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:_t(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,c.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=wp[u],f=Sp[u],d=wp[1-u],h=Sp[1-u];o&&Xl("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Qe(i);o&&(m[c]=i[c]-p[c]-v);var y=this._layoutContentAndController(r,a,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=y[c]+v;else{var _=p[c]+v;g[u]-=_,y[f]-=_}y[c]+=p[c]+v,g[1-u]+=y[h]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Xl(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),Xl("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-v.x,-v.y],_=qe(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,c.setPosition(g),f.setPosition(m),d.setPosition(y);var S={x:0,y:0};if(S[o]=p?i[o]:h[o],S[s]=Math.max(h[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),f.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=S[s],f.setClipPath(new Ht({shape:w})),f.__rectSize=w[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Er(c,{x:x.contentPosition[0],y:x.contentPosition[1]},p?r:null),this._updatePageInfoView(r,x),S},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;O(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);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=wp[o],l=Sp[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=b(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=d;++g)_=b(c[g]),(!_&&y.e>m.s+a||_&&!S(_,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(c[g]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function b(w){if(w){var x=w.getBoundingRect(),C=x[l]+w[l];return{s:C,e:C+x[s],i:w.__legendDataIndex}}}function S(w,x){return w.e>=x&&w.s<=x+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}(iD);const Qte=Zte;function Jte(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 ere(e){ua(aD),e.registerComponentModel(Xte),e.registerComponentView(Qte),Jte(e)}function tre(e){ua(aD),ua(ere)}ua([KJ,OJ,$ee,sJ,zte,Bte,tre,vte]);function rre(e,t,r){const n=B0(document.getElementById(e),"macarons");n.showLoading();const i={title:{text:"Network Traffic",subtext:"today",left:"center"},tooltip:{trigger:"item",formatter:function(a){return aa.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 nre(e,t){const r=B0(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.proxyTypeCount.tcp!=null&&t.proxyTypeCount.tcp!=0&&(n.series[0].data.push({value:t.proxyTypeCount.tcp,name:"TCP"}),n.legend.data.push("TCP")),t.proxyTypeCount.udp!=null&&t.proxyTypeCount.udp!=0&&(n.series[0].data.push({value:t.proxyTypeCount.udp,name:"UDP"}),n.legend.data.push("UDP")),t.proxyTypeCount.http!=null&&t.proxyTypeCount.http!=0&&(n.series[0].data.push({value:t.proxyTypeCount.http,name:"HTTP"}),n.legend.data.push("HTTP")),t.proxyTypeCount.https!=null&&t.proxyTypeCount.https!=0&&(n.series[0].data.push({value:t.proxyTypeCount.https,name:"HTTPS"}),n.legend.data.push("HTTPS")),t.proxyTypeCount.stcp!=null&&t.proxyTypeCount.stcp!=0&&(n.series[0].data.push({value:t.proxyTypeCount.stcp,name:"STCP"}),n.legend.data.push("STCP")),t.proxyTypeCount.sudp!=null&&t.proxyTypeCount.sudp!=0&&(n.series[0].data.push({value:t.proxyTypeCount.sudp,name:"SUDP"}),n.legend.data.push("SUDP")),t.proxyTypeCount.xtcp!=null&&t.proxyTypeCount.xtcp!=0&&(n.series[0].data.push({value:t.proxyTypeCount.xtcp,name:"XTCP"}),n.legend.data.push("XTCP")),r.setOption(n),r.hideLoading()}function ire(e,t,r){const n={width:"600px",height:"400px"},i=B0(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+"<br/>");for(const c of l){const f='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+c.color+'"></span>';u+=f+c.seriesName+": "+aa.fileSize(c.value)+"<br/>"}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 aa.fileSize(l)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:r}]};i.setOption(s),i.hideLoading()}const hC=ce({__name:"LongSpan",props:{content:null,length:null},setup(e){return(t,r)=>{const n=Ju;return Y(),me(pt,null,[ee(n,{content:e.content,placement:"top"},{default:Z(()=>[nr(ae("span",null,Me(e.content.slice(0,e.length))+"...",513),[[yi,e.content.length>e.length]])]),_:1},8,["content"]),nr(ae("span",null,Me(e.content),513),[[yi,e.content.length<30]])],64)}}}),are={class:"source"},ore=ae("div",{id:"traffic",style:{width:"400px",height:"250px","margin-bottom":"30px"}},null,-1),sre=ae("div",{id:"proxies",style:{width:"400px",height:"250px"}},null,-1),lre=ce({__name:"ServerOverview",setup(e){let t=B({version:"",bindPort:0,kcpBindPort:0,quicBindPort:0,vhostHTTPPort:0,vhostHTTPSPort:0,tcpmuxHTTPConnectPort:0,subdomainHost:"",maxPoolCount:0,maxPortsPerClient:"",allowPortsStr:"",tlsForce:!1,heartbeatTimeout:0,clientCounts:0,curConns:0,proxyCounts:0});return(()=>{fetch("../api/serverinfo",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value.version=n.version,t.value.bindPort=n.bindPort,t.value.kcpBindPort=n.kcpBindPort,t.value.quicBindPort=n.quicBindPort,t.value.vhostHTTPPort=n.vhostHTTPPort,t.value.vhostHTTPSPort=n.vhostHTTPSPort,t.value.tcpmuxHTTPConnectPort=n.tcpmuxHTTPConnectPort,t.value.subdomainHost=n.subdomainHost,t.value.maxPoolCount=n.maxPoolCount,t.value.maxPortsPerClient=n.maxPortsPerClient,t.value.maxPortsPerClient=="0"&&(t.value.maxPortsPerClient="no limit"),t.value.allowPortsStr=n.allowPortsStr,t.value.tlsForce=n.tlsForce,t.value.heartbeatTimeout=n.heartbeatTimeout,t.value.clientCounts=n.clientCounts,t.value.curConns=n.curConns,t.value.proxyCounts=0,n.proxyTypeCount!=null&&(n.proxyTypeCount.tcp!=null&&(t.value.proxyCounts+=n.proxyTypeCount.tcp),n.proxyTypeCount.udp!=null&&(t.value.proxyCounts+=n.proxyTypeCount.udp),n.proxyTypeCount.http!=null&&(t.value.proxyCounts+=n.proxyTypeCount.http),n.proxyTypeCount.https!=null&&(t.value.proxyCounts+=n.proxyTypeCount.https),n.proxyTypeCount.stcp!=null&&(t.value.proxyCounts+=n.proxyTypeCount.stcp),n.proxyTypeCount.sudp!=null&&(t.value.proxyCounts+=n.proxyTypeCount.sudp),n.proxyTypeCount.xtcp!=null&&(t.value.proxyCounts+=n.proxyTypeCount.xtcp)),rre("traffic",n.totalTrafficIn,n.totalTrafficOut),nre("proxies",n)}).catch(()=>{DA({showClose:!0,message:"Get server info from frps failed!",type:"warning"})})})(),(n,i)=>{const a=zM,o=HM,s=pA,l=vA;return Y(),me("div",null,[ee(l,null,{default:Z(()=>[ee(s,{md:12},{default:Z(()=>[ae("div",are,[ee(o,{"label-position":"left","label-width":"220px",class:"server_info"},{default:Z(()=>[ee(a,{label:"Version"},{default:Z(()=>[ae("span",null,Me(P(t).version),1)]),_:1}),ee(a,{label:"BindPort"},{default:Z(()=>[ae("span",null,Me(P(t).bindPort),1)]),_:1}),P(t).kcpBindPort!=0?(Y(),_e(a,{key:0,label:"KCP Bind Port"},{default:Z(()=>[ae("span",null,Me(P(t).kcpBindPort),1)]),_:1})):Fe("",!0),P(t).quicBindPort!=0?(Y(),_e(a,{key:1,label:"QUIC Bind Port"},{default:Z(()=>[ae("span",null,Me(P(t).quicBindPort),1)]),_:1})):Fe("",!0),P(t).vhostHTTPPort!=0?(Y(),_e(a,{key:2,label:"Http Port"},{default:Z(()=>[ae("span",null,Me(P(t).vhostHTTPPort),1)]),_:1})):Fe("",!0),P(t).vhostHTTPSPort!=0?(Y(),_e(a,{key:3,label:"Https Port"},{default:Z(()=>[ae("span",null,Me(P(t).vhostHTTPSPort),1)]),_:1})):Fe("",!0),P(t).tcpmuxHTTPConnectPort!=0?(Y(),_e(a,{key:4,label:"TCPMux HTTPConnect Port"},{default:Z(()=>[ae("span",null,Me(P(t).tcpmuxHTTPConnectPort),1)]),_:1})):Fe("",!0),P(t).subdomainHost!=""?(Y(),_e(a,{key:5,label:"Subdomain Host"},{default:Z(()=>[ee(hC,{content:P(t).subdomainHost,length:30},null,8,["content"])]),_:1})):Fe("",!0),ee(a,{label:"Max PoolCount"},{default:Z(()=>[ae("span",null,Me(P(t).maxPoolCount),1)]),_:1}),ee(a,{label:"Max Ports Per Client"},{default:Z(()=>[ae("span",null,Me(P(t).maxPortsPerClient),1)]),_:1}),P(t).allowPortsStr!=""?(Y(),_e(a,{key:6,label:"Allow Ports"},{default:Z(()=>[ee(hC,{content:P(t).allowPortsStr,length:30},null,8,["content"])]),_:1})):Fe("",!0),P(t).tlsForce===!0?(Y(),_e(a,{key:7,label:"TLS Force"},{default:Z(()=>[ae("span",null,Me(P(t).tlsForce),1)]),_:1})):Fe("",!0),ee(a,{label:"HeartBeat Timeout"},{default:Z(()=>[ae("span",null,Me(P(t).heartbeatTimeout),1)]),_:1}),ee(a,{label:"Client Counts"},{default:Z(()=>[ae("span",null,Me(P(t).clientCounts),1)]),_:1}),ee(a,{label:"Current Connections"},{default:Z(()=>[ae("span",null,Me(P(t).curConns),1)]),_:1}),ee(a,{label:"Proxy Counts"},{default:Z(()=>[ae("span",null,Me(P(t).proxyCounts),1)]),_:1})]),_:1})])]),_:1}),ee(s,{md:12},{default:Z(()=>[ore,sre]),_:1})]),_:1})])}}});class Us{constructor(t){Wt(this,"name");Wt(this,"type");Wt(this,"encryption");Wt(this,"compression");Wt(this,"conns");Wt(this,"trafficIn");Wt(this,"trafficOut");Wt(this,"lastStartTime");Wt(this,"lastCloseTime");Wt(this,"status");Wt(this,"clientVersion");Wt(this,"addr");Wt(this,"port");Wt(this,"customDomains");Wt(this,"hostHeaderRewrite");Wt(this,"locations");Wt(this,"subdomain");this.name=t.name,this.type="",this.encryption=!1,this.compression=!1,t.conf!=null&&t.conf.useEncryption!=null&&(this.encryption=t.conf.useEncryption),t.conf!=null&&t.conf.useCompression!=null&&(this.compression=t.conf.useCompression),this.conns=t.curConns,this.trafficIn=t.todayTrafficIn,this.trafficOut=t.todayTrafficOut,this.lastStartTime=t.lastStartTime,this.lastCloseTime=t.lastCloseTime,this.status=t.status,this.clientVersion=t.clientVersion,this.addr="",this.port=0,this.customDomains="",this.hostHeaderRewrite="",this.locations="",this.subdomain=""}}class ure extends Us{constructor(t){super(t),this.type="tcp",t.conf!=null?(this.addr=":"+t.conf.remotePort,this.port=t.conf.remotePort):(this.addr="",this.port=0)}}class cre extends Us{constructor(t){super(t),this.type="udp",t.conf!=null?(this.addr=":"+t.conf.remotePort,this.port=t.conf.remotePort):(this.addr="",this.port=0)}}class fre extends Us{constructor(t,r,n){super(t),this.type="http",this.port=r,t.conf!=null&&(t.conf.customDomains!=null&&(this.customDomains=t.conf.customDomains),this.hostHeaderRewrite=t.conf.hostHeaderRewrite,this.locations=t.conf.locations,t.conf.subdomain!=null&&t.conf.subdomain!=""&&(this.subdomain=t.conf.subdomain+"."+n))}}class dre extends Us{constructor(t,r,n){super(t),this.type="https",this.port=r,t.conf!=null&&(t.conf.customDomains!=null&&(this.customDomains=t.conf.customDomains),t.conf.subdomain!=null&&t.conf.subdomain!=""&&(this.subdomain=t.conf.subdomain+"."+n))}}class hre extends Us{constructor(t){super(t),this.type="stcp"}}class vre extends Us{constructor(t){super(t),this.type="sudp"}}const pre=["id"],gre=ce({__name:"Traffic",props:{proxyName:null},setup(e){const t=e;return(()=>{let n="../api/traffic/"+t.proxyName;fetch(n,{credentials:"include"}).then(i=>i.json()).then(i=>{ire(t.proxyName,i.trafficIn,i.trafficOut)}).catch(i=>{DA({showClose:!0,message:"Get traffic info failed!"+i,type:"warning"})})})(),(n,i)=>(Y(),me("div",{id:e.proxyName,style:{width:"600px",height:"400px"}},null,8,pre))}}),mre=ce({__name:"ProxyViewExpand",props:{row:null,proxyType:null},setup(e){return(t,r)=>{const n=zM,i=HM;return e.proxyType==="http"||e.proxyType==="https"?(Y(),_e(i,{key:0,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[ae("span",null,Me(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[ae("span",null,Me(e.row.type),1)]),_:1}),ee(n,{label:"Domains"},{default:Z(()=>[ae("span",null,Me(e.row.customDomains),1)]),_:1}),ee(n,{label:"SubDomain"},{default:Z(()=>[ae("span",null,Me(e.row.subdomain),1)]),_:1}),ee(n,{label:"locations"},{default:Z(()=>[ae("span",null,Me(e.row.locations),1)]),_:1}),ee(n,{label:"HostRewrite"},{default:Z(()=>[ae("span",null,Me(e.row.hostHeaderRewrite),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[ae("span",null,Me(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[ae("span",null,Me(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[ae("span",null,Me(e.row.lastStartTime),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[ae("span",null,Me(e.row.lastCloseTime),1)]),_:1})]),_:1})):(Y(),_e(i,{key:1,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[ae("span",null,Me(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[ae("span",null,Me(e.row.type),1)]),_:1}),ee(n,{label:"Addr"},{default:Z(()=>[ae("span",null,Me(e.row.addr),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[ae("span",null,Me(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[ae("span",null,Me(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[ae("span",null,Me(e.row.lastStartTime),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[ae("span",null,Me(e.row.lastCloseTime),1)]),_:1})]),_:1}))}}}),js=ce({__name:"ProxyView",props:{proxies:null,proxyType:null},setup(e){const t=(n,i)=>aa.fileSize(n.trafficIn),r=(n,i)=>aa.fileSize(n.trafficOut);return(n,i)=>{const a=gre,o=J6,s=IW,l=ZV,u=O8,c=XV;return Y(),me("div",null,[ee(c,{data:e.proxies,"default-sort":{prop:"name",order:"ascending"},style:{width:"100%"}},{default:Z(()=>[ee(l,{type:"expand"},{default:Z(f=>[ee(s,{placement:"right",width:"600",style:{"margin-left":"0px"},trigger:"click"},{default:Z(()=>[ee(a,{proxyName:f.row.name},null,8,["proxyName"])]),reference:Z(()=>[ee(o,{type:"primary",size:"large",name:f.row.name,style:{"margin-bottom":"10px"}},{default:Z(()=>[Bt("Traffic Statistics ")]),_:2},1032,["name"])]),_:2},1024),ee(mre,{row:f.row,proxyType:e.proxyType},null,8,["row","proxyType"])]),_:1}),ee(l,{label:"Name",prop:"name",sortable:""}),ee(l,{label:"Port",prop:"port",sortable:""}),ee(l,{label:"Connections",prop:"conns",sortable:""}),ee(l,{label:"Traffic In",prop:"trafficIn",formatter:t,sortable:""}),ee(l,{label:"Traffic Out",prop:"trafficOut",formatter:r,sortable:""}),ee(l,{label:"ClientVersion",prop:"clientVersion",sortable:""}),ee(l,{label:"Status",prop:"status",sortable:""},{default:Z(f=>[f.row.status==="online"?(Y(),_e(u,{key:0,type:"success"},{default:Z(()=>[Bt(Me(f.row.status),1)]),_:2},1024)):(Y(),_e(u,{key:1,type:"danger"},{default:Z(()=>[Bt(Me(f.row.status),1)]),_:2},1024))]),_:1})]),_:1},8,["data"])])}}}),yre=ce({__name:"ProxiesTCP",setup(e){let t=B([]);return(()=>{fetch("../api/proxy/tcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new ure(i))})})(),(n,i)=>(Y(),_e(js,{proxies:P(t),proxyType:"tcp"},null,8,["proxies"]))}}),_re=ce({__name:"ProxiesUDP",setup(e){let t=B([]);return(()=>{fetch("../api/proxy/udp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new cre(i))})})(),(n,i)=>(Y(),_e(js,{proxies:P(t),proxyType:"udp"},null,8,["proxies"]))}}),bre=ce({__name:"ProxiesHTTP",setup(e){let t=B([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhostHTTPPort,i=a.subdomainHost,!(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 fre(s,n,i))})})})(),(n,i)=>(Y(),_e(js,{proxies:P(t),proxyType:"http"},null,8,["proxies"]))}}),wre=ce({__name:"ProxiesHTTPS",setup(e){let t=B([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhostHTTPSPort,i=a.subdomainHost,!(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 dre(s,n,i))})})})(),(n,i)=>(Y(),_e(js,{proxies:P(t),proxyType:"https"},null,8,["proxies"]))}}),Sre=ce({__name:"ProxiesSTCP",setup(e){let t=B([]);return(()=>{fetch("../api/proxy/stcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new hre(i))})})(),(n,i)=>(Y(),_e(js,{proxies:P(t),proxyType:"stcp"},null,8,["proxies"]))}}),xre=ce({__name:"ProxiesSUDP",setup(e){let t=B([]);return(()=>{fetch("../api/proxy/sudp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new vre(i))})})(),(n,i)=>(Y(),_e(js,{proxies:P(t),proxyType:"sudp"},null,8,["proxies"]))}}),Cre=xU({history:$G(),routes:[{path:"/",name:"ServerOverview",component:lre},{path:"/proxies/tcp",name:"ProxiesTCP",component:yre},{path:"/proxies/udp",name:"ProxiesUDP",component:_re},{path:"/proxies/http",name:"ProxiesHTTP",component:bre},{path:"/proxies/https",name:"ProxiesHTTPS",component:wre},{path:"/proxies/stcp",name:"ProxiesSTCP",component:Sre},{path:"/proxies/sudp",name:"ProxiesSUDP",component:xre}]}),oD=YO(bG);oD.use(Cre);oD.mount("#app")});export default Tre();
diff --git a/assets/frps/static/index.html b/assets/frps/static/index.html
index c08019b8397..4f2e0ca4341 100644
--- a/assets/frps/static/index.html
+++ b/assets/frps/static/index.html
@@ -4,7 +4,7 @@
 <head>
     <meta charset="utf-8">
     <title>frps dashboard</title>
-  <script type="module" crossorigin src="./index-ea3edf22.js"></script>
+  <script type="module" crossorigin src="./index-9465253b.js"></script>
   <link rel="stylesheet" href="./index-1e0c7400.css">
 </head>
 
diff --git a/pkg/config/v1/plugin.go b/pkg/config/v1/plugin.go
index a01d10227be..bd5ff384a56 100644
--- a/pkg/config/v1/plugin.go
+++ b/pkg/config/v1/plugin.go
@@ -16,7 +16,6 @@ package v1
 
 import (
 	"encoding/json"
-	"errors"
 	"fmt"
 	"reflect"
 )
@@ -30,7 +29,7 @@ type TypedClientPluginOptions struct {
 
 func (c *TypedClientPluginOptions) UnmarshalJSON(b []byte) error {
 	if len(b) == 4 && string(b) == "null" {
-		return errors.New("type is required")
+		return nil
 	}
 
 	typeStruct := struct {
@@ -41,6 +40,9 @@ func (c *TypedClientPluginOptions) UnmarshalJSON(b []byte) error {
 	}
 
 	c.Type = typeStruct.Type
+	if c.Type == "" {
+		return nil
+	}
 
 	v, ok := clientPluginOptionsTypeMap[typeStruct.Type]
 	if !ok {
diff --git a/server/dashboard_api.go b/server/dashboard_api.go
index 56faac30789..b5a923f9456 100644
--- a/server/dashboard_api.go
+++ b/server/dashboard_api.go
@@ -34,24 +34,24 @@ type GeneralResponse struct {
 
 type serverInfoResp struct {
 	Version               string `json:"version"`
-	BindPort              int    `json:"bind_port"`
-	VhostHTTPPort         int    `json:"vhost_http_port"`
-	VhostHTTPSPort        int    `json:"vhost_https_port"`
-	TCPMuxHTTPConnectPort int    `json:"tcpmux_httpconnect_port"`
-	KCPBindPort           int    `json:"kcp_bind_port"`
-	QUICBindPort          int    `json:"quic_bind_port"`
-	SubdomainHost         string `json:"subdomain_host"`
-	MaxPoolCount          int64  `json:"max_pool_count"`
-	MaxPortsPerClient     int64  `json:"max_ports_per_client"`
-	HeartBeatTimeout      int64  `json:"heart_beat_timeout"`
-	AllowPortsStr         string `json:"allow_ports_str,omitempty"`
-	TLSOnly               bool   `json:"tls_only,omitempty"`
-
-	TotalTrafficIn  int64            `json:"total_traffic_in"`
-	TotalTrafficOut int64            `json:"total_traffic_out"`
-	CurConns        int64            `json:"cur_conns"`
-	ClientCounts    int64            `json:"client_counts"`
-	ProxyTypeCounts map[string]int64 `json:"proxy_type_count"`
+	BindPort              int    `json:"bindPort"`
+	VhostHTTPPort         int    `json:"vhostHTTPPort"`
+	VhostHTTPSPort        int    `json:"vhostHTTPSPort"`
+	TCPMuxHTTPConnectPort int    `json:"tcpmuxHTTPConnectPort"`
+	KCPBindPort           int    `json:"kcpBindPort"`
+	QUICBindPort          int    `json:"quicBindPort"`
+	SubdomainHost         string `json:"subdomainHost"`
+	MaxPoolCount          int64  `json:"maxPoolCount"`
+	MaxPortsPerClient     int64  `json:"maxPortsPerClient"`
+	HeartBeatTimeout      int64  `json:"heartbeatTimeout"`
+	AllowPortsStr         string `json:"allowPortsStr,omitempty"`
+	TLSForce              bool   `json:"tlsForce,omitempty"`
+
+	TotalTrafficIn  int64            `json:"totalTrafficIn"`
+	TotalTrafficOut int64            `json:"totalTrafficOut"`
+	CurConns        int64            `json:"curConns"`
+	ClientCounts    int64            `json:"clientCounts"`
+	ProxyTypeCounts map[string]int64 `json:"proxyTypeCount"`
 }
 
 // /healthz
@@ -85,7 +85,7 @@ func (svr *Service) APIServerInfo(w http.ResponseWriter, r *http.Request) {
 		MaxPortsPerClient:     svr.cfg.MaxPortsPerClient,
 		HeartBeatTimeout:      svr.cfg.Transport.HeartbeatTimeout,
 		AllowPortsStr:         types.PortsRangeSlice(svr.cfg.AllowPorts).String(),
-		TLSOnly:               svr.cfg.Transport.TLS.Force,
+		TLSForce:              svr.cfg.Transport.TLS.Force,
 
 		TotalTrafficIn:  serverStats.TotalTrafficIn,
 		TotalTrafficOut: serverStats.TotalTrafficOut,
@@ -104,7 +104,7 @@ type BaseOutConf struct {
 
 type TCPOutConf struct {
 	BaseOutConf
-	RemotePort int `json:"remote_port"`
+	RemotePort int `json:"remotePort"`
 }
 
 type TCPMuxOutConf struct {
@@ -115,14 +115,14 @@ type TCPMuxOutConf struct {
 
 type UDPOutConf struct {
 	BaseOutConf
-	RemotePort int `json:"remote_port"`
+	RemotePort int `json:"remotePort"`
 }
 
 type HTTPOutConf struct {
 	BaseOutConf
 	v1.DomainConfig
 	Locations         []string `json:"locations"`
-	HostHeaderRewrite string   `json:"host_header_rewrite"`
+	HostHeaderRewrite string   `json:"hostHeaderRewrite"`
 }
 
 type HTTPSOutConf struct {
@@ -163,12 +163,12 @@ func getConfByType(proxyType string) any {
 type ProxyStatsInfo struct {
 	Name            string      `json:"name"`
 	Conf            interface{} `json:"conf"`
-	ClientVersion   string      `json:"client_version,omitempty"`
-	TodayTrafficIn  int64       `json:"today_traffic_in"`
-	TodayTrafficOut int64       `json:"today_traffic_out"`
-	CurConns        int64       `json:"cur_conns"`
-	LastStartTime   string      `json:"last_start_time"`
-	LastCloseTime   string      `json:"last_close_time"`
+	ClientVersion   string      `json:"clientVersion,omitempty"`
+	TodayTrafficIn  int64       `json:"todayTrafficIn"`
+	TodayTrafficOut int64       `json:"todayTrafficOut"`
+	CurConns        int64       `json:"curConns"`
+	LastStartTime   string      `json:"lastStartTime"`
+	LastCloseTime   string      `json:"lastCloseTime"`
 	Status          string      `json:"status"`
 }
 
@@ -236,11 +236,11 @@ func (svr *Service) getProxyStatsByType(proxyType string) (proxyInfos []*ProxySt
 type GetProxyStatsResp struct {
 	Name            string      `json:"name"`
 	Conf            interface{} `json:"conf"`
-	TodayTrafficIn  int64       `json:"today_traffic_in"`
-	TodayTrafficOut int64       `json:"today_traffic_out"`
-	CurConns        int64       `json:"cur_conns"`
-	LastStartTime   string      `json:"last_start_time"`
-	LastCloseTime   string      `json:"last_close_time"`
+	TodayTrafficIn  int64       `json:"todayTrafficIn"`
+	TodayTrafficOut int64       `json:"todayTrafficOut"`
+	CurConns        int64       `json:"curConns"`
+	LastStartTime   string      `json:"lastStartTime"`
+	LastCloseTime   string      `json:"lastCloseTime"`
 	Status          string      `json:"status"`
 }
 
@@ -310,8 +310,8 @@ func (svr *Service) getProxyStatsByTypeAndName(proxyType string, proxyName strin
 // /api/traffic/:name
 type GetProxyTrafficResp struct {
 	Name       string  `json:"name"`
-	TrafficIn  []int64 `json:"traffic_in"`
-	TrafficOut []int64 `json:"traffic_out"`
+	TrafficIn  []int64 `json:"trafficIn"`
+	TrafficOut []int64 `json:"trafficOut"`
 }
 
 func (svr *Service) APIProxyTraffic(w http.ResponseWriter, r *http.Request) {
diff --git a/web/frps/auto-imports.d.ts b/web/frps/auto-imports.d.ts
index afc379b3e12..08908edd6a4 100644
--- a/web/frps/auto-imports.d.ts
+++ b/web/frps/auto-imports.d.ts
@@ -1,3 +1,5 @@
 // Generated by 'unplugin-auto-import'
 export {}
-declare global {}
+declare global {
+
+}
diff --git a/web/frps/src/components/ProxiesHTTP.vue b/web/frps/src/components/ProxiesHTTP.vue
index 645893d4fa5..b65f51d778a 100644
--- a/web/frps/src/components/ProxiesHTTP.vue
+++ b/web/frps/src/components/ProxiesHTTP.vue
@@ -10,16 +10,16 @@ import ProxyView from './ProxyView.vue'
 let proxies = ref<HTTPProxy[]>([])
 
 const fetchData = () => {
-  let vhost_http_port: number
-  let subdomain_host: string
+  let vhostHTTPPort: number
+  let subdomainHost: string
   fetch('../api/serverinfo', { credentials: 'include' })
     .then((res) => {
       return res.json()
     })
     .then((json) => {
-      vhost_http_port = json.vhost_http_port
-      subdomain_host = json.subdomain_host
-      if (vhost_http_port == null || vhost_http_port == 0) {
+      vhostHTTPPort = json.vhostHTTPPort
+      subdomainHost = json.subdomainHost
+      if (vhostHTTPPort == null || vhostHTTPPort == 0) {
         return
       }
       fetch('../api/proxy/http', { credentials: 'include' })
@@ -29,7 +29,7 @@ const fetchData = () => {
         .then((json) => {
           for (let proxyStats of json.proxies) {
             proxies.value.push(
-              new HTTPProxy(proxyStats, vhost_http_port, subdomain_host)
+              new HTTPProxy(proxyStats, vhostHTTPPort, subdomainHost)
             )
           }
         })
diff --git a/web/frps/src/components/ProxiesHTTPS.vue b/web/frps/src/components/ProxiesHTTPS.vue
index 992aa411e75..93c0204ef2b 100644
--- a/web/frps/src/components/ProxiesHTTPS.vue
+++ b/web/frps/src/components/ProxiesHTTPS.vue
@@ -10,16 +10,16 @@ import ProxyView from './ProxyView.vue'
 let proxies = ref<HTTPSProxy[]>([])
 
 const fetchData = () => {
-  let vhost_https_port: number
-  let subdomain_host: string
+  let vhostHTTPSPort: number
+  let subdomainHost: string
   fetch('../api/serverinfo', { credentials: 'include' })
     .then((res) => {
       return res.json()
     })
     .then((json) => {
-      vhost_https_port = json.vhost_https_port
-      subdomain_host = json.subdomain_host
-      if (vhost_https_port == null || vhost_https_port == 0) {
+      vhostHTTPSPort = json.vhostHTTPSPort
+      subdomainHost = json.subdomainHost
+      if (vhostHTTPSPort == null || vhostHTTPSPort == 0) {
         return
       }
       fetch('../api/proxy/https', { credentials: 'include' })
@@ -29,7 +29,7 @@ const fetchData = () => {
         .then((json) => {
           for (let proxyStats of json.proxies) {
             proxies.value.push(
-              new HTTPSProxy(proxyStats, vhost_https_port, subdomain_host)
+              new HTTPSProxy(proxyStats, vhostHTTPSPort, subdomainHost)
             )
           }
         })
diff --git a/web/frps/src/components/ProxyView.vue b/web/frps/src/components/ProxyView.vue
index 5a0b4c3f1b5..d26f66e92a8 100644
--- a/web/frps/src/components/ProxyView.vue
+++ b/web/frps/src/components/ProxyView.vue
@@ -14,7 +14,7 @@
             trigger="click"
           >
             <template #default>
-              <Traffic :proxy_name="props.row.name" />
+              <Traffic :proxyName="props.row.name" />
             </template>
 
             <template #reference>
@@ -37,19 +37,19 @@
       </el-table-column>
       <el-table-column
         label="Traffic In"
-        prop="traffic_in"
+        prop="trafficIn"
         :formatter="formatTrafficIn"
         sortable
       >
       </el-table-column>
       <el-table-column
         label="Traffic Out"
-        prop="traffic_out"
+        prop="trafficOut"
         :formatter="formatTrafficOut"
         sortable
       >
       </el-table-column>
-      <el-table-column label="ClientVersion" prop="client_version" sortable>
+      <el-table-column label="ClientVersion" prop="clientVersion" sortable>
       </el-table-column>
       <el-table-column label="Status" prop="status" sortable>
         <template #default="scope">
@@ -75,10 +75,10 @@ defineProps<{
 }>()
 
 const formatTrafficIn = (row: BaseProxy, _: TableColumnCtx<BaseProxy>) => {
-  return Humanize.fileSize(row.traffic_in)
+  return Humanize.fileSize(row.trafficIn)
 }
 
 const formatTrafficOut = (row: BaseProxy, _: TableColumnCtx<BaseProxy>) => {
-  return Humanize.fileSize(row.traffic_out)
+  return Humanize.fileSize(row.trafficOut)
 }
 </script>
diff --git a/web/frps/src/components/ProxyViewExpand.vue b/web/frps/src/components/ProxyViewExpand.vue
index e20f4a49290..3e8d9e16a56 100644
--- a/web/frps/src/components/ProxyViewExpand.vue
+++ b/web/frps/src/components/ProxyViewExpand.vue
@@ -12,7 +12,7 @@
       <span>{{ row.type }}</span>
     </el-form-item>
     <el-form-item label="Domains">
-      <span>{{ row.custom_domains }}</span>
+      <span>{{ row.customDomains }}</span>
     </el-form-item>
     <el-form-item label="SubDomain">
       <span>{{ row.subdomain }}</span>
@@ -21,7 +21,7 @@
       <span>{{ row.locations }}</span>
     </el-form-item>
     <el-form-item label="HostRewrite">
-      <span>{{ row.host_header_rewrite }}</span>
+      <span>{{ row.hostHeaderRewrite }}</span>
     </el-form-item>
     <el-form-item label="Encryption">
       <span>{{ row.encryption }}</span>
@@ -30,10 +30,10 @@
       <span>{{ row.compression }}</span>
     </el-form-item>
     <el-form-item label="Last Start">
-      <span>{{ row.last_start_time }}</span>
+      <span>{{ row.lastStartTime }}</span>
     </el-form-item>
     <el-form-item label="Last Close">
-      <span>{{ row.last_close_time }}</span>
+      <span>{{ row.lastCloseTime }}</span>
     </el-form-item>
   </el-form>
 
@@ -54,10 +54,10 @@
       <span>{{ row.compression }}</span>
     </el-form-item>
     <el-form-item label="Last Start">
-      <span>{{ row.last_start_time }}</span>
+      <span>{{ row.lastStartTime }}</span>
     </el-form-item>
     <el-form-item label="Last Close">
-      <span>{{ row.last_close_time }}</span>
+      <span>{{ row.lastCloseTime }}</span>
     </el-form-item>
   </el-form>
 </template>
diff --git a/web/frps/src/components/ServerOverview.vue b/web/frps/src/components/ServerOverview.vue
index 8266b481961..4a3c4bc3074 100644
--- a/web/frps/src/components/ServerOverview.vue
+++ b/web/frps/src/components/ServerOverview.vue
@@ -12,58 +12,58 @@
               <span>{{ data.version }}</span>
             </el-form-item>
             <el-form-item label="BindPort">
-              <span>{{ data.bind_port }}</span>
+              <span>{{ data.bindPort }}</span>
             </el-form-item>
-            <el-form-item label="KCP Bind Port" v-if="data.kcp_bind_port != 0">
-              <span>{{ data.kcp_bind_port }}</span>
+            <el-form-item label="KCP Bind Port" v-if="data.kcpBindPort != 0">
+              <span>{{ data.kcpBindPort }}</span>
             </el-form-item>
             <el-form-item
               label="QUIC Bind Port"
-              v-if="data.quic_bind_port != 0"
+              v-if="data.quicBindPort != 0"
             >
-              <span>{{ data.quic_bind_port }}</span>
+              <span>{{ data.quicBindPort }}</span>
             </el-form-item>
-            <el-form-item label="Http Port" v-if="data.vhost_http_port != 0">
-              <span>{{ data.vhost_http_port }}</span>
+            <el-form-item label="Http Port" v-if="data.vhostHTTPPort != 0">
+              <span>{{ data.vhostHTTPPort }}</span>
             </el-form-item>
-            <el-form-item label="Https Port" v-if="data.vhost_https_port != 0">
-              <span>{{ data.vhost_https_port }}</span>
+            <el-form-item label="Https Port" v-if="data.vhostHTTPSPort != 0">
+              <span>{{ data.vhostHTTPSPort }}</span>
             </el-form-item>
             <el-form-item
               label="TCPMux HTTPConnect Port"
-              v-if="data.tcpmux_httpconnect_port != 0"
+              v-if="data.tcpmuxHTTPConnectPort != 0"
             >
-              <span>{{ data.tcpmux_httpconnect_port }}</span>
+              <span>{{ data.tcpmuxHTTPConnectPort }}</span>
             </el-form-item>
             <el-form-item
               label="Subdomain Host"
-              v-if="data.subdomain_host != ''"
+              v-if="data.subdomainHost != ''"
             >
-              <LongSpan :content="data.subdomain_host" :length="30"></LongSpan>
+              <LongSpan :content="data.subdomainHost" :length="30"></LongSpan>
             </el-form-item>
             <el-form-item label="Max PoolCount">
-              <span>{{ data.max_pool_count }}</span>
+              <span>{{ data.maxPoolCount }}</span>
             </el-form-item>
             <el-form-item label="Max Ports Per Client">
-              <span>{{ data.max_ports_per_client }}</span>
+              <span>{{ data.maxPortsPerClient }}</span>
             </el-form-item>
-            <el-form-item label="Allow Ports" v-if="data.allow_ports_str != ''">
-              <LongSpan :content="data.allow_ports_str" :length="30"></LongSpan>
+            <el-form-item label="Allow Ports" v-if="data.allowPortsStr != ''">
+              <LongSpan :content="data.allowPortsStr" :length="30"></LongSpan>
             </el-form-item>
-            <el-form-item label="TLS Only" v-if="data.tls_only === true">
-              <span>{{ data.tls_only }}</span>
+            <el-form-item label="TLS Force" v-if="data.tlsForce === true">
+              <span>{{ data.tlsForce }}</span>
             </el-form-item>
             <el-form-item label="HeartBeat Timeout">
-              <span>{{ data.heart_beat_timeout }}</span>
+              <span>{{ data.heartbeatTimeout }}</span>
             </el-form-item>
             <el-form-item label="Client Counts">
-              <span>{{ data.client_counts }}</span>
+              <span>{{ data.clientCounts }}</span>
             </el-form-item>
             <el-form-item label="Current Connections">
-              <span>{{ data.cur_conns }}</span>
+              <span>{{ data.curConns }}</span>
             </el-form-item>
             <el-form-item label="Proxy Counts">
-              <span>{{ data.proxy_counts }}</span>
+              <span>{{ data.proxyCounts }}</span>
             </el-form-item>
           </el-form>
         </div>
@@ -87,21 +87,21 @@ import LongSpan from './LongSpan.vue'
 
 let data = ref({
   version: '',
-  bind_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: false,
-  heart_beat_timeout: 0,
-  client_counts: 0,
-  cur_conns: 0,
-  proxy_counts: 0,
+  bindPort: 0,
+  kcpBindPort: 0,
+  quicBindPort: 0,
+  vhostHTTPPort: 0,
+  vhostHTTPSPort: 0,
+  tcpmuxHTTPConnectPort: 0,
+  subdomainHost: '',
+  maxPoolCount: 0,
+  maxPortsPerClient: '',
+  allowPortsStr: '',
+  tlsForce: false,
+  heartbeatTimeout: 0,
+  clientCounts: 0,
+  curConns: 0,
+  proxyCounts: 0,
 })
 
 const fetchData = () => {
@@ -109,50 +109,50 @@ const fetchData = () => {
     .then((res) => res.json())
     .then((json) => {
       data.value.version = json.version
-      data.value.bind_port = json.bind_port
-      data.value.kcp_bind_port = json.kcp_bind_port
-      data.value.quic_bind_port = json.quic_bind_port
-      data.value.vhost_http_port = json.vhost_http_port
-      data.value.vhost_https_port = json.vhost_https_port
-      data.value.tcpmux_httpconnect_port = json.tcpmux_httpconnect_port
-      data.value.subdomain_host = json.subdomain_host
-      data.value.max_pool_count = json.max_pool_count
-      data.value.max_ports_per_client = json.max_ports_per_client
-      if (data.value.max_ports_per_client == '0') {
-        data.value.max_ports_per_client = 'no limit'
+      data.value.bindPort = json.bindPort
+      data.value.kcpBindPort = json.kcpBindPort
+      data.value.quicBindPort = json.quicBindPort
+      data.value.vhostHTTPPort = json.vhostHTTPPort
+      data.value.vhostHTTPSPort = json.vhostHTTPSPort
+      data.value.tcpmuxHTTPConnectPort = json.tcpmuxHTTPConnectPort
+      data.value.subdomainHost = json.subdomainHost
+      data.value.maxPoolCount = json.maxPoolCount
+      data.value.maxPortsPerClient = json.maxPortsPerClient
+      if (data.value.maxPortsPerClient == '0') {
+        data.value.maxPortsPerClient = 'no limit'
       }
-      data.value.allow_ports_str = json.allow_ports_str
-      data.value.tls_only = json.tls_only
-      data.value.heart_beat_timeout = json.heart_beat_timeout
-      data.value.client_counts = json.client_counts
-      data.value.cur_conns = json.cur_conns
-      data.value.proxy_counts = 0
-      if (json.proxy_type_count != null) {
-        if (json.proxy_type_count.tcp != null) {
-          data.value.proxy_counts += json.proxy_type_count.tcp
+      data.value.allowPortsStr = json.allowPortsStr
+      data.value.tlsForce = json.tlsForce
+      data.value.heartbeatTimeout = json.heartbeatTimeout
+      data.value.clientCounts = json.clientCounts
+      data.value.curConns = json.curConns
+      data.value.proxyCounts = 0
+      if (json.proxyTypeCount != null) {
+        if (json.proxyTypeCount.tcp != null) {
+          data.value.proxyCounts += json.proxyTypeCount.tcp
         }
-        if (json.proxy_type_count.udp != null) {
-          data.value.proxy_counts += json.proxy_type_count.udp
+        if (json.proxyTypeCount.udp != null) {
+          data.value.proxyCounts += json.proxyTypeCount.udp
         }
-        if (json.proxy_type_count.http != null) {
-          data.value.proxy_counts += json.proxy_type_count.http
+        if (json.proxyTypeCount.http != null) {
+          data.value.proxyCounts += json.proxyTypeCount.http
         }
-        if (json.proxy_type_count.https != null) {
-          data.value.proxy_counts += json.proxy_type_count.https
+        if (json.proxyTypeCount.https != null) {
+          data.value.proxyCounts += json.proxyTypeCount.https
         }
-        if (json.proxy_type_count.stcp != null) {
-          data.value.proxy_counts += json.proxy_type_count.stcp
+        if (json.proxyTypeCount.stcp != null) {
+          data.value.proxyCounts += json.proxyTypeCount.stcp
         }
-        if (json.proxy_type_count.sudp != null) {
-          data.value.proxy_counts += json.proxy_type_count.sudp
+        if (json.proxyTypeCount.sudp != null) {
+          data.value.proxyCounts += json.proxyTypeCount.sudp
         }
-        if (json.proxy_type_count.xtcp != null) {
-          data.value.proxy_counts += json.proxy_type_count.xtcp
+        if (json.proxyTypeCount.xtcp != null) {
+          data.value.proxyCounts += json.proxyTypeCount.xtcp
         }
       }
 
       // draw chart
-      DrawTrafficChart('traffic', json.total_traffic_in, json.total_traffic_out)
+      DrawTrafficChart('traffic', json.totalTrafficIn, json.totalTrafficOut)
       DrawProxyChart('proxies', json)
     })
     .catch(() => {
diff --git a/web/frps/src/components/Traffic.vue b/web/frps/src/components/Traffic.vue
index 49c48ae8276..ba07d4b9c48 100644
--- a/web/frps/src/components/Traffic.vue
+++ b/web/frps/src/components/Traffic.vue
@@ -1,5 +1,5 @@
 <template>
-  <div :id="proxy_name" style="width: 600px; height: 400px"></div>
+  <div :id="proxyName" style="width: 600px; height: 400px"></div>
 </template>
 
 <script setup lang="ts">
@@ -7,17 +7,17 @@ import { ElMessage } from 'element-plus'
 import { DrawProxyTrafficChart } from '../utils/chart.js'
 
 const props = defineProps<{
-  proxy_name: string
+  proxyName: string
 }>()
 
 const fetchData = () => {
-  let url = '../api/traffic/' + props.proxy_name
+  let url = '../api/traffic/' + props.proxyName
   fetch(url, { credentials: 'include' })
     .then((res) => {
       return res.json()
     })
     .then((json) => {
-      DrawProxyTrafficChart(props.proxy_name, json.traffic_in, json.traffic_out)
+      DrawProxyTrafficChart(props.proxyName, json.trafficIn, json.trafficOut)
     })
     .catch((err) => {
       ElMessage({
diff --git a/web/frps/src/utils/chart.ts b/web/frps/src/utils/chart.ts
index 3d7bbbd57e5..8ef557ca579 100644
--- a/web/frps/src/utils/chart.ts
+++ b/web/frps/src/utils/chart.ts
@@ -121,71 +121,71 @@ function DrawProxyChart(elementId: string, serverInfo: any) {
   }
 
   if (
-    serverInfo.proxy_type_count.tcp != null &&
-    serverInfo.proxy_type_count.tcp != 0
+    serverInfo.proxyTypeCount.tcp != null &&
+    serverInfo.proxyTypeCount.tcp != 0
   ) {
     option.series[0].data.push({
-      value: serverInfo.proxy_type_count.tcp,
+      value: serverInfo.proxyTypeCount.tcp,
       name: 'TCP',
     })
     option.legend.data.push('TCP')
   }
   if (
-    serverInfo.proxy_type_count.udp != null &&
-    serverInfo.proxy_type_count.udp != 0
+    serverInfo.proxyTypeCount.udp != null &&
+    serverInfo.proxyTypeCount.udp != 0
   ) {
     option.series[0].data.push({
-      value: serverInfo.proxy_type_count.udp,
+      value: serverInfo.proxyTypeCount.udp,
       name: 'UDP',
     })
     option.legend.data.push('UDP')
   }
   if (
-    serverInfo.proxy_type_count.http != null &&
-    serverInfo.proxy_type_count.http != 0
+    serverInfo.proxyTypeCount.http != null &&
+    serverInfo.proxyTypeCount.http != 0
   ) {
     option.series[0].data.push({
-      value: serverInfo.proxy_type_count.http,
+      value: serverInfo.proxyTypeCount.http,
       name: 'HTTP',
     })
     option.legend.data.push('HTTP')
   }
   if (
-    serverInfo.proxy_type_count.https != null &&
-    serverInfo.proxy_type_count.https != 0
+    serverInfo.proxyTypeCount.https != null &&
+    serverInfo.proxyTypeCount.https != 0
   ) {
     option.series[0].data.push({
-      value: serverInfo.proxy_type_count.https,
+      value: serverInfo.proxyTypeCount.https,
       name: 'HTTPS',
     })
     option.legend.data.push('HTTPS')
   }
   if (
-    serverInfo.proxy_type_count.stcp != null &&
-    serverInfo.proxy_type_count.stcp != 0
+    serverInfo.proxyTypeCount.stcp != null &&
+    serverInfo.proxyTypeCount.stcp != 0
   ) {
     option.series[0].data.push({
-      value: serverInfo.proxy_type_count.stcp,
+      value: serverInfo.proxyTypeCount.stcp,
       name: 'STCP',
     })
     option.legend.data.push('STCP')
   }
   if (
-    serverInfo.proxy_type_count.sudp != null &&
-    serverInfo.proxy_type_count.sudp != 0
+    serverInfo.proxyTypeCount.sudp != null &&
+    serverInfo.proxyTypeCount.sudp != 0
   ) {
     option.series[0].data.push({
-      value: serverInfo.proxy_type_count.sudp,
+      value: serverInfo.proxyTypeCount.sudp,
       name: 'SUDP',
     })
     option.legend.data.push('SUDP')
   }
   if (
-    serverInfo.proxy_type_count.xtcp != null &&
-    serverInfo.proxy_type_count.xtcp != 0
+    serverInfo.proxyTypeCount.xtcp != null &&
+    serverInfo.proxyTypeCount.xtcp != 0
   ) {
     option.series[0].data.push({
-      value: serverInfo.proxy_type_count.xtcp,
+      value: serverInfo.proxyTypeCount.xtcp,
       name: 'XTCP',
     })
     option.legend.data.push('XTCP')
diff --git a/web/frps/src/utils/proxy.ts b/web/frps/src/utils/proxy.ts
index a675eea2223..384680dc81b 100644
--- a/web/frps/src/utils/proxy.ts
+++ b/web/frps/src/utils/proxy.ts
@@ -4,42 +4,43 @@ class BaseProxy {
   encryption: boolean
   compression: boolean
   conns: number
-  traffic_in: number
-  traffic_out: number
-  last_start_time: string
-  last_close_time: string
+  trafficIn: number
+  trafficOut: number
+  lastStartTime: string
+  lastCloseTime: string
   status: string
-  client_version: string
+  clientVersion: string
   addr: string
   port: number
 
-  custom_domains: string
-  host_header_rewrite: string
+  customDomains: string
+  hostHeaderRewrite: string
   locations: string
   subdomain: string
 
   constructor(proxyStats: any) {
     this.name = proxyStats.name
     this.type = ''
-    if (proxyStats.conf != null) {
-      this.encryption = proxyStats.conf.use_encryption
-      this.compression = proxyStats.conf.use_compression
-    } else {
-      this.encryption = false
-      this.compression = false
+    this.encryption = false
+    this.compression = false
+    if (proxyStats.conf != null && proxyStats.conf.useEncryption != null) {
+      this.encryption = proxyStats.conf.useEncryption
     }
-    this.conns = proxyStats.cur_conns
-    this.traffic_in = proxyStats.today_traffic_in
-    this.traffic_out = proxyStats.today_traffic_out
-    this.last_start_time = proxyStats.last_start_time
-    this.last_close_time = proxyStats.last_close_time
+    if (proxyStats.conf != null && proxyStats.conf.useCompression != null) {
+      this.compression = proxyStats.conf.useCompression
+    } 
+    this.conns = proxyStats.curConns
+    this.trafficIn = proxyStats.todayTrafficIn
+    this.trafficOut = proxyStats.todayTrafficOut
+    this.lastStartTime = proxyStats.lastStartTime
+    this.lastCloseTime = proxyStats.lastCloseTime
     this.status = proxyStats.status
-    this.client_version = proxyStats.client_version
+    this.clientVersion = proxyStats.clientVersion
 
     this.addr = ''
     this.port = 0
-    this.custom_domains = ''
-    this.host_header_rewrite = ''
+    this.customDomains = ''
+    this.hostHeaderRewrite = ''
     this.locations = ''
     this.subdomain = ''
   }
@@ -50,8 +51,8 @@ class TCPProxy extends BaseProxy {
     super(proxyStats)
     this.type = 'tcp'
     if (proxyStats.conf != null) {
-      this.addr = ':' + proxyStats.conf.remote_port
-      this.port = proxyStats.conf.remote_port
+      this.addr = ':' + proxyStats.conf.remotePort
+      this.port = proxyStats.conf.remotePort
     } else {
       this.addr = ''
       this.port = 0
@@ -64,8 +65,8 @@ class UDPProxy extends BaseProxy {
     super(proxyStats)
     this.type = 'udp'
     if (proxyStats.conf != null) {
-      this.addr = ':' + proxyStats.conf.remote_port
-      this.port = proxyStats.conf.remote_port
+      this.addr = ':' + proxyStats.conf.remotePort
+      this.port = proxyStats.conf.remotePort
     } else {
       this.addr = ''
       this.port = 0
@@ -74,43 +75,35 @@ class UDPProxy extends BaseProxy {
 }
 
 class HTTPProxy extends BaseProxy {
-  constructor(proxyStats: any, port: number, subdomain_host: string) {
+  constructor(proxyStats: any, port: number, subdomainHost: string) {
     super(proxyStats)
     this.type = 'http'
     this.port = port
     if (proxyStats.conf != null) {
-      this.custom_domains = proxyStats.conf.custom_domains
-      this.host_header_rewrite = proxyStats.conf.host_header_rewrite
-      this.locations = proxyStats.conf.locations
-      if (proxyStats.conf.subdomain != '') {
-        this.subdomain = proxyStats.conf.subdomain + '.' + subdomain_host
-      } else {
-        this.subdomain = ''
+      if (proxyStats.conf.customDomains != null) {
+        this.customDomains = proxyStats.conf.customDomains
       }
-    } else {
-      this.custom_domains = ''
-      this.host_header_rewrite = ''
-      this.subdomain = ''
-      this.locations = ''
+      this.hostHeaderRewrite = proxyStats.conf.hostHeaderRewrite
+      this.locations = proxyStats.conf.locations
+      if (proxyStats.conf.subdomain != null && proxyStats.conf.subdomain != '') {
+        this.subdomain = proxyStats.conf.subdomain + '.' + subdomainHost
+      } 
     }
   }
 }
 
 class HTTPSProxy extends BaseProxy {
-  constructor(proxyStats: any, port: number, subdomain_host: string) {
+  constructor(proxyStats: any, port: number, subdomainHost: string) {
     super(proxyStats)
     this.type = 'https'
     this.port = port
     if (proxyStats.conf != null) {
-      this.custom_domains = proxyStats.conf.custom_domains
-      if (proxyStats.conf.subdomain != '') {
-        this.subdomain = proxyStats.conf.subdomain + '.' + subdomain_host
-      } else {
-        this.subdomain = ''
+      if (proxyStats.conf.customDomains != null) {
+        this.customDomains = proxyStats.conf.customDomains
+      }
+      if (proxyStats.conf.subdomain != null && proxyStats.conf.subdomain != '') {
+        this.subdomain = proxyStats.conf.subdomain + '.' + subdomainHost
       }
-    } else {
-      this.custom_domains = ''
-      this.subdomain = ''
     }
   }
 }


Test patch: