You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hy-screen-2.0/docs/assets/index-1783298613872.js

84 lines
1.1 MiB

var qO=Object.defineProperty,KO=Object.defineProperties;var jO=Object.getOwnPropertyDescriptors;var lS=Object.getOwnPropertySymbols;var JO=Object.prototype.hasOwnProperty,QO=Object.prototype.propertyIsEnumerable;var uS=(r,t,e)=>t in r?qO(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,fS=(r,t)=>{for(var e in t||(t={}))JO.call(t,e)&&uS(r,e,t[e]);if(lS)for(var e of lS(t))QO.call(t,e)&&uS(r,e,t[e]);return r},cS=(r,t)=>KO(r,jO(t));var vl=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(u){i(u)}},o=l=>{try{s(e.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});(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 e(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=e(i);fetch(i.href,a)}})();/**
* @vue/shared v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function S0(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const ie={},bs=[],sn=()=>{},xD=()=>!1,Mv=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Dv=r=>r.startsWith("onUpdate:"),Me=Object.assign,x0=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},tN=Object.prototype.hasOwnProperty,jt=(r,t)=>tN.call(r,t),It=Array.isArray,ws=r=>vf(r)==="[object Map]",Iv=r=>vf(r)==="[object Set]",hS=r=>vf(r)==="[object Date]",Ot=r=>typeof r=="function",ye=r=>typeof r=="string",Ir=r=>typeof r=="symbol",re=r=>r!==null&&typeof r=="object",bD=r=>(re(r)||Ot(r))&&Ot(r.then)&&Ot(r.catch),wD=Object.prototype.toString,vf=r=>wD.call(r),eN=r=>vf(r).slice(8,-1),TD=r=>vf(r)==="[object Object]",Lv=r=>ye(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,ou=S0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pv=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},rN=/-\w/g,ar=Pv(r=>r.replace(rN,t=>t.slice(1).toUpperCase())),nN=/\B([A-Z])/g,va=Pv(r=>r.replace(nN,"-$1").toLowerCase()),Rv=Pv(r=>r.charAt(0).toUpperCase()+r.slice(1)),Ld=Pv(r=>r?`on${Rv(r)}`:""),Pn=(r,t)=>!Object.is(r,t),Uc=(r,...t)=>{for(let e=0;e<r.length;e++)r[e](...t)},AD=(r,t,e,n=!1)=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},Ev=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let vS;const kv=()=>vS||(vS=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function b0(r){if(It(r)){const t={};for(let e=0;e<r.length;e++){const n=r[e],i=ye(n)?sN(n):b0(n);if(i)for(const a in i)t[a]=i[a]}return t}else if(ye(r)||re(r))return r}const iN=/;(?![^(]*\))/g,aN=/:([^]+)/,oN=/\/\*[^]*?\*\//g;function sN(r){const t={};return r.replace(oN,"").split(iN).forEach(e=>{if(e){const n=e.split(aN);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function w0(r){let t="";if(ye(r))t=r;else if(It(r))for(let e=0;e<r.length;e++){const n=w0(r[e]);n&&(t+=n+" ")}else if(re(r))for(const e in r)r[e]&&(t+=e+" ");return t.trim()}const lN="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",uN=S0(lN);function CD(r){return!!r||r===""}function fN(r,t){if(r.length!==t.length)return!1;let e=!0;for(let n=0;e&&n<r.length;n++)e=df(r[n],t[n]);return e}function df(r,t){if(r===t)return!0;let e=hS(r),n=hS(t);if(e||n)return e&&n?r.getTime()===t.getTime():!1;if(e=Ir(r),n=Ir(t),e||n)return r===t;if(e=It(r),n=It(t),e||n)return e&&n?fN(r,t):!1;if(e=re(r),n=re(t),e||n){if(!e||!n)return!1;const i=Object.keys(r).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in r){const s=r.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!df(r[o],t[o]))return!1}}return String(r)===String(t)}function cN(r,t){return r.findIndex(e=>df(e,t))}const MD=r=>!!(r&&r.__v_isRef===!0),hN=r=>ye(r)?r:r==null?"":It(r)||re(r)&&(r.toString===wD||!Ot(r.toString))?MD(r)?hN(r.value):JSON.stringify(r,DD,2):String(r),DD=(r,t)=>MD(t)?DD(r,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],a)=>(e[Pd(n,a)+" =>"]=i,e),{})}:Iv(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Pd(e))}:Ir(t)?Pd(t):re(t)&&!It(t)&&!TD(t)?String(t):t,Pd=(r,t="")=>{var e;return Ir(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/**
* @vue/reactivity v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let cr;class vN{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=cr,!t&&cr&&(this.index=(cr.scopes||(cr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){const e=cr;try{return cr=this,t()}finally{cr=e}}}on(){++this._on===1&&(this.prevScope=cr,cr=this)}off(){this._on>0&&--this._on===0&&(cr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(this.effects.length=0,e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);this.scopes.length=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}}}function dN(){return cr}let se;const Rd=new WeakSet;class ID{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,cr&&cr.active&&cr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rd.has(this)&&(Rd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||PD(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,dS(this),RD(this);const t=se,e=ln;se=this,ln=!0;try{return this.fn()}finally{ED(this),se=t,ln=e,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)C0(t);this.deps=this.depsTail=void 0,dS(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){dy(this)&&this.run()}get dirty(){return dy(this)}}let LD=0,su,lu;function PD(r,t=!1){if(r.flags|=8,t){r.next=lu,lu=r;return}r.next=su,su=r}function T0(){LD++}function A0(){if(--LD>0)return;if(lu){let t=lu;for(lu=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let r;for(;su;){let t=su;for(su=void 0;t;){const e=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){r||(r=n)}t=e}}if(r)throw r}function RD(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ED(r){let t,e=r.depsTail,n=e;for(;n;){const i=n.prevDep;n.version===-1?(n===e&&(e=i),C0(n),pN(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}r.deps=t,r.depsTail=e}function dy(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(kD(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function kD(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===Pu)||(r.globalVersion=Pu,!r.isSSR&&r.flags&128&&(!r.deps&&!r._dirty||!dy(r))))return;r.flags|=2;const t=r.dep,e=se,n=ln;se=r,ln=!0;try{RD(r);const i=r.fn(r._value);(t.version===0||Pn(i,r._value))&&(r.flags|=128,r._value=i,t.version++)}catch(i){throw t.version++,i}finally{se=e,ln=n,ED(r),r.flags&=-3}}function C0(r,t=!1){const{dep:e,prevSub:n,nextSub:i}=r;if(n&&(n.nextSub=i,r.prevSub=void 0),i&&(i.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n,!n&&e.computed)){e.computed.flags&=-5;for(let a=e.computed.deps;a;a=a.nextDep)C0(a,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function pN(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let ln=!0;const OD=[];function hi(){OD.push(ln),ln=!1}function vi(){const r=OD.pop();ln=r===void 0?!0:r}function dS(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let Pu=0;class gN{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class M0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!se||!ln||se===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==se)e=this.activeLink=new gN(se,this),se.deps?(e.prevDep=se.depsTail,se.depsTail.nextDep=e,se.depsTail=e):se.deps=se.depsTail=e,ND(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=se.depsTail,e.nextDep=void 0,se.depsTail.nextDep=e,se.depsTail=e,se.deps===e&&(se.deps=n)}return e}trigger(t){this.version++,Pu++,this.notify(t)}notify(t){T0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{A0()}}}function ND(r){if(r.dep.sc++,r.sub.flags&4){const t=r.dep.computed;if(t&&!r.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ND(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const Sh=new WeakMap,co=Symbol(""),py=Symbol(""),Ru=Symbol("");function Xe(r,t,e){if(ln&&se){let n=Sh.get(r);n||Sh.set(r,n=new Map);let i=n.get(e);i||(n.set(e,i=new M0),i.map=n,i.key=e),i.track()}}function ni(r,t,e,n,i,a){const o=Sh.get(r);if(!o){Pu++;return}const s=l=>{l&&l.trigger()};if(T0(),t==="clear")o.forEach(s);else{const l=It(r),u=l&&Lv(e);if(l&&e==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===Ru||!Ir(h)&&h>=f)&&s(c)})}else switch((e!==void 0||o.has(void 0))&&s(o.get(e)),u&&s(o.get(Ru)),t){case"add":l?u&&s(o.get("length")):(s(o.get(co)),ws(r)&&s(o.get(py)));break;case"delete":l||(s(o.get(co)),ws(r)&&s(o.get(py)));break;case"set":ws(r)&&s(o.get(co));break}}A0()}function yN(r,t){const e=Sh.get(r);return e&&e.get(t)}function Ho(r){const t=Xt(r);return t===r?t:(Xe(t,"iterate",Ru),Ar(r)?t:t.map(hn))}function Ov(r){return Xe(r=Xt(r),"iterate",Ru),r}function In(r,t){return di(r)?ks(ho(r)?hn(t):t):hn(t)}const mN={__proto__:null,[Symbol.iterator](){return Ed(this,Symbol.iterator,r=>In(this,r))},concat(...r){return Ho(this).concat(...r.map(t=>It(t)?Ho(t):t))},entries(){return Ed(this,"entries",r=>(r[1]=In(this,r[1]),r))},every(r,t){return Xn(this,"every",r,t,void 0,arguments)},filter(r,t){return Xn(this,"filter",r,t,e=>e.map(n=>In(this,n)),arguments)},find(r,t){return Xn(this,"find",r,t,e=>In(this,e),arguments)},findIndex(r,t){return Xn(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return Xn(this,"findLast",r,t,e=>In(this,e),arguments)},findLastIndex(r,t){return Xn(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return Xn(this,"forEach",r,t,void 0,arguments)},includes(...r){return kd(this,"includes",r)},indexOf(...r){return kd(this,"indexOf",r)},join(r){return Ho(this).join(r)},lastIndexOf(...r){return kd(this,"lastIndexOf",r)},map(r,t){return Xn(this,"map",r,t,void 0,arguments)},pop(){return dl(this,"pop")},push(...r){return dl(this,"push",r)},reduce(r,...t){return pS(this,"reduce",r,t)},reduceRight(r,...t){return pS(this,"reduceRight",r,t)},shift(){return dl(this,"shift")},some(r,t){return Xn(this,"some",r,t,void 0,arguments)},splice(...r){return dl(this,"splice",r)},toReversed(){return Ho(this).toReversed()},toSorted(r){return Ho(this).toSorted(r)},toSpliced(...r){return Ho(this).toSpliced(...r)},unshift(...r){return dl(this,"unshift",r)},values(){return Ed(this,"values",r=>In(this,r))}};function Ed(r,t,e){const n=Ov(r),i=n[t]();return n!==r&&!Ar(r)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=e(a.value)),a}),i}const _N=Array.prototype;function Xn(r,t,e,n,i,a){const o=Ov(r),s=o!==r&&!Ar(r),l=o[t];if(l!==_N[t]){const c=l.apply(r,a);return s?hn(c):c}let u=e;o!==r&&(s?u=function(c,h){return e.call(this,In(r,c),h,r)}:e.length>2&&(u=function(c,h){return e.call(this,c,h,r)}));const f=l.call(o,u,n);return s&&i?i(f):f}function pS(r,t,e,n){const i=Ov(r),a=i!==r&&!Ar(r);let o=e,s=!1;i!==r&&(a?(s=n.length===0,o=function(u,f,c){return s&&(s=!1,u=In(r,u)),e.call(this,u,In(r,f),c,r)}):e.length>3&&(o=function(u,f,c){return e.call(this,u,f,c,r)}));const l=i[t](o,...n);return s?In(r,l):l}function kd(r,t,e){const n=Xt(r);Xe(n,"iterate",Ru);const i=n[t](...e);return(i===-1||i===!1)&&Vv(e[0])?(e[0]=Xt(e[0]),n[t](...e)):i}function dl(r,t,e=[]){hi(),T0();const n=Xt(r)[t].apply(r,e);return A0(),vi(),n}const SN=S0("__proto__,__v_isRef,__isVue"),VD=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Ir));function xN(r){Ir(r)||(r=String(r));const t=Xt(this);return Xe(t,"has",r),t.hasOwnProperty(r)}class BD{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if(e==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return a;if(e==="__v_raw")return n===(i?a?PN:HD:a?FD:GD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=It(t);if(!i){let l;if(o&&(l=mN[e]))return l;if(e==="hasOwnProperty")return xN}const s=Reflect.get(t,e,ke(t)?t:n);if((Ir(e)?VD.has(e):SN(e))||(i||Xe(t,"get",e),a))return s;if(ke(s)){const l=o&&Lv(e)?s:s.value;return i&&re(l)?yy(l):l}return re(s)?i?yy(s):Nv(s):s}}class zD extends BD{constructor(t=!1){super(!1,t)}set(t,e,n,i){let a=t[e];const o=It(t)&&Lv(e);if(!this._isShallow){const u=di(a);if(!Ar(n)&&!di(n)&&(a=Xt(a),n=Xt(n)),!o&&ke(a)&&!ke(n))return u||(a.value=n),!0}const s=o?Number(e)<t.length:jt(t,e),l=Reflect.set(t,e,n,ke(t)?t:i);return t===Xt(i)&&(s?Pn(n,a)&&ni(t,"set",e,n):ni(t,"add",e,n)),l}deleteProperty(t,e){const n=jt(t,e);t[e];const i=Reflect.deleteProperty(t,e);return i&&n&&ni(t,"delete",e,void 0),i}has(t,e){const n=Reflect.has(t,e);return(!Ir(e)||!VD.has(e))&&Xe(t,"has",e),n}ownKeys(t){return Xe(t,"iterate",It(t)?"length":co),Reflect.ownKeys(t)}}class bN extends BD{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const wN=new zD,TN=new bN,AN=new zD(!0);const gy=r=>r,Bf=r=>Reflect.getPrototypeOf(r);function CN(r,t,e){return function(...n){const i=this.__v_raw,a=Xt(i),o=ws(a),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=i[r](...n),f=e?gy:t?ks:hn;return!t&&Xe(a,"iterate",l?py:co),Me(Object.create(u),{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}}})}}function zf(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function MN(r,t){const e={get(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);r||(Pn(i,s)&&Xe(o,"get",i),Xe(o,"get",s));const{has:l}=Bf(o),u=t?gy:r?ks:hn;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!r&&Xe(Xt(i),"iterate",co),i.size},has(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);return r||(Pn(i,s)&&Xe(o,"has",i),Xe(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Xt(s),u=t?gy:r?ks:hn;return!r&&Xe(l,"iterate",co),s.forEach((f,c)=>i.call(a,u(f),u(c),o))}};return Me(e,r?{add:zf("add"),set:zf("set"),delete:zf("delete"),clear:zf("clear")}:{add(i){const a=Xt(this),o=Bf(a),s=Xt(i),l=!t&&!Ar(i)&&!di(i)?s:i;return o.has.call(a,l)||Pn(i,l)&&o.has.call(a,i)||Pn(s,l)&&o.has.call(a,s)||(a.add(l),ni(a,"add",l,l)),this},set(i,a){!t&&!Ar(a)&&!di(a)&&(a=Xt(a));const o=Xt(this),{has:s,get:l}=Bf(o);let u=s.call(o,i);u||(i=Xt(i),u=s.call(o,i));const f=l.call(o,i);return o.set(i,a),u?Pn(a,f)&&ni(o,"set",i,a):ni(o,"add",i,a),this},delete(i){const a=Xt(this),{has:o,get:s}=Bf(a);let l=o.call(a,i);l||(i=Xt(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ni(a,"delete",i,void 0),u},clear(){const i=Xt(this),a=i.size!==0,o=i.clear();return a&&ni(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=CN(i,r,t)}),e}function D0(r,t){const e=MN(r,t);return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(jt(e,i)&&i in n?e:n,i,a)}const DN={get:D0(!1,!1)},IN={get:D0(!1,!0)},LN={get:D0(!0,!1)};const GD=new WeakMap,FD=new WeakMap,HD=new WeakMap,PN=new WeakMap;function RN(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function EN(r){return r.__v_skip||!Object.isExtensible(r)?0:RN(eN(r))}function Nv(r){return di(r)?r:I0(r,!1,wN,DN,GD)}function WD(r){return I0(r,!1,AN,IN,FD)}function yy(r){return I0(r,!0,TN,LN,HD)}function I0(r,t,e,n,i){if(!re(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const a=EN(r);if(a===0)return r;const o=i.get(r);if(o)return o;const s=new Proxy(r,a===2?n:e);return i.set(r,s),s}function ho(r){return di(r)?ho(r.__v_raw):!!(r&&r.__v_isReactive)}function di(r){return!!(r&&r.__v_isReadonly)}function Ar(r){return!!(r&&r.__v_isShallow)}function Vv(r){return r?!!r.__v_raw:!1}function Xt(r){const t=r&&r.__v_raw;return t?Xt(t):r}function kN(r){return!jt(r,"__v_skip")&&Object.isExtensible(r)&&AD(r,"__v_skip",!0),r}const hn=r=>re(r)?Nv(r):r,ks=r=>re(r)?yy(r):r;function ke(r){return r?r.__v_isRef===!0:!1}function Yc(r){return $D(r,!1)}function ON(r){return $D(r,!0)}function $D(r,t){return ke(r)?r:new NN(r,t)}class NN{constructor(t,e){this.dep=new M0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Xt(t),this._value=e?t:hn(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Ar(t)||di(t);t=n?t:Xt(t),Pn(t,e)&&(this._rawValue=t,this._value=n?t:hn(t),this.dep.trigger())}}function vo(r){return ke(r)?r.value:r}const VN={get:(r,t,e)=>t==="__v_raw"?r:vo(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const i=r[t];return ke(i)&&!ke(e)?(i.value=e,!0):Reflect.set(r,t,e,n)}};function UD(r){return ho(r)?r:new Proxy(r,VN)}function Pit(r){const t=It(r)?new Array(r.length):{};for(const e in r)t[e]=zN(r,e);return t}class BN{constructor(t,e,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Ir(e)?e:String(e),this._raw=Xt(t);let i=!0,a=t;if(!It(t)||Ir(this._key)||!Lv(this._key))do i=!Vv(a)||Ar(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=vo(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ke(this._raw[this._key])){const e=this._object[this._key];if(ke(e)){e.value=t;return}}this._object[this._key]=t}get dep(){return yN(this._raw,this._key)}}function zN(r,t,e){return new BN(r,t,e)}class GN{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new M0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&se!==this)return PD(this,!0),!0}get value(){const t=this.dep.track();return kD(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function FN(r,t,e=!1){let n,i;return Ot(r)?n=r:(n=r.get,i=r.set),new GN(n,i,e)}const Gf={},xh=new WeakMap;let Wa;function HN(r,t=!1,e=Wa){if(e){let n=xh.get(e);n||xh.set(e,n=[]),n.push(r)}}function WN(r,t,e=ie){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=e,u=S=>i?S:Ar(S)||i===!1||i===0?ii(S,1):ii(S);let f,c,h,v,d=!1,p=!1;if(ke(r)?(c=()=>r.value,d=Ar(r)):ho(r)?(c=()=>u(r),d=!0):It(r)?(p=!0,d=r.some(S=>ho(S)||Ar(S)),c=()=>r.map(S=>{if(ke(S))return S.value;if(ho(S))return u(S);if(Ot(S))return l?l(S,2):S()})):Ot(r)?t?c=l?()=>l(r,2):r:c=()=>{if(h){hi();try{h()}finally{vi()}}const S=Wa;Wa=f;try{return l?l(r,3,[v]):r(v)}finally{Wa=S}}:c=sn,t&&i){const S=c,x=i===!0?1/0:i;c=()=>ii(S(),x)}const g=dN(),y=()=>{f.stop(),g&&g.active&&x0(g.effects,f)};if(a&&t){const S=t;t=(...x)=>{S(...x),y()}}let m=p?new Array(r.length).fill(Gf):Gf;const _=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(t){const x=f.run();if(i||d||(p?x.some((b,w)=>Pn(b,m[w])):Pn(x,m))){h&&h();const b=Wa;Wa=f;try{const w=[x,m===Gf?void 0:p&&m[0]===Gf?[]:m,v];m=x,l?l(t,3,w):t(...w)}finally{Wa=b}}}else f.run()};return s&&s(_),f=new ID(c),f.scheduler=o?()=>o(_,!1):_,v=S=>HN(S,!1,f),h=f.onStop=()=>{const S=xh.get(f);if(S){if(l)l(S,4);else for(const x of S)x();xh.delete(f)}},t?n?_(!0):m=f.run():o?o(_.bind(null,!0),!0):f.run(),y.pause=f.pause.bind(f),y.resume=f.resume.bind(f),y.stop=y,y}function ii(r,t=1/0,e){if(t<=0||!re(r)||r.__v_skip||(e=e||new Map,(e.get(r)||0)>=t))return r;if(e.set(r,t),t--,ke(r))ii(r.value,t,e);else if(It(r))for(let n=0;n<r.length;n++)ii(r[n],t,e);else if(Iv(r)||ws(r))r.forEach(n=>{ii(n,t,e)});else if(TD(r)){for(const n in r)ii(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&ii(r[n],t,e)}return r}/**
* @vue/runtime-core v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function pf(r,t,e,n){try{return n?r(...n):r()}catch(i){gf(i,t,e)}}function Gn(r,t,e,n){if(Ot(r)){const i=pf(r,t,e,n);return i&&bD(i)&&i.catch(a=>{gf(a,t,e)}),i}if(It(r)){const i=[];for(let a=0;a<r.length;a++)i.push(Gn(r[a],t,e,n));return i}}function gf(r,t,e,n=!0){const i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||ie;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${e}`;for(;s;){const f=s.ec;if(f){for(let c=0;c<f.length;c++)if(f[c](r,l,u)===!1)return}s=s.parent}if(a){hi(),pf(a,null,10,[r,l,u]),vi();return}}$N(r,e,i,n,o)}function $N(r,t,e,n=!0,i=!1){if(i)throw r;console.error(r)}const ir=[];let Mn=-1;const Ts=[];let Gi=null,cs=0;const YD=Promise.resolve();let bh=null;function L0(r){const t=bh||YD;return r?t.then(this?r.bind(this):r):t}function UN(r){let t=Mn+1,e=ir.length;for(;t<e;){const n=t+e>>>1,i=ir[n],a=Eu(i);a<r||a===r&&i.flags&2?t=n+1:e=n}return t}function P0(r){if(!(r.flags&1)){const t=Eu(r),e=ir[ir.length-1];!e||!(r.flags&2)&&t>=Eu(e)?ir.push(r):ir.splice(UN(t),0,r),r.flags|=1,ZD()}}function ZD(){bh||(bh=YD.then(qD))}function YN(r){It(r)?Ts.push(...r):Gi&&r.id===-1?Gi.splice(cs+1,0,r):r.flags&1||(Ts.push(r),r.flags|=1),ZD()}function gS(r,t,e=Mn+1){for(;e<ir.length;e++){const n=ir[e];if(n&&n.flags&2){if(r&&n.id!==r.uid)continue;ir.splice(e,1),e--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function XD(r){if(Ts.length){const t=[...new Set(Ts)].sort((e,n)=>Eu(e)-Eu(n));if(Ts.length=0,Gi){Gi.push(...t);return}for(Gi=t,cs=0;cs<Gi.length;cs++){const e=Gi[cs];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Gi=null,cs=0}}const Eu=r=>r.id==null?r.flags&2?-1:1/0:r.id;function qD(r){const t=sn;try{for(Mn=0;Mn<ir.length;Mn++){const e=ir[Mn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),pf(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Mn<ir.length;Mn++){const e=ir[Mn];e&&(e.flags&=-2)}Mn=-1,ir.length=0,XD(),bh=null,(ir.length||Ts.length)&&qD()}}let Ve=null,KD=null;function wh(r){const t=Ve;return Ve=r,KD=r&&r.type.__scopeId||null,t}function ZN(r,t=Ve,e){if(!t||r._n)return r;const n=(...i)=>{n._d&&Mh(-1);const a=wh(t);let o;try{o=r(...i)}finally{wh(a),n._d&&Mh(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Rit(r,t){if(Ve===null)return r;const e=Fv(Ve),n=r.dirs||(r.dirs=[]);for(let i=0;i<t.length;i++){let[a,o,s,l=ie]=t[i];a&&(Ot(a)&&(a={mounted:a,updated:a}),a.deep&&ii(o),n.push({dir:a,instance:e,value:o,oldValue:void 0,arg:s,modifiers:l}))}return r}function ya(r,t,e,n){const i=r.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&&(hi(),Gn(l,e,8,[r.el,s,r,t]),vi())}}function Zc(r,t){if(Ne){let e=Ne.provides;const n=Ne.parent&&Ne.parent.provides;n===e&&(e=Ne.provides=Object.create(n)),e[r]=t}}function un(r,t,e=!1){const n=jV();if(n||Cs){let i=Cs?Cs._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&r in i)return i[r];if(arguments.length>1)return e&&Ot(t)?t.call(n&&n.proxy):t}}const XN=Symbol.for("v-scx"),qN=()=>un(XN);function Eit(r,t){return R0(r,null,t)}function Xc(r,t,e){return R0(r,t,e)}function R0(r,t,e=ie){const{immediate:n,deep:i,flush:a,once:o}=e,s=Me({},e),l=t&&n||!t&&a!=="post";let u;if(Ns){if(a==="sync"){const v=qN();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=sn,v.resume=sn,v.pause=sn,v}}const f=Ne;s.call=(v,d,p)=>Gn(v,f,d,p);let c=!1;a==="post"?s.scheduler=v=>{Ye(v,f&&f.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(v,d)=>{d?v():P0(v)}),s.augmentJob=v=>{t&&(v.flags|=4),c&&(v.flags|=2,f&&(v.id=f.uid,v.i=f))};const h=WN(r,t,s);return Ns&&(u?u.push(h):l&&h()),h}function KN(r,t,e){const n=this.proxy,i=ye(r)?r.includes(".")?jD(n,r):()=>n[r]:r.bind(n,n);let a;Ot(t)?a=t:(a=t.handler,e=t);const o=yf(this),s=R0(i,a.bind(n),e);return o(),s}function jD(r,t){const e=t.split(".");return()=>{let n=r;for(let i=0;i<e.length&&n;i++)n=n[e[i]];return n}}const JD=Symbol("_vte"),jN=r=>r.__isTeleport,uu=r=>r&&(r.disabled||r.disabled===""),JN=r=>r&&(r.defer||r.defer===""),yS=r=>typeof SVGElement!="undefined"&&r instanceof SVGElement,mS=r=>typeof MathMLElement=="function"&&r instanceof MathMLElement,my=(r,t)=>{const e=r&&r.to;return ye(e)?t?t(e):null:e},QD={name:"Teleport",__isTeleport:!0,process(r,t,e,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:h,o:{insert:v,querySelector:d,createText:p,createComment:g}}=u,y=uu(t.props);let{shapeFlag:m,children:_,dynamicChildren:S}=t;if(r==null){const x=t.el=p(""),b=t.anchor=p("");v(x,e,n),v(b,e,n);const w=(A,C)=>{m&16&&f(_,A,C,i,a,o,s,l)},T=()=>{const A=t.target=my(t.props,d),C=_y(A,t,p,v);A&&(o!=="svg"&&yS(A)?o="svg":o!=="mathml"&&mS(A)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(A),y||(w(A,C),qc(t,!1)))};y&&(w(e,b),qc(t,!0)),JN(t.props)||a&&a.pendingBranch?(t.el.__isMounted=!1,Ye(()=>{t.el.__isMounted===!1&&(T(),delete t.el.__isMounted)},a)):T()}else{t.el=r.el,t.targetStart=r.targetStart;const x=t.anchor=r.anchor,b=t.target=r.target,w=t.targetAnchor=r.targetAnchor;if(r.el.__isMounted===!1){Ye(()=>{QD.process(r,t,e,n,i,a,o,s,l,u)},a);return}const T=uu(r.props),A=T?e:b,C=T?x:w;if(o==="svg"||yS(b)?o="svg":(o==="mathml"||mS(b))&&(o="mathml"),S?(h(r.dynamicChildren,S,A,i,a,o,s),G0(r,t,!0)):l||c(r,t,A,C,i,a,o,s,!1),y)T?t.props&&r.props&&t.props.to!==r.props.to&&(t.props.to=r.props.to):Ff(t,e,x,u,1);else if((t.props&&t.props.to)!==(r.props&&r.props.to)){const D=t.target=my(t.props,d);D&&Ff(t,D,null,u,0)}else T&&Ff(t,b,w,u,1);qc(t,y)}},remove(r,t,e,{um:n,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:f,target:c,props:h}=r;if(c&&(i(u),i(f)),a&&i(l),o&16){const v=a||!uu(h);for(let d=0;d<s.length;d++){const p=s[d];n(p,t,e,v,!!p.dynamicChildren)}}},move:Ff,hydrate:QN};function Ff(r,t,e,{o:{insert:n},m:i},a=2){a===0&&n(r.targetAnchor,t,e);const{el:o,anchor:s,shapeFlag:l,children:u,props:f}=r,c=a===2;if(c&&n(o,t,e),(!c||uu(f))&&l&16)for(let h=0;h<u.length;h++)i(u[h],t,e,2);c&&n(s,t,e)}function QN(r,t,e,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:f}},c){function h(g,y){let m=y;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,g._lpa=t.targetAnchor&&o(t.targetAnchor);break}}m=o(m)}}function v(g,y){y.anchor=c(o(g),y,s(g),e,n,i,a)}const d=t.target=my(t.props,l),p=uu(t.props);if(d){const g=d._lpa||d.firstChild;t.shapeFlag&16&&(p?(v(r,t),h(d,g),t.targetAnchor||_y(d,t,f,u,s(r)===d?r:null)):(t.anchor=o(r),h(d,g),t.targetAnchor||_y(d,t,f,u),c(g&&o(g),t,d,e,n,i,a))),qc(t,p)}else p&&t.shapeFlag&16&&(v(r,t),t.targetStart=r,t.targetAnchor=o(r));return t.anchor&&o(t.anchor)}const kit=QD;function qc(r,t){const e=r.ctx;if(e&&e.ut){let n,i;for(t?(n=r.el,i=r.anchor):(n=r.targetStart,i=r.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}function _y(r,t,e,n,i=null){const a=t.targetStart=e(""),o=t.targetAnchor=e("");return a[JD]=o,r&&(n(a,r,i),n(o,r,i)),o}const tV=Symbol("_leaveCb");function E0(r,t){r.shapeFlag&6&&r.component?(r.transition=t,E0(r.component.subTree,t)):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}function k0(r,t){return Ot(r)?(()=>Me({name:r.name},t,{setup:r}))():r}function O0(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function _S(r,t){let e;return!!((e=Object.getOwnPropertyDescriptor(r,t))&&!e.configurable)}const Th=new WeakMap;function fu(r,t,e,n,i=!1){if(It(r)){r.forEach((p,g)=>fu(p,t&&(It(t)?t[g]:t),e,n,i));return}if(As(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&fu(r,t,e,n.component.subTree);return}const a=n.shapeFlag&4?Fv(n.component):n.el,o=i?null:a,{i:s,r:l}=r,u=t&&t.r,f=s.refs===ie?s.refs={}:s.refs,c=s.setupState,h=Xt(c),v=c===ie?xD:p=>_S(f,p)?!1:jt(h,p),d=(p,g)=>!(g&&_S(f,g));if(u!=null&&u!==l){if(SS(t),ye(u))f[u]=null,v(u)&&(c[u]=null);else if(ke(u)){const p=t;d(u,p.k)&&(u.value=null),p.k&&(f[p.k]=null)}}if(Ot(l))pf(l,s,12,[o,f]);else{const p=ye(l),g=ke(l);if(p||g){const y=()=>{if(r.f){const m=p?v(l)?c[l]:f[l]:d()||!r.k?l.value:f[r.k];if(i)It(m)&&x0(m,a);else if(It(m))m.includes(a)||m.push(a);else if(p)f[l]=[a],v(l)&&(c[l]=f[l]);else{const _=[a];d(l,r.k)&&(l.value=_),r.k&&(f[r.k]=_)}}else p?(f[l]=o,v(l)&&(c[l]=o)):g&&(d(l,r.k)&&(l.value=o),r.k&&(f[r.k]=o))};if(o){const m=()=>{y(),Th.delete(r)};m.id=-1,Th.set(r,m),Ye(m,e)}else SS(r),y()}}}function SS(r){const t=Th.get(r);t&&(t.flags|=8,Th.delete(r))}const xS=r=>r.nodeType===8;kv().requestIdleCallback;kv().cancelIdleCallback;function eV(r,t){if(xS(r)&&r.data==="["){let e=1,n=r.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(xS(n))if(n.data==="]"){if(--e===0)break}else n.data==="["&&e++;n=n.nextSibling}}else t(r)}const As=r=>!!r.type.__asyncLoader;function Oit(r){Ot(r)&&(r={loader:r});const{loader:t,loadingComponent:e,errorComponent:n,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=r;let u=null,f,c=0;const h=()=>(c++,u=null,v()),v=()=>{let d;return u||(d=u=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((g,y)=>{l(p,()=>g(h()),()=>y(p),c+1)});throw p}).then(p=>d!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),f=p,p)))};return k0({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(d,p,g){let y=!1;(p.bu||(p.bu=[])).push(()=>y=!0);const m=()=>{y||g()},_=a?()=>{const S=a(m,x=>eV(d,x));S&&(p.bum||(p.bum=[])).push(S)}:m;f?_():v().then(()=>!p.isUnmounted&&_())},get __asyncResolved(){return f},setup(){const d=Ne;if(O0(d),f)return()=>Hf(f,d);const p=_=>{u=null,gf(_,d,13,!n)};if(s&&d.suspense||Ns)return v().then(_=>()=>Hf(_,d)).catch(_=>(p(_),()=>n?Pe(n,{error:_}):null));const g=Yc(!1),y=Yc(),m=Yc(!!i);return i&&setTimeout(()=>{m.value=!1},i),o!=null&&setTimeout(()=>{if(!g.value&&!y.value){const _=new Error(`Async component timed out after ${o}ms.`);p(_),y.value=_}},o),v().then(()=>{g.value=!0,d.parent&&N0(d.parent.vnode)&&d.parent.update()}).catch(_=>{p(_),y.value=_}),()=>{if(g.value&&f)return Hf(f,d);if(y.value&&n)return Pe(n,{error:y.value});if(e&&!m.value)return Hf(e,d)}}})}function Hf(r,t){const{ref:e,props:n,children:i,ce:a}=t.vnode,o=Pe(r,n,i);return o.ref=e,o.ce=a,delete t.vnode.ce,o}const N0=r=>r.type.__isKeepAlive;function rV(r,t){tI(r,"a",t)}function nV(r,t){tI(r,"da",t)}function tI(r,t,e=Ne){const n=r.__wdc||(r.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(Bv(t,n,e),e){let i=e.parent;for(;i&&i.parent;)N0(i.parent.vnode)&&iV(n,t,e,i),i=i.parent}}function iV(r,t,e,n){const i=Bv(t,r,n,!0);eI(()=>{x0(n[t],i)},e)}function Bv(r,t,e=Ne,n=!1){if(e){const i=e[r]||(e[r]=[]),a=t.__weh||(t.__weh=(...o)=>{hi();const s=yf(e),l=Gn(t,e,r,o);return s(),vi(),l});return n?i.unshift(a):i.push(a),a}}const wi=r=>(t,e=Ne)=>{(!Ns||r==="sp")&&Bv(r,(...n)=>t(...n),e)},aV=wi("bm"),oV=wi("m"),sV=wi("bu"),lV=wi("u"),uV=wi("bum"),eI=wi("um"),fV=wi("sp"),cV=wi("rtg"),hV=wi("rtc");function vV(r,t=Ne){Bv("ec",r,t)}const rI="components";function dV(r,t){return gV(rI,r,!0,t)||r}const pV=Symbol.for("v-ndc");function gV(r,t,e=!0,n=!1){const i=Ve||Ne;if(i){const a=i.type;if(r===rI){const s=rB(a,!1);if(s&&(s===t||s===ar(t)||s===Rv(ar(t))))return a}const o=bS(i[r]||a[r],t)||bS(i.appContext[r],t);return!o&&n?a:o}}function bS(r,t){return r&&(r[t]||r[ar(t)]||r[Rv(ar(t))])}function Nit(r,t,e,n){let i;const a=e&&e[n],o=It(r);if(o||ye(r)){const s=o&&ho(r);let l=!1,u=!1;s&&(l=!Ar(r),u=di(r),r=Ov(r)),i=new Array(r.length);for(let f=0,c=r.length;f<c;f++)i[f]=t(l?u?ks(hn(r[f])):hn(r[f]):r[f],f,void 0,a&&a[f])}else if(typeof r=="number"){i=new Array(r);for(let s=0;s<r;s++)i[s]=t(s+1,s,void 0,a&&a[s])}else if(re(r))if(r[Symbol.iterator])i=Array.from(r,(s,l)=>t(s,l,void 0,a&&a[l]));else{const s=Object.keys(r);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const f=s[l];i[l]=t(r[f],f,l,a&&a[l])}}else i=[];return e&&(e[n]=i),i}function Vit(r,t,e={},n,i){if(Ve.ce||Ve.parent&&As(Ve.parent)&&Ve.parent.ce){const u=Object.keys(e).length>0;return t!=="default"&&(e.name=t),Ch(),Dh(zr,null,[Pe("slot",e,n&&n())],u?-2:64)}let a=r[t];a&&a._c&&(a._d=!1),Ch();const o=a&&nI(a(e)),s=e.key||o&&o.key,l=Dh(zr,{key:(s&&!Ir(s)?s:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&r._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function nI(r){return r.some(t=>Ou(t)?!(t.type===pi||t.type===zr&&!nI(t.children)):!0)?r:null}const Sy=r=>r?bI(r)?Fv(r):Sy(r.parent):null,cu=Me(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>Sy(r.parent),$root:r=>Sy(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>V0(r),$forceUpdate:r=>r.f||(r.f=()=>{P0(r.update)}),$nextTick:r=>r.n||(r.n=L0.bind(r.proxy)),$watch:r=>KN.bind(r)}),Od=(r,t)=>r!==ie&&!r.__isScriptSetup&&jt(r,t),yV={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=r;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return a[t]}else{if(Od(n,t))return o[t]=1,n[t];if(i!==ie&&jt(i,t))return o[t]=2,i[t];if(jt(a,t))return o[t]=3,a[t];if(e!==ie&&jt(e,t))return o[t]=4,e[t];xy&&(o[t]=0)}}const u=cu[t];let f,c;if(u)return t==="$attrs"&&Xe(r.attrs,"get",""),u(r);if((f=s.__cssModules)&&(f=f[t]))return f;if(e!==ie&&jt(e,t))return o[t]=4,e[t];if(c=l.config.globalProperties,jt(c,t))return c[t]},set({_:r},t,e){const{data:n,setupState:i,ctx:a}=r;return Od(i,t)?(i[t]=e,!0):n!==ie&&jt(n,t)?(n[t]=e,!0):jt(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(a[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:i,props:a,type:o}},s){let l;return!!(e[s]||r!==ie&&s[0]!=="$"&&jt(r,s)||Od(t,s)||jt(a,s)||jt(n,s)||jt(cu,s)||jt(i.config.globalProperties,s)||(l=o.__cssModules)&&l[s])},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:jt(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function wS(r){return It(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let xy=!0;function mV(r){const t=V0(r),e=r.proxy,n=r.ctx;xy=!1,t.beforeCreate&&TS(t.beforeCreate,r,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:d,activated:p,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:_,unmounted:S,render:x,renderTracked:b,renderTriggered:w,errorCaptured:T,serverPrefetch:A,expose:C,inheritAttrs:D,components:I,directives:L,filters:P}=t;if(u&&_V(u,n,null),o)for(const V in o){const N=o[V];Ot(N)&&(n[V]=N.bind(e))}if(i){const V=i.call(e,e);re(V)&&(r.data=Nv(V))}if(xy=!0,a)for(const V in a){const N=a[V],z=Ot(N)?N.bind(e,e):Ot(N.get)?N.get.bind(e,e):sn,$=!Ot(N)&&Ot(N.set)?N.set.bind(e):sn,q=nn({get:z,set:$});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>q.value,set:Q=>q.value=Q})}if(s)for(const V in s)iI(s[V],n,e,V);if(l){const V=Ot(l)?l.call(e):l;Reflect.ownKeys(V).forEach(N=>{Zc(N,V[N])})}f&&TS(f,r,"c");function O(V,N){It(N)?N.forEach(z=>V(z.bind(e))):N&&V(N.bind(e))}if(O(aV,c),O(oV,h),O(sV,v),O(lV,d),O(rV,p),O(nV,g),O(vV,T),O(hV,b),O(cV,w),O(uV,m),O(eI,S),O(fV,A),It(C))if(C.length){const V=r.exposed||(r.exposed={});C.forEach(N=>{Object.defineProperty(V,N,{get:()=>e[N],set:z=>e[N]=z,enumerable:!0})})}else r.exposed||(r.exposed={});x&&r.render===sn&&(r.render=x),D!=null&&(r.inheritAttrs=D),I&&(r.components=I),L&&(r.directives=L),A&&O0(r)}function _V(r,t,e=sn){It(r)&&(r=by(r));for(const n in r){const i=r[n];let a;re(i)?"default"in i?a=un(i.from||n,i.default,!0):a=un(i.from||n):a=un(i),ke(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function TS(r,t,e){Gn(It(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function iI(r,t,e,n){let i=n.includes(".")?jD(e,n):()=>e[n];if(ye(r)){const a=t[r];Ot(a)&&Xc(i,a)}else if(Ot(r))Xc(i,r.bind(e));else if(re(r))if(It(r))r.forEach(a=>iI(a,t,e,n));else{const a=Ot(r.handler)?r.handler.bind(e):t[r.handler];Ot(a)&&Xc(i,a,r)}}function V0(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=r.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(u=>Ah(l,u,o,!0)),Ah(l,t,o)),re(t)&&a.set(t,l),l}function Ah(r,t,e,n=!1){const{mixins:i,extends:a}=t;a&&Ah(r,a,e,!0),i&&i.forEach(o=>Ah(r,o,e,!0));for(const o in t)if(!(n&&o==="expose")){const s=SV[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const SV={data:AS,props:CS,emits:CS,methods:Zl,computed:Zl,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:Zl,directives:Zl,watch:bV,provide:AS,inject:xV};function AS(r,t){return t?r?function(){return Me(Ot(r)?r.call(this,this):r,Ot(t)?t.call(this,this):t)}:t:r}function xV(r,t){return Zl(by(r),by(t))}function by(r){if(It(r)){const t={};for(let e=0;e<r.length;e++)t[r[e]]=r[e];return t}return r}function Qe(r,t){return r?[...new Set([].concat(r,t))]:t}function Zl(r,t){return r?Me(Object.create(null),r,t):t}function CS(r,t){return r?It(r)&&It(t)?[...new Set([...r,...t])]:Me(Object.create(null),wS(r),wS(t!=null?t:{})):t}function bV(r,t){if(!r)return t;if(!t)return r;const e=Me(Object.create(null),r);for(const n in t)e[n]=Qe(r[n],t[n]);return e}function aI(){return{app:null,config:{isNativeTag:xD,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 wV=0;function TV(r,t){return function(n,i=null){Ot(n)||(n=Me({},n)),i!=null&&!re(i)&&(i=null);const a=aI(),o=new WeakSet,s=[];let l=!1;const u=a.app={_uid:wV++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:iB,get config(){return a.config},set config(f){},use(f,...c){return o.has(f)||(f&&Ot(f.install)?(o.add(f),f.install(u,...c)):Ot(f)&&(o.add(f),f(u,...c))),u},mixin(f){return a.mixins.includes(f)||a.mixins.push(f),u},component(f,c){return c?(a.components[f]=c,u):a.components[f]},directive(f,c){return c?(a.directives[f]=c,u):a.directives[f]},mount(f,c,h){if(!l){const v=u._ceVNode||Pe(n,i);return v.appContext=a,h===!0?h="svg":h===!1&&(h=void 0),c&&t?t(v,f):r(v,f,h),l=!0,u._container=f,f.__vue_app__=u,Fv(v.component)}},onUnmount(f){s.push(f)},unmount(){l&&(Gn(s,u._instance,16),r(null,u._container),delete u._container.__vue_app__)},provide(f,c){return a.provides[f]=c,u},runWithContext(f){const c=Cs;Cs=u;try{return f()}finally{Cs=c}}};return u}}let Cs=null;const AV=(r,t)=>t==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${ar(t)}Modifiers`]||r[`${va(t)}Modifiers`];function CV(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||ie;let i=e;const a=t.startsWith("update:"),o=a&&AV(n,t.slice(7));o&&(o.trim&&(i=e.map(f=>ye(f)?f.trim():f)),o.number&&(i=e.map(Ev)));let s,l=n[s=Ld(t)]||n[s=Ld(ar(t))];!l&&a&&(l=n[s=Ld(va(t))]),l&&Gn(l,r,6,i);const u=n[s+"Once"];if(u){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,Gn(u,r,6,i)}}const MV=new WeakMap;function oI(r,t,e=!1){const n=e?MV:t.emitsCache,i=n.get(r);if(i!==void 0)return i;const a=r.emits;let o={},s=!1;if(!Ot(r)){const l=u=>{const f=oI(u,t,!0);f&&(s=!0,Me(o,f))};!e&&t.mixins.length&&t.mixins.forEach(l),r.extends&&l(r.extends),r.mixins&&r.mixins.forEach(l)}return!a&&!s?(re(r)&&n.set(r,null),null):(It(a)?a.forEach(l=>o[l]=null):Me(o,a),re(r)&&n.set(r,o),o)}function zv(r,t){return!r||!Mv(t)?!1:(t=t.slice(2).replace(/Once$/,""),jt(r,t[0].toLowerCase()+t.slice(1))||jt(r,va(t))||jt(r,t))}function Nd(r){const{type:t,vnode:e,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:v,ctx:d,inheritAttrs:p}=r,g=wh(r);let y,m;try{if(e.shapeFlag&4){const S=i||n,x=S;y=Ln(u.call(x,S,f,c,v,h,d)),m=s}else{const S=t;y=Ln(S.length>1?S(c,{attrs:s,slots:o,emit:l}):S(c,null)),m=t.props?s:DV(s)}}catch(S){hu.length=0,gf(S,r,1),y=Pe(pi)}let _=y;if(m&&p!==!1){const S=Object.keys(m),{shapeFlag:x}=_;S.length&&x&7&&(a&&S.some(Dv)&&(m=IV(m,a)),_=Os(_,m,!1,!0))}return e.dirs&&(_=Os(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&E0(_,e.transition),y=_,wh(g),y}const DV=r=>{let t;for(const e in r)(e==="class"||e==="style"||Mv(e))&&((t||(t={}))[e]=r[e]);return t},IV=(r,t)=>{const e={};for(const n in r)(!Dv(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function LV(r,t,e){const{props:n,children:i,component:a}=r,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?MS(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;c<f.length;c++){const h=f[c];if(sI(o,n,h)&&!zv(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?MS(n,o,u):!0:!!o;return!1}function MS(r,t,e){const n=Object.keys(t);if(n.length!==Object.keys(r).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(sI(t,r,a)&&!zv(e,a))return!0}return!1}function sI(r,t,e){const n=r[e],i=t[e];return e==="style"&&re(n)&&re(i)?!df(n,i):n!==i}function PV({vnode:r,parent:t,suspense:e},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===r&&(i.suspense.vnode.el=i.el=n,r=i),i===r)(r=t.vnode).el=n,t=t.parent;else break}e&&e.activeBranch===r&&(e.vnode.el=n)}const lI={},uI=()=>Object.create(lI),fI=r=>Object.getPrototypeOf(r)===lI;function RV(r,t,e,n=!1){const i={},a=uI();r.propsDefaults=Object.create(null),cI(r,t,i,a);for(const o in r.propsOptions[0])o in i||(i[o]=void 0);e?r.props=n?i:WD(i):r.type.props?r.props=i:r.props=a,r.attrs=a}function EV(r,t,e,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=r,s=Xt(i),[l]=r.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=r.vnode.dynamicProps;for(let c=0;c<f.length;c++){let h=f[c];if(zv(r.emitsOptions,h))continue;const v=t[h];if(l)if(jt(a,h))v!==a[h]&&(a[h]=v,u=!0);else{const d=ar(h);i[d]=wy(l,s,d,v,r,!1)}else v!==a[h]&&(a[h]=v,u=!0)}}}else{cI(r,t,i,a)&&(u=!0);let f;for(const c in s)(!t||!jt(t,c)&&((f=va(c))===c||!jt(t,f)))&&(l?e&&(e[c]!==void 0||e[f]!==void 0)&&(i[c]=wy(l,s,c,void 0,r,!0)):delete i[c]);if(a!==s)for(const c in a)(!t||!jt(t,c))&&(delete a[c],u=!0)}u&&ni(r.attrs,"set","")}function cI(r,t,e,n){const[i,a]=r.propsOptions;let o=!1,s;if(t)for(let l in t){if(ou(l))continue;const u=t[l];let f;i&&jt(i,f=ar(l))?!a||!a.includes(f)?e[f]=u:(s||(s={}))[f]=u:zv(r.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Xt(e),u=s||ie;for(let f=0;f<a.length;f++){const c=a[f];e[c]=wy(i,l,c,u[c],r,!jt(u,c))}}return o}function wy(r,t,e,n,i,a){const o=r[e];if(o!=null){const s=jt(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Ot(l)){const{propsDefaults:u}=i;if(e in u)n=u[e];else{const f=yf(i);n=u[e]=l.call(null,t),f()}}else n=l;i.ce&&i.ce._setProp(e,n)}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===va(e))&&(n=!0))}return n}const kV=new WeakMap;function hI(r,t,e=!1){const n=e?kV:t.propsCache,i=n.get(r);if(i)return i;const a=r.props,o={},s=[];let l=!1;if(!Ot(r)){const f=c=>{l=!0;const[h,v]=hI(c,t,!0);Me(o,h),v&&s.push(...v)};!e&&t.mixins.length&&t.mixins.forEach(f),r.extends&&f(r.extends),r.mixins&&r.mixins.forEach(f)}if(!a&&!l)return re(r)&&n.set(r,bs),bs;if(It(a))for(let f=0;f<a.length;f++){const c=ar(a[f]);DS(c)&&(o[c]=ie)}else if(a)for(const f in a){const c=ar(f);if(DS(c)){const h=a[f],v=o[c]=It(h)||Ot(h)?{type:h}:Me({},h),d=v.type;let p=!1,g=!0;if(It(d))for(let y=0;y<d.length;++y){const m=d[y],_=Ot(m)&&m.name;if(_==="Boolean"){p=!0;break}else _==="String"&&(g=!1)}else p=Ot(d)&&d.name==="Boolean";v[0]=p,v[1]=g,(p||jt(v,"default"))&&s.push(c)}}const u=[o,s];return re(r)&&n.set(r,u),u}function DS(r){return r[0]!=="$"&&!ou(r)}const B0=r=>r==="_"||r==="_ctx"||r==="$stable",z0=r=>It(r)?r.map(Ln):[Ln(r)],OV=(r,t,e)=>{if(t._n)return t;const n=ZN((...i)=>z0(t(...i)),e);return n._c=!1,n},vI=(r,t,e)=>{const n=r._ctx;for(const i in r){if(B0(i))continue;const a=r[i];if(Ot(a))t[i]=OV(i,a,n);else if(a!=null){const o=z0(a);t[i]=()=>o}}},dI=(r,t)=>{const e=z0(t);r.slots.default=()=>e},pI=(r,t,e)=>{for(const n in t)(e||!B0(n))&&(r[n]=t[n])},NV=(r,t,e)=>{const n=r.slots=uI();if(r.vnode.shapeFlag&32){const i=t._;i?(pI(n,t,e),e&&AD(n,"_",i,!0)):vI(t,n)}else t&&dI(r,t)},VV=(r,t,e)=>{const{vnode:n,slots:i}=r;let a=!0,o=ie;if(n.shapeFlag&32){const s=t._;s?e&&s===1?a=!1:pI(i,t,e):(a=!t.$stable,vI(t,i)),o=t}else t&&(dI(r,t),o={default:1});if(a)for(const s in i)!B0(s)&&o[s]==null&&delete i[s]},Ye=HV;function BV(r){return zV(r)}function zV(r,t){const e=kv();e.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=sn,insertStaticContent:d}=r,p=(R,k,G,X=null,W=null,J=null,ot=void 0,ut=null,it=!!k.dynamicChildren)=>{if(R===k)return;R&&!pl(R,k)&&(X=U(R),Q(R,W,J,!0),R=null),k.patchFlag===-2&&(it=!1,k.dynamicChildren=null);const{type:rt,ref:At,shapeFlag:dt}=k;switch(rt){case Gv:g(R,k,G,X);break;case pi:y(R,k,G,X);break;case Kc:R==null&&m(k,G,X,ot);break;case zr:I(R,k,G,X,W,J,ot,ut,it);break;default:dt&1?x(R,k,G,X,W,J,ot,ut,it):dt&6?L(R,k,G,X,W,J,ot,ut,it):(dt&64||dt&128)&&rt.process(R,k,G,X,W,J,ot,ut,it,tt)}At!=null&&W?fu(At,R&&R.ref,J,k||R,!k):At==null&&R&&R.ref!=null&&fu(R.ref,null,J,R,!0)},g=(R,k,G,X)=>{if(R==null)n(k.el=s(k.children),G,X);else{const W=k.el=R.el;k.children!==R.children&&u(W,k.children)}},y=(R,k,G,X)=>{R==null?n(k.el=l(k.children||""),G,X):k.el=R.el},m=(R,k,G,X)=>{[R.el,R.anchor]=d(R.children,k,G,X,R.el,R.anchor)},_=({el:R,anchor:k},G,X)=>{let W;for(;R&&R!==k;)W=h(R),n(R,G,X),R=W;n(k,G,X)},S=({el:R,anchor:k})=>{let G;for(;R&&R!==k;)G=h(R),i(R),R=G;i(k)},x=(R,k,G,X,W,J,ot,ut,it)=>{if(k.type==="svg"?ot="svg":k.type==="math"&&(ot="mathml"),R==null)b(k,G,X,W,J,ot,ut,it);else{const rt=R.el&&R.el._isVueCE?R.el:null;try{rt&&rt._beginPatch(),A(R,k,W,J,ot,ut,it)}finally{rt&&rt._endPatch()}}},b=(R,k,G,X,W,J,ot,ut)=>{let it,rt;const{props:At,shapeFlag:dt,transition:wt,dirs:Rt}=R;if(it=R.el=o(R.type,J,At&&At.is,At),dt&8?f(it,R.children):dt&16&&T(R.children,it,null,X,W,Vd(R,J),ot,ut),Rt&&ya(R,null,X,"created"),w(it,R,R.scopeId,ot,X),At){for(const ne in At)ne!=="value"&&!ou(ne)&&a(it,ne,null,At[ne],J,X);"value"in At&&a(it,"value",null,At.value,J),(rt=At.onVnodeBeforeMount)&&_n(rt,X,R)}Rt&&ya(R,null,X,"beforeMount");const Yt=GV(W,wt);Yt&&wt.beforeEnter(it),n(it,k,G),((rt=At&&At.onVnodeMounted)||Yt||Rt)&&Ye(()=>{try{rt&&_n(rt,X,R),Yt&&wt.enter(it),Rt&&ya(R,null,X,"mounted")}finally{}},W)},w=(R,k,G,X,W)=>{if(G&&v(R,G),X)for(let J=0;J<X.length;J++)v(R,X[J]);if(W){let J=W.subTree;if(k===J||mI(J.type)&&(J.ssContent===k||J.ssFallback===k)){const ot=W.vnode;w(R,ot,ot.scopeId,ot.slotScopeIds,W.parent)}}},T=(R,k,G,X,W,J,ot,ut,it=0)=>{for(let rt=it;rt<R.length;rt++){const At=R[rt]=ut?ri(R[rt]):Ln(R[rt]);p(null,At,k,G,X,W,J,ot,ut)}},A=(R,k,G,X,W,J,ot)=>{const ut=k.el=R.el;let{patchFlag:it,dynamicChildren:rt,dirs:At}=k;it|=R.patchFlag&16;const dt=R.props||ie,wt=k.props||ie;let Rt;if(G&&ma(G,!1),(Rt=wt.onVnodeBeforeUpdate)&&_n(Rt,G,k,R),At&&ya(k,R,G,"beforeUpdate"),G&&ma(G,!0),(dt.innerHTML&&wt.innerHTML==null||dt.textContent&&wt.textContent==null)&&f(ut,""),rt?C(R.dynamicChildren,rt,ut,G,X,Vd(k,W),J):ot||N(R,k,ut,null,G,X,Vd(k,W),J,!1),it>0){if(it&16)D(ut,dt,wt,G,W);else if(it&2&&dt.class!==wt.class&&a(ut,"class",null,wt.class,W),it&4&&a(ut,"style",dt.style,wt.style,W),it&8){const Yt=k.dynamicProps;for(let ne=0;ne<Yt.length;ne++){const oe=Yt[ne],Se=dt[oe],we=wt[oe];(we!==Se||oe==="value")&&a(ut,oe,Se,we,W,G)}}it&1&&R.children!==k.children&&f(ut,k.children)}else!ot&&rt==null&&D(ut,dt,wt,G,W);((Rt=wt.onVnodeUpdated)||At)&&Ye(()=>{Rt&&_n(Rt,G,k,R),At&&ya(k,R,G,"updated")},X)},C=(R,k,G,X,W,J,ot)=>{for(let ut=0;ut<k.length;ut++){const it=R[ut],rt=k[ut],At=it.el&&(it.type===zr||!pl(it,rt)||it.shapeFlag&198)?c(it.el):G;p(it,rt,At,null,X,W,J,ot,!0)}},D=(R,k,G,X,W)=>{if(k!==G){if(k!==ie)for(const J in k)!ou(J)&&!(J in G)&&a(R,J,k[J],null,W,X);for(const J in G){if(ou(J))continue;const ot=G[J],ut=k[J];ot!==ut&&J!=="value"&&a(R,J,ut,ot,W,X)}"value"in G&&a(R,"value",k.value,G.value,W)}},I=(R,k,G,X,W,J,ot,ut,it)=>{const rt=k.el=R?R.el:s(""),At=k.anchor=R?R.anchor:s("");let{patchFlag:dt,dynamicChildren:wt,slotScopeIds:Rt}=k;Rt&&(ut=ut?ut.concat(Rt):Rt),R==null?(n(rt,G,X),n(At,G,X),T(k.children||[],G,At,W,J,ot,ut,it)):dt>0&&dt&64&&wt&&R.dynamicChildren&&R.dynamicChildren.length===wt.length?(C(R.dynamicChildren,wt,G,W,J,ot,ut),(k.key!=null||W&&k===W.subTree)&&G0(R,k,!0)):N(R,k,G,At,W,J,ot,ut,it)},L=(R,k,G,X,W,J,ot,ut,it)=>{k.slotScopeIds=ut,R==null?k.shapeFlag&512?W.ctx.activate(k,G,X,ot,it):P(k,G,X,W,J,ot,it):E(R,k,it)},P=(R,k,G,X,W,J,ot)=>{const ut=R.component=KV(R,X,W);if(N0(R)&&(ut.ctx.renderer=tt),JV(ut,!1,ot),ut.asyncDep){if(W&&W.registerDep(ut,O,ot),!R.el){const it=ut.subTree=Pe(pi);y(null,it,k,G),R.placeholder=it.el}}else O(ut,R,k,G,W,J,ot)},E=(R,k,G)=>{const X=k.component=R.component;if(LV(R,k,G))if(X.asyncDep&&!X.asyncResolved){V(X,k,G);return}else X.next=k,X.update();else k.el=R.el,X.vnode=k},O=(R,k,G,X,W,J,ot)=>{const ut=()=>{if(R.isMounted){let{next:dt,bu:wt,u:Rt,parent:Yt,vnode:ne}=R;{const _r=gI(R);if(_r){dt&&(dt.el=ne.el,V(R,dt,ot)),_r.asyncDep.then(()=>{Ye(()=>{R.isUnmounted||rt()},W)});return}}let oe=dt,Se;ma(R,!1),dt?(dt.el=ne.el,V(R,dt,ot)):dt=ne,wt&&Uc(wt),(Se=dt.props&&dt.props.onVnodeBeforeUpdate)&&_n(Se,Yt,dt,ne),ma(R,!0);const we=Nd(R),Kr=R.subTree;R.subTree=we,p(Kr,we,c(Kr.el),U(Kr),R,W,J),dt.el=we.el,oe===null&&PV(R,we.el),Rt&&Ye(Rt,W),(Se=dt.props&&dt.props.onVnodeUpdated)&&Ye(()=>_n(Se,Yt,dt,ne),W)}else{let dt;const{el:wt,props:Rt}=k,{bm:Yt,m:ne,parent:oe,root:Se,type:we}=R,Kr=As(k);if(ma(R,!1),Yt&&Uc(Yt),!Kr&&(dt=Rt&&Rt.onVnodeBeforeMount)&&_n(dt,oe,k),ma(R,!0),wt&&lt){const _r=()=>{R.subTree=Nd(R),lt(wt,R.subTree,R,W,null)};Kr&&we.__asyncHydrate?we.__asyncHydrate(wt,R,_r):_r()}else{Se.ce&&Se.ce._hasShadowRoot()&&Se.ce._injectChildStyle(we,R.parent?R.parent.type:void 0);const _r=R.subTree=Nd(R);p(null,_r,G,X,R,W,J),k.el=_r.el}if(ne&&Ye(ne,W),!Kr&&(dt=Rt&&Rt.onVnodeMounted)){const _r=k;Ye(()=>_n(dt,oe,_r),W)}(k.shapeFlag&256||oe&&As(oe.vnode)&&oe.vnode.shapeFlag&256)&&R.a&&Ye(R.a,W),R.isMounted=!0,k=G=X=null}};R.scope.on();const it=R.effect=new ID(ut);R.scope.off();const rt=R.update=it.run.bind(it),At=R.job=it.runIfDirty.bind(it);At.i=R,At.id=R.uid,it.scheduler=()=>P0(At),ma(R,!0),rt()},V=(R,k,G)=>{k.component=R;const X=R.vnode.props;R.vnode=k,R.next=null,EV(R,k.props,X,G),VV(R,k.children,G),hi(),gS(R),vi()},N=(R,k,G,X,W,J,ot,ut,it=!1)=>{const rt=R&&R.children,At=R?R.shapeFlag:0,dt=k.children,{patchFlag:wt,shapeFlag:Rt}=k;if(wt>0){if(wt&128){$(rt,dt,G,X,W,J,ot,ut,it);return}else if(wt&256){z(rt,dt,G,X,W,J,ot,ut,it);return}}Rt&8?(At&16&&Et(rt,W,J),dt!==rt&&f(G,dt)):At&16?Rt&16?$(rt,dt,G,X,W,J,ot,ut,it):Et(rt,W,J,!0):(At&8&&f(G,""),Rt&16&&T(dt,G,X,W,J,ot,ut,it))},z=(R,k,G,X,W,J,ot,ut,it)=>{R=R||bs,k=k||bs;const rt=R.length,At=k.length,dt=Math.min(rt,At);let wt;for(wt=0;wt<dt;wt++){const Rt=k[wt]=it?ri(k[wt]):Ln(k[wt]);p(R[wt],Rt,G,null,W,J,ot,ut,it)}rt>At?Et(R,W,J,!0,!1,dt):T(k,G,X,W,J,ot,ut,it,dt)},$=(R,k,G,X,W,J,ot,ut,it)=>{let rt=0;const At=k.length;let dt=R.length-1,wt=At-1;for(;rt<=dt&&rt<=wt;){const Rt=R[rt],Yt=k[rt]=it?ri(k[rt]):Ln(k[rt]);if(pl(Rt,Yt))p(Rt,Yt,G,null,W,J,ot,ut,it);else break;rt++}for(;rt<=dt&&rt<=wt;){const Rt=R[dt],Yt=k[wt]=it?ri(k[wt]):Ln(k[wt]);if(pl(Rt,Yt))p(Rt,Yt,G,null,W,J,ot,ut,it);else break;dt--,wt--}if(rt>dt){if(rt<=wt){const Rt=wt+1,Yt=Rt<At?k[Rt].el:X;for(;rt<=wt;)p(null,k[rt]=it?ri(k[rt]):Ln(k[rt]),G,Yt,W,J,ot,ut,it),rt++}}else if(rt>wt)for(;rt<=dt;)Q(R[rt],W,J,!0),rt++;else{const Rt=rt,Yt=rt,ne=new Map;for(rt=Yt;rt<=wt;rt++){const Sr=k[rt]=it?ri(k[rt]):Ln(k[rt]);Sr.key!=null&&ne.set(Sr.key,rt)}let oe,Se=0;const we=wt-Yt+1;let Kr=!1,_r=0;const hl=new Array(we);for(rt=0;rt<we;rt++)hl[rt]=0;for(rt=Rt;rt<=dt;rt++){const Sr=R[rt];if(Se>=we){Q(Sr,W,J,!0);continue}let mn;if(Sr.key!=null)mn=ne.get(Sr.key);else for(oe=Yt;oe<=wt;oe++)if(hl[oe-Yt]===0&&pl(Sr,k[oe])){mn=oe;break}mn===void 0?Q(Sr,W,J,!0):(hl[mn-Yt]=rt+1,mn>=_r?_r=mn:Kr=!0,p(Sr,k[mn],G,null,W,J,ot,ut,it),Se++)}const aS=Kr?FV(hl):bs;for(oe=aS.length-1,rt=we-1;rt>=0;rt--){const Sr=Yt+rt,mn=k[Sr],oS=k[Sr+1],sS=Sr+1<At?oS.el||yI(oS):X;hl[rt]===0?p(null,mn,G,sS,W,J,ot,ut,it):Kr&&(oe<0||rt!==aS[oe]?q(mn,G,sS,2):oe--)}}},q=(R,k,G,X,W=null)=>{const{el:J,type:ot,transition:ut,children:it,shapeFlag:rt}=R;if(rt&6){q(R.component.subTree,k,G,X);return}if(rt&128){R.suspense.move(k,G,X);return}if(rt&64){ot.move(R,k,G,tt);return}if(ot===zr){n(J,k,G);for(let dt=0;dt<it.length;dt++)q(it[dt],k,G,X);n(R.anchor,k,G);return}if(ot===Kc){_(R,k,G);return}if(X!==2&&rt&1&&ut)if(X===0)ut.beforeEnter(J),n(J,k,G),Ye(()=>ut.enter(J),W);else{const{leave:dt,delayLeave:wt,afterLeave:Rt}=ut,Yt=()=>{R.ctx.isUnmounted?i(J):n(J,k,G)},ne=()=>{J._isLeaving&&J[tV](!0),dt(J,()=>{Yt(),Rt&&Rt()})};wt?wt(J,Yt,ne):ne()}else n(J,k,G)},Q=(R,k,G,X=!1,W=!1)=>{const{type:J,props:ot,ref:ut,children:it,dynamicChildren:rt,shapeFlag:At,patchFlag:dt,dirs:wt,cacheIndex:Rt,memo:Yt}=R;if(dt===-2&&(W=!1),ut!=null&&(hi(),fu(ut,null,G,R,!0),vi()),Rt!=null&&(k.renderCache[Rt]=void 0),At&256){k.ctx.deactivate(R);return}const ne=At&1&&wt,oe=!As(R);let Se;if(oe&&(Se=ot&&ot.onVnodeBeforeUnmount)&&_n(Se,k,R),At&6)gt(R.component,G,X);else{if(At&128){R.suspense.unmount(G,X);return}ne&&ya(R,null,k,"beforeUnmount"),At&64?R.type.remove(R,k,G,tt,X):rt&&!rt.hasOnce&&(J!==zr||dt>0&&dt&64)?Et(rt,k,G,!1,!0):(J===zr&&dt&384||!W&&At&16)&&Et(it,k,G),X&&ct(R)}const we=Yt!=null&&Rt==null;(oe&&(Se=ot&&ot.onVnodeUnmounted)||ne||we)&&Ye(()=>{Se&&_n(Se,k,R),ne&&ya(R,null,k,"unmounted"),we&&(R.el=null)},G)},ct=R=>{const{type:k,el:G,anchor:X,transition:W}=R;if(k===zr){ht(G,X);return}if(k===Kc){S(R);return}const J=()=>{i(G),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(R.shapeFlag&1&&W&&!W.persisted){const{leave:ot,delayLeave:ut}=W,it=()=>ot(G,J);ut?ut(R.el,J,it):it()}else J()},ht=(R,k)=>{let G;for(;R!==k;)G=h(R),i(R),R=G;i(k)},gt=(R,k,G)=>{const{bum:X,scope:W,job:J,subTree:ot,um:ut,m:it,a:rt}=R;IS(it),IS(rt),X&&Uc(X),W.stop(),J&&(J.flags|=8,Q(ot,R,k,G)),ut&&Ye(ut,k),Ye(()=>{R.isUnmounted=!0},k)},Et=(R,k,G,X=!1,W=!1,J=0)=>{for(let ot=J;ot<R.length;ot++)Q(R[ot],k,G,X,W)},U=R=>{if(R.shapeFlag&6)return U(R.component.subTree);if(R.shapeFlag&128)return R.suspense.next();const k=h(R.anchor||R.el),G=k&&k[JD];return G?h(G):k};let K=!1;const H=(R,k,G)=>{let X;R==null?k._vnode&&(Q(k._vnode,null,null,!0),X=k._vnode.component):p(k._vnode||null,R,k,null,null,null,G),k._vnode=R,K||(K=!0,gS(X),XD(),K=!1)},tt={p,um:Q,m:q,r:ct,mt:P,mc:T,pc:N,pbc:C,n:U,o:r};let j,lt;return t&&([j,lt]=t(tt)),{render:H,hydrate:j,createApp:TV(H,j)}}function Vd({type:r,props:t},e){return e==="svg"&&r==="foreignObject"||e==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function ma({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function GV(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function G0(r,t,e=!1){const n=r.children,i=t.children;if(It(n)&&It(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]=ri(i[a]),s.el=o.el),!e&&s.patchFlag!==-2&&G0(o,s)),s.type===Gv&&(s.patchFlag===-1&&(s=i[a]=ri(s)),s.el=o.el),s.type===pi&&!s.el&&(s.el=o.el)}}function FV(r){const t=r.slice(),e=[0];let n,i,a,o,s;const l=r.length;for(n=0;n<l;n++){const u=r[n];if(u!==0){if(i=e[e.length-1],r[i]<u){t[n]=i,e.push(n);continue}for(a=0,o=e.length-1;a<o;)s=a+o>>1,r[e[s]]<u?a=s+1:o=s;u<r[e[a]]&&(a>0&&(t[n]=e[a-1]),e[a]=n)}}for(a=e.length,o=e[a-1];a-- >0;)e[a]=o,o=t[o];return e}function gI(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gI(t)}function IS(r){if(r)for(let t=0;t<r.length;t++)r[t].flags|=8}function yI(r){if(r.placeholder)return r.placeholder;const t=r.component;return t?yI(t.subTree):null}const mI=r=>r.__isSuspense;function HV(r,t){t&&t.pendingBranch?It(r)?t.effects.push(...r):t.effects.push(r):YN(r)}const zr=Symbol.for("v-fgt"),Gv=Symbol.for("v-txt"),pi=Symbol.for("v-cmt"),Kc=Symbol.for("v-stc"),hu=[];let wr=null;function Ch(r=!1){hu.push(wr=r?null:[])}function WV(){hu.pop(),wr=hu[hu.length-1]||null}let ku=1;function Mh(r,t=!1){ku+=r,r<0&&wr&&t&&(wr.hasOnce=!0)}function _I(r){return r.dynamicChildren=ku>0?wr||bs:null,WV(),ku>0&&wr&&wr.push(r),r}function Bit(r,t,e,n,i,a){return _I(xI(r,t,e,n,i,a,!0))}function Dh(r,t,e,n,i){return _I(Pe(r,t,e,n,i,!0))}function Ou(r){return r?r.__v_isVNode===!0:!1}function pl(r,t){return r.type===t.type&&r.key===t.key}const SI=({key:r})=>r!=null?r:null,jc=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?ye(r)||ke(r)||Ot(r)?{i:Ve,r,k:t,f:!!e}:r:null);function xI(r,t=null,e=null,n=0,i=null,a=r===zr?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&SI(t),ref:t&&jc(t),scopeId:KD,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ve};return s?(F0(l,e),a&128&&r.normalize(l)):e&&(l.shapeFlag|=ye(e)?8:16),ku>0&&!o&&wr&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&wr.push(l),l}const Pe=$V;function $V(r,t=null,e=null,n=0,i=null,a=!1){if((!r||r===pV)&&(r=pi),Ou(r)){const s=Os(r,t,!0);return e&&F0(s,e),ku>0&&!a&&wr&&(s.shapeFlag&6?wr[wr.indexOf(r)]=s:wr.push(s)),s.patchFlag=-2,s}if(nB(r)&&(r=r.__vccOpts),t){t=UV(t);let{class:s,style:l}=t;s&&!ye(s)&&(t.class=w0(s)),re(l)&&(Vv(l)&&!It(l)&&(l=Me({},l)),t.style=b0(l))}const o=ye(r)?1:mI(r)?128:jN(r)?64:re(r)?4:Ot(r)?2:0;return xI(r,t,e,n,i,o,a,!0)}function UV(r){return r?Vv(r)||fI(r)?Me({},r):r:null}function Os(r,t,e=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=r,u=t?ZV(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&SI(u),ref:t&&t.ref?e&&a?It(a)?a.concat(jc(t)):[a,jc(t)]:jc(t):a,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:s,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==zr?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:l,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Os(r.ssContent),ssFallback:r.ssFallback&&Os(r.ssFallback),placeholder:r.placeholder,el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&n&&E0(f,l.clone(f)),f}function YV(r=" ",t=0){return Pe(Gv,null,r,t)}function zit(r,t){const e=Pe(Kc,null,r);return e.staticCount=t,e}function Git(r="",t=!1){return t?(Ch(),Dh(pi,null,r)):Pe(pi,null,r)}function Ln(r){return r==null||typeof r=="boolean"?Pe(pi):It(r)?Pe(zr,null,r.slice()):Ou(r)?ri(r):Pe(Gv,null,String(r))}function ri(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Os(r)}function F0(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(It(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),F0(r,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!fI(t)?t._ctx=Ve:i===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else Ot(t)?(t={default:t,_ctx:Ve},e=32):(t=String(t),n&64?(e=16,t=[YV(t)]):e=8);r.children=t,r.shapeFlag|=e}function ZV(...r){const t={};for(let e=0;e<r.length;e++){const n=r[e];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=w0([t.class,n.class]));else if(i==="style")t.style=b0([t.style,n.style]);else if(Mv(i)){const a=t[i],o=n[i];o&&a!==o&&!(It(a)&&a.includes(o))?t[i]=a?[].concat(a,o):o:o==null&&a==null&&!Dv(i)&&(t[i]=o)}else i!==""&&(t[i]=n[i])}return t}function _n(r,t,e,n=null){Gn(r,t,7,[e,n])}const XV=aI();let qV=0;function KV(r,t,e){const n=r.type,i=(t?t.appContext:r.appContext)||XV,a={uid:qV++,vnode:r,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new vN(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hI(n,i),emitsOptions:oI(n,i),emit:null,emitted:null,propsDefaults:ie,inheritAttrs:n.inheritAttrs,ctx:ie,data:ie,props:ie,attrs:ie,slots:ie,refs:ie,setupState:ie,setupContext:null,suspense:e,suspenseId:e?e.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=CV.bind(null,a),r.ce&&r.ce(a),a}let Ne=null;const jV=()=>Ne||Ve;let Ih,Ty;{const r=kv(),t=(e,n)=>{let i;return(i=r[e])||(i=r[e]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Ih=t("__VUE_INSTANCE_SETTERS__",e=>Ne=e),Ty=t("__VUE_SSR_SETTERS__",e=>Ns=e)}const yf=r=>{const t=Ne;return Ih(r),r.scope.on(),()=>{r.scope.off(),Ih(t)}},LS=()=>{Ne&&Ne.scope.off(),Ih(null)};function bI(r){return r.vnode.shapeFlag&4}let Ns=!1;function JV(r,t=!1,e=!1){t&&Ty(t);const{props:n,children:i}=r.vnode,a=bI(r);RV(r,n,a,t),NV(r,i,e||t);const o=a?QV(r,t):void 0;return t&&Ty(!1),o}function QV(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,yV);const{setup:n}=e;if(n){hi();const i=r.setupContext=n.length>1?eB(r):null,a=yf(r),o=pf(n,r,0,[r.props,i]),s=bD(o);if(vi(),a(),(s||r.sp)&&!As(r)&&O0(r),s){if(o.then(LS,LS),t)return o.then(l=>{PS(r,l,t)}).catch(l=>{gf(l,r,0)});r.asyncDep=o}else PS(r,o,t)}else wI(r,t)}function PS(r,t,e){Ot(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:re(t)&&(r.setupState=UD(t)),wI(r,e)}let RS;function wI(r,t,e){const n=r.type;if(!r.render){if(!t&&RS&&!n.render){const i=n.template||V0(r).template;if(i){const{isCustomElement:a,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Me(Me({isCustomElement:a,delimiters:s},o),l);n.render=RS(i,u)}}r.render=n.render||sn}{const i=yf(r);hi();try{mV(r)}finally{vi(),i()}}}const tB={get(r,t){return Xe(r,"get",""),r[t]}};function eB(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,tB),slots:r.slots,emit:r.emit,expose:t}}function Fv(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(UD(kN(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in cu)return cu[e](r)},has(t,e){return e in t||e in cu}})):r.proxy}function rB(r,t=!0){return Ot(r)?r.displayName||r.name:r.name||t&&r.__name}function nB(r){return Ot(r)&&"__vccOpts"in r}const nn=(r,t)=>FN(r,t,Ns);function TI(r,t,e){try{Mh(-1);const n=arguments.length;return n===2?re(t)&&!It(t)?Ou(t)?Pe(r,null,[t]):Pe(r,t):Pe(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&Ou(e)&&(e=[e]),Pe(r,t,e))}finally{Mh(1)}}const iB="3.5.31";/**
* @vue/runtime-dom v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ay;const ES=typeof window!="undefined"&&window.trustedTypes;if(ES)try{Ay=ES.createPolicy("vue",{createHTML:r=>r})}catch(r){}const AI=Ay?r=>Ay.createHTML(r):r=>r,aB="http://www.w3.org/2000/svg",oB="http://www.w3.org/1998/Math/MathML",Qn=typeof document!="undefined"?document:null,kS=Qn&&Qn.createElement("template"),sB={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const i=t==="svg"?Qn.createElementNS(aB,r):t==="mathml"?Qn.createElementNS(oB,r):e?Qn.createElement(r,{is:e}):Qn.createElement(r);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>Qn.createTextNode(r),createComment:r=>Qn.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Qn.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,i,a){const o=e?e.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===a||!(i=i.nextSibling)););else{kS.innerHTML=AI(n==="svg"?`<svg>${r}</svg>`:n==="mathml"?`<math>${r}</math>`:r);const s=kS.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},lB=Symbol("_vtc");function uB(r,t,e){const n=r[lB];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const Lh=Symbol("_vod"),CI=Symbol("_vsh"),Fit={name:"show",beforeMount(r,{value:t},{transition:e}){r[Lh]=r.style.display==="none"?"":r.style.display,e&&t?e.beforeEnter(r):gl(r,t)},mounted(r,{value:t},{transition:e}){e&&t&&e.enter(r)},updated(r,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(r),gl(r,!0),n.enter(r)):n.leave(r,()=>{gl(r,!1)}):gl(r,t))},beforeUnmount(r,{value:t}){gl(r,t)}};function gl(r,t){r.style.display=t?r[Lh]:"none",r[CI]=!t}const fB=Symbol(""),cB=/(?:^|;)\s*display\s*:/;function hB(r,t,e){const n=r.style,i=ye(e);let a=!1;if(e&&!i){if(t)if(ye(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();e[s]==null&&Jc(n,s,"")}else for(const o in t)e[o]==null&&Jc(n,o,"");for(const o in e)o==="display"&&(a=!0),Jc(n,o,e[o])}else if(i){if(t!==e){const o=n[fB];o&&(e+=";"+o),n.cssText=e,a=cB.test(e)}}else t&&r.removeAttribute("style");Lh in r&&(r[Lh]=a?n.display:"",r[CI]&&(n.display="none"))}const OS=/\s*!important$/;function Jc(r,t,e){if(It(e))e.forEach(n=>Jc(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=vB(r,t);OS.test(e)?r.setProperty(va(n),e.replace(OS,""),"important"):r[n]=e}}const NS=["Webkit","Moz","ms"],Bd={};function vB(r,t){const e=Bd[t];if(e)return e;let n=ar(t);if(n!=="filter"&&n in r)return Bd[t]=n;n=Rv(n);for(let i=0;i<NS.length;i++){const a=NS[i]+n;if(a in r)return Bd[t]=a}return t}const VS="http://www.w3.org/1999/xlink";function BS(r,t,e,n,i,a=uN(t)){n&&t.startsWith("xlink:")?e==null?r.removeAttributeNS(VS,t.slice(6,t.length)):r.setAttributeNS(VS,t,e):e==null||a&&!CD(e)?r.removeAttribute(t):r.setAttribute(t,a?"":Ir(e)?String(e):e)}function zS(r,t,e,n,i){if(t==="innerHTML"||t==="textContent"){e!=null&&(r[t]=t==="innerHTML"?AI(e):e);return}const a=r.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?r.getAttribute("value")||"":r.value,l=e==null?r.type==="checkbox"?"on":"":String(e);(s!==l||!("_value"in r))&&(r.value=l),e==null&&r.removeAttribute(t),r._value=e;return}let o=!1;if(e===""||e==null){const s=typeof r[t];s==="boolean"?e=CD(e):e==null&&s==="string"?(e="",o=!0):s==="number"&&(e=0,o=!0)}try{r[t]=e}catch(s){}o&&r.removeAttribute(i||t)}function Ka(r,t,e,n){r.addEventListener(t,e,n)}function dB(r,t,e,n){r.removeEventListener(t,e,n)}const GS=Symbol("_vei");function pB(r,t,e,n,i=null){const a=r[GS]||(r[GS]={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=gB(t);if(n){const u=a[t]=_B(n,i);Ka(r,s,u,l)}else o&&(dB(r,s,o,l),a[t]=void 0)}}const FS=/(?:Once|Passive|Capture)$/;function gB(r){let t;if(FS.test(r)){t={};let n;for(;n=r.match(FS);)r=r.slice(0,r.length-n[0].length),t[n[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):va(r.slice(2)),t]}let zd=0;const yB=Promise.resolve(),mB=()=>zd||(yB.then(()=>zd=0),zd=Date.now());function _B(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Gn(SB(n,e.value),t,5,[n])};return e.value=r,e.attached=mB(),e}function SB(r,t){if(It(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const HS=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,xB=(r,t,e,n,i,a)=>{const o=i==="svg";t==="class"?uB(r,n,o):t==="style"?hB(r,e,n):Mv(t)?Dv(t)||pB(r,t,e,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bB(r,t,n,o))?(zS(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&BS(r,t,n,o,a,t!=="value")):r._isVueCE&&(wB(r,t)||r._def.__asyncLoader&&(/[A-Z]/.test(t)||!ye(n)))?zS(r,ar(t),n,a,t):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),BS(r,t,n,o))};function bB(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&HS(t)&&Ot(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&r.tagName==="IFRAME"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=r.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return HS(t)&&ye(e)?!1:t in r}function wB(r,t){const e=r._def.props;if(!e)return!1;const n=ar(t);return Array.isArray(e)?e.some(i=>ar(i)===n):Object.keys(e).some(i=>ar(i)===n)}const Ph=r=>{const t=r.props["onUpdate:modelValue"]||!1;return It(t)?e=>Uc(t,e):t};function TB(r){r.target.composing=!0}function WS(r){const t=r.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ms=Symbol("_assign");function $S(r,t,e){return t&&(r=r.trim()),e&&(r=Ev(r)),r}const Hit={created(r,{modifiers:{lazy:t,trim:e,number:n}},i){r[Ms]=Ph(i);const a=n||i.props&&i.props.type==="number";Ka(r,t?"change":"input",o=>{o.target.composing||r[Ms]($S(r.value,e,a))}),(e||a)&&Ka(r,"change",()=>{r.value=$S(r.value,e,a)}),t||(Ka(r,"compositionstart",TB),Ka(r,"compositionend",WS),Ka(r,"change",WS))},mounted(r,{value:t}){r.value=t==null?"":t},beforeUpdate(r,{value:t,oldValue:e,modifiers:{lazy:n,trim:i,number:a}},o){if(r[Ms]=Ph(o),r.composing)return;const s=(a||r.type==="number")&&!/^0\d/.test(r.value)?Ev(r.value):r.value,l=t==null?"":t;if(s===l)return;const u=r.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===r&&r.type!=="range"&&(n&&t===e||i&&r.value.trim()===l)||(r.value=l)}},Wit={deep:!0,created(r,{value:t,modifiers:{number:e}},n){const i=Iv(t);Ka(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>e?Ev(Rh(o)):Rh(o));r[Ms](r.multiple?i?new Set(a):a:a[0]),r._assigning=!0,L0(()=>{r._assigning=!1})}),r[Ms]=Ph(n)},mounted(r,{value:t}){US(r,t)},beforeUpdate(r,t,e){r[Ms]=Ph(e)},updated(r,{value:t}){r._assigning||US(r,t)}};function US(r,t){const e=r.multiple,n=It(t);if(!(e&&!n&&!Iv(t))){for(let i=0,a=r.options.length;i<a;i++){const o=r.options[i],s=Rh(o);if(e)if(n){const l=typeof s;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(s)):o.selected=cN(t,s)>-1}else o.selected=t.has(s);else if(df(Rh(o),t)){r.selectedIndex!==i&&(r.selectedIndex=i);return}}!e&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Rh(r){return"_value"in r?r._value:r.value}const AB=["ctrl","shift","alt","meta"],CB={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,t)=>AB.some(e=>r[`${e}Key`]&&!t.includes(e))},$it=(r,t)=>{if(!r)return r;const e=r._withMods||(r._withMods={}),n=t.join(".");return e[n]||(e[n]=(i,...a)=>{for(let o=0;o<t.length;o++){const s=CB[t[o]];if(s&&s(i,t))return}return r(i,...a)})},MB={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Uit=(r,t)=>{const e=r._withKeys||(r._withKeys={}),n=t.join(".");return e[n]||(e[n]=i=>{if(!("key"in i))return;const a=va(i.key);if(t.some(o=>o===a||MB[o]===a))return r(i)})},DB=Me({patchProp:xB},sB);let YS;function IB(){return YS||(YS=BV(DB))}const LB=(...r)=>{const t=IB().createApp(...r),{mount:e}=t;return t.mount=n=>{const i=RB(n);if(!i)return;const a=t._component;!Ot(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=e(i,!1,PB(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function PB(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function RB(r){return ye(r)?document.querySelector(r):r}const EB="modulepreload",kB=function(r,t){return new URL(r,t).href},ZS={},H0=function(t,e,n){if(!e||e.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(e.map(a=>{if(a=kB(a,n),a in ZS)return;ZS[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!n)for(let f=i.length-1;f>=0;f--){const c=i[f];if(c.href===a&&(!o||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":EB,o||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),o)return new Promise((f,c)=>{u.addEventListener("load",f),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})};/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const hs=typeof document!="undefined";function MI(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function OB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&MI(r.default)}const Kt=Object.assign;function Gd(r,t){const e={};for(const n in t){const i=t[n];e[n]=vn(i)?i.map(r):r(i)}return e}const vu=()=>{},vn=Array.isArray;function XS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}const DI=/#/g,NB=/&/g,VB=/\//g,BB=/=/g,zB=/\?/g,II=/\+/g,GB=/%5B/g,FB=/%5D/g,LI=/%5E/g,HB=/%60/g,PI=/%7B/g,WB=/%7C/g,RI=/%7D/g,$B=/%20/g;function W0(r){return r==null?"":encodeURI(""+r).replace(WB,"|").replace(GB,"[").replace(FB,"]")}function UB(r){return W0(r).replace(PI,"{").replace(RI,"}").replace(LI,"^")}function Cy(r){return W0(r).replace(II,"%2B").replace($B,"+").replace(DI,"%23").replace(NB,"%26").replace(HB,"`").replace(PI,"{").replace(RI,"}").replace(LI,"^")}function YB(r){return Cy(r).replace(BB,"%3D")}function ZB(r){return W0(r).replace(DI,"%23").replace(zB,"%3F")}function XB(r){return ZB(r).replace(VB,"%2F")}function Nu(r){if(r==null)return null;try{return decodeURIComponent(""+r)}catch(t){}return""+r}const qB=/\/$/,KB=r=>r.replace(qB,"");function Fd(r,t,e="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(n=t.slice(0,l),a=t.slice(l,s>0?s:t.length),i=r(a.slice(1))),s>=0&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=tz(n!=null?n:t,e),{fullPath:n+a+o,path:n,query:i,hash:Nu(o)}}function jB(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function qS(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function JB(r,t,e){const n=t.matched.length-1,i=e.matched.length-1;return n>-1&&n===i&&Vs(t.matched[n],e.matched[i])&&EI(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Vs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function EI(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(var e in r)if(!QB(r[e],t[e]))return!1;return!0}function QB(r,t){return vn(r)?KS(r,t):vn(t)?KS(t,r):(r==null?void 0:r.valueOf())===(t==null?void 0:t.valueOf())}function KS(r,t){return vn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function tz(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=e.length-1,o,s;for(o=0;o<n.length;o++)if(s=n[o],s!==".")if(s==="..")a>1&&a--;else break;return e.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const Mi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let My=function(r){return r.pop="pop",r.push="push",r}({}),Hd=function(r){return r.back="back",r.forward="forward",r.unknown="",r}({});function ez(r){if(!r)if(hs){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),KB(r)}const rz=/^[^#]+#/;function nz(r,t){return r.replace(rz,"#")+t}function iz(r,t){const e=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:t.behavior,left:n.left-e.left-(t.left||0),top:n.top-e.top-(t.top||0)}}const Hv=()=>({left:window.scrollX,top:window.scrollY});function az(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),i=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!i)return;t=iz(i,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function jS(r,t){return(history.state?history.state.position-t:-1)+r}const Dy=new Map;function oz(r,t){Dy.set(r,t)}function sz(r){const t=Dy.get(r);return Dy.delete(r),t}function lz(r){return typeof r=="string"||r&&typeof r=="object"}function kI(r){return typeof r=="string"||typeof r=="symbol"}let he=function(r){return r[r.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",r[r.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",r[r.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",r[r.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",r[r.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",r}({});const OI=Symbol("");he.MATCHER_NOT_FOUND+"",he.NAVIGATION_GUARD_REDIRECT+"",he.NAVIGATION_ABORTED+"",he.NAVIGATION_CANCELLED+"",he.NAVIGATION_DUPLICATED+"";function Bs(r,t){return Kt(new Error,{type:r,[OI]:!0},t)}function qn(r,t){return r instanceof Error&&OI in r&&(t==null||!!(r.type&t))}const uz=["params","query","hash"];function fz(r){if(typeof r=="string")return r;if(r.path!=null)return r.path;const t={};for(const e of uz)e in r&&(t[e]=r[e]);return JSON.stringify(t,null,2)}function cz(r){const t={};if(r===""||r==="?")return t;const e=(r[0]==="?"?r.slice(1):r).split("&");for(let n=0;n<e.length;++n){const i=e[n].replace(II," "),a=i.indexOf("="),o=Nu(a<0?i:i.slice(0,a)),s=a<0?null:Nu(i.slice(a+1));if(o in t){let l=t[o];vn(l)||(l=t[o]=[l]),l.push(s)}else t[o]=s}return t}function JS(r){let t="";for(let e in r){const n=r[e];if(e=YB(e),n==null){n!==void 0&&(t+=(t.length?"&":"")+e);continue}(vn(n)?n.map(i=>i&&Cy(i)):[n&&Cy(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function hz(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=vn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const vz=Symbol(""),QS=Symbol(""),Wv=Symbol(""),$0=Symbol(""),Iy=Symbol("");function yl(){let r=[];function t(n){return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function Fi(r,t,e,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(Bs(he.NAVIGATION_ABORTED,{from:e,to:t})):h instanceof Error?l(h):lz(h)?l(Bs(he.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),s())},f=a(()=>r.call(n&&n.instances[i],t,e,u));let c=Promise.resolve(f);r.length<3&&(c=c.then(u)),c.catch(h=>l(h))})}function Wd(r,t,e,n,i=a=>a()){const a=[];for(const o of r)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(MI(l)){const u=(l.__vccOpts||l)[t];u&&a.push(Fi(u,e,n,o,s,i))}else{let u=l();a.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=OB(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const h=(c.__vccOpts||c)[t];return h&&Fi(h,e,n,o,s,i)()}))}}return a}function dz(r,t){const e=[],n=[],i=[],a=Math.max(t.matched.length,r.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(r.matched.find(u=>Vs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Vs(u,l))||i.push(l))}return[e,n,i]}/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let pz=()=>location.protocol+"//"+location.host;function NI(r,t){const{pathname:e,search:n,hash:i}=t,a=r.indexOf("#");if(a>-1){let o=i.includes(r.slice(a))?r.slice(a).length:1,s=i.slice(o);return s[0]!=="/"&&(s="/"+s),qS(s,"")}return qS(e,r)+n+i}function gz(r,t,e,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=NI(r,location),d=e.value,p=t.value;let g=0;if(h){if(e.value=v,t.value=h,o&&o===d){o=null;return}g=p?h.position-p.position:0}else n(v);i.forEach(y=>{y(e.value,d,{delta:g,type:My.pop,direction:g?g>0?Hd.forward:Hd.back:Hd.unknown})})};function l(){o=e.value}function u(h){i.push(h);const v=()=>{const d=i.indexOf(h);d>-1&&i.splice(d,1)};return a.push(v),v}function f(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Kt({},h.state,{scroll:Hv()}),"")}}function c(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:l,listen:u,destroy:c}}function tx(r,t,e,n=!1,i=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:i?Hv():null}}function yz(r){const{history:t,location:e}=window,n={value:NI(r,e)},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=r.indexOf("#"),h=c>-1?(e.host&&document.querySelector("base")?r:r.slice(c))+l:pz()+r+l;try{t[f?"replaceState":"pushState"](u,"",h),i.value=u}catch(v){console.error(v),e[f?"replace":"assign"](h)}}function o(l,u){a(l,Kt({},t.state,tx(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),n.value=l}function s(l,u){const f=Kt({},i.value,t.state,{forward:l,scroll:Hv()});a(f.current,f,!0),a(l,Kt({},tx(n.value,l,null),{position:f.position+1},u),!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function mz(r){r=ez(r);const t=yz(r),e=gz(r,t.state,t.location,t.replace);function n(a,o=!0){o||e.pauseListeners(),history.go(a)}const i=Kt({location:"",base:r,go:n,createHref:nz.bind(null,r)},t,e);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function _z(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),mz(r)}let eo=function(r){return r[r.Static=0]="Static",r[r.Param=1]="Param",r[r.Group=2]="Group",r}({});var Te=function(r){return r[r.Static=0]="Static",r[r.Param=1]="Param",r[r.ParamRegExp=2]="ParamRegExp",r[r.ParamRegExpEnd=3]="ParamRegExpEnd",r[r.EscapeNext=4]="EscapeNext",r}(Te||{});const Sz={type:eo.Static,value:""},xz=/[a-zA-Z0-9_]/;function bz(r){if(!r)return[[]];if(r==="/")return[[Sz]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(v){throw new Error(`ERR (${e})/"${u}": ${v}`)}let e=Te.Static,n=e;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(e===Te.Static?a.push({type:eo.Static,value:u}):e===Te.Param||e===Te.ParamRegExp||e===Te.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:eo.Param,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s<r.length;){if(l=r[s++],l==="\\"&&e!==Te.ParamRegExp){n=e,e=Te.EscapeNext;continue}switch(e){case Te.Static:l==="/"?(u&&c(),o()):l===":"?(c(),e=Te.Param):h();break;case Te.EscapeNext:h(),e=n;break;case Te.Param:l==="("?e=Te.ParamRegExp:xz.test(l)?h():(c(),e=Te.Static,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case Te.ParamRegExp:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:e=Te.ParamRegExpEnd:f+=l;break;case Te.ParamRegExpEnd:c(),e=Te.Static,l!=="*"&&l!=="?"&&l!=="+"&&s--,f="";break;default:t("Unknown state");break}}return e===Te.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),c(),o(),i}const ex="[^/]+?",wz={sensitive:!1,strict:!1,start:!0,end:!0};var tr=function(r){return r[r._multiplier=10]="_multiplier",r[r.Root=90]="Root",r[r.Segment=40]="Segment",r[r.SubSegment=30]="SubSegment",r[r.Static=40]="Static",r[r.Dynamic=20]="Dynamic",r[r.BonusCustomRegExp=10]="BonusCustomRegExp",r[r.BonusWildcard=-50]="BonusWildcard",r[r.BonusRepeatable=-20]="BonusRepeatable",r[r.BonusOptional=-8]="BonusOptional",r[r.BonusStrict=.7000000000000001]="BonusStrict",r[r.BonusCaseSensitive=.25]="BonusCaseSensitive",r}(tr||{});const Tz=/[.+*?^${}()[\]/\\]/g;function Az(r,t){const e=Kt({},wz,t),n=[];let i=e.start?"^":"";const a=[];for(const u of r){const f=u.length?[]:[tr.Root];e.strict&&!u.length&&(i+="/");for(let c=0;c<u.length;c++){const h=u[c];let v=tr.Segment+(e.sensitive?tr.BonusCaseSensitive:0);if(h.type===eo.Static)c||(i+="/"),i+=h.value.replace(Tz,"\\$&"),v+=tr.Static;else if(h.type===eo.Param){const{value:d,repeatable:p,optional:g,regexp:y}=h;a.push({name:d,repeatable:p,optional:g});const m=y||ex;if(m!==ex){v+=tr.BonusCustomRegExp;try{`${m}`}catch(S){throw new Error(`Invalid custom RegExp for param "${d}" (${m}): `+S.message)}}let _=p?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;c||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),i+=_,v+=tr.Dynamic,g&&(v+=tr.BonusOptional),p&&(v+=tr.BonusRepeatable),m===".*"&&(v+=tr.BonusWildcard)}f.push(v)}n.push(f)}if(e.strict&&e.end){const u=n.length-1;n[u][n[u].length-1]+=tr.BonusStrict}e.strict||(i+="/?"),e.end?i+="$":e.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,e.sensitive?"":"i");function s(u){const f=u.match(o),c={};if(!f)return null;for(let h=1;h<f.length;h++){const v=f[h]||"",d=a[h-1];c[d.name]=v&&d.repeatable?v.split("/"):v}return c}function l(u){let f="",c=!1;for(const h of r){(!c||!f.endsWith("/"))&&(f+="/"),c=!1;for(const v of h)if(v.type===eo.Static)f+=v.value;else if(v.type===eo.Param){const{value:d,repeatable:p,optional:g}=v,y=d in u?u[d]:"";if(vn(y)&&!p)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const m=vn(y)?y.join("/"):y;if(!m)if(g)h.length<2&&(f.endsWith("/")?f=f.slice(0,-1):c=!0);else throw new Error(`Missing required param "${d}"`);f+=m}}return f||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function Cz(r,t){let e=0;for(;e<r.length&&e<t.length;){const n=t[e]-r[e];if(n)return n;e++}return r.length<t.length?r.length===1&&r[0]===tr.Static+tr.Segment?-1:1:r.length>t.length?t.length===1&&t[0]===tr.Static+tr.Segment?1:-1:0}function VI(r,t){let e=0;const n=r.score,i=t.score;for(;e<n.length&&e<i.length;){const a=Cz(n[e],i[e]);if(a)return a;e++}if(Math.abs(i.length-n.length)===1){if(rx(n))return 1;if(rx(i))return-1}return i.length-n.length}function rx(r){const t=r[r.length-1];return r.length>0&&t[t.length-1]<0}const Mz={strict:!1,end:!0,sensitive:!1};function Dz(r,t,e){const n=Az(bz(r.path),e),i=Kt(n,{record:r,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Iz(r,t){const e=[],n=new Map;t=XS(Mz,t);function i(c){return n.get(c)}function a(c,h,v){const d=!v,p=ix(c);p.aliasOf=v&&v.record;const g=XS(t,c),y=[p];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const x of S)y.push(ix(Kt({},p,{components:v?v.record.components:p.components,path:x,aliasOf:v?v.record:p})))}let m,_;for(const S of y){const{path:x}=S;if(h&&x[0]!=="/"){const b=h.record.path,w=b[b.length-1]==="/"?"":"/";S.path=h.record.path+(x&&w+x)}if(m=Dz(S,h,g),v?v.alias.push(m):(_=_||m,_!==m&&_.alias.push(m),d&&c.name&&!ax(m)&&o(c.name)),BI(m)&&l(m),p.children){const b=p.children;for(let w=0;w<b.length;w++)a(b[w],m,v&&v.children[w])}v=v||m}return _?()=>{o(_)}:vu}function o(c){if(kI(c)){const h=n.get(c);h&&(n.delete(c),e.splice(e.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=e.indexOf(c);h>-1&&(e.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return e}function l(c){const h=Rz(c,e);e.splice(h,0,c),c.record.name&&!ax(c)&&n.set(c.record.name,c)}function u(c,h){let v,d={},p,g;if("name"in c&&c.name){if(v=n.get(c.name),!v)throw Bs(he.MATCHER_NOT_FOUND,{location:c});g=v.record.name,d=Kt(nx(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&nx(c.params,v.keys.map(_=>_.name))),p=v.stringify(d)}else if(c.path!=null)p=c.path,v=e.find(_=>_.re.test(p)),v&&(d=v.parse(p),g=v.record.name);else{if(v=h.name?n.get(h.name):e.find(_=>_.re.test(h.path)),!v)throw Bs(he.MATCHER_NOT_FOUND,{location:c,currentLocation:h});g=v.record.name,d=Kt({},h.params,c.params),p=v.stringify(d)}const y=[];let m=v;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:p,params:d,matched:y,meta:Pz(y)}}r.forEach(c=>a(c));function f(){e.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:i}}function nx(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function ix(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:Lz(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Lz(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const n in r.components)t[n]=typeof e=="object"?e[n]:e;return t}function ax(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function Pz(r){return r.reduce((t,e)=>Kt(t,e.meta),{})}function Rz(r,t){let e=0,n=t.length;for(;e!==n;){const a=e+n>>1;VI(r,t[a])<0?n=a:e=a+1}const i=Ez(r);return i&&(n=t.lastIndexOf(i,n-1)),n}function Ez(r){let t=r;for(;t=t.parent;)if(BI(t)&&VI(r,t)===0)return t}function BI({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function ox(r){const t=un(Wv),e=un($0),n=nn(()=>{const l=vo(r.to);return t.resolve(l)}),i=nn(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=e.matched;if(!f||!c.length)return-1;const h=c.findIndex(Vs.bind(null,f));if(h>-1)return h;const v=sx(l[u-2]);return u>1&&sx(f)===v&&c[c.length-1].path!==v?c.findIndex(Vs.bind(null,l[u-2])):h}),a=nn(()=>i.value>-1&&Bz(e.params,n.value.params)),o=nn(()=>i.value>-1&&i.value===e.matched.length-1&&EI(e.params,n.value.params));function s(l={}){if(Vz(l)){const u=t[vo(r.replace)?"replace":"push"](vo(r.to)).catch(vu);return r.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:nn(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function kz(r){return r.length===1?r[0]:r}const Oz=k0({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"},viewTransition:Boolean},useLink:ox,setup(r,{slots:t}){const e=Nv(ox(r)),{options:n}=un(Wv),i=nn(()=>({[lx(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[lx(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const a=t.default&&kz(t.default(e));return r.custom?a:TI("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:i.value},a)}}}),Nz=Oz;function Vz(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function Bz(r,t){for(const e in t){const n=t[e],i=r[e];if(typeof n=="string"){if(n!==i)return!1}else if(!vn(i)||i.length!==n.length||n.some((a,o)=>a.valueOf()!==i[o].valueOf()))return!1}return!0}function sx(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const lx=(r,t,e)=>r!=null?r:t!=null?t:e,zz=k0({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=un(Iy),i=nn(()=>r.route||n.value),a=un(QS,0),o=nn(()=>{let u=vo(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=nn(()=>i.value.matched[o.value]);Zc(QS,nn(()=>o.value+1)),Zc(vz,s),Zc(Iy,i);const l=Yc();return Xc(()=>[l.value,s.value,r.name],([u,f,c],[h,v,d])=>{f&&(f.instances[c]=u,v&&v!==f&&u&&u===h&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),u&&f&&(!v||!Vs(f,v)||!h)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=r.name,c=s.value,h=c&&c.components[f];if(!h)return ux(e.default,{Component:h,route:u});const v=c.props[f],d=v?v===!0?u.params:typeof v=="function"?v(u):v:null,g=TI(h,Kt({},d,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return ux(e.default,{Component:g,route:u})||g}}});function ux(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const Gz=zz;function Fz(r){const t=Iz(r.routes,r),e=r.parseQuery||cz,n=r.stringifyQuery||JS,i=r.history,a=yl(),o=yl(),s=yl(),l=ON(Mi);let u=Mi;hs&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Gd.bind(null,U=>""+U),c=Gd.bind(null,XB),h=Gd.bind(null,Nu);function v(U,K){let H,tt;return kI(U)?(H=t.getRecordMatcher(U),tt=K):tt=U,t.addRoute(tt,H)}function d(U){const K=t.getRecordMatcher(U);K&&t.removeRoute(K)}function p(){return t.getRoutes().map(U=>U.record)}function g(U){return!!t.getRecordMatcher(U)}function y(U,K){if(K=Kt({},K||l.value),typeof U=="string"){const k=Fd(e,U,K.path),G=t.resolve({path:k.path},K),X=i.createHref(k.fullPath);return Kt(k,G,{params:h(G.params),hash:Nu(k.hash),redirectedFrom:void 0,href:X})}let H;if(U.path!=null)H=Kt({},U,{path:Fd(e,U.path,K.path).path});else{const k=Kt({},U.params);for(const G in k)k[G]==null&&delete k[G];H=Kt({},U,{params:c(k)}),K.params=c(K.params)}const tt=t.resolve(H,K),j=U.hash||"";tt.params=f(h(tt.params));const lt=jB(n,Kt({},U,{hash:UB(j),path:tt.path})),R=i.createHref(lt);return Kt({fullPath:lt,hash:j,query:n===JS?hz(U.query):U.query||{}},tt,{redirectedFrom:void 0,href:R})}function m(U){return typeof U=="string"?Fd(e,U,l.value.path):Kt({},U)}function _(U,K){if(u!==U)return Bs(he.NAVIGATION_CANCELLED,{from:K,to:U})}function S(U){return w(U)}function x(U){return S(Kt(m(U),{replace:!0}))}function b(U,K){const H=U.matched[U.matched.length-1];if(H&&H.redirect){const{redirect:tt}=H;let j=typeof tt=="function"?tt(U,K):tt;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=m(j):{path:j},j.params={}),Kt({query:U.query,hash:U.hash,params:j.path!=null?{}:U.params},j)}}function w(U,K){const H=u=y(U),tt=l.value,j=U.state,lt=U.force,R=U.replace===!0,k=b(H,tt);if(k)return w(Kt(m(k),{state:typeof k=="object"?Kt({},j,k.state):j,force:lt,replace:R}),K||H);const G=H;G.redirectedFrom=K;let X;return!lt&&JB(n,tt,H)&&(X=Bs(he.NAVIGATION_DUPLICATED,{to:G,from:tt}),q(tt,tt,!0,!1)),(X?Promise.resolve(X):C(G,tt)).catch(W=>qn(W)?qn(W,he.NAVIGATION_GUARD_REDIRECT)?W:$(W):N(W,G,tt)).then(W=>{if(W){if(qn(W,he.NAVIGATION_GUARD_REDIRECT))return w(Kt({replace:R},m(W.to),{state:typeof W.to=="object"?Kt({},j,W.to.state):j,force:lt}),K||G)}else W=I(G,tt,!0,R,j);return D(G,tt,W),W})}function T(U,K){const H=_(U,K);return H?Promise.reject(H):Promise.resolve()}function A(U){const K=ht.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(U):U()}function C(U,K){let H;const[tt,j,lt]=dz(U,K);H=Wd(tt.reverse(),"beforeRouteLeave",U,K);for(const k of tt)k.leaveGuards.forEach(G=>{H.push(Fi(G,U,K))});const R=T.bind(null,U,K);return H.push(R),Et(H).then(()=>{H=[];for(const k of a.list())H.push(Fi(k,U,K));return H.push(R),Et(H)}).then(()=>{H=Wd(j,"beforeRouteUpdate",U,K);for(const k of j)k.updateGuards.forEach(G=>{H.push(Fi(G,U,K))});return H.push(R),Et(H)}).then(()=>{H=[];for(const k of lt)if(k.beforeEnter)if(vn(k.beforeEnter))for(const G of k.beforeEnter)H.push(Fi(G,U,K));else H.push(Fi(k.beforeEnter,U,K));return H.push(R),Et(H)}).then(()=>(U.matched.forEach(k=>k.enterCallbacks={}),H=Wd(lt,"beforeRouteEnter",U,K,A),H.push(R),Et(H))).then(()=>{H=[];for(const k of o.list())H.push(Fi(k,U,K));return H.push(R),Et(H)}).catch(k=>qn(k,he.NAVIGATION_CANCELLED)?k:Promise.reject(k))}function D(U,K,H){s.list().forEach(tt=>A(()=>tt(U,K,H)))}function I(U,K,H,tt,j){const lt=_(U,K);if(lt)return lt;const R=K===Mi,k=hs?history.state:{};H&&(tt||R?i.replace(U.fullPath,Kt({scroll:R&&k&&k.scroll},j)):i.push(U.fullPath,j)),l.value=U,q(U,K,H,R),$()}let L;function P(){L||(L=i.listen((U,K,H)=>{if(!gt.listening)return;const tt=y(U),j=b(tt,gt.currentRoute.value);if(j){w(Kt(j,{replace:!0,force:!0}),tt).catch(vu);return}u=tt;const lt=l.value;hs&&oz(jS(lt.fullPath,H.delta),Hv()),C(tt,lt).catch(R=>qn(R,he.NAVIGATION_ABORTED|he.NAVIGATION_CANCELLED)?R:qn(R,he.NAVIGATION_GUARD_REDIRECT)?(w(Kt(m(R.to),{force:!0}),tt).then(k=>{qn(k,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&!H.delta&&H.type===My.pop&&i.go(-1,!1)}).catch(vu),Promise.reject()):(H.delta&&i.go(-H.delta,!1),N(R,tt,lt))).then(R=>{R=R||I(tt,lt,!1),R&&(H.delta&&!qn(R,he.NAVIGATION_CANCELLED)?i.go(-H.delta,!1):H.type===My.pop&&qn(R,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(tt,lt,R)}).catch(vu)}))}let E=yl(),O=yl(),V;function N(U,K,H){$(U);const tt=O.list();return tt.length?tt.forEach(j=>j(U,K,H)):console.error(U),Promise.reject(U)}function z(){return V&&l.value!==Mi?Promise.resolve():new Promise((U,K)=>{E.add([U,K])})}function $(U){return V||(V=!U,P(),E.list().forEach(([K,H])=>U?H(U):K()),E.reset()),U}function q(U,K,H,tt){const{scrollBehavior:j}=r;if(!hs||!j)return Promise.resolve();const lt=!H&&sz(jS(U.fullPath,0))||(tt||!H)&&history.state&&history.state.scroll||null;return L0().then(()=>j(U,K,lt)).then(R=>R&&az(R)).catch(R=>N(R,U,K))}const Q=U=>i.go(U);let ct;const ht=new Set,gt={currentRoute:l,listening:!0,addRoute:v,removeRoute:d,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:p,resolve:y,options:r,push:S,replace:x,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:z,install(U){U.component("RouterLink",Nz),U.component("RouterView",Gz),U.config.globalProperties.$router=gt,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>vo(l)}),hs&&!ct&&l.value===Mi&&(ct=!0,S(i.location).catch(tt=>{}));const K={};for(const tt in Mi)Object.defineProperty(K,tt,{get:()=>l.value[tt],enumerable:!0});U.provide(Wv,gt),U.provide($0,WD(K)),U.provide(Iy,l);const H=U.unmount;ht.add(U),U.unmount=function(){ht.delete(U),ht.size<1&&(u=Mi,L&&L(),L=null,l.value=Mi,ct=!1,V=!1),H()}}};function Et(U){return U.reduce((K,H)=>K.then(()=>A(H)),Promise.resolve())}return gt}function Yit(){return un(Wv)}function Zit(r){return un($0)}const ro="Authorization",Hz=["/","/screen2","/screen2/"];function Wz(r){return encodeURIComponent(r||"/platform")}function fx(){const r=document.cookie.split(";").map(t=>t.trim()).find(t=>t.startsWith(`${ro}=`));return r?decodeURIComponent(r.slice(ro.length+1)):""}function zI(){const r=window.location.hostname;Hz.forEach(t=>{document.cookie=`${ro}=; Max-Age=0; path=${t}`,document.cookie=`${ro}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}`,r&&(document.cookie=`${ro}=; Max-Age=0; path=${t}; domain=${r}`,document.cookie=`${ro}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}; domain=${r}`)})}function Ly(r=window.location.hash.replace(/^#/,"")||"/platform"){return`/login?redirect=${Wz(r)}`}function $z(r){zI();const t=Ly(r);window.location.hash.replace(/^#/,"")!==t&&(window.location.hash=t)}function Xit(r,t){return vl(this,null,function*(){var i;zI();const e=yield fetch("/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json","Content-Language":"zh_CN"},body:JSON.stringify({username:r,password:t})}),n=yield e.json().catch(()=>({}));if(!e.ok||(n==null?void 0:n.code)!==200){const a=new Error((n==null?void 0:n.msg)||"登录失败,请检查用户名或密码。");throw a.status=e.status,a.code=n==null?void 0:n.code,a}return(i=n==null?void 0:n.data)!=null&&i.token&&(document.cookie=`${ro}=${encodeURIComponent(n.data.token)}; path=/`),n})}function qit(){return vl(this,null,function*(){yield fetch("/logout",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json","Content-Language":"zh_CN"},body:"{}"}).catch(()=>null),$z("/platform")})}function Uz(){return vl(this,null,function*(){const r=yield fetch("/getInfo",{credentials:"include",headers:{Accept:"application/json","Content-Language":"zh_CN"}}),t=yield r.json().catch(()=>({}));if(!r.ok||(t==null?void 0:t.code)!==200){const e=new Error((t==null?void 0:t.msg)||"用户未登录或授权已过期。");throw e.status=r.status||401,e.code=(t==null?void 0:t.code)||401,e}return t.data})}const cx=()=>H0(()=>import("./index-c5bb6f01-1783298613872.js"),["./index-c5bb6f01-1783298613872.js","./chartTheme-6ff1ec31-1783298613872.js","./chartTheme-812dab15-balabala-1783298613872.css","./index-36e36714-balabala-1783298613872.css"],import.meta.url),Yz=()=>H0(()=>import("./index-0e792d13-1783298613872.js"),["./index-0e792d13-1783298613872.js","./index-35b2fd67-balabala-1783298613872.css"],import.meta.url),Zz=()=>H0(()=>import("./index-625ae259-1783298613872.js"),["./index-625ae259-1783298613872.js","./chartTheme-6ff1ec31-1783298613872.js","./chartTheme-812dab15-balabala-1783298613872.css","./index-8d752fbe-balabala-1783298613872.css"],import.meta.url),GI=Fz({history:_z(),routes:[{path:"/",redirect:"/platform"},{path:"/login",component:Yz,meta:{public:!0}},{path:"/platform",component:cx},{path:"/forest-grass-wet",component:cx},{path:"/chart-style-guide",component:Zz},{path:"/:pathMatch(.*)",redirect:"/"}]});let du=null;GI.beforeEach(r=>vl(void 0,null,function*(){if(r.meta.public){if(fx())try{return yield hx(),r.query.redirect?decodeURIComponent(r.query.redirect):"/platform"}catch(t){du=null}return!0}if(!fx())return Ly(r.fullPath);try{return yield hx(),!0}catch(t){return du=null,Ly(r.fullPath)}}));function hx(){return du||(du=Uz()),du}const Xz=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},qz={};function Kz(r,t){const e=dV("router-view");return Ch(),Dh(e)}const jz=Xz(qz,[["render",Kz]]);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
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 Py=function(r,t){return Py=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Py(r,t)};function B(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Py(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Jz=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Qz=function(){function r(){this.browser=new Jz,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!="undefined"}return r}(),Vi=new Qz;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Vi.wxa=!0,Vi.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Vi.worker=!0:!Vi.hasGlobalWindow||"Deno"in window?(Vi.node=!0,Vi.svgSupported=!0):t5(navigator.userAgent,Vi);function t5(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const zt=Vi;var U0=12,FI="sans-serif",na=U0+"px "+FI,e5=20,r5=100,n5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function i5(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-e5)/r5;t[n]=i}return t}var a5=i5(n5),ia={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var i=ia.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||na),r.measureText(e);e=e||"",n=n||na;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||U0,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=a5[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}},HI=Fn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),WI=Fn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),qs=Object.prototype.toString,$v=Array.prototype,o5=$v.forEach,s5=$v.filter,Y0=$v.slice,l5=$v.map,vx=function(){}.constructor,Wf=vx?vx.prototype:null,Z0="__proto__",u5=2311;function $I(){return u5++}function X0(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,r)}function mt(r){if(r==null||typeof r!="object")return r;var t=r,e=qs.call(r);if(e==="[object Array]"){if(!pu(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=mt(r[n])}}else if(WI[e]){if(!pu(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!HI[e]&&!pu(r)&&!zs(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Z0&&(t[o]=mt(r[o]))}return t}function Tt(r,t,e){if(!yt(t)||!yt(r))return e?mt(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Z0){var i=r[n],a=t[n];yt(a)&&yt(i)&&!Y(a)&&!Y(i)&&!zs(a)&&!zs(i)&&!dx(a)&&!dx(i)&&!pu(a)&&!pu(i)?Tt(i,a,e):(e||!(n in r))&&(r[n]=mt(t[n]))}return r}function q0(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=Tt(e,r[n],t);return e}function F(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Z0&&(r[e]=t[e]);return r}function pt(r,t,e){for(var n=kt(t),i=0,a=n.length;i<a;i++){var o=n[i];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}function Dt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function f5(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function _e(r,t,e){if(r="prototype"in r?r.prototype:r,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"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else pt(r,t,e)}function Ke(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function M(r,t,e){if(r&&t)if(r.forEach&&r.forEach===o5)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function Z(r,t,e){if(!r)return[];if(!t)return K0(r);if(r.map&&r.map===l5)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function Fn(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function $t(r,t,e){if(!r)return[];if(!t)return K0(r);if(r.filter&&r.filter===s5)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function c5(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function kt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function h5(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(Y0.call(arguments)))}}var at=Wf&&vt(Wf.bind)?Wf.call.bind(Wf.bind):h5;function bt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Y0.call(arguments)))}}function Y(r){return Array.isArray?Array.isArray(r):qs.call(r)==="[object Array]"}function vt(r){return typeof r=="function"}function nt(r){return typeof r=="string"}function Ry(r){return qs.call(r)==="[object String]"}function Ft(r){return typeof r=="number"}function yt(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function dx(r){return!!HI[qs.call(r)]}function pr(r){return!!WI[qs.call(r)]}function zs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Uv(r){return r.colorStops!=null}function v5(r){return r.image!=null}function d5(r){return qs.call(r)==="[object RegExp]"}function Vu(r){return r!==r}function Re(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function xt(r,t){return r!=null?r:t}function Bn(r,t,e){return r!=null?r:t!=null?t:e}function K0(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Y0.apply(r,t)}function j0(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function sr(r,t){if(!r)throw new Error(t)}function an(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var UI="__ec_primitive__";function Eh(r){r[UI]=!0}function pu(r){return r[UI]}var p5=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return kt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),YI=typeof Map=="function";function g5(){return YI?new Map:new p5}var y5=function(){function r(t){var e=Y(t);this.data=g5();var n=this;t instanceof r?t.each(i):t&&M(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return YI?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function ft(r){return new y5(r)}function Bu(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function Yv(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&F(e,t),e}function ZI(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function st(r,t){return r.hasOwnProperty(t)}function de(){}var Qc=180/Math.PI;function Ro(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function er(r,t){return r[0]=t[0],r[1]=t[1],r}function si(r){return[r[0],r[1]]}function m5(r,t,e){return r[0]=t,r[1]=e,r}function px(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Ey(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function no(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function ky(r){return Math.sqrt(_5(r))}function _5(r){return r[0]*r[0]+r[1]*r[1]}function th(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Ks(r,t){var e=ky(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Oy(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var $i=Oy;function S5(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var po=S5;function eh(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function Be(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function Ui(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Yi(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Wo=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),x5=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Wo(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new Wo(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Wo(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Wo(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Wo(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Wo(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const b5=x5;var w5=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),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:e,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},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.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,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[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,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}();const Zr=w5;var T5=Math.log(2);function Ny(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/T5);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&i||(c+=(v%2?-1:1)*r[e][h]*Ny(r,t-1,f,u,i|d,a),v++)}return a[o]=c,c}function gx(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=Ny(e,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)*Ny(e,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 yx="___zrEVENTSAVED",$d=[];function A5(r,t,e,n,i){return Vy($d,t,n,i,!0)&&Vy(r,e,$d[0],$d[1])}function Vy(r,t,e,n,i){if(t.getBoundingClientRect&&zt.domSupported&&!XI(t)){var a=t[yx]||(t[yx]={}),o=C5(t,a),s=M5(o,a,i);if(s)return s(r,e,n),!0}return!1}function C5(r,t){var e=t.markers;if(e)return e;e=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;"),r.appendChild(o),e.push(o)}return e}function M5(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?gx(s,o):gx(o,s))}function XI(r){return r.nodeName.toUpperCase()==="CANVAS"}var D5=/([&<>"'])/g,I5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function qe(r){return r==null?"":(r+"").replace(D5,function(t,e){return I5[e]})}var L5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ud=[],P5=zt.browser.firefox&&+zt.browser.version.split(".")[0]<39;function By(r,t,e,n){return e=e||{},n?mx(r,t,e):P5&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):mx(r,t,e),e}function mx(r,t,e){if(zt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(XI(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Vy(Ud,r,n,i)){e.zrX=Ud[0],e.zrY=Ud[1];return}}e.zrX=e.zrY=0}function J0(r){return r||window.event}function Or(r,t,e){if(t=J0(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&&By(r,o,t,e)}else{By(r,t,t,e);var a=R5(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&L5.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function R5(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function zy(r,t,e,n){r.addEventListener(t,e,n)}function E5(r,t,e,n){r.removeEventListener(t,e,n)}var gi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function _x(r){return r.which===2||r.which===3}var k5=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=By(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Yd)if(Yd.hasOwnProperty(e)){var n=Yd[e](this._track,t);if(n)return n}},r}();function Sx(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function O5(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Yd={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Sx(n)/Sx(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=O5(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Cr(){return[1,0,0,1,0,0]}function Zv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Q0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function li(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Hn(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Eo(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=i*c+s*f,r[1]=-i*f+s*c,r[2]=a*c+l*f,r[3]=-a*f+c*l,r[4]=c*(o-n[0])+f*(u-n[1])+n[0],r[5]=c*(u-n[1])-f*(o-n[0])+n[1],r}function t_(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function js(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function N5(r){var t=Cr();return Q0(t,r),t}var V5=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const Ct=V5;var $f=Math.min,Uf=Math.max,_a=new Ct,Sa=new Ct,xa=new Ct,ba=new Ct,ml=new Ct,_l=new Ct,B5=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=$f(t.x,this.x),n=$f(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Uf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Uf(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Cr();return Hn(a,a,[-e.x,-e.y]),t_(a,a,[n,i]),Hn(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.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(e){var v=1/0,d=0,p=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(c-o),_=Math.min(p,g),S=Math.min(y,m);a<l||u<i?_>d&&(d=_,p<g?Ct.set(_l,-p,0):Ct.set(_l,g,0)):_<v&&(v=_,p<g?Ct.set(ml,p,0):Ct.set(ml,-g,0)),s<f||c<o?S>d&&(d=S,y<m?Ct.set(_l,0,-y):Ct.set(_l,0,m)):_<v&&(v=_,y<m?Ct.set(ml,0,y):Ct.set(ml,0,-m))}return e&&Ct.copy(e,h?ml:_l),h},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);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=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.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}_a.x=xa.x=e.x,_a.y=ba.y=e.y,Sa.x=ba.x=e.x+e.width,Sa.y=xa.y=e.y+e.height,_a.transform(n),ba.transform(n),Sa.transform(n),xa.transform(n),t.x=$f(_a.x,Sa.x,xa.x,ba.x),t.y=$f(_a.y,Sa.y,xa.y,ba.y);var l=Uf(_a.x,Sa.x,xa.x,ba.x),u=Uf(_a.y,Sa.y,xa.y,ba.y);t.width=l-t.x,t.height=u-t.y},r}();const Mt=B5;var qI="silent";function z5(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:G5}}function G5(){gi(this.event)}var F5=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Zr),Sl=function(){function r(t,e){this.x=t,this.y=e}return r}(),H5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Zd=new Mt(0,0,0,0),KI=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Sl(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new F5,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new b5(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(H5,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=jI(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 Sl(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",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Sl(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];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(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=z5(n,e,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(e,n,i){var a=this.storage.getDisplayList(),o=new Sl(e,n);if(xx(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Mt(e-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)&&(Zd.copy(h.getBoundingRect()),h.transform&&Zd.applyTransform(h.transform),Zd.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=n+g*Math.sin(y);if(xx(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new k5);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Sl;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Zr);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){KI.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=jI(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||$i(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function W5(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?qI:!0}return!1}function xx(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=W5(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==qI)){t.target=o;break}}}function jI(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const $5=KI;var JI=32,xl=7;function U5(r){for(var t=0;r>=JI;)t|=r&1,r>>=1;return r+t}function bx(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;Y5(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function Y5(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function Tx(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Xd(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l<s&&a(r,t[e+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(r,t[e+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(r,t[e+f])>0?o=f+1:l=f}return l}function qd(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l<s&&a(r,t[e+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(r,t[e+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(r,t[e+f])<0?l=f:o=f+1}return l}function Z5(r,t){var e=xl,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],p=i[v],g=n[v+1],y=i[v+1];i[v]=p+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=qd(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=Xd(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?c(d,p,g,y):h(d,p,g,y)))}function c(v,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=p,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=e,b,w,T;;){b=0,w=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){T=!0;break}while((b|w)<x);if(T)break;do{if(b=qd(r[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=Xd(o[m],r,_,g,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}x--}while(b>=xl||w>=xl);if(T)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function h(v,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=v+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=e;;){var T=0,A=0,C=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,A=0,--d===0){C=!0;break}}else if(r[S--]=o[_--],A++,T=0,--g===1){C=!0;break}while((T|A)<w);if(C)break;do{if(T=d-qd(o[_],r,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,b=S+1,x=m+1,y=T-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){C=!0;break}}if(r[S--]=o[_--],--g===1){C=!0;break}if(A=g-Xd(r[m],o,0,g,g-1,t),A!==0){for(S-=A,_-=A,g-=A,b=S+1,x=_+1,y=0;y<A;y++)r[b+y]=o[x+y];if(g<=1){C=!0;break}}if(r[S--]=r[m--],--d===0){C=!0;break}w--}while(T>=xl||A>=xl);if(C)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function rh(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<JI){a=bx(r,e,n,t),Tx(r,e,n,e+a,t);return}var o=Z5(r,t),s=U5(i);do{if(a=bx(r,e,n,t),a<s){var l=i;l>s&&(l=s),Tx(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var br=1,Xl=2,vs=4,Ax=!1;function Kd(){Ax||(Ax=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Cx(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var X5=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Cx}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,rh(n,Cx)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.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,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Kd(),f.z=0),isNaN(f.z2)&&(Kd(),f.z2=0),isNaN(f.zlevel)&&(Kd(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=Dt(this._roots,t);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const q5=X5;var QI;QI=zt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Gy=QI;var nh={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-nh.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?nh.bounceIn(r*2)*.5:nh.bounceOut(r*2-1)*.5+.5}};const tL=nh;var Yf=Math.pow,Qi=Math.sqrt,kh=1e-8,eL=1e-4,Mx=Qi(3),Zf=1/3,Rn=Ro(),Gr=Ro(),Ds=Ro();function Zi(r){return r>-kh&&r<kh}function rL(r){return r>kh||r<-kh}function Ae(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Dx(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Oh(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Zi(f)&&Zi(c))if(Zi(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=c*c-4*f*h;if(Zi(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(p>0){var m=Qi(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Yf(-_,Zf):_=Yf(_,Zf),S<0?S=-Yf(-S,Zf):S=Yf(S,Zf);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var x=(2*f*s-3*o*c)/(2*Qi(f*f*f)),b=Math.acos(x)/3,w=Qi(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+Mx*Math.sin(b)))/(3*o),A=(-s+w*(T-Mx*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),A>=0&&A<=1&&(a[v++]=A)}}return v}function nL(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Zi(o)){if(rL(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Zi(f))i[0]=-a/(2*o);else if(f>0){var c=Qi(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 aa(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function iL(r,t,e,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,y;Rn[0]=l,Rn[1]=u;for(var m=0;m<1;m+=.05)Gr[0]=Ae(r,e,i,o,m),Gr[1]=Ae(t,n,a,s,m),g=po(Rn,Gr),g<v&&(c=m,v=g);v=1/0;for(var _=0;_<32&&!(h<eL);_++)d=c-h,p=c+h,Gr[0]=Ae(r,e,i,o,d),Gr[1]=Ae(t,n,a,s,d),g=po(Gr,Rn),d>=0&&g<v?(c=d,v=g):(Ds[0]=Ae(r,e,i,o,p),Ds[1]=Ae(t,n,a,s,p),y=po(Ds,Rn),p<=1&&y<v?(c=p,v=y):h*=.5);return f&&(f[0]=Ae(r,e,i,o,c),f[1]=Ae(t,n,a,s,c)),Qi(v)}function K5(r,t,e,n,i,a,o,s,l){for(var u=r,f=t,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=Ae(r,e,i,o,d),g=Ae(t,n,a,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function Le(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function Fy(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function j5(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Zi(a)){if(rL(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Zi(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Qi(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 aL(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function zu(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function oL(r,t,e,n,i,a,o,s,l){var u,f=.005,c=1/0;Rn[0]=o,Rn[1]=s;for(var h=0;h<1;h+=.05){Gr[0]=Le(r,e,i,h),Gr[1]=Le(t,n,a,h);var v=po(Rn,Gr);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<eL);d++){var p=u-f,g=u+f;Gr[0]=Le(r,e,i,p),Gr[1]=Le(t,n,a,p);var v=po(Gr,Rn);if(p>=0&&v<c)u=p,c=v;else{Ds[0]=Le(r,e,i,g),Ds[1]=Le(t,n,a,g);var y=po(Ds,Rn);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=Le(r,e,i,u),l[1]=Le(t,n,a,u)),Qi(c)}function J5(r,t,e,n,i,a,o){for(var s=r,l=t,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=Le(r,e,i,h),d=Le(t,n,a,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var Q5=/cubic-bezier\(([0-9,\.e ]+)\)/;function e_(r){var t=r&&Q5.exec(r);if(t){var e=t[1].split(","),n=+an(e[0]),i=+an(e[1]),a=+an(e[2]),o=+an(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Oh(0,n,a,1,l,s)&&Ae(0,i,o,1,s[0])}}}var tG=function(){function r(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||de,this.ondestroy=t.ondestroy||de,this.onrestart=t.onrestart||de,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;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},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=vt(t)?t:tL[t]||e_(t)},r}();const eG=tG;var sL=function(){function r(t){this.value=t}return r}(),rG=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new sL(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),nG=function(){function r(t){this._list=new rG,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){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=e:s=new sL(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const mf=nG;var Ix={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 fn(r){return r=Math.round(r),r<0?0:r>255?255:r}function iG(r){return r=Math.round(r),r<0?0:r>360?360:r}function Gu(r){return r<0?0:r>1?1:r}function jd(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?fn(parseFloat(t)/100*255):fn(parseInt(t,10))}function go(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Gu(parseFloat(t)/100):Gu(parseFloat(t))}function Jd(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Xi(r,t,e){return r+(t-r)*e}function kr(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Hy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var lL=new mf(20),Xf=null;function $o(r,t){Xf&&Hy(Xf,t),Xf=lL.put(r,Xf||t.slice())}function Mr(r,t){if(r){t=t||[];var e=lL.get(r);if(e)return Hy(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Ix)return Hy(t,Ix[n]),$o(r,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)){kr(t,0,0,0,1);return}return kr(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),$o(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){kr(t,0,0,0,1);return}return kr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),$o(r,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?kr(t,+u[0],+u[1],+u[2],1):kr(t,0,0,0,1);f=go(u.pop());case"rgb":if(u.length>=3)return kr(t,jd(u[0]),jd(u[1]),jd(u[2]),u.length===3?f:go(u[3])),$o(r,t),t;kr(t,0,0,0,1);return;case"hsla":if(u.length!==4){kr(t,0,0,0,1);return}return u[3]=go(u[3]),Wy(u,t),$o(r,t),t;case"hsl":if(u.length!==3){kr(t,0,0,0,1);return}return Wy(u,t),$o(r,t),t;default:return}}kr(t,0,0,0,1)}}function Wy(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=go(r[1]),i=go(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],kr(t,fn(Jd(o,a,e+1/3)*255),fn(Jd(o,a,e)*255),fn(Jd(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function aG(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,c=((a-e)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-c:e===a?l=1/3+f-h:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function $y(r,t){var e=Mr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return ui(e,e.length===4?"rgba":"rgb")}}function Qd(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=fn(Xi(o[0],s[0],l)),e[1]=fn(Xi(o[1],s[1],l)),e[2]=fn(Xi(o[2],s[2],l)),e[3]=Gu(Xi(o[3],s[3],l)),e}}function oG(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Mr(t[i]),s=Mr(t[a]),l=n-i,u=ui([fn(Xi(o[0],s[0],l)),fn(Xi(o[1],s[1],l)),fn(Xi(o[2],s[2],l)),Gu(Xi(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function gu(r,t,e,n){var i=Mr(r);if(r)return i=aG(i),t!=null&&(i[0]=iG(t)),e!=null&&(i[1]=go(e)),n!=null&&(i[2]=go(n)),ui(Wy(i),"rgba")}function Nh(r,t){var e=Mr(r);if(e&&t!=null)return e[3]=Gu(t),ui(e,"rgba")}function ui(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Vh(r,t){var e=Mr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Lx=new mf(100);function Uy(r){if(nt(r)){var t=Lx.get(r);return t||(t=$y(r,-.1),Lx.put(r,t)),t}else if(Uv(r)){var e=F({},r);return e.colorStops=Z(r.colorStops,function(n){return{offset:n.offset,color:$y(n.color,-.1)}}),e}return r}var Bh=Math.round;function Fu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Mr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var Px=1e-4;function qi(r){return r<Px&&r>-Px}function qf(r){return Bh(r*1e3)/1e3}function Yy(r){return Bh(r*1e4)/1e4}function sG(r){return"matrix("+qf(r[0])+","+qf(r[1])+","+qf(r[2])+","+qf(r[3])+","+Yy(r[4])+","+Yy(r[5])+")"}var lG={left:"start",right:"end",center:"middle",middle:"middle"};function uG(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function fG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function cG(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function uL(r){return r&&!!r.image}function hG(r){return r&&!!r.svgElement}function r_(r){return uL(r)||hG(r)}function fL(r){return r.type==="linear"}function cL(r){return r.type==="radial"}function hL(r){return r&&(r.type==="linear"||r.type==="radial")}function Xv(r){return"url(#"+r+")"}function vL(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function dL(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Qc,i=xt(r.scaleX,1),a=xt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Bh(o*Qc)+"deg, "+Bh(s*Qc)+"deg)"),l.join(" ")}var vG=function(){return zt.hasGlobalWindow&&vt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Zy=Array.prototype.slice;function ti(r,t,e){return(t-r)*e+r}function tp(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=ti(t[a],e[a],n);return r}function dG(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=ti(t[o][s],e[o][s],n)}return r}function Kf(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function Rx(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function pG(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function gG(r,t,e){var n=r,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(e===1?i[l]:Zy.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===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 yu(r){if(Ke(r)){var t=r.length;if(Ke(r[0])){for(var e=[],n=0;n<t;n++)e.push(Zy.call(r[n]));return e}return Zy.call(r)}return r}function ih(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function yG(r){return Ke(r&&r[0])?2:1}var jf=0,ah=1,pL=2,ql=3,Xy=4,qy=5,Ex=6;function kx(r){return r===Xy||r===qy}function Jf(r){return r===ah||r===pL}var bl=[0,0,0,0],mG=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Ex,l=e;if(Ke(e)){var u=yG(e);s=u,(u===1&&!Ft(e[0])||u===2&&!Ft(e[0][0]))&&(o=!0)}else if(Ft(e)&&!Vu(e))s=jf;else if(nt(e))if(!isNaN(+e))s=jf;else{var f=Mr(e);f&&(l=f,s=ql)}else if(Uv(e)){var c=F({},l);c.colorStops=Z(e.colorStops,function(v){return{offset:v.offset,color:Mr(v.color)}}),fL(e)?s=Xy:cL(e)&&(s=qy),l=c}a===0?this.valType=s:(s!==this.valType||s===Ex)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=vt(n)?n:tL[n]||e_(n)),i.push(h),h},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Jf(i),u=kx(i),f=0;f<a;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/t,s||(l&&f!==a-1?gG(h,v,i):u&&pG(h.colorStops,v.colorStops))}if(!s&&i!==qy&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===jf?n[f].additiveValue=n[f].value-d:i===ql?n[f].additiveValue=Kf([],n[f].value,d,-1):Jf(i)&&(n[f].additiveValue=i===ah?Kf([],n[f].value,d,-1):Rx([],n[f].value,d,-1))}},r.prototype.step=function(t,e){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===ql,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>e);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,y=g===0?1:h((e-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?bl:t[l];if((Jf(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(Jf(a))a===ah?tp(m,v[i],d[i],y):dG(m,v[i],d[i],y);else if(kx(a)){var _=v[i],S=d[i],x=a===Xy;t[l]={type:x?"linear":"radial",x:ti(_.x,S.x,y),y:ti(_.y,S.y,y),colorStops:Z(_.colorStops,function(w,T){var A=S.colorStops[T];return{offset:ti(w.offset,A.offset,y),color:ih(tp([],w.color,A.color,y))}}),global:S.global},x?(t[l].x2=ti(_.x2,S.x2,y),t[l].y2=ti(_.y2,S.y2,y)):t[l].r=ti(_.r,S.r,y)}else if(u)tp(m,v[i],d[i],y),n||(t[l]=ih(m));else{var b=ti(v[i],d[i],y);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===jf?t[n]=t[n]+i:e===ql?(Mr(t[n],bl),Kf(bl,bl,i,1),t[n]=ih(bl)):e===ah?Kf(t[n],t[n],i,1):e===pL&&Rx(t[n],t[n],i,1)},r}(),n_=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){X0("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,kt(e),n)},r.prototype.whenWithKeys=function(t,e,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 mG(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===ql&&u&&(u=ih(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,yu(u),i),this._trackKeys.push(s)}l.addKeyframe(t,yu(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=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&&(e._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new eG({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,v);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return Z(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){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()&&(e?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},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=yu(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||kt(t);for(var n=0;n<e.length;n++){var i=e[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())}}}},r}();function ms(){return new Date().getTime()}var _G=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=ms()-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,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Gy(n),!e._paused&&e.update())}Gy(n)},t.prototype.start=function(){this._running||(this._time=ms(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ms(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ms()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new n_(e,n.loop);return this.addAnimator(i),i},t}(Zr);const SG=_G;var xG=300,ep=zt.domSupported,rp=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Ox={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Nx=!1;function Ky(r){var t=r.pointerType;return t==="pen"||t==="touch"}function bG(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function np(r){r&&(r.zrByTouch=!0)}function wG(r,t){return Or(r.dom,new TG(r,t),!0)}function gL(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var TG=function(){function r(t,e){this.stopPropagation=de,this.stopImmediatePropagation=de,this.preventDefault=de,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),tn={mousedown:function(r){r=Or(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Or(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Or(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Or(this.dom,r);var t=r.toElement||r.relatedTarget;gL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Nx=!0,r=Or(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Nx||(r=Or(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Or(this.dom,r),np(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),tn.mousemove.call(this,r),tn.mousedown.call(this,r)},touchmove:function(r){r=Or(this.dom,r),np(r),this.handler.processGesture(r,"change"),tn.mousemove.call(this,r)},touchend:function(r){r=Or(this.dom,r),np(r),this.handler.processGesture(r,"end"),tn.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<xG&&tn.click.call(this,r)},pointerdown:function(r){tn.mousedown.call(this,r)},pointermove:function(r){Ky(r)||tn.mousemove.call(this,r)},pointerup:function(r){tn.mouseup.call(this,r)},pointerout:function(r){Ky(r)||tn.mouseout.call(this,r)}};M(["click","dblclick","contextmenu"],function(r){tn[r]=function(t){t=Or(this.dom,t),this.trigger(r,t)}});var jy={pointermove:function(r){Ky(r)||jy.mousemove.call(this,r)},pointerup:function(r){jy.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function AG(r,t){var e=t.domHandlers;zt.pointerEventsSupported?M(rp.pointer,function(n){oh(t,n,function(i){e[n].call(r,i)})}):(zt.touchEventsSupported&&M(rp.touch,function(n){oh(t,n,function(i){e[n].call(r,i),bG(t)})}),M(rp.mouse,function(n){oh(t,n,function(i){i=J0(i),t.touching||e[n].call(r,i)})}))}function CG(r,t){zt.pointerEventsSupported?M(Ox.pointer,e):zt.touchEventsSupported||M(Ox.mouse,e);function e(n){function i(a){a=J0(a),gL(r,a.target)||(a=wG(r,a),t.domHandlers[n].call(r,a))}oh(t,n,i,{capture:!0})}}function oh(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,zy(r.domTarget,t,e,n)}function ip(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&E5(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Vx=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),MG=function(r){B(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Vx(e,tn),ep&&(i._globalHandlerScope=new Vx(document,jy)),AG(i,i._localHandlerScope),i}return t.prototype.dispose=function(){ip(this._localHandlerScope),ep&&ip(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,ep&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?CG(this,n):ip(n)}},t}(Zr);const DG=MG;var yL=1;zt.hasGlobalWindow&&(yL=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zh=yL,Jy=.4,Qy="#333",tm="#ccc",IG="#eee",Bx=Zv,zx=5e-5;function wa(r){return r>zx||r<-zx}var Ta=[],Uo=[],ap=Cr(),op=Math.abs,LG=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return wa(this.rotation)||wa(this.x)||wa(this.y)||wa(this.scaleX-1)||wa(this.scaleY-1)||wa(this.skewX)||wa(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Bx(n),this.invTransform=null);return}n=n||Cr(),e?this.getLocalTransform(n):Bx(n),t&&(e?li(n,t,n):Q0(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ta);var n=Ta[0]<0?-1:1,i=Ta[1]<0?-1:1,a=((Ta[0]-n)*e+n)/Ta[0]||0,o=((Ta[1]-i)*e+i)/Ta[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Cr(),js(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=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),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Cr(),li(Uo,t.invTransform,e),e=Uo);var n=this.originX,i=this.originY;(n||i)&&(ap[4]=n,ap[5]=i,li(Uo,e,ap),Uo[4]-=n,Uo[5]-=i,e=Uo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Be(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Be(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&op(t[0]-1)>1e-10&&op(t[3]-1)>1e-10?Math.sqrt(op(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){mL(this,t)},r.getLocalTransform=function(t,e){e=e||[];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,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;e[4]=-d*a-h*p*o,e[5]=-p*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=h*o,u&&Eo(e,e,u),e[4]+=n+f,e[5]+=i+c,e},r.initDefaultProps=function(){var t=r.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}(),r}(),Wn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mL(r,t){for(var e=0;e<Wn.length;e++){var n=Wn[e];r[n]=t[n]}}const ai=LG;var Gx={};function Dr(r,t){t=t||na;var e=Gx[t];e||(e=Gx[t]=new mf(500));var n=e.get(r);return n==null&&(n=ia.measureText(r,t).width,e.put(r,n)),n}function Fx(r,t,e,n){var i=Dr(r,t),a=qv(t),o=Kl(0,i,e),s=ds(0,a,n),l=new Mt(o,s,i,a);return l}function _f(r,t,e,n){var i=((r||"")+"").split(`
`),a=i.length;if(a===1)return Fx(i[0],t,e,n);for(var o=new Mt(0,0,0,0),s=0;s<i.length;s++){var l=Fx(i[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function Kl(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function ds(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function qv(r){return Dr("国",r)}function dn(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Gh(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",c="top";if(n instanceof Array)l+=dn(n[0],e.width),u+=dn(n[1],e.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 r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var sp="__zr_normal__",lp=Wn.concat(["ignore"]),PG=Fn(Wn,function(r,t){return r[t]=!0,r},{ignore:!1}),Yo={},RG=new Mt(0,0,0,0),i_=function(){function r(t){this.id=$I(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=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]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=RG;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Yo,n,f):Gh(Yo,n,f),a.x=Yo.x,a.y=Yo.y,o=Yo.align,s=Yo.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=dn(c[0],f.width),v=dn(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=br,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?tm:Qy},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Mr(e);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,ui(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},F(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(yt(t))for(var n=t,i=kt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==sp)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,lp)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(sp,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===sp,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Dt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){X0("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,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,f),h&&h.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br),u}}},r.prototype.useStates=function(t,e,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 v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=Dt(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=Dt(i,t),o=Dt(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];F(e,a),a.textConfig&&(n=n||{},F(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=F({},i?this.textConfig:n.textConfig),F(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<lp.length;f++){var c=lp[f],h=a&&PG[c];e&&e[c]!=null?h?(u=!0,l[c]=e[c]):this[c]=e[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 v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ai,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),F(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=br;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this,a=new n_(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=Dt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){up(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){up(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=up(this,e,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.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 e(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&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();_e(i_,Zr);_e(i_,ai);function up(r,t,e,n,i){e=e||{};var a=[];_L(r,"",r,t,e,n,a,i);var o=a.length,s=!1,l=e.done,u=e.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&&e.during&&a[0].during(function(d,p){e.during(p)});for(var h=0;h<a.length;h++){var v=a[h];f&&v.done(f),c&&v.aborted(c),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function fp(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function EG(r){return Ke(r[0])}function kG(r,t,e){if(Ke(t[e]))if(Ke(r[e])||(r[e]=[]),pr(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),fp(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(EG(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?fp(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else fp(a,i,o);a.length=i.length}else r[e]=t[e]}function OG(r,t){return r===t||Ke(r)&&Ke(t)&&NG(r,t)}function NG(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function _L(r,t,e,n,i,a,o,s){for(var l=kt(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,v=!yt(a),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&e[y]!=null&&(v||a[y]))if(yt(m)&&!Ke(m)&&!Uv(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}_L(r,y,e[y],m,i,a&&a[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===t){var b=x.stopTracks(p);if(b){var w=Dt(d,x);d.splice(w,1)}}}if(i.force||(p=$t(p,function(D){return!OG(n[D],e[D])}),_=p.length),_>0||i.force&&!o.length){var T=void 0,A=void 0,C=void 0;if(s){A={},h&&(T={});for(var S=0;S<_;S++){var y=p[S];A[y]=e[y],h?T[y]=n[y]:e[y]=n[y]}}else if(h){C={};for(var S=0;S<_;S++){var y=p[S];C[y]=yu(e[y]),kG(e,n,y)}}var x=new n_(e,!1,!1,c?$t(d,function(I){return I.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),h&&T&&x.whenWithKeys(0,T,p),C&&x.whenWithKeys(0,C,p),x.whenWithKeys(u==null?500:u,s?A:n,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}const SL=i_;var xL=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=Dt(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=Dt(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new Mt(0,0,0,0),i=e||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?(Mt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(SL);xL.prototype.type="group";const _t=xL;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var sh={},bL={};function VG(r){delete bL[r]}function BG(r){if(!r)return!1;if(typeof r=="string")return Vh(r,1)<Jy;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=Vh(t[i].color,1);return e/=n,e<Jy}return!1}var zG=function(){function r(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new q5,o=n.renderer||"canvas";sh[o]||(o=kt(sh)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new sh[o](e,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!zt.node&&!zt.worker&&!l?new DG(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?zt.touchEventsSupported:!!f,h=44,v;c&&(v=xt(n.pointerSize,h)),this.handler=new $5(a,s,u,s.root,v),this.animation=new SG({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=BG(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,n=ms();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=ms();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof _t&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,VG(this.id))},r}();function Hx(r,t){var e=new zG($I(),r,t);return bL[e.id]=e,e}function GG(r,t){sh[r]=t}var em;function FG(r){if(typeof em=="function")return em(r)}function HG(r){em=r}var Wx=1e-4,wL=20;function WG(r){return r.replace(/^\s+|\s+$/g,"")}function Ut(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function et(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return nt(r)?WG(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ce(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),wL),r=(+r).toFixed(t),e?r:+r}function $r(r){return r.sort(function(t,e){return t-e}),r}function kn(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return $G(r)}function $G(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function TL(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function UG(r,t){var e=Fn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=Z(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=Z(i,function(v){return Math.floor(v)}),s=Fn(o,function(v,d){return v+d},0),l=Z(i,function(v,d){return v-o[d]});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 Z(o,function(v){return v/n})}function YG(r,t){var e=Math.max(kn(r),kn(t)),n=r+t;return e>wL?n:ce(n,e)}var $x=9007199254740991;function AL(r){var t=Math.PI*2;return(r%t+t)%t}function Hu(r){return r>-Wx&&r<Wx}var ZG=/^(?:(\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 $n(r){if(r instanceof Date)return r;if(nt(r)){var t=ZG.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(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(r==null)return new Date(NaN);return new Date(Math.round(r))}function XG(r){return Math.pow(10,a_(r))}function a_(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function CL(r,t){var e=a_(r),n=Math.pow(10,e),i=r/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,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function cp(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function Ux(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-e),t=i[o],e=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function yi(r){var t=parseFloat(r);return t==r&&(t!==0||!nt(r)||r.indexOf("x")<=0)?t:NaN}function ML(r){return!isNaN(yi(r))}function DL(){return Math.round(Math.random()*9)}function IL(r,t){return t===0?r:IL(t,r%t)}function Yx(r,t){return r==null?t:t==null?r:r*t/IL(r,t)}function Wt(r){throw new Error(r)}function Zx(r,t,e){return(t-r)*e+r}var LL="series\0",PL="\0_ec_\0";function Zt(r){return r instanceof Array?r:r==null?[]:[r]}function Ao(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Xx=["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 Js(r){return yt(r)&&!Y(r)&&!(r instanceof Date)?r.value:r}function qG(r){return yt(r)&&!(r instanceof Array)}function RL(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=ft();M(t,function(l,u){if(!yt(l)){t[u]=null;return}});var s=KG(r,o,e);return(n||i)&&jG(s,r,o,t),n&&JG(s,t),n||i?QG(s,t,i):a&&tF(s,t),eF(s),s}function KG(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||Wu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function jG(r,t,e,n){M(n,function(i,a){if(!(!i||i.id==null)){var o=mu(i.id),s=e.get(o);if(s!=null){var l=r[s];sr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function JG(r,t){M(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!Wu(e)&&!Wu(a)&&EL("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function QG(r,t,e){M(t,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||Wu(i.existing)||i.existing&&n.id!=null&&!EL("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function tF(r,t){M(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function eF(r){var t=ft();M(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),M(r,function(e){var n=e.newOption;sr(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),M(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(yt(a)){if(o.name=a.name!=null?mu(a.name):i?i.name:LL+n,i)o.id=mu(i.id);else if(a.id!=null)o.id=mu(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function EL(r,t,e){var n=xe(t[r],null),i=xe(e[r],null);return n!=null&&i!=null&&n===i}function mu(r){return xe(r,"")}function xe(r,t){return r==null?t:nt(r)?r:Ft(r)||Ry(r)?r+"":t}function o_(r){var t=r.name;return!!(t&&t.indexOf(LL))}function Wu(r){return r&&r.id!=null&&mu(r.id).indexOf(PL)===0}function rF(r){return PL+r}function nF(r,t,e){M(r,function(n){var i=n.newOption;yt(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=iF(t,i,n.existing,e))})}function iF(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function aF(r,t){var e={},n={};return i(r||[],e),i(t||[],n,e),[a(e),a(n)];function i(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=xe(o[u].seriesId,null);if(c==null)return;for(var h=Zt(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[g]=null:(s[c]||(s[c]={}))[g]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=a(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Co(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Y(t.dataIndex)?Z(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Y(t.name)?Z(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function Nt(){var r="__ec_inner_"+oF++;return function(t){return t[r]||(t[r]={})}}var oF=DL();function _u(r,t,e){var n=s_(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Sf(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function s_(r,t){var e;if(nt(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=ft(),a={},o=!1;return M(e,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&&Dt(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 ge={useDefault:!0,enableAll:!1,enableNone:!1},sF={useDefault:!1,enableAll:!0,enableNone:!0};function Sf(r,t,e,n){n=n||ge;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(sr(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(sr(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function kL(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function lF(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function uF(r){return r==="auto"?zt.domSupported?"html":"richText":r||"html"}function rm(r,t){var e=ft(),n=[];return M(r,function(i){var a=t(i);(e.get(a)||(n.push(a),e.set(a,[]))).push(i)}),{keys:n,buckets:e}}function OL(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(Ft(n)){var o=Zx(e||0,n,i);return ce(o,a?Math.max(kn(e||0),kn(n)):t)}else{if(nt(n))return i<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=Zx(v,d,i);s[c]=ce(o,a?Math.max(kn(v),kn(d)):t)}}return s}}var fF=".",Aa="___EC__COMPONENT__CONTAINER___",NL="___EC__EXTENDED_CLASS___";function On(r){var t={main:"",sub:""};if(r){var e=r.split(fF);t.main=e[0]||"",t.sub=e[1]||""}return t}function cF(r){sr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function hF(r){return!!(r&&r[NL])}function l_(r,t){r.$constructor=r,r.extend=function(e){var n=this,i;return vF(n)?i=function(a){B(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(e.$constructor||n).apply(this,arguments)},f5(i,this)),F(i.prototype,e),i[NL]=!0,i.extend=this.extend,i.superCall=gF,i.superApply=yF,i.superClass=n,i}}function vF(r){return vt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function VL(r,t){r.extend=t.extend}var dF=Math.round(Math.random()*10);function pF(r){var t=["__\0is_clz",dF++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function gF(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function yF(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Kv(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){cF(i),n.prototype.type=i;var a=On(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Aa){var o=e(a);o[a.sub]=n}}return n},r.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},r.getClassesByMainType=function(n){var i=On(n),a=[],o=t[i.main];return o&&o[Aa]?M(o,function(s,l){l!==Aa&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=On(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return M(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=On(n),a=t[i.main];return a&&a[Aa]};function e(n){var i=t[n.main];return(!i||!i[Aa])&&(i=t[n.main]={},i[Aa]=!0),i}}function Mo(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&Dt(i,l)>=0||a&&Dt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var mF=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_F=Mo(mF),SF=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return _F(this,t,e)},r}(),nm=new mf(50);function xF(r){if(typeof r=="string"){var t=nm.get(r);return t&&t.image}else return r}function u_(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=nm.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!jv(t)&&a.pending.push(o)):(t=ia.loadImage(r,qx,qx),t.__zrImageSrc=r,nm.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function qx(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function jv(r){return r&&r.width&&r.height}var hp=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function bF(r,t,e,n,i,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
`);a=BL(e,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)zL(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function BL(r,t,e,n){n=n||{};var i=F({},n);i.font=t,e=xt(e,"..."),i.maxIterations=xt(n.maxIterations,2);var a=i.minChar=xt(n.minChar,0);i.cnCharWidth=Dr("国",t);var o=i.ascCharWidth=Dr("a",t);i.placeholder=xt(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=Dr(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function zL(r,t,e){var n=e.containerWidth,i=e.font,a=e.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Dr(t,i);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?wF(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=Dr(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function wF(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function TF(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=qv(i),s=xt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=!1,c=t.width,h;c!=null&&(e==="break"||e==="breakAll")?h=r?GL(r,t.font,c,e==="breakAll",0).lines:[]:h=r?r.split(`
`):[];var v=h.length*s,d=xt(t.height,v);if(v>d&&u){var p=Math.floor(d/s);f=f||h.length>p,h=h.slice(0,p)}if(r&&a&&c!=null)for(var g=BL(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;m<h.length;m++)zL(y,h[m],g),h[m]=y.textLine,f=f||y.isTruncated;for(var _=d,S=0,m=0;m<h.length;m++)S=Math.max(Dr(h[m],i),S);c==null&&(c=S);var x=S;return n&&(_+=n[0]+n[2],x+=n[1]+n[3],c+=n[1]+n[3]),l&&(x=c),{lines:h,height:d,outerWidth:x,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:v,width:c,isTruncated:f}}var AF=function(){function r(){}return r}(),Kx=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),CF=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function MF(r,t){var e=new CF;if(r!=null&&(r+=""),!r)return e;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=hp.lastIndex=0,l;(l=hp.exec(r))!=null;){var u=l.index;u>s&&vp(e,r.substring(s,u),t,o),vp(e,l[2],t,o,l[1]),s=hp.lastIndex}s<r.length&&vp(e,r.substring(s,r.length),t,o);var f=[],c=0,h=0,v=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate",g={};function y($,q,Q){$.width=q,$.lineHeight=Q,c+=Q,h=Math.max(h,q)}t:for(var m=0;m<e.lines.length;m++){for(var _=e.lines[m],S=0,x=0,b=0;b<_.tokens.length;b++){var w=_.tokens[b],T=w.styleName&&t.rich[w.styleName]||{},A=w.textPadding=T.padding,C=A?A[1]+A[3]:0,D=w.font=T.font||t.font;w.contentHeight=qv(D);var I=xt(T.height,w.contentHeight);if(w.innerHeight=I,A&&(I+=A[0]+A[2]),w.height=I,w.lineHeight=Bn(T.lineHeight,t.lineHeight,I),w.align=T&&T.align||t.align,w.verticalAlign=T&&T.verticalAlign||"middle",p&&i!=null&&c+w.lineHeight>i){var L=e.lines.length;b>0?(_.tokens=_.tokens.slice(0,b),y(_,x,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length<L;break t}var P=T.width,E=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")w.percentWidth=P,f.push(w),w.contentWidth=Dr(w.text,D);else{if(E){var O=T.backgroundColor,V=O&&O.image;V&&(V=xF(V),jv(V)&&(w.width=Math.max(w.width,V.width*I/V.height)))}var N=d&&n!=null?n-x:null;N!=null&&N<w.width?!E||N<C?(w.text="",w.width=w.contentWidth=0):(bF(g,w.text,N-C,D,t.ellipsis,{minChar:t.truncateMinChar}),w.text=g.text,e.isTruncated=e.isTruncated||g.isTruncated,w.width=w.contentWidth=Dr(w.text,D)):w.contentWidth=Dr(w.text,D)}w.width+=C,x+=w.width,T&&(S=Math.max(S,w.lineHeight))}y(_,x,S)}e.outerWidth=e.width=xt(n,h),e.outerHeight=e.height=xt(i,c),e.contentHeight=c,e.contentWidth=h,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var m=0;m<f.length;m++){var w=f[m],z=w.percentWidth;w.width=parseInt(z,10)/100*e.width}return e}function vp(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},s=r.lines,l=o.font||e.font,u=!1,f,c;if(n){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=dn(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),u=!0),n.accumWidth=d}else{var p=GL(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,c=p.linesWidths,f=p.lines}}else f=t.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new AF;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=c?c[g]:Dr(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Kx)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new Kx([m]))}}function DF(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var IF=Fn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function LF(r){return DF(r)?!!IF[r]:!0}function GL(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<r.length;c++){var h=r.charAt(c);if(h===`
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Dr(h,t),d=n?!1:!LF(h);if(a.length?f+v>e:i+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=r,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 im="__zr_style_"+Math.round(Math.random()*10),yo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Jv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};yo[im]=!0;var jx=["z","z2","invisible"],PF=["invisible"],RF=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=kt(e),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[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(e,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&EF(this,e,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(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=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;e=this._paintRect||(this._paintRect=new Mt(0,0,0,0)),n?Mt.applyTransform(e,i,n):e.copy(i),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Mt(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:F(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Xl,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Xl)},t.prototype.styleUpdated=function(){this.__dirty&=~Xl},t.prototype.createStyle=function(e){return Yv(yo,e)},t.prototype.useStyle=function(e){e[im]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[im]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,jx)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,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=kt(f),h=0;h<c.length;h++){var v=c[h];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=kt(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?PF:jx,h=0;h<p.length;h++){var v=p[h];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return F(e,n),e},t.prototype.getAnimationStyleProps=function(){return Jv},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=br|Xl}(),t}(SL),dp=new Mt(0,0,0,0),pp=new Mt(0,0,0,0);function EF(r,t,e){return dp.copy(r.getBoundingRect()),r.transform&&dp.applyTransform(r.transform),pp.width=t,pp.height=e,!dp.intersect(pp)}const Yr=RF;var hr=Math.min,vr=Math.max,gp=Math.sin,yp=Math.cos,Ca=Math.PI*2,Qf=Ro(),tc=Ro(),ec=Ro();function Qv(r,t,e){if(r.length!==0){for(var n=r[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],i=hr(i,n[0]),a=vr(a,n[0]),o=hr(o,n[1]),s=vr(s,n[1]);t[0]=i,t[1]=o,e[0]=a,e[1]=s}}function Jx(r,t,e,n,i,a){i[0]=hr(r,e),i[1]=hr(t,n),a[0]=vr(r,e),a[1]=vr(t,n)}var Qx=[],tb=[];function kF(r,t,e,n,i,a,o,s,l,u){var f=nL,c=Ae,h=f(r,e,i,o,Qx);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=c(r,e,i,o,Qx[v]);l[0]=hr(d,l[0]),u[0]=vr(d,u[0])}h=f(t,n,a,s,tb);for(var v=0;v<h;v++){var p=c(t,n,a,s,tb[v]);l[1]=hr(p,l[1]),u[1]=vr(p,u[1])}l[0]=hr(r,l[0]),u[0]=vr(r,u[0]),l[0]=hr(o,l[0]),u[0]=vr(o,u[0]),l[1]=hr(t,l[1]),u[1]=vr(t,u[1]),l[1]=hr(s,l[1]),u[1]=vr(s,u[1])}function OF(r,t,e,n,i,a,o,s){var l=aL,u=Le,f=vr(hr(l(r,e,i),1),0),c=vr(hr(l(t,n,a),1),0),h=u(r,e,i,f),v=u(t,n,a,c);o[0]=hr(r,i,h),o[1]=hr(t,a,v),s[0]=vr(r,i,h),s[1]=vr(t,a,v)}function NF(r,t,e,n,i,a,o,s,l){var u=Ui,f=Yi,c=Math.abs(i-a);if(c%Ca<1e-4&&c>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(Qf[0]=yp(i)*e+r,Qf[1]=gp(i)*n+t,tc[0]=yp(a)*e+r,tc[1]=gp(a)*n+t,u(s,Qf,tc),f(l,Qf,tc),i=i%Ca,i<0&&(i=i+Ca),a=a%Ca,a<0&&(a=a+Ca),i>a&&!o?a+=Ca:i<a&&o&&(i+=Ca),o){var h=a;a=i,i=h}for(var v=0;v<a;v+=Math.PI/2)v>i&&(ec[0]=yp(v)*e+r,ec[1]=gp(v)*n+t,u(s,ec,s),f(l,ec,l))}var qt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ma=[],Da=[],Sn=[],Di=[],xn=[],bn=[],mp=Math.min,_p=Math.max,Ia=Math.cos,La=Math.sin,Kn=Math.abs,am=Math.PI,Bi=am*2,Sp=typeof Float32Array!="undefined",wl=[];function xp(r){var t=Math.round(r/am*1e8)/1e8;return t%2*am}function f_(r,t){var e=xp(r[0]);e<0&&(e+=Bi);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Bi?i=e+Bi:t&&e-i>=Bi?i=e-Bi:!t&&e>i?i=e+(Bi-xp(e-i)):t&&e<i&&(i=e-(Bi-xp(i-e))),r[0]=e,r[1]=i}var Un=function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=Kn(n/zh/t)||0,this._uy=Kn(n/zh/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(qt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=Kn(t-this._xi),i=Kn(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(qt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(qt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(qt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),wl[0]=i,wl[1]=a,f_(wl,o),i=wl[0],a=wl[1];var s=a-i;return this.addData(qt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=Ia(a)*n+t,this._yi=La(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(qt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(qt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&Sp&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,a=0;a<e;a++)n+=t[a].len();Sp&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,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]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Sp&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Sn[0]=Sn[1]=xn[0]=xn[1]=Number.MAX_VALUE,Di[0]=Di[1]=bn[0]=bn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],i=e,a=n),s){case qt.M:e=i=t[o++],n=a=t[o++],xn[0]=i,xn[1]=a,bn[0]=i,bn[1]=a;break;case qt.L:Jx(e,n,t[o],t[o+1],xn,bn),e=t[o++],n=t[o++];break;case qt.C:kF(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],xn,bn),e=t[o++],n=t[o++];break;case qt.Q:OF(e,n,t[o++],t[o++],t[o],t[o+1],xn,bn),e=t[o++],n=t[o++];break;case qt.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],v=t[o++],d=t[o++]+v;o+=1;var p=!t[o++];l&&(i=Ia(v)*c+u,a=La(v)*h+f),NF(u,f,c,h,v,d,p,xn,bn),e=Ia(d)*c+u,n=La(d)*h+f;break;case qt.R:i=e=t[o++],a=n=t[o++];var g=t[o++],y=t[o++];Jx(i,a,i+g,a+y,xn,bn);break;case qt.Z:e=i,n=a;break}Ui(Sn,Sn,xn),Yi(Di,Di,bn)}return o===0&&(Sn[0]=Sn[1]=Di[0]=Di[1]=0),new Mt(Sn[0],Sn[1],Di[0]-Sn[0],Di[1]-Sn[1])},r.prototype._calculateLength=function(){var t=this.data,e=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<e;){var v=t[h++],d=h===1;d&&(a=t[h],o=t[h+1],s=a,l=o);var p=-1;switch(v){case qt.M:a=s=t[h++],o=l=t[h++];break;case qt.L:{var g=t[h++],y=t[h++],m=g-a,_=y-o;(Kn(m)>n||Kn(_)>i||h===e-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case qt.C:{var S=t[h++],x=t[h++],g=t[h++],y=t[h++],b=t[h++],w=t[h++];p=K5(a,o,S,x,g,y,b,w,10),a=b,o=w;break}case qt.Q:{var S=t[h++],x=t[h++],g=t[h++],y=t[h++];p=J5(a,o,S,x,g,y,10),a=g,o=y;break}case qt.A:var T=t[h++],A=t[h++],C=t[h++],D=t[h++],I=t[h++],L=t[h++],P=L+I;h+=1,d&&(s=Ia(I)*C+T,l=La(I)*D+A),p=_p(C,D)*mp(Bi,Math.abs(L)),a=Ia(P)*C+T,o=La(P)*D+A;break;case qt.R:{s=a=t[h++],l=o=t[h++];var E=t[h++],O=t[h++];p=E*2+O*2;break}case qt.Z:{var m=s-a,_=l-o;p=Math.sqrt(m*m+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,v=e<1,d,p,g=0,y=0,m,_=0,S,x;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b<o;){var w=n[b++],T=b===1;switch(T&&(u=n[b],f=n[b+1],s=u,l=f),w!==qt.L&&_>0&&(t.lineTo(S,x),_=0),w){case qt.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case qt.L:{c=n[b++],h=n[b++];var A=Kn(c-u),C=Kn(h-f);if(A>i||C>a){if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+c*I,f*(1-I)+h*I);break t}g+=D}t.lineTo(c,h),u=c,f=h,_=0}else{var L=A*A+C*C;L>_&&(S=c,x=h,_=L)}break}case qt.C:{var P=n[b++],E=n[b++],O=n[b++],V=n[b++],N=n[b++],z=n[b++];if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;aa(u,P,O,N,I,Ma),aa(f,E,V,z,I,Da),t.bezierCurveTo(Ma[1],Da[1],Ma[2],Da[2],Ma[3],Da[3]);break t}g+=D}t.bezierCurveTo(P,E,O,V,N,z),u=N,f=z;break}case qt.Q:{var P=n[b++],E=n[b++],O=n[b++],V=n[b++];if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;zu(u,P,O,I,Ma),zu(f,E,V,I,Da),t.quadraticCurveTo(Ma[1],Da[1],Ma[2],Da[2]);break t}g+=D}t.quadraticCurveTo(P,E,O,V),u=O,f=V;break}case qt.A:var $=n[b++],q=n[b++],Q=n[b++],ct=n[b++],ht=n[b++],gt=n[b++],Et=n[b++],U=!n[b++],K=Q>ct?Q:ct,H=Kn(Q-ct)>.001,tt=ht+gt,j=!1;if(v){var D=d[y++];g+D>m&&(tt=ht+gt*(m-g)/D,j=!0),g+=D}if(H&&t.ellipse?t.ellipse($,q,Q,ct,Et,ht,tt,U):t.arc($,q,K,ht,tt,U),j)break t;T&&(s=Ia(ht)*Q+$,l=La(ht)*ct+q),u=Ia(tt)*Q+$,f=La(tt)*ct+q;break;case qt.R:s=u=n[b],l=f=n[b+1],c=n[b++],h=n[b++];var lt=n[b++],R=n[b++];if(v){var D=d[y++];if(g+D>m){var k=m-g;t.moveTo(c,h),t.lineTo(c+mp(k,lt),h),k-=lt,k>0&&t.lineTo(c+lt,h+mp(k,R)),k-=R,k>0&&t.lineTo(c+_p(lt-k,0),h+R),k-=lt,k>0&&t.lineTo(c,h+_p(R-k,0));break t}g+=D}t.rect(c,h,lt,R);break;case qt.Z:if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=qt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Hi(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function VF(r,t,e,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>r+c&&u>e+c&&u>i+c&&u>o+c||u<r-c&&u<e-c&&u<i-c&&u<o-c)return!1;var h=iL(r,t,e,n,i,a,o,s,u,f,null);return h<=c/2}function FL(r,t,e,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>r+u&&s>e+u&&s>i+u||s<r-u&&s<e-u&&s<i-u)return!1;var f=oL(r,t,e,n,i,a,s,l,null);return f<=u/2}var eb=Math.PI*2;function Tr(r){return r%=eb,r<0&&(r+=eb),r}var Tl=Math.PI*2;function BF(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-i)%Tl<1e-4)return!0;if(a){var c=n;n=Tr(i),i=Tr(c)}else n=Tr(n),i=Tr(i);n>i&&(i+=Tl);var h=Math.atan2(l,s);return h<0&&(h+=Tl),h>=n&&h<=i||h+Tl>=n&&h+Tl<=i}function ei(r,t,e,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*(e-r)+r;return l===i?1/0:l>i?s:0}var Ii=Un.CMD,Pa=Math.PI*2,zF=1e-4;function GF(r,t){return Math.abs(r-t)<zF}var rr=[-1,-1,-1],Vr=[-1,-1];function FF(){var r=Vr[0];Vr[0]=Vr[1],Vr[1]=r}function HF(r,t,e,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=Oh(t,n,a,s,u,rr);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=rr[p],y=g===0||g===1?.5:1,m=Ae(r,e,i,o,g);m<l||(h<0&&(h=nL(t,n,a,s,Vr),Vr[1]<Vr[0]&&h>1&&FF(),v=Ae(t,n,a,s,Vr[0]),h>1&&(d=Ae(t,n,a,s,Vr[1]))),h===2?g<Vr[0]?c+=v<t?y:-y:g<Vr[1]?c+=d<v?y:-y:c+=s<d?y:-y:g<Vr[0]?c+=v<t?y:-y:c+=s<v?y:-y)}return c}function WF(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=j5(t,n,a,s,rr);if(l===0)return 0;var u=aL(t,n,a);if(u>=0&&u<=1){for(var f=0,c=Le(t,n,a,u),h=0;h<l;h++){var v=rr[h]===0||rr[h]===1?.5:1,d=Le(r,e,i,rr[h]);d<o||(rr[h]<u?f+=c<t?v:-v:f+=a<c?v:-v)}return f}else{var v=rr[0]===0||rr[0]===1?.5:1,d=Le(r,e,i,rr[0]);return d<o?0:a<t?v:-v}}function $F(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);rr[0]=-l,rr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Pa-1e-4){n=0,i=Pa;var f=a?1:-1;return o>=rr[0]+r&&o<=rr[1]+r?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Pa,i+=Pa);for(var h=0,v=0;v<2;v++){var d=rr[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Pa+p),(p>=n&&p<=i||p+Pa>=n&&p+Pa<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function HL(r,t,e,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var p=a[d++],g=d===1;switch(p===Ii.M&&d>1&&(e||(s+=ei(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case Ii.M:f=a[d++],c=a[d++],l=f,u=c;break;case Ii.L:if(e){if(Hi(l,u,a[d],a[d+1],t,n,i))return!0}else s+=ei(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Ii.C:if(e){if(VF(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=HF(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Ii.Q:if(e){if(FL(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=WF(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Ii.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],x=a[d++],b=a[d++];d+=1;var w=!!(1-a[d++]);h=Math.cos(x)*_+y,v=Math.sin(x)*S+m,g?(f=h,c=v):s+=ei(l,u,h,v,n,i);var T=(n-y)*S/_+y;if(e){if(BF(y,m,S,x,x+b,w,t,T,i))return!0}else s+=$F(y,m,S,x,x+b,w,T,i);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case Ii.R:f=l=a[d++],c=u=a[d++];var A=a[d++],C=a[d++];if(h=f+A,v=c+C,e){if(Hi(f,c,h,c,t,n,i)||Hi(h,c,h,v,t,n,i)||Hi(h,v,f,v,t,n,i)||Hi(f,v,f,c,t,n,i))return!0}else s+=ei(h,c,h,v,n,i),s+=ei(f,v,f,c,n,i);break;case Ii.Z:if(e){if(Hi(l,u,f,c,t,n,i))return!0}else s+=ei(l,u,f,c,n,i);l=f,u=c;break}}return!e&&!GF(u,c)&&(s+=ei(l,u,f,c,n,i)||0),s!==0}function UF(r,t,e){return HL(r,0,!1,t,e)}function YF(r,t,e,n){return HL(r,t,!0,e,n)}var Fh=pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},yo),ZF={style:pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Jv.style)},bp=Wn.concat(["invisible","culling","z","z2","zlevel","parent"]),XF=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.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){e.buildPath(l,e.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<bp.length;++s)i[bp[s]]=this[bp[s]];i.__dirty|=br}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=kt(e);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=e[o];o==="style"?this.style?F(this.style,s):this.useStyle(s):o==="shape"?F(this.shape,s):r.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 e=this.style.fill;if(e!=="none"){if(nt(e)){var n=Vh(e,0);return n>.5?Qy:n>.2?IG:tm}else if(e)return tm}return Qy},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Vh(e,0)<Jy;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~vs},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Un(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&vs)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,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)),YF(s,l/u,e,n)))return!0}if(this.hasFill())return UF(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=vs,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:F(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&vs)},t.prototype.createStyle=function(e){return Yv(Fh,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=F({},i.shape),F(u,n.shape)):(u=F({},a?this.shape:i.shape),F(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=F({},this.shape);for(var f={},c=kt(u),h=0;h<c.length;h++){var v=c[h];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return ZF},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(a){B(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return mt(e.style)},o.prototype.getDefaultShape=function(){return mt(e.shape)},o}(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=br|Xl|vs}(),t}(Yr);const Pt=XF;var qF=pt({strokeFirst:!0,font:na,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Fh),WL=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Yv(qF,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=_f(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.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 e=t.prototype;e.dirtyRectTolerance=10}(),t}(Yr);WL.prototype.type="tspan";const $u=WL;var KF=pt({x:0,y:0},yo),jF={style:pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Jv.style)};function JF(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var $L=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Yv(KF,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=JF(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return jF},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Mt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Yr);$L.prototype.type="image";const He=$L;function QF(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+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),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var _s=Math.round;function UL(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(_s(n*2)===_s(i*2)&&(r.x1=r.x2=io(n,s,!0)),_s(a*2)===_s(o*2)&&(r.y1=r.y2=io(a,s,!0))),r}}function YL(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=io(n,s,!0),r.y=io(i,s,!0),r.width=Math.max(io(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(io(i+o,s,!1)-r.y,o===0?0:1)),r}}function io(r,t,e){if(!t)return r;var n=_s(r*2);return(n+_s(t))%2===0?n/2:(n+(e?1:-1))/2}var t3=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),e3={},ZL=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new t3},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=YL(e3,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?QF(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Pt);ZL.prototype.type="rect";const Vt=ZL;var rb={fill:"#000"},nb=2,r3={style:pt({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},Jv.style)},XL=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=rb,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];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 e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,a3(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);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 e=new Mt(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?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||rb},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return F(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=kt(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},F(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return r3},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||na,i=e.padding,a=fb(e),o=TF(a,e),s=wp(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=e.x||0,g=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=p,S=ds(g,o.contentHeight,m);if(s||i){var x=Kl(p,f,y),b=ds(g,u,m);s&&this._renderBackground(e,e,x,b,f,u)}S+=v/2,i&&(_=ub(p,y,i),m==="top"?S+=i[0]:m==="bottom"&&(S-=i[2]));for(var w=0,T=!1,A=lb("fill"in e?e.fill:(T=!0,d.fill)),C=sb("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(w=nb,d.stroke):null),D=e.textShadowBlur>0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<h.length;P++){var E=this._getOrCreateChild($u),O=E.createStyle();E.useStyle(O),O.text=h[P],O.x=_,O.y=S,y&&(O.textAlign=y),O.textBaseline="middle",O.opacity=e.opacity,O.strokeFirst=!0,D&&(O.shadowBlur=e.textShadowBlur||0,O.shadowColor=e.textShadowColor||"transparent",O.shadowOffsetX=e.textShadowOffsetX||0,O.shadowOffsetY=e.textShadowOffsetY||0),O.stroke=C,O.fill=A,C&&(O.lineWidth=e.lineWidth||w,O.lineDash=e.lineDash,O.lineDashOffset=e.lineDashOffset||0),O.font=n,ab(O,e),S+=v,I&&E.setBoundingRect(new Mt(Kl(O.x,c,O.textAlign),ds(O.y,L,O.textBaseline),c,L))}},t.prototype._updateRichTexts=function(){var e=this.style,n=fb(e),i=MF(n,e),a=i.width,o=i.outerWidth,s=i.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,c=this._defaultStyle,h=e.align||c.align,v=e.verticalAlign||c.verticalAlign;this.isTruncated=!!i.isTruncated;var d=Kl(u,o,h),p=ds(f,s,v),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+a;wp(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<i.lines.length;S++){for(var x=i.lines[S],b=x.tokens,w=b.length,T=x.lineHeight,A=x.width,C=0,D=g,I=m,L=w-1,P=void 0;C<w&&(P=b[C],!P.align||P.align==="left");)this._placeToken(P,e,T,y,D,"left",_),A-=P.width,D+=P.width,C++;for(;L>=0&&(P=b[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),A-=P.width,I-=P.width,L--;for(D+=(a-(D-g)-(m-I)-A)/2;C<=L;)P=b[C],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,C++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=a+i/2;f==="top"?c=a+e.height/2:f==="bottom"&&(c=a+i-e.height/2);var h=!e.isLineHolder&&wp(u);h&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,c-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=ub(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild($u),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=lb("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),x=sb("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=nb,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||na,g.opacity=Bn(u.opacity,n.opacity,1),ab(g,u),x&&(g.lineWidth=Bn(u.lineWidth,n.lineWidth,_),g.lineDash=xt(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var w=e.contentWidth,T=e.contentHeight;p.setBoundingRect(new Mt(Kl(g.x,w,g.textAlign),ds(g.y,T,g.textBaseline),w,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,h=l&&!c,v=e.borderRadius,d=this,p,g;if(h||e.lineHeight||u&&f){p=this._getOrCreateChild(Vt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(h){var m=p.style;m.fill=l||null,m.fillOpacity=xt(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(He),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=xt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Bn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return KL(e)&&(n=[e.fontStyle,e.fontWeight,qL(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&an(n)||e.textFont||e.font},t}(Yr),n3={left:!0,right:1,center:1},i3={top:1,bottom:1,middle:1},ib=["fontStyle","fontWeight","fontSize","fontFamily"];function qL(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?U0+"px":r+"px"}function ab(r,t){for(var e=0;e<ib.length;e++){var n=ib[e],i=t[n];i!=null&&(r[n]=i)}}function KL(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function a3(r){return ob(r),M(r.rich,ob),r}function ob(r){if(r){r.font=XL.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||n3[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||i3[e]?e:"top";var n=r.padding;n&&(r.padding=j0(r.padding))}}function sb(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function lb(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function ub(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function fb(r){var t=r.text;return t!=null&&(t+=""),t}function wp(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const Gt=XL;var St=Nt(),om=function(r,t,e,n){if(n){var i=St(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=St(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},cb=1,hb={},jL=Nt(),c_=Nt(),h_=0,xf=1,td=2,lr=["emphasis","blur","select"],Uu=["normal","emphasis","blur","select"],Qs=10,o3=9,mo="highlight",lh="downplay",Su="select",uh="unselect",xu="toggleSelect";function Zo(r){return r!=null&&r!=="none"}function ed(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function JL(r){ed(r,"emphasis",td)}function QL(r){r.hoverState===td&&ed(r,"normal",h_)}function v_(r){ed(r,"blur",xf)}function tP(r){r.hoverState===xf&&ed(r,"normal",h_)}function s3(r){r.selected=!0}function l3(r){r.selected=!1}function vb(r,t,e){t(r,e)}function Ti(r,t,e){vb(r,t,e),r.isGroup&&r.traverse(function(n){vb(n,t,e)})}function Hh(r,t){switch(t){case"emphasis":r.hoverState=td;break;case"normal":r.hoverState=h_;break;case"blur":r.hoverState=xf;break;case"select":r.selected=!0}}function u3(r,t,e,n){for(var i=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function f3(r,t,e,n){var i=e&&Dt(e,"select")>=0,a=!1;if(r instanceof Pt){var o=jL(r),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=F({},n),u=F({},u),u.fill=s):!Zo(u.fill)&&Zo(s)?(a=!0,n=F({},n),u=F({},u),u.fill=Uy(s)):!Zo(u.stroke)&&Zo(l)&&(a||(n=F({},n),u=F({},u)),u.stroke=Uy(l)),n.style=u}}if(n&&n.z2==null){a||(n=F({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:Qs)}return n}function c3(r,t,e){if(e&&e.z2==null){e=F({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:o3)}return e}function h3(r,t,e){var n=Dt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:u3(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=F({},e),o=F({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Tp(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return f3(this,r,t,e);if(r==="blur")return h3(this,r,e);if(r==="select")return c3(this,r,e)}return e}function Do(r){r.stateProxy=Tp;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Tp),e&&(e.stateProxy=Tp)}function db(r,t){!iP(r,t)&&!r.__highByOuter&&Ti(r,JL)}function pb(r,t){!iP(r,t)&&!r.__highByOuter&&Ti(r,QL)}function mi(r,t){r.__highByOuter|=1<<(t||0),Ti(r,JL)}function _i(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ti(r,QL)}function eP(r){Ti(r,v_)}function d_(r){Ti(r,tP)}function rP(r){Ti(r,s3)}function nP(r){Ti(r,l3)}function iP(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function aP(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=c_(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){tP(u)}),s&&e.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function sm(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&d_(h)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),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(!(e==="series"&&!f||e==="coordinateSystem"&&!h||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||v_(g)}),Ke(t))a(u.getData(),t);else if(yt(t))for(var d=kt(t),p=0;p<d.length;p++)a(u.getData(d[p]),t[d[p]]);l.push(u),c_(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(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){c_(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){v_(a)})}}}function v3(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(i){var a=Co(i,t);a=(Y(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=St(o);sm(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&sm(n,f,c,e)}}}function p_(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(St(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function d3(r,t,e){var n=St(r),i=p_(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&lm(n.componentMainType,n.componentIndex,e),M(a,function(s){return db(s,t)})):(sm(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&lm(n.componentMainType,n.componentIndex,e),db(r,t))}function p3(r,t,e){aP(e);var n=St(r),i=p_(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?M(i,function(a){return pb(a,t)}):pb(r,t)}function g3(r,t,e){if(fm(t)){var n=t.dataType,i=r.getData(n),a=Co(i,t);Y(a)||(a=[a]),r[t.type===xu?"toggleSelect":t.type===Su?"select":"unselect"](a,n)}}function gb(r){var t=r.getAllData();M(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?rP(a):nP(a)})})}function y3(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();M(n,function(i){i.data;var a=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function _o(r,t,e){ao(r,!0),Ti(r,Do),um(r,t,e)}function m3(r){ao(r,!1)}function ue(r,t,e,n){n?m3(r):_o(r,t,e)}function um(r,t,e){var n=St(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var yb=["emphasis","blur","select"],_3={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ge(r,t,e,n){e=e||"itemStyle";for(var i=0;i<yb.length;i++){var a=yb[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=n?n(o):o[_3[e]]()}}function ao(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Yu(r){return!!(r&&r.__highDownDispatcher)}function S3(r,t,e){var n=St(r);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=e}function x3(r){var t=hb[r];return t==null&&cb<=32&&(t=hb[r]=cb++),t}function fm(r){var t=r.type;return t===Su||t===uh||t===xu}function mb(r){var t=r.type;return t===mo||t===lh}function b3(r){var t=jL(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Xo=Un.CMD,w3=[[],[],[]],_b=Math.sqrt,T3=Math.atan2;function oP(r,t){if(t){var e=r.data,n=r.len(),i,a,o,s,l,u,f=Xo.M,c=Xo.C,h=Xo.L,v=Xo.R,d=Xo.A,p=Xo.Q;for(o=0,s=0;o<n;){switch(i=e[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 d:var g=t[4],y=t[5],m=_b(t[0]*t[0]+t[1]*t[1]),_=_b(t[2]*t[2]+t[3]*t[3]),S=T3(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],Be(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Be(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var x=w3[l];x[0]=e[o++],x[1]=e[o++],Be(x,x,t),e[s++]=x[0],e[s++]=x[1]}}r.increaseVersion()}}var Ap=Math.sqrt,rc=Math.sin,nc=Math.cos,Al=Math.PI;function Sb(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function cm(r,t){return(r[0]*t[0]+r[1]*t[1])/(Sb(r)*Sb(t))}function xb(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(cm(r,t))}function bb(r,t,e,n,i,a,o,s,l,u,f){var c=l*(Al/180),h=nc(c)*(r-e)/2+rc(c)*(t-n)/2,v=-1*rc(c)*(r-e)/2+nc(c)*(t-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=Ap(d),s*=Ap(d));var p=(i===a?-1:1)*Ap((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,y=p*-s*h/o,m=(r+e)/2+nc(c)*g-rc(c)*y,_=(t+n)/2+rc(c)*g+nc(c)*y,S=xb([1,0],[(h-g)/o,(v-y)/s]),x=[(h-g)/o,(v-y)/s],b=[(-1*h-g)/o,(-1*v-y)/s],w=xb(x,b);if(cm(x,b)<=-1&&(w=Al),cm(x,b)>=1&&(w=0),w<0){var T=Math.round(w/Al*1e6)/1e6;w=Al*2+T%2*Al}f.addData(u,m,_,o,s,S,w,c,a)}var A3=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,C3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function M3(r){var t=new Un;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Un.CMD,l=r.match(A3);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,v=f.match(C3)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,T=e,A=n,C=void 0,D=void 0;switch(c){case"l":e+=v[g++],n+=v[g++],h=s.L,t.addData(h,e,n);break;case"L":e=v[g++],n=v[g++],h=s.L,t.addData(h,e,n);break;case"m":e+=v[g++],n+=v[g++],h=s.M,t.addData(h,e,n),i=e,a=n,c="l";break;case"M":e=v[g++],n=v[g++],h=s.M,t.addData(h,e,n),i=e,a=n,c="L";break;case"h":e+=v[g++],h=s.L,t.addData(h,e,n);break;case"H":e=v[g++],h=s.L,t.addData(h,e,n);break;case"v":n+=v[g++],h=s.L,t.addData(h,e,n);break;case"V":n=v[g++],h=s.L,t.addData(h,e,n);break;case"C":h=s.C,t.addData(h,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),e=v[g-2],n=v[g-1];break;case"c":h=s.C,t.addData(h,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n),e+=v[g-2],n+=v[g-1];break;case"S":y=e,m=n,C=t.len(),D=t.data,o===s.C&&(y+=e-D[C-4],m+=n-D[C-3]),h=s.C,T=v[g++],A=v[g++],e=v[g++],n=v[g++],t.addData(h,y,m,T,A,e,n);break;case"s":y=e,m=n,C=t.len(),D=t.data,o===s.C&&(y+=e-D[C-4],m+=n-D[C-3]),h=s.C,T=e+v[g++],A=n+v[g++],e+=v[g++],n+=v[g++],t.addData(h,y,m,T,A,e,n);break;case"Q":T=v[g++],A=v[g++],e=v[g++],n=v[g++],h=s.Q,t.addData(h,T,A,e,n);break;case"q":T=v[g++]+e,A=v[g++]+n,e+=v[g++],n+=v[g++],h=s.Q,t.addData(h,T,A,e,n);break;case"T":y=e,m=n,C=t.len(),D=t.data,o===s.Q&&(y+=e-D[C-4],m+=n-D[C-3]),e=v[g++],n=v[g++],h=s.Q,t.addData(h,y,m,e,n);break;case"t":y=e,m=n,C=t.len(),D=t.data,o===s.Q&&(y+=e-D[C-4],m+=n-D[C-3]),e+=v[g++],n+=v[g++],h=s.Q,t.addData(h,y,m,e,n);break;case"A":_=v[g++],S=v[g++],x=v[g++],b=v[g++],w=v[g++],T=e,A=n,e=v[g++],n=v[g++],h=s.A,bb(T,A,e,n,b,w,_,S,x,h,t);break;case"a":_=v[g++],S=v[g++],x=v[g++],b=v[g++],w=v[g++],T=e,A=n,e+=v[g++],n+=v[g++],h=s.A,bb(T,A,e,n,b,w,_,S,x,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),e=i,n=a),o=h}return t.toStatic(),t}var sP=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Pt);function lP(r){return r.setData!=null}function uP(r,t){var e=M3(r),n=F({},t);return n.buildPath=function(i){if(lP(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},n.applyTransform=function(i){oP(e,i),this.dirtyShape()},n}function fP(r,t){return new sP(uP(r,t))}function D3(r,t){var e=uP(r,t),n=function(i){B(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(sP);return n}function I3(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new Pt(t);return o.createPathProxy(),o.buildPath=function(s){if(lP(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function g_(r,t){t=t||{};var e=new Pt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?oP(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var L3=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),cP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new L3},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Pt);cP.prototype.type="circle";const da=cP;var P3=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),hP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new P3},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t}(Pt);hP.prototype.type="ellipse";const y_=hP;var vP=Math.PI,Cp=vP*2,Ra=Math.sin,qo=Math.cos,R3=Math.acos,We=Math.atan2,wb=Math.abs,bu=Math.sqrt,jl=Math.max,wn=Math.min,Qr=1e-4;function E3(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<Qr))return h=(f*(t-a)-c*(r-i))/h,[r+h*l,t+h*u]}function ic(r,t,e,n,i,a,o){var s=r-e,l=t-n,u=(o?a:-a)/bu(s*s+l*l),f=u*l,c=-u*s,h=r+f,v=t+c,d=e+f,p=n+c,g=(h+d)/2,y=(v+p)/2,m=d-h,_=p-v,S=m*m+_*_,x=i-a,b=h*p-d*v,w=(_<0?-1:1)*bu(jl(0,x*x*S-b*b)),T=(b*_-m*w)/S,A=(-b*m-_*w)/S,C=(b*_+m*w)/S,D=(-b*m+_*w)/S,I=T-g,L=A-y,P=C-g,E=D-y;return I*I+L*L>P*P+E*E&&(T=C,A=D),{cx:T,cy:A,x0:-f,y0:-c,x1:T*(i/x-1),y1:A*(i/x-1)}}function k3(r){var t;if(Y(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function O3(r,t){var e,n=jl(t.r,0),i=jl(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,v=wb(u-l),d=v>Cp&&v%Cp;if(d>Qr&&(v=d),!(n>Qr))r.moveTo(f,c);else if(v>Cp-Qr)r.moveTo(f+n*qo(l),c+n*Ra(l)),r.arc(f,c,n,l,u,!h),i>Qr&&(r.moveTo(f+i*qo(u),c+i*Ra(u)),r.arc(f,c,i,u,l,h));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,T=void 0,A=void 0,C=void 0,D=void 0,I=void 0,L=void 0,P=void 0,E=n*qo(l),O=n*Ra(l),V=i*qo(u),N=i*Ra(u),z=v>Qr;if(z){var $=t.cornerRadius;$&&(e=k3($),p=e[0],g=e[1],y=e[2],m=e[3]);var q=wb(n-i)/2;if(_=wn(q,y),S=wn(q,m),x=wn(q,p),b=wn(q,g),A=w=jl(_,S),C=T=jl(x,b),(w>Qr||T>Qr)&&(D=n*qo(u),I=n*Ra(u),L=i*qo(l),P=i*Ra(l),v<vP)){var Q=E3(E,O,L,P,D,I,V,N);if(Q){var ct=E-Q[0],ht=O-Q[1],gt=D-Q[0],Et=I-Q[1],U=1/Ra(R3((ct*gt+ht*Et)/(bu(ct*ct+ht*ht)*bu(gt*gt+Et*Et)))/2),K=bu(Q[0]*Q[0]+Q[1]*Q[1]);A=wn(w,(n-K)/(U+1)),C=wn(T,(i-K)/(U-1))}}}if(!z)r.moveTo(f+E,c+O);else if(A>Qr){var H=wn(y,A),tt=wn(m,A),j=ic(L,P,E,O,n,H,h),lt=ic(D,I,V,N,n,tt,h);r.moveTo(f+j.cx+j.x0,c+j.cy+j.y0),A<w&&H===tt?r.arc(f+j.cx,c+j.cy,A,We(j.y0,j.x0),We(lt.y0,lt.x0),!h):(H>0&&r.arc(f+j.cx,c+j.cy,H,We(j.y0,j.x0),We(j.y1,j.x1),!h),r.arc(f,c,n,We(j.cy+j.y1,j.cx+j.x1),We(lt.cy+lt.y1,lt.cx+lt.x1),!h),tt>0&&r.arc(f+lt.cx,c+lt.cy,tt,We(lt.y1,lt.x1),We(lt.y0,lt.x0),!h))}else r.moveTo(f+E,c+O),r.arc(f,c,n,l,u,!h);if(!(i>Qr)||!z)r.lineTo(f+V,c+N);else if(C>Qr){var H=wn(p,C),tt=wn(g,C),j=ic(V,N,D,I,i,-tt,h),lt=ic(E,O,L,P,i,-H,h);r.lineTo(f+j.cx+j.x0,c+j.cy+j.y0),C<T&&H===tt?r.arc(f+j.cx,c+j.cy,C,We(j.y0,j.x0),We(lt.y0,lt.x0),!h):(tt>0&&r.arc(f+j.cx,c+j.cy,tt,We(j.y0,j.x0),We(j.y1,j.x1),!h),r.arc(f,c,i,We(j.cy+j.y1,j.cx+j.x1),We(lt.cy+lt.y1,lt.cx+lt.x1),h),H>0&&r.arc(f+lt.cx,c+lt.cy,H,We(lt.y1,lt.x1),We(lt.y0,lt.x0),!h))}else r.lineTo(f+V,c+N),r.arc(f,c,i,u,l,h)}r.closePath()}}}var N3=function(){function r(){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 r}(),dP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new N3},t.prototype.buildPath=function(e,n){O3(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pt);dP.prototype.type="sector";const gr=dP;var V3=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),pP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new V3},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(Pt);pP.prototype.type="ring";const rd=pP;function B3(r,t,e,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,v=r.length;h<v;h++)Ui(f,f,r[h]),Yi(c,c,r[h]);Ui(f,f,n[0]),Yi(c,c,n[1])}for(var h=0,v=r.length;h<v;h++){var d=r[h];if(e)l=r[h?h-1:v-1],u=r[(h+1)%v];else if(h===0||h===v-1){i.push(si(r[h]));continue}else l=r[h-1],u=r[h+1];no(a,u,l),th(a,a,t);var p=Oy(d,l),g=Oy(d,u),y=p+g;y!==0&&(p/=y,g/=y),th(o,a,-p),th(s,a,g);var m=px([],d,o),_=px([],d,s);n&&(Yi(m,m,f),Ui(m,m,c),Yi(_,_,f),Ui(_,_,c)),i.push(m),i.push(_)}return e&&i.push(i.shift()),i}function gP(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=B3(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)r.lineTo(i[s][0],i[s][1])}e&&r.closePath()}}var z3=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),yP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new z3},t.prototype.buildPath=function(e,n){gP(e,n,!0)},t}(Pt);yP.prototype.type="polygon";const yr=yP;var G3=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),mP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new G3},t.prototype.buildPath=function(e,n){gP(e,n,!1)},t}(Pt);mP.prototype.type="polyline";const mr=mP;var F3={},H3=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),_P=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new H3},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=UL(F3,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&&(e.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(Pt);_P.prototype.type="line";const Ee=_P;var ur=[],W3=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function Tb(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?Dx:Ae)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Dx:Ae)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Fy:Le)(r.x1,r.cpx1,r.x2,t),(e?Fy:Le)(r.y1,r.cpy1,r.y2,t)]}var SP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new W3},t.prototype.buildPath=function(e,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&&(e.moveTo(i,a),f==null||c==null?(h<1&&(zu(i,l,o,h,ur),l=ur[1],o=ur[2],zu(a,u,s,h,ur),u=ur[1],s=ur[2]),e.quadraticCurveTo(l,u,o,s)):(h<1&&(aa(i,l,f,o,h,ur),l=ur[1],f=ur[2],o=ur[3],aa(a,u,c,s,h,ur),u=ur[1],c=ur[2],s=ur[3]),e.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(e){return Tb(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=Tb(this.shape,e,!0);return Ks(n,n)},t}(Pt);SP.prototype.type="bezier-curve";const nd=SP;var $3=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),xP=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $3},t.prototype.buildPath=function(e,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);e.moveTo(f*o+i,c*o+a),e.arc(i,a,o,s,l,!u)},t}(Pt);xP.prototype.type="arc";const m_=xP;var U3=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Pt.prototype.getBoundingRect.call(this)},t}(Pt);const __=U3;var Y3=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}();const bP=Y3;var Z3=function(r){B(t,r);function t(e,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=e==null?0:e,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(bP);const bf=Z3;var X3=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e==null?.5:e,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t}(bP);const wP=X3;var Ea=[0,0],ka=[0,0],ac=new Ct,oc=new Ct,q3=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ct;for(var n=0;n<2;n++)this._axes[n]=new Ct;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){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),e)for(var u=0;u<4;u++)n[u].transform(e);Ct.sub(i[0],n[1],n[0]),Ct.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])},r.prototype.intersect=function(t,e){var n=!0,i=!e;return ac.set(1/0,1/0),oc.set(0,0),!this._intersectCheckOneSide(this,t,ac,oc,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,ac,oc,i,-1)&&(n=!1,i)||i||Ct.copy(e,n?ac:oc),n},r.prototype._intersectCheckOneSide=function(t,e,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Ea),this._getProjMinMaxOnAxis(l,e._corners,ka),Ea[1]<ka[0]||Ea[0]>ka[1]){if(s=!1,a)return s;var f=Math.abs(ka[0]-Ea[1]),c=Math.abs(Ea[0]-ka[1]);Math.min(f,c)>i.len()&&(f<c?Ct.scale(i,u,-f*o):Ct.scale(i,u,c*o))}else if(n){var f=Math.abs(ka[0]-Ea[1]),c=Math.abs(Ea[0]-ka[1]);Math.min(f,c)<n.len()&&(f<c?Ct.scale(n,u,f*o):Ct.scale(n,u,-c*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}();const Wh=q3;var K3=[],j3=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.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(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Mt(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(K3)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,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(e,n))return!0}return!1},t}(Yr);const J3=j3;var TP=Nt();function tl(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=xt(n.duration,200),f=xt(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)),vt(c)&&(c=c(e,i)),vt(u)&&(u=u(e));var h={duration:u||0,delay:c,easing:f};return h}else return null}function S_(r,t,e,n,i,a,o){var s=!1,l;vt(i)?(o=a,a=i,i=null):yt(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=tl(r,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,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Ht(r,t,e,n,i,a){S_("update",r,t,e,n,i,a)}function ae(r,t,e,n,i,a){S_("enter",r,t,e,n,i,a)}function Is(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function oa(r,t,e,n,i,a){Is(r)||S_("leave",r,t,e,n,i,a)}function Ab(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),oa(r,{style:{opacity:0}},t,e,n)}function Zu(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||Ab(i,t,e,n)}):Ab(r,t,e,n)}function pn(r){TP(r).oldStyle=r.style}function Q3(r){return TP(r).oldStyle}var $h=Math.max,Uh=Math.min,hm={};function tH(r){return Pt.extend(r)}var eH=D3;function rH(r,t){return eH(r,t)}function gn(r,t){hm[r]=t}function x_(r){if(hm.hasOwnProperty(r))return hm[r]}function id(r,t,e,n){var i=fP(r,t);return e&&(n==="center"&&(e=CP(e,i.getBoundingRect())),MP(i,e)),i}function AP(r,t,e){var n=new He({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle(CP(t,a))}}});return n}function CP(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Hr=I3;function MP(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Gs(r,t){return UL(r,r,{lineWidth:t}),r}function nH(r){return YL(r.shape,r.shape,r.style),r}var fh=io;function So(r,t){for(var e=Zv([]);r&&r!==t;)li(e,r.getLocalTransform(),e),r=r.parent;return e}function cn(r,t,e){return t&&!Ke(t)&&(t=ai.getLocalTransform(t)),e&&(t=js([],t)),Be([],r,t)}function ad(r,t,e){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=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=cn(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Cb(r){return!r.isGroup}function iH(r){return r.shape!=null}function wf(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Cb(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iH(o)&&(s.shape=F({},o.shape)),s}var a=n(r);t.traverse(function(o){if(Cb(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ht(o,l,e,St(o).dataIndex)}}})}function DP(r,t){return Z(r,function(e){var n=e[0];n=$h(n,t.x),n=Uh(n,t.x+t.width);var i=e[1];return i=$h(i,t.y),i=Uh(i,t.y+t.height),[n,i]})}function aH(r,t){var e=$h(r.x,t.x),n=Uh(r.x+r.width,t.x+t.width),i=$h(r.y,t.y),a=Uh(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function Tf(r,t,e){var n=F({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),pt(i,e),new He(n)):id(r.replace("path://",""),n,e,"center")}function Jl(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(IP(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function IP(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,c=s-a,h=Mp(f,c,l,u);if(oH(h))return!1;var v=r-i,d=t-a,p=Mp(v,d,l,u)/h;if(p<0||p>1)return!1;var g=Mp(v,d,f,c)/h;return!(g<0||g>1)}function Mp(r,t,e,n){return r*n-e*t}function oH(r){return r<=1e-6&&r>=-1e-6}function ko(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=nt(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&M(kt(l),function(f){st(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=St(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:pt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Mb(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function pa(r,t){if(r)if(Y(r))for(var e=0;e<r.length;e++)Mb(r[e],t);else Mb(r,t)}gn("circle",da);gn("ellipse",y_);gn("sector",gr);gn("ring",rd);gn("polygon",yr);gn("polyline",mr);gn("rect",Vt);gn("line",Ee);gn("bezierCurve",nd);gn("arc",m_);const Oo=Object.freeze(Object.defineProperty({__proto__:null,Arc:m_,BezierCurve:nd,BoundingRect:Mt,Circle:da,CompoundPath:__,Ellipse:y_,Group:_t,Image:He,IncrementalDisplayable:J3,Line:Ee,LinearGradient:bf,OrientedBoundingRect:Wh,Path:Pt,Point:Ct,Polygon:yr,Polyline:mr,RadialGradient:wP,Rect:Vt,Ring:rd,Sector:gr,Text:Gt,applyTransform:cn,clipPointsByRect:DP,clipRectByRect:aH,createIcon:Tf,extendPath:rH,extendShape:tH,getShapeClass:x_,getTransform:So,groupTransition:wf,initProps:ae,isElementRemoved:Is,lineLineIntersect:IP,linePolygonIntersect:Jl,makeImage:AP,makePath:id,mergePath:Hr,registerShape:gn,removeElement:oa,removeElementWithFadeOut:Zu,resizePath:MP,setTooltipConfig:ko,subPixelOptimize:fh,subPixelOptimizeLine:Gs,subPixelOptimizeRect:nH,transformDirection:ad,traverseElements:pa,updateProps:Ht},Symbol.toStringTag,{value:"Module"}));var od={};function LP(r,t){for(var e=0;e<lr.length;e++){var n=lr[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function vm(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=vt(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var l={normal:s},u=0;u<lr.length;u++){var f=lr[u],c=t[f];l[f]=xt(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Fe(r,t,e,n){e=e||od;for(var i=r instanceof Gt,a=!1,o=0;o<Uu.length;o++){var s=t[Uu[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new Gt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=vm(e,t),f=t.normal,c=!!f.getShallow("show"),h=Qt(f,n&&n.normal,e,!1,!i);h.text=u.normal,i||r.setTextConfig(Yh(f,e,!1));for(var o=0;o<lr.length;o++){var v=lr[o],s=t[v];if(s){var d=l.ensureState(v),p=!!xt(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Qt(s,n&&n[v],e,!0,!i),d.style.text=u[v],!i){var g=r.ensureState(v);g.textConfig=Yh(s,e,!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(),e.enableTextSetter&&(el(l).setLabelText=function(y){var m=vm(e,t,y);LP(l,m)})}else l&&(l.ignore=!0);r.dirty()}function De(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<lr.length;n++){var i=lr[n];e[i]=r.getModel([i,t])}return e}function Qt(r,t,e,n,i){var a={};return sH(a,r,e,n,i),t&&F(a,t),a}function Yh(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=xt(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?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=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function sH(r,t,e,n,i){e=e||od;var a=t.ecModel,o=a&&a.option.textStyle,s=lH(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Pb(l[u]={},f,o,e,n,i,!1,!0)}}l&&(r.rich=l);var c=t.get("overflow");c&&(r.overflow=c);var h=t.get("minMargin");h!=null&&(r.margin=h),Pb(r,t,o,e,n,i,!0,!1)}function lH(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||od).rich;if(e){t=t||{};for(var n=kt(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var Db=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ib=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Lb=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Pb(r,t,e,n,i,a,o,s){e=!i&&e||od;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=xt(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var h=xt(t.getShallow("textBorderWidth"),e.textBorderWidth);h!=null&&(r.lineWidth=h);var v=xt(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=xt(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(r.opacity=c),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var p=0;p<Db.length;p++){var g=Db[p],y=xt(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<Ib.length;p++){var g=Ib[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var p=0;p<Lb.length;p++){var g=Lb[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function b_(r,t){var e=t&&t.getModel("textStyle");return an([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var el=Nt();function PP(r,t,e,n){if(r){var i=el(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function RP(r,t,e,n,i){var a=el(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=xt(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=OL(e,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);LP(r,h)}r.percent=0,(a.prevValue==null?ae:Ht)(r,{percent:1},n,t,null,u)}var uH=["textStyle","color"],Dp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ip=new Gt,fH=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(uH):null)},r.prototype.getFont=function(){return b_({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Dp.length;n++)e[Dp[n]]=this.getShallow(Dp[n]);return Ip.useStyle(e),Ip.update(),Ip.getBoundingRect()},r}();const cH=fH;var EP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],hH=Mo(EP),vH=function(){function r(){}return r.prototype.getLineStyle=function(t){return hH(this,t)},r}(),kP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],dH=Mo(kP),pH=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return dH(this,t,e)},r}(),No=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){Tt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(mt(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!zt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){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&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();l_(No);pF(No);_e(No,vH);_e(No,pH);_e(No,SF);_e(No,cH);const te=No;var gH=Math.round(Math.random()*10);function rl(r){return[r||"",gH++].join("_")}function yH(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=On(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=On(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function mH(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,c=u.noEntryList,h={};for(M(a,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),M(d.successor,p?y:g)}M(h,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){h[m]=!0,g(m)}};function e(a){var o={},s=[];return M(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),M(c,function(h){Dt(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);Dt(v.successor,h)<0&&v.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 M(a,function(l){Dt(o,l)>=0&&s.push(l)}),s}}function ga(r,t){return Tt(Tt({},r,!0),t,!0)}const _H={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",custom:"Custom chart",chart:"Chart"}},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:". "}}}},SH={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:"旭日图",custom:"自定义图表",chart:"图表"}},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 Zh="ZH",w_="EN",Ls=w_,ch={},T_={},OP=zt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ls).toUpperCase();return r.indexOf(Zh)>-1?Zh:Ls}():Ls;function NP(r,t){r=r.toUpperCase(),T_[r]=new te(t),ch[r]=t}function xH(r){if(nt(r)){var t=ch[r.toUpperCase()]||{};return r===Zh||r===w_?mt(t):Tt(mt(t),mt(ch[Ls]),!1)}else return Tt(mt(r),mt(ch[Ls]),!1)}function dm(r){return T_[r]}function bH(){return T_[Ls]}NP(w_,_H);NP(Zh,SH);var A_=1e3,C_=A_*60,wu=C_*60,Wr=wu*24,Rb=Wr*365,Ql={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}"},sc="{yyyy}-{MM}-{dd}",Eb={year:"{yyyy}",month:"{yyyy}-{MM}",day:sc,hour:sc+" "+Ql.hour,minute:sc+" "+Ql.minute,second:sc+" "+Ql.second,millisecond:Ql.none},Lp=["year","month","day","hour","minute","second","millisecond"],VP=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Li(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ps(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function wH(r){return r===Ps(r)}function TH(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function sd(r,t,e,n){var i=$n(r),a=i[M_(e)](),o=i[Rs(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[ld(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[Xu(e)](),c=(f-1)%12+1,h=i[ud(e)](),v=i[fd(e)](),d=i[cd(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof te?n:dm(n||OP)||bH(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Li(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Li(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Li(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Li(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Li(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Li(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Li(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Li(d,3)).replace(/{S}/g,d+"")}function AH(r,t,e,n,i){var a=null;if(nt(e))a=e;else if(vt(e))a=e(r.value,t,{level:r.level});else{var o=F({},Ql);if(r.level>0)for(var s=0;s<Lp.length;++s)o[Lp[s]]="{primary|"+o[Lp[s]]+"}";var l=e?e.inherit===!1?e:pt(e,o):o,u=BP(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=VP.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Y(a)){var c=r.level==null?0:r.level>=0?r.level:a.length+r.level;c=Math.min(c,a.length-1),a=a[c]}}return sd(new Date(r.value),a,i,n)}function BP(r,t){var e=$n(r),n=e[Rs(t)]()+1,i=e[ld(t)](),a=e[Xu(t)](),o=e[ud(t)](),s=e[fd(t)](),l=e[cd(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function kb(r,t,e){var n=Ft(r)?$n(r):r;switch(t=t||BP(r,e),t){case"year":return n[M_(e)]();case"half-year":return n[Rs(e)]()>=6?1:0;case"quarter":return Math.floor((n[Rs(e)]()+1)/4);case"month":return n[Rs(e)]();case"day":return n[ld(e)]();case"half-day":return n[Xu(e)]()/24;case"hour":return n[Xu(e)]();case"minute":return n[ud(e)]();case"second":return n[fd(e)]();case"millisecond":return n[cd(e)]()}}function M_(r){return r?"getUTCFullYear":"getFullYear"}function Rs(r){return r?"getUTCMonth":"getMonth"}function ld(r){return r?"getUTCDate":"getDate"}function Xu(r){return r?"getUTCHours":"getHours"}function ud(r){return r?"getUTCMinutes":"getMinutes"}function fd(r){return r?"getUTCSeconds":"getSeconds"}function cd(r){return r?"getUTCMilliseconds":"getMilliseconds"}function CH(r){return r?"setUTCFullYear":"setFullYear"}function zP(r){return r?"setUTCMonth":"setMonth"}function GP(r){return r?"setUTCDate":"setDate"}function FP(r){return r?"setUTCHours":"setHours"}function HP(r){return r?"setUTCMinutes":"setMinutes"}function WP(r){return r?"setUTCSeconds":"setSeconds"}function $P(r){return r?"setUTCMilliseconds":"setMilliseconds"}function UP(r){if(!ML(r))return nt(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function YP(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var nl=j0;function pm(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&an(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?$n(r):r;if(isNaN(+l)){if(s)return"-"}else return sd(l,n,e)}if(t==="ordinal")return Ry(r)?i(r):Ft(r)&&a(r)?r+"":"-";var u=yi(r);return a(u)?UP(u):Ry(r)?i(r):typeof r=="boolean"?r+"":"-"}var Ob=["a","b","c","d","e","f","g"],Pp=function(r,t){return"{"+r+(t==null?"":t)+"}"};function ZP(r,t,e){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Ob[a];r=r.replace(Pp(o),Pp(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];r=r.replace(Pp(Ob[l],s),e?qe(u):u)}return r}function MH(r,t,e){return M(t,function(n,i){r=r.replace("{"+i+"}",e?qe(n):n)}),r}function DH(r,t){var e=nt(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.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:'+qe(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+qe(n)+";"+(t||"")+'"></span>';var o=e.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 Io(r,t){return t=t||"transparent",nt(r)?r:yt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Xh(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var hh=M,XP=["left","right","top","bottom","width","height"],oo=[["width","left","right"],["height","top","bottom"]];function D_(r,t,e,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(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=a+p,v>n||l.newline?(a=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var xo=D_;bt(D_,"vertical");bt(D_,"horizontal");function IH(r,t,e){var n=t.width,i=t.height,a=et(r.left,n),o=et(r.top,i),s=et(r.right,n),l=et(r.bottom,i);return(isNaN(a)||isNaN(parseFloat(r.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),e=nl(e||0),{width:Math.max(s-a-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function be(r,t,e){e=nl(e||0);var n=t.width,i=t.height,a=et(r.left,n),o=et(r.top,i),s=et(r.right,n),l=et(r.bottom,i),u=et(r.width,n),f=et(r.height,i),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[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 d=new Mt(a+e[3],o+e[0],u,f);return d.margin=e,d}function hd(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Mt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=be(pt({width:u.width,height:u.height},t),e,n),h=o?c.x-u.x:0,v=s?c.y-u.y:0;return l==="raw"?(a.x=h,a.y=v):(a.x+=h,a.y+=v),a===r&&r.markRedraw(),!0}function LH(r,t){return r[oo[t][0]]!=null||r[oo[t][1]]!=null&&r[oo[t][2]]!=null}function qu(r){var t=r.layoutMode||r.constructor.layoutMode;return yt(t)?t:t?{type:t}:null}function sa(r,t,e){var n=e&&e.ignoreSize;!Y(n)&&(n=[n,n]);var i=o(oo[0],0),a=o(oo[1],1);u(oo[0],r,i),u(oo[1],r,a);function o(f,c){var h={},v=0,d={},p=0,g=2;if(hh(f,function(_){d[_]=r[_]}),hh(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var y=0;y<f.length;y++){var m=f[y];if(!s(h,m)&&s(r,m)){h[m]=r[m];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){hh(f,function(v){c[v]=h[v]})}}function il(r){return qP({},r)}function qP(r,t){return t&&r&&hh(XP,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var PH=Nt(),al=function(r){B(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=rl("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=qu(this),a=i?il(e):{},o=n.getTheme();Tt(e,o.get(this.mainType)),Tt(e,this.getDefaultOption()),i&&sa(e,a,i)},t.prototype.mergeOption=function(e,n){Tt(this.option,e,!0);var i=qu(this);i&&sa(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!hF(e))return e.defaultOption;var n=PH(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Tt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Sf(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(te);VL(al,te);Kv(al);yH(al);mH(al,RH);function RH(r){var t=[];return M(al.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Z(t,function(e){return On(e).main}),r!=="dataset"&&Dt(t,"dataset")<=0&&t.unshift("dataset"),t}const Bt=al;var KP="";typeof navigator!="undefined"&&(KP=navigator.platform||"");var Ko="rgba(0, 0, 0, 0.2)";const EH={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ko,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ko,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ko,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ko,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ko,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ko,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:KP.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 jP=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xr="original",je="arrayRows",qr="objectRows",Yn="keyedColumns",ta="typedArray",JP="unknown",zn="column",ol="row",Oe={Must:1,Might:2,Not:3},QP=Nt();function kH(r){QP(r).datasetMap=ft()}function t2(r,t,e){var n={},i=L_(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=QP(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),M(r,function(p,g){var y=yt(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});M(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=h.valueWayDim;v(n[y],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(a,0,m);else{var _=h.categoryWayDim;v(n[y],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function I_(r,t,e){var n={},i=L_(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===qr||a===Yn)&&M(o,function(f,c){(yt(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},h=[],v=0,d=Math.min(5,e);v<d;v++){var p=r2(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);h.push(p);var g=p===Oe.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&h[f.n]===Oe.Not)&&(f.n=v),y(f)&&h[f.n]!==Oe.Not)return f;g||(p===Oe.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function L_(r){var t=r.get("data",!0);if(!t)return Sf(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ge).models[0]}function OH(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Sf(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ge).models}function e2(r,t){return r2(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function r2(r,t,e,n,i,a){var o,s=5;if(pr(r))return Oe.Not;var l,u;if(n){var f=n[a];yt(f)?(l=f.name,u=f.type):nt(f)&&(l=f)}if(u!=null)return u==="ordinal"?Oe.Must:Oe.Not;if(t===je){var c=r;if(e===ol){for(var h=c[a],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[i+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===qr){var p=r;if(!l)return Oe.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Yn){var y=r;if(!l)return Oe.Not;var h=y[l];if(!h||pr(h))return Oe.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(t===Xr)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=Js(g);if(!Y(_))return Oe.Not;if((o=S(_[a]))!=null)return o}function S(x){var b=nt(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return b?Oe.Might:Oe.Not;if(b&&x!=="-")return Oe.Must}return Oe.Not}var gm=ft();function NH(r,t){sr(gm.get(r)==null&&t),gm.set(r,t)}function VH(r,t,e){var n=gm.get(t);if(!n)return e;var i=n(r);return i?e.concat(i):e}var Nb=Nt(),BH=Nt(),P_=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=Zt(this.get("color",!0)),a=this.get("colorLayer",!0);return n2(this,Nb,i,a,t,e,n)},r.prototype.clearColorPalette=function(){GH(this,Nb)},r}();function ym(r,t,e,n){var i=Zt(r.get(["aria","decal","decals"]));return n2(r,BH,i,null,t,e,n)}function zH(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function n2(r,t,e,n,i,a,o){a=a||r;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?e:zH(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function GH(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var lc,Cl,Vb,Bb="\0_ec_inner",FH=1,i2=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new te(a),this._locale=new te(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=Fb(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Fb(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Vb(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&M(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ft(),u=n&&n.replaceMergeMainTypeMap;kH(this),M(e,function(c,h){c!=null&&(Bt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?mt(c):Tt(i[h],c,!0))}),u&&u.each(function(c,h){Bt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Bt.topologicalTravel(s,Bt.getAllClassMainTypes(),f,this);function f(c){var h=VH(this,c,Zt(e[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=RL(v,h,d);nF(p,c,Bt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;M(p,function(S,x){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=c==="series",A=Bt.getClass(c,S.keyInfo.subType,!T);if(!A)return;if(c==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===A)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var C=F({componentIndex:x},S.keyInfo);b=new A(w,this,this,C),F(b,C),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),i[c]=g,a.set(c,y),o.set(c,m),c==="series"&&lc(this)}this._seriesIndices||lc(this)},t.prototype.getOption=function(){var e=mt(this.option);return M(e,function(n,i){if(Bt.hasClass(i)){for(var a=Zt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Wu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Bb],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);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(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],M(Zt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=zb("id",a,s):o!=null?l=zb("name",o,s):l=$t(s,function(u){return!!u}),Gb(l,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):$t(this._componentsMap.get(i),function(u){return!!u});return l(Gb(o,e));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 e.filter?$t(u,e.filter):u}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if(vt(e)){var o=n,s=e;a.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=nt(e)?a.get(e):yt(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=xe(e,null);return $t(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return $t(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return $t(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Cl(this),M(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){M(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){Cl(this),M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return M(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return Cl(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Cl(this);var i=[];M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ft(i)},t.prototype.restoreData=function(e){lc(this);var n=this._componentsMap,i=[];n.each(function(a,o){Bt.hasClass(o)&&i.push(o)}),Bt.topologicalTravel(i,Bt.getAllClassMainTypes(),function(a){M(n.get(a),function(o){o&&(a!=="series"||!HH(o,e))&&o.restoreData()})})},t.internalField=function(){lc=function(e){var n=e._seriesIndices=[];M(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=ft(n)},Cl=function(e){},Vb=function(e,n){e.option={},e.option[Bb]=FH,e._componentsMap=ft({series:[]}),e._componentsCount=ft();var i=n.aria;yt(i)&&i.enabled==null&&(i.enabled=!0),WH(n,e._theme.option),Tt(n,EH,!1),e._mergeOption(n,null)}}(),t}(te);function HH(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function WH(r,t){var e=r.color&&!r.colorLayer;M(t,function(n,i){i==="colorLayer"&&e||Bt.hasClass(i)||(typeof n=="object"?r[i]=r[i]?Tt(r[i],n,!1):mt(n):r[i]==null&&(r[i]=n))})}function zb(r,t,e){if(Y(t)){var n=ft();return M(t,function(a){if(a!=null){var o=xe(a,null);o!=null&&n.set(a,!0)}}),$t(e,function(a){return a&&n.get(a[r])})}else{var i=xe(t,null);return $t(e,function(a){return a&&i!=null&&a[r]===i})}}function Gb(r,t){return t.hasOwnProperty("subType")?$t(r,function(e){return e&&e.subType===t.subType}):r}function Fb(r){var t=ft();return r&&M(Zt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}_e(i2,P_);const a2=i2;var $H=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],UH=function(){function r(t){M($H,function(e){this[e]=at(t[e],t)},this)}return r}();const o2=UH;var Rp={},YH=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];M(Rp,function(i,a){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){M(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Rp[t]=e},r.get=function(t){return Rp[t]},r}();const Af=YH;var ZH=/^(min|max)?(.+)$/,XH=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(M(Zt(t.series),function(o){o&&o.data&&pr(o.data)&&Eh(o.data)}),M(Zt(t.dataset),function(o){o&&o.source&&pr(o.source)&&Eh(o.source)})),t=mt(t);var i=this._optionBackup,a=qH(t,e,!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},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],mt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=mt(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=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++)KH(i[l].query,e,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!JH(o,this._currentMediaIndices)&&(s=Z(o,function(f){return mt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function qH(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(r.options=r.media=null),a=r),f&&Y(u)&&M(u,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),h(a),M(l,function(v){return h(v)}),M(n,function(v){return h(v.option)});function h(v){M(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function KH(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return M(r,function(a,o){var s=o.match(ZH);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();jH(n[u],a,l)||(i=!1)}}),i}function jH(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function JH(r,t){return r.join(",")===t.join(",")}const QH=XH;var jr=M,Ku=yt,Hb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ep(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Hb.length;e<n;e++){var i=Hb[e],a=t.normal,o=t.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?Tt(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?Tt(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Ze(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,pt(r[t],n)):r[t]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function tu(r){Ze(r,"itemStyle"),Ze(r,"lineStyle"),Ze(r,"areaStyle"),Ze(r,"label"),Ze(r,"labelLine"),Ze(r,"upperLabel"),Ze(r,"edgeLabel")}function pe(r,t){var e=Ku(r)&&r[t],n=Ku(e)&&e.textStyle;if(n)for(var i=0,a=Xx.length;i<a;i++){var o=Xx[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}function Nr(r){r&&(tu(r),pe(r,"label"),r.emphasis&&pe(r.emphasis,"label"))}function t4(r){if(Ku(r)){Ep(r),tu(r),pe(r,"label"),pe(r,"upperLabel"),pe(r,"edgeLabel"),r.emphasis&&(pe(r.emphasis,"label"),pe(r.emphasis,"upperLabel"),pe(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Ep(t),Nr(t));var e=r.markLine;e&&(Ep(e),Nr(e));var n=r.markArea;n&&Nr(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!pr(a))for(var o=0;o<a.length;o++)Nr(a[o]);M(r.categories,function(u){tu(u)})}if(i&&!pr(i))for(var o=0;o<i.length;o++)Nr(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Nr(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)Y(l[o])?(Nr(l[o][0]),Nr(l[o][1])):Nr(l[o]);r.type==="gauge"?(pe(r,"axisLabel"),pe(r,"title"),pe(r,"detail")):r.type==="treemap"?(Ze(r.breadcrumb,"itemStyle"),M(r.levels,function(u){tu(u)})):r.type==="tree"&&tu(r.leaves)}}function jn(r){return Y(r)?r:r?[r]:[]}function Wb(r){return(Y(r)?r[0]:r)||{}}function e4(r,t){jr(jn(r.series),function(n){Ku(n)&&t4(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),jr(e,function(n){jr(jn(r[n]),function(i){i&&(pe(i,"axisLabel"),pe(i.axisPointer,"label"))})}),jr(jn(r.parallel),function(n){var i=n&&n.parallelAxisDefault;pe(i,"axisLabel"),pe(i&&i.axisPointer,"label")}),jr(jn(r.calendar),function(n){Ze(n,"itemStyle"),pe(n,"dayLabel"),pe(n,"monthLabel"),pe(n,"yearLabel")}),jr(jn(r.radar),function(n){pe(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)}),jr(jn(r.geo),function(n){Ku(n)&&(Nr(n),jr(jn(n.regions),function(i){Nr(i)}))}),jr(jn(r.timeline),function(n){Nr(n),Ze(n,"label"),Ze(n,"itemStyle"),Ze(n,"controlStyle",!0);var i=n.data;Y(i)&&M(i,function(a){yt(a)&&(Ze(a,"label"),Ze(a,"itemStyle"))})}),jr(jn(r.toolbox),function(n){Ze(n,"iconStyle"),jr(n.feature,function(i){Ze(i,"iconStyle")})}),pe(Wb(r.axisPointer),"label"),pe(Wb(r.tooltip).axisPointer,"label")}function r4(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function n4(r,t,e,n){for(var i=t.split(","),a=r,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]]=e)}function $b(r){r&&M(i4,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var i4=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],a4=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],kp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ml(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<kp.length;e++){var n=kp[e][1],i=kp[e][0];t[n]!=null&&(t[i]=t[n])}}function Ub(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Yb(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function o4(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function s2(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&s2(r[e].children,t)}function l2(r,t){e4(r,t),r.series=Zt(r.series),M(r.series,function(e){if(yt(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Ub(e.label);var i=e.data;if(i&&!pr(i))for(var a=0;a<i.length;a++)Ub(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=r4(e,"pointer.color");o!=null&&n4(e,"itemStyle.color",o)}else if(n==="bar"){Ml(e),Ml(e.backgroundStyle),Ml(e.emphasis);var i=e.data;if(i&&!pr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Ml(i[a]),Ml(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Yb(e),s2(e.data,Yb)}else n==="graph"||n==="sankey"?o4(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&pt(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),$b(e)}}),r.dataRange&&(r.visualMap=r.dataRange),M(a4,function(e){var n=r[e];n&&(Y(n)||(n=[n]),M(n,function(i){$b(i)}))})}function s4(r){var t=ft();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.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:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(l4)}function l4(r){M(r,function(t,e){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 v,d;s?d=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=YG(h,m),p=m;break}}}return n[0]=h,n[1]=p,n})})}var vd=function(){function r(t){this.data=t.data||(t.sourceFormat===Yn?{}:[]),this.sourceFormat=t.sourceFormat||JP,this.seriesLayoutBy=t.seriesLayoutBy||zn,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];i.type==null&&e2(this,n)===Oe.Must&&(i.type="ordinal")}}return r}();function R_(r){return r instanceof vd}function mm(r,t,e){e=e||u2(r);var n=t.seriesLayoutBy,i=f4(r,e,n,t.sourceHeader,t.dimensions),a=new vd({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:mt(t)});return a}function E_(r){return new vd({data:r,sourceFormat:pr(r)?ta:Xr})}function u4(r){return new vd({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:mt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function u2(r){var t=JP;if(pr(r))t=ta;else if(Y(r)){r.length===0&&(t=je);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(Y(i)||pr(i)){t=je;break}else if(yt(i)){t=qr;break}}}}else if(yt(r)){for(var a in r)if(st(r,a)&&Ke(r[a])){t=Yn;break}}return t}function f4(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:Zb(i),startIndex:o,dimensionsDetectedCount:a};if(t===je){var s=r;n==="auto"||n==null?Xb(function(u){u!=null&&u!=="-"&&(nt(u)?o==null&&(o=1):o=0)},e,s,10):o=Ft(n)?n:n?1:0,!i&&o===1&&(i=[],Xb(function(u,f){i[f]=u!=null?u+"":""},e,s,1/0)),a=i?i.length:e===ol?s.length:s[0]?s[0].length:null}else if(t===qr)i||(i=c4(r));else if(t===Yn)i||(i=[],M(r,function(u,f){i.push(f)}));else if(t===Xr){var l=Js(r[0]);a=Y(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Zb(i),dimensionsDetectedCount:a}}function c4(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return kt(e)}function Zb(r){if(r){var t=ft();return Z(r,function(e,n){e=yt(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.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 Xb(r,t,e,n){if(t===ol)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function f2(r){var t=r.sourceFormat;return t===qr||t===Yn}var Oa,Na,Va,qb,Kb,c2=function(){function r(t,e){var n=R_(t)?t:E_(t);this._source=n;var i=this._data=n.data;n.sourceFormat===ta&&(this._offset=0,this._dimSize=e,this._data=i),Kb(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Kb=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=qb[k_(u,f)];if(F(o,v),u===ta)o.getItem=e,o.count=i,o.fillStorage=n;else{var d=h2(u,f);o.getItem=at(d,null,s,c,h);var p=v2(u,f);o.count=at(p,null,s,c,h)}};var e=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 v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=l[h],m=0;m<g;m++){var _=f[m*c+h];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};qb=(t={},t[je+"_"+zn]={pure:!0,appendData:a},t[je+"_"+ol]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[qr]={pure:!0,appendData:a},t[Yn]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Xr]={appendData:a},t[ta]={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])}}(),r}(),jb=function(r,t,e,n){return r[n]},h4=(Oa={},Oa[je+"_"+zn]=function(r,t,e,n){return r[n+t]},Oa[je+"_"+ol]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Oa[qr]=jb,Oa[Yn]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];a[o]=l?l[n]:null}return a},Oa[Xr]=jb,Oa);function h2(r,t){var e=h4[k_(r,t)];return e}var Jb=function(r,t,e){return r.length},v4=(Na={},Na[je+"_"+zn]=function(r,t,e){return Math.max(0,r.length-t)},Na[je+"_"+ol]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},Na[qr]=Jb,Na[Yn]=function(r,t,e){var n=e[0].name,i=r[n];return i?i.length:0},Na[Xr]=Jb,Na);function v2(r,t){var e=v4[k_(r,t)];return e}var Op=function(r,t,e){return r[t]},d4=(Va={},Va[je]=Op,Va[qr]=function(r,t,e){return r[e]},Va[Yn]=Op,Va[Xr]=function(r,t,e){var n=Js(r);return n instanceof Array?n[t]:n},Va[ta]=Op,Va);function d2(r){var t=d4[r];return t}function k_(r,t){return r===je?r+"_"+t:r}function Fs(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return d2(a)(n,o,s)}else{var l=n;return a===Xr&&(l=Js(n)),l}}}}var p4=/\{@(.+?)\}/g,dd=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),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",v=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:e,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,i,a,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&Y(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(vt(a))return l.status=e,l.dimensionIndex=i,a(l);if(nt(a)){var f=ZP(a,l);return f.replace(p4,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Fs(s,t,d);if(o&&Y(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Fs(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Qb(r){var t,e;return yt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Tu(r){return new g4(r)}var g4=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.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(m){return!(m>=1)&&(m=1),m}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(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var p=this._progress;if(Y(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,i,a){tw.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:tw.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Y(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),tw=function(){var r,t,e,n,i,a={reset:function(l,u,f,c){t=l,r=u,e=f,n=c,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=r?null:l<n?l:t;return t++,u}}();function ea(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Ft(r)&&r!=null&&r!=="-"&&(r=+$n(r)),r==null||r===""?NaN:Number(r))}var y4=ft({number:function(r){return parseFloat(r)},time:function(r){return+$n(r)},trim:function(r){return nt(r)?an(r):r}});function p2(r){return y4.get(r)}var g2={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},m4=function(){function r(t,e){if(!Ft(e)){var n="";Wt(n)}this._opFn=g2[t],this._rvalFloat=yi(e)}return r.prototype.evaluate=function(t){return Ft(t)?this._opFn(t,this._rvalFloat):this._opFn(yi(t),this._rvalFloat)},r}(),y2=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=Ft(t)?t:yi(t),i=Ft(e)?e:yi(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=nt(t),l=nt(e);s&&(n=l?t:0),l&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),_4=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=yi(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=yi(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function S4(r,t){return r==="eq"||r==="ne"?new _4(r==="eq",t):st(g2,r)?new m4(r,t):null}var x4=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ea(t,e)},r}();function b4(r,t){var e=new x4,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==zn&&Wt(o);var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";st(l,y)&&Wt(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=h2(i,zn);t.__isBuiltIn&&(e.getRawDataItem=function(p){return c(n,a,s,p)},e.getRawData=at(w4,null,r)),e.cloneRawData=at(T4,null,r);var h=v2(i,zn);e.count=at(h,null,n,a,s);var v=d2(i);e.retrieveValue=function(p,g){var y=c(n,a,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return v(p,g,y.name)}};return e.getDimensionInfo=at(A4,null,s,l),e.cloneAllDimensionInfo=at(C4,null,s),e}function w4(r){var t=r.sourceFormat;if(!O_(t)){var e="";Wt(e)}return r.data}function T4(r){var t=r.sourceFormat,e=r.data;if(!O_(t)){var n="";Wt(n)}if(t===je){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===qr){for(var i=[],a=0,o=e.length;a<o;a++)i.push(F({},e[a]));return i}}function A4(r,t,e){if(e!=null){if(Ft(e)||!isNaN(e)&&!st(t,e))return r[e];if(st(t,e))return t[e]}}function C4(r){return mt(r)}var m2=ft();function M4(r){r=mt(r);var t=r.type,e="";t||Wt(e);var n=t.split(":");n.length!==2&&Wt(e);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,m2.set(t,r)}function D4(r,t,e){var n=Zt(r),i=n.length,a="";i||Wt(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=I4(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function I4(r,t,e,n){var i="";t.length||Wt(i),yt(r)||Wt(i);var a=r.type,o=m2.get(a);o||Wt(i);var s=Z(t,function(u){return b4(u,o)}),l=Zt(o.transform({upstream:s[0],upstreamList:s,config:mt(r.config)}));return Z(l,function(u,f){var c="";yt(u)||Wt(c),u.data||Wt(c);var h=u2(u.data);O_(h)||Wt(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:zn,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:zn,sourceHeader:0,dimensions:u.dimensions};return mm(u.data,v,null)})}function O_(r){return r===je||r===qr}var pd="undefined",L4=typeof Uint32Array===pd?Array:Uint32Array,P4=typeof Uint16Array===pd?Array:Uint16Array,_2=typeof Int32Array===pd?Array:Int32Array,ew=typeof Float64Array===pd?Array:Float64Array,S2={float:ew,int:_2,ordinal:Array,number:Array,time:ew},Np;function jo(r){return r>65535?L4:P4}function Jo(){return[1/0,-1/0]}function R4(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function rw(r,t,e,n,i){var a=S2[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(n)}var _m=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ft()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Np[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],f2(i),this._dimensions=Z(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new S2[e||"float"](this._rawCount),this._rawExtent[a]=Jo(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Jo());for(var l=a[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=i[u];rw(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<a;d++){var f=i[d],p=Np.arrayRows.call(this,t[v]||c,f.property,v,d);n[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Jo()),rw(a,f,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var h=[],v=t;v<e;v++){h=i.getItem(v,h);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],i=[];if(e==null){e=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],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.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},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[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(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,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),v=e-a[h],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=jo(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=jo(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<i;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=e(h);else if(l===1){var p=c[f][d];v=e(p,h)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][d];s[g]=h,v=e.apply(null,s)}v&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=kt(t),a=i.length;if(!a)return this;var o=e.count(),s=jo(e._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],h=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(a===1){for(var g=v[i[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],S=t[i[1]][0],x=t[i[1]][1],y=0;y<n;y++){var m=g[y],b=_[y];(m>=c&&m<=h||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var w=e.getRawIndex(y),m=v[i[0]][w];(m>=c&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var T=!0,w=e.getRawIndex(y),A=0;A<a;A++){var C=i[A],m=v[C][w];(m<t[C][0]||m>t[C][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var i=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Jo();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=i[e[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=i[p];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(jo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),x=a[S];isNaN(x)||(m+=x)}m/=g-p;var b=d,w=Math.min(d+l,o),T=d-1,A=a[u];f=-1,h=b;for(var C=-1,D=0,_=b;_<w;_++){var S=this.getRawIndex(_),x=a[S];if(isNaN(x)){D++,C<0&&(C=S);continue}c=Math.abs((T-y)*(x-A)-(T-_)*(m-A)),c>f&&(f=c,h=S)}D>0&&D<w-b&&(v[s++]=Math.min(C,h),h=Math.max(C,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/e),o=i[t],s=this.count(),l=new(jo(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<h&&(h=m,c=f+g),m>d&&(d=m,v=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),c=a._rawExtent[t]=Jo(),h=new(jo(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[v++]=m}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){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:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(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,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Jo();if(!e)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=e[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&Fn(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?R4(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=mt(this._extent),t._rawExtent=mt(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return ea(e[a],this._dimensions[a])}Np={arrayRows:t,objectRows:function(e,n,i,a){return ea(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return ea(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),x2=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(uc(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=pr(s)?ta:Xr,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=xt(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=xt(c.sourceHeader,h.sourceHeader),p=xt(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;i=g?[mm(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[mm(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&iw(a)}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&iw(c),s.push(f),l.push(u._getVersionSign())}),n?o=D4(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[u4(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,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];uc(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new _m,s.initData(new c2(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(uc(t)){var e=L_(t);return e?[e.getSourceManager()]:[]}else return Z(OH(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(uc(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r}();function nw(r){var t=r.option.transform;t&&Eh(r.option.transform)}function uc(r){return r.mainType==="series"}function iw(r){throw new Error(r)}var E4="line-height:1";function b2(r){var t=r.lineHeight;return t==null?E4:"line-height:"+qe(t+"")+"px"}function w2(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+qe(n+"")+"px;color:"+qe(e)+";font-weight:"+qe(i+""),valueStyle:"font-size:"+qe(o+"")+"px;color:"+qe(a)+";font-weight:"+qe(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var k4=[0,10,20,30],O4=["",`
`,`
`,`
`];function Ie(r,t){return t.type=r,t}function Sm(r){return r.type==="section"}function T2(r){return Sm(r)?N4:V4}function A2(r){if(Sm(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return M(r.blocks,function(i){var a=A2(i);a>=t&&(t=a+ +(n&&(!a||Sm(i)&&!i.noHeader)))}),t}return 0}function N4(r,t,e,n){var i=t.noHeader,a=B4(A2(t)),o=[],s=t.blocks||[];sr(!s||Y(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(st(u,l)){var f=new y2(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var y=t.valueFormatter,m=T2(p)(y?F(F({},r),{valueFormatter:y}):r,p,g>0?a.html:0,n);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(a.richText):xm(n,o.join(""),i?e:a.html);if(i)return c;var h=pm(t.header,"ordinal",r.useUTC),v=w2(n,r.renderMode).nameStyle,d=b2(n);return r.renderMode==="richText"?C2(r,h,v)+a.richText+c:xm(n,'<div style="'+v+";"+d+';">'+qe(h)+"</div>"+c,e)}function V4(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=Y(S)?S:[S],Z(S,function(x,b){return pm(x,Y(v)?v[b]:v,u)})};if(!(a&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":pm(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=w2(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":c)+(a?"":C2(r,h,m))+(o?"":F4(r,d,p,g,_)):xm(n,(s?"":c)+(a?"":z4(h,!s,m))+(o?"":G4(d,p,g,_)),e)}}function aw(r,t,e,n,i,a){if(r){var o=T2(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function B4(r){return{html:k4[r],richText:O4[r]}}function xm(r,t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0",a=b2(r);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function z4(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+qe(r)+"</span>"}function G4(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=Y(r)?r:[r],'<span style="'+a+";"+n+'">'+Z(r,function(o){return qe(o)}).join("&nbsp;&nbsp;")+"</span>"}function C2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function F4(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,a)}function M2(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Io(n)}function D2(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Vp=function(){function r(){this.richTextStyles={},this._nextStyleNameId=DL()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=DH({color:e,type:t,renderMode:n,markerId:i});return nt(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};Y(e)?M(e,function(a){return F(n,a)}):F(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function I2(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=Y(s),u=M2(t,e),f,c,h,v;if(o>1||l&&!o){var d=H4(s,t,e,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=Fs(i,e,a[0]),c=p.type}else v=f=l?s[0]:s;var g=o_(t),y=g&&t.name||"",m=i.getName(e),_=n?y:m;return Ie("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[Ie("nameValue",{markerType:"item",markerColor:u,name:_,noName:!an(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function H4(r,t,e,n,i){var a=t.getData(),o=Fn(r,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(c){f(Fs(a,e,c),c)}):M(r,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Ie("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Pi=Nt();function fc(r,t){return r.getName(t)||r.getId(t)}var vh="__universalTransitionEnabled",gd=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Tu({count:$4,reset:U4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Pi(this).sourceManager=new x2(this);a.prepareSource();var o=this.getInitialData(e,i);sw(o,this),this.dataTask.context.data=o,Pi(this).dataBeforeProcessed=o,ow(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=qu(this),a=i?il(e):{},o=this.subType;Bt.hasClass(o)&&(o+="Series"),Tt(e,n.getTheme().get(this.subType)),Tt(e,this.getDefaultOption()),Ao(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&sa(e,a,i)},t.prototype.mergeOption=function(e,n){e=Tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=qu(this);i&&sa(this.option,e,i);var a=Pi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);sw(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Pi(this).dataBeforeProcessed=o,ow(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!pr(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&Ao(e[i],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=bm(this);if(n){var i=n.context.data;return e==null||!i.getLinkedData?i:i.getLinkedData(e)}else return Pi(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=bm(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}Pi(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return ft(e)},t.prototype.getSourceManager=function(){return Pi(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Pi(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,n,i){return I2({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(zt.node&&!(e&&e.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(e,n,i){var a=this.ecModel,o=P_.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,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<e.length;s++){var l=e[s],u=fc(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[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 e=this._selectedDataIndicesMap,n=kt(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[fc(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[vh])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,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"){yt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=fc(e,c);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=fc(e,v);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Bt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Bt);_e(gd,dd);_e(gd,P_);VL(gd,Bt);function ow(r){var t=r.name;o_(r)||(r.name=W4(r)||t)}function W4(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return M(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function $4(r){return r.model.getRawData().count()}function U4(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Y4}function Y4(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sw(r,t){M(Bu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(Z4,t))})}function Z4(r,t){var e=bm(r);return e&&e.setOutputEnd((t||this).count()),t}function bm(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const le=gd;var N_=function(){function r(){this.group=new _t,this.uid=rl("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();l_(N_);Kv(N_);const fe=N_;function sl(){var r=Nt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var L2=Nt(),X4=sl(),V_=function(){function r(){this.group=new _t,this.uid=rl("viewChart"),this.renderTask=Tu({plan:q4,reset:K4}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&uw(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&uw(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){pa(this.group,t)},r.markUpdateMethod=function(t,e){L2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function lw(r,t,e){r&&Yu(r)&&(t==="emphasis"?mi:_i)(r,e)}function uw(r,t,e){var n=Co(r,t),i=t&&t.highlightKey!=null?x3(t.highlightKey):null;n!=null?M(Zt(n),function(a){lw(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){lw(a,e,i)})}l_(V_);Kv(V_);function q4(r){return X4(r.model)}function K4(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&L2(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),j4[l]}var j4={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ee=V_;var qh="\0__throttleOriginMethod",fw="\0__throttleRate",cw="\0__throttleType";function B_(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var p=f||t,g=f||e;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?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(v){f=v},h}function ll(r,t,e,n){var i=r[t];if(i){var a=i[qh]||i,o=i[cw],s=i[fw];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=B_(a,e,n==="debounce"),i[qh]=a,i[cw]=n,i[fw]=e}return i}}function ju(r,t){var e=r[t];e&&e[qh]&&(e.clear&&e.clear(),r[t]=e[qh])}var hw=Nt(),vw={itemStyle:Mo(kP,!0),lineStyle:Mo(EP,!0)},J4={lineStyle:"stroke",itemStyle:"fill"};function P2(r,t){var e=r.visualStyleMapper||vw[t];return e||(console.warn("Unknown style type '"+t+"'."),vw.itemStyle)}function R2(r,t){var e=r.visualDrawType||J4[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Q4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=P2(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=R2(r,n),u=o[l],f=vt(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||vt(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||vt(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=F({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},Dl=new te,tW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=P2(r,n),a=e.getVisual("drawType");return{dataEach:e.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");F(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}}}},eW={performRawSeries:!0,overallReset:function(r){var t=ft();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),hw(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=hw(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=R2(e,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"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},cc=Math.PI;function rW(r,t){t=t||{},pt(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 e=new _t,n=new Vt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Gt({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 Vt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new m_({shape:{startAngle:-cc/2,endAngle:-cc/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:cc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:cc*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.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=r.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:r.getWidth(),height:r.getHeight()})},e.resize(),e}var nW=function(){function r(t,e,n,i){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&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}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.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}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();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}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";sr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;M(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 v,d=h.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=ft(),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,v=s.set(h,o&&o.get(h)||Tu({plan:lW,reset:uW,count:cW}));v.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||Tu({reset:iW});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ft(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";sr(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,M(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(h=!0,Tu({reset:aW,onDirty:sW})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,a._pipe(p,y)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:hW(t)}),t.uid=rl("stageHandler"),e&&(t.visualType=e),t},r}();function iW(r){r.overallReset(r.ecModel,r.api,r.payload)}function aW(r){return r.overallProgress&&oW}function oW(){this.agent.dirty(),this.getDownstream().dirty()}function sW(){this.agent&&this.agent.dirty()}function lW(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function uW(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Zt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Z(t,function(e,n){return E2(n)}):fW}var fW=E2(0);function E2(r){return function(t,e){var n=e.data,i=e.resetDefines[r];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 cW(r){return r.data.count()}function hW(r){Kh=null;try{r(Ju,k2)}catch(t){}return Kh}var Ju={},k2={},Kh;O2(Ju,a2);O2(k2,o2);Ju.eachSeriesByType=Ju.eachRawSeriesByType=function(r){Kh=r};Ju.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Kh=r.subType)};function O2(r,t){for(var e in t.prototype)r[e]=de}const N2=nW;var dw=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const vW={color:dw,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],dw]};var Ue="#B9B8CE",pw="#100C2A",hc=function(){return{axisLine:{lineStyle:{color:Ue}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},gw=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],V2={darkMode:!0,color:gw,backgroundColor:pw,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ue},pageTextStyle:{color:Ue}},textStyle:{color:Ue},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ue}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ue},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:Ue}},timeline:{lineStyle:{color:Ue},label:{color:Ue},controlStyle:{color:Ue,borderColor:Ue}},calendar:{itemStyle:{color:pw},dayLabel:{color:Ue},monthLabel:{color:Ue},yearLabel:{color:Ue}},timeAxis:hc(),logAxis:hc(),valueAxis:hc(),categoryAxis:hc(),line:{symbol:"circle"},graph:{color:gw},gauge:{title:{color:Ue},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ue},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};V2.categoryAxis.splitLine.show=!1;const dW=V2;var pW=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(nt(t)){var a=On(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){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=e.cptQuery,u=e.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,e.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),wm=["symbol","symbolSize","symbolRotate","symbolOffset"],yw=wm.concat(["symbolKeepAspect"]),gW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<wm.length;o++){var s=wm[o],l=r.get(s);vt(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(F({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=kt(i);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,i[g](v,d))}}return{dataEach:a?f:null}}},yW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<yw.length;s++){var l=yw[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function z_(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Cf(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function B2(r,t,e,n){switch(e){case"color":var i=r.ensureUniqueItemVisual(t,"style");i[r.getVisual("drawType")]=n,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,n);break}}function z2(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}M([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=F({},i),o.dispatchAction(F(i,{type:n[1],seriesIndex:e(a,i)}))})})}function Qo(r,t,e,n,i){var a=r+t;e.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=Co(c,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:Y(h)?c.getName(h[0]):c.getName(h),selected:nt(l)?l:F({},l)})}})}function mW(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(Qo("map","selectchanged",t,i,n),Qo("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Qo("map","selected",t,i,n),Qo("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Qo("map","unselected",t,i,n),Qo("pie","unselected",t,i,n))})}function so(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var _W=Math.round(Math.random()*9),SW=typeof Object.defineProperty=="function",xW=function(){function r(){this._id="__ec_inner_"+_W++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return SW?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();const bW=xW;var wW=Pt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),TW=Pt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),AW=Pt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=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),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-c*v,l+s+h*v,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+c*v,l+s+h*v,e-f,l+s),r.closePath()}}),CW=Pt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),MW={line:Ee,rect:Vt,roundRect:Vt,square:Vt,circle:da,diamond:TW,pin:AW,arrow:CW,triangle:wW},DW={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},jh={};M(MW,function(r,t){jh[t]=new r});var IW=Pt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=Gh(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var i=jh[n];i||(n="rect",i=jh[n]),DW[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function LW(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function me(r,t,e,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=AP(r.slice(8),new Mt(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=id(r.slice(7),{},new Mt(t,e,n,i),o?"center":"cover"):l=new IW({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=LW,a&&l.setColor(a),l}function ul(r){return Y(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Vo(r,t){if(r!=null)return Y(r)||(r=[r,r]),[et(r[0],t[0])||0,et(xt(r[1],r[0]),t[1])||0]}function lo(r){return isFinite(r)}function PW(r,t,e){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*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=lo(n)?n:0,i=lo(i)?i:1,a=lo(a)?a:0,o=lo(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function RW(r,t,e){var n=e.width,i=e.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+e.x,s=s*i+e.y,l=l*a),o=lo(o)?o:.5,s=lo(s)?s:.5,l=l>=0&&lo(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Tm(r,t,e){for(var n=t.type==="radial"?RW(r,t,e):PW(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function EW(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function vc(r){return parseInt(r,10)}function Ss(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||vc(s[n])||vc(r.style[n]))-(vc(s[a])||0)-(vc(s[o])||0)|0}function kW(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Ft(r)?[r]:Y(r)?r:null}function G_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&kW(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=Z(e,function(a){return a/i}),n/=i)}return[e,n]}var OW=new Un(!0);function Jh(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function mw(r){return typeof r=="string"&&r!=="none"}function Qh(r){var t=r.fill;return t!=null&&t!=="none"}function _w(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Sw(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Am(r,t,e){var n=u_(t.image,t.__image,e);if(jv(n)){var i=r.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)*Qc),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function NW(r,t,e,n){var i,a=Jh(e),o=Qh(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||OW,c=t.__dirty;if(!n){var h=e.fill,v=e.stroke,d=o&&!!h.colorStops,p=a&&!!v.colorStops,g=o&&!!h.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(m=c?Tm(r,h,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?Tm(r,v,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?Am(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=c||!t.__canvasStrokePattern?Am(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(x?r.strokeStyle=x:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,A;r.setLineDash&&e.lineDash&&(i=G_(t),T=i[0],A=i[1]);var C=!0;(u||c&vs)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),C=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),C&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=A),n||(e.strokeFirst?(a&&Sw(r,e),o&&_w(r,e)):(o&&_w(r,e),a&&Sw(r,e))),T&&r.setLineDash([])}function VW(r,t,e){var n=t.__image=u_(e.image,t.__image,t,t.onload);if(!(!n||!jv(n))){var i=e.x||0,a=e.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),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,c=o-u,h=s-f;r.drawImage(n,u,f,c,h,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function BW(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||na,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=G_(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Jh(e)&&r.strokeText(i,e.x,e.y),Qh(e)&&r.fillText(i,e.x,e.y)):(Qh(e)&&r.fillText(i,e.x,e.y),Jh(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var xw=["shadowBlur","shadowOffsetX","shadowOffsetY"],bw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function G2(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){dr(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?yo.opacity:o}(n||t.blend!==e.blend)&&(a||(dr(r,i),a=!0),r.globalCompositeOperation=t.blend||yo.blend);for(var s=0;s<xw.length;s++){var l=xw[s];(n||t[l]!==e[l])&&(a||(dr(r,i),a=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(dr(r,i),a=!0),r.shadowColor=t.shadowColor||yo.shadowColor),a}function ww(r,t,e,n,i){var a=Qu(t,i.inHover),o=n?null:e&&Qu(e,i.inHover)||{};if(a===o)return!1;var s=G2(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(dr(r,i),s=!0),mw(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(dr(r,i),s=!0),mw(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(dr(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(dr(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<bw.length;f++){var c=bw[f],h=c[0];(n||a[h]!==o[h])&&(s||(dr(r,i),s=!0),r[h]=a[h]||c[1])}return s}function zW(r,t,e,n,i){return G2(r,Qu(t,i.inHover),e&&Qu(e,i.inHover),n,i)}function F2(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function GW(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),F2(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function FW(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Tw=1,Aw=2,Cw=3,Mw=4;function HW(r){var t=Qh(r),e=Jh(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function dr(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Qu(r,t){return t&&r.__hoverStyle||r.style}function H2(r,t){uo(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function uo(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~br,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||EW(a,o))&&(o&&o.length&&(dr(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(dr(r,e),r.save(),GW(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof Pt&&t.autoBatch&&HW(t.style);s||FW(i,u.transform)?(dr(r,e),F2(r,t)):f||dr(r,e);var c=Qu(t,e.inHover);t instanceof Pt?(e.lastDrawType!==Tw&&(l=!0,e.lastDrawType=Tw),ww(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),NW(r,t,c,f),f&&(e.batchFill=c.fill||"",e.batchStroke=c.stroke||"")):t instanceof $u?(e.lastDrawType!==Cw&&(l=!0,e.lastDrawType=Cw),ww(r,t,u,l,e),BW(r,t,c)):t instanceof He?(e.lastDrawType!==Aw&&(l=!0,e.lastDrawType=Aw),zW(r,t,u,l,e),VW(r,t,c)):t.getTemporalDisplayables&&(e.lastDrawType!==Mw&&(l=!0,e.lastDrawType=Mw),WW(r,t,e)),f&&n&&dr(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function WW(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),uo(r,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(),uo(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Bp=new bW,Dw=new mf(100),Iw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hs(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&Bp.delete(r);var a=Bp.get(r);if(a)return a;var o=pt(r,{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/e,Bp.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],c=!0,h=0;h<Iw.length;++h){var v=o[Iw[h]];if(v!=null&&!Y(v)&&!nt(v)&&!Ft(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(i?"-svg":"");var p=Dw.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=$2(o.dashArrayX),y=$W(o.dashArrayY),m=W2(o.symbol),_=UW(g),S=U2(y),x=!i&&ia.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=A(),T;x&&(x.width=w.width*e,x.height=w.height*e,T=x.getContext("2d")),C(),c&&Dw.put(d,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function A(){for(var D=1,I=0,L=_.length;I<L;++I)D=Yx(D,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=Yx(P,m[I].length);D*=P;var E=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function C(){T&&(T.clearRect(0,0,x.width,x.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,x.width,x.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(D<=0)return;for(var L=-S,P=0,E=0,O=0;L<w.height;){if(P%2===0){for(var V=E/2%m.length,N=0,z=0,$=0;N<w.width*2;){for(var q=0,I=0;I<g[O].length;++I)q+=g[O][I];if(q<=0)break;if(z%2===0){var Q=(1-o.symbolSize)*.5,ct=N+g[O][z]*Q,ht=L+y[P]*Q,gt=g[O][z]*o.symbolSize,Et=y[P]*o.symbolSize,U=$/2%m[V].length;K(ct,ht,gt,Et,m[V][U])}N+=g[O][z],++$,++z,z===g[O].length&&(z=0)}++O,O===g.length&&(O=0)}L+=y[P],++E,++P,P===y.length&&(P=0)}function K(H,tt,j,lt,R){var k=i?1:e,G=me(R,H*k,tt*k,j*k,lt*k,o.color,o.symbolKeepAspect);if(i){var X=n.painter.renderOneToVNode(G);X&&b.children.push(X)}else H2(T,G)}}}}function W2(r){if(!r||r.length===0)return[["rect"]];if(nt(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!nt(r[e])){t=!1;break}if(t)return W2([r]);for(var n=[],e=0;e<r.length;++e)nt(r[e])?n.push([r[e]]):n.push(r[e]);return n}function $2(r){if(!r||r.length===0)return[[0,0]];if(Ft(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!Ft(r[n])){e=!1;break}if(e)return $2([r]);for(var i=[],n=0;n<r.length;++n)if(Ft(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=Z(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function $W(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Ft(r)){var t=Math.ceil(r);return[t,t]}var e=Z(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function UW(r){return Z(r,function(t){return U2(t)})}function U2(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function YW(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Hs(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Hs(i,t)}}})}var ZW=new Zr;const en=ZW;var Y2={};function XW(r,t){Y2[r]=t}function qW(r){return Y2[r]}var KW=1,jW=800,JW=900,QW=1e3,t$=2e3,e$=5e3,Z2=1e3,r$=1100,F_=2e3,X2=3e3,n$=4e3,yd=4500,i$=4600,a$=5e3,o$=6e3,q2=7e3,s$={PROCESSOR:{FILTER:QW,SERIES_FILTER:jW,STATISTIC:e$},VISUAL:{LAYOUT:Z2,PROGRESSIVE_LAYOUT:r$,GLOBAL:F_,CHART:X2,POST_CHART_LAYOUT:i$,COMPONENT:n$,BRUSH:a$,CHART_ITEM:yd,ARIA:o$,DECAL:q2}},$e="__flagInMainProcess",fr="__pendingUpdate",zp="__needsUpdateStatus",Lw=/^[a-zA-Z0-9_]+$/,Gp="__connectUpdateStatus",Pw=0,l$=1,u$=2;function K2(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return J2(this,r,t)}}function j2(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return J2(this,r,t)}}function J2(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Zr.prototype[t].apply(r,e)}var Q2=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Zr),tR=Q2.prototype;tR.on=j2("on");tR.off=j2("off");var ts,Fp,dc,Ri,Hp,Wp,$p,Il,Ll,Rw,Ew,Up,kw,pc,Ow,eR,Lr,Nw,rR=function(r){B(t,r);function t(e,n,i){var a=r.call(this,new pW)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},nt(n)&&(n=nR[n]),a._dom=e;var o="canvas",s="auto",l=!1;i.ssr&&HG(function(h){var v=St(h),d=v.dataIndex;if(d!=null){var p=ft();return p.set("series_index",v.seriesIndex),p.set("data_index",d),v.ssrType&&p.set("ssr_type",v.ssrType),p}});var u=a._zr=Hx(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:xt(i.useDirtyRect,l),useCoarsePointer:xt(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=B_(at(u.flush,u),17),n=mt(n),n&&l2(n,!0),a._theme=n,a._locale=xH(i.locale||OP),a._coordSysMgr=new Af;var f=a._api=Ow(a);function c(h,v){return h.__prio-v.__prio}return rh(ev,c),rh(Cm,c),a._scheduler=new N2(a,f,Cm,ev),a._messageCenter=new Q2,a._initEvents(),a.resize=at(a.resize,a),u.animation.on("frame",a._onframe,a),Rw(u,a),Ew(u,a),Eh(a),a}return t.prototype._onframe=function(){if(!this._disposed){Nw(this);var e=this._scheduler;if(this[fr]){var n=this[fr].silent;this[$e]=!0;try{ts(this),Ri.update.call(this,null,this[fr].updateParams)}catch(l){throw this[$e]=!1,this[fr]=null,l}this._zr.flush(),this[$e]=!1,this[fr]=null,Il.call(this,n),Ll.call(this,n)}else if(e.unfinished){var i=KW,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Wp(this,a),e.performVisualTasks(a),pc(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.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(e,n,i){if(!this[$e]){if(this._disposed){this.id;return}var a,o,s;if(yt(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[$e]=!0,!this._model||n){var l=new QH(this._api),u=this._theme,f=this._model=new a2;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Mm);var c={seriesTransition:s,optionChanged:!0};if(i)this[fr]={silent:a,updateParams:c},this[$e]=!1,this.getZr().wakeUp();else{try{ts(this),Ri.update.call(this,null,c)}catch(h){throw this[fr]=null,this[$e]=!1,h}this._ssr||this._zr.flush(),this[fr]=null,this[$e]=!1,Il.call(this,a),Ll.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||zt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(zt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;M(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(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Vw[i]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(Cu,function(_,S){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(mt(e)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),h.push({dom:x,left:b.left,top:b.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=ia.createCanvas(),y=Hx(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return M(h,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Vt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),M(h,function(_){var S=new He({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Hp(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Hp(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=_u(i,e);return M(o,function(s,l){l.indexOf("Models")>=0&&M(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(e,n){var i=this._model,a=_u(i,e,{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?z_(s,l,n):Cf(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(f$,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&so(s,function(d){var p=St(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=F({},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),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),M(Au,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),M(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),mW(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 e=this.getDom();e&&kL(this.getDom(),W_,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(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 Cu[n.id]},t.prototype.resize=function(e){if(!this[$e]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[fr]&&(a==null&&(a=this[fr].silent),i=!0,this[fr]=null),this[$e]=!0;try{i&&ts(this),Ri.update.call(this,{type:"resize",animation:F({duration:0},e&&e.animation)})}catch(o){throw this[$e]=!1,o}this[$e]=!1,Il.call(this,a),Ll.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(yt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Dm[e]){var i=Dm[e](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(e){var n=F({},e);return n.type=Au[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(yt(n)||(n={silent:!!n}),!!tv[e.type]&&this._model){if(this[$e]){this._pendingActions.push(e);return}var i=n.silent;$p.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&zt.browser.weChat&&this._throttledZrFlush(),Il.call(this,i),Ll.call(this,i)}},t.prototype.updateLabelLayout=function(){en.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ts=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Fp(c,!0),Fp(c,!1),h.plan()},Fp=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(b,w){b!=="series"&&S(w)}):v.eachSeries(S);function S(b){var w=b.__requireNewView;b.__requireNewView=!1;var T="_ec_"+b.id+"_"+b.type,A=!w&&g[T];if(!A){var C=On(b.type),D=h?fe.getClass(C.main,C.sub):ee.getClass(C.sub);A=new D,A.init(v,m),g[T]=A,p.push(A),y.add(A.group)}b.__viewId=A.__id=T,A.__alive=!0,A.__model=b,A.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!h&&d.prepareView(A,b,v,m)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!h&&x.renderTask.dispose(),y.remove(x.group),x.dispose(v,m),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},dc=function(c,h,v,d,p){var g=c._model;if(g.setUpdatePayload(v),!d){M([].concat(c._componentsViews).concat(c._chartsViews),x);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=ft(),M(Zt(_),function(b){var w=xe(b,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!=null;if(!w)if(mb(v))if(b instanceof le)v.type===mo&&!v.notBlur&&!b.get(["emphasis","disabled"])&&v3(b,v,c._api);else{var T=p_(b.mainType,b.componentIndex,v.name,c._api),A=T.focusSelf,C=T.dispatchers;v.type===mo&&A&&!v.notBlur&&lm(b.mainType,b.componentIndex,c._api),C&&M(C,function(D){v.type===mo?mi(D):_i(D)})}else fm(v)&&b instanceof le&&(g3(b,v,c._api),gb(b),Lr(c))},c),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!=null;w||x(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function x(b){b&&b.__alive&&b[h]&&b[h](b.__model,g,c._api,v)}},Ri={prepareAndUpdate:function(c){ts(this),Ri.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(c),y.restoreData(v,c),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,c),Wp(this,v),g.update(v,d),e(v),y.performVisualTasks(v,c),Up(this,v,d,c,h);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),en.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=ft();v.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,c);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),pc(this,v,d,c,{},g),en.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),ee.markUpdateMethod(c,"updateView"),e(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Up(this,h,this._api,c,{}),en.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),ee.markUpdateMethod(c,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),en.trigger("afterupdate",v,this._api))},updateLayout:function(c){Ri.update.call(this,c)}},Hp=function(c,h,v,d){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,m=_u(p,v),_=0;_<g.length;_++){var S=g[_];if(S[h]&&(y=S[h](p,m,d))!=null)return y}},Wp=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},$p=function(c,h){var v=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=tv[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&On(_[0]);this[$e]=!0;var b=[c],w=!1;c.batch&&(w=!0,b=Z(c.batch,function(P){return P=pt(F({},P),c),P.batch=null,P}));var T=[],A,C=fm(c),D=mb(c);if(D&&aP(this._api),M(b,function(P){if(A=y.action(P,v._model,v._api),A=A||F({},P),A.type=m.event||A.type,T.push(A),D){var E=s_(c),O=E.queryOptionMap,V=E.mainTypeSpecified,N=V?O.keys()[0]:"series";dc(v,S,P,N),Lr(v)}else C?(dc(v,S,P,"series"),Lr(v)):x&&dc(v,S,P,x.main,x.sub)}),S!=="none"&&!D&&!C&&!x)try{this[fr]?(ts(this),Ri.update.call(this,c),this[fr]=null):Ri[S].call(this,c)}catch(P){throw this[$e]=!1,P}if(w?A={type:m.event||p,escapeConnect:g,batch:T}:A=T[0],this[$e]=!1,!h){var I=this._messageCenter;if(I.trigger(A.type,A),C){var L={type:"selectchanged",escapeConnect:g,selected:y3(d),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};I.trigger(L.type,L)}}},Il=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();$p.call(this,v,c)}},Ll=function(c){!c&&this.trigger("updated")},Rw=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[fr]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Ew=function(c,h){c.on("mouseover",function(v){var d=v.target,p=so(d,Yu);p&&(d3(p,v,h._api),Lr(h))}).on("mouseout",function(v){var d=v.target,p=so(d,Yu);p&&(p3(p,v,h._api),Lr(h))}).on("click",function(v){var d=v.target,p=so(d,function(m){return St(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=St(p);h._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?v:h).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:b})}),d){var p=h.concat(v),g,y;rh(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),M(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,x=m.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Up=function(c,h,v,d,p){n(h),kw(c,h,v,d,p),M(c._chartsViews,function(g){g.__alive=!1}),pc(c,h,v,d,p),M(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},kw=function(c,h,v,d,p,g){M(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,v,d),s(m,y),f(m,y)})},pc=function(c,h,v,d,p,g){var y=c._scheduler;p=F(p||{},{updatedSeries:h.getSeries()}),en.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,d),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),gb(_)}),y.unfinished=m||y.unfinished,en.trigger("series:layoutlabels",h,v,p),en.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(c,h),en.trigger("series:afterupdate",h,v,p)},Lr=function(c){c[zp]=!0,c.getZr().wakeUp()},Nw=function(c){c[zp]&&(c.getZr().storage.traverse(function(h){Is(h)||i(h)}),c[zp]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===td&&c.states.emphasis?h.push("emphasis"):c.hoverState===xf&&c.states.blur&&h.push("blur"),c.useStates(h)}function a(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!zt.node&&!zt.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],h,v,d),d);else c.z=h,c.zlevel=v,d=Math.max(c.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var S=c.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(c,h){h.eachRendered(function(v){if(!Is(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Is(y))return;if(y instanceof Pt&&b3(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}Ow=function(c){return new(function(h){B(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){mi(d,p),Lr(c)},v.prototype.leaveEmphasis=function(d,p){_i(d,p),Lr(c)},v.prototype.enterBlur=function(d){eP(d),Lr(c)},v.prototype.leaveBlur=function(d){d_(d),Lr(c)},v.prototype.enterSelect=function(d){rP(d),Lr(c)},v.prototype.leaveSelect=function(d){nP(d),Lr(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}(o2))(c)},eR=function(c){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[Gp]=d}}M(Au,function(v,d){c._messageCenter.on(d,function(p){if(Vw[c.group]&&c[Gp]!==Pw){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];M(Cu,function(m){m!==c&&m.group===c.group&&y.push(m)}),h(y,Pw),M(y,function(m){m[Gp]!==l$&&m.dispatchAction(g)}),h(y,u$)}})})}}(),t}(Zr),H_=rR.prototype;H_.on=K2("on");H_.off=K2("off");H_.one=function(r,t,e){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(r,i)}this.on.call(this,r,i,e)};var f$=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var tv={},Au={},Cm=[],Mm=[],ev=[],nR={},Dm={},Cu={},Vw={},c$=+new Date-0,W_="_echarts_instance_";function Kit(r,t,e){var n=!(e&&e.ssr);if(n){var i=h$(r);if(i)return i}var a=new rR(r,t,e);return a.id="ec_"+c$++,Cu[a.id]=a,n&&kL(r,W_,a.id),eR(a),en.trigger("afterinit",a),a}function h$(r){return Cu[lF(r,W_)]}function iR(r,t){nR[r]=t}function $_(r){Dt(Mm,r)<0&&Mm.push(r)}function aR(r,t){Y_(Cm,r,t,t$)}function v$(r){U_("afterinit",r)}function d$(r){U_("afterupdate",r)}function U_(r,t){en.on(r,t)}function Zn(r,t,e){vt(t)&&(e=t,t="");var n=yt(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!Au[t]&&(sr(Lw.test(n)&&Lw.test(t)),tv[n]||(tv[n]={action:e,actionInfo:r}),Au[t]=n)}function p$(r,t){Af.register(r,t)}function g$(r,t){Y_(ev,r,t,Z2,"layout")}function Bo(r,t){Y_(ev,r,t,X2,"visual")}var Bw=[];function Y_(r,t,e,n,i){if((vt(t)||yt(t))&&(e=t,t=n),!(Dt(Bw,e)>=0)){Bw.push(e);var a=N2.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function oR(r,t){Dm[r]=t}function y$(r,t,e){var n=qW("registerMap");n&&n(r,t,e)}var m$=M4;Bo(F_,Q4);Bo(yd,tW);Bo(yd,eW);Bo(F_,gW);Bo(yd,yW);Bo(q2,YW);$_(l2);aR(JW,s4);oR("default",rW);Zn({type:mo,event:mo,update:mo},de);Zn({type:lh,event:lh,update:lh},de);Zn({type:Su,event:Su,update:Su},de);Zn({type:uh,event:uh,update:uh},de);Zn({type:xu,event:xu,update:xu},de);iR("light",vW);iR("dark",dW);var zw=[],_$={registerPreprocessor:$_,registerProcessor:aR,registerPostInit:v$,registerPostUpdate:d$,registerUpdateLifecycle:U_,registerAction:Zn,registerCoordinateSystem:p$,registerLayout:g$,registerVisual:Bo,registerTransform:m$,registerLoading:oR,registerMap:y$,registerImpl:XW,PRIORITY:s$,ComponentModel:Bt,ComponentView:fe,SeriesModel:le,ChartView:ee,registerComponentModel:function(r){Bt.registerClass(r)},registerComponentView:function(r){fe.registerClass(r)},registerSeriesModel:function(r){le.registerClass(r)},registerChartView:function(r){ee.registerClass(r)},registerSubTypeDefaulter:function(r,t){Bt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){GG(r,t)}};function Lt(r){if(Y(r)){M(r,function(t){Lt(t)});return}Dt(zw,r)>=0||(zw.push(r),vt(r)&&(r={install:r}),r.install(_$))}function Pl(r){return r==null?0:r.length||1}function Gw(r){return r}var S$=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Gw,this._newKeyGetter=i||Gw,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,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)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,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 v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=e[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);e[i]=null}},r.prototype._initIndexMap=function(t,e,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),!!e){var l=e[s],u=Pl(l);u===0?(e[s]=o,a&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const Si=S$;var x$=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function b$(r,t){var e={},n=e.encode={},i=ft(),a=[],o=[],s={};M(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;Yp(n,d)[p]=h,v.isExtraCoord||(i.set(d,1),w$(v.type)&&(a[0]=h),Yp(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}jP.each(function(g,y){var m=Yp(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};i.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=Z(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.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,e.userOutput=new x$(s,t),e}function Yp(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function rv(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function w$(r){return!(r==="ordinal"||r==="time")}var T$=function(){function r(t){this.otherDims={},t!=null&&F(this,t)}return r}();const dh=T$;var A$=Nt(),C$={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},sR=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=fR(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return xt(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=f2(this.source),n=!cR(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=e?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=C$[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function lR(r){return r instanceof sR}function uR(r){for(var t=ft(),e=0;e<(r||[]).length;e++){var n=r[e],i=yt(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function fR(r){var t=A$(r);return t.dimNameMap||(t.dimNameMap=uR(r.dimensionsDefine))}function cR(r){return r>30}var Rl=yt,Ei=Z,M$=typeof Int32Array=="undefined"?Array:Int32Array,D$="e\0\0",Fw=-1,I$=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],L$=["_approximateExtent"],Hw,gc,El,kl,Zp,Ol,Xp,P$=function(){function r(t,e){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;lR(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=nt(c)?new dh({name:c}):c instanceof dh?c:new dh(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),a[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ft();M(o,function(g){p.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(Ft(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof _m&&(a=t),!a){var o=this.dimensions,s=R_(t)||Ke(t)?new c2(t,o.length):t;a=new _m;var l=Ei(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=b$(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=e[l],o&&Xp(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==ta&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xr;if(l&&!i.pure)for(var u=[],f=t;f<e;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&qG(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=xe(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=xe(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Xp(this,f);Hw(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Rl(t)?F(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=El(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return gc(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,i=this._store;return Y(t)?i.getValues(Ei(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return i==null||isNaN(i)?Fw:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){vt(t)&&(n=e,e=t,t=[]);var i=n||this,a=Ei(kl(t),this._getStoreDimIndex,this);this._store.each(a,i?at(e,i):e)},r.prototype.filterSelf=function(t,e,n){vt(t)&&(n=e,e=t,t=[]);var i=n||this,a=Ei(kl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?at(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=kt(t);return M(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){vt(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=Ei(kl(t),this._getStoreDimIndex,this),s=Ol(this);return s._store=this._store.map(o,a?at(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=n||i||this,o=Ei(kl(t),this._getStoreDimIndex,this);this._store.modify(o,a?at(e,a):e)},r.prototype.downSample=function(t,e,n,i){var a=Ol(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.minmaxDownSample=function(t,e){var n=Ol(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},r.prototype.lttbDownSample=function(t,e){var n=Ol(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new te(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Si(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return gc(t,n)},function(n){return gc(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Rl(t)?F(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i==null?this.getVisual(e):i},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),Y(a)?a=a.slice():Rl(a)&&(a=F({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Rl(e)?F(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Rl(t)?F(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?F(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;om(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Ei(this.dimensions,this._getDimInfo,this),this.hostModel)),Zp(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];vt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(K0(arguments)))})},r.internalField=function(){Hw=function(t){var e=t._invertedIndicesMap;M(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new M$(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Fw;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},El=function(t,e,n){return xe(t._getCategory(e,n),null)},gc=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=El(t,t._idDimIdx,e)),n==null&&(n=D$+e),n},kl=function(t){return Y(t)||(t=t!=null?[t]:[]),t},Ol=function(t){var e=new r(t._schema?t._schema:Ei(t.dimensions,t._getDimInfo,t),t.hostModel);return Zp(e,t),e},Zp=function(t,e){M(I$.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,M(L$,function(n){t[n]=mt(e[n])}),t._calculationInfo=F({},e._calculationInfo)},Xp=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=i[e];if(s==null&&a!=null&&(n[e]=s=El(t,a,e)),l==null&&o!=null&&(i[e]=l=El(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[e]=l}}}(),r}();const or=P$;function Mf(r,t){R_(r)||(r=E_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=ft(),a=[],o=E$(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&cR(o),l=n===r.dimensionsDefine,u=l?fR(r):uR(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=ft(f),h=new _2(o),v=0;v<h.length;v++)h[v]=-1;function d(A){var C=h[A];if(C<0){var D=n[A],I=yt(D)?D:{name:D},L=new dh,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var E=a.length;return h[A]=E,L.storeDimIndex=A,a.push(L),L}return a[C]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(A,C){var D=Zt(A).slice();if(D.length===1&&!nt(D[0])&&D[0]<0){c.set(C,!1);return}var I=c.set(C,[]);M(D,function(L,P){var E=nt(L)?u.get(L):L;E!=null&&E<o&&(I[P]=E,g(d(E),C,P))})});var p=0;M(e,function(A){var C,D,I,L;if(nt(A))C=A,L={};else{L=A,C=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=F({},L),L.ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=c.get(C);if(E!==!1){if(E=Zt(E),!E.length)for(var O=0;O<(D&&D.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}M(E,function(V,N){var z=d(V);if(l&&L.type!=null&&(z.type=L.type),g(pt(z,L),C,N),z.name==null&&D){var $=D[N];!yt($)&&($={name:$}),z.name=z.displayName=$.name,z.defaultTooltip=$.defaultTooltip}I&&pt(z.otherDims,I)})}});function g(A,C,D){jP.get(C)!=null?A.otherDims[C]=D:(A.coordDim=C,A.coordDimIndex=D,i.set(C,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(A){A.name==null&&(A.name=A.coordDim)}if(s)M(a,function(A){x(A)}),a.sort(function(A,C){return A.storeDimIndex-C.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),T=w.coordDim;T==null&&(w.coordDim=k$(S,i,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),x(w),w.type==null&&(e2(r,b)===Oe.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return R$(a),new sR({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function R$(r){for(var t=ft(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function E$(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return M(t,function(a){var o;yt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function k$(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var O$=function(){function r(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return r}();function N$(r){var t=r.get("coordinateSystem"),e=new O$(t),n=V$[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var V$={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",ge).models[0],a=r.getReferringComponents("yAxis",ge).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),es(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),es(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",ge).models[0];t.coordSysDims=["single"],e.set("single",i),es(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",ge).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),es(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),es(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),es(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function es(r){return r.get("type")==="category"}function B$(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;z$(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(M(a,function(m,_){nt(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;M(a,function(m){m.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function z$(r){return!lR(r.schema)}function la(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function hR(r,t){return la(r,t)?r.getCalculationInfo("stackResultDimension"):t}function G$(r,t){var e=r.get("coordinateSystem"),n=Af.get(e),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=rv(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function F$(r,t,e){var n,i;return e&&M(r,function(a,o){var s=a.coordDim,l=e.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&&(r[n].otherDims.itemName=0),n}function Ai(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=E_(r)):(i=n.getSource(),a=i.sourceFormat===Xr);var o=N$(t),s=G$(t,o),l=e.useEncodeDefaulter,u=vt(l)?l:l?bt(t2,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Mf(i,f),h=F$(c.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=B$(t,{schema:c,store:v}),p=new or(c,t);p.setCalculationInfo(d);var g=h!=null&&H$(i)?function(y,m,_,S){return S===h?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,g),p}function H$(r){if(r.sourceFormat===Xr){var t=W$(r.data||[]);return!Y(Js(t))}}function W$(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var vR=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Kv(vR);const Ci=vR;var $$=0,U$=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++$$}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&Z(n,Y$);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!nt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},r}();function Y$(r){return yt(r)&&r.value!=null?r.value:r+""}const Im=U$;function Lm(r){return r.type==="interval"||r.type==="log"}function Z$(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=CL(a/t,!0);e!=null&&o<e&&(o=i.interval=e),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=dR(o),l=i.niceTickExtent=[ce(Math.ceil(r[0]/o)*o,s),ce(Math.floor(r[1]/o)*o,s)];return X$(l,r),i}function qp(r){var t=Math.pow(10,a_(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ce(e*t)}function dR(r){return kn(r)+2}function Ww(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function X$(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Ww(r,0,t),Ww(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function md(r,t){return r>=t[0]&&r<=t[1]}function _d(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Sd(r,t){return r*(t[1]-t[0])+t[0]}var pR=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Im({})),Y(i)&&(i=new Im({categories:Z(i,function(a){return yt(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:nt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),md(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),_d(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Sd(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.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(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.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(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ci);Ci.registerClass(pR);const Z_=pR;var Ba=ce,gR=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return md(e,this._extent)},t.prototype.normalize=function(e){return _d(e,this._extent)},t.prototype.scale=function(e){return Sd(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=dR(e)},t.prototype.getTicks=function(e){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]&&(e?s.push({value:Ba(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Ba(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:Ba(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){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/e;u<e-1;){var v=Ba(l.value+(u+1)*h);v>a[0]&&v<a[1]&&f.push(v),u++}i.push(f)}return i},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=kn(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Ba(e.value,i,!0);return UP(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=Z$(a,e,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);e.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(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=Ba(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=Ba(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(Ci);Ci.registerClass(gR);const ua=gR;var yR=typeof Float32Array!="undefined",q$=yR?Float32Array:Array;function Nn(r){return Y(r)?yR?new Float32Array(r):r:new q$(r)}var Pm="__ec_stack_";function X_(r){return r.get("stack")||Pm+r.seriesIndex}function q_(r){return r.dim+r.index}function K$(r){var t=[],e=r.axis,n="axis0";if(e.type==="category"){for(var i=e.getBandWidth(),a=0;a<r.count;a++)t.push(pt({bandWidth:i,axisKey:n,stackId:Pm+a},r));for(var o=SR(t),s=[],a=0;a<r.count;a++){var l=o[n][Pm+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function mR(r,t){var e=[];return t.eachSeriesByType(r,function(n){wR(n)&&e.push(n)}),e}function j$(r){var t={};M(r,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,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);t[h]?t[h].push(y):t[h]=[y]}});var e={};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))}e[n]=a}}return e}function _R(r){var t=j$(r),e=[];return M(r,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 v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=et(n.get("barWidth"),s),p=et(n.get("barMaxWidth"),s),g=et(n.get("barMinWidth")||(TR(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:q_(a),stackId:X_(n)})}),SR(e)}function SR(r){var t={};M(r,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 v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=kt(a).length;s=Math.max(35-l*4,15)+"%"}var u=et(s,o),f=et(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),M(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(y.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;M(a,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;M(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function J$(r,t,e){if(r&&t){var n=r[q_(t)];return n!=null&&e!=null?n[X_(e)]:n}}function xR(r,t){var e=mR(r,t),n=_R(e);M(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=X_(i),u=n[q_(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function bR(r){return{seriesType:r,plan:sl(),reset:function(t){if(wR(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),c=la(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=Q$(i,a),d=TR(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var x=_.count,b=d&&Nn(x*3),w=d&&l&&Nn(x*3),T=d&&Nn(x),A=n.master.getRect(),C=h?A.width:A.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(c?g:o,D),E=I.get(s,D),O=v,V=void 0;c&&(V=+P-I.get(o,D));var N=void 0,z=void 0,$=void 0,q=void 0;if(h){var Q=n.dataToPoint([P,E]);if(c){var ct=n.dataToPoint([V,E]);O=ct[0]}N=O,z=Q[1]+m,$=Q[0]-O,q=y,Math.abs($)<p&&($=($<0?-1:1)*p)}else{var Q=n.dataToPoint([E,P]);if(c){var ct=n.dataToPoint([E,V]);O=ct[1]}N=Q[0]+m,z=O,$=y,q=Q[1]-O,Math.abs(q)<p&&(q=(q<=0?-1:1)*p)}d?(b[L]=N,b[L+1]=z,b[L+2]=h?$:q,w&&(w[L]=h?A.x:N,w[L+1]=h?z:A.y,w[L+2]=C),T[D]=D):S.setItemLayout(D,{x:N,y:z,width:$,height:q}),L+=3}d&&S.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function wR(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function TR(r){return r.pipelineContext&&r.pipelineContext.large}function Q$(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var tU=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},AR=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return sd(e.value,Eb[TH(Ps(this._minLevelUnit))]||Eb.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return AH(e,n,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=sU(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Wr,n[1]+=Wr),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]-Wr}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=yc.length,l=Math.min(tU(yc,this._approxInterval,0,s),s-1);this._interval=yc[l][1],this._minLevelUnit=yc[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Ft(e)?e:+$n(e)},t.prototype.contain=function(e){return md(this.parse(e),this._extent)},t.prototype.normalize=function(e){return _d(this.parse(e),this._extent)},t.prototype.scale=function(e){return Sd(e,this._extent)},t.type="time",t}(ua),yc=[["second",A_],["minute",C_],["hour",wu],["quarter-day",wu*6],["half-day",wu*12],["day",Wr*1.2],["half-week",Wr*3.5],["week",Wr*7],["month",Wr*31],["quarter",Wr*95],["half-year",Rb/2],["year",Rb]];function eU(r,t,e,n){var i=$n(t),a=$n(e),o=function(d){return kb(i,d,n)===kb(a,d,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")},v=function(){return h()&&o("millisecond")};switch(r){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 v()}}function rU(r,t){return r/=Wr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function nU(r){var t=30*Wr;return r/=t,r>6?6:r>3?3:r>2?2:1}function iU(r){return r/=wu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function $w(r,t){return r/=t?C_:A_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function aU(r){return CL(r,!0)}function oU(r,t,e){var n=new Date(r);switch(Ps(t)){case"year":case"month":n[zP(e)](0);case"day":n[GP(e)](1);case"hour":n[FP(e)](0);case"minute":n[HP(e)](0);case"second":n[WP(e)](0),n[$P(e)](0)}return n.getTime()}function sU(r,t,e,n){var i=1e4,a=VP,o=0;function s(C,D,I,L,P,E,O){for(var V=new Date(D),N=D,z=V[L]();N<I&&N<=n[1];)O.push({value:N}),z+=C,V[P](z),N=V.getTime();O.push({value:N,notAdd:!0})}function l(C,D,I){var L=[],P=!D.length;if(!eU(Ps(C),n[0],n[1],e)){P&&(D=[{value:oU(new Date(n[0]),C,e)},{value:n[1]}]);for(var E=0;E<D.length-1;E++){var O=D[E].value,V=D[E+1].value;if(O!==V){var N=void 0,z=void 0,$=void 0,q=!1;switch(C){case"year":N=Math.max(1,Math.round(t/Wr/365)),z=M_(e),$=CH(e);break;case"half-year":case"quarter":case"month":N=nU(t),z=Rs(e),$=zP(e);break;case"week":case"half-week":case"day":N=rU(t),z=ld(e),$=GP(e),q=!0;break;case"half-day":case"quarter-day":case"hour":N=iU(t),z=Xu(e),$=FP(e);break;case"minute":N=$w(t,!0),z=ud(e),$=HP(e);break;case"second":N=$w(t,!1),z=fd(e),$=WP(e);break;case"millisecond":N=aU(t),z=cd(e),$=$P(e);break}s(N,O,V,z,$,q,L),C==="year"&&I.length>1&&E===0&&I.unshift({value:I[0].value-N})}}for(var E=0;E<L.length;E++)I.push(L[E]);return L}}for(var u=[],f=[],c=0,h=0,v=0;v<a.length&&o++<i;++v){var d=Ps(a[v]);if(wH(a[v])){l(a[v],u[u.length-1]||[],f);var p=a[v+1]?Ps(a[v+1]):null;if(d!==p){if(f.length){h=c,f.sort(function(C,D){return C.value-D.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(g),c>_||r===a[v]))break}f=[]}}}for(var S=$t(Z(u,function(C){return $t(C,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(C){return C.length>0}),x=[],b=S.length-1,v=0;v<S.length;++v)for(var w=S[v],T=0;T<w.length;++T)x.push({value:w[T].value,level:b-v});x.sort(function(C,D){return C.value-D.value});for(var A=[],v=0;v<x.length;++v)(v===0||x[v].value!==x[v-1].value)&&A.push(x[v]);return A}Ci.registerClass(AR);const CR=AR;var Uw=Ci.prototype,Mu=ua.prototype,lU=ce,uU=Math.floor,fU=Math.ceil,mc=Math.pow,Jr=Math.log,K_=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ua,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Mu.getTicks.call(this,e);return Z(o,function(s){var l=s.value,u=ce(mc(this.base,l));return u=l===i[0]&&this._fixMin?_c(u,a[0]):u,u=l===i[1]&&this._fixMax?_c(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var i=Jr(this.base);e=Jr(Math.max(0,e))/i,n=Jr(Math.max(0,n))/i,Mu.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=Uw.getExtent.call(this);n[0]=mc(e,n[0]),n[1]=mc(e,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=_c(n[0],a[0])),this._fixMax&&(n[1]=_c(n[1],a[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Jr(e[0])/Jr(n),e[1]=Jr(e[1])/Jr(n),Uw.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=XG(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[ce(fU(n[0]/a)*a),ce(uU(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Mu.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Jr(e)/Jr(this.base),md(e,this._extent)},t.prototype.normalize=function(e){return e=Jr(e)/Jr(this.base),_d(e,this._extent)},t.prototype.scale=function(e){return e=Sd(e,this._extent),mc(this.base,e)},t.type="log",t}(Ci),MR=K_.prototype;MR.getMinorTicks=Mu.getMinorTicks;MR.getLabel=Mu.getLabel;function _c(r,t){return lU(r,kn(t))}Ci.registerClass(K_);const cU=K_;var hU=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,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"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;vt(o)?this._modelMinNum=Sc(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Sc(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(vt(s)?this._modelMaxNum=Sc(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Sc(t,s)),i)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=Y(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[dn(u[0],1),dn(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:e-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=Vu(s)||Vu(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[dU[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=vU[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),vU={min:"_determinedMin",max:"_determinedMax"},dU={min:"_dataMin",max:"_dataMax"};function DR(r,t,e){var n=r.rawExtentInfo;return n||(n=new hU(r,t,e),r.rawExtentInfo=n,n)}function Sc(r,t){return t==null?null:Vu(t)?NaN:r.parse(t)}function IR(r,t){var e=r.type,n=DR(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=mR("bar",o),l=!1;if(M(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=_R(s),f=pU(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function pU(r,t,e,n){var i=e.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=J$(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;M(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/a,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Ws(r,t){var e=t,n=IR(r,e),i=n.extent,a=e.get("splitNumber");r instanceof cU&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function xd(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Z_({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new CR({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ci.getClass(t)||ua)}}function gU(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function fl(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):nt(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):vt(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(j_(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function j_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function yU(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof Z_?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=fl(r),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),v=o.getTextRect(h),d=mU(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function mU(r,t){var e=t*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new Mt(r.x,r.y,a,o);return s}function J_(r){var t=r.get("interval");return t==null?"auto":t}function LR(r){return r.type==="category"&&J_(r.getLabelModel())===0}function nv(r,t){var e={};return M(r.mapDimensionsAll(t),function(n){e[hR(r,n)]=!0}),kt(e)}function _U(r,t,e){t&&M(nv(t,e),function(n){var i=t.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var Df=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),SU=1e-8;function Yw(r,t){return Math.abs(r-t)<SU}function ja(r,t,e){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=ei(i[0],i[1],o[0],o[1],t,e),i=o}var s=r[0];return(!Yw(i[0],s[0])||!Yw(i[1],s[1]))&&(n+=ei(i[0],i[1],s[0],s[1],t,e)),n!==0}var xU=[];function Kp(r,t){for(var e=0;e<r.length;e++)Be(r[e],r[e],t)}function Zw(r,t,e,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Ui(t,t,a),Yi(e,e,a))}}function bU(r){for(var t=0,e=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;t+=f,e+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var PR=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),Xw=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),qw=function(){function r(t){this.type="linestring",this.points=t}return r}(),RR=function(r){B(t,r);function t(e,n,i){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,i=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return bU(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Zw(s.exterior,i,a,e):M(s.points,function(l){Zw(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Mt(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(ja(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(ja(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new Mt(e,n,i,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var h=f[c];h.type==="polygon"?(Kp(h.exterior,u),M(h.interiors,function(v){Kp(v,u)})):M(h.points,function(v){Kp(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(PR),wU=function(r){B(t,r);function t(e,n){var i=r.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=Zv(xU),o=e;o&&!o.isGeoSVGGraphicRoot;)li(a,o.getLocalTransform(),a),o=o.parent;return js(a,a),Be(i,i,a),i},t}(PR);function TU(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return M(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=ER(s,o,e);break;case"Polygon":jp(s,o,e);break;case"MultiLineString":jp(s,o,e);break;case"MultiPolygon":M(s,function(l,u){return jp(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function jp(r,t,e){for(var n=0;n<r.length;n++)r[n]=ER(r[n],t[n],e)}function ER(r,t,e){for(var n=[],i=t[0],a=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/e,l/e])}return n}function AU(r,t){return r=TU(r),Z($t(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Xw(o[0],o.slice(1)));break;case"MultiPolygon":M(i.coordinates,function(l){l[0]&&a.push(new Xw(l[0],l.slice(1)))});break;case"LineString":a.push(new qw([i.coordinates]));break;case"MultiLineString":a.push(new qw(i.coordinates))}var s=new RR(n[t||"name"],a,n.cp);return s.properties=n,s})}var tf=Nt();function kR(r,t){var e=Z(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function CU(r){var t=r.getLabelModel().get("customValues");if(t){var e=fl(r),n=r.scale.getExtent(),i=kR(r,t),a=$t(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:Z(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?DU(r):LU(r)}function MU(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),i=kR(r,e);return{ticks:$t(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?IU(r,t):{ticks:Z(r.scale.getTicks(),function(a){return a.value})}}function DU(r){var t=r.getLabelModel(),e=OR(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function OR(r,t){var e=NR(r,"labels"),n=J_(t),i=VR(e,n);if(i)return i;var a,o;return vt(n)?a=GR(r,n):(o=n==="auto"?PU(r):n,a=zR(r,o)),BR(e,n,{labels:a,labelCategoryInterval:o})}function IU(r,t){var e=NR(r,"ticks"),n=J_(t),i=VR(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),vt(n))a=GR(r,n,!0);else if(n==="auto"){var s=OR(r,r.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=zR(r,o,!0);return BR(e,n,{ticks:a,tickCategoryInterval:o})}function LU(r){var t=r.scale.getTicks(),e=fl(r);return{labels:Z(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function NR(r,t){return tf(r)[t]||(tf(r)[t]=[])}function VR(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function BR(r,t,e){return r.push({key:t,value:e}),e}function PU(r){var t=tf(r).autoInterval;return t!=null?t:tf(r).autoInterval=r.calculateCategoryInterval()}function RU(r){var t=EU(r),e=fl(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=r.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=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,p=0,g=_f(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var y=h/f,m=v/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=tf(r.model),x=r.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-_)<=1&&Math.abs(w-o)<=1&&b>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function EU(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function zR(r,t,e){var n=fl(r),i=r.scale,a=i.getExtent(),o=r.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=LR(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);v&&d-l!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function GR(r,t,e){var n=r.scale,i=fl(r),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Kw=[0,1],kU=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return TL(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),jw(n,i.count())),Ut(t,Kw,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),jw(n,i.count()));var a=Ut(t,n,Kw,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=MU(this,e),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return OU(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return CU(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return RU(this)},r}();function jw(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function OU(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;M(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:f[1]+1},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(v,d){return v=ce(v),d=ce(d),c?v>d:v<d}}const yn=kU;var Nl=Math.PI*2,za=Un.CMD,NU=["top","right","bottom","left"];function VU(r,t,e,n,i){var a=e.width,o=e.height;switch(r){case"top":n.set(e.x+a/2,e.y-t),i.set(0,-1);break;case"bottom":n.set(e.x+a/2,e.y+o+t),i.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),i.set(-1,0);break;case"right":n.set(e.x+a+t,e.y+o/2),i.set(1,0);break}}function BU(r,t,e,n,i,a,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,c=s*e+t;if(Math.abs(n-i)%Nl<1e-4)return l[0]=f,l[1]=c,u-e;if(a){var h=n;n=Tr(i),i=Tr(h)}else n=Tr(n),i=Tr(i);n>i&&(i+=Nl);var v=Math.atan2(s,o);if(v<0&&(v+=Nl),v>=n&&v<=i||v+Nl>=n&&v+Nl<=i)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function iv(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function FR(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var rn=[];function zU(r,t,e){var n=FR(t.x,t.y,t.width,t.height,r.x,r.y,rn);return e.set(rn[0],rn[1]),n}function GU(r,t,e){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],i=f[v+1],a=n,o=i);var p=u;switch(d){case za.M:a=f[v++],o=f[v++],n=a,i=o;break;case za.L:p=iv(n,i,f[v],f[v+1],c,h,rn,!0),n=f[v++],i=f[v++];break;case za.C:p=iL(n,i,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,rn),n=f[v++],i=f[v++];break;case za.Q:p=oL(n,i,f[v++],f[v++],f[v],f[v+1],c,h,rn),n=f[v++],i=f[v++];break;case za.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],x=f[v++];v+=1;var b=!!(1-f[v++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,v<=1&&(a=s,o=l);var w=(c-g)*_/m+g;p=BU(g,y,_,S,S+x,b,w,h,rn),n=Math.cos(S+x)*m+g,i=Math.sin(S+x)*_+y;break;case za.R:a=n=f[v++],o=i=f[v++];var T=f[v++],A=f[v++];p=FR(a,o,T,A,c,h,rn);break;case za.Z:p=iv(n,i,a,o,c,h,rn,!0),n=a,i=o;break}p<u&&(u=p,e.set(rn[0],rn[1]))}return u}var on=new Ct,Jt=new Ct,ve=new Ct,Vn=new Ct,En=new Ct;function Jw(r,t){if(r){var e=r.getTextGuideLine(),n=r.getTextContent();if(n&&e){var i=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||NU,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=r.getComputedTransform(),c=f&&js([],f),h=t.get("length2")||0;u&&ve.copy(u);for(var v=0;v<o.length;v++){var d=o[v];VU(d,0,s,on,Vn),Ct.scaleAndAdd(Jt,on,Vn,h),Jt.transform(c);var p=r.getBoundingRect(),g=u?u.distance(Jt):r instanceof Pt?GU(Jt,r.path,ve):zU(Jt,p,ve);g<l&&(l=g,Jt.transform(f),ve.transform(f),ve.toArray(a[0]),Jt.toArray(a[1]),on.toArray(a[2]))}HR(a,t.get("minTurnAngle")),e.setShape({points:a})}}}var av=[],nr=new Ct;function HR(r,t){if(t<=180&&t>0){t=t/180*Math.PI,on.fromArray(r[0]),Jt.fromArray(r[1]),ve.fromArray(r[2]),Ct.sub(Vn,on,Jt),Ct.sub(En,ve,Jt);var e=Vn.len(),n=En.len();if(!(e<.001||n<.001)){Vn.scale(1/e),En.scale(1/n);var i=Vn.dot(En),a=Math.cos(t);if(a<i){var o=iv(Jt.x,Jt.y,ve.x,ve.y,on.x,on.y,av,!1);nr.fromArray(av),nr.scaleAndAdd(En,o/Math.tan(Math.PI-t));var s=ve.x!==Jt.x?(nr.x-Jt.x)/(ve.x-Jt.x):(nr.y-Jt.y)/(ve.y-Jt.y);if(isNaN(s))return;s<0?Ct.copy(nr,Jt):s>1&&Ct.copy(nr,ve),nr.toArray(r[1])}}}}function FU(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,on.fromArray(r[0]),Jt.fromArray(r[1]),ve.fromArray(r[2]),Ct.sub(Vn,Jt,on),Ct.sub(En,ve,Jt);var n=Vn.len(),i=En.len();if(!(n<.001||i<.001)){Vn.scale(1/n),En.scale(1/i);var a=Vn.dot(t),o=Math.cos(e);if(a<o){var s=iv(Jt.x,Jt.y,ve.x,ve.y,on.x,on.y,av,!1);nr.fromArray(av);var l=Math.PI/2,u=Math.acos(En.dot(t)),f=l+u-e;if(f>=l)Ct.copy(nr,ve);else{nr.scaleAndAdd(En,s/Math.tan(Math.PI/2-f));var c=ve.x!==Jt.x?(nr.x-Jt.x)/(ve.x-Jt.x):(nr.y-Jt.y)/(ve.y-Jt.y);if(isNaN(c))return;c<0?Ct.copy(nr,Jt):c>1&&Ct.copy(nr,ve)}nr.toArray(r[1])}}}}function Jp(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);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?r.useStyle(s):a.style=s}function HU(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=$i(n[0],n[1]),a=$i(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=eh([],n[1],n[0],o/i),l=eh([],n[1],n[2],o/a),u=eh([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function Q_(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Uu.length;l++){var u=Uu[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:xt(i.states[u]&&i.states[u].ignore,s);if(v||!xt(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Jp(n,!0,u,f);continue}n||(n=new mr,r.setTextGuideLine(n),!c&&(s||!o)&&Jp(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Jp(n,!1,u,f)}}if(n){pt(n.style,e),n.style.fill=null;var p=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=HU}}function t1(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<lr.length;n++){var i=lr[n];e[i]=r.getModel([i,t])}return e}function WR(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];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 Wh(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 $R(r,t,e,n,i,a){var o=r.length;if(o<2)return;r.sort(function(T,A){return T.rect[t]-A.rect[t]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var h=r[c],v=h.rect;l=v[t]-s,l<0&&(v[t]-=l,h.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[t]+v[e]}f>0&&a&&x(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=p.rect[t]-n,m=i-g.rect[t]-g.rect[e]}function S(T,A,C){if(T<0){var D=Math.min(A,-T);if(D>0){x(D*C,0,o);var I=D+T;I<0&&b(-I*C,1)}else b(-T*C,1)}}function x(T,A,C){T!==0&&(u=!0);for(var D=A;D<C;D++){var I=r[D],L=I.rect;L[t]+=T,I.label[t]+=T}}function b(T,A){for(var C=[],D=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[t]-L[t]-L[e],0);C.push(P),D+=P}if(D){var E=Math.min(Math.abs(T)/D,A);if(T>0)for(var I=0;I<o-1;I++){var O=C[I]*E;x(O,0,I+1)}else for(var I=o-1;I>0;I--){var O=C[I-1]*E;x(-O,I,o)}}}function w(T){var A=T<0?-1:1;T=Math.abs(T);for(var C=Math.ceil(T/(o-1)),D=0;D<o-1;D++)if(A>0?x(C,0,D+1):x(-C,o-D-1,o),T-=C,T<=0)return}return u}function WU(r,t,e,n){return $R(r,"x","width",t,e,n)}function UR(r,t,e,n){return $R(r,"y","height",t,e,n)}function YR(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Mt(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var c=a.obb,h=!1,v=0;v<t.length;v++){var d=t[v];if(e.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new Wh(d.localRect,d.transform)),c||(c=new Wh(s,l)),c.intersect(d.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 $U(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function UU(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:$U(n&&n.shape.points)}}var Qw=["align","verticalAlign","width","height","fontSize"],Je=new ai,Qp=Nt(),YU=Nt();function xc(r,t,e){for(var n=0;n<e.length;n++){var i=e[n];t[i]!=null&&(r[i]=t[i])}}var bc=["x","y","rotation"],ZU=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();Mt.applyTransform(f,f,u),u?Je.setLocalTransform(u):(Je.x=Je.y=Je.rotation=Je.originX=Je.originY=0,Je.scaleX=Je.scaleY=1),Je.rotation=Tr(Je.rotation);var c=i.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Mt.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Je.x,y:Je.y,scaleX:Je.scaleX,scaleY:Je.scaleY,rotation:Je.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}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(vt(i)||kt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=St(a);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,i)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(_,S){return function(){Jw(_,S)}}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;vt(o.layoutOption)?f=o.layoutOption(UU(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=et(f.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=et(f.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=Qp(s);d.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<Qw.length;p++){var g=Qw[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=WR(this._labelList),a=$t(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=$t(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});WU(a,0,e),UR(o,0,n);var s=$t(i,function(l){return l.layoutOption.hideOverlap});YR(s)},r.prototype.processLabelsOverall=function(){var t=this;M(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,a=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=Qp(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=St(t),a=i.dataIndex;if(n&&a!=null){var o=e.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");Q_(t,t1(s),l),Jw(t,c)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Is(t))){var a=Qp(n),o=a.oldLayout,s=St(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(Dt(h,"select")>=0&&n.attr(a.oldLayoutSelect),Dt(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Ht(n,u,e,l)}else if(n.attr(u),!el(n).valueAnimation){var c=xt(n.style.opacity,1);n.style.opacity=0,ae(n,{style:{opacity:c}},e,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};xc(v,u,bc),xc(v,n.states.select,bc)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};xc(d,u,bc),xc(d,n.states.emphasis,bc)}RP(n,l,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=YU(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Ht(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,ae(i,{style:{strokePercent:1}},e)),a.oldLayout=p}},r}();const XU=ZU;var tg=Nt();function qU(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=tg(e).labelManager;i||(i=tg(e).labelManager=new XU),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=tg(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var eg=Math.sin,rg=Math.cos,ZR=Math.PI,Ga=Math.PI*2,KU=180/ZR,jU=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){this._add("C",t,e,n,i,a,o)},r.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},r.prototype.arc=function(t,e,n,i,a,o){this.ellipse(t,e,n,n,0,i,a,o)},r.prototype.ellipse=function(t,e,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=qi(c-Ga)||(f?u>=Ga:-u>=Ga),v=u>0?u%Ga:u%Ga+Ga,d=!1;h?d=!0:qi(c)?d=!1:d=v>=ZR==!!f;var p=t+n*rg(o),g=e+i*eg(o);this._start&&this._add("M",p,g);var y=Math.round(a*KU);if(h){var m=1/this._p,_=(f?1:-1)*(Ga-m);this._add("A",n,i,y,1,+f,t+n*rg(o+_),e+i*eg(o+_)),m>.01&&this._add("A",n,i,y,0,+f,p,g)}else{var S=t+n*rg(s),x=e+i*eg(s);this._add("A",n,i,y,+d,+f,S,x)}},r.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,i,a,o,s,l,u){for(var f=[],c=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*c)/c)}this._d.push(t+f.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const XR=jU;var Du="none",JU=Math.round;function QU(r){var t=r.fill;return t!=null&&t!==Du}function t6(r){var t=r.stroke;return t!=null&&t!==Du}var Rm=["lineCap","miterLimit","lineJoin"],e6=Z(Rm,function(r){return"stroke-"+r.toLowerCase()});function r6(r,t,e,n){var i=t.opacity==null?1:t.opacity;if(e instanceof He){r("opacity",i);return}if(QU(t)){var a=Fu(t.fill);r("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&r("fill-opacity",o)}else r("fill",Du);if(t6(t)){var s=Fu(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,c=t.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||c)&&r("paint-order",c?"stroke":"fill"),(n||f<1)&&r("stroke-opacity",f),t.lineDash){var h=G_(e),v=h[0],d=h[1];v&&(d=JU(d||0),r("stroke-dasharray",v.join(",")),(d||n)&&r("stroke-dashoffset",d))}else n&&r("stroke-dasharray",Du);for(var p=0;p<Rm.length;p++){var g=Rm[p];if(n||t[g]!==Fh[g]){var y=t[g]||Fh[g];y&&r(e6[p],y)}}}else n&&r("stroke",Du)}var qR="http://www.w3.org/2000/svg",KR="http://www.w3.org/1999/xlink",n6="http://www.w3.org/2000/xmlns/",i6="http://www.w3.org/XML/1998/namespace",tT="ecmeta_";function jR(r){return document.createElementNS(qR,r)}function Ce(r,t,e,n,i){return{tag:r,attrs:e||{},children:n,text:i,key:t}}function a6(r,t){var e=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),e.push(a))}return"<"+r+" "+e.join(" ")+">"}function o6(r){return"</"+r+">"}function e1(r,t){t=t||{};var e=t.newline?`
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return a6(o,s)+(o!=="style"?qe(l):l||"")+(a?""+e+Z(a,function(u){return n(u)}).join(e)+e:"")+o6(o)}return n(r)}function s6(r,t,e){e=e||{};var n=e.newline?`
`:"",i=" {"+n,a=n+"}",o=Z(kt(r),function(l){return l+i+Z(kt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+a}).join(n),s=Z(kt(t),function(l){return"@keyframes "+l+i+Z(kt(t[l]),function(u){return u+i+Z(kt(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Em(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function eT(r,t,e,n){return Ce("svg","root",{width:r,height:t,xmlns:qR,"xmlns:xlink":KR,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var l6=0;function JR(){return l6++}var rT={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$a="transform-origin";function u6(r,t,e){var n=F({},r.shape);F(n,t),r.buildPath(e,n);var i=new XR;return i.reset(vL(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function f6(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[$a]=e+"px "+n+"px")}var c6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function QR(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function h6(r,t,e){var n=r.shape.paths,i={},a,o;if(M(n,function(l){var u=Em(e.zrId);u.animation=!0,bd(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=kt(f),v=h.length;if(v){o=h[v-1];var d=f[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=QR(i,e);return a.replace(o,s)}}function nT(r){return nt(r)?rT[r]?"cubic-bezier("+rT[r]+")":e_(r)?r:"":""}function bd(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof __){var s=h6(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],c=[f.getMaxTime()/1e3+"s"],h=nT(f.getClip().easing),v=f.getDelay();h?c.push(h):c.push("linear"),v&&c.push(v/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,x={},b={},w={},T="animation-timing-function";function A(K,H,tt){for(var j=K.getTracks(),lt=K.getMaxTime(),R=0;R<j.length;R++){var k=j[R];if(k.needsAnimate()){var G=k.keyframes,X=k.propName;if(tt&&(X=tt(X)),X)for(var W=0;W<G.length;W++){var J=G[W],ot=Math.round(J.time/lt*100)+"%",ut=nT(J.easing),it=J.rawValue;(nt(it)||Ft(it))&&(H[ot]=H[ot]||{},H[ot][X]=J.rawValue,ut&&(H[ot][T]=ut))}}}}for(var C=0;C<S;C++){var D=_[C],I=D.targetName;I?I==="shape"&&A(D,b):!n&&A(D,x)}for(var L in x){var P={};mL(P,r),F(P,x[L]);var E=dL(P),O=x[L][T];w[L]=E?{transform:E}:{},f6(w[L],P),O&&(w[L][T]=O)}var V,N=!0;for(var L in b){w[L]=w[L]||{};var z=!V,O=b[L][T];z&&(V=new Un);var $=V.len();V.reset(),w[L].d=u6(r,b[L],V);var q=V.len();if(!z&&$!==q){N=!1;break}O&&(w[L][T]=O)}if(!N)for(var L in w)delete w[L].d;if(!n)for(var C=0;C<S;C++){var D=_[C],I=D.targetName;I==="style"&&A(D,w,function(j){return c6[j]})}for(var Q=kt(w),ct=!0,ht,C=1;C<Q.length;C++){var gt=Q[C-1],Et=Q[C];if(w[gt][$a]!==w[Et][$a]){ct=!1;break}ht=w[gt][$a]}if(ct&&ht){for(var L in w)w[L][$a]&&delete w[L][$a];t[$a]=ht}if($t(Q,function(K){return kt(w[K]).length>0}).length){var U=QR(w,e);return U+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+JR();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function v6(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};iT(n,t,e,!0)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=i.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(a=Uy(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),iT(n,t,e,!0)}}function iT(r,t,e,n){var i=JSON.stringify(r),a=e.cssStyleCache[i];a||(a=e.zrId+"-cls-"+JR(),e.cssStyleCache[i]=a,e.cssNodes["."+a+(n?":hover":"")]=r),t.class=t.class?t.class+" "+a:a}var ef=Math.round;function tE(r){return r&&nt(r.src)}function eE(r){return r&&vt(r.toDataURL)}function r1(r,t,e,n){r6(function(i,a){var o=i==="fill"||i==="stroke";o&&hL(a)?nE(t,r,i,n):o&&r_(a)?iE(e,r,i,n):r[i]=a,o&&n.ssr&&a==="none"&&(r["pointer-events"]="visible")},t,e,!1),S6(e,r,n)}function n1(r,t){var e=FG(t);e&&(e.each(function(n,i){n!=null&&(r[(tT+i).toLowerCase()]=n+"")}),t.isSilent()&&(r[tT+"silent"]="true"))}function aT(r){return qi(r[0]-1)&&qi(r[1])&&qi(r[2])&&qi(r[3]-1)}function d6(r){return qi(r[4])&&qi(r[5])}function i1(r,t,e){if(t&&!(d6(t)&&aT(t))){var n=e?10:1e4;r.transform=aT(t)?"translate("+ef(t[4]*n)/n+" "+ef(t[5]*n)/n+")":sG(t)}}function oT(r,t,e){for(var n=r.points,i=[],a=0;a<n.length;a++)i.push(ef(n[a][0]*e)/e),i.push(ef(n[a][1]*e)/e);t.points=i.join(" ")}function sT(r){return!r.smooth}function p6(r){var t=Z(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=e[o[0]];s!=null&&(n[o[1]]=ef(s*i)/i)}}}var g6={circle:[p6(["cx","cy","r"])],polyline:[oT,sT],polygon:[oT,sT]};function y6(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function rE(r,t){var e=r.style,n=r.shape,i=g6[r.type],a={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&vL(r)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&y6(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var c=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;c&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var v=h.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==v||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new XR),p.reset(u),h.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),a.d=p.getStr()}return i1(a,r.transform),r1(a,e,r,t),n1(a,r),t.animation&&bd(r,a,t),t.emphasis&&v6(r,a,t),Ce(s,r.id+"",a)}function m6(r,t){var e=r.style,n=e.image;if(n&&!nt(n)&&(tE(n)?n=n.src:eE(n)&&(n=n.toDataURL())),!!n){var i=e.x||0,a=e.y||0,o=e.width,s=e.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),i1(l,r.transform),r1(l,e,r,t),n1(l,r),t.animation&&bd(r,l,t),Ce("image",r.id+"",l)}}function _6(r,t){var e=r.style,n=e.text;if(n!=null&&(n+=""),!(!n||isNaN(e.x)||isNaN(e.y))){var i=e.font||na,a=e.x||0,o=uG(e.y||0,qv(i),e.textBaseline),s=lG[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(KL(e)){var u="",f=e.fontStyle,c=qL(e.fontSize);if(!parseFloat(c))return;var h=e.fontFamily||FI,v=e.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),i1(l,r.transform),r1(l,e,r,t),n1(l,r),t.animation&&bd(r,l,t),Ce("text",r.id+"",l,void 0,n)}}function lT(r,t){if(r instanceof Pt)return rE(r,t);if(r instanceof He)return m6(r,t);if(r instanceof $u)return _6(r,t)}function S6(r,t,e){var n=r.style;if(fG(n)){var i=cG(r),a=e.shadowCache,o=a[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,h=n.shadowBlur,v=Fu(n.shadowColor),d=v.opacity,p=v.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=Ce("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ce("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),a[i]=o}t.filter=Xv(o)}}function nE(r,t,e,n){var i=r[e],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(fL(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(cL(i))a="radialGradient",o.cx=xt(i.x,.5),o.cy=xt(i.y,.5),o.r=xt(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Yy(s[u].offset)*100+"%",h=s[u].color,v=Fu(h),d=v.color,p=v.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Ce("stop",u+"",g))}var y=Ce(a,"",o,l),m=e1(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=Ce(a,S,o,l)),t[e]=Xv(S)}function iE(r,t,e,n){var i=r.style[e],a=r.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(uL(i)){var h=i.imageWidth,v=i.imageHeight,d=void 0,p=i.image;if(nt(p)?d=p:tE(p)?d=p.src:eE(p)&&(d=p.toDataURL()),typeof Image=="undefined"){var g="Image width/height must been given explictly in svg-ssr renderer.";sr(h,g),sr(v,g)}else if(h==null||v==null){var y=function(C,D){if(C){var I=C.elm,L=h||D.width,P=v||D.height;C.tag==="pattern"&&(u?(P=1,L/=a.width):f&&(L=1,P/=a.height)),C.attrs.width=L,C.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=u_(d,null,r,function(C){l||y(b,C),y(c,C)});m&&m.width&&m.height&&(h=h||m.width,v=v||m.height)}c=Ce("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else i.svgElement&&(c=mt(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var x=dL(i);x&&(o.patternTransform=x);var b=Ce("pattern","",o,[c]),w=e1(b),T=n.patternCache,A=T[w];A||(A=n.zrId+"-p"+n.patternIdx++,T[w]=A,o.id=A,b=n.defs[A]=Ce("pattern",A,o,[c])),t[e]=Xv(A)}}function x6(r,t,e){var n=e.clipPathCache,i=e.defs,a=n[r.id];if(!a){a=e.zrId+"-c"+e.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=Ce("clipPath",a,o,[rE(r,e)])}t["clip-path"]=Xv(a)}function uT(r){return document.createTextNode(r)}function Ja(r,t,e){r.insertBefore(t,e)}function fT(r,t){r.removeChild(t)}function cT(r,t){r.appendChild(t)}function aE(r){return r.parentNode}function oE(r){return r.nextSibling}function ng(r,t){r.textContent=t}var hT=58,b6=120,w6=Ce("","");function km(r){return r===void 0}function Dn(r){return r!==void 0}function T6(r,t,e){for(var n={},i=t;i<=e;++i){var a=r[i].key;a!==void 0&&(n[a]=i)}return n}function eu(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function rf(r){var t,e=r.children,n=r.tag;if(Dn(n)){var i=r.elm=jR(n);if(a1(w6,r),Y(e))for(t=0;t<e.length;++t){var a=e[t];a!=null&&cT(i,rf(a))}else Dn(r.text)&&!yt(r.text)&&cT(i,uT(r.text))}else r.elm=uT(r.text);return r.elm}function sE(r,t,e,n,i){for(;n<=i;++n){var a=e[n];a!=null&&Ja(r,rf(a),t)}}function ov(r,t,e,n){for(;e<=n;++e){var i=t[e];if(i!=null)if(Dn(i.tag)){var a=aE(i.elm);fT(a,i.elm)}else fT(r,i.elm)}}function a1(r,t){var e,n=t.elm,i=r&&r.attrs||{},a=t.attrs||{};if(i!==a){for(e in a){var o=a[e],s=i[e];s!==o&&(o===!0?n.setAttribute(e,""):o===!1?n.removeAttribute(e):e==="style"?n.style.cssText=o:e.charCodeAt(0)!==b6?n.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?n.setAttributeNS(n6,e,o):e.charCodeAt(3)===hT?n.setAttributeNS(i6,e,o):e.charCodeAt(5)===hT?n.setAttributeNS(KR,e,o):n.setAttribute(e,o))}for(e in i)e in a||n.removeAttribute(e)}}function A6(r,t,e){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=e.length-1,u=e[0],f=e[l],c,h,v,d;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=e[++i]:f==null?f=e[--l]:eu(o,u)?(ps(o,u),o=t[++n],u=e[++i]):eu(s,f)?(ps(s,f),s=t[--a],f=e[--l]):eu(o,f)?(ps(o,f),Ja(r,o.elm,oE(s.elm)),o=t[++n],f=e[--l]):eu(s,u)?(ps(s,u),Ja(r,s.elm,o.elm),s=t[--a],u=e[++i]):(km(c)&&(c=T6(t,n,a)),h=c[u.key],km(h)?Ja(r,rf(u),o.elm):(v=t[h],v.tag!==u.tag?Ja(r,rf(u),o.elm):(ps(v,u),t[h]=void 0,Ja(r,v.elm,o.elm))),u=e[++i]);(n<=a||i<=l)&&(n>a?(d=e[l+1]==null?null:e[l+1].elm,sE(r,d,e,i,l)):ov(r,t,n,a))}function ps(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(a1(r,t),km(t.text)?Dn(n)&&Dn(i)?n!==i&&A6(e,n,i):Dn(i)?(Dn(r.text)&&ng(e,""),sE(e,null,i,0,i.length-1)):Dn(n)?ov(e,n,0,n.length-1):Dn(r.text)&&ng(e,""):r.text!==t.text&&(Dn(n)&&ov(e,n,0,n.length-1),ng(e,t.text)))}function C6(r,t){if(eu(r,t))ps(r,t);else{var e=r.elm,n=aE(e);rf(t),n!==null&&(Ja(n,t.elm,oE(e)),ov(n,[r],0,0))}return t}var M6=0,D6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=vT(),this.configLayer=vT(),this.storage=e,this._opts=n=F({},n),this.root=t,this._id="zr"+M6++,this._oldVNode=eT(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=jR("svg");a1(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",C6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return lT(t,Em(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Em(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=I6(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Ce("g","main",{},[]);this._paintList(e,a,l?l.children:o),l&&o.push(l);var u=Z(kt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Ce("defs","defs",{},u)),t.animation){var f=s6(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Ce("style","stl",{},[],f);o.push(c)}}return eT(n,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},e1(this.renderToVNode({animation:xt(t.cssAnimation,!0),emphasis:xt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:xt(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var i=t.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var c=t[f];if(!c.invisible){var h=c.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=a[o-1];for(var y=p+1;y<v;y++){var m={};x6(h[y],m,e);var _=Ce("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=h;var S=lT(c,e);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(t,e){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),e!=null&&(n.height=e),i&&a&&(a.style.display="none",t=Ss(i,0,n),e=Ss(i,1,n),a.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,a){var o=a.style;o.width=t+"px",o.height=e+"px"}if(r_(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=vG(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},r}();function vT(r){return function(){}}function I6(r,t,e,n){var i;if(e&&e!=="none")if(i=Ce("rect","bg",{width:r,height:t,x:"0",y:"0"}),hL(e))nE({fill:e},i.attrs,"fill",n);else if(r_(e))iE({style:{fill:e},dirty:de,getBoundingRect:function(){return{width:r,height:t}}},i.attrs,"fill",n);else{var a=Fu(e),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}const L6=D6;function P6(r){r.registerPainter("svg",L6)}function dT(r,t,e){var n=ia.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",r)),n.width=i*e,n.height=a*e,n}var R6=function(r){B(t,r);function t(e,n,i){var a=r.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||zh,typeof e=="string"?o=dT(e,n,i):yt(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(ZI(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 e=this.dpr;this.domBack=dT("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Mt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new Mt(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,x=1/0,b=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var A=new Mt(0,0,0,0);A.copy(T),A.union(m),o[w]=A,S=!0;break}else if(l){u.copy(m),u.union(T);var C=m.width*m.height,D=T.width*T.height,I=u.width*u.height,L=I-C-D;L<x&&(x=L,b=w)}}if(l&&(o[b].union(m),S=!0),!S){var _=new Mt(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=e[c];if(h){var v=h.shouldBePainted(i,a,!0,!0),d=h.__isRendered&&(h.__dirty&br||!v)?h.getPrevPaintRect():null;d&&f(d);var p=v&&(h.__dirty&br||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],v=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var y=c+1;y<o.length;)o[c].intersect(o[y])?(g=!0,o[c].union(o[y]),o.splice(y,1)):y++;c++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!e,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 v=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(Uv(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||Tm(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else v5(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Am(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,p,g,y,m),o.restore())}!i||u?d(0,0,s,l):i.length&&M(i,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(Zr);const ig=R6;var pT=1e5,Fa=314159,wc=.01,E6=.001;function k6(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function O6(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var N6=function(){function r(t,e,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=F({},n||{}),this.dpr=n.devicePixelRatio||zh,this._singleCanvas=a,this.root=t;var o=t.style;o&&(ZI(t),t.innerHTML=""),this.storage=e;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 v=new ig(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Fa]=v,v.zlevel=Fa,s.push(Fa),this._domRoot=t}else{this._width=Ss(t,0,n),this._height=Ss(t,1,n);var u=this._domRoot=O6(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,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=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(pT)),a||(a=n.ctx,a.save()),uo(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(pT)},r.prototype.paintOne=function(t,e){H2(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,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;Gy(function(){l._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Fa).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,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 g=a[p],y=g.ctx,m=o&&g.createRepaintRects(t,e,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,x=S&&Date.now(),b=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,m);else if(_===g.__startIndex){var w=t[_];(!w.incremental||!w.notClear||n)&&g.clear(!1,b,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,A=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<g.__endIndex;T++){var E=t[T];if(E.__inHover&&(c=!0),i._doPaintEl(E,g,o,L,P,T===g.__endIndex-1),S){var O=Date.now()-x;if(O>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var C=v.dpr,D=0;D<m.length;++D){var I=m[D];y.save(),y.beginPath(),y.rect(I.x*C,I.y*C,I.width*C,I.height*C),y.clip(),A(I),y.restore()}else y.save(),A(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)h(d);return zt.wxa&&M(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(uo(s,t,a,o),t.setPrevPaintRect(l))}else uo(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Fa);var n=this._layers[t];return n||(n=new ig("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Tt(n,this._layerConfig[t],!0):this._layerConfig[t-wc]&&Tt(n,this._layerConfig[t-wc],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&k6(e)){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]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function e(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+E6,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?wc:0),this._needsManuallyCompositing),f.__builtin__||X0("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,e(l),a=f),i.__dirty&br&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(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)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Tt(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+wc){var o=this._layers[a];Tt(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(Dt(n,t),1))},r.prototype.resize=function(t,e){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),e!=null&&(i.height=e),t=Ss(a,0,i),e=Ss(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Fa).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Fa].dom;var e=new ig("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.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];uo(n,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const V6=N6;function B6(r){r.registerPainter("canvas",V6)}var z6=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return Ai(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new _t,i=me("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=me(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(le);const G6=z6;function $s(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Fs(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(Fs(r,t,e[o]));return a.join(" ")}}function lE(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!Y(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}var F6=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=me(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=H6,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){mi(this.childAt(0))},t.prototype.downplay=function(){_i(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):Ht(h,v,s,n),pn(h)}if(this._updateCommon(e,n,l,i,a),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ae(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=De(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Vo(e.getItemVisual(n,"symbolOffset"),i);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(n,"style"),w=b.fill;if(s instanceof He){var T=s.style;s.useStyle(F({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(F({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(n,"liftZ"),C=this._z2;A!=null?C==null&&(this._z2=s.z2,s.z2+=A):C!=null&&(s.z2=C,this._z2=null);var D=o&&o.useNameLabel;Fe(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(E){return D?e.getName(E):$s(e,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),ue(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=St(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&oa(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();oa(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return ul(e.getItemVisual(n,"symbolSize"))},t}(_t);function H6(r,t){this.parent.drift(r,t)}const If=F6;function ag(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function gT(r){return r!=null&&!yt(r)&&(r={isIgnore:r}),r||{}}function yT(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:De(t),cursorStyle:t.get("cursor")}}var W6=function(){function r(t){this.group=new _t,this._SymbolCtor=t||If}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=gT(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=yT(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var h=f(c);if(ag(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!ag(t,d,c,e)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):Ht(v,y,i)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yT(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=gT(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(ag(e,o,a,n)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){pa(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},n.hostModel)}):e.removeAll()},r}();const Lf=W6;function uE(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=$6(i,e),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=Z(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return la(t,c[0])&&(h=!0,c[0]=v),la(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function $6(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:Ft(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function fE(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function U6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function Y6(r,t,e,n,i,a,o,s){for(var l=U6(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=uE(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,b=void 0,w=void 0;switch(S.cmd){case"=":b=S.idx*2,w=S.idx1*2;var T=y[b],A=y[b+1],C=m[w],D=m[w+1];(isNaN(T)||isNaN(A))&&(T=C,A=D),u.push(T,A),f.push(C,D),c.push(e[b],e[b+1]),h.push(n[w],n[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=i.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);w=I*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var E=fE(g,i,t,I);c.push(E[0],E[1]),h.push(n[w],n[w+1]),p.push(t.getRawIndex(I));break;case"-":x=!1}x&&(v.push(S),d.push(d.length))}d.sort(function(gt,Et){return p[gt]-p[Et]});for(var O=u.length,V=Nn(O),N=Nn(O),z=Nn(O),$=Nn(O),q=[],_=0;_<d.length;_++){var Q=d[_],ct=_*2,ht=Q*2;V[ct]=u[ht],V[ct+1]=u[ht+1],N[ct]=f[ht],N[ct+1]=f[ht+1],z[ct]=c[ht],z[ct+1]=c[ht+1],$[ct]=h[ht],$[ct+1]=h[ht+1],q[_]=v[Q]}return{current:V,next:N,stackedOnCurrent:z,stackedOnNext:$,status:q}}var ki=Math.min,Oi=Math.max;function bo(r,t){return isNaN(r)||isNaN(t)}function Om(r,t,e,n,i,a,o,s,l){for(var u,f,c,h,v,d,p=e,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=i||p<0)break;if(bo(y,m)){if(l){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](y,m),c=y,h=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var x=p+a,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g<n;)g++,x+=a,p+=a,b=t[x*2],w=t[x*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;bo(b,w)&&T<n;)T++,x+=a,b=t[x*2],w=t[x*2+1];var A=.5,C=0,D=0,I=void 0,L=void 0;if(T>=n||bo(b,w))v=y,d=m;else{C=b-u,D=w-f;var P=y-u,E=b-y,O=m-f,V=w-m,N=void 0,z=void 0;if(s==="x"){N=Math.abs(P),z=Math.abs(E);var $=C>0?1:-1;v=y-$*N*o,d=m,I=y+$*z*o,L=m}else if(s==="y"){N=Math.abs(O),z=Math.abs(V);var q=D>0?1:-1;v=y,d=m-q*N*o,I=y,L=m+q*z*o}else N=Math.sqrt(P*P+O*O),z=Math.sqrt(E*E+V*V),A=z/(z+N),v=y-C*o*(1-A),d=m-D*o*(1-A),I=y+C*o*A,L=m+D*o*A,I=ki(I,Oi(b,y)),L=ki(L,Oi(w,m)),I=Oi(I,ki(b,y)),L=Oi(L,ki(w,m)),C=I-y,D=L-m,v=y-C*N/z,d=m-D*N/z,v=ki(v,Oi(u,y)),d=ki(d,Oi(f,m)),v=Oi(v,ki(u,y)),d=Oi(d,ki(f,m)),C=y-v,D=m-d,I=y+C*z/N,L=m+D*z/N}r.bezierCurveTo(c,h,v,d,y,m),c=I,h=L}else r.lineTo(y,m)}u=y,f=m,p+=a}return g}var cE=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),Z6=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cE},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&bo(i[o*2-2],i[o*2-1]);o--);for(;a<o&&bo(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Om(e,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Un.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var h=a[c++],v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(h){case o.M:s=a[c++],l=a[c++];break;case o.L:if(v=a[c++],d=a[c++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],p=a[c++],g=a[c++],y=a[c++],m=a[c++];var x=u?Oh(s,v,p,y,e,f):Oh(l,d,g,m,e,f);if(x>0)for(var b=0;b<x;b++){var w=f[b];if(w<=1&&w>=0){var S=u?Ae(l,d,g,m,w):Ae(s,v,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Pt),X6=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(cE),hE=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new X6},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&bo(i[s*2-2],i[s*2-1]);s--);for(;o<s&&bo(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Om(e,i,o,s,s,1,n.smooth,l,n.connectNulls);Om(e,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(Pt);function vE(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Vt({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=vt(i)?function(g){i(g,c)}:null;ae(c,{shape:{width:l,height:u,x:o,y:s}},e,null,n,p)}return c}function dE(r,t,e){var n=r.getArea(),i=ce(n.r0,1),a=ce(n.r,1),o=new gr({shape:{cx:ce(r.cx,1),cy:ce(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,ae(o,{shape:{endAngle:n.endAngle,r:a}},e)}return o}function Pf(r,t,e,n,i){if(r){if(r.type==="polar")return dE(r,t,e);if(r.type==="cartesian2d")return vE(r,t,e,n,i)}else return null;return null}function zo(r,t){return r.type===t}function mT(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function _T(r){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[n,i]]}function ST(r,t){var e=_T(r),n=e[0],i=e[1],a=_T(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function xT(r){return Ft(r)?r:r?.5:0}function q6(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),i=Nn(n*2),a=0;a<n;a++){var o=fE(e,r,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Ni(r,t,e,n,i){var a=e.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(i){for(l=0;l<r.length;l+=2){var v=t||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function K6(r,t){var e=[],n=r.length,i,a;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=oG(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>t){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function j6(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=K6(u,i==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,y=g-p;if(y<.001)return"transparent";M(h,function(_){_.offset=(_.coord-p)/y}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new bf(0,0,0,0,h,!0);return m[i]=p,m[i+"2"]=g,m}}}function J6(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&Q6(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Q6(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(If.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function t8(r,t){return isNaN(r)||isNaN(t)}function e8(r){for(var t=r.length/2;t>0&&t8(r[t*2-2],r[t*2-1]);t--);return t-1}function bT(r,t){return[r[t*2],r[t*2+1]]}function r8(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function pE(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<lr.length;t++)if(r.get([lr[t],"endLabel","show"]))return!0;return!1}function og(r,t,e,n){if(zo(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=pE(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=vE(t,e,n,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return dE(t,e,n)}function n8(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),i=e.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var i8=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new _t,n=new Lf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e,this._changePolyState=at(this._changePolyState,this)},t.prototype.render=function(e,n,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=uE(a,s,_),x=m&&q6(a,s,S),b=e.get("showSymbol"),w=e.get("connectNulls"),T=b&&!c&&J6(e,s,a),A=this._data;A&&A.eachItemGraphicEl(function(gt,Et){gt.__temp&&(o.remove(gt),A.setItemGraphicEl(Et,null))}),b||v.remove(),o.add(g);var C=c?!1:e.get("step"),D;a&&a.getArea&&e.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=j6(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===a.type&&C===this._step))b&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(gt){return[f[gt*2],f[gt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,a,D),C&&(x&&(x=Ni(x,f,a,C,w)),f=Ni(f,null,a,C,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,x):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,a,Io(I)),g.setClipPath(og(this,a,!0,e));else{m&&!p?p=this._newPolygon(f,x):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,a,Io(I));var L=g.getClipPath();if(L){var P=og(this,a,!1,e);ae(L,{shape:P.shape},e)}else g.setClipPath(og(this,a,!0,e));b&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(gt){return[f[gt*2],f[gt*2+1]]}}),(!mT(this._stackedOnPoints,x)||!mT(this._points,f))&&(y?this._doUpdateAnimation(s,x,a,i,C,_,w):(C&&(x&&(x=Ni(x,f,a,C,w)),f=Ni(f,null,a,C,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:x})))}var E=e.getModel("emphasis"),O=E.get("focus"),V=E.get("blurScope"),N=E.get("disabled");if(d.useStyle(pt(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Ge(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=d.getState("emphasis").style;z.lineWidth=+d.style.lineWidth+1}St(d).seriesIndex=e.seriesIndex,ue(d,O,V,N);var $=xT(e.get("smooth")),q=e.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:q,connectNulls:w}),p){var Q=s.getCalculationInfo("stackedOnSeries"),ct=0;p.useStyle(pt(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Q&&(ct=xT(Q.get("smooth"))),p.setShape({smooth:$,stackedOnSmooth:ct,smoothMonotone:q,connectNulls:w}),Ge(p,e,"areaStyle"),St(p).seriesIndex=e.seriesIndex,ue(p,O,V,N)}var ht=this._changePolyState;s.eachItemGraphicEl(function(gt){gt&&(gt.onHoverStateChange=ht)}),this._polyline.onHoverStateChange=ht,this._data=s,this._coordSys=a,this._stackedOnPoints=x,this._points=f,this._step=C,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){St(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Co(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new If(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ee.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Co(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ee.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;Hh(this._polyline,e),n&&Hh(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Z6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new hE({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");vt(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=vt(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,x=n.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=i;a?(y=b.x,m=b.x+b.width,_=v.x):(y=b.y+b.height,m=b.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=vt(c)?c(d):f*w+h,A=p.getSymbolPath(),C=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(pE(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Gt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=e8(l);f>=0&&(Fe(s,De(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?lE(o,v):$s(o,c)},enableTextSetter:!0},n8(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=r8(c,S,w),A=T.range,C=A[1]-A[0],D=void 0;if(C>=1){if(C>1&&!v){var I=bT(c,A[0]);u.attr({x:I[0]+x,y:I[1]+b}),o&&(D=h.getRawValue(A[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+x,y:I[1]+b});var L=h.getRawValue(A[0]),P=h.getRawValue(A[1]);o&&(D=OL(i,d,L,P,T.t))}a.lastFrameIndex=A[0]}else{var E=e===1||a.lastFrameIndex>0?A[0]:0,I=bT(c,E);o&&(D=h.getRawValue(E)),u.attr({x:I[0]+x,y:I[1]+b})}if(o){var O=el(u);typeof O.setLabelText=="function"&&O.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=Y6(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=Ni(h.stackedOnCurrent,h.current,i,o,l),v=Ni(h.current,null,i,o,l),g=Ni(h.stackedOnNext,h.next,i,o,l),p=Ni(h.next,null,i,o,l)),ST(v,p)>3e3||f&&ST(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:p}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),Ht(u,y,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Ht(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;T<m.length;T++){var A=m[T].el,C=m[T].ptIdx*2;A.x=w[C],A.y=w[C+1],A.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ee);const a8=i8;function Rf(r,t){return{seriesType:r,plan:sl(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(i){var s=Z(i.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");la(n,s[0])&&(s[0]=u),la(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&Nn(p*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var x=void 0;if(l===1){var b=f.get(c,_);x=i.dataToPoint(b,null,m)}else y[0]=f.get(c,_),y[1]=f.get(h,_),x=i.dataToPoint(y,null,m);o?(g[S++]=x[0],g[S++]=x[1]):d.setItemLayout(_,x.slice())}o&&d.setLayout("points",g)}}}}}}var o8={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},s8=function(r){return Math.round(r.length/2)};function gE(r){return{seriesType:r,reset:function(t,e,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),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;nt(a)?d=o8[a]:vt(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,s8))}}}}}function l8(r){r.registerChartView(a8),r.registerSeriesModel(G6),r.registerLayout(Rf("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,gE("line"))}var yE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)M(a.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,x=0;x<d.length;x++){var b=d[x].coord,w=x===d.length-1?d[x-1].tickValue+S:d[x].tickValue;if(w===g){_=b;break}else if(w<g)m=b;else if(m!=null&&w>g){_=(b+m)/2;break}x===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});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}(le);le.registerClass(yE);const sv=yE;var u8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Ai(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 e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ga(sv.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}(sv);const f8=u8;var c8=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),h8=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new c8},t.prototype.buildPath=function(e,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,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(e.moveTo(p*o+i,g*o+a),e.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!h)):e.moveTo(p*s+i,g*s+a),e.arc(i,a,s,f,c,!h),e.arc(y*u+i,m*u+a,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&e.arc(i,a,o,c,f,h)},t}(Pt);const lv=h8;function v8(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Gh(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,x=f+h*_(p),b=c+h*S(p),w="left",T="top";switch(s){case"startArc":x=f+(v-l)*_(y),b=c+(v-l)*S(y),w="center",T="top";break;case"insideStartArc":x=f+(v+l)*_(y),b=c+(v+l)*S(y),w="center",T="bottom";break;case"startAngle":x=f+d*_(p)+Tc(p,l+m,!1),b=c+d*S(p)+Ac(p,l+m,!1),w="right",T="middle";break;case"insideStartAngle":x=f+d*_(p)+Tc(p,-l+m,!1),b=c+d*S(p)+Ac(p,-l+m,!1),w="left",T="middle";break;case"middle":x=f+d*_(y),b=c+d*S(y),w="center",T="middle";break;case"endArc":x=f+(h+l)*_(y),b=c+(h+l)*S(y),w="center",T="bottom";break;case"insideEndArc":x=f+(h-l)*_(y),b=c+(h-l)*S(y),w="center",T="top";break;case"endAngle":x=f+d*_(g)+Tc(g,l+m,!0),b=c+d*S(g)+Ac(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":x=f+d*_(g)+Tc(g,-l+m,!0),b=c+d*S(g)+Ac(g,-l+m,!0),w="right",T="middle";break;default:return Gh(n,i,a)}return n=n||{},n.x=x,n.y=b,n.align=w,n.verticalAlign=T,n}}function d8(r,t,e,n){if(Ft(n)){r.setTextConfig({rotation:n});return}else if(Y(t)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=e(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:r.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),r.setTextConfig({rotation:f})}function Tc(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Ac(r,t,e){return t*Math.cos(r)*(e?1:-1)}function fo(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;Y(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Z(n,function(a){return dn(a,i)})}}var sg=Math.max,lg=Math.min;function p8(r,t){var e=r.getArea&&r.getArea();if(zo(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var g8=function(r){B(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,i):this._renderNormal(e,n,i,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,i,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=e.isAnimationEnabled()?e:null,v=y8(e,u);v&&this._enableRealtimeSort(v,s,i);var d=e.get("clip",!0)||v,p=p8(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,b=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function T(D){var I=Cc[u.type](s,D),L=T8(u,c,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=Cc[u.type](s,D,I);if(y&&T(D),!(!s.hasValue(D)||!MT[u.type](L))){var P=!1;d&&(P=wT[u.type](p,L));var E=TT[u.type](e,s,D,L,c,h,f.model,!1,g);v&&(E.forceLabelAnimation=!0),DT(E,s,D,I,L,e,c,u.type==="polar"),b?E.attr({shape:L}):v?AT(v,h,E,L,D,c,!1,!1):ae(E,{shape:L},e,D),s.setItemGraphicEl(D,E),o.add(E),E.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=Cc[u.type](s,D,L);if(y){var E=void 0;x.length===0?E=T(I):(E=x[I],E.useStyle(m.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[D]=E);var O=Cc[u.type](s,D),V=_E(c,O,u);Ht(E,{shape:V},h,D)}var N=l.getItemGraphicEl(I);if(!s.hasValue(D)||!MT[u.type](P)){o.remove(N);return}var z=!1;if(d&&(z=wT[u.type](p,P),z&&o.remove(N)),N?pn(N):N=TT[u.type](e,s,D,P,c,h,f.model,!!N,g),v&&(N.forceLabelAnimation=!0),w){var $=N.getTextContent();if($){var q=el($);q.prevValue!=null&&(q.prevValue=q.value)}}else DT(N,s,D,L,P,e,c,u.type==="polar");b?N.attr({shape:P}):v?AT(v,h,N,P,D,c,!0,w):Ht(N,{shape:P},e,D,null),s.setItemGraphicEl(D,N),N.ignore=z,o.add(N)}).remove(function(D){var I=l.getItemGraphicEl(D);I&&Zu(I,e,D)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new _t);A.removeAll();for(var C=0;C<S.length;++C)A.add(S[C]);o.add(A),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),LT(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),LT(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&Pf(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,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(e,n,i){var a=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=i(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Z(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,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(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,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(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Zu(a,e,St(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}(ee),wT={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=sg(t.x,r.x),s=lg(t.x+t.width,i),l=sg(t.y,r.y),u=lg(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,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=lg(t.r,r.r),a=sg(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},TT={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new Vt({shape:F({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?lv:gr,f=new u({shape:n,z2:1});f.name="item";var c=mE(i);if(f.calculateTextPosition=v8(c,{isRoundCap:u===lv}),a){var h=f.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Ht:ae)(f,{shape:d},a)}return f}};function y8(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function AT(r,t,e,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?Ht:ae)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?Ht:ae)(e,{shape:u},f,i)}function CT(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var m8=["x","y","width","height"],_8=["cx","cy","r","startAngle","endAngle"],MT={cartesian2d:function(r){return!CT(r,m8)},polar:function(r){return!CT(r,_8)}},Cc={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),i=e?x8(e,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(r,t,e){var n=r.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 S8(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function mE(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function DT(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,c=fo(n.getModel("itemStyle"),f,!0);F(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=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",d=De(n);Fe(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:$s(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,d8(r,g==="outside"?v:g,mE(o),n.get(["label","rotate"]))}PP(p,d,a.getRawValue(e),function(m){return lE(t,m)});var y=n.getModel(["emphasis"]);ue(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Ge(r,n),S8(i)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function x8(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.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 b8=function(){function r(){}return r}(),IT=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new b8},t.prototype.buildPath=function(e,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],e.rect(s[0],s[1],l[0],l[1])},t}(Pt);function LT(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new IT({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),e&&e.push(f)}var c=new IT({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")),c.style.stroke=null,St(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",PT),c.on("mousemove",PT)),e&&e.push(c)}var PT=B_(function(r){var t=this,e=w8(t,r.offsetX,r.offsetY);St(t).dataIndex=e>=0?e:null},30,!1);function w8(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.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]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function _E(r,t,e){if(zo(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function T8(r,t,e){var n=r.type==="polar"?gr:Vt;return new n({shape:_E(t,e,r),silent:!0,z2:0})}const A8=g8;function C8(r){r.registerChartView(A8),r.registerSeriesModel(f8),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(xR,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bR("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,gE("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var RT=Math.PI*2,Mc=Math.PI/180;function SE(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xE(r,t){var e=SE(r,t),n=r.get("center"),i=r.get("radius");Y(i)||(i=[0,i]);var a=et(e.width,t.getWidth()),o=et(e.height,t.getHeight()),s=Math.min(a,o),l=et(i[0],s/2),u=et(i[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else Y(n)||(n=[n,n]),f=et(n[0],a)+e.x,c=et(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function M8(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=SE(n,e),s=xE(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*Mc,v=n.get("endAngle"),d=n.get("padAngle")*Mc;v=v==="auto"?h-RT:-v*Mc;var p=n.get("minAngle")*Mc,g=p+d,y=0;i.each(a,function(V){!isNaN(V)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,S=n.get("clockwise"),x=n.get("roseType"),b=n.get("stillShowZeroSum"),w=i.getDataExtent(a);w[0]=0;var T=S?1:-1,A=[h,v],C=T*d/2;f_(A,!S),h=A[0],v=A[1];var D=bE(n);D.startAngle=h,D.endAngle=v,D.clockwise=S;var I=Math.abs(v-h),L=I,P=0,E=h;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(V,N){var z;if(isNaN(V)){i.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:c,r:x?NaN:f});return}x!=="area"?z=m===0&&b?_:V*_:z=I/y,z<g?(z=g,L-=g):P+=V;var $=E+T*z,q=0,Q=0;d>z?(q=E+T*z/2,Q=q):(q=E+C,Q=$-C),i.setItemLayout(N,{angle:z,startAngle:q,endAngle:Q,clockwise:S,cx:l,cy:u,r0:c,r:x?Ut(V,w,[c,f]):f}),E=$}),L<RT&&y)if(L<=.001){var O=I/y;i.each(a,function(V,N){if(!isNaN(V)){var z=i.getItemLayout(N);z.angle=O;var $=0,q=0;O<d?($=h+T*(N+1/2)*O,q=$):($=h+T*N*O+C,q=h+T*(N+1)*O-C),z.startAngle=$,z.endAngle=q}})}else _=L/P,E=h,i.each(a,function(V,N){if(!isNaN(V)){var z=i.getItemLayout(N),$=z.angle===g?g:V*_,q=0,Q=0;$<d?(q=E+T*$/2,Q=q):(q=E+C,Q=E+T*$-C),z.startAngle=q,z.endAngle=Q,E+=T*$}})})}var bE=Nt();function Ef(r){return{seriesType:r,reset:function(t,e){var n=e.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 D8=Math.PI/180;function ET(r,t,e,n,i,a,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),x=n+_.len,b=x*x,w=Math.sqrt(Math.abs((1-S*S/y)*b)),T=t+(w+_.len2)*i,A=T-_.label.x,C=_.targetTextWidth-A*i;wE(_,C,!0),_.label.x=T}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?y:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var b=_.label.x-t-_.len2*i,w=n+_.len,T=Math.abs(b)<w?Math.sqrt(x*x/(1-b*b/w/w)):w;S.rB=T,S.maxY=x}S.list.push(_)}f(g),f(y)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}UR(r,l,l+o)&&c(r)}function I8(r,t,e,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;ug(r[h])||(v.x<t?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!ug(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?g=f-o-d.bleedMargin:g=o+i-c-d.bleedMargin:v.x<t?g=v.x-o-d.bleedMargin:g=o+i-v.x-d.bleedMargin,d.targetTextWidth=g,wE(d,g)}}ET(u,t,e,n,1,i,a,o,s,c),ET(l,t,e,n,-1,i,a,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!ug(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,x=d.rect.width+S,b=p[1][0]-p[2][0];y?v.x<t?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+i-d.edgeDistance-x-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=v.y}}}function wE(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.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||e){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 v=t-l,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function ug(r){return r.position==="center"}function L8(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*D8,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),T=w.shape,A=w.getTextContent(),C=w.getTextGuideLine(),D=t.getItemModel(b),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),E=I.get("alignTo"),O=et(I.get("edgeDistance"),u),V=I.get("bleedMargin"),N=D.getModel("labelLine"),z=N.get("length");z=et(z,u);var $=N.get("length2");if($=et($,u),Math.abs(T.endAngle-T.startAngle)<o){M(A.states,v),A.ignore=!0,C&&(M(C.states,v),C.ignore=!0);return}if(d(A)){var q=(T.startAngle+T.endAngle)/2,Q=Math.cos(q),ct=Math.sin(q),ht,gt,Et,U;n=T.cx,i=T.cy;var K=L==="inside"||L==="inner";if(L==="center")ht=T.cx,gt=T.cy,U="center";else{var H=(K?(T.r+T.r0)/2*Q:T.r*Q)+n,tt=(K?(T.r+T.r0)/2*ct:T.r*ct)+i;if(ht=H+Q*3,gt=tt+ct*3,!K){var j=H+Q*(z+l-T.r),lt=tt+ct*(z+l-T.r),R=j+(Q<0?-1:1)*$,k=lt;E==="edge"?ht=Q<0?f+O:f+u-O:ht=R+(Q<0?-P:P),gt=k,Et=[[H,tt],[j,lt],[R,k]]}U=K?"center":E==="edge"?Q>0?"right":"left":Q>0?"left":"right"}var G=Math.PI,X=0,W=I.get("rotate");if(Ft(W))X=W*(G/180);else if(L==="center")X=0;else if(W==="radial"||W===!0){var J=Q<0?-q+G:-q;X=J}else if(W==="tangential"&&L!=="outside"&&L!=="outer"){var ot=Math.atan2(Q,ct);ot<0&&(ot=G*2+ot);var ut=ct>0;ut&&(ot=G+ot),X=ot-G}if(a=!!X,A.x=ht,A.y=gt,A.rotation=X,A.setStyle({verticalAlign:"middle"}),K){A.setStyle({align:U});var At=A.states.select;At&&(At.x+=A.x,At.y+=A.y)}else{var it=A.getBoundingRect().clone();it.applyTransform(A.getComputedTransform());var rt=(A.style.margin||0)+2.1;it.y-=rt/2,it.height+=rt,e.push({label:A,labelLine:C,position:L,len:z,len2:$,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Ct(Q,ct),linePoints:Et,textAlign:U,labelDistance:P,labelAlignTo:E,edgeDistance:O,bleedMargin:V,rect:it,unconstrainedWidth:it.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:K})}}),!a&&r.get("avoidLabelOverlap")&&I8(e,n,i,l,u,h,f,c);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(M(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var x=g.linePoints;_||!x?(M(m.states,v),m.ignore=!0):(HR(x,g.minTurnAngle),FU(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new Ct(x[0][0],x[0][1])})}}}var P8=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new Gt;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),c=F(fo(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?(ae(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,ae(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),ae(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ht(o,{shape:{endAngle:f.endAngle}},s,n))}else pn(o),Ht(o,{shape:c},s,n);o.useStyle(e.getItemVisual(n,"style")),Ge(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=F({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},fo(u.getModel("itemStyle"),f)),F(o.ensureState("select"),{x:p,y:g,shape:fo(l.getModel(["select","itemStyle"]),f)}),F(o.ensureState("blur"),{shape:fo(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&F(m.ensureState("select"),{x:p,y:g}),F(_.ensureState("select"),{x:p,y:g}),ue(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,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;Fe(a,De(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=e.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new mr,this.setTextGuideLine(v)),Q_(this,t1(o),{stroke:u,opacity:Bn(s.get(["lineStyle","opacity"]),f,1)})}},t}(gr),R8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i,a){var o=e.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&&e.get("showEmptyCircle")){var h=bE(e),v=new gr({shape:F(xE(e,i),h)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new P8(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Zu(p,e,d)}).execute(),L8(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(ee);const E8=R8;function cl(r,t,e){t=Y(t)&&{coordDimensions:t}||F({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Mf(n,t).dimensions,a=new or(i,r);return a.initData(n,e),a}var k8=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const kf=k8;var O8=Nt(),N8=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new kf(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return cl(this,{coordDimensions:["value"],encodeDefaulter:bt(I_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=O8(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=UG(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ao(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.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,endAngle:"auto",padAngle:0,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}(le);const V8=N8;function B8(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Ft(o)&&!isNaN(o)&&o<0)})}}}function z8(r){r.registerChartView(E8),r.registerSeriesModel(V8),z2("pie",r.registerAction),r.registerLayout(bt(M8,"pie")),r.registerProcessor(Ef("pie")),r.registerProcessor(B8("pie"))}var G8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,n,i){return i.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(le);const F8=G8;var TE=4,H8=function(){function r(){}return r}(),W8=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new H8},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&a[0]<TE,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var h=i[c++],v=i[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-a[0]/2,s.y=v-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,n=e.points,i=e.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,h=a[f+1]-l/2;if(e>=c&&n>=h&&e<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<i.length;){var v=i[h++],d=i[h++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),c=Math.max(d,c)}e=this._rect=new Mt(l-o/2,u-s/2,f-l+o,c-u+s)}return e},t}(Pt),$8=function(){function r(){this.group=new _t}return r.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;e=new Float32Array(e.buffer,a,i)}n.setShape("points",e),n.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],a=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,e,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new W8({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=me(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<TE;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=St(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var c=t.hoverDataIdx;c>=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const U8=$8;var Y8=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,i){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Rf("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new U8:new Lf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ee);const Z8=Y8;var X8=function(r){B(t,r);function t(){return r!==null&&r.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}(Bt);const q8=X8;var Nm=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ge).models[0]},t.type="cartesian2dAxis",t}(Bt);_e(Nm,Df);var AE={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,showMinLine:!0,showMaxLine:!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)"]}}},K8=Tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},AE),o1=Tt({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}}},AE),j8=Tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},o1),J8=pt({logBase:10},o1);const CE={category:K8,value:o1,time:j8,log:J8};var Q8={value:1,category:1,time:1,log:1};function Us(r,t,e,n){M(Q8,function(i,a){var o=Tt(Tt({},CE[a],!0),n,!0),s=function(l){B(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=qu(this),v=h?il(f):{},d=c.getTheme();Tt(f,d.get(a+"Axis")),Tt(f,this.getDefaultOption()),f.type=kT(f),h&&sa(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Im.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}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",kT)}function kT(r){return r.type||(r.data?"category":"value")}var tY=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),$t(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const eY=tY;var Vm=["x","y"];function OT(r){return r.type==="interval"||r.type==="time"}var rY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Vm,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!OT(e)||!OT(n))){var i=e.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,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=js([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new Mt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Be(i,e,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(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[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(e,n){var i=[];if(this._invTransform)return Be(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(n[0],n[1])-a+e,l=Math.max(i[0],i[1])-o+e;return new Mt(a,o,s,l)},t}(eY),nY=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(yn);const iY=nY;function Bm(r,t,e){e=e||{};var n=r.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},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Re(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function NT(r){return r.get("coordinateSystem")==="cartesian2d"}function VT(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,ge).models[0];t[n]=a}),t}var fg=Math.log;function ME(r,t,e){var n=ua.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=IR(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=fg(r.base);u=[fg(u[0])/h,fg(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=qp(d),g=u[0]+d*o;else if(c)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=qp(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=qp(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=ce(g-m),p<0&&u[0]>=0?(p=0,g=ce(m)):g>0&&u[1]<=0&&(g=0,p=-ce(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var aY=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Vm,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=kt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Lm(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Ws(p,d),Lm(p)&&(s=v))}f.length&&(s||(s=f.pop(),Ws(s.scale,s.model)),M(f,function(g){ME(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){BT(n,"y",o,a)}),M(n.y,function(o){BT(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=be(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=yU(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()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(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]),oY(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}yt(t)&&(e=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===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",ge).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",ge).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,Dt(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}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(f,c){M(s.y,function(h,v){var d="x"+c+"y"+v,p=new rY(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(cg(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new iY(f,xd(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=h,a._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){M(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(NT(i)){var a=VT(i),o=a.xAxisModel,s=a.yAxisModel;if(!cg(o,e)||!cg(s,e))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){M(nv(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return M(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);Dt(e,a)<0&&e.push(a),Dt(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(NT(i)){var a=VT(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=Vm,r}();function cg(r,t){return r.getCoordSysModel()===t}function BT(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)zT(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&zT(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function zT(r){return r&&r.type!=="category"&&r.type!=="time"&&gU(r)}function oY(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const sY=aY;var Ki=Math.PI,wo=function(){function r(t,e){this.group=new _t,this.opt=e,this.axisModel=t,pt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _t({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!GT[t]},r.prototype.add=function(t){GT[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var i=AL(e-t),a,o;return Hu(i)?(o=n>0?"top":"bottom",a="center"):Hu(i-Ki)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Ki?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),GT={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.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&&(Be(s,s,o),Be(l,l,o));var f=F({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Ee({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Gs(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);nt(h)&&(h=[h,h]),(nt(v)||Ft(v))&&(v=[v,v]);var d=Vo(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(h[m]!=="none"&&h[m]!=null){var _=me(h[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,x=u?l:s;_.attr({rotation:y.rotate,x:x[0]+S*Math.cos(r.rotation),y:x[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=fY(e,n,t,r),a=hY(e,n,t,r);if(uY(t,a,i),cY(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=WR(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));YR(o)}},axisName:function(r,t,e,n){var i=Re(r.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=r.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,HT(a)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Ki/180);var d;HT(a)?h=wo.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(h=lY(r.rotation,a,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Re(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Gt({x:c[0],y:c[1],rotation:h.rotation,silent:wo.isLabelSilent(t),style:Qt(s,{text:i,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(ko({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=wo.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,St(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function lY(r,t,e,n){var i=AL(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Hu(i-Ki/2)?(o=l?"bottom":"top",a="center"):Hu(i-Ki*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Ki*1.5&&i>Ki/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function uY(r,t,e){if(!LR(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],c=e[e.length-1],h=e[e.length-2];n===!1?(Pr(a),Pr(u)):FT(a,o)&&(n?(Pr(o),Pr(f)):(Pr(a),Pr(u))),i===!1?(Pr(s),Pr(c)):FT(l,s)&&(i?(Pr(l),Pr(h)):(Pr(s),Pr(c)))}}function Pr(r){r&&(r.ignore=!0)}function FT(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=Zv([]);return Eo(i,i,-r.rotation),e.applyTransform(li([],i,r.getLocalTransform())),n.applyTransform(li([],i,t.getLocalTransform())),e.intersect(n)}}function HT(r){return r==="middle"||r==="center"}function DE(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Be(o,o,t),Be(s,s,t));var f=new Ee({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Gs(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f)}return a}function fY(r,t,e,n){var i=e.axis,a=e.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=DE(u,t.transform,l,pt(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)r.add(f[c]);return f}}function cY(r,t,e,n){var i=e.axis,a=e.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=pt(s.getLineStyle(),pt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=DE(o[f],t.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)r.add(c[h])}}function hY(r,t,e,n){var i=e.axis,a=Re(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Re(n.labelRotate,o.get("rotate"))||0)*Ki/180,f=wo.innerTextLayout(n.rotation,u,n.labelDirection),c=e.getCategories&&e.getCategories(!0),h=[],v=wo.isLabelSilent(e),d=e.get("triggerEvent");return M(l,function(p,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(c&&c[y]){var x=c[y];yt(x)&&x.textStyle&&(S=new te(x.textStyle,o,e.ecModel))}var b=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(y),T=S.getShallow("align",!0)||f.textAlign,A=xt(S.getShallow("alignMinLabel",!0),T),C=xt(S.getShallow("alignMaxLabel",!0),T),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,I=xt(S.getShallow("verticalAlignMinLabel",!0),D),L=xt(S.getShallow("verticalAlignMaxLabel",!0),D),P=new Gt({x:w,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:Qt(S,{text:m,align:g===0?A:g===l.length-1?C:T,verticalAlign:g===0?I:g===l.length-1?L:D,fill:vt(b)?b(i.type==="category"?_:i.type==="value"?y+"":y,g):b})});if(P.anid="label_"+y,ko({el:P,componentModel:e,itemName:m,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:_,tickIndex:g}}),d){var E=wo.makeAxisEventDataBase(e);E.targetType="axisLabel",E.value=_,E.tickIndex=g,i.type==="category"&&(E.dataIndex=y),St(P).eventData=E}t.add(P),P.updateTransform(),h.push(P),r.add(P),P.decomposeTransform()}),h}}const xi=wo;function vY(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return dY(e,r,t),e.seriesInvolved&&gY(e,r),e}function dY(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];M(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=nf(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(M(s.getAxes(),bt(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&M(d.baseAxes,bt(p,v?"cross":!0,h)),v&&M(d.otherAxes,bt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!zm(_))){y==null&&(y=_.get("triggerTooltip")),_=g?pY(m,c,i,t,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=nf(m.model),T=y||x||m.type==="category",A=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:x,useHandle:zm(_),seriesModels:[],linkGroup:null};u[w]=A,r.seriesInvolved=r.seriesInvolved||T;var C=yY(a,m);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[w]=A,D.mapper=a[C].mapper,A.linkGroup=D}}}})}function pY(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(h){l[h]=mt(o.get(h))}),l.snap=r.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!=null?f:!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&pt(u,c.textStyle)}}return r.model.getModel("axisPointer",new te(l,e,n))}function gY(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||M(r.coordSysAxesInfo[nf(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function yY(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(hg(a[n+"AxisId"],e.id)||hg(a[n+"AxisIndex"],e.componentIndex)||hg(a[n+"AxisName"],e.name))return i}}function hg(r,t){return r==="all"||Y(r)&&Dt(r,t)>=0||r===t}function mY(r){var t=s1(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=zm(e);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 s1(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[nf(r)]}function _Y(r){var t=s1(r);return t&&t.axisPointerModel}function zm(r){return!!r.get(["handle","show"])}function nf(r){return r.type+"||"+r.id}var WT={},SY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.axisPointerClass&&mY(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=_Y(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){WT[e]=n},t.getAxisPointerClass=function(e){return e&&WT[e]},t.type="axis",t}(fe);const Go=SY;var Gm=Nt();function IE(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.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=Gm(r).splitAreaColors,h=ft(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Y(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,x=void 0,b=void 0;i.isHorizontal()?(_=g,S=l.y,x=m-_,b=l.height,g=_+x):(_=l.x,S=g,x=l.width,b=m-S,g=S+b);var w=u[d-1].tickValue;w!=null&&h.set(w,v),t.add(new Vt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:pt({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}Gm(r).splitAreaColors=h}}}function LE(r){Gm(r).splitAreaColors=null}var xY=["axisLine","axisTickLabel","axisName"],bY=["splitArea","splitLine","minorSplitLine"],PE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Bm(s,e),u=new xi(e,F({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(Lm(h[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));M(xY,u.add,u),this._axisGroup.add(u.getGroup()),M(bY,function(c){e.get([c,"show"])&&wY[c](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||wf(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){LE(this)},t.type="cartesianAxis",t}(Go),wY={splitLine:function(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;s=Y(s)?s:[s];for(var f=n.coordinateSystem.getRect(),c=i.isHorizontal(),h=0,v=i.getTicksCoords({tickModel:a}),d=[],p=[],g=o.getLineStyle(),y=0;y<v.length;y++){var m=i.toGlobalCoord(v[y].coord);if(!(y===0&&!l||y===v.length-1&&!u)){var _=v[y].tickValue;c?(d[0]=m,d[1]=f.y,p[0]=m,p[1]=f.y+f.height):(d[0]=f.x,d[1]=m,p[0]=f.x+f.width,p[1]=m);var S=h++%s.length,x=new Ee({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:pt({stroke:s[S]},g),silent:!0});Gs(x.shape,g.lineWidth),t.add(x)}}}},minorSplitLine:function(r,t,e,n){var i=e.axis,a=e.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(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=i.toGlobalCoord(u[v][d].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 g=new Ee({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});Gs(g.shape,h.lineWidth),t.add(g)}},splitArea:function(r,t,e,n){IE(r,t,e,n)}},RE=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(PE),TY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=RE.type,e}return t.type="yAxis",t}(PE),AY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new Vt({shape:e.coordinateSystem.getRect(),style:pt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(fe),$T={offset:0};function EE(r){r.registerComponentView(AY),r.registerComponentModel(q8),r.registerCoordinateSystem("cartesian2d",sY),Us(r,"x",Nm,$T),Us(r,"y",Nm,$T),r.registerComponentView(RE),r.registerComponentView(TY),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function CY(r){Lt(EE),r.registerSeriesModel(F8),r.registerChartView(Z8),r.registerLayout(Rf("scatter"))}function MY(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();M(a,function(o,s){e.each(e.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var f=i.dataToPoint(l,s);n[u][s]=UT(f)?f:YT(i)})}),e.each(function(o){var s=c5(n[o],function(l){return UT(l)})||YT(i);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function UT(r){return!isNaN(r[0])&&!isNaN(r[1])}function YT(r){return[r.cx,r.cy]}function DY(r){var t=r.polar;if(t){Y(t)||(t=[t]);var e=[];M(t,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],Y(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}M(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var IY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=ul(h.getItemVisual(v,"symbolSize")),g=me(d,-1,-1,2,2),y=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(h,v,d,p,g,y){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Oo[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,g)):_.setPosition(v[m]),d.add(_))}}function c(h){return Z(h,function(v){return[a.cx,a.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new yr,p=new mr,g={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),ae(d,g,e,h),ae(p,g,e,h);var y=new _t,m=new _t;y.add(p),y.add(d),y.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,h,!1),pn(g),pn(p),Ht(p,m,e),Ht(g,m,e),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(pt(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Ge(p,d,"lineStyle"),Ge(g,d,"areaStyle");var S=d.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,M(["emphasis","select","blur"],function(T){var A=d.getModel([T,"areaStyle"]),C=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(T).ignore=C&&x}),g.useStyle(pt(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=d.getModel("emphasis"),w=b.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof He){var A=T.style;T.useStyle(F({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var C=T.ensureState("emphasis");C.style=mt(w);var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(D==null||isNaN(D))&&(D=""),Fe(T,De(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),ue(h,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(ee);const LY=IY;var PY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new kf(at(this.getData,this),at(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return cl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=M2(this,e);return Ie("section",{header:u,sortBlocks:!0,blocks:Z(s,function(c){var h=a.get(a.mapDimension(c.dim),e);return Ie("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(Z(i.dimensions,function(u){return n.mapDimension(u)}),e),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(le);const RY=PY;var Vl=CE.value;function Dc(r,t){return pt({show:t},r)}var EY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=Z(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=pt({color:d.color},l));var g=Tt(mt(d),{boundaryGap:e,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(nt(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else vt(f)&&(g.name=f(g.name,g));var m=new te(g,null,this.ecModel);return _e(m,Df.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Tt({lineStyle:{color:"#bbb"}},Vl.axisLine),axisLabel:Dc(Vl.axisLabel,!1),axisTick:Dc(Vl.axisTick,!1),splitLine:Dc(Vl.splitLine,!0),splitArea:Dc(Vl.splitArea,!0),indicator:[]},t}(Bt);const kY=EY;var OY=["axisLine","axisTickLabel","axisName"],NY=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes(),a=Z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new xi(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(a,function(o){M(OY,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),d=Y(h)?h:[h],p=Y(v)?v:[v],g=[],y=[];function m(E,O,V){var N=V%O.length;return E[N]=E[N]||[],N}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,x=n.cy,b=0;b<_.length;b++){if(f){var w=m(g,d,b);g[w].push(new da({shape:{cx:S,cy:x,r:_[b].coord}}))}if(c&&b<_.length-1){var w=m(y,p,b);y[w].push(new rd({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,A=Z(i,function(E,O){var V=E.getTicksCoords();return T=T==null?V.length-1:Math.min(V.length-1,T),Z(V,function(N){return n.coordToPoint(N.coord,O)})}),C=[],b=0;b<=T;b++){for(var D=[],I=0;I<i.length;I++)D.push(A[I][b]);if(D[0]&&D.push(D[0].slice()),f){var w=m(g,d,b);g[w].push(new mr({shape:{points:D}}))}if(c&&C){var w=m(y,p,b-1);y[w].push(new yr({shape:{points:D.concat(C)}}))}C=D.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();M(y,function(E,O){this.group.add(Hr(E,{style:pt({stroke:"none",fill:p[O%p.length]},P),silent:!0}))},this),M(g,function(E,O){this.group.add(Hr(E,{style:pt({fill:"none",stroke:d[O%d.length]},L),silent:!0}))},this)},t.type="radar",t}(fe);const VY=NY;var BY=function(r){B(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(yn);const zY=BY;var GY=function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Z(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new zY(o,new ua);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var a=Math.atan2(-n,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(a-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight(),o=Math.min(i,a)/2;this.cx=et(n[0],i),this.cy=et(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(nt(s)||Ft(s))&&(s=[0,s]),this.r0=et(s[0],o),this.r=et(s[1],o),M(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;M(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();M(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new ua;o.setExtent(0,a),o.setInterval(1),M(n,function(s,l){ME(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent("radar",function(i){var a=new r(i,t,e);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},r.dimensions=[],r}();const FY=GY;function HY(r){r.registerCoordinateSystem("radar",FY),r.registerComponentModel(kY),r.registerComponentView(VY),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function WY(r){Lt(HY),r.registerChartView(LY),r.registerSeriesModel(RY),r.registerLayout(MY),r.registerProcessor(Ef("radar")),r.registerPreprocessor(DY)}var ZT="\0_ec_interaction_mutex";function $Y(r,t,e){var n=l1(r);n[t]=e}function UY(r,t,e){var n=l1(r),i=n[t];i===e&&(n[t]=null)}function XT(r,t){return!!l1(r)[t]}function l1(r){return r[ZT]||(r[ZT]={})}Zn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},de);var YY=function(r){B(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var i=at(n._mousedownHandler,n),a=at(n._mousemoveHandler,n),o=at(n._mouseupHandler,n),s=at(n._mousewheelHandler,n),l=at(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=pt(mt(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",i),e.on("mousemove",a),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!_x(e)){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!ph("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||XT(this._zr,"globalPan"))){var n=e.offsetX,i=e.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&gi(e.event),kE(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){_x(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=ph("zoomOnMouseWheel",e,this._opt),i=ph("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;vg(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(a),h=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);vg(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!XT(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;vg(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Zr);function vg(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(gi(n.event),kE(r,t,e,n,i))}function kE(r,t,e,n,i){i.isAvailableBehavior=at(ph,null,e,n),r.trigger(t,i)}function ph(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}const Of=YY;function u1(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function f1(r,t,e,n){var i=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(e-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var ZY={axisPointer:1,tooltip:1,brush:1};function wd(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!ZY.hasOwnProperty(n.mainType)&&i&&i.model!==e}function OE(r){if(nt(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var dg,uv={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},qT=kt(uv),fv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},KT=kt(fv),XY=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=OE(t);this._defsUsePending=[];var i=new _t;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),xr(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;jY(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=Td(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(c=VE(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var v=i;i=new _t,i.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Vt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:a}},r.prototype._parseNode=function(t,e,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!a){var f=dg[s];if(f&&st(dg,s)){l=f.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});e.add(l)}}var v=jT[s];if(v&&st(jT,s)){var d=v.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new $u({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),qY(n,e);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=function(){dg={g:function(t,e){var n=new _t;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Vt;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new da;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Ee;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new y_;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),i;n&&(i=tA(n));var a=new yr({shape:{points:i||[]},silent:!0});return Rr(e,a),xr(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,e){var n=t.getAttribute("points"),i;n&&(i=tA(n));var a=new mr({shape:{points:i||[]},silent:!0});return Rr(e,a),xr(t,a,this._defsUsePending,!1,!1),a},image:function(t,e){var n=new He;return Rr(e,n),xr(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new _t;return Rr(e,s),xr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new _t;return Rr(e,s),xr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",i=fP(n);return Rr(e,i),xr(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),jT={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),a=new bf(t,e,n,i);return JT(r,a),QT(r,a),a},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),i=new wP(t,e,n);return JT(r,i),QT(r,i),i}};function JT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function QT(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};NE(e,a,a);var o=a.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}e=e.nextSibling}}function Rr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),pt(t.__inheritedStyle,r.__inheritedStyle))}function tA(r){for(var t=Td(r),e=[],n=0;n<t.length;n+=2){var i=parseFloat(t[n]),a=parseFloat(t[n+1]);e.push([i,a])}return e}function xr(r,t,e,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};r.nodeType===1&&(t7(r,t),NE(r,o,s),n||e7(r,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=eA(a,"fill",o.fill,e)),o.stroke!=null&&(a.style.stroke=eA(a,"stroke",o.stroke,e)),M(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),M(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=Z(Td(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function qY(r,t){var e=t.__selfStyle;if(e){var n=e.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),r.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var KY=/^url\(\s*#(.*?)\)/;function eA(r,t,e,n){var i=e&&e.match(KY);if(i){var a=an(i[1]);n.push([r,t,a]);return}return e==="none"&&(e=null),e}function jY(r,t){for(var e=0;e<t.length;e++){var n=t[e];n[0].style[n[1]]=r[n[2]]}}var JY=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Td(r){return r.match(JY)||[]}var QY=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,pg=Math.PI/180;function t7(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=[],i=null;e.replace(QY,function(c,h,v){return n.push(h,v),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=Td(o);switch(i=i||Cr(),s){case"translate":Hn(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":t_(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Eo(i,i,-parseFloat(l[0])*pg,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*pg);li(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*pg);li(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var rA=/([^\s:;]+)\s*:\s*([^:;]+)/g;function NE(r,t,e){var n=r.getAttribute("style");if(n){rA.lastIndex=0;for(var i;(i=rA.exec(n))!=null;){var a=i[1],o=st(uv,a)?uv[a]:null;o&&(t[o]=i[2]);var s=st(fv,a)?fv[a]:null;s&&(e[s]=i[2])}}}function e7(r,t,e){for(var n=0;n<qT.length;n++){var i=qT[n],a=r.getAttribute(i);a!=null&&(t[uv[i]]=a)}for(var n=0;n<KT.length;n++){var i=KT[n],a=r.getAttribute(i);a!=null&&(e[fv[i]]=a)}}function VE(r,t){var e=t.width/r.width,n=t.height/r.height,i=Math.min(e,n);return{scale:i,x:-(r.x+r.width/2)*i+(t.x+t.width/2),y:-(r.y+r.height/2)*i+(t.y+t.height/2)}}function r7(r,t){var e=new XY;return e.parse(r,t)}var n7=ft(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),i7=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=ft(),this._freedGraphics=[],this._mapName=t,this._parsedXML=OE(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=o7(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,n;try{e=t&&r7(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,sr(n!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var i=new _t;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,h=void 0;if(a!=null?(u=0,c=a):s&&(u=s.x,c=s.width),o!=null?(f=0,h=o):s&&(f=s.y,h=s.height),u==null||f==null){var v=n.getBoundingRect();u==null&&(u=v.x,c=v.width),f==null&&(f=v.y,h=v.height)}l=this._boundingRect=new Mt(u,f,c,h)}if(s){var d=VE(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}i.setClipPath(new Vt({shape:l.plain()}));var p=[];return M(e.named,function(g){n7.get(g.svgNodeTagLower)!=null&&(p.push(g),a7(g.el))}),{root:i,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},r}();function a7(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function o7(r){var t=[],e=ft();return M(r,function(n){if(n.namedFrom==null){var i=new wU(n.name,n.el);t.push(i),e.set(n.name,i)}}),{regions:t,regionsMap:e}}var Fm=[126,25],nA="南海诸岛",Ua=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Ha=0;Ha<Ua.length;Ha++)for(var rs=0;rs<Ua[Ha].length;rs++)Ua[Ha][rs][0]/=10.5,Ua[Ha][rs][1]/=-10.5/.75,Ua[Ha][rs][0]+=Fm[0],Ua[Ha][rs][1]+=Fm[1];function s7(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===nA)return;t.push(new RR(nA,Z(Ua,function(n){return{type:"polygon",exterior:n}}),Fm))}}var l7={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function u7(r,t){if(r==="china"){var e=l7[t.name];if(e){var n=t.getCenter();n[0]+=e[0]/10.5,n[1]+=-e[1]/(10.5/.75),t.setCenter(n)}}}var f7=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function c7(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:f7[0]})}var h7="name",v7=function(){function r(t,e,n){this.type="geoJSON",this._parsedMap=ft(),this._mapName=t,this._specialAreas=n,this._geoJSON=p7(e)}return r.prototype.load=function(t,e){e=e||h7;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:d7(i)})}var a=ft(),o=[];return M(n.regions,function(s){var l=s.name;t&&st(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Mt(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(t){var e=this._mapName,n=this._geoJSON,i;try{i=n?AU(n,t):[]}catch(a){throw new Error(`Invalid geoJson format
`+a.message)}return s7(e,i),M(i,function(a){var o=a.name;u7(e,a),c7(e,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function d7(r){for(var t,e=0;e<r.length;e++){var n=r[e].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function p7(r){return nt(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Bl=ft();const bi={registerMap:function(r,t,e){if(t.svg){var n=new i7(r,t.svg);Bl.set(r,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?e=t.specialAreas:i=t;var n=new v7(r,i,e);Bl.set(r,n)}},getGeoResource:function(r){return Bl.get(r)},getMapForUser:function(r){var t=Bl.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var n=Bl.get(r);if(n)return n.load(t,e)}};var c1=["rect","circle","line","ellipse","polygon","polyline","path"],g7=ft(c1),y7=ft(c1.concat(["g"])),m7=ft(c1.concat(["g"])),BE=Nt();function Ic(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function iA(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var _7=function(){function r(t){var e=new _t;this.uid=rl("ec_map_draw"),this._controller=new Of(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new _t),e.add(this._svgGroup=new _t)}return r.prototype.draw=function(t,e,n,i,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,f=this.group,c=l.getTransformInfo(),h=c.raw,v=c.roam,d=!u.childAt(0)||a;d?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Ht(f,v,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,u,n,i)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(v,d){return d&&(v=d(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function c(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],p);y&&d.push(y)}return d}function h(v){return{shape:{points:c(v)}}}i.removeAll(),M(t.geo.regions,function(v){var d=v.name,p=e.get(d),g=n.get(d)||{},y=g.dataIdx,m=g.regionModel;if(!p){p=e.set(d,new _t),i.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(p.silent=_),n.set(d,{dataIdx:y,regionModel:m})}var S=[],x=[];M(v.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=fA(A,u)),M(A,function(D){S.push(new yr(h(D)))})}else{var C=T.points;u&&(C=fA(C,u,!0)),M(C,function(D){x.push(new mr(h(D)))})}});var b=f(v.getCenter(),l&&l.project);function w(T,A){if(T.length){var C=new __({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(C),aA(t,C,y,m),oA(t,C,d,m,o,y,b),A&&(iA(C),M(C.states,iA))}}w(S),w(x,!0)}),e.each(function(v,d){var p=n.get(d),g=p.dataIdx,y=p.regionModel;sA(t,v,d,y,o,g),lA(t,v,d,y,o),uA(t,v,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=ft(),a=!1;M(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,f=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);g7.get(f)!=null&&c instanceof Yr&&aA(t,c,h,v),c instanceof Yr&&(c.culling=!0);var d=v.get("silent",!0);if(d!=null&&(c.silent=d),c.z2EmphasisLift=0,!o.namedFrom&&(m7.get(f)!=null&&oA(t,c,s,v,l,h,null),sA(t,c,s,v,l,h),lA(t,c,s,v,l),y7.get(f)!=null)){var p=uA(t,c,s,v,l);p==="self"&&(a=!0);var g=i.get(s)||i.set(s,[]);g.push(c)}},this),this._enableBlurEntireSVG(a,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Do(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var n=e.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(t);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=bi.getGeoResource(t);if(e&&e.type==="geoSVG"){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=bi.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,u1(o,u.dx,u.dy),n.dispatchAction(F(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,f1(o,u.scale,u.originX,u.originY),n.dispatchAction(F(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,f,c){return i.containPoint([f,c])&&!wd(u,n,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=BE(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,n,i){var a=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){a._mouseDownFlag=!0}),e.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},r}();function aA(r,t,e,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Ic(i),u=Ic(a),f=Ic(s),c=Ic(o),h=r.data;if(h){var v=h.getItemVisual(e,"style"),d=h.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=Hs(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=c,Do(t)}function oA(r,t,e,n,i,a,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),f=s&&s.getItemLayout(a);if(l||u||f&&f.showLabel){var c=l?e:a,h=void 0;(!s||a>=0)&&(h=i);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Fe(t,De(n),{labelFetcher:h,labelDataIndex:c,defaultText:e},v);var d=t.getTextContent();if(d&&(BE(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function sA(r,t,e,n,i,a){r.data?r.data.setItemGraphicEl(a,t):St(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:e,region:n&&n.option||{}}}function lA(r,t,e,n,i){r.data||ko({el:t,componentModel:i,itemName:e,itemTooltipOption:n.get("tooltip")})}function uA(r,t,e,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return ue(t,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&S3(t,i,e),o}function fA(r,t,e){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),M(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),n}const zE=_7;var S7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new zE(i);o.add(s.group),s.draw(e,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(e,n,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,n,i){var a=e.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,c=u.offset,h=new da({style:{fill:e.getData().getVisual("style").fill},shape:{cx:f[0]+c*9,cy:f[1],r:3},silent:!0,z2:8+(c?0:Qs+1)});if(!c){var v=e.mainSeries.getData(),d=a.getName(l),p=v.indexOfName(d),g=a.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(p);Fe(h,De(g),{labelFetcher:{getFormattedLabel:function(_,S){return e.getFormattedLabel(p,S)}},defaultText:d}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Hh(h,_)}}o.add(h)}}})},t.type="map",t}(ee);const x7=S7;var b7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var n=cl(this,{coordDimensions:["value"],encodeDefaulter:bt(I_,this)}),i=ft(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,o)}var u=bi.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return M(u.regions,function(f){var c=f.name,h=i.get(c),v=f.properties&&f.properties.echartsStyle,d;h==null?(d={name:c},a.push(d)):d=n.getRawDataItem(h),v&&Tt(d,v)}),n.appendData(a),n},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var n=this.getData();return n.get(n.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var n=this.getData();return n.getItemModel(n.indexOfName(e))},t.prototype.formatTooltip=function(e,n,i){for(var a=this.getData(),o=this.getRawValue(e),s=a.getName(e),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var c=l[f].originalData.indexOfName(s),h=a.mapDimension("value");isNaN(l[f].originalData.get(h,c))||u.push(l[f].name)}return Ie("section",{header:u.join(", "),noHeader:!u.length,blocks:[Ie("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var n=e.icon||"roundRect",i=me(n,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return i.setStyle(e.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(le);const w7=b7;function T7(r,t){var e={};return M(r,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(n,i){for(var a="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=e[a].length,f=0;f<u;f++)s=Math.min(s,e[a][f]),l=Math.max(l,e[a][f]),o+=e[a][f];var c;return t==="min"?c=s:t==="max"?c=l:t==="average"?c=o/u:c=o,u===0?NaN:c})}function A7(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),M(t,function(e,n){for(var i=T7(Z(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(var a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=a===0&&!e[a].getHostGeoModel(),e[a].setData(i.cloneShallow()),e[a].mainSeries=e[0]})}function C7(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getMapType();if(!(e.getHostGeoModel()||t[n])){var i={};M(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var c=l.getName(f),h=s.getRegion(c);if(!(!h||isNaN(u))){var v=i[c]||0,d=s.dataToPoint(h.getCenter());i[c]=v+1,l.setItemLayout(f,{point:d,offset:v})}})});var a=e.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),t[n]=!0}})}var cA=Be,M7=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ai,n._rawTransformable=new ai,n.name=e,n}return t.prototype.setBoundingRect=function(e,n,i,a){return this._rect=new Mt(e,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,n,i,a){this._transformTo(e,n,i,a),this._viewRect=new Mt(e,n,i,a)},t.prototype._transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Mt(e,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,n){e&&(this._center=[et(e[0],n.getWidth()),et(e[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var n=this.zoomLimit;n&&(n.max!=null&&(e=Math.min(n.max,e)),n.min!=null&&(e=Math.max(n.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),n=e.x+e.width/2,i=e.y+e.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=Be([],a,e),i=Be([],i,e),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,n=this._rawTransformable;n.parent=e,e.updateTransform(),n.updateTransform(),Q0(this.transform||(this.transform=[]),n.transform||Cr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],js(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,n=this._roamTransformable,i=new ai;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?cA(i,e,a):er(i,e)},t.prototype.pointToData=function(e){var n=this.invTransform;return n?cA([],e,n):[e[0],e[1]]},t.prototype.convertToPixel=function(e,n,i){var a=hA(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,n,i){var a=hA(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(ai);function hA(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const Nf=M7;var D7={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},GE=["lng","lat"],FE=function(r){B(t,r);function t(e,n,i){var a=r.call(this,e)||this;a.dimensions=GE,a.type="geo",a._nameCoordMap=ft(),a.map=n;var o=i.projection,s=bi.load(n,i.nameMap,i.nameProperty),l=bi.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,f=D7[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var c;if(o)for(var h=0;h<u.length;h++){var v=u[h].getBoundingRect(o);c=c||v.clone(),c.union(v)}else c=s.boundingRect;return a.setBoundingRect(c.x,c.y,c.width,c.height),a.aspectScale=o?1:xt(i.aspectScale,f.aspectScale),a._invertLongitute=o?!1:f.invertLongitute,a}return t.prototype._transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Mt(e,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(e))return n[i]}},t.prototype.addGeoCoord=function(e,n){this._nameCoordMap.set(e,n)},t.prototype.getGeoCoord=function(e){var n=this._regionsMap.get(e);return this._nameCoordMap.get(e)||n&&n.getCenter()},t.prototype.dataToPoint=function(e,n,i){if(nt(e)&&(e=this.getGeoCoord(e)),e){var a=this.projection;return a&&(e=a.project(e)),e&&this.projectedToPoint(e,n,i)}},t.prototype.pointToData=function(e){var n=this.projection;return n&&(e=n.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,n,i){return r.prototype.dataToPoint.call(this,e,n,i)},t.prototype.convertToPixel=function(e,n,i){var a=vA(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,n,i){var a=vA(n);return a===this?a.pointToData(i):null},t}(Nf);_e(FE,Nf);function vA(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",ge).models[0]||{}).coordinateSystem:null}const dA=FE;function pA(r,t){var e=r.get("boundingCoords");if(e!=null){var n=e[0],i=e[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var f=function(b,w,T,A){for(var C=T-b,D=A-w,I=0;I<=100;I++){var L=I/100,P=a.project([b+C*L,w+D*L]);Ui(n,n,P),Yi(i,i,P)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var c=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),d=t.getWidth(),p=t.getHeight(),g=c.width/c.height*this.aspectScale,y=!1,m,_;h&&v&&(m=[et(h[0],d),et(h[1],p)],_=et(v,Math.min(d,p)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var x=r.getBoxLayoutParams();x.aspect=g,S=be(x,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function I7(r,t){M(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var L7=function(){function r(){this.dimensions=GE}return r.prototype.create=function(t,e){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new dA(l+s,l,F({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=pA,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),M(a,function(o,s){var l=Z(o,function(f){return f.get("nameMap")}),u=new dA(s,s,F({nameMap:q0(l)},i(o[0])));u.zoomLimit=Re.apply(null,Z(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=pA,u.resize(o[0],e),M(o,function(f){f.coordinateSystem=u,I7(u,f)})}),n},r.prototype.getFilledRegions=function(t,e,n,i){for(var a=(t||[]).slice(),o=ft(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=bi.load(e,n,i);return M(l.regions,function(u){var f=u.name,c=o.get(f),h=u.properties&&u.properties.echartsStyle;c||(c={name:f},a.push(c)),h&&Tt(c,h)}),a},r}(),P7=new L7;const HE=P7;var R7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,i){var a=bi.getGeoResource(e.map);if(a&&a.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,i),Ao(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,n=this.option;n.regions=HE.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=Fn(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new te(o,e,e.ecModel)),o.selected&&(i[s]=!0)),a},ft()),n.selectedMap||(n.selectedMap=i)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new te(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,n){var i=this.getRegionModel(e),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:e};if(vt(a))return o.status=n,a(o);if(nt(a))return a.replace("{a}",e!=null?e:"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[e]=!0}},t.prototype.unSelect=function(e){var n=this.option.selectedMap;n&&(n[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var n=this.option.selectedMap;return!!(n&&n[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Bt);const E7=R7;function gA(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function h1(r,t,e,n){var i=r.getZoom(),a=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(gA(r,s),n)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}r.scaleX*=o,r.scaleY*=o;var f=(t.originX-r.x)*(o-1),c=(t.originY-r.y)*(o-1);r.x-=f,r.y-=c,r.updateTransform(),r.setCenter(gA(r,s),n),r.setZoom(o*i)}return{center:r.getCenter(),zoom:r.getZoom()}}var k7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,n){this._api=n},t.prototype.render=function(e,n,i,a){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new zE(i));var o=this._mapDraw;o.draw(e,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,n,i)},t.prototype._handleRegionClick=function(e){var n;so(e.target,function(i){return(n=St(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(e,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=St(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(fe);const O7=k7;function N7(r,t,e){bi.registerMap(r,t,e)}function WE(r){r.registerCoordinateSystem("geo",HE),r.registerComponentModel(E7),r.registerComponentView(O7),r.registerImpl("registerMap",N7),r.registerImpl("getMap",function(e){return bi.getMapForUser(e)});function t(e,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[e](i.name);var u=l.coordinateSystem;M(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];M(o,function(c,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,n,i){var a=e.componentType||"series";n.eachComponent({mainType:a,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=h1(s,e,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&M(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function V7(r){Lt(WE),r.registerChartView(x7),r.registerSeriesModel(w7),r.registerLayout(C7),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,A7),z2("map",r.registerAction)}function B7(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],n,i;n=e.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function z7(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,i=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){H7(r);var a=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+t(r,i),r.hierNode.modifier=r.hierNode.prelim-a):r.hierNode.prelim=a}else i&&(r.hierNode.prelim=i.hierNode.prelim+t(r,i));r.parentNode.hierNode.defaultAncestor=W7(r,i,r.parentNode.hierNode.defaultAncestor||n[0],t)}function G7(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function yA(r){return arguments.length?r:Y7}function ru(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function F7(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function H7(r){for(var t=r.children,e=t.length,n=0,i=0;--e>=0;){var a=t[e];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function W7(r,t,e,n){if(t){for(var i=r,a=r,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=gg(s),a=yg(a),s&&a;){i=gg(i),o=yg(o),i.hierNode.ancestor=r;var h=s.hierNode.prelim+c-a.hierNode.prelim-u+n(s,a);h>0&&(U7($7(s,r,e),r,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,f+=o.hierNode.modifier}s&&!gg(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=c-l),a&&!yg(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-f,e=r)}return e}function gg(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function yg(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function $7(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function U7(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function Y7(r,t){return r.parentNode===t.parentNode?1:2}var Z7=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),X7=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Z7},t.prototype.buildPath=function(e,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,h=et(n.forkPosition,1),v=[];v[f]=o[f],v[c]=o[c]+(l[c]-o[c])*h,e.moveTo(o[0],o[1]),e.lineTo(v[0],v[1]),e.moveTo(s[0],s[1]),v[f]=s[f],e.lineTo(v[0],v[1]),v[f]=l[f],e.lineTo(v[0],v[1]),e.lineTo(l[0],l[1]);for(var d=1;d<a-1;d++){var p=i[d];e.moveTo(p[0],p[1]),v[f]=p[f],e.lineTo(v[0],v[1])}},t}(Pt),q7=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new _t,e}return t.prototype.init=function(e,n){this._controller=new Of(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,n,i){var a=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,i),this._updateController(e,n,i);var u=this._data;a.diff(u).add(function(f){mA(a,f)&&_A(a,f,null,s,e)}).update(function(f,c){var h=u.getItemGraphicEl(c);if(!mA(a,f)){h&&xA(u,c,h,s,e);return}_A(a,f,h,s,e)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&xA(u,f,c,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:c})})}),this._data=a},t.prototype._updateViewCoordSys=function(e,n){var i=e.getData(),a=[];i.each(function(c){var h=i.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&a.push([+h.x,+h.y])});var o=[],s=[];Qv(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=e.coordinateSystem=new Nf;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(e.get("center"),n),f.setZoom(e.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!wd(u,i,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){u1(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){f1(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(e),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var n=e.getData(),i=this._getNodeGlobalScale(e);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(e){var n=e.coordinateSystem;if(n.type!=="view")return 1;var i=this._nodeScaleRatio,a=n.scaleX||1,o=n.getZoom(),s=(o-1)*i+1;return s/a},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(ee);function mA(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function _A(r,t,e,n,i){var a=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",f=r.tree.root,c=o.parentNode===f?o:o.parentNode||o,h=r.getItemGraphicEl(c.dataIndex),v=c.getLayout(),d=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,p=o.getLayout();a?(e=new If(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=d.x,e.y=d.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=p.rawX,e.__radialRawY=p.rawY,n.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,Ht(e,{x:p.x,y:p.y},i);var g=e.getSymbolPath();if(i.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(b.y-m.y,b.x-m.x),S<0&&(S=Math.PI*2+S),x=b.x<m.x,x&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<m.x,x&&(S=S-Math.PI)):(x=p.x>m.x,x||(S=S-Math.PI));var w=x?"left":"right",T=s.getModel("label"),A=T.get("rotate"),C=A*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:A==null?-S:C,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Bu(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(St(e).focus=L),K7(i,o,f,e,d,v,p,n),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var E=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===xf||Hh(e.__edge,P)}})}function K7(r,t,e,n,i,a,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=n.__edge=new nd({shape:Hm(f,c,h,i,i)})),Ht(p,{shape:Hm(f,c,h,a,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new X7({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:v}})),Ht(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(pt({strokeNoScale:!0,fill:null},d)),Ge(p,l,"lineStyle"),Do(p),s.add(p))}function SA(r,t,e,n,i){var a=t.tree.root,o=$E(a,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var f=t.getItemGraphicEl(s.dataIndex),c=f.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),v=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);h&&(v==="curve"?oa(h,{shape:Hm(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){e.remove(h)},removeOpt:i}):v==="polyline"&&n.get("layout")==="orthogonal"&&oa(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){e.remove(h)},removeOpt:i}))}}function $E(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,n;n=e.getLayout(),n==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:n}}function xA(r,t,e,n,i){var a=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=$E(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};oa(e,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){SA(u,r,n,i,l)}),SA(a,r,n,i,l)}function Hm(r,t,e,n,i){var a,o,s,l,u,f,c,h;if(r==="radial"){u=n.rawX,c=n.rawY,f=i.rawX,h=i.rawY;var v=ru(u,c),d=ru(u,c+(h-c)*e),p=ru(f,h+(c-h)*e),g=ru(f,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,c=n.y,f=i.x,h=i.y,(t==="LR"||t==="RL")&&(a=u+(f-u)*e,o=c,s=f+(u-f)*e,l=h),(t==="TB"||t==="BT")&&(a=u,o=c+(h-c)*e,s=f,l=h+(c-h)*e);return{x1:u,y1:c,x2:f,y2:h,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}const j7=q7;var Ur=Nt();function UE(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,YE(t,e,r),M(e,function(n){M(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,bt(J7,r))})}),t.wrapMethod("cloneShallow",bt(t9,r)),M(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,bt(Q7,r))}),sr(e[t.dataType]===t)}function J7(r,t){if(n9(this)){var e=F({},Ur(this).datas);e[this.dataType]=t,YE(t,e,r)}else v1(t,this.dataType,Ur(this).mainData,r);return t}function Q7(r,t){return r.struct&&r.struct.update(),t}function t9(r,t){return M(Ur(t).datas,function(e,n){e!==t&&v1(e.cloneShallow(),n,t,r)}),t}function e9(r){var t=Ur(this).mainData;return r==null||t==null?t:Ur(t).datas[r]}function r9(){var r=Ur(this).mainData;return r==null?[{data:r}]:Z(kt(Ur(r).datas),function(t){return{type:t,data:Ur(r).datas[t]}})}function n9(r){return Ur(r).mainData===r}function YE(r,t,e){Ur(r).datas={},M(t,function(n,i){v1(n,i,r,e)})}function v1(r,t,e,n){Ur(e).datas[t]=r,Ur(r).mainData=e,r.dataType=t,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=r),r.getLinkedData=e9,r.getLinkedDataAll=r9}var i9=function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,n){vt(t)&&(n=e,e=t,t=null),t=t||{},nt(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=e.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,e,n);i==="postorder"&&e.call(n,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var a=n[e].getNodeById(t);if(a)return a}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var a=n[e].contains(t);if(a)return a}},r.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),a9=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,n){var i=new r(e),a=[],o=1;s(t);function s(f,c){var h=f.value;o=Math.max(o,Y(h)?h.length:1),a.push(f);var v=new i9(xe(f.name,""),i);c?o9(v,c):i.root=v,i._nodes.push(v);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}i.root.updateDepthAndHeight(0);var l=Mf(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new or(l,e);return u.initData(a),n&&n(u),UE({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},r}();function o9(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}const d1=a9;function af(r,t,e){if(r&&Dt(t,r.type)>=0){var n=e.getData().tree.root,i=r.targetNode;if(nt(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=r.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function ZE(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function p1(r,t){var e=ZE(r);return Dt(e,t)>=0}function Ad(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var s9=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},i=e.leaves||{},a=new te(i,this,this.ecModel),o=d1.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Ie("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Ad(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(le);const l9=s9;function u9(r,t,e){for(var n=[r],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)t(a,e)}function zl(r,t){for(var e=[r],n;n=e.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)e.push(i[a])}}function f9(r,t){r.eachSeriesByType("tree",function(e){c9(e,t)})}function c9(r,t){var e=F7(r,t);r.layoutInfo=e;var n=r.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(e.height,e.width)/2,o=yA(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(i=e.width,a=e.height,o=yA());var s=r.getData().tree.root,l=s.children[0];if(l){B7(s),u9(l,z7,o),s.hierNode.modifier=-l.hierNode.prelim,zl(l,G7);var u=l,f=l,c=l;zl(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>f.getLayout().x&&(f=_),_.depth>c.depth&&(c=_)});var h=u===f?1:o(u,f)/2,v=h-u.getLayout().x,d=0,p=0,g=0,y=0;if(n==="radial")d=i/(f.getLayout().x+h+v),p=a/(c.depth-1||1),zl(l,function(_){g=(_.getLayout().x+v)*d,y=(_.depth-1)*p;var S=ru(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),zl(l,function(_){y=(_.getLayout().x+v)*p,g=m==="LR"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=i/(f.getLayout().x+h+v),p=a/(c.depth-1||1),zl(l,function(_){g=(_.getLayout().x+v)*d,y=m==="TB"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function h9(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(i.dataIndex,"style");F(s,o)})})}function v9(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=h1(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function d9(r){r.registerChartView(j7),r.registerSeriesModel(l9),r.registerLayout(f9),r.registerVisual(h9),v9(r)}var bA=["treemapZoomToNode","treemapRender","treemapMove"];function p9(r){for(var t=0;t<bA.length;t++)r.registerAction({type:bA[t],update:"updateView"},de);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"treemap",query:e},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=af(e,s,a);if(l){var u=a.getViewRoot();u&&(e.direction=p1(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function XE(r){var t=r.getData(),e=t.tree,n={};e.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=ym(r.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var g9=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var i={name:e.name,children:e.data};qE(i);var a=e.levels||[],o=this.designatedVisualItemStyle={},s=new te({itemStyle:o},this,n);a=e.levels=y9(a,n);var l=Z(a||[],function(c){return new te(c,s,n)},this),u=d1.createTree(i,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return Ie("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Ad(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ft(),this._idIndexMapCount=0);var i=n.get(e);return i==null&&n.set(e,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){XE(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(le);function qE(r){var t=0;M(r.children,function(n){qE(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var e=r.value;Y(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Y(r.value)?r.value[0]=e:r.value=e}function y9(r,t){var e=Zt(t.get("color")),n=Zt(t.get(["aria","decal","decals"]));if(e){r=r||[];var i,a;M(r,function(s){var l=new te(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(a=!0)});var o=r[0]||(r[0]={});return i||(o.color=e.slice()),!a&&n&&(o.decal=n.slice()),r}}const m9=g9;var _9=8,wA=8,mg=5,S9=function(){function r(t){this.group=new _t,t.add(this.group)}return r.prototype.render=function(t,e,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(t,c,s,l,u,f,i),hd(o,c.pos,c.box)}},r.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var a=xe(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+_9*2,e.emptyItemWidth);e.totalWidth+=s+wA,e.renderList.push({node:i,text:a,width:s})}},r.prototype._renderContent=function(t,e,n,i,a,o,s){for(var l=0,u=e.emptyItemWidth,f=t.get(["breadcrumb","height"]),c=IH(e.pos,e.box),h=e.totalWidth,v=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],y=g.node,m=g.width,_=g.text;h>c.width&&(h-=m-u,m=u,_=null);var S=new yr({shape:{points:x9(l,0,m,f,p===v.length-1,p===0)},style:pt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gt({style:Qt(a,{text:_})}),textConfig:{position:"inside"},z2:Qs*1e4,onclick:bt(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Qt(o,{text:_}),S.ensureState("emphasis").style=d,ue(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),b9(S,t,y),l+=m+wA}},r.prototype.remove=function(){this.group.removeAll()},r}();function x9(r,t,e,n,i,a){var o=[[i?r:r-mg,t],[r+e,t],[r+e,t+n],[i?r:r-mg,t+n]];return!a&&o.splice(2,0,[r+e+mg,t+n/2]),!i&&o.push([r,t+n/2]),o}function b9(r,t,e){St(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Ad(e,t)}}const w9=S9;var T9=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:a}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function A9(){return new T9}var Wm=_t,TA=Vt,AA=3,CA="label",MA="upperLabel",C9=Qs*10,M9=Qs*2,D9=Qs*3,Ya=Mo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),DA=function(r){var t=Ya(r);return t.stroke=t.fill=t.lineWidth=null,t},cv=Nt(),I9=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=Gl(),e}return t.prototype.render=function(e,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(Dt(o,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=af(a,s,e),u=a&&a.type,f=e.layoutInfo,c=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,d=this._giveContainerGroup(f),p=e.get("animation"),g=this._doRender(d,e,v);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,e,v):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(e,i,l)}},t.prototype._giveContainerGroup=function(e){var n=this._containerGroup;return n||(n=this._containerGroup=new Wm,this._initEvents(n),this.group.add(n)),n.x=e.x,n.y=e.y,n},t.prototype._doRender=function(e,n,i){var a=n.getData().tree,o=this._oldTree,s=Gl(),l=Gl(),u=this._storage,f=[];function c(m,_,S,x){return L9(n,l,u,i,s,f,m,_,S,x)}p(a.root?[a.root]:[],o&&o.root?[o.root]:[],e,a===o||!o,0);var h=g(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,d=a.root.getLayout();d.width===v.width&&d.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:y};function p(m,_,S,x,b){x?(_=m,M(m,function(A,C){!A.isRemoved()&&T(C,C)})):new Si(_,m,w,w).add(T).update(T).remove(bt(T,null)).execute();function w(A){return A.getId()}function T(A,C){var D=A!=null?m[A]:null,I=C!=null?_[C]:null,L=c(D,I,S,b);L&&p(D&&D.viewChildren||[],I&&I.viewChildren||[],L,x,b+1)}}function g(m){var _=Gl();return m&&M(m,function(S,x){var b=_[x];M(S,function(w){w&&(b.push(w),cv(w).willDelete=!0)})}),_}function y(){M(h,function(m){M(m,function(_){_.parent&&_.parent.remove(_)})}),M(f,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(e,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(vt(o)?0:o)||0,u=(vt(s)?null:s)||"cubicOut",f=A9();M(n.willDeleteEls,function(c,h){M(c,function(v,d){if(!v.invisible){var p=v.parent,g,y=cv(p);if(a&&a.direction==="drillDown")g=p===a.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=h==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(v,g,l,0,u)}})}),M(this._storage,function(c,h){M(c,function(v,d){var p=n.lastsForAnimation[h][d],g={};p&&(v instanceof _t?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=F({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),f.add(v,g,l,0,u))})},this),this._state="animating",f.finished(at(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(e){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new Of(e.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",at(this._onPan,this)),n.on("zoom",at(this._onZoom,this)));var a=new Mt(0,0,e.getWidth(),e.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>AA||Math.abs(e.dy)>AA)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var n=e.originX,i=e.originY,a=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Mt(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var c=f.zoom=f.zoom||1;if(c*=a,u){var h=u.min||0,v=u.max||1/0;c=Math.max(Math.min(v,c),h)}var d=c/f.zoom;f.zoom=c;var p=this.seriesModel.layoutInfo;n-=p.x,i-=p.y;var g=Cr();Hn(g,g,[-n,-i]),t_(g,g,[d,d]),Hn(g,g,[n,i]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Xh(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,i){var a=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new w9(this.group))).render(e,n,i.node,function(o){a._state!=="animating"&&(p1(e.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(ee);function Gl(){return{nodeGroup:[],background:[],content:[]}}function L9(r,t,e,n,i,a,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,x=_&&_.length,b=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),A=h.getModel(["select","itemStyle"]),C=b.get("borderRadius")||0,D=gt("nodeGroup",Wm);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),cv(D).nodeWidth=v,cv(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=gt("background",TA,u,M9);I&&$(D,I,x&&f.upperLabelHeight);var L=h.getModel("emphasis"),P=L.get("focus"),E=L.get("blurScope"),O=L.get("disabled"),V=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)Yu(D)&&ao(D,!1),I&&(ao(I,!O),c.setItemGraphicEl(o.dataIndex,I),um(I,V,E));else{var N=gt("content",TA,u,D9);N&&q(D,N),I.disableMorphing=!0,I&&Yu(I)&&ao(I,!1),ao(D,!O),c.setItemGraphicEl(o.dataIndex,D);var z=h.getShallow("cursor");z&&N.attr("cursor",z),um(D,V,E)}return D;function $(K,H,tt){var j=St(H);if(j.dataIndex=o.dataIndex,j.seriesIndex=r.seriesIndex,H.setShape({x:0,y:0,width:v,height:d,r:C}),g)Q(H);else{H.invisible=!1;var lt=o.getVisual("style"),R=lt.stroke,k=DA(b);k.fill=R;var G=Ya(w);G.fill=w.get("borderColor");var X=Ya(T);X.fill=T.get("borderColor");var W=Ya(A);if(W.fill=A.get("borderColor"),tt){var J=v-2*p;ct(H,R,lt.opacity,{x:p,y:0,width:J,height:S})}else H.removeTextContent();H.setStyle(k),H.ensureState("emphasis").style=G,H.ensureState("blur").style=X,H.ensureState("select").style=W,Do(H)}K.add(H)}function q(K,H){var tt=St(H);tt.dataIndex=o.dataIndex,tt.seriesIndex=r.seriesIndex;var j=Math.max(v-2*p,0),lt=Math.max(d-2*p,0);if(H.culling=!0,H.setShape({x:p,y:p,width:j,height:lt,r:C}),g)Q(H);else{H.invisible=!1;var R=o.getVisual("style"),k=R.fill,G=DA(b);G.fill=k,G.decal=R.decal;var X=Ya(w),W=Ya(T),J=Ya(A);ct(H,k,R.opacity,null),H.setStyle(G),H.ensureState("emphasis").style=X,H.ensureState("blur").style=W,H.ensureState("select").style=J,Do(H)}K.add(H)}function Q(K){!K.invisible&&a.push(K)}function ct(K,H,tt,j){var lt=h.getModel(j?MA:CA),R=xe(h.get("name"),null),k=lt.getShallow("show");Fe(K,De(h,j?MA:CA),{defaultText:k?R:null,inheritColor:H,defaultOpacity:tt,labelFetcher:r,labelDataIndex:o.dataIndex});var G=K.getTextContent();if(G){var X=G.style,W=j0(X.padding||0);j&&(K.setTextConfig({layoutRect:j}),G.disableLabelLayout=!0),G.beforeUpdate=function(){var ot=Math.max((j?j.width:K.shape.width)-W[1]-W[3],0),ut=Math.max((j?j.height:K.shape.height)-W[0]-W[2],0);(X.width!==ot||X.height!==ut)&&G.setStyle({width:ot,height:ut})},X.truncateMinChar=2,X.lineOverflow="truncate",ht(X,j,f);var J=G.getState("emphasis");ht(J?J.style:null,j,f)}}function ht(K,H,tt){var j=K?K.text:null;if(!H&&tt.isLeafRoot&&j!=null){var lt=r.get("drillDownIcon",!0);K.text=lt?lt+" "+j:j}}function gt(K,H,tt,j){var lt=m!=null&&e[K][m],R=i[K];return lt?(e[K][m]=null,Et(R,lt)):g||(lt=new H,lt instanceof Yr&&(lt.z2=P9(tt,j)),U(R,lt)),t[K][y]=lt}function Et(K,H){var tt=K[y]={};H instanceof Wm?(tt.oldX=H.x,tt.oldY=H.y):tt.oldShape=F({},H.shape)}function U(K,H){var tt=K[y]={},j=o.parentNode,lt=H instanceof _t;if(j&&(!n||n.direction==="drillDown")){var R=0,k=0,G=i.background[j.getRawIndex()];!n&&G&&G.oldShape&&(R=G.oldShape.width,k=G.oldShape.height),lt?(tt.oldX=0,tt.oldY=k):tt.oldShape={x:R,y:k,width:0,height:0}}tt.fadein=!lt}}function P9(r,t){return r*C9+t}const R9=I9;var of=M,E9=yt,hv=-1,g1=function(){function r(t){var e=t.mappingMethod,n=t.type,i=this.option=mt(t);this.type=n,this.mappingMethod=e,this._normalizeData=N9[e];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[e],e==="piecewise"?(_g(i),k9(i)):e==="category"?i.categories?O9(i):_g(i,!0):(sr(e!=="linear"||i.dataExtent),_g(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return at(this._normalizeData,this)},r.listVisualTypes=function(){return kt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){yt(t)?M(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var i,a=Y(t)?[]:yt(t)?{}:(i=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);i?a=l:a[s]=l}),a},r.retrieveVisuals=function(t){var e={},n;return t&&of(r.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(e[a]=t[a],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(E9(t)){var e=[];of(t,function(n,i){e.push(i)}),t=e}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var i,a=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||nt(l)&&l===t+"")return o;n&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Pc(c[1],t,f[1]))return o}else if(f[1]===1/0){if(Pc(c[0],f[0],t))return o}else if(Pc(c[0],f[0],t)&&Pc(c[1],t,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(v,d){var p=Math.abs(v-t);p<a&&(a=p,i=d)}},r.visualHandlers={color:{applyVisual:Fl("color"),getColorMapper:function(){var t=this.option;return at(t.mappingMethod==="category"?function(e,n){return!n&&(e=this._normalizeData(e)),nu.call(this,e)}:function(e,n,i){var a=!!i;return!n&&(e=this._normalizeData(e)),i=Qd(e,t.parsedVisual,i),a?i:ui(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return ui(Qd(t,this.option.parsedVisual),"rgba")},category:nu,piecewise:function(t,e){var n=Um.call(this,e);return n==null&&(n=ui(Qd(t,this.option.parsedVisual),"rgba")),n},fixed:Za}},colorHue:Lc(function(t,e){return gu(t,e)}),colorSaturation:Lc(function(t,e){return gu(t,null,e)}),colorLightness:Lc(function(t,e){return gu(t,null,null,e)}),colorAlpha:Lc(function(t,e){return Nh(t,e)}),decal:{applyVisual:Fl("decal"),_normalizedToVisual:{linear:null,category:nu,piecewise:null,fixed:null}},opacity:{applyVisual:Fl("opacity"),_normalizedToVisual:$m([0,1])},liftZ:{applyVisual:Fl("liftZ"),_normalizedToVisual:{linear:Za,category:Za,piecewise:Za,fixed:Za}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:IA,category:nu,piecewise:function(t,e){var n=Um.call(this,e);return n==null&&(n=IA.call(this,t)),n},fixed:Za}},symbolSize:{applyVisual:Fl("symbolSize"),_normalizedToVisual:$m([0,1])}},r}();function k9(r){var t=r.pieceList;r.hasSpecialVisual=!1,M(t,function(e,n){e.originIndex=n,e.visual!=null&&(r.hasSpecialVisual=!0)})}function O9(r){var t=r.categories,e=r.categoryMap={},n=r.visual;if(of(t,function(o,s){e[o]=s}),!Y(n)){var i=[];yt(n)?of(n,function(o,s){var l=e[s];i[l!=null?l:hv]=o}):i[hv]=n,n=KE(r,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete e[t[a]],t.pop())}function _g(r,t){var e=r.visual,n=[];yt(e)?of(e,function(a){n.push(a)}):e!=null&&n.push(e);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),KE(r,n)}function Lc(r){return{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("color",r(e("color"),i))},_normalizedToVisual:$m([0,1])}}function IA(r){var t=this.option.visual;return t[Math.round(Ut(r,[0,1],[0,t.length-1],!0))]||{}}function Fl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function nu(r){var t=this.option.visual;return t[this.option.loop&&r!==hv?r%t.length:r]}function Za(){return this.option.visual[0]}function $m(r){return{linear:function(t){return Ut(t,r,this.option.visual,!0)},category:nu,piecewise:function(t,e){var n=Um.call(this,e);return n==null&&(n=Ut(t,r,this.option.visual,!0)),n},fixed:Za}}function Um(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=g1.findPieceIndex(r,e),i=e[n];if(i&&i.visual)return i.visual[this.type]}}function KE(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Z(t,function(e){var n=Mr(e);return n||[0,0,0,1]})),t}var N9={linear:function(r){return Ut(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=g1.findPieceIndex(r,t,!0);if(e!=null)return Ut(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?hv:t},fixed:de};function Pc(r,t,e){return r?t<=e:t<e}const ze=g1;var V9="itemStyle",jE=Nt();const B9={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||JE(e,{},r.getViewRoot().getAncestors(),r)}};function JE(r,t,e,n){var i=r.getModel(),a=r.getLayout(),o=r.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(V9),l=z9(s,t,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=LA(l),f=G9(c,h)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)h=LA(l),u.fill=h;else{var d=F9(r,i,a,s,l,v);M(v,function(p,g){if(p.depth>=e.length||p===e[p.depth]){var y=H9(i,l,p,g,d,n);JE(p,y,e,n)}})}}}function z9(r,t,e){var n=F({},t),i=e.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=r.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function LA(r){var t=Sg(r,"color");if(t){var e=Sg(r,"colorAlpha"),n=Sg(r,"colorSaturation");return n&&(t=gu(t,null,null,n)),e&&(t=Nh(t,e)),t}}function G9(r,t){return t!=null?gu(t,null,null,r):null}function Sg(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function F9(r,t,e,n,i,a){if(!(!a||!a.length)){var o=xg(t,"color")||i.color!=null&&i.color!=="none"&&(xg(t,"colorAlpha")||xg(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new ze(c);return jE(h).drColorMappingBy=f,h}}}function xg(r,t){var e=r.get(t);return Y(e)&&e.length?{name:t,range:e}:null}function H9(r,t,e,n,i,a){var o=F({},t);if(i){var s=i.type,l=s==="color"&&jE(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var sf=Math.max,vv=Math.min,PA=Re,y1=M,QE=["itemStyle","borderWidth"],W9=["itemStyle","gapWidth"],$9=["upperLabel","show"],U9=["upperLabel","height"];const Y9={seriesType:"treemap",reset:function(r,t,e,n){var i=e.getWidth(),a=e.getHeight(),o=r.option,s=be(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=et(PA(s.width,l[0]),i),f=et(PA(s.height,l[1]),a),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=af(n,h,r),d=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,p=r.getViewRoot(),g=ZE(p);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?J9(r,v,p,u,f):d?[d.width,d.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(S),tk(p,_,!1,0),S=p.getLayout(),y1(g,function(b,w){var T=(g[w+1]||p).getValue();b.setLayout(F({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var x=r.getData().tree.root;x.setLayout(Q9(s,d,v),!0),r.setLayoutInfo(s),ek(x,new Mt(-s.x,-s.y,i,a),g,p,0)}};function tk(r,t,e,n){var i,a;if(!r.isRemoved()){var o=r.getLayout();i=o.width,a=o.height;var s=r.getModel(),l=s.get(QE),u=s.get(W9)/2,f=rk(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),i=sf(i-2*h,0),a=sf(a-h-v,0);var d=i*a,p=Z9(r,s,d,t,e,n);if(p.length){var g={x:h,y:v,width:i,height:a},y=vv(i,a),m=1/0,_=[];_.area=0;for(var S=0,x=p.length;S<x;){var b=p[S];_.push(b),_.area+=b.getLayout().area;var w=j9(_,y,t.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,RA(_,y,g,u,!1),y=vv(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&RA(_,y,g,u,!0),!e){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(e=!0)}for(var S=0,x=p.length;S<x;S++)tk(p[S],t,e,n+1)}}}function Z9(r,t,e,n,i,a){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return r.viewChildren=[];o=$t(o,function(v){return!v.isRemoved()}),q9(o,s);var u=K9(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=X9(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*e;o[f].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function X9(r,t,e,n,i){if(!n)return e;for(var a=r.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/e*t<a&&(s=l,e-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),e}function q9(r,t){return t&&r.sort(function(e,n){var i=t==="asc"?e.getValue()-n.getValue():n.getValue()-e.getValue();return i===0?t==="asc"?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i}),r}function K9(r,t,e){for(var n=0,i=0,a=t.length;i<a;i++)n+=t[i].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],y1(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function j9(r,t,e){for(var n=0,i=1/0,a=0,o=void 0,s=r.length;a<s;a++)o=r[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=r.area*r.area,u=t*t*e;return l?sf(u*n/l,l/(u*i)):1/0}function RA(r,t,e,n,i){var a=t===e.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=e[s[a]],f=t?r.area/t:0;(i||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,h=r.length;c<h;c++){var v=r[c],d={},p=f?v.getLayout().area/f:0,g=d[l[o]]=sf(f-2*n,0),y=e[s[a]]+e[l[a]]-u,m=c===h-1||y<p?y:p,_=d[l[a]]=sf(m-2*n,0);d[s[o]]=e[s[o]]+vv(n,g/2),d[s[a]]=u+vv(n,_/2),u+=m,v.setLayout(d,!0)}e[s[o]]+=f,e[l[o]]-=f}function J9(r,t,e,n,i){var a=(t||{}).node,o=[n,i];if(!a||a===e)return o;for(var s,l=n*i,u=l*r.option.zoomToNodeRatio;s=a.parentNode;){for(var f=0,c=s.children,h=0,v=c.length;h<v;h++)f+=c[h].getValue();var d=a.getValue();if(d===0)return o;u*=f/d;var p=s.getModel(),g=p.get(QE),y=Math.max(g,rk(p));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>$x&&(u=$x),a=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,i*m]}function Q9(r,t,e){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!e)return n;var i=e.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function ek(r,t,e,n,i){var a=r.getLayout(),o=e[i],s=o&&o===r;if(!(o&&!s||i===e.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new Mt(t.x-a.x,t.y-a.y,t.width,t.height);y1(r.viewChildren||[],function(u){ek(u,l,e,n,i+1)})}}function rk(r){return r.get($9)?r.get(U9):0}function tZ(r){r.registerSeriesModel(m9),r.registerChartView(R9),r.registerVisual(B9),r.registerLayout(Y9),p9(r)}function eZ(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){Ft(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}function rZ(r){var t={};r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){nt(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),f=i.ensureUniqueItemVisual(o,"style");F(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)i.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function Rc(r){return r instanceof Array||(r=[r,r]),r}function nZ(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),i=Rc(t.get("edgeSymbol")),a=Rc(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=e.getEdgeByIndex(o),u=Rc(s.getShallow("symbol",!0)),f=Rc(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(F(h,c),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var Ym="-->",Cd=function(r){return r.get("autoCurveness")||null},nk=function(r,t){var e=Cd(r),n=20,i=[];if(Ft(e))n=e;else if(Y(e)){r.__curvenessList=e;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=i},lf=function(r,t,e){var n=[r.id,r.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[e.uid,n,i].join(Ym)},ik=function(r){var t=r.split(Ym);return[t[0],t[2],t[1]].join(Ym)},iZ=function(r,t){var e=lf(r.node1,r.node2,t);return t.__edgeMap[e]},aZ=function(r,t){var e=Zm(lf(r.node1,r.node2,t),t),n=Zm(lf(r.node2,r.node1,t),t);return e+n},Zm=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function oZ(r){Cd(r)&&(r.__curvenessList=[],r.__edgeMap={},nk(r))}function sZ(r,t,e,n){if(Cd(e)){var i=lf(r,t,e),a=e.__edgeMap,o=a[ik(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function m1(r,t,e,n){var i=Cd(t),a=Y(i);if(!i)return null;var o=iZ(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=aZ(r,t);nk(t,u),r.lineStyle=r.lineStyle||{};var f=lf(r.node1,r.node2,t),c=t.__curvenessList,h=a||u%2?0:1;if(o.isForward)return c[h+s];var v=ik(f),d=Zm(v,t),p=c[s+d+h];return n?a?i&&i[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:c[s+d+h]}function ak(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),_1(e,r)}}function _1(r,t){r.eachEdge(function(e,n){var i=Bn(e.getModel().get(["lineStyle","curveness"]),-m1(e,t,n,!0),0),a=si(e.node1.getLayout()),o=si(e.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),e.setLayout(s)})}function lZ(r,t){r.eachSeriesByType("graph",function(e){var n=e.get("layout"),i=e.coordinateSystem;if(i&&i.type!=="view"){var a=e.getData(),o=[];M(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=a.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}_1(a.graph,e)}else(!n||n==="none")&&ak(e)})}function iu(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*e+1;return a/n}function au(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var EA=Math.PI,bg=[];function S1(r,t,e,n){var i=r.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=r.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,f=Math.min(a.width,a.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(e){var h=i.pointToData(n),v=h[0],d=h[1],p=[v-l,d-u];Ks(p,p),th(p,p,f),e.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);ok(e,g,l,u)}uZ[t](r,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=Bn(y.getModel().get(["lineStyle","curveness"]),m1(y,r,m),0),S=si(y.node1.getLayout()),x=si(y.node2.getLayout()),b,w=(S[0]+x[0])/2,T=(S[1]+x[1])/2;+_&&(_*=3,b=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,x,b])})}}}var uZ={value:function(r,t,e,n,i,a,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=h})},symbolSize:function(r,t,e,n,i,a,o){var s=0;bg.length=o;var l=iu(r);t.eachNode(function(c){var h=au(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/n);isNaN(v)&&(v=EA/2),bg[c.dataIndex]=v,s+=v*2});var u=(2*EA-s)/o/2,f=0;t.eachNode(function(c){var h=u+bg[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+i,n*Math.sin(f)+a]),f+=h})}};function ok(r,t,e,n){var i=r.getGraphicEl();if(i){var a=r.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-e);u<0&&(u=Math.PI*2+u);var f=l[0]<e;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");F(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function fZ(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&S1(t,"symbolSize")})}var ns=Ey;function cZ(r,t,e){for(var n=r,i=t,a=e.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=e.gravity==null?.1:e.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=Ro(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=si(c.p),c.edges=null}var h=e.friction==null?.6:e.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,i);for(var y=[],m=n.length,_=0;_<i.length;_++){var S=i[_];if(!S.ignoreForceLayout){var x=S.n1,b=S.n2;no(y,b.p,x.p);var w=ky(y)-S.d,T=b.w/(x.w+b.w);isNaN(T)&&(T=0),Ks(y,y),!x.fixed&&ns(x.p,x.p,y,T*w*v),!b.fixed&&ns(b.p,b.p,y,-(1-T)*w*v)}}for(var _=0;_<m;_++){var A=n[_];A.fixed||(no(y,l,A.p),ns(A.p,A.p,y,u*v))}for(var _=0;_<m;_++)for(var x=n[_],C=_+1;C<m;C++){var b=n[C];no(y,b.p,x.p);var w=ky(y);w===0&&(m5(y,Math.random()-.5,Math.random()-.5),w=1);var D=(x.rep+b.rep)/w/w;!x.fixed&&ns(x.pp,x.pp,y,D),!b.fixed&&ns(b.pp,b.pp,y,-D)}for(var I=[],_=0;_<m;_++){var A=n[_];A.fixed||(no(I,A.p,A.pp),ns(A.p,A.p,I,v),er(A.pp,A.p))}v=v*.992;var L=v<.01;p&&p(n,i,L),g&&g(L)}}}function hZ(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(_){var S=a.getId(_);a.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?ak(t):l==="circular"&&S1(t,"value");var u=a.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=Y(c)?c:[c,c],d=Y(h)?h:[h,h];d=[d[1],d[0]];var p=a.mapArray("value",function(_,S){var x=a.getItemLayout(S),b=Ut(_,u,v);return isNaN(b)&&(b=(v[0]+v[1])/2),{w:b,rep:b,fixed:a.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=i.getEdgeByIndex(S),b=Ut(_,f,d);isNaN(b)&&(b=(d[0]+d[1])/2);var w=x.getModel(),T=Bn(x.getModel().get(["lineStyle","curveness"]),-m1(x,t,S,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:b,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=cZ(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var x=0,b=_.length;x<b;x++)_[x].fixed&&er(_[x].p,i.getNodeByIndex(x).getLayout())}),m.afterStep(function(_,S,x){for(var b=0,w=_.length;b<w;b++)_[b].fixed||i.getNodeByIndex(b).setLayout(_[b].p),n[a.getId(b)]=_[b].p;for(var b=0,w=S.length;b<w;b++){var T=S[b],A=i.getEdgeByIndex(b),C=T.n1.p,D=T.n2.p,I=A.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],er(I[0],C),er(I[1],D),+T.curveness&&(I[2]=[(C[0]+D[0])/2-(C[1]-D[1])*T.curveness,(C[1]+D[1])/2-(D[0]-C[0])*T.curveness]),A.setLayout(I)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function vZ(r,t,e){var n=F(r.getBoxLayoutParams(),{aspect:e});return be(n,{width:t.getWidth(),height:t.getHeight()})}function dZ(r,t){var e=[];return r.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(g){var y=a.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Qv(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=vZ(n,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],v=f.width,d=f.height,p=n.coordinateSystem=new Nf;p.zoomLimit=n.get("scaleLimit"),p.setBoundingRect(s[0],s[1],c,h),p.setViewRect(f.x,f.y,v,d),p.setCenter(n.get("center"),t),p.setZoom(n.get("zoom")),e.push(p)}}),e}var kA=Ee.prototype,wg=nd.prototype,sk=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(sk);function Tg(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var pZ=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sk},t.prototype.buildPath=function(e,n){Tg(n)?kA.buildPath.call(this,e,n):wg.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return Tg(this.shape)?kA.pointAt.call(this,e):wg.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,i=Tg(n)?[n.x2-n.x1,n.y2-n.y1]:wg.tangentAt.call(this,e);return Ks(i,i)},t}(Pt);const gZ=pZ;var Ag=["fromSymbol","toSymbol"];function OA(r){return"_"+r+"Type"}function NA(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=ul(i),u=Vo(o||0,l);return n+l+u+(a||"")+(s||"")}function VA(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=ul(i),u=Vo(o||0,l),f=me(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function yZ(r){var t=new gZ({name:"line",subPixelOptimize:!0});return Xm(t.shape,r),t}function Xm(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var mZ=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;return a._createLine(e,n,i),a}return t.prototype._createLine=function(e,n,i){var a=e.hostModel,o=e.getItemLayout(n),s=yZ(o);s.shape.percent=0,ae(s,{shape:{percent:1}},a,n),this.add(s),M(Ag,function(l){var u=VA(l,e,n);this.add(u),this[OA(l)]=NA(l,e,n)},this),this._updateCommonStl(e,n,i)},t.prototype.updateData=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),l={shape:{}};Xm(l.shape,s),Ht(o,l,a,n),M(Ag,function(u){var f=NA(u,e,n),c=OA(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=VA(u,e,n);this.add(h)}this[c]=f},this),this._updateCommonStl(e,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,h=i&&i.focus,v=i&&i.blurScope;if(!i||e.hasItemOption){var d=e.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),f=De(d)}var g=e.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,M(Ag,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<lr.length;T++){var A=lr[T],C=o.getState(A);if(C){var D=C.style||{},I=w.ensureState(A),L=I.style||(I.style={});D.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(L.opacity=D.opacity)}}w.markRedraw()}},this);var m=a.getRawValue(n);Fe(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(b,w){return a.getFormattedLabel(b,w,e.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?e.getName(n):isFinite(m)?ce(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");Y(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),ue(this,h,v,c)},t.prototype.highlight=function(){mi(this)},t.prototype.downplay=function(){_i(this)},t.prototype.updateLayout=function(e,n){this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");Xm(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),a=e.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=no([],c,f);Ks(h,h);function v(C,D){var I=C.__specifiedRotation;if(I==null){var L=l.tangentAt(D);C.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else C.attr("rotation",I)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(c),v(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,p=void 0,g=a.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],b=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(T=Math.PI+T),a.rotation=T}var A=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=m,p="top";break;default:A=0,p="middle"}switch(a.__position){case"end":a.x=h[0]*y+c[0],a.y=h[1]*m+c[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*y+f[0],a.y=-h[1]*m+f[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*w+f[0],a.y=f[1]+A,d=S[0]<0?"right":"left",a.originX=-y*w,a.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+A,d="center",a.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*w+c[0],a.y=c[1]+A,d=S[0]>=0?"right":"left",a.originX=y*w,a.originY=-A;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}},t}(_t);const x1=mZ;var _Z=function(){function r(t){this.group=new _t,this._LineCtor=t||x1}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=BA(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=BA(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!SZ(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=e.getItemLayout(i);if(Cg(a)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){pa(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(Cg(i)){var a=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,a),this.group.add(a)}},r.prototype._doUpdate=function(t,e,n,i,a){var o=t.getItemGraphicEl(n);if(!Cg(e.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(e,i,a):o=new this._LineCtor(e,i,a),e.setItemGraphicEl(i,o),this.group.add(o)},r}();function SZ(r){return r.animators&&r.animators.length>0}function BA(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:De(t)}}function zA(r){return isNaN(r[0])||isNaN(r[1])}function Cg(r){return r&&!zA(r[0])&&!zA(r[1])}const b1=_Z;var Mg=[],Dg=[],Ig=[],is=Le,Lg=po,GA=Math.abs;function FA(r,t,e){for(var n=r[0],i=r[1],a=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){Mg[0]=is(n[0],i[0],a[0],f),Mg[1]=is(n[1],i[1],a[1],f);var c=GA(Lg(Mg,t)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;Dg[0]=is(n[0],i[0],a[0],s),Dg[1]=is(n[1],i[1],a[1],s),Ig[0]=is(n[0],i[0],a[0],v),Ig[1]=is(n[1],i[1],a[1],v);var c=Lg(Dg,t)-l;if(GA(c)<.01)break;var d=Lg(Ig,t)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Pg(r,t){var e=[],n=zu,i=[[],[],[]],a=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[si(u[0]),si(u[1])],u[2]&&u.__original.push(si(u[2])));var h=u.__original;if(u[2]!=null){if(er(i[0],h[0]),er(i[1],h[2]),er(i[2],h[1]),f&&f!=="none"){var v=au(s.node1),d=FA(i,h[0],v*t);n(i[0][0],i[1][0],i[2][0],d,e),i[0][0]=e[3],i[1][0]=e[4],n(i[0][1],i[1][1],i[2][1],d,e),i[0][1]=e[3],i[1][1]=e[4]}if(c&&c!=="none"){var v=au(s.node2),d=FA(i,h[1],v*t);n(i[0][0],i[1][0],i[2][0],d,e),i[1][0]=e[1],i[2][0]=e[2],n(i[0][1],i[1][1],i[2][1],d,e),i[1][1]=e[1],i[2][1]=e[2]}er(u[0],i[0]),er(u[1],i[2]),er(u[2],i[1])}else{if(er(a[0],h[0]),er(a[1],h[1]),no(o,a[1],a[0]),Ks(o,o),f&&f!=="none"){var v=au(s.node1);Ey(a[0],a[0],o,v*t)}if(c&&c!=="none"){var v=au(s.node2);Ey(a[1],a[1],o,-v*t)}er(u[0],a[0]),er(u[1],a[1])}})}function HA(r){return r.type==="view"}var xZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){var i=new Lf,a=new b1,o=this.group;this._controller=new Of(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(e,n,i){var a=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(HA(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Ht(u,f,e)}Pg(e.getGraph(),iu(e));var c=e.getData();s.updateData(c);var h=e.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,n,i),clearTimeout(this._layoutTimeout);var v=e.forceLayout,d=e.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var p=e.get("layout");c.graph.eachNode(function(_){var S=_.dataIndex,x=_.getGraphicEl(),b=_.getModel();if(x){x.off("drag").off("dragend");var w=b.get("draggable");w&&x.on("drag",function(A){switch(p){case"force":v.warmUp(),!a._layouting&&a._startForceLayoutIteration(v,d),v.setFixed(S),c.setItemLayout(S,[x.x,x.y]);break;case"circular":c.setItemLayout(S,[x.x,x.y]),_.setLayout({fixed:!0},!0),S1(e,"symbolSize",_,[A.offsetX,A.offsetY]),a.updateLayout(e);break;case"none":default:c.setItemLayout(S,[x.x,x.y]),_1(e.getGraph(),e),a.updateLayout(e);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),x.setDraggable(w,!!b.get("cursor"));var T=b.get(["emphasis","focus"]);T==="adjacency"&&(St(x).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var S=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);S&&x==="adjacency"&&(St(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),y=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(_){ok(_,g,y,m)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var i=this;(function a(){e.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!wd(u,i,e)}),!HA(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){u1(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){f1(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),Pg(e.getGraph(),iu(e)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),i=iu(e);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(e){Pg(e.getGraph(),iu(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(ee);const bZ=xZ;function as(r){return"_EC_"+r}var wZ=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[as(t)]){var i=new Xa(t,e);return i.hostGraph=this,this.nodes.push(i),n[as(t)]=i,i}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[as(t)]},r.prototype.addEdge=function(t,e,n){var i=this._nodesMap,a=this._edgesMap;if(Ft(t)&&(t=this.nodes[t]),Ft(e)&&(e=this.nodes[e]),t instanceof Xa||(t=i[as(t)]),e instanceof Xa||(e=i[as(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new lk(t,e,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),a[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof Xa&&(t=t.id),e instanceof Xa&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(e,n[a],a)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(e,n[a],a)},r.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof Xa||(e=this._nodesMap[as(e)]),!!e){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(i,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;e.filterSelf(function(s){var l=i[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)i[e.getRawIndex(a)].dataIndex=a},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},r}(),Xa=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t==null?"":t,this.dataIndex=e==null?-1:e}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=ft(),e=ft(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,e.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)t.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},r}(),lk=function(){function r(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=n==null?-1:n}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=ft(),e=ft();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,e.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,e.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},r}();function uk(r,t){return{getValue:function(e){var n=this[r][t];return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,n){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}_e(Xa,uk("hostGraph","data"));_e(lk,uk("hostGraph","edgeData"));const TZ=wZ;function fk(r,t,e,n,i){for(var a=new TZ(n),o=0;o<r.length;o++)a.addNode(Re(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],c=f.source,h=f.target;a.addEdge(c,h,u)&&(l.push(f),s.push(Re(xe(f.id,null),c+" > "+h)),u++)}var v=e.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=Ai(r,e);else{var p=Af.get(v),g=p?p.dimensions||[]:[];Dt(g,"value")<0&&g.concat(["value"]);var y=Mf(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new or(y,e),d.initData(r)}var m=new or(["value"],e);return m.initData(l,s),i&&i(d,m),UE({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var AZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new kf(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Ao(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var i=e.edges||e.links||[],a=e.data||e.nodes||[],o=this;if(a&&i){oZ(this);var s=fk(a,i,this,!0,l);return M(s.edges,function(u){sZ(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=te.prototype.getModel;function h(d,p){var g=c.call(this,d,p);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(e,i),s=a.graph.getEdgeByIndex(e),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Ie("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=I2({series:this,dataIndex:e,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var e=Z(this.option.categories||[],function(i){return i.value!=null?i:F({value:0},i)}),n=new or(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(le);const CZ=AZ;var MZ={type:"graphRoam",event:"graphRoam",update:"none"};function DZ(r){r.registerChartView(bZ),r.registerSeriesModel(CZ),r.registerProcessor(eZ),r.registerVisual(rZ),r.registerVisual(nZ),r.registerLayout(lZ),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,fZ),r.registerLayout(hZ),r.registerCoordinateSystem("graphView",{dimensions:Nf.dimensions,create:dZ}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},de),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},de),r.registerAction(MZ,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=h1(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var IZ=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),LZ=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new IZ},t.prototype.buildPath=function(e,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),f=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+i(l)*s,n.y+a(l)*s),e.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),e.lineTo(n.x-i(l)*s,n.y-a(l)*s),e.lineTo(u,f)},t}(Pt);const PZ=LZ;function RZ(r,t){var e=r.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=et(e[0],t.getWidth()),s=et(e[1],t.getHeight()),l=et(r.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Ec(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var EZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeAll();var a=e.get(["axisLine","lineStyle","color"]),o=RZ(e,i);this._renderMain(e,n,i,a,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,i,a,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),h=c.get("roundCap"),v=h?lv:gr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];f_(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x<a.length;x++){var b=Math.min(Math.max(a[x][0],0),1);f=u+m*b;var w=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:a[x][1]}),w.setStyle(p.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),M(S,function(A){return s.add(A)});var T=function(A){if(A<=0)return a[0][1];var C;for(C=0;C<a.length;C++)if(a[C][0]>=A&&(C===0?0:a[C-1][0])<A)return a[C][1];return a[C-1][1]};this._renderTicks(e,n,i,T,o,u,f,l,g),this._renderTitleAndDetail(e,n,i,T,o),this._renderAnchor(e,o),this._renderPointer(e,n,i,T,o,u,f,l,g)},t.prototype._renderTicks=function(e,n,i,a,o,s,l,u,f){for(var c=this.group,h=o.cx,v=o.cy,d=o.r,p=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),x=m.get("splitNumber"),b=et(y.get("length"),d),w=et(m.get("length"),d),T=s,A=(l-s)/S,C=A/x,D=y.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),P,E,O=0;O<=S;O++){if(P=Math.cos(T),E=Math.sin(T),y.get("show")){var V=L?L+f:f,N=new Ee({shape:{x1:P*(d-V)+h,y1:E*(d-V)+v,x2:P*(d-b-V)+h,y2:E*(d-b-V)+v},style:D,silent:!0});D.stroke==="auto"&&N.setStyle({stroke:a(O/S)}),c.add(N)}if(_.get("show")){var V=_.get("distance")+L,z=Ec(ce(O/S*(g-p)+p),_.get("formatter")),$=a(O/S),q=P*(d-b-V)+h,Q=E*(d-b-V)+v,ct=_.get("rotate"),ht=0;ct==="radial"?(ht=-T+2*Math.PI,ht>Math.PI/2&&(ht+=Math.PI)):ct==="tangential"?ht=-T-Math.PI/2:Ft(ct)&&(ht=ct*Math.PI/180),ht===0?c.add(new Gt({style:Qt(_,{text:z,x:q,y:Q,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:$}),silent:!0})):c.add(new Gt({style:Qt(_,{text:z,x:q,y:Q,verticalAlign:"middle",align:"center"},{inheritColor:$}),silent:!0,originX:q,originY:Q,rotation:ht}))}if(m.get("show")&&O!==S){var V=m.get("distance");V=V?V+f:f;for(var gt=0;gt<=x;gt++){P=Math.cos(T),E=Math.sin(T);var Et=new Ee({shape:{x1:P*(d-V)+h,y1:E*(d-V)+v,x2:P*(d-w-V)+h,y2:E*(d-w-V)+v},silent:!0,style:I});I.stroke==="auto"&&Et.setStyle({stroke:a((O+gt/x)/S)}),c.add(Et),T+=C}T-=C}else T+=A}},t.prototype._renderPointer=function(e,n,i,a,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),x=+e.get("max"),b=[S,x],w=[s,l];function T(C,D){var I=m.getItemModel(C),L=I.getModel("pointer"),P=et(L.get("width"),o.r),E=et(L.get("length"),o.r),O=e.get(["pointer","icon"]),V=L.get("offsetCenter"),N=et(V[0],o.r),z=et(V[1],o.r),$=L.get("keepAspect"),q;return O?q=me(O,N-P/2,z-E,P,E,null,$):q=new PZ({shape:{angle:-Math.PI/2,width:P,r:E,x:N,y:z}}),q.rotation=-(D+Math.PI/2),q.x=o.cx,q.y=o.cy,q}function A(C,D){var I=g.get("roundCap"),L=I?lv:gr,P=g.get("overlap"),E=P?g.get("width"):f/m.count(),O=P?o.r-E:o.r-(C+1)*E,V=P?o.r:o.r-C*E,N=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:V}});return P&&(N.z2=Ut(m.get(_,C),[S,x],[100,0],!0)),N}(y||p)&&(m.diff(h).add(function(C){var D=m.get(_,C);if(p){var I=T(C,s);ae(I,{rotation:-((isNaN(+D)?w[0]:Ut(D,b,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(C,I)}if(y){var L=A(C,s),P=g.get("clip");ae(L,{shape:{endAngle:Ut(D,b,w,P)}},e),c.add(L),om(e.seriesIndex,m.dataType,C,L),d[C]=L}}).update(function(C,D){var I=m.get(_,C);if(p){var L=h.getItemGraphicEl(D),P=L?L.rotation:s,E=T(C,P);E.rotation=P,Ht(E,{rotation:-((isNaN(+I)?w[0]:Ut(I,b,w,!0))+Math.PI/2)},e),c.add(E),m.setItemGraphicEl(C,E)}if(y){var O=v[D],V=O?O.shape.endAngle:s,N=A(C,V),z=g.get("clip");Ht(N,{shape:{endAngle:Ut(I,b,w,z)}},e),c.add(N),om(e.seriesIndex,m.dataType,C,N),d[C]=N}}).execute(),m.each(function(C){var D=m.getItemModel(C),I=D.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),E=I.get("disabled");if(p){var O=m.getItemGraphicEl(C),V=m.getItemVisual(C,"style"),N=V.fill;if(O instanceof He){var z=O.style;O.useStyle(F({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},V))}else O.useStyle(V),O.type!=="pointer"&&O.setColor(N);O.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",a(Ut(m.get(_,C),b,[0,1],!0))),O.z2EmphasisLift=0,Ge(O,D),ue(O,L,P,E)}if(y){var $=d[C];$.useStyle(m.getItemVisual(C,"style")),$.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),$.z2EmphasisLift=0,Ge($,D),ue($,L,P,E)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,n){var i=e.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),f=me(s,n.cx-o/2+et(l[0],n.r),n.cy-o/2+et(l[1],n.r),o,o,null,u);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,i,a,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),h=new _t,v=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Gt({silent:!0}),d[y]=new Gt({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new _t,x=a(Ut(_,[f,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),T=o.cx+et(w[0],o.r),A=o.cy+et(w[1],o.r),C=v[y];C.attr({z2:g?0:2,style:Qt(b,{x:T,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(C)}var D=m.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+et(I[0],o.r),P=o.cy+et(I[1],o.r),E=et(D.get("width"),o.r),O=et(D.get("height"),o.r),V=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,C=d[y],N=D.get("formatter");C.attr({z2:g?0:2,style:Qt(D,{x:L,y:P,text:Ec(_,N),width:isNaN(E)?null:E,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:V})}),PP(C,{normal:D},_,function($){return Ec($,N)}),p&&RP(C,y,l,e,{getFormattedLabel:function($,q,Q,ct,ht,gt){return Ec(gt?gt.interpolatedValue:_,N)}}),S.add(C)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=d},t.type="gauge",t}(ee);const kZ=EZ;var OZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return cl(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(le);const NZ=OZ;function VZ(r){r.registerChartView(kZ),r.registerSeriesModel(NZ)}var BZ=["itemStyle","opacity"],zZ=function(r){B(t,r);function t(e,n){var i=r.call(this)||this,a=i,o=new mr,s=new Gt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return t.prototype.updateData=function(e,n,i){var a=this,o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(BZ);f=f==null?1:f,i||pn(a),a.useStyle(e.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,ae(a,{style:{opacity:f}},o,n)):Ht(a,{style:{opacity:f},shape:{points:l.points}},o,n),Ge(a,s),this._updateLabel(e,n),ue(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=e.hostModel,l=e.getItemModel(n),u=e.getItemLayout(n),f=u.label,c=e.getItemVisual(n,"style"),h=c.fill;Fe(o,De(l),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:e.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:h,outsideFill:h});var v=f.linePoints;a.setShape({points:v}),i.textGuideLineConfig={anchor:v?new Ct(v[0][0],v[0][1]):null},Ht(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Q_(i,t1(l),{stroke:h})},t}(yr),GZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new zZ(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,l),s.add(f),a.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Zu(u,e,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(ee);const FZ=GZ;var HZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new kf(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return cl(this,{coordDimensions:["value"],encodeDefaulter:bt(I_,this)})},t.prototype._defaultLabelLine=function(e){Ao(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),i=r.prototype.getDataParams.call(this,e),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(le);const WZ=HZ;function $Z(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function UZ(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(l){return l}),i=[],a=t==="ascending",o=0,s=r.count();o<s;o++)i[o]=o;return vt(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function YZ(r){var t=r.hostModel,e=t.get("orient");r.each(function(n){var i=r.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,v,d;if(f)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[h,v],[h,v]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,h=y-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,h=y+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,v=m-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,v=m+5,c="center"):o==="rightTop"?(p=e==="horizontal"?u[3][0]:u[1][0],g=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(m=g-_,v=m-5,c="center"):(y=p+_,h=y+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],e==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p+_,h=y+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(m=g-_,v=m-5,c="center"):(y=p-_,h=y-5,c="right")):o==="leftBottom"?(p=e==="horizontal"?u[1][0]:u[3][0],g=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p-_,h=y-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p+_,h=y+5,c="left")),e==="horizontal"?(y=p,h=y):(m=g,v=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:h,y:v,verticalAlign:"middle",textAlign:c,inside:f}})}function ZZ(r,t){r.eachSeriesByType("funnel",function(e){var n=e.getData(),i=n.mapDimension("value"),a=e.get("sort"),o=$Z(e,t),s=e.get("orient"),l=o.width,u=o.height,f=UZ(n,a),c=o.x,h=o.y,v=s==="horizontal"?[et(e.get("minSize"),u),et(e.get("maxSize"),u)]:[et(e.get("minSize"),l),et(e.get("maxSize"),l)],d=n.getDataExtent(i),p=e.get("min"),g=e.get("max");p==null&&(p=Math.min(d[0],0)),g==null&&(g=d[1]);var y=e.get("funnelAlign"),m=e.get("gap"),_=s==="horizontal"?l:u,S=(_-m*(n.count()-1))/n.count(),x=function(P,E){if(s==="horizontal"){var O=n.get(i,P)||0,V=Ut(O,[p,g],v,!0),N=void 0;switch(y){case"top":N=h;break;case"center":N=h+(u-V)/2;break;case"bottom":N=h+(u-V);break}return[[E,N],[E,N+V]]}var z=n.get(i,P)||0,$=Ut(z,[p,g],v,!0),q;switch(y){case"left":q=c;break;case"center":q=c+(l-$)/2;break;case"right":q=c+l-$;break}return[[q,E],[q+$,E]]};a==="ascending"&&(S=-S,m=-m,s==="horizontal"?c+=l:h+=u,f=f.reverse());for(var b=0;b<f.length;b++){var w=f[b],T=f[b+1],A=n.getItemModel(w);if(s==="horizontal"){var C=A.get(["itemStyle","width"]);C==null?C=S:(C=et(C,l),a==="ascending"&&(C=-C));var D=x(w,c),I=x(T,c+C);c+=C+m,n.setItemLayout(w,{points:D.concat(I.slice().reverse())})}else{var L=A.get(["itemStyle","height"]);L==null?L=S:(L=et(L,u),a==="ascending"&&(L=-L));var D=x(w,h),I=x(T,h+L);h+=L+m,n.setItemLayout(w,{points:D.concat(I.slice().reverse())})}}YZ(n)})}function XZ(r){r.registerChartView(FZ),r.registerSeriesModel(WZ),r.registerLayout(ZZ),r.registerProcessor(Ef("funnel"))}var qZ=.3,KZ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new _t,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,n,i,a){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.dimensions,c=$A(e);s.diff(l).add(h).update(v).remove(d).execute();function h(g){var y=WA(s,o,g,f,u);Rg(y,s,g,c)}function v(g,y){var m=l.getItemGraphicEl(y),_=ck(s,g,f,u);s.setItemGraphicEl(g,m),Ht(m,{shape:{points:_}},e,g),pn(m),Rg(m,s,g,c)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=jZ(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(e,n,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,n,i){for(var a=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=$A(n),u=this._progressiveEls=[],f=e.start;f<e.end;f++){var c=WA(a,this._dataGroup,f,s,o);c.incremental=!0,Rg(c,a,f,l),u.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(ee);function jZ(r,t,e){var n=r.model,i=r.getRect(),a=new Vt({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=n.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),ae(a,{shape:{width:i.width,height:i.height}},t,e),a}function ck(r,t,e,n){for(var i=[],a=0;a<e.length;a++){var o=e[a],s=r.get(r.mapDimension(o),t);JZ(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function WA(r,t,e,n,i){var a=ck(r,e,n,i),o=new mr({shape:{points:a},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function $A(r){var t=r.get("smooth",!0);return t===!0&&(t=qZ),t=yi(t),Vu(t)&&(t=0),{smooth:t}}function Rg(r,t,e,n){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var i=t.getItemModel(e),a=i.getModel("emphasis");Ge(r,i,"lineStyle"),ue(r,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function JZ(r,t){return t==="category"?r==null:r==null||isNaN(r)}const QZ=KZ;var tX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{useEncodeDefaulter:at(eX,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var n=this.coordinateSystem,i=this.getData(),a=[];return n.eachActiveState(i,function(o,s){e===o&&a.push(i.getRawIndex(s))}),a},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(le);function eX(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return M(t.dimensions,function(n){var i=rX(n);e[n]=i}),e}}function rX(r){return+r.replace("dim","")}const nX=tX;var iX=["lineStyle","opacity"],aX={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(i,a){e.eachActiveState(a,function(o,s){var l=n[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(iX,!0);u!=null&&(l=u)}var f=a.ensureUniqueItemVisual(s,"style");f.opacity=l},i.start,i.end)}}}};const oX=aX;function sX(r){lX(r),uX(r)}function lX(r){if(!r.parallel){var t=!1;M(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function uX(r){var t=Zt(r.parallelAxis);M(t,function(e){if(yt(e)){var n=e.parallelIndex||0,i=Zt(r.parallel)[n];i&&i.parallelAxisDefault&&Tt(e,i.parallelAxisDefault,!1)}})}var fX=5,cX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this._model=e,this._api=i,this._handlers||(this._handlers={},M(hX,function(a,o){i.getZr().on(o,this._handlers[o]=at(a,this))},this)),ll(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,n){ju(this,"_throttledDispatchExpand"),M(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(F({type:"parallelAxisExpand"},e))},t.type="parallel",t}(fe),hX={mousedown:function(r){Eg(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(Eg(this,"click")&&t){var e=[r.offsetX,r.offsetY],n=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(n>fX)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Eg(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Eg(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const vX=cX;var dX=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Tt(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var i=e.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],i=$t(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);M(i,function(a){e.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Bt);const pX=dX;var gX=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(yn);const yX=gX;function Fo(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=os(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=os(s,[0,o]),i=a=os(s,[i,a]),n=0}t[0]=os(t[0],e),t[1]=os(t[1],e);var l=kg(t,n);t[n]+=r;var u=i||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=os(t[n],f);var c;return c=kg(t,n),i!=null&&(c.sign!==l.sign||c.span<i)&&(t[1-n]=t[n]+l.sign*i),c=kg(t,n),a!=null&&c.span>a&&(t[1-n]=t[n]+c.sign*a),t}function kg(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function os(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Og=M,hk=Math.min,vk=Math.max,UA=Math.floor,mX=Math.ceil,YA=ce,_X=Math.PI,SX=function(){function r(t,e,n){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var i=t.dimensions,a=t.parallelAxisIndex;Og(i,function(o,s){var l=a[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new yX(o,xd(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,a=e.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+e.axisLength&&s>=i&&s<=i+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();Og(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Ws(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=be(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=e[i[o]],l=[0,s],u=this.dimensions.length,f=kc(t.get("axisExpandWidth"),l),c=kc(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=kc(v[1]-v[0],l),v[1]=v[0]+d;else{d=kc(f*(c-1),l);var p=t.get("axisExpandCenter")||UA(u/2);v=[f*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[UA(YA(v[0]/f,1))+1,mX(YA(v[1]/f,1))-1],m=g/f*v[0];return{layout:a,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[i[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;e.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Og(n,function(o,s){var l=(i.axisExpandable?bX:xX)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:_X/2,vertical:0},c=[u[a].x+t.x,u[a].y+t.y],h=f[a],v=Cr();Eo(v,v,h),Hn(v,v,c),this._axesLayout[o]={position:c,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<i;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=t.getValues(s,f),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(h[v]);if(p==="inactive"){c="inactive";break}}}e(c,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)e.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return cn([t,0],n.transform)},r.prototype.getAxisLayout=function(t){return mt(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(f)h&&f&&s<a*c[0]?(u="jump",l=s-a*c[2]):h&&f&&s>a*(1-c[0])?(u="jump",l=s-a*(1-c[2])):(l=s-a*c[1])>=0&&(l=s-a*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Fo(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[vk(0,d-v/2)],i[1]=hk(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},r}();function kc(r,t){return hk(vk(r,t[0]),t[1])}function xX(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function bX(r,t){var e=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,f;return r<o[0]?(s=r*a,f=a):r<=o[1]?(s=t.axisExpandWindow0Pos+r*n-t.axisExpandWindow[0],l=n,u=!0):(s=e-(i-1-r)*a,f=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const wX=SX;function TX(r,t){var e=[];return r.eachComponent("parallel",function(n,i){var a=new wX(n,r,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,e.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",ge).models[0];n.coordinateSystem=i.coordinateSystem}}),e}var AX={create:TX};const CX=AX;var dk=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return Mo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var n=this.activeIntervals=mt(e);if(n)for(var i=n.length-1;i>=0;i--)$r(n[i])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=e&&e<=n[a][1])return"active";return"inactive"},t}(Bt);_e(dk,Df);const ZA=dk;var Lo=!0,uf=Math.min,Ys=Math.max,MX=Math.pow,DX=1e4,IX=6,LX=6,XA="globalPan",PX={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},RX={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},qA={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},EX=0,kX=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new _t,n._uid="brushController_"+EX++,M(FX,function(i,a){this._handlers[a]=at(i,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||$Y(n,XA,this._uid),M(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=Tt(mt(qA),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;UY(e,XA,this._uid),M(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};M(e,function(i){n[i.panelId]=mt(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Z(e,function(h){return Tt(mt(qA),h,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new Si(i,e,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=e[h];if(v!=null&&i[v]===s)a[h]=i[v];else{var p=a[h]=v!=null?(i[v].__brushOption=d,i[v]):gk(o,pk(o,d));w1(o,p)}}function c(h){i[h]!==s&&o.group.remove(i[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),qm(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Zr);function pk(r,t){var e=Md[t.brushType].createCover(r,t);return e.__brushOption=t,mk(e,t),r.group.add(e),e}function gk(r,t){var e=T1(t);return e.endCreating&&(e.endCreating(r,t),mk(t,t.__brushOption)),t}function yk(r,t){var e=t.__brushOption;T1(t).updateCoverShape(r,t,e.range,e)}function mk(r,t){var e=t.z;e==null&&(e=DX),r.traverse(function(n){n.z=e,n.z2=e})}function w1(r,t){T1(t).updateCommon(r,t),yk(r,t)}function T1(r){return Md[r.__brushOption.brushType]}function A1(r,t,e){var n=r._panels;if(!n)return Lo;var i,a=r._transform;return M(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function _k(r,t){var e=r._panels;if(!e)return Lo;var n=t.__brushOption.panelId;return n!=null?e[n]:Lo}function qm(r){var t=r._covers,e=t.length;return M(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function Po(r,t){var e=Z(r._covers,function(n){var i=n.__brushOption,a=mt(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function OX(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=MX(i*i+a*a,.5);return o>IX}function Sk(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function xk(r,t,e,n){var i=new _t;return i.add(new Vt({name:"main",style:C1(e),silent:!0,draggable:!0,cursor:"move",drift:bt(KA,r,t,i,["n","s","w","e"]),ondragend:bt(Po,t,{isEnd:!0})})),M(n,function(a){i.add(new Vt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:bt(KA,r,t,i,a),ondragend:bt(Po,t,{isEnd:!0})}))}),i}function bk(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=Ys(i,LX),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,f=e[0][1],c=e[1][1],h=f-a+i/2,v=c-a+i/2,d=f-o,p=c-s,g=d+i,y=p+i;Jn(r,t,"main",o,s,d,p),n.transformable&&(Jn(r,t,"w",l,u,a,y),Jn(r,t,"e",h,u,a,y),Jn(r,t,"n",l,u,g,a),Jn(r,t,"s",l,v,g,a),Jn(r,t,"nw",l,u,a,a),Jn(r,t,"ne",h,u,a,a),Jn(r,t,"sw",l,v,a,a),Jn(r,t,"se",h,v,a,a))}function Km(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(C1(e)),i.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?jm(r,a[0]):VX(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?RX[s]+"-resize":null})})}function Jn(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(zX(M1(r,t,[[n,i],[n+a,i+o]])))}function C1(r){return pt({strokeNoScale:!0},r.brushStyle)}function wk(r,t,e,n){var i=[uf(r,e),uf(t,n)],a=[Ys(r,e),Ys(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function NX(r){return So(r.group)}function jm(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=ad(e[t],NX(r));return n[i]}function VX(r,t){var e=[jm(r,t[0]),jm(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function KA(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=Tk(t,i,a);M(n,function(u){var f=PX[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(wk(s[0][0],s[1][0],s[0][1],s[1][1])),w1(t,e),Po(t,{isEnd:!1})}function BX(r,t,e,n){var i=t.__brushOption.range,a=Tk(r,e,n);M(i,function(o){o[0]+=a[0],o[1]+=a[1]}),w1(r,t),Po(r,{isEnd:!1})}function Tk(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function M1(r,t,e){var n=_k(r,t);return n&&n!==Lo?n.clipPath(e,r._transform):mt(e)}function zX(r){var t=uf(r[0][0],r[1][0]),e=uf(r[0][1],r[1][1]),n=Ys(r[0][0],r[1][0]),i=Ys(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function GX(r,t,e){if(!(!r._brushType||HX(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=A1(r,t,e);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Lo||s.panelId===a.panelId)&&Md[s.brushType].contain(i[o],e[0],e[1]))return}a&&n.setCursorStyle("crosshair")}}function Jm(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Qm(r,t,e){return r.childOfName("main").contain(t,e)}function Ak(r,t,e,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),OX(r)||i){if(a&&!i){o.brushMode==="single"&&qm(r);var l=mt(o);l.brushType=jA(l.brushType,a),l.panelId=a===Lo?null:a.panelId,i=r._creatingCover=pk(r,l),r._covers.push(i)}if(i){var u=Md[jA(r._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(M1(r,i,r._track)),n&&(gk(r,i),u.updateCommon(r,i)),yk(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&A1(r,t,e)&&qm(r)&&(s={isEnd:n,removeOnClick:!0});return s}function jA(r,t){return r==="auto"?t.defaultBrushType:r}var FX={mousedown:function(r){if(this._dragging)JA(this,r);else if(!r.target||!r.target.draggable){Jm(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=A1(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(GX(this,r,n),this._dragging){Jm(r);var i=Ak(this,r,n,!1);i&&Po(this,i)}},mouseup:function(r){JA(this,r)}};function JA(r,t){if(r._dragging){Jm(t);var e=t.offsetX,n=t.offsetY,i=r.group.transformCoordToLocal(e,n),a=Ak(r,t,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&Po(r,a)}}function HX(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Md={lineX:QA(0),lineY:QA(1),rect:{createCover:function(r,t){function e(n){return n}return xk({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Sk(r);return wk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){bk(r,t,e,n)},updateCommon:Km,contain:Qm},polygon:{createCover:function(r,t){var e=new _t;return e.add(new mr({name:"main",style:C1(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new yr({name:"main",draggable:!0,drift:bt(BX,r,t),ondragend:bt(Po,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:M1(r,t,e)})},updateCommon:Km,contain:Qm}};function QA(r){return{createCover:function(t,e){return xk({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Sk(t),n=uf(e[0][r],e[1][r]),i=Ys(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=_k(t,e);if(o!==Lo&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),bk(t,e,l,i)},updateCommon:Km,contain:Qm}}const D1=kX;function Ck(r){return r=I1(r),function(t){return DP(t,r)}}function Mk(r,t){return r=I1(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function Dk(r,t,e){var n=I1(r);return function(i,a){return n.contain(a[0],a[1])&&!wd(i,t,e)}}function I1(r){return Mt.create(r)}var WX=["axisLine","axisTickLabel","axisName"],$X=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new D1(n.getZr())).on("brush",at(this._onBrush,this))},t.prototype.render=function(e,n,i,a){if(!UX(e,n,a)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var s=ZX(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,h=l.getAxisLayout(c),v=F({strokeContainThreshold:f},h),d=new xi(e,v);M(WX,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,e,s,f,i),wf(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=Mt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Ck(c),isTargetByCursor:Dk(c,s,a),getLinearBrushOtherExtent:Mk(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(YX(i))},t.prototype._onBrush=function(e){var n=e.areas,i=this.axisModel,a=i.axis,o=Z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(fe);function UX(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function YX(r){var t=r.axis;return Z(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function ZX(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const XX=$X;var qX={type:"axisAreaSelect",event:"axisAreaSelected"};function KX(r){r.registerAction(qX,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var jX={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ik(r){r.registerComponentView(vX),r.registerComponentModel(pX),r.registerCoordinateSystem("parallel",CX),r.registerPreprocessor(sX),r.registerComponentModel(ZA),r.registerComponentView(XX),Us(r,"parallel",ZA,jX),KX(r)}function JX(r){Lt(Ik),r.registerChartView(QZ),r.registerSeriesModel(nX),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,oX)}var QX=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),tq=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new QX},t.prototype.buildPath=function(e,n){var i=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+i,n.y2),e.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(e.lineTo(n.x2,n.y2+i),e.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),e.closePath()},t.prototype.highlight=function(){mi(this)},t.prototype.downplay=function(){_i(this)},t}(Pt),eq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,i){var a=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,f=l.height,c=e.getData(),h=e.getData("edge"),v=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new tq,g=St(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),x=d.node1.getModel(),b=x.get("localX"),w=x.get("localY"),T=d.node2.getLayout(),A=d.node2.getModel(),C=A.get("localX"),D=A.get("localY"),I=d.getLayout(),L,P,E,O,V,N,z,$;p.shape.extent=Math.max(1,I.dy),p.shape.orient=v,v==="vertical"?(L=(b!=null?b*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,E=(C!=null?C*u:T.x)+I.ty,O=D!=null?D*f:T.y,V=L,N=P*(1-_)+O*_,z=E,$=P*_+O*(1-_)):(L=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,E=C!=null?C*u:T.x,O=(D!=null?D*f:T.y)+I.ty,V=L*(1-_)+E*_,N=P,z=L*_+E*(1-_),$=O),p.setShape({x1:L,y1:P,x2:E,y2:O,cpx1:V,cpy1:N,cpx2:z,cpy2:$}),p.useStyle(m.getItemStyle()),tC(p.style,v,d);var q=""+y.get("value"),Q=De(y,"edgeLabel");Fe(p,Q,{labelFetcher:{getFormattedLabel:function(gt,Et,U,K,H,tt){return e.getFormattedLabel(gt,Et,"edge",K,Bn(H,Q.normal&&Q.normal.get("formatter"),q),tt)}},labelDataIndex:d.dataIndex,defaultText:q}),p.setTextConfig({position:"inside"});var ct=y.getModel("emphasis");Ge(p,y,"lineStyle",function(gt){var Et=gt.getItemStyle();return tC(Et,v,d),Et}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var ht=ct.get("focus");ue(p,ht==="adjacency"?d.getAdjacentDataIndices():ht==="trajectory"?d.getTrajectoryDataIndices():ht,ct.get("blurScope"),ct.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,x=new Vt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Fe(x,De(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),x.disableLabelAnimation=!0,x.setStyle("fill",d.getVisual("color")),x.setStyle("decal",d.getVisual("style").decal),Ge(x,g),s.add(x),c.setItemGraphicEl(d.dataIndex,x),St(x).dataType="node";var b=_.get("focus");ue(x,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(d,p){var g=c.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){a._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(rq(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(ee);function tC(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),i=e.node2.getVisual("color");nt(n)&&nt(i)&&(r.fill=new bf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function rq(r,t,e){var n=new Vt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ae(n,{shape:{width:r.width+20}},t,e),n}const nq=eq;var iq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var i=e.edges||e.links||[],a=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new te(o[l],this,n));var u=fk(a,i,this,!0,f);return u.data;function f(c,h){c.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(e,n){var i=this.option.data||this.option.nodes,a=i[e];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,i){function a(v){return isNaN(v)||v==null}if(i==="edge"){var o=this.getDataParams(e,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Ie("nameValue",{name:u,value:l,noValue:a(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,h=this.getDataParams(e,i).data.name;return Ie("nameValue",{name:h!=null?h+"":null,value:c,noValue:a(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var i=r.prototype.getDataParams.call(this,e,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(e),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(le);const aq=iq;function oq(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),a=sq(e,t);e.layoutInfo=a;var o=a.width,s=a.height,l=e.getGraph(),u=l.nodes,f=l.edges;uq(u);var c=$t(u,function(p){return p.getLayout().value===0}),h=c.length!==0?0:e.get("layoutIterations"),v=e.get("orient"),d=e.get("nodeAlign");lq(u,f,n,i,o,s,h,v,d)})}function sq(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lq(r,t,e,n,i,a,o,s,l){fq(r,t,e,i,a,s,l),dq(r,t,a,i,n,o,s),wq(r,s)}function uq(r){M(r,function(t){var e=ra(t.outEdges,dv),n=ra(t.inEdges,dv),i=t.getValue()||0,a=Math.max(e,n,i);t.setLayout({value:a},!0)})}function fq(r,t,e,n,i,a,o){for(var s=[],l=[],u=[],f=[],c=0,h=0;h<t.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var v=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>v&&(v=g.depth),p.setLayout({depth:y?g.depth:c},!0),a==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=t.indexOf(_);s[S]=0;var x=_.node2,b=r.indexOf(x);--l[b]===0&&f.indexOf(x)<0&&f.push(x)}}++c,u=f,f=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>c-1?v:c-1;o&&o!=="left"&&cq(r,o,a,w);var T=a==="vertical"?(i-e)/w:(n-e)/w;vq(r,T,a)}function Lk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function cq(r,t,e,n){if(t==="right"){for(var i=[],a=r,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];i.indexOf(f.node1)<0&&i.push(f.node1)}}a=i,i=[],++o}M(r,function(c){Lk(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else t==="justify"&&hq(r,n)}function hq(r,t){M(r,function(e){!Lk(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function vq(r,t,e){M(r,function(n){var i=n.getLayout().depth*t;e==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function dq(r,t,e,n,i,a,o){var s=pq(r,o);gq(s,t,e,n,i,o),Ng(s,i,e,n,o);for(var l=1;a>0;a--)l*=.99,yq(s,l,o),Ng(s,i,e,n,o),bq(s,l,o),Ng(s,i,e,n,o)}function pq(r,t){var e=[],n=t==="vertical"?"y":"x",i=rm(r,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),M(i.keys,function(a){e.push(i.buckets.get(a))}),e}function gq(r,t,e,n,i,a){var o=1/0;M(r,function(s){var l=s.length,u=0;M(s,function(c){u+=c.getLayout().value});var f=a==="vertical"?(n-(l-1)*i)/u:(e-(l-1)*i)/u;f<o&&(o=f)}),M(r,function(s){M(s,function(l,u){var f=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),M(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Ng(r,t,e,n,i){var a=i==="vertical"?"x":"y";M(r,function(o){o.sort(function(p,g){return p.getLayout()[a]-g.getLayout()[a]});for(var s,l,u,f=0,c=o.length,h=i==="vertical"?"dx":"dy",v=0;v<c;v++)l=o[v],u=f-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[a]+l.getLayout()[h]+t;var d=i==="vertical"?n:e;if(u=f-t-d,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=c-2;v>=0;--v)l=o[v],u=l.getLayout()[a]+l.getLayout()[h]+t-f,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[a]}})}function yq(r,t,e){M(r.slice().reverse(),function(n){M(n,function(i){if(i.outEdges.length){var a=ra(i.outEdges,mq,e)/ra(i.outEdges,dv);if(isNaN(a)){var o=i.outEdges.length;a=o?ra(i.outEdges,_q,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(a-fa(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-fa(i,e))*t;i.setLayout({y:l},!0)}}})})}function mq(r,t){return fa(r.node2,t)*r.getValue()}function _q(r,t){return fa(r.node2,t)}function Sq(r,t){return fa(r.node1,t)*r.getValue()}function xq(r,t){return fa(r.node1,t)}function fa(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function dv(r){return r.getValue()}function ra(r,t,e){for(var n=0,i=r.length,a=-1;++a<i;){var o=+t(r[a],e);isNaN(o)||(n+=o)}return n}function bq(r,t,e){M(r,function(n){M(n,function(i){if(i.inEdges.length){var a=ra(i.inEdges,Sq,e)/ra(i.inEdges,dv);if(isNaN(a)){var o=i.inEdges.length;a=o?ra(i.inEdges,xq,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(a-fa(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-fa(i,e))*t;i.setLayout({y:l},!0)}}})})}function wq(r,t){var e=t==="vertical"?"x":"y";M(r,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[e]-a.node2.getLayout()[e]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[e]-a.node1.getLayout()[e]})}),M(r,function(n){var i=0,a=0;M(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),M(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function Tq(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var a=1/0,o=-1/0;M(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),M(n,function(s){var l=new ze({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&M(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Aq(r){r.registerChartView(nq),r.registerSeriesModel(aq),r.registerLayout(oq),r.registerVisual(Tq),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var Pk=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var n,i=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[i,a],d=v[f].get("type"),p=v[1-f].get("type"),g=t.data;if(g&&l){var y=[];M(g,function(S,x){var b;Y(S)?(b=S.slice(),S.unshift(x)):Y(S.value)?(b=F({},S),b.value=b.value.slice(),S.value.unshift(x)):b=S,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:rv(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:rv(p),dimsDef:m.slice()}];return cl(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:bt(t2,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),Rk=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(le);_e(Rk,Pk,!0);const Cq=Rk;var Mq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var f=a.getItemLayout(u),c=eC(f,a,u,l,!0);a.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!a.hasValue(u)){o.remove(c);return}var h=a.getItemLayout(u);c?(pn(c),Ek(h,c,a,u)):c=eC(h,a,u,l),o.add(c),a.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=a},t.prototype.remove=function(e){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(ee),Dq=function(){function r(){}return r}(),Iq=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Dq},t.prototype.buildPath=function(e,n){var i=n.points,a=0;for(e.moveTo(i[a][0],i[a][1]),a++;a<4;a++)e.lineTo(i[a][0],i[a][1]);for(e.closePath();a<i.length;a++)e.moveTo(i[a][0],i[a][1]),a++,e.lineTo(i[a][0],i[a][1])},t}(Pt);function eC(r,t,e,n,i){var a=r.ends,o=new Iq({shape:{points:i?Lq(a,n,r):a}});return Ek(r,o,t,e,i),o}function Ek(r,t,e,n,i){var a=e.hostModel,o=Oo[i?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},a,n),t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(n),l=s.getModel("emphasis");Ge(t,s),ue(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Lq(r,t,e){return Z(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}const Pq=Mq;var Iu=M;function Rq(r){var t=Eq(r);Iu(t,function(e){var n=e.seriesModels;n.length&&(kq(e),Iu(n,function(i,a){Oq(i,e.boxOffsetList[a],e.boxWidthList[a])}))})}function Eq(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=Dt(e,i);a<0&&(a=e.length,e[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function kq(r){var t=r.axis,e=r.seriesModels,n=e.length,i=r.boxWidthList=[],a=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Iu(e,function(d){l=Math.max(l,d.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Iu(e,function(d){var p=d.get("boxWidth");Y(p)||(p=[p,p]),o.push([et(p[0],s)||0,et(p[1],s)||0])});var f=s*.8-2,c=f/n*.3,h=(f-c*(n-1))/n,v=h/2-f/2;Iu(e,function(d,p){a.push(v),v+=c+h,i.push(Math.min(Math.max(h,o[p][0]),o[p][1]))})}function Oq(r,t,e){var n=r.coordinateSystem,i=r.getData(),a=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),f=i.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<i.count();c++){var h=i.get(u,c),v=_(h,f[2],c),d=_(h,f[0],c),p=_(h,f[1],c),g=_(h,f[3],c),y=_(h,f[4],c),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),x(m,d),x(m,y),x(m,v),i.setItemLayout(c,{initBaseline:v[s],ends:m})}function _(b,w,T){var A=i.get(w,T),C=[];C[o]=b,C[s]=A;var D;return isNaN(b)||isNaN(A)?D=[NaN,NaN]:(D=n.dataToPoint(C),D[o]+=t),D}function S(b,w,T){var A=w.slice(),C=w.slice();A[o]+=a,C[o]-=a,T?b.push(A,C):b.push(C,A)}function x(b,w){var T=w.slice(),A=w.slice();T[o]-=a,A[o]+=a,b.push(T,A)}}function Nq(r,t){t=t||{};for(var e=[],n=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<r.length;o++){var s=$r(r[o].slice()),l=cp(s,.25),u=cp(s,.5),f=cp(s,.75),c=s[0],h=s[s.length-1],v=(i==null?1.5:i)*(f-l),d=a?c:Math.max(c,l-v),p=a?h:Math.min(h,f+v),g=t.itemNameFormatter,y=vt(g)?g({value:o}):nt(g)?g.replace("{value}",o+""):o+"";e.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:e,outliers:n}}var Vq={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==je){var n="";Wt(n)}var i=Nq(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Bq(r){r.registerSeriesModel(Cq),r.registerChartView(Pq),r.registerLayout(Rq),r.registerTransform(Vq)}var zq=["itemStyle","borderColor"],Gq=["itemStyle","borderColor0"],Fq=["itemStyle","borderColorDoji"],Hq=["itemStyle","color"],Wq=["itemStyle","color0"];function L1(r,t){return t.get(r>0?Hq:Wq)}function P1(r,t){return t.get(r===0?Fq:r>0?zq:Gq)}var $q={seriesType:"candlestick",plan:sl(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(n,i){for(var a;(a=n.next())!=null;){var o=i.getItemModel(a),s=i.getItemLayout(a).sign,l=o.getItemStyle();l.fill=L1(s,o),l.stroke=P1(s,o)||l.fill;var u=i.ensureUniqueItemVisual(a,"style");F(u,l)}}}}}};const Uq=$q;var Yq=["color","borderColor"],Zq=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&rC(u,c))return;var h=Vg(c,f,!0);ae(h,{shape:{points:c.ends}},e,f),Bg(h,n,f,o),a.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=i.getItemGraphicEl(c);if(!n.hasValue(f)){a.remove(h);return}var v=n.getItemLayout(f);if(s&&rC(u,v)){a.remove(h);return}h?(Ht(h,{shape:{points:v.ends}},e,f),pn(h)):h=Vg(v),Bg(h,n,f,o),a.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=i.getItemGraphicEl(f);c&&a.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),nC(e,this.group);var n=e.get("clip",!0)?Pf(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),l=Vg(s);Bg(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){nC(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(ee),Xq=function(){function r(){}return r}(),qq=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Xq},t.prototype.buildPath=function(e,n){var i=n.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t}(Pt);function Vg(r,t,e){var n=r.ends;return new qq({shape:{points:e?Kq(n,r):n},z2:100})}function rC(r,t){for(var e=!0,n=0;n<t.ends.length;n++)if(r.contain(t.ends[n][0],t.ends[n][1])){e=!1;break}return e}function Bg(r,t,e,n){var i=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,Ge(r,i);var a=t.getItemLayout(e).sign;M(r.states,function(s,l){var u=i.getModel(l),f=L1(a,u),c=P1(a,u)||f,h=s.style||(s.style={});f&&(h.fill=f),c&&(h.stroke=c)});var o=i.getModel("emphasis");ue(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Kq(r,t){return Z(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var jq=function(){function r(){}return r}(),zg=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new jq},t.prototype.buildPath=function(e,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];e.moveTo(o,i[a++]),e.lineTo(o,i[a++])}else a+=3},t}(Pt);function nC(r,t,e,n){var i=r.getData(),a=i.getLayout("largePoints"),o=new zg({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new zg({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new zg({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),Gg(1,o,r),Gg(-1,s,r),Gg(0,l,r),n&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function Gg(r,t,e,n){var i=P1(r,e)||L1(r,e),a=e.getModel("itemStyle").getItemStyle(Yq);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const Jq=Zq;var kk=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,i){var a=n.getItemLayout(e);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(le);_e(kk,Pk,!0);const Qq=kk;function tK(r){!r||!Y(r.series)||M(r.series,function(t){yt(t)&&t.type==="k"&&(t.type="candlestick")})}var eK={seriesType:"candlestick",plan:sl(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=rK(r,e),i=0,a=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[i])),l=Z(e.mapDimensionsAll(o[a]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),x=m.get(f,y),b=m.get(c,y),w=m.get(h,y),T=Math.min(S,x),A=Math.max(S,x),C=V(T,_),D=V(A,_),I=V(b,_),L=V(w,_),P=[];N(P,D,0),N(P,C,1),P.push($(L),$(D),$(I),$(C));var E=g.getItemModel(y),O=!!E.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:iC(m,y,S,x,f,O),initBaseline:S>x?D[a]:C[a],ends:P,brushRect:z(b,w,_)})}function V(q,Q){var ct=[];return ct[i]=Q,ct[a]=q,isNaN(Q)||isNaN(q)?[NaN,NaN]:t.dataToPoint(ct)}function N(q,Q,ct){var ht=Q.slice(),gt=Q.slice();ht[i]=fh(ht[i]+n/2,1,!1),gt[i]=fh(gt[i]-n/2,1,!0),ct?q.push(ht,gt):q.push(gt,ht)}function z(q,Q,ct){var ht=V(q,ct),gt=V(Q,ct);return ht[i]-=n/2,gt[i]-=n/2,{x:ht[0],y:ht[1],width:n,height:gt[1]-ht[1]}}function $(q){return q[i]=fh(q[i],1),q}}function d(p,g){for(var y=Nn(p.count*4),m=0,_,S=[],x=[],b,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var A=w.get(s,b),C=w.get(u,b),D=w.get(f,b),I=w.get(c,b),L=w.get(h,b);if(isNaN(A)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=iC(w,b,C,D,f,T),S[i]=A,S[a]=I,_=t.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[a]=L,_=t.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function iC(r,t,e,n,i,a){var o;return e>n?o=-1:e<n?o=1:o=a?0:t>0?r.get(i,t-1)<=n?1:-1:1,o}function rK(r,t){var e=r.getBaseAxis(),n,i=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=et(xt(r.get("barMaxWidth"),i),i),o=et(xt(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?et(s,i):Math.max(Math.min(i/2,a),o)}const nK=eK;function iK(r){r.registerChartView(Jq),r.registerSeriesModel(Qq),r.registerPreprocessor(tK),r.registerVisual(Uq),r.registerLayout(nK)}function aC(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var aK=function(r){B(t,r);function t(e,n){var i=r.call(this)||this,a=new If(e,n),o=new _t;return i.add(a),i.add(o),i.updateData(e,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,i=e.color,a=e.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=me(n,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}aC(o,e)},t.prototype.updateEffectAnimation=function(e){for(var n=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(n[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}aC(i,e)},t.prototype.highlight=function(){mi(this)},t.prototype.downplay=function(){_i(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,n){var i=this,a=e.hostModel;this.childAt(0).updateData(e,n);var o=this.childAt(1),s=e.getItemModel(n),l=e.getItemVisual(n,"symbol"),u=ul(e.getItemVisual(n,"symbolSize")),f=e.getItemVisual(n,"style"),c=f&&f.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var v=Vo(e.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var d=e.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=a.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/e.count(),p.z=a.getShallow("z")||0,p.zlevel=a.getShallow("zlevel")||0,p.symbolType=l,p.color=c,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&i.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=p,ue(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(_t);const oK=aK;var sK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new Lf(oK)},t.prototype.render=function(e,n,i){var a=e.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,i=n&&n.getArea&&n.getArea();return e.get("clip",!0)?i:null},t.prototype.updateTransform=function(e,n,i){var a=e.getData();this.group.dirty();var o=Rf("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var n=e.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=N5(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(ee);const lK=sK;var uK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,n,i){return i.point(n.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(le);const fK=uK;function cK(r){r.registerChartView(lK),r.registerSeriesModel(fK),r.registerLayout(Rf("effectScatter"))}var hK=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;return a.add(a.createLine(e,n,i)),a._updateEffectSymbol(e,n),a}return t.prototype.createLine=function(e,n,i){return new x1(e,n,i)},t.prototype._updateEffectSymbol=function(e,n){var i=e.getItemModel(n),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");Y(o)||(o=[o,o]);var l=e.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=me(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(a.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,a,n))},t.prototype._updateEffectAnimation=function(e,n,i){var a=this.childAt(1);if(a){var o=e.getItemLayout(i),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=Re(n.get("delay"),function(v){return v/e.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),f>0&&(s=this._getLineLength(a)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;vt(c)?h=c(i):h=c,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,n,i,a,o){if(n>0){e.__t=0;var s=this,l=e.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(e)});a||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return $i(e.__p1,e.__cp1)+$i(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,i){this.childAt(0).updateData(e,n,i),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,i=e.__p2,a=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Le,f=Fy;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var c=e.__t<1?f(n[0],a[0],i[0],o):f(i[0],a[0],n[0],1-o),h=e.__t<1?f(n[1],a[1],i[1],o):f(i[1],a[1],n[1],1-o);e.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=$i(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*$i(n,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,n){this.childAt(0).updateLayout(e,n);var i=e.getItemModel(n).getModel("effect");this._updateEffectAnimation(e,i,n)},t}(_t);const Ok=hK;var vK=function(r){B(t,r);function t(e,n,i){var a=r.call(this)||this;return a._createPolyline(e,n,i),a}return t.prototype._createPolyline=function(e,n,i){var a=e.getItemLayout(n),o=new mr({shape:{points:a}});this.add(o),this._updateCommonStl(e,n,i)},t.prototype.updateData=function(e,n,i){var a=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(n)}};Ht(o,s,a,n),this._updateCommonStl(e,n,i)},t.prototype._updateCommonStl=function(e,n,i){var a=this.childAt(0),o=e.getItemModel(n),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,f=i&&i.emphasisDisabled;if(!i||e.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}a.useStyle(e.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var h=a.ensureState("emphasis");h.style=s,ue(this,l,u,f)},t.prototype.updateLayout=function(e,n){var i=this.childAt(0);i.setShape("points",e.getItemLayout(n))},t}(_t);const Nk=vK;var dK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,n,i){return new Nk(e,n,i)},t.prototype._updateAnimationPoints=function(e,n){this._points=n;for(var i=[0],a=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];a+=$i(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var n=e.__t<1?e.__t:2-e.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-a[l])/(a[l+1]-a[l]),c=i[l],h=i[l+1];e.x=c[0]*(1-f)+f*h[0],e.y=c[1]*(1-f)+f*h[1];var v=e.__t<1?h[0]-c[0]:c[0]-h[0],d=e.__t<1?h[1]-c[1]:c[1]-h[1];e.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,e.ignore=!1}},t}(Ok);const pK=dK;var gK=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),yK=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gK},t.prototype.buildPath=function(e,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){e.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)e.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],f=i[o++],c=i[o++],h=i[o++];if(e.moveTo(u,f),a>0){var v=(u+c)/2-(f-h)*a,d=(f+h)/2-(c-u)*a;e.quadraticCurveTo(v,d,c,h)}else e.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var f=a[u++];if(f>0)for(var c=a[u++],h=a[u++],v=1;v<f;v++){var d=a[u++],p=a[u++];if(Hi(c,h,d,p,s,e,n))return l}l++}else for(var l=0,u=0;u<a.length;){var c=a[u++],h=a[u++],d=a[u++],p=a[u++];if(o>0){var g=(c+d)/2-(h-p)*o,y=(h+p)/2-(d-c)*o;if(FL(c,h,g,y,d,p,s,e,n))return l}else if(Hi(c,h,d,p,s,e,n))return l;l++}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var f=i[u++],c=i[u++];a=Math.min(f,a),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}e=this._rect=new Mt(a,o,s,l)}return e},t}(Pt),mK=function(){function r(){this.group=new _t}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new yK({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=e.getVisual("style");a&&a.stroke&&t.setStyle("stroke",a.stroke),t.setStyle("fill",null);var o=St(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const _K=mK;var SK={seriesType:"lines",plan:sl(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(e){for(var u=0,f=i.start;f<i.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],f=i.start;f<i.end;f++){var v=r.getLineCoords(f,o);e&&(s[c++]=v);for(var d=0;d<v;d++)h=t.dataToPoint(o[d],!1,h),s[c++]=h[0],s[c++]=h[1]}a.setLayout("linesPoints",s)}else for(var f=i.start;f<i.end;f++){var p=a.getItemModel(f),v=r.getLineCoords(f,o),g=[];if(e)for(var y=0;y<v;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}a.setItemLayout(f,g)}}}}}};const Vk=SK;var xK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._updateLineDraw(a,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=i.getZr(),f=u.painter.getType()==="svg";f||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var c=e.get("clip",!0)&&Pf(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateLineDraw(a,e);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,i){var a=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Vk.reset(e,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new _K:new b1(o?a?pK:Nk:a?Ok:x1),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(ee);const bK=xK;var wK=typeof Uint32Array=="undefined"?Array:Uint32Array,TK=typeof Float64Array=="undefined"?Array:Float64Array;function oC(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Z(t,function(e){var n=[e[0].coord,e[1].coord],i={coords:n};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),q0([i,e[0],e[1]])}))}var AK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],oC(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(oC(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Bu(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Bu(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],a=this._flatCoordsOffset[e*2+1],o=0;o<a;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[i+o*2],n[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Ft(e[0])){for(var i=e.length,a=new wK(i),o=new TK(i),s=0,l=0,u=0,f=0;f<i;){u++;var c=e[f++];a[l++]=s+n,a[l++]=c;for(var h=0;h<c;h++){var v=e[f++],d=e[f++];o[s++]=v,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,n){var i=new or(["value"],this);return i.hasItemOption=!1,i.initData(e.data,[],function(a,o,s,l){if(a instanceof Array)return NaN;i.hasItemOption=!0;var u=a.value;if(u!=null)return u instanceof Array?u[l]:u}),i},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=a.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Ie("nameValue",{name:f.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(le);const CK=AK;function Oc(r){return r instanceof Array||(r=[r,r]),r}var MK={seriesType:"lines",reset:function(r){var t=Oc(r.get("symbol")),e=Oc(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function i(a,o){var s=a.getItemModel(o),l=Oc(s.getShallow("symbol",!0)),u=Oc(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const DK=MK;function IK(r){r.registerChartView(bK),r.registerSeriesModel(CK),r.registerLayout(Vk),r.registerVisual(DK)}var LK=256,PK=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ia.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=t.length;c.width=e,c.height=n;for(var d=0;d<v;++d){var p=t[d],g=p[0],y=p[1],m=p[2],_=i(m);h.globalAlpha=_,h.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),x=S.data,b=0,w=x.length,T=this.minOpacity,A=this.maxOpacity,C=A-T;b<w;){var _=x[b+3]/256,D=Math.floor(_*(LK-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*C+T),x[b++]=I[D],x[b++]=I[D+1],x[b++]=I[D+2],x[b++]=I[D+3]*_*256}else b+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ia.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},r}();const RK=PK;function EK(r,t,e){var n=r[1]-r[0];t=Z(t,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&e[s]}}function kK(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(n){return n>=t[0]&&n<=t[1]}}function sC(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var OK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):sC(o)&&this._renderOnGeo(o,e,a,i)},t.prototype.incrementalPrepareRender=function(e,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,i,a){var o=n.coordinateSystem;o&&(sC(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,i,a,o){var s=e.coordinateSystem,l=zo(s,"cartesian2d"),u,f,c,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,f=d.getBandWidth()+.5,c=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=this.group,g=e.getData(),y=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),S=e.get(["itemStyle","borderRadius"]),x=De(e),b=e.getModel("emphasis"),w=b.get("focus"),T=b.get("blurScope"),A=b.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=i;D<a;D++){var I=void 0,L=g.getItemVisual(D,"style");if(l){var P=g.get(C[0],D),E=g.get(C[1],D);if(isNaN(g.get(C[2],D))||isNaN(P)||isNaN(E)||P<c[0]||P>c[1]||E<h[0]||E>h[1])continue;var O=s.dataToPoint([P,E]);I=new Vt({shape:{x:O[0]-u/2,y:O[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(g.get(C[1],D)))continue;I=new Vt({z2:1,shape:s.dataToRect([g.get(C[0],D)]).contentShape,style:L})}if(g.hasItemOption){var V=g.getItemModel(D),N=V.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),m=V.getModel(["blur","itemStyle"]).getItemStyle(),_=V.getModel(["select","itemStyle"]).getItemStyle(),S=V.get(["itemStyle","borderRadius"]),w=N.get("focus"),T=N.get("blurScope"),A=N.get("disabled"),x=De(V)}I.shape.r=S;var z=e.getRawValue(D),$="-";z&&z[2]!=null&&($=z[2]+""),Fe(I,x,{labelFetcher:e,labelDataIndex:D,defaultOpacity:L.opacity,defaultText:$}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,ue(I,w,T,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(D,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new RK;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,a.getWidth()),p=Math.min(f.height+f.y,a.getHeight()),g=d-h,y=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,A){var C=e.dataToPoint([w,T]);return C[0]-=h,C[1]-=v,C.push(A),C}),S=i.getExtent(),x=i.type==="visualMap.continuous"?kK(S,i.option.range):EK(S,i.getPieceList(),i.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new He({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(ee);const NK=OK;var VK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Ai(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Af.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(le);const BK=VK;function zK(r){r.registerChartView(NK),r.registerSeriesModel(BK)}var GK=["itemStyle","borderWidth"],lC=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Fg=new da,FK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:lC[+f],categoryDim:lC[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=fC(o,d),g=uC(o,d,p,h),y=cC(o,h,g);o.setItemGraphicEl(d,y),a.add(y),vC(y,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){a.remove(g);return}var y=fC(o,d),m=uC(o,d,y,h),_=Wk(o,m);g&&_!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(d,null),g=null),g?XK(g,h,m):g=cC(o,h,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,a.add(g),vC(g,h,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&hC(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?Pf(e.coordinateSystem,!1,e):null;return v?a.setClipPath(v):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var i=this.group,a=this._data;e.get("animation")?a&&a.eachItemGraphicEl(function(o){hC(a,St(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t}(ee);function uC(r,t,e,n){var i=r.getItemLayout(t),a=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};HK(e,a,i,n,h),WK(r,t,i,a,o,h.boundingLength,h.pxSign,f,n,h),$K(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Vo(e.get("symbolOffset"),v);return UK(e,v,i,a,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function HK(r,t,e,n,i){var a=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[a.wh]<=0),f;if(Y(o)){var c=[Hg(s,o[0])-l,Hg(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=Hg(s,o)-l:t?f=n.coordSysExtent[a.index][u]-l:f=e[a.wh];i.boundingLength=f,t&&(i.repeatCutLength=e[a.wh]);var h=a.xy==="x",v=s.inverse;i.pxSign=h&&!v||!h&&v?f>=0?1:-1:f>0?1:-1}function Hg(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function WK(r,t,e,n,i,a,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(e[c.wh]),v=r.getItemVisual(t,"symbolSize"),d;Y(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[c.index]=et(d[c.index],h),d[f.index]=et(d[f.index],n?h:Math.abs(a)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function $K(r,t,e,n,i){var a=r.get(GK)||0;a&&(Fg.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Fg.updateTransform(),a/=Fg.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function UK(r,t,e,n,i,a,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,d=c.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var y=Math.abs(l),m=Re(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=et(m,t[v.index]),x=Math.max(p+S*2,0),b=_?0:S*2,w=ML(n),T=w?n:dC((y+b)/x),A=y-T*p;S=A/2/(_?T:Math.max(T-1,1)),x=p+S*2,b=_?0:S*2,!w&&n!=="fixed"&&(T=u?dC((Math.abs(u)+b)/x):0),g=T*x-b,c.repeatTimes=T,c.symbolMargin=S}var C=d*(g/2),D=c.pathPosition=[];D[h.index]=e[h.wh]/2,D[v.index]=o==="start"?C:o==="end"?l-C:l/2,a&&(D[0]+=a[0],D[1]+=a[1]);var I=c.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=c.barRectShape=F({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(D[v.index]+C)),L[h.wh]=e[h.wh];var P=c.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=f.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Bk(r){var t=r.symbolPatternSize,e=me(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function zk(r,t,e,n){var i=r.__pictorialBundle,a=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=a[t.valueDim.index]+o+e.symbolMargin*2;for(R1(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?Es(p,null,d(f),e,n):Es(p,null,{scaleX:0,scaleY:0},e,n,function(){i.remove(p)}),f++});f<u;f++){var h=Bk(e);h.__pictorialAnimationIndex=f,h.__pictorialRepeatTimes=u,i.add(h);var v=d(f);Es(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},e,n)}function d(p){var g=s.slice(),y=e.pxSign,m=p;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Gk(r,t,e,n){var i=r.__pictorialBundle,a=r.__pictorialMainPath;a?Es(a,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(a=r.__pictorialMainPath=Bk(e),i.add(a),Es(a,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function Fk(r,t,e){var n=F({},t.barRectShape),i=r.__pictorialBarRect;i?Es(i,null,{shape:n},t,e):(i=r.__pictorialBarRect=new Vt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function Hk(r,t,e,n){if(e.symbolClip){var i=r.__pictorialClipPath,a=F({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(i)Ht(i,{shape:a},s,l);else{a[o.wh]=0,i=new Vt({shape:a}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=e.clipShape[o.wh],Oo[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function fC(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=YK,e.isAnimationEnabled=ZK,e}function YK(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function ZK(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function cC(r,t,e,n){var i=new _t,a=new _t;return i.add(a),i.__pictorialBundle=a,a.x=e.bundlePosition[0],a.y=e.bundlePosition[1],e.symbolRepeat?zk(i,t,e):Gk(i,t,e),Fk(i,e,n),Hk(i,t,e,n),i.__pictorialShapeStr=Wk(r,e),i.__pictorialSymbolMeta=e,i}function XK(r,t,e){var n=e.animationModel,i=e.dataIndex,a=r.__pictorialBundle;Ht(a,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,i),e.symbolRepeat?zk(r,t,e,!0):Gk(r,t,e,!0),Fk(r,e,!0),Hk(r,t,e,!0)}function hC(r,t,e,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];R1(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),M(a,function(o){oa(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function Wk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function R1(r,t,e){M(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Es(r,t,e,n,i,a){t&&r.attr(t),n.symbolClip&&!i?e&&r.attr(e):e&&Oo[i?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,a)}function vC(r,t,e){var n=e.dataIndex,i=e.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),f=a.get("focus"),c=a.get("blurScope"),h=a.get("scale");R1(r,function(p){if(p instanceof He){var g=p.style;p.useStyle(F({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,h&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Fe(d,De(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:$s(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),ue(r,f,c,a.get("disabled"))}function dC(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const qK=FK;var KK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=ga(sv.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(sv);const jK=KK;function JK(r){r.registerChartView(qK),r.registerSeriesModel(jK),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(xR,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bR("pictorialBar"))}var QK=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=a.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function h(g){return g.name}var v=new Si(this._layersSeries||[],l,h,h),d=[];v.add(at(p,this,"add")).update(at(p,this,"update")).remove(at(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,T=0;T<w.length;T++){var A=a.getItemLayout(w[T]),C=A.x,D=A.y0,I=A.y;S.push(C,D),x.push(C,D+I),b=a.getItemVisual(w[T],"style")}var L,P=a.getItemLayout(w[0]),E=e.getModel("label"),O=E.get("margin"),V=e.getModel("emphasis");if(g==="add"){var N=d[y]=new _t;L=new hE({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),N.add(L),s.add(N),e.isAnimationEnabled()&&L.setClipPath(tj(L.getBoundingRect(),e,function(){L.removeClipPath()}))}else{var N=_[m];L=N.childAt(0),s.add(N),d[y]=N,Ht(L,{shape:{points:S,stackedOnPoints:x}},e),pn(L)}Fe(L,De(e),{labelDataIndex:w[T-1],defaultText:a.getName(w[T-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var z=L.getTextContent();z&&(z.x=P.x-O,z.y=P.y0+P.y/2),L.useStyle(b),a.setItemGraphicEl(y,L),Ge(L,e),ue(L,V.get("focus"),V.get("blurScope"),V.get("disabled"))}this._layersSeries=l,this._layers=d},t.type="themeRiver",t}(ee);function tj(r,t,e){var n=new Vt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ae(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),n}const ej=QK;var Wg=2,rj=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new kf(at(this.getData,this),at(this.getRawData,this))},t.prototype.fixData=function(e){var n=e.length,i={},a=rm(e,function(h){return i.hasOwnProperty(h[0]+"")||(i[h[0]+""]=-1),h[2]}),o=[];a.buckets.each(function(h,v){o.push({name:v,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var c=o[l].dataList[f][0]+"";i[c]=l}for(var c in i)i.hasOwnProperty(c)&&i[c]!==l&&(i[c]=l,e[n]=[c,0,u],n++)}return e},t.prototype.getInitialData=function(e,n){for(var i=this.getReferringComponents("singleAxis",ge).models[0],a=i.get("type"),o=$t(e.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ft(),f=0,c=0;c<s.length;++c)l.push(s[c][Wg]),u.get(s[c][Wg])||(u.set(s[c][Wg],f),f++);var h=Mf(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:rv(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new or(h,this);return v.initData(s),v},t.prototype.getLayerSeries=function(){for(var e=this.getData(),n=e.count(),i=[],a=0;a<n;++a)i[a]=a;var o=e.mapDimension("single"),s=rm(i,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,h){return e.get(o,c)-e.get(o,h)}),l.push({name:f,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,n,i){Y(e)||(e=e?[e]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,h=-1,v=o[f].indices.length,d=0;d<v;++d){var p=a.get(e[0],o[f].indices[d]),g=Math.abs(p-n);g<=c&&(u=p,c=g,h=o[f].indices[d])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=a.getName(e),s=a.get(a.mapDimension("value"),e);return Ie("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(le);const nj=rj;function ij(r,t){r.eachSeriesByType("themeRiver",function(e){var n=e.getData(),i=e.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=e.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=et(s[0],o.height),s[1]=et(s[1],o.height);var u=o.height-s[0]-s[1];pC(n,e,u)}else{s[0]=et(s[0],o.width),s[1]=et(s[1],o.width);var f=o.width-s[0]-s[1];pC(n,e,f)}n.setLayout("layoutInfo",a)})}function pC(r,t,e){if(r.count())for(var n=t.coordinateSystem,i=t.getLayerSeries(),a=r.mapDimension("single"),o=r.mapDimension("value"),s=Z(i,function(g){return Z(g.indices,function(y){var m=n.dataToPoint(r.get(a,y));return m[1]=r.get(o,y),m})}),l=aj(s),u=l.y0,f=e/l.max,c=i.length,h=i[0].indices.length,v,d=0;d<h;++d){v=u[d]*f,r.setItemLayout(i[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:v,y:s[0][d][1]*f});for(var p=1;p<c;++p)v+=s[p-1][d][1]*f,r.setItemLayout(i[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:v,y:s[p][d][1]*f})}}function aj(r){for(var t=r.length,e=r[0].length,n=[],i=[],a=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>a&&(a=s),n.push(s)}for(var u=0;u<e;++u)i[u]=(a-n[u])/2;a=0;for(var f=0;f<e;++f){var c=n[f]+i[f];c>a&&(a=c)}return{y0:i,max:a}}function oj(r){r.registerChartView(ej),r.registerSeriesModel(nj),r.registerLayout(ij),r.registerProcessor(Ef("themeRiver"))}var sj=2,lj=4,uj=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this)||this;o.z2=sj,o.textConfig={inside:!0},St(o).seriesIndex=n.seriesIndex;var s=new Gt({z2:lj,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,n,i,a),o}return t.prototype.updateData=function(e,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;St(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=F({},f);c.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=Hs(v,o));var d=fo(l.getModel("itemStyle"),c,!0);F(c,d),M(lr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=fo(S,c);x&&(_.shape=x)}),e?(s.setShape(c),s.shape.r=f.r0,ae(s,{shape:{r:f.r}},i,n.dataIndex)):(Ht(s,{shape:c},i),pn(s)),s.useStyle(h),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),y=g==="relative"?Bu(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;ue(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,h=c.getTextContent(),v=this.node.dataIndex,d=a.get("minAngle")/180*Math.PI,p=a.get("show")&&!(d!=null&&Math.abs(s)<d);h.ignore=!p,M(Uu,function(y){var m=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),_=y==="normal",S=_?h:h.ensureState(y),x=e.getFormattedLabel(v,y);_&&(x=x||n.node.name),S.style=Qt(m,{},null,y!=="normal",!0),x&&(S.style.text=x);var b=m.get("show");b!=null&&!_&&(S.ignore=!b);var w=g(m,"position"),T=_?c:c.states[y],A=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?A:null,inside:w!=="outside"};var C,D=g(m,"distance")||0,I=g(m,"align"),L=g(m,"rotate"),P=Math.PI*.5,E=Math.PI*1.5,O=Tr(L==="tangential"?Math.PI/2-l:l),V=O>P&&!Hu(O-P)&&O<E;w==="outside"?(C=o.r+D,I=V?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?C=0:C=(o.r+o.r0)/2,I="center"):I==="left"?(C=o.r0+D,I=V?"right":"left"):I==="right"&&(C=o.r-D,I=V?"left":"right"),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=C*u+o.cx,S.y=C*f+o.cy;var N=0;L==="radial"?N=Tr(-l)+(V?Math.PI:0):L==="tangential"?N=Tr(Math.PI/2-l)+(V?Math.PI:0):Ft(L)&&(N=L*Math.PI/180),S.rotation=Tr(N)});function g(y,m){var _=y.get(m);return _==null?a.get(m):_}h.dirtyStyle()},t}(gr);const gC=uj;var t0="sunburstRootToNode",yC="sunburstHighlight",fj="sunburstUnhighlight";function cj(r){r.registerAction({type:t0,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=af(t,[t0],i);if(o){var s=i.getViewRoot();s&&(t.direction=p1(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),r.registerAction({type:yC,update:"none"},function(t,e,n){t=F({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=af(t,[yC],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(F(t,{type:"highlight"}))}),r.registerAction({type:fj,update:"updateView"},function(t,e,n){t=F({},t),n.dispatchAction(F(t,{type:"downplay"}))})}var hj=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){var o=this;this.seriesModel=e,this.api=i,this.ecModel=n;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),f=this.group,c=e.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var v=this._oldChildren||[];d(h,v),y(l,u),this._initEvents(),this._oldChildren=h;function d(m,_){if(m.length===0&&_.length===0)return;new Si(_,m,S,S).add(x).update(x).remove(bt(x,null)).execute();function S(b){return b.getId()}function x(b,w){var T=b==null?null:m[b],A=w==null?null:_[w];p(T,A)}}function p(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,e,n,i),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new gC(m,e,n,i);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,n,i):(o.virtualPiece=new gC(m,e,n,i),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=e.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Xh(u,f)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:t0,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(ee);const vj=hj;var dj=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var i={name:e.name,children:e.data};$k(i);var a=this._levelModels=Z(e.levels||[],function(l){return new te(l,this,n)},this),o=d1.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),h=a[c.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Ad(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){XE(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(le);function $k(r){var t=0;M(r.children,function(n){$k(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var e=r.value;Y(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Y(r.value)?r.value[0]=e:r.value=e}const pj=dj;var mC=Math.PI/180;function gj(r,t,e){t.eachSeriesByType(r,function(n){var i=n.get("center"),a=n.get("radius");Y(a)||(a=[0,a]),Y(i)||(i=[i,i]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=et(i[0],o),f=et(i[1],s),c=et(a[0],l/2),h=et(a[1],l/2),v=-n.get("startAngle")*mC,d=n.get("minAngle")*mC,p=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&Uk(g,m);var _=0;M(g.children,function(O){!isNaN(O.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(h-c)/(w||1),A=n.get("clockwise"),C=n.get("stillShowZeroSum"),D=A?1:-1,I=function(O,V){if(O){var N=V;if(O!==p){var z=O.getValue(),$=S===0&&C?x:z*x;$<d&&($=d),N=V+D*$;var q=O.depth-y-(b?-1:1),Q=c+T*q,ct=c+T*(q+1),ht=n.getLevelModel(O);if(ht){var gt=ht.get("r0",!0),Et=ht.get("r",!0),U=ht.get("radius",!0);U!=null&&(gt=U[0],Et=U[1]),gt!=null&&(Q=et(gt,l/2)),Et!=null&&(ct=et(Et,l/2))}O.setLayout({angle:$,startAngle:V,endAngle:N,clockwise:A,cx:u,cy:f,r0:Q,r:ct})}if(O.children&&O.children.length){var K=0;M(O.children,function(H){K+=I(H,V+K)})}return N-V}};if(b){var L=c,P=c+T,E=Math.PI*2;p.setLayout({angle:E,startAngle:v,endAngle:v+E,clockwise:A,cx:u,cy:f,r0:L,r:P})}I(g,v)})}function Uk(r,t){var e=r.children||[];r.children=yj(e,t),e.length&&M(r.children,function(n){Uk(n,t)})}function yj(r,t){if(vt(t)){var e=Z(r,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return e.sort(function(i,a){return t(i.params,a.params)}),Z(e,function(i){return r[i.index]})}else{var n=t==="asc";return r.sort(function(i,a){var o=(i.getValue()-a.getValue())*(n?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(n?-1:1):o})}}function mj(r){var t={};function e(n,i,a){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&nt(s)&&(s=$y(s,(n.depth-1)/(a-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");F(u,l)})})}function _j(r){r.registerChartView(vj),r.registerSeriesModel(pj),r.registerLayout(bt(gj,"sunburst")),r.registerProcessor(bt(Ef,"sunburst")),r.registerVisual(mj),cj(r)}var _C={color:"fill",borderColor:"stroke"},Sj={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},fi=Nt(),xj=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return Ai(null,this)},t.prototype.getDataParams=function(e,n,i){var a=r.prototype.getDataParams.call(this,e,n);return i&&(a.info=fi(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(le);const bj=xj;function wj(r,t){return t=t||[0,0],Z(["x","y"],function(e,n){var i=this.getAxis(e),a=t[n],o=r[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function Tj(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:at(wj,r)}}}function Aj(r,t){return t=t||[0,0],Z([0,1],function(e){var n=t[e],i=r[e]/2,a=[],o=[];return a[e]=n-i,o[e]=n+i,a[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(a)[e]-this.dataToPoint(o)[e])},this)}function Cj(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:at(Aj,r)}}}function Mj(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,i=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-i)-e.dataToCoord(n+i))}function Dj(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:at(Mj,r)}}}function Ij(r,t){return t=t||[0,0],Z(["Radius","Angle"],function(e,n){var i="get"+e+"Axis",a=this[i](),o=t[n],s=r[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function Lj(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),s=r.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:at(Ij,r)}}}function Pj(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,i){return r.dataToPoint(n,i)}}}}function Yk(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function Zk(r,t,e){var n=r,i,a,o;if(t==="text")o=n;else{o={},st(n,"text")&&(o.text=n.text),st(n,"rich")&&(o.rich=n.rich),st(n,"textFill")&&(o.fill=n.textFill),st(n,"textStroke")&&(o.stroke=n.textStroke),st(n,"fontFamily")&&(o.fontFamily=n.fontFamily),st(n,"fontSize")&&(o.fontSize=n.fontSize),st(n,"fontStyle")&&(o.fontStyle=n.fontStyle),st(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=st(n,"textPosition");e?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),st(n,"textPosition")&&(i.position=n.textPosition),st(n,"textOffset")&&(i.offset=n.textOffset),st(n,"textRotation")&&(i.rotation=n.textRotation),st(n,"textDistance")&&(i.distance=n.textDistance)}return SC(o,r),M(o.rich,function(l){SC(l,l)}),{textConfig:i,textContent:a}}function SC(r,t){t&&(t.font=t.textFont||t.font,st(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),st(t,"textAlign")&&(r.align=t.textAlign),st(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),st(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),st(t,"textWidth")&&(r.width=t.textWidth),st(t,"textHeight")&&(r.height=t.textHeight),st(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),st(t,"textPadding")&&(r.padding=t.textPadding),st(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),st(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),st(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),st(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),st(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),st(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),st(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function xC(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var i=n.textPosition.indexOf("inside")>=0,a=r.fill||"#000";bC(n,t);var o=n.textFill==null;return i?o&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,M(t.rich,function(s){bC(s,s)}),n}function bC(r,t){t&&(st(t,"fill")&&(r.textFill=t.fill),st(t,"stroke")&&(r.textStroke=t.fill),st(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),st(t,"font")&&(r.font=t.font),st(t,"fontStyle")&&(r.fontStyle=t.fontStyle),st(t,"fontWeight")&&(r.fontWeight=t.fontWeight),st(t,"fontSize")&&(r.fontSize=t.fontSize),st(t,"fontFamily")&&(r.fontFamily=t.fontFamily),st(t,"align")&&(r.textAlign=t.align),st(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),st(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),st(t,"width")&&(r.textWidth=t.width),st(t,"height")&&(r.textHeight=t.height),st(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),st(t,"padding")&&(r.textPadding=t.padding),st(t,"borderColor")&&(r.textBorderColor=t.borderColor),st(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),st(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),st(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),st(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),st(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),st(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),st(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),st(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),st(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),st(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Xk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},wC=kt(Xk);Fn(Wn,function(r,t){return r[t]=1,r},{});Wn.join(", ");var pv=["","style","shape","extra"],Zs=Nt();function E1(r,t,e,n,i){var a=r+"Animation",o=tl(r,n,i)||{},s=Zs(t).userDuring;return o.duration>0&&(o.during=s?at(Nj,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,e[a]),o}function gh(r,t,e,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=Zs(r),u=t.style;l.userDuring=t.during;var f={},c={};if(Bj(r,t,c),AC("shape",t,c),AC("extra",t,c),!a&&s&&(Vj(r,t,f),TC("shape",r,t,f),TC("extra",r,t,f),zj(r,t,u,f)),c.style=u,Rj(r,c,o),kj(r,t),s)if(a){var h={};M(pv,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),F(d?h[d]:h,p.enterFrom))});var v=E1("enter",r,t,e,i);v.duration>0&&r.animateFrom(h,v)}else Ej(r,t,i||0,e,f);qk(r,t),u?r.dirty():r.markRedraw()}function qk(r,t){for(var e=Zs(r).leaveToProps,n=0;n<pv.length;n++){var i=pv[n],a=i?t[i]:t;a&&a.leaveTo&&(e||(e=Zs(r).leaveToProps={}),i&&(e[i]=e[i]||{}),F(i?e[i]:e,a.leaveTo))}}function Dd(r,t,e,n){if(r){var i=r.parent,a=Zs(r).leaveToProps;if(a){var o=E1("update",r,t,e,0);o.done=function(){i.remove(r),n&&n()},r.animateTo(a,o)}else i.remove(r),n&&n()}}function To(r){return r==="all"}function Rj(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var i=r.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function Ej(r,t,e,n,i){if(i){var a=E1("update",r,t,n,e);a.duration>0&&r.animateFrom(i,a)}}function kj(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof Yr&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Pt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var An={},Oj={setTransform:function(r,t){return An.el[r]=t,this},getTransform:function(r){return An.el[r]},setShape:function(r,t){var e=An.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=An.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=An.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=An.el.style;if(t)return t[r]},setExtra:function(r,t){var e=An.el.extra||(An.el.extra={});return e[r]=t,this},getExtra:function(r){var t=An.el.extra;if(t)return t[r]}};function Nj(){var r=this,t=r.el;if(t){var e=Zs(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}An.el=t,n(Oj)}}function TC(r,t,e,n){var i=e[r];if(i){var a=t[r],o;if(a){var s=e.transition,l=i.transition;if(l)if(!o&&(o=n[r]={}),To(l))F(o,a);else for(var u=Zt(l),f=0;f<u.length;f++){var c=u[f],h=a[c];o[c]=h}else if(To(s)||Dt(s,r)>=0){!o&&(o=n[r]={});for(var v=kt(a),f=0;f<v.length;f++){var c=v[f],h=a[c];Gj(i[c],h)&&(o[c]=h)}}}}}function AC(r,t,e){var n=t[r];if(n)for(var i=e[r]={},a=kt(n),o=0;o<a.length;o++){var s=a[o];i[s]=yu(n[s])}}function Vj(r,t,e){for(var n=t.transition,i=To(n)?Wn:Zt(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function Bj(r,t,e){for(var n=0;n<wC.length;n++){var i=wC[n],a=Xk[i],o=t[i];o&&(e[a[0]]=o[0],e[a[1]]=o[1])}for(var n=0;n<Wn.length;n++){var s=Wn[n];t[s]!=null&&(e[s]=t[s])}}function zj(r,t,e,n){if(e){var i=r.style,a;if(i){var o=e.transition,s=t.transition;if(o&&!To(o)){var l=Zt(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=i[f];a[f]=c}}else if(r.getAnimationStyleProps&&(To(s)||To(o)||Dt(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!a&&(a=n.style={});for(var d=kt(e),u=0;u<d.length;u++){var f=d[u];if(v[f]){var c=i[f];a[f]=c}}}}}}}function Gj(r,t){return Ke(r)?r!==t:r!=null&&isFinite(r)}var Kk=Nt(),Fj=["percent","easing","shape","style","extra"];function jk(r){r.stopAnimation("keyframe"),r.attr(Kk(r))}function gv(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(Y(t)){M(t,function(s){gv(r,s,e)});return}var n=t.keyframes,i=t.duration;if(e&&i==null){var a=tl("enter",e,0);i=a&&a.duration}if(!(!n||!i)){var o=Kk(r);M(pv,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),M(n,function(u){var f=r.animators,c=s?u[s]:u;if(c){var h=kt(c);if(s||(h=$t(h,function(p){return Dt(Fj,p)<0})),!!h.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;M(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(i*u.percent,c,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var ci="emphasis",ji="normal",k1="blur",O1="select",ca=[ji,ci,k1,O1],$g={normal:["itemStyle"],emphasis:[ci,"itemStyle"],blur:[k1,"itemStyle"],select:[O1,"itemStyle"]},Ug={normal:["label"],emphasis:[ci,"label"],blur:[k1,"label"],select:[O1,"label"]},Hj=["x","y"],Wj="e\0\0",Er={normal:{},emphasis:{},blur:{},select:{}},$j={cartesian2d:Tj,geo:Cj,single:Dj,polar:Lj,calendar:Pj};function e0(r){return r instanceof Pt}function r0(r){return r instanceof Yr}function Uj(r,t){t.copyTransform(r),r0(t)&&r0(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,e0(t)&&e0(r)&&t.setShape(r.shape))}var Yj=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=CC(e,s,n,i);o||l.removeAll(),s.diff(o).add(function(c){Yg(i,null,c,u(c,a),e,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&Dd(h,fi(h).option,e)}).update(function(c,h){var v=o.getItemGraphicEl(h);Yg(i,v,c,u(c,a),e,l,s)}).execute();var f=e.get("clip",!0)?Pf(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,n,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,n,i,a,o){var s=n.getData(),l=CC(n,s,i,a),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var h=Yg(null,null,c,l(c,o),n,this.group,s);h&&(h.traverse(f),u.push(h))}},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t}(ee);const Zj=Yj;function N1(r){var t=r.type,e;if(t==="path"){var n=r.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=tO(n);e=id(a,null,i,n.layout||"center"),fi(e).customPathData=a}else if(t==="image")e=new He({}),fi(e).customImagePath=r.style.image;else if(t==="text")e=new Gt({});else if(t==="group")e=new _t;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=x_(t);if(!o){var s="";Wt(s)}e=new o}return fi(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function V1(r,t,e,n,i,a,o){jk(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=Hj);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;st(u,"textFill")&&(u.fill=u.textFill),st(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=e0(t)?l.decal:null;r&&c&&(c.dirty=!0,f=Hs(c,r)),l.__decalPattern=f}if(r0(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}gh(t,n,a,{dataIndex:e,isInit:o,clearStyle:!0}),gv(t,n.keyframeAnimation,a)}function Jk(r,t,e,n,i){var a=t.isGroup?null:t,o=i&&i[r].cfg;if(a){var s=a.ensureState(r);if(n===!1){var l=a.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Do(a)}}function Xj(r,t,e){if(!r.isGroup){var n=r,i=e.currentZ,a=e.currentZLevel;n.z=i,n.zlevel=a;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<ca.length;s++)qj(n,t,ca[s])}}function qj(r,t,e){var n=e===ji,i=n?t:yv(t,e),a=i?i.z2:null,o;a!=null&&(o=n?r:r.ensureState(e),o.z2=a||0)}function CC(r,t,e,n){var i=r.get("renderItem"),a=r.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):$j[a.type](a));for(var s=pt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:b,ordinalRawValue:x,styleEmphasis:w,visual:C,barLayout:D,currentSeriesIndices:I,font:L},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:Kj(r.getData())},u,f,c={},h={},v={},d={},p=0;p<ca.length;p++){var g=ca[p];v[g]=r.getModel($g[g]),d[g]=r.getModel(Ug[g])}function y(P){return P===u?f||(f=t.getItemModel(P)):t.getItemModel(P)}function m(P,E){return t.hasItemOption?P===u?c[E]||(c[E]=y(P).getModel($g[E])):y(P).getModel($g[E]):v[E]}function _(P,E){return t.hasItemOption?P===u?h[E]||(h[E]=y(P).getModel(Ug[E])):y(P).getModel(Ug[E]):d[E]}return function(P,E){return u=P,f=null,c={},h={},i&&i(pt({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:E?E.type:null},l),s)};function S(P,E){return E==null&&(E=u),t.getStore().get(t.getDimensionIndex(P||0),E)}function x(P,E){E==null&&(E=u),P=P||0;var O=t.getDimensionInfo(P);if(!O){var V=t.getDimensionIndex(P);return V>=0?t.getStore().get(V,E):void 0}var N=t.get(O.name,E),z=O&&O.ordinalMeta;return z?z.categories[N]:N}function b(P,E){E==null&&(E=u);var O=t.getItemVisual(E,"style"),V=O&&O.fill,N=O&&O.opacity,z=m(E,ji).getItemStyle();V!=null&&(z.fill=V),N!=null&&(z.opacity=N);var $={inheritColor:nt(V)?V:"#000"},q=_(E,ji),Q=Qt(q,null,$,!1,!0);Q.text=q.getShallow("show")?xt(r.getFormattedLabel(E,ji),$s(t,E)):null;var ct=Yh(q,$,!1);return A(P,z),z=xC(z,Q,ct),P&&T(z,P),z.legacy=!0,z}function w(P,E){E==null&&(E=u);var O=m(E,ci).getItemStyle(),V=_(E,ci),N=Qt(V,null,null,!0,!0);N.text=V.getShallow("show")?Bn(r.getFormattedLabel(E,ci),r.getFormattedLabel(E,ji),$s(t,E)):null;var z=Yh(V,null,!0);return A(P,O),O=xC(O,N,z),P&&T(O,P),O.legacy=!0,O}function T(P,E){for(var O in E)st(E,O)&&(P[O]=E[O])}function A(P,E){P&&(P.textFill&&(E.textFill=P.textFill),P.textPosition&&(E.textPosition=P.textPosition))}function C(P,E){if(E==null&&(E=u),st(_C,P)){var O=t.getItemVisual(E,"style");return O?O[_C[P]]:null}if(st(Sj,P))return t.getItemVisual(E,P)}function D(P){if(a.type==="cartesian2d"){var E=a.getBaseAxis();return K$(pt({axis:E},P))}}function I(){return e.getCurrentSeriesIndices()}function L(P){return b_(P,e)}}function Kj(r){var t={};return M(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Yg(r,t,e,n,i,a,o){if(!n){a.remove(t);return}var s=B1(r,t,e,n,i,a);return s&&o.setItemGraphicEl(e,s),s&&ue(s,n.focus,n.blurScope,n.emphasisDisabled),s}function B1(r,t,e,n,i,a){var o=-1,s=t;t&&Qk(t,n,i)&&(o=Dt(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=N1(n),s&&Uj(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Er.normal.cfg=Er.normal.conOpt=Er.emphasis.cfg=Er.emphasis.conOpt=Er.blur.cfg=Er.blur.conOpt=Er.select.cfg=Er.select.conOpt=null,Er.isLegacy=!1,Jj(u,e,n,i,l,Er),jj(u,e,n,i,l),V1(r,u,e,n,Er,i,l),st(n,"info")&&(fi(u).info=n.info);for(var f=0;f<ca.length;f++){var c=ca[f];if(c!==ji){var h=yv(n,c),v=z1(n,h,c);Jk(c,u,h,v,Er)}}return Xj(u,n,i),n.type==="group"&&Qj(r,u,e,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function Qk(r,t,e){var n=fi(r),i=t.type,a=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&nJ(a)&&tO(a)!==n.customPathData||i==="image"&&st(o,"image")&&o.image!==n.customImagePath}function jj(r,t,e,n,i){var a=e.clipPath;if(a===!1)r&&r.getClipPath()&&r.removeClipPath();else if(a){var o=r.getClipPath();o&&Qk(o,a,n)&&(o=null),o||(o=N1(a),r.setClipPath(o)),V1(null,o,t,a,null,n,i)}}function Jj(r,t,e,n,i,a){if(!r.isGroup){MC(e,null,a),MC(e,ci,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=N1(o),r.setTextContent(f)),V1(null,f,t,o,null,n,i);for(var c=o&&o.style,h=0;h<ca.length;h++){var v=ca[h];if(v!==ji){var d=a[v].conOpt;Jk(v,f,d,z1(o,d,v),null)}}c?f.dirty():f.markRedraw()}}}}function MC(r,t,e){var n=t?yv(r,t):r,i=t?z1(r,n,ci):r.style,a=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?t?yv(s,t):s:null;if(i&&(e.isLegacy||Yk(i,a,!!o,!!l))){e.isLegacy=!0;var u=Zk(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var c=t?e[t]:e.normal;c.cfg=o,c.conOpt=l}function yv(r,t){return t?r?r[t]:null:r}function z1(r,t,e){var n=t&&t.style;return n==null&&e===ci&&r&&(n=r.styleEmphasis),n}function Qj(r,t,e,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){eJ({api:r,oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,seriesModel:i,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=a[f],h=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),B1(r,h,e,c,i,t)):h.ignore=!0}for(var v=t.childCount()-1;v>=f;v--){var d=t.childAt(v);tJ(t,d,i)}}}function tJ(r,t,e){t&&Dd(t,fi(r).option,e)}function eJ(r){new Si(r.oldChildren,r.newChildren,DC,DC,r).add(IC).update(IC).remove(rJ).execute()}function DC(r,t){var e=r&&r.name;return e!=null?e:Wj+t}function IC(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;B1(e.api,i,e.dataIndex,n,e.seriesModel,e.group)}function rJ(r){var t=this.context,e=t.oldChildren[r];e&&Dd(e,fi(e).option,t.seriesModel)}function tO(r){return r&&(r.pathData||r.d)}function nJ(r){return r&&(st(r,"pathData")||st(r,"d"))}function iJ(r){r.registerChartView(Zj),r.registerSeriesModel(bj)}var Qa=Nt(),LC=mt,Zg=at,aJ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,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,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new _t,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var h=bt(PC,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}EC(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.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=s1(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Qa(t).pointerEl=new Oo[a.type](LC(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Qa(t).labelEl=new Gt(LC(e.label));t.add(a),RC(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Qa(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Qa(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),RC(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.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=Tf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){gi(u.event)},onmousedown:Zg(this._onHandleDragMove,this,0,0),drift:Zg(this._onHandleDragMove,this),ondragend:Zg(this._onHandleDragEnd,this)}),n.add(i)),EC(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ll(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){PC(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Xg(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Xg(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Xg(i)),Qa(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),ju(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function PC(r,t,e,n){eO(Qa(e).lastProp,n)||(Qa(e).lastProp=n,t?Ht(e,n,r):(e.stopAnimation(),e.attr(n)))}function eO(r,t){if(yt(r)&&yt(t)){var e=!0;return M(t,function(n,i){e=e&&eO(r[i],n)}),!!e}else return r===t}function RC(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Xg(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function EC(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const G1=aJ;function F1(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function rO(r,t,e,n,i){var a=e.get("value"),o=nO(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=nl(s.get("padding")||0),u=s.getFont(),f=_f(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),oJ(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Qt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function oJ(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function nO(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:j_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),nt(o)?a=o.replace("{value}",a):vt(o)&&(a=o(s))}return a}function H1(r,t,e){var n=Cr();return Eo(n,n,e.rotation),Hn(n,n,e.position),cn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function iO(r,t,e,n,i,a){var o=xi.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),rO(t,n,i,a,{position:H1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function W1(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function aO(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function kC(r,t,e,n,i,a){return{cx:r,cy:t,r0:e,r:n,startAngle:i,endAngle:a,clockwise:!0}}var sJ=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=OC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=F1(a),v=lJ[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Bm(l.model,i);iO(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=Bm(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=H1(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=OC(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.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,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(G1);function OC(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var lJ={line:function(r,t,e){var n=W1([t,e[0]],[t,e[1]],NC(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:aO([t-n/2,e[0]],[n,i],NC(r))}}};function NC(r){return r.dim==="x"?0:1}const uJ=sJ;var fJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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}(Bt);const cJ=fJ;var oi=Nt(),hJ=M;function oO(r,t,e){if(!zt.node){var n=t.getZr();oi(n).records||(oi(n).records={}),vJ(n,t);var i=oi(n).records[r]||(oi(n).records[r]={});i.handler=e}}function vJ(r,t){if(oi(r).initialized)return;oi(r).initialized=!0,e("click",bt(VC,"click")),e("mousemove",bt(VC,"mousemove")),e("globalout",pJ);function e(n,i){r.on(n,function(a){var o=gJ(t);hJ(oi(r).records,function(s){s&&i(s,a,o.dispatchAction)}),dJ(o.pendings,t)})}}function dJ(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function pJ(r,t,e){r.handler("leave",null,e)}function VC(r,t,e,n){t.handler(r,e,n)}function gJ(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function n0(r,t){if(!zt.node){var e=t.getZr(),n=(oi(e).records||{})[r];n&&(oi(e).records[r]=null)}}var yJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";oO("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(e,n){n0("axisPointer",n)},t.prototype.dispose=function(e,n){n0("axisPointer",n)},t.type="axisPointer",t}(fe);const mJ=yJ;function sO(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Co(a,r);if(o==null||o<0||Y(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(a.getValues(Z(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var BC=Nt();function _J(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||at(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){yh(i)&&(i=sO({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=yh(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||yh(i),h={},v={},d={list:[],map:{}},p={showPointer:bt(xJ,v),showTooltip:bt(bJ,d)};M(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);M(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=CJ(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&zC(S,T,p,!1,h)}})});var g={};return M(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,x){var b=v[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,GC(S),GC(y)))),g[y.key]=w}})}),M(g,function(y,m){zC(f[m],y,p,!0,h)}),wJ(v,f,h),TJ(d,i,r,o),AJ(f,o,e),h}}function zC(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=SJ(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function SJ(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=c,a.length=0),M(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function xJ(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function bJ(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=nf(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.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 wJ(r,t,e){var n=e.axesInfo=[];M(t,function(i,a){var o=i.axisPointerModel.option,s=r[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 TJ(r,t,e,n){if(yh(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function AJ(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=BC(n)[i]||{},o=BC(n)[i]={};M(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&M(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];M(a,function(u,f){!o[f]&&l.push(u)}),M(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function CJ(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function GC(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function yh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Vf(r){Go.registerAxisPointerClass("CartesianAxisPointer",uJ),r.registerComponentModel(cJ),r.registerComponentView(mJ),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=vY(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},_J)}function MJ(r){Lt(EE),Lt(Vf)}var DJ=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var v=F1(a),d=LJ[h](s,l,c,f);d.style=v,e.graphicKey=d.type,e.pointer=d}var p=a.get(["label","margin"]),g=IJ(n,i,a,l,p);rO(e,i,a,o,g)},t}(G1);function IJ(r,t,e,n,i){var a=t.axis,o=a.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(a.dim==="radius"){var h=Cr();Eo(h,h,s),Hn(h,h,[n.cx,n.cy]),u=cn([o,-i],h);var v=t.getModel("axisLabel").get("rotate")||0,d=xi.innerTextLayout(s,v*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+i,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var LJ={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:W1(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var i=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:kC(t.cx,t.cy,n[0],n[1],(-e-i/2)*a,(-e+i/2)*a)}:{type:"Sector",shape:kC(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}};const PJ=DJ;var RJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,i=this.ecModel;return i.eachComponent(e,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Bt);const EJ=RJ;var $1=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ge).models[0]},t.type="polarAxis",t}(Bt);_e($1,Df);var kJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}($1),OJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}($1),U1=function(r){B(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(yn);U1.prototype.dataToRadius=yn.prototype.dataToCoord;U1.prototype.radiusToData=yn.prototype.coordToData;const NJ=U1;var VJ=Nt(),Y1=function(r){B(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=_f(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),h=c/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=VJ(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(yn);Y1.prototype.dataToAngle=yn.prototype.dataToCoord;Y1.prototype.angleToData=yn.prototype.coordToData;const BJ=Y1;var lO=["radius","angle"],zJ=function(){function r(t){this.dimensions=lO,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new NJ,this._angleAxis=new BJ,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+n*n);e/=l,n/=l;for(var u=Math.atan2(-n,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,a=-Math.sin(n)*e+this.cy;return[i,a]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,h=this.r,v=this.r0;return h!==v&&c-o<=h*h&&c+o>=v*v}}},r.prototype.convertToPixel=function(t,e,n){var i=FC(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=FC(e);return i===this?this.pointToData(n):null},r}();function FC(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const GJ=zJ;function FJ(r,t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight();r.cx=et(n[0],i),r.cy=et(n[1],a);var o=r.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Y(l)||(l=[0,l]);var u=[et(l[0],s),et(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function HJ(r,t){var e=this,n=e.getAngleAxis(),i=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();M(nv(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),M(nv(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Ws(n.scale,n.model),Ws(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function WJ(r){return r.mainType==="angleAxis"}function HC(r,t){var e;if(r.type=t.get("type"),r.scale=xd(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),WJ(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,i)}t.axis=r,r.model=t}var $J={dimensions:lO,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,i){var a=new GJ(i+"");a.update=HJ;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");HC(o,l),HC(s,u),FJ(a,n,t),e.push(a),n.coordinateSystem=a,a.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",ge).models[0];n.coordinateSystem=i.coordinateSystem}}),e}};const UJ=$J;var YJ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Nc(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Vc(r){var t=r.getRadiusAxis();return t.inverse?0:1}function WC(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var ZJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Z(i.getViewLabels(),function(f){f=mt(f);var c=i.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(h),f});WC(u),WC(s),M(YJ,function(f){e.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&XJ[f](this.group,e,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Go),XJ={axisLine:function(r,t,e,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Vc(e),c=f?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[c]===0?h=new Oo[v]({shape:{cx:e.cx,cy:e.cy,r:a[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new rd({shape:{cx:e.cx,cy:e.cy,r:a[f],r0:a[c]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Vc(e)],u=Z(n,function(f){return new Ee({shape:Nc(e,[l,l+s],f.coord)})});r.add(Hr(u,{style:pt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Vc(e)],f=[],c=0;c<i.length;c++)for(var h=0;h<i[c].length;h++)f.push(new Ee({shape:Nc(e,[u,u+l],i[c][h].coord)}));r.add(Hr(f,{style:pt(s.getModel("lineStyle").getLineStyle(),pt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");M(o,function(c,h){var v=l,d=c.tickValue,p=a[Vc(e)],g=e.coordToPoint([p+u,c.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var x=s[d];yt(x)&&x.textStyle&&(v=new te(x.textStyle,l,l.ecModel))}var b=new Gt({silent:xi.isLabelSilent(t),style:Qt(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),f){var w=xi.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,St(b).eventData=w}},this)},splitLine:function(r,t,e,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Ee({shape:Nc(e,a,n[c].coord)}))}for(var c=0;c<f.length;c++)r.add(Hr(f[c],{style:pt({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var f=0;f<i[u].length;f++)l.push(new Ee({shape:Nc(e,a,i[u][f].coord)}));r.add(Hr(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,i,a){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,h=-n[0].coord*c,v=Math.min(a[0],a[1]),d=Math.max(a[0],a[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new gr({shape:{cx:e.cx,cy:e.cy,r0:v,r:d,startAngle:h,endAngle:-m*c,clockwise:p},silent:!0})),h=-m*c}for(var g=0;g<f.length;g++)r.add(Hr(f[g],{style:pt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const qJ=ZJ;var KJ=["axisLine","axisTickLabel","axisName"],jJ=["splitLine","splitArea","minorSplitLine"],JJ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,a=this._axisGroup=new _t;this.group.add(a);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),c=l.getExtent()[0],h=o.getExtent(),v=tQ(s,e,c),d=new xi(e,v);M(KJ,d.add,d),a.add(d.getGroup()),wf(i,a,e),M(jJ,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&QJ[p](this.group,e,s,c,h,u,f)},this)}},t.type="radiusAxis",t}(Go),QJ={splitLine:function(r,t,e,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=e.getAngleAxis(),c=Math.PI/180,h=f.getExtent(),v=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<a.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new Oo[v]({shape:{cx:e.cx,cy:e.cy,r:Math.max(a[p].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)r.add(Hr(d[p],{style:pt({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new da({shape:{cx:e.cx,cy:e.cy,r:o[f][c].coord}}));r.add(Hr(u,{style:pt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,i,a){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=a[0].coord,h=1;h<a.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new gr({shape:{cx:e.cx,cy:e.cy,r0:c,r:a[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=a[h].coord}for(var h=0;h<f.length;h++)r.add(Hr(f[h],{style:pt({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function tQ(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const eQ=JJ;function uO(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function fO(r,t){return t.dim+r.model.componentIndex}function rQ(r,t,e){var n={},i=nQ($t(t.getSeriesByType(r),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=fO(s,l),f=uO(a),c=i[u][f],h=c.offset,v=c.width,d=s.getOtherAxis(l),p=a.coordinateSystem.cx,g=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),x=la(o,_),b=l.dim!=="radius"||!a.get("roundCap",!0),w=d.model,T=w.get("startValue"),A=d.dataToCoord(T||0),C=0,D=o.count();C<D;C++){var I=o.get(_,C),L=o.get(S,C),P=I>=0?"p":"n",E=A;x&&(n[f][L]||(n[f][L]={p:A,n:A}),E=n[f][L][P]);var O=void 0,V=void 0,N=void 0,z=void 0;if(d.dim==="radius"){var $=d.dataToCoord(I)-A,q=l.dataToCoord(L);Math.abs($)<y&&($=($<0?-1:1)*y),O=E,V=E+$,N=q-h,z=N-v,x&&(n[f][L][P]=V)}else{var Q=d.dataToCoord(I,b)-A,ct=l.dataToCoord(L);Math.abs(Q)<m&&(Q=(Q<0?-1:1)*m),O=ct+h,V=O+v,N=E,z=E+Q,x&&(n[f][L][P]=z)}o.setItemLayout(C,{cx:p,cy:g,r0:O,r:V,startAngle:-N*Math.PI/180,endAngle:-z*Math.PI/180,clockwise:N>=z})}}})}function nQ(r){var t={};M(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=fO(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;t[l]=c;var v=uO(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=et(n.get("barWidth"),f),p=et(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(c.remainedWidth,d),h[v].width=d,c.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var e={};return M(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=et(n.categoryGap,o),l=et(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),M(a,function(p,g){var y=p.maxWidth;y&&y<c&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),c=(u-s)/(f+(f-1)*l),c=Math.max(c,0);var h=0,v;M(a,function(p,g){p.width||(p.width=c),v=p,h+=p.width*(1+l)}),v&&(h-=v.width*l);var d=-h/2;M(a,function(p,g){e[i][g]=e[i][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var iQ={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},aQ={splitNumber:5},oQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(fe);function sQ(r){Lt(Vf),Go.registerAxisPointerClass("PolarAxisPointer",PJ),r.registerCoordinateSystem("polar",UJ),r.registerComponentModel(EJ),r.registerComponentView(oQ),Us(r,"angle",kJ,iQ),Us(r,"radius",OJ,aQ),r.registerComponentView(qJ),r.registerComponentView(eQ),r.registerLayout(bt(rQ,"bar"))}function i0(r,t){t=t||{};var e=r.coordinateSystem,n=r.axis,i={},a=n.position,o=n.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var f={horizontal:0,vertical:1};i.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=c[a],r.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Re(t.labelInside,r.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var h=t.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-h:h,i.z2=1,i}var lQ=["axisLine","axisTickLabel","axisName"],uQ=["splitArea","splitLine"],fQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,n,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new _t;var l=i0(e),u=new xi(e,l);M(lQ,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),M(uQ,function(f){e.get([f,"show"])&&cQ[f](this,this.group,this._axisGroup,e)},this),wf(s,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)},t.prototype.remove=function(){LE(this)},t.type="singleAxis",t}(Go),cQ={splitLine:function(r,t,e,n){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),f=i.isHorizontal(),c=[],h=0,v=i.getTicksCoords({tickModel:a}),d=[],p=[],g=0;g<v.length;++g){var y=i.toGlobalCoord(v[g].coord);f?(d[0]=y,d[1]=u.y,p[0]=y,p[1]=u.y+u.height):(d[0]=u.x,d[1]=y,p[0]=u.x+u.width,p[1]=y);var m=new Ee({shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},silent:!0});Gs(m.shape,l);var _=h++%s.length;c[_]=c[_]||[],c[_].push(m)}for(var S=o.getLineStyle(["color"]),g=0;g<c.length;++g)t.add(Hr(c[g],{style:pt({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(r,t,e,n){IE(r,e,n,n)}};const hQ=fQ;var cO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Bt);_e(cO,Df.prototype);const qg=cO;var vQ=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,n){return this.coordinateSystem.pointToData(e)[0]},t}(yn);const dQ=vQ;var hO=["single"],pQ=function(){function r(t,e,n){this.type="single",this.dimension="single",this.dimensions=hO,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var i=this.dimension,a=new dQ(i,xd(t),[0,0],t.get("type"),t.get("position")),o=a.type==="category";a.onBand=o&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},r.prototype.update=function(t,e){t.eachSeries(function(n){if(n.coordinateSystem===this){var i=n.getData();M(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),Ws(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=be({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],a=e.inverse?1:0;e.setExtent(i[a],i[1-a]),this._updateAxisTransform(e,n?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],a=t.isHorizontal();t.toGlobalCoord=a?function(o){return o+e}:function(o){return i-o+e},t.toLocalCoord=a?function(o){return o-e}:function(o){return i-o+e}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return i==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],a=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},r.prototype.convertToPixel=function(t,e,n){var i=$C(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=$C(e);return i===this?this.pointToData(n):null},r}();function $C(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function gQ(r,t){var e=[];return r.eachComponent("singleAxis",function(n,i){var a=new pQ(n,r,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,e.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",ge).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),e}var yQ={create:gQ,dimensions:hO};const mQ=yQ;var UC=["x","y"],_Q=["width","height"],SQ=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=Kg(l,1-mv(s)),f=l.dataToPoint(n)[0],c=a.get("type");if(c&&c!=="none"){var h=F1(a),v=xQ[c](s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=i0(i);iO(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=i0(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=H1(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.coordinateSystem,l=mv(o),u=Kg(s,l),f=[e.x,e.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=Kg(s,1-l),h=(c[1]+c[0])/2,v=[h,h];return v[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(G1),xQ={line:function(r,t,e){var n=W1([t,e[0]],[t,e[1]],mv(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),i=e[1]-e[0];return{type:"Rect",shape:aO([t-n/2,e[0]],[n,i],mv(r))}}};function mv(r){return r.isHorizontal()?0:1}function Kg(r,t){var e=r.getRect();return[e[UC[t]],e[UC[t]]+e[_Q[t]]]}const bQ=SQ;var wQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(fe);function TQ(r){Lt(Vf),Go.registerAxisPointerClass("SingleAxisPointer",bQ),r.registerComponentView(wQ),r.registerComponentView(hQ),r.registerComponentModel(qg),Us(r,"single",qg,qg.defaultOption),r.registerCoordinateSystem("single",mQ)}var AQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,i){var a=il(e);r.prototype.init.apply(this,arguments),YC(e,a)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),YC(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Bt);function YC(r,t){var e=r.cellSize,n;Y(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return LH(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});sa(r,t,{type:"box",ignoreSize:i})}const CQ=AQ;var MQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group;a.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(e,s,a),this._renderLines(e,s,l,a),this._renderYearText(e,s,l,a),this._renderMonthText(e,u,l,a),this._renderWeekText(e,u,s,l,a)},t.prototype._renderDayRect=function(e,n,i){for(var a=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var f=a.dataToRect([u],!1).tl,c=new Vt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});i.add(c)}},t.prototype._renderLines=function(e,n,i,a){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,h=0;c.time<=n.end.time;h++){d(c.formatedDate),h===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,i),l,a)},t.prototype._getEdgesPoints=function(e,n,i){var a=[e[0].slice(),e[e.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(e,n,i){var a=new mr({z2:20,shape:{points:e},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(e,n,i){for(var a=e.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),f=a.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?MH(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(a==="left"||a==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,n,i,a){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Gt({z2:30,style:Qt(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,v[l],i,l,s)),a.add(m)}},t.prototype._monthTextPositionControl=function(e,n,i,a,o){var s="left",l="top",u=e[0],f=e[1];return i==="horizontal"?(f=f+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,n,i,a){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||nt(s))&&(s&&(n=dm(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<c[h].length-1;g++){var y=c[h][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[v]=(_[v]+c[0][g+1][v])/2}var S=o.get("formatter"),x=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},w=this._formatterLabel(S,b),T=new Gt({z2:30,style:F(Qt(o,{text:w}),this._monthTextPositionControl(y,d,i,u,l)),silent:p});a.add(T)}}},t.prototype._weekTextPositionControl=function(e,n,i,a,o){var s="center",l="middle",u=e[0],f=e[1],c=i==="start";return n==="horizontal"?(u=u+a+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+a+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,n,i,a,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||nt(f)){f&&(n=dm(f)||n);var v=n.get(["time","dayOfWeekShort"]);f=v||Z(n.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(i.end.time,7-i.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=et(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(i.start.time,-(7+i.fweek)).time,c=-c);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToRect([m.time],!1).center,S=y;S=Math.abs((y+h)%7);var x=new Gt({z2:30,style:F(Qt(s,{text:f[S]}),this._weekTextPositionControl(_,a,u,c,p)),silent:g});o.add(x)}}},t.type="calendar",t}(fe);const DQ=MQ;var jg=864e5,IQ=function(){function r(t,e,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=$n(t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];M([0,1],function(c){f(a,c)&&(o[i[c]]=a[c]*s[c])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=be(o,l);M([0,1],function(c){f(a,c)||(a[c]=u[i[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=a[0],this._sh=a[1]},r.prototype.dataToPoint=function(t,e){Y(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+jg))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},r.prototype.convertToPixel=function(t,e,n){var i=ZC(e);return i===this?i.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=ZC(e);return i===this?i.pointToData(n):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(Y(t)&&t.length===1&&(t=t[0]),Y(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var i=Math.floor(e[1].time/jg)-Math.floor(e[0].time/jg)+1,a=new Date(e[0].time),o=a.getDate(),s=e[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-e[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-e[1].time)*u>0;)i-=u,a.setDate(l-u);var f=Math.floor((i+e[0].day+6)/7),c=n?-f+1:f-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var a=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(i){var a=new r(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function ZC(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}const LQ=IQ;function PQ(r){r.registerComponentModel(CQ),r.registerComponentView(DQ),r.registerCoordinateSystem("calendar",LQ)}function RQ(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function XC(r,t){var e;return M(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function EQ(r,t,e){var n=F({},e),i=r[t],a=e.$action||"merge";a==="merge"?i?(Tt(i,n,!0),sa(i,n,{ignoreSize:!0}),qP(e,i),Bc(e,i),Bc(e,i,"shape"),Bc(e,i,"style"),Bc(e,i,"extra"),e.clipPath=i.clipPath):r[t]=n:a==="replace"?r[t]=n:a==="remove"&&i&&(r[t]=null)}var vO=["transition","enterFrom","leaveTo"],kQ=vO.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Bc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?vO:kQ,i=0;i<n.length;i++){var a=n[i];r[a]==null&&t[a]!=null&&(r[a]=t[a])}}function OQ(r,t){if(r&&(r.hv=t.hv=[XC(t,["left","right"]),XC(t,["top","bottom"])],r.type==="group")){var e=r,n=t;e.width==null&&(e.width=n.width=0),e.height==null&&(e.height=n.height=0)}}var NQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,n),this.option.elements=i},t.prototype.optionUpdated=function(e,n){var i=this.option,a=(n?i:e).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=RL(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(f,c){var h=f.newOption;h&&(u.push(h),RQ(f,h),EQ(o,c,h),OQ(o[c],h))},this),i.elements=$t(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,n,i){M(e,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Bt),qC={path:null,compoundPath:null,group:_t,image:He,text:Gt},Br=Nt(),VQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=ft()},t.prototype.render=function(e,n,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},t.prototype._updateElements=function(e){var n=e.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=e.get("z"),s=e.get("zlevel");M(n,function(l){var u=xe(l.id,null),f=u!=null?i.get(u):null,c=xe(l.parentId,null),h=c!=null?i.get(c):a,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&Yk(d,v,!!g,!!p)){var y=Zk(d,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=BQ(l),_=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var b=!f,w=f;b?w=KC(u,h,l.type,i):(w&&(Br(w).isNew=!1),jk(w)),w&&(gh(w,m,e,{isInit:b}),jC(w,l,o,s))}else if(x){mh(f,l,i,e);var T=KC(u,h,l.type,i);T&&(gh(T,m,e,{isInit:!0}),jC(T,l,o,s))}else _==="remove"&&(qk(f,l),mh(f,l,i,e));var A=i.get(u);if(A&&p)if(S){var C=A.getTextContent();C?C.attr(p):A.setTextContent(new Gt(p))}else x&&A.setTextContent(new Gt(p));if(A){var D=l.clipPath;if(D){var I=D.type,L=void 0,b=!1;if(S){var P=A.getClipPath();b=!P||Br(P).type!==I,L=b?a0(I):P}else x&&(b=!0,L=a0(I));A.setClipPath(L),gh(L,D,e,{isInit:b}),gv(L,D.keyframeAnimation,e)}var E=Br(A);A.setTextConfig(g),E.option=l,zQ(A,e,l),ko({el:A,componentModel:e,itemName:A.name,itemTooltipOption:l.tooltip}),gv(A,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,n){for(var i=e.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<i.length;f++){var c=i[f],h=xe(c.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===a,g=Br(v),y=Br(d);g.width=et(g.option.width,p?s:y.width)||0,g.height=et(g.option.height,p?l:y.height)||0}}for(var f=i.length-1;f>=0;f--){var c=i[f],h=xe(c.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,y=Br(d),m=d===a?{width:s,height:l}:{width:y.width,height:y.height},_={},S=hd(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Br(v).isNew&&S){for(var x=c.transition,b={},w=0;w<u.length;w++){var T=u[w],A=_[T];x&&(To(x)||Dt(x,T)>=0)?b[T]=A:v[T]=A}Ht(v,b,e,0)}else v.attr(_)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(i){mh(i,Br(i).option,n,e._lastGraphicModel)}),this._elMap=ft()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(fe);function a0(r){var t=st(qC,r)?qC[r]:x_(r),e=new t({});return Br(e).type=r,e}function KC(r,t,e,n){var i=a0(e);return t.add(i),n.set(r,i),Br(i).id=r,Br(i).isNew=!0,i}function mh(r,t,e,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){mh(a,t,e,n)}),Dd(r,t,n),e.removeKey(Br(r).id))}function jC(r,t,e,n){r.isGroup||M([["cursor",Yr.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(i){var a=i[0];st(t,a)?r[a]=xt(t[a],i[1]):r[a]==null&&(r[a]=i[1])}),M(kt(t),function(i){if(i.indexOf("on")===0){var a=t[i];r[i]=vt(a)?a:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function BQ(r){return r=F({},r),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(XP),function(t){delete r[t]}),r}function zQ(r,t,e){var n=St(r).eventData;!r.silent&&!r.ignore&&!n&&(n=St(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function GQ(r){r.registerComponentModel(NQ),r.registerComponentView(VQ),r.registerPreprocessor(function(t){var e=t.graphic;Y(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var JC=["x","y","radius","angle","single"],FQ=["cartesian2d","polar","singleAxis"];function HQ(r){var t=r.get("coordinateSystem");return Dt(FQ,t)>=0}function Ji(r){return r+"Axis"}function WQ(r,t){var e=ft(),n=[],i=ft();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}function dO(r){var t=r.ecModel,e={infoList:[],infoMap:ft()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(Ji(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(a)}}}),e}var Jg=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),$Q=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=QC(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=QC(e);Tt(this.option,e,!0),Tt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ft(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return M(JC,function(i){var a=this.getReferringComponents(Ji(i),sF);if(a.specified){n=!0;var o=new Jg;M(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new Jg;if(h.add(c.componentIndex),e.set(f,h),a=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",ge).models[0];v&&M(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",ge).models[0]&&h.add(d.componentIndex)})}}}a&&M(JC,function(u){if(a){var f=i.findComponents({mainType:Ji(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new Jg;c.add(f[0].componentIndex),e.set(u,c),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(Ji(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){M(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(Ji(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;M(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Bt);function QC(r){var t={};return M(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const ff=$Q;var UQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(ff);const YQ=UQ;var ZQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.dataZoomModel=e,this.ecModel=n,this.api=i},t.type="dataZoom",t}(fe);const Z1=ZQ;var XQ=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Z1);const qQ=XQ;var gs=M,tM=$r,KQ=function(){function r(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(HQ(e)){var n=Ji(this._dimName),i=e.getReferringComponents(n,ge).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return mt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;gs(["start","end"],function(h,v){var d=t[h],p=t[h+"Value"];a[v]==="percent"?(d==null&&(d=o[v]),p=i.parse(Ut(d,o,e))):(u=!0,p=p==null?e[v]:i.parse(p),d=Ut(p,e,o)),l[v]=p==null||isNaN(p)?e[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),tM(l),tM(s);var f=this._minMaxSpan;u?c(l,s,e,o,!1):c(s,l,o,e,!0);function c(h,v,d,p,g){var y=g?"Span":"ValueSpan";Fo(0,h,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=Ut(h[m],d,p,!0),g&&(v[m]=i.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=jQ(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;gs(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(a==="weakFilter"){var c=u.getStore(),h=Z(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,y=0;y<f.length;y++){var m=c.get(h[y],v),_=!isNaN(m),S=m<o[0],x=m>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else gs(f,function(v){if(a==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});gs(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;gs(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Ut(n[0]+o,n,[0,100],!0):a!=null&&(o=Ut(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=TL(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function jQ(r,t,e){var n=[1/0,-1/0];gs(e,function(o){_U(n,o.getData(),t)});var i=r.getAxisModel(),a=DR(i.axis.scale,i,n).calculate();return[a.min,a.max]}const JQ=KQ;var QQ={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(Ji(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new JQ(i,a,s,r),e.push(o.__dzAxisProxy))});var n=ft();return M(e,function(i){M(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const ttt=QQ;function ett(r){r.registerAction("dataZoom",function(t,e){var n=WQ(e,t);M(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var eM=!1;function X1(r){eM||(eM=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,ttt),ett(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function rtt(r){r.registerComponentModel(YQ),r.registerComponentView(qQ),X1(r)}var Fr=function(){function r(){}return r}(),pO={};function ys(r,t){pO[r]=t}function gO(r){return pO[r]}var ntt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;M(this.option.feature,function(n,i){var a=gO(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),Tt(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Bt);const itt=ntt;function att(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=be(n,a,i);xo(t.get("orient"),r,t.get("itemGap"),o.width,o.height),hd(r,n,a,i)}function yO(r,t){var e=nl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Vt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var ott=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),c=[];M(u,function(d,p){c.push(p)}),new Si(this._featureNames||[],c).add(h).update(h).remove(bt(h,null)).execute(),this._featureNames=c;function h(d,p){var g=c[d],y=c[p],m=u[g],_=new te(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(stt(g))S={onclick:_.option.onclick,featureName:g};else{var x=gO(g);if(!x)return;S=new x}f[g]=S}else if(S=f[y],!S)return;S.uid=rl("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var b=S instanceof Fr;if(!g&&y){b&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}v(_,S,g),_.setIconStatus=function(w,T){var A=this.option,C=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=T,C[w]&&(T==="emphasis"?mi:_i)(C[w])},S instanceof Fr&&S.render&&S.render(_,n,i,a)}function v(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof Fr&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},x,b;nt(_)?(x={},x[g]=_):x=_,nt(S)?(b={},b[g]=S):b=S;var w=d.iconPaths={};M(x,function(T,A){var C=Tf(T,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var D=C.ensureState("emphasis");D.style=m.getItemStyle();var I=new Gt({style:{text:b[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:b_({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});C.setTextContent(I),ko({el:C,componentModel:e,itemName:A,formatterParamsExtra:{title:b[A]}}),C.__title=b[A],C.on("mouseover",function(){var L=m.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),C.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?mi:_i)(C),o.add(C),C.on("click",at(p.onclick,p,n,i,A)),w[A]=C})}att(o,e,i),o.add(yO(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!vt(_)&&p){var S=_.style||(_.style={}),x=_f(p,Gt.makeFont(S)),b=d.x+o.x,w=d.y+o.y+s,T=!1;w+x.height>i.getHeight()&&(y.position="top",T=!0);var A=T?-5-x.height:s+10;b+x.width/2>i.getWidth()?(y.position=["100%",A],S.align="right"):b-x.width/2<0&&(y.position=[0,A],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){M(this._features,function(o){o instanceof Fr&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){M(this._features,function(i){i instanceof Fr&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){M(this._features,function(i){i instanceof Fr&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(fe);function stt(r){return r.indexOf("my")===0}const ltt=ott;var utt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=zt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=i.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=a}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Fr);const ftt=utt;var rM="__ec_magicType_stack__",ctt=[["line","bar"],["stack"]],htt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return M(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(nM[i]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=nM[i](h,v,c,a);d&&(pt(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,ge).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};M(ctt,function(c){Dt(c,i)>=0&&M(c,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=Tt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Fr),nM={line:function(r,t,e,n){if(r==="bar")return Tt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Tt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===rM;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Tt({id:t,stack:i?"":rM},n.get(["option","stack"])||{},!0)}};Zn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const vtt=htt;var Id=new Array(60).join("-"),Xs=" ";function dtt(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function ptt(r){var t=[];return M(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(Z(e.series,function(v){return v.name})),l=[i.model.getCategories()];M(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Xs)],f=0;f<l[0].length;f++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][f]);u.push(c.join(Xs))}t.push(u.join(`
`))}),t.join(`
`+Id+`
`)}function gtt(r){return Z(r,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=e.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+Xs:"")+i.join(Xs))}),n.join(`
`)}).join(`
`+Id+`
`)}function ytt(r){var t=dtt(r);return{value:$t([ptt(t.seriesGroupByCategoryAxis),gtt(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
`+Id+`
`),meta:t.meta}}function _v(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mtt(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(Xs)>=0)return!0}var o0=new RegExp("["+Xs+"]+","g");function _tt(r){for(var t=r.split(/\n+/g),e=_v(t.shift()).split(o0),n=[],i=Z(e,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=_v(t[a]).split(o0);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function Stt(r){for(var t=r.split(/\n+/g),e=_v(t.shift()),n=[],i=0;i<t.length;i++){var a=_v(t[i]);if(a){var o=a.split(o0),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:e,data:n}}function xtt(r,t){var e=r.split(new RegExp(`
*`+Id+`
*`,"g")),n={series:[]};return M(e,function(i,a){if(mtt(i)){var o=_tt(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=Stt(i);n.series.push(o)}}),n}var btt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=a.get("optionToContent"),h=a.get("contentToOption"),v=ytt(e);if(vt(c)){var d=c(n.getOption());nt(d)?u.innerHTML=d:zs(d)&&u.appendChild(d)}else{f.readOnly=a.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=a.get("textColor"),p.borderColor=a.get("textareaBorderColor"),p.backgroundColor=a.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var x=this;function b(){i.removeChild(o),x._dom=null}zy(_,"click",b),zy(S,"click",function(){if(h==null&&c!=null||h!=null&&c==null){b();return}var w;try{vt(h)?w=h(u,n.getOption()):w=xtt(f.value,g)}catch(T){throw b(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),b()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Fr);function wtt(r,t){return Z(r,function(e,n){var i=t&&t[n];if(yt(i)&&!Y(i)){var a=yt(e)&&!Y(e);a||(e={value:e});var o=i.name!=null&&e.name==null;return e=pt(e,i),o&&delete e.name,e}else return e})}Zn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];M(r.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)e.push(F({type:"scatter"},n));else{var a=i.get("data");e.push({name:n.name,data:wtt(n.data,a)})}}),t.mergeOption(pt({series:e},r.newOption))});const Ttt=btt;var mO=M,_O=Nt();function Att(r,t){var e=q1(r);mO(t,function(n,i){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();e[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),e.push(t)}function Ctt(r){var t=q1(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return mO(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function Mtt(r){_O(r).snapshots=null}function Dtt(r){return q1(r).length}function q1(r){var t=_O(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Itt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Mtt(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Fr);Zn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const Ltt=Itt;var Ptt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Rtt=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=iM(e,t);M(Ett,function(o,s){(!n||!n.include||Dt(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Qg[n.brushType](0,a,i);n.__rangeOffset={offset:lM[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){M(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&M(a.coordSyses,function(o){var s=Qg[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){M(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Qg[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?lM[n.brushType](a.values,o.offset,ktt(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return Z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Ck(i),isTargetByCursor:Dk(i,t,n.coordSysModel),getLinearBrushOtherExtent:Mk(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&Dt(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=iM(e,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<aM.length;l++)if(aM[l](i,o))return o}return!0},r}();function s0(r){return r[0]>r[1]&&r.reverse(),r}function iM(r,t){return _u(r,t,{includeMainTypes:Ptt})}var Ett={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=ft(),o={},s={};!e&&!n&&!i||(M(e,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),M(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];M(u.getCartesians(),function(c,h){(Dt(e,c.getAxis("x").model)>=0||Dt(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:oM.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){M(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:oM.geo})})}},aM=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],oM={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(So(r)),t}},Qg={lineX:bt(sM,0),lineY:bt(sM,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[s0([i[0],a[0]]),s0([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Z(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function sM(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=s0(Z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var lM={lineX:bt(uM,0),lineY:bt(uM,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Z(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function uM(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function ktt(r,t){var e=fM(r),n=fM(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function fM(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const K1=Rtt;var l0=M,Ott=rF("toolbox-dataZoom_"),Ntt=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new D1(i.getZr()),this._brushController.on("brush",at(this._onBrush,this)).mount()),ztt(e,n,this,a,i),Btt(e,n)},t.prototype.onclick=function(e,n,i){Vtt[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new K1(j1(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),Att(a,i),this._dispatchZoomAction(i);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,a),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Fo(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];l0(e,function(i,a){n.push(mt(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Fr),Vtt={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Ctt(this.ecModel))}};function j1(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Btt(r,t){r.setIconStatus("back",Dtt(t)>1?"emphasis":"normal")}function ztt(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new K1(j1(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}NH("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=j1(n),o=_u(r,a);l0(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),l0(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Ott+u+c};h[f]=c,i.push(h)}return i});const Gtt=Ntt;function Ftt(r){r.registerComponentModel(itt),r.registerComponentView(ltt),ys("saveAsImage",ftt),ys("magicType",vtt),ys("dataView",Ttt),ys("dataZoom",Gtt),ys("restore",Ltt),Lt(rtt)}var Htt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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}(Bt);const Wtt=Htt;function SO(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function xO(r){if(zt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var bO=xO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$tt=xO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function wO(r,t){if(!r)return t;t=YP(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function Utt(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var Ytt=wO($tt,"transition"),J1=wO(bO,"transform"),Ztt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(zt.transform3dSupported?"will-change:transform;":"");function Xtt(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function qtt(r,t,e){if(!nt(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=Io(t);var a=Xtt(e),o=Math.max(Math.round(i)*1.5,6),s="",l=J1+":",u;Dt(["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)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function Ktt(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=zt.transformSupported?","+J1+n:",left"+n+",top"+n),Ytt+":"+i}function cM(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!zt.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=zt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+J1+":"+o+";":[["top",0],["left",0],[bO,o]]}function jtt(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var i=xt(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),M(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function Jtt(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=D2(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(Ktt(i,e)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,p=YP(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(jtt(f)),c!=null&&n.push("padding:"+nl(c).join("px ")+"px"),n.join(";")+";"}function hM(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&A5(r,o,e,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Qtt=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,zt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(nt(a)?document.querySelector(a):zs(a)?a:vt(a)&&a(t.getDom()));hM(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Or(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=Utt(e,"position"),i=e.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")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=Ztt+Jtt(t,!this._firstShow,this._longHide)+cM(a[0],a[1],!0)+("border-color:"+Io(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(nt(a)&&n.get("trigger")==="item"&&!SO(n)&&(s=qtt(n,i,a)),nt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l<t.length;l++)zs(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)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(hM(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=cM(n[0],n[1]);M(a,function(o){i[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",zt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(at(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}();const tet=Qtt;var eet=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),dM(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,i,a){var o=this;yt(t)&&Wt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Gt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:D2(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["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})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=vM(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;dM(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=zi(a.borderWidth||0),s=vM(a);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(at(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function zi(r){return Math.max(0,r)}function vM(r){var t=zi(r.shadowBlur||0),e=zi(r.shadowOffsetX||0),n=zi(r.shadowOffsetY||0);return{left:zi(t-e),right:zi(t+e),top:zi(t-n),bottom:zi(t+n)}}function dM(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const ret=eet;var net=new Vt({shape:{x:-1,y:-1,width:2,height:2}}),iet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!(zt.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=uF(i.get("renderMode"));this._tooltipContent=a==="richText"?new ret(n):new tet(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,n,i){if(!(zt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?ll(this,"_updatePosition",50,"fixRate"):ju(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");oO("itemTooltip",this._api,at(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 e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.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(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||zt.node||!i.getDom())){var o=pM(a,i);this._ticket="";var s=a.dataByCoordSys,l=uet(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=net;f.x=a.x,f.y=a.y,f.update(),St(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(e,n,i,a))return;var c=sO(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,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(e,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(pM(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Hl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=St(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;so(i,function(f){if(St(f).dataIndex!=null)return l=f,!0;if(St(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=at(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Hl([n.tooltipOption],a),l=this._renderMode,u=[],f=Ie("section",{blocks:[],noHeader:!0}),c=[],h=new Vp;M(e,function(m){M(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=nO(x,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Ie("section",{header:b,noHeader:!an(b),sortBlocks:!0,blocks:[]});f.blocks.push(w),M(_.seriesDataIndices,function(T){var A=i.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,D=A.getDataParams(C);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=j_(S.axis,{value:x}),D.axisValueLabel=b,D.marker=h.makeTooltipMarker("item",Io(D.color),l);var I=Qb(A.formatTooltip(C,!0,null)),L=I.frag;if(L){var P=Hl([A],a).get("valueFormatter");w.blocks.push(P?F({valueFormatter:P},L):L)}I.text&&c.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=aw(f,h,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
`:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=St(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=Hl([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new Vp;y.marker=m.makeTooltipMarker("item",Io(y.color),v);var _=Qb(u.formatTooltip(f,!1,c)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?aw(x?F({valueFormatter:x},b):b,m,v,S,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=this._renderMode==="html",o=St(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(nt(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=mt(l),l.content=qe(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=e.positionDefault,d=Hl(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",y=new Vp;this._showOrMove(d,function(){var m=mt(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(nt(h)){var g=e.ecModel.get("useUTC"),y=Y(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=sd(y.axisValue,v,g)),v=ZP(v,i,!0)}else if(vt(h)){var _=at(function(S,x){S===this._ticket&&(c.setContent(x,f,e,p,l),this._updatePosition(e,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||Y(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Y(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),vt(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),Y(n))i=et(n[0],u),a=et(n[1],f);else if(yt(n)){var p=n;p.width=c[0],p.height=c[1];var g=be(p,{width:u,height:f});i=g.x,a=g.y,h=null,v=null}else if(nt(n)&&l){var y=set(n,d,c,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=aet(i,a,o,u,f,h?null:20,v?null:20);i=y[0],a=y[1]}if(h&&(i-=gM(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=gM(v)?c[1]/2:v==="bottom"?c[1]:0),SO(e)){var y=oet(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&M(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&M(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&M(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&M(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){zt.node||!n.getDom()||(ju(this,"_updatePosition"),this._tooltipContent.dispose(),n0("itemTooltip",n))},t.type="tooltip",t}(fe);function Hl(r,t,e){var n=t.ecModel,i;e?(i=new te(e,n,n),i=new te(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof te&&(o=o.get("tooltip",!0)),nt(o)&&(o={formatter:o}),o&&(i=new te(o,i,n)))}return i}function pM(r,t){return r.dispatchAction||at(t.dispatchAction,t)}function aet(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function oet(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function set(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){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 gM(r){return r==="center"||r==="middle"}function uet(r,t,e){var n=s_(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Sf(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=St(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const fet=iet;function cet(r){Lt(Vf),r.registerComponentModel(Wtt),r.registerComponentView(fet),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},de),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},de)}var het=["rect","polygon","keep","clear"];function vet(r,t){var e=Zt(r?r.brush:[]);if(e.length){var n=[];M(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=r&&r.toolbox;Y(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),det(s),t&&!s.length&&s.push.apply(s,het)}}function det(r){var t={};M(r,function(e){t[e]=1}),r.length=0,M(t,function(e,n){r.push(n)})}var yM=M;function mM(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function u0(r,t,e){var n={};return yM(t,function(a){var o=n[a]=i();yM(r[a],function(s,l){if(ze.isValidType(l)){var u={type:l,visual:s};e&&e(u,a),o[l]=new ze(u),l==="opacity"&&(u=mt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ze(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function TO(r,t,e){var n;M(e,function(i){t.hasOwnProperty(i)&&mM(t[i])&&(n=!0)}),n&&M(e,function(i){t.hasOwnProperty(i)&&mM(t[i])?r[i]=mt(t[i]):delete r[i]})}function pet(r,t,e,n,i,a){var o={};M(r,function(c){var h=ze.prepareVisualTypes(t[c]);o[c]=h});var s;function l(c){return z_(e,s,c)}function u(c,h){B2(e,s,c,h)}a==null?e.each(f):e.each([a],f);function f(c,h){s=a==null?c:h;var v=e.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(i,c),p=t[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(c,l,u)}}}function get(r,t,e,n){var i={};return M(r,function(a){var o=ze.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return z_(s,c,x)}function f(x,b){B2(s,c,x,b)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=n!=null?h.get(l,c):c,p=e(d),g=t[p],y=i[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function yet(r){var t=r.brushType,e={point:function(n){return _M[t].point(n,e,r)},rect:function(n){return _M[t].rect(n,e,r)}};return e}var _M={lineX:SM(0),lineY:SM(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&ja(e.range,r[0],r[1])},rect:function(r,t,e){var n=e.range;if(!r||n.length<=1)return!1;var i=r.x,a=r.y,o=r.width,s=r.height,l=n[0];if(ja(n,i,a)||ja(n,i+o,a)||ja(n,i,a+s)||ja(n,i+o,a+s)||Mt.create(r).contain(l[0],l[1])||Jl(i,a,i+o,a,n)||Jl(i,a,i,a+s,n)||Jl(i+o,a,i+o,a+s,n)||Jl(i,a+s,i+o,a+s,n))return!0}}};function SM(r){var t=["x","y"],e=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[r];return Wl(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[t[r]],n[t[r]]+n[e[r]]];return s[1]<s[0]&&s.reverse(),Wl(s[0],o)||Wl(s[1],o)||Wl(o[0],s)||Wl(o[1],s)}}}}function Wl(r,t){return t[0]<=r&&r<=t[1]}var xM=["inBrush","outOfBrush"],ty="__ecBrushSelect",f0="__ecInBrushSelectEvent";function AO(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new K1(t.option,r);e.setInputRanges(t.areas,r)})}function met(r,t,e){var n=[],i,a;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),AO(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:mt(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],h=[],v=[],d=!1;s||(i=u.throttleType,a=u.throttleDelay);var p=Z(o.areas,function(x){var b=wet[x.brushType],w=pt({boundingRect:b?b(x):void 0},x);return w.selectors=yet(w),w}),g=u0(o.option,xM,function(x){x.mappingMethod="fixed"});Y(f)&&M(f,function(x){c[x]=1});function y(x){return f==="all"||!!c[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=v[b]=[];x.subType==="parallel"?_(x,b):S(x,b,w)});function _(x,b){var w=x.coordinateSystem;d=d||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(T,A){T==="active"&&(h[A]=1)})}function S(x,b,w){if(!(!x.brushSelector||bet(o,b))&&(M(p,function(A){o.brushTargetManager.controlSeries(A,x,r)&&w.push(A),d=d||m(w)}),y(b)&&m(w))){var T=x.getData();T.each(function(A){bM(x,w,T,A)&&(h[A]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);var T=v[b],A=x.getData(),C=y(b)?function(D){return h[D]?(w.dataIndex.push(A.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return bM(x,T,A,D)?(w.dataIndex.push(A.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(b)?d:m(T))&&pet(xM,g,A,C)})}),_et(t,i,a,n,e)}function _et(r,t,e,n,i){if(i){var a=r.getZr();if(!a[f0]){a[ty]||(a[ty]=xet);var o=ll(a,ty,e,t);o(r,n)}}}function xet(r,t){if(!r.isDisposed()){var e=r.getZr();e[f0]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[f0]=!1}}function bM(r,t,e,n){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(r.brushSelector(n,e,o.selectors,o))return!0}}function bet(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(Y(e)?Dt(e,t)<0:t!==e)}var wet={rect:function(r){return wM(r.range)},polygon:function(r){for(var t,e=r.range,n=0,i=e.length;n<i;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=e[n];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&wM(t)}};function wM(r){return new Mt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Tet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new D1(n.getZr())).on("brush",at(this._onBrush,this)).mount()},t.prototype.render=function(e,n,i,a){this.model=e,this._updateController(e,n,i,a)},t.prototype.updateTransform=function(e,n,i,a){AO(n),this._updateController(e,n,i,a)},t.prototype.updateVisual=function(e,n,i,a){this.updateTransform(e,n,i,a)},t.prototype.updateView=function(e,n,i,a){this._updateController(e,n,i,a)},t.prototype._updateController=function(e,n,i,a){(!a||a.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:mt(i),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:mt(i),$from:n})},t.type="brush",t}(fe);const Aet=Tet;var Cet="#ddd",Met=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var i=this.option;!n&&TO(i,e,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:Cet},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Z(e,function(n){return TM(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=TM(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Bt);function TM(r,t){return Tt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new te(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const Det=Met;var Iet=["rect","polygon","lineX","lineY","keep","clear"],Let=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,M(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,i){this.render(e,n,i)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return M(e.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(e,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var n={show:!0,type:Iet.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(Fr);const Pet=Let;function Ret(r){r.registerComponentView(Aet),r.registerComponentModel(Det),r.registerPreprocessor(vet),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,met),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},de),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},de),ys("brush",Pet)}var Eet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}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}(Bt),ket=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=xt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Gt({style:Qt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Gt({style:Qt(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Xh(d,"_"+e.get("target"))}),p&&v.on("click",function(){Xh(p,"_"+e.get("subtarget"))}),St(f).eventData=St(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),h&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=be(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.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 S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var x=_.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var w=new Vt({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(fe);function Oet(r){r.registerComponentModel(Eet),r.registerComponentView(ket)}var Net=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],i=e.axisType,a=this._names=[],o;i==="category"?(o=[],M(n,function(u,f){var c=xe(Js(u),""),h;yt(u)?(h=mt(u),h.value=f):h=f,o.push(h),a.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new or([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Bt);const AM=Net;var CO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=ga(AM.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(AM);_e(CO,dd.prototype);const Vet=CO;var Bet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(fe);const zet=Bet;var Get=function(r){B(t,r);function t(e,n,i,a){var o=r.call(this,e,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(yn);const Fet=Get;var ey=Math.PI,CM=Nt(),Het=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,i){if(this.model=e,this.api=i,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Ie("nameValue",{noName:!0,value:f})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,e)},this),this._renderAxisLabel(a,s,l,e),this._position(a,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var i=e.get(["label","position"]),a=e.get("orient"),o=$et(e,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":nt(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:ey/2},c=a==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*ey/180;var m,_,S,x=h.get("position",!0),b=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),A=0,C=c;x==="left"||x==="bottom"?(b&&(m=[0,0],A+=g),w&&(_=[A,0],A+=g),T&&(S=[C-d,0],C-=g)):(b&&(m=[C-d,0],C-=g),w&&(_=[0,0],A+=g),T&&(S=[C-d,0],C-=g));var D=[A,C];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:c,orient:a,rotation:f[a],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},t.prototype._position=function(e,n){var i=this._mainGroup,a=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Cr(),l=o.x,u=o.y+o.height;Hn(s,s,[-l,-u]),Eo(s,s,-ey/2),Hn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(i.getBoundingRect()),h=m(a.getBoundingRect()),v=[i.x,i.y],d=[a.x,a.y];d[0]=v[0]=f[0][0];var p=e.labelPosOpt;if(p==null||nt(p)){var g=p==="+"?0:1;_(v,c,f,1,g),_(d,h,f,1,1-g)}else{var g=p>=0?0:1;_(v,c,f,1,g),d[1]=v[1]+p}i.setPosition(v),a.setPosition(d),i.rotation=a.rotation=e.rotation,y(i),y(a);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},t.prototype._createAxis=function(e,n){var i=n.getData(),a=n.get("axisType"),o=Wet(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Fet("value",o,e.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new _t;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Ee({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:F({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Ee({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:pt({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(e,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],M(l,function(u){var f=i.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),v=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:at(o._changeTimeline,o,u.value)},g=MM(c,h,n,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),_o(g);var y=St(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],M(u,function(f){var c=f.tickValue,h=l.getItemModel(c),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),g=i.dataToCoord(f.tickValue),y=new Gt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:at(o._changeTimeline,o,c),silent:!1,style:Qt(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Qt(d),y.ensureState("progress").style=Qt(p),n.add(y),_o(y),CM(y).dataIndex=c,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,n,i,a){var o=e.controlSize,s=e.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),f=a.getPlayState(),c=a.get("inverse",!0);h(e.nextBtnPosition,"next",at(this._changeTimeline,this,c?"-":"+")),h(e.prevBtnPosition,"prev",at(this._changeTimeline,this,c?"+":"-")),h(e.playPosition,f?"stop":"play",at(this._handlePlayClick,this,!f),!0);function h(v,d,p,g){if(v){var y=dn(xt(a.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=Uet(a,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),_o(_)}}},t.prototype._renderCurrentPointer=function(e,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=at(u._handlePointerDrag,u),c.ondragend=at(u._handlePointerDragend,u),DM(c,u._progressLine,s,i,a,!0)},onUpdate:function(c){DM(c,u._progressLine,s,i,a)}};this._currentPointer=MM(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var i=this._toAxisCoord(e)[0],a=this._axis,o=$r(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=e.model;e._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var n=this._mainGroup.getLocalTransform();return cn(e,n,!0)},t.prototype._findNearestTick=function(e){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<i&&(i=f,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var n=this.model.getCurrentIndex();e==="+"?e=n+1:e==="-"&&(e=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<e);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",CM(i[a]).dataIndex<=e)},t.type="timeline.slider",t}(zet);function Wet(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Z_({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new CR({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new ua}}function $et(r,t){return be(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function Uet(r,t,e,n){var i=n.style,a=Tf(r.get(["controlStyle",t]),n||{},new Mt(e[0],e[1],e[2],e[3]));return i&&a.setStyle(i),a}function MM(r,t,e,n,i,a){var o=t.get("color");if(i)i.setColor(o),e.add(i),a&&a.onUpdate(i);else{var s=r.get("symbol");i=me(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),e.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=Tt({rectHover:!0,z2:100},n,!0);var u=ul(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Vo(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=r.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function DM(r,t,e,n,i,a){if(!r.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",e));if(a||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const Yet=Het;function Zet(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),pt({currentIndex:i.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function Xet(r){var t=r&&r.timeline;Y(t)||(t=t?[t]:[]),M(t,function(e){e&&qet(e)})}function qet(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),IM(r),to(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});to(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!to(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}M(r.data||[],function(i){yt(i)&&!Y(i)&&(!to(i,"value")&&to(i,"name")&&(i.value=i.name),IM(i))})}function IM(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),n=r.label||r.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};M(n,function(o,s){!a[s]&&!to(i,s)&&(i[s]=o)}),e.label&&!to(n,"emphasis")&&(n.emphasis=e.label,delete e.label)}function to(r,t){return r.hasOwnProperty(t)}function Ket(r){r.registerComponentModel(Vet),r.registerComponentView(Yet),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Zet(r),r.registerPreprocessor(Xet)}function Q1(r,t){if(!r)return!1;for(var e=Y(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function zc(r){Ao(r,"label",["show"])}var Gc=Nt(),MO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(zt.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,n){this._mergeOption(e,n,!1,!1)},t.prototype._mergeOption=function(e,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Gc(s)[o];if(!l||!l.data){Gc(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&zc(l),M(l.data,function(f){f instanceof Array?(zc(f[0]),zc(f[1])):zc(f)}),u=this.createMarkerModelFromSeries(l,this,n),F(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Gc(s)[o]=u},this)},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return Ie("section",{header:this.name,blocks:[Ie("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,n){var i=dd.prototype.getDataParams.call(this,e,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(e,n){return Gc(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Bt);_e(MO,dd.prototype);const ha=MO;var jet=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(ha);const Jet=jet;function c0(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Qet(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Fc(r,t,e,n,i,a){var o=[],s=la(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=tS(t,l,r),f=t.indicesOfNearest(l,u)[0];o[i]=t.get(e,f),o[a]=t.get(l,f);var c=t.get(n,f),h=kn(t.get(n,f));return h=Math.min(h,20),h>=0&&(o[a]=+o[a].toFixed(h)),[o,c]}var ry={min:bt(Fc,"min"),max:bt(Fc,"max"),average:bt(Fc,"average"),median:bt(Fc,"median")};function cf(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!Qet(t)&&!Y(t.coord)&&Y(i)){var a=DO(t,e,n,r);if(t=mt(t),t.type&&ry[t.type]&&a.baseAxis&&a.valueAxis){var o=Dt(i,a.baseAxis.dim),s=Dt(i,a.valueAxis.dim),l=ry[t.type](e,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Y(i))t.coord=[];else for(var u=t.coord,f=0;f<2;f++)ry[u[f]]&&(u[f]=tS(e,e.mapDimension(i[f]),u[f]));return t}}function DO(r,t,e,n){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(trt(n,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function trt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function hf(r,t){return r&&r.containData&&t.coord&&!c0(t)?r.containData(t.coord):!0}function ert(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!c0(t)&&!c0(e)?r.containZone(t.coord,e.coord):!0}function IO(r,t){return r?function(e,n,i,a){var o=a<2?e.coord&&e.coord[a]:e.value;return ea(o,t[a])}:function(e,n,i,a){return ea(e.value,t[a])}}function tS(r,t,e){if(e==="average"){var n=0,i=0;return r.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var ny=Nt(),rrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ft()},t.prototype.render=function(e,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){ny(s).keep=!1}),n.eachSeries(function(s){var l=ha.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!ny(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(e){ny(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var i=this;M(e,function(a){var o=ha.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?eP(l):d_(l))})}})},t.type="marker",t}(fe);const eS=rrt;function LM(r,t,e){var n=t.coordinateSystem;r.each(function(i){var a=r.getItemModel(i),o,s=et(a.get("x"),e.getWidth()),l=et(a.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,i));else if(n){var u=r.get(n.dimensions[0],i),f=r.get(n.dimensions[1],i);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var nrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=ha.getMarkerModelFromSeries(a,"markPoint");o&&(LM(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Lf),c=irt(o,e,n);n.setData(c),LM(n.getData(),e,a),c.each(function(h){var v=c.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(vt(d)||vt(p)||vt(g)||vt(y)){var _=n.getRawValue(h),S=n.getDataParams(h);vt(d)&&(d=d(_,S)),vt(p)&&(p=p(_,S)),vt(g)&&(g=g(_,S)),vt(y)&&(y=y(_,S))}var x=v.getModel("itemStyle").getItemStyle(),b=Cf(l,"color");x.fill||(x.fill=b),c.setItemVisual(h,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){St(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(eS);function irt(r,t,e){var n;r?n=Z(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return F(F({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new or(n,e),a=Z(e.get("data"),bt(cf,t));r&&(a=$t(a,bt(hf,r)));var o=IO(!!r,n);return i.initData(a,null,o),i}const art=nrt;function ort(r){r.registerComponentModel(Jet),r.registerComponentView(art),r.registerPreprocessor(function(t){Q1(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var srt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ha);const lrt=srt;var Hc=Nt(),urt=function(r,t,e,n){var i=r.getData(),a;if(Y(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Re(n.yAxis,n.xAxis);else{var u=DO(n,i,t,r);s=u.valueAxis;var f=hR(i,u.valueDataDim);l=tS(i,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=mt(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=e.get("precision");p>=0&&Ft(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[c]=d.coord[c]=l,a=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[cf(r,a[0]),cf(r,a[1]),F({},a[2])];return g[2].type=g[2].type||null,Tt(g[2],g[0]),Tt(g[2],g[1]),g};function Sv(r){return!isNaN(r)&&!isFinite(r)}function PM(r,t,e,n){var i=1-r,a=n.dimensions[r];return Sv(t[i])&&Sv(e[i])&&t[r]===e[r]&&n.getAxis(a).containData(t[r])}function frt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(PM(1,e,n,r)||PM(0,e,n,r)))return!0}return hf(r,t[0])&&hf(r,t[1])}function iy(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=et(o.get("x"),i.getWidth()),u=et(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=a.dimensions,c=r.get(f[0],t),h=r.get(f[1],t);s=a.dataToPoint([c,h])}if(zo(a,"cartesian2d")){var v=a.getAxis("x"),d=a.getAxis("y"),f=a.dimensions;Sv(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):Sv(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var crt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=ha.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Hc(o).from,u=Hc(o).to;l.each(function(f){iy(l,f,!0,a,i),iy(u,f,!1,a,i)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new b1);this.group.add(f.group);var c=hrt(o,e,n),h=c.from,v=c.to,d=c.line;Hc(n).from=h,Hc(n).to=v,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");Y(p)||(p=[p,p]),Y(g)||(g=[g,g]),Y(y)||(y=[y,y]),Y(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),d.each(function(S){var x=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),x.stroke==null&&(x.stroke=h.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:x})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){St(S).dataModel=n,S.traverse(function(x){St(x).dataModel=n})});function _(S,x,b){var w=S.getItemModel(x);iy(S,x,b,e,a);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Cf(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:xt(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:xt(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:xt(w.get("symbolSize"),g[b?0:1]),symbol:xt(w.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(eS);function hrt(r,t,e){var n;r?n=Z(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return F(F({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new or(n,e),a=new or(n,e),o=new or([],e),s=Z(e.get("data"),bt(urt,t,r,e));r&&(s=$t(s,bt(frt,r)));var l=IO(!!r,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const vrt=crt;function drt(r){r.registerComponentModel(lrt),r.registerComponentView(vrt),r.registerPreprocessor(function(t){Q1(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var prt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ha);const grt=prt;var Wc=Nt(),yrt=function(r,t,e,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=cf(r,i),s=cf(r,a),l=o.coord,u=s.coord;l[0]=Re(l[0],-1/0),l[1]=Re(l[1],-1/0),u[0]=Re(u[0],1/0),u[1]=Re(u[1],1/0);var f=q0([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function xv(r){return!isNaN(r)&&!isFinite(r)}function RM(r,t,e,n){var i=1-r;return xv(t[i])&&xv(e[i])}function mrt(r,t){var e=t.coord[0],n=t.coord[1],i={coord:e,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return zo(r,"cartesian2d")?e&&n&&(RM(1,e,n)||RM(0,e,n))?!0:ert(r,i,a):hf(r,i)||hf(r,a)}function EM(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=et(o.get(e[0]),i.getWidth()),u=et(o.get(e[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],t),c=r.getValues(["x1","y1"],t),h=a.clampData(f),v=a.clampData(c),d=[];e[0]==="x0"?d[0]=h[0]>v[0]?c[0]:f[0]:d[0]=h[0]>v[0]?f[0]:c[0],e[1]==="y0"?d[1]=h[1]>v[1]?c[1]:f[1]:d[1]=h[1]>v[1]?f[1]:c[1],s=n.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(zo(a,"cartesian2d")){var m=a.getAxis("x"),_=a.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);xv(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):xv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var kM=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],_rt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=ha.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(kM,function(c){return EM(s,l,c,a,i)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new _t});this.group.add(f.group),this.markKeep(f);var c=Srt(o,e,n);n.setData(c),c.each(function(h){var v=Z(kM,function(T){return EM(c,h,T,e,a)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",h)),d.parse(c.get("x1",h))],_=[p.parse(c.get("y0",h)),p.parse(c.get("y1",h))];$r(m),$r(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;c.setItemLayout(h,{points:v,allClipped:x});var b=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=Cf(l,"color");b.fill||(b.fill=w,nt(b.fill)&&(b.fill=Nh(b.fill,.4))),b.stroke||(b.stroke=w),c.setItemVisual(h,"style",b)}),c.diff(Wc(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var d=new yr({shape:{points:v.points}});c.setItemGraphicEl(h,d),f.group.add(d)}}).update(function(h,v){var d=Wc(f).data.getItemGraphicEl(v),p=c.getItemLayout(h);p.allClipped?d&&f.group.remove(d):(d?Ht(d,{shape:{points:p.points}},n,h):d=new yr({shape:{points:p.points}}),c.setItemGraphicEl(h,d),f.group.add(d))}).remove(function(h){var v=Wc(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var d=c.getItemModel(v),p=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),Fe(h,De(d),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:nt(p.fill)?Nh(p.fill,1):"#000"}),Ge(h,d),ue(h,null,null,d.get(["emphasis","disabled"])),St(h).dataModel=n}),Wc(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(eS);function Srt(r,t,e){var n,i,a=["x0","y0","x1","y1"];if(r){var o=Z(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return F(F({},c),{name:u,ordinalMeta:null})});i=Z(a,function(u,f){return{name:u,type:o[f%2].type}}),n=new or(i,e)}else i=[{name:"value",type:"float"}],n=new or(i,e);var s=Z(e.get("data"),bt(yrt,t,r,e));r&&(s=$t(s,bt(mrt,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return ea(v,i[h])}:function(u,f,c,h){return ea(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const xrt=_rt;function brt(r){r.registerComponentModel(grt),r.registerComponentView(xrt),r.registerPreprocessor(function(t){Q1(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var wrt=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Trt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),Y(n)&&M(n,function(a,o){nt(a)&&(a={type:a}),n[o]=Tt(a,wrt(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&o_(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ft(),s=Z(a,function(l){return(nt(l)||Ft(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new te(l,this,this.ecModel))},this);this._data=$t(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;M(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;M(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;M(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&Dt(this._availableNames,e)>=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}(Bt);const h0=Trt;var ss=bt,v0=M,$c=_t,Art=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new $c),this.group.add(this._selectorGroup=new $c),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,l,s,u);var f=e.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=e.get("padding"),v=be(f,c,h),d=this.layoutInner(e,o,v,a,l,u),p=be(pt({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yO(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=ft(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),v0(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new $c;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),x=m.getVisual("style"),b=this._createItem(y,p,d,v,n,e,_,x,S,c,a);b.on("click",ss(OM,p,null,a,h)).on("mouseover",ss(d0,y.name,null,a,h)).on("mouseout",ss(p0,y.name,null,a,h)),i.ssr&&b.eachChild(function(w){var T=St(w);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(w){if(!f.get(p)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),C=T.getItemVisual(A,"style"),D=T.getItemVisual(A,"legendIcon"),I=Mr(C.fill);I&&I[3]===0&&(I[3]=.2,C=F(F({},C),{fill:ui(I,"rgba")}));var L=this._createItem(w,p,d,v,n,e,{},C,D,c,a);L.on("click",ss(OM,null,p,a,h)).on("mouseover",ss(d0,null,p,a,h)).on("mouseout",ss(p0,null,p,a,h)),i.ssr&&L.eachChild(function(P){var E=St(P);E.seriesIndex=w.seriesIndex,E.dataIndex=d,E.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();v0(e,function(u){var f=u.type,c=new Gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Fe(c,{normal:h,emphasis:v},{defaultText:u.title}),_o(c)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=Crt(f,a,l,u,v,g,h),x=new $c,b=a.getModel("textStyle");if(vt(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;x.add(Mrt({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,A=s,C=o.get("formatter"),D=n;nt(C)&&C?D=C.replace("{name}",n!=null?n:""):vt(C)&&(D=C(n));var I=g?b.getTextColor():a.get("inactiveColor");x.add(new Gt({style:Qt(b,{text:D,x:T,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new Vt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&ko({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(E){E.silent=!0}),L.silent=!c,this.getContentGroup().add(x),_o(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xo(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){xo("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+v[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}(fe);function Crt(r,t,e,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),v0(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Hs(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Mrt(r){var t=r.icon||"roundRect",e=me(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function OM(r,t,e,n){p0(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),d0(r,t,e,n)}function LO(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function d0(r,t,e,n){LO(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function p0(r,t,e,n){LO(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}const PO=Art;function Drt(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function $l(r,t,e){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){n?s[r]():s[r](t.name),NM(s,i),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){M(i,function(l,u){s[l?"select":"unSelect"](u)}),NM(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function NM(r,t){var e=t||{};return M(r.getData(),function(n){var i=n.get("name");if(!(i===`
`||i==="")){var a=r.isSelected(i);st(e,i)?e[i]=e[i]&&a:e[i]=a}}),e}function Irt(r){r.registerAction("legendToggleSelect","legendselectchanged",bt($l,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",bt($l,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",bt($l,"inverseSelect")),r.registerAction("legendSelect","legendselected",bt($l,"select")),r.registerAction("legendUnSelect","legendunselected",bt($l,"unSelect"))}function RO(r){r.registerComponentModel(h0),r.registerComponentView(PO),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Drt),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Irt(r)}var Lrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,i){var a=il(e);r.prototype.init.call(this,e,n,i),VM(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),VM(this,this.option,e)},t.type="legend.scroll",t.defaultOption=ga(h0.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}(h0);function VM(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,sa(t,e,{type:"box",ignoreSize:!!i})}const Prt=Lrt;var BM=_t,ay=["width","height"],oy=["x","y"],Rrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new BM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new BM)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=Y(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Gt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Tf(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:at(u._pageGo,u,y,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=ay[u],c=oy[u],h=ay[1-u],v=oy[1-u];o&&xo("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=mt(i);o&&(y[f]=i[f]-p[f]-d);var m=this._layoutContentAndController(e,a,y,u,f,h,v,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;xo(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),xo("horizontal",h,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>i[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=xt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var x={x:0,y:0};if(x[o]=p?i[o]:v[o],x[s]=Math.max(v[s],d[s]),x[l]=Math.min(0,d[l]+m[1-a]),c.__rectSize=i[o],p){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=x[s],c.setClipPath(new Vt({shape:b})),c.__rectSize=b[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Ht(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",nt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=ay[o],l=oy[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(b){if(b){var w=b.getBoundingRect(),T=w[l]+b[l];return{s:T,e:T+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(e){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===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(PO);const Ert=Rrt;function krt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Ort(r){Lt(RO),r.registerComponentModel(Prt),r.registerComponentView(Ert),krt(r)}function Nrt(r){Lt(RO),Lt(Ort)}var Vrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=ga(ff.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ff);const Brt=Vrt;var rS=Nt();function zrt(r,t,e){rS(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function Grt(r,t){for(var e=rS(r).coordSysRecordMap,n=e.keys(),i=0;i<n.length;i++){var a=n[i],o=e.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||EO(e,o))}}}function EO(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function Frt(r,t){var e={model:t,containsPoint:bt(Wrt,t),dispatchAction:bt(Hrt,r),dataZoomInfoMap:null,controller:null},n=e.controller=new Of(r.getZr());return M(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function Hrt(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Wrt(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function $rt(r){var t,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[e+s]>n[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Urt(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=rS(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=ft());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=dO(a);M(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,Frt(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=ft());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){EO(i,a);return}var f=$rt(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),ll(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Yrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),zrt(i,e,{pan:at(sy.pan,this),zoom:at(sy.zoom,this),scrollMove:at(sy.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Grt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Z1),sy={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=ly[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Fo(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:zM(function(r,t,e,n,i,a){var o=ly[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:zM(function(r,t,e,n,i,a){var o=ly[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function zM(r){return function(t,e,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,i);if(Fo(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var ly={grid:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,n,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const Zrt=Yrt;function kO(r){X1(r),r.registerComponentModel(Brt),r.registerComponentView(Zrt),Urt(r)}var Xrt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ga(ff.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(ff);const qrt=Xrt;var Ul=Vt,GM=7,Krt=1,uy=30,jrt=7,Yl="horizontal",FM="vertical",Jrt=5,Qrt=["line","bar","candlestick","scatter"],tnt={easing:"cubicOut",duration:100,delay:0},ent=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=at(this._onBrush,this),this._onBrushEnd=at(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,a){if(r.prototype.render.apply(this,arguments),ll(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ju(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new _t;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),a=i?jrt:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Yl?{right:s.width-o.x-o.width,top:s.height-uy-GM-a,width:o.width,height:uy}:{right:GM,top:o.y,width:uy,height:o.height},u=il(e.option);M(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var f=be(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===FM&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Yl&&!o?{scaleY:l?1:-1,scaleX:1}:i===Yl&&o?{scaleY:l?1:-1,scaleX:-1}:i===FM&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=n.x-u.x,e.y=n.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new Ul({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Ul({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:at(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var v=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(A,C){if(_>0&&C%_){m+=y;return}var D=A==null||isNaN(A)||A==="",I=D?0:Ut(A,c,v,!0);D&&!S&&C?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,I]),g.push([m,I]),m+=y,S=D}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function b(A){var C=x.getModel(A?"selectedDataBackground":"dataBackground"),D=new _t,I=new yr({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new mr({shape:{points:f},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(I),D.add(L),D}for(var w=0;w<3;w++){var T=b(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!i&&!(n!==!0&&Dt(Qrt,u.get("type"))<0)){var f=a.getComponent(Ji(o),s).axis,c=rnt(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c),i={thisAxis:f,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=n.filler=new Ul({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Ul({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Krt,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!jh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=me(S,-1,0,2,2,null,!0);x.attr({cursor:HM(this._orient),draggable:!0,drift:at(this._onDragMove,this,_),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=et(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),_o(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(i[_]=x);var A=l.getModel("textStyle"),C=l.get("handleLabel")||{},D=C.show||!1;e.add(a[_]=new Gt({silent:!0,invisible:!D,style:Qt(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var v=h;if(c){var d=et(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Vt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=me(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Vt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:HM(this._orient),drift:at(this._onDragMove,this,"all"),ondragstart:at(this._showDataInfo,this,!0),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ut(e[0],[0,100],n,!0),Ut(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Fo(n,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?Ut(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ut(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=$r([Ut(a[0],o,l,!0),Ut(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,a=$r(i.slice()),o=this._size;M([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var c=l[f],h=c.getClipPath();h||(h=new Vt,c.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,c=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=$r(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=So(i.handles[d].parent,this.group),g=ad(d===0?"right":"left",p),y=this._handleWidth/2+Jrt,m=cn([h[d]+(d===0?-y:y),this._size[1]/2],p);a[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Yl?"middle":g,align:o===Yl?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=e==null||isNaN(e)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return vt(a)?a(e,s):nt(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var n=this.dataZoomModel.get("handleLabel")||{},i=n.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=e||this._dragging?o:i,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,n,i,a){this._dragging=!0,gi(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=cn([n,i],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new Ct(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=$r([Ut(i.x,o,s,!0),Ut(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(gi(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Ul({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?tnt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=dO(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Z1);function rnt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function HM(r){return r==="vertical"?"ns-resize":"ew-resize"}const nnt=ent;function OO(r){r.registerComponentModel(qrt),r.registerComponentView(nnt),X1(r)}function int(r){Lt(kO),Lt(OO)}var ant={get:function(r,t,e){var n=mt((ont[r]||{})[t]);return e&&Y(n)?n[n.length-1]:n}},ont={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const NO=ant;var WM=ze.mapVisual,snt=ze.eachVisual,lnt=Y,$M=M,unt=$r,fnt=Ut,cnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,n){var i=this.option;!n&&TO(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=at(e,this),this.controllerVisuals=u0(this.option.controller,n,e),this.targetVisuals=u0(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Zt(e),n},t.prototype.eachTargetSeries=function(e,n){M(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&e.call(n,a)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(i){i===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Y(e)&&(e=e.slice(),u=!0);var f=n?e:u?[c(e[0]),c(e[1])]:c(e);if(nt(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(vt(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?i[0]+" "+f[1]:e[1]===s[1]?i[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,n=unt([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var i=e.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Tt(a,i),Tt(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(c){lnt(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,h,v){var d=c[h],p=c[v];d&&!p&&(p=c[v]={},$M(d,function(g,y){if(ze.isValidType(y)){var m=NO.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";$M(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&mt(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&mt(v)||(s?m[0]:[m[0],m[0]])),_.symbol=WM(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;snt(S,function(b){b>x&&(x=b)}),_.symbolSize=WM(S,function(b){return fnt(b,[0,x],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Bt);const bv=cnt;var UM=[20,140],hnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=UM[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=UM[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=$r((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]<e[0]&&(n[0]=e[0]),n[1]<e[0]&&(n[1]=e[0]),n},t.prototype.getValueState=function(e){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=e)&&(n[1]>=i[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(e){var n=YM(this,"outOfRange",this.getExtent()),i=YM(this,"inRange",this.option.range.slice()),a=[];function o(v,d){a.push({value:v,color:e(v,d)})}for(var s=0,l=0,u=i.length,f=n.length;l<f&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var c=1;l<f;l++)(!i.length||i[i.length-1]<n[l])&&(c&&(a.length&&o(a[a.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=ga(bv.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(bv);function YM(r,t,e){if(e[0]===e[1])return e.slice();for(var n=200,i=(e[1]-e[0])/n,a=e[0],o=[],s=0;s<=n&&a<e[1];s++)o.push(a),a+=i;return o.push(e[1]),o}const vnt=hnt;var dnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n},t.prototype.render=function(e,n,i,a){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,n,i,a)},t.prototype.renderBackground=function(e){var n=this.visualMapModel,i=nl(n.get("padding")||0),a=e.getBoundingRect();e.add(new Vt({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var c=o.controllerVisuals[a||o.getValueState(e)],h=ze.prepareVisualTypes(c);return M(h,function(v){var d=c[v];i.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),ze.dependsOn(v,n)&&d&&d.applyVisual(e,u,f)}),s[n]},t.prototype.positionGroup=function(e){var n=this.visualMapModel,i=this.api;hd(e,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(e,n,i,a){},t.type="visualMap",t}(fe);const VO=dnt;var ZM=[["left","right","width"],["top","bottom","height"]];function BO(r,t,e){var n=r.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=ZM[o],l=[0,null,10],u={},f=0;f<3;f++)u[ZM[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],h=be(u,a,n.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<a[c[1]]*.5?0:1]}function _h(r,t){return M(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var Cn=Ut,pnt=M,XM=Math.min,fy=Math.max,gnt=12,ynt=6,mnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,n){r.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=at(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=at(this._hideIndicator,this)},t.prototype.doRender=function(e,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,n=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(n);var i=e.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(e,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),c=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Gt({style:Qt(v,{x:f[0],y:f[1],verticalAlign:h==="horizontal"?"middle":c,align:h==="horizontal"?c:"center",text:a})}))}},t.prototype._renderBar=function(e){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=BO(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),f=new _t;u.add(f),f.add(i.outOfRange=qM()),f.add(i.inRange=qM(null,s?jM(this._orient):null,at(this._dragHandle,this,"all",!1),at(this._dragHandle,this,"all",!0))),f.setClipPath(new Vt({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),h=fy(c.width,c.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,h,o),this._createHandle(n,u,1,a,h,o)),this._createIndicator(n,u,a,h,o),e.add(u)},t.prototype._createHandle=function(e,n,i,a,o,s){var l=at(this._dragHandle,this,i,!1),u=at(this._dragHandle,this,i,!0),f=dn(e.get("handleSize"),a[0]),c=me(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=jM(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){gi(y.event)}}),c.x=a[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),ao(c,!0),n.add(c);var v=this.visualMapModel.textStyleModel,d=new Gt({cursor:h,draggable:!0,drift:l,onmousemove:function(y){gi(y.event)},ondragend:u,style:Qt(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[i]=c,g.handleLabelPoints[i]=p,g.handleLabels[i]=d},t.prototype._createIndicator=function(e,n,i,a,o){var s=dn(e.get("indicatorSize"),i[0]),l=me(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof He){var f=l.style;l.useStyle(F({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,h=new Gt({silent:!0,invisible:!0,style:Qt(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?a/2:ynt)+i[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():KM(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,n=this._dataInterval=e.getSelected(),i=e.getExtent(),a=[0,e.itemSize[1]];this._handleEnds=[Cn(n[0],i,a,!0),Cn(n[1],i,a,!0)]},t.prototype._updateInterval=function(e,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Fo(n,a,o,e,0);var s=i.getExtent();this._dataInterval=[Cn(a[0],o,s,!0),Cn(a[1],o,s,!0)]},t.prototype._updateView=function(e){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new bf(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,n){var i=100,a=[],o=(e[1]-e[0])/i;a.push({color:this.getControllerVisual(e[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=e[0]+o*s;if(l>e[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(e,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,i=this.visualMapModel.get("inverse");return new _t(n==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),f=this._applyTransform("left",i.mainGroup);pnt([0,1],function(c){var h=o[c];h.setStyle("fill",n.handlesColor[c]),h.y=e[c];var v=Cn(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=cn(i.handleLabelPoints[c],So(h,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",h),d=this.getControllerVisual(e,"symbolSize"),p=Cn(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=cn(f.indicatorLabelPoint,So(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:p,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,A),_.animateTo(T,A)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var D=0;D<C.length;D++)this.api.enterBlur(C[D])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(n){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,a=e._applyTransform([n.offsetX,n.offsetY],e._shapes.mainGroup,!0,!0);a[1]=XM(fy(0,a[1]),i[1]),e._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();e=XM(fy(o[0],e),o[1]);var l=_nt(i,s,o),u=[e-l,e+l],f=Cn(e,o,s,!0),c=[Cn(u[0],o,s,!0),Cn(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||KM(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var d=aF(h,v);this._dispatchHighDown("downplay",_h(d[0],i)),this._dispatchHighDown("highlight",_h(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(so(e.target,function(l){var u=St(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",_h(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,n,i,a){var o=So(n,a?null:this.group);return Y(e)?cn(e,o,i):ad(e,o,i)},t.prototype._dispatchHighDown=function(e,n){n&&n.length&&this.api.dispatchAction({type:e,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(VO);function qM(r,t,e,n){return new yr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(i){gi(i.event)},ondragend:n})}function _nt(r,t,e){var n=gnt/2,i=r.get("hoverLinkDataSize");return i&&(n=Cn(i,t,e,!0)/2),n}function KM(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function jM(r){return r==="vertical"?"ns-resize":"ew-resize"}const Snt=mnt;var xnt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},bnt=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},wnt=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(n){var i=r.pipelineContext;!n.isTargetSeries(r)||i&&i.large||e.push(get(n.stateList,n.targetVisuals,at(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var a=i.getVisualMeta(at(Tnt,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(e);o>=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function Tnt(r,t,e,n){for(var i=t.targetVisuals[n],a=ze.prepareVisualTypes(i),o={color:Cf(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],f=i[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var JM=M;function Ant(r){var t=r&&r.visualMap;Y(t)||(t=t?[t]:[]),JM(t,function(e){if(e){ls(e,"splitList")&&!ls(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var n=e.pieces;n&&Y(n)&&JM(n,function(i){yt(i)&&(ls(i,"start")&&!ls(i,"min")&&(i.min=i.start),ls(i,"end")&&!ls(i,"max")&&(i.max=i.end))})}})}function ls(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var QM=!1;function zO(r){QM||(QM=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(xnt,bnt),M(wnt,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Ant))}function GO(r){r.registerComponentModel(vnt),r.registerComponentView(Snt),zO(r)}var Cnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Mnt[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=mt(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=mt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},i=ze.listVisualTypes(),a=this.isCategory();M(e.pieces,function(s){M(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),M(n,function(s,l){var u=!1;M(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&M(this.stateList,function(f){(e[f]||(e[f]={}))[l]=NO.get(l,f==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var i=this.option,a=this._pieceList,o=(n?i:e).selected||{};if(i.selected=o,M(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;M(a,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=mt(e)},t.prototype.getValueState=function(e){var n=ze.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=ze.findPieceIndex(l,i);f===e&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var i=e.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(f,c){var h=a.getRepresentValue({interval:f});c||(c=a.getValueState(h));var v=e(h,c);f[0]===-1/0?i[0]=v:f[1]===1/0?i[1]=v:n.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=ga(bv.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(bv),Mnt={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(e)!==a&&e<5;)e++;t.precision=e,a=+a.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),Ux(r),M(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;M(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),tD(t,r)},pieces:function(r){var t=this.option;M(t.pieces,function(e,n){yt(e)||(e={value:e});var i={text:"",index:n};if(e.label!=null&&(i.text=e.label),e.hasOwnProperty("value")){var a=i.value=e.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=e[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=ze.retrieveVisuals(e),r.push(i)},this),tD(t,r),Ux(r),M(r,function(e){var n=e.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function tD(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const Dnt=Cnt;var Int=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),c=f.endsText,h=Re(n.get("showLabel",!0),!c),v=!n.get("selectedMode");c&&this._renderEndsText(e,c[0],u,h,l),M(f.viewPieceList,function(d){var p=d.piece,g=new _t;g.onclick=at(this._onItemClick,this,p),this._enableHoverLink(g,d.indexInModelPieceList);var y=n.getRepresentValue(p);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],v),h){var m=this.visualMapModel.getValueState(y);g.add(new Gt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:v}))}e.add(g)},this),c&&this._renderEndsText(e,c[1],u,h,l),xo(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var i=this;e.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:_h(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return BO(e,this.api,e.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,n,i,a,o){if(n){var s=new _t,l=this.visualMapModel.textStyleModel;s.add(new Gt({style:Qt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Z(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=e.get("text"),a=e.get("orient"),o=e.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(e,n,i,a){var o=me(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,e.add(o)},t.prototype._onItemClick=function(e){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=mt(i.selected),s=n.getSelectedMapKey(e);a==="single"||a===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(VO);const Lnt=Int;function FO(r){r.registerComponentModel(Dnt),r.registerComponentView(Lnt),zO(r)}function Pnt(r){Lt(GO),Lt(FO)}var Rnt={label:{enabled:!0},decal:{show:!1}},eD=Nt(),Ent={};function knt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(Rnt);Tt(n.label,r.getLocaleModel().get("aria"),!1),Tt(e.option,n,!1),i(),a();function i(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=ft();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),eD(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(vt(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=ym(h.ecModel,h.name,Ent,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=h.getRawData(),p={},g=eD(h).scope;v.each(function(x){var b=v.getRawIndex(x);p[b]=x});var y=d.count();d.each(function(x){var b=p[x],w=d.getName(x)||x+"",T=ym(h.ecModel,w,g,y),A=v.getItemVisual(b,"decal");v.setItemVisual(b,"decal",S(A,T))})}function S(x,b){var w=x?F(F({},b),x):b;return w.dirty=!0,w}})}}function a(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=pt(c.option,f),!!c.get("enabled")){if(u.setAttribute("role","img"),c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,A){if(A<p){var C=void 0,D=T.get("name"),I=D?"withName":"withoutName";C=h>1?c.get(["series","multiple",I]):c.get(["series","single",I]),C=o(C,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);C+=o(P,{displayCnt:v})}else C+=c.get(["data","allData"]);for(var E=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),V=c.get(["data","excludeDimensionId"]),N=[],z=0;z<L.count();z++)if(z<v){var $=L.getName(z),q=V?$t(L.getValues(z),function(ct,ht){return Dt(V,ht)===-1}):L.getValues(z),Q=c.get(["data",$?"withName":"withoutName"]);N.push(o(Q,{name:$,value:q.join(E)}))}C+=N.join(E)+O,_.push(C)}});var x=c.getModel(["series","multiple","separator"]),b=x.get("middle"),w=x.get("end");g+=_.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!nt(u))return u;var c=u;return M(f,function(h,v){c=c.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),c}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function Ont(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},M(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function Nnt(r){r.registerPreprocessor(Ont),r.registerVisual(r.PRIORITY.VISUAL.ARIA,knt)}var rD={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Vnt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):d5(t)?t:null;if(e==null){var n="";Wt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Ft(e)?this._condVal.test(t+""):!1},r}(),Bnt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),znt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),Gnt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),Fnt=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),Hnt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},r}();function nS(r,t){if(r===!0||r===!1){var e=new Bnt;return e.value=r,e}var n="";return HO(r)||Wt(n),r.and?nD("and",r,t):r.or?nD("or",r,t):r.not?Wnt(r,t):$nt(r,t)}function nD(r,t,e){var n=t[r],i="";Y(n)||Wt(i),n.length||Wt(i);var a=r==="and"?new znt:new Gnt;return a.children=Z(n,function(o){return nS(o,e)}),a.children.length||Wt(i),a}function Wnt(r,t){var e=r.not,n="";HO(e)||Wt(n);var i=new Fnt;return i.child=nS(e,t),i.child||Wt(n),i}function $nt(r,t){for(var e="",n=t.prepareGetValue(r),i=[],a=kt(r),o=r.parser,s=o?p2(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=st(rD,u)?rD[u]:u,c=r[u],h=s?s(c):c,v=S4(f,h)||f==="reg"&&new Vnt(h);v||Wt(e),i.push(v)}}i.length||Wt(e);var d=new Hnt;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function HO(r){return yt(r)&&!Ke(r)}var Unt=function(){function r(t,e){this._cond=nS(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function Ynt(r,t){return new Unt(r,t)}var Znt={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=Ynt(r.config,{valueGetterAttrMap:ft({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;st(s,"dimension")||Wt(l);var f=t.getDimensionInfo(u);return f||Wt(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)e=t.getRawDataItem(a),n.evaluate()&&i.push(e);return{data:i}}},Xnt={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",i=Zt(e);i.length||Wt(n);var a=[];M(i,function(f){var c=f.dimension,h=f.order,v=f.parser,d=f.incomparable;if(c==null&&Wt(n),h!=="asc"&&h!=="desc"&&Wt(n),d&&d!=="min"&&d!=="max"){var p="";Wt(p)}if(h!=="asc"&&h!=="desc"){var g="";Wt(g)}var y=t.getDimensionInfo(c);y||Wt(n);var m=v?p2(v):null;v&&!m&&Wt(n),a.push({dimIdx:y.index,parser:m,comparator:new y2(h,d)})});var o=t.sourceFormat;o!==je&&o!==qr&&Wt(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var h=0;h<a.length;h++){var v=a[h],d=t.retrieveValueFromItem(f,v.dimIdx),p=t.retrieveValueFromItem(c,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function qnt(r){r.registerTransform(Znt),r.registerTransform(Xnt)}var Knt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,i){r.prototype.init.call(this,e,n,i),this._sourceManager=new x2(this),nw(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),nw(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:zn},t}(Bt),jnt=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(fe);function Jnt(r){r.registerComponentModel(Knt),r.registerComponentView(jnt)}var Tn=Un.CMD;function xs(r,t){return Math.abs(r-t)<1e-5}function g0(r){var t=r.data,e=r.len(),n=[],i,a=0,o=0,s=0,l=0;function u(L,P){i&&i.length>2&&n.push(i),i=[L,P]}function f(L,P,E,O){xs(L,E)&&xs(P,O)||i.push(L,P,E,O,E,O)}function c(L,P,E,O,V,N){var z=Math.abs(P-L),$=Math.tan(z/4)*4/3,q=P<L?-1:1,Q=Math.cos(L),ct=Math.sin(L),ht=Math.cos(P),gt=Math.sin(P),Et=Q*V+E,U=ct*N+O,K=ht*V+E,H=gt*N+O,tt=V*$*q,j=N*$*q;i.push(Et-tt*ct,U+j*Q,K+tt*gt,H-j*ht,K,H)}for(var h,v,d,p,g=0;g<e;){var y=t[g++],m=g===1;switch(m&&(a=t[g],o=t[g+1],s=a,l=o,(y===Tn.L||y===Tn.C||y===Tn.Q)&&(i=[s,l])),y){case Tn.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case Tn.L:h=t[g++],v=t[g++],f(a,o,h,v),a=h,o=v;break;case Tn.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case Tn.Q:h=t[g++],v=t[g++],d=t[g++],p=t[g++],i.push(a+2/3*(h-a),o+2/3*(v-o),d+2/3*(h-d),p+2/3*(v-p),d,p),a=d,o=p;break;case Tn.A:var _=t[g++],S=t[g++],x=t[g++],b=t[g++],w=t[g++],T=t[g++]+w;g+=1;var A=!t[g++];h=Math.cos(w)*x+_,v=Math.sin(w)*b+S,m?(s=h,l=v,u(s,l)):f(a,o,h,v),a=Math.cos(T)*x+_,o=Math.sin(T)*b+S;for(var C=(A?-1:1)*Math.PI/2,D=w;A?D>T:D<T;D+=C){var I=A?Math.max(D+C,T):Math.min(D+C,T);c(D,I,_,S,x,b)}break;case Tn.R:s=a=t[g++],l=o=t[g++],h=s+t[g++],v=l+t[g++],u(h,l),f(h,l,h,v),f(h,v,s,v),f(s,v,s,l),f(s,l,h,l);break;case Tn.Z:i&&f(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function y0(r,t,e,n,i,a,o,s,l,u){if(xs(r,e)&&xs(t,n)&&xs(i,o)&&xs(a,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-t,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=e-r,g=n-t,y=i-o,m=a-s,_=p*p+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var x=h*p+v*g,b=-h*y-v*m,w=_-x*x,T=S-b*b;if(w<c&&x>=0&&T<c&&b>=0){l.push(o,s);return}var A=[],C=[];aa(r,e,i,o,.5,A),aa(t,n,a,s,.5,C),y0(A[0],C[0],A[1],C[1],A[2],C[2],A[3],C[3],l,u),y0(A[4],C[4],A[5],C[5],A[6],C[6],A[7],C[7],l,u)}function Qnt(r,t){var e=g0(r),n=[];t=t||1;for(var i=0;i<e.length;i++){var a=e[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var f=a[u++],c=a[u++],h=a[u++],v=a[u++],d=a[u++],p=a[u++];y0(s,l,f,c,h,v,d,p,o,t),s=d,l=p}n.push(o)}return n}function WO(r,t,e){var n=r[t],i=r[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=e-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function iD(r,t,e){for(var n=r.r0,i=r.r,a=r.startAngle,o=r.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,f=l>Math.abs(u),c=WO([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;v<c.length;v++)for(var d=(f?u:s)/c[v],p=0;p<c[v];p++){var g={};f?(g.startAngle=a+h*v,g.endAngle=a+h*(v+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=a+d*p,g.endAngle=a+d*(p+1),g.r0=n+h*v,g.r=n+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function tit(r,t,e){for(var n=r.width,i=r.height,a=n>i,o=WO([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",f=a?"y":"x",c=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],d=0;d<o[h];d++){var p={};p[u]=h*c,p[f]=d*v,p[s]=c,p[l]=v,p.x+=r.x,p.y+=r.y,e.push(p)}}function aD(r,t,e,n){return r*n-e*t}function eit(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,c=s-a,h=aD(f,c,l,u);if(Math.abs(h)<1e-6)return null;var v=r-i,d=t-a,p=aD(v,d,f,c)/h;return p<0||p>1?null:new Ct(p*l+r,p*u+t)}function rit(r,t,e){var n=new Ct;Ct.sub(n,e,t),n.normalize();var i=new Ct;Ct.sub(i,r,t);var a=i.dot(n);return a}function us(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function nit(r,t,e){for(var n=r.length,i=[],a=0;a<n;a++){var o=r[a],s=r[(a+1)%n],l=eit(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&i.push({projPt:rit(l,t,e),pt:l,idx:a})}if(i.length<2)return[{points:r},{points:r}];i.sort(function(g,y){return g.projPt-y.projPt});var u=i[0],f=i[i.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var h=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[h],p=[v],a=u.idx+1;a<=f.idx;a++)us(d,r[a].slice());us(d,v),us(d,h);for(var a=f.idx+1;a<=u.idx+n;a++)us(p,r[a%n].slice());return us(p,h),us(p,v),[{points:d},{points:p}]}function oD(r){var t=r.points,e=[],n=[];Qv(t,e,n);var i=new Mt(e[0],e[1],n[0]-e[0],n[1]-e[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Ct,f=new Ct;return a>o?(u.x=f.x=s+a/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+a),nit(t,u,f)}function wv(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);wv(r,a[0],i,n),wv(r,a[1],e-i,n)}return n}function iit(r,t){for(var e=[],n=0;n<t;n++)e.push(g_(r));return e}function ait(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function oit(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function sit(r,t){var e=[],n=r.shape,i;switch(r.type){case"rect":tit(n,t,e),i=Vt;break;case"sector":iD(n,t,e),i=gr;break;case"circle":iD({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),i=gr;break;default:var a=r.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Z(Qnt(r.getUpdatedPathProxy(),o),function(y){return oit(y)}),l=s.length;if(l===0)wv(oD,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var f=0,c=Z(s,function(y){var m=[],_=[];Qv(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var h=t,u=0;u<l;u++){var v=c[u];if(h<=0)break;var d=u===l-1?h:Math.ceil(v.area/f*t);d<0||(wv(oD,{points:v.poly},d,e),h-=d)}}i=yr;break}if(!i)return iit(r,t);for(var p=[],u=0;u<e.length;u++){var g=new i;g.setShape(e[u]),ait(r,g),p.push(g)}return p}function lit(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var i=[],a=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],x=o[v++];if(h<=0){c.push(g,y,m,_,S,x);continue}for(var b=Math.min(h,f-1)+1,w=1;w<=b;w++){var T=w/b;aa(d,g,m,S,T,i),aa(p,y,_,x,T,a),d=i[3],p=a[3],c.push(i[1],a[1],i[2],a[2],d,p),g=i[5],y=a[5],m=i[6],_=a[6]}h-=b-1}return o===r?[c,t]:[r,c]}function sD(r,t){for(var e=r.length,n=r[e-2],i=r[e-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function uit(r,t){for(var e,n,i,a=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,c=void 0;l?u?(e=lit(l,u),f=e[0],c=e[1],n=f,i=c):(c=sD(i||l,l),f=l):(f=sD(n||u,u),c=u),a.push(f),o.push(c)}return[a,o]}function lD(r){for(var t=0,e=0,n=0,i=r.length,a=0,o=i-2;a<i;o=a,a+=2){var s=r[o],l=r[o+1],u=r[a],f=r[a+1],c=s*f-u*l;t+=c,e+=(s+u)*c,n+=(l+f)*c}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function fit(r,t,e,n){for(var i=(r.length-2)/6,a=1/0,o=0,s=r.length,l=s-2,u=0;u<i;u++){for(var f=u*6,c=0,h=0;h<s;h+=2){var v=h===0?f:(f+h-2)%l+2,d=r[v]-e[0],p=r[v+1]-e[1],g=t[h]-n[0],y=t[h+1]-n[1],m=g-d,_=y-p;c+=m*m+_*_}c<a&&(a=c,o=u)}return o}function cit(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function hit(r,t,e,n){for(var i=[],a,o=0;o<r.length;o++){var s=r[o],l=t[o],u=lD(s),f=lD(l);a==null&&(a=u[2]<0!=f[2]<0);var c=[],h=[],v=0,d=1/0,p=[],g=s.length;a&&(s=cit(s));for(var y=fit(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}if(c[0]=s[y]-u[0],c[1]=s[y+1]-u[1],e>0)for(var x=n/e,b=-n/2;b<=n/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),A=0,_=0;_<s.length;_+=2){var C=c[_],D=c[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*w,E=I*w+L*T;p[_]=P,p[_+1]=E;var O=P-C,V=E-D;A+=O*O+V*V}if(A<d){d=A,v=b;for(var N=0;N<p.length;N++)h[N]=p[N]}}else for(var z=0;z<g;z+=2)h[z]=l[z]-f[0],h[z+1]=l[z+1]-f[1];i.push({from:c,to:h,fromCp:u,toCp:f,rotation:-v})}return i}function Tv(r){return r.__isCombineMorphing}var $O="__mOriginal_";function Av(r,t,e){var n=$O+t,i=r[n]||r[t];r[n]||(r[n]=r[t]);var a=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Lu(r,t){var e=$O+t;r[e]&&(r[t]=r[e],r[e]=null)}function uD(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function UO(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=uit(g0(e),g0(n)),a=i[0],o=i[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&uD(a,s),l&&uD(o,l),Av(t,"updateTransform",{replace:u}),t.transform=null;var f=hit(a,o,10,Math.PI),c=[];Av(t,"buildPath",{replace:function(h){for(var v=t.__morphT,d=1-v,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*v,x=y.fromCp,b=y.toCp,w=Math.sin(S),T=Math.cos(S);eh(p,x,b,v);for(var A=0;A<m.length;A+=2){var C=m[A],D=m[A+1],I=_[A],L=_[A+1],P=C*d+I*v,E=D*d+L*v;c[A]=P*T-E*w+p[0],c[A+1]=P*w+E*T+p[1]}var O=c[0],V=c[1];h.moveTo(O,V);for(var A=2;A<m.length;){var I=c[A++],L=c[A++],N=c[A++],z=c[A++],$=c[A++],q=c[A++];O===I&&V===L&&N===$&&z===q?h.lineTo($,q):h.bezierCurveTo(I,L,N,z,$,q),O=$,V=q}}}})}function iS(r,t,e){if(!r||!t)return t;var n=e.done,i=e.during;UO(r,t),t.__morphT=0;function a(){Lu(t,"buildPath"),Lu(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},pt({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},e)),t}function vit(r,t,e,n,i,a){var o=16;r=i===e?0:Math.round(32767*(r-e)/(i-e)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Cv(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=Z(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(c,e),n=Math.max(f,n),i=Math.max(c,i),[f,c]}),o=Z(a,function(s,l){return{cp:s,z:vit(s[0],s[1],t,e,n,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function YO(r){return sit(r.path,r.count)}function m0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dit(r,t,e){var n=[];function i(x){for(var b=0;b<x.length;b++){var w=x[b];Tv(w)?i(w.childrenRef()):w instanceof Pt&&n.push(w)}}i(r);var a=n.length;if(!a)return m0();var o=e.dividePath||YO,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),m0();n=Cv(n),s=Cv(s);for(var l=e.done,u=e.during,f=e.individualDelay,c=new ai,h=0;h<a;h++){var v=n[h],d=s[h];d.parent=t,d.copyTransform(c),f||UO(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}Av(t,"addSelfToZr",{after:function(x){p(x)}}),Av(t,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Lu(t,"addSelfToZr"),Lu(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var S=f?pt({delay:(e.delay||0)+f(h,y,n[h],s[h]),done:_},e):e;iS(n[h],s[h],S)}else t.__morphT=0,t.animateTo({__morphT:1},pt({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)Lu(r[x],"updateTransform");l&&l()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function pit(r,t,e){var n=t.length,i=[],a=e.dividePath||YO;function o(v){for(var d=0;d<v.length;d++){var p=v[d];Tv(p)?o(p.childrenRef()):p instanceof Pt&&i.push(p)}}if(Tv(r)){o(r.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(g_(i[l++%s]));i.length=n}else{i=a({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(f);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),m0()}i=Cv(i),t=Cv(t);for(var c=e.individualDelay,u=0;u<n;u++){var h=c?pt({delay:(e.delay||0)+c(u,n,i[u],t[u])},e):e;iS(i[u],t[u],h)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function fD(r){return Y(r[0])}function cD(r,t){for(var e=[],n=r.length,i=0;i<n;i++)e.push({one:r[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)e[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var a=l.length,u=Math.ceil(a/2);e[i].many=l.slice(u,a),e[s].many=l.slice(0,u),s++}return e}var git={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var i=g_(r.path);i.setStyle("opacity",e),t.push(i)}return t},split:null};function cy(r,t,e,n,i,a){if(!r.length||!t.length)return;var o=tl("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;fD(r)&&(u=r,f=t),fD(t)&&(u=t,f=r);function c(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,A=m?w:b[0];if(Tv(T))c({many:[T],one:A},!0,_,S,!0);else{var C=s?pt({delay:s(_,S)},l):l;iS(T,A,C),a(T,A,T,A,C)}}else for(var D=pt({dividePath:git[e],individualDelay:s&&function(V,N,z,$){return s(V+_,S)}},l),I=m?dit(b,w,D):pit(w,b,D),L=I.fromIndividuals,P=I.toIndividuals,E=L.length,O=0;O<E;O++){var C=s?pt({delay:s(O,E)},l):l;a(L[O],P[O],m?b[O]:y.one,m?y.one:b[O],C)}}for(var h=u?u===r:r.length>t.length,v=u?cD(f,u):cD(h?t:r,[h?r:t]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)c(v[p],h,g,d),g+=v[p].many.length}function qa(r){if(!r)return[];if(Y(r)){for(var t=[],e=0;e<r.length;e++)t.push(qa(r[e]));return t}var n=[];return r.traverse(function(i){i instanceof Pt&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var ZO=1e4,yit=0,hD=1,vD=2,mit=Nt();function _it(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var i=r.getDimensionInfo(e[n]);if(i&&i.otherDims[t]===0)return e[n]}}function Sit(r,t,e){var n=r.getDimensionInfo(e),i=n&&n.ordinalMeta;if(n){var a=r.get(n.name,t);return i&&i.categories[a]||a+""}}function dD(r,t,e,n){var i=n?"itemChildGroupId":"itemGroupId",a=_it(r,i);if(a){var o=Sit(r,t,a);return o}var s=r.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return e||r.getId(t)}function pD(r){var t=[];return M(r,function(e){var n=e.data,i=e.dataGroupId;if(!(n.count()>ZO))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:dD(n,o,i,!1),childGroupId:dD(n,o,i,!0),divide:e.divide,dataIndex:o})}),t}function hy(r,t,e){r.traverse(function(n){n instanceof Pt&&ae(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function vy(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function fs(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function xit(r,t,e){var n=tl("update",e,t);n&&r.traverse(function(i){if(i instanceof Yr){var a=Q3(i);a&&i.animateFrom({style:a},n)}})}function bit(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var i=r[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function XO(r,t,e){var n=pD(r),i=pD(t);function a(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?F(F({},x.style),_.style):_.style},w)}var o=!1,s=yit,l=ft(),u=ft();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<i.length;f++){var c=i[f].groupId;if(u.get(c)){s=hD;break}var h=i[f].childGroupId;if(h&&l.get(h)){s=vD;break}}function v(_,S){return function(x){var b=x.data,w=x.dataIndex;return S?b.getId(w):_?s===hD?x.childGroupId:x.groupId:s===vD?x.childGroupId:x.groupId}}var d=bit(n,i),p={};if(!d)for(var f=0;f<i.length;f++){var g=i[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var x=n[S],b=i[_],w=b.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),A=b.data.getItemGraphicEl(b.dataIndex);if(T===A){A&&xit(A,b.dataIndex,w);return}T&&p[T.id]||A&&(fs(A),T?(fs(T),vy(T),o=!0,cy(qa(T),qa(A),b.divide,w,_,a)):hy(A,w,_))}new Si(n,i,v(!0,d),v(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var x=i[_],b=x.data,w=b.hostModel,T=b.getItemGraphicEl(x.dataIndex),A=$t(Z(S,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==T&&!p[C.id]});T&&(fs(T),A.length?(M(A,function(C){fs(C),vy(C)}),o=!0,cy(qa(A),qa(T),x.divide,w,_,a)):hy(T,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=n[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&p[b.id])){var w=$t(Z(_,function(A){return i[A].data.getItemGraphicEl(i[A].dataIndex)}),function(A){return A&&A!==b}),T=i[_[0]].data.hostModel;w.length&&(M(w,function(A){return fs(A)}),b?(fs(b),vy(b),o=!0,cy(qa(b),qa(w),x.divide,T,_[0],a)):M(w,function(A){return hy(A,T,_[0])}))}}).updateManyToMany(function(_,S){new Si(S,_,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return i[x].data.getId(i[x].dataIndex)}).update(function(x,b){m(_[x],S[b])}).execute()}).execute(),o&&M(t,function(_){var S=_.data,x=S.hostModel,b=x&&e.getViewOfSeriesModel(x),w=tl("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(T){T instanceof Pt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function gD(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function yD(r){return Y(r)?r.sort().join(","):r}function Wi(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function wit(r,t){var e=ft(),n=ft(),i=ft();return M(r.oldSeries,function(a,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=gD(a),f=yD(u);n.set(f,{dataGroupId:s,data:l}),Y(u)&&M(u,function(c){i.set(c,{key:f,dataGroupId:s,data:l})})}),M(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=gD(a),u=yD(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Wi(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Wi(s),data:s}]});else if(Y(l)){var c=[];M(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Wi(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Wi(s)}]})}else{var h=i.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Wi(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Wi(s)})}}}}),e}function mD(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function Tit(r,t,e,n){var i=[],a=[];M(Zt(r.from),function(o){var s=mD(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Wi(t.oldData[s]),groupIdDim:o.dimension})}),M(Zt(r.to),function(o){var s=mD(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Wi(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&XO(i,a,n)}function Ait(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){M(Zt(n.seriesTransition),function(i){M(Zt(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][vh]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var i=mit(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)M(Zt(a),function(v){Tit(v,i,n,e)});else{var o=wit(i,n);M(o.keys(),function(v){var d=o.get(v);XO(d.oldSeries,d.newSeries,e)})}M(n.updatedSeries,function(v){v[vh]&&(v[vh]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],f=i.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<ZO&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(h))}})}Lt([B6]);Lt([P6]);Lt([l8,C8,z8,CY,WY,V7,d9,tZ,DZ,VZ,XZ,JX,Aq,Bq,iK,cK,IK,zK,JK,oj,_j,iJ]);Lt(MJ);Lt(sQ);Lt(WE);Lt(TQ);Lt(Ik);Lt(PQ);Lt(GQ);Lt(Ftt);Lt(cet);Lt(Vf);Lt(Ret);Lt(Oet);Lt(Ket);Lt(ort);Lt(drt);Lt(brt);Lt(Nrt);Lt(int);Lt(kO);Lt(OO);Lt(Pnt);Lt(GO);Lt(FO);Lt(Nnt);Lt(qnt);Lt(Jnt);Lt(Ait);Lt(qU);const _D=["z-index:2147483647!important","pointer-events:none"].join(";");let SD=!1;function Cit(){SD||(SD=!0,$_(r=>{_0(r)}))}function _0(r,t=new WeakSet){if(!(!r||typeof r!="object")&&!t.has(r)){if(t.add(r),Array.isArray(r)){r.forEach(e=>_0(e,t));return}r.tooltip&&typeof r.tooltip=="object"&&(r.tooltip=Mit(r.tooltip)),Object.keys(r).forEach(e=>{const n=r[e];!n||typeof n!="object"||_0(n,t)})}}function Mit(r){var t,e;return cS(fS({},r),{appendToBody:(t=r.appendToBody)!=null?t:!0,confine:(e=r.confine)!=null?e:!1,extraCssText:Dit(r.extraCssText)})}function Dit(r=""){const t=String(r||"").trim();return t?/z-index\s*:/i.test(t)?t:`${t.replace(/;$/,"")};${_D}`:_D}Cit();let Iit=LB(jz);Iit.use(GI).mount("#app");export{Hit as A,Uit as B,zit as C,Fit as D,Wit as E,zr as F,Oit as G,H0 as H,qit as I,Zit as J,Yit as K,bf as L,Xit as M,k0 as N,jV as O,Eit as P,TI as Q,Pit as R,Kit as S,kit as T,ke as U,B_ as V,Xz as _,xI as a,Pe as b,Bit as c,Yc as d,nn as e,uV as f,Git as g,$z as h,un as i,oV as j,L0 as k,Nit as l,b0 as m,w0 as n,Ch as o,Zc as p,Dh as q,Vit as r,ON as s,hN as t,vo as u,YV as v,Xc as w,ZN as x,$it as y,Rit as z};