Repository: fatedier/frp (language: go)

Issue:
No tcpmux connections are shown in Web UI
### Bug Description

As a DevOps engineer I want to see the tcpmux connected instances in separate UI panel. Right now I can see only HTTP ones:

<img width="1792" alt="Screenshot 2024-04-10 at 20 34 02" src="https://github.com/fatedier/frp/assets/2912732/d73c98e4-832d-4729-be77-46cb4f6f2fd2">

It proves that the client is connected and connection is persistent.

The TCP section is empty.

<img width="1792" alt="Screenshot 2024-04-10 at 20 33 56" src="https://github.com/fatedier/frp/assets/2912732/8bb589a9-e35c-4900-8991-9c7cfbdaa425">


### frpc Version

v0.56.0

### frps Version

v0.56.0

### System Architecture

linux/arm64

### Configurations

frpc.ini

```
serverAddr = "**.**.**.**"
serverPort = 7000

[[proxies]]
name = "ssh-edge031"
type = "tcpmux"
multiplexer = "httpconnect"
customDomains = ["edge-031"]
localIP = "127.0.0.1"
localPort = 22
```


### Logs

_No response_

### Steps to reproduce

_No response_

### Affected area

- [ ] Docs
- [ ] Installation
- [ ] Performance and Scalability
- [ ] Security
- [X] User Experience
- [ ] Test and Release
- [ ] Developer Infrastructure
- [ ] Client Plugin
- [ ] Server Plugin
- [ ] Extensions
- [ ] Others


Discussion / hints:

Fix patch:
diff --git a/Release.md b/Release.md
index 5de41f2fe0b..725ebe9457a 100644
--- a/Release.md
+++ b/Release.md
@@ -1,3 +1,7 @@
+### Features
+
+* Show tcpmux proxies on the frps dashboard.
+
 ### Fixes
 
 * When an HTTP proxy request times out, it returns 504 instead of 404 now.
diff --git a/assets/frps/static/index-Q42Pu2_S.js b/assets/frps/static/index-82-40HIG.js
similarity index 91%
rename from assets/frps/static/index-Q42Pu2_S.js
rename to assets/frps/static/index-82-40HIG.js
index 45293e05cfd..3d8e3c08da8 100644
--- a/assets/frps/static/index-Q42Pu2_S.js
+++ b/assets/frps/static/index-82-40HIG.js
@@ -1,20 +1,20 @@
-var DD=Object.defineProperty;var ID=(e,t,r)=>t in e?DD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var OD=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var zt=(e,t,r)=>(ID(e,typeof t!="symbol"?t+"":t,r),r);var Ite=OD(($r,Hr)=>{(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)}})();/**
+var DD=Object.defineProperty;var ID=(e,t,r)=>t in e?DD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var OD=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var It=(e,t,r)=>(ID(e,typeof t!="symbol"?t+"":t,r),r);var Bte=OD(($r,Hr)=>{(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)}})();/**
 * @vue/shared v3.4.15
 * (c) 2018-present Yuxi (Evan) You and Vue contributors
 * @license MIT
-**/function Wm(e,t){const r=new Set(e.split(","));return t?n=>r.has(n.toLowerCase()):n=>r.has(n)}const St={},ns=[],Bt=()=>{},RD=()=>!1,Wd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Gm=e=>e.startsWith("onUpdate:"),$t=Object.assign,Um=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},kD=Object.prototype.hasOwnProperty,Ue=(e,t)=>kD.call(e,t),_e=Array.isArray,is=e=>Wu(e)==="[object Map]",Gd=e=>Wu(e)==="[object Set]",l_=e=>Wu(e)==="[object Date]",De=e=>typeof e=="function",ze=e=>typeof e=="string",oa=e=>typeof e=="symbol",qe=e=>e!==null&&typeof e=="object",Qc=e=>(qe(e)||De(e))&&De(e.then)&&De(e.catch),EC=Object.prototype.toString,Wu=e=>EC.call(e),ND=e=>Wu(e).slice(8,-1),LC=e=>Wu(e)==="[object Object]",Ym=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sc=Wm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ud=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},BD=/-(\w)/g,Pn=Ud(e=>e.replace(BD,(t,r)=>r?r.toUpperCase():"")),FD=/\B([A-Z])/g,xo=Ud(e=>e.replace(FD,"-$1").toLowerCase()),Yd=Ud(e=>e.charAt(0).toUpperCase()+e.slice(1)),xc=Ud(e=>e?`on${Yd(e)}`:""),sa=(e,t)=>!Object.is(e,t),Cc=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Jc=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},$D=e=>{const t=parseFloat(e);return isNaN(t)?e:t},HD=e=>{const t=ze(e)?Number(e):NaN;return isNaN(t)?e:t};let u_;const DC=()=>u_||(u_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ct(e){if(_e(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=ze(n)?GD(n):ct(n);if(i)for(const a in i)t[a]=i[a]}return t}else if(ze(e)||qe(e))return e}const zD=/;(?![^(]*\))/g,VD=/:([^]+)/,WD=/\/\*[^]*?\*\//g;function GD(e){const t={};return e.replace(WD,"").split(zD).forEach(r=>{if(r){const n=r.split(VD);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function re(e){let t="";if(ze(e))t=e;else if(_e(e))for(let r=0;r<e.length;r++){const n=re(e[r]);n&&(t+=n+" ")}else if(qe(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const UD="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",YD=Wm(UD);function IC(e){return!!e||e===""}function jD(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=jd(e[n],t[n]);return r}function jd(e,t){if(e===t)return!0;let r=l_(e),n=l_(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=oa(e),n=oa(t),r||n)return e===t;if(r=_e(e),n=_e(t),r||n)return r&&n?jD(e,t):!1;if(r=qe(e),n=qe(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||!jd(e[o],t[o]))return!1}}return String(e)===String(t)}function OC(e,t){return e.findIndex(r=>jd(r,t))}const be=e=>ze(e)?e:e==null?"":_e(e)||qe(e)&&(e.toString===EC||!De(e.toString))?JSON.stringify(e,RC,2):String(e),RC=(e,t)=>t&&t.__v_isRef?RC(e,t.value):is(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[Wh(n,a)+" =>"]=i,r),{})}:Gd(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Wh(r))}:oa(t)?Wh(t):qe(t)&&!_e(t)&&!LC(t)?String(t):t,Wh=(e,t="")=>{var r;return oa(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
+**/function Wm(e,t){const r=new Set(e.split(","));return t?n=>r.has(n.toLowerCase()):n=>r.has(n)}const St={},as=[],Ft=()=>{},RD=()=>!1,Wd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Gm=e=>e.startsWith("onUpdate:"),Ht=Object.assign,Um=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},kD=Object.prototype.hasOwnProperty,Ue=(e,t)=>kD.call(e,t),_e=Array.isArray,os=e=>Wu(e)==="[object Map]",Gd=e=>Wu(e)==="[object Set]",l_=e=>Wu(e)==="[object Date]",De=e=>typeof e=="function",ze=e=>typeof e=="string",oa=e=>typeof e=="symbol",qe=e=>e!==null&&typeof e=="object",Qc=e=>(qe(e)||De(e))&&De(e.then)&&De(e.catch),EC=Object.prototype.toString,Wu=e=>EC.call(e),ND=e=>Wu(e).slice(8,-1),LC=e=>Wu(e)==="[object Object]",Ym=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sc=Wm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ud=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},BD=/-(\w)/g,Pn=Ud(e=>e.replace(BD,(t,r)=>r?r.toUpperCase():"")),FD=/\B([A-Z])/g,xo=Ud(e=>e.replace(FD,"-$1").toLowerCase()),Yd=Ud(e=>e.charAt(0).toUpperCase()+e.slice(1)),xc=Ud(e=>e?`on${Yd(e)}`:""),sa=(e,t)=>!Object.is(e,t),Cc=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Jc=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},$D=e=>{const t=parseFloat(e);return isNaN(t)?e:t},HD=e=>{const t=ze(e)?Number(e):NaN;return isNaN(t)?e:t};let u_;const DC=()=>u_||(u_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ct(e){if(_e(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=ze(n)?GD(n):ct(n);if(i)for(const a in i)t[a]=i[a]}return t}else if(ze(e)||qe(e))return e}const zD=/;(?![^(]*\))/g,VD=/:([^]+)/,WD=/\/\*[^]*?\*\//g;function GD(e){const t={};return e.replace(WD,"").split(zD).forEach(r=>{if(r){const n=r.split(VD);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function re(e){let t="";if(ze(e))t=e;else if(_e(e))for(let r=0;r<e.length;r++){const n=re(e[r]);n&&(t+=n+" ")}else if(qe(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const UD="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",YD=Wm(UD);function IC(e){return!!e||e===""}function jD(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=jd(e[n],t[n]);return r}function jd(e,t){if(e===t)return!0;let r=l_(e),n=l_(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=oa(e),n=oa(t),r||n)return e===t;if(r=_e(e),n=_e(t),r||n)return r&&n?jD(e,t):!1;if(r=qe(e),n=qe(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||!jd(e[o],t[o]))return!1}}return String(e)===String(t)}function OC(e,t){return e.findIndex(r=>jd(r,t))}const xe=e=>ze(e)?e:e==null?"":_e(e)||qe(e)&&(e.toString===EC||!De(e.toString))?JSON.stringify(e,RC,2):String(e),RC=(e,t)=>t&&t.__v_isRef?RC(e,t.value):os(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[Wh(n,a)+" =>"]=i,r),{})}:Gd(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Wh(r))}:oa(t)?Wh(t):qe(t)&&!_e(t)&&!LC(t)?String(t):t,Wh=(e,t="")=>{var r;return oa(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
 * @vue/reactivity v3.4.15
 * (c) 2018-present Yuxi (Evan) You and Vue contributors
 * @license MIT
-**/let Nr;class qD{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Nr,!t&&Nr&&(this.index=(Nr.scopes||(Nr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Nr;try{return Nr=this,t()}finally{Nr=r}}}on(){Nr=this}off(){Nr=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 KD(e,t=Nr){t&&t.active&&t.effects.push(e)}function kC(){return Nr}function NC(e){Nr&&Nr.cleanups.push(e)}let io;class jm{constructor(t,r,n,i){this.fn=t,this.trigger=r,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,KD(this,i)}get dirty(){if(this._dirtyLevel===1){Co();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(XD(r.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),To()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ta,r=io;try{return ta=!0,io=this,this._runnings++,f_(this),this.fn()}finally{c_(this),this._runnings--,io=r,ta=t}}stop(){var t;this.active&&(f_(this),c_(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function XD(e){return e.value}function f_(e){e._trackId++,e._depsLength=0}function c_(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)BC(e.deps[t],e);e.deps.length=e._depsLength}}function BC(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let ta=!0,Np=0;const FC=[];function Co(){FC.push(ta),ta=!1}function To(){const e=FC.pop();ta=e===void 0?!0:e}function qm(){Np++}function Km(){for(Np--;!Np&&Bp.length;)Bp.shift()()}function $C(e,t,r){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&BC(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Bp=[];function HC(e,t,r){qm();for(const n of e.keys())if(n._dirtyLevel<t&&e.get(n)===n._trackId){const i=n._dirtyLevel;n._dirtyLevel=t,i===0&&(n._shouldSchedule=!0,n.trigger())}zC(e),Km()}function zC(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Bp.push(t.scheduler))}const VC=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},ed=new WeakMap,ao=Symbol(""),Fp=Symbol("");function Lr(e,t,r){if(ta&&io){let n=ed.get(e);n||ed.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=VC(()=>n.delete(r))),$C(io,i)}}function mi(e,t,r,n,i,a){const o=ed.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&_e(e)){const l=Number(n);o.forEach((u,f)=>{(f==="length"||!oa(f)&&f>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":_e(e)?Ym(r)&&s.push(o.get("length")):(s.push(o.get(ao)),is(e)&&s.push(o.get(Fp)));break;case"delete":_e(e)||(s.push(o.get(ao)),is(e)&&s.push(o.get(Fp)));break;case"set":is(e)&&s.push(o.get(ao));break}qm();for(const l of s)l&&HC(l,2);Km()}function ZD(e,t){var r;return(r=ed.get(e))==null?void 0:r.get(t)}const QD=Wm("__proto__,__v_isRef,__isVue"),WC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(oa)),d_=JD();function JD(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Qe(this);for(let a=0,o=this.length;a<o;a++)Lr(n,"get",a+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(Qe)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Co(),qm();const n=Qe(this)[t].apply(this,r);return Km(),To(),n}}),e}function eI(e){const t=Qe(this);return Lr(t,"has",e),t.hasOwnProperty(e)}class GC{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,n){const i=this._isReadonly,a=this._shallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?hI:qC:a?jC:YC).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=_e(t);if(!i){if(o&&Ue(d_,r))return Reflect.get(d_,r,n);if(r==="hasOwnProperty")return eI}const s=Reflect.get(t,r,n);return(oa(r)?WC.has(r):QD(r))||(i||Lr(t,"get",r),a)?s:Pt(s)?o&&Ym(r)?s:s.value:qe(s)?i?Gu(s):Ln(s):s}}class UC extends GC{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._shallow){const l=hs(a);if(!td(n)&&!hs(n)&&(a=Qe(a),n=Qe(n)),!_e(t)&&Pt(a)&&!Pt(n))return l?!1:(a.value=n,!0)}const o=_e(t)&&Ym(r)?Number(r)<t.length:Ue(t,r),s=Reflect.set(t,r,n,i);return t===Qe(i)&&(o?sa(n,a)&&mi(t,"set",r,n):mi(t,"add",r,n)),s}deleteProperty(t,r){const n=Ue(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&mi(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!oa(r)||!WC.has(r))&&Lr(t,"has",r),n}ownKeys(t){return Lr(t,"iterate",_e(t)?"length":ao),Reflect.ownKeys(t)}}class tI extends GC{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const rI=new UC,nI=new tI,iI=new UC(!0),Xm=e=>e,qd=e=>Reflect.getPrototypeOf(e);function vf(e,t,r=!1,n=!1){e=e.__v_raw;const i=Qe(e),a=Qe(t);r||(sa(t,a)&&Lr(i,"get",t),Lr(i,"get",a));const{has:o}=qd(i),s=n?Xm:r?ey:su;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 pf(e,t=!1){const r=this.__v_raw,n=Qe(r),i=Qe(e);return t||(sa(e,i)&&Lr(n,"has",e),Lr(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function gf(e,t=!1){return e=e.__v_raw,!t&&Lr(Qe(e),"iterate",ao),Reflect.get(e,"size",e)}function h_(e){e=Qe(e);const t=Qe(this);return qd(t).has.call(t,e)||(t.add(e),mi(t,"add",e,e)),this}function v_(e,t){t=Qe(t);const r=Qe(this),{has:n,get:i}=qd(r);let a=n.call(r,e);a||(e=Qe(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?sa(t,o)&&mi(r,"set",e,t):mi(r,"add",e,t),this}function p_(e){const t=Qe(this),{has:r,get:n}=qd(t);let i=r.call(t,e);i||(e=Qe(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&mi(t,"delete",e,void 0),a}function g_(){const e=Qe(this),t=e.size!==0,r=e.clear();return t&&mi(e,"clear",void 0,void 0),r}function mf(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Qe(o),l=t?Xm:e?ey:su;return!e&&Lr(s,"iterate",ao),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function yf(e,t,r){return function(...n){const i=this.__v_raw,a=Qe(i),o=is(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?Xm:t?ey:su;return!t&&Lr(a,"iterate",l?Fp:ao),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function Di(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aI(){const e={get(a){return vf(this,a)},get size(){return gf(this)},has:pf,add:h_,set:v_,delete:p_,clear:g_,forEach:mf(!1,!1)},t={get(a){return vf(this,a,!1,!0)},get size(){return gf(this)},has:pf,add:h_,set:v_,delete:p_,clear:g_,forEach:mf(!1,!0)},r={get(a){return vf(this,a,!0)},get size(){return gf(this,!0)},has(a){return pf.call(this,a,!0)},add:Di("add"),set:Di("set"),delete:Di("delete"),clear:Di("clear"),forEach:mf(!0,!1)},n={get(a){return vf(this,a,!0,!0)},get size(){return gf(this,!0)},has(a){return pf.call(this,a,!0)},add:Di("add"),set:Di("set"),delete:Di("delete"),clear:Di("clear"),forEach:mf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=yf(a,!1,!1),r[a]=yf(a,!0,!1),t[a]=yf(a,!1,!0),n[a]=yf(a,!0,!0)}),[e,r,t,n]}const[oI,sI,lI,uI]=aI();function Zm(e,t){const r=t?e?uI:lI:e?sI:oI;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Ue(r,i)&&i in n?r:n,i,a)}const fI={get:Zm(!1,!1)},cI={get:Zm(!1,!0)},dI={get:Zm(!0,!1)},YC=new WeakMap,jC=new WeakMap,qC=new WeakMap,hI=new WeakMap;function vI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pI(e){return e.__v_skip||!Object.isExtensible(e)?0:vI(ND(e))}function Ln(e){return hs(e)?e:Jm(e,!1,rI,fI,YC)}function Qm(e){return Jm(e,!1,iI,cI,jC)}function Gu(e){return Jm(e,!0,nI,dI,qC)}function Jm(e,t,r,n,i){if(!qe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=pI(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 hs(e)?as(e.__v_raw):!!(e&&e.__v_isReactive)}function hs(e){return!!(e&&e.__v_isReadonly)}function td(e){return!!(e&&e.__v_isShallow)}function KC(e){return as(e)||hs(e)}function Qe(e){const t=e&&e.__v_raw;return t?Qe(t):e}function XC(e){return Jc(e,"__v_skip",!0),e}const su=e=>qe(e)?Ln(e):e,ey=e=>qe(e)?Gu(e):e;class ZC{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new jm(()=>t(this._value),()=>Tc(this,1),()=>this.dep&&zC(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Qe(this);return(!t._cacheable||t.effect.dirty)&&sa(t._value,t._value=t.effect.run())&&Tc(t,2),JC(t),t.effect._dirtyLevel>=1&&Tc(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function QC(e,t,r=!1){let n,i;const a=De(e);return a?(n=e,i=Bt):(n=e.get,i=e.set),new ZC(n,i,a||!i,r)}function JC(e){ta&&io&&(e=Qe(e),$C(io,e.dep||(e.dep=VC(()=>e.dep=void 0,e instanceof ZC?e:void 0))))}function Tc(e,t=2,r){e=Qe(e);const n=e.dep;n&&HC(n,t)}function Pt(e){return!!(e&&e.__v_isRef===!0)}function $(e){return eT(e,!1)}function ty(e){return eT(e,!0)}function eT(e,t){return Pt(e)?e:new gI(e,t)}class gI{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Qe(t),this._value=r?t:su(t)}get value(){return JC(this),this._value}set value(t){const r=this.__v_isShallow||td(t)||hs(t);t=r?t:Qe(t),sa(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:su(t),Tc(this,2))}}function T(e){return Pt(e)?e.value:e}const mI={get:(e,t,r)=>T(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Pt(i)&&!Pt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function tT(e){return as(e)?e:new Proxy(e,mI)}function Kd(e){const t=_e(e)?new Array(e.length):{};for(const r in e)t[r]=rT(e,r);return t}class yI{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 ZD(Qe(this._object),this._key)}}class _I{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function wn(e,t,r){return Pt(e)?e:De(e)?new _I(e):qe(e)&&arguments.length>1?rT(e,t,r):$(e)}function rT(e,t,r){const n=e[t];return Pt(n)?n:new yI(e,t,r)}/**
+**/let Nr;class qD{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Nr,!t&&Nr&&(this.index=(Nr.scopes||(Nr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Nr;try{return Nr=this,t()}finally{Nr=r}}}on(){Nr=this}off(){Nr=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 KD(e,t=Nr){t&&t.active&&t.effects.push(e)}function kC(){return Nr}function NC(e){Nr&&Nr.cleanups.push(e)}let io;class jm{constructor(t,r,n,i){this.fn=t,this.trigger=r,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,KD(this,i)}get dirty(){if(this._dirtyLevel===1){Co();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(XD(r.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),To()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ta,r=io;try{return ta=!0,io=this,this._runnings++,f_(this),this.fn()}finally{c_(this),this._runnings--,io=r,ta=t}}stop(){var t;this.active&&(f_(this),c_(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function XD(e){return e.value}function f_(e){e._trackId++,e._depsLength=0}function c_(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)BC(e.deps[t],e);e.deps.length=e._depsLength}}function BC(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let ta=!0,Np=0;const FC=[];function Co(){FC.push(ta),ta=!1}function To(){const e=FC.pop();ta=e===void 0?!0:e}function qm(){Np++}function Km(){for(Np--;!Np&&Bp.length;)Bp.shift()()}function $C(e,t,r){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&BC(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Bp=[];function HC(e,t,r){qm();for(const n of e.keys())if(n._dirtyLevel<t&&e.get(n)===n._trackId){const i=n._dirtyLevel;n._dirtyLevel=t,i===0&&(n._shouldSchedule=!0,n.trigger())}zC(e),Km()}function zC(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Bp.push(t.scheduler))}const VC=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},ed=new WeakMap,ao=Symbol(""),Fp=Symbol("");function Lr(e,t,r){if(ta&&io){let n=ed.get(e);n||ed.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=VC(()=>n.delete(r))),$C(io,i)}}function mi(e,t,r,n,i,a){const o=ed.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&_e(e)){const l=Number(n);o.forEach((u,f)=>{(f==="length"||!oa(f)&&f>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":_e(e)?Ym(r)&&s.push(o.get("length")):(s.push(o.get(ao)),os(e)&&s.push(o.get(Fp)));break;case"delete":_e(e)||(s.push(o.get(ao)),os(e)&&s.push(o.get(Fp)));break;case"set":os(e)&&s.push(o.get(ao));break}qm();for(const l of s)l&&HC(l,2);Km()}function ZD(e,t){var r;return(r=ed.get(e))==null?void 0:r.get(t)}const QD=Wm("__proto__,__v_isRef,__isVue"),WC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(oa)),d_=JD();function JD(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Qe(this);for(let a=0,o=this.length;a<o;a++)Lr(n,"get",a+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(Qe)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Co(),qm();const n=Qe(this)[t].apply(this,r);return Km(),To(),n}}),e}function eI(e){const t=Qe(this);return Lr(t,"has",e),t.hasOwnProperty(e)}class GC{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,n){const i=this._isReadonly,a=this._shallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?hI:qC:a?jC:YC).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=_e(t);if(!i){if(o&&Ue(d_,r))return Reflect.get(d_,r,n);if(r==="hasOwnProperty")return eI}const s=Reflect.get(t,r,n);return(oa(r)?WC.has(r):QD(r))||(i||Lr(t,"get",r),a)?s:Pt(s)?o&&Ym(r)?s:s.value:qe(s)?i?Gu(s):Ln(s):s}}class UC extends GC{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._shallow){const l=ps(a);if(!td(n)&&!ps(n)&&(a=Qe(a),n=Qe(n)),!_e(t)&&Pt(a)&&!Pt(n))return l?!1:(a.value=n,!0)}const o=_e(t)&&Ym(r)?Number(r)<t.length:Ue(t,r),s=Reflect.set(t,r,n,i);return t===Qe(i)&&(o?sa(n,a)&&mi(t,"set",r,n):mi(t,"add",r,n)),s}deleteProperty(t,r){const n=Ue(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&mi(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!oa(r)||!WC.has(r))&&Lr(t,"has",r),n}ownKeys(t){return Lr(t,"iterate",_e(t)?"length":ao),Reflect.ownKeys(t)}}class tI extends GC{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const rI=new UC,nI=new tI,iI=new UC(!0),Xm=e=>e,qd=e=>Reflect.getPrototypeOf(e);function vf(e,t,r=!1,n=!1){e=e.__v_raw;const i=Qe(e),a=Qe(t);r||(sa(t,a)&&Lr(i,"get",t),Lr(i,"get",a));const{has:o}=qd(i),s=n?Xm:r?ey:su;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 pf(e,t=!1){const r=this.__v_raw,n=Qe(r),i=Qe(e);return t||(sa(e,i)&&Lr(n,"has",e),Lr(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function gf(e,t=!1){return e=e.__v_raw,!t&&Lr(Qe(e),"iterate",ao),Reflect.get(e,"size",e)}function h_(e){e=Qe(e);const t=Qe(this);return qd(t).has.call(t,e)||(t.add(e),mi(t,"add",e,e)),this}function v_(e,t){t=Qe(t);const r=Qe(this),{has:n,get:i}=qd(r);let a=n.call(r,e);a||(e=Qe(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?sa(t,o)&&mi(r,"set",e,t):mi(r,"add",e,t),this}function p_(e){const t=Qe(this),{has:r,get:n}=qd(t);let i=r.call(t,e);i||(e=Qe(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&mi(t,"delete",e,void 0),a}function g_(){const e=Qe(this),t=e.size!==0,r=e.clear();return t&&mi(e,"clear",void 0,void 0),r}function mf(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Qe(o),l=t?Xm:e?ey:su;return!e&&Lr(s,"iterate",ao),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function yf(e,t,r){return function(...n){const i=this.__v_raw,a=Qe(i),o=os(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?Xm:t?ey:su;return!t&&Lr(a,"iterate",l?Fp:ao),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function Di(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aI(){const e={get(a){return vf(this,a)},get size(){return gf(this)},has:pf,add:h_,set:v_,delete:p_,clear:g_,forEach:mf(!1,!1)},t={get(a){return vf(this,a,!1,!0)},get size(){return gf(this)},has:pf,add:h_,set:v_,delete:p_,clear:g_,forEach:mf(!1,!0)},r={get(a){return vf(this,a,!0)},get size(){return gf(this,!0)},has(a){return pf.call(this,a,!0)},add:Di("add"),set:Di("set"),delete:Di("delete"),clear:Di("clear"),forEach:mf(!0,!1)},n={get(a){return vf(this,a,!0,!0)},get size(){return gf(this,!0)},has(a){return pf.call(this,a,!0)},add:Di("add"),set:Di("set"),delete:Di("delete"),clear:Di("clear"),forEach:mf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=yf(a,!1,!1),r[a]=yf(a,!0,!1),t[a]=yf(a,!1,!0),n[a]=yf(a,!0,!0)}),[e,r,t,n]}const[oI,sI,lI,uI]=aI();function Zm(e,t){const r=t?e?uI:lI:e?sI:oI;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Ue(r,i)&&i in n?r:n,i,a)}const fI={get:Zm(!1,!1)},cI={get:Zm(!1,!0)},dI={get:Zm(!0,!1)},YC=new WeakMap,jC=new WeakMap,qC=new WeakMap,hI=new WeakMap;function vI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pI(e){return e.__v_skip||!Object.isExtensible(e)?0:vI(ND(e))}function Ln(e){return ps(e)?e:Jm(e,!1,rI,fI,YC)}function Qm(e){return Jm(e,!1,iI,cI,jC)}function Gu(e){return Jm(e,!0,nI,dI,qC)}function Jm(e,t,r,n,i){if(!qe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=pI(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function ss(e){return ps(e)?ss(e.__v_raw):!!(e&&e.__v_isReactive)}function ps(e){return!!(e&&e.__v_isReadonly)}function td(e){return!!(e&&e.__v_isShallow)}function KC(e){return ss(e)||ps(e)}function Qe(e){const t=e&&e.__v_raw;return t?Qe(t):e}function XC(e){return Jc(e,"__v_skip",!0),e}const su=e=>qe(e)?Ln(e):e,ey=e=>qe(e)?Gu(e):e;class ZC{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new jm(()=>t(this._value),()=>Tc(this,1),()=>this.dep&&zC(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Qe(this);return(!t._cacheable||t.effect.dirty)&&sa(t._value,t._value=t.effect.run())&&Tc(t,2),JC(t),t.effect._dirtyLevel>=1&&Tc(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function QC(e,t,r=!1){let n,i;const a=De(e);return a?(n=e,i=Ft):(n=e.get,i=e.set),new ZC(n,i,a||!i,r)}function JC(e){ta&&io&&(e=Qe(e),$C(io,e.dep||(e.dep=VC(()=>e.dep=void 0,e instanceof ZC?e:void 0))))}function Tc(e,t=2,r){e=Qe(e);const n=e.dep;n&&HC(n,t)}function Pt(e){return!!(e&&e.__v_isRef===!0)}function $(e){return eT(e,!1)}function ty(e){return eT(e,!0)}function eT(e,t){return Pt(e)?e:new gI(e,t)}class gI{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Qe(t),this._value=r?t:su(t)}get value(){return JC(this),this._value}set value(t){const r=this.__v_isShallow||td(t)||ps(t);t=r?t:Qe(t),sa(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:su(t),Tc(this,2))}}function T(e){return Pt(e)?e.value:e}const mI={get:(e,t,r)=>T(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Pt(i)&&!Pt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function tT(e){return ss(e)?e:new Proxy(e,mI)}function Kd(e){const t=_e(e)?new Array(e.length):{};for(const r in e)t[r]=rT(e,r);return t}class yI{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 ZD(Qe(this._object),this._key)}}class _I{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function wn(e,t,r){return Pt(e)?e:De(e)?new _I(e):qe(e)&&arguments.length>1?rT(e,t,r):$(e)}function rT(e,t,r){const n=e[t];return Pt(n)?n:new yI(e,t,r)}/**
 * @vue/runtime-core v3.4.15
 * (c) 2018-present Yuxi (Evan) You and Vue contributors
 * @license MIT
-**/function ra(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Xd(a,t,r)}return i}function sn(e,t,r,n){if(De(e)){const a=ra(e,t,r,n);return a&&Qc(a)&&a.catch(o=>{Xd(o,t,r)}),a}const i=[];for(let a=0;a<e.length;a++)i.push(sn(e[a],t,r,n));return i}function Xd(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,o,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){ra(l,null,10,[e,o,s]);return}}bI(e,r,i,n)}function bI(e,t,r,n=!0){console.error(e)}let lu=!1,$p=!1;const or=[];let zn=0;const os=[];let Yi=null,Ua=0;const nT=Promise.resolve();let ry=null;function kt(e){const t=ry||nT;return e?t.then(this?e.bind(this):e):t}function wI(e){let t=zn+1,r=or.length;for(;t<r;){const n=t+r>>>1,i=or[n],a=uu(i);a<e||a===e&&i.pre?t=n+1:r=n}return t}function ny(e){(!or.length||!or.includes(e,lu&&e.allowRecurse?zn+1:zn))&&(e.id==null?or.push(e):or.splice(wI(e.id),0,e),iT())}function iT(){!lu&&!$p&&($p=!0,ry=nT.then(oT))}function SI(e){const t=or.indexOf(e);t>zn&&or.splice(t,1)}function xI(e){_e(e)?os.push(...e):(!Yi||!Yi.includes(e,e.allowRecurse?Ua+1:Ua))&&os.push(e),iT()}function m_(e,t,r=lu?zn+1:0){for(;r<or.length;r++){const n=or[r];if(n&&n.pre){if(e&&n.id!==e.uid)continue;or.splice(r,1),r--,n()}}}function aT(e){if(os.length){const t=[...new Set(os)].sort((r,n)=>uu(r)-uu(n));if(os.length=0,Yi){Yi.push(...t);return}for(Yi=t,Ua=0;Ua<Yi.length;Ua++)Yi[Ua]();Yi=null,Ua=0}}const uu=e=>e.id==null?1/0:e.id,CI=(e,t)=>{const r=uu(e)-uu(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function oT(e){$p=!1,lu=!0,or.sort(CI);try{for(zn=0;zn<or.length;zn++){const t=or[zn];t&&t.active!==!1&&ra(t,null,14)}}finally{zn=0,or.length=0,aT(),lu=!1,ry=null,(or.length||os.length)&&oT()}}function TI(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||St;let i=r;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in n){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:h}=n[f]||St;h&&(i=r.map(d=>ze(d)?d.trim():d)),c&&(i=r.map($D))}let s,l=n[s=xc(t)]||n[s=xc(Pn(t))];!l&&a&&(l=n[s=xc(xo(t))]),l&&sn(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,sn(u,e,6,i)}}function sT(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 f=sT(u,t,!0);f&&(s=!0,$t(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(qe(e)&&n.set(e,null),null):(_e(a)?a.forEach(l=>o[l]=null):$t(o,a),qe(e)&&n.set(e,o),o)}function Zd(e,t){return!e||!Wd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ue(e,t[0].toLowerCase()+t.slice(1))||Ue(e,xo(t))||Ue(e,t))}let Wt=null,lT=null;function rd(e){const t=Wt;return Wt=e,lT=e&&e.type.__scopeId||null,t}function j(e,t=Wt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&D_(-1);const a=rd(t);let o;try{o=e(...i)}finally{rd(a),n._d&&D_(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Gh(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,data:h,setupState:d,ctx:v,inheritAttrs:p}=e;let m,g;const y=rd(e);try{if(r.shapeFlag&4){const b=i||n,x=b;m=Hn(f.call(x,b,c,a,d,h,v)),g=l}else{const b=t;m=Hn(b.length>1?b(a,{attrs:l,slots:s,emit:u}):b(a,null)),g=t.props?l:MI(l)}}catch(b){kl.length=0,Xd(b,e,1),m=Z(Mr)}let _=m;if(g&&p!==!1){const b=Object.keys(g),{shapeFlag:x}=_;b.length&&x&7&&(o&&b.some(Gm)&&(g=AI(g,o)),_=_i(_,g))}return r.dirs&&(_=_i(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),m=_,rd(y),m}const MI=e=>{let t;for(const r in e)(r==="class"||r==="style"||Wd(r))&&((t||(t={}))[r]=e[r]);return t},AI=(e,t)=>{const r={};for(const n in e)(!Gm(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function PI(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?y_(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;c<f.length;c++){const h=f[c];if(o[h]!==n[h]&&!Zd(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?y_(n,o,u):!0:!!o;return!1}function y_(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 EI({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const iy="components",LI="directives";function xr(e,t){return ay(iy,e,!0,t)||e}const uT=Symbol.for("v-ndc");function Vt(e){return ze(e)?ay(iy,e,!1)||e:e||uT}function fT(e){return ay(LI,e)}function ay(e,t,r=!0,n=!1){const i=Wt||Qt;if(i){const a=i.type;if(e===iy){const s=xO(a,!1);if(s&&(s===t||s===Pn(t)||s===Yd(Pn(t))))return a}const o=__(i[e]||a[e],t)||__(i.appContext[e],t);return!o&&n?a:o}}function __(e,t){return e&&(e[t]||e[Pn(t)]||e[Yd(Pn(t))])}const DI=e=>e.__isSuspense;function II(e,t){t&&t.pendingBranch?_e(e)?t.effects.push(...e):t.effects.push(e):xI(e)}const OI=Symbol.for("v-scx"),RI=()=>Le(OI);function na(e,t){return oy(e,null,t)}const _f={};function we(e,t,r){return oy(e,t,r)}function oy(e,t,{immediate:r,deep:n,flush:i,once:a,onTrack:o,onTrigger:s}=St){if(t&&a){const w=t;t=(...S)=>{w(...S),x()}}const l=Qt,u=w=>n===!0?w:Xa(w,n===!1?1:void 0);let f,c=!1,h=!1;if(Pt(e)?(f=()=>e.value,c=td(e)):as(e)?(f=()=>u(e),c=!0):_e(e)?(h=!0,c=e.some(w=>as(w)||td(w)),f=()=>e.map(w=>{if(Pt(w))return w.value;if(as(w))return u(w);if(De(w))return ra(w,l,2)})):De(e)?t?f=()=>ra(e,l,2):f=()=>(d&&d(),sn(e,l,3,[v])):f=Bt,t&&n){const w=f;f=()=>Xa(w())}let d,v=w=>{d=_.onStop=()=>{ra(w,l,4),d=_.onStop=void 0}},p;if(rh)if(v=Bt,t?r&&sn(t,l,3,[f(),h?[]:void 0,v]):f(),i==="sync"){const w=RI();p=w.__watcherHandles||(w.__watcherHandles=[])}else return Bt;let m=h?new Array(e.length).fill(_f):_f;const g=()=>{if(!(!_.active||!_.dirty))if(t){const w=_.run();(n||c||(h?w.some((S,C)=>sa(S,m[C])):sa(w,m)))&&(d&&d(),sn(t,l,3,[w,m===_f?void 0:h&&m[0]===_f?[]:m,v]),m=w)}else _.run()};g.allowRecurse=!!t;let y;i==="sync"?y=g:i==="post"?y=()=>Sr(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),y=()=>ny(g));const _=new jm(f,Bt,y),b=kC(),x=()=>{_.stop(),b&&Um(b.effects,_)};return t?r?g():m=_.run():i==="post"?Sr(_.run.bind(_),l&&l.suspense):_.run(),p&&p.push(x),x}function kI(e,t,r){const n=this.proxy,i=ze(e)?e.includes(".")?cT(n,e):()=>n[e]:e.bind(n,n);let a;De(t)?a=t:(a=t.handler,r=t);const o=Yu(this),s=oy(i,a.bind(n),r);return o(),s}function cT(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,r=0,n){if(!qe(e)||e.__v_skip)return e;if(t&&t>0){if(r>=t)return e;r++}if(n=n||new Set,n.has(e))return e;if(n.add(e),Pt(e))Xa(e.value,t,r,n);else if(_e(e))for(let i=0;i<e.length;i++)Xa(e[i],t,r,n);else if(Gd(e)||is(e))e.forEach(i=>{Xa(i,t,r,n)});else if(LC(e))for(const i in e)Xa(e[i],t,r,n);return e}function qt(e,t){if(Wt===null)return e;const r=nh(Wt)||Wt.proxy,n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,o,s,l=St]=t[i];a&&(De(a)&&(a={mounted:a,updated:a}),a.deep&&Xa(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function ma(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&&(Co(),sn(l,r,8,[e.el,s,e,t]),To())}}const ji=Symbol("_leaveCb"),bf=Symbol("_enterCb");function dT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return _t(()=>{e.isMounted=!0}),tr(()=>{e.isUnmounting=!0}),e}const jr=[Function,Array],hT={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jr,onEnter:jr,onAfterEnter:jr,onEnterCancelled:jr,onBeforeLeave:jr,onLeave:jr,onAfterLeave:jr,onLeaveCancelled:jr,onBeforeAppear:jr,onAppear:jr,onAfterAppear:jr,onAppearCancelled:jr},NI={name:"BaseTransition",props:hT,setup(e,{slots:t}){const r=it(),n=dT();let i;return()=>{const a=t.default&&sy(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const p of a)if(p.type!==Mr){o=p;break}}const s=Qe(e),{mode:l}=s;if(n.isLeaving)return Uh(o);const u=b_(o);if(!u)return Uh(o);const f=fu(u,s,n,r);cu(u,f);const c=r.subTree,h=c&&b_(c);let d=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();i===void 0?i=p:p!==i&&(i=p,d=!0)}if(h&&h.type!==Mr&&(!Ya(u,h)||d)){const p=fu(h,s,n,r);if(cu(h,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Uh(o);l==="in-out"&&u.type!==Mr&&(p.delayLeave=(m,g,y)=>{const _=vT(n,h);_[String(h.key)]=h,m[ji]=()=>{g(),m[ji]=void 0,delete f.delayedLeave},f.delayedLeave=y})}return o}}},BI=NI;function vT(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 fu(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:h,onAfterLeave:d,onLeaveCancelled:v,onBeforeAppear:p,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,_=String(e.key),b=vT(r,e),x=(C,M)=>{C&&sn(C,n,9,M)},w=(C,M)=>{const A=M[1];x(C,M),_e(C)?C.every(P=>P.length<=1)&&A():C.length<=1&&A()},S={mode:a,persisted:o,beforeEnter(C){let M=s;if(!r.isMounted)if(i)M=p||s;else return;C[ji]&&C[ji](!0);const A=b[_];A&&Ya(e,A)&&A.el[ji]&&A.el[ji](),x(M,[C])},enter(C){let M=l,A=u,P=f;if(!r.isMounted)if(i)M=m||l,A=g||u,P=y||f;else return;let E=!1;const L=C[bf]=O=>{E||(E=!0,O?x(P,[C]):x(A,[C]),S.delayedLeave&&S.delayedLeave(),C[bf]=void 0)};M?w(M,[C,L]):L()},leave(C,M){const A=String(e.key);if(C[bf]&&C[bf](!0),r.isUnmounting)return M();x(c,[C]);let P=!1;const E=C[ji]=L=>{P||(P=!0,M(),L?x(v,[C]):x(d,[C]),C[ji]=void 0,b[A]===e&&delete b[A])};b[A]=e,h?w(h,[C,E]):E()},clone(C){return fu(C,t,r,n)}};return S}function Uh(e){if(Qd(e))return e=_i(e),e.children=null,e}function b_(e){return Qd(e)?e.children?e.children[0]:void 0:e}function cu(e,t){e.shapeFlag&6&&e.component?cu(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 sy(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===ft?(o.patchFlag&128&&i++,n=n.concat(sy(o.children,t,s))):(t||o.type!==Mr)&&n.push(s!=null?_i(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function ie(e,t){return De(e)?$t({name:e.name},t,{setup:e}):e}const Il=e=>!!e.type.__asyncLoader,Qd=e=>e.type.__isKeepAlive;function FI(e,t){gT(e,"a",t)}function pT(e,t){gT(e,"da",t)}function gT(e,t,r=Qt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Jd(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Qd(i.parent.vnode)&&$I(n,t,r,i),i=i.parent}}function $I(e,t,r,n){const i=Jd(t,e,n,!0);Os(()=>{Um(n[t],i)},r)}function Jd(e,t,r=Qt,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Co();const s=Yu(r),l=sn(t,r,e,o);return s(),To(),l});return n?i.unshift(a):i.push(a),a}}const Ai=e=>(t,r=Qt)=>(!rh||e==="sp")&&Jd(e,(...n)=>t(...n),r),eh=Ai("bm"),_t=Ai("m"),HI=Ai("bu"),Uu=Ai("u"),tr=Ai("bum"),Os=Ai("um"),zI=Ai("sp"),VI=Ai("rtg"),WI=Ai("rtc");function GI(e,t=Qt){Jd("ec",e,t)}function Hp(e,t,r,n){let i;const a=r&&r[n];if(_e(e)||ze(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(qe(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 UI(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(_e(n))for(let i=0;i<n.length;i++)e[n[i].name]=n[i].fn;else n&&(e[n.name]=n.key?(...i)=>{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return e}function Ce(e,t,r={},n,i){if(Wt.isCE||Wt.parent&&Il(Wt.parent)&&Wt.parent.isCE)return t!=="default"&&(r.name=t),Z("slot",r,n&&n());let a=e[t];a&&a._c&&(a._d=!1),G();const o=a&&mT(a(r)),s=de(ft,{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 mT(e){return e.some(t=>la(t)?!(t.type===Mr||t.type===ft&&!mT(t.children)):!0)?e:null}function YI(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:xc(n)]=e[n];return r}const zp=e=>e?LT(e)?nh(e)||e.proxy:zp(e.parent):null,Ol=$t(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=>zp(e.parent),$root:e=>zp(e.root),$emit:e=>e.emit,$options:e=>ly(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ny(e.update)}),$nextTick:e=>e.n||(e.n=kt.bind(e.proxy)),$watch:e=>kI.bind(e)}),Yh=(e,t)=>e!==St&&!e.__isScriptSetup&&Ue(e,t),jI={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 d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(Yh(n,t))return o[t]=1,n[t];if(i!==St&&Ue(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&Ue(u,t))return o[t]=3,a[t];if(r!==St&&Ue(r,t))return o[t]=4,r[t];Vp&&(o[t]=0)}}const f=Ol[t];let c,h;if(f)return t==="$attrs"&&Lr(e,"get",t),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==St&&Ue(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,Ue(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Yh(i,t)?(i[t]=r,!0):n!==St&&Ue(n,t)?(n[t]=r,!0):Ue(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!==St&&Ue(e,o)||Yh(t,o)||(s=a[0])&&Ue(s,o)||Ue(n,o)||Ue(Ol,o)||Ue(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ue(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Rs(){return qI().slots}function qI(){const e=it();return e.setupContext||(e.setupContext=IT(e))}function w_(e){return _e(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Vp=!0;function KI(e){const t=ly(e),r=e.proxy,n=e.ctx;Vp=!1,t.beforeCreate&&S_(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:d,updated:v,activated:p,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:_,unmounted:b,render:x,renderTracked:w,renderTriggered:S,errorCaptured:C,serverPrefetch:M,expose:A,inheritAttrs:P,components:E,directives:L,filters:O}=t;if(u&&XI(u,n,null),o)for(const V in o){const U=o[V];De(U)&&(n[V]=U.bind(r))}if(i){const V=i.call(r,r);qe(V)&&(e.data=Ln(V))}if(Vp=!0,a)for(const V in a){const U=a[V],F=De(U)?U.bind(r,r):De(U.get)?U.get.bind(r,r):Bt,z=!De(U)&&De(U.set)?U.set.bind(r):Bt,te=k({get:F,set:z});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>te.value,set:J=>te.value=J})}if(s)for(const V in s)yT(s[V],n,r,V);if(l){const V=De(l)?l.call(r):l;Reflect.ownKeys(V).forEach(U=>{Dt(U,V[U])})}f&&S_(f,e,"c");function H(V,U){_e(U)?U.forEach(F=>V(F.bind(r))):U&&V(U.bind(r))}if(H(eh,c),H(_t,h),H(HI,d),H(Uu,v),H(FI,p),H(pT,m),H(GI,C),H(WI,w),H(VI,S),H(tr,y),H(Os,b),H(zI,M),_e(A))if(A.length){const V=e.exposed||(e.exposed={});A.forEach(U=>{Object.defineProperty(V,U,{get:()=>r[U],set:F=>r[U]=F})})}else e.exposed||(e.exposed={});x&&e.render===Bt&&(e.render=x),P!=null&&(e.inheritAttrs=P),E&&(e.components=E),L&&(e.directives=L)}function XI(e,t,r=Bt){_e(e)&&(e=Wp(e));for(const n in e){const i=e[n];let a;qe(i)?"default"in i?a=Le(i.from||n,i.default,!0):a=Le(i.from||n):a=Le(i),Pt(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function S_(e,t,r){sn(_e(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function yT(e,t,r,n){const i=n.includes(".")?cT(r,n):()=>r[n];if(ze(e)){const a=t[e];De(a)&&we(i,a)}else if(De(e))we(i,e.bind(r));else if(qe(e))if(_e(e))e.forEach(a=>yT(a,t,r,n));else{const a=De(e.handler)?e.handler.bind(r):t[e.handler];De(a)&&we(i,a,e)}}function ly(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=>nd(l,u,o,!0)),nd(l,t,o)),qe(t)&&a.set(t,l),l}function nd(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&nd(e,a,r,!0),i&&i.forEach(o=>nd(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=ZI[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const ZI={data:x_,props:C_,emits:C_,methods:Sl,computed:Sl,beforeCreate:ur,created:ur,beforeMount:ur,mounted:ur,beforeUpdate:ur,updated:ur,beforeDestroy:ur,beforeUnmount:ur,destroyed:ur,unmounted:ur,activated:ur,deactivated:ur,errorCaptured:ur,serverPrefetch:ur,components:Sl,directives:Sl,watch:JI,provide:x_,inject:QI};function x_(e,t){return t?e?function(){return $t(De(e)?e.call(this,this):e,De(t)?t.call(this,this):t)}:t:e}function QI(e,t){return Sl(Wp(e),Wp(t))}function Wp(e){if(_e(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ur(e,t){return e?[...new Set([].concat(e,t))]:t}function Sl(e,t){return e?$t(Object.create(null),e,t):t}function C_(e,t){return e?_e(e)&&_e(t)?[...new Set([...e,...t])]:$t(Object.create(null),w_(e),w_(t??{})):t}function JI(e,t){if(!e)return t;if(!t)return e;const r=$t(Object.create(null),e);for(const n in t)r[n]=ur(e[n],t[n]);return r}function _T(){return{app:null,config:{isNativeTag:RD,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 eO=0;function tO(e,t){return function(n,i=null){De(n)||(n=$t({},n)),i!=null&&!qe(i)&&(i=null);const a=_T(),o=new WeakSet;let s=!1;const l=a.app={_uid:eO++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:TO,get config(){return a.config},set config(u){},use(u,...f){return o.has(u)||(u&&De(u.install)?(o.add(u),u.install(l,...f)):De(u)&&(o.add(u),u(l,...f))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,f){return f?(a.components[u]=f,l):a.components[u]},directive(u,f){return f?(a.directives[u]=f,l):a.directives[u]},mount(u,f,c){if(!s){const h=Z(n,i);return h.appContext=a,c===!0?c="svg":c===!1&&(c=void 0),f&&t?t(h,u):e(h,u,c),s=!0,l._container=u,u.__vue_app__=l,nh(h.component)||h.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return a.provides[u]=f,l},runWithContext(u){id=l;try{return u()}finally{id=null}}};return l}}let id=null;function Dt(e,t){if(Qt){let r=Qt.provides;const n=Qt.parent&&Qt.parent.provides;n===r&&(r=Qt.provides=Object.create(n)),r[e]=t}}function Le(e,t,r=!1){const n=Qt||Wt;if(n||id){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:id._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&De(t)?t.call(n&&n.proxy):t}}function rO(e,t,r,n=!1){const i={},a={};Jc(a,th,1),e.propsDefaults=Object.create(null),bT(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:Qm(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function nO(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Qe(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let c=0;c<f.length;c++){let h=f[c];if(Zd(e.emitsOptions,h))continue;const d=t[h];if(l)if(Ue(a,h))d!==a[h]&&(a[h]=d,u=!0);else{const v=Pn(h);i[v]=Gp(l,s,v,d,e,!1)}else d!==a[h]&&(a[h]=d,u=!0)}}}else{bT(e,t,i,a)&&(u=!0);let f;for(const c in s)(!t||!Ue(t,c)&&((f=xo(c))===c||!Ue(t,f)))&&(l?r&&(r[c]!==void 0||r[f]!==void 0)&&(i[c]=Gp(l,s,c,void 0,e,!0)):delete i[c]);if(a!==s)for(const c in a)(!t||!Ue(t,c))&&(delete a[c],u=!0)}u&&mi(e,"set","$attrs")}function bT(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(Sc(l))continue;const u=t[l];let f;i&&Ue(i,f=Pn(l))?!a||!a.includes(f)?r[f]=u:(s||(s={}))[f]=u:Zd(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Qe(r),u=s||St;for(let f=0;f<a.length;f++){const c=a[f];r[c]=Gp(i,l,c,u[c],e,!Ue(u,c))}}return o}function Gp(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=Ue(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&De(l)){const{propsDefaults:u}=i;if(r in u)n=u[r];else{const f=Yu(i);n=u[r]=l.call(null,t),f()}}else n=l}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===xo(r))&&(n=!0))}return n}function wT(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 f=c=>{l=!0;const[h,d]=wT(c,t,!0);$t(o,h),d&&s.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return qe(e)&&n.set(e,ns),ns;if(_e(a))for(let f=0;f<a.length;f++){const c=Pn(a[f]);T_(c)&&(o[c]=St)}else if(a)for(const f in a){const c=Pn(f);if(T_(c)){const h=a[f],d=o[c]=_e(h)||De(h)?{type:h}:$t({},h);if(d){const v=P_(Boolean,d.type),p=P_(String,d.type);d[0]=v>-1,d[1]=p<0||v<p,(v>-1||Ue(d,"default"))&&s.push(c)}}}const u=[o,s];return qe(e)&&n.set(e,u),u}function T_(e){return e[0]!=="$"}function M_(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function A_(e,t){return M_(e)===M_(t)}function P_(e,t){return _e(t)?t.findIndex(r=>A_(r,e)):De(t)&&A_(t,e)?0:-1}const ST=e=>e[0]==="_"||e==="$stable",uy=e=>_e(e)?e.map(Hn):[Hn(e)],iO=(e,t,r)=>{if(t._n)return t;const n=j((...i)=>uy(t(...i)),r);return n._c=!1,n},xT=(e,t,r)=>{const n=e._ctx;for(const i in e){if(ST(i))continue;const a=e[i];if(De(a))t[i]=iO(i,a,n);else if(a!=null){const o=uy(a);t[i]=()=>o}}},CT=(e,t)=>{const r=uy(t);e.slots.default=()=>r},aO=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Qe(t),Jc(t,"_",r)):xT(t,e.slots={})}else e.slots={},t&&CT(e,t);Jc(e.slots,th,1)},oO=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=St;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:($t(i,t),!r&&s===1&&delete i._):(a=!t.$stable,xT(t,i)),o=t}else t&&(CT(e,t),o={default:1});if(a)for(const s in i)!ST(s)&&o[s]==null&&delete i[s]};function Up(e,t,r,n,i=!1){if(_e(e)){e.forEach((h,d)=>Up(h,t&&(_e(t)?t[d]:t),r,n,i));return}if(Il(n)&&!i)return;const a=n.shapeFlag&4?nh(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===St?s.refs={}:s.refs,c=s.setupState;if(u!=null&&u!==l&&(ze(u)?(f[u]=null,Ue(c,u)&&(c[u]=null)):Pt(u)&&(u.value=null)),De(l))ra(l,s,12,[o,f]);else{const h=ze(l),d=Pt(l),v=e.f;if(h||d){const p=()=>{if(v){const m=h?Ue(c,l)?c[l]:f[l]:l.value;i?_e(m)&&Um(m,a):_e(m)?m.includes(a)||m.push(a):h?(f[l]=[a],Ue(c,l)&&(c[l]=f[l])):(l.value=[a],e.k&&(f[e.k]=l.value))}else h?(f[l]=o,Ue(c,l)&&(c[l]=o)):d&&(l.value=o,e.k&&(f[e.k]=o))};i||v?p():(p.id=-1,Sr(p,r))}}}const Sr=II;function sO(e){return lO(e)}function lO(e,t){const r=DC();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:d=Bt,insertStaticContent:v}=e,p=(D,I,W,X=null,q=null,le=null,fe=void 0,ae=null,se=!!I.dynamicChildren)=>{if(D===I)return;D&&!Ya(D,I)&&(X=B(D),J(D,q,le,!0),D=null),I.patchFlag===-2&&(se=!1,I.dynamicChildren=null);const{type:ne,ref:he,shapeFlag:Me}=I;switch(ne){case ks:m(D,I,W,X);break;case Mr:g(D,I,W,X);break;case qh:D==null&&y(I,W,X,fe);break;case ft:E(D,I,W,X,q,le,fe,ae,se);break;default:Me&1?x(D,I,W,X,q,le,fe,ae,se):Me&6?L(D,I,W,X,q,le,fe,ae,se):(Me&64||Me&128)&&ne.process(D,I,W,X,q,le,fe,ae,se,Q)}he!=null&&q&&Up(he,D&&D.ref,le,I||D,!I)},m=(D,I,W,X)=>{if(D==null)n(I.el=s(I.children),W,X);else{const q=I.el=D.el;I.children!==D.children&&u(q,I.children)}},g=(D,I,W,X)=>{D==null?n(I.el=l(I.children||""),W,X):I.el=D.el},y=(D,I,W,X)=>{[D.el,D.anchor]=v(D.children,I,W,X,D.el,D.anchor)},_=({el:D,anchor:I},W,X)=>{let q;for(;D&&D!==I;)q=h(D),n(D,W,X),D=q;n(I,W,X)},b=({el:D,anchor:I})=>{let W;for(;D&&D!==I;)W=h(D),i(D),D=W;i(I)},x=(D,I,W,X,q,le,fe,ae,se)=>{I.type==="svg"?fe="svg":I.type==="math"&&(fe="mathml"),D==null?w(I,W,X,q,le,fe,ae,se):M(D,I,q,le,fe,ae,se)},w=(D,I,W,X,q,le,fe,ae)=>{let se,ne;const{props:he,shapeFlag:Me,transition:xe,dirs:ke}=D;if(se=D.el=o(D.type,le,he&&he.is,he),Me&8?f(se,D.children):Me&16&&C(D.children,se,null,X,q,jh(D,le),fe,ae),ke&&ma(D,null,X,"created"),S(se,D,D.scopeId,fe,X),he){for(const rt in he)rt!=="value"&&!Sc(rt)&&a(se,rt,null,he[rt],le,D.children,X,q,Ie);"value"in he&&a(se,"value",null,he.value,le),(ne=he.onVnodeBeforeMount)&&kn(ne,X,D)}ke&&ma(D,null,X,"beforeMount");const Ve=uO(q,xe);Ve&&xe.beforeEnter(se),n(se,I,W),((ne=he&&he.onVnodeMounted)||Ve||ke)&&Sr(()=>{ne&&kn(ne,X,D),Ve&&xe.enter(se),ke&&ma(D,null,X,"mounted")},q)},S=(D,I,W,X,q)=>{if(W&&d(D,W),X)for(let le=0;le<X.length;le++)d(D,X[le]);if(q){let le=q.subTree;if(I===le){const fe=q.vnode;S(D,fe,fe.scopeId,fe.slotScopeIds,q.parent)}}},C=(D,I,W,X,q,le,fe,ae,se=0)=>{for(let ne=se;ne<D.length;ne++){const he=D[ne]=ae?qi(D[ne]):Hn(D[ne]);p(null,he,I,W,X,q,le,fe,ae)}},M=(D,I,W,X,q,le,fe)=>{const ae=I.el=D.el;let{patchFlag:se,dynamicChildren:ne,dirs:he}=I;se|=D.patchFlag&16;const Me=D.props||St,xe=I.props||St;let ke;if(W&&ya(W,!1),(ke=xe.onVnodeBeforeUpdate)&&kn(ke,W,I,D),he&&ma(I,D,W,"beforeUpdate"),W&&ya(W,!0),ne?A(D.dynamicChildren,ne,ae,W,X,jh(I,q),le):fe||U(D,I,ae,null,W,X,jh(I,q),le,!1),se>0){if(se&16)P(ae,I,Me,xe,W,X,q);else if(se&2&&Me.class!==xe.class&&a(ae,"class",null,xe.class,q),se&4&&a(ae,"style",Me.style,xe.style,q),se&8){const Ve=I.dynamicProps;for(let rt=0;rt<Ve.length;rt++){const bt=Ve[rt],ve=Me[bt],Pe=xe[bt];(Pe!==ve||bt==="value")&&a(ae,bt,ve,Pe,q,D.children,W,X,Ie)}}se&1&&D.children!==I.children&&f(ae,I.children)}else!fe&&ne==null&&P(ae,I,Me,xe,W,X,q);((ke=xe.onVnodeUpdated)||he)&&Sr(()=>{ke&&kn(ke,W,I,D),he&&ma(I,D,W,"updated")},X)},A=(D,I,W,X,q,le,fe)=>{for(let ae=0;ae<I.length;ae++){const se=D[ae],ne=I[ae],he=se.el&&(se.type===ft||!Ya(se,ne)||se.shapeFlag&70)?c(se.el):W;p(se,ne,he,null,X,q,le,fe,!0)}},P=(D,I,W,X,q,le,fe)=>{if(W!==X){if(W!==St)for(const ae in W)!Sc(ae)&&!(ae in X)&&a(D,ae,W[ae],null,fe,I.children,q,le,Ie);for(const ae in X){if(Sc(ae))continue;const se=X[ae],ne=W[ae];se!==ne&&ae!=="value"&&a(D,ae,ne,se,fe,I.children,q,le,Ie)}"value"in X&&a(D,"value",W.value,X.value,fe)}},E=(D,I,W,X,q,le,fe,ae,se)=>{const ne=I.el=D?D.el:s(""),he=I.anchor=D?D.anchor:s("");let{patchFlag:Me,dynamicChildren:xe,slotScopeIds:ke}=I;ke&&(ae=ae?ae.concat(ke):ke),D==null?(n(ne,W,X),n(he,W,X),C(I.children||[],W,he,q,le,fe,ae,se)):Me>0&&Me&64&&xe&&D.dynamicChildren?(A(D.dynamicChildren,xe,W,q,le,fe,ae),(I.key!=null||q&&I===q.subTree)&&fy(D,I,!0)):U(D,I,W,he,q,le,fe,ae,se)},L=(D,I,W,X,q,le,fe,ae,se)=>{I.slotScopeIds=ae,D==null?I.shapeFlag&512?q.ctx.activate(I,W,X,fe,se):O(I,W,X,q,le,fe,se):N(D,I,se)},O=(D,I,W,X,q,le,fe)=>{const ae=D.component=_O(D,X,q);if(Qd(D)&&(ae.ctx.renderer=Q),bO(ae),ae.asyncDep){if(q&&q.registerDep(ae,H),!D.el){const se=ae.subTree=Z(Mr);g(null,se,I,W)}}else H(ae,D,I,W,q,le,fe)},N=(D,I,W)=>{const X=I.component=D.component;if(PI(D,I,W))if(X.asyncDep&&!X.asyncResolved){V(X,I,W);return}else X.next=I,SI(X.update),X.effect.dirty=!0,X.update();else I.el=D.el,X.vnode=I},H=(D,I,W,X,q,le,fe)=>{const ae=()=>{if(D.isMounted){let{next:he,bu:Me,u:xe,parent:ke,vnode:Ve}=D;{const We=TT(D);if(We){he&&(he.el=Ve.el,V(D,he,fe)),We.asyncDep.then(()=>{D.isUnmounted||ae()});return}}let rt=he,bt;ya(D,!1),he?(he.el=Ve.el,V(D,he,fe)):he=Ve,Me&&Cc(Me),(bt=he.props&&he.props.onVnodeBeforeUpdate)&&kn(bt,ke,he,Ve),ya(D,!0);const ve=Gh(D),Pe=D.subTree;D.subTree=ve,p(Pe,ve,c(Pe.el),B(Pe),D,q,le),he.el=ve.el,rt===null&&EI(D,ve.el),xe&&Sr(xe,q),(bt=he.props&&he.props.onVnodeUpdated)&&Sr(()=>kn(bt,ke,he,Ve),q)}else{let he;const{el:Me,props:xe}=I,{bm:ke,m:Ve,parent:rt}=D,bt=Il(I);if(ya(D,!1),ke&&Cc(ke),!bt&&(he=xe&&xe.onVnodeBeforeMount)&&kn(he,rt,I),ya(D,!0),Me&&pe){const ve=()=>{D.subTree=Gh(D),pe(Me,D.subTree,D,q,null)};bt?I.type.__asyncLoader().then(()=>!D.isUnmounted&&ve()):ve()}else{const ve=D.subTree=Gh(D);p(null,ve,W,X,D,q,le),I.el=ve.el}if(Ve&&Sr(Ve,q),!bt&&(he=xe&&xe.onVnodeMounted)){const ve=I;Sr(()=>kn(he,rt,ve),q)}(I.shapeFlag&256||rt&&Il(rt.vnode)&&rt.vnode.shapeFlag&256)&&D.a&&Sr(D.a,q),D.isMounted=!0,I=W=X=null}},se=D.effect=new jm(ae,Bt,()=>ny(ne),D.scope),ne=D.update=()=>{se.dirty&&se.run()};ne.id=D.uid,ya(D,!0),ne()},V=(D,I,W)=>{I.component=D;const X=D.vnode.props;D.vnode=I,D.next=null,nO(D,I.props,X,W),oO(D,I.children,W),Co(),m_(D),To()},U=(D,I,W,X,q,le,fe,ae,se=!1)=>{const ne=D&&D.children,he=D?D.shapeFlag:0,Me=I.children,{patchFlag:xe,shapeFlag:ke}=I;if(xe>0){if(xe&128){z(ne,Me,W,X,q,le,fe,ae,se);return}else if(xe&256){F(ne,Me,W,X,q,le,fe,ae,se);return}}ke&8?(he&16&&Ie(ne,q,le),Me!==ne&&f(W,Me)):he&16?ke&16?z(ne,Me,W,X,q,le,fe,ae,se):Ie(ne,q,le,!0):(he&8&&f(W,""),ke&16&&C(Me,W,X,q,le,fe,ae,se))},F=(D,I,W,X,q,le,fe,ae,se)=>{D=D||ns,I=I||ns;const ne=D.length,he=I.length,Me=Math.min(ne,he);let xe;for(xe=0;xe<Me;xe++){const ke=I[xe]=se?qi(I[xe]):Hn(I[xe]);p(D[xe],ke,W,null,q,le,fe,ae,se)}ne>he?Ie(D,q,le,!0,!1,Me):C(I,W,X,q,le,fe,ae,se,Me)},z=(D,I,W,X,q,le,fe,ae,se)=>{let ne=0;const he=I.length;let Me=D.length-1,xe=he-1;for(;ne<=Me&&ne<=xe;){const ke=D[ne],Ve=I[ne]=se?qi(I[ne]):Hn(I[ne]);if(Ya(ke,Ve))p(ke,Ve,W,null,q,le,fe,ae,se);else break;ne++}for(;ne<=Me&&ne<=xe;){const ke=D[Me],Ve=I[xe]=se?qi(I[xe]):Hn(I[xe]);if(Ya(ke,Ve))p(ke,Ve,W,null,q,le,fe,ae,se);else break;Me--,xe--}if(ne>Me){if(ne<=xe){const ke=xe+1,Ve=ke<he?I[ke].el:X;for(;ne<=xe;)p(null,I[ne]=se?qi(I[ne]):Hn(I[ne]),W,Ve,q,le,fe,ae,se),ne++}}else if(ne>xe)for(;ne<=Me;)J(D[ne],q,le,!0),ne++;else{const ke=ne,Ve=ne,rt=new Map;for(ne=Ve;ne<=xe;ne++){const pt=I[ne]=se?qi(I[ne]):Hn(I[ne]);pt.key!=null&&rt.set(pt.key,ne)}let bt,ve=0;const Pe=xe-Ve+1;let We=!1,Ge=0;const et=new Array(Pe);for(ne=0;ne<Pe;ne++)et[ne]=0;for(ne=ke;ne<=Me;ne++){const pt=D[ne];if(ve>=Pe){J(pt,q,le,!0);continue}let Kt;if(pt.key!=null)Kt=rt.get(pt.key);else for(bt=Ve;bt<=xe;bt++)if(et[bt-Ve]===0&&Ya(pt,I[bt])){Kt=bt;break}Kt===void 0?J(pt,q,le,!0):(et[Kt-Ve]=ne+1,Kt>=Ge?Ge=Kt:We=!0,p(pt,I[Kt],W,null,q,le,fe,ae,se),ve++)}const Ht=We?fO(et):ns;for(bt=Ht.length-1,ne=Pe-1;ne>=0;ne--){const pt=Ve+ne,Kt=I[pt],Yr=pt+1<he?I[pt+1].el:X;et[ne]===0?p(null,Kt,W,Yr,q,le,fe,ae,se):We&&(bt<0||ne!==Ht[bt]?te(Kt,W,Yr,2):bt--)}}},te=(D,I,W,X,q=null)=>{const{el:le,type:fe,transition:ae,children:se,shapeFlag:ne}=D;if(ne&6){te(D.component.subTree,I,W,X);return}if(ne&128){D.suspense.move(I,W,X);return}if(ne&64){fe.move(D,I,W,Q);return}if(fe===ft){n(le,I,W);for(let Me=0;Me<se.length;Me++)te(se[Me],I,W,X);n(D.anchor,I,W);return}if(fe===qh){_(D,I,W);return}if(X!==2&&ne&1&&ae)if(X===0)ae.beforeEnter(le),n(le,I,W),Sr(()=>ae.enter(le),q);else{const{leave:Me,delayLeave:xe,afterLeave:ke}=ae,Ve=()=>n(le,I,W),rt=()=>{Me(le,()=>{Ve(),ke&&ke()})};xe?xe(le,Ve,rt):rt()}else n(le,I,W)},J=(D,I,W,X=!1,q=!1)=>{const{type:le,props:fe,ref:ae,children:se,dynamicChildren:ne,shapeFlag:he,patchFlag:Me,dirs:xe}=D;if(ae!=null&&Up(ae,null,W,D,!0),he&256){I.ctx.deactivate(D);return}const ke=he&1&&xe,Ve=!Il(D);let rt;if(Ve&&(rt=fe&&fe.onVnodeBeforeUnmount)&&kn(rt,I,D),he&6)$e(D.component,W,X);else{if(he&128){D.suspense.unmount(W,X);return}ke&&ma(D,null,I,"beforeUnmount"),he&64?D.type.remove(D,I,W,q,Q,X):ne&&(le!==ft||Me>0&&Me&64)?Ie(ne,I,W,!1,!0):(le===ft&&Me&384||!q&&he&16)&&Ie(se,I,W),X&&me(D)}(Ve&&(rt=fe&&fe.onVnodeUnmounted)||ke)&&Sr(()=>{rt&&kn(rt,I,D),ke&&ma(D,null,I,"unmounted")},W)},me=D=>{const{type:I,el:W,anchor:X,transition:q}=D;if(I===ft){Se(W,X);return}if(I===qh){b(D);return}const le=()=>{i(W),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(D.shapeFlag&1&&q&&!q.persisted){const{leave:fe,delayLeave:ae}=q,se=()=>fe(W,le);ae?ae(D.el,le,se):se()}else le()},Se=(D,I)=>{let W;for(;D!==I;)W=h(D),i(D),D=W;i(I)},$e=(D,I,W)=>{const{bum:X,scope:q,update:le,subTree:fe,um:ae}=D;X&&Cc(X),q.stop(),le&&(le.active=!1,J(fe,D,I,W)),ae&&Sr(ae,I),Sr(()=>{D.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Ie=(D,I,W,X=!1,q=!1,le=0)=>{for(let fe=le;fe<D.length;fe++)J(D[fe],I,W,X,q)},B=D=>D.shapeFlag&6?B(D.component.subTree):D.shapeFlag&128?D.suspense.next():h(D.anchor||D.el);let Y=!1;const K=(D,I,W)=>{D==null?I._vnode&&J(I._vnode,null,null,!0):p(I._vnode||null,D,I,null,null,null,W),Y||(Y=!0,m_(),aT(),Y=!1),I._vnode=D},Q={p,um:J,m:te,r:me,mt:O,mc:C,pc:U,pbc:A,n:B,o:e};let oe,pe;return t&&([oe,pe]=t(Q)),{render:K,hydrate:oe,createApp:tO(K,oe)}}function jh({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function ya({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function uO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fy(e,t,r=!1){const n=e.children,i=t.children;if(_e(n)&&_e(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]=qi(i[a]),s.el=o.el),r||fy(o,s)),s.type===ks&&(s.el=o.el)}}function fO(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}function TT(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:TT(t)}const cO=e=>e.__isTeleport,Rl=e=>e&&(e.disabled||e.disabled===""),E_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,L_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yp=(e,t)=>{const r=e&&e.to;return ze(r)?t?t(r):null:r},dO={name:"Teleport",__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:h,o:{insert:d,querySelector:v,createText:p,createComment:m}}=u,g=Rl(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const x=t.el=p(""),w=t.anchor=p("");d(x,r,n),d(w,r,n);const S=t.target=Yp(t.props,v),C=t.targetAnchor=p("");S&&(d(C,S),o==="svg"||E_(S)?o="svg":(o==="mathml"||L_(S))&&(o="mathml"));const M=(A,P)=>{y&16&&f(_,A,P,i,a,o,s,l)};g?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=Rl(e.props),M=C?r:w,A=C?x:S;if(o==="svg"||E_(w)?o="svg":(o==="mathml"||L_(w))&&(o="mathml"),b?(h(e.dynamicChildren,b,M,i,a,o,s),fy(e,t,!0)):l||c(e,t,M,A,i,a,o,s,!1),g)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):wf(t,r,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=Yp(t.props,v);P&&wf(t,P,null,u,0)}else C&&wf(t,w,S,u,1)}AT(t)},remove(e,t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:f,target:c,props:h}=e;if(c&&a(f),o&&a(u),s&16){const d=o||!Rl(h);for(let v=0;v<l.length;v++){const p=l[v];i(p,t,r,d,!!p.dynamicChildren)}}},move:wf,hydrate:hO};function wf(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:f}=e,c=a===2;if(c&&n(o,t,r),(!c||Rl(f))&&l&16)for(let h=0;h<u.length;h++)i(u[h],t,r,2);c&&n(s,t,r)}function hO(e,t,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const f=t.target=Yp(t.props,l);if(f){const c=f._lpa||f.firstChild;if(t.shapeFlag&16)if(Rl(t.props))t.anchor=u(o(e),t,s(e),r,n,i,a),t.targetAnchor=c;else{t.anchor=o(e);let h=c;for(;h;)if(h=o(h),h&&h.nodeType===8&&h.data==="teleport anchor"){t.targetAnchor=h,f._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(c,t,f,r,n,i,a)}AT(t)}return t.anchor&&o(t.anchor)}const MT=dO;function AT(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r&&r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const ft=Symbol.for("v-fgt"),ks=Symbol.for("v-txt"),Mr=Symbol.for("v-cmt"),qh=Symbol.for("v-stc"),kl=[];let Sn=null;function G(e=!1){kl.push(Sn=e?null:[])}function vO(){kl.pop(),Sn=kl[kl.length-1]||null}let du=1;function D_(e){du+=e}function PT(e){return e.dynamicChildren=du>0?Sn||ns:null,vO(),du>0&&Sn&&Sn.push(e),e}function ce(e,t,r,n,i,a){return PT(ee(e,t,r,n,i,a,!0))}function de(e,t,r,n,i){return PT(Z(e,t,r,n,i,!0))}function la(e){return e?e.__v_isVNode===!0:!1}function Ya(e,t){return e.type===t.type&&e.key===t.key}const th="__vInternal",ET=({key:e})=>e??null,Mc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?ze(e)||Pt(e)||De(e)?{i:Wt,r:e,k:t,f:!!r}:e:null);function ee(e,t=null,r=null,n=0,i=null,a=e===ft?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ET(t),ref:t&&Mc(t),scopeId:lT,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:Wt};return s?(cy(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=ze(r)?8:16),du>0&&!o&&Sn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Sn.push(l),l}const Z=pO;function pO(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===uT)&&(e=Mr),la(e)){const s=_i(e,t,!0);return r&&cy(s,r),du>0&&!a&&Sn&&(s.shapeFlag&6?Sn[Sn.indexOf(e)]=s:Sn.push(s)),s.patchFlag|=-2,s}if(CO(e)&&(e=e.__vccOpts),t){t=gO(t);let{class:s,style:l}=t;s&&!ze(s)&&(t.class=re(s)),qe(l)&&(KC(l)&&!_e(l)&&(l=$t({},l)),t.style=ct(l))}const o=ze(e)?1:DI(e)?128:cO(e)?64:qe(e)?4:De(e)?2:0;return ee(e,t,r,n,i,o,a,!0)}function gO(e){return e?KC(e)||th in e?$t({},e):e:null}function _i(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?ei(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&ET(s),ref:t&&t.ref?r&&i?_e(i)?i.concat(Mc(t)):[i,Mc(t)]:Mc(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!==ft?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&&_i(e.ssContent),ssFallback:e.ssFallback&&_i(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function mt(e=" ",t=0){return Z(ks,null,e,t)}function Ae(e="",t=!1){return t?(G(),de(Mr,null,e)):Z(Mr,null,e)}function Hn(e){return e==null||typeof e=="boolean"?Z(Mr):_e(e)?Z(ft,null,e.slice()):typeof e=="object"?qi(e):Z(ks,null,String(e))}function qi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_i(e)}function cy(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(_e(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),cy(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(th in t)?t._ctx=Wt:i===3&&Wt&&(Wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else De(t)?(t={default:t,_ctx:Wt},r=32):(t=String(t),n&64?(r=16,t=[mt(t)]):r=8);e.children=t,e.shapeFlag|=r}function ei(...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=re([t.class,n.class]));else if(i==="style")t.style=ct([t.style,n.style]);else if(Wd(i)){const a=t[i],o=n[i];o&&a!==o&&!(_e(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function kn(e,t,r,n=null){sn(e,t,7,[r,n])}const mO=_T();let yO=0;function _O(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||mO,a={uid:yO++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new qD(!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:wT(n,i),emitsOptions:sT(n,i),emit:null,emitted:null,propsDefaults:St,inheritAttrs:n.inheritAttrs,ctx:St,data:St,props:St,attrs:St,slots:St,refs:St,setupState:St,setupContext:null,attrsProxy:null,slotsProxy: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=TI.bind(null,a),e.ce&&e.ce(a),a}let Qt=null;const it=()=>Qt||Wt;let ad,jp;{const e=DC(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};ad=t("__VUE_INSTANCE_SETTERS__",r=>Qt=r),jp=t("__VUE_SSR_SETTERS__",r=>rh=r)}const Yu=e=>{const t=Qt;return ad(e),e.scope.on(),()=>{e.scope.off(),ad(t)}},I_=()=>{Qt&&Qt.scope.off(),ad(null)};function LT(e){return e.vnode.shapeFlag&4}let rh=!1;function bO(e,t=!1){t&&jp(t);const{props:r,children:n}=e.vnode,i=LT(e);rO(e,r,i,t),aO(e,n);const a=i?wO(e,t):void 0;return t&&jp(!1),a}function wO(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=XC(new Proxy(e.ctx,jI));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?IT(e):null,a=Yu(e);Co();const o=ra(n,e,0,[e.props,i]);if(To(),a(),Qc(o)){if(o.then(I_,I_),t)return o.then(s=>{O_(e,s,t)}).catch(s=>{Xd(s,e,0)});e.asyncDep=o}else O_(e,o,t)}else DT(e,t)}function O_(e,t,r){De(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qe(t)&&(e.setupState=tT(t)),DT(e,r)}let R_;function DT(e,t,r){const n=e.type;if(!e.render){if(!t&&R_&&!n.render){const i=n.template||ly(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=$t($t({isCustomElement:a,delimiters:s},o),l);n.render=R_(i,u)}}e.render=n.render||Bt}{const i=Yu(e);Co();try{KI(e)}finally{To(),i()}}}function SO(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return Lr(e,"get","$attrs"),t[r]}}))}function IT(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return SO(e)},slots:e.slots,emit:e.emit,expose:t}}function nh(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tT(XC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ol)return Ol[r](e)},has(t,r){return r in t||r in Ol}}))}function xO(e,t=!0){return De(e)?e.displayName||e.name:e.name||t&&e.__name}function CO(e){return De(e)&&"__vccOpts"in e}const k=(e,t)=>QC(e,t,rh);function Te(e,t,r){const n=arguments.length;return n===2?qe(t)&&!_e(t)?la(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&la(r)&&(r=[r]),Z(e,t,r))}const TO="3.4.15",MO=Bt;/**
+**/function ra(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Xd(a,t,r)}return i}function sn(e,t,r,n){if(De(e)){const a=ra(e,t,r,n);return a&&Qc(a)&&a.catch(o=>{Xd(o,t,r)}),a}const i=[];for(let a=0;a<e.length;a++)i.push(sn(e[a],t,r,n));return i}function Xd(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,o,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){ra(l,null,10,[e,o,s]);return}}bI(e,r,i,n)}function bI(e,t,r,n=!0){console.error(e)}let lu=!1,$p=!1;const or=[];let zn=0;const ls=[];let Yi=null,Ua=0;const nT=Promise.resolve();let ry=null;function Nt(e){const t=ry||nT;return e?t.then(this?e.bind(this):e):t}function wI(e){let t=zn+1,r=or.length;for(;t<r;){const n=t+r>>>1,i=or[n],a=uu(i);a<e||a===e&&i.pre?t=n+1:r=n}return t}function ny(e){(!or.length||!or.includes(e,lu&&e.allowRecurse?zn+1:zn))&&(e.id==null?or.push(e):or.splice(wI(e.id),0,e),iT())}function iT(){!lu&&!$p&&($p=!0,ry=nT.then(oT))}function SI(e){const t=or.indexOf(e);t>zn&&or.splice(t,1)}function xI(e){_e(e)?ls.push(...e):(!Yi||!Yi.includes(e,e.allowRecurse?Ua+1:Ua))&&ls.push(e),iT()}function m_(e,t,r=lu?zn+1:0){for(;r<or.length;r++){const n=or[r];if(n&&n.pre){if(e&&n.id!==e.uid)continue;or.splice(r,1),r--,n()}}}function aT(e){if(ls.length){const t=[...new Set(ls)].sort((r,n)=>uu(r)-uu(n));if(ls.length=0,Yi){Yi.push(...t);return}for(Yi=t,Ua=0;Ua<Yi.length;Ua++)Yi[Ua]();Yi=null,Ua=0}}const uu=e=>e.id==null?1/0:e.id,CI=(e,t)=>{const r=uu(e)-uu(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function oT(e){$p=!1,lu=!0,or.sort(CI);try{for(zn=0;zn<or.length;zn++){const t=or[zn];t&&t.active!==!1&&ra(t,null,14)}}finally{zn=0,or.length=0,aT(),lu=!1,ry=null,(or.length||ls.length)&&oT()}}function TI(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||St;let i=r;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in n){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:h}=n[f]||St;h&&(i=r.map(d=>ze(d)?d.trim():d)),c&&(i=r.map($D))}let s,l=n[s=xc(t)]||n[s=xc(Pn(t))];!l&&a&&(l=n[s=xc(xo(t))]),l&&sn(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,sn(u,e,6,i)}}function sT(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 f=sT(u,t,!0);f&&(s=!0,Ht(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(qe(e)&&n.set(e,null),null):(_e(a)?a.forEach(l=>o[l]=null):Ht(o,a),qe(e)&&n.set(e,o),o)}function Zd(e,t){return!e||!Wd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ue(e,t[0].toLowerCase()+t.slice(1))||Ue(e,xo(t))||Ue(e,t))}let Wt=null,lT=null;function rd(e){const t=Wt;return Wt=e,lT=e&&e.type.__scopeId||null,t}function q(e,t=Wt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&D_(-1);const a=rd(t);let o;try{o=e(...i)}finally{rd(a),n._d&&D_(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Gh(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,data:h,setupState:d,ctx:v,inheritAttrs:p}=e;let m,g;const y=rd(e);try{if(r.shapeFlag&4){const b=i||n,x=b;m=Hn(f.call(x,b,c,a,d,h,v)),g=l}else{const b=t;m=Hn(b.length>1?b(a,{attrs:l,slots:s,emit:u}):b(a,null)),g=t.props?l:MI(l)}}catch(b){kl.length=0,Xd(b,e,1),m=Z(Mr)}let _=m;if(g&&p!==!1){const b=Object.keys(g),{shapeFlag:x}=_;b.length&&x&7&&(o&&b.some(Gm)&&(g=AI(g,o)),_=_i(_,g))}return r.dirs&&(_=_i(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),m=_,rd(y),m}const MI=e=>{let t;for(const r in e)(r==="class"||r==="style"||Wd(r))&&((t||(t={}))[r]=e[r]);return t},AI=(e,t)=>{const r={};for(const n in e)(!Gm(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function PI(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?y_(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;c<f.length;c++){const h=f[c];if(o[h]!==n[h]&&!Zd(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?y_(n,o,u):!0:!!o;return!1}function y_(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 EI({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const iy="components",LI="directives";function xr(e,t){return ay(iy,e,!0,t)||e}const uT=Symbol.for("v-ndc");function Vt(e){return ze(e)?ay(iy,e,!1)||e:e||uT}function fT(e){return ay(LI,e)}function ay(e,t,r=!0,n=!1){const i=Wt||Qt;if(i){const a=i.type;if(e===iy){const s=xO(a,!1);if(s&&(s===t||s===Pn(t)||s===Yd(Pn(t))))return a}const o=__(i[e]||a[e],t)||__(i.appContext[e],t);return!o&&n?a:o}}function __(e,t){return e&&(e[t]||e[Pn(t)]||e[Yd(Pn(t))])}const DI=e=>e.__isSuspense;function II(e,t){t&&t.pendingBranch?_e(e)?t.effects.push(...e):t.effects.push(e):xI(e)}const OI=Symbol.for("v-scx"),RI=()=>Le(OI);function na(e,t){return oy(e,null,t)}const _f={};function be(e,t,r){return oy(e,t,r)}function oy(e,t,{immediate:r,deep:n,flush:i,once:a,onTrack:o,onTrigger:s}=St){if(t&&a){const w=t;t=(...S)=>{w(...S),x()}}const l=Qt,u=w=>n===!0?w:Xa(w,n===!1?1:void 0);let f,c=!1,h=!1;if(Pt(e)?(f=()=>e.value,c=td(e)):ss(e)?(f=()=>u(e),c=!0):_e(e)?(h=!0,c=e.some(w=>ss(w)||td(w)),f=()=>e.map(w=>{if(Pt(w))return w.value;if(ss(w))return u(w);if(De(w))return ra(w,l,2)})):De(e)?t?f=()=>ra(e,l,2):f=()=>(d&&d(),sn(e,l,3,[v])):f=Ft,t&&n){const w=f;f=()=>Xa(w())}let d,v=w=>{d=_.onStop=()=>{ra(w,l,4),d=_.onStop=void 0}},p;if(rh)if(v=Ft,t?r&&sn(t,l,3,[f(),h?[]:void 0,v]):f(),i==="sync"){const w=RI();p=w.__watcherHandles||(w.__watcherHandles=[])}else return Ft;let m=h?new Array(e.length).fill(_f):_f;const g=()=>{if(!(!_.active||!_.dirty))if(t){const w=_.run();(n||c||(h?w.some((S,C)=>sa(S,m[C])):sa(w,m)))&&(d&&d(),sn(t,l,3,[w,m===_f?void 0:h&&m[0]===_f?[]:m,v]),m=w)}else _.run()};g.allowRecurse=!!t;let y;i==="sync"?y=g:i==="post"?y=()=>Sr(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),y=()=>ny(g));const _=new jm(f,Ft,y),b=kC(),x=()=>{_.stop(),b&&Um(b.effects,_)};return t?r?g():m=_.run():i==="post"?Sr(_.run.bind(_),l&&l.suspense):_.run(),p&&p.push(x),x}function kI(e,t,r){const n=this.proxy,i=ze(e)?e.includes(".")?cT(n,e):()=>n[e]:e.bind(n,n);let a;De(t)?a=t:(a=t.handler,r=t);const o=Yu(this),s=oy(i,a.bind(n),r);return o(),s}function cT(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,r=0,n){if(!qe(e)||e.__v_skip)return e;if(t&&t>0){if(r>=t)return e;r++}if(n=n||new Set,n.has(e))return e;if(n.add(e),Pt(e))Xa(e.value,t,r,n);else if(_e(e))for(let i=0;i<e.length;i++)Xa(e[i],t,r,n);else if(Gd(e)||os(e))e.forEach(i=>{Xa(i,t,r,n)});else if(LC(e))for(const i in e)Xa(e[i],t,r,n);return e}function qt(e,t){if(Wt===null)return e;const r=nh(Wt)||Wt.proxy,n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,o,s,l=St]=t[i];a&&(De(a)&&(a={mounted:a,updated:a}),a.deep&&Xa(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function ma(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&&(Co(),sn(l,r,8,[e.el,s,e,t]),To())}}const ji=Symbol("_leaveCb"),bf=Symbol("_enterCb");function dT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return _t(()=>{e.isMounted=!0}),tr(()=>{e.isUnmounting=!0}),e}const jr=[Function,Array],hT={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jr,onEnter:jr,onAfterEnter:jr,onEnterCancelled:jr,onBeforeLeave:jr,onLeave:jr,onAfterLeave:jr,onLeaveCancelled:jr,onBeforeAppear:jr,onAppear:jr,onAfterAppear:jr,onAppearCancelled:jr},NI={name:"BaseTransition",props:hT,setup(e,{slots:t}){const r=it(),n=dT();let i;return()=>{const a=t.default&&sy(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const p of a)if(p.type!==Mr){o=p;break}}const s=Qe(e),{mode:l}=s;if(n.isLeaving)return Uh(o);const u=b_(o);if(!u)return Uh(o);const f=fu(u,s,n,r);cu(u,f);const c=r.subTree,h=c&&b_(c);let d=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();i===void 0?i=p:p!==i&&(i=p,d=!0)}if(h&&h.type!==Mr&&(!Ya(u,h)||d)){const p=fu(h,s,n,r);if(cu(h,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Uh(o);l==="in-out"&&u.type!==Mr&&(p.delayLeave=(m,g,y)=>{const _=vT(n,h);_[String(h.key)]=h,m[ji]=()=>{g(),m[ji]=void 0,delete f.delayedLeave},f.delayedLeave=y})}return o}}},BI=NI;function vT(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 fu(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:h,onAfterLeave:d,onLeaveCancelled:v,onBeforeAppear:p,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,_=String(e.key),b=vT(r,e),x=(C,M)=>{C&&sn(C,n,9,M)},w=(C,M)=>{const A=M[1];x(C,M),_e(C)?C.every(P=>P.length<=1)&&A():C.length<=1&&A()},S={mode:a,persisted:o,beforeEnter(C){let M=s;if(!r.isMounted)if(i)M=p||s;else return;C[ji]&&C[ji](!0);const A=b[_];A&&Ya(e,A)&&A.el[ji]&&A.el[ji](),x(M,[C])},enter(C){let M=l,A=u,P=f;if(!r.isMounted)if(i)M=m||l,A=g||u,P=y||f;else return;let E=!1;const L=C[bf]=O=>{E||(E=!0,O?x(P,[C]):x(A,[C]),S.delayedLeave&&S.delayedLeave(),C[bf]=void 0)};M?w(M,[C,L]):L()},leave(C,M){const A=String(e.key);if(C[bf]&&C[bf](!0),r.isUnmounting)return M();x(c,[C]);let P=!1;const E=C[ji]=L=>{P||(P=!0,M(),L?x(v,[C]):x(d,[C]),C[ji]=void 0,b[A]===e&&delete b[A])};b[A]=e,h?w(h,[C,E]):E()},clone(C){return fu(C,t,r,n)}};return S}function Uh(e){if(Qd(e))return e=_i(e),e.children=null,e}function b_(e){return Qd(e)?e.children?e.children[0]:void 0:e}function cu(e,t){e.shapeFlag&6&&e.component?cu(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 sy(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===ft?(o.patchFlag&128&&i++,n=n.concat(sy(o.children,t,s))):(t||o.type!==Mr)&&n.push(s!=null?_i(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function ie(e,t){return De(e)?Ht({name:e.name},t,{setup:e}):e}const Il=e=>!!e.type.__asyncLoader,Qd=e=>e.type.__isKeepAlive;function FI(e,t){gT(e,"a",t)}function pT(e,t){gT(e,"da",t)}function gT(e,t,r=Qt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Jd(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Qd(i.parent.vnode)&&$I(n,t,r,i),i=i.parent}}function $I(e,t,r,n){const i=Jd(t,e,n,!0);ks(()=>{Um(n[t],i)},r)}function Jd(e,t,r=Qt,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Co();const s=Yu(r),l=sn(t,r,e,o);return s(),To(),l});return n?i.unshift(a):i.push(a),a}}const Ai=e=>(t,r=Qt)=>(!rh||e==="sp")&&Jd(e,(...n)=>t(...n),r),eh=Ai("bm"),_t=Ai("m"),HI=Ai("bu"),Uu=Ai("u"),tr=Ai("bum"),ks=Ai("um"),zI=Ai("sp"),VI=Ai("rtg"),WI=Ai("rtc");function GI(e,t=Qt){Jd("ec",e,t)}function Hp(e,t,r,n){let i;const a=r&&r[n];if(_e(e)||ze(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(qe(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 UI(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(_e(n))for(let i=0;i<n.length;i++)e[n[i].name]=n[i].fn;else n&&(e[n.name]=n.key?(...i)=>{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return e}function Ce(e,t,r={},n,i){if(Wt.isCE||Wt.parent&&Il(Wt.parent)&&Wt.parent.isCE)return t!=="default"&&(r.name=t),Z("slot",r,n&&n());let a=e[t];a&&a._c&&(a._d=!1),G();const o=a&&mT(a(r)),s=ve(ft,{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 mT(e){return e.some(t=>la(t)?!(t.type===Mr||t.type===ft&&!mT(t.children)):!0)?e:null}function YI(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:xc(n)]=e[n];return r}const zp=e=>e?LT(e)?nh(e)||e.proxy:zp(e.parent):null,Ol=Ht(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=>zp(e.parent),$root:e=>zp(e.root),$emit:e=>e.emit,$options:e=>ly(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ny(e.update)}),$nextTick:e=>e.n||(e.n=Nt.bind(e.proxy)),$watch:e=>kI.bind(e)}),Yh=(e,t)=>e!==St&&!e.__isScriptSetup&&Ue(e,t),jI={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 d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(Yh(n,t))return o[t]=1,n[t];if(i!==St&&Ue(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&Ue(u,t))return o[t]=3,a[t];if(r!==St&&Ue(r,t))return o[t]=4,r[t];Vp&&(o[t]=0)}}const f=Ol[t];let c,h;if(f)return t==="$attrs"&&Lr(e,"get",t),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==St&&Ue(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,Ue(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Yh(i,t)?(i[t]=r,!0):n!==St&&Ue(n,t)?(n[t]=r,!0):Ue(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!==St&&Ue(e,o)||Yh(t,o)||(s=a[0])&&Ue(s,o)||Ue(n,o)||Ue(Ol,o)||Ue(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ue(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Ns(){return qI().slots}function qI(){const e=it();return e.setupContext||(e.setupContext=IT(e))}function w_(e){return _e(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Vp=!0;function KI(e){const t=ly(e),r=e.proxy,n=e.ctx;Vp=!1,t.beforeCreate&&S_(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:d,updated:v,activated:p,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:_,unmounted:b,render:x,renderTracked:w,renderTriggered:S,errorCaptured:C,serverPrefetch:M,expose:A,inheritAttrs:P,components:E,directives:L,filters:O}=t;if(u&&XI(u,n,null),o)for(const V in o){const U=o[V];De(U)&&(n[V]=U.bind(r))}if(i){const V=i.call(r,r);qe(V)&&(e.data=Ln(V))}if(Vp=!0,a)for(const V in a){const U=a[V],F=De(U)?U.bind(r,r):De(U.get)?U.get.bind(r,r):Ft,z=!De(U)&&De(U.set)?U.set.bind(r):Ft,ee=k({get:F,set:z});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>ee.value,set:J=>ee.value=J})}if(s)for(const V in s)yT(s[V],n,r,V);if(l){const V=De(l)?l.call(r):l;Reflect.ownKeys(V).forEach(U=>{Dt(U,V[U])})}f&&S_(f,e,"c");function H(V,U){_e(U)?U.forEach(F=>V(F.bind(r))):U&&V(U.bind(r))}if(H(eh,c),H(_t,h),H(HI,d),H(Uu,v),H(FI,p),H(pT,m),H(GI,C),H(WI,w),H(VI,S),H(tr,y),H(ks,b),H(zI,M),_e(A))if(A.length){const V=e.exposed||(e.exposed={});A.forEach(U=>{Object.defineProperty(V,U,{get:()=>r[U],set:F=>r[U]=F})})}else e.exposed||(e.exposed={});x&&e.render===Ft&&(e.render=x),P!=null&&(e.inheritAttrs=P),E&&(e.components=E),L&&(e.directives=L)}function XI(e,t,r=Ft){_e(e)&&(e=Wp(e));for(const n in e){const i=e[n];let a;qe(i)?"default"in i?a=Le(i.from||n,i.default,!0):a=Le(i.from||n):a=Le(i),Pt(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function S_(e,t,r){sn(_e(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function yT(e,t,r,n){const i=n.includes(".")?cT(r,n):()=>r[n];if(ze(e)){const a=t[e];De(a)&&be(i,a)}else if(De(e))be(i,e.bind(r));else if(qe(e))if(_e(e))e.forEach(a=>yT(a,t,r,n));else{const a=De(e.handler)?e.handler.bind(r):t[e.handler];De(a)&&be(i,a,e)}}function ly(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=>nd(l,u,o,!0)),nd(l,t,o)),qe(t)&&a.set(t,l),l}function nd(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&nd(e,a,r,!0),i&&i.forEach(o=>nd(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=ZI[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const ZI={data:x_,props:C_,emits:C_,methods:Sl,computed:Sl,beforeCreate:ur,created:ur,beforeMount:ur,mounted:ur,beforeUpdate:ur,updated:ur,beforeDestroy:ur,beforeUnmount:ur,destroyed:ur,unmounted:ur,activated:ur,deactivated:ur,errorCaptured:ur,serverPrefetch:ur,components:Sl,directives:Sl,watch:JI,provide:x_,inject:QI};function x_(e,t){return t?e?function(){return Ht(De(e)?e.call(this,this):e,De(t)?t.call(this,this):t)}:t:e}function QI(e,t){return Sl(Wp(e),Wp(t))}function Wp(e){if(_e(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ur(e,t){return e?[...new Set([].concat(e,t))]:t}function Sl(e,t){return e?Ht(Object.create(null),e,t):t}function C_(e,t){return e?_e(e)&&_e(t)?[...new Set([...e,...t])]:Ht(Object.create(null),w_(e),w_(t??{})):t}function JI(e,t){if(!e)return t;if(!t)return e;const r=Ht(Object.create(null),e);for(const n in t)r[n]=ur(e[n],t[n]);return r}function _T(){return{app:null,config:{isNativeTag:RD,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 eO=0;function tO(e,t){return function(n,i=null){De(n)||(n=Ht({},n)),i!=null&&!qe(i)&&(i=null);const a=_T(),o=new WeakSet;let s=!1;const l=a.app={_uid:eO++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:TO,get config(){return a.config},set config(u){},use(u,...f){return o.has(u)||(u&&De(u.install)?(o.add(u),u.install(l,...f)):De(u)&&(o.add(u),u(l,...f))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,f){return f?(a.components[u]=f,l):a.components[u]},directive(u,f){return f?(a.directives[u]=f,l):a.directives[u]},mount(u,f,c){if(!s){const h=Z(n,i);return h.appContext=a,c===!0?c="svg":c===!1&&(c=void 0),f&&t?t(h,u):e(h,u,c),s=!0,l._container=u,u.__vue_app__=l,nh(h.component)||h.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return a.provides[u]=f,l},runWithContext(u){id=l;try{return u()}finally{id=null}}};return l}}let id=null;function Dt(e,t){if(Qt){let r=Qt.provides;const n=Qt.parent&&Qt.parent.provides;n===r&&(r=Qt.provides=Object.create(n)),r[e]=t}}function Le(e,t,r=!1){const n=Qt||Wt;if(n||id){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:id._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&De(t)?t.call(n&&n.proxy):t}}function rO(e,t,r,n=!1){const i={},a={};Jc(a,th,1),e.propsDefaults=Object.create(null),bT(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:Qm(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function nO(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Qe(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let c=0;c<f.length;c++){let h=f[c];if(Zd(e.emitsOptions,h))continue;const d=t[h];if(l)if(Ue(a,h))d!==a[h]&&(a[h]=d,u=!0);else{const v=Pn(h);i[v]=Gp(l,s,v,d,e,!1)}else d!==a[h]&&(a[h]=d,u=!0)}}}else{bT(e,t,i,a)&&(u=!0);let f;for(const c in s)(!t||!Ue(t,c)&&((f=xo(c))===c||!Ue(t,f)))&&(l?r&&(r[c]!==void 0||r[f]!==void 0)&&(i[c]=Gp(l,s,c,void 0,e,!0)):delete i[c]);if(a!==s)for(const c in a)(!t||!Ue(t,c))&&(delete a[c],u=!0)}u&&mi(e,"set","$attrs")}function bT(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(Sc(l))continue;const u=t[l];let f;i&&Ue(i,f=Pn(l))?!a||!a.includes(f)?r[f]=u:(s||(s={}))[f]=u:Zd(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Qe(r),u=s||St;for(let f=0;f<a.length;f++){const c=a[f];r[c]=Gp(i,l,c,u[c],e,!Ue(u,c))}}return o}function Gp(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=Ue(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&De(l)){const{propsDefaults:u}=i;if(r in u)n=u[r];else{const f=Yu(i);n=u[r]=l.call(null,t),f()}}else n=l}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===xo(r))&&(n=!0))}return n}function wT(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 f=c=>{l=!0;const[h,d]=wT(c,t,!0);Ht(o,h),d&&s.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return qe(e)&&n.set(e,as),as;if(_e(a))for(let f=0;f<a.length;f++){const c=Pn(a[f]);T_(c)&&(o[c]=St)}else if(a)for(const f in a){const c=Pn(f);if(T_(c)){const h=a[f],d=o[c]=_e(h)||De(h)?{type:h}:Ht({},h);if(d){const v=P_(Boolean,d.type),p=P_(String,d.type);d[0]=v>-1,d[1]=p<0||v<p,(v>-1||Ue(d,"default"))&&s.push(c)}}}const u=[o,s];return qe(e)&&n.set(e,u),u}function T_(e){return e[0]!=="$"}function M_(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function A_(e,t){return M_(e)===M_(t)}function P_(e,t){return _e(t)?t.findIndex(r=>A_(r,e)):De(t)&&A_(t,e)?0:-1}const ST=e=>e[0]==="_"||e==="$stable",uy=e=>_e(e)?e.map(Hn):[Hn(e)],iO=(e,t,r)=>{if(t._n)return t;const n=q((...i)=>uy(t(...i)),r);return n._c=!1,n},xT=(e,t,r)=>{const n=e._ctx;for(const i in e){if(ST(i))continue;const a=e[i];if(De(a))t[i]=iO(i,a,n);else if(a!=null){const o=uy(a);t[i]=()=>o}}},CT=(e,t)=>{const r=uy(t);e.slots.default=()=>r},aO=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Qe(t),Jc(t,"_",r)):xT(t,e.slots={})}else e.slots={},t&&CT(e,t);Jc(e.slots,th,1)},oO=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=St;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(Ht(i,t),!r&&s===1&&delete i._):(a=!t.$stable,xT(t,i)),o=t}else t&&(CT(e,t),o={default:1});if(a)for(const s in i)!ST(s)&&o[s]==null&&delete i[s]};function Up(e,t,r,n,i=!1){if(_e(e)){e.forEach((h,d)=>Up(h,t&&(_e(t)?t[d]:t),r,n,i));return}if(Il(n)&&!i)return;const a=n.shapeFlag&4?nh(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===St?s.refs={}:s.refs,c=s.setupState;if(u!=null&&u!==l&&(ze(u)?(f[u]=null,Ue(c,u)&&(c[u]=null)):Pt(u)&&(u.value=null)),De(l))ra(l,s,12,[o,f]);else{const h=ze(l),d=Pt(l),v=e.f;if(h||d){const p=()=>{if(v){const m=h?Ue(c,l)?c[l]:f[l]:l.value;i?_e(m)&&Um(m,a):_e(m)?m.includes(a)||m.push(a):h?(f[l]=[a],Ue(c,l)&&(c[l]=f[l])):(l.value=[a],e.k&&(f[e.k]=l.value))}else h?(f[l]=o,Ue(c,l)&&(c[l]=o)):d&&(l.value=o,e.k&&(f[e.k]=o))};i||v?p():(p.id=-1,Sr(p,r))}}}const Sr=II;function sO(e){return lO(e)}function lO(e,t){const r=DC();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:d=Ft,insertStaticContent:v}=e,p=(D,I,W,X=null,j=null,le=null,fe=void 0,ae=null,se=!!I.dynamicChildren)=>{if(D===I)return;D&&!Ya(D,I)&&(X=B(D),J(D,j,le,!0),D=null),I.patchFlag===-2&&(se=!1,I.dynamicChildren=null);const{type:ne,ref:de,shapeFlag:Me}=I;switch(ne){case Bs:m(D,I,W,X);break;case Mr:g(D,I,W,X);break;case qh:D==null&&y(I,W,X,fe);break;case ft:E(D,I,W,X,j,le,fe,ae,se);break;default:Me&1?x(D,I,W,X,j,le,fe,ae,se):Me&6?L(D,I,W,X,j,le,fe,ae,se):(Me&64||Me&128)&&ne.process(D,I,W,X,j,le,fe,ae,se,Q)}de!=null&&j&&Up(de,D&&D.ref,le,I||D,!I)},m=(D,I,W,X)=>{if(D==null)n(I.el=s(I.children),W,X);else{const j=I.el=D.el;I.children!==D.children&&u(j,I.children)}},g=(D,I,W,X)=>{D==null?n(I.el=l(I.children||""),W,X):I.el=D.el},y=(D,I,W,X)=>{[D.el,D.anchor]=v(D.children,I,W,X,D.el,D.anchor)},_=({el:D,anchor:I},W,X)=>{let j;for(;D&&D!==I;)j=h(D),n(D,W,X),D=j;n(I,W,X)},b=({el:D,anchor:I})=>{let W;for(;D&&D!==I;)W=h(D),i(D),D=W;i(I)},x=(D,I,W,X,j,le,fe,ae,se)=>{I.type==="svg"?fe="svg":I.type==="math"&&(fe="mathml"),D==null?w(I,W,X,j,le,fe,ae,se):M(D,I,j,le,fe,ae,se)},w=(D,I,W,X,j,le,fe,ae)=>{let se,ne;const{props:de,shapeFlag:Me,transition:Se,dirs:ke}=D;if(se=D.el=o(D.type,le,de&&de.is,de),Me&8?f(se,D.children):Me&16&&C(D.children,se,null,X,j,jh(D,le),fe,ae),ke&&ma(D,null,X,"created"),S(se,D,D.scopeId,fe,X),de){for(const rt in de)rt!=="value"&&!Sc(rt)&&a(se,rt,null,de[rt],le,D.children,X,j,Ie);"value"in de&&a(se,"value",null,de.value,le),(ne=de.onVnodeBeforeMount)&&kn(ne,X,D)}ke&&ma(D,null,X,"beforeMount");const Ve=uO(j,Se);Ve&&Se.beforeEnter(se),n(se,I,W),((ne=de&&de.onVnodeMounted)||Ve||ke)&&Sr(()=>{ne&&kn(ne,X,D),Ve&&Se.enter(se),ke&&ma(D,null,X,"mounted")},j)},S=(D,I,W,X,j)=>{if(W&&d(D,W),X)for(let le=0;le<X.length;le++)d(D,X[le]);if(j){let le=j.subTree;if(I===le){const fe=j.vnode;S(D,fe,fe.scopeId,fe.slotScopeIds,j.parent)}}},C=(D,I,W,X,j,le,fe,ae,se=0)=>{for(let ne=se;ne<D.length;ne++){const de=D[ne]=ae?qi(D[ne]):Hn(D[ne]);p(null,de,I,W,X,j,le,fe,ae)}},M=(D,I,W,X,j,le,fe)=>{const ae=I.el=D.el;let{patchFlag:se,dynamicChildren:ne,dirs:de}=I;se|=D.patchFlag&16;const Me=D.props||St,Se=I.props||St;let ke;if(W&&ya(W,!1),(ke=Se.onVnodeBeforeUpdate)&&kn(ke,W,I,D),de&&ma(I,D,W,"beforeUpdate"),W&&ya(W,!0),ne?A(D.dynamicChildren,ne,ae,W,X,jh(I,j),le):fe||U(D,I,ae,null,W,X,jh(I,j),le,!1),se>0){if(se&16)P(ae,I,Me,Se,W,X,j);else if(se&2&&Me.class!==Se.class&&a(ae,"class",null,Se.class,j),se&4&&a(ae,"style",Me.style,Se.style,j),se&8){const Ve=I.dynamicProps;for(let rt=0;rt<Ve.length;rt++){const bt=Ve[rt],he=Me[bt],Pe=Se[bt];(Pe!==he||bt==="value")&&a(ae,bt,he,Pe,j,D.children,W,X,Ie)}}se&1&&D.children!==I.children&&f(ae,I.children)}else!fe&&ne==null&&P(ae,I,Me,Se,W,X,j);((ke=Se.onVnodeUpdated)||de)&&Sr(()=>{ke&&kn(ke,W,I,D),de&&ma(I,D,W,"updated")},X)},A=(D,I,W,X,j,le,fe)=>{for(let ae=0;ae<I.length;ae++){const se=D[ae],ne=I[ae],de=se.el&&(se.type===ft||!Ya(se,ne)||se.shapeFlag&70)?c(se.el):W;p(se,ne,de,null,X,j,le,fe,!0)}},P=(D,I,W,X,j,le,fe)=>{if(W!==X){if(W!==St)for(const ae in W)!Sc(ae)&&!(ae in X)&&a(D,ae,W[ae],null,fe,I.children,j,le,Ie);for(const ae in X){if(Sc(ae))continue;const se=X[ae],ne=W[ae];se!==ne&&ae!=="value"&&a(D,ae,ne,se,fe,I.children,j,le,Ie)}"value"in X&&a(D,"value",W.value,X.value,fe)}},E=(D,I,W,X,j,le,fe,ae,se)=>{const ne=I.el=D?D.el:s(""),de=I.anchor=D?D.anchor:s("");let{patchFlag:Me,dynamicChildren:Se,slotScopeIds:ke}=I;ke&&(ae=ae?ae.concat(ke):ke),D==null?(n(ne,W,X),n(de,W,X),C(I.children||[],W,de,j,le,fe,ae,se)):Me>0&&Me&64&&Se&&D.dynamicChildren?(A(D.dynamicChildren,Se,W,j,le,fe,ae),(I.key!=null||j&&I===j.subTree)&&fy(D,I,!0)):U(D,I,W,de,j,le,fe,ae,se)},L=(D,I,W,X,j,le,fe,ae,se)=>{I.slotScopeIds=ae,D==null?I.shapeFlag&512?j.ctx.activate(I,W,X,fe,se):O(I,W,X,j,le,fe,se):N(D,I,se)},O=(D,I,W,X,j,le,fe)=>{const ae=D.component=_O(D,X,j);if(Qd(D)&&(ae.ctx.renderer=Q),bO(ae),ae.asyncDep){if(j&&j.registerDep(ae,H),!D.el){const se=ae.subTree=Z(Mr);g(null,se,I,W)}}else H(ae,D,I,W,j,le,fe)},N=(D,I,W)=>{const X=I.component=D.component;if(PI(D,I,W))if(X.asyncDep&&!X.asyncResolved){V(X,I,W);return}else X.next=I,SI(X.update),X.effect.dirty=!0,X.update();else I.el=D.el,X.vnode=I},H=(D,I,W,X,j,le,fe)=>{const ae=()=>{if(D.isMounted){let{next:de,bu:Me,u:Se,parent:ke,vnode:Ve}=D;{const We=TT(D);if(We){de&&(de.el=Ve.el,V(D,de,fe)),We.asyncDep.then(()=>{D.isUnmounted||ae()});return}}let rt=de,bt;ya(D,!1),de?(de.el=Ve.el,V(D,de,fe)):de=Ve,Me&&Cc(Me),(bt=de.props&&de.props.onVnodeBeforeUpdate)&&kn(bt,ke,de,Ve),ya(D,!0);const he=Gh(D),Pe=D.subTree;D.subTree=he,p(Pe,he,c(Pe.el),B(Pe),D,j,le),de.el=he.el,rt===null&&EI(D,he.el),Se&&Sr(Se,j),(bt=de.props&&de.props.onVnodeUpdated)&&Sr(()=>kn(bt,ke,de,Ve),j)}else{let de;const{el:Me,props:Se}=I,{bm:ke,m:Ve,parent:rt}=D,bt=Il(I);if(ya(D,!1),ke&&Cc(ke),!bt&&(de=Se&&Se.onVnodeBeforeMount)&&kn(de,rt,I),ya(D,!0),Me&&pe){const he=()=>{D.subTree=Gh(D),pe(Me,D.subTree,D,j,null)};bt?I.type.__asyncLoader().then(()=>!D.isUnmounted&&he()):he()}else{const he=D.subTree=Gh(D);p(null,he,W,X,D,j,le),I.el=he.el}if(Ve&&Sr(Ve,j),!bt&&(de=Se&&Se.onVnodeMounted)){const he=I;Sr(()=>kn(de,rt,he),j)}(I.shapeFlag&256||rt&&Il(rt.vnode)&&rt.vnode.shapeFlag&256)&&D.a&&Sr(D.a,j),D.isMounted=!0,I=W=X=null}},se=D.effect=new jm(ae,Ft,()=>ny(ne),D.scope),ne=D.update=()=>{se.dirty&&se.run()};ne.id=D.uid,ya(D,!0),ne()},V=(D,I,W)=>{I.component=D;const X=D.vnode.props;D.vnode=I,D.next=null,nO(D,I.props,X,W),oO(D,I.children,W),Co(),m_(D),To()},U=(D,I,W,X,j,le,fe,ae,se=!1)=>{const ne=D&&D.children,de=D?D.shapeFlag:0,Me=I.children,{patchFlag:Se,shapeFlag:ke}=I;if(Se>0){if(Se&128){z(ne,Me,W,X,j,le,fe,ae,se);return}else if(Se&256){F(ne,Me,W,X,j,le,fe,ae,se);return}}ke&8?(de&16&&Ie(ne,j,le),Me!==ne&&f(W,Me)):de&16?ke&16?z(ne,Me,W,X,j,le,fe,ae,se):Ie(ne,j,le,!0):(de&8&&f(W,""),ke&16&&C(Me,W,X,j,le,fe,ae,se))},F=(D,I,W,X,j,le,fe,ae,se)=>{D=D||as,I=I||as;const ne=D.length,de=I.length,Me=Math.min(ne,de);let Se;for(Se=0;Se<Me;Se++){const ke=I[Se]=se?qi(I[Se]):Hn(I[Se]);p(D[Se],ke,W,null,j,le,fe,ae,se)}ne>de?Ie(D,j,le,!0,!1,Me):C(I,W,X,j,le,fe,ae,se,Me)},z=(D,I,W,X,j,le,fe,ae,se)=>{let ne=0;const de=I.length;let Me=D.length-1,Se=de-1;for(;ne<=Me&&ne<=Se;){const ke=D[ne],Ve=I[ne]=se?qi(I[ne]):Hn(I[ne]);if(Ya(ke,Ve))p(ke,Ve,W,null,j,le,fe,ae,se);else break;ne++}for(;ne<=Me&&ne<=Se;){const ke=D[Me],Ve=I[Se]=se?qi(I[Se]):Hn(I[Se]);if(Ya(ke,Ve))p(ke,Ve,W,null,j,le,fe,ae,se);else break;Me--,Se--}if(ne>Me){if(ne<=Se){const ke=Se+1,Ve=ke<de?I[ke].el:X;for(;ne<=Se;)p(null,I[ne]=se?qi(I[ne]):Hn(I[ne]),W,Ve,j,le,fe,ae,se),ne++}}else if(ne>Se)for(;ne<=Me;)J(D[ne],j,le,!0),ne++;else{const ke=ne,Ve=ne,rt=new Map;for(ne=Ve;ne<=Se;ne++){const gt=I[ne]=se?qi(I[ne]):Hn(I[ne]);gt.key!=null&&rt.set(gt.key,ne)}let bt,he=0;const Pe=Se-Ve+1;let We=!1,Ge=0;const et=new Array(Pe);for(ne=0;ne<Pe;ne++)et[ne]=0;for(ne=ke;ne<=Me;ne++){const gt=D[ne];if(he>=Pe){J(gt,j,le,!0);continue}let Kt;if(gt.key!=null)Kt=rt.get(gt.key);else for(bt=Ve;bt<=Se;bt++)if(et[bt-Ve]===0&&Ya(gt,I[bt])){Kt=bt;break}Kt===void 0?J(gt,j,le,!0):(et[Kt-Ve]=ne+1,Kt>=Ge?Ge=Kt:We=!0,p(gt,I[Kt],W,null,j,le,fe,ae,se),he++)}const zt=We?fO(et):as;for(bt=zt.length-1,ne=Pe-1;ne>=0;ne--){const gt=Ve+ne,Kt=I[gt],Yr=gt+1<de?I[gt+1].el:X;et[ne]===0?p(null,Kt,W,Yr,j,le,fe,ae,se):We&&(bt<0||ne!==zt[bt]?ee(Kt,W,Yr,2):bt--)}}},ee=(D,I,W,X,j=null)=>{const{el:le,type:fe,transition:ae,children:se,shapeFlag:ne}=D;if(ne&6){ee(D.component.subTree,I,W,X);return}if(ne&128){D.suspense.move(I,W,X);return}if(ne&64){fe.move(D,I,W,Q);return}if(fe===ft){n(le,I,W);for(let Me=0;Me<se.length;Me++)ee(se[Me],I,W,X);n(D.anchor,I,W);return}if(fe===qh){_(D,I,W);return}if(X!==2&&ne&1&&ae)if(X===0)ae.beforeEnter(le),n(le,I,W),Sr(()=>ae.enter(le),j);else{const{leave:Me,delayLeave:Se,afterLeave:ke}=ae,Ve=()=>n(le,I,W),rt=()=>{Me(le,()=>{Ve(),ke&&ke()})};Se?Se(le,Ve,rt):rt()}else n(le,I,W)},J=(D,I,W,X=!1,j=!1)=>{const{type:le,props:fe,ref:ae,children:se,dynamicChildren:ne,shapeFlag:de,patchFlag:Me,dirs:Se}=D;if(ae!=null&&Up(ae,null,W,D,!0),de&256){I.ctx.deactivate(D);return}const ke=de&1&&Se,Ve=!Il(D);let rt;if(Ve&&(rt=fe&&fe.onVnodeBeforeUnmount)&&kn(rt,I,D),de&6)$e(D.component,W,X);else{if(de&128){D.suspense.unmount(W,X);return}ke&&ma(D,null,I,"beforeUnmount"),de&64?D.type.remove(D,I,W,j,Q,X):ne&&(le!==ft||Me>0&&Me&64)?Ie(ne,I,W,!1,!0):(le===ft&&Me&384||!j&&de&16)&&Ie(se,I,W),X&&me(D)}(Ve&&(rt=fe&&fe.onVnodeUnmounted)||ke)&&Sr(()=>{rt&&kn(rt,I,D),ke&&ma(D,null,I,"unmounted")},W)},me=D=>{const{type:I,el:W,anchor:X,transition:j}=D;if(I===ft){we(W,X);return}if(I===qh){b(D);return}const le=()=>{i(W),j&&!j.persisted&&j.afterLeave&&j.afterLeave()};if(D.shapeFlag&1&&j&&!j.persisted){const{leave:fe,delayLeave:ae}=j,se=()=>fe(W,le);ae?ae(D.el,le,se):se()}else le()},we=(D,I)=>{let W;for(;D!==I;)W=h(D),i(D),D=W;i(I)},$e=(D,I,W)=>{const{bum:X,scope:j,update:le,subTree:fe,um:ae}=D;X&&Cc(X),j.stop(),le&&(le.active=!1,J(fe,D,I,W)),ae&&Sr(ae,I),Sr(()=>{D.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Ie=(D,I,W,X=!1,j=!1,le=0)=>{for(let fe=le;fe<D.length;fe++)J(D[fe],I,W,X,j)},B=D=>D.shapeFlag&6?B(D.component.subTree):D.shapeFlag&128?D.suspense.next():h(D.anchor||D.el);let Y=!1;const K=(D,I,W)=>{D==null?I._vnode&&J(I._vnode,null,null,!0):p(I._vnode||null,D,I,null,null,null,W),Y||(Y=!0,m_(),aT(),Y=!1),I._vnode=D},Q={p,um:J,m:ee,r:me,mt:O,mc:C,pc:U,pbc:A,n:B,o:e};let oe,pe;return t&&([oe,pe]=t(Q)),{render:K,hydrate:oe,createApp:tO(K,oe)}}function jh({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function ya({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function uO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fy(e,t,r=!1){const n=e.children,i=t.children;if(_e(n)&&_e(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]=qi(i[a]),s.el=o.el),r||fy(o,s)),s.type===Bs&&(s.el=o.el)}}function fO(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}function TT(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:TT(t)}const cO=e=>e.__isTeleport,Rl=e=>e&&(e.disabled||e.disabled===""),E_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,L_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yp=(e,t)=>{const r=e&&e.to;return ze(r)?t?t(r):null:r},dO={name:"Teleport",__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:h,o:{insert:d,querySelector:v,createText:p,createComment:m}}=u,g=Rl(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const x=t.el=p(""),w=t.anchor=p("");d(x,r,n),d(w,r,n);const S=t.target=Yp(t.props,v),C=t.targetAnchor=p("");S&&(d(C,S),o==="svg"||E_(S)?o="svg":(o==="mathml"||L_(S))&&(o="mathml"));const M=(A,P)=>{y&16&&f(_,A,P,i,a,o,s,l)};g?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=Rl(e.props),M=C?r:w,A=C?x:S;if(o==="svg"||E_(w)?o="svg":(o==="mathml"||L_(w))&&(o="mathml"),b?(h(e.dynamicChildren,b,M,i,a,o,s),fy(e,t,!0)):l||c(e,t,M,A,i,a,o,s,!1),g)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):wf(t,r,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=Yp(t.props,v);P&&wf(t,P,null,u,0)}else C&&wf(t,w,S,u,1)}AT(t)},remove(e,t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:f,target:c,props:h}=e;if(c&&a(f),o&&a(u),s&16){const d=o||!Rl(h);for(let v=0;v<l.length;v++){const p=l[v];i(p,t,r,d,!!p.dynamicChildren)}}},move:wf,hydrate:hO};function wf(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:f}=e,c=a===2;if(c&&n(o,t,r),(!c||Rl(f))&&l&16)for(let h=0;h<u.length;h++)i(u[h],t,r,2);c&&n(s,t,r)}function hO(e,t,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const f=t.target=Yp(t.props,l);if(f){const c=f._lpa||f.firstChild;if(t.shapeFlag&16)if(Rl(t.props))t.anchor=u(o(e),t,s(e),r,n,i,a),t.targetAnchor=c;else{t.anchor=o(e);let h=c;for(;h;)if(h=o(h),h&&h.nodeType===8&&h.data==="teleport anchor"){t.targetAnchor=h,f._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(c,t,f,r,n,i,a)}AT(t)}return t.anchor&&o(t.anchor)}const MT=dO;function AT(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r&&r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const ft=Symbol.for("v-fgt"),Bs=Symbol.for("v-txt"),Mr=Symbol.for("v-cmt"),qh=Symbol.for("v-stc"),kl=[];let Sn=null;function G(e=!1){kl.push(Sn=e?null:[])}function vO(){kl.pop(),Sn=kl[kl.length-1]||null}let du=1;function D_(e){du+=e}function PT(e){return e.dynamicChildren=du>0?Sn||as:null,vO(),du>0&&Sn&&Sn.push(e),e}function ce(e,t,r,n,i,a){return PT(te(e,t,r,n,i,a,!0))}function ve(e,t,r,n,i){return PT(Z(e,t,r,n,i,!0))}function la(e){return e?e.__v_isVNode===!0:!1}function Ya(e,t){return e.type===t.type&&e.key===t.key}const th="__vInternal",ET=({key:e})=>e??null,Mc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?ze(e)||Pt(e)||De(e)?{i:Wt,r:e,k:t,f:!!r}:e:null);function te(e,t=null,r=null,n=0,i=null,a=e===ft?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ET(t),ref:t&&Mc(t),scopeId:lT,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:Wt};return s?(cy(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=ze(r)?8:16),du>0&&!o&&Sn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Sn.push(l),l}const Z=pO;function pO(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===uT)&&(e=Mr),la(e)){const s=_i(e,t,!0);return r&&cy(s,r),du>0&&!a&&Sn&&(s.shapeFlag&6?Sn[Sn.indexOf(e)]=s:Sn.push(s)),s.patchFlag|=-2,s}if(CO(e)&&(e=e.__vccOpts),t){t=gO(t);let{class:s,style:l}=t;s&&!ze(s)&&(t.class=re(s)),qe(l)&&(KC(l)&&!_e(l)&&(l=Ht({},l)),t.style=ct(l))}const o=ze(e)?1:DI(e)?128:cO(e)?64:qe(e)?4:De(e)?2:0;return te(e,t,r,n,i,o,a,!0)}function gO(e){return e?KC(e)||th in e?Ht({},e):e:null}function _i(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?ei(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&ET(s),ref:t&&t.ref?r&&i?_e(i)?i.concat(Mc(t)):[i,Mc(t)]:Mc(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!==ft?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&&_i(e.ssContent),ssFallback:e.ssFallback&&_i(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function pt(e=" ",t=0){return Z(Bs,null,e,t)}function Ae(e="",t=!1){return t?(G(),ve(Mr,null,e)):Z(Mr,null,e)}function Hn(e){return e==null||typeof e=="boolean"?Z(Mr):_e(e)?Z(ft,null,e.slice()):typeof e=="object"?qi(e):Z(Bs,null,String(e))}function qi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_i(e)}function cy(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(_e(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),cy(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(th in t)?t._ctx=Wt:i===3&&Wt&&(Wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else De(t)?(t={default:t,_ctx:Wt},r=32):(t=String(t),n&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function ei(...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=re([t.class,n.class]));else if(i==="style")t.style=ct([t.style,n.style]);else if(Wd(i)){const a=t[i],o=n[i];o&&a!==o&&!(_e(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function kn(e,t,r,n=null){sn(e,t,7,[r,n])}const mO=_T();let yO=0;function _O(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||mO,a={uid:yO++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new qD(!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:wT(n,i),emitsOptions:sT(n,i),emit:null,emitted:null,propsDefaults:St,inheritAttrs:n.inheritAttrs,ctx:St,data:St,props:St,attrs:St,slots:St,refs:St,setupState:St,setupContext:null,attrsProxy:null,slotsProxy: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=TI.bind(null,a),e.ce&&e.ce(a),a}let Qt=null;const it=()=>Qt||Wt;let ad,jp;{const e=DC(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};ad=t("__VUE_INSTANCE_SETTERS__",r=>Qt=r),jp=t("__VUE_SSR_SETTERS__",r=>rh=r)}const Yu=e=>{const t=Qt;return ad(e),e.scope.on(),()=>{e.scope.off(),ad(t)}},I_=()=>{Qt&&Qt.scope.off(),ad(null)};function LT(e){return e.vnode.shapeFlag&4}let rh=!1;function bO(e,t=!1){t&&jp(t);const{props:r,children:n}=e.vnode,i=LT(e);rO(e,r,i,t),aO(e,n);const a=i?wO(e,t):void 0;return t&&jp(!1),a}function wO(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=XC(new Proxy(e.ctx,jI));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?IT(e):null,a=Yu(e);Co();const o=ra(n,e,0,[e.props,i]);if(To(),a(),Qc(o)){if(o.then(I_,I_),t)return o.then(s=>{O_(e,s,t)}).catch(s=>{Xd(s,e,0)});e.asyncDep=o}else O_(e,o,t)}else DT(e,t)}function O_(e,t,r){De(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qe(t)&&(e.setupState=tT(t)),DT(e,r)}let R_;function DT(e,t,r){const n=e.type;if(!e.render){if(!t&&R_&&!n.render){const i=n.template||ly(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Ht(Ht({isCustomElement:a,delimiters:s},o),l);n.render=R_(i,u)}}e.render=n.render||Ft}{const i=Yu(e);Co();try{KI(e)}finally{To(),i()}}}function SO(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return Lr(e,"get","$attrs"),t[r]}}))}function IT(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return SO(e)},slots:e.slots,emit:e.emit,expose:t}}function nh(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tT(XC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ol)return Ol[r](e)},has(t,r){return r in t||r in Ol}}))}function xO(e,t=!0){return De(e)?e.displayName||e.name:e.name||t&&e.__name}function CO(e){return De(e)&&"__vccOpts"in e}const k=(e,t)=>QC(e,t,rh);function Te(e,t,r){const n=arguments.length;return n===2?qe(t)&&!_e(t)?la(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&la(r)&&(r=[r]),Z(e,t,r))}const TO="3.4.15",MO=Ft;/**
 * @vue/runtime-dom v3.4.15
 * (c) 2018-present Yuxi (Evan) You and Vue contributors
 * @license MIT
-**/const AO="http://www.w3.org/2000/svg",PO="http://www.w3.org/1998/Math/MathML",Ki=typeof document<"u"?document:null,k_=Ki&&Ki.createElement("template"),EO={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==="svg"?Ki.createElementNS(AO,e):t==="mathml"?Ki.createElementNS(PO,e):Ki.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ki.createTextNode(e),createComment:e=>Ki.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ki.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{k_.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const s=k_.content;if(n==="svg"||n==="mathml"){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]}},Ii="transition",Xs="animation",vs=Symbol("_vtc"),ti=(e,{slots:t})=>Te(BI,RT(e),t);ti.displayName="Transition";const OT={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},LO=ti.props=$t({},hT,OT),_a=(e,t=[])=>{_e(e)?e.forEach(r=>r(...t)):e&&e(...t)},N_=e=>e?_e(e)?e.some(t=>t.length>1):e.length>1:!1;function RT(e){const t={};for(const E in e)E in OT||(t[E]=e[E]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=e,v=DO(i),p=v&&v[0],m=v&&v[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:x,onBeforeAppear:w=g,onAppear:S=y,onAppearCancelled:C=_}=t,M=(E,L,O)=>{zi(E,L?f:s),zi(E,L?u:o),O&&O()},A=(E,L)=>{E._isLeaving=!1,zi(E,c),zi(E,d),zi(E,h),L&&L()},P=E=>(L,O)=>{const N=E?S:y,H=()=>M(L,E,O);_a(N,[L,H]),B_(()=>{zi(L,E?l:a),ci(L,E?f:s),N_(N)||F_(L,n,p,H)})};return $t(t,{onBeforeEnter(E){_a(g,[E]),ci(E,a),ci(E,o)},onBeforeAppear(E){_a(w,[E]),ci(E,l),ci(E,u)},onEnter:P(!1),onAppear:P(!0),onLeave(E,L){E._isLeaving=!0;const O=()=>A(E,L);ci(E,c),NT(),ci(E,h),B_(()=>{E._isLeaving&&(zi(E,c),ci(E,d),N_(b)||F_(E,n,m,O))}),_a(b,[E,O])},onEnterCancelled(E){M(E,!1),_a(_,[E])},onAppearCancelled(E){M(E,!0),_a(C,[E])},onLeaveCancelled(E){A(E),_a(x,[E])}})}function DO(e){if(e==null)return null;if(qe(e))return[Kh(e.enter),Kh(e.leave)];{const t=Kh(e);return[t,t]}}function Kh(e){return HD(e)}function ci(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[vs]||(e[vs]=new Set)).add(t)}function zi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[vs];r&&(r.delete(t),r.size||(e[vs]=void 0))}function B_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let IO=0;function F_(e,t,r,n){const i=e._endId=++IO,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=kT(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,h),a()},h=d=>{d.target===e&&++f>=l&&c()};setTimeout(()=>{f<l&&c()},s+1),e.addEventListener(u,h)}function kT(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),i=n(`${Ii}Delay`),a=n(`${Ii}Duration`),o=$_(i,a),s=n(`${Xs}Delay`),l=n(`${Xs}Duration`),u=$_(s,l);let f=null,c=0,h=0;t===Ii?o>0&&(f=Ii,c=o,h=a.length):t===Xs?u>0&&(f=Xs,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?Ii:Xs:null,h=f?f===Ii?a.length:l.length:0);const d=f===Ii&&/\b(transform|all)(,|$)/.test(n(`${Ii}Property`).toString());return{type:f,timeout:c,propCount:h,hasTransform:d}}function $_(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>H_(r)+H_(e[n])))}function H_(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function NT(){return document.body.offsetHeight}function OO(e,t,r){const n=e[vs];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const dy=Symbol("_vod"),Kn={beforeMount(e,{value:t},{transition:r}){e[dy]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Zs(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),Zs(e,!0),n.enter(e)):n.leave(e,()=>{Zs(e,!1)}):Zs(e,t))},beforeUnmount(e,{value:t}){Zs(e,t)}};function Zs(e,t){e.style.display=t?e[dy]:"none"}const RO=Symbol("");function kO(e,t,r){const n=e.style,i=n.display,a=ze(r);if(r&&!a){if(t&&!ze(t))for(const o in t)r[o]==null&&qp(n,o,"");for(const o in r)qp(n,o,r[o])}else if(a){if(t!==r){const o=n[RO];o&&(r+=";"+o),n.cssText=r}}else t&&e.removeAttribute("style");dy in e&&(n.display=i)}const z_=/\s*!important$/;function qp(e,t,r){if(_e(r))r.forEach(n=>qp(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=NO(e,t);z_.test(r)?e.setProperty(xo(n),r.replace(z_,""),"important"):e[n]=r}}const V_=["Webkit","Moz","ms"],Xh={};function NO(e,t){const r=Xh[t];if(r)return r;let n=Pn(t);if(n!=="filter"&&n in e)return Xh[t]=n;n=Yd(n);for(let i=0;i<V_.length;i++){const a=V_[i]+n;if(a in e)return Xh[t]=a}return t}const W_="http://www.w3.org/1999/xlink";function BO(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(W_,t.slice(6,t.length)):e.setAttributeNS(W_,t,r);else{const a=YD(t);r==null||a&&!IC(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function FO(e,t,r,n,i,a,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,a),e[t]=r??"";return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){e._value=r;const u=s==="OPTION"?e.getAttribute("value"):e.value,f=r??"";u!==f&&(e.value=f),r==null&&e.removeAttribute(t);return}let l=!1;if(r===""||r==null){const u=typeof e[t];u==="boolean"?r=IC(r):r==null&&u==="string"?(r="",l=!0):u==="number"&&(r=0,l=!0)}try{e[t]=r}catch{}l&&e.removeAttribute(t)}function BT(e,t,r,n){e.addEventListener(t,r,n)}function $O(e,t,r,n){e.removeEventListener(t,r,n)}const G_=Symbol("_vei");function HO(e,t,r,n,i=null){const a=e[G_]||(e[G_]={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=zO(t);if(n){const u=a[t]=GO(n,i);BT(e,s,u,l)}else o&&($O(e,s,o,l),a[t]=void 0)}}const U_=/(?:Once|Passive|Capture)$/;function zO(e){let t;if(U_.test(e)){t={};let n;for(;n=e.match(U_);)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 Zh=0;const VO=Promise.resolve(),WO=()=>Zh||(VO.then(()=>Zh=0),Zh=Date.now());function GO(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;sn(UO(n,r.value),t,5,[n])};return r.value=e,r.attached=WO(),r}function UO(e,t){if(_e(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 Y_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,YO=(e,t,r,n,i,a,o,s,l)=>{const u=i==="svg";t==="class"?OO(e,n,u):t==="style"?kO(e,r,n):Wd(t)?Gm(t)||HO(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jO(e,t,n,u))?FO(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),BO(e,t,n,u))};function jO(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Y_(t)&&De(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Y_(t)&&ze(r)?!1:t in e}const FT=new WeakMap,$T=new WeakMap,od=Symbol("_moveCb"),j_=Symbol("_enterCb"),HT={name:"TransitionGroup",props:$t({},LO,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=it(),n=dT();let i,a;return Uu(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!JO(i[0].el,r.vnode.el,o))return;i.forEach(XO),i.forEach(ZO);const s=i.filter(QO);NT(),s.forEach(l=>{const u=l.el,f=u.style;ci(u,o),f.transform=f.webkitTransform=f.transitionDuration="";const c=u[od]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",c),u[od]=null,zi(u,o))};u.addEventListener("transitionend",c)})}),()=>{const o=Qe(e),s=RT(o);let l=o.tag||ft;i=a,a=t.default?sy(t.default()):[];for(let u=0;u<a.length;u++){const f=a[u];f.key!=null&&cu(f,fu(f,s,n,r))}if(i)for(let u=0;u<i.length;u++){const f=i[u];cu(f,fu(f,s,n,r)),FT.set(f,f.el.getBoundingClientRect())}return Z(l,null,a)}}},qO=e=>delete e.mode;HT.props;const KO=HT;function XO(e){const t=e.el;t[od]&&t[od](),t[j_]&&t[j_]()}function ZO(e){$T.set(e,e.el.getBoundingClientRect())}function QO(e){const t=FT.get(e),r=$T.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 JO(e,t,r){const n=e.cloneNode(),i=e[vs];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:o}=kT(n);return a.removeChild(n),o}const q_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return _e(t)?r=>Cc(t,r):t},Qh=Symbol("_assign"),sd={deep:!0,created(e,t,r){e[Qh]=q_(r),BT(e,"change",()=>{const n=e._modelValue,i=eR(e),a=e.checked,o=e[Qh];if(_e(n)){const s=OC(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(Gd(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(zT(e,a))})},mounted:K_,beforeUpdate(e,t,r){e[Qh]=q_(r),K_(e,t,r)}};function K_(e,{value:t,oldValue:r},n){e._modelValue=t,_e(t)?e.checked=OC(t,n.props.value)>-1:Gd(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=jd(t,zT(e,!0)))}function eR(e){return"_value"in e?e._value:e.value}function zT(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const tR=["ctrl","shift","alt","meta"],rR={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)=>tR.some(r=>e[`${r}Key`]&&!t.includes(r))},ua=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o<t.length;o++){const s=rR[t[o]];if(s&&s(i,t))return}return e(i,...a)})},nR={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},iR=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const a=xo(i.key);if(t.some(o=>o===a||nR[o]===a))return e(i)})},aR=$t({patchProp:YO},EO);let X_;function VT(){return X_||(X_=sO(aR))}const ld=(...e)=>{VT().render(...e)},oR=(...e)=>{const t=VT().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=lR(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,sR(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function sR(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lR(e){return ze(e)?document.querySelector(e):e}const Ac=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},di=(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 Z_;const At=typeof window<"u",uR=e=>typeof e=="function",fR=e=>typeof e=="string",Kp=()=>{};At&&((Z_=window==null?void 0:window.navigator)!=null&&Z_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():T(e)}function WT(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 GT=e=>e();function cR(e,t={}){let r,n,i=Kp;const a=s=>{clearTimeout(s),i(),i=Kp};return s=>{const l=po(e),u=po(t.maxWait);return r&&a(r),l<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((f,c)=>{i=t.rejectOnCancel?c:f,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,f(s())},u)),r=setTimeout(()=>{n&&a(n),n=null,f(s())},l)})}}function dR(e=GT){const t=$(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:Gu(t),pause:r,resume:n,eventFilter:i}}function hR(e){return e}function ju(e){return kC()?(NC(e),!0):!1}function vR(e,t=200,r={}){return WT(cR(t,r),e)}function pR(e,t=200,r={}){const n=$(e.value),i=vR(()=>{n.value=e.value},t,r);return we(e,()=>i()),n}function gR(e){return typeof e=="function"?k(e):$(e)}function UT(e,t=!0){it()?_t(e):t?e():kt(e)}function hu(e,t,r={}){const{immediate:n=!0}=r,i=$(!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)},po(t))}return n&&(i.value=!0,At&&l()),ju(s),{isPending:Gu(i),start:l,stop:s}}function mR(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,i=Pt(e),a=$(e);function o(s){if(arguments.length)return a.value=s,a.value;{const l=po(r);return a.value=a.value===l?po(n):l,a.value}}return i?o:[a,o]}var Q_=Object.getOwnPropertySymbols,yR=Object.prototype.hasOwnProperty,_R=Object.prototype.propertyIsEnumerable,bR=(e,t)=>{var r={};for(var n in e)yR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Q_)for(var n of Q_(e))t.indexOf(n)<0&&_R.call(e,n)&&(r[n]=e[n]);return r};function wR(e,t,r={}){const n=r,{eventFilter:i=GT}=n,a=bR(n,["eventFilter"]);return we(e,WT(i,t),a)}var SR=Object.defineProperty,xR=Object.defineProperties,CR=Object.getOwnPropertyDescriptors,ud=Object.getOwnPropertySymbols,YT=Object.prototype.hasOwnProperty,jT=Object.prototype.propertyIsEnumerable,J_=(e,t,r)=>t in e?SR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TR=(e,t)=>{for(var r in t||(t={}))YT.call(t,r)&&J_(e,r,t[r]);if(ud)for(var r of ud(t))jT.call(t,r)&&J_(e,r,t[r]);return e},MR=(e,t)=>xR(e,CR(t)),AR=(e,t)=>{var r={};for(var n in e)YT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ud)for(var n of ud(e))t.indexOf(n)<0&&jT.call(e,n)&&(r[n]=e[n]);return r};function PR(e,t,r={}){const n=r,{eventFilter:i}=n,a=AR(n,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=dR(i);return{stop:wR(e,t,MR(TR({},a),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Zi(e){var t;const r=po(e);return(t=r==null?void 0:r.$el)!=null?t:r}const fa=At?window:void 0;function xn(...e){let t,r,n,i;if(fR(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=fa):[t,r,n,i]=e,!t)return Kp;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,c,h)=>(f.addEventListener(c,h,i),()=>f.removeEventListener(c,h,i)),l=we(()=>Zi(t),f=>{o(),f&&a.push(...r.flatMap(c=>n.map(h=>s(f,c,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return ju(u),u}function ER(e,t,r={}){const{window:n=fa,ignore:i=[],capture:a=!0,detectIframe:o=!1}=r;if(!n)return;let s=!0,l;const u=d=>i.some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(p=>p===d.target||d.composedPath().includes(p));{const p=Zi(v);return p&&(d.target===p||d.composedPath().includes(p))}}),f=d=>{n.clearTimeout(l);const v=Zi(e);if(!(!v||v===d.target||d.composedPath().includes(v))){if(d.detail===0&&(s=!u(d)),!s){s=!0;return}t(d)}},c=[xn(n,"click",f,{passive:!0,capture:a}),xn(n,"pointerdown",d=>{const v=Zi(e);v&&(s=!d.composedPath().includes(v)&&!u(d))},{passive:!0}),xn(n,"pointerup",d=>{if(d.button===0){const v=d.composedPath();d.composedPath=()=>v,l=n.setTimeout(()=>f(d),50)}},{passive:!0}),o&&xn(n,"blur",d=>{var v;const p=Zi(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function qT(e,t=!1){const r=$(),n=()=>r.value=!!e();return n(),UT(n,t),r}function LR(e,t={}){const{window:r=fa}=t,n=qT(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=$(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},s=()=>{n.value&&(o(),i=r.matchMedia(gR(e).value),a.value=i.matches,"addEventListener"in i?i.addEventListener("change",s):i.addListener(s))};return na(s),ju(()=>o()),a}const Xp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zp="__vueuse_ssr_handlers__";Xp[Zp]=Xp[Zp]||{};const DR=Xp[Zp];function KT(e,t){return DR[e]||t}function IR(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 OR=Object.defineProperty,eb=Object.getOwnPropertySymbols,RR=Object.prototype.hasOwnProperty,kR=Object.prototype.propertyIsEnumerable,tb=(e,t,r)=>t in e?OR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rb=(e,t)=>{for(var r in t||(t={}))RR.call(t,r)&&tb(e,r,t[r]);if(eb)for(var r of eb(t))kR.call(t,r)&&tb(e,r,t[r]);return e};const NR={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 BR(e,t,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:f,window:c=fa,eventFilter:h,onError:d=S=>{console.error(S)}}=n,v=(f?ty:$)(t);if(!r)try{r=KT("getDefaultStorage",()=>{var S;return(S=fa)==null?void 0:S.localStorage})()}catch(S){d(S)}if(!r)return v;const p=po(t),m=IR(p),g=(i=n.serializer)!=null?i:NR[m],{pause:y,resume:_}=PR(v,()=>b(v.value),{flush:a,deep:o,eventFilter:h});return c&&s&&xn(c,"storage",w),w(),v;function b(S){try{if(S==null)r.removeItem(e);else{const C=g.write(S),M=r.getItem(e);M!==C&&(r.setItem(e,C),c&&(c==null||c.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:M,newValue:C,storageArea:r}))))}}catch(C){d(C)}}function x(S){const C=S?S.newValue:r.getItem(e);if(C==null)return l&&p!==null&&r.setItem(e,g.write(p)),p;if(!S&&u){const M=g.read(C);return uR(u)?u(M,p):m==="object"&&!Array.isArray(M)?rb(rb({},p),M):M}else return typeof C!="string"?C:g.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){d(C)}finally{S?kt(_):_()}}}}}function XT(e){return LR("(prefers-color-scheme: dark)",e)}var FR=Object.defineProperty,nb=Object.getOwnPropertySymbols,$R=Object.prototype.hasOwnProperty,HR=Object.prototype.propertyIsEnumerable,ib=(e,t,r)=>t in e?FR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zR=(e,t)=>{for(var r in t||(t={}))$R.call(t,r)&&ib(e,r,t[r]);if(nb)for(var r of nb(t))HR.call(t,r)&&ib(e,r,t[r]);return e};function VR(e={}){const{selector:t="html",attribute:r="class",initialValue:n="auto",window:i=fa,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:u}=e,f=zR({auto:"",light:"light",dark:"dark"},e.modes||{}),c=XT({window:i}),h=k(()=>c.value?"dark":"light"),d=l||(o==null?$(n):BR(o,n,a,{window:i,listenToStorageChanges:s})),v=k({get(){return d.value==="auto"&&!u?h.value:d.value},set(y){d.value=y}}),p=KT("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(f).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 m(y){var _;const b=y==="auto"?h.value:y;p(t,r,(_=f[b])!=null?_:b)}function g(y){e.onChanged?e.onChanged(y,m):m(y)}return we(v,g,{flush:"post",immediate:!0}),u&&we(h,()=>g(v.value),{flush:"post"}),UT(()=>g(v.value)),v}var WR=Object.defineProperty,GR=Object.defineProperties,UR=Object.getOwnPropertyDescriptors,ab=Object.getOwnPropertySymbols,YR=Object.prototype.hasOwnProperty,jR=Object.prototype.propertyIsEnumerable,ob=(e,t,r)=>t in e?WR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qR=(e,t)=>{for(var r in t||(t={}))YR.call(t,r)&&ob(e,r,t[r]);if(ab)for(var r of ab(t))jR.call(t,r)&&ob(e,r,t[r]);return e},KR=(e,t)=>GR(e,UR(t));function XR(e={}){const{valueDark:t="dark",valueLight:r="",window:n=fa}=e,i=VR(KR(qR({},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=XT({window:n});return k({get(){return i.value==="dark"},set(s){s===a.value?i.value="auto":i.value=s?"dark":"light"}})}var sb=Object.getOwnPropertySymbols,ZR=Object.prototype.hasOwnProperty,QR=Object.prototype.propertyIsEnumerable,JR=(e,t)=>{var r={};for(var n in e)ZR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&sb)for(var n of sb(e))t.indexOf(n)<0&&QR.call(e,n)&&(r[n]=e[n]);return r};function ps(e,t,r={}){const n=r,{window:i=fa}=n,a=JR(n,["window"]);let o;const s=qT(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=we(()=>Zi(e),c=>{l(),s.value&&i&&c&&(o=new ResizeObserver(t),o.observe(c,a))},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return ju(f),{isSupported:s,stop:f}}var lb;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(lb||(lb={}));var ek=Object.defineProperty,ub=Object.getOwnPropertySymbols,tk=Object.prototype.hasOwnProperty,rk=Object.prototype.propertyIsEnumerable,fb=(e,t,r)=>t in e?ek(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nk=(e,t)=>{for(var r in t||(t={}))tk.call(t,r)&&fb(e,r,t[r]);if(ub)for(var r of ub(t))rk.call(t,r)&&fb(e,r,t[r]);return e};const ik={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]};nk({linear:hR},ik);var ZT=typeof global=="object"&&global&&global.Object===Object&&global,ak=typeof self=="object"&&self&&self.Object===Object&&self,Dn=ZT||ak||Function("return this")(),fn=Dn.Symbol,QT=Object.prototype,ok=QT.hasOwnProperty,sk=QT.toString,Qs=fn?fn.toStringTag:void 0;function lk(e){var t=ok.call(e,Qs),r=e[Qs];try{e[Qs]=void 0;var n=!0}catch{}var i=sk.call(e);return n&&(t?e[Qs]=r:delete e[Qs]),i}var uk=Object.prototype,fk=uk.toString;function ck(e){return fk.call(e)}var dk="[object Null]",hk="[object Undefined]",cb=fn?fn.toStringTag:void 0;function Mo(e){return e==null?e===void 0?hk:dk:cb&&cb in Object(e)?lk(e):ck(e)}function Xn(e){return e!=null&&typeof e=="object"}var vk="[object Symbol]";function ih(e){return typeof e=="symbol"||Xn(e)&&Mo(e)==vk}function JT(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 gr=Array.isArray,pk=1/0,db=fn?fn.prototype:void 0,hb=db?db.toString:void 0;function eM(e){if(typeof e=="string")return e;if(gr(e))return JT(e,eM)+"";if(ih(e))return hb?hb.call(e):"";var t=e+"";return t=="0"&&1/e==-pk?"-0":t}var gk=/\s/;function mk(e){for(var t=e.length;t--&&gk.test(e.charAt(t)););return t}var yk=/^\s+/;function _k(e){return e&&e.slice(0,mk(e)+1).replace(yk,"")}function Dr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vb=NaN,bk=/^[-+]0x[0-9a-f]+$/i,wk=/^0b[01]+$/i,Sk=/^0o[0-7]+$/i,xk=parseInt;function pb(e){if(typeof e=="number")return e;if(ih(e))return vb;if(Dr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Dr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_k(e);var r=wk.test(e);return r||Sk.test(e)?xk(e.slice(2),r?2:8):bk.test(e)?vb:+e}function hy(e){return e}var Ck="[object AsyncFunction]",Tk="[object Function]",Mk="[object GeneratorFunction]",Ak="[object Proxy]";function vy(e){if(!Dr(e))return!1;var t=Mo(e);return t==Tk||t==Mk||t==Ck||t==Ak}var Jh=Dn["__core-js_shared__"],gb=function(){var e=/[^.]+$/.exec(Jh&&Jh.keys&&Jh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Pk(e){return!!gb&&gb in e}var Ek=Function.prototype,Lk=Ek.toString;function Ao(e){if(e!=null){try{return Lk.call(e)}catch{}try{return e+""}catch{}}return""}var Dk=/[\\^$.*+?()[\]{}|]/g,Ik=/^\[object .+?Constructor\]$/,Ok=Function.prototype,Rk=Object.prototype,kk=Ok.toString,Nk=Rk.hasOwnProperty,Bk=RegExp("^"+kk.call(Nk).replace(Dk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fk(e){if(!Dr(e)||Pk(e))return!1;var t=vy(e)?Bk:Ik;return t.test(Ao(e))}function $k(e,t){return e==null?void 0:e[t]}function Po(e,t){var r=$k(e,t);return Fk(r)?r:void 0}var Qp=Po(Dn,"WeakMap"),mb=Object.create,Hk=function(){function e(){}return function(t){if(!Dr(t))return{};if(mb)return mb(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function zk(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 tM(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Vk=800,Wk=16,Gk=Date.now;function Uk(e){var t=0,r=0;return function(){var n=Gk(),i=Wk-(n-r);if(r=n,i>0){if(++t>=Vk)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Yk(e){return function(){return e}}var fd=function(){try{var e=Po(Object,"defineProperty");return e({},"",{}),e}catch{}}(),jk=fd?function(e,t){return fd(e,"toString",{configurable:!0,enumerable:!1,value:Yk(t),writable:!0})}:hy;const qk=jk;var rM=Uk(qk);function Kk(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Xk=9007199254740991,Zk=/^(?:0|[1-9]\d*)$/;function ah(e,t){var r=typeof e;return t=t??Xk,!!t&&(r=="number"||r!="symbol"&&Zk.test(e))&&e>-1&&e%1==0&&e<t}function py(e,t,r){t=="__proto__"&&fd?fd(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function qu(e,t){return e===t||e!==e&&t!==t}var Qk=Object.prototype,Jk=Qk.hasOwnProperty;function gy(e,t,r){var n=e[t];(!(Jk.call(e,t)&&qu(n,r))||r===void 0&&!(t in e))&&py(e,t,r)}function Ku(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?py(r,s,l):gy(r,s,l)}return r}var yb=Math.max;function nM(e,t,r){return t=yb(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=yb(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),zk(e,this,s)}}function eN(e,t){return rM(nM(e,t,hy),e+"")}var tN=9007199254740991;function my(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tN}function Ns(e){return e!=null&&my(e.length)&&!vy(e)}function rN(e,t,r){if(!Dr(r))return!1;var n=typeof t;return(n=="number"?Ns(r)&&ah(t,r.length):n=="string"&&t in r)?qu(r[t],e):!1}function nN(e){return eN(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&&rN(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 iN=Object.prototype;function yy(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||iN;return e===r}function aN(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var oN="[object Arguments]";function _b(e){return Xn(e)&&Mo(e)==oN}var iM=Object.prototype,sN=iM.hasOwnProperty,lN=iM.propertyIsEnumerable,vu=_b(function(){return arguments}())?_b:function(e){return Xn(e)&&sN.call(e,"callee")&&!lN.call(e,"callee")};function uN(){return!1}var aM=typeof $r=="object"&&$r&&!$r.nodeType&&$r,bb=aM&&typeof Hr=="object"&&Hr&&!Hr.nodeType&&Hr,fN=bb&&bb.exports===aM,wb=fN?Dn.Buffer:void 0,cN=wb?wb.isBuffer:void 0,pu=cN||uN,dN="[object Arguments]",hN="[object Array]",vN="[object Boolean]",pN="[object Date]",gN="[object Error]",mN="[object Function]",yN="[object Map]",_N="[object Number]",bN="[object Object]",wN="[object RegExp]",SN="[object Set]",xN="[object String]",CN="[object WeakMap]",TN="[object ArrayBuffer]",MN="[object DataView]",AN="[object Float32Array]",PN="[object Float64Array]",EN="[object Int8Array]",LN="[object Int16Array]",DN="[object Int32Array]",IN="[object Uint8Array]",ON="[object Uint8ClampedArray]",RN="[object Uint16Array]",kN="[object Uint32Array]",wt={};wt[AN]=wt[PN]=wt[EN]=wt[LN]=wt[DN]=wt[IN]=wt[ON]=wt[RN]=wt[kN]=!0;wt[dN]=wt[hN]=wt[TN]=wt[vN]=wt[MN]=wt[pN]=wt[gN]=wt[mN]=wt[yN]=wt[_N]=wt[bN]=wt[wN]=wt[SN]=wt[xN]=wt[CN]=!1;function NN(e){return Xn(e)&&my(e.length)&&!!wt[Mo(e)]}function _y(e){return function(t){return e(t)}}var oM=typeof $r=="object"&&$r&&!$r.nodeType&&$r,Nl=oM&&typeof Hr=="object"&&Hr&&!Hr.nodeType&&Hr,BN=Nl&&Nl.exports===oM,ev=BN&&ZT.process,gs=function(){try{var e=Nl&&Nl.require&&Nl.require("util").types;return e||ev&&ev.binding&&ev.binding("util")}catch{}}(),Sb=gs&&gs.isTypedArray,by=Sb?_y(Sb):NN,FN=Object.prototype,$N=FN.hasOwnProperty;function sM(e,t){var r=gr(e),n=!r&&vu(e),i=!r&&!n&&pu(e),a=!r&&!n&&!i&&by(e),o=r||n||i||a,s=o?aN(e.length,String):[],l=s.length;for(var u in e)(t||$N.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ah(u,l)))&&s.push(u);return s}function lM(e,t){return function(r){return e(t(r))}}var HN=lM(Object.keys,Object),zN=Object.prototype,VN=zN.hasOwnProperty;function WN(e){if(!yy(e))return HN(e);var t=[];for(var r in Object(e))VN.call(e,r)&&r!="constructor"&&t.push(r);return t}function Xu(e){return Ns(e)?sM(e):WN(e)}function GN(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var UN=Object.prototype,YN=UN.hasOwnProperty;function jN(e){if(!Dr(e))return GN(e);var t=yy(e),r=[];for(var n in e)n=="constructor"&&(t||!YN.call(e,n))||r.push(n);return r}function Zu(e){return Ns(e)?sM(e,!0):jN(e)}var qN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KN=/^\w*$/;function wy(e,t){if(gr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ih(e)?!0:KN.test(e)||!qN.test(e)||t!=null&&e in Object(t)}var gu=Po(Object,"create");function XN(){this.__data__=gu?gu(null):{},this.size=0}function ZN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var QN="__lodash_hash_undefined__",JN=Object.prototype,eB=JN.hasOwnProperty;function tB(e){var t=this.__data__;if(gu){var r=t[e];return r===QN?void 0:r}return eB.call(t,e)?t[e]:void 0}var rB=Object.prototype,nB=rB.hasOwnProperty;function iB(e){var t=this.__data__;return gu?t[e]!==void 0:nB.call(t,e)}var aB="__lodash_hash_undefined__";function oB(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gu&&t===void 0?aB:t,this}function go(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])}}go.prototype.clear=XN;go.prototype.delete=ZN;go.prototype.get=tB;go.prototype.has=iB;go.prototype.set=oB;function sB(){this.__data__=[],this.size=0}function oh(e,t){for(var r=e.length;r--;)if(qu(e[r][0],t))return r;return-1}var lB=Array.prototype,uB=lB.splice;function fB(e){var t=this.__data__,r=oh(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():uB.call(t,r,1),--this.size,!0}function cB(e){var t=this.__data__,r=oh(t,e);return r<0?void 0:t[r][1]}function dB(e){return oh(this.__data__,e)>-1}function hB(e,t){var r=this.__data__,n=oh(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Pi(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])}}Pi.prototype.clear=sB;Pi.prototype.delete=fB;Pi.prototype.get=cB;Pi.prototype.has=dB;Pi.prototype.set=hB;var mu=Po(Dn,"Map");function vB(){this.size=0,this.__data__={hash:new go,map:new(mu||Pi),string:new go}}function pB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sh(e,t){var r=e.__data__;return pB(t)?r[typeof t=="string"?"string":"hash"]:r.map}function gB(e){var t=sh(this,e).delete(e);return this.size-=t?1:0,t}function mB(e){return sh(this,e).get(e)}function yB(e){return sh(this,e).has(e)}function _B(e,t){var r=sh(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ei(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])}}Ei.prototype.clear=vB;Ei.prototype.delete=gB;Ei.prototype.get=mB;Ei.prototype.has=yB;Ei.prototype.set=_B;var bB="Expected a function";function Sy(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bB);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(Sy.Cache||Ei),r}Sy.Cache=Ei;var wB=500;function SB(e){var t=Sy(e,function(n){return r.size===wB&&r.clear(),n}),r=t.cache;return t}var xB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,CB=/\\(\\)?/g,TB=SB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xB,function(r,n,i,a){t.push(i?a.replace(CB,"$1"):n||r)}),t});function MB(e){return e==null?"":eM(e)}function lh(e,t){return gr(e)?e:wy(e,t)?[e]:TB(MB(e))}var AB=1/0;function Qu(e){if(typeof e=="string"||ih(e))return e;var t=e+"";return t=="0"&&1/e==-AB?"-0":t}function xy(e,t){t=lh(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Qu(t[r++])];return r&&r==n?e:void 0}function yu(e,t,r){var n=e==null?void 0:xy(e,t);return n===void 0?r:n}function Cy(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var xb=fn?fn.isConcatSpreadable:void 0;function PB(e){return gr(e)||vu(e)||!!(xb&&e&&e[xb])}function Ty(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=PB),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Ty(s,t-1,r,n,i):Cy(i,s):n||(i[i.length]=s)}return i}function EB(e){var t=e==null?0:e.length;return t?Ty(e,1):[]}function LB(e){return rM(nM(e,void 0,EB),e+"")}var DB=lM(Object.getPrototypeOf,Object);const My=DB;var IB="[object Object]",OB=Function.prototype,RB=Object.prototype,uM=OB.toString,kB=RB.hasOwnProperty,NB=uM.call(Object);function BB(e){if(!Xn(e)||Mo(e)!=IB)return!1;var t=My(e);if(t===null)return!0;var r=kB.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&uM.call(r)==NB}function Jp(){if(!arguments.length)return[];var e=arguments[0];return gr(e)?e:[e]}function FB(){this.__data__=new Pi,this.size=0}function $B(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function HB(e){return this.__data__.get(e)}function zB(e){return this.__data__.has(e)}var VB=200;function WB(e,t){var r=this.__data__;if(r instanceof Pi){var n=r.__data__;if(!mu||n.length<VB-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ei(n)}return r.set(e,t),this.size=r.size,this}function An(e){var t=this.__data__=new Pi(e);this.size=t.size}An.prototype.clear=FB;An.prototype.delete=$B;An.prototype.get=HB;An.prototype.has=zB;An.prototype.set=WB;function GB(e,t){return e&&Ku(t,Xu(t),e)}function UB(e,t){return e&&Ku(t,Zu(t),e)}var fM=typeof $r=="object"&&$r&&!$r.nodeType&&$r,Cb=fM&&typeof Hr=="object"&&Hr&&!Hr.nodeType&&Hr,YB=Cb&&Cb.exports===fM,Tb=YB?Dn.Buffer:void 0,Mb=Tb?Tb.allocUnsafe:void 0;function cM(e,t){if(t)return e.slice();var r=e.length,n=Mb?Mb(r):new e.constructor(r);return e.copy(n),n}function jB(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 dM(){return[]}var qB=Object.prototype,KB=qB.propertyIsEnumerable,Ab=Object.getOwnPropertySymbols,Ay=Ab?function(e){return e==null?[]:(e=Object(e),jB(Ab(e),function(t){return KB.call(e,t)}))}:dM;function XB(e,t){return Ku(e,Ay(e),t)}var ZB=Object.getOwnPropertySymbols,hM=ZB?function(e){for(var t=[];e;)Cy(t,Ay(e)),e=My(e);return t}:dM;function QB(e,t){return Ku(e,hM(e),t)}function vM(e,t,r){var n=t(e);return gr(e)?n:Cy(n,r(e))}function eg(e){return vM(e,Xu,Ay)}function JB(e){return vM(e,Zu,hM)}var tg=Po(Dn,"DataView"),rg=Po(Dn,"Promise"),ng=Po(Dn,"Set"),Pb="[object Map]",eF="[object Object]",Eb="[object Promise]",Lb="[object Set]",Db="[object WeakMap]",Ib="[object DataView]",tF=Ao(tg),rF=Ao(mu),nF=Ao(rg),iF=Ao(ng),aF=Ao(Qp),Ga=Mo;(tg&&Ga(new tg(new ArrayBuffer(1)))!=Ib||mu&&Ga(new mu)!=Pb||rg&&Ga(rg.resolve())!=Eb||ng&&Ga(new ng)!=Lb||Qp&&Ga(new Qp)!=Db)&&(Ga=function(e){var t=Mo(e),r=t==eF?e.constructor:void 0,n=r?Ao(r):"";if(n)switch(n){case tF:return Ib;case rF:return Pb;case nF:return Eb;case iF:return Lb;case aF:return Db}return t});const _u=Ga;var oF=Object.prototype,sF=oF.hasOwnProperty;function lF(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&sF.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var cd=Dn.Uint8Array;function Py(e){var t=new e.constructor(e.byteLength);return new cd(t).set(new cd(e)),t}function uF(e,t){var r=t?Py(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var fF=/\w*$/;function cF(e){var t=new e.constructor(e.source,fF.exec(e));return t.lastIndex=e.lastIndex,t}var Ob=fn?fn.prototype:void 0,Rb=Ob?Ob.valueOf:void 0;function dF(e){return Rb?Object(Rb.call(e)):{}}function pM(e,t){var r=t?Py(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var hF="[object Boolean]",vF="[object Date]",pF="[object Map]",gF="[object Number]",mF="[object RegExp]",yF="[object Set]",_F="[object String]",bF="[object Symbol]",wF="[object ArrayBuffer]",SF="[object DataView]",xF="[object Float32Array]",CF="[object Float64Array]",TF="[object Int8Array]",MF="[object Int16Array]",AF="[object Int32Array]",PF="[object Uint8Array]",EF="[object Uint8ClampedArray]",LF="[object Uint16Array]",DF="[object Uint32Array]";function IF(e,t,r){var n=e.constructor;switch(t){case wF:return Py(e);case hF:case vF:return new n(+e);case SF:return uF(e,r);case xF:case CF:case TF:case MF:case AF:case PF:case EF:case LF:case DF:return pM(e,r);case pF:return new n;case gF:case _F:return new n(e);case mF:return cF(e);case yF:return new n;case bF:return dF(e)}}function gM(e){return typeof e.constructor=="function"&&!yy(e)?Hk(My(e)):{}}var OF="[object Map]";function RF(e){return Xn(e)&&_u(e)==OF}var kb=gs&&gs.isMap,kF=kb?_y(kb):RF,NF="[object Set]";function BF(e){return Xn(e)&&_u(e)==NF}var Nb=gs&&gs.isSet,FF=Nb?_y(Nb):BF,$F=1,HF=2,zF=4,mM="[object Arguments]",VF="[object Array]",WF="[object Boolean]",GF="[object Date]",UF="[object Error]",yM="[object Function]",YF="[object GeneratorFunction]",jF="[object Map]",qF="[object Number]",_M="[object Object]",KF="[object RegExp]",XF="[object Set]",ZF="[object String]",QF="[object Symbol]",JF="[object WeakMap]",e$="[object ArrayBuffer]",t$="[object DataView]",r$="[object Float32Array]",n$="[object Float64Array]",i$="[object Int8Array]",a$="[object Int16Array]",o$="[object Int32Array]",s$="[object Uint8Array]",l$="[object Uint8ClampedArray]",u$="[object Uint16Array]",f$="[object Uint32Array]",gt={};gt[mM]=gt[VF]=gt[e$]=gt[t$]=gt[WF]=gt[GF]=gt[r$]=gt[n$]=gt[i$]=gt[a$]=gt[o$]=gt[jF]=gt[qF]=gt[_M]=gt[KF]=gt[XF]=gt[ZF]=gt[QF]=gt[s$]=gt[l$]=gt[u$]=gt[f$]=!0;gt[UF]=gt[yM]=gt[JF]=!1;function Pc(e,t,r,n,i,a){var o,s=t&$F,l=t&HF,u=t&zF;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!Dr(e))return e;var f=gr(e);if(f){if(o=lF(e),!s)return tM(e,o)}else{var c=_u(e),h=c==yM||c==YF;if(pu(e))return cM(e,s);if(c==_M||c==mM||h&&!i){if(o=l||h?{}:gM(e),!s)return l?QB(e,UB(o,e)):XB(e,GB(o,e))}else{if(!gt[c])return i?e:{};o=IF(e,c,s)}}a||(a=new An);var d=a.get(e);if(d)return d;a.set(e,o),FF(e)?e.forEach(function(m){o.add(Pc(m,t,r,m,e,a))}):kF(e)&&e.forEach(function(m,g){o.set(g,Pc(m,t,r,g,e,a))});var v=u?l?JB:eg:l?Zu:Xu,p=f?void 0:v(e);return Kk(p||e,function(m,g){p&&(g=m,m=e[g]),gy(o,g,Pc(m,t,r,g,e,a))}),o}var c$=4;function Bb(e){return Pc(e,c$)}var d$="__lodash_hash_undefined__";function h$(e){return this.__data__.set(e,d$),this}function v$(e){return this.__data__.has(e)}function dd(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ei;++t<r;)this.add(e[t])}dd.prototype.add=dd.prototype.push=h$;dd.prototype.has=v$;function p$(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 g$(e,t){return e.has(t)}var m$=1,y$=2;function bM(e,t,r,n,i,a){var o=r&m$,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,h=!0,d=r&y$?new dd:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var v=e[c],p=t[c];if(n)var m=o?n(p,v,c,t,e,a):n(v,p,c,e,t,a);if(m!==void 0){if(m)continue;h=!1;break}if(d){if(!p$(t,function(g,y){if(!g$(d,y)&&(v===g||i(v,g,r,n,a)))return d.push(y)})){h=!1;break}}else if(!(v===p||i(v,p,r,n,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function _$(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function b$(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var w$=1,S$=2,x$="[object Boolean]",C$="[object Date]",T$="[object Error]",M$="[object Map]",A$="[object Number]",P$="[object RegExp]",E$="[object Set]",L$="[object String]",D$="[object Symbol]",I$="[object ArrayBuffer]",O$="[object DataView]",Fb=fn?fn.prototype:void 0,tv=Fb?Fb.valueOf:void 0;function R$(e,t,r,n,i,a,o){switch(r){case O$:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I$:return!(e.byteLength!=t.byteLength||!a(new cd(e),new cd(t)));case x$:case C$:case A$:return qu(+e,+t);case T$:return e.name==t.name&&e.message==t.message;case P$:case L$:return e==t+"";case M$:var s=_$;case E$:var l=n&w$;if(s||(s=b$),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=S$,o.set(e,t);var f=bM(s(e),s(t),n,i,a,o);return o.delete(e),f;case D$:if(tv)return tv.call(e)==tv.call(t)}return!1}var k$=1,N$=Object.prototype,B$=N$.hasOwnProperty;function F$(e,t,r,n,i,a){var o=r&k$,s=eg(e),l=s.length,u=eg(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var h=s[c];if(!(o?h in t:B$.call(t,h)))return!1}var d=a.get(e),v=a.get(t);if(d&&v)return d==t&&v==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++c<l;){h=s[c];var g=e[h],y=t[h];if(n)var _=o?n(y,g,h,t,e,a):n(g,y,h,e,t,a);if(!(_===void 0?g===y||i(g,y,r,n,a):_)){p=!1;break}m||(m=h=="constructor")}if(p&&!m){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 $$=1,$b="[object Arguments]",Hb="[object Array]",Sf="[object Object]",H$=Object.prototype,zb=H$.hasOwnProperty;function z$(e,t,r,n,i,a){var o=gr(e),s=gr(t),l=o?Hb:_u(e),u=s?Hb:_u(t);l=l==$b?Sf:l,u=u==$b?Sf:u;var f=l==Sf,c=u==Sf,h=l==u;if(h&&pu(e)){if(!pu(t))return!1;o=!0,f=!1}if(h&&!f)return a||(a=new An),o||by(e)?bM(e,t,r,n,i,a):R$(e,t,l,r,n,i,a);if(!(r&$$)){var d=f&&zb.call(e,"__wrapped__"),v=c&&zb.call(t,"__wrapped__");if(d||v){var p=d?e.value():e,m=v?t.value():t;return a||(a=new An),i(p,m,r,n,a)}}return h?(a||(a=new An),F$(e,t,r,n,i,a)):!1}function uh(e,t,r,n,i){return e===t?!0:e==null||t==null||!Xn(e)&&!Xn(t)?e!==e&&t!==t:z$(e,t,r,n,uh,i)}var V$=1,W$=2;function G$(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],f=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new An;if(n)var h=n(u,f,l,e,t,c);if(!(h===void 0?uh(f,u,V$|W$,n,c):h))return!1}}return!0}function wM(e){return e===e&&!Dr(e)}function U$(e){for(var t=Xu(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,wM(i)]}return t}function SM(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Y$(e){var t=U$(e);return t.length==1&&t[0][2]?SM(t[0][0],t[0][1]):function(r){return r===e||G$(r,e,t)}}function j$(e,t){return e!=null&&t in Object(e)}function q$(e,t,r){t=lh(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=Qu(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&&my(i)&&ah(o,i)&&(gr(e)||vu(e)))}function xM(e,t){return e!=null&&q$(e,t,j$)}var K$=1,X$=2;function Z$(e,t){return wy(e)&&wM(t)?SM(Qu(e),t):function(r){var n=yu(r,e);return n===void 0&&n===t?xM(r,e):uh(t,n,K$|X$)}}function Q$(e){return function(t){return t==null?void 0:t[e]}}function J$(e){return function(t){return xy(t,e)}}function e3(e){return wy(e)?Q$(Qu(e)):J$(e)}function t3(e){return typeof e=="function"?e:e==null?hy:typeof e=="object"?gr(e)?Z$(e[0],e[1]):Y$(e):e3(e)}function r3(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 CM=r3();function n3(e,t){return e&&CM(e,t,Xu)}function i3(e,t){return function(r,n){if(r==null)return r;if(!Ns(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 a3=i3(n3),rv=function(){return Dn.Date.now()},o3="Expected a function",s3=Math.max,l3=Math.min;function hd(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(o3);t=pb(t)||0,Dr(r)&&(f=!!r.leading,c="maxWait"in r,a=c?s3(pb(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function d(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(g,t),f?d(w):o}function p(w){var S=w-l,C=w-u,M=t-S;return c?l3(M,a-C):M}function m(w){var S=w-l,C=w-u;return l===void 0||S>=t||S<0||c&&C>=a}function g(){var w=rv();if(m(w))return y(w);s=setTimeout(g,p(w))}function y(w){return s=void 0,h&&n?d(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(rv())}function x(){var w=rv(),S=m(w);if(n=arguments,i=this,l=w,S){if(s===void 0)return v(l);if(c)return clearTimeout(s),s=setTimeout(g,t),d(l)}return s===void 0&&(s=setTimeout(g,t)),o}return x.cancel=_,x.flush=b,x}function ig(e,t,r){(r!==void 0&&!qu(e[t],r)||r===void 0&&!(t in e))&&py(e,t,r)}function u3(e){return Xn(e)&&Ns(e)}function ag(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function f3(e){return Ku(e,Zu(e))}function c3(e,t,r,n,i,a,o){var s=ag(e,r),l=ag(t,r),u=o.get(l);if(u){ig(e,r,u);return}var f=a?a(s,l,r+"",e,t,o):void 0,c=f===void 0;if(c){var h=gr(l),d=!h&&pu(l),v=!h&&!d&&by(l);f=l,h||d||v?gr(s)?f=s:u3(s)?f=tM(s):d?(c=!1,f=cM(l,!0)):v?(c=!1,f=pM(l,!0)):f=[]:BB(l)||vu(l)?(f=s,vu(s)?f=f3(s):(!Dr(s)||vy(s))&&(f=gM(l))):c=!1}c&&(o.set(l,f),i(f,l,n,a,o),o.delete(l)),ig(e,r,f)}function TM(e,t,r,n,i){e!==t&&CM(t,function(a,o){if(i||(i=new An),Dr(a))c3(e,t,o,r,TM,n,i);else{var s=n?n(ag(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),ig(e,o,s)}},Zu)}function d3(e,t){var r=-1,n=Ns(e)?Array(e.length):[];return a3(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function h3(e,t){var r=gr(e)?JT:d3;return r(e,t3(t))}function v3(e,t){return Ty(h3(e,t),1)}function og(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 p3(e,t){return uh(e,t)}function ms(e){return e==null}function MM(e){return e===void 0}var g3=nN(function(e,t,r){TM(e,t,r)});const m3=g3;function AM(e,t,r,n){if(!Dr(e))return e;t=lh(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=Qu(t[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var f=s[l];u=n?n(f,l,s):void 0,u===void 0&&(u=Dr(f)?f:ah(t[i+1])?[]:{})}gy(s,l,u),s=s[l]}return e}function y3(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=xy(e,o);r(s,o)&&AM(a,lh(o,e),s)}return a}function _3(e,t){return y3(e,t,function(r,n){return xM(e,n)})}var b3=LB(function(e,t){return e==null?{}:_3(e,t)});function w3(e,t,r){return e==null?e:AM(e,t,r)}const ys=e=>e===void 0,zr=e=>typeof e=="boolean",Rt=e=>typeof e=="number",mo=e=>typeof Element>"u"?!1:e instanceof Element,S3=e=>ze(e)?!Number.isNaN(Number(e)):!1,Vb=e=>Object.keys(e),Ec=(e,t,r)=>({get value(){return yu(e,t,r)},set value(n){w3(e,t,n)}});class x3 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function bi(e,t){throw new x3(`[${e}] ${t}`)}const PM=(e="")=>e.split(" ").filter(t=>!!t.trim()),oo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Za=(e,t)=>{!e||!t.trim()||e.classList.add(...PM(t))},so=(e,t)=>{!e||!t.trim()||e.classList.remove(...PM(t))},C3=(e,t)=>{var r;if(!At||!e||!t)return"";let n=Pn(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 Zn(e,t="px"){if(!e)return"";if(Rt(e)||S3(e))return`${e}${t}`;if(ze(e))return e}let xf;const T3=e=>{var t;if(!At)return 0;if(xf!==void 0)return xf;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const n=r.offsetWidth;r.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",r.appendChild(i);const a=i.offsetWidth;return(t=r.parentNode)==null||t.removeChild(r),xf=n-a,xf};/*! Element Plus Icons Vue v2.3.1 */var M3=ie({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),EM=M3,A3=ie({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),Ey=A3,P3=ie({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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 0"})]))}}),E3=P3,L3=ie({name:"Back",__name:"back",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),ee("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),D3=L3,I3=ie({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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.336z"})]))}}),LM=I3,O3=ie({name:"Close",__name:"close",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),vd=O3,R3=ie({name:"InfoFilled",__name:"info-filled",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.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.344M590.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"})]))}}),DM=R3,k3=ie({name:"Loading",__name:"loading",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Ly=k3,N3=ie({name:"More",__name:"more",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),B3=N3,F3=ie({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),$3=F3,H3=ie({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-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.336z"})]))}}),IM=H3,z3=ie({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),OM=z3;const RM="__epPropKey",Be=e=>e,V3=e=>qe(e)&&!!e[RM],fh=(e,t)=>{if(!qe(e)||V3(e))return e;const{values:r,required:n,default:i,type:a,validator:o}=e,l={type:a,required:!!n,validator:r||o?u=>{let f=!1,c=[];if(r&&(c=Array.from(r),Ue(e,"default")&&c.push(i),f||(f=c.includes(u))),o&&(f||(f=o(u))),!f&&c.length>0){const h=[...new Set(c)].map(d=>JSON.stringify(d)).join(", ");MO(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return f}:void 0,[RM]:!0};return Ue(e,"default")&&(l.default=i),l},Je=e=>og(Object.entries(e).map(([t,r])=>[t,fh(r,t)])),vr=Be([String,Object,Function]),W3={Close:vd},G3={Close:vd,SuccessFilled:IM,InfoFilled:DM,WarningFilled:OM,CircleCloseFilled:LM},Wb={success:IM,warning:OM,error:LM,info:DM},Yt=(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},U3=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),pa=e=>(e.install=Bt,e),Y3=(...e)=>t=>{e.forEach(r=>{De(r)?r(t):r.value=t})},hr={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"},wi="update:modelValue",sg="change",lg="input",Bs=["","default","small","large"],j3=e=>["",...Bs].includes(e);var Lc=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Lc||{});const Dc=e=>{const t=_e(e)?e:[e],r=[];return t.forEach(n=>{var i;_e(n)?r.push(...Dc(n)):la(n)&&_e(n.children)?r.push(...Dc(n.children)):(r.push(n),la(n)&&((i=n.component)!=null&&i.subTree)&&r.push(...Dc(n.component.subTree)))}),r},q3=e=>At?window.requestAnimationFrame(e):setTimeout(e,16),ja=e=>e,bu=({from:e,replacement:t,scope:r,version:n,ref:i,type:a="API"},o)=>{we(()=>T(o),s=>{},{immediate:!0})},K3=(e,t,r)=>{let n={offsetX:0,offsetY:0};const i=s=>{const l=s.clientX,u=s.clientY,{offsetX:f,offsetY:c}=n,h=e.value.getBoundingClientRect(),d=h.left,v=h.top,p=h.width,m=h.height,g=document.documentElement.clientWidth,y=document.documentElement.clientHeight,_=-d+f,b=-v+c,x=g-d-p+f,w=y-v-m+c,S=M=>{const A=Math.min(Math.max(f+M.clientX-l,_),x),P=Math.min(Math.max(c+M.clientY-u,b),w);n={offsetX:A,offsetY:P},e.value&&(e.value.style.transform=`translate(${Zn(A)}, ${Zn(P)})`)},C=()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",C)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",C)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};_t(()=>{na(()=>{r.value?a():o()})}),tr(()=>{o()})};var X3={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"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Z3=e=>(t,r)=>Q3(t,r,T(e)),Q3=(e,t,r)=>yu(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var a;return`${(a=t==null?void 0:t[i])!=null?a:`{${i}}`}`}),J3=e=>{const t=k(()=>T(e).name),r=Pt(e)?e:$(e);return{lang:t,locale:r,t:Z3(e)}},kM=Symbol("localeContextKey"),Fs=e=>{const t=e||Le(kM,$());return J3(k(()=>t.value||X3))},Bl="el",e5="is-",ba=(e,t,r,n,i)=>{let a=`${e}-${t}`;return r&&(a+=`-${r}`),n&&(a+=`__${n}`),i&&(a+=`--${i}`),a},NM=Symbol("namespaceContextKey"),Dy=e=>{const t=e||(it()?Le(NM,$(Bl)):$(Bl));return k(()=>T(t)||Bl)},Oe=(e,t)=>{const r=Dy(t);return{namespace:r,b:(p="")=>ba(r.value,e,p,"",""),e:p=>p?ba(r.value,e,"",p,""):"",m:p=>p?ba(r.value,e,"","",p):"",be:(p,m)=>p&&m?ba(r.value,e,p,m,""):"",em:(p,m)=>p&&m?ba(r.value,e,"",p,m):"",bm:(p,m)=>p&&m?ba(r.value,e,p,"",m):"",bem:(p,m,g)=>p&&m&&g?ba(r.value,e,p,m,g):"",is:(p,...m)=>{const g=m.length>=1?m[0]:!0;return p&&g?`${e5}${p}`:""},cssVar:p=>{const m={};for(const g in p)p[g]&&(m[`--${r.value}-${g}`]=p[g]);return m},cssVarName:p=>`--${r.value}-${p}`,cssVarBlock:p=>{const m={};for(const g in p)p[g]&&(m[`--${r.value}-${e}-${g}`]=p[g]);return m},cssVarBlockName:p=>`--${r.value}-${e}-${p}`}},t5=(e,t={})=>{Pt(e)||bi("[useLockscreen]","You need to pass a ref param to this function");const r=t.ns||Oe("popup"),n=QC(()=>r.bm("parent","hidden"));if(!At||oo(document.body,n.value))return;let i=0,a=!1,o="0";const s=()=>{setTimeout(()=>{so(document==null?void 0:document.body,n.value),a&&document&&(document.body.style.width=o)},200)};we(e,l=>{if(!l){s();return}a=!oo(document.body,n.value),a&&(o=document.body.style.width),i=T3(r.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,f=C3(document.body,"overflowY");i>0&&(u||f==="scroll")&&a&&(document.body.style.width=`calc(100% - ${i}px)`),Za(document.body,n.value)}),NC(()=>s())},r5=fh({type:Be(Boolean),default:null}),n5=fh({type:Be(Function)}),BM=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:r5,[r]:n5};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:f,onHide:c})=>{const h=it(),{emit:d}=h,v=h.props,p=k(()=>De(v[r])),m=k(()=>v[e]===null),g=S=>{o.value!==!0&&(o.value=!0,s&&(s.value=S),De(f)&&f(S))},y=S=>{o.value!==!1&&(o.value=!1,s&&(s.value=S),De(c)&&c(S))},_=S=>{if(v.disabled===!0||De(u)&&!u())return;const C=p.value&&At;C&&d(t,!0),(m.value||!C)&&g(S)},b=S=>{if(v.disabled===!0||!At)return;const C=p.value&&At;C&&d(t,!1),(m.value||!C)&&y(S)},x=S=>{zr(S)&&(v.disabled&&S?p.value&&d(t,!1):o.value!==S&&(S?g():y()))},w=()=>{o.value?b():_()};return we(()=>v[e],x),l&&h.appContext.config.globalProperties.$route!==void 0&&we(()=>({...h.proxy.$route}),()=>{l.value&&o.value&&b()}),_t(()=>{x(v[e])}),{hide:b,show:_,toggle:w,hasUpdateHandler:p}},useModelToggleProps:i,useModelToggleEmits:n}};BM("modelValue");const FM=e=>{const t=it();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 Ar="top",cn="bottom",dn="right",Pr="left",Iy="auto",Ju=[Ar,cn,dn,Pr],_s="start",wu="end",i5="clippingParents",$M="viewport",Js="popper",a5="reference",Gb=Ju.reduce(function(e,t){return e.concat([t+"-"+_s,t+"-"+wu])},[]),Oy=[].concat(Ju,[Iy]).reduce(function(e,t){return e.concat([t,t+"-"+_s,t+"-"+wu])},[]),o5="beforeRead",s5="read",l5="afterRead",u5="beforeMain",f5="main",c5="afterMain",d5="beforeWrite",h5="write",v5="afterWrite",p5=[o5,s5,l5,u5,f5,c5,d5,h5,v5];function Qn(e){return e?(e.nodeName||"").toLowerCase():null}function In(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=In(e).Element;return e instanceof t||e instanceof Element}function ln(e){var t=In(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ry(e){if(typeof ShadowRoot>"u")return!1;var t=In(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function g5(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];!ln(a)||!Qn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function m5(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},{});!ln(i)||!Qn(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var HM={name:"applyStyles",enabled:!0,phase:"write",fn:g5,effect:m5,requires:["computeStyles"]};function jn(e){return e.split("-")[0]}var lo=Math.max,pd=Math.min,ws=Math.round;function Ss(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(ln(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 ky(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 zM(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ry(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Si(e){return In(e).getComputedStyle(e)}function y5(e){return["table","td","th"].indexOf(Qn(e))>=0}function ga(e){return((bs(e)?e.ownerDocument:e.document)||window.document).documentElement}function ch(e){return Qn(e)==="html"?e:e.assignedSlot||e.parentNode||(Ry(e)?e.host:null)||ga(e)}function Ub(e){return!ln(e)||Si(e).position==="fixed"?null:e.offsetParent}function _5(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&ln(e)){var n=Si(e);if(n.position==="fixed")return null}var i=ch(e);for(Ry(i)&&(i=i.host);ln(i)&&["html","body"].indexOf(Qn(i))<0;){var a=Si(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 ef(e){for(var t=In(e),r=Ub(e);r&&y5(r)&&Si(r).position==="static";)r=Ub(r);return r&&(Qn(r)==="html"||Qn(r)==="body"&&Si(r).position==="static")?t:r||_5(e)||t}function Ny(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fl(e,t,r){return lo(e,pd(t,r))}function b5(e,t,r){var n=Fl(e,t,r);return n>r?r:n}function VM(){return{top:0,right:0,bottom:0,left:0}}function WM(e){return Object.assign({},VM(),e)}function GM(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var w5=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,WM(typeof e!="number"?e:GM(e,Ju))};function S5(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=Ny(s),u=[Pr,dn].indexOf(s)>=0,f=u?"height":"width";if(!(!a||!o)){var c=w5(i.padding,r),h=ky(a),d=l==="y"?Ar:Pr,v=l==="y"?cn:dn,p=r.rects.reference[f]+r.rects.reference[l]-o[l]-r.rects.popper[f],m=o[l]-r.rects.reference[l],g=ef(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,_=p/2-m/2,b=c[d],x=y-h[f]-c[v],w=y/2-h[f]/2+_,S=Fl(b,w,x),C=l;r.modifiersData[n]=(t={},t[C]=S,t.centerOffset=S-w,t)}}function x5(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)||!zM(t.elements.popper,i)||(t.elements.arrow=i))}var C5={name:"arrow",enabled:!0,phase:"main",fn:S5,effect:x5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xs(e){return e.split("-")[1]}var T5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M5(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 Yb(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,c=e.isFixed,h=o.x,d=h===void 0?0:h,v=o.y,p=v===void 0?0:v,m=typeof f=="function"?f({x:d,y:p}):{x:d,y:p};d=m.x,p=m.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=Pr,b=Ar,x=window;if(u){var w=ef(r),S="clientHeight",C="clientWidth";if(w===In(r)&&(w=ga(r),Si(w).position!=="static"&&s==="absolute"&&(S="scrollHeight",C="scrollWidth")),w=w,i===Ar||(i===Pr||i===dn)&&a===wu){b=cn;var M=c&&w===x&&x.visualViewport?x.visualViewport.height:w[S];p-=M-n.height,p*=l?1:-1}if(i===Pr||(i===Ar||i===cn)&&a===wu){_=dn;var A=c&&w===x&&x.visualViewport?x.visualViewport.width:w[C];d-=A-n.width,d*=l?1:-1}}var P=Object.assign({position:s},u&&T5),E=f===!0?M5({x:d,y:p}):{x:d,y:p};if(d=E.x,p=E.y,l){var L;return Object.assign({},P,(L={},L[b]=y?"0":"",L[_]=g?"0":"",L.transform=(x.devicePixelRatio||1)<=1?"translate("+d+"px, "+p+"px)":"translate3d("+d+"px, "+p+"px, 0)",L))}return Object.assign({},P,(t={},t[b]=y?p+"px":"",t[_]=g?d+"px":"",t.transform="",t))}function A5(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,Yb(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,Yb(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 UM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:A5,data:{}},Cf={passive:!0};function P5(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=In(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(f){f.addEventListener("scroll",r.update,Cf)}),s&&l.addEventListener("resize",r.update,Cf),function(){a&&u.forEach(function(f){f.removeEventListener("scroll",r.update,Cf)}),s&&l.removeEventListener("resize",r.update,Cf)}}var YM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:P5,data:{}},E5={left:"right",right:"left",bottom:"top",top:"bottom"};function Ic(e){return e.replace(/left|right|bottom|top/g,function(t){return E5[t]})}var L5={start:"end",end:"start"};function jb(e){return e.replace(/start|end/g,function(t){return L5[t]})}function By(e){var t=In(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Fy(e){return Ss(ga(e)).left+By(e).scrollLeft}function D5(e){var t=In(e),r=ga(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+Fy(e),y:s}}function I5(e){var t,r=ga(e),n=By(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=lo(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=lo(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Fy(e),l=-n.scrollTop;return Si(i||r).direction==="rtl"&&(s+=lo(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function $y(e){var t=Si(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function jM(e){return["html","body","#document"].indexOf(Qn(e))>=0?e.ownerDocument.body:ln(e)&&$y(e)?e:jM(ch(e))}function $l(e,t){var r;t===void 0&&(t=[]);var n=jM(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=In(n),o=i?[a].concat(a.visualViewport||[],$y(n)?n:[]):n,s=t.concat(o);return i?s:s.concat($l(ch(o)))}function ug(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function O5(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 qb(e,t){return t===$M?ug(D5(e)):bs(t)?O5(t):ug(I5(ga(e)))}function R5(e){var t=$l(ch(e)),r=["absolute","fixed"].indexOf(Si(e).position)>=0,n=r&&ln(e)?ef(e):e;return bs(n)?t.filter(function(i){return bs(i)&&zM(i,n)&&Qn(i)!=="body"}):[]}function k5(e,t,r){var n=t==="clippingParents"?R5(e):[].concat(t),i=[].concat(n,[r]),a=i[0],o=i.reduce(function(s,l){var u=qb(e,l);return s.top=lo(u.top,s.top),s.right=pd(u.right,s.right),s.bottom=pd(u.bottom,s.bottom),s.left=lo(u.left,s.left),s},qb(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 qM(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 Ar:l={x:o,y:t.y-r.height};break;case cn:l={x:o,y:t.y+t.height};break;case dn:l={x:t.x+t.width,y:s};break;case Pr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?Ny(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case _s:l[u]=l[u]-(t[f]/2-r[f]/2);break;case wu:l[u]=l[u]+(t[f]/2-r[f]/2);break}}return l}function Su(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?i5:a,s=r.rootBoundary,l=s===void 0?$M:s,u=r.elementContext,f=u===void 0?Js:u,c=r.altBoundary,h=c===void 0?!1:c,d=r.padding,v=d===void 0?0:d,p=WM(typeof v!="number"?v:GM(v,Ju)),m=f===Js?a5:Js,g=e.rects.popper,y=e.elements[h?m:f],_=k5(bs(y)?y:y.contextElement||ga(e.elements.popper),o,l),b=Ss(e.elements.reference),x=qM({reference:b,element:g,strategy:"absolute",placement:i}),w=ug(Object.assign({},g,x)),S=f===Js?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(f===Js&&M){var A=M[i];Object.keys(C).forEach(function(P){var E=[dn,cn].indexOf(P)>=0?1:-1,L=[Ar,cn].indexOf(P)>=0?"y":"x";C[P]+=A[L]*E})}return C}function N5(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?Oy:l,f=xs(n),c=f?s?Gb:Gb.filter(function(v){return xs(v)===f}):Ju,h=c.filter(function(v){return u.indexOf(v)>=0});h.length===0&&(h=c);var d=h.reduce(function(v,p){return v[p]=Su(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[jn(p)],v},{});return Object.keys(d).sort(function(v,p){return d[v]-d[p]})}function B5(e){if(jn(e)===Iy)return[];var t=Ic(e);return[jb(e),t,jb(t)]}function F5(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,f=r.boundary,c=r.rootBoundary,h=r.altBoundary,d=r.flipVariations,v=d===void 0?!0:d,p=r.allowedAutoPlacements,m=t.options.placement,g=jn(m),y=g===m,_=l||(y||!v?[Ic(m)]:B5(m)),b=[m].concat(_).reduce(function(Se,$e){return Se.concat(jn($e)===Iy?N5(t,{placement:$e,boundary:f,rootBoundary:c,padding:u,flipVariations:v,allowedAutoPlacements:p}):$e)},[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,M=b[0],A=0;A<b.length;A++){var P=b[A],E=jn(P),L=xs(P)===_s,O=[Ar,cn].indexOf(E)>=0,N=O?"width":"height",H=Su(t,{placement:P,boundary:f,rootBoundary:c,altBoundary:h,padding:u}),V=O?L?dn:Pr:L?cn:Ar;x[N]>w[N]&&(V=Ic(V));var U=Ic(V),F=[];if(a&&F.push(H[E]<=0),s&&F.push(H[V]<=0,H[U]<=0),F.every(function(Se){return Se})){M=P,C=!1;break}S.set(P,F)}if(C)for(var z=v?3:1,te=function(Se){var $e=b.find(function(Ie){var B=S.get(Ie);if(B)return B.slice(0,Se).every(function(Y){return Y})});if($e)return M=$e,"break"},J=z;J>0;J--){var me=te(J);if(me==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}var $5={name:"flip",enabled:!0,phase:"main",fn:F5,requiresIfExists:["offset"],data:{_skip:!1}};function Kb(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 Xb(e){return[Ar,dn,cn,Pr].some(function(t){return e[t]>=0})}function H5(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Su(t,{elementContext:"reference"}),s=Su(t,{altBoundary:!0}),l=Kb(o,n),u=Kb(s,i,a),f=Xb(l),c=Xb(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":c})}var z5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:H5};function V5(e,t,r){var n=jn(e),i=[Pr,Ar].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,[Pr,dn].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function W5(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=Oy.reduce(function(f,c){return f[c]=V5(c,t.rects,a),f},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}var G5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:W5};function U5(e){var t=e.state,r=e.name;t.modifiersData[r]=qM({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var KM={name:"popperOffsets",enabled:!0,phase:"read",fn:U5,data:{}};function Y5(e){return e==="x"?"y":"x"}function j5(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,f=r.altBoundary,c=r.padding,h=r.tether,d=h===void 0?!0:h,v=r.tetherOffset,p=v===void 0?0:v,m=Su(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:f}),g=jn(t.placement),y=xs(t.placement),_=!y,b=Ny(g),x=Y5(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,A=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(a){var L,O=b==="y"?Ar:Pr,N=b==="y"?cn:dn,H=b==="y"?"height":"width",V=w[b],U=V+m[O],F=V-m[N],z=d?-C[H]/2:0,te=y===_s?S[H]:C[H],J=y===_s?-C[H]:-S[H],me=t.elements.arrow,Se=d&&me?ky(me):{width:0,height:0},$e=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:VM(),Ie=$e[O],B=$e[N],Y=Fl(0,S[H],Se[H]),K=_?S[H]/2-z-Y-Ie-A.mainAxis:te-Y-Ie-A.mainAxis,Q=_?-S[H]/2+z+Y+B+A.mainAxis:J+Y+B+A.mainAxis,oe=t.elements.arrow&&ef(t.elements.arrow),pe=oe?b==="y"?oe.clientTop||0:oe.clientLeft||0:0,D=(L=P==null?void 0:P[b])!=null?L:0,I=V+K-D-pe,W=V+Q-D,X=Fl(d?pd(U,I):U,V,d?lo(F,W):F);w[b]=X,E[b]=X-V}if(s){var q,le=b==="x"?Ar:Pr,fe=b==="x"?cn:dn,ae=w[x],se=x==="y"?"height":"width",ne=ae+m[le],he=ae-m[fe],Me=[Ar,Pr].indexOf(g)!==-1,xe=(q=P==null?void 0:P[x])!=null?q:0,ke=Me?ne:ae-S[se]-C[se]-xe+A.altAxis,Ve=Me?ae+S[se]+C[se]-xe-A.altAxis:he,rt=d&&Me?b5(ke,ae,Ve):Fl(d?ke:ne,ae,d?Ve:he);w[x]=rt,E[x]=rt-ae}t.modifiersData[n]=E}}var q5={name:"preventOverflow",enabled:!0,phase:"main",fn:j5,requiresIfExists:["offset"]};function K5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function X5(e){return e===In(e)||!ln(e)?By(e):K5(e)}function Z5(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 Q5(e,t,r){r===void 0&&(r=!1);var n=ln(t),i=ln(t)&&Z5(t),a=ga(t),o=Ss(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Qn(t)!=="body"||$y(a))&&(s=X5(t)),ln(t)?(l=Ss(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Fy(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function J5(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 e4(e){var t=J5(e);return p5.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function t4(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function r4(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 Zb={placement:"bottom",modifiers:[],strategy:"absolute"};function Qb(){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 Hy(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?Zb:i;return function(o,s,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zb,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},f=[],c=!1,h={state:u,setOptions:function(p){var m=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},a,u.options,m),u.scrollParents={reference:bs(o)?$l(o):o.contextElement?$l(o.contextElement):[],popper:$l(s)};var g=e4(r4([].concat(n,u.options.modifiers)));return u.orderedModifiers=g.filter(function(y){return y.enabled}),d(),h.update()},forceUpdate:function(){if(!c){var p=u.elements,m=p.reference,g=p.popper;if(Qb(m,g)){u.rects={reference:Q5(m,ef(g),u.options.strategy==="fixed"),popper:ky(g)},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:h})||u)}}}},update:t4(function(){return new Promise(function(p){h.forceUpdate(),p(u)})}),destroy:function(){v(),c=!0}};if(!Qb(o,s))return h;h.setOptions(l).then(function(p){!c&&l.onFirstUpdate&&l.onFirstUpdate(p)});function d(){u.orderedModifiers.forEach(function(p){var m=p.name,g=p.options,y=g===void 0?{}:g,_=p.effect;if(typeof _=="function"){var b=_({state:u,name:m,instance:h,options:y}),x=function(){};f.push(b||x)}})}function v(){f.forEach(function(p){return p()}),f=[]}return h}}Hy();var n4=[YM,KM,UM,HM];Hy({defaultModifiers:n4});var i4=[YM,KM,UM,HM,G5,$5,q5,C5,z5],a4=Hy({defaultModifiers:i4});const o4=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=s4(l);Object.assign(o.value,u)},requires:["computeStyles"]},i=k(()=>{const{onFirstUpdate:l,placement:u,strategy:f,modifiers:c}=T(r);return{onFirstUpdate:l,placement:u||"bottom",strategy:f||"absolute",modifiers:[...c||[],n,{name:"applyStyles",enabled:!1}]}}),a=ty(),o=$({styles:{popper:{position:T(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return we(i,l=>{const u=T(a);u&&u.setOptions(l)},{deep:!0}),we([e,t],([l,u])=>{s(),!(!l||!u)&&(a.value=a4(l,u,T(i)))}),tr(()=>{s()}),{state:k(()=>{var l;return{...((l=T(a))==null?void 0:l.state)||{}}}),styles:k(()=>T(o).styles),attributes:k(()=>T(o).attributes),update:()=>{var l;return(l=T(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=T(a))==null?void 0:l.forceUpdate()},instanceRef:k(()=>T(a))}};function s4(e){const t=Object.keys(e.elements),r=og(t.map(i=>[i,e.styles[i]||{}])),n=og(t.map(i=>[i,e.attributes[i]]));return{styles:r,attributes:n}}const XM=e=>{if(!e)return{onClick:Bt,onMousedown:Bt,onMouseup:Bt};let t=!1,r=!1;return{onClick:o=>{t&&r&&e(o),t=r=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{r=o.target===o.currentTarget}}};function Jb(){let e;const t=(n,i)=>{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return ju(()=>r()),{registerTimeout:t,cancelTimeout:r}}const e1={prefix:Math.floor(Math.random()*1e4),current:0},l4=Symbol("elIdInjection"),ZM=()=>it()?Le(l4,e1):e1,xu=e=>{const t=ZM(),r=Dy();return k(()=>T(e)||`${r.value}-id-${t.prefix}-${t.current++}`)};let qo=[];const t1=e=>{const t=e;t.key===hr.esc&&qo.forEach(r=>r(t))},u4=e=>{_t(()=>{qo.length===0&&document.addEventListener("keydown",t1),At&&qo.push(e)}),tr(()=>{qo=qo.filter(t=>t!==e),qo.length===0&&At&&document.removeEventListener("keydown",t1)})};let r1;const QM=()=>{const e=Dy(),t=ZM(),r=k(()=>`${e.value}-popper-container-${t.prefix}`),n=k(()=>`#${r.value}`);return{id:r,selector:n}},f4=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},c4=()=>{const{id:e,selector:t}=QM();return eh(()=>{At&&!r1&&!document.body.querySelector(t.value)&&(r1=f4(e.value))}),{id:e,selector:t}},d4=Je({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),h4=({showAfter:e,hideAfter:t,autoClose:r,open:n,close:i})=>{const{registerTimeout:a}=Jb(),{registerTimeout:o,cancelTimeout:s}=Jb();return{onOpen:f=>{a(()=>{n(f);const c=T(r);Rt(c)&&c>0&&o(()=>{i(f)},c)},T(e))},onClose:f=>{s(),a(()=>{i(f)},T(t))}}},JM=Symbol("elForwardRef"),v4=e=>{Dt(JM,{setForwardRef:r=>{e.value=r}})},p4=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),n1=$(0),eA=2e3,tA=Symbol("zIndexContextKey"),zy=e=>{const t=e||(it()?Le(tA,void 0):void 0),r=k(()=>{const a=T(t);return Rt(a)?a:eA}),n=k(()=>r.value+n1.value);return{initialZIndex:r,currentZIndex:n,nextZIndex:()=>(n1.value++,n.value)}},dh=fh({type:String,values:Bs,required:!1}),rA=Symbol("size"),g4=()=>{const e=Le(rA,{});return k(()=>T(e.size)||"")},nA=Symbol(),gd=$();function hh(e,t=void 0){const r=it()?Le(nA,gd):gd;return e?k(()=>{var n,i;return(i=(n=r.value)==null?void 0:n[e])!=null?i:t}):r}function m4(e,t){const r=hh(),n=Oe(e,k(()=>{var s;return((s=r.value)==null?void 0:s.namespace)||Bl})),i=Fs(k(()=>{var s;return(s=r.value)==null?void 0:s.locale})),a=zy(k(()=>{var s;return((s=r.value)==null?void 0:s.zIndex)||eA})),o=k(()=>{var s;return T(t)||((s=r.value)==null?void 0:s.size)||""});return y4(k(()=>T(r)||{})),{ns:n,locale:i,zIndex:a,size:o}}const y4=(e,t,r=!1)=>{var n;const i=!!it(),a=i?hh():void 0,o=(n=t==null?void 0:t.provide)!=null?n:i?Dt:void 0;if(!o)return;const s=k(()=>{const l=T(e);return a!=null&&a.value?_4(a.value,l):l});return o(nA,s),o(kM,k(()=>s.value.locale)),o(NM,k(()=>s.value.namespace)),o(tA,k(()=>s.value.zIndex)),o(rA,{size:k(()=>s.value.size||"")}),(r||!gd.value)&&(gd.value=s.value),s},_4=(e,t)=>{var r;const n=[...new Set([...Vb(e),...Vb(t)])],i={};for(const a of n)i[a]=(r=t[a])!=null?r:e[a];return i},i1={};var Ke=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const b4=Je({size:{type:Be([Number,String])},color:{type:String}}),w4=ie({name:"ElIcon",inheritAttrs:!1}),S4=ie({...w4,props:b4,setup(e){const t=e,r=Oe("icon"),n=k(()=>{const{size:i,color:a}=t;return!i&&!a?{}:{fontSize:ys(i)?void 0:Zn(i),"--color":a}});return(i,a)=>(G(),ce("i",ei({class:T(r).b(),style:T(n)},i.$attrs),[Ce(i.$slots,"default")],16))}});var x4=Ke(S4,[["__file","icon.vue"]]);const Nt=Yt(x4),$s=Symbol("formContextKey"),yo=Symbol("formItemContextKey"),xi=(e,t={})=>{const r=$(void 0),n=t.prop?r:FM("size"),i=t.global?r:g4(),a=t.form?{size:void 0}:Le($s,void 0),o=t.formItem?{size:void 0}:Le(yo,void 0);return k(()=>n.value||T(e)||(o==null?void 0:o.size)||(a==null?void 0:a.size)||i.value||"")},vh=e=>{const t=FM("disabled"),r=Le($s,void 0);return k(()=>t.value||T(e)||(r==null?void 0:r.disabled)||!1)},tf=()=>{const e=Le($s,void 0),t=Le(yo,void 0);return{form:e,formItem:t}},Vy=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=$(!1)),n||(n=$(!1));const i=$();let a;const o=k(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return _t(()=>{a=we([wn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:xu().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})}),Os(()=>{a&&a(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}},C4=Je({size:{type:String,values:Bs},disabled:Boolean}),T4=Je({...C4,model:Object,rules:{type:Be(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:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),M4={validate:(e,t,r)=>(_e(e)||ze(e))&&zr(t)&&ze(r)};function A4(){const e=$([]),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 Tf=(e,t)=>{const r=Jp(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},P4="ElForm",E4=ie({name:P4}),L4=ie({...E4,props:T4,emits:M4,setup(e,{expose:t,emit:r}){const n=e,i=[],a=xi(),o=Oe("form"),s=k(()=>{const{labelPosition:_,inline:b}=n;return[o.b(),o.m(a.value||"default"),{[o.m(`label-${_}`)]:_,[o.m("inline")]:b}]}),l=_=>i.find(b=>b.prop===_),u=_=>{i.push(_)},f=_=>{_.prop&&i.splice(i.indexOf(_),1)},c=(_=[])=>{n.model&&Tf(i,_).forEach(b=>b.resetField())},h=(_=[])=>{Tf(i,_).forEach(b=>b.clearValidate())},d=k(()=>!!n.model),v=_=>{if(i.length===0)return[];const b=Tf(i,_);return b.length?b:[]},p=async _=>g(void 0,_),m=async(_=[])=>{if(!d.value)return!1;const b=v(_);if(b.length===0)return!0;let x={};for(const w of b)try{await w.validate("")}catch(S){x={...x,...S}}return Object.keys(x).length===0?!0:Promise.reject(x)},g=async(_=[],b)=>{const x=!De(b);try{const w=await m(_);return w===!0&&(b==null||b(w)),w}catch(w){if(w instanceof Error)throw w;const S=w;return n.scrollToError&&y(Object.keys(S)[0]),b==null||b(!1,S),x&&Promise.reject(S)}},y=_=>{var b;const x=Tf(i,_)[0];x&&((b=x.$el)==null||b.scrollIntoView(n.scrollIntoViewOptions))};return we(()=>n.rules,()=>{n.validateOnRuleChange&&p().catch(_=>void 0)},{deep:!0}),Dt($s,Ln({...Kd(n),emit:r,resetFields:c,clearValidate:h,validateField:g,getField:l,addField:u,removeField:f,...A4()})),t({validate:p,validateField:g,resetFields:c,clearValidate:h,scrollToField:y}),(_,b)=>(G(),ce("form",{class:re(T(s))},[Ce(_.$slots,"default")],2))}});var D4=Ke(L4,[["__file","form.vue"]]);function Qa(){return Qa=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},Qa.apply(this,arguments)}function I4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cu(e,t)}function fg(e){return fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fg(e)}function Cu(e,t){return Cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cu(e,t)}function O4(){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 Oc(e,t,r){return O4()?Oc=Reflect.construct.bind():Oc=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&Cu(u,o.prototype),u},Oc.apply(null,arguments)}function R4(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function cg(e){var t=typeof Map=="function"?new Map:void 0;return cg=function(n){if(n===null||!R4(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 Oc(n,arguments,fg(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Cu(i,n)},cg(e)}var k4=/%[sdj%]/g,N4=function(){};function dg(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 Fr(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(k4,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 B4(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ut(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||B4(t)&&typeof e=="string"&&!e)}function F4(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 a1(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 $4(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var o1=function(e){I4(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}(cg(Error));function H4(e,t,r,n,i){if(t.first){var a=new Promise(function(h,d){var v=function(g){return n(g),g.length?d(new o1(g,dg(g))):h(i)},p=$4(e);a1(p,r,v)});return a.catch(function(h){return h}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,f=[],c=new Promise(function(h,d){var v=function(m){if(f.push.apply(f,m),u++,u===l)return n(f),f.length?d(new o1(f,dg(f))):h(i)};s.length||(n(f),h(i)),s.forEach(function(p){var m=e[p];o.indexOf(p)!==-1?a1(m,r,v):F4(m,r,v)})});return c.catch(function(h){return h}),c}function z4(e){return!!(e&&e.message!==void 0)}function V4(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function s1(e,t){return function(r){var n;return e.fullFields?n=V4(t,e.fullFields):n=t[r.field||e.fullField],z4(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 l1(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]=Qa({},e[r],n):e[r]=n}}return e}var iA=function(t,r,n,i,a,o){t.required&&(!n.hasOwnProperty(t.field)||Ut(r,o||t.type))&&i.push(Fr(a.messages.required,t.fullField))},W4=function(t,r,n,i,a){(/^\s+$/.test(r)||r==="")&&i.push(Fr(a.messages.whitespace,t.fullField))},Mf,G4=function(){if(Mf)return Mf;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=(`
+**/const AO="http://www.w3.org/2000/svg",PO="http://www.w3.org/1998/Math/MathML",Ki=typeof document<"u"?document:null,k_=Ki&&Ki.createElement("template"),EO={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==="svg"?Ki.createElementNS(AO,e):t==="mathml"?Ki.createElementNS(PO,e):Ki.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ki.createTextNode(e),createComment:e=>Ki.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ki.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{k_.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const s=k_.content;if(n==="svg"||n==="mathml"){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]}},Ii="transition",Xs="animation",gs=Symbol("_vtc"),ti=(e,{slots:t})=>Te(BI,RT(e),t);ti.displayName="Transition";const OT={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},LO=ti.props=Ht({},hT,OT),_a=(e,t=[])=>{_e(e)?e.forEach(r=>r(...t)):e&&e(...t)},N_=e=>e?_e(e)?e.some(t=>t.length>1):e.length>1:!1;function RT(e){const t={};for(const E in e)E in OT||(t[E]=e[E]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=e,v=DO(i),p=v&&v[0],m=v&&v[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:x,onBeforeAppear:w=g,onAppear:S=y,onAppearCancelled:C=_}=t,M=(E,L,O)=>{zi(E,L?f:s),zi(E,L?u:o),O&&O()},A=(E,L)=>{E._isLeaving=!1,zi(E,c),zi(E,d),zi(E,h),L&&L()},P=E=>(L,O)=>{const N=E?S:y,H=()=>M(L,E,O);_a(N,[L,H]),B_(()=>{zi(L,E?l:a),ci(L,E?f:s),N_(N)||F_(L,n,p,H)})};return Ht(t,{onBeforeEnter(E){_a(g,[E]),ci(E,a),ci(E,o)},onBeforeAppear(E){_a(w,[E]),ci(E,l),ci(E,u)},onEnter:P(!1),onAppear:P(!0),onLeave(E,L){E._isLeaving=!0;const O=()=>A(E,L);ci(E,c),NT(),ci(E,h),B_(()=>{E._isLeaving&&(zi(E,c),ci(E,d),N_(b)||F_(E,n,m,O))}),_a(b,[E,O])},onEnterCancelled(E){M(E,!1),_a(_,[E])},onAppearCancelled(E){M(E,!0),_a(C,[E])},onLeaveCancelled(E){A(E),_a(x,[E])}})}function DO(e){if(e==null)return null;if(qe(e))return[Kh(e.enter),Kh(e.leave)];{const t=Kh(e);return[t,t]}}function Kh(e){return HD(e)}function ci(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[gs]||(e[gs]=new Set)).add(t)}function zi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[gs];r&&(r.delete(t),r.size||(e[gs]=void 0))}function B_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let IO=0;function F_(e,t,r,n){const i=e._endId=++IO,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=kT(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,h),a()},h=d=>{d.target===e&&++f>=l&&c()};setTimeout(()=>{f<l&&c()},s+1),e.addEventListener(u,h)}function kT(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),i=n(`${Ii}Delay`),a=n(`${Ii}Duration`),o=$_(i,a),s=n(`${Xs}Delay`),l=n(`${Xs}Duration`),u=$_(s,l);let f=null,c=0,h=0;t===Ii?o>0&&(f=Ii,c=o,h=a.length):t===Xs?u>0&&(f=Xs,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?Ii:Xs:null,h=f?f===Ii?a.length:l.length:0);const d=f===Ii&&/\b(transform|all)(,|$)/.test(n(`${Ii}Property`).toString());return{type:f,timeout:c,propCount:h,hasTransform:d}}function $_(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>H_(r)+H_(e[n])))}function H_(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function NT(){return document.body.offsetHeight}function OO(e,t,r){const n=e[gs];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const dy=Symbol("_vod"),Kn={beforeMount(e,{value:t},{transition:r}){e[dy]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Zs(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),Zs(e,!0),n.enter(e)):n.leave(e,()=>{Zs(e,!1)}):Zs(e,t))},beforeUnmount(e,{value:t}){Zs(e,t)}};function Zs(e,t){e.style.display=t?e[dy]:"none"}const RO=Symbol("");function kO(e,t,r){const n=e.style,i=n.display,a=ze(r);if(r&&!a){if(t&&!ze(t))for(const o in t)r[o]==null&&qp(n,o,"");for(const o in r)qp(n,o,r[o])}else if(a){if(t!==r){const o=n[RO];o&&(r+=";"+o),n.cssText=r}}else t&&e.removeAttribute("style");dy in e&&(n.display=i)}const z_=/\s*!important$/;function qp(e,t,r){if(_e(r))r.forEach(n=>qp(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=NO(e,t);z_.test(r)?e.setProperty(xo(n),r.replace(z_,""),"important"):e[n]=r}}const V_=["Webkit","Moz","ms"],Xh={};function NO(e,t){const r=Xh[t];if(r)return r;let n=Pn(t);if(n!=="filter"&&n in e)return Xh[t]=n;n=Yd(n);for(let i=0;i<V_.length;i++){const a=V_[i]+n;if(a in e)return Xh[t]=a}return t}const W_="http://www.w3.org/1999/xlink";function BO(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(W_,t.slice(6,t.length)):e.setAttributeNS(W_,t,r);else{const a=YD(t);r==null||a&&!IC(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function FO(e,t,r,n,i,a,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,a),e[t]=r??"";return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){e._value=r;const u=s==="OPTION"?e.getAttribute("value"):e.value,f=r??"";u!==f&&(e.value=f),r==null&&e.removeAttribute(t);return}let l=!1;if(r===""||r==null){const u=typeof e[t];u==="boolean"?r=IC(r):r==null&&u==="string"?(r="",l=!0):u==="number"&&(r=0,l=!0)}try{e[t]=r}catch{}l&&e.removeAttribute(t)}function BT(e,t,r,n){e.addEventListener(t,r,n)}function $O(e,t,r,n){e.removeEventListener(t,r,n)}const G_=Symbol("_vei");function HO(e,t,r,n,i=null){const a=e[G_]||(e[G_]={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=zO(t);if(n){const u=a[t]=GO(n,i);BT(e,s,u,l)}else o&&($O(e,s,o,l),a[t]=void 0)}}const U_=/(?:Once|Passive|Capture)$/;function zO(e){let t;if(U_.test(e)){t={};let n;for(;n=e.match(U_);)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 Zh=0;const VO=Promise.resolve(),WO=()=>Zh||(VO.then(()=>Zh=0),Zh=Date.now());function GO(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;sn(UO(n,r.value),t,5,[n])};return r.value=e,r.attached=WO(),r}function UO(e,t){if(_e(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 Y_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,YO=(e,t,r,n,i,a,o,s,l)=>{const u=i==="svg";t==="class"?OO(e,n,u):t==="style"?kO(e,r,n):Wd(t)?Gm(t)||HO(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jO(e,t,n,u))?FO(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),BO(e,t,n,u))};function jO(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Y_(t)&&De(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Y_(t)&&ze(r)?!1:t in e}const FT=new WeakMap,$T=new WeakMap,od=Symbol("_moveCb"),j_=Symbol("_enterCb"),HT={name:"TransitionGroup",props:Ht({},LO,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=it(),n=dT();let i,a;return Uu(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!JO(i[0].el,r.vnode.el,o))return;i.forEach(XO),i.forEach(ZO);const s=i.filter(QO);NT(),s.forEach(l=>{const u=l.el,f=u.style;ci(u,o),f.transform=f.webkitTransform=f.transitionDuration="";const c=u[od]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",c),u[od]=null,zi(u,o))};u.addEventListener("transitionend",c)})}),()=>{const o=Qe(e),s=RT(o);let l=o.tag||ft;i=a,a=t.default?sy(t.default()):[];for(let u=0;u<a.length;u++){const f=a[u];f.key!=null&&cu(f,fu(f,s,n,r))}if(i)for(let u=0;u<i.length;u++){const f=i[u];cu(f,fu(f,s,n,r)),FT.set(f,f.el.getBoundingClientRect())}return Z(l,null,a)}}},qO=e=>delete e.mode;HT.props;const KO=HT;function XO(e){const t=e.el;t[od]&&t[od](),t[j_]&&t[j_]()}function ZO(e){$T.set(e,e.el.getBoundingClientRect())}function QO(e){const t=FT.get(e),r=$T.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 JO(e,t,r){const n=e.cloneNode(),i=e[gs];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:o}=kT(n);return a.removeChild(n),o}const q_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return _e(t)?r=>Cc(t,r):t},Qh=Symbol("_assign"),sd={deep:!0,created(e,t,r){e[Qh]=q_(r),BT(e,"change",()=>{const n=e._modelValue,i=eR(e),a=e.checked,o=e[Qh];if(_e(n)){const s=OC(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(Gd(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(zT(e,a))})},mounted:K_,beforeUpdate(e,t,r){e[Qh]=q_(r),K_(e,t,r)}};function K_(e,{value:t,oldValue:r},n){e._modelValue=t,_e(t)?e.checked=OC(t,n.props.value)>-1:Gd(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=jd(t,zT(e,!0)))}function eR(e){return"_value"in e?e._value:e.value}function zT(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const tR=["ctrl","shift","alt","meta"],rR={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)=>tR.some(r=>e[`${r}Key`]&&!t.includes(r))},ua=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o<t.length;o++){const s=rR[t[o]];if(s&&s(i,t))return}return e(i,...a)})},nR={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},iR=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const a=xo(i.key);if(t.some(o=>o===a||nR[o]===a))return e(i)})},aR=Ht({patchProp:YO},EO);let X_;function VT(){return X_||(X_=sO(aR))}const ld=(...e)=>{VT().render(...e)},oR=(...e)=>{const t=VT().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=lR(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,sR(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function sR(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lR(e){return ze(e)?document.querySelector(e):e}const Ac=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},di=(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 Z_;const At=typeof window<"u",uR=e=>typeof e=="function",fR=e=>typeof e=="string",Kp=()=>{};At&&((Z_=window==null?void 0:window.navigator)!=null&&Z_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():T(e)}function WT(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 GT=e=>e();function cR(e,t={}){let r,n,i=Kp;const a=s=>{clearTimeout(s),i(),i=Kp};return s=>{const l=po(e),u=po(t.maxWait);return r&&a(r),l<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((f,c)=>{i=t.rejectOnCancel?c:f,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,f(s())},u)),r=setTimeout(()=>{n&&a(n),n=null,f(s())},l)})}}function dR(e=GT){const t=$(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:Gu(t),pause:r,resume:n,eventFilter:i}}function hR(e){return e}function ju(e){return kC()?(NC(e),!0):!1}function vR(e,t=200,r={}){return WT(cR(t,r),e)}function pR(e,t=200,r={}){const n=$(e.value),i=vR(()=>{n.value=e.value},t,r);return be(e,()=>i()),n}function gR(e){return typeof e=="function"?k(e):$(e)}function UT(e,t=!0){it()?_t(e):t?e():Nt(e)}function hu(e,t,r={}){const{immediate:n=!0}=r,i=$(!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)},po(t))}return n&&(i.value=!0,At&&l()),ju(s),{isPending:Gu(i),start:l,stop:s}}function mR(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,i=Pt(e),a=$(e);function o(s){if(arguments.length)return a.value=s,a.value;{const l=po(r);return a.value=a.value===l?po(n):l,a.value}}return i?o:[a,o]}var Q_=Object.getOwnPropertySymbols,yR=Object.prototype.hasOwnProperty,_R=Object.prototype.propertyIsEnumerable,bR=(e,t)=>{var r={};for(var n in e)yR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Q_)for(var n of Q_(e))t.indexOf(n)<0&&_R.call(e,n)&&(r[n]=e[n]);return r};function wR(e,t,r={}){const n=r,{eventFilter:i=GT}=n,a=bR(n,["eventFilter"]);return be(e,WT(i,t),a)}var SR=Object.defineProperty,xR=Object.defineProperties,CR=Object.getOwnPropertyDescriptors,ud=Object.getOwnPropertySymbols,YT=Object.prototype.hasOwnProperty,jT=Object.prototype.propertyIsEnumerable,J_=(e,t,r)=>t in e?SR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TR=(e,t)=>{for(var r in t||(t={}))YT.call(t,r)&&J_(e,r,t[r]);if(ud)for(var r of ud(t))jT.call(t,r)&&J_(e,r,t[r]);return e},MR=(e,t)=>xR(e,CR(t)),AR=(e,t)=>{var r={};for(var n in e)YT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ud)for(var n of ud(e))t.indexOf(n)<0&&jT.call(e,n)&&(r[n]=e[n]);return r};function PR(e,t,r={}){const n=r,{eventFilter:i}=n,a=AR(n,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=dR(i);return{stop:wR(e,t,MR(TR({},a),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Zi(e){var t;const r=po(e);return(t=r==null?void 0:r.$el)!=null?t:r}const fa=At?window:void 0;function xn(...e){let t,r,n,i;if(fR(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=fa):[t,r,n,i]=e,!t)return Kp;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,c,h)=>(f.addEventListener(c,h,i),()=>f.removeEventListener(c,h,i)),l=be(()=>Zi(t),f=>{o(),f&&a.push(...r.flatMap(c=>n.map(h=>s(f,c,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return ju(u),u}function ER(e,t,r={}){const{window:n=fa,ignore:i=[],capture:a=!0,detectIframe:o=!1}=r;if(!n)return;let s=!0,l;const u=d=>i.some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(p=>p===d.target||d.composedPath().includes(p));{const p=Zi(v);return p&&(d.target===p||d.composedPath().includes(p))}}),f=d=>{n.clearTimeout(l);const v=Zi(e);if(!(!v||v===d.target||d.composedPath().includes(v))){if(d.detail===0&&(s=!u(d)),!s){s=!0;return}t(d)}},c=[xn(n,"click",f,{passive:!0,capture:a}),xn(n,"pointerdown",d=>{const v=Zi(e);v&&(s=!d.composedPath().includes(v)&&!u(d))},{passive:!0}),xn(n,"pointerup",d=>{if(d.button===0){const v=d.composedPath();d.composedPath=()=>v,l=n.setTimeout(()=>f(d),50)}},{passive:!0}),o&&xn(n,"blur",d=>{var v;const p=Zi(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function qT(e,t=!1){const r=$(),n=()=>r.value=!!e();return n(),UT(n,t),r}function LR(e,t={}){const{window:r=fa}=t,n=qT(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=$(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},s=()=>{n.value&&(o(),i=r.matchMedia(gR(e).value),a.value=i.matches,"addEventListener"in i?i.addEventListener("change",s):i.addListener(s))};return na(s),ju(()=>o()),a}const Xp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zp="__vueuse_ssr_handlers__";Xp[Zp]=Xp[Zp]||{};const DR=Xp[Zp];function KT(e,t){return DR[e]||t}function IR(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 OR=Object.defineProperty,eb=Object.getOwnPropertySymbols,RR=Object.prototype.hasOwnProperty,kR=Object.prototype.propertyIsEnumerable,tb=(e,t,r)=>t in e?OR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rb=(e,t)=>{for(var r in t||(t={}))RR.call(t,r)&&tb(e,r,t[r]);if(eb)for(var r of eb(t))kR.call(t,r)&&tb(e,r,t[r]);return e};const NR={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 BR(e,t,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:f,window:c=fa,eventFilter:h,onError:d=S=>{console.error(S)}}=n,v=(f?ty:$)(t);if(!r)try{r=KT("getDefaultStorage",()=>{var S;return(S=fa)==null?void 0:S.localStorage})()}catch(S){d(S)}if(!r)return v;const p=po(t),m=IR(p),g=(i=n.serializer)!=null?i:NR[m],{pause:y,resume:_}=PR(v,()=>b(v.value),{flush:a,deep:o,eventFilter:h});return c&&s&&xn(c,"storage",w),w(),v;function b(S){try{if(S==null)r.removeItem(e);else{const C=g.write(S),M=r.getItem(e);M!==C&&(r.setItem(e,C),c&&(c==null||c.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:M,newValue:C,storageArea:r}))))}}catch(C){d(C)}}function x(S){const C=S?S.newValue:r.getItem(e);if(C==null)return l&&p!==null&&r.setItem(e,g.write(p)),p;if(!S&&u){const M=g.read(C);return uR(u)?u(M,p):m==="object"&&!Array.isArray(M)?rb(rb({},p),M):M}else return typeof C!="string"?C:g.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){d(C)}finally{S?Nt(_):_()}}}}}function XT(e){return LR("(prefers-color-scheme: dark)",e)}var FR=Object.defineProperty,nb=Object.getOwnPropertySymbols,$R=Object.prototype.hasOwnProperty,HR=Object.prototype.propertyIsEnumerable,ib=(e,t,r)=>t in e?FR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zR=(e,t)=>{for(var r in t||(t={}))$R.call(t,r)&&ib(e,r,t[r]);if(nb)for(var r of nb(t))HR.call(t,r)&&ib(e,r,t[r]);return e};function VR(e={}){const{selector:t="html",attribute:r="class",initialValue:n="auto",window:i=fa,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:u}=e,f=zR({auto:"",light:"light",dark:"dark"},e.modes||{}),c=XT({window:i}),h=k(()=>c.value?"dark":"light"),d=l||(o==null?$(n):BR(o,n,a,{window:i,listenToStorageChanges:s})),v=k({get(){return d.value==="auto"&&!u?h.value:d.value},set(y){d.value=y}}),p=KT("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(f).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 m(y){var _;const b=y==="auto"?h.value:y;p(t,r,(_=f[b])!=null?_:b)}function g(y){e.onChanged?e.onChanged(y,m):m(y)}return be(v,g,{flush:"post",immediate:!0}),u&&be(h,()=>g(v.value),{flush:"post"}),UT(()=>g(v.value)),v}var WR=Object.defineProperty,GR=Object.defineProperties,UR=Object.getOwnPropertyDescriptors,ab=Object.getOwnPropertySymbols,YR=Object.prototype.hasOwnProperty,jR=Object.prototype.propertyIsEnumerable,ob=(e,t,r)=>t in e?WR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qR=(e,t)=>{for(var r in t||(t={}))YR.call(t,r)&&ob(e,r,t[r]);if(ab)for(var r of ab(t))jR.call(t,r)&&ob(e,r,t[r]);return e},KR=(e,t)=>GR(e,UR(t));function XR(e={}){const{valueDark:t="dark",valueLight:r="",window:n=fa}=e,i=VR(KR(qR({},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=XT({window:n});return k({get(){return i.value==="dark"},set(s){s===a.value?i.value="auto":i.value=s?"dark":"light"}})}var sb=Object.getOwnPropertySymbols,ZR=Object.prototype.hasOwnProperty,QR=Object.prototype.propertyIsEnumerable,JR=(e,t)=>{var r={};for(var n in e)ZR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&sb)for(var n of sb(e))t.indexOf(n)<0&&QR.call(e,n)&&(r[n]=e[n]);return r};function ms(e,t,r={}){const n=r,{window:i=fa}=n,a=JR(n,["window"]);let o;const s=qT(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=be(()=>Zi(e),c=>{l(),s.value&&i&&c&&(o=new ResizeObserver(t),o.observe(c,a))},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return ju(f),{isSupported:s,stop:f}}var lb;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(lb||(lb={}));var ek=Object.defineProperty,ub=Object.getOwnPropertySymbols,tk=Object.prototype.hasOwnProperty,rk=Object.prototype.propertyIsEnumerable,fb=(e,t,r)=>t in e?ek(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nk=(e,t)=>{for(var r in t||(t={}))tk.call(t,r)&&fb(e,r,t[r]);if(ub)for(var r of ub(t))rk.call(t,r)&&fb(e,r,t[r]);return e};const ik={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]};nk({linear:hR},ik);var ZT=typeof global=="object"&&global&&global.Object===Object&&global,ak=typeof self=="object"&&self&&self.Object===Object&&self,Dn=ZT||ak||Function("return this")(),fn=Dn.Symbol,QT=Object.prototype,ok=QT.hasOwnProperty,sk=QT.toString,Qs=fn?fn.toStringTag:void 0;function lk(e){var t=ok.call(e,Qs),r=e[Qs];try{e[Qs]=void 0;var n=!0}catch{}var i=sk.call(e);return n&&(t?e[Qs]=r:delete e[Qs]),i}var uk=Object.prototype,fk=uk.toString;function ck(e){return fk.call(e)}var dk="[object Null]",hk="[object Undefined]",cb=fn?fn.toStringTag:void 0;function Mo(e){return e==null?e===void 0?hk:dk:cb&&cb in Object(e)?lk(e):ck(e)}function Xn(e){return e!=null&&typeof e=="object"}var vk="[object Symbol]";function ih(e){return typeof e=="symbol"||Xn(e)&&Mo(e)==vk}function JT(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 gr=Array.isArray,pk=1/0,db=fn?fn.prototype:void 0,hb=db?db.toString:void 0;function eM(e){if(typeof e=="string")return e;if(gr(e))return JT(e,eM)+"";if(ih(e))return hb?hb.call(e):"";var t=e+"";return t=="0"&&1/e==-pk?"-0":t}var gk=/\s/;function mk(e){for(var t=e.length;t--&&gk.test(e.charAt(t)););return t}var yk=/^\s+/;function _k(e){return e&&e.slice(0,mk(e)+1).replace(yk,"")}function Dr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vb=NaN,bk=/^[-+]0x[0-9a-f]+$/i,wk=/^0b[01]+$/i,Sk=/^0o[0-7]+$/i,xk=parseInt;function pb(e){if(typeof e=="number")return e;if(ih(e))return vb;if(Dr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Dr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_k(e);var r=wk.test(e);return r||Sk.test(e)?xk(e.slice(2),r?2:8):bk.test(e)?vb:+e}function hy(e){return e}var Ck="[object AsyncFunction]",Tk="[object Function]",Mk="[object GeneratorFunction]",Ak="[object Proxy]";function vy(e){if(!Dr(e))return!1;var t=Mo(e);return t==Tk||t==Mk||t==Ck||t==Ak}var Jh=Dn["__core-js_shared__"],gb=function(){var e=/[^.]+$/.exec(Jh&&Jh.keys&&Jh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Pk(e){return!!gb&&gb in e}var Ek=Function.prototype,Lk=Ek.toString;function Ao(e){if(e!=null){try{return Lk.call(e)}catch{}try{return e+""}catch{}}return""}var Dk=/[\\^$.*+?()[\]{}|]/g,Ik=/^\[object .+?Constructor\]$/,Ok=Function.prototype,Rk=Object.prototype,kk=Ok.toString,Nk=Rk.hasOwnProperty,Bk=RegExp("^"+kk.call(Nk).replace(Dk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fk(e){if(!Dr(e)||Pk(e))return!1;var t=vy(e)?Bk:Ik;return t.test(Ao(e))}function $k(e,t){return e==null?void 0:e[t]}function Po(e,t){var r=$k(e,t);return Fk(r)?r:void 0}var Qp=Po(Dn,"WeakMap"),mb=Object.create,Hk=function(){function e(){}return function(t){if(!Dr(t))return{};if(mb)return mb(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function zk(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 tM(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Vk=800,Wk=16,Gk=Date.now;function Uk(e){var t=0,r=0;return function(){var n=Gk(),i=Wk-(n-r);if(r=n,i>0){if(++t>=Vk)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Yk(e){return function(){return e}}var fd=function(){try{var e=Po(Object,"defineProperty");return e({},"",{}),e}catch{}}(),jk=fd?function(e,t){return fd(e,"toString",{configurable:!0,enumerable:!1,value:Yk(t),writable:!0})}:hy;const qk=jk;var rM=Uk(qk);function Kk(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Xk=9007199254740991,Zk=/^(?:0|[1-9]\d*)$/;function ah(e,t){var r=typeof e;return t=t??Xk,!!t&&(r=="number"||r!="symbol"&&Zk.test(e))&&e>-1&&e%1==0&&e<t}function py(e,t,r){t=="__proto__"&&fd?fd(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function qu(e,t){return e===t||e!==e&&t!==t}var Qk=Object.prototype,Jk=Qk.hasOwnProperty;function gy(e,t,r){var n=e[t];(!(Jk.call(e,t)&&qu(n,r))||r===void 0&&!(t in e))&&py(e,t,r)}function Ku(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?py(r,s,l):gy(r,s,l)}return r}var yb=Math.max;function nM(e,t,r){return t=yb(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=yb(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),zk(e,this,s)}}function eN(e,t){return rM(nM(e,t,hy),e+"")}var tN=9007199254740991;function my(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tN}function Fs(e){return e!=null&&my(e.length)&&!vy(e)}function rN(e,t,r){if(!Dr(r))return!1;var n=typeof t;return(n=="number"?Fs(r)&&ah(t,r.length):n=="string"&&t in r)?qu(r[t],e):!1}function nN(e){return eN(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&&rN(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 iN=Object.prototype;function yy(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||iN;return e===r}function aN(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var oN="[object Arguments]";function _b(e){return Xn(e)&&Mo(e)==oN}var iM=Object.prototype,sN=iM.hasOwnProperty,lN=iM.propertyIsEnumerable,vu=_b(function(){return arguments}())?_b:function(e){return Xn(e)&&sN.call(e,"callee")&&!lN.call(e,"callee")};function uN(){return!1}var aM=typeof $r=="object"&&$r&&!$r.nodeType&&$r,bb=aM&&typeof Hr=="object"&&Hr&&!Hr.nodeType&&Hr,fN=bb&&bb.exports===aM,wb=fN?Dn.Buffer:void 0,cN=wb?wb.isBuffer:void 0,pu=cN||uN,dN="[object Arguments]",hN="[object Array]",vN="[object Boolean]",pN="[object Date]",gN="[object Error]",mN="[object Function]",yN="[object Map]",_N="[object Number]",bN="[object Object]",wN="[object RegExp]",SN="[object Set]",xN="[object String]",CN="[object WeakMap]",TN="[object ArrayBuffer]",MN="[object DataView]",AN="[object Float32Array]",PN="[object Float64Array]",EN="[object Int8Array]",LN="[object Int16Array]",DN="[object Int32Array]",IN="[object Uint8Array]",ON="[object Uint8ClampedArray]",RN="[object Uint16Array]",kN="[object Uint32Array]",wt={};wt[AN]=wt[PN]=wt[EN]=wt[LN]=wt[DN]=wt[IN]=wt[ON]=wt[RN]=wt[kN]=!0;wt[dN]=wt[hN]=wt[TN]=wt[vN]=wt[MN]=wt[pN]=wt[gN]=wt[mN]=wt[yN]=wt[_N]=wt[bN]=wt[wN]=wt[SN]=wt[xN]=wt[CN]=!1;function NN(e){return Xn(e)&&my(e.length)&&!!wt[Mo(e)]}function _y(e){return function(t){return e(t)}}var oM=typeof $r=="object"&&$r&&!$r.nodeType&&$r,Nl=oM&&typeof Hr=="object"&&Hr&&!Hr.nodeType&&Hr,BN=Nl&&Nl.exports===oM,ev=BN&&ZT.process,ys=function(){try{var e=Nl&&Nl.require&&Nl.require("util").types;return e||ev&&ev.binding&&ev.binding("util")}catch{}}(),Sb=ys&&ys.isTypedArray,by=Sb?_y(Sb):NN,FN=Object.prototype,$N=FN.hasOwnProperty;function sM(e,t){var r=gr(e),n=!r&&vu(e),i=!r&&!n&&pu(e),a=!r&&!n&&!i&&by(e),o=r||n||i||a,s=o?aN(e.length,String):[],l=s.length;for(var u in e)(t||$N.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ah(u,l)))&&s.push(u);return s}function lM(e,t){return function(r){return e(t(r))}}var HN=lM(Object.keys,Object),zN=Object.prototype,VN=zN.hasOwnProperty;function WN(e){if(!yy(e))return HN(e);var t=[];for(var r in Object(e))VN.call(e,r)&&r!="constructor"&&t.push(r);return t}function Xu(e){return Fs(e)?sM(e):WN(e)}function GN(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var UN=Object.prototype,YN=UN.hasOwnProperty;function jN(e){if(!Dr(e))return GN(e);var t=yy(e),r=[];for(var n in e)n=="constructor"&&(t||!YN.call(e,n))||r.push(n);return r}function Zu(e){return Fs(e)?sM(e,!0):jN(e)}var qN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KN=/^\w*$/;function wy(e,t){if(gr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ih(e)?!0:KN.test(e)||!qN.test(e)||t!=null&&e in Object(t)}var gu=Po(Object,"create");function XN(){this.__data__=gu?gu(null):{},this.size=0}function ZN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var QN="__lodash_hash_undefined__",JN=Object.prototype,eB=JN.hasOwnProperty;function tB(e){var t=this.__data__;if(gu){var r=t[e];return r===QN?void 0:r}return eB.call(t,e)?t[e]:void 0}var rB=Object.prototype,nB=rB.hasOwnProperty;function iB(e){var t=this.__data__;return gu?t[e]!==void 0:nB.call(t,e)}var aB="__lodash_hash_undefined__";function oB(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gu&&t===void 0?aB:t,this}function go(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])}}go.prototype.clear=XN;go.prototype.delete=ZN;go.prototype.get=tB;go.prototype.has=iB;go.prototype.set=oB;function sB(){this.__data__=[],this.size=0}function oh(e,t){for(var r=e.length;r--;)if(qu(e[r][0],t))return r;return-1}var lB=Array.prototype,uB=lB.splice;function fB(e){var t=this.__data__,r=oh(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():uB.call(t,r,1),--this.size,!0}function cB(e){var t=this.__data__,r=oh(t,e);return r<0?void 0:t[r][1]}function dB(e){return oh(this.__data__,e)>-1}function hB(e,t){var r=this.__data__,n=oh(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Pi(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])}}Pi.prototype.clear=sB;Pi.prototype.delete=fB;Pi.prototype.get=cB;Pi.prototype.has=dB;Pi.prototype.set=hB;var mu=Po(Dn,"Map");function vB(){this.size=0,this.__data__={hash:new go,map:new(mu||Pi),string:new go}}function pB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sh(e,t){var r=e.__data__;return pB(t)?r[typeof t=="string"?"string":"hash"]:r.map}function gB(e){var t=sh(this,e).delete(e);return this.size-=t?1:0,t}function mB(e){return sh(this,e).get(e)}function yB(e){return sh(this,e).has(e)}function _B(e,t){var r=sh(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ei(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])}}Ei.prototype.clear=vB;Ei.prototype.delete=gB;Ei.prototype.get=mB;Ei.prototype.has=yB;Ei.prototype.set=_B;var bB="Expected a function";function Sy(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bB);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(Sy.Cache||Ei),r}Sy.Cache=Ei;var wB=500;function SB(e){var t=Sy(e,function(n){return r.size===wB&&r.clear(),n}),r=t.cache;return t}var xB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,CB=/\\(\\)?/g,TB=SB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xB,function(r,n,i,a){t.push(i?a.replace(CB,"$1"):n||r)}),t});function MB(e){return e==null?"":eM(e)}function lh(e,t){return gr(e)?e:wy(e,t)?[e]:TB(MB(e))}var AB=1/0;function Qu(e){if(typeof e=="string"||ih(e))return e;var t=e+"";return t=="0"&&1/e==-AB?"-0":t}function xy(e,t){t=lh(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Qu(t[r++])];return r&&r==n?e:void 0}function yu(e,t,r){var n=e==null?void 0:xy(e,t);return n===void 0?r:n}function Cy(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var xb=fn?fn.isConcatSpreadable:void 0;function PB(e){return gr(e)||vu(e)||!!(xb&&e&&e[xb])}function Ty(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=PB),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Ty(s,t-1,r,n,i):Cy(i,s):n||(i[i.length]=s)}return i}function EB(e){var t=e==null?0:e.length;return t?Ty(e,1):[]}function LB(e){return rM(nM(e,void 0,EB),e+"")}var DB=lM(Object.getPrototypeOf,Object);const My=DB;var IB="[object Object]",OB=Function.prototype,RB=Object.prototype,uM=OB.toString,kB=RB.hasOwnProperty,NB=uM.call(Object);function BB(e){if(!Xn(e)||Mo(e)!=IB)return!1;var t=My(e);if(t===null)return!0;var r=kB.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&uM.call(r)==NB}function Jp(){if(!arguments.length)return[];var e=arguments[0];return gr(e)?e:[e]}function FB(){this.__data__=new Pi,this.size=0}function $B(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function HB(e){return this.__data__.get(e)}function zB(e){return this.__data__.has(e)}var VB=200;function WB(e,t){var r=this.__data__;if(r instanceof Pi){var n=r.__data__;if(!mu||n.length<VB-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ei(n)}return r.set(e,t),this.size=r.size,this}function An(e){var t=this.__data__=new Pi(e);this.size=t.size}An.prototype.clear=FB;An.prototype.delete=$B;An.prototype.get=HB;An.prototype.has=zB;An.prototype.set=WB;function GB(e,t){return e&&Ku(t,Xu(t),e)}function UB(e,t){return e&&Ku(t,Zu(t),e)}var fM=typeof $r=="object"&&$r&&!$r.nodeType&&$r,Cb=fM&&typeof Hr=="object"&&Hr&&!Hr.nodeType&&Hr,YB=Cb&&Cb.exports===fM,Tb=YB?Dn.Buffer:void 0,Mb=Tb?Tb.allocUnsafe:void 0;function cM(e,t){if(t)return e.slice();var r=e.length,n=Mb?Mb(r):new e.constructor(r);return e.copy(n),n}function jB(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 dM(){return[]}var qB=Object.prototype,KB=qB.propertyIsEnumerable,Ab=Object.getOwnPropertySymbols,Ay=Ab?function(e){return e==null?[]:(e=Object(e),jB(Ab(e),function(t){return KB.call(e,t)}))}:dM;function XB(e,t){return Ku(e,Ay(e),t)}var ZB=Object.getOwnPropertySymbols,hM=ZB?function(e){for(var t=[];e;)Cy(t,Ay(e)),e=My(e);return t}:dM;function QB(e,t){return Ku(e,hM(e),t)}function vM(e,t,r){var n=t(e);return gr(e)?n:Cy(n,r(e))}function eg(e){return vM(e,Xu,Ay)}function JB(e){return vM(e,Zu,hM)}var tg=Po(Dn,"DataView"),rg=Po(Dn,"Promise"),ng=Po(Dn,"Set"),Pb="[object Map]",eF="[object Object]",Eb="[object Promise]",Lb="[object Set]",Db="[object WeakMap]",Ib="[object DataView]",tF=Ao(tg),rF=Ao(mu),nF=Ao(rg),iF=Ao(ng),aF=Ao(Qp),Ga=Mo;(tg&&Ga(new tg(new ArrayBuffer(1)))!=Ib||mu&&Ga(new mu)!=Pb||rg&&Ga(rg.resolve())!=Eb||ng&&Ga(new ng)!=Lb||Qp&&Ga(new Qp)!=Db)&&(Ga=function(e){var t=Mo(e),r=t==eF?e.constructor:void 0,n=r?Ao(r):"";if(n)switch(n){case tF:return Ib;case rF:return Pb;case nF:return Eb;case iF:return Lb;case aF:return Db}return t});const _u=Ga;var oF=Object.prototype,sF=oF.hasOwnProperty;function lF(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&sF.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var cd=Dn.Uint8Array;function Py(e){var t=new e.constructor(e.byteLength);return new cd(t).set(new cd(e)),t}function uF(e,t){var r=t?Py(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var fF=/\w*$/;function cF(e){var t=new e.constructor(e.source,fF.exec(e));return t.lastIndex=e.lastIndex,t}var Ob=fn?fn.prototype:void 0,Rb=Ob?Ob.valueOf:void 0;function dF(e){return Rb?Object(Rb.call(e)):{}}function pM(e,t){var r=t?Py(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var hF="[object Boolean]",vF="[object Date]",pF="[object Map]",gF="[object Number]",mF="[object RegExp]",yF="[object Set]",_F="[object String]",bF="[object Symbol]",wF="[object ArrayBuffer]",SF="[object DataView]",xF="[object Float32Array]",CF="[object Float64Array]",TF="[object Int8Array]",MF="[object Int16Array]",AF="[object Int32Array]",PF="[object Uint8Array]",EF="[object Uint8ClampedArray]",LF="[object Uint16Array]",DF="[object Uint32Array]";function IF(e,t,r){var n=e.constructor;switch(t){case wF:return Py(e);case hF:case vF:return new n(+e);case SF:return uF(e,r);case xF:case CF:case TF:case MF:case AF:case PF:case EF:case LF:case DF:return pM(e,r);case pF:return new n;case gF:case _F:return new n(e);case mF:return cF(e);case yF:return new n;case bF:return dF(e)}}function gM(e){return typeof e.constructor=="function"&&!yy(e)?Hk(My(e)):{}}var OF="[object Map]";function RF(e){return Xn(e)&&_u(e)==OF}var kb=ys&&ys.isMap,kF=kb?_y(kb):RF,NF="[object Set]";function BF(e){return Xn(e)&&_u(e)==NF}var Nb=ys&&ys.isSet,FF=Nb?_y(Nb):BF,$F=1,HF=2,zF=4,mM="[object Arguments]",VF="[object Array]",WF="[object Boolean]",GF="[object Date]",UF="[object Error]",yM="[object Function]",YF="[object GeneratorFunction]",jF="[object Map]",qF="[object Number]",_M="[object Object]",KF="[object RegExp]",XF="[object Set]",ZF="[object String]",QF="[object Symbol]",JF="[object WeakMap]",e$="[object ArrayBuffer]",t$="[object DataView]",r$="[object Float32Array]",n$="[object Float64Array]",i$="[object Int8Array]",a$="[object Int16Array]",o$="[object Int32Array]",s$="[object Uint8Array]",l$="[object Uint8ClampedArray]",u$="[object Uint16Array]",f$="[object Uint32Array]",mt={};mt[mM]=mt[VF]=mt[e$]=mt[t$]=mt[WF]=mt[GF]=mt[r$]=mt[n$]=mt[i$]=mt[a$]=mt[o$]=mt[jF]=mt[qF]=mt[_M]=mt[KF]=mt[XF]=mt[ZF]=mt[QF]=mt[s$]=mt[l$]=mt[u$]=mt[f$]=!0;mt[UF]=mt[yM]=mt[JF]=!1;function Pc(e,t,r,n,i,a){var o,s=t&$F,l=t&HF,u=t&zF;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!Dr(e))return e;var f=gr(e);if(f){if(o=lF(e),!s)return tM(e,o)}else{var c=_u(e),h=c==yM||c==YF;if(pu(e))return cM(e,s);if(c==_M||c==mM||h&&!i){if(o=l||h?{}:gM(e),!s)return l?QB(e,UB(o,e)):XB(e,GB(o,e))}else{if(!mt[c])return i?e:{};o=IF(e,c,s)}}a||(a=new An);var d=a.get(e);if(d)return d;a.set(e,o),FF(e)?e.forEach(function(m){o.add(Pc(m,t,r,m,e,a))}):kF(e)&&e.forEach(function(m,g){o.set(g,Pc(m,t,r,g,e,a))});var v=u?l?JB:eg:l?Zu:Xu,p=f?void 0:v(e);return Kk(p||e,function(m,g){p&&(g=m,m=e[g]),gy(o,g,Pc(m,t,r,g,e,a))}),o}var c$=4;function Bb(e){return Pc(e,c$)}var d$="__lodash_hash_undefined__";function h$(e){return this.__data__.set(e,d$),this}function v$(e){return this.__data__.has(e)}function dd(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ei;++t<r;)this.add(e[t])}dd.prototype.add=dd.prototype.push=h$;dd.prototype.has=v$;function p$(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 g$(e,t){return e.has(t)}var m$=1,y$=2;function bM(e,t,r,n,i,a){var o=r&m$,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,h=!0,d=r&y$?new dd:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var v=e[c],p=t[c];if(n)var m=o?n(p,v,c,t,e,a):n(v,p,c,e,t,a);if(m!==void 0){if(m)continue;h=!1;break}if(d){if(!p$(t,function(g,y){if(!g$(d,y)&&(v===g||i(v,g,r,n,a)))return d.push(y)})){h=!1;break}}else if(!(v===p||i(v,p,r,n,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function _$(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function b$(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var w$=1,S$=2,x$="[object Boolean]",C$="[object Date]",T$="[object Error]",M$="[object Map]",A$="[object Number]",P$="[object RegExp]",E$="[object Set]",L$="[object String]",D$="[object Symbol]",I$="[object ArrayBuffer]",O$="[object DataView]",Fb=fn?fn.prototype:void 0,tv=Fb?Fb.valueOf:void 0;function R$(e,t,r,n,i,a,o){switch(r){case O$:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I$:return!(e.byteLength!=t.byteLength||!a(new cd(e),new cd(t)));case x$:case C$:case A$:return qu(+e,+t);case T$:return e.name==t.name&&e.message==t.message;case P$:case L$:return e==t+"";case M$:var s=_$;case E$:var l=n&w$;if(s||(s=b$),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=S$,o.set(e,t);var f=bM(s(e),s(t),n,i,a,o);return o.delete(e),f;case D$:if(tv)return tv.call(e)==tv.call(t)}return!1}var k$=1,N$=Object.prototype,B$=N$.hasOwnProperty;function F$(e,t,r,n,i,a){var o=r&k$,s=eg(e),l=s.length,u=eg(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var h=s[c];if(!(o?h in t:B$.call(t,h)))return!1}var d=a.get(e),v=a.get(t);if(d&&v)return d==t&&v==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++c<l;){h=s[c];var g=e[h],y=t[h];if(n)var _=o?n(y,g,h,t,e,a):n(g,y,h,e,t,a);if(!(_===void 0?g===y||i(g,y,r,n,a):_)){p=!1;break}m||(m=h=="constructor")}if(p&&!m){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 $$=1,$b="[object Arguments]",Hb="[object Array]",Sf="[object Object]",H$=Object.prototype,zb=H$.hasOwnProperty;function z$(e,t,r,n,i,a){var o=gr(e),s=gr(t),l=o?Hb:_u(e),u=s?Hb:_u(t);l=l==$b?Sf:l,u=u==$b?Sf:u;var f=l==Sf,c=u==Sf,h=l==u;if(h&&pu(e)){if(!pu(t))return!1;o=!0,f=!1}if(h&&!f)return a||(a=new An),o||by(e)?bM(e,t,r,n,i,a):R$(e,t,l,r,n,i,a);if(!(r&$$)){var d=f&&zb.call(e,"__wrapped__"),v=c&&zb.call(t,"__wrapped__");if(d||v){var p=d?e.value():e,m=v?t.value():t;return a||(a=new An),i(p,m,r,n,a)}}return h?(a||(a=new An),F$(e,t,r,n,i,a)):!1}function uh(e,t,r,n,i){return e===t?!0:e==null||t==null||!Xn(e)&&!Xn(t)?e!==e&&t!==t:z$(e,t,r,n,uh,i)}var V$=1,W$=2;function G$(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],f=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new An;if(n)var h=n(u,f,l,e,t,c);if(!(h===void 0?uh(f,u,V$|W$,n,c):h))return!1}}return!0}function wM(e){return e===e&&!Dr(e)}function U$(e){for(var t=Xu(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,wM(i)]}return t}function SM(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Y$(e){var t=U$(e);return t.length==1&&t[0][2]?SM(t[0][0],t[0][1]):function(r){return r===e||G$(r,e,t)}}function j$(e,t){return e!=null&&t in Object(e)}function q$(e,t,r){t=lh(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=Qu(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&&my(i)&&ah(o,i)&&(gr(e)||vu(e)))}function xM(e,t){return e!=null&&q$(e,t,j$)}var K$=1,X$=2;function Z$(e,t){return wy(e)&&wM(t)?SM(Qu(e),t):function(r){var n=yu(r,e);return n===void 0&&n===t?xM(r,e):uh(t,n,K$|X$)}}function Q$(e){return function(t){return t==null?void 0:t[e]}}function J$(e){return function(t){return xy(t,e)}}function e3(e){return wy(e)?Q$(Qu(e)):J$(e)}function t3(e){return typeof e=="function"?e:e==null?hy:typeof e=="object"?gr(e)?Z$(e[0],e[1]):Y$(e):e3(e)}function r3(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 CM=r3();function n3(e,t){return e&&CM(e,t,Xu)}function i3(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 a3=i3(n3),rv=function(){return Dn.Date.now()},o3="Expected a function",s3=Math.max,l3=Math.min;function hd(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(o3);t=pb(t)||0,Dr(r)&&(f=!!r.leading,c="maxWait"in r,a=c?s3(pb(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function d(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(g,t),f?d(w):o}function p(w){var S=w-l,C=w-u,M=t-S;return c?l3(M,a-C):M}function m(w){var S=w-l,C=w-u;return l===void 0||S>=t||S<0||c&&C>=a}function g(){var w=rv();if(m(w))return y(w);s=setTimeout(g,p(w))}function y(w){return s=void 0,h&&n?d(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(rv())}function x(){var w=rv(),S=m(w);if(n=arguments,i=this,l=w,S){if(s===void 0)return v(l);if(c)return clearTimeout(s),s=setTimeout(g,t),d(l)}return s===void 0&&(s=setTimeout(g,t)),o}return x.cancel=_,x.flush=b,x}function ig(e,t,r){(r!==void 0&&!qu(e[t],r)||r===void 0&&!(t in e))&&py(e,t,r)}function u3(e){return Xn(e)&&Fs(e)}function ag(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function f3(e){return Ku(e,Zu(e))}function c3(e,t,r,n,i,a,o){var s=ag(e,r),l=ag(t,r),u=o.get(l);if(u){ig(e,r,u);return}var f=a?a(s,l,r+"",e,t,o):void 0,c=f===void 0;if(c){var h=gr(l),d=!h&&pu(l),v=!h&&!d&&by(l);f=l,h||d||v?gr(s)?f=s:u3(s)?f=tM(s):d?(c=!1,f=cM(l,!0)):v?(c=!1,f=pM(l,!0)):f=[]:BB(l)||vu(l)?(f=s,vu(s)?f=f3(s):(!Dr(s)||vy(s))&&(f=gM(l))):c=!1}c&&(o.set(l,f),i(f,l,n,a,o),o.delete(l)),ig(e,r,f)}function TM(e,t,r,n,i){e!==t&&CM(t,function(a,o){if(i||(i=new An),Dr(a))c3(e,t,o,r,TM,n,i);else{var s=n?n(ag(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),ig(e,o,s)}},Zu)}function d3(e,t){var r=-1,n=Fs(e)?Array(e.length):[];return a3(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function h3(e,t){var r=gr(e)?JT:d3;return r(e,t3(t))}function v3(e,t){return Ty(h3(e,t),1)}function og(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 p3(e,t){return uh(e,t)}function _s(e){return e==null}function MM(e){return e===void 0}var g3=nN(function(e,t,r){TM(e,t,r)});const m3=g3;function AM(e,t,r,n){if(!Dr(e))return e;t=lh(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=Qu(t[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var f=s[l];u=n?n(f,l,s):void 0,u===void 0&&(u=Dr(f)?f:ah(t[i+1])?[]:{})}gy(s,l,u),s=s[l]}return e}function y3(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=xy(e,o);r(s,o)&&AM(a,lh(o,e),s)}return a}function _3(e,t){return y3(e,t,function(r,n){return xM(e,n)})}var b3=LB(function(e,t){return e==null?{}:_3(e,t)});function w3(e,t,r){return e==null?e:AM(e,t,r)}const bs=e=>e===void 0,zr=e=>typeof e=="boolean",kt=e=>typeof e=="number",mo=e=>typeof Element>"u"?!1:e instanceof Element,S3=e=>ze(e)?!Number.isNaN(Number(e)):!1,Vb=e=>Object.keys(e),Ec=(e,t,r)=>({get value(){return yu(e,t,r)},set value(n){w3(e,t,n)}});class x3 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function bi(e,t){throw new x3(`[${e}] ${t}`)}const PM=(e="")=>e.split(" ").filter(t=>!!t.trim()),oo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Za=(e,t)=>{!e||!t.trim()||e.classList.add(...PM(t))},so=(e,t)=>{!e||!t.trim()||e.classList.remove(...PM(t))},C3=(e,t)=>{var r;if(!At||!e||!t)return"";let n=Pn(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 Zn(e,t="px"){if(!e)return"";if(kt(e)||S3(e))return`${e}${t}`;if(ze(e))return e}let xf;const T3=e=>{var t;if(!At)return 0;if(xf!==void 0)return xf;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const n=r.offsetWidth;r.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",r.appendChild(i);const a=i.offsetWidth;return(t=r.parentNode)==null||t.removeChild(r),xf=n-a,xf};/*! Element Plus Icons Vue v2.3.1 */var M3=ie({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("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"})]))}}),EM=M3,A3=ie({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("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"})]))}}),Ey=A3,P3=ie({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("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 0"})]))}}),E3=P3,L3=ie({name:"Back",__name:"back",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),te("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),D3=L3,I3=ie({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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.336z"})]))}}),LM=I3,O3=ie({name:"Close",__name:"close",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("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"})]))}}),vd=O3,R3=ie({name:"InfoFilled",__name:"info-filled",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.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.344M590.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"})]))}}),DM=R3,k3=ie({name:"Loading",__name:"loading",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Ly=k3,N3=ie({name:"More",__name:"more",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("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-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),B3=N3,F3=ie({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),$3=F3,H3=ie({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-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.336z"})]))}}),IM=H3,z3=ie({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(G(),ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[te("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),OM=z3;const RM="__epPropKey",Be=e=>e,V3=e=>qe(e)&&!!e[RM],fh=(e,t)=>{if(!qe(e)||V3(e))return e;const{values:r,required:n,default:i,type:a,validator:o}=e,l={type:a,required:!!n,validator:r||o?u=>{let f=!1,c=[];if(r&&(c=Array.from(r),Ue(e,"default")&&c.push(i),f||(f=c.includes(u))),o&&(f||(f=o(u))),!f&&c.length>0){const h=[...new Set(c)].map(d=>JSON.stringify(d)).join(", ");MO(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return f}:void 0,[RM]:!0};return Ue(e,"default")&&(l.default=i),l},Je=e=>og(Object.entries(e).map(([t,r])=>[t,fh(r,t)])),vr=Be([String,Object,Function]),W3={Close:vd},G3={Close:vd,SuccessFilled:IM,InfoFilled:DM,WarningFilled:OM,CircleCloseFilled:LM},Wb={success:IM,warning:OM,error:LM,info:DM},Yt=(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},U3=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),pa=e=>(e.install=Ft,e),Y3=(...e)=>t=>{e.forEach(r=>{De(r)?r(t):r.value=t})},hr={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"},wi="update:modelValue",sg="change",lg="input",$s=["","default","small","large"],j3=e=>["",...$s].includes(e);var Lc=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Lc||{});const Dc=e=>{const t=_e(e)?e:[e],r=[];return t.forEach(n=>{var i;_e(n)?r.push(...Dc(n)):la(n)&&_e(n.children)?r.push(...Dc(n.children)):(r.push(n),la(n)&&((i=n.component)!=null&&i.subTree)&&r.push(...Dc(n.component.subTree)))}),r},q3=e=>At?window.requestAnimationFrame(e):setTimeout(e,16),ja=e=>e,bu=({from:e,replacement:t,scope:r,version:n,ref:i,type:a="API"},o)=>{be(()=>T(o),s=>{},{immediate:!0})},K3=(e,t,r)=>{let n={offsetX:0,offsetY:0};const i=s=>{const l=s.clientX,u=s.clientY,{offsetX:f,offsetY:c}=n,h=e.value.getBoundingClientRect(),d=h.left,v=h.top,p=h.width,m=h.height,g=document.documentElement.clientWidth,y=document.documentElement.clientHeight,_=-d+f,b=-v+c,x=g-d-p+f,w=y-v-m+c,S=M=>{const A=Math.min(Math.max(f+M.clientX-l,_),x),P=Math.min(Math.max(c+M.clientY-u,b),w);n={offsetX:A,offsetY:P},e.value&&(e.value.style.transform=`translate(${Zn(A)}, ${Zn(P)})`)},C=()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",C)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",C)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};_t(()=>{na(()=>{r.value?a():o()})}),tr(()=>{o()})};var X3={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"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Z3=e=>(t,r)=>Q3(t,r,T(e)),Q3=(e,t,r)=>yu(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var a;return`${(a=t==null?void 0:t[i])!=null?a:`{${i}}`}`}),J3=e=>{const t=k(()=>T(e).name),r=Pt(e)?e:$(e);return{lang:t,locale:r,t:Z3(e)}},kM=Symbol("localeContextKey"),Hs=e=>{const t=e||Le(kM,$());return J3(k(()=>t.value||X3))},Bl="el",e5="is-",ba=(e,t,r,n,i)=>{let a=`${e}-${t}`;return r&&(a+=`-${r}`),n&&(a+=`__${n}`),i&&(a+=`--${i}`),a},NM=Symbol("namespaceContextKey"),Dy=e=>{const t=e||(it()?Le(NM,$(Bl)):$(Bl));return k(()=>T(t)||Bl)},Oe=(e,t)=>{const r=Dy(t);return{namespace:r,b:(p="")=>ba(r.value,e,p,"",""),e:p=>p?ba(r.value,e,"",p,""):"",m:p=>p?ba(r.value,e,"","",p):"",be:(p,m)=>p&&m?ba(r.value,e,p,m,""):"",em:(p,m)=>p&&m?ba(r.value,e,"",p,m):"",bm:(p,m)=>p&&m?ba(r.value,e,p,"",m):"",bem:(p,m,g)=>p&&m&&g?ba(r.value,e,p,m,g):"",is:(p,...m)=>{const g=m.length>=1?m[0]:!0;return p&&g?`${e5}${p}`:""},cssVar:p=>{const m={};for(const g in p)p[g]&&(m[`--${r.value}-${g}`]=p[g]);return m},cssVarName:p=>`--${r.value}-${p}`,cssVarBlock:p=>{const m={};for(const g in p)p[g]&&(m[`--${r.value}-${e}-${g}`]=p[g]);return m},cssVarBlockName:p=>`--${r.value}-${e}-${p}`}},t5=(e,t={})=>{Pt(e)||bi("[useLockscreen]","You need to pass a ref param to this function");const r=t.ns||Oe("popup"),n=QC(()=>r.bm("parent","hidden"));if(!At||oo(document.body,n.value))return;let i=0,a=!1,o="0";const s=()=>{setTimeout(()=>{so(document==null?void 0:document.body,n.value),a&&document&&(document.body.style.width=o)},200)};be(e,l=>{if(!l){s();return}a=!oo(document.body,n.value),a&&(o=document.body.style.width),i=T3(r.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,f=C3(document.body,"overflowY");i>0&&(u||f==="scroll")&&a&&(document.body.style.width=`calc(100% - ${i}px)`),Za(document.body,n.value)}),NC(()=>s())},r5=fh({type:Be(Boolean),default:null}),n5=fh({type:Be(Function)}),BM=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:r5,[r]:n5};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:f,onHide:c})=>{const h=it(),{emit:d}=h,v=h.props,p=k(()=>De(v[r])),m=k(()=>v[e]===null),g=S=>{o.value!==!0&&(o.value=!0,s&&(s.value=S),De(f)&&f(S))},y=S=>{o.value!==!1&&(o.value=!1,s&&(s.value=S),De(c)&&c(S))},_=S=>{if(v.disabled===!0||De(u)&&!u())return;const C=p.value&&At;C&&d(t,!0),(m.value||!C)&&g(S)},b=S=>{if(v.disabled===!0||!At)return;const C=p.value&&At;C&&d(t,!1),(m.value||!C)&&y(S)},x=S=>{zr(S)&&(v.disabled&&S?p.value&&d(t,!1):o.value!==S&&(S?g():y()))},w=()=>{o.value?b():_()};return be(()=>v[e],x),l&&h.appContext.config.globalProperties.$route!==void 0&&be(()=>({...h.proxy.$route}),()=>{l.value&&o.value&&b()}),_t(()=>{x(v[e])}),{hide:b,show:_,toggle:w,hasUpdateHandler:p}},useModelToggleProps:i,useModelToggleEmits:n}};BM("modelValue");const FM=e=>{const t=it();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 Ar="top",cn="bottom",dn="right",Pr="left",Iy="auto",Ju=[Ar,cn,dn,Pr],ws="start",wu="end",i5="clippingParents",$M="viewport",Js="popper",a5="reference",Gb=Ju.reduce(function(e,t){return e.concat([t+"-"+ws,t+"-"+wu])},[]),Oy=[].concat(Ju,[Iy]).reduce(function(e,t){return e.concat([t,t+"-"+ws,t+"-"+wu])},[]),o5="beforeRead",s5="read",l5="afterRead",u5="beforeMain",f5="main",c5="afterMain",d5="beforeWrite",h5="write",v5="afterWrite",p5=[o5,s5,l5,u5,f5,c5,d5,h5,v5];function Qn(e){return e?(e.nodeName||"").toLowerCase():null}function In(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ss(e){var t=In(e).Element;return e instanceof t||e instanceof Element}function ln(e){var t=In(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ry(e){if(typeof ShadowRoot>"u")return!1;var t=In(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function g5(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];!ln(a)||!Qn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function m5(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},{});!ln(i)||!Qn(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var HM={name:"applyStyles",enabled:!0,phase:"write",fn:g5,effect:m5,requires:["computeStyles"]};function jn(e){return e.split("-")[0]}var lo=Math.max,pd=Math.min,xs=Math.round;function Cs(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(ln(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(n=xs(r.width)/o||1),a>0&&(i=xs(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 ky(e){var t=Cs(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 zM(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ry(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Si(e){return In(e).getComputedStyle(e)}function y5(e){return["table","td","th"].indexOf(Qn(e))>=0}function ga(e){return((Ss(e)?e.ownerDocument:e.document)||window.document).documentElement}function ch(e){return Qn(e)==="html"?e:e.assignedSlot||e.parentNode||(Ry(e)?e.host:null)||ga(e)}function Ub(e){return!ln(e)||Si(e).position==="fixed"?null:e.offsetParent}function _5(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&ln(e)){var n=Si(e);if(n.position==="fixed")return null}var i=ch(e);for(Ry(i)&&(i=i.host);ln(i)&&["html","body"].indexOf(Qn(i))<0;){var a=Si(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 ef(e){for(var t=In(e),r=Ub(e);r&&y5(r)&&Si(r).position==="static";)r=Ub(r);return r&&(Qn(r)==="html"||Qn(r)==="body"&&Si(r).position==="static")?t:r||_5(e)||t}function Ny(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fl(e,t,r){return lo(e,pd(t,r))}function b5(e,t,r){var n=Fl(e,t,r);return n>r?r:n}function VM(){return{top:0,right:0,bottom:0,left:0}}function WM(e){return Object.assign({},VM(),e)}function GM(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var w5=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,WM(typeof e!="number"?e:GM(e,Ju))};function S5(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=Ny(s),u=[Pr,dn].indexOf(s)>=0,f=u?"height":"width";if(!(!a||!o)){var c=w5(i.padding,r),h=ky(a),d=l==="y"?Ar:Pr,v=l==="y"?cn:dn,p=r.rects.reference[f]+r.rects.reference[l]-o[l]-r.rects.popper[f],m=o[l]-r.rects.reference[l],g=ef(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,_=p/2-m/2,b=c[d],x=y-h[f]-c[v],w=y/2-h[f]/2+_,S=Fl(b,w,x),C=l;r.modifiersData[n]=(t={},t[C]=S,t.centerOffset=S-w,t)}}function x5(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)||!zM(t.elements.popper,i)||(t.elements.arrow=i))}var C5={name:"arrow",enabled:!0,phase:"main",fn:S5,effect:x5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ts(e){return e.split("-")[1]}var T5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M5(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:xs(t*i)/i||0,y:xs(r*i)/i||0}}function Yb(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,c=e.isFixed,h=o.x,d=h===void 0?0:h,v=o.y,p=v===void 0?0:v,m=typeof f=="function"?f({x:d,y:p}):{x:d,y:p};d=m.x,p=m.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=Pr,b=Ar,x=window;if(u){var w=ef(r),S="clientHeight",C="clientWidth";if(w===In(r)&&(w=ga(r),Si(w).position!=="static"&&s==="absolute"&&(S="scrollHeight",C="scrollWidth")),w=w,i===Ar||(i===Pr||i===dn)&&a===wu){b=cn;var M=c&&w===x&&x.visualViewport?x.visualViewport.height:w[S];p-=M-n.height,p*=l?1:-1}if(i===Pr||(i===Ar||i===cn)&&a===wu){_=dn;var A=c&&w===x&&x.visualViewport?x.visualViewport.width:w[C];d-=A-n.width,d*=l?1:-1}}var P=Object.assign({position:s},u&&T5),E=f===!0?M5({x:d,y:p}):{x:d,y:p};if(d=E.x,p=E.y,l){var L;return Object.assign({},P,(L={},L[b]=y?"0":"",L[_]=g?"0":"",L.transform=(x.devicePixelRatio||1)<=1?"translate("+d+"px, "+p+"px)":"translate3d("+d+"px, "+p+"px, 0)",L))}return Object.assign({},P,(t={},t[b]=y?p+"px":"",t[_]=g?d+"px":"",t.transform="",t))}function A5(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:Ts(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,Yb(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,Yb(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 UM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:A5,data:{}},Cf={passive:!0};function P5(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=In(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(f){f.addEventListener("scroll",r.update,Cf)}),s&&l.addEventListener("resize",r.update,Cf),function(){a&&u.forEach(function(f){f.removeEventListener("scroll",r.update,Cf)}),s&&l.removeEventListener("resize",r.update,Cf)}}var YM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:P5,data:{}},E5={left:"right",right:"left",bottom:"top",top:"bottom"};function Ic(e){return e.replace(/left|right|bottom|top/g,function(t){return E5[t]})}var L5={start:"end",end:"start"};function jb(e){return e.replace(/start|end/g,function(t){return L5[t]})}function By(e){var t=In(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Fy(e){return Cs(ga(e)).left+By(e).scrollLeft}function D5(e){var t=In(e),r=ga(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+Fy(e),y:s}}function I5(e){var t,r=ga(e),n=By(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=lo(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=lo(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Fy(e),l=-n.scrollTop;return Si(i||r).direction==="rtl"&&(s+=lo(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function $y(e){var t=Si(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function jM(e){return["html","body","#document"].indexOf(Qn(e))>=0?e.ownerDocument.body:ln(e)&&$y(e)?e:jM(ch(e))}function $l(e,t){var r;t===void 0&&(t=[]);var n=jM(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=In(n),o=i?[a].concat(a.visualViewport||[],$y(n)?n:[]):n,s=t.concat(o);return i?s:s.concat($l(ch(o)))}function ug(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function O5(e){var t=Cs(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 qb(e,t){return t===$M?ug(D5(e)):Ss(t)?O5(t):ug(I5(ga(e)))}function R5(e){var t=$l(ch(e)),r=["absolute","fixed"].indexOf(Si(e).position)>=0,n=r&&ln(e)?ef(e):e;return Ss(n)?t.filter(function(i){return Ss(i)&&zM(i,n)&&Qn(i)!=="body"}):[]}function k5(e,t,r){var n=t==="clippingParents"?R5(e):[].concat(t),i=[].concat(n,[r]),a=i[0],o=i.reduce(function(s,l){var u=qb(e,l);return s.top=lo(u.top,s.top),s.right=pd(u.right,s.right),s.bottom=pd(u.bottom,s.bottom),s.left=lo(u.left,s.left),s},qb(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 qM(e){var t=e.reference,r=e.element,n=e.placement,i=n?jn(n):null,a=n?Ts(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case Ar:l={x:o,y:t.y-r.height};break;case cn:l={x:o,y:t.y+t.height};break;case dn:l={x:t.x+t.width,y:s};break;case Pr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?Ny(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case ws:l[u]=l[u]-(t[f]/2-r[f]/2);break;case wu:l[u]=l[u]+(t[f]/2-r[f]/2);break}}return l}function Su(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?i5:a,s=r.rootBoundary,l=s===void 0?$M:s,u=r.elementContext,f=u===void 0?Js:u,c=r.altBoundary,h=c===void 0?!1:c,d=r.padding,v=d===void 0?0:d,p=WM(typeof v!="number"?v:GM(v,Ju)),m=f===Js?a5:Js,g=e.rects.popper,y=e.elements[h?m:f],_=k5(Ss(y)?y:y.contextElement||ga(e.elements.popper),o,l),b=Cs(e.elements.reference),x=qM({reference:b,element:g,strategy:"absolute",placement:i}),w=ug(Object.assign({},g,x)),S=f===Js?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(f===Js&&M){var A=M[i];Object.keys(C).forEach(function(P){var E=[dn,cn].indexOf(P)>=0?1:-1,L=[Ar,cn].indexOf(P)>=0?"y":"x";C[P]+=A[L]*E})}return C}function N5(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?Oy:l,f=Ts(n),c=f?s?Gb:Gb.filter(function(v){return Ts(v)===f}):Ju,h=c.filter(function(v){return u.indexOf(v)>=0});h.length===0&&(h=c);var d=h.reduce(function(v,p){return v[p]=Su(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[jn(p)],v},{});return Object.keys(d).sort(function(v,p){return d[v]-d[p]})}function B5(e){if(jn(e)===Iy)return[];var t=Ic(e);return[jb(e),t,jb(t)]}function F5(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,f=r.boundary,c=r.rootBoundary,h=r.altBoundary,d=r.flipVariations,v=d===void 0?!0:d,p=r.allowedAutoPlacements,m=t.options.placement,g=jn(m),y=g===m,_=l||(y||!v?[Ic(m)]:B5(m)),b=[m].concat(_).reduce(function(we,$e){return we.concat(jn($e)===Iy?N5(t,{placement:$e,boundary:f,rootBoundary:c,padding:u,flipVariations:v,allowedAutoPlacements:p}):$e)},[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,M=b[0],A=0;A<b.length;A++){var P=b[A],E=jn(P),L=Ts(P)===ws,O=[Ar,cn].indexOf(E)>=0,N=O?"width":"height",H=Su(t,{placement:P,boundary:f,rootBoundary:c,altBoundary:h,padding:u}),V=O?L?dn:Pr:L?cn:Ar;x[N]>w[N]&&(V=Ic(V));var U=Ic(V),F=[];if(a&&F.push(H[E]<=0),s&&F.push(H[V]<=0,H[U]<=0),F.every(function(we){return we})){M=P,C=!1;break}S.set(P,F)}if(C)for(var z=v?3:1,ee=function(we){var $e=b.find(function(Ie){var B=S.get(Ie);if(B)return B.slice(0,we).every(function(Y){return Y})});if($e)return M=$e,"break"},J=z;J>0;J--){var me=ee(J);if(me==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}var $5={name:"flip",enabled:!0,phase:"main",fn:F5,requiresIfExists:["offset"],data:{_skip:!1}};function Kb(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 Xb(e){return[Ar,dn,cn,Pr].some(function(t){return e[t]>=0})}function H5(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Su(t,{elementContext:"reference"}),s=Su(t,{altBoundary:!0}),l=Kb(o,n),u=Kb(s,i,a),f=Xb(l),c=Xb(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":c})}var z5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:H5};function V5(e,t,r){var n=jn(e),i=[Pr,Ar].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,[Pr,dn].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function W5(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=Oy.reduce(function(f,c){return f[c]=V5(c,t.rects,a),f},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}var G5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:W5};function U5(e){var t=e.state,r=e.name;t.modifiersData[r]=qM({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var KM={name:"popperOffsets",enabled:!0,phase:"read",fn:U5,data:{}};function Y5(e){return e==="x"?"y":"x"}function j5(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,f=r.altBoundary,c=r.padding,h=r.tether,d=h===void 0?!0:h,v=r.tetherOffset,p=v===void 0?0:v,m=Su(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:f}),g=jn(t.placement),y=Ts(t.placement),_=!y,b=Ny(g),x=Y5(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,A=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(a){var L,O=b==="y"?Ar:Pr,N=b==="y"?cn:dn,H=b==="y"?"height":"width",V=w[b],U=V+m[O],F=V-m[N],z=d?-C[H]/2:0,ee=y===ws?S[H]:C[H],J=y===ws?-C[H]:-S[H],me=t.elements.arrow,we=d&&me?ky(me):{width:0,height:0},$e=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:VM(),Ie=$e[O],B=$e[N],Y=Fl(0,S[H],we[H]),K=_?S[H]/2-z-Y-Ie-A.mainAxis:ee-Y-Ie-A.mainAxis,Q=_?-S[H]/2+z+Y+B+A.mainAxis:J+Y+B+A.mainAxis,oe=t.elements.arrow&&ef(t.elements.arrow),pe=oe?b==="y"?oe.clientTop||0:oe.clientLeft||0:0,D=(L=P==null?void 0:P[b])!=null?L:0,I=V+K-D-pe,W=V+Q-D,X=Fl(d?pd(U,I):U,V,d?lo(F,W):F);w[b]=X,E[b]=X-V}if(s){var j,le=b==="x"?Ar:Pr,fe=b==="x"?cn:dn,ae=w[x],se=x==="y"?"height":"width",ne=ae+m[le],de=ae-m[fe],Me=[Ar,Pr].indexOf(g)!==-1,Se=(j=P==null?void 0:P[x])!=null?j:0,ke=Me?ne:ae-S[se]-C[se]-Se+A.altAxis,Ve=Me?ae+S[se]+C[se]-Se-A.altAxis:de,rt=d&&Me?b5(ke,ae,Ve):Fl(d?ke:ne,ae,d?Ve:de);w[x]=rt,E[x]=rt-ae}t.modifiersData[n]=E}}var q5={name:"preventOverflow",enabled:!0,phase:"main",fn:j5,requiresIfExists:["offset"]};function K5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function X5(e){return e===In(e)||!ln(e)?By(e):K5(e)}function Z5(e){var t=e.getBoundingClientRect(),r=xs(t.width)/e.offsetWidth||1,n=xs(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Q5(e,t,r){r===void 0&&(r=!1);var n=ln(t),i=ln(t)&&Z5(t),a=ga(t),o=Cs(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Qn(t)!=="body"||$y(a))&&(s=X5(t)),ln(t)?(l=Cs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Fy(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function J5(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 e4(e){var t=J5(e);return p5.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function t4(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function r4(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 Zb={placement:"bottom",modifiers:[],strategy:"absolute"};function Qb(){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 Hy(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?Zb:i;return function(o,s,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zb,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},f=[],c=!1,h={state:u,setOptions:function(p){var m=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},a,u.options,m),u.scrollParents={reference:Ss(o)?$l(o):o.contextElement?$l(o.contextElement):[],popper:$l(s)};var g=e4(r4([].concat(n,u.options.modifiers)));return u.orderedModifiers=g.filter(function(y){return y.enabled}),d(),h.update()},forceUpdate:function(){if(!c){var p=u.elements,m=p.reference,g=p.popper;if(Qb(m,g)){u.rects={reference:Q5(m,ef(g),u.options.strategy==="fixed"),popper:ky(g)},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:h})||u)}}}},update:t4(function(){return new Promise(function(p){h.forceUpdate(),p(u)})}),destroy:function(){v(),c=!0}};if(!Qb(o,s))return h;h.setOptions(l).then(function(p){!c&&l.onFirstUpdate&&l.onFirstUpdate(p)});function d(){u.orderedModifiers.forEach(function(p){var m=p.name,g=p.options,y=g===void 0?{}:g,_=p.effect;if(typeof _=="function"){var b=_({state:u,name:m,instance:h,options:y}),x=function(){};f.push(b||x)}})}function v(){f.forEach(function(p){return p()}),f=[]}return h}}Hy();var n4=[YM,KM,UM,HM];Hy({defaultModifiers:n4});var i4=[YM,KM,UM,HM,G5,$5,q5,C5,z5],a4=Hy({defaultModifiers:i4});const o4=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=s4(l);Object.assign(o.value,u)},requires:["computeStyles"]},i=k(()=>{const{onFirstUpdate:l,placement:u,strategy:f,modifiers:c}=T(r);return{onFirstUpdate:l,placement:u||"bottom",strategy:f||"absolute",modifiers:[...c||[],n,{name:"applyStyles",enabled:!1}]}}),a=ty(),o=$({styles:{popper:{position:T(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return be(i,l=>{const u=T(a);u&&u.setOptions(l)},{deep:!0}),be([e,t],([l,u])=>{s(),!(!l||!u)&&(a.value=a4(l,u,T(i)))}),tr(()=>{s()}),{state:k(()=>{var l;return{...((l=T(a))==null?void 0:l.state)||{}}}),styles:k(()=>T(o).styles),attributes:k(()=>T(o).attributes),update:()=>{var l;return(l=T(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=T(a))==null?void 0:l.forceUpdate()},instanceRef:k(()=>T(a))}};function s4(e){const t=Object.keys(e.elements),r=og(t.map(i=>[i,e.styles[i]||{}])),n=og(t.map(i=>[i,e.attributes[i]]));return{styles:r,attributes:n}}const XM=e=>{if(!e)return{onClick:Ft,onMousedown:Ft,onMouseup:Ft};let t=!1,r=!1;return{onClick:o=>{t&&r&&e(o),t=r=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{r=o.target===o.currentTarget}}};function Jb(){let e;const t=(n,i)=>{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return ju(()=>r()),{registerTimeout:t,cancelTimeout:r}}const e1={prefix:Math.floor(Math.random()*1e4),current:0},l4=Symbol("elIdInjection"),ZM=()=>it()?Le(l4,e1):e1,xu=e=>{const t=ZM(),r=Dy();return k(()=>T(e)||`${r.value}-id-${t.prefix}-${t.current++}`)};let Xo=[];const t1=e=>{const t=e;t.key===hr.esc&&Xo.forEach(r=>r(t))},u4=e=>{_t(()=>{Xo.length===0&&document.addEventListener("keydown",t1),At&&Xo.push(e)}),tr(()=>{Xo=Xo.filter(t=>t!==e),Xo.length===0&&At&&document.removeEventListener("keydown",t1)})};let r1;const QM=()=>{const e=Dy(),t=ZM(),r=k(()=>`${e.value}-popper-container-${t.prefix}`),n=k(()=>`#${r.value}`);return{id:r,selector:n}},f4=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},c4=()=>{const{id:e,selector:t}=QM();return eh(()=>{At&&!r1&&!document.body.querySelector(t.value)&&(r1=f4(e.value))}),{id:e,selector:t}},d4=Je({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),h4=({showAfter:e,hideAfter:t,autoClose:r,open:n,close:i})=>{const{registerTimeout:a}=Jb(),{registerTimeout:o,cancelTimeout:s}=Jb();return{onOpen:f=>{a(()=>{n(f);const c=T(r);kt(c)&&c>0&&o(()=>{i(f)},c)},T(e))},onClose:f=>{s(),a(()=>{i(f)},T(t))}}},JM=Symbol("elForwardRef"),v4=e=>{Dt(JM,{setForwardRef:r=>{e.value=r}})},p4=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),n1=$(0),eA=2e3,tA=Symbol("zIndexContextKey"),zy=e=>{const t=e||(it()?Le(tA,void 0):void 0),r=k(()=>{const a=T(t);return kt(a)?a:eA}),n=k(()=>r.value+n1.value);return{initialZIndex:r,currentZIndex:n,nextZIndex:()=>(n1.value++,n.value)}},dh=fh({type:String,values:$s,required:!1}),rA=Symbol("size"),g4=()=>{const e=Le(rA,{});return k(()=>T(e.size)||"")},nA=Symbol(),gd=$();function hh(e,t=void 0){const r=it()?Le(nA,gd):gd;return e?k(()=>{var n,i;return(i=(n=r.value)==null?void 0:n[e])!=null?i:t}):r}function m4(e,t){const r=hh(),n=Oe(e,k(()=>{var s;return((s=r.value)==null?void 0:s.namespace)||Bl})),i=Hs(k(()=>{var s;return(s=r.value)==null?void 0:s.locale})),a=zy(k(()=>{var s;return((s=r.value)==null?void 0:s.zIndex)||eA})),o=k(()=>{var s;return T(t)||((s=r.value)==null?void 0:s.size)||""});return y4(k(()=>T(r)||{})),{ns:n,locale:i,zIndex:a,size:o}}const y4=(e,t,r=!1)=>{var n;const i=!!it(),a=i?hh():void 0,o=(n=t==null?void 0:t.provide)!=null?n:i?Dt:void 0;if(!o)return;const s=k(()=>{const l=T(e);return a!=null&&a.value?_4(a.value,l):l});return o(nA,s),o(kM,k(()=>s.value.locale)),o(NM,k(()=>s.value.namespace)),o(tA,k(()=>s.value.zIndex)),o(rA,{size:k(()=>s.value.size||"")}),(r||!gd.value)&&(gd.value=s.value),s},_4=(e,t)=>{var r;const n=[...new Set([...Vb(e),...Vb(t)])],i={};for(const a of n)i[a]=(r=t[a])!=null?r:e[a];return i},i1={};var Ke=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const b4=Je({size:{type:Be([Number,String])},color:{type:String}}),w4=ie({name:"ElIcon",inheritAttrs:!1}),S4=ie({...w4,props:b4,setup(e){const t=e,r=Oe("icon"),n=k(()=>{const{size:i,color:a}=t;return!i&&!a?{}:{fontSize:bs(i)?void 0:Zn(i),"--color":a}});return(i,a)=>(G(),ce("i",ei({class:T(r).b(),style:T(n)},i.$attrs),[Ce(i.$slots,"default")],16))}});var x4=Ke(S4,[["__file","icon.vue"]]);const Bt=Yt(x4),zs=Symbol("formContextKey"),yo=Symbol("formItemContextKey"),xi=(e,t={})=>{const r=$(void 0),n=t.prop?r:FM("size"),i=t.global?r:g4(),a=t.form?{size:void 0}:Le(zs,void 0),o=t.formItem?{size:void 0}:Le(yo,void 0);return k(()=>n.value||T(e)||(o==null?void 0:o.size)||(a==null?void 0:a.size)||i.value||"")},vh=e=>{const t=FM("disabled"),r=Le(zs,void 0);return k(()=>t.value||T(e)||(r==null?void 0:r.disabled)||!1)},tf=()=>{const e=Le(zs,void 0),t=Le(yo,void 0);return{form:e,formItem:t}},Vy=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=$(!1)),n||(n=$(!1));const i=$();let a;const o=k(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return _t(()=>{a=be([wn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:xu().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}},C4=Je({size:{type:String,values:$s},disabled:Boolean}),T4=Je({...C4,model:Object,rules:{type:Be(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:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),M4={validate:(e,t,r)=>(_e(e)||ze(e))&&zr(t)&&ze(r)};function A4(){const e=$([]),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 Tf=(e,t)=>{const r=Jp(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},P4="ElForm",E4=ie({name:P4}),L4=ie({...E4,props:T4,emits:M4,setup(e,{expose:t,emit:r}){const n=e,i=[],a=xi(),o=Oe("form"),s=k(()=>{const{labelPosition:_,inline:b}=n;return[o.b(),o.m(a.value||"default"),{[o.m(`label-${_}`)]:_,[o.m("inline")]:b}]}),l=_=>i.find(b=>b.prop===_),u=_=>{i.push(_)},f=_=>{_.prop&&i.splice(i.indexOf(_),1)},c=(_=[])=>{n.model&&Tf(i,_).forEach(b=>b.resetField())},h=(_=[])=>{Tf(i,_).forEach(b=>b.clearValidate())},d=k(()=>!!n.model),v=_=>{if(i.length===0)return[];const b=Tf(i,_);return b.length?b:[]},p=async _=>g(void 0,_),m=async(_=[])=>{if(!d.value)return!1;const b=v(_);if(b.length===0)return!0;let x={};for(const w of b)try{await w.validate("")}catch(S){x={...x,...S}}return Object.keys(x).length===0?!0:Promise.reject(x)},g=async(_=[],b)=>{const x=!De(b);try{const w=await m(_);return w===!0&&(b==null||b(w)),w}catch(w){if(w instanceof Error)throw w;const S=w;return n.scrollToError&&y(Object.keys(S)[0]),b==null||b(!1,S),x&&Promise.reject(S)}},y=_=>{var b;const x=Tf(i,_)[0];x&&((b=x.$el)==null||b.scrollIntoView(n.scrollIntoViewOptions))};return be(()=>n.rules,()=>{n.validateOnRuleChange&&p().catch(_=>void 0)},{deep:!0}),Dt(zs,Ln({...Kd(n),emit:r,resetFields:c,clearValidate:h,validateField:g,getField:l,addField:u,removeField:f,...A4()})),t({validate:p,validateField:g,resetFields:c,clearValidate:h,scrollToField:y}),(_,b)=>(G(),ce("form",{class:re(T(s))},[Ce(_.$slots,"default")],2))}});var D4=Ke(L4,[["__file","form.vue"]]);function Qa(){return Qa=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},Qa.apply(this,arguments)}function I4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cu(e,t)}function fg(e){return fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fg(e)}function Cu(e,t){return Cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cu(e,t)}function O4(){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 Oc(e,t,r){return O4()?Oc=Reflect.construct.bind():Oc=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&Cu(u,o.prototype),u},Oc.apply(null,arguments)}function R4(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function cg(e){var t=typeof Map=="function"?new Map:void 0;return cg=function(n){if(n===null||!R4(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 Oc(n,arguments,fg(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Cu(i,n)},cg(e)}var k4=/%[sdj%]/g,N4=function(){};function dg(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 Fr(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(k4,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 B4(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ut(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||B4(t)&&typeof e=="string"&&!e)}function F4(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 a1(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 $4(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var o1=function(e){I4(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}(cg(Error));function H4(e,t,r,n,i){if(t.first){var a=new Promise(function(h,d){var v=function(g){return n(g),g.length?d(new o1(g,dg(g))):h(i)},p=$4(e);a1(p,r,v)});return a.catch(function(h){return h}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,f=[],c=new Promise(function(h,d){var v=function(m){if(f.push.apply(f,m),u++,u===l)return n(f),f.length?d(new o1(f,dg(f))):h(i)};s.length||(n(f),h(i)),s.forEach(function(p){var m=e[p];o.indexOf(p)!==-1?a1(m,r,v):F4(m,r,v)})});return c.catch(function(h){return h}),c}function z4(e){return!!(e&&e.message!==void 0)}function V4(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function s1(e,t){return function(r){var n;return e.fullFields?n=V4(t,e.fullFields):n=t[r.field||e.fullField],z4(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 l1(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]=Qa({},e[r],n):e[r]=n}}return e}var iA=function(t,r,n,i,a,o){t.required&&(!n.hasOwnProperty(t.field)||Ut(r,o||t.type))&&i.push(Fr(a.messages.required,t.fullField))},W4=function(t,r,n,i,a){(/^\s+$/.test(r)||r==="")&&i.push(Fr(a.messages.whitespace,t.fullField))},Mf,G4=function(){if(Mf)return Mf;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
@@ -25,7 +25,7 @@ var DD=Object.defineProperty;var ID=(e,t,r)=>t in e?DD(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]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",c=l.v4().source,h=l.v6().source,d="(?:(?:[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,}))",m="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+f+"(?:localhost|"+c+"|"+h+"|"+d+v+p+")"+m+g;return Mf=new RegExp("(?:^"+y+"$)","i"),Mf},u1={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},xl={integer:function(t){return xl.number(t)&&parseInt(t,10)===t},float:function(t){return xl.number(t)&&!xl.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"&&!xl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(u1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(G4())},hex:function(t){return typeof t=="string"&&!!t.match(u1.hex)}},U4=function(t,r,n,i,a){if(t.required&&r===void 0){iA(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?xl[s](r)||i.push(Fr(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Fr(a.messages.types[s],t.fullField,t.type))},Y4=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=r,c=null,h=typeof r=="number",d=typeof r=="string",v=Array.isArray(r);if(h?c="number":d?c="string":v&&(c="array"),!c)return!1;v&&(f=r.length),d&&(f=r.replace(u,"_").length),o?f!==t.len&&i.push(Fr(a.messages[c].len,t.fullField,t.len)):s&&!l&&f<t.min?i.push(Fr(a.messages[c].min,t.fullField,t.min)):l&&!s&&f>t.max?i.push(Fr(a.messages[c].max,t.fullField,t.max)):s&&l&&(f<t.min||f>t.max)&&i.push(Fr(a.messages[c].range,t.fullField,t.min,t.max))},Io="enum",j4=function(t,r,n,i,a){t[Io]=Array.isArray(t[Io])?t[Io]:[],t[Io].indexOf(r)===-1&&i.push(Fr(a.messages[Io],t.fullField,t[Io].join(", ")))},q4=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Fr(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(Fr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Xe={required:iA,whitespace:W4,type:U4,range:Y4,enum:j4,pattern:q4},K4=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r,"string")&&!t.required)return n();Xe.required(t,r,i,o,a,"string"),Ut(r,"string")||(Xe.type(t,r,i,o,a),Xe.range(t,r,i,o,a),Xe.pattern(t,r,i,o,a),t.whitespace===!0&&Xe.whitespace(t,r,i,o,a))}n(o)},X4=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&Xe.type(t,r,i,o,a)}n(o)},Z4=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&(Xe.type(t,r,i,o,a),Xe.range(t,r,i,o,a))}n(o)},Q4=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&Xe.type(t,r,i,o,a)}n(o)},J4=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),Ut(r)||Xe.type(t,r,i,o,a)}n(o)},eH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&(Xe.type(t,r,i,o,a),Xe.range(t,r,i,o,a))}n(o)},tH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&(Xe.type(t,r,i,o,a),Xe.range(t,r,i,o,a))}n(o)},rH=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();Xe.required(t,r,i,o,a,"array"),r!=null&&(Xe.type(t,r,i,o,a),Xe.range(t,r,i,o,a))}n(o)},nH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&Xe.type(t,r,i,o,a)}n(o)},iH="enum",aH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&Xe[iH](t,r,i,o,a)}n(o)},oH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r,"string")&&!t.required)return n();Xe.required(t,r,i,o,a),Ut(r,"string")||Xe.pattern(t,r,i,o,a)}n(o)},sH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r,"date")&&!t.required)return n();if(Xe.required(t,r,i,o,a),!Ut(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Xe.type(t,l,i,o,a),l&&Xe.range(t,l.getTime(),i,o,a)}}n(o)},lH=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;Xe.required(t,r,i,o,a,s),n(o)},nv=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ut(r,o)&&!t.required)return n();Xe.required(t,r,i,s,a,o),Ut(r,o)||Xe.type(t,r,i,s,a)}n(s)},uH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a)}n(o)},Hl={string:K4,method:X4,number:Z4,boolean:Q4,regexp:J4,integer:eH,float:tH,array:rH,object:nH,enum:aH,pattern:oH,date:sH,url:nv,hex:nv,email:nv,required:lH,any:uH};function hg(){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 vg=hg(),rf=function(){function e(r){this.rules=null,this._messages=vg,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=l1(hg(),n)),this._messages},t.validate=function(n,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=n,l=i,u=a;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function f(p){var m=[],g={};function y(b){if(Array.isArray(b)){var x;m=(x=m).concat.apply(x,b)}else m.push(b)}for(var _=0;_<p.length;_++)y(p[_]);m.length?(g=dg(m),u(m,g)):u(null,s)}if(l.messages){var c=this.messages();c===vg&&(c=hg()),l1(c,l.messages),l.messages=c}else l.messages=this.messages();var h={},d=l.keys||Object.keys(this.rules);d.forEach(function(p){var m=o.rules[p],g=s[p];m.forEach(function(y){var _=y;typeof _.transform=="function"&&(s===n&&(s=Qa({},s)),g=s[p]=_.transform(g)),typeof _=="function"?_={validator:_}:_=Qa({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=p,_.fullField=_.fullField||p,_.type=o.getType(_),h[p]=h[p]||[],h[p].push({rule:_,value:g,source:s,field:p}))})});var v={};return H4(h,l,function(p,m){var g=p.rule,y=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");y=y&&(g.required||!g.required&&p.value),g.field=p.field;function _(w,S){return Qa({},S,{fullField:g.fullField+"."+w,fullFields:g.fullFields?[].concat(g.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&&g.message!==void 0&&(S=[].concat(g.message));var C=S.map(s1(g,s));if(l.first&&C.length)return v[g.field]=1,m(C);if(!y)m(C);else{if(g.required&&!p.value)return g.message!==void 0?C=[].concat(g.message).map(s1(g,s)):l.error&&(C=[l.error(g,Fr(l.messages.required,g.field))]),m(C);var M={};g.defaultField&&Object.keys(p.value).map(function(E){M[E]=g.defaultField}),M=Qa({},M,p.rule.fields);var A={};Object.keys(M).forEach(function(E){var L=M[E],O=Array.isArray(L)?L:[L];A[E]=O.map(_.bind(null,E))});var P=new e(A);P.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),P.validate(p.value,p.rule.options||l,function(E){var L=[];C&&C.length&&L.push.apply(L,C),E&&E.length&&L.push.apply(L,E),m(L.length?L:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,p.value,b,p.source,l);else if(g.validator){try{x=g.validator(g,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 g.message=="function"?g.message(g.fullField||g.field):g.message||(g.fullField||g.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){f(p)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Hl.hasOwnProperty(n.type))throw new Error(Fr("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"?Hl.required:Hl[this.getType(n)]||void 0},e}();rf.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Hl[t]=r};rf.warning=N4;rf.messages=vg;rf.validators=Hl;const fH=["","error","validating","success"],cH=Je({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Be([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Be([Object,Array])},error:String,validateStatus:{type:String,values:fH},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Bs}}),f1="ElLabelWrap";var dH=ie({name:f1,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Le($s,void 0),n=Le(yo);n||bi(f1,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Oe("form"),a=$(),o=$(0),s=()=>{var f;if((f=a.value)!=null&&f.firstElementChild){const c=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},l=(f="update")=>{kt(()=>{t.default&&e.isAutoWidth&&(f==="update"?o.value=s():f==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return _t(()=>{u()}),tr(()=>{l("remove")}),Uu(()=>u()),we(o,(f,c)=>{e.updateAll&&(r==null||r.registerLabelWidth(f,c))}),ps(k(()=>{var f,c;return(c=(f=a.value)==null?void 0:f.firstElementChild)!=null?c:null}),u),()=>{var f,c;if(!t)return null;const{isAutoWidth:h}=e;if(h){const d=r==null?void 0:r.autoLabelWidth,v=n==null?void 0:n.hasLabel,p={};if(v&&d&&d!=="auto"){const m=Math.max(0,Number.parseInt(d,10)-o.value),g=r.labelPosition==="left"?"marginRight":"marginLeft";m&&(p[g]=`${m}px`)}return Z("div",{ref:a,class:[i.be("item","label-wrap")],style:p},[(f=t.default)==null?void 0:f.call(t)])}else return Z(ft,{ref:a},[(c=t.default)==null?void 0:c.call(t)])}}});const hH=["role","aria-labelledby"],vH=ie({name:"ElFormItem"}),pH=ie({...vH,props:cH,setup(e,{expose:t}){const r=e,n=Rs(),i=Le($s,void 0),a=Le(yo,void 0),o=xi(void 0,{formItem:!1}),s=Oe("form-item"),l=xu().value,u=$([]),f=$(""),c=pR(f,100),h=$(""),d=$();let v,p=!1;const m=k(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const B=Zn(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return B?{width:B}:{}}),g=k(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!r.label&&!r.labelWidth&&M)return{};const B=Zn(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return!r.label&&!n.label?{marginLeft:B}:{}}),y=k(()=>[s.b(),s.m(o.value),s.is("error",f.value==="error"),s.is("validating",f.value==="validating"),s.is("success",f.value==="success"),s.is("required",O.value||r.required),s.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:i==null?void 0:i.statusIcon}]),_=k(()=>zr(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?ze(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,A=k(()=>{const B=i==null?void 0:i.model;if(!(!B||!r.prop))return Ec(B,r.prop).value}),P=k(()=>{const{required:B}=r,Y=[];r.rules&&Y.push(...Jp(r.rules));const K=i==null?void 0:i.rules;if(K&&r.prop){const Q=Ec(K,r.prop).value;Q&&Y.push(...Jp(Q))}if(B!==void 0){const Q=Y.map((oe,pe)=>[oe,pe]).filter(([oe])=>Object.keys(oe).includes("required"));if(Q.length>0)for(const[oe,pe]of Q)oe.required!==B&&(Y[pe]={...oe,required:B});else Y.push({required:B})}return Y}),E=k(()=>P.value.length>0),L=B=>P.value.filter(K=>!K.trigger||!B?!0:Array.isArray(K.trigger)?K.trigger.includes(B):K.trigger===B).map(({trigger:K,...Q})=>Q),O=k(()=>P.value.some(B=>B.required)),N=k(()=>{var B;return c.value==="error"&&r.showMessage&&((B=i==null?void 0:i.showMessage)!=null?B:!0)}),H=k(()=>`${r.label||""}${(i==null?void 0:i.labelSuffix)||""}`),V=B=>{f.value=B},U=B=>{var Y,K;const{errors:Q,fields:oe}=B;(!Q||!oe)&&console.error(B),V("error"),h.value=Q?(K=(Y=Q==null?void 0:Q[0])==null?void 0:Y.message)!=null?K:`${r.prop} is required`:"",i==null||i.emit("validate",r.prop,!1,h.value)},F=()=>{V("success"),i==null||i.emit("validate",r.prop,!0,"")},z=async B=>{const Y=x.value;return new rf({[Y]:B}).validate({[Y]:A.value},{firstFields:!0}).then(()=>(F(),!0)).catch(Q=>(U(Q),Promise.reject(Q)))},te=async(B,Y)=>{if(p||!r.prop)return!1;const K=De(Y);if(!E.value)return Y==null||Y(!1),!1;const Q=L(B);return Q.length===0?(Y==null||Y(!0),!0):(V("validating"),z(Q).then(()=>(Y==null||Y(!0),!0)).catch(oe=>{const{fields:pe}=oe;return Y==null||Y(!1,pe),K?!1:Promise.reject(pe)}))},J=()=>{V(""),h.value="",p=!1},me=async()=>{const B=i==null?void 0:i.model;if(!B||!r.prop)return;const Y=Ec(B,r.prop);p=!0,Y.value=Bb(v),await kt(),J(),p=!1},Se=B=>{u.value.includes(B)||u.value.push(B)},$e=B=>{u.value=u.value.filter(Y=>Y!==B)};we(()=>r.error,B=>{h.value=B||"",V(B?"error":"")},{immediate:!0}),we(()=>r.validateStatus,B=>V(B||""));const Ie=Ln({...Kd(r),$el:d,size:o,validateState:f,labelId:l,inputIds:u,isGroup:C,hasLabel:w,fieldValue:A,addInputId:Se,removeInputId:$e,resetField:me,clearValidate:J,validate:te});return Dt(yo,Ie),_t(()=>{r.prop&&(i==null||i.addField(Ie),v=Bb(A.value))}),tr(()=>{i==null||i.removeField(Ie)}),t({size:o,validateMessage:h,validateState:f,validate:te,clearValidate:J,resetField:me}),(B,Y)=>{var K;return G(),ce("div",{ref_key:"formItemRef",ref:d,class:re(T(y)),role:T(C)?"group":void 0,"aria-labelledby":T(C)?T(l):void 0},[Z(T(dH),{"is-auto-width":T(m).width==="auto","update-all":((K=T(i))==null?void 0:K.labelWidth)==="auto"},{default:j(()=>[T(w)?(G(),de(Vt(T(S)?"label":"div"),{key:0,id:T(l),for:T(S),class:re(T(s).e("label")),style:ct(T(m))},{default:j(()=>[Ce(B.$slots,"label",{label:T(H)},()=>[mt(be(T(H)),1)])]),_:3},8,["id","for","class","style"])):Ae("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ee("div",{class:re(T(s).e("content")),style:ct(T(g))},[Ce(B.$slots,"default"),Z(KO,{name:`${T(s).namespace.value}-zoom-in-top`},{default:j(()=>[T(N)?Ce(B.$slots,"error",{key:0,error:h.value},()=>[ee("div",{class:re(T(b))},be(h.value),3)]):Ae("v-if",!0)]),_:3},8,["name"])],6)],10,hH)}}});var aA=Ke(pH,[["__file","form-item.vue"]]);const oA=Yt(D4,{FormItem:aA}),sA=pa(aA),Qo=4,gH={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"}},mH=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),lA=Symbol("scrollbarContextKey"),yH=Je({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_H="Thumb",bH=ie({__name:"thumb",props:yH,setup(e){const t=e,r=Le(lA),n=Oe("scrollbar");r||bi(_H,"can not inject scrollbar context");const i=$(),a=$(),o=$({}),s=$(!1);let l=!1,u=!1,f=At?document.onselectstart:null;const c=k(()=>gH[t.vertical?"vertical":"horizontal"]),h=k(()=>mH({size:t.size,move:t.move,bar:c.value})),d=k(()=>i.value[c.value.offset]**2/r.wrapElement[c.value.scrollSize]/t.ratio/a.value[c.value.offset]),v=w=>{var S;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(S=window.getSelection())==null||S.removeAllRanges(),m(w);const C=w.currentTarget;C&&(o.value[c.value.axis]=C[c.value.offset]-(w[c.value.client]-C.getBoundingClientRect()[c.value.direction]))},p=w=>{if(!a.value||!i.value||!r.wrapElement)return;const S=Math.abs(w.target.getBoundingClientRect()[c.value.direction]-w[c.value.client]),C=a.value[c.value.offset]/2,M=(S-C)*100*d.value/i.value[c.value.offset];r.wrapElement[c.value.scroll]=M*r.wrapElement[c.value.scrollSize]/100},m=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",y),f=document.onselectstart,document.onselectstart=()=>!1},g=w=>{if(!i.value||!a.value||l===!1)return;const S=o.value[c.value.axis];if(!S)return;const C=(i.value.getBoundingClientRect()[c.value.direction]-w[c.value.client])*-1,M=a.value[c.value.offset]-S,A=(C-M)*100*d.value/i.value[c.value.offset];r.wrapElement[c.value.scroll]=A*r.wrapElement[c.value.scrollSize]/100},y=()=>{l=!1,o.value[c.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",y),x(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},b=()=>{u=!0,s.value=l};tr(()=>{x(),document.removeEventListener("mouseup",y)});const x=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return xn(wn(r,"scrollbarElement"),"mousemove",_),xn(wn(r,"scrollbarElement"),"mouseleave",b),(w,S)=>(G(),de(ti,{name:T(n).b("fade"),persisted:""},{default:j(()=>[qt(ee("div",{ref_key:"instance",ref:i,class:re([T(n).e("bar"),T(n).is(T(c).key)]),onMousedown:p},[ee("div",{ref_key:"thumb",ref:a,class:re(T(n).e("thumb")),style:ct(T(h)),onMousedown:v},null,38)],34),[[Kn,w.always||s.value]])]),_:1},8,["name"]))}});var c1=Ke(bH,[["__file","thumb.vue"]]);const wH=Je({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),SH=ie({__name:"bar",props:wH,setup(e,{expose:t}){const r=e,n=$(0),i=$(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)=>(G(),ce(ft,null,[Z(c1,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),Z(c1,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var xH=Ke(SH,[["__file","bar.vue"]]);const CH=Je({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Be([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},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),TH={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Rt)},MH="ElScrollbar",AH=ie({name:MH}),PH=ie({...AH,props:CH,emits:TH,setup(e,{expose:t,emit:r}){const n=e,i=Oe("scrollbar");let a,o;const s=$(),l=$(),u=$(),f=$("0"),c=$("0"),h=$(),d=$(1),v=$(1),p=k(()=>{const S={};return n.height&&(S.height=Zn(n.height)),n.maxHeight&&(S.maxHeight=Zn(n.maxHeight)),[n.wrapStyle,S]}),m=k(()=>[n.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!n.native}]),g=k(()=>[i.e("view"),n.viewClass]),y=()=>{var S;l.value&&((S=h.value)==null||S.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(S,C){qe(S)?l.value.scrollTo(S):Rt(S)&&Rt(C)&&l.value.scrollTo(S,C)}const b=S=>{Rt(S)&&(l.value.scrollTop=S)},x=S=>{Rt(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,A=C**2/l.value.scrollWidth,P=Math.max(M,n.minSize),E=Math.max(A,n.minSize);d.value=M/(S-M)/(P/(S-P)),v.value=A/(C-A)/(E/(C-E)),c.value=P+Qo<S?`${P}px`:"",f.value=E+Qo<C?`${E}px`:""};return we(()=>n.noresize,S=>{S?(a==null||a(),o==null||o()):({stop:a}=ps(u,w),o=xn("resize",w))},{immediate:!0}),we(()=>[n.maxHeight,n.height],()=>{n.native||kt(()=>{var S;w(),l.value&&((S=h.value)==null||S.handleScroll(l.value))})}),Dt(lA,Ln({scrollbarElement:s,wrapElement:l})),_t(()=>{n.native||kt(()=>{w()})}),Uu(()=>w()),t({wrapRef:l,update:w,scrollTo:_,setScrollTop:b,setScrollLeft:x,handleScroll:y}),(S,C)=>(G(),ce("div",{ref_key:"scrollbarRef",ref:s,class:re(T(i).b())},[ee("div",{ref_key:"wrapRef",ref:l,class:re(T(m)),style:ct(T(p)),onScroll:y},[(G(),de(Vt(S.tag),{id:S.id,ref_key:"resizeRef",ref:u,class:re(T(g)),style:ct(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:j(()=>[Ce(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),S.native?Ae("v-if",!0):(G(),de(xH,{key:0,ref_key:"barRef",ref:h,height:c.value,width:f.value,always:S.always,"ratio-x":v.value,"ratio-y":d.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var EH=Ke(PH,[["__file","scrollbar.vue"]]);const uA=Yt(EH),Wy=Symbol("popper"),fA=Symbol("popperContent"),LH=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],cA=Je({role:{type:String,values:LH,default:"tooltip"}}),DH=ie({name:"ElPopper",inheritAttrs:!1}),IH=ie({...DH,props:cA,setup(e,{expose:t}){const r=e,n=$(),i=$(),a=$(),o=$(),s=k(()=>r.role),l={triggerRef:n,popperInstanceRef:i,contentRef:a,referenceRef:o,role:s};return t(l),Dt(Wy,l),(u,f)=>Ce(u.$slots,"default")}});var OH=Ke(IH,[["__file","popper.vue"]]);const dA=Je({arrowOffset:{type:Number,default:5}}),RH=ie({name:"ElPopperArrow",inheritAttrs:!1}),kH=ie({...RH,props:dA,setup(e,{expose:t}){const r=e,n=Oe("popper"),{arrowOffset:i,arrowRef:a,arrowStyle:o}=Le(fA,void 0);return we(()=>r.arrowOffset,s=>{i.value=s}),tr(()=>{a.value=void 0}),t({arrowRef:a}),(s,l)=>(G(),ce("span",{ref_key:"arrowRef",ref:a,class:re(T(n).e("arrow")),style:ct(T(o)),"data-popper-arrow":""},null,6))}});var NH=Ke(kH,[["__file","arrow.vue"]]);const BH="ElOnlyChild",FH=ie({name:BH,setup(e,{slots:t,attrs:r}){var n;const i=Le(JM),a=p4((n=i==null?void 0:i.setForwardRef)!=null?n:Bt);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=hA(s);return l?qt(_i(l,r),[[a]]):null}}});function hA(e){if(!e)return null;const t=e;for(const r of t){if(qe(r))switch(r.type){case Mr:continue;case ks:case"svg":return d1(r);case ft:return hA(r.children);default:return r}return d1(r)}return null}function d1(e){const t=Oe("only-child");return Z("span",{class:t.e("content")},[e])}const vA=Je({virtualRef:{type:Be(Object)},virtualTriggering:Boolean,onMouseenter:{type:Be(Function)},onMouseleave:{type:Be(Function)},onClick:{type:Be(Function)},onKeydown:{type:Be(Function)},onFocus:{type:Be(Function)},onBlur:{type:Be(Function)},onContextmenu:{type:Be(Function)},id:String,open:Boolean}),$H=ie({name:"ElPopperTrigger",inheritAttrs:!1}),HH=ie({...$H,props:vA,setup(e,{expose:t}){const r=e,{role:n,triggerRef:i}=Le(Wy,void 0);v4(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 _t(()=>{we(()=>r.virtualRef,f=>{f&&(i.value=Zi(f))},{immediate:!0}),we(i,(f,c)=>{u==null||u(),u=void 0,mo(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(h=>{var d;const v=r[h];v&&(f.addEventListener(h.slice(2).toLowerCase(),v),(d=c==null?void 0:c.removeEventListener)==null||d.call(c,h.slice(2).toLowerCase(),v))}),u=we([a,o,s,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((d,v)=>{ms(h[v])?f.removeAttribute(d):f.setAttribute(d,h[v])})},{immediate:!0})),mo(c)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>c.removeAttribute(h))},{immediate:!0})}),tr(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(f,c)=>f.virtualTriggering?Ae("v-if",!0):(G(),de(T(FH),ei({key:0},f.$attrs,{"aria-controls":T(a),"aria-describedby":T(o),"aria-expanded":T(l),"aria-haspopup":T(s)}),{default:j(()=>[Ce(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var zH=Ke(HH,[["__file","trigger.vue"]]);const iv="focus-trap.focus-after-trapped",av="focus-trap.focus-after-released",VH="focus-trap.focusout-prevented",h1={cancelable:!0,bubbles:!1},WH={cancelable:!0,bubbles:!1},v1="focusAfterTrapped",p1="focusAfterReleased",pA=Symbol("elFocusTrap"),Gy=$(),ph=$(0),Uy=$(0);let Af=0;const gA=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},g1=(e,t)=>{for(const r of e)if(!GH(r,t))return r},GH=(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},UH=e=>{const t=gA(e),r=g1(t,e),n=g1(t.reverse(),e);return[r,n]},YH=e=>e instanceof HTMLInputElement&&"select"in e,Vi=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),Uy.value=window.performance.now(),e!==r&&YH(e)&&t&&e.select()}};function m1(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const jH=()=>{let e=[];return{push:n=>{const i=e[0];i&&n!==i&&i.pause(),e=m1(e,n),e.unshift(n)},remove:n=>{var i,a;e=m1(e,n),(a=(i=e[0])==null?void 0:i.resume)==null||a.call(i)}}},qH=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Vi(n,t),document.activeElement!==r)return},y1=jH(),KH=()=>ph.value>Uy.value,Pf=()=>{Gy.value="pointer",ph.value=window.performance.now()},_1=()=>{Gy.value="keyboard",ph.value=window.performance.now()},XH=()=>(_t(()=>{Af===0&&(document.addEventListener("mousedown",Pf),document.addEventListener("touchstart",Pf),document.addEventListener("keydown",_1)),Af++}),tr(()=>{Af--,Af<=0&&(document.removeEventListener("mousedown",Pf),document.removeEventListener("touchstart",Pf),document.removeEventListener("keydown",_1))}),{focusReason:Gy,lastUserFocusTimestamp:ph,lastAutomatedFocusTimestamp:Uy}),Ef=e=>new CustomEvent(VH,{...WH,detail:e}),ZH=ie({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[v1,p1,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=$();let n,i;const{focusReason:a}=XH();u4(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:m,ctrlKey:g,metaKey:y,currentTarget:_,shiftKey:b}=v,{loop:x}=e,w=p===hr.tab&&!m&&!g&&!y,S=document.activeElement;if(w&&S){const C=_,[M,A]=UH(C);if(M&&A){if(!b&&S===A){const E=Ef({focusReason:a.value});t("focusout-prevented",E),E.defaultPrevented||(v.preventDefault(),x&&Vi(M,!0))}else if(b&&[M,C].includes(S)){const E=Ef({focusReason:a.value});t("focusout-prevented",E),E.defaultPrevented||(v.preventDefault(),x&&Vi(A,!0))}}else if(S===C){const E=Ef({focusReason:a.value});t("focusout-prevented",E),E.defaultPrevented||v.preventDefault()}}};Dt(pA,{focusTrapRef:r,onKeydown:s}),we(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),we([r],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",f),v.addEventListener("focusout",c)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",f),p.removeEventListener("focusout",c))});const l=v=>{t(v1,v)},u=v=>t(p1,v),f=v=>{const p=T(r);if(!p)return;const m=v.target,g=v.relatedTarget,y=m&&p.contains(m);e.trapped||g&&p.contains(g)||(n=g),y&&t("focusin",v),!o.paused&&e.trapped&&(y?i=m:Vi(i,!0))},c=v=>{const p=T(r);if(!(o.paused||!p))if(e.trapped){const m=v.relatedTarget;!ms(m)&&!p.contains(m)&&setTimeout(()=>{if(!o.paused&&e.trapped){const g=Ef({focusReason:a.value});t("focusout-prevented",g),g.defaultPrevented||Vi(i,!0)}},0)}else{const m=v.target;m&&p.contains(m)||t("focusout",v)}};async function h(){await kt();const v=T(r);if(v){y1.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const g=new Event(iv,h1);v.addEventListener(iv,l),v.dispatchEvent(g),g.defaultPrevented||kt(()=>{let y=e.focusStartEl;ze(y)||(Vi(y),document.activeElement!==y&&(y="first")),y==="first"&&qH(gA(v),!0),(document.activeElement===p||y==="container")&&Vi(v)})}}}function d(){const v=T(r);if(v){v.removeEventListener(iv,l);const p=new CustomEvent(av,{...h1,detail:{focusReason:a.value}});v.addEventListener(av,u),v.dispatchEvent(p),!p.defaultPrevented&&(a.value=="keyboard"||!KH()||v.contains(document.activeElement))&&Vi(n??document.body),v.removeEventListener(av,u),y1.remove(o)}}return _t(()=>{e.trapped&&h(),we(()=>e.trapped,v=>{v?h():d()})}),tr(()=>{e.trapped&&d()}),{onKeydown:s}}});function QH(e,t,r,n,i,a){return Ce(e.$slots,"default",{handleKeydown:e.onKeydown})}var mA=Ke(ZH,[["render",QH],["__file","focus-trap.vue"]]);const JH=["fixed","absolute"],ez=Je({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Be(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Oy,default:"bottom"},popperOptions:{type:Be(Object),default:()=>({})},strategy:{type:String,values:JH,default:"absolute"}}),yA=Je({...ez,id:String,style:{type:Be([String,Array,Object])},className:{type:Be([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:Be([String,Array,Object])},popperStyle:{type:Be([String,Array,Object])},referenceEl:{type:Be(Object)},triggerTargetEl:{type:Be(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),tz={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},rz=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:i}=e,a={placement:r,strategy:n,...i,modifiers:[...iz(e),...t]};return az(a,i==null?void 0:i.modifiers),a},nz=e=>{if(At)return Zi(e)};function iz(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 az(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const oz=0,sz=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:i}=Le(Wy,void 0),a=$(),o=$(),s=k(()=>({name:"eventListeners",enabled:!!e.visible})),l=k(()=>{var g;const y=T(a),_=(g=T(o))!=null?g:oz;return{name:"arrow",enabled:!MM(y),options:{element:y,padding:_}}}),u=k(()=>({onFirstUpdate:()=>{v()},...rz(e,[T(l),T(s)])})),f=k(()=>nz(e.referenceEl)||T(n)),{attributes:c,state:h,styles:d,update:v,forceUpdate:p,instanceRef:m}=o4(f,r,u);return we(m,g=>t.value=g),_t(()=>{we(()=>{var g;return(g=T(f))==null?void 0:g.getBoundingClientRect()},()=>{v()})}),{attributes:c,arrowRef:a,contentRef:r,instanceRef:m,state:h,styles:d,role:i,forceUpdate:p,update:v}},lz=(e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:i}=zy(),a=Oe("popper"),o=k(()=>T(t).popper),s=$(Rt(e.zIndex)?e.zIndex:i()),l=k(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),u=k(()=>[{zIndex:T(s)},T(r).popper,e.popperStyle||{}]),f=k(()=>n.value==="dialog"?"false":void 0),c=k(()=>T(r).arrow||{});return{ariaModal:f,arrowStyle:c,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=Rt(e.zIndex)?e.zIndex:i()}}},uz=(e,t)=>{const r=$(!1),n=$();return{focusStartRef:n,trapped:r,onFocusAfterReleased:u=>{var f;((f=u.detail)==null?void 0:f.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")}}},fz=ie({name:"ElPopperContent"}),cz=ie({...fz,props:yA,emits:tz,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:i,trapped:a,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:f}=uz(n,r),{attributes:c,arrowRef:h,contentRef:d,styles:v,instanceRef:p,role:m,update:g}=sz(n),{ariaModal:y,arrowStyle:_,contentAttrs:b,contentClass:x,contentStyle:w,updateZIndex:S}=lz(n,{styles:v,attributes:c,role:m}),C=Le(yo,void 0),M=$();Dt(fA,{arrowStyle:_,arrowRef:h,arrowOffset:M}),C&&(C.addInputId||C.removeInputId)&&Dt(yo,{...C,addInputId:Bt,removeInputId:Bt});let A;const P=(L=!0)=>{g(),L&&S()},E=()=>{P(!1),n.visible&&n.focusOnShow?a.value=!0:n.visible===!1&&(a.value=!1)};return _t(()=>{we(()=>n.triggerTargetEl,(L,O)=>{A==null||A(),A=void 0;const N=T(L||d.value),H=T(O||d.value);mo(N)&&(A=we([m,()=>n.ariaLabel,y,()=>n.id],V=>{["role","aria-label","aria-modal","id"].forEach((U,F)=>{ms(V[F])?N.removeAttribute(U):N.setAttribute(U,V[F])})},{immediate:!0})),H!==N&&mo(H)&&["role","aria-label","aria-modal","id"].forEach(V=>{H.removeAttribute(V)})},{immediate:!0}),we(()=>n.visible,E,{immediate:!0})}),tr(()=>{A==null||A(),A=void 0}),t({popperContentRef:d,popperInstanceRef:p,updatePopper:P,contentStyle:w}),(L,O)=>(G(),ce("div",ei({ref_key:"contentRef",ref:d},T(b),{style:T(w),class:T(x),tabindex:"-1",onMouseenter:O[0]||(O[0]=N=>L.$emit("mouseenter",N)),onMouseleave:O[1]||(O[1]=N=>L.$emit("mouseleave",N))}),[Z(T(mA),{trapped:T(a),"trap-on-focus-in":!0,"focus-trap-el":T(d),"focus-start-el":T(i),onFocusAfterTrapped:T(s),onFocusAfterReleased:T(o),onFocusin:T(l),onFocusoutPrevented:T(u),onReleaseRequested:T(f)},{default:j(()=>[Ce(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var dz=Ke(cz,[["__file","content.vue"]]);const hz=Yt(OH),Yy=Symbol("elTooltip"),md=Je({...d4,...yA,appendTo:{type:Be([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Be(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),_A=Je({...vA,disabled:Boolean,trigger:{type:Be([String,Array]),default:"hover"},triggerKeys:{type:Be(Array),default:()=>[hr.enter,hr.space]}}),{useModelToggleProps:vz,useModelToggleEmits:pz,useModelToggle:gz}=BM("visible"),mz=Je({...cA,...vz,...md,..._A,...dA,showArrow:{type:Boolean,default:!0}}),yz=[...pz,"before-show","before-hide","show","hide","open","close"],_z=(e,t)=>_e(e)?e.includes(t):e===t,Oo=(e,t,r)=>n=>{_z(T(e),t)&&r(n)},bz=ie({name:"ElTooltipTrigger"}),wz=ie({...bz,props:_A,setup(e,{expose:t}){const r=e,n=Oe("tooltip"),{controlled:i,id:a,open:o,onOpen:s,onClose:l,onToggle:u}=Le(Yy,void 0),f=$(null),c=()=>{if(T(i)||r.disabled)return!0},h=wn(r,"trigger"),d=di(c,Oo(h,"hover",s)),v=di(c,Oo(h,"hover",l)),p=di(c,Oo(h,"click",b=>{b.button===0&&u(b)})),m=di(c,Oo(h,"focus",s)),g=di(c,Oo(h,"focus",l)),y=di(c,Oo(h,"contextmenu",b=>{b.preventDefault(),u(b)})),_=di(c,b=>{const{code:x}=b;r.triggerKeys.includes(x)&&(b.preventDefault(),u(b))});return t({triggerRef:f}),(b,x)=>(G(),de(T(zH),{id:T(a),"virtual-ref":b.virtualRef,open:T(o),"virtual-triggering":b.virtualTriggering,class:re(T(n).e("trigger")),onBlur:T(g),onClick:T(p),onContextmenu:T(y),onFocus:T(m),onMouseenter:T(d),onMouseleave:T(v),onKeydown:T(_)},{default:j(()=>[Ce(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Sz=Ke(wz,[["__file","trigger.vue"]]);const xz=ie({name:"ElTooltipContent",inheritAttrs:!1}),Cz=ie({...xz,props:md,setup(e,{expose:t}){const r=e,{selector:n}=QM(),i=Oe("tooltip"),a=$(null),o=$(!1),{controlled:s,id:l,open:u,trigger:f,onClose:c,onOpen:h,onShow:d,onHide:v,onBeforeShow:p,onBeforeHide:m}=Le(Yy,void 0),g=k(()=>r.transition||`${i.namespace.value}-fade-in-linear`),y=k(()=>r.persistent);tr(()=>{o.value=!0});const _=k(()=>T(y)?!0:T(u)),b=k(()=>r.disabled?!1:T(u)),x=k(()=>r.appendTo||n.value),w=k(()=>{var V;return(V=r.style)!=null?V:{}}),S=k(()=>!T(u)),C=()=>{v()},M=()=>{if(T(s))return!0},A=di(M,()=>{r.enterable&&T(f)==="hover"&&h()}),P=di(M,()=>{T(f)==="hover"&&c()}),E=()=>{var V,U;(U=(V=a.value)==null?void 0:V.updatePopper)==null||U.call(V),p==null||p()},L=()=>{m==null||m()},O=()=>{d(),H=ER(k(()=>{var V;return(V=a.value)==null?void 0:V.popperContentRef}),()=>{if(T(s))return;T(f)!=="hover"&&c()})},N=()=>{r.virtualTriggering||c()};let H;return we(()=>T(u),V=>{V||H==null||H()},{flush:"post"}),we(()=>r.content,()=>{var V,U;(U=(V=a.value)==null?void 0:V.updatePopper)==null||U.call(V)}),t({contentRef:a}),(V,U)=>(G(),de(MT,{disabled:!V.teleported,to:T(x)},[Z(ti,{name:T(g),onAfterLeave:C,onBeforeEnter:E,onAfterEnter:O,onBeforeLeave:L},{default:j(()=>[T(_)?qt((G(),de(T(dz),ei({key:0,id:T(l),ref_key:"contentRef",ref:a},V.$attrs,{"aria-label":V.ariaLabel,"aria-hidden":T(S),"boundaries-padding":V.boundariesPadding,"fallback-placements":V.fallbackPlacements,"gpu-acceleration":V.gpuAcceleration,offset:V.offset,placement:V.placement,"popper-options":V.popperOptions,strategy:V.strategy,effect:V.effect,enterable:V.enterable,pure:V.pure,"popper-class":V.popperClass,"popper-style":[V.popperStyle,T(w)],"reference-el":V.referenceEl,"trigger-target-el":V.triggerTargetEl,visible:T(b),"z-index":V.zIndex,onMouseenter:T(A),onMouseleave:T(P),onBlur:N,onClose:T(c)}),{default:j(()=>[o.value?Ae("v-if",!0):Ce(V.$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"])),[[Kn,T(b)]]):Ae("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Tz=Ke(Cz,[["__file","content.vue"]]);const Mz=["innerHTML"],Az={key:1},Pz=ie({name:"ElTooltip"}),Ez=ie({...Pz,props:mz,emits:yz,setup(e,{expose:t,emit:r}){const n=e;c4();const i=xu(),a=$(),o=$(),s=()=>{var g;const y=T(a);y&&((g=y.popperInstanceRef)==null||g.update())},l=$(!1),u=$(),{show:f,hide:c,hasUpdateHandler:h}=gz({indicator:l,toggleReason:u}),{onOpen:d,onClose:v}=h4({showAfter:wn(n,"showAfter"),hideAfter:wn(n,"hideAfter"),autoClose:wn(n,"autoClose"),open:f,close:c}),p=k(()=>zr(n.visible)&&!h.value);Dt(Yy,{controlled:p,id:i,open:Gu(l),trigger:wn(n,"trigger"),onOpen:g=>{d(g)},onClose:g=>{v(g)},onToggle:g=>{T(l)?v(g):d(g)},onShow:()=>{r("show",u.value)},onHide:()=>{r("hide",u.value)},onBeforeShow:()=>{r("before-show",u.value)},onBeforeHide:()=>{r("before-hide",u.value)},updatePopper:s}),we(()=>n.disabled,g=>{g&&l.value&&(l.value=!1)});const m=g=>{var y,_;const b=(_=(y=o.value)==null?void 0:y.contentRef)==null?void 0:_.popperContentRef,x=(g==null?void 0:g.relatedTarget)||document.activeElement;return b&&b.contains(x)};return pT(()=>l.value&&c()),t({popperRef:a,contentRef:o,isFocusInsideContent:m,updatePopper:s,onOpen:d,onClose:v,hide:c}),(g,y)=>(G(),de(T(hz),{ref_key:"popperRef",ref:a,role:g.role},{default:j(()=>[Z(Sz,{disabled:g.disabled,trigger:g.trigger,"trigger-keys":g.triggerKeys,"virtual-ref":g.virtualRef,"virtual-triggering":g.virtualTriggering},{default:j(()=>[g.$slots.default?Ce(g.$slots,"default",{key:0}):Ae("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Z(Tz,{ref_key:"contentRef",ref:o,"aria-label":g.ariaLabel,"boundaries-padding":g.boundariesPadding,content:g.content,disabled:g.disabled,effect:g.effect,enterable:g.enterable,"fallback-placements":g.fallbackPlacements,"hide-after":g.hideAfter,"gpu-acceleration":g.gpuAcceleration,offset:g.offset,persistent:g.persistent,"popper-class":g.popperClass,"popper-style":g.popperStyle,placement:g.placement,"popper-options":g.popperOptions,pure:g.pure,"raw-content":g.rawContent,"reference-el":g.referenceEl,"trigger-target-el":g.triggerTargetEl,"show-after":g.showAfter,strategy:g.strategy,teleported:g.teleported,transition:g.transition,"virtual-triggering":g.virtualTriggering,"z-index":g.zIndex,"append-to":g.appendTo},{default:j(()=>[Ce(g.$slots,"content",{},()=>[g.rawContent?(G(),ce("span",{key:0,innerHTML:g.content},null,8,Mz)):(G(),ce("span",Az,be(g.content),1))]),g.showArrow?(G(),de(T(NH),{key:0,"arrow-offset":g.arrowOffset},null,8,["arrow-offset"])):Ae("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 Lz=Ke(Ez,[["__file","tooltip.vue"]]);const Hs=Yt(Lz),Dz=Je({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"}}),Iz=["textContent"],Oz=ie({name:"ElBadge"}),Rz=ie({...Oz,props:Dz,setup(e,{expose:t}){const r=e,n=Oe("badge"),i=k(()=>r.isDot?"":Rt(r.value)&&Rt(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:i}),(a,o)=>(G(),ce("div",{class:re(T(n).b())},[Ce(a.$slots,"default"),Z(ti,{name:`${T(n).namespace.value}-zoom-in-center`,persisted:""},{default:j(()=>[qt(ee("sup",{class:re([T(n).e("content"),T(n).em("content",a.type),T(n).is("fixed",!!a.$slots.default),T(n).is("dot",a.isDot)]),textContent:be(T(i))},null,10,Iz),[[Kn,!a.hidden&&(T(i)||a.isDot)]])]),_:1},8,["name"])],2))}});var kz=Ke(Rz,[["__file","badge.vue"]]);const Nz=Yt(kz),bA=Symbol("buttonGroupContextKey"),Bz=(e,t)=>{bu({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=Le(bA,void 0),n=hh("button"),{form:i}=tf(),a=xi(k(()=>r==null?void 0:r.size)),o=vh(),s=$(),l=Rs(),u=k(()=>e.type||(r==null?void 0:r.type)||""),f=k(()=>{var v,p,m;return(m=(p=e.autoInsertSpace)!=null?p:(v=n.value)==null?void 0:v.autoInsertSpace)!=null?m:!1}),c=k(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=k(()=>{var v;const p=(v=l.default)==null?void 0:v.call(l);if(f.value&&(p==null?void 0:p.length)===1){const m=p[0];if((m==null?void 0:m.type)===ks){const g=m.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(g.trim())}}return!1});return{_disabled:o,_size:a,_type:u,_ref:s,_props:c,shouldAddSpace:h,handleClick:v=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",v)}}},pg=["default","primary","success","warning","info","danger","text",""],Fz=["button","submit","reset"],gg=Je({size:dh,disabled:Boolean,type:{type:String,values:pg,default:""},icon:{type:vr},nativeType:{type:String,values:Fz,default:"button"},loading:Boolean,loadingIcon:{type:vr,default:()=>Ly},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Be([String,Object]),default:"button"}}),$z={click:e=>e instanceof MouseEvent};function er(e,t){Hz(e)&&(e="100%");var r=zz(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 Lf(e){return Math.min(1,Math.max(0,e))}function Hz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function zz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function wA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Df(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ja(e){return e.length===1?"0"+e:String(e)}function Vz(e,t,r){return{r:er(e,255)*255,g:er(t,255)*255,b:er(r,255)*255}}function b1(e,t,r){e=er(e,255),t=er(t,255),r=er(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 ov(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 Wz(e,t,r){var n,i,a;if(e=er(e,360),t=er(t,100),r=er(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=ov(s,o,e+1/3),i=ov(s,o,e),a=ov(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function w1(e,t,r){e=er(e,255),t=er(t,255),r=er(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 Gz(e,t,r){e=er(e,360)*6,t=er(t,100),r=er(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],f=[s,r,r,o,a,a][l],c=[a,a,s,r,r,o][l];return{r:u*255,g:f*255,b:c*255}}function S1(e,t,r,n){var i=[Ja(Math.round(e).toString(16)),Ja(Math.round(t).toString(16)),Ja(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 Uz(e,t,r,n,i){var a=[Ja(Math.round(e).toString(16)),Ja(Math.round(t).toString(16)),Ja(Math.round(r).toString(16)),Ja(Yz(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 Yz(e){return Math.round(parseFloat(e)*255).toString(16)}function x1(e){return kr(e)/255}function kr(e){return parseInt(e,16)}function jz(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var mg={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 qz(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=Zz(e)),typeof e=="object"&&(si(e.r)&&si(e.g)&&si(e.b)?(t=Vz(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):si(e.h)&&si(e.s)&&si(e.v)?(n=Df(e.s),i=Df(e.v),t=Gz(e.h,n,i),o=!0,s="hsv"):si(e.h)&&si(e.s)&&si(e.l)&&(n=Df(e.s),a=Df(e.l),t=Wz(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=wA(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 Kz="[-\\+]?\\d+%?",Xz="[-\\+]?\\d*\\.\\d+%?",Qi="(?:".concat(Xz,")|(?:").concat(Kz,")"),sv="[\\s|\\(]+(".concat(Qi,")[,|\\s]+(").concat(Qi,")[,|\\s]+(").concat(Qi,")\\s*\\)?"),lv="[\\s|\\(]+(".concat(Qi,")[,|\\s]+(").concat(Qi,")[,|\\s]+(").concat(Qi,")[,|\\s]+(").concat(Qi,")\\s*\\)?"),gn={CSS_UNIT:new RegExp(Qi),rgb:new RegExp("rgb"+sv),rgba:new RegExp("rgba"+lv),hsl:new RegExp("hsl"+sv),hsla:new RegExp("hsla"+lv),hsv:new RegExp("hsv"+sv),hsva:new RegExp("hsva"+lv),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 Zz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(mg[e])e=mg[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=gn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=gn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=gn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=gn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=gn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=gn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=gn.hex8.exec(e),r?{r:kr(r[1]),g:kr(r[2]),b:kr(r[3]),a:x1(r[4]),format:t?"name":"hex8"}:(r=gn.hex6.exec(e),r?{r:kr(r[1]),g:kr(r[2]),b:kr(r[3]),format:t?"name":"hex"}:(r=gn.hex4.exec(e),r?{r:kr(r[1]+r[1]),g:kr(r[2]+r[2]),b:kr(r[3]+r[3]),a:x1(r[4]+r[4]),format:t?"name":"hex8"}:(r=gn.hex3.exec(e),r?{r:kr(r[1]+r[1]),g:kr(r[2]+r[2]),b:kr(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function si(e){return!!gn.CSS_UNIT.exec(String(e))}var SA=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=jz(t)),this.originalInput=t;var i=qz(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=wA(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=w1(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=w1(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=b1(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=b1(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),S1(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),Uz(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(er(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(er(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="#"+S1(this.r,this.g,this.b,!1),r=0,n=Object.entries(mg);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=!!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=Lf(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=Lf(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=Lf(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=Lf(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 Oi(e,t=20){return e.mix("#141414",t).toString()}function Qz(e){const t=vh(),r=Oe("button");return k(()=>{let n={};const i=e.color;if(i){const a=new SA(i),o=e.dark?a.tint(20).toString():Oi(a,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Oi(a,90):a.tint(90).toString(),"text-color":i,"border-color":e.dark?Oi(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?Oi(a,90):a.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Oi(a,50):a.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Oi(a,80):a.tint(80).toString());else{const s=e.dark?Oi(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?Oi(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 Jz=ie({name:"ElButton"}),e8=ie({...Jz,props:gg,emits:$z,setup(e,{expose:t,emit:r}){const n=e,i=Qz(n),a=Oe("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:f,shouldAddSpace:c,handleClick:h}=Bz(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:c}),(d,v)=>(G(),de(Vt(d.tag),ei({ref_key:"_ref",ref:o},T(f),{class:[T(a).b(),T(a).m(T(l)),T(a).m(T(s)),T(a).is("disabled",T(u)),T(a).is("loading",d.loading),T(a).is("plain",d.plain),T(a).is("round",d.round),T(a).is("circle",d.circle),T(a).is("text",d.text),T(a).is("link",d.link),T(a).is("has-bg",d.bg)],style:T(i),onClick:T(h)}),{default:j(()=>[d.loading?(G(),ce(ft,{key:0},[d.$slots.loading?Ce(d.$slots,"loading",{key:0}):(G(),de(T(Nt),{key:1,class:re(T(a).is("loading"))},{default:j(()=>[(G(),de(Vt(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(G(),de(T(Nt),{key:1},{default:j(()=>[d.icon?(G(),de(Vt(d.icon),{key:0})):Ce(d.$slots,"icon",{key:1})]),_:3})):Ae("v-if",!0),d.$slots.default?(G(),ce("span",{key:2,class:re({[T(a).em("text","expand")]:T(c)})},[Ce(d.$slots,"default")],2)):Ae("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var t8=Ke(e8,[["__file","button.vue"]]);const r8={size:gg.size,type:gg.type},n8=ie({name:"ElButtonGroup"}),i8=ie({...n8,props:r8,setup(e){const t=e;Dt(bA,Ln({size:wn(t,"size"),type:wn(t,"type")}));const r=Oe("button");return(n,i)=>(G(),ce("div",{class:re(`${T(r).b("group")}`)},[Ce(n.$slots,"default")],2))}});var xA=Ke(i8,[["__file","button-group.vue"]]);const yg=Yt(t8,{ButtonGroup:xA});pa(xA);var a8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const Wi=new Map;let C1;At&&(document.addEventListener("mousedown",e=>C1=e),document.addEventListener("mouseup",e=>{for(const t of Wi.values())for(const{documentHandler:r}of t)r(e,C1)}));function T1(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:mo(t.arg)&&r.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i==null?void 0:i.target,l=!t||!t.instance,u=!o||!s,f=e.contains(o)||e.contains(s),c=e===o,h=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(s),d=a&&(a.contains(o)||a.contains(s));l||u||f||c||h||d||t.value(n,i)}}const CA={beforeMount(e,t){Wi.has(e)||Wi.set(e,[]),Wi.get(e).push({documentHandler:T1(e,t),bindingFn:t.value})},updated(e,t){Wi.has(e)||Wi.set(e,[]);const r=Wi.get(e),n=r.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:T1(e,t),bindingFn:t.value};n>=0?r.splice(n,1,i):r.push(i)},unmounted(e){Wi.delete(e)}};var M1=!1,qa,_g,bg,Rc,kc,TA,Nc,wg,Sg,xg,MA,Cg,Tg,AA,PA;function yr(){if(!M1){M1=!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(Cg=/\b(iPhone|iP[ao]d)/.exec(e),Tg=/\b(iP[ao]d)/.exec(e),xg=/Android/i.exec(e),AA=/FBAN\/\w+;/i.exec(e),PA=/Mobile/i.exec(e),MA=!!/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,_g=t[2]?parseFloat(t[2]):NaN,bg=t[3]?parseFloat(t[3]):NaN,Rc=t[4]?parseFloat(t[4]):NaN,Rc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),kc=t&&t[1]?parseFloat(t[1]):NaN):kc=NaN}else qa=_g=bg=kc=Rc=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Nc=i?parseFloat(i[1].replace("_",".")):!0}else Nc=!1;wg=!!r[2],Sg=!!r[3]}else Nc=wg=Sg=!1}}var Mg={ie:function(){return yr()||qa},ieCompatibilityMode:function(){return yr()||TA>qa},ie64:function(){return Mg.ie()&&MA},firefox:function(){return yr()||_g},opera:function(){return yr()||bg},webkit:function(){return yr()||Rc},safari:function(){return Mg.webkit()},chrome:function(){return yr()||kc},windows:function(){return yr()||wg},osx:function(){return yr()||Nc},linux:function(){return yr()||Sg},iphone:function(){return yr()||Cg},mobile:function(){return yr()||Cg||Tg||xg||PA},nativeApp:function(){return yr()||AA},android:function(){return yr()||xg},ipad:function(){return yr()||Tg}},o8=Mg,If=!!(typeof window<"u"&&window.document&&window.document.createElement),s8={canUseDOM:If,canUseWorkers:typeof Worker<"u",canUseEventListeners:If&&!!(window.addEventListener||window.attachEvent),canUseViewport:If&&!!window.screen,isInWorker:!If},EA=s8,LA;EA.canUseDOM&&(LA=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function l8(e,t){if(!EA.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&&LA&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var u8=l8,A1=10,P1=40,E1=800;function DA(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*A1,i=r*A1,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=P1,i*=P1):(n*=E1,i*=E1)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}DA.getEventType=function(){return o8.firefox()?"DOMMouseScroll":u8("wheel")?"wheel":"mousewheel"};var f8=DA;/**
+`).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]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",c=l.v4().source,h=l.v6().source,d="(?:(?:[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,}))",m="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+f+"(?:localhost|"+c+"|"+h+"|"+d+v+p+")"+m+g;return Mf=new RegExp("(?:^"+y+"$)","i"),Mf},u1={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},xl={integer:function(t){return xl.number(t)&&parseInt(t,10)===t},float:function(t){return xl.number(t)&&!xl.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"&&!xl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(u1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(G4())},hex:function(t){return typeof t=="string"&&!!t.match(u1.hex)}},U4=function(t,r,n,i,a){if(t.required&&r===void 0){iA(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?xl[s](r)||i.push(Fr(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Fr(a.messages.types[s],t.fullField,t.type))},Y4=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=r,c=null,h=typeof r=="number",d=typeof r=="string",v=Array.isArray(r);if(h?c="number":d?c="string":v&&(c="array"),!c)return!1;v&&(f=r.length),d&&(f=r.replace(u,"_").length),o?f!==t.len&&i.push(Fr(a.messages[c].len,t.fullField,t.len)):s&&!l&&f<t.min?i.push(Fr(a.messages[c].min,t.fullField,t.min)):l&&!s&&f>t.max?i.push(Fr(a.messages[c].max,t.fullField,t.max)):s&&l&&(f<t.min||f>t.max)&&i.push(Fr(a.messages[c].range,t.fullField,t.min,t.max))},Ro="enum",j4=function(t,r,n,i,a){t[Ro]=Array.isArray(t[Ro])?t[Ro]:[],t[Ro].indexOf(r)===-1&&i.push(Fr(a.messages[Ro],t.fullField,t[Ro].join(", ")))},q4=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Fr(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(Fr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Xe={required:iA,whitespace:W4,type:U4,range:Y4,enum:j4,pattern:q4},K4=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r,"string")&&!t.required)return n();Xe.required(t,r,i,o,a,"string"),Ut(r,"string")||(Xe.type(t,r,i,o,a),Xe.range(t,r,i,o,a),Xe.pattern(t,r,i,o,a),t.whitespace===!0&&Xe.whitespace(t,r,i,o,a))}n(o)},X4=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&Xe.type(t,r,i,o,a)}n(o)},Z4=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&(Xe.type(t,r,i,o,a),Xe.range(t,r,i,o,a))}n(o)},Q4=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&Xe.type(t,r,i,o,a)}n(o)},J4=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),Ut(r)||Xe.type(t,r,i,o,a)}n(o)},eH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&(Xe.type(t,r,i,o,a),Xe.range(t,r,i,o,a))}n(o)},tH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&(Xe.type(t,r,i,o,a),Xe.range(t,r,i,o,a))}n(o)},rH=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();Xe.required(t,r,i,o,a,"array"),r!=null&&(Xe.type(t,r,i,o,a),Xe.range(t,r,i,o,a))}n(o)},nH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&Xe.type(t,r,i,o,a)}n(o)},iH="enum",aH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a),r!==void 0&&Xe[iH](t,r,i,o,a)}n(o)},oH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r,"string")&&!t.required)return n();Xe.required(t,r,i,o,a),Ut(r,"string")||Xe.pattern(t,r,i,o,a)}n(o)},sH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r,"date")&&!t.required)return n();if(Xe.required(t,r,i,o,a),!Ut(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Xe.type(t,l,i,o,a),l&&Xe.range(t,l.getTime(),i,o,a)}}n(o)},lH=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;Xe.required(t,r,i,o,a,s),n(o)},nv=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ut(r,o)&&!t.required)return n();Xe.required(t,r,i,s,a,o),Ut(r,o)||Xe.type(t,r,i,s,a)}n(s)},uH=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Xe.required(t,r,i,o,a)}n(o)},Hl={string:K4,method:X4,number:Z4,boolean:Q4,regexp:J4,integer:eH,float:tH,array:rH,object:nH,enum:aH,pattern:oH,date:sH,url:nv,hex:nv,email:nv,required:lH,any:uH};function hg(){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 vg=hg(),rf=function(){function e(r){this.rules=null,this._messages=vg,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=l1(hg(),n)),this._messages},t.validate=function(n,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=n,l=i,u=a;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function f(p){var m=[],g={};function y(b){if(Array.isArray(b)){var x;m=(x=m).concat.apply(x,b)}else m.push(b)}for(var _=0;_<p.length;_++)y(p[_]);m.length?(g=dg(m),u(m,g)):u(null,s)}if(l.messages){var c=this.messages();c===vg&&(c=hg()),l1(c,l.messages),l.messages=c}else l.messages=this.messages();var h={},d=l.keys||Object.keys(this.rules);d.forEach(function(p){var m=o.rules[p],g=s[p];m.forEach(function(y){var _=y;typeof _.transform=="function"&&(s===n&&(s=Qa({},s)),g=s[p]=_.transform(g)),typeof _=="function"?_={validator:_}:_=Qa({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=p,_.fullField=_.fullField||p,_.type=o.getType(_),h[p]=h[p]||[],h[p].push({rule:_,value:g,source:s,field:p}))})});var v={};return H4(h,l,function(p,m){var g=p.rule,y=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");y=y&&(g.required||!g.required&&p.value),g.field=p.field;function _(w,S){return Qa({},S,{fullField:g.fullField+"."+w,fullFields:g.fullFields?[].concat(g.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&&g.message!==void 0&&(S=[].concat(g.message));var C=S.map(s1(g,s));if(l.first&&C.length)return v[g.field]=1,m(C);if(!y)m(C);else{if(g.required&&!p.value)return g.message!==void 0?C=[].concat(g.message).map(s1(g,s)):l.error&&(C=[l.error(g,Fr(l.messages.required,g.field))]),m(C);var M={};g.defaultField&&Object.keys(p.value).map(function(E){M[E]=g.defaultField}),M=Qa({},M,p.rule.fields);var A={};Object.keys(M).forEach(function(E){var L=M[E],O=Array.isArray(L)?L:[L];A[E]=O.map(_.bind(null,E))});var P=new e(A);P.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),P.validate(p.value,p.rule.options||l,function(E){var L=[];C&&C.length&&L.push.apply(L,C),E&&E.length&&L.push.apply(L,E),m(L.length?L:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,p.value,b,p.source,l);else if(g.validator){try{x=g.validator(g,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 g.message=="function"?g.message(g.fullField||g.field):g.message||(g.fullField||g.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){f(p)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Hl.hasOwnProperty(n.type))throw new Error(Fr("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"?Hl.required:Hl[this.getType(n)]||void 0},e}();rf.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Hl[t]=r};rf.warning=N4;rf.messages=vg;rf.validators=Hl;const fH=["","error","validating","success"],cH=Je({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Be([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Be([Object,Array])},error:String,validateStatus:{type:String,values:fH},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:$s}}),f1="ElLabelWrap";var dH=ie({name:f1,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Le(zs,void 0),n=Le(yo);n||bi(f1,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Oe("form"),a=$(),o=$(0),s=()=>{var f;if((f=a.value)!=null&&f.firstElementChild){const c=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},l=(f="update")=>{Nt(()=>{t.default&&e.isAutoWidth&&(f==="update"?o.value=s():f==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return _t(()=>{u()}),tr(()=>{l("remove")}),Uu(()=>u()),be(o,(f,c)=>{e.updateAll&&(r==null||r.registerLabelWidth(f,c))}),ms(k(()=>{var f,c;return(c=(f=a.value)==null?void 0:f.firstElementChild)!=null?c:null}),u),()=>{var f,c;if(!t)return null;const{isAutoWidth:h}=e;if(h){const d=r==null?void 0:r.autoLabelWidth,v=n==null?void 0:n.hasLabel,p={};if(v&&d&&d!=="auto"){const m=Math.max(0,Number.parseInt(d,10)-o.value),g=r.labelPosition==="left"?"marginRight":"marginLeft";m&&(p[g]=`${m}px`)}return Z("div",{ref:a,class:[i.be("item","label-wrap")],style:p},[(f=t.default)==null?void 0:f.call(t)])}else return Z(ft,{ref:a},[(c=t.default)==null?void 0:c.call(t)])}}});const hH=["role","aria-labelledby"],vH=ie({name:"ElFormItem"}),pH=ie({...vH,props:cH,setup(e,{expose:t}){const r=e,n=Ns(),i=Le(zs,void 0),a=Le(yo,void 0),o=xi(void 0,{formItem:!1}),s=Oe("form-item"),l=xu().value,u=$([]),f=$(""),c=pR(f,100),h=$(""),d=$();let v,p=!1;const m=k(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const B=Zn(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return B?{width:B}:{}}),g=k(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!r.label&&!r.labelWidth&&M)return{};const B=Zn(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return!r.label&&!n.label?{marginLeft:B}:{}}),y=k(()=>[s.b(),s.m(o.value),s.is("error",f.value==="error"),s.is("validating",f.value==="validating"),s.is("success",f.value==="success"),s.is("required",O.value||r.required),s.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:i==null?void 0:i.statusIcon}]),_=k(()=>zr(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?ze(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,A=k(()=>{const B=i==null?void 0:i.model;if(!(!B||!r.prop))return Ec(B,r.prop).value}),P=k(()=>{const{required:B}=r,Y=[];r.rules&&Y.push(...Jp(r.rules));const K=i==null?void 0:i.rules;if(K&&r.prop){const Q=Ec(K,r.prop).value;Q&&Y.push(...Jp(Q))}if(B!==void 0){const Q=Y.map((oe,pe)=>[oe,pe]).filter(([oe])=>Object.keys(oe).includes("required"));if(Q.length>0)for(const[oe,pe]of Q)oe.required!==B&&(Y[pe]={...oe,required:B});else Y.push({required:B})}return Y}),E=k(()=>P.value.length>0),L=B=>P.value.filter(K=>!K.trigger||!B?!0:Array.isArray(K.trigger)?K.trigger.includes(B):K.trigger===B).map(({trigger:K,...Q})=>Q),O=k(()=>P.value.some(B=>B.required)),N=k(()=>{var B;return c.value==="error"&&r.showMessage&&((B=i==null?void 0:i.showMessage)!=null?B:!0)}),H=k(()=>`${r.label||""}${(i==null?void 0:i.labelSuffix)||""}`),V=B=>{f.value=B},U=B=>{var Y,K;const{errors:Q,fields:oe}=B;(!Q||!oe)&&console.error(B),V("error"),h.value=Q?(K=(Y=Q==null?void 0:Q[0])==null?void 0:Y.message)!=null?K:`${r.prop} is required`:"",i==null||i.emit("validate",r.prop,!1,h.value)},F=()=>{V("success"),i==null||i.emit("validate",r.prop,!0,"")},z=async B=>{const Y=x.value;return new rf({[Y]:B}).validate({[Y]:A.value},{firstFields:!0}).then(()=>(F(),!0)).catch(Q=>(U(Q),Promise.reject(Q)))},ee=async(B,Y)=>{if(p||!r.prop)return!1;const K=De(Y);if(!E.value)return Y==null||Y(!1),!1;const Q=L(B);return Q.length===0?(Y==null||Y(!0),!0):(V("validating"),z(Q).then(()=>(Y==null||Y(!0),!0)).catch(oe=>{const{fields:pe}=oe;return Y==null||Y(!1,pe),K?!1:Promise.reject(pe)}))},J=()=>{V(""),h.value="",p=!1},me=async()=>{const B=i==null?void 0:i.model;if(!B||!r.prop)return;const Y=Ec(B,r.prop);p=!0,Y.value=Bb(v),await Nt(),J(),p=!1},we=B=>{u.value.includes(B)||u.value.push(B)},$e=B=>{u.value=u.value.filter(Y=>Y!==B)};be(()=>r.error,B=>{h.value=B||"",V(B?"error":"")},{immediate:!0}),be(()=>r.validateStatus,B=>V(B||""));const Ie=Ln({...Kd(r),$el:d,size:o,validateState:f,labelId:l,inputIds:u,isGroup:C,hasLabel:w,fieldValue:A,addInputId:we,removeInputId:$e,resetField:me,clearValidate:J,validate:ee});return Dt(yo,Ie),_t(()=>{r.prop&&(i==null||i.addField(Ie),v=Bb(A.value))}),tr(()=>{i==null||i.removeField(Ie)}),t({size:o,validateMessage:h,validateState:f,validate:ee,clearValidate:J,resetField:me}),(B,Y)=>{var K;return G(),ce("div",{ref_key:"formItemRef",ref:d,class:re(T(y)),role:T(C)?"group":void 0,"aria-labelledby":T(C)?T(l):void 0},[Z(T(dH),{"is-auto-width":T(m).width==="auto","update-all":((K=T(i))==null?void 0:K.labelWidth)==="auto"},{default:q(()=>[T(w)?(G(),ve(Vt(T(S)?"label":"div"),{key:0,id:T(l),for:T(S),class:re(T(s).e("label")),style:ct(T(m))},{default:q(()=>[Ce(B.$slots,"label",{label:T(H)},()=>[pt(xe(T(H)),1)])]),_:3},8,["id","for","class","style"])):Ae("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),te("div",{class:re(T(s).e("content")),style:ct(T(g))},[Ce(B.$slots,"default"),Z(KO,{name:`${T(s).namespace.value}-zoom-in-top`},{default:q(()=>[T(N)?Ce(B.$slots,"error",{key:0,error:h.value},()=>[te("div",{class:re(T(b))},xe(h.value),3)]):Ae("v-if",!0)]),_:3},8,["name"])],6)],10,hH)}}});var aA=Ke(pH,[["__file","form-item.vue"]]);const oA=Yt(D4,{FormItem:aA}),sA=pa(aA),es=4,gH={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"}},mH=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),lA=Symbol("scrollbarContextKey"),yH=Je({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_H="Thumb",bH=ie({__name:"thumb",props:yH,setup(e){const t=e,r=Le(lA),n=Oe("scrollbar");r||bi(_H,"can not inject scrollbar context");const i=$(),a=$(),o=$({}),s=$(!1);let l=!1,u=!1,f=At?document.onselectstart:null;const c=k(()=>gH[t.vertical?"vertical":"horizontal"]),h=k(()=>mH({size:t.size,move:t.move,bar:c.value})),d=k(()=>i.value[c.value.offset]**2/r.wrapElement[c.value.scrollSize]/t.ratio/a.value[c.value.offset]),v=w=>{var S;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(S=window.getSelection())==null||S.removeAllRanges(),m(w);const C=w.currentTarget;C&&(o.value[c.value.axis]=C[c.value.offset]-(w[c.value.client]-C.getBoundingClientRect()[c.value.direction]))},p=w=>{if(!a.value||!i.value||!r.wrapElement)return;const S=Math.abs(w.target.getBoundingClientRect()[c.value.direction]-w[c.value.client]),C=a.value[c.value.offset]/2,M=(S-C)*100*d.value/i.value[c.value.offset];r.wrapElement[c.value.scroll]=M*r.wrapElement[c.value.scrollSize]/100},m=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",y),f=document.onselectstart,document.onselectstart=()=>!1},g=w=>{if(!i.value||!a.value||l===!1)return;const S=o.value[c.value.axis];if(!S)return;const C=(i.value.getBoundingClientRect()[c.value.direction]-w[c.value.client])*-1,M=a.value[c.value.offset]-S,A=(C-M)*100*d.value/i.value[c.value.offset];r.wrapElement[c.value.scroll]=A*r.wrapElement[c.value.scrollSize]/100},y=()=>{l=!1,o.value[c.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",y),x(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},b=()=>{u=!0,s.value=l};tr(()=>{x(),document.removeEventListener("mouseup",y)});const x=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return xn(wn(r,"scrollbarElement"),"mousemove",_),xn(wn(r,"scrollbarElement"),"mouseleave",b),(w,S)=>(G(),ve(ti,{name:T(n).b("fade"),persisted:""},{default:q(()=>[qt(te("div",{ref_key:"instance",ref:i,class:re([T(n).e("bar"),T(n).is(T(c).key)]),onMousedown:p},[te("div",{ref_key:"thumb",ref:a,class:re(T(n).e("thumb")),style:ct(T(h)),onMousedown:v},null,38)],34),[[Kn,w.always||s.value]])]),_:1},8,["name"]))}});var c1=Ke(bH,[["__file","thumb.vue"]]);const wH=Je({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),SH=ie({__name:"bar",props:wH,setup(e,{expose:t}){const r=e,n=$(0),i=$(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-es,l=o.offsetWidth-es;i.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/l*r.ratioX}}}),(o,s)=>(G(),ce(ft,null,[Z(c1,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),Z(c1,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var xH=Ke(SH,[["__file","bar.vue"]]);const CH=Je({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Be([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},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),TH={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(kt)},MH="ElScrollbar",AH=ie({name:MH}),PH=ie({...AH,props:CH,emits:TH,setup(e,{expose:t,emit:r}){const n=e,i=Oe("scrollbar");let a,o;const s=$(),l=$(),u=$(),f=$("0"),c=$("0"),h=$(),d=$(1),v=$(1),p=k(()=>{const S={};return n.height&&(S.height=Zn(n.height)),n.maxHeight&&(S.maxHeight=Zn(n.maxHeight)),[n.wrapStyle,S]}),m=k(()=>[n.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!n.native}]),g=k(()=>[i.e("view"),n.viewClass]),y=()=>{var S;l.value&&((S=h.value)==null||S.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(S,C){qe(S)?l.value.scrollTo(S):kt(S)&&kt(C)&&l.value.scrollTo(S,C)}const b=S=>{kt(S)&&(l.value.scrollTop=S)},x=S=>{kt(S)&&(l.value.scrollLeft=S)},w=()=>{if(!l.value)return;const S=l.value.offsetHeight-es,C=l.value.offsetWidth-es,M=S**2/l.value.scrollHeight,A=C**2/l.value.scrollWidth,P=Math.max(M,n.minSize),E=Math.max(A,n.minSize);d.value=M/(S-M)/(P/(S-P)),v.value=A/(C-A)/(E/(C-E)),c.value=P+es<S?`${P}px`:"",f.value=E+es<C?`${E}px`:""};return be(()=>n.noresize,S=>{S?(a==null||a(),o==null||o()):({stop:a}=ms(u,w),o=xn("resize",w))},{immediate:!0}),be(()=>[n.maxHeight,n.height],()=>{n.native||Nt(()=>{var S;w(),l.value&&((S=h.value)==null||S.handleScroll(l.value))})}),Dt(lA,Ln({scrollbarElement:s,wrapElement:l})),_t(()=>{n.native||Nt(()=>{w()})}),Uu(()=>w()),t({wrapRef:l,update:w,scrollTo:_,setScrollTop:b,setScrollLeft:x,handleScroll:y}),(S,C)=>(G(),ce("div",{ref_key:"scrollbarRef",ref:s,class:re(T(i).b())},[te("div",{ref_key:"wrapRef",ref:l,class:re(T(m)),style:ct(T(p)),onScroll:y},[(G(),ve(Vt(S.tag),{id:S.id,ref_key:"resizeRef",ref:u,class:re(T(g)),style:ct(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:q(()=>[Ce(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),S.native?Ae("v-if",!0):(G(),ve(xH,{key:0,ref_key:"barRef",ref:h,height:c.value,width:f.value,always:S.always,"ratio-x":v.value,"ratio-y":d.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var EH=Ke(PH,[["__file","scrollbar.vue"]]);const uA=Yt(EH),Wy=Symbol("popper"),fA=Symbol("popperContent"),LH=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],cA=Je({role:{type:String,values:LH,default:"tooltip"}}),DH=ie({name:"ElPopper",inheritAttrs:!1}),IH=ie({...DH,props:cA,setup(e,{expose:t}){const r=e,n=$(),i=$(),a=$(),o=$(),s=k(()=>r.role),l={triggerRef:n,popperInstanceRef:i,contentRef:a,referenceRef:o,role:s};return t(l),Dt(Wy,l),(u,f)=>Ce(u.$slots,"default")}});var OH=Ke(IH,[["__file","popper.vue"]]);const dA=Je({arrowOffset:{type:Number,default:5}}),RH=ie({name:"ElPopperArrow",inheritAttrs:!1}),kH=ie({...RH,props:dA,setup(e,{expose:t}){const r=e,n=Oe("popper"),{arrowOffset:i,arrowRef:a,arrowStyle:o}=Le(fA,void 0);return be(()=>r.arrowOffset,s=>{i.value=s}),tr(()=>{a.value=void 0}),t({arrowRef:a}),(s,l)=>(G(),ce("span",{ref_key:"arrowRef",ref:a,class:re(T(n).e("arrow")),style:ct(T(o)),"data-popper-arrow":""},null,6))}});var NH=Ke(kH,[["__file","arrow.vue"]]);const BH="ElOnlyChild",FH=ie({name:BH,setup(e,{slots:t,attrs:r}){var n;const i=Le(JM),a=p4((n=i==null?void 0:i.setForwardRef)!=null?n:Ft);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=hA(s);return l?qt(_i(l,r),[[a]]):null}}});function hA(e){if(!e)return null;const t=e;for(const r of t){if(qe(r))switch(r.type){case Mr:continue;case Bs:case"svg":return d1(r);case ft:return hA(r.children);default:return r}return d1(r)}return null}function d1(e){const t=Oe("only-child");return Z("span",{class:t.e("content")},[e])}const vA=Je({virtualRef:{type:Be(Object)},virtualTriggering:Boolean,onMouseenter:{type:Be(Function)},onMouseleave:{type:Be(Function)},onClick:{type:Be(Function)},onKeydown:{type:Be(Function)},onFocus:{type:Be(Function)},onBlur:{type:Be(Function)},onContextmenu:{type:Be(Function)},id:String,open:Boolean}),$H=ie({name:"ElPopperTrigger",inheritAttrs:!1}),HH=ie({...$H,props:vA,setup(e,{expose:t}){const r=e,{role:n,triggerRef:i}=Le(Wy,void 0);v4(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 _t(()=>{be(()=>r.virtualRef,f=>{f&&(i.value=Zi(f))},{immediate:!0}),be(i,(f,c)=>{u==null||u(),u=void 0,mo(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(h=>{var d;const v=r[h];v&&(f.addEventListener(h.slice(2).toLowerCase(),v),(d=c==null?void 0:c.removeEventListener)==null||d.call(c,h.slice(2).toLowerCase(),v))}),u=be([a,o,s,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((d,v)=>{_s(h[v])?f.removeAttribute(d):f.setAttribute(d,h[v])})},{immediate:!0})),mo(c)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>c.removeAttribute(h))},{immediate:!0})}),tr(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(f,c)=>f.virtualTriggering?Ae("v-if",!0):(G(),ve(T(FH),ei({key:0},f.$attrs,{"aria-controls":T(a),"aria-describedby":T(o),"aria-expanded":T(l),"aria-haspopup":T(s)}),{default:q(()=>[Ce(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var zH=Ke(HH,[["__file","trigger.vue"]]);const iv="focus-trap.focus-after-trapped",av="focus-trap.focus-after-released",VH="focus-trap.focusout-prevented",h1={cancelable:!0,bubbles:!1},WH={cancelable:!0,bubbles:!1},v1="focusAfterTrapped",p1="focusAfterReleased",pA=Symbol("elFocusTrap"),Gy=$(),ph=$(0),Uy=$(0);let Af=0;const gA=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},g1=(e,t)=>{for(const r of e)if(!GH(r,t))return r},GH=(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},UH=e=>{const t=gA(e),r=g1(t,e),n=g1(t.reverse(),e);return[r,n]},YH=e=>e instanceof HTMLInputElement&&"select"in e,Vi=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),Uy.value=window.performance.now(),e!==r&&YH(e)&&t&&e.select()}};function m1(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const jH=()=>{let e=[];return{push:n=>{const i=e[0];i&&n!==i&&i.pause(),e=m1(e,n),e.unshift(n)},remove:n=>{var i,a;e=m1(e,n),(a=(i=e[0])==null?void 0:i.resume)==null||a.call(i)}}},qH=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Vi(n,t),document.activeElement!==r)return},y1=jH(),KH=()=>ph.value>Uy.value,Pf=()=>{Gy.value="pointer",ph.value=window.performance.now()},_1=()=>{Gy.value="keyboard",ph.value=window.performance.now()},XH=()=>(_t(()=>{Af===0&&(document.addEventListener("mousedown",Pf),document.addEventListener("touchstart",Pf),document.addEventListener("keydown",_1)),Af++}),tr(()=>{Af--,Af<=0&&(document.removeEventListener("mousedown",Pf),document.removeEventListener("touchstart",Pf),document.removeEventListener("keydown",_1))}),{focusReason:Gy,lastUserFocusTimestamp:ph,lastAutomatedFocusTimestamp:Uy}),Ef=e=>new CustomEvent(VH,{...WH,detail:e}),ZH=ie({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[v1,p1,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=$();let n,i;const{focusReason:a}=XH();u4(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:m,ctrlKey:g,metaKey:y,currentTarget:_,shiftKey:b}=v,{loop:x}=e,w=p===hr.tab&&!m&&!g&&!y,S=document.activeElement;if(w&&S){const C=_,[M,A]=UH(C);if(M&&A){if(!b&&S===A){const E=Ef({focusReason:a.value});t("focusout-prevented",E),E.defaultPrevented||(v.preventDefault(),x&&Vi(M,!0))}else if(b&&[M,C].includes(S)){const E=Ef({focusReason:a.value});t("focusout-prevented",E),E.defaultPrevented||(v.preventDefault(),x&&Vi(A,!0))}}else if(S===C){const E=Ef({focusReason:a.value});t("focusout-prevented",E),E.defaultPrevented||v.preventDefault()}}};Dt(pA,{focusTrapRef:r,onKeydown:s}),be(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),be([r],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",f),v.addEventListener("focusout",c)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",f),p.removeEventListener("focusout",c))});const l=v=>{t(v1,v)},u=v=>t(p1,v),f=v=>{const p=T(r);if(!p)return;const m=v.target,g=v.relatedTarget,y=m&&p.contains(m);e.trapped||g&&p.contains(g)||(n=g),y&&t("focusin",v),!o.paused&&e.trapped&&(y?i=m:Vi(i,!0))},c=v=>{const p=T(r);if(!(o.paused||!p))if(e.trapped){const m=v.relatedTarget;!_s(m)&&!p.contains(m)&&setTimeout(()=>{if(!o.paused&&e.trapped){const g=Ef({focusReason:a.value});t("focusout-prevented",g),g.defaultPrevented||Vi(i,!0)}},0)}else{const m=v.target;m&&p.contains(m)||t("focusout",v)}};async function h(){await Nt();const v=T(r);if(v){y1.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const g=new Event(iv,h1);v.addEventListener(iv,l),v.dispatchEvent(g),g.defaultPrevented||Nt(()=>{let y=e.focusStartEl;ze(y)||(Vi(y),document.activeElement!==y&&(y="first")),y==="first"&&qH(gA(v),!0),(document.activeElement===p||y==="container")&&Vi(v)})}}}function d(){const v=T(r);if(v){v.removeEventListener(iv,l);const p=new CustomEvent(av,{...h1,detail:{focusReason:a.value}});v.addEventListener(av,u),v.dispatchEvent(p),!p.defaultPrevented&&(a.value=="keyboard"||!KH()||v.contains(document.activeElement))&&Vi(n??document.body),v.removeEventListener(av,u),y1.remove(o)}}return _t(()=>{e.trapped&&h(),be(()=>e.trapped,v=>{v?h():d()})}),tr(()=>{e.trapped&&d()}),{onKeydown:s}}});function QH(e,t,r,n,i,a){return Ce(e.$slots,"default",{handleKeydown:e.onKeydown})}var mA=Ke(ZH,[["render",QH],["__file","focus-trap.vue"]]);const JH=["fixed","absolute"],ez=Je({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Be(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Oy,default:"bottom"},popperOptions:{type:Be(Object),default:()=>({})},strategy:{type:String,values:JH,default:"absolute"}}),yA=Je({...ez,id:String,style:{type:Be([String,Array,Object])},className:{type:Be([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:Be([String,Array,Object])},popperStyle:{type:Be([String,Array,Object])},referenceEl:{type:Be(Object)},triggerTargetEl:{type:Be(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),tz={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},rz=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:i}=e,a={placement:r,strategy:n,...i,modifiers:[...iz(e),...t]};return az(a,i==null?void 0:i.modifiers),a},nz=e=>{if(At)return Zi(e)};function iz(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 az(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const oz=0,sz=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:i}=Le(Wy,void 0),a=$(),o=$(),s=k(()=>({name:"eventListeners",enabled:!!e.visible})),l=k(()=>{var g;const y=T(a),_=(g=T(o))!=null?g:oz;return{name:"arrow",enabled:!MM(y),options:{element:y,padding:_}}}),u=k(()=>({onFirstUpdate:()=>{v()},...rz(e,[T(l),T(s)])})),f=k(()=>nz(e.referenceEl)||T(n)),{attributes:c,state:h,styles:d,update:v,forceUpdate:p,instanceRef:m}=o4(f,r,u);return be(m,g=>t.value=g),_t(()=>{be(()=>{var g;return(g=T(f))==null?void 0:g.getBoundingClientRect()},()=>{v()})}),{attributes:c,arrowRef:a,contentRef:r,instanceRef:m,state:h,styles:d,role:i,forceUpdate:p,update:v}},lz=(e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:i}=zy(),a=Oe("popper"),o=k(()=>T(t).popper),s=$(kt(e.zIndex)?e.zIndex:i()),l=k(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),u=k(()=>[{zIndex:T(s)},T(r).popper,e.popperStyle||{}]),f=k(()=>n.value==="dialog"?"false":void 0),c=k(()=>T(r).arrow||{});return{ariaModal:f,arrowStyle:c,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=kt(e.zIndex)?e.zIndex:i()}}},uz=(e,t)=>{const r=$(!1),n=$();return{focusStartRef:n,trapped:r,onFocusAfterReleased:u=>{var f;((f=u.detail)==null?void 0:f.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")}}},fz=ie({name:"ElPopperContent"}),cz=ie({...fz,props:yA,emits:tz,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:i,trapped:a,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:f}=uz(n,r),{attributes:c,arrowRef:h,contentRef:d,styles:v,instanceRef:p,role:m,update:g}=sz(n),{ariaModal:y,arrowStyle:_,contentAttrs:b,contentClass:x,contentStyle:w,updateZIndex:S}=lz(n,{styles:v,attributes:c,role:m}),C=Le(yo,void 0),M=$();Dt(fA,{arrowStyle:_,arrowRef:h,arrowOffset:M}),C&&(C.addInputId||C.removeInputId)&&Dt(yo,{...C,addInputId:Ft,removeInputId:Ft});let A;const P=(L=!0)=>{g(),L&&S()},E=()=>{P(!1),n.visible&&n.focusOnShow?a.value=!0:n.visible===!1&&(a.value=!1)};return _t(()=>{be(()=>n.triggerTargetEl,(L,O)=>{A==null||A(),A=void 0;const N=T(L||d.value),H=T(O||d.value);mo(N)&&(A=be([m,()=>n.ariaLabel,y,()=>n.id],V=>{["role","aria-label","aria-modal","id"].forEach((U,F)=>{_s(V[F])?N.removeAttribute(U):N.setAttribute(U,V[F])})},{immediate:!0})),H!==N&&mo(H)&&["role","aria-label","aria-modal","id"].forEach(V=>{H.removeAttribute(V)})},{immediate:!0}),be(()=>n.visible,E,{immediate:!0})}),tr(()=>{A==null||A(),A=void 0}),t({popperContentRef:d,popperInstanceRef:p,updatePopper:P,contentStyle:w}),(L,O)=>(G(),ce("div",ei({ref_key:"contentRef",ref:d},T(b),{style:T(w),class:T(x),tabindex:"-1",onMouseenter:O[0]||(O[0]=N=>L.$emit("mouseenter",N)),onMouseleave:O[1]||(O[1]=N=>L.$emit("mouseleave",N))}),[Z(T(mA),{trapped:T(a),"trap-on-focus-in":!0,"focus-trap-el":T(d),"focus-start-el":T(i),onFocusAfterTrapped:T(s),onFocusAfterReleased:T(o),onFocusin:T(l),onFocusoutPrevented:T(u),onReleaseRequested:T(f)},{default:q(()=>[Ce(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var dz=Ke(cz,[["__file","content.vue"]]);const hz=Yt(OH),Yy=Symbol("elTooltip"),md=Je({...d4,...yA,appendTo:{type:Be([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Be(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),_A=Je({...vA,disabled:Boolean,trigger:{type:Be([String,Array]),default:"hover"},triggerKeys:{type:Be(Array),default:()=>[hr.enter,hr.space]}}),{useModelToggleProps:vz,useModelToggleEmits:pz,useModelToggle:gz}=BM("visible"),mz=Je({...cA,...vz,...md,..._A,...dA,showArrow:{type:Boolean,default:!0}}),yz=[...pz,"before-show","before-hide","show","hide","open","close"],_z=(e,t)=>_e(e)?e.includes(t):e===t,ko=(e,t,r)=>n=>{_z(T(e),t)&&r(n)},bz=ie({name:"ElTooltipTrigger"}),wz=ie({...bz,props:_A,setup(e,{expose:t}){const r=e,n=Oe("tooltip"),{controlled:i,id:a,open:o,onOpen:s,onClose:l,onToggle:u}=Le(Yy,void 0),f=$(null),c=()=>{if(T(i)||r.disabled)return!0},h=wn(r,"trigger"),d=di(c,ko(h,"hover",s)),v=di(c,ko(h,"hover",l)),p=di(c,ko(h,"click",b=>{b.button===0&&u(b)})),m=di(c,ko(h,"focus",s)),g=di(c,ko(h,"focus",l)),y=di(c,ko(h,"contextmenu",b=>{b.preventDefault(),u(b)})),_=di(c,b=>{const{code:x}=b;r.triggerKeys.includes(x)&&(b.preventDefault(),u(b))});return t({triggerRef:f}),(b,x)=>(G(),ve(T(zH),{id:T(a),"virtual-ref":b.virtualRef,open:T(o),"virtual-triggering":b.virtualTriggering,class:re(T(n).e("trigger")),onBlur:T(g),onClick:T(p),onContextmenu:T(y),onFocus:T(m),onMouseenter:T(d),onMouseleave:T(v),onKeydown:T(_)},{default:q(()=>[Ce(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Sz=Ke(wz,[["__file","trigger.vue"]]);const xz=ie({name:"ElTooltipContent",inheritAttrs:!1}),Cz=ie({...xz,props:md,setup(e,{expose:t}){const r=e,{selector:n}=QM(),i=Oe("tooltip"),a=$(null),o=$(!1),{controlled:s,id:l,open:u,trigger:f,onClose:c,onOpen:h,onShow:d,onHide:v,onBeforeShow:p,onBeforeHide:m}=Le(Yy,void 0),g=k(()=>r.transition||`${i.namespace.value}-fade-in-linear`),y=k(()=>r.persistent);tr(()=>{o.value=!0});const _=k(()=>T(y)?!0:T(u)),b=k(()=>r.disabled?!1:T(u)),x=k(()=>r.appendTo||n.value),w=k(()=>{var V;return(V=r.style)!=null?V:{}}),S=k(()=>!T(u)),C=()=>{v()},M=()=>{if(T(s))return!0},A=di(M,()=>{r.enterable&&T(f)==="hover"&&h()}),P=di(M,()=>{T(f)==="hover"&&c()}),E=()=>{var V,U;(U=(V=a.value)==null?void 0:V.updatePopper)==null||U.call(V),p==null||p()},L=()=>{m==null||m()},O=()=>{d(),H=ER(k(()=>{var V;return(V=a.value)==null?void 0:V.popperContentRef}),()=>{if(T(s))return;T(f)!=="hover"&&c()})},N=()=>{r.virtualTriggering||c()};let H;return be(()=>T(u),V=>{V||H==null||H()},{flush:"post"}),be(()=>r.content,()=>{var V,U;(U=(V=a.value)==null?void 0:V.updatePopper)==null||U.call(V)}),t({contentRef:a}),(V,U)=>(G(),ve(MT,{disabled:!V.teleported,to:T(x)},[Z(ti,{name:T(g),onAfterLeave:C,onBeforeEnter:E,onAfterEnter:O,onBeforeLeave:L},{default:q(()=>[T(_)?qt((G(),ve(T(dz),ei({key:0,id:T(l),ref_key:"contentRef",ref:a},V.$attrs,{"aria-label":V.ariaLabel,"aria-hidden":T(S),"boundaries-padding":V.boundariesPadding,"fallback-placements":V.fallbackPlacements,"gpu-acceleration":V.gpuAcceleration,offset:V.offset,placement:V.placement,"popper-options":V.popperOptions,strategy:V.strategy,effect:V.effect,enterable:V.enterable,pure:V.pure,"popper-class":V.popperClass,"popper-style":[V.popperStyle,T(w)],"reference-el":V.referenceEl,"trigger-target-el":V.triggerTargetEl,visible:T(b),"z-index":V.zIndex,onMouseenter:T(A),onMouseleave:T(P),onBlur:N,onClose:T(c)}),{default:q(()=>[o.value?Ae("v-if",!0):Ce(V.$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"])),[[Kn,T(b)]]):Ae("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Tz=Ke(Cz,[["__file","content.vue"]]);const Mz=["innerHTML"],Az={key:1},Pz=ie({name:"ElTooltip"}),Ez=ie({...Pz,props:mz,emits:yz,setup(e,{expose:t,emit:r}){const n=e;c4();const i=xu(),a=$(),o=$(),s=()=>{var g;const y=T(a);y&&((g=y.popperInstanceRef)==null||g.update())},l=$(!1),u=$(),{show:f,hide:c,hasUpdateHandler:h}=gz({indicator:l,toggleReason:u}),{onOpen:d,onClose:v}=h4({showAfter:wn(n,"showAfter"),hideAfter:wn(n,"hideAfter"),autoClose:wn(n,"autoClose"),open:f,close:c}),p=k(()=>zr(n.visible)&&!h.value);Dt(Yy,{controlled:p,id:i,open:Gu(l),trigger:wn(n,"trigger"),onOpen:g=>{d(g)},onClose:g=>{v(g)},onToggle:g=>{T(l)?v(g):d(g)},onShow:()=>{r("show",u.value)},onHide:()=>{r("hide",u.value)},onBeforeShow:()=>{r("before-show",u.value)},onBeforeHide:()=>{r("before-hide",u.value)},updatePopper:s}),be(()=>n.disabled,g=>{g&&l.value&&(l.value=!1)});const m=g=>{var y,_;const b=(_=(y=o.value)==null?void 0:y.contentRef)==null?void 0:_.popperContentRef,x=(g==null?void 0:g.relatedTarget)||document.activeElement;return b&&b.contains(x)};return pT(()=>l.value&&c()),t({popperRef:a,contentRef:o,isFocusInsideContent:m,updatePopper:s,onOpen:d,onClose:v,hide:c}),(g,y)=>(G(),ve(T(hz),{ref_key:"popperRef",ref:a,role:g.role},{default:q(()=>[Z(Sz,{disabled:g.disabled,trigger:g.trigger,"trigger-keys":g.triggerKeys,"virtual-ref":g.virtualRef,"virtual-triggering":g.virtualTriggering},{default:q(()=>[g.$slots.default?Ce(g.$slots,"default",{key:0}):Ae("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Z(Tz,{ref_key:"contentRef",ref:o,"aria-label":g.ariaLabel,"boundaries-padding":g.boundariesPadding,content:g.content,disabled:g.disabled,effect:g.effect,enterable:g.enterable,"fallback-placements":g.fallbackPlacements,"hide-after":g.hideAfter,"gpu-acceleration":g.gpuAcceleration,offset:g.offset,persistent:g.persistent,"popper-class":g.popperClass,"popper-style":g.popperStyle,placement:g.placement,"popper-options":g.popperOptions,pure:g.pure,"raw-content":g.rawContent,"reference-el":g.referenceEl,"trigger-target-el":g.triggerTargetEl,"show-after":g.showAfter,strategy:g.strategy,teleported:g.teleported,transition:g.transition,"virtual-triggering":g.virtualTriggering,"z-index":g.zIndex,"append-to":g.appendTo},{default:q(()=>[Ce(g.$slots,"content",{},()=>[g.rawContent?(G(),ce("span",{key:0,innerHTML:g.content},null,8,Mz)):(G(),ce("span",Az,xe(g.content),1))]),g.showArrow?(G(),ve(T(NH),{key:0,"arrow-offset":g.arrowOffset},null,8,["arrow-offset"])):Ae("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 Lz=Ke(Ez,[["__file","tooltip.vue"]]);const Vs=Yt(Lz),Dz=Je({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"}}),Iz=["textContent"],Oz=ie({name:"ElBadge"}),Rz=ie({...Oz,props:Dz,setup(e,{expose:t}){const r=e,n=Oe("badge"),i=k(()=>r.isDot?"":kt(r.value)&&kt(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:i}),(a,o)=>(G(),ce("div",{class:re(T(n).b())},[Ce(a.$slots,"default"),Z(ti,{name:`${T(n).namespace.value}-zoom-in-center`,persisted:""},{default:q(()=>[qt(te("sup",{class:re([T(n).e("content"),T(n).em("content",a.type),T(n).is("fixed",!!a.$slots.default),T(n).is("dot",a.isDot)]),textContent:xe(T(i))},null,10,Iz),[[Kn,!a.hidden&&(T(i)||a.isDot)]])]),_:1},8,["name"])],2))}});var kz=Ke(Rz,[["__file","badge.vue"]]);const Nz=Yt(kz),bA=Symbol("buttonGroupContextKey"),Bz=(e,t)=>{bu({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=Le(bA,void 0),n=hh("button"),{form:i}=tf(),a=xi(k(()=>r==null?void 0:r.size)),o=vh(),s=$(),l=Ns(),u=k(()=>e.type||(r==null?void 0:r.type)||""),f=k(()=>{var v,p,m;return(m=(p=e.autoInsertSpace)!=null?p:(v=n.value)==null?void 0:v.autoInsertSpace)!=null?m:!1}),c=k(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=k(()=>{var v;const p=(v=l.default)==null?void 0:v.call(l);if(f.value&&(p==null?void 0:p.length)===1){const m=p[0];if((m==null?void 0:m.type)===Bs){const g=m.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(g.trim())}}return!1});return{_disabled:o,_size:a,_type:u,_ref:s,_props:c,shouldAddSpace:h,handleClick:v=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",v)}}},pg=["default","primary","success","warning","info","danger","text",""],Fz=["button","submit","reset"],gg=Je({size:dh,disabled:Boolean,type:{type:String,values:pg,default:""},icon:{type:vr},nativeType:{type:String,values:Fz,default:"button"},loading:Boolean,loadingIcon:{type:vr,default:()=>Ly},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Be([String,Object]),default:"button"}}),$z={click:e=>e instanceof MouseEvent};function er(e,t){Hz(e)&&(e="100%");var r=zz(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 Lf(e){return Math.min(1,Math.max(0,e))}function Hz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function zz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function wA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Df(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ja(e){return e.length===1?"0"+e:String(e)}function Vz(e,t,r){return{r:er(e,255)*255,g:er(t,255)*255,b:er(r,255)*255}}function b1(e,t,r){e=er(e,255),t=er(t,255),r=er(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 ov(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 Wz(e,t,r){var n,i,a;if(e=er(e,360),t=er(t,100),r=er(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=ov(s,o,e+1/3),i=ov(s,o,e),a=ov(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function w1(e,t,r){e=er(e,255),t=er(t,255),r=er(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 Gz(e,t,r){e=er(e,360)*6,t=er(t,100),r=er(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],f=[s,r,r,o,a,a][l],c=[a,a,s,r,r,o][l];return{r:u*255,g:f*255,b:c*255}}function S1(e,t,r,n){var i=[Ja(Math.round(e).toString(16)),Ja(Math.round(t).toString(16)),Ja(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 Uz(e,t,r,n,i){var a=[Ja(Math.round(e).toString(16)),Ja(Math.round(t).toString(16)),Ja(Math.round(r).toString(16)),Ja(Yz(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 Yz(e){return Math.round(parseFloat(e)*255).toString(16)}function x1(e){return kr(e)/255}function kr(e){return parseInt(e,16)}function jz(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var mg={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 qz(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=Zz(e)),typeof e=="object"&&(si(e.r)&&si(e.g)&&si(e.b)?(t=Vz(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):si(e.h)&&si(e.s)&&si(e.v)?(n=Df(e.s),i=Df(e.v),t=Gz(e.h,n,i),o=!0,s="hsv"):si(e.h)&&si(e.s)&&si(e.l)&&(n=Df(e.s),a=Df(e.l),t=Wz(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=wA(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 Kz="[-\\+]?\\d+%?",Xz="[-\\+]?\\d*\\.\\d+%?",Qi="(?:".concat(Xz,")|(?:").concat(Kz,")"),sv="[\\s|\\(]+(".concat(Qi,")[,|\\s]+(").concat(Qi,")[,|\\s]+(").concat(Qi,")\\s*\\)?"),lv="[\\s|\\(]+(".concat(Qi,")[,|\\s]+(").concat(Qi,")[,|\\s]+(").concat(Qi,")[,|\\s]+(").concat(Qi,")\\s*\\)?"),gn={CSS_UNIT:new RegExp(Qi),rgb:new RegExp("rgb"+sv),rgba:new RegExp("rgba"+lv),hsl:new RegExp("hsl"+sv),hsla:new RegExp("hsla"+lv),hsv:new RegExp("hsv"+sv),hsva:new RegExp("hsva"+lv),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 Zz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(mg[e])e=mg[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=gn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=gn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=gn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=gn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=gn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=gn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=gn.hex8.exec(e),r?{r:kr(r[1]),g:kr(r[2]),b:kr(r[3]),a:x1(r[4]),format:t?"name":"hex8"}:(r=gn.hex6.exec(e),r?{r:kr(r[1]),g:kr(r[2]),b:kr(r[3]),format:t?"name":"hex"}:(r=gn.hex4.exec(e),r?{r:kr(r[1]+r[1]),g:kr(r[2]+r[2]),b:kr(r[3]+r[3]),a:x1(r[4]+r[4]),format:t?"name":"hex8"}:(r=gn.hex3.exec(e),r?{r:kr(r[1]+r[1]),g:kr(r[2]+r[2]),b:kr(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function si(e){return!!gn.CSS_UNIT.exec(String(e))}var SA=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=jz(t)),this.originalInput=t;var i=qz(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=wA(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=w1(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=w1(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=b1(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=b1(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),S1(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),Uz(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(er(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(er(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="#"+S1(this.r,this.g,this.b,!1),r=0,n=Object.entries(mg);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=!!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=Lf(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=Lf(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=Lf(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=Lf(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 Oi(e,t=20){return e.mix("#141414",t).toString()}function Qz(e){const t=vh(),r=Oe("button");return k(()=>{let n={};const i=e.color;if(i){const a=new SA(i),o=e.dark?a.tint(20).toString():Oi(a,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Oi(a,90):a.tint(90).toString(),"text-color":i,"border-color":e.dark?Oi(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?Oi(a,90):a.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Oi(a,50):a.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Oi(a,80):a.tint(80).toString());else{const s=e.dark?Oi(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?Oi(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 Jz=ie({name:"ElButton"}),e8=ie({...Jz,props:gg,emits:$z,setup(e,{expose:t,emit:r}){const n=e,i=Qz(n),a=Oe("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:f,shouldAddSpace:c,handleClick:h}=Bz(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:c}),(d,v)=>(G(),ve(Vt(d.tag),ei({ref_key:"_ref",ref:o},T(f),{class:[T(a).b(),T(a).m(T(l)),T(a).m(T(s)),T(a).is("disabled",T(u)),T(a).is("loading",d.loading),T(a).is("plain",d.plain),T(a).is("round",d.round),T(a).is("circle",d.circle),T(a).is("text",d.text),T(a).is("link",d.link),T(a).is("has-bg",d.bg)],style:T(i),onClick:T(h)}),{default:q(()=>[d.loading?(G(),ce(ft,{key:0},[d.$slots.loading?Ce(d.$slots,"loading",{key:0}):(G(),ve(T(Bt),{key:1,class:re(T(a).is("loading"))},{default:q(()=>[(G(),ve(Vt(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(G(),ve(T(Bt),{key:1},{default:q(()=>[d.icon?(G(),ve(Vt(d.icon),{key:0})):Ce(d.$slots,"icon",{key:1})]),_:3})):Ae("v-if",!0),d.$slots.default?(G(),ce("span",{key:2,class:re({[T(a).em("text","expand")]:T(c)})},[Ce(d.$slots,"default")],2)):Ae("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var t8=Ke(e8,[["__file","button.vue"]]);const r8={size:gg.size,type:gg.type},n8=ie({name:"ElButtonGroup"}),i8=ie({...n8,props:r8,setup(e){const t=e;Dt(bA,Ln({size:wn(t,"size"),type:wn(t,"type")}));const r=Oe("button");return(n,i)=>(G(),ce("div",{class:re(`${T(r).b("group")}`)},[Ce(n.$slots,"default")],2))}});var xA=Ke(i8,[["__file","button-group.vue"]]);const yg=Yt(t8,{ButtonGroup:xA});pa(xA);var a8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const Wi=new Map;let C1;At&&(document.addEventListener("mousedown",e=>C1=e),document.addEventListener("mouseup",e=>{for(const t of Wi.values())for(const{documentHandler:r}of t)r(e,C1)}));function T1(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:mo(t.arg)&&r.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i==null?void 0:i.target,l=!t||!t.instance,u=!o||!s,f=e.contains(o)||e.contains(s),c=e===o,h=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(s),d=a&&(a.contains(o)||a.contains(s));l||u||f||c||h||d||t.value(n,i)}}const CA={beforeMount(e,t){Wi.has(e)||Wi.set(e,[]),Wi.get(e).push({documentHandler:T1(e,t),bindingFn:t.value})},updated(e,t){Wi.has(e)||Wi.set(e,[]);const r=Wi.get(e),n=r.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:T1(e,t),bindingFn:t.value};n>=0?r.splice(n,1,i):r.push(i)},unmounted(e){Wi.delete(e)}};var M1=!1,qa,_g,bg,Rc,kc,TA,Nc,wg,Sg,xg,MA,Cg,Tg,AA,PA;function yr(){if(!M1){M1=!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(Cg=/\b(iPhone|iP[ao]d)/.exec(e),Tg=/\b(iP[ao]d)/.exec(e),xg=/Android/i.exec(e),AA=/FBAN\/\w+;/i.exec(e),PA=/Mobile/i.exec(e),MA=!!/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,_g=t[2]?parseFloat(t[2]):NaN,bg=t[3]?parseFloat(t[3]):NaN,Rc=t[4]?parseFloat(t[4]):NaN,Rc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),kc=t&&t[1]?parseFloat(t[1]):NaN):kc=NaN}else qa=_g=bg=kc=Rc=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Nc=i?parseFloat(i[1].replace("_",".")):!0}else Nc=!1;wg=!!r[2],Sg=!!r[3]}else Nc=wg=Sg=!1}}var Mg={ie:function(){return yr()||qa},ieCompatibilityMode:function(){return yr()||TA>qa},ie64:function(){return Mg.ie()&&MA},firefox:function(){return yr()||_g},opera:function(){return yr()||bg},webkit:function(){return yr()||Rc},safari:function(){return Mg.webkit()},chrome:function(){return yr()||kc},windows:function(){return yr()||wg},osx:function(){return yr()||Nc},linux:function(){return yr()||Sg},iphone:function(){return yr()||Cg},mobile:function(){return yr()||Cg||Tg||xg||PA},nativeApp:function(){return yr()||AA},android:function(){return yr()||xg},ipad:function(){return yr()||Tg}},o8=Mg,If=!!(typeof window<"u"&&window.document&&window.document.createElement),s8={canUseDOM:If,canUseWorkers:typeof Worker<"u",canUseEventListeners:If&&!!(window.addEventListener||window.attachEvent),canUseViewport:If&&!!window.screen,isInWorker:!If},EA=s8,LA;EA.canUseDOM&&(LA=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function l8(e,t){if(!EA.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&&LA&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var u8=l8,A1=10,P1=40,E1=800;function DA(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*A1,i=r*A1,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=P1,i*=P1):(n*=E1,i*=E1)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}DA.getEventType=function(){return o8.firefox()?"DOMMouseScroll":u8("wheel")?"wheel":"mousewheel"};var f8=DA;/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
@@ -38,11 +38,11 @@ var DD=Object.defineProperty;var ID=(e,t,r)=>t in e?DD(e,t,{enumerable:!0,config
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
-*/const c8=function(e,t){if(e&&e.addEventListener){const r=function(n){const i=f8(n);t&&Reflect.apply(t,this,[n,i])};e.addEventListener("wheel",r,{passive:!0})}},d8={beforeMount(e,t){c8(e,t.value)}},IA={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},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:dh,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},OA={[wi]:e=>ze(e)||Rt(e)||zr(e),change:e=>ze(e)||Rt(e)||zr(e)},zs=Symbol("checkboxGroupContextKey"),h8=({model:e,isChecked:t})=>{const r=Le(zs,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!ys(s)&&e.value.length>=s&&!t.value||!ys(l)&&e.value.length<=l&&t.value});return{isDisabled:vh(k(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},v8=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:i,isLabeledByFormItem:a})=>{const o=Le(zs,void 0),{formItem:s}=tf(),{emit:l}=it();function u(v){var p,m;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(m=e.falseLabel)!=null?m:!1}function f(v,p){l("change",u(v),p)}function c(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function h(v){r.value||!n.value&&!i.value&&a.value&&(v.composedPath().some(g=>g.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await kt(),f(t.value,v)))}const d=k(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return we(()=>e.modelValue,()=>{d.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:c,onClickRoot:h}},p8=e=>{const t=$(!1),{emit:r}=it(),n=Le(zs,void 0),i=k(()=>ys(n)===!1),a=$(!1),o=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&&_e(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)&&s.length>o.value.length,a.value===!1&&((u=n==null?void 0:n.changeEvent)==null||u.call(n,s))):(r(wi,s),t.value=s)}});return{model:o,isGroup:i,isLimitExceeded:a}},g8=(e,t,{model:r})=>{const n=Le(zs,void 0),i=$(!1),a=k(()=>{const u=r.value;return zr(u)?u:_e(u)?qe(e.label)?u.map(Qe).some(f=>p3(f,e.label)):u.map(Qe).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=xi(k(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=xi(k(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=k(()=>!!t.default||!ms(e.label));return{checkboxButtonSize:o,isChecked:a,isFocused:i,checkboxSize:s,hasOwnLabel:l}},m8=(e,{model:t})=>{function r(){_e(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},RA=(e,t)=>{const{formItem:r}=tf(),{model:n,isGroup:i,isLimitExceeded:a}=p8(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f}=g8(e,t,{model:n}),{isDisabled:c}=h8({model:n,isChecked:s}),{inputId:h,isLabeledByFormItem:d}=Vy(e,{formItemContext:r,disableIdGeneration:f,disableIdManagement:i}),{handleChange:v,onClickRoot:p}=v8(e,{model:n,isLimitExceeded:a,hasOwnLabel:f,isDisabled:c,isLabeledByFormItem:d});return m8(e,{model:n}),{inputId:h,isLabeledByFormItem:d,isChecked:s,isDisabled:c,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f,model:n,handleChange:v,onClickRoot:p}},y8=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],_8=["id","indeterminate","disabled","value","name","tabindex"],b8=ie({name:"ElCheckbox"}),w8=ie({...b8,props:IA,emits:OA,setup(e){const t=e,r=Rs(),{inputId:n,isLabeledByFormItem:i,isChecked:a,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:f,handleChange:c,onClickRoot:h}=RA(t,r),d=Oe("checkbox"),v=k(()=>[d.b(),d.m(l.value),d.is("disabled",o.value),d.is("bordered",t.border),d.is("checked",a.value)]),p=k(()=>[d.e("input"),d.is("disabled",o.value),d.is("checked",a.value),d.is("indeterminate",t.indeterminate),d.is("focus",s.value)]);return(m,g)=>(G(),de(Vt(!T(u)&&T(i)?"span":"label"),{class:re(T(v)),"aria-controls":m.indeterminate?m.controls:null,onClick:T(h)},{default:j(()=>[ee("span",{class:re(T(p))},[m.trueLabel||m.falseLabel?qt((G(),ce("input",{key:0,id:T(n),"onUpdate:modelValue":g[0]||(g[0]=y=>Pt(f)?f.value=y:null),class:re(T(d).e("original")),type:"checkbox",indeterminate:m.indeterminate,name:m.name,tabindex:m.tabindex,disabled:T(o),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:g[1]||(g[1]=(...y)=>T(c)&&T(c)(...y)),onFocus:g[2]||(g[2]=y=>s.value=!0),onBlur:g[3]||(g[3]=y=>s.value=!1),onClick:g[4]||(g[4]=ua(()=>{},["stop"]))},null,42,y8)),[[sd,T(f)]]):qt((G(),ce("input",{key:1,id:T(n),"onUpdate:modelValue":g[5]||(g[5]=y=>Pt(f)?f.value=y:null),class:re(T(d).e("original")),type:"checkbox",indeterminate:m.indeterminate,disabled:T(o),value:m.label,name:m.name,tabindex:m.tabindex,onChange:g[6]||(g[6]=(...y)=>T(c)&&T(c)(...y)),onFocus:g[7]||(g[7]=y=>s.value=!0),onBlur:g[8]||(g[8]=y=>s.value=!1),onClick:g[9]||(g[9]=ua(()=>{},["stop"]))},null,42,_8)),[[sd,T(f)]]),ee("span",{class:re(T(d).e("inner"))},null,2)],2),T(u)?(G(),ce("span",{key:0,class:re(T(d).e("label"))},[Ce(m.$slots,"default"),m.$slots.default?Ae("v-if",!0):(G(),ce(ft,{key:0},[mt(be(m.label),1)],64))],2)):Ae("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var S8=Ke(w8,[["__file","checkbox.vue"]]);const x8=["name","tabindex","disabled","true-value","false-value"],C8=["name","tabindex","disabled","value"],T8=ie({name:"ElCheckboxButton"}),M8=ie({...T8,props:IA,emits:OA,setup(e){const t=e,r=Rs(),{isFocused:n,isChecked:i,isDisabled:a,checkboxButtonSize:o,model:s,handleChange:l}=RA(t,r),u=Le(zs,void 0),f=Oe("checkbox"),c=k(()=>{var d,v,p,m;const g=(v=(d=u==null?void 0:u.fill)==null?void 0:d.value)!=null?v:"";return{backgroundColor:g,borderColor:g,color:(m=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?m:"",boxShadow:g?`-1px 0 0 0 ${g}`:void 0}}),h=k(()=>[f.b("button"),f.bm("button",o.value),f.is("disabled",a.value),f.is("checked",i.value),f.is("focus",n.value)]);return(d,v)=>(G(),ce("label",{class:re(T(h))},[d.trueLabel||d.falseLabel?qt((G(),ce("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>Pt(s)?s.value=p:null),class:re(T(f).be("button","original")),type:"checkbox",name:d.name,tabindex:d.tabindex,disabled:T(a),"true-value":d.trueLabel,"false-value":d.falseLabel,onChange:v[1]||(v[1]=(...p)=>T(l)&&T(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1),onClick:v[4]||(v[4]=ua(()=>{},["stop"]))},null,42,x8)),[[sd,T(s)]]):qt((G(),ce("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=p=>Pt(s)?s.value=p:null),class:re(T(f).be("button","original")),type:"checkbox",name:d.name,tabindex:d.tabindex,disabled:T(a),value:d.label,onChange:v[6]||(v[6]=(...p)=>T(l)&&T(l)(...p)),onFocus:v[7]||(v[7]=p=>n.value=!0),onBlur:v[8]||(v[8]=p=>n.value=!1),onClick:v[9]||(v[9]=ua(()=>{},["stop"]))},null,42,C8)),[[sd,T(s)]]),d.$slots.default||d.label?(G(),ce("span",{key:2,class:re(T(f).be("button","inner")),style:ct(T(i)?T(c):void 0)},[Ce(d.$slots,"default",{},()=>[mt(be(d.label),1)])],6)):Ae("v-if",!0)],2))}});var kA=Ke(M8,[["__file","checkbox-button.vue"]]);const A8=Je({modelValue:{type:Be(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:dh,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),P8={[wi]:e=>_e(e),change:e=>_e(e)},E8=ie({name:"ElCheckboxGroup"}),L8=ie({...E8,props:A8,emits:P8,setup(e,{emit:t}){const r=e,n=Oe("checkbox"),{formItem:i}=tf(),{inputId:a,isLabeledByFormItem:o}=Vy(r,{formItemContext:i}),s=async u=>{t(wi,u),await kt(),t("change",u)},l=k({get(){return r.modelValue},set(u){s(u)}});return Dt(zs,{...b3(Kd(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),we(()=>r.modelValue,()=>{r.validateEvent&&(i==null||i.validate("change").catch(u=>void 0))}),(u,f)=>{var c;return G(),de(Vt(u.tag),{id:T(a),class:re(T(n).b("group")),role:"group","aria-label":T(o)?void 0:u.label||"checkbox-group","aria-labelledby":T(o)?(c=T(i))==null?void 0:c.labelId:void 0},{default:j(()=>[Ce(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var NA=Ke(L8,[["__file","checkbox-group.vue"]]);const Cs=Yt(S8,{CheckboxButton:kA,CheckboxGroup:NA});pa(kA);pa(NA);const D8=Je({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Bs,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),I8={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},O8=ie({name:"ElTag"}),R8=ie({...O8,props:D8,emits:I8,setup(e,{emit:t}){const r=e,n=xi(),i=Oe("tag"),a=k(()=>{const{type:l,hit:u,effect:f,closable:c,round:h}=r;return[i.b(),i.is("closable",c),i.m(l),i.m(n.value),i.m(f),i.is("hit",u),i.is("round",h)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(G(),ce("span",{key:0,class:re(T(a)),style:ct({backgroundColor:l.color}),onClick:s},[ee("span",{class:re(T(i).e("content"))},[Ce(l.$slots,"default")],2),l.closable?(G(),de(T(Nt),{key:0,class:re(T(i).e("close")),onClick:ua(o,["stop"])},{default:j(()=>[Z(T(vd))]),_:1},8,["class","onClick"])):Ae("v-if",!0)],6)):(G(),de(ti,{key:1,name:`${T(i).namespace.value}-zoom-in-center`,appear:""},{default:j(()=>[ee("span",{class:re(T(a)),style:ct({backgroundColor:l.color}),onClick:s},[ee("span",{class:re(T(i).e("content"))},[Ce(l.$slots,"default")],2),l.closable?(G(),de(T(Nt),{key:0,class:re(T(i).e("close")),onClick:ua(o,["stop"])},{default:j(()=>[Z(T(vd))]),_:1},8,["class","onClick"])):Ae("v-if",!0)],6)]),_:3},8,["name"]))}});var k8=Ke(R8,[["__file","tag.vue"]]);const N8=Yt(k8),BA=Symbol("rowContextKey"),B8=["start","center","end","space-around","space-between","space-evenly"],F8=["top","middle","bottom"],$8=Je({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:B8,default:"start"},align:{type:String,values:F8}}),H8=ie({name:"ElRow"}),z8=ie({...H8,props:$8,setup(e){const t=e,r=Oe("row"),n=k(()=>t.gutter);Dt(BA,{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)]);return(o,s)=>(G(),de(Vt(o.tag),{class:re(T(a)),style:ct(T(i))},{default:j(()=>[Ce(o.$slots,"default")]),_:3},8,["class","style"]))}});var V8=Ke(z8,[["__file","row.vue"]]);const FA=Yt(V8),W8=Je({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:Be([Number,Object]),default:()=>ja({})},sm:{type:Be([Number,Object]),default:()=>ja({})},md:{type:Be([Number,Object]),default:()=>ja({})},lg:{type:Be([Number,Object]),default:()=>ja({})},xl:{type:Be([Number,Object]),default:()=>ja({})}}),G8=ie({name:"ElCol"}),U8=ie({...G8,props:W8,setup(e){const t=e,{gutter:r}=Le(BA,{gutter:k(()=>0)}),n=Oe("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 f=t[u];Rt(f)&&(u==="span"?o.push(n.b(`${t[u]}`)):f>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{Rt(t[u])?o.push(n.b(`${u}-${t[u]}`)):qe(t[u])&&Object.entries(t[u]).forEach(([f,c])=>{o.push(f!=="span"?n.b(`${u}-${f}-${c}`):n.b(`${u}-${c}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(G(),de(Vt(o.tag),{class:re(T(a)),style:ct(T(i))},{default:j(()=>[Ce(o.$slots,"default")]),_:3},8,["class","style"]))}});var Y8=Ke(U8,[["__file","col.vue"]]);const $A=Yt(Y8),j8=ie({name:"ElCollapseTransition"}),q8=ie({...j8,setup(e){const t=Oe("collapse-transition"),r=i=>{i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom},n={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.height&&(i.dataset.elExistsHeight=i.style.height),i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0},enter(i){requestAnimationFrame(()=>{i.dataset.oldOverflow=i.style.overflow,i.dataset.elExistsHeight?i.style.maxHeight=i.dataset.elExistsHeight:i.scrollHeight!==0?i.style.maxHeight=`${i.scrollHeight}px`:i.style.maxHeight=0,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom,i.style.overflow="hidden"})},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},enterCancelled(i){r(i)},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.maxHeight=`${i.scrollHeight}px`,i.style.overflow="hidden"},leave(i){i.scrollHeight!==0&&(i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0)},afterLeave(i){r(i)},leaveCancelled(i){r(i)}};return(i,a)=>(G(),de(ti,ei({name:T(t).b()},YI(n)),{default:j(()=>[Ce(i.$slots,"default")]),_:3},16,["name"]))}});var Bc=Ke(q8,[["__file","collapse-transition.vue"]]);Bc.install=e=>{e.component(Bc.name,Bc)};const K8=Bc,X8=Je({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Be([String,Array,Object])},zIndex:{type:Be([String,Number])}}),Z8={click:e=>e instanceof MouseEvent},Q8="overlay";var J8=ie({name:"ElOverlay",props:X8,emits:Z8,setup(e,{slots:t,emit:r}){const n=Oe(Q8),i=l=>{r("click",l)},{onClick:a,onMousedown:o,onMouseup:s}=XM(e.customMaskEvent?void 0:i);return()=>e.mask?Z("div",{class:[n.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:a,onMousedown:o,onMouseup:s},[Ce(t,"default")],Lc.STYLE|Lc.CLASS|Lc.PROPS,["onClick","onMouseup","onMousedown"]):Te("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ce(t,"default")])}});const e6=J8,HA=Symbol("dialogInjectionKey"),zA=Je({center:Boolean,alignCenter:Boolean,closeIcon:{type:vr},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),t6={close:()=>!0},r6=["aria-level"],n6=["aria-label"],i6=["id"],a6=ie({name:"ElDialogContent"}),o6=ie({...a6,props:zA,emits:t6,setup(e){const t=e,{t:r}=Fs(),{Close:n}=W3,{dialogRef:i,headerRef:a,bodyId:o,ns:s,style:l}=Le(HA),{focusTrapRef:u}=Le(pA),f=k(()=>[s.b(),s.is("fullscreen",t.fullscreen),s.is("draggable",t.draggable),s.is("align-center",t.alignCenter),{[s.m("center")]:t.center},t.customClass]),c=Y3(u,i),h=k(()=>t.draggable);return K3(i,a,h),(d,v)=>(G(),ce("div",{ref:T(c),class:re(T(f)),style:ct(T(l)),tabindex:"-1"},[ee("header",{ref_key:"headerRef",ref:a,class:re(T(s).e("header"))},[Ce(d.$slots,"header",{},()=>[ee("span",{role:"heading","aria-level":d.ariaLevel,class:re(T(s).e("title"))},be(d.title),11,r6)]),d.showClose?(G(),ce("button",{key:0,"aria-label":T(r)("el.dialog.close"),class:re(T(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=p=>d.$emit("close"))},[Z(T(Nt),{class:re(T(s).e("close"))},{default:j(()=>[(G(),de(Vt(d.closeIcon||T(n))))]),_:1},8,["class"])],10,n6)):Ae("v-if",!0)],2),ee("div",{id:T(o),class:re(T(s).e("body"))},[Ce(d.$slots,"default")],10,i6),d.$slots.footer?(G(),ce("footer",{key:0,class:re(T(s).e("footer"))},[Ce(d.$slots,"footer")],2)):Ae("v-if",!0)],6))}});var s6=Ke(o6,[["__file","dialog-content.vue"]]);const l6=Je({...zA,appendToBody:Boolean,appendTo:{type:Be(String),default:"body"},beforeClose:{type:Be(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),u6={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[wi]:e=>zr(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},f6=(e,t)=>{var r;const i=it().emit,{nextZIndex:a}=zy();let o="";const s=xu(),l=xu(),u=$(!1),f=$(!1),c=$(!1),h=$((r=e.zIndex)!=null?r:a());let d,v;const p=hh("namespace",Bl),m=k(()=>{const N={},H=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(N[`${H}-margin-top`]=e.top),e.width&&(N[`${H}-width`]=Zn(e.width))),N}),g=k(()=>e.alignCenter?{display:"flex"}:{});function y(){i("opened")}function _(){i("closed"),i(wi,!1),e.destroyOnClose&&(c.value=!1)}function b(){i("close")}function x(){v==null||v(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=hu(()=>M(),e.openDelay):M()}function w(){d==null||d(),v==null||v(),e.closeDelay&&e.closeDelay>0?{stop:v}=hu(()=>A(),e.closeDelay):A()}function S(){function N(H){H||(f.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(N):w()}function C(){e.closeOnClickModal&&S()}function M(){At&&(u.value=!0)}function A(){u.value=!1}function P(){i("openAutoFocus")}function E(){i("closeAutoFocus")}function L(N){var H;((H=N.detail)==null?void 0:H.focusReason)==="pointer"&&N.preventDefault()}e.lockScroll&&t5(u);function O(){e.closeOnPressEscape&&S()}return we(()=>e.modelValue,N=>{N?(f.value=!1,x(),c.value=!0,h.value=MM(e.zIndex)?a():h.value++,kt(()=>{i("open"),t.value&&(t.value.scrollTop=0)})):u.value&&w()}),we(()=>e.fullscreen,N=>{t.value&&(N?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),_t(()=>{e.modelValue&&(u.value=!0,c.value=!0,x())}),{afterEnter:y,afterLeave:_,beforeLeave:b,handleClose:S,onModalClick:C,close:w,doClose:A,onOpenAutoFocus:P,onCloseAutoFocus:E,onCloseRequested:O,onFocusoutPrevented:L,titleId:s,bodyId:l,closed:f,style:m,overlayDialogStyle:g,rendered:c,visible:u,zIndex:h}},c6=["aria-label","aria-labelledby","aria-describedby"],d6=ie({name:"ElDialog",inheritAttrs:!1}),h6=ie({...d6,props:l6,emits:u6,setup(e,{expose:t}){const r=e,n=Rs();bu({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},k(()=>!!n.title)),bu({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},k(()=>!!r.customClass));const i=Oe("dialog"),a=$(),o=$(),s=$(),{visible:l,titleId:u,bodyId:f,style:c,overlayDialogStyle:h,rendered:d,zIndex:v,afterEnter:p,afterLeave:m,beforeLeave:g,handleClose:y,onModalClick:_,onOpenAutoFocus:b,onCloseAutoFocus:x,onCloseRequested:w,onFocusoutPrevented:S}=f6(r,a);Dt(HA,{dialogRef:a,headerRef:o,bodyId:f,ns:i,rendered:d,style:c});const C=XM(_),M=k(()=>r.draggable&&!r.fullscreen);return t({visible:l,dialogContentRef:s}),(A,P)=>(G(),de(MT,{to:A.appendTo,disabled:A.appendTo!=="body"?!1:!A.appendToBody},[Z(ti,{name:"dialog-fade",onAfterEnter:T(p),onAfterLeave:T(m),onBeforeLeave:T(g),persisted:""},{default:j(()=>[qt(Z(T(e6),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":T(v)},{default:j(()=>[ee("div",{role:"dialog","aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:T(u),"aria-describedby":T(f),class:re(`${T(i).namespace.value}-overlay-dialog`),style:ct(T(h)),onClick:P[0]||(P[0]=(...E)=>T(C).onClick&&T(C).onClick(...E)),onMousedown:P[1]||(P[1]=(...E)=>T(C).onMousedown&&T(C).onMousedown(...E)),onMouseup:P[2]||(P[2]=(...E)=>T(C).onMouseup&&T(C).onMouseup(...E))},[Z(T(mA),{loop:"",trapped:T(l),"focus-start-el":"container",onFocusAfterTrapped:T(b),onFocusAfterReleased:T(x),onFocusoutPrevented:T(S),onReleaseRequested:T(w)},{default:j(()=>[T(d)?(G(),de(s6,ei({key:0,ref_key:"dialogContentRef",ref:s},A.$attrs,{"custom-class":A.customClass,center:A.center,"align-center":A.alignCenter,"close-icon":A.closeIcon,draggable:T(M),fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,"aria-level":A.headerAriaLevel,onClose:T(y)}),UI({header:j(()=>[A.$slots.title?Ce(A.$slots,"title",{key:1}):Ce(A.$slots,"header",{key:0,close:T(y),titleId:T(u),titleClass:T(i).e("title")})]),default:j(()=>[Ce(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:j(()=>[Ce(A.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):Ae("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,c6)]),_:3},8,["mask","overlay-class","z-index"]),[[Kn,T(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var v6=Ke(h6,[["__file","dialog.vue"]]);const p6=Yt(v6),g6=Je({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Be(String),default:"solid"}}),m6=ie({name:"ElDivider"}),y6=ie({...m6,props:g6,setup(e){const t=e,r=Oe("divider"),n=k(()=>r.cssVar({"border-style":t.borderStyle}));return(i,a)=>(G(),ce("div",{class:re([T(r).b(),T(r).m(i.direction)]),style:ct(T(n)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(G(),ce("div",{key:0,class:re([T(r).e("text"),T(r).is(i.contentPosition)])},[Ce(i.$slots,"default")],2)):Ae("v-if",!0)],6))}});var _6=Ke(y6,[["__file","divider.vue"]]);const VA=Yt(_6);let b6=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 hr.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case hr.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case hr.tab:{Ac(t,"mouseleave");break}case hr.enter:case hr.space:{i=!0,n.currentTarget.click();break}}return i&&(n.preventDefault(),n.stopPropagation()),!1})})}},w6=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 b6(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case hr.down:{Ac(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case hr.up:{Ac(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case hr.tab:{Ac(t.currentTarget,"mouseleave");break}case hr.enter:case hr.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},S6=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 w6(n,t)})}};const x6=ie({name:"ElMenuCollapseTransition",setup(){const e=Oe("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Za(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){so(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),oo(r,e.m("collapse"))?(so(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Za(r,e.m("collapse"))):(Za(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),so(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Za(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function C6(e,t,r,n,i,a){return G(),de(ti,ei({mode:"out-in"},e.listeners),{default:j(()=>[Ce(e.$slots,"default")]),_:3},16)}var T6=Ke(x6,[["render",C6],["__file","menu-collapse-transition.vue"]]);function WA(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 M6(e){return k(()=>{const r=e.backgroundColor;return r?new SA(r).shade(20).toString():""})}const GA=(e,t)=>{const r=Oe("menu");return k(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":M6(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},A6=Je({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:vr},expandOpenIcon:{type:vr},collapseCloseIcon:{type:vr},collapseOpenIcon:{type:vr}}),Of="ElSubMenu";var jy=ie({name:Of,props:A6,setup(e,{slots:t,expose:r}){bu({from:"popper-append-to-body",replacement:"teleported",scope:Of,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},k(()=>e.popperAppendToBody!==void 0));const n=it(),{indexPath:i,parentMenu:a}=WA(n,k(()=>e.index)),o=Oe("menu"),s=Oe("sub-menu"),l=Le("rootMenu");l||bi(Of,"can not inject root menu");const u=Le(`subMenu:${a.value.uid}`);u||bi(Of,"can not inject sub menu");const f=$({}),c=$({});let h;const d=$(!1),v=$(),p=$(null),m=k(()=>C.value==="horizontal"&&y.value?"bottom-start":"right-start"),g=k(()=>C.value==="horizontal"&&y.value||C.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?w.value?e.expandOpenIcon:e.expandCloseIcon:EM:e.collapseCloseIcon&&e.collapseOpenIcon?w.value?e.collapseOpenIcon:e.collapseCloseIcon:Ey),y=k(()=>u.level===0),_=k(()=>{var z;const te=(z=e.teleported)!=null?z:e.popperAppendToBody;return te===void 0?y.value:te}),b=k(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=k(()=>C.value==="horizontal"&&y.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),w=k(()=>l.openedMenus.includes(e.index)),S=k(()=>{let z=!1;return Object.values(f.value).forEach(te=>{te.active&&(z=!0)}),Object.values(c.value).forEach(te=>{te.active&&(z=!0)}),z}),C=k(()=>l.props.mode),M=Ln({index:e.index,indexPath:i,active:S}),A=GA(l.props,u.level+1),P=k(()=>{var z;return(z=e.popperOffset)!=null?z:l.props.popperOffset}),E=k(()=>{var z;return(z=e.popperClass)!=null?z:l.props.popperClass}),L=k(()=>{var z;return(z=e.showTimeout)!=null?z:l.props.showTimeout}),O=k(()=>{var z;return(z=e.hideTimeout)!=null?z:l.props.hideTimeout}),N=()=>{var z,te,J;return(J=(te=(z=p.value)==null?void 0:z.popperRef)==null?void 0:te.popperInstanceRef)==null?void 0:J.destroy()},H=z=>{z||N()},V=()=>{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})},U=(z,te=L.value)=>{var J;if(z.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,h==null||h(),{stop:h}=hu(()=>{l.openMenu(e.index,i.value)},te),_.value&&((J=a.value.vnode.el)==null||J.dispatchEvent(new MouseEvent("mouseenter")))}},F=(z=!1)=>{var te;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}h==null||h(),u.mouseInChild.value=!1,{stop:h}=hu(()=>!d.value&&l.closeMenu(e.index,i.value),O.value),_.value&&z&&((te=u.handleMouseleave)==null||te.call(u,!0))};we(()=>l.props.collapse,z=>H(!!z));{const z=J=>{c.value[J.index]=J},te=J=>{delete c.value[J.index]};Dt(`subMenu:${n.uid}`,{addSubMenu:z,removeSubMenu:te,handleMouseleave:F,mouseInChild:d,level:u.level+1})}return r({opened:w}),_t(()=>{l.addSubMenu(M),u.addSubMenu(M)}),tr(()=>{u.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var z;const te=[(z=t.title)==null?void 0:z.call(t),Te(Nt,{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:()=>ze(g.value)?Te(n.appContext.components[g.value]):Te(g.value)})],J=l.isMenuPopup?Te(Hs,{ref:p,visible:w.value,effect:"light",pure:!0,offset:P.value,showArrow:!1,persistent:!0,popperClass:E.value,placement:m.value,teleported:_.value,fallbackPlacements:x.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var me;return Te("div",{class:[o.m(C.value),o.m("popup-container"),E.value],onMouseenter:Se=>U(Se,100),onMouseleave:()=>F(!0),onFocus:Se=>U(Se,100)},[Te("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${m.value}`)],style:A.value},[(me=t.default)==null?void 0:me.call(t)])])},default:()=>Te("div",{class:s.e("title"),onClick:V},te)}):Te(ft,{},[Te("div",{class:s.e("title"),ref:v,onClick:V},te),Te(K8,{},{default:()=>{var me;return qt(Te("ul",{role:"menu",class:[o.b(),o.m("inline")],style:A.value},[(me=t.default)==null?void 0:me.call(t)]),[[Kn,w.value]])}})]);return Te("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:U,onMouseleave:()=>F(),onFocus:U},[J])}}});const P6=Je({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Be(Array),default:()=>ja([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:vr,default:()=>B3},popperEffect:{type:String,values:["dark","light"],default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),uv=e=>Array.isArray(e)&&e.every(t=>ze(t)),E6={close:(e,t)=>ze(e)&&uv(t),open:(e,t)=>ze(e)&&uv(t),select:(e,t,r,n)=>ze(e)&&uv(t)&&qe(r)&&(n===void 0||n instanceof Promise)};var L6=ie({name:"ElMenu",props:P6,emits:E6,setup(e,{emit:t,slots:r,expose:n}){const i=it(),a=i.appContext.config.globalProperties.$router,o=$(),s=Oe("menu"),l=Oe("sub-menu"),u=$(-1),f=$(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),c=$(e.defaultActive),h=$({}),d=$({}),v=k(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const L=c.value&&h.value[c.value];if(!L||e.mode==="horizontal"||e.collapse)return;L.indexPath.forEach(N=>{const H=d.value[N];H&&m(N,H.indexPath)})},m=(L,O)=>{f.value.includes(L)||(e.uniqueOpened&&(f.value=f.value.filter(N=>O.includes(N))),f.value.push(L),t("open",L,O))},g=L=>{const O=f.value.indexOf(L);O!==-1&&f.value.splice(O,1)},y=(L,O)=>{g(L),t("close",L,O)},_=({index:L,indexPath:O})=>{f.value.includes(L)?y(L,O):m(L,O)},b=L=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:O,indexPath:N}=L;if(!(ms(O)||ms(N)))if(e.router&&a){const H=L.route||O,V=a.push(H).then(U=>(U||(c.value=O),U));t("select",O,N,{index:O,indexPath:N,route:H},V)}else c.value=O,t("select",O,N,{index:O,indexPath:N})},x=L=>{const O=h.value,N=O[L]||c.value&&O[c.value]||O[e.defaultActive];N?c.value=N.index:c.value=L},w=()=>{var L,O;if(!o.value)return-1;const N=Array.from((O=(L=o.value)==null?void 0:L.childNodes)!=null?O:[]).filter(J=>J.nodeName!=="#comment"&&(J.nodeName!=="#text"||J.nodeValue)),H=64,V=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),U=Number.parseInt(getComputedStyle(o.value).paddingRight,10),F=o.value.clientWidth-V-U;let z=0,te=0;return N.forEach((J,me)=>{z+=J.offsetWidth||0,z<=F-H&&(te=me+1)}),te===N.length?-1:te},S=L=>d.value[L].indexPath,C=(L,O=33.34)=>{let N;return()=>{N&&clearTimeout(N),N=setTimeout(()=>{L()},O)}};let M=!0;const A=()=>{const L=()=>{u.value=-1,kt(()=>{u.value=w()})};M?L():C(L)(),M=!1};we(()=>e.defaultActive,L=>{h.value[L]||(c.value=""),x(L)}),we(()=>e.collapse,L=>{L&&(f.value=[])}),we(h.value,p);let P;na(()=>{e.mode==="horizontal"&&e.ellipsis?P=ps(o,A).stop:P==null||P()});const E=$(!1);{const L=V=>{d.value[V.index]=V},O=V=>{delete d.value[V.index]};Dt("rootMenu",Ln({props:e,openedMenus:f,items:h,subMenus:d,activeIndex:c,isMenuPopup:v,addMenuItem:V=>{h.value[V.index]=V},removeMenuItem:V=>{delete h.value[V.index]},addSubMenu:L,removeSubMenu:O,openMenu:m,closeMenu:y,handleMenuItemClick:b,handleSubMenuClick:_})),Dt(`subMenu:${i.uid}`,{addSubMenu:L,removeSubMenu:O,mouseInChild:E,level:0})}return _t(()=>{e.mode==="horizontal"&&new S6(i.vnode.el,s.namespace.value)}),n({open:O=>{const{indexPath:N}=d.value[O];N.forEach(H=>m(H,N))},close:g,handleResize:A}),()=>{var L,O;let N=(O=(L=r.default)==null?void 0:L.call(r))!=null?O:[];const H=[];if(e.mode==="horizontal"&&o.value){const z=Dc(N),te=u.value===-1?z:z.slice(0,u.value),J=u.value===-1?[]:z.slice(u.value);J!=null&&J.length&&e.ellipsis&&(N=te,H.push(Te(jy,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Te(Nt,{class:l.e("icon-more")},{default:()=>Te(e.ellipsisIcon)}),default:()=>J})))}const V=GA(e,0),U=e.closeOnClickOutside?[[CA,()=>{f.value.length&&(E.value||(f.value.forEach(z=>t("close",z,S(z))),f.value=[]))}]]:[],F=qt(Te("ul",{key:String(e.collapse),role:"menubar",ref:o,style:V.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...N,...H]),U);return e.collapseTransition&&e.mode==="vertical"?Te(T6,()=>F):F}}});const D6=Je({index:{type:Be([String,null]),default:null},route:{type:Be([String,Object])},disabled:Boolean}),I6={click:e=>ze(e.index)&&Array.isArray(e.indexPath)},fv="ElMenuItem",O6=ie({name:fv,components:{ElTooltip:Hs},props:D6,emits:I6,setup(e,{emit:t}){const r=it(),n=Le("rootMenu"),i=Oe("menu"),a=Oe("menu-item");n||bi(fv,"can not inject root menu");const{parentMenu:o,indexPath:s}=WA(r,wn(e,"index")),l=Le(`subMenu:${o.value.uid}`);l||bi(fv,"can not inject sub menu");const u=k(()=>e.index===n.activeIndex),f=Ln({index:e.index,indexPath:s,active:u}),c=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",f))};return _t(()=>{l.addSubMenu(f),n.addMenuItem(f)}),tr(()=>{l.removeSubMenu(f),n.removeMenuItem(f)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:i,nsMenuItem:a,handleClick:c}}});function R6(e,t,r,n,i,a){const o=xr("el-tooltip");return G(),ce("li",{class:re([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?(G(),de(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:j(()=>[Ce(e.$slots,"title")]),default:j(()=>[ee("div",{class:re(e.nsMenu.be("tooltip","trigger"))},[Ce(e.$slots,"default")],2)]),_:3},8,["effect"])):(G(),ce(ft,{key:1},[Ce(e.$slots,"default"),Ce(e.$slots,"title")],64))],2)}var UA=Ke(O6,[["render",R6],["__file","menu-item.vue"]]);const k6={title:String},N6="ElMenuItemGroup",B6=ie({name:N6,props:k6,setup(){return{ns:Oe("menu-item-group")}}});function F6(e,t,r,n,i,a){return G(),ce("li",{class:re(e.ns.b())},[ee("div",{class:re(e.ns.e("title"))},[e.$slots.title?Ce(e.$slots,"title",{key:1}):(G(),ce(ft,{key:0},[mt(be(e.title),1)],64))],2),ee("ul",null,[Ce(e.$slots,"default")])],2)}var YA=Ke(B6,[["render",F6],["__file","menu-item-group.vue"]]);const $6=Yt(L6,{MenuItem:UA,MenuItemGroup:YA,SubMenu:jy}),H6=pa(UA);pa(YA);const z6=pa(jy),V6=Je({icon:{type:vr,default:()=>D3},title:String,content:{type:String,default:""}}),W6={back:()=>!0},G6=["aria-label"],U6=ie({name:"ElPageHeader"}),Y6=ie({...U6,props:V6,emits:W6,setup(e,{emit:t}){const r=Rs(),{t:n}=Fs(),i=Oe("page-header"),a=k(()=>[i.b(),{[i.m("has-breadcrumb")]:!!r.breadcrumb,[i.m("has-extra")]:!!r.extra,[i.is("contentful")]:!!r.default}]);function o(){t("back")}return(s,l)=>(G(),ce("div",{class:re(T(a))},[s.$slots.breadcrumb?(G(),ce("div",{key:0,class:re(T(i).e("breadcrumb"))},[Ce(s.$slots,"breadcrumb")],2)):Ae("v-if",!0),ee("div",{class:re(T(i).e("header"))},[ee("div",{class:re(T(i).e("left"))},[ee("div",{class:re(T(i).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(G(),ce("div",{key:0,"aria-label":s.title||T(n)("el.pageHeader.title"),class:re(T(i).e("icon"))},[Ce(s.$slots,"icon",{},()=>[s.icon?(G(),de(T(Nt),{key:0},{default:j(()=>[(G(),de(Vt(s.icon)))]),_:1})):Ae("v-if",!0)])],10,G6)):Ae("v-if",!0),ee("div",{class:re(T(i).e("title"))},[Ce(s.$slots,"title",{},()=>[mt(be(s.title||T(n)("el.pageHeader.title")),1)])],2)],2),Z(T(VA),{direction:"vertical"}),ee("div",{class:re(T(i).e("content"))},[Ce(s.$slots,"content",{},()=>[mt(be(s.content),1)])],2)],2),s.$slots.extra?(G(),ce("div",{key:0,class:re(T(i).e("extra"))},[Ce(s.$slots,"extra")],2)):Ae("v-if",!0)],2),s.$slots.default?(G(),ce("div",{key:1,class:re(T(i).e("main"))},[Ce(s.$slots,"default")],2)):Ae("v-if",!0)],2))}});var j6=Ke(Y6,[["__file","page-header.vue"]]);const q6=Yt(j6),K6=Je({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:pg,default:"primary"},cancelButtonType:{type:String,values:pg,default:"text"},icon:{type:vr,default:()=>$3},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:md.teleported,persistent:md.persistent,width:{type:[String,Number],default:150}}),X6={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Z6=ie({name:"ElPopconfirm"}),Q6=ie({...Z6,props:K6,emits:X6,setup(e,{emit:t}){const r=e,{t:n}=Fs(),i=Oe("popconfirm"),a=$(),o=()=>{var h,d;(d=(h=a.value)==null?void 0:h.onClose)==null||d.call(h)},s=k(()=>({width:Zn(r.width)})),l=h=>{t("confirm",h),o()},u=h=>{t("cancel",h),o()},f=k(()=>r.confirmButtonText||n("el.popconfirm.confirmButtonText")),c=k(()=>r.cancelButtonText||n("el.popconfirm.cancelButtonText"));return(h,d)=>(G(),de(T(Hs),ei({ref_key:"tooltipRef",ref:a,trigger:"click",effect:"light"},h.$attrs,{"popper-class":`${T(i).namespace.value}-popover`,"popper-style":T(s),teleported:h.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":h.hideAfter,persistent:h.persistent}),{content:j(()=>[ee("div",{class:re(T(i).b())},[ee("div",{class:re(T(i).e("main"))},[!h.hideIcon&&h.icon?(G(),de(T(Nt),{key:0,class:re(T(i).e("icon")),style:ct({color:h.iconColor})},{default:j(()=>[(G(),de(Vt(h.icon)))]),_:1},8,["class","style"])):Ae("v-if",!0),mt(" "+be(h.title),1)],2),ee("div",{class:re(T(i).e("action"))},[Z(T(yg),{size:"small",type:h.cancelButtonType==="text"?"":h.cancelButtonType,text:h.cancelButtonType==="text",onClick:u},{default:j(()=>[mt(be(T(c)),1)]),_:1},8,["type","text"]),Z(T(yg),{size:"small",type:h.confirmButtonType==="text"?"":h.confirmButtonType,text:h.confirmButtonType==="text",onClick:l},{default:j(()=>[mt(be(T(f)),1)]),_:1},8,["type","text"])],2)],2)]),default:j(()=>[h.$slots.reference?Ce(h.$slots,"reference",{key:0}):Ae("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var J6=Ke(Q6,[["__file","popconfirm.vue"]]);const eV=Yt(J6),tV=Je({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:j3},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:vr},activeActionIcon:{type:vr},activeIcon:{type:vr},inactiveIcon:{type:vr},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Be(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0}}),rV={[wi]:e=>zr(e)||ze(e)||Rt(e),[sg]:e=>zr(e)||ze(e)||Rt(e),[lg]:e=>zr(e)||ze(e)||Rt(e)},nV=["onClick"],iV=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],aV=["aria-hidden"],oV=["aria-hidden"],sV=["aria-hidden"],Ag="ElSwitch",lV=ie({name:Ag}),uV=ie({...lV,props:tV,emits:rV,setup(e,{expose:t,emit:r}){const n=e,i=it(),{formItem:a}=tf(),o=xi(),s=Oe("switch");(C=>{C.forEach(M=>{bu({from:M[0],replacement:M[1],scope:Ag,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},k(()=>{var A;return!!((A=i.vnode.props)!=null&&A[M[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=Vy(n,{formItemContext:a}),f=vh(k(()=>n.loading)),c=$(n.modelValue!==!1),h=$(),d=$(),v=k(()=>[s.b(),s.m(o.value),s.is("disabled",f.value),s.is("checked",_.value)]),p=k(()=>[s.e("label"),s.em("label","left"),s.is("active",!_.value)]),m=k(()=>[s.e("label"),s.em("label","right"),s.is("active",_.value)]),g=k(()=>({width:Zn(n.width)}));we(()=>n.modelValue,()=>{c.value=!0}),we(()=>n.value,()=>{c.value=!1});const y=k(()=>c.value?n.modelValue:n.value),_=k(()=>y.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(y.value)||(r(wi,n.inactiveValue),r(sg,n.inactiveValue),r(lg,n.inactiveValue)),we(_,C=>{var M;h.value.checked=C,n.validateEvent&&((M=a==null?void 0:a.validate)==null||M.call(a,"change").catch(A=>void 0))});const b=()=>{const C=_.value?n.inactiveValue:n.activeValue;r(wi,C),r(sg,C),r(lg,C),kt(()=>{h.value.checked=_.value})},x=()=>{if(f.value)return;const{beforeChange:C}=n;if(!C){b();return}const M=C();[Qc(M),zr(M)].includes(!0)||bi(Ag,"beforeChange must return type `Promise<boolean>` or `boolean`"),Qc(M)?M.then(P=>{P&&b()}).catch(P=>{}):M&&b()},w=k(()=>s.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),S=()=>{var C,M;(M=(C=h.value)==null?void 0:C.focus)==null||M.call(C)};return _t(()=>{h.value.checked=_.value}),t({focus:S,checked:_}),(C,M)=>(G(),ce("div",{class:re(T(v)),style:ct(T(w)),onClick:ua(x,["prevent"])},[ee("input",{id:T(u),ref_key:"input",ref:h,class:re(T(s).e("input")),type:"checkbox",role:"switch","aria-checked":T(_),"aria-disabled":T(f),"aria-label":C.label,name:C.name,"true-value":C.activeValue,"false-value":C.inactiveValue,disabled:T(f),tabindex:C.tabindex,onChange:b,onKeydown:iR(x,["enter"])},null,42,iV),!C.inlinePrompt&&(C.inactiveIcon||C.inactiveText)?(G(),ce("span",{key:0,class:re(T(p))},[C.inactiveIcon?(G(),de(T(Nt),{key:0},{default:j(()=>[(G(),de(Vt(C.inactiveIcon)))]),_:1})):Ae("v-if",!0),!C.inactiveIcon&&C.inactiveText?(G(),ce("span",{key:1,"aria-hidden":T(_)},be(C.inactiveText),9,aV)):Ae("v-if",!0)],2)):Ae("v-if",!0),ee("span",{ref_key:"core",ref:d,class:re(T(s).e("core")),style:ct(T(g))},[C.inlinePrompt?(G(),ce("div",{key:0,class:re(T(s).e("inner"))},[C.activeIcon||C.inactiveIcon?(G(),de(T(Nt),{key:0,class:re(T(s).is("icon"))},{default:j(()=>[(G(),de(Vt(T(_)?C.activeIcon:C.inactiveIcon)))]),_:1},8,["class"])):C.activeText||C.inactiveText?(G(),ce("span",{key:1,class:re(T(s).is("text")),"aria-hidden":!T(_)},be(T(_)?C.activeText:C.inactiveText),11,oV)):Ae("v-if",!0)],2)):Ae("v-if",!0),ee("div",{class:re(T(s).e("action"))},[C.loading?(G(),de(T(Nt),{key:0,class:re(T(s).is("loading"))},{default:j(()=>[Z(T(Ly))]),_:1},8,["class"])):T(_)?Ce(C.$slots,"active-action",{key:1},()=>[C.activeActionIcon?(G(),de(T(Nt),{key:0},{default:j(()=>[(G(),de(Vt(C.activeActionIcon)))]),_:1})):Ae("v-if",!0)]):T(_)?Ae("v-if",!0):Ce(C.$slots,"inactive-action",{key:2},()=>[C.inactiveActionIcon?(G(),de(T(Nt),{key:0},{default:j(()=>[(G(),de(Vt(C.inactiveActionIcon)))]),_:1})):Ae("v-if",!0)])],2)],6),!C.inlinePrompt&&(C.activeIcon||C.activeText)?(G(),ce("span",{key:1,class:re(T(m))},[C.activeIcon?(G(),de(T(Nt),{key:0},{default:j(()=>[(G(),de(Vt(C.activeIcon)))]),_:1})):Ae("v-if",!0),!C.activeIcon&&C.activeText?(G(),ce("span",{key:1,"aria-hidden":!T(_)},be(C.activeText),9,sV)):Ae("v-if",!0)],2)):Ae("v-if",!0)],14,nV))}});var fV=Ke(uV,[["__file","switch.vue"]]);const cV=Yt(fV),cv=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},dV=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"?yu(s,u):u(s,l,e))):(t!=="$key"&&qe(s)&&"$value"in s&&(s=s.$value),[qe(s)?yu(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,f=s.key.length;u<f;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)},jA=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},hV=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||bi("ElTable",`No column matching with column-key: ${t}`),r},L1=function(e,t,r){const n=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return n?jA(e,n[0]):null},Jt=(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)},eo=function(e,t){const r={};return(e||[]).forEach((n,i)=>{r[Jt(n,t)]={row:n,index:i}}),r};function vV(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(Ue(t,n)){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function qy(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function qA(e){return e===""||e!==void 0&&(e=qy(e),Number.isNaN(e)&&(e=80)),e}function pV(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function gV(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function zl(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,_e(t.children)&&t.children.forEach(l=>{zl(e,l,r??!a)})};return zr(r)?r&&!a?o("add"):!r&&a&&o("remove"):o(a?"remove":"add"),n}function mV(e,t,r="children",n="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function a(o,s,l){t(o,s,l),s.forEach(u=>{if(u[n]){t(u,null,l+1);return}const f=u[r];i(f)||a(u,f,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];i(s)||a(o,s,0)})}let Xr=null;function yV(e,t,r,n){if((Xr==null?void 0:Xr.trigger)===r)return;Xr==null||Xr();const i=n==null?void 0:n.refs.tableWrapper,a=i==null?void 0:i.dataset.prefix,o={strategy:"fixed",...e.popperOptions},s=Z(Hs,{content:t,virtualTriggering:!0,virtualRef:r,appendTo:i,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:o,onHide:()=>{Xr==null||Xr()}});s.appContext=n.appContext;const l=document.createElement("div");ld(s,l),s.component.exposed.onOpen();const u=i==null?void 0:i.querySelector(`.${a}-scrollbar__wrap`);Xr=()=>{ld(null,l),u==null||u.removeEventListener("scroll",Xr),Xr=null},Xr.trigger=r,u==null||u.addEventListener("scroll",Xr)}function KA(e){return e.children?v3(e.children,KA):[e]}function D1(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=KA(n[e]);i=o.slice(0,o.indexOf(l[0])).reduce(D1,0),a=i+l.reduce(D1,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}:{}},Ky=(e,t,r,n,i,a=0)=>{const o=[],{direction:s,start:l,after:u}=XA(t,r,n,i);if(s){const f=s==="left";o.push(`${e}-fixed-column--${s}`),f&&u+a===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!f&&l-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function I1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Xy=(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(I1,0):s.right=u.slice(o+1).reverse().reduce(I1,0),s},Ts=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function _V(e){const t=it(),r=$(!1),n=$([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const f=eo(n.value,u);n.value=l.reduce((c,h)=>{const d=Jt(h,u);return f[d]&&c.push(h),c},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{zl(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],f=e.rowKey.value,c=eo(u,f);n.value=l.reduce((h,d)=>{const v=c[d];return v&&h.push(v.row),h},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!eo(n.value,u)[Jt(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function bV(e){const t=it(),r=$(null),n=$(null),i=u=>{t.store.assertRowKey(),r.value=u,o(u)},a=()=>{r.value=null},o=u=>{const{data:f,rowKey:c}=e;let h=null;c.value&&(h=(T(f)||[]).find(d=>Jt(d,c.value)===u)),n.value=h,t.emit("current-change",n.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:a,setCurrentRowByKey:o,updateCurrentRow:u=>{const f=n.value;if(u&&u!==f){n.value=u,t.emit("current-change",n.value,f);return}!u&&f&&(n.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const u=e.rowKey.value,f=e.data.value||[],c=n.value;if(!f.includes(c)&&c){if(u){const h=Jt(c,u);o(h)}else n.value=null;n.value===null&&t.emit("current-change",null,c)}else r.value&&(o(r.value),a())},states:{_currentRowKey:r,currentRow:n}}}function wV(e){const t=$([]),r=$({}),n=$(16),i=$(!1),a=$({}),o=$("hasChildren"),s=$("children"),l=it(),u=k(()=>{if(!e.rowKey.value)return{};const g=e.data.value||[];return c(g)}),f=k(()=>{const g=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=Jt(w,g);x.children.push(S),w[o.value]&&!_[S]&&(_[S]={children:[]})}),_[b]=x}}),_}),c=g=>{const y=e.rowKey.value,_={};return mV(g,(b,x,w)=>{const S=Jt(b,y);Array.isArray(x)?_[S]={children:x.map(C=>Jt(C,y)),level:w}:i.value&&(_[S]={children:[],lazy:!0,level:w})},s.value,o.value),_},h=(g=!1,y=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const b=u.value,x=f.value,w=Object.keys(b),S={};if(w.length){const C=T(r),M=[],A=(E,L)=>{if(g)return t.value?y||t.value.includes(L):!!(y||E!=null&&E.expanded);{const O=y||t.value&&t.value.includes(L);return!!(E!=null&&E.expanded||O)}};w.forEach(E=>{const L=C[E],O={...b[E]};if(O.expanded=A(L,E),O.lazy){const{loaded:N=!1,loading:H=!1}=L||{};O.loaded=!!N,O.loading=!!H,M.push(E)}S[E]=O});const P=Object.keys(x);i.value&&P.length&&M.length&&P.forEach(E=>{const L=C[E],O=x[E].children;if(M.includes(E)){if(S[E].children.length!==0)throw new Error("[ElTable]children must be an empty array.");S[E].children=O}else{const{loaded:N=!1,loading:H=!1}=L||{};S[E]={lazy:!0,loaded:!!N,loading:!!H,expanded:A(L,E),children:O,level:""}}})}r.value=S,(_=l.store)==null||_.updateTableScrollY()};we(()=>t.value,()=>{h(!0)}),we(()=>u.value,()=>{h()}),we(()=>f.value,()=>{h()});const d=g=>{t.value=g,h()},v=(g,y)=>{l.store.assertRowKey();const _=e.rowKey.value,b=Jt(g,_),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",g,y),l.store.updateTableScrollY()}},p=g=>{l.store.assertRowKey();const y=e.rowKey.value,_=Jt(g,y),b=r.value[_];i.value&&b&&"loaded"in b&&!b.loaded?m(g,_,b):v(g,void 0)},m=(g,y,_)=>{const{load:b}=l.props;b&&!r.value[y].loaded&&(r.value[y].loading=!0,b(g,_,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",g,!0)}))};return{loadData:m,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:d,updateTreeData:h,normalize:c,states:{expandRowKeys:t,treeData:r,indent:n,lazy:i,lazyTreeNodeMap:a,lazyColumnIdentifier:o,childrenColumnName:s}}}const SV=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:dV(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},Fc=e=>{const t=[];return e.forEach(r=>{r.children&&r.children.length>0?t.push.apply(t,Fc(r.children)):t.push(r)}),t};function xV(){var e;const t=it(),{size:r}=Kd((e=t.proxy)==null?void 0:e.$props),n=$(null),i=$([]),a=$([]),o=$(!1),s=$([]),l=$([]),u=$([]),f=$([]),c=$([]),h=$([]),d=$([]),v=$([]),p=[],m=$(0),g=$(0),y=$(0),_=$(!1),b=$([]),x=$(!1),w=$(!1),S=$(null),C=$({}),M=$(null),A=$(null),P=$(null),E=$(null),L=$(null);we(i,()=>t.state&&V(!1),{deep:!0});const O=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},N=ve=>{var Pe;(Pe=ve.children)==null||Pe.forEach(We=>{We.fixed=ve.fixed,N(We)})},H=()=>{s.value.forEach(et=>{N(et)}),f.value=s.value.filter(et=>et.fixed===!0||et.fixed==="left"),c.value=s.value.filter(et=>et.fixed==="right"),f.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,f.value.unshift(s.value[0]));const ve=s.value.filter(et=>!et.fixed);l.value=[].concat(f.value).concat(ve).concat(c.value);const Pe=Fc(ve),We=Fc(f.value),Ge=Fc(c.value);m.value=Pe.length,g.value=We.length,y.value=Ge.length,u.value=[].concat(We).concat(Pe).concat(Ge),o.value=f.value.length>0||c.value.length>0},V=(ve,Pe=!1)=>{ve&&H(),Pe?t.state.doLayout():t.state.debouncedUpdateLayout()},U=ve=>b.value.includes(ve),F=()=>{_.value=!1,b.value.length&&(b.value=[],t.emit("selection-change",[]))},z=()=>{let ve;if(n.value){ve=[];const Pe=eo(b.value,n.value),We=eo(i.value,n.value);for(const Ge in Pe)Ue(Pe,Ge)&&!We[Ge]&&ve.push(Pe[Ge].row)}else ve=b.value.filter(Pe=>!i.value.includes(Pe));if(ve.length){const Pe=b.value.filter(We=>!ve.includes(We));b.value=Pe,t.emit("selection-change",Pe.slice())}},te=()=>(b.value||[]).slice(),J=(ve,Pe=void 0,We=!0)=>{if(zl(b.value,ve,Pe)){const et=(b.value||[]).slice();We&&t.emit("select",et,ve),t.emit("selection-change",et)}},me=()=>{var ve,Pe;const We=w.value?!_.value:!(_.value||b.value.length);_.value=We;let Ge=!1,et=0;const Ht=(Pe=(ve=t==null?void 0:t.store)==null?void 0:ve.states)==null?void 0:Pe.rowKey.value;i.value.forEach((pt,Kt)=>{const Yr=Kt+et;S.value?S.value.call(null,pt,Yr)&&zl(b.value,pt,We)&&(Ge=!0):zl(b.value,pt,We)&&(Ge=!0),et+=Ie(Jt(pt,Ht))}),Ge&&t.emit("selection-change",b.value?b.value.slice():[]),t.emit("select-all",b.value)},Se=()=>{const ve=eo(b.value,n.value);i.value.forEach(Pe=>{const We=Jt(Pe,n.value),Ge=ve[We];Ge&&(b.value[Ge.index]=Pe)})},$e=()=>{var ve,Pe,We;if(((ve=i.value)==null?void 0:ve.length)===0){_.value=!1;return}let Ge;n.value&&(Ge=eo(b.value,n.value));const et=function(Yr){return Ge?!!Ge[Jt(Yr,n.value)]:b.value.includes(Yr)};let Ht=!0,pt=0,Kt=0;for(let Yr=0,AD=(i.value||[]).length;Yr<AD;Yr++){const PD=(We=(Pe=t==null?void 0:t.store)==null?void 0:Pe.states)==null?void 0:We.rowKey.value,ED=Yr+Kt,Vh=i.value[Yr],LD=S.value&&S.value.call(null,Vh,ED);if(et(Vh))pt++;else if(!S.value||LD){Ht=!1;break}Kt+=Ie(Jt(Vh,PD))}pt===0&&(Ht=!1),_.value=Ht},Ie=ve=>{var Pe;if(!t||!t.store)return 0;const{treeData:We}=t.store.states;let Ge=0;const et=(Pe=We.value[ve])==null?void 0:Pe.children;return et&&(Ge+=et.length,et.forEach(Ht=>{Ge+=Ie(Ht)})),Ge},B=(ve,Pe)=>{Array.isArray(ve)||(ve=[ve]);const We={};return ve.forEach(Ge=>{C.value[Ge.id]=Pe,We[Ge.columnKey||Ge.id]=Pe}),We},Y=(ve,Pe,We)=>{A.value&&A.value!==ve&&(A.value.order=null),A.value=ve,P.value=Pe,E.value=We},K=()=>{let ve=T(a);Object.keys(C.value).forEach(Pe=>{const We=C.value[Pe];if(!We||We.length===0)return;const Ge=jA({columns:u.value},Pe);Ge&&Ge.filterMethod&&(ve=ve.filter(et=>We.some(Ht=>Ge.filterMethod.call(null,Ht,et,Ge))))}),M.value=ve},Q=()=>{i.value=SV(M.value,{sortingColumn:A.value,sortProp:P.value,sortOrder:E.value})},oe=(ve=void 0)=>{ve&&ve.filter||K(),Q()},pe=ve=>{const{tableHeaderRef:Pe}=t.refs;if(!Pe)return;const We=Object.assign({},Pe.filterPanels),Ge=Object.keys(We);if(Ge.length)if(typeof ve=="string"&&(ve=[ve]),Array.isArray(ve)){const et=ve.map(Ht=>hV({columns:u.value},Ht));Ge.forEach(Ht=>{const pt=et.find(Kt=>Kt.id===Ht);pt&&(pt.filteredValue=[])}),t.store.commit("filterChange",{column:et,values:[],silent:!0,multi:!0})}else Ge.forEach(et=>{const Ht=u.value.find(pt=>pt.id===et);Ht&&(Ht.filteredValue=[])}),C.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},D=()=>{A.value&&(Y(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:I,toggleRowExpansion:W,updateExpandRows:X,states:q,isRowExpanded:le}=_V({data:i,rowKey:n}),{updateTreeExpandKeys:fe,toggleTreeExpansion:ae,updateTreeData:se,loadOrToggle:ne,states:he}=wV({data:i,rowKey:n}),{updateCurrentRowData:Me,updateCurrentRow:xe,setCurrentRowKey:ke,states:Ve}=bV({data:i,rowKey:n});return{assertRowKey:O,updateColumns:H,scheduleLayout:V,isSelected:U,clearSelection:F,cleanSelection:z,getSelectionRows:te,toggleRowSelection:J,_toggleAllSelection:me,toggleAllSelection:null,updateSelectionByRowKey:Se,updateAllSelected:$e,updateFilters:B,updateCurrentRow:xe,updateSort:Y,execFilter:K,execSort:Q,execQuery:oe,clearFilter:pe,clearSort:D,toggleRowExpansion:W,setExpandRowKeysAdapter:ve=>{I(ve),fe(ve)},setCurrentRowKey:ke,toggleRowExpansionAdapter:(ve,Pe)=>{u.value.some(({type:Ge})=>Ge==="expand")?W(ve,Pe):ae(ve,Pe)},isRowExpanded:le,updateExpandRows:X,updateCurrentRowData:Me,loadOrToggle:ne,updateTreeData:se,states:{tableSize:r,rowKey:n,data:i,_data:a,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:f,rightFixedColumns:c,leafColumns:h,fixedLeafColumns:d,rightFixedLeafColumns:v,updateOrderFns:p,leafColumnsLength:m,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:y,isAllSelected:_,selection:b,reserveSelection:x,selectOnIndeterminate:w,selectable:S,filters:C,filteredData:M,sortingColumn:A,sortProp:P,sortOrder:E,hoverRow:L,...q,...he,...Ve}}}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 Eg(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&Eg(t.children)}),e.sort((t,r)=>t.no-r.no)}function CV(){const e=it(),t=xV();return{ns:Oe("table"),...t,mutations:{setData(o,s){const l=T(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),T(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 f=T(o._columns);let c=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),c=Pg(f,l)):(f.push(s),c=f),Eg(c),o._columns.value=c,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&&(Eg(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const f=T(o._columns)||[];if(l)l.children.splice(l.children.findIndex(h=>h.id===s.id),1),kt(()=>{var h;((h=l.children)==null?void 0:h.length)===0&&delete l.children}),o._columns.value=Pg(f,l);else{const h=f.indexOf(s);h>-1&&(f.splice(h,1),o._columns.value=f)}const c=o.updateOrderFns.indexOf(u);c>-1&&o.updateOrderFns.splice(c,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:f}=s;if(l){const c=T(o.columns).find(h=>h.property===l);c&&(c.order=u,e.store.updateSort(c,l,u),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:f}=o,c=T(l),h=T(u),d=T(f);d===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:c,prop:h,order:d}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:f}=s,c=e.store.updateFilters(l,u);e.store.execQuery(),f||e.emit("filter-change",c),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){kt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Vl={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 TV(e,t){if(!e)throw new Error("Table is required.");const r=CV();return r.toggleAllSelection=hd(r._toggleAllSelection,10),Object.keys(Vl).forEach(n=>{ZA(QA(t,n),n,r)}),MV(r,t),r}function MV(e,t){Object.keys(Vl).forEach(r=>{we(()=>QA(t,r),n=>{ZA(n,r,e)})})}function ZA(e,t,r){let n=e,i=Vl[t];typeof Vl[t]=="object"&&(i=i.key,n=n||Vl[t].default),r.states[i].value=n}function QA(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 AV{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=$(null),this.scrollX=$(!1),this.scrollY=$(!1),this.bodyWidth=$(null),this.fixedWidth=$(null),this.rightFixedWidth=$(null),this.gutterWidth=0;for(const r in t)Ue(t,r)&&(Pt(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(!At)return;const n=this.table.vnode.el;if(t=pV(t),this.height.value=Number(t),!n&&(t||t===0))return kt(()=>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(!At)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((h,d)=>h+Number(d.minWidth||80),0),f=l/u;let c=0;a.forEach((h,d)=>{if(d===0)return;const v=Math.floor(Number(h.minWidth||80)*f);c+=v,h.realWidth=Number(h.minWidth||80)+v}),a[0].realWidth=Number(a[0].minWidth||80)+l-c}}else this.scrollX.value=!0,a.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var i,a;switch(t){case"columns":(i=n.state)==null||i.onColumnsChange(this);break;case"scrollable":(a=n.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:PV}=Cs,EV=ie({name:"ElTableFilterPanel",components:{ElCheckbox:Cs,ElCheckboxGroup:PV,ElScrollbar:uA,ElTooltip:Hs,ElIcon:Nt,ArrowDown:EM,ArrowUp:E3},directives:{ClickOutside:CA},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=it(),{t:r}=Fs(),n=Oe("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const a=$(!1),o=$(null),s=k(()=>e.column&&e.column.filters),l=k(()=>e.column.filterClassName?`${n.b()} ${e.column.filterClassName}`:n.b()),u=k({get:()=>{var x;return(((x=e.column)==null?void 0:x.filteredValue)||[])[0]},set:x=>{f.value&&(typeof x<"u"&&x!==null?f.value.splice(0,1,x):f.value.splice(0,1))}}),f=k({get(){return e.column?e.column.filteredValue||[]:[]},set(x){e.column&&e.upDataColumn("filteredValue",x)}}),c=k(()=>e.column?e.column.filterMultiple:!0),h=x=>x.value===u.value,d=()=>{a.value=!1},v=x=>{x.stopPropagation(),a.value=!a.value},p=()=>{a.value=!1},m=()=>{_(f.value),d()},g=()=>{f.value=[],_(f.value),d()},y=x=>{u.value=x,_(typeof x<"u"&&x!==null?f.value:[]),d()},_=x=>{e.store.commit("filterChange",{column:e.column,values:x}),e.store.updateAllSelected()};we(a,x=>{e.column&&e.upDataColumn("filterOpened",x)},{immediate:!0});const b=k(()=>{var x,w;return(w=(x=o.value)==null?void 0:x.popperRef)==null?void 0:w.contentRef});return{tooltipVisible:a,multiple:c,filterClassName:l,filteredValue:f,filterValue:u,filters:s,handleConfirm:m,handleReset:g,handleSelect:y,isActive:h,t:r,ns:n,showFilterPanel:v,hideFilterPanel:p,popperPaneRef:b,tooltip:o}}}),LV={key:0},DV=["disabled"],IV=["label","onClick"];function OV(e,t,r,n,i,a){const o=xr("el-checkbox"),s=xr("el-checkbox-group"),l=xr("el-scrollbar"),u=xr("arrow-up"),f=xr("arrow-down"),c=xr("el-icon"),h=xr("el-tooltip"),d=fT("click-outside");return G(),de(h,{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.filterClassName,persistent:""},{content:j(()=>[e.multiple?(G(),ce("div",LV,[ee("div",{class:re(e.ns.e("content"))},[Z(l,{"wrap-class":e.ns.e("wrap")},{default:j(()=>[Z(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:re(e.ns.e("checkbox-group"))},{default:j(()=>[(G(!0),ce(ft,null,Hp(e.filters,v=>(G(),de(o,{key:v.value,label:v.value},{default:j(()=>[mt(be(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),ee("div",{class:re(e.ns.e("bottom"))},[ee("button",{class:re({[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))},be(e.t("el.table.confirmFilter")),11,DV),ee("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},be(e.t("el.table.resetFilter")),1)],2)])):(G(),ce("ul",{key:1,class:re(e.ns.e("list"))},[ee("li",{class:re([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))},be(e.t("el.table.clearFilter")),3),(G(!0),ce(ft,null,Hp(e.filters,v=>(G(),ce("li",{key:v.value,class:re([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},be(v.text),11,IV))),128))],2))]),default:j(()=>[qt((G(),ce("span",{class:re([`${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))},[Z(c,null,{default:j(()=>[e.column.filterOpened?(G(),de(u,{key:0})):(G(),de(f,{key:1}))]),_:1})],2)),[[d,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var RV=Ke(EV,[["render",OV],["__file","filter-panel.vue"]]);function JA(e){const t=it();eh(()=>{r.value.addObserver(t)}),_t(()=>{n(r.value),i(r.value)}),Uu(()=>{n(r.value),i(r.value)}),Os(()=>{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(f=>{u[f.id]=f});for(let f=0,c=s.length;f<c;f++){const h=s[f],d=h.getAttribute("name"),v=u[d];v&&h.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 f=0,c=l.length;f<c;f++)l[f].setAttribute("width",a.scrollY.value?a.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let f=0,c=u.length;f<c;f++){const h=u[f];h.style.width=a.scrollY.value?`${a.gutterWidth}px`:"0",h.style.display=a.scrollY.value?"":"none"}};return{tableLayout:r.value,onColumnsChange:n,onScrollableChange:i}}const ri=Symbol("ElTable");function kV(e,t){const r=it(),n=Le(ri),i=p=>{p.stopPropagation()},a=(p,m)=>{!m.filters&&m.sortable?v(p,m,!1):m.filterable&&!m.sortable&&i(p),n==null||n.emit("header-click",m,p)},o=(p,m)=>{n==null||n.emit("header-contextmenu",m,p)},s=$(null),l=$(!1),u=$({}),f=(p,m)=>{if(At&&!(m.children&&m.children.length>0)&&s.value&&e.border){l.value=!0;const g=n;t("set-drag-visible",!0);const _=(g==null?void 0:g.vnode.el).getBoundingClientRect().left,b=r.vnode.el.querySelector(`th.${m.id}`),x=b.getBoundingClientRect(),w=x.left-_+30;Za(b,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:x.right-_,startColumnLeft:x.left-_,tableLeft:_};const S=g==null?void 0:g.refs.resizeProxy;S.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const C=A=>{const P=A.clientX-u.value.startMouseLeft,E=u.value.startLeft+P;S.style.left=`${Math.max(w,E)}px`},M=()=>{if(l.value){const{startColumnLeft:A,startLeft:P}=u.value,L=Number.parseInt(S.style.left,10)-A;m.width=m.realWidth=L,g==null||g.emit("header-dragend",m.width,P-A,m,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(()=>{so(b,"noclick")},0)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",M)}},c=(p,m)=>{if(m.children&&m.children.length>0)return;const g=p.target;if(!mo(g))return;const y=g==null?void 0:g.closest("th");if(!(!m||!m.resizable)&&!l.value&&e.border){const _=y.getBoundingClientRect(),b=document.body.style;_.width>12&&_.right-p.pageX<8?(b.cursor="col-resize",oo(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=m):l.value||(b.cursor="",oo(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},h=()=>{At&&(document.body.style.cursor="")},d=({order:p,sortOrders:m})=>{if(p==="")return m[0];const g=m.indexOf(p||null);return m[g>m.length-2?0:g+1]},v=(p,m,g)=>{var y;p.stopPropagation();const _=m.order===g?null:g||d(m),b=(y=p.target)==null?void 0:y.closest("th");if(b&&oo(b,"noclick")){so(b,"noclick");return}if(!m.sortable)return;const x=e.store.states;let w=x.sortProp.value,S;const C=x.sortingColumn.value;(C!==m||C===m&&C.order===null)&&(C&&(C.order=null),x.sortingColumn.value=m,w=m.property),_?S=m.order=_:S=m.order=null,x.sortProp.value=w,x.sortOrder.value=S,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:o,handleMouseDown:f,handleMouseMove:c,handleMouseOut:h,handleSortClick:v,handleFilterClick:i}}function NV(e){const t=Le(ri),r=Oe("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,f)=>{var c;let h=(c=t==null?void 0:t.props.headerCellStyle)!=null?c:{};typeof h=="function"&&(h=h.call(null,{rowIndex:s,columnIndex:l,row:u,column:f}));const d=Xy(l,f.fixed,e.store,u);return Ts(d,"left"),Ts(d,"right"),Object.assign({},h,d)},getHeaderCellClass:(s,l,u,f)=>{const c=Ky(r.b(),l,f.fixed,e.store,u),h=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...c];f.children||h.push("is-leaf"),f.sortable&&h.push("is-sortable");const d=t==null?void 0:t.props.headerCellClassName;return typeof d=="string"?h.push(d):typeof d=="function"&&h.push(d.call(null,{rowIndex:s,columnIndex:l,row:u,column:f})),h.push(r.e("cell")),h.filter(v=>!!v).join(" ")}}}const e2=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,e2(r.children))):t.push(r)}),t},BV=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 e2(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 FV(e){const t=Le(ri),r=k(()=>BV(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 $V=ie({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=it(),n=Le(ri),i=Oe("table"),a=$({}),{onColumnsChange:o,onScrollableChange:s}=JA(n);_t(async()=>{await kt(),await kt();const{prop:w,order:S}=e.defaultSort;n==null||n.store.commit("sort",{prop:w,order:S,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:c,handleMouseOut:h,handleSortClick:d,handleFilterClick:v}=kV(e,t),{getHeaderRowStyle:p,getHeaderRowClass:m,getHeaderCellStyle:g,getHeaderCellClass:y}=NV(e),{isGroup:_,toggleAllSelection:b,columnRows:x}=FV(e);return r.state={onColumnsChange:o,onScrollableChange:s},r.filterPanels=a,{ns:i,filterPanels:a,onColumnsChange:o,onScrollableChange:s,columnRows:x,getHeaderRowClass:m,getHeaderRowStyle:p,getHeaderCellClass:y,getHeaderCellStyle:g,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:c,handleMouseOut:h,handleSortClick:d,handleFilterClick:v,isGroup:_,toggleAllSelection:b}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:n,getHeaderCellClass:i,getHeaderRowClass:a,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:f,handleSortClick:c,handleMouseOut:h,store:d,$parent:v}=this;let p=1;return Te("thead",{class:{[e.is("group")]:t}},r.map((m,g)=>Te("tr",{class:a(g),key:g,style:o(g)},m.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),Te("th",{class:i(g,_,m,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:n(g,_,m,y),onClick:b=>s(b,y),onContextmenu:b=>l(b,y),onMousedown:b=>u(b,y),onMousemove:b=>f(b,y),onMouseout:h},[Te("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:_,store:d,_self:v}):y.label,y.sortable&&Te("span",{onClick:b=>c(b,y),class:"caret-wrapper"},[Te("i",{onClick:b=>c(b,y,"ascending"),class:"sort-caret ascending"}),Te("i",{onClick:b=>c(b,y,"descending"),class:"sort-caret descending"})]),y.filterable&&Te(RV,{store:d,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(b,x)=>{y[b]=x}})])]))))))}});function HV(e){const t=Le(ri),r=$(""),n=$(Te("div")),i=(d,v,p)=>{var m;const g=t,y=cv(d);let _;const b=(m=g==null?void 0:g.vnode.el)==null?void 0:m.dataset.prefix;y&&(_=L1({columns:e.store.states.columns.value},y,b),_&&(g==null||g.emit(`cell-${p}`,v,_,y,d))),g==null||g.emit(`row-${p}`,v,_,d)},a=(d,v)=>{i(d,v,"dblclick")},o=(d,v)=>{e.store.commit("setCurrentRow",v),i(d,v,"click")},s=(d,v)=>{i(d,v,"contextmenu")},l=hd(d=>{e.store.commit("setHoverRow",d)},30),u=hd(()=>{e.store.commit("setHoverRow",null)},30),f=d=>{const v=window.getComputedStyle(d,null),p=Number.parseInt(v.paddingLeft,10)||0,m=Number.parseInt(v.paddingRight,10)||0,g=Number.parseInt(v.paddingTop,10)||0,y=Number.parseInt(v.paddingBottom,10)||0;return{left:p,right:m,top:g,bottom:y}};return{handleDoubleClick:a,handleClick:o,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(d,v,p)=>{var m;const g=t,y=cv(d),_=(m=g==null?void 0:g.vnode.el)==null?void 0:m.dataset.prefix;if(y){const H=L1({columns:e.store.states.columns.value},y,_),V=g.hoverState={cell:y,column:H,row:v};g==null||g.emit("cell-mouse-enter",V.row,V.column,V.cell,d)}if(!p)return;const b=d.target.querySelector(".cell");if(!(oo(b,`${_}-tooltip`)&&b.childNodes.length))return;const x=document.createRange();x.setStart(b,0),x.setEnd(b,b.childNodes.length);let w=x.getBoundingClientRect().width,S=x.getBoundingClientRect().height;w-Math.floor(w)<.001&&(w=Math.floor(w)),S-Math.floor(S)<.001&&(S=Math.floor(S));const{top:A,left:P,right:E,bottom:L}=f(b),O=P+E,N=A+L;(w+O>b.offsetWidth||S+N>b.offsetHeight||b.scrollWidth>b.offsetWidth)&&yV(p,y.innerText||y.textContent,y,g)},handleCellMouseLeave:d=>{if(!cv(d))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,d)},tooltipContent:r,tooltipTrigger:n}}function zV(e){const t=Le(ri),r=Oe("table");return{getRowStyle:(u,f)=>{const c=t==null?void 0:t.props.rowStyle;return typeof c=="function"?c.call(null,{row:u,rowIndex:f}):c||null},getRowClass:(u,f)=>{const c=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&c.push("current-row"),e.stripe&&f%2===1&&c.push(r.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return typeof h=="string"?c.push(h):typeof h=="function"&&c.push(h.call(null,{row:u,rowIndex:f})),c},getCellStyle:(u,f,c,h)=>{const d=t==null?void 0:t.props.cellStyle;let v=d??{};typeof d=="function"&&(v=d.call(null,{rowIndex:u,columnIndex:f,row:c,column:h}));const p=Xy(f,e==null?void 0:e.fixed,e.store);return Ts(p,"left"),Ts(p,"right"),Object.assign({},v,p)},getCellClass:(u,f,c,h,d)=>{const v=Ky(r.b(),f,e==null?void 0:e.fixed,e.store,void 0,d),p=[h.id,h.align,h.className,...v],m=t==null?void 0:t.props.cellClassName;return typeof m=="string"?p.push(m):typeof m=="function"&&p.push(m.call(null,{rowIndex:u,columnIndex:f,row:c,column:h})),p.push(r.e("cell")),p.filter(g=>!!g).join(" ")},getSpan:(u,f,c,h)=>{let d=1,v=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const m=p({row:u,column:f,rowIndex:c,columnIndex:h});Array.isArray(m)?(d=m[0],v=m[1]):typeof m=="object"&&(d=m.rowspan,v=m.colspan)}return{rowspan:d,colspan:v}},getColspanRealWidth:(u,f,c)=>{if(f<1)return u[c].realWidth;const h=u.map(({realWidth:d,width:v})=>d||v).slice(c,c+f);return Number(h.reduce((d,v)=>Number(d)+Number(v),-1))}}}function VV(e){const t=Le(ri),r=Oe("table"),{handleDoubleClick:n,handleClick:i,handleContextMenu:a,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:f,tooltipTrigger:c}=HV(e),{getRowStyle:h,getRowClass:d,getCellStyle:v,getCellClass:p,getSpan:m,getColspanRealWidth:g}=zV(e),y=k(()=>e.store.states.columns.value.findIndex(({type:S})=>S==="default")),_=(S,C)=>{const M=t.props.rowKey;return M?Jt(S,M):C},b=(S,C,M,A=!1)=>{const{tooltipEffect:P,tooltipOptions:E,store:L}=e,{indent:O,columns:N}=L.states,H=d(S,C);let V=!0;return M&&(H.push(r.em("row",`level-${M.level}`)),V=M.display),Te("tr",{style:[V?null:{display:"none"},h(S,C)],class:H,key:_(S,C),onDblclick:F=>n(F,S),onClick:F=>i(F,S),onContextmenu:F=>a(F,S),onMouseenter:()=>o(C),onMouseleave:s},N.value.map((F,z)=>{const{rowspan:te,colspan:J}=m(S,F,C,z);if(!te||!J)return null;const me=Object.assign({},F);me.realWidth=g(N.value,J,z);const Se={store:e.store,_self:e.context||t,column:me,row:S,$index:C,cellIndex:z,expanded:A};z===y.value&&M&&(Se.treeNode={indent:M.level*O.value,level:M.level},typeof M.expanded=="boolean"&&(Se.treeNode.expanded=M.expanded,"loading"in M&&(Se.treeNode.loading=M.loading),"noLazyChildren"in M&&(Se.treeNode.noLazyChildren=M.noLazyChildren)));const $e=`${C},${z}`,Ie=me.columnKey||me.rawColumnKey||"",B=x(z,F,Se),Y=F.showOverflowTooltip&&m3({effect:P},E,F.showOverflowTooltip);return Te("td",{style:v(C,z,S,F),class:p(C,z,S,F,J-1),key:`${Ie}${$e}`,rowspan:te,colspan:J,onMouseenter:K=>l(K,S,Y),onMouseleave:u},[B])}))},x=(S,C,M)=>C.renderCell(M);return{wrappedRowRender:(S,C)=>{const M=e.store,{isRowExpanded:A,assertRowKey:P}=M,{treeData:E,lazyTreeNodeMap:L,childrenColumnName:O,rowKey:N}=M.states,H=M.states.columns.value;if(H.some(({type:U})=>U==="expand")){const U=A(S),F=b(S,C,void 0,U),z=t.renderExpanded;return U?z?[[F,Te("tr",{key:`expanded-row__${F.key}`},[Te("td",{colspan:H.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[z({row:S,$index:C,store:M,expanded:U})])])]]:(console.error("[Element Error]renderExpanded is required."),F):[[F]]}else if(Object.keys(E.value).length){P();const U=Jt(S,N.value);let F=E.value[U],z=null;F&&(z={expanded:F.expanded,level:F.level,display:!0},typeof F.lazy=="boolean"&&(typeof F.loaded=="boolean"&&F.loaded&&(z.noLazyChildren=!(F.children&&F.children.length)),z.loading=F.loading));const te=[b(S,C,z)];if(F){let J=0;const me=($e,Ie)=>{$e&&$e.length&&Ie&&$e.forEach(B=>{const Y={display:Ie.display&&Ie.expanded,level:Ie.level+1,expanded:!1,noLazyChildren:!1,loading:!1},K=Jt(B,N.value);if(K==null)throw new Error("For nested data item, row-key is required.");if(F={...E.value[K]},F&&(Y.expanded=F.expanded,F.level=F.level||Y.level,F.display=!!(F.expanded&&Y.display),typeof F.lazy=="boolean"&&(typeof F.loaded=="boolean"&&F.loaded&&(Y.noLazyChildren=!(F.children&&F.children.length)),Y.loading=F.loading)),J++,te.push(b(B,C+J,Y)),F){const Q=L.value[K]||B[O.value];me(Q,F)}})};F.display=!0;const Se=L.value[U]||S[O.value];me(Se,F)}return te}else return b(S,C,void 0)},tooltipContent:f,tooltipTrigger:c}}const WV={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 GV=ie({name:"ElTableBody",props:WV,setup(e){const t=it(),r=Le(ri),n=Oe("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}=VV(e),{onColumnsChange:s,onScrollableChange:l}=JA(r);return we(e.store.states.hoverRow,(u,f)=>{!e.store.states.isComplex.value||!At||q3(()=>{const c=t==null?void 0:t.vnode.el,h=Array.from((c==null?void 0:c.children)||[]).filter(p=>p==null?void 0:p.classList.contains(`${n.e("row")}`)),d=h[f],v=h[u];d&&so(d,"hover-row"),v&&Za(v,"hover-row")})}),Os(()=>{var u;(u=Xr)==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 Te("tbody",{tabIndex:-1},[r.reduce((n,i)=>n.concat(e(i,n.length)),[])])}});function UV(){const e=Le(ri),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 YV(e){const{columns:t}=UV(),r=Oe("table");return{getCellClasses:(a,o)=>{const s=a[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...Ky(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=Xy(o,a.fixed,e.store);return Ts(s,"left"),Ts(s,"right"),s},columns:t}}var jV=ie({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}=YV(e);return{ns:Oe("table"),getCellClasses:t,getCellStyles:r,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:n,sumText:i}=this,a=this.store.states.data.value;let o=[];return n?o=n({columns:e,data:a}):e.forEach((s,l)=>{if(l===0){o[l]=i;return}const u=a.map(d=>Number(d[s.property])),f=[];let c=!0;u.forEach(d=>{if(!Number.isNaN(+d)){c=!1;const v=`${d}`.split(".")[1];f.push(v?v.length:0)}});const h=Math.max.apply(null,f);c?o[l]="":o[l]=u.reduce((d,v)=>{const p=Number(v);return Number.isNaN(+p)?d:Number.parseFloat((d+v).toFixed(Math.min(h,20)))},0)}),Te(Te("tfoot",[Te("tr",{},[...e.map((s,l)=>Te("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:r(e,l),style:t(s,l)},[Te("div",{class:["cell",s.labelClassName]},[o[l]])]))])]))}});function qV(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,c)=>{e.toggleRowSelection(f,c,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,c)=>{e.toggleRowExpansionAdapter(f,c)},clearSort:()=>{e.clearSort()},sort:(f,c)=>{e.commit("sort",{prop:f,order:c})}}}function KV(e,t,r,n){const i=$(!1),a=$(null),o=$(!1),s=F=>{o.value=F},l=$({width:null,height:null,headerHeight:null}),u=$(!1),f={display:"inline-block",verticalAlign:"middle"},c=$(),h=$(0),d=$(0),v=$(0),p=$(0),m=$(0);na(()=>{t.setHeight(e.height)}),na(()=>{t.setMaxHeight(e.maxHeight)}),we(()=>[e.currentRowKey,r.states.rowKey],([F,z])=>{!T(z)||!T(F)||r.setCurrentRowKey(`${F}`)},{immediate:!0}),we(()=>e.data,F=>{n.store.commit("setData",F)},{immediate:!0,deep:!0}),na(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},y=(F,z)=>{const{pixelX:te,pixelY:J}=z;Math.abs(te)>=Math.abs(J)&&(n.refs.bodyWrapper.scrollLeft+=z.pixelX/5)},_=k(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),b=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{_.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(M)};_t(async()=>{await kt(),r.updateColumns(),A(),requestAnimationFrame(x);const F=n.vnode.el,z=n.refs.headerWrapper;e.flexible&&F&&F.parentElement&&(F.parentElement.style.minWidth="0"),l.value={width:c.value=F.offsetWidth,height:F.offsetHeight,headerHeight:e.showHeader&&z?z.offsetHeight:null},r.states.columns.value.forEach(te=>{te.filteredValue&&te.filteredValue.length&&n.store.commit("filterChange",{column:te,values:te.filteredValue,silent:!0})}),n.$ready=!0});const w=(F,z)=>{if(!F)return;const te=Array.from(F.classList).filter(J=>!J.startsWith("is-scrolling-"));te.push(t.scrollX.value?z:"is-scrolling-none"),F.className=te.join(" ")},S=F=>{const{tableWrapper:z}=n.refs;w(z,F)},C=F=>{const{tableWrapper:z}=n.refs;return!!(z&&z.classList.contains(F))},M=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const Ie="is-scrolling-none";C(Ie)||S(Ie);return}const F=n.refs.scrollBarRef.wrapRef;if(!F)return;const{scrollLeft:z,offsetWidth:te,scrollWidth:J}=F,{headerWrapper:me,footerWrapper:Se}=n.refs;me&&(me.scrollLeft=z),Se&&(Se.scrollLeft=z);const $e=J-te-1;z>=$e?S("is-scrolling-right"):S(z===0?"is-scrolling-left":"is-scrolling-middle")},A=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&xn(n.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),e.fit?ps(n.vnode.el,P):xn(window,"resize",P),ps(n.refs.bodyWrapper,()=>{var F,z;P(),(z=(F=n.refs)==null?void 0:F.scrollBarRef)==null||z.update()}))},P=()=>{var F,z,te,J;const me=n.vnode.el;if(!n.$ready||!me)return;let Se=!1;const{width:$e,height:Ie,headerHeight:B}=l.value,Y=c.value=me.offsetWidth;$e!==Y&&(Se=!0);const K=me.offsetHeight;(e.height||_.value)&&Ie!==K&&(Se=!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)!==B&&(Se=!0),h.value=((z=n.refs.tableWrapper)==null?void 0:z.scrollHeight)||0,v.value=(Q==null?void 0:Q.scrollHeight)||0,p.value=((te=n.refs.footerWrapper)==null?void 0:te.offsetHeight)||0,m.value=((J=n.refs.appendWrapper)==null?void 0:J.offsetHeight)||0,d.value=h.value-v.value-p.value-m.value,Se&&(l.value={width:Y,height:K,headerHeight:e.showHeader&&(Q==null?void 0:Q.offsetHeight)||0},x())},E=xi(),L=k(()=>{const{bodyWidth:F,scrollY:z,gutterWidth:te}=t;return F.value?`${F.value-(z.value?te:0)}px`:""}),O=k(()=>e.maxHeight?"fixed":e.tableLayout),N=k(()=>{if(e.data&&e.data.length)return null;let F="100%";e.height&&d.value&&(F=`${d.value}px`);const z=c.value;return{width:z?`${z}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`}:{}),V=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`}:{maxHeight:`${e.maxHeight-v.value-p.value}px`}:{});return{isHidden:i,renderExpanded:a,setDragVisible:s,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:y,tableSize:E,emptyBlockStyle:N,handleFixedMousewheel:(F,z)=>{const te=n.refs.bodyWrapper;if(Math.abs(z.spinY)>0){const J=te.scrollTop;z.pixelY<0&&J!==0&&F.preventDefault(),z.pixelY>0&&te.scrollHeight-te.clientHeight>J&&F.preventDefault(),te.scrollTop+=Math.ceil(z.pixelY/5)}else te.scrollLeft+=Math.ceil(z.pixelX/5)},resizeProxyVisible:o,bodyWidth:L,resizeState:l,doLayout:x,tableBodyStyles:b,tableLayout:O,scrollbarViewStyle:f,tableInnerStyle:H,scrollbarStyle:V}}function XV(e){const t=$(),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)};_t(()=>{r()}),Os(()=>{var n;(n=t.value)==null||n.disconnect()})}var ZV={data:{type:Array,default:()=>[]},size:dh,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,showOverflowTooltip:[Boolean,Object]};function t2(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 Te("colgroup",{},r.map(i=>Te("col",n(i))))}t2.props=["columns","tableLayout"];const QV=()=>{const e=$(),t=(a,o)=>{const s=e.value;s&&s.scrollTo(a,o)},r=(a,o)=>{const s=e.value;s&&Rt(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 JV=1;const eW=ie({name:"ElTable",directives:{Mousewheel:d8},components:{TableHeader:$V,TableBody:GV,TableFooter:jV,ElScrollbar:uA,hColgroup:t2},props:ZV,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}=Fs(),r=Oe("table"),n=it();Dt(ri,n);const i=TV(n,e);n.store=i;const a=new AV({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:f,clearFilter:c,toggleAllSelection:h,toggleRowExpansion:d,clearSort:v,sort:p}=qV(i),{isHidden:m,renderExpanded:g,setDragVisible:y,isGroup:_,handleMouseLeave:b,handleHeaderFooterMousewheel:x,tableSize:w,emptyBlockStyle:S,handleFixedMousewheel:C,resizeProxyVisible:M,bodyWidth:A,resizeState:P,doLayout:E,tableBodyStyles:L,tableLayout:O,scrollbarViewStyle:N,tableInnerStyle:H,scrollbarStyle:V}=KV(e,a,i,n),{scrollBarRef:U,scrollTo:F,setScrollLeft:z,setScrollTop:te}=QV(),J=hd(E,50),me=`${r.namespace.value}-table_${JV++}`;n.tableId=me,n.state={isGroup:_,resizeState:P,doLayout:E,debouncedUpdateLayout:J};const Se=k(()=>e.sumText||t("el.table.sumText")),$e=k(()=>e.emptyText||t("el.table.emptyText"));return XV(n),{ns:r,layout:a,store:i,handleHeaderFooterMousewheel:x,handleMouseLeave:b,tableId:me,tableSize:w,isHidden:m,isEmpty:o,renderExpanded:g,resizeProxyVisible:M,resizeState:P,isGroup:_,bodyWidth:A,tableBodyStyles:L,emptyBlockStyle:S,debouncedUpdateLayout:J,handleFixedMousewheel:C,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:f,clearFilter:c,toggleAllSelection:h,toggleRowExpansion:d,clearSort:v,doLayout:E,sort:p,t,setDragVisible:y,context:n,computedSumText:Se,computedEmptyText:$e,tableLayout:O,scrollbarViewStyle:N,tableInnerStyle:H,scrollbarStyle:V,scrollBarRef:U,scrollTo:F,setScrollLeft:z,setScrollTop:te}}}),tW=["data-prefix"],rW={ref:"hiddenColumns",class:"hidden-columns"};function nW(e,t,r,n,i,a){const o=xr("hColgroup"),s=xr("table-header"),l=xr("table-body"),u=xr("table-footer"),f=xr("el-scrollbar"),c=fT("mousewheel");return G(),ce("div",{ref:"tableWrapper",class:re([{[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:ct(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[ee("div",{class:re(e.ns.e("inner-wrapper")),style:ct(e.tableInnerStyle)},[ee("div",rW,[Ce(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?qt((G(),ce("div",{key:0,ref:"headerWrapper",class:re(e.ns.e("header-wrapper"))},[ee("table",{ref:"tableHeader",class:re(e.ns.e("header")),style:ct(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Z(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Z(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[c,e.handleHeaderFooterMousewheel]]):Ae("v-if",!0),ee("div",{ref:"bodyWrapper",class:re(e.ns.e("body-wrapper"))},[Z(f,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:j(()=>[ee("table",{ref:"tableBody",class:re(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:ct({width:e.bodyWidth,tableLayout:e.tableLayout})},[Z(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(G(),de(s,{key:0,ref:"tableHeaderRef",class:re(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):Ae("v-if",!0),Z(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"]),e.showSummary&&e.tableLayout==="auto"?(G(),de(u,{key:1,class:re(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):Ae("v-if",!0)],6),e.isEmpty?(G(),ce("div",{key:0,ref:"emptyBlock",style:ct(e.emptyBlockStyle),class:re(e.ns.e("empty-block"))},[ee("span",{class:re(e.ns.e("empty-text"))},[Ce(e.$slots,"empty",{},()=>[mt(be(e.computedEmptyText),1)])],2)],6)):Ae("v-if",!0),e.$slots.append?(G(),ce("div",{key:1,ref:"appendWrapper",class:re(e.ns.e("append-wrapper"))},[Ce(e.$slots,"append")],2)):Ae("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?qt((G(),ce("div",{key:1,ref:"footerWrapper",class:re(e.ns.e("footer-wrapper"))},[ee("table",{class:re(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:ct(e.tableBodyStyles)},[Z(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Z(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Kn,!e.isEmpty],[c,e.handleHeaderFooterMousewheel]]):Ae("v-if",!0),e.border||e.isGroup?(G(),ce("div",{key:2,class:re(e.ns.e("border-left-patch"))},null,2)):Ae("v-if",!0)],6),qt(ee("div",{ref:"resizeProxy",class:re(e.ns.e("column-resize-proxy"))},null,2),[[Kn,e.resizeProxyVisible]])],46,tW)}var iW=Ke(eW,[["render",nW],["__file","table.vue"]]);const aW={selection:"table-column--selection",expand:"table__expand-column"},oW={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:""}},sW=e=>aW[e]||"",lW={selection:{renderHeader({store:e,column:t}){function r(){return e.states.data.value&&e.states.data.value.length===0}return Te(Cs,{disabled:r(),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,ariaLabel:t.label})},renderCell({row:e,column:t,store:r,$index:n}){return Te(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),ariaLabel:t.label})},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)),Te("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")),Te("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Te(Nt,null,{default:()=>[Te(Ey)]})]})},sortable:!1,resizable:!1}};function uW({row:e,column:t,$index:r}){var n;const i=t.property,a=i&&Ec(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 fW({row:e,treeNode:t,store:r},n=!1){const{ns:i}=r;if(!t)return n?[Te("span",{class:i.e("placeholder")})]:null;const a=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&a.push(Te("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=Ey;t.loading&&(l=Ly),a.push(Te("div",{class:s,onClick:o},{default:()=>[Te(Nt,{class:{[i.is("loading")]:t.loading}},{default:()=>[Te(l)]})]}))}else a.push(Te("span",{class:i.e("placeholder")}));return a}function O1(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function cW(e,t){const r=it();return{registerComplexWatchers:()=>{const a=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=O1(a,o);Object.keys(s).forEach(l=>{const u=o[l];Ue(t,u)&&we(()=>t[u],f=>{let c=f;u==="width"&&l==="realWidth"&&(c=qy(f)),u==="minWidth"&&l==="realMinWidth"&&(c=qA(f)),r.columnConfig.value[u]=c,r.columnConfig.value[l]=c;const h=u==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=O1(a,o);Object.keys(s).forEach(l=>{const u=o[l];Ue(t,u)&&we(()=>t[u],f=>{r.columnConfig.value[l]=f})})}}}function dW(e,t,r){const n=it(),i=$(""),a=$(!1),o=$(),s=$(),l=Oe("table");na(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),na(()=>{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}),f=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}),c=$(qy(e.width)),h=$(qA(e.minWidth)),d=b=>(c.value&&(b.width=c.value),h.value&&(b.minWidth=h.value),!c.value&&h.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=lW[x]||{};Object.keys(w).forEach(C=>{const M=w[C];C!=="className"&&M!==void 0&&(b[C]=M)});const S=sW(x);if(S){const C=`${T(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:d,setColumnForcedProps:v,setColumnRenders:b=>{e.renderHeader||b.type!=="selection"&&(b.renderHeader=w=>(n.columnConfig.value.label,Ce(t,"header",w,()=>[b.label])));let x=b.renderCell;return b.type==="expand"?(b.renderCell=w=>Te("div",{class:"cell"},[x(w)]),r.value.renderExpanded=w=>t.default?t.default(w):t.default):(x=x||uW,b.renderCell=w=>{let S=null;if(t.default){const L=t.default(w);S=L.some(O=>O.type!==Mr)?L:x(w)}else S=x(w);const{columns:C}=r.value.store.states,M=C.value.findIndex(L=>L.type==="default"),A=f.value&&w.cellIndex===M,P=fW(w,A),E={class:"cell",style:{}};return b.showOverflowTooltip&&(E.class=`${E.class} ${T(l.namespace)}-tooltip`,E.style={width:`${(w.column.realWidth||Number(w.column.width))-1}px`}),p(S),Te("div",E,[P,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 hW={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:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let vW=1;var r2=ie({name:"ElTableColumn",components:{ElCheckbox:Cs},props:hW,setup(e,{slots:t}){const r=it(),n=$({}),i=k(()=>{let _=r.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:a,registerComplexWatchers:o}=cW(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:f,setColumnWidth:c,setColumnForcedProps:h,setColumnRenders:d,getPropsData:v,getColumnElIndex:p,realAlign:m,updateColumnOrder:g}=dW(e,t,i),y=f.value;s.value=`${y.tableId||y.columnId}_column_${vW++}`,eh(()=>{l.value=i.value!==y;const _=e.type||"default",b=e.sortable===""?!0:e.sortable,x=ys(e.showOverflowTooltip)?y.props.showOverflowTooltip:e.showOverflowTooltip,w={...oW[_],id:s.value,type:_,property:e.prop||e.property,align:m,headerAlign:u,showOverflowTooltip:x,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",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","filterClassName"]);P=vV(w,P),P=gV(d,c,h)(P),n.value=P,a(),o()}),_t(()=>{var _;const b=f.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,g)}),tr(()=>{i.value.store.commit("removeColumn",n.value,l.value?y.columnConfig.value:null,g)}),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===ft&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!ze(s==null?void 0:s.children)&&i.push(s)});return Te("div",i)}catch{return Te("div",[])}}});const pW=Yt(iW,{TableColumn:r2}),gW=pa(r2),mW=Je({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Bs,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),yW=ie({name:"ElText"}),_W=ie({...yW,props:mW,setup(e){const t=e,r=xi(),n=Oe("text"),i=k(()=>[n.b(),n.m(t.type),n.m(r.value),n.is("truncated",t.truncated),n.is("line-clamp",!ys(t.lineClamp))]);return(a,o)=>(G(),de(Vt(a.tag),{class:re(T(i)),style:ct({"-webkit-line-clamp":a.lineClamp})},{default:j(()=>[Ce(a.$slots,"default")]),_:3},8,["class","style"]))}});var bW=Ke(_W,[["__file","text.vue"]]);const wW=Yt(bW),n2=["success","info","warning","error"],wr=ja({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:At?document.body:void 0}),SW=Je({customClass:{type:String,default:wr.customClass},center:{type:Boolean,default:wr.center},dangerouslyUseHTMLString:{type:Boolean,default:wr.dangerouslyUseHTMLString},duration:{type:Number,default:wr.duration},icon:{type:vr,default:wr.icon},id:{type:String,default:wr.id},message:{type:Be([String,Object,Function]),default:wr.message},onClose:{type:Be(Function),required:!1},showClose:{type:Boolean,default:wr.showClose},type:{type:String,values:n2,default:wr.type},offset:{type:Number,default:wr.offset},zIndex:{type:Number,default:wr.zIndex},grouping:{type:Boolean,default:wr.grouping},repeatNum:{type:Number,default:wr.repeatNum}}),xW={destroy:()=>!0},Cn=Qm([]),CW=e=>{const t=Cn.findIndex(i=>i.id===e),r=Cn[t];let n;return t>0&&(n=Cn[t-1]),{current:r,prev:n}},TW=e=>{const{prev:t}=CW(e);return t?t.vm.exposed.bottom.value:0},MW=(e,t)=>Cn.findIndex(n=>n.id===e)>0?20:t,AW=["id"],PW=["innerHTML"],EW=ie({name:"ElMessage"}),LW=ie({...EW,props:SW,emits:xW,setup(e,{expose:t}){const r=e,{Close:n}=G3,{ns:i,zIndex:a}=m4("message"),{currentZIndex:o,nextZIndex:s}=a,l=$(),u=$(!1),f=$(0);let c;const h=k(()=>r.type?r.type==="error"?"danger":r.type:"info"),d=k(()=>{const S=r.type;return{[i.bm("icon",S)]:S&&Wb[S]}}),v=k(()=>r.icon||Wb[r.type]||""),p=k(()=>TW(r.id)),m=k(()=>MW(r.id,r.offset)+p.value),g=k(()=>f.value+m.value),y=k(()=>({top:`${m.value}px`,zIndex:o.value}));function _(){r.duration!==0&&({stop:c}=hu(()=>{x()},r.duration))}function b(){c==null||c()}function x(){u.value=!1}function w({code:S}){S===hr.esc&&x()}return _t(()=>{_(),s(),u.value=!0}),we(()=>r.repeatNum,()=>{b(),_()}),xn(document,"keydown",w),ps(l,()=>{f.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:g,close:x}),(S,C)=>(G(),de(ti,{name:T(i).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:C[0]||(C[0]=M=>S.$emit("destroy")),persisted:""},{default:j(()=>[qt(ee("div",{id:S.id,ref_key:"messageRef",ref:l,class:re([T(i).b(),{[T(i).m(S.type)]:S.type},T(i).is("center",S.center),T(i).is("closable",S.showClose),S.customClass]),style:ct(T(y)),role:"alert",onMouseenter:b,onMouseleave:_},[S.repeatNum>1?(G(),de(T(Nz),{key:0,value:S.repeatNum,type:T(h),class:re(T(i).e("badge"))},null,8,["value","type","class"])):Ae("v-if",!0),T(v)?(G(),de(T(Nt),{key:1,class:re([T(i).e("icon"),T(d)])},{default:j(()=>[(G(),de(Vt(T(v))))]),_:1},8,["class"])):Ae("v-if",!0),Ce(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(G(),ce(ft,{key:1},[Ae(" Caution here, message could've been compromised, never use user's input as message "),ee("p",{class:re(T(i).e("content")),innerHTML:S.message},null,10,PW)],2112)):(G(),ce("p",{key:0,class:re(T(i).e("content"))},be(S.message),3))]),S.showClose?(G(),de(T(Nt),{key:2,class:re(T(i).e("closeBtn")),onClick:ua(x,["stop"])},{default:j(()=>[Z(T(n))]),_:1},8,["class","onClick"])):Ae("v-if",!0)],46,AW),[[Kn,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var DW=Ke(LW,[["__file","message.vue"]]);let IW=1;const i2=e=>{const t=!e||ze(e)||la(e)||De(e)?{message:e}:e,r={...wr,...t};if(!r.appendTo)r.appendTo=document.body;else if(ze(r.appendTo)){let n=document.querySelector(r.appendTo);mo(n)||(n=document.body),r.appendTo=n}return r},OW=e=>{const t=Cn.indexOf(e);if(t===-1)return;Cn.splice(t,1);const{handler:r}=e;r.close()},RW=({appendTo:e,...t},r)=>{const n=`message_${IW++}`,i=t.onClose,a=document.createElement("div"),o={...t,id:n,onClose:()=>{i==null||i(),OW(f)},onDestroy:()=>{ld(null,a)}},s=Z(DW,o,De(o.message)||la(o.message)?{default:De(o.message)?o.message:()=>o.message}:null);s.appContext=r||Ms._context,ld(s,a),e.appendChild(a.firstElementChild);const l=s.component,f={id:n,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return f},Ms=(e={},t)=>{if(!At)return{close:()=>{}};if(Rt(i1.max)&&Cn.length>=i1.max)return{close:()=>{}};const r=i2(e);if(r.grouping&&Cn.length){const i=Cn.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=RW(r,t);return Cn.push(n),n.handler};n2.forEach(e=>{Ms[e]=(t={},r)=>{const n=i2(t);return Ms({...n,type:e},r)}});function kW(e){for(const t of Cn)(!e||e===t.props.type)&&t.handler.close()}Ms.closeAll=kW;Ms._context=null;const Wl=U3(Ms,"$message"),NW={id:"app"},BW={class:"grid-content header-color"},FW={class:"header-content"},$W=ee("div",{class:"brand"},[ee("a",{href:"#"},"frp")],-1),HW={class:"dark-switch"},zW=ee("span",null,"Proxies",-1),VW={id:"content"},WW=ee("footer",null,null,-1),GW=ie({__name:"App",setup(e){const t=XR(),r=$(t),n=mR(t),i=a=>{a==""&&window.open("https://github.com/fatedier/frp")};return(a,o)=>{const s=cV,l=H6,u=z6,f=$6,c=$A,h=xr("router-view"),d=FA;return G(),ce("div",NW,[ee("header",BW,[ee("div",FW,[$W,ee("div",HW,[Z(s,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=v=>r.value=v),"inline-prompt":"","active-text":"Dark","inactive-text":"Light",onChange:T(n),style:{"--el-switch-on-color":"#444452","--el-switch-off-color":"#589ef8"}},null,8,["modelValue","onChange"])])])]),ee("section",null,[Z(d,null,{default:j(()=>[Z(c,{id:"side-nav",xs:24,md:4},{default:j(()=>[Z(f,{"default-active":"/",mode:"vertical",theme:"light",router:"false",onSelect:i},{default:j(()=>[Z(l,{index:"/"},{default:j(()=>[mt("Overview")]),_:1}),Z(u,{index:"/proxies"},{title:j(()=>[zW]),default:j(()=>[Z(l,{index:"/proxies/tcp"},{default:j(()=>[mt("TCP")]),_:1}),Z(l,{index:"/proxies/udp"},{default:j(()=>[mt("UDP")]),_:1}),Z(l,{index:"/proxies/http"},{default:j(()=>[mt("HTTP")]),_:1}),Z(l,{index:"/proxies/https"},{default:j(()=>[mt("HTTPS")]),_:1}),Z(l,{index:"/proxies/stcp"},{default:j(()=>[mt("STCP")]),_:1}),Z(l,{index:"/proxies/sudp"},{default:j(()=>[mt("SUDP")]),_:1})]),_:1}),Z(l,{index:""},{default:j(()=>[mt("Help")]),_:1})]),_:1})]),_:1}),Z(c,{xs:24,md:20},{default:j(()=>[ee("div",VW,[Z(h)])]),_:1})]),_:1})]),WW])}}});/*!
+*/const c8=function(e,t){if(e&&e.addEventListener){const r=function(n){const i=f8(n);t&&Reflect.apply(t,this,[n,i])};e.addEventListener("wheel",r,{passive:!0})}},d8={beforeMount(e,t){c8(e,t.value)}},IA={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},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:dh,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},OA={[wi]:e=>ze(e)||kt(e)||zr(e),change:e=>ze(e)||kt(e)||zr(e)},Ws=Symbol("checkboxGroupContextKey"),h8=({model:e,isChecked:t})=>{const r=Le(Ws,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!bs(s)&&e.value.length>=s&&!t.value||!bs(l)&&e.value.length<=l&&t.value});return{isDisabled:vh(k(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},v8=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:i,isLabeledByFormItem:a})=>{const o=Le(Ws,void 0),{formItem:s}=tf(),{emit:l}=it();function u(v){var p,m;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(m=e.falseLabel)!=null?m:!1}function f(v,p){l("change",u(v),p)}function c(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function h(v){r.value||!n.value&&!i.value&&a.value&&(v.composedPath().some(g=>g.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Nt(),f(t.value,v)))}const d=k(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return be(()=>e.modelValue,()=>{d.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:c,onClickRoot:h}},p8=e=>{const t=$(!1),{emit:r}=it(),n=Le(Ws,void 0),i=k(()=>bs(n)===!1),a=$(!1),o=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&&_e(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)&&s.length>o.value.length,a.value===!1&&((u=n==null?void 0:n.changeEvent)==null||u.call(n,s))):(r(wi,s),t.value=s)}});return{model:o,isGroup:i,isLimitExceeded:a}},g8=(e,t,{model:r})=>{const n=Le(Ws,void 0),i=$(!1),a=k(()=>{const u=r.value;return zr(u)?u:_e(u)?qe(e.label)?u.map(Qe).some(f=>p3(f,e.label)):u.map(Qe).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=xi(k(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=xi(k(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=k(()=>!!t.default||!_s(e.label));return{checkboxButtonSize:o,isChecked:a,isFocused:i,checkboxSize:s,hasOwnLabel:l}},m8=(e,{model:t})=>{function r(){_e(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},RA=(e,t)=>{const{formItem:r}=tf(),{model:n,isGroup:i,isLimitExceeded:a}=p8(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f}=g8(e,t,{model:n}),{isDisabled:c}=h8({model:n,isChecked:s}),{inputId:h,isLabeledByFormItem:d}=Vy(e,{formItemContext:r,disableIdGeneration:f,disableIdManagement:i}),{handleChange:v,onClickRoot:p}=v8(e,{model:n,isLimitExceeded:a,hasOwnLabel:f,isDisabled:c,isLabeledByFormItem:d});return m8(e,{model:n}),{inputId:h,isLabeledByFormItem:d,isChecked:s,isDisabled:c,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f,model:n,handleChange:v,onClickRoot:p}},y8=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],_8=["id","indeterminate","disabled","value","name","tabindex"],b8=ie({name:"ElCheckbox"}),w8=ie({...b8,props:IA,emits:OA,setup(e){const t=e,r=Ns(),{inputId:n,isLabeledByFormItem:i,isChecked:a,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:f,handleChange:c,onClickRoot:h}=RA(t,r),d=Oe("checkbox"),v=k(()=>[d.b(),d.m(l.value),d.is("disabled",o.value),d.is("bordered",t.border),d.is("checked",a.value)]),p=k(()=>[d.e("input"),d.is("disabled",o.value),d.is("checked",a.value),d.is("indeterminate",t.indeterminate),d.is("focus",s.value)]);return(m,g)=>(G(),ve(Vt(!T(u)&&T(i)?"span":"label"),{class:re(T(v)),"aria-controls":m.indeterminate?m.controls:null,onClick:T(h)},{default:q(()=>[te("span",{class:re(T(p))},[m.trueLabel||m.falseLabel?qt((G(),ce("input",{key:0,id:T(n),"onUpdate:modelValue":g[0]||(g[0]=y=>Pt(f)?f.value=y:null),class:re(T(d).e("original")),type:"checkbox",indeterminate:m.indeterminate,name:m.name,tabindex:m.tabindex,disabled:T(o),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:g[1]||(g[1]=(...y)=>T(c)&&T(c)(...y)),onFocus:g[2]||(g[2]=y=>s.value=!0),onBlur:g[3]||(g[3]=y=>s.value=!1),onClick:g[4]||(g[4]=ua(()=>{},["stop"]))},null,42,y8)),[[sd,T(f)]]):qt((G(),ce("input",{key:1,id:T(n),"onUpdate:modelValue":g[5]||(g[5]=y=>Pt(f)?f.value=y:null),class:re(T(d).e("original")),type:"checkbox",indeterminate:m.indeterminate,disabled:T(o),value:m.label,name:m.name,tabindex:m.tabindex,onChange:g[6]||(g[6]=(...y)=>T(c)&&T(c)(...y)),onFocus:g[7]||(g[7]=y=>s.value=!0),onBlur:g[8]||(g[8]=y=>s.value=!1),onClick:g[9]||(g[9]=ua(()=>{},["stop"]))},null,42,_8)),[[sd,T(f)]]),te("span",{class:re(T(d).e("inner"))},null,2)],2),T(u)?(G(),ce("span",{key:0,class:re(T(d).e("label"))},[Ce(m.$slots,"default"),m.$slots.default?Ae("v-if",!0):(G(),ce(ft,{key:0},[pt(xe(m.label),1)],64))],2)):Ae("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var S8=Ke(w8,[["__file","checkbox.vue"]]);const x8=["name","tabindex","disabled","true-value","false-value"],C8=["name","tabindex","disabled","value"],T8=ie({name:"ElCheckboxButton"}),M8=ie({...T8,props:IA,emits:OA,setup(e){const t=e,r=Ns(),{isFocused:n,isChecked:i,isDisabled:a,checkboxButtonSize:o,model:s,handleChange:l}=RA(t,r),u=Le(Ws,void 0),f=Oe("checkbox"),c=k(()=>{var d,v,p,m;const g=(v=(d=u==null?void 0:u.fill)==null?void 0:d.value)!=null?v:"";return{backgroundColor:g,borderColor:g,color:(m=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?m:"",boxShadow:g?`-1px 0 0 0 ${g}`:void 0}}),h=k(()=>[f.b("button"),f.bm("button",o.value),f.is("disabled",a.value),f.is("checked",i.value),f.is("focus",n.value)]);return(d,v)=>(G(),ce("label",{class:re(T(h))},[d.trueLabel||d.falseLabel?qt((G(),ce("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>Pt(s)?s.value=p:null),class:re(T(f).be("button","original")),type:"checkbox",name:d.name,tabindex:d.tabindex,disabled:T(a),"true-value":d.trueLabel,"false-value":d.falseLabel,onChange:v[1]||(v[1]=(...p)=>T(l)&&T(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1),onClick:v[4]||(v[4]=ua(()=>{},["stop"]))},null,42,x8)),[[sd,T(s)]]):qt((G(),ce("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=p=>Pt(s)?s.value=p:null),class:re(T(f).be("button","original")),type:"checkbox",name:d.name,tabindex:d.tabindex,disabled:T(a),value:d.label,onChange:v[6]||(v[6]=(...p)=>T(l)&&T(l)(...p)),onFocus:v[7]||(v[7]=p=>n.value=!0),onBlur:v[8]||(v[8]=p=>n.value=!1),onClick:v[9]||(v[9]=ua(()=>{},["stop"]))},null,42,C8)),[[sd,T(s)]]),d.$slots.default||d.label?(G(),ce("span",{key:2,class:re(T(f).be("button","inner")),style:ct(T(i)?T(c):void 0)},[Ce(d.$slots,"default",{},()=>[pt(xe(d.label),1)])],6)):Ae("v-if",!0)],2))}});var kA=Ke(M8,[["__file","checkbox-button.vue"]]);const A8=Je({modelValue:{type:Be(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:dh,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),P8={[wi]:e=>_e(e),change:e=>_e(e)},E8=ie({name:"ElCheckboxGroup"}),L8=ie({...E8,props:A8,emits:P8,setup(e,{emit:t}){const r=e,n=Oe("checkbox"),{formItem:i}=tf(),{inputId:a,isLabeledByFormItem:o}=Vy(r,{formItemContext:i}),s=async u=>{t(wi,u),await Nt(),t("change",u)},l=k({get(){return r.modelValue},set(u){s(u)}});return Dt(Ws,{...b3(Kd(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),be(()=>r.modelValue,()=>{r.validateEvent&&(i==null||i.validate("change").catch(u=>void 0))}),(u,f)=>{var c;return G(),ve(Vt(u.tag),{id:T(a),class:re(T(n).b("group")),role:"group","aria-label":T(o)?void 0:u.label||"checkbox-group","aria-labelledby":T(o)?(c=T(i))==null?void 0:c.labelId:void 0},{default:q(()=>[Ce(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var NA=Ke(L8,[["__file","checkbox-group.vue"]]);const Ms=Yt(S8,{CheckboxButton:kA,CheckboxGroup:NA});pa(kA);pa(NA);const D8=Je({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:$s,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),I8={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},O8=ie({name:"ElTag"}),R8=ie({...O8,props:D8,emits:I8,setup(e,{emit:t}){const r=e,n=xi(),i=Oe("tag"),a=k(()=>{const{type:l,hit:u,effect:f,closable:c,round:h}=r;return[i.b(),i.is("closable",c),i.m(l),i.m(n.value),i.m(f),i.is("hit",u),i.is("round",h)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(G(),ce("span",{key:0,class:re(T(a)),style:ct({backgroundColor:l.color}),onClick:s},[te("span",{class:re(T(i).e("content"))},[Ce(l.$slots,"default")],2),l.closable?(G(),ve(T(Bt),{key:0,class:re(T(i).e("close")),onClick:ua(o,["stop"])},{default:q(()=>[Z(T(vd))]),_:1},8,["class","onClick"])):Ae("v-if",!0)],6)):(G(),ve(ti,{key:1,name:`${T(i).namespace.value}-zoom-in-center`,appear:""},{default:q(()=>[te("span",{class:re(T(a)),style:ct({backgroundColor:l.color}),onClick:s},[te("span",{class:re(T(i).e("content"))},[Ce(l.$slots,"default")],2),l.closable?(G(),ve(T(Bt),{key:0,class:re(T(i).e("close")),onClick:ua(o,["stop"])},{default:q(()=>[Z(T(vd))]),_:1},8,["class","onClick"])):Ae("v-if",!0)],6)]),_:3},8,["name"]))}});var k8=Ke(R8,[["__file","tag.vue"]]);const N8=Yt(k8),BA=Symbol("rowContextKey"),B8=["start","center","end","space-around","space-between","space-evenly"],F8=["top","middle","bottom"],$8=Je({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:B8,default:"start"},align:{type:String,values:F8}}),H8=ie({name:"ElRow"}),z8=ie({...H8,props:$8,setup(e){const t=e,r=Oe("row"),n=k(()=>t.gutter);Dt(BA,{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)]);return(o,s)=>(G(),ve(Vt(o.tag),{class:re(T(a)),style:ct(T(i))},{default:q(()=>[Ce(o.$slots,"default")]),_:3},8,["class","style"]))}});var V8=Ke(z8,[["__file","row.vue"]]);const FA=Yt(V8),W8=Je({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:Be([Number,Object]),default:()=>ja({})},sm:{type:Be([Number,Object]),default:()=>ja({})},md:{type:Be([Number,Object]),default:()=>ja({})},lg:{type:Be([Number,Object]),default:()=>ja({})},xl:{type:Be([Number,Object]),default:()=>ja({})}}),G8=ie({name:"ElCol"}),U8=ie({...G8,props:W8,setup(e){const t=e,{gutter:r}=Le(BA,{gutter:k(()=>0)}),n=Oe("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 f=t[u];kt(f)&&(u==="span"?o.push(n.b(`${t[u]}`)):f>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{kt(t[u])?o.push(n.b(`${u}-${t[u]}`)):qe(t[u])&&Object.entries(t[u]).forEach(([f,c])=>{o.push(f!=="span"?n.b(`${u}-${f}-${c}`):n.b(`${u}-${c}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(G(),ve(Vt(o.tag),{class:re(T(a)),style:ct(T(i))},{default:q(()=>[Ce(o.$slots,"default")]),_:3},8,["class","style"]))}});var Y8=Ke(U8,[["__file","col.vue"]]);const $A=Yt(Y8),j8=ie({name:"ElCollapseTransition"}),q8=ie({...j8,setup(e){const t=Oe("collapse-transition"),r=i=>{i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom},n={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.height&&(i.dataset.elExistsHeight=i.style.height),i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0},enter(i){requestAnimationFrame(()=>{i.dataset.oldOverflow=i.style.overflow,i.dataset.elExistsHeight?i.style.maxHeight=i.dataset.elExistsHeight:i.scrollHeight!==0?i.style.maxHeight=`${i.scrollHeight}px`:i.style.maxHeight=0,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom,i.style.overflow="hidden"})},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},enterCancelled(i){r(i)},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.maxHeight=`${i.scrollHeight}px`,i.style.overflow="hidden"},leave(i){i.scrollHeight!==0&&(i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0)},afterLeave(i){r(i)},leaveCancelled(i){r(i)}};return(i,a)=>(G(),ve(ti,ei({name:T(t).b()},YI(n)),{default:q(()=>[Ce(i.$slots,"default")]),_:3},16,["name"]))}});var Bc=Ke(q8,[["__file","collapse-transition.vue"]]);Bc.install=e=>{e.component(Bc.name,Bc)};const K8=Bc,X8=Je({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Be([String,Array,Object])},zIndex:{type:Be([String,Number])}}),Z8={click:e=>e instanceof MouseEvent},Q8="overlay";var J8=ie({name:"ElOverlay",props:X8,emits:Z8,setup(e,{slots:t,emit:r}){const n=Oe(Q8),i=l=>{r("click",l)},{onClick:a,onMousedown:o,onMouseup:s}=XM(e.customMaskEvent?void 0:i);return()=>e.mask?Z("div",{class:[n.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:a,onMousedown:o,onMouseup:s},[Ce(t,"default")],Lc.STYLE|Lc.CLASS|Lc.PROPS,["onClick","onMouseup","onMousedown"]):Te("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ce(t,"default")])}});const e6=J8,HA=Symbol("dialogInjectionKey"),zA=Je({center:Boolean,alignCenter:Boolean,closeIcon:{type:vr},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),t6={close:()=>!0},r6=["aria-level"],n6=["aria-label"],i6=["id"],a6=ie({name:"ElDialogContent"}),o6=ie({...a6,props:zA,emits:t6,setup(e){const t=e,{t:r}=Hs(),{Close:n}=W3,{dialogRef:i,headerRef:a,bodyId:o,ns:s,style:l}=Le(HA),{focusTrapRef:u}=Le(pA),f=k(()=>[s.b(),s.is("fullscreen",t.fullscreen),s.is("draggable",t.draggable),s.is("align-center",t.alignCenter),{[s.m("center")]:t.center},t.customClass]),c=Y3(u,i),h=k(()=>t.draggable);return K3(i,a,h),(d,v)=>(G(),ce("div",{ref:T(c),class:re(T(f)),style:ct(T(l)),tabindex:"-1"},[te("header",{ref_key:"headerRef",ref:a,class:re(T(s).e("header"))},[Ce(d.$slots,"header",{},()=>[te("span",{role:"heading","aria-level":d.ariaLevel,class:re(T(s).e("title"))},xe(d.title),11,r6)]),d.showClose?(G(),ce("button",{key:0,"aria-label":T(r)("el.dialog.close"),class:re(T(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=p=>d.$emit("close"))},[Z(T(Bt),{class:re(T(s).e("close"))},{default:q(()=>[(G(),ve(Vt(d.closeIcon||T(n))))]),_:1},8,["class"])],10,n6)):Ae("v-if",!0)],2),te("div",{id:T(o),class:re(T(s).e("body"))},[Ce(d.$slots,"default")],10,i6),d.$slots.footer?(G(),ce("footer",{key:0,class:re(T(s).e("footer"))},[Ce(d.$slots,"footer")],2)):Ae("v-if",!0)],6))}});var s6=Ke(o6,[["__file","dialog-content.vue"]]);const l6=Je({...zA,appendToBody:Boolean,appendTo:{type:Be(String),default:"body"},beforeClose:{type:Be(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),u6={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[wi]:e=>zr(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},f6=(e,t)=>{var r;const i=it().emit,{nextZIndex:a}=zy();let o="";const s=xu(),l=xu(),u=$(!1),f=$(!1),c=$(!1),h=$((r=e.zIndex)!=null?r:a());let d,v;const p=hh("namespace",Bl),m=k(()=>{const N={},H=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(N[`${H}-margin-top`]=e.top),e.width&&(N[`${H}-width`]=Zn(e.width))),N}),g=k(()=>e.alignCenter?{display:"flex"}:{});function y(){i("opened")}function _(){i("closed"),i(wi,!1),e.destroyOnClose&&(c.value=!1)}function b(){i("close")}function x(){v==null||v(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=hu(()=>M(),e.openDelay):M()}function w(){d==null||d(),v==null||v(),e.closeDelay&&e.closeDelay>0?{stop:v}=hu(()=>A(),e.closeDelay):A()}function S(){function N(H){H||(f.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(N):w()}function C(){e.closeOnClickModal&&S()}function M(){At&&(u.value=!0)}function A(){u.value=!1}function P(){i("openAutoFocus")}function E(){i("closeAutoFocus")}function L(N){var H;((H=N.detail)==null?void 0:H.focusReason)==="pointer"&&N.preventDefault()}e.lockScroll&&t5(u);function O(){e.closeOnPressEscape&&S()}return be(()=>e.modelValue,N=>{N?(f.value=!1,x(),c.value=!0,h.value=MM(e.zIndex)?a():h.value++,Nt(()=>{i("open"),t.value&&(t.value.scrollTop=0)})):u.value&&w()}),be(()=>e.fullscreen,N=>{t.value&&(N?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),_t(()=>{e.modelValue&&(u.value=!0,c.value=!0,x())}),{afterEnter:y,afterLeave:_,beforeLeave:b,handleClose:S,onModalClick:C,close:w,doClose:A,onOpenAutoFocus:P,onCloseAutoFocus:E,onCloseRequested:O,onFocusoutPrevented:L,titleId:s,bodyId:l,closed:f,style:m,overlayDialogStyle:g,rendered:c,visible:u,zIndex:h}},c6=["aria-label","aria-labelledby","aria-describedby"],d6=ie({name:"ElDialog",inheritAttrs:!1}),h6=ie({...d6,props:l6,emits:u6,setup(e,{expose:t}){const r=e,n=Ns();bu({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},k(()=>!!n.title)),bu({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},k(()=>!!r.customClass));const i=Oe("dialog"),a=$(),o=$(),s=$(),{visible:l,titleId:u,bodyId:f,style:c,overlayDialogStyle:h,rendered:d,zIndex:v,afterEnter:p,afterLeave:m,beforeLeave:g,handleClose:y,onModalClick:_,onOpenAutoFocus:b,onCloseAutoFocus:x,onCloseRequested:w,onFocusoutPrevented:S}=f6(r,a);Dt(HA,{dialogRef:a,headerRef:o,bodyId:f,ns:i,rendered:d,style:c});const C=XM(_),M=k(()=>r.draggable&&!r.fullscreen);return t({visible:l,dialogContentRef:s}),(A,P)=>(G(),ve(MT,{to:A.appendTo,disabled:A.appendTo!=="body"?!1:!A.appendToBody},[Z(ti,{name:"dialog-fade",onAfterEnter:T(p),onAfterLeave:T(m),onBeforeLeave:T(g),persisted:""},{default:q(()=>[qt(Z(T(e6),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":T(v)},{default:q(()=>[te("div",{role:"dialog","aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:T(u),"aria-describedby":T(f),class:re(`${T(i).namespace.value}-overlay-dialog`),style:ct(T(h)),onClick:P[0]||(P[0]=(...E)=>T(C).onClick&&T(C).onClick(...E)),onMousedown:P[1]||(P[1]=(...E)=>T(C).onMousedown&&T(C).onMousedown(...E)),onMouseup:P[2]||(P[2]=(...E)=>T(C).onMouseup&&T(C).onMouseup(...E))},[Z(T(mA),{loop:"",trapped:T(l),"focus-start-el":"container",onFocusAfterTrapped:T(b),onFocusAfterReleased:T(x),onFocusoutPrevented:T(S),onReleaseRequested:T(w)},{default:q(()=>[T(d)?(G(),ve(s6,ei({key:0,ref_key:"dialogContentRef",ref:s},A.$attrs,{"custom-class":A.customClass,center:A.center,"align-center":A.alignCenter,"close-icon":A.closeIcon,draggable:T(M),fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,"aria-level":A.headerAriaLevel,onClose:T(y)}),UI({header:q(()=>[A.$slots.title?Ce(A.$slots,"title",{key:1}):Ce(A.$slots,"header",{key:0,close:T(y),titleId:T(u),titleClass:T(i).e("title")})]),default:q(()=>[Ce(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:q(()=>[Ce(A.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):Ae("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,c6)]),_:3},8,["mask","overlay-class","z-index"]),[[Kn,T(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var v6=Ke(h6,[["__file","dialog.vue"]]);const p6=Yt(v6),g6=Je({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Be(String),default:"solid"}}),m6=ie({name:"ElDivider"}),y6=ie({...m6,props:g6,setup(e){const t=e,r=Oe("divider"),n=k(()=>r.cssVar({"border-style":t.borderStyle}));return(i,a)=>(G(),ce("div",{class:re([T(r).b(),T(r).m(i.direction)]),style:ct(T(n)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(G(),ce("div",{key:0,class:re([T(r).e("text"),T(r).is(i.contentPosition)])},[Ce(i.$slots,"default")],2)):Ae("v-if",!0)],6))}});var _6=Ke(y6,[["__file","divider.vue"]]);const VA=Yt(_6);let b6=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 hr.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case hr.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case hr.tab:{Ac(t,"mouseleave");break}case hr.enter:case hr.space:{i=!0,n.currentTarget.click();break}}return i&&(n.preventDefault(),n.stopPropagation()),!1})})}},w6=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 b6(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case hr.down:{Ac(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case hr.up:{Ac(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case hr.tab:{Ac(t.currentTarget,"mouseleave");break}case hr.enter:case hr.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},S6=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 w6(n,t)})}};const x6=ie({name:"ElMenuCollapseTransition",setup(){const e=Oe("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Za(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){so(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),oo(r,e.m("collapse"))?(so(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Za(r,e.m("collapse"))):(Za(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),so(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Za(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function C6(e,t,r,n,i,a){return G(),ve(ti,ei({mode:"out-in"},e.listeners),{default:q(()=>[Ce(e.$slots,"default")]),_:3},16)}var T6=Ke(x6,[["render",C6],["__file","menu-collapse-transition.vue"]]);function WA(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 M6(e){return k(()=>{const r=e.backgroundColor;return r?new SA(r).shade(20).toString():""})}const GA=(e,t)=>{const r=Oe("menu");return k(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":M6(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},A6=Je({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:vr},expandOpenIcon:{type:vr},collapseCloseIcon:{type:vr},collapseOpenIcon:{type:vr}}),Of="ElSubMenu";var jy=ie({name:Of,props:A6,setup(e,{slots:t,expose:r}){bu({from:"popper-append-to-body",replacement:"teleported",scope:Of,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},k(()=>e.popperAppendToBody!==void 0));const n=it(),{indexPath:i,parentMenu:a}=WA(n,k(()=>e.index)),o=Oe("menu"),s=Oe("sub-menu"),l=Le("rootMenu");l||bi(Of,"can not inject root menu");const u=Le(`subMenu:${a.value.uid}`);u||bi(Of,"can not inject sub menu");const f=$({}),c=$({});let h;const d=$(!1),v=$(),p=$(null),m=k(()=>C.value==="horizontal"&&y.value?"bottom-start":"right-start"),g=k(()=>C.value==="horizontal"&&y.value||C.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?w.value?e.expandOpenIcon:e.expandCloseIcon:EM:e.collapseCloseIcon&&e.collapseOpenIcon?w.value?e.collapseOpenIcon:e.collapseCloseIcon:Ey),y=k(()=>u.level===0),_=k(()=>{var z;const ee=(z=e.teleported)!=null?z:e.popperAppendToBody;return ee===void 0?y.value:ee}),b=k(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=k(()=>C.value==="horizontal"&&y.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),w=k(()=>l.openedMenus.includes(e.index)),S=k(()=>{let z=!1;return Object.values(f.value).forEach(ee=>{ee.active&&(z=!0)}),Object.values(c.value).forEach(ee=>{ee.active&&(z=!0)}),z}),C=k(()=>l.props.mode),M=Ln({index:e.index,indexPath:i,active:S}),A=GA(l.props,u.level+1),P=k(()=>{var z;return(z=e.popperOffset)!=null?z:l.props.popperOffset}),E=k(()=>{var z;return(z=e.popperClass)!=null?z:l.props.popperClass}),L=k(()=>{var z;return(z=e.showTimeout)!=null?z:l.props.showTimeout}),O=k(()=>{var z;return(z=e.hideTimeout)!=null?z:l.props.hideTimeout}),N=()=>{var z,ee,J;return(J=(ee=(z=p.value)==null?void 0:z.popperRef)==null?void 0:ee.popperInstanceRef)==null?void 0:J.destroy()},H=z=>{z||N()},V=()=>{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})},U=(z,ee=L.value)=>{var J;if(z.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,h==null||h(),{stop:h}=hu(()=>{l.openMenu(e.index,i.value)},ee),_.value&&((J=a.value.vnode.el)==null||J.dispatchEvent(new MouseEvent("mouseenter")))}},F=(z=!1)=>{var ee;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}h==null||h(),u.mouseInChild.value=!1,{stop:h}=hu(()=>!d.value&&l.closeMenu(e.index,i.value),O.value),_.value&&z&&((ee=u.handleMouseleave)==null||ee.call(u,!0))};be(()=>l.props.collapse,z=>H(!!z));{const z=J=>{c.value[J.index]=J},ee=J=>{delete c.value[J.index]};Dt(`subMenu:${n.uid}`,{addSubMenu:z,removeSubMenu:ee,handleMouseleave:F,mouseInChild:d,level:u.level+1})}return r({opened:w}),_t(()=>{l.addSubMenu(M),u.addSubMenu(M)}),tr(()=>{u.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var z;const ee=[(z=t.title)==null?void 0:z.call(t),Te(Bt,{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:()=>ze(g.value)?Te(n.appContext.components[g.value]):Te(g.value)})],J=l.isMenuPopup?Te(Vs,{ref:p,visible:w.value,effect:"light",pure:!0,offset:P.value,showArrow:!1,persistent:!0,popperClass:E.value,placement:m.value,teleported:_.value,fallbackPlacements:x.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var me;return Te("div",{class:[o.m(C.value),o.m("popup-container"),E.value],onMouseenter:we=>U(we,100),onMouseleave:()=>F(!0),onFocus:we=>U(we,100)},[Te("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${m.value}`)],style:A.value},[(me=t.default)==null?void 0:me.call(t)])])},default:()=>Te("div",{class:s.e("title"),onClick:V},ee)}):Te(ft,{},[Te("div",{class:s.e("title"),ref:v,onClick:V},ee),Te(K8,{},{default:()=>{var me;return qt(Te("ul",{role:"menu",class:[o.b(),o.m("inline")],style:A.value},[(me=t.default)==null?void 0:me.call(t)]),[[Kn,w.value]])}})]);return Te("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:U,onMouseleave:()=>F(),onFocus:U},[J])}}});const P6=Je({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Be(Array),default:()=>ja([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:vr,default:()=>B3},popperEffect:{type:String,values:["dark","light"],default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),uv=e=>Array.isArray(e)&&e.every(t=>ze(t)),E6={close:(e,t)=>ze(e)&&uv(t),open:(e,t)=>ze(e)&&uv(t),select:(e,t,r,n)=>ze(e)&&uv(t)&&qe(r)&&(n===void 0||n instanceof Promise)};var L6=ie({name:"ElMenu",props:P6,emits:E6,setup(e,{emit:t,slots:r,expose:n}){const i=it(),a=i.appContext.config.globalProperties.$router,o=$(),s=Oe("menu"),l=Oe("sub-menu"),u=$(-1),f=$(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),c=$(e.defaultActive),h=$({}),d=$({}),v=k(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const L=c.value&&h.value[c.value];if(!L||e.mode==="horizontal"||e.collapse)return;L.indexPath.forEach(N=>{const H=d.value[N];H&&m(N,H.indexPath)})},m=(L,O)=>{f.value.includes(L)||(e.uniqueOpened&&(f.value=f.value.filter(N=>O.includes(N))),f.value.push(L),t("open",L,O))},g=L=>{const O=f.value.indexOf(L);O!==-1&&f.value.splice(O,1)},y=(L,O)=>{g(L),t("close",L,O)},_=({index:L,indexPath:O})=>{f.value.includes(L)?y(L,O):m(L,O)},b=L=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:O,indexPath:N}=L;if(!(_s(O)||_s(N)))if(e.router&&a){const H=L.route||O,V=a.push(H).then(U=>(U||(c.value=O),U));t("select",O,N,{index:O,indexPath:N,route:H},V)}else c.value=O,t("select",O,N,{index:O,indexPath:N})},x=L=>{const O=h.value,N=O[L]||c.value&&O[c.value]||O[e.defaultActive];N?c.value=N.index:c.value=L},w=()=>{var L,O;if(!o.value)return-1;const N=Array.from((O=(L=o.value)==null?void 0:L.childNodes)!=null?O:[]).filter(J=>J.nodeName!=="#comment"&&(J.nodeName!=="#text"||J.nodeValue)),H=64,V=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),U=Number.parseInt(getComputedStyle(o.value).paddingRight,10),F=o.value.clientWidth-V-U;let z=0,ee=0;return N.forEach((J,me)=>{z+=J.offsetWidth||0,z<=F-H&&(ee=me+1)}),ee===N.length?-1:ee},S=L=>d.value[L].indexPath,C=(L,O=33.34)=>{let N;return()=>{N&&clearTimeout(N),N=setTimeout(()=>{L()},O)}};let M=!0;const A=()=>{const L=()=>{u.value=-1,Nt(()=>{u.value=w()})};M?L():C(L)(),M=!1};be(()=>e.defaultActive,L=>{h.value[L]||(c.value=""),x(L)}),be(()=>e.collapse,L=>{L&&(f.value=[])}),be(h.value,p);let P;na(()=>{e.mode==="horizontal"&&e.ellipsis?P=ms(o,A).stop:P==null||P()});const E=$(!1);{const L=V=>{d.value[V.index]=V},O=V=>{delete d.value[V.index]};Dt("rootMenu",Ln({props:e,openedMenus:f,items:h,subMenus:d,activeIndex:c,isMenuPopup:v,addMenuItem:V=>{h.value[V.index]=V},removeMenuItem:V=>{delete h.value[V.index]},addSubMenu:L,removeSubMenu:O,openMenu:m,closeMenu:y,handleMenuItemClick:b,handleSubMenuClick:_})),Dt(`subMenu:${i.uid}`,{addSubMenu:L,removeSubMenu:O,mouseInChild:E,level:0})}return _t(()=>{e.mode==="horizontal"&&new S6(i.vnode.el,s.namespace.value)}),n({open:O=>{const{indexPath:N}=d.value[O];N.forEach(H=>m(H,N))},close:g,handleResize:A}),()=>{var L,O;let N=(O=(L=r.default)==null?void 0:L.call(r))!=null?O:[];const H=[];if(e.mode==="horizontal"&&o.value){const z=Dc(N),ee=u.value===-1?z:z.slice(0,u.value),J=u.value===-1?[]:z.slice(u.value);J!=null&&J.length&&e.ellipsis&&(N=ee,H.push(Te(jy,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Te(Bt,{class:l.e("icon-more")},{default:()=>Te(e.ellipsisIcon)}),default:()=>J})))}const V=GA(e,0),U=e.closeOnClickOutside?[[CA,()=>{f.value.length&&(E.value||(f.value.forEach(z=>t("close",z,S(z))),f.value=[]))}]]:[],F=qt(Te("ul",{key:String(e.collapse),role:"menubar",ref:o,style:V.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...N,...H]),U);return e.collapseTransition&&e.mode==="vertical"?Te(T6,()=>F):F}}});const D6=Je({index:{type:Be([String,null]),default:null},route:{type:Be([String,Object])},disabled:Boolean}),I6={click:e=>ze(e.index)&&Array.isArray(e.indexPath)},fv="ElMenuItem",O6=ie({name:fv,components:{ElTooltip:Vs},props:D6,emits:I6,setup(e,{emit:t}){const r=it(),n=Le("rootMenu"),i=Oe("menu"),a=Oe("menu-item");n||bi(fv,"can not inject root menu");const{parentMenu:o,indexPath:s}=WA(r,wn(e,"index")),l=Le(`subMenu:${o.value.uid}`);l||bi(fv,"can not inject sub menu");const u=k(()=>e.index===n.activeIndex),f=Ln({index:e.index,indexPath:s,active:u}),c=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",f))};return _t(()=>{l.addSubMenu(f),n.addMenuItem(f)}),tr(()=>{l.removeSubMenu(f),n.removeMenuItem(f)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:i,nsMenuItem:a,handleClick:c}}});function R6(e,t,r,n,i,a){const o=xr("el-tooltip");return G(),ce("li",{class:re([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?(G(),ve(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:q(()=>[Ce(e.$slots,"title")]),default:q(()=>[te("div",{class:re(e.nsMenu.be("tooltip","trigger"))},[Ce(e.$slots,"default")],2)]),_:3},8,["effect"])):(G(),ce(ft,{key:1},[Ce(e.$slots,"default"),Ce(e.$slots,"title")],64))],2)}var UA=Ke(O6,[["render",R6],["__file","menu-item.vue"]]);const k6={title:String},N6="ElMenuItemGroup",B6=ie({name:N6,props:k6,setup(){return{ns:Oe("menu-item-group")}}});function F6(e,t,r,n,i,a){return G(),ce("li",{class:re(e.ns.b())},[te("div",{class:re(e.ns.e("title"))},[e.$slots.title?Ce(e.$slots,"title",{key:1}):(G(),ce(ft,{key:0},[pt(xe(e.title),1)],64))],2),te("ul",null,[Ce(e.$slots,"default")])],2)}var YA=Ke(B6,[["render",F6],["__file","menu-item-group.vue"]]);const $6=Yt(L6,{MenuItem:UA,MenuItemGroup:YA,SubMenu:jy}),H6=pa(UA);pa(YA);const z6=pa(jy),V6=Je({icon:{type:vr,default:()=>D3},title:String,content:{type:String,default:""}}),W6={back:()=>!0},G6=["aria-label"],U6=ie({name:"ElPageHeader"}),Y6=ie({...U6,props:V6,emits:W6,setup(e,{emit:t}){const r=Ns(),{t:n}=Hs(),i=Oe("page-header"),a=k(()=>[i.b(),{[i.m("has-breadcrumb")]:!!r.breadcrumb,[i.m("has-extra")]:!!r.extra,[i.is("contentful")]:!!r.default}]);function o(){t("back")}return(s,l)=>(G(),ce("div",{class:re(T(a))},[s.$slots.breadcrumb?(G(),ce("div",{key:0,class:re(T(i).e("breadcrumb"))},[Ce(s.$slots,"breadcrumb")],2)):Ae("v-if",!0),te("div",{class:re(T(i).e("header"))},[te("div",{class:re(T(i).e("left"))},[te("div",{class:re(T(i).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(G(),ce("div",{key:0,"aria-label":s.title||T(n)("el.pageHeader.title"),class:re(T(i).e("icon"))},[Ce(s.$slots,"icon",{},()=>[s.icon?(G(),ve(T(Bt),{key:0},{default:q(()=>[(G(),ve(Vt(s.icon)))]),_:1})):Ae("v-if",!0)])],10,G6)):Ae("v-if",!0),te("div",{class:re(T(i).e("title"))},[Ce(s.$slots,"title",{},()=>[pt(xe(s.title||T(n)("el.pageHeader.title")),1)])],2)],2),Z(T(VA),{direction:"vertical"}),te("div",{class:re(T(i).e("content"))},[Ce(s.$slots,"content",{},()=>[pt(xe(s.content),1)])],2)],2),s.$slots.extra?(G(),ce("div",{key:0,class:re(T(i).e("extra"))},[Ce(s.$slots,"extra")],2)):Ae("v-if",!0)],2),s.$slots.default?(G(),ce("div",{key:1,class:re(T(i).e("main"))},[Ce(s.$slots,"default")],2)):Ae("v-if",!0)],2))}});var j6=Ke(Y6,[["__file","page-header.vue"]]);const q6=Yt(j6),K6=Je({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:pg,default:"primary"},cancelButtonType:{type:String,values:pg,default:"text"},icon:{type:vr,default:()=>$3},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:md.teleported,persistent:md.persistent,width:{type:[String,Number],default:150}}),X6={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Z6=ie({name:"ElPopconfirm"}),Q6=ie({...Z6,props:K6,emits:X6,setup(e,{emit:t}){const r=e,{t:n}=Hs(),i=Oe("popconfirm"),a=$(),o=()=>{var h,d;(d=(h=a.value)==null?void 0:h.onClose)==null||d.call(h)},s=k(()=>({width:Zn(r.width)})),l=h=>{t("confirm",h),o()},u=h=>{t("cancel",h),o()},f=k(()=>r.confirmButtonText||n("el.popconfirm.confirmButtonText")),c=k(()=>r.cancelButtonText||n("el.popconfirm.cancelButtonText"));return(h,d)=>(G(),ve(T(Vs),ei({ref_key:"tooltipRef",ref:a,trigger:"click",effect:"light"},h.$attrs,{"popper-class":`${T(i).namespace.value}-popover`,"popper-style":T(s),teleported:h.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":h.hideAfter,persistent:h.persistent}),{content:q(()=>[te("div",{class:re(T(i).b())},[te("div",{class:re(T(i).e("main"))},[!h.hideIcon&&h.icon?(G(),ve(T(Bt),{key:0,class:re(T(i).e("icon")),style:ct({color:h.iconColor})},{default:q(()=>[(G(),ve(Vt(h.icon)))]),_:1},8,["class","style"])):Ae("v-if",!0),pt(" "+xe(h.title),1)],2),te("div",{class:re(T(i).e("action"))},[Z(T(yg),{size:"small",type:h.cancelButtonType==="text"?"":h.cancelButtonType,text:h.cancelButtonType==="text",onClick:u},{default:q(()=>[pt(xe(T(c)),1)]),_:1},8,["type","text"]),Z(T(yg),{size:"small",type:h.confirmButtonType==="text"?"":h.confirmButtonType,text:h.confirmButtonType==="text",onClick:l},{default:q(()=>[pt(xe(T(f)),1)]),_:1},8,["type","text"])],2)],2)]),default:q(()=>[h.$slots.reference?Ce(h.$slots,"reference",{key:0}):Ae("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var J6=Ke(Q6,[["__file","popconfirm.vue"]]);const eV=Yt(J6),tV=Je({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:j3},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:vr},activeActionIcon:{type:vr},activeIcon:{type:vr},inactiveIcon:{type:vr},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Be(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0}}),rV={[wi]:e=>zr(e)||ze(e)||kt(e),[sg]:e=>zr(e)||ze(e)||kt(e),[lg]:e=>zr(e)||ze(e)||kt(e)},nV=["onClick"],iV=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],aV=["aria-hidden"],oV=["aria-hidden"],sV=["aria-hidden"],Ag="ElSwitch",lV=ie({name:Ag}),uV=ie({...lV,props:tV,emits:rV,setup(e,{expose:t,emit:r}){const n=e,i=it(),{formItem:a}=tf(),o=xi(),s=Oe("switch");(C=>{C.forEach(M=>{bu({from:M[0],replacement:M[1],scope:Ag,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},k(()=>{var A;return!!((A=i.vnode.props)!=null&&A[M[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=Vy(n,{formItemContext:a}),f=vh(k(()=>n.loading)),c=$(n.modelValue!==!1),h=$(),d=$(),v=k(()=>[s.b(),s.m(o.value),s.is("disabled",f.value),s.is("checked",_.value)]),p=k(()=>[s.e("label"),s.em("label","left"),s.is("active",!_.value)]),m=k(()=>[s.e("label"),s.em("label","right"),s.is("active",_.value)]),g=k(()=>({width:Zn(n.width)}));be(()=>n.modelValue,()=>{c.value=!0}),be(()=>n.value,()=>{c.value=!1});const y=k(()=>c.value?n.modelValue:n.value),_=k(()=>y.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(y.value)||(r(wi,n.inactiveValue),r(sg,n.inactiveValue),r(lg,n.inactiveValue)),be(_,C=>{var M;h.value.checked=C,n.validateEvent&&((M=a==null?void 0:a.validate)==null||M.call(a,"change").catch(A=>void 0))});const b=()=>{const C=_.value?n.inactiveValue:n.activeValue;r(wi,C),r(sg,C),r(lg,C),Nt(()=>{h.value.checked=_.value})},x=()=>{if(f.value)return;const{beforeChange:C}=n;if(!C){b();return}const M=C();[Qc(M),zr(M)].includes(!0)||bi(Ag,"beforeChange must return type `Promise<boolean>` or `boolean`"),Qc(M)?M.then(P=>{P&&b()}).catch(P=>{}):M&&b()},w=k(()=>s.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),S=()=>{var C,M;(M=(C=h.value)==null?void 0:C.focus)==null||M.call(C)};return _t(()=>{h.value.checked=_.value}),t({focus:S,checked:_}),(C,M)=>(G(),ce("div",{class:re(T(v)),style:ct(T(w)),onClick:ua(x,["prevent"])},[te("input",{id:T(u),ref_key:"input",ref:h,class:re(T(s).e("input")),type:"checkbox",role:"switch","aria-checked":T(_),"aria-disabled":T(f),"aria-label":C.label,name:C.name,"true-value":C.activeValue,"false-value":C.inactiveValue,disabled:T(f),tabindex:C.tabindex,onChange:b,onKeydown:iR(x,["enter"])},null,42,iV),!C.inlinePrompt&&(C.inactiveIcon||C.inactiveText)?(G(),ce("span",{key:0,class:re(T(p))},[C.inactiveIcon?(G(),ve(T(Bt),{key:0},{default:q(()=>[(G(),ve(Vt(C.inactiveIcon)))]),_:1})):Ae("v-if",!0),!C.inactiveIcon&&C.inactiveText?(G(),ce("span",{key:1,"aria-hidden":T(_)},xe(C.inactiveText),9,aV)):Ae("v-if",!0)],2)):Ae("v-if",!0),te("span",{ref_key:"core",ref:d,class:re(T(s).e("core")),style:ct(T(g))},[C.inlinePrompt?(G(),ce("div",{key:0,class:re(T(s).e("inner"))},[C.activeIcon||C.inactiveIcon?(G(),ve(T(Bt),{key:0,class:re(T(s).is("icon"))},{default:q(()=>[(G(),ve(Vt(T(_)?C.activeIcon:C.inactiveIcon)))]),_:1},8,["class"])):C.activeText||C.inactiveText?(G(),ce("span",{key:1,class:re(T(s).is("text")),"aria-hidden":!T(_)},xe(T(_)?C.activeText:C.inactiveText),11,oV)):Ae("v-if",!0)],2)):Ae("v-if",!0),te("div",{class:re(T(s).e("action"))},[C.loading?(G(),ve(T(Bt),{key:0,class:re(T(s).is("loading"))},{default:q(()=>[Z(T(Ly))]),_:1},8,["class"])):T(_)?Ce(C.$slots,"active-action",{key:1},()=>[C.activeActionIcon?(G(),ve(T(Bt),{key:0},{default:q(()=>[(G(),ve(Vt(C.activeActionIcon)))]),_:1})):Ae("v-if",!0)]):T(_)?Ae("v-if",!0):Ce(C.$slots,"inactive-action",{key:2},()=>[C.inactiveActionIcon?(G(),ve(T(Bt),{key:0},{default:q(()=>[(G(),ve(Vt(C.inactiveActionIcon)))]),_:1})):Ae("v-if",!0)])],2)],6),!C.inlinePrompt&&(C.activeIcon||C.activeText)?(G(),ce("span",{key:1,class:re(T(m))},[C.activeIcon?(G(),ve(T(Bt),{key:0},{default:q(()=>[(G(),ve(Vt(C.activeIcon)))]),_:1})):Ae("v-if",!0),!C.activeIcon&&C.activeText?(G(),ce("span",{key:1,"aria-hidden":!T(_)},xe(C.activeText),9,sV)):Ae("v-if",!0)],2)):Ae("v-if",!0)],14,nV))}});var fV=Ke(uV,[["__file","switch.vue"]]);const cV=Yt(fV),cv=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},dV=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"?yu(s,u):u(s,l,e))):(t!=="$key"&&qe(s)&&"$value"in s&&(s=s.$value),[qe(s)?yu(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,f=s.key.length;u<f;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)},jA=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},hV=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||bi("ElTable",`No column matching with column-key: ${t}`),r},L1=function(e,t,r){const n=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return n?jA(e,n[0]):null},Jt=(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)},eo=function(e,t){const r={};return(e||[]).forEach((n,i)=>{r[Jt(n,t)]={row:n,index:i}}),r};function vV(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(Ue(t,n)){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function qy(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function qA(e){return e===""||e!==void 0&&(e=qy(e),Number.isNaN(e)&&(e=80)),e}function pV(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function gV(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function zl(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,_e(t.children)&&t.children.forEach(l=>{zl(e,l,r??!a)})};return zr(r)?r&&!a?o("add"):!r&&a&&o("remove"):o(a?"remove":"add"),n}function mV(e,t,r="children",n="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function a(o,s,l){t(o,s,l),s.forEach(u=>{if(u[n]){t(u,null,l+1);return}const f=u[r];i(f)||a(u,f,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];i(s)||a(o,s,0)})}let Xr=null;function yV(e,t,r,n){if((Xr==null?void 0:Xr.trigger)===r)return;Xr==null||Xr();const i=n==null?void 0:n.refs.tableWrapper,a=i==null?void 0:i.dataset.prefix,o={strategy:"fixed",...e.popperOptions},s=Z(Vs,{content:t,virtualTriggering:!0,virtualRef:r,appendTo:i,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:o,onHide:()=>{Xr==null||Xr()}});s.appContext=n.appContext;const l=document.createElement("div");ld(s,l),s.component.exposed.onOpen();const u=i==null?void 0:i.querySelector(`.${a}-scrollbar__wrap`);Xr=()=>{ld(null,l),u==null||u.removeEventListener("scroll",Xr),Xr=null},Xr.trigger=r,u==null||u.addEventListener("scroll",Xr)}function KA(e){return e.children?v3(e.children,KA):[e]}function D1(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=KA(n[e]);i=o.slice(0,o.indexOf(l[0])).reduce(D1,0),a=i+l.reduce(D1,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}:{}},Ky=(e,t,r,n,i,a=0)=>{const o=[],{direction:s,start:l,after:u}=XA(t,r,n,i);if(s){const f=s==="left";o.push(`${e}-fixed-column--${s}`),f&&u+a===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!f&&l-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function I1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Xy=(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(I1,0):s.right=u.slice(o+1).reverse().reduce(I1,0),s},As=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function _V(e){const t=it(),r=$(!1),n=$([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const f=eo(n.value,u);n.value=l.reduce((c,h)=>{const d=Jt(h,u);return f[d]&&c.push(h),c},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{zl(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],f=e.rowKey.value,c=eo(u,f);n.value=l.reduce((h,d)=>{const v=c[d];return v&&h.push(v.row),h},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!eo(n.value,u)[Jt(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function bV(e){const t=it(),r=$(null),n=$(null),i=u=>{t.store.assertRowKey(),r.value=u,o(u)},a=()=>{r.value=null},o=u=>{const{data:f,rowKey:c}=e;let h=null;c.value&&(h=(T(f)||[]).find(d=>Jt(d,c.value)===u)),n.value=h,t.emit("current-change",n.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:a,setCurrentRowByKey:o,updateCurrentRow:u=>{const f=n.value;if(u&&u!==f){n.value=u,t.emit("current-change",n.value,f);return}!u&&f&&(n.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const u=e.rowKey.value,f=e.data.value||[],c=n.value;if(!f.includes(c)&&c){if(u){const h=Jt(c,u);o(h)}else n.value=null;n.value===null&&t.emit("current-change",null,c)}else r.value&&(o(r.value),a())},states:{_currentRowKey:r,currentRow:n}}}function wV(e){const t=$([]),r=$({}),n=$(16),i=$(!1),a=$({}),o=$("hasChildren"),s=$("children"),l=it(),u=k(()=>{if(!e.rowKey.value)return{};const g=e.data.value||[];return c(g)}),f=k(()=>{const g=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=Jt(w,g);x.children.push(S),w[o.value]&&!_[S]&&(_[S]={children:[]})}),_[b]=x}}),_}),c=g=>{const y=e.rowKey.value,_={};return mV(g,(b,x,w)=>{const S=Jt(b,y);Array.isArray(x)?_[S]={children:x.map(C=>Jt(C,y)),level:w}:i.value&&(_[S]={children:[],lazy:!0,level:w})},s.value,o.value),_},h=(g=!1,y=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const b=u.value,x=f.value,w=Object.keys(b),S={};if(w.length){const C=T(r),M=[],A=(E,L)=>{if(g)return t.value?y||t.value.includes(L):!!(y||E!=null&&E.expanded);{const O=y||t.value&&t.value.includes(L);return!!(E!=null&&E.expanded||O)}};w.forEach(E=>{const L=C[E],O={...b[E]};if(O.expanded=A(L,E),O.lazy){const{loaded:N=!1,loading:H=!1}=L||{};O.loaded=!!N,O.loading=!!H,M.push(E)}S[E]=O});const P=Object.keys(x);i.value&&P.length&&M.length&&P.forEach(E=>{const L=C[E],O=x[E].children;if(M.includes(E)){if(S[E].children.length!==0)throw new Error("[ElTable]children must be an empty array.");S[E].children=O}else{const{loaded:N=!1,loading:H=!1}=L||{};S[E]={lazy:!0,loaded:!!N,loading:!!H,expanded:A(L,E),children:O,level:""}}})}r.value=S,(_=l.store)==null||_.updateTableScrollY()};be(()=>t.value,()=>{h(!0)}),be(()=>u.value,()=>{h()}),be(()=>f.value,()=>{h()});const d=g=>{t.value=g,h()},v=(g,y)=>{l.store.assertRowKey();const _=e.rowKey.value,b=Jt(g,_),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",g,y),l.store.updateTableScrollY()}},p=g=>{l.store.assertRowKey();const y=e.rowKey.value,_=Jt(g,y),b=r.value[_];i.value&&b&&"loaded"in b&&!b.loaded?m(g,_,b):v(g,void 0)},m=(g,y,_)=>{const{load:b}=l.props;b&&!r.value[y].loaded&&(r.value[y].loading=!0,b(g,_,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",g,!0)}))};return{loadData:m,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:d,updateTreeData:h,normalize:c,states:{expandRowKeys:t,treeData:r,indent:n,lazy:i,lazyTreeNodeMap:a,lazyColumnIdentifier:o,childrenColumnName:s}}}const SV=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:dV(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},Fc=e=>{const t=[];return e.forEach(r=>{r.children&&r.children.length>0?t.push.apply(t,Fc(r.children)):t.push(r)}),t};function xV(){var e;const t=it(),{size:r}=Kd((e=t.proxy)==null?void 0:e.$props),n=$(null),i=$([]),a=$([]),o=$(!1),s=$([]),l=$([]),u=$([]),f=$([]),c=$([]),h=$([]),d=$([]),v=$([]),p=[],m=$(0),g=$(0),y=$(0),_=$(!1),b=$([]),x=$(!1),w=$(!1),S=$(null),C=$({}),M=$(null),A=$(null),P=$(null),E=$(null),L=$(null);be(i,()=>t.state&&V(!1),{deep:!0});const O=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},N=he=>{var Pe;(Pe=he.children)==null||Pe.forEach(We=>{We.fixed=he.fixed,N(We)})},H=()=>{s.value.forEach(et=>{N(et)}),f.value=s.value.filter(et=>et.fixed===!0||et.fixed==="left"),c.value=s.value.filter(et=>et.fixed==="right"),f.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,f.value.unshift(s.value[0]));const he=s.value.filter(et=>!et.fixed);l.value=[].concat(f.value).concat(he).concat(c.value);const Pe=Fc(he),We=Fc(f.value),Ge=Fc(c.value);m.value=Pe.length,g.value=We.length,y.value=Ge.length,u.value=[].concat(We).concat(Pe).concat(Ge),o.value=f.value.length>0||c.value.length>0},V=(he,Pe=!1)=>{he&&H(),Pe?t.state.doLayout():t.state.debouncedUpdateLayout()},U=he=>b.value.includes(he),F=()=>{_.value=!1,b.value.length&&(b.value=[],t.emit("selection-change",[]))},z=()=>{let he;if(n.value){he=[];const Pe=eo(b.value,n.value),We=eo(i.value,n.value);for(const Ge in Pe)Ue(Pe,Ge)&&!We[Ge]&&he.push(Pe[Ge].row)}else he=b.value.filter(Pe=>!i.value.includes(Pe));if(he.length){const Pe=b.value.filter(We=>!he.includes(We));b.value=Pe,t.emit("selection-change",Pe.slice())}},ee=()=>(b.value||[]).slice(),J=(he,Pe=void 0,We=!0)=>{if(zl(b.value,he,Pe)){const et=(b.value||[]).slice();We&&t.emit("select",et,he),t.emit("selection-change",et)}},me=()=>{var he,Pe;const We=w.value?!_.value:!(_.value||b.value.length);_.value=We;let Ge=!1,et=0;const zt=(Pe=(he=t==null?void 0:t.store)==null?void 0:he.states)==null?void 0:Pe.rowKey.value;i.value.forEach((gt,Kt)=>{const Yr=Kt+et;S.value?S.value.call(null,gt,Yr)&&zl(b.value,gt,We)&&(Ge=!0):zl(b.value,gt,We)&&(Ge=!0),et+=Ie(Jt(gt,zt))}),Ge&&t.emit("selection-change",b.value?b.value.slice():[]),t.emit("select-all",b.value)},we=()=>{const he=eo(b.value,n.value);i.value.forEach(Pe=>{const We=Jt(Pe,n.value),Ge=he[We];Ge&&(b.value[Ge.index]=Pe)})},$e=()=>{var he,Pe,We;if(((he=i.value)==null?void 0:he.length)===0){_.value=!1;return}let Ge;n.value&&(Ge=eo(b.value,n.value));const et=function(Yr){return Ge?!!Ge[Jt(Yr,n.value)]:b.value.includes(Yr)};let zt=!0,gt=0,Kt=0;for(let Yr=0,AD=(i.value||[]).length;Yr<AD;Yr++){const PD=(We=(Pe=t==null?void 0:t.store)==null?void 0:Pe.states)==null?void 0:We.rowKey.value,ED=Yr+Kt,Vh=i.value[Yr],LD=S.value&&S.value.call(null,Vh,ED);if(et(Vh))gt++;else if(!S.value||LD){zt=!1;break}Kt+=Ie(Jt(Vh,PD))}gt===0&&(zt=!1),_.value=zt},Ie=he=>{var Pe;if(!t||!t.store)return 0;const{treeData:We}=t.store.states;let Ge=0;const et=(Pe=We.value[he])==null?void 0:Pe.children;return et&&(Ge+=et.length,et.forEach(zt=>{Ge+=Ie(zt)})),Ge},B=(he,Pe)=>{Array.isArray(he)||(he=[he]);const We={};return he.forEach(Ge=>{C.value[Ge.id]=Pe,We[Ge.columnKey||Ge.id]=Pe}),We},Y=(he,Pe,We)=>{A.value&&A.value!==he&&(A.value.order=null),A.value=he,P.value=Pe,E.value=We},K=()=>{let he=T(a);Object.keys(C.value).forEach(Pe=>{const We=C.value[Pe];if(!We||We.length===0)return;const Ge=jA({columns:u.value},Pe);Ge&&Ge.filterMethod&&(he=he.filter(et=>We.some(zt=>Ge.filterMethod.call(null,zt,et,Ge))))}),M.value=he},Q=()=>{i.value=SV(M.value,{sortingColumn:A.value,sortProp:P.value,sortOrder:E.value})},oe=(he=void 0)=>{he&&he.filter||K(),Q()},pe=he=>{const{tableHeaderRef:Pe}=t.refs;if(!Pe)return;const We=Object.assign({},Pe.filterPanels),Ge=Object.keys(We);if(Ge.length)if(typeof he=="string"&&(he=[he]),Array.isArray(he)){const et=he.map(zt=>hV({columns:u.value},zt));Ge.forEach(zt=>{const gt=et.find(Kt=>Kt.id===zt);gt&&(gt.filteredValue=[])}),t.store.commit("filterChange",{column:et,values:[],silent:!0,multi:!0})}else Ge.forEach(et=>{const zt=u.value.find(gt=>gt.id===et);zt&&(zt.filteredValue=[])}),C.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},D=()=>{A.value&&(Y(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:I,toggleRowExpansion:W,updateExpandRows:X,states:j,isRowExpanded:le}=_V({data:i,rowKey:n}),{updateTreeExpandKeys:fe,toggleTreeExpansion:ae,updateTreeData:se,loadOrToggle:ne,states:de}=wV({data:i,rowKey:n}),{updateCurrentRowData:Me,updateCurrentRow:Se,setCurrentRowKey:ke,states:Ve}=bV({data:i,rowKey:n});return{assertRowKey:O,updateColumns:H,scheduleLayout:V,isSelected:U,clearSelection:F,cleanSelection:z,getSelectionRows:ee,toggleRowSelection:J,_toggleAllSelection:me,toggleAllSelection:null,updateSelectionByRowKey:we,updateAllSelected:$e,updateFilters:B,updateCurrentRow:Se,updateSort:Y,execFilter:K,execSort:Q,execQuery:oe,clearFilter:pe,clearSort:D,toggleRowExpansion:W,setExpandRowKeysAdapter:he=>{I(he),fe(he)},setCurrentRowKey:ke,toggleRowExpansionAdapter:(he,Pe)=>{u.value.some(({type:Ge})=>Ge==="expand")?W(he,Pe):ae(he,Pe)},isRowExpanded:le,updateExpandRows:X,updateCurrentRowData:Me,loadOrToggle:ne,updateTreeData:se,states:{tableSize:r,rowKey:n,data:i,_data:a,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:f,rightFixedColumns:c,leafColumns:h,fixedLeafColumns:d,rightFixedLeafColumns:v,updateOrderFns:p,leafColumnsLength:m,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:y,isAllSelected:_,selection:b,reserveSelection:x,selectOnIndeterminate:w,selectable:S,filters:C,filteredData:M,sortingColumn:A,sortProp:P,sortOrder:E,hoverRow:L,...j,...de,...Ve}}}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 Eg(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&Eg(t.children)}),e.sort((t,r)=>t.no-r.no)}function CV(){const e=it(),t=xV();return{ns:Oe("table"),...t,mutations:{setData(o,s){const l=T(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),T(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 f=T(o._columns);let c=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),c=Pg(f,l)):(f.push(s),c=f),Eg(c),o._columns.value=c,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&&(Eg(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const f=T(o._columns)||[];if(l)l.children.splice(l.children.findIndex(h=>h.id===s.id),1),Nt(()=>{var h;((h=l.children)==null?void 0:h.length)===0&&delete l.children}),o._columns.value=Pg(f,l);else{const h=f.indexOf(s);h>-1&&(f.splice(h,1),o._columns.value=f)}const c=o.updateOrderFns.indexOf(u);c>-1&&o.updateOrderFns.splice(c,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:f}=s;if(l){const c=T(o.columns).find(h=>h.property===l);c&&(c.order=u,e.store.updateSort(c,l,u),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:f}=o,c=T(l),h=T(u),d=T(f);d===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:c,prop:h,order:d}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:f}=s,c=e.store.updateFilters(l,u);e.store.execQuery(),f||e.emit("filter-change",c),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){Nt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Vl={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 TV(e,t){if(!e)throw new Error("Table is required.");const r=CV();return r.toggleAllSelection=hd(r._toggleAllSelection,10),Object.keys(Vl).forEach(n=>{ZA(QA(t,n),n,r)}),MV(r,t),r}function MV(e,t){Object.keys(Vl).forEach(r=>{be(()=>QA(t,r),n=>{ZA(n,r,e)})})}function ZA(e,t,r){let n=e,i=Vl[t];typeof Vl[t]=="object"&&(i=i.key,n=n||Vl[t].default),r.states[i].value=n}function QA(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 AV{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=$(null),this.scrollX=$(!1),this.scrollY=$(!1),this.bodyWidth=$(null),this.fixedWidth=$(null),this.rightFixedWidth=$(null),this.gutterWidth=0;for(const r in t)Ue(t,r)&&(Pt(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(!At)return;const n=this.table.vnode.el;if(t=pV(t),this.height.value=Number(t),!n&&(t||t===0))return Nt(()=>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(!At)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((h,d)=>h+Number(d.minWidth||80),0),f=l/u;let c=0;a.forEach((h,d)=>{if(d===0)return;const v=Math.floor(Number(h.minWidth||80)*f);c+=v,h.realWidth=Number(h.minWidth||80)+v}),a[0].realWidth=Number(a[0].minWidth||80)+l-c}}else this.scrollX.value=!0,a.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var i,a;switch(t){case"columns":(i=n.state)==null||i.onColumnsChange(this);break;case"scrollable":(a=n.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:PV}=Ms,EV=ie({name:"ElTableFilterPanel",components:{ElCheckbox:Ms,ElCheckboxGroup:PV,ElScrollbar:uA,ElTooltip:Vs,ElIcon:Bt,ArrowDown:EM,ArrowUp:E3},directives:{ClickOutside:CA},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=it(),{t:r}=Hs(),n=Oe("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const a=$(!1),o=$(null),s=k(()=>e.column&&e.column.filters),l=k(()=>e.column.filterClassName?`${n.b()} ${e.column.filterClassName}`:n.b()),u=k({get:()=>{var x;return(((x=e.column)==null?void 0:x.filteredValue)||[])[0]},set:x=>{f.value&&(typeof x<"u"&&x!==null?f.value.splice(0,1,x):f.value.splice(0,1))}}),f=k({get(){return e.column?e.column.filteredValue||[]:[]},set(x){e.column&&e.upDataColumn("filteredValue",x)}}),c=k(()=>e.column?e.column.filterMultiple:!0),h=x=>x.value===u.value,d=()=>{a.value=!1},v=x=>{x.stopPropagation(),a.value=!a.value},p=()=>{a.value=!1},m=()=>{_(f.value),d()},g=()=>{f.value=[],_(f.value),d()},y=x=>{u.value=x,_(typeof x<"u"&&x!==null?f.value:[]),d()},_=x=>{e.store.commit("filterChange",{column:e.column,values:x}),e.store.updateAllSelected()};be(a,x=>{e.column&&e.upDataColumn("filterOpened",x)},{immediate:!0});const b=k(()=>{var x,w;return(w=(x=o.value)==null?void 0:x.popperRef)==null?void 0:w.contentRef});return{tooltipVisible:a,multiple:c,filterClassName:l,filteredValue:f,filterValue:u,filters:s,handleConfirm:m,handleReset:g,handleSelect:y,isActive:h,t:r,ns:n,showFilterPanel:v,hideFilterPanel:p,popperPaneRef:b,tooltip:o}}}),LV={key:0},DV=["disabled"],IV=["label","onClick"];function OV(e,t,r,n,i,a){const o=xr("el-checkbox"),s=xr("el-checkbox-group"),l=xr("el-scrollbar"),u=xr("arrow-up"),f=xr("arrow-down"),c=xr("el-icon"),h=xr("el-tooltip"),d=fT("click-outside");return G(),ve(h,{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.filterClassName,persistent:""},{content:q(()=>[e.multiple?(G(),ce("div",LV,[te("div",{class:re(e.ns.e("content"))},[Z(l,{"wrap-class":e.ns.e("wrap")},{default:q(()=>[Z(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:re(e.ns.e("checkbox-group"))},{default:q(()=>[(G(!0),ce(ft,null,Hp(e.filters,v=>(G(),ve(o,{key:v.value,label:v.value},{default:q(()=>[pt(xe(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),te("div",{class:re(e.ns.e("bottom"))},[te("button",{class:re({[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))},xe(e.t("el.table.confirmFilter")),11,DV),te("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},xe(e.t("el.table.resetFilter")),1)],2)])):(G(),ce("ul",{key:1,class:re(e.ns.e("list"))},[te("li",{class:re([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))},xe(e.t("el.table.clearFilter")),3),(G(!0),ce(ft,null,Hp(e.filters,v=>(G(),ce("li",{key:v.value,class:re([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},xe(v.text),11,IV))),128))],2))]),default:q(()=>[qt((G(),ce("span",{class:re([`${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))},[Z(c,null,{default:q(()=>[e.column.filterOpened?(G(),ve(u,{key:0})):(G(),ve(f,{key:1}))]),_:1})],2)),[[d,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var RV=Ke(EV,[["render",OV],["__file","filter-panel.vue"]]);function JA(e){const t=it();eh(()=>{r.value.addObserver(t)}),_t(()=>{n(r.value),i(r.value)}),Uu(()=>{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(f=>{u[f.id]=f});for(let f=0,c=s.length;f<c;f++){const h=s[f],d=h.getAttribute("name"),v=u[d];v&&h.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 f=0,c=l.length;f<c;f++)l[f].setAttribute("width",a.scrollY.value?a.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let f=0,c=u.length;f<c;f++){const h=u[f];h.style.width=a.scrollY.value?`${a.gutterWidth}px`:"0",h.style.display=a.scrollY.value?"":"none"}};return{tableLayout:r.value,onColumnsChange:n,onScrollableChange:i}}const ri=Symbol("ElTable");function kV(e,t){const r=it(),n=Le(ri),i=p=>{p.stopPropagation()},a=(p,m)=>{!m.filters&&m.sortable?v(p,m,!1):m.filterable&&!m.sortable&&i(p),n==null||n.emit("header-click",m,p)},o=(p,m)=>{n==null||n.emit("header-contextmenu",m,p)},s=$(null),l=$(!1),u=$({}),f=(p,m)=>{if(At&&!(m.children&&m.children.length>0)&&s.value&&e.border){l.value=!0;const g=n;t("set-drag-visible",!0);const _=(g==null?void 0:g.vnode.el).getBoundingClientRect().left,b=r.vnode.el.querySelector(`th.${m.id}`),x=b.getBoundingClientRect(),w=x.left-_+30;Za(b,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:x.right-_,startColumnLeft:x.left-_,tableLeft:_};const S=g==null?void 0:g.refs.resizeProxy;S.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const C=A=>{const P=A.clientX-u.value.startMouseLeft,E=u.value.startLeft+P;S.style.left=`${Math.max(w,E)}px`},M=()=>{if(l.value){const{startColumnLeft:A,startLeft:P}=u.value,L=Number.parseInt(S.style.left,10)-A;m.width=m.realWidth=L,g==null||g.emit("header-dragend",m.width,P-A,m,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(()=>{so(b,"noclick")},0)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",M)}},c=(p,m)=>{if(m.children&&m.children.length>0)return;const g=p.target;if(!mo(g))return;const y=g==null?void 0:g.closest("th");if(!(!m||!m.resizable)&&!l.value&&e.border){const _=y.getBoundingClientRect(),b=document.body.style;_.width>12&&_.right-p.pageX<8?(b.cursor="col-resize",oo(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=m):l.value||(b.cursor="",oo(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},h=()=>{At&&(document.body.style.cursor="")},d=({order:p,sortOrders:m})=>{if(p==="")return m[0];const g=m.indexOf(p||null);return m[g>m.length-2?0:g+1]},v=(p,m,g)=>{var y;p.stopPropagation();const _=m.order===g?null:g||d(m),b=(y=p.target)==null?void 0:y.closest("th");if(b&&oo(b,"noclick")){so(b,"noclick");return}if(!m.sortable)return;const x=e.store.states;let w=x.sortProp.value,S;const C=x.sortingColumn.value;(C!==m||C===m&&C.order===null)&&(C&&(C.order=null),x.sortingColumn.value=m,w=m.property),_?S=m.order=_:S=m.order=null,x.sortProp.value=w,x.sortOrder.value=S,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:o,handleMouseDown:f,handleMouseMove:c,handleMouseOut:h,handleSortClick:v,handleFilterClick:i}}function NV(e){const t=Le(ri),r=Oe("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,f)=>{var c;let h=(c=t==null?void 0:t.props.headerCellStyle)!=null?c:{};typeof h=="function"&&(h=h.call(null,{rowIndex:s,columnIndex:l,row:u,column:f}));const d=Xy(l,f.fixed,e.store,u);return As(d,"left"),As(d,"right"),Object.assign({},h,d)},getHeaderCellClass:(s,l,u,f)=>{const c=Ky(r.b(),l,f.fixed,e.store,u),h=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...c];f.children||h.push("is-leaf"),f.sortable&&h.push("is-sortable");const d=t==null?void 0:t.props.headerCellClassName;return typeof d=="string"?h.push(d):typeof d=="function"&&h.push(d.call(null,{rowIndex:s,columnIndex:l,row:u,column:f})),h.push(r.e("cell")),h.filter(v=>!!v).join(" ")}}}const e2=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,e2(r.children))):t.push(r)}),t},BV=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 e2(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 FV(e){const t=Le(ri),r=k(()=>BV(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 $V=ie({name:"ElTableHeader",components:{ElCheckbox:Ms},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=it(),n=Le(ri),i=Oe("table"),a=$({}),{onColumnsChange:o,onScrollableChange:s}=JA(n);_t(async()=>{await Nt(),await Nt();const{prop:w,order:S}=e.defaultSort;n==null||n.store.commit("sort",{prop:w,order:S,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:c,handleMouseOut:h,handleSortClick:d,handleFilterClick:v}=kV(e,t),{getHeaderRowStyle:p,getHeaderRowClass:m,getHeaderCellStyle:g,getHeaderCellClass:y}=NV(e),{isGroup:_,toggleAllSelection:b,columnRows:x}=FV(e);return r.state={onColumnsChange:o,onScrollableChange:s},r.filterPanels=a,{ns:i,filterPanels:a,onColumnsChange:o,onScrollableChange:s,columnRows:x,getHeaderRowClass:m,getHeaderRowStyle:p,getHeaderCellClass:y,getHeaderCellStyle:g,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:c,handleMouseOut:h,handleSortClick:d,handleFilterClick:v,isGroup:_,toggleAllSelection:b}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:n,getHeaderCellClass:i,getHeaderRowClass:a,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:f,handleSortClick:c,handleMouseOut:h,store:d,$parent:v}=this;let p=1;return Te("thead",{class:{[e.is("group")]:t}},r.map((m,g)=>Te("tr",{class:a(g),key:g,style:o(g)},m.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),Te("th",{class:i(g,_,m,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:n(g,_,m,y),onClick:b=>s(b,y),onContextmenu:b=>l(b,y),onMousedown:b=>u(b,y),onMousemove:b=>f(b,y),onMouseout:h},[Te("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:_,store:d,_self:v}):y.label,y.sortable&&Te("span",{onClick:b=>c(b,y),class:"caret-wrapper"},[Te("i",{onClick:b=>c(b,y,"ascending"),class:"sort-caret ascending"}),Te("i",{onClick:b=>c(b,y,"descending"),class:"sort-caret descending"})]),y.filterable&&Te(RV,{store:d,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(b,x)=>{y[b]=x}})])]))))))}});function HV(e){const t=Le(ri),r=$(""),n=$(Te("div")),i=(d,v,p)=>{var m;const g=t,y=cv(d);let _;const b=(m=g==null?void 0:g.vnode.el)==null?void 0:m.dataset.prefix;y&&(_=L1({columns:e.store.states.columns.value},y,b),_&&(g==null||g.emit(`cell-${p}`,v,_,y,d))),g==null||g.emit(`row-${p}`,v,_,d)},a=(d,v)=>{i(d,v,"dblclick")},o=(d,v)=>{e.store.commit("setCurrentRow",v),i(d,v,"click")},s=(d,v)=>{i(d,v,"contextmenu")},l=hd(d=>{e.store.commit("setHoverRow",d)},30),u=hd(()=>{e.store.commit("setHoverRow",null)},30),f=d=>{const v=window.getComputedStyle(d,null),p=Number.parseInt(v.paddingLeft,10)||0,m=Number.parseInt(v.paddingRight,10)||0,g=Number.parseInt(v.paddingTop,10)||0,y=Number.parseInt(v.paddingBottom,10)||0;return{left:p,right:m,top:g,bottom:y}};return{handleDoubleClick:a,handleClick:o,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(d,v,p)=>{var m;const g=t,y=cv(d),_=(m=g==null?void 0:g.vnode.el)==null?void 0:m.dataset.prefix;if(y){const H=L1({columns:e.store.states.columns.value},y,_),V=g.hoverState={cell:y,column:H,row:v};g==null||g.emit("cell-mouse-enter",V.row,V.column,V.cell,d)}if(!p)return;const b=d.target.querySelector(".cell");if(!(oo(b,`${_}-tooltip`)&&b.childNodes.length))return;const x=document.createRange();x.setStart(b,0),x.setEnd(b,b.childNodes.length);let w=x.getBoundingClientRect().width,S=x.getBoundingClientRect().height;w-Math.floor(w)<.001&&(w=Math.floor(w)),S-Math.floor(S)<.001&&(S=Math.floor(S));const{top:A,left:P,right:E,bottom:L}=f(b),O=P+E,N=A+L;(w+O>b.offsetWidth||S+N>b.offsetHeight||b.scrollWidth>b.offsetWidth)&&yV(p,y.innerText||y.textContent,y,g)},handleCellMouseLeave:d=>{if(!cv(d))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,d)},tooltipContent:r,tooltipTrigger:n}}function zV(e){const t=Le(ri),r=Oe("table");return{getRowStyle:(u,f)=>{const c=t==null?void 0:t.props.rowStyle;return typeof c=="function"?c.call(null,{row:u,rowIndex:f}):c||null},getRowClass:(u,f)=>{const c=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&c.push("current-row"),e.stripe&&f%2===1&&c.push(r.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return typeof h=="string"?c.push(h):typeof h=="function"&&c.push(h.call(null,{row:u,rowIndex:f})),c},getCellStyle:(u,f,c,h)=>{const d=t==null?void 0:t.props.cellStyle;let v=d??{};typeof d=="function"&&(v=d.call(null,{rowIndex:u,columnIndex:f,row:c,column:h}));const p=Xy(f,e==null?void 0:e.fixed,e.store);return As(p,"left"),As(p,"right"),Object.assign({},v,p)},getCellClass:(u,f,c,h,d)=>{const v=Ky(r.b(),f,e==null?void 0:e.fixed,e.store,void 0,d),p=[h.id,h.align,h.className,...v],m=t==null?void 0:t.props.cellClassName;return typeof m=="string"?p.push(m):typeof m=="function"&&p.push(m.call(null,{rowIndex:u,columnIndex:f,row:c,column:h})),p.push(r.e("cell")),p.filter(g=>!!g).join(" ")},getSpan:(u,f,c,h)=>{let d=1,v=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const m=p({row:u,column:f,rowIndex:c,columnIndex:h});Array.isArray(m)?(d=m[0],v=m[1]):typeof m=="object"&&(d=m.rowspan,v=m.colspan)}return{rowspan:d,colspan:v}},getColspanRealWidth:(u,f,c)=>{if(f<1)return u[c].realWidth;const h=u.map(({realWidth:d,width:v})=>d||v).slice(c,c+f);return Number(h.reduce((d,v)=>Number(d)+Number(v),-1))}}}function VV(e){const t=Le(ri),r=Oe("table"),{handleDoubleClick:n,handleClick:i,handleContextMenu:a,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:f,tooltipTrigger:c}=HV(e),{getRowStyle:h,getRowClass:d,getCellStyle:v,getCellClass:p,getSpan:m,getColspanRealWidth:g}=zV(e),y=k(()=>e.store.states.columns.value.findIndex(({type:S})=>S==="default")),_=(S,C)=>{const M=t.props.rowKey;return M?Jt(S,M):C},b=(S,C,M,A=!1)=>{const{tooltipEffect:P,tooltipOptions:E,store:L}=e,{indent:O,columns:N}=L.states,H=d(S,C);let V=!0;return M&&(H.push(r.em("row",`level-${M.level}`)),V=M.display),Te("tr",{style:[V?null:{display:"none"},h(S,C)],class:H,key:_(S,C),onDblclick:F=>n(F,S),onClick:F=>i(F,S),onContextmenu:F=>a(F,S),onMouseenter:()=>o(C),onMouseleave:s},N.value.map((F,z)=>{const{rowspan:ee,colspan:J}=m(S,F,C,z);if(!ee||!J)return null;const me=Object.assign({},F);me.realWidth=g(N.value,J,z);const we={store:e.store,_self:e.context||t,column:me,row:S,$index:C,cellIndex:z,expanded:A};z===y.value&&M&&(we.treeNode={indent:M.level*O.value,level:M.level},typeof M.expanded=="boolean"&&(we.treeNode.expanded=M.expanded,"loading"in M&&(we.treeNode.loading=M.loading),"noLazyChildren"in M&&(we.treeNode.noLazyChildren=M.noLazyChildren)));const $e=`${C},${z}`,Ie=me.columnKey||me.rawColumnKey||"",B=x(z,F,we),Y=F.showOverflowTooltip&&m3({effect:P},E,F.showOverflowTooltip);return Te("td",{style:v(C,z,S,F),class:p(C,z,S,F,J-1),key:`${Ie}${$e}`,rowspan:ee,colspan:J,onMouseenter:K=>l(K,S,Y),onMouseleave:u},[B])}))},x=(S,C,M)=>C.renderCell(M);return{wrappedRowRender:(S,C)=>{const M=e.store,{isRowExpanded:A,assertRowKey:P}=M,{treeData:E,lazyTreeNodeMap:L,childrenColumnName:O,rowKey:N}=M.states,H=M.states.columns.value;if(H.some(({type:U})=>U==="expand")){const U=A(S),F=b(S,C,void 0,U),z=t.renderExpanded;return U?z?[[F,Te("tr",{key:`expanded-row__${F.key}`},[Te("td",{colspan:H.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[z({row:S,$index:C,store:M,expanded:U})])])]]:(console.error("[Element Error]renderExpanded is required."),F):[[F]]}else if(Object.keys(E.value).length){P();const U=Jt(S,N.value);let F=E.value[U],z=null;F&&(z={expanded:F.expanded,level:F.level,display:!0},typeof F.lazy=="boolean"&&(typeof F.loaded=="boolean"&&F.loaded&&(z.noLazyChildren=!(F.children&&F.children.length)),z.loading=F.loading));const ee=[b(S,C,z)];if(F){let J=0;const me=($e,Ie)=>{$e&&$e.length&&Ie&&$e.forEach(B=>{const Y={display:Ie.display&&Ie.expanded,level:Ie.level+1,expanded:!1,noLazyChildren:!1,loading:!1},K=Jt(B,N.value);if(K==null)throw new Error("For nested data item, row-key is required.");if(F={...E.value[K]},F&&(Y.expanded=F.expanded,F.level=F.level||Y.level,F.display=!!(F.expanded&&Y.display),typeof F.lazy=="boolean"&&(typeof F.loaded=="boolean"&&F.loaded&&(Y.noLazyChildren=!(F.children&&F.children.length)),Y.loading=F.loading)),J++,ee.push(b(B,C+J,Y)),F){const Q=L.value[K]||B[O.value];me(Q,F)}})};F.display=!0;const we=L.value[U]||S[O.value];me(we,F)}return ee}else return b(S,C,void 0)},tooltipContent:f,tooltipTrigger:c}}const WV={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 GV=ie({name:"ElTableBody",props:WV,setup(e){const t=it(),r=Le(ri),n=Oe("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}=VV(e),{onColumnsChange:s,onScrollableChange:l}=JA(r);return be(e.store.states.hoverRow,(u,f)=>{!e.store.states.isComplex.value||!At||q3(()=>{const c=t==null?void 0:t.vnode.el,h=Array.from((c==null?void 0:c.children)||[]).filter(p=>p==null?void 0:p.classList.contains(`${n.e("row")}`)),d=h[f],v=h[u];d&&so(d,"hover-row"),v&&Za(v,"hover-row")})}),ks(()=>{var u;(u=Xr)==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 Te("tbody",{tabIndex:-1},[r.reduce((n,i)=>n.concat(e(i,n.length)),[])])}});function UV(){const e=Le(ri),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 YV(e){const{columns:t}=UV(),r=Oe("table");return{getCellClasses:(a,o)=>{const s=a[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...Ky(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=Xy(o,a.fixed,e.store);return As(s,"left"),As(s,"right"),s},columns:t}}var jV=ie({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}=YV(e);return{ns:Oe("table"),getCellClasses:t,getCellStyles:r,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:n,sumText:i}=this,a=this.store.states.data.value;let o=[];return n?o=n({columns:e,data:a}):e.forEach((s,l)=>{if(l===0){o[l]=i;return}const u=a.map(d=>Number(d[s.property])),f=[];let c=!0;u.forEach(d=>{if(!Number.isNaN(+d)){c=!1;const v=`${d}`.split(".")[1];f.push(v?v.length:0)}});const h=Math.max.apply(null,f);c?o[l]="":o[l]=u.reduce((d,v)=>{const p=Number(v);return Number.isNaN(+p)?d:Number.parseFloat((d+v).toFixed(Math.min(h,20)))},0)}),Te(Te("tfoot",[Te("tr",{},[...e.map((s,l)=>Te("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:r(e,l),style:t(s,l)},[Te("div",{class:["cell",s.labelClassName]},[o[l]])]))])]))}});function qV(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,c)=>{e.toggleRowSelection(f,c,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,c)=>{e.toggleRowExpansionAdapter(f,c)},clearSort:()=>{e.clearSort()},sort:(f,c)=>{e.commit("sort",{prop:f,order:c})}}}function KV(e,t,r,n){const i=$(!1),a=$(null),o=$(!1),s=F=>{o.value=F},l=$({width:null,height:null,headerHeight:null}),u=$(!1),f={display:"inline-block",verticalAlign:"middle"},c=$(),h=$(0),d=$(0),v=$(0),p=$(0),m=$(0);na(()=>{t.setHeight(e.height)}),na(()=>{t.setMaxHeight(e.maxHeight)}),be(()=>[e.currentRowKey,r.states.rowKey],([F,z])=>{!T(z)||!T(F)||r.setCurrentRowKey(`${F}`)},{immediate:!0}),be(()=>e.data,F=>{n.store.commit("setData",F)},{immediate:!0,deep:!0}),na(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},y=(F,z)=>{const{pixelX:ee,pixelY:J}=z;Math.abs(ee)>=Math.abs(J)&&(n.refs.bodyWrapper.scrollLeft+=z.pixelX/5)},_=k(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),b=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{_.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(M)};_t(async()=>{await Nt(),r.updateColumns(),A(),requestAnimationFrame(x);const F=n.vnode.el,z=n.refs.headerWrapper;e.flexible&&F&&F.parentElement&&(F.parentElement.style.minWidth="0"),l.value={width:c.value=F.offsetWidth,height:F.offsetHeight,headerHeight:e.showHeader&&z?z.offsetHeight:null},r.states.columns.value.forEach(ee=>{ee.filteredValue&&ee.filteredValue.length&&n.store.commit("filterChange",{column:ee,values:ee.filteredValue,silent:!0})}),n.$ready=!0});const w=(F,z)=>{if(!F)return;const ee=Array.from(F.classList).filter(J=>!J.startsWith("is-scrolling-"));ee.push(t.scrollX.value?z:"is-scrolling-none"),F.className=ee.join(" ")},S=F=>{const{tableWrapper:z}=n.refs;w(z,F)},C=F=>{const{tableWrapper:z}=n.refs;return!!(z&&z.classList.contains(F))},M=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const Ie="is-scrolling-none";C(Ie)||S(Ie);return}const F=n.refs.scrollBarRef.wrapRef;if(!F)return;const{scrollLeft:z,offsetWidth:ee,scrollWidth:J}=F,{headerWrapper:me,footerWrapper:we}=n.refs;me&&(me.scrollLeft=z),we&&(we.scrollLeft=z);const $e=J-ee-1;z>=$e?S("is-scrolling-right"):S(z===0?"is-scrolling-left":"is-scrolling-middle")},A=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&xn(n.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),e.fit?ms(n.vnode.el,P):xn(window,"resize",P),ms(n.refs.bodyWrapper,()=>{var F,z;P(),(z=(F=n.refs)==null?void 0:F.scrollBarRef)==null||z.update()}))},P=()=>{var F,z,ee,J;const me=n.vnode.el;if(!n.$ready||!me)return;let we=!1;const{width:$e,height:Ie,headerHeight:B}=l.value,Y=c.value=me.offsetWidth;$e!==Y&&(we=!0);const K=me.offsetHeight;(e.height||_.value)&&Ie!==K&&(we=!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)!==B&&(we=!0),h.value=((z=n.refs.tableWrapper)==null?void 0:z.scrollHeight)||0,v.value=(Q==null?void 0:Q.scrollHeight)||0,p.value=((ee=n.refs.footerWrapper)==null?void 0:ee.offsetHeight)||0,m.value=((J=n.refs.appendWrapper)==null?void 0:J.offsetHeight)||0,d.value=h.value-v.value-p.value-m.value,we&&(l.value={width:Y,height:K,headerHeight:e.showHeader&&(Q==null?void 0:Q.offsetHeight)||0},x())},E=xi(),L=k(()=>{const{bodyWidth:F,scrollY:z,gutterWidth:ee}=t;return F.value?`${F.value-(z.value?ee:0)}px`:""}),O=k(()=>e.maxHeight?"fixed":e.tableLayout),N=k(()=>{if(e.data&&e.data.length)return null;let F="100%";e.height&&d.value&&(F=`${d.value}px`);const z=c.value;return{width:z?`${z}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`}:{}),V=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`}:{maxHeight:`${e.maxHeight-v.value-p.value}px`}:{});return{isHidden:i,renderExpanded:a,setDragVisible:s,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:y,tableSize:E,emptyBlockStyle:N,handleFixedMousewheel:(F,z)=>{const ee=n.refs.bodyWrapper;if(Math.abs(z.spinY)>0){const J=ee.scrollTop;z.pixelY<0&&J!==0&&F.preventDefault(),z.pixelY>0&&ee.scrollHeight-ee.clientHeight>J&&F.preventDefault(),ee.scrollTop+=Math.ceil(z.pixelY/5)}else ee.scrollLeft+=Math.ceil(z.pixelX/5)},resizeProxyVisible:o,bodyWidth:L,resizeState:l,doLayout:x,tableBodyStyles:b,tableLayout:O,scrollbarViewStyle:f,tableInnerStyle:H,scrollbarStyle:V}}function XV(e){const t=$(),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)};_t(()=>{r()}),ks(()=>{var n;(n=t.value)==null||n.disconnect()})}var ZV={data:{type:Array,default:()=>[]},size:dh,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,showOverflowTooltip:[Boolean,Object]};function t2(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 Te("colgroup",{},r.map(i=>Te("col",n(i))))}t2.props=["columns","tableLayout"];const QV=()=>{const e=$(),t=(a,o)=>{const s=e.value;s&&s.scrollTo(a,o)},r=(a,o)=>{const s=e.value;s&&kt(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 JV=1;const eW=ie({name:"ElTable",directives:{Mousewheel:d8},components:{TableHeader:$V,TableBody:GV,TableFooter:jV,ElScrollbar:uA,hColgroup:t2},props:ZV,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}=Hs(),r=Oe("table"),n=it();Dt(ri,n);const i=TV(n,e);n.store=i;const a=new AV({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:f,clearFilter:c,toggleAllSelection:h,toggleRowExpansion:d,clearSort:v,sort:p}=qV(i),{isHidden:m,renderExpanded:g,setDragVisible:y,isGroup:_,handleMouseLeave:b,handleHeaderFooterMousewheel:x,tableSize:w,emptyBlockStyle:S,handleFixedMousewheel:C,resizeProxyVisible:M,bodyWidth:A,resizeState:P,doLayout:E,tableBodyStyles:L,tableLayout:O,scrollbarViewStyle:N,tableInnerStyle:H,scrollbarStyle:V}=KV(e,a,i,n),{scrollBarRef:U,scrollTo:F,setScrollLeft:z,setScrollTop:ee}=QV(),J=hd(E,50),me=`${r.namespace.value}-table_${JV++}`;n.tableId=me,n.state={isGroup:_,resizeState:P,doLayout:E,debouncedUpdateLayout:J};const we=k(()=>e.sumText||t("el.table.sumText")),$e=k(()=>e.emptyText||t("el.table.emptyText"));return XV(n),{ns:r,layout:a,store:i,handleHeaderFooterMousewheel:x,handleMouseLeave:b,tableId:me,tableSize:w,isHidden:m,isEmpty:o,renderExpanded:g,resizeProxyVisible:M,resizeState:P,isGroup:_,bodyWidth:A,tableBodyStyles:L,emptyBlockStyle:S,debouncedUpdateLayout:J,handleFixedMousewheel:C,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:f,clearFilter:c,toggleAllSelection:h,toggleRowExpansion:d,clearSort:v,doLayout:E,sort:p,t,setDragVisible:y,context:n,computedSumText:we,computedEmptyText:$e,tableLayout:O,scrollbarViewStyle:N,tableInnerStyle:H,scrollbarStyle:V,scrollBarRef:U,scrollTo:F,setScrollLeft:z,setScrollTop:ee}}}),tW=["data-prefix"],rW={ref:"hiddenColumns",class:"hidden-columns"};function nW(e,t,r,n,i,a){const o=xr("hColgroup"),s=xr("table-header"),l=xr("table-body"),u=xr("table-footer"),f=xr("el-scrollbar"),c=fT("mousewheel");return G(),ce("div",{ref:"tableWrapper",class:re([{[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:ct(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[te("div",{class:re(e.ns.e("inner-wrapper")),style:ct(e.tableInnerStyle)},[te("div",rW,[Ce(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?qt((G(),ce("div",{key:0,ref:"headerWrapper",class:re(e.ns.e("header-wrapper"))},[te("table",{ref:"tableHeader",class:re(e.ns.e("header")),style:ct(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Z(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Z(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[c,e.handleHeaderFooterMousewheel]]):Ae("v-if",!0),te("div",{ref:"bodyWrapper",class:re(e.ns.e("body-wrapper"))},[Z(f,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:q(()=>[te("table",{ref:"tableBody",class:re(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:ct({width:e.bodyWidth,tableLayout:e.tableLayout})},[Z(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(G(),ve(s,{key:0,ref:"tableHeaderRef",class:re(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):Ae("v-if",!0),Z(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"]),e.showSummary&&e.tableLayout==="auto"?(G(),ve(u,{key:1,class:re(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):Ae("v-if",!0)],6),e.isEmpty?(G(),ce("div",{key:0,ref:"emptyBlock",style:ct(e.emptyBlockStyle),class:re(e.ns.e("empty-block"))},[te("span",{class:re(e.ns.e("empty-text"))},[Ce(e.$slots,"empty",{},()=>[pt(xe(e.computedEmptyText),1)])],2)],6)):Ae("v-if",!0),e.$slots.append?(G(),ce("div",{key:1,ref:"appendWrapper",class:re(e.ns.e("append-wrapper"))},[Ce(e.$slots,"append")],2)):Ae("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?qt((G(),ce("div",{key:1,ref:"footerWrapper",class:re(e.ns.e("footer-wrapper"))},[te("table",{class:re(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:ct(e.tableBodyStyles)},[Z(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Z(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Kn,!e.isEmpty],[c,e.handleHeaderFooterMousewheel]]):Ae("v-if",!0),e.border||e.isGroup?(G(),ce("div",{key:2,class:re(e.ns.e("border-left-patch"))},null,2)):Ae("v-if",!0)],6),qt(te("div",{ref:"resizeProxy",class:re(e.ns.e("column-resize-proxy"))},null,2),[[Kn,e.resizeProxyVisible]])],46,tW)}var iW=Ke(eW,[["render",nW],["__file","table.vue"]]);const aW={selection:"table-column--selection",expand:"table__expand-column"},oW={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:""}},sW=e=>aW[e]||"",lW={selection:{renderHeader({store:e,column:t}){function r(){return e.states.data.value&&e.states.data.value.length===0}return Te(Ms,{disabled:r(),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,ariaLabel:t.label})},renderCell({row:e,column:t,store:r,$index:n}){return Te(Ms,{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),ariaLabel:t.label})},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)),Te("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")),Te("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Te(Bt,null,{default:()=>[Te(Ey)]})]})},sortable:!1,resizable:!1}};function uW({row:e,column:t,$index:r}){var n;const i=t.property,a=i&&Ec(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 fW({row:e,treeNode:t,store:r},n=!1){const{ns:i}=r;if(!t)return n?[Te("span",{class:i.e("placeholder")})]:null;const a=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&a.push(Te("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=Ey;t.loading&&(l=Ly),a.push(Te("div",{class:s,onClick:o},{default:()=>[Te(Bt,{class:{[i.is("loading")]:t.loading}},{default:()=>[Te(l)]})]}))}else a.push(Te("span",{class:i.e("placeholder")}));return a}function O1(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function cW(e,t){const r=it();return{registerComplexWatchers:()=>{const a=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=O1(a,o);Object.keys(s).forEach(l=>{const u=o[l];Ue(t,u)&&be(()=>t[u],f=>{let c=f;u==="width"&&l==="realWidth"&&(c=qy(f)),u==="minWidth"&&l==="realMinWidth"&&(c=qA(f)),r.columnConfig.value[u]=c,r.columnConfig.value[l]=c;const h=u==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=O1(a,o);Object.keys(s).forEach(l=>{const u=o[l];Ue(t,u)&&be(()=>t[u],f=>{r.columnConfig.value[l]=f})})}}}function dW(e,t,r){const n=it(),i=$(""),a=$(!1),o=$(),s=$(),l=Oe("table");na(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),na(()=>{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}),f=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}),c=$(qy(e.width)),h=$(qA(e.minWidth)),d=b=>(c.value&&(b.width=c.value),h.value&&(b.minWidth=h.value),!c.value&&h.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=lW[x]||{};Object.keys(w).forEach(C=>{const M=w[C];C!=="className"&&M!==void 0&&(b[C]=M)});const S=sW(x);if(S){const C=`${T(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:d,setColumnForcedProps:v,setColumnRenders:b=>{e.renderHeader||b.type!=="selection"&&(b.renderHeader=w=>(n.columnConfig.value.label,Ce(t,"header",w,()=>[b.label])));let x=b.renderCell;return b.type==="expand"?(b.renderCell=w=>Te("div",{class:"cell"},[x(w)]),r.value.renderExpanded=w=>t.default?t.default(w):t.default):(x=x||uW,b.renderCell=w=>{let S=null;if(t.default){const L=t.default(w);S=L.some(O=>O.type!==Mr)?L:x(w)}else S=x(w);const{columns:C}=r.value.store.states,M=C.value.findIndex(L=>L.type==="default"),A=f.value&&w.cellIndex===M,P=fW(w,A),E={class:"cell",style:{}};return b.showOverflowTooltip&&(E.class=`${E.class} ${T(l.namespace)}-tooltip`,E.style={width:`${(w.column.realWidth||Number(w.column.width))-1}px`}),p(S),Te("div",E,[P,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 hW={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:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let vW=1;var r2=ie({name:"ElTableColumn",components:{ElCheckbox:Ms},props:hW,setup(e,{slots:t}){const r=it(),n=$({}),i=k(()=>{let _=r.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:a,registerComplexWatchers:o}=cW(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:f,setColumnWidth:c,setColumnForcedProps:h,setColumnRenders:d,getPropsData:v,getColumnElIndex:p,realAlign:m,updateColumnOrder:g}=dW(e,t,i),y=f.value;s.value=`${y.tableId||y.columnId}_column_${vW++}`,eh(()=>{l.value=i.value!==y;const _=e.type||"default",b=e.sortable===""?!0:e.sortable,x=bs(e.showOverflowTooltip)?y.props.showOverflowTooltip:e.showOverflowTooltip,w={...oW[_],id:s.value,type:_,property:e.prop||e.property,align:m,headerAlign:u,showOverflowTooltip:x,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",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","filterClassName"]);P=vV(w,P),P=gV(d,c,h)(P),n.value=P,a(),o()}),_t(()=>{var _;const b=f.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,g)}),tr(()=>{i.value.store.commit("removeColumn",n.value,l.value?y.columnConfig.value:null,g)}),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===ft&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!ze(s==null?void 0:s.children)&&i.push(s)});return Te("div",i)}catch{return Te("div",[])}}});const pW=Yt(iW,{TableColumn:r2}),gW=pa(r2),mW=Je({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:$s,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),yW=ie({name:"ElText"}),_W=ie({...yW,props:mW,setup(e){const t=e,r=xi(),n=Oe("text"),i=k(()=>[n.b(),n.m(t.type),n.m(r.value),n.is("truncated",t.truncated),n.is("line-clamp",!bs(t.lineClamp))]);return(a,o)=>(G(),ve(Vt(a.tag),{class:re(T(i)),style:ct({"-webkit-line-clamp":a.lineClamp})},{default:q(()=>[Ce(a.$slots,"default")]),_:3},8,["class","style"]))}});var bW=Ke(_W,[["__file","text.vue"]]);const wW=Yt(bW),n2=["success","info","warning","error"],wr=ja({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:At?document.body:void 0}),SW=Je({customClass:{type:String,default:wr.customClass},center:{type:Boolean,default:wr.center},dangerouslyUseHTMLString:{type:Boolean,default:wr.dangerouslyUseHTMLString},duration:{type:Number,default:wr.duration},icon:{type:vr,default:wr.icon},id:{type:String,default:wr.id},message:{type:Be([String,Object,Function]),default:wr.message},onClose:{type:Be(Function),required:!1},showClose:{type:Boolean,default:wr.showClose},type:{type:String,values:n2,default:wr.type},offset:{type:Number,default:wr.offset},zIndex:{type:Number,default:wr.zIndex},grouping:{type:Boolean,default:wr.grouping},repeatNum:{type:Number,default:wr.repeatNum}}),xW={destroy:()=>!0},Cn=Qm([]),CW=e=>{const t=Cn.findIndex(i=>i.id===e),r=Cn[t];let n;return t>0&&(n=Cn[t-1]),{current:r,prev:n}},TW=e=>{const{prev:t}=CW(e);return t?t.vm.exposed.bottom.value:0},MW=(e,t)=>Cn.findIndex(n=>n.id===e)>0?20:t,AW=["id"],PW=["innerHTML"],EW=ie({name:"ElMessage"}),LW=ie({...EW,props:SW,emits:xW,setup(e,{expose:t}){const r=e,{Close:n}=G3,{ns:i,zIndex:a}=m4("message"),{currentZIndex:o,nextZIndex:s}=a,l=$(),u=$(!1),f=$(0);let c;const h=k(()=>r.type?r.type==="error"?"danger":r.type:"info"),d=k(()=>{const S=r.type;return{[i.bm("icon",S)]:S&&Wb[S]}}),v=k(()=>r.icon||Wb[r.type]||""),p=k(()=>TW(r.id)),m=k(()=>MW(r.id,r.offset)+p.value),g=k(()=>f.value+m.value),y=k(()=>({top:`${m.value}px`,zIndex:o.value}));function _(){r.duration!==0&&({stop:c}=hu(()=>{x()},r.duration))}function b(){c==null||c()}function x(){u.value=!1}function w({code:S}){S===hr.esc&&x()}return _t(()=>{_(),s(),u.value=!0}),be(()=>r.repeatNum,()=>{b(),_()}),xn(document,"keydown",w),ms(l,()=>{f.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:g,close:x}),(S,C)=>(G(),ve(ti,{name:T(i).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:C[0]||(C[0]=M=>S.$emit("destroy")),persisted:""},{default:q(()=>[qt(te("div",{id:S.id,ref_key:"messageRef",ref:l,class:re([T(i).b(),{[T(i).m(S.type)]:S.type},T(i).is("center",S.center),T(i).is("closable",S.showClose),S.customClass]),style:ct(T(y)),role:"alert",onMouseenter:b,onMouseleave:_},[S.repeatNum>1?(G(),ve(T(Nz),{key:0,value:S.repeatNum,type:T(h),class:re(T(i).e("badge"))},null,8,["value","type","class"])):Ae("v-if",!0),T(v)?(G(),ve(T(Bt),{key:1,class:re([T(i).e("icon"),T(d)])},{default:q(()=>[(G(),ve(Vt(T(v))))]),_:1},8,["class"])):Ae("v-if",!0),Ce(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(G(),ce(ft,{key:1},[Ae(" Caution here, message could've been compromised, never use user's input as message "),te("p",{class:re(T(i).e("content")),innerHTML:S.message},null,10,PW)],2112)):(G(),ce("p",{key:0,class:re(T(i).e("content"))},xe(S.message),3))]),S.showClose?(G(),ve(T(Bt),{key:2,class:re(T(i).e("closeBtn")),onClick:ua(x,["stop"])},{default:q(()=>[Z(T(n))]),_:1},8,["class","onClick"])):Ae("v-if",!0)],46,AW),[[Kn,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var DW=Ke(LW,[["__file","message.vue"]]);let IW=1;const i2=e=>{const t=!e||ze(e)||la(e)||De(e)?{message:e}:e,r={...wr,...t};if(!r.appendTo)r.appendTo=document.body;else if(ze(r.appendTo)){let n=document.querySelector(r.appendTo);mo(n)||(n=document.body),r.appendTo=n}return r},OW=e=>{const t=Cn.indexOf(e);if(t===-1)return;Cn.splice(t,1);const{handler:r}=e;r.close()},RW=({appendTo:e,...t},r)=>{const n=`message_${IW++}`,i=t.onClose,a=document.createElement("div"),o={...t,id:n,onClose:()=>{i==null||i(),OW(f)},onDestroy:()=>{ld(null,a)}},s=Z(DW,o,De(o.message)||la(o.message)?{default:De(o.message)?o.message:()=>o.message}:null);s.appContext=r||Ps._context,ld(s,a),e.appendChild(a.firstElementChild);const l=s.component,f={id:n,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return f},Ps=(e={},t)=>{if(!At)return{close:()=>{}};if(kt(i1.max)&&Cn.length>=i1.max)return{close:()=>{}};const r=i2(e);if(r.grouping&&Cn.length){const i=Cn.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=RW(r,t);return Cn.push(n),n.handler};n2.forEach(e=>{Ps[e]=(t={},r)=>{const n=i2(t);return Ps({...n,type:e},r)}});function kW(e){for(const t of Cn)(!e||e===t.props.type)&&t.handler.close()}Ps.closeAll=kW;Ps._context=null;const Wl=U3(Ps,"$message"),NW={id:"app"},BW={class:"grid-content header-color"},FW={class:"header-content"},$W=te("div",{class:"brand"},[te("a",{href:"#"},"frp")],-1),HW={class:"dark-switch"},zW=te("span",null,"Proxies",-1),VW={id:"content"},WW=te("footer",null,null,-1),GW=ie({__name:"App",setup(e){const t=XR(),r=$(t),n=mR(t),i=a=>{a==""&&window.open("https://github.com/fatedier/frp")};return(a,o)=>{const s=cV,l=H6,u=z6,f=$6,c=$A,h=xr("router-view"),d=FA;return G(),ce("div",NW,[te("header",BW,[te("div",FW,[$W,te("div",HW,[Z(s,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=v=>r.value=v),"inline-prompt":"","active-text":"Dark","inactive-text":"Light",onChange:T(n),style:{"--el-switch-on-color":"#444452","--el-switch-off-color":"#589ef8"}},null,8,["modelValue","onChange"])])])]),te("section",null,[Z(d,null,{default:q(()=>[Z(c,{id:"side-nav",xs:24,md:4},{default:q(()=>[Z(f,{"default-active":"/",mode:"vertical",theme:"light",router:"false",onSelect:i},{default:q(()=>[Z(l,{index:"/"},{default:q(()=>[pt("Overview")]),_:1}),Z(u,{index:"/proxies"},{title:q(()=>[zW]),default:q(()=>[Z(l,{index:"/proxies/tcp"},{default:q(()=>[pt("TCP")]),_:1}),Z(l,{index:"/proxies/udp"},{default:q(()=>[pt("UDP")]),_:1}),Z(l,{index:"/proxies/http"},{default:q(()=>[pt("HTTP")]),_:1}),Z(l,{index:"/proxies/https"},{default:q(()=>[pt("HTTPS")]),_:1}),Z(l,{index:"/proxies/tcpmux"},{default:q(()=>[pt("TCPMUX")]),_:1}),Z(l,{index:"/proxies/stcp"},{default:q(()=>[pt("STCP")]),_:1}),Z(l,{index:"/proxies/sudp"},{default:q(()=>[pt("SUDP")]),_:1})]),_:1}),Z(l,{index:""},{default:q(()=>[pt("Help")]),_:1})]),_:1})]),_:1}),Z(c,{xs:24,md:20},{default:q(()=>[te("div",VW,[Z(h)])]),_:1})]),_:1})]),WW])}}});/*!
   * vue-router v4.2.5
   * (c) 2023 Eduardo San Martin Morote
   * @license MIT
-  */const Ko=typeof window<"u";function UW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const lt=Object.assign;function dv(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 Gl=()=>{},En=Array.isArray,YW=/\/$/,jW=e=>e.replace(YW,"");function hv(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=ZW(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function qW(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function R1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KW(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])&&a2(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 a2(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!XW(e[r],t[r]))return!1;return!0}function XW(e,t){return En(e)?k1(e,t):En(t)?k1(t,e):e===t}function k1(e,t){return En(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function ZW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=r.length-1,o,s;for(o=0;o<n.length;o++)if(s=n[o],s!==".")if(s==="..")a>1&&a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(o-(o===n.length?1:0)).join("/")}var Tu;(function(e){e.pop="pop",e.push="push"})(Tu||(Tu={}));var Ul;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ul||(Ul={}));function QW(e){if(!e)if(Ko){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jW(e)}const JW=/^[^#]+#/;function eG(e,t){return e.replace(JW,"#")+t}function tG(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 gh=()=>({left:window.pageXOffset,top:window.pageYOffset});function rG(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=tG(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 N1(e,t){return(history.state?history.state.position-t:-1)+e}const Lg=new Map;function nG(e,t){Lg.set(e,t)}function iG(e){const t=Lg.get(e);return Lg.delete(e),t}let aG=()=>location.protocol+"//"+location.host;function o2(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),R1(l,"")}return R1(r,e)+n+i}function oG(e,t,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const d=o2(e,location),v=r.value,p=t.value;let m=0;if(h){if(r.value=d,t.value=h,o&&o===v){o=null;return}m=p?h.position-p.position:0}else n(d);i.forEach(g=>{g(r.value,v,{delta:m,type:Tu.pop,direction:m?m>0?Ul.forward:Ul.back:Ul.unknown})})};function l(){o=r.value}function u(h){i.push(h);const d=()=>{const v=i.indexOf(h);v>-1&&i.splice(v,1)};return a.push(d),d}function f(){const{history:h}=window;h.state&&h.replaceState(lt({},h.state,{scroll:gh()}),"")}function c(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:u,destroy:c}}function B1(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?gh():null}}function sG(e){const{history:t,location:r}=window,n={value:o2(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=e.indexOf("#"),h=c>-1?(r.host&&document.querySelector("base")?e:e.slice(c))+l:aG()+e+l;try{t[f?"replaceState":"pushState"](u,"",h),i.value=u}catch(d){console.error(d),r[f?"replace":"assign"](h)}}function o(l,u){const f=lt({},t.state,B1(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,f,!0),n.value=l}function s(l,u){const f=lt({},i.value,t.state,{forward:l,scroll:gh()});a(f.current,f,!0);const c=lt({},B1(n.value,l,null),{position:f.position+1},u);a(l,c,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function lG(e){e=QW(e);const t=sG(e),r=oG(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:eG.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 uG(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),lG(e)}function fG(e){return typeof e=="string"||e&&typeof e=="object"}function s2(e){return typeof e=="string"||typeof e=="symbol"}const Ri={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},l2=Symbol("");var F1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(F1||(F1={}));function Ps(e,t){return lt(new Error,{type:e,[l2]:!0},t)}function li(e,t){return e instanceof Error&&l2 in e&&(t==null||!!(e.type&t))}const $1="[^/]+?",cG={sensitive:!1,strict:!1,start:!0,end:!0},dG=/[.+*?^${}()[\]/\\]/g;function hG(e,t){const r=lt({},cG,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let c=0;c<u.length;c++){const h=u[c];let d=40+(r.sensitive?.25:0);if(h.type===0)c||(i+="/"),i+=h.value.replace(dG,"\\$&"),d+=40;else if(h.type===1){const{value:v,repeatable:p,optional:m,regexp:g}=h;a.push({name:v,repeatable:p,optional:m});const y=g||$1;if(y!==$1){d+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${v}" (${y}): `+b.message)}}let _=p?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;c||(_=m&&u.length<2?`(?:/${_})`:"/"+_),m&&(_+="?"),i+=_,d+=20,m&&(d+=-8),p&&(d+=-20),y===".*"&&(d+=-50)}f.push(d)}n.push(f)}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 f=u.match(o),c={};if(!f)return null;for(let h=1;h<f.length;h++){const d=f[h]||"",v=a[h-1];c[v.name]=d&&v.repeatable?d.split("/"):d}return c}function l(u){let f="",c=!1;for(const h of e){(!c||!f.endsWith("/"))&&(f+="/"),c=!1;for(const d of h)if(d.type===0)f+=d.value;else if(d.type===1){const{value:v,repeatable:p,optional:m}=d,g=v in u?u[v]:"";if(En(g)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const y=En(g)?g.join("/"):g;if(!y)if(m)h.length<2&&(f.endsWith("/")?f=f.slice(0,-1):c=!0);else throw new Error(`Missing required param "${v}"`);f+=y}}return f||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function vG(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]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function pG(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const a=vG(n[r],i[r]);if(a)return a;r++}if(Math.abs(i.length-n.length)===1){if(H1(n))return 1;if(H1(i))return-1}return i.length-n.length}function H1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const gG={type:0,value:""},mG=/[a-zA-Z0-9_]/;function yG(e){if(!e)return[[]];if(e==="/")return[[gG]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${r})/"${u}": ${d}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&c(),o()):l===":"?(c(),r=1):h();break;case 4:h(),r=n;break;case 1:l==="("?r=2:mG.test(l)?h():(c(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:r=3:f+=l;break;case 3:c(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,f="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),o(),i}function _G(e,t,r){const n=hG(yG(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 bG(e,t){const r=[],n=new Map;t=W1({strict:!1,end:!0,sensitive:!1},t);function i(f){return n.get(f)}function a(f,c,h){const d=!h,v=wG(f);v.aliasOf=h&&h.record;const p=W1(t,f),m=[v];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const b of _)m.push(lt({},v,{components:h?h.record.components:v.components,path:b,aliasOf:h?h.record:v}))}let g,y;for(const _ of m){const{path:b}=_;if(c&&b[0]!=="/"){const x=c.record.path,w=x[x.length-1]==="/"?"":"/";_.path=c.record.path+(b&&w+b)}if(g=_G(_,c,p),h?h.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),d&&f.name&&!V1(g)&&o(f.name)),v.children){const x=v.children;for(let w=0;w<x.length;w++)a(x[w],g,h&&h.children[w])}h=h||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&l(g)}return y?()=>{o(y)}:Gl}function o(f){if(s2(f)){const c=n.get(f);c&&(n.delete(f),r.splice(r.indexOf(c),1),c.children.forEach(o),c.alias.forEach(o))}else{const c=r.indexOf(f);c>-1&&(r.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){let c=0;for(;c<r.length&&pG(f,r[c])>=0&&(f.record.path!==r[c].record.path||!u2(f,r[c]));)c++;r.splice(c,0,f),f.record.name&&!V1(f)&&n.set(f.record.name,f)}function u(f,c){let h,d={},v,p;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw Ps(1,{location:f});p=h.record.name,d=lt(z1(c.params,h.keys.filter(y=>!y.optional).map(y=>y.name)),f.params&&z1(f.params,h.keys.map(y=>y.name))),v=h.stringify(d)}else if("path"in f)v=f.path,h=r.find(y=>y.re.test(v)),h&&(d=h.parse(v),p=h.record.name);else{if(h=c.name?n.get(c.name):r.find(y=>y.re.test(c.path)),!h)throw Ps(1,{location:f,currentLocation:c});p=h.record.name,d=lt({},c.params,f.params),v=h.stringify(d)}const m=[];let g=h;for(;g;)m.unshift(g.record),g=g.parent;return{name:p,path:v,params:d,matched:m,meta:xG(m)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function z1(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function wG(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:SG(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 SG(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=="object"?r[n]:r;return t}function V1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xG(e){return e.reduce((t,r)=>lt(t,r.meta),{})}function W1(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function u2(e,t){return t.children.some(r=>r===e||u2(e,r))}const f2=/#/g,CG=/&/g,TG=/\//g,MG=/=/g,AG=/\?/g,c2=/\+/g,PG=/%5B/g,EG=/%5D/g,d2=/%5E/g,LG=/%60/g,h2=/%7B/g,DG=/%7C/g,v2=/%7D/g,IG=/%20/g;function Zy(e){return encodeURI(""+e).replace(DG,"|").replace(PG,"[").replace(EG,"]")}function OG(e){return Zy(e).replace(h2,"{").replace(v2,"}").replace(d2,"^")}function Dg(e){return Zy(e).replace(c2,"%2B").replace(IG,"+").replace(f2,"%23").replace(CG,"%26").replace(LG,"`").replace(h2,"{").replace(v2,"}").replace(d2,"^")}function RG(e){return Dg(e).replace(MG,"%3D")}function kG(e){return Zy(e).replace(f2,"%23").replace(AG,"%3F")}function NG(e){return e==null?"":kG(e).replace(TG,"%2F")}function yd(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function BG(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(c2," "),o=a.indexOf("="),s=yd(o<0?a:a.slice(0,o)),l=o<0?null:yd(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 G1(e){let t="";for(let r in e){const n=e[r];if(r=RG(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(En(n)?n.map(a=>a&&Dg(a)):[n&&Dg(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function FG(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 $G=Symbol(""),U1=Symbol(""),Qy=Symbol(""),p2=Symbol(""),Ig=Symbol("");function el(){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.slice(),reset:r}}function Xi(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(Ps(4,{from:r,to:t})):c instanceof Error?s(c):fG(c)?s(Ps(2,{from:t,to:c})):(a&&n.enterCallbacks[i]===a&&typeof c=="function"&&a.push(c),o())},u=e.call(n&&n.instances[i],t,r,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function vv(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(HG(s)){const u=(s.__vccOpts||s)[t];u&&i.push(Xi(u,r,n,a,o))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=UW(u)?u.default:u;a.components[o]=f;const h=(f.__vccOpts||f)[t];return h&&Xi(h,r,n,a,o)()}))}}return i}function HG(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Y1(e){const t=Le(Qy),r=Le(p2),n=k(()=>t.resolve(T(e.to))),i=k(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const h=c.findIndex(As.bind(null,f));if(h>-1)return h;const d=j1(l[u-2]);return u>1&&j1(f)===d&&c[c.length-1].path!==d?c.findIndex(As.bind(null,l[u-2])):h}),a=k(()=>i.value>-1&&GG(r.params,n.value.params)),o=k(()=>i.value>-1&&i.value===r.matched.length-1&&a2(r.params,n.value.params));function s(l={}){return WG(l)?t[T(e.replace)?"replace":"push"](T(e.to)).catch(Gl):Promise.resolve()}return{route:n,href:k(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const zG=ie({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:Y1,setup(e,{slots:t}){const r=Ln(Y1(e)),{options:n}=Le(Qy),i=k(()=>({[q1(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[q1(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:Te("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),VG=zG;function WG(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 GG(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 j1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const q1=(e,t,r)=>e??t??r,UG=ie({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Le(Ig),i=k(()=>e.route||n.value),a=Le(U1,0),o=k(()=>{let u=T(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=k(()=>i.value.matched[o.value]);Dt(U1,k(()=>o.value+1)),Dt($G,s),Dt(Ig,i);const l=$();return we(()=>[l.value,s.value,e.name],([u,f,c],[h,d,v])=>{f&&(f.instances[c]=u,d&&d!==f&&u&&u===h&&(f.leaveGuards.size||(f.leaveGuards=d.leaveGuards),f.updateGuards.size||(f.updateGuards=d.updateGuards))),u&&f&&(!d||!As(f,d)||!h)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=e.name,c=s.value,h=c&&c.components[f];if(!h)return K1(r.default,{Component:h,route:u});const d=c.props[f],v=d?d===!0?u.params:typeof d=="function"?d(u):d:null,m=Te(h,lt({},v,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return K1(r.default,{Component:m,route:u})||m}}});function K1(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const YG=UG;function jG(e){const t=bG(e.routes,e),r=e.parseQuery||BG,n=e.stringifyQuery||G1,i=e.history,a=el(),o=el(),s=el(),l=ty(Ri);let u=Ri;Ko&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=dv.bind(null,B=>""+B),c=dv.bind(null,NG),h=dv.bind(null,yd);function d(B,Y){let K,Q;return s2(B)?(K=t.getRecordMatcher(B),Q=Y):Q=B,t.addRoute(Q,K)}function v(B){const Y=t.getRecordMatcher(B);Y&&t.removeRoute(Y)}function p(){return t.getRoutes().map(B=>B.record)}function m(B){return!!t.getRecordMatcher(B)}function g(B,Y){if(Y=lt({},Y||l.value),typeof B=="string"){const I=hv(r,B,Y.path),W=t.resolve({path:I.path},Y),X=i.createHref(I.fullPath);return lt(I,W,{params:h(W.params),hash:yd(I.hash),redirectedFrom:void 0,href:X})}let K;if("path"in B)K=lt({},B,{path:hv(r,B.path,Y.path).path});else{const I=lt({},B.params);for(const W in I)I[W]==null&&delete I[W];K=lt({},B,{params:c(I)}),Y.params=c(Y.params)}const Q=t.resolve(K,Y),oe=B.hash||"";Q.params=f(h(Q.params));const pe=qW(n,lt({},B,{hash:OG(oe),path:Q.path})),D=i.createHref(pe);return lt({fullPath:pe,hash:oe,query:n===G1?FG(B.query):B.query||{}},Q,{redirectedFrom:void 0,href:D})}function y(B){return typeof B=="string"?hv(r,B,l.value.path):lt({},B)}function _(B,Y){if(u!==B)return Ps(8,{from:Y,to:B})}function b(B){return S(B)}function x(B){return b(lt(y(B),{replace:!0}))}function w(B){const Y=B.matched[B.matched.length-1];if(Y&&Y.redirect){const{redirect:K}=Y;let Q=typeof K=="function"?K(B):K;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=y(Q):{path:Q},Q.params={}),lt({query:B.query,hash:B.hash,params:"path"in Q?{}:B.params},Q)}}function S(B,Y){const K=u=g(B),Q=l.value,oe=B.state,pe=B.force,D=B.replace===!0,I=w(K);if(I)return S(lt(y(I),{state:typeof I=="object"?lt({},oe,I.state):oe,force:pe,replace:D}),Y||K);const W=K;W.redirectedFrom=Y;let X;return!pe&&KW(n,Q,K)&&(X=Ps(16,{to:W,from:Q}),te(Q,Q,!0,!1)),(X?Promise.resolve(X):A(W,Q)).catch(q=>li(q)?li(q,2)?q:z(q):U(q,W,Q)).then(q=>{if(q){if(li(q,2))return S(lt({replace:D},y(q.to),{state:typeof q.to=="object"?lt({},oe,q.to.state):oe,force:pe}),Y||W)}else q=E(W,Q,!0,D,oe);return P(W,Q,q),q})}function C(B,Y){const K=_(B,Y);return K?Promise.reject(K):Promise.resolve()}function M(B){const Y=Se.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(B):B()}function A(B,Y){let K;const[Q,oe,pe]=qG(B,Y);K=vv(Q.reverse(),"beforeRouteLeave",B,Y);for(const I of Q)I.leaveGuards.forEach(W=>{K.push(Xi(W,B,Y))});const D=C.bind(null,B,Y);return K.push(D),Ie(K).then(()=>{K=[];for(const I of a.list())K.push(Xi(I,B,Y));return K.push(D),Ie(K)}).then(()=>{K=vv(oe,"beforeRouteUpdate",B,Y);for(const I of oe)I.updateGuards.forEach(W=>{K.push(Xi(W,B,Y))});return K.push(D),Ie(K)}).then(()=>{K=[];for(const I of pe)if(I.beforeEnter)if(En(I.beforeEnter))for(const W of I.beforeEnter)K.push(Xi(W,B,Y));else K.push(Xi(I.beforeEnter,B,Y));return K.push(D),Ie(K)}).then(()=>(B.matched.forEach(I=>I.enterCallbacks={}),K=vv(pe,"beforeRouteEnter",B,Y),K.push(D),Ie(K))).then(()=>{K=[];for(const I of o.list())K.push(Xi(I,B,Y));return K.push(D),Ie(K)}).catch(I=>li(I,8)?I:Promise.reject(I))}function P(B,Y,K){s.list().forEach(Q=>M(()=>Q(B,Y,K)))}function E(B,Y,K,Q,oe){const pe=_(B,Y);if(pe)return pe;const D=Y===Ri,I=Ko?history.state:{};K&&(Q||D?i.replace(B.fullPath,lt({scroll:D&&I&&I.scroll},oe)):i.push(B.fullPath,oe)),l.value=B,te(B,Y,K,D),z()}let L;function O(){L||(L=i.listen((B,Y,K)=>{if(!$e.listening)return;const Q=g(B),oe=w(Q);if(oe){S(lt(oe,{replace:!0}),Q).catch(Gl);return}u=Q;const pe=l.value;Ko&&nG(N1(pe.fullPath,K.delta),gh()),A(Q,pe).catch(D=>li(D,12)?D:li(D,2)?(S(D.to,Q).then(I=>{li(I,20)&&!K.delta&&K.type===Tu.pop&&i.go(-1,!1)}).catch(Gl),Promise.reject()):(K.delta&&i.go(-K.delta,!1),U(D,Q,pe))).then(D=>{D=D||E(Q,pe,!1),D&&(K.delta&&!li(D,8)?i.go(-K.delta,!1):K.type===Tu.pop&&li(D,20)&&i.go(-1,!1)),P(Q,pe,D)}).catch(Gl)}))}let N=el(),H=el(),V;function U(B,Y,K){z(B);const Q=H.list();return Q.length?Q.forEach(oe=>oe(B,Y,K)):console.error(B),Promise.reject(B)}function F(){return V&&l.value!==Ri?Promise.resolve():new Promise((B,Y)=>{N.add([B,Y])})}function z(B){return V||(V=!B,O(),N.list().forEach(([Y,K])=>B?K(B):Y()),N.reset()),B}function te(B,Y,K,Q){const{scrollBehavior:oe}=e;if(!Ko||!oe)return Promise.resolve();const pe=!K&&iG(N1(B.fullPath,0))||(Q||!K)&&history.state&&history.state.scroll||null;return kt().then(()=>oe(B,Y,pe)).then(D=>D&&rG(D)).catch(D=>U(D,B,Y))}const J=B=>i.go(B);let me;const Se=new Set,$e={currentRoute:l,listening:!0,addRoute:d,removeRoute:v,hasRoute:m,getRoutes:p,resolve:g,options:e,push:b,replace:x,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:H.add,isReady:F,install(B){const Y=this;B.component("RouterLink",VG),B.component("RouterView",YG),B.config.globalProperties.$router=Y,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>T(l)}),Ko&&!me&&l.value===Ri&&(me=!0,b(i.location).catch(oe=>{}));const K={};for(const oe in Ri)Object.defineProperty(K,oe,{get:()=>l.value[oe],enumerable:!0});B.provide(Qy,Y),B.provide(p2,Qm(K)),B.provide(Ig,l);const Q=B.unmount;Se.add(B),B.unmount=function(){Se.delete(B),Se.size<1&&(u=Ri,L&&L(),L=null,l.value=Ri,me=!1,V=!1),Q()}}};function Ie(B){return B.reduce((Y,K)=>Y.then(()=>M(K)),Promise.resolve())}return $e}function qG(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 Og={exports:{}};(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()})(a8,function(){var n=[{name:"second",value:1e3},{name:"minute",value:6e4},{name:"hour",value:36e5},{name:"day",value:864e5},{name:"week",value:6048e5}],i={P:Math.pow(2,50),T:Math.pow(2,40),G:Math.pow(2,30),M:Math.pow(2,20)},a=function(c){return typeof c<"u"&&c!==null},o=function(c){return c!==c},s=function(c){return isFinite(c)&&!o(parseFloat(c))},l=function(c){var h=Object.prototype.toString.call(c);return h==="[object Array]"},u={intword:function(c,h){var d=arguments.length<=2||arguments[2]===void 0?2:arguments[2];return u.compactInteger(c,d)},compactInteger:function(c){var h=arguments.length<=1||arguments[1]===void 0?0:arguments[1];h=Math.max(h,0);var d=parseInt(c,10),v=d<0?"-":"",p=Math.abs(d),m=String(p),g=m.length,y=[13,10,7,4],_=["T","B","M","k"];if(p<1e3)return""+v+m;if(g>y[0]+3)return d.toExponential(h).replace("e+","x10^");for(var b=void 0,x=0;x<y.length;x++){var w=y[x];if(g>=w){b=w;break}}var S=g-b+1,C=m.split(""),M=C.slice(0,S),A=C.slice(S,S+h+1),P=M.join(""),E=A.join("");E.length<h&&(E+=""+Array(h-E.length+1).join("0"));var L=void 0;if(h===0)L=""+v+P+_[y.indexOf(b)];else{var O=(+(P+"."+E)).toFixed(h);L=""+v+O+_[y.indexOf(b)]}return L},intComma:function(c){var h=arguments.length<=1||arguments[1]===void 0?0:arguments[1];return u.formatNumber(c,h)},intcomma:function(){return u.intComma.apply(u,arguments)},fileSize:function(c){var h=arguments.length<=1||arguments[1]===void 0?2:arguments[1];for(var d in i)if(i.hasOwnProperty(d)){var v=i[d];if(c>=v)return u.formatNumber(c/v,h,"")+" "+d+"B"}return c>=1024?u.formatNumber(c/1024,0)+" KB":u.formatNumber(c,0)+u.pluralize(c," byte")},filesize:function(){return u.fileSize.apply(u,arguments)},formatNumber:function(c){var h=arguments.length<=1||arguments[1]===void 0?0:arguments[1],d=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:""},m=function(S,C,M){return S.substr(M).replace(/(\d{3})(?=\d)/g,"$1"+C)},g=function(S,C,M){return M?C+u.toFixed(Math.abs(S),M).split(".")[1]:""},y=u.normalizePrecision(h),_=c<0&&"-"||"",b=String(parseInt(u.toFixed(Math.abs(c||0),y),10)),x=b.length>3?b.length%3:0;return _+p(b,d,x)+m(b,d,x)+g(c,v,y)},toFixed:function(c,h){h=a(h)?h:u.normalizePrecision(h,0);var d=Math.pow(10,h);return(Math.round(c*d)/d).toFixed(h)},normalizePrecision:function(c,h){return c=Math.round(Math.abs(c)),o(c)?h:c},ordinal:function(c){var h=parseInt(c,10);if(h===0)return c;var d=h%100;if([11,12,13].indexOf(d)>=0)return h+"th";var v=h%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""+h+p},times:function(c){var h=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(s(c)&&c>=0){var d=parseFloat(c),v=["never","once","twice"];if(a(h[d]))return String(h[d]);var p=a(v[d])&&v[d].toString();return p||d.toString()+" times"}return null},pluralize:function(c,h,d){return a(c)&&a(h)?(d=a(d)?d:h+"s",parseInt(c,10)===1?h:d):null},truncate:function(c){var h=arguments.length<=1||arguments[1]===void 0?100:arguments[1],d=arguments.length<=2||arguments[2]===void 0?"...":arguments[2];return c.length>h?c.substring(0,h-d.length)+d:c},truncateWords:function(c,h){for(var d=c.split(" "),v="",p=0;p<h;)a(d[p])&&(v+=d[p]+" "),p++;return d.length>h?v+"...":null},truncatewords:function(){return u.truncateWords.apply(u,arguments)},boundedNumber:function(c){var h=arguments.length<=1||arguments[1]===void 0?100:arguments[1],d=arguments.length<=2||arguments[2]===void 0?"+":arguments[2],v=void 0;return s(c)&&s(h)&&c>h&&(v=h+d),(v||c).toString()},truncatenumber:function(){return u.boundedNumber.apply(u,arguments)},oxford:function(c,h,d){var v=c.length,p=void 0;if(v<2)return String(c);if(v===2)return c.join(" and ");if(a(h)&&v>h){var m=v-h;p=h,d=a(d)?d:", and "+m+" "+u.pluralize(m,"other")}else p=-1,d=", and "+c[v-1];return c.slice(0,p).join(", ")+d},dictionary:function(c){var h=arguments.length<=1||arguments[1]===void 0?" is ":arguments[1],d=arguments.length<=2||arguments[2]===void 0?", ":arguments[2],v="";if(a(c)&&(typeof c>"u"?"undefined":r(c))==="object"&&!l(c)){var p=[];for(var m in c)if(c.hasOwnProperty(m)){var g=c[m];p.push(""+m+h+g)}return p.join(d)}return v},frequency:function(c,h){if(!l(c))return null;var d=c.length,v=u.times(d);return d===0?v+" "+h:h+" "+v},pace:function(c,h){var d=arguments.length<=2||arguments[2]===void 0?"time":arguments[2];if(c===0||h===0)return"No "+u.pluralize(0,d);for(var v="Approximately",p=void 0,m=void 0,g=c/h,y=0;y<n.length;++y){var _=n[y];if(m=g*_.value,m>1){p=_.name;break}}p||(v="Less than",m=1,p=n[n.length-1].name);var b=Math.round(m);return d=u.pluralize(b,d),v+" "+b+" "+d+" per "+p},nl2br:function(c){var h=arguments.length<=1||arguments[1]===void 0?"<br/>":arguments[1];return c.replace(/\n/g,h)},br2nl:function(c){var h=arguments.length<=1||arguments[1]===void 0?`\r
+  */const Zo=typeof window<"u";function UW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const lt=Object.assign;function dv(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 Gl=()=>{},En=Array.isArray,YW=/\/$/,jW=e=>e.replace(YW,"");function hv(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=ZW(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function qW(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function R1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KW(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Es(t.matched[n],r.matched[i])&&a2(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Es(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function a2(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!XW(e[r],t[r]))return!1;return!0}function XW(e,t){return En(e)?k1(e,t):En(t)?k1(t,e):e===t}function k1(e,t){return En(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function ZW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=r.length-1,o,s;for(o=0;o<n.length;o++)if(s=n[o],s!==".")if(s==="..")a>1&&a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(o-(o===n.length?1:0)).join("/")}var Tu;(function(e){e.pop="pop",e.push="push"})(Tu||(Tu={}));var Ul;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ul||(Ul={}));function QW(e){if(!e)if(Zo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jW(e)}const JW=/^[^#]+#/;function eG(e,t){return e.replace(JW,"#")+t}function tG(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 gh=()=>({left:window.pageXOffset,top:window.pageYOffset});function rG(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=tG(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 N1(e,t){return(history.state?history.state.position-t:-1)+e}const Lg=new Map;function nG(e,t){Lg.set(e,t)}function iG(e){const t=Lg.get(e);return Lg.delete(e),t}let aG=()=>location.protocol+"//"+location.host;function o2(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),R1(l,"")}return R1(r,e)+n+i}function oG(e,t,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const d=o2(e,location),v=r.value,p=t.value;let m=0;if(h){if(r.value=d,t.value=h,o&&o===v){o=null;return}m=p?h.position-p.position:0}else n(d);i.forEach(g=>{g(r.value,v,{delta:m,type:Tu.pop,direction:m?m>0?Ul.forward:Ul.back:Ul.unknown})})};function l(){o=r.value}function u(h){i.push(h);const d=()=>{const v=i.indexOf(h);v>-1&&i.splice(v,1)};return a.push(d),d}function f(){const{history:h}=window;h.state&&h.replaceState(lt({},h.state,{scroll:gh()}),"")}function c(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:u,destroy:c}}function B1(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?gh():null}}function sG(e){const{history:t,location:r}=window,n={value:o2(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=e.indexOf("#"),h=c>-1?(r.host&&document.querySelector("base")?e:e.slice(c))+l:aG()+e+l;try{t[f?"replaceState":"pushState"](u,"",h),i.value=u}catch(d){console.error(d),r[f?"replace":"assign"](h)}}function o(l,u){const f=lt({},t.state,B1(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,f,!0),n.value=l}function s(l,u){const f=lt({},i.value,t.state,{forward:l,scroll:gh()});a(f.current,f,!0);const c=lt({},B1(n.value,l,null),{position:f.position+1},u);a(l,c,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function lG(e){e=QW(e);const t=sG(e),r=oG(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:eG.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 uG(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),lG(e)}function fG(e){return typeof e=="string"||e&&typeof e=="object"}function s2(e){return typeof e=="string"||typeof e=="symbol"}const Ri={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},l2=Symbol("");var F1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(F1||(F1={}));function Ls(e,t){return lt(new Error,{type:e,[l2]:!0},t)}function li(e,t){return e instanceof Error&&l2 in e&&(t==null||!!(e.type&t))}const $1="[^/]+?",cG={sensitive:!1,strict:!1,start:!0,end:!0},dG=/[.+*?^${}()[\]/\\]/g;function hG(e,t){const r=lt({},cG,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let c=0;c<u.length;c++){const h=u[c];let d=40+(r.sensitive?.25:0);if(h.type===0)c||(i+="/"),i+=h.value.replace(dG,"\\$&"),d+=40;else if(h.type===1){const{value:v,repeatable:p,optional:m,regexp:g}=h;a.push({name:v,repeatable:p,optional:m});const y=g||$1;if(y!==$1){d+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${v}" (${y}): `+b.message)}}let _=p?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;c||(_=m&&u.length<2?`(?:/${_})`:"/"+_),m&&(_+="?"),i+=_,d+=20,m&&(d+=-8),p&&(d+=-20),y===".*"&&(d+=-50)}f.push(d)}n.push(f)}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 f=u.match(o),c={};if(!f)return null;for(let h=1;h<f.length;h++){const d=f[h]||"",v=a[h-1];c[v.name]=d&&v.repeatable?d.split("/"):d}return c}function l(u){let f="",c=!1;for(const h of e){(!c||!f.endsWith("/"))&&(f+="/"),c=!1;for(const d of h)if(d.type===0)f+=d.value;else if(d.type===1){const{value:v,repeatable:p,optional:m}=d,g=v in u?u[v]:"";if(En(g)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const y=En(g)?g.join("/"):g;if(!y)if(m)h.length<2&&(f.endsWith("/")?f=f.slice(0,-1):c=!0);else throw new Error(`Missing required param "${v}"`);f+=y}}return f||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function vG(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]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function pG(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const a=vG(n[r],i[r]);if(a)return a;r++}if(Math.abs(i.length-n.length)===1){if(H1(n))return 1;if(H1(i))return-1}return i.length-n.length}function H1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const gG={type:0,value:""},mG=/[a-zA-Z0-9_]/;function yG(e){if(!e)return[[]];if(e==="/")return[[gG]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${r})/"${u}": ${d}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&c(),o()):l===":"?(c(),r=1):h();break;case 4:h(),r=n;break;case 1:l==="("?r=2:mG.test(l)?h():(c(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:r=3:f+=l;break;case 3:c(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,f="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),o(),i}function _G(e,t,r){const n=hG(yG(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 bG(e,t){const r=[],n=new Map;t=W1({strict:!1,end:!0,sensitive:!1},t);function i(f){return n.get(f)}function a(f,c,h){const d=!h,v=wG(f);v.aliasOf=h&&h.record;const p=W1(t,f),m=[v];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const b of _)m.push(lt({},v,{components:h?h.record.components:v.components,path:b,aliasOf:h?h.record:v}))}let g,y;for(const _ of m){const{path:b}=_;if(c&&b[0]!=="/"){const x=c.record.path,w=x[x.length-1]==="/"?"":"/";_.path=c.record.path+(b&&w+b)}if(g=_G(_,c,p),h?h.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),d&&f.name&&!V1(g)&&o(f.name)),v.children){const x=v.children;for(let w=0;w<x.length;w++)a(x[w],g,h&&h.children[w])}h=h||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&l(g)}return y?()=>{o(y)}:Gl}function o(f){if(s2(f)){const c=n.get(f);c&&(n.delete(f),r.splice(r.indexOf(c),1),c.children.forEach(o),c.alias.forEach(o))}else{const c=r.indexOf(f);c>-1&&(r.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){let c=0;for(;c<r.length&&pG(f,r[c])>=0&&(f.record.path!==r[c].record.path||!u2(f,r[c]));)c++;r.splice(c,0,f),f.record.name&&!V1(f)&&n.set(f.record.name,f)}function u(f,c){let h,d={},v,p;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw Ls(1,{location:f});p=h.record.name,d=lt(z1(c.params,h.keys.filter(y=>!y.optional).map(y=>y.name)),f.params&&z1(f.params,h.keys.map(y=>y.name))),v=h.stringify(d)}else if("path"in f)v=f.path,h=r.find(y=>y.re.test(v)),h&&(d=h.parse(v),p=h.record.name);else{if(h=c.name?n.get(c.name):r.find(y=>y.re.test(c.path)),!h)throw Ls(1,{location:f,currentLocation:c});p=h.record.name,d=lt({},c.params,f.params),v=h.stringify(d)}const m=[];let g=h;for(;g;)m.unshift(g.record),g=g.parent;return{name:p,path:v,params:d,matched:m,meta:xG(m)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function z1(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function wG(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:SG(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 SG(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=="object"?r[n]:r;return t}function V1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xG(e){return e.reduce((t,r)=>lt(t,r.meta),{})}function W1(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function u2(e,t){return t.children.some(r=>r===e||u2(e,r))}const f2=/#/g,CG=/&/g,TG=/\//g,MG=/=/g,AG=/\?/g,c2=/\+/g,PG=/%5B/g,EG=/%5D/g,d2=/%5E/g,LG=/%60/g,h2=/%7B/g,DG=/%7C/g,v2=/%7D/g,IG=/%20/g;function Zy(e){return encodeURI(""+e).replace(DG,"|").replace(PG,"[").replace(EG,"]")}function OG(e){return Zy(e).replace(h2,"{").replace(v2,"}").replace(d2,"^")}function Dg(e){return Zy(e).replace(c2,"%2B").replace(IG,"+").replace(f2,"%23").replace(CG,"%26").replace(LG,"`").replace(h2,"{").replace(v2,"}").replace(d2,"^")}function RG(e){return Dg(e).replace(MG,"%3D")}function kG(e){return Zy(e).replace(f2,"%23").replace(AG,"%3F")}function NG(e){return e==null?"":kG(e).replace(TG,"%2F")}function yd(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function BG(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(c2," "),o=a.indexOf("="),s=yd(o<0?a:a.slice(0,o)),l=o<0?null:yd(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 G1(e){let t="";for(let r in e){const n=e[r];if(r=RG(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(En(n)?n.map(a=>a&&Dg(a)):[n&&Dg(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function FG(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 $G=Symbol(""),U1=Symbol(""),Qy=Symbol(""),p2=Symbol(""),Ig=Symbol("");function el(){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.slice(),reset:r}}function Xi(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(Ls(4,{from:r,to:t})):c instanceof Error?s(c):fG(c)?s(Ls(2,{from:t,to:c})):(a&&n.enterCallbacks[i]===a&&typeof c=="function"&&a.push(c),o())},u=e.call(n&&n.instances[i],t,r,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function vv(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(HG(s)){const u=(s.__vccOpts||s)[t];u&&i.push(Xi(u,r,n,a,o))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=UW(u)?u.default:u;a.components[o]=f;const h=(f.__vccOpts||f)[t];return h&&Xi(h,r,n,a,o)()}))}}return i}function HG(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Y1(e){const t=Le(Qy),r=Le(p2),n=k(()=>t.resolve(T(e.to))),i=k(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const h=c.findIndex(Es.bind(null,f));if(h>-1)return h;const d=j1(l[u-2]);return u>1&&j1(f)===d&&c[c.length-1].path!==d?c.findIndex(Es.bind(null,l[u-2])):h}),a=k(()=>i.value>-1&&GG(r.params,n.value.params)),o=k(()=>i.value>-1&&i.value===r.matched.length-1&&a2(r.params,n.value.params));function s(l={}){return WG(l)?t[T(e.replace)?"replace":"push"](T(e.to)).catch(Gl):Promise.resolve()}return{route:n,href:k(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const zG=ie({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:Y1,setup(e,{slots:t}){const r=Ln(Y1(e)),{options:n}=Le(Qy),i=k(()=>({[q1(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[q1(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:Te("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),VG=zG;function WG(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 GG(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 j1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const q1=(e,t,r)=>e??t??r,UG=ie({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Le(Ig),i=k(()=>e.route||n.value),a=Le(U1,0),o=k(()=>{let u=T(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=k(()=>i.value.matched[o.value]);Dt(U1,k(()=>o.value+1)),Dt($G,s),Dt(Ig,i);const l=$();return be(()=>[l.value,s.value,e.name],([u,f,c],[h,d,v])=>{f&&(f.instances[c]=u,d&&d!==f&&u&&u===h&&(f.leaveGuards.size||(f.leaveGuards=d.leaveGuards),f.updateGuards.size||(f.updateGuards=d.updateGuards))),u&&f&&(!d||!Es(f,d)||!h)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=e.name,c=s.value,h=c&&c.components[f];if(!h)return K1(r.default,{Component:h,route:u});const d=c.props[f],v=d?d===!0?u.params:typeof d=="function"?d(u):d:null,m=Te(h,lt({},v,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return K1(r.default,{Component:m,route:u})||m}}});function K1(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const YG=UG;function jG(e){const t=bG(e.routes,e),r=e.parseQuery||BG,n=e.stringifyQuery||G1,i=e.history,a=el(),o=el(),s=el(),l=ty(Ri);let u=Ri;Zo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=dv.bind(null,B=>""+B),c=dv.bind(null,NG),h=dv.bind(null,yd);function d(B,Y){let K,Q;return s2(B)?(K=t.getRecordMatcher(B),Q=Y):Q=B,t.addRoute(Q,K)}function v(B){const Y=t.getRecordMatcher(B);Y&&t.removeRoute(Y)}function p(){return t.getRoutes().map(B=>B.record)}function m(B){return!!t.getRecordMatcher(B)}function g(B,Y){if(Y=lt({},Y||l.value),typeof B=="string"){const I=hv(r,B,Y.path),W=t.resolve({path:I.path},Y),X=i.createHref(I.fullPath);return lt(I,W,{params:h(W.params),hash:yd(I.hash),redirectedFrom:void 0,href:X})}let K;if("path"in B)K=lt({},B,{path:hv(r,B.path,Y.path).path});else{const I=lt({},B.params);for(const W in I)I[W]==null&&delete I[W];K=lt({},B,{params:c(I)}),Y.params=c(Y.params)}const Q=t.resolve(K,Y),oe=B.hash||"";Q.params=f(h(Q.params));const pe=qW(n,lt({},B,{hash:OG(oe),path:Q.path})),D=i.createHref(pe);return lt({fullPath:pe,hash:oe,query:n===G1?FG(B.query):B.query||{}},Q,{redirectedFrom:void 0,href:D})}function y(B){return typeof B=="string"?hv(r,B,l.value.path):lt({},B)}function _(B,Y){if(u!==B)return Ls(8,{from:Y,to:B})}function b(B){return S(B)}function x(B){return b(lt(y(B),{replace:!0}))}function w(B){const Y=B.matched[B.matched.length-1];if(Y&&Y.redirect){const{redirect:K}=Y;let Q=typeof K=="function"?K(B):K;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=y(Q):{path:Q},Q.params={}),lt({query:B.query,hash:B.hash,params:"path"in Q?{}:B.params},Q)}}function S(B,Y){const K=u=g(B),Q=l.value,oe=B.state,pe=B.force,D=B.replace===!0,I=w(K);if(I)return S(lt(y(I),{state:typeof I=="object"?lt({},oe,I.state):oe,force:pe,replace:D}),Y||K);const W=K;W.redirectedFrom=Y;let X;return!pe&&KW(n,Q,K)&&(X=Ls(16,{to:W,from:Q}),ee(Q,Q,!0,!1)),(X?Promise.resolve(X):A(W,Q)).catch(j=>li(j)?li(j,2)?j:z(j):U(j,W,Q)).then(j=>{if(j){if(li(j,2))return S(lt({replace:D},y(j.to),{state:typeof j.to=="object"?lt({},oe,j.to.state):oe,force:pe}),Y||W)}else j=E(W,Q,!0,D,oe);return P(W,Q,j),j})}function C(B,Y){const K=_(B,Y);return K?Promise.reject(K):Promise.resolve()}function M(B){const Y=we.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(B):B()}function A(B,Y){let K;const[Q,oe,pe]=qG(B,Y);K=vv(Q.reverse(),"beforeRouteLeave",B,Y);for(const I of Q)I.leaveGuards.forEach(W=>{K.push(Xi(W,B,Y))});const D=C.bind(null,B,Y);return K.push(D),Ie(K).then(()=>{K=[];for(const I of a.list())K.push(Xi(I,B,Y));return K.push(D),Ie(K)}).then(()=>{K=vv(oe,"beforeRouteUpdate",B,Y);for(const I of oe)I.updateGuards.forEach(W=>{K.push(Xi(W,B,Y))});return K.push(D),Ie(K)}).then(()=>{K=[];for(const I of pe)if(I.beforeEnter)if(En(I.beforeEnter))for(const W of I.beforeEnter)K.push(Xi(W,B,Y));else K.push(Xi(I.beforeEnter,B,Y));return K.push(D),Ie(K)}).then(()=>(B.matched.forEach(I=>I.enterCallbacks={}),K=vv(pe,"beforeRouteEnter",B,Y),K.push(D),Ie(K))).then(()=>{K=[];for(const I of o.list())K.push(Xi(I,B,Y));return K.push(D),Ie(K)}).catch(I=>li(I,8)?I:Promise.reject(I))}function P(B,Y,K){s.list().forEach(Q=>M(()=>Q(B,Y,K)))}function E(B,Y,K,Q,oe){const pe=_(B,Y);if(pe)return pe;const D=Y===Ri,I=Zo?history.state:{};K&&(Q||D?i.replace(B.fullPath,lt({scroll:D&&I&&I.scroll},oe)):i.push(B.fullPath,oe)),l.value=B,ee(B,Y,K,D),z()}let L;function O(){L||(L=i.listen((B,Y,K)=>{if(!$e.listening)return;const Q=g(B),oe=w(Q);if(oe){S(lt(oe,{replace:!0}),Q).catch(Gl);return}u=Q;const pe=l.value;Zo&&nG(N1(pe.fullPath,K.delta),gh()),A(Q,pe).catch(D=>li(D,12)?D:li(D,2)?(S(D.to,Q).then(I=>{li(I,20)&&!K.delta&&K.type===Tu.pop&&i.go(-1,!1)}).catch(Gl),Promise.reject()):(K.delta&&i.go(-K.delta,!1),U(D,Q,pe))).then(D=>{D=D||E(Q,pe,!1),D&&(K.delta&&!li(D,8)?i.go(-K.delta,!1):K.type===Tu.pop&&li(D,20)&&i.go(-1,!1)),P(Q,pe,D)}).catch(Gl)}))}let N=el(),H=el(),V;function U(B,Y,K){z(B);const Q=H.list();return Q.length?Q.forEach(oe=>oe(B,Y,K)):console.error(B),Promise.reject(B)}function F(){return V&&l.value!==Ri?Promise.resolve():new Promise((B,Y)=>{N.add([B,Y])})}function z(B){return V||(V=!B,O(),N.list().forEach(([Y,K])=>B?K(B):Y()),N.reset()),B}function ee(B,Y,K,Q){const{scrollBehavior:oe}=e;if(!Zo||!oe)return Promise.resolve();const pe=!K&&iG(N1(B.fullPath,0))||(Q||!K)&&history.state&&history.state.scroll||null;return Nt().then(()=>oe(B,Y,pe)).then(D=>D&&rG(D)).catch(D=>U(D,B,Y))}const J=B=>i.go(B);let me;const we=new Set,$e={currentRoute:l,listening:!0,addRoute:d,removeRoute:v,hasRoute:m,getRoutes:p,resolve:g,options:e,push:b,replace:x,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:H.add,isReady:F,install(B){const Y=this;B.component("RouterLink",VG),B.component("RouterView",YG),B.config.globalProperties.$router=Y,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>T(l)}),Zo&&!me&&l.value===Ri&&(me=!0,b(i.location).catch(oe=>{}));const K={};for(const oe in Ri)Object.defineProperty(K,oe,{get:()=>l.value[oe],enumerable:!0});B.provide(Qy,Y),B.provide(p2,Qm(K)),B.provide(Ig,l);const Q=B.unmount;we.add(B),B.unmount=function(){we.delete(B),we.size<1&&(u=Ri,L&&L(),L=null,l.value=Ri,me=!1,V=!1),Q()}}};function Ie(B){return B.reduce((Y,K)=>Y.then(()=>M(K)),Promise.resolve())}return $e}function qG(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=>Es(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Es(u,l))||i.push(l))}return[r,n,i]}var Og={exports:{}};(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()})(a8,function(){var n=[{name:"second",value:1e3},{name:"minute",value:6e4},{name:"hour",value:36e5},{name:"day",value:864e5},{name:"week",value:6048e5}],i={P:Math.pow(2,50),T:Math.pow(2,40),G:Math.pow(2,30),M:Math.pow(2,20)},a=function(c){return typeof c<"u"&&c!==null},o=function(c){return c!==c},s=function(c){return isFinite(c)&&!o(parseFloat(c))},l=function(c){var h=Object.prototype.toString.call(c);return h==="[object Array]"},u={intword:function(c,h){var d=arguments.length<=2||arguments[2]===void 0?2:arguments[2];return u.compactInteger(c,d)},compactInteger:function(c){var h=arguments.length<=1||arguments[1]===void 0?0:arguments[1];h=Math.max(h,0);var d=parseInt(c,10),v=d<0?"-":"",p=Math.abs(d),m=String(p),g=m.length,y=[13,10,7,4],_=["T","B","M","k"];if(p<1e3)return""+v+m;if(g>y[0]+3)return d.toExponential(h).replace("e+","x10^");for(var b=void 0,x=0;x<y.length;x++){var w=y[x];if(g>=w){b=w;break}}var S=g-b+1,C=m.split(""),M=C.slice(0,S),A=C.slice(S,S+h+1),P=M.join(""),E=A.join("");E.length<h&&(E+=""+Array(h-E.length+1).join("0"));var L=void 0;if(h===0)L=""+v+P+_[y.indexOf(b)];else{var O=(+(P+"."+E)).toFixed(h);L=""+v+O+_[y.indexOf(b)]}return L},intComma:function(c){var h=arguments.length<=1||arguments[1]===void 0?0:arguments[1];return u.formatNumber(c,h)},intcomma:function(){return u.intComma.apply(u,arguments)},fileSize:function(c){var h=arguments.length<=1||arguments[1]===void 0?2:arguments[1];for(var d in i)if(i.hasOwnProperty(d)){var v=i[d];if(c>=v)return u.formatNumber(c/v,h,"")+" "+d+"B"}return c>=1024?u.formatNumber(c/1024,0)+" KB":u.formatNumber(c,0)+u.pluralize(c," byte")},filesize:function(){return u.fileSize.apply(u,arguments)},formatNumber:function(c){var h=arguments.length<=1||arguments[1]===void 0?0:arguments[1],d=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:""},m=function(S,C,M){return S.substr(M).replace(/(\d{3})(?=\d)/g,"$1"+C)},g=function(S,C,M){return M?C+u.toFixed(Math.abs(S),M).split(".")[1]:""},y=u.normalizePrecision(h),_=c<0&&"-"||"",b=String(parseInt(u.toFixed(Math.abs(c||0),y),10)),x=b.length>3?b.length%3:0;return _+p(b,d,x)+m(b,d,x)+g(c,v,y)},toFixed:function(c,h){h=a(h)?h:u.normalizePrecision(h,0);var d=Math.pow(10,h);return(Math.round(c*d)/d).toFixed(h)},normalizePrecision:function(c,h){return c=Math.round(Math.abs(c)),o(c)?h:c},ordinal:function(c){var h=parseInt(c,10);if(h===0)return c;var d=h%100;if([11,12,13].indexOf(d)>=0)return h+"th";var v=h%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""+h+p},times:function(c){var h=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(s(c)&&c>=0){var d=parseFloat(c),v=["never","once","twice"];if(a(h[d]))return String(h[d]);var p=a(v[d])&&v[d].toString();return p||d.toString()+" times"}return null},pluralize:function(c,h,d){return a(c)&&a(h)?(d=a(d)?d:h+"s",parseInt(c,10)===1?h:d):null},truncate:function(c){var h=arguments.length<=1||arguments[1]===void 0?100:arguments[1],d=arguments.length<=2||arguments[2]===void 0?"...":arguments[2];return c.length>h?c.substring(0,h-d.length)+d:c},truncateWords:function(c,h){for(var d=c.split(" "),v="",p=0;p<h;)a(d[p])&&(v+=d[p]+" "),p++;return d.length>h?v+"...":null},truncatewords:function(){return u.truncateWords.apply(u,arguments)},boundedNumber:function(c){var h=arguments.length<=1||arguments[1]===void 0?100:arguments[1],d=arguments.length<=2||arguments[2]===void 0?"+":arguments[2],v=void 0;return s(c)&&s(h)&&c>h&&(v=h+d),(v||c).toString()},truncatenumber:function(){return u.boundedNumber.apply(u,arguments)},oxford:function(c,h,d){var v=c.length,p=void 0;if(v<2)return String(c);if(v===2)return c.join(" and ");if(a(h)&&v>h){var m=v-h;p=h,d=a(d)?d:", and "+m+" "+u.pluralize(m,"other")}else p=-1,d=", and "+c[v-1];return c.slice(0,p).join(", ")+d},dictionary:function(c){var h=arguments.length<=1||arguments[1]===void 0?" is ":arguments[1],d=arguments.length<=2||arguments[2]===void 0?", ":arguments[2],v="";if(a(c)&&(typeof c>"u"?"undefined":r(c))==="object"&&!l(c)){var p=[];for(var m in c)if(c.hasOwnProperty(m)){var g=c[m];p.push(""+m+h+g)}return p.join(d)}return v},frequency:function(c,h){if(!l(c))return null;var d=c.length,v=u.times(d);return d===0?v+" "+h:h+" "+v},pace:function(c,h){var d=arguments.length<=2||arguments[2]===void 0?"time":arguments[2];if(c===0||h===0)return"No "+u.pluralize(0,d);for(var v="Approximately",p=void 0,m=void 0,g=c/h,y=0;y<n.length;++y){var _=n[y];if(m=g*_.value,m>1){p=_.name;break}}p||(v="Less than",m=1,p=n[n.length-1].name);var b=Math.round(m);return d=u.pluralize(b,d),v+" "+b+" "+d+" per "+p},nl2br:function(c){var h=arguments.length<=1||arguments[1]===void 0?"<br/>":arguments[1];return c.replace(/\n/g,h)},br2nl:function(c){var h=arguments.length<=1||arguments[1]===void 0?`\r
 `:arguments[1];return c.replace(/\<br\s*\/?\>/g,h)},capitalize:function(c){var h=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return""+c.charAt(0).toUpperCase()+(h?c.slice(1).toLowerCase():c.slice(1))},capitalizeAll:function(c){return c.replace(/(?:^|\s)\S/g,function(h){return h.toUpperCase()})},titleCase:function(c){var h=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,d=/\S+[A-Z]+\S*/,v=/\s+/,p=/-/,m=void 0;return m=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(m(C,!0,S===0||S===w.length-1));continue}if(b&&(S===0||S===w.length-1)){x.push(d.test(C)?C:u.capitalize(C));continue}d.test(C)?x.push(C):h.test(C)?x.push(C.toLowerCase()):x.push(u.capitalize(C))}return x.join(_?"-":" ")},m(c)},titlecase:function(){return u.titleCase.apply(u,arguments)}};return u})})(Og,Og.exports);var Mu=Og.exports;/*! *****************************************************************************
 Copyright (c) Microsoft Corporation.
 
@@ -56,8 +56,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 Rg=function(e,t){return Rg=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])},Rg(e,t)};function ge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Rg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var KG=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),XG=function(){function e(){this.browser=new KG,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}(),He=new XG;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(He.wxa=!0,He.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?He.worker=!0:typeof navigator>"u"?(He.node=!0,He.svgSupported=!0):ZG(navigator.userAgent,He);function ZG(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}var Jy=12,QG="sans-serif",_o=Jy+"px "+QG,JG=20,eU=100,tU="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function rU(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)-JG)/eU;t[n]=i}return t}var nU=rU(tU),Vs={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Vs.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||_o),e.measureText(r);r=r||"",n=n||_o;var a=/(\d+)px/.exec(n),o=a&&+a[1]||Jy,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=nU[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}},g2=ca(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),m2=ca(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),nf=Object.prototype.toString,mh=Array.prototype,iU=mh.forEach,aU=mh.filter,e0=mh.slice,oU=mh.map,X1=(function(){}).constructor,Rf=X1?X1.prototype:null,t0="__proto__",sU=2311;function y2(){return sU++}function r0(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function tt(e){if(e==null||typeof e!="object")return e;var t=e,r=nf.call(e);if(r==="[object Array]"){if(!jl(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=tt(e[n])}}else if(m2[r]){if(!jl(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(!g2[r]&&!jl(e)&&!_d(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==t0&&(t[o]=tt(e[o]))}return t}function st(e,t,r){if(!Re(t)||!Re(e))return r?tt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==t0){var i=e[n],a=t[n];Re(a)&&Re(i)&&!ye(a)&&!ye(i)&&!_d(a)&&!_d(i)&&!Z1(a)&&!Z1(i)&&!jl(a)&&!jl(i)?st(i,a,r):(r||!(n in e))&&(e[n]=tt(t[n]))}return e}function ue(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==t0&&(e[r]=t[r]);return e}function ht(e,t,r){for(var n=Ct(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}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 lU(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 ni(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 ht(e,t,r)}function Ir(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function R(e,t,r){if(e&&t)if(e.forEach&&e.forEach===iU)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 Ne(e,t,r){if(!e)return[];if(!t)return n0(e);if(e.map&&e.map===oU)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 ca(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 jt(e,t,r){if(!e)return[];if(!t)return n0(e);if(e.filter&&e.filter===aU)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 Ct(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 uU(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(e0.call(arguments)))}}var xt=Rf&&Ye(Rf.bind)?Rf.call.bind(Rf.bind):uU;function Ot(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(e0.call(arguments)))}}function ye(e){return Array.isArray?Array.isArray(e):nf.call(e)==="[object Array]"}function Ye(e){return typeof e=="function"}function Ee(e){return typeof e=="string"}function kg(e){return nf.call(e)==="[object String]"}function Tt(e){return typeof e=="number"}function Re(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Z1(e){return!!g2[nf.call(e)]}function Gr(e){return!!m2[nf.call(e)]}function _d(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function yh(e){return e.colorStops!=null}function fU(e){return e.image!=null}function bd(e){return e!==e}function Au(){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 Ze(e,t){return e??t}function Yl(e,t,r){return e??t??r}function n0(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e0.apply(e,t)}function _2(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 Ci(e,t){if(!e)throw new Error(t)}function Gn(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var b2="__ec_primitive__";function Ng(e){e[b2]=!0}function jl(e){return e[b2]}var cU=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 Ct(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),w2=typeof Map=="function";function dU(){return w2?new Map:new cU}var hU=function(){function e(t){var r=ye(t);this.data=dU();var n=this;t instanceof e?t.each(i):t&&R(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 w2?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function je(e){return new hU(e)}function vU(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 _h(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&ue(r,t),r}function S2(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 Er(){}var pU=180/Math.PI;function Ws(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function gU(e){return[e[0],e[1]]}function Q1(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function mU(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function yU(e){return Math.sqrt(_U(e))}function _U(e){return e[0]*e[0]+e[1]*e[1]}function pv(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function bU(e,t){var r=yU(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Bg(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Fg=Bg;function wU(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ss=wU;function gv(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 un(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 Ro=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),SU=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 Ro(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 Ro(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 Ro(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ro(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ro(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ro(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),xU=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,f=a[t][u];return f&&f.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 f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const ii=xU;var CU=Math.log(2);function $g(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)/CU);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,d=0;h<s;h++){var v=1<<h;v&i||(c+=(d%2?-1:1)*e[r][h]*$g(e,t-1,f,u,i|v,a),d++)}return a[o]=c,c}function J1(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=$g(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)*$g(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var ew="___zrEVENTSAVED",mv=[];function TU(e,t,r,n,i){return Hg(mv,t,n,i,!0)&&Hg(e,r,mv[0],mv[1])}function Hg(e,t,r,n,i){if(t.getBoundingClientRect&&He.domSupported&&!x2(t)){var a=t[ew]||(t[ew]={}),o=MU(t,a),s=AU(o,a,i);if(s)return s(e,r,n),!0}return!1}function MU(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 AU(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,h=f.left,d=f.top;o.push(h,d),l=l&&a&&h===a[c]&&d===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?J1(s,o):J1(o,s))}function x2(e){return e.nodeName.toUpperCase()==="CANVAS"}var PU=/([&<>"'])/g,EU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function tn(e){return e==null?"":(e+"").replace(PU,function(t,r){return EU[r]})}var LU=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yv=[],DU=He.browser.firefox&&+He.browser.version.split(".")[0]<39;function zg(e,t,r,n){return r=r||{},n?tw(e,t,r):DU&&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):tw(e,t,r),r}function tw(e,t,r){if(He.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(x2(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Hg(yv,e,n,i)){r.zrX=yv[0],r.zrY=yv[1];return}}r.zrX=r.zrY=0}function i0(e){return e||window.event}function Qr(e,t,r){if(t=i0(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&&zg(e,o,t,r)}else{zg(e,t,t,r);var a=IU(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&LU.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function IU(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 OU(e,t,r,n){e.addEventListener(t,r,n)}function RU(e,t,r,n){e.removeEventListener(t,r,n)}var C2=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},kU=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=zg(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 _v)if(_v.hasOwnProperty(r)){var n=_v[r](this._track,t);if(n)return n}},e}();function rw(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function NU(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var _v={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=rw(n)/rw(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=NU(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Pu(){return[1,0,0,1,0,0]}function a0(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function BU(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 ls(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 Vg(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 o0(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),f=Math.cos(r);return e[0]=n*f+o*u,e[1]=-n*u+o*f,e[2]=i*f+s*u,e[3]=-i*u+f*s,e[4]=f*a+u*l,e[5]=f*l-u*a,e}function FU(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 bh(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 $U=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 Fe=$U;var kf=Math.min,Nf=Math.max,wa=new Fe,Sa=new Fe,xa=new Fe,Ca=new Fe,tl=new Fe,rl=new Fe,nt=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=kf(t.x,this.x),n=kf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Nf(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Nf(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=Pu();return Vg(a,a,[-r.x,-r.y]),FU(a,a,[n,i]),Vg(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,h=!(a<l||u<i||s<f||c<o);if(r){var d=1/0,v=0,p=Math.abs(a-l),m=Math.abs(u-i),g=Math.abs(s-f),y=Math.abs(c-o),_=Math.min(p,m),b=Math.min(g,y);a<l||u<i?_>v&&(v=_,p<m?Fe.set(rl,-p,0):Fe.set(rl,m,0)):_<d&&(d=_,p<m?Fe.set(tl,p,0):Fe.set(tl,-m,0)),s<f||c<o?b>v&&(v=b,g<y?Fe.set(rl,0,-g):Fe.set(rl,0,y)):_<d&&(d=_,g<y?Fe.set(tl,0,g):Fe.set(tl,0,-y))}return r&&Fe.copy(r,h?tl:rl),h},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}wa.x=xa.x=r.x,wa.y=Ca.y=r.y,Sa.x=Ca.x=r.x+r.width,Sa.y=xa.y=r.y+r.height,wa.transform(n),Ca.transform(n),Sa.transform(n),xa.transform(n),t.x=kf(wa.x,Sa.x,xa.x,Ca.x),t.y=kf(wa.y,Sa.y,xa.y,Ca.y);var l=Nf(wa.x,Sa.x,xa.x,Ca.x),u=Nf(wa.y,Sa.y,xa.y,Ca.y);t.width=l-t.x,t.height=u-t.y},e}(),T2="silent";function HU(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:zU}}function zU(){C2(this.event)}var VU=function(e){ge(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}(ii),nl=function(){function e(t,r){this.x=t,this.y=r}return e}(),WU=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],bv=new nt(0,0,0,0),M2=function(e){ge(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new nl(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new VU,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new SU(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(WU,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=A2(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 nl(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new nl(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=HU(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 nl(r,n);if(nw(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new nt(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(bv.copy(h.getBoundingRect()),h.transform&&bv.applyTransform(h.transform),bv.intersect(f)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,p=Math.PI*2,m=0;m<u;m+=d)for(var g=0;g<p;g+=v){var y=r+m*Math.cos(g),_=n+m*Math.sin(g);if(nw(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new kU);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 nl;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(ii);R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){M2.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=A2(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||Fg(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function GU(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?T2:!0}return!1}function nw(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=GU(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==T2)){t.target=o;break}}}function A2(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const UU=M2;var P2=32,il=7;function YU(e){for(var t=0;e>=P2;)t|=e&1,e>>=1;return e+t}function iw(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++;jU(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function jU(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function aw(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 wv(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 f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function Sv(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 f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function qU(e,t){var r=il,n,i,a=0;e.length;var o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;f(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,f(d)}}function f(d){var v=n[d],p=i[d],m=n[d+1],g=i[d+1];i[d]=p+g,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var y=Sv(e[m],e,v,p,0,t);v+=y,p-=y,p!==0&&(g=wv(e[v+p-1],e,m,g,g-1,t),g!==0&&(p<=g?c(v,p,m,g):h(v,p,m,g)))}function c(d,v,p,m){var g=0;for(g=0;g<v;g++)o[g]=e[d+g];var y=0,_=p,b=d;if(e[b++]=e[_++],--m===0){for(g=0;g<v;g++)e[b+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)e[b+g]=e[_+g];e[b+m]=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,--m===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=Sv(e[_],o,y,v,0,t),w!==0){for(g=0;g<w;g++)e[b+g]=o[y+g];if(b+=w,y+=w,v-=w,v<=1){C=!0;break}}if(e[b++]=e[_++],--m===0){C=!0;break}if(S=wv(o[y],e,_,m,0,t),S!==0){for(g=0;g<S;g++)e[b+g]=e[_+g];if(b+=S,_+=S,m-=S,m===0){C=!0;break}}if(e[b++]=o[y++],--v===1){C=!0;break}x--}while(w>=il||S>=il);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(g=0;g<m;g++)e[b+g]=e[_+g];e[b+m]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)e[b+g]=o[y+g]}}function h(d,v,p,m){var g=0;for(g=0;g<m;g++)o[g]=e[p+g];var y=d+v-1,_=m-1,b=p+m-1,x=0,w=0;if(e[b--]=e[y--],--v===0){for(x=b-(m-1),g=0;g<m;g++)e[x+g]=o[g];return}if(m===1){for(b-=v,y-=v,w=b+1,x=y+1,g=v-1;g>=0;g--)e[w+g]=e[x+g];e[b]=o[_];return}for(var S=r;;){var C=0,M=0,A=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,M=0,--v===0){A=!0;break}}else if(e[b--]=o[_--],M++,C=0,--m===1){A=!0;break}while((C|M)<S);if(A)break;do{if(C=v-Sv(o[_],e,d,v,v-1,t),C!==0){for(b-=C,y-=C,v-=C,w=b+1,x=y+1,g=C-1;g>=0;g--)e[w+g]=e[x+g];if(v===0){A=!0;break}}if(e[b--]=o[_--],--m===1){A=!0;break}if(M=m-wv(e[y],o,0,m,m-1,t),M!==0){for(b-=M,_-=M,m-=M,w=b+1,x=_+1,g=0;g<M;g++)e[w+g]=o[x+g];if(m<=1){A=!0;break}}if(e[b--]=e[y--],--v===0){A=!0;break}S--}while(C>=il||M>=il);if(A)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),m===1){for(b-=v,y-=v,w=b+1,x=y+1,g=v-1;g>=0;g--)e[w+g]=e[x+g];e[b]=o[_]}else{if(m===0)throw new Error;for(x=b-(m-1),g=0;g<m;g++)e[x+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function $c(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<P2){a=iw(e,r,n,t),aw(e,r,n,r+a,t);return}var o=qU(e,t),s=YU(i);do{if(a=iw(e,r,n,t),a<s){var l=i;l>s&&(l=s),aw(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 Br=1,Cl=2,Xo=4,ow=!1;function xv(){ow||(ow=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sw(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var KU=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sw}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,$c(n,sw)},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|=Br),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(xv(),f.z=0),isNaN(f.z2)&&(xv(),f.z2=0),isNaN(f.zlevel)&&(xv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,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}(),E2;E2=He.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Wg=E2;var ql={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-ql.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?ql.bounceIn(e*2)*.5:ql.bounceOut(e*2-1)*.5+.5}},Bf=Math.pow,ia=Math.sqrt,wd=1e-8,L2=1e-4,lw=ia(3),Ff=1/3,Vn=Ws(),rn=Ws(),us=Ws();function Ji(e){return e>-wd&&e<wd}function D2(e){return e>wd||e<-wd}function Zt(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 uw(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function I2(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,d=0;if(Ji(f)&&Ji(c))if(Ji(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var p=c*c-4*f*h;if(Ji(p)){var m=c/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(a[d++]=v),g>=0&&g<=1&&(a[d++]=g)}else if(p>0){var y=ia(p),_=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);_<0?_=-Bf(-_,Ff):_=Bf(_,Ff),b<0?b=-Bf(-b,Ff):b=Bf(b,Ff);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var x=(2*f*s-3*o*c)/(2*ia(f*f*f)),w=Math.acos(x)/3,S=ia(f),C=Math.cos(w),v=(-s-2*S*C)/(3*o),g=(-s+S*(C+lw*Math.sin(w)))/(3*o),M=(-s+S*(C-lw*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[d++]=v),g>=0&&g<=1&&(a[d++]=g),M>=0&&M<=1&&(a[d++]=M)}}return d}function O2(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(Ji(o)){if(D2(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Ji(f))i[0]=-a/(2*o);else if(f>0){var c=ia(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Sd(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function R2(e,t,r,n,i,a,o,s,l,u,f){var c,h=.005,d=1/0,v,p,m,g;Vn[0]=l,Vn[1]=u;for(var y=0;y<1;y+=.05)rn[0]=Zt(e,r,i,o,y),rn[1]=Zt(t,n,a,s,y),m=ss(Vn,rn),m<d&&(c=y,d=m);d=1/0;for(var _=0;_<32&&!(h<L2);_++)v=c-h,p=c+h,rn[0]=Zt(e,r,i,o,v),rn[1]=Zt(t,n,a,s,v),m=ss(rn,Vn),v>=0&&m<d?(c=v,d=m):(us[0]=Zt(e,r,i,o,p),us[1]=Zt(t,n,a,s,p),g=ss(us,Vn),p<=1&&g<d?(c=p,d=g):h*=.5);return f&&(f[0]=Zt(e,r,i,o,c),f[1]=Zt(t,n,a,s,c)),ia(d)}function XU(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,c=0,h=1/l,d=1;d<=l;d++){var v=d*h,p=Zt(e,r,i,o,v),m=Zt(t,n,a,s,v),g=p-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=p,f=m}return c}function ir(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function fw(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function ZU(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Ji(a)){if(D2(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Ji(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=ia(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function k2(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function xd(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 N2(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Vn[0]=o,Vn[1]=s;for(var h=0;h<1;h+=.05){rn[0]=ir(e,r,i,h),rn[1]=ir(t,n,a,h);var d=ss(Vn,rn);d<c&&(u=h,c=d)}c=1/0;for(var v=0;v<32&&!(f<L2);v++){var p=u-f,m=u+f;rn[0]=ir(e,r,i,p),rn[1]=ir(t,n,a,p);var d=ss(rn,Vn);if(p>=0&&d<c)u=p,c=d;else{us[0]=ir(e,r,i,m),us[1]=ir(t,n,a,m);var g=ss(us,Vn);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=ir(e,r,i,u),l[1]=ir(t,n,a,u)),ia(c)}function QU(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,d=ir(e,r,i,h),v=ir(t,n,a,h),p=d-s,m=v-l;u+=Math.sqrt(p*p+m*m),s=d,l=v}return u}var JU=/cubic-bezier\(([0-9,\.e ]+)\)/;function B2(e){var t=e&&JU.exec(e);if(t){var r=t[1].split(","),n=+Gn(r[0]),i=+Gn(r[1]),a=+Gn(r[2]),o=+Gn(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:I2(0,n,a,1,l,s)&&Zt(0,i,o,1,s[0])}}}var e9=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||Er,this.ondestroy=t.ondestroy||Er,this.onrestart=t.onrestart||Er,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=Ye(t)?t:ql[t]||B2(t)},e}();const t9=e9;var F2=function(){function e(t){this.value=t}return e}(),r9=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new F2(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}(),af=function(){function e(t){this._list=new r9,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 F2(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}(),cw={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 Kl(e){return e=Math.round(e),e<0?0:e>255?255:e}function dw(e){return e<0?0:e>1?1:e}function Cv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Kl(parseFloat(t)/100*255):Kl(parseInt(t,10))}function Xl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?dw(parseFloat(t)/100):dw(parseFloat(t))}function Tv(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 Zr(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Gg(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var $2=new af(20),$f=null;function ko(e,t){$f&&Gg($f,t),$f=$2.put(e,$f||t.slice())}function uo(e,t){if(e){t=t||[];var r=$2.get(e);if(r)return Gg(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in cw)return Gg(t,cw[n]),ko(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)){Zr(t,0,0,0,1);return}return Zr(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),ko(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Zr(t,0,0,0,1);return}return Zr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ko(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Zr(t,+u[0],+u[1],+u[2],1):Zr(t,0,0,0,1);f=Xl(u.pop());case"rgb":if(u.length>=3)return Zr(t,Cv(u[0]),Cv(u[1]),Cv(u[2]),u.length===3?f:Xl(u[3])),ko(e,t),t;Zr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Zr(t,0,0,0,1);return}return u[3]=Xl(u[3]),hw(u,t),ko(e,t),t;case"hsl":if(u.length!==3){Zr(t,0,0,0,1);return}return hw(u,t),ko(e,t),t;default:return}}Zr(t,0,0,0,1)}}function hw(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Xl(e[1]),i=Xl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Zr(t,Kl(Tv(o,a,r+1/3)*255),Kl(Tv(o,a,r)*255),Kl(Tv(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function vw(e,t){var r=uo(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 s0(r,r.length===4?"rgba":"rgb")}}function s0(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 Cd(e,t){var r=uo(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function n9(e){return e.type==="linear"}function i9(e){return e.type==="radial"}(function(){return He.hasGlobalWindow&&Ye(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 Ug=Array.prototype.slice;function hi(e,t,r){return(t-e)*r+e}function Mv(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=hi(t[a],r[a],n);return e}function a9(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]=hi(t[o][s],r[o][s],n)}return e}function Hf(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function pw(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 o9(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 s9(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]:Ug.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 f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Hc(e){if(Ir(e)){var t=e.length;if(Ir(e[0])){for(var r=[],n=0;n<t;n++)r.push(Ug.call(e[n]));return r}return Ug.call(e)}return e}function zc(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 l9(e){return Ir(e&&e[0])?2:1}var zf=0,Vc=1,H2=2,Tl=3,Yg=4,jg=5,gw=6;function mw(e){return e===Yg||e===jg}function Vf(e){return e===Vc||e===H2}var al=[0,0,0,0],u9=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=gw,l=r;if(Ir(r)){var u=l9(r);s=u,(u===1&&!Tt(r[0])||u===2&&!Tt(r[0][0]))&&(o=!0)}else if(Tt(r)&&!bd(r))s=zf;else if(Ee(r))if(!isNaN(+r))s=zf;else{var f=uo(r);f&&(l=f,s=Tl)}else if(yh(r)){var c=ue({},l);c.colorStops=Ne(r.colorStops,function(d){return{offset:d.offset,color:uo(d.color)}}),n9(r)?s=Yg:i9(r)&&(s=jg),l=c}a===0?this.valType=s:(s!==this.valType||s===gw)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=Ye(n)?n:ql[n]||B2(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,m){return p.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Vf(i),u=mw(i),f=0;f<a;f++){var c=n[f],h=c.value,d=o.value;c.percent=c.time/t,s||(l&&f!==a-1?s9(h,d,i):u&&o9(h.colorStops,d.colorStops))}if(!s&&i!==jg&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,f=0;f<a;f++)i===zf?n[f].additiveValue=n[f].value-v:i===Tl?n[f].additiveValue=Hf([],n[f].value,v,-1):Vf(i)&&(n[f].additiveValue=i===Vc?Hf([],n[f].value,v,-1):pw([],n[f].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===Tl,f,c=this._lastFr,h=Math.min,d,v;if(s===1)d=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}v=o[f+1],d=o[f]}if(d&&v){this._lastFr=f,this._lastFrP=r;var m=v.percent-d.percent,g=m===0?1:h((r-d.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=n?this._additiveValue:u?al:t[l];if((Vf(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=g<1?d.rawValue:v.rawValue;else if(Vf(a))a===Vc?Mv(y,d[i],v[i],g):a9(y,d[i],v[i],g);else if(mw(a)){var _=d[i],b=v[i],x=a===Yg;t[l]={type:x?"linear":"radial",x:hi(_.x,b.x,g),y:hi(_.y,b.y,g),colorStops:Ne(_.colorStops,function(S,C){var M=b.colorStops[C];return{offset:hi(S.offset,M.offset,g),color:zc(Mv([],S.color,M.color,g))}}),global:b.global},x?(t[l].x2=hi(_.x2,b.x2,g),t[l].y2=hi(_.y2,b.y2,g)):t[l].r=hi(_.r,b.r,g)}else if(u)Mv(y,d[i],v[i],g),n||(t[l]=zc(y));else{var w=hi(d[i],v[i],g);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===zf?t[n]=t[n]+i:r===Tl?(uo(t[n],al),Hf(al,al,i,1),t[n]=zc(al)):r===Vc?Hf(t[n],t[n],i,1):r===H2&&pw(t[n],t[n],i,1)},e}(),l0=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){r0("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,Ct(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 u9(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===Tl&&u&&(u=zc(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Hc(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Hc(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,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new t9({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,m=0;m<v.length;m++)if(v[m]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,d);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.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 Ne(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]=Hc(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Ct(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}();function ts(){return new Date().getTime()}var f9=function(e){ge(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&&(Wg(n),!r._paused&&r.update())}Wg(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 l0(r,n.loop);return this.addAnimator(i),i},t}(ii),c9=300,Av=He.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=Ne(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),yw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_w=!1;function qg(e){var t=e.pointerType;return t==="pen"||t==="touch"}function d9(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 Ev(e){e&&(e.zrByTouch=!0)}function h9(e,t){return Qr(e.dom,new v9(e,t),!0)}function z2(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 v9=function(){function e(t,r){this.stopPropagation=Er,this.stopImmediatePropagation=Er,this.preventDefault=Er,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),yn={mousedown:function(e){e=Qr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Qr(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=Qr(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Qr(this.dom,e);var t=e.toElement||e.relatedTarget;z2(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){_w=!0,e=Qr(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){_w||(e=Qr(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Qr(this.dom,e),Ev(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),yn.mousemove.call(this,e),yn.mousedown.call(this,e)},touchmove:function(e){e=Qr(this.dom,e),Ev(e),this.handler.processGesture(e,"change"),yn.mousemove.call(this,e)},touchend:function(e){e=Qr(this.dom,e),Ev(e),this.handler.processGesture(e,"end"),yn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<c9&&yn.click.call(this,e)},pointerdown:function(e){yn.mousedown.call(this,e)},pointermove:function(e){qg(e)||yn.mousemove.call(this,e)},pointerup:function(e){yn.mouseup.call(this,e)},pointerout:function(e){qg(e)||yn.mouseout.call(this,e)}};R(["click","dblclick","contextmenu"],function(e){yn[e]=function(t){t=Qr(this.dom,t),this.trigger(e,t)}});var Kg={pointermove:function(e){qg(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 p9(e,t){var r=t.domHandlers;He.pointerEventsSupported?R(Pv.pointer,function(n){Wc(t,n,function(i){r[n].call(e,i)})}):(He.touchEventsSupported&&R(Pv.touch,function(n){Wc(t,n,function(i){r[n].call(e,i),d9(t)})}),R(Pv.mouse,function(n){Wc(t,n,function(i){i=i0(i),t.touching||r[n].call(e,i)})}))}function g9(e,t){He.pointerEventsSupported?R(yw.pointer,r):He.touchEventsSupported||R(yw.mouse,r);function r(n){function i(a){a=i0(a),z2(e,a.target)||(a=h9(e,a),t.domHandlers[n].call(e,a))}Wc(t,n,i,{capture:!0})}}function Wc(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,OU(e.domTarget,t,r,n)}function Lv(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&RU(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var bw=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),m9=function(e){ge(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 bw(r,yn),Av&&(i._globalHandlerScope=new bw(document,Kg)),p9(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Lv(this._localHandlerScope),Av&&Lv(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,Av&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?g9(this,n):Lv(n)}},t}(ii);const y9=m9;var V2=1;He.hasGlobalWindow&&(V2=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Td=V2,Xg=.4,Zg="#333",Qg="#ccc",_9="#eee",ww=a0,Sw=5e-5;function Ta(e){return e>Sw||e<-Sw}var Ma=[],No=[],Dv=Pu(),Iv=Math.abs,wh=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 Ta(this.rotation)||Ta(this.x)||Ta(this.y)||Ta(this.scaleX-1)||Ta(this.scaleY-1)||Ta(this.skewX)||Ta(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(ww(n),this.invTransform=null);return}n=n||Pu(),r?this.getLocalTransform(n):ww(n),t&&(r?ls(n,t,n):BU(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ma);var n=Ma[0]<0?-1:1,i=Ma[1]<0?-1:1,a=((Ma[0]-n)*r+n)/Ma[0]||0,o=((Ma[1]-i)*r+i)/Ma[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Pu(),bh(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&&(ls(No,t.invTransform,r),r=No);var n=this.originX,i=this.originY;(n||i)&&(Dv[4]=n,Dv[5]=i,ls(No,r,Dv),No[4]-=n,No[5]-=i,r=No),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&&un(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&un(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Iv(t[0]-1)>1e-10&&Iv(t[3]-1)>1e-10?Math.sqrt(Iv(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){b9(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-h*p*o,r[5]=-p*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&o0(r,r,u),r[4]+=n+f,r[5]+=i+c,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Eu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function b9(e,t){for(var r=0;r<Eu.length;r++){var n=Eu[r];e[n]=t[n]}}var xw={};function Vr(e,t){t=t||_o;var r=xw[t];r||(r=xw[t]=new af(500));var n=r.get(e);return n==null&&(n=Vs.measureText(e,t).width,r.put(e,n)),n}function Cw(e,t,r,n){var i=Vr(e,t),a=f0(t),o=Ml(0,i,r),s=Zo(0,a,n),l=new nt(o,s,i,a);return l}function u0(e,t,r,n){var i=((e||"")+"").split(`
-`),a=i.length;if(a===1)return Cw(i[0],t,r,n);for(var o=new nt(0,0,0,0),s=0;s<i.length;s++){var l=Cw(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Ml(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Zo(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function f0(e){return Vr("国",e)}function da(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Md(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=da(n[0],r.width),u+=da(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var Ov="__zr_normal__",Rv=Eu.concat(["ignore"]),w9=ca(Eu,function(e,t){return e[t]=!0,e},{ignore:!1}),Bo={},S9=new nt(0,0,0,0),c0=function(){function e(t){this.id=y2(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=S9;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Bo,n,f):Md(Bo,n,f),a.x=Bo.x,a.y=Bo.y,o=Bo.align,s=Bo.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,d=void 0;c==="center"?(h=f.width*.5,d=f.height*.5):(h=da(c[0],f.width),d=da(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+d+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),_=!0)):(g=n.outsideFill,y=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==m.fill||y!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=g,m.stroke=y,m.autoStroke=_,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Br,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()?Qg:Zg},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&uo(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,s0(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||{},ue(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(Re(t))for(var n=t,i=Ct(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!==Ov)){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,Rv)},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(Ov,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Ov,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){r0("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,r,n,f),h&&h.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Br),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],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,m=this._textGuide;p&&p.useStates(t,r,h),m&&m.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Br)}},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];ue(r,a),a.textConfig&&(n=n||{},ue(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=ue({},i?this.textConfig:n.textConfig),ue(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Rv.length;f++){var c=Rv[f],h=a&&w9[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var d=this.animators[f],v=d.targetName;d.getLoop()||d.__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 wh,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),ue(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|=Br;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 l0(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){kv(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){kv(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=kv(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=Br;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(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();ni(c0,ii);ni(c0,wh);function kv(e,t,r,n,i){r=r||{};var a=[];W2(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=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 h=0;h<a.length;h++){var d=a[h];f&&d.done(f),c&&d.aborted(c),r.force&&d.duration(r.duration),d.start(r.easing)}return a}function Nv(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function x9(e){return Ir(e[0])}function C9(e,t,r){if(Ir(t[r]))if(Ir(e[r])||(e[r]=[]),Gr(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Nv(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(x9(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Nv(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Nv(a,i,o);a.length=i.length}else e[r]=t[r]}function T9(e,t){return e===t||Ir(e)&&Ir(t)&&M9(e,t)}function M9(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 W2(e,t,r,n,i,a,o,s){for(var l=Ct(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,d=!Re(a),v=e.animators,p=[],m=0;m<l.length;m++){var g=l[m],y=n[g];if(y!=null&&r[g]!=null&&(d||a[g]))if(Re(y)&&!Ir(y)&&!yh(y)){if(t){s||(r[g]=y,e.updateDuringAnimation(t));continue}W2(e,g,r[g],y,i,a&&a[g],o,s)}else p.push(g);else s||(r[g]=y,e.updateDuringAnimation(t),p.push(g))}var _=p.length;if(!c&&_)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=jt(p,function(P){return!T9(n[P],r[P])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,M=void 0,A=void 0;if(s){M={},h&&(C={});for(var b=0;b<_;b++){var g=p[b];M[g]=r[g],h?C[g]=n[g]:r[g]=n[g]}}else if(h){A={};for(var b=0;b<_;b++){var g=p[b];A[g]=Hc(r[g]),C9(r,n,g)}}var x=new l0(r,!1,!1,c?jt(v,function(E){return E.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),h&&C&&x.whenWithKeys(0,C,p),A&&x.whenWithKeys(0,A,p),x.whenWithKeys(u??500,s?M:n,p).delay(f||0),e.addAnimator(x,t),o.push(x)}}const G2=c0;var Ur=function(e){ge(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 nt(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(),f=l.getLocalTransform(a);f?(nt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(G2);Ur.prototype.type="group";/*!
+***************************************************************************** */var Rg=function(e,t){return Rg=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])},Rg(e,t)};function ge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Rg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var KG=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),XG=function(){function e(){this.browser=new KG,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}(),He=new XG;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(He.wxa=!0,He.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?He.worker=!0:typeof navigator>"u"?(He.node=!0,He.svgSupported=!0):ZG(navigator.userAgent,He);function ZG(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}var Jy=12,QG="sans-serif",_o=Jy+"px "+QG,JG=20,eU=100,tU="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function rU(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)-JG)/eU;t[n]=i}return t}var nU=rU(tU),Gs={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Gs.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||_o),e.measureText(r);r=r||"",n=n||_o;var a=/(\d+)px/.exec(n),o=a&&+a[1]||Jy,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=nU[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}},g2=ca(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),m2=ca(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),nf=Object.prototype.toString,mh=Array.prototype,iU=mh.forEach,aU=mh.filter,e0=mh.slice,oU=mh.map,X1=(function(){}).constructor,Rf=X1?X1.prototype:null,t0="__proto__",sU=2311;function y2(){return sU++}function r0(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function tt(e){if(e==null||typeof e!="object")return e;var t=e,r=nf.call(e);if(r==="[object Array]"){if(!jl(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=tt(e[n])}}else if(m2[r]){if(!jl(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(!g2[r]&&!jl(e)&&!_d(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==t0&&(t[o]=tt(e[o]))}return t}function st(e,t,r){if(!Re(t)||!Re(e))return r?tt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==t0){var i=e[n],a=t[n];Re(a)&&Re(i)&&!ye(a)&&!ye(i)&&!_d(a)&&!_d(i)&&!Z1(a)&&!Z1(i)&&!jl(a)&&!jl(i)?st(i,a,r):(r||!(n in e))&&(e[n]=tt(t[n]))}return e}function ue(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==t0&&(e[r]=t[r]);return e}function ht(e,t,r){for(var n=Ct(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}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 lU(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 ni(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 ht(e,t,r)}function Ir(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function R(e,t,r){if(e&&t)if(e.forEach&&e.forEach===iU)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 Ne(e,t,r){if(!e)return[];if(!t)return n0(e);if(e.map&&e.map===oU)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 ca(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 jt(e,t,r){if(!e)return[];if(!t)return n0(e);if(e.filter&&e.filter===aU)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 Ct(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 uU(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(e0.call(arguments)))}}var xt=Rf&&Ye(Rf.bind)?Rf.call.bind(Rf.bind):uU;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(e0.call(arguments)))}}function ye(e){return Array.isArray?Array.isArray(e):nf.call(e)==="[object Array]"}function Ye(e){return typeof e=="function"}function Ee(e){return typeof e=="string"}function kg(e){return nf.call(e)==="[object String]"}function Tt(e){return typeof e=="number"}function Re(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Z1(e){return!!g2[nf.call(e)]}function Gr(e){return!!m2[nf.call(e)]}function _d(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function yh(e){return e.colorStops!=null}function fU(e){return e.image!=null}function bd(e){return e!==e}function Au(){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 Ze(e,t){return e??t}function Yl(e,t,r){return e??t??r}function n0(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e0.apply(e,t)}function _2(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 Ci(e,t){if(!e)throw new Error(t)}function Gn(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var b2="__ec_primitive__";function Ng(e){e[b2]=!0}function jl(e){return e[b2]}var cU=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 Ct(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),w2=typeof Map=="function";function dU(){return w2?new Map:new cU}var hU=function(){function e(t){var r=ye(t);this.data=dU();var n=this;t instanceof e?t.each(i):t&&R(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 w2?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function je(e){return new hU(e)}function vU(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 _h(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&ue(r,t),r}function S2(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ds(e,t){return e.hasOwnProperty(t)}function Er(){}var pU=180/Math.PI;function Us(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function gU(e){return[e[0],e[1]]}function Q1(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function mU(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function yU(e){return Math.sqrt(_U(e))}function _U(e){return e[0]*e[0]+e[1]*e[1]}function pv(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function bU(e,t){var r=yU(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Bg(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Fg=Bg;function wU(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var us=wU;function gv(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 un(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 ts(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function rs(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var No=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),SU=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 No(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 No(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 No(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new No(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new No(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new No(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),xU=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,f=a[t][u];return f&&f.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 f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const ii=xU;var CU=Math.log(2);function $g(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)/CU);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,d=0;h<s;h++){var v=1<<h;v&i||(c+=(d%2?-1:1)*e[r][h]*$g(e,t-1,f,u,i|v,a),d++)}return a[o]=c,c}function J1(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=$g(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)*$g(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var ew="___zrEVENTSAVED",mv=[];function TU(e,t,r,n,i){return Hg(mv,t,n,i,!0)&&Hg(e,r,mv[0],mv[1])}function Hg(e,t,r,n,i){if(t.getBoundingClientRect&&He.domSupported&&!x2(t)){var a=t[ew]||(t[ew]={}),o=MU(t,a),s=AU(o,a,i);if(s)return s(e,r,n),!0}return!1}function MU(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 AU(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,h=f.left,d=f.top;o.push(h,d),l=l&&a&&h===a[c]&&d===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?J1(s,o):J1(o,s))}function x2(e){return e.nodeName.toUpperCase()==="CANVAS"}var PU=/([&<>"'])/g,EU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function tn(e){return e==null?"":(e+"").replace(PU,function(t,r){return EU[r]})}var LU=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yv=[],DU=He.browser.firefox&&+He.browser.version.split(".")[0]<39;function zg(e,t,r,n){return r=r||{},n?tw(e,t,r):DU&&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):tw(e,t,r),r}function tw(e,t,r){if(He.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(x2(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Hg(yv,e,n,i)){r.zrX=yv[0],r.zrY=yv[1];return}}r.zrX=r.zrY=0}function i0(e){return e||window.event}function Qr(e,t,r){if(t=i0(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&&zg(e,o,t,r)}else{zg(e,t,t,r);var a=IU(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&LU.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function IU(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 OU(e,t,r,n){e.addEventListener(t,r,n)}function RU(e,t,r,n){e.removeEventListener(t,r,n)}var C2=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},kU=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=zg(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 _v)if(_v.hasOwnProperty(r)){var n=_v[r](this._track,t);if(n)return n}},e}();function rw(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function NU(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var _v={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=rw(n)/rw(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=NU(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Pu(){return[1,0,0,1,0,0]}function a0(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function BU(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 fs(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 Vg(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 o0(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),f=Math.cos(r);return e[0]=n*f+o*u,e[1]=-n*u+o*f,e[2]=i*f+s*u,e[3]=-i*u+f*s,e[4]=f*a+u*l,e[5]=f*l-u*a,e}function FU(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 bh(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 $U=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 Fe=$U;var kf=Math.min,Nf=Math.max,wa=new Fe,Sa=new Fe,xa=new Fe,Ca=new Fe,tl=new Fe,rl=new Fe,nt=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=kf(t.x,this.x),n=kf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Nf(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Nf(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=Pu();return Vg(a,a,[-r.x,-r.y]),FU(a,a,[n,i]),Vg(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,h=!(a<l||u<i||s<f||c<o);if(r){var d=1/0,v=0,p=Math.abs(a-l),m=Math.abs(u-i),g=Math.abs(s-f),y=Math.abs(c-o),_=Math.min(p,m),b=Math.min(g,y);a<l||u<i?_>v&&(v=_,p<m?Fe.set(rl,-p,0):Fe.set(rl,m,0)):_<d&&(d=_,p<m?Fe.set(tl,p,0):Fe.set(tl,-m,0)),s<f||c<o?b>v&&(v=b,g<y?Fe.set(rl,0,-g):Fe.set(rl,0,y)):_<d&&(d=_,g<y?Fe.set(tl,0,g):Fe.set(tl,0,-y))}return r&&Fe.copy(r,h?tl:rl),h},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}wa.x=xa.x=r.x,wa.y=Ca.y=r.y,Sa.x=Ca.x=r.x+r.width,Sa.y=xa.y=r.y+r.height,wa.transform(n),Ca.transform(n),Sa.transform(n),xa.transform(n),t.x=kf(wa.x,Sa.x,xa.x,Ca.x),t.y=kf(wa.y,Sa.y,xa.y,Ca.y);var l=Nf(wa.x,Sa.x,xa.x,Ca.x),u=Nf(wa.y,Sa.y,xa.y,Ca.y);t.width=l-t.x,t.height=u-t.y},e}(),T2="silent";function HU(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:zU}}function zU(){C2(this.event)}var VU=function(e){ge(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}(ii),nl=function(){function e(t,r){this.x=t,this.y=r}return e}(),WU=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],bv=new nt(0,0,0,0),M2=function(e){ge(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new nl(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new VU,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new SU(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(WU,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=A2(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 nl(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new nl(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=HU(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 nl(r,n);if(nw(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new nt(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(bv.copy(h.getBoundingRect()),h.transform&&bv.applyTransform(h.transform),bv.intersect(f)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,p=Math.PI*2,m=0;m<u;m+=d)for(var g=0;g<p;g+=v){var y=r+m*Math.cos(g),_=n+m*Math.sin(g);if(nw(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new kU);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 nl;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(ii);R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){M2.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=A2(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||Fg(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function GU(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?T2:!0}return!1}function nw(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=GU(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==T2)){t.target=o;break}}}function A2(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const UU=M2;var P2=32,il=7;function YU(e){for(var t=0;e>=P2;)t|=e&1,e>>=1;return e+t}function iw(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++;jU(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function jU(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function aw(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 wv(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 f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function Sv(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 f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function qU(e,t){var r=il,n,i,a=0;e.length;var o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;f(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,f(d)}}function f(d){var v=n[d],p=i[d],m=n[d+1],g=i[d+1];i[d]=p+g,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var y=Sv(e[m],e,v,p,0,t);v+=y,p-=y,p!==0&&(g=wv(e[v+p-1],e,m,g,g-1,t),g!==0&&(p<=g?c(v,p,m,g):h(v,p,m,g)))}function c(d,v,p,m){var g=0;for(g=0;g<v;g++)o[g]=e[d+g];var y=0,_=p,b=d;if(e[b++]=e[_++],--m===0){for(g=0;g<v;g++)e[b+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)e[b+g]=e[_+g];e[b+m]=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,--m===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=Sv(e[_],o,y,v,0,t),w!==0){for(g=0;g<w;g++)e[b+g]=o[y+g];if(b+=w,y+=w,v-=w,v<=1){C=!0;break}}if(e[b++]=e[_++],--m===0){C=!0;break}if(S=wv(o[y],e,_,m,0,t),S!==0){for(g=0;g<S;g++)e[b+g]=e[_+g];if(b+=S,_+=S,m-=S,m===0){C=!0;break}}if(e[b++]=o[y++],--v===1){C=!0;break}x--}while(w>=il||S>=il);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(g=0;g<m;g++)e[b+g]=e[_+g];e[b+m]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)e[b+g]=o[y+g]}}function h(d,v,p,m){var g=0;for(g=0;g<m;g++)o[g]=e[p+g];var y=d+v-1,_=m-1,b=p+m-1,x=0,w=0;if(e[b--]=e[y--],--v===0){for(x=b-(m-1),g=0;g<m;g++)e[x+g]=o[g];return}if(m===1){for(b-=v,y-=v,w=b+1,x=y+1,g=v-1;g>=0;g--)e[w+g]=e[x+g];e[b]=o[_];return}for(var S=r;;){var C=0,M=0,A=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,M=0,--v===0){A=!0;break}}else if(e[b--]=o[_--],M++,C=0,--m===1){A=!0;break}while((C|M)<S);if(A)break;do{if(C=v-Sv(o[_],e,d,v,v-1,t),C!==0){for(b-=C,y-=C,v-=C,w=b+1,x=y+1,g=C-1;g>=0;g--)e[w+g]=e[x+g];if(v===0){A=!0;break}}if(e[b--]=o[_--],--m===1){A=!0;break}if(M=m-wv(e[y],o,0,m,m-1,t),M!==0){for(b-=M,_-=M,m-=M,w=b+1,x=_+1,g=0;g<M;g++)e[w+g]=o[x+g];if(m<=1){A=!0;break}}if(e[b--]=e[y--],--v===0){A=!0;break}S--}while(C>=il||M>=il);if(A)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),m===1){for(b-=v,y-=v,w=b+1,x=y+1,g=v-1;g>=0;g--)e[w+g]=e[x+g];e[b]=o[_]}else{if(m===0)throw new Error;for(x=b-(m-1),g=0;g<m;g++)e[x+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function $c(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<P2){a=iw(e,r,n,t),aw(e,r,n,r+a,t);return}var o=qU(e,t),s=YU(i);do{if(a=iw(e,r,n,t),a<s){var l=i;l>s&&(l=s),aw(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 Br=1,Cl=2,Qo=4,ow=!1;function xv(){ow||(ow=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sw(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var KU=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sw}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,$c(n,sw)},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|=Br),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(xv(),f.z=0),isNaN(f.z2)&&(xv(),f.z2=0),isNaN(f.zlevel)&&(xv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,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}(),E2;E2=He.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Wg=E2;var ql={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-ql.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?ql.bounceIn(e*2)*.5:ql.bounceOut(e*2-1)*.5+.5}},Bf=Math.pow,ia=Math.sqrt,wd=1e-8,L2=1e-4,lw=ia(3),Ff=1/3,Vn=Us(),rn=Us(),cs=Us();function Ji(e){return e>-wd&&e<wd}function D2(e){return e>wd||e<-wd}function Zt(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 uw(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function I2(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,d=0;if(Ji(f)&&Ji(c))if(Ji(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var p=c*c-4*f*h;if(Ji(p)){var m=c/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(a[d++]=v),g>=0&&g<=1&&(a[d++]=g)}else if(p>0){var y=ia(p),_=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);_<0?_=-Bf(-_,Ff):_=Bf(_,Ff),b<0?b=-Bf(-b,Ff):b=Bf(b,Ff);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var x=(2*f*s-3*o*c)/(2*ia(f*f*f)),w=Math.acos(x)/3,S=ia(f),C=Math.cos(w),v=(-s-2*S*C)/(3*o),g=(-s+S*(C+lw*Math.sin(w)))/(3*o),M=(-s+S*(C-lw*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[d++]=v),g>=0&&g<=1&&(a[d++]=g),M>=0&&M<=1&&(a[d++]=M)}}return d}function O2(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(Ji(o)){if(D2(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Ji(f))i[0]=-a/(2*o);else if(f>0){var c=ia(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Sd(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function R2(e,t,r,n,i,a,o,s,l,u,f){var c,h=.005,d=1/0,v,p,m,g;Vn[0]=l,Vn[1]=u;for(var y=0;y<1;y+=.05)rn[0]=Zt(e,r,i,o,y),rn[1]=Zt(t,n,a,s,y),m=us(Vn,rn),m<d&&(c=y,d=m);d=1/0;for(var _=0;_<32&&!(h<L2);_++)v=c-h,p=c+h,rn[0]=Zt(e,r,i,o,v),rn[1]=Zt(t,n,a,s,v),m=us(rn,Vn),v>=0&&m<d?(c=v,d=m):(cs[0]=Zt(e,r,i,o,p),cs[1]=Zt(t,n,a,s,p),g=us(cs,Vn),p<=1&&g<d?(c=p,d=g):h*=.5);return f&&(f[0]=Zt(e,r,i,o,c),f[1]=Zt(t,n,a,s,c)),ia(d)}function XU(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,c=0,h=1/l,d=1;d<=l;d++){var v=d*h,p=Zt(e,r,i,o,v),m=Zt(t,n,a,s,v),g=p-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=p,f=m}return c}function ir(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function fw(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function ZU(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Ji(a)){if(D2(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Ji(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=ia(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function k2(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function xd(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 N2(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Vn[0]=o,Vn[1]=s;for(var h=0;h<1;h+=.05){rn[0]=ir(e,r,i,h),rn[1]=ir(t,n,a,h);var d=us(Vn,rn);d<c&&(u=h,c=d)}c=1/0;for(var v=0;v<32&&!(f<L2);v++){var p=u-f,m=u+f;rn[0]=ir(e,r,i,p),rn[1]=ir(t,n,a,p);var d=us(rn,Vn);if(p>=0&&d<c)u=p,c=d;else{cs[0]=ir(e,r,i,m),cs[1]=ir(t,n,a,m);var g=us(cs,Vn);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=ir(e,r,i,u),l[1]=ir(t,n,a,u)),ia(c)}function QU(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,d=ir(e,r,i,h),v=ir(t,n,a,h),p=d-s,m=v-l;u+=Math.sqrt(p*p+m*m),s=d,l=v}return u}var JU=/cubic-bezier\(([0-9,\.e ]+)\)/;function B2(e){var t=e&&JU.exec(e);if(t){var r=t[1].split(","),n=+Gn(r[0]),i=+Gn(r[1]),a=+Gn(r[2]),o=+Gn(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:I2(0,n,a,1,l,s)&&Zt(0,i,o,1,s[0])}}}var e9=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||Er,this.ondestroy=t.ondestroy||Er,this.onrestart=t.onrestart||Er,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=Ye(t)?t:ql[t]||B2(t)},e}();const t9=e9;var F2=function(){function e(t){this.value=t}return e}(),r9=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new F2(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}(),af=function(){function e(t){this._list=new r9,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 F2(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}(),cw={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 Kl(e){return e=Math.round(e),e<0?0:e>255?255:e}function dw(e){return e<0?0:e>1?1:e}function Cv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Kl(parseFloat(t)/100*255):Kl(parseInt(t,10))}function Xl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?dw(parseFloat(t)/100):dw(parseFloat(t))}function Tv(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 Zr(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Gg(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var $2=new af(20),$f=null;function Bo(e,t){$f&&Gg($f,t),$f=$2.put(e,$f||t.slice())}function uo(e,t){if(e){t=t||[];var r=$2.get(e);if(r)return Gg(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in cw)return Gg(t,cw[n]),Bo(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)){Zr(t,0,0,0,1);return}return Zr(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),Bo(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Zr(t,0,0,0,1);return}return Zr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Bo(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Zr(t,+u[0],+u[1],+u[2],1):Zr(t,0,0,0,1);f=Xl(u.pop());case"rgb":if(u.length>=3)return Zr(t,Cv(u[0]),Cv(u[1]),Cv(u[2]),u.length===3?f:Xl(u[3])),Bo(e,t),t;Zr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Zr(t,0,0,0,1);return}return u[3]=Xl(u[3]),hw(u,t),Bo(e,t),t;case"hsl":if(u.length!==3){Zr(t,0,0,0,1);return}return hw(u,t),Bo(e,t),t;default:return}}Zr(t,0,0,0,1)}}function hw(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Xl(e[1]),i=Xl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Zr(t,Kl(Tv(o,a,r+1/3)*255),Kl(Tv(o,a,r)*255),Kl(Tv(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function vw(e,t){var r=uo(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 s0(r,r.length===4?"rgba":"rgb")}}function s0(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 Cd(e,t){var r=uo(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function n9(e){return e.type==="linear"}function i9(e){return e.type==="radial"}(function(){return He.hasGlobalWindow&&Ye(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 Ug=Array.prototype.slice;function hi(e,t,r){return(t-e)*r+e}function Mv(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=hi(t[a],r[a],n);return e}function a9(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]=hi(t[o][s],r[o][s],n)}return e}function Hf(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function pw(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 o9(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 s9(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]:Ug.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 f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Hc(e){if(Ir(e)){var t=e.length;if(Ir(e[0])){for(var r=[],n=0;n<t;n++)r.push(Ug.call(e[n]));return r}return Ug.call(e)}return e}function zc(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 l9(e){return Ir(e&&e[0])?2:1}var zf=0,Vc=1,H2=2,Tl=3,Yg=4,jg=5,gw=6;function mw(e){return e===Yg||e===jg}function Vf(e){return e===Vc||e===H2}var al=[0,0,0,0],u9=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=gw,l=r;if(Ir(r)){var u=l9(r);s=u,(u===1&&!Tt(r[0])||u===2&&!Tt(r[0][0]))&&(o=!0)}else if(Tt(r)&&!bd(r))s=zf;else if(Ee(r))if(!isNaN(+r))s=zf;else{var f=uo(r);f&&(l=f,s=Tl)}else if(yh(r)){var c=ue({},l);c.colorStops=Ne(r.colorStops,function(d){return{offset:d.offset,color:uo(d.color)}}),n9(r)?s=Yg:i9(r)&&(s=jg),l=c}a===0?this.valType=s:(s!==this.valType||s===gw)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=Ye(n)?n:ql[n]||B2(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,m){return p.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Vf(i),u=mw(i),f=0;f<a;f++){var c=n[f],h=c.value,d=o.value;c.percent=c.time/t,s||(l&&f!==a-1?s9(h,d,i):u&&o9(h.colorStops,d.colorStops))}if(!s&&i!==jg&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,f=0;f<a;f++)i===zf?n[f].additiveValue=n[f].value-v:i===Tl?n[f].additiveValue=Hf([],n[f].value,v,-1):Vf(i)&&(n[f].additiveValue=i===Vc?Hf([],n[f].value,v,-1):pw([],n[f].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===Tl,f,c=this._lastFr,h=Math.min,d,v;if(s===1)d=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}v=o[f+1],d=o[f]}if(d&&v){this._lastFr=f,this._lastFrP=r;var m=v.percent-d.percent,g=m===0?1:h((r-d.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=n?this._additiveValue:u?al:t[l];if((Vf(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=g<1?d.rawValue:v.rawValue;else if(Vf(a))a===Vc?Mv(y,d[i],v[i],g):a9(y,d[i],v[i],g);else if(mw(a)){var _=d[i],b=v[i],x=a===Yg;t[l]={type:x?"linear":"radial",x:hi(_.x,b.x,g),y:hi(_.y,b.y,g),colorStops:Ne(_.colorStops,function(S,C){var M=b.colorStops[C];return{offset:hi(S.offset,M.offset,g),color:zc(Mv([],S.color,M.color,g))}}),global:b.global},x?(t[l].x2=hi(_.x2,b.x2,g),t[l].y2=hi(_.y2,b.y2,g)):t[l].r=hi(_.r,b.r,g)}else if(u)Mv(y,d[i],v[i],g),n||(t[l]=zc(y));else{var w=hi(d[i],v[i],g);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===zf?t[n]=t[n]+i:r===Tl?(uo(t[n],al),Hf(al,al,i,1),t[n]=zc(al)):r===Vc?Hf(t[n],t[n],i,1):r===H2&&pw(t[n],t[n],i,1)},e}(),l0=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){r0("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,Ct(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 u9(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===Tl&&u&&(u=zc(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Hc(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Hc(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,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new t9({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,m=0;m<v.length;m++)if(v[m]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,d);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.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 Ne(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]=Hc(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Ct(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}();function ns(){return new Date().getTime()}var f9=function(e){ge(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=ns()-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&&(Wg(n),!r._paused&&r.update())}Wg(n)},t.prototype.start=function(){this._running||(this._time=ns(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ns(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ns()-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 l0(r,n.loop);return this.addAnimator(i),i},t}(ii),c9=300,Av=He.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=Ne(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),yw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_w=!1;function qg(e){var t=e.pointerType;return t==="pen"||t==="touch"}function d9(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 Ev(e){e&&(e.zrByTouch=!0)}function h9(e,t){return Qr(e.dom,new v9(e,t),!0)}function z2(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 v9=function(){function e(t,r){this.stopPropagation=Er,this.stopImmediatePropagation=Er,this.preventDefault=Er,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),yn={mousedown:function(e){e=Qr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Qr(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=Qr(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Qr(this.dom,e);var t=e.toElement||e.relatedTarget;z2(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){_w=!0,e=Qr(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){_w||(e=Qr(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Qr(this.dom,e),Ev(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),yn.mousemove.call(this,e),yn.mousedown.call(this,e)},touchmove:function(e){e=Qr(this.dom,e),Ev(e),this.handler.processGesture(e,"change"),yn.mousemove.call(this,e)},touchend:function(e){e=Qr(this.dom,e),Ev(e),this.handler.processGesture(e,"end"),yn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<c9&&yn.click.call(this,e)},pointerdown:function(e){yn.mousedown.call(this,e)},pointermove:function(e){qg(e)||yn.mousemove.call(this,e)},pointerup:function(e){yn.mouseup.call(this,e)},pointerout:function(e){qg(e)||yn.mouseout.call(this,e)}};R(["click","dblclick","contextmenu"],function(e){yn[e]=function(t){t=Qr(this.dom,t),this.trigger(e,t)}});var Kg={pointermove:function(e){qg(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 p9(e,t){var r=t.domHandlers;He.pointerEventsSupported?R(Pv.pointer,function(n){Wc(t,n,function(i){r[n].call(e,i)})}):(He.touchEventsSupported&&R(Pv.touch,function(n){Wc(t,n,function(i){r[n].call(e,i),d9(t)})}),R(Pv.mouse,function(n){Wc(t,n,function(i){i=i0(i),t.touching||r[n].call(e,i)})}))}function g9(e,t){He.pointerEventsSupported?R(yw.pointer,r):He.touchEventsSupported||R(yw.mouse,r);function r(n){function i(a){a=i0(a),z2(e,a.target)||(a=h9(e,a),t.domHandlers[n].call(e,a))}Wc(t,n,i,{capture:!0})}}function Wc(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,OU(e.domTarget,t,r,n)}function Lv(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&RU(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var bw=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),m9=function(e){ge(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 bw(r,yn),Av&&(i._globalHandlerScope=new bw(document,Kg)),p9(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Lv(this._localHandlerScope),Av&&Lv(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,Av&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?g9(this,n):Lv(n)}},t}(ii);const y9=m9;var V2=1;He.hasGlobalWindow&&(V2=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Td=V2,Xg=.4,Zg="#333",Qg="#ccc",_9="#eee",ww=a0,Sw=5e-5;function Ta(e){return e>Sw||e<-Sw}var Ma=[],Fo=[],Dv=Pu(),Iv=Math.abs,wh=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 Ta(this.rotation)||Ta(this.x)||Ta(this.y)||Ta(this.scaleX-1)||Ta(this.scaleY-1)||Ta(this.skewX)||Ta(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(ww(n),this.invTransform=null);return}n=n||Pu(),r?this.getLocalTransform(n):ww(n),t&&(r?fs(n,t,n):BU(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ma);var n=Ma[0]<0?-1:1,i=Ma[1]<0?-1:1,a=((Ma[0]-n)*r+n)/Ma[0]||0,o=((Ma[1]-i)*r+i)/Ma[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Pu(),bh(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&&(fs(Fo,t.invTransform,r),r=Fo);var n=this.originX,i=this.originY;(n||i)&&(Dv[4]=n,Dv[5]=i,fs(Fo,r,Dv),Fo[4]-=n,Fo[5]-=i,r=Fo),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&&un(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&un(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Iv(t[0]-1)>1e-10&&Iv(t[3]-1)>1e-10?Math.sqrt(Iv(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){b9(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-h*p*o,r[5]=-p*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&o0(r,r,u),r[4]+=n+f,r[5]+=i+c,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Eu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function b9(e,t){for(var r=0;r<Eu.length;r++){var n=Eu[r];e[n]=t[n]}}var xw={};function Vr(e,t){t=t||_o;var r=xw[t];r||(r=xw[t]=new af(500));var n=r.get(e);return n==null&&(n=Gs.measureText(e,t).width,r.put(e,n)),n}function Cw(e,t,r,n){var i=Vr(e,t),a=f0(t),o=Ml(0,i,r),s=Jo(0,a,n),l=new nt(o,s,i,a);return l}function u0(e,t,r,n){var i=((e||"")+"").split(`
+`),a=i.length;if(a===1)return Cw(i[0],t,r,n);for(var o=new nt(0,0,0,0),s=0;s<i.length;s++){var l=Cw(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Ml(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Jo(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function f0(e){return Vr("国",e)}function da(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Md(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=da(n[0],r.width),u+=da(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var Ov="__zr_normal__",Rv=Eu.concat(["ignore"]),w9=ca(Eu,function(e,t){return e[t]=!0,e},{ignore:!1}),$o={},S9=new nt(0,0,0,0),c0=function(){function e(t){this.id=y2(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=S9;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition($o,n,f):Md($o,n,f),a.x=$o.x,a.y=$o.y,o=$o.align,s=$o.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,d=void 0;c==="center"?(h=f.width*.5,d=f.height*.5):(h=da(c[0],f.width),d=da(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+d+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),_=!0)):(g=n.outsideFill,y=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==m.fill||y!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=g,m.stroke=y,m.autoStroke=_,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Br,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()?Qg:Zg},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&uo(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,s0(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||{},ue(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(Re(t))for(var n=t,i=Ct(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!==Ov)){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,Rv)},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(Ov,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Ov,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){r0("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,r,n,f),h&&h.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Br),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],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,m=this._textGuide;p&&p.useStates(t,r,h),m&&m.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Br)}},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];ue(r,a),a.textConfig&&(n=n||{},ue(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=ue({},i?this.textConfig:n.textConfig),ue(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Rv.length;f++){var c=Rv[f],h=a&&w9[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var d=this.animators[f],v=d.targetName;d.getLoop()||d.__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 wh,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),ue(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|=Br;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 l0(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){kv(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){kv(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=kv(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=Br;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(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();ni(c0,ii);ni(c0,wh);function kv(e,t,r,n,i){r=r||{};var a=[];W2(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=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 h=0;h<a.length;h++){var d=a[h];f&&d.done(f),c&&d.aborted(c),r.force&&d.duration(r.duration),d.start(r.easing)}return a}function Nv(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function x9(e){return Ir(e[0])}function C9(e,t,r){if(Ir(t[r]))if(Ir(e[r])||(e[r]=[]),Gr(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Nv(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(x9(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Nv(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Nv(a,i,o);a.length=i.length}else e[r]=t[r]}function T9(e,t){return e===t||Ir(e)&&Ir(t)&&M9(e,t)}function M9(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 W2(e,t,r,n,i,a,o,s){for(var l=Ct(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,d=!Re(a),v=e.animators,p=[],m=0;m<l.length;m++){var g=l[m],y=n[g];if(y!=null&&r[g]!=null&&(d||a[g]))if(Re(y)&&!Ir(y)&&!yh(y)){if(t){s||(r[g]=y,e.updateDuringAnimation(t));continue}W2(e,g,r[g],y,i,a&&a[g],o,s)}else p.push(g);else s||(r[g]=y,e.updateDuringAnimation(t),p.push(g))}var _=p.length;if(!c&&_)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=jt(p,function(P){return!T9(n[P],r[P])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,M=void 0,A=void 0;if(s){M={},h&&(C={});for(var b=0;b<_;b++){var g=p[b];M[g]=r[g],h?C[g]=n[g]:r[g]=n[g]}}else if(h){A={};for(var b=0;b<_;b++){var g=p[b];A[g]=Hc(r[g]),C9(r,n,g)}}var x=new l0(r,!1,!1,c?jt(v,function(E){return E.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),h&&C&&x.whenWithKeys(0,C,p),A&&x.whenWithKeys(0,A,p),x.whenWithKeys(u??500,s?M:n,p).delay(f||0),e.addAnimator(x,t),o.push(x)}}const G2=c0;var Ur=function(e){ge(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 nt(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(),f=l.getLocalTransform(a);f?(nt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(G2);Ur.prototype.type="group";/*!
 * ZRender, a high performance 2d drawing library.
 *
 * Copyright (c) 2013, Baidu Inc.
@@ -65,20 +65,20 @@ PERFORMANCE OF THIS SOFTWARE.
 *
 * LICENSE
 * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
-*/var Gc={},U2={};function A9(e){delete U2[e]}function P9(e){if(!e)return!1;if(typeof e=="string")return Cd(e,1)<Xg;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Cd(t[i].color,1);return r/=n,r<Xg}return!1}var E9=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 KU,o=n.renderer||"canvas";Gc[o]||(o=Ct(Gc)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Gc[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!He.node&&!He.worker&&!l?new y9(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?He.touchEventsSupported:!!f,h=44,d;c&&(d=Ze(n.pointerSize,h)),this.handler=new UU(a,s,u,s.root,d),this.animation=new f9({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=P9(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 Ur&&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,A9(this.id)},e}();function Tw(e,t){var r=new E9(y2(),e,t);return U2[r.id]=r,r}function L9(e,t){Gc[e]=t}var Mw=1e-4,Y2=20;function D9(e){return e.replace(/^\s+|\s+$/g,"")}function Jg(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 yt(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 Ee(e)?D9(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ft(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Y2),e=(+e).toFixed(t),r?e:+e}function vi(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 I9(e)}function I9(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 O9(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 R9(e,t){var r=ca(e,function(d,v){return d+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Ne(e,function(d){return(isNaN(d)?0:d)/r*n*100}),a=n*100,o=Ne(i,function(d){return Math.floor(d)}),s=ca(o,function(d,v){return d+v},0),l=Ne(i,function(d,v){return d-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Ne(o,function(d){return d/n})}function k9(e,t){var r=Math.max(vi(e),vi(t)),n=e+t;return r>Y2?n:Ft(n,r)}function j2(e){var t=Math.PI*2;return(e%t+t)%t}function Ad(e){return e>-Mw&&e<Mw}var N9=/^(?:(\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 Ti(e){if(e instanceof Date)return e;if(Ee(e)){var t=N9.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 B9(e){return Math.pow(10,d0(e))}function d0(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 q2(e,t){var r=d0(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 Pd(e){var t=parseFloat(e);return t==e&&(t!==0||!Ee(e)||e.indexOf("x")<=0)?t:NaN}function F9(e){return!isNaN(Pd(e))}function K2(){return Math.round(Math.random()*9)}function X2(e,t){return t===0?e:X2(t,e%t)}function Aw(e,t){return e==null?t:t==null?e:e*t/X2(e,t)}function Cr(e){throw new Error(e)}function Pw(e,t,r){return(t-e)*r+e}var Z2="series\0",$9="\0_ec_\0";function pr(e){return e instanceof Array?e:e==null?[]:[e]}function em(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 Ew=["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 of(e){return Re(e)&&!ye(e)&&!(e instanceof Date)?e.value:e}function H9(e){return Re(e)&&!(e instanceof Array)}function z9(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=je();R(t,function(l,u){if(!Re(l)){t[u]=null;return}});var s=V9(e,o,r);return(n||i)&&W9(s,e,o,t),n&&G9(s,t),n||i?U9(s,t,i):a&&Y9(s,t),j9(s),s}function V9(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"||Lu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function W9(e,t,r,n){R(n,function(i,a){if(!(!i||i.id==null)){var o=Zl(i.id),s=r.get(o);if(s!=null){var l=e[s];Ci(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function G9(e,t){R(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)&&!Lu(r)&&!Lu(a)&&Q2("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function U9(e,t,r){R(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||Lu(i.existing)||i.existing&&n.id!=null&&!Q2("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function Y9(e,t){R(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function j9(e){var t=je();R(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),R(e,function(r){var n=r.newOption;Ci(!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={})}),R(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Re(a)){if(o.name=a.name!=null?Zl(a.name):i?i.name:Z2+n,i)o.id=Zl(i.id);else if(a.id!=null)o.id=Zl(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 Q2(e,t,r){var n=qn(t[e],null),i=qn(r[e],null);return n!=null&&i!=null&&n===i}function Zl(e){return qn(e,"")}function qn(e,t){return e==null?t:Ee(e)?e:Tt(e)||kg(e)?e+"":t}function h0(e){var t=e.name;return!!(t&&t.indexOf(Z2))}function Lu(e){return e&&e.id!=null&&Zl(e.id).indexOf($9)===0}function q9(e,t,r){R(e,function(n){var i=n.newOption;Re(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=K9(t,i,n.existing,r))})}function K9(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function sf(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ye(t.dataIndex)?Ne(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ye(t.name)?Ne(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Et(){var e="__ec_inner_"+X9++;return function(t){return t[e]||(t[e]={})}}var X9=K2();function Bv(e,t,r){var n=v0(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,f){var c=lf(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function v0(e,t){var r;if(Ee(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=je(),a={},o=!1;return R(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&ot(t.includeMainTypes,f)<0)){o=o||!!f;var h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Tn={useDefault:!0,enableAll:!1,enableNone:!1};function lf(e,t,r,n){n=n||Tn;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?(Ci(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Ci(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 J2(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Z9(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Q9(e){return e==="auto"?He.domSupported?"html":"richText":e||"html"}function J9(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(Tt(n)){var o=Pw(r||0,n,i);return Ft(o,a?Math.max(vi(r||0),vi(n)):t)}else{if(Ee(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=e.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var d=l&&l[c]?l[c]:0,v=u[c],o=Pw(d,v,i);s[c]=Ft(o,a?Math.max(vi(d),vi(v)):t)}}return s}}var e7=".",Aa="___EC__COMPONENT__CONTAINER___",eP="___EC__EXTENDED_CLASS___";function Un(e){var t={main:"",sub:""};if(e){var r=e.split(e7);t.main=r[0]||"",t.sub=r[1]||""}return t}function t7(e){Ci(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function r7(e){return!!(e&&e[eP])}function p0(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return n7(n)?i=function(a){ge(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},lU(i,this)),ue(i.prototype,r),i[eP]=!0,i.extend=this.extend,i.superCall=o7,i.superApply=s7,i.superClass=n,i}}function n7(e){return Ye(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function tP(e,t){e.extend=t.extend}var i7=Math.round(Math.random()*10);function a7(e){var t=["__\0is_clz",i7++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function o7(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 s7(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Sh(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){t7(i),n.prototype.type=i;var a=Un(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Aa){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Aa]&&(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=Un(n),a=[],o=t[i.main];return o&&o[Aa]?R(o,function(s,l){l!==Aa&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Un(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return R(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Un(n),a=t[i.main];return a&&a[Aa]};function r(n){var i=t[n.main];return(!i||!i[Aa])&&(i=t[n.main]={},i[Aa]=!0),i}}function Du(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 l7=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],u7=Du(l7),f7=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return u7(this,t,r)},e}(),tm=new af(50);function c7(e){if(typeof e=="string"){var t=tm.get(e);return t&&t.image}else return e}function rP(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=tm.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!xh(t)&&a.pending.push(o)):(t=Vs.loadImage(e,Lw,Lw),t.__zrImageSrc=e,tm.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Lw(){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 xh(e){return e&&e.width&&e.height}var Fv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function d7(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
+*/var Gc={},U2={};function A9(e){delete U2[e]}function P9(e){if(!e)return!1;if(typeof e=="string")return Cd(e,1)<Xg;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Cd(t[i].color,1);return r/=n,r<Xg}return!1}var E9=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 KU,o=n.renderer||"canvas";Gc[o]||(o=Ct(Gc)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Gc[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!He.node&&!He.worker&&!l?new y9(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?He.touchEventsSupported:!!f,h=44,d;c&&(d=Ze(n.pointerSize,h)),this.handler=new UU(a,s,u,s.root,d),this.animation=new f9({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=P9(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=ns();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=ns();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 Ur&&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,A9(this.id)},e}();function Tw(e,t){var r=new E9(y2(),e,t);return U2[r.id]=r,r}function L9(e,t){Gc[e]=t}var Mw=1e-4,Y2=20;function D9(e){return e.replace(/^\s+|\s+$/g,"")}function Jg(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 yt(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 Ee(e)?D9(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function $t(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Y2),e=(+e).toFixed(t),r?e:+e}function vi(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 I9(e)}function I9(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 O9(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 R9(e,t){var r=ca(e,function(d,v){return d+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Ne(e,function(d){return(isNaN(d)?0:d)/r*n*100}),a=n*100,o=Ne(i,function(d){return Math.floor(d)}),s=ca(o,function(d,v){return d+v},0),l=Ne(i,function(d,v){return d-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Ne(o,function(d){return d/n})}function k9(e,t){var r=Math.max(vi(e),vi(t)),n=e+t;return r>Y2?n:$t(n,r)}function j2(e){var t=Math.PI*2;return(e%t+t)%t}function Ad(e){return e>-Mw&&e<Mw}var N9=/^(?:(\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 Ti(e){if(e instanceof Date)return e;if(Ee(e)){var t=N9.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 B9(e){return Math.pow(10,d0(e))}function d0(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 q2(e,t){var r=d0(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 Pd(e){var t=parseFloat(e);return t==e&&(t!==0||!Ee(e)||e.indexOf("x")<=0)?t:NaN}function F9(e){return!isNaN(Pd(e))}function K2(){return Math.round(Math.random()*9)}function X2(e,t){return t===0?e:X2(t,e%t)}function Aw(e,t){return e==null?t:t==null?e:e*t/X2(e,t)}function Cr(e){throw new Error(e)}function Pw(e,t,r){return(t-e)*r+e}var Z2="series\0",$9="\0_ec_\0";function pr(e){return e instanceof Array?e:e==null?[]:[e]}function em(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 Ew=["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 of(e){return Re(e)&&!ye(e)&&!(e instanceof Date)?e.value:e}function H9(e){return Re(e)&&!(e instanceof Array)}function z9(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=je();R(t,function(l,u){if(!Re(l)){t[u]=null;return}});var s=V9(e,o,r);return(n||i)&&W9(s,e,o,t),n&&G9(s,t),n||i?U9(s,t,i):a&&Y9(s,t),j9(s),s}function V9(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"||Lu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function W9(e,t,r,n){R(n,function(i,a){if(!(!i||i.id==null)){var o=Zl(i.id),s=r.get(o);if(s!=null){var l=e[s];Ci(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function G9(e,t){R(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)&&!Lu(r)&&!Lu(a)&&Q2("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function U9(e,t,r){R(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||Lu(i.existing)||i.existing&&n.id!=null&&!Q2("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function Y9(e,t){R(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function j9(e){var t=je();R(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),R(e,function(r){var n=r.newOption;Ci(!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={})}),R(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Re(a)){if(o.name=a.name!=null?Zl(a.name):i?i.name:Z2+n,i)o.id=Zl(i.id);else if(a.id!=null)o.id=Zl(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 Q2(e,t,r){var n=qn(t[e],null),i=qn(r[e],null);return n!=null&&i!=null&&n===i}function Zl(e){return qn(e,"")}function qn(e,t){return e==null?t:Ee(e)?e:Tt(e)||kg(e)?e+"":t}function h0(e){var t=e.name;return!!(t&&t.indexOf(Z2))}function Lu(e){return e&&e.id!=null&&Zl(e.id).indexOf($9)===0}function q9(e,t,r){R(e,function(n){var i=n.newOption;Re(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=K9(t,i,n.existing,r))})}function K9(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function sf(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ye(t.dataIndex)?Ne(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ye(t.name)?Ne(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Et(){var e="__ec_inner_"+X9++;return function(t){return t[e]||(t[e]={})}}var X9=K2();function Bv(e,t,r){var n=v0(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,f){var c=lf(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function v0(e,t){var r;if(Ee(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=je(),a={},o=!1;return R(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&ot(t.includeMainTypes,f)<0)){o=o||!!f;var h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Tn={useDefault:!0,enableAll:!1,enableNone:!1};function lf(e,t,r,n){n=n||Tn;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?(Ci(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Ci(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 J2(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Z9(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Q9(e){return e==="auto"?He.domSupported?"html":"richText":e||"html"}function J9(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(Tt(n)){var o=Pw(r||0,n,i);return $t(o,a?Math.max(vi(r||0),vi(n)):t)}else{if(Ee(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=e.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var d=l&&l[c]?l[c]:0,v=u[c],o=Pw(d,v,i);s[c]=$t(o,a?Math.max(vi(d),vi(v)):t)}}return s}}var e7=".",Aa="___EC__COMPONENT__CONTAINER___",eP="___EC__EXTENDED_CLASS___";function Un(e){var t={main:"",sub:""};if(e){var r=e.split(e7);t.main=r[0]||"",t.sub=r[1]||""}return t}function t7(e){Ci(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function r7(e){return!!(e&&e[eP])}function p0(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return n7(n)?i=function(a){ge(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},lU(i,this)),ue(i.prototype,r),i[eP]=!0,i.extend=this.extend,i.superCall=o7,i.superApply=s7,i.superClass=n,i}}function n7(e){return Ye(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function tP(e,t){e.extend=t.extend}var i7=Math.round(Math.random()*10);function a7(e){var t=["__\0is_clz",i7++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function o7(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 s7(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Sh(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){t7(i),n.prototype.type=i;var a=Un(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Aa){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Aa]&&(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=Un(n),a=[],o=t[i.main];return o&&o[Aa]?R(o,function(s,l){l!==Aa&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Un(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return R(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Un(n),a=t[i.main];return a&&a[Aa]};function r(n){var i=t[n.main];return(!i||!i[Aa])&&(i=t[n.main]={},i[Aa]=!0),i}}function Du(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 l7=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],u7=Du(l7),f7=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return u7(this,t,r)},e}(),tm=new af(50);function c7(e){if(typeof e=="string"){var t=tm.get(e);return t&&t.image}else return e}function rP(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=tm.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!xh(t)&&a.pending.push(o)):(t=Gs.loadImage(e,Lw,Lw),t.__zrImageSrc=e,tm.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Lw(){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 xh(e){return e&&e.width&&e.height}var Fv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function d7(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
 `);i=nP(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=iP(a[o],i);return a.join(`
 `)}function nP(e,t,r,n){n=n||{};var i=ue({},n);i.font=t,r=Ze(r,"..."),i.maxIterations=Ze(n.maxIterations,2);var a=i.minChar=Ze(n.minChar,0);i.cnCharWidth=Vr("国",t);var o=i.ascCharWidth=Vr("a",t);i.placeholder=Ze(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=Vr(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 iP(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Vr(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?h7(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Vr(e,n)}return e===""&&(e=t.placeholder),e}function h7(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 v7(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=f0(i),s=Ze(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,c;f!=null&&(r==="break"||r==="breakAll")?c=e?aP(e,t.font,f,r==="breakAll",0).lines:[]:c=e?e.split(`
 `):[];var h=c.length*s,d=Ze(t.height,h);if(h>d&&u){var v=Math.floor(d/s);c=c.slice(0,v)}if(e&&a&&f!=null)for(var p=nP(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<c.length;m++)c[m]=iP(c[m],p);for(var g=d,y=0,m=0;m<c.length;m++)y=Math.max(Vr(c[m],i),y);f==null&&(f=y);var _=y;return n&&(g+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:c,height:d,outerWidth:_,outerHeight:g,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:h,width:f}}var p7=function(){function e(){}return e}(),Dw=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),g7=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 m7(e,t){var r=new g7;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=Fv.lastIndex=0,l;(l=Fv.exec(e))!=null;){var u=l.index;u>s&&$v(r,e.substring(s,u),t,o),$v(r,l[2],t,o,l[1]),s=Fv.lastIndex}s<e.length&&$v(r,e.substring(s,e.length),t,o);var f=[],c=0,h=0,d=t.padding,v=a==="truncate",p=t.lineOverflow==="truncate";function m(U,F,z){U.width=F,U.lineHeight=z,c+=z,h=Math.max(h,F)}e:for(var g=0;g<r.lines.length;g++){for(var y=r.lines[g],_=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,A=w.font=S.font||t.font;w.contentHeight=f0(A);var P=Ze(S.height,w.contentHeight);if(w.innerHeight=P,C&&(P+=C[0]+C[2]),w.height=P,w.lineHeight=Yl(S.lineHeight,t.lineHeight,P),w.align=S&&S.align||t.align,w.verticalAlign=S&&S.verticalAlign||"middle",p&&i!=null&&c+w.lineHeight>i){x>0?(y.tokens=y.tokens.slice(0,x),m(y,b,_),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break e}var E=S.width,L=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")w.percentWidth=E,f.push(w),w.contentWidth=Vr(w.text,A);else{if(L){var O=S.backgroundColor,N=O&&O.image;N&&(N=c7(N),xh(N)&&(w.width=Math.max(w.width,N.width*P/N.height)))}var H=v&&n!=null?n-b:null;H!=null&&H<w.width?!L||H<M?(w.text="",w.width=w.contentWidth=0):(w.text=d7(w.text,H-M,A,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=Vr(w.text,A)):w.contentWidth=Vr(w.text,A)}w.width+=M,b+=w.width,S&&(_=Math.max(_,w.lineHeight))}m(y,b,_)}r.outerWidth=r.width=Ze(n,h),r.outerHeight=r.height=Ze(i,c),r.contentHeight=c,r.contentWidth=h,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(var g=0;g<f.length;g++){var w=f[g],V=w.percentWidth;w.width=parseInt(V,10)/100*r.width}return r}function $v(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var h=o.padding,d=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var v=da(o.width,n.width)+d;s.length>0&&v+n.accumWidth>n.width&&(f=t.split(`
 `),u=!0),n.accumWidth=v}else{var p=aP(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+d,c=p.linesWidths,f=p.lines}}else f=t.split(`
 `);for(var m=0;m<f.length;m++){var g=f[m],y=new p7;if(y.styleName=i,y.text=g,y.isLineHolder=!g&&!a,typeof o.width=="number"?y.width=o.width:y.width=c?c[m]:Vr(g,l),!m&&!u){var _=(s[s.length-1]||(s[0]=new Dw)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=y:(g||!b||a)&&_.push(y)}else s.push(new Dw([y]))}}function y7(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var _7=ca(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function b7(e){return y7(e)?!!_7[e]:!0}function aP(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<e.length;c++){var h=e.charAt(c);if(h===`
-`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Vr(h,t),v=n?!1:!b7(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var rm="__zr_style_"+Math.round(Math.random()*10),fo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ch={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fo[rm]=!0;var Iw=["z","z2","invisible"],w7=["invisible"],S7=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Ct(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&&x7(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 nt(0,0,0,0)),n?nt.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 nt(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:ue(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Cl,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Cl)},t.prototype.styleUpdated=function(){this.__dirty&=~Cl},t.prototype.createStyle=function(r){return _h(fo,r)},t.prototype.useStyle=function(r){r[rm]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[rm]},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,Iw)},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 f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Ct(f),h=0;h<c.length;h++){var d=c[h];d in u&&(u[d]=u[d],this.style[d]=f[d])}for(var v=Ct(u),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?w7:Iw,h=0;h<p.length;h++){var d=p[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},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 ue(r,n),r},t.prototype.getAnimationStyleProps=function(){return Ch},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=Br|Cl}(),t}(G2),Hv=new nt(0,0,0,0),zv=new nt(0,0,0,0);function x7(e,t,r){return Hv.copy(e.getBoundingRect()),e.transform&&Hv.applyTransform(e.transform),zv.width=t,zv.height=r,!Hv.intersect(zv)}const uf=S7;var nn=Math.min,an=Math.max,Vv=Math.sin,Wv=Math.cos,Pa=Math.PI*2,Wf=Ws(),Gf=Ws(),Uf=Ws();function Ow(e,t,r,n,i,a){i[0]=nn(e,r),i[1]=nn(t,n),a[0]=an(e,r),a[1]=an(t,n)}var Rw=[],kw=[];function C7(e,t,r,n,i,a,o,s,l,u){var f=O2,c=Zt,h=f(e,r,i,o,Rw);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var v=c(e,r,i,o,Rw[d]);l[0]=nn(v,l[0]),u[0]=an(v,u[0])}h=f(t,n,a,s,kw);for(var d=0;d<h;d++){var p=c(t,n,a,s,kw[d]);l[1]=nn(p,l[1]),u[1]=an(p,u[1])}l[0]=nn(e,l[0]),u[0]=an(e,u[0]),l[0]=nn(o,l[0]),u[0]=an(o,u[0]),l[1]=nn(t,l[1]),u[1]=an(t,u[1]),l[1]=nn(s,l[1]),u[1]=an(s,u[1])}function T7(e,t,r,n,i,a,o,s){var l=k2,u=ir,f=an(nn(l(e,r,i),1),0),c=an(nn(l(t,n,a),1),0),h=u(e,r,i,f),d=u(t,n,a,c);o[0]=nn(e,i,h),o[1]=nn(t,a,d),s[0]=an(e,i,h),s[1]=an(t,a,d)}function M7(e,t,r,n,i,a,o,s,l){var u=Jo,f=es,c=Math.abs(i-a);if(c%Pa<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Wf[0]=Wv(i)*r+e,Wf[1]=Vv(i)*n+t,Gf[0]=Wv(a)*r+e,Gf[1]=Vv(a)*n+t,u(s,Wf,Gf),f(l,Wf,Gf),i=i%Pa,i<0&&(i=i+Pa),a=a%Pa,a<0&&(a=a+Pa),i>a&&!o?a+=Pa:i<a&&o&&(i+=Pa),o){var h=a;a=i,i=h}for(var d=0;d<a;d+=Math.PI/2)d>i&&(Uf[0]=Wv(d)*r+e,Uf[1]=Vv(d)*n+t,u(s,Uf,s),f(l,Uf,l))}var at={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ea=[],La=[],Nn=[],ki=[],Bn=[],Fn=[],Gv=Math.min,Uv=Math.max,Da=Math.cos,Ia=Math.sin,ui=Math.abs,nm=Math.PI,Gi=nm*2,Yv=typeof Float32Array<"u",ol=[];function jv(e){var t=Math.round(e/nm*1e8)/1e8;return t%2*nm}function A7(e,t){var r=jv(e[0]);r<0&&(r+=Gi);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Gi?i=r+Gi:t&&r-i>=Gi?i=r-Gi:!t&&r>i?i=r+(Gi-jv(r-i)):t&&r<i&&(i=r-(Gi-jv(i-r))),e[0]=r,e[1]=i}var bo=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=ui(n/Td/t)||0,this._uy=ui(n/Td/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=ui(t-this._xi),i=ui(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(),ol[0]=i,ol[1]=a,A7(ol,o),i=ol[0],a=ol[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=Da(a)*n+t,this._yi=Ia(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)&&Yv&&(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();Yv&&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 f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},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,Yv&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Nn[0]=Nn[1]=Bn[0]=Bn[1]=Number.MAX_VALUE,ki[0]=ki[1]=Fn[0]=Fn[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++],Bn[0]=i,Bn[1]=a,Fn[0]=i,Fn[1]=a;break;case at.L:Ow(r,n,t[o],t[o+1],Bn,Fn),r=t[o++],n=t[o++];break;case at.C:C7(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Bn,Fn),r=t[o++],n=t[o++];break;case at.Q:T7(r,n,t[o++],t[o++],t[o],t[o+1],Bn,Fn),r=t[o++],n=t[o++];break;case at.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],d=t[o++],v=t[o++]+d;o+=1;var p=!t[o++];l&&(i=Da(d)*c+u,a=Ia(d)*h+f),M7(u,f,c,h,d,v,p,Bn,Fn),r=Da(v)*c+u,n=Ia(v)*h+f;break;case at.R:i=r=t[o++],a=n=t[o++];var m=t[o++],g=t[o++];Ow(i,a,i+m,a+g,Bn,Fn);break;case at.Z:r=i,n=a;break}Jo(Nn,Nn,Bn),es(ki,ki,Fn)}return o===0&&(Nn[0]=Nn[1]=ki[0]=ki[1]=0),new nt(Nn[0],Nn[1],ki[0]-Nn[0],ki[1]-Nn[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,f=0,c=0,h=0;h<r;){var d=t[h++],v=h===1;v&&(a=t[h],o=t[h+1],s=a,l=o);var p=-1;switch(d){case at.M:a=s=t[h++],o=l=t[h++];break;case at.L:{var m=t[h++],g=t[h++],y=m-a,_=g-o;(ui(y)>n||ui(_)>i||h===r-1)&&(p=Math.sqrt(y*y+_*_),a=m,o=g);break}case at.C:{var b=t[h++],x=t[h++],m=t[h++],g=t[h++],w=t[h++],S=t[h++];p=XU(a,o,b,x,m,g,w,S,10),a=w,o=S;break}case at.Q:{var b=t[h++],x=t[h++],m=t[h++],g=t[h++];p=QU(a,o,b,x,m,g,10),a=m,o=g;break}case at.A:var C=t[h++],M=t[h++],A=t[h++],P=t[h++],E=t[h++],L=t[h++],O=L+E;h+=1,t[h++],v&&(s=Da(E)*A+C,l=Ia(E)*P+M),p=Uv(A,P)*Gv(Gi,Math.abs(L)),a=Da(O)*A+C,o=Ia(O)*P+M;break;case at.R:{s=a=t[h++],l=o=t[h++];var N=t[h++],H=t[h++];p=N*2+H*2;break}case at.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,d=r<1,v,p,m=0,g=0,y,_=0,b,x;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var w=0;w<o;){var S=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),S!==at.L&&_>0&&(t.lineTo(b,x),_=0),S){case at.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case at.L:{c=n[w++],h=n[w++];var M=ui(c-u),A=ui(h-f);if(M>i||A>a){if(d){var P=v[g++];if(m+P>y){var E=(y-m)/P;t.lineTo(u*(1-E)+c*E,f*(1-E)+h*E);break e}m+=P}t.lineTo(c,h),u=c,f=h,_=0}else{var L=M*M+A*A;L>_&&(b=c,x=h,_=L)}break}case at.C:{var O=n[w++],N=n[w++],H=n[w++],V=n[w++],U=n[w++],F=n[w++];if(d){var P=v[g++];if(m+P>y){var E=(y-m)/P;Sd(u,O,H,U,E,Ea),Sd(f,N,V,F,E,La),t.bezierCurveTo(Ea[1],La[1],Ea[2],La[2],Ea[3],La[3]);break e}m+=P}t.bezierCurveTo(O,N,H,V,U,F),u=U,f=F;break}case at.Q:{var O=n[w++],N=n[w++],H=n[w++],V=n[w++];if(d){var P=v[g++];if(m+P>y){var E=(y-m)/P;xd(u,O,H,E,Ea),xd(f,N,V,E,La),t.quadraticCurveTo(Ea[1],La[1],Ea[2],La[2]);break e}m+=P}t.quadraticCurveTo(O,N,H,V),u=H,f=V;break}case at.A:var z=n[w++],te=n[w++],J=n[w++],me=n[w++],Se=n[w++],$e=n[w++],Ie=n[w++],B=!n[w++],Y=J>me?J:me,K=ui(J-me)>.001,Q=Se+$e,oe=!1;if(d){var P=v[g++];m+P>y&&(Q=Se+$e*(y-m)/P,oe=!0),m+=P}if(K&&t.ellipse?t.ellipse(z,te,J,me,Ie,Se,Q,B):t.arc(z,te,Y,Se,Q,B),oe)break e;C&&(s=Da(Se)*J+z,l=Ia(Se)*me+te),u=Da(Q)*J+z,f=Ia(Q)*me+te;break;case at.R:s=u=n[w],l=f=n[w+1],c=n[w++],h=n[w++];var pe=n[w++],D=n[w++];if(d){var P=v[g++];if(m+P>y){var I=y-m;t.moveTo(c,h),t.lineTo(c+Gv(I,pe),h),I-=pe,I>0&&t.lineTo(c+pe,h+Gv(I,D)),I-=D,I>0&&t.lineTo(c+Uv(pe-I,0),h+D),I-=pe,I>0&&t.lineTo(c,h+Uv(D-I,0));break e}m+=P}t.rect(c,h,pe,D);break;case at.Z:if(d){var P=v[g++];if(m+P>y){var E=(y-m)/P;t.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break e}m+=P}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=at,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();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 f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function P7(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>a+c&&f>s+c||f<t-c&&f<n-c&&f<a-c&&f<s-c||u>e+c&&u>r+c&&u>i+c&&u>o+c||u<e-c&&u<r-c&&u<i-c&&u<o-c)return!1;var h=R2(e,t,r,n,i,a,o,s,u,f,null);return h<=c/2}function E7(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 f=N2(e,t,r,n,i,a,s,l,null);return f<=u/2}var Nw=Math.PI*2;function pi(e){return e%=Nw,e<0&&(e+=Nw),e}var sl=Math.PI*2;function L7(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%sl<1e-4)return!0;if(a){var c=n;n=pi(i),i=pi(c)}else n=pi(n),i=pi(i);n>i&&(i+=sl);var h=Math.atan2(l,s);return h<0&&(h+=sl),h>=n&&h<=i||h+sl>=n&&h+sl<=i}function Oa(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 Ni=bo.CMD,Ra=Math.PI*2,D7=1e-4;function I7(e,t){return Math.abs(e-t)<D7}var cr=[-1,-1,-1],en=[-1,-1];function O7(){var e=en[0];en[0]=en[1],en[1]=e}function R7(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 f=I2(t,n,a,s,u,cr);if(f===0)return 0;for(var c=0,h=-1,d=void 0,v=void 0,p=0;p<f;p++){var m=cr[p],g=m===0||m===1?.5:1,y=Zt(e,r,i,o,m);y<l||(h<0&&(h=O2(t,n,a,s,en),en[1]<en[0]&&h>1&&O7(),d=Zt(t,n,a,s,en[0]),h>1&&(v=Zt(t,n,a,s,en[1]))),h===2?m<en[0]?c+=d<t?g:-g:m<en[1]?c+=v<d?g:-g:c+=s<v?g:-g:m<en[0]?c+=d<t?g:-g:c+=s<d?g:-g)}return c}function k7(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=ZU(t,n,a,s,cr);if(l===0)return 0;var u=k2(t,n,a);if(u>=0&&u<=1){for(var f=0,c=ir(t,n,a,u),h=0;h<l;h++){var d=cr[h]===0||cr[h]===1?.5:1,v=ir(e,r,i,cr[h]);v<o||(cr[h]<u?f+=c<t?d:-d:f+=a<c?d:-d)}return f}else{var d=cr[0]===0||cr[0]===1?.5:1,v=ir(e,r,i,cr[0]);return v<o?0:a<t?d:-d}}function N7(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);cr[0]=-l,cr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ra-1e-4){n=0,i=Ra;var f=a?1:-1;return o>=cr[0]+e&&o<=cr[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Ra,i+=Ra);for(var h=0,d=0;d<2;d++){var v=cr[d];if(v+e>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=Ra+p),(p>=n&&p<=i||p+Ra>=n&&p+Ra<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function oP(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,h,d,v=0;v<o;){var p=a[v++],m=v===1;switch(p===Ni.M&&v>1&&(r||(s+=Oa(l,u,f,c,n,i))),m&&(l=a[v],u=a[v+1],f=l,c=u),p){case Ni.M:f=a[v++],c=a[v++],l=f,u=c;break;case Ni.L:if(r){if(Fo(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Oa(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ni.C:if(r){if(P7(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=R7(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 Ni.Q:if(r){if(E7(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=k7(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ni.A:var g=a[v++],y=a[v++],_=a[v++],b=a[v++],x=a[v++],w=a[v++];v+=1;var S=!!(1-a[v++]);h=Math.cos(x)*_+g,d=Math.sin(x)*b+y,m?(f=h,c=d):s+=Oa(l,u,h,d,n,i);var C=(n-g)*b/_+g;if(r){if(L7(g,y,b,x,x+w,S,t,C,i))return!0}else s+=N7(g,y,b,x,x+w,S,C,i);l=Math.cos(x+w)*_+g,u=Math.sin(x+w)*b+y;break;case Ni.R:f=l=a[v++],c=u=a[v++];var M=a[v++],A=a[v++];if(h=f+M,d=c+A,r){if(Fo(f,c,h,c,t,n,i)||Fo(h,c,h,d,t,n,i)||Fo(h,d,f,d,t,n,i)||Fo(f,d,f,c,t,n,i))return!0}else s+=Oa(h,c,h,d,n,i),s+=Oa(f,d,f,c,n,i);break;case Ni.Z:if(r){if(Fo(l,u,f,c,t,n,i))return!0}else s+=Oa(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!I7(u,c)&&(s+=Oa(l,u,f,c,n,i)||0),s!==0}function B7(e,t,r){return oP(e,0,!1,t,r)}function F7(e,t,r,n){return oP(e,t,!0,r,n)}var sP=ht({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fo),$7={style:ht({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ch.style)},qv=Eu.concat(["invisible","culling","z","z2","zlevel","parent"]),H7=function(e){ge(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<qv.length;++s)i[qv[s]]=this[qv[s]];i.__dirty|=Br}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Ct(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?ue(this.style,s):this.useStyle(s):o==="shape"?ue(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(Ee(r)){var n=Cd(r,0);return n>.5?Zg:n>.2?_9:Qg}else if(r)return Qg}return Zg},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ee(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Cd(r,0)<Xg;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Xo},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 bo(!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&Xo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),F7(s,l/u,r,n)))return!0}if(this.hasFill())return B7(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Xo,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:ue(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Xo)},t.prototype.createStyle=function(r){return _h(sP,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=ue({},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=ue({},i.shape),ue(u,n.shape)):(u=ue({},a?this.shape:i.shape),ue(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=ue({},this.shape);for(var f={},c=Ct(u),h=0;h<c.length;h++){var d=c[h];typeof u[d]=="object"?this.shape[d]=u[d]:f[d]=u[d]}this._transitionState(r,{shape:f},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 $7},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){ge(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 tt(r.style)},o.prototype.getDefaultShape=function(){return tt(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=Br|Cl|Xo}(),t}(uf);const vt=H7;var z7=ht({strokeFirst:!0,font:_o,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},sP),lP=function(e){ge(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 _h(z7,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=u0(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}(uf);lP.prototype.type="tspan";const im=lP;var V7=ht({x:0,y:0},fo),W7={style:ht({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ch.style)};function G7(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var uP=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return _h(V7,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=G7(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 W7},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new nt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(uf);uP.prototype.type="image";const Gs=uP;function U7(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var rs=Math.round;function fP(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=to(n,s,!0)),rs(a*2)===rs(o*2)&&(e.y1=e.y2=to(a,s,!0))),e}}function cP(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=to(n,s,!0),e.y=to(i,s,!0),e.width=Math.max(to(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(to(i+o,s,!1)-e.y,o===0?0:1)),e}}function to(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 Y7=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),j7={},dP=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Y7},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=cP(j7,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?U7(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(vt);dP.prototype.type="rect";const Gt=dP;var Bw={fill:"#000"},Fw=2,q7={style:ht({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},Ch.style)},hP=function(e){ge(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Bw,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,J7(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 nt(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||Bw},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return ue(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=Ct(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},ue(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return q7},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||_o,i=r.padding,a=Uw(r),o=v7(a,r),s=Kv(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,d=o.lineHeight,v=this._defaultStyle,p=r.x||0,m=r.y||0,g=r.align||v.align||"left",y=r.verticalAlign||v.verticalAlign||"top",_=p,b=Zo(m,o.contentHeight,y);if(s||i){var x=Ml(p,f,g),w=Zo(m,u,y);s&&this._renderBackground(r,r,x,w,f,u)}b+=d/2,i&&(_=Gw(p,g,i),y==="top"?b+=i[0]:y==="bottom"&&(b-=i[2]));for(var S=0,C=!1,M=Ww("fill"in r?r.fill:(C=!0,v.fill)),A=Vw("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(S=Fw,v.stroke):null),P=r.textShadowBlur>0,E=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),L=o.calculatedLineHeight,O=0;O<h.length;O++){var N=this._getOrCreateChild(im),H=N.createStyle();N.useStyle(H),H.text=h[O],H.x=_,H.y=b,g&&(H.textAlign=g),H.textBaseline="middle",H.opacity=r.opacity,H.strokeFirst=!0,P&&(H.shadowBlur=r.textShadowBlur||0,H.shadowColor=r.textShadowColor||"transparent",H.shadowOffsetX=r.textShadowOffsetX||0,H.shadowOffsetY=r.textShadowOffsetY||0),H.stroke=A,H.fill=M,A&&(H.lineWidth=r.lineWidth||S,H.lineDash=r.lineDash,H.lineDashOffset=r.lineDashOffset||0),H.font=n,Hw(H,r),b+=d,E&&N.setBoundingRect(new nt(Ml(H.x,r.width,H.textAlign),Zo(H.y,L,H.textBaseline),c,L))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Uw(r),i=m7(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,h=r.align||c.align,d=r.verticalAlign||c.verticalAlign,v=Ml(u,o,h),p=Zo(f,s,d),m=v,g=p;l&&(m+=l[3],g+=l[0]);var y=m+a;Kv(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,A=0,P=m,E=y,L=S-1,O=void 0;A<S&&(O=w[A],!O.align||O.align==="left");)this._placeToken(O,r,C,g,P,"left",_),M-=O.width,P+=O.width,A++;for(;L>=0&&(O=w[L],O.align==="right");)this._placeToken(O,r,C,g,E,"right",_),M-=O.width,E-=O.width,L--;for(P+=(a-(P-m)-(y-E)-M)/2;A<=L;)O=w[A],this._placeToken(O,r,C,g,P+O.width/2,"center",_),P+=O.width,A++;g+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&Kv(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var d=!!u.backgroundColor,v=r.textPadding;v&&(o=Gw(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(im),m=p.createStyle();p.useStyle(m);var g=this._defaultStyle,y=!1,_=0,b=Ww("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),x=Vw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!g.autoStroke||y)?(_=Fw,g.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,w&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||_o,m.opacity=Yl(u.opacity,n.opacity,1),Hw(m,u),x&&(m.lineWidth=Yl(u.lineWidth,n.lineWidth,_),m.lineDash=Ze(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=x),b&&(m.fill=b);var S=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new nt(Ml(m.x,S,m.textAlign),Zo(m.y,C,m.textBaseline),S,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,d=r.borderRadius,v=this,p,m;if(h||r.lineHeight||u&&f){p=this._getOrCreateChild(Gt),p.useStyle(p.createStyle()),p.style.fill=null;var g=p.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=d,p.dirtyShape()}if(h){var y=p.style;y.fill=l||null,y.fillOpacity=Ze(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(Gs),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Ze(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||m).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Yl(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return Q7(r)&&(n=[r.fontStyle,r.fontWeight,Z7(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Gn(n)||r.textFont||r.font},t}(uf),K7={left:!0,right:1,center:1},X7={top:1,bottom:1,middle:1},$w=["fontStyle","fontWeight","fontSize","fontFamily"];function Z7(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Jy+"px":e+"px"}function Hw(e,t){for(var r=0;r<$w.length;r++){var n=$w[r],i=t[n];i!=null&&(e[n]=i)}}function Q7(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function J7(e){return zw(e),R(e.rich,zw),e}function zw(e){if(e){e.font=hP.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||K7[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||X7[r]?r:"top";var n=e.padding;n&&(e.padding=_2(e.padding))}}function Vw(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Ww(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Gw(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Uw(e){var t=e.text;return t!=null&&(t+=""),t}function Kv(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const mr=hP;var dt=Et(),eY=function(e,t,r,n){if(n){var i=dt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=dt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},Yw=1,jw={},vP=Et(),g0=Et(),pP=0,m0=1,y0=2,Jn=["emphasis","blur","select"],Ed=["normal","emphasis","blur","select"],tY=10,rY=9,co="highlight",Uc="downplay",Ql="select",Yc="unselect",Jl="toggleSelect";function $o(e){return e!=null&&e!=="none"}var qw=new af(100);function Kw(e){if(Ee(e)){var t=qw.get(e);return t||(t=vw(e,-.1),qw.put(e,t)),t}else if(yh(e)){var r=ue({},e);return r.colorStops=Ne(e.colorStops,function(n){return{offset:n.offset,color:vw(n.color,-.1)}}),r}return e}function Th(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function gP(e){Th(e,"emphasis",y0)}function mP(e){e.hoverState===y0&&Th(e,"normal",pP)}function _0(e){Th(e,"blur",m0)}function yP(e){e.hoverState===m0&&Th(e,"normal",pP)}function nY(e){e.selected=!0}function iY(e){e.selected=!1}function Xw(e,t,r){t(e,r)}function Li(e,t,r){Xw(e,t,r),e.isGroup&&e.traverse(function(n){Xw(n,t,r)})}function aY(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 oY(e,t,r,n){var i=r&&ot(r,"select")>=0,a=!1;if(e instanceof vt){var o=vP(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if($o(s)||$o(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=ue({},n),u=ue({},u),u.fill=s):!$o(u.fill)&&$o(s)?(a=!0,n=ue({},n),u=ue({},u),u.fill=Kw(s)):!$o(u.stroke)&&$o(l)&&(a||(n=ue({},n),u=ue({},u)),u.stroke=Kw(l)),n.style=u}}if(n&&n.z2==null){a||(n=ue({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??tY)}return n}function sY(e,t,r){if(r&&r.z2==null){r=ue({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??rY)}return r}function lY(e,t,r){var n=ot(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:aY(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=ue({},r),o=ue({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Xv(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return oY(this,e,t,r);if(e==="blur")return lY(this,e,r);if(e==="select")return sY(this,e,r)}return r}function uY(e){e.stateProxy=Xv;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Xv),r&&(r.stateProxy=Xv)}function Zw(e,t){!SP(e,t)&&!e.__highByOuter&&Li(e,gP)}function Qw(e,t){!SP(e,t)&&!e.__highByOuter&&Li(e,mP)}function am(e,t){e.__highByOuter|=1<<(t||0),Li(e,gP)}function om(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Li(e,mP)}function fY(e){Li(e,_0)}function _P(e){Li(e,yP)}function bP(e){Li(e,nY)}function wP(e){Li(e,iY)}function SP(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function xP(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=g0(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}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function sm(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&_P(h)}}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 f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||t==="series"&&f)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(m){m.__highByOuter&&f&&t==="self"||_0(m)}),Ir(t))a(u.getData(),t);else if(Re(t))for(var v=Ct(t),p=0;p<v.length;p++)a(u.getData(v[p]),t[v[p]]);l.push(u),g0(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function lm(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){g0(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){_0(a)})}}}function cY(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=sf(i,t);a=(ye(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=dt(o);sm(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&sm(n,f,c,r)}}}function b0(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(dt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function dY(e,t,r){var n=dt(e),i=b0(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&lm(n.componentMainType,n.componentIndex,r),R(a,function(s){return Zw(s,t)})):(sm(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&lm(n.componentMainType,n.componentIndex,r),Zw(e,t))}function hY(e,t,r){xP(r);var n=dt(e),i=b0(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?R(i,function(a){return Qw(a,t)}):Qw(e,t)}function vY(e,t,r){if(cm(t)){var n=t.dataType,i=e.getData(n),a=sf(i,t);ye(a)||(a=[a]),e[t.type===Jl?"toggleSelect":t.type===Ql?"select":"unselect"](a,n)}}function Jw(e){var t=e.getAllData();R(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?bP(a):wP(a)})})}function pY(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();R(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 um(e,t,r){MP(e,!0),Li(e,uY),mY(e,t,r)}function gY(e){MP(e,!1)}function CP(e,t,r,n){n?gY(e):um(e,t,r)}function mY(e,t,r){var n=dt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var eS=["emphasis","blur","select"],yY={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function TP(e,t,r,n){r=r||"itemStyle";for(var i=0;i<eS.length;i++){var a=eS[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[yY[r]]()}}function MP(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 fm(e){return!!(e&&e.__highDownDispatcher)}function _Y(e){var t=jw[e];return t==null&&Yw<=32&&(t=jw[e]=Yw++),t}function cm(e){var t=e.type;return t===Ql||t===Yc||t===Jl}function tS(e){var t=e.type;return t===co||t===Uc}function bY(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 Ho=bo.CMD,wY=[[],[],[]],rS=Math.sqrt,SY=Math.atan2;function xY(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=Ho.M,c=Ho.C,h=Ho.L,d=Ho.R,v=Ho.A,p=Ho.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case p:a=2;break;case v:var m=t[4],g=t[5],y=rS(t[0]*t[0]+t[1]*t[1]),_=rS(t[2]*t[2]+t[3]*t[3]),b=SY(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case d:u[0]=r[o++],u[1]=r[o++],un(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],un(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var x=wY[l];x[0]=r[o++],x[1]=r[o++],un(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Zv=Math.sqrt,Yf=Math.sin,jf=Math.cos,ll=Math.PI;function nS(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function dm(e,t){return(e[0]*t[0]+e[1]*t[1])/(nS(e)*nS(t))}function iS(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(dm(e,t))}function aS(e,t,r,n,i,a,o,s,l,u,f){var c=l*(ll/180),h=jf(c)*(e-r)/2+Yf(c)*(t-n)/2,d=-1*Yf(c)*(e-r)/2+jf(c)*(t-n)/2,v=h*h/(o*o)+d*d/(s*s);v>1&&(o*=Zv(v),s*=Zv(v));var p=(i===a?-1:1)*Zv((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,m=p*o*d/s,g=p*-s*h/o,y=(e+r)/2+jf(c)*m-Yf(c)*g,_=(t+n)/2+Yf(c)*m+jf(c)*g,b=iS([1,0],[(h-m)/o,(d-g)/s]),x=[(h-m)/o,(d-g)/s],w=[(-1*h-m)/o,(-1*d-g)/s],S=iS(x,w);if(dm(x,w)<=-1&&(S=ll),dm(x,w)>=1&&(S=0),S<0){var C=Math.round(S/ll*1e6)/1e6;S=ll*2+C%2*ll}f.addData(u,y,_,o,s,b,S,c,a)}var CY=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,TY=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function MY(e){var t=new bo;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=bo.CMD,l=e.match(CY);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,d=f.match(TY)||[],v=d.length,p=0;p<v;p++)d[p]=parseFloat(d[p]);for(var m=0;m<v;){var g=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,C=r,M=n,A=void 0,P=void 0;switch(c){case"l":r+=d[m++],n+=d[m++],h=s.L,t.addData(h,r,n);break;case"L":r=d[m++],n=d[m++],h=s.L,t.addData(h,r,n);break;case"m":r+=d[m++],n+=d[m++],h=s.M,t.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=d[m++],n=d[m++],h=s.M,t.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=d[m++],h=s.L,t.addData(h,r,n);break;case"H":r=d[m++],h=s.L,t.addData(h,r,n);break;case"v":n+=d[m++],h=s.L,t.addData(h,r,n);break;case"V":n=d[m++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,d[m++],d[m++],d[m++],d[m++],d[m++],d[m++]),r=d[m-2],n=d[m-1];break;case"c":h=s.C,t.addData(h,d[m++]+r,d[m++]+n,d[m++]+r,d[m++]+n,d[m++]+r,d[m++]+n),r+=d[m-2],n+=d[m-1];break;case"S":g=r,y=n,A=t.len(),P=t.data,o===s.C&&(g+=r-P[A-4],y+=n-P[A-3]),h=s.C,C=d[m++],M=d[m++],r=d[m++],n=d[m++],t.addData(h,g,y,C,M,r,n);break;case"s":g=r,y=n,A=t.len(),P=t.data,o===s.C&&(g+=r-P[A-4],y+=n-P[A-3]),h=s.C,C=r+d[m++],M=n+d[m++],r+=d[m++],n+=d[m++],t.addData(h,g,y,C,M,r,n);break;case"Q":C=d[m++],M=d[m++],r=d[m++],n=d[m++],h=s.Q,t.addData(h,C,M,r,n);break;case"q":C=d[m++]+r,M=d[m++]+n,r+=d[m++],n+=d[m++],h=s.Q,t.addData(h,C,M,r,n);break;case"T":g=r,y=n,A=t.len(),P=t.data,o===s.Q&&(g+=r-P[A-4],y+=n-P[A-3]),r=d[m++],n=d[m++],h=s.Q,t.addData(h,g,y,r,n);break;case"t":g=r,y=n,A=t.len(),P=t.data,o===s.Q&&(g+=r-P[A-4],y+=n-P[A-3]),r+=d[m++],n+=d[m++],h=s.Q,t.addData(h,g,y,r,n);break;case"A":_=d[m++],b=d[m++],x=d[m++],w=d[m++],S=d[m++],C=r,M=n,r=d[m++],n=d[m++],h=s.A,aS(C,M,r,n,w,S,_,b,x,h,t);break;case"a":_=d[m++],b=d[m++],x=d[m++],w=d[m++],S=d[m++],C=r,M=n,r+=d[m++],n+=d[m++],h=s.A,aS(C,M,r,n,w,S,_,b,x,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),r=i,n=a),o=h}return t.toStatic(),t}var AP=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(vt);function PP(e){return e.setData!=null}function EP(e,t){var r=MY(e),n=ue({},t);return n.buildPath=function(i){if(PP(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){xY(r,i),this.dirtyShape()},n}function AY(e,t){return new AP(EP(e,t))}function PY(e,t){var r=EP(e,t),n=function(i){ge(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(AP);return n}function EY(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 vt(t);return o.createPathProxy(),o.buildPath=function(s){if(PP(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var LY=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),LP=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new LY},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(vt);LP.prototype.type="circle";const w0=LP;var DY=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),DP=function(e){ge(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=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t}(vt);DP.prototype.type="ellipse";const IP=DP;var OP=Math.PI,Qv=OP*2,ka=Math.sin,zo=Math.cos,IY=Math.acos,rr=Math.atan2,oS=Math.abs,eu=Math.sqrt,Al=Math.max,$n=Math.min,mn=1e-4;function OY(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<mn))return h=(f*(t-a)-c*(e-i))/h,[e+h*l,t+h*u]}function qf(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/eu(s*s+l*l),f=u*l,c=-u*s,h=e+f,d=t+c,v=r+f,p=n+c,m=(h+v)/2,g=(d+p)/2,y=v-h,_=p-d,b=y*y+_*_,x=i-a,w=h*p-v*d,S=(_<0?-1:1)*eu(Al(0,x*x*b-w*w)),C=(w*_-y*S)/b,M=(-w*y-_*S)/b,A=(w*_+y*S)/b,P=(-w*y+_*S)/b,E=C-m,L=M-g,O=A-m,N=P-g;return E*E+L*L>O*O+N*N&&(C=A,M=P),{cx:C,cy:M,x0:-f,y0:-c,x1:C*(i/x-1),y1:M*(i/x-1)}}function RY(e){var t;if(ye(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 kY(e,t){var r,n=Al(t.r,0),i=Al(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,d=oS(u-l),v=d>Qv&&d%Qv;if(v>mn&&(d=v),!(n>mn))e.moveTo(f,c);else if(d>Qv-mn)e.moveTo(f+n*zo(l),c+n*ka(l)),e.arc(f,c,n,l,u,!h),i>mn&&(e.moveTo(f+i*zo(u),c+i*ka(u)),e.arc(f,c,i,u,l,h));else{var p=void 0,m=void 0,g=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,A=void 0,P=void 0,E=void 0,L=void 0,O=void 0,N=n*zo(l),H=n*ka(l),V=i*zo(u),U=i*ka(u),F=d>mn;if(F){var z=t.cornerRadius;z&&(r=RY(z),p=r[0],m=r[1],g=r[2],y=r[3]);var te=oS(n-i)/2;if(_=$n(te,g),b=$n(te,y),x=$n(te,p),w=$n(te,m),M=S=Al(_,b),A=C=Al(x,w),(S>mn||C>mn)&&(P=n*zo(u),E=n*ka(u),L=i*zo(l),O=i*ka(l),d<OP)){var J=OY(N,H,L,O,P,E,V,U);if(J){var me=N-J[0],Se=H-J[1],$e=P-J[0],Ie=E-J[1],B=1/ka(IY((me*$e+Se*Ie)/(eu(me*me+Se*Se)*eu($e*$e+Ie*Ie)))/2),Y=eu(J[0]*J[0]+J[1]*J[1]);M=$n(S,(n-Y)/(B+1)),A=$n(C,(i-Y)/(B-1))}}}if(!F)e.moveTo(f+N,c+H);else if(M>mn){var K=$n(g,M),Q=$n(y,M),oe=qf(L,O,N,H,n,K,h),pe=qf(P,E,V,U,n,Q,h);e.moveTo(f+oe.cx+oe.x0,c+oe.cy+oe.y0),M<S&&K===Q?e.arc(f+oe.cx,c+oe.cy,M,rr(oe.y0,oe.x0),rr(pe.y0,pe.x0),!h):(K>0&&e.arc(f+oe.cx,c+oe.cy,K,rr(oe.y0,oe.x0),rr(oe.y1,oe.x1),!h),e.arc(f,c,n,rr(oe.cy+oe.y1,oe.cx+oe.x1),rr(pe.cy+pe.y1,pe.cx+pe.x1),!h),Q>0&&e.arc(f+pe.cx,c+pe.cy,Q,rr(pe.y1,pe.x1),rr(pe.y0,pe.x0),!h))}else e.moveTo(f+N,c+H),e.arc(f,c,n,l,u,!h);if(!(i>mn)||!F)e.lineTo(f+V,c+U);else if(A>mn){var K=$n(p,A),Q=$n(m,A),oe=qf(V,U,P,E,i,-Q,h),pe=qf(N,H,L,O,i,-K,h);e.lineTo(f+oe.cx+oe.x0,c+oe.cy+oe.y0),A<C&&K===Q?e.arc(f+oe.cx,c+oe.cy,A,rr(oe.y0,oe.x0),rr(pe.y0,pe.x0),!h):(Q>0&&e.arc(f+oe.cx,c+oe.cy,Q,rr(oe.y0,oe.x0),rr(oe.y1,oe.x1),!h),e.arc(f,c,i,rr(oe.cy+oe.y1,oe.cx+oe.x1),rr(pe.cy+pe.y1,pe.cx+pe.x1),h),K>0&&e.arc(f+pe.cx,c+pe.cy,K,rr(pe.y1,pe.x1),rr(pe.y0,pe.x0),!h))}else e.lineTo(f+V,c+U),e.arc(f,c,i,u,l,h)}e.closePath()}}}var NY=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}(),RP=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new NY},t.prototype.buildPath=function(r,n){kY(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(vt);RP.prototype.type="sector";const Eo=RP;var BY=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),kP=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new BY},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}(vt);kP.prototype.type="ring";const NP=kP;function FY(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,d=e.length;h<d;h++)Jo(f,f,e[h]),es(c,c,e[h]);Jo(f,f,n[0]),es(c,c,n[1])}for(var h=0,d=e.length;h<d;h++){var v=e[h];if(r)l=e[h?h-1:d-1],u=e[(h+1)%d];else if(h===0||h===d-1){i.push(gU(e[h]));continue}else l=e[h-1],u=e[h+1];mU(a,u,l),pv(a,a,t);var p=Bg(v,l),m=Bg(v,u),g=p+m;g!==0&&(p/=g,m/=g),pv(o,a,-p),pv(s,a,m);var y=Q1([],v,o),_=Q1([],v,s);n&&(es(y,y,f),Jo(y,y,c),es(_,_,f),Jo(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function BP(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=FY(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var $Y=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),FP=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $Y},t.prototype.buildPath=function(r,n){BP(r,n,!0)},t}(vt);FP.prototype.type="polygon";const $P=FP;var HY=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),ff=function(e){ge(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 HY},t.prototype.buildPath=function(r,n){BP(r,n,!1)},t}(vt);ff.prototype.type="polyline";var zY={},VY=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),HP=function(e){ge(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 VY},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=fP(zY,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}(vt);HP.prototype.type="line";const wo=HP;var _r=[],WY=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 sS(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?uw:Zt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?uw:Zt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?fw:ir)(e.x1,e.cpx1,e.x2,t),(r?fw:ir)(e.y1,e.cpy1,e.y2,t)]}var zP=function(e){ge(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 WY},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,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(xd(i,l,o,h,_r),l=_r[1],o=_r[2],xd(a,u,s,h,_r),u=_r[1],s=_r[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(Sd(i,l,f,o,h,_r),l=_r[1],f=_r[2],o=_r[3],Sd(a,u,c,s,h,_r),u=_r[1],c=_r[2],s=_r[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return sS(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=sS(this.shape,r,!0);return bU(n,n)},t}(vt);zP.prototype.type="bezier-curve";const VP=zP;var GY=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}(),WP=function(e){ge(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 GY},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,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},t}(vt);WP.prototype.type="arc";const S0=WP;var UY=function(e){ge(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),vt.prototype.getBoundingRect.call(this)},t}(vt);const YY=UY;var jY=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const GP=jY;var qY=function(e){ge(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}(GP);const KY=qY;var XY=function(e){ge(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}(GP);const ZY=XY;var Na=[0,0],Ba=[0,0],Kf=new Fe,Xf=new Fe,Ld=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Fe;for(var n=0;n<2;n++)this._axes[n]=new Fe;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);Fe.sub(i[0],n[1],n[0]),Fe.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 Kf.set(1/0,1/0),Xf.set(0,0),!this._intersectCheckOneSide(this,t,Kf,Xf,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Kf,Xf,i,-1)&&(n=!1,i)||i||Fe.copy(r,n?Kf:Xf),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,Na),this._getProjMinMaxOnAxis(l,r._corners,Ba),Na[1]<Ba[0]||Na[0]>Ba[1]){if(s=!1,a)return s;var f=Math.abs(Ba[0]-Na[1]),c=Math.abs(Na[0]-Ba[1]);Math.min(f,c)>i.len()&&(f<c?Fe.scale(i,u,-f*o):Fe.scale(i,u,c*o))}else if(n){var f=Math.abs(Ba[0]-Na[1]),c=Math.abs(Na[0]-Ba[1]);Math.min(f,c)<n.len()&&(f<c?Fe.scale(n,u,f*o):Fe.scale(n,u,-c*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 f=r[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},e}(),QY=[],JY=function(e){ge(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 nt(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(QY)),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}(uf);const ej=JY;var tj=Et();function rj(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,f=void 0,c=void 0;n?(u=Ze(n.duration,200),f=Ze(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),Ye(c)&&(c=c(r,i)),Ye(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function x0(e,t,r,n,i,a,o){var s=!1,l;Ye(i)?(o=a,a=i,i=null):Re(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 f=rj(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,d=f.easing,v={duration:c,delay:h||0,easing:d,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 Or(e,t,r,n,i,a){x0("update",e,t,r,n,i,a)}function Wr(e,t,r,n,i,a){x0("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 UP(e,t,r,n,i,a){fs(e)||x0("leave",e,t,r,n,i,a)}function lS(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),UP(e,{style:{opacity:0}},t,r,n)}function Dd(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||lS(i,t,r,n)}):lS(e,t,r,n)}function YP(e){tj(e).oldStyle=e.style}var Id=Math.max,Od=Math.min,hm={};function nj(e){return vt.extend(e)}var ij=PY;function aj(e,t){return ij(e,t)}function On(e,t){hm[e]=t}function oj(e){if(hm.hasOwnProperty(e))return hm[e]}function C0(e,t,r,n){var i=AY(e,t);return r&&(n==="center"&&(r=qP(r,i.getBoundingRect())),KP(i,r)),i}function jP(e,t,r){var n=new Gs({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(qP(t,a))}}});return n}function qP(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 sj=EY;function KP(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Iu(e,t){return fP(e,e,{lineWidth:t}),e}function lj(e){return cP(e.shape,e.shape,e.style),e}var uj=to;function fj(e,t){for(var r=a0([]);e&&e!==t;)ls(r,e.getLocalTransform(),r),e=e.parent;return r}function T0(e,t,r){return t&&!Ir(t)&&(t=wh.getLocalTransform(t)),r&&(t=bh([],t)),un([],e,t)}function cj(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=T0(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function uS(e){return!e.isGroup}function dj(e){return e.shape!=null}function XP(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){uS(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return dj(o)&&(s.shape=ue({},o.shape)),s}var a=n(e);t.traverse(function(o){if(uS(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Or(o,l,r,dt(o).dataIndex)}}})}function hj(e,t){return Ne(e,function(r){var n=r[0];n=Id(n,t.x),n=Od(n,t.x+t.width);var i=r[1];return i=Id(i,t.y),i=Od(i,t.y+t.height),[n,i]})}function vj(e,t){var r=Id(e.x,t.x),n=Od(e.x+e.width,t.x+t.width),i=Id(e.y,t.y),a=Od(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 M0(e,t,r){var n=ue({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),ht(i,r),new Gs(n)):C0(e.replace("path://",""),n,r,"center")}function pj(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(ZP(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function ZP(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,h=Jv(f,c,l,u);if(gj(h))return!1;var d=e-i,v=t-a,p=Jv(d,v,l,u)/h;if(p<0||p>1)return!1;var m=Jv(d,v,f,c)/h;return!(m<0||m>1)}function Jv(e,t,r,n){return e*n-r*t}function gj(e){return e<=1e-6&&e>=-1e-6}function A0(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Ee(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&R(Ct(l),function(f){Es(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=dt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ht({content:n,formatterParams:s},i)}}function fS(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function P0(e,t){if(e)if(ye(e))for(var r=0;r<e.length;r++)fS(e[r],t);else fS(e,t)}On("circle",w0);On("ellipse",IP);On("sector",Eo);On("ring",NP);On("polygon",$P);On("polyline",ff);On("rect",Gt);On("line",wo);On("bezierCurve",VP);On("arc",S0);const mj=Object.freeze(Object.defineProperty({__proto__:null,Arc:S0,BezierCurve:VP,BoundingRect:nt,Circle:w0,CompoundPath:YY,Ellipse:IP,Group:Ur,Image:Gs,IncrementalDisplayable:ej,Line:wo,LinearGradient:KY,OrientedBoundingRect:Ld,Path:vt,Point:Fe,Polygon:$P,Polyline:ff,RadialGradient:ZY,Rect:Gt,Ring:NP,Sector:Eo,Text:mr,applyTransform:T0,clipPointsByRect:hj,clipRectByRect:vj,createIcon:M0,extendPath:aj,extendShape:nj,getShapeClass:oj,getTransform:fj,groupTransition:XP,initProps:Wr,isElementRemoved:fs,lineLineIntersect:ZP,linePolygonIntersect:pj,makeImage:jP,makePath:C0,mergePath:sj,registerShape:On,removeElement:UP,removeElementWithFadeOut:Dd,resizePath:KP,setTooltipConfig:A0,subPixelOptimize:uj,subPixelOptimizeLine:Iu,subPixelOptimizeRect:lj,transformDirection:cj,traverseElements:P0,updateProps:Or},Symbol.toStringTag,{value:"Module"}));var Mh={};function QP(e,t){for(var r=0;r<Jn.length;r++){var n=Jn[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 vm(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=Ye(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Jn.length;u++){var f=Jn[u],c=t[f];l[f]=Ze(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function E0(e,t,r,n){r=r||Mh;for(var i=e instanceof mr,a=!1,o=0;o<Ed.length;o++){var s=t[Ed[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new mr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=vm(r,t),f=t.normal,c=!!f.getShallow("show"),h=ha(f,n&&n.normal,r,!1,!i);h.text=u.normal,i||e.setTextConfig(cS(f,r,!1));for(var o=0;o<Jn.length;o++){var d=Jn[o],s=t[d];if(s){var v=l.ensureState(d),p=!!Ze(s.getShallow("show"),c);if(p!==c&&(v.ignore=!p),v.style=ha(s,n&&n[d],r,!0,!i),v.style.text=u[d],!i){var m=e.ensureState(d);m.textConfig=cS(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(cf(l).setLabelText=function(g){var y=vm(r,t,g);QP(l,y)})}else l&&(l.ignore=!0);e.dirty()}function JP(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Jn.length;n++){var i=Jn[n];r[i]=e.getModel([i,t])}return r}function ha(e,t,r,n,i){var a={};return yj(a,e,r,n,i),t&&ue(a,t),a}function cS(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=Ze(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 yj(e,t,r,n,i){r=r||Mh;var a=t.ecModel,o=a&&a.option.textStyle,s=_j(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);pS(l[u]={},f,o,r,n,i,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var h=t.get("minMargin");h!=null&&(e.margin=h),pS(e,t,o,r,n,i,!0,!1)}function _j(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Mh).rich;if(r){t=t||{};for(var n=Ct(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var dS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],hS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],vS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function pS(e,t,r,n,i,a,o,s){r=!i&&r||Mh;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=Ze(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(e.fill=u),f!=null&&(e.stroke=f);var h=Ze(t.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var d=Ze(t.getShallow("textBorderType"),r.textBorderType);d!=null&&(e.lineDash=d);var v=Ze(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(e.opacity=c),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<dS.length;p++){var m=dS[p],g=Ze(t.getShallow(m),r[m]);g!=null&&(e[m]=g)}for(var p=0;p<hS.length;p++){var m=hS[p],g=t.getShallow(m);g!=null&&(e[m]=g)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<vS.length;p++){var m=vS[p],g=t.getShallow(m);g!=null&&(e[m]=g)}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 bj(e,t){var r=t&&t.getModel("textStyle");return Gn([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 cf=Et();function wj(e,t,r,n){if(e){var i=cf(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 Sj(e,t,r,n,i){var a=cf(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Ze(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=J9(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var h=vm({labelDataIndex:t,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);QP(e,h)}e.percent=0,(a.prevValue==null?Wr:Or)(e,{percent:1},n,t,null,u)}var xj=["textStyle","color"],ep=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tp=new mr,Cj=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(xj):null)},e.prototype.getFont=function(){return bj({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<ep.length;n++)r[ep[n]]=this.getShallow(ep[n]);return tp.useStyle(r),tp.update(),tp.getBoundingRect()},e}();const Tj=Cj;var eE=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mj=Du(eE),Aj=function(){function e(){}return e.prototype.getLineStyle=function(t){return Mj(this,t)},e}(),tE=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Pj=Du(tE),Ej=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Pj(this,t,r)},e}(),Lo=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(tt(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(!He.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}();p0(Lo);a7(Lo);ni(Lo,Aj);ni(Lo,Ej);ni(Lo,f7);ni(Lo,Tj);const sr=Lo;var Lj=Math.round(Math.random()*10);function Ah(e){return[e||"",Lj++].join("_")}function Dj(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Un(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Un(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function Ij(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(R(a,function(y){h[y]=!0});c.length;){var d=c.pop(),v=f[d],p=!!h[d];p&&(s.call(l,d,v.originalDeps.slice()),delete h[d]),R(v.successor,p?g:m)}R(h,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){h[y]=!0,m(y)}};function r(a){var o={},s=[];return R(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),R(c,function(h){ot(u.predecessor,h)<0&&u.predecessor.push(h);var d=n(o,h);ot(d.successor,h)<0&&d.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 R(a,function(l){ot(o,l)>=0&&s.push(l)}),s}}function rE(e,t){return st(st({},e,!0),t,!0)}const Oj={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:". "}}}},Rj={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 Rd="ZH",L0="EN",Ou=L0,jc={},D0={},nE=He.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Rd)>-1?Rd:Ou}():Ou;function iE(e,t){e=e.toUpperCase(),D0[e]=new sr(t),jc[e]=t}function kj(e){if(Ee(e)){var t=jc[e.toUpperCase()]||{};return e===Rd||e===L0?tt(t):st(tt(t),tt(jc[Ou]),!1)}else return st(tt(e),tt(jc[Ou]),!1)}function Nj(e){return D0[e]}function Bj(){return D0[Ou]}iE(L0,Oj);iE(Rd,Rj);var I0=1e3,O0=I0*60,tu=O0*60,on=tu*24,gS=on*365,Pl={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}"},Zf="{yyyy}-{MM}-{dd}",mS={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zf,hour:Zf+" "+Pl.hour,minute:Zf+" "+Pl.minute,second:Zf+" "+Pl.second,millisecond:Pl.none},rp=["year","month","day","hour","minute","second","millisecond"],aE=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Bi(e,t){return e+="","0000".substr(0,t-e.length)+e}function cs(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 Fj(e){return e===cs(e)}function $j(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ph(e,t,r,n){var i=Ti(e),a=i[R0(r)](),o=i[ds(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Eh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[Ru(r)](),c=(f-1)%12+1,h=i[Lh(r)](),d=i[Dh(r)](),v=i[Ih(r)](),p=n instanceof sr?n:Nj(n||nE)||Bj(),m=p.getModel("time"),g=m.get("month"),y=m.get("monthAbbr"),_=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Bi(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Bi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Bi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Bi(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Bi(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Bi(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Bi(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Bi(v,3)).replace(/{S}/g,v+"")}function Hj(e,t,r,n,i){var a=null;if(Ee(r))a=r;else if(Ye(r))a=r(e.value,t,{level:e.level});else{var o=ue({},Pl);if(e.level>0)for(var s=0;s<rp.length;++s)o[rp[s]]="{primary|"+o[rp[s]]+"}";var l=r?r.inherit===!1?r:ht(r,o):o,u=oE(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=aE.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ye(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return Ph(new Date(e.value),a,i,n)}function oE(e,t){var r=Ti(e),n=r[ds(t)]()+1,i=r[Eh(t)](),a=r[Ru(t)](),o=r[Lh(t)](),s=r[Dh(t)](),l=r[Ih(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,d=h&&i===1,v=d&&n===1;return v?"year":d?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function yS(e,t,r){var n=Tt(e)?Ti(e):e;switch(t=t||oE(e,r),t){case"year":return n[R0(r)]();case"half-year":return n[ds(r)]()>=6?1:0;case"quarter":return Math.floor((n[ds(r)]()+1)/4);case"month":return n[ds(r)]();case"day":return n[Eh(r)]();case"half-day":return n[Ru(r)]()/24;case"hour":return n[Ru(r)]();case"minute":return n[Lh(r)]();case"second":return n[Dh(r)]();case"millisecond":return n[Ih(r)]()}}function R0(e){return e?"getUTCFullYear":"getFullYear"}function ds(e){return e?"getUTCMonth":"getMonth"}function Eh(e){return e?"getUTCDate":"getDate"}function Ru(e){return e?"getUTCHours":"getHours"}function Lh(e){return e?"getUTCMinutes":"getMinutes"}function Dh(e){return e?"getUTCSeconds":"getSeconds"}function Ih(e){return e?"getUTCMilliseconds":"getMilliseconds"}function zj(e){return e?"setUTCFullYear":"setFullYear"}function sE(e){return e?"setUTCMonth":"setMonth"}function lE(e){return e?"setUTCDate":"setDate"}function uE(e){return e?"setUTCHours":"setHours"}function fE(e){return e?"setUTCMinutes":"setMinutes"}function cE(e){return e?"setUTCSeconds":"setSeconds"}function dE(e){return e?"setUTCMilliseconds":"setMilliseconds"}function hE(e){if(!F9(e))return Ee(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function vE(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 Oh=_2;function pm(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Gn(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ti(e):e;if(isNaN(+l)){if(s)return"-"}else return Ph(l,n,r)}if(t==="ordinal")return kg(e)?i(e):Tt(e)&&a(e)?e+"":"-";var u=Pd(e);return a(u)?hE(u):kg(e)?i(e):typeof e=="boolean"?e+"":"-"}var _S=["a","b","c","d","e","f","g"],np=function(e,t){return"{"+e+(t??"")+"}"};function pE(e,t,r){ye(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=_S[a];e=e.replace(np(o),np(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(np(_S[l],s),r?tn(u):u)}return e}function Vj(e,t){var r=Ee(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:'+tn(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+tn(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 ku(e,t){return t=t||"transparent",Ee(e)?e:Re(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function bS(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var qc=R,Wj=["left","right","top","bottom","width","height"],Qf=[["width","left","right"],["height","top","bottom"]];function k0(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),d,v;if(e==="horizontal"){var p=f.width+(h?-h.x+f.x:0);d=a+p,d>n||l.newline?(a=0,d=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(h?-h.y+f.y:0);v=o+m,v>i||l.newline?(a+=s+r,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=v+r)})}var ru=k0;Ot(k0,"vertical");Ot(k0,"horizontal");function Ls(e,t,r){r=Oh(r||0);var n=t.width,i=t.height,a=yt(e.left,n),o=yt(e.top,i),s=yt(e.right,n),l=yt(e.bottom,i),u=yt(e.width,n),f=yt(e.height,i),c=r[2]+r[0],h=r[1]+r[3],d=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),d!=null&&(isNaN(u)&&isNaN(f)&&(d>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=d*f),isNaN(f)&&(f=u/d)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new nt(a+r[3],o+r[0],u,f);return v.margin=r,v}function Nu(e){var t=e.layoutMode||e.constructor.layoutMode;return Re(t)?t:t?{type:t}:null}function Ds(e,t,r){var n=r&&r.ignoreSize;!ye(n)&&(n=[n,n]);var i=o(Qf[0],0),a=o(Qf[1],1);u(Qf[0],e,i),u(Qf[1],e,a);function o(f,c){var h={},d=0,v={},p=0,m=2;if(qc(f,function(_){v[_]=e[_]}),qc(f,function(_){s(t,_)&&(h[_]=v[_]=t[_]),l(h,_)&&d++,l(v,_)&&p++}),n[c])return l(t,f[1])?v[f[2]]=null:l(t,f[2])&&(v[f[1]]=null),v;if(p===m||!d)return v;if(d>=m)return h;for(var g=0;g<f.length;g++){var y=f[g];if(!s(h,y)&&s(e,y)){h[y]=e[y];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){qc(f,function(d){c[d]=h[d]})}}function Rh(e){return Gj({},e)}function Gj(e,t){return t&&e&&qc(Wj,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Uj=Et(),Us=function(e){ge(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Ah("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Nu(this),a=i?Rh(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=Nu(this);i&&Ds(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!r7(r))return r.defaultOption;var n=Uj(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 lf(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}(sr);tP(Us,sr);Sh(Us);Dj(Us);Ij(Us,Yj);function Yj(e){var t=[];return R(Us.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Ne(t,function(r){return Un(r).main}),e!=="dataset"&&ot(t,"dataset")<=0&&t.unshift("dataset"),t}const Mt=Us;var gE="";typeof navigator<"u"&&(gE=navigator.platform||"");var Vo="rgba(0, 0, 0, 0.2)";const jj={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Vo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Vo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Vo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Vo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Vo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Vo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gE.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 mE=je(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),hn="original",Rr="arrayRows",Rn="objectRows",ai="keyedColumns",aa="typedArray",yE="unknown",yi="column",Ys="row",Xt={Must:1,Might:2,Not:3},_E=Et();function qj(e){_E(e).datasetMap=je()}function Kj(e,t,r){var n={},i=N0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=_E(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),R(e,function(p,m){var g=Re(p)?p:e[m]={name:p};g.type==="ordinal"&&f==null&&(f=m,c=v(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});R(e,function(p,m){var g=p.name,y=v(p);if(f==null){var _=h.valueWayDim;d(n[g],_,y),d(o,_,y),h.valueWayDim+=y}else if(f===m)d(n[g],0,y),d(a,0,y);else{var _=h.categoryWayDim;d(n[g],_,y),d(o,_,y),h.categoryWayDim+=y}});function d(p,m,g){for(var y=0;y<g;y++)p.push(m+y)}function v(p){var m=p.dimsDef;return m?m.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Xj(e,t,r){var n={},i=N0(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Rn||a===ai)&&R(o,function(f,c){(Re(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},h=[],d=0,v=Math.min(5,r);d<v;d++){var p=wE(t.data,a,t.seriesLayoutBy,o,t.startIndex,d);h.push(p);var m=p===Xt.Not;if(m&&f.v==null&&d!==s&&(f.v=d),(f.n==null||f.n===f.v||!m&&h[f.n]===Xt.Not)&&(f.n=d),g(f)&&h[f.n]!==Xt.Not)return f;m||(p===Xt.Might&&c.v==null&&d!==s&&(c.v=d),(c.n==null||c.n===c.v)&&(c.n=d))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function N0(e){var t=e.get("data",!0);if(!t)return lf(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Tn).models[0]}function Zj(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:lf(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Tn).models}function bE(e,t){return wE(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function wE(e,t,r,n,i,a){var o,s=5;if(Gr(e))return Xt.Not;var l,u;if(n){var f=n[a];Re(f)?(l=f.name,u=f.type):Ee(f)&&(l=f)}if(u!=null)return u==="ordinal"?Xt.Must:Xt.Not;if(t===Rr){var c=e;if(r===Ys){for(var h=c[a],d=0;d<(h||[]).length&&d<s;d++)if((o=b(h[i+d]))!=null)return o}else for(var d=0;d<c.length&&d<s;d++){var v=c[i+d];if(v&&(o=b(v[a]))!=null)return o}}else if(t===Rn){var p=e;if(!l)return Xt.Not;for(var d=0;d<p.length&&d<s;d++){var m=p[d];if(m&&(o=b(m[l]))!=null)return o}}else if(t===ai){var g=e;if(!l)return Xt.Not;var h=g[l];if(!h||Gr(h))return Xt.Not;for(var d=0;d<h.length&&d<s;d++)if((o=b(h[d]))!=null)return o}else if(t===hn)for(var y=e,d=0;d<y.length&&d<s;d++){var m=y[d],_=of(m);if(!ye(_))return Xt.Not;if((o=b(_[a]))!=null)return o}function b(x){var w=Ee(x);if(x!=null&&isFinite(x)&&x!=="")return w?Xt.Might:Xt.Not;if(w&&x!=="-")return Xt.Must}return Xt.Not}var Qj=je();function Jj(e,t,r){var n=Qj.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var wS=Et();Et();var B0=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=pr(this.get("color",!0)),a=this.get("colorLayer",!0);return tq(this,wS,i,a,t,r,n)},e.prototype.clearColorPalette=function(){rq(this,wS)},e}();function eq(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 tq(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:eq(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function rq(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Jf,ul,SS,xS="\0_ec_inner",nq=1,F0=function(e){ge(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 sr(a),this._locale=new sr(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=MS(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,MS(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"?SS(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&R(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=je(),u=n&&n.replaceMergeMainTypeMap;qj(this),R(r,function(c,h){c!=null&&(Mt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?tt(c):st(i[h],c,!0))}),u&&u.each(function(c,h){Mt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Mt.topologicalTravel(s,Mt.getAllClassMainTypes(),f,this);function f(c){var h=Jj(this,c,pr(r[c])),d=a.get(c),v=d?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=z9(d,h,v);q9(p,c,Mt),i[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_;R(p,function(b,x){var w=b.existing,S=b.newOption;if(!S)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",M=Mt.getClass(c,b.keyInfo.subType,!C);if(!M)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===M)w.name=b.keyInfo.name,w.mergeOption(S,this),w.optionUpdated(S,!1);else{var A=ue({componentIndex:x},b.keyInfo);w=new M(S,this,this,A),ue(w,A),b.brandNew&&(w.__requireNewView=!0),w.init(S,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),i[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Jf(this)}this._seriesIndices||Jf(this)},t.prototype.getOption=function(){var r=tt(this.option);return R(r,function(n,i){if(Mt.hasClass(i)){for(var a=pr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Lu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[xS],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=[],R(pr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=CS("id",a,s):o!=null?l=CS("name",o,s):l=jt(s,function(u){return!!u}),TS(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):jt(this._componentsMap.get(i),function(u){return!!u});return l(TS(o,r));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?jt(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Ye(r)){var o=n,s=r;a.each(function(c,h){for(var d=0;c&&d<c.length;d++){var v=c[d];v&&s.call(o,h,v,v.componentIndex)}})}else for(var l=Ee(r)?a.get(r):Re(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=qn(r,null);return jt(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 jt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return jt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){ul(this),R(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){R(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){ul(this),R(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 R(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return ul(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){ul(this);var i=[];R(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=je(i)},t.prototype.restoreData=function(r){Jf(this);var n=this._componentsMap,i=[];n.each(function(a,o){Mt.hasClass(o)&&i.push(o)}),Mt.topologicalTravel(i,Mt.getAllClassMainTypes(),function(a){R(n.get(a),function(o){o&&(a!=="series"||!iq(o,r))&&o.restoreData()})})},t.internalField=function(){Jf=function(r){var n=r._seriesIndices=[];R(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=je(n)},ul=function(r){},SS=function(r,n){r.option={},r.option[xS]=nq,r._componentsMap=je({series:[]}),r._componentsCount=je();var i=n.aria;Re(i)&&i.enabled==null&&(i.enabled=!0),aq(n,r._theme.option),st(n,jj,!1),r._mergeOption(n,null)}}(),t}(sr);function iq(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 aq(e,t){var r=e.color&&!e.colorLayer;R(t,function(n,i){i==="colorLayer"&&r||Mt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?st(e[i],n,!1):tt(n):e[i]==null&&(e[i]=n))})}function CS(e,t,r){if(ye(t)){var n=je();return R(t,function(a){if(a!=null){var o=qn(a,null);o!=null&&n.set(a,!0)}}),jt(r,function(a){return a&&n.get(a[e])})}else{var i=qn(t,null);return jt(r,function(a){return a&&i!=null&&a[e]===i})}}function TS(e,t){return t.hasOwnProperty("subType")?jt(e,function(r){return r&&r.subType===t.subType}):e}function MS(e){var t=je();return e&&R(pr(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}ni(F0,B0);var oq=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],sq=function(){function e(t){R(oq,function(r){this[r]=xt(t[r],t)},this)}return e}();const SE=sq;var ip={},$0=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];R(ip,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){R(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){ip[t]=r},e.get=function(t){return ip[t]},e}(),lq=/^(min|max)?(.+)$/,uq=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(R(pr(t.series),function(o){o&&o.data&&Gr(o.data)&&Ng(o.data)}),R(pr(t.dataset),function(o){o&&o.source&&Gr(o.source)&&Ng(o.source)})),t=tt(t);var i=this._optionBackup,a=fq(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=[],tt(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=tt(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++)cq(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!hq(o,this._currentMediaIndices)&&(s=Ne(o,function(f){return tt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function fq(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(e.options=e.media=null),a=e),f&&ye(u)&&R(u,function(d){d&&d.option&&(d.query?n.push(d):i||(i=d))}),h(a),R(l,function(d){return h(d)}),R(n,function(d){return h(d.option)});function h(d){R(t,function(v){v(d,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function cq(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return R(e,function(a,o){var s=o.match(lq);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();dq(n[u],a,l)||(i=!1)}}),i}function dq(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function hq(e,t){return e.join(",")===t.join(",")}const vq=uq;var vn=R,Bu=Re,AS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ap(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=AS.length;r<n;r++){var i=AS[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 ar(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,ht(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 El(e){ar(e,"itemStyle"),ar(e,"lineStyle"),ar(e,"areaStyle"),ar(e,"label"),ar(e,"labelLine"),ar(e,"upperLabel"),ar(e,"edgeLabel")}function It(e,t){var r=Bu(e)&&e[t],n=Bu(r)&&r.textStyle;if(n)for(var i=0,a=Ew.length;i<a;i++){var o=Ew[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Jr(e){e&&(El(e),It(e,"label"),e.emphasis&&It(e.emphasis,"label"))}function pq(e){if(Bu(e)){ap(e),El(e),It(e,"label"),It(e,"upperLabel"),It(e,"edgeLabel"),e.emphasis&&(It(e.emphasis,"label"),It(e.emphasis,"upperLabel"),It(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(ap(t),Jr(t));var r=e.markLine;r&&(ap(r),Jr(r));var n=e.markArea;n&&Jr(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Gr(a))for(var o=0;o<a.length;o++)Jr(a[o]);R(e.categories,function(u){El(u)})}if(i&&!Gr(i))for(var o=0;o<i.length;o++)Jr(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Jr(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)ye(l[o])?(Jr(l[o][0]),Jr(l[o][1])):Jr(l[o]);e.type==="gauge"?(It(e,"axisLabel"),It(e,"title"),It(e,"detail")):e.type==="treemap"?(ar(e.breadcrumb,"itemStyle"),R(e.levels,function(u){El(u)})):e.type==="tree"&&El(e.leaves)}}function fi(e){return ye(e)?e:e?[e]:[]}function PS(e){return(ye(e)?e[0]:e)||{}}function gq(e,t){vn(fi(e.series),function(n){Bu(n)&&pq(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),vn(r,function(n){vn(fi(e[n]),function(i){i&&(It(i,"axisLabel"),It(i.axisPointer,"label"))})}),vn(fi(e.parallel),function(n){var i=n&&n.parallelAxisDefault;It(i,"axisLabel"),It(i&&i.axisPointer,"label")}),vn(fi(e.calendar),function(n){ar(n,"itemStyle"),It(n,"dayLabel"),It(n,"monthLabel"),It(n,"yearLabel")}),vn(fi(e.radar),function(n){It(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)}),vn(fi(e.geo),function(n){Bu(n)&&(Jr(n),vn(fi(n.regions),function(i){Jr(i)}))}),vn(fi(e.timeline),function(n){Jr(n),ar(n,"label"),ar(n,"itemStyle"),ar(n,"controlStyle",!0);var i=n.data;ye(i)&&R(i,function(a){Re(a)&&(ar(a,"label"),ar(a,"itemStyle"))})}),vn(fi(e.toolbox),function(n){ar(n,"iconStyle"),vn(n.feature,function(i){ar(i,"iconStyle")})}),It(PS(e.axisPointer),"label"),It(PS(e.tooltip).axisPointer,"label")}function mq(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 yq(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 ES(e){e&&R(_q,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var _q=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],bq=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],op=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fl(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<op.length;r++){var n=op[r][1],i=op[r][0];t[n]!=null&&(t[i]=t[n])}}function LS(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function DS(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function wq(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function xE(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&xE(e[r].children,t)}function CE(e,t){gq(e,t),e.series=pr(e.series),R(e.series,function(r){if(Re(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),LS(r.label);var i=r.data;if(i&&!Gr(i))for(var a=0;a<i.length;a++)LS(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=mq(r,"pointer.color");o!=null&&yq(r,"itemStyle.color",o)}else if(n==="bar"){fl(r),fl(r.backgroundStyle),fl(r.emphasis);var i=r.data;if(i&&!Gr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(fl(i[a]),fl(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)),DS(r),xE(r.data,DS)}else n==="graph"||n==="sankey"?wq(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ht(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),ES(r)}}),e.dataRange&&(e.visualMap=e.dataRange),R(bq,function(r){var n=e[r];n&&(ye(n)||(n=[n]),R(n,function(i){ES(i)}))})}function Sq(e){var t=je();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(xq)}function xq(e){R(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,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return i;var d,v;s?v=o.getRawIndex(c):d=o.get(t.stackedByDimension,c);for(var p=NaN,m=r-1;m>=0;m--){var g=e[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,d)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=k9(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var kh=function(){function e(t){this.data=t.data||(t.sourceFormat===ai?{}:[]),this.sourceFormat=t.sourceFormat||yE,this.seriesLayoutBy=t.seriesLayoutBy||yi,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&&bE(this,n)===Xt.Must&&(i.type="ordinal")}}return e}();function H0(e){return e instanceof kh}function gm(e,t,r){r=r||TE(e);var n=t.seriesLayoutBy,i=Tq(e,r,n,t.sourceHeader,t.dimensions),a=new kh({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:tt(t)});return a}function z0(e){return new kh({data:e,sourceFormat:Gr(e)?aa:hn})}function Cq(e){return new kh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:tt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function TE(e){var t=yE;if(Gr(e))t=aa;else if(ye(e)){e.length===0&&(t=Rr);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(ye(i)){t=Rr;break}else if(Re(i)){t=Rn;break}}}}else if(Re(e)){for(var a in e)if(Es(e,a)&&Ir(e[a])){t=ai;break}}return t}function Tq(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:IS(i),startIndex:o,dimensionsDetectedCount:a};if(t===Rr){var s=e;n==="auto"||n==null?OS(function(u){u!=null&&u!=="-"&&(Ee(u)?o==null&&(o=1):o=0)},r,s,10):o=Tt(n)?n:n?1:0,!i&&o===1&&(i=[],OS(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Ys?s.length:s[0]?s[0].length:null}else if(t===Rn)i||(i=Mq(e));else if(t===ai)i||(i=[],R(e,function(u,f){i.push(f)}));else if(t===hn){var l=of(e[0]);a=ye(l)&&l.length||1}return{startIndex:o,dimensionsDefine:IS(i),dimensionsDetectedCount:a}}function Mq(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Ct(r)}function IS(e){if(e){var t=je();return Ne(e,function(r,n){r=Re(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 OS(e,t,r,n){if(t===Ys)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 ME(e){var t=e.sourceFormat;return t===Rn||t===ai}var Fa,$a,Ha,RS,kS,AE=function(){function e(t,r){var n=H0(t)?t:z0(t);this._source=n;var i=this._data=n.data;n.sourceFormat===aa&&(this._offset=0,this._dimSize=r,this._data=i),kS(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;kS=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,d=RS[V0(u,f)];if(ue(o,d),u===aa)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=PE(u,f);o.getItem=xt(v,null,s,c,h);var p=EE(u,f);o.count=xt(p,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var d=u[h],v=d[0]==null?1/0:d[0],p=d[1]==null?-1/0:d[1],m=s-o,g=l[h],y=0;y<m;y++){var _=f[y*c+h];g[o+y]=_,_<v&&(v=_),_>p&&(p=_)}d[0]=v,d[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};RS=(t={},t[Rr+"_"+yi]={pure:!0,appendData:a},t[Rr+"_"+Ys]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Rn]={pure:!0,appendData:a},t[ai]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[hn]={appendData:a},t[aa]={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}(),NS=function(e,t,r,n){return e[n]},Aq=(Fa={},Fa[Rr+"_"+yi]=function(e,t,r,n){return e[n+t]},Fa[Rr+"_"+Ys]=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},Fa[Rn]=NS,Fa[ai]=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},Fa[hn]=NS,Fa);function PE(e,t){var r=Aq[V0(e,t)];return r}var BS=function(e,t,r){return e.length},Pq=($a={},$a[Rr+"_"+yi]=function(e,t,r){return Math.max(0,e.length-t)},$a[Rr+"_"+Ys]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},$a[Rn]=BS,$a[ai]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},$a[hn]=BS,$a);function EE(e,t){var r=Pq[V0(e,t)];return r}var sp=function(e,t,r){return e[t]},Eq=(Ha={},Ha[Rr]=sp,Ha[Rn]=function(e,t,r){return e[r]},Ha[ai]=sp,Ha[hn]=function(e,t,r){var n=of(e);return n instanceof Array?n[t]:n},Ha[aa]=sp,Ha);function LE(e){var t=Eq[e];return t}function V0(e,t){return e===Rr?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===hn&&(l=of(n)),l}}}}var Lq=/\{@(.+?)\}/g,Dq=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"],f=l&&l.stroke,c=this.mainType,h=c==="series",d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:d?d.fullDimensions:null,encode:d?d.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&&ye(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Ye(a))return l.status=r,l.dimensionIndex=i,a(l);if(Ee(a)){var f=pE(a,l);return f.replace(Lq,function(c,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1));var p=Is(s,t,v);if(o&&ye(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(p=o.interpolatedValue[m])}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 FS(e){var t,r;return Re(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function nu(e){return new Iq(e)}var Iq=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||d<v)){var p=this._progress;if(ye(p))for(var m=0;m<p.length;m++)this._doProgress(p[m],d,v,l,u);else this._doProgress(p,d,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}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){$S.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:$S.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),ye(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}(),$S=function(){var e,t,r,n,i,a={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,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 Kc(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Tt(e)&&e!=null&&e!=="-"&&(e=+Ti(e)),e==null||e===""?NaN:+e)}je({number:function(e){return parseFloat(e)},time:function(e){return+Ti(e)},trim:function(e){return Ee(e)?Gn(e):e}});var Oq=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=Tt(t)?t:Pd(t),i=Tt(r)?r:Pd(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Ee(t),l=Ee(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Rq=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 Kc(t,r)},e}();function kq(e,t){var r=new Rq,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==yi&&Cr(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(p,m){var g=p.name,y={index:m,name:g,displayName:p.displayName};if(s.push(y),g!=null){var _="";Es(l,g)&&Cr(_),l[g]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=PE(i,yi);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=xt(Nq,null,e)),r.cloneRawData=xt(Bq,null,e);var h=EE(i,yi);r.count=xt(h,null,n,a,s);var d=LE(i);r.retrieveValue=function(p,m){var g=c(n,a,s,p);return v(g,m)};var v=r.retrieveValueFromItem=function(p,m){if(p!=null){var g=s[m];if(g)return d(p,m,g.name)}};return r.getDimensionInfo=xt(Fq,null,s,l),r.cloneAllDimensionInfo=xt($q,null,s),r}function Nq(e){var t=e.sourceFormat;if(!W0(t)){var r="";Cr(r)}return e.data}function Bq(e){var t=e.sourceFormat,r=e.data;if(!W0(t)){var n="";Cr(n)}if(t===Rr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Rn){for(var i=[],a=0,o=r.length;a<o;a++)i.push(ue({},r[a]));return i}}function Fq(e,t,r){if(r!=null){if(Tt(r)||!isNaN(r)&&!Es(t,r))return e[r];if(Es(t,r))return t[r]}}function $q(e){return tt(e)}var DE=je();function Hq(e){e=tt(e);var t=e.type,r="";t||Cr(r);var n=t.split(":");n.length!==2&&Cr(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,DE.set(t,e)}function zq(e,t,r){var n=pr(e),i=n.length,a="";i||Cr(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=Vq(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Vq(e,t,r,n){var i="";t.length||Cr(i),Re(e)||Cr(i);var a=e.type,o=DE.get(a);o||Cr(i);var s=Ne(t,function(u){return kq(u,o)}),l=pr(o.transform({upstream:s[0],upstreamList:s,config:tt(e.config)}));return Ne(l,function(u,f){var c="";Re(u)||Cr(c),u.data||Cr(c);var h=TE(u.data);W0(h)||Cr(c);var d,v=t[0];if(v&&f===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),d={seriesLayoutBy:yi,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:yi,sourceHeader:0,dimensions:u.dimensions};return gm(u.data,d,null)})}function W0(e){return e===Rr||e===Rn}var Nh="undefined",Wq=typeof Uint32Array===Nh?Array:Uint32Array,Gq=typeof Uint16Array===Nh?Array:Uint16Array,IE=typeof Int32Array===Nh?Array:Int32Array,HS=typeof Float64Array===Nh?Array:Float64Array,OE={float:HS,int:IE,ordinal:Array,number:Array,time:HS},lp;function cl(e){return e>65535?Wq:Gq}function Wo(){return[1/0,-1/0]}function Uq(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function zS(e,t,r,n,i){var a=OE[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 mm=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=je()}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=lp[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],ME(i),this._dimensions=Ne(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 OE[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 f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,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 f=i[u];zS(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var d=h-s,v=0;v<a;v++){var f=i[v],p=lp.arrayRows.call(this,t[d]||c,f.property,d,v);n[v][h]=p;var m=o[v];p<m[0]&&(m[0]=p),p>m[1]&&(m[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=Ne(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Wo()),zS(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var h=[],d=t;d<r;d++){h=i.getItem(d,h);for(var v=0;v<s;v++){var p=a[v],m=this._dimValueGetter(h,u[v],d,v);p[d]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!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,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),d=r-a[h],v=Math.abs(d);v<=n&&((v<s||v===s&&d>=0&&l<0)&&(s=v,l=d,u=0),d===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=cl(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=cl(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<i;h++){var d=void 0,v=n.getRawIndex(h);if(l===0)d=r(h);else if(l===1){var p=c[f][v];d=r(p,h)}else{for(var m=0;m<l;m++)s[m]=c[t[m]][v];s[m]=h,d=r.apply(null,s)}d&&(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=Ct(t),a=i.length;if(!a)return this;var o=r.count(),s=cl(r._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],h=t[f][1],d=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var m=d[i[0]],g=0;g<n;g++){var y=m[g];(y>=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var m=d[i[0]],_=d[i[1]],b=t[i[1]][0],x=t[i[1]][1],g=0;g<n;g++){var y=m[g],w=_[g];(y>=c&&y<=h||isNaN(y))&&(w>=b&&w<=x||isNaN(w))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var S=r.getRawIndex(g),y=d[i[0]][S];(y>=c&&y<=h||isNaN(y))&&(l[u++]=S)}else for(var g=0;g<o;g++){for(var C=!0,S=r.getRawIndex(g),M=0;M<a;M++){var A=i[M],y=d[A][S];(y<t[A][0]||y>t[A][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}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,f=0;f<r.length;f++)u[r[f]]=Wo();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)l[d]=i[r[d]][h];l[o]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var p=r[f],m=v[f],g=u[p],y=i[p];y&&(y[h]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,d=new(cl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+p)/2,y=0,_=p;_<m;_++){var b=this.getRawIndex(_),x=a[b];isNaN(x)||(y+=x)}y/=m-p;var w=v,S=Math.min(v+l,o),C=v-1,M=a[u];f=-1,h=w;for(var A=-1,P=0,_=w;_<S;_++){var b=this.getRawIndex(_),x=a[b];if(isNaN(x)){P++,A<0&&(A=b);continue}c=Math.abs((C-g)*(x-M)-(C-_)*(y-M)),c>f&&(f=c,h=b)}P>0&&P<S-w&&(d[s++]=Math.min(A,h),h=Math.max(A,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,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],f=this.count(),c=a._rawExtent[t]=Wo(),h=new(cl(this._rawCount))(Math.ceil(f/l)),d=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var p=0;p<l;p++){var m=this.getRawIndex(v+p);s[p]=u[m]}var g=n(s),y=this.getRawIndex(Math.min(v+i(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[d++]=y}return a._count=d,a._indices=h,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 f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<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&&ca(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Uq(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=tt(this._extent),t._rawExtent=tt(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 Kc(r[a],this._dimensions[a])}lp={arrayRows:t,objectRows:function(r,n,i,a){return Kc(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Kc(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),Yq=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(ec(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Gr(s)?aa:hn,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=Ze(c.seriesLayoutBy,h.seriesLayoutBy)||null,v=Ze(c.sourceHeader,h.sourceHeader),p=Ze(c.dimensions,h.dimensions),m=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||p;i=m?[gm(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:p},l)]:[]}else{var g=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);i=[gm(_,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&&VS(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&VS(c),s.push(f),l.push(u._getVersionSign())}),n?o=zq(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Cq(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];ec(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new mm,s.initData(new AE(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ec(t)){var r=N0(t);return r?[r.getSourceManager()]:[]}else return Ne(Zj(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(ec(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 ec(e){return e.mainType==="series"}function VS(e){throw new Error(e)}var RE="line-height:1";function kE(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:"+tn(n+"")+"px;color:"+tn(r)+";font-weight:"+tn(i+""),valueStyle:"font-size:"+tn(o+"")+"px;color:"+tn(a)+";font-weight:"+tn(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var jq=[0,10,20,30],qq=["",`
+`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Vr(h,t),v=n?!1:!b7(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var rm="__zr_style_"+Math.round(Math.random()*10),fo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ch={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fo[rm]=!0;var Iw=["z","z2","invisible"],w7=["invisible"],S7=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Ct(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&&x7(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 nt(0,0,0,0)),n?nt.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 nt(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:ue(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Cl,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Cl)},t.prototype.styleUpdated=function(){this.__dirty&=~Cl},t.prototype.createStyle=function(r){return _h(fo,r)},t.prototype.useStyle=function(r){r[rm]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[rm]},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,Iw)},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 f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Ct(f),h=0;h<c.length;h++){var d=c[h];d in u&&(u[d]=u[d],this.style[d]=f[d])}for(var v=Ct(u),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?w7:Iw,h=0;h<p.length;h++){var d=p[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},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 ue(r,n),r},t.prototype.getAnimationStyleProps=function(){return Ch},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=Br|Cl}(),t}(G2),Hv=new nt(0,0,0,0),zv=new nt(0,0,0,0);function x7(e,t,r){return Hv.copy(e.getBoundingRect()),e.transform&&Hv.applyTransform(e.transform),zv.width=t,zv.height=r,!Hv.intersect(zv)}const uf=S7;var nn=Math.min,an=Math.max,Vv=Math.sin,Wv=Math.cos,Pa=Math.PI*2,Wf=Us(),Gf=Us(),Uf=Us();function Ow(e,t,r,n,i,a){i[0]=nn(e,r),i[1]=nn(t,n),a[0]=an(e,r),a[1]=an(t,n)}var Rw=[],kw=[];function C7(e,t,r,n,i,a,o,s,l,u){var f=O2,c=Zt,h=f(e,r,i,o,Rw);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var v=c(e,r,i,o,Rw[d]);l[0]=nn(v,l[0]),u[0]=an(v,u[0])}h=f(t,n,a,s,kw);for(var d=0;d<h;d++){var p=c(t,n,a,s,kw[d]);l[1]=nn(p,l[1]),u[1]=an(p,u[1])}l[0]=nn(e,l[0]),u[0]=an(e,u[0]),l[0]=nn(o,l[0]),u[0]=an(o,u[0]),l[1]=nn(t,l[1]),u[1]=an(t,u[1]),l[1]=nn(s,l[1]),u[1]=an(s,u[1])}function T7(e,t,r,n,i,a,o,s){var l=k2,u=ir,f=an(nn(l(e,r,i),1),0),c=an(nn(l(t,n,a),1),0),h=u(e,r,i,f),d=u(t,n,a,c);o[0]=nn(e,i,h),o[1]=nn(t,a,d),s[0]=an(e,i,h),s[1]=an(t,a,d)}function M7(e,t,r,n,i,a,o,s,l){var u=ts,f=rs,c=Math.abs(i-a);if(c%Pa<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Wf[0]=Wv(i)*r+e,Wf[1]=Vv(i)*n+t,Gf[0]=Wv(a)*r+e,Gf[1]=Vv(a)*n+t,u(s,Wf,Gf),f(l,Wf,Gf),i=i%Pa,i<0&&(i=i+Pa),a=a%Pa,a<0&&(a=a+Pa),i>a&&!o?a+=Pa:i<a&&o&&(i+=Pa),o){var h=a;a=i,i=h}for(var d=0;d<a;d+=Math.PI/2)d>i&&(Uf[0]=Wv(d)*r+e,Uf[1]=Vv(d)*n+t,u(s,Uf,s),f(l,Uf,l))}var at={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ea=[],La=[],Nn=[],ki=[],Bn=[],Fn=[],Gv=Math.min,Uv=Math.max,Da=Math.cos,Ia=Math.sin,ui=Math.abs,nm=Math.PI,Gi=nm*2,Yv=typeof Float32Array<"u",ol=[];function jv(e){var t=Math.round(e/nm*1e8)/1e8;return t%2*nm}function A7(e,t){var r=jv(e[0]);r<0&&(r+=Gi);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Gi?i=r+Gi:t&&r-i>=Gi?i=r-Gi:!t&&r>i?i=r+(Gi-jv(r-i)):t&&r<i&&(i=r-(Gi-jv(i-r))),e[0]=r,e[1]=i}var bo=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=ui(n/Td/t)||0,this._uy=ui(n/Td/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=ui(t-this._xi),i=ui(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(),ol[0]=i,ol[1]=a,A7(ol,o),i=ol[0],a=ol[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=Da(a)*n+t,this._yi=Ia(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)&&Yv&&(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();Yv&&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 f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},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,Yv&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Nn[0]=Nn[1]=Bn[0]=Bn[1]=Number.MAX_VALUE,ki[0]=ki[1]=Fn[0]=Fn[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++],Bn[0]=i,Bn[1]=a,Fn[0]=i,Fn[1]=a;break;case at.L:Ow(r,n,t[o],t[o+1],Bn,Fn),r=t[o++],n=t[o++];break;case at.C:C7(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Bn,Fn),r=t[o++],n=t[o++];break;case at.Q:T7(r,n,t[o++],t[o++],t[o],t[o+1],Bn,Fn),r=t[o++],n=t[o++];break;case at.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],d=t[o++],v=t[o++]+d;o+=1;var p=!t[o++];l&&(i=Da(d)*c+u,a=Ia(d)*h+f),M7(u,f,c,h,d,v,p,Bn,Fn),r=Da(v)*c+u,n=Ia(v)*h+f;break;case at.R:i=r=t[o++],a=n=t[o++];var m=t[o++],g=t[o++];Ow(i,a,i+m,a+g,Bn,Fn);break;case at.Z:r=i,n=a;break}ts(Nn,Nn,Bn),rs(ki,ki,Fn)}return o===0&&(Nn[0]=Nn[1]=ki[0]=ki[1]=0),new nt(Nn[0],Nn[1],ki[0]-Nn[0],ki[1]-Nn[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,f=0,c=0,h=0;h<r;){var d=t[h++],v=h===1;v&&(a=t[h],o=t[h+1],s=a,l=o);var p=-1;switch(d){case at.M:a=s=t[h++],o=l=t[h++];break;case at.L:{var m=t[h++],g=t[h++],y=m-a,_=g-o;(ui(y)>n||ui(_)>i||h===r-1)&&(p=Math.sqrt(y*y+_*_),a=m,o=g);break}case at.C:{var b=t[h++],x=t[h++],m=t[h++],g=t[h++],w=t[h++],S=t[h++];p=XU(a,o,b,x,m,g,w,S,10),a=w,o=S;break}case at.Q:{var b=t[h++],x=t[h++],m=t[h++],g=t[h++];p=QU(a,o,b,x,m,g,10),a=m,o=g;break}case at.A:var C=t[h++],M=t[h++],A=t[h++],P=t[h++],E=t[h++],L=t[h++],O=L+E;h+=1,t[h++],v&&(s=Da(E)*A+C,l=Ia(E)*P+M),p=Uv(A,P)*Gv(Gi,Math.abs(L)),a=Da(O)*A+C,o=Ia(O)*P+M;break;case at.R:{s=a=t[h++],l=o=t[h++];var N=t[h++],H=t[h++];p=N*2+H*2;break}case at.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,d=r<1,v,p,m=0,g=0,y,_=0,b,x;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var w=0;w<o;){var S=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),S!==at.L&&_>0&&(t.lineTo(b,x),_=0),S){case at.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case at.L:{c=n[w++],h=n[w++];var M=ui(c-u),A=ui(h-f);if(M>i||A>a){if(d){var P=v[g++];if(m+P>y){var E=(y-m)/P;t.lineTo(u*(1-E)+c*E,f*(1-E)+h*E);break e}m+=P}t.lineTo(c,h),u=c,f=h,_=0}else{var L=M*M+A*A;L>_&&(b=c,x=h,_=L)}break}case at.C:{var O=n[w++],N=n[w++],H=n[w++],V=n[w++],U=n[w++],F=n[w++];if(d){var P=v[g++];if(m+P>y){var E=(y-m)/P;Sd(u,O,H,U,E,Ea),Sd(f,N,V,F,E,La),t.bezierCurveTo(Ea[1],La[1],Ea[2],La[2],Ea[3],La[3]);break e}m+=P}t.bezierCurveTo(O,N,H,V,U,F),u=U,f=F;break}case at.Q:{var O=n[w++],N=n[w++],H=n[w++],V=n[w++];if(d){var P=v[g++];if(m+P>y){var E=(y-m)/P;xd(u,O,H,E,Ea),xd(f,N,V,E,La),t.quadraticCurveTo(Ea[1],La[1],Ea[2],La[2]);break e}m+=P}t.quadraticCurveTo(O,N,H,V),u=H,f=V;break}case at.A:var z=n[w++],ee=n[w++],J=n[w++],me=n[w++],we=n[w++],$e=n[w++],Ie=n[w++],B=!n[w++],Y=J>me?J:me,K=ui(J-me)>.001,Q=we+$e,oe=!1;if(d){var P=v[g++];m+P>y&&(Q=we+$e*(y-m)/P,oe=!0),m+=P}if(K&&t.ellipse?t.ellipse(z,ee,J,me,Ie,we,Q,B):t.arc(z,ee,Y,we,Q,B),oe)break e;C&&(s=Da(we)*J+z,l=Ia(we)*me+ee),u=Da(Q)*J+z,f=Ia(Q)*me+ee;break;case at.R:s=u=n[w],l=f=n[w+1],c=n[w++],h=n[w++];var pe=n[w++],D=n[w++];if(d){var P=v[g++];if(m+P>y){var I=y-m;t.moveTo(c,h),t.lineTo(c+Gv(I,pe),h),I-=pe,I>0&&t.lineTo(c+pe,h+Gv(I,D)),I-=D,I>0&&t.lineTo(c+Uv(pe-I,0),h+D),I-=pe,I>0&&t.lineTo(c,h+Uv(D-I,0));break e}m+=P}t.rect(c,h,pe,D);break;case at.Z:if(d){var P=v[g++];if(m+P>y){var E=(y-m)/P;t.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break e}m+=P}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=at,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Ho(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 f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function P7(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>a+c&&f>s+c||f<t-c&&f<n-c&&f<a-c&&f<s-c||u>e+c&&u>r+c&&u>i+c&&u>o+c||u<e-c&&u<r-c&&u<i-c&&u<o-c)return!1;var h=R2(e,t,r,n,i,a,o,s,u,f,null);return h<=c/2}function E7(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 f=N2(e,t,r,n,i,a,s,l,null);return f<=u/2}var Nw=Math.PI*2;function pi(e){return e%=Nw,e<0&&(e+=Nw),e}var sl=Math.PI*2;function L7(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%sl<1e-4)return!0;if(a){var c=n;n=pi(i),i=pi(c)}else n=pi(n),i=pi(i);n>i&&(i+=sl);var h=Math.atan2(l,s);return h<0&&(h+=sl),h>=n&&h<=i||h+sl>=n&&h+sl<=i}function Oa(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 Ni=bo.CMD,Ra=Math.PI*2,D7=1e-4;function I7(e,t){return Math.abs(e-t)<D7}var cr=[-1,-1,-1],en=[-1,-1];function O7(){var e=en[0];en[0]=en[1],en[1]=e}function R7(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 f=I2(t,n,a,s,u,cr);if(f===0)return 0;for(var c=0,h=-1,d=void 0,v=void 0,p=0;p<f;p++){var m=cr[p],g=m===0||m===1?.5:1,y=Zt(e,r,i,o,m);y<l||(h<0&&(h=O2(t,n,a,s,en),en[1]<en[0]&&h>1&&O7(),d=Zt(t,n,a,s,en[0]),h>1&&(v=Zt(t,n,a,s,en[1]))),h===2?m<en[0]?c+=d<t?g:-g:m<en[1]?c+=v<d?g:-g:c+=s<v?g:-g:m<en[0]?c+=d<t?g:-g:c+=s<d?g:-g)}return c}function k7(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=ZU(t,n,a,s,cr);if(l===0)return 0;var u=k2(t,n,a);if(u>=0&&u<=1){for(var f=0,c=ir(t,n,a,u),h=0;h<l;h++){var d=cr[h]===0||cr[h]===1?.5:1,v=ir(e,r,i,cr[h]);v<o||(cr[h]<u?f+=c<t?d:-d:f+=a<c?d:-d)}return f}else{var d=cr[0]===0||cr[0]===1?.5:1,v=ir(e,r,i,cr[0]);return v<o?0:a<t?d:-d}}function N7(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);cr[0]=-l,cr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ra-1e-4){n=0,i=Ra;var f=a?1:-1;return o>=cr[0]+e&&o<=cr[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Ra,i+=Ra);for(var h=0,d=0;d<2;d++){var v=cr[d];if(v+e>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=Ra+p),(p>=n&&p<=i||p+Ra>=n&&p+Ra<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function oP(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,h,d,v=0;v<o;){var p=a[v++],m=v===1;switch(p===Ni.M&&v>1&&(r||(s+=Oa(l,u,f,c,n,i))),m&&(l=a[v],u=a[v+1],f=l,c=u),p){case Ni.M:f=a[v++],c=a[v++],l=f,u=c;break;case Ni.L:if(r){if(Ho(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Oa(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ni.C:if(r){if(P7(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=R7(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 Ni.Q:if(r){if(E7(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=k7(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ni.A:var g=a[v++],y=a[v++],_=a[v++],b=a[v++],x=a[v++],w=a[v++];v+=1;var S=!!(1-a[v++]);h=Math.cos(x)*_+g,d=Math.sin(x)*b+y,m?(f=h,c=d):s+=Oa(l,u,h,d,n,i);var C=(n-g)*b/_+g;if(r){if(L7(g,y,b,x,x+w,S,t,C,i))return!0}else s+=N7(g,y,b,x,x+w,S,C,i);l=Math.cos(x+w)*_+g,u=Math.sin(x+w)*b+y;break;case Ni.R:f=l=a[v++],c=u=a[v++];var M=a[v++],A=a[v++];if(h=f+M,d=c+A,r){if(Ho(f,c,h,c,t,n,i)||Ho(h,c,h,d,t,n,i)||Ho(h,d,f,d,t,n,i)||Ho(f,d,f,c,t,n,i))return!0}else s+=Oa(h,c,h,d,n,i),s+=Oa(f,d,f,c,n,i);break;case Ni.Z:if(r){if(Ho(l,u,f,c,t,n,i))return!0}else s+=Oa(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!I7(u,c)&&(s+=Oa(l,u,f,c,n,i)||0),s!==0}function B7(e,t,r){return oP(e,0,!1,t,r)}function F7(e,t,r,n){return oP(e,t,!0,r,n)}var sP=ht({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fo),$7={style:ht({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ch.style)},qv=Eu.concat(["invisible","culling","z","z2","zlevel","parent"]),H7=function(e){ge(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<qv.length;++s)i[qv[s]]=this[qv[s]];i.__dirty|=Br}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Ct(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?ue(this.style,s):this.useStyle(s):o==="shape"?ue(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(Ee(r)){var n=Cd(r,0);return n>.5?Zg:n>.2?_9:Qg}else if(r)return Qg}return Zg},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ee(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Cd(r,0)<Xg;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Qo},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 bo(!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&Qo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),F7(s,l/u,r,n)))return!0}if(this.hasFill())return B7(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Qo,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:ue(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Qo)},t.prototype.createStyle=function(r){return _h(sP,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=ue({},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=ue({},i.shape),ue(u,n.shape)):(u=ue({},a?this.shape:i.shape),ue(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=ue({},this.shape);for(var f={},c=Ct(u),h=0;h<c.length;h++){var d=c[h];typeof u[d]=="object"?this.shape[d]=u[d]:f[d]=u[d]}this._transitionState(r,{shape:f},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 $7},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){ge(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 tt(r.style)},o.prototype.getDefaultShape=function(){return tt(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=Br|Cl|Qo}(),t}(uf);const vt=H7;var z7=ht({strokeFirst:!0,font:_o,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},sP),lP=function(e){ge(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 _h(z7,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=u0(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}(uf);lP.prototype.type="tspan";const im=lP;var V7=ht({x:0,y:0},fo),W7={style:ht({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ch.style)};function G7(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var uP=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return _h(V7,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=G7(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 W7},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new nt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(uf);uP.prototype.type="image";const Ys=uP;function U7(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var is=Math.round;function fP(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&&(is(n*2)===is(i*2)&&(e.x1=e.x2=to(n,s,!0)),is(a*2)===is(o*2)&&(e.y1=e.y2=to(a,s,!0))),e}}function cP(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=to(n,s,!0),e.y=to(i,s,!0),e.width=Math.max(to(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(to(i+o,s,!1)-e.y,o===0?0:1)),e}}function to(e,t,r){if(!t)return e;var n=is(e*2);return(n+is(t))%2===0?n/2:(n+(r?1:-1))/2}var Y7=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),j7={},dP=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Y7},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=cP(j7,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?U7(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(vt);dP.prototype.type="rect";const Gt=dP;var Bw={fill:"#000"},Fw=2,q7={style:ht({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},Ch.style)},hP=function(e){ge(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Bw,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,J7(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 nt(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||Bw},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return ue(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=Ct(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},ue(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return q7},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||_o,i=r.padding,a=Uw(r),o=v7(a,r),s=Kv(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,d=o.lineHeight,v=this._defaultStyle,p=r.x||0,m=r.y||0,g=r.align||v.align||"left",y=r.verticalAlign||v.verticalAlign||"top",_=p,b=Jo(m,o.contentHeight,y);if(s||i){var x=Ml(p,f,g),w=Jo(m,u,y);s&&this._renderBackground(r,r,x,w,f,u)}b+=d/2,i&&(_=Gw(p,g,i),y==="top"?b+=i[0]:y==="bottom"&&(b-=i[2]));for(var S=0,C=!1,M=Ww("fill"in r?r.fill:(C=!0,v.fill)),A=Vw("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(S=Fw,v.stroke):null),P=r.textShadowBlur>0,E=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),L=o.calculatedLineHeight,O=0;O<h.length;O++){var N=this._getOrCreateChild(im),H=N.createStyle();N.useStyle(H),H.text=h[O],H.x=_,H.y=b,g&&(H.textAlign=g),H.textBaseline="middle",H.opacity=r.opacity,H.strokeFirst=!0,P&&(H.shadowBlur=r.textShadowBlur||0,H.shadowColor=r.textShadowColor||"transparent",H.shadowOffsetX=r.textShadowOffsetX||0,H.shadowOffsetY=r.textShadowOffsetY||0),H.stroke=A,H.fill=M,A&&(H.lineWidth=r.lineWidth||S,H.lineDash=r.lineDash,H.lineDashOffset=r.lineDashOffset||0),H.font=n,Hw(H,r),b+=d,E&&N.setBoundingRect(new nt(Ml(H.x,r.width,H.textAlign),Jo(H.y,L,H.textBaseline),c,L))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Uw(r),i=m7(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,h=r.align||c.align,d=r.verticalAlign||c.verticalAlign,v=Ml(u,o,h),p=Jo(f,s,d),m=v,g=p;l&&(m+=l[3],g+=l[0]);var y=m+a;Kv(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,A=0,P=m,E=y,L=S-1,O=void 0;A<S&&(O=w[A],!O.align||O.align==="left");)this._placeToken(O,r,C,g,P,"left",_),M-=O.width,P+=O.width,A++;for(;L>=0&&(O=w[L],O.align==="right");)this._placeToken(O,r,C,g,E,"right",_),M-=O.width,E-=O.width,L--;for(P+=(a-(P-m)-(y-E)-M)/2;A<=L;)O=w[A],this._placeToken(O,r,C,g,P+O.width/2,"center",_),P+=O.width,A++;g+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&Kv(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var d=!!u.backgroundColor,v=r.textPadding;v&&(o=Gw(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(im),m=p.createStyle();p.useStyle(m);var g=this._defaultStyle,y=!1,_=0,b=Ww("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),x=Vw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!g.autoStroke||y)?(_=Fw,g.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,w&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||_o,m.opacity=Yl(u.opacity,n.opacity,1),Hw(m,u),x&&(m.lineWidth=Yl(u.lineWidth,n.lineWidth,_),m.lineDash=Ze(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=x),b&&(m.fill=b);var S=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new nt(Ml(m.x,S,m.textAlign),Jo(m.y,C,m.textBaseline),S,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,d=r.borderRadius,v=this,p,m;if(h||r.lineHeight||u&&f){p=this._getOrCreateChild(Gt),p.useStyle(p.createStyle()),p.style.fill=null;var g=p.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=d,p.dirtyShape()}if(h){var y=p.style;y.fill=l||null,y.fillOpacity=Ze(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(Ys),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Ze(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||m).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Yl(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return Q7(r)&&(n=[r.fontStyle,r.fontWeight,Z7(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Gn(n)||r.textFont||r.font},t}(uf),K7={left:!0,right:1,center:1},X7={top:1,bottom:1,middle:1},$w=["fontStyle","fontWeight","fontSize","fontFamily"];function Z7(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Jy+"px":e+"px"}function Hw(e,t){for(var r=0;r<$w.length;r++){var n=$w[r],i=t[n];i!=null&&(e[n]=i)}}function Q7(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function J7(e){return zw(e),R(e.rich,zw),e}function zw(e){if(e){e.font=hP.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||K7[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||X7[r]?r:"top";var n=e.padding;n&&(e.padding=_2(e.padding))}}function Vw(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Ww(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Gw(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Uw(e){var t=e.text;return t!=null&&(t+=""),t}function Kv(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const mr=hP;var dt=Et(),eY=function(e,t,r,n){if(n){var i=dt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=dt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},Yw=1,jw={},vP=Et(),g0=Et(),pP=0,m0=1,y0=2,Jn=["emphasis","blur","select"],Ed=["normal","emphasis","blur","select"],tY=10,rY=9,co="highlight",Uc="downplay",Ql="select",Yc="unselect",Jl="toggleSelect";function zo(e){return e!=null&&e!=="none"}var qw=new af(100);function Kw(e){if(Ee(e)){var t=qw.get(e);return t||(t=vw(e,-.1),qw.put(e,t)),t}else if(yh(e)){var r=ue({},e);return r.colorStops=Ne(e.colorStops,function(n){return{offset:n.offset,color:vw(n.color,-.1)}}),r}return e}function Th(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function gP(e){Th(e,"emphasis",y0)}function mP(e){e.hoverState===y0&&Th(e,"normal",pP)}function _0(e){Th(e,"blur",m0)}function yP(e){e.hoverState===m0&&Th(e,"normal",pP)}function nY(e){e.selected=!0}function iY(e){e.selected=!1}function Xw(e,t,r){t(e,r)}function Li(e,t,r){Xw(e,t,r),e.isGroup&&e.traverse(function(n){Xw(n,t,r)})}function aY(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 oY(e,t,r,n){var i=r&&ot(r,"select")>=0,a=!1;if(e instanceof vt){var o=vP(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(zo(s)||zo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=ue({},n),u=ue({},u),u.fill=s):!zo(u.fill)&&zo(s)?(a=!0,n=ue({},n),u=ue({},u),u.fill=Kw(s)):!zo(u.stroke)&&zo(l)&&(a||(n=ue({},n),u=ue({},u)),u.stroke=Kw(l)),n.style=u}}if(n&&n.z2==null){a||(n=ue({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??tY)}return n}function sY(e,t,r){if(r&&r.z2==null){r=ue({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??rY)}return r}function lY(e,t,r){var n=ot(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:aY(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=ue({},r),o=ue({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Xv(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return oY(this,e,t,r);if(e==="blur")return lY(this,e,r);if(e==="select")return sY(this,e,r)}return r}function uY(e){e.stateProxy=Xv;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Xv),r&&(r.stateProxy=Xv)}function Zw(e,t){!SP(e,t)&&!e.__highByOuter&&Li(e,gP)}function Qw(e,t){!SP(e,t)&&!e.__highByOuter&&Li(e,mP)}function am(e,t){e.__highByOuter|=1<<(t||0),Li(e,gP)}function om(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Li(e,mP)}function fY(e){Li(e,_0)}function _P(e){Li(e,yP)}function bP(e){Li(e,nY)}function wP(e){Li(e,iY)}function SP(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function xP(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=g0(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}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function sm(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&_P(h)}}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 f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||t==="series"&&f)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(m){m.__highByOuter&&f&&t==="self"||_0(m)}),Ir(t))a(u.getData(),t);else if(Re(t))for(var v=Ct(t),p=0;p<v.length;p++)a(u.getData(v[p]),t[v[p]]);l.push(u),g0(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function lm(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){g0(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){_0(a)})}}}function cY(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=sf(i,t);a=(ye(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=dt(o);sm(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&sm(n,f,c,r)}}}function b0(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(dt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function dY(e,t,r){var n=dt(e),i=b0(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&lm(n.componentMainType,n.componentIndex,r),R(a,function(s){return Zw(s,t)})):(sm(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&lm(n.componentMainType,n.componentIndex,r),Zw(e,t))}function hY(e,t,r){xP(r);var n=dt(e),i=b0(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?R(i,function(a){return Qw(a,t)}):Qw(e,t)}function vY(e,t,r){if(cm(t)){var n=t.dataType,i=e.getData(n),a=sf(i,t);ye(a)||(a=[a]),e[t.type===Jl?"toggleSelect":t.type===Ql?"select":"unselect"](a,n)}}function Jw(e){var t=e.getAllData();R(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?bP(a):wP(a)})})}function pY(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();R(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 um(e,t,r){MP(e,!0),Li(e,uY),mY(e,t,r)}function gY(e){MP(e,!1)}function CP(e,t,r,n){n?gY(e):um(e,t,r)}function mY(e,t,r){var n=dt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var eS=["emphasis","blur","select"],yY={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function TP(e,t,r,n){r=r||"itemStyle";for(var i=0;i<eS.length;i++){var a=eS[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[yY[r]]()}}function MP(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 fm(e){return!!(e&&e.__highDownDispatcher)}function _Y(e){var t=jw[e];return t==null&&Yw<=32&&(t=jw[e]=Yw++),t}function cm(e){var t=e.type;return t===Ql||t===Yc||t===Jl}function tS(e){var t=e.type;return t===co||t===Uc}function bY(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 Vo=bo.CMD,wY=[[],[],[]],rS=Math.sqrt,SY=Math.atan2;function xY(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=Vo.M,c=Vo.C,h=Vo.L,d=Vo.R,v=Vo.A,p=Vo.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case p:a=2;break;case v:var m=t[4],g=t[5],y=rS(t[0]*t[0]+t[1]*t[1]),_=rS(t[2]*t[2]+t[3]*t[3]),b=SY(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case d:u[0]=r[o++],u[1]=r[o++],un(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],un(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var x=wY[l];x[0]=r[o++],x[1]=r[o++],un(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Zv=Math.sqrt,Yf=Math.sin,jf=Math.cos,ll=Math.PI;function nS(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function dm(e,t){return(e[0]*t[0]+e[1]*t[1])/(nS(e)*nS(t))}function iS(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(dm(e,t))}function aS(e,t,r,n,i,a,o,s,l,u,f){var c=l*(ll/180),h=jf(c)*(e-r)/2+Yf(c)*(t-n)/2,d=-1*Yf(c)*(e-r)/2+jf(c)*(t-n)/2,v=h*h/(o*o)+d*d/(s*s);v>1&&(o*=Zv(v),s*=Zv(v));var p=(i===a?-1:1)*Zv((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,m=p*o*d/s,g=p*-s*h/o,y=(e+r)/2+jf(c)*m-Yf(c)*g,_=(t+n)/2+Yf(c)*m+jf(c)*g,b=iS([1,0],[(h-m)/o,(d-g)/s]),x=[(h-m)/o,(d-g)/s],w=[(-1*h-m)/o,(-1*d-g)/s],S=iS(x,w);if(dm(x,w)<=-1&&(S=ll),dm(x,w)>=1&&(S=0),S<0){var C=Math.round(S/ll*1e6)/1e6;S=ll*2+C%2*ll}f.addData(u,y,_,o,s,b,S,c,a)}var CY=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,TY=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function MY(e){var t=new bo;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=bo.CMD,l=e.match(CY);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,d=f.match(TY)||[],v=d.length,p=0;p<v;p++)d[p]=parseFloat(d[p]);for(var m=0;m<v;){var g=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,C=r,M=n,A=void 0,P=void 0;switch(c){case"l":r+=d[m++],n+=d[m++],h=s.L,t.addData(h,r,n);break;case"L":r=d[m++],n=d[m++],h=s.L,t.addData(h,r,n);break;case"m":r+=d[m++],n+=d[m++],h=s.M,t.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=d[m++],n=d[m++],h=s.M,t.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=d[m++],h=s.L,t.addData(h,r,n);break;case"H":r=d[m++],h=s.L,t.addData(h,r,n);break;case"v":n+=d[m++],h=s.L,t.addData(h,r,n);break;case"V":n=d[m++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,d[m++],d[m++],d[m++],d[m++],d[m++],d[m++]),r=d[m-2],n=d[m-1];break;case"c":h=s.C,t.addData(h,d[m++]+r,d[m++]+n,d[m++]+r,d[m++]+n,d[m++]+r,d[m++]+n),r+=d[m-2],n+=d[m-1];break;case"S":g=r,y=n,A=t.len(),P=t.data,o===s.C&&(g+=r-P[A-4],y+=n-P[A-3]),h=s.C,C=d[m++],M=d[m++],r=d[m++],n=d[m++],t.addData(h,g,y,C,M,r,n);break;case"s":g=r,y=n,A=t.len(),P=t.data,o===s.C&&(g+=r-P[A-4],y+=n-P[A-3]),h=s.C,C=r+d[m++],M=n+d[m++],r+=d[m++],n+=d[m++],t.addData(h,g,y,C,M,r,n);break;case"Q":C=d[m++],M=d[m++],r=d[m++],n=d[m++],h=s.Q,t.addData(h,C,M,r,n);break;case"q":C=d[m++]+r,M=d[m++]+n,r+=d[m++],n+=d[m++],h=s.Q,t.addData(h,C,M,r,n);break;case"T":g=r,y=n,A=t.len(),P=t.data,o===s.Q&&(g+=r-P[A-4],y+=n-P[A-3]),r=d[m++],n=d[m++],h=s.Q,t.addData(h,g,y,r,n);break;case"t":g=r,y=n,A=t.len(),P=t.data,o===s.Q&&(g+=r-P[A-4],y+=n-P[A-3]),r+=d[m++],n+=d[m++],h=s.Q,t.addData(h,g,y,r,n);break;case"A":_=d[m++],b=d[m++],x=d[m++],w=d[m++],S=d[m++],C=r,M=n,r=d[m++],n=d[m++],h=s.A,aS(C,M,r,n,w,S,_,b,x,h,t);break;case"a":_=d[m++],b=d[m++],x=d[m++],w=d[m++],S=d[m++],C=r,M=n,r+=d[m++],n+=d[m++],h=s.A,aS(C,M,r,n,w,S,_,b,x,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),r=i,n=a),o=h}return t.toStatic(),t}var AP=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(vt);function PP(e){return e.setData!=null}function EP(e,t){var r=MY(e),n=ue({},t);return n.buildPath=function(i){if(PP(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){xY(r,i),this.dirtyShape()},n}function AY(e,t){return new AP(EP(e,t))}function PY(e,t){var r=EP(e,t),n=function(i){ge(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(AP);return n}function EY(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 vt(t);return o.createPathProxy(),o.buildPath=function(s){if(PP(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var LY=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),LP=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new LY},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(vt);LP.prototype.type="circle";const w0=LP;var DY=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),DP=function(e){ge(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=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t}(vt);DP.prototype.type="ellipse";const IP=DP;var OP=Math.PI,Qv=OP*2,ka=Math.sin,Wo=Math.cos,IY=Math.acos,rr=Math.atan2,oS=Math.abs,eu=Math.sqrt,Al=Math.max,$n=Math.min,mn=1e-4;function OY(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<mn))return h=(f*(t-a)-c*(e-i))/h,[e+h*l,t+h*u]}function qf(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/eu(s*s+l*l),f=u*l,c=-u*s,h=e+f,d=t+c,v=r+f,p=n+c,m=(h+v)/2,g=(d+p)/2,y=v-h,_=p-d,b=y*y+_*_,x=i-a,w=h*p-v*d,S=(_<0?-1:1)*eu(Al(0,x*x*b-w*w)),C=(w*_-y*S)/b,M=(-w*y-_*S)/b,A=(w*_+y*S)/b,P=(-w*y+_*S)/b,E=C-m,L=M-g,O=A-m,N=P-g;return E*E+L*L>O*O+N*N&&(C=A,M=P),{cx:C,cy:M,x0:-f,y0:-c,x1:C*(i/x-1),y1:M*(i/x-1)}}function RY(e){var t;if(ye(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 kY(e,t){var r,n=Al(t.r,0),i=Al(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,d=oS(u-l),v=d>Qv&&d%Qv;if(v>mn&&(d=v),!(n>mn))e.moveTo(f,c);else if(d>Qv-mn)e.moveTo(f+n*Wo(l),c+n*ka(l)),e.arc(f,c,n,l,u,!h),i>mn&&(e.moveTo(f+i*Wo(u),c+i*ka(u)),e.arc(f,c,i,u,l,h));else{var p=void 0,m=void 0,g=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,A=void 0,P=void 0,E=void 0,L=void 0,O=void 0,N=n*Wo(l),H=n*ka(l),V=i*Wo(u),U=i*ka(u),F=d>mn;if(F){var z=t.cornerRadius;z&&(r=RY(z),p=r[0],m=r[1],g=r[2],y=r[3]);var ee=oS(n-i)/2;if(_=$n(ee,g),b=$n(ee,y),x=$n(ee,p),w=$n(ee,m),M=S=Al(_,b),A=C=Al(x,w),(S>mn||C>mn)&&(P=n*Wo(u),E=n*ka(u),L=i*Wo(l),O=i*ka(l),d<OP)){var J=OY(N,H,L,O,P,E,V,U);if(J){var me=N-J[0],we=H-J[1],$e=P-J[0],Ie=E-J[1],B=1/ka(IY((me*$e+we*Ie)/(eu(me*me+we*we)*eu($e*$e+Ie*Ie)))/2),Y=eu(J[0]*J[0]+J[1]*J[1]);M=$n(S,(n-Y)/(B+1)),A=$n(C,(i-Y)/(B-1))}}}if(!F)e.moveTo(f+N,c+H);else if(M>mn){var K=$n(g,M),Q=$n(y,M),oe=qf(L,O,N,H,n,K,h),pe=qf(P,E,V,U,n,Q,h);e.moveTo(f+oe.cx+oe.x0,c+oe.cy+oe.y0),M<S&&K===Q?e.arc(f+oe.cx,c+oe.cy,M,rr(oe.y0,oe.x0),rr(pe.y0,pe.x0),!h):(K>0&&e.arc(f+oe.cx,c+oe.cy,K,rr(oe.y0,oe.x0),rr(oe.y1,oe.x1),!h),e.arc(f,c,n,rr(oe.cy+oe.y1,oe.cx+oe.x1),rr(pe.cy+pe.y1,pe.cx+pe.x1),!h),Q>0&&e.arc(f+pe.cx,c+pe.cy,Q,rr(pe.y1,pe.x1),rr(pe.y0,pe.x0),!h))}else e.moveTo(f+N,c+H),e.arc(f,c,n,l,u,!h);if(!(i>mn)||!F)e.lineTo(f+V,c+U);else if(A>mn){var K=$n(p,A),Q=$n(m,A),oe=qf(V,U,P,E,i,-Q,h),pe=qf(N,H,L,O,i,-K,h);e.lineTo(f+oe.cx+oe.x0,c+oe.cy+oe.y0),A<C&&K===Q?e.arc(f+oe.cx,c+oe.cy,A,rr(oe.y0,oe.x0),rr(pe.y0,pe.x0),!h):(Q>0&&e.arc(f+oe.cx,c+oe.cy,Q,rr(oe.y0,oe.x0),rr(oe.y1,oe.x1),!h),e.arc(f,c,i,rr(oe.cy+oe.y1,oe.cx+oe.x1),rr(pe.cy+pe.y1,pe.cx+pe.x1),h),K>0&&e.arc(f+pe.cx,c+pe.cy,K,rr(pe.y1,pe.x1),rr(pe.y0,pe.x0),!h))}else e.lineTo(f+V,c+U),e.arc(f,c,i,u,l,h)}e.closePath()}}}var NY=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}(),RP=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new NY},t.prototype.buildPath=function(r,n){kY(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(vt);RP.prototype.type="sector";const Eo=RP;var BY=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),kP=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new BY},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}(vt);kP.prototype.type="ring";const NP=kP;function FY(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,d=e.length;h<d;h++)ts(f,f,e[h]),rs(c,c,e[h]);ts(f,f,n[0]),rs(c,c,n[1])}for(var h=0,d=e.length;h<d;h++){var v=e[h];if(r)l=e[h?h-1:d-1],u=e[(h+1)%d];else if(h===0||h===d-1){i.push(gU(e[h]));continue}else l=e[h-1],u=e[h+1];mU(a,u,l),pv(a,a,t);var p=Bg(v,l),m=Bg(v,u),g=p+m;g!==0&&(p/=g,m/=g),pv(o,a,-p),pv(s,a,m);var y=Q1([],v,o),_=Q1([],v,s);n&&(rs(y,y,f),ts(y,y,c),rs(_,_,f),ts(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function BP(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=FY(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var $Y=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),FP=function(e){ge(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $Y},t.prototype.buildPath=function(r,n){BP(r,n,!0)},t}(vt);FP.prototype.type="polygon";const $P=FP;var HY=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),ff=function(e){ge(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 HY},t.prototype.buildPath=function(r,n){BP(r,n,!1)},t}(vt);ff.prototype.type="polyline";var zY={},VY=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),HP=function(e){ge(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 VY},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=fP(zY,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}(vt);HP.prototype.type="line";const wo=HP;var _r=[],WY=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 sS(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?uw:Zt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?uw:Zt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?fw:ir)(e.x1,e.cpx1,e.x2,t),(r?fw:ir)(e.y1,e.cpy1,e.y2,t)]}var zP=function(e){ge(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 WY},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,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(xd(i,l,o,h,_r),l=_r[1],o=_r[2],xd(a,u,s,h,_r),u=_r[1],s=_r[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(Sd(i,l,f,o,h,_r),l=_r[1],f=_r[2],o=_r[3],Sd(a,u,c,s,h,_r),u=_r[1],c=_r[2],s=_r[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return sS(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=sS(this.shape,r,!0);return bU(n,n)},t}(vt);zP.prototype.type="bezier-curve";const VP=zP;var GY=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}(),WP=function(e){ge(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 GY},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,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},t}(vt);WP.prototype.type="arc";const S0=WP;var UY=function(e){ge(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),vt.prototype.getBoundingRect.call(this)},t}(vt);const YY=UY;var jY=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const GP=jY;var qY=function(e){ge(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}(GP);const KY=qY;var XY=function(e){ge(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}(GP);const ZY=XY;var Na=[0,0],Ba=[0,0],Kf=new Fe,Xf=new Fe,Ld=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Fe;for(var n=0;n<2;n++)this._axes[n]=new Fe;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);Fe.sub(i[0],n[1],n[0]),Fe.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 Kf.set(1/0,1/0),Xf.set(0,0),!this._intersectCheckOneSide(this,t,Kf,Xf,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Kf,Xf,i,-1)&&(n=!1,i)||i||Fe.copy(r,n?Kf:Xf),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,Na),this._getProjMinMaxOnAxis(l,r._corners,Ba),Na[1]<Ba[0]||Na[0]>Ba[1]){if(s=!1,a)return s;var f=Math.abs(Ba[0]-Na[1]),c=Math.abs(Na[0]-Ba[1]);Math.min(f,c)>i.len()&&(f<c?Fe.scale(i,u,-f*o):Fe.scale(i,u,c*o))}else if(n){var f=Math.abs(Ba[0]-Na[1]),c=Math.abs(Na[0]-Ba[1]);Math.min(f,c)<n.len()&&(f<c?Fe.scale(n,u,f*o):Fe.scale(n,u,-c*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 f=r[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},e}(),QY=[],JY=function(e){ge(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 nt(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(QY)),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}(uf);const ej=JY;var tj=Et();function rj(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,f=void 0,c=void 0;n?(u=Ze(n.duration,200),f=Ze(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),Ye(c)&&(c=c(r,i)),Ye(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function x0(e,t,r,n,i,a,o){var s=!1,l;Ye(i)?(o=a,a=i,i=null):Re(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 f=rj(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,d=f.easing,v={duration:c,delay:h||0,easing:d,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 Or(e,t,r,n,i,a){x0("update",e,t,r,n,i,a)}function Wr(e,t,r,n,i,a){x0("enter",e,t,r,n,i,a)}function ds(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 UP(e,t,r,n,i,a){ds(e)||x0("leave",e,t,r,n,i,a)}function lS(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),UP(e,{style:{opacity:0}},t,r,n)}function Dd(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||lS(i,t,r,n)}):lS(e,t,r,n)}function YP(e){tj(e).oldStyle=e.style}var Id=Math.max,Od=Math.min,hm={};function nj(e){return vt.extend(e)}var ij=PY;function aj(e,t){return ij(e,t)}function On(e,t){hm[e]=t}function oj(e){if(hm.hasOwnProperty(e))return hm[e]}function C0(e,t,r,n){var i=AY(e,t);return r&&(n==="center"&&(r=qP(r,i.getBoundingRect())),KP(i,r)),i}function jP(e,t,r){var n=new Ys({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(qP(t,a))}}});return n}function qP(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 sj=EY;function KP(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Iu(e,t){return fP(e,e,{lineWidth:t}),e}function lj(e){return cP(e.shape,e.shape,e.style),e}var uj=to;function fj(e,t){for(var r=a0([]);e&&e!==t;)fs(r,e.getLocalTransform(),r),e=e.parent;return r}function T0(e,t,r){return t&&!Ir(t)&&(t=wh.getLocalTransform(t)),r&&(t=bh([],t)),un([],e,t)}function cj(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=T0(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function uS(e){return!e.isGroup}function dj(e){return e.shape!=null}function XP(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){uS(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return dj(o)&&(s.shape=ue({},o.shape)),s}var a=n(e);t.traverse(function(o){if(uS(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Or(o,l,r,dt(o).dataIndex)}}})}function hj(e,t){return Ne(e,function(r){var n=r[0];n=Id(n,t.x),n=Od(n,t.x+t.width);var i=r[1];return i=Id(i,t.y),i=Od(i,t.y+t.height),[n,i]})}function vj(e,t){var r=Id(e.x,t.x),n=Od(e.x+e.width,t.x+t.width),i=Id(e.y,t.y),a=Od(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 M0(e,t,r){var n=ue({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),ht(i,r),new Ys(n)):C0(e.replace("path://",""),n,r,"center")}function pj(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(ZP(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function ZP(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,h=Jv(f,c,l,u);if(gj(h))return!1;var d=e-i,v=t-a,p=Jv(d,v,l,u)/h;if(p<0||p>1)return!1;var m=Jv(d,v,f,c)/h;return!(m<0||m>1)}function Jv(e,t,r,n){return e*n-r*t}function gj(e){return e<=1e-6&&e>=-1e-6}function A0(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Ee(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&R(Ct(l),function(f){Ds(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=dt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ht({content:n,formatterParams:s},i)}}function fS(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function P0(e,t){if(e)if(ye(e))for(var r=0;r<e.length;r++)fS(e[r],t);else fS(e,t)}On("circle",w0);On("ellipse",IP);On("sector",Eo);On("ring",NP);On("polygon",$P);On("polyline",ff);On("rect",Gt);On("line",wo);On("bezierCurve",VP);On("arc",S0);const mj=Object.freeze(Object.defineProperty({__proto__:null,Arc:S0,BezierCurve:VP,BoundingRect:nt,Circle:w0,CompoundPath:YY,Ellipse:IP,Group:Ur,Image:Ys,IncrementalDisplayable:ej,Line:wo,LinearGradient:KY,OrientedBoundingRect:Ld,Path:vt,Point:Fe,Polygon:$P,Polyline:ff,RadialGradient:ZY,Rect:Gt,Ring:NP,Sector:Eo,Text:mr,applyTransform:T0,clipPointsByRect:hj,clipRectByRect:vj,createIcon:M0,extendPath:aj,extendShape:nj,getShapeClass:oj,getTransform:fj,groupTransition:XP,initProps:Wr,isElementRemoved:ds,lineLineIntersect:ZP,linePolygonIntersect:pj,makeImage:jP,makePath:C0,mergePath:sj,registerShape:On,removeElement:UP,removeElementWithFadeOut:Dd,resizePath:KP,setTooltipConfig:A0,subPixelOptimize:uj,subPixelOptimizeLine:Iu,subPixelOptimizeRect:lj,transformDirection:cj,traverseElements:P0,updateProps:Or},Symbol.toStringTag,{value:"Module"}));var Mh={};function QP(e,t){for(var r=0;r<Jn.length;r++){var n=Jn[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 vm(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=Ye(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Jn.length;u++){var f=Jn[u],c=t[f];l[f]=Ze(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function E0(e,t,r,n){r=r||Mh;for(var i=e instanceof mr,a=!1,o=0;o<Ed.length;o++){var s=t[Ed[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new mr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=vm(r,t),f=t.normal,c=!!f.getShallow("show"),h=ha(f,n&&n.normal,r,!1,!i);h.text=u.normal,i||e.setTextConfig(cS(f,r,!1));for(var o=0;o<Jn.length;o++){var d=Jn[o],s=t[d];if(s){var v=l.ensureState(d),p=!!Ze(s.getShallow("show"),c);if(p!==c&&(v.ignore=!p),v.style=ha(s,n&&n[d],r,!0,!i),v.style.text=u[d],!i){var m=e.ensureState(d);m.textConfig=cS(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(cf(l).setLabelText=function(g){var y=vm(r,t,g);QP(l,y)})}else l&&(l.ignore=!0);e.dirty()}function JP(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Jn.length;n++){var i=Jn[n];r[i]=e.getModel([i,t])}return r}function ha(e,t,r,n,i){var a={};return yj(a,e,r,n,i),t&&ue(a,t),a}function cS(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=Ze(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 yj(e,t,r,n,i){r=r||Mh;var a=t.ecModel,o=a&&a.option.textStyle,s=_j(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);pS(l[u]={},f,o,r,n,i,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var h=t.get("minMargin");h!=null&&(e.margin=h),pS(e,t,o,r,n,i,!0,!1)}function _j(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Mh).rich;if(r){t=t||{};for(var n=Ct(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var dS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],hS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],vS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function pS(e,t,r,n,i,a,o,s){r=!i&&r||Mh;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=Ze(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(e.fill=u),f!=null&&(e.stroke=f);var h=Ze(t.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var d=Ze(t.getShallow("textBorderType"),r.textBorderType);d!=null&&(e.lineDash=d);var v=Ze(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(e.opacity=c),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<dS.length;p++){var m=dS[p],g=Ze(t.getShallow(m),r[m]);g!=null&&(e[m]=g)}for(var p=0;p<hS.length;p++){var m=hS[p],g=t.getShallow(m);g!=null&&(e[m]=g)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<vS.length;p++){var m=vS[p],g=t.getShallow(m);g!=null&&(e[m]=g)}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 bj(e,t){var r=t&&t.getModel("textStyle");return Gn([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 cf=Et();function wj(e,t,r,n){if(e){var i=cf(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 Sj(e,t,r,n,i){var a=cf(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Ze(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=J9(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var h=vm({labelDataIndex:t,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);QP(e,h)}e.percent=0,(a.prevValue==null?Wr:Or)(e,{percent:1},n,t,null,u)}var xj=["textStyle","color"],ep=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tp=new mr,Cj=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(xj):null)},e.prototype.getFont=function(){return bj({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<ep.length;n++)r[ep[n]]=this.getShallow(ep[n]);return tp.useStyle(r),tp.update(),tp.getBoundingRect()},e}();const Tj=Cj;var eE=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mj=Du(eE),Aj=function(){function e(){}return e.prototype.getLineStyle=function(t){return Mj(this,t)},e}(),tE=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Pj=Du(tE),Ej=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Pj(this,t,r)},e}(),Lo=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(tt(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(!He.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}();p0(Lo);a7(Lo);ni(Lo,Aj);ni(Lo,Ej);ni(Lo,f7);ni(Lo,Tj);const sr=Lo;var Lj=Math.round(Math.random()*10);function Ah(e){return[e||"",Lj++].join("_")}function Dj(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Un(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Un(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function Ij(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(R(a,function(y){h[y]=!0});c.length;){var d=c.pop(),v=f[d],p=!!h[d];p&&(s.call(l,d,v.originalDeps.slice()),delete h[d]),R(v.successor,p?g:m)}R(h,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){h[y]=!0,m(y)}};function r(a){var o={},s=[];return R(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),R(c,function(h){ot(u.predecessor,h)<0&&u.predecessor.push(h);var d=n(o,h);ot(d.successor,h)<0&&d.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 R(a,function(l){ot(o,l)>=0&&s.push(l)}),s}}function rE(e,t){return st(st({},e,!0),t,!0)}const Oj={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:". "}}}},Rj={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 Rd="ZH",L0="EN",Ou=L0,jc={},D0={},nE=He.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Rd)>-1?Rd:Ou}():Ou;function iE(e,t){e=e.toUpperCase(),D0[e]=new sr(t),jc[e]=t}function kj(e){if(Ee(e)){var t=jc[e.toUpperCase()]||{};return e===Rd||e===L0?tt(t):st(tt(t),tt(jc[Ou]),!1)}else return st(tt(e),tt(jc[Ou]),!1)}function Nj(e){return D0[e]}function Bj(){return D0[Ou]}iE(L0,Oj);iE(Rd,Rj);var I0=1e3,O0=I0*60,tu=O0*60,on=tu*24,gS=on*365,Pl={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}"},Zf="{yyyy}-{MM}-{dd}",mS={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zf,hour:Zf+" "+Pl.hour,minute:Zf+" "+Pl.minute,second:Zf+" "+Pl.second,millisecond:Pl.none},rp=["year","month","day","hour","minute","second","millisecond"],aE=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Bi(e,t){return e+="","0000".substr(0,t-e.length)+e}function hs(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 Fj(e){return e===hs(e)}function $j(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ph(e,t,r,n){var i=Ti(e),a=i[R0(r)](),o=i[vs(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Eh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[Ru(r)](),c=(f-1)%12+1,h=i[Lh(r)](),d=i[Dh(r)](),v=i[Ih(r)](),p=n instanceof sr?n:Nj(n||nE)||Bj(),m=p.getModel("time"),g=m.get("month"),y=m.get("monthAbbr"),_=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Bi(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Bi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Bi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Bi(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Bi(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Bi(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Bi(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Bi(v,3)).replace(/{S}/g,v+"")}function Hj(e,t,r,n,i){var a=null;if(Ee(r))a=r;else if(Ye(r))a=r(e.value,t,{level:e.level});else{var o=ue({},Pl);if(e.level>0)for(var s=0;s<rp.length;++s)o[rp[s]]="{primary|"+o[rp[s]]+"}";var l=r?r.inherit===!1?r:ht(r,o):o,u=oE(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=aE.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ye(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return Ph(new Date(e.value),a,i,n)}function oE(e,t){var r=Ti(e),n=r[vs(t)]()+1,i=r[Eh(t)](),a=r[Ru(t)](),o=r[Lh(t)](),s=r[Dh(t)](),l=r[Ih(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,d=h&&i===1,v=d&&n===1;return v?"year":d?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function yS(e,t,r){var n=Tt(e)?Ti(e):e;switch(t=t||oE(e,r),t){case"year":return n[R0(r)]();case"half-year":return n[vs(r)]()>=6?1:0;case"quarter":return Math.floor((n[vs(r)]()+1)/4);case"month":return n[vs(r)]();case"day":return n[Eh(r)]();case"half-day":return n[Ru(r)]()/24;case"hour":return n[Ru(r)]();case"minute":return n[Lh(r)]();case"second":return n[Dh(r)]();case"millisecond":return n[Ih(r)]()}}function R0(e){return e?"getUTCFullYear":"getFullYear"}function vs(e){return e?"getUTCMonth":"getMonth"}function Eh(e){return e?"getUTCDate":"getDate"}function Ru(e){return e?"getUTCHours":"getHours"}function Lh(e){return e?"getUTCMinutes":"getMinutes"}function Dh(e){return e?"getUTCSeconds":"getSeconds"}function Ih(e){return e?"getUTCMilliseconds":"getMilliseconds"}function zj(e){return e?"setUTCFullYear":"setFullYear"}function sE(e){return e?"setUTCMonth":"setMonth"}function lE(e){return e?"setUTCDate":"setDate"}function uE(e){return e?"setUTCHours":"setHours"}function fE(e){return e?"setUTCMinutes":"setMinutes"}function cE(e){return e?"setUTCSeconds":"setSeconds"}function dE(e){return e?"setUTCMilliseconds":"setMilliseconds"}function hE(e){if(!F9(e))return Ee(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function vE(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 Oh=_2;function pm(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Gn(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ti(e):e;if(isNaN(+l)){if(s)return"-"}else return Ph(l,n,r)}if(t==="ordinal")return kg(e)?i(e):Tt(e)&&a(e)?e+"":"-";var u=Pd(e);return a(u)?hE(u):kg(e)?i(e):typeof e=="boolean"?e+"":"-"}var _S=["a","b","c","d","e","f","g"],np=function(e,t){return"{"+e+(t??"")+"}"};function pE(e,t,r){ye(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=_S[a];e=e.replace(np(o),np(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(np(_S[l],s),r?tn(u):u)}return e}function Vj(e,t){var r=Ee(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:'+tn(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+tn(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 ku(e,t){return t=t||"transparent",Ee(e)?e:Re(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function bS(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var qc=R,Wj=["left","right","top","bottom","width","height"],Qf=[["width","left","right"],["height","top","bottom"]];function k0(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),d,v;if(e==="horizontal"){var p=f.width+(h?-h.x+f.x:0);d=a+p,d>n||l.newline?(a=0,d=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(h?-h.y+f.y:0);v=o+m,v>i||l.newline?(a+=s+r,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=v+r)})}var ru=k0;Rt(k0,"vertical");Rt(k0,"horizontal");function Is(e,t,r){r=Oh(r||0);var n=t.width,i=t.height,a=yt(e.left,n),o=yt(e.top,i),s=yt(e.right,n),l=yt(e.bottom,i),u=yt(e.width,n),f=yt(e.height,i),c=r[2]+r[0],h=r[1]+r[3],d=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),d!=null&&(isNaN(u)&&isNaN(f)&&(d>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=d*f),isNaN(f)&&(f=u/d)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new nt(a+r[3],o+r[0],u,f);return v.margin=r,v}function Nu(e){var t=e.layoutMode||e.constructor.layoutMode;return Re(t)?t:t?{type:t}:null}function Os(e,t,r){var n=r&&r.ignoreSize;!ye(n)&&(n=[n,n]);var i=o(Qf[0],0),a=o(Qf[1],1);u(Qf[0],e,i),u(Qf[1],e,a);function o(f,c){var h={},d=0,v={},p=0,m=2;if(qc(f,function(_){v[_]=e[_]}),qc(f,function(_){s(t,_)&&(h[_]=v[_]=t[_]),l(h,_)&&d++,l(v,_)&&p++}),n[c])return l(t,f[1])?v[f[2]]=null:l(t,f[2])&&(v[f[1]]=null),v;if(p===m||!d)return v;if(d>=m)return h;for(var g=0;g<f.length;g++){var y=f[g];if(!s(h,y)&&s(e,y)){h[y]=e[y];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){qc(f,function(d){c[d]=h[d]})}}function Rh(e){return Gj({},e)}function Gj(e,t){return t&&e&&qc(Wj,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Uj=Et(),js=function(e){ge(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Ah("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Nu(this),a=i?Rh(r):{},o=n.getTheme();st(r,o.get(this.mainType)),st(r,this.getDefaultOption()),i&&Os(r,a,i)},t.prototype.mergeOption=function(r,n){st(this.option,r,!0);var i=Nu(this);i&&Os(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!r7(r))return r.defaultOption;var n=Uj(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 lf(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}(sr);tP(js,sr);Sh(js);Dj(js);Ij(js,Yj);function Yj(e){var t=[];return R(js.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Ne(t,function(r){return Un(r).main}),e!=="dataset"&&ot(t,"dataset")<=0&&t.unshift("dataset"),t}const Mt=js;var gE="";typeof navigator<"u"&&(gE=navigator.platform||"");var Go="rgba(0, 0, 0, 0.2)";const jj={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Go,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Go,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Go,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Go,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Go,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Go,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gE.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 mE=je(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),hn="original",Rr="arrayRows",Rn="objectRows",ai="keyedColumns",aa="typedArray",yE="unknown",yi="column",qs="row",Xt={Must:1,Might:2,Not:3},_E=Et();function qj(e){_E(e).datasetMap=je()}function Kj(e,t,r){var n={},i=N0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=_E(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),R(e,function(p,m){var g=Re(p)?p:e[m]={name:p};g.type==="ordinal"&&f==null&&(f=m,c=v(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});R(e,function(p,m){var g=p.name,y=v(p);if(f==null){var _=h.valueWayDim;d(n[g],_,y),d(o,_,y),h.valueWayDim+=y}else if(f===m)d(n[g],0,y),d(a,0,y);else{var _=h.categoryWayDim;d(n[g],_,y),d(o,_,y),h.categoryWayDim+=y}});function d(p,m,g){for(var y=0;y<g;y++)p.push(m+y)}function v(p){var m=p.dimsDef;return m?m.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Xj(e,t,r){var n={},i=N0(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Rn||a===ai)&&R(o,function(f,c){(Re(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},h=[],d=0,v=Math.min(5,r);d<v;d++){var p=wE(t.data,a,t.seriesLayoutBy,o,t.startIndex,d);h.push(p);var m=p===Xt.Not;if(m&&f.v==null&&d!==s&&(f.v=d),(f.n==null||f.n===f.v||!m&&h[f.n]===Xt.Not)&&(f.n=d),g(f)&&h[f.n]!==Xt.Not)return f;m||(p===Xt.Might&&c.v==null&&d!==s&&(c.v=d),(c.n==null||c.n===c.v)&&(c.n=d))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function N0(e){var t=e.get("data",!0);if(!t)return lf(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Tn).models[0]}function Zj(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:lf(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Tn).models}function bE(e,t){return wE(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function wE(e,t,r,n,i,a){var o,s=5;if(Gr(e))return Xt.Not;var l,u;if(n){var f=n[a];Re(f)?(l=f.name,u=f.type):Ee(f)&&(l=f)}if(u!=null)return u==="ordinal"?Xt.Must:Xt.Not;if(t===Rr){var c=e;if(r===qs){for(var h=c[a],d=0;d<(h||[]).length&&d<s;d++)if((o=b(h[i+d]))!=null)return o}else for(var d=0;d<c.length&&d<s;d++){var v=c[i+d];if(v&&(o=b(v[a]))!=null)return o}}else if(t===Rn){var p=e;if(!l)return Xt.Not;for(var d=0;d<p.length&&d<s;d++){var m=p[d];if(m&&(o=b(m[l]))!=null)return o}}else if(t===ai){var g=e;if(!l)return Xt.Not;var h=g[l];if(!h||Gr(h))return Xt.Not;for(var d=0;d<h.length&&d<s;d++)if((o=b(h[d]))!=null)return o}else if(t===hn)for(var y=e,d=0;d<y.length&&d<s;d++){var m=y[d],_=of(m);if(!ye(_))return Xt.Not;if((o=b(_[a]))!=null)return o}function b(x){var w=Ee(x);if(x!=null&&isFinite(x)&&x!=="")return w?Xt.Might:Xt.Not;if(w&&x!=="-")return Xt.Must}return Xt.Not}var Qj=je();function Jj(e,t,r){var n=Qj.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var wS=Et();Et();var B0=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=pr(this.get("color",!0)),a=this.get("colorLayer",!0);return tq(this,wS,i,a,t,r,n)},e.prototype.clearColorPalette=function(){rq(this,wS)},e}();function eq(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 tq(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:eq(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function rq(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Jf,ul,SS,xS="\0_ec_inner",nq=1,F0=function(e){ge(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 sr(a),this._locale=new sr(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=MS(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,MS(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"?SS(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&R(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=je(),u=n&&n.replaceMergeMainTypeMap;qj(this),R(r,function(c,h){c!=null&&(Mt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?tt(c):st(i[h],c,!0))}),u&&u.each(function(c,h){Mt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Mt.topologicalTravel(s,Mt.getAllClassMainTypes(),f,this);function f(c){var h=Jj(this,c,pr(r[c])),d=a.get(c),v=d?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=z9(d,h,v);q9(p,c,Mt),i[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_;R(p,function(b,x){var w=b.existing,S=b.newOption;if(!S)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",M=Mt.getClass(c,b.keyInfo.subType,!C);if(!M)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===M)w.name=b.keyInfo.name,w.mergeOption(S,this),w.optionUpdated(S,!1);else{var A=ue({componentIndex:x},b.keyInfo);w=new M(S,this,this,A),ue(w,A),b.brandNew&&(w.__requireNewView=!0),w.init(S,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),i[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Jf(this)}this._seriesIndices||Jf(this)},t.prototype.getOption=function(){var r=tt(this.option);return R(r,function(n,i){if(Mt.hasClass(i)){for(var a=pr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Lu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[xS],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=[],R(pr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=CS("id",a,s):o!=null?l=CS("name",o,s):l=jt(s,function(u){return!!u}),TS(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):jt(this._componentsMap.get(i),function(u){return!!u});return l(TS(o,r));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?jt(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Ye(r)){var o=n,s=r;a.each(function(c,h){for(var d=0;c&&d<c.length;d++){var v=c[d];v&&s.call(o,h,v,v.componentIndex)}})}else for(var l=Ee(r)?a.get(r):Re(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=qn(r,null);return jt(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 jt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return jt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){ul(this),R(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){R(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){ul(this),R(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 R(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return ul(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){ul(this);var i=[];R(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=je(i)},t.prototype.restoreData=function(r){Jf(this);var n=this._componentsMap,i=[];n.each(function(a,o){Mt.hasClass(o)&&i.push(o)}),Mt.topologicalTravel(i,Mt.getAllClassMainTypes(),function(a){R(n.get(a),function(o){o&&(a!=="series"||!iq(o,r))&&o.restoreData()})})},t.internalField=function(){Jf=function(r){var n=r._seriesIndices=[];R(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=je(n)},ul=function(r){},SS=function(r,n){r.option={},r.option[xS]=nq,r._componentsMap=je({series:[]}),r._componentsCount=je();var i=n.aria;Re(i)&&i.enabled==null&&(i.enabled=!0),aq(n,r._theme.option),st(n,jj,!1),r._mergeOption(n,null)}}(),t}(sr);function iq(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 aq(e,t){var r=e.color&&!e.colorLayer;R(t,function(n,i){i==="colorLayer"&&r||Mt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?st(e[i],n,!1):tt(n):e[i]==null&&(e[i]=n))})}function CS(e,t,r){if(ye(t)){var n=je();return R(t,function(a){if(a!=null){var o=qn(a,null);o!=null&&n.set(a,!0)}}),jt(r,function(a){return a&&n.get(a[e])})}else{var i=qn(t,null);return jt(r,function(a){return a&&i!=null&&a[e]===i})}}function TS(e,t){return t.hasOwnProperty("subType")?jt(e,function(r){return r&&r.subType===t.subType}):e}function MS(e){var t=je();return e&&R(pr(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}ni(F0,B0);var oq=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],sq=function(){function e(t){R(oq,function(r){this[r]=xt(t[r],t)},this)}return e}();const SE=sq;var ip={},$0=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];R(ip,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){R(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){ip[t]=r},e.get=function(t){return ip[t]},e}(),lq=/^(min|max)?(.+)$/,uq=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(R(pr(t.series),function(o){o&&o.data&&Gr(o.data)&&Ng(o.data)}),R(pr(t.dataset),function(o){o&&o.source&&Gr(o.source)&&Ng(o.source)})),t=tt(t);var i=this._optionBackup,a=fq(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=[],tt(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=tt(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++)cq(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!hq(o,this._currentMediaIndices)&&(s=Ne(o,function(f){return tt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function fq(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(e.options=e.media=null),a=e),f&&ye(u)&&R(u,function(d){d&&d.option&&(d.query?n.push(d):i||(i=d))}),h(a),R(l,function(d){return h(d)}),R(n,function(d){return h(d.option)});function h(d){R(t,function(v){v(d,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function cq(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return R(e,function(a,o){var s=o.match(lq);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();dq(n[u],a,l)||(i=!1)}}),i}function dq(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function hq(e,t){return e.join(",")===t.join(",")}const vq=uq;var vn=R,Bu=Re,AS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ap(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=AS.length;r<n;r++){var i=AS[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 ar(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,ht(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 El(e){ar(e,"itemStyle"),ar(e,"lineStyle"),ar(e,"areaStyle"),ar(e,"label"),ar(e,"labelLine"),ar(e,"upperLabel"),ar(e,"edgeLabel")}function Ot(e,t){var r=Bu(e)&&e[t],n=Bu(r)&&r.textStyle;if(n)for(var i=0,a=Ew.length;i<a;i++){var o=Ew[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Jr(e){e&&(El(e),Ot(e,"label"),e.emphasis&&Ot(e.emphasis,"label"))}function pq(e){if(Bu(e)){ap(e),El(e),Ot(e,"label"),Ot(e,"upperLabel"),Ot(e,"edgeLabel"),e.emphasis&&(Ot(e.emphasis,"label"),Ot(e.emphasis,"upperLabel"),Ot(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(ap(t),Jr(t));var r=e.markLine;r&&(ap(r),Jr(r));var n=e.markArea;n&&Jr(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Gr(a))for(var o=0;o<a.length;o++)Jr(a[o]);R(e.categories,function(u){El(u)})}if(i&&!Gr(i))for(var o=0;o<i.length;o++)Jr(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Jr(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)ye(l[o])?(Jr(l[o][0]),Jr(l[o][1])):Jr(l[o]);e.type==="gauge"?(Ot(e,"axisLabel"),Ot(e,"title"),Ot(e,"detail")):e.type==="treemap"?(ar(e.breadcrumb,"itemStyle"),R(e.levels,function(u){El(u)})):e.type==="tree"&&El(e.leaves)}}function fi(e){return ye(e)?e:e?[e]:[]}function PS(e){return(ye(e)?e[0]:e)||{}}function gq(e,t){vn(fi(e.series),function(n){Bu(n)&&pq(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),vn(r,function(n){vn(fi(e[n]),function(i){i&&(Ot(i,"axisLabel"),Ot(i.axisPointer,"label"))})}),vn(fi(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Ot(i,"axisLabel"),Ot(i&&i.axisPointer,"label")}),vn(fi(e.calendar),function(n){ar(n,"itemStyle"),Ot(n,"dayLabel"),Ot(n,"monthLabel"),Ot(n,"yearLabel")}),vn(fi(e.radar),function(n){Ot(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)}),vn(fi(e.geo),function(n){Bu(n)&&(Jr(n),vn(fi(n.regions),function(i){Jr(i)}))}),vn(fi(e.timeline),function(n){Jr(n),ar(n,"label"),ar(n,"itemStyle"),ar(n,"controlStyle",!0);var i=n.data;ye(i)&&R(i,function(a){Re(a)&&(ar(a,"label"),ar(a,"itemStyle"))})}),vn(fi(e.toolbox),function(n){ar(n,"iconStyle"),vn(n.feature,function(i){ar(i,"iconStyle")})}),Ot(PS(e.axisPointer),"label"),Ot(PS(e.tooltip).axisPointer,"label")}function mq(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 yq(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 ES(e){e&&R(_q,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var _q=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],bq=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],op=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fl(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<op.length;r++){var n=op[r][1],i=op[r][0];t[n]!=null&&(t[i]=t[n])}}function LS(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function DS(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function wq(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function xE(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&xE(e[r].children,t)}function CE(e,t){gq(e,t),e.series=pr(e.series),R(e.series,function(r){if(Re(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),LS(r.label);var i=r.data;if(i&&!Gr(i))for(var a=0;a<i.length;a++)LS(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=mq(r,"pointer.color");o!=null&&yq(r,"itemStyle.color",o)}else if(n==="bar"){fl(r),fl(r.backgroundStyle),fl(r.emphasis);var i=r.data;if(i&&!Gr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(fl(i[a]),fl(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)),DS(r),xE(r.data,DS)}else n==="graph"||n==="sankey"?wq(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ht(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),ES(r)}}),e.dataRange&&(e.visualMap=e.dataRange),R(bq,function(r){var n=e[r];n&&(ye(n)||(n=[n]),R(n,function(i){ES(i)}))})}function Sq(e){var t=je();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(xq)}function xq(e){R(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,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return i;var d,v;s?v=o.getRawIndex(c):d=o.get(t.stackedByDimension,c);for(var p=NaN,m=r-1;m>=0;m--){var g=e[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,d)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=k9(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var kh=function(){function e(t){this.data=t.data||(t.sourceFormat===ai?{}:[]),this.sourceFormat=t.sourceFormat||yE,this.seriesLayoutBy=t.seriesLayoutBy||yi,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&&bE(this,n)===Xt.Must&&(i.type="ordinal")}}return e}();function H0(e){return e instanceof kh}function gm(e,t,r){r=r||TE(e);var n=t.seriesLayoutBy,i=Tq(e,r,n,t.sourceHeader,t.dimensions),a=new kh({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:tt(t)});return a}function z0(e){return new kh({data:e,sourceFormat:Gr(e)?aa:hn})}function Cq(e){return new kh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:tt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function TE(e){var t=yE;if(Gr(e))t=aa;else if(ye(e)){e.length===0&&(t=Rr);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(ye(i)){t=Rr;break}else if(Re(i)){t=Rn;break}}}}else if(Re(e)){for(var a in e)if(Ds(e,a)&&Ir(e[a])){t=ai;break}}return t}function Tq(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:IS(i),startIndex:o,dimensionsDetectedCount:a};if(t===Rr){var s=e;n==="auto"||n==null?OS(function(u){u!=null&&u!=="-"&&(Ee(u)?o==null&&(o=1):o=0)},r,s,10):o=Tt(n)?n:n?1:0,!i&&o===1&&(i=[],OS(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===qs?s.length:s[0]?s[0].length:null}else if(t===Rn)i||(i=Mq(e));else if(t===ai)i||(i=[],R(e,function(u,f){i.push(f)}));else if(t===hn){var l=of(e[0]);a=ye(l)&&l.length||1}return{startIndex:o,dimensionsDefine:IS(i),dimensionsDetectedCount:a}}function Mq(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Ct(r)}function IS(e){if(e){var t=je();return Ne(e,function(r,n){r=Re(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 OS(e,t,r,n){if(t===qs)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 ME(e){var t=e.sourceFormat;return t===Rn||t===ai}var Fa,$a,Ha,RS,kS,AE=function(){function e(t,r){var n=H0(t)?t:z0(t);this._source=n;var i=this._data=n.data;n.sourceFormat===aa&&(this._offset=0,this._dimSize=r,this._data=i),kS(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;kS=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,d=RS[V0(u,f)];if(ue(o,d),u===aa)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=PE(u,f);o.getItem=xt(v,null,s,c,h);var p=EE(u,f);o.count=xt(p,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var d=u[h],v=d[0]==null?1/0:d[0],p=d[1]==null?-1/0:d[1],m=s-o,g=l[h],y=0;y<m;y++){var _=f[y*c+h];g[o+y]=_,_<v&&(v=_),_>p&&(p=_)}d[0]=v,d[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};RS=(t={},t[Rr+"_"+yi]={pure:!0,appendData:a},t[Rr+"_"+qs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Rn]={pure:!0,appendData:a},t[ai]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[hn]={appendData:a},t[aa]={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}(),NS=function(e,t,r,n){return e[n]},Aq=(Fa={},Fa[Rr+"_"+yi]=function(e,t,r,n){return e[n+t]},Fa[Rr+"_"+qs]=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},Fa[Rn]=NS,Fa[ai]=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},Fa[hn]=NS,Fa);function PE(e,t){var r=Aq[V0(e,t)];return r}var BS=function(e,t,r){return e.length},Pq=($a={},$a[Rr+"_"+yi]=function(e,t,r){return Math.max(0,e.length-t)},$a[Rr+"_"+qs]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},$a[Rn]=BS,$a[ai]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},$a[hn]=BS,$a);function EE(e,t){var r=Pq[V0(e,t)];return r}var sp=function(e,t,r){return e[t]},Eq=(Ha={},Ha[Rr]=sp,Ha[Rn]=function(e,t,r){return e[r]},Ha[ai]=sp,Ha[hn]=function(e,t,r){var n=of(e);return n instanceof Array?n[t]:n},Ha[aa]=sp,Ha);function LE(e){var t=Eq[e];return t}function V0(e,t){return e===Rr?e+"_"+t:e}function Rs(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===hn&&(l=of(n)),l}}}}var Lq=/\{@(.+?)\}/g,Dq=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"],f=l&&l.stroke,c=this.mainType,h=c==="series",d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:d?d.fullDimensions:null,encode:d?d.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&&ye(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Ye(a))return l.status=r,l.dimensionIndex=i,a(l);if(Ee(a)){var f=pE(a,l);return f.replace(Lq,function(c,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1));var p=Rs(s,t,v);if(o&&ye(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Rs(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function FS(e){var t,r;return Re(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function nu(e){return new Iq(e)}var Iq=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||d<v)){var p=this._progress;if(ye(p))for(var m=0;m<p.length;m++)this._doProgress(p[m],d,v,l,u);else this._doProgress(p,d,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}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){$S.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:$S.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),ye(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}(),$S=function(){var e,t,r,n,i,a={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,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 Kc(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Tt(e)&&e!=null&&e!=="-"&&(e=+Ti(e)),e==null||e===""?NaN:+e)}je({number:function(e){return parseFloat(e)},time:function(e){return+Ti(e)},trim:function(e){return Ee(e)?Gn(e):e}});var Oq=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=Tt(t)?t:Pd(t),i=Tt(r)?r:Pd(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Ee(t),l=Ee(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Rq=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 Kc(t,r)},e}();function kq(e,t){var r=new Rq,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==yi&&Cr(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(p,m){var g=p.name,y={index:m,name:g,displayName:p.displayName};if(s.push(y),g!=null){var _="";Ds(l,g)&&Cr(_),l[g]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=PE(i,yi);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=xt(Nq,null,e)),r.cloneRawData=xt(Bq,null,e);var h=EE(i,yi);r.count=xt(h,null,n,a,s);var d=LE(i);r.retrieveValue=function(p,m){var g=c(n,a,s,p);return v(g,m)};var v=r.retrieveValueFromItem=function(p,m){if(p!=null){var g=s[m];if(g)return d(p,m,g.name)}};return r.getDimensionInfo=xt(Fq,null,s,l),r.cloneAllDimensionInfo=xt($q,null,s),r}function Nq(e){var t=e.sourceFormat;if(!W0(t)){var r="";Cr(r)}return e.data}function Bq(e){var t=e.sourceFormat,r=e.data;if(!W0(t)){var n="";Cr(n)}if(t===Rr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Rn){for(var i=[],a=0,o=r.length;a<o;a++)i.push(ue({},r[a]));return i}}function Fq(e,t,r){if(r!=null){if(Tt(r)||!isNaN(r)&&!Ds(t,r))return e[r];if(Ds(t,r))return t[r]}}function $q(e){return tt(e)}var DE=je();function Hq(e){e=tt(e);var t=e.type,r="";t||Cr(r);var n=t.split(":");n.length!==2&&Cr(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,DE.set(t,e)}function zq(e,t,r){var n=pr(e),i=n.length,a="";i||Cr(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=Vq(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Vq(e,t,r,n){var i="";t.length||Cr(i),Re(e)||Cr(i);var a=e.type,o=DE.get(a);o||Cr(i);var s=Ne(t,function(u){return kq(u,o)}),l=pr(o.transform({upstream:s[0],upstreamList:s,config:tt(e.config)}));return Ne(l,function(u,f){var c="";Re(u)||Cr(c),u.data||Cr(c);var h=TE(u.data);W0(h)||Cr(c);var d,v=t[0];if(v&&f===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),d={seriesLayoutBy:yi,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:yi,sourceHeader:0,dimensions:u.dimensions};return gm(u.data,d,null)})}function W0(e){return e===Rr||e===Rn}var Nh="undefined",Wq=typeof Uint32Array===Nh?Array:Uint32Array,Gq=typeof Uint16Array===Nh?Array:Uint16Array,IE=typeof Int32Array===Nh?Array:Int32Array,HS=typeof Float64Array===Nh?Array:Float64Array,OE={float:HS,int:IE,ordinal:Array,number:Array,time:HS},lp;function cl(e){return e>65535?Wq:Gq}function Uo(){return[1/0,-1/0]}function Uq(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function zS(e,t,r,n,i){var a=OE[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 mm=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=je()}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=lp[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],ME(i),this._dimensions=Ne(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 OE[r||"float"](this._rawCount),this._rawExtent[a]=Uo(),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]=Uo());for(var l=a[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,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 f=i[u];zS(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var d=h-s,v=0;v<a;v++){var f=i[v],p=lp.arrayRows.call(this,t[d]||c,f.property,d,v);n[v][h]=p;var m=o[v];p<m[0]&&(m[0]=p),p>m[1]&&(m[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=Ne(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Uo()),zS(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var h=[],d=t;d<r;d++){h=i.getItem(d,h);for(var v=0;v<s;v++){var p=a[v],m=this._dimValueGetter(h,u[v],d,v);p[d]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!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,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),d=r-a[h],v=Math.abs(d);v<=n&&((v<s||v===s&&d>=0&&l<0)&&(s=v,l=d,u=0),d===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=cl(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=cl(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<i;h++){var d=void 0,v=n.getRawIndex(h);if(l===0)d=r(h);else if(l===1){var p=c[f][v];d=r(p,h)}else{for(var m=0;m<l;m++)s[m]=c[t[m]][v];s[m]=h,d=r.apply(null,s)}d&&(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=Ct(t),a=i.length;if(!a)return this;var o=r.count(),s=cl(r._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],h=t[f][1],d=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var m=d[i[0]],g=0;g<n;g++){var y=m[g];(y>=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var m=d[i[0]],_=d[i[1]],b=t[i[1]][0],x=t[i[1]][1],g=0;g<n;g++){var y=m[g],w=_[g];(y>=c&&y<=h||isNaN(y))&&(w>=b&&w<=x||isNaN(w))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var S=r.getRawIndex(g),y=d[i[0]][S];(y>=c&&y<=h||isNaN(y))&&(l[u++]=S)}else for(var g=0;g<o;g++){for(var C=!0,S=r.getRawIndex(g),M=0;M<a;M++){var A=i[M],y=d[A][S];(y<t[A][0]||y>t[A][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}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,f=0;f<r.length;f++)u[r[f]]=Uo();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)l[d]=i[r[d]][h];l[o]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var p=r[f],m=v[f],g=u[p],y=i[p];y&&(y[h]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,d=new(cl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+p)/2,y=0,_=p;_<m;_++){var b=this.getRawIndex(_),x=a[b];isNaN(x)||(y+=x)}y/=m-p;var w=v,S=Math.min(v+l,o),C=v-1,M=a[u];f=-1,h=w;for(var A=-1,P=0,_=w;_<S;_++){var b=this.getRawIndex(_),x=a[b];if(isNaN(x)){P++,A<0&&(A=b);continue}c=Math.abs((C-g)*(x-M)-(C-_)*(y-M)),c>f&&(f=c,h=b)}P>0&&P<S-w&&(d[s++]=Math.min(A,h),h=Math.max(A,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,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],f=this.count(),c=a._rawExtent[t]=Uo(),h=new(cl(this._rawCount))(Math.ceil(f/l)),d=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var p=0;p<l;p++){var m=this.getRawIndex(v+p);s[p]=u[m]}var g=n(s),y=this.getRawIndex(Math.min(v+i(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[d++]=y}return a._count=d,a._indices=h,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=Uo();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 f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<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&&ca(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Uq(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=tt(this._extent),t._rawExtent=tt(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 Kc(r[a],this._dimensions[a])}lp={arrayRows:t,objectRows:function(r,n,i,a){return Kc(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Kc(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),Yq=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(ec(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Gr(s)?aa:hn,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=Ze(c.seriesLayoutBy,h.seriesLayoutBy)||null,v=Ze(c.sourceHeader,h.sourceHeader),p=Ze(c.dimensions,h.dimensions),m=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||p;i=m?[gm(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:p},l)]:[]}else{var g=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);i=[gm(_,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&&VS(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&VS(c),s.push(f),l.push(u._getVersionSign())}),n?o=zq(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Cq(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];ec(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new mm,s.initData(new AE(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ec(t)){var r=N0(t);return r?[r.getSourceManager()]:[]}else return Ne(Zj(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(ec(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 ec(e){return e.mainType==="series"}function VS(e){throw new Error(e)}var RE="line-height:1";function kE(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:"+tn(n+"")+"px;color:"+tn(r)+";font-weight:"+tn(i+""),valueStyle:"font-size:"+tn(o+"")+"px;color:"+tn(a)+";font-weight:"+tn(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var jq=[0,10,20,30],qq=["",`
 `,`
 
 `,`
 
 
-`];function Fu(e,t){return t.type=e,t}function ym(e){return e.type==="section"}function NE(e){return ym(e)?Kq:Xq}function BE(e){if(ym(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return R(e.blocks,function(i){var a=BE(i);a>=t&&(t=a+ +(n&&(!a||ym(i)&&!i.noHeader)))}),t}return 0}function Kq(e,t,r,n){var i=t.noHeader,a=Zq(BE(t)),o=[],s=t.blocks||[];Ci(!s||ye(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 f=new Oq(u[l],null);s.sort(function(v,p){return f.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(v,p){var m=t.valueFormatter,g=NE(v)(m?ue(ue({},e),{valueFormatter:m}):e,v,p>0?a.html:0,n);g!=null&&o.push(g)});var c=e.renderMode==="richText"?o.join(a.richText):_m(o.join(""),i?r:a.html);if(i)return c;var h=pm(t.header,"ordinal",e.useUTC),d=kE(n,e.renderMode).nameStyle;return e.renderMode==="richText"?FE(e,h,d)+a.richText+c:_m('<div style="'+d+";"+RE+';">'+tn(h)+"</div>"+c,r)}function Xq(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=ye(b)?b:[b],Ne(b,function(x,w){return pm(x,ye(d)?d[w]:d,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":pm(l,"ordinal",u),d=t.valueType,v=o?[]:f(t.value),p=!s||!a,m=!s&&a,g=kE(n,i),y=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":c)+(a?"":FE(e,h,y))+(o?"":eK(e,v,p,m,_)):_m((s?"":c)+(a?"":Qq(h,!s,y))+(o?"":Jq(v,p,m,_)),r)}}function WS(e,t,r,n,i,a){if(e){var o=NE(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Zq(e){return{html:jq[e],richText:qq[e]}}function _m(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+RE+';">'+e+r+"</div>"}function Qq(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+tn(e)+"</span>"}function Jq(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ye(e)?e:[e],'<span style="'+a+";"+n+'">'+Ne(e,function(o){return tn(o)}).join("&nbsp;&nbsp;")+"</span>"}function FE(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function eK(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(ye(t)?t.join("  "):t,a)}function tK(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return ku(n)}function $E(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var up=function(){function e(){this.richTextStyles={},this._nextStyleNameId=K2()}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=Vj({color:r,type:t,renderMode:n,markerId:i});return Ee(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ye(r)?R(r,function(a){return ue(n,a)}):ue(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function rK(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=ye(s),u=tK(t,r),f,c,h,d;if(o>1||l&&!o){var v=nK(s,t,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);d=f=Is(i,r,a[0]),c=p.type}else d=f=l?s[0]:s;var m=h0(t),g=m&&t.name||"",y=i.getName(r),_=n?g:y;return Fu("section",{header:g,noHeader:n||!m,sortParam:d,blocks:[Fu("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Gn(_),value:f,valueType:c})].concat(h||[])})}function nK(e,t,r,n,i){var a=t.getData(),o=ca(e,function(c,h,d){var v=a.getDimensionInfo(d);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(c){f(Is(a,r,c),c)}):R(e,f);function f(c,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(Fu("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:c,valueType:d.type})):(s.push(c),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Fi=Et();function tc(e,t){return e.getName(t)||e.getId(t)}var iK="__universalTransitionEnabled",Bh=function(e){ge(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=nu({count:oK,reset:sK}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Fi(this).sourceManager=new Yq(this);a.prepareSource();var o=this.getInitialData(r,i);US(o,this),this.dataTask.context.data=o,Fi(this).dataBeforeProcessed=o,GS(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Nu(this),a=i?Rh(r):{},o=this.subType;Mt.hasClass(o)&&(o+="Series"),st(r,n.getTheme().get(this.subType)),st(r,this.getDefaultOption()),em(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=Nu(this);i&&Ds(this.option,r,i);var a=Fi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);US(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Fi(this).dataBeforeProcessed=o,GS(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Gr(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&em(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=bm(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return Fi(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=bm(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Fi(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return je(r)},t.prototype.getSourceManager=function(){return Fi(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Fi(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 rK({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(He.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=B0.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=tc(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=Ct(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[tc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[iK])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"){Re(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=tc(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var d=n[l-1],h=tc(r,d);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(d),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 Mt.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}(Mt);ni(Bh,Dq);ni(Bh,B0);tP(Bh,Mt);function GS(e){var t=e.name;h0(e)||(e.name=aK(e)||t)}function aK(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function oK(e){return e.model.getRawData().count()}function sK(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),lK}function lK(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function US(e,t){R(vU(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ot(uK,t))})}function uK(e,t){var r=bm(e);return r&&r.setOutputEnd((t||this).count()),t}function bm(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 So=Bh;var G0=function(){function e(){this.group=new Ur,this.uid=Ah("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}();p0(G0);Sh(G0);const Mi=G0;function HE(){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 zE=Et(),fK=HE(),U0=function(){function e(){this.group=new Ur,this.uid=Ah("viewChart"),this.renderTask=nu({plan:cK,reset:dK}),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&&jS(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&jS(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){P0(this.group,t)},e.markUpdateMethod=function(t,r){zE(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function YS(e,t,r){e&&fm(e)&&(t==="emphasis"?am:om)(e,r)}function jS(e,t,r){var n=sf(e,t),i=t&&t.highlightKey!=null?_Y(t.highlightKey):null;n!=null?R(pr(n),function(a){YS(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){YS(a,r,i)})}p0(U0);Sh(U0);function cK(e){return fK(e.model)}function dK(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&zE(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),hK[l]}var hK={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 ho=U0;var kd="\0__throttleOriginMethod",qS="\0__throttleRate",KS="\0__throttleType";function Y0(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];n=new Date().getTime(),l=this,u=d;var p=f||t,m=f||r;f=null,s=n-(m?i:a)-p,clearTimeout(o),m?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){f=d},h}function VE(e,t,r,n){var i=e[t];if(i){var a=i[kd]||i,o=i[KS],s=i[qS];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Y0(a,r,n==="debounce"),i[kd]=a,i[KS]=n,i[qS]=r}return i}}function wm(e,t){var r=e[t];r&&r[kd]&&(r.clear&&r.clear(),e[t]=r[kd])}var XS=Et(),ZS={itemStyle:Du(tE,!0),lineStyle:Du(eE,!0)},vK={lineStyle:"stroke",itemStyle:"fill"};function WE(e,t){var r=e.visualStyleMapper||ZS[t];return r||(console.warn("Unknown style type '"+t+"'."),ZS.itemStyle)}function GE(e,t){var r=e.visualDrawType||vK[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var pK={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=GE(e,n),u=o[l],f=Ye(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ye(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Ye(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var p=e.getDataParams(v),m=ue({},o);m[l]=f(p),d.setItemVisual(v,"style",m)}}}},dl=new sr,gK={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]){dl.option=l[n];var u=i(dl),f=o.ensureUniqueItemVisual(s,"style");ue(f,u),dl.option.decal&&(o.setItemVisual(s,"decal",dl.option.decal),dl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},mK={performRawSeries:!0,overallReset:function(e){var t=je();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)),XS(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=XS(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=GE(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},rc=Math.PI;function yK(e,t){t=t||{},ht(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 Ur,n=new Gt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new mr({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 Gt({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 S0({shape:{startAngle:-rc/2,endAngle:-rc/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:rc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:rc*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var UE=function(){function e(t,r,n,i){this._stageTaskMap=je(),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=je();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Ci(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;R(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(m){s(i,m)&&(m.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);v.each(function(m){m.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(m,g){s(i,m)&&m.dirty();var y=o.getPerformArgs(m,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.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=je(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,d=s.set(h,o&&o.get(h)||nu({plan:xK,reset:CK,count:MK}));d.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,d)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||nu({reset:_K});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=je(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,d="";Ci(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,R(n.getSeries(),v));function v(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(h=!0,nu({reset:bK,onDirty:SK})));g.context={model:p,overallProgress:c},g.agent=o,g.__block=c,a._pipe(p,g)}h&&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 Ye(t)&&(t={overallReset:t,seriesType:AK(t)}),t.uid=Ah("stageHandler"),r&&(t.visualType=r),t},e}();function _K(e){e.overallReset(e.ecModel,e.api,e.payload)}function bK(e){return e.overallProgress&&wK}function wK(){this.agent.dirty(),this.getDownstream().dirty()}function SK(){this.agent&&this.agent.dirty()}function xK(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function CK(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=pr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Ne(t,function(r,n){return YE(n)}):TK}var TK=YE(0);function YE(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 MK(e){return e.data.count()}function AK(e){Nd=null;try{e($u,jE)}catch{}return Nd}var $u={},jE={},Nd;qE($u,F0);qE(jE,SE);$u.eachSeriesByType=$u.eachRawSeriesByType=function(e){Nd=e};$u.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Nd=e.subType)};function qE(e,t){for(var r in t.prototype)e[r]=Er}var QS=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const PK={color:QS,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],QS]};var fr="#B9B8CE",JS="#100C2A",nc=function(){return{axisLine:{lineStyle:{color:fr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ex=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],KE={darkMode:!0,color:ex,backgroundColor:JS,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:fr}},textStyle:{color:fr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:fr}},dataZoom:{borderColor:"#71708A",textStyle:{color:fr},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:fr}},timeline:{lineStyle:{color:fr},label:{color:fr},controlStyle:{color:fr,borderColor:fr}},calendar:{itemStyle:{color:JS},dayLabel:{color:fr},monthLabel:{color:fr},yearLabel:{color:fr}},timeAxis:nc(),logAxis:nc(),valueAxis:nc(),categoryAxis:nc(),line:{symbol:"circle"},graph:{color:ex},gauge:{title:{color:fr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:fr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};KE.categoryAxis.splitLine.show=!1;const EK=KE;var LK=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Ee(t)){var a=Un(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};R(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,h,d,v){return c[d]==null||h[v||d]===c[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Sm=["symbol","symbolSize","symbolRotate","symbolOffset"],tx=Sm.concat(["symbolKeepAspect"]),DK={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<Sm.length;o++){var s=Sm[o],l=e.get(s);Ye(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(ue({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Ct(i);function f(c,h){for(var d=e.getRawValue(h),v=e.getDataParams(h),p=0;p<u.length;p++){var m=u[p];c.setItemVisual(h,m,i[m](d,v))}}return{dataEach:a?f:null}}},IK={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<tx.length;s++){var l=tx[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function OK(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 RK(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 kK(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}R([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=ue({},i),o.dispatchAction(ue(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Go(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,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=sf(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:ye(h)?c.getName(h[0]):c.getName(h),selected:Ee(l)?l:ue({},l)})}})}function NK(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Go("map","selectchanged",t,i,n),Go("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Go("map","selected",t,i,n),Go("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Go("map","unselected",t,i,n),Go("pie","unselected",t,i,n))})}function Ll(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var BK=Math.round(Math.random()*9),FK=typeof Object.defineProperty=="function",$K=function(){function e(){this._id="__ec_inner_"+BK++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return FK?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}(),HK=vt.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()}}),zK=vt.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()}}),VK=vt.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),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),d=o*.6,v=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*d,l+s+h*d,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-f+c*d,l+s+h*d,r-f,l+s),e.closePath()}}),WK=vt.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()}}),GK={line:wo,rect:Gt,roundRect:Gt,square:Gt,circle:w0,diamond:zK,pin:VK,arrow:WK,triangle:HK},UK={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}},xm={};R(GK,function(e,t){xm[t]=new e});var YK=vt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Md(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=xm[n];i||(n="rect",i=xm[n]),UK[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function jK(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 j0(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=jP(e.slice(8),new nt(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=C0(e.slice(7),{},new nt(t,r,n,i),o?"center":"cover"):l=new YK({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=jK,a&&l.setColor(a),l}function qK(e,t){if(e!=null)return ye(e)||(e=[e,e]),[yt(e[0],t[0])||0,yt(Ze(e[1],e[0]),t[1])||0]}function ro(e){return isFinite(e)}function KK(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=ro(n)?n:0,i=ro(i)?i:1,a=ro(a)?a:0,o=ro(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function XK(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=ro(o)?o:.5,s=ro(s)?s:.5,l=l>=0&&ro(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"?XK(e,t,r):KK(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function ZK(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 ic(e){return parseInt(e,10)}function ac(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]||ic(s[n])||ic(e.style[n]))-(ic(s[a])||0)-(ic(s[o])||0)|0}function QK(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Tt(e)?[e]:ye(e)?e:null}function XE(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&QK(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Ne(r,function(a){return a/i}),n/=i)}return[r,n]}var JK=new bo(!0);function Bd(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function rx(e){return typeof e=="string"&&e!=="none"}function Fd(e){var t=e.fill;return t!=null&&t!=="none"}function nx(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 ix(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 Tm(e,t,r){var n=rP(t.image,t.__image,r);if(xh(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)*pU),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function eX(e,t,r,n){var i,a=Bd(r),o=Fd(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||JK,c=t.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,p=a&&!!d.colorStops,m=o&&!!h.image,g=a&&!!d.image,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(v||p)&&(w=t.getBoundingRect()),v&&(y=c?Cm(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=c?Cm(e,d,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),m&&(b=c||!t.__canvasFillPattern?Tm(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),g&&(x=c||!t.__canvasStrokePattern?Tm(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),v?e.fillStyle=y:m&&(b?e.fillStyle=b:o=!1),p?e.strokeStyle=_:g&&(x?e.strokeStyle=x:a=!1)}var S=t.getGlobalScale();f.setScale(S[0],S[1],t.segmentIgnoreThreshold);var C,M;e.setLineDash&&r.lineDash&&(i=XE(t),C=i[0],M=i[1]);var A=!0;(u||c&Xo)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=M),n||(r.strokeFirst?(a&&ix(e,r),o&&nx(e,r)):(o&&nx(e,r),a&&ix(e,r))),C&&e.setLineDash([])}function tX(e,t,r){var n=t.__image=rP(r.image,t.__image,t,t.onload);if(!(!n||!xh(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;e.drawImage(n,u,f,c,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function rX(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||_o,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=XE(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Bd(r)&&e.strokeText(i,r.x,r.y),Fd(r)&&e.fillText(i,r.x,r.y)):(Fd(r)&&e.fillText(i,r.x,r.y),Bd(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var ax=["shadowBlur","shadowOffsetX","shadowOffsetY"],ox=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ZE(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Tr(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?fo.opacity:o}(n||t.blend!==r.blend)&&(a||(Tr(e,i),a=!0),e.globalCompositeOperation=t.blend||fo.blend);for(var s=0;s<ax.length;s++){var l=ax[s];(n||t[l]!==r[l])&&(a||(Tr(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(Tr(e,i),a=!0),e.shadowColor=t.shadowColor||fo.shadowColor),a}function sx(e,t,r,n,i){var a=Hu(t,i.inHover),o=n?null:r&&Hu(r,i.inHover)||{};if(a===o)return!1;var s=ZE(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Tr(e,i),s=!0),rx(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Tr(e,i),s=!0),rx(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Tr(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||(Tr(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<ox.length;f++){var c=ox[f],h=c[0];(n||a[h]!==o[h])&&(s||(Tr(e,i),s=!0),e[h]=a[h]||c[1])}return s}function nX(e,t,r,n,i){return ZE(e,Hu(t,i.inHover),r&&Hu(r,i.inHover),n,i)}function QE(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 iX(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),QE(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function aX(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 lx=1,ux=2,fx=3,cx=4;function oX(e){var t=Fd(e),r=Bd(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 Tr(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Hu(e,t){return t&&e.__hoverStyle||e.style}function JE(e,t){no(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function no(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Br,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||ZK(a,o))&&(o&&o.length&&(Tr(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Tr(e,r),e.save(),iX(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 f=t instanceof vt&&t.autoBatch&&oX(t.style);s||aX(i,u.transform)?(Tr(e,r),QE(e,t)):f||Tr(e,r);var c=Hu(t,r.inHover);t instanceof vt?(r.lastDrawType!==lx&&(l=!0,r.lastDrawType=lx),sx(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),eX(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof im?(r.lastDrawType!==fx&&(l=!0,r.lastDrawType=fx),sx(e,t,u,l,r),rX(e,t,c)):t instanceof Gs?(r.lastDrawType!==ux&&(l=!0,r.lastDrawType=ux),nX(e,t,u,l,r),tX(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==cx&&(l=!0,r.lastDrawType=cx),sX(e,t,r)),f&&n&&Tr(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function sX(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(),no(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),no(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var fp=new $K,dx=new af(100),hx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Mm(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&fp.delete(e);var a=fp.get(e);if(a)return a;var o=ht(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,fp.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<hx.length;++h){var d=o[hx[h]];if(d!=null&&!ye(d)&&!Ee(d)&&!Tt(d)&&typeof d!="boolean"){c=!1;break}f.push(d)}var v;if(c){v=f.join(",")+(i?"-svg":"");var p=dx.get(v);p&&(i?u.svgElement=p:u.image=p)}var m=tL(o.dashArrayX),g=lX(o.dashArrayY),y=eL(o.symbol),_=uX(m),b=rL(g),x=!i&&Vs.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")),A(),c&&dx.put(v,x||w),u.image=x,u.svgElement=w,u.svgWidth=S.width,u.svgHeight=S.height;function M(){for(var P=1,E=0,L=_.length;E<L;++E)P=Aw(P,_[E]);for(var O=1,E=0,L=y.length;E<L;++E)O=Aw(O,y[E].length);P*=O;var N=b*_.length*y.length;return{width:Math.max(1,Math.min(P,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function A(){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 P=0,E=0;E<g.length;++E)P+=g[E];if(P<=0)return;for(var L=-b,O=0,N=0,H=0;L<S.height;){if(O%2===0){for(var V=N/2%y.length,U=0,F=0,z=0;U<S.width*2;){for(var te=0,E=0;E<m[H].length;++E)te+=m[H][E];if(te<=0)break;if(F%2===0){var J=(1-o.symbolSize)*.5,me=U+m[H][F]*J,Se=L+g[O]*J,$e=m[H][F]*o.symbolSize,Ie=g[O]*o.symbolSize,B=z/2%y[V].length;Y(me,Se,$e,Ie,y[V][B])}U+=m[H][F],++z,++F,F===m[H].length&&(F=0)}++H,H===m.length&&(H=0)}L+=g[O],++N,++O,O===g.length&&(O=0)}function Y(K,Q,oe,pe,D){var I=i?1:r,W=j0(D,K*I,Q*I,oe*I,pe*I,o.color,o.symbolKeepAspect);if(i){var X=n.painter.renderOneToVNode(W);X&&w.children.push(X)}else JE(C,W)}}}}function eL(e){if(!e||e.length===0)return[["rect"]];if(Ee(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Ee(e[r])){t=!1;break}if(t)return eL([e]);for(var n=[],r=0;r<e.length;++r)Ee(e[r])?n.push([e[r]]):n.push(e[r]);return n}function tL(e){if(!e||e.length===0)return[[0,0]];if(Tt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Tt(e[n])){r=!1;break}if(r)return tL([e]);for(var i=[],n=0;n<e.length;++n)if(Tt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Ne(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function lX(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Tt(e)){var t=Math.ceil(e);return[t,t]}var r=Ne(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function uX(e){return Ne(e,function(t){return rL(t)})}function rL(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function fX(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=Mm(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Mm(i,t)}}})}var cX=new ii;const _n=cX;var nL={};function dX(e,t){nL[e]=t}function hX(e){return nL[e]}var vX=1,pX=800,gX=900,mX=1e3,yX=2e3,_X=5e3,iL=1e3,bX=1100,q0=2e3,aL=3e3,wX=4e3,Fh=4500,SX=4600,xX=5e3,CX=6e3,oL=7e3,TX={PROCESSOR:{FILTER:mX,SERIES_FILTER:pX,STATISTIC:_X},VISUAL:{LAYOUT:iL,PROGRESSIVE_LAYOUT:bX,GLOBAL:q0,CHART:aL,POST_CHART_LAYOUT:SX,COMPONENT:wX,BRUSH:xX,CHART_ITEM:Fh,ARIA:CX,DECAL:oL}},nr="__flagInMainProcess",br="__pendingUpdate",cp="__needsUpdateStatus",vx=/^[a-zA-Z0-9_]+$/,dp="__connectUpdateStatus",px=0,MX=1,AX=2;function sL(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return uL(this,e,t)}}function lL(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return uL(this,e,t)}}function uL(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),ii.prototype[t].apply(e,r)}var fL=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ii),cL=fL.prototype;cL.on=lL("on");cL.off=lL("off");var Uo,hp,oc,$i,vp,pp,gp,hl,vl,gx,mx,mp,yx,sc,_x,dL,qr,bx,hL=function(e){ge(t,e);function t(r,n,i){var a=e.call(this,new LK)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Ee(n)&&(n=vL[n]),a._dom=r;var o="canvas",s="auto",l=!1,u=a._zr=Tw(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Ze(i.useDirtyRect,l),useCoarsePointer:Ze(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Y0(xt(u.flush,u),17),n=tt(n),n&&CE(n,!0),a._theme=n,a._locale=kj(i.locale||nE),a._coordSysMgr=new $0;var f=a._api=_x(a);function c(h,d){return h.__prio-d.__prio}return $c(Hd,c),$c(Am,c),a._scheduler=new UE(a,f,Am,Hd),a._messageCenter=new fL,a._initEvents(),a.resize=xt(a.resize,a),u.animation.on("frame",a._onframe,a),gx(u,a),mx(u,a),Ng(a),a}return t.prototype._onframe=function(){if(!this._disposed){bx(this);var r=this._scheduler;if(this[br]){var n=this[br].silent;this[nr]=!0;try{Uo(this),$i.update.call(this,null,this[br].updateParams)}catch(l){throw this[nr]=!1,this[br]=null,l}this._zr.flush(),this[nr]=!1,this[br]=null,hl.call(this,n),vl.call(this,n)}else if(r.unfinished){var i=vX,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),pp(this,a),r.performVisualTasks(a),sc(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[nr]){if(this._disposed){this.id;return}var a,o,s;if(Re(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[nr]=!0,!this._model||n){var l=new vq(this._api),u=this._theme,f=this._model=new F0;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Pm);var c={seriesTransition:s,optionChanged:!0};if(i)this[br]={silent:a,updateParams:c},this[nr]=!1,this.getZr().wakeUp();else{try{Uo(this),$i.update.call(this,null,c)}catch(h){throw this[br]=null,this[nr]=!1,h}this._ssr||this._zr.flush(),this[br]=null,this[nr]=!1,hl.call(this,a),vl.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||He.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(He.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return R(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;R(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return R(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Sx[i]){var l=s,u=s,f=-s,c=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();R(au,function(_,b){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(tt(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),h.push({dom:x,left:w.left,top:w.top})}}),l*=d,u*=d,f*=d,c*=d;var v=f-l,p=c-u,m=Vs.createCanvas(),g=Tw(m,{renderer:n?"svg":"canvas"});if(g.resize({width:v,height:p}),n){var y="";return R(h,function(_){var b=_.left-l,x=_.top-u;y+='<g transform="translate('+b+","+x+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Gt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),R(h,function(_){var b=new Gs({style:{x:_.left*d-l,y:_.top*d-u,image:_.dom}});g.add(b)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return vp(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return vp(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Bv(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Bv(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?OK(s,l,n):RK(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;R(PX,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ll(s,function(v){var p=dt(v);if(p&&p.dataIndex!=null){var m=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=ue({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),R(iu,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),R(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),NK(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&&J2(this.getDom(),X0,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete au[n.id]},t.prototype.resize=function(r){if(!this[nr]){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[br]&&(a==null&&(a=this[br].silent),i=!0,this[br]=null),this[nr]=!0;try{i&&Uo(this),$i.update.call(this,{type:"resize",animation:ue({duration:0},r&&r.animation)})}catch(o){throw this[nr]=!1,o}this[nr]=!1,hl.call(this,a),vl.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Re(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Em[r]){var i=Em[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=ue({},r);return n.type=iu[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Re(n)||(n={silent:!!n}),!!$d[r.type]&&this._model){if(this[nr]){this._pendingActions.push(r);return}var i=n.silent;gp.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&He.browser.weChat&&this._throttledZrFlush(),hl.call(this,i),vl.call(this,i)}},t.prototype.updateLabelLayout=function(){_n.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(){Uo=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),hp(c,!0),hp(c,!1),h.plan()},hp=function(c,h){for(var d=c._model,v=c._scheduler,p=h?c._componentsViews:c._chartsViews,m=h?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?d.eachComponent(function(w,S){w!=="series"&&b(S)}):d.eachSeries(b);function b(w){var S=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,M=!S&&m[C];if(!M){var A=Un(w.type),P=h?Mi.getClass(A.main,A.sub):ho.getClass(A.sub);M=new P,M.init(d,y),m[C]=M,p.push(M),g.add(M.group)}w.__viewId=M.__id=C,M.__alive=!0,M.__model=w,M.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!h&&v.prepareView(M,w,d,y)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!h&&x.renderTask.dispose(),g.remove(x.group),x.dispose(d,y),p.splice(_,1),m[x.__id]===x&&delete m[x.__id],x.__id=x.group.__ecComponentInfo=null)}},oc=function(c,h,d,v,p){var m=c._model;if(m.setUpdatePayload(d),!v){R([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g={};g[v+"Id"]=d[v+"Id"],g[v+"Index"]=d[v+"Index"],g[v+"Name"]=d[v+"Name"];var y={mainType:v,query:g};p&&(y.subType=p);var _=d.excludeSeriesId,b;_!=null&&(b=je(),R(pr(_),function(w){var S=qn(w,null);S!=null&&b.set(S,!0)})),m&&m.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;if(!S)if(tS(d))if(w instanceof So)d.type===co&&!d.notBlur&&!w.get(["emphasis","disabled"])&&cY(w,d,c._api);else{var C=b0(w.mainType,w.componentIndex,d.name,c._api),M=C.focusSelf,A=C.dispatchers;d.type===co&&M&&!d.notBlur&&lm(w.mainType,w.componentIndex,c._api),A&&R(A,function(P){d.type===co?am(P):om(P)})}else cm(d)&&w instanceof So&&(vY(w,d,c._api),Jw(w),qr(c))},c),m&&m.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;S||x(c[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function x(w){w&&w.__alive&&w[h]&&w[h](w.__model,m,c._api,d)}},$i={prepareAndUpdate:function(c){Uo(this),$i.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var d=this._model,v=this._api,p=this._zr,m=this._coordSysMgr,g=this._scheduler;if(d){d.setUpdatePayload(c),g.restoreData(d,c),g.performSeriesTasks(d),m.create(d,v),g.performDataProcessorTasks(d,c),pp(this,d),m.update(d,v),r(d),g.performVisualTasks(d,c),mp(this,d,v,c,h);var y=d.get("backgroundColor")||"transparent",_=d.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),_n.trigger("afterupdate",d,v)}},updateTransform:function(c){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(c);var p=[];d.eachComponent(function(g,y){if(g!=="series"){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,d,v,c);b&&b.update&&p.push(_)}else p.push(_)}});var m=je();d.eachSeries(function(g){var y=h._chartsMap[g.__viewId];if(y.updateTransform){var _=y.updateTransform(g,d,v,c);_&&_.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0,dirtyMap:m}),sc(this,d,v,c,{},m),_n.trigger("afterupdate",d,v)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),ho.markUpdateMethod(c,"updateView"),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),mp(this,h,this._api,c,{}),_n.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,d=this._model;d&&(d.setUpdatePayload(c),d.eachSeries(function(v){v.getData().clearAllVisual()}),ho.markUpdateMethod(c,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,c,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,p){if(v!=="series"){var m=h.getViewOfComponentModel(p);m&&m.__alive&&m.updateVisual(p,d,h._api,c)}}),d.eachSeries(function(v){var p=h._chartsMap[v.__viewId];p.updateVisual(v,d,h._api,c)}),_n.trigger("afterupdate",d,this._api))},updateLayout:function(c){$i.update.call(this,c)}},vp=function(c,h,d,v){if(c._disposed){c.id;return}for(var p=c._model,m=c._coordSysMgr.getCoordinateSystems(),g,y=Bv(p,d),_=0;_<m.length;_++){var b=m[_];if(b[h]&&(g=b[h](p,y,v))!=null)return g}},pp=function(c,h){var d=c._chartsMap,v=c._scheduler;h.eachSeries(function(p){v.updateStreamModes(p,d[p.__viewId])})},gp=function(c,h){var d=this,v=this.getModel(),p=c.type,m=c.escapeConnect,g=$d[p],y=g.actionInfo,_=(y.update||"update").split(":"),b=_.pop(),x=_[0]!=null&&Un(_[0]);this[nr]=!0;var w=[c],S=!1;c.batch&&(S=!0,w=Ne(c.batch,function(O){return O=ht(ue({},O),c),O.batch=null,O}));var C=[],M,A=cm(c),P=tS(c);if(P&&xP(this._api),R(w,function(O){if(M=g.action(O,d._model,d._api),M=M||ue({},O),M.type=y.event||M.type,C.push(M),P){var N=v0(c),H=N.queryOptionMap,V=N.mainTypeSpecified,U=V?H.keys()[0]:"series";oc(d,b,O,U),qr(d)}else A?(oc(d,b,O,"series"),qr(d)):x&&oc(d,b,O,x.main,x.sub)}),b!=="none"&&!P&&!A&&!x)try{this[br]?(Uo(this),$i.update.call(this,c),this[br]=null):$i[b].call(this,c)}catch(O){throw this[nr]=!1,O}if(S?M={type:y.event||p,escapeConnect:m,batch:C}:M=C[0],this[nr]=!1,!h){var E=this._messageCenter;if(E.trigger(M.type,M),A){var L={type:"selectchanged",escapeConnect:m,selected:pY(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};E.trigger(L.type,L)}}},hl=function(c){for(var h=this._pendingActions;h.length;){var d=h.shift();gp.call(this,d,c)}},vl=function(c){!c&&this.trigger("updated")},gx=function(c,h){c.on("rendered",function(d){h.trigger("rendered",d),c.animation.isFinished()&&!h[br]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},mx=function(c,h){c.on("mouseover",function(d){var v=d.target,p=Ll(v,fm);p&&(dY(p,d,h._api),qr(h))}).on("mouseout",function(d){var v=d.target,p=Ll(v,fm);p&&(hY(p,d,h._api),qr(h))}).on("click",function(d){var v=d.target,p=Ll(v,function(y){return dt(y).dataIndex!=null},!0);if(p){var m=p.selected?"unselect":"select",g=dt(p);h._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],d=[],v=!1;if(c.eachComponent(function(y,_){var b=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();v=v||!!w,(y==="series"?d:h).push({zlevel:b,z:x,idx:_.componentIndex,type:y,key:w})}),v){var p=h.concat(d),m,g;$c(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),R(p,function(y){var _=c.getComponent(y.type,y.idx),b=y.zlevel,x=y.key;m!=null&&(b=Math.max(m,b)),x?(b===m&&x!==g&&b++,g=x):g&&(b===m&&b++,g=""),m=b,_.setZLevel(b)})}}mp=function(c,h,d,v,p){n(h),yx(c,h,d,v,p),R(c._chartsViews,function(m){m.__alive=!1}),sc(c,h,d,v,p),R(c._chartsViews,function(m){m.__alive||m.remove(h,d)})},yx=function(c,h,d,v,p,m){R(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,h,d,v),s(y,g),f(y,g)})},sc=function(c,h,d,v,p,m){var g=c._scheduler;p=ue(p||{},{updatedSeries:h.getSeries()}),_n.trigger("series:beforeupdate",h,d,p);var y=!1;h.eachSeries(function(_){var b=c._chartsMap[_.__viewId];b.__alive=!0;var x=b.renderTask;g.updatePayload(x,v),u(_,b),m&&m.get(_.uid)&&x.dirty(),x.perform(g.getPerformArgs(x))&&(y=!0),b.group.silent=!!_.get("silent"),o(_,b),Jw(_)}),g.unfinished=y||g.unfinished,_n.trigger("series:layoutlabels",h,d,p),_n.trigger("series:transition",h,d,p),h.eachSeries(function(_){var b=c._chartsMap[_.__viewId];s(_,b),f(_,b)}),a(c,h),_n.trigger("series:afterupdate",h,d,p)},qr=function(c){c[cp]=!0,c.getZr().wakeUp()},bx=function(c){c[cp]&&(c.getZr().storage.traverse(function(h){fs(h)||i(h)}),c[cp]=!1)};function i(c){for(var h=[],d=c.currentStates,v=0;v<d.length;v++){var p=d[v];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===y0&&c.states.emphasis?h.push("emphasis"):c.hoverState===m0&&c.states.blur&&h.push("blur"),c.useStates(h)}function a(c,h){var d=c._zr,v=d.storage,p=0;v.traverse(function(m){m.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!He.node&&!He.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=c._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var d=c.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(c,h){if(!c.preventAutoZ){var d=c.get("z")||0,v=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,d,v,-1/0),!0})}}function l(c,h,d,v){var p=c.getTextContent(),m=c.getTextGuideLine(),g=c.isGroup;if(g)for(var y=c.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],h,d,v),v);else c.z=h,c.zlevel=d,v=Math.max(c.z2,v);if(p&&(p.z=h,p.zlevel=d,isFinite(v)&&(p.z2=v+2)),m){var b=c.textGuideLineConfig;m.z=h,m.zlevel=d,isFinite(v)&&(m.z2=v+(b&&b.showAbove?1:-1))}return v}function u(c,h){h.eachRendered(function(d){if(!fs(d)){var v=d.getTextContent(),p=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function f(c,h){var d=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),p=d.get("duration"),m=p>0?{duration:p,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(fs(g))return;if(g instanceof vt&&bY(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),b=g.getTextGuideLine();_&&(_.stateTransition=m),b&&(b.stateTransition=m)}g.__dirty&&i(g)}})}_x=function(c){return new(function(h){ge(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},d.prototype.enterEmphasis=function(v,p){am(v,p),qr(c)},d.prototype.leaveEmphasis=function(v,p){om(v,p),qr(c)},d.prototype.enterBlur=function(v){fY(v),qr(c)},d.prototype.leaveBlur=function(v){_P(v),qr(c)},d.prototype.enterSelect=function(v){bP(v),qr(c)},d.prototype.leaveSelect=function(v){wP(v),qr(c)},d.prototype.getModel=function(){return c.getModel()},d.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},d}(SE))(c)},dL=function(c){function h(d,v){for(var p=0;p<d.length;p++){var m=d[p];m[dp]=v}}R(iu,function(d,v){c._messageCenter.on(v,function(p){if(Sx[c.group]&&c[dp]!==px){if(p&&p.escapeConnect)return;var m=c.makeActionFromEvent(p),g=[];R(au,function(y){y!==c&&y.group===c.group&&g.push(y)}),h(g,px),R(g,function(y){y[dp]!==MX&&y.dispatchAction(m)}),h(g,AX)}})})}}(),t}(ii),K0=hL.prototype;K0.on=sL("on");K0.off=sL("off");K0.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 PX=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],$d={},iu={},Am=[],Pm=[],Hd=[],vL={},Em={},au={},Sx={},EX=+new Date-0,X0="_echarts_instance_";function Z0(e,t,r){var n=!(r&&r.ssr);if(n){var i=LX(e);if(i)return i}var a=new hL(e,t,r);return a.id="ec_"+EX++,au[a.id]=a,n&&J2(e,X0,a.id),dL(a),_n.trigger("afterinit",a),a}function LX(e){return au[Z9(e,X0)]}function pL(e,t){vL[e]=t}function gL(e){ot(Pm,e)<0&&Pm.push(e)}function mL(e,t){J0(Am,e,t,yX)}function DX(e){Q0("afterinit",e)}function IX(e){Q0("afterupdate",e)}function Q0(e,t){_n.on(e,t)}function js(e,t,r){Ye(t)&&(r=t,t="");var n=Re(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!iu[t]&&(Ci(vx.test(n)&&vx.test(t)),$d[n]||($d[n]={action:r,actionInfo:e}),iu[t]=n)}function OX(e,t){$0.register(e,t)}function RX(e,t){J0(Hd,e,t,iL,"layout")}function Do(e,t){J0(Hd,e,t,aL,"visual")}var xx=[];function J0(e,t,r,n,i){if((Ye(t)||Re(t))&&(r=t,t=n),!(ot(xx,r)>=0)){xx.push(r);var a=UE.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function yL(e,t){Em[e]=t}function kX(e,t,r){var n=hX("registerMap");n&&n(e,t,r)}var NX=Hq;Do(q0,pK);Do(Fh,gK);Do(Fh,mK);Do(q0,DK);Do(Fh,IK);Do(oL,fX);gL(CE);mL(gX,Sq);yL("default",yK);js({type:co,event:co,update:co},Er);js({type:Uc,event:Uc,update:Uc},Er);js({type:Ql,event:Ql,update:Ql},Er);js({type:Yc,event:Yc,update:Yc},Er);js({type:Jl,event:Jl,update:Jl},Er);pL("light",PK);pL("dark",EK);function pl(e){return e==null?0:e.length||1}function Cx(e){return e}var BX=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Cx,this._newKeyGetter=i||Cx,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=pl(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=pl(u),h=pl(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(u[d]);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=pl(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=pl(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const FX=BX;var $X=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 HX(e,t){var r={},n=r.encode={},i=je(),a=[],o=[],s={};R(e.dimensions,function(h){var d=e.getDimensionInfo(h),v=d.coordDim;if(v){var p=d.coordDimIndex;yp(n,v)[p]=h,d.isExtraCoord||(i.set(v,1),VX(d.type)&&(a[0]=h),yp(s,v)[p]=e.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(h)}mE.each(function(m,g){var y=yp(n,g),_=d.otherDims[g];_!=null&&_!==!1&&(y[_]=d.name)})});var l=[],u={};i.each(function(h,d){var v=n[d];u[d]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Ne(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new $X(s,t),r}function yp(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function zX(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function VX(e){return!(e==="ordinal"||e==="time")}var Xc=function(){function e(t){this.otherDims={},t!=null&&ue(this,t)}return e}(),WX=Et(),GX={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},_L=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=SL(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Ze(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=ME(this.source),n=!xL(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=GX[u]||"f",f&&(i+=f.uid),i+="$"}var d=this.source,v=[d.seriesLayoutBy,d.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 bL(e){return e instanceof _L}function wL(e){for(var t=je(),r=0;r<(e||[]).length;r++){var n=e[r],i=Re(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function SL(e){var t=WX(e);return t.dimNameMap||(t.dimNameMap=wL(e.dimensionsDefine))}function xL(e){return e>30}var gl=Re,Hi=Ne,UX=typeof Int32Array>"u"?Array:Int32Array,YX="e\0\0",Tx=-1,jX=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],qX=["_approximateExtent"],Mx,lc,ml,yl,_p,uc,bp,CL=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;bL(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=Ee(c)?new Xc({name:c}):c instanceof Xc?c:new Xc(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};o.push(d),a[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),i&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=je();R(o,function(m){p.set(a[m].storeDimIndex,m)})}}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(Tt(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 mm&&(a=t),!a){var o=this.dimensions,s=H0(t)||Ir(t)?new AE(t,o.length):t;a=new mm;var l=Hi(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=HX(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&&bp(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!==aa&&!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===hn;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&H9(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=qn(h,null));var d=c.id;o[f]==null&&d!=null&&(o[f]=qn(d,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)bp(this,f);Mx(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){gl(t)?ue(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=ml(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 lc(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 ye(t)?i.getValues(Hi(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)?Tx:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Ye(t)&&(n=r,r=t,t=[]);var i=n||this,a=Hi(yl(t),this._getStoreDimIndex,this);this._store.each(a,i?xt(r,i):r)},e.prototype.filterSelf=function(t,r,n){Ye(t)&&(n=r,r=t,t=[]);var i=n||this,a=Hi(yl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?xt(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Ct(t);return R(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){Ye(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=Hi(yl(t),this._getStoreDimIndex,this),s=uc(this);return s._store=this._store.map(o,a?xt(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Hi(yl(t),this._getStoreDimIndex,this);this._store.modify(o,a?xt(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=uc(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=uc(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 sr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new FX(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return lc(t,n)},function(n){return lc(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||{},gl(t)?ue(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),ye(a)?a=a.slice():gl(a)&&(a=ue({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,gl(r)?ue(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){gl(t)?ue(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?ue(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;eY(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){R(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Hi(this.dimensions,this._getDimInfo,this),this.hostModel)),_p(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Ye(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(n0(arguments)))})},e.internalField=function(){Mx=function(t){var r=t._invertedIndicesMap;R(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new UX(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Tx;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},ml=function(t,r,n){return qn(t._getCategory(r,n),null)},lc=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=ml(t,t._idDimIdx,r)),n==null&&(n=YX+r),n},yl=function(t){return ye(t)||(t=t!=null?[t]:[]),t},uc=function(t){var r=new e(t._schema?t._schema:Hi(t.dimensions,t._getDimInfo,t),t.hostModel);return _p(r,t),r},_p=function(t,r){R(jX.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,R(qX,function(n){t[n]=tt(r[n])}),t._calculationInfo=ue({},r._calculationInfo)},bp=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=ml(t,a,r)),l==null&&o!=null&&(i[r]=l=ml(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),e}();function TL(e,t){H0(e)||(e=z0(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=je(),a=[],o=XX(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xL(o),l=n===e.dimensionsDefine,u=l?SL(e):wL(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=je(f),h=new IE(o),d=0;d<h.length;d++)h[d]=-1;function v(M){var A=h[M];if(A<0){var P=n[M],E=Re(P)?P:{name:P},L=new Xc,O=E.name;O!=null&&u.get(O)!=null&&(L.name=L.displayName=O),E.type!=null&&(L.type=E.type),E.displayName!=null&&(L.displayName=E.displayName);var N=a.length;return h[M]=N,L.storeDimIndex=M,a.push(L),L}return a[A]}if(!s)for(var d=0;d<o;d++)v(d);c.each(function(M,A){var P=pr(M).slice();if(P.length===1&&!Ee(P[0])&&P[0]<0){c.set(A,!1);return}var E=c.set(A,[]);R(P,function(L,O){var N=Ee(L)?u.get(L):L;N!=null&&N<o&&(E[O]=N,m(v(N),A,O))})});var p=0;R(r,function(M){var A,P,E,L;if(Ee(M))A=M,L={};else{L=M,A=L.name;var O=L.ordinalMeta;L.ordinalMeta=null,L=ue({},L),L.ordinalMeta=O,P=L.dimsDef,E=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var N=c.get(A);if(N!==!1){if(N=pr(N),!N.length)for(var H=0;H<(P&&P.length||1);H++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&N.push(p++)}R(N,function(V,U){var F=v(V);if(l&&L.type!=null&&(F.type=L.type),m(ht(F,L),A,U),F.name==null&&P){var z=P[U];!Re(z)&&(z={name:z}),F.name=F.displayName=z.name,F.defaultTooltip=z.defaultTooltip}E&&ht(F.otherDims,E)})}});function m(M,A,P){mE.get(A)!=null?M.otherDims[A]=P:(M.coordDim=A,M.coordDimIndex=P,i.set(A,!0))}var g=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=g?y||1:0;var b=g||"value";function x(M){M.name==null&&(M.name=M.coordDim)}if(s)R(a,function(M){x(M)}),a.sort(function(M,A){return M.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var S=v(w),C=S.coordDim;C==null&&(S.coordDim=ZX(b,i,_),S.coordDimIndex=0,(!g||y<=0)&&(S.isExtraCoord=!0),y--),x(S),S.type==null&&(bE(e,w)===Xt.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return KX(a),new _L({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function KX(e){for(var t=je(),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 XX(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;Re(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function ZX(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 QX=function(){function e(t){this.coordSysDims=[],this.axisMap=je(),this.categoryAxisMap=je(),this.coordSysName=t}return e}();function JX(e){var t=e.get("coordinateSystem"),r=new QX(t),n=eZ[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var eZ={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Tn).models[0],a=e.getReferringComponents("yAxis",Tn).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Yo(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Yo(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Tn).models[0];t.coordSysDims=["single"],r.set("single",i),Yo(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Tn).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Yo(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Yo(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Yo(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Yo(e){return e.get("type")==="category"}function tZ(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;rZ(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,h;if(R(a,function(y,_){Ee(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,v=f.type,p=0;R(a,function(y){y.coordDim===d&&p++});var m={name:c,coordDim:d,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,v),g.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(a.push(m),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function rZ(e){return!bL(e.schema)}function ML(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function nZ(e,t){return ML(e,t)?e.getCalculationInfo("stackResultDimension"):t}function iZ(e,t){var r=e.get("coordinateSystem"),n=$0.get(r),i;return t&&t.coordSysDims&&(i=Ne(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=zX(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function aZ(e,t,r){var n,i;return r&&R(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function AL(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=z0(e)):(i=n.getSource(),a=i.sourceFormat===hn);var o=JX(t),s=iZ(t,o),l=r.useEncodeDefaulter,u=Ye(l)?l:l?Ot(Kj,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=TL(i,f),h=aZ(c.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(c),v=tZ(t,{schema:c,store:d}),p=new CL(c,t);p.setCalculationInfo(v);var m=h!=null&&oZ(i)?function(g,y,_,b){return b===h?_:this.defaultDimValueGetter(g,y,_,b)}:null;return p.hasItemOption=!1,p.initData(a?i:d,null,m),p}function oZ(e){if(e.sourceFormat===hn){var t=sZ(e.data||[]);return!ye(of(t))}}function sZ(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var oi=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}();Sh(oi);var lZ=0,Lm=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++lZ}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Ne(n,uZ);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(!Ee(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=je(this.categories))},e}();function uZ(e){return Re(e)&&e.value!=null?e.value:e+""}function Dm(e){return e.type==="interval"||e.type==="log"}function fZ(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=q2(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=PL(o),l=i.niceTickExtent=[Ft(Math.ceil(e[0]/o)*o,s),Ft(Math.floor(e[1]/o)*o,s)];return cZ(l,e),i}function wp(e){var t=Math.pow(10,d0(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ft(r*t)}function PL(e){return vi(e)+2}function Ax(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function cZ(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Ax(e,0,t),Ax(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function $h(e,t){return e>=t[0]&&e<=t[1]}function Hh(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function zh(e,t){return e*(t[1]-t[0])+t[0]}var EL=function(e){ge(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Lm({})),ye(i)&&(i=new Lm({categories:Ne(i,function(a){return Re(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:Ee(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),$h(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Hh(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(zh(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 f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=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}(oi);oi.registerClass(EL);const LL=EL;var za=Ft,DL=function(e){ge(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 $h(r,this._extent)},t.prototype.normalize=function(r){return Hh(r,this._extent)},t.prototype.scale=function(r){return zh(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=PL(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:za(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=za(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:za(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,h=c/r;u<r-1;){var d=za(l.value+(u+1)*h);d>a[0]&&d<a[1]&&f.push(d),u++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=vi(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=za(r.value,i,!0);return hE(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=fZ(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]=za(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=za(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(oi);oi.registerClass(DL);const df=DL;var IL=typeof Float32Array<"u",dZ=IL?Float32Array:Array;function Sp(e){return ye(e)?IL?new Float32Array(e):e:new dZ(e)}var hZ="__ec_stack_";function e_(e){return e.get("stack")||hZ+e.seriesIndex}function t_(e){return e.dim+e.index}function OL(e,t){var r=[];return t.eachSeriesByType(e,function(n){kL(n)&&r.push(n)}),r}function vZ(e){var t={};R(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,d=c.getDimensionIndex(c.mapDimension(f.dim)),v=c.getStore(),p=0,m=v.count();p<m;++p){var g=v.get(d,p);t[h]?t[h].push(g):t[h]=[g]}});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 RL(e){var t=vZ(e),r=[];return R(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var v=yt(n.get("barWidth"),s),p=yt(n.get("barMaxWidth"),s),m=yt(n.get("barMinWidth")||(NL(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:t_(a),stackId:e_(n)})}),pZ(r)}function pZ(e){var t={};R(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var d=n.barGap;d!=null&&(s.gap=d);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ct(a).length;s=Math.max(35-l*4,15)+"%"}var u=yt(s,o),f=yt(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,d=(c-u)/(h+(h-1)*f);d=Math.max(d,0),R(a,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var b=g.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),g.width=b,c-=b+f*b,h--}else{var b=d;y&&y<b&&(b=Math.min(y,c)),_&&_>b&&(b=_),b!==d&&(g.width=b,c-=b+f*b,h--)}}),d=(c-u)/(h+(h-1)*f),d=Math.max(d,0);var v=0,p;R(a,function(g,y){g.width||(g.width=d),p=g,v+=g.width*(1+f)}),p&&(v-=p.width*f);var m=-v/2;R(a,function(g,y){r[i][y]=r[i][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+f)})}),r}function gZ(e,t,r){if(e&&t){var n=e[t_(t)];return n!=null&&r!=null?n[e_(r)]:n}}function mZ(e,t){var r=OL(e,t),n=RL(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=e_(i),u=n[t_(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function yZ(e){return{seriesType:e,plan:HE(),reset:function(t){if(kL(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=ML(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),d=_Z(i,a),v=NL(t),p=t.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var x=_.count,w=v&&Sp(x*3),S=v&&l&&Sp(x*3),C=v&&Sp(x),M=n.master.getRect(),A=h?M.width:M.height,P,E=b.getStore(),L=0;(P=_.next())!=null;){var O=E.get(c?m:o,P),N=E.get(s,P),H=d,V=void 0;c&&(V=+O-E.get(o,P));var U=void 0,F=void 0,z=void 0,te=void 0;if(h){var J=n.dataToPoint([O,N]);if(c){var me=n.dataToPoint([V,N]);H=me[0]}U=H,F=J[1]+y,z=J[0]-H,te=g,Math.abs(z)<p&&(z=(z<0?-1:1)*p)}else{var J=n.dataToPoint([N,O]);if(c){var me=n.dataToPoint([N,V]);H=me[1]}U=J[0]+y,F=H,z=g,te=J[1]-H,Math.abs(te)<p&&(te=(te<=0?-1:1)*p)}v?(w[L]=U,w[L+1]=F,w[L+2]=h?z:te,S&&(S[L]=h?M.x:U,S[L+1]=h?F:M.y,S[L+2]=A),C[P]=P):b.setItemLayout(P,{x:U,y:F,width:z,height:te}),L+=3}v&&b.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:S,valueAxisHorizontal:h})}}}}}}function kL(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function NL(e){return e.pipelineContext&&e.pipelineContext.large}function _Z(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var bZ=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},BL=function(e){ge(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 Ph(r.value,mS[$j(cs(this._minLevelUnit))]||mS.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Hj(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=AZ(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]-=on,n[1]+=on),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]-on}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=fc.length,l=Math.min(bZ(fc,this._approxInterval,0,s),s-1);this._interval=fc[l][1],this._minLevelUnit=fc[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Tt(r)?r:+Ti(r)},t.prototype.contain=function(r){return $h(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Hh(this.parse(r),this._extent)},t.prototype.scale=function(r){return zh(r,this._extent)},t.type="time",t}(df),fc=[["second",I0],["minute",O0],["hour",tu],["quarter-day",tu*6],["half-day",tu*12],["day",on*1.2],["half-week",on*3.5],["week",on*7],["month",on*31],["quarter",on*95],["half-year",gS/2],["year",gS]];function wZ(e,t,r,n){var i=Ti(t),a=Ti(r),o=function(v){return yS(i,v,n)===yS(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},d=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return d()}}function SZ(e,t){return e/=on,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function xZ(e){var t=30*on;return e/=t,e>6?6:e>3?3:e>2?2:1}function CZ(e){return e/=tu,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Px(e,t){return e/=t?O0:I0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function TZ(e){return q2(e,!0)}function MZ(e,t,r){var n=new Date(e);switch(cs(t)){case"year":case"month":n[sE(r)](0);case"day":n[lE(r)](1);case"hour":n[uE(r)](0);case"minute":n[fE(r)](0);case"second":n[cE(r)](0),n[dE(r)](0)}return n.getTime()}function AZ(e,t,r,n){var i=1e4,a=aE,o=0;function s(A,P,E,L,O,N,H){for(var V=new Date(P),U=P,F=V[L]();U<E&&U<=n[1];)H.push({value:U}),F+=A,V[O](F),U=V.getTime();H.push({value:U,notAdd:!0})}function l(A,P,E){var L=[],O=!P.length;if(!wZ(cs(A),n[0],n[1],r)){O&&(P=[{value:MZ(new Date(n[0]),A,r)},{value:n[1]}]);for(var N=0;N<P.length-1;N++){var H=P[N].value,V=P[N+1].value;if(H!==V){var U=void 0,F=void 0,z=void 0,te=!1;switch(A){case"year":U=Math.max(1,Math.round(t/on/365)),F=R0(r),z=zj(r);break;case"half-year":case"quarter":case"month":U=xZ(t),F=ds(r),z=sE(r);break;case"week":case"half-week":case"day":U=SZ(t),F=Eh(r),z=lE(r),te=!0;break;case"half-day":case"quarter-day":case"hour":U=CZ(t),F=Ru(r),z=uE(r);break;case"minute":U=Px(t,!0),F=Lh(r),z=fE(r);break;case"second":U=Px(t,!1),F=Dh(r),z=cE(r);break;case"millisecond":U=TZ(t),F=Ih(r),z=dE(r);break}s(U,H,V,F,z,te,L),A==="year"&&E.length>1&&N===0&&E.unshift({value:E[0].value-U})}}for(var N=0;N<L.length;N++)E.push(L[N]);return L}}for(var u=[],f=[],c=0,h=0,d=0;d<a.length&&o++<i;++d){var v=cs(a[d]);if(Fj(a[d])){l(a[d],u[u.length-1]||[],f);var p=a[d+1]?cs(a[d+1]):null;if(v!==p){if(f.length){h=c,f.sort(function(A,P){return A.value-P.value});for(var m=[],g=0;g<f.length;++g){var y=f[g].value;(g===0||f[g-1].value!==y)&&(m.push(f[g]),y>=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(m),c>_||e===a[d]))break}f=[]}}}for(var b=jt(Ne(u,function(A){return jt(A,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(A){return A.length>0}),x=[],w=b.length-1,d=0;d<b.length;++d)for(var S=b[d],C=0;C<S.length;++C)x.push({value:S[C].value,level:w-d});x.sort(function(A,P){return A.value-P.value});for(var M=[],d=0;d<x.length;++d)(d===0||x[d].value!==x[d-1].value)&&M.push(x[d]);return M}oi.registerClass(BL);const PZ=BL;var Ex=oi.prototype,ou=df.prototype,EZ=Ft,LZ=Math.floor,DZ=Math.ceil,cc=Math.pow,pn=Math.log,r_=function(e){ge(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new df,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=ou.getTicks.call(this,r);return Ne(o,function(s){var l=s.value,u=Ft(cc(this.base,l));return u=l===i[0]&&this._fixMin?dc(u,a[0]):u,u=l===i[1]&&this._fixMax?dc(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=pn(this.base);r=pn(Math.max(0,r))/i,n=pn(Math.max(0,n))/i,ou.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Ex.getExtent.call(this);n[0]=cc(r,n[0]),n[1]=cc(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=dc(n[0],a[0])),this._fixMax&&(n[1]=dc(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=pn(r[0])/pn(n),r[1]=pn(r[1])/pn(n),Ex.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=B9(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Ft(DZ(n[0]/a)*a),Ft(LZ(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){ou.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=pn(r)/pn(this.base),$h(r,this._extent)},t.prototype.normalize=function(r){return r=pn(r)/pn(this.base),Hh(r,this._extent)},t.prototype.scale=function(r){return r=zh(r,this._extent),cc(this.base,r)},t.type="log",t}(oi),FL=r_.prototype;FL.getMinorTicks=ou.getMinorTicks;FL.getLabel=ou.getLabel;function dc(e,t){return EZ(e,vi(t))}oi.registerClass(r_);const IZ=r_;var OZ=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);Ye(a)?this._modelMinNum=hc(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=hc(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(Ye(o)?this._modelMaxNum=hc(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=hc(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=ye(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[da(l[0],1),da(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,f=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 c=bd(s)||bd(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,d=this._determinedMax;return h!=null&&(s=h,u=!0),d!=null&&(l=d,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[kZ[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=RZ[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),RZ={min:"_determinedMin",max:"_determinedMax"},kZ={min:"_dataMin",max:"_dataMax"};function NZ(e,t,r){var n=e.rawExtentInfo;return n||(n=new OZ(e,t,r),e.rawExtentInfo=n,n)}function hc(e,t){return t==null?null:bd(t)?NaN:e.parse(t)}function $L(e,t){var r=e.type,n=NZ(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=OL("bar",o),l=!1;if(R(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=RL(s),f=BZ(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function BZ(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=gZ(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;R(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,h=f/c-f;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function Lx(e,t){var r=t,n=$L(e,r),i=n.extent,a=r.get("splitNumber");e instanceof IZ&&(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 FZ(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new LL({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new PZ({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(oi.getClass(t)||df)}}function $Z(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function hf(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):Ee(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Ye(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(n_(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function n_(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function HZ(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof LL?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=hf(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var c=n?n[f]:{value:a[0]+f},h=s(c,f),d=o.getTextRect(h),v=zZ(d,o.get("rotate")||0);l?l.union(v):l=v}return l}}function zZ(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 nt(e.x,e.y,a,o);return s}function i_(e){var t=e.get("interval");return t??"auto"}function HL(e){return e.type==="category"&&i_(e.getLabelModel())===0}function VZ(e,t){var r={};return R(e.mapDimensionsAll(t),function(n){r[nZ(e,n)]=!0}),Ct(r)}var WZ=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),Dx=[],GZ={registerPreprocessor:gL,registerProcessor:mL,registerPostInit:DX,registerPostUpdate:IX,registerUpdateLifecycle:Q0,registerAction:js,registerCoordinateSystem:OX,registerLayout:RX,registerVisual:Do,registerTransform:NX,registerLoading:yL,registerMap:kX,registerImpl:dX,PRIORITY:TX,ComponentModel:Mt,ComponentView:Mi,SeriesModel:So,ChartView:ho,registerComponentModel:function(e){Mt.registerClass(e)},registerComponentView:function(e){Mi.registerClass(e)},registerSeriesModel:function(e){So.registerClass(e)},registerChartView:function(e){ho.registerClass(e)},registerSubTypeDefaulter:function(e,t){Mt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){L9(e,t)}};function va(e){if(ye(e)){R(e,function(t){va(t)});return}ot(Dx,e)>=0||(Dx.push(e),Ye(e)&&(e={install:e}),e.install(GZ))}var zu=Et();function UZ(e){return e.type==="category"?jZ(e):KZ(e)}function YZ(e,t){return e.type==="category"?qZ(e,t):{ticks:Ne(e.scale.getTicks(),function(r){return r.value})}}function jZ(e){var t=e.getLabelModel(),r=zL(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function zL(e,t){var r=VL(e,"labels"),n=i_(t),i=WL(r,n);if(i)return i;var a,o;return Ye(n)?a=YL(e,n):(o=n==="auto"?XZ(e):n,a=UL(e,o)),GL(r,n,{labels:a,labelCategoryInterval:o})}function qZ(e,t){var r=VL(e,"ticks"),n=i_(t),i=WL(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Ye(n))a=YL(e,n,!0);else if(n==="auto"){var s=zL(e,e.getLabelModel());o=s.labelCategoryInterval,a=Ne(s.labels,function(l){return l.tickValue})}else o=n,a=UL(e,o,!0);return GL(r,n,{ticks:a,tickCategoryInterval:o})}function KZ(e){var t=e.scale.getTicks(),r=hf(e);return{labels:Ne(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function VL(e,t){return zu(e)[t]||(zu(e)[t]=[])}function WL(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function GL(e,t,r){return e.push({key:t,value:r}),r}function XZ(e){var t=zu(e).autoInterval;return t??(zu(e).autoInterval=e.calculateCategoryInterval())}function ZZ(e){var t=QZ(e),r=hf(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),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,d=0;l<=a[1];l+=s){var v=0,p=0,m=u0(r({value:l}),t.font,"center","top");v=m.width*1.3,p=m.height*1.3,h=Math.max(h,v,7),d=Math.max(d,p,7)}var g=h/f,y=d/c;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(g,y))),b=zu(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 QZ(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 UL(e,t,r){var n=hf(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=HL(e),h=o.get("showMinLabel")||c,d=o.get("showMaxLabel")||c;h&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);d&&v-l!==a[1]&&p(a[1]);function p(m){var g={value:m};s.push(r?m:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:m})}return s}function YL(e,t,r){var n=e.scale,i=hf(e),a=[];return R(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Ix=[0,1],JZ=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 O9(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(),Ox(n,i.count())),Jg(t,Ix,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Ox(n,i.count()));var a=Jg(t,n,Ix,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=YZ(this,r),i=n.ticks,a=Ne(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return eQ(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=Ne(n,function(a){return Ne(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return UZ(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 ZZ(this)},e}();function Ox(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function eQ(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[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;R(t,function(d){d.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(d,v){return d=Ft(d),v=Ft(v),c?d>v:d<v}}const tQ=JZ;var _l=Math.PI*2,Va=bo.CMD,rQ=["top","right","bottom","left"];function nQ(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 iQ(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 f=o*r+e,c=s*r+t;if(Math.abs(n-i)%_l<1e-4)return l[0]=f,l[1]=c,u-r;if(a){var h=n;n=pi(i),i=pi(h)}else n=pi(n),i=pi(i);n>i&&(i+=_l);var d=Math.atan2(s,o);if(d<0&&(d+=_l),d>=n&&d<=i||d+_l>=n&&d+_l<=i)return l[0]=f,l[1]=c,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,m=r*Math.cos(i)+e,g=r*Math.sin(i)+t,y=(v-o)*(v-o)+(p-s)*(p-s),_=(m-o)*(m-o)+(g-s)*(g-s);return y<_?(l[0]=v,l[1]=p,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(_))}function zd(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,f=r-e,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var d=l*f+u*c,v=d/h;s&&(v=Math.min(Math.max(v,0),1)),v*=h;var p=o[0]=e+v*f,m=o[1]=t+v*c;return Math.sqrt((p-i)*(p-i)+(m-a)*(m-a))}function jL(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var bn=[];function aQ(e,t,r){var n=jL(t.x,t.y,t.width,t.height,e.x,e.y,bn);return r.set(bn[0],bn[1]),n}function oQ(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,c=e.x,h=e.y,d=0;d<f.length;){var v=f[d++];d===1&&(n=f[d],i=f[d+1],a=n,o=i);var p=u;switch(v){case Va.M:a=f[d++],o=f[d++],n=a,i=o;break;case Va.L:p=zd(n,i,f[d],f[d+1],c,h,bn,!0),n=f[d++],i=f[d++];break;case Va.C:p=R2(n,i,f[d++],f[d++],f[d++],f[d++],f[d],f[d+1],c,h,bn),n=f[d++],i=f[d++];break;case Va.Q:p=N2(n,i,f[d++],f[d++],f[d],f[d+1],c,h,bn),n=f[d++],i=f[d++];break;case Va.A:var m=f[d++],g=f[d++],y=f[d++],_=f[d++],b=f[d++],x=f[d++];d+=1;var w=!!(1-f[d++]);s=Math.cos(b)*y+m,l=Math.sin(b)*_+g,d<=1&&(a=s,o=l);var S=(c-m)*_/y+m;p=iQ(m,g,_,b,b+x,w,S,h,bn),n=Math.cos(b+x)*y+m,i=Math.sin(b+x)*_+g;break;case Va.R:a=n=f[d++],o=i=f[d++];var C=f[d++],M=f[d++];p=jL(a,o,C,M,c,h,bn);break;case Va.Z:p=zd(n,i,a,o,c,h,bn,!0),n=a,i=o;break}p<u&&(u=p,r.set(bn[0],bn[1]))}return u}var Mn=new Fe,ut=new Fe,Lt=new Fe,Yn=new Fe,Wn=new Fe;function Rx(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||rQ,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=e.getComputedTransform(),c=f&&bh([],f),h=t.get("length2")||0;u&&Lt.copy(u);for(var d=0;d<o.length;d++){var v=o[d];nQ(v,0,s,Mn,Yn),Fe.scaleAndAdd(ut,Mn,Yn,h),ut.transform(c);var p=e.getBoundingRect(),m=u?u.distance(ut):e instanceof vt?oQ(ut,e.path,Lt):aQ(ut,p,Lt);m<l&&(l=m,ut.transform(f),Lt.transform(f),Lt.toArray(a[0]),ut.toArray(a[1]),Mn.toArray(a[2]))}qL(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var Vd=[],dr=new Fe;function qL(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Mn.fromArray(e[0]),ut.fromArray(e[1]),Lt.fromArray(e[2]),Fe.sub(Yn,Mn,ut),Fe.sub(Wn,Lt,ut);var r=Yn.len(),n=Wn.len();if(!(r<.001||n<.001)){Yn.scale(1/r),Wn.scale(1/n);var i=Yn.dot(Wn),a=Math.cos(t);if(a<i){var o=zd(ut.x,ut.y,Lt.x,Lt.y,Mn.x,Mn.y,Vd,!1);dr.fromArray(Vd),dr.scaleAndAdd(Wn,o/Math.tan(Math.PI-t));var s=Lt.x!==ut.x?(dr.x-ut.x)/(Lt.x-ut.x):(dr.y-ut.y)/(Lt.y-ut.y);if(isNaN(s))return;s<0?Fe.copy(dr,ut):s>1&&Fe.copy(dr,Lt),dr.toArray(e[1])}}}}function sQ(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Mn.fromArray(e[0]),ut.fromArray(e[1]),Lt.fromArray(e[2]),Fe.sub(Yn,ut,Mn),Fe.sub(Wn,Lt,ut);var n=Yn.len(),i=Wn.len();if(!(n<.001||i<.001)){Yn.scale(1/n),Wn.scale(1/i);var a=Yn.dot(t),o=Math.cos(r);if(a<o){var s=zd(ut.x,ut.y,Lt.x,Lt.y,Mn.x,Mn.y,Vd,!1);dr.fromArray(Vd);var l=Math.PI/2,u=Math.acos(Wn.dot(t)),f=l+u-r;if(f>=l)Fe.copy(dr,Lt);else{dr.scaleAndAdd(Wn,s/Math.tan(Math.PI/2-f));var c=Lt.x!==ut.x?(dr.x-ut.x)/(Lt.x-ut.x):(dr.y-ut.y)/(Lt.y-ut.y);if(isNaN(c))return;c<0?Fe.copy(dr,ut):c>1&&Fe.copy(dr,Lt)}dr.toArray(e[1])}}}}function kx(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 lQ(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=Fg(n[0],n[1]),a=Fg(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=gv([],n[1],n[0],o/i),l=gv([],n[1],n[2],o/a),u=gv([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function KL(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<Ed.length;l++){var u=Ed[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),d=c?s:Ze(i.states[u]&&i.states[u].ignore,s);if(d||!Ze(h,o)){var v=c?n:n&&n.states[u];v&&(v.ignore=!0);continue}n||(n=new ff,e.setTextGuideLine(n),!c&&(s||!o)&&kx(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),kx(n,!1,u,f)}}if(n){ht(n.style,r),n.style.fill=null;var p=a.get("showAbove"),m=e.textGuideLineConfig=e.textGuideLineConfig||{};m.showAbove=p||!1,n.buildPath=lQ}}function XL(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Jn.length;n++){var i=Jn[n];r[i]=e.getModel([i,t])}return r}function ZL(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 f=s?new Ld(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function QL(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,f=0,c=0;c<o;c++){var h=e[c],d=h.rect;l=d[t]-s,l<0&&(d[t]-=l,h.label[t]-=l,u=!0);var v=Math.max(-l,0);f+=v,s=d[t]+d[r]}f>0&&a&&x(-f/o,0,o);var p=e[0],m=e[o-1],g,y;_(),g<0&&w(-g,.8),y<0&&w(y,.8),_(),b(g,y,1),b(y,g,-1),_(),g<0&&S(-g),y<0&&S(y);function _(){g=p.rect[t]-n,y=i-m.rect[t]-m.rect[r]}function b(C,M,A){if(C<0){var P=Math.min(M,-C);if(P>0){x(P*A,0,o);var E=P+C;E<0&&w(-E*A,1)}else w(-C*A,1)}}function x(C,M,A){C!==0&&(u=!0);for(var P=M;P<A;P++){var E=e[P],L=E.rect;L[t]+=C,E.label[t]+=C}}function w(C,M){for(var A=[],P=0,E=1;E<o;E++){var L=e[E-1].rect,O=Math.max(e[E].rect[t]-L[t]-L[r],0);A.push(O),P+=O}if(P){var N=Math.min(Math.abs(C)/P,M);if(C>0)for(var E=0;E<o-1;E++){var H=A[E]*N;x(H,0,E+1)}else for(var E=o-1;E>0;E--){var H=A[E-1]*N;x(-H,E,o)}}}function S(C){var M=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),P=0;P<o-1;P++)if(M>0?x(A,0,P+1):x(-A,o-P-1,o),C-=A,C<=0)return}return u}function uQ(e,t,r,n){return QL(e,"x","width",t,r,n)}function JL(e,t,r,n){return QL(e,"y","height",t,r,n)}function eD(e){var t=[];e.sort(function(p,m){return m.priority-p.priority});var r=new nt(0,0,0,0);function n(p){if(!p.ignore){var m=p.ensureState("emphasis");m.ignore==null&&(m.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,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,h=!1,d=0;d<t.length;d++){var v=t[d];if(r.intersect(v.rect)){if(o&&v.axisAligned){h=!0;break}if(v.obb||(v.obb=new Ld(v.localRect,v.transform)),c||(c=new Ld(s,l)),c.intersect(v.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function fQ(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function cQ(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:fQ(n&&n.shape.points)}}var Nx=["align","verticalAlign","width","height","fontSize"],lr=new wh,xp=Et(),dQ=Et();function vc(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var pc=["x","y","rotation"],hQ=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(),f=i.getBoundingRect().plain();nt.applyTransform(f,f,u),u?lr.setLocalTransform(u):(lr.x=lr.y=lr.rotation=lr.originX=lr.originY=0,lr.scaleX=lr.scaleY=1),lr.rotation=pi(lr.rotation);var c=i.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var d=c.getComputedTransform();nt.applyTransform(h,h,d)}var v=h&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:lr.x,y:lr.y,scaleX:lr.scaleX,scaleY:lr.scaleY,rotation:lr.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");(Ye(i)||Ct(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=dt(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(){Rx(_,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;Ye(o.layoutOption)?f=o.layoutOption(cQ(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=yt(f.x,r),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=yt(f.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:f.labelLinePoints}),h=!1)}var v=xp(s);v.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Nx.length;p++){var m=Nx[p];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",i(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=ZL(this._labelList),a=jt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=jt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});uQ(a,0,r),JL(o,0,n);var s=jt(i,function(l){return l.layoutOption.hideOverlap});eD(s)},e.prototype.processLabelsOverall=function(){var t=this;R(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=xp(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=dt(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");KL(t,XL(s),l),Rx(t,c)}},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=xp(n),o=a.oldLayout,s=dt(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(ot(h,"select")>=0&&n.attr(a.oldLayoutSelect),ot(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Or(n,u,r,l)}else if(n.attr(u),!cf(n).valueAnimation){var c=Ze(n.style.opacity,1);n.style.opacity=0,Wr(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var d=a.oldLayoutSelect={};vc(d,u,pc),vc(d,n.states.select,pc)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};vc(v,u,pc),vc(v,n.states.emphasis,pc)}Sj(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=dQ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Or(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,Wr(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}(),Cp=Et();function vQ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=Cp(r).labelManager;i||(i=Cp(r).labelManager=new hQ),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=Cp(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function pQ(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 gQ(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!ye(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 mQ(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new Gt({shape:{x:o,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),d=h.isHorizontal(),v=h.inverse;d?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var p=Ye(i)?function(m){i(m,c)}:null;Wr(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function yQ(e,t,r){var n=e.getArea(),i=Ft(n.r0,1),a=Ft(n.r,1),o=new Eo({shape:{cx:Ft(e.cx,1),cy:Ft(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,Wr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function _Q(e,t,r,n,i){if(e){if(e.type==="polar")return yQ(e,t,r);if(e.type==="cartesian2d")return mQ(e,t,r,n,i)}else return null;return null}function tD(e,t){return e.type===t}var bQ={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]}},wQ=function(e){return Math.round(e.length/2)};function SQ(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),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),d=Math.round(s/h);if(isFinite(d)&&d>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var v=void 0;Ee(a)?v=bQ[a]:Ye(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,v,wQ))}}}}}var Im=function(e){ge(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.clampData(r),s=a.dataToPoint(o);if(i)R(a.getAxes(),function(h,d){if(h.type==="category"&&n!=null){var v=h.getTicksCoords(),p=o[d],m=n[d]==="x1"||n[d]==="y1";if(m&&(p+=1),v.length<2)return;if(v.length===2){s[d]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var g=void 0,y=void 0,_=1,b=0;b<v.length;b++){var x=v[b].coord,w=b===v.length-1?v[b-1].tickValue+_:v[b].tickValue;if(w===p){y=x;break}else if(w<p)g=x;else if(g!=null&&w>p){y=(x+g)/2;break}b===1&&(_=w-v[0].tickValue)}y==null&&(g?g&&(y=v[v.length-1].coord):y=v[0].coord),s[d]=h.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}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}(So);So.registerClass(Im);var xQ=function(e){ge(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=rE(Im.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}(Im);const CQ=xQ;var TQ=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}(),Bx=function(e){ge(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new TQ},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,d=Math.PI*2,v=h?c-f<d:f-c<d;v||(f=c-(h?d:-d));var p=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);v?(r.moveTo(p*o+i,m*o+a),r.arc(p*u+i,m*u+a,l,-Math.PI+f,f,!h)):r.moveTo(p*s+i,m*s+a),r.arc(i,a,s,f,c,!h),r.arc(g*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&r.arc(i,a,o,c,f,h)},t}(vt);function MQ(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Md(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,d=u.r0,v=(h+d)/2,p=u.startAngle,m=u.endAngle,g=(p+m)/2,y=r?Math.abs(h-d)/2:0,_=Math.cos,b=Math.sin,x=f+h*_(p),w=c+h*b(p),S="left",C="top";switch(s){case"startArc":x=f+(d-l)*_(g),w=c+(d-l)*b(g),S="center",C="top";break;case"insideStartArc":x=f+(d+l)*_(g),w=c+(d+l)*b(g),S="center",C="bottom";break;case"startAngle":x=f+v*_(p)+gc(p,l+y,!1),w=c+v*b(p)+mc(p,l+y,!1),S="right",C="middle";break;case"insideStartAngle":x=f+v*_(p)+gc(p,-l+y,!1),w=c+v*b(p)+mc(p,-l+y,!1),S="left",C="middle";break;case"middle":x=f+v*_(g),w=c+v*b(g),S="center",C="middle";break;case"endArc":x=f+(h+l)*_(g),w=c+(h+l)*b(g),S="center",C="bottom";break;case"insideEndArc":x=f+(h-l)*_(g),w=c+(h-l)*b(g),S="center",C="top";break;case"endAngle":x=f+v*_(m)+gc(m,l+y,!0),w=c+v*b(m)+mc(m,l+y,!0),S="left",C="middle";break;case"insideEndAngle":x=f+v*_(m)+gc(m,-l+y,!0),w=c+v*b(m)+mc(m,-l+y,!0),S="right",C="middle";break;default:return Md(n,i,a)}return n=n||{},n.x=x,n.y=w,n.align=S,n.verticalAlign=C,n}}function AQ(e,t,r,n){if(Tt(n)){e.setTextConfig({rotation:n});return}else if(ye(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 f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function gc(e,t,r){return t*Math.sin(e)*(r?-1:1)}function mc(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Dl(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;ye(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Ne(n,function(a){return da(a,i)})}}var Tp=Math.max,Mp=Math.min;function PQ(e,t){var r=e.getArea&&e.getArea();if(tD(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 EQ=function(e){ge(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){P0(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,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=r.isAnimationEnabled()?r:null,d=LQ(r,u);d&&this._enableRealtimeSort(d,s,i);var v=r.get("clip",!0)||d,p=PQ(u,s);o.removeClipPath();var m=r.get("roundCap",!0),g=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(P){var E=yc[u.type](s,P),L=BQ(u,c,E);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),b[P]=L,L}s.diff(l).add(function(P){var E=s.getItemModel(P),L=yc[u.type](s,P,E);if(g&&C(P),!(!s.hasValue(P)||!Vx[u.type](L))){var O=!1;v&&(O=Fx[u.type](p,L));var N=$x[u.type](r,s,P,L,c,h,f.model,!1,m);d&&(N.forceLabelAnimation=!0),Wx(N,s,P,E,L,r,c,u.type==="polar"),w?N.attr({shape:L}):d?Hx(d,h,N,L,P,c,!1,!1):Wr(N,{shape:L},r,P),s.setItemGraphicEl(P,N),o.add(N),N.ignore=O}}).update(function(P,E){var L=s.getItemModel(P),O=yc[u.type](s,P,L);if(g){var N=void 0;x.length===0?N=C(E):(N=x[E],N.useStyle(y.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",_):N.setShape("cornerRadius",_),b[P]=N);var H=yc[u.type](s,P),V=nD(c,H,u);Or(N,{shape:V},h,P)}var U=l.getItemGraphicEl(E);if(!s.hasValue(P)||!Vx[u.type](O)){o.remove(U);return}var F=!1;if(v&&(F=Fx[u.type](p,O),F&&o.remove(U)),U?YP(U):U=$x[u.type](r,s,P,O,c,h,f.model,!!U,m),d&&(U.forceLabelAnimation=!0),S){var z=U.getTextContent();if(z){var te=cf(z);te.prevValue!=null&&(te.prevValue=te.value)}}else Wx(U,s,P,L,O,r,c,u.type==="polar");w?U.attr({shape:O}):d?Hx(d,h,U,O,P,c,!0,S):Or(U,{shape:O},r,P,null),s.setItemGraphicEl(P,U),U.ignore=F,o.add(U)}).remove(function(P){var E=l.getItemGraphicEl(P);E&&Dd(E,r,P)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Ur);M.removeAll();for(var A=0;A<b.length;++A)M.add(b[A]);o.add(M),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),Ux(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Ux(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&_Q(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),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.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:Ne(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 f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Dd(a,r,dt(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}(ho),Fx={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=Tp(t.x,e.x),s=Mp(t.x+t.width,i),l=Tp(t.y,e.y),u=Mp(t.y+t.height,a),f=s<o,c=u<l;return t.x=f&&o>i?s:o,t.y=c&&l>a?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Mp(t.r,e.r),a=Tp(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}},$x={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Gt({shape:ue({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?Bx:Eo,f=new u({shape:n,z2:1});f.name="item";var c=rD(i);if(f.calculateTextPosition=MQ(c,{isRoundCap:u===Bx}),a){var h=f.shape,d=i?"r":"endAngle",v={};h[d]=i?n.r0:n.startAngle,v[d]=n[d],(s?Or:Wr)(f,{shape:v},a)}return f}};function LQ(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 Hx(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?Or:Wr)(r,{shape:l},t,i,null);var f=t?e.baseAxis.model:null;(o?Or:Wr)(r,{shape:u},f,i)}function zx(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var DQ=["x","y","width","height"],IQ=["cx","cy","r","startAngle","endAngle"],Vx={cartesian2d:function(e){return!zx(e,DQ)},polar:function(e){return!zx(e,IQ)}},yc={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?RQ(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 OQ(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function rD(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 Wx(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,c=Dl(n.getModel("itemStyle"),f,!0);ue(f,c),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var h=n.getShallow("cursor");h&&e.attr("cursor",h);var d=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",v=JP(n);E0(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:pQ(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var p=e.getTextContent();if(s&&p){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,AQ(e,m==="outside"?d:m,rD(o),n.get(["label","rotate"]))}wj(p,v,a.getRawValue(r),function(y){return gQ(t,y)});var g=n.getModel(["emphasis"]);CP(e,g.get("focus"),g.get("blurScope"),g.get("disabled")),TP(e,n),OQ(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function RQ(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 kQ=function(){function e(){}return e}(),Gx=function(e){ge(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new kQ},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},t}(vt);function Ux(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 f=new Gx({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),r&&r.push(f)}var c=new Gx({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(i.getVisual("style")),dt(c).seriesIndex=e.seriesIndex,e.get("silent")||(c.on("mousedown",Yx),c.on("mousemove",Yx)),r&&r.push(c)}var Yx=Y0(function(e){var t=this,r=NQ(t,e.offsetX,e.offsetY);dt(t).dataIndex=r>=0?r:null},30,!1);function NQ(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=a.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+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[f]}return-1}function nD(e,t,r){if(tD(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 BQ(e,t,r){var n=e.type==="polar"?Eo:Gt;return new n({shape:nD(t,r,e),silent:!0,z2:0})}const FQ=EQ;function $Q(e){e.registerChartView(FQ),e.registerSeriesModel(CQ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ot(mZ,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yZ("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,SQ("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 _c=Math.PI*2,jx=Math.PI/180;function iD(e,t){return Ls(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function aD(e,t){var r=iD(e,t),n=e.get("center"),i=e.get("radius");ye(i)||(i=[0,i]);var a=yt(r.width,t.getWidth()),o=yt(r.height,t.getHeight()),s=Math.min(a,o),l=yt(i[0],s/2),u=yt(i[1],s/2),f,c,h=e.coordinateSystem;if(h){var d=h.dataToPoint(n);f=d[0]||0,c=d[1]||0}else ye(n)||(n=[n,n]),f=yt(n[0],a)+r.x,c=yt(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function HQ(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=iD(n,r),s=aD(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*jx,d=n.get("minAngle")*jx,v=0;i.each(a,function(A){!isNaN(A)&&v++});var p=i.getSum(a),m=Math.PI/(p||v)*2,g=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var x=_c,w=0,S=h,C=g?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(A,P){var E;if(isNaN(A)){i.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:c,r:y?NaN:f});return}y!=="area"?E=p===0&&_?m:A*m:E=_c/v,E<d?(E=d,x-=d):w+=A;var L=S+C*E;i.setItemLayout(P,{angle:E,startAngle:S,endAngle:L,clockwise:g,cx:l,cy:u,r0:c,r:y?Jg(A,b,[c,f]):f}),S=L}),x<_c&&v)if(x<=.001){var M=_c/v;i.each(a,function(A,P){if(!isNaN(A)){var E=i.getItemLayout(P);E.angle=M,E.startAngle=h+C*P*M,E.endAngle=h+C*(P+1)*M}})}else m=x/w,S=h,i.each(a,function(A,P){if(!isNaN(A)){var E=i.getItemLayout(P),L=E.angle===d?d:A*m;E.startAngle=S,E.endAngle=S+C*L,S+=C*L}})})}function zQ(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 VQ=Math.PI/180;function qx(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function f(p){for(var m=p.rB,g=m*m,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/g))*w),C=t+(S+_.len2)*i,M=C-_.label.x,A=_.targetTextWidth-M*i;oD(_,A,!0),_.label.x=C}}function c(p){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],b=_.label.y>r?g:m,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(_)}f(m),f(g)}for(var h=e.length,d=0;d<h;d++)if(e[d].position==="outer"&&e[d].labelAlignTo==="labelLine"){var v=e[d].label.x-u;e[d].linePoints[1][0]+=v,e[d].label.x=u}JL(e,l,l+o)&&c(e)}function WQ(e,t,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<e.length;h++){var d=e[h].label;Ap(e[h])||(d.x<t?(f=Math.min(f,d.x),l.push(e[h])):(c=Math.max(c,d.x),u.push(e[h])))}for(var h=0;h<e.length;h++){var v=e[h];if(!Ap(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var d=v.label,p=v.linePoints,m=void 0;v.labelAlignTo==="edge"?d.x<t?m=p[2][0]-v.labelDistance-o-v.edgeDistance:m=o+i-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?d.x<t?m=f-o-v.bleedMargin:m=o+i-c-v.bleedMargin:d.x<t?m=d.x-o-v.bleedMargin:m=o+i-d.x-v.bleedMargin,v.targetTextWidth=m,oD(v,m)}}qx(u,t,r,n,1,i,a,o,s,c),qx(l,t,r,n,-1,i,a,o,s,f);for(var h=0;h<e.length;h++){var v=e[h];if(!Ap(v)&&v.linePoints){var d=v.label,p=v.linePoints,g=v.labelAlignTo==="edge",y=d.style.padding,_=y?y[1]+y[3]:0,b=d.style.backgroundColor?0:_,x=v.rect.width+b,w=p[1][0]-p[2][0];g?d.x<t?p[2][0]=o+v.edgeDistance+x+v.labelDistance:p[2][0]=o+i-v.edgeDistance-x-v.labelDistance:(d.x<t?p[2][0]=d.x+v.labelDistance:p[2][0]=d.x-v.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=d.y}}}function oD(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,f=a.width+(o?0:l);if(t<f||r){var c=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var d=t-l,v=t<f?d:r?d>e.unconstrainedWidth?null:d:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var m=(n.style.margin||0)+2.1;a.height=p.height+m,a.y-=(a.height-c)/2}}}function Ap(e){return e.position==="center"}function GQ(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*VQ,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function d(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(),A=S.getTextGuideLine(),P=t.getItemModel(w),E=P.getModel("label"),L=E.get("position")||P.get(["emphasis","label","position"]),O=E.get("distanceToLabelLine"),N=E.get("alignTo"),H=yt(E.get("edgeDistance"),u),V=E.get("bleedMargin"),U=P.getModel("labelLine"),F=U.get("length");F=yt(F,u);var z=U.get("length2");if(z=yt(z,u),Math.abs(C.endAngle-C.startAngle)<o){R(M.states,d),M.ignore=!0,A&&(R(A.states,d),A.ignore=!0);return}if(v(M)){var te=(C.startAngle+C.endAngle)/2,J=Math.cos(te),me=Math.sin(te),Se,$e,Ie,B;n=C.cx,i=C.cy;var Y=L==="inside"||L==="inner";if(L==="center")Se=C.cx,$e=C.cy,B="center";else{var K=(Y?(C.r+C.r0)/2*J:C.r*J)+n,Q=(Y?(C.r+C.r0)/2*me:C.r*me)+i;if(Se=K+J*3,$e=Q+me*3,!Y){var oe=K+J*(F+l-C.r),pe=Q+me*(F+l-C.r),D=oe+(J<0?-1:1)*z,I=pe;N==="edge"?Se=J<0?f+H:f+u-H:Se=D+(J<0?-O:O),$e=I,Ie=[[K,Q],[oe,pe],[D,I]]}B=Y?"center":N==="edge"?J>0?"right":"left":J>0?"left":"right"}var W=Math.PI,X=0,q=E.get("rotate");if(Tt(q))X=q*(W/180);else if(L==="center")X=0;else if(q==="radial"||q===!0){var le=J<0?-te+W:-te;X=le}else if(q==="tangential"&&L!=="outside"&&L!=="outer"){var fe=Math.atan2(J,me);fe<0&&(fe=W*2+fe);var ae=me>0;ae&&(fe=W+fe),X=fe-W}if(a=!!X,M.x=Se,M.y=$e,M.rotation=X,M.setStyle({verticalAlign:"middle"}),Y){M.setStyle({align:B});var he=M.states.select;he&&(he.x+=M.x,he.y+=M.y)}else{var se=M.getBoundingRect().clone();se.applyTransform(M.getComputedTransform());var ne=(M.style.margin||0)+2.1;se.y-=ne/2,se.height+=ne,r.push({label:M,labelLine:A,position:L,len:F,len2:z,minTurnAngle:U.get("minTurnAngle"),maxSurfaceAngle:U.get("maxSurfaceAngle"),surfaceNormal:new Fe(J,me),linePoints:Ie,textAlign:B,labelDistance:O,labelAlignTo:N,edgeDistance:H,bleedMargin:V,rect:se,unconstrainedWidth:se.width,labelStyleWidth:M.style.width})}S.setTextConfig({inside:Y})}}),!a&&e.get("avoidLabelOverlap")&&WQ(r,n,i,l,u,h,f,c);for(var p=0;p<r.length;p++){var m=r[p],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(R(g.states,d),g.ignore=!0);var b=g.states.select;b&&(b.x+=g.x,b.y+=g.y)}if(y){var x=m.linePoints;_||!x?(R(y.states,d),y.ignore=!0):(qL(x,m.minTurnAngle),sQ(x,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:x}),g.__hostTarget.textGuideLineConfig={anchor:new Fe(x[0][0],x[0][1])})}}}var UQ=function(e){ge(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new mr;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"),f=r.getItemLayout(n),c=ue(Dl(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Wr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Wr(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Wr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Or(o,{shape:{endAngle:f.endAngle}},s,n))}else YP(o),Or(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),TP(o,l);var d=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(d)*v,m=Math.sin(d)*v,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=ue({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Dl(u.getModel("itemStyle"),f)),ue(o.ensureState("select"),{x:p,y:m,shape:Dl(l.getModel(["select","itemStyle"]),f)}),ue(o.ensureState("blur"),{shape:Dl(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&ue(y.ensureState("select"),{x:p,y:m}),ue(_.ensureState("select"),{x:p,y:m}),CP(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,f=l&&l.opacity;E0(a,JP(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=r.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new ff,this.setTextGuideLine(d)),KL(this,XL(o),{stroke:u,opacity:Yl(s.get(["lineStyle","opacity"]),f,1)})}},t}(Eo),YQ=function(e){ge(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 f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var h=new Eo({shape:aD(r,i)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var v=new UQ(o,d,u);o.setItemGraphicEl(d,v),l.add(v)}).update(function(d,v){var p=s.getItemGraphicEl(v);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var v=s.getItemGraphicEl(d);Dd(v,r,d)}).execute(),GQ(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}(ho);const jQ=YQ;function qQ(e,t,r){t=ye(t)&&{coordDimensions:t}||ue({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=TL(n,t).dimensions,a=new CL(i,e);return a.initData(n,r),a}var KQ=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 XQ=KQ;var ZQ=Et(),QQ=function(e){ge(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 XQ(xt(this.getData,this),xt(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return qQ(this,{coordDimensions:["value"],encodeDefaulter:Ot(Xj,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=ZQ(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=R9(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){em(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}(So);const JQ=QQ;function eJ(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!(Tt(o)&&!isNaN(o)&&o<0)})}}}function tJ(e){e.registerChartView(jQ),e.registerSeriesModel(JQ),kK("pie",e.registerAction),e.registerLayout(Ot(HQ,"pie")),e.registerProcessor(zQ("pie")),e.registerProcessor(eJ("pie"))}var rJ=function(e){ge(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}(Mt);const nJ=rJ;var Om=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Tn).models[0]},t.type="cartesian2dAxis",t}(Mt);ni(Om,WZ);var sD={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)"]}}},iJ=st({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},sD),a_=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}}},sD),aJ=st({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a_),oJ=ht({logBase:10},a_);const sJ={category:iJ,value:a_,time:aJ,log:oJ};var lJ={value:1,category:1,time:1,log:1};function Kx(e,t,r,n){R(lJ,function(i,a){var o=st(st({},sJ[a],!0),n,!0),s=function(l){ge(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Nu(this),d=h?Rh(f):{},v=c.getTheme();st(f,v.get(a+"Axis")),st(f,this.getDefaultOption()),f.type=Xx(f),h&&Ds(f,d,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Lm.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Xx)}function Xx(e){return e.type||(e.data?"category":"value")}var uJ=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 Ne(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),jt(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 fJ=uJ;var Rm=["x","y"];function Zx(e){return e.type==="interval"||e.type==="time"}var cJ=function(e){ge(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Rm,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Zx(r)||!Zx(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-i[0]*f,d=o[1]-a[0]*c,v=this._transform=[f,0,0,c,h,d];this._invTransform=bh([],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 nt(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 un(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 un(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 nt(i,a,o,s)},t}(fJ),dJ=function(e){ge(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}(tQ);const hJ=dJ;function km(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,v=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[h[l]]:c[0],u==="x"?v[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[s],a.labelOffset=o?v[h[s]]-v[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Au(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function Qx(e){return e.get("coordinateSystem")==="cartesian2d"}function Jx(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Tn).models[0];t[n]=a}),t}var Pp=Math.log;function vJ(e,t,r){var n=df.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=$L(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(e.type==="log"){var h=Pp(e.base);u=[Pp(u[0])/h,Pp(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var d=n.getExtent.call(e);f&&(u[0]=d[0]),c&&(u[1]=d[1]);var v=n.getInterval.call(e),p=u[0],m=u[1];if(f&&c)v=(m-p)/o;else if(f)for(m=u[0]+v*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)v=wp(v),m=u[0]+v*o;else if(c)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=wp(v),p=u[1]-v*o;else{var g=e.getTicks().length-1;g>o&&(v=wp(v));var y=v*o;m=Math.ceil(u[1]/v)*v,p=Ft(m-y),p<0&&u[0]>=0?(p=0,m=Ft(y)):m>0&&u[1]<=0&&(m=0,p=-Ft(y))}var _=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+v*_,m+v*b),n.setInterval.call(e,v),(_||b)&&n.setNiceExtent.call(e,p+v,m-v)}var pJ=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Rm,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=Ct(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],d=o[h],v=d.model,p=d.scale;Dm(p)&&v.get("alignTicks")&&v.get("interval")==null?f.push(d):(Lx(p,v),Dm(p)&&(s=d))}f.length&&(s||(s=f.pop(),Lx(s.scale,s.model)),R(f,function(m){vJ(m.scale,m.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){eC(n,"y",o,a)}),R(n.y,function(o){eC(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&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=HZ(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),gJ(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Re(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",Tn).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Tn).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,R(s.x,function(f,c){R(s.y,function(h,d){var v="x"+c+"y"+d,p=new cJ(v);p.master=i,p.model=t,i._coordsMap[v]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(Ep(c,t)){var d=c.get("position");f==="x"?d!=="top"&&d!=="bottom"&&(d=o.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=o.left?"right":"left"),o[d]=!0;var v=new hJ(f,FZ(c),[0,0],c.get("type"),d),p=v.type==="category";v.onBand=p&&c.get("boundaryGap"),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=h,a._axesList.push(v),s[f][h]=v,l[f]++}}}},e.prototype._updateScale=function(t,r){R(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(Qx(i)){var a=Jx(i),o=a.xAxisModel,s=a.yAxisModel;if(!Ep(o,r)||!Ep(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){R(VZ(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return R(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(Qx(i)){var a=Jx(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=Rm,e}();function Ep(e,t){return e.getCoordSysModel()===t}function eC(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)tC(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&tC(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function tC(e){return e&&e.type!=="category"&&e.type!=="time"&&$Z(e)}function gJ(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 mJ=pJ;var ea=Math.PI,vo=function(){function e(t,r){this.group=new Ur,this.opt=r,this.axisModel=t,ht(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ur({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!rC[t]},e.prototype.add=function(t){rC[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=j2(r-t),a,o;return Ad(i)?(o=n>0?"top":"bottom",a="center"):Ad(i-ea)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<ea?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}(),rC={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&&(un(s,s,o),un(l,l,o));var f=ue({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new wo({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Iu(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var d=t.get(["axisLine","symbolSize"]);Ee(h)&&(h=[h,h]),(Ee(d)||Tt(d))&&(d=[d,d]);var v=qK(t.get(["axisLine","symbolOffset"])||0,d),p=d[0],m=d[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(h[y]!=="none"&&h[y]!=null){var _=j0(h[y],-p/2,-m/2,p,m,f.stroke,!0),b=g.r+g.offset,x=u?l:s;_.attr({rotation:g.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=bJ(r,n,t,e),a=SJ(r,n,t,e);if(_J(t,a,i),wJ(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=ZL(Ne(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));eD(o)}},axisName:function(e,t,r,n){var i=Au(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,iC(a)?e.labelOffset+o*l:0],h,d=t.get("nameRotate");d!=null&&(d=d*ea/180);var v;iC(a)?h=vo.innerTextLayout(e.rotation,d??e.rotation,o):(h=yJ(e.rotation,a,d||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),m=t.get("nameTruncate",!0)||{},g=m.ellipsis,y=Au(e.nameTruncateMaxWidth,m.maxWidth,v),_=new mr({x:c[0],y:c[1],rotation:h.rotation,silent:vo.isLabelSilent(t),style:ha(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(A0({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=vo.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,dt(_).eventData=b}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function yJ(e,t,r,n){var i=j2(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ad(i-ea/2)?(o=l?"bottom":"top",a="center"):Ad(i-ea*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<ea*1.5&&i>ea/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function _J(e,t,r){if(!HL(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(Kr(a),Kr(u)):nC(a,o)&&(n?(Kr(o),Kr(f)):(Kr(a),Kr(u))),i===!1?(Kr(s),Kr(c)):nC(l,s)&&(i?(Kr(l),Kr(h)):(Kr(s),Kr(c)))}}function Kr(e){e&&(e.ignore=!0)}function nC(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=a0([]);return o0(i,i,-e.rotation),r.applyTransform(ls([],i,e.getLocalTransform())),n.applyTransform(ls([],i,t.getLocalTransform())),r.intersect(n)}}function iC(e){return e==="middle"||e==="center"}function lD(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&&(un(o,o,t),un(s,s,t));var f=new wo({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Iu(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f)}return a}function bJ(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(),f=lD(u,t.transform,l,ht(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}}function wJ(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=ht(s.getLineStyle(),ht(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=lD(o[f],t.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)e.add(c[h])}}function SJ(e,t,r,n){var i=r.axis,a=Au(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Au(n.labelRotate,o.get("rotate"))||0)*ea/180,f=vo.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],d=vo.isLabelSilent(r),v=r.get("triggerEvent");return R(l,function(p,m){var g=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,b=o;if(c&&c[g]){var x=c[g];Re(x)&&x.textStyle&&(b=new sr(x.textStyle,o,r.ecModel))}var w=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),S=i.dataToCoord(g),C=new mr({x:S,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:d,z2:10+(p.level||0),style:ha(b,{text:y,align:b.getShallow("align",!0)||f.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||f.textVerticalAlign,fill:Ye(w)?w(i.type==="category"?_:i.type==="value"?g+"":g,m):w})});if(C.anid="label_"+g,v){var M=vo.makeAxisEventDataBase(r);M.targetType="axisLabel",M.value=_,M.tickIndex=m,i.type==="category"&&(M.dataIndex=g),dt(C).eventData=M}t.add(C),C.updateTransform(),h.push(C),e.add(C),C.decomposeTransform()}),h}}const uD=vo;function xJ(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return CJ(r,e,t),r.seriesInvolved&&MJ(r,e),r}function CJ(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];R(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Vu(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(R(s.getAxes(),Ot(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",d=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&R(v.baseAxes,Ot(p,d?"cross":!0,h)),d&&R(v.otherAxes,Ot(p,"cross",!1))}function p(m,g,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!m&&!Nm(_))){g==null&&(g=_.get("triggerTooltip")),_=m?TJ(y,c,i,t,m,g):_;var x=_.get("snap"),w=_.get("triggerEmphasis"),S=Vu(y.model),C=g||x||y.type==="category",M=e.axesInfo[S]={key:S,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:w,involveSeries:C,snap:x,useHandle:Nm(_),seriesModels:[],linkGroup:null};u[S]=M,e.seriesInvolved=e.seriesInvolved||C;var A=AJ(a,y);if(A!=null){var P=o[A]||(o[A]={axesInfo:{}});P.axesInfo[S]=M,P.mapper=a[A].mapper,M.linkGroup=P}}}})}function TJ(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};R(s,function(h){l[h]=tt(o.get(h))}),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 f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&ht(u,c.textStyle)}}return e.model.getModel("axisPointer",new sr(l,r,n))}function MJ(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||R(e.coordSysAxesInfo[Vu(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 AJ(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Lp(a[n+"AxisId"],r.id)||Lp(a[n+"AxisIndex"],r.componentIndex)||Lp(a[n+"AxisName"],r.name))return i}}function Lp(e,t){return e==="all"||ye(e)&&ot(e,t)>=0||e===t}function PJ(e){var t=o_(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=Nm(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 o_(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Vu(e)]}function EJ(e){var t=o_(e);return t&&t.axisPointerModel}function Nm(e){return!!e.get(["handle","show"])}function Vu(e){return e.type+"||"+e.id}var aC={},fD=function(e){ge(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&&PJ(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=EJ(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){aC[r]=n},t.getAxisPointerClass=function(r){return r&&aC[r]},t.type="axis",t}(Mi),Bm=Et();function LJ(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 f=s.length,c=Bm(e).splitAreaColors,h=je(),d=0;if(c)for(var v=0;v<u.length;v++){var p=c.get(u[v].tickValue);if(p!=null){d=(p+(f-1)*v)%f;break}}var m=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=ye(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()?(_=m,b=l.y,x=y-_,w=l.height,m=_+x):(_=l.x,b=m,x=l.width,w=y-b,m=b+w);var S=u[v-1].tickValue;S!=null&&h.set(S,d),t.add(new Gt({anid:S!=null?"area_"+S:null,shape:{x:_,y:b,width:x,height:w},style:ht({fill:s[d]},g),autoBatch:!0,silent:!0})),d=(d+1)%f}Bm(e).splitAreaColors=h}}}function DJ(e){Bm(e).splitAreaColors=null}var IJ=["axisLine","axisTickLabel","axisName"],OJ=["splitArea","splitLine","minorSplitLine"],cD=function(e){ge(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 Ur,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=km(s,r),u=new uD(r,ue({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),d=0;d<h.length;d++)if(Dm(h[d].getOtherAxis(r.axis).scale))return!0;return!1}},l));R(IJ,u.add,u),this._axisGroup.add(u.getGroup()),R(OJ,function(c){r.get([c,"show"])&&RJ[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||XP(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){DJ(this)},t.type="cartesianAxis",t}(fD),RJ={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=ye(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:a}),h=[],d=[],v=o.getLineStyle(),p=0;p<c.length;p++){var m=i.toGlobalCoord(c[p].coord);u?(h[0]=m,h[1]=l.y,d[0]=m,d[1]=l.y+l.height):(h[0]=l.x,h[1]=m,d[0]=l.x+l.width,d[1]=m);var g=f++%s.length,y=c[p].tickValue,_=new wo({anid:y!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:ht({stroke:s[g]},v),silent:!0});Iu(_.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 f=[],c=[],h=o.getLineStyle(),d=0;d<u.length;d++)for(var v=0;v<u[d].length;v++){var p=i.toGlobalCoord(u[d][v].coord);l?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var m=new wo({anid:"minor_line_"+u[d][v].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});Iu(m.shape,h.lineWidth),t.add(m)}},splitArea:function(e,t,r,n){LJ(e,t,r,n)}},dD=function(e){ge(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(cD),kJ=function(e){ge(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=dD.type,r}return t.type="yAxis",t}(cD),NJ=function(e){ge(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 Gt({shape:r.coordinateSystem.getRect(),style:ht({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Mi),oC={offset:0};function BJ(e){e.registerComponentView(NJ),e.registerComponentModel(nJ),e.registerCoordinateSystem("cartesian2d",mJ),Kx(e,"x",Om,oC),Kx(e,"y",Om,oC),e.registerComponentView(dD),e.registerComponentView(kJ),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function sC(e,t,r){var n=Vs.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 FJ=function(e){ge(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||Td,typeof r=="string"?o=sC(r,n,i):Re(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(S2(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=sC("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 nt(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new nt(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 nt(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 A=y.width*y.height,P=C.width*C.height,E=u.width*u.height,L=E-A-P;L<x&&(x=L,w=S)}}if(l&&(o[w].union(y),b=!0),!b){var _=new nt(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=r[c];if(h){var d=h.shouldBePainted(i,a,!0,!0),v=h.__isRendered&&(h.__dirty&Br||!d)?h.getPrevPaintRect():null;v&&f(v);var p=d&&(h.__dirty&Br||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],d=h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&f(v)}}var m;do{m=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(m=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(m);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,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var d=this.domBack;function v(p,m,g,y){if(o.clearRect(p,m,g,y),n&&n!=="transparent"){var _=void 0;if(yh(n)){var b=n.global||n.__width===g&&n.__height===y;_=b&&n.__canvasGradient||Cm(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=_,n.__width=g,n.__height=y}else fU(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Tm(o,n,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(d,p,m,g,y),o.restore())}!i||u?v(0,0,s,l):i.length&&R(i,function(p){v(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(ii);const Dp=FJ;var lC=1e5,Wa=314159,bc=.01,$J=.001;function HJ(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function zJ(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 VJ=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=ue({},n||{}),this.dpr=n.devicePixelRatio||Td,this._singleCanvas=a,this.root=t;var o=t.style;o&&(S2(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var d=new Dp(f,this,this.dpr);d.__builtin__=!0,d.initContext(),l[Wa]=d,d.zlevel=Wa,s.push(Wa),this._domRoot=t}else{this._width=ac(t,0,n),this._height=ac(t,1,n);var u=this._domRoot=zJ(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(lC)),a||(a=n.ctx,a.save()),no(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(lC)},e.prototype.paintOne=function(t,r){JE(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;Wg(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Wa).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 f=!0,c=!1,h=function(p){var m=a[p],g=m.ctx,y=o&&m.createRepaintRects(t,r,d._width,d._height),_=n?m.__startIndex:m.__drawIndex,b=!n&&m.incremental&&Date.now,x=b&&Date.now(),w=m.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,w,y);else if(_===m.__startIndex){var S=t[_];(!S.incremental||!S.notClear||n)&&m.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=m.__startIndex);var C,M=function(L){var O={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<m.__endIndex;C++){var N=t[C];if(N.__inHover&&(c=!0),i._doPaintEl(N,m,o,L,O,C===m.__endIndex-1),b){var H=Date.now()-x;if(H>15)break}}O.prevElClipPaths&&g.restore()};if(y)if(y.length===0)C=m.__endIndex;else for(var A=d.dpr,P=0;P<y.length;++P){var E=y[P];g.save(),g.beginPath(),g.rect(E.x*A,E.y*A,E.width*A,E.height*A),g.clip(),M(E),g.restore()}else g.save(),M(),g.restore();m.__drawIndex=C,m.__drawIndex<m.__endIndex&&(f=!1)},d=this,v=0;v<a.length;v++)h(v);return He.wxa&&R(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},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))&&(no(s,t,a,o),t.setPrevPaintRect(l))}else no(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Wa);var n=this._layers[t];return n||(n=new Dp("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?st(n,this._layerConfig[t],!0):this._layerConfig[t-bc]&&st(n,this._layerConfig[t-bc],!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]&&HJ(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(c,h){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}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,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+$J,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?bc:0),this._needsManuallyCompositing),f.__builtin__||r0("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Br&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?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+bc){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=ac(a,0,i),r=ac(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(Wa).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[Wa].dom;var r=new Dp("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(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.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 f=s[l];no(n,f,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const WJ=VJ;function GJ(e){e.registerPainter("canvas",WJ)}var Ka=Et(),uC=tt,Ip=xt,UJ=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 f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ur,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=Ot(fC,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}dC(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=o_(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 mj[a.type](uC(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ka(t).labelEl=new mr(uC(r.label));t.add(a),cC(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}),cC(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=M0(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){C2(u.event)},onmousedown:Ip(this._onHandleDragMove,this,0,0),drift:Ip(this._onHandleDragMove,this),ondragend:Ip(this._onHandleDragEnd,this)}),n.add(i)),dC(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ye(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,VE(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){fC(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Op(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(Op(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Op(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),wm(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 fC(e,t,r,n){hD(Ka(r).lastProp,n)||(Ka(r).lastProp=n,t?Or(r,n,e):(r.stopAnimation(),r.attr(n)))}function hD(e,t){if(Re(e)&&Re(t)){var r=!0;return R(t,function(n,i){r=r&&hD(e[i],n)}),!!r}else return e===t}function cC(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Op(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function dC(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 YJ=UJ;function jJ(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 qJ(e,t,r,n,i){var a=r.get("value"),o=vD(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Oh(s.get("padding")||0),u=s.getFont(),f=u0(o,u),c=i.position,h=f.width+l[1]+l[3],d=f.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=h),v==="center"&&(c[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=d),p==="middle"&&(c[1]-=d/2),KJ(c,h,d,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:ha(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function KJ(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 vD(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:n_(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Ee(o)?a=o.replace("{value}",a):Ye(o)&&(a=o(s))}return a}function pD(e,t,r){var n=Pu();return o0(n,n,r.rotation),Vg(n,n,r.position),T0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function XJ(e,t,r,n,i,a){var o=uD.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),qJ(t,n,i,a,{position:pD(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ZJ(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function QJ(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var JJ=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=hC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=jJ(a),d=eee[u](s,c,f);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=km(l.model,i);XJ(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=km(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=pD(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=hC(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,d=[h,h];d[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[f]}},t}(YJ);function hC(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var eee={line:function(e,t,r){var n=ZJ([t,r[0]],[t,r[1]],vC(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:QJ([t-n/2,r[0]],[n,i],vC(e))}}};function vC(e){return e.dim==="x"?0:1}const tee=JJ;var ree=function(e){ge(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,triggerEmphasis:!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}(Mt);const nee=ree;var gi=Et(),iee=R;function gD(e,t,r){if(!He.node){var n=t.getZr();gi(n).records||(gi(n).records={}),aee(n,t);var i=gi(n).records[e]||(gi(n).records[e]={});i.handler=r}}function aee(e,t){if(gi(e).initialized)return;gi(e).initialized=!0,r("click",Ot(pC,"click")),r("mousemove",Ot(pC,"mousemove")),r("globalout",see);function r(n,i){e.on(n,function(a){var o=lee(t);iee(gi(e).records,function(s){s&&i(s,a,o.dispatchAction)}),oee(o.pendings,t)})}}function oee(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 see(e,t,r){e.handler("leave",null,r)}function pC(e,t,r,n){t.handler(e,r,n)}function lee(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 Fm(e,t){if(!He.node){var r=t.getZr(),n=(gi(r).records||{})[e];n&&(gi(r).records[e]=null)}}var uee=function(e){ge(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";gD("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){Fm("axisPointer",n)},t.prototype.dispose=function(r,n){Fm("axisPointer",n)},t.type="axisPointer",t}(Mi);const fee=uee;function mD(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=sf(a,e);if(o==null||o<0||ye(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,d=c==="x"||c==="radius"?1:0,v=a.mapDimension(h),p=[];p[d]=a.get(v,o),p[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Ne(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var gC=Et();function cee(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||xt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Zc(i)&&(i=mD({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Zc(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Zc(i),h={},d={},v={list:[],map:{}},p={showPointer:Ot(hee,d),showTooltip:Ot(vee,v)};R(s.coordSysMap,function(g,y){var _=l||g.containPoint(i);R(s.coordSysAxesInfo[y],function(b,x){var w=b.axis,S=yee(u,b);if(!c&&_&&(!u||S)){var C=S&&S.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&mC(b,C,p,!1,h)}})});var m={};return R(f,function(g,y){var _=g.linkGroup;_&&!d[y]&&R(_.axesInfo,function(b,x){var w=d[x];if(b!==g&&w){var S=w.value;_.mapper&&(S=g.axis.scale.parse(_.mapper(S,yC(b),yC(g)))),m[g.key]=S}})}),R(m,function(g,y){mC(f[y],g,p,!0,h)}),pee(d,f,h),gee(v,i,e,o),mee(f,o,r),h}}function mC(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=dee(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&ue(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function dee(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(f,e,r);h=d.dataIndices,c=d.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var v=e-c,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=c,a.length=0),R(h,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function hee(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function vee(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=Vu(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function pee(e,t,r){var n=r.axesInfo=[];R(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function gee(e,t,r,n){if(Zc(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 mee(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=gC(n)[i]||{},o=gC(n)[i]={};R(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&R(c.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});var s=[],l=[];R(a,function(u,f){!o[f]&&l.push(u)}),R(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function yee(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 yC(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 Zc(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function yD(e){fD.registerAxisPointerClass("CartesianAxisPointer",tee),e.registerComponentModel(nee),e.registerComponentView(fee),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ye(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=xJ(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},cee)}function _ee(e){va(BJ),va(yD)}function bee(e,t){var r=Oh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Gt({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 wee=function(e){ge(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}(Mt);const See=wee;function _D(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function bD(e){if(He.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var wD=bD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),xee=bD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function SD(e,t){if(!e)return t;t=vE(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function Cee(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var Tee=SD(xee,"transition"),s_=SD(wD,"transform"),Mee="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(He.transform3dSupported?"will-change:transform;":"");function Aee(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Pee(e,t,r){if(!Ee(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=ku(t);var a=Aee(r),o=Math.max(Math.round(i)*1.5,6),s="",l=s_+":",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 f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+d+"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 Eee(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+=He.transformSupported?","+s_+n:",left"+n+",top"+n),Tee+":"+i}function _C(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!He.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=He.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+s_+":"+o+";":[["top",0],["left",0],[wD,o]]}function Lee(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Dee(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=$E(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(Eee(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(d){var v="border-"+d,p=vE(v),m=e.get(p);m!=null&&n.push(v+":"+m+(d==="color"?"":"px"))}),n.push(Lee(f)),c!=null&&n.push("padding:"+Oh(c).join("px ")+"px"),n.join(";")+";"}function bC(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&TU(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 Iee=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,He.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;bC(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Qr(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=Cee(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,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=Mee+Dee(t,!this._firstShow,this._longHide)+_C(a[0],a[1],!0)+("border-color:"+ku(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(Ee(a)&&n.get("trigger")==="item"&&!_D(n)&&(s=Pee(n,i,a)),Ee(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ye(t)||(t=[t]);for(var l=0;l<t.length;l++)_d(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(bC(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=_C(n[0],n[1]);R(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",He.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)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(xt(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 Oee=Iee;var Ree=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,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(),this._alwaysShowContent=r},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;Re(t)&&Cr(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new mr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:$E(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),R(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),R(["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=wC(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=Ui(a.borderWidth||0),s=wC(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)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(xt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Ui(e){return Math.max(0,e)}function wC(e){var t=Ui(e.shadowBlur||0),r=Ui(e.shadowOffsetX||0),n=Ui(e.shadowOffsetY||0);return{left:Ui(t-r),right:Ui(t+r),top:Ui(t-n),bottom:Ui(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()}var kee=new Gt({shape:{x:-1,y:-1,width:2,height:2}}),Nee=function(e){ge(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(!(He.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=Q9(i.get("renderMode"));this._tooltipContent=a==="richText"?new Ree(n):new Oee(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(r,n,i){if(!(He.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?VE(this,"_updatePosition",50,"fixRate"):wm(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");gD("itemTooltip",this._api,xt(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||He.node||!i.getDom())){var o=xC(a,i);this._ticket="";var s=a.dataByCoordSys,l=Hee(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=kee;f.x=a.x,f.y=a.y,f.update(),dt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=mD(a,n),h=c.point[0],d=c.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(xC(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=bl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Ll(i,function(u){if(dt(u).dataIndex!=null)return s=u,!0;if(dt(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=xt(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=bl([n.tooltipOption],a),l=this._renderMode,u=[],f=Fu("section",{blocks:[],noHeader:!0}),c=[],h=new up;R(r,function(y){R(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var w=vD(x,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),S=Fu("section",{header:w,noHeader:!Gn(w),sortBlocks:!0,blocks:[]});f.blocks.push(S),R(_.seriesDataIndices,function(C){var M=i.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,P=M.getDataParams(A);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=n_(b.axis,{value:x}),P.axisValueLabel=w,P.marker=h.makeTooltipMarker("item",ku(P.color),l);var E=FS(M.formatTooltip(A,!0,null)),L=E.frag;if(L){var O=bl([M],a).get("valueFormatter");S.blocks.push(O?ue({valueFormatter:O},L):L)}E.text&&c.push(E.text),u.push(P)}})}})}),f.blocks.reverse(),c.reverse();var d=n.position,v=s.get("order"),p=WS(f,h,l,v,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var m=l==="richText"?`
+`];function Fu(e,t){return t.type=e,t}function ym(e){return e.type==="section"}function NE(e){return ym(e)?Kq:Xq}function BE(e){if(ym(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return R(e.blocks,function(i){var a=BE(i);a>=t&&(t=a+ +(n&&(!a||ym(i)&&!i.noHeader)))}),t}return 0}function Kq(e,t,r,n){var i=t.noHeader,a=Zq(BE(t)),o=[],s=t.blocks||[];Ci(!s||ye(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ds(u,l)){var f=new Oq(u[l],null);s.sort(function(v,p){return f.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(v,p){var m=t.valueFormatter,g=NE(v)(m?ue(ue({},e),{valueFormatter:m}):e,v,p>0?a.html:0,n);g!=null&&o.push(g)});var c=e.renderMode==="richText"?o.join(a.richText):_m(o.join(""),i?r:a.html);if(i)return c;var h=pm(t.header,"ordinal",e.useUTC),d=kE(n,e.renderMode).nameStyle;return e.renderMode==="richText"?FE(e,h,d)+a.richText+c:_m('<div style="'+d+";"+RE+';">'+tn(h)+"</div>"+c,r)}function Xq(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=ye(b)?b:[b],Ne(b,function(x,w){return pm(x,ye(d)?d[w]:d,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":pm(l,"ordinal",u),d=t.valueType,v=o?[]:f(t.value),p=!s||!a,m=!s&&a,g=kE(n,i),y=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":c)+(a?"":FE(e,h,y))+(o?"":eK(e,v,p,m,_)):_m((s?"":c)+(a?"":Qq(h,!s,y))+(o?"":Jq(v,p,m,_)),r)}}function WS(e,t,r,n,i,a){if(e){var o=NE(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Zq(e){return{html:jq[e],richText:qq[e]}}function _m(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+RE+';">'+e+r+"</div>"}function Qq(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+tn(e)+"</span>"}function Jq(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ye(e)?e:[e],'<span style="'+a+";"+n+'">'+Ne(e,function(o){return tn(o)}).join("&nbsp;&nbsp;")+"</span>"}function FE(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function eK(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(ye(t)?t.join("  "):t,a)}function tK(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return ku(n)}function $E(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var up=function(){function e(){this.richTextStyles={},this._nextStyleNameId=K2()}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=Vj({color:r,type:t,renderMode:n,markerId:i});return Ee(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ye(r)?R(r,function(a){return ue(n,a)}):ue(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function rK(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=ye(s),u=tK(t,r),f,c,h,d;if(o>1||l&&!o){var v=nK(s,t,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);d=f=Rs(i,r,a[0]),c=p.type}else d=f=l?s[0]:s;var m=h0(t),g=m&&t.name||"",y=i.getName(r),_=n?g:y;return Fu("section",{header:g,noHeader:n||!m,sortParam:d,blocks:[Fu("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Gn(_),value:f,valueType:c})].concat(h||[])})}function nK(e,t,r,n,i){var a=t.getData(),o=ca(e,function(c,h,d){var v=a.getDimensionInfo(d);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(c){f(Rs(a,r,c),c)}):R(e,f);function f(c,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(Fu("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:c,valueType:d.type})):(s.push(c),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Fi=Et();function tc(e,t){return e.getName(t)||e.getId(t)}var iK="__universalTransitionEnabled",Bh=function(e){ge(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=nu({count:oK,reset:sK}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Fi(this).sourceManager=new Yq(this);a.prepareSource();var o=this.getInitialData(r,i);US(o,this),this.dataTask.context.data=o,Fi(this).dataBeforeProcessed=o,GS(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Nu(this),a=i?Rh(r):{},o=this.subType;Mt.hasClass(o)&&(o+="Series"),st(r,n.getTheme().get(this.subType)),st(r,this.getDefaultOption()),em(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Os(r,a,i)},t.prototype.mergeOption=function(r,n){r=st(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Nu(this);i&&Os(this.option,r,i);var a=Fi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);US(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Fi(this).dataBeforeProcessed=o,GS(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Gr(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&em(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=bm(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return Fi(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=bm(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Fi(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return je(r)},t.prototype.getSourceManager=function(){return Fi(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Fi(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 rK({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(He.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=B0.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=tc(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=Ct(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[tc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[iK])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"){Re(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=tc(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var d=n[l-1],h=tc(r,d);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(d),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 Mt.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}(Mt);ni(Bh,Dq);ni(Bh,B0);tP(Bh,Mt);function GS(e){var t=e.name;h0(e)||(e.name=aK(e)||t)}function aK(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function oK(e){return e.model.getRawData().count()}function sK(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),lK}function lK(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function US(e,t){R(vU(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Rt(uK,t))})}function uK(e,t){var r=bm(e);return r&&r.setOutputEnd((t||this).count()),t}function bm(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 So=Bh;var G0=function(){function e(){this.group=new Ur,this.uid=Ah("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}();p0(G0);Sh(G0);const Mi=G0;function HE(){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 zE=Et(),fK=HE(),U0=function(){function e(){this.group=new Ur,this.uid=Ah("viewChart"),this.renderTask=nu({plan:cK,reset:dK}),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&&jS(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&jS(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){P0(this.group,t)},e.markUpdateMethod=function(t,r){zE(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function YS(e,t,r){e&&fm(e)&&(t==="emphasis"?am:om)(e,r)}function jS(e,t,r){var n=sf(e,t),i=t&&t.highlightKey!=null?_Y(t.highlightKey):null;n!=null?R(pr(n),function(a){YS(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){YS(a,r,i)})}p0(U0);Sh(U0);function cK(e){return fK(e.model)}function dK(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&zE(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),hK[l]}var hK={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 ho=U0;var kd="\0__throttleOriginMethod",qS="\0__throttleRate",KS="\0__throttleType";function Y0(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];n=new Date().getTime(),l=this,u=d;var p=f||t,m=f||r;f=null,s=n-(m?i:a)-p,clearTimeout(o),m?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){f=d},h}function VE(e,t,r,n){var i=e[t];if(i){var a=i[kd]||i,o=i[KS],s=i[qS];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Y0(a,r,n==="debounce"),i[kd]=a,i[KS]=n,i[qS]=r}return i}}function wm(e,t){var r=e[t];r&&r[kd]&&(r.clear&&r.clear(),e[t]=r[kd])}var XS=Et(),ZS={itemStyle:Du(tE,!0),lineStyle:Du(eE,!0)},vK={lineStyle:"stroke",itemStyle:"fill"};function WE(e,t){var r=e.visualStyleMapper||ZS[t];return r||(console.warn("Unknown style type '"+t+"'."),ZS.itemStyle)}function GE(e,t){var r=e.visualDrawType||vK[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var pK={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=GE(e,n),u=o[l],f=Ye(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ye(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Ye(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var p=e.getDataParams(v),m=ue({},o);m[l]=f(p),d.setItemVisual(v,"style",m)}}}},dl=new sr,gK={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]){dl.option=l[n];var u=i(dl),f=o.ensureUniqueItemVisual(s,"style");ue(f,u),dl.option.decal&&(o.setItemVisual(s,"decal",dl.option.decal),dl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},mK={performRawSeries:!0,overallReset:function(e){var t=je();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)),XS(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=XS(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=GE(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},rc=Math.PI;function yK(e,t){t=t||{},ht(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 Ur,n=new Gt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new mr({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 Gt({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 S0({shape:{startAngle:-rc/2,endAngle:-rc/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:rc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:rc*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var UE=function(){function e(t,r,n,i){this._stageTaskMap=je(),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=je();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Ci(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;R(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(m){s(i,m)&&(m.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);v.each(function(m){m.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(m,g){s(i,m)&&m.dirty();var y=o.getPerformArgs(m,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.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=je(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,d=s.set(h,o&&o.get(h)||nu({plan:xK,reset:CK,count:MK}));d.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,d)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||nu({reset:_K});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=je(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,d="";Ci(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,R(n.getSeries(),v));function v(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(h=!0,nu({reset:bK,onDirty:SK})));g.context={model:p,overallProgress:c},g.agent=o,g.__block=c,a._pipe(p,g)}h&&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 Ye(t)&&(t={overallReset:t,seriesType:AK(t)}),t.uid=Ah("stageHandler"),r&&(t.visualType=r),t},e}();function _K(e){e.overallReset(e.ecModel,e.api,e.payload)}function bK(e){return e.overallProgress&&wK}function wK(){this.agent.dirty(),this.getDownstream().dirty()}function SK(){this.agent&&this.agent.dirty()}function xK(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function CK(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=pr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Ne(t,function(r,n){return YE(n)}):TK}var TK=YE(0);function YE(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 MK(e){return e.data.count()}function AK(e){Nd=null;try{e($u,jE)}catch{}return Nd}var $u={},jE={},Nd;qE($u,F0);qE(jE,SE);$u.eachSeriesByType=$u.eachRawSeriesByType=function(e){Nd=e};$u.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Nd=e.subType)};function qE(e,t){for(var r in t.prototype)e[r]=Er}var QS=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const PK={color:QS,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],QS]};var fr="#B9B8CE",JS="#100C2A",nc=function(){return{axisLine:{lineStyle:{color:fr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ex=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],KE={darkMode:!0,color:ex,backgroundColor:JS,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:fr}},textStyle:{color:fr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:fr}},dataZoom:{borderColor:"#71708A",textStyle:{color:fr},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:fr}},timeline:{lineStyle:{color:fr},label:{color:fr},controlStyle:{color:fr,borderColor:fr}},calendar:{itemStyle:{color:JS},dayLabel:{color:fr},monthLabel:{color:fr},yearLabel:{color:fr}},timeAxis:nc(),logAxis:nc(),valueAxis:nc(),categoryAxis:nc(),line:{symbol:"circle"},graph:{color:ex},gauge:{title:{color:fr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:fr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};KE.categoryAxis.splitLine.show=!1;const EK=KE;var LK=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Ee(t)){var a=Un(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};R(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,h,d,v){return c[d]==null||h[v||d]===c[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Sm=["symbol","symbolSize","symbolRotate","symbolOffset"],tx=Sm.concat(["symbolKeepAspect"]),DK={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<Sm.length;o++){var s=Sm[o],l=e.get(s);Ye(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(ue({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Ct(i);function f(c,h){for(var d=e.getRawValue(h),v=e.getDataParams(h),p=0;p<u.length;p++){var m=u[p];c.setItemVisual(h,m,i[m](d,v))}}return{dataEach:a?f:null}}},IK={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<tx.length;s++){var l=tx[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function OK(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 RK(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 kK(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}R([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=ue({},i),o.dispatchAction(ue(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Yo(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,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=sf(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:ye(h)?c.getName(h[0]):c.getName(h),selected:Ee(l)?l:ue({},l)})}})}function NK(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Yo("map","selectchanged",t,i,n),Yo("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Yo("map","selected",t,i,n),Yo("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Yo("map","unselected",t,i,n),Yo("pie","unselected",t,i,n))})}function Ll(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var BK=Math.round(Math.random()*9),FK=typeof Object.defineProperty=="function",$K=function(){function e(){this._id="__ec_inner_"+BK++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return FK?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}(),HK=vt.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()}}),zK=vt.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()}}),VK=vt.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),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),d=o*.6,v=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*d,l+s+h*d,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-f+c*d,l+s+h*d,r-f,l+s),e.closePath()}}),WK=vt.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()}}),GK={line:wo,rect:Gt,roundRect:Gt,square:Gt,circle:w0,diamond:zK,pin:VK,arrow:WK,triangle:HK},UK={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}},xm={};R(GK,function(e,t){xm[t]=new e});var YK=vt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Md(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=xm[n];i||(n="rect",i=xm[n]),UK[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function jK(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 j0(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=jP(e.slice(8),new nt(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=C0(e.slice(7),{},new nt(t,r,n,i),o?"center":"cover"):l=new YK({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=jK,a&&l.setColor(a),l}function qK(e,t){if(e!=null)return ye(e)||(e=[e,e]),[yt(e[0],t[0])||0,yt(Ze(e[1],e[0]),t[1])||0]}function ro(e){return isFinite(e)}function KK(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=ro(n)?n:0,i=ro(i)?i:1,a=ro(a)?a:0,o=ro(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function XK(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=ro(o)?o:.5,s=ro(s)?s:.5,l=l>=0&&ro(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"?XK(e,t,r):KK(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function ZK(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 ic(e){return parseInt(e,10)}function ac(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]||ic(s[n])||ic(e.style[n]))-(ic(s[a])||0)-(ic(s[o])||0)|0}function QK(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Tt(e)?[e]:ye(e)?e:null}function XE(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&QK(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Ne(r,function(a){return a/i}),n/=i)}return[r,n]}var JK=new bo(!0);function Bd(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function rx(e){return typeof e=="string"&&e!=="none"}function Fd(e){var t=e.fill;return t!=null&&t!=="none"}function nx(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 ix(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 Tm(e,t,r){var n=rP(t.image,t.__image,r);if(xh(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)*pU),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function eX(e,t,r,n){var i,a=Bd(r),o=Fd(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||JK,c=t.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,p=a&&!!d.colorStops,m=o&&!!h.image,g=a&&!!d.image,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(v||p)&&(w=t.getBoundingRect()),v&&(y=c?Cm(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=c?Cm(e,d,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),m&&(b=c||!t.__canvasFillPattern?Tm(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),g&&(x=c||!t.__canvasStrokePattern?Tm(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),v?e.fillStyle=y:m&&(b?e.fillStyle=b:o=!1),p?e.strokeStyle=_:g&&(x?e.strokeStyle=x:a=!1)}var S=t.getGlobalScale();f.setScale(S[0],S[1],t.segmentIgnoreThreshold);var C,M;e.setLineDash&&r.lineDash&&(i=XE(t),C=i[0],M=i[1]);var A=!0;(u||c&Qo)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=M),n||(r.strokeFirst?(a&&ix(e,r),o&&nx(e,r)):(o&&nx(e,r),a&&ix(e,r))),C&&e.setLineDash([])}function tX(e,t,r){var n=t.__image=rP(r.image,t.__image,t,t.onload);if(!(!n||!xh(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;e.drawImage(n,u,f,c,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function rX(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||_o,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=XE(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Bd(r)&&e.strokeText(i,r.x,r.y),Fd(r)&&e.fillText(i,r.x,r.y)):(Fd(r)&&e.fillText(i,r.x,r.y),Bd(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var ax=["shadowBlur","shadowOffsetX","shadowOffsetY"],ox=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ZE(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Tr(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?fo.opacity:o}(n||t.blend!==r.blend)&&(a||(Tr(e,i),a=!0),e.globalCompositeOperation=t.blend||fo.blend);for(var s=0;s<ax.length;s++){var l=ax[s];(n||t[l]!==r[l])&&(a||(Tr(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(Tr(e,i),a=!0),e.shadowColor=t.shadowColor||fo.shadowColor),a}function sx(e,t,r,n,i){var a=Hu(t,i.inHover),o=n?null:r&&Hu(r,i.inHover)||{};if(a===o)return!1;var s=ZE(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Tr(e,i),s=!0),rx(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Tr(e,i),s=!0),rx(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Tr(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||(Tr(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<ox.length;f++){var c=ox[f],h=c[0];(n||a[h]!==o[h])&&(s||(Tr(e,i),s=!0),e[h]=a[h]||c[1])}return s}function nX(e,t,r,n,i){return ZE(e,Hu(t,i.inHover),r&&Hu(r,i.inHover),n,i)}function QE(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 iX(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),QE(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function aX(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 lx=1,ux=2,fx=3,cx=4;function oX(e){var t=Fd(e),r=Bd(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 Tr(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Hu(e,t){return t&&e.__hoverStyle||e.style}function JE(e,t){no(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function no(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Br,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||ZK(a,o))&&(o&&o.length&&(Tr(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Tr(e,r),e.save(),iX(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 f=t instanceof vt&&t.autoBatch&&oX(t.style);s||aX(i,u.transform)?(Tr(e,r),QE(e,t)):f||Tr(e,r);var c=Hu(t,r.inHover);t instanceof vt?(r.lastDrawType!==lx&&(l=!0,r.lastDrawType=lx),sx(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),eX(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof im?(r.lastDrawType!==fx&&(l=!0,r.lastDrawType=fx),sx(e,t,u,l,r),rX(e,t,c)):t instanceof Ys?(r.lastDrawType!==ux&&(l=!0,r.lastDrawType=ux),nX(e,t,u,l,r),tX(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==cx&&(l=!0,r.lastDrawType=cx),sX(e,t,r)),f&&n&&Tr(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function sX(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(),no(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),no(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var fp=new $K,dx=new af(100),hx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Mm(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&fp.delete(e);var a=fp.get(e);if(a)return a;var o=ht(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,fp.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<hx.length;++h){var d=o[hx[h]];if(d!=null&&!ye(d)&&!Ee(d)&&!Tt(d)&&typeof d!="boolean"){c=!1;break}f.push(d)}var v;if(c){v=f.join(",")+(i?"-svg":"");var p=dx.get(v);p&&(i?u.svgElement=p:u.image=p)}var m=tL(o.dashArrayX),g=lX(o.dashArrayY),y=eL(o.symbol),_=uX(m),b=rL(g),x=!i&&Gs.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")),A(),c&&dx.put(v,x||w),u.image=x,u.svgElement=w,u.svgWidth=S.width,u.svgHeight=S.height;function M(){for(var P=1,E=0,L=_.length;E<L;++E)P=Aw(P,_[E]);for(var O=1,E=0,L=y.length;E<L;++E)O=Aw(O,y[E].length);P*=O;var N=b*_.length*y.length;return{width:Math.max(1,Math.min(P,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function A(){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 P=0,E=0;E<g.length;++E)P+=g[E];if(P<=0)return;for(var L=-b,O=0,N=0,H=0;L<S.height;){if(O%2===0){for(var V=N/2%y.length,U=0,F=0,z=0;U<S.width*2;){for(var ee=0,E=0;E<m[H].length;++E)ee+=m[H][E];if(ee<=0)break;if(F%2===0){var J=(1-o.symbolSize)*.5,me=U+m[H][F]*J,we=L+g[O]*J,$e=m[H][F]*o.symbolSize,Ie=g[O]*o.symbolSize,B=z/2%y[V].length;Y(me,we,$e,Ie,y[V][B])}U+=m[H][F],++z,++F,F===m[H].length&&(F=0)}++H,H===m.length&&(H=0)}L+=g[O],++N,++O,O===g.length&&(O=0)}function Y(K,Q,oe,pe,D){var I=i?1:r,W=j0(D,K*I,Q*I,oe*I,pe*I,o.color,o.symbolKeepAspect);if(i){var X=n.painter.renderOneToVNode(W);X&&w.children.push(X)}else JE(C,W)}}}}function eL(e){if(!e||e.length===0)return[["rect"]];if(Ee(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Ee(e[r])){t=!1;break}if(t)return eL([e]);for(var n=[],r=0;r<e.length;++r)Ee(e[r])?n.push([e[r]]):n.push(e[r]);return n}function tL(e){if(!e||e.length===0)return[[0,0]];if(Tt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Tt(e[n])){r=!1;break}if(r)return tL([e]);for(var i=[],n=0;n<e.length;++n)if(Tt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Ne(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function lX(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Tt(e)){var t=Math.ceil(e);return[t,t]}var r=Ne(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function uX(e){return Ne(e,function(t){return rL(t)})}function rL(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function fX(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=Mm(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Mm(i,t)}}})}var cX=new ii;const _n=cX;var nL={};function dX(e,t){nL[e]=t}function hX(e){return nL[e]}var vX=1,pX=800,gX=900,mX=1e3,yX=2e3,_X=5e3,iL=1e3,bX=1100,q0=2e3,aL=3e3,wX=4e3,Fh=4500,SX=4600,xX=5e3,CX=6e3,oL=7e3,TX={PROCESSOR:{FILTER:mX,SERIES_FILTER:pX,STATISTIC:_X},VISUAL:{LAYOUT:iL,PROGRESSIVE_LAYOUT:bX,GLOBAL:q0,CHART:aL,POST_CHART_LAYOUT:SX,COMPONENT:wX,BRUSH:xX,CHART_ITEM:Fh,ARIA:CX,DECAL:oL}},nr="__flagInMainProcess",br="__pendingUpdate",cp="__needsUpdateStatus",vx=/^[a-zA-Z0-9_]+$/,dp="__connectUpdateStatus",px=0,MX=1,AX=2;function sL(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return uL(this,e,t)}}function lL(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return uL(this,e,t)}}function uL(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),ii.prototype[t].apply(e,r)}var fL=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ii),cL=fL.prototype;cL.on=lL("on");cL.off=lL("off");var jo,hp,oc,$i,vp,pp,gp,hl,vl,gx,mx,mp,yx,sc,_x,dL,qr,bx,hL=function(e){ge(t,e);function t(r,n,i){var a=e.call(this,new LK)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Ee(n)&&(n=vL[n]),a._dom=r;var o="canvas",s="auto",l=!1,u=a._zr=Tw(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Ze(i.useDirtyRect,l),useCoarsePointer:Ze(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Y0(xt(u.flush,u),17),n=tt(n),n&&CE(n,!0),a._theme=n,a._locale=kj(i.locale||nE),a._coordSysMgr=new $0;var f=a._api=_x(a);function c(h,d){return h.__prio-d.__prio}return $c(Hd,c),$c(Am,c),a._scheduler=new UE(a,f,Am,Hd),a._messageCenter=new fL,a._initEvents(),a.resize=xt(a.resize,a),u.animation.on("frame",a._onframe,a),gx(u,a),mx(u,a),Ng(a),a}return t.prototype._onframe=function(){if(!this._disposed){bx(this);var r=this._scheduler;if(this[br]){var n=this[br].silent;this[nr]=!0;try{jo(this),$i.update.call(this,null,this[br].updateParams)}catch(l){throw this[nr]=!1,this[br]=null,l}this._zr.flush(),this[nr]=!1,this[br]=null,hl.call(this,n),vl.call(this,n)}else if(r.unfinished){var i=vX,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),pp(this,a),r.performVisualTasks(a),sc(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[nr]){if(this._disposed){this.id;return}var a,o,s;if(Re(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[nr]=!0,!this._model||n){var l=new vq(this._api),u=this._theme,f=this._model=new F0;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Pm);var c={seriesTransition:s,optionChanged:!0};if(i)this[br]={silent:a,updateParams:c},this[nr]=!1,this.getZr().wakeUp();else{try{jo(this),$i.update.call(this,null,c)}catch(h){throw this[br]=null,this[nr]=!1,h}this._ssr||this._zr.flush(),this[br]=null,this[nr]=!1,hl.call(this,a),vl.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||He.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(He.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return R(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;R(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return R(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Sx[i]){var l=s,u=s,f=-s,c=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();R(au,function(_,b){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(tt(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),h.push({dom:x,left:w.left,top:w.top})}}),l*=d,u*=d,f*=d,c*=d;var v=f-l,p=c-u,m=Gs.createCanvas(),g=Tw(m,{renderer:n?"svg":"canvas"});if(g.resize({width:v,height:p}),n){var y="";return R(h,function(_){var b=_.left-l,x=_.top-u;y+='<g transform="translate('+b+","+x+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Gt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),R(h,function(_){var b=new Ys({style:{x:_.left*d-l,y:_.top*d-u,image:_.dom}});g.add(b)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return vp(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return vp(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Bv(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Bv(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?OK(s,l,n):RK(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;R(PX,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ll(s,function(v){var p=dt(v);if(p&&p.dataIndex!=null){var m=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=ue({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),R(iu,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),R(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),NK(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&&J2(this.getDom(),X0,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete au[n.id]},t.prototype.resize=function(r){if(!this[nr]){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[br]&&(a==null&&(a=this[br].silent),i=!0,this[br]=null),this[nr]=!0;try{i&&jo(this),$i.update.call(this,{type:"resize",animation:ue({duration:0},r&&r.animation)})}catch(o){throw this[nr]=!1,o}this[nr]=!1,hl.call(this,a),vl.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Re(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Em[r]){var i=Em[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=ue({},r);return n.type=iu[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Re(n)||(n={silent:!!n}),!!$d[r.type]&&this._model){if(this[nr]){this._pendingActions.push(r);return}var i=n.silent;gp.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&He.browser.weChat&&this._throttledZrFlush(),hl.call(this,i),vl.call(this,i)}},t.prototype.updateLabelLayout=function(){_n.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(){jo=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),hp(c,!0),hp(c,!1),h.plan()},hp=function(c,h){for(var d=c._model,v=c._scheduler,p=h?c._componentsViews:c._chartsViews,m=h?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?d.eachComponent(function(w,S){w!=="series"&&b(S)}):d.eachSeries(b);function b(w){var S=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,M=!S&&m[C];if(!M){var A=Un(w.type),P=h?Mi.getClass(A.main,A.sub):ho.getClass(A.sub);M=new P,M.init(d,y),m[C]=M,p.push(M),g.add(M.group)}w.__viewId=M.__id=C,M.__alive=!0,M.__model=w,M.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!h&&v.prepareView(M,w,d,y)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!h&&x.renderTask.dispose(),g.remove(x.group),x.dispose(d,y),p.splice(_,1),m[x.__id]===x&&delete m[x.__id],x.__id=x.group.__ecComponentInfo=null)}},oc=function(c,h,d,v,p){var m=c._model;if(m.setUpdatePayload(d),!v){R([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g={};g[v+"Id"]=d[v+"Id"],g[v+"Index"]=d[v+"Index"],g[v+"Name"]=d[v+"Name"];var y={mainType:v,query:g};p&&(y.subType=p);var _=d.excludeSeriesId,b;_!=null&&(b=je(),R(pr(_),function(w){var S=qn(w,null);S!=null&&b.set(S,!0)})),m&&m.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;if(!S)if(tS(d))if(w instanceof So)d.type===co&&!d.notBlur&&!w.get(["emphasis","disabled"])&&cY(w,d,c._api);else{var C=b0(w.mainType,w.componentIndex,d.name,c._api),M=C.focusSelf,A=C.dispatchers;d.type===co&&M&&!d.notBlur&&lm(w.mainType,w.componentIndex,c._api),A&&R(A,function(P){d.type===co?am(P):om(P)})}else cm(d)&&w instanceof So&&(vY(w,d,c._api),Jw(w),qr(c))},c),m&&m.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;S||x(c[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function x(w){w&&w.__alive&&w[h]&&w[h](w.__model,m,c._api,d)}},$i={prepareAndUpdate:function(c){jo(this),$i.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var d=this._model,v=this._api,p=this._zr,m=this._coordSysMgr,g=this._scheduler;if(d){d.setUpdatePayload(c),g.restoreData(d,c),g.performSeriesTasks(d),m.create(d,v),g.performDataProcessorTasks(d,c),pp(this,d),m.update(d,v),r(d),g.performVisualTasks(d,c),mp(this,d,v,c,h);var y=d.get("backgroundColor")||"transparent",_=d.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),_n.trigger("afterupdate",d,v)}},updateTransform:function(c){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(c);var p=[];d.eachComponent(function(g,y){if(g!=="series"){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,d,v,c);b&&b.update&&p.push(_)}else p.push(_)}});var m=je();d.eachSeries(function(g){var y=h._chartsMap[g.__viewId];if(y.updateTransform){var _=y.updateTransform(g,d,v,c);_&&_.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0,dirtyMap:m}),sc(this,d,v,c,{},m),_n.trigger("afterupdate",d,v)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),ho.markUpdateMethod(c,"updateView"),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),mp(this,h,this._api,c,{}),_n.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,d=this._model;d&&(d.setUpdatePayload(c),d.eachSeries(function(v){v.getData().clearAllVisual()}),ho.markUpdateMethod(c,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,c,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,p){if(v!=="series"){var m=h.getViewOfComponentModel(p);m&&m.__alive&&m.updateVisual(p,d,h._api,c)}}),d.eachSeries(function(v){var p=h._chartsMap[v.__viewId];p.updateVisual(v,d,h._api,c)}),_n.trigger("afterupdate",d,this._api))},updateLayout:function(c){$i.update.call(this,c)}},vp=function(c,h,d,v){if(c._disposed){c.id;return}for(var p=c._model,m=c._coordSysMgr.getCoordinateSystems(),g,y=Bv(p,d),_=0;_<m.length;_++){var b=m[_];if(b[h]&&(g=b[h](p,y,v))!=null)return g}},pp=function(c,h){var d=c._chartsMap,v=c._scheduler;h.eachSeries(function(p){v.updateStreamModes(p,d[p.__viewId])})},gp=function(c,h){var d=this,v=this.getModel(),p=c.type,m=c.escapeConnect,g=$d[p],y=g.actionInfo,_=(y.update||"update").split(":"),b=_.pop(),x=_[0]!=null&&Un(_[0]);this[nr]=!0;var w=[c],S=!1;c.batch&&(S=!0,w=Ne(c.batch,function(O){return O=ht(ue({},O),c),O.batch=null,O}));var C=[],M,A=cm(c),P=tS(c);if(P&&xP(this._api),R(w,function(O){if(M=g.action(O,d._model,d._api),M=M||ue({},O),M.type=y.event||M.type,C.push(M),P){var N=v0(c),H=N.queryOptionMap,V=N.mainTypeSpecified,U=V?H.keys()[0]:"series";oc(d,b,O,U),qr(d)}else A?(oc(d,b,O,"series"),qr(d)):x&&oc(d,b,O,x.main,x.sub)}),b!=="none"&&!P&&!A&&!x)try{this[br]?(jo(this),$i.update.call(this,c),this[br]=null):$i[b].call(this,c)}catch(O){throw this[nr]=!1,O}if(S?M={type:y.event||p,escapeConnect:m,batch:C}:M=C[0],this[nr]=!1,!h){var E=this._messageCenter;if(E.trigger(M.type,M),A){var L={type:"selectchanged",escapeConnect:m,selected:pY(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};E.trigger(L.type,L)}}},hl=function(c){for(var h=this._pendingActions;h.length;){var d=h.shift();gp.call(this,d,c)}},vl=function(c){!c&&this.trigger("updated")},gx=function(c,h){c.on("rendered",function(d){h.trigger("rendered",d),c.animation.isFinished()&&!h[br]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},mx=function(c,h){c.on("mouseover",function(d){var v=d.target,p=Ll(v,fm);p&&(dY(p,d,h._api),qr(h))}).on("mouseout",function(d){var v=d.target,p=Ll(v,fm);p&&(hY(p,d,h._api),qr(h))}).on("click",function(d){var v=d.target,p=Ll(v,function(y){return dt(y).dataIndex!=null},!0);if(p){var m=p.selected?"unselect":"select",g=dt(p);h._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],d=[],v=!1;if(c.eachComponent(function(y,_){var b=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();v=v||!!w,(y==="series"?d:h).push({zlevel:b,z:x,idx:_.componentIndex,type:y,key:w})}),v){var p=h.concat(d),m,g;$c(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),R(p,function(y){var _=c.getComponent(y.type,y.idx),b=y.zlevel,x=y.key;m!=null&&(b=Math.max(m,b)),x?(b===m&&x!==g&&b++,g=x):g&&(b===m&&b++,g=""),m=b,_.setZLevel(b)})}}mp=function(c,h,d,v,p){n(h),yx(c,h,d,v,p),R(c._chartsViews,function(m){m.__alive=!1}),sc(c,h,d,v,p),R(c._chartsViews,function(m){m.__alive||m.remove(h,d)})},yx=function(c,h,d,v,p,m){R(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,h,d,v),s(y,g),f(y,g)})},sc=function(c,h,d,v,p,m){var g=c._scheduler;p=ue(p||{},{updatedSeries:h.getSeries()}),_n.trigger("series:beforeupdate",h,d,p);var y=!1;h.eachSeries(function(_){var b=c._chartsMap[_.__viewId];b.__alive=!0;var x=b.renderTask;g.updatePayload(x,v),u(_,b),m&&m.get(_.uid)&&x.dirty(),x.perform(g.getPerformArgs(x))&&(y=!0),b.group.silent=!!_.get("silent"),o(_,b),Jw(_)}),g.unfinished=y||g.unfinished,_n.trigger("series:layoutlabels",h,d,p),_n.trigger("series:transition",h,d,p),h.eachSeries(function(_){var b=c._chartsMap[_.__viewId];s(_,b),f(_,b)}),a(c,h),_n.trigger("series:afterupdate",h,d,p)},qr=function(c){c[cp]=!0,c.getZr().wakeUp()},bx=function(c){c[cp]&&(c.getZr().storage.traverse(function(h){ds(h)||i(h)}),c[cp]=!1)};function i(c){for(var h=[],d=c.currentStates,v=0;v<d.length;v++){var p=d[v];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===y0&&c.states.emphasis?h.push("emphasis"):c.hoverState===m0&&c.states.blur&&h.push("blur"),c.useStates(h)}function a(c,h){var d=c._zr,v=d.storage,p=0;v.traverse(function(m){m.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!He.node&&!He.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=c._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var d=c.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(c,h){if(!c.preventAutoZ){var d=c.get("z")||0,v=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,d,v,-1/0),!0})}}function l(c,h,d,v){var p=c.getTextContent(),m=c.getTextGuideLine(),g=c.isGroup;if(g)for(var y=c.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],h,d,v),v);else c.z=h,c.zlevel=d,v=Math.max(c.z2,v);if(p&&(p.z=h,p.zlevel=d,isFinite(v)&&(p.z2=v+2)),m){var b=c.textGuideLineConfig;m.z=h,m.zlevel=d,isFinite(v)&&(m.z2=v+(b&&b.showAbove?1:-1))}return v}function u(c,h){h.eachRendered(function(d){if(!ds(d)){var v=d.getTextContent(),p=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function f(c,h){var d=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),p=d.get("duration"),m=p>0?{duration:p,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(ds(g))return;if(g instanceof vt&&bY(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),b=g.getTextGuideLine();_&&(_.stateTransition=m),b&&(b.stateTransition=m)}g.__dirty&&i(g)}})}_x=function(c){return new(function(h){ge(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},d.prototype.enterEmphasis=function(v,p){am(v,p),qr(c)},d.prototype.leaveEmphasis=function(v,p){om(v,p),qr(c)},d.prototype.enterBlur=function(v){fY(v),qr(c)},d.prototype.leaveBlur=function(v){_P(v),qr(c)},d.prototype.enterSelect=function(v){bP(v),qr(c)},d.prototype.leaveSelect=function(v){wP(v),qr(c)},d.prototype.getModel=function(){return c.getModel()},d.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},d}(SE))(c)},dL=function(c){function h(d,v){for(var p=0;p<d.length;p++){var m=d[p];m[dp]=v}}R(iu,function(d,v){c._messageCenter.on(v,function(p){if(Sx[c.group]&&c[dp]!==px){if(p&&p.escapeConnect)return;var m=c.makeActionFromEvent(p),g=[];R(au,function(y){y!==c&&y.group===c.group&&g.push(y)}),h(g,px),R(g,function(y){y[dp]!==MX&&y.dispatchAction(m)}),h(g,AX)}})})}}(),t}(ii),K0=hL.prototype;K0.on=sL("on");K0.off=sL("off");K0.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 PX=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],$d={},iu={},Am=[],Pm=[],Hd=[],vL={},Em={},au={},Sx={},EX=+new Date-0,X0="_echarts_instance_";function Z0(e,t,r){var n=!(r&&r.ssr);if(n){var i=LX(e);if(i)return i}var a=new hL(e,t,r);return a.id="ec_"+EX++,au[a.id]=a,n&&J2(e,X0,a.id),dL(a),_n.trigger("afterinit",a),a}function LX(e){return au[Z9(e,X0)]}function pL(e,t){vL[e]=t}function gL(e){ot(Pm,e)<0&&Pm.push(e)}function mL(e,t){J0(Am,e,t,yX)}function DX(e){Q0("afterinit",e)}function IX(e){Q0("afterupdate",e)}function Q0(e,t){_n.on(e,t)}function Ks(e,t,r){Ye(t)&&(r=t,t="");var n=Re(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!iu[t]&&(Ci(vx.test(n)&&vx.test(t)),$d[n]||($d[n]={action:r,actionInfo:e}),iu[t]=n)}function OX(e,t){$0.register(e,t)}function RX(e,t){J0(Hd,e,t,iL,"layout")}function Do(e,t){J0(Hd,e,t,aL,"visual")}var xx=[];function J0(e,t,r,n,i){if((Ye(t)||Re(t))&&(r=t,t=n),!(ot(xx,r)>=0)){xx.push(r);var a=UE.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function yL(e,t){Em[e]=t}function kX(e,t,r){var n=hX("registerMap");n&&n(e,t,r)}var NX=Hq;Do(q0,pK);Do(Fh,gK);Do(Fh,mK);Do(q0,DK);Do(Fh,IK);Do(oL,fX);gL(CE);mL(gX,Sq);yL("default",yK);Ks({type:co,event:co,update:co},Er);Ks({type:Uc,event:Uc,update:Uc},Er);Ks({type:Ql,event:Ql,update:Ql},Er);Ks({type:Yc,event:Yc,update:Yc},Er);Ks({type:Jl,event:Jl,update:Jl},Er);pL("light",PK);pL("dark",EK);function pl(e){return e==null?0:e.length||1}function Cx(e){return e}var BX=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Cx,this._newKeyGetter=i||Cx,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=pl(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=pl(u),h=pl(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(u[d]);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=pl(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=pl(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const FX=BX;var $X=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 HX(e,t){var r={},n=r.encode={},i=je(),a=[],o=[],s={};R(e.dimensions,function(h){var d=e.getDimensionInfo(h),v=d.coordDim;if(v){var p=d.coordDimIndex;yp(n,v)[p]=h,d.isExtraCoord||(i.set(v,1),VX(d.type)&&(a[0]=h),yp(s,v)[p]=e.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(h)}mE.each(function(m,g){var y=yp(n,g),_=d.otherDims[g];_!=null&&_!==!1&&(y[_]=d.name)})});var l=[],u={};i.each(function(h,d){var v=n[d];u[d]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Ne(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new $X(s,t),r}function yp(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function zX(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function VX(e){return!(e==="ordinal"||e==="time")}var Xc=function(){function e(t){this.otherDims={},t!=null&&ue(this,t)}return e}(),WX=Et(),GX={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},_L=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=SL(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Ze(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=ME(this.source),n=!xL(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=GX[u]||"f",f&&(i+=f.uid),i+="$"}var d=this.source,v=[d.seriesLayoutBy,d.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 bL(e){return e instanceof _L}function wL(e){for(var t=je(),r=0;r<(e||[]).length;r++){var n=e[r],i=Re(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function SL(e){var t=WX(e);return t.dimNameMap||(t.dimNameMap=wL(e.dimensionsDefine))}function xL(e){return e>30}var gl=Re,Hi=Ne,UX=typeof Int32Array>"u"?Array:Int32Array,YX="e\0\0",Tx=-1,jX=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],qX=["_approximateExtent"],Mx,lc,ml,yl,_p,uc,bp,CL=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;bL(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=Ee(c)?new Xc({name:c}):c instanceof Xc?c:new Xc(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};o.push(d),a[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),i&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=je();R(o,function(m){p.set(a[m].storeDimIndex,m)})}}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(Tt(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 mm&&(a=t),!a){var o=this.dimensions,s=H0(t)||Ir(t)?new AE(t,o.length):t;a=new mm;var l=Hi(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=HX(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&&bp(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!==aa&&!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===hn;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&H9(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=qn(h,null));var d=c.id;o[f]==null&&d!=null&&(o[f]=qn(d,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)bp(this,f);Mx(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){gl(t)?ue(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=ml(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 lc(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 ye(t)?i.getValues(Hi(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)?Tx:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Ye(t)&&(n=r,r=t,t=[]);var i=n||this,a=Hi(yl(t),this._getStoreDimIndex,this);this._store.each(a,i?xt(r,i):r)},e.prototype.filterSelf=function(t,r,n){Ye(t)&&(n=r,r=t,t=[]);var i=n||this,a=Hi(yl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?xt(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Ct(t);return R(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){Ye(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=Hi(yl(t),this._getStoreDimIndex,this),s=uc(this);return s._store=this._store.map(o,a?xt(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Hi(yl(t),this._getStoreDimIndex,this);this._store.modify(o,a?xt(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=uc(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=uc(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 sr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new FX(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return lc(t,n)},function(n){return lc(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||{},gl(t)?ue(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),ye(a)?a=a.slice():gl(a)&&(a=ue({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,gl(r)?ue(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){gl(t)?ue(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?ue(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;eY(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){R(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Hi(this.dimensions,this._getDimInfo,this),this.hostModel)),_p(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Ye(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(n0(arguments)))})},e.internalField=function(){Mx=function(t){var r=t._invertedIndicesMap;R(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new UX(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Tx;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},ml=function(t,r,n){return qn(t._getCategory(r,n),null)},lc=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=ml(t,t._idDimIdx,r)),n==null&&(n=YX+r),n},yl=function(t){return ye(t)||(t=t!=null?[t]:[]),t},uc=function(t){var r=new e(t._schema?t._schema:Hi(t.dimensions,t._getDimInfo,t),t.hostModel);return _p(r,t),r},_p=function(t,r){R(jX.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,R(qX,function(n){t[n]=tt(r[n])}),t._calculationInfo=ue({},r._calculationInfo)},bp=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=ml(t,a,r)),l==null&&o!=null&&(i[r]=l=ml(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),e}();function TL(e,t){H0(e)||(e=z0(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=je(),a=[],o=XX(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xL(o),l=n===e.dimensionsDefine,u=l?SL(e):wL(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=je(f),h=new IE(o),d=0;d<h.length;d++)h[d]=-1;function v(M){var A=h[M];if(A<0){var P=n[M],E=Re(P)?P:{name:P},L=new Xc,O=E.name;O!=null&&u.get(O)!=null&&(L.name=L.displayName=O),E.type!=null&&(L.type=E.type),E.displayName!=null&&(L.displayName=E.displayName);var N=a.length;return h[M]=N,L.storeDimIndex=M,a.push(L),L}return a[A]}if(!s)for(var d=0;d<o;d++)v(d);c.each(function(M,A){var P=pr(M).slice();if(P.length===1&&!Ee(P[0])&&P[0]<0){c.set(A,!1);return}var E=c.set(A,[]);R(P,function(L,O){var N=Ee(L)?u.get(L):L;N!=null&&N<o&&(E[O]=N,m(v(N),A,O))})});var p=0;R(r,function(M){var A,P,E,L;if(Ee(M))A=M,L={};else{L=M,A=L.name;var O=L.ordinalMeta;L.ordinalMeta=null,L=ue({},L),L.ordinalMeta=O,P=L.dimsDef,E=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var N=c.get(A);if(N!==!1){if(N=pr(N),!N.length)for(var H=0;H<(P&&P.length||1);H++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&N.push(p++)}R(N,function(V,U){var F=v(V);if(l&&L.type!=null&&(F.type=L.type),m(ht(F,L),A,U),F.name==null&&P){var z=P[U];!Re(z)&&(z={name:z}),F.name=F.displayName=z.name,F.defaultTooltip=z.defaultTooltip}E&&ht(F.otherDims,E)})}});function m(M,A,P){mE.get(A)!=null?M.otherDims[A]=P:(M.coordDim=A,M.coordDimIndex=P,i.set(A,!0))}var g=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=g?y||1:0;var b=g||"value";function x(M){M.name==null&&(M.name=M.coordDim)}if(s)R(a,function(M){x(M)}),a.sort(function(M,A){return M.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var S=v(w),C=S.coordDim;C==null&&(S.coordDim=ZX(b,i,_),S.coordDimIndex=0,(!g||y<=0)&&(S.isExtraCoord=!0),y--),x(S),S.type==null&&(bE(e,w)===Xt.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return KX(a),new _L({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function KX(e){for(var t=je(),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 XX(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;Re(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function ZX(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 QX=function(){function e(t){this.coordSysDims=[],this.axisMap=je(),this.categoryAxisMap=je(),this.coordSysName=t}return e}();function JX(e){var t=e.get("coordinateSystem"),r=new QX(t),n=eZ[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var eZ={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Tn).models[0],a=e.getReferringComponents("yAxis",Tn).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),qo(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),qo(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Tn).models[0];t.coordSysDims=["single"],r.set("single",i),qo(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Tn).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),qo(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),qo(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),qo(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function qo(e){return e.get("type")==="category"}function tZ(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;rZ(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,h;if(R(a,function(y,_){Ee(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,v=f.type,p=0;R(a,function(y){y.coordDim===d&&p++});var m={name:c,coordDim:d,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,v),g.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(a.push(m),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function rZ(e){return!bL(e.schema)}function ML(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function nZ(e,t){return ML(e,t)?e.getCalculationInfo("stackResultDimension"):t}function iZ(e,t){var r=e.get("coordinateSystem"),n=$0.get(r),i;return t&&t.coordSysDims&&(i=Ne(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=zX(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function aZ(e,t,r){var n,i;return r&&R(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function AL(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=z0(e)):(i=n.getSource(),a=i.sourceFormat===hn);var o=JX(t),s=iZ(t,o),l=r.useEncodeDefaulter,u=Ye(l)?l:l?Rt(Kj,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=TL(i,f),h=aZ(c.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(c),v=tZ(t,{schema:c,store:d}),p=new CL(c,t);p.setCalculationInfo(v);var m=h!=null&&oZ(i)?function(g,y,_,b){return b===h?_:this.defaultDimValueGetter(g,y,_,b)}:null;return p.hasItemOption=!1,p.initData(a?i:d,null,m),p}function oZ(e){if(e.sourceFormat===hn){var t=sZ(e.data||[]);return!ye(of(t))}}function sZ(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var oi=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}();Sh(oi);var lZ=0,Lm=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++lZ}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Ne(n,uZ);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(!Ee(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=je(this.categories))},e}();function uZ(e){return Re(e)&&e.value!=null?e.value:e+""}function Dm(e){return e.type==="interval"||e.type==="log"}function fZ(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=q2(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=PL(o),l=i.niceTickExtent=[$t(Math.ceil(e[0]/o)*o,s),$t(Math.floor(e[1]/o)*o,s)];return cZ(l,e),i}function wp(e){var t=Math.pow(10,d0(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,$t(r*t)}function PL(e){return vi(e)+2}function Ax(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function cZ(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Ax(e,0,t),Ax(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function $h(e,t){return e>=t[0]&&e<=t[1]}function Hh(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function zh(e,t){return e*(t[1]-t[0])+t[0]}var EL=function(e){ge(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Lm({})),ye(i)&&(i=new Lm({categories:Ne(i,function(a){return Re(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:Ee(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),$h(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Hh(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(zh(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 f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=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}(oi);oi.registerClass(EL);const LL=EL;var za=$t,DL=function(e){ge(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 $h(r,this._extent)},t.prototype.normalize=function(r){return Hh(r,this._extent)},t.prototype.scale=function(r){return zh(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=PL(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:za(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=za(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:za(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,h=c/r;u<r-1;){var d=za(l.value+(u+1)*h);d>a[0]&&d<a[1]&&f.push(d),u++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=vi(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=za(r.value,i,!0);return hE(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=fZ(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]=za(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=za(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(oi);oi.registerClass(DL);const df=DL;var IL=typeof Float32Array<"u",dZ=IL?Float32Array:Array;function Sp(e){return ye(e)?IL?new Float32Array(e):e:new dZ(e)}var hZ="__ec_stack_";function e_(e){return e.get("stack")||hZ+e.seriesIndex}function t_(e){return e.dim+e.index}function OL(e,t){var r=[];return t.eachSeriesByType(e,function(n){kL(n)&&r.push(n)}),r}function vZ(e){var t={};R(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,d=c.getDimensionIndex(c.mapDimension(f.dim)),v=c.getStore(),p=0,m=v.count();p<m;++p){var g=v.get(d,p);t[h]?t[h].push(g):t[h]=[g]}});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 RL(e){var t=vZ(e),r=[];return R(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var v=yt(n.get("barWidth"),s),p=yt(n.get("barMaxWidth"),s),m=yt(n.get("barMinWidth")||(NL(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:t_(a),stackId:e_(n)})}),pZ(r)}function pZ(e){var t={};R(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var d=n.barGap;d!=null&&(s.gap=d);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ct(a).length;s=Math.max(35-l*4,15)+"%"}var u=yt(s,o),f=yt(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,d=(c-u)/(h+(h-1)*f);d=Math.max(d,0),R(a,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var b=g.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),g.width=b,c-=b+f*b,h--}else{var b=d;y&&y<b&&(b=Math.min(y,c)),_&&_>b&&(b=_),b!==d&&(g.width=b,c-=b+f*b,h--)}}),d=(c-u)/(h+(h-1)*f),d=Math.max(d,0);var v=0,p;R(a,function(g,y){g.width||(g.width=d),p=g,v+=g.width*(1+f)}),p&&(v-=p.width*f);var m=-v/2;R(a,function(g,y){r[i][y]=r[i][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+f)})}),r}function gZ(e,t,r){if(e&&t){var n=e[t_(t)];return n!=null&&r!=null?n[e_(r)]:n}}function mZ(e,t){var r=OL(e,t),n=RL(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=e_(i),u=n[t_(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function yZ(e){return{seriesType:e,plan:HE(),reset:function(t){if(kL(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=ML(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),d=_Z(i,a),v=NL(t),p=t.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var x=_.count,w=v&&Sp(x*3),S=v&&l&&Sp(x*3),C=v&&Sp(x),M=n.master.getRect(),A=h?M.width:M.height,P,E=b.getStore(),L=0;(P=_.next())!=null;){var O=E.get(c?m:o,P),N=E.get(s,P),H=d,V=void 0;c&&(V=+O-E.get(o,P));var U=void 0,F=void 0,z=void 0,ee=void 0;if(h){var J=n.dataToPoint([O,N]);if(c){var me=n.dataToPoint([V,N]);H=me[0]}U=H,F=J[1]+y,z=J[0]-H,ee=g,Math.abs(z)<p&&(z=(z<0?-1:1)*p)}else{var J=n.dataToPoint([N,O]);if(c){var me=n.dataToPoint([N,V]);H=me[1]}U=J[0]+y,F=H,z=g,ee=J[1]-H,Math.abs(ee)<p&&(ee=(ee<=0?-1:1)*p)}v?(w[L]=U,w[L+1]=F,w[L+2]=h?z:ee,S&&(S[L]=h?M.x:U,S[L+1]=h?F:M.y,S[L+2]=A),C[P]=P):b.setItemLayout(P,{x:U,y:F,width:z,height:ee}),L+=3}v&&b.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:S,valueAxisHorizontal:h})}}}}}}function kL(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function NL(e){return e.pipelineContext&&e.pipelineContext.large}function _Z(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var bZ=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},BL=function(e){ge(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 Ph(r.value,mS[$j(hs(this._minLevelUnit))]||mS.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Hj(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=AZ(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]-=on,n[1]+=on),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]-on}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=fc.length,l=Math.min(bZ(fc,this._approxInterval,0,s),s-1);this._interval=fc[l][1],this._minLevelUnit=fc[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Tt(r)?r:+Ti(r)},t.prototype.contain=function(r){return $h(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Hh(this.parse(r),this._extent)},t.prototype.scale=function(r){return zh(r,this._extent)},t.type="time",t}(df),fc=[["second",I0],["minute",O0],["hour",tu],["quarter-day",tu*6],["half-day",tu*12],["day",on*1.2],["half-week",on*3.5],["week",on*7],["month",on*31],["quarter",on*95],["half-year",gS/2],["year",gS]];function wZ(e,t,r,n){var i=Ti(t),a=Ti(r),o=function(v){return yS(i,v,n)===yS(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},d=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return d()}}function SZ(e,t){return e/=on,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function xZ(e){var t=30*on;return e/=t,e>6?6:e>3?3:e>2?2:1}function CZ(e){return e/=tu,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Px(e,t){return e/=t?O0:I0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function TZ(e){return q2(e,!0)}function MZ(e,t,r){var n=new Date(e);switch(hs(t)){case"year":case"month":n[sE(r)](0);case"day":n[lE(r)](1);case"hour":n[uE(r)](0);case"minute":n[fE(r)](0);case"second":n[cE(r)](0),n[dE(r)](0)}return n.getTime()}function AZ(e,t,r,n){var i=1e4,a=aE,o=0;function s(A,P,E,L,O,N,H){for(var V=new Date(P),U=P,F=V[L]();U<E&&U<=n[1];)H.push({value:U}),F+=A,V[O](F),U=V.getTime();H.push({value:U,notAdd:!0})}function l(A,P,E){var L=[],O=!P.length;if(!wZ(hs(A),n[0],n[1],r)){O&&(P=[{value:MZ(new Date(n[0]),A,r)},{value:n[1]}]);for(var N=0;N<P.length-1;N++){var H=P[N].value,V=P[N+1].value;if(H!==V){var U=void 0,F=void 0,z=void 0,ee=!1;switch(A){case"year":U=Math.max(1,Math.round(t/on/365)),F=R0(r),z=zj(r);break;case"half-year":case"quarter":case"month":U=xZ(t),F=vs(r),z=sE(r);break;case"week":case"half-week":case"day":U=SZ(t),F=Eh(r),z=lE(r),ee=!0;break;case"half-day":case"quarter-day":case"hour":U=CZ(t),F=Ru(r),z=uE(r);break;case"minute":U=Px(t,!0),F=Lh(r),z=fE(r);break;case"second":U=Px(t,!1),F=Dh(r),z=cE(r);break;case"millisecond":U=TZ(t),F=Ih(r),z=dE(r);break}s(U,H,V,F,z,ee,L),A==="year"&&E.length>1&&N===0&&E.unshift({value:E[0].value-U})}}for(var N=0;N<L.length;N++)E.push(L[N]);return L}}for(var u=[],f=[],c=0,h=0,d=0;d<a.length&&o++<i;++d){var v=hs(a[d]);if(Fj(a[d])){l(a[d],u[u.length-1]||[],f);var p=a[d+1]?hs(a[d+1]):null;if(v!==p){if(f.length){h=c,f.sort(function(A,P){return A.value-P.value});for(var m=[],g=0;g<f.length;++g){var y=f[g].value;(g===0||f[g-1].value!==y)&&(m.push(f[g]),y>=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(m),c>_||e===a[d]))break}f=[]}}}for(var b=jt(Ne(u,function(A){return jt(A,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(A){return A.length>0}),x=[],w=b.length-1,d=0;d<b.length;++d)for(var S=b[d],C=0;C<S.length;++C)x.push({value:S[C].value,level:w-d});x.sort(function(A,P){return A.value-P.value});for(var M=[],d=0;d<x.length;++d)(d===0||x[d].value!==x[d-1].value)&&M.push(x[d]);return M}oi.registerClass(BL);const PZ=BL;var Ex=oi.prototype,ou=df.prototype,EZ=$t,LZ=Math.floor,DZ=Math.ceil,cc=Math.pow,pn=Math.log,r_=function(e){ge(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new df,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=ou.getTicks.call(this,r);return Ne(o,function(s){var l=s.value,u=$t(cc(this.base,l));return u=l===i[0]&&this._fixMin?dc(u,a[0]):u,u=l===i[1]&&this._fixMax?dc(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=pn(this.base);r=pn(Math.max(0,r))/i,n=pn(Math.max(0,n))/i,ou.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Ex.getExtent.call(this);n[0]=cc(r,n[0]),n[1]=cc(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=dc(n[0],a[0])),this._fixMax&&(n[1]=dc(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=pn(r[0])/pn(n),r[1]=pn(r[1])/pn(n),Ex.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=B9(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[$t(DZ(n[0]/a)*a),$t(LZ(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){ou.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=pn(r)/pn(this.base),$h(r,this._extent)},t.prototype.normalize=function(r){return r=pn(r)/pn(this.base),Hh(r,this._extent)},t.prototype.scale=function(r){return r=zh(r,this._extent),cc(this.base,r)},t.type="log",t}(oi),FL=r_.prototype;FL.getMinorTicks=ou.getMinorTicks;FL.getLabel=ou.getLabel;function dc(e,t){return EZ(e,vi(t))}oi.registerClass(r_);const IZ=r_;var OZ=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);Ye(a)?this._modelMinNum=hc(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=hc(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(Ye(o)?this._modelMaxNum=hc(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=hc(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=ye(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[da(l[0],1),da(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,f=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 c=bd(s)||bd(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,d=this._determinedMax;return h!=null&&(s=h,u=!0),d!=null&&(l=d,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[kZ[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=RZ[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),RZ={min:"_determinedMin",max:"_determinedMax"},kZ={min:"_dataMin",max:"_dataMax"};function NZ(e,t,r){var n=e.rawExtentInfo;return n||(n=new OZ(e,t,r),e.rawExtentInfo=n,n)}function hc(e,t){return t==null?null:bd(t)?NaN:e.parse(t)}function $L(e,t){var r=e.type,n=NZ(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=OL("bar",o),l=!1;if(R(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=RL(s),f=BZ(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function BZ(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=gZ(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;R(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,h=f/c-f;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function Lx(e,t){var r=t,n=$L(e,r),i=n.extent,a=r.get("splitNumber");e instanceof IZ&&(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 FZ(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new LL({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new PZ({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(oi.getClass(t)||df)}}function $Z(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function hf(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):Ee(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Ye(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(n_(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function n_(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function HZ(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof LL?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=hf(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var c=n?n[f]:{value:a[0]+f},h=s(c,f),d=o.getTextRect(h),v=zZ(d,o.get("rotate")||0);l?l.union(v):l=v}return l}}function zZ(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 nt(e.x,e.y,a,o);return s}function i_(e){var t=e.get("interval");return t??"auto"}function HL(e){return e.type==="category"&&i_(e.getLabelModel())===0}function VZ(e,t){var r={};return R(e.mapDimensionsAll(t),function(n){r[nZ(e,n)]=!0}),Ct(r)}var WZ=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),Dx=[],GZ={registerPreprocessor:gL,registerProcessor:mL,registerPostInit:DX,registerPostUpdate:IX,registerUpdateLifecycle:Q0,registerAction:Ks,registerCoordinateSystem:OX,registerLayout:RX,registerVisual:Do,registerTransform:NX,registerLoading:yL,registerMap:kX,registerImpl:dX,PRIORITY:TX,ComponentModel:Mt,ComponentView:Mi,SeriesModel:So,ChartView:ho,registerComponentModel:function(e){Mt.registerClass(e)},registerComponentView:function(e){Mi.registerClass(e)},registerSeriesModel:function(e){So.registerClass(e)},registerChartView:function(e){ho.registerClass(e)},registerSubTypeDefaulter:function(e,t){Mt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){L9(e,t)}};function va(e){if(ye(e)){R(e,function(t){va(t)});return}ot(Dx,e)>=0||(Dx.push(e),Ye(e)&&(e={install:e}),e.install(GZ))}var zu=Et();function UZ(e){return e.type==="category"?jZ(e):KZ(e)}function YZ(e,t){return e.type==="category"?qZ(e,t):{ticks:Ne(e.scale.getTicks(),function(r){return r.value})}}function jZ(e){var t=e.getLabelModel(),r=zL(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function zL(e,t){var r=VL(e,"labels"),n=i_(t),i=WL(r,n);if(i)return i;var a,o;return Ye(n)?a=YL(e,n):(o=n==="auto"?XZ(e):n,a=UL(e,o)),GL(r,n,{labels:a,labelCategoryInterval:o})}function qZ(e,t){var r=VL(e,"ticks"),n=i_(t),i=WL(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Ye(n))a=YL(e,n,!0);else if(n==="auto"){var s=zL(e,e.getLabelModel());o=s.labelCategoryInterval,a=Ne(s.labels,function(l){return l.tickValue})}else o=n,a=UL(e,o,!0);return GL(r,n,{ticks:a,tickCategoryInterval:o})}function KZ(e){var t=e.scale.getTicks(),r=hf(e);return{labels:Ne(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function VL(e,t){return zu(e)[t]||(zu(e)[t]=[])}function WL(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function GL(e,t,r){return e.push({key:t,value:r}),r}function XZ(e){var t=zu(e).autoInterval;return t??(zu(e).autoInterval=e.calculateCategoryInterval())}function ZZ(e){var t=QZ(e),r=hf(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),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,d=0;l<=a[1];l+=s){var v=0,p=0,m=u0(r({value:l}),t.font,"center","top");v=m.width*1.3,p=m.height*1.3,h=Math.max(h,v,7),d=Math.max(d,p,7)}var g=h/f,y=d/c;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(g,y))),b=zu(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 QZ(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 UL(e,t,r){var n=hf(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=HL(e),h=o.get("showMinLabel")||c,d=o.get("showMaxLabel")||c;h&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);d&&v-l!==a[1]&&p(a[1]);function p(m){var g={value:m};s.push(r?m:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:m})}return s}function YL(e,t,r){var n=e.scale,i=hf(e),a=[];return R(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Ix=[0,1],JZ=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 O9(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(),Ox(n,i.count())),Jg(t,Ix,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Ox(n,i.count()));var a=Jg(t,n,Ix,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=YZ(this,r),i=n.ticks,a=Ne(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return eQ(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=Ne(n,function(a){return Ne(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return UZ(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 ZZ(this)},e}();function Ox(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function eQ(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[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;R(t,function(d){d.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(d,v){return d=$t(d),v=$t(v),c?d>v:d<v}}const tQ=JZ;var _l=Math.PI*2,Va=bo.CMD,rQ=["top","right","bottom","left"];function nQ(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 iQ(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 f=o*r+e,c=s*r+t;if(Math.abs(n-i)%_l<1e-4)return l[0]=f,l[1]=c,u-r;if(a){var h=n;n=pi(i),i=pi(h)}else n=pi(n),i=pi(i);n>i&&(i+=_l);var d=Math.atan2(s,o);if(d<0&&(d+=_l),d>=n&&d<=i||d+_l>=n&&d+_l<=i)return l[0]=f,l[1]=c,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,m=r*Math.cos(i)+e,g=r*Math.sin(i)+t,y=(v-o)*(v-o)+(p-s)*(p-s),_=(m-o)*(m-o)+(g-s)*(g-s);return y<_?(l[0]=v,l[1]=p,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(_))}function zd(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,f=r-e,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var d=l*f+u*c,v=d/h;s&&(v=Math.min(Math.max(v,0),1)),v*=h;var p=o[0]=e+v*f,m=o[1]=t+v*c;return Math.sqrt((p-i)*(p-i)+(m-a)*(m-a))}function jL(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var bn=[];function aQ(e,t,r){var n=jL(t.x,t.y,t.width,t.height,e.x,e.y,bn);return r.set(bn[0],bn[1]),n}function oQ(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,c=e.x,h=e.y,d=0;d<f.length;){var v=f[d++];d===1&&(n=f[d],i=f[d+1],a=n,o=i);var p=u;switch(v){case Va.M:a=f[d++],o=f[d++],n=a,i=o;break;case Va.L:p=zd(n,i,f[d],f[d+1],c,h,bn,!0),n=f[d++],i=f[d++];break;case Va.C:p=R2(n,i,f[d++],f[d++],f[d++],f[d++],f[d],f[d+1],c,h,bn),n=f[d++],i=f[d++];break;case Va.Q:p=N2(n,i,f[d++],f[d++],f[d],f[d+1],c,h,bn),n=f[d++],i=f[d++];break;case Va.A:var m=f[d++],g=f[d++],y=f[d++],_=f[d++],b=f[d++],x=f[d++];d+=1;var w=!!(1-f[d++]);s=Math.cos(b)*y+m,l=Math.sin(b)*_+g,d<=1&&(a=s,o=l);var S=(c-m)*_/y+m;p=iQ(m,g,_,b,b+x,w,S,h,bn),n=Math.cos(b+x)*y+m,i=Math.sin(b+x)*_+g;break;case Va.R:a=n=f[d++],o=i=f[d++];var C=f[d++],M=f[d++];p=jL(a,o,C,M,c,h,bn);break;case Va.Z:p=zd(n,i,a,o,c,h,bn,!0),n=a,i=o;break}p<u&&(u=p,r.set(bn[0],bn[1]))}return u}var Mn=new Fe,ut=new Fe,Lt=new Fe,Yn=new Fe,Wn=new Fe;function Rx(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||rQ,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=e.getComputedTransform(),c=f&&bh([],f),h=t.get("length2")||0;u&&Lt.copy(u);for(var d=0;d<o.length;d++){var v=o[d];nQ(v,0,s,Mn,Yn),Fe.scaleAndAdd(ut,Mn,Yn,h),ut.transform(c);var p=e.getBoundingRect(),m=u?u.distance(ut):e instanceof vt?oQ(ut,e.path,Lt):aQ(ut,p,Lt);m<l&&(l=m,ut.transform(f),Lt.transform(f),Lt.toArray(a[0]),ut.toArray(a[1]),Mn.toArray(a[2]))}qL(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var Vd=[],dr=new Fe;function qL(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Mn.fromArray(e[0]),ut.fromArray(e[1]),Lt.fromArray(e[2]),Fe.sub(Yn,Mn,ut),Fe.sub(Wn,Lt,ut);var r=Yn.len(),n=Wn.len();if(!(r<.001||n<.001)){Yn.scale(1/r),Wn.scale(1/n);var i=Yn.dot(Wn),a=Math.cos(t);if(a<i){var o=zd(ut.x,ut.y,Lt.x,Lt.y,Mn.x,Mn.y,Vd,!1);dr.fromArray(Vd),dr.scaleAndAdd(Wn,o/Math.tan(Math.PI-t));var s=Lt.x!==ut.x?(dr.x-ut.x)/(Lt.x-ut.x):(dr.y-ut.y)/(Lt.y-ut.y);if(isNaN(s))return;s<0?Fe.copy(dr,ut):s>1&&Fe.copy(dr,Lt),dr.toArray(e[1])}}}}function sQ(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Mn.fromArray(e[0]),ut.fromArray(e[1]),Lt.fromArray(e[2]),Fe.sub(Yn,ut,Mn),Fe.sub(Wn,Lt,ut);var n=Yn.len(),i=Wn.len();if(!(n<.001||i<.001)){Yn.scale(1/n),Wn.scale(1/i);var a=Yn.dot(t),o=Math.cos(r);if(a<o){var s=zd(ut.x,ut.y,Lt.x,Lt.y,Mn.x,Mn.y,Vd,!1);dr.fromArray(Vd);var l=Math.PI/2,u=Math.acos(Wn.dot(t)),f=l+u-r;if(f>=l)Fe.copy(dr,Lt);else{dr.scaleAndAdd(Wn,s/Math.tan(Math.PI/2-f));var c=Lt.x!==ut.x?(dr.x-ut.x)/(Lt.x-ut.x):(dr.y-ut.y)/(Lt.y-ut.y);if(isNaN(c))return;c<0?Fe.copy(dr,ut):c>1&&Fe.copy(dr,Lt)}dr.toArray(e[1])}}}}function kx(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 lQ(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=Fg(n[0],n[1]),a=Fg(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=gv([],n[1],n[0],o/i),l=gv([],n[1],n[2],o/a),u=gv([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function KL(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<Ed.length;l++){var u=Ed[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),d=c?s:Ze(i.states[u]&&i.states[u].ignore,s);if(d||!Ze(h,o)){var v=c?n:n&&n.states[u];v&&(v.ignore=!0);continue}n||(n=new ff,e.setTextGuideLine(n),!c&&(s||!o)&&kx(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),kx(n,!1,u,f)}}if(n){ht(n.style,r),n.style.fill=null;var p=a.get("showAbove"),m=e.textGuideLineConfig=e.textGuideLineConfig||{};m.showAbove=p||!1,n.buildPath=lQ}}function XL(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Jn.length;n++){var i=Jn[n];r[i]=e.getModel([i,t])}return r}function ZL(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 f=s?new Ld(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function QL(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,f=0,c=0;c<o;c++){var h=e[c],d=h.rect;l=d[t]-s,l<0&&(d[t]-=l,h.label[t]-=l,u=!0);var v=Math.max(-l,0);f+=v,s=d[t]+d[r]}f>0&&a&&x(-f/o,0,o);var p=e[0],m=e[o-1],g,y;_(),g<0&&w(-g,.8),y<0&&w(y,.8),_(),b(g,y,1),b(y,g,-1),_(),g<0&&S(-g),y<0&&S(y);function _(){g=p.rect[t]-n,y=i-m.rect[t]-m.rect[r]}function b(C,M,A){if(C<0){var P=Math.min(M,-C);if(P>0){x(P*A,0,o);var E=P+C;E<0&&w(-E*A,1)}else w(-C*A,1)}}function x(C,M,A){C!==0&&(u=!0);for(var P=M;P<A;P++){var E=e[P],L=E.rect;L[t]+=C,E.label[t]+=C}}function w(C,M){for(var A=[],P=0,E=1;E<o;E++){var L=e[E-1].rect,O=Math.max(e[E].rect[t]-L[t]-L[r],0);A.push(O),P+=O}if(P){var N=Math.min(Math.abs(C)/P,M);if(C>0)for(var E=0;E<o-1;E++){var H=A[E]*N;x(H,0,E+1)}else for(var E=o-1;E>0;E--){var H=A[E-1]*N;x(-H,E,o)}}}function S(C){var M=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),P=0;P<o-1;P++)if(M>0?x(A,0,P+1):x(-A,o-P-1,o),C-=A,C<=0)return}return u}function uQ(e,t,r,n){return QL(e,"x","width",t,r,n)}function JL(e,t,r,n){return QL(e,"y","height",t,r,n)}function eD(e){var t=[];e.sort(function(p,m){return m.priority-p.priority});var r=new nt(0,0,0,0);function n(p){if(!p.ignore){var m=p.ensureState("emphasis");m.ignore==null&&(m.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,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,h=!1,d=0;d<t.length;d++){var v=t[d];if(r.intersect(v.rect)){if(o&&v.axisAligned){h=!0;break}if(v.obb||(v.obb=new Ld(v.localRect,v.transform)),c||(c=new Ld(s,l)),c.intersect(v.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function fQ(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function cQ(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:fQ(n&&n.shape.points)}}var Nx=["align","verticalAlign","width","height","fontSize"],lr=new wh,xp=Et(),dQ=Et();function vc(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var pc=["x","y","rotation"],hQ=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(),f=i.getBoundingRect().plain();nt.applyTransform(f,f,u),u?lr.setLocalTransform(u):(lr.x=lr.y=lr.rotation=lr.originX=lr.originY=0,lr.scaleX=lr.scaleY=1),lr.rotation=pi(lr.rotation);var c=i.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var d=c.getComputedTransform();nt.applyTransform(h,h,d)}var v=h&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:lr.x,y:lr.y,scaleX:lr.scaleX,scaleY:lr.scaleY,rotation:lr.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");(Ye(i)||Ct(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=dt(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(){Rx(_,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;Ye(o.layoutOption)?f=o.layoutOption(cQ(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=yt(f.x,r),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=yt(f.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:f.labelLinePoints}),h=!1)}var v=xp(s);v.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Nx.length;p++){var m=Nx[p];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",i(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=ZL(this._labelList),a=jt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=jt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});uQ(a,0,r),JL(o,0,n);var s=jt(i,function(l){return l.layoutOption.hideOverlap});eD(s)},e.prototype.processLabelsOverall=function(){var t=this;R(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=xp(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=dt(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");KL(t,XL(s),l),Rx(t,c)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!ds(t))){var a=xp(n),o=a.oldLayout,s=dt(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(ot(h,"select")>=0&&n.attr(a.oldLayoutSelect),ot(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Or(n,u,r,l)}else if(n.attr(u),!cf(n).valueAnimation){var c=Ze(n.style.opacity,1);n.style.opacity=0,Wr(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var d=a.oldLayoutSelect={};vc(d,u,pc),vc(d,n.states.select,pc)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};vc(v,u,pc),vc(v,n.states.emphasis,pc)}Sj(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=dQ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Or(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,Wr(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}(),Cp=Et();function vQ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=Cp(r).labelManager;i||(i=Cp(r).labelManager=new hQ),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=Cp(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function pQ(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Rs(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Rs(e,t,r[o]));return a.join(" ")}}function gQ(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!ye(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 mQ(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new Gt({shape:{x:o,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),d=h.isHorizontal(),v=h.inverse;d?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var p=Ye(i)?function(m){i(m,c)}:null;Wr(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function yQ(e,t,r){var n=e.getArea(),i=$t(n.r0,1),a=$t(n.r,1),o=new Eo({shape:{cx:$t(e.cx,1),cy:$t(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,Wr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function _Q(e,t,r,n,i){if(e){if(e.type==="polar")return yQ(e,t,r);if(e.type==="cartesian2d")return mQ(e,t,r,n,i)}else return null;return null}function tD(e,t){return e.type===t}var bQ={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]}},wQ=function(e){return Math.round(e.length/2)};function SQ(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),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),d=Math.round(s/h);if(isFinite(d)&&d>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var v=void 0;Ee(a)?v=bQ[a]:Ye(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,v,wQ))}}}}}var Im=function(e){ge(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.clampData(r),s=a.dataToPoint(o);if(i)R(a.getAxes(),function(h,d){if(h.type==="category"&&n!=null){var v=h.getTicksCoords(),p=o[d],m=n[d]==="x1"||n[d]==="y1";if(m&&(p+=1),v.length<2)return;if(v.length===2){s[d]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var g=void 0,y=void 0,_=1,b=0;b<v.length;b++){var x=v[b].coord,w=b===v.length-1?v[b-1].tickValue+_:v[b].tickValue;if(w===p){y=x;break}else if(w<p)g=x;else if(g!=null&&w>p){y=(x+g)/2;break}b===1&&(_=w-v[0].tickValue)}y==null&&(g?g&&(y=v[v.length-1].coord):y=v[0].coord),s[d]=h.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}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}(So);So.registerClass(Im);var xQ=function(e){ge(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=rE(Im.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}(Im);const CQ=xQ;var TQ=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}(),Bx=function(e){ge(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new TQ},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,d=Math.PI*2,v=h?c-f<d:f-c<d;v||(f=c-(h?d:-d));var p=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);v?(r.moveTo(p*o+i,m*o+a),r.arc(p*u+i,m*u+a,l,-Math.PI+f,f,!h)):r.moveTo(p*s+i,m*s+a),r.arc(i,a,s,f,c,!h),r.arc(g*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&r.arc(i,a,o,c,f,h)},t}(vt);function MQ(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Md(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,d=u.r0,v=(h+d)/2,p=u.startAngle,m=u.endAngle,g=(p+m)/2,y=r?Math.abs(h-d)/2:0,_=Math.cos,b=Math.sin,x=f+h*_(p),w=c+h*b(p),S="left",C="top";switch(s){case"startArc":x=f+(d-l)*_(g),w=c+(d-l)*b(g),S="center",C="top";break;case"insideStartArc":x=f+(d+l)*_(g),w=c+(d+l)*b(g),S="center",C="bottom";break;case"startAngle":x=f+v*_(p)+gc(p,l+y,!1),w=c+v*b(p)+mc(p,l+y,!1),S="right",C="middle";break;case"insideStartAngle":x=f+v*_(p)+gc(p,-l+y,!1),w=c+v*b(p)+mc(p,-l+y,!1),S="left",C="middle";break;case"middle":x=f+v*_(g),w=c+v*b(g),S="center",C="middle";break;case"endArc":x=f+(h+l)*_(g),w=c+(h+l)*b(g),S="center",C="bottom";break;case"insideEndArc":x=f+(h-l)*_(g),w=c+(h-l)*b(g),S="center",C="top";break;case"endAngle":x=f+v*_(m)+gc(m,l+y,!0),w=c+v*b(m)+mc(m,l+y,!0),S="left",C="middle";break;case"insideEndAngle":x=f+v*_(m)+gc(m,-l+y,!0),w=c+v*b(m)+mc(m,-l+y,!0),S="right",C="middle";break;default:return Md(n,i,a)}return n=n||{},n.x=x,n.y=w,n.align=S,n.verticalAlign=C,n}}function AQ(e,t,r,n){if(Tt(n)){e.setTextConfig({rotation:n});return}else if(ye(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 f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function gc(e,t,r){return t*Math.sin(e)*(r?-1:1)}function mc(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Dl(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;ye(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Ne(n,function(a){return da(a,i)})}}var Tp=Math.max,Mp=Math.min;function PQ(e,t){var r=e.getArea&&e.getArea();if(tD(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 EQ=function(e){ge(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){P0(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,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=r.isAnimationEnabled()?r:null,d=LQ(r,u);d&&this._enableRealtimeSort(d,s,i);var v=r.get("clip",!0)||d,p=PQ(u,s);o.removeClipPath();var m=r.get("roundCap",!0),g=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(P){var E=yc[u.type](s,P),L=BQ(u,c,E);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),b[P]=L,L}s.diff(l).add(function(P){var E=s.getItemModel(P),L=yc[u.type](s,P,E);if(g&&C(P),!(!s.hasValue(P)||!Vx[u.type](L))){var O=!1;v&&(O=Fx[u.type](p,L));var N=$x[u.type](r,s,P,L,c,h,f.model,!1,m);d&&(N.forceLabelAnimation=!0),Wx(N,s,P,E,L,r,c,u.type==="polar"),w?N.attr({shape:L}):d?Hx(d,h,N,L,P,c,!1,!1):Wr(N,{shape:L},r,P),s.setItemGraphicEl(P,N),o.add(N),N.ignore=O}}).update(function(P,E){var L=s.getItemModel(P),O=yc[u.type](s,P,L);if(g){var N=void 0;x.length===0?N=C(E):(N=x[E],N.useStyle(y.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",_):N.setShape("cornerRadius",_),b[P]=N);var H=yc[u.type](s,P),V=nD(c,H,u);Or(N,{shape:V},h,P)}var U=l.getItemGraphicEl(E);if(!s.hasValue(P)||!Vx[u.type](O)){o.remove(U);return}var F=!1;if(v&&(F=Fx[u.type](p,O),F&&o.remove(U)),U?YP(U):U=$x[u.type](r,s,P,O,c,h,f.model,!!U,m),d&&(U.forceLabelAnimation=!0),S){var z=U.getTextContent();if(z){var ee=cf(z);ee.prevValue!=null&&(ee.prevValue=ee.value)}}else Wx(U,s,P,L,O,r,c,u.type==="polar");w?U.attr({shape:O}):d?Hx(d,h,U,O,P,c,!0,S):Or(U,{shape:O},r,P,null),s.setItemGraphicEl(P,U),U.ignore=F,o.add(U)}).remove(function(P){var E=l.getItemGraphicEl(P);E&&Dd(E,r,P)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Ur);M.removeAll();for(var A=0;A<b.length;++A)M.add(b[A]);o.add(M),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),Ux(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Ux(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&_Q(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),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.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:Ne(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 f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Dd(a,r,dt(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}(ho),Fx={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=Tp(t.x,e.x),s=Mp(t.x+t.width,i),l=Tp(t.y,e.y),u=Mp(t.y+t.height,a),f=s<o,c=u<l;return t.x=f&&o>i?s:o,t.y=c&&l>a?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Mp(t.r,e.r),a=Tp(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}},$x={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Gt({shape:ue({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?Bx:Eo,f=new u({shape:n,z2:1});f.name="item";var c=rD(i);if(f.calculateTextPosition=MQ(c,{isRoundCap:u===Bx}),a){var h=f.shape,d=i?"r":"endAngle",v={};h[d]=i?n.r0:n.startAngle,v[d]=n[d],(s?Or:Wr)(f,{shape:v},a)}return f}};function LQ(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 Hx(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?Or:Wr)(r,{shape:l},t,i,null);var f=t?e.baseAxis.model:null;(o?Or:Wr)(r,{shape:u},f,i)}function zx(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var DQ=["x","y","width","height"],IQ=["cx","cy","r","startAngle","endAngle"],Vx={cartesian2d:function(e){return!zx(e,DQ)},polar:function(e){return!zx(e,IQ)}},yc={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?RQ(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 OQ(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function rD(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 Wx(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,c=Dl(n.getModel("itemStyle"),f,!0);ue(f,c),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var h=n.getShallow("cursor");h&&e.attr("cursor",h);var d=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",v=JP(n);E0(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:pQ(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var p=e.getTextContent();if(s&&p){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,AQ(e,m==="outside"?d:m,rD(o),n.get(["label","rotate"]))}wj(p,v,a.getRawValue(r),function(y){return gQ(t,y)});var g=n.getModel(["emphasis"]);CP(e,g.get("focus"),g.get("blurScope"),g.get("disabled")),TP(e,n),OQ(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function RQ(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 kQ=function(){function e(){}return e}(),Gx=function(e){ge(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new kQ},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},t}(vt);function Ux(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 f=new Gx({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),r&&r.push(f)}var c=new Gx({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(i.getVisual("style")),dt(c).seriesIndex=e.seriesIndex,e.get("silent")||(c.on("mousedown",Yx),c.on("mousemove",Yx)),r&&r.push(c)}var Yx=Y0(function(e){var t=this,r=NQ(t,e.offsetX,e.offsetY);dt(t).dataIndex=r>=0?r:null},30,!1);function NQ(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=a.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+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[f]}return-1}function nD(e,t,r){if(tD(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 BQ(e,t,r){var n=e.type==="polar"?Eo:Gt;return new n({shape:nD(t,r,e),silent:!0,z2:0})}const FQ=EQ;function $Q(e){e.registerChartView(FQ),e.registerSeriesModel(CQ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Rt(mZ,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yZ("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,SQ("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 _c=Math.PI*2,jx=Math.PI/180;function iD(e,t){return Is(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function aD(e,t){var r=iD(e,t),n=e.get("center"),i=e.get("radius");ye(i)||(i=[0,i]);var a=yt(r.width,t.getWidth()),o=yt(r.height,t.getHeight()),s=Math.min(a,o),l=yt(i[0],s/2),u=yt(i[1],s/2),f,c,h=e.coordinateSystem;if(h){var d=h.dataToPoint(n);f=d[0]||0,c=d[1]||0}else ye(n)||(n=[n,n]),f=yt(n[0],a)+r.x,c=yt(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function HQ(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=iD(n,r),s=aD(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*jx,d=n.get("minAngle")*jx,v=0;i.each(a,function(A){!isNaN(A)&&v++});var p=i.getSum(a),m=Math.PI/(p||v)*2,g=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var x=_c,w=0,S=h,C=g?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(A,P){var E;if(isNaN(A)){i.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:c,r:y?NaN:f});return}y!=="area"?E=p===0&&_?m:A*m:E=_c/v,E<d?(E=d,x-=d):w+=A;var L=S+C*E;i.setItemLayout(P,{angle:E,startAngle:S,endAngle:L,clockwise:g,cx:l,cy:u,r0:c,r:y?Jg(A,b,[c,f]):f}),S=L}),x<_c&&v)if(x<=.001){var M=_c/v;i.each(a,function(A,P){if(!isNaN(A)){var E=i.getItemLayout(P);E.angle=M,E.startAngle=h+C*P*M,E.endAngle=h+C*(P+1)*M}})}else m=x/w,S=h,i.each(a,function(A,P){if(!isNaN(A)){var E=i.getItemLayout(P),L=E.angle===d?d:A*m;E.startAngle=S,E.endAngle=S+C*L,S+=C*L}})})}function zQ(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 VQ=Math.PI/180;function qx(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function f(p){for(var m=p.rB,g=m*m,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/g))*w),C=t+(S+_.len2)*i,M=C-_.label.x,A=_.targetTextWidth-M*i;oD(_,A,!0),_.label.x=C}}function c(p){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],b=_.label.y>r?g:m,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(_)}f(m),f(g)}for(var h=e.length,d=0;d<h;d++)if(e[d].position==="outer"&&e[d].labelAlignTo==="labelLine"){var v=e[d].label.x-u;e[d].linePoints[1][0]+=v,e[d].label.x=u}JL(e,l,l+o)&&c(e)}function WQ(e,t,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<e.length;h++){var d=e[h].label;Ap(e[h])||(d.x<t?(f=Math.min(f,d.x),l.push(e[h])):(c=Math.max(c,d.x),u.push(e[h])))}for(var h=0;h<e.length;h++){var v=e[h];if(!Ap(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var d=v.label,p=v.linePoints,m=void 0;v.labelAlignTo==="edge"?d.x<t?m=p[2][0]-v.labelDistance-o-v.edgeDistance:m=o+i-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?d.x<t?m=f-o-v.bleedMargin:m=o+i-c-v.bleedMargin:d.x<t?m=d.x-o-v.bleedMargin:m=o+i-d.x-v.bleedMargin,v.targetTextWidth=m,oD(v,m)}}qx(u,t,r,n,1,i,a,o,s,c),qx(l,t,r,n,-1,i,a,o,s,f);for(var h=0;h<e.length;h++){var v=e[h];if(!Ap(v)&&v.linePoints){var d=v.label,p=v.linePoints,g=v.labelAlignTo==="edge",y=d.style.padding,_=y?y[1]+y[3]:0,b=d.style.backgroundColor?0:_,x=v.rect.width+b,w=p[1][0]-p[2][0];g?d.x<t?p[2][0]=o+v.edgeDistance+x+v.labelDistance:p[2][0]=o+i-v.edgeDistance-x-v.labelDistance:(d.x<t?p[2][0]=d.x+v.labelDistance:p[2][0]=d.x-v.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=d.y}}}function oD(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,f=a.width+(o?0:l);if(t<f||r){var c=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var d=t-l,v=t<f?d:r?d>e.unconstrainedWidth?null:d:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var m=(n.style.margin||0)+2.1;a.height=p.height+m,a.y-=(a.height-c)/2}}}function Ap(e){return e.position==="center"}function GQ(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*VQ,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function d(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(),A=S.getTextGuideLine(),P=t.getItemModel(w),E=P.getModel("label"),L=E.get("position")||P.get(["emphasis","label","position"]),O=E.get("distanceToLabelLine"),N=E.get("alignTo"),H=yt(E.get("edgeDistance"),u),V=E.get("bleedMargin"),U=P.getModel("labelLine"),F=U.get("length");F=yt(F,u);var z=U.get("length2");if(z=yt(z,u),Math.abs(C.endAngle-C.startAngle)<o){R(M.states,d),M.ignore=!0,A&&(R(A.states,d),A.ignore=!0);return}if(v(M)){var ee=(C.startAngle+C.endAngle)/2,J=Math.cos(ee),me=Math.sin(ee),we,$e,Ie,B;n=C.cx,i=C.cy;var Y=L==="inside"||L==="inner";if(L==="center")we=C.cx,$e=C.cy,B="center";else{var K=(Y?(C.r+C.r0)/2*J:C.r*J)+n,Q=(Y?(C.r+C.r0)/2*me:C.r*me)+i;if(we=K+J*3,$e=Q+me*3,!Y){var oe=K+J*(F+l-C.r),pe=Q+me*(F+l-C.r),D=oe+(J<0?-1:1)*z,I=pe;N==="edge"?we=J<0?f+H:f+u-H:we=D+(J<0?-O:O),$e=I,Ie=[[K,Q],[oe,pe],[D,I]]}B=Y?"center":N==="edge"?J>0?"right":"left":J>0?"left":"right"}var W=Math.PI,X=0,j=E.get("rotate");if(Tt(j))X=j*(W/180);else if(L==="center")X=0;else if(j==="radial"||j===!0){var le=J<0?-ee+W:-ee;X=le}else if(j==="tangential"&&L!=="outside"&&L!=="outer"){var fe=Math.atan2(J,me);fe<0&&(fe=W*2+fe);var ae=me>0;ae&&(fe=W+fe),X=fe-W}if(a=!!X,M.x=we,M.y=$e,M.rotation=X,M.setStyle({verticalAlign:"middle"}),Y){M.setStyle({align:B});var de=M.states.select;de&&(de.x+=M.x,de.y+=M.y)}else{var se=M.getBoundingRect().clone();se.applyTransform(M.getComputedTransform());var ne=(M.style.margin||0)+2.1;se.y-=ne/2,se.height+=ne,r.push({label:M,labelLine:A,position:L,len:F,len2:z,minTurnAngle:U.get("minTurnAngle"),maxSurfaceAngle:U.get("maxSurfaceAngle"),surfaceNormal:new Fe(J,me),linePoints:Ie,textAlign:B,labelDistance:O,labelAlignTo:N,edgeDistance:H,bleedMargin:V,rect:se,unconstrainedWidth:se.width,labelStyleWidth:M.style.width})}S.setTextConfig({inside:Y})}}),!a&&e.get("avoidLabelOverlap")&&WQ(r,n,i,l,u,h,f,c);for(var p=0;p<r.length;p++){var m=r[p],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(R(g.states,d),g.ignore=!0);var b=g.states.select;b&&(b.x+=g.x,b.y+=g.y)}if(y){var x=m.linePoints;_||!x?(R(y.states,d),y.ignore=!0):(qL(x,m.minTurnAngle),sQ(x,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:x}),g.__hostTarget.textGuideLineConfig={anchor:new Fe(x[0][0],x[0][1])})}}}var UQ=function(e){ge(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new mr;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"),f=r.getItemLayout(n),c=ue(Dl(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Wr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Wr(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Wr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Or(o,{shape:{endAngle:f.endAngle}},s,n))}else YP(o),Or(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),TP(o,l);var d=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(d)*v,m=Math.sin(d)*v,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=ue({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Dl(u.getModel("itemStyle"),f)),ue(o.ensureState("select"),{x:p,y:m,shape:Dl(l.getModel(["select","itemStyle"]),f)}),ue(o.ensureState("blur"),{shape:Dl(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&ue(y.ensureState("select"),{x:p,y:m}),ue(_.ensureState("select"),{x:p,y:m}),CP(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,f=l&&l.opacity;E0(a,JP(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=r.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new ff,this.setTextGuideLine(d)),KL(this,XL(o),{stroke:u,opacity:Yl(s.get(["lineStyle","opacity"]),f,1)})}},t}(Eo),YQ=function(e){ge(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 f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var h=new Eo({shape:aD(r,i)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var v=new UQ(o,d,u);o.setItemGraphicEl(d,v),l.add(v)}).update(function(d,v){var p=s.getItemGraphicEl(v);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var v=s.getItemGraphicEl(d);Dd(v,r,d)}).execute(),GQ(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}(ho);const jQ=YQ;function qQ(e,t,r){t=ye(t)&&{coordDimensions:t}||ue({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=TL(n,t).dimensions,a=new CL(i,e);return a.initData(n,r),a}var KQ=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 XQ=KQ;var ZQ=Et(),QQ=function(e){ge(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 XQ(xt(this.getData,this),xt(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return qQ(this,{coordDimensions:["value"],encodeDefaulter:Rt(Xj,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=ZQ(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=R9(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){em(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}(So);const JQ=QQ;function eJ(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!(Tt(o)&&!isNaN(o)&&o<0)})}}}function tJ(e){e.registerChartView(jQ),e.registerSeriesModel(JQ),kK("pie",e.registerAction),e.registerLayout(Rt(HQ,"pie")),e.registerProcessor(zQ("pie")),e.registerProcessor(eJ("pie"))}var rJ=function(e){ge(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}(Mt);const nJ=rJ;var Om=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Tn).models[0]},t.type="cartesian2dAxis",t}(Mt);ni(Om,WZ);var sD={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)"]}}},iJ=st({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},sD),a_=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}}},sD),aJ=st({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a_),oJ=ht({logBase:10},a_);const sJ={category:iJ,value:a_,time:aJ,log:oJ};var lJ={value:1,category:1,time:1,log:1};function Kx(e,t,r,n){R(lJ,function(i,a){var o=st(st({},sJ[a],!0),n,!0),s=function(l){ge(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Nu(this),d=h?Rh(f):{},v=c.getTheme();st(f,v.get(a+"Axis")),st(f,this.getDefaultOption()),f.type=Xx(f),h&&Os(f,d,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Lm.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Xx)}function Xx(e){return e.type||(e.data?"category":"value")}var uJ=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 Ne(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),jt(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 fJ=uJ;var Rm=["x","y"];function Zx(e){return e.type==="interval"||e.type==="time"}var cJ=function(e){ge(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Rm,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Zx(r)||!Zx(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-i[0]*f,d=o[1]-a[0]*c,v=this._transform=[f,0,0,c,h,d];this._invTransform=bh([],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 nt(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 un(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 un(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 nt(i,a,o,s)},t}(fJ),dJ=function(e){ge(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}(tQ);const hJ=dJ;function km(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,v=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[h[l]]:c[0],u==="x"?v[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[s],a.labelOffset=o?v[h[s]]-v[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Au(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function Qx(e){return e.get("coordinateSystem")==="cartesian2d"}function Jx(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Tn).models[0];t[n]=a}),t}var Pp=Math.log;function vJ(e,t,r){var n=df.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=$L(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(e.type==="log"){var h=Pp(e.base);u=[Pp(u[0])/h,Pp(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var d=n.getExtent.call(e);f&&(u[0]=d[0]),c&&(u[1]=d[1]);var v=n.getInterval.call(e),p=u[0],m=u[1];if(f&&c)v=(m-p)/o;else if(f)for(m=u[0]+v*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)v=wp(v),m=u[0]+v*o;else if(c)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=wp(v),p=u[1]-v*o;else{var g=e.getTicks().length-1;g>o&&(v=wp(v));var y=v*o;m=Math.ceil(u[1]/v)*v,p=$t(m-y),p<0&&u[0]>=0?(p=0,m=$t(y)):m>0&&u[1]<=0&&(m=0,p=-$t(y))}var _=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+v*_,m+v*b),n.setInterval.call(e,v),(_||b)&&n.setNiceExtent.call(e,p+v,m-v)}var pJ=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Rm,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=Ct(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],d=o[h],v=d.model,p=d.scale;Dm(p)&&v.get("alignTicks")&&v.get("interval")==null?f.push(d):(Lx(p,v),Dm(p)&&(s=d))}f.length&&(s||(s=f.pop(),Lx(s.scale,s.model)),R(f,function(m){vJ(m.scale,m.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){eC(n,"y",o,a)}),R(n.y,function(o){eC(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=Is(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=HZ(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),gJ(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Re(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",Tn).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Tn).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,R(s.x,function(f,c){R(s.y,function(h,d){var v="x"+c+"y"+d,p=new cJ(v);p.master=i,p.model=t,i._coordsMap[v]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(Ep(c,t)){var d=c.get("position");f==="x"?d!=="top"&&d!=="bottom"&&(d=o.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=o.left?"right":"left"),o[d]=!0;var v=new hJ(f,FZ(c),[0,0],c.get("type"),d),p=v.type==="category";v.onBand=p&&c.get("boundaryGap"),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=h,a._axesList.push(v),s[f][h]=v,l[f]++}}}},e.prototype._updateScale=function(t,r){R(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(Qx(i)){var a=Jx(i),o=a.xAxisModel,s=a.yAxisModel;if(!Ep(o,r)||!Ep(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){R(VZ(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return R(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(Qx(i)){var a=Jx(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=Rm,e}();function Ep(e,t){return e.getCoordSysModel()===t}function eC(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)tC(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&tC(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function tC(e){return e&&e.type!=="category"&&e.type!=="time"&&$Z(e)}function gJ(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 mJ=pJ;var ea=Math.PI,vo=function(){function e(t,r){this.group=new Ur,this.opt=r,this.axisModel=t,ht(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ur({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!rC[t]},e.prototype.add=function(t){rC[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=j2(r-t),a,o;return Ad(i)?(o=n>0?"top":"bottom",a="center"):Ad(i-ea)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<ea?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}(),rC={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&&(un(s,s,o),un(l,l,o));var f=ue({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new wo({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Iu(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var d=t.get(["axisLine","symbolSize"]);Ee(h)&&(h=[h,h]),(Ee(d)||Tt(d))&&(d=[d,d]);var v=qK(t.get(["axisLine","symbolOffset"])||0,d),p=d[0],m=d[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(h[y]!=="none"&&h[y]!=null){var _=j0(h[y],-p/2,-m/2,p,m,f.stroke,!0),b=g.r+g.offset,x=u?l:s;_.attr({rotation:g.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=bJ(r,n,t,e),a=SJ(r,n,t,e);if(_J(t,a,i),wJ(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=ZL(Ne(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));eD(o)}},axisName:function(e,t,r,n){var i=Au(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,iC(a)?e.labelOffset+o*l:0],h,d=t.get("nameRotate");d!=null&&(d=d*ea/180);var v;iC(a)?h=vo.innerTextLayout(e.rotation,d??e.rotation,o):(h=yJ(e.rotation,a,d||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),m=t.get("nameTruncate",!0)||{},g=m.ellipsis,y=Au(e.nameTruncateMaxWidth,m.maxWidth,v),_=new mr({x:c[0],y:c[1],rotation:h.rotation,silent:vo.isLabelSilent(t),style:ha(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(A0({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=vo.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,dt(_).eventData=b}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function yJ(e,t,r,n){var i=j2(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ad(i-ea/2)?(o=l?"bottom":"top",a="center"):Ad(i-ea*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<ea*1.5&&i>ea/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function _J(e,t,r){if(!HL(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(Kr(a),Kr(u)):nC(a,o)&&(n?(Kr(o),Kr(f)):(Kr(a),Kr(u))),i===!1?(Kr(s),Kr(c)):nC(l,s)&&(i?(Kr(l),Kr(h)):(Kr(s),Kr(c)))}}function Kr(e){e&&(e.ignore=!0)}function nC(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=a0([]);return o0(i,i,-e.rotation),r.applyTransform(fs([],i,e.getLocalTransform())),n.applyTransform(fs([],i,t.getLocalTransform())),r.intersect(n)}}function iC(e){return e==="middle"||e==="center"}function lD(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&&(un(o,o,t),un(s,s,t));var f=new wo({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Iu(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f)}return a}function bJ(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(),f=lD(u,t.transform,l,ht(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}}function wJ(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=ht(s.getLineStyle(),ht(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=lD(o[f],t.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)e.add(c[h])}}function SJ(e,t,r,n){var i=r.axis,a=Au(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Au(n.labelRotate,o.get("rotate"))||0)*ea/180,f=vo.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],d=vo.isLabelSilent(r),v=r.get("triggerEvent");return R(l,function(p,m){var g=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,b=o;if(c&&c[g]){var x=c[g];Re(x)&&x.textStyle&&(b=new sr(x.textStyle,o,r.ecModel))}var w=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),S=i.dataToCoord(g),C=new mr({x:S,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:d,z2:10+(p.level||0),style:ha(b,{text:y,align:b.getShallow("align",!0)||f.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||f.textVerticalAlign,fill:Ye(w)?w(i.type==="category"?_:i.type==="value"?g+"":g,m):w})});if(C.anid="label_"+g,v){var M=vo.makeAxisEventDataBase(r);M.targetType="axisLabel",M.value=_,M.tickIndex=m,i.type==="category"&&(M.dataIndex=g),dt(C).eventData=M}t.add(C),C.updateTransform(),h.push(C),e.add(C),C.decomposeTransform()}),h}}const uD=vo;function xJ(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return CJ(r,e,t),r.seriesInvolved&&MJ(r,e),r}function CJ(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];R(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Vu(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(R(s.getAxes(),Rt(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",d=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&R(v.baseAxes,Rt(p,d?"cross":!0,h)),d&&R(v.otherAxes,Rt(p,"cross",!1))}function p(m,g,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!m&&!Nm(_))){g==null&&(g=_.get("triggerTooltip")),_=m?TJ(y,c,i,t,m,g):_;var x=_.get("snap"),w=_.get("triggerEmphasis"),S=Vu(y.model),C=g||x||y.type==="category",M=e.axesInfo[S]={key:S,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:w,involveSeries:C,snap:x,useHandle:Nm(_),seriesModels:[],linkGroup:null};u[S]=M,e.seriesInvolved=e.seriesInvolved||C;var A=AJ(a,y);if(A!=null){var P=o[A]||(o[A]={axesInfo:{}});P.axesInfo[S]=M,P.mapper=a[A].mapper,M.linkGroup=P}}}})}function TJ(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};R(s,function(h){l[h]=tt(o.get(h))}),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 f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&ht(u,c.textStyle)}}return e.model.getModel("axisPointer",new sr(l,r,n))}function MJ(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||R(e.coordSysAxesInfo[Vu(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 AJ(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Lp(a[n+"AxisId"],r.id)||Lp(a[n+"AxisIndex"],r.componentIndex)||Lp(a[n+"AxisName"],r.name))return i}}function Lp(e,t){return e==="all"||ye(e)&&ot(e,t)>=0||e===t}function PJ(e){var t=o_(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=Nm(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 o_(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Vu(e)]}function EJ(e){var t=o_(e);return t&&t.axisPointerModel}function Nm(e){return!!e.get(["handle","show"])}function Vu(e){return e.type+"||"+e.id}var aC={},fD=function(e){ge(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&&PJ(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=EJ(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){aC[r]=n},t.getAxisPointerClass=function(r){return r&&aC[r]},t.type="axis",t}(Mi),Bm=Et();function LJ(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 f=s.length,c=Bm(e).splitAreaColors,h=je(),d=0;if(c)for(var v=0;v<u.length;v++){var p=c.get(u[v].tickValue);if(p!=null){d=(p+(f-1)*v)%f;break}}var m=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=ye(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()?(_=m,b=l.y,x=y-_,w=l.height,m=_+x):(_=l.x,b=m,x=l.width,w=y-b,m=b+w);var S=u[v-1].tickValue;S!=null&&h.set(S,d),t.add(new Gt({anid:S!=null?"area_"+S:null,shape:{x:_,y:b,width:x,height:w},style:ht({fill:s[d]},g),autoBatch:!0,silent:!0})),d=(d+1)%f}Bm(e).splitAreaColors=h}}}function DJ(e){Bm(e).splitAreaColors=null}var IJ=["axisLine","axisTickLabel","axisName"],OJ=["splitArea","splitLine","minorSplitLine"],cD=function(e){ge(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 Ur,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=km(s,r),u=new uD(r,ue({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),d=0;d<h.length;d++)if(Dm(h[d].getOtherAxis(r.axis).scale))return!0;return!1}},l));R(IJ,u.add,u),this._axisGroup.add(u.getGroup()),R(OJ,function(c){r.get([c,"show"])&&RJ[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||XP(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){DJ(this)},t.type="cartesianAxis",t}(fD),RJ={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=ye(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:a}),h=[],d=[],v=o.getLineStyle(),p=0;p<c.length;p++){var m=i.toGlobalCoord(c[p].coord);u?(h[0]=m,h[1]=l.y,d[0]=m,d[1]=l.y+l.height):(h[0]=l.x,h[1]=m,d[0]=l.x+l.width,d[1]=m);var g=f++%s.length,y=c[p].tickValue,_=new wo({anid:y!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:ht({stroke:s[g]},v),silent:!0});Iu(_.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 f=[],c=[],h=o.getLineStyle(),d=0;d<u.length;d++)for(var v=0;v<u[d].length;v++){var p=i.toGlobalCoord(u[d][v].coord);l?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var m=new wo({anid:"minor_line_"+u[d][v].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});Iu(m.shape,h.lineWidth),t.add(m)}},splitArea:function(e,t,r,n){LJ(e,t,r,n)}},dD=function(e){ge(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(cD),kJ=function(e){ge(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=dD.type,r}return t.type="yAxis",t}(cD),NJ=function(e){ge(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 Gt({shape:r.coordinateSystem.getRect(),style:ht({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Mi),oC={offset:0};function BJ(e){e.registerComponentView(NJ),e.registerComponentModel(nJ),e.registerCoordinateSystem("cartesian2d",mJ),Kx(e,"x",Om,oC),Kx(e,"y",Om,oC),e.registerComponentView(dD),e.registerComponentView(kJ),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function sC(e,t,r){var n=Gs.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 FJ=function(e){ge(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||Td,typeof r=="string"?o=sC(r,n,i):Re(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(S2(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=sC("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 nt(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new nt(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 nt(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 A=y.width*y.height,P=C.width*C.height,E=u.width*u.height,L=E-A-P;L<x&&(x=L,w=S)}}if(l&&(o[w].union(y),b=!0),!b){var _=new nt(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=r[c];if(h){var d=h.shouldBePainted(i,a,!0,!0),v=h.__isRendered&&(h.__dirty&Br||!d)?h.getPrevPaintRect():null;v&&f(v);var p=d&&(h.__dirty&Br||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],d=h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&f(v)}}var m;do{m=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(m=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(m);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,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var d=this.domBack;function v(p,m,g,y){if(o.clearRect(p,m,g,y),n&&n!=="transparent"){var _=void 0;if(yh(n)){var b=n.global||n.__width===g&&n.__height===y;_=b&&n.__canvasGradient||Cm(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=_,n.__width=g,n.__height=y}else fU(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Tm(o,n,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(d,p,m,g,y),o.restore())}!i||u?v(0,0,s,l):i.length&&R(i,function(p){v(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(ii);const Dp=FJ;var lC=1e5,Wa=314159,bc=.01,$J=.001;function HJ(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function zJ(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 VJ=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=ue({},n||{}),this.dpr=n.devicePixelRatio||Td,this._singleCanvas=a,this.root=t;var o=t.style;o&&(S2(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var d=new Dp(f,this,this.dpr);d.__builtin__=!0,d.initContext(),l[Wa]=d,d.zlevel=Wa,s.push(Wa),this._domRoot=t}else{this._width=ac(t,0,n),this._height=ac(t,1,n);var u=this._domRoot=zJ(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(lC)),a||(a=n.ctx,a.save()),no(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(lC)},e.prototype.paintOne=function(t,r){JE(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;Wg(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Wa).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 f=!0,c=!1,h=function(p){var m=a[p],g=m.ctx,y=o&&m.createRepaintRects(t,r,d._width,d._height),_=n?m.__startIndex:m.__drawIndex,b=!n&&m.incremental&&Date.now,x=b&&Date.now(),w=m.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,w,y);else if(_===m.__startIndex){var S=t[_];(!S.incremental||!S.notClear||n)&&m.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=m.__startIndex);var C,M=function(L){var O={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<m.__endIndex;C++){var N=t[C];if(N.__inHover&&(c=!0),i._doPaintEl(N,m,o,L,O,C===m.__endIndex-1),b){var H=Date.now()-x;if(H>15)break}}O.prevElClipPaths&&g.restore()};if(y)if(y.length===0)C=m.__endIndex;else for(var A=d.dpr,P=0;P<y.length;++P){var E=y[P];g.save(),g.beginPath(),g.rect(E.x*A,E.y*A,E.width*A,E.height*A),g.clip(),M(E),g.restore()}else g.save(),M(),g.restore();m.__drawIndex=C,m.__drawIndex<m.__endIndex&&(f=!1)},d=this,v=0;v<a.length;v++)h(v);return He.wxa&&R(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},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))&&(no(s,t,a,o),t.setPrevPaintRect(l))}else no(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Wa);var n=this._layers[t];return n||(n=new Dp("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?st(n,this._layerConfig[t],!0):this._layerConfig[t-bc]&&st(n,this._layerConfig[t-bc],!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]&&HJ(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(c,h){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}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,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+$J,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?bc:0),this._needsManuallyCompositing),f.__builtin__||r0("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Br&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?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+bc){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=ac(a,0,i),r=ac(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(Wa).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[Wa].dom;var r=new Dp("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(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.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 f=s[l];no(n,f,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const WJ=VJ;function GJ(e){e.registerPainter("canvas",WJ)}var Ka=Et(),uC=tt,Ip=xt,UJ=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 f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ur,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=Rt(fC,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}dC(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=o_(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 mj[a.type](uC(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ka(t).labelEl=new mr(uC(r.label));t.add(a),cC(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}),cC(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=M0(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){C2(u.event)},onmousedown:Ip(this._onHandleDragMove,this,0,0),drift:Ip(this._onHandleDragMove,this),ondragend:Ip(this._onHandleDragEnd,this)}),n.add(i)),dC(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ye(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,VE(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){fC(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Op(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(Op(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Op(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),wm(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 fC(e,t,r,n){hD(Ka(r).lastProp,n)||(Ka(r).lastProp=n,t?Or(r,n,e):(r.stopAnimation(),r.attr(n)))}function hD(e,t){if(Re(e)&&Re(t)){var r=!0;return R(t,function(n,i){r=r&&hD(e[i],n)}),!!r}else return e===t}function cC(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Op(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function dC(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 YJ=UJ;function jJ(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 qJ(e,t,r,n,i){var a=r.get("value"),o=vD(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Oh(s.get("padding")||0),u=s.getFont(),f=u0(o,u),c=i.position,h=f.width+l[1]+l[3],d=f.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=h),v==="center"&&(c[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=d),p==="middle"&&(c[1]-=d/2),KJ(c,h,d,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:ha(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function KJ(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 vD(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:n_(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Ee(o)?a=o.replace("{value}",a):Ye(o)&&(a=o(s))}return a}function pD(e,t,r){var n=Pu();return o0(n,n,r.rotation),Vg(n,n,r.position),T0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function XJ(e,t,r,n,i,a){var o=uD.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),qJ(t,n,i,a,{position:pD(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ZJ(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function QJ(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var JJ=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=hC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=jJ(a),d=eee[u](s,c,f);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=km(l.model,i);XJ(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=km(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=pD(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=hC(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,d=[h,h];d[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[f]}},t}(YJ);function hC(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var eee={line:function(e,t,r){var n=ZJ([t,r[0]],[t,r[1]],vC(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:QJ([t-n/2,r[0]],[n,i],vC(e))}}};function vC(e){return e.dim==="x"?0:1}const tee=JJ;var ree=function(e){ge(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,triggerEmphasis:!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}(Mt);const nee=ree;var gi=Et(),iee=R;function gD(e,t,r){if(!He.node){var n=t.getZr();gi(n).records||(gi(n).records={}),aee(n,t);var i=gi(n).records[e]||(gi(n).records[e]={});i.handler=r}}function aee(e,t){if(gi(e).initialized)return;gi(e).initialized=!0,r("click",Rt(pC,"click")),r("mousemove",Rt(pC,"mousemove")),r("globalout",see);function r(n,i){e.on(n,function(a){var o=lee(t);iee(gi(e).records,function(s){s&&i(s,a,o.dispatchAction)}),oee(o.pendings,t)})}}function oee(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 see(e,t,r){e.handler("leave",null,r)}function pC(e,t,r,n){t.handler(e,r,n)}function lee(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 Fm(e,t){if(!He.node){var r=t.getZr(),n=(gi(r).records||{})[e];n&&(gi(r).records[e]=null)}}var uee=function(e){ge(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";gD("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){Fm("axisPointer",n)},t.prototype.dispose=function(r,n){Fm("axisPointer",n)},t.type="axisPointer",t}(Mi);const fee=uee;function mD(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=sf(a,e);if(o==null||o<0||ye(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,d=c==="x"||c==="radius"?1:0,v=a.mapDimension(h),p=[];p[d]=a.get(v,o),p[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Ne(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var gC=Et();function cee(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||xt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Zc(i)&&(i=mD({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Zc(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Zc(i),h={},d={},v={list:[],map:{}},p={showPointer:Rt(hee,d),showTooltip:Rt(vee,v)};R(s.coordSysMap,function(g,y){var _=l||g.containPoint(i);R(s.coordSysAxesInfo[y],function(b,x){var w=b.axis,S=yee(u,b);if(!c&&_&&(!u||S)){var C=S&&S.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&mC(b,C,p,!1,h)}})});var m={};return R(f,function(g,y){var _=g.linkGroup;_&&!d[y]&&R(_.axesInfo,function(b,x){var w=d[x];if(b!==g&&w){var S=w.value;_.mapper&&(S=g.axis.scale.parse(_.mapper(S,yC(b),yC(g)))),m[g.key]=S}})}),R(m,function(g,y){mC(f[y],g,p,!0,h)}),pee(d,f,h),gee(v,i,e,o),mee(f,o,r),h}}function mC(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=dee(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&ue(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function dee(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(f,e,r);h=d.dataIndices,c=d.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var v=e-c,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=c,a.length=0),R(h,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function hee(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function vee(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=Vu(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function pee(e,t,r){var n=r.axesInfo=[];R(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function gee(e,t,r,n){if(Zc(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 mee(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=gC(n)[i]||{},o=gC(n)[i]={};R(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&R(c.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});var s=[],l=[];R(a,function(u,f){!o[f]&&l.push(u)}),R(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function yee(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 yC(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 Zc(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function yD(e){fD.registerAxisPointerClass("CartesianAxisPointer",tee),e.registerComponentModel(nee),e.registerComponentView(fee),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ye(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=xJ(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},cee)}function _ee(e){va(BJ),va(yD)}function bee(e,t){var r=Oh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Gt({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 wee=function(e){ge(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}(Mt);const See=wee;function _D(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function bD(e){if(He.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var wD=bD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),xee=bD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function SD(e,t){if(!e)return t;t=vE(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function Cee(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var Tee=SD(xee,"transition"),s_=SD(wD,"transform"),Mee="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(He.transform3dSupported?"will-change:transform;":"");function Aee(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Pee(e,t,r){if(!Ee(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=ku(t);var a=Aee(r),o=Math.max(Math.round(i)*1.5,6),s="",l=s_+":",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 f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+d+"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 Eee(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+=He.transformSupported?","+s_+n:",left"+n+",top"+n),Tee+":"+i}function _C(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!He.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=He.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+s_+":"+o+";":[["top",0],["left",0],[wD,o]]}function Lee(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Dee(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=$E(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(Eee(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(d){var v="border-"+d,p=vE(v),m=e.get(p);m!=null&&n.push(v+":"+m+(d==="color"?"":"px"))}),n.push(Lee(f)),c!=null&&n.push("padding:"+Oh(c).join("px ")+"px"),n.join(";")+";"}function bC(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&TU(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 Iee=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,He.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;bC(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Qr(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=Cee(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,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=Mee+Dee(t,!this._firstShow,this._longHide)+_C(a[0],a[1],!0)+("border-color:"+ku(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(Ee(a)&&n.get("trigger")==="item"&&!_D(n)&&(s=Pee(n,i,a)),Ee(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ye(t)||(t=[t]);for(var l=0;l<t.length;l++)_d(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(bC(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=_C(n[0],n[1]);R(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",He.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)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(xt(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 Oee=Iee;var Ree=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,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(),this._alwaysShowContent=r},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;Re(t)&&Cr(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new mr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:$E(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),R(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),R(["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=wC(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=Ui(a.borderWidth||0),s=wC(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)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(xt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Ui(e){return Math.max(0,e)}function wC(e){var t=Ui(e.shadowBlur||0),r=Ui(e.shadowOffsetX||0),n=Ui(e.shadowOffsetY||0);return{left:Ui(t-r),right:Ui(t+r),top:Ui(t-n),bottom:Ui(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()}var kee=new Gt({shape:{x:-1,y:-1,width:2,height:2}}),Nee=function(e){ge(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(!(He.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=Q9(i.get("renderMode"));this._tooltipContent=a==="richText"?new Ree(n):new Oee(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(r,n,i){if(!(He.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?VE(this,"_updatePosition",50,"fixRate"):wm(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");gD("itemTooltip",this._api,xt(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||He.node||!i.getDom())){var o=xC(a,i);this._ticket="";var s=a.dataByCoordSys,l=Hee(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=kee;f.x=a.x,f.y=a.y,f.update(),dt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=mD(a,n),h=c.point[0],d=c.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(xC(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=bl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Ll(i,function(u){if(dt(u).dataIndex!=null)return s=u,!0;if(dt(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=xt(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=bl([n.tooltipOption],a),l=this._renderMode,u=[],f=Fu("section",{blocks:[],noHeader:!0}),c=[],h=new up;R(r,function(y){R(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var w=vD(x,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),S=Fu("section",{header:w,noHeader:!Gn(w),sortBlocks:!0,blocks:[]});f.blocks.push(S),R(_.seriesDataIndices,function(C){var M=i.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,P=M.getDataParams(A);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=n_(b.axis,{value:x}),P.axisValueLabel=w,P.marker=h.makeTooltipMarker("item",ku(P.color),l);var E=FS(M.formatTooltip(A,!0,null)),L=E.frag;if(L){var O=bl([M],a).get("valueFormatter");S.blocks.push(O?ue({valueFormatter:O},L):L)}E.text&&c.push(E.text),u.push(P)}})}})}),f.blocks.reverse(),c.reverse();var d=n.position,v=s.get("order"),p=WS(f,h,l,v,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var m=l==="richText"?`
 
-`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=dt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),d=this._renderMode,v=r.positionDefault,p=bl([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new up;g.marker=y.makeTooltipMarker("item",ku(g.color),d);var _=FS(u.formatTooltip(f,!1,c)),b=p.get("order"),x=p.get("valueFormatter"),w=_.frag,S=w?WS(x?ue({valueFormatter:x},w):w,y,d,b,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,S,g,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=dt(n),o=a.tooltipConfig,s=o.option||{};if(Ee(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,h=bl(u,this._tooltipModel,c?{position:c}:null),d=h.get("content"),v=Math.random()+"",p=new up;this._showOrMove(h,function(){var m=tt(h.get("formatterParams")||{});this._showTooltipContent(h,d,m,v,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(h)if(Ee(h)){var m=r.ecModel.get("useUTC"),g=ye(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;d=h,y&&(d=Ph(g.axisValue,d,m)),d=pE(d,i,!0)}else if(Ye(h)){var _=xt(function(b,x){b===this._ticket&&(c.setContent(x,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,d=h(i,a,_)}else d=h;c.setContent(d,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ye(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ye(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Ye(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),ye(n))i=yt(n[0],u),a=yt(n[1],f);else if(Re(n)){var p=n;p.width=c[0],p.height=c[1];var m=Ls(p,{width:u,height:f});i=m.x,a=m.y,h=null,d=null}else if(Ee(n)&&l){var g=$ee(n,v,c,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=Bee(i,a,o,u,f,h?null:20,d?null:20);i=g[0],a=g[1]}if(h&&(i-=CC(h)?c[0]/2:h==="right"?c[0]:0),d&&(a-=CC(d)?c[1]/2:d==="bottom"?c[1]:0),_D(r)){var g=Fee(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&R(u,function(h,d){var v=c[d]||{},p=h.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&p.length===m.length,o&&R(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&R(h.seriesDataIndices,function(g){var y=g.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){He.node||!n.getDom()||(wm(this,"_updatePosition"),this._tooltipContent.dispose(),Fm("itemTooltip",n))},t.type="tooltip",t}(Mi);function bl(e,t,r){var n=t.ecModel,i;r?(i=new sr(r,n,n),i=new sr(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof sr&&(o=o.get("tooltip",!0)),Ee(o)&&(o={formatter:o}),o&&(i=new sr(o,i,n)))}return i}function xC(e,t){return e.dispatchAction||xt(t.dispatchAction,t)}function Bee(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 Fee(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 $ee(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function CC(e){return e==="center"||e==="middle"}function Hee(e,t,r){var n=v0(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=lf(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=dt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const zee=Nee;function Vee(e){va(yD),e.registerComponentModel(See),e.registerComponentView(zee),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Er),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Er)}var Wee=function(e){ge(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}(Mt),Gee=function(e){ge(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=Ze(r.get("textBaseline"),r.get("textVerticalAlign")),f=new mr({style:ha(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),d=new mr({style:ha(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),m=r.get("triggerEvent",!0);f.silent=!v&&!m,d.silent=!p&&!m,v&&f.on("click",function(){bS(v,"_"+r.get("target"))}),p&&d.on("click",function(){bS(p,"_"+r.get("subtarget"))}),dt(f).eventData=dt(d).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(d);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.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};f.setStyle(b),d.setStyle(b),g=a.getBoundingRect();var x=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var S=new Gt({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(S)}},t.type="title",t}(Mi);function Uee(e){e.registerComponentModel(Wee),e.registerComponentView(Gee)}var Yee=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"])}},jee=function(e){ge(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"]),ye(n)&&R(n,function(a,o){Ee(a)&&(a={type:a}),n[o]=st(a,Yee(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 f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&h0(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=je(),s=Ne(a,function(l){return(Ee(l)||Tt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new sr(l,this,this.ecModel))},this);this._data=jt(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;R(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;R(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;R(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}(Mt);const $m=jee;var jo=Ot,Hm=R,wc=Ur,qee=function(e){ge(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 wc),this.group.add(this._selectorGroup=new wc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),d=Ls(f,c,h),v=this.layoutInner(r,o,d,a,l,u),p=Ls(ht({width:v.width,height:v.height},f),c,h);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=bee(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=je(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Hm(n.getData(),function(d,v){var p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
-`)){var m=new wc;m.newline=!0,u.add(m);return}var g=i.getSeriesByName(p)[0];if(!f.get(p))if(g){var y=g.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),x=y.getVisual("style"),w=this._createItem(g,p,v,d,n,r,_,x,b,c,a);w.on("click",jo(TC,p,null,a,h)).on("mouseover",jo(zm,g.name,null,a,h)).on("mouseout",jo(Vm,g.name,null,a,h)),f.set(p,!0)}else i.eachRawSeries(function(S){if(!f.get(p)&&S.legendVisualProvider){var C=S.legendVisualProvider;if(!C.containName(p))return;var M=C.indexOfName(p),A=C.getItemVisual(M,"style"),P=C.getItemVisual(M,"legendIcon"),E=uo(A.fill);E&&E[3]===0&&(E[3]=.2,A=ue(ue({},A),{fill:s0(E,"rgba")}));var L=this._createItem(S,p,v,d,n,r,{},A,P,c,a);L.on("click",jo(TC,null,p,a,h)).on("mouseover",jo(zm,null,p,a,h)).on("mouseout",jo(Vm,null,p,a,h)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Hm(r,function(u){var f=u.type,c=new mr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);E0(c,{normal:h,emphasis:d},{defaultText:u.title}),um(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,h){var d=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=Kee(f,a,l,u,d,m,h),x=new wc,w=a.getModel("textStyle");if(Ye(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var S=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;x.add(Xee({itemWidth:v,itemHeight:p,icon:f,iconRotate:S,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,M=s,A=o.get("formatter"),P=n;Ee(A)&&A?P=A.replace("{name}",n??""):Ye(A)&&(P=A(n));var E=m?w.getTextColor():a.get("inactiveColor");x.add(new mr({style:ha(w,{text:P,x:C,y:p/2,fill:E,align:M,verticalAlign:"middle"},{inheritColor:E})}));var L=new Gt({shape:x.getBoundingRect(),invisible:!0}),O=a.getModel("tooltip");return O.get("show")&&A0({el:L,componentModel:o,itemName:n,itemTooltipOption:O.option}),x.add(L),x.eachChild(function(N){N.silent=!0}),L.silent=!c,this.getContentGroup().add(x),um(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ru(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ru("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?d[p]+=f[m]+v:c[p]+=h[m]+v,d[1-p]+=f[g]/2-h[g]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+v+h[m],_[g]=Math.max(f[g],h[g]),_[y]=Math.min(0,h[y]+d[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Mi);function Kee(e,t,r,n,i,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Hm(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Mm(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function Xee(e){var t=e.icon||"roundRect",r=j0(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 TC(e,t,r,n){Vm(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),zm(e,t,r,n)}function xD(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 zm(e,t,r,n){xD(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Vm(e,t,r,n){xD(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const CD=qee;function Zee(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 wl(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();R(s,function(l){var u=l.get("name");if(!(u===`
-`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function Qee(e){e.registerAction("legendToggleSelect","legendselectchanged",Ot(wl,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ot(wl,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ot(wl,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ot(wl,"select")),e.registerAction("legendUnSelect","legendunselected",Ot(wl,"unSelect"))}function TD(e){e.registerComponentModel($m),e.registerComponentView(CD),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Zee),e.registerSubTypeDefaulter("legend",function(){return"plain"}),Qee(e)}var Jee=function(e){ge(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=Rh(r);e.prototype.init.call(this,r,n,i),MC(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),MC(this,this.option,r)},t.type="legend.scroll",t.defaultOption=rE($m.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}($m);function MC(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ds(t,r,{type:"box",ignoreSize:!!i})}const ete=Jee;var AC=Ur,Rp=["width","height"],kp=["x","y"],tte=function(e){ge(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 AC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new AC)},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 f=this._controllerGroup,c=n.get("pageIconSize",!0),h=ye(c)?c:[c,c];v("pagePrev",0);var d=n.getModel("pageTextStyle");f.add(new mr({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,m){var g=p+"DataIndex",y=M0(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:xt(u._pageGo,u,g,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Rp[u],c=kp[u],h=Rp[1-u],d=kp[1-u];o&&ru("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),m=[-p.x,-p.y],g=tt(i);o&&(g[f]=i[f]-p[f]-v);var y=this._layoutContentAndController(r,a,g,u,f,h,d,c);if(o){if(s==="end")m[u]+=y[f]+v;else{var _=p[f]+v;m[u]-=_,y[c]-=_}y[f]+=p[f]+v,m[1-u]+=y[d]+y[h]/2-p[h]/2,y[h]=Math.max(y[h],p[h]),y[d]=Math.min(y[d],p[d]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;ru(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),ru("horizontal",h,r.get("pageButtonItemGap",!0));var d=f.getBoundingRect(),v=h.getBoundingRect(),p=this._showController=d[o]>i[o],m=[-d.x,-d.y];n||(m[a]=f[u]);var g=[0,0],y=[-v.x,-v.y],_=Ze(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-v[o]:g[a]+=v[o]+_}y[1-a]+=d[s]/2-v[s]/2,f.setPosition(m),c.setPosition(g),h.setPosition(y);var x={x:0,y:0};if(x[o]=p?i[o]:d[o],x[s]=Math.max(d[s],v[s]),x[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=x[s],c.setClipPath(new Gt({shape:w})),c.__rectSize=w[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(r);return S.pageIndex!=null&&Or(f,{x:S.contentPosition[0],y:S.contentPosition[1]},p?r:null),this._updatePageInfoView(r,S),x},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,d=i.childOfName(f);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"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",Ee(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=Rp[o],l=kp[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=b(c);v.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=h;++m)_=b(f[m]),(!_&&y.e>g.s+a||_&&!x(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=b(f[m]),(!_||!x(y,_.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=_;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}(CD);const rte=tte;function nte(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 ite(e){va(TD),e.registerComponentModel(ete),e.registerComponentView(rte),nte(e)}function ate(e){va(TD),va(ite)}va([tJ,$Q,GJ,vQ,Uee,Vee,ate,_ee]);function ote(e,t,r){const n=Z0(document.getElementById(e),"macarons");n.showLoading();const i={title:{text:"Network Traffic",subtext:"today",left:"center"},tooltip:{trigger:"item",formatter:function(a){return Mu.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 ste(e,t){const r=Z0(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 lte(e,t,r){const n={width:"600px",height:"400px"},i=Z0(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 f of l){const c='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+f.color+'"></span>';u+=c+f.seriesName+": "+Mu.fileSize(f.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 Mu.fileSize(l)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:r}]};i.setOption(s),i.hideLoading()}const PC=ie({__name:"LongSpan",props:{content:{},length:{}},setup(e){return(t,r)=>{const n=Hs;return G(),ce(ft,null,[Z(n,{content:t.content,placement:"top"},{default:j(()=>[qt(ee("span",null,be(t.content.slice(0,t.length))+"...",513),[[Kn,t.content.length>t.length]])]),_:1},8,["content"]),qt(ee("span",null,be(t.content),513),[[Kn,t.content.length<30]])],64)}}}),ute={class:"source"},fte=ee("div",{id:"traffic",style:{width:"400px",height:"250px","margin-bottom":"30px"}},null,-1),cte=ee("div",{id:"proxies",style:{width:"400px",height:"250px"}},null,-1),dte=ie({__name:"ServerOverview",setup(e){let t=$({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)),ote("traffic",n.totalTrafficIn,n.totalTrafficOut),ste("proxies",n)}).catch(()=>{Wl({showClose:!0,message:"Get server info from frps failed!",type:"warning"})})})(),(n,i)=>{const a=sA,o=oA,s=$A,l=FA;return G(),ce("div",null,[Z(l,null,{default:j(()=>[Z(s,{md:12},{default:j(()=>[ee("div",ute,[Z(o,{"label-position":"left","label-width":"220px",class:"server_info"},{default:j(()=>[Z(a,{label:"Version"},{default:j(()=>[ee("span",null,be(T(t).version),1)]),_:1}),Z(a,{label:"BindPort"},{default:j(()=>[ee("span",null,be(T(t).bindPort),1)]),_:1}),T(t).kcpBindPort!=0?(G(),de(a,{key:0,label:"KCP Bind Port"},{default:j(()=>[ee("span",null,be(T(t).kcpBindPort),1)]),_:1})):Ae("",!0),T(t).quicBindPort!=0?(G(),de(a,{key:1,label:"QUIC Bind Port"},{default:j(()=>[ee("span",null,be(T(t).quicBindPort),1)]),_:1})):Ae("",!0),T(t).vhostHTTPPort!=0?(G(),de(a,{key:2,label:"Http Port"},{default:j(()=>[ee("span",null,be(T(t).vhostHTTPPort),1)]),_:1})):Ae("",!0),T(t).vhostHTTPSPort!=0?(G(),de(a,{key:3,label:"Https Port"},{default:j(()=>[ee("span",null,be(T(t).vhostHTTPSPort),1)]),_:1})):Ae("",!0),T(t).tcpmuxHTTPConnectPort!=0?(G(),de(a,{key:4,label:"TCPMux HTTPConnect Port"},{default:j(()=>[ee("span",null,be(T(t).tcpmuxHTTPConnectPort),1)]),_:1})):Ae("",!0),T(t).subdomainHost!=""?(G(),de(a,{key:5,label:"Subdomain Host"},{default:j(()=>[Z(PC,{content:T(t).subdomainHost,length:30},null,8,["content"])]),_:1})):Ae("",!0),Z(a,{label:"Max PoolCount"},{default:j(()=>[ee("span",null,be(T(t).maxPoolCount),1)]),_:1}),Z(a,{label:"Max Ports Per Client"},{default:j(()=>[ee("span",null,be(T(t).maxPortsPerClient),1)]),_:1}),T(t).allowPortsStr!=""?(G(),de(a,{key:6,label:"Allow Ports"},{default:j(()=>[Z(PC,{content:T(t).allowPortsStr,length:30},null,8,["content"])]),_:1})):Ae("",!0),T(t).tlsForce===!0?(G(),de(a,{key:7,label:"TLS Force"},{default:j(()=>[ee("span",null,be(T(t).tlsForce),1)]),_:1})):Ae("",!0),Z(a,{label:"HeartBeat Timeout"},{default:j(()=>[ee("span",null,be(T(t).heartbeatTimeout),1)]),_:1}),Z(a,{label:"Client Counts"},{default:j(()=>[ee("span",null,be(T(t).clientCounts),1)]),_:1}),Z(a,{label:"Current Connections"},{default:j(()=>[ee("span",null,be(T(t).curConns),1)]),_:1}),Z(a,{label:"Proxy Counts"},{default:j(()=>[ee("span",null,be(T(t).proxyCounts),1)]),_:1})]),_:1})])]),_:1}),Z(s,{md:12},{default:j(()=>[fte,cte]),_:1})]),_:1})])}}});class qs{constructor(t){zt(this,"name");zt(this,"type");zt(this,"annotations");zt(this,"encryption");zt(this,"compression");zt(this,"conns");zt(this,"trafficIn");zt(this,"trafficOut");zt(this,"lastStartTime");zt(this,"lastCloseTime");zt(this,"status");zt(this,"clientVersion");zt(this,"addr");zt(this,"port");zt(this,"customDomains");zt(this,"hostHeaderRewrite");zt(this,"locations");zt(this,"subdomain");var r,n,i,a,o;if(this.name=t.name,this.type="",this.annotations=new Map,(r=t.conf)!=null&&r.annotations)for(const s in t.conf.annotations)this.annotations.set(s,t.conf.annotations[s]);this.encryption=!1,this.compression=!1,this.encryption=((i=(n=t.conf)==null?void 0:n.transport)==null?void 0:i.useEncryption)||this.encryption,this.compression=((o=(a=t.conf)==null?void 0:a.transport)==null?void 0:o.useCompression)||this.compression,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 hte extends qs{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 vte extends qs{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 pte extends qs{constructor(t,r,n){super(t),this.type="http",this.port=r,t.conf&&(this.customDomains=t.conf.customDomains||this.customDomains,this.hostHeaderRewrite=t.conf.hostHeaderRewrite,this.locations=t.conf.locations,t.conf.subdomain&&(this.subdomain=`${t.conf.subdomain}.${n}`))}}class gte extends qs{constructor(t,r,n){super(t),this.type="https",this.port=r,t.conf!=null&&(this.customDomains=t.conf.customDomains||this.customDomains,t.conf.subdomain&&(this.subdomain=`${t.conf.subdomain}.${n}`))}}class mte extends qs{constructor(t){super(t),this.type="stcp"}}class yte extends qs{constructor(t){super(t),this.type="sudp"}}const _te=["id"],bte=ie({__name:"Traffic",props:{proxyName:{}},setup(e){const t=e;return(()=>{let n="../api/traffic/"+t.proxyName;fetch(n,{credentials:"include"}).then(i=>i.json()).then(i=>{lte(t.proxyName,i.trafficIn,i.trafficOut)}).catch(i=>{Wl({showClose:!0,message:"Get traffic info failed!"+i,type:"warning"})})})(),(n,i)=>(G(),ce("div",{id:n.proxyName,style:{width:"600px",height:"400px"}},null,8,_te))}}),wte={key:2},Ste={class:"annotation-key"},xte=ie({__name:"ProxyViewExpand",props:{row:{},proxyType:{}},setup(e){const t=e,r=()=>{const n=[];return t.row.annotations&&t.row.annotations.forEach((i,a)=>{n.push({key:a,value:i})}),n};return(n,i)=>{const a=sA,o=oA,s=VA,l=wW;return G(),ce(ft,null,[n.proxyType==="http"||n.proxyType==="https"?(G(),de(o,{key:0,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:j(()=>[Z(a,{label:"Name"},{default:j(()=>[ee("span",null,be(n.row.name),1)]),_:1}),Z(a,{label:"Type"},{default:j(()=>[ee("span",null,be(n.row.type),1)]),_:1}),Z(a,{label:"Domains"},{default:j(()=>[ee("span",null,be(n.row.customDomains),1)]),_:1}),Z(a,{label:"SubDomain"},{default:j(()=>[ee("span",null,be(n.row.subdomain),1)]),_:1}),Z(a,{label:"locations"},{default:j(()=>[ee("span",null,be(n.row.locations),1)]),_:1}),Z(a,{label:"HostRewrite"},{default:j(()=>[ee("span",null,be(n.row.hostHeaderRewrite),1)]),_:1}),Z(a,{label:"Encryption"},{default:j(()=>[ee("span",null,be(n.row.encryption),1)]),_:1}),Z(a,{label:"Compression"},{default:j(()=>[ee("span",null,be(n.row.compression),1)]),_:1}),Z(a,{label:"Last Start"},{default:j(()=>[ee("span",null,be(n.row.lastStartTime),1)]),_:1}),Z(a,{label:"Last Close"},{default:j(()=>[ee("span",null,be(n.row.lastCloseTime),1)]),_:1})]),_:1})):(G(),de(o,{key:1,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:j(()=>[Z(a,{label:"Name"},{default:j(()=>[ee("span",null,be(n.row.name),1)]),_:1}),Z(a,{label:"Type"},{default:j(()=>[ee("span",null,be(n.row.type),1)]),_:1}),Z(a,{label:"Addr"},{default:j(()=>[ee("span",null,be(n.row.addr),1)]),_:1}),Z(a,{label:"Encryption"},{default:j(()=>[ee("span",null,be(n.row.encryption),1)]),_:1}),Z(a,{label:"Compression"},{default:j(()=>[ee("span",null,be(n.row.compression),1)]),_:1}),Z(a,{label:"Last Start"},{default:j(()=>[ee("span",null,be(n.row.lastStartTime),1)]),_:1}),Z(a,{label:"Last Close"},{default:j(()=>[ee("span",null,be(n.row.lastCloseTime),1)]),_:1})]),_:1})),n.row.annotations&&n.row.annotations.size>0?(G(),ce("div",wte,[Z(s),Z(l,{class:"title-text",size:"large"},{default:j(()=>[mt("Annotations")]),_:1}),ee("ul",null,[(G(!0),ce(ft,null,Hp(r(),u=>(G(),ce("li",null,[ee("span",Ste,be(u.key),1),ee("span",null,be(u.value),1)]))),256))])])):Ae("",!0)],64)}}}),Cte={class:"flex items-center",style:{"margin-right":"30px"}},Ks=ie({__name:"ProxyView",props:{proxies:{},proxyType:{}},emits:["refresh"],setup(e,{emit:t}){const r=t,n=$(!1),i=$(""),a=(l,u)=>Mu.fileSize(l.trafficIn),o=(l,u)=>Mu.fileSize(l.trafficOut),s=()=>{fetch("../api/proxies?status=offline",{method:"DELETE",credentials:"include"}).then(l=>{l.ok?(Wl({message:"Successfully cleared offline proxies",type:"success"}),r("refresh")):Wl({message:"Failed to clear offline proxies: "+l.status+" "+l.statusText,type:"warning"})}).catch(l=>{Wl({message:"Failed to clear offline proxies: "+l.message,type:"warning"})})};return(l,u)=>{const f=yg,c=eV,h=q6,d=gW,v=N8,p=pW,m=bte,g=p6;return G(),ce(ft,null,[ee("div",null,[Z(h,{icon:null,style:{width:"100%","margin-left":"30px","margin-bottom":"20px"}},{title:j(()=>[ee("span",null,be(l.proxyType),1)]),content:j(()=>[]),extra:j(()=>[ee("div",Cte,[Z(c,{title:"Are you sure to clear all data of offline proxies?",onConfirm:s},{reference:j(()=>[Z(f,null,{default:j(()=>[mt("ClearOfflineProxies")]),_:1})]),_:1}),Z(f,{onClick:u[0]||(u[0]=y=>l.$emit("refresh"))},{default:j(()=>[mt("Refresh")]),_:1})])]),_:1}),Z(p,{data:l.proxies,"default-sort":{prop:"name",order:"ascending"},style:{width:"100%"}},{default:j(()=>[Z(d,{type:"expand"},{default:j(y=>[Z(xte,{row:y.row,proxyType:l.proxyType},null,8,["row","proxyType"])]),_:1}),Z(d,{label:"Name",prop:"name",sortable:""}),Z(d,{label:"Port",prop:"port",sortable:""}),Z(d,{label:"Connections",prop:"conns",sortable:""}),Z(d,{label:"Traffic In",prop:"trafficIn",formatter:a,sortable:""}),Z(d,{label:"Traffic Out",prop:"trafficOut",formatter:o,sortable:""}),Z(d,{label:"ClientVersion",prop:"clientVersion",sortable:""}),Z(d,{label:"Status",prop:"status",sortable:""},{default:j(y=>[y.row.status==="online"?(G(),de(v,{key:0,type:"success"},{default:j(()=>[mt(be(y.row.status),1)]),_:2},1024)):(G(),de(v,{key:1,type:"danger"},{default:j(()=>[mt(be(y.row.status),1)]),_:2},1024))]),_:1}),Z(d,{label:"Operations"},{default:j(y=>[Z(f,{type:"primary",name:y.row.name,style:{"margin-bottom":"10px"},onClick:_=>{i.value=y.row.name,n.value=!0}},{default:j(()=>[mt("Traffic ")]),_:2},1032,["name","onClick"])]),_:1})]),_:1},8,["data"])]),Z(g,{modelValue:n.value,"onUpdate:modelValue":u[1]||(u[1]=y=>n.value=y),"destroy-on-close":"true",title:i.value,width:"700px"},{default:j(()=>[Z(m,{proxyName:i.value},null,8,["proxyName"])]),_:1},8,["modelValue","title"])],64)}}}),Tte=ie({__name:"ProxiesTCP",setup(e){let t=$([]);const r=()=>{fetch("../api/proxy/tcp",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value=[];for(let i of n.proxies)t.value.push(new hte(i))})};return r(),(n,i)=>(G(),de(Ks,{proxies:T(t),proxyType:"tcp",onRefresh:r},null,8,["proxies"]))}}),Mte=ie({__name:"ProxiesUDP",setup(e){let t=$([]);const r=()=>{fetch("../api/proxy/udp",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value=[];for(let i of n.proxies)t.value.push(new vte(i))})};return r(),(n,i)=>(G(),de(Ks,{proxies:T(t),proxyType:"udp",onRefresh:r},null,8,["proxies"]))}}),Ate=ie({__name:"ProxiesHTTP",setup(e){let t=$([]);const r=()=>{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=>{t.value=[];for(let s of o.proxies)t.value.push(new pte(s,n,i))})})};return r(),(n,i)=>(G(),de(Ks,{proxies:T(t),proxyType:"http",onRefresh:r},null,8,["proxies"]))}}),Pte=ie({__name:"ProxiesHTTPS",setup(e){let t=$([]);const r=()=>{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=>{t.value=[];for(let s of o.proxies)t.value.push(new gte(s,n,i))})})};return r(),(n,i)=>(G(),de(Ks,{proxies:T(t),proxyType:"https",onRefresh:r},null,8,["proxies"]))}}),Ete=ie({__name:"ProxiesSTCP",setup(e){let t=$([]);const r=()=>{fetch("../api/proxy/stcp",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value=[];for(let i of n.proxies)t.value.push(new mte(i))})};return r(),(n,i)=>(G(),de(Ks,{proxies:T(t),proxyType:"stcp",onRefresh:r},null,8,["proxies"]))}}),Lte=ie({__name:"ProxiesSUDP",setup(e){let t=$([]);const r=()=>{fetch("../api/proxy/sudp",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value=[];for(let i of n.proxies)t.value.push(new yte(i))})};return r(),(n,i)=>(G(),de(Ks,{proxies:T(t),proxyType:"sudp",onRefresh:r},null,8,["proxies"]))}}),Dte=jG({history:uG(),routes:[{path:"/",name:"ServerOverview",component:dte},{path:"/proxies/tcp",name:"ProxiesTCP",component:Tte},{path:"/proxies/udp",name:"ProxiesUDP",component:Mte},{path:"/proxies/http",name:"ProxiesHTTP",component:Ate},{path:"/proxies/https",name:"ProxiesHTTPS",component:Pte},{path:"/proxies/stcp",name:"ProxiesSTCP",component:Ete},{path:"/proxies/sudp",name:"ProxiesSUDP",component:Lte}]}),MD=oR(GW);MD.use(Dte);MD.mount("#app")});export default Ite();
+`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=dt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),d=this._renderMode,v=r.positionDefault,p=bl([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new up;g.marker=y.makeTooltipMarker("item",ku(g.color),d);var _=FS(u.formatTooltip(f,!1,c)),b=p.get("order"),x=p.get("valueFormatter"),w=_.frag,S=w?WS(x?ue({valueFormatter:x},w):w,y,d,b,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,S,g,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=dt(n),o=a.tooltipConfig,s=o.option||{};if(Ee(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,h=bl(u,this._tooltipModel,c?{position:c}:null),d=h.get("content"),v=Math.random()+"",p=new up;this._showOrMove(h,function(){var m=tt(h.get("formatterParams")||{});this._showTooltipContent(h,d,m,v,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(h)if(Ee(h)){var m=r.ecModel.get("useUTC"),g=ye(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;d=h,y&&(d=Ph(g.axisValue,d,m)),d=pE(d,i,!0)}else if(Ye(h)){var _=xt(function(b,x){b===this._ticket&&(c.setContent(x,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,d=h(i,a,_)}else d=h;c.setContent(d,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ye(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ye(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Ye(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),ye(n))i=yt(n[0],u),a=yt(n[1],f);else if(Re(n)){var p=n;p.width=c[0],p.height=c[1];var m=Is(p,{width:u,height:f});i=m.x,a=m.y,h=null,d=null}else if(Ee(n)&&l){var g=$ee(n,v,c,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=Bee(i,a,o,u,f,h?null:20,d?null:20);i=g[0],a=g[1]}if(h&&(i-=CC(h)?c[0]/2:h==="right"?c[0]:0),d&&(a-=CC(d)?c[1]/2:d==="bottom"?c[1]:0),_D(r)){var g=Fee(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&R(u,function(h,d){var v=c[d]||{},p=h.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&p.length===m.length,o&&R(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&R(h.seriesDataIndices,function(g){var y=g.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){He.node||!n.getDom()||(wm(this,"_updatePosition"),this._tooltipContent.dispose(),Fm("itemTooltip",n))},t.type="tooltip",t}(Mi);function bl(e,t,r){var n=t.ecModel,i;r?(i=new sr(r,n,n),i=new sr(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof sr&&(o=o.get("tooltip",!0)),Ee(o)&&(o={formatter:o}),o&&(i=new sr(o,i,n)))}return i}function xC(e,t){return e.dispatchAction||xt(t.dispatchAction,t)}function Bee(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 Fee(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 $ee(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function CC(e){return e==="center"||e==="middle"}function Hee(e,t,r){var n=v0(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=lf(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=dt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const zee=Nee;function Vee(e){va(yD),e.registerComponentModel(See),e.registerComponentView(zee),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Er),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Er)}var Wee=function(e){ge(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}(Mt),Gee=function(e){ge(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=Ze(r.get("textBaseline"),r.get("textVerticalAlign")),f=new mr({style:ha(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),d=new mr({style:ha(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),m=r.get("triggerEvent",!0);f.silent=!v&&!m,d.silent=!p&&!m,v&&f.on("click",function(){bS(v,"_"+r.get("target"))}),p&&d.on("click",function(){bS(p,"_"+r.get("subtarget"))}),dt(f).eventData=dt(d).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(d);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Is(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),d.setStyle(b),g=a.getBoundingRect();var x=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var S=new Gt({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(S)}},t.type="title",t}(Mi);function Uee(e){e.registerComponentModel(Wee),e.registerComponentView(Gee)}var Yee=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"])}},jee=function(e){ge(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"]),ye(n)&&R(n,function(a,o){Ee(a)&&(a={type:a}),n[o]=st(a,Yee(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 f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&h0(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=je(),s=Ne(a,function(l){return(Ee(l)||Tt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new sr(l,this,this.ecModel))},this);this._data=jt(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;R(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;R(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;R(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}(Mt);const $m=jee;var Ko=Rt,Hm=R,wc=Ur,qee=function(e){ge(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 wc),this.group.add(this._selectorGroup=new wc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),d=Is(f,c,h),v=this.layoutInner(r,o,d,a,l,u),p=Is(ht({width:v.width,height:v.height},f),c,h);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=bee(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=je(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Hm(n.getData(),function(d,v){var p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
+`)){var m=new wc;m.newline=!0,u.add(m);return}var g=i.getSeriesByName(p)[0];if(!f.get(p))if(g){var y=g.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),x=y.getVisual("style"),w=this._createItem(g,p,v,d,n,r,_,x,b,c,a);w.on("click",Ko(TC,p,null,a,h)).on("mouseover",Ko(zm,g.name,null,a,h)).on("mouseout",Ko(Vm,g.name,null,a,h)),f.set(p,!0)}else i.eachRawSeries(function(S){if(!f.get(p)&&S.legendVisualProvider){var C=S.legendVisualProvider;if(!C.containName(p))return;var M=C.indexOfName(p),A=C.getItemVisual(M,"style"),P=C.getItemVisual(M,"legendIcon"),E=uo(A.fill);E&&E[3]===0&&(E[3]=.2,A=ue(ue({},A),{fill:s0(E,"rgba")}));var L=this._createItem(S,p,v,d,n,r,{},A,P,c,a);L.on("click",Ko(TC,null,p,a,h)).on("mouseover",Ko(zm,null,p,a,h)).on("mouseout",Ko(Vm,null,p,a,h)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Hm(r,function(u){var f=u.type,c=new mr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);E0(c,{normal:h,emphasis:d},{defaultText:u.title}),um(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,h){var d=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=Kee(f,a,l,u,d,m,h),x=new wc,w=a.getModel("textStyle");if(Ye(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var S=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;x.add(Xee({itemWidth:v,itemHeight:p,icon:f,iconRotate:S,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,M=s,A=o.get("formatter"),P=n;Ee(A)&&A?P=A.replace("{name}",n??""):Ye(A)&&(P=A(n));var E=m?w.getTextColor():a.get("inactiveColor");x.add(new mr({style:ha(w,{text:P,x:C,y:p/2,fill:E,align:M,verticalAlign:"middle"},{inheritColor:E})}));var L=new Gt({shape:x.getBoundingRect(),invisible:!0}),O=a.getModel("tooltip");return O.get("show")&&A0({el:L,componentModel:o,itemName:n,itemTooltipOption:O.option}),x.add(L),x.eachChild(function(N){N.silent=!0}),L.silent=!c,this.getContentGroup().add(x),um(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ru(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ru("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?d[p]+=f[m]+v:c[p]+=h[m]+v,d[1-p]+=f[g]/2-h[g]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+v+h[m],_[g]=Math.max(f[g],h[g]),_[y]=Math.min(0,h[y]+d[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Mi);function Kee(e,t,r,n,i,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Hm(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Mm(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function Xee(e){var t=e.icon||"roundRect",r=j0(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 TC(e,t,r,n){Vm(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),zm(e,t,r,n)}function xD(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 zm(e,t,r,n){xD(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Vm(e,t,r,n){xD(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const CD=qee;function Zee(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 wl(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();R(s,function(l){var u=l.get("name");if(!(u===`
+`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function Qee(e){e.registerAction("legendToggleSelect","legendselectchanged",Rt(wl,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Rt(wl,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Rt(wl,"inverseSelect")),e.registerAction("legendSelect","legendselected",Rt(wl,"select")),e.registerAction("legendUnSelect","legendunselected",Rt(wl,"unSelect"))}function TD(e){e.registerComponentModel($m),e.registerComponentView(CD),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Zee),e.registerSubTypeDefaulter("legend",function(){return"plain"}),Qee(e)}var Jee=function(e){ge(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=Rh(r);e.prototype.init.call(this,r,n,i),MC(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),MC(this,this.option,r)},t.type="legend.scroll",t.defaultOption=rE($m.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}($m);function MC(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Os(t,r,{type:"box",ignoreSize:!!i})}const ete=Jee;var AC=Ur,Rp=["width","height"],kp=["x","y"],tte=function(e){ge(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 AC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new AC)},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 f=this._controllerGroup,c=n.get("pageIconSize",!0),h=ye(c)?c:[c,c];v("pagePrev",0);var d=n.getModel("pageTextStyle");f.add(new mr({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,m){var g=p+"DataIndex",y=M0(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:xt(u._pageGo,u,g,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Rp[u],c=kp[u],h=Rp[1-u],d=kp[1-u];o&&ru("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),m=[-p.x,-p.y],g=tt(i);o&&(g[f]=i[f]-p[f]-v);var y=this._layoutContentAndController(r,a,g,u,f,h,d,c);if(o){if(s==="end")m[u]+=y[f]+v;else{var _=p[f]+v;m[u]-=_,y[c]-=_}y[f]+=p[f]+v,m[1-u]+=y[d]+y[h]/2-p[h]/2,y[h]=Math.max(y[h],p[h]),y[d]=Math.min(y[d],p[d]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;ru(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),ru("horizontal",h,r.get("pageButtonItemGap",!0));var d=f.getBoundingRect(),v=h.getBoundingRect(),p=this._showController=d[o]>i[o],m=[-d.x,-d.y];n||(m[a]=f[u]);var g=[0,0],y=[-v.x,-v.y],_=Ze(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-v[o]:g[a]+=v[o]+_}y[1-a]+=d[s]/2-v[s]/2,f.setPosition(m),c.setPosition(g),h.setPosition(y);var x={x:0,y:0};if(x[o]=p?i[o]:d[o],x[s]=Math.max(d[s],v[s]),x[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=x[s],c.setClipPath(new Gt({shape:w})),c.__rectSize=w[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(r);return S.pageIndex!=null&&Or(f,{x:S.contentPosition[0],y:S.contentPosition[1]},p?r:null),this._updatePageInfoView(r,S),x},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,d=i.childOfName(f);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"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",Ee(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=Rp[o],l=kp[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=b(c);v.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=h;++m)_=b(f[m]),(!_&&y.e>g.s+a||_&&!x(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=b(f[m]),(!_||!x(y,_.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=_;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}(CD);const rte=tte;function nte(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 ite(e){va(TD),e.registerComponentModel(ete),e.registerComponentView(rte),nte(e)}function ate(e){va(TD),va(ite)}va([tJ,$Q,GJ,vQ,Uee,Vee,ate,_ee]);function ote(e,t,r){const n=Z0(document.getElementById(e),"macarons");n.showLoading();const i={title:{text:"Network Traffic",subtext:"today",left:"center"},tooltip:{trigger:"item",formatter:function(a){return Mu.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 ste(e,t){const r=Z0(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 lte(e,t,r){const n={width:"600px",height:"400px"},i=Z0(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 f of l){const c='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+f.color+'"></span>';u+=c+f.seriesName+": "+Mu.fileSize(f.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 Mu.fileSize(l)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:r}]};i.setOption(s),i.hideLoading()}const PC=ie({__name:"LongSpan",props:{content:{},length:{}},setup(e){return(t,r)=>{const n=Vs;return G(),ce(ft,null,[Z(n,{content:t.content,placement:"top"},{default:q(()=>[qt(te("span",null,xe(t.content.slice(0,t.length))+"...",513),[[Kn,t.content.length>t.length]])]),_:1},8,["content"]),qt(te("span",null,xe(t.content),513),[[Kn,t.content.length<30]])],64)}}}),ute={class:"source"},fte=te("div",{id:"traffic",style:{width:"400px",height:"250px","margin-bottom":"30px"}},null,-1),cte=te("div",{id:"proxies",style:{width:"400px",height:"250px"}},null,-1),dte=ie({__name:"ServerOverview",setup(e){let t=$({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)),ote("traffic",n.totalTrafficIn,n.totalTrafficOut),ste("proxies",n)}).catch(()=>{Wl({showClose:!0,message:"Get server info from frps failed!",type:"warning"})})})(),(n,i)=>{const a=sA,o=oA,s=$A,l=FA;return G(),ce("div",null,[Z(l,null,{default:q(()=>[Z(s,{md:12},{default:q(()=>[te("div",ute,[Z(o,{"label-position":"left","label-width":"220px",class:"server_info"},{default:q(()=>[Z(a,{label:"Version"},{default:q(()=>[te("span",null,xe(T(t).version),1)]),_:1}),Z(a,{label:"BindPort"},{default:q(()=>[te("span",null,xe(T(t).bindPort),1)]),_:1}),T(t).kcpBindPort!=0?(G(),ve(a,{key:0,label:"KCP Bind Port"},{default:q(()=>[te("span",null,xe(T(t).kcpBindPort),1)]),_:1})):Ae("",!0),T(t).quicBindPort!=0?(G(),ve(a,{key:1,label:"QUIC Bind Port"},{default:q(()=>[te("span",null,xe(T(t).quicBindPort),1)]),_:1})):Ae("",!0),T(t).vhostHTTPPort!=0?(G(),ve(a,{key:2,label:"HTTP Port"},{default:q(()=>[te("span",null,xe(T(t).vhostHTTPPort),1)]),_:1})):Ae("",!0),T(t).vhostHTTPSPort!=0?(G(),ve(a,{key:3,label:"HTTPS Port"},{default:q(()=>[te("span",null,xe(T(t).vhostHTTPSPort),1)]),_:1})):Ae("",!0),T(t).tcpmuxHTTPConnectPort!=0?(G(),ve(a,{key:4,label:"TCPMux HTTPConnect Port"},{default:q(()=>[te("span",null,xe(T(t).tcpmuxHTTPConnectPort),1)]),_:1})):Ae("",!0),T(t).subdomainHost!=""?(G(),ve(a,{key:5,label:"Subdomain Host"},{default:q(()=>[Z(PC,{content:T(t).subdomainHost,length:30},null,8,["content"])]),_:1})):Ae("",!0),Z(a,{label:"Max PoolCount"},{default:q(()=>[te("span",null,xe(T(t).maxPoolCount),1)]),_:1}),Z(a,{label:"Max Ports Per Client"},{default:q(()=>[te("span",null,xe(T(t).maxPortsPerClient),1)]),_:1}),T(t).allowPortsStr!=""?(G(),ve(a,{key:6,label:"Allow Ports"},{default:q(()=>[Z(PC,{content:T(t).allowPortsStr,length:30},null,8,["content"])]),_:1})):Ae("",!0),T(t).tlsForce===!0?(G(),ve(a,{key:7,label:"TLS Force"},{default:q(()=>[te("span",null,xe(T(t).tlsForce),1)]),_:1})):Ae("",!0),Z(a,{label:"HeartBeat Timeout"},{default:q(()=>[te("span",null,xe(T(t).heartbeatTimeout),1)]),_:1}),Z(a,{label:"Client Counts"},{default:q(()=>[te("span",null,xe(T(t).clientCounts),1)]),_:1}),Z(a,{label:"Current Connections"},{default:q(()=>[te("span",null,xe(T(t).curConns),1)]),_:1}),Z(a,{label:"Proxy Counts"},{default:q(()=>[te("span",null,xe(T(t).proxyCounts),1)]),_:1})]),_:1})])]),_:1}),Z(s,{md:12},{default:q(()=>[fte,cte]),_:1})]),_:1})])}}});class Io{constructor(t){It(this,"name");It(this,"type");It(this,"annotations");It(this,"encryption");It(this,"compression");It(this,"conns");It(this,"trafficIn");It(this,"trafficOut");It(this,"lastStartTime");It(this,"lastCloseTime");It(this,"status");It(this,"clientVersion");It(this,"addr");It(this,"port");It(this,"customDomains");It(this,"hostHeaderRewrite");It(this,"locations");It(this,"subdomain");var r,n,i,a,o;if(this.name=t.name,this.type="",this.annotations=new Map,(r=t.conf)!=null&&r.annotations)for(const s in t.conf.annotations)this.annotations.set(s,t.conf.annotations[s]);this.encryption=!1,this.compression=!1,this.encryption=((i=(n=t.conf)==null?void 0:n.transport)==null?void 0:i.useEncryption)||this.encryption,this.compression=((o=(a=t.conf)==null?void 0:a.transport)==null?void 0:o.useCompression)||this.compression,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 hte extends Io{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 vte extends Io{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 pte extends Io{constructor(t,r,n){super(t),this.type="http",this.port=r,t.conf&&(this.customDomains=t.conf.customDomains||this.customDomains,this.hostHeaderRewrite=t.conf.hostHeaderRewrite,this.locations=t.conf.locations,t.conf.subdomain&&(this.subdomain=`${t.conf.subdomain}.${n}`))}}class gte extends Io{constructor(t,r,n){super(t),this.type="https",this.port=r,t.conf!=null&&(this.customDomains=t.conf.customDomains||this.customDomains,t.conf.subdomain&&(this.subdomain=`${t.conf.subdomain}.${n}`))}}class mte extends Io{constructor(r,n,i){super(r);It(this,"multiplexer");It(this,"routeByHTTPUser");this.type="tcpmux",this.port=n,this.multiplexer="",this.routeByHTTPUser="",r.conf&&(this.customDomains=r.conf.customDomains||this.customDomains,this.multiplexer=r.conf.multiplexer,this.routeByHTTPUser=r.conf.routeByHTTPUser,r.conf.subdomain&&(this.subdomain=`${r.conf.subdomain}.${i}`))}}class yte extends Io{constructor(t){super(t),this.type="stcp"}}class _te extends Io{constructor(t){super(t),this.type="sudp"}}const bte=["id"],wte=ie({__name:"Traffic",props:{proxyName:{}},setup(e){const t=e;return(()=>{let n="../api/traffic/"+t.proxyName;fetch(n,{credentials:"include"}).then(i=>i.json()).then(i=>{lte(t.proxyName,i.trafficIn,i.trafficOut)}).catch(i=>{Wl({showClose:!0,message:"Get traffic info failed!"+i,type:"warning"})})})(),(n,i)=>(G(),ce("div",{id:n.proxyName,style:{width:"600px",height:"400px"}},null,8,bte))}}),Ste={key:0},xte={key:1},Cte={key:2},Tte={key:0},Mte={class:"annotation-key"},Ate=ie({__name:"ProxyViewExpand",props:{row:{},proxyType:{}},setup(e){const t=e,r=()=>{const n=[];return t.row.annotations&&t.row.annotations.forEach((i,a)=>{n.push({key:a,value:i})}),n};return(n,i)=>{const a=sA,o=oA,s=VA,l=wW;return G(),ce(ft,null,[Z(o,{"label-position":"left","label-width":"auto",inline:"",class:"proxy-table-expand"},{default:q(()=>[Z(a,{label:"Name"},{default:q(()=>[te("span",null,xe(n.row.name),1)]),_:1}),Z(a,{label:"Type"},{default:q(()=>[te("span",null,xe(n.row.type),1)]),_:1}),Z(a,{label:"Encryption"},{default:q(()=>[te("span",null,xe(n.row.encryption),1)]),_:1}),Z(a,{label:"Compression"},{default:q(()=>[te("span",null,xe(n.row.compression),1)]),_:1}),Z(a,{label:"Last Start"},{default:q(()=>[te("span",null,xe(n.row.lastStartTime),1)]),_:1}),Z(a,{label:"Last Close"},{default:q(()=>[te("span",null,xe(n.row.lastCloseTime),1)]),_:1}),n.proxyType==="http"||n.proxyType==="https"?(G(),ce("div",Ste,[Z(a,{label:"Domains"},{default:q(()=>[te("span",null,xe(n.row.customDomains),1)]),_:1}),Z(a,{label:"SubDomain"},{default:q(()=>[te("span",null,xe(n.row.subdomain),1)]),_:1}),Z(a,{label:"locations"},{default:q(()=>[te("span",null,xe(n.row.locations),1)]),_:1}),Z(a,{label:"HostRewrite"},{default:q(()=>[te("span",null,xe(n.row.hostHeaderRewrite),1)]),_:1})])):n.proxyType==="tcpmux"?(G(),ce("div",xte,[Z(a,{label:"Multiplexer"},{default:q(()=>[te("span",null,xe(n.row.multiplexer),1)]),_:1}),Z(a,{label:"RouteByHTTPUser"},{default:q(()=>[te("span",null,xe(n.row.routeByHTTPUser),1)]),_:1}),Z(a,{label:"Domains"},{default:q(()=>[te("span",null,xe(n.row.customDomains),1)]),_:1}),Z(a,{label:"SubDomain"},{default:q(()=>[te("span",null,xe(n.row.subdomain),1)]),_:1})])):(G(),ce("div",Cte,[Z(a,{label:"Addr"},{default:q(()=>[te("span",null,xe(n.row.addr),1)]),_:1})]))]),_:1}),n.row.annotations&&n.row.annotations.size>0?(G(),ce("div",Tte,[Z(s),Z(l,{class:"title-text",size:"large"},{default:q(()=>[pt("Annotations")]),_:1}),te("ul",null,[(G(!0),ce(ft,null,Hp(r(),u=>(G(),ce("li",null,[te("span",Mte,xe(u.key),1),te("span",null,xe(u.value),1)]))),256))])])):Ae("",!0)],64)}}}),Pte={class:"flex items-center",style:{"margin-right":"30px"}},Oo=ie({__name:"ProxyView",props:{proxies:{},proxyType:{}},emits:["refresh"],setup(e,{emit:t}){const r=t,n=$(!1),i=$(""),a=(l,u)=>Mu.fileSize(l.trafficIn),o=(l,u)=>Mu.fileSize(l.trafficOut),s=()=>{fetch("../api/proxies?status=offline",{method:"DELETE",credentials:"include"}).then(l=>{l.ok?(Wl({message:"Successfully cleared offline proxies",type:"success"}),r("refresh")):Wl({message:"Failed to clear offline proxies: "+l.status+" "+l.statusText,type:"warning"})}).catch(l=>{Wl({message:"Failed to clear offline proxies: "+l.message,type:"warning"})})};return(l,u)=>{const f=yg,c=eV,h=q6,d=gW,v=N8,p=pW,m=wte,g=p6;return G(),ce(ft,null,[te("div",null,[Z(h,{icon:null,style:{width:"100%","margin-left":"30px","margin-bottom":"20px"}},{title:q(()=>[te("span",null,xe(l.proxyType),1)]),content:q(()=>[]),extra:q(()=>[te("div",Pte,[Z(c,{title:"Are you sure to clear all data of offline proxies?",onConfirm:s},{reference:q(()=>[Z(f,null,{default:q(()=>[pt("ClearOfflineProxies")]),_:1})]),_:1}),Z(f,{onClick:u[0]||(u[0]=y=>l.$emit("refresh"))},{default:q(()=>[pt("Refresh")]),_:1})])]),_:1}),Z(p,{data:l.proxies,"default-sort":{prop:"name",order:"ascending"},style:{width:"100%"}},{default:q(()=>[Z(d,{type:"expand"},{default:q(y=>[Z(Ate,{row:y.row,proxyType:l.proxyType},null,8,["row","proxyType"])]),_:1}),Z(d,{label:"Name",prop:"name",sortable:""}),Z(d,{label:"Port",prop:"port",sortable:""}),Z(d,{label:"Connections",prop:"conns",sortable:""}),Z(d,{label:"Traffic In",prop:"trafficIn",formatter:a,sortable:""}),Z(d,{label:"Traffic Out",prop:"trafficOut",formatter:o,sortable:""}),Z(d,{label:"ClientVersion",prop:"clientVersion",sortable:""}),Z(d,{label:"Status",prop:"status",sortable:""},{default:q(y=>[y.row.status==="online"?(G(),ve(v,{key:0,type:"success"},{default:q(()=>[pt(xe(y.row.status),1)]),_:2},1024)):(G(),ve(v,{key:1,type:"danger"},{default:q(()=>[pt(xe(y.row.status),1)]),_:2},1024))]),_:1}),Z(d,{label:"Operations"},{default:q(y=>[Z(f,{type:"primary",name:y.row.name,style:{"margin-bottom":"10px"},onClick:_=>{i.value=y.row.name,n.value=!0}},{default:q(()=>[pt("Traffic ")]),_:2},1032,["name","onClick"])]),_:1})]),_:1},8,["data"])]),Z(g,{modelValue:n.value,"onUpdate:modelValue":u[1]||(u[1]=y=>n.value=y),"destroy-on-close":"true",title:i.value,width:"700px"},{default:q(()=>[Z(m,{proxyName:i.value},null,8,["proxyName"])]),_:1},8,["modelValue","title"])],64)}}}),Ete=ie({__name:"ProxiesTCP",setup(e){let t=$([]);const r=()=>{fetch("../api/proxy/tcp",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value=[];for(let i of n.proxies)t.value.push(new hte(i))})};return r(),(n,i)=>(G(),ve(Oo,{proxies:T(t),proxyType:"tcp",onRefresh:r},null,8,["proxies"]))}}),Lte=ie({__name:"ProxiesUDP",setup(e){let t=$([]);const r=()=>{fetch("../api/proxy/udp",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value=[];for(let i of n.proxies)t.value.push(new vte(i))})};return r(),(n,i)=>(G(),ve(Oo,{proxies:T(t),proxyType:"udp",onRefresh:r},null,8,["proxies"]))}}),Dte=ie({__name:"ProxiesHTTP",setup(e){let t=$([]);const r=()=>{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=>{t.value=[];for(let s of o.proxies)t.value.push(new pte(s,n,i))})})};return r(),(n,i)=>(G(),ve(Oo,{proxies:T(t),proxyType:"http",onRefresh:r},null,8,["proxies"]))}}),Ite=ie({__name:"ProxiesHTTPS",setup(e){let t=$([]);const r=()=>{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=>{t.value=[];for(let s of o.proxies)t.value.push(new gte(s,n,i))})})};return r(),(n,i)=>(G(),ve(Oo,{proxies:T(t),proxyType:"https",onRefresh:r},null,8,["proxies"]))}}),Ote=ie({__name:"ProxiesTCPMux",setup(e){let t=$([]);const r=()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.tcpmuxHTTPConnectPort,i=a.subdomainHost,fetch("../api/proxy/tcpmux",{credentials:"include"}).then(o=>o.json()).then(o=>{t.value=[];for(let s of o.proxies)t.value.push(new mte(s,n,i))})})};return r(),(n,i)=>(G(),ve(Oo,{proxies:T(t),proxyType:"tcpmux",onRefresh:r},null,8,["proxies"]))}}),Rte=ie({__name:"ProxiesSTCP",setup(e){let t=$([]);const r=()=>{fetch("../api/proxy/stcp",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value=[];for(let i of n.proxies)t.value.push(new yte(i))})};return r(),(n,i)=>(G(),ve(Oo,{proxies:T(t),proxyType:"stcp",onRefresh:r},null,8,["proxies"]))}}),kte=ie({__name:"ProxiesSUDP",setup(e){let t=$([]);const r=()=>{fetch("../api/proxy/sudp",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value=[];for(let i of n.proxies)t.value.push(new _te(i))})};return r(),(n,i)=>(G(),ve(Oo,{proxies:T(t),proxyType:"sudp",onRefresh:r},null,8,["proxies"]))}}),Nte=jG({history:uG(),routes:[{path:"/",name:"ServerOverview",component:dte},{path:"/proxies/tcp",name:"ProxiesTCP",component:Ete},{path:"/proxies/udp",name:"ProxiesUDP",component:Lte},{path:"/proxies/http",name:"ProxiesHTTP",component:Dte},{path:"/proxies/https",name:"ProxiesHTTPS",component:Ite},{path:"/proxies/tcpmux",name:"ProxiesTCPMux",component:Ote},{path:"/proxies/stcp",name:"ProxiesSTCP",component:Rte},{path:"/proxies/sudp",name:"ProxiesSUDP",component:kte}]}),MD=oR(GW);MD.use(Nte);MD.mount("#app")});export default Bte();
diff --git a/assets/frps/static/index.html b/assets/frps/static/index.html
index 0a1966e8306..075604a5dab 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-Q42Pu2_S.js"></script>
+  <script type="module" crossorigin src="./index-82-40HIG.js"></script>
   <link rel="stylesheet" crossorigin href="./index-rzPDshRD.css">
 </head>
 
diff --git a/server/dashboard_api.go b/server/dashboard_api.go
index 62415c968d2..ce5a4c74535 100644
--- a/server/dashboard_api.go
+++ b/server/dashboard_api.go
@@ -146,7 +146,8 @@ type TCPOutConf struct {
 type TCPMuxOutConf struct {
 	BaseOutConf
 	v1.DomainConfig
-	Multiplexer string `json:"multiplexer"`
+	Multiplexer     string `json:"multiplexer"`
+	RouteByHTTPUser string `json:"routeByHTTPUser"`
 }
 
 type UDPOutConf struct {
diff --git a/web/frps/components.d.ts b/web/frps/components.d.ts
index 5a1615e419a..188e961b99d 100644
--- a/web/frps/components.d.ts
+++ b/web/frps/components.d.ts
@@ -31,6 +31,7 @@ declare module 'vue' {
     ProxiesSTCP: typeof import('./src/components/ProxiesSTCP.vue')['default']
     ProxiesSUDP: typeof import('./src/components/ProxiesSUDP.vue')['default']
     ProxiesTCP: typeof import('./src/components/ProxiesTCP.vue')['default']
+    ProxiesTCPMux: typeof import('./src/components/ProxiesTCPMux.vue')['default']
     ProxiesUDP: typeof import('./src/components/ProxiesUDP.vue')['default']
     ProxyView: typeof import('./src/components/ProxyView.vue')['default']
     ProxyViewExpand: typeof import('./src/components/ProxyViewExpand.vue')['default']
diff --git a/web/frps/src/App.vue b/web/frps/src/App.vue
index 974314b2604..ad15e3a14d1 100644
--- a/web/frps/src/App.vue
+++ b/web/frps/src/App.vue
@@ -39,6 +39,7 @@
               <el-menu-item index="/proxies/udp">UDP</el-menu-item>
               <el-menu-item index="/proxies/http">HTTP</el-menu-item>
               <el-menu-item index="/proxies/https">HTTPS</el-menu-item>
+              <el-menu-item index="/proxies/tcpmux">TCPMUX</el-menu-item>
               <el-menu-item index="/proxies/stcp">STCP</el-menu-item>
               <el-menu-item index="/proxies/sudp">SUDP</el-menu-item>
             </el-sub-menu>
diff --git a/web/frps/src/components/ProxiesTCPMux.vue b/web/frps/src/components/ProxiesTCPMux.vue
new file mode 100644
index 00000000000..9e39e278683
--- /dev/null
+++ b/web/frps/src/components/ProxiesTCPMux.vue
@@ -0,0 +1,38 @@
+<template>
+  <ProxyView :proxies="proxies" proxyType="tcpmux" @refresh="fetchData" />
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { TCPMuxProxy } from '../utils/proxy.js'
+import ProxyView from './ProxyView.vue'
+
+let proxies = ref<TCPMuxProxy[]>([])
+
+const fetchData = () => {
+  let tcpmuxHTTPConnectPort: number
+  let subdomainHost: string
+  fetch('../api/serverinfo', { credentials: 'include' })
+    .then((res) => {
+      return res.json()
+    })
+    .then((json) => {
+      tcpmuxHTTPConnectPort = json.tcpmuxHTTPConnectPort
+      subdomainHost = json.subdomainHost
+
+      fetch('../api/proxy/tcpmux', { credentials: 'include' })
+        .then((res) => {
+          return res.json()
+        })
+        .then((json) => {
+          proxies.value = []
+          for (let proxyStats of json.proxies) {
+            proxies.value.push(new TCPMuxProxy(proxyStats, tcpmuxHTTPConnectPort, subdomainHost))
+          }
+        })
+    })
+}
+fetchData()
+</script>
+
+<style></style>
diff --git a/web/frps/src/components/ProxyViewExpand.vue b/web/frps/src/components/ProxyViewExpand.vue
index 49b17a6611e..f0e7d8992c6 100644
--- a/web/frps/src/components/ProxyViewExpand.vue
+++ b/web/frps/src/components/ProxyViewExpand.vue
@@ -1,9 +1,9 @@
 <template>
   <el-form
     label-position="left"
+    label-width="auto"
     inline
     class="proxy-table-expand"
-    v-if="proxyType === 'http' || proxyType === 'https'"
   >
     <el-form-item label="Name">
       <span>{{ row.name }}</span>
@@ -11,18 +11,6 @@
     <el-form-item label="Type">
       <span>{{ row.type }}</span>
     </el-form-item>
-    <el-form-item label="Domains">
-      <span>{{ row.customDomains }}</span>
-    </el-form-item>
-    <el-form-item label="SubDomain">
-      <span>{{ row.subdomain }}</span>
-    </el-form-item>
-    <el-form-item label="locations">
-      <span>{{ row.locations }}</span>
-    </el-form-item>
-    <el-form-item label="HostRewrite">
-      <span>{{ row.hostHeaderRewrite }}</span>
-    </el-form-item>
     <el-form-item label="Encryption">
       <span>{{ row.encryption }}</span>
     </el-form-item>
@@ -35,30 +23,40 @@
     <el-form-item label="Last Close">
       <span>{{ row.lastCloseTime }}</span>
     </el-form-item>
-  </el-form>
 
-  <el-form label-position="left" inline class="proxy-table-expand" v-else>
-    <el-form-item label="Name">
-      <span>{{ row.name }}</span>
-    </el-form-item>
-    <el-form-item label="Type">
-      <span>{{ row.type }}</span>
-    </el-form-item>
-    <el-form-item label="Addr">
-      <span>{{ row.addr }}</span>
-    </el-form-item>
-    <el-form-item label="Encryption">
-      <span>{{ row.encryption }}</span>
-    </el-form-item>
-    <el-form-item label="Compression">
-      <span>{{ row.compression }}</span>
-    </el-form-item>
-    <el-form-item label="Last Start">
-      <span>{{ row.lastStartTime }}</span>
-    </el-form-item>
-    <el-form-item label="Last Close">
-      <span>{{ row.lastCloseTime }}</span>
-    </el-form-item>
+    <div v-if="proxyType === 'http' || proxyType === 'https'">
+      <el-form-item label="Domains">
+        <span>{{ row.customDomains }}</span>
+      </el-form-item>
+      <el-form-item label="SubDomain">
+        <span>{{ row.subdomain }}</span>
+      </el-form-item>
+      <el-form-item label="locations">
+        <span>{{ row.locations }}</span>
+      </el-form-item>
+      <el-form-item label="HostRewrite">
+        <span>{{ row.hostHeaderRewrite }}</span>
+      </el-form-item>
+    </div>
+    <div v-else-if="proxyType === 'tcpmux'">
+      <el-form-item label="Multiplexer">
+        <span>{{ row.multiplexer }}</span>
+      </el-form-item>
+      <el-form-item label="RouteByHTTPUser">
+        <span>{{ row.routeByHTTPUser }}</span>
+      </el-form-item>
+      <el-form-item label="Domains">
+        <span>{{ row.customDomains }}</span>
+      </el-form-item>
+      <el-form-item label="SubDomain">
+        <span>{{ row.subdomain }}</span>
+      </el-form-item>
+    </div>
+    <div v-else>
+      <el-form-item label="Addr">
+        <span>{{ row.addr }}</span>
+      </el-form-item>
+    </div>
   </el-form>
 
   <div v-if="row.annotations && row.annotations.size > 0">
diff --git a/web/frps/src/components/ServerOverview.vue b/web/frps/src/components/ServerOverview.vue
index 0fbe6ff79bb..5df2cb4963c 100644
--- a/web/frps/src/components/ServerOverview.vue
+++ b/web/frps/src/components/ServerOverview.vue
@@ -20,10 +20,10 @@
             <el-form-item label="QUIC Bind Port" v-if="data.quicBindPort != 0">
               <span>{{ data.quicBindPort }}</span>
             </el-form-item>
-            <el-form-item label="Http Port" v-if="data.vhostHTTPPort != 0">
+            <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.vhostHTTPSPort != 0">
+            <el-form-item label="HTTPS Port" v-if="data.vhostHTTPSPort != 0">
               <span>{{ data.vhostHTTPSPort }}</span>
             </el-form-item>
             <el-form-item
diff --git a/web/frps/src/router/index.ts b/web/frps/src/router/index.ts
index c234b9e5e8a..d3729a4c4d7 100644
--- a/web/frps/src/router/index.ts
+++ b/web/frps/src/router/index.ts
@@ -4,6 +4,7 @@ import ProxiesTCP from '../components/ProxiesTCP.vue'
 import ProxiesUDP from '../components/ProxiesUDP.vue'
 import ProxiesHTTP from '../components/ProxiesHTTP.vue'
 import ProxiesHTTPS from '../components/ProxiesHTTPS.vue'
+import ProxiesTCPMux from '../components/ProxiesTCPMux.vue'
 import ProxiesSTCP from '../components/ProxiesSTCP.vue'
 import ProxiesSUDP from '../components/ProxiesSUDP.vue'
 
@@ -35,6 +36,11 @@ const router = createRouter({
       name: 'ProxiesHTTPS',
       component: ProxiesHTTPS,
     },
+    {
+      path: '/proxies/tcpmux',
+      name: 'ProxiesTCPMux',
+      component: ProxiesTCPMux,
+    },
     {
       path: '/proxies/stcp',
       name: 'ProxiesSTCP',
diff --git a/web/frps/src/utils/proxy.ts b/web/frps/src/utils/proxy.ts
index 3bac3cc4f42..3baf927427a 100644
--- a/web/frps/src/utils/proxy.ts
+++ b/web/frps/src/utils/proxy.ts
@@ -110,6 +110,28 @@ class HTTPSProxy extends BaseProxy {
   }
 }
 
+class TCPMuxProxy extends BaseProxy {
+  multiplexer: string
+  routeByHTTPUser: string
+
+  constructor(proxyStats: any, port: number, subdomainHost: string) {
+    super(proxyStats)
+    this.type = 'tcpmux'
+    this.port = port
+    this.multiplexer = ''
+    this.routeByHTTPUser = ''
+
+    if (proxyStats.conf) {
+      this.customDomains = proxyStats.conf.customDomains || this.customDomains
+      this.multiplexer = proxyStats.conf.multiplexer
+      this.routeByHTTPUser = proxyStats.conf.routeByHTTPUser
+      if (proxyStats.conf.subdomain) {
+        this.subdomain = `${proxyStats.conf.subdomain}.${subdomainHost}`
+      }
+    } 
+  }
+}
+
 class STCPProxy extends BaseProxy {
   constructor(proxyStats: any) {
     super(proxyStats)
@@ -128,6 +150,7 @@ export {
   BaseProxy,
   TCPProxy,
   UDPProxy,
+  TCPMuxProxy,
   HTTPProxy,
   HTTPSProxy,
   STCPProxy,


Test patch: