mirror of
https://github.com/snowykami/server-status-server.git
synced 2025-06-06 07:05:22 +00:00
81 lines
1.1 MiB
81 lines
1.1 MiB
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function e(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=e(a);fetch(a.href,i)}})();/**
|
||
* @vue/shared v3.5.10
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**//*! #__NO_SIDE_EFFECTS__ */function Qm(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const le={},gs=[],kn=()=>{},Nk=()=>!1,lv=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Jm=r=>r.startsWith("onUpdate:"),ke=Object.assign,t0=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},Bk=Object.prototype.hasOwnProperty,Qt=(r,t)=>Bk.call(r,t),Nt=Array.isArray,ys=r=>uv(r)==="[object Map]",ED=r=>uv(r)==="[object Set]",Bt=r=>typeof r=="function",Se=r=>typeof r=="string",fi=r=>typeof r=="symbol",fe=r=>r!==null&&typeof r=="object",kD=r=>(fe(r)||Bt(r))&&Bt(r.then)&&Bt(r.catch),OD=Object.prototype.toString,uv=r=>OD.call(r),Vk=r=>uv(r).slice(8,-1),ND=r=>uv(r)==="[object Object]",e0=r=>Se(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,jl=Qm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fv=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},zk=/-(\w)/g,$r=fv(r=>r.replace(zk,(t,e)=>e?e.toUpperCase():"")),Fk=/\B([A-Z])/g,Do=fv(r=>r.replace(Fk,"-$1").toLowerCase()),cv=fv(r=>r.charAt(0).toUpperCase()+r.slice(1)),lp=fv(r=>r?`on${cv(r)}`:""),ei=(r,t)=>!Object.is(r,t),up=(r,...t)=>{for(let e=0;e<r.length;e++)r[e](...t)},BD=(r,t,e,n=!1)=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},Gk=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let R1;const VD=()=>R1||(R1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Su(r){if(Nt(r)){const t={};for(let e=0;e<r.length;e++){const n=r[e],a=Se(n)?$k(n):Su(n);if(a)for(const i in a)t[i]=a[i]}return t}else if(Se(r)||fe(r))return r}const Hk=/;(?![^(]*\))/g,Wk=/:([^]+)/,Uk=/\/\*[^]*?\*\//g;function $k(r){const t={};return r.replace(Uk,"").split(Hk).forEach(e=>{if(e){const n=e.split(Wk);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function r0(r){let t="";if(Se(r))t=r;else if(Nt(r))for(let e=0;e<r.length;e++){const n=r0(r[e]);n&&(t+=n+" ")}else if(fe(r))for(const e in r)r[e]&&(t+=e+" ");return t.trim()}const Yk="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Xk=Qm(Yk);function zD(r){return!!r||r===""}const FD=r=>!!(r&&r.__v_isRef===!0),Sr=r=>Se(r)?r:r==null?"":Nt(r)||fe(r)&&(r.toString===OD||!Bt(r.toString))?FD(r)?Sr(r.value):JSON.stringify(r,GD,2):String(r),GD=(r,t)=>FD(t)?GD(r,t.value):ys(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[fp(n,i)+" =>"]=a,e),{})}:ED(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>fp(e))}:fi(t)?fp(t):fe(t)&&!Nt(t)&&!ND(t)?String(t):t,fp=(r,t="")=>{var e;return fi(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/**
|
||
* @vue/reactivity v3.5.10
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let xr;class Zk{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xr,!t&&xr&&(this.index=(xr.scopes||(xr.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=xr;try{return xr=this,t()}finally{xr=e}}}on(){xr=this}off(){xr=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function qk(){return xr}let se;const cp=new WeakSet;class HD{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,xr&&xr.active&&xr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,cp.has(this)&&(cp.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||UD(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,E1(this),$D(this);const t=se,e=sn;se=this,sn=!0;try{return this.fn()}finally{YD(this),se=t,sn=e,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)i0(t);this.deps=this.depsTail=void 0,E1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?cp.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zg(this)&&this.run()}get dirty(){return Zg(this)}}let WD=0,cs;function UD(r){r.flags|=8,r.next=cs,cs=r}function n0(){WD++}function a0(){if(--WD>0)return;let r;for(;cs;){let t=cs,e;for(;t;)t.flags&1||(t.flags&=-9),t=t.next;for(t=cs,cs=void 0;t;){if(e=t.next,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 $D(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function YD(r){let t,e=r.depsTail,n=e;for(;n;){const a=n.prevDep;n.version===-1?(n===e&&(e=a),i0(n),Kk(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}r.deps=t,r.depsTail=e}function Zg(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(XD(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function XD(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===xu))return;r.globalVersion=xu;const t=r.dep;if(r.flags|=2,t.version>0&&!r.isSSR&&r.deps&&!Zg(r)){r.flags&=-3;return}const e=se,n=sn;se=r,sn=!0;try{$D(r);const a=r.fn(r._value);(t.version===0||ei(a,r._value))&&(r._value=a,t.version++)}catch(a){throw t.version++,a}finally{se=e,sn=n,YD(r),r.flags&=-3}}function i0(r,t=!1){const{dep:e,prevSub:n,nextSub:a}=r;if(n&&(n.nextSub=a,r.prevSub=void 0),a&&(a.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n),!e.subs&&e.computed){e.computed.flags&=-5;for(let i=e.computed.deps;i;i=i.nextDep)i0(i,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function Kk(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let sn=!0;const ZD=[];function ci(){ZD.push(sn),sn=!1}function hi(){const r=ZD.pop();sn=r===void 0?!0:r}function E1(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let xu=0;class jk{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 o0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!se||!sn||se===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==se)e=this.activeLink=new jk(se,this),se.deps?(e.prevDep=se.depsTail,se.depsTail.nextDep=e,se.depsTail=e):se.deps=se.depsTail=e,qD(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++,xu++,this.notify(t)}notify(t){n0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{a0()}}}function qD(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)qD(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const qg=new WeakMap,oo=Symbol(""),Kg=Symbol(""),bu=Symbol("");function Ue(r,t,e){if(sn&&se){let n=qg.get(r);n||qg.set(r,n=new Map);let a=n.get(e);a||(n.set(e,a=new o0),a.target=r,a.map=n,a.key=e),a.track()}}function na(r,t,e,n,a,i){const o=qg.get(r);if(!o){xu++;return}const s=l=>{l&&l.trigger()};if(n0(),t==="clear")o.forEach(s);else{const l=Nt(r),u=l&&e0(e);if(l&&e==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===bu||!fi(h)&&h>=f)&&s(c)})}else switch(e!==void 0&&s(o.get(e)),u&&s(o.get(bu)),t){case"add":l?u&&s(o.get("length")):(s(o.get(oo)),ys(r)&&s(o.get(Kg)));break;case"delete":l||(s(o.get(oo)),ys(r)&&s(o.get(Kg)));break;case"set":ys(r)&&s(o.get(oo));break}}a0()}function No(r){const t=Jt(r);return t===r?t:(Ue(t,"iterate",bu),Wr(r)?t:t.map(Ge))}function hv(r){return Ue(r=Jt(r),"iterate",bu),r}const Qk={__proto__:null,[Symbol.iterator](){return hp(this,Symbol.iterator,Ge)},concat(...r){return No(this).concat(...r.map(t=>Nt(t)?No(t):t))},entries(){return hp(this,"entries",r=>(r[1]=Ge(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(Ge),arguments)},find(r,t){return Xn(this,"find",r,t,Ge,arguments)},findIndex(r,t){return Xn(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return Xn(this,"findLast",r,t,Ge,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 vp(this,"includes",r)},indexOf(...r){return vp(this,"indexOf",r)},join(r){return No(this).join(r)},lastIndexOf(...r){return vp(this,"lastIndexOf",r)},map(r,t){return Xn(this,"map",r,t,void 0,arguments)},pop(){return ol(this,"pop")},push(...r){return ol(this,"push",r)},reduce(r,...t){return k1(this,"reduce",r,t)},reduceRight(r,...t){return k1(this,"reduceRight",r,t)},shift(){return ol(this,"shift")},some(r,t){return Xn(this,"some",r,t,void 0,arguments)},splice(...r){return ol(this,"splice",r)},toReversed(){return No(this).toReversed()},toSorted(r){return No(this).toSorted(r)},toSpliced(...r){return No(this).toSpliced(...r)},unshift(...r){return ol(this,"unshift",r)},values(){return hp(this,"values",Ge)}};function hp(r,t,e){const n=hv(r),a=n[t]();return n!==r&&!Wr(r)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.value&&(i.value=e(i.value)),i}),a}const Jk=Array.prototype;function Xn(r,t,e,n,a,i){const o=hv(r),s=o!==r&&!Wr(r),l=o[t];if(l!==Jk[t]){const c=l.apply(r,i);return s?Ge(c):c}let u=e;o!==r&&(s?u=function(c,h){return e.call(this,Ge(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&&a?a(f):f}function k1(r,t,e,n){const a=hv(r);let i=e;return a!==r&&(Wr(r)?e.length>3&&(i=function(o,s,l){return e.call(this,o,s,l,r)}):i=function(o,s,l){return e.call(this,o,Ge(s),l,r)}),a[t](i,...n)}function vp(r,t,e){const n=Jt(r);Ue(n,"iterate",bu);const a=n[t](...e);return(a===-1||a===!1)&&f0(e[0])?(e[0]=Jt(e[0]),n[t](...e)):a}function ol(r,t,e=[]){ci(),n0();const n=Jt(r)[t].apply(r,e);return a0(),hi(),n}const tO=Qm("__proto__,__v_isRef,__isVue"),KD=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(fi));function eO(r){fi(r)||(r=String(r));const t=Jt(this);return Ue(t,"has",r),t.hasOwnProperty(r)}class jD{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const a=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!a;if(e==="__v_isReadonly")return a;if(e==="__v_isShallow")return i;if(e==="__v_raw")return n===(a?i?pO:eM:i?tM:JD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Nt(t);if(!a){let l;if(o&&(l=Qk[e]))return l;if(e==="hasOwnProperty")return eO}const s=Reflect.get(t,e,We(t)?t:n);return(fi(e)?KD.has(e):tO(e))||(a||Ue(t,"get",e),i)?s:We(s)?o&&e0(e)?s:s.value:fe(s)?a?nM(s):pv(s):s}}class QD extends jD{constructor(t=!1){super(!1,t)}set(t,e,n,a){let i=t[e];if(!this._isShallow){const l=mo(i);if(!Wr(n)&&!mo(n)&&(i=Jt(i),n=Jt(n)),!Nt(t)&&We(i)&&!We(n))return l?!1:(i.value=n,!0)}const o=Nt(t)&&e0(e)?Number(e)<t.length:Qt(t,e),s=Reflect.set(t,e,n,We(t)?t:a);return t===Jt(a)&&(o?ei(n,i)&&na(t,"set",e,n):na(t,"add",e,n)),s}deleteProperty(t,e){const n=Qt(t,e);t[e];const a=Reflect.deleteProperty(t,e);return a&&n&&na(t,"delete",e,void 0),a}has(t,e){const n=Reflect.has(t,e);return(!fi(e)||!KD.has(e))&&Ue(t,"has",e),n}ownKeys(t){return Ue(t,"iterate",Nt(t)?"length":oo),Reflect.ownKeys(t)}}class rO extends jD{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const nO=new QD,aO=new rO,iO=new QD(!0);const s0=r=>r,vv=r=>Reflect.getPrototypeOf(r);function Mf(r,t,e=!1,n=!1){r=r.__v_raw;const a=Jt(r),i=Jt(t);e||(ei(t,i)&&Ue(a,"get",t),Ue(a,"get",i));const{has:o}=vv(a),s=n?s0:e?c0:Ge;if(o.call(a,t))return s(r.get(t));if(o.call(a,i))return s(r.get(i));r!==a&&r.get(t)}function If(r,t=!1){const e=this.__v_raw,n=Jt(e),a=Jt(r);return t||(ei(r,a)&&Ue(n,"has",r),Ue(n,"has",a)),r===a?e.has(r):e.has(r)||e.has(a)}function Lf(r,t=!1){return r=r.__v_raw,!t&&Ue(Jt(r),"iterate",oo),Reflect.get(r,"size",r)}function O1(r,t=!1){!t&&!Wr(r)&&!mo(r)&&(r=Jt(r));const e=Jt(this);return vv(e).has.call(e,r)||(e.add(r),na(e,"add",r,r)),this}function N1(r,t,e=!1){!e&&!Wr(t)&&!mo(t)&&(t=Jt(t));const n=Jt(this),{has:a,get:i}=vv(n);let o=a.call(n,r);o||(r=Jt(r),o=a.call(n,r));const s=i.call(n,r);return n.set(r,t),o?ei(t,s)&&na(n,"set",r,t):na(n,"add",r,t),this}function B1(r){const t=Jt(this),{has:e,get:n}=vv(t);let a=e.call(t,r);a||(r=Jt(r),a=e.call(t,r)),n&&n.call(t,r);const i=t.delete(r);return a&&na(t,"delete",r,void 0),i}function V1(){const r=Jt(this),t=r.size!==0,e=r.clear();return t&&na(r,"clear",void 0,void 0),e}function Pf(r,t){return function(n,a){const i=this,o=i.__v_raw,s=Jt(o),l=t?s0:r?c0:Ge;return!r&&Ue(s,"iterate",oo),o.forEach((u,f)=>n.call(a,l(u),l(f),i))}}function Rf(r,t,e){return function(...n){const a=this.__v_raw,i=Jt(a),o=ys(i),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=a[r](...n),f=e?s0:t?c0:Ge;return!t&&Ue(i,"iterate",l?Kg:oo),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function ba(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function oO(){const r={get(i){return Mf(this,i)},get size(){return Lf(this)},has:If,add:O1,set:N1,delete:B1,clear:V1,forEach:Pf(!1,!1)},t={get(i){return Mf(this,i,!1,!0)},get size(){return Lf(this)},has:If,add(i){return O1.call(this,i,!0)},set(i,o){return N1.call(this,i,o,!0)},delete:B1,clear:V1,forEach:Pf(!1,!0)},e={get(i){return Mf(this,i,!0)},get size(){return Lf(this,!0)},has(i){return If.call(this,i,!0)},add:ba("add"),set:ba("set"),delete:ba("delete"),clear:ba("clear"),forEach:Pf(!0,!1)},n={get(i){return Mf(this,i,!0,!0)},get size(){return Lf(this,!0)},has(i){return If.call(this,i,!0)},add:ba("add"),set:ba("set"),delete:ba("delete"),clear:ba("clear"),forEach:Pf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=Rf(i,!1,!1),e[i]=Rf(i,!0,!1),t[i]=Rf(i,!1,!0),n[i]=Rf(i,!0,!0)}),[r,e,t,n]}const[sO,lO,uO,fO]=oO();function l0(r,t){const e=t?r?fO:uO:r?lO:sO;return(n,a,i)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(Qt(e,a)&&a in n?e:n,a,i)}const cO={get:l0(!1,!1)},hO={get:l0(!1,!0)},vO={get:l0(!0,!1)};const JD=new WeakMap,tM=new WeakMap,eM=new WeakMap,pO=new WeakMap;function dO(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gO(r){return r.__v_skip||!Object.isExtensible(r)?0:dO(Vk(r))}function pv(r){return mo(r)?r:u0(r,!1,nO,cO,JD)}function rM(r){return u0(r,!1,iO,hO,tM)}function nM(r){return u0(r,!0,aO,vO,eM)}function u0(r,t,e,n,a){if(!fe(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const i=a.get(r);if(i)return i;const o=gO(r);if(o===0)return r;const s=new Proxy(r,o===2?n:e);return a.set(r,s),s}function ms(r){return mo(r)?ms(r.__v_raw):!!(r&&r.__v_isReactive)}function mo(r){return!!(r&&r.__v_isReadonly)}function Wr(r){return!!(r&&r.__v_isShallow)}function f0(r){return r?!!r.__v_raw:!1}function Jt(r){const t=r&&r.__v_raw;return t?Jt(t):r}function yO(r){return!Qt(r,"__v_skip")&&Object.isExtensible(r)&&BD(r,"__v_skip",!0),r}const Ge=r=>fe(r)?pv(r):r,c0=r=>fe(r)?nM(r):r;function We(r){return r?r.__v_isRef===!0:!1}function Cn(r){return aM(r,!1)}function mO(r){return aM(r,!0)}function aM(r,t){return We(r)?r:new _O(r,t)}class _O{constructor(t,e){this.dep=new o0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Jt(t),this._value=e?t:Ge(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Wr(t)||mo(t);t=n?t:Jt(t),ei(t,e)&&(this._rawValue=t,this._value=n?t:Ge(t),this.dep.trigger())}}function so(r){return We(r)?r.value:r}const SO={get:(r,t,e)=>t==="__v_raw"?r:so(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const a=r[t];return We(a)&&!We(e)?(a.value=e,!0):Reflect.set(r,t,e,n)}};function iM(r){return ms(r)?r:new Proxy(r,SO)}class xO{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new o0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xu-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 UD(this),!0}get value(){const t=this.dep.track();return XD(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function bO(r,t,e=!1){let n,a;return Bt(r)?n=r:(n=r.get,a=r.set),new xO(n,a,e)}const Ef={},lh=new WeakMap;let Gi;function wO(r,t=!1,e=Gi){if(e){let n=lh.get(e);n||lh.set(e,n=[]),n.push(r)}}function TO(r,t,e=le){const{immediate:n,deep:a,once:i,scheduler:o,augmentJob:s,call:l}=e,u=S=>a?S:Wr(S)||a===!1||a===0?Fa(S,1):Fa(S);let f,c,h,v,p=!1,d=!1;if(We(r)?(c=()=>r.value,p=Wr(r)):ms(r)?(c=()=>u(r),p=!0):Nt(r)?(d=!0,p=r.some(S=>ms(S)||Wr(S)),c=()=>r.map(S=>{if(We(S))return S.value;if(ms(S))return u(S);if(Bt(S))return l?l(S,2):S()})):Bt(r)?t?c=l?()=>l(r,2):r:c=()=>{if(h){ci();try{h()}finally{hi()}}const S=Gi;Gi=f;try{return l?l(r,3,[v]):r(v)}finally{Gi=S}}:c=kn,t&&a){const S=c,b=a===!0?1/0:a;c=()=>Fa(S(),b)}const g=qk(),y=()=>{f.stop(),g&&t0(g.effects,f)};if(i&&t){const S=t;t=(...b)=>{S(...b),y()}}let m=d?new Array(r.length).fill(Ef):Ef;const _=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(t){const b=f.run();if(a||p||(d?b.some((x,w)=>ei(x,m[w])):ei(b,m))){h&&h();const x=Gi;Gi=f;try{const w=[b,m===Ef?void 0:d&&m[0]===Ef?[]:m,v];l?l(t,3,w):t(...w),m=b}finally{Gi=x}}}else f.run()};return s&&s(_),f=new HD(c),f.scheduler=o?()=>o(_,!1):_,v=S=>wO(S,!1,f),h=f.onStop=()=>{const S=lh.get(f);if(S){if(l)l(S,4);else for(const b of S)b();lh.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 Fa(r,t=1/0,e){if(t<=0||!fe(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),t--,We(r))Fa(r.value,t,e);else if(Nt(r))for(let n=0;n<r.length;n++)Fa(r[n],t,e);else if(ED(r)||ys(r))r.forEach(n=>{Fa(n,t,e)});else if(ND(r)){for(const n in r)Fa(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&Fa(r[n],t,e)}return r}/**
|
||
* @vue/runtime-core v3.5.10
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function rf(r,t,e,n){try{return n?r(...n):r()}catch(a){dv(a,t,e)}}function Vn(r,t,e,n){if(Bt(r)){const a=rf(r,t,e,n);return a&&kD(a)&&a.catch(i=>{dv(i,t,e)}),a}if(Nt(r)){const a=[];for(let i=0;i<r.length;i++)a.push(Vn(r[i],t,e,n));return a}}function dv(r,t,e,n=!0){const a=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||le;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(i){ci(),rf(i,null,10,[r,l,u]),hi();return}}CO(r,e,a,n,o)}function CO(r,t,e,n=!0,a=!1){if(a)throw r;console.error(r)}let wu=!1,jg=!1;const Je=[];let Tn=0;const _s=[];let Oa=null,as=0;const oM=Promise.resolve();let h0=null;function sM(r){const t=h0||oM;return r?t.then(this?r.bind(this):r):t}function AO(r){let t=wu?Tn+1:0,e=Je.length;for(;t<e;){const n=t+e>>>1,a=Je[n],i=Tu(a);i<r||i===r&&a.flags&2?t=n+1:e=n}return t}function v0(r){if(!(r.flags&1)){const t=Tu(r),e=Je[Je.length-1];!e||!(r.flags&2)&&t>=Tu(e)?Je.push(r):Je.splice(AO(t),0,r),r.flags|=1,lM()}}function lM(){!wu&&!jg&&(jg=!0,h0=oM.then(fM))}function DO(r){Nt(r)?_s.push(...r):Oa&&r.id===-1?Oa.splice(as+1,0,r):r.flags&1||(_s.push(r),r.flags|=1),lM()}function z1(r,t,e=wu?Tn+1:0){for(;e<Je.length;e++){const n=Je[e];if(n&&n.flags&2){if(r&&n.id!==r.uid)continue;Je.splice(e,1),e--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function uM(r){if(_s.length){const t=[...new Set(_s)].sort((e,n)=>Tu(e)-Tu(n));if(_s.length=0,Oa){Oa.push(...t);return}for(Oa=t,as=0;as<Oa.length;as++){const e=Oa[as];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Oa=null,as=0}}const Tu=r=>r.id==null?r.flags&2?-1:1/0:r.id;function fM(r){jg=!1,wu=!0;try{for(Tn=0;Tn<Je.length;Tn++){const t=Je[Tn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),rf(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Tn<Je.length;Tn++){const t=Je[Tn];t&&(t.flags&=-2)}Tn=0,Je.length=0,uM(),wu=!1,h0=null,(Je.length||_s.length)&&fM()}}let nn=null,cM=null;function uh(r){const t=nn;return nn=r,cM=r&&r.type.__scopeId||null,t}function MO(r,t=nn,e){if(!t||r._n)return r;const n=(...a)=>{n._d&&Z1(-1);const i=uh(t);let o;try{o=r(...a)}finally{uh(i),n._d&&Z1(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function di(r,t,e,n){const a=r.dirs,i=t&&t.dirs;for(let o=0;o<a.length;o++){const s=a[o];i&&(s.oldValue=i[o].value);let l=s.dir[n];l&&(ci(),Vn(l,e,8,[r.el,s,r,t]),hi())}}const IO=Symbol("_vte"),LO=r=>r.__isTeleport;function p0(r,t){r.shapeFlag&6&&r.component?(r.transition=t,p0(r.component.subTree,t)):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Gs(r,t){return Bt(r)?ke({name:r.name},t,{setup:r}):r}function hM(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function Qg(r,t,e,n,a=!1){if(Nt(r)){r.forEach((p,d)=>Qg(p,t&&(Nt(t)?t[d]:t),e,n,a));return}if(Ql(n)&&!a)return;const i=n.shapeFlag&4?S0(n.component):n.el,o=a?null:i,{i:s,r:l}=r,u=t&&t.r,f=s.refs===le?s.refs={}:s.refs,c=s.setupState,h=Jt(c),v=c===le?()=>!1:p=>Qt(h,p);if(u!=null&&u!==l&&(Se(u)?(f[u]=null,v(u)&&(c[u]=null)):We(u)&&(u.value=null)),Bt(l))rf(l,s,12,[o,f]);else{const p=Se(l),d=We(l);if(p||d){const g=()=>{if(r.f){const y=p?v(l)?c[l]:f[l]:l.value;a?Nt(y)&&t0(y,i):Nt(y)?y.includes(i)||y.push(i):p?(f[l]=[i],v(l)&&(c[l]=f[l])):(l.value=[i],r.k&&(f[r.k]=l.value))}else p?(f[l]=o,v(l)&&(c[l]=o)):d&&(l.value=o,r.k&&(f[r.k]=o))};o?(g.id=-1,_r(g,e)):g()}}}const Ql=r=>!!r.type.__asyncLoader,vM=r=>r.type.__isKeepAlive;function PO(r,t){pM(r,"a",t)}function RO(r,t){pM(r,"da",t)}function pM(r,t,e=He){const n=r.__wdc||(r.__wdc=()=>{let a=e;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(gv(t,n,e),e){let a=e.parent;for(;a&&a.parent;)vM(a.parent.vnode)&&EO(n,t,e,a),a=a.parent}}function EO(r,t,e,n){const a=gv(t,r,n,!0);g0(()=>{t0(n[t],a)},e)}function gv(r,t,e=He,n=!1){if(e){const a=e[r]||(e[r]=[]),i=t.__weh||(t.__weh=(...o)=>{ci();const s=nf(e),l=Vn(t,e,r,o);return s(),hi(),l});return n?a.unshift(i):a.push(i),i}}const ma=r=>(t,e=He)=>{(!_v||r==="sp")&&gv(r,(...n)=>t(...n),e)},kO=ma("bm"),d0=ma("m"),OO=ma("bu"),NO=ma("u"),BO=ma("bum"),g0=ma("um"),VO=ma("sp"),zO=ma("rtg"),FO=ma("rtc");function GO(r,t=He){gv("ec",r,t)}const HO="components";function WO(r,t){return $O(HO,r,!0,t)||r}const UO=Symbol.for("v-ndc");function $O(r,t,e=!0,n=!1){const a=nn||He;if(a){const i=a.type;{const s=RN(i,!1);if(s&&(s===t||s===$r(t)||s===cv($r(t))))return i}const o=F1(a[r]||i[r],t)||F1(a.appContext[r],t);return!o&&n?i:o}}function F1(r,t){return r&&(r[t]||r[$r(t)]||r[cv($r(t))])}function dM(r,t,e,n){let a;const i=e,o=Nt(r);if(o||Se(r)){const s=o&&ms(r);let l=!1;s&&(l=!Wr(r),r=hv(r)),a=new Array(r.length);for(let u=0,f=r.length;u<f;u++)a[u]=t(l?Ge(r[u]):r[u],u,void 0,i)}else if(typeof r=="number"){a=new Array(r);for(let s=0;s<r;s++)a[s]=t(s+1,s,void 0,i)}else if(fe(r))if(r[Symbol.iterator])a=Array.from(r,(s,l)=>t(s,l,void 0,i));else{const s=Object.keys(r);a=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const f=s[l];a[l]=t(r[f],f,l,i)}}else a=[];return a}const Jg=r=>r?NM(r)?S0(r):Jg(r.parent):null,Jl=ke(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=>Jg(r.parent),$root:r=>Jg(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>y0(r),$forceUpdate:r=>r.f||(r.f=()=>{v0(r.update)}),$nextTick:r=>r.n||(r.n=sM.bind(r.proxy)),$watch:r=>hN.bind(r)}),pp=(r,t)=>r!==le&&!r.__isScriptSetup&&Qt(r,t),YO={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:a,props:i,accessCache:o,type:s,appContext:l}=r;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return a[t];case 4:return e[t];case 3:return i[t]}else{if(pp(n,t))return o[t]=1,n[t];if(a!==le&&Qt(a,t))return o[t]=2,a[t];if((u=r.propsOptions[0])&&Qt(u,t))return o[t]=3,i[t];if(e!==le&&Qt(e,t))return o[t]=4,e[t];ty&&(o[t]=0)}}const f=Jl[t];let c,h;if(f)return t==="$attrs"&&Ue(r.attrs,"get",""),f(r);if((c=s.__cssModules)&&(c=c[t]))return c;if(e!==le&&Qt(e,t))return o[t]=4,e[t];if(h=l.config.globalProperties,Qt(h,t))return h[t]},set({_:r},t,e){const{data:n,setupState:a,ctx:i}=r;return pp(a,t)?(a[t]=e,!0):n!==le&&Qt(n,t)?(n[t]=e,!0):Qt(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(i[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:a,propsOptions:i}},o){let s;return!!e[o]||r!==le&&Qt(r,o)||pp(t,o)||(s=i[0])&&Qt(s,o)||Qt(n,o)||Qt(Jl,o)||Qt(a.config.globalProperties,o)},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:Qt(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function G1(r){return Nt(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let ty=!0;function XO(r){const t=y0(r),e=r.proxy,n=r.ctx;ty=!1,t.beforeCreate&&H1(t.beforeCreate,r,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:p,activated:d,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:_,unmounted:S,render:b,renderTracked:x,renderTriggered:w,errorCaptured:T,serverPrefetch:C,expose:A,inheritAttrs:M,components:I,directives:L,filters:P}=t;if(u&&ZO(u,n,null),o)for(const B in o){const N=o[B];Bt(N)&&(n[B]=N.bind(e))}if(a){const B=a.call(e,e);fe(B)&&(r.data=pv(B))}if(ty=!0,i)for(const B in i){const N=i[B],F=Bt(N)?N.bind(e,e):Bt(N.get)?N.get.bind(e,e):kn,U=!Bt(N)&&Bt(N.set)?N.set.bind(e):kn,Z=we({get:F,set:U});Object.defineProperty(n,B,{enumerable:!0,configurable:!0,get:()=>Z.value,set:Q=>Z.value=Q})}if(s)for(const B in s)gM(s[B],n,e,B);if(l){const B=Bt(l)?l.call(e):l;Reflect.ownKeys(B).forEach(N=>{Vc(N,B[N])})}f&&H1(f,r,"c");function O(B,N){Nt(N)?N.forEach(F=>B(F.bind(e))):N&&B(N.bind(e))}if(O(kO,c),O(d0,h),O(OO,v),O(NO,p),O(PO,d),O(RO,g),O(GO,T),O(FO,x),O(zO,w),O(BO,m),O(g0,S),O(VO,C),Nt(A))if(A.length){const B=r.exposed||(r.exposed={});A.forEach(N=>{Object.defineProperty(B,N,{get:()=>e[N],set:F=>e[N]=F})})}else r.exposed||(r.exposed={});b&&r.render===kn&&(r.render=b),M!=null&&(r.inheritAttrs=M),I&&(r.components=I),L&&(r.directives=L),C&&hM(r)}function ZO(r,t,e=kn){Nt(r)&&(r=ey(r));for(const n in r){const a=r[n];let i;fe(a)?"default"in a?i=aa(a.from||n,a.default,!0):i=aa(a.from||n):i=aa(a),We(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function H1(r,t,e){Vn(Nt(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function gM(r,t,e,n){let a=n.includes(".")?LM(e,n):()=>e[n];if(Se(r)){const i=t[r];Bt(i)&&tu(a,i)}else if(Bt(r))tu(a,r.bind(e));else if(fe(r))if(Nt(r))r.forEach(i=>gM(i,t,e,n));else{const i=Bt(r.handler)?r.handler.bind(e):t[r.handler];Bt(i)&&tu(a,i,r)}}function y0(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=r.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!e&&!n?l=t:(l={},a.length&&a.forEach(u=>fh(l,u,o,!0)),fh(l,t,o)),fe(t)&&i.set(t,l),l}function fh(r,t,e,n=!1){const{mixins:a,extends:i}=t;i&&fh(r,i,e,!0),a&&a.forEach(o=>fh(r,o,e,!0));for(const o in t)if(!(n&&o==="expose")){const s=qO[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const qO={data:W1,props:U1,emits:U1,methods:Vl,computed:Vl,beforeCreate:Ze,created:Ze,beforeMount:Ze,mounted:Ze,beforeUpdate:Ze,updated:Ze,beforeDestroy:Ze,beforeUnmount:Ze,destroyed:Ze,unmounted:Ze,activated:Ze,deactivated:Ze,errorCaptured:Ze,serverPrefetch:Ze,components:Vl,directives:Vl,watch:jO,provide:W1,inject:KO};function W1(r,t){return t?r?function(){return ke(Bt(r)?r.call(this,this):r,Bt(t)?t.call(this,this):t)}:t:r}function KO(r,t){return Vl(ey(r),ey(t))}function ey(r){if(Nt(r)){const t={};for(let e=0;e<r.length;e++)t[r[e]]=r[e];return t}return r}function Ze(r,t){return r?[...new Set([].concat(r,t))]:t}function Vl(r,t){return r?ke(Object.create(null),r,t):t}function U1(r,t){return r?Nt(r)&&Nt(t)?[...new Set([...r,...t])]:ke(Object.create(null),G1(r),G1(t??{})):t}function jO(r,t){if(!r)return t;if(!t)return r;const e=ke(Object.create(null),r);for(const n in t)e[n]=Ze(r[n],t[n]);return e}function yM(){return{app:null,config:{isNativeTag:Nk,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 QO=0;function JO(r,t){return function(n,a=null){Bt(n)||(n=ke({},n)),a!=null&&!fe(a)&&(a=null);const i=yM(),o=new WeakSet,s=[];let l=!1;const u=i.app={_uid:QO++,_component:n,_props:a,_container:null,_context:i,_instance:null,version:kN,get config(){return i.config},set config(f){},use(f,...c){return o.has(f)||(f&&Bt(f.install)?(o.add(f),f.install(u,...c)):Bt(f)&&(o.add(f),f(u,...c))),u},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),u},component(f,c){return c?(i.components[f]=c,u):i.components[f]},directive(f,c){return c?(i.directives[f]=c,u):i.directives[f]},mount(f,c,h){if(!l){const v=u._ceVNode||tr(n,a);return v.appContext=i,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,S0(v.component)}},onUnmount(f){s.push(f)},unmount(){l&&(Vn(s,u._instance,16),r(null,u._container),delete u._container.__vue_app__)},provide(f,c){return i.provides[f]=c,u},runWithContext(f){const c=Ss;Ss=u;try{return f()}finally{Ss=c}}};return u}}let Ss=null;function Vc(r,t){if(He){let e=He.provides;const n=He.parent&&He.parent.provides;n===e&&(e=He.provides=Object.create(n)),e[r]=t}}function aa(r,t,e=!1){const n=He||nn;if(n||Ss){const a=Ss?Ss._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(a&&r in a)return a[r];if(arguments.length>1)return e&&Bt(t)?t.call(n&&n.proxy):t}}const mM={},_M=()=>Object.create(mM),SM=r=>Object.getPrototypeOf(r)===mM;function tN(r,t,e,n=!1){const a={},i=_M();r.propsDefaults=Object.create(null),xM(r,t,a,i);for(const o in r.propsOptions[0])o in a||(a[o]=void 0);e?r.props=n?a:rM(a):r.type.props?r.props=a:r.props=i,r.attrs=i}function eN(r,t,e,n){const{props:a,attrs:i,vnode:{patchFlag:o}}=r,s=Jt(a),[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(yv(r.emitsOptions,h))continue;const v=t[h];if(l)if(Qt(i,h))v!==i[h]&&(i[h]=v,u=!0);else{const p=$r(h);a[p]=ry(l,s,p,v,r,!1)}else v!==i[h]&&(i[h]=v,u=!0)}}}else{xM(r,t,a,i)&&(u=!0);let f;for(const c in s)(!t||!Qt(t,c)&&((f=Do(c))===c||!Qt(t,f)))&&(l?e&&(e[c]!==void 0||e[f]!==void 0)&&(a[c]=ry(l,s,c,void 0,r,!0)):delete a[c]);if(i!==s)for(const c in i)(!t||!Qt(t,c))&&(delete i[c],u=!0)}u&&na(r.attrs,"set","")}function xM(r,t,e,n){const[a,i]=r.propsOptions;let o=!1,s;if(t)for(let l in t){if(jl(l))continue;const u=t[l];let f;a&&Qt(a,f=$r(l))?!i||!i.includes(f)?e[f]=u:(s||(s={}))[f]=u:yv(r.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(i){const l=Jt(e),u=s||le;for(let f=0;f<i.length;f++){const c=i[f];e[c]=ry(a,l,c,u[c],r,!Qt(u,c))}}return o}function ry(r,t,e,n,a,i){const o=r[e];if(o!=null){const s=Qt(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Bt(l)){const{propsDefaults:u}=a;if(e in u)n=u[e];else{const f=nf(a);n=u[e]=l.call(null,t),f()}}else n=l;a.ce&&a.ce._setProp(e,n)}o[0]&&(i&&!s?n=!1:o[1]&&(n===""||n===Do(e))&&(n=!0))}return n}const rN=new WeakMap;function bM(r,t,e=!1){const n=e?rN:t.propsCache,a=n.get(r);if(a)return a;const i=r.props,o={},s=[];let l=!1;if(!Bt(r)){const f=c=>{l=!0;const[h,v]=bM(c,t,!0);ke(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(!i&&!l)return fe(r)&&n.set(r,gs),gs;if(Nt(i))for(let f=0;f<i.length;f++){const c=$r(i[f]);$1(c)&&(o[c]=le)}else if(i)for(const f in i){const c=$r(f);if($1(c)){const h=i[f],v=o[c]=Nt(h)||Bt(h)?{type:h}:ke({},h),p=v.type;let d=!1,g=!0;if(Nt(p))for(let y=0;y<p.length;++y){const m=p[y],_=Bt(m)&&m.name;if(_==="Boolean"){d=!0;break}else _==="String"&&(g=!1)}else d=Bt(p)&&p.name==="Boolean";v[0]=d,v[1]=g,(d||Qt(v,"default"))&&s.push(c)}}const u=[o,s];return fe(r)&&n.set(r,u),u}function $1(r){return r[0]!=="$"&&!jl(r)}const wM=r=>r[0]==="_"||r==="$stable",m0=r=>Nt(r)?r.map(Dn):[Dn(r)],nN=(r,t,e)=>{if(t._n)return t;const n=MO((...a)=>m0(t(...a)),e);return n._c=!1,n},TM=(r,t,e)=>{const n=r._ctx;for(const a in r){if(wM(a))continue;const i=r[a];if(Bt(i))t[a]=nN(a,i,n);else if(i!=null){const o=m0(i);t[a]=()=>o}}},CM=(r,t)=>{const e=m0(t);r.slots.default=()=>e},AM=(r,t,e)=>{for(const n in t)(e||n!=="_")&&(r[n]=t[n])},aN=(r,t,e)=>{const n=r.slots=_M();if(r.vnode.shapeFlag&32){const a=t._;a?(AM(n,t,e),e&&BD(n,"_",a,!0)):TM(t,n)}else t&&CM(r,t)},iN=(r,t,e)=>{const{vnode:n,slots:a}=r;let i=!0,o=le;if(n.shapeFlag&32){const s=t._;s?e&&s===1?i=!1:AM(a,t,e):(i=!t.$stable,TM(t,a)),o=t}else t&&(CM(r,t),o={default:1});if(i)for(const s in a)!wM(s)&&o[s]==null&&delete a[s]},_r=_N;function oN(r){return sN(r)}function sN(r,t){const e=VD();e.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=kn,insertStaticContent:p}=r,d=(E,k,z,q=null,Y=null,tt=null,ot=void 0,lt=null,at=!!k.dynamicChildren)=>{if(E===k)return;E&&!sl(E,k)&&(q=G(E),Q(E,Y,tt,!0),E=null),k.patchFlag===-2&&(at=!1,k.dynamicChildren=null);const{type:rt,ref:At,shapeFlag:pt}=k;switch(rt){case mv:g(E,k,z,q);break;case _o:y(E,k,z,q);break;case yp:E==null&&m(k,z,q,ot);break;case br:I(E,k,z,q,Y,tt,ot,lt,at);break;default:pt&1?b(E,k,z,q,Y,tt,ot,lt,at):pt&6?L(E,k,z,q,Y,tt,ot,lt,at):(pt&64||pt&128)&&rt.process(E,k,z,q,Y,tt,ot,lt,at,j)}At!=null&&Y&&Qg(At,E&&E.ref,tt,k||E,!k)},g=(E,k,z,q)=>{if(E==null)n(k.el=s(k.children),z,q);else{const Y=k.el=E.el;k.children!==E.children&&u(Y,k.children)}},y=(E,k,z,q)=>{E==null?n(k.el=l(k.children||""),z,q):k.el=E.el},m=(E,k,z,q)=>{[E.el,E.anchor]=p(E.children,k,z,q,E.el,E.anchor)},_=({el:E,anchor:k},z,q)=>{let Y;for(;E&&E!==k;)Y=h(E),n(E,z,q),E=Y;n(k,z,q)},S=({el:E,anchor:k})=>{let z;for(;E&&E!==k;)z=h(E),a(E),E=z;a(k)},b=(E,k,z,q,Y,tt,ot,lt,at)=>{k.type==="svg"?ot="svg":k.type==="math"&&(ot="mathml"),E==null?x(k,z,q,Y,tt,ot,lt,at):C(E,k,Y,tt,ot,lt,at)},x=(E,k,z,q,Y,tt,ot,lt)=>{let at,rt;const{props:At,shapeFlag:pt,transition:wt,dirs:Et}=E;if(at=E.el=o(E.type,tt,At&&At.is,At),pt&8?f(at,E.children):pt&16&&T(E.children,at,null,q,Y,dp(E,tt),ot,lt),Et&&di(E,null,q,"created"),w(at,E,E.scopeId,ot,q),At){for(const oe in At)oe!=="value"&&!jl(oe)&&i(at,oe,null,At[oe],tt,q);"value"in At&&i(at,"value",null,At.value,tt),(rt=At.onVnodeBeforeMount)&&gn(rt,q,E)}Et&&di(E,null,q,"beforeMount");const $t=lN(Y,wt);$t&&wt.beforeEnter(at),n(at,k,z),((rt=At&&At.onVnodeMounted)||$t||Et)&&_r(()=>{rt&&gn(rt,q,E),$t&&wt.enter(at),Et&&di(E,null,q,"mounted")},Y)},w=(E,k,z,q,Y)=>{if(z&&v(E,z),q)for(let tt=0;tt<q.length;tt++)v(E,q[tt]);if(Y){let tt=Y.subTree;if(k===tt||RM(tt.type)&&(tt.ssContent===k||tt.ssFallback===k)){const ot=Y.vnode;w(E,ot,ot.scopeId,ot.slotScopeIds,Y.parent)}}},T=(E,k,z,q,Y,tt,ot,lt,at=0)=>{for(let rt=at;rt<E.length;rt++){const At=E[rt]=lt?Na(E[rt]):Dn(E[rt]);d(null,At,k,z,q,Y,tt,ot,lt)}},C=(E,k,z,q,Y,tt,ot)=>{const lt=k.el=E.el;let{patchFlag:at,dynamicChildren:rt,dirs:At}=k;at|=E.patchFlag&16;const pt=E.props||le,wt=k.props||le;let Et;if(z&&gi(z,!1),(Et=wt.onVnodeBeforeUpdate)&&gn(Et,z,k,E),At&&di(k,E,z,"beforeUpdate"),z&&gi(z,!0),(pt.innerHTML&&wt.innerHTML==null||pt.textContent&&wt.textContent==null)&&f(lt,""),rt?A(E.dynamicChildren,rt,lt,z,q,dp(k,Y),tt):ot||N(E,k,lt,null,z,q,dp(k,Y),tt,!1),at>0){if(at&16)M(lt,pt,wt,z,Y);else if(at&2&&pt.class!==wt.class&&i(lt,"class",null,wt.class,Y),at&4&&i(lt,"style",pt.style,wt.style,Y),at&8){const $t=k.dynamicProps;for(let oe=0;oe<$t.length;oe++){const te=$t[oe],dr=pt[te],Be=wt[te];(Be!==dr||te==="value")&&i(lt,te,dr,Be,Y,z)}}at&1&&E.children!==k.children&&f(lt,k.children)}else!ot&&rt==null&&M(lt,pt,wt,z,Y);((Et=wt.onVnodeUpdated)||At)&&_r(()=>{Et&&gn(Et,z,k,E),At&&di(k,E,z,"updated")},q)},A=(E,k,z,q,Y,tt,ot)=>{for(let lt=0;lt<k.length;lt++){const at=E[lt],rt=k[lt],At=at.el&&(at.type===br||!sl(at,rt)||at.shapeFlag&70)?c(at.el):z;d(at,rt,At,null,q,Y,tt,ot,!0)}},M=(E,k,z,q,Y)=>{if(k!==z){if(k!==le)for(const tt in k)!jl(tt)&&!(tt in z)&&i(E,tt,k[tt],null,Y,q);for(const tt in z){if(jl(tt))continue;const ot=z[tt],lt=k[tt];ot!==lt&&tt!=="value"&&i(E,tt,lt,ot,Y,q)}"value"in z&&i(E,"value",k.value,z.value,Y)}},I=(E,k,z,q,Y,tt,ot,lt,at)=>{const rt=k.el=E?E.el:s(""),At=k.anchor=E?E.anchor:s("");let{patchFlag:pt,dynamicChildren:wt,slotScopeIds:Et}=k;Et&&(lt=lt?lt.concat(Et):Et),E==null?(n(rt,z,q),n(At,z,q),T(k.children||[],z,At,Y,tt,ot,lt,at)):pt>0&&pt&64&&wt&&E.dynamicChildren?(A(E.dynamicChildren,wt,z,Y,tt,ot,lt),(k.key!=null||Y&&k===Y.subTree)&&DM(E,k,!0)):N(E,k,z,At,Y,tt,ot,lt,at)},L=(E,k,z,q,Y,tt,ot,lt,at)=>{k.slotScopeIds=lt,E==null?k.shapeFlag&512?Y.ctx.activate(k,z,q,ot,at):P(k,z,q,Y,tt,ot,at):R(E,k,at)},P=(E,k,z,q,Y,tt,ot)=>{const lt=E.component=DN(E,q,Y);if(vM(E)&&(lt.ctx.renderer=j),MN(lt,!1,ot),lt.asyncDep){if(Y&&Y.registerDep(lt,O,ot),!E.el){const at=lt.subTree=tr(_o);y(null,at,k,z)}}else O(lt,E,k,z,Y,tt,ot)},R=(E,k,z)=>{const q=k.component=E.component;if(yN(E,k,z))if(q.asyncDep&&!q.asyncResolved){B(q,k,z);return}else q.next=k,q.update();else k.el=E.el,q.vnode=k},O=(E,k,z,q,Y,tt,ot)=>{const lt=()=>{if(E.isMounted){let{next:pt,bu:wt,u:Et,parent:$t,vnode:oe}=E;{const gr=MM(E);if(gr){pt&&(pt.el=oe.el,B(E,pt,ot)),gr.asyncDep.then(()=>{E.isUnmounted||lt()});return}}let te=pt,dr;gi(E,!1),pt?(pt.el=oe.el,B(E,pt,ot)):pt=oe,wt&&up(wt),(dr=pt.props&&pt.props.onVnodeBeforeUpdate)&&gn(dr,$t,pt,oe),gi(E,!0);const Be=gp(E),Kr=E.subTree;E.subTree=Be,d(Kr,Be,c(Kr.el),G(Kr),E,Y,tt),pt.el=Be.el,te===null&&mN(E,Be.el),Et&&_r(Et,Y),(dr=pt.props&&pt.props.onVnodeUpdated)&&_r(()=>gn(dr,$t,pt,oe),Y)}else{let pt;const{el:wt,props:Et}=k,{bm:$t,m:oe,parent:te,root:dr,type:Be}=E,Kr=Ql(k);if(gi(E,!1),$t&&up($t),!Kr&&(pt=Et&&Et.onVnodeBeforeMount)&&gn(pt,te,k),gi(E,!0),wt&&ct){const gr=()=>{E.subTree=gp(E),ct(wt,E.subTree,E,Y,null)};Kr&&Be.__asyncHydrate?Be.__asyncHydrate(wt,E,gr):gr()}else{dr.ce&&dr.ce._injectChildStyle(Be);const gr=E.subTree=gp(E);d(null,gr,z,q,E,Y,tt),k.el=gr.el}if(oe&&_r(oe,Y),!Kr&&(pt=Et&&Et.onVnodeMounted)){const gr=k;_r(()=>gn(pt,te,gr),Y)}(k.shapeFlag&256||te&&Ql(te.vnode)&&te.vnode.shapeFlag&256)&&E.a&&_r(E.a,Y),E.isMounted=!0,k=z=q=null}};E.scope.on();const at=E.effect=new HD(lt);E.scope.off();const rt=E.update=at.run.bind(at),At=E.job=at.runIfDirty.bind(at);At.i=E,At.id=E.uid,at.scheduler=()=>v0(At),gi(E,!0),rt()},B=(E,k,z)=>{k.component=E;const q=E.vnode.props;E.vnode=k,E.next=null,eN(E,k.props,q,z),iN(E,k.children,z),ci(),z1(E),hi()},N=(E,k,z,q,Y,tt,ot,lt,at=!1)=>{const rt=E&&E.children,At=E?E.shapeFlag:0,pt=k.children,{patchFlag:wt,shapeFlag:Et}=k;if(wt>0){if(wt&128){U(rt,pt,z,q,Y,tt,ot,lt,at);return}else if(wt&256){F(rt,pt,z,q,Y,tt,ot,lt,at);return}}Et&8?(At&16&&xt(rt,Y,tt),pt!==rt&&f(z,pt)):At&16?Et&16?U(rt,pt,z,q,Y,tt,ot,lt,at):xt(rt,Y,tt,!0):(At&8&&f(z,""),Et&16&&T(pt,z,q,Y,tt,ot,lt,at))},F=(E,k,z,q,Y,tt,ot,lt,at)=>{E=E||gs,k=k||gs;const rt=E.length,At=k.length,pt=Math.min(rt,At);let wt;for(wt=0;wt<pt;wt++){const Et=k[wt]=at?Na(k[wt]):Dn(k[wt]);d(E[wt],Et,z,null,Y,tt,ot,lt,at)}rt>At?xt(E,Y,tt,!0,!1,pt):T(k,z,q,Y,tt,ot,lt,at,pt)},U=(E,k,z,q,Y,tt,ot,lt,at)=>{let rt=0;const At=k.length;let pt=E.length-1,wt=At-1;for(;rt<=pt&&rt<=wt;){const Et=E[rt],$t=k[rt]=at?Na(k[rt]):Dn(k[rt]);if(sl(Et,$t))d(Et,$t,z,null,Y,tt,ot,lt,at);else break;rt++}for(;rt<=pt&&rt<=wt;){const Et=E[pt],$t=k[wt]=at?Na(k[wt]):Dn(k[wt]);if(sl(Et,$t))d(Et,$t,z,null,Y,tt,ot,lt,at);else break;pt--,wt--}if(rt>pt){if(rt<=wt){const Et=wt+1,$t=Et<At?k[Et].el:q;for(;rt<=wt;)d(null,k[rt]=at?Na(k[rt]):Dn(k[rt]),z,$t,Y,tt,ot,lt,at),rt++}}else if(rt>wt)for(;rt<=pt;)Q(E[rt],Y,tt,!0),rt++;else{const Et=rt,$t=rt,oe=new Map;for(rt=$t;rt<=wt;rt++){const yr=k[rt]=at?Na(k[rt]):Dn(k[rt]);yr.key!=null&&oe.set(yr.key,rt)}let te,dr=0;const Be=wt-$t+1;let Kr=!1,gr=0;const il=new Array(Be);for(rt=0;rt<Be;rt++)il[rt]=0;for(rt=Et;rt<=pt;rt++){const yr=E[rt];if(dr>=Be){Q(yr,Y,tt,!0);continue}let dn;if(yr.key!=null)dn=oe.get(yr.key);else for(te=$t;te<=wt;te++)if(il[te-$t]===0&&sl(yr,k[te])){dn=te;break}dn===void 0?Q(yr,Y,tt,!0):(il[dn-$t]=rt+1,dn>=gr?gr=dn:Kr=!0,d(yr,k[dn],z,null,Y,tt,ot,lt,at),dr++)}const L1=Kr?uN(il):gs;for(te=L1.length-1,rt=Be-1;rt>=0;rt--){const yr=$t+rt,dn=k[yr],P1=yr+1<At?k[yr+1].el:q;il[rt]===0?d(null,dn,z,P1,Y,tt,ot,lt,at):Kr&&(te<0||rt!==L1[te]?Z(dn,z,P1,2):te--)}}},Z=(E,k,z,q,Y=null)=>{const{el:tt,type:ot,transition:lt,children:at,shapeFlag:rt}=E;if(rt&6){Z(E.component.subTree,k,z,q);return}if(rt&128){E.suspense.move(k,z,q);return}if(rt&64){ot.move(E,k,z,j);return}if(ot===br){n(tt,k,z);for(let pt=0;pt<at.length;pt++)Z(at[pt],k,z,q);n(E.anchor,k,z);return}if(ot===yp){_(E,k,z);return}if(q!==2&&rt&1&<)if(q===0)lt.beforeEnter(tt),n(tt,k,z),_r(()=>lt.enter(tt),Y);else{const{leave:pt,delayLeave:wt,afterLeave:Et}=lt,$t=()=>n(tt,k,z),oe=()=>{pt(tt,()=>{$t(),Et&&Et()})};wt?wt(tt,$t,oe):oe()}else n(tt,k,z)},Q=(E,k,z,q=!1,Y=!1)=>{const{type:tt,props:ot,ref:lt,children:at,dynamicChildren:rt,shapeFlag:At,patchFlag:pt,dirs:wt,cacheIndex:Et}=E;if(pt===-2&&(Y=!1),lt!=null&&Qg(lt,null,z,E,!0),Et!=null&&(k.renderCache[Et]=void 0),At&256){k.ctx.deactivate(E);return}const $t=At&1&&wt,oe=!Ql(E);let te;if(oe&&(te=ot&&ot.onVnodeBeforeUnmount)&&gn(te,k,E),At&6)Tt(E.component,z,q);else{if(At&128){E.suspense.unmount(z,q);return}$t&&di(E,null,k,"beforeUnmount"),At&64?E.type.remove(E,k,z,j,q):rt&&!rt.hasOnce&&(tt!==br||pt>0&&pt&64)?xt(rt,k,z,!1,!0):(tt===br&&pt&384||!Y&&At&16)&&xt(at,k,z),q&&ft(E)}(oe&&(te=ot&&ot.onVnodeUnmounted)||$t)&&_r(()=>{te&&gn(te,k,E),$t&&di(E,null,k,"unmounted")},z)},ft=E=>{const{type:k,el:z,anchor:q,transition:Y}=E;if(k===br){ht(z,q);return}if(k===yp){S(E);return}const tt=()=>{a(z),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(E.shapeFlag&1&&Y&&!Y.persisted){const{leave:ot,delayLeave:lt}=Y,at=()=>ot(z,tt);lt?lt(E.el,tt,at):at()}else tt()},ht=(E,k)=>{let z;for(;E!==k;)z=h(E),a(E),E=z;a(k)},Tt=(E,k,z)=>{const{bum:q,scope:Y,job:tt,subTree:ot,um:lt,m:at,a:rt}=E;Y1(at),Y1(rt),q&&up(q),Y.stop(),tt&&(tt.flags|=8,Q(ot,E,k,z)),lt&&_r(lt,k),_r(()=>{E.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},xt=(E,k,z,q=!1,Y=!1,tt=0)=>{for(let ot=tt;ot<E.length;ot++)Q(E[ot],k,z,q,Y)},G=E=>{if(E.shapeFlag&6)return G(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const k=h(E.anchor||E.el),z=k&&k[IO];return z?h(z):k};let $=!1;const K=(E,k,z)=>{E==null?k._vnode&&Q(k._vnode,null,null,!0):d(k._vnode||null,E,k,null,null,null,z),k._vnode=E,$||($=!0,z1(),uM(),$=!1)},j={p:d,um:Q,m:Z,r:ft,mt:P,mc:T,pc:N,pbc:A,n:G,o:r};let J,ct;return{render:K,hydrate:J,createApp:JO(K,J)}}function dp({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 gi({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function lN(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function DM(r,t,e=!1){const n=r.children,a=t.children;if(Nt(n)&&Nt(a))for(let i=0;i<n.length;i++){const o=n[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=Na(a[i]),s.el=o.el),!e&&s.patchFlag!==-2&&DM(o,s)),s.type===mv&&(s.el=o.el)}}function uN(r){const t=r.slice(),e=[0];let n,a,i,o,s;const l=r.length;for(n=0;n<l;n++){const u=r[n];if(u!==0){if(a=e[e.length-1],r[a]<u){t[n]=a,e.push(n);continue}for(i=0,o=e.length-1;i<o;)s=i+o>>1,r[e[s]]<u?i=s+1:o=s;u<r[e[i]]&&(i>0&&(t[n]=e[i-1]),e[i]=n)}}for(i=e.length,o=e[i-1];i-- >0;)e[i]=o,o=t[o];return e}function MM(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:MM(t)}function Y1(r){if(r)for(let t=0;t<r.length;t++)r[t].flags|=8}const fN=Symbol.for("v-scx"),cN=()=>aa(fN);function tu(r,t,e){return IM(r,t,e)}function IM(r,t,e=le){const{immediate:n,deep:a,flush:i,once:o}=e,s=ke({},e);let l;if(_v)if(i==="sync"){const h=cN();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||n)s.once=!0;else{const h=()=>{};return h.stop=kn,h.resume=kn,h.pause=kn,h}const u=He;s.call=(h,v,p)=>Vn(h,u,v,p);let f=!1;i==="post"?s.scheduler=h=>{_r(h,u&&u.suspense)}:i!=="sync"&&(f=!0,s.scheduler=(h,v)=>{v?h():v0(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=TO(r,t,s);return l&&l.push(c),c}function hN(r,t,e){const n=this.proxy,a=Se(r)?r.includes(".")?LM(n,r):()=>n[r]:r.bind(n,n);let i;Bt(t)?i=t:(i=t.handler,e=t);const o=nf(this),s=IM(a,i.bind(n),e);return o(),s}function LM(r,t){const e=t.split(".");return()=>{let n=r;for(let a=0;a<e.length&&n;a++)n=n[e[a]];return n}}const vN=(r,t)=>t==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${$r(t)}Modifiers`]||r[`${Do(t)}Modifiers`];function pN(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||le;let a=e;const i=t.startsWith("update:"),o=i&&vN(n,t.slice(7));o&&(o.trim&&(a=e.map(f=>Se(f)?f.trim():f)),o.number&&(a=e.map(Gk)));let s,l=n[s=lp(t)]||n[s=lp($r(t))];!l&&i&&(l=n[s=lp(Do(t))]),l&&Vn(l,r,6,a);const u=n[s+"Once"];if(u){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,Vn(u,r,6,a)}}function PM(r,t,e=!1){const n=t.emitsCache,a=n.get(r);if(a!==void 0)return a;const i=r.emits;let o={},s=!1;if(!Bt(r)){const l=u=>{const f=PM(u,t,!0);f&&(s=!0,ke(o,f))};!e&&t.mixins.length&&t.mixins.forEach(l),r.extends&&l(r.extends),r.mixins&&r.mixins.forEach(l)}return!i&&!s?(fe(r)&&n.set(r,null),null):(Nt(i)?i.forEach(l=>o[l]=null):ke(o,i),fe(r)&&n.set(r,o),o)}function yv(r,t){return!r||!lv(t)?!1:(t=t.slice(2).replace(/Once$/,""),Qt(r,t[0].toLowerCase()+t.slice(1))||Qt(r,Do(t))||Qt(r,t))}function gp(r){const{type:t,vnode:e,proxy:n,withProxy:a,propsOptions:[i],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:v,ctx:p,inheritAttrs:d}=r,g=uh(r);let y,m;try{if(e.shapeFlag&4){const S=a||n,b=S;y=Dn(u.call(b,S,f,c,v,h,p)),m=s}else{const S=t;y=Dn(S.length>1?S(c,{attrs:s,slots:o,emit:l}):S(c,null)),m=t.props?s:dN(s)}}catch(S){eu.length=0,dv(S,r,1),y=tr(_o)}let _=y;if(m&&d!==!1){const S=Object.keys(m),{shapeFlag:b}=_;S.length&&b&7&&(i&&S.some(Jm)&&(m=gN(m,i)),_=Ds(_,m,!1,!0))}return e.dirs&&(_=Ds(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&p0(_,e.transition),y=_,uh(g),y}const dN=r=>{let t;for(const e in r)(e==="class"||e==="style"||lv(e))&&((t||(t={}))[e]=r[e]);return t},gN=(r,t)=>{const e={};for(const n in r)(!Jm(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function yN(r,t,e){const{props:n,children:a,component:i}=r,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?X1(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;c<f.length;c++){const h=f[c];if(o[h]!==n[h]&&!yv(u,h))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?X1(n,o,u):!0:!!o;return!1}function X1(r,t,e){const n=Object.keys(t);if(n.length!==Object.keys(r).length)return!0;for(let a=0;a<n.length;a++){const i=n[a];if(t[i]!==r[i]&&!yv(e,i))return!0}return!1}function mN({vnode:r,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===r&&(n.el=r.el),n===r)(r=t.vnode).el=e,t=t.parent;else break}}const RM=r=>r.__isSuspense;function _N(r,t){t&&t.pendingBranch?Nt(r)?t.effects.push(...r):t.effects.push(r):DO(r)}const br=Symbol.for("v-fgt"),mv=Symbol.for("v-txt"),_o=Symbol.for("v-cmt"),yp=Symbol.for("v-stc"),eu=[];let Tr=null;function On(r=!1){eu.push(Tr=r?null:[])}function SN(){eu.pop(),Tr=eu[eu.length-1]||null}let Cu=1;function Z1(r){Cu+=r,r<0&&Tr&&(Tr.hasOnce=!0)}function EM(r){return r.dynamicChildren=Cu>0?Tr||gs:null,SN(),Cu>0&&Tr&&Tr.push(r),r}function Ka(r,t,e,n,a,i){return EM(Yt(r,t,e,n,a,i,!0))}function kM(r,t,e,n,a){return EM(tr(r,t,e,n,a,!0))}function ch(r){return r?r.__v_isVNode===!0:!1}function sl(r,t){return r.type===t.type&&r.key===t.key}const OM=({key:r})=>r??null,zc=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?Se(r)||We(r)||Bt(r)?{i:nn,r,k:t,f:!!e}:r:null);function Yt(r,t=null,e=null,n=0,a=null,i=r===br?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&OM(t),ref:t&&zc(t),scopeId:cM,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:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:nn};return s?(_0(l,e),i&128&&r.normalize(l)):e&&(l.shapeFlag|=Se(e)?8:16),Cu>0&&!o&&Tr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Tr.push(l),l}const tr=xN;function xN(r,t=null,e=null,n=0,a=null,i=!1){if((!r||r===UO)&&(r=_o),ch(r)){const s=Ds(r,t,!0);return e&&_0(s,e),Cu>0&&!i&&Tr&&(s.shapeFlag&6?Tr[Tr.indexOf(r)]=s:Tr.push(s)),s.patchFlag=-2,s}if(EN(r)&&(r=r.__vccOpts),t){t=bN(t);let{class:s,style:l}=t;s&&!Se(s)&&(t.class=r0(s)),fe(l)&&(f0(l)&&!Nt(l)&&(l=ke({},l)),t.style=Su(l))}const o=Se(r)?1:RM(r)?128:LO(r)?64:fe(r)?4:Bt(r)?2:0;return Yt(r,t,e,n,a,o,i,!0)}function bN(r){return r?f0(r)||SM(r)?ke({},r):r:null}function Ds(r,t,e=!1,n=!1){const{props:a,ref:i,patchFlag:o,children:s,transition:l}=r,u=t?TN(a||{},t):a,f={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&OM(u),ref:t&&t.ref?e&&i?Nt(i)?i.concat(zc(t)):[i,zc(t)]:zc(t):i,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!==br?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&&Ds(r.ssContent),ssFallback:r.ssFallback&&Ds(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&n&&p0(f,l.clone(f)),f}function ny(r=" ",t=0){return tr(mv,null,r,t)}function wN(r="",t=!1){return t?(On(),kM(_o,null,r)):tr(_o,null,r)}function Dn(r){return r==null||typeof r=="boolean"?tr(_o):Nt(r)?tr(br,null,r.slice()):ch(r)?Na(r):tr(mv,null,String(r))}function Na(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Ds(r)}function _0(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(Nt(t))e=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),_0(r,a()),a._c&&(a._d=!0));return}else{e=32;const a=t._;!a&&!SM(t)?t._ctx=nn:a===3&&nn&&(nn.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else Bt(t)?(t={default:t,_ctx:nn},e=32):(t=String(t),n&64?(e=16,t=[ny(t)]):e=8);r.children=t,r.shapeFlag|=e}function TN(...r){const t={};for(let e=0;e<r.length;e++){const n=r[e];for(const a in n)if(a==="class")t.class!==n.class&&(t.class=r0([t.class,n.class]));else if(a==="style")t.style=Su([t.style,n.style]);else if(lv(a)){const i=t[a],o=n[a];o&&i!==o&&!(Nt(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=n[a])}return t}function gn(r,t,e,n=null){Vn(r,t,7,[e,n])}const CN=yM();let AN=0;function DN(r,t,e){const n=r.type,a=(t?t.appContext:r.appContext)||CN,i={uid:AN++,vnode:r,type:n,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Zk(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bM(n,a),emitsOptions:PM(n,a),emit:null,emitted:null,propsDefaults:le,inheritAttrs:n.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=pN.bind(null,i),r.ce&&r.ce(i),i}let He=null,hh,ay;{const r=VD(),t=(e,n)=>{let a;return(a=r[e])||(a=r[e]=[]),a.push(n),i=>{a.length>1?a.forEach(o=>o(i)):a[0](i)}};hh=t("__VUE_INSTANCE_SETTERS__",e=>He=e),ay=t("__VUE_SSR_SETTERS__",e=>_v=e)}const nf=r=>{const t=He;return hh(r),r.scope.on(),()=>{r.scope.off(),hh(t)}},q1=()=>{He&&He.scope.off(),hh(null)};function NM(r){return r.vnode.shapeFlag&4}let _v=!1;function MN(r,t=!1,e=!1){t&&ay(t);const{props:n,children:a}=r.vnode,i=NM(r);tN(r,n,i,t),aN(r,a,e);const o=i?IN(r,t):void 0;return t&&ay(!1),o}function IN(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,YO);const{setup:n}=e;if(n){const a=r.setupContext=n.length>1?PN(r):null,i=nf(r);ci();const o=rf(n,r,0,[r.props,a]);if(hi(),i(),kD(o)){if(Ql(r)||hM(r),o.then(q1,q1),t)return o.then(s=>{K1(r,s,t)}).catch(s=>{dv(s,r,0)});r.asyncDep=o}else K1(r,o,t)}else BM(r,t)}function K1(r,t,e){Bt(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:fe(t)&&(r.setupState=iM(t)),BM(r,e)}let j1;function BM(r,t,e){const n=r.type;if(!r.render){if(!t&&j1&&!n.render){const a=n.template||y0(r).template;if(a){const{isCustomElement:i,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:l}=n,u=ke(ke({isCustomElement:i,delimiters:s},o),l);n.render=j1(a,u)}}r.render=n.render||kn}{const a=nf(r);ci();try{XO(r)}finally{hi(),a()}}}const LN={get(r,t){return Ue(r,"get",""),r[t]}};function PN(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,LN),slots:r.slots,emit:r.emit,expose:t}}function S0(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(iM(yO(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in Jl)return Jl[e](r)},has(t,e){return e in t||e in Jl}})):r.proxy}function RN(r,t=!0){return Bt(r)?r.displayName||r.name:r.name||t&&r.__name}function EN(r){return Bt(r)&&"__vccOpts"in r}const we=(r,t)=>bO(r,t,_v);function VM(r,t,e){const n=arguments.length;return n===2?fe(t)&&!Nt(t)?ch(t)?tr(r,null,[t]):tr(r,t):tr(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&ch(e)&&(e=[e]),tr(r,t,e))}const kN="3.5.10";/**
|
||
* @vue/runtime-dom v3.5.10
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let iy;const Q1=typeof window<"u"&&window.trustedTypes;if(Q1)try{iy=Q1.createPolicy("vue",{createHTML:r=>r})}catch{}const zM=iy?r=>iy.createHTML(r):r=>r,ON="http://www.w3.org/2000/svg",NN="http://www.w3.org/1998/Math/MathML",Qn=typeof document<"u"?document:null,J1=Qn&&Qn.createElement("template"),BN={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 a=t==="svg"?Qn.createElementNS(ON,r):t==="mathml"?Qn.createElementNS(NN,r):e?Qn.createElement(r,{is:e}):Qn.createElement(r);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},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,a,i){const o=e?e.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),e),!(a===i||!(a=a.nextSibling)););else{J1.innerHTML=zM(n==="svg"?`<svg>${r}</svg>`:n==="mathml"?`<math>${r}</math>`:r);const s=J1.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]}},VN=Symbol("_vtc");function zN(r,t,e){const n=r[VN];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const tS=Symbol("_vod"),FN=Symbol("_vsh"),GN=Symbol(""),HN=/(^|;)\s*display\s*:/;function WN(r,t,e){const n=r.style,a=Se(e);let i=!1;if(e&&!a){if(t)if(Se(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();e[s]==null&&Fc(n,s,"")}else for(const o in t)e[o]==null&&Fc(n,o,"");for(const o in e)o==="display"&&(i=!0),Fc(n,o,e[o])}else if(a){if(t!==e){const o=n[GN];o&&(e+=";"+o),n.cssText=e,i=HN.test(e)}}else t&&r.removeAttribute("style");tS in r&&(r[tS]=i?n.display:"",r[FN]&&(n.display="none"))}const eS=/\s*!important$/;function Fc(r,t,e){if(Nt(e))e.forEach(n=>Fc(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=UN(r,t);eS.test(e)?r.setProperty(Do(n),e.replace(eS,""),"important"):r[n]=e}}const rS=["Webkit","Moz","ms"],mp={};function UN(r,t){const e=mp[t];if(e)return e;let n=$r(t);if(n!=="filter"&&n in r)return mp[t]=n;n=cv(n);for(let a=0;a<rS.length;a++){const i=rS[a]+n;if(i in r)return mp[t]=i}return t}const nS="http://www.w3.org/1999/xlink";function aS(r,t,e,n,a,i=Xk(t)){n&&t.startsWith("xlink:")?e==null?r.removeAttributeNS(nS,t.slice(6,t.length)):r.setAttributeNS(nS,t,e):e==null||i&&!zD(e)?r.removeAttribute(t):r.setAttribute(t,i?"":fi(e)?String(e):e)}function iS(r,t,e,n){if(t==="innerHTML"||t==="textContent"){e!=null&&(r[t]=t==="innerHTML"?zM(e):e);return}const a=r.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const o=a==="OPTION"?r.getAttribute("value")||"":r.value,s=e==null?r.type==="checkbox"?"on":"":String(e);(o!==s||!("_value"in r))&&(r.value=s),e==null&&r.removeAttribute(t),r._value=e;return}let i=!1;if(e===""||e==null){const o=typeof r[t];o==="boolean"?e=zD(e):e==null&&o==="string"?(e="",i=!0):o==="number"&&(e=0,i=!0)}try{r[t]=e}catch{}i&&r.removeAttribute(t)}function $N(r,t,e,n){r.addEventListener(t,e,n)}function YN(r,t,e,n){r.removeEventListener(t,e,n)}const oS=Symbol("_vei");function XN(r,t,e,n,a=null){const i=r[oS]||(r[oS]={}),o=i[t];if(n&&o)o.value=n;else{const[s,l]=ZN(t);if(n){const u=i[t]=jN(n,a);$N(r,s,u,l)}else o&&(YN(r,s,o,l),i[t]=void 0)}}const sS=/(?:Once|Passive|Capture)$/;function ZN(r){let t;if(sS.test(r)){t={};let n;for(;n=r.match(sS);)r=r.slice(0,r.length-n[0].length),t[n[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):Do(r.slice(2)),t]}let _p=0;const qN=Promise.resolve(),KN=()=>_p||(qN.then(()=>_p=0),_p=Date.now());function jN(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Vn(QN(n,e.value),t,5,[n])};return e.value=r,e.attached=KN(),e}function QN(r,t){if(Nt(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const lS=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,JN=(r,t,e,n,a,i)=>{const o=a==="svg";t==="class"?zN(r,n,o):t==="style"?WN(r,e,n):lv(t)?Jm(t)||XN(r,t,e,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tB(r,t,n,o))?(iS(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&aS(r,t,n,o,i,t!=="value")):r._isVueCE&&(/[A-Z]/.test(t)||!Se(n))?iS(r,$r(t),n):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),aS(r,t,n,o))};function tB(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&lS(t)&&Bt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return lS(t)&&Se(e)?!1:t in r}const eB=ke({patchProp:JN},BN);let uS;function rB(){return uS||(uS=oN(eB))}const nB=(...r)=>{const t=rB().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=iB(n);if(!a)return;const i=t._component;!Bt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const o=e(a,!1,aB(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function aB(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function iB(r){return Se(r)?document.querySelector(r):r}const oB=Gs({__name:"App",setup(r){console.log("App.vue");const t=new Date().getFullYear();return(e,n)=>{const a=WO("router-view");return On(),Ka(br,null,[n[2]||(n[2]=Yt("h1",{style:{"text-align":"center"}},"Server Status",-1)),tr(a),Yt("footer",null,[ny(" © Copyright 2024-"+Sr(so(t))+" ",1),n[0]||(n[0]=Yt("a",{href:"https://sfkm.me",target:"_blank"},"snowykami",-1)),n[1]||(n[1]=ny(" All Rights Reserved "))])],64)}}}),af=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},sB=af(oB,[["__scopeId","data-v-13414ec4"]]);/*!
|
||
* vue-router v4.4.5
|
||
* (c) 2024 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const is=typeof document<"u";function FM(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function lB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&FM(r.default)}const ee=Object.assign;function Sp(r,t){const e={};for(const n in t){const a=t[n];e[n]=fn(a)?a.map(r):r(a)}return e}const ru=()=>{},fn=Array.isArray,GM=/#/g,uB=/&/g,fB=/\//g,cB=/=/g,hB=/\?/g,HM=/\+/g,vB=/%5B/g,pB=/%5D/g,WM=/%5E/g,dB=/%60/g,UM=/%7B/g,gB=/%7C/g,$M=/%7D/g,yB=/%20/g;function x0(r){return encodeURI(""+r).replace(gB,"|").replace(vB,"[").replace(pB,"]")}function mB(r){return x0(r).replace(UM,"{").replace($M,"}").replace(WM,"^")}function oy(r){return x0(r).replace(HM,"%2B").replace(yB,"+").replace(GM,"%23").replace(uB,"%26").replace(dB,"`").replace(UM,"{").replace($M,"}").replace(WM,"^")}function _B(r){return oy(r).replace(cB,"%3D")}function SB(r){return x0(r).replace(GM,"%23").replace(hB,"%3F")}function xB(r){return r==null?"":SB(r).replace(fB,"%2F")}function Au(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const bB=/\/$/,wB=r=>r.replace(bB,"");function xp(r,t,e="/"){let n,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=r(i)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=DB(n??t,e),{fullPath:n+(i&&"?")+i+o,path:n,query:a,hash:Au(o)}}function TB(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function fS(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function CB(r,t,e){const n=t.matched.length-1,a=e.matched.length-1;return n>-1&&n===a&&Ms(t.matched[n],e.matched[a])&&YM(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Ms(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function YM(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!AB(r[e],t[e]))return!1;return!0}function AB(r,t){return fn(r)?cS(r,t):fn(t)?cS(t,r):r===t}function cS(r,t){return fn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function DB(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let i=e.length-1,o,s;for(o=0;o<n.length;o++)if(s=n[o],s!==".")if(s==="..")i>1&&i--;else break;return e.slice(0,i).join("/")+"/"+n.slice(o).join("/")}const wa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Du;(function(r){r.pop="pop",r.push="push"})(Du||(Du={}));var nu;(function(r){r.back="back",r.forward="forward",r.unknown=""})(nu||(nu={}));function MB(r){if(!r)if(is){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),wB(r)}const IB=/^[^#]+#/;function LB(r,t){return r.replace(IB,"#")+t}function PB(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 Sv=()=>({left:window.scrollX,top:window.scrollY});function RB(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),a=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!a)return;t=PB(a,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 hS(r,t){return(history.state?history.state.position-t:-1)+r}const sy=new Map;function EB(r,t){sy.set(r,t)}function kB(r){const t=sy.get(r);return sy.delete(r),t}let OB=()=>location.protocol+"//"+location.host;function XM(r,t){const{pathname:e,search:n,hash:a}=t,i=r.indexOf("#");if(i>-1){let s=a.includes(r.slice(i))?r.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),fS(l,"")}return fS(e,r)+n+a}function NB(r,t,e,n){let a=[],i=[],o=null;const s=({state:h})=>{const v=XM(r,location),p=e.value,d=t.value;let g=0;if(h){if(e.value=v,t.value=h,o&&o===p){o=null;return}g=d?h.position-d.position:0}else n(v);a.forEach(y=>{y(e.value,p,{delta:g,type:Du.pop,direction:g?g>0?nu.forward:nu.back:nu.unknown})})};function l(){o=e.value}function u(h){a.push(h);const v=()=>{const p=a.indexOf(h);p>-1&&a.splice(p,1)};return i.push(v),v}function f(){const{history:h}=window;h.state&&h.replaceState(ee({},h.state,{scroll:Sv()}),"")}function c(){for(const h of i)h();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:u,destroy:c}}function vS(r,t,e,n=!1,a=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:a?Sv():null}}function BB(r){const{history:t,location:e}=window,n={value:XM(r,e)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,f){const c=r.indexOf("#"),h=c>-1?(e.host&&document.querySelector("base")?r:r.slice(c))+l:OB()+r+l;try{t[f?"replaceState":"pushState"](u,"",h),a.value=u}catch(v){console.error(v),e[f?"replace":"assign"](h)}}function o(l,u){const f=ee({},t.state,vS(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,f,!0),n.value=l}function s(l,u){const f=ee({},a.value,t.state,{forward:l,scroll:Sv()});i(f.current,f,!0);const c=ee({},vS(n.value,l,null),{position:f.position+1},u);i(l,c,!1),n.value=l}return{location:n,state:a,push:s,replace:o}}function VB(r){r=MB(r);const t=BB(r),e=NB(r,t.state,t.location,t.replace);function n(i,o=!0){o||e.pauseListeners(),history.go(i)}const a=ee({location:"",base:r,go:n,createHref:LB.bind(null,r)},t,e);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function zB(r){return typeof r=="string"||r&&typeof r=="object"}function ZM(r){return typeof r=="string"||typeof r=="symbol"}const qM=Symbol("");var pS;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(pS||(pS={}));function Is(r,t){return ee(new Error,{type:r,[qM]:!0},t)}function Zn(r,t){return r instanceof Error&&qM in r&&(t==null||!!(r.type&t))}const dS="[^/]+?",FB={sensitive:!1,strict:!1,start:!0,end:!0},GB=/[.+*?^${}()[\]/\\]/g;function HB(r,t){const e=ee({},FB,t),n=[];let a=e.start?"^":"";const i=[];for(const u of r){const f=u.length?[]:[90];e.strict&&!u.length&&(a+="/");for(let c=0;c<u.length;c++){const h=u[c];let v=40+(e.sensitive?.25:0);if(h.type===0)c||(a+="/"),a+=h.value.replace(GB,"\\$&"),v+=40;else if(h.type===1){const{value:p,repeatable:d,optional:g,regexp:y}=h;i.push({name:p,repeatable:d,optional:g});const m=y||dS;if(m!==dS){v+=10;try{new RegExp(`(${m})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${p}" (${m}): `+S.message)}}let _=d?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;c||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),a+=_,v+=20,g&&(v+=-8),d&&(v+=-20),m===".*"&&(v+=-50)}f.push(v)}n.push(f)}if(e.strict&&e.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}e.strict||(a+="/?"),e.end?a+="$":e.strict&&(a+="(?:/|$)");const o=new RegExp(a,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]||"",p=i[h-1];c[p.name]=v&&p.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===0)f+=v.value;else if(v.type===1){const{value:p,repeatable:d,optional:g}=v,y=p in u?u[p]:"";if(fn(y)&&!d)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const m=fn(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 "${p}"`);f+=m}}return f||"/"}return{re:o,score:n,keys:i,parse:s,stringify:l}}function WB(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]===80?-1:1:r.length>t.length?t.length===1&&t[0]===80?1:-1:0}function KM(r,t){let e=0;const n=r.score,a=t.score;for(;e<n.length&&e<a.length;){const i=WB(n[e],a[e]);if(i)return i;e++}if(Math.abs(a.length-n.length)===1){if(gS(n))return 1;if(gS(a))return-1}return a.length-n.length}function gS(r){const t=r[r.length-1];return r.length>0&&t[t.length-1]<0}const UB={type:0,value:""},$B=/[a-zA-Z0-9_]/;function YB(r){if(!r)return[[]];if(r==="/")return[[UB]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(v){throw new Error(`ERR (${e})/"${u}": ${v}`)}let e=0,n=e;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",f="";function c(){u&&(e===0?i.push({type:0,value:u}):e===1||e===2||e===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s<r.length;){if(l=r[s++],l==="\\"&&e!==2){n=e,e=4;continue}switch(e){case 0:l==="/"?(u&&c(),o()):l===":"?(c(),e=1):h();break;case 4:h(),e=n;break;case 1:l==="("?e=2:$B.test(l)?h():(c(),e=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:e=3:f+=l;break;case 3:c(),e=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,f="";break;default:t("Unknown state");break}}return e===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),o(),a}function XB(r,t,e){const n=HB(YB(r.path),e),a=ee(n,{record:r,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function ZB(r,t){const e=[],n=new Map;t=SS({strict:!1,end:!0,sensitive:!1},t);function a(c){return n.get(c)}function i(c,h,v){const p=!v,d=mS(c);d.aliasOf=v&&v.record;const g=SS(t,c),y=[d];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const b of S)y.push(mS(ee({},d,{components:v?v.record.components:d.components,path:b,aliasOf:v?v.record:d})))}let m,_;for(const S of y){const{path:b}=S;if(h&&b[0]!=="/"){const x=h.record.path,w=x[x.length-1]==="/"?"":"/";S.path=h.record.path+(b&&w+b)}if(m=XB(S,h,g),v?v.alias.push(m):(_=_||m,_!==m&&_.alias.push(m),p&&c.name&&!_S(m)&&o(c.name)),jM(m)&&l(m),d.children){const x=d.children;for(let w=0;w<x.length;w++)i(x[w],m,v&&v.children[w])}v=v||m}return _?()=>{o(_)}:ru}function o(c){if(ZM(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=jB(c,e);e.splice(h,0,c),c.record.name&&!_S(c)&&n.set(c.record.name,c)}function u(c,h){let v,p={},d,g;if("name"in c&&c.name){if(v=n.get(c.name),!v)throw Is(1,{location:c});g=v.record.name,p=ee(yS(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&yS(c.params,v.keys.map(_=>_.name))),d=v.stringify(p)}else if(c.path!=null)d=c.path,v=e.find(_=>_.re.test(d)),v&&(p=v.parse(d),g=v.record.name);else{if(v=h.name?n.get(h.name):e.find(_=>_.re.test(h.path)),!v)throw Is(1,{location:c,currentLocation:h});g=v.record.name,p=ee({},h.params,c.params),d=v.stringify(p)}const y=[];let m=v;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:d,params:p,matched:y,meta:KB(y)}}r.forEach(c=>i(c));function f(){e.length=0,n.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:a}}function yS(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function mS(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:qB(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 qB(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 _S(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function KB(r){return r.reduce((t,e)=>ee(t,e.meta),{})}function SS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}function jB(r,t){let e=0,n=t.length;for(;e!==n;){const i=e+n>>1;KM(r,t[i])<0?n=i:e=i+1}const a=QB(r);return a&&(n=t.lastIndexOf(a,n-1)),n}function QB(r){let t=r;for(;t=t.parent;)if(jM(t)&&KM(r,t)===0)return t}function jM({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function JB(r){const t={};if(r===""||r==="?")return t;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let a=0;a<n.length;++a){const i=n[a].replace(HM," "),o=i.indexOf("="),s=Au(o<0?i:i.slice(0,o)),l=o<0?null:Au(i.slice(o+1));if(s in t){let u=t[s];fn(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function xS(r){let t="";for(let e in r){const n=r[e];if(e=_B(e),n==null){n!==void 0&&(t+=(t.length?"&":"")+e);continue}(fn(n)?n.map(i=>i&&oy(i)):[n&&oy(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function tV(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=fn(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const eV=Symbol(""),bS=Symbol(""),b0=Symbol(""),QM=Symbol(""),ly=Symbol("");function ll(){let r=[];function t(n){return r.push(n),()=>{const a=r.indexOf(n);a>-1&&r.splice(a,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function Ba(r,t,e,n,a,i=o=>o()){const o=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(Is(4,{from:e,to:t})):h instanceof Error?l(h):zB(h)?l(Is(2,{from:t,to:h})):(o&&n.enterCallbacks[a]===o&&typeof h=="function"&&o.push(h),s())},f=i(()=>r.call(n&&n.instances[a],t,e,u));let c=Promise.resolve(f);r.length<3&&(c=c.then(u)),c.catch(h=>l(h))})}function bp(r,t,e,n,a=i=>i()){const i=[];for(const o of r)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(FM(l)){const f=(l.__vccOpts||l)[t];f&&i.push(Ba(f,e,n,o,s,a))}else{let u=l();i.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=lB(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const v=(c.__vccOpts||c)[t];return v&&Ba(v,e,n,o,s,a)()}))}}return i}function wS(r){const t=aa(b0),e=aa(QM),n=we(()=>{const l=so(r.to);return t.resolve(l)}),a=we(()=>{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(Ms.bind(null,f));if(h>-1)return h;const v=TS(l[u-2]);return u>1&&TS(f)===v&&c[c.length-1].path!==v?c.findIndex(Ms.bind(null,l[u-2])):h}),i=we(()=>a.value>-1&&iV(e.params,n.value.params)),o=we(()=>a.value>-1&&a.value===e.matched.length-1&&YM(e.params,n.value.params));function s(l={}){return aV(l)?t[so(r.replace)?"replace":"push"](so(r.to)).catch(ru):Promise.resolve()}return{route:n,href:we(()=>n.value.href),isActive:i,isExactActive:o,navigate:s}}const rV=Gs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:wS,setup(r,{slots:t}){const e=pv(wS(r)),{options:n}=aa(b0),a=we(()=>({[CS(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[CS(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const i=t.default&&t.default(e);return r.custom?i:VM("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:a.value},i)}}}),nV=rV;function aV(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 iV(r,t){for(const e in t){const n=t[e],a=r[e];if(typeof n=="string"){if(n!==a)return!1}else if(!fn(a)||a.length!==n.length||n.some((i,o)=>i!==a[o]))return!1}return!0}function TS(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const CS=(r,t,e)=>r??t??e,oV=Gs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=aa(ly),a=we(()=>r.route||n.value),i=aa(bS,0),o=we(()=>{let u=so(i);const{matched:f}=a.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=we(()=>a.value.matched[o.value]);Vc(bS,we(()=>o.value+1)),Vc(eV,s),Vc(ly,a);const l=Cn();return tu(()=>[l.value,s.value,r.name],([u,f,c],[h,v,p])=>{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||!Ms(f,v)||!h)&&(f.enterCallbacks[c]||[]).forEach(d=>d(u))},{flush:"post"}),()=>{const u=a.value,f=r.name,c=s.value,h=c&&c.components[f];if(!h)return AS(e.default,{Component:h,route:u});const v=c.props[f],p=v?v===!0?u.params:typeof v=="function"?v(u):v:null,g=VM(h,ee({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return AS(e.default,{Component:g,route:u})||g}}});function AS(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const sV=oV;function lV(r){const t=ZB(r.routes,r),e=r.parseQuery||JB,n=r.stringifyQuery||xS,a=r.history,i=ll(),o=ll(),s=ll(),l=mO(wa);let u=wa;is&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Sp.bind(null,G=>""+G),c=Sp.bind(null,xB),h=Sp.bind(null,Au);function v(G,$){let K,j;return ZM(G)?(K=t.getRecordMatcher(G),j=$):j=G,t.addRoute(j,K)}function p(G){const $=t.getRecordMatcher(G);$&&t.removeRoute($)}function d(){return t.getRoutes().map(G=>G.record)}function g(G){return!!t.getRecordMatcher(G)}function y(G,$){if($=ee({},$||l.value),typeof G=="string"){const k=xp(e,G,$.path),z=t.resolve({path:k.path},$),q=a.createHref(k.fullPath);return ee(k,z,{params:h(z.params),hash:Au(k.hash),redirectedFrom:void 0,href:q})}let K;if(G.path!=null)K=ee({},G,{path:xp(e,G.path,$.path).path});else{const k=ee({},G.params);for(const z in k)k[z]==null&&delete k[z];K=ee({},G,{params:c(k)}),$.params=c($.params)}const j=t.resolve(K,$),J=G.hash||"";j.params=f(h(j.params));const ct=TB(n,ee({},G,{hash:mB(J),path:j.path})),E=a.createHref(ct);return ee({fullPath:ct,hash:J,query:n===xS?tV(G.query):G.query||{}},j,{redirectedFrom:void 0,href:E})}function m(G){return typeof G=="string"?xp(e,G,l.value.path):ee({},G)}function _(G,$){if(u!==G)return Is(8,{from:$,to:G})}function S(G){return w(G)}function b(G){return S(ee(m(G),{replace:!0}))}function x(G){const $=G.matched[G.matched.length-1];if($&&$.redirect){const{redirect:K}=$;let j=typeof K=="function"?K(G):K;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=m(j):{path:j},j.params={}),ee({query:G.query,hash:G.hash,params:j.path!=null?{}:G.params},j)}}function w(G,$){const K=u=y(G),j=l.value,J=G.state,ct=G.force,E=G.replace===!0,k=x(K);if(k)return w(ee(m(k),{state:typeof k=="object"?ee({},J,k.state):J,force:ct,replace:E}),$||K);const z=K;z.redirectedFrom=$;let q;return!ct&&CB(n,j,K)&&(q=Is(16,{to:z,from:j}),Z(j,j,!0,!1)),(q?Promise.resolve(q):A(z,j)).catch(Y=>Zn(Y)?Zn(Y,2)?Y:U(Y):N(Y,z,j)).then(Y=>{if(Y){if(Zn(Y,2))return w(ee({replace:E},m(Y.to),{state:typeof Y.to=="object"?ee({},J,Y.to.state):J,force:ct}),$||z)}else Y=I(z,j,!0,E,J);return M(z,j,Y),Y})}function T(G,$){const K=_(G,$);return K?Promise.reject(K):Promise.resolve()}function C(G){const $=ht.values().next().value;return $&&typeof $.runWithContext=="function"?$.runWithContext(G):G()}function A(G,$){let K;const[j,J,ct]=uV(G,$);K=bp(j.reverse(),"beforeRouteLeave",G,$);for(const k of j)k.leaveGuards.forEach(z=>{K.push(Ba(z,G,$))});const E=T.bind(null,G,$);return K.push(E),xt(K).then(()=>{K=[];for(const k of i.list())K.push(Ba(k,G,$));return K.push(E),xt(K)}).then(()=>{K=bp(J,"beforeRouteUpdate",G,$);for(const k of J)k.updateGuards.forEach(z=>{K.push(Ba(z,G,$))});return K.push(E),xt(K)}).then(()=>{K=[];for(const k of ct)if(k.beforeEnter)if(fn(k.beforeEnter))for(const z of k.beforeEnter)K.push(Ba(z,G,$));else K.push(Ba(k.beforeEnter,G,$));return K.push(E),xt(K)}).then(()=>(G.matched.forEach(k=>k.enterCallbacks={}),K=bp(ct,"beforeRouteEnter",G,$,C),K.push(E),xt(K))).then(()=>{K=[];for(const k of o.list())K.push(Ba(k,G,$));return K.push(E),xt(K)}).catch(k=>Zn(k,8)?k:Promise.reject(k))}function M(G,$,K){s.list().forEach(j=>C(()=>j(G,$,K)))}function I(G,$,K,j,J){const ct=_(G,$);if(ct)return ct;const E=$===wa,k=is?history.state:{};K&&(j||E?a.replace(G.fullPath,ee({scroll:E&&k&&k.scroll},J)):a.push(G.fullPath,J)),l.value=G,Z(G,$,K,E),U()}let L;function P(){L||(L=a.listen((G,$,K)=>{if(!Tt.listening)return;const j=y(G),J=x(j);if(J){w(ee(J,{replace:!0}),j).catch(ru);return}u=j;const ct=l.value;is&&EB(hS(ct.fullPath,K.delta),Sv()),A(j,ct).catch(E=>Zn(E,12)?E:Zn(E,2)?(w(E.to,j).then(k=>{Zn(k,20)&&!K.delta&&K.type===Du.pop&&a.go(-1,!1)}).catch(ru),Promise.reject()):(K.delta&&a.go(-K.delta,!1),N(E,j,ct))).then(E=>{E=E||I(j,ct,!1),E&&(K.delta&&!Zn(E,8)?a.go(-K.delta,!1):K.type===Du.pop&&Zn(E,20)&&a.go(-1,!1)),M(j,ct,E)}).catch(ru)}))}let R=ll(),O=ll(),B;function N(G,$,K){U(G);const j=O.list();return j.length?j.forEach(J=>J(G,$,K)):console.error(G),Promise.reject(G)}function F(){return B&&l.value!==wa?Promise.resolve():new Promise((G,$)=>{R.add([G,$])})}function U(G){return B||(B=!G,P(),R.list().forEach(([$,K])=>G?K(G):$()),R.reset()),G}function Z(G,$,K,j){const{scrollBehavior:J}=r;if(!is||!J)return Promise.resolve();const ct=!K&&kB(hS(G.fullPath,0))||(j||!K)&&history.state&&history.state.scroll||null;return sM().then(()=>J(G,$,ct)).then(E=>E&&RB(E)).catch(E=>N(E,G,$))}const Q=G=>a.go(G);let ft;const ht=new Set,Tt={currentRoute:l,listening:!0,addRoute:v,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:d,resolve:y,options:r,push:S,replace:b,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:F,install(G){const $=this;G.component("RouterLink",nV),G.component("RouterView",sV),G.config.globalProperties.$router=$,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>so(l)}),is&&!ft&&l.value===wa&&(ft=!0,S(a.location).catch(J=>{}));const K={};for(const J in wa)Object.defineProperty(K,J,{get:()=>l.value[J],enumerable:!0});G.provide(b0,$),G.provide(QM,rM(K)),G.provide(ly,l);const j=G.unmount;ht.add(G),G.unmount=function(){ht.delete(G),ht.size<1&&(u=wa,L&&L(),L=null,l.value=wa,ft=!1,B=!1),j()}}};function xt(G){return G.reduce(($,K)=>$.then(()=>C(K)),Promise.resolve())}return Tt}function uV(r,t){const e=[],n=[],a=[],i=Math.max(t.matched.length,r.matched.length);for(let o=0;o<i;o++){const s=t.matched[o];s&&(r.matched.find(u=>Ms(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Ms(u,l))||a.push(l))}return[e,n,a]}const fV="";async function DS(){return(await fetch(`${fV}/api/status`)).json()}/*! *****************************************************************************
|
||
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 uy=function(r,t){return uy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},uy(r,t)};function V(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");uy(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var cV=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),hV=function(){function r(){this.browser=new cV,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Rt=new hV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Rt.wxa=!0,Rt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Rt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Rt.node=!0,Rt.svgSupported=!0):vV(navigator.userAgent,Rt);function vV(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",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<"u";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}var w0=12,JM="sans-serif",ri=w0+"px "+JM,pV=20,dV=100,gV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function yV(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),a=(r.charCodeAt(e)-pV)/dV;t[n]=a}return t}var mV=yV(gV),ni={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var a=ni.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==n&&(t=r.font=n||ri),r.measureText(e);e=e||"",n=n||ri;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||w0,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=mV[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}},tI=zn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),eI=zn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Hs=Object.prototype.toString,xv=Array.prototype,_V=xv.forEach,SV=xv.filter,T0=xv.slice,xV=xv.map,MS=(function(){}).constructor,kf=MS?MS.prototype:null,C0="__proto__",bV=2311;function rI(){return bV++}function A0(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function yt(r){if(r==null||typeof r!="object")return r;var t=r,e=Hs.call(r);if(e==="[object Array]"){if(!au(r)){t=[];for(var n=0,a=r.length;n<a;n++)t[n]=yt(r[n])}}else if(eI[e]){if(!au(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var n=0,a=r.length;n<a;n++)t[n]=r[n]}}}else if(!tI[e]&&!au(r)&&!Ls(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==C0&&(t[o]=yt(r[o]))}return t}function Dt(r,t,e){if(!gt(t)||!gt(r))return e?yt(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==C0){var a=r[n],i=t[n];gt(i)&>(a)&&!W(i)&&!W(a)&&!Ls(i)&&!Ls(a)&&!IS(i)&&!IS(a)&&!au(i)&&!au(a)?Dt(a,i,e):(e||!(n in r))&&(r[n]=yt(t[n]))}return r}function D0(r,t){for(var e=r[0],n=1,a=r.length;n<a;n++)e=Dt(e,r[n],t);return e}function H(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==C0&&(r[e]=t[e]);return r}function dt(r,t,e){for(var n=Ot(t),a=0;a<n.length;a++){var i=n[a];(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}return r}function It(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 wV(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function me(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),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else dt(r,t,e)}function $e(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,t,e){if(r&&t)if(r.forEach&&r.forEach===_V)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function X(r,t,e){if(!r)return[];if(!t)return M0(r);if(r.map&&r.map===xV)return r.map(t,e);for(var n=[],a=0,i=r.length;a<i;a++)n.push(t.call(e,r[a],a,r));return n}function zn(r,t,e,n){if(r&&t){for(var a=0,i=r.length;a<i;a++)e=t.call(n,e,r[a],a,r);return e}}function Zt(r,t,e){if(!r)return[];if(!t)return M0(r);if(r.filter&&r.filter===SV)return r.filter(t,e);for(var n=[],a=0,i=r.length;a<i;a++)t.call(e,r[a],a,r)&&n.push(r[a]);return n}function TV(r,t,e){if(r&&t){for(var n=0,a=r.length;n<a;n++)if(t.call(e,r[n],n,r))return r[n]}}function Ot(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 CV(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(T0.call(arguments)))}}var it=kf&&vt(kf.bind)?kf.call.bind(kf.bind):CV;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(T0.call(arguments)))}}function W(r){return Array.isArray?Array.isArray(r):Hs.call(r)==="[object Array]"}function vt(r){return typeof r=="function"}function nt(r){return typeof r=="string"}function fy(r){return Hs.call(r)==="[object String]"}function Gt(r){return typeof r=="number"}function gt(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function IS(r){return!!tI[Hs.call(r)]}function pr(r){return!!eI[Hs.call(r)]}function Ls(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function bv(r){return r.colorStops!=null}function AV(r){return r.image!=null}function DV(r){return Hs.call(r)==="[object RegExp]"}function Mu(r){return r!==r}function Le(){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 St(r,t){return r??t}function Nn(r,t,e){return r??t??e}function M0(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return T0.apply(r,t)}function I0(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 nr(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 nI="__ec_primitive__";function vh(r){r[nI]=!0}function au(r){return r[nI]}var MV=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 Ot(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),aI=typeof Map=="function";function IV(){return aI?new Map:new MV}var LV=function(){function r(t){var e=W(t);this.data=IV();var n=this;t instanceof r?t.each(a):t&&D(t,a);function a(i,o){e?n.set(i,o):n.set(o,i)}}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,a){t.call(e,n,a)})},r.prototype.keys=function(){var t=this.data.keys();return aI?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function ut(r){return new LV(r)}function ph(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var a=r.length,n=0;n<t.length;n++)e[n+a]=t[n];return e}function wv(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&H(e,t),e}function iI(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 pe(){}var Gc=180/Math.PI;function Mo(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Ke(r,t){return r[0]=t[0],r[1]=t[1],r}function ia(r){return[r[0],r[1]]}function PV(r,t,e){return r[0]=t,r[1]=e,r}function LS(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function cy(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function Qi(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function hy(r){return Math.sqrt(RV(r))}function RV(r){return r[0]*r[0]+r[1]*r[1]}function Hc(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Ws(r,t){var e=hy(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function vy(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Ga=vy;function EV(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var lo=EV;function Wc(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 Ee(r,t,e){var n=t[0],a=t[1];return r[0]=e[0]*n+e[2]*a+e[4],r[1]=e[1]*n+e[3]*a+e[5],r}function Ha(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Wa(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Bo=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),kV=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 Bo(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,e.drift(i,o,t),this.handler.dispatchToElement(new Bo(e,t),"drag",t.event);var s=this.handler.findHover(n,a,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Bo(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Bo(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Bo(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Bo(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),Xr=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(a=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:e,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[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 a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&a.push(n[t][i]);n[t]=a}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 a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.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 i&&i.afterTrigger&&i.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 a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=e[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.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 i&&i.afterTrigger&&i.afterTrigger(t),this},r}(),OV=Math.log(2);function py(r,t,e,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/OV);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 p=1<<h;p&a||(c+=(v%2?-1:1)*r[e][h]*py(r,t-1,f,u,a|p,i),v++)}return i[o]=c,c}function PS(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={},a=py(e,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*py(e,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var c=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/c,l[1]=(u*i[3]+f*i[4]+i[5])/c}}}var RS="___zrEVENTSAVED",wp=[];function NV(r,t,e,n,a){return dy(wp,t,n,a,!0)&&dy(r,e,wp[0],wp[1])}function dy(r,t,e,n,a){if(t.getBoundingClientRect&&Rt.domSupported&&!oI(t)){var i=t[RS]||(t[RS]={}),o=BV(t,i),s=VV(o,i,a);if(s)return s(r,e,n),!0}return!1}function BV(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>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",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function VV(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=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&&i&&h===i[c]&&v===i[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=e?PS(s,o):PS(o,s))}function oI(r){return r.nodeName.toUpperCase()==="CANVAS"}var zV=/([&<>"'])/g,FV={"&":"&","<":"<",">":">",'"':""","'":"'"};function fr(r){return r==null?"":(r+"").replace(zV,function(t,e){return FV[e]})}var GV=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tp=[],HV=Rt.browser.firefox&&+Rt.browser.version.split(".")[0]<39;function gy(r,t,e,n){return e=e||{},n?ES(r,t,e):HV&&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):ES(r,t,e),e}function ES(r,t,e){if(Rt.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(oI(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(dy(Tp,r,n,a)){e.zrX=Tp[0],e.zrY=Tp[1];return}}e.zrX=e.zrY=0}function L0(r){return r||window.event}function kr(r,t,e){if(t=L0(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&gy(r,o,t,e)}else{gy(r,t,t,e);var i=WV(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&GV.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function WV(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function yy(r,t,e,n){r.addEventListener(t,e,n)}function UV(r,t,e,n){r.removeEventListener(t,e,n)}var fa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function kS(r){return r.which===2||r.which===3}var $V=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 a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=gy(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in Cp)if(Cp.hasOwnProperty(e)){var n=Cp[e](this._track,t);if(n)return n}},r}();function OS(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function YV(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Cp={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,a=(r[e-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=OS(n)/OS(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=YV(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Ar(){return[1,0,0,1,0,0]}function Tv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function P0(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 oa(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=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]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Fn(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 Io(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=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]=a*c+s*f,r[1]=-a*f+s*c,r[2]=i*c+l*f,r[3]=-i*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 R0(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function Us(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-e*s)*l,r):null}function XV(r){var t=Ar();return P0(t,r),t}var Ct=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,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}(),Of=Math.min,Nf=Math.max,yi=new Ct,mi=new Ct,_i=new Ct,Si=new Ct,ul=new Ct,fl=new Ct,Mt=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=Of(t.x,this.x),n=Of(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Nf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Nf(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=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,a=t.height/e.height,i=Ar();return Fn(i,i,[-e.x,-e.y]),R0(i,i,[n,a]),Fn(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=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=!(i<l||u<a||s<f||c<o);if(e){var v=1/0,p=0,d=Math.abs(i-l),g=Math.abs(u-a),y=Math.abs(s-f),m=Math.abs(c-o),_=Math.min(d,g),S=Math.min(y,m);i<l||u<a?_>p&&(p=_,d<g?Ct.set(fl,-d,0):Ct.set(fl,g,0)):_<v&&(v=_,d<g?Ct.set(ul,d,0):Ct.set(ul,-g,0)),s<f||c<o?S>p&&(p=S,y<m?Ct.set(fl,0,-y):Ct.set(fl,0,m)):_<v&&(v=_,y<m?Ct.set(ul,0,y):Ct.set(ul,0,-m))}return e&&Ct.copy(e,h?ul:fl),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 a=n[0],i=n[3],o=n[4],s=n[5];t.x=e.x*a+o,t.y=e.y*i+s,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}yi.x=_i.x=e.x,yi.y=Si.y=e.y,mi.x=Si.x=e.x+e.width,mi.y=_i.y=e.y+e.height,yi.transform(n),Si.transform(n),mi.transform(n),_i.transform(n),t.x=Of(yi.x,mi.x,_i.x,Si.x),t.y=Of(yi.y,mi.y,_i.y,Si.y);var l=Nf(yi.x,mi.x,_i.x,Si.x),u=Nf(yi.y,mi.y,_i.y,Si.y);t.width=l-t.x,t.height=u-t.y},r}(),sI="silent";function ZV(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:qV}}function qV(){fa(this.event)}var KV=function(r){V(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}(Xr),cl=function(){function r(t,e){this.x=t,this.y=e}return r}(),jV=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ap=new Mt(0,0,0,0),lI=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this)||this;return s._hovered=new cl(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new KV,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new kV(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(D(jV,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,a=e.zrY,i=uI(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new cl(n,a):this.findHover(n,a),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 cl(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.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,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+n,s=ZV(n,e,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.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,a){var i=this.storage.getDisplayList(),o=new cl(e,n);if(NS(i,o,e,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Mt(e-u,n-u,l,l),c=i.length-1;c>=0;c--){var h=i[c];h!==a&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Ap.copy(h.getBoundingRect()),h.transform&&Ap.applyTransform(h.transform),Ap.intersect(f)&&s.push(h))}if(s.length)for(var v=4,p=Math.PI/12,d=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<d;y+=p){var m=e+g*Math.cos(y),_=n+g*Math.sin(y);if(NS(s,o,m,_,a),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new $V);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;e.gestureEvent=o;var s=new cl;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Xr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){lI.prototype[r]=function(t){var e=t.zrX,n=t.zrY,a=uI(this,e,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(e,n),o=i.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||Ga(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function QV(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?sI:!0}return!1}function NS(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=QV(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==sI)){t.target=o;break}}}function uI(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var fI=32,hl=7;function JV(r){for(var t=0;r>=fI;)t|=r&1,r>>=1;return r+t}function BS(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a<e&&n(r[a],r[a-1])<0;)a++;tz(r,t,a)}else for(;a<e&&n(r[a],r[a-1])>=0;)a++;return a-t}function tz(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function VS(r,t,e,n,a){for(n===t&&n++;n<e;n++){for(var i=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,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]=i}}function Dp(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])>0){for(s=n-a;l<s&&i(r,t[e+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,t[e+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function Mp(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])<0){for(s=a+1;l<s&&i(r,t[e+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,t[e+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function ez(r,t){var e=hl,n,a,i=0,o=[];n=[],a=[];function s(v,p){n[i]=v,a[i]=p,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;f(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]<a[v+1]&&v--,f(v)}}function f(v){var p=n[v],d=a[v],g=n[v+1],y=a[v+1];a[v]=d+y,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var m=Mp(r[g],r,p,d,0,t);p+=m,d-=m,d!==0&&(y=Dp(r[p+d-1],r,g,y,y-1,t),y!==0&&(d<=y?c(p,d,g,y):h(p,d,g,y)))}function c(v,p,d,g){var y=0;for(y=0;y<p;y++)o[y]=r[v+y];var m=0,_=d,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<p;y++)r[S+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=e,x,w,T;;){x=0,w=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],w++,x=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],x++,w=0,--p===1){T=!0;break}while((x|w)<b);if(T)break;do{if(x=Mp(r[_],o,m,p,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,p-=x,p<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=Dp(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++],--p===1){T=!0;break}b--}while(x>=hl||w>=hl);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)r[S+y]=o[m+y]}}function h(v,p,d,g){var y=0;for(y=0;y<g;y++)o[y]=r[d+y];var m=v+p-1,_=g-1,S=d+g-1,b=0,x=0;if(r[S--]=r[m--],--p===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,A=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)<w);if(A)break;do{if(T=p-Mp(o[_],r,v,p,p-1,t),T!==0){for(S-=T,m-=T,p-=T,x=S+1,b=m+1,y=T-1;y>=0;y--)r[x+y]=r[b+y];if(p===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-Dp(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y<C;y++)r[x+y]=o[b+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--p===0){A=!0;break}w--}while(T>=hl||C>=hl);if(A)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Uc(r,t,e,n){e||(e=0),n||(n=r.length);var a=n-e;if(!(a<2)){var i=0;if(a<fI){i=BS(r,e,n,t),VS(r,e,n,e+i,t);return}var o=ez(r,t),s=JV(a);do{if(i=BS(r,e,n,t),i<s){var l=a;l>s&&(l=s),VS(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),a-=i,e+=i}while(a!==0);o.forceMergeRuns()}}var wr=1,zl=2,os=4,zS=!1;function Ip(){zS||(zS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function FS(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var rz=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=FS}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,a=0,i=e.length;a<i;a++)this._updateAndAddDisplayable(e[a],null,t);n.length=this._displayListLen,Uc(n,FS)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)e=null;else if(a){e?e=e.slice():e=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=wr),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)&&(Ip(),f.z=0),isNaN(f.z2)&&(Ip(),f.z2=0),isNaN(f.zlevel)&&(Ip(),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 a=It(this._roots,t);a>=0&&this._roots.splice(a,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}(),dh;dh=Rt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var iu={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-iu.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?iu.bounceIn(r*2)*.5:iu.bounceOut(r*2-1)*.5+.5}},Bf=Math.pow,ja=Math.sqrt,gh=1e-8,cI=1e-4,GS=ja(3),Vf=1/3,Mn=Mo(),Vr=Mo(),xs=Mo();function Ua(r){return r>-gh&&r<gh}function hI(r){return r>gh||r<-gh}function be(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function HS(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function yh(r,t,e,n,a,i){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-a,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Ua(f)&&Ua(c))if(Ua(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[v++]=p)}else{var d=c*c-4*f*h;if(Ua(d)){var g=c/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[v++]=p),y>=0&&y<=1&&(i[v++]=y)}else if(d>0){var m=ja(d),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Bf(-_,Vf):_=Bf(_,Vf),S<0?S=-Bf(-S,Vf):S=Bf(S,Vf);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[v++]=p)}else{var b=(2*f*s-3*o*c)/(2*ja(f*f*f)),x=Math.acos(b)/3,w=ja(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+GS*Math.sin(x)))/(3*o),C=(-s+w*(T-GS*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[v++]=p),y>=0&&y<=1&&(i[v++]=y),C>=0&&C<=1&&(i[v++]=C)}}return v}function vI(r,t,e,n,a){var i=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Ua(o)){if(hI(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Ua(f))a[0]=-i/(2*o);else if(f>0){var c=ja(f),u=(-i+c)/(2*o),h=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function ai(r,t,e,n,a,i){var o=(t-r)*a+r,s=(e-t)*a+t,l=(n-e)*a+e,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function pI(r,t,e,n,a,i,o,s,l,u,f){var c,h=.005,v=1/0,p,d,g,y;Mn[0]=l,Mn[1]=u;for(var m=0;m<1;m+=.05)Vr[0]=be(r,e,a,o,m),Vr[1]=be(t,n,i,s,m),g=lo(Mn,Vr),g<v&&(c=m,v=g);v=1/0;for(var _=0;_<32&&!(h<cI);_++)p=c-h,d=c+h,Vr[0]=be(r,e,a,o,p),Vr[1]=be(t,n,i,s,p),g=lo(Vr,Mn),p>=0&&g<v?(c=p,v=g):(xs[0]=be(r,e,a,o,d),xs[1]=be(t,n,i,s,d),y=lo(xs,Mn),d<=1&&y<v?(c=d,v=y):h*=.5);return f&&(f[0]=be(r,e,a,o,c),f[1]=be(t,n,i,s,c)),ja(v)}function nz(r,t,e,n,a,i,o,s,l){for(var u=r,f=t,c=0,h=1/l,v=1;v<=l;v++){var p=v*h,d=be(r,e,a,o,p),g=be(t,n,i,s,p),y=d-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=d,f=g}return c}function Ie(r,t,e,n){var a=1-n;return a*(a*r+2*n*t)+n*n*e}function my(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function az(r,t,e,n,a){var i=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Ua(i)){if(hI(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Ua(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=ja(f),u=(-o+c)/(2*i),h=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function dI(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Iu(r,t,e,n,a){var i=(t-r)*n+r,o=(e-t)*n+t,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=e}function gI(r,t,e,n,a,i,o,s,l){var u,f=.005,c=1/0;Mn[0]=o,Mn[1]=s;for(var h=0;h<1;h+=.05){Vr[0]=Ie(r,e,a,h),Vr[1]=Ie(t,n,i,h);var v=lo(Mn,Vr);v<c&&(u=h,c=v)}c=1/0;for(var p=0;p<32&&!(f<cI);p++){var d=u-f,g=u+f;Vr[0]=Ie(r,e,a,d),Vr[1]=Ie(t,n,i,d);var v=lo(Vr,Mn);if(d>=0&&v<c)u=d,c=v;else{xs[0]=Ie(r,e,a,g),xs[1]=Ie(t,n,i,g);var y=lo(xs,Mn);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=Ie(r,e,a,u),l[1]=Ie(t,n,i,u)),ja(c)}function iz(r,t,e,n,a,i,o){for(var s=r,l=t,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=Ie(r,e,a,h),p=Ie(t,n,i,h),d=v-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=v,l=p}return u}var oz=/cubic-bezier\(([0-9,\.e ]+)\)/;function E0(r){var t=r&&oz.exec(r);if(t){var e=t[1].split(","),n=+an(e[0]),a=+an(e[1]),i=+an(e[2]),o=+an(e[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:yh(0,n,i,1,l,s)&&be(0,a,o,1,s[0])}}}var sz=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||pe,this.ondestroy=t.ondestroy||pe,this.onrestart=t.onrestart||pe,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,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%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:iu[t]||E0(t)},r}(),yI=function(){function r(t){this.value=t}return r}(),lz=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new yI(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}(),of=function(){function r(t){this._list=new lz,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new yI(e),s.key=t,n.insertEntry(s),a[t]=s}return i},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}(),WS={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 ln(r){return r=Math.round(r),r<0?0:r>255?255:r}function uz(r){return r=Math.round(r),r<0?0:r>360?360:r}function Lu(r){return r<0?0:r>1?1:r}function Lp(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?ln(parseFloat(t)/100*255):ln(parseInt(t,10))}function uo(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Lu(parseFloat(t)/100):Lu(parseFloat(t))}function Pp(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 $a(r,t,e){return r+(t-r)*e}function Er(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function _y(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var mI=new of(20),zf=null;function Vo(r,t){zf&&_y(zf,t),zf=mI.put(r,zf||t.slice())}function Dr(r,t){if(r){t=t||[];var e=mI.get(r);if(e)return _y(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in WS)return _y(t,WS[n]),Vo(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Er(t,0,0,0,1);return}return Er(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Vo(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Er(t,0,0,0,1);return}return Er(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Vo(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){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?Er(t,+u[0],+u[1],+u[2],1):Er(t,0,0,0,1);f=uo(u.pop());case"rgb":if(u.length>=3)return Er(t,Lp(u[0]),Lp(u[1]),Lp(u[2]),u.length===3?f:uo(u[3])),Vo(r,t),t;Er(t,0,0,0,1);return;case"hsla":if(u.length!==4){Er(t,0,0,0,1);return}return u[3]=uo(u[3]),Sy(u,t),Vo(r,t),t;case"hsl":if(u.length!==3){Er(t,0,0,0,1);return}return Sy(u,t),Vo(r,t),t;default:return}}Er(t,0,0,0,1)}}function Sy(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=uo(r[1]),a=uo(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Er(t,ln(Pp(o,i,e+1/3)*255),ln(Pp(o,i,e)*255),ln(Pp(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function fz(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-t)/6+o/2)/o,c=((i-e)/6+o/2)/o,h=((i-n)/6+o/2)/o;t===i?l=h-c:e===i?l=1/3+f-h:n===i&&(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 xy(r,t){var e=Dr(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 sa(e,e.length===4?"rgba":"rgb")}}function Rp(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return e[0]=ln($a(o[0],s[0],l)),e[1]=ln($a(o[1],s[1],l)),e[2]=ln($a(o[2],s[2],l)),e[3]=Lu($a(o[3],s[3],l)),e}}function cz(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Dr(t[a]),s=Dr(t[i]),l=n-a,u=sa([ln($a(o[0],s[0],l)),ln($a(o[1],s[1],l)),ln($a(o[2],s[2],l)),Lu($a(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function ou(r,t,e,n){var a=Dr(r);if(r)return a=fz(a),t!=null&&(a[0]=uz(t)),e!=null&&(a[1]=uo(e)),n!=null&&(a[2]=uo(n)),sa(Sy(a),"rgba")}function mh(r,t){var e=Dr(r);if(e&&t!=null)return e[3]=Lu(t),sa(e,"rgba")}function sa(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 _h(r,t){var e=Dr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var US=new of(100);function by(r){if(nt(r)){var t=US.get(r);return t||(t=xy(r,-.1),US.put(r,t)),t}else if(bv(r)){var e=H({},r);return e.colorStops=X(r.colorStops,function(n){return{offset:n.offset,color:xy(n.color,-.1)}}),e}return r}var Sh=Math.round;function Pu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Dr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var $S=1e-4;function Ya(r){return r<$S&&r>-$S}function Ff(r){return Sh(r*1e3)/1e3}function wy(r){return Sh(r*1e4)/1e4}function hz(r){return"matrix("+Ff(r[0])+","+Ff(r[1])+","+Ff(r[2])+","+Ff(r[3])+","+wy(r[4])+","+wy(r[5])+")"}var vz={left:"start",right:"end",center:"middle",middle:"middle"};function pz(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function dz(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function gz(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 _I(r){return r&&!!r.image}function yz(r){return r&&!!r.svgElement}function k0(r){return _I(r)||yz(r)}function SI(r){return r.type==="linear"}function xI(r){return r.type==="radial"}function bI(r){return r&&(r.type==="linear"||r.type==="radial")}function Cv(r){return"url(#"+r+")"}function wI(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 TI(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Gc,a=St(r.scaleX,1),i=St(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+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Sh(o*Gc)+"deg, "+Sh(s*Gc)+"deg)"),l.join(" ")}var mz=function(){return Rt.hasGlobalWindow&&vt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Ty=Array.prototype.slice;function Jn(r,t,e){return(t-r)*e+r}function Ep(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=Jn(t[i],e[i],n);return r}function _z(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Jn(t[o][s],e[o][s],n)}return r}function Gf(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=t[i]+e[i]*n;return r}function YS(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function Sz(r,t){for(var e=r.length,n=t.length,a=e>n?t:r,i=Math.min(e,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function xz(r,t,e){var n=r,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(e===1?a[l]:Ty.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function su(r){if($e(r)){var t=r.length;if($e(r[0])){for(var e=[],n=0;n<t;n++)e.push(Ty.call(r[n]));return e}return Ty.call(r)}return r}function $c(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 bz(r){return $e(r&&r[0])?2:1}var Hf=0,Yc=1,CI=2,Fl=3,Cy=4,Ay=5,XS=6;function ZS(r){return r===Cy||r===Ay}function Wf(r){return r===Yc||r===CI}var vl=[0,0,0,0],wz=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 a=this.keyframes,i=a.length,o=!1,s=XS,l=e;if($e(e)){var u=bz(e);s=u,(u===1&&!Gt(e[0])||u===2&&!Gt(e[0][0]))&&(o=!0)}else if(Gt(e)&&!Mu(e))s=Hf;else if(nt(e))if(!isNaN(+e))s=Hf;else{var f=Dr(e);f&&(l=f,s=Fl)}else if(bv(e)){var c=H({},l);c.colorStops=X(e.colorStops,function(v){return{offset:v.offset,color:Dr(v.color)}}),SI(e)?s=Cy:xI(e)&&(s=Ay),l=c}i===0?this.valType=s:(s!==this.valType||s===XS)&&(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:iu[n]||E0(n)),a.push(h),h},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(d,g){return d.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Wf(a),u=ZS(a),f=0;f<i;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/t,s||(l&&f!==i-1?xz(h,v,a):u&&Sz(h.colorStops,v.colorStops))}if(!s&&a!==Ay&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var p=n[0].value,f=0;f<i;f++)a===Hf?n[f].additiveValue=n[f].value-p:a===Fl?n[f].additiveValue=Gf([],n[f].value,p,-1):Wf(a)&&(n[f].additiveValue=a===Yc?Gf([],n[f].value,p,-1):YS([],n[f].value,p,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Fl,f,c=this._lastFr,h=Math.min,v,p;if(s===1)v=p=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var d=h(c+1,s-1);for(f=d;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)}p=o[f+1],v=o[f]}if(v&&p){this._lastFr=f,this._lastFrP=e;var g=p.percent-v.percent,y=g===0?1:h((e-v.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=n?this._additiveValue:u?vl:t[l];if((Wf(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:p.rawValue;else if(Wf(i))i===Yc?Ep(m,v[a],p[a],y):_z(m,v[a],p[a],y);else if(ZS(i)){var _=v[a],S=p[a],b=i===Cy;t[l]={type:b?"linear":"radial",x:Jn(_.x,S.x,y),y:Jn(_.y,S.y,y),colorStops:X(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Jn(w.offset,C.offset,y),color:$c(Ep([],w.color,C.color,y))}}),global:S.global},b?(t[l].x2=Jn(_.x2,S.x2,y),t[l].y2=Jn(_.y2,S.y2,y)):t[l].r=Jn(_.r,S.r,y)}else if(u)Ep(m,v[a],p[a],y),n||(t[l]=$c(m));else{var x=Jn(v[a],p[a],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===Hf?t[n]=t[n]+a:e===Fl?(Dr(t[n],vl),Gf(vl,vl,a,1),t[n]=$c(vl)):e===Yc?Gf(t[n],t[n],a,1):e===CI&&YS(t[n],t[n],a,1)},r}(),O0=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){A0("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,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,Ot(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new wz(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===Fl&&u&&(u=$c(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,su(u),a),this._trackKeys.push(s)}l.addKeyframe(t,su(e[s]),a)}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 a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,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 sz({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var p=e._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(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 X(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,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var a=0;a<e.length;a++){var i=e[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=su(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Ot(t);for(var n=0;n<e.length;n++){var a=e[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function hs(){return new Date().getTime()}var Tz=function(r){V(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,a=e.next;n?n.next=a:this._head=a,a?a.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=hs()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(dh(n),!e._paused&&e.update())}dh(n)},t.prototype.start=function(){this._running||(this._time=hs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=hs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=hs()-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 a=new O0(e,n.loop);return this.addAnimator(a),a},t}(Xr),Cz=300,kp=Rt.domSupported,Op=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=X(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),qS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},KS=!1;function Dy(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Az(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 Dz(r,t){return kr(r.dom,new Mz(r,t),!0)}function AI(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 Mz=function(){function r(t,e){this.stopPropagation=pe,this.stopImmediatePropagation=pe,this.preventDefault=pe,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=kr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=kr(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=kr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=kr(this.dom,r);var t=r.toElement||r.relatedTarget;AI(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){KS=!0,r=kr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){KS||(r=kr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=kr(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=kr(this.dom,r),Np(r),this.handler.processGesture(r,"change"),tn.mousemove.call(this,r)},touchend:function(r){r=kr(this.dom,r),Np(r),this.handler.processGesture(r,"end"),tn.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Cz&&tn.click.call(this,r)},pointerdown:function(r){tn.mousedown.call(this,r)},pointermove:function(r){Dy(r)||tn.mousemove.call(this,r)},pointerup:function(r){tn.mouseup.call(this,r)},pointerout:function(r){Dy(r)||tn.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){tn[r]=function(t){t=kr(this.dom,t),this.trigger(r,t)}});var My={pointermove:function(r){Dy(r)||My.mousemove.call(this,r)},pointerup:function(r){My.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 Iz(r,t){var e=t.domHandlers;Rt.pointerEventsSupported?D(Op.pointer,function(n){Xc(t,n,function(a){e[n].call(r,a)})}):(Rt.touchEventsSupported&&D(Op.touch,function(n){Xc(t,n,function(a){e[n].call(r,a),Az(t)})}),D(Op.mouse,function(n){Xc(t,n,function(a){a=L0(a),t.touching||e[n].call(r,a)})}))}function Lz(r,t){Rt.pointerEventsSupported?D(qS.pointer,e):Rt.touchEventsSupported||D(qS.mouse,e);function e(n){function a(i){i=L0(i),AI(r,i.target)||(i=Dz(r,i),t.domHandlers[n].call(r,i))}Xc(t,n,a,{capture:!0})}}function Xc(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,yy(r.domTarget,t,e,n)}function Bp(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&UV(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var jS=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),Pz=function(r){V(t,r);function t(e,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new jS(e,tn),kp&&(a._globalHandlerScope=new jS(document,My)),Iz(a,a._localHandlerScope),a}return t.prototype.dispose=function(){Bp(this._localHandlerScope),kp&&Bp(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,kp&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?Lz(this,n):Bp(n)}},t}(Xr),DI=1;Rt.hasGlobalWindow&&(DI=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xh=DI,Iy=.4,Ly="#333",Py="#ccc",Rz="#eee",QS=Tv,JS=5e-5;function xi(r){return r>JS||r<-JS}var bi=[],zo=[],Vp=Ar(),zp=Math.abs,ea=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 xi(this.rotation)||xi(this.x)||xi(this.y)||xi(this.scaleX-1)||xi(this.scaleY-1)||xi(this.skewX)||xi(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(QS(n),this.invTransform=null);return}n=n||Ar(),e?this.getLocalTransform(n):QS(n),t&&(e?oa(n,t,n):P0(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(bi);var n=bi[0]<0?-1:1,a=bi[1]<0?-1:1,i=((bi[0]-n)*e+n)/bi[0]||0,o=((bi[1]-a)*e+a)/bi[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ar(),Us(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],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,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||Ar(),oa(zo,t.invTransform,e),e=zo);var n=this.originX,a=this.originY;(n||a)&&(Vp[4]=n,Vp[5]=a,oa(zo,e,Vp),zo[4]-=n,zo[5]-=a,e=zo),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],a=this.invTransform;return a&&Ee(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&Ee(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&zp(t[0]-1)>1e-10&&zp(t[3]-1)>1e-10?Math.sqrt(zp(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){MI(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=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||a||s||l){var p=n+s,d=a+l;e[4]=-p*i-h*d*o,e[5]=-d*o-v*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=v*i,e[2]=h*o,u&&Io(e,e,u),e[4]+=n+f,e[5]+=a+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}(),Gn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function MI(r,t){for(var e=0;e<Gn.length;e++){var n=Gn[e];r[n]=t[n]}}var tx={};function Mr(r,t){t=t||ri;var e=tx[t];e||(e=tx[t]=new of(500));var n=e.get(r);return n==null&&(n=ni.measureText(r,t).width,e.put(r,n)),n}function ex(r,t,e,n){var a=Mr(r,t),i=Av(t),o=Gl(0,a,e),s=ss(0,i,n),l=new Mt(o,s,a,i);return l}function sf(r,t,e,n){var a=((r||"")+"").split(`
|
||
`),i=a.length;if(i===1)return ex(a[0],t,e,n);for(var o=new Mt(0,0,0,0),s=0;s<a.length;s++){var l=ex(a[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function Gl(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function ss(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Av(r){return Mr("国",r)}function cn(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function bh(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",c="top";if(n instanceof Array)l+=cn(n[0],e.width),u+=cn(n[1],e.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Fp="__zr_normal__",Gp=Gn.concat(["ignore"]),Ez=zn(Gn,function(r,t){return r[t]=!0,r},{ignore:!1}),Fo={},kz=new Mt(0,0,0,0),Dv=function(){function r(t){this.id=rI(),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 a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[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,a=n.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(e),n.position!=null){var f=kz;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fo,n,f):bh(Fo,n,f),i.x=Fo.x,i.y=Fo.y,o=Fo.align,s=Fo.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=cn(c[0],f.width),v=cn(c[1],f.height)),u=!0,i.originX=-i.x+h+(a?0:f.x),i.originY=-i.y+v+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=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;d&&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|=wr,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()?Py:Ly},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Dr(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,sa(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||{},H(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(gt(t))for(var n=t,a=Ot(n),i=0;i<a.length;i++){var o=a[i];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 a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Fp)){var o=a.targetName,s=o?e[o]:e;a.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,Gp)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},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(Fp,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===Fp,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(It(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){A0("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);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),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wr),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[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&&a.push(f)}var c=a[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.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&=~wr)}},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=It(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 a=this.currentStates.slice(),i=It(a,t),o=It(a,e)>=0;i>=0?o?a.splice(i,1):a[i]=e:n&&!o&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a<t.length;a++){var i=t[a];H(e,i),i.textConfig&&(n=n||{},H(n,i.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,a,i,o){var s=!(e&&a);e&&e.textConfig?(this.textConfig=H({},a?this.textConfig:n.textConfig),H(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Gp.length;f++){var c=Gp[f],h=i&&Ez[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(!i)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],p=v.targetName;v.getLoop()||v.__changeFinalValue(p?(e||n)[p]: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 ea,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),H(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|=wr;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 a=t?this[t]:this,i=new O0(a,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(e)}).done(function(){var i=a.animators,o=It(i,t);o>=0&&i.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,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,n){Hp(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){Hp(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,a){for(var i=Hp(this,e,n,a),o=0;o<i.length;o++)i[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=wr;function e(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=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}();me(Dv,Xr);me(Dv,ea);function Hp(r,t,e,n,a){e=e||{};var i=[];II(r,"",r,t,e,n,i,a);var o=i.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(),i.length>0&&e.during&&i[0].during(function(p,d){e.during(d)});for(var h=0;h<i.length;h++){var v=i[h];f&&v.done(f),c&&v.aborted(c),e.force&&v.duration(e.duration),v.start(e.easing)}return i}function Wp(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function Oz(r){return $e(r[0])}function Nz(r,t,e){if($e(t[e]))if($e(r[e])||(r[e]=[]),pr(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),Wp(r[e],t[e],n))}else{var a=t[e],i=r[e],o=a.length;if(Oz(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Wp(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Wp(i,a,o);i.length=a.length}else r[e]=t[e]}function Bz(r,t){return r===t||$e(r)&&$e(t)&&Vz(r,t)}function Vz(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 II(r,t,e,n,a,i,o,s){for(var l=Ot(n),u=a.duration,f=a.delay,c=a.additive,h=a.setToFinal,v=!gt(i),p=r.animators,d=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&e[y]!=null&&(v||i[y]))if(gt(m)&&!$e(m)&&!bv(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}II(r,y,e[y],m,a,i&&i[y],o,s)}else d.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),d.push(y))}var _=d.length;if(!c&&_)for(var S=0;S<p.length;S++){var b=p[S];if(b.targetName===t){var x=b.stopTracks(d);if(x){var w=It(p,b);p.splice(w,1)}}}if(a.force||(d=Zt(d,function(M){return!Bz(n[M],e[M])}),_=d.length),_>0||a.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},h&&(T={});for(var S=0;S<_;S++){var y=d[S];C[y]=e[y],h?T[y]=n[y]:e[y]=n[y]}}else if(h){A={};for(var S=0;S<_;S++){var y=d[S];A[y]=su(e[y]),Nz(e,n,y)}}var b=new O0(e,!1,!1,c?Zt(p,function(I){return I.targetName===t}):null);b.targetName=t,a.scope&&(b.scope=a.scope),h&&T&&b.whenWithKeys(0,T,d),A&&b.whenWithKeys(0,A,d),b.whenWithKeys(u??500,s?C:n,d).delay(f||0),r.addAnimator(b,t),o.push(b)}}var mt=function(r){V(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,a=0;a<n.length;a++)if(n[a].name===e)return n[a]},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 a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=It(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var o=this.__zr;o&&i.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,a=this._children,i=It(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a<e.length;a++){var i=e[a];n&&i.removeSelfFromZr(n),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];e.call(n,o,i)}return this},t.prototype.traverse=function(e,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=e.call(n,i);i.isGroup&&!o&&i.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 a=this._children[n];a.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new Mt(0,0,0,0),a=e||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(Mt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(Dv);mt.prototype.type="group";/*!
|
||
* 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 Zc={},LI={};function zz(r){delete LI[r]}function Fz(r){if(!r)return!1;if(typeof r=="string")return _h(r,1)<Iy;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,a=0;a<n;a++)e+=_h(t[a].color,1);return e/=n,e<Iy}return!1}var Gz=function(){function r(t,e,n){var a=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 i=new rz,o=n.renderer||"canvas";Zc[o]||(o=Ot(Zc)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Zc[o](e,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Rt.node&&!Rt.worker&&!l?new Pz(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Rt.touchEventsSupported:!!f,h=44,v;c&&(v=St(n.pointerSize,h)),this.handler=new lI(i,s,u,s.root,v),this.animation=new Tz({stage:{update:l?null:function(){return a._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=Fz(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=hs();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var a=hs();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-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 mt&&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,zz(this.id))},r}();function rx(r,t){var e=new Gz(rI(),r,t);return LI[e.id]=e,e}function Hz(r,t){Zc[r]=t}var Ry;function Wz(r){if(typeof Ry=="function")return Ry(r)}function Uz(r){Ry=r}var nx=1e-4,PI=20;function $z(r){return r.replace(/^\s+|\s+$/g,"")}function Xt(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/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)?$z(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function he(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),PI),r=(+r).toFixed(t),e?r:+r}function Hr(r){return r.sort(function(t,e){return t-e}),r}function Ln(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 Yz(r)}function Yz(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function RI(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Xz(r,t){var e=zn(r,function(v,p){return v+(isNaN(p)?0:p)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=X(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=X(a,function(v){return Math.floor(v)}),s=zn(o,function(v,p){return v+p},0),l=X(a,function(v,p){return v-o[p]});s<i;){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 X(o,function(v){return v/n})}function Zz(r,t){var e=Math.max(Ln(r),Ln(t)),n=r+t;return e>PI?n:he(n,e)}var ax=9007199254740991;function EI(r){var t=Math.PI*2;return(r%t+t)%t}function Ru(r){return r>-nx&&r<nx}var qz=/^(?:(\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 Hn(r){if(r instanceof Date)return r;if(nt(r)){var t=qz.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 Kz(r){return Math.pow(10,N0(r))}function N0(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 kI(r,t){var e=N0(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Up(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),a=+r[n-1],i=e-n;return i?a+i*(r[n]-a):a}function ix(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 a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-e),t=a[o],e=i[o];a[0]===a[1]&&i[0]*i[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 ca(r){var t=parseFloat(r);return t==r&&(t!==0||!nt(r)||r.indexOf("x")<=0)?t:NaN}function OI(r){return!isNaN(ca(r))}function NI(){return Math.round(Math.random()*9)}function BI(r,t){return t===0?r:BI(t,r%t)}function ox(r,t){return r==null?t:t==null?r:r*t/BI(r,t)}function Wt(r){throw new Error(r)}function sx(r,t,e){return(t-r)*e+r}var VI="series\0",zI="\0_ec_\0";function qt(r){return r instanceof Array?r:r==null?[]:[r]}function So(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n<a;n++){var i=e[n];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var lx=["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 $s(r){return gt(r)&&!W(r)&&!(r instanceof Date)?r.value:r}function jz(r){return gt(r)&&!(r instanceof Array)}function FI(r,t,e){var n=e==="normalMerge",a=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=ut();D(t,function(l,u){if(!gt(l)){t[u]=null;return}});var s=Qz(r,o,e);return(n||a)&&Jz(s,r,o,t),n&&t5(s,t),n||a?e5(s,t,a):i&&r5(s,t),n5(s),s}function Qz(r,t,e){var n=[];if(e==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:e==="replaceMerge"||Eu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function Jz(r,t,e,n){D(n,function(a,i){if(!(!a||a.id==null)){var o=lu(a.id),s=e.get(o);if(s!=null){var l=r[s];nr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function t5(r,t){D(t,function(e,n){if(!(!e||e.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||e.id==null)&&!Eu(e)&&!Eu(i)&&GI("name",i,e)){r[a].newOption=e,t[n]=null;return}}})}function e5(r,t,e){D(t,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||Eu(a.existing)||a.existing&&n.id!=null&&!GI("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),i++}})}function r5(r,t){D(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function n5(r){var t=ut();D(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),D(r,function(e){var n=e.newOption;nr(!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={})}),D(r,function(e,n){var a=e.existing,i=e.newOption,o=e.keyInfo;if(gt(i)){if(o.name=i.name!=null?lu(i.name):a?a.name:VI+n,a)o.id=lu(a.id);else if(i.id!=null)o.id=lu(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function GI(r,t,e){var n=_e(t[r],null),a=_e(e[r],null);return n!=null&&a!=null&&n===a}function lu(r){return _e(r,"")}function _e(r,t){return r==null?t:nt(r)?r:Gt(r)||fy(r)?r+"":t}function B0(r){var t=r.name;return!!(t&&t.indexOf(VI))}function Eu(r){return r&&r.id!=null&&lu(r.id).indexOf(zI)===0}function a5(r){return zI+r}function i5(r,t,e){D(r,function(n){var a=n.newOption;gt(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=o5(t,a,n.existing,e))})}function o5(r,t,e,n){var a=t.type?t.type:e?e.subType:n.determineSubType(r,t);return a}function s5(r,t){var e={},n={};return a(r||[],e),a(t||[],n,e),[i(e),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=_e(o[u].seriesId,null);if(c==null)return;for(var h=qt(o[u].dataIndex),v=l&&l[c],p=0,d=h.length;p<d;p++){var g=h[p];v&&v[g]?v[g]=null:(s[c]||(s[c]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function xo(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return W(t.dataIndex)?X(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return W(t.name)?X(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function zt(){var r="__ec_inner_"+l5++;return function(t){return t[r]||(t[r]={})}}var l5=NI();function uu(r,t,e){var n=V0(t,e),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=lf(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 V0(r,t){var e;if(nt(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var a=ut(),i={},o=!1;return D(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&It(t.includeMainTypes,f)<0)){o=o||!!f;var h=a.get(f)||a.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var ge={useDefault:!0,enableAll:!1,enableNone:!1},u5={useDefault:!1,enableAll:!0,enableNone:!0};function lf(r,t,e,n){n=n||ge;var a=e.index,i=e.id,o=e.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(nr(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(nr(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=r.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function HI(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function f5(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function c5(r){return r==="auto"?Rt.domSupported?"html":"richText":r||"html"}function Ey(r,t){var e=ut(),n=[];return D(r,function(a){var i=t(a);(e.get(i)||(n.push(i),e.set(i,[]))).push(a)}),{keys:n,buckets:e}}function WI(r,t,e,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Gt(n)){var o=sx(e||0,n,a);return he(o,i?Math.max(Ln(e||0),Ln(n)):t)}else{if(nt(n))return a<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]=(a<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,p=u[c],o=sx(v,p,a);s[c]=he(o,i?Math.max(Ln(v),Ln(p)):t)}}return s}}var h5=".",wi="___EC__COMPONENT__CONTAINER___",UI="___EC__EXTENDED_CLASS___";function Pn(r){var t={main:"",sub:""};if(r){var e=r.split(h5);t.main=e[0]||"",t.sub=e[1]||""}return t}function v5(r){nr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function p5(r){return!!(r&&r[UI])}function z0(r,t){r.$constructor=r,r.extend=function(e){var n=this,a;return d5(n)?a=function(i){V(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(e.$constructor||n).apply(this,arguments)},wV(a,this)),H(a.prototype,e),a[UI]=!0,a.extend=this.extend,a.superCall=m5,a.superApply=_5,a.superClass=n,a}}function d5(r){return vt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function $I(r,t){r.extend=t.extend}var g5=Math.round(Math.random()*10);function y5(r){var t=["__\0is_clz",g5++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function m5(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 _5(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Mv(r){var t={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){v5(a),n.prototype.type=a;var i=Pn(a);if(!i.sub)t[i.main]=n;else if(i.sub!==wi){var o=e(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=t[n];if(o&&o[wi]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=Pn(n),i=[],o=t[a.main];return o&&o[wi]?D(o,function(s,l){l!==wi&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=Pn(n);return!!t[a.main]},r.getAllClassMainTypes=function(){var n=[];return D(t,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=Pn(n),i=t[a.main];return i&&i[wi]};function e(n){var a=t[n.main];return(!a||!a[wi])&&(a=t[n.main]={},a[wi]=!0),a}}function bo(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,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&It(a,l)>=0||i&&It(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var S5=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],x5=bo(S5),b5=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return x5(this,t,e)},r}(),ky=new of(50);function w5(r){if(typeof r=="string"){var t=ky.get(r);return t&&t.image}else return r}function F0(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=ky.get(r),o={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!Iv(t)&&i.pending.push(o)):(t=ni.loadImage(r,ux,ux),t.__zrImageSrc=r,ky.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function ux(){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 Iv(r){return r&&r.width&&r.height}var $p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function T5(r,t,e,n,a){if(!t)return"";var i=(r+"").split(`
|
||
`);a=YI(t,e,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=XI(i[o],a);return i.join(`
|
||
`)}function YI(r,t,e,n){n=n||{};var a=H({},n);a.font=t,e=St(e,"..."),a.maxIterations=St(n.maxIterations,2);var i=a.minChar=St(n.minChar,0);a.cnCharWidth=Mr("国",t);var o=a.ascCharWidth=Mr("a",t);a.placeholder=St(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Mr(e,t);return u>s&&(e="",u=0),s=r-u,a.ellipsis=e,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function XI(r,t){var e=t.containerWidth,n=t.font,a=t.contentWidth;if(!e)return"";var i=Mr(r,n);if(i<=e)return r;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?C5(r,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,s),i=Mr(r,n)}return r===""&&(r=t.placeholder),r}function C5(r,t,e,n){for(var a=0,i=0,o=r.length;i<o&&a<t;i++){var s=r.charCodeAt(i);a+=0<=s&&s<=127?e:n}return i}function A5(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,a=t.font,i=e==="truncate",o=Av(a),s=St(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,c;f!=null&&(e==="break"||e==="breakAll")?c=r?ZI(r,t.font,f,e==="breakAll",0).lines:[]:c=r?r.split(`
|
||
`):[];var h=c.length*s,v=St(t.height,h);if(h>v&&u){var p=Math.floor(v/s);c=c.slice(0,p)}if(r&&i&&f!=null)for(var d=YI(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<c.length;g++)c[g]=XI(c[g],d);for(var y=v,m=0,g=0;g<c.length;g++)m=Math.max(Mr(c[g],a),m);f==null&&(f=m);var _=m;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:c,height:v,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:h,width:f}}var D5=function(){function r(){}return r}(),fx=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),M5=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function I5(r,t){var e=new M5;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=$p.lastIndex=0,l;(l=$p.exec(r))!=null;){var u=l.index;u>s&&Yp(e,r.substring(s,u),t,o),Yp(e,l[2],t,o,l[1]),s=$p.lastIndex}s<r.length&&Yp(e,r.substring(s,r.length),t,o);var f=[],c=0,h=0,v=t.padding,p=i==="truncate",d=t.lineOverflow==="truncate";function g(N,F,U){N.width=F,N.lineHeight=U,c+=U,h=Math.max(h,F)}t:for(var y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=0,S=0,b=0;b<m.tokens.length;b++){var x=m.tokens[b],w=x.styleName&&t.rich[x.styleName]||{},T=x.textPadding=w.padding,C=T?T[1]+T[3]:0,A=x.font=w.font||t.font;x.contentHeight=Av(A);var M=St(w.height,x.contentHeight);if(x.innerHeight=M,T&&(M+=T[0]+T[2]),x.height=M,x.lineHeight=Nn(w.lineHeight,t.lineHeight,M),x.align=w&&w.align||t.align,x.verticalAlign=w&&w.verticalAlign||"middle",d&&a!=null&&c+x.lineHeight>a){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var I=w.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=Mr(x.text,A);else{if(L){var P=w.backgroundColor,R=P&&P.image;R&&(R=w5(R),Iv(R)&&(x.width=Math.max(x.width,R.width*M/R.height)))}var O=p&&n!=null?n-S:null;O!=null&&O<x.width?!L||O<C?(x.text="",x.width=x.contentWidth=0):(x.text=T5(x.text,O-C,A,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=Mr(x.text,A)):x.contentWidth=Mr(x.text,A)}x.width+=C,S+=x.width,w&&(_=Math.max(_,x.lineHeight))}g(m,S,_)}e.outerWidth=e.width=St(n,h),e.outerHeight=e.height=St(a,c),e.contentHeight=c,e.contentWidth=h,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var x=f[y],B=x.percentWidth;x.width=parseInt(B,10)/100*e.width}return e}function Yp(r,t,e,n,a){var i=t==="",o=a&&e.rich[a]||{},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 p=cn(o.width,n.width)+v;s.length>0&&p+n.accumWidth>n.width&&(f=t.split(`
|
||
`),u=!0),n.accumWidth=p}else{var d=ZI(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+v,c=d.linesWidths,f=d.lines}}else f=t.split(`
|
||
`);for(var g=0;g<f.length;g++){var y=f[g],m=new D5;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=c?c[g]:Mr(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new fx)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new fx([m]))}}function L5(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var P5=zn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function R5(r){return L5(r)?!!P5[r]:!0}function ZI(r,t,e,n,a){for(var i=[],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),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Mr(h,t),p=n?!1:!R5(h);if(i.length?f+v>e:a+f+v>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=v)):p?(i.push(l),o.push(u),l=h,u=v):(i.push(h),o.push(v));continue}f+=v,p?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}var Oy="__zr_style_"+Math.round(Math.random()*10),fo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Lv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fo[Oy]=!0;var cx=["z","z2","invisible"],E5=["invisible"],Yr=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ot(e),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}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,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&k5(this,e,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&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 a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Mt(0,0,0,0)),n?Mt.applyTransform(e,a,n):e.copy(a),(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:H(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=zl,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&zl)},t.prototype.styleUpdated=function(){this.__dirty&=~zl},t.prototype.createStyle=function(e){return wv(fo,e)},t.prototype.useStyle=function(e){e[Oy]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Oy]},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,cx)},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Ot(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 p=Ot(u),h=0;h<p.length;h++){var v=p[h];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var d=this.__inHover?E5:cx,h=0;h<d.length;h++){var v=d[h];n&&n[v]!=null?this[v]=n[v]:l&&a[v]!=null&&(this[v]=a[v])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var o=e[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(e,n){return H(e,n),e},t.prototype.getAnimationStyleProps=function(){return Lv},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=wr|zl}(),t}(Dv),Xp=new Mt(0,0,0,0),Zp=new Mt(0,0,0,0);function k5(r,t,e){return Xp.copy(r.getBoundingRect()),r.transform&&Xp.applyTransform(r.transform),Zp.width=t,Zp.height=e,!Xp.intersect(Zp)}var cr=Math.min,hr=Math.max,qp=Math.sin,Kp=Math.cos,Ti=Math.PI*2,Uf=Mo(),$f=Mo(),Yf=Mo();function Pv(r,t,e){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=cr(a,n[0]),i=hr(i,n[0]),o=cr(o,n[1]),s=hr(s,n[1]);t[0]=a,t[1]=o,e[0]=i,e[1]=s}}function hx(r,t,e,n,a,i){a[0]=cr(r,e),a[1]=cr(t,n),i[0]=hr(r,e),i[1]=hr(t,n)}var vx=[],px=[];function O5(r,t,e,n,a,i,o,s,l,u){var f=vI,c=be,h=f(r,e,a,o,vx);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var p=c(r,e,a,o,vx[v]);l[0]=cr(p,l[0]),u[0]=hr(p,u[0])}h=f(t,n,i,s,px);for(var v=0;v<h;v++){var d=c(t,n,i,s,px[v]);l[1]=cr(d,l[1]),u[1]=hr(d,u[1])}l[0]=cr(r,l[0]),u[0]=hr(r,u[0]),l[0]=cr(o,l[0]),u[0]=hr(o,u[0]),l[1]=cr(t,l[1]),u[1]=hr(t,u[1]),l[1]=cr(s,l[1]),u[1]=hr(s,u[1])}function N5(r,t,e,n,a,i,o,s){var l=dI,u=Ie,f=hr(cr(l(r,e,a),1),0),c=hr(cr(l(t,n,i),1),0),h=u(r,e,a,f),v=u(t,n,i,c);o[0]=cr(r,a,h),o[1]=cr(t,i,v),s[0]=hr(r,a,h),s[1]=hr(t,i,v)}function B5(r,t,e,n,a,i,o,s,l){var u=Ha,f=Wa,c=Math.abs(a-i);if(c%Ti<1e-4&&c>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(Uf[0]=Kp(a)*e+r,Uf[1]=qp(a)*n+t,$f[0]=Kp(i)*e+r,$f[1]=qp(i)*n+t,u(s,Uf,$f),f(l,Uf,$f),a=a%Ti,a<0&&(a=a+Ti),i=i%Ti,i<0&&(i=i+Ti),a>i&&!o?i+=Ti:a<i&&o&&(a+=Ti),o){var h=i;i=a,a=h}for(var v=0;v<i;v+=Math.PI/2)v>a&&(Yf[0]=Kp(v)*e+r,Yf[1]=qp(v)*n+t,u(s,Yf,s),f(l,Yf,l))}var jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ci=[],Ai=[],yn=[],Ta=[],mn=[],_n=[],jp=Math.min,Qp=Math.max,Di=Math.cos,Mi=Math.sin,qn=Math.abs,Ny=Math.PI,Ea=Ny*2,Jp=typeof Float32Array<"u",pl=[];function td(r){var t=Math.round(r/Ny*1e8)/1e8;return t%2*Ny}function G0(r,t){var e=td(r[0]);e<0&&(e+=Ea);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=Ea?a=e+Ea:t&&e-a>=Ea?a=e-Ea:!t&&e>a?a=e+(Ea-td(e-a)):t&&e<a&&(a=e-(Ea-td(a-e))),r[0]=e,r[1]=a}var Wn=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=qn(n/xh/t)||0,this._uy=qn(n/xh/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(jt.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=qn(t-this._xi),a=qn(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(jt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){return this._drawPendingPt(),this.addData(jt.C,t,e,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(jt.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,o){this._drawPendingPt(),pl[0]=a,pl[1]=i,G0(pl,o),a=pl[0],i=pl[1];var s=i-a;return this.addData(jt.A,t,e,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,o),this._xi=Di(i)*n+t,this._yi=Mi(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(jt.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(jt.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)&&Jp&&(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,a=this._len,i=0;i<e;i++)n+=t[i].len();Jp&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<e;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},r.prototype.addData=function(t,e,n,a,i,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,Jp&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){yn[0]=yn[1]=mn[0]=mn[1]=Number.MAX_VALUE,Ta[0]=Ta[1]=_n[0]=_n[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],a=e,i=n),s){case jt.M:e=a=t[o++],n=i=t[o++],mn[0]=a,mn[1]=i,_n[0]=a,_n[1]=i;break;case jt.L:hx(e,n,t[o],t[o+1],mn,_n),e=t[o++],n=t[o++];break;case jt.C:O5(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],mn,_n),e=t[o++],n=t[o++];break;case jt.Q:N5(e,n,t[o++],t[o++],t[o],t[o+1],mn,_n),e=t[o++],n=t[o++];break;case jt.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],v=t[o++],p=t[o++]+v;o+=1;var d=!t[o++];l&&(a=Di(v)*c+u,i=Mi(v)*h+f),B5(u,f,c,h,v,p,d,mn,_n),e=Di(p)*c+u,n=Mi(p)*h+f;break;case jt.R:a=e=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];hx(a,i,a+g,i+y,mn,_n);break;case jt.Z:e=a,n=i;break}Ha(yn,yn,mn),Wa(Ta,Ta,_n)}return o===0&&(yn[0]=yn[1]=Ta[0]=Ta[1]=0),new Mt(yn[0],yn[1],Ta[0]-yn[0],Ta[1]-yn[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,a=this._uy,i=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++],p=h===1;p&&(i=t[h],o=t[h+1],s=i,l=o);var d=-1;switch(v){case jt.M:i=s=t[h++],o=l=t[h++];break;case jt.L:{var g=t[h++],y=t[h++],m=g-i,_=y-o;(qn(m)>n||qn(_)>a||h===e-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break}case jt.C:{var S=t[h++],b=t[h++],g=t[h++],y=t[h++],x=t[h++],w=t[h++];d=nz(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case jt.Q:{var S=t[h++],b=t[h++],g=t[h++],y=t[h++];d=iz(i,o,S,b,g,y,10),i=g,o=y;break}case jt.A:var T=t[h++],C=t[h++],A=t[h++],M=t[h++],I=t[h++],L=t[h++],P=L+I;h+=1,p&&(s=Di(I)*A+T,l=Mi(I)*M+C),d=Qp(A,M)*jp(Ea,Math.abs(L)),i=Di(P)*A+T,o=Mi(P)*M+C;break;case jt.R:{s=i=t[h++],l=o=t[h++];var R=t[h++],O=t[h++];d=R*2+O*2;break}case jt.Z:{var m=s-i,_=l-o;d=Math.sqrt(m*m+_*_),i=s,o=l;break}}d>=0&&(u[c++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,c,h,v=e<1,p,d,g=0,y=0,m,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=e*d,!m)))t:for(var x=0;x<o;){var w=n[x++],T=x===1;switch(T&&(u=n[x],f=n[x+1],s=u,l=f),w!==jt.L&&_>0&&(t.lineTo(S,b),_=0),w){case jt.M:s=u=n[x++],l=f=n[x++],t.moveTo(u,f);break;case jt.L:{c=n[x++],h=n[x++];var C=qn(c-u),A=qn(h-f);if(C>a||A>i){if(v){var M=p[y++];if(g+M>m){var I=(m-g)/M;t.lineTo(u*(1-I)+c*I,f*(1-I)+h*I);break t}g+=M}t.lineTo(c,h),u=c,f=h,_=0}else{var L=C*C+A*A;L>_&&(S=c,b=h,_=L)}break}case jt.C:{var P=n[x++],R=n[x++],O=n[x++],B=n[x++],N=n[x++],F=n[x++];if(v){var M=p[y++];if(g+M>m){var I=(m-g)/M;ai(u,P,O,N,I,Ci),ai(f,R,B,F,I,Ai),t.bezierCurveTo(Ci[1],Ai[1],Ci[2],Ai[2],Ci[3],Ai[3]);break t}g+=M}t.bezierCurveTo(P,R,O,B,N,F),u=N,f=F;break}case jt.Q:{var P=n[x++],R=n[x++],O=n[x++],B=n[x++];if(v){var M=p[y++];if(g+M>m){var I=(m-g)/M;Iu(u,P,O,I,Ci),Iu(f,R,B,I,Ai),t.quadraticCurveTo(Ci[1],Ai[1],Ci[2],Ai[2]);break t}g+=M}t.quadraticCurveTo(P,R,O,B),u=O,f=B;break}case jt.A:var U=n[x++],Z=n[x++],Q=n[x++],ft=n[x++],ht=n[x++],Tt=n[x++],xt=n[x++],G=!n[x++],$=Q>ft?Q:ft,K=qn(Q-ft)>.001,j=ht+Tt,J=!1;if(v){var M=p[y++];g+M>m&&(j=ht+Tt*(m-g)/M,J=!0),g+=M}if(K&&t.ellipse?t.ellipse(U,Z,Q,ft,xt,ht,j,G):t.arc(U,Z,$,ht,j,G),J)break t;T&&(s=Di(ht)*Q+U,l=Mi(ht)*ft+Z),u=Di(j)*Q+U,f=Mi(j)*ft+Z;break;case jt.R:s=u=n[x],l=f=n[x+1],c=n[x++],h=n[x++];var ct=n[x++],E=n[x++];if(v){var M=p[y++];if(g+M>m){var k=m-g;t.moveTo(c,h),t.lineTo(c+jp(k,ct),h),k-=ct,k>0&&t.lineTo(c+ct,h+jp(k,E)),k-=E,k>0&&t.lineTo(c+Qp(ct-k,0),h+E),k-=ct,k>0&&t.lineTo(c,h+Qp(E-k,0));break t}g+=M}t.rect(c,h,ct,E);break;case jt.Z:if(v){var M=p[y++];if(g+M>m){var I=(m-g)/M;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=M}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=jt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Va(r,t,e,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function V5(r,t,e,n,a,i,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>i+c&&f>s+c||f<t-c&&f<n-c&&f<i-c&&f<s-c||u>r+c&&u>e+c&&u>a+c&&u>o+c||u<r-c&&u<e-c&&u<a-c&&u<o-c)return!1;var h=pI(r,t,e,n,a,i,o,s,u,f,null);return h<=c/2}function qI(r,t,e,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>r+u&&s>e+u&&s>a+u||s<r-u&&s<e-u&&s<a-u)return!1;var f=gI(r,t,e,n,a,i,s,l,null);return f<=u/2}var dx=Math.PI*2;function Cr(r){return r%=dx,r<0&&(r+=dx),r}var dl=Math.PI*2;function z5(r,t,e,n,a,i,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-a)%dl<1e-4)return!0;if(i){var c=n;n=Cr(a),a=Cr(c)}else n=Cr(n),a=Cr(a);n>a&&(a+=dl);var h=Math.atan2(l,s);return h<0&&(h+=dl),h>=n&&h<=a||h+dl>=n&&h+dl<=a}function ta(r,t,e,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-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===a?1/0:l>a?s:0}var Ca=Wn.CMD,Ii=Math.PI*2,F5=1e-4;function G5(r,t){return Math.abs(r-t)<F5}var je=[-1,-1,-1],Nr=[-1,-1];function H5(){var r=Nr[0];Nr[0]=Nr[1],Nr[1]=r}function W5(r,t,e,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var f=yh(t,n,i,s,u,je);if(f===0)return 0;for(var c=0,h=-1,v=void 0,p=void 0,d=0;d<f;d++){var g=je[d],y=g===0||g===1?.5:1,m=be(r,e,a,o,g);m<l||(h<0&&(h=vI(t,n,i,s,Nr),Nr[1]<Nr[0]&&h>1&&H5(),v=be(t,n,i,s,Nr[0]),h>1&&(p=be(t,n,i,s,Nr[1]))),h===2?g<Nr[0]?c+=v<t?y:-y:g<Nr[1]?c+=p<v?y:-y:c+=s<p?y:-y:g<Nr[0]?c+=v<t?y:-y:c+=s<v?y:-y)}return c}function U5(r,t,e,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=az(t,n,i,s,je);if(l===0)return 0;var u=dI(t,n,i);if(u>=0&&u<=1){for(var f=0,c=Ie(t,n,i,u),h=0;h<l;h++){var v=je[h]===0||je[h]===1?.5:1,p=Ie(r,e,a,je[h]);p<o||(je[h]<u?f+=c<t?v:-v:f+=i<c?v:-v)}return f}else{var v=je[0]===0||je[0]===1?.5:1,p=Ie(r,e,a,je[0]);return p<o?0:i<t?v:-v}}function $5(r,t,e,n,a,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);je[0]=-l,je[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Ii-1e-4){n=0,a=Ii;var f=i?1:-1;return o>=je[0]+r&&o<=je[1]+r?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=Ii,a+=Ii);for(var h=0,v=0;v<2;v++){var p=je[v];if(p+r>o){var d=Math.atan2(s,p),f=i?1:-1;d<0&&(d=Ii+d),(d>=n&&d<=a||d+Ii>=n&&d+Ii<=a)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),h+=f)}}return h}function KI(r,t,e,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,h,v,p=0;p<o;){var d=i[p++],g=p===1;switch(d===Ca.M&&p>1&&(e||(s+=ta(l,u,f,c,n,a))),g&&(l=i[p],u=i[p+1],f=l,c=u),d){case Ca.M:f=i[p++],c=i[p++],l=f,u=c;break;case Ca.L:if(e){if(Va(l,u,i[p],i[p+1],t,n,a))return!0}else s+=ta(l,u,i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Ca.C:if(e){if(V5(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=W5(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Ca.Q:if(e){if(qI(l,u,i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=U5(l,u,i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Ca.A:var y=i[p++],m=i[p++],_=i[p++],S=i[p++],b=i[p++],x=i[p++];p+=1;var w=!!(1-i[p++]);h=Math.cos(b)*_+y,v=Math.sin(b)*S+m,g?(f=h,c=v):s+=ta(l,u,h,v,n,a);var T=(n-y)*S/_+y;if(e){if(z5(y,m,S,b,b+x,w,t,T,a))return!0}else s+=$5(y,m,S,b,b+x,w,T,a);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case Ca.R:f=l=i[p++],c=u=i[p++];var C=i[p++],A=i[p++];if(h=f+C,v=c+A,e){if(Va(f,c,h,c,t,n,a)||Va(h,c,h,v,t,n,a)||Va(h,v,f,v,t,n,a)||Va(f,v,f,c,t,n,a))return!0}else s+=ta(h,c,h,v,n,a),s+=ta(f,v,f,c,n,a);break;case Ca.Z:if(e){if(Va(l,u,f,c,t,n,a))return!0}else s+=ta(l,u,f,c,n,a);l=f,u=c;break}}return!e&&!G5(u,c)&&(s+=ta(l,u,f,c,n,a)||0),s!==0}function Y5(r,t,e){return KI(r,0,!1,t,e)}function X5(r,t,e,n){return KI(r,t,!0,e,n)}var wh=dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fo),Z5={style:dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Lv.style)},ed=Gn.concat(["invisible","culling","z","z2","zlevel","parent"]),Pt=function(r){V(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 a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){e.buildPath(l,e.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<ed.length;++s)a[ed[s]]=this[ed[s]];a.__dirty|=wr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=Ot(e);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=e[o];o==="style"?this.style?H(this.style,s):this.useStyle(s):o==="shape"?H(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=_h(e,0);return n>.5?Ly:n>.2?Rz:Py}else if(e)return Py}return Ly},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=_h(e,0)<Iy;if(i===o)return n}},t.prototype.buildPath=function(e,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~os},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 Wn(!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,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&os)&&(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||a){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??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),o=this.style;if(e=a[0],n=a[1],i.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)),X5(s,l/u,e,n)))return!0}if(this.hasFill())return Y5(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=os,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 a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:H(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&os)},t.prototype.createStyle=function(e){return wv(wh,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=H({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=H({},a.shape),H(u,n.shape)):(u=H({},i?this.shape:a.shape),H(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=H({},this.shape);for(var f={},c=Ot(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),a,i=0;i<e.length;i++){var o=e[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return Z5},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(i){V(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return yt(e.style)},o.prototype.getDefaultShape=function(){return yt(e.shape)},o}(t);for(var a in e)typeof e[a]=="function"&&(n.prototype[a]=e[a]);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=wr|zl|os}(),t}(Yr),q5=dt({strokeFirst:!0,font:ri,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},wh),Ps=function(r){V(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 wv(q5,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 a=sf(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Yr);Ps.prototype.type="tspan";var K5=dt({x:0,y:0},fo),j5={style:dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Lv.style)};function Q5(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Pe=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return wv(K5,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=Q5(n.image)?n.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return j5},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);Pe.prototype.type="image";function J5(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),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>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),r.moveTo(e+s,n),r.lineTo(e+a-l,n),l!==0&&r.arc(e+a-l,n+l,l,-Math.PI/2,0),r.lineTo(e+a,n+i-u),u!==0&&r.arc(e+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(e+f,n+i),f!==0&&r.arc(e+f,n+i-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 vs=Math.round;function jI(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(vs(n*2)===vs(a*2)&&(r.x1=r.x2=Ji(n,s,!0)),vs(i*2)===vs(o*2)&&(r.y1=r.y2=Ji(i,s,!0))),r}}function QI(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Ji(n,s,!0),r.y=Ji(a,s,!0),r.width=Math.max(Ji(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Ji(a+o,s,!1)-r.y,o===0?0:1)),r}}function Ji(r,t,e){if(!t)return r;var n=vs(r*2);return(n+vs(t))%2===0?n/2:(n+(e?1:-1))/2}var tF=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),eF={},Vt=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new tF},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=QI(eF,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?J5(e,n):e.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Pt);Vt.prototype.type="rect";var gx={fill:"#000"},yx=2,rF={style:dt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Lv.style)},Ft=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=gx,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,iF(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,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||gx},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var a=n.rich,i=e.rich||a&&{};return H(e,n),a&&i?(this._mergeRich(i,a),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,n){for(var a=Ot(n),i=0;i<a.length;i++){var o=a[i];e[o]=e[o]||{},H(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return rF},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||ri,a=e.padding,i=Cx(e),o=A5(i,e),s=rd(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,v=o.lineHeight,p=this._defaultStyle,d=e.x||0,g=e.y||0,y=e.align||p.align||"left",m=e.verticalAlign||p.verticalAlign||"top",_=d,S=ss(g,o.contentHeight,m);if(s||a){var b=Gl(d,f,y),x=ss(g,u,m);s&&this._renderBackground(e,e,b,x,f,u)}S+=v/2,a&&(_=Tx(d,y,a),m==="top"?S+=a[0]:m==="bottom"&&(S-=a[2]));for(var w=0,T=!1,C=bx("fill"in e?e.fill:(T=!0,p.fill)),A=xx("stroke"in e?e.stroke:!l&&(!p.autoStroke||T)?(w=yx,p.stroke):null),M=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 R=this._getOrCreateChild(Ps),O=R.createStyle();R.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,M&&(O.shadowBlur=e.textShadowBlur||0,O.shadowColor=e.textShadowColor||"transparent",O.shadowOffsetX=e.textShadowOffsetX||0,O.shadowOffsetY=e.textShadowOffsetY||0),O.stroke=A,O.fill=C,A&&(O.lineWidth=e.lineWidth||w,O.lineDash=e.lineDash,O.lineDashOffset=e.lineDashOffset||0),O.font=n,_x(O,e),S+=v,I&&R.setBoundingRect(new Mt(Gl(O.x,e.width,O.textAlign),ss(O.y,L,O.textBaseline),c,L))}},t.prototype._updateRichTexts=function(){var e=this.style,n=Cx(e),a=I5(n,e),i=a.width,o=a.outerWidth,s=a.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,p=Gl(u,o,h),d=ss(f,s,v),g=p,y=d;l&&(g+=l[3],y+=l[0]);var m=g+i;rd(e)&&this._renderBackground(e,e,p,d,o,s);for(var _=!!e.backgroundColor,S=0;S<a.lines.length;S++){for(var b=a.lines[S],x=b.tokens,w=x.length,T=b.lineHeight,C=b.width,A=0,M=g,I=m,L=w-1,P=void 0;A<w&&(P=x[A],!P.align||P.align==="left");)this._placeToken(P,e,T,y,M,"left",_),C-=P.width,M+=P.width,A++;for(;L>=0&&(P=x[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(M+=(i-(M-g)-(m-I)-C)/2;A<=L;)P=x[A],this._placeToken(P,e,T,y,M+P.width/2,"center",_),M+=P.width,A++;y+=T}},t.prototype._placeToken=function(e,n,a,i,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=i+a/2;f==="top"?c=i+e.height/2:f==="bottom"&&(c=i+a-e.height/2);var h=!e.isLineHolder&&rd(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,p=e.textPadding;p&&(o=Tx(o,s,p),c-=e.height/2-p[0]-e.innerHeight/2);var d=this._getOrCreateChild(Ps),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=bx("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=xx("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=yx,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,x&&(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||ri,g.opacity=Nn(u.opacity,n.opacity,1),_x(g,u),b&&(g.lineWidth=Nn(u.lineWidth,n.lineWidth,_),g.lineDash=St(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=e.contentWidth,T=e.contentHeight;d.setBoundingRect(new Mt(Gl(g.x,w,g.textAlign),ss(g.y,T,g.textBaseline),w,T))},t.prototype._renderBackground=function(e,n,a,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,h=l&&!c,v=e.borderRadius,p=this,d,g;if(h||e.lineHeight||u&&f){d=this._getOrCreateChild(Vt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=v,d.dirtyShape()}if(h){var m=d.style;m.fill=l||null,m.fillOpacity=St(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Pe),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=St(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Nn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return tL(e)&&(n=[e.fontStyle,e.fontWeight,JI(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&an(n)||e.textFont||e.font},t}(Yr),nF={left:!0,right:1,center:1},aF={top:1,bottom:1,middle:1},mx=["fontStyle","fontWeight","fontSize","fontFamily"];function JI(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?w0+"px":r+"px"}function _x(r,t){for(var e=0;e<mx.length;e++){var n=mx[e],a=t[n];a!=null&&(r[n]=a)}}function tL(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function iF(r){return Sx(r),D(r.rich,Sx),r}function Sx(r){if(r){r.font=Ft.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||nF[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||aF[e]?e:"top";var n=r.padding;n&&(r.padding=I0(r.padding))}}function xx(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function bx(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Tx(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Cx(r){var t=r.text;return t!=null&&(t+=""),t}function rd(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var _t=zt(),By=function(r,t,e,n){if(n){var a=_t(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=_t(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Ax=1,Dx={},eL=zt(),H0=zt(),W0=0,uf=1,Rv=2,ar=["emphasis","blur","select"],ku=["normal","emphasis","blur","select"],Ys=10,oF=9,co="highlight",qc="downplay",fu="select",Kc="unselect",cu="toggleSelect";function Go(r){return r!=null&&r!=="none"}function Ev(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function rL(r){Ev(r,"emphasis",Rv)}function nL(r){r.hoverState===Rv&&Ev(r,"normal",W0)}function U0(r){Ev(r,"blur",uf)}function aL(r){r.hoverState===uf&&Ev(r,"normal",W0)}function sF(r){r.selected=!0}function lF(r){r.selected=!1}function Mx(r,t,e){t(r,e)}function _a(r,t,e){Mx(r,t,e),r.isGroup&&r.traverse(function(n){Mx(n,t,e)})}function Th(r,t){switch(t){case"emphasis":r.hoverState=Rv;break;case"normal":r.hoverState=W0;break;case"blur":r.hoverState=uf;break;case"select":r.selected=!0}}function uF(r,t,e,n){for(var a=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}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(i,t)}return i}function fF(r,t,e,n){var a=e&&It(e,"select")>=0,i=!1;if(r instanceof Pt){var o=eL(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Go(s)||Go(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=H({},n),u=H({},u),u.fill=s):!Go(u.fill)&&Go(s)?(i=!0,n=H({},n),u=H({},u),u.fill=by(s)):!Go(u.stroke)&&Go(l)&&(i||(n=H({},n),u=H({},u)),u.stroke=by(l)),n.style=u}}if(n&&n.z2==null){i||(n=H({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??Ys)}return n}function cF(r,t,e){if(e&&e.z2==null){e=H({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??oF)}return e}function hF(r,t,e){var n=It(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:uF(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=H({},e),o=H({opacity:n?a:i.opacity*.1},o),e.style=o),e}function nd(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return fF(this,r,t,e);if(r==="blur")return hF(this,r,e);if(r==="select")return cF(this,r,e)}return e}function wo(r){r.stateProxy=nd;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=nd),e&&(e.stateProxy=nd)}function Ix(r,t){!lL(r,t)&&!r.__highByOuter&&_a(r,rL)}function Lx(r,t){!lL(r,t)&&!r.__highByOuter&&_a(r,nL)}function ha(r,t){r.__highByOuter|=1<<(t||0),_a(r,rL)}function va(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&_a(r,nL)}function iL(r){_a(r,U0)}function $0(r){_a(r,aL)}function oL(r){_a(r,sF)}function sL(r){_a(r,lF)}function lL(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function uL(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=H0(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){aL(u)}),s&&e.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function Vy(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&$0(h)}}if(r!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.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"||U0(g)}),$e(t))i(u.getData(),t);else if(gt(t))for(var p=Ot(t),d=0;d<p.length;d++)i(u.getData(p[d]),t[p[d]]);l.push(u),H0(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function zy(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){H0(n).isBlured=!0;var a=e.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){U0(i)})}}}function vF(r,t,e){var n=r.seriesIndex,a=r.getData(t.dataType);if(a){var i=xo(a,t);i=(W(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=_t(o);Vy(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Vy(n,f,c,e)}}}function Y0(r,t,e,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return a;var i=n.getModel().getComponent(r,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(_t(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function pF(r,t,e){var n=_t(r),a=Y0(n.componentMainType,n.componentIndex,n.componentHighDownName,e),i=a.dispatchers,o=a.focusSelf;i?(o&&zy(n.componentMainType,n.componentIndex,e),D(i,function(s){return Ix(s,t)})):(Vy(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&zy(n.componentMainType,n.componentIndex,e),Ix(r,t))}function dF(r,t,e){uL(e);var n=_t(r),a=Y0(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;a?D(a,function(i){return Lx(i,t)}):Lx(r,t)}function gF(r,t,e){if(Gy(t)){var n=t.dataType,a=r.getData(n),i=xo(a,t);W(i)||(i=[i]),r[t.type===cu?"toggleSelect":t.type===fu?"select":"unselect"](i,n)}}function Px(r){var t=r.getAllData();D(t,function(e){var n=e.data,a=e.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?oL(i):sL(i)})})}function yF(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();D(n,function(a){a.data;var i=a.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function ho(r,t,e){to(r,!0),_a(r,wo),Fy(r,t,e)}function mF(r){to(r,!1)}function ce(r,t,e,n){n?mF(r):ho(r,t,e)}function Fy(r,t,e){var n=_t(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Rx=["emphasis","blur","select"],_F={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Oe(r,t,e,n){e=e||"itemStyle";for(var a=0;a<Rx.length;a++){var i=Rx[a],o=t.getModel([i,e]),s=r.ensureState(i);s.style=n?n(o):o[_F[e]]()}}function to(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 Ou(r){return!!(r&&r.__highDownDispatcher)}function SF(r,t,e){var n=_t(r);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=e}function xF(r){var t=Dx[r];return t==null&&Ax<=32&&(t=Dx[r]=Ax++),t}function Gy(r){var t=r.type;return t===fu||t===Kc||t===cu}function Ex(r){var t=r.type;return t===co||t===qc}function bF(r){var t=eL(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 Ho=Wn.CMD,wF=[[],[],[]],kx=Math.sqrt,TF=Math.atan2;function fL(r,t){if(t){var e=r.data,n=r.len(),a,i,o,s,l,u,f=Ho.M,c=Ho.C,h=Ho.L,v=Ho.R,p=Ho.A,d=Ho.Q;for(o=0,s=0;o<n;){switch(a=e[o++],s=o,i=0,a){case f:i=1;break;case h:i=1;break;case c:i=3;break;case d:i=2;break;case p:var g=t[4],y=t[5],m=kx(t[0]*t[0]+t[1]*t[1]),_=kx(t[2]*t[2]+t[3]*t[3]),S=TF(-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++],Ee(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Ee(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var b=wF[l];b[0]=e[o++],b[1]=e[o++],Ee(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var ad=Math.sqrt,Xf=Math.sin,Zf=Math.cos,gl=Math.PI;function Ox(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Hy(r,t){return(r[0]*t[0]+r[1]*t[1])/(Ox(r)*Ox(t))}function Nx(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Hy(r,t))}function Bx(r,t,e,n,a,i,o,s,l,u,f){var c=l*(gl/180),h=Zf(c)*(r-e)/2+Xf(c)*(t-n)/2,v=-1*Xf(c)*(r-e)/2+Zf(c)*(t-n)/2,p=h*h/(o*o)+v*v/(s*s);p>1&&(o*=ad(p),s*=ad(p));var d=(a===i?-1:1)*ad((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=d*o*v/s,y=d*-s*h/o,m=(r+e)/2+Zf(c)*g-Xf(c)*y,_=(t+n)/2+Xf(c)*g+Zf(c)*y,S=Nx([1,0],[(h-g)/o,(v-y)/s]),b=[(h-g)/o,(v-y)/s],x=[(-1*h-g)/o,(-1*v-y)/s],w=Nx(b,x);if(Hy(b,x)<=-1&&(w=gl),Hy(b,x)>=1&&(w=0),w<0){var T=Math.round(w/gl*1e6)/1e6;w=gl*2+T%2*gl}f.addData(u,m,_,o,s,S,w,c,i)}var CF=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,AF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function DF(r){var t=new Wn;if(!r)return t;var e=0,n=0,a=e,i=n,o,s=Wn.CMD,l=r.match(CF);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(AF)||[],p=v.length,d=0;d<p;d++)v[d]=parseFloat(v[d]);for(var g=0;g<p;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=e,C=n,A=void 0,M=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),a=e,i=n,c="l";break;case"M":e=v[g++],n=v[g++],h=s.M,t.addData(h,e,n),a=e,i=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,A=t.len(),M=t.data,o===s.C&&(y+=e-M[A-4],m+=n-M[A-3]),h=s.C,T=v[g++],C=v[g++],e=v[g++],n=v[g++],t.addData(h,y,m,T,C,e,n);break;case"s":y=e,m=n,A=t.len(),M=t.data,o===s.C&&(y+=e-M[A-4],m+=n-M[A-3]),h=s.C,T=e+v[g++],C=n+v[g++],e+=v[g++],n+=v[g++],t.addData(h,y,m,T,C,e,n);break;case"Q":T=v[g++],C=v[g++],e=v[g++],n=v[g++],h=s.Q,t.addData(h,T,C,e,n);break;case"q":T=v[g++]+e,C=v[g++]+n,e+=v[g++],n+=v[g++],h=s.Q,t.addData(h,T,C,e,n);break;case"T":y=e,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=e-M[A-4],m+=n-M[A-3]),e=v[g++],n=v[g++],h=s.Q,t.addData(h,y,m,e,n);break;case"t":y=e,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=e-M[A-4],m+=n-M[A-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++],b=v[g++],x=v[g++],w=v[g++],T=e,C=n,e=v[g++],n=v[g++],h=s.A,Bx(T,C,e,n,x,w,_,S,b,h,t);break;case"a":_=v[g++],S=v[g++],b=v[g++],x=v[g++],w=v[g++],T=e,C=n,e+=v[g++],n+=v[g++],h=s.A,Bx(T,C,e,n,x,w,_,S,b,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),e=a,n=i),o=h}return t.toStatic(),t}var cL=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Pt);function hL(r){return r.setData!=null}function vL(r,t){var e=DF(r),n=H({},t);return n.buildPath=function(a){if(hL(a)){a.setData(e.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;e.rebuildPath(i,1)}},n.applyTransform=function(a){fL(e,a),this.dirtyShape()},n}function pL(r,t){return new cL(vL(r,t))}function MF(r,t){var e=vL(r,t),n=function(a){V(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i}(cL);return n}function IF(r,t){for(var e=[],n=r.length,a=0;a<n;a++){var i=r[a];e.push(i.getUpdatedPathProxy(!0))}var o=new Pt(t);return o.createPathProxy(),o.buildPath=function(s){if(hL(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function X0(r,t){t=t||{};var e=new Pt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?fL(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 LF=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),Sa=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new LF},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);Sa.prototype.type="circle";var PF=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),kv=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new PF},t.prototype.buildPath=function(e,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),e.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),e.closePath()},t}(Pt);kv.prototype.type="ellipse";var dL=Math.PI,id=dL*2,Li=Math.sin,Wo=Math.cos,RF=Math.acos,Ve=Math.atan2,Vx=Math.abs,hu=Math.sqrt,Hl=Math.max,Sn=Math.min,Jr=1e-4;function EF(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,h=c*l-f*u;if(!(h*h<Jr))return h=(f*(t-i)-c*(r-a))/h,[r+h*l,t+h*u]}function qf(r,t,e,n,a,i,o){var s=r-e,l=t-n,u=(o?i:-i)/hu(s*s+l*l),f=u*l,c=-u*s,h=r+f,v=t+c,p=e+f,d=n+c,g=(h+p)/2,y=(v+d)/2,m=p-h,_=d-v,S=m*m+_*_,b=a-i,x=h*d-p*v,w=(_<0?-1:1)*hu(Hl(0,b*b*S-x*x)),T=(x*_-m*w)/S,C=(-x*m-_*w)/S,A=(x*_+m*w)/S,M=(-x*m+_*w)/S,I=T-g,L=C-y,P=A-g,R=M-y;return I*I+L*L>P*P+R*R&&(T=A,C=M),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(a/b-1),y1:C*(a/b-1)}}function kF(r){var t;if(W(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 OF(r,t){var e,n=Hl(t.r,0),a=Hl(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,v=Vx(u-l),p=v>id&&v%id;if(p>Jr&&(v=p),!(n>Jr))r.moveTo(f,c);else if(v>id-Jr)r.moveTo(f+n*Wo(l),c+n*Li(l)),r.arc(f,c,n,l,u,!h),a>Jr&&(r.moveTo(f+a*Wo(u),c+a*Li(u)),r.arc(f,c,a,u,l,h));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,A=void 0,M=void 0,I=void 0,L=void 0,P=void 0,R=n*Wo(l),O=n*Li(l),B=a*Wo(u),N=a*Li(u),F=v>Jr;if(F){var U=t.cornerRadius;U&&(e=kF(U),d=e[0],g=e[1],y=e[2],m=e[3]);var Z=Vx(n-a)/2;if(_=Sn(Z,y),S=Sn(Z,m),b=Sn(Z,d),x=Sn(Z,g),C=w=Hl(_,S),A=T=Hl(b,x),(w>Jr||T>Jr)&&(M=n*Wo(u),I=n*Li(u),L=a*Wo(l),P=a*Li(l),v<dL)){var Q=EF(R,O,L,P,M,I,B,N);if(Q){var ft=R-Q[0],ht=O-Q[1],Tt=M-Q[0],xt=I-Q[1],G=1/Li(RF((ft*Tt+ht*xt)/(hu(ft*ft+ht*ht)*hu(Tt*Tt+xt*xt)))/2),$=hu(Q[0]*Q[0]+Q[1]*Q[1]);C=Sn(w,(n-$)/(G+1)),A=Sn(T,(a-$)/(G-1))}}}if(!F)r.moveTo(f+R,c+O);else if(C>Jr){var K=Sn(y,C),j=Sn(m,C),J=qf(L,P,R,O,n,K,h),ct=qf(M,I,B,N,n,j,h);r.moveTo(f+J.cx+J.x0,c+J.cy+J.y0),C<w&&K===j?r.arc(f+J.cx,c+J.cy,C,Ve(J.y0,J.x0),Ve(ct.y0,ct.x0),!h):(K>0&&r.arc(f+J.cx,c+J.cy,K,Ve(J.y0,J.x0),Ve(J.y1,J.x1),!h),r.arc(f,c,n,Ve(J.cy+J.y1,J.cx+J.x1),Ve(ct.cy+ct.y1,ct.cx+ct.x1),!h),j>0&&r.arc(f+ct.cx,c+ct.cy,j,Ve(ct.y1,ct.x1),Ve(ct.y0,ct.x0),!h))}else r.moveTo(f+R,c+O),r.arc(f,c,n,l,u,!h);if(!(a>Jr)||!F)r.lineTo(f+B,c+N);else if(A>Jr){var K=Sn(d,A),j=Sn(g,A),J=qf(B,N,M,I,a,-j,h),ct=qf(R,O,L,P,a,-K,h);r.lineTo(f+J.cx+J.x0,c+J.cy+J.y0),A<T&&K===j?r.arc(f+J.cx,c+J.cy,A,Ve(J.y0,J.x0),Ve(ct.y0,ct.x0),!h):(j>0&&r.arc(f+J.cx,c+J.cy,j,Ve(J.y0,J.x0),Ve(J.y1,J.x1),!h),r.arc(f,c,a,Ve(J.cy+J.y1,J.cx+J.x1),Ve(ct.cy+ct.y1,ct.cx+ct.x1),h),K>0&&r.arc(f+ct.cx,c+ct.cy,K,Ve(ct.y1,ct.x1),Ve(ct.y0,ct.x0),!h))}else r.lineTo(f+B,c+N),r.arc(f,c,a,u,l,h)}r.closePath()}}}var NF=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}(),ir=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new NF},t.prototype.buildPath=function(e,n){OF(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pt);ir.prototype.type="sector";var BF=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),ff=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new BF},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,o,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,o,!0)},t}(Pt);ff.prototype.type="ring";function VF(r,t,e,n){var a=[],i=[],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++)Ha(f,f,r[h]),Wa(c,c,r[h]);Ha(f,f,n[0]),Wa(c,c,n[1])}for(var h=0,v=r.length;h<v;h++){var p=r[h];if(e)l=r[h?h-1:v-1],u=r[(h+1)%v];else if(h===0||h===v-1){a.push(ia(r[h]));continue}else l=r[h-1],u=r[h+1];Qi(i,u,l),Hc(i,i,t);var d=vy(p,l),g=vy(p,u),y=d+g;y!==0&&(d/=y,g/=y),Hc(o,i,-d),Hc(s,i,g);var m=LS([],p,o),_=LS([],p,s);n&&(Wa(m,m,f),Ha(m,m,c),Wa(_,_,f),Ha(_,_,c)),a.push(m),a.push(_)}return e&&a.push(a.shift()),a}function gL(r,t,e){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=VF(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)r.lineTo(a[s][0],a[s][1])}e&&r.closePath()}}var zF=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),or=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new zF},t.prototype.buildPath=function(e,n){gL(e,n,!0)},t}(Pt);or.prototype.type="polygon";var FF=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),sr=function(r){V(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 FF},t.prototype.buildPath=function(e,n){gL(e,n,!1)},t}(Pt);sr.prototype.type="polyline";var GF={},HF=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),Te=function(r){V(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 HF},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=jI(GF,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(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);Te.prototype.type="line";var lr=[],WF=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 zx(r,t,e){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(e?HS:be)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?HS:be)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?my:Ie)(r.x1,r.cpx1,r.x2,t),(e?my:Ie)(r.y1,r.cpy1,r.y2,t)]}var cf=function(r){V(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 WF},t.prototype.buildPath=function(e,n){var a=n.x1,i=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(a,i),f==null||c==null?(h<1&&(Iu(a,l,o,h,lr),l=lr[1],o=lr[2],Iu(i,u,s,h,lr),u=lr[1],s=lr[2]),e.quadraticCurveTo(l,u,o,s)):(h<1&&(ai(a,l,f,o,h,lr),l=lr[1],f=lr[2],o=lr[3],ai(i,u,c,s,h,lr),u=lr[1],c=lr[2],s=lr[3]),e.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(e){return zx(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=zx(this.shape,e,!0);return Ws(n,n)},t}(Pt);cf.prototype.type="bezier-curve";var UF=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}(),Ov=function(r){V(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 UF},t.prototype.buildPath=function(e,n){var a=n.cx,i=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+a,c*o+i),e.arc(a,i,o,s,l,!u)},t}(Pt);Ov.prototype.type="arc";var Z0=function(r){V(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(),a=0;a<e.length;a++)n=n||e[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<e.length;a++)e[a].path||e[a].createPathProxy(),e[a].path.setScale(n[0],n[1],e[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(e,a[i].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),yL=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),hf=function(r){V(t,r);function t(e,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(yL),mL=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,i)||this;return s.x=e??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(yL),Pi=[0,0],Ri=[0,0],Kf=new Ct,jf=new Ct,Ch=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,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),e)for(var u=0;u<4;u++)n[u].transform(e);Ct.sub(a[0],n[1],n[0]),Ct.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,a=!e;return Kf.set(1/0,1/0),jf.set(0,0),!this._intersectCheckOneSide(this,t,Kf,jf,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,Kf,jf,a,-1)&&(n=!1,a)||a||Ct.copy(e,n?Kf:jf),n},r.prototype._intersectCheckOneSide=function(t,e,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Pi),this._getProjMinMaxOnAxis(l,e._corners,Ri),Pi[1]<Ri[0]||Pi[0]>Ri[1]){if(s=!1,i)return s;var f=Math.abs(Ri[0]-Pi[1]),c=Math.abs(Pi[0]-Ri[1]);Math.min(f,c)>a.len()&&(f<c?Ct.scale(a,u,-f*o):Ct.scale(a,u,c*o))}else if(n){var f=Math.abs(Ri[0]-Pi[1]),c=Math.abs(Pi[0]-Ri[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 a=this._axes[t],i=this._origin,o=e[0].dot(a)+i[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(a)+i[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}(),$F=[],YF=function(r){V(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 a=0;a<e.length;a++)this.addDisplayable(e[a],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 a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform($F)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(i.contain(a[0],a[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),_L=zt();function Xs(r,t,e,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=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=St(n.duration,200),f=St(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),vt(c)&&(c=c(e,a)),vt(u)&&(u=u(e));var h={duration:u||0,delay:c,easing:f};return h}else return null}function q0(r,t,e,n,a,i,o){var s=!1,l;vt(a)?(o=i,i=a,a=null):gt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Xs(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,p={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,p):t.animateTo(e,p)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Ht(r,t,e,n,a,i){q0("update",r,t,e,n,a,i)}function ie(r,t,e,n,a,i){q0("enter",r,t,e,n,a,i)}function bs(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 ii(r,t,e,n,a,i){bs(r)||q0("leave",r,t,e,n,a,i)}function Fx(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),ii(r,{style:{opacity:0}},t,e,n)}function Nu(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||Fx(a,t,e,n)}):Fx(r,t,e,n)}function hn(r){_L(r).oldStyle=r.style}function XF(r){return _L(r).oldStyle}var Ah=Math.max,Dh=Math.min,Wy={};function ZF(r){return Pt.extend(r)}var qF=MF;function KF(r,t){return qF(r,t)}function vn(r,t){Wy[r]=t}function K0(r){if(Wy.hasOwnProperty(r))return Wy[r]}function Nv(r,t,e,n){var a=pL(r,t);return e&&(n==="center"&&(e=xL(e,a.getBoundingRect())),bL(a,e)),a}function SL(r,t,e){var n=new Pe({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(e==="center"){var i={width:a.width,height:a.height};n.setStyle(xL(t,i))}}});return n}function xL(r,t){var e=t.width/t.height,n=r.height*e,a;n<=r.width?a=r.height:(n=r.width,a=n/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Fr=IF;function bL(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Rs(r,t){return jI(r,r,{lineWidth:t}),r}function jF(r){return QI(r.shape,r.shape,r.style),r}var jc=Ji;function vo(r,t){for(var e=Tv([]);r&&r!==t;)oa(e,r.getLocalTransform(),e),r=r.parent;return e}function un(r,t,e){return t&&!$e(t)&&(t=ea.getLocalTransform(t)),e&&(t=Us([],t)),Ee([],r,t)}function Bv(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=un(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Gx(r){return!r.isGroup}function QF(r){return r.shape!=null}function vf(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Gx(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return QF(o)&&(s.shape=H({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Gx(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Ht(o,l,e,_t(o).dataIndex)}}})}function wL(r,t){return X(r,function(e){var n=e[0];n=Ah(n,t.x),n=Dh(n,t.x+t.width);var a=e[1];return a=Ah(a,t.y),a=Dh(a,t.y+t.height),[n,a]})}function JF(r,t){var e=Ah(r.x,t.x),n=Dh(r.x+r.width,t.x+t.width),a=Ah(r.y,t.y),i=Dh(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function pf(r,t,e){var n=H({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),dt(a,e),new Pe(n)):Nv(r.replace("path://",""),n,e,"center")}function Wl(r,t,e,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(TL(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function TL(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,h=od(f,c,l,u);if(tG(h))return!1;var v=r-a,p=t-i,d=od(v,p,l,u)/h;if(d<0||d>1)return!1;var g=od(v,p,f,c)/h;return!(g<0||g>1)}function od(r,t,e,n){return r*n-e*t}function tG(r){return r<=1e-6&&r>=-1e-6}function Zs(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=nt(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&D(Ot(l),function(f){st(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=_t(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:dt({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Hx(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function vi(r,t){if(r)if(W(r))for(var e=0;e<r.length;e++)Hx(r[e],t);else Hx(r,t)}vn("circle",Sa);vn("ellipse",kv);vn("sector",ir);vn("ring",ff);vn("polygon",or);vn("polyline",sr);vn("rect",Vt);vn("line",Te);vn("bezierCurve",cf);vn("arc",Ov);const Lo=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ov,BezierCurve:cf,BoundingRect:Mt,Circle:Sa,CompoundPath:Z0,Ellipse:kv,Group:mt,Image:Pe,IncrementalDisplayable:YF,Line:Te,LinearGradient:hf,OrientedBoundingRect:Ch,Path:Pt,Point:Ct,Polygon:or,Polyline:sr,RadialGradient:mL,Rect:Vt,Ring:ff,Sector:ir,Text:Ft,applyTransform:un,clipPointsByRect:wL,clipRectByRect:JF,createIcon:pf,extendPath:KF,extendShape:ZF,getShapeClass:K0,getTransform:vo,groupTransition:vf,initProps:ie,isElementRemoved:bs,lineLineIntersect:TL,linePolygonIntersect:Wl,makeImage:SL,makePath:Nv,mergePath:Fr,registerShape:vn,removeElement:ii,removeElementWithFadeOut:Nu,resizePath:bL,setTooltipConfig:Zs,subPixelOptimize:jc,subPixelOptimizeLine:Rs,subPixelOptimizeRect:jF,transformDirection:Bv,traverseElements:vi,updateProps:Ht},Symbol.toStringTag,{value:"Module"}));var Vv={};function CL(r,t){for(var e=0;e<ar.length;e++){var n=ar[e],a=t[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Uy(r,t,e){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=vt(r.defaultText)?r.defaultText(a,r,e):r.defaultText);for(var l={normal:s},u=0;u<ar.length;u++){var f=ar[u],c=t[f];l[f]=St(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function Ne(r,t,e,n){e=e||Vv;for(var a=r instanceof Ft,i=!1,o=0;o<ku.length;o++){var s=t[ku[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new Ft,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Uy(e,t),f=t.normal,c=!!f.getShallow("show"),h=ne(f,n&&n.normal,e,!1,!a);h.text=u.normal,a||r.setTextConfig(Mh(f,e,!1));for(var o=0;o<ar.length;o++){var v=ar[o],s=t[v];if(s){var p=l.ensureState(v),d=!!St(s.getShallow("show"),c);if(d!==c&&(p.ignore=!d),p.style=ne(s,n&&n[v],e,!0,!a),p.style.text=u[v],!a){var g=r.ensureState(v);g.textConfig=Mh(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&&(qs(l).setLabelText=function(y){var m=Uy(e,t,y);CL(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<ar.length;n++){var a=ar[n];e[a]=r.getModel([a,t])}return e}function ne(r,t,e,n,a){var i={};return eG(i,r,e,n,a),t&&H(i,t),i}function Mh(r,t,e){t=t||{};var n={},a,i=r.getShallow("rotate"),o=St(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(e?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function eG(r,t,e,n,a){e=e||Vv;var i=t.ecModel,o=i&&i.option.textStyle,s=rG(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Yx(l[u]={},f,o,e,n,a,!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),Yx(r,t,o,e,n,a,!0,!1)}function rG(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Vv).rich;if(e){t=t||{};for(var n=Ot(e),a=0;a<n.length;a++){var i=n[a];t[i]=1}}r=r.parentModel}return t}var Wx=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ux=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],$x=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Yx(r,t,e,n,a,i,o,s){e=!a&&e||Vv;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=St(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),i||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var h=St(t.getShallow("textBorderWidth"),e.textBorderWidth);h!=null&&(r.lineWidth=h);var v=St(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var p=St(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!a&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(r.opacity=c),!a&&!i&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var d=0;d<Wx.length;d++){var g=Wx[d],y=St(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var d=0;d<Ux.length;d++){var g=Ux[d],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 d=0;d<$x.length;d++){var g=$x[d],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 j0(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 qs=zt();function AL(r,t,e,n){if(r){var a=qs(r);a.prevValue=a.value,a.value=e;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function DL(r,t,e,n,a){var i=qs(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=St(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=WI(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=Uy({labelDataIndex:t,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);CL(r,h)}r.percent=0,(i.prevValue==null?ie:Ht)(r,{percent:1},n,t,null,u)}var nG=["textStyle","color"],sd=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ld=new Ft,aG=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(nG):null)},r.prototype.getFont=function(){return j0({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<sd.length;n++)e[sd[n]]=this.getShallow(sd[n]);return ld.useStyle(e),ld.update(),ld.getBoundingRect()},r}(),ML=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],iG=bo(ML),oG=function(){function r(){}return r.prototype.getLineStyle=function(t){return iG(this,t)},r}(),IL=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],sG=bo(IL),lG=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return sG(this,t,e)},r}(),Ut=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){Dt(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,a=n==null?n:n[t];if(a==null&&!e){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},r.prototype.getModel=function(t,e){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,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(yt(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(!Rt.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 a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();z0(Ut);y5(Ut);me(Ut,oG);me(Ut,lG);me(Ut,b5);me(Ut,aG);var uG=Math.round(Math.random()*10);function Ks(r){return[r||"",uG++].join("_")}function fG(r){var t={};r.registerSubTypeDefaulter=function(e,n){var a=Pn(e);t[a.main]=n},r.determineSubType=function(e,n){var a=n.type;if(!a){var i=Pn(e).main;r.hasSubTypes(e)&&t[i]&&(a=t[i](n))}return a}}function cG(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,c=u.noEntryList,h={};for(D(i,function(m){h[m]=!0});c.length;){var v=c.pop(),p=f[v],d=!!h[v];d&&(s.call(l,v,p.originalDeps.slice()),delete h[v]),D(p.successor,d?y:g)}D(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(i){var o={},s=[];return D(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),D(c,function(h){It(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);It(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return D(i,function(l){It(o,l)>=0&&s.push(l)}),s}}function pi(r,t){return Dt(Dt({},r,!0),t,!0)}const hG={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:". "}}}},vG={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 Ih="ZH",Q0="EN",ws=Q0,Qc={},J0={},LL=Rt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ws).toUpperCase();return r.indexOf(Ih)>-1?Ih:ws}():ws;function PL(r,t){r=r.toUpperCase(),J0[r]=new Ut(t),Qc[r]=t}function pG(r){if(nt(r)){var t=Qc[r.toUpperCase()]||{};return r===Ih||r===Q0?yt(t):Dt(yt(t),yt(Qc[ws]),!1)}else return Dt(yt(r),yt(Qc[ws]),!1)}function $y(r){return J0[r]}function dG(){return J0[ws]}PL(Q0,hG);PL(Ih,vG);var t_=1e3,e_=t_*60,vu=e_*60,Gr=vu*24,Xx=Gr*365,Ul={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}"},Qf="{yyyy}-{MM}-{dd}",Zx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Qf,hour:Qf+" "+Ul.hour,minute:Qf+" "+Ul.minute,second:Qf+" "+Ul.second,millisecond:Ul.none},ud=["year","month","day","hour","minute","second","millisecond"],RL=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Aa(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ts(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 gG(r){return r===Ts(r)}function yG(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function zv(r,t,e,n){var a=Hn(r),i=a[r_(e)](),o=a[Cs(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Fv(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[Bu(e)](),c=(f-1)%12+1,h=a[Gv(e)](),v=a[Hv(e)](),p=a[Wv(e)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=n instanceof Ut?n:$y(n||LL)||dG(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Aa(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Aa(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Aa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Aa(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Aa(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Aa(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Aa(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Aa(p,3)).replace(/{S}/g,p+"")}function mG(r,t,e,n,a){var i=null;if(nt(e))i=e;else if(vt(e))i=e(r.value,t,{level:r.level});else{var o=H({},Ul);if(r.level>0)for(var s=0;s<ud.length;++s)o[ud[s]]="{primary|"+o[ud[s]]+"}";var l=e?e.inherit===!1?e:dt(e,o):o,u=EL(r.value,a);if(l[u])i=l[u];else if(l.inherit){for(var f=RL.indexOf(u),s=f-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(W(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return zv(new Date(r.value),i,a,n)}function EL(r,t){var e=Hn(r),n=e[Cs(t)]()+1,a=e[Fv(t)](),i=e[Bu(t)](),o=e[Gv(t)](),s=e[Hv(t)](),l=e[Wv(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,p=v&&n===1;return p?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function qx(r,t,e){var n=Gt(r)?Hn(r):r;switch(t=t||EL(r,e),t){case"year":return n[r_(e)]();case"half-year":return n[Cs(e)]()>=6?1:0;case"quarter":return Math.floor((n[Cs(e)]()+1)/4);case"month":return n[Cs(e)]();case"day":return n[Fv(e)]();case"half-day":return n[Bu(e)]()/24;case"hour":return n[Bu(e)]();case"minute":return n[Gv(e)]();case"second":return n[Hv(e)]();case"millisecond":return n[Wv(e)]()}}function r_(r){return r?"getUTCFullYear":"getFullYear"}function Cs(r){return r?"getUTCMonth":"getMonth"}function Fv(r){return r?"getUTCDate":"getDate"}function Bu(r){return r?"getUTCHours":"getHours"}function Gv(r){return r?"getUTCMinutes":"getMinutes"}function Hv(r){return r?"getUTCSeconds":"getSeconds"}function Wv(r){return r?"getUTCMilliseconds":"getMilliseconds"}function _G(r){return r?"setUTCFullYear":"setFullYear"}function kL(r){return r?"setUTCMonth":"setMonth"}function OL(r){return r?"setUTCDate":"setDate"}function NL(r){return r?"setUTCHours":"setHours"}function BL(r){return r?"setUTCMinutes":"setMinutes"}function VL(r){return r?"setUTCSeconds":"setSeconds"}function zL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function FL(r){if(!OI(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 GL(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 js=I0;function Yy(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&an(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Hn(r):r;if(isNaN(+l)){if(s)return"-"}else return zv(l,n,e)}if(t==="ordinal")return fy(r)?a(r):Gt(r)&&i(r)?r+"":"-";var u=ca(r);return i(u)?FL(u):fy(r)?a(r):typeof r=="boolean"?r+"":"-"}var Kx=["a","b","c","d","e","f","g"],fd=function(r,t){return"{"+r+(t??"")+"}"};function HL(r,t,e){W(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=Kx[i];r=r.replace(fd(o),fd(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];r=r.replace(fd(Kx[l],s),e?fr(u):u)}return r}function SG(r,t,e){return D(t,function(n,a){r=r.replace("{"+a+"}",n)}),r}function xG(r,t){var e=nt(r)?{color:r,extraCssText:t}:r||{},n=e.color,a=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+fr(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+fr(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function To(r,t){return t=t||"transparent",nt(r)?r:gt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Lh(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Jc=D,WL=["left","right","top","bottom","width","height"],eo=[["width","left","right"],["height","top","bottom"]];function n_(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,p;if(r==="horizontal"){var d=f.width+(h?-h.x+f.x:0);v=i+d,v>n||l.newline?(i=0,v=d,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);p=o+g,p>a||l.newline?(i+=s+e,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=p+e)})}var po=n_;bt(n_,"vertical");bt(n_,"horizontal");function bG(r,t,e){var n=t.width,a=t.height,i=et(r.left,n),o=et(r.top,a),s=et(r.right,n),l=et(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),e=js(e||0),{width:Math.max(s-i-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function xe(r,t,e){e=js(e||0);var n=t.width,a=t.height,i=et(r.left,n),o=et(r.top,a),s=et(r.right,n),l=et(r.bottom,a),u=et(r.width,n),f=et(r.height,a),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var p=new Mt(i+e[3],o+e[0],u,f);return p.margin=e,p}function Uv(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.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=xe(dt({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"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function wG(r,t){return r[eo[t][0]]!=null||r[eo[t][1]]!=null&&r[eo[t][2]]!=null}function Vu(r){var t=r.layoutMode||r.constructor.layoutMode;return gt(t)?t:t?{type:t}:null}function oi(r,t,e){var n=e&&e.ignoreSize;!W(n)&&(n=[n,n]);var a=o(eo[0],0),i=o(eo[1],1);u(eo[0],r,a),u(eo[1],r,i);function o(f,c){var h={},v=0,p={},d=0,g=2;if(Jc(f,function(_){p[_]=r[_]}),Jc(f,function(_){s(t,_)&&(h[_]=p[_]=t[_]),l(h,_)&&v++,l(p,_)&&d++}),n[c])return l(t,f[1])?p[f[2]]=null:l(t,f[2])&&(p[f[1]]=null),p;if(d===g||!v)return p;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){Jc(f,function(v){c[v]=h[v]})}}function Qs(r){return UL({},r)}function UL(r,t){return t&&r&&Jc(WL,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var TG=zt(),kt=function(r){V(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.uid=Ks("ec_cpt_model"),i}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Vu(this),i=a?Qs(e):{},o=n.getTheme();Dt(e,o.get(this.mainType)),Dt(e,this.getDefaultOption()),a&&oi(e,i,a)},t.prototype.mergeOption=function(e,n){Dt(this.option,e,!0);var a=Vu(this);a&&oi(this.option,e,a)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!p5(e))return e.defaultOption;var n=TG(this);if(!n.defaultOption){for(var a=[],i=e;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Dt(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return lf(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!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}(Ut);$I(kt,Ut);Mv(kt);fG(kt);cG(kt,CG);function CG(r){var t=[];return D(kt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=X(t,function(e){return Pn(e).main}),r!=="dataset"&&It(t,"dataset")<=0&&t.unshift("dataset"),t}var $L="";typeof navigator<"u"&&($L=navigator.platform||"");var Uo="rgba(0, 0, 0, 0.2)";const AG={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Uo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Uo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Uo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Uo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Uo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Uo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$L.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 YL=ut(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Zr="original",Ye="arrayRows",qr="objectRows",Un="keyedColumns",Qa="typedArray",XL="unknown",Bn="column",Js="row",Re={Must:1,Might:2,Not:3},ZL=zt();function DG(r){ZL(r).datasetMap=ut()}function qL(r,t,e){var n={},a=i_(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=ZL(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),D(r,function(d,g){var y=gt(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,c=p(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});D(r,function(d,g){var y=d.name,m=p(d);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(i,0,m);else{var _=h.categoryWayDim;v(n[y],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function a_(r,t,e){var n={},a=i_(r);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===qr||i===Un)&&D(o,function(f,c){(gt(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},h=[],v=0,p=Math.min(5,e);v<p;v++){var d=jL(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);h.push(d);var g=d===Re.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&h[f.n]===Re.Not)&&(f.n=v),y(f)&&h[f.n]!==Re.Not)return f;g||(d===Re.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??l.n;n.itemName=[u],n.seriesName=[u]}return n}function i_(r){var t=r.get("data",!0);if(!t)return lf(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ge).models[0]}function MG(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:lf(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ge).models}function KL(r,t){return jL(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function jL(r,t,e,n,a,i){var o,s=5;if(pr(r))return Re.Not;var l,u;if(n){var f=n[i];gt(f)?(l=f.name,u=f.type):nt(f)&&(l=f)}if(u!=null)return u==="ordinal"?Re.Must:Re.Not;if(t===Ye){var c=r;if(e===Js){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[a+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var p=c[a+v];if(p&&(o=S(p[i]))!=null)return o}}else if(t===qr){var d=r;if(!l)return Re.Not;for(var v=0;v<d.length&&v<s;v++){var g=d[v];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Un){var y=r;if(!l)return Re.Not;var h=y[l];if(!h||pr(h))return Re.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(t===Zr)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=$s(g);if(!W(_))return Re.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=nt(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?Re.Might:Re.Not;if(x&&b!=="-")return Re.Must}return Re.Not}var Xy=ut();function IG(r,t){nr(Xy.get(r)==null&&t),Xy.set(r,t)}function LG(r,t,e){var n=Xy.get(t);if(!n)return e;var a=n(r);return a?e.concat(a):e}var jx=zt(),PG=zt(),o_=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var a=qt(this.get("color",!0)),i=this.get("colorLayer",!0);return QL(this,jx,a,i,t,e,n)},r.prototype.clearColorPalette=function(){EG(this,jx)},r}();function Zy(r,t,e,n){var a=qt(r.get(["aria","decal","decals"]));return QL(r,PG,a,null,t,e,n)}function RG(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 QL(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:RG(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function EG(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Jf,yl,Qx,Jx="\0_ec_inner",kG=1,s_=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ut(i),this._locale=new Ut(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=rb(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,rb(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Qx(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&D(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ut(),u=n&&n.replaceMergeMainTypeMap;DG(this),D(e,function(c,h){c!=null&&(kt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?yt(c):Dt(a[h],c,!0))}),u&&u.each(function(c,h){kt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),kt.topologicalTravel(s,kt.getAllClassMainTypes(),f,this);function f(c){var h=LG(this,c,qt(e[c])),v=i.get(c),p=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=FI(v,h,p);i5(d,c,kt),a[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;D(d,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",C=kt.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=H({componentIndex:b},S.keyInfo);x=new C(w,this,this,A),H(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),a[c]=g,i.set(c,y),o.set(c,m),c==="series"&&Jf(this)}this._seriesIndices||Jf(this)},t.prototype.getOption=function(){var e=yt(this.option);return D(e,function(n,a){if(kt.hasClass(a)){for(var i=qt(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Eu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[Jx],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 a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var a=e.index,i=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],D(qt(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=tb("id",i,s):o!=null?l=tb("name",o,s):l=Zt(s,function(u){return!!u}),eb(l,e)},t.prototype.findComponents=function(e){var n=e.query,a=e.mainType,i=s(n),o=i?this.queryComponents(i):Zt(this._componentsMap.get(a),function(u){return!!u});return l(eb(o,e));function s(u){var f=a+"Index",c=a+"Id",h=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:a,index:u[f],id:u[c],name:u[h]}:null}function l(u){return e.filter?Zt(u,e.filter):u}},t.prototype.eachComponent=function(e,n,a){var i=this._componentsMap;if(vt(e)){var o=n,s=e;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var p=c[v];p&&s.call(o,h,p,p.componentIndex)}})}else for(var l=nt(e)?i.get(e):gt(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=_e(e,null);return Zt(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Zt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return Zt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){yl(this),D(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];e.call(n,i,a)},this)},t.prototype.eachRawSeries=function(e,n){D(this._componentsMap.get("series"),function(a){a&&e.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,a){yl(this),D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,n,a){return D(this.getSeriesByType(e),n,a)},t.prototype.isSeriesFiltered=function(e){return yl(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){yl(this);var a=[];D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ut(a)},t.prototype.restoreData=function(e){Jf(this);var n=this._componentsMap,a=[];n.each(function(i,o){kt.hasClass(o)&&a.push(o)}),kt.topologicalTravel(a,kt.getAllClassMainTypes(),function(i){D(n.get(i),function(o){o&&(i!=="series"||!OG(o,e))&&o.restoreData()})})},t.internalField=function(){Jf=function(e){var n=e._seriesIndices=[];D(e._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),e._seriesIndicesMap=ut(n)},yl=function(e){},Qx=function(e,n){e.option={},e.option[Jx]=kG,e._componentsMap=ut({series:[]}),e._componentsCount=ut();var a=n.aria;gt(a)&&a.enabled==null&&(a.enabled=!0),NG(n,e._theme.option),Dt(n,AG,!1),e._mergeOption(n,null)}}(),t}(Ut);function OG(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,a=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||a!=null&&r.name!==a}}function NG(r,t){var e=r.color&&!r.colorLayer;D(t,function(n,a){a==="colorLayer"&&e||kt.hasClass(a)||(typeof n=="object"?r[a]=r[a]?Dt(r[a],n,!1):yt(n):r[a]==null&&(r[a]=n))})}function tb(r,t,e){if(W(t)){var n=ut();return D(t,function(i){if(i!=null){var o=_e(i,null);o!=null&&n.set(i,!0)}}),Zt(e,function(i){return i&&n.get(i[r])})}else{var a=_e(t,null);return Zt(e,function(i){return i&&a!=null&&i[r]===a})}}function eb(r,t){return t.hasOwnProperty("subType")?Zt(r,function(e){return e&&e.subType===t.subType}):r}function rb(r){var t=ut();return r&&D(qt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}me(s_,o_);var BG=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],JL=function(){function r(t){D(BG,function(e){this[e]=it(t[e],t)},this)}return r}(),cd={},df=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];D(cd,function(a,i){var o=a.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){D(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){cd[t]=e},r.get=function(t){return cd[t]},r}(),VG=/^(min|max)?(.+)$/,zG=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(D(qt(t.series),function(o){o&&o.data&&pr(o.data)&&vh(o.data)}),D(qt(t.dataset),function(o){o&&o.source&&pr(o.source)&&vh(o.source)})),t=yt(t);var a=this._optionBackup,i=FG(t,e,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],yt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(e=yt(n[a.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)GG(a[l].query,e,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!WG(o,this._currentMediaIndices)&&(s=X(o,function(f){return yt(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r}();function FG(r,t,e){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&W(u)&&D(u,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),h(i),D(l,function(v){return h(v)}),D(n,function(v){return h(v.option)});function h(v){D(t,function(p){p(v,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function GG(r,t,e){var n={width:t,height:e,aspectratio:t/e},a=!0;return D(r,function(i,o){var s=o.match(VG);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();HG(n[u],i,l)||(a=!1)}}),a}function HG(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function WG(r,t){return r.join(",")===t.join(",")}var jr=D,zu=gt,nb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hd(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=nb.length;e<n;e++){var a=nb[e],i=t.normal,o=t.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?Dt(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?Dt(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Fe(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,a=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,dt(r[t],n)):r[t]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[t]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function $l(r){Fe(r,"itemStyle"),Fe(r,"lineStyle"),Fe(r,"areaStyle"),Fe(r,"label"),Fe(r,"labelLine"),Fe(r,"upperLabel"),Fe(r,"edgeLabel")}function de(r,t){var e=zu(r)&&r[t],n=zu(e)&&e.textStyle;if(n)for(var a=0,i=lx.length;a<i;a++){var o=lx[a];n.hasOwnProperty(o)&&(e[o]=n[o])}}function Or(r){r&&($l(r),de(r,"label"),r.emphasis&&de(r.emphasis,"label"))}function UG(r){if(zu(r)){hd(r),$l(r),de(r,"label"),de(r,"upperLabel"),de(r,"edgeLabel"),r.emphasis&&(de(r.emphasis,"label"),de(r.emphasis,"upperLabel"),de(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(hd(t),Or(t));var e=r.markLine;e&&(hd(e),Or(e));var n=r.markArea;n&&Or(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!pr(i))for(var o=0;o<i.length;o++)Or(i[o]);D(r.categories,function(u){$l(u)})}if(a&&!pr(a))for(var o=0;o<a.length;o++)Or(a[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Or(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)W(l[o])?(Or(l[o][0]),Or(l[o][1])):Or(l[o]);r.type==="gauge"?(de(r,"axisLabel"),de(r,"title"),de(r,"detail")):r.type==="treemap"?(Fe(r.breadcrumb,"itemStyle"),D(r.levels,function(u){$l(u)})):r.type==="tree"&&$l(r.leaves)}}function Kn(r){return W(r)?r:r?[r]:[]}function ab(r){return(W(r)?r[0]:r)||{}}function $G(r,t){jr(Kn(r.series),function(n){zu(n)&&UG(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),jr(e,function(n){jr(Kn(r[n]),function(a){a&&(de(a,"axisLabel"),de(a.axisPointer,"label"))})}),jr(Kn(r.parallel),function(n){var a=n&&n.parallelAxisDefault;de(a,"axisLabel"),de(a&&a.axisPointer,"label")}),jr(Kn(r.calendar),function(n){Fe(n,"itemStyle"),de(n,"dayLabel"),de(n,"monthLabel"),de(n,"yearLabel")}),jr(Kn(r.radar),function(n){de(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(Kn(r.geo),function(n){zu(n)&&(Or(n),jr(Kn(n.regions),function(a){Or(a)}))}),jr(Kn(r.timeline),function(n){Or(n),Fe(n,"label"),Fe(n,"itemStyle"),Fe(n,"controlStyle",!0);var a=n.data;W(a)&&D(a,function(i){gt(i)&&(Fe(i,"label"),Fe(i,"itemStyle"))})}),jr(Kn(r.toolbox),function(n){Fe(n,"iconStyle"),jr(n.feature,function(a){Fe(a,"iconStyle")})}),de(ab(r.axisPointer),"label"),de(ab(r.tooltip).axisPointer,"label")}function YG(r,t){for(var e=t.split(","),n=r,a=0;a<e.length&&(n=n&&n[e[a]],n!=null);a++);return n}function XG(r,t,e,n){for(var a=t.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=e)}function ib(r){r&&D(ZG,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var ZG=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],qG=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ml(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<vd.length;e++){var n=vd[e][1],a=vd[e][0];t[n]!=null&&(t[a]=t[n])}}function ob(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function sb(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function KG(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function t2(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&t2(r[e].children,t)}function e2(r,t){$G(r,t),r.series=qt(r.series),D(r.series,function(e){if(gt(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),ob(e.label);var a=e.data;if(a&&!pr(a))for(var i=0;i<a.length;i++)ob(a[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=YG(e,"pointer.color");o!=null&&XG(e,"itemStyle.color",o)}else if(n==="bar"){ml(e),ml(e.backgroundStyle),ml(e.emphasis);var a=e.data;if(a&&!pr(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(ml(a[i]),ml(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),sb(e),t2(e.data,sb)}else n==="graph"||n==="sankey"?KG(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&dt(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),ib(e)}}),r.dataRange&&(r.visualMap=r.dataRange),D(qG,function(e){var n=r[e];n&&(W(n)||(n=[n]),D(n,function(a){ib(a)}))})}function jG(r){var t=ut();r.eachSeries(function(e){var n=e.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(QG)}function QG(r){D(r,function(t,e){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return a;var v,p;s?p=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var d=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,v)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=Zz(h,m),d=m;break}}}return n[0]=h,n[1]=d,n})})}var $v=function(){function r(t){this.data=t.data||(t.sourceFormat===Un?{}:[]),this.sourceFormat=t.sourceFormat||XL,this.seriesLayoutBy=t.seriesLayoutBy||Bn,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 a=e[n];a.type==null&&KL(this,n)===Re.Must&&(a.type="ordinal")}}return r}();function l_(r){return r instanceof $v}function qy(r,t,e){e=e||r2(r);var n=t.seriesLayoutBy,a=t3(r,e,n,t.sourceHeader,t.dimensions),i=new $v({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:yt(t)});return i}function u_(r){return new $v({data:r,sourceFormat:pr(r)?Qa:Zr})}function JG(r){return new $v({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:yt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function r2(r){var t=XL;if(pr(r))t=Qa;else if(W(r)){r.length===0&&(t=Ye);for(var e=0,n=r.length;e<n;e++){var a=r[e];if(a!=null){if(W(a)||pr(a)){t=Ye;break}else if(gt(a)){t=qr;break}}}}else if(gt(r)){for(var i in r)if(st(r,i)&&$e(r[i])){t=Un;break}}return t}function t3(r,t,e,n,a){var i,o;if(!r)return{dimensionsDefine:lb(a),startIndex:o,dimensionsDetectedCount:i};if(t===Ye){var s=r;n==="auto"||n==null?ub(function(u){u!=null&&u!=="-"&&(nt(u)?o==null&&(o=1):o=0)},e,s,10):o=Gt(n)?n:n?1:0,!a&&o===1&&(a=[],ub(function(u,f){a[f]=u!=null?u+"":""},e,s,1/0)),i=a?a.length:e===Js?s.length:s[0]?s[0].length:null}else if(t===qr)a||(a=e3(r));else if(t===Un)a||(a=[],D(r,function(u,f){a.push(f)}));else if(t===Zr){var l=$s(r[0]);i=W(l)&&l.length||1}return{startIndex:o,dimensionsDefine:lb(a),dimensionsDetectedCount:i}}function e3(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Ot(e)}function lb(r){if(r){var t=ut();return X(r,function(e,n){e=gt(e)?e:{name:e};var a={name:e.name,displayName:e.displayName,type:e.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function ub(r,t,e,n){if(t===Js)for(var a=0;a<e.length&&a<n;a++)r(e[a]?e[a][0]:null,a);else for(var i=e[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function n2(r){var t=r.sourceFormat;return t===qr||t===Un}var Ei,ki,Oi,fb,cb,a2=function(){function r(t,e){var n=l_(t)?t:u_(t);this._source=n;var a=this._data=n.data;n.sourceFormat===Qa&&(this._offset=0,this._dimSize=e,this._data=a),cb(this,a,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;cb=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=fb[f_(u,f)];if(H(o,v),u===Qa)o.getItem=e,o.count=a,o.fillStorage=n;else{var p=i2(u,f);o.getItem=it(p,null,s,c,h);var d=o2(u,f);o.count=it(d,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],p=v[0]==null?1/0:v[0],d=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]=_,_<p&&(p=_),_>d&&(d=_)}v[0]=p,v[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};fb=(t={},t[Ye+"_"+Bn]={pure:!0,appendData:i},t[Ye+"_"+Js]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[qr]={pure:!0,appendData:i},t[Un]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Zr]={appendData:i},t[Qa]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),hb=function(r,t,e,n){return r[n]},r3=(Ei={},Ei[Ye+"_"+Bn]=function(r,t,e,n){return r[n+t]},Ei[Ye+"_"+Js]=function(r,t,e,n,a){n+=t;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Ei[qr]=hb,Ei[Un]=function(r,t,e,n,a){for(var i=a||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];i[o]=l?l[n]:null}return i},Ei[Zr]=hb,Ei);function i2(r,t){var e=r3[f_(r,t)];return e}var vb=function(r,t,e){return r.length},n3=(ki={},ki[Ye+"_"+Bn]=function(r,t,e){return Math.max(0,r.length-t)},ki[Ye+"_"+Js]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},ki[qr]=vb,ki[Un]=function(r,t,e){var n=e[0].name,a=r[n];return a?a.length:0},ki[Zr]=vb,ki);function o2(r,t){var e=n3[f_(r,t)];return e}var pd=function(r,t,e){return r[t]},a3=(Oi={},Oi[Ye]=pd,Oi[qr]=function(r,t,e){return r[e]},Oi[Un]=pd,Oi[Zr]=function(r,t,e){var n=$s(r);return n instanceof Array?n[t]:n},Oi[Qa]=pd,Oi);function s2(r){var t=a3[r];return t}function f_(r,t){return r===Ye?r+"_"+t:r}function Es(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=a.getDimensionProperty(o);return s2(i)(n,o,s)}else{var l=n;return i===Zr&&(l=$s(n)),l}}}}var i3=/\{@(.+?)\}/g,Yv=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),a=this.getRawValue(t,e),i=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:i,data:s,dataType:e,value:a,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,a,i,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&W(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(vt(i))return l.status=e,l.dimensionIndex=a,i(l);if(nt(i)){var f=HL(i,l);return f.replace(i3,function(c,h){var v=h.length,p=h;p.charAt(0)==="["&&p.charAt(v-1)==="]"&&(p=+p.slice(1,v-1));var d=Es(s,t,p);if(o&&W(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return Es(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function pb(r){var t,e;return gt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function pu(r){return new o3(r)}var o3=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 a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=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)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="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,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<p)){var d=this._progress;if(W(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],v,p,l,u);else this._doProgress(d,v,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;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,a,i){db.reset(e,n,a,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:db.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),W(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.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}(),db=function(){var r,t,e,n,a,i={reset:function(l,u,f,c){t=l,r=u,e=f,n=c,a=Math.ceil(n/e),i.next=e>1&&n>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%a*e+Math.ceil(t/a),u=t>=r?null:l<n?l:t;return t++,u}}();function Ja(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Gt(r)&&r!=null&&r!=="-"&&(r=+Hn(r)),r==null||r===""?NaN:Number(r))}var s3=ut({number:function(r){return parseFloat(r)},time:function(r){return+Hn(r)},trim:function(r){return nt(r)?an(r):r}});function l2(r){return s3.get(r)}var u2={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}},l3=function(){function r(t,e){if(!Gt(e)){var n="";Wt(n)}this._opFn=u2[t],this._rvalFloat=ca(e)}return r.prototype.evaluate=function(t){return Gt(t)?this._opFn(t,this._rvalFloat):this._opFn(ca(t),this._rvalFloat)},r}(),f2=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=Gt(t)?t:ca(t),a=Gt(e)?e:ca(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=nt(t),l=nt(e);s&&(n=l?t:0),l&&(a=s?e:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r}(),u3=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ca(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=ca(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function f3(r,t){return r==="eq"||r==="ne"?new u3(r==="eq",t):st(u2,r)?new l3(r,t):null}var c3=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 Ja(t,e)},r}();function h3(r,t){var e=new c3,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Bn&&Wt(o);var s=[],l={},u=r.dimensionsDefine;if(u)D(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.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=i2(a,Bn);t.__isBuiltIn&&(e.getRawDataItem=function(d){return c(n,i,s,d)},e.getRawData=it(v3,null,r)),e.cloneRawData=it(p3,null,r);var h=o2(a,Bn);e.count=it(h,null,n,i,s);var v=s2(a);e.retrieveValue=function(d,g){var y=c(n,i,s,d);return p(y,g)};var p=e.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return v(d,g,y.name)}};return e.getDimensionInfo=it(d3,null,s,l),e.cloneAllDimensionInfo=it(g3,null,s),e}function v3(r){var t=r.sourceFormat;if(!c_(t)){var e="";Wt(e)}return r.data}function p3(r){var t=r.sourceFormat,e=r.data;if(!c_(t)){var n="";Wt(n)}if(t===Ye){for(var a=[],i=0,o=e.length;i<o;i++)a.push(e[i].slice());return a}else if(t===qr){for(var a=[],i=0,o=e.length;i<o;i++)a.push(H({},e[i]));return a}}function d3(r,t,e){if(e!=null){if(Gt(e)||!isNaN(e)&&!st(t,e))return r[e];if(st(t,e))return t[e]}}function g3(r){return yt(r)}var c2=ut();function y3(r){r=yt(r);var t=r.type,e="";t||Wt(e);var n=t.split(":");n.length!==2&&Wt(e);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),r.__isBuiltIn=a,c2.set(t,r)}function m3(r,t,e){var n=qt(r),a=n.length,i="";a||Wt(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=_3(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function _3(r,t,e,n){var a="";t.length||Wt(a),gt(r)||Wt(a);var i=r.type,o=c2.get(i);o||Wt(a);var s=X(t,function(u){return h3(u,o)}),l=qt(o.transform({upstream:s[0],upstreamList:s,config:yt(r.config)}));return X(l,function(u,f){var c="";gt(u)||Wt(c),u.data||Wt(c);var h=r2(u.data);c_(h)||Wt(c);var v,p=t[0];if(p&&f===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),v={seriesLayoutBy:Bn,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else v={seriesLayoutBy:Bn,sourceHeader:0,dimensions:u.dimensions};return qy(u.data,v,null)})}function c_(r){return r===Ye||r===qr}var Xv="undefined",S3=typeof Uint32Array===Xv?Array:Uint32Array,x3=typeof Uint16Array===Xv?Array:Uint16Array,h2=typeof Int32Array===Xv?Array:Int32Array,gb=typeof Float64Array===Xv?Array:Float64Array,v2={float:gb,int:h2,ordinal:Array,number:Array,time:gb},dd;function _l(r){return r>65535?S3:x3}function $o(){return[1/0,-1/0]}function b3(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function yb(r,t,e,n,a){var i=v2[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(n)}var Ky=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ut()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=dd[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],n2(a),this._dimensions=X(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,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===e)return i}else i=a.length;return a[i]={type:e},n.set(t,i),this._chunks[i]=new v2[e||"float"](this._rawCount),this._rawExtent[i]=$o(),i},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=$o());for(var l=i[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]))}a.ordinalMeta=e,a.ordinalOffset=s,a.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 a=e.count();return e.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=a[u];yb(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,p=0;p<i;p++){var f=a[p],d=dd.arrayRows.call(this,t[v]||c,f.property,v,p);n[p][h]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=X(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=$o()),yb(i,f,c.type,e,n)}if(a.fillStorage)a.fillStorage(t,e,i,l);else for(var h=[],v=t;v<e;v++){h=a.getItem(v,h);for(var p=0;p<s;p++){var d=i[p],g=this._dimValueGetter(h,u[p],v,p);d[v]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.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=[],a=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],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 a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var n=e.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/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 a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(e[o]<t)a=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)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-i[h],p=Math.abs(v);p<=n&&((p<s||p===s&&v>=0&&l<0)&&(s=p,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,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=e[i]}else t=new n(e.buffer,0,a)}else{var n=_l(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=_l(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<a;h++){var v=void 0,p=n.getRawIndex(h);if(l===0)v=e(h);else if(l===1){var d=c[f][p];v=e(d,h)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][p];s[g]=h,v=e.apply(null,s)}v&&(o[u++]=p)}return u<a&&(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 a=Ot(t),i=a.length;if(!i)return this;var o=e.count(),s=_l(e._rawCount),l=new s(o),u=0,f=a[0],c=t[f][0],h=t[f][1],v=e._chunks,p=!1;if(!e._indices){var d=0;if(i===1){for(var g=v[a[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=h||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],y=0;y<n;y++){var m=g[y],x=_[y];(m>=c&&m<=h||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y<o;y++){var w=e.getRawIndex(y),m=v[a[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),C=0;C<i;C++){var A=a[C],m=v[A][w];(m<t[A][0]||m>t[A][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 a=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=$o();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=a[e[v]][h];l[o]=c;var p=n&&n.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var f=0;f<p.length;f++){var d=e[f],g=p[f],y=u[d],m=a[d];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),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(_l(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var p=1;p<o-1;p+=l){for(var d=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+d)/2,m=0,_=d;_<g;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=g-d;var x=p,w=Math.min(p+l,o),T=p-1,C=i[u];f=-1,h=x;for(var A=-1,M=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){M++,A<0&&(A=S);continue}c=Math.abs((T-y)*(b-C)-(T-_)*(m-C)),c>f&&(f=c,h=S)}M>0&&M<w-x&&(v[s++]=Math.min(A,h),h=Math.max(A,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.downSample=function(t,e,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),c=i._rawExtent[t]=$o(),h=new(_l(this._rawCount))(Math.ceil(f/l)),v=0,p=0;p<f;p+=l){l>f-p&&(l=f-p,s.length=l);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(p+a(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[v++]=m}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(a[t[0]][s],i);break;case 2:e(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=$o();if(!e)return n;var a=this.count(),i=!this._indices,o;if(i)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<a;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=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][e]);return n},r.prototype.clone=function(t,e){var n=new r,a=this._chunks,i=t&&zn(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?b3(a[o]):a[o];else n._chunks=a;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=yt(this._extent),t._rawExtent=yt(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 a=0;a<n;a++)e[a]=this._indices[a]}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,a,i){return Ja(e[i],this._dimensions[i])}dd={arrayRows:t,objectRows:function(e,n,a,i){return Ja(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return Ja(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),p2=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,a,i;if(tc(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,i=[f._getVersionSign()]}else s=o.get("data",!0),l=pr(s)?Qa:Zr,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=St(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=St(c.sourceHeader,h.sourceHeader),d=St(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||d;a=g?[qy(s,{seriesLayoutBy:v,sourceHeader:p,dimensions:d},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[qy(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&_b(i)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&_b(c),s.push(f),l.push(u._getVersionSign())}),n?o=m3(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[JG(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 a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];tc(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new Ky,s.initData(new a2(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(tc(t)){var e=i_(t);return e?[e.getSourceManager()]:[]}else return X(MG(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,a;if(tc(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:a}},r}();function mb(r){var t=r.option.transform;t&&vh(r.option.transform)}function tc(r){return r.mainType==="series"}function _b(r){throw new Error(r)}var d2="line-height:1";function g2(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+fr(n+"")+"px;color:"+fr(e)+";font-weight:"+fr(a+""),valueStyle:"font-size:"+fr(o+"")+"px;color:"+fr(i)+";font-weight:"+fr(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var w3=[0,10,20,30],T3=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function Me(r,t){return t.type=r,t}function jy(r){return r.type==="section"}function y2(r){return jy(r)?C3:A3}function m2(r){if(jy(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return D(r.blocks,function(a){var i=m2(a);i>=t&&(t=i+ +(n&&(!i||jy(a)&&!a.noHeader)))}),t}return 0}function C3(r,t,e,n){var a=t.noHeader,i=D3(m2(t)),o=[],s=t.blocks||[];nr(!s||W(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 f2(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,d){var g=t.valueFormatter,y=y2(p)(g?H(H({},r),{valueFormatter:g}):r,p,d>0?i.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(i.richText):Qy(o.join(""),a?e:i.html);if(a)return c;var h=Yy(t.header,"ordinal",r.useUTC),v=g2(n,r.renderMode).nameStyle;return r.renderMode==="richText"?_2(r,h,v)+i.richText+c:Qy('<div style="'+v+";"+d2+';">'+fr(h)+"</div>"+c,e)}function A3(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=W(S)?S:[S],X(S,function(b,x){return Yy(b,W(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Yy(l,"ordinal",u),v=t.valueType,p=o?[]:f(t.value,t.dataIndex),d=!s||!i,g=!s&&i,y=g2(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":_2(r,h,m))+(o?"":L3(r,p,d,g,_)):Qy((s?"":c)+(i?"":M3(h,!s,m))+(o?"":I3(p,d,g,_)),e)}}function Sb(r,t,e,n,a,i){if(r){var o=y2(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function D3(r){return{html:w3[r],richText:T3[r]}}function Qy(r,t){var e='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+d2+';">'+r+e+"</div>"}function M3(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+fr(r)+"</span>"}function I3(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=W(r)?r:[r],'<span style="'+i+";"+n+'">'+X(r,function(o){return fr(o)}).join(" ")+"</span>"}function _2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function L3(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(W(t)?t.join(" "):t,i)}function S2(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return To(n)}function x2(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var gd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=NI()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=xG({color:e,type:t,renderMode:n,markerId:a});return nt(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};W(e)?D(e,function(i){return H(n,i)}):H(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function b2(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=W(s),u=S2(t,e),f,c,h,v;if(o>1||l&&!o){var p=P3(s,t,e,i,u);f=p.inlineValues,c=p.inlineValueTypes,h=p.blocks,v=p.inlineValues[0]}else if(o){var d=a.getDimensionInfo(i[0]);v=f=Es(a,e,i[0]),c=d.type}else v=f=l?s[0]:s;var g=B0(t),y=g&&t.name||"",m=a.getName(e),_=n?y:m;return Me("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[Me("nameValue",{markerType:"item",markerColor:u,name:_,noName:!an(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function P3(r,t,e,n,a){var i=t.getData(),o=zn(r,function(c,h,v){var p=i.getDimensionInfo(v);return c=c||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(c){f(Es(i,e,c),c)}):D(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Me("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Da=zt();function ec(r,t){return r.getName(t)||r.getId(t)}var th="__universalTransitionEnabled",ae=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=pu({count:E3,reset:k3}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=Da(this).sourceManager=new p2(this);i.prepareSource();var o=this.getInitialData(e,a);bb(o,this),this.dataTask.context.data=o,Da(this).dataBeforeProcessed=o,xb(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Vu(this),i=a?Qs(e):{},o=this.subType;kt.hasClass(o)&&(o+="Series"),Dt(e,n.getTheme().get(this.subType)),Dt(e,this.getDefaultOption()),So(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&oi(e,i,a)},t.prototype.mergeOption=function(e,n){e=Dt(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Vu(this);a&&oi(this.option,e,a);var i=Da(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);bb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Da(this).dataBeforeProcessed=o,xb(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!pr(e))for(var n=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&So(e[a],"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=Jy(this);if(n){var a=n.context.data;return e==null||!a.getLinkedData?a:a.getLinkedData(e)}else return Da(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=Jy(this);if(n){var a=n.context;a.outputData=e,n!==this.dataTask&&(a.data=e)}Da(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return ut(e)},t.prototype.getSourceManager=function(){return Da(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Da(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,a){return b2({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Rt.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,a){var i=this.ecModel,o=o_.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),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 a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=ec(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var a=[],i=0;i<e.length;i++)a[0]=e[i],this.isSelected(e[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=Ot(e),a=[],i=0;i<n.length;i++){var o=e[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[ec(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[th])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){gt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=ec(e,c);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=ec(e,v);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(a){var i=e.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return kt.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}(kt);me(ae,Yv);me(ae,o_);$I(ae,kt);function xb(r){var t=r.name;B0(r)||(r.name=R3(r)||t)}function R3(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return D(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function E3(r){return r.model.getRawData().count()}function k3(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),O3}function O3(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function bb(r,t){D(ph(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(N3,t))})}function N3(r,t){var e=Jy(r);return e&&e.setOutputEnd((t||this).count()),t}function Jy(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var ue=function(){function r(){this.group=new mt,this.uid=Ks("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();z0(ue);Mv(ue);function tl(){var r=zt();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var w2=zt(),B3=tl(),Kt=function(){function r(){this.group=new mt,this.uid=Ks("viewChart"),this.renderTask=pu({plan:V3,reset:z3}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Tb(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Tb(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){vi(this.group,t)},r.markUpdateMethod=function(t,e){w2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function wb(r,t,e){r&&Ou(r)&&(t==="emphasis"?ha:va)(r,e)}function Tb(r,t,e){var n=xo(r,t),a=t&&t.highlightKey!=null?xF(t.highlightKey):null;n!=null?D(qt(n),function(i){wb(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){wb(i,e,a)})}z0(Kt);Mv(Kt);function V3(r){return B3(r.model)}function z3(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&w2(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),F3[l]}var F3={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)}}},Ph="\0__throttleOriginMethod",Cb="\0__throttleRate",Ab="\0__throttleType";function h_(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],p=0;p<arguments.length;p++)v[p]=arguments[p];n=new Date().getTime(),l=this,u=v;var d=f||t,g=f||e;f=null,s=n-(g?a:i)-d,clearTimeout(o),g?o=setTimeout(c,d):s>=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function el(r,t,e,n){var a=r[t];if(a){var i=a[Ph]||a,o=a[Ab],s=a[Cb];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=h_(i,e,n==="debounce"),a[Ph]=i,a[Ab]=n,a[Cb]=e}return a}}function Fu(r,t){var e=r[t];e&&e[Ph]&&(e.clear&&e.clear(),r[t]=e[Ph])}var Db=zt(),Mb={itemStyle:bo(IL,!0),lineStyle:bo(ML,!0)},G3={lineStyle:"stroke",itemStyle:"fill"};function T2(r,t){var e=r.visualStyleMapper||Mb[t];return e||(console.warn("Unknown style type '"+t+"'."),Mb.itemStyle)}function C2(r,t){var e=r.visualDrawType||G3[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var H3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=T2(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=C2(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,p){var d=r.getDataParams(p),g=H({},o);g[l]=f(d),v.setItemVisual(p,"style",g)}}}},Sl=new Ut,W3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=T2(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Sl.option=l[n];var u=a(Sl),f=o.ensureUniqueItemVisual(s,"style");H(f,u),Sl.option.decal&&(o.setItemVisual(s,"decal",Sl.option.decal),Sl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},U3={performRawSeries:!0,overallReset:function(r){var t=ut();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Db(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Db(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=C2(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",p=n.count();h[l]=e.getColorFromPalette(v,o,p)}})}})}},rc=Math.PI;function $3(r,t){t=t||{},dt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new mt,n=new Vt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Ft({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Vt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Ov({shape:{startAngle:-rc/2,endAngle:-rc/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:rc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:rc*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.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}),i.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 A2=function(){function r(t,e,n,a){this._stageTaskMap=ut(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.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),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ut();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;D(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";nr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},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,a){a=a||{};var i=!1,o=this;D(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,p=h.agentStubMap;p.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var d=o.getPerformArgs(h,a.block);p.each(function(g){g.perform(d)}),h.perform(d)&&(i=!0)}else c&&c.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||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,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=ut(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||pu({plan:K3,reset:j3,count:J3}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||pu({reset:Y3});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ut(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";nr(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,p):f?f(n,a).each(p):(c=!1,D(n.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(h=!0,pu({reset:X3,onDirty:q3})));y.context={model:d,overallProgress:c},y.agent=o,y.__block=c,i._pipe(d,y)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:tH(t)}),t.uid=Ks("stageHandler"),e&&(t.visualType=e),t},r}();function Y3(r){r.overallReset(r.ecModel,r.api,r.payload)}function X3(r){return r.overallProgress&&Z3}function Z3(){this.agent.dirty(),this.getDownstream().dirty()}function q3(){this.agent&&this.agent.dirty()}function K3(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function j3(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=qt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?X(t,function(e,n){return D2(n)}):Q3}var Q3=D2(0);function D2(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function J3(r){return r.data.count()}function tH(r){Rh=null;try{r(Gu,M2)}catch{}return Rh}var Gu={},M2={},Rh;I2(Gu,s_);I2(M2,JL);Gu.eachSeriesByType=Gu.eachRawSeriesByType=function(r){Rh=r};Gu.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Rh=r.subType)};function I2(r,t){for(var e in t.prototype)r[e]=pe}var Ib=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const eH={color:Ib,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Ib]};var qe="#B9B8CE",Lb="#100C2A",nc=function(){return{axisLine:{lineStyle:{color:qe}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Pb=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],L2={darkMode:!0,color:Pb,backgroundColor:Lb,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:qe}},textStyle:{color:qe},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:qe}},dataZoom:{borderColor:"#71708A",textStyle:{color:qe},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:qe}},timeline:{lineStyle:{color:qe},label:{color:qe},controlStyle:{color:qe,borderColor:qe}},calendar:{itemStyle:{color:Lb},dayLabel:{color:qe},monthLabel:{color:qe},yearLabel:{color:qe}},timeAxis:nc(),logAxis:nc(),valueAxis:nc(),categoryAxis:nc(),line:{symbol:"circle"},graph:{color:Pb},gauge:{title:{color:qe},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:qe},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};L2.categoryAxis.splitLine.show=!1;var rH=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},a={};if(nt(t)){var i=Pn(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(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 p=u.slice(0,v);p!=="data"&&(e.mainType=p,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=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,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,h,v,p){return c[v]==null||h[p||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),tm=["symbol","symbolSize","symbolRotate","symbolOffset"],Rb=tm.concat(["symbolKeepAspect"]),nH={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={},a={},i=!1,o=0;o<tm.length;o++){var s=tm[o],l=r.get(s);vt(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(H({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=Ot(a);function f(c,h){for(var v=r.getRawValue(h),p=r.getDataParams(h),d=0;d<u.length;d++){var g=u[d];c.setItemVisual(h,g,a[g](v,p))}}return{dataEach:i?f:null}}},aH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Rb.length;s++){var l=Rb[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function v_(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 gf(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 P2(r,t,e,n){switch(e){case"color":var a=r.ensureUniqueItemVisual(t,"style");a[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 R2(r,t){function e(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}D([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=H({},a),o.dispatchAction(H(a,{type:n[1],seriesIndex:e(i,a)}))})})}function Yo(r,t,e,n,a){var i=r+t;e.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=xo(c,a.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:W(h)?c.getName(h[0]):c.getName(h),selected:nt(l)?l:H({},l)})}})}function iH(r,t,e){r.on("selectchanged",function(n){var a=e.getModel();n.isFromClick?(Yo("map","selectchanged",t,a,n),Yo("pie","selectchanged",t,a,n)):n.fromAction==="select"?(Yo("map","selected",t,a,n),Yo("pie","selected",t,a,n)):n.fromAction==="unselect"&&(Yo("map","unselected",t,a,n),Yo("pie","unselected",t,a,n))})}function ro(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var oH=Math.round(Math.random()*9),sH=typeof Object.defineProperty=="function",lH=function(){function r(){this._id="__ec_inner_"+oH++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return sH?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}(),uH=Pt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n+i),r.lineTo(e-a,n+i),r.closePath()}}),fH=Pt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n),r.lineTo(e,n+i),r.lineTo(e-a,n),r.closePath()}}),cH=Pt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,p=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-p,e,n),r.bezierCurveTo(e,n-p,e-f+c*v,l+s+h*v,e-f,l+s),r.closePath()}}),hH=Pt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+e),r.lineTo(a,i+e/4*3),r.lineTo(a-o,i+e),r.lineTo(a,i),r.closePath()}}),vH={line:Te,rect:Vt,roundRect:Vt,square:Vt,circle:Sa,diamond:fH,pin:cH,arrow:hH,triangle:uH},pH={line:function(r,t,e,n,a){a.x1=r,a.y1=t+n/2,a.x2=r+e,a.y2=t+n/2},rect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n},roundRect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n,a.r=Math.min(e,n)/4},square:function(r,t,e,n,a){var i=Math.min(e,n);a.x=r,a.y=t,a.width=i,a.height=i},circle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.r=Math.min(e,n)/2},diamond:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n},pin:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},arrow:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},triangle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n}},Eh={};D(vH,function(r,t){Eh[t]=new r});var dH=Pt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=bh(r,t,e),a=this.shape;return a&&a.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 a=Eh[n];a||(n="rect",a=Eh[n]),pH[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function gH(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 ye(r,t,e,n,a,i,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=SL(r.slice(8),new Mt(t,e,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=Nv(r.slice(7),{},new Mt(t,e,n,a),o?"center":"cover"):l=new dH({shape:{symbolType:r,x:t,y:e,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=gH,i&&l.setColor(i),l}function rl(r){return W(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Po(r,t){if(r!=null)return W(r)||(r=[r,r]),[et(r[0],t[0])||0,et(St(r[1],r[0]),t[1])||0]}function no(r){return isFinite(r)}function yH(r,t,e){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,a=a*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),n=no(n)?n:0,a=no(a)?a:1,i=no(i)?i:0,o=no(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function mH(r,t,e){var n=e.width,a=e.height,i=Math.min(n,a),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*a+e.y,l=l*i),o=no(o)?o:.5,s=no(s)?s:.5,l=l>=0&&no(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function em(r,t,e){for(var n=t.type==="radial"?mH(r,t,e):yH(r,t,e),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function _H(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 ac(r){return parseInt(r,10)}function ps(r,t,e){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["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[a]||ac(s[n])||ac(r.style[n]))-(ac(s[i])||0)-(ac(s[o])||0)|0}function SH(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Gt(r)?[r]:W(r)?r:null}function p_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&SH(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=X(e,function(i){return i/a}),n/=a)}return[e,n]}var xH=new Wn(!0);function kh(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Eb(r){return typeof r=="string"&&r!=="none"}function Oh(r){var t=r.fill;return t!=null&&t!=="none"}function kb(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 Ob(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 rm(r,t,e){var n=F0(t.image,t.__image,e);if(Iv(n)){var a=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Gc),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function bH(r,t,e,n){var a,i=kh(e),o=Oh(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||xH,c=t.__dirty;if(!n){var h=e.fill,v=e.stroke,p=o&&!!h.colorStops,d=i&&!!v.colorStops,g=o&&!!h.image,y=i&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(p||d)&&(x=t.getBoundingRect()),p&&(m=c?em(r,h,x):t.__canvasFillGradient,t.__canvasFillGradient=m),d&&(_=c?em(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?rm(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=c||!t.__canvasStrokePattern?rm(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(a=p_(t),T=a[0],C=a[1]);var A=!0;(u||c&os)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(i&&Ob(r,e),o&&kb(r,e)):(o&&kb(r,e),i&&Ob(r,e))),T&&r.setLineDash([])}function wH(r,t,e){var n=t.__image=F0(e.image,t.__image,t,t.onload);if(!(!n||!Iv(n))){var a=e.x||0,i=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,a,i,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,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function TH(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||ri,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=p_(t),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(kh(e)&&r.strokeText(a,e.x,e.y),Oh(e)&&r.fillText(a,e.x,e.y)):(Oh(e)&&r.fillText(a,e.x,e.y),kh(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var Nb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Bb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function E2(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){vr(r,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?fo.opacity:o}(n||t.blend!==e.blend)&&(i||(vr(r,a),i=!0),r.globalCompositeOperation=t.blend||fo.blend);for(var s=0;s<Nb.length;s++){var l=Nb[s];(n||t[l]!==e[l])&&(i||(vr(r,a),i=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(i||(vr(r,a),i=!0),r.shadowColor=t.shadowColor||fo.shadowColor),i}function Vb(r,t,e,n,a){var i=Hu(t,a.inHover),o=n?null:e&&Hu(e,a.inHover)||{};if(i===o)return!1;var s=E2(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(vr(r,a),s=!0),Eb(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(vr(r,a),s=!0),Eb(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(vr(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(vr(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<Bb.length;f++){var c=Bb[f],h=c[0];(n||i[h]!==o[h])&&(s||(vr(r,a),s=!0),r[h]=i[h]||c[1])}return s}function CH(r,t,e,n,a){return E2(r,Hu(t,a.inHover),e&&Hu(e,a.inHover),n,a)}function k2(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 AH(r,t,e){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),k2(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=n}function DH(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 zb=1,Fb=2,Gb=3,Hb=4;function MH(r){var t=Oh(r),e=kh(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 vr(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Hu(r,t){return t&&r.__hoverStyle||r.style}function O2(r,t){ao(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ao(r,t,e,n){var a=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~wr,t.__isRendered=!1;return}var i=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||_H(i,o))&&(o&&o.length&&(vr(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),i&&i.length&&(vr(r,e),r.save(),AH(i,r,e),s=!0),e.prevElClipPaths=i),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&&MH(t.style);s||DH(a,u.transform)?(vr(r,e),k2(r,t)):f||vr(r,e);var c=Hu(t,e.inHover);t instanceof Pt?(e.lastDrawType!==zb&&(l=!0,e.lastDrawType=zb),Vb(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),bH(r,t,c,f),f&&(e.batchFill=c.fill||"",e.batchStroke=c.stroke||"")):t instanceof Ps?(e.lastDrawType!==Gb&&(l=!0,e.lastDrawType=Gb),Vb(r,t,u,l,e),TH(r,t,c)):t instanceof Pe?(e.lastDrawType!==Fb&&(l=!0,e.lastDrawType=Fb),CH(r,t,u,l,e),wH(r,t,c)):t.getTemporalDisplayables&&(e.lastDrawType!==Hb&&(l=!0,e.lastDrawType=Hb),IH(r,t,e)),f&&n&&vr(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function IH(r,t,e){var n=t.getDisplayables(),a=t.getTemporalDisplayables();r.save();var i={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(),ao(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ao(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var yd=new lH,Wb=new of(100),Ub=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ks(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";r.dirty&&yd.delete(r);var i=yd.get(r);if(i)return i;var o=dt(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=a?1:1/e,yd.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],c=!0,h=0;h<Ub.length;++h){var v=o[Ub[h]];if(v!=null&&!W(v)&&!nt(v)&&!Gt(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var p;if(c){p=f.join(",")+(a?"-svg":"");var d=Wb.get(p);d&&(a?u.svgElement=d:u.image=d)}var g=B2(o.dashArrayX),y=LH(o.dashArrayY),m=N2(o.symbol),_=PH(g),S=V2(y),b=!a&&ni.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),T;b&&(b.width=w.width*e,b.height=w.height*e,T=b.getContext("2d")),A(),c&&Wb.put(p,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var M=1,I=0,L=_.length;I<L;++I)M=ox(M,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=ox(P,m[I].length);M*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(M<=0)return;for(var L=-S,P=0,R=0,O=0;L<w.height;){if(P%2===0){for(var B=R/2%m.length,N=0,F=0,U=0;N<w.width*2;){for(var Z=0,I=0;I<g[O].length;++I)Z+=g[O][I];if(Z<=0)break;if(F%2===0){var Q=(1-o.symbolSize)*.5,ft=N+g[O][F]*Q,ht=L+y[P]*Q,Tt=g[O][F]*o.symbolSize,xt=y[P]*o.symbolSize,G=U/2%m[B].length;$(ft,ht,Tt,xt,m[B][G])}N+=g[O][F],++U,++F,F===g[O].length&&(F=0)}++O,O===g.length&&(O=0)}L+=y[P],++R,++P,P===y.length&&(P=0)}function $(K,j,J,ct,E){var k=a?1:e,z=ye(E,K*k,j*k,J*k,ct*k,o.color,o.symbolKeepAspect);if(a){var q=n.painter.renderOneToVNode(z);q&&x.children.push(q)}else O2(T,z)}}}}function N2(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 N2([r]);for(var n=[],e=0;e<r.length;++e)nt(r[e])?n.push([r[e]]):n.push(r[e]);return n}function B2(r){if(!r||r.length===0)return[[0,0]];if(Gt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!Gt(r[n])){e=!1;break}if(e)return B2([r]);for(var a=[],n=0;n<r.length;++n)if(Gt(r[n])){var t=Math.ceil(r[n]);a.push([t,t])}else{var t=X(r[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function LH(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Gt(r)){var t=Math.ceil(r);return[t,t]}var e=X(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function PH(r){return X(r,function(t){return V2(t)})}function V2(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function RH(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=ks(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=ks(a,t)}}})}var en=new Xr,z2={};function EH(r,t){z2[r]=t}function kH(r){return z2[r]}var OH=1,NH=800,BH=900,VH=1e3,zH=2e3,FH=5e3,F2=1e3,GH=1100,d_=2e3,G2=3e3,HH=4e3,Zv=4500,WH=4600,UH=5e3,$H=6e3,H2=7e3,YH={PROCESSOR:{FILTER:VH,SERIES_FILTER:NH,STATISTIC:FH},VISUAL:{LAYOUT:F2,PROGRESSIVE_LAYOUT:GH,GLOBAL:d_,CHART:G2,POST_CHART_LAYOUT:WH,COMPONENT:HH,BRUSH:UH,CHART_ITEM:Zv,ARIA:$H,DECAL:H2}},ze="__flagInMainProcess",ur="__pendingUpdate",md="__needsUpdateStatus",$b=/^[a-zA-Z0-9_]+$/,_d="__connectUpdateStatus",Yb=0,XH=1,ZH=2;function W2(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return $2(this,r,t)}}function U2(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return $2(this,r,t)}}function $2(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Xr.prototype[t].apply(r,e)}var Y2=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Xr),X2=Y2.prototype;X2.on=U2("on");X2.off=U2("off");var Xo,Sd,ic,Ma,xd,bd,wd,xl,bl,Xb,Zb,Td,qb,oc,Kb,Z2,Ir,jb,q2=function(r){V(t,r);function t(e,n,a){var i=r.call(this,new rH)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},nt(n)&&(n=K2[n]),i._dom=e;var o="canvas",s="auto",l=!1;a.ssr&&Uz(function(h){var v=_t(h),p=v.dataIndex;if(p!=null){var d=ut();return d.set("series_index",v.seriesIndex),d.set("data_index",p),v.ssrType&&d.set("ssr_type",v.ssrType),d}});var u=i._zr=rx(e,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:St(a.useDirtyRect,l),useCoarsePointer:St(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=h_(it(u.flush,u),17),n=yt(n),n&&e2(n,!0),i._theme=n,i._locale=pG(a.locale||LL),i._coordSysMgr=new df;var f=i._api=Kb(i);function c(h,v){return h.__prio-v.__prio}return Uc(Bh,c),Uc(nm,c),i._scheduler=new A2(i,f,nm,Bh),i._messageCenter=new Y2,i._initEvents(),i.resize=it(i.resize,i),u.animation.on("frame",i._onframe,i),Xb(u,i),Zb(u,i),vh(i),i}return t.prototype._onframe=function(){if(!this._disposed){jb(this);var e=this._scheduler;if(this[ur]){var n=this[ur].silent;this[ze]=!0;try{Xo(this),Ma.update.call(this,null,this[ur].updateParams)}catch(l){throw this[ze]=!1,this[ur]=null,l}this._zr.flush(),this[ze]=!1,this[ur]=null,xl.call(this,n),bl.call(this,n)}else if(e.unfinished){var a=OH,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),bd(this,i),e.performVisualTasks(i),oc(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>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,a){if(!this[ze]){if(this._disposed){this.id;return}var i,o,s;if(gt(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ze]=!0,!this._model||n){var l=new zG(this._api),u=this._theme,f=this._model=new s_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},am);var c={seriesTransition:s,optionChanged:!0};if(a)this[ur]={silent:i,updateParams:c},this[ze]=!1,this.getZr().wakeUp();else{try{Xo(this),Ma.update.call(this,null,c)}catch(h){throw this[ur]=null,this[ze]=!1,h}this._ssr||this._zr.flush(),this[ur]=null,this[ze]=!1,xl.call(this,i),bl.call(this,i)}}},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||Rt.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(Rt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return D(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;D(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.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 D(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Qb[a]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();D(gu,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(yt(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var p=f-l,d=c-u,g=ni.createCanvas(),y=rx(g,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:d}),n){var m="";return D(h,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.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:p,height:d},style:{fill:e.connectedBackgroundColor}})),D(h,function(_){var S=new Pe({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 xd(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return xd(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=uu(a,e);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=uu(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?v_(s,l,n):gf(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;D(qH,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&ro(s,function(p){var d=_t(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=H({},d.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=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),D(du,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),D(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),iH(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&&HI(this.getDom(),y_,"");var n=this,a=n._api,i=n._model;D(n._componentsViews,function(o){o.dispose(i,a)}),D(n._chartsViews,function(o){o.dispose(i,a)}),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 gu[n.id]},t.prototype.resize=function(e){if(!this[ze]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[ur]&&(i==null&&(i=this[ur].silent),a=!0,this[ur]=null),this[ze]=!0;try{a&&Xo(this),Ma.update.call(this,{type:"resize",animation:H({duration:0},e&&e.animation)})}catch(o){throw this[ze]=!1,o}this[ze]=!1,xl.call(this,i),bl.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(gt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!im[e]){var a=im[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},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=H({},e);return n.type=du[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(gt(n)||(n={silent:!!n}),!!Nh[e.type]&&this._model){if(this[ze]){this._pendingActions.push(e);return}var a=n.silent;wd.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Rt.browser.weChat&&this._throttledZrFlush(),xl.call(this,a),bl.call(this,a)}},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,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Xo=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Sd(c,!0),Sd(c,!1),h.plan()},Sd=function(c,h){for(var v=c._model,p=c._scheduler,d=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<d.length;_++)d[_].__alive=!1;h?v.eachComponent(function(x,w){x!=="series"&&S(w)}):v.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!w&&g[T];if(!C){var A=Pn(x.type),M=h?ue.getClass(A.main,A.sub):Kt.getClass(A.sub);C=new M,C.init(v,m),g[T]=C,d.push(C),y.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&p.prepareView(C,x,v,m)}for(var _=0;_<d.length;){var b=d[_];b.__alive?_++:(!h&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),d.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ic=function(c,h,v,p,d){var g=c._model;if(g.setUpdatePayload(v),!p){D([].concat(c._componentsViews).concat(c._chartsViews),b);return}var y={};y[p+"Id"]=v[p+"Id"],y[p+"Index"]=v[p+"Index"],y[p+"Name"]=v[p+"Name"];var m={mainType:p,query:y};d&&(m.subType=d);var _=v.excludeSeriesId,S;_!=null&&(S=ut(),D(qt(_),function(x){var w=_e(x,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;if(!w)if(Ex(v))if(x instanceof ae)v.type===co&&!v.notBlur&&!x.get(["emphasis","disabled"])&&vF(x,v,c._api);else{var T=Y0(x.mainType,x.componentIndex,v.name,c._api),C=T.focusSelf,A=T.dispatchers;v.type===co&&C&&!v.notBlur&&zy(x.mainType,x.componentIndex,c._api),A&&D(A,function(M){v.type===co?ha(M):va(M)})}else Gy(v)&&x instanceof ae&&(gF(x,v,c._api),Px(x),Ir(c))},c),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;w||b(c[p==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function b(x){x&&x.__alive&&x[h]&&x[h](x.__model,g,c._api,v)}},Ma={prepareAndUpdate:function(c){Xo(this),Ma.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,p=this._api,d=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(c),y.restoreData(v,c),y.performSeriesTasks(v),g.create(v,p),y.performDataProcessorTasks(v,c),bd(this,v),g.update(v,p),e(v),y.performVisualTasks(v,c),Td(this,v,p,c,h);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");d.setBackgroundColor(m),_!=null&&_!=="auto"&&d.setDarkMode(_),en.trigger("afterupdate",v,p)}},updateTransform:function(c){var h=this,v=this._model,p=this._api;if(v){v.setUpdatePayload(c);var d=[];v.eachComponent(function(y,m){if(y!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,p,c);S&&S.update&&d.push(_)}else d.push(_)}});var g=ut();v.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,p,c);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),oc(this,v,p,c,{},g),en.trigger("afterupdate",v,p)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Kt.markUpdateMethod(c,"updateView"),e(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Td(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(p){p.getData().clearAllVisual()}),Kt.markUpdateMethod(c,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(p,d){if(p!=="series"){var g=h.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,v,h._api,c)}}),v.eachSeries(function(p){var d=h._chartsMap[p.__viewId];d.updateVisual(p,v,h._api,c)}),en.trigger("afterupdate",v,this._api))},updateLayout:function(c){Ma.update.call(this,c)}},xd=function(c,h,v,p){if(c._disposed){c.id;return}for(var d=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,m=uu(d,v),_=0;_<g.length;_++){var S=g[_];if(S[h]&&(y=S[h](d,m,p))!=null)return y}},bd=function(c,h){var v=c._chartsMap,p=c._scheduler;h.eachSeries(function(d){p.updateStreamModes(d,v[d.__viewId])})},wd=function(c,h){var v=this,p=this.getModel(),d=c.type,g=c.escapeConnect,y=Nh[d],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&Pn(_[0]);this[ze]=!0;var x=[c],w=!1;c.batch&&(w=!0,x=X(c.batch,function(P){return P=dt(H({},P),c),P.batch=null,P}));var T=[],C,A=Gy(c),M=Ex(c);if(M&&uL(this._api),D(x,function(P){if(C=y.action(P,v._model,v._api),C=C||H({},P),C.type=m.event||C.type,T.push(C),M){var R=V0(c),O=R.queryOptionMap,B=R.mainTypeSpecified,N=B?O.keys()[0]:"series";ic(v,S,P,N),Ir(v)}else A?(ic(v,S,P,"series"),Ir(v)):b&&ic(v,S,P,b.main,b.sub)}),S!=="none"&&!M&&!A&&!b)try{this[ur]?(Xo(this),Ma.update.call(this,c),this[ur]=null):Ma[S].call(this,c)}catch(P){throw this[ze]=!1,P}if(w?C={type:m.event||d,escapeConnect:g,batch:T}:C=T[0],this[ze]=!1,!h){var I=this._messageCenter;if(I.trigger(C.type,C),A){var L={type:"selectchanged",escapeConnect:g,selected:yF(p),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};I.trigger(L.type,L)}}},xl=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();wd.call(this,v,c)}},bl=function(c){!c&&this.trigger("updated")},Xb=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[ur]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Zb=function(c,h){c.on("mouseover",function(v){var p=v.target,d=ro(p,Ou);d&&(pF(d,v,h._api),Ir(h))}).on("mouseout",function(v){var p=v.target,d=ro(p,Ou);d&&(dF(d,v,h._api),Ir(h))}).on("click",function(v){var p=v.target,d=ro(p,function(m){return _t(m).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",y=_t(d);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=[],p=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();p=p||!!x,(m==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),p){var d=h.concat(v),g,y;Uc(d,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),D(d,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Td=function(c,h,v,p,d){n(h),qb(c,h,v,p,d),D(c._chartsViews,function(g){g.__alive=!1}),oc(c,h,v,p,d),D(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},qb=function(c,h,v,p,d,g){D(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,v,p),s(m,y),f(m,y)})},oc=function(c,h,v,p,d,g){var y=c._scheduler;d=H(d||{},{updatedSeries:h.getSeries()}),en.trigger("series:beforeupdate",h,v,d);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,p),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),Px(_)}),y.unfinished=m||y.unfinished,en.trigger("series:layoutlabels",h,v,d),en.trigger("series:transition",h,v,d),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];s(_,S),f(_,S)}),i(c,h),en.trigger("series:afterupdate",h,v,d)},Ir=function(c){c[md]=!0,c.getZr().wakeUp()},jb=function(c){c[md]&&(c.getZr().storage.traverse(function(h){bs(h)||a(h)}),c[md]=!1)};function a(c){for(var h=[],v=c.currentStates,p=0;p<v.length;p++){var d=v[p];d==="emphasis"||d==="blur"||d==="select"||h.push(d)}c.selected&&c.states.select&&h.push("select"),c.hoverState===Rv&&c.states.emphasis?h.push("emphasis"):c.hoverState===uf&&c.states.blur&&h.push("blur"),c.useStates(h)}function i(c,h){var v=c._zr,p=v.storage,d=0;p.traverse(function(g){g.isGroup||d++}),d>h.get("hoverLayerThreshold")&&!Rt.node&&!Rt.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(p){p.isGroup||(p.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,p=c.get("zlevel")||0;h.eachRendered(function(d){return l(d,v,p,-1/0),!0})}}function l(c,h,v,p){var d=c.getTextContent(),g=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),_=0;_<m.length;_++)p=Math.max(l(m[_],h,v,p),p);else c.z=h,c.zlevel=v,p=Math.max(c.z2,p);if(d&&(d.z=h,d.zlevel=v,isFinite(p)&&(d.z2=p+2)),g){var S=c.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(p)&&(g.z2=p+(S&&S.showAbove?1:-1))}return p}function u(c,h){h.eachRendered(function(v){if(!bs(v)){var p=v.getTextContent(),d=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),p=c.isAnimationEnabled(),d=v.get("duration"),g=d>0?{duration:d,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(bs(y))return;if(y instanceof Pt&&bF(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}Kb=function(c){return new(function(h){V(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(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);p=p.parent}},v.prototype.enterEmphasis=function(p,d){ha(p,d),Ir(c)},v.prototype.leaveEmphasis=function(p,d){va(p,d),Ir(c)},v.prototype.enterBlur=function(p){iL(p),Ir(c)},v.prototype.leaveBlur=function(p){$0(p),Ir(c)},v.prototype.enterSelect=function(p){oL(p),Ir(c)},v.prototype.leaveSelect=function(p){sL(p),Ir(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(p){return c.getViewOfComponentModel(p)},v.prototype.getViewOfSeriesModel=function(p){return c.getViewOfSeriesModel(p)},v}(JL))(c)},Z2=function(c){function h(v,p){for(var d=0;d<v.length;d++){var g=v[d];g[_d]=p}}D(du,function(v,p){c._messageCenter.on(p,function(d){if(Qb[c.group]&&c[_d]!==Yb){if(d&&d.escapeConnect)return;var g=c.makeActionFromEvent(d),y=[];D(gu,function(m){m!==c&&m.group===c.group&&y.push(m)}),h(y,Yb),D(y,function(m){m[_d]!==XH&&m.dispatchAction(g)}),h(y,ZH)}})})}}(),t}(Xr),g_=q2.prototype;g_.on=W2("on");g_.off=W2("off");g_.one=function(r,t,e){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(r,a)}this.on.call(this,r,a,e)};var qH=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Nh={},du={},nm=[],am=[],Bh=[],K2={},im={},gu={},Qb={},KH=+new Date-0,y_="_echarts_instance_";function sc(r,t,e){{var n=jH(r);if(n)return n}var a=new q2(r,t,e);return a.id="ec_"+KH++,gu[a.id]=a,HI(r,y_,a.id),Z2(a),en.trigger("afterinit",a),a}function jH(r){return gu[f5(r,y_)]}function j2(r,t){K2[r]=t}function Q2(r){It(am,r)<0&&am.push(r)}function J2(r,t){__(nm,r,t,zH)}function QH(r){m_("afterinit",r)}function JH(r){m_("afterupdate",r)}function m_(r,t){en.on(r,t)}function $n(r,t,e){vt(t)&&(e=t,t="");var n=gt(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!du[t]&&(nr($b.test(n)&&$b.test(t)),Nh[n]||(Nh[n]={action:e,actionInfo:r}),du[t]=n)}function t4(r,t){df.register(r,t)}function e4(r,t){__(Bh,r,t,F2,"layout")}function Ro(r,t){__(Bh,r,t,G2,"visual")}var Jb=[];function __(r,t,e,n,a){if((vt(t)||gt(t))&&(e=t,t=n),!(It(Jb,e)>=0)){Jb.push(e);var i=A2.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function tP(r,t){im[r]=t}function r4(r,t,e){var n=kH("registerMap");n&&n(r,t,e)}var n4=y3;Ro(d_,H3);Ro(Zv,W3);Ro(Zv,U3);Ro(d_,nH);Ro(Zv,aH);Ro(H2,RH);Q2(e2);J2(BH,jG);tP("default",$3);$n({type:co,event:co,update:co},pe);$n({type:qc,event:qc,update:qc},pe);$n({type:fu,event:fu,update:fu},pe);$n({type:Kc,event:Kc,update:Kc},pe);$n({type:cu,event:cu,update:cu},pe);j2("light",eH);j2("dark",L2);var tw=[],a4={registerPreprocessor:Q2,registerProcessor:J2,registerPostInit:QH,registerPostUpdate:JH,registerUpdateLifecycle:m_,registerAction:$n,registerCoordinateSystem:t4,registerLayout:e4,registerVisual:Ro,registerTransform:n4,registerLoading:tP,registerMap:r4,registerImpl:EH,PRIORITY:YH,ComponentModel:kt,ComponentView:ue,SeriesModel:ae,ChartView:Kt,registerComponentModel:function(r){kt.registerClass(r)},registerComponentView:function(r){ue.registerClass(r)},registerSeriesModel:function(r){ae.registerClass(r)},registerChartView:function(r){Kt.registerClass(r)},registerSubTypeDefaulter:function(r,t){kt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Hz(r,t)}};function Lt(r){if(W(r)){D(r,function(t){Lt(t)});return}It(tw,r)>=0||(tw.push(r),vt(r)&&(r={install:r}),r.install(a4))}function wl(r){return r==null?0:r.length||1}function ew(r){return r}var pa=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||ew,this._newKeyGetter=a||ew,this.context=i,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={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=wl(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(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=wl(u),h=wl(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[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,a)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var a=t[n],i=e[a],o=wl(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[a]=null}},r.prototype._initIndexMap=function(t,e,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!e){var l=e[s],u=wl(l);u===0?(e[s]=o,i&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),i4=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 o4(r,t){var e={},n=e.encode={},a=ut(),i=[],o=[],s={};D(r.dimensions,function(h){var v=r.getDimensionInfo(h),p=v.coordDim;if(p){var d=v.coordDimIndex;Cd(n,p)[d]=h,v.isExtraCoord||(a.set(p,1),s4(v.type)&&(i[0]=h),Cd(s,p)[d]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}YL.each(function(g,y){var m=Cd(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};a.each(function(h,v){var p=n[v];u[v]=p[0],l=l.concat(p)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=X(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,e.userOutput=new i4(s,t),e}function Cd(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Vh(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function s4(r){return!(r==="ordinal"||r==="time")}var eh=function(){function r(t){this.otherDims={},t!=null&&H(this,t)}return r}(),l4=zt(),u4={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},eP=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=aP(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return St(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=n2(this.source),n=!iP(t),a="",i=[],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)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=u4[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,p=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(e);o&&(a=o.name)}t.push(a)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function rP(r){return r instanceof eP}function nP(r){for(var t=ut(),e=0;e<(r||[]).length;e++){var n=r[e],a=gt(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,e)}return t}function aP(r){var t=l4(r);return t.dimNameMap||(t.dimNameMap=nP(r.dimensionsDefine))}function iP(r){return r>30}var Tl=gt,Ia=X,f4=typeof Int32Array>"u"?Array:Int32Array,c4="e\0\0",rw=-1,h4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],v4=["_approximateExtent"],nw,lc,Cl,Al,Ad,uc,Dd,er=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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;rP(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=nt(c)?new eh({name:c}):c instanceof eh?c:new eh(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),p.itemName===0&&(this._nameDimIdx=f),p.itemId===0&&(this._idDimIdx=f),a&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=ut();D(o,function(g){d.set(i[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 a=this._schema.getSourceDimension(e);if(a)return a.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(Gt(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 a=n.encode[t];return a?a[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 a=this,i;if(t instanceof Ky&&(i=t),!i){var o=this.dimensions,s=l_(t)||$e(t)?new a2(t,o.length):t;i=new Ky;var l=Ia(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=o4(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.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=e[l],o&&Dd(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var a=this._dimInfos[e[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Qa&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Zr;if(l&&!a.pure)for(var u=[],f=t;f<e;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&jz(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=_e(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=_e(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Dd(this,f);nw(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){Tl(t)?H(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=Cl(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},r.prototype.getId=function(t){return lc(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.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,a=this._store;return W(t)?a.getValues(Ia(t,function(i){return n._getStoreDimIndex(i)}),e):a.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,a=e.length;n<a;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],a=n[e];return a==null||isNaN(a)?rw:a},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 a=n||this,i=Ia(Al(t),this._getStoreDimIndex,this);this._store.each(i,a?it(e,a):e)},r.prototype.filterSelf=function(t,e,n){vt(t)&&(n=e,e=t,t=[]);var a=n||this,i=Ia(Al(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?it(e,a):e),this},r.prototype.selectRange=function(t){var e=this,n={},a=Ot(t);return D(a,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i]}),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 a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},n),a},r.prototype.map=function(t,e,n,a){var i=n||a||this,o=Ia(Al(t),this._getStoreDimIndex,this),s=uc(this);return s._store=this._store.map(o,i?it(e,i):e),s},r.prototype.modify=function(t,e,n,a){var i=n||a||this,o=Ia(Al(t),this._getStoreDimIndex,this);this._store.modify(o,i?it(e,i):e)},r.prototype.downSample=function(t,e,n,a){var i=uc(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,a),i},r.prototype.lttbDownSample=function(t,e){var n=uc(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 Ut(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new pa(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return lc(t,n)},function(n){return lc(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||{},Tl(t)?H(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],a=n&&n[e];return a??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),W(i)?i=i.slice():Tl(i)&&(i=H({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Tl(e)?H(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Tl(t)?H(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?H(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;By(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){D(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Ia(this.dimensions,this._getDimInfo,this),this.hostModel)),Ad(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 a=n.apply(this,arguments);return e.apply(this,[a].concat(M0(arguments)))})},r.internalField=function(){nw=function(t){var e=t._invertedIndicesMap;D(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new f4(o.categories.length);for(var l=0;l<n.length;l++)n[l]=rw;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Cl=function(t,e,n){return _e(t._getCategory(e,n),null)},lc=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=Cl(t,t._idDimIdx,e)),n==null&&(n=c4+e),n},Al=function(t){return W(t)||(t=t!=null?[t]:[]),t},uc=function(t){var e=new r(t._schema?t._schema:Ia(t.dimensions,t._getDimInfo,t),t.hostModel);return Ad(e,t),e},Ad=function(t,e){D(h4.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,D(v4,function(n){t[n]=yt(e[n])}),t._calculationInfo=H({},e._calculationInfo)},Dd=function(t,e){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=a[e];if(s==null&&i!=null&&(n[e]=s=Cl(t,i,e)),l==null&&o!=null&&(a[e]=l=Cl(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),a[e]=l}}}(),r}();function yf(r,t){l_(r)||(r=u_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ut(),i=[],o=d4(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&iP(o),l=n===r.dimensionsDefine,u=l?aP(r):nP(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=ut(f),h=new h2(o),v=0;v<h.length;v++)h[v]=-1;function p(C){var A=h[C];if(A<0){var M=n[C],I=gt(M)?M:{name:M},L=new eh,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 R=i.length;return h[C]=R,L.storeDimIndex=C,i.push(L),L}return i[A]}if(!s)for(var v=0;v<o;v++)p(v);c.each(function(C,A){var M=qt(C).slice();if(M.length===1&&!nt(M[0])&&M[0]<0){c.set(A,!1);return}var I=c.set(A,[]);D(M,function(L,P){var R=nt(L)?u.get(L):L;R!=null&&R<o&&(I[P]=R,g(p(R),A,P))})});var d=0;D(e,function(C){var A,M,I,L;if(nt(C))A=C,L={};else{L=C,A=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=H({},L),L.ordinalMeta=P,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=c.get(A);if(R!==!1){if(R=qt(R),!R.length)for(var O=0;O<(M&&M.length||1);O++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&R.push(d++)}D(R,function(B,N){var F=p(B);if(l&&L.type!=null&&(F.type=L.type),g(dt(F,L),A,N),F.name==null&&M){var U=M[N];!gt(U)&&(U={name:U}),F.name=F.displayName=U.name,F.defaultTooltip=U.defaultTooltip}I&&dt(F.otherDims,I)})}});function g(C,A,M){YL.get(A)!=null?C.otherDims[A]=M:(C.coordDim=A,C.coordDimIndex=M,a.set(A,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)D(i,function(C){b(C)}),i.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var w=p(x),T=w.coordDim;T==null&&(w.coordDim=g4(S,a,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&(KL(r,x)===Re.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return p4(i),new eP({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function p4(r){for(var t=ut(),e=0;e<r.length;e++){var n=r[e],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function d4(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return D(t,function(i){var o;gt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function g4(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 y4=function(){function r(t){this.coordSysDims=[],this.axisMap=ut(),this.categoryAxisMap=ut(),this.coordSysName=t}return r}();function m4(r){var t=r.get("coordinateSystem"),e=new y4(t),n=_4[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var _4={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",ge).models[0],i=r.getReferringComponents("yAxis",ge).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),Zo(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Zo(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",ge).models[0];t.coordSysDims=["single"],e.set("single",a),Zo(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",ge).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Zo(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Zo(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 a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Zo(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Zo(r){return r.get("type")==="category"}function S4(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;x4(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(D(i,function(m,_){nt(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===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,p=f.type,d=0;D(i,function(m){m.coordDim===v&&d++});var g={name:c,coordDim:v,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,p),y.storeDimIndex=s.ensureCalculationDimension(c,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function x4(r){return!rP(r.schema)}function si(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function oP(r,t){return si(r,t)?r.getCalculationInfo("stackResultDimension"):t}function b4(r,t){var e=r.get("coordinateSystem"),n=df.get(e),a;return t&&t.coordSysDims&&(a=X(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Vh(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function w4(r,t,e){var n,a;return e&&D(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function xa(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=u_(r)):(a=n.getSource(),i=a.sourceFormat===Zr);var o=m4(t),s=b4(t,o),l=e.useEncodeDefaulter,u=vt(l)?l:l?bt(qL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=yf(a,f),h=w4(c.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),p=S4(t,{schema:c,store:v}),d=new er(c,t);d.setCalculationInfo(p);var g=h!=null&&T4(a)?function(y,m,_,S){return S===h?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(i?a:v,null,g),d}function T4(r){if(r.sourceFormat===Zr){var t=C4(r.data||[]);return!W($s(t))}}function C4(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Yn=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}();Mv(Yn);var A4=0,om=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++A4}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&X(n,D4);return new r({categories:a,needCollect:!a,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 a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ut(this.categories))},r}();function D4(r){return gt(r)&&r.value!=null?r.value:r+""}function sm(r){return r.type==="interval"||r.type==="log"}function M4(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=kI(i/t);e!=null&&o<e&&(o=a.interval=e),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=sP(o),l=a.niceTickExtent=[he(Math.ceil(r[0]/o)*o,s),he(Math.floor(r[1]/o)*o,s)];return I4(l,r),a}function Md(r){var t=Math.pow(10,N0(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,he(e*t)}function sP(r){return Ln(r)+2}function aw(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function I4(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),aw(r,0,t),aw(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function qv(r,t){return r>=t[0]&&r<=t[1]}function Kv(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function jv(r,t){return r*(t[1]-t[0])+t[0]}var Qv=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new om({})),W(a)&&(a=new om({categories:X(a,function(i){return gt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.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),qv(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Kv(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(jv(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;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,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[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),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},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}(Yn);Yn.registerClass(Qv);var Ni=he,da=function(r){V(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 qv(e,this._extent)},t.prototype.normalize=function(e){return Kv(e,this._extent)},t.prototype.scale=function(e){return jv(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[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=sP(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(e?s.push({value:Ni(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Ni(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:Ni(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=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=Ni(l.value+(u+1)*h);v>i[0]&&v<i[1]&&f.push(v),u++}a.push(f)}return a},t.prototype.getLabel=function(e,n){if(e==null)return"";var a=n&&n.precision;a==null?a=Ln(e.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Ni(e.value,a,!0);return FL(i)},t.prototype.calcNiceTicks=function(e,n,a){e=e||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=M4(i,e,n,a);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 a=Math.abs(n[0]);e.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=Ni(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=Ni(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(Yn);Yn.registerClass(da);var lP=typeof Float32Array<"u",L4=lP?Float32Array:Array;function Rn(r){return W(r)?lP?new Float32Array(r):r:new L4(r)}var lm="__ec_stack_";function S_(r){return r.get("stack")||lm+r.seriesIndex}function x_(r){return r.dim+r.index}function P4(r){var t=[],e=r.axis,n="axis0";if(e.type==="category"){for(var a=e.getBandWidth(),i=0;i<r.count;i++)t.push(dt({bandWidth:a,axisKey:n,stackId:lm+i},r));for(var o=cP(t),s=[],i=0;i<r.count;i++){var l=o[n][lm+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function uP(r,t){var e=[];return t.eachSeriesByType(r,function(n){pP(n)&&e.push(n)}),e}function R4(r){var t={};D(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)),p=c.getStore(),d=0,g=p.count();d<g;++d){var y=p.get(v,d);t[h]?t[h].push(y):t[h]=[y]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function fP(r){var t=R4(r),e=[];return D(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.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 p=et(n.get("barWidth"),s),d=et(n.get("barMaxWidth"),s),g=et(n.get("barMinWidth")||(dP(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:x_(i),stackId:S_(n)})}),cP(e)}function cP(r){var t={};D(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=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 p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var e={};return D(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ot(i).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),D(i,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 p=0,d;D(i,function(y,m){y.width||(y.width=v),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;D(i,function(y,m){e[a][m]=e[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function E4(r,t,e){if(r&&t){var n=r[x_(t)];return n!=null&&e!=null?n[S_(e)]:n}}function hP(r,t){var e=uP(r,t),n=fP(e);D(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=S_(a),u=n[x_(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function vP(r){return{seriesType:r,plan:tl(),reset:function(t){if(pP(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=si(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=k4(a,i),p=dP(t),d=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=p&&Rn(b*3),w=p&&l&&Rn(b*3),T=p&&Rn(b),C=n.master.getRect(),A=h?C.width:C.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(c?g:o,M),R=I.get(s,M),O=v,B=void 0;c&&(B=+P-I.get(o,M));var N=void 0,F=void 0,U=void 0,Z=void 0;if(h){var Q=n.dataToPoint([P,R]);if(c){var ft=n.dataToPoint([B,R]);O=ft[0]}N=O,F=Q[1]+m,U=Q[0]-O,Z=y,Math.abs(U)<d&&(U=(U<0?-1:1)*d)}else{var Q=n.dataToPoint([R,P]);if(c){var ft=n.dataToPoint([R,B]);O=ft[1]}N=Q[0]+m,F=O,U=y,Z=Q[1]-O,Math.abs(Z)<d&&(Z=(Z<=0?-1:1)*d)}p?(x[L]=N,x[L+1]=F,x[L+2]=h?U:Z,w&&(w[L]=h?C.x:N,w[L+1]=h?F:C.y,w[L+2]=A),T[M]=M):S.setItemLayout(M,{x:N,y:F,width:U,height:Z}),L+=3}p&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function pP(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function dP(r){return r.pipelineContext&&r.pipelineContext.large}function k4(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 O4=function(r,t,e,n){for(;e<n;){var a=e+n>>>1;r[a][1]<t?e=a+1:n=a}return e},b_=function(r){V(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 zv(e.value,Zx[yG(Ts(this._minLevelUnit))]||Zx.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return mG(e,n,a,o,i)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,a=[];if(!e)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=H4(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Gr,n[1]+=Gr),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Gr}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,a){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=fc.length,l=Math.min(O4(fc,this._approxInterval,0,s),s-1);this._interval=fc[l][1],this._minLevelUnit=fc[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Gt(e)?e:+Hn(e)},t.prototype.contain=function(e){return qv(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Kv(this.parse(e),this._extent)},t.prototype.scale=function(e){return jv(e,this._extent)},t.type="time",t}(da),fc=[["second",t_],["minute",e_],["hour",vu],["quarter-day",vu*6],["half-day",vu*12],["day",Gr*1.2],["half-week",Gr*3.5],["week",Gr*7],["month",Gr*31],["quarter",Gr*95],["half-year",Xx/2],["year",Xx]];function N4(r,t,e,n){var a=Hn(t),i=Hn(e),o=function(p){return qx(a,p,n)===qx(i,p,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 B4(r,t){return r/=Gr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function V4(r){var t=30*Gr;return r/=t,r>6?6:r>3?3:r>2?2:1}function z4(r){return r/=vu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function iw(r,t){return r/=t?e_:t_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function F4(r){return kI(r)}function G4(r,t,e){var n=new Date(r);switch(Ts(t)){case"year":case"month":n[kL(e)](0);case"day":n[OL(e)](1);case"hour":n[NL(e)](0);case"minute":n[BL(e)](0);case"second":n[VL(e)](0),n[zL(e)](0)}return n.getTime()}function H4(r,t,e,n){var a=1e4,i=RL,o=0;function s(A,M,I,L,P,R,O){for(var B=new Date(M),N=M,F=B[L]();N<I&&N<=n[1];)O.push({value:N}),F+=A,B[P](F),N=B.getTime();O.push({value:N,notAdd:!0})}function l(A,M,I){var L=[],P=!M.length;if(!N4(Ts(A),n[0],n[1],e)){P&&(M=[{value:G4(new Date(n[0]),A,e)},{value:n[1]}]);for(var R=0;R<M.length-1;R++){var O=M[R].value,B=M[R+1].value;if(O!==B){var N=void 0,F=void 0,U=void 0,Z=!1;switch(A){case"year":N=Math.max(1,Math.round(t/Gr/365)),F=r_(e),U=_G(e);break;case"half-year":case"quarter":case"month":N=V4(t),F=Cs(e),U=kL(e);break;case"week":case"half-week":case"day":N=B4(t),F=Fv(e),U=OL(e),Z=!0;break;case"half-day":case"quarter-day":case"hour":N=z4(t),F=Bu(e),U=NL(e);break;case"minute":N=iw(t,!0),F=Gv(e),U=BL(e);break;case"second":N=iw(t,!1),F=Hv(e),U=VL(e);break;case"millisecond":N=F4(t),F=Wv(e),U=zL(e);break}s(N,O,B,F,U,Z,L),A==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R<L.length;R++)I.push(L[R]);return L}}for(var u=[],f=[],c=0,h=0,v=0;v<i.length&&o++<a;++v){var p=Ts(i[v]);if(gG(i[v])){l(i[v],u[u.length-1]||[],f);var d=i[v+1]?Ts(i[v+1]):null;if(p!==d){if(f.length){h=c,f.sort(function(A,M){return A.value-M.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===i[v]))break}f=[]}}}for(var S=Zt(X(u,function(A){return Zt(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],x=S.length-1,v=0;v<S.length;++v)for(var w=S[v],T=0;T<w.length;++T)b.push({value:w[T].value,level:x-v});b.sort(function(A,M){return A.value-M.value});for(var C=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&C.push(b[v]);return C}Yn.registerClass(b_);var ow=Yn.prototype,yu=da.prototype,W4=he,U4=Math.floor,$4=Math.ceil,cc=Math.pow,Qr=Math.log,w_=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new da,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=yu.getTicks.call(this,e);return X(o,function(s){var l=s.value,u=he(cc(this.base,l));return u=l===a[0]&&this._fixMin?hc(u,i[0]):u,u=l===a[1]&&this._fixMax?hc(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var a=Qr(this.base);e=Qr(Math.max(0,e))/a,n=Qr(Math.max(0,n))/a,yu.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=ow.getExtent.call(this);n[0]=cc(e,n[0]),n[1]=cc(e,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=hc(n[0],i[0])),this._fixMax&&(n[1]=hc(n[1],i[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Qr(e[0])/Qr(n),e[1]=Qr(e[1])/Qr(n),ow.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,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=Kz(a),o=e/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[he($4(n[0]/i)*i),he(U4(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){yu.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=Qr(e)/Qr(this.base),qv(e,this._extent)},t.prototype.normalize=function(e){return e=Qr(e)/Qr(this.base),Kv(e,this._extent)},t.prototype.scale=function(e){return e=jv(e,this._extent),cc(this.base,e)},t.type="log",t}(Yn),gP=w_.prototype;gP.getMinorTicks=yu.getMinorTicks;gP.getLabel=yu.getLabel;function hc(r,t){return W4(r,Ln(t))}Yn.registerClass(w_);var Y4=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 a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;vt(o)?this._modelMinNum=vc(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=vc(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(vt(s)?this._modelMaxNum=vc(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=vc(t,s)),a)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=W(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[cn(u[0],1),cn(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=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?a?0:NaN:e-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Mu(s)||Mu(l)||t&&!a;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[Z4[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=X4[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),X4={min:"_determinedMin",max:"_determinedMax"},Z4={min:"_dataMin",max:"_dataMax"};function yP(r,t,e){var n=r.rawExtentInfo;return n||(n=new Y4(r,t,e),r.rawExtentInfo=n,n)}function vc(r,t){return t==null?null:Mu(t)?NaN:r.parse(t)}function mP(r,t){var e=r.type,n=yP(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=uP("bar",o),l=!1;if(D(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=fP(s),f=q4(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function q4(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=E4(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;D(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;D(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)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Os(r,t){var e=t,n=mP(r,e),a=n.extent,i=e.get("splitNumber");r instanceof w_&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,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 Jv(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Qv({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new b_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Yn.getClass(t)||da)}}function K4(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function nl(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(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):nt(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):vt(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(T_(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function T_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function j4(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof Qv?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=nl(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=n?n[f]:{value:i[0]+f},h=s(c,f),v=o.getTextRect(h),p=Q4(v,o.get("rotate")||0);l?l.union(p):l=p}return l}}function Q4(r,t){var e=t*Math.PI/180,n=r.width,a=r.height,i=n*Math.abs(Math.cos(e))+Math.abs(a*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(a*Math.cos(e)),s=new Mt(r.x,r.y,i,o);return s}function C_(r){var t=r.get("interval");return t??"auto"}function _P(r){return r.type==="category"&&C_(r.getLabelModel())===0}function zh(r,t){var e={};return D(r.mapDimensionsAll(t),function(n){e[oP(r,n)]=!0}),Ot(e)}function J4(r,t,e){t&&D(zh(t,e),function(n){var a=t.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var mf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),tW=1e-8;function sw(r,t){return Math.abs(r-t)<tW}function Zi(r,t,e){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=ta(a[0],a[1],o[0],o[1],t,e),a=o}var s=r[0];return(!sw(a[0],s[0])||!sw(a[1],s[1]))&&(n+=ta(a[0],a[1],s[0],s[1],t,e)),n!==0}var eW=[];function Id(r,t){for(var e=0;e<r.length;e++)Ee(r[e],r[e],t)}function lw(r,t,e,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Ha(t,t,i),Wa(e,e,i))}}function rW(r){for(var t=0,e=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;t+=f,e+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var SP=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}(),uw=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),fw=function(){function r(t){this.type="linestring",this.points=t}return r}(),xP=function(r){V(t,r);function t(e,n,a){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,a=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return rW(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 a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?lw(s.exterior,a,i,e):D(s.points,function(l){lw(l,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Mt(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Zi(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Zi(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new Mt(e,n,a,i),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var h=f[c];h.type==="polygon"?(Id(h.exterior,u),D(h.interiors,function(v){Id(v,u)})):D(h.points,function(v){Id(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}(SP),nW=function(r){V(t,r);function t(e,n){var a=r.call(this,e)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Tv(eW),o=e;o&&!o.isGeoSVGGraphicRoot;)oa(i,o.getLocalTransform(),i),o=o.parent;return Us(i,i),Ee(a,a,i),a},t}(SP);function aW(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return D(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=bP(s,o,e);break;case"Polygon":Ld(s,o,e);break;case"MultiLineString":Ld(s,o,e);break;case"MultiPolygon":D(s,function(l,u){return Ld(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Ld(r,t,e){for(var n=0;n<r.length;n++)r[n]=bP(r[n],t[n],e)}function bP(r,t,e){for(var n=[],a=t[0],i=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+=a,l+=i,a=s,i=l,n.push([s/e,l/e])}return n}function iW(r,t){return r=aW(r),X(Zt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new uw(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(l){l[0]&&i.push(new uw(l[0],l.slice(1)))});break;case"LineString":i.push(new fw([a.coordinates]));break;case"MultiLineString":i.push(new fw(a.coordinates))}var s=new xP(n[t||"name"],i,n.cp);return s.properties=n,s})}var Wu=zt();function wP(r,t){var e=X(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 oW(r){var t=r.getLabelModel().get("customValues");if(t){var e=nl(r);return{labels:wP(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?lW(r):fW(r)}function sW(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:wP(r,e)}:r.type==="category"?uW(r,t):{ticks:X(r.scale.getTicks(),function(n){return n.value})}}function lW(r){var t=r.getLabelModel(),e=TP(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function TP(r,t){var e=CP(r,"labels"),n=C_(t),a=AP(e,n);if(a)return a;var i,o;return vt(n)?i=IP(r,n):(o=n==="auto"?cW(r):n,i=MP(r,o)),DP(e,n,{labels:i,labelCategoryInterval:o})}function uW(r,t){var e=CP(r,"ticks"),n=C_(t),a=AP(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),vt(n))i=IP(r,n,!0);else if(n==="auto"){var s=TP(r,r.getLabelModel());o=s.labelCategoryInterval,i=X(s.labels,function(l){return l.tickValue})}else o=n,i=MP(r,o,!0);return DP(e,n,{ticks:i,tickCategoryInterval:o})}function fW(r){var t=r.scale.getTicks(),e=nl(r);return{labels:X(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function CP(r,t){return Wu(r)[t]||(Wu(r)[t]=[])}function AP(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function DP(r,t,e){return r.push({key:t,value:e}),e}function cW(r){var t=Wu(r).autoInterval;return t??(Wu(r).autoInterval=r.calculateCategoryInterval())}function hW(r){var t=vW(r),e=nl(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[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<=i[1];l+=s){var p=0,d=0,g=sf(e({value:l}),t.font,"center","top");p=g.width*1.3,d=g.height*1.3,h=Math.max(h,p,7),v=Math.max(v,d,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=Wu(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function vW(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 MP(r,t,e){var n=nl(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=_P(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);v&&p-l!==i[1]&&d(i[1]);function d(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function IP(r,t,e){var n=r.scale,a=nl(r),i=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var cw=[0,1],pn=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]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return RI(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,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),hw(n,a.count())),Xt(t,cw,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),hw(n,a.count()));var i=Xt(t,n,cw,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=sW(this,e),a=n.ticks,i=X(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return pW(this,i,o,t.clamp),i},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),a=X(n,function(i){return X(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return oW(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 a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return hW(this)},r}();function hw(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function pW(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;D(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,p){return v=he(v),p=he(p),c?v>p:v<p}}var Dl=Math.PI*2,Bi=Wn.CMD,dW=["top","right","bottom","left"];function gW(r,t,e,n,a){var i=e.width,o=e.height;switch(r){case"top":n.set(e.x+i/2,e.y-t),a.set(0,-1);break;case"bottom":n.set(e.x+i/2,e.y+o+t),a.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),a.set(-1,0);break;case"right":n.set(e.x+i+t,e.y+o/2),a.set(1,0);break}}function yW(r,t,e,n,a,i,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-a)%Dl<1e-4)return l[0]=f,l[1]=c,u-e;if(i){var h=n;n=Cr(a),a=Cr(h)}else n=Cr(n),a=Cr(a);n>a&&(a+=Dl);var v=Math.atan2(s,o);if(v<0&&(v+=Dl),v>=n&&v<=a||v+Dl>=n&&v+Dl<=a)return l[0]=f,l[1]=c,u-e;var p=e*Math.cos(n)+r,d=e*Math.sin(n)+t,g=e*Math.cos(a)+r,y=e*Math.sin(a)+t,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Fh(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,p=v/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var d=o[0]=r+p*f,g=o[1]=t+p*c;return Math.sqrt((d-a)*(d-a)+(g-i)*(g-i))}function LP(r,t,e,n,a,i,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(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var rn=[];function mW(r,t,e){var n=LP(t.x,t.y,t.width,t.height,r.x,r.y,rn);return e.set(rn[0],rn[1]),n}function _W(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v<f.length;){var p=f[v++];v===1&&(n=f[v],a=f[v+1],i=n,o=a);var d=u;switch(p){case Bi.M:i=f[v++],o=f[v++],n=i,a=o;break;case Bi.L:d=Fh(n,a,f[v],f[v+1],c,h,rn,!0),n=f[v++],a=f[v++];break;case Bi.C:d=pI(n,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,rn),n=f[v++],a=f[v++];break;case Bi.Q:d=gI(n,a,f[v++],f[v++],f[v],f[v+1],c,h,rn),n=f[v++],a=f[v++];break;case Bi.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,v<=1&&(i=s,o=l);var w=(c-g)*_/m+g;d=yW(g,y,_,S,S+b,x,w,h,rn),n=Math.cos(S+b)*m+g,a=Math.sin(S+b)*_+y;break;case Bi.R:i=n=f[v++],o=a=f[v++];var T=f[v++],C=f[v++];d=LP(i,o,T,C,c,h,rn);break;case Bi.Z:d=Fh(n,a,i,o,c,h,rn,!0),n=i,a=o;break}d<u&&(u=d,e.set(rn[0],rn[1]))}return u}var on=new Ct,re=new Ct,ve=new Ct,En=new Ct,In=new Ct;function vw(r,t){if(r){var e=r.getTextGuideLine(),n=r.getTextContent();if(n&&e){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||dW,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),c=f&&Us([],f),h=t.get("length2")||0;u&&ve.copy(u);for(var v=0;v<o.length;v++){var p=o[v];gW(p,0,s,on,En),Ct.scaleAndAdd(re,on,En,h),re.transform(c);var d=r.getBoundingRect(),g=u?u.distance(re):r instanceof Pt?_W(re,r.path,ve):mW(re,d,ve);g<l&&(l=g,re.transform(f),ve.transform(f),ve.toArray(i[0]),re.toArray(i[1]),on.toArray(i[2]))}PP(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Gh=[],Qe=new Ct;function PP(r,t){if(t<=180&&t>0){t=t/180*Math.PI,on.fromArray(r[0]),re.fromArray(r[1]),ve.fromArray(r[2]),Ct.sub(En,on,re),Ct.sub(In,ve,re);var e=En.len(),n=In.len();if(!(e<.001||n<.001)){En.scale(1/e),In.scale(1/n);var a=En.dot(In),i=Math.cos(t);if(i<a){var o=Fh(re.x,re.y,ve.x,ve.y,on.x,on.y,Gh,!1);Qe.fromArray(Gh),Qe.scaleAndAdd(In,o/Math.tan(Math.PI-t));var s=ve.x!==re.x?(Qe.x-re.x)/(ve.x-re.x):(Qe.y-re.y)/(ve.y-re.y);if(isNaN(s))return;s<0?Ct.copy(Qe,re):s>1&&Ct.copy(Qe,ve),Qe.toArray(r[1])}}}}function SW(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,on.fromArray(r[0]),re.fromArray(r[1]),ve.fromArray(r[2]),Ct.sub(En,re,on),Ct.sub(In,ve,re);var n=En.len(),a=In.len();if(!(n<.001||a<.001)){En.scale(1/n),In.scale(1/a);var i=En.dot(t),o=Math.cos(e);if(i<o){var s=Fh(re.x,re.y,ve.x,ve.y,on.x,on.y,Gh,!1);Qe.fromArray(Gh);var l=Math.PI/2,u=Math.acos(In.dot(t)),f=l+u-e;if(f>=l)Ct.copy(Qe,ve);else{Qe.scaleAndAdd(In,s/Math.tan(Math.PI/2-f));var c=ve.x!==re.x?(Qe.x-re.x)/(ve.x-re.x):(Qe.y-re.y)/(ve.y-re.y);if(isNaN(c))return;c<0?Ct.copy(Qe,re):c>1&&Ct.copy(Qe,ve)}Qe.toArray(r[1])}}}}function Pd(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function xW(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 a=Ga(n[0],n[1]),i=Ga(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=Wc([],n[1],n[0],o/a),l=Wc([],n[1],n[2],o/i),u=Wc([],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 A_(r,t,e){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<ku.length;l++){var u=ku[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:St(a.states[u]&&a.states[u].ignore,s);if(v||!St(h,o)){var p=c?n:n&&n.states[u];p&&(p.ignore=!0),n&&Pd(n,!0,u,f);continue}n||(n=new sr,r.setTextGuideLine(n),!c&&(s||!o)&&Pd(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Pd(n,!1,u,f)}}if(n){dt(n.style,e),n.style.fill=null;var d=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,n.buildPath=xW}}function D_(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<ar.length;n++){var a=ar[n];e[a]=r.getModel([a,t])}return e}function RP(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Ch(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function EP(r,t,e,n,a,i){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.rect[t]-C.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 p=Math.max(-l,0);f+=p,s=v[t]+v[e]}f>0&&i&&b(-f/o,0,o);var d=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=d.rect[t]-n,m=a-g.rect[t]-g.rect[e]}function S(T,C,A){if(T<0){var M=Math.min(C,-T);if(M>0){b(M*A,0,o);var I=M+T;I<0&&x(-I*A,1)}else x(-T*A,1)}}function b(T,C,A){T!==0&&(u=!0);for(var M=C;M<A;M++){var I=r[M],L=I.rect;L[t]+=T,I.label[t]+=T}}function x(T,C){for(var A=[],M=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[t]-L[t]-L[e],0);A.push(P),M+=P}if(M){var R=Math.min(Math.abs(T)/M,C);if(T>0)for(var I=0;I<o-1;I++){var O=A[I]*R;b(O,0,I+1)}else for(var I=o-1;I>0;I--){var O=A[I-1]*R;b(-O,I,o)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),M=0;M<o-1;M++)if(C>0?b(A,0,M+1):b(-A,o-M-1,o),T-=A,T<=0)return}return u}function bW(r,t,e,n){return EP(r,"x","width",t,e,n)}function kP(r,t,e,n){return EP(r,"y","height",t,e,n)}function OP(r){var t=[];r.sort(function(d,g){return g.priority-d.priority});var e=new Mt(0,0,0,0);function n(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var a=0;a<r.length;a++){var i=r[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var c=i.obb,h=!1,v=0;v<t.length;v++){var p=t[v];if(e.intersect(p.rect)){if(o&&p.axisAligned){h=!0;break}if(p.obb||(p.obb=new Ch(p.localRect,p.transform)),c||(c=new Ch(s,l)),c.intersect(p.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function wW(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function TW(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:wW(n&&n.shape.points)}}var pw=["align","verticalAlign","width","height","fontSize"],Xe=new ea,Rd=zt(),CW=zt();function pc(r,t,e){for(var n=0;n<e.length;n++){var a=e[n];t[a]!=null&&(r[a]=t[a])}}var dc=["x","y","rotation"],AW=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();Mt.applyTransform(f,f,u),u?Xe.setLocalTransform(u):(Xe.x=Xe.y=Xe.rotation=Xe.originX=Xe.originY=0,Xe.scaleX=Xe.scaleY=1),Xe.rotation=Cr(Xe.rotation);var c=a.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Mt.applyTransform(h,h,v)}var p=h&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:p&&p.ignore,x:Xe.x,y:Xe.y,scaleX:Xe.scaleX,scaleY:Xe.scaleY,rotation:Xe.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(vt(a)||Ot(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=_t(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function a(_,S){return function(){vw(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;vt(o.layoutOption)?f=o.layoutOption(TW(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 p=Rd(s);p.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<pw.length;d++){var g=pw[d];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",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),a=RP(this._labelList),i=Zt(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Zt(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});bW(i,0,e),kP(o,0,n);var s=Zt(a,function(l){return l.layoutOption.hideOverlap});OP(s)},r.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(e){var n=e.__model,a=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Rd(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),a=_t(t),i=a.dataIndex;if(n&&i!=null){var o=e.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");A_(t,D_(s),l),vw(t,c)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!bs(t))){var i=Rd(n),o=i.oldLayout,s=_t(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&&(It(h,"select")>=0&&n.attr(i.oldLayoutSelect),It(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Ht(n,u,e,l)}else if(n.attr(u),!qs(n).valueAnimation){var c=St(n.style.opacity,1);n.style.opacity=0,ie(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};pc(v,u,dc),pc(v,n.states.select,dc)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};pc(p,u,dc),pc(p,n.states.emphasis,dc)}DL(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=CW(a),o=i.oldLayout,d={points:a.shape.points};o?(a.attr({shape:o}),Ht(a,{shape:d},e)):(a.setShape(d),a.style.strokePercent=0,ie(a,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),Ed=zt();function DW(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Ed(e).labelManager;a||(a=Ed(e).labelManager=new AW),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Ed(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var kd=Math.sin,Od=Math.cos,NP=Math.PI,Vi=Math.PI*2,MW=180/NP,BP=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,a,i,o){this._add("C",t,e,n,a,i,o)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,o){this.ellipse(t,e,n,n,0,a,i,o)},r.prototype.ellipse=function(t,e,n,a,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=Ya(c-Vi)||(f?u>=Vi:-u>=Vi),v=u>0?u%Vi:u%Vi+Vi,p=!1;h?p=!0:Ya(c)?p=!1:p=v>=NP==!!f;var d=t+n*Od(o),g=e+a*kd(o);this._start&&this._add("M",d,g);var y=Math.round(i*MW);if(h){var m=1/this._p,_=(f?1:-1)*(Vi-m);this._add("A",n,a,y,1,+f,t+n*Od(o+_),e+a*kd(o+_)),m>.01&&this._add("A",n,a,y,0,+f,d,g)}else{var S=t+n*Od(s),b=e+a*kd(s);this._add("A",n,a,y,+p,+f,S,b)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),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,a,i,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}(),M_="none",IW=Math.round;function LW(r){var t=r.fill;return t!=null&&t!==M_}function PW(r){var t=r.stroke;return t!=null&&t!==M_}var um=["lineCap","miterLimit","lineJoin"],RW=X(um,function(r){return"stroke-"+r.toLowerCase()});function EW(r,t,e,n){var a=t.opacity==null?1:t.opacity;if(e instanceof Pe){r("opacity",a);return}if(LW(t)){var i=Pu(t.fill);r("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;o<1&&r("fill-opacity",o)}else r("fill",M_);if(PW(t)){var s=Pu(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*a:s.opacity*a,c=t.strokeFirst;if(u!==1&&r("stroke-width",u),c&&r("paint-order",c?"stroke":"fill"),f<1&&r("stroke-opacity",f),t.lineDash){var h=p_(e),v=h[0],p=h[1];v&&(p=IW(p||0),r("stroke-dasharray",v.join(",")),(p||n)&&r("stroke-dashoffset",p))}for(var d=0;d<um.length;d++){var g=um[d];if(t[g]!==wh[g]){var y=t[g]||wh[g];y&&r(RW[d],y)}}}}var VP="http://www.w3.org/2000/svg",zP="http://www.w3.org/1999/xlink",kW="http://www.w3.org/2000/xmlns/",OW="http://www.w3.org/XML/1998/namespace",dw="ecmeta_";function FP(r){return document.createElementNS(VP,r)}function Ce(r,t,e,n,a){return{tag:r,attrs:e||{},children:n,text:a,key:t}}function NW(r,t){var e=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),e.push(i))}return"<"+r+" "+e.join(" ")+">"}function BW(r){return"</"+r+">"}function I_(r,t){t=t||{};var e=t.newline?`
|
||
`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return NW(o,s)+(o!=="style"?fr(l):l||"")+(i?""+e+X(i,function(u){return n(u)}).join(e)+e:"")+BW(o)}return n(r)}function VW(r,t,e){e=e||{};var n=e.newline?`
|
||
`:"",a=" {"+n,i=n+"}",o=X(Ot(r),function(l){return l+a+X(Ot(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=X(Ot(t),function(l){return"@keyframes "+l+a+X(Ot(t[l]),function(u){return u+a+X(Ot(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function fm(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function gw(r,t,e,n){return Ce("svg","root",{width:r,height:t,xmlns:VP,"xmlns:xlink":zP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var zW=0;function GP(){return zW++}var yw={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"},Hi="transform-origin";function FW(r,t,e){var n=H({},r.shape);H(n,t),r.buildPath(e,n);var a=new BP;return a.reset(wI(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function GW(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[Hi]=e+"px "+n+"px")}var HW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function HP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function WW(r,t,e){var n=r.shape.paths,a={},i,o;if(D(n,function(l){var u=fm(e.zrId);u.animation=!0,tp(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=Ot(f),v=h.length;if(v){o=h[v-1];var p=f[o];for(var d in p){var g=p[d];a[d]=a[d]||{d:""},a[d].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=HP(a,e);return i.replace(o,s)}}function mw(r){return nt(r)?yw[r]?"cubic-bezier("+yw[r]+")":E0(r)?r:"":""}function tp(r,t,e,n){var a=r.animators,i=a.length,o=[];if(r instanceof Z0){var s=WW(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],h=mw(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 p=c.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function C($,K,j){for(var J=$.getTracks(),ct=$.getMaxTime(),E=0;E<J.length;E++){var k=J[E];if(k.needsAnimate()){var z=k.keyframes,q=k.propName;if(j&&(q=j(q)),q)for(var Y=0;Y<z.length;Y++){var tt=z[Y],ot=Math.round(tt.time/ct*100)+"%",lt=mw(tt.easing),at=tt.rawValue;(nt(at)||Gt(at))&&(K[ot]=K[ot]||{},K[ot][q]=tt.rawValue,lt&&(K[ot][T]=lt))}}}}for(var A=0;A<S;A++){var M=_[A],I=M.targetName;I?I==="shape"&&C(M,x):!n&&C(M,b)}for(var L in b){var P={};MI(P,r),H(P,b[L]);var R=TI(P),O=b[L][T];w[L]=R?{transform:R}:{},GW(w[L],P),O&&(w[L][T]=O)}var B,N=!0;for(var L in x){w[L]=w[L]||{};var F=!B,O=x[L][T];F&&(B=new Wn);var U=B.len();B.reset(),w[L].d=FW(r,x[L],B);var Z=B.len();if(!F&&U!==Z){N=!1;break}O&&(w[L][T]=O)}if(!N)for(var L in w)delete w[L].d;if(!n)for(var A=0;A<S;A++){var M=_[A],I=M.targetName;I==="style"&&C(M,w,function(J){return HW[J]})}for(var Q=Ot(w),ft=!0,ht,A=1;A<Q.length;A++){var Tt=Q[A-1],xt=Q[A];if(w[Tt][Hi]!==w[xt][Hi]){ft=!1;break}ht=w[Tt][Hi]}if(ft&&ht){for(var L in w)w[L][Hi]&&delete w[L][Hi];t[Hi]=ht}if(Zt(Q,function($){return Ot(w[$]).length>0}).length){var G=HP(w,e);return G+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+GP();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function UW(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};_w(n,t,e)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){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&&(i=by(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),_w(n,t,e)}}function _w(r,t,e,n){var a=JSON.stringify(r),i=e.cssStyleCache[a];i||(i=e.zrId+"-cls-"+GP(),e.cssStyleCache[a]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var Uu=Math.round;function WP(r){return r&&nt(r.src)}function UP(r){return r&&vt(r.toDataURL)}function L_(r,t,e,n){EW(function(a,i){var o=a==="fill"||a==="stroke";o&&bI(i)?YP(t,r,a,n):o&&k0(i)?XP(e,r,a,n):o&&i==="none"?r[a]="transparent":r[a]=i},t,e,!1),jW(e,r,n)}function P_(r,t){var e=Wz(t);e&&(e.each(function(n,a){n!=null&&(r[(dw+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[dw+"silent"]="true"))}function Sw(r){return Ya(r[0]-1)&&Ya(r[1])&&Ya(r[2])&&Ya(r[3]-1)}function $W(r){return Ya(r[4])&&Ya(r[5])}function R_(r,t,e){if(t&&!($W(t)&&Sw(t))){var n=1e4;r.transform=Sw(t)?"translate("+Uu(t[4]*n)/n+" "+Uu(t[5]*n)/n+")":hz(t)}}function xw(r,t,e){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(Uu(n[i][0]*e)/e),a.push(Uu(n[i][1]*e)/e);t.points=a.join(" ")}function bw(r){return!r.smooth}function YW(r){var t=X(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=e[o[0]];s!=null&&(n[o[1]]=Uu(s*a)/a)}}}var XW={circle:[YW(["cx","cy","r"])],polyline:[xw,bw],polygon:[xw,bw]};function ZW(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function $P(r,t){var e=r.style,n=r.shape,a=XW[r.type],i={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&wI(r)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&ZW(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](n,i,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(),p=r,d=p.__svgPathBuilder;(p.__svgPathVersion!==v||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new BP),d.reset(u),h.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=v,p.__svgPathStrokePercent=l),i.d=d.getStr()}return R_(i,r.transform),L_(i,e,r,t),P_(i,r),t.animation&&tp(r,i,t),t.emphasis&&UW(r,i,t),Ce(s,r.id+"",i)}function qW(r,t){var e=r.style,n=e.image;if(n&&!nt(n)&&(WP(n)?n=n.src:UP(n)&&(n=n.toDataURL())),!!n){var a=e.x||0,i=e.y||0,o=e.width,s=e.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),R_(l,r.transform),L_(l,e,r,t),P_(l,r),t.animation&&tp(r,l,t),Ce("image",r.id+"",l)}}function KW(r,t){var e=r.style,n=e.text;if(n!=null&&(n+=""),!(!n||isNaN(e.x)||isNaN(e.y))){var a=e.font||ri,i=e.x||0,o=pz(e.y||0,Av(a),e.textBaseline),s=vz[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(tL(e)){var u="",f=e.fontStyle,c=JI(e.fontSize);if(!parseFloat(c))return;var h=e.fontFamily||JM,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: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),R_(l,r.transform),L_(l,e,r,t),P_(l,r),t.animation&&tp(r,l,t),Ce("text",r.id+"",l,void 0,n)}}function ww(r,t){if(r instanceof Pt)return $P(r,t);if(r instanceof Pe)return qW(r,t);if(r instanceof Ps)return KW(r,t)}function jW(r,t,e){var n=r.style;if(dz(n)){var a=gz(r),i=e.shadowCache,o=i[a];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=Pu(n.shadowColor),p=v.opacity,d=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":d,"flood-opacity":p})]),i[a]=o}t.filter=Cv(o)}}function YP(r,t,e,n){var a=r[e],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(SI(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(xI(a))i="radialGradient",o.cx=St(a.x,.5),o.cy=St(a.y,.5),o.r=St(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=wy(s[u].offset)*100+"%",h=s[u].color,v=Pu(h),p=v.color,d=v.opacity,g={offset:c};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(Ce("stop",u+"",g))}var y=Ce(i,"",o,l),m=I_(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=Ce(i,S,o,l)),t[e]=Cv(S)}function XP(r,t,e,n){var a=r.style[e],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(_I(a)){var h=a.imageWidth,v=a.imageHeight,p=void 0,d=a.image;if(nt(d)?p=d:WP(d)?p=d.src:UP(d)&&(p=d.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";nr(h,g),nr(v,g)}else if(h==null||v==null){var y=function(A,M){if(A){var I=A.elm,L=h||M.width,P=v||M.height;A.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),A.attrs.width=L,A.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=F0(p,null,r,function(A){l||y(x,A),y(c,A)});m&&m.width&&m.height&&(h=h||m.width,v=v||m.height)}c=Ce("image","img",{href:p,width:h,height:v}),o.width=h,o.height=v}else a.svgElement&&(c=yt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=TI(a);b&&(o.patternTransform=b);var x=Ce("pattern","",o,[c]),w=I_(x),T=n.patternCache,C=T[w];C||(C=n.zrId+"-p"+n.patternIdx++,T[w]=C,o.id=C,x=n.defs[C]=Ce("pattern",C,o,[c])),t[e]=Cv(C)}}function QW(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=Ce("clipPath",i,o,[$P(r,e)])}t["clip-path"]=Cv(i)}function Tw(r){return document.createTextNode(r)}function qi(r,t,e){r.insertBefore(t,e)}function Cw(r,t){r.removeChild(t)}function Aw(r,t){r.appendChild(t)}function ZP(r){return r.parentNode}function qP(r){return r.nextSibling}function Nd(r,t){r.textContent=t}var Dw=58,JW=120,t6=Ce("","");function cm(r){return r===void 0}function An(r){return r!==void 0}function e6(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function Yl(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function $u(r){var t,e=r.children,n=r.tag;if(An(n)){var a=r.elm=FP(n);if(E_(t6,r),W(e))for(t=0;t<e.length;++t){var i=e[t];i!=null&&Aw(a,$u(i))}else An(r.text)&&!gt(r.text)&&Aw(a,Tw(r.text))}else r.elm=Tw(r.text);return r.elm}function KP(r,t,e,n,a){for(;n<=a;++n){var i=e[n];i!=null&&qi(r,$u(i),t)}}function Hh(r,t,e,n){for(;e<=n;++e){var a=t[e];if(a!=null)if(An(a.tag)){var i=ZP(a.elm);Cw(i,a.elm)}else Cw(r,a.elm)}}function E_(r,t){var e,n=t.elm,a=r&&r.attrs||{},i=t.attrs||{};if(a!==i){for(e in i){var o=i[e],s=a[e];s!==o&&(o===!0?n.setAttribute(e,""):o===!1?n.removeAttribute(e):e==="style"?n.style.cssText=o:e.charCodeAt(0)!==JW?n.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?n.setAttributeNS(kW,e,o):e.charCodeAt(3)===Dw?n.setAttributeNS(OW,e,o):e.charCodeAt(5)===Dw?n.setAttributeNS(zP,e,o):n.setAttribute(e,o))}for(e in a)e in i||n.removeAttribute(e)}}function r6(r,t,e){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=e.length-1,u=e[0],f=e[l],c,h,v,p;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=e[++a]:f==null?f=e[--l]:Yl(o,u)?(ls(o,u),o=t[++n],u=e[++a]):Yl(s,f)?(ls(s,f),s=t[--i],f=e[--l]):Yl(o,f)?(ls(o,f),qi(r,o.elm,qP(s.elm)),o=t[++n],f=e[--l]):Yl(s,u)?(ls(s,u),qi(r,s.elm,o.elm),s=t[--i],u=e[++a]):(cm(c)&&(c=e6(t,n,i)),h=c[u.key],cm(h)?qi(r,$u(u),o.elm):(v=t[h],v.tag!==u.tag?qi(r,$u(u),o.elm):(ls(v,u),t[h]=void 0,qi(r,v.elm,o.elm))),u=e[++a]);(n<=i||a<=l)&&(n>i?(p=e[l+1]==null?null:e[l+1].elm,KP(r,p,e,a,l)):Hh(r,t,n,i))}function ls(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(E_(r,t),cm(t.text)?An(n)&&An(a)?n!==a&&r6(e,n,a):An(a)?(An(r.text)&&Nd(e,""),KP(e,null,a,0,a.length-1)):An(n)?Hh(e,n,0,n.length-1):An(r.text)&&Nd(e,""):r.text!==t.text&&(An(n)&&Hh(e,n,0,n.length-1),Nd(e,t.text)))}function n6(r,t){if(Yl(r,t))ls(r,t);else{var e=r.elm,n=ZP(e);$u(t),n!==null&&(qi(n,t.elm,qP(e)),Hh(n,[r],0,0))}return t}var a6=0,i6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=Mw(),this.configLayer=Mw(),this.storage=e,this._opts=n=H({},n),this.root=t,this._id="zr"+a6++,this._oldVNode=gw(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=FP("svg");E_(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}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",n6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return ww(t,fm(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=fm(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var o=[],s=this._bgVNode=o6(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Ce("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=X(Ot(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(Ce("defs","defs",{},u)),t.animation){var f=VW(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=Ce("style","stl",{},[],f);o.push(c)}}return gw(n,a,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},I_(this.renderToVNode({animation:St(t.cssAnimation,!0),emphasis:St(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:St(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 a=t.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var c=t[f];if(!c.invisible){var h=c.__clipPaths,v=h&&h.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(v-1,p-1);d>=0&&!(h&&l&&h[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;y<v;y++){var m={};QW(h[y],m,e);var _=Ce("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=h;var S=ww(c,e);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(t,e){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),e!=null&&(n.height=e),a&&i&&(i.style.display="none",t=ps(a,0,n),e=ps(a,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(k0(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=mz(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},r}();function Mw(r){return function(){}}function o6(r,t,e,n){var a;if(e&&e!=="none")if(a=Ce("rect","bg",{width:r,height:t,x:"0",y:"0"}),bI(e))YP({fill:e},a.attrs,"fill",n);else if(k0(e))XP({style:{fill:e},dirty:pe,getBoundingRect:function(){return{width:r,height:t}}},a.attrs,"fill",n);else{var i=Pu(e),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function s6(r){r.registerPainter("svg",i6)}function Iw(r,t,e){var n=ni.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*e,n.height=i*e,n}var Bd=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||xh,typeof e=="string"?o=Iw(e,n,a):gt(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(iI(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}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=Iw("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,a,i){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,b=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var C=new Mt(0,0,0,0);C.copy(T),C.union(m),o[w]=C,S=!0;break}else if(l){u.copy(m),u.union(T);var A=m.width*m.height,M=T.width*T.height,I=u.width*u.height,L=I-A-M;L<b&&(b=L,x=w)}}if(l&&(o[x].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(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&wr||!v)?h.getPrevPaintRect():null;p&&f(p);var d=v&&(h.__dirty&wr||!h.__isRendered)?h.getPaintRect():null;d&&f(d)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],v=h&&h.shouldBePainted(a,i,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&f(p)}}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 a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),i.width=e*a,i.height=n*a,s&&(s.width=e*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(e,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.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(i,0,0,s/c,l/c));var v=this.domBack;function p(d,g,y,m){if(o.clearRect(d,g,y,m),n&&n!=="transparent"){var _=void 0;if(bv(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||em(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else AV(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=rm(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(d,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,d,g,y,m),o.restore())}!a||u?p(0,0,s,l):a.length&&D(a,function(d){p(d.x*c,d.y*c,d.width*c,d.height*c)})},t}(Xr),Lw=1e5,zi=314159,gc=.01,l6=.001;function u6(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function f6(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 c6=function(){function r(t,e,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=H({},n||{}),this.dpr=n.devicePixelRatio||xh,this._singleCanvas=i,this.root=t;var o=t.style;o&&(iI(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){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 Bd(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[zi]=v,v.zlevel=zi,s.push(zi),this._domRoot=t}else{this._width=ps(t,0,n),this._height=ps(t,1,n);var u=this._domRoot=f6(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,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===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 a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Lw)),i||(i=n.ctx,i.save()),ao(i,s,a,o===e-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Lw)},r.prototype.paintOne=function(t,e){O2(t,e)},r.prototype._paintList=function(t,e,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;dh(function(){l._paintList(t,e,n,a)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(zi).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var a=this,i=[],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)&&i.push(u)}for(var f=!0,c=!1,h=function(d){var g=i[d],y=g.ctx,m=o&&g.createRepaintRects(t,e,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,b=S&&Date.now(),x=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,m);else if(_===g.__startIndex){var w=t[_];(!w.incremental||!w.notClear||n)&&g.clear(!1,x,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<g.__endIndex;T++){var R=t[T];if(R.__inHover&&(c=!0),a._doPaintEl(R,g,o,L,P,T===g.__endIndex-1),S){var O=Date.now()-b;if(O>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var A=v.dpr,M=0;M<m.length;++M){var I=m[M];y.save(),y.beginPath(),y.rect(I.x*A,I.y*A,I.width*A,I.height*A),y.clip(),C(I),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,p=0;p<i.length;p++)h(p);return Rt.wxa&&D(this._layers,function(d){d&&d.ctx&&d.ctx.draw&&d.ctx.draw()}),{finished:f,needsRefreshHover:c}},r.prototype._doPaintEl=function(t,e,n,a,i,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(ao(s,t,i,o),t.setPrevPaintRect(l))}else ao(s,t,i,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=zi);var n=this._layers[t];return n||(n=new Bd("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Dt(n,this._layerConfig[t],!0):this._layerConfig[t-gc]&&Dt(n,this._layerConfig[t-gc],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&u6(e)){if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.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,a=0;a<n.length;a++){var i=n[a];t.call(e,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},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){i&&(i.__endIndex!==c&&(i.__dirty=!0),i.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+l6,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?gc:0),this._needsManuallyCompositing),f.__builtin__||A0("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),a.__dirty&wr&&!a.__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,D(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Dt(n[t],e,!0):n[t]=e;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+gc){var o=this._layers[i];Dt(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,a=e[t];a&&(a.dom.parentNode.removeChild(a.dom),delete e[t],n.splice(It(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),e!=null&&(a.height=e),t=ps(i,0,a),e=ps(i,1,a),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(zi).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[zi].dom;var e=new Bd("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 a=e.dom.width,i=e.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):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];ao(n,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function h6(r){r.registerPainter("canvas",c6)}var v6=function(r){V(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 xa(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new mt,a=ye("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(a),a.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=ye(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}(ae);function Ns(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Es(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<e.length;o++)i.push(Es(r,t,e[o]));return i.join(" ")}}function jP(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!W(t))return t+"";for(var n=[],a=0;a<e.length;a++){var i=r.getDimensionIndex(e[a]);i>=0&&n.push(t[i])}return n.join(" ")}var _f=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=ye(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=p6,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(){ha(this.childAt(0))},t.prototype.downplay=function(){va(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.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),hn(h)}if(this._updateCommon(e,n,l,a,i),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,ie(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,p,d,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.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"),p=_.get("disabled"),d=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 b=Po(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),w=x.fill;if(s instanceof Pe){var T=s.style;s.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(H({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Ne(s,d,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return M?e.getName(R):Ns(e,R)}this._sizeX=a[0]/2,this._sizeY=a[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),ce(this,h,v,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=_t(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ii(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ii(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return rl(e.getItemVisual(n,"symbolSize"))},t}(mt);function p6(r,t){this.parent.drift(r,t)}function Vd(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 Pw(r){return r!=null&&!gt(r)&&(r={isIgnore:r}),r||{}}function Rw(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 Sf=function(){function r(t){this.group=new mt,this._SymbolCtor=t||_f}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Pw(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Rw(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(Vd(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=i.getItemGraphicEl(h),p=f(c);if(!Vd(t,p,c,e)){n.remove(v);return}var d=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==d)n.remove(v),v=new o(t,c,l,u),v.setPosition(p);else{v.updateData(t,c,l,u);var y={x:p[0],y:p[1]};s?v.attr(y):Ht(v,y,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Rw(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Pw(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Vd(e,o,i,n)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){vi(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){e.remove(a)},n.hostModel)}):e.removeAll()},r}();function QP(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=d6(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=X(r.dimensions,function(p){return t.mapDimension(p)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return si(t,c[0])&&(h=!0,c[0]=v),si(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function d6(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:Gt(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function JP(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function g6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function y6(r,t,e,n,a,i,o,s){for(var l=g6(r,t),u=[],f=[],c=[],h=[],v=[],p=[],d=[],g=QP(a,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var T=y[x],C=y[x+1],A=m[w],M=m[w+1];(isNaN(T)||isNaN(C))&&(T=A,C=M),u.push(T,C),f.push(A,M),c.push(e[x],e[x+1]),h.push(n[w],n[w+1]),d.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=a.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 R=JP(g,a,t,I);c.push(R[0],R[1]),h.push(n[w],n[w+1]),d.push(t.getRawIndex(I));break;case"-":b=!1}b&&(v.push(S),p.push(p.length))}p.sort(function(Tt,xt){return d[Tt]-d[xt]});for(var O=u.length,B=Rn(O),N=Rn(O),F=Rn(O),U=Rn(O),Z=[],_=0;_<p.length;_++){var Q=p[_],ft=_*2,ht=Q*2;B[ft]=u[ht],B[ft+1]=u[ht+1],N[ft]=f[ht],N[ft+1]=f[ht+1],F[ft]=c[ht],F[ft+1]=c[ht+1],U[ft]=h[ht],U[ft+1]=h[ht+1],Z[_]=v[Q]}return{current:B,next:N,stackedOnCurrent:F,stackedOnNext:U,status:Z}}var La=Math.min,Pa=Math.max;function go(r,t){return isNaN(r)||isNaN(t)}function hm(r,t,e,n,a,i,o,s,l){for(var u,f,c,h,v,p,d=e,g=0;g<n;g++){var y=t[d*2],m=t[d*2+1];if(d>=a||d<0)break;if(go(y,m)){if(l){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](y,m),c=y,h=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=t[b*2],w=t[b*2+1];x===y&&w===m&&g<n;)g++,b+=i,d+=i,x=t[b*2],w=t[b*2+1],y=t[d*2],m=t[d*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;go(x,w)&&T<n;)T++,b+=i,x=t[b*2],w=t[b*2+1];var C=.5,A=0,M=0,I=void 0,L=void 0;if(T>=n||go(x,w))v=y,p=m;else{A=x-u,M=w-f;var P=y-u,R=x-y,O=m-f,B=w-m,N=void 0,F=void 0;if(s==="x"){N=Math.abs(P),F=Math.abs(R);var U=A>0?1:-1;v=y-U*N*o,p=m,I=y+U*F*o,L=m}else if(s==="y"){N=Math.abs(O),F=Math.abs(B);var Z=M>0?1:-1;v=y,p=m-Z*N*o,I=y,L=m+Z*F*o}else N=Math.sqrt(P*P+O*O),F=Math.sqrt(R*R+B*B),C=F/(F+N),v=y-A*o*(1-C),p=m-M*o*(1-C),I=y+A*o*C,L=m+M*o*C,I=La(I,Pa(x,y)),L=La(L,Pa(w,m)),I=Pa(I,La(x,y)),L=Pa(L,La(w,m)),A=I-y,M=L-m,v=y-A*N/F,p=m-M*N/F,v=La(v,Pa(u,y)),p=La(p,Pa(f,m)),v=Pa(v,La(u,y)),p=Pa(p,La(f,m)),A=y-v,M=m-p,I=y+A*F/N,L=m+M*F/N}r.bezierCurveTo(c,h,v,p,y,m),c=I,h=L}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var tR=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),m6=function(r){V(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 tR},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&go(a[o*2-2],a[o*2-1]);o--);for(;i<o&&go(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=hm(e,a,i,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 a=this.path,i=a.data,o=Wn.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],p=i[c++],_=u?(e-s)/(v-s):(e-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=p;break;case o.C:v=i[c++],p=i[c++],d=i[c++],g=i[c++],y=i[c++],m=i[c++];var b=u?yh(s,v,d,y,e,f):yh(l,p,g,m,e,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?be(l,p,g,m,w):be(s,v,d,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Pt),_6=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(tR),eR=function(r){V(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 _6},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&go(a[s*2-2],a[s*2-1]);s--);for(;o<s&&go(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=hm(e,a,o,s,s,1,n.smooth,l,n.connectNulls);hm(e,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(Pt);function rR(r,t,e,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||2;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(),p=h.inverse;v?(p&&(c.shape.x+=l),c.shape.width=0):(p||(c.shape.y+=u),c.shape.height=0);var d=vt(a)?function(g){a(g,c)}:null;ie(c,{shape:{width:l,height:u,x:o,y:s}},e,null,n,d)}return c}function nR(r,t,e){var n=r.getArea(),a=he(n.r0,1),i=he(n.r,1),o=new ir({shape:{cx:he(r.cx,1),cy:he(r.cy,1),r0:a,r:i,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=a,ie(o,{shape:{endAngle:n.endAngle,r:i}},e)}return o}function xf(r,t,e,n,a){if(r){if(r.type==="polar")return nR(r,t,e);if(r.type==="cartesian2d")return rR(r,t,e,n,a)}else return null;return null}function Eo(r,t){return r.type===t}function Ew(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function kw(r){for(var t=1/0,e=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),a=Math.max(s,a))}return[[t,e],[n,a]]}function Ow(r,t){var e=kw(r),n=e[0],a=e[1],i=kw(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function Nw(r){return Gt(r)?r:r?.5:0}function S6(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),a=Rn(n*2),i=0;i<n;i++){var o=JP(e,r,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Ra(r,t,e,n){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],c=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&c.push(r[s],r[s+1]);r=c}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[i]=f[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var h=(u[i]+f[i])/2,v=[];l[i]=v[i]=h,l[1-i]=u[1-i],v[1-i]=f[1-i],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[i]=u[i],l[1-i]=f[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function x6(r,t){var e=[],n=r.length,a,i;function o(f,c,h){var v=f.coord,p=(h-v)/(c.coord-v),d=cz(p,[f.color,c.color]);return{coord:h,color:d}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>t){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function b6(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=X(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=x6(u,a==="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 p=10,d=h[0].coord-p,g=h[v-1].coord+p,y=g-d;if(y<.001)return"transparent";D(h,function(_){_.offset=(_.coord-d)/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 hf(0,0,0,0,h,!0);return m[a]=d,m[a+"2"]=g,m}}}function w6(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&T6(i,t))){var o=t.mapDimension(i.dim),s={};return D(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function T6(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(_f.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function C6(r,t){return isNaN(r)||isNaN(t)}function A6(r){for(var t=r.length/2;t>0&&C6(r[t*2-2],r[t*2-1]);t--);return t-1}function Bw(r,t){return[r[t*2],r[t*2+1]]}function D6(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function aR(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<ar.length;t++)if(r.get([ar[t],"endLabel","show"]))return!0;return!1}function zd(r,t,e,n){if(Eo(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=aR(n)?function(v,p){r._endLabelOnDuring(v,p,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=rR(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 nR(t,e,n)}function M6(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var I6=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new mt,n=new Sf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,a){var i=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),c=l.getLayout("points")||[],h=o.type==="polar",v=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,m=!n.ssr&&e.get("animation"),_=!f.isEmpty(),S=f.get("origin"),b=QP(o,l,S),x=_&&S6(o,l,b),w=e.get("showSymbol"),T=e.get("connectNulls"),C=w&&!h&&w6(e,l,o),A=this._data;A&&A.eachItemGraphicEl(function(xt,G){xt.__temp&&(s.remove(xt),A.setItemGraphicEl(G,null))}),w||p.remove(),s.add(y);var M=h?!1:e.get("step"),I;o&&o.getArea&&e.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=b6(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(d&&v.type===o.type&&M===this._step))w&&p.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(xt){return[c[xt*2],c[xt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),M&&(c=Ra(c,o,M,T),x&&(x=Ra(x,o,M,T))),d=this._newPolyline(c),_?g=this._newPolygon(c,x):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,To(L)),y.setClipPath(zd(this,o,!0,e));else{_&&!g?g=this._newPolygon(c,x):g&&!_&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,To(L));var P=y.getClipPath();if(P){var R=zd(this,o,!1,e);ie(P,{shape:R.shape},e)}else y.setClipPath(zd(this,o,!0,e));w&&p.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(xt){return[c[xt*2],c[xt*2+1]]}}),(!Ew(this._stackedOnPoints,x)||!Ew(this._points,c))&&(m?this._doUpdateAnimation(l,x,o,a,M,S,T):(M&&(c=Ra(c,o,M,T),x&&(x=Ra(x,o,M,T))),d.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:x})))}var O=e.getModel("emphasis"),B=O.get("focus"),N=O.get("blurScope"),F=O.get("disabled");if(d.useStyle(dt(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Oe(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var U=d.getState("emphasis").style;U.lineWidth=+d.style.lineWidth+1}_t(d).seriesIndex=e.seriesIndex,ce(d,B,N,F);var Z=Nw(e.get("smooth")),Q=e.get("smoothMonotone");if(d.setShape({smooth:Z,smoothMonotone:Q,connectNulls:T}),g){var ft=l.getCalculationInfo("stackedOnSeries"),ht=0;g.useStyle(dt(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ft&&(ht=Nw(ft.get("smooth"))),g.setShape({smooth:Z,stackedOnSmooth:ht,smoothMonotone:Q,connectNulls:T}),Oe(g,e,"areaStyle"),_t(g).seriesIndex=e.seriesIndex,ce(g,B,N,F)}var Tt=function(xt){i._changePolyState(xt)};l.eachItemGraphicEl(function(xt){xt&&(xt.onHoverStateChange=Tt)}),this._polyline.onHoverStateChange=Tt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=M,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,d),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){_t(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=xo(o,i);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 _f(o,s),u.x=f,u.y=c,u.setZ(h,v);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=v,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Kt.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=xo(o,i);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 Kt.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Th(this._polyline,e),n&&Th(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new m6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new eR({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=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,p){var d=v;if(d){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=a;i?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=vt(c)?c(p):f*w+h,C=d.getSymbolPath(),A=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(aR(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 Ft({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=A6(l);f>=0&&(Ne(s,De(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?jP(o,v):Ns(o,c)},enableTextSetter:!0},M6(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),p=s.get("precision"),d=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,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=D6(c,S,w),C=T.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!v){var I=Bw(c,C[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(M=h.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(C[0]),P=h.getRawValue(C[1]);o&&(M=WI(a,p,L,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=Bw(c,R);o&&(M=h.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var O=qs(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=y6(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,p=h.stackedOnCurrent,d=h.next,g=h.stackedOnNext;if(o&&(v=Ra(h.current,a,o,l),p=Ra(h.stackedOnCurrent,a,o,l),d=Ra(h.next,a,o,l),g=Ra(h.stackedOnNext,a,o,l)),Ow(v,d)>3e3||f&&Ow(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:d}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),Ht(u,y,c),f&&(f.setShape({points:v,stackedOnPoints:p}),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 b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,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 C=m[T].el,A=m[T].ptIdx*2;C.x=w[A],C.y=w[A+1],C.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Kt);function bf(r,t){return{seriesType:r,plan:tl(),reset:function(e){var n=e.getData(),a=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(a){var s=X(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");si(n,s[0])&&(s[0]=u),si(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,p){for(var d=v.end-v.start,g=o&&Rn(d*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var b=void 0;if(l===1){var x=f.get(c,_);b=a.dataToPoint(x,null,m)}else y[0]=f.get(c,_),y[1]=f.get(h,_),b=a.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):p.setItemLayout(_,b.slice())}o&&p.setLayout("points",g)}}}}}}var L6={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},minmax:function(r){for(var t=-1/0,e=-1/0,n=0;n<r.length;n++){var a=r[n],i=Math.abs(a);i>t&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},P6=function(r){return Math.round(r.length/2)};function iR(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){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){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var p=void 0;nt(i)?p=L6[i]:vt(i)&&(p=i),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,p,P6))}}}}}function R6(r){r.registerChartView(I6),r.registerSeriesModel(v6),r.registerLayout(bf("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,iR("line"))}var Yu=function(r){V(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 xa(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)D(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var p=h.getTicksCoords(),d=h.getTickModel().get("alignWithLabel"),g=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<p.length;b++){var x=p[b].coord,w=b===p.length-1?p[b-1].tickValue+S:p[b].tickValue;if(w===g){_=x;break}else if(w<g)m=x;else if(m!=null&&w>g){_=(x+m)/2;break}b===1&&(S=w-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.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}(ae);ae.registerClass(Yu);var E6=function(r){V(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 xa(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,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=pi(Yu.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}(Yu),k6=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}(),Wh=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new k6},t.prototype.buildPath=function(e,n){var a=n.cx,i=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,p=h?c-f<v:f-c<v;p||(f=c-(h?v:-v));var d=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);p?(e.moveTo(d*o+a,g*o+i),e.arc(d*u+a,g*u+i,l,-Math.PI+f,f,!h)):e.moveTo(d*s+a,g*s+i),e.arc(a,i,s,f,c,!h),e.arc(y*u+a,m*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&e.arc(a,i,o,c,f,h)},t}(Pt);function O6(r,t){t=t||{};var e=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return bh(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,p=(h+v)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=e?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(d),x=c+h*S(d),w="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(y),x=c+(v-l)*S(y),w="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(y),x=c+(v+l)*S(y),w="center",T="bottom";break;case"startAngle":b=f+p*_(d)+yc(d,l+m,!1),x=c+p*S(d)+mc(d,l+m,!1),w="right",T="middle";break;case"insideStartAngle":b=f+p*_(d)+yc(d,-l+m,!1),x=c+p*S(d)+mc(d,-l+m,!1),w="left",T="middle";break;case"middle":b=f+p*_(y),x=c+p*S(y),w="center",T="middle";break;case"endArc":b=f+(h+l)*_(y),x=c+(h+l)*S(y),w="center",T="bottom";break;case"insideEndArc":b=f+(h-l)*_(y),x=c+(h-l)*S(y),w="center",T="top";break;case"endAngle":b=f+p*_(g)+yc(g,l+m,!0),x=c+p*S(g)+mc(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":b=f+p*_(g)+yc(g,-l+m,!0),x=c+p*S(g)+mc(g,-l+m,!0),w="right",T="middle";break;default:return bh(n,a,i)}return n=n||{},n.x=b,n.y=x,n.align=w,n.verticalAlign=T,n}}function N6(r,t,e,n){if(Gt(n)){r.setTextConfig({rotation:n});return}else if(W(t)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+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=i;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 yc(r,t,e){return t*Math.sin(r)*(e?-1:1)}function mc(r,t,e){return t*Math.cos(r)*(e?1:-1)}function io(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;W(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:X(n,function(i){return cn(i,a)})}}var Fd=Math.max,Gd=Math.min;function B6(r,t){var e=r.getArea&&r.getArea();if(Eo(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=a,e.width+=a*2):(e.y-=a,e.height+=a*2)}}return e}var V6=function(r){V(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,a,i){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,a):this._renderNormal(e,n,a,i))},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){vi(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,a,i){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=z6(e,u);v&&this._enableRealtimeSort(v,s,a);var p=e.get("clip",!0)||v,d=B6(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function T(M){var I=_c[u.type](s,M),L=Y6(u,c,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[M]=L,L}s.diff(l).add(function(M){var I=s.getItemModel(M),L=_c[u.type](s,M,I);if(y&&T(M),!(!s.hasValue(M)||!Hw[u.type](L))){var P=!1;p&&(P=Vw[u.type](d,L));var R=zw[u.type](e,s,M,L,c,h,f.model,!1,g);v&&(R.forceLabelAnimation=!0),Ww(R,s,M,I,L,e,c,u.type==="polar"),x?R.attr({shape:L}):v?Fw(v,h,R,L,M,c,!1,!1):ie(R,{shape:L},e,M),s.setItemGraphicEl(M,R),o.add(R),R.ignore=P}}).update(function(M,I){var L=s.getItemModel(M),P=_c[u.type](s,M,L);if(y){var R=void 0;b.length===0?R=T(I):(R=b[I],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[M]=R);var O=_c[u.type](s,M),B=sR(c,O,u);Ht(R,{shape:B},h,M)}var N=l.getItemGraphicEl(I);if(!s.hasValue(M)||!Hw[u.type](P)){o.remove(N);return}var F=!1;if(p&&(F=Vw[u.type](d,P),F&&o.remove(N)),N?hn(N):N=zw[u.type](e,s,M,P,c,h,f.model,!!N,g),v&&(N.forceLabelAnimation=!0),w){var U=N.getTextContent();if(U){var Z=qs(U);Z.prevValue!=null&&(Z.prevValue=Z.value)}}else Ww(N,s,M,L,P,e,c,u.type==="polar");x?N.attr({shape:P}):v?Fw(v,h,N,P,M,c,!0,w):Ht(N,{shape:P},e,M,null),s.setItemGraphicEl(M,N),N.ignore=F,o.add(N)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&Nu(I,e,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new mt);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,a){this._clear(),$w(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),$w(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&xf(e.coordinateSystem,!1,e),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,a){var i=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,a),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(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,a){var i=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,a){for(var i=a.scale,o=e.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.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 a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.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,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Nu(i,e,_t(i).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}(Kt),Vw={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 a=r.x+r.width,i=r.y+r.height,o=Fd(t.x,r.x),s=Gd(t.x+t.width,a),l=Fd(t.y,r.y),u=Gd(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>a?s:o,t.y=c&&l>i?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 a=Gd(t.r,r.r),i=Fd(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},zw={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new Vt({shape:H({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?Wh:ir,f=new u({shape:n,z2:1});f.name="item";var c=oR(a);if(f.calculateTextPosition=O6(c,{isRoundCap:u===Wh}),i){var h=f.shape,v=a?"r":"endAngle",p={};h[v]=a?n.r0:n.startAngle,p[v]=n[v],(s?Ht:ie)(f,{shape:p},i)}return f}};function z6(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 Fw(r,t,e,n,a,i,o,s){var l,u;i?(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:ie)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Ht:ie)(e,{shape:u},f,a)}function Gw(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var F6=["x","y","width","height"],G6=["cx","cy","r","startAngle","endAngle"],Hw={cartesian2d:function(r){return!Gw(r,F6)},polar:function(r){return!Gw(r,G6)}},_c={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),a=e?W6(e,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},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 H6(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function oR(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 Ww(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=io(n.getModel("itemStyle"),f,!0);H(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?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=De(n);Ne(r,p,{labelFetcher:i,labelDataIndex:e,defaultText:Ns(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var d=r.getTextContent();if(s&&d){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,N6(r,g==="outside"?v:g,oR(o),n.get(["label","rotate"]))}AL(d,p,i.getRawValue(e),function(m){return jP(t,m)});var y=n.getModel(["emphasis"]);ce(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Oe(r,n),H6(a)&&(r.style.fill="none",r.style.stroke="none",D(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function W6(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var U6=function(){function r(){}return r}(),Uw=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new U6},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(Pt);function $w(r,t,e,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new Uw({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var c=new Uw({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(a.getVisual("style")),_t(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",Yw),c.on("mousemove",Yw)),e&&e.push(c)}var Yw=h_(function(r){var t=this,e=$6(t,r.offsetX,r.offsetY);_t(t).dataIndex=e>=0?e:null},30,!1);function $6(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function sR(r,t,e){if(Eo(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Y6(r,t,e){var n=r.type==="polar"?ir:Vt;return new n({shape:sR(t,e,r),silent:!0,z2:0})}function X6(r){r.registerChartView(V6),r.registerSeriesModel(E6),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(hP,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vP("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,iR("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Xw=Math.PI*2,Sc=Math.PI/180;function lR(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function uR(r,t){var e=lR(r,t),n=r.get("center"),a=r.get("radius");W(a)||(a=[0,a]);var i=et(e.width,t.getWidth()),o=et(e.height,t.getHeight()),s=Math.min(i,o),l=et(a[0],s/2),u=et(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else W(n)||(n=[n,n]),f=et(n[0],i)+e.x,c=et(n[1],o)+e.y;return{cx:f,cy:c,r0:l,r:u}}function Z6(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=lR(n,e),s=uR(n,e),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*Sc,v=n.get("endAngle"),p=n.get("padAngle")*Sc;v=v==="auto"?h-Xw:-v*Sc;var d=n.get("minAngle")*Sc,g=d+p,y=0;a.each(i,function(B){!isNaN(B)&&y++});var m=a.getSum(i),_=Math.PI/(m||y)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[h,v],A=T*p/2;G0(C,!S),h=C[0],v=C[1];var M=fR(n);M.startAngle=h,M.endAngle=v,M.clockwise=S;var I=Math.abs(v-h),L=I,P=0,R=h;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(B,N){var F;if(isNaN(B)){a.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:c,r:b?NaN:f});return}b!=="area"?F=m===0&&x?_:B*_:F=I/y,F<g?(F=g,L-=g):P+=B;var U=R+T*F,Z=0,Q=0;p>F?(Z=R+T*F/2,Q=Z):(Z=R+A,Q=U-A),a.setItemLayout(N,{angle:F,startAngle:Z,endAngle:Q,clockwise:S,cx:l,cy:u,r0:c,r:b?Xt(B,w,[c,f]):f}),R=U}),L<Xw&&y)if(L<=.001){var O=I/y;a.each(i,function(B,N){if(!isNaN(B)){var F=a.getItemLayout(N);F.angle=O;var U=0,Z=0;O<p?(U=h+T*(N+1/2)*O,Z=U):(U=h+T*N*O+A,Z=h+T*(N+1)*O-A),F.startAngle=U,F.endAngle=Z}})}else _=L/P,R=h,a.each(i,function(B,N){if(!isNaN(B)){var F=a.getItemLayout(N),U=F.angle===g?g:B*_,Z=0,Q=0;U<p?(Z=R+T*U/2,Q=Z):(Z=R+A,Q=R+T*U-A),F.startAngle=Z,F.endAngle=Q,R+=T*U}})})}var fR=zt();function wf(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var q6=Math.PI/180;function Zw(r,t,e,n,a,i,o,s,l,u){if(r.length<2)return;function f(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var _=d.list[m],S=Math.abs(_.label.y-e),b=n+_.len,x=b*b,w=Math.sqrt((1-Math.abs(S*S/y))*x),T=t+(w+_.len2)*a,C=T-_.label.x,A=_.targetTextWidth-C*a;cR(_,A,!0),_.label.x=T}}function c(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if(d[m].labelAlignTo==="none"){var _=d[m],S=_.label.y>e?y:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,w=n+_.len,T=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=T,S.maxY=b}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 p=r[v].label.x-u;r[v].linePoints[1][0]+=p,r[v].label.x=u}kP(r,l,l+o)&&c(r)}function K6(r,t,e,n,a,i,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;Hd(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 p=r[h];if(!Hd(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var v=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?v.x<t?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+a-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?v.x<t?g=f-o-p.bleedMargin:g=o+a-c-p.bleedMargin:v.x<t?g=v.x-o-p.bleedMargin:g=o+a-v.x-p.bleedMargin,p.targetTextWidth=g,cR(p,g)}}Zw(u,t,e,n,1,a,i,o,s,c),Zw(l,t,e,n,-1,a,i,o,s,f);for(var h=0;h<r.length;h++){var p=r[h];if(!Hd(p)&&p.linePoints){var v=p.label,d=p.linePoints,y=p.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=p.rect.width+S,x=d[1][0]-d[2][0];y?v.x<t?d[2][0]=o+p.edgeDistance+b+p.labelDistance:d[2][0]=o+a-p.edgeDistance-b-p.labelDistance:(v.x<t?d[2][0]=v.x+p.labelDistance:d[2][0]=v.x-p.labelDistance,d[1][0]=d[2][0]+x),d[1][1]=d[2][1]=v.y}}}function cR(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(t<f||e){var c=i.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,p=t<f?v:e?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",p)}var d=n.getBoundingRect();i.width=d.width;var g=(n.style.margin||0)+2.1;i.height=d.height+g,i.y-=(i.height-c)/2}}}function Hd(r){return r.position==="center"}function j6(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*q6,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),A=w.getTextGuideLine(),M=t.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),O=et(I.get("edgeDistance"),u),B=I.get("bleedMargin"),N=M.getModel("labelLine"),F=N.get("length");F=et(F,u);var U=N.get("length2");if(U=et(U,u),Math.abs(T.endAngle-T.startAngle)<o){D(C.states,v),C.ignore=!0,A&&(D(A.states,v),A.ignore=!0);return}if(p(C)){var Z=(T.startAngle+T.endAngle)/2,Q=Math.cos(Z),ft=Math.sin(Z),ht,Tt,xt,G;n=T.cx,a=T.cy;var $=L==="inside"||L==="inner";if(L==="center")ht=T.cx,Tt=T.cy,G="center";else{var K=($?(T.r+T.r0)/2*Q:T.r*Q)+n,j=($?(T.r+T.r0)/2*ft:T.r*ft)+a;if(ht=K+Q*3,Tt=j+ft*3,!$){var J=K+Q*(F+l-T.r),ct=j+ft*(F+l-T.r),E=J+(Q<0?-1:1)*U,k=ct;R==="edge"?ht=Q<0?f+O:f+u-O:ht=E+(Q<0?-P:P),Tt=k,xt=[[K,j],[J,ct],[E,k]]}G=$?"center":R==="edge"?Q>0?"right":"left":Q>0?"left":"right"}var z=Math.PI,q=0,Y=I.get("rotate");if(Gt(Y))q=Y*(z/180);else if(L==="center")q=0;else if(Y==="radial"||Y===!0){var tt=Q<0?-Z+z:-Z;q=tt}else if(Y==="tangential"&&L!=="outside"&&L!=="outer"){var ot=Math.atan2(Q,ft);ot<0&&(ot=z*2+ot);var lt=ft>0;lt&&(ot=z+ot),q=ot-z}if(i=!!q,C.x=ht,C.y=Tt,C.rotation=q,C.setStyle({verticalAlign:"middle"}),$){C.setStyle({align:G});var At=C.states.select;At&&(At.x+=C.x,At.y+=C.y)}else{var at=C.getBoundingRect().clone();at.applyTransform(C.getComputedTransform());var rt=(C.style.margin||0)+2.1;at.y-=rt/2,at.height+=rt,e.push({label:C,labelLine:A,position:L,len:F,len2:U,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Ct(Q,ft),linePoints:xt,textAlign:G,labelDistance:P,labelAlignTo:R,edgeDistance:O,bleedMargin:B,rect:at,unconstrainedWidth:at.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:$})}}),!i&&r.get("avoidLabelOverlap")&&K6(e,n,a,l,u,h,f,c);for(var d=0;d<e.length;d++){var g=e[d],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(D(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(D(m.states,v),m.ignore=!0):(PP(b,g.minTurnAngle),SW(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new Ct(b[0][0],b[0][1])})}}}var Q6=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;i.z2=2;var o=new Ft;return i.setTextContent(o),i.updateData(e,n,a,!0),i}return t.prototype.updateData=function(e,n,a,i){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),c=H(io(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(ie(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,ie(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),ie(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ht(o,{shape:{endAngle:f.endAngle}},s,n))}else hn(o),Ht(o,{shape:c},s,n);o.useStyle(e.getItemVisual(n,"style")),Oe(o,l);var v=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(v)*p,g=Math.sin(v)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=H({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},io(u.getModel("itemStyle"),f)),H(o.ensureState("select"),{x:d,y:g,shape:io(l.getModel(["select","itemStyle"]),f)}),H(o.ensureState("blur"),{shape:io(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&H(m.ensureState("select"),{x:d,y:g}),H(_.ensureState("select"),{x:d,y:g}),ce(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;Ne(i,De(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=e.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new sr,this.setTextGuideLine(v)),A_(this,D_(o),{stroke:u,opacity:Nn(s.get(["lineStyle","opacity"]),f,1)})}},t}(ir),J6=function(r){V(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,a,i){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=fR(e),v=new ir({shape:H(uR(e,a),h)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(p){var d=new Q6(o,p,u);o.setItemGraphicEl(p,d),l.add(d)}).update(function(p,d){var g=s.getItemGraphicEl(d);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var d=s.getItemGraphicEl(p);Nu(d,e,p)}).execute(),j6(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(Kt);function al(r,t,e){t=W(t)&&{coordDimensions:t}||H({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=yf(n,t).dimensions,i=new er(a,r);return i.initData(n,e),i}var Tf=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}(),tU=zt(),eU=function(r){V(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 Tf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return al(this,{coordDimensions:["value"],encodeDefaulter:bt(a_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=tU(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Xz(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){So(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.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}(ae);function rU(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Gt(o)&&!isNaN(o)&&o<0)})}}}function nU(r){r.registerChartView(J6),r.registerSeriesModel(eU),R2("pie",r.registerAction),r.registerLayout(bt(Z6,"pie")),r.registerProcessor(wf("pie")),r.registerProcessor(rU("pie"))}var aU=function(r){V(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 xa(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.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}(ae),hR=4,iU=function(){function r(){}return r}(),oU=function(r){V(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 iU},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<hR,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var h=a[c++],v=a[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[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,a=e.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,c=i[f]-s/2,h=i[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 a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.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,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<a.length;){var v=a[h++],p=a[h++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(p,u),c=Math.max(p,c)}e=this._rect=new Mt(l-o/2,u-s/2,f-l+o,c-u+s)}return e},t}(Pt),sU=function(){function r(){this.group=new mt}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 a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;e=new Float32Array(e.buffer,i,a)}n.setShape("points",e),n.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var a=this._newAdded[0],i=e.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new oU({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=ye(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<hR;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=_t(t);u.seriesIndex=a.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}(),lU=function(r){V(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,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=bf("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},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 a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new sU:new Sf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Kt),uU=function(r){V(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}(kt),vm=function(r){V(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}(kt);me(vm,mf);var vR={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},fU=Dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vR),k_=Dt({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}}},vR),cU=Dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},k_),hU=dt({logBase:10},k_);const pR={category:fU,value:k_,time:cU,log:hU};var vU={value:1,category:1,time:1,log:1};function Bs(r,t,e,n){D(vU,function(a,i){var o=Dt(Dt({},pR[i],!0),n,!0),s=function(l){V(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=Vu(this),v=h?Qs(f):{},p=c.getTheme();Dt(f,p.get(i+"Axis")),Dt(f,this.getDefaultOption()),f.type=qw(f),h&&oi(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=om.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."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",qw)}function qw(r){return r.type||(r.data?"category":"value")}var pU=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 X(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Zt(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}(),pm=["x","y"];function Kw(r){return r.type==="interval"||r.type==="time"}var dU=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=pm,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Kw(e)||!Kw(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,p=this._transform=[f,0,0,c,h,v];this._invTransform=Us([],p)}}},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"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.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 a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Mt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ee(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.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 a=[];if(this._invTransform)return Ee(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},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(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new Mt(i,o,s,l)},t}(pU),gU=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"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}(pn);function dm(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.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,p=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[u==="y"?p[h[l]]:c[0],u==="x"?p[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[h[s]]-p[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Le(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function jw(r){return r.get("coordinateSystem")==="cartesian2d"}function Qw(r){var t={xAxisModel:null,yAxisModel:null};return D(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,ge).models[0];t[n]=i}),t}var Wd=Math.log;function dR(r,t,e){var n=da.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=mP(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Wd(r.base);u=[Wd(u[0])/h,Wd(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 p=n.getInterval.call(r),d=u[0],g=u[1];if(f&&c)p=(g-d)/o;else if(f)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Md(p),g=u[0]+p*o;else if(c)for(d=u[1]-p*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=Md(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Md(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=he(g-m),d<0&&u[0]>=0?(d=0,g=he(m)):g>0&&u[1]<=0&&(g=0,d=-he(m))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,d+p*_,g+p*S),n.setInterval.call(r,p),(_||S)&&n.setNiceExtent.call(r,d+p,g-p)}var yU=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pm,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 a(o){var s,l=Ot(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],p=v.model,d=v.scale;sm(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(Os(d,p),sm(d)&&(s=v))}f.length&&(s||(s=f.pop(),Os(s.scale,s.model)),D(f,function(g){dR(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};D(n.x,function(o){Jw(n,"y",o,i)}),D(n.y,function(o){Jw(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=xe(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=j4(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()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(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]),mU(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]}gt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===e)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",ge).models[0],a=t.yAxisModel||e&&e.getReferringComponents("yAxis",ge).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,It(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.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 a=this,i=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,D(s.x,function(f,c){D(s.y,function(h,v){var p="x"+c+"y"+v,d=new dU(p);d.master=a,d.model=t,a._coordsMap[p]=d,a._coordsList.push(d),d.addAxis(f),d.addAxis(h)})});function u(f){return function(c,h){if(Ud(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 p=new gU(f,Jv(c),[0,0],c.get("type"),v),d=p.type==="category";p.onBand=d&&c.get("boundaryGap"),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=i,p.index=h,i._axesList.push(p),s[f][h]=p,l[f]++}}}},r.prototype._updateScale=function(t,e){D(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(jw(a)){var i=Qw(a),o=i.xAxisModel,s=i.yAxisModel;if(!Ud(o,e)||!Ud(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(a,i){D(zh(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return D(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);It(e,i)<0&&e.push(i),It(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(a,i){var o=new r(a,t,e);o.name="grid_"+i,o.resize(a,e,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(jw(a)){var i=Qw(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=pm,r}();function Ud(r,t){return r.getCoordSysModel()===t}function Jw(r,t,e,n){e.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)tT(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&tT(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function tT(r){return r&&r.type!=="category"&&r.type!=="time"&&K4(r)}function mU(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+t}:function(a){return n-a+t},r.toLocalCoord=r.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}var Xa=Math.PI,rr=function(){function r(t,e){this.group=new mt,this.opt=e,this.axisModel=t,dt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new mt({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!eT[t]},r.prototype.add=function(t){eT[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var a=EI(e-t),i,o;return Ru(a)?(o=n>0?"top":"bottom",i="center"):Ru(a-Xa)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Xa?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,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}(),eT={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Ee(s,s,o),Ee(l,l,o));var f=H({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Te({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Rs(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)||Gt(v))&&(v=[v,v]);var p=Po(t.get(["axisLine","symbolOffset"])||0,v),d=v[0],g=v[1];D([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[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 _=ye(h[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=xU(e,n,t,r),i=wU(e,n,t,r);if(SU(t,i,a),bU(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=RP(X(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));OP(o)}},axisName:function(r,t,e,n){var a=Le(r.axisName,t.get("name"));if(a){var i=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=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,nT(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Xa/180);var p;nT(i)?h=rr.innerTextLayout(r.rotation,v??r.rotation,o):(h=_U(r.rotation,i,v||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Le(r.nameTruncateMaxWidth,g.maxWidth,p),_=new Ft({x:c[0],y:c[1],rotation:h.rotation,silent:rr.isLabelSilent(t),style:ne(s,{text:a,font:d,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(Zs({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=rr.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,_t(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function _U(r,t,e,n){var a=EI(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ru(a-Xa/2)?(o=l?"bottom":"top",i="center"):Ru(a-Xa*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Xa*1.5&&a>Xa/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function SU(r,t,e){if(!_P(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=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?(Lr(i),Lr(u)):rT(i,o)&&(n?(Lr(o),Lr(f)):(Lr(i),Lr(u))),a===!1?(Lr(s),Lr(c)):rT(l,s)&&(a?(Lr(l),Lr(h)):(Lr(s),Lr(c)))}}function Lr(r){r&&(r.ignore=!0)}function rT(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Tv([]);return Io(a,a,-r.rotation),e.applyTransform(oa([],a,r.getLocalTransform())),n.applyTransform(oa([],a,t.getLocalTransform())),e.intersect(n)}}function nT(r){return r==="middle"||r==="center"}function gR(r,t,e,n,a){for(var i=[],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&&(Ee(o,o,t),Ee(s,s,t));var f=new Te({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Rs(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f)}return i}function xU(r,t,e,n){var a=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),f=gR(u,t.transform,l,dt(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)r.add(f[c]);return f}}function bU(r,t,e,n){var a=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=dt(s.getLineStyle(),dt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=gR(o[f],t.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)r.add(c[h])}}function wU(r,t,e,n){var a=e.axis,i=Le(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Le(n.labelRotate,o.get("rotate"))||0)*Xa/180,f=rr.innerTextLayout(n.rotation,u,n.labelDirection),c=e.getCategories&&e.getCategories(!0),h=[],v=rr.isLabelSilent(e),p=e.get("triggerEvent");return D(l,function(d,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,m=d.formattedLabel,_=d.rawLabel,S=o;if(c&&c[y]){var b=c[y];gt(b)&&b.textStyle&&(S=new Ut(b.textStyle,o,e.ecModel))}var x=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),w=a.dataToCoord(y),T=S.getShallow("align",!0)||f.textAlign,C=St(S.getShallow("alignMinLabel",!0),T),A=St(S.getShallow("alignMaxLabel",!0),T),M=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,I=St(S.getShallow("verticalAlignMinLabel",!0),M),L=St(S.getShallow("verticalAlignMaxLabel",!0),M),P=new Ft({x:w,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(d.level||0),style:ne(S,{text:m,align:g===0?C:g===l.length-1?A:T,verticalAlign:g===0?I:g===l.length-1?L:M,fill:vt(x)?x(a.type==="category"?_:a.type==="value"?y+"":y,g):x})});if(P.anid="label_"+y,p){var R=rr.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=g,a.type==="category"&&(R.dataIndex=y),_t(P).eventData=R}t.add(P),P.updateTransform(),h.push(P),r.add(P),P.decomposeTransform()}),h}}function TU(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return CU(e,r,t),e.seriesInvolved&&DU(e,r),e}function CU(r,t,e){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];D(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Xu(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(D(s.getAxes(),bt(d,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&D(p.baseAxes,bt(d,v?"cross":!0,h)),v&&D(p.otherAxes,bt(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!gm(_))){y==null&&(y=_.get("triggerTooltip")),_=g?AU(m,c,a,t,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=Xu(m.model),T=y||b||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:gm(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var A=MU(i,m);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[w]=C,M.mapper=i[A].mapper,C.linkGroup=M}}}})}function AU(r,t,e,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(h){l[h]=yt(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&dt(u,c.textStyle)}}return r.model.getModel("axisPointer",new Ut(l,e,n))}function DU(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||D(r.coordSysAxesInfo[Xu(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 MU(r,t){for(var e=t.model,n=t.dim,a=0;a<r.length;a++){var i=r[a]||{};if($d(i[n+"AxisId"],e.id)||$d(i[n+"AxisIndex"],e.componentIndex)||$d(i[n+"AxisName"],e.name))return a}}function $d(r,t){return r==="all"||W(r)&&It(r,t)>=0||r===t}function IU(r){var t=O_(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=gm(e);i==null&&(a.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]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function O_(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Xu(r)]}function LU(r){var t=O_(r);return t&&t.axisPointerModel}function gm(r){return!!r.get(["handle","show"])}function Xu(r){return r.type+"||"+r.id}var aT={},ko=function(r){V(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,a,i){this.axisPointerClass&&IU(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,a,!0)},t.prototype.updateAxisPointer=function(e,n,a,i){this._doUpdateAxisPointerClass(e,a,!1)},t.prototype.remove=function(e,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=LU(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){aT[e]=n},t.getAxisPointerClass=function(e){return e&&aT[e]},t.type="axis",t}(ue),ym=zt();function yR(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var f=s.length,c=ym(r).splitAreaColors,h=ut(),v=0;if(c)for(var p=0;p<u.length;p++){var d=c.get(u[p].tickValue);if(d!=null){v=(d+(f-1)*p)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=W(s)?s:[s];for(var p=1;p<u.length;p++){var m=a.toGlobalCoord(u[p].coord),_=void 0,S=void 0,b=void 0,x=void 0;a.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var w=u[p-1].tickValue;w!=null&&h.set(w,v),t.add(new Vt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:dt({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}ym(r).splitAreaColors=h}}}function mR(r){ym(r).splitAreaColors=null}var PU=["axisLine","axisTickLabel","axisName"],RU=["splitArea","splitLine","minorSplitLine"],_R=function(r){V(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,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new mt,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=dm(s,e),u=new rr(e,H({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(sm(h[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));D(PU,u.add,u),this._axisGroup.add(u.getGroup()),D(RU,function(c){e.get([c,"show"])&&EU[c](this,this._axisGroup,e,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||vf(o,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)}},t.prototype.remove=function(){mR(this)},t.type="cartesianAxis",t}(ko),EU={splitLine:function(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=W(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=0,c=a.getTicksCoords({tickModel:i}),h=[],v=[],p=o.getLineStyle(),d=0;d<c.length;d++){var g=a.toGlobalCoord(c[d].coord);u?(h[0]=g,h[1]=l.y,v[0]=g,v[1]=l.y+l.height):(h[0]=l.x,h[1]=g,v[0]=l.x+l.width,v[1]=g);var y=f++%s.length,m=c[d].tickValue,_=new Te({anid:m!=null?"line_"+c[d].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:dt({stroke:s[y]},p),silent:!0});Rs(_.shape,p.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,n){var a=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var f=[],c=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var p=0;p<u[v].length;p++){var d=a.toGlobalCoord(u[v][p].coord);l?(f[0]=d,f[1]=s.y,c[0]=d,c[1]=s.y+s.height):(f[0]=s.x,f[1]=d,c[0]=s.x+s.width,c[1]=d);var g=new Te({anid:"minor_line_"+u[v][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});Rs(g.shape,h.lineWidth),t.add(g)}},splitArea:function(r,t,e,n){yR(r,t,e,n)}},SR=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(_R),kU=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=SR.type,e}return t.type="yAxis",t}(_R),OU=function(r){V(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:dt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ue),iT={offset:0};function xR(r){r.registerComponentView(OU),r.registerComponentModel(uU),r.registerCoordinateSystem("cartesian2d",yU),Bs(r,"x",vm,iT),Bs(r,"y",vm,iT),r.registerComponentView(SR),r.registerComponentView(kU),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function NU(r){Lt(xR),r.registerSeriesModel(aU),r.registerChartView(lU),r.registerLayout(bf("scatter"))}function BU(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();D(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=oT(f)?f:sT(a)})}),e.each(function(o){var s=TV(n[o],function(l){return oT(l)})||sT(a);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function oT(r){return!isNaN(r[0])&&!isNaN(r[1])}function sT(r){return[r.cx,r.cy]}function VU(r){var t=r.polar;if(t){W(t)||(t=[t]);var e=[];D(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],W(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}D(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var zU=function(r){V(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,a){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,v){var p=h.getItemVisual(v,"symbol")||"circle";if(p!=="none"){var d=rl(h.getItemVisual(v,"symbolSize")),g=ye(p,-1,-1,2,2),y=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function f(h,v,p,d,g,y){p.removeAll();for(var m=0;m<v.length-1;m++){var _=u(d,g);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Lo[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,g)):_.setPosition(v[m]),p.add(_))}}function c(h){return X(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var p=new or,d=new sr,g={shape:{points:v}};p.shape.points=c(v),d.shape.points=c(v),ie(p,g,e,h),ie(d,g,e,h);var y=new mt,m=new mt;y.add(d),y.add(p),y.add(m),f(d.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,v){var p=l.getItemGraphicEl(v),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(d.shape.points,m.shape.points,y,s,h,!1),hn(g),hn(d),Ht(d,m,e),Ht(g,m,e),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var p=s.getItemModel(v),d=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),d.useStyle(dt(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Oe(d,p,"lineStyle"),Oe(g,p,"areaStyle");var S=p.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,D(["emphasis","select","blur"],function(T){var C=p.getModel([T,"areaStyle"]),A=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=A&&b}),g.useStyle(dt(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=p.getModel("emphasis"),w=x.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Pe){var C=T.style;T.useStyle(H({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=yt(w);var M=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(M==null||isNaN(M))&&(M=""),Ne(T,De(p),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),ce(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Kt),FU=function(r){V(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 Tf(it(this.getData,this),it(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return al(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=S2(this,e);return Me("section",{header:u,sortBlocks:!0,blocks:X(s,function(c){var h=i.get(i.mapDimension(c.dim),e);return Me("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(),a=this.coordinateSystem,i=n.getValues(X(a.dimensions,function(u){return n.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[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}(ae),Ml=pR.value;function xc(r,t){return dt({show:t},r)}var GU=function(r){V(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"),a=this.get("scale"),i=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=X(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=dt({color:p.color},l));var g=Dt(yt(p),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:h},!1);if(nt(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else vt(f)&&(g.name=f(g.name,g));var m=new Ut(g,null,this.ecModel);return me(m,mf.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:Dt({lineStyle:{color:"#bbb"}},Ml.axisLine),axisLabel:xc(Ml.axisLabel,!1),axisTick:xc(Ml.axisTick,!1),splitLine:xc(Ml.splitLine,!0),splitArea:xc(Ml.splitArea,!0),indicator:[]},t}(kt),HU=["axisLine","axisTickLabel","axisName"],WU=function(r){V(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,a){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=X(a,function(o){var s=o.model.get("showName")?o.name:"",l=new rr(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(i,function(o){D(HU,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=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"),p=W(h)?h:[h],d=W(v)?v:[v],g=[],y=[];function m(R,O,B){var N=B%O.length;return R[N]=R[N]||[],N}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,b=n.cy,x=0;x<_.length;x++){if(f){var w=m(g,p,x);g[w].push(new Sa({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,d,x);y[w].push(new ff({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=X(a,function(R,O){var B=R.getTicksCoords();return T=T==null?B.length-1:Math.min(B.length-1,T),X(B,function(N){return n.coordToPoint(N.coord,O)})}),A=[],x=0;x<=T;x++){for(var M=[],I=0;I<a.length;I++)M.push(C[I][x]);if(M[0]&&M.push(M[0].slice()),f){var w=m(g,p,x);g[w].push(new sr({shape:{points:M}}))}if(c&&A){var w=m(y,d,x-1);y[w].push(new or({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();D(y,function(R,O){this.group.add(Fr(R,{style:dt({stroke:"none",fill:d[O%d.length]},P),silent:!0}))},this),D(g,function(R,O){this.group.add(Fr(R,{style:dt({fill:"none",stroke:p[O%p.length]},L),silent:!0}))},this)},t.type="radar",t}(ue),UU=function(r){V(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(pn),$U=function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=X(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new UU(o,new da);return s.name=a.get("name"),s.model=a,a.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],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(e*e+n*n);e/=a,n/=a;for(var i=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(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight(),o=Math.min(a,i)/2;this.cx=et(n[0],a),this.cy=et(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(nt(s)||Gt(s))&&(s=[0,s]),this.r0=et(s[0],o),this.r=et(s[1],o),D(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,a=this._model;D(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"))!==a)){var u=s.getData();D(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=a.get("splitNumber"),o=new da;o.setExtent(0,i),o.setInterval(1),D(n,function(s,l){dR(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(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();function YU(r){r.registerCoordinateSystem("radar",$U),r.registerComponentModel(GU),r.registerComponentView(WU),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 XU(r){Lt(YU),r.registerChartView(zU),r.registerSeriesModel(FU),r.registerLayout(BU),r.registerProcessor(wf("radar")),r.registerPreprocessor(VU)}var lT="\0_ec_interaction_mutex";function ZU(r,t,e){var n=N_(r);n[t]=e}function qU(r,t,e){var n=N_(r),a=n[t];a===e&&(n[t]=null)}function uT(r,t){return!!N_(r)[t]}function N_(r){return r[lT]||(r[lT]={})}$n({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},pe);var Cf=function(r){V(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var a=it(n._mousedownHandler,n),i=it(n._mousemoveHandler,n),o=it(n._mouseupHandler,n),s=it(n._mousewheelHandler,n),l=it(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=dt(yt(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",a),e.on("mousemove",i),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},n.disable=function(){e.off("mousedown",a),e.off("mousemove",i),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(!kS(e)){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!rh("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||uT(this._zr,"globalPan"))){var n=e.offsetX,a=e.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&fa(e.event),bR(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){kS(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=rh("zoomOnMouseWheel",e,this._opt),a=rh("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;Yd(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);Yd(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!uT(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;Yd(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Xr);function Yd(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(fa(n.event),bR(r,t,e,n,a))}function bR(r,t,e,n,a){a.isAvailableBehavior=it(rh,null,e,n),r.trigger(t,a)}function rh(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}function B_(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function V_(r,t,e,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(e-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var KU={axisPointer:1,tooltip:1,brush:1};function ep(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!KU.hasOwnProperty(n.mainType)&&a&&a.model!==e}function wR(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 Xd,Uh={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"},fT=Ot(Uh),$h={"alignment-baseline":"textBaseline","stop-color":"stopColor"},cT=Ot($h),jU=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=wR(t);this._defsUsePending=[];var a=new mt;this._root=a;var i=[],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),mr(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;t8(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=rp(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=CR(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var v=a;a=new mt,a.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Vt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(t,e,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=Xd[s];if(f&&st(Xd,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 a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});e.add(l)}}var v=hT[s];if(v&&st(hT,s)){var p=v.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new Ps({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Pr(e,n),mr(t,n,this._defsUsePending,!1,!1),QU(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=function(){Xd={g:function(t,e){var n=new mt;return Pr(e,n),mr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Vt;return Pr(e,n),mr(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 Sa;return Pr(e,n),mr(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 Te;return Pr(e,n),mr(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 kv;return Pr(e,n),mr(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"),a;n&&(a=dT(n));var i=new or({shape:{points:a||[]},silent:!0});return Pr(e,i),mr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=dT(n));var i=new sr({shape:{points:a||[]},silent:!0});return Pr(e,i),mr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Pe;return Pr(e,n),mr(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",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new mt;return Pr(e,s),mr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new mt;return Pr(e,s),mr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",a=pL(n);return Pr(e,a),mr(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),hT={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),a=parseInt(r.getAttribute("y2")||"0",10),i=new hf(t,e,n,a);return vT(r,i),pT(r,i),i},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),a=new mL(t,e,n);return vT(r,a),pT(r,a),a}};function vT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function pT(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};TR(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}e=e.nextSibling}}function Pr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),dt(t.__inheritedStyle,r.__inheritedStyle))}function dT(r){for(var t=rp(r),e=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);e.push([a,i])}return e}function mr(r,t,e,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(n8(r,t),TR(r,o,s),n||a8(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=gT(i,"fill",o.fill,e)),o.stroke!=null&&(i.style.stroke=gT(i,"stroke",o.stroke,e)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=X(rp(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function QU(r,t){var e=t.__selfStyle;if(e){var n=e.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var JU=/^url\(\s*#(.*?)\)/;function gT(r,t,e,n){var a=e&&e.match(JU);if(a){var i=an(a[1]);n.push([r,t,i]);return}return e==="none"&&(e=null),e}function t8(r,t){for(var e=0;e<t.length;e++){var n=t[e];n[0].style[n[1]]=r[n[2]]}}var e8=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function rp(r){return r.match(e8)||[]}var r8=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Zd=Math.PI/180;function n8(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=[],a=null;e.replace(r8,function(c,h,v){return n.push(h,v),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=rp(o);switch(a=a||Ar(),s){case"translate":Fn(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":R0(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Io(a,a,-parseFloat(l[0])*Zd,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Zd);oa(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Zd);oa(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var yT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function TR(r,t,e){var n=r.getAttribute("style");if(n){yT.lastIndex=0;for(var a;(a=yT.exec(n))!=null;){var i=a[1],o=st(Uh,i)?Uh[i]:null;o&&(t[o]=a[2]);var s=st($h,i)?$h[i]:null;s&&(e[s]=a[2])}}}function a8(r,t,e){for(var n=0;n<fT.length;n++){var a=fT[n],i=r.getAttribute(a);i!=null&&(t[Uh[a]]=i)}for(var n=0;n<cT.length;n++){var a=cT[n],i=r.getAttribute(a);i!=null&&(e[$h[a]]=i)}}function CR(r,t){var e=t.width/r.width,n=t.height/r.height,a=Math.min(e,n);return{scale:a,x:-(r.x+r.width/2)*a+(t.x+t.width/2),y:-(r.y+r.height/2)*a+(t.y+t.height/2)}}function i8(r,t){var e=new jU;return e.parse(r,t)}var o8=ut(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),s8=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=ut(),this._freedGraphics=[],this._mapName=t,this._parsedXML=wR(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=u8(t.named),n=e.regions,a=e.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,n;try{e=t&&i8(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,nr(n!=null)}catch(g){throw new Error(`Invalid svg format
|
||
`+g.message)}var a=new mt;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=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(i!=null?(u=0,c=i):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 p=CR(s,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}a.setClipPath(new Vt({shape:l.plain()}));var d=[];return D(e.named,function(g){o8.get(g.svgNodeTagLower)!=null&&(d.push(g),l8(g.el))}),{root:a,boundingRect:l,named:d}},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 l8(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function u8(r){var t=[],e=ut();return D(r,function(n){if(n.namedFrom==null){var a=new nW(n.name,n.el);t.push(a),e.set(n.name,a)}}),{regions:t,regionsMap:e}}var mm=[126,25],mT="南海诸岛",Wi=[[[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 Fi=0;Fi<Wi.length;Fi++)for(var qo=0;qo<Wi[Fi].length;qo++)Wi[Fi][qo][0]/=10.5,Wi[Fi][qo][1]/=-10.5/.75,Wi[Fi][qo][0]+=mm[0],Wi[Fi][qo][1]+=mm[1];function f8(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===mT)return;t.push(new xP(mT,X(Wi,function(n){return{type:"polygon",exterior:n}}),mm))}}var c8={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function h8(r,t){if(r==="china"){var e=c8[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 v8=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function p8(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:v8[0]})}var d8="name",g8=function(){function r(t,e,n){this.type="geoJSON",this._parsedMap=ut(),this._mapName=t,this._specialAreas=n,this._geoJSON=m8(e)}return r.prototype.load=function(t,e){e=e||d8;var n=this._parsedMap.get(e);if(!n){var a=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:a,boundingRect:y8(a)})}var i=ut(),o=[];return D(n.regions,function(s){var l=s.name;t&&st(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Mt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,n=this._geoJSON,a;try{a=n?iW(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
|
||
`+i.message)}return f8(e,a),D(a,function(i){var o=i.name;h8(e,i),p8(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function y8(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 m8(r){return nt(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Il=ut();const ga={registerMap:function(r,t,e){if(t.svg){var n=new s8(r,t.svg);Il.set(r,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?e=t.specialAreas:a=t;var n=new g8(r,a,e);Il.set(r,n)}},getGeoResource:function(r){return Il.get(r)},getMapForUser:function(r){var t=Il.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var n=Il.get(r);if(n)return n.load(t,e)}};var z_=["rect","circle","line","ellipse","polygon","polyline","path"],_8=ut(z_),S8=ut(z_.concat(["g"])),x8=ut(z_.concat(["g"])),AR=zt();function bc(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function _T(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var DR=function(){function r(t){var e=new mt;this.uid=Ks("ec_map_draw"),this._controller=new Cf(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new mt),e.add(this._svgGroup=new mt)}return r.prototype.draw=function(t,e,n,a,i){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,p=!u.childAt(0)||i;p?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Ht(f,v,t);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:d,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,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ut(),n=ut(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(v,p){return p&&(v=p(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function c(v){for(var p=[],d=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],d);y&&p.push(y)}return p}function h(v){return{shape:{points:c(v)}}}a.removeAll(),D(t.geo.regions,function(v){var p=v.name,d=e.get(p),g=n.get(p)||{},y=g.dataIdx,m=g.regionModel;d||(d=e.set(p,new mt),a.add(d),y=s?s.indexOfName(p):null,m=t.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,n.set(p,{dataIdx:y,regionModel:m}));var _=[],S=[];D(v.geometries,function(w){if(w.type==="polygon"){var T=[w.exterior].concat(w.interiors||[]);u&&(T=CT(T,u)),D(T,function(A){_.push(new or(h(A)))})}else{var C=w.points;u&&(C=CT(C,u,!0)),D(C,function(A){S.push(new sr(h(A)))})}});var b=f(v.getCenter(),l&&l.project);function x(w,T){if(w.length){var C=new Z0({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});d.add(C),ST(t,C,y,m),xT(t,C,p,m,o,y,b),T&&(_T(C),D(C.states,_T))}}x(_),x(S,!0)}),e.each(function(v,p){var d=n.get(p),g=d.dataIdx,y=d.regionModel;bT(t,v,p,y,o,g),wT(t,v,p,y,o),TT(t,v,p,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 a=this._svgDispatcherMap=ut(),i=!1;D(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);if(_8.get(f)!=null&&c instanceof Yr&&ST(t,c,h,v),c instanceof Yr&&(c.culling=!0),c.z2EmphasisLift=0,!o.namedFrom&&(x8.get(f)!=null&&xT(t,c,s,v,l,h,null),bT(t,c,s,v,l,h),wT(t,c,s,v,l),S8.get(f)!=null)){var p=TT(t,c,s,v,l);p==="self"&&(i=!0);var d=a.get(s)||a.set(s,[]);d.push(c)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){wo(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.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 a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}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=ga.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=ga.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 a=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,B_(o,u.dx,u.dy),n.dispatchAction(H(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,V_(o,u.scale,u.originX,u.originY),n.dispatchAction(H(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,c){return a.containPoint([f,c])&&!ep(u,n,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=AR(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,n,a){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function ST(r,t,e,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=bc(a),u=bc(i),f=bc(s),c=bc(o),h=r.data;if(h){var v=h.getItemVisual(e,"style"),p=h.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),p&&(l.decal=ks(p,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=c,wo(t)}function xT(r,t,e,n,a,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var c=l?e:i,h=void 0;(!s||i>=0)&&(h=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ne(t,De(n),{labelFetcher:h,labelDataIndex:c,defaultText:e},v);var p=t.getTextContent();if(p&&(AR(p).ignore=p.ignore,t.textConfig&&o)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function bT(r,t,e,n,a,i){r.data?r.data.setItemGraphicEl(i,t):_t(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:n&&n.option||{}}}function wT(r,t,e,n,a){r.data||Zs({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function TT(r,t,e,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return ce(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&SF(t,a,e),o}function CT(r,t,e){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),D(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}var b8=function(r){V(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,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new DR(a);o.add(s.group),s.draw(e,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(e,n,a)}}},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,a){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,c=u.offset,h=new Sa({style:{fill:e.getData().getVisual("style").fill},shape:{cx:f[0]+c*9,cy:f[1],r:3},silent:!0,z2:8+(c?0:Ys+1)});if(!c){var v=e.mainSeries.getData(),p=i.getName(l),d=v.indexOfName(p),g=i.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(d);Ne(h,De(g),{labelFetcher:{getFormattedLabel:function(_,S){return e.getFormattedLabel(d,S)}},defaultText:p}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Th(h,_)}}o.add(h)}}})},t.type="map",t}(Kt),w8=function(r){V(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 a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var n=al(this,{coordDimensions:["value"],encodeDefaulter:bt(a_,this)}),a=ut(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,!0)}var u=ga.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(f){var c=f.name;a.get(c)||i.push(c)}),n.appendValues([],i),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,a){for(var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var c=l[f].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[f].originalData.get(h,c))||u.push(l[f].name)}return Me("section",{header:u.join(", "),noHeader:!u.length,blocks:[Me("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",a=ye(n,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return a.setStyle(e.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},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}(ae);function T8(r,t){var e={};return D(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);e[o]=e[o]||[],isNaN(a)||e[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f<u;f++)s=Math.min(s,e[i][f]),l=Math.max(l,e[i][f]),o+=e[i][f];var c;return t==="min"?c=s:t==="max"?c=l:t==="average"?c=o/u:c=o,u===0?NaN:c})}function C8(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),a=n?"o"+n.id:"i"+e.getMapType();(t[a]=t[a]||[]).push(e)}),D(t,function(e,n){for(var a=T8(X(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=i===0&&!e[i].getHostGeoModel(),e[i].setData(a.cloneShallow()),e[i].mainSeries=e[0]})}function A8(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getMapType();if(!(e.getHostGeoModel()||t[n])){var a={};D(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=a[c]||0,p=s.dataToPoint(h.getCenter());a[c]=v+1,l.setItemLayout(f,{point:p,offset:v})}})});var i=e.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[n]=!0}})}var AT=Ee,Af=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ea,n._rawTransformable=new ea,n.name=e,n}return t.prototype.setBoundingRect=function(e,n,a,i){return this._rect=new Mt(e,n,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,n,a,i){this._transformTo(e,n,a,i),this._viewRect=new Mt(e,n,a,i)},t.prototype._transformTo=function(e,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Mt(e,n,a,i));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,a=e.y+e.height/2;return[n,a]},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,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Ee([],i,e),a=Ee([],a,e),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[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(),P0(this.transform||(this.transform=[]),n.transform||Ar()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Us(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,n=this._roamTransformable,a=new ea;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.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,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?AT(a,e,i):Ke(a,e)},t.prototype.pointToData=function(e){var n=this.invTransform;return n?AT([],e,n):[e[0],e[1]]},t.prototype.convertToPixel=function(e,n,a){var i=DT(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=DT(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(ea);function DT(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var D8={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},MR=["lng","lat"],_m=function(r){V(t,r);function t(e,n,a){var i=r.call(this,e)||this;i.dimensions=MR,i.type="geo",i._nameCoordMap=ut(),i.map=n;var o=a.projection,s=ga.load(n,a.nameMap,a.nameProperty),l=ga.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=D8[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.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 i.setBoundingRect(c.x,c.y,c.width,c.height),i.aspectScale=o?1:St(a.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return t.prototype._transformTo=function(e,n,a,i){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,a,i));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,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(e))return n[a]}},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,a){if(nt(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,n,a)}},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,a){return r.prototype.dataToPoint.call(this,e,n,a)},t.prototype.convertToPixel=function(e,n,a){var i=MT(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=MT(n);return i===this?i.pointToData(a):null},t}(Af);me(_m,Af);function MT(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",ge).models[0]||{}).coordinateSystem:null}function IT(r,t){var e=r.get("boundingCoords");if(e!=null){var n=e[0],a=e[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var f=function(x,w,T,C){for(var A=T-x,M=C-w,I=0;I<=100;I++){var L=I/100,P=i.project([x+A*L,w+M*L]);Ha(n,n,P),Wa(a,a,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],a[0]-n[0],a[1]-n[1])}}var c=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),p=t.getWidth(),d=t.getHeight(),g=c.width/c.height*this.aspectScale,y=!1,m,_;h&&v&&(m=[et(h[0],p),et(h[1],d)],_=et(v,Math.min(p,d)),!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 b=r.getBoxLayoutParams();b.aspect=g,S=xe(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function M8(r,t){D(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var I8=function(){function r(){this.dimensions=MR}return r.prototype.create=function(t,e){var n=[];function a(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 _m(l+s,l,H({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=IT,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 i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),D(i,function(o,s){var l=X(o,function(f){return f.get("nameMap")}),u=new _m(s,s,H({nameMap:D0(l)},a(o[0])));u.zoomLimit=Le.apply(null,X(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=IT,u.resize(o[0],e),D(o,function(f){f.coordinateSystem=u,M8(u,f)})}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),o=ut(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ga.load(e,n,a);return D(l.regions,function(u){var f=u.name;!o.get(f)&&i.push({name:f})}),i},r}(),IR=new I8,L8=function(r){V(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,a){var i=ga.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,a),So(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,n=this.option;n.regions=IR.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=zn(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ut(o,e,e.ecModel)),o.selected&&(a[s]=!0)),i},ut()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Ut(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,n){var a=this.getRegionModel(e),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:e};if(vt(i))return o.status=n,i(o);if(nt(i))return i.replace("{a}",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,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[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}(kt);function LT(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function F_(r,t,e,n){var a=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(LT(r,s),n)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}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(LT(r,s),n),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var P8=function(r){V(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,a,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new DR(a));var o=this._mapDraw;o.draw(e,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,n,a)},t.prototype._handleRegionClick=function(e){var n;ro(e.target,function(a){return(n=_t(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(e,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=_t(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.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}(ue);function R8(r,t,e){ga.registerMap(r,t,e)}function LR(r){r.registerCoordinateSystem("geo",IR),r.registerComponentModel(L8),r.registerComponentView(P8),r.registerImpl("registerMap",R8),r.registerImpl("getMap",function(e){return ga.getMapForUser(e)});function t(e,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[e](a.name);var u=l.coordinateSystem;D(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];D(o,function(c,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.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,a){var i=e.componentType||"series";n.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=F_(s,e,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&D(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function E8(r){Lt(LR),r.registerChartView(b8),r.registerSeriesModel(w8),r.registerLayout(A8),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,C8),R2("map",r.registerAction)}function k8(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,a;n=e.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function O8(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){V8(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=z8(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function N8(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function PT(r){return arguments.length?r:H8}function Xl(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function B8(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function V8(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function z8(r,t,e,n){if(t){for(var a=r,i=r,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=qd(s),i=Kd(i),s&&i;){a=qd(a),o=Kd(o),a.hierNode.ancestor=r;var h=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);h>0&&(G8(F8(s,r,e),r,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!qd(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!Kd(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function qd(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Kd(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function F8(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function G8(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 H8(r,t){return r.parentNode===t.parentNode?1:2}var W8=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),U8=function(r){V(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 W8},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===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 p=1;p<i-1;p++){var d=a[p];e.moveTo(d[0],d[1]),v[f]=d[f],e.lineTo(v[0],v[1])}},t}(Pt),$8=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new mt,e}return t.prototype.init=function(e,n){this._controller=new Cf(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,n,a){var i=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,a),this._updateController(e,n,a);var u=this._data;i.diff(u).add(function(f){RT(i,f)&&ET(i,f,null,s,e)}).update(function(f,c){var h=u.getItemGraphicEl(c);if(!RT(i,f)){h&&OT(u,c,h,s,e);return}ET(i,f,h,s,e)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&OT(u,f,c,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:c})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,n){var a=e.getData(),i=[];a.each(function(c){var h=a.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];Pv(i,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 Af;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,a){var i=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)&&!ep(u,a,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){B_(s,u.dx,u.dy),a.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){V_(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(e),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var n=e.getData(),a=this._getNodeGlobalScale(e);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(e){var n=e.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},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}(Kt);function RT(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function ET(r,t,e,n,a){var i=!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(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,d=o.getLayout();i?(e=new _f(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=p.x,e.y=p.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=d.rawX,e.__radialRawY=d.rawY,n.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,Ht(e,{x:d.x,y:d.y},a);var g=e.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(d.x===m.x&&o.isExpand===!0&&y.children.length){var x={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(x.y-m.y,x.x-m.x),S<0&&(S=Math.PI*2+S),b=x.x<m.x,b&&(S=S-Math.PI)}else S=Math.atan2(d.y-m.y,d.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=d.x<m.x,b&&(S=S-Math.PI)):(b=d.x>m.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),A=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?ph(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(_t(e).focus=L),Y8(a,o,f,e,p,v,d,n),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===uf||Th(e.__edge,P)}})}function Y8(r,t,e,n,a,i,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"),p=l.getModel("lineStyle").getLineStyle(),d=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=n.__edge=new cf({shape:Sm(f,c,h,a,a)})),Ht(d,{shape:Sm(f,c,h,i,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])}d||(d=n.__edge=new U8({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:v}})),Ht(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}d&&!(u==="polyline"&&!t.isExpand)&&(d.useStyle(dt({strokeNoScale:!0,fill:null},p)),Oe(d,l,"lineStyle"),wo(d),s.add(d))}function kT(r,t,e,n,a){var i=t.tree.root,o=PR(i,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"),p=n.get("layout"),d=n.get("orient"),g=n.get(["lineStyle","curveness"]);h&&(v==="curve"?ii(h,{shape:Sm(p,d,g,l,l),style:{opacity:0}},n,{cb:function(){e.remove(h)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&ii(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){e.remove(h)},removeOpt:a}))}}function PR(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 OT(r,t,e,n,a){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=PR(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};ii(e,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){kT(u,r,n,a,l)}),kT(i,r,n,a,l)}function Sm(r,t,e,n,a){var i,o,s,l,u,f,c,h;if(r==="radial"){u=n.rawX,c=n.rawY,f=a.rawX,h=a.rawY;var v=Xl(u,c),p=Xl(u,c+(h-c)*e),d=Xl(f,h+(c-h)*e),g=Xl(f,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=n.x,c=n.y,f=a.x,h=a.y,(t==="LR"||t==="RL")&&(i=u+(f-u)*e,o=c,s=f+(u-f)*e,l=h),(t==="TB"||t==="BT")&&(i=u,o=c+(h-c)*e,s=f,l=h+(c-h)*e);return{x1:u,y1:c,x2:f,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var Ur=zt();function RR(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,ER(t,e,r),D(e,function(n){D(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,bt(X8,r))})}),t.wrapMethod("cloneShallow",bt(q8,r)),D(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,bt(Z8,r))}),nr(e[t.dataType]===t)}function X8(r,t){if(Q8(this)){var e=H({},Ur(this).datas);e[this.dataType]=t,ER(t,e,r)}else G_(t,this.dataType,Ur(this).mainData,r);return t}function Z8(r,t){return r.struct&&r.struct.update(),t}function q8(r,t){return D(Ur(t).datas,function(e,n){e!==t&&G_(e.cloneShallow(),n,t,r)}),t}function K8(r){var t=Ur(this).mainData;return r==null||t==null?t:Ur(t).datas[r]}function j8(){var r=Ur(this).mainData;return r==null?[{data:r}]:X(Ot(Ur(r).datas),function(t){return{type:t,data:Ur(r).datas[t]}})}function Q8(r){return Ur(r).mainData===r}function ER(r,t,e){Ur(r).datas={},D(t,function(n,a){G_(n,a,r,e)})}function G_(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=K8,r.getLinkedDataAll=j8}var J8=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 a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=e.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,n);a==="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 a=this.children[n];a.updateDepthAndHeight(t+1),a.height>e&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e<a;e++){var i=n[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,a=n.length;e<a;e++){var i=n[e].contains(t);if(i)return i}},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}(),H_=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,a=e.length;n<a;n++)e[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)e[t.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,n){var a=new r(e),i=[],o=1;s(t);function s(f,c){var h=f.value;o=Math.max(o,W(h)?h.length:1),i.push(f);var v=new J8(_e(f.name,""),a);c?t$(v,c):a.root=v,a._nodes.push(v);var p=f.children;if(p)for(var d=0;d<p.length;d++)s(p[d],v)}a.root.updateDepthAndHeight(0);var l=yf(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new er(l,e);return u.initData(i),n&&n(u),RR({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r}();function t$(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}function Zu(r,t,e){if(r&&It(t,r.type)>=0){var n=e.getData().tree.root,a=r.targetNode;if(nt(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function kR(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function W_(r,t){var e=kR(r);return It(e,t)>=0}function np(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 e$=function(r){V(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},a=e.leaves||{},i=new Ut(a,this,this.ecModel),o=H_.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(h,v){var p=o.getNodeByDataIndex(v);return p&&p.children.length&&p.isExpand||(h.parentModel=i),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,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Me("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=np(a,this),n.collapsed=!a.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}(ae);function r$(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,e)}function Ll(r,t){for(var e=[r],n;n=e.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)e.push(a[i])}}function n$(r,t){r.eachSeriesByType("tree",function(e){a$(e,t)})}function a$(r,t){var e=B8(r,t);r.layoutInfo=e;var n=r.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(e.height,e.width)/2,o=PT(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=e.width,i=e.height,o=PT());var s=r.getData().tree.root,l=s.children[0];if(l){k8(s),r$(l,O8,o),s.hierNode.modifier=-l.hierNode.prelim,Ll(l,N8);var u=l,f=l,c=l;Ll(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,p=0,d=0,g=0,y=0;if(n==="radial")p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),Ll(l,function(_){g=(_.getLayout().x+v)*p,y=(_.depth-1)*d;var S=Xl(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=i/(f.getLayout().x+h+v),p=a/(c.depth-1||1),Ll(l,function(_){y=(_.getLayout().x+v)*d,g=m==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),Ll(l,function(_){g=(_.getLayout().x+v)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function i$(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(a.dataIndex,"style");H(s,o)})})}function o$(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);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(a){var i=a.coordinateSystem,o=F_(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function s$(r){r.registerChartView($8),r.registerSeriesModel(e$),r.registerLayout(n$),r.registerVisual(i$),o$(r)}var NT=["treemapZoomToNode","treemapRender","treemapMove"];function l$(r){for(var t=0;t<NT.length;t++)r.registerAction({type:NT[t],update:"updateView"},pe);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"treemap",query:e},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Zu(e,s,i);if(l){var u=i.getViewRoot();u&&(e.direction=W_(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function OR(r){var t=r.getData(),e=t.tree,n={};e.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=Zy(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var u$=function(r){V(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 a={name:e.name,children:e.data};NR(a);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Ut({itemStyle:o},this,n);i=e.levels=f$(i,n);var l=X(i||[],function(c){return new Ut(c,s,n)},this),u=H_.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var p=u.getNodeByDataIndex(v),d=p?l[p.depth]:null;return h.parentModel=d||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return Me("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=np(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ut(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},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(){OR(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}(ae);function NR(r){var t=0;D(r.children,function(n){NR(n);var a=n.value;W(a)&&(a=a[0]),t+=a});var e=r.value;W(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),W(r.value)?r.value[0]=e:r.value=e}function f$(r,t){var e=qt(t.get("color")),n=qt(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;D(r,function(s){var l=new Ut(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=e.slice()),!i&&n&&(o.decal=n.slice()),r}}var c$=8,BT=8,jd=5,h$=function(){function r(t){this.group=new mt,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(t,c,s,l,u,f,a),Uv(o,c.pos,c.box)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=_e(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+c$*2,e.emptyItemWidth);e.totalWidth+=s+BT,e.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(t,e,n,a,i,o,s){for(var l=0,u=e.emptyItemWidth,f=t.get(["breadcrumb","height"]),c=bG(e.pos,e.box),h=e.totalWidth,v=e.renderList,p=a.getModel("itemStyle").getItemStyle(),d=v.length-1;d>=0;d--){var g=v[d],y=g.node,m=g.width,_=g.text;h>c.width&&(h-=m-u,m=u,_=null);var S=new or({shape:{points:v$(l,0,m,f,d===v.length-1,d===0)},style:dt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ft({style:ne(i,{text:_})}),textConfig:{position:"inside"},z2:Ys*1e4,onclick:bt(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=ne(o,{text:_}),S.ensureState("emphasis").style=p,ce(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),p$(S,t,y),l+=m+BT}},r.prototype.remove=function(){this.group.removeAll()},r}();function v$(r,t,e,n,a,i){var o=[[a?r:r-jd,t],[r+e,t],[r+e,t+n],[a?r:r-jd,t+n]];return!i&&o.splice(2,0,[r+e+jd,t+n/2]),!a&&o.push([r,t+n/2]),o}function p$(r,t,e){_t(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&&np(e,t)}}var d$=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!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())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function g$(){return new d$}var xm=mt,VT=Vt,zT=3,FT="label",GT="upperLabel",y$=Ys*10,m$=Ys*2,_$=Ys*3,Ui=bo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),HT=function(r){var t=Ui(r);return t.stroke=t.fill=t.lineWidth=null,t},Yh=zt(),S$=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=Pl(),e}return t.prototype.render=function(e,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(It(o,e)<0)){this.seriesModel=e,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Zu(i,s,e),u=i&&i.type,f=e.layoutInfo,c=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(f),d=e.get("animation"),g=this._doRender(p,e,v);d&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,e,v):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(e,a,l)}},t.prototype._giveContainerGroup=function(e){var n=this._containerGroup;return n||(n=this._containerGroup=new xm,this._initEvents(n),this.group.add(n)),n.x=e.x,n.y=e.y,n},t.prototype._doRender=function(e,n,a){var i=n.getData().tree,o=this._oldTree,s=Pl(),l=Pl(),u=this._storage,f=[];function c(m,_,S,b){return x$(n,l,u,a,s,f,m,_,S,b)}d(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var h=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===v.width&&p.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:y};function d(m,_,S,b,x){b?(_=m,D(m,function(C,A){!C.isRemoved()&&T(A,A)})):new pa(_,m,w,w).add(T).update(T).remove(bt(T,null)).execute();function w(C){return C.getId()}function T(C,A){var M=C!=null?m[C]:null,I=A!=null?_[A]:null,L=c(M,I,S,x);L&&d(M&&M.viewChildren||[],I&&I.viewChildren||[],L,b,x+1)}}function g(m){var _=Pl();return m&&D(m,function(S,b){var x=_[b];D(S,function(w){w&&(x.push(w),Yh(w).willDelete=!0)})}),_}function y(){D(h,function(m){D(m,function(_){_.parent&&_.parent.remove(_)})}),D(f,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(e,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(vt(o)?0:o)||0,u=(vt(s)?null:s)||"cubicOut",f=g$();D(n.willDeleteEls,function(c,h){D(c,function(v,p){if(!v.invisible){var d=v.parent,g,y=Yh(d);if(i&&i.direction==="drillDown")g=d===i.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)}})}),D(this._storage,function(c,h){D(c,function(v,p){var d=n.lastsForAnimation[h][p],g={};d&&(v instanceof mt?d.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=d.oldX,v.y=d.oldY):(d.oldShape&&(g.shape=H({},v.shape),v.setShape(d.oldShape)),d.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(it(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(e){var n=this._controller,a=this._controllerHost;a||(this._controllerHost={target:this.group},a=this._controllerHost),n||(n=this._controller=new Cf(e.getZr()),n.enable(this.seriesModel.get("roam")),a.zoomLimit=this.seriesModel.get("scaleLimit"),a.zoom=this.seriesModel.get("zoom"),n.on("pan",it(this._onPan,this)),n.on("zoom",it(this._onZoom,this)));var i=new Mt(0,0,e.getWidth(),e.getHeight());n.setPointerChecker(function(o,s,l){return i.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)>zT||Math.abs(e.dy)>zT)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY,i=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*=i,u){var h=u.min||0,v=u.max||1/0;c=Math.max(Math.min(v,c),h)}var p=c/f.zoom;f.zoom=c;var d=this.seriesModel.layoutInfo;n-=d.x,a-=d.y;var g=Ar();Fn(g,g,[-n,-a]),R0(g,g,[p,p]),Fn(g,g,[n,a]),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(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Lh(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new h$(this.group))).render(e,n,a.node,function(o){i._state!=="animating"&&(W_(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Pl(),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 a,i=this.seriesModel.getViewRoot();return i.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)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(Kt);function Pl(){return{nodeGroup:[],background:[],content:[]}}function x$(r,t,e,n,a,i,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,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,M=ht("nodeGroup",xm);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Yh(M).nodeWidth=v,Yh(M).nodeHeight=p,f.isAboveViewRoot)return M;var I=ht("background",VT,u,m$);I&&F(M,I,b&&f.upperLabelHeight);var L=h.getModel("emphasis"),P=L.get("focus"),R=L.get("blurScope"),O=L.get("disabled"),B=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Ou(M)&&to(M,!1),I&&(to(I,!O),c.setItemGraphicEl(o.dataIndex,I),Fy(I,B,R));else{var N=ht("content",VT,u,_$);N&&U(M,N),I.disableMorphing=!0,I&&Ou(I)&&to(I,!1),to(M,!O),c.setItemGraphicEl(o.dataIndex,M),Fy(M,B,R)}return M;function F(G,$,K){var j=_t($);if(j.dataIndex=o.dataIndex,j.seriesIndex=r.seriesIndex,$.setShape({x:0,y:0,width:v,height:p,r:A}),g)Z($);else{$.invisible=!1;var J=o.getVisual("style"),ct=J.stroke,E=HT(x);E.fill=ct;var k=Ui(w);k.fill=w.get("borderColor");var z=Ui(T);z.fill=T.get("borderColor");var q=Ui(C);if(q.fill=C.get("borderColor"),K){var Y=v-2*d;Q($,ct,J.opacity,{x:d,y:0,width:Y,height:S})}else $.removeTextContent();$.setStyle(E),$.ensureState("emphasis").style=k,$.ensureState("blur").style=z,$.ensureState("select").style=q,wo($)}G.add($)}function U(G,$){var K=_t($);K.dataIndex=o.dataIndex,K.seriesIndex=r.seriesIndex;var j=Math.max(v-2*d,0),J=Math.max(p-2*d,0);if($.culling=!0,$.setShape({x:d,y:d,width:j,height:J,r:A}),g)Z($);else{$.invisible=!1;var ct=o.getVisual("style"),E=ct.fill,k=HT(x);k.fill=E,k.decal=ct.decal;var z=Ui(w),q=Ui(T),Y=Ui(C);Q($,E,ct.opacity,null),$.setStyle(k),$.ensureState("emphasis").style=z,$.ensureState("blur").style=q,$.ensureState("select").style=Y,wo($)}G.add($)}function Z(G){!G.invisible&&i.push(G)}function Q(G,$,K,j){var J=h.getModel(j?GT:FT),ct=_e(h.get("name"),null),E=J.getShallow("show");Ne(G,De(h,j?GT:FT),{defaultText:E?ct:null,inheritColor:$,defaultOpacity:K,labelFetcher:r,labelDataIndex:o.dataIndex});var k=G.getTextContent();if(k){var z=k.style,q=I0(z.padding||0);j&&(G.setTextConfig({layoutRect:j}),k.disableLabelLayout=!0),k.beforeUpdate=function(){var tt=Math.max((j?j.width:G.shape.width)-q[1]-q[3],0),ot=Math.max((j?j.height:G.shape.height)-q[0]-q[2],0);(z.width!==tt||z.height!==ot)&&k.setStyle({width:tt,height:ot})},z.truncateMinChar=2,z.lineOverflow="truncate",ft(z,j,f);var Y=k.getState("emphasis");ft(Y?Y.style:null,j,f)}}function ft(G,$,K){var j=G?G.text:null;if(!$&&K.isLeafRoot&&j!=null){var J=r.get("drillDownIcon",!0);G.text=J?J+" "+j:j}}function ht(G,$,K,j){var J=m!=null&&e[G][m],ct=a[G];return J?(e[G][m]=null,Tt(ct,J)):g||(J=new $,J instanceof Yr&&(J.z2=b$(K,j)),xt(ct,J)),t[G][y]=J}function Tt(G,$){var K=G[y]={};$ instanceof xm?(K.oldX=$.x,K.oldY=$.y):K.oldShape=H({},$.shape)}function xt(G,$){var K=G[y]={},j=o.parentNode,J=$ instanceof mt;if(j&&(!n||n.direction==="drillDown")){var ct=0,E=0,k=a.background[j.getRawIndex()];!n&&k&&k.oldShape&&(ct=k.oldShape.width,E=k.oldShape.height),J?(K.oldX=0,K.oldY=E):K.oldShape={x:ct,y:E,width:0,height:0}}K.fadein=!J}}function b$(r,t){return r*y$+t}var qu=D,w$=gt,Xh=-1,Ae=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=yt(t);this.type=n,this.mappingMethod=e,this._normalizeData=A$[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Qd(a),T$(a)):e==="category"?a.categories?C$(a):Qd(a,!0):(nr(e!=="linear"||a.dataExtent),Qd(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return it(this._normalizeData,this)},r.listVisualTypes=function(){return Ot(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){gt(t)?D(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=W(t)?[]:gt(t)?{}:(a=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},n;return t&&qu(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(W(t))t=t.slice();else if(w$(t)){var e=[];qu(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="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 a,i=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(Tc(c[1],t,f[1]))return o}else if(f[1]===1/0){if(Tc(c[0],f[0],t))return o}else if(Tc(c[0],f[0],t)&&Tc(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:a;function h(v,p){var d=Math.abs(v-t);d<i&&(i=d,a=p)}},r.visualHandlers={color:{applyVisual:Rl("color"),getColorMapper:function(){var t=this.option;return it(t.mappingMethod==="category"?function(e,n){return!n&&(e=this._normalizeData(e)),Zl.call(this,e)}:function(e,n,a){var i=!!a;return!n&&(e=this._normalizeData(e)),a=Rp(e,t.parsedVisual,a),i?a:sa(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return sa(Rp(t,this.option.parsedVisual),"rgba")},category:Zl,piecewise:function(t,e){var n=wm.call(this,e);return n==null&&(n=sa(Rp(t,this.option.parsedVisual),"rgba")),n},fixed:$i}},colorHue:wc(function(t,e){return ou(t,e)}),colorSaturation:wc(function(t,e){return ou(t,null,e)}),colorLightness:wc(function(t,e){return ou(t,null,null,e)}),colorAlpha:wc(function(t,e){return mh(t,e)}),decal:{applyVisual:Rl("decal"),_normalizedToVisual:{linear:null,category:Zl,piecewise:null,fixed:null}},opacity:{applyVisual:Rl("opacity"),_normalizedToVisual:bm([0,1])},liftZ:{applyVisual:Rl("liftZ"),_normalizedToVisual:{linear:$i,category:$i,piecewise:$i,fixed:$i}},symbol:{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:WT,category:Zl,piecewise:function(t,e){var n=wm.call(this,e);return n==null&&(n=WT.call(this,t)),n},fixed:$i}},symbolSize:{applyVisual:Rl("symbolSize"),_normalizedToVisual:bm([0,1])}},r}();function T$(r){var t=r.pieceList;r.hasSpecialVisual=!1,D(t,function(e,n){e.originIndex=n,e.visual!=null&&(r.hasSpecialVisual=!0)})}function C$(r){var t=r.categories,e=r.categoryMap={},n=r.visual;if(qu(t,function(o,s){e[o]=s}),!W(n)){var a=[];gt(n)?qu(n,function(o,s){var l=e[s];a[l??Xh]=o}):a[Xh]=n,n=BR(r,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function Qd(r,t){var e=r.visual,n=[];gt(e)?qu(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),BR(r,n)}function wc(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:bm([0,1])}}function WT(r){var t=this.option.visual;return t[Math.round(Xt(r,[0,1],[0,t.length-1],!0))]||{}}function Rl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function Zl(r){var t=this.option.visual;return t[this.option.loop&&r!==Xh?r%t.length:r]}function $i(){return this.option.visual[0]}function bm(r){return{linear:function(t){return Xt(t,r,this.option.visual,!0)},category:Zl,piecewise:function(t,e){var n=wm.call(this,e);return n==null&&(n=Xt(t,r,this.option.visual,!0)),n},fixed:$i}}function wm(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=Ae.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function BR(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=X(t,function(e){var n=Dr(e);return n||[0,0,0,1]})),t}var A$={linear:function(r){return Xt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Ae.findPieceIndex(r,t,!0);if(e!=null)return Xt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Xh},fixed:pe};function Tc(r,t,e){return r?t<=e:t<e}var D$="itemStyle",VR=zt();const M$={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||zR(e,{},r.getViewRoot().getAncestors(),r)}};function zR(r,t,e,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(D$),l=I$(s,t,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=UT(l),f=L$(c,h)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)h=UT(l),u.fill=h;else{var p=P$(r,a,i,s,l,v);D(v,function(d,g){if(d.depth>=e.length||d===e[d.depth]){var y=R$(a,l,d,g,p,n);zR(d,y,e,n)}})}}}function I$(r,t,e){var n=H({},t),a=e.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function UT(r){var t=Jd(r,"color");if(t){var e=Jd(r,"colorAlpha"),n=Jd(r,"colorSaturation");return n&&(t=ou(t,null,null,n)),e&&(t=mh(t,e)),t}}function L$(r,t){return t!=null?ou(t,null,null,r):null}function Jd(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function P$(r,t,e,n,a,i){if(!(!i||!i.length)){var o=tg(t,"color")||a.color!=null&&a.color!=="none"&&(tg(t,"colorAlpha")||tg(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 Ae(c);return VR(h).drColorMappingBy=f,h}}}function tg(r,t){var e=r.get(t);return W(e)&&e.length?{name:t,range:e}:null}function R$(r,t,e,n,a,i){var o=H({},t);if(a){var s=a.type,l=s==="color"&&VR(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Ku=Math.max,Zh=Math.min,$T=Le,U_=D,FR=["itemStyle","borderWidth"],E$=["itemStyle","gapWidth"],k$=["upperLabel","show"],O$=["upperLabel","height"];const N$={seriesType:"treemap",reset:function(r,t,e,n){var a=e.getWidth(),i=e.getHeight(),o=r.option,s=xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=et($T(s.width,l[0]),a),f=et($T(s.height,l[1]),i),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=Zu(n,h,r),p=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),g=kR(d);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?H$(r,v,d,u,f):p?[p.width,p.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),GR(d,_,!1,0),S=d.getLayout(),U_(g,function(x,w){var T=(g[w+1]||d).getValue();x.setLayout(H({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(W$(s,p,v),!0),r.setLayoutInfo(s),HR(b,new Mt(-s.x,-s.y,a,i),g,d,0)}};function GR(r,t,e,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(FR),u=s.get(E$)/2,f=WR(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=Ku(a-2*h,0),i=Ku(i-h-v,0);var p=a*i,d=B$(r,s,p,t,e,n);if(d.length){var g={x:h,y:v,width:a,height:i},y=Zh(a,i),m=1/0,_=[];_.area=0;for(var S=0,b=d.length;S<b;){var x=d[S];_.push(x),_.area+=x.getLayout().area;var w=G$(_,y,t.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,YT(_,y,g,u,!1),y=Zh(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&YT(_,y,g,u,!0),!e){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(e=!0)}for(var S=0,b=d.length;S<b;S++)GR(d[S],t,e,n+1)}}}function B$(r,t,e,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=Zt(o,function(v){return!v.isRemoved()}),z$(o,s);var u=F$(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=V$(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 V$(r,t,e,n,a){if(!n)return e;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/e*t<i&&(s=l,e-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),e}function z$(r,t){return t&&r.sort(function(e,n){var a=t==="asc"?e.getValue()-n.getValue():n.getValue()-e.getValue();return a===0?t==="asc"?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:a}),r}function F$(r,t,e){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].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],U_(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 G$(r,t,e){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=t*t*e;return l?Ku(u*n/l,l/(u*a)):1/0}function YT(r,t,e,n,a){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(a||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,h=r.length;c<h;c++){var v=r[c],p={},d=f?v.getLayout().area/f:0,g=p[l[o]]=Ku(f-2*n,0),y=e[s[i]]+e[l[i]]-u,m=c===h-1||y<d?y:d,_=p[l[i]]=Ku(m-2*n,0);p[s[o]]=e[s[o]]+Zh(n,g/2),p[s[i]]=u+Zh(n,_/2),u+=m,v.setLayout(p,!0)}e[s[o]]+=f,e[l[o]]-=f}function H$(r,t,e,n,a){var i=(t||{}).node,o=[n,a];if(!i||i===e)return o;for(var s,l=n*a,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,c=s.children,h=0,v=c.length;h<v;h++)f+=c[h].getValue();var p=i.getValue();if(p===0)return o;u*=f/p;var d=s.getModel(),g=d.get(FR),y=Math.max(g,WR(d));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>ax&&(u=ax),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,a*m]}function W$(r,t,e){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!e)return n;var a=e.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;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 HR(r,t,e,n,a){var i=r.getLayout(),o=e[a],s=o&&o===r;if(!(o&&!s||a===e.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Mt(t.x-i.x,t.y-i.y,t.width,t.height);U_(r.viewChildren||[],function(u){HR(u,l,e,n,a+1)})}}function WR(r){return r.get(k$)?r.get(O$):0}function U$(r){r.registerSeriesModel(u$),r.registerChartView(S$),r.registerVisual(M$),r.registerLayout(N$),l$(r)}function $$(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),a=e.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Gt(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}function Y$(r){var t={};r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),a=e.getData(),i={};n.each(function(o){var s=n.getName(o);i["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()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){nt(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");H(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)a.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function Cc(r){return r instanceof Array||(r=[r,r]),r}function X$(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),a=Cc(t.get("edgeSymbol")),i=Cc(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=e.getEdgeByIndex(o),u=Cc(s.getShallow("symbol",!0)),f=Cc(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(H(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 Tm="-->",ap=function(r){return r.get("autoCurveness")||null},UR=function(r,t){var e=ap(r),n=20,a=[];if(Gt(e))n=e;else if(W(e)){r.__curvenessList=e;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},ju=function(r,t,e){var n=[r.id,r.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[e.uid,n,a].join(Tm)},$R=function(r){var t=r.split(Tm);return[t[0],t[2],t[1]].join(Tm)},Z$=function(r,t){var e=ju(r.node1,r.node2,t);return t.__edgeMap[e]},q$=function(r,t){var e=Cm(ju(r.node1,r.node2,t),t),n=Cm(ju(r.node2,r.node1,t),t);return e+n},Cm=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function K$(r){ap(r)&&(r.__curvenessList=[],r.__edgeMap={},UR(r))}function j$(r,t,e,n){if(ap(e)){var a=ju(r,t,e),i=e.__edgeMap,o=i[$R(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function $_(r,t,e,n){var a=ap(t),i=W(a);if(!a)return null;var o=Z$(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=q$(r,t);UR(t,u),r.lineStyle=r.lineStyle||{};var f=ju(r.node1,r.node2,t),c=t.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var v=$R(f),p=Cm(v,t),d=c[s+p+h];return n?i?a&&a[0]===0?(p+h)%2?d:-d:((p%2?0:1)+h)%2?d:-d:(p+h)%2?d:-d:c[s+p+h]}function YR(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),Y_(e,r)}}function Y_(r,t){r.eachEdge(function(e,n){var a=Nn(e.getModel().get(["lineStyle","curveness"]),-$_(e,t,n,!0),0),i=ia(e.node1.getLayout()),o=ia(e.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),e.setLayout(s)})}function Q$(r,t){r.eachSeriesByType("graph",function(e){var n=e.get("layout"),a=e.coordinateSystem;if(a&&a.type!=="view"){var i=e.getData(),o=[];D(a.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}Y_(i.graph,e)}else(!n||n==="none")&&YR(e)})}function ql(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,n=t.scaleX,a=t.getZoom(),i=(a-1)*e+1;return i/n}function Kl(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var XT=Math.PI,eg=[];function X_(r,t,e,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(e){var h=a.pointToData(n),v=h[0],p=h[1],d=[v-l,p-u];Ws(d,d),Hc(d,d,f),e.setLayout([l+d[0],u+d[1]],!0);var g=r.get(["circular","rotateLabel"]);XR(e,g,l,u)}J$[t](r,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=Nn(y.getModel().get(["lineStyle","curveness"]),$_(y,r,m),0),S=ia(y.node1.getLayout()),b=ia(y.node2.getLayout()),x,w=(S[0]+b[0])/2,T=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,b,x])})}}}var J$={value:function(r,t,e,n,a,i,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)+a,n*Math.sin(s)+i]),s+=h})},symbolSize:function(r,t,e,n,a,i,o){var s=0;eg.length=o;var l=ql(r);t.eachNode(function(c){var h=Kl(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/n);isNaN(v)&&(v=XT/2),eg[c.dataIndex]=v,s+=v*2});var u=(2*XT-s)/o/2,f=0;t.eachNode(function(c){var h=u+eg[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=h})}};function XR(r,t,e,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.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");H(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function tY(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&X_(t,"symbolSize")})}var Ko=cy;function eY(r,t,e){for(var n=r,a=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=Mo(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=ia(c.p),c.edges=null}var h=e.friction==null?.6:e.friction,v=h,p,d;return{warmUp:function(){v=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;Qi(y,x.p,b.p);var w=hy(y)-S.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),Ws(y,y),!b.fixed&&Ko(b.p,b.p,y,T*w*v),!x.fixed&&Ko(x.p,x.p,y,-(1-T)*w*v)}}for(var _=0;_<m;_++){var C=n[_];C.fixed||(Qi(y,l,C.p),Ko(C.p,C.p,y,u*v))}for(var _=0;_<m;_++)for(var b=n[_],A=_+1;A<m;A++){var x=n[A];Qi(y,x.p,b.p);var w=hy(y);w===0&&(PV(y,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+x.rep)/w/w;!b.fixed&&Ko(b.pp,b.pp,y,M),!x.fixed&&Ko(x.pp,x.pp,y,-M)}for(var I=[],_=0;_<m;_++){var C=n[_];C.fixed||(Qi(I,C.p,C.pp),Ko(C.p,C.p,I,v),Ke(C.pp,C.p))}v=v*.992;var L=v<.01;d&&d(n,a,L),g&&g(L)}}}function rY(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?YR(t):l==="circular"&&X_(t,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=W(c)?c:[c,c],p=W(h)?h:[h,h];p=[p[1],p[0]];var d=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=Xt(_,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=a.getEdgeByIndex(S),x=Xt(_,f,p);isNaN(x)&&(x=(p[0]+p[1])/2);var w=b.getModel(),T=Nn(b.getModel().get(["lineStyle","curveness"]),-$_(b,t,S,!0),0);return{n1:d[b.node1.dataIndex],n2:d[b.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=eY(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&Ke(_[b].p,a.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||a.getNodeByIndex(x).setLayout(_[x].p),n[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var T=S[x],C=a.getEdgeByIndex(x),A=T.n1.p,M=T.n2.p,I=C.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Ke(I[0],A),Ke(I[1],M),+T.curveness&&(I[2]=[(A[0]+M[0])/2-(A[1]-M[1])*T.curveness,(A[1]+M[1])/2-(M[0]-A[0])*T.curveness]),C.setLayout(I)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function nY(r,t,e){var n=H(r.getBoxLayoutParams(),{aspect:e});return xe(n,{width:t.getWidth(),height:t.getHeight()})}function aY(r,t){var e=[];return r.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Pv(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=nY(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,p=f.height,d=n.coordinateSystem=new Af;d.zoomLimit=n.get("scaleLimit"),d.setBoundingRect(s[0],s[1],c,h),d.setViewRect(f.x,f.y,v,p),d.setCenter(n.get("center"),t),d.setZoom(n.get("zoom")),e.push(d)}}),e}var ZT=Te.prototype,rg=cf.prototype,ZR=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(ZR);function ng(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var iY=function(r){V(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 ZR},t.prototype.buildPath=function(e,n){ng(n)?ZT.buildPath.call(this,e,n):rg.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return ng(this.shape)?ZT.pointAt.call(this,e):rg.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,a=ng(n)?[n.x2-n.x1,n.y2-n.y1]:rg.tangentAt.call(this,e);return Ws(a,a)},t}(Pt),ag=["fromSymbol","toSymbol"];function qT(r){return"_"+r+"Type"}function KT(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=rl(a),u=Po(o||0,l);return n+l+u+(i||"")+(s||"")}function jT(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=rl(a),u=Po(o||0,l),f=ye(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function oY(r){var t=new iY({name:"line",subPixelOptimize:!0});return Am(t.shape,r),t}function Am(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 Z_=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createLine(e,n,a),i}return t.prototype._createLine=function(e,n,a){var i=e.hostModel,o=e.getItemLayout(n),s=oY(o);s.shape.percent=0,ie(s,{shape:{percent:1}},i,n),this.add(s),D(ag,function(l){var u=jT(l,e,n);this.add(u),this[qT(l)]=KT(l,e,n)},this),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),l={shape:{}};Am(l.shape,s),Ht(o,l,i,n),D(ag,function(u){var f=KT(u,e,n),c=qT(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=jT(u,e,n);this.add(h)}this[c]=f},this),this._updateCommonStl(e,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,a){var i=e.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,h=a&&a.focus,v=a&&a.blurScope;if(!a||e.hasItemOption){var p=e.getItemModel(n),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),h=d.get("focus"),v=d.get("blurScope"),f=De(p)}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,D(ag,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<ar.length;T++){var C=ar[T],A=o.getState(C);if(A){var M=A.style||{},I=w.ensureState(C),L=I.style||(I.style={});M.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(L.opacity=M.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(n);Ne(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,e.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?e.getName(n):isFinite(m)?he(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");W(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),ce(this,h,v,c)},t.prototype.highlight=function(){ha(this)},t.prototype.downplay=function(){va(this)},t.prototype.updateLayout=function(e,n){this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");Am(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),a=e.childOfName("toSymbol"),i=e.getTextContent();if(!n&&!a&&(!i||i.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=Qi([],c,f);Ws(h,h);function v(A,M){var I=A.__specifiedRotation;if(I==null){var L=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else A.attr("rotation",I)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,d="top";break;default:C=0,d="middle"}switch(i.__position){case"end":i.x=h[0]*y+c[0],i.y=h[1]*m+c[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+f[0],i.y=-h[1]*m+f[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,p="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+C,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},t}(mt),q_=function(){function r(t){this.group=new mt,this._LineCtor=t||Z_}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=QT(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.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=QT(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!sY(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=e.getItemLayout(a);if(ig(i)){var o=new this._LineCtor(e,a,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){vi(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var a=t.getItemLayout(e);if(ig(a)){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,n,a,i){var o=t.getItemGraphicEl(n);if(!ig(e.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(e,a,i):o=new this._LineCtor(e,a,i),e.setItemGraphicEl(a,o),this.group.add(o)},r}();function sY(r){return r.animators&&r.animators.length>0}function QT(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 JT(r){return isNaN(r[0])||isNaN(r[1])}function ig(r){return r&&!JT(r[0])&&!JT(r[1])}var og=[],sg=[],lg=[],jo=Ie,ug=lo,tC=Math.abs;function eC(r,t,e){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){og[0]=jo(n[0],a[0],i[0],f),og[1]=jo(n[1],a[1],i[1],f);var c=tC(ug(og,t)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;sg[0]=jo(n[0],a[0],i[0],s),sg[1]=jo(n[1],a[1],i[1],s),lg[0]=jo(n[0],a[0],i[0],v),lg[1]=jo(n[1],a[1],i[1],v);var c=ug(sg,t)-l;if(tC(c)<.01)break;var p=ug(lg,t)-l;u/=2,c<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function fg(r,t){var e=[],n=Iu,a=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[ia(u[0]),ia(u[1])],u[2]&&u.__original.push(ia(u[2])));var h=u.__original;if(u[2]!=null){if(Ke(a[0],h[0]),Ke(a[1],h[2]),Ke(a[2],h[1]),f&&f!=="none"){var v=Kl(s.node1),p=eC(a,h[0],v*t);n(a[0][0],a[1][0],a[2][0],p,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],p,e),a[0][1]=e[3],a[1][1]=e[4]}if(c&&c!=="none"){var v=Kl(s.node2),p=eC(a,h[1],v*t);n(a[0][0],a[1][0],a[2][0],p,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],p,e),a[1][1]=e[1],a[2][1]=e[2]}Ke(u[0],a[0]),Ke(u[1],a[2]),Ke(u[2],a[1])}else{if(Ke(i[0],h[0]),Ke(i[1],h[1]),Qi(o,i[1],i[0]),Ws(o,o),f&&f!=="none"){var v=Kl(s.node1);cy(i[0],i[0],o,v*t)}if(c&&c!=="none"){var v=Kl(s.node2);cy(i[1],i[1],o,-v*t)}Ke(u[0],i[0]),Ke(u[1],i[1])}})}function rC(r){return r.type==="view"}var lY=function(r){V(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 a=new Sf,i=new q_,o=this.group;this._controller=new Cf(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(rC(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Ht(u,f,e)}fg(e.getGraph(),ql(e));var c=e.getData();s.updateData(c);var h=e.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,n,a),clearTimeout(this._layoutTimeout);var v=e.forceLayout,p=e.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,p);var d=e.get("layout");c.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(C){switch(d){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,p),v.setFixed(S),c.setItemLayout(S,[b.x,b.y]);break;case"circular":c.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),X_(e,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(S,[b.x,b.y]),Y_(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(_t(b).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);S&&b==="adjacency"&&(_t(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(_){XR(_,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 a=this;(function i(){e.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,n,a){var i=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)&&!ep(u,a,e)}),!rC(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){B_(s,u.dx,u.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){V_(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),fg(e.getGraph(),ql(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=ql(e);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){fg(e.getGraph(),ql(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}(Kt);function Qo(r){return"_EC_"+r}var uY=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[Qo(t)]){var a=new Yi(t,e);return a.hostGraph=this,this.nodes.push(a),n[Qo(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Qo(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Gt(t)&&(t=this.nodes[t]),Gt(e)&&(e=this.nodes[e]),t instanceof Yi||(t=a[Qo(t)]),e instanceof Yi||(e=a[Qo(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new qR(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),i[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 Yi&&(t=t.id),e instanceof Yi&&(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,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof Yi||(e=this._nodesMap[Qo(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(a,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(s){var l=a[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,n=this.edges,a=0;a<e.length;a++)t.addNode(e[a].id,e[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r}(),Yi=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}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=ut(),e=ut(),n=0;n<this.edges.length;n++){var a=this.edges[n];if(!(a.dataIndex<0)){t.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),i.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}(),qR=function(){function r(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=n??-1}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=ut(),e=ut();t.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,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(i=0;i<a.length;){var l=a[i];i++,e.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},r}();function KR(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)}}}me(Yi,KR("hostGraph","data"));me(qR,KR("hostGraph","edgeData"));function jR(r,t,e,n,a){for(var i=new uY(n),o=0;o<r.length;o++)i.addNode(Le(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;i.addEdge(c,h,u)&&(l.push(f),s.push(Le(_e(f.id,null),c+" > "+h)),u++)}var v=e.get("coordinateSystem"),p;if(v==="cartesian2d"||v==="polar")p=xa(r,e);else{var d=df.get(v),g=d?d.dimensions||[]:[];It(g,"value")<0&&g.concat(["value"]);var y=yf(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;p=new er(y,e),p.initData(r)}var m=new er(["value"],e);return m.initData(l,s),a&&a(p,m),RR({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var fY=function(r){V(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 a(){return n._categoriesData}this.legendVisualProvider=new Tf(a,a),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),So(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&a){K$(this);var s=jR(i,a,this,!0,l);return D(s.edges,function(u){j$(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var c=Ut.prototype.getModel;function h(p,d){var g=c.call(this,p,d);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=v,p.getModel=h,p});function v(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},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,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(e,a),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Me("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=b2({series:this,dataIndex:e,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var e=X(this.option.categories||[],function(a){return a.value!=null?a:H({value:0},a)}),n=new er(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},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}(ae),cY={type:"graphRoam",event:"graphRoam",update:"none"};function hY(r){r.registerChartView(lY),r.registerSeriesModel(fY),r.registerProcessor($$),r.registerVisual(Y$),r.registerVisual(X$),r.registerLayout(Q$),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,tY),r.registerLayout(rY),r.registerCoordinateSystem("graphView",{dimensions:Af.dimensions,create:aY}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},pe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},pe),r.registerAction(cY,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=F_(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var vY=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),pY=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new vY},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+a(l)*s,n.y+i(l)*s),e.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),e.lineTo(n.x-a(l)*s,n.y-i(l)*s),e.lineTo(u,f)},t}(Pt);function dY(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=et(e[0],t.getWidth()),s=et(e[1],t.getHeight()),l=et(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Ac(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var gY=function(r){V(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,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=dY(e,a);this._renderMain(e,n,a,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,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?Wh:ir,p=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),y=[u,f];G0(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;p&&b<i.length;b++){var x=Math.min(Math.max(i[b][0],0),1);f=u+m*x;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:i[b][1]}),w.setStyle(d.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),D(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=C&&(A===0?0:i[A-1][0])<C)return i[A][1];return i[A-1][1]};this._renderTicks(e,n,a,T,o,u,f,l,g),this._renderTitleAndDetail(e,n,a,T,o),this._renderAnchor(e,o),this._renderPointer(e,n,a,T,o,u,f,l,g)},t.prototype._renderTicks=function(e,n,a,i,o,s,l,u,f){for(var c=this.group,h=o.cx,v=o.cy,p=o.r,d=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),b=m.get("splitNumber"),x=et(y.get("length"),p),w=et(m.get("length"),p),T=s,C=(l-s)/S,A=C/b,M=y.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),P,R,O=0;O<=S;O++){if(P=Math.cos(T),R=Math.sin(T),y.get("show")){var B=L?L+f:f,N=new Te({shape:{x1:P*(p-B)+h,y1:R*(p-B)+v,x2:P*(p-x-B)+h,y2:R*(p-x-B)+v},style:M,silent:!0});M.stroke==="auto"&&N.setStyle({stroke:i(O/S)}),c.add(N)}if(_.get("show")){var B=_.get("distance")+L,F=Ac(he(O/S*(g-d)+d),_.get("formatter")),U=i(O/S),Z=P*(p-x-B)+h,Q=R*(p-x-B)+v,ft=_.get("rotate"),ht=0;ft==="radial"?(ht=-T+2*Math.PI,ht>Math.PI/2&&(ht+=Math.PI)):ft==="tangential"?ht=-T-Math.PI/2:Gt(ft)&&(ht=ft*Math.PI/180),ht===0?c.add(new Ft({style:ne(_,{text:F,x:Z,y:Q,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:U}),silent:!0})):c.add(new Ft({style:ne(_,{text:F,x:Z,y:Q,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:Z,originY:Q,rotation:ht}))}if(m.get("show")&&O!==S){var B=m.get("distance");B=B?B+f:f;for(var Tt=0;Tt<=b;Tt++){P=Math.cos(T),R=Math.sin(T);var xt=new Te({shape:{x1:P*(p-B)+h,y1:R*(p-B)+v,x2:P*(p-w-B)+h,y2:R*(p-w-B)+v},silent:!0,style:I});I.stroke==="auto"&&xt.setStyle({stroke:i((O+Tt/b)/S)}),c.add(xt),T+=A}T-=A}else T+=C}},t.prototype._renderPointer=function(e,n,a,i,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,p=[],d=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),b=+e.get("max"),x=[S,b],w=[s,l];function T(A,M){var I=m.getItemModel(A),L=I.getModel("pointer"),P=et(L.get("width"),o.r),R=et(L.get("length"),o.r),O=e.get(["pointer","icon"]),B=L.get("offsetCenter"),N=et(B[0],o.r),F=et(B[1],o.r),U=L.get("keepAspect"),Z;return O?Z=ye(O,N-P/2,F-R,P,R,null,U):Z=new pY({shape:{angle:-Math.PI/2,width:P,r:R,x:N,y:F}}),Z.rotation=-(M+Math.PI/2),Z.x=o.cx,Z.y=o.cy,Z}function C(A,M){var I=g.get("roundCap"),L=I?Wh:ir,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),O=P?o.r-R:o.r-(A+1)*R,B=P?o.r:o.r-A*R,N=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:B}});return P&&(N.z2=b-m.get(_,A)%b),N}(y||d)&&(m.diff(h).add(function(A){var M=m.get(_,A);if(d){var I=T(A,s);ie(I,{rotation:-((isNaN(+M)?w[0]:Xt(M,x,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(A,I)}if(y){var L=C(A,s),P=g.get("clip");ie(L,{shape:{endAngle:Xt(M,x,w,P)}},e),c.add(L),By(e.seriesIndex,m.dataType,A,L),p[A]=L}}).update(function(A,M){var I=m.get(_,A);if(d){var L=h.getItemGraphicEl(M),P=L?L.rotation:s,R=T(A,P);R.rotation=P,Ht(R,{rotation:-((isNaN(+I)?w[0]:Xt(I,x,w,!0))+Math.PI/2)},e),c.add(R),m.setItemGraphicEl(A,R)}if(y){var O=v[M],B=O?O.shape.endAngle:s,N=C(A,B),F=g.get("clip");Ht(N,{shape:{endAngle:Xt(I,x,w,F)}},e),c.add(N),By(e.seriesIndex,m.dataType,A,N),p[A]=N}}).execute(),m.each(function(A){var M=m.getItemModel(A),I=M.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),R=I.get("disabled");if(d){var O=m.getItemGraphicEl(A),B=m.getItemVisual(A,"style"),N=B.fill;if(O instanceof Pe){var F=O.style;O.useStyle(H({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},B))}else O.useStyle(B),O.type!=="pointer"&&O.setColor(N);O.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",i(Xt(m.get(_,A),x,[0,1],!0))),O.z2EmphasisLift=0,Oe(O,M),ce(O,L,P,R)}if(y){var U=p[A];U.useStyle(m.getItemVisual(A,"style")),U.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Oe(U,M),ce(U,L,P,R)}}),this._progressEls=p)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=ye(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=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),h=new mt,v=[],p=[],d=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Ft({silent:!0}),p[y]=new Ft({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new mt,b=i(Xt(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+et(w[0],o.r),C=o.cy+et(w[1],o.r),A=v[y];A.attr({z2:g?0:2,style:ne(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(A)}var M=m.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),L=o.cx+et(I[0],o.r),P=o.cy+et(I[1],o.r),R=et(M.get("width"),o.r),O=et(M.get("height"),o.r),B=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,A=p[y],N=M.get("formatter");A.attr({z2:g?0:2,style:ne(M,{x:L,y:P,text:Ac(_,N),width:isNaN(R)?null:R,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:B})}),AL(A,{normal:M},_,function(U){return Ac(U,N)}),d&&DL(A,y,l,e,{getFormattedLabel:function(U,Z,Q,ft,ht,Tt){return Ac(Tt?Tt.interpolatedValue:_,N)}}),S.add(A)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=p},t.type="gauge",t}(Kt),yY=function(r){V(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 al(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}(ae);function mY(r){r.registerChartView(gY),r.registerSeriesModel(yY)}var _Y=["itemStyle","opacity"],SY=function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=a,o=new sr,s=new Ft;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(_Y);f=f??1,a||hn(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,ie(i,{style:{opacity:f}},o,n)):Ht(i,{style:{opacity:f},shape:{points:l.points}},o,n),Oe(i,s),this._updateLabel(e,n),ce(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=e.hostModel,l=e.getItemModel(n),u=e.getItemLayout(n),f=u.label,c=e.getItemVisual(n,"style"),h=c.fill;Ne(o,De(l),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:e.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:h,outsideFill:h});var v=f.linePoints;i.setShape({points:v}),a.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}),A_(a,D_(l),{stroke:h})},t}(or),xY=function(r){V(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,a){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new SY(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Nu(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Kt),bY=function(r){V(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 Tf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return al(this,{coordDimensions:["value"],encodeDefaulter:bt(a_,this)})},t.prototype._defaultLabelLine=function(e){So(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,a.$vars.push("percent"),a},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}(ae);function wY(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function TY(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(l){return l}),a=[],i=t==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return vt(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function CY(r){var t=r.hostModel,e=t.get("orient");r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,v,p;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"),p=[[h,v],[h,v]];else{var d=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-_,h=y-5,c="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+_,h=y+5,c="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,v=m-5,c="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,v=m+5,c="center"):o==="rightTop"?(d=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=d+_,h=y+5,c="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],e==="horizontal"?(m=g+_,v=m+5,c="center"):(y=d+_,h=y+5,c="bottom")):o==="leftTop"?(d=u[0][0],g=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(m=g-_,v=m-5,c="center"):(y=d-_,h=y-5,c="right")):o==="leftBottom"?(d=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=d-_,h=y-5,c="right")):(d=(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=d+_,h=y+5,c="left")),e==="horizontal"?(y=d,h=y):(m=g,v=m),p=[[d,g],[y,m]]}l.label={linePoints:p,x:h,y:v,verticalAlign:"middle",textAlign:c,inside:f}})}function AY(r,t){r.eachSeriesByType("funnel",function(e){var n=e.getData(),a=n.mapDimension("value"),i=e.get("sort"),o=wY(e,t),s=e.get("orient"),l=o.width,u=o.height,f=TY(n,i),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)],p=n.getDataExtent(a),d=e.get("min"),g=e.get("max");d==null&&(d=Math.min(p[0],0)),g==null&&(g=p[1]);var y=e.get("funnelAlign"),m=e.get("gap"),_=s==="horizontal"?l:u,S=(_-m*(n.count()-1))/n.count(),b=function(P,R){if(s==="horizontal"){var O=n.get(a,P)||0,B=Xt(O,[d,g],v,!0),N=void 0;switch(y){case"top":N=h;break;case"center":N=h+(u-B)/2;break;case"bottom":N=h+(u-B);break}return[[R,N],[R,N+B]]}var F=n.get(a,P)||0,U=Xt(F,[d,g],v,!0),Z;switch(y){case"left":Z=c;break;case"center":Z=c+(l-U)/2;break;case"right":Z=c+l-U;break}return[[Z,R],[Z+U,R]]};i==="ascending"&&(S=-S,m=-m,s==="horizontal"?c+=l:h+=u,f=f.reverse());for(var x=0;x<f.length;x++){var w=f[x],T=f[x+1],C=n.getItemModel(w);if(s==="horizontal"){var A=C.get(["itemStyle","width"]);A==null?A=S:(A=et(A,l),i==="ascending"&&(A=-A));var M=b(w,c),I=b(T,c+A);c+=A+m,n.setItemLayout(w,{points:M.concat(I.slice().reverse())})}else{var L=C.get(["itemStyle","height"]);L==null?L=S:(L=et(L,u),i==="ascending"&&(L=-L));var M=b(w,h),I=b(T,h+L);h+=L+m,n.setItemLayout(w,{points:M.concat(I.slice().reverse())})}}CY(n)})}function DY(r){r.registerChartView(xY),r.registerSeriesModel(bY),r.registerLayout(AY),r.registerProcessor(wf("funnel"))}var MY=.3,IY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new mt,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.dimensions,c=aC(e);s.diff(l).add(h).update(v).remove(p).execute();function h(g){var y=nC(s,o,g,f,u);cg(y,s,g,c)}function v(g,y){var m=l.getItemGraphicEl(y),_=QR(s,g,f,u);s.setItemGraphicEl(g,m),Ht(m,{shape:{points:_}},e,g),hn(m),cg(m,s,g,c)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=LY(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},t.prototype.incrementalPrepareRender=function(e,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=aC(n),u=this._progressiveEls=[],f=e.start;f<e.end;f++){var c=nC(i,this._dataGroup,f,s,o);c.incremental=!0,cg(c,i,f,l),u.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Kt);function LY(r,t,e){var n=r.model,a=r.getRect(),i=new Vt({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),ie(i,{shape:{width:a.width,height:a.height}},t,e),i}function QR(r,t,e,n){for(var a=[],i=0;i<e.length;i++){var o=e[i],s=r.get(r.mapDimension(o),t);PY(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function nC(r,t,e,n,a){var i=QR(r,e,n,a),o=new sr({shape:{points:i},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function aC(r){var t=r.get("smooth",!0);return t===!0&&(t=MY),t=ca(t),Mu(t)&&(t=0),{smooth:t}}function cg(r,t,e,n){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=t.getItemModel(e),i=a.getModel("emphasis");Oe(r,a,"lineStyle"),ce(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function PY(r,t){return t==="category"?r==null:r==null||isNaN(r)}var RY=function(r){V(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 xa(null,this,{useEncodeDefaulter:it(EY,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){e===o&&i.push(a.getRawIndex(s))}),i},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}(ae);function EY(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return D(t.dimensions,function(n){var a=kY(n);e[n]=a}),e}}function kY(r){return+r.replace("dim","")}var OY=["lineStyle","opacity"],NY={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(a,i){e.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(OY,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};function BY(r){VY(r),zY(r)}function VY(r){if(!r.parallel){var t=!1;D(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function zY(r){var t=qt(r.parallelAxis);D(t,function(e){if(gt(e)){var n=e.parallelIndex||0,a=qt(r.parallel)[n];a&&a.parallelAxisDefault&&Dt(e,a.parallelAxisDefault,!1)}})}var FY=5,GY=function(r){V(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,a){this._model=e,this._api=a,this._handlers||(this._handlers={},D(HY,function(i,o){a.getZr().on(o,this._handlers[o]=it(i,this))},this)),el(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,n){Fu(this,"_throttledDispatchExpand"),D(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(H({type:"parallelAxisExpand"},e))},t.type="parallel",t}(ue),HY={mousedown:function(r){hg(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(hg(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>FY)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!hg(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 hg(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var WY=function(r){V(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&&Dt(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){D(["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=[],a=Zt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(a,function(i){e.push("dim"+i.get("dim")),n.push(i.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}(kt),UY=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(pn);function Oo(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=Jo(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Jo(s,[0,o]),a=i=Jo(s,[a,i]),n=0}t[0]=Jo(t[0],e),t[1]=Jo(t[1],e);var l=vg(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=Jo(t[n],f);var c;return c=vg(t,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(t[1-n]=t[n]+l.sign*a),c=vg(t,n),i!=null&&c.span>i&&(t[1-n]=t[n]+c.sign*i),t}function vg(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 Jo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var pg=D,JR=Math.min,tE=Math.max,iC=Math.floor,$Y=Math.ceil,oC=he,YY=Math.PI,XY=function(){function r(t,e,n){this.type="parallel",this._axesMap=ut(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=t.dimensions,i=t.parallelAxisIndex;pg(a,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new UY(o,Jv(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,a=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+e.axisLength&&s>=a&&s<=a+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 a=n.getData();pg(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Os(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=xe(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"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[a[o]],l=[0,s],u=this.dimensions.length,f=Dc(t.get("axisExpandWidth"),l),c=Dc(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=t.get("axisExpandWindow"),p;if(v)p=Dc(v[1]-v[0],l),v[1]=v[0]+p;else{p=Dc(f*(c-1),l);var d=t.get("axisExpandCenter")||iC(u/2);v=[f*d-p/2],v[1]=v[0]+p}var g=(s-p)/(u-c);g<3&&(g=0);var y=[iC(oC(v[0]/f,1))+1,$Y(oC(v[1]/f,1))-1],m=g/f*v[0];return{layout:i,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[a[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,a=this._makeLayoutInfo(),i=a.layout;e.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),pg(n,function(o,s){var l=(a.axisExpandable?qY:ZY)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:YY/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],h=f[i],v=Ar();Io(v,v,h),Fn(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,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=t.getValues(s,f),v=0,p=o.length;v<p;v++){var d=l[v].getActiveState(h[v]);if(d==="inactive"){c="inactive";break}}}e(c,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)e.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return un([t,0],n.transform)},r.prototype.getAxisLayout=function(t){return yt(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,a=e.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};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<i*c[0]?(u="jump",l=s-i*c[2]):h&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Oo(l,a,o,"all"):u="none";else{var v=a[1]-a[0],p=o[1]*s/v;a=[tE(0,p-v/2)],a[1]=JR(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function Dc(r,t){return JR(tE(r,t[0]),t[1])}function ZY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function qY(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*n-t.axisExpandWindow[0],l=n,u=!0):(s=e-(a-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function KY(r,t){var e=[];return r.eachComponent("parallel",function(n,a){var i=new XY(n,r,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",ge).models[0];n.coordinateSystem=a.coordinateSystem}}),e}var jY={create:KY},Dm=function(r){V(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 bo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var n=this.activeIntervals=yt(e);if(n)for(var a=n.length-1;a>=0;a--)Hr(n[a])},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 a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=e&&e<=n[i][1])return"active";return"inactive"},t}(kt);me(Dm,mf);var Co=!0,Qu=Math.min,Vs=Math.max,QY=Math.pow,JY=1e4,t7=6,e7=6,sC="globalPan",r7={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},n7={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},lC={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},a7=0,K_=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new mt,n._uid="brushController_"+a7++,D(c7,function(a,i){this._handlers[i]=it(a,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||ZU(n,sC,this._uid),D(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=Dt(yt(lC),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;qU(e,sC,this._uid),D(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};D(e,function(a){n[a.panelId]=yt(a)})}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=X(e,function(h){return Dt(yt(lC),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new pa(a,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 p=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var d=i[h]=v!=null?(a[v].__brushOption=p,a[v]):rE(o,eE(o,p));j_(o,d)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Mm(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Xr);function eE(r,t){var e=ip[t.brushType].createCover(r,t);return e.__brushOption=t,aE(e,t),r.group.add(e),e}function rE(r,t){var e=Q_(t);return e.endCreating&&(e.endCreating(r,t),aE(t,t.__brushOption)),t}function nE(r,t){var e=t.__brushOption;Q_(t).updateCoverShape(r,t,e.range,e)}function aE(r,t){var e=t.z;e==null&&(e=JY),r.traverse(function(n){n.z=e,n.z2=e})}function j_(r,t){Q_(t).updateCommon(r,t),nE(r,t)}function Q_(r){return ip[r.__brushOption.brushType]}function J_(r,t,e){var n=r._panels;if(!n)return Co;var a,i=r._transform;return D(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function iE(r,t){var e=r._panels;if(!e)return Co;var n=t.__brushOption.panelId;return n!=null?e[n]:Co}function Mm(r){var t=r._covers,e=t.length;return D(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function Ao(r,t){var e=X(r._covers,function(n){var a=n.__brushOption,i=yt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function i7(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=QY(a*a+i*i,.5);return o>t7}function oE(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function sE(r,t,e,n){var a=new mt;return a.add(new Vt({name:"main",style:t1(e),silent:!0,draggable:!0,cursor:"move",drift:bt(uC,r,t,a,["n","s","w","e"]),ondragend:bt(Ao,t,{isEnd:!0})})),D(n,function(i){a.add(new Vt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:bt(uC,r,t,a,i),ondragend:bt(Ao,t,{isEnd:!0})}))}),a}function lE(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Vs(a,e7),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],h=f-i+a/2,v=c-i+a/2,p=f-o,d=c-s,g=p+a,y=d+a;jn(r,t,"main",o,s,p,d),n.transformable&&(jn(r,t,"w",l,u,i,y),jn(r,t,"e",h,u,i,y),jn(r,t,"n",l,u,g,i),jn(r,t,"s",l,v,g,i),jn(r,t,"nw",l,u,i,i),jn(r,t,"ne",h,u,i,i),jn(r,t,"sw",l,v,i,i),jn(r,t,"se",h,v,i,i))}function Im(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(t1(e)),a.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Lm(r,i[0]):s7(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?n7[s]+"-resize":null})})}function jn(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(u7(e1(r,t,[[n,a],[n+i,a+o]])))}function t1(r){return dt({strokeNoScale:!0},r.brushStyle)}function uE(r,t,e,n){var a=[Qu(r,e),Qu(t,n)],i=[Vs(r,e),Vs(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function o7(r){return vo(r.group)}function Lm(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Bv(e[t],o7(r));return n[a]}function s7(r,t){var e=[Lm(r,t[0]),Lm(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function uC(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=fE(t,a,i);D(n,function(u){var f=r7[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(uE(s[0][0],s[1][0],s[0][1],s[1][1])),j_(t,e),Ao(t,{isEnd:!1})}function l7(r,t,e,n){var a=t.__brushOption.range,i=fE(r,e,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),j_(r,t),Ao(r,{isEnd:!1})}function fE(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function e1(r,t,e){var n=iE(r,t);return n&&n!==Co?n.clipPath(e,r._transform):yt(e)}function u7(r){var t=Qu(r[0][0],r[1][0]),e=Qu(r[0][1],r[1][1]),n=Vs(r[0][0],r[1][0]),a=Vs(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function f7(r,t,e){if(!(!r._brushType||h7(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=J_(r,t,e);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Co||s.panelId===i.panelId)&&ip[s.brushType].contain(a[o],e[0],e[1]))return}i&&n.setCursorStyle("crosshair")}}function Pm(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Rm(r,t,e){return r.childOfName("main").contain(t,e)}function cE(r,t,e,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),i7(r)||a){if(i&&!a){o.brushMode==="single"&&Mm(r);var l=yt(o);l.brushType=fC(l.brushType,i),l.panelId=i===Co?null:i.panelId,a=r._creatingCover=eE(r,l),r._covers.push(a)}if(a){var u=ip[fC(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(e1(r,a,r._track)),n&&(rE(r,a),u.updateCommon(r,a)),nE(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&J_(r,t,e)&&Mm(r)&&(s={isEnd:n,removeOnClick:!0});return s}function fC(r,t){return r==="auto"?t.defaultBrushType:r}var c7={mousedown:function(r){if(this._dragging)cC(this,r);else if(!r.target||!r.target.draggable){Pm(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=J_(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(f7(this,r,n),this._dragging){Pm(r);var a=cE(this,r,n,!1);a&&Ao(this,a)}},mouseup:function(r){cC(this,r)}};function cC(r,t){if(r._dragging){Pm(t);var e=t.offsetX,n=t.offsetY,a=r.group.transformCoordToLocal(e,n),i=cE(r,t,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Ao(r,i)}}function h7(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var ip={lineX:hC(0),lineY:hC(1),rect:{createCover:function(r,t){function e(n){return n}return sE({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=oE(r);return uE(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){lE(r,t,e,n)},updateCommon:Im,contain:Rm},polygon:{createCover:function(r,t){var e=new mt;return e.add(new sr({name:"main",style:t1(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new or({name:"main",draggable:!0,drift:bt(l7,r,t),ondragend:bt(Ao,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:e1(r,t,e)})},updateCommon:Im,contain:Rm}};function hC(r){return{createCover:function(t,e){return sE({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=oE(t),n=Qu(e[0][r],e[1][r]),a=Vs(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=iE(t,e);if(o!==Co&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),lE(t,e,l,a)},updateCommon:Im,contain:Rm}}function hE(r){return r=r1(r),function(t){return wL(t,r)}}function vE(r,t){return r=r1(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function pE(r,t,e){var n=r1(r);return function(a,i){return n.contain(i[0],i[1])&&!ep(a,t,e)}}function r1(r){return Mt.create(r)}var v7=["axisLine","axisTickLabel","axisName"],p7=function(r){V(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 K_(n.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!d7(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new mt,this.group.add(this._axisGroup),!!e.get("show")){var s=y7(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,h=l.getAxisLayout(c),v=H({strokeContainThreshold:f},h),p=new rr(e,v);D(v7,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(v,u,e,s,f,a),vf(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,o,s){var l=a.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:hE(c),isTargetByCursor:pE(c,s,i),getLinearBrushOtherExtent:vE(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(g7(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,o=X(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(ue);function d7(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function g7(r){var t=r.axis;return X(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function y7(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var m7={type:"axisAreaSelect",event:"axisAreaSelected"};function _7(r){r.registerAction(m7,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 S7={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function dE(r){r.registerComponentView(GY),r.registerComponentModel(WY),r.registerCoordinateSystem("parallel",jY),r.registerPreprocessor(BY),r.registerComponentModel(Dm),r.registerComponentView(p7),Bs(r,"parallel",Dm,S7),_7(r)}function x7(r){Lt(dE),r.registerChartView(IY),r.registerSeriesModel(RY),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,NY)}var b7=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}(),w7=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new b7},t.prototype.buildPath=function(e,n){var a=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+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){ha(this)},t.prototype.downplay=function(){va(this)},t}(Pt),T7=function(r){V(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,a){var i=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(p){var d=new w7,g=_t(d);g.dataIndex=p.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),A=C.get("localX"),M=C.get("localY"),I=p.getLayout(),L,P,R,O,B,N,F,U;d.shape.extent=Math.max(1,I.dy),d.shape.orient=v,v==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,R=(A!=null?A*u:T.x)+I.ty,O=M!=null?M*f:T.y,B=L,N=P*(1-_)+O*_,F=R,U=P*_+O*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,R=A!=null?A*u:T.x,O=(M!=null?M*f:T.y)+I.ty,B=L*(1-_)+R*_,N=P,F=L*_+R*(1-_),U=O),d.setShape({x1:L,y1:P,x2:R,y2:O,cpx1:B,cpy1:N,cpx2:F,cpy2:U}),d.useStyle(m.getItemStyle()),vC(d.style,v,p);var Z=""+y.get("value"),Q=De(y,"edgeLabel");Ne(d,Q,{labelFetcher:{getFormattedLabel:function(Tt,xt,G,$,K,j){return e.getFormattedLabel(Tt,xt,"edge",$,Nn(K,Q.normal&&Q.normal.get("formatter"),Z),j)}},labelDataIndex:p.dataIndex,defaultText:Z}),d.setTextConfig({position:"inside"});var ft=y.getModel("emphasis");Oe(d,y,"lineStyle",function(Tt){var xt=Tt.getItemStyle();return vC(xt,v,p),xt}),s.add(d),h.setItemGraphicEl(p.dataIndex,d);var ht=ft.get("focus");ce(d,ht==="adjacency"?p.getAdjacentDataIndices():ht==="trajectory"?p.getTrajectoryDataIndices():ht,ft.get("blurScope"),ft.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new Vt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*f:d.y,width:d.dx,height:d.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Ne(b,De(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),b.disableLabelAnimation=!0,b.setStyle("fill",p.getVisual("color")),b.setStyle("decal",p.getVisual("style").decal),Oe(b,g),s.add(b),c.setItemGraphicEl(p.dataIndex,b),_t(b).dataType="node";var x=_.get("focus");ce(b,x==="adjacency"?p.getAdjacentDataIndices():x==="trajectory"?p.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(p,d){var g=c.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(C7(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Kt);function vC(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"),a=e.node2.getVisual("color");nt(n)&&nt(a)&&(r.fill=new hf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function C7(r,t,e){var n=new Vt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ie(n,{shape:{width:r.width+20}},t,e),n}var A7=function(r){V(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 a=e.edges||e.links,i=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 Ut(o[l],this,n));if(i&&a){var u=jR(i,a,this,!0,f);return u.data}function f(c,h){c.wrapMethod("getItemModel",function(v,p){var d=v.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,p){var d=v.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];i.localX=n[0],i.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,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(e,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Me("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,h=this.getDataParams(e,a).data.name;return Me("nameValue",{name:h!=null?h+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;a.value=o}return a},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}(ae);function D7(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=M7(e,t);e.layoutInfo=i;var o=i.width,s=i.height,l=e.getGraph(),u=l.nodes,f=l.edges;L7(u);var c=Zt(u,function(d){return d.getLayout().value===0}),h=c.length!==0?0:e.get("layoutIterations"),v=e.get("orient"),p=e.get("nodeAlign");I7(u,f,n,a,o,s,h,v,p)})}function M7(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function I7(r,t,e,n,a,i,o,s,l){P7(r,t,e,a,i,s,l),O7(r,t,i,a,n,o,s),U7(r,s)}function L7(r){D(r,function(t){var e=ti(t.outEdges,qh),n=ti(t.inEdges,qh),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function P7(r,t,e,n,a,i,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 p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>v&&(v=g.depth),d.setLayout({depth:y?g.depth:c},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var m=0;m<d.outEdges.length;m++){var _=d.outEdges[m],S=t.indexOf(_);s[S]=0;var b=_.node2,x=r.indexOf(b);--l[x]===0&&f.indexOf(b)<0&&f.push(b)}}++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"&&R7(r,o,i,w);var T=i==="vertical"?(a-e)/w:(n-e)/w;k7(r,T,i)}function gE(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function R7(r,t,e,n){if(t==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];a.indexOf(f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}D(r,function(c){gE(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else t==="justify"&&E7(r,n)}function E7(r,t){D(r,function(e){!gE(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function k7(r,t,e){D(r,function(n){var a=n.getLayout().depth*t;e==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function O7(r,t,e,n,a,i,o){var s=N7(r,o);B7(s,t,e,n,a,o),dg(s,a,e,n,o);for(var l=1;i>0;i--)l*=.99,V7(s,l,o),dg(s,a,e,n,o),W7(s,l,o),dg(s,a,e,n,o)}function N7(r,t){var e=[],n=t==="vertical"?"y":"x",a=Ey(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),D(a.keys,function(i){e.push(a.buckets.get(i))}),e}function B7(r,t,e,n,a,i){var o=1/0;D(r,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(e-(l-1)*a)/u;f<o&&(o=f)}),D(r,function(s){D(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),D(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function dg(r,t,e,n,a){var i=a==="vertical"?"x":"y";D(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,c=o.length,h=a==="vertical"?"dx":"dy",v=0;v<c;v++)l=o[v],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[h]+t;var p=a==="vertical"?n:e;if(u=f-t-p,u>0){s=l.getLayout()[i]-u,a==="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()[i]+l.getLayout()[h]+t-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function V7(r,t,e){D(r.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=ti(a.outEdges,z7,e)/ti(a.outEdges,qh);if(isNaN(i)){var o=a.outEdges.length;i=o?ti(a.outEdges,F7,e)/o:0}if(e==="vertical"){var s=a.getLayout().x+(i-li(a,e))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-li(a,e))*t;a.setLayout({y:l},!0)}}})})}function z7(r,t){return li(r.node2,t)*r.getValue()}function F7(r,t){return li(r.node2,t)}function G7(r,t){return li(r.node1,t)*r.getValue()}function H7(r,t){return li(r.node1,t)}function li(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function qh(r){return r.getValue()}function ti(r,t,e){for(var n=0,a=r.length,i=-1;++i<a;){var o=+t(r[i],e);isNaN(o)||(n+=o)}return n}function W7(r,t,e){D(r,function(n){D(n,function(a){if(a.inEdges.length){var i=ti(a.inEdges,G7,e)/ti(a.inEdges,qh);if(isNaN(i)){var o=a.inEdges.length;i=o?ti(a.inEdges,H7,e)/o:0}if(e==="vertical"){var s=a.getLayout().x+(i-li(a,e))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-li(a,e))*t;a.setLayout({y:l},!0)}}})})}function U7(r,t){var e=t==="vertical"?"x":"y";D(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[e]-i.node2.getLayout()[e]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[e]-i.node1.getLayout()[e]})}),D(r,function(n){var a=0,i=0;D(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function $7(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes,a=e.edges;if(n.length){var i=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),D(n,function(s){var l=new Ae({type:"color",mappingMethod:"linear",dataExtent:[i,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}))})}a.length&&D(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Y7(r){r.registerChartView(T7),r.registerSeriesModel(A7),r.registerLayout(D7),r.registerVisual($7),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 yE=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):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=[a,i],p=v[f].get("type"),d=v[1-f].get("type"),g=t.data;if(g&&l){var y=[];D(g,function(S,b){var x;W(S)?(x=S.slice(),S.unshift(b)):W(S.value)?(x=H({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:Vh(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Vh(d),dimsDef:m.slice()}];return al(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:bt(qL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),mE=function(r){V(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}(ae);me(mE,yE,!0);var X7=function(r){V(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,a){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),c=pC(f,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(c);return}var h=i.getItemLayout(u);c?(hn(c),_E(h,c,i,u)):c=pC(h,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(Kt),Z7=function(){function r(){}return r}(),q7=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Z7},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();i<a.length;i++)e.moveTo(a[i][0],a[i][1]),i++,e.lineTo(a[i][0],a[i][1])},t}(Pt);function pC(r,t,e,n,a){var i=r.ends,o=new q7({shape:{points:a?K7(i,n,r):i}});return _E(r,o,t,e,a),o}function _E(r,t,e,n,a){var i=e.hostModel,o=Lo[a?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},i,n),t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(n),l=s.getModel("emphasis");Oe(t,s),ce(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function K7(r,t,e){return X(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}var mu=D;function j7(r){var t=Q7(r);mu(t,function(e){var n=e.seriesModels;n.length&&(J7(e),mu(n,function(a,i){t9(a,e.boxOffsetList[i],e.boxWidthList[i])}))})}function Q7(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=It(e,a);i<0&&(i=e.length,e[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(n)}),t}function J7(r){var t=r.axis,e=r.seriesModels,n=e.length,a=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;mu(e,function(p){l=Math.max(l,p.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}mu(e,function(p){var d=p.get("boxWidth");W(d)||(d=[d,d]),o.push([et(d[0],s)||0,et(d[1],s)||0])});var f=s*.8-2,c=f/n*.3,h=(f-c*(n-1))/n,v=h/2-f/2;mu(e,function(p,d){i.push(v),v+=c+h,a.push(Math.min(Math.max(h,o[d][0]),o[d][1]))})}function t9(r,t,e){var n=r.coordinateSystem,a=r.getData(),i=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<a.count();c++){var h=a.get(u,c),v=_(h,f[2],c),p=_(h,f[0],c),d=_(h,f[1],c),g=_(h,f[3],c),y=_(h,f[4],c),m=[];S(m,d,!1),S(m,g,!0),m.push(p,d,y,g),b(m,p),b(m,y),b(m,v),a.setItemLayout(c,{initBaseline:v[s],ends:m})}function _(x,w,T){var C=a.get(w,T),A=[];A[o]=x,A[s]=C;var M;return isNaN(x)||isNaN(C)?M=[NaN,NaN]:(M=n.dataToPoint(A),M[o]+=t),M}function S(x,w,T){var C=w.slice(),A=w.slice();C[o]+=i,A[o]-=i,T?x.push(C,A):x.push(A,C)}function b(x,w){var T=w.slice(),C=w.slice();T[o]-=i,C[o]+=i,x.push(T,C)}}function e9(r,t){t=t||{};for(var e=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=Hr(r[o].slice()),l=Up(s,.25),u=Up(s,.5),f=Up(s,.75),c=s[0],h=s[s.length-1],v=(a??1.5)*(f-l),p=i?c:Math.max(c,l-v),d=i?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,p,l,u,f,d]);for(var m=0;m<s.length;m++){var _=s[m];if(_<p||_>d){var S=[y,_];n.push(S)}}}return{boxData:e,outliers:n}}var r9={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Ye){var n="";Wt(n)}var a=e9(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function n9(r){r.registerSeriesModel(mE),r.registerChartView(X7),r.registerLayout(j7),r.registerTransform(r9)}var a9=["color","borderColor"],i9=function(r){V(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,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){vi(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(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&dC(u,c))return;var h=gg(c,f,!0);ie(h,{shape:{points:c.ends}},e,f),yg(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&dC(u,v)){i.remove(h);return}h?(Ht(h,{shape:{points:v.ends}},e,f),hn(h)):h=gg(v),yg(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),gC(e,this.group);var n=e.get("clip",!0)?xf(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=gg(s);yg(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){gC(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}(Kt),o9=function(){function r(){}return r}(),s9=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new o9},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Pt);function gg(r,t,e){var n=r.ends;return new s9({shape:{points:e?l9(n,r):n},z2:100})}function dC(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 yg(r,t,e,n){var a=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,Oe(r,a)}function l9(r,t){return X(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var u9=function(){function r(){}return r}(),mg=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new u9},t.prototype.buildPath=function(e,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];e.moveTo(o,a[i++]),e.lineTo(o,a[i++])}else i+=3},t}(Pt);function gC(r,t,e,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new mg({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new mg({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new mg({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),_g(1,o,r),_g(-1,s,r),_g(0,l,r),n&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function _g(r,t,e,n){var a=e.get(["itemStyle",r>0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(a9);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var SE=function(r){V(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,a){var i=n.getItemLayout(e);return i&&a.rect(i.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:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ae);me(SE,yE,!0);function f9(r){!r||!W(r.series)||D(r.series,function(t){gt(t)&&t.type==="k"&&(t.type="candlestick")})}var c9=["itemStyle","borderColor"],h9=["itemStyle","borderColor0"],v9=["itemStyle","borderColorDoji"],p9=["itemStyle","color"],d9=["itemStyle","color0"],g9={seriesType:"candlestick",plan:tl(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?p9:d9)}function n(i,o){return o.get(i===0?v9:i>0?c9:h9)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=e(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");H(c,f)}}}}}},y9={seriesType:"candlestick",plan:tl(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=m9(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=X(e.mapDimensionsAll(o[i]),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?p:v};function v(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(c,y),w=m.get(h,y),T=Math.min(S,b),C=Math.max(S,b),A=B(T,_),M=B(C,_),I=B(x,_),L=B(w,_),P=[];N(P,M,0),N(P,A,1),P.push(U(L),U(M),U(I),U(A));var R=g.getItemModel(y),O=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:yC(m,y,S,b,f,O),initBaseline:S>b?M[i]:A[i],ends:P,brushRect:F(x,w,_)})}function B(Z,Q){var ft=[];return ft[a]=Q,ft[i]=Z,isNaN(Q)||isNaN(Z)?[NaN,NaN]:t.dataToPoint(ft)}function N(Z,Q,ft){var ht=Q.slice(),Tt=Q.slice();ht[a]=jc(ht[a]+n/2,1,!1),Tt[a]=jc(Tt[a]-n/2,1,!0),ft?Z.push(ht,Tt):Z.push(Tt,ht)}function F(Z,Q,ft){var ht=B(Z,ft),Tt=B(Q,ft);return ht[a]-=n/2,Tt[a]-=n/2,{x:ht[0],y:ht[1],width:n,height:Tt[1]-ht[1]}}function U(Z){return Z[a]=jc(Z[a],1),Z}}function p(d,g){for(var y=Rn(d.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=d.next())!=null;){var C=w.get(s,x),A=w.get(u,x),M=w.get(f,x),I=w.get(c,x),L=w.get(h,x);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=yC(w,x,A,M,f,T),S[a]=C,S[i]=I,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function yC(r,t,e,n,a,i){var o;return e>n?o=-1:e<n?o=1:o=i?0:t>0?r.get(a,t-1)<=n?1:-1:1,o}function m9(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=et(St(r.get("barMaxWidth"),a),a),o=et(St(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?et(s,a):Math.max(Math.min(a/2,i),o)}function _9(r){r.registerChartView(i9),r.registerSeriesModel(SE),r.registerPreprocessor(f9),r.registerVisual(g9),r.registerLayout(y9)}function mC(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 S9=function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=new _f(e,n),o=new mt;return a.add(i),a.add(o),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=ye(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*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)}mC(o,e)},t.prototype.updateEffectAnimation=function(e){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}mC(a,e)},t.prototype.highlight=function(){ha(this)},t.prototype.downplay=function(){va(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,n){var a=this,i=e.hostModel;this.childAt(0).updateData(e,n);var o=this.childAt(1),s=e.getItemModel(n),l=e.getItemVisual(n,"symbol"),u=rl(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=Po(e.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var p=e.getItemVisual(n,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=n/e.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=l,d.color=c,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?d.showEffectOn!=="render"&&a.startEffectAnimation(d):g==="normal"&&d.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=d,ce(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(mt),x9=function(r){V(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 Sf(S9)},t.prototype.render=function(e,n,a){var i=e.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,a=n&&n.getArea&&n.getArea();return e.get("clip",!0)?a:null},t.prototype.updateTransform=function(e,n,a){var i=e.getData();this.group.dirty();var o=bf("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var n=e.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=XV(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Kt),b9=function(r){V(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 xa(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,n,a){return a.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}(ae);function w9(r){r.registerChartView(x9),r.registerSeriesModel(b9),r.registerLayout(bf("effectScatter"))}var xE=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;return i.add(i.createLine(e,n,a)),i._updateEffectSymbol(e,n),i}return t.prototype.createLine=function(e,n,a){return new Z_(e,n,a)},t.prototype._updateEffectSymbol=function(e,n){var a=e.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");W(o)||(o=[o,o]);var l=e.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=ye(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,n))},t.prototype._updateEffectAnimation=function(e,n,a){var i=this.childAt(1);if(i){var o=e.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=Le(n.get("delay"),function(v){return v/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;vt(c)?h=c(a):h=c,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,n,a,i,o){if(n>0){e.__t=0;var s=this,l=e.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return Ga(e.__p1,e.__cp1)+Ga(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,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Ie,f=my;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=e.__t<1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),h=e.__t<1?f(n[1],i[1],a[1],o):f(a[1],i[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=Ga(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*Ga(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 a=e.getItemModel(n).getModel("effect");this._updateEffectAnimation(e,a,n)},t}(mt),bE=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createPolyline(e,n,a),i}return t.prototype._createPolyline=function(e,n,a){var i=e.getItemLayout(n),o=new sr({shape:{points:i}});this.add(o),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(n)}};Ht(o,s,i,n),this._updateCommonStl(e,n,a)},t.prototype._updateCommonStl=function(e,n,a){var i=this.childAt(0),o=e.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||e.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(e.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,ce(this,l,u,f)},t.prototype.updateLayout=function(e,n){var a=this.childAt(0);a.setShape("points",e.getItemLayout(n))},t}(mt),T9=function(r){V(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,a){return new bE(e,n,a)},t.prototype._updateAnimationPoints=function(e,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Ga(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var n=e.__t<1?e.__t:2-e.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],h=a[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],p=e.__t<1?h[1]-c[1]:c[1]-h[1];e.rotation=-Math.atan2(p,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,e.ignore=!1}},t}(xE),C9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),A9=function(r){V(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 C9},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){e.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)e.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],c=a[o++],h=a[o++];if(e.moveTo(u,f),i>0){var v=(u+c)/2-(f-h)*i,p=(f+h)/2-(c-u)*i;e.quadraticCurveTo(v,p,c,h)}else e.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var c=i[u++],h=i[u++],v=1;v<f;v++){var p=i[u++],d=i[u++];if(Va(c,h,p,d,s,e,n))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],h=i[u++],p=i[u++],d=i[u++];if(o>0){var g=(c+p)/2-(h-d)*o,y=(h+d)/2-(p-c)*o;if(qI(c,h,g,y,p,d,s,e,n))return l}else if(Va(c,h,p,d,s,e,n))return l;l++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.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,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],c=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}e=this._rect=new Mt(i,o,s,l)}return e},t}(Pt),D9=function(){function r(){this.group=new mt}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],a=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),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 A9({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=_t(t);o.seriesIndex=a.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}(),wE={seriesType:"lines",plan:tl(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(e){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],f=a.start;f<a.end;f++){var v=r.getLineCoords(f,o);e&&(s[c++]=v);for(var p=0;p<v;p++)h=t.dataToPoint(o[p],!1,h),s[c++]=h[0],s[c++]=h[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var d=i.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=d.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])}i.setItemLayout(f,g)}}}}}},M9=function(r){V(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,a){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=a.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(i);var c=e.get("clip",!0)&&xf(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){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,a){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=wE.reset(e,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new D9:new q_(o?i?T9:bE:i?xE:Z_),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),a=n.painter.getType()==="svg";!a&&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}(Kt),I9=typeof Uint32Array>"u"?Array:Uint32Array,L9=typeof Float64Array>"u"?Array:Float64Array;function _C(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=X(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),D0([a,e[0],e[1]])}))}var P9=function(r){V(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||[],_C(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(_C(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=ph(this._flatCoords,n.flatCoords),this._flatCoordsOffset=ph(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),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},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 a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}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),Gt(e[0])){for(var a=e.length,i=new I9(a),o=new L9(a),s=0,l=0,u=0,f=0;f<a;){u++;var c=e[f++];i[l++]=s+n,i[l++]=c;for(var h=0;h<c;h++){var v=e[f++],p=e[f++];o[s++]=v,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,n){var a=new er(["value"],this);return a.hasItemOption=!1,a.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=i.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),Me("nameValue",{name:f.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},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}(ae);function Mc(r){return r instanceof Array||(r=[r,r]),r}var R9={seriesType:"lines",reset:function(r){var t=Mc(r.get("symbol")),e=Mc(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 a(i,o){var s=i.getItemModel(o),l=Mc(s.getShallow("symbol",!0)),u=Mc(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};function E9(r){r.registerChartView(M9),r.registerSeriesModel(P9),r.registerLayout(wE),r.registerVisual(R9)}var k9=256,O9=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ni.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=t.length;c.width=e,c.height=n;for(var p=0;p<v;++p){var d=t[p],g=d[0],y=d[1],m=d[2],_=a(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),b=S.data,x=0,w=b.length,T=this.minOpacity,C=this.maxOpacity,A=C-T;x<w;){var _=b[x+3]/256,M=Math.floor(_*(k9-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*A+T),b[x++]=I[M],b[x++]=I[M+1],b[x++]=I[M+2],b[x++]=I[M+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ni.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();function N9(r,t,e){var n=r[1]-r[0];t=X(t,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&e[s]}}function B9(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 V9=function(r){V(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,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):SC(o)&&this._renderOnGeo(o,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var o=n.coordinateSystem;o&&(SC(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,a,i,o){var s=e.coordinateSystem,l=Eo(s,"cartesian2d"),u,f,c,h;if(l){var v=s.getAxis("x"),p=s.getAxis("y");u=v.getBandWidth()+.5,f=p.getBandWidth()+.5,c=v.scale.getExtent(),h=p.scale.getExtent()}for(var d=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"]),b=De(e),x=e.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=a;M<i;M++){var I=void 0,L=g.getItemVisual(M,"style");if(l){var P=g.get(A[0],M),R=g.get(A[1],M);if(isNaN(g.get(A[2],M))||isNaN(P)||isNaN(R)||P<c[0]||P>c[1]||R<h[0]||R>h[1])continue;var O=s.dataToPoint([P,R]);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(A[1],M)))continue;I=new Vt({z2:1,shape:s.dataToRect([g.get(A[0],M)]).contentShape,style:L})}if(g.hasItemOption){var B=g.getItemModel(M),N=B.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),m=B.getModel(["blur","itemStyle"]).getItemStyle(),_=B.getModel(["select","itemStyle"]).getItemStyle(),S=B.get(["itemStyle","borderRadius"]),w=N.get("focus"),T=N.get("blurScope"),C=N.get("disabled"),b=De(B)}I.shape.r=S;var F=e.getRawValue(M),U="-";F&&F[2]!=null&&(U=F[2]+""),Ne(I,b,{labelFetcher:e,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:U}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,ce(I,w,T,C),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),d.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new O9;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),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-h,y=d-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var A=e.dataToPoint([w,T]);return A[0]-=h,A[1]-=v,A.push(C),A}),S=a.getExtent(),b=a.type==="visualMap.continuous"?B9(S,a.option.range):N9(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Pe({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(Kt),z9=function(r){V(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 xa(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=df.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}(ae);function F9(r){r.registerChartView(V9),r.registerSeriesModel(z9)}var G9=["itemStyle","borderWidth"],xC=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Sg=new Sa,H9=function(r){V(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,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:xC[+f],categoryDim:xC[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=wC(o,p),g=bC(o,p,d,h),y=TC(o,h,g);o.setItemGraphicEl(p,y),i.add(y),AC(y,h,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=wC(o,p),m=bC(o,p,y,h),_=IE(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?q9(g,h,m):g=TC(o,h,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),AC(g,h,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&CC(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var v=e.get("clip",!0)?xf(e.coordinateSystem,!1,e):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){CC(i,_t(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(Kt);function bC(r,t,e,n){var a=r.getItemLayout(t),i=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:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};W9(e,i,a,n,h),U9(r,t,a,i,o,h.boundingLength,h.pxSign,f,n,h),$9(e,h.symbolScale,u,n,h);var v=h.symbolSize,p=Po(e.get("symbolOffset"),v);return Y9(e,v,a,i,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function W9(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(W(o)){var c=[xg(s,o[0])-l,xg(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=xg(s,o)-l:t?f=n.coordSysExtent[i.index][u]-l:f=e[i.wh];a.boundingLength=f,t&&(a.repeatCutLength=e[i.wh]),a.pxSign=f>0?1:-1}function xg(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function U9(r,t,e,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(e[c.wh]),v=r.getItemVisual(t,"symbolSize"),p;W(v)?p=v.slice():v==null?p=["100%","100%"]:p=[v,v],p[c.index]=et(p[c.index],h),p[f.index]=et(p[f.index],n?h:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function $9(r,t,e,n,a){var i=r.get(G9)||0;i&&(Sg.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Sg.updateTransform(),i/=Sg.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function Y9(r,t,e,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,p=c.pxSign,d=Math.max(t[v.index]+s,0),g=d;if(n){var y=Math.abs(l),m=Le(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]),b=Math.max(d+S*2,0),x=_?0:S*2,w=OI(n),T=w?n:DC((y+x)/b),C=y-T*d;S=C/2/(_?T:Math.max(T-1,1)),b=d+S*2,x=_?0:S*2,!w&&n!=="fixed"&&(T=u?DC((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=p*(g/2),M=c.pathPosition=[];M[h.index]=e[h.wh]/2,M[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=c.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=c.barRectShape=H({},e);L[v.wh]=p*Math.max(Math.abs(e[v.wh]),Math.abs(M[v.index]+A)),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 TE(r){var t=r.symbolPatternSize,e=ye(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function CE(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(n1(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?As(d,null,p(f),e,n):As(d,null,{scaleX:0,scaleY:0},e,n,function(){a.remove(d)}),f++});f<u;f++){var h=TE(e);h.__pictorialAnimationIndex=f,h.__pictorialRepeatTimes=u,a.add(h);var v=p(f);As(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},e,n)}function p(d){var g=s.slice(),y=e.pxSign,m=d;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),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 AE(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?As(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=TE(e),a.add(i),As(i,{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 DE(r,t,e){var n=H({},t.barRectShape),a=r.__pictorialBarRect;a?As(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new Vt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function ME(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=H({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)Ht(a,{shape:i},s,l);else{i[o.wh]=0,a=new Vt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],Lo[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function wC(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=X9,e.isAnimationEnabled=Z9,e}function X9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Z9(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function TC(r,t,e,n){var a=new mt,i=new mt;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?CE(a,t,e):AE(a,t,e),DE(a,e,n),ME(a,t,e,n),a.__pictorialShapeStr=IE(r,e),a.__pictorialSymbolMeta=e,a}function q9(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;Ht(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?CE(r,t,e,!0):AE(r,t,e,!0),DE(r,e,!0),ME(r,t,e,!0)}function CC(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];n1(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),D(i,function(o){ii(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function IE(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function n1(r,t,e){D(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function As(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&Lo[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function AC(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");n1(r,function(d){if(d instanceof Pe){var g=d.style;d.useStyle(H({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else d.useStyle(e.style);var y=d.ensureState("emphasis");y.style=o,h&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,Ne(p,De(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Ns(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),ce(r,f,c,i.get("disabled"))}function DC(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var K9=function(r){V(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=pi(Yu.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}(Yu);function j9(r){r.registerChartView(H9),r.registerSeriesModel(K9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(hP,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vP("pictorialBar"))}var Q9=function(r){V(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,a){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.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 pa(this._layersSeries||[],l,h,h),p=[];v.add(it(d,this,"add")).update(it(d,this,"update")).remove(it(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;T<w.length;T++){var C=i.getItemLayout(w[T]),A=C.x,M=C.y0,I=C.y;S.push(A,M),b.push(A,M+I),x=i.getItemVisual(w[T],"style")}var L,P=i.getItemLayout(w[0]),R=e.getModel("label"),O=R.get("margin"),B=e.getModel("emphasis");if(g==="add"){var N=p[y]=new mt;L=new eR({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),N.add(L),s.add(N),e.isAnimationEnabled()&&L.setClipPath(J9(L.getBoundingRect(),e,function(){L.removeClipPath()}))}else{var N=_[m];L=N.childAt(0),s.add(N),p[y]=N,Ht(L,{shape:{points:S,stackedOnPoints:b}},e),hn(L)}Ne(L,De(e),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var F=L.getTextContent();F&&(F.x=P.x-O,F.y=P.y0+P.y/2),L.useStyle(x),i.setItemGraphicEl(y,L),Oe(L,e),ce(L,B.get("focus"),B.get("blurScope"),B.get("disabled"))}this._layersSeries=l,this._layers=p},t.type="themeRiver",t}(Kt);function J9(r,t,e){var n=new Vt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ie(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),n}var bg=2,tX=function(r){V(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 Tf(it(this.getData,this),it(this.getRawData,this))},t.prototype.fixData=function(e){var n=e.length,a={},i=Ey(e,function(h){return a.hasOwnProperty(h[0]+"")||(a[h[0]+""]=-1),h[2]}),o=[];i.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]+"";a[c]=l}for(var c in a)a.hasOwnProperty(c)&&a[c]!==l&&(a[c]=l,e[n]=[c,0,u],n++)}return e},t.prototype.getInitialData=function(e,n){for(var a=this.getReferringComponents("singleAxis",ge).models[0],i=a.get("type"),o=Zt(e.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ut(),f=0,c=0;c<s.length;++c)l.push(s[c][bg]),u.get(s[c][bg])||(u.set(s[c][bg],f),f++);var h=yf(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Vh(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new er(h,this);return v.initData(s),v},t.prototype.getLayerSeries=function(){for(var e=this.getData(),n=e.count(),a=[],i=0;i<n;++i)a[i]=i;var o=e.mapDimension("single"),s=Ey(a,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,a){W(e)||(e=e?[e]:[]);for(var i=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,p=0;p<v;++p){var d=i.get(e[0],o[f].indices[p]),g=Math.abs(d-n);g<=c&&(u=d,c=g,h=o[f].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=i.getName(e),s=i.get(i.mapDimension("value"),e);return Me("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}(ae);function eX(r,t){r.eachSeriesByType("themeRiver",function(e){var n=e.getData(),a=e.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=e.get("boundaryGap"),l=a.getAxis();if(i.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];MC(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];MC(n,e,f)}n.setLayout("layoutInfo",i)})}function MC(r,t,e){if(r.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=X(a,function(g){return X(g.indices,function(y){var m=n.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=rX(s),u=l.y0,f=e/l.max,c=a.length,h=a[0].indices.length,v,p=0;p<h;++p){v=u[p]*f,r.setItemLayout(a[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:v,y:s[0][p][1]*f});for(var d=1;d<c;++d)v+=s[d-1][p][1]*f,r.setItemLayout(a[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:v,y:s[d][p][1]*f})}}function rX(r){for(var t=r.length,e=r[0].length,n=[],a=[],i=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<e;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<e;++f){var c=n[f]+a[f];c>i&&(i=c)}return{y0:a,max:i}}function nX(r){r.registerChartView(Q9),r.registerSeriesModel(tX),r.registerLayout(eX),r.registerProcessor(wf("themeRiver"))}var aX=2,iX=4,IC=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;o.z2=aX,o.textConfig={inside:!0},_t(o).seriesIndex=n.seriesIndex;var s=new Ft({z2:iX,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,n,a,i),o}return t.prototype.updateData=function(e,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;_t(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=H({},f);c.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=ks(v,o));var p=io(l.getModel("itemStyle"),c,!0);H(c,p),D(ar,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=io(S,c);b&&(_.shape=b)}),e?(s.setShape(c),s.shape.r=f.r0,ie(s,{shape:{r:f.r}},a,n.dataIndex)):(Ht(s,{shape:c},a),hn(s)),s.useStyle(h),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;ce(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.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,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!d,D(ku,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?h:h.ensureState(y),b=e.getFormattedLabel(v,y);_&&(b=b||n.node.name),S.style=ne(m,{},null,y!=="normal",!0),b&&(S.style.text=b);var x=m.get("show");x!=null&&!_&&(S.ignore=!x);var w=g(m,"position"),T=_?c:c.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:w!=="outside"};var A,M=g(m,"distance")||0,I=g(m,"align"),L=g(m,"rotate"),P=Math.PI*.5,R=Math.PI*1.5,O=Cr(L==="tangential"?Math.PI/2-l:l),B=O>P&&!Ru(O-P)&&O<R;w==="outside"?(A=o.r+M,I=B?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,I="center"):I==="left"?(A=o.r0+M,I=B?"right":"left"):I==="right"&&(A=o.r-M,I=B?"left":"right"),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*f+o.cy;var N=0;L==="radial"?N=Cr(-l)+(B?Math.PI:0):L==="tangential"?N=Cr(Math.PI/2-l)+(B?Math.PI:0):Gt(L)&&(N=L*Math.PI/180),S.rotation=Cr(N)});function g(y,m){var _=y.get(m);return _??i.get(m)}h.dirtyStyle()},t}(ir),Em="sunburstRootToNode",LC="sunburstHighlight",oX="sunburstUnhighlight";function sX(r){r.registerAction({type:Em,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=Zu(t,[Em],a);if(o){var s=a.getViewRoot();s&&(t.direction=W_(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:LC,update:"none"},function(t,e,n){t=H({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Zu(t,[LC],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(H(t,{type:"highlight"}))}),r.registerAction({type:oX,update:"updateView"},function(t,e,n){t=H({},t),n.dispatchAction(H(t,{type:"downplay"}))})}var lX=function(r){V(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,a,i){var o=this;this.seriesModel=e,this.api=a,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||[];p(h,v),y(l,u),this._initEvents(),this._oldChildren=h;function p(m,_){if(m.length===0&&_.length===0)return;new pa(_,m,S,S).add(b).update(b).remove(bt(b,null)).execute();function S(x){return x.getId()}function b(x,w){var T=x==null?null:m[x],C=w==null?null:_[w];d(T,C)}}function d(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,e,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new IC(m,e,n,a);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,a):(o.virtualPiece=new IC(m,e,n,a),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 a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&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";Lh(u,f)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Em,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Kt),uX=function(r){V(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 a={name:e.name,children:e.data};LE(a);var i=this._levelModels=X(e.levels||[],function(l){return new Ut(l,this,n)},this),o=H_.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),h=i[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),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=np(a,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(){OR(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}(ae);function LE(r){var t=0;D(r.children,function(n){LE(n);var a=n.value;W(a)&&(a=a[0]),t+=a});var e=r.value;W(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),W(r.value)?r.value[0]=e:r.value=e}var PC=Math.PI/180;function fX(r,t,e){t.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");W(i)||(i=[0,i]),W(a)||(a=[a,a]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=et(a[0],o),f=et(a[1],s),c=et(i[0],l/2),h=et(i[1],l/2),v=-n.get("startAngle")*PC,p=n.get("minAngle")*PC,d=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&PE(g,m);var _=0;D(g.children,function(O){!isNaN(O.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(h-c)/(w||1),C=n.get("clockwise"),A=n.get("stillShowZeroSum"),M=C?1:-1,I=function(O,B){if(O){var N=B;if(O!==d){var F=O.getValue(),U=S===0&&A?b:F*b;U<p&&(U=p),N=B+M*U;var Z=O.depth-y-(x?-1:1),Q=c+T*Z,ft=c+T*(Z+1),ht=n.getLevelModel(O);if(ht){var Tt=ht.get("r0",!0),xt=ht.get("r",!0),G=ht.get("radius",!0);G!=null&&(Tt=G[0],xt=G[1]),Tt!=null&&(Q=et(Tt,l/2)),xt!=null&&(ft=et(xt,l/2))}O.setLayout({angle:U,startAngle:B,endAngle:N,clockwise:C,cx:u,cy:f,r0:Q,r:ft})}if(O.children&&O.children.length){var $=0;D(O.children,function(K){$+=I(K,B+$)})}return N-B}};if(x){var L=c,P=c+T,R=Math.PI*2;d.setLayout({angle:R,startAngle:v,endAngle:v+R,clockwise:C,cx:u,cy:f,r0:L,r:P})}I(g,v)})}function PE(r,t){var e=r.children||[];r.children=cX(e,t),e.length&&D(r.children,function(n){PE(n,t)})}function cX(r,t){if(vt(t)){var e=X(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return e.sort(function(a,i){return t(a.params,i.params)}),X(e,function(a){return r[a.index]})}else{var n=t==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function hX(r){var t={};function e(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&nt(s)&&(s=xy(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");H(u,l)})})}function vX(r){r.registerChartView(lX),r.registerSeriesModel(uX),r.registerLayout(bt(fX,"sunburst")),r.registerProcessor(bt(wf,"sunburst")),r.registerVisual(hX),sX(r)}var RC={color:"fill",borderColor:"stroke"},pX={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},la=zt(),dX=function(r){V(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 xa(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=la(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(ae);function gX(r,t){return t=t||[0,0],X(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function yX(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:it(gX,r)}}}function mX(r,t){return t=t||[0,0],X([0,1],function(e){var n=t[e],a=r[e]/2,i=[],o=[];return i[e]=n-a,o[e]=n+a,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function _X(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:it(mX,r)}}}function SX(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function xX(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:it(SX,r)}}}function bX(r,t){return t=t||[0,0],X(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),o=t[n],s=r[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function wX(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(a){var i=t.dataToRadius(a[0]),o=e.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:it(bX,r)}}}function TX(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,a){return r.dataToPoint(n,a)}}}}function RE(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function EE(r,t,e){var n=r,a,i,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),i={type:"text",style:o,silent:!0},a={};var s=st(n,"textPosition");e?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),st(n,"textPosition")&&(a.position=n.textPosition),st(n,"textOffset")&&(a.offset=n.textOffset),st(n,"textRotation")&&(a.rotation=n.textRotation),st(n,"textDistance")&&(a.distance=n.textDistance)}return EC(o,r),D(o.rich,function(l){EC(l,l)}),{textConfig:a,textContent:i}}function EC(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 kC(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 a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";OC(n,t);var o=n.textFill==null;return a?o&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),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,D(t.rich,function(s){OC(s,s)}),n}function OC(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 kE={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},NC=Ot(kE);zn(Gn,function(r,t){return r[t]=1,r},{});Gn.join(", ");var Kh=["","style","shape","extra"],zs=zt();function a1(r,t,e,n,a){var i=r+"Animation",o=Xs(r,n,a)||{},s=zs(t).userDuring;return o.duration>0&&(o.during=s?it(IX,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),H(o,e[i]),o}function nh(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=zs(r),u=t.style;l.userDuring=t.during;var f={},c={};if(PX(r,t,c),VC("shape",t,c),VC("extra",t,c),!i&&s&&(LX(r,t,f),BC("shape",r,t,f),BC("extra",r,t,f),RX(r,t,u,f)),c.style=u,CX(r,c,o),DX(r,t),s)if(i){var h={};D(Kh,function(p){var d=p?t[p]:t;d&&d.enterFrom&&(p&&(h[p]=h[p]||{}),H(p?h[p]:h,d.enterFrom))});var v=a1("enter",r,t,e,a);v.duration>0&&r.animateFrom(h,v)}else AX(r,t,a||0,e,f);OE(r,t),u?r.dirty():r.markRedraw()}function OE(r,t){for(var e=zs(r).leaveToProps,n=0;n<Kh.length;n++){var a=Kh[n],i=a?t[a]:t;i&&i.leaveTo&&(e||(e=zs(r).leaveToProps={}),a&&(e[a]=e[a]||{}),H(a?e[a]:e,i.leaveTo))}}function op(r,t,e,n){if(r){var a=r.parent,i=zs(r).leaveToProps;if(i){var o=a1("update",r,t,e,0);o.done=function(){a.remove(r)},r.animateTo(i,o)}else a.remove(r)}}function yo(r){return r==="all"}function CX(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function AX(r,t,e,n,a){if(a){var i=a1("update",r,t,n,e);i.duration>0&&r.animateFrom(a,i)}}function DX(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 bn={},MX={setTransform:function(r,t){return bn.el[r]=t,this},getTransform:function(r){return bn.el[r]},setShape:function(r,t){var e=bn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=bn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=bn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=bn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=bn.el.extra||(bn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=bn.el.extra;if(t)return t[r]}};function IX(){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}bn.el=t,n(MX)}}function BC(r,t,e,n){var a=e[r];if(a){var i=t[r],o;if(i){var s=e.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),yo(l))H(o,i);else for(var u=qt(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(yo(s)||It(s,r)>=0){!o&&(o=n[r]={});for(var v=Ot(i),f=0;f<v.length;f++){var c=v[f],h=i[c];EX(a[c],h)&&(o[c]=h)}}}}}function VC(r,t,e){var n=t[r];if(n)for(var a=e[r]={},i=Ot(n),o=0;o<i.length;o++){var s=i[o];a[s]=su(n[s])}}function LX(r,t,e){for(var n=t.transition,a=yo(n)?Gn:qt(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function PX(r,t,e){for(var n=0;n<NC.length;n++){var a=NC[n],i=kE[a],o=t[a];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var n=0;n<Gn.length;n++){var s=Gn[n];t[s]!=null&&(e[s]=t[s])}}function RX(r,t,e,n){if(e){var a=r.style,i;if(a){var o=e.transition,s=t.transition;if(o&&!yo(o)){var l=qt(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];i[f]=c}}else if(r.getAnimationStyleProps&&(yo(s)||yo(o)||It(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=n.style={});for(var p=Ot(e),u=0;u<p.length;u++){var f=p[u];if(v[f]){var c=a[f];i[f]=c}}}}}}}function EX(r,t){return $e(r)?r!==t:r!=null&&isFinite(r)}var NE=zt(),kX=["percent","easing","shape","style","extra"];function BE(r){r.stopAnimation("keyframe"),r.attr(NE(r))}function jh(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(W(t)){D(t,function(s){jh(r,s,e)});return}var n=t.keyframes,a=t.duration;if(e&&a==null){var i=Xs("enter",e,0);a=i&&i.duration}if(!(!n||!a)){var o=NE(r);D(Kh,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),D(n,function(u){var f=r.animators,c=s?u[s]:u;if(c){var h=Ot(c);if(s||(h=Zt(h,function(d){return It(kX,d)<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 p=s?o[s]:o;D(h,function(d){p[d]=((s?r[s]:r)||{})[d]}),l.whenWithKeys(a*u.percent,c,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var ua="emphasis",Za="normal",i1="blur",o1="select",ui=[Za,ua,i1,o1],wg={normal:["itemStyle"],emphasis:[ua,"itemStyle"],blur:[i1,"itemStyle"],select:[o1,"itemStyle"]},Tg={normal:["label"],emphasis:[ua,"label"],blur:[i1,"label"],select:[o1,"label"]},OX=["x","y"],NX="e\0\0",Rr={normal:{},emphasis:{},blur:{},select:{}},BX={cartesian2d:yX,geo:_X,single:xX,polar:wX,calendar:TX};function km(r){return r instanceof Pt}function Om(r){return r instanceof Yr}function VX(r,t){t.copyTransform(r),Om(t)&&Om(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,km(t)&&km(r)&&t.setShape(r.shape))}var zX=function(r){V(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,a,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=zC(e,s,n,a);o||l.removeAll(),s.diff(o).add(function(c){Cg(a,null,c,u(c,i),e,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&op(h,la(h).option,e)}).update(function(c,h){var v=o.getItemGraphicEl(h);Cg(a,v,c,u(c,i),e,l,s)}).execute();var f=e.get("clip",!0)?xf(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,n,a,i,o){var s=n.getData(),l=zC(n,s,a,i),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=Cg(null,null,c,l(c,o),n,this.group,s);h&&(h.traverse(f),u.push(h))}},t.prototype.eachRendered=function(e){vi(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(Kt);function s1(r){var t=r.type,e;if(t==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=FE(n);e=Nv(i,null,a,n.layout||"center"),la(e).customPathData=i}else if(t==="image")e=new Pe({}),la(e).customImagePath=r.style.image;else if(t==="text")e=new Ft({});else if(t==="group")e=new mt;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=K0(t);if(!o){var s="";Wt(s)}e=new o}return la(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function l1(r,t,e,n,a,i,o){BE(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=OX);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=km(t)?l.decal:null;r&&c&&(c.dirty=!0,f=ks(c,r)),l.__decalPattern=f}if(Om(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}nh(t,n,i,{dataIndex:e,isInit:o,clearStyle:!0}),jh(t,n.keyframeAnimation,i)}function VE(r,t,e,n,a){var i=t.isGroup?null:t,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),wo(i)}}function FX(r,t,e){if(!r.isGroup){var n=r,a=e.currentZ,i=e.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<ui.length;s++)GX(n,t,ui[s])}}function GX(r,t,e){var n=e===Za,a=n?t:Qh(t,e),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(e),o.z2=i||0)}function zC(r,t,e,n){var a=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):BX[i.type](i));for(var s=dt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:x,ordinalRawValue:b,styleEmphasis:w,visual:A,barLayout:M,currentSeriesIndices:I,font:L},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:HX(r.getData())},u,f,c={},h={},v={},p={},d=0;d<ui.length;d++){var g=ui[d];v[g]=r.getModel(wg[g]),p[g]=r.getModel(Tg[g])}function y(P){return P===u?f||(f=t.getItemModel(P)):t.getItemModel(P)}function m(P,R){return t.hasItemOption?P===u?c[R]||(c[R]=y(P).getModel(wg[R])):y(P).getModel(wg[R]):v[R]}function _(P,R){return t.hasItemOption?P===u?h[R]||(h[R]=y(P).getModel(Tg[R])):y(P).getModel(Tg[R]):p[R]}return function(P,R){return u=P,f=null,c={},h={},a&&a(dt({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:R?R.type:null},l),s)};function S(P,R){return R==null&&(R=u),t.getStore().get(t.getDimensionIndex(P||0),R)}function b(P,R){R==null&&(R=u),P=P||0;var O=t.getDimensionInfo(P);if(!O){var B=t.getDimensionIndex(P);return B>=0?t.getStore().get(B,R):void 0}var N=t.get(O.name,R),F=O&&O.ordinalMeta;return F?F.categories[N]:N}function x(P,R){R==null&&(R=u);var O=t.getItemVisual(R,"style"),B=O&&O.fill,N=O&&O.opacity,F=m(R,Za).getItemStyle();B!=null&&(F.fill=B),N!=null&&(F.opacity=N);var U={inheritColor:nt(B)?B:"#000"},Z=_(R,Za),Q=ne(Z,null,U,!1,!0);Q.text=Z.getShallow("show")?St(r.getFormattedLabel(R,Za),Ns(t,R)):null;var ft=Mh(Z,U,!1);return C(P,F),F=kC(F,Q,ft),P&&T(F,P),F.legacy=!0,F}function w(P,R){R==null&&(R=u);var O=m(R,ua).getItemStyle(),B=_(R,ua),N=ne(B,null,null,!0,!0);N.text=B.getShallow("show")?Nn(r.getFormattedLabel(R,ua),r.getFormattedLabel(R,Za),Ns(t,R)):null;var F=Mh(B,null,!0);return C(P,O),O=kC(O,N,F),P&&T(O,P),O.legacy=!0,O}function T(P,R){for(var O in R)st(R,O)&&(P[O]=R[O])}function C(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function A(P,R){if(R==null&&(R=u),st(RC,P)){var O=t.getItemVisual(R,"style");return O?O[RC[P]]:null}if(st(pX,P))return t.getItemVisual(R,P)}function M(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return P4(dt({axis:R},P))}}function I(){return e.getCurrentSeriesIndices()}function L(P){return j0(P,e)}}function HX(r){var t={};return D(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Cg(r,t,e,n,a,i,o){if(!n){i.remove(t);return}var s=u1(r,t,e,n,a,i);return s&&o.setItemGraphicEl(e,s),s&&ce(s,n.focus,n.blurScope,n.emphasisDisabled),s}function u1(r,t,e,n,a,i){var o=-1,s=t;t&&zE(t,n,a)&&(o=It(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=s1(n),s&&VX(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Rr.normal.cfg=Rr.normal.conOpt=Rr.emphasis.cfg=Rr.emphasis.conOpt=Rr.blur.cfg=Rr.blur.conOpt=Rr.select.cfg=Rr.select.conOpt=null,Rr.isLegacy=!1,UX(u,e,n,a,l,Rr),WX(u,e,n,a,l),l1(r,u,e,n,Rr,a,l),st(n,"info")&&(la(u).info=n.info);for(var f=0;f<ui.length;f++){var c=ui[f];if(c!==Za){var h=Qh(n,c),v=f1(n,h,c);VE(c,u,h,v,Rr)}}return FX(u,n,a),n.type==="group"&&$X(r,u,e,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function zE(r,t,e){var n=la(r),a=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&qX(i)&&FE(i)!==n.customPathData||a==="image"&&st(o,"image")&&o.image!==n.customImagePath}function WX(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&zE(o,i,n)&&(o=null),o||(o=s1(i),r.setClipPath(o)),l1(null,o,t,i,null,n,a)}}function UX(r,t,e,n,a,i){if(!r.isGroup){FC(e,null,i),FC(e,ua,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=s1(o),r.setTextContent(f)),l1(null,f,t,o,null,n,a);for(var c=o&&o.style,h=0;h<ui.length;h++){var v=ui[h];if(v!==Za){var p=i[v].conOpt;VE(v,f,p,f1(o,p,v),null)}}c?f.dirty():f.markRedraw()}}}}function FC(r,t,e){var n=t?Qh(r,t):r,a=t?f1(r,n,ua):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?t?Qh(s,t):s:null;if(a&&(e.isLegacy||RE(a,i,!!o,!!l))){e.isLegacy=!0;var u=EE(a,i,!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 Qh(r,t){return t?r?r[t]:null:r}function f1(r,t,e){var n=t&&t.style;return n==null&&e===ua&&r&&(n=r.styleEmphasis),n}function $X(r,t,e,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){XX({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:a,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=i[f],h=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),u1(r,h,e,c,a,t)):h.ignore=!0}for(var v=t.childCount()-1;v>=f;v--){var p=t.childAt(v);YX(t,p,a)}}}function YX(r,t,e){t&&op(t,la(r).option,e)}function XX(r){new pa(r.oldChildren,r.newChildren,GC,GC,r).add(HC).update(HC).remove(ZX).execute()}function GC(r,t){var e=r&&r.name;return e??NX+t}function HC(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;u1(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function ZX(r){var t=this.context,e=t.oldChildren[r];e&&op(e,la(e).option,t.seriesModel)}function FE(r){return r&&(r.pathData||r.d)}function qX(r){return r&&(st(r,"pathData")||st(r,"d"))}function KX(r){r.registerChartView(zX),r.registerSeriesModel(dX)}var Ki=zt(),WC=yt,Ag=it,c1=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,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,i,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 mt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var h=bt(UC,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}YC(s,e,!0),this._renderHandle(i)}},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"),a=t.axis,i=a.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=O_(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=Ki(t).pointerEl=new Lo[i.type](WC(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=Ki(t).labelEl=new Ft(WC(e.label));t.add(i),$C(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=Ki(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=Ki(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),$C(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=pf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){fa(u.event)},onmousedown:Ag(this._onHandleDragMove,this,0,0),drift:Ag(this._onHandleDragMove,this),ondragend:Ag(this._onHandleDragEnd,this)}),n.add(a)),YC(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");W(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,el(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){UC(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Dg(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Dg(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Dg(a)),Ki(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,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Fu(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 UC(r,t,e,n){GE(Ki(e).lastProp,n)||(Ki(e).lastProp=n,t?Ht(e,n,r):(e.stopAnimation(),e.attr(n)))}function GE(r,t){if(gt(r)&>(t)){var e=!0;return D(t,function(n,a){e=e&&GE(r[a],n)}),!!e}else return r===t}function $C(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Dg(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function YC(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function h1(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 HE(r,t,e,n,a){var i=e.get("value"),o=WE(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=js(s.get("padding")||0),u=s.getFont(),f=sf(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],p=a.align;p==="right"&&(c[0]-=h),p==="center"&&(c[0]-=h/2);var d=a.verticalAlign;d==="bottom"&&(c[1]-=v),d==="middle"&&(c[1]-=v/2),jX(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:ne(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function jX(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function WE(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:T_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),nt(o)?i=o.replace("{value}",i):vt(o)&&(i=o(s))}return i}function v1(r,t,e){var n=Ar();return Io(n,n,e.rotation),Fn(n,n,e.position),un([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function UE(r,t,e,n,a,i){var o=rr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),HE(t,n,a,i,{position:v1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function p1(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function $E(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function XC(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var QX=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=ZC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=h1(i),v=JX[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var p=dm(l.model,a);UE(n,e,p,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=dm(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=v1(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ZC(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 p=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:p[f]}},t}(c1);function ZC(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var JX={line:function(r,t,e){var n=p1([t,e[0]],[t,e[1]],qC(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:$E([t-n/2,e[0]],[n,a],qC(r))}}};function qC(r){return r.dim==="x"?0:1}var tZ=function(r){V(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}(kt),ra=zt(),eZ=D;function YE(r,t,e){if(!Rt.node){var n=t.getZr();ra(n).records||(ra(n).records={}),rZ(n,t);var a=ra(n).records[r]||(ra(n).records[r]={});a.handler=e}}function rZ(r,t){if(ra(r).initialized)return;ra(r).initialized=!0,e("click",bt(KC,"click")),e("mousemove",bt(KC,"mousemove")),e("globalout",aZ);function e(n,a){r.on(n,function(i){var o=iZ(t);eZ(ra(r).records,function(s){s&&a(s,i,o.dispatchAction)}),nZ(o.pendings,t)})}}function nZ(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function aZ(r,t,e){r.handler("leave",null,e)}function KC(r,t,e,n){t.handler(r,e,n)}function iZ(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Nm(r,t){if(!Rt.node){var e=t.getZr(),n=(ra(e).records||{})[r];n&&(ra(e).records[r]=null)}}var oZ=function(r){V(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,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";YE("axisPointer",a,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){Nm("axisPointer",n)},t.prototype.dispose=function(e,n){Nm("axisPointer",n)},t.type="axisPointer",t}(ue);function XE(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=xo(i,r);if(o==null||o<0||W(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.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,p=i.mapDimension(h),d=[];d[v]=i.get(p,o),d[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(d)||[]}else e=l.dataToPoint(i.getValues(X(l.dimensions,function(y){return i.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 jC=zt();function sZ(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||it(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ah(a)&&(a=XE({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=ah(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||ah(a),h={},v={},p={list:[],map:{}},d={showPointer:bt(uZ,v),showTooltip:bt(fZ,p)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=pZ(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&QC(S,T,d,!1,h)}})});var g={};return D(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&D(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,JC(S),JC(y)))),g[y.key]=w}})}),D(g,function(y,m){QC(f[m],y,d,!0,h)}),cZ(v,f,h),hZ(p,a,r,o),vZ(f,o,e),h}}function QC(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=lZ(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&H(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function lZ(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return D(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 p=r-c,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,a=c,i.length=0),D(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function uZ(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function fZ(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Xu(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:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function cZ(r,t,e){var n=e.axesInfo=[];D(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function hZ(r,t,e,n){if(ah(t)||!r.list.length){n({type:"hideTip"});return}var a=((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:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function vZ(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=jC(n)[a]||{},o=jC(n)[a]={};D(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&D(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];D(i,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!i[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 pZ(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 JC(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 ah(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Df(r){ko.registerAxisPointerClass("CartesianAxisPointer",QX),r.registerComponentModel(tZ),r.registerComponentView(oZ),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!W(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=TU(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},sZ)}function dZ(r){Lt(xR),Lt(Df)}var gZ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.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=i.get("type");if(h&&h!=="none"){var v=h1(i),p=mZ[h](s,l,c,f);p.style=v,e.graphicKey=p.type,e.pointer=p}var d=i.get(["label","margin"]),g=yZ(n,a,i,l,d);HE(e,a,i,o,g)},t}(c1);function yZ(r,t,e,n,a){var i=t.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var h=Ar();Io(h,h,s),Fn(h,h,[n.cx,n.cy]),u=un([o,-a],h);var v=t.getModel("axisLabel").get("rotate")||0,p=rr.innerTextLayout(s,v*Math.PI/180,-1);f=p.textAlign,c=p.textVerticalAlign}else{var d=l[1];u=n.coordToPoint([d+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var mZ={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:p1(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 a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:XC(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:XC(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},_Z=function(r){V(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,a=this.ecModel;return a.eachComponent(e,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(kt),d1=function(r){V(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}(kt);me(d1,mf);var SZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(d1),xZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(d1),g1=function(r){V(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}(pn);g1.prototype.dataToRadius=pn.prototype.dataToCoord;g1.prototype.radiusToData=pn.prototype.coordToData;var bZ=zt(),y1=function(r){V(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(),a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=sf(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)),p=bZ(e.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-v)<=1&&Math.abs(g-o)<=1&&d>v?v=d:(p.lastTickCount=o,p.lastAutoInterval=v),v},t}(pn);y1.prototype.dataToAngle=pn.prototype.dataToCoord;y1.prototype.angleToData=pn.prototype.coordToData;var ZE=["radius","angle"],wZ=function(){function r(t){this.dimensions=ZE,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new g1,this._angleAxis=new y1,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,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),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,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.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,a=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[a,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,c=this.r,h=this.r0;return f<=c*c&&f>=h*h}}},r.prototype.convertToPixel=function(t,e,n){var a=tA(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=tA(e);return a===this?this.pointToData(n):null},r}();function tA(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function TZ(r,t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight();r.cx=et(n[0],a),r.cy=et(n[1],i);var o=r.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:W(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 CZ(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();D(zh(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),D(zh(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Os(n.scale,n.model),Os(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function AZ(r){return r.mainType==="angleAxis"}function eA(r,t){var e;if(r.type=t.get("type"),r.scale=Jv(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),AZ(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var DZ={dimensions:ZE,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new wZ(a+"");i.update=CZ;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");eA(o,l),eA(s,u),TZ(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",ge).models[0];n.coordinateSystem=a.coordinateSystem}}),e}},MZ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ic(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Lc(r){var t=r.getRadiusAxis();return t.inverse?0:1}function rA(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 IZ=function(r){V(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 a=e.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=X(a.getViewLabels(),function(f){f=yt(f);var c=a.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(h),f});rA(u),rA(s),D(MZ,function(f){e.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&LZ[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(ko),LZ={axisLine:function(r,t,e,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Lc(e),c=f?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?h=new Lo[v]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new ff({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Lc(e)],u=X(n,function(f){return new Te({shape:Ic(e,[l,l+s],f.coord)})});r.add(Fr(u,{style:dt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Lc(e)],f=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)f.push(new Te({shape:Ic(e,[u,u+l],a[c][h].coord)}));r.add(Fr(f,{style:dt(s.getModel("lineStyle").getLineStyle(),dt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");D(o,function(c,h){var v=l,p=c.tickValue,d=i[Lc(e)],g=e.coordToPoint([d+u,c.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];gt(b)&&b.textStyle&&(v=new Ut(b.textStyle,l,l.ecModel))}var x=new Ft({silent:rr.isLabelSilent(t),style:ne(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=rr.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,_t(x).eventData=w}},this)},splitLine:function(r,t,e,n,a,i){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 Te({shape:Ic(e,i,n[c].coord)}))}for(var c=0;c<f.length;c++)r.add(Fr(f[c],{style:dt({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new Te({shape:Ic(e,i,a[u][f].coord)}));r.add(Fr(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,a,i){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(i[0],i[1]),p=Math.max(i[0],i[1]),d=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 ir({shape:{cx:e.cx,cy:e.cy,r0:v,r:p,startAngle:h,endAngle:-m*c,clockwise:d},silent:!0})),h=-m*c}for(var g=0;g<f.length;g++)r.add(Fr(f[g],{style:dt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},PZ=["axisLine","axisTickLabel","axisName"],RZ=["splitLine","splitArea","minorSplitLine"],EZ=function(r){V(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 a=this._axisGroup,i=this._axisGroup=new mt;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),c=l.getExtent()[0],h=o.getExtent(),v=OZ(s,e,c),p=new rr(e,v);D(PZ,p.add,p),i.add(p.getGroup()),vf(a,i,e),D(RZ,function(d){e.get([d,"show"])&&!o.scale.isBlank()&&kZ[d](this.group,e,s,c,h,u,f)},this)}},t.type="radiusAxis",t}(ko),kZ={splitLine:function(r,t,e,n,a,i){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 p=[],d=0;d<i.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new Lo[v]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[d].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:f.inverse}}))}for(var d=0;d<p.length;d++)r.add(Fr(p[d],{style:dt({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,a,i,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 Sa({shape:{cx:e.cx,cy:e.cy,r:o[f][c].coord}}));r.add(Fr(u,{style:dt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,a,i){if(i.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=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new ir({shape:{cx:e.cx,cy:e.cy,r0:c,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[h].coord}for(var h=0;h<f.length;h++)r.add(Fr(f[h],{style:dt({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function OZ(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}}function qE(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function KE(r,t){return t.dim+r.model.componentIndex}function NZ(r,t,e){var n={},a=BZ(Zt(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=KE(s,l),f=qE(i),c=a[u][f],h=c.offset,v=c.width,p=s.getOtherAxis(l),d=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(p.dim),S=o.mapDimension(l.dim),b=si(o,_),x=l.dim!=="radius"||!i.get("roundCap",!0),w=p.model,T=w.get("startValue"),C=p.dataToCoord(T||0),A=0,M=o.count();A<M;A++){var I=o.get(_,A),L=o.get(S,A),P=I>=0?"p":"n",R=C;b&&(n[f][L]||(n[f][L]={p:C,n:C}),R=n[f][L][P]);var O=void 0,B=void 0,N=void 0,F=void 0;if(p.dim==="radius"){var U=p.dataToCoord(I)-C,Z=l.dataToCoord(L);Math.abs(U)<y&&(U=(U<0?-1:1)*y),O=R,B=R+U,N=Z-h,F=N-v,b&&(n[f][L][P]=B)}else{var Q=p.dataToCoord(I,x)-C,ft=l.dataToCoord(L);Math.abs(Q)<m&&(Q=(Q<0?-1:1)*m),O=ft+h,B=O+v,N=R,F=R+Q,b&&(n[f][L][P]=F)}o.setItemLayout(A,{cx:d,cy:g,r0:O,r:B,startAngle:-N*Math.PI/180,endAngle:-F*Math.PI/180,clockwise:N>=F})}}})}function BZ(r){var t={};D(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=KE(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;t[l]=c;var v=qE(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var p=et(n.get("barWidth"),f),d=et(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");p&&!h[v].width&&(p=Math.min(c.remainedWidth,p),h[v].width=p,c.remainedWidth-=p),d&&(h[v].maxWidth=d),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var e={};return D(t,function(n,a){e[a]={};var i=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),D(i,function(d,g){var y=d.maxWidth;y&&y<c&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,f--)}),c=(u-s)/(f+(f-1)*l),c=Math.max(c,0);var h=0,v;D(i,function(d,g){d.width||(d.width=c),v=d,h+=d.width*(1+l)}),v&&(h-=v.width*l);var p=-h/2;D(i,function(d,g){e[a][g]=e[a][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),e}var VZ={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},zZ={splitNumber:5},FZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(ue);function GZ(r){Lt(Df),ko.registerAxisPointerClass("PolarAxisPointer",gZ),r.registerCoordinateSystem("polar",DZ),r.registerComponentModel(_Z),r.registerComponentView(FZ),Bs(r,"angle",SZ,VZ),Bs(r,"radius",xZ,zZ),r.registerComponentView(IZ),r.registerComponentView(EZ),r.registerLayout(bt(NZ,"bar"))}function Bm(r,t){t=t||{};var e=r.coordinateSystem,n=r.axis,a={},i=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]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Le(t.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var h=t.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-h:h,a.z2=1,a}var HZ=["axisLine","axisTickLabel","axisName"],WZ=["splitArea","splitLine"],UZ=function(r){V(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,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new mt;var l=Bm(e),u=new rr(e,l);D(HZ,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),D(WZ,function(f){e.get([f,"show"])&&$Z[f](this,this.group,this._axisGroup,e)},this),vf(s,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)},t.prototype.remove=function(){mR(this)},t.type="singleAxis",t}(ko),$Z={splitLine:function(r,t,e,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),f=a.isHorizontal(),c=[],h=0,v=a.getTicksCoords({tickModel:i}),p=[],d=[],g=0;g<v.length;++g){var y=a.toGlobalCoord(v[g].coord);f?(p[0]=y,p[1]=u.y,d[0]=y,d[1]=u.y+u.height):(p[0]=u.x,p[1]=y,d[0]=u.x+u.width,d[1]=y);var m=new Te({shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},silent:!0});Rs(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(Fr(c[g],{style:dt({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(r,t,e,n){yR(r,e,n,n)}},ih=function(r){V(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}(kt);me(ih,mf.prototype);var YZ=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.type=i||"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}(pn),jE=["single"],XZ=function(){function r(t,e,n){this.type="single",this.dimension="single",this.dimensions=jE,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=this.dimension,i=new YZ(a,Jv(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(t,e){t.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();D(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Os(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=xe({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(),a=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(a[i],a[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+e}:function(o){return a-o+e},t.toLocalCoord=i?function(o){return o-e}:function(o){return a-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(),a=n.orient;return a==="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(),a=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=e.toGlobalCoord(e.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(t,e,n){var a=nA(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=nA(e);return a===this?this.pointToData(n):null},r}();function nA(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function ZZ(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new XZ(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",ge).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),e}var qZ={create:ZZ,dimensions:jE},aA=["x","y"],KZ=["width","height"],jZ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=Mg(l,1-Jh(s)),f=l.dataToPoint(n)[0],c=i.get("type");if(c&&c!=="none"){var h=h1(i),v=QZ[c](s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var p=Bm(a);UE(n,e,p,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Bm(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=v1(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.coordinateSystem,l=Jh(o),u=Mg(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=Mg(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}(c1),QZ={line:function(r,t,e){var n=p1([t,e[0]],[t,e[1]],Jh(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),a=e[1]-e[0];return{type:"Rect",shape:$E([t-n/2,e[0]],[n,a],Jh(r))}}};function Jh(r){return r.isHorizontal()?0:1}function Mg(r,t){var e=r.getRect();return[e[aA[t]],e[aA[t]]+e[KZ[t]]]}var JZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(ue);function tq(r){Lt(Df),ko.registerAxisPointerClass("SingleAxisPointer",jZ),r.registerComponentView(JZ),r.registerComponentView(UZ),r.registerComponentModel(ih),Bs(r,"single",ih,ih.defaultOption),r.registerCoordinateSystem("single",qZ)}var eq=function(r){V(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,a){var i=Qs(e);r.prototype.init.apply(this,arguments),iA(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),iA(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}(kt);function iA(r,t){var e=r.cellSize,n;W(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=X([0,1],function(i){return wG(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});oi(r,t,{type:"box",ignoreSize:a})}var rq=function(r){V(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,a){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,c=new Vt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},t.prototype._renderLines=function(e,n,a,i){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++){p(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)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(e,d,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new sr({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?SG(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,n,a,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="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=a==="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]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var d=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new Ft({z2:30,style:ne(o,{text:y})});m.attr(this._yearTextPositionControl(m,v[l],a,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,n,a,i,o){var s="left",l="top",u=e[0],f=e[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,n,a,i){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=$y(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=0;d<c[h].length-1;d++){var g=c[h][d].slice(),y=this._firstDayOfMonth[d];if(p){var m=this._firstDayPoints[d];g[v]=(m[v]+c[0][d+1][v])/2}var _=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},x=this._formatterLabel(_,b),w=new Ft({z2:30,style:H(ne(o,{text:x}),this._monthTextPositionControl(g,p,a,u,l))});i.add(w)}}},t.prototype._weekTextPositionControl=function(e,n,a,i,o){var s="center",l="middle",u=e[0],f=e[1],c=a==="start";return n==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,n,a,i,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=$y(f)||n);var v=n.get(["time","dayOfWeekShort"]);f=v||X(n.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(a.end.time,7-a.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];c=et(c,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var g=0;g<7;g++){var y=l.getNextNDay(p,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+h)%7);var S=new Ft({z2:30,style:H(ne(s,{text:f[_]}),this._weekTextPositionControl(m,i,u,c,d))});o.add(S)}}},t.type="calendar",t}(ue),Ig=864e5,nq=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=Hn(t);var e=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+a+"-"+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,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(c){f(i,c)&&(o[a[c]]=i[c]*s[c])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=xe(o,l);D([0,1],function(c){f(i,c)||(i[c]=u[a[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e){W(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),a=this._rangeInfo,i=n.formatedDate;if(e&&!(n.time>=a.start.time&&n.time<a.end.time+Ig))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).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,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,e-1,a):this._getDateByWeeksAndDay(e,n-1,a)},r.prototype.convertToPixel=function(t,e,n){var a=oA(e);return a===this?a.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=oA(e);return a===this?a.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(W(t)&&t.length===1&&(t=t[0]),W(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 a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[a.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 a=Math.floor(e[1].time/Ig)-Math.floor(e[0].time/Ig)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+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:a,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&e<a.fweek||t===a.weeks&&e>a.lweek)return null;var i=(t-1)*7-a.fweek+e,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function oA(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function aq(r){r.registerComponentModel(eq),r.registerComponentView(rq),r.registerCoordinateSystem("calendar",nq)}function iq(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 sA(r,t){var e;return D(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function oq(r,t,e){var n=H({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(Dt(a,n,!0),oi(a,n,{ignoreSize:!0}),UL(e,a),Pc(e,a),Pc(e,a,"shape"),Pc(e,a,"style"),Pc(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var QE=["transition","enterFrom","leaveTo"],sq=QE.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Pc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?QE:sq,a=0;a<n.length;a++){var i=n[a];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function lq(r,t){if(r&&(r.hv=t.hv=[sA(t,["left","right"]),sA(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 uq=function(r){V(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 a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,n),this.option.elements=a},t.prototype.optionUpdated=function(e,n){var a=this.option,i=(n?a:e).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=FI(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(f,c){var h=f.newOption;h&&(u.push(h),iq(f,h),oq(o,c,h),lq(o[c],h))},this),a.elements=Zt(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,n,a){D(e,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(kt),lA={path:null,compoundPath:null,group:mt,image:Pe,text:Ft},Br=zt(),fq=function(r){V(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=ut()},t.prototype.render=function(e,n,a){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,a)},t.prototype._updateElements=function(e){var n=e.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");D(n,function(l){var u=_e(l.id,null),f=u!=null?a.get(u):null,c=_e(l.parentId,null),h=c!=null?a.get(c):i,v=l.type,p=l.style;v==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&RE(p,v,!!g,!!d)){var y=EE(p,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=cq(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,w=f;x?w=uA(u,h,l.type,a):(w&&(Br(w).isNew=!1),BE(w)),w&&(nh(w,m,e,{isInit:x}),fA(w,l,o,s))}else if(b){oh(f,l,a,e);var T=uA(u,h,l.type,a);T&&(nh(T,m,e,{isInit:!0}),fA(T,l,o,s))}else _==="remove"&&(OE(f,l),oh(f,l,a,e));var C=a.get(u);if(C&&d)if(S){var A=C.getTextContent();A?A.attr(d):C.setTextContent(new Ft(d))}else b&&C.setTextContent(new Ft(d));if(C){var M=l.clipPath;if(M){var I=M.type,L=void 0,x=!1;if(S){var P=C.getClipPath();x=!P||Br(P).type!==I,L=x?Vm(I):P}else b&&(x=!0,L=Vm(I));C.setClipPath(L),nh(L,M,e,{isInit:x}),jh(L,M.keyframeAnimation,e)}var R=Br(C);C.setTextConfig(g),R.option=l,hq(C,e,l),Zs({el:C,componentModel:e,itemName:C.name,itemTooltipOption:l.tooltip}),jh(C,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,n){for(var a=e.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],h=_e(c.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var p=v.parent,d=p===i,g=Br(v),y=Br(p);g.width=et(g.option.width,d?s:y.width)||0,g.height=et(g.option.height,d?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],h=_e(c.id,null),v=h!=null?o.get(h):null;if(v){var p=v.parent,y=Br(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Uv(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Br(v).isNew&&S){for(var b=c.transition,x={},w=0;w<u.length;w++){var T=u[w],C=_[T];b&&(yo(b)||It(b,T)>=0)?x[T]=C:v[T]=C}Ht(v,x,e,0)}else v.attr(_)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){oh(a,Br(a).option,n,e._lastGraphicModel)}),this._elMap=ut()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ue);function Vm(r){var t=st(lA,r)?lA[r]:K0(r),e=new t({});return Br(e).type=r,e}function uA(r,t,e,n){var a=Vm(e);return t.add(a),n.set(r,a),Br(a).id=r,Br(a).isNew=!0,a}function oh(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){oh(i,t,e,n)}),op(r,t,n),e.removeKey(Br(r).id))}function fA(r,t,e,n){r.isGroup||D([["cursor",Yr.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];st(t,i)?r[i]=St(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),D(Ot(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=vt(i)?i:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function cq(r){return r=H({},r),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(WL),function(t){delete r[t]}),r}function hq(r,t,e){var n=_t(r).eventData;!r.silent&&!r.ignore&&!n&&(n=_t(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function vq(r){r.registerComponentModel(uq),r.registerComponentView(fq),r.registerPreprocessor(function(t){var e=t.graphic;W(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var cA=["x","y","radius","angle","single"],pq=["cartesian2d","polar","singleAxis"];function dq(r){var t=r.get("coordinateSystem");return It(pq,t)>=0}function qa(r){return r+"Axis"}function gq(r,t){var e=ut(),n=[],a=ut();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var p=e.get(h);p&&p[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return n}function JE(r){var t=r.ecModel,e={infoList:[],infoMap:ut()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(qa(n),a);if(i){var o=i.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(i)}}}),e}var Lg=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}(),Ju=function(r){V(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,a){var i=hA(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=hA(e);Dt(this.option,e,!0),Dt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ut(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return D(cA,function(a){var i=this.getReferringComponents(qa(a),u5);if(i.specified){n=!0;var o=new Lg;D(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.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 Lg;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",ge).models[0];v&&D(u,function(p){c.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",ge).models[0]&&h.add(p.componentIndex)})}}}i&&D(cA,function(u){if(i){var f=a.findComponents({mainType:qa(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new Lg;c.add(f[0].componentIndex),e.set(u,c),i=!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,a=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(qa(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){D(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(qa(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;D(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},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 a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],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}(kt);function hA(r){var t={};return D(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var yq=function(r){V(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}(Ju),m1=function(r){V(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,a,i){this.dataZoomModel=e,this.ecModel=n,this.api=a},t.type="dataZoom",t}(ue),mq=function(r){V(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}(m1),us=D,vA=Hr,_q=function(){function r(t,e,n,a){this._dimName=t,this._axisIndex=e,this.ecModel=a,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(dq(e)){var n=qa(this._dimName),a=e.getReferringComponents(n,ge).models[0];a&&this._axisIndex===a.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return yt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;us(["start","end"],function(h,v){var p=t[h],d=t[h+"Value"];i[v]==="percent"?(p==null&&(p=o[v]),d=a.parse(Xt(p,o,e))):(u=!0,d=d==null?e[v]:a.parse(d),p=Xt(d,e,o)),l[v]=d==null||isNaN(d)?e[v]:d,s[v]=p==null||isNaN(p)?o[v]:p}),vA(l),vA(s);var f=this._minMaxSpan;u?c(l,s,e,o,!1):c(s,l,o,e,!0);function c(h,v,p,d,g){var y=g?"Span":"ValueSpan";Oo(0,h,p,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=Xt(h[m],p,d,!0),g&&(v[m]=a.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Sq(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,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;us(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var c=u.getStore(),h=X(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var p,d,g,y=0;y<f.length;y++){var m=c.get(h[y],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else us(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(d){return s(d)?d:NaN}));else{var p={};p[v]=o,u.selectRange(p)}});us(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;us(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Xt(n[0]+o,n,[0,100],!0):i!=null&&(o=Xt(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=RI(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Sq(r,t,e){var n=[1/0,-1/0];us(e,function(o){J4(n,o.getData(),t)});var a=r.getAxisModel(),i=yP(a.axis.scale,a,n).calculate();return[i.min,i.max]}var xq={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(qa(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new _q(a,i,s,r),e.push(o.__dzAxisProxy))});var n=ut();return D(e,function(a){D(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function bq(r){r.registerAction("dataZoom",function(t,e){var n=gq(e,t);D(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var pA=!1;function _1(r){pA||(pA=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,xq),bq(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function wq(r){r.registerComponentModel(yq),r.registerComponentView(mq),_1(r)}var zr=function(){function r(){}return r}(),tk={};function fs(r,t){tk[r]=t}function ek(r){return tk[r]}var Tq=function(r){V(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;D(this.option.feature,function(n,a){var i=ek(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Dt(n,i.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}(kt);function Cq(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=xe(n,i,a);po(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Uv(r,n,i,a)}function rk(r,t){var e=js(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 Aq=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){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=[];D(u,function(p,d){c.push(d)}),new pa(this._featureNames||[],c).add(h).update(h).remove(bt(h,null)).execute(),this._featureNames=c;function h(p,d){var g=c[p],y=c[d],m=u[g],_=new Ut(m,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(Dq(g))S={onclick:_.option.onclick,featureName:g};else{var b=ek(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=Ks("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof zr;if(!g&&y){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(w,T){var C=this.option,A=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,A[w]&&(T==="emphasis"?ha:va)(A[w])},S instanceof zr&&S.render&&S.render(_,n,a,i)}function v(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof zr&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,x;nt(_)?(b={},b[g]=_):b=_,nt(S)?(x={},x[g]=S):x=S;var w=p.iconPaths={};D(b,function(T,C){var A=pf(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(y.getItemStyle());var M=A.ensureState("emphasis");M.style=m.getItemStyle();var I=new Ft({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:j0({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});A.setTextContent(I),Zs({el:A,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),A.__title=x[C],A.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")}),A.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",C])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",C])==="emphasis"?ha:va)(A),o.add(A),A.on("click",it(d.onclick,d,n,a,C)),w[C]=A})}Cq(o,e,a),o.add(rk(o.getBoundingRect(),e)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!vt(_)&&d){var S=_.style||(_.style={}),b=sf(d,Ft.makeFont(S)),x=p.x+o.x,w=p.y+o.y+s,T=!1;w+b.height>a.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){D(this._features,function(o){o instanceof zr&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){D(this._features,function(a){a instanceof zr&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){D(this._features,function(a){a instanceof zr&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(ue);function Dq(r){return r.indexOf("my")===0}var Mq=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Rt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+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,p=o?decodeURIComponent(h[1]):h[1];v&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},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}(zr),dA="__ec_magicType_stack__",Iq=[["line","bar"],["stack"]],Lq=function(r){V(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"),a={};return D(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},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,a){var i=this.model,o=i.get(["seriesIndex",a]);if(gA[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,p=gA[a](h,v,c,i);p&&(dt(p,c.option),s.series.push(p));var d=c.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=d.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 b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};D(Iq,function(c){It(c,a)>=0&&D(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=Dt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(zr),gA={line:function(r,t,e,n){if(r==="bar")return Dt({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 Dt({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 a=e.get("stack")===dA;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Dt({id:t,stack:a?"":dA},n.get(["option","stack"])||{},!0)}};$n({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var sp=new Array(60).join("-"),Fs=" ";function Pq(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Rq(r){var t=[];return D(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(X(e.series,function(v){return v.name})),l=[a.model.getCategories()];D(e.series,function(v){var p=v.getRawData();l.push(v.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(Fs)],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(Fs))}t.push(u.join(`
|
||
`))}),t.join(`
|
||
|
||
`+sp+`
|
||
|
||
`)}function Eq(r){return X(r,function(t){var e=t.getRawData(),n=[t.name],a=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Fs:"")+a.join(Fs))}),n.join(`
|
||
`)}).join(`
|
||
|
||
`+sp+`
|
||
|
||
`)}function kq(r){var t=Pq(r);return{value:Zt([Rq(t.seriesGroupByCategoryAxis),Eq(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
||
`+sp+`
|
||
|
||
`),meta:t.meta}}function tv(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Oq(r){var t=r.slice(0,r.indexOf(`
|
||
`));if(t.indexOf(Fs)>=0)return!0}var zm=new RegExp("["+Fs+"]+","g");function Nq(r){for(var t=r.split(/\n+/g),e=tv(t.shift()).split(zm),n=[],a=X(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=tv(t[i]).split(zm);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function Bq(r){for(var t=r.split(/\n+/g),e=tv(t.shift()),n=[],a=0;a<t.length;a++){var i=tv(t[a]);if(i){var o=i.split(zm),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:e,data:n}}function Vq(r,t){var e=r.split(new RegExp(`
|
||
*`+sp+`
|
||
*`,"g")),n={series:[]};return D(e,function(a,i){if(Oq(a)){var o=Nq(a),s=t[i],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=Bq(a);n.series.push(o)}}),n}var zq=function(r){V(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 a=n.getDom(),i=this.model;this._dom&&a.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=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),h=i.get("contentToOption"),v=kq(e);if(vt(c)){var p=c(n.getOption());nt(p)?u.innerHTML=p:Ls(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.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",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.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:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){a.removeChild(o),b._dom=null}yy(_,"click",x),yy(S,"click",function(){if(h==null&&c!=null||h!=null&&c==null){x();return}var w;try{vt(h)?w=h(u,n.getOption()):w=Vq(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.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}(zr);function Fq(r,t){return X(r,function(e,n){var a=t&&t[n];if(gt(a)&&!W(a)){var i=gt(e)&&!W(e);i||(e={value:e});var o=a.name!=null&&e.name==null;return e=dt(e,a),o&&delete e.name,e}else return e})}$n({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];D(r.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)e.push(H({type:"scatter"},n));else{var i=a.get("data");e.push({name:n.name,data:Fq(n.data,i)})}}),t.mergeOption(dt({series:e},r.newOption))});var nk=D,ak=zt();function Gq(r,t){var e=S1(r);nk(t,function(n,a){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function Hq(r){var t=S1(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return nk(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function Wq(r){ak(r).snapshots=null}function Uq(r){return S1(r).length}function S1(r){var t=ak(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var $q=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Wq(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}(zr);$n({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var Yq=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],x1=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=yA(e,t);D(Xq,function(o,s){(!n||!n.include||It(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Pg[n.brushType](0,i,a);n.__rangeOffset={offset:xA[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){D(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&D(i.coordSyses,function(o){var s=Pg[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){D(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Pg[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?xA[n.brushType](i.values,o.offset,Zq(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return X(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:hE(a),isTargetByCursor:pE(a,t,n.coordSysModel),getLinearBrushOtherExtent:vE(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&It(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=yA(e,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<mA.length;l++)if(mA[l](a,o))return o}return!0},r}();function Fm(r){return r[0]>r[1]&&r.reverse(),r}function yA(r,t){return uu(r,t,{includeMainTypes:Yq})}var Xq={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=ut(),o={},s={};!e&&!n&&!a||(D(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];D(u.getCartesians(),function(c,h){(It(e,c.getAxis("x").model)>=0||It(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:_A.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){D(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:_A.geo})})}},mA=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],_A={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(vo(r)),t}},Pg={lineX:bt(SA,0),lineY:bt(SA,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Fm([a[0],i[0]]),Fm([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=X(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function SA(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Fm(X([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var xA={lineX:bt(bA,0),lineY:bt(bA,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 X(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function bA(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function Zq(r,t){var e=wA(r),n=wA(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function wA(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Gm=D,qq=a5("toolbox-dataZoom_"),Kq=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new K_(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),Jq(e,n,this,i,a),Qq(e,n)},t.prototype.onclick=function(e,n,a){jq[a].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 a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new x1(b1(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,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)}}),Gq(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,p=l(u,v,i),d=p.findRepresentativeAxisProxy(v).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(c=Oo(0,c.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var p=v.getAxisModel(u,f.componentIndex);p&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];Gm(e,function(a,i){n.push(yt(a))}),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}(zr),jq={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Hq(this.ecModel))}};function b1(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 Qq(r,t){r.setIconStatus("back",Uq(t)>1?"emphasis":"normal")}function Jq(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new x1(b1(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}IG("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=b1(n),o=uu(r,i);Gm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Gm(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:qq+u+c};h[f]=c,a.push(h)}return a});function tK(r){r.registerComponentModel(Tq),r.registerComponentView(Aq),fs("saveAsImage",Mq),fs("magicType",Lq),fs("dataView",zq),fs("dataZoom",Kq),fs("restore",$q),Lt(wq)}var eK=function(r){V(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}(kt);function ik(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function ok(r){if(Rt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var sk=ok(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),rK=ok(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function lk(r,t){if(!r)return t;t=GL(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function nK(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var aK=lk(rK,"transition"),w1=lk(sk,"transform"),iK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Rt.transform3dSupported?"will-change:transform;":"");function oK(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function sK(r,t,e){if(!nt(e)||e==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");t=To(t);var i=oK(e),o=Math.max(Math.round(a)*1.5,6),s="",l=w1+":",u;It(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var p=t+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+d.join("")+'"></div>'}function lK(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=Rt.transformSupported?","+w1+n:",left"+n+",top"+n),aK+":"+a}function TA(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Rt.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Rt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+w1+":"+o+";":[["top",0],["left",0],[sk,o]]}function uK(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),D(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function fK(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=x2(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(lK(a,e)),i&&n.push("background-color:"+i),D(["width","color","radius"],function(v){var p="border-"+v,d=GL(p),g=r.get(d);g!=null&&n.push(p+":"+g+(v==="color"?"":"px"))}),n.push(uK(f)),c!=null&&n.push("padding:"+js(c).join("px ")+"px"),n.join(";")+";"}function CA(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&NV(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var cK=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,Rt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(nt(i)?document.querySelector(i):Ls(i)?i:vt(i)&&i(t.getDom()));CA(this._styleCoord,a,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=a.handler,f=a.painter.getViewportRoot();kr(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=nK(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=iK+fK(t,!this._firstShow,this._longHide)+TA(i[0],i[1],!0)+("border-color:"+To(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(nt(i)&&n.get("trigger")==="item"&&!ik(n)&&(s=sK(n,a,i)),nt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",W(t)||(t=[t]);for(var l=0;l<t.length;l++)Ls(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.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var n=this._styleCoord;if(CA(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var a=this.el.style,i=TA(n[0],n[1]);D(i,function(o){a[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",Rt.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(it(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}(),hK=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),DA(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,a,i){var o=this;gt(t)&&Wt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ft({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:x2(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["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=AA(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 a=this._styleCoord;DA(a,this._zr,t,e),t=a[0],e=a[1];var i=n.style,o=ka(i.borderWidth||0),s=AA(i);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(it(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function ka(r){return Math.max(0,r)}function AA(r){var t=ka(r.shadowBlur||0),e=ka(r.shadowOffsetX||0),n=ka(r.shadowOffsetY||0);return{left:ka(t-e),right:ka(t+e),top:ka(t-n),bottom:ka(t+n)}}function DA(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var vK=new Vt({shape:{x:-1,y:-1,width:2,height:2}}),pK=function(r){V(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(!(Rt.node||!n.getDom())){var a=e.getComponent("tooltip"),i=this._renderMode=c5(a.get("renderMode"));this._tooltipContent=i==="richText"?new hK(n):new cK(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(e,n,a){if(!(Rt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?el(this,"_updatePosition",50,"fixRate"):Fu(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");YE("itemTooltip",this._api,it(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||Rt.node||!a.getDom())){var o=MA(i,a);this._ticket="";var s=i.dataByCoordSys,l=mK(i,n,a);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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=vK;f.x=i.x,f.y=i.y,f.update(),_t(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var c=XE(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(MA(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.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=El([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=_t(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ro(a,function(f){if(_t(f).dataIndex!=null)return l=f,!0;if(_t(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 a=e.get("showDelay");n=it(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=El([n.tooltipOption],i),l=this._renderMode,u=[],f=Me("section",{blocks:[],noHeader:!0}),c=[],h=new gd;D(e,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=WE(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=Me("section",{header:x,noHeader:!an(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),D(_.seriesDataIndices,function(T){var C=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=C.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=T_(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",To(M.color),l);var I=pb(C.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=El([C],i).get("valueFormatter");w.blocks.push(P?H({valueFormatter:P},L):L)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,p=s.get("order"),d=Sb(f,h,l,p,a.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);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,a){var i=this._ecModel,o=_t(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,p=e.positionDefault,d=El([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new gd;y.marker=m.makeTooltipMarker("item",To(y.color),v);var _=pb(u.formatTooltip(f,!1,c)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?Sb(b?H({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=_t(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(nt(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=yt(l),l.content=fr(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,p=El(c,this._tooltipModel,v?{position:v}:null),d=p.get("content"),g=Math.random()+"",y=new gd;this._showOrMove(p,function(){var m=yt(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,e.offsetX,e.offsetY,e.position,n,y)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,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,p=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),d=p.color;if(h)if(nt(h)){var g=e.ecModel.get("useUTC"),y=W(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=zv(y.axisValue,v,g)),v=HL(v,a,!0)}else if(vt(h)){var _=it(function(S,b){S===this._ticket&&(c.setContent(b,f,e,d,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,e,d,l),c.show(e,d),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||W(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!W(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,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"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),vt(n)&&(n=n([a,i],s,o.el,p,{viewSize:[u,f],contentSize:c.slice()})),W(n))a=et(n[0],u),i=et(n[1],f);else if(gt(n)){var d=n;d.width=c[0],d.height=c[1];var g=xe(d,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(nt(n)&&l){var y=yK(n,p,c,e.get("borderWidth"));a=y[0],i=y[1]}else{var y=dK(a,i,o,u,f,h?null:20,v?null:20);a=y[0],i=y[1]}if(h&&(a-=IA(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=IA(v)?c[1]/2:v==="bottom"?c[1]:0),ik(e)){var y=gK(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(h,v){var p=c[v]||{},d=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&d.length===g.length,o&&D(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[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){Rt.node||!n.getDom()||(Fu(this,"_updatePosition"),this._tooltipContent.dispose(),Nm("itemTooltip",n))},t.type="tooltip",t}(ue);function El(r,t,e){var n=t.ecModel,a;e?(a=new Ut(e,n,n),a=new Ut(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ut&&(o=o.get("tooltip",!0)),nt(o)&&(o={formatter:o}),o&&(a=new Ut(o,a,n)))}return a}function MA(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function dK(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function gK(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function yK(r,t,e,n){var a=e[0],i=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-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function IA(r){return r==="center"||r==="middle"}function mK(r,t,e){var n=V0(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=lf(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=_t(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function _K(r){Lt(Df),r.registerComponentModel(eK),r.registerComponentView(pK),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},pe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},pe)}var SK=["rect","polygon","keep","clear"];function xK(r,t){var e=qt(r?r.brush:[]);if(e.length){var n=[];D(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;W(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),bK(s),t&&!s.length&&s.push.apply(s,SK)}}function bK(r){var t={};D(r,function(e){t[e]=1}),r.length=0,D(t,function(e,n){r.push(n)})}var LA=D;function PA(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Hm(r,t,e){var n={};return LA(t,function(i){var o=n[i]=a();LA(r[i],function(s,l){if(Ae.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Ae(u),l==="opacity"&&(u=yt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ae(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function uk(r,t,e){var n;D(e,function(a){t.hasOwnProperty(a)&&PA(t[a])&&(n=!0)}),n&&D(e,function(a){t.hasOwnProperty(a)&&PA(t[a])?r[a]=yt(t[a]):delete r[a]})}function wK(r,t,e,n,a,i){var o={};D(r,function(c){var h=Ae.prepareVisualTypes(t[c]);o[c]=h});var s;function l(c){return v_(e,s,c)}function u(c,h){P2(e,s,c,h)}e.each(f);function f(c,h){s=c;var v=e.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var p=n.call(a,c),d=t[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(c,l,u)}}}function TK(r,t,e,n){var a={};return D(r,function(i){var o=Ae.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return v_(s,c,b)}function f(b,x){P2(s,c,b,x)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var p=n!=null?h.get(l,c):c,d=e(p),g=t[d],y=a[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}function CK(r){var t=r.brushType,e={point:function(n){return RA[t].point(n,e,r)},rect:function(n){return RA[t].rect(n,e,r)}};return e}var RA={lineX:EA(0),lineY:EA(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])&&Zi(e.range,r[0],r[1])},rect:function(r,t,e){var n=e.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(Zi(n,a,i)||Zi(n,a+o,i)||Zi(n,a,i+s)||Zi(n,a+o,i+s)||Mt.create(r).contain(l[0],l[1])||Wl(a,i,a+o,i,n)||Wl(a,i,a,i+s,n)||Wl(a+o,i,a+o,i+s,n)||Wl(a,i+s,a+o,i+s,n))return!0}}};function EA(r){var t=["x","y"],e=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return kl(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[r]],n[t[r]]+n[e[r]]];return s[1]<s[0]&&s.reverse(),kl(s[0],o)||kl(s[1],o)||kl(o[0],s)||kl(o[1],s)}}}}function kl(r,t){return t[0]<=r&&r<=t[1]}var kA=["inBrush","outOfBrush"],Rg="__ecBrushSelect",Wm="__ecInBrushSelectEvent";function fk(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new x1(t.option,r);e.setInputRanges(t.areas,r)})}function AK(r,t,e){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),fk(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:yt(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],h=[],v=[],p=!1;s||(a=u.throttleType,i=u.throttleDelay);var d=X(o.areas,function(b){var x=LK[b.brushType],w=dt({boundingRect:x?x(b):void 0},b);return w.selectors=CK(w),w}),g=Hm(o.option,kA,function(b){b.mappingMethod="fixed"});W(f)&&D(f,function(b){c[b]=1});function y(b){return f==="all"||!!c[b]}function m(b){return!!b.length}r.eachSeries(function(b,x){var w=v[x]=[];b.subType==="parallel"?_(b,x):S(b,x,w)});function _(b,x){var w=b.coordinateSystem;p=p||w.hasAxisBrushed(),y(x)&&w.eachActiveState(b.getData(),function(T,C){T==="active"&&(h[C]=1)})}function S(b,x,w){if(!(!b.brushSelector||IK(o,x))&&(D(d,function(C){o.brushTargetManager.controlSeries(C,b,r)&&w.push(C),p=p||m(w)}),y(x)&&m(w))){var T=b.getData();T.each(function(C){OA(b,w,T,C)&&(h[C]=1)})}}r.eachSeries(function(b,x){var w={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(w);var T=v[x],C=b.getData(),A=y(x)?function(M){return h[M]?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return OA(b,T,C,M)?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(x)?p:m(T))&&wK(kA,g,C,A)})}),DK(t,a,i,n,e)}function DK(r,t,e,n,a){if(a){var i=r.getZr();if(!i[Wm]){i[Rg]||(i[Rg]=MK);var o=el(i,Rg,e,t);o(r,n)}}}function MK(r,t){if(!r.isDisposed()){var e=r.getZr();e[Wm]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[Wm]=!1}}function OA(r,t,e,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(r.brushSelector(n,e,o.selectors,o))return!0}}function IK(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(W(e)?It(e,t)<0:t!==e)}var LK={rect:function(r){return NA(r.range)},polygon:function(r){for(var t,e=r.range,n=0,a=e.length;n<a;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=e[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&NA(t)}};function NA(r){return new Mt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var PK=function(r){V(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 K_(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){fk(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:yt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:yt(a),$from:n})},t.type="brush",t}(ue),RK="#ddd",EK=function(r){V(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 a=this.option;!n&&uk(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:RK},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=X(e,function(n){return BA(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=BA(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}(kt);function BA(r,t){return Dt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ut(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var kK=["rect","polygon","lineX","lineY","keep","clear"],OK=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return D(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var n={show:!0,type:kK.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}(zr);function NK(r){r.registerComponentView(PK),r.registerComponentModel(EK),r.registerPreprocessor(xK),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,AK),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"},pe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},pe),fs("brush",OK)}var BK=function(r){V(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}(kt),VK=function(r){V(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,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=St(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ft({style:ne(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new Ft({style:ne(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),d=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!p&&!g,v.silent=!d&&!g,p&&f.on("click",function(){Lh(p,"_"+e.get("target"))}),d&&v.on("click",function(){Lh(d,"_"+e.get("subtarget"))}),_t(f).eventData=_t(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=xe(m,{width:a.getWidth(),height:a.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"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new Vt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},t.type="title",t}(ue);function zK(r){r.registerComponentModel(BK),r.registerComponentView(VK)}var VA=function(r){V(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,a){this.mergeDefaultAndTheme(e,a),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||[],a=e.axisType,i=this._names=[],o;a==="category"?(o=[],D(n,function(u,f){var c=_e($s(u),""),h;gt(u)?(h=yt(u),h.value=f):h=f,o.push(h),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new er([{name:"value",type:s}],this);l.initData(o,i)},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}(kt),ck=function(r){V(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=pi(VA.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}(VA);me(ck,Yv.prototype);var FK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(ue),GK=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(pn),Eg=Math.PI,zA=zt(),HK=function(r){V(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,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Me("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,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 a=e.get(["label","position"]),i=e.get("orient"),o=UK(e,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":nt(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Eg/2},c=i==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),v=h.get("show",!0),p=v?h.get("itemSize"):0,d=v?h.get("itemGap"):0,g=p+d,y=e.get(["label","rotate"])||0;y=y*Eg/180;var m,_,S,b=h.get("position",!0),x=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),C=0,A=c;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[A-p,0],A-=g)):(x&&(m=[A-p,0],A-=g),w&&(_=[0,0],C+=g),T&&(S=[A-p,0],A-=g));var M=[C,A];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:d}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Ar(),l=o.x,u=o.y+o.height;Fn(s,s,[-l,-u]),Io(s,s,-Eg/2),Fn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),h=m(i.getBoundingRect()),v=[a.x,a.y],p=[i.x,i.y];p[0]=v[0]=f[0][0];var d=e.labelPosOpt;if(d==null||nt(d)){var g=d==="+"?0:1;_(v,c,f,1,g),_(p,h,f,1,1-g)}else{var g=d>=0?0:1;_(v,c,f,1,g),p[1]=v[1]+d}a.setPosition(v),i.setPosition(p),a.rotation=i.rotation=e.rotation,y(a),y(i);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,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType"),o=WK(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new GK("value",o,e.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new mt;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Te({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:H({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Te({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:dt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(e,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),v=c.getModel(["emphasis","itemStyle"]),p=c.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:it(o._changeTimeline,o,u.value)},g=FA(c,h,n,d);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),ho(g);var y=_t(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],D(u,function(f){var c=f.tickValue,h=l.getItemModel(c),v=h.getModel("label"),p=h.getModel(["emphasis","label"]),d=h.getModel(["progress","label"]),g=a.dataToCoord(f.tickValue),y=new Ft({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:it(o._changeTimeline,o,c),silent:!1,style:ne(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=ne(p),y.ensureState("progress").style=ne(d),n.add(y),ho(y),zA(y).dataIndex=c,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,n,a,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);h(e.nextBtnPosition,"next",it(this._changeTimeline,this,c?"-":"+")),h(e.prevBtnPosition,"prev",it(this._changeTimeline,this,c?"+":"-")),h(e.playPosition,f?"stop":"play",it(this._handlePlayClick,this,!f),!0);function h(v,p,d,g){if(v){var y=cn(St(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=$K(i,p+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,n.add(_),ho(_)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=it(u._handlePointerDrag,u),c.ondragend=it(u._handlePointerDragend,u),GA(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){GA(c,u._progressLine,s,a,i)}};this._currentPointer=FA(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,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,o=Hr(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),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 un(e,n,!0)},t.prototype._findNearestTick=function(e){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<a&&(a=f,i=l)}),i},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,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<e);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",zA(a[i]).dataIndex<=e)},t.type="timeline.slider",t}(FK);function WK(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Qv({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new b_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new da}}function UK(r,t){return xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function $K(r,t,e,n){var a=n.style,i=pf(r.get(["controlStyle",t]),n||{},new Mt(e[0],e[1],e[2],e[3]));return a&&i.setStyle(a),i}function FA(r,t,e,n,a,i){var o=t.get("color");if(a)a.setColor(o),e.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=ye(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),e.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=Dt({rectHover:!0,z2:100},n,!0);var u=rl(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Po(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,a.attr(n),a.updateTransform(),a}function GA(r,t,e,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",e));if(i||!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)}}}function YK(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var a=e.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),dt({currentIndex:a.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 XK(r){var t=r&&r.timeline;W(t)||(t=t?[t]:[]),D(t,function(e){e&&ZK(e)})}function ZK(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),HA(r),ji(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});ji(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!ji(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}D(r.data||[],function(a){gt(a)&&!W(a)&&(!ji(a,"value")&&ji(a,"name")&&(a.value=a.name),HA(a))})}function HA(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};D(n,function(o,s){!i[s]&&!ji(a,s)&&(a[s]=o)}),e.label&&!ji(n,"emphasis")&&(n.emphasis=e.label,delete e.label)}function ji(r,t){return r.hasOwnProperty(t)}function qK(r){r.registerComponentModel(ck),r.registerComponentView(HK),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),YK(r),r.registerPreprocessor(XK)}function T1(r,t){if(!r)return!1;for(var e=W(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function Rc(r){So(r,"label",["show"])}var Ec=zt(),ya=function(r){V(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,a){this.mergeDefaultAndTheme(e,a),this._mergeOption(e,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Rt.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,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Ec(s)[o];if(!l||!l.data){Ec(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Rc(l),D(l.data,function(f){f instanceof Array?(Rc(f[0]),Rc(f[1])):Rc(f)}),u=this.createMarkerModelFromSeries(l,this,n),H(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Ec(s)[o]=u},this)},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return Me("section",{header:this.name,blocks:[Me("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 a=Yv.prototype.getDataParams.call(this,e,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},t.getMarkerModelFromSeries=function(e,n){return Ec(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(kt);me(ya,Yv.prototype);var KK=function(r){V(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,a){return new t(e,n,a)},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}(ya);function Um(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function jK(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function kc(r,t,e,n,a,i){var o=[],s=si(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=C1(t,l,r),f=t.indicesOfNearest(l,u)[0];o[a]=t.get(e,f),o[i]=t.get(l,f);var c=t.get(n,f),h=Ln(t.get(n,f));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var kg={min:bt(kc,"min"),max:bt(kc,"max"),average:bt(kc,"average"),median:bt(kc,"median")};function tf(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!jK(t)&&!W(t.coord)&&W(a)){var i=hk(t,e,n,r);if(t=yt(t),t.type&&kg[t.type]&&i.baseAxis&&i.valueAxis){var o=It(a,i.baseAxis.dim),s=It(a,i.valueAxis.dim),l=kg[t.type](e,i.baseDataDim,i.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||!W(a))t.coord=[];else for(var u=t.coord,f=0;f<2;f++)kg[u[f]]&&(u[f]=C1(e,e.mapDimension(a[f]),u[f]));return t}}function hk(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(QK(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function QK(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function ef(r,t){return r&&r.containData&&t.coord&&!Um(t)?r.containData(t.coord):!0}function JK(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Um(t)&&!Um(e)?r.containZone(t.coord,e.coord):!0}function vk(r,t){return r?function(e,n,a,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Ja(o,t[i])}:function(e,n,a,i){return Ja(e.value,t[i])}}function C1(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Og=zt(),A1=function(r){V(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=ut()},t.prototype.render=function(e,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){Og(s).keep=!1}),n.eachSeries(function(s){var l=ya.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!Og(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(e){Og(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;D(e,function(i){var o=ya.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?iL(l):$0(l))})}})},t.type="marker",t}(ue);function WA(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),o,s=et(i.get("x"),e.getWidth()),l=et(i.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var u=r.get(n.dimensions[0],a),f=r.get(n.dimensions[1],a);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var tj=function(r){V(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,a){n.eachSeries(function(i){var o=ya.getMarkerModelFromSeries(i,"markPoint");o&&(WA(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Sf),c=ej(o,e,n);n.setData(c),WA(n.getData(),e,i),c.each(function(h){var v=c.getItemModel(h),p=v.getShallow("symbol"),d=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(vt(p)||vt(d)||vt(g)||vt(y)){var _=n.getRawValue(h),S=n.getDataParams(h);vt(p)&&(p=p(_,S)),vt(d)&&(d=d(_,S)),vt(g)&&(g=g(_,S)),vt(y)&&(y=y(_,S))}var b=v.getModel("itemStyle").getItemStyle(),x=gf(l,"color");b.fill||(b.fill=x),c.setItemVisual(h,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){_t(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(A1);function ej(r,t,e){var n;r?n=X(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return H(H({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new er(n,e),i=X(e.get("data"),bt(tf,t));r&&(i=Zt(i,bt(ef,r)));var o=vk(!!r,n);return a.initData(i,null,o),a}function rj(r){r.registerComponentModel(KK),r.registerComponentView(tj),r.registerPreprocessor(function(t){T1(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var nj=function(r){V(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,a){return new t(e,n,a)},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}(ya),Oc=zt(),aj=function(r,t,e,n){var a=r.getData(),i;if(W(n))i=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=Le(n.yAxis,n.xAxis);else{var u=hk(n,a,t,r);s=u.valueAxis;var f=oP(a,u.valueDataDim);l=C1(a,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=yt(n),p={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,p.coord[h]=1/0;var d=e.get("precision");d>=0&&Gt(l)&&(l=+l.toFixed(Math.min(d,20))),v.coord[c]=p.coord[c]=l,i=[v,p,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[tf(r,i[0]),tf(r,i[1]),H({},i[2])];return g[2].type=g[2].type||null,Dt(g[2],g[0]),Dt(g[2],g[1]),g};function ev(r){return!isNaN(r)&&!isFinite(r)}function UA(r,t,e,n){var a=1-r,i=n.dimensions[r];return ev(t[a])&&ev(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function ij(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(UA(1,e,n,r)||UA(0,e,n,r)))return!0}return ef(r,t[0])&&ef(r,t[1])}function Ng(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=et(o.get("x"),a.getWidth()),u=et(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,c=r.get(f[0],t),h=r.get(f[1],t);s=i.dataToPoint([c,h])}if(Eo(i,"cartesian2d")){var v=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;ev(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):ev(r.get(f[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var oj=function(r){V(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,a){n.eachSeries(function(i){var o=ya.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Oc(o).from,u=Oc(o).to;l.each(function(f){Ng(l,f,!0,i,a),Ng(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new q_);this.group.add(f.group);var c=sj(o,e,n),h=c.from,v=c.to,p=c.line;Oc(n).from=h,Oc(n).to=v,n.setData(p);var d=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");W(d)||(d=[d,d]),W(g)||(g=[g,g]),W(y)||(y=[y,y]),W(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),b.stroke==null&&(b.stroke=h.getItemVisual(S,"style").fill),p.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:b})}),f.updateData(p),c.line.eachItemGraphicEl(function(S){_t(S).dataModel=n,S.traverse(function(b){_t(b).dataModel=n})});function _(S,b,x){var w=S.getItemModel(b);Ng(S,b,x,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=gf(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:St(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:St(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:St(w.get("symbolSize"),g[x?0:1]),symbol:St(w.get("symbol",!0),d[x?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(A1);function sj(r,t,e){var n;r?n=X(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return H(H({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new er(n,e),i=new er(n,e),o=new er([],e),s=X(e.get("data"),bt(aj,t,r,e));r&&(s=Zt(s,bt(ij,r)));var l=vk(!!r,n);return a.initData(X(s,function(u){return u[0]}),null,l),i.initData(X(s,function(u){return u[1]}),null,l),o.initData(X(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function lj(r){r.registerComponentModel(nj),r.registerComponentView(oj),r.registerPreprocessor(function(t){T1(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var uj=function(r){V(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,a){return new t(e,n,a)},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}(ya),Nc=zt(),fj=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=tf(r,a),s=tf(r,i),l=o.coord,u=s.coord;l[0]=Le(l[0],-1/0),l[1]=Le(l[1],-1/0),u[0]=Le(u[0],1/0),u[1]=Le(u[1],1/0);var f=D0([{},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 rv(r){return!isNaN(r)&&!isFinite(r)}function $A(r,t,e,n){var a=1-r;return rv(t[a])&&rv(e[a])}function cj(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return Eo(r,"cartesian2d")?e&&n&&($A(1,e,n)||$A(0,e,n))?!0:JK(r,a,i):ef(r,a)||ef(r,i)}function YA(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=et(o.get(e[0]),a.getWidth()),u=et(o.get(e[1]),a.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=i.clampData(f),v=i.clampData(c),p=[];e[0]==="x0"?p[0]=h[0]>v[0]?c[0]:f[0]:p[0]=h[0]>v[0]?f[0]:c[0],e[1]==="y0"?p[1]=h[1]>v[1]?c[1]:f[1]:p[1]=h[1]>v[1]?f[1]:c[1],s=n.getMarkerPosition(p,e,!0)}else{var d=r.get(e[0],t),g=r.get(e[1],t),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Eo(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(e[0],t),g=r.get(e[1],t);rv(d)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):rv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var XA=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],hj=function(r){V(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,a){n.eachSeries(function(i){var o=ya.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=X(XA,function(c){return YA(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new mt});this.group.add(f.group),this.markKeep(f);var c=vj(o,e,n);n.setData(c),c.each(function(h){var v=X(XA,function(T){return YA(c,h,T,e,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(c.get("x0",h)),p.parse(c.get("x1",h))],_=[d.parse(c.get("y0",h)),d.parse(c.get("y1",h))];Hr(m),Hr(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),b=!S;c.setItemLayout(h,{points:v,allClipped:b});var x=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=gf(l,"color");x.fill||(x.fill=w,nt(x.fill)&&(x.fill=mh(x.fill,.4))),x.stroke||(x.stroke=w),c.setItemVisual(h,"style",x)}),c.diff(Nc(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var p=new or({shape:{points:v.points}});c.setItemGraphicEl(h,p),f.group.add(p)}}).update(function(h,v){var p=Nc(f).data.getItemGraphicEl(v),d=c.getItemLayout(h);d.allClipped?p&&f.group.remove(p):(p?Ht(p,{shape:{points:d.points}},n,h):p=new or({shape:{points:d.points}}),c.setItemGraphicEl(h,p),f.group.add(p))}).remove(function(h){var v=Nc(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var p=c.getItemModel(v),d=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),Ne(h,De(p),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:nt(d.fill)?mh(d.fill,1):"#000"}),Oe(h,p),ce(h,null,null,p.get(["emphasis","disabled"])),_t(h).dataModel=n}),Nc(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(A1);function vj(r,t,e){var n,a,i=["x0","y0","x1","y1"];if(r){var o=X(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return H(H({},c),{name:u,ordinalMeta:null})});a=X(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new er(a,e)}else a=[{name:"value",type:"float"}],n=new er(a,e);var s=X(e.get("data"),bt(fj,t,r,e));r&&(s=Zt(s,bt(cj,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return Ja(v,a[h])}:function(u,f,c,h){return Ja(u.value,a[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}function pj(r){r.registerComponentModel(uj),r.registerComponentView(hj),r.registerPreprocessor(function(t){T1(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var dj=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"])}},$m=function(r){V(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,a){this.mergeDefaultAndTheme(e,a),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,a=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),W(n)&&D(n,function(i,o){nt(i)&&(i={type:i}),n[o]=Dt(i,dj(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<e.length;a++){var i=e[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],a=[];e.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();e.isSeriesFiltered(l)||(a=a.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&B0(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=ut(),s=X(i,function(l){return(nt(l)||Gt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ut(l,this,this.ecModel))},this);this._data=Zt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;D(i,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;D(e,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;D(e,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&It(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}(kt),ts=bt,Ym=D,Bc=mt,pk=function(r){V(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 Bc),this.group.add(this._selectorGroup=new Bc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=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,a,l,s,u);var f=e.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=xe(f,c,h),p=this.layoutInner(e,o,v,i,l,u),d=xe(dt({width:p.width,height:p.height},f),c,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rk(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=ut(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Ym(n.getData(),function(v,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===`
|
||
`)){var g=new Bc;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,v,n,e,_,b,S,c,i);x.on("click",ts(ZA,d,null,i,h)).on("mouseover",ts(Xm,y.name,null,i,h)).on("mouseout",ts(Zm,y.name,null,i,h)),a.ssr&&x.eachChild(function(w){var T=_t(w);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),f.set(d,!0)}else a.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),A=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),I=Dr(A.fill);I&&I[3]===0&&(I[3]=.2,A=H(H({},A),{fill:sa(I,"rgba")}));var L=this._createItem(w,d,p,v,n,e,{},A,M,c,i);L.on("click",ts(ZA,null,d,i,h)).on("mouseover",ts(Xm,null,d,i,h)).on("mouseout",ts(Zm,null,d,i,h)),a.ssr&&L.eachChild(function(P){var R=_t(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();Ym(e,function(u){var f=u.type,c=new Ft({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Ne(c,{normal:h,emphasis:v},{defaultText:u.title}),ho(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,h){var v=e.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=gj(f,i,l,u,v,g,h),b=new Bc,x=i.getModel("textStyle");if(vt(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:p,itemHeight:d,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;b.add(yj({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,C=s,A=o.get("formatter"),M=n;nt(A)&&A?M=A.replace("{name}",n??""):vt(A)&&(M=A(n));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Ft({style:ne(x,{text:M,x:T,y:d/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new Vt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Zs({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(b),ho(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();po(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){po("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],p=e.get("selectorButtonGap",!0),d=e.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?v[d]+=f[g]+p:c[d]+=h[g]+p,v[1-d]+=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]+p+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+v[1-d]),_}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}(ue);function gj(r,t,e,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Ym(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:ks(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="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),!i){var p=t.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?n.lineWidth>0&&d?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 yj(r){var t=r.icon||"roundRect",e=ye(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 ZA(r,t,e,n){Zm(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Xm(r,t,e,n)}function dk(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;n<a&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function Xm(r,t,e,n){dk(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Zm(r,t,e,n){dk(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}function mj(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 Ol(r,t,e){var n={},a=r==="toggleSelected",i;return e.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),i=o.isSelected(t.name));var s=o.getData();D(s,function(l){var u=l.get("name");if(!(u===`
|
||
`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function _j(r){r.registerAction("legendToggleSelect","legendselectchanged",bt(Ol,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",bt(Ol,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",bt(Ol,"inverseSelect")),r.registerAction("legendSelect","legendselected",bt(Ol,"select")),r.registerAction("legendUnSelect","legendunselected",bt(Ol,"unSelect"))}function gk(r){r.registerComponentModel($m),r.registerComponentView(pk),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,mj),r.registerSubTypeDefaulter("legend",function(){return"plain"}),_j(r)}var Sj=function(r){V(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,a){var i=Qs(e);r.prototype.init.call(this,e,n,a),qA(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),qA(this,this.option,e)},t.type="legend.scroll",t.defaultOption=pi($m.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}($m);function qA(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,oi(t,e,{type:"box",ignoreSize:!!a})}var KA=mt,Bg=["width","height"],Vg=["x","y"],xj=function(r){V(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 KA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new KA)},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,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=W(c)?c:[c,c];p("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Ft({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=pf(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:it(u._pageGo,u,y,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=d,f.add(m)}},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Bg[u],c=Vg[u],h=Bg[1-u],v=Vg[1-u];o&&po("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=yt(a);o&&(y[f]=a[f]-d[f]-p);var m=this._layoutContentAndController(e,i,y,u,f,h,v,c);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[c]-=_}m[f]+=d[f]+p,g[1-u]+=m[v]+m[h]/2-d[h]/2,m[h]=Math.max(m[h],d[h]),m[v]=Math.min(m[v],d[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;po(e.get("orient"),f,e.get("itemGap"),i?a.width:null,i?null:a.height),po("horizontal",h,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=v[o]>a[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=St(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=v[s]/2-p[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var b={x:0,y:0};if(b[o]=d?a[o]:v[o],b[s]=Math.max(v[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),c.__rectSize=a[o],d){var x={x:0,y:0};x[o]=Math.max(a[o]-p[o]-_,0),x[s]=b[s],c.setClipPath(new Vt({shape:x})),c.__rectSize=x[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]},d?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.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),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Bg[o],l=Vg[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,p={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var d=S(c);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(pk);function bj(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function wj(r){Lt(gk),r.registerComponentModel(Sj),r.registerComponentView(xj),bj(r)}function Tj(r){Lt(gk),Lt(wj)}var Cj=function(r){V(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=pi(Ju.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ju),D1=zt();function Aj(r,t,e){D1(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function Dj(r,t){for(var e=D1(r).coordSysRecordMap,n=e.keys(),a=0;a<n.length;a++){var i=n[a],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||yk(e,o))}}}function yk(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function Mj(r,t){var e={model:t,containsPoint:bt(Lj,t),dispatchAction:bt(Ij,r),dataZoomInfoMap:null,controller:null},n=e.controller=new Cf(r.getZr());return D(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!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 Ij(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Lj(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function Pj(r){var t,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[e+s]>n[e+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Rj(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=D1(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ut());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=JE(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Mj(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=ut());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){yk(a,i);return}var f=Pj(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),el(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Ej=function(r){V(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,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Aj(a,e,{pan:it(zg.pan,this),zoom:it(zg.zoom,this),scrollMove:it(zg.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Dj(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(m1),zg={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=Fg[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*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Oo(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:jA(function(r,t,e,n,a,i){var o=Fg[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:jA(function(r,t,e,n,a,i){var o=Fg[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function jA(r){return function(t,e,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,a);if(Oo(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Fg={grid:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,n,a){var i=e.axis,o={},s=a.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=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,n,a){var i=e.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function mk(r){_1(r),r.registerComponentModel(Cj),r.registerComponentView(Ej),Rj(r)}var kj=function(r){V(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=pi(Ju.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:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Ju),Nl=Vt,QA=7,Oj=1,Gg=30,Nj=7,Bl="horizontal",JA="vertical",Bj=5,Vj=["line","bar","candlestick","scatter"],zj={easing:"cubicOut",duration:100,delay:0},Fj=function(r){V(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=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),el(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}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Fu(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 mt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?Nj:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Bl?{right:s.width-o.x-o.width,top:s.height-Gg-QA-i,width:o.width,height:Gg}:{right:QA,top:o.y,width:Gg,height:o.height},u=Qs(e.option);D(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var f=xe(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===JA&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Bl&&!o?{scaleY:l?1:-1,scaleX:1}:a===Bl&&o?{scaleY:l?1:-1,scaleX:-1}:a===JA&&!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,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Nl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Nl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),s=this.api.getZr();i?(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)),a.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var v=[0,n[1]],p=[0,n[0]],d=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(C,A){if(_>0&&A%_){m+=y;return}var M=C==null||isNaN(C)||C==="",I=M?0:Xt(C,c,v,!0);M&&!S&&A?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function x(C){var A=b.getModel(C?"selectedDataBackground":"dataBackground"),M=new mt,I=new or({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new sr({shape:{points:f},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var w=0;w<3;w++){var T=x(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 a,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!a&&!(n!==!0&&It(Vj,u.get("type"))<0)){var f=i.getComponent(qa(o),s).axis,c=Gj(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c),a={thisAxis:f,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=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 Nl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Nl({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:Oj,fill:"rgba(0,0,0,0)"}})),D([0,1],function(_){var S=l.get("handleIcon");!Eh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=ye(S,-1,0,2,2,null,!0);b.attr({cursor:tD(this._orient),draggable:!0,drift:it(this._onDragMove,this,_),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=et(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ho(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(a[_]=b);var C=l.getModel("textStyle");e.add(i[_]=new Ft({silent:!0,invisible:!0,style:ne(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=h;if(c){var p=et(l.get("moveHandleSize"),s[1]),d=n.moveHandle=new Vt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=ye(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));v=n.moveZone=new Vt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),v.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:tD(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Xt(e[0],[0,100],n,!0),Xt(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Oo(n,i,o,a.get("zoomLock")?"all":e,s.minSpan!=null?Xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Xt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Hr([Xt(i[0],o,l,!0),Xt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=Hr(a.slice()),o=this._size;D([0,1],function(v){var p=n.handles[v],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:a[v]+(v?-1:1),y:o[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[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,i[0],i[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,a=this._displayables,i=a.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=Hr(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(p){var d=vo(a.handles[p].parent,this.group),g=Bv(p===0?"right":"left",d),y=this._handleWidth/2+Bj,m=un([h[p]+(p===0?-y:y),this._size[1]/2],d);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===Bl?"middle":g,align:o===Bl?g:"center",text:s[p]})}},t.prototype._formatLabel=function(e,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.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(i)?i(e,s):nt(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!e),a[1].attr("invisible",!e),n.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(e,n,a,i){this._dragging=!0,fa(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=un([n,a],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,a=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new Ct(n,a),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 a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Hr([Xt(a.x,o,s,!0),Xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(fa(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Nl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.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?zj:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=JE(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(m1);function Gj(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function tD(r){return r==="vertical"?"ns-resize":"ew-resize"}function _k(r){r.registerComponentModel(kj),r.registerComponentView(Fj),_1(r)}function Hj(r){Lt(mk),Lt(_k)}var Sk={get:function(r,t,e){var n=yt((Wj[r]||{})[t]);return e&&W(n)?n[n.length-1]:n}},Wj={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]}},eD=Ae.mapVisual,Uj=Ae.eachVisual,$j=W,rD=D,Yj=Hr,Xj=Xt,nv=function(r){V(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,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&uk(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Hm(this.option.controller,n,e),this.targetVisuals=Hm(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(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){D(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],W(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]?a[0]+" "+f[1]:e[1]===s[1]?a[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=Yj([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 a=e.dimensions,i=a.length-1;i>=0;i--){var o=a[i],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,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Dt(i,a),Dt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){$j(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 p=c[h],d=c[v];p&&!d&&(d=c[v]={},rD(p,function(g,y){if(Ae.isValidType(y)){var m=Sk.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";rD(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=h&&yt(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&yt(v)||(s?m[0]:[m[0],m[0]])),_.symbol=eD(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;Uj(S,function(x){x>b&&(b=x)}),_.symbolSize=eD(S,function(x){return Xj(x,[0,b],[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}(kt),nD=[20,140],Zj=function(r){V(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(a){a.mappingMethod="linear",a.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]=nD[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=nD[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):W(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),D(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=Hr((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,a=this.getExtent();return(n[0]<=a[0]||n[0]<=e)&&(n[1]>=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=aD(this,"outOfRange",this.getExtent()),a=aD(this,"inRange",this.option.range.slice()),i=[];function o(v,p){i.push({value:v,color:e(v,p)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=pi(nv.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}(nv);function aD(r,t,e){if(e[0]===e[1])return e.slice();for(var n=200,a=(e[1]-e[0])/n,i=e[0],o=[],s=0;s<=n&&i<e[1];s++)o.push(i),i+=a;return o.push(e[1]),o}var xk=function(r){V(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,a,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,n,a,i)},t.prototype.renderBackground=function(e){var n=this.visualMapModel,a=js(n.get("padding")||0),i=e.getBoundingRect();e.add(new Vt({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,n,a){a=a||{};var i=a.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,p){s[v]=p}var c=o.controllerVisuals[i||o.getValueState(e)],h=Ae.prepareVisualTypes(c);return D(h,function(v){var p=c[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",p=c.__alphaForOpacity),Ae.dependsOn(v,n)&&p&&p.applyVisual(e,u,f)}),s[n]},t.prototype.positionGroup=function(e){var n=this.visualMapModel,a=this.api;Uv(e,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(e,n,a,i){},t.type="visualMap",t}(ue),iD=[["left","right","width"],["top","bottom","height"]];function bk(r,t,e){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=iD[o],l=[0,null,10],u={},f=0;f<3;f++)u[iD[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=xe(u,i,n.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function sh(r,t){return D(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var wn=Xt,qj=D,oD=Math.min,Hg=Math.max,Kj=12,jj=6,Qj=function(r){V(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=it(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=it(this._hideIndicator,this)},t.prototype.doRender=function(e,n,a,i){(!i||i.type!=="selectDataRange"||i.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 a=e.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(e,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Ft({style:ne(v,{x:f[0],y:f[1],verticalAlign:h==="horizontal"?"middle":c,align:h==="horizontal"?c:"center",text:i})}))}},t.prototype._renderBar=function(e){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=bk(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new mt;u.add(f),f.add(a.outOfRange=sD()),f.add(a.inRange=sD(null,s?uD(this._orient):null,it(this._dragHandle,this,"all",!1),it(this._dragHandle,this,"all",!0))),f.setClipPath(new Vt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),h=Hg(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,h,o),this._createHandle(n,u,1,i,h,o)),this._createIndicator(n,u,i,h,o),e.add(u)},t.prototype._createHandle=function(e,n,a,i,o,s){var l=it(this._dragHandle,this,a,!1),u=it(this._dragHandle,this,a,!0),f=cn(e.get("handleSize"),i[0]),c=ye(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=uD(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){fa(y.event)}}),c.x=i[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(),to(c,!0),n.add(c);var v=this.visualMapModel.textStyleModel,p=new Ft({cursor:h,draggable:!0,drift:l,onmousemove:function(y){fa(y.event)},ondragend:u,style:ne(v,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[a]=c,g.handleLabelPoints[a]=d,g.handleLabels[a]=p},t.prototype._createIndicator=function(e,n,a,i,o){var s=cn(e.get("indicatorSize"),a[0]),l=ye(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Pe){var f=l.style;l.useStyle(H({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 Ft({silent:!0,invisible:!0,style:ne(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:jj)+a[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],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():lD(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,n=this._dataInterval=e.getSelected(),a=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[wn(n[0],a,i,!0),wn(n[1],a,i,!0)]},t.prototype._updateInterval=function(e,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];Oo(n,i,o,e,0);var s=a.getExtent();this._dataInterval=[wn(i[0],o,s,!0),wn(i[1],o,s,!0)]},t.prototype._updateView=function(e){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new hf(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,n){var a=100,i=[],o=(e[1]-e[0])/a;i.push({color:this.getControllerVisual(e[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new mt(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();qj([0,1],function(f){var c=o[f];c.setStyle("fill",n.handlesColor[f]),c.y=e[f];var h=wn(e[f],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=v/l[0],c.x=l[0]-v/2;var p=un(a.handleLabelPoints[f],vo(c,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){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),p=this.getControllerVisual(e,"symbolSize"),d=wn(e,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var m=un(f.indicatorLabelPoint,vo(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,C),_.animateTo(T,C)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(n){if(e._hovering=!0,!e._dragging){var a=e.visualMapModel.itemSize,i=e._applyTransform([n.offsetX,n.offsetY],e._shapes.mainGroup,!0,!0);i[1]=oD(Hg(0,i[1]),a[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[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 a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();e=oD(Hg(o[0],e),o[1]);var l=Jj(a,s,o),u=[e-l,e+l],f=wn(e,o,s,!0),c=[wn(u[0],o,s,!0),wn(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||lD(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var p=s5(h,v);this._dispatchHighDown("downplay",sh(p[0],a)),this._dispatchHighDown("highlight",sh(p[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(ro(e.target,function(l){var u=_t(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.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 a=0;a<n.length;a++)this.api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",sh(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,a,i){var o=vo(n,i?null:this.group);return W(e)?un(e,o,a):Bv(e,o,a)},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}(xk);function sD(r,t,e,n){return new or({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(a){fa(a.event)},ondragend:n})}function Jj(r,t,e){var n=Kj/2,a=r.get("hoverLinkDataSize");return a&&(n=wn(a,t,e,!0)/2),n}function lD(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function uD(r){return r==="vertical"?"ns-resize":"ew-resize"}var tQ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},eQ=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},rQ=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||e.push(TK(n.stateList,n.targetVisuals,it(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(it(nQ,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(e);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function nQ(r,t,e,n){for(var a=t.targetVisuals[n],i=Ae.prepareVisualTypes(a),o={color:gf(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,c,h)}return o.color;function c(v){return o[v]}function h(v,p){o[v]=p}}var fD=D;function aQ(r){var t=r&&r.visualMap;W(t)||(t=t?[t]:[]),fD(t,function(e){if(e){es(e,"splitList")&&!es(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var n=e.pieces;n&&W(n)&&fD(n,function(a){gt(a)&&(es(a,"start")&&!es(a,"min")&&(a.min=a.start),es(a,"end")&&!es(a,"max")&&(a.max=a.end))})}})}function es(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var cD=!1;function wk(r){cD||(cD=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(tQ,eQ),D(rQ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(aQ))}function Tk(r){r.registerComponentModel(Zj),r.registerComponentView(Qj),wk(r)}var iQ=function(r){V(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 a=this._mode=this._determineMode();this._pieceList=[],oQ[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=yt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(l){return l=yt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=Ae.listVisualTypes(),i=this.isCategory();D(e.pieces,function(s){D(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&D(this.stateList,function(f){(e[f]||(e[f]={}))[l]=Sk.get(l,f==="inRange"?"active":"inactive",i)})},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 a=this.option,i=this._pieceList,o=(n?a:e).selected||{};if(a.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;D(i,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=yt(e)},t.prototype.getValueState=function(e){var n=Ae.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ae.findPieceIndex(l,a);f===e&&o.push(u)},this),n.push({seriesId:i.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 a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=e(h,c);f[0]===-1/0?a[0]=v:f[1]===1/0?a[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 D(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:a}},t.type="visualMap.piecewise",t.defaultOption=pi(nv.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}(nv),oQ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),ix(r),D(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;D(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),hD(t,r)},pieces:function(r){var t=this.option;D(t.pieces,function(e,n){gt(e)||(e={value:e});var a={text:"",index:n};if(e.label!=null&&(a.text=e.label),e.hasOwnProperty("value")){var i=a.value=e.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.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]&&(a.value=o[0])}a.visual=Ae.retrieveVisuals(e),r.push(a)},this),hD(t,r),ix(r),D(r,function(e){var n=e.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function hD(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var sQ=function(r){V(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,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),c=f.endsText,h=Le(n.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],u,h,l),D(f.viewPieceList,function(v){var p=v.piece,d=new mt;d.onclick=it(this._onItemClick,this,p),this._enableHoverLink(d,v.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(g);d.add(new Ft({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(d)},this),c&&this._renderEndsText(e,c[1],u,h,l),po(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:sh(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return bk(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,o){if(n){var s=new mt,l=this.visualMapModel.textStyleModel;s.add(new Ft({style:ne(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=X(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(ye(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=yt(a.selected),s=n.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,D(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}(xk);function Ck(r){r.registerComponentModel(iQ),r.registerComponentView(sQ),wk(r)}function lQ(r){Lt(Tk),Lt(Ck)}var uQ={label:{enabled:!0},decal:{show:!1}},vD=zt(),fQ={};function cQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=yt(uQ);Dt(n.label,r.getLocaleModel().get("aria"),!1),Dt(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=ut();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),vD(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=Zy(h.ecModel,h.name,fQ,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var p=h.getRawData(),d={},g=vD(h).scope;v.each(function(b){var x=v.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=Zy(h.ecModel,w,g,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?H(H({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=dt(c.option,f),!!c.get("enabled")){if(c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,d=Math.min(h,p),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,C){if(C<d){var A=void 0,M=T.get("name"),I=M?"withName":"withoutName";A=h>1?c.get(["series","multiple",I]):c.get(["series","single",I]),A=o(A,{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"]);A+=o(P,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),B=[],N=0;N<L.count();N++)if(N<v){var F=L.getName(N),U=L.getValues(N),Z=c.get(["data",F?"withName":"withoutName"]);B.push(o(Z,{name:F,value:U.join(R)}))}A+=B.join(R)+O,_.push(A)}});var b=c.getModel(["series","multiple","separator"]),x=b.get("middle"),w=b.get("end");g+=_.join(x)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!nt(u))return u;var c=u;return D(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 hQ(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},D(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function vQ(r){r.registerPreprocessor(hQ),r.registerVisual(r.PRIORITY.VISUAL.ARIA,cQ)}var pD={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},pQ=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):DV(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):Gt(e)?this._condVal.test(t+""):!1},r}(),dQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),gQ=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}(),yQ=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}(),mQ=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),_Q=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},r}();function M1(r,t){if(r===!0||r===!1){var e=new dQ;return e.value=r,e}var n="";return Ak(r)||Wt(n),r.and?dD("and",r,t):r.or?dD("or",r,t):r.not?SQ(r,t):xQ(r,t)}function dD(r,t,e){var n=t[r],a="";W(n)||Wt(a),n.length||Wt(a);var i=r==="and"?new gQ:new yQ;return i.children=X(n,function(o){return M1(o,e)}),i.children.length||Wt(a),i}function SQ(r,t){var e=r.not,n="";Ak(e)||Wt(n);var a=new mQ;return a.child=M1(e,t),a.child||Wt(n),a}function xQ(r,t){for(var e="",n=t.prepareGetValue(r),a=[],i=Ot(r),o=r.parser,s=o?l2(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=st(pD,u)?pD[u]:u,c=r[u],h=s?s(c):c,v=f3(f,h)||f==="reg"&&new pQ(h);v||Wt(e),a.push(v)}}a.length||Wt(e);var p=new _Q;return p.valueGetterParam=n,p.valueParser=s,p.getValue=t.getValue,p.subCondList=a,p}function Ak(r){return gt(r)&&!$e(r)}var bQ=function(){function r(t,e){this._cond=M1(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function wQ(r,t){return new bQ(r,t)}var TQ={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=wQ(r.config,{valueGetterAttrMap:ut({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)}}),a=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),n.evaluate()&&a.push(e);return{data:a}}},CQ={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",a=qt(e);a.length||Wt(n);var i=[];D(a,function(f){var c=f.dimension,h=f.order,v=f.parser,p=f.incomparable;if(c==null&&Wt(n),h!=="asc"&&h!=="desc"&&Wt(n),p&&p!=="min"&&p!=="max"){var d="";Wt(d)}if(h!=="asc"&&h!=="desc"){var g="";Wt(g)}var y=t.getDimensionInfo(c);y||Wt(n);var m=v?l2(v):null;v&&!m&&Wt(n),i.push({dimIdx:y.index,parser:m,comparator:new f2(h,p)})});var o=t.sourceFormat;o!==Ye&&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<i.length;h++){var v=i[h],p=t.retrieveValueFromItem(f,v.dimIdx),d=t.retrieveValueFromItem(c,v.dimIdx);v.parser&&(p=v.parser(p),d=v.parser(d));var g=v.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function AQ(r){r.registerTransform(TQ),r.registerTransform(CQ)}var DQ=function(r){V(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,a){r.prototype.init.call(this,e,n,a),this._sourceManager=new p2(this),mb(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),mb(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Bn},t}(kt),MQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(ue);function IQ(r){r.registerComponentModel(DQ),r.registerComponentView(MQ)}var xn=Wn.CMD;function ds(r,t){return Math.abs(r-t)<1e-5}function qm(r){var t=r.data,e=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(L,P){a&&a.length>2&&n.push(a),a=[L,P]}function f(L,P,R,O){ds(L,R)&&ds(P,O)||a.push(L,P,R,O,R,O)}function c(L,P,R,O,B,N){var F=Math.abs(P-L),U=Math.tan(F/4)*4/3,Z=P<L?-1:1,Q=Math.cos(L),ft=Math.sin(L),ht=Math.cos(P),Tt=Math.sin(P),xt=Q*B+R,G=ft*N+O,$=ht*B+R,K=Tt*N+O,j=B*U*Z,J=N*U*Z;a.push(xt-j*ft,G+J*Q,$+j*Tt,K-J*ht,$,K)}for(var h,v,p,d,g=0;g<e;){var y=t[g++],m=g===1;switch(m&&(i=t[g],o=t[g+1],s=i,l=o,(y===xn.L||y===xn.C||y===xn.Q)&&(a=[s,l])),y){case xn.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case xn.L:h=t[g++],v=t[g++],f(i,o,h,v),i=h,o=v;break;case xn.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case xn.Q:h=t[g++],v=t[g++],p=t[g++],d=t[g++],a.push(i+2/3*(h-i),o+2/3*(v-o),p+2/3*(h-p),d+2/3*(v-d),p,d),i=p,o=d;break;case xn.A:var _=t[g++],S=t[g++],b=t[g++],x=t[g++],w=t[g++],T=t[g++]+w;g+=1;var C=!t[g++];h=Math.cos(w)*b+_,v=Math.sin(w)*x+S,m?(s=h,l=v,u(s,l)):f(i,o,h,v),i=Math.cos(T)*b+_,o=Math.sin(T)*x+S;for(var A=(C?-1:1)*Math.PI/2,M=w;C?M>T:M<T;M+=A){var I=C?Math.max(M+A,T):Math.min(M+A,T);c(M,I,_,S,b,x)}break;case xn.R:s=i=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 xn.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function Km(r,t,e,n,a,i,o,s,l,u){if(ds(r,e)&&ds(t,n)&&ds(a,o)&&ds(i,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-t,p=Math.sqrt(h*h+v*v);h/=p,v/=p;var d=e-r,g=n-t,y=a-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var b=h*d+v*g,x=-h*y-v*m,w=_-b*b,T=S-x*x;if(w<c&&b>=0&&T<c&&x>=0){l.push(o,s);return}var C=[],A=[];ai(r,e,a,o,.5,C),ai(t,n,i,s,.5,A),Km(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),Km(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function LQ(r,t){var e=qm(r),n=[];t=t||1;for(var a=0;a<e.length;a++){var i=e[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],h=i[u++],v=i[u++],p=i[u++],d=i[u++];Km(s,l,f,c,h,v,p,d,o,t),s=p,l=d}n.push(o)}return n}function Dk(r,t,e){var n=r[t],a=r[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*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 gD(r,t,e){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=Dk([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;v<c.length;v++)for(var p=(f?u:s)/c[v],d=0;d<c[v];d++){var g={};f?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=n+p*d,g.r=n+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+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 PQ(r,t,e){for(var n=r.width,a=r.height,i=n>a,o=Dk([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],p=0;p<o[h];p++){var d={};d[u]=h*c,d[f]=p*v,d[s]=c,d[l]=v,d.x+=r.x,d.y+=r.y,e.push(d)}}function yD(r,t,e,n){return r*n-e*t}function RQ(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,h=yD(f,c,l,u);if(Math.abs(h)<1e-6)return null;var v=r-a,p=t-i,d=yD(v,p,f,c)/h;return d<0||d>1?null:new Ct(d*l+r,d*u+t)}function EQ(r,t,e){var n=new Ct;Ct.sub(n,e,t),n.normalize();var a=new Ct;Ct.sub(a,r,t);var i=a.dot(n);return i}function rs(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function kQ(r,t,e){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=RQ(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&a.push({projPt:EQ(l,t,e),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.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],p=[h],d=[v],i=u.idx+1;i<=f.idx;i++)rs(p,r[i].slice());rs(p,v),rs(p,h);for(var i=f.idx+1;i<=u.idx+n;i++)rs(d,r[i%n].slice());return rs(d,h),rs(d,v),[{points:p},{points:d}]}function mD(r){var t=r.points,e=[],n=[];Pv(t,e,n);var a=new Mt(e[0],e[1],n[0]-e[0],n[1]-e[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new Ct,f=new Ct;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),kQ(t,u,f)}function av(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);av(r,i[0],a,n),av(r,i[1],e-a,n)}return n}function OQ(r,t){for(var e=[],n=0;n<t;n++)e.push(X0(r));return e}function NQ(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function BQ(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function VQ(r,t){var e=[],n=r.shape,a;switch(r.type){case"rect":PQ(n,t,e),a=Vt;break;case"sector":gD(n,t,e),a=ir;break;case"circle":gD({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),a=ir;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=X(LQ(r.getUpdatedPathProxy(),o),function(y){return BQ(y)}),l=s.length;if(l===0)av(mD,{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=X(s,function(y){var m=[],_=[];Pv(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 p=u===l-1?h:Math.ceil(v.area/f*t);p<0||(av(mD,{points:v.poly},p,e),h-=p)}}a=or;break}if(!a)return OQ(r,t);for(var d=[],u=0;u<e.length;u++){var g=new a;g.setShape(e[u]),NQ(r,g),d.push(g)}return d}function zQ(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var a=[],i=[],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 p=o[v-2],d=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],b=o[v++];if(h<=0){c.push(g,y,m,_,S,b);continue}for(var x=Math.min(h,f-1)+1,w=1;w<=x;w++){var T=w/x;ai(p,g,m,S,T,a),ai(d,y,_,b,T,i),p=a[3],d=i[3],c.push(a[1],i[1],a[2],i[2],p,d),g=a[5],y=i[5],m=a[6],_=i[6]}h-=x-1}return o===r?[c,t]:[r,c]}function _D(r,t){for(var e=r.length,n=r[e-2],a=r[e-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function FQ(r,t){for(var e,n,a,i=[],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=zQ(l,u),f=e[0],c=e[1],n=f,a=c):(c=_D(a||l,l),f=l):(f=_D(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function SD(r){for(var t=0,e=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+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 GQ(r,t,e,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,h=0;h<s;h+=2){var v=h===0?f:(f+h-2)%l+2,p=r[v]-e[0],d=r[v+1]-e[1],g=t[h]-n[0],y=t[h+1]-n[1],m=g-p,_=y-d;c+=m*m+_*_}c<i&&(i=c,o=u)}return o}function HQ(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 WQ(r,t,e,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=SD(s),f=SD(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],h=[],v=0,p=1/0,d=[],g=s.length;i&&(s=HQ(s));for(var y=GQ(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]}c[0]=s[y]-u[0],c[1]=s[y+1]-u[1];for(var b=n/e,x=-n/2;x<=n/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var A=c[_],M=c[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*w,R=I*w+L*T;d[_]=P,d[_+1]=R;var O=P-A,B=R-M;C+=O*O+B*B}if(C<p){p=C,v=x;for(var N=0;N<d.length;N++)h[N]=d[N]}}a.push({from:c,to:h,fromCp:u,toCp:f,rotation:-v})}return a}function iv(r){return r.__isCombineMorphing}var Mk="__mOriginal_";function ov(r,t,e){var n=Mk+t,a=r[n]||r[t];r[n]||(r[n]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function _u(r,t){var e=Mk+t;r[e]&&(r[t]=r[e],r[e]=null)}function xD(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function Ik(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=FQ(qm(e),qm(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&xD(i,s),l&&xD(o,l),ov(t,"updateTransform",{replace:u}),t.transform=null;var f=WQ(i,o,10,Math.PI),c=[];ov(t,"buildPath",{replace:function(h){for(var v=t.__morphT,p=1-v,d=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*v,b=y.fromCp,x=y.toCp,w=Math.sin(S),T=Math.cos(S);Wc(d,b,x,v);for(var C=0;C<m.length;C+=2){var A=m[C],M=m[C+1],I=_[C],L=_[C+1],P=A*p+I*v,R=M*p+L*v;c[C]=P*T-R*w+d[0],c[C+1]=P*w+R*T+d[1]}var O=c[0],B=c[1];h.moveTo(O,B);for(var C=2;C<m.length;){var I=c[C++],L=c[C++],N=c[C++],F=c[C++],U=c[C++],Z=c[C++];O===I&&B===L&&N===U&&F===Z?h.lineTo(U,Z):h.bezierCurveTo(I,L,N,F,U,Z),O=U,B=Z}}}})}function I1(r,t,e){if(!r||!t)return t;var n=e.done,a=e.during;Ik(r,t),t.__morphT=0;function i(){_u(t,"buildPath"),_u(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},dt({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},e)),t}function UQ(r,t,e,n,a,i){var o=16;r=a===e?0:Math.round(32767*(r-e)/(a-e)),t=i===n?0:Math.round(32767*(t-n)/(i-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 sv(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=X(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),a=Math.max(c,a),[f,c]}),o=X(i,function(s,l){return{cp:s,z:UQ(s[0],s[1],t,e,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Lk(r){return VQ(r.path,r.count)}function jm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function $Q(r,t,e){var n=[];function a(b){for(var x=0;x<b.length;x++){var w=b[x];iv(w)?a(w.childrenRef()):w instanceof Pt&&n.push(w)}}a(r);var i=n.length;if(!i)return jm();var o=e.dividePath||Lk,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),jm();n=sv(n),s=sv(s);for(var l=e.done,u=e.during,f=e.individualDelay,c=new ea,h=0;h<i;h++){var v=n[h],p=s[h];p.parent=t,p.copyTransform(c),f||Ik(v,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function d(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}ov(t,"addSelfToZr",{after:function(b){d(b)}}),ov(t,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,_u(t,"addSelfToZr"),_u(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?dt({delay:(e.delay||0)+f(h,y,n[h],s[h]),done:_},e):e;I1(n[h],s[h],S)}else t.__morphT=0,t.animateTo({__morphT:1},dt({during:function(b){for(var x=0;x<y;x++){var w=s[x];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)_u(r[b],"updateTransform");l&&l()}},e));return t.__zr&&d(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function YQ(r,t,e){var n=t.length,a=[],i=e.dividePath||Lk;function o(v){for(var p=0;p<v.length;p++){var d=v[p];iv(d)?o(d.childrenRef()):d instanceof Pt&&a.push(d)}}if(iv(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(X0(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),jm()}a=sv(a),t=sv(t);for(var c=e.individualDelay,u=0;u<n;u++){var h=c?dt({delay:(e.delay||0)+c(u,n,a[u],t[u])},e):e;I1(a[u],t[u],h)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function bD(r){return W(r[0])}function wD(r,t){for(var e=[],n=r.length,a=0;a<n;a++)e.push({one:r[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)e[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var XQ={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 a=X0(r.path);a.setStyle("opacity",e),t.push(a)}return t},split:null};function Wg(r,t,e,n,a,i){if(!r.length||!t.length)return;var o=Xs("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;bD(r)&&(u=r,f=t),bD(t)&&(u=t,f=r);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(iv(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?dt({delay:s(_,S)},l):l;I1(T,C,A),i(T,C,T,C,A)}}else for(var M=dt({dividePath:XQ[e],individualDelay:s&&function(B,N,F,U){return s(B+_,S)}},l),I=m?$Q(x,w,M):YQ(w,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,O=0;O<R;O++){var A=s?dt({delay:s(O,R)},l):l;i(L[O],P[O],m?x[O]:y.one,m?y.one:x[O],A)}}for(var h=u?u===r:r.length>t.length,v=u?wD(f,u):wD(h?t:r,[h?r:t]),p=0,d=0;d<v.length;d++)p+=v[d].many.length;for(var g=0,d=0;d<v.length;d++)c(v[d],h,g,p),g+=v[d].many.length}function Xi(r){if(!r)return[];if(W(r)){for(var t=[],e=0;e<r.length;e++)t.push(Xi(r[e]));return t}var n=[];return r.traverse(function(a){a instanceof Pt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var Pk=1e4,ZQ=0,TD=1,CD=2,qQ=zt();function KQ(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var a=r.getDimensionInfo(e[n]);if(a&&a.otherDims[t]===0)return e[n]}}function jQ(r,t,e){var n=r.getDimensionInfo(e),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,t);return a&&a.categories[i]||i+""}}function AD(r,t,e,n){var a=n?"itemChildGroupId":"itemGroupId",i=KQ(r,a);if(i){var o=jQ(r,t,i);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 DD(r){var t=[];return D(r,function(e){var n=e.data,a=e.dataGroupId;if(!(n.count()>Pk))for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:AD(n,o,a,!1),childGroupId:AD(n,o,a,!0),divide:e.divide,dataIndex:o})}),t}function Ug(r,t,e){r.traverse(function(n){n instanceof Pt&&ie(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function $g(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function ns(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function QQ(r,t,e){var n=Xs("update",e,t);n&&r.traverse(function(a){if(a instanceof Yr){var i=XF(a);i&&a.animateFrom({style:i},n)}})}function JQ(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var a=r[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Rk(r,t,e){var n=DD(r),a=DD(t);function i(_,S,b,x,w){(b||_)&&S.animateFrom({style:b&&b!==_?H(H({},b.style),_.style):_.style},w)}var o=!1,s=ZQ,l=ut(),u=ut();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var c=a[f].groupId;if(u.get(c)){s=TD;break}var h=a[f].childGroupId;if(h&&l.get(h)){s=CD;break}}function v(_,S){return function(b){var x=b.data,w=b.dataIndex;return S?x.getId(w):_?s===TD?b.childGroupId:b.groupId:s===CD?b.childGroupId:b.groupId}}var p=JQ(n,a),d={};if(!p)for(var f=0;f<a.length;f++){var g=a[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(_,S){var b=n[S],x=a[_],w=x.data.hostModel,T=b.data.getItemGraphicEl(b.dataIndex),C=x.data.getItemGraphicEl(x.dataIndex);if(T===C){C&&QQ(C,x.dataIndex,w);return}T&&d[T.id]||C&&(ns(C),T?(ns(T),$g(T),o=!0,Wg(Xi(T),Xi(C),x.divide,w,_,i)):Ug(C,w,_))}new pa(n,a,v(!0,p),v(!1,p),null,"multiple").update(m).updateManyToOne(function(_,S){var b=a[_],x=b.data,w=x.hostModel,T=x.getItemGraphicEl(b.dataIndex),C=Zt(X(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==T&&!d[A.id]});T&&(ns(T),C.length?(D(C,function(A){ns(A),$g(A)}),o=!0,Wg(Xi(C),Xi(T),b.divide,w,_,i)):Ug(T,w,b.dataIndex))}).updateOneToMany(function(_,S){var b=n[S],x=b.data.getItemGraphicEl(b.dataIndex);if(!(x&&d[x.id])){var w=Zt(X(_,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==x}),T=a[_[0]].data.hostModel;w.length&&(D(w,function(C){return ns(C)}),x?(ns(x),$g(x),o=!0,Wg(Xi(x),Xi(w),b.divide,T,_[0],i)):D(w,function(C){return Ug(C,T,_[0])}))}}).updateManyToMany(function(_,S){new pa(S,_,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return a[b].data.getId(a[b].dataIndex)}).update(function(b,x){m(_[b],S[x])}).execute()}).execute(),o&&D(t,function(_){var S=_.data,b=S.hostModel,x=b&&e.getViewOfSeriesModel(b),w=Xs("update",b,0);x&&b.isAnimationEnabled()&&w&&w.duration>0&&x.group.traverse(function(T){T instanceof Pt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function MD(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function ID(r){return W(r)?r.sort().join(","):r}function za(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function tJ(r,t){var e=ut(),n=ut(),a=ut();return D(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=MD(i),f=ID(u);n.set(f,{dataGroupId:s,data:l}),W(u)&&D(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=MD(i),u=ID(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:za(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:za(s),data:s}]});else if(W(l)){var c=[];D(l,function(p){var d=n.get(p);d.data&&c.push({dataGroupId:d.dataGroupId,divide:za(d.data),data:d.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:za(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:za(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:za(s)})}}}}),e}function LD(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 eJ(r,t,e,n){var a=[],i=[];D(qt(r.from),function(o){var s=LD(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:za(t.oldData[s]),groupIdDim:o.dimension})}),D(qt(r.to),function(o){var s=LD(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:za(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Rk(a,i,n)}function rJ(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){D(qt(n.seriesTransition),function(a){D(qt(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][th]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var a=qQ(e);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)D(qt(i),function(v){eJ(v,a,n,e)});else{var o=tJ(a,n);D(o.keys(),function(v){var p=o.get(v);Rk(p.oldSeries,p.newSeries,e)})}D(n.updatedSeries,function(v){v[th]&&(v[th]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<Pk&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(h))}})}Lt([h6]);Lt([s6]);Lt([R6,X6,nU,NU,XU,E8,s$,U$,hY,mY,DY,x7,Y7,n9,_9,w9,E9,F9,j9,nX,vX,KX]);Lt(dZ);Lt(GZ);Lt(LR);Lt(tq);Lt(dE);Lt(aq);Lt(vq);Lt(tK);Lt(_K);Lt(Df);Lt(NK);Lt(zK);Lt(qK);Lt(rj);Lt(lj);Lt(pj);Lt(Tj);Lt(Hj);Lt(mk);Lt(_k);Lt(lQ);Lt(Tk);Lt(Ck);Lt(vQ);Lt(AQ);Lt(IQ);Lt(rJ);Lt(DW);const Ek=30;function nJ(r,t){if(r.toLowerCase()=="windows")return{name:"Windows",icon:"/svg/system-windows.svg"};{const e={arch:{name:"Arch Linux",icon:"/svg/system-archlinux.svg"},opensuse:{name:"openSUSE",icon:"/svg/system-opensuse.svg"},ubuntu:{name:"Ubuntu",icon:"/svg/system-ubuntu.svg"},centos:{name:"CentOS",icon:"/svg/system-centos.svg"},debian:{name:"Debian",icon:"/svg/system-debian.svg"}};t=t.toLowerCase();for(const n in e)if(t.includes(n))return e[n];return{name:r,icon:"/svg/system-linux.svg"}}}function kk(r,t=null,e=null){if(r==0)return"0";if(r<1024)return r.toFixed(0)+(e||"");const n=["","K","M","G","T","P","E"];let a=t?n.indexOf(t):Math.floor(Math.log2(r)/10);return(r/Math.pow(1024,a)).toFixed(1)+(e?n[a]+e:"")}function aJ(r){const t=["","K","M","G","T","P","E"];let e=Math.floor(Math.log2(r)/10);return{num:r/Math.pow(1024,e),unit:t[e]}}function PD(r,t,e="iB"){const n=aJ(t);return`${kk(r,n.unit)}/${n.num.toFixed(1)}${n.unit}${e}`}function iJ(r,t=!1){const e=new Date(r*1e3),n=e.toLocaleDateString(),a=e.toLocaleTimeString();return t?a:`${n} ${a}`}function Yg(r,t=!1){return t?"#9ca3af":r<60?"#22c55e":r<80?"#eab308":r<90?"#f97316":"#ef4444"}function Xg(r,t=!1){return t?"#e5e7eb":r<60?"#bbf7d0":r<80?"#fef08a":r<90?"#fed7aa":"#fecaca"}function RD(r){const t=r,e=Math.floor(t/86400),n=Math.floor(t%86400/3600),a=Math.floor(t%3600/60),i=Math.floor(t%60);return`${e}:${n}:${a}:${i}`}const oJ={class:"online-status"},sJ=Gs({__name:"OutlineAnime",props:{color:{},spreadColor:{},isOnline:{type:Boolean}},setup(r){const t=r;return(e,n)=>(On(),Ka("div",oJ,[Yt("div",{class:"dot",style:Su({backgroundColor:t.color})},null,4),e.isOnline?(On(),Ka("div",{key:0,class:"pulse",style:Su({backgroundColor:t.spreadColor})},null,4)):wN("",!0)]))}}),lJ=af(sJ,[["__scopeId","data-v-311f3e51"]]),uJ={class:"host"},fJ={class:"meta-1",style:{display:"flex","justify-content":"space-between"}},cJ={class:"meta1-left",style:{display:"flex","justify-content":"flex-start","align-items":"center"}},hJ={class:"host-name",style:{display:"flex"}},vJ={class:"meta1-right",style:{display:"flex","justify-content":"flex-end","align-items":"center"}},pJ={style:{"margin-right":"5px"}},dJ={class:"meta-2",style:{display:"flex"}},gJ={class:"section"},yJ=["src"],mJ={class:"meta2-text"},_J={class:"labels",style:{display:"flex","justify-content":"flex-start"}},SJ={class:"charts-container",style:{display:"flex","justify-content":"space-between"}},xJ={class:"cpu-info hw-info"},bJ={class:"hw-detail"},wJ={class:"memory-info hw-info"},TJ={class:"hw-detail"},CJ={class:"swap-info hw-info"},AJ={class:"hw-detail"},DJ={class:"net"},MJ=Gs({__name:"Host",props:{status:{}},setup(r){const t=r,e=we(()=>t.status),n=Cn(RD(e.value.meta.uptime));console.log(n.value);const a=Cn(null),i=Cn(null),o=Cn(null),s=Cn(null);let l=[];const u=Cn(!0),f=we(()=>u.value?"#22c55e":"#ff4d4f"),c=we(()=>u.value?"#80ffb0":"#fd8182"),h=Cn("0"),v=we(()=>nJ(e.value.meta.os.name,e.value.meta.os.version)),p=we(()=>PD(e.value.hardware.mem.used,e.value.hardware.mem.total)),d=we(()=>e.value.hardware.swap.total>0?PD(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A");function g(){const y=sc(a.value),m=sc(i.value),_=sc(o.value),S=sc(s.value),b={color:"rgba(0, 0, 0, 0.8)",fontSize:13},x=["65%","90%"],w=["#a2d8f4","#10a0ed"];setInterval(()=>{if(u.value){const C=Date.now()/1e3-e.value.meta.observed_at;n.value=RD(e.value.meta.uptime+C)}},1e3);function T(){const C=Date.now()/1e3-e.value.meta.observed_at;h.value=C.toFixed(1),(l.length===0||l[l.length-1][0]!==e.value.meta.observed_at)&&l.push([e.value.meta.observed_at,e.value.hardware.net.up,e.value.hardware.net.down]),l.length>20&&l.shift(),u.value=C<=Ek,y.setOption({color:[Yg(e.value.hardware.cpu.percent),Xg(e.value.hardware.cpu.percent)],title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:b},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:we(()=>[{value:e.value.hardware.cpu.percent},{value:100-e.value.hardware.cpu.percent}]).value}]}),m.setOption({color:[Yg(e.value.hardware.mem.used/e.value.hardware.mem.total*100),Xg(e.value.hardware.mem.used/e.value.hardware.mem.total*100)],title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:b},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:e.value.hardware.mem.used},{value:e.value.hardware.mem.total-e.value.hardware.mem.used}]}]}),_.setOption({color:[Yg(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0),Xg(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0)],title:{text:e.value.hardware.swap.total>0?`${(e.value.hardware.swap.used/e.value.hardware.swap.total*100).toFixed(1)}%`:"N/A",left:"center",top:"center",textStyle:b},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:e.value.hardware.swap.total>0?e.value.hardware.swap.used:0},{value:e.value.hardware.swap.total>0?e.value.hardware.swap.total-e.value.hardware.swap.used:100}]}]}),S.setOption({color:w,title:{text:"Network"},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{saveAsImage:{}}},grid:{top:"25%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:l.map(A=>A[0]),axisLabel:{formatter:function(A){return iJ(A,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(A){return kk(A*8,null,"b")}}}],series:[{name:"Up",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:l.map(A=>A[1])},{name:"Down",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:l.map(A=>A[2])}]})}T(),tu(()=>e.value,()=>{T()})}return d0(()=>{g()}),(y,m)=>(On(),Ka("div",uJ,[Yt("div",fJ,[Yt("div",cJ,[tr(lJ,{class:"outline-anime",color:f.value,spreadColor:c.value,"is-online":u.value},null,8,["color","spreadColor","is-online"]),Yt("span",hJ,Sr(t.status.meta.name),1)]),Yt("div",vJ,[Yt("div",pJ,Sr(n.value),1)])]),Yt("div",dJ,[Yt("div",gJ,[Yt("img",{class:"icon",src:v.value.icon,alt:"system"},null,8,yJ),Yt("span",mJ,Sr(v.value.name)+" · "+Sr(t.status.meta.location),1)])]),Yt("div",_J,[(On(!0),Ka(br,null,dM(t.status.meta.labels,_=>(On(),Ka("span",{class:"label",key:_},Sr(_),1))),128))]),Yt("div",SJ,[Yt("div",xJ,[Yt("div",{class:"chart",ref_key:"cpuChartRef",ref:a},null,512),m[0]||(m[0]=Yt("div",{class:"hw-title"},"CPU",-1)),Yt("div",bJ,Sr(e.value.hardware.cpu.cores)+"C "+Sr(e.value.hardware.cpu.logics)+"T",1)]),Yt("div",wJ,[Yt("div",{class:"chart",ref_key:"memoryChartRef",ref:i},null,512),m[1]||(m[1]=Yt("div",{class:"hw-title"},"Mem",-1)),Yt("div",TJ,Sr(p.value),1)]),Yt("div",CJ,[Yt("div",{class:"chart",ref_key:"swapChartRef",ref:o},null,512),m[2]||(m[2]=Yt("div",{class:"hw-title"},"Swap",-1)),Yt("div",AJ,Sr(d.value),1)])]),Yt("div",DJ,[Yt("div",{class:"net-chart",ref_key:"netChartRef",ref:s},null,512)])]))}}),IJ=af(MJ,[["__scopeId","data-v-3f17d921"]]),LJ={class:"overview",style:{}},PJ={class:"grid-container"},RJ=Gs({__name:"Home",setup(r){const t=Cn({}),e=Cn(0),n=we(()=>{const i=Date.now()/1e3;let o=0;for(const s of Object.values(t.value))i-s.meta.observed_at<Ek&&o++;return e.value=Object.values(t.value).length-o,o}),a=setInterval(async()=>{t.value=await DS()},1e3);return d0(async()=>{t.value=await DS()}),g0(()=>{clearInterval(a)}),(i,o)=>(On(),Ka(br,null,[Yt("div",LJ,[Yt("h2",null,"Overview: "+Sr(n.value)+" Online "+Sr(e.value)+" Offline",1)]),Yt("div",PJ,[(On(!0),Ka(br,null,dM(t.value,(s,l)=>(On(),kM(IJ,{class:"grid-item",key:l,status:s},null,8,["status"]))),128))])],64))}}),EJ=af(RJ,[["__scopeId","data-v-050eb678"]]),kJ={};function OJ(r,t){return" Test "}const NJ=af(kJ,[["render",OJ]]),BJ=[{path:"/",name:"主页",component:EJ},{path:"/test",name:"测试",component:NJ}],VJ=lV({history:VB("/"),routes:BJ}),Ok=nB(sB);Ok.use(VJ);Ok.mount("#app");
|