7 lines
256 KiB
JavaScript
7 lines
256 KiB
JavaScript
import{i as G,r as la,m as N,c as W,e as S,a as H,b as tt,d as fe,f as Ws,g as k,h as ie,j as me,k as m0,l as O,n as Z,L as Id,o as In,p as Le,P as De,q as nc,s as _0,t as ve,u as x0,T as ra,v as Ln,w as rt,x as K,Z as zt,y as J,z as S0,A as b0,B as w0,C as T0,D as Nl,E as Ri,F as Nt,G as Ld,S as Gt,R as ro,H as fr,I as At,J as oe,K as Ze,M as Pd,N as Vl,O as A0,Q,U as ae,V as C0,W as Rd,X as zl,Y as M0,_ as ge,$ as Ei,a0 as we,a1 as Pn,a2 as j,a3 as U,a4 as Xe,a5 as D0,a6 as ee,a7 as at,a8 as pe,a9 as z,aa as Hs,ab as I0,ac as bt,ad as Us,ae as L0,af as Ed,ag as P0,ah as ma,ai as ic,aj as Eo,ak as R0,al as ua,am as $s,an as E0,ao as oc,ap as kd,aq as Od,ar as ao,as as Bd,at as sc,au as ko,av as k0,aw as O0,ax as Hn,ay as lc,az as uc,aA as B0,aB as N0,aC as ir,aD as Rn,aE as V0,aF as cc,aG as or,aH as z0,aI as G0,aJ as F0,aK as un,aL as W0,aM as En,aN as H0,aO as U0,aP as Oo,aQ as xi,aR as Bo,aS as $0,aT as Nd,aU as cn,aV as fn,aW as Y0,aX as Vd,aY as fc,aZ as Z0,a_ as X0,a$ as K0,b0 as q0,b1 as j0,b2 as J0,b3 as Q0,b4 as e_}from"./zrender.d54ce080.js";import{_ as P}from"./tslib.60310f1a.js";var hc=1e-4,zd=20;function t_(r){return r.replace(/^\s+|\s+$/g,"")}function he(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function $(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 G(r)?t_(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function xe(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),zd),r=(+r).toFixed(t),e?r:+r}function Rt(r){return r.sort(function(t,e){return t-e}),r}function Et(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 r_(r)}function r_(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Gd(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function a_(r,t,e){if(!r[t])return 0;var a=la(r,function(d,p){return d+(isNaN(p)?0:p)},0);if(a===0)return 0;for(var n=Math.pow(10,e),i=N(r,function(d){return(isNaN(d)?0:d)/a*n*100}),o=n*100,s=N(i,function(d){return Math.floor(d)}),l=la(s,function(d,p){return d+p},0),u=N(i,function(d,p){return d-s[p]});l<o;){for(var c=Number.NEGATIVE_INFINITY,f=null,v=0,h=u.length;v<h;++v)u[v]>c&&(c=u[v],f=v);++s[f],u[f]=0,++l}return s[t]/n}function n_(r,t){var e=Math.max(Et(r),Et(t)),a=r+t;return e>zd?a:xe(a,e)}function Fd(r){var t=Math.PI*2;return(r%t+t)%t}function ki(r){return r>-hc&&r<hc}var i_=/^(?:(\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 wt(r){if(r instanceof Date)return r;if(G(r)){var t=i_.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 o_(r){return Math.pow(10,Gl(r))}function Gl(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 Wd(r,t){var e=Gl(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function vc(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Oi(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function Hd(r){return!isNaN(Oi(r))}function Ud(){return Math.round(Math.random()*9)}function $d(r,t){return t===0?r:$d(t,r%t)}function dc(r,t){return r==null?t:t==null?r:r*t/$d(r,t)}function Ge(r){throw new Error(r)}function pc(r,t,e){return(t-r)*e+r}var Yd="series\0",Zd="\0_ec_\0";function le(r){return r instanceof Array?r:r==null?[]:[r]}function Bi(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var gc=["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 _a(r){return H(r)&&!k(r)&&!(r instanceof Date)?r.value:r}function s_(r){return H(r)&&!(r instanceof Array)}function Xd(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=W();S(t,function(l,u){if(!H(l)){t[u]=null;return}});var s=l_(r,o,e);return(a||n)&&u_(s,r,o,t),a&&c_(s,t),a||n?f_(s,t,n):i&&h_(s,t),v_(s),s}function l_(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||hn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function u_(r,t,e,a){S(a,function(n,i){if(!(!n||n.id==null)){var o=Qa(n.id),s=e.get(o);if(s!=null){var l=r[s];tt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function c_(r,t){S(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!hn(e)&&!hn(i)&&Kd("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function f_(r,t,e){S(t,function(a){if(!!a){for(var n,i=0;(n=r[i])&&(n.newOption||hn(n.existing)||n.existing&&a.id!=null&&!Kd("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function h_(r,t){S(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function v_(r){var t=W();S(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),S(r,function(e){var a=e.newOption;tt(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),S(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(!!H(i)){if(o.name=i.name!=null?Qa(i.name):n?n.name:Yd+a,n)o.id=Qa(n.id);else if(i.id!=null)o.id=Qa(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 Kd(r,t,e){var a=ke(t[r],null),n=ke(e[r],null);return a!=null&&n!=null&&a===n}function Qa(r){return ke(r,"")}function ke(r,t){return r==null?t:G(r)?r:fe(r)||Ws(r)?r+"":t}function Fl(r){var t=r.name;return!!(t&&t.indexOf(Yd))}function hn(r){return r&&r.id!=null&&Qa(r.id).indexOf(Zd)===0}function d_(r){return Zd+r}function p_(r,t,e){S(r,function(a){var n=a.newOption;H(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=g_(t,n,a.existing,e))})}function g_(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function y_(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=ke(o[u].seriesId,null);if(f==null)return;for(var v=le(o[u].dataIndex),h=l&&l[f],d=0,p=v.length;d<p;d++){var g=v[d];h&&h[g]?h[g]=null:(s[f]||(s[f]={}))[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 c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Or(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return k(t.dataIndex)?N(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return k(t.name)?N(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ne(){var r="__ec_inner_"+m_++;return function(t){return t[r]||(t[r]={})}}var m_=Ud();function en(r,t,e){var a=Wl(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var f=kn(r,c,u,{useDefault:l===c,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Wl(r,t){var e;if(G(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=W(),i={},o=!1;return S(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&ie(t.includeMainTypes,c)<0)){o=o||!!c;var v=n.get(c)||n.set(c,{});v[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Me={useDefault:!0,enableAll:!1,enableNone:!1},__={useDefault:!1,enableAll:!0,enableNone:!0};function kn(r,t,e,a){a=a||Me;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(tt(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(tt(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s)}function qd(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function x_(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function S_(r){return r==="auto"?me.domSupported?"html":"richText":r||"html"}function jd(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(fe(a)){var o=pc(e||0,a,n);return xe(o,i?Math.max(Et(e||0),Et(a)):t)}else{if(G(a))return n<1?e:a;for(var s=[],l=e,u=a,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var v=r.getDimensionInfo(f);if(v&&v.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,d=u[f],o=pc(h,d,n);s[f]=xe(o,i?Math.max(Et(h),Et(d)):t)}}return s}}var b_=".",dr="___EC__COMPONENT__CONTAINER___",Jd="___EC__EXTENDED_CLASS___";function xt(r){var t={main:"",sub:""};if(r){var e=r.split(b_);t.main=e[0]||"",t.sub=e[1]||""}return t}function w_(r){tt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function T_(r){return!!(r&&r[Jd])}function Hl(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return A_(a)?n=function(i){P(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},m0(n,this)),O(n.prototype,e),n[Jd]=!0,n.extend=this.extend,n.superCall=D_,n.superApply=I_,n.superClass=a,n}}function A_(r){return Z(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Qd(r,t){r.extend=t.extend}var C_=Math.round(Math.random()*10);function M_(r){var t=["__\0is_clz",C_++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function D_(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function I_(r,t,e){return this.superClass.prototype[t].apply(r,e)}function no(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){w_(n),a.prototype.type=n;var i=xt(n);if(!i.sub)t[i.main]=a;else if(i.sub!==dr){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[dr]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=xt(a),i=[],o=t[n.main];return o&&o[dr]?S(o,function(s,l){l!==dr&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=xt(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return S(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=xt(a),i=t[n.main];return i&&i[dr]};function e(a){var n=t[a.main];return(!n||!n[dr])&&(n=t[a.main]={},n[dr]=!0),n}}function ca(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ie(n,l)>=0||i&&ie(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var L_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],P_=ca(L_),R_=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return P_(this,t,e)},r}(),q=ne(),E_=function(r,t,e,a){if(a){var n=q(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,a.type==="group"&&a.traverse(function(i){var o=q(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},yc=1,mc={},ep=ne(),Ul=ne(),$l=0,io=1,oo=2,nt=["emphasis","blur","select"],Ni=["normal","emphasis","blur","select"],tp=10,k_=9,Dr="highlight",Si="downplay",tn="select",bi="unselect",rn="toggleSelect";function Ur(r){return r!=null&&r!=="none"}var _c=new Id(100);function xc(r){if(G(r)){var t=_c.get(r);return t||(t=nc(r,-.1),_c.put(r,t)),t}else if(_0(r)){var e=O({},r);return e.colorStops=N(r.colorStops,function(a){return{offset:a.offset,color:nc(a.color,-.1)}}),e}return r}function so(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function rp(r){so(r,"emphasis",oo)}function ap(r){r.hoverState===oo&&so(r,"normal",$l)}function Yl(r){so(r,"blur",io)}function np(r){r.hoverState===io&&so(r,"normal",$l)}function O_(r){r.selected=!0}function B_(r){r.selected=!1}function Sc(r,t,e){t(r,e)}function Ft(r,t,e){Sc(r,t,e),r.isGroup&&r.traverse(function(a){Sc(a,t,e)})}function Ys(r,t){switch(t){case"emphasis":r.hoverState=oo;break;case"normal":r.hoverState=$l;break;case"blur":r.hoverState=io;break;case"select":r.selected=!0}}function N_(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l==null?a&&a[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function V_(r,t,e,a){var n=e&&ie(e,"select")>=0,i=!1;if(r instanceof De){var o=ep(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Ur(s)||Ur(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=O({},a),u=O({},u),u.fill=s):!Ur(u.fill)&&Ur(s)?(i=!0,a=O({},a),u=O({},u),u.fill=xc(s)):!Ur(u.stroke)&&Ur(l)&&(i||(a=O({},a),u=O({},u)),u.stroke=xc(l)),a.style=u}}if(a&&a.z2==null){i||(a=O({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c!=null?c:tp)}return a}function z_(r,t,e){if(e&&e.z2==null){e=O({},e);var a=r.z2SelectLift;e.z2=r.z2+(a!=null?a:k_)}return e}function G_(r,t,e){var a=ie(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:N_(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:a?n:i.opacity*.1},o),e.style=o),e}function No(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return V_(this,r,t,e);if(r==="blur")return G_(this,r,e);if(r==="select")return z_(this,r,e)}return e}function Zl(r){r.stateProxy=No;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=No),e&&(e.stateProxy=No)}function bc(r,t){!lp(r,t)&&!r.__highByOuter&&Ft(r,rp)}function wc(r,t){!lp(r,t)&&!r.__highByOuter&&Ft(r,ap)}function fa(r,t){r.__highByOuter|=1<<(t||0),Ft(r,rp)}function ha(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ft(r,ap)}function F_(r){Ft(r,Yl)}function ip(r){Ft(r,np)}function op(r){Ft(r,O_)}function sp(r){Ft(r,B_)}function lp(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function up(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Ul(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){np(u)}),s&&e.push(i)),o.isBlured=!1}),S(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Zs(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var v=u.getItemGraphicEl(c[f]);v&&ip(v)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var v=f&&s?f===s:c;if(!(e==="series"&&!c||e==="coordinateSystem"&&!v||t==="series"&&c)){var h=a.getViewOfSeriesModel(u);if(h.group.traverse(function(g){Yl(g)}),In(t))i(u.getData(),t);else if(H(t))for(var d=Le(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),Ul(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var f=a.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,n)}})}}function Xs(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(!!a){Ul(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Yl(i)})}}}function W_(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(!!n){var i=Or(n,t);i=(k(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=q(o);Zs(a,u.focus,u.blurScope,e)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&Zs(a,c,f,e)}}}function Xl(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(q(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function H_(r,t,e){var a=q(r),n=Xl(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&Xs(a.componentMainType,a.componentIndex,e),S(i,function(s){return bc(s,t)})):(Zs(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&Xs(a.componentMainType,a.componentIndex,e),bc(r,t))}function U_(r,t,e){up(e);var a=q(r),n=Xl(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?S(n,function(i){return wc(i,t)}):wc(r,t)}function $_(r,t,e){if(!!qs(t)){var a=t.dataType,n=r.getData(a),i=Or(n,t);k(i)||(i=[i]),r[t.type===rn?"toggleSelect":t.type===tn?"select":"unselect"](i,a)}}function Tc(r){var t=r.getAllData();S(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?op(i):sp(i)})})}function Y_(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();S(a,function(n){n.data;var i=n.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 Ir(r,t,e){Kl(r,!0),Ft(r,Zl),X_(r,t,e)}function Z_(r){Kl(r,!1)}function sr(r,t,e,a){a?Z_(r):Ir(r,t,e)}function X_(r,t,e){var a=q(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var Ac=["emphasis","blur","select"],K_={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function va(r,t,e,a){e=e||"itemStyle";for(var n=0;n<Ac.length;n++){var i=Ac[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[K_[e]]()}}function Kl(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function Ks(r){return!!(r&&r.__highDownDispatcher)}function q_(r,t,e){var a=q(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function j_(r){var t=mc[r];return t==null&&yc<=32&&(t=mc[r]=yc++),t}function qs(r){var t=r.type;return t===tn||t===bi||t===rn}function Cc(r){var t=r.type;return t===Dr||t===Si}function J_(r){var t=ep(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 cp=ne();function xa(r,t,e,a,n){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,c=void 0,f=void 0;a?(u=ve(a.duration,200),c=ve(a.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),Z(f)&&(f=f(e,n)),Z(u)&&(u=u(e));var v={duration:u||0,delay:f,easing:c};return v}else return null}function ql(r,t,e,a,n,i,o){var s=!1,l;Z(n)?(o=i,i=n,n=null):H(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var c=xa(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(c&&c.duration>0){var f=c.duration,v=c.delay,h=c.easing,d={duration:f,delay:v||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function de(r,t,e,a,n,i){ql("update",r,t,e,a,n,i)}function Ie(r,t,e,a,n,i){ql("enter",r,t,e,a,n,i)}function na(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 vn(r,t,e,a,n,i){na(r)||ql("leave",r,t,e,a,n,i)}function Mc(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),vn(r,{style:{opacity:0}},t,e,a)}function Vi(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Mc(n,t,e,a)}):Mc(r,t,e,a)}function dn(r){cp(r).oldStyle=r.style}function Q_(r){return cp(r).oldStyle}var zi=Math.max,Gi=Math.min,js={};function ex(r){return De.extend(r)}var tx=A0;function rx(r,t){return tx(r,t)}function pt(r,t){js[r]=t}function fp(r){if(js.hasOwnProperty(r))return js[r]}function jl(r,t,e,a){var n=S0(r,t);return e&&(a==="center"&&(e=vp(e,n.getBoundingRect())),dp(n,e)),n}function hp(r,t,e){var a=new zt({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(vp(t,i))}}});return a}function vp(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var ft=x0;function dp(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function ax(r){return b0(r.shape,r.shape,r.style),r}function nx(r){return w0(r.shape,r.shape,r.style),r}var ix=T0;function Lr(r,t){for(var e=Nl([]);r&&r!==t;)Ri(e,r.getLocalTransform(),e),r=r.parent;return e}function vt(r,t,e){return t&&!In(t)&&(t=ra.getLocalTransform(t)),e&&(t=Ln([],t)),rt([],r,t)}function lo(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=vt(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Dc(r){return!r.isGroup}function ox(r){return r.shape!=null}function uo(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){Dc(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ox(o)&&(s.shape=O({},o.shape)),s}var i=a(r);t.traverse(function(o){if(Dc(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),de(o,l,e,q(o).dataIndex)}}})}function pp(r,t){return N(r,function(e){var a=e[0];a=zi(a,t.x),a=Gi(a,t.x+t.width);var n=e[1];return n=zi(n,t.y),n=Gi(n,t.y+t.height),[a,n]})}function sx(r,t){var e=zi(r.x,t.x),a=Gi(r.x+r.width,t.x+t.width),n=zi(r.y,t.y),i=Gi(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function On(r,t,e){var a=O({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),K(n,e),new zt(a)):jl(r.replace("path://",""),a,e,"center")}function lx(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(gp(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function gp(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,f=s-i,v=Vo(c,f,l,u);if(ux(v))return!1;var h=r-n,d=t-i,p=Vo(h,d,l,u)/v;if(p<0||p>1)return!1;var g=Vo(h,d,c,f)/v;return!(g<0||g>1)}function Vo(r,t,e,a){return r*a-e*t}function ux(r){return r<=1e-6&&r>=-1e-6}function Sa(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=G(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&S(Le(l),function(c){J(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=q(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:K({content:a,formatterParams:s},n)}}function Ic(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function co(r,t){if(r)if(k(r))for(var e=0;e<r.length;e++)Ic(r[e],t);else Ic(r,t)}pt("circle",Nt);pt("ellipse",Ld);pt("sector",Gt);pt("ring",ro);pt("polygon",fr);pt("polyline",At);pt("rect",oe);pt("line",Ze);pt("bezierCurve",Pd);pt("arc",Vl);const fo=Object.freeze(Object.defineProperty({__proto__:null,updateProps:de,initProps:Ie,removeElement:vn,removeElementWithFadeOut:Vi,isElementRemoved:na,extendShape:ex,extendPath:rx,registerShape:pt,getShapeClass:fp,makePath:jl,makeImage:hp,mergePath:ft,resizePath:dp,subPixelOptimizeLine:ax,subPixelOptimizeRect:nx,subPixelOptimize:ix,getTransform:Lr,applyTransform:vt,transformDirection:lo,groupTransition:uo,clipPointsByRect:pp,clipRectByRect:sx,createIcon:On,linePolygonIntersect:lx,lineLineIntersect:gp,setTooltipConfig:Sa,traverseElements:co,Group:Q,Image:zt,Text:ae,Circle:Nt,Ellipse:Ld,Sector:Gt,Ring:ro,Polygon:fr,Polyline:At,Rect:oe,Line:Ze,BezierCurve:Pd,Arc:Vl,IncrementalDisplayable:C0,CompoundPath:Rd,LinearGradient:zl,RadialGradient:M0,BoundingRect:ge,OrientedBoundingRect:Ei,Point:we,Path:De},Symbol.toStringTag,{value:"Module"}));var ho={};function yp(r,t){for(var e=0;e<nt.length;e++){var a=nt[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Js(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=Z(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<nt.length;u++){var c=nt[u],f=t[c];l[c]=ve(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Wt(r,t,e,a){e=e||ho;for(var n=r instanceof ae,i=!1,o=0;o<Ni.length;o++){var s=t[Ni[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new ae,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Js(e,t),c=t.normal,f=!!c.getShallow("show"),v=Te(c,a&&a.normal,e,!1,!n);v.text=u.normal,n||r.setTextConfig(Lc(c,e,!1));for(var o=0;o<nt.length;o++){var h=nt[o],s=t[h];if(s){var d=l.ensureState(h),p=!!ve(s.getShallow("show"),f);if(p!==f&&(d.ignore=!p),d.style=Te(s,a&&a[h],e,!0,!n),d.style.text=u[h],!n){var g=r.ensureState(h);g.textConfig=Lc(s,e,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!f,l.useStyle(v),l.dirty(),e.enableTextSetter&&(ba(l).setLabelText=function(y){var m=Js(e,t,y);yp(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Ht(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<nt.length;a++){var n=nt[a];e[n]=r.getModel([n,t])}return e}function Te(r,t,e,a,n){var i={};return cx(i,r,e,a,n),t&&O(i,t),i}function Lc(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=ve(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",a}function cx(r,t,e,a,n){e=e||ho;var i=t.ecModel,o=i&&i.option.textStyle,s=fx(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);kc(l[u]={},c,o,e,a,n,!1,!0)}}l&&(r.rich=l);var f=t.get("overflow");f&&(r.overflow=f);var v=t.get("minMargin");v!=null&&(r.margin=v),kc(r,t,o,e,a,n,!0,!1)}function fx(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||ho).rich;if(e){t=t||{};for(var a=Le(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var Pc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Rc=["align","lineHeight","width","height","tag","verticalAlign"],Ec=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function kc(r,t,e,a,n,i,o,s){e=!n&&e||ho;var l=a&&a.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=ve(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||e.color,c=c||e.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var v=ve(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var h=ve(t.getShallow("textBorderType"),e.textBorderType);h!=null&&(r.lineDash=h);var d=ve(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&f==null&&!s&&(f=a&&a.defaultOpacity),f!=null&&(r.opacity=f),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<Pc.length;p++){var g=Pc[p],y=ve(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<Rc.length;p++){var g=Rc[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!a.disableBox){for(var p=0;p<Ec.length;p++){var g=Ec[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function hx(r,t){var e=t&&t.getModel("textStyle");return Pn([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 ba=ne();function vx(r,t,e,a){if(!!r){var n=ba(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function dx(r,t,e,a,n){var i=ba(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=ve(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=jd(e,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var v=Js({labelDataIndex:t,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);yp(r,v)}r.percent=0,(i.prevValue==null?Ie:de)(r,{percent:1},a,t,null,u)}var px=["textStyle","color"],zo=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Go=new ae,gx=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(px):null)},r.prototype.getFont=function(){return hx({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")},a=0;a<zo.length;a++)e[zo[a]]=this.getShallow(zo[a]);return Go.useStyle(e),Go.update(),Go.getBoundingRect()},r}();const yx=gx;var mp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],mx=ca(mp),_x=function(){function r(){}return r.prototype.getLineStyle=function(t){return mx(this,t)},r}(),_p=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],xx=ca(_p),Sx=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return xx(this,t,e)},r}(),Gr=function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){j(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 a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),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(U(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(!me.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 a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(!!t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r}();Hl(Gr);M_(Gr);Xe(Gr,_x);Xe(Gr,Sx);Xe(Gr,R_);Xe(Gr,yx);const Se=Gr;var bx=Math.round(Math.random()*10);function wa(r){return[r||"",bx++].join("_")}function wx(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=xt(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=xt(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function Tx(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),c=u.graph,f=u.noEntryList,v={};for(S(i,function(m){v[m]=!0});f.length;){var h=f.pop(),d=c[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),S(d.successor,p?y:g)}S(v,function(){var m="";throw new Error(m)});function g(m){c[m].entryCount--,c[m].entryCount===0&&f.push(m)}function y(m){v[m]=!0,g(m)}};function e(i){var o={},s=[];return S(i,function(l){var u=a(o,l),c=u.originalDeps=t(l),f=n(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),S(f,function(v){ie(u.predecessor,v)<0&&u.predecessor.push(v);var h=a(o,v);ie(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return S(i,function(l){ie(o,l)>=0&&s.push(l)}),s}}function hr(r,t){return j(j({},r,!0),t,!0)}const Ax={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Cx={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Fi="ZH",Jl="EN",pn=Jl,wi={},Ql={},xp=me.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Fi)>-1?Fi:pn}():pn;function Sp(r,t){r=r.toUpperCase(),Ql[r]=new Se(t),wi[r]=t}function Mx(r){if(G(r)){var t=wi[r.toUpperCase()]||{};return r===Fi||r===Jl?U(t):j(U(t),U(wi[pn]),!1)}else return j(U(r),U(wi[pn]),!1)}function Qs(r){return Ql[r]}function Dx(){return Ql[pn]}Sp(Jl,Ax);Sp(Fi,Cx);var eu=1e3,tu=eu*60,an=tu*60,et=an*24,Oc=et*365,qa={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}"},Un="{yyyy}-{MM}-{dd}",Bc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Un,hour:Un+" "+qa.hour,minute:Un+" "+qa.minute,second:Un+" "+qa.second,millisecond:qa.none},Fo=["year","month","day","hour","minute","second","millisecond"],bp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pr(r,t){return r+="","0000".substr(0,t-r.length)+r}function ia(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 Ix(r){return r===ia(r)}function Lx(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function vo(r,t,e,a){var n=wt(r),i=n[ru(e)](),o=n[oa(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[po(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[gn(e)](),f=(c-1)%12+1,v=n[go(e)](),h=n[yo(e)](),d=n[mo(e)](),p=a instanceof Se?a:Qs(a||xp)||Dx(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,pr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,pr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,pr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,pr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,pr(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,pr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,pr(d,3)).replace(/{S}/g,d+"")}function Px(r,t,e,a,n){var i=null;if(G(e))i=e;else if(Z(e))i=e(r.value,t,{level:r.level});else{var o=O({},qa);if(r.level>0)for(var s=0;s<Fo.length;++s)o[Fo[s]]="{primary|"+o[Fo[s]]+"}";var l=e?e.inherit===!1?e:K(e,o):o,u=wp(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=bp.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(k(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return vo(new Date(r.value),i,n,a)}function wp(r,t){var e=wt(r),a=e[oa(t)]()+1,n=e[po(t)](),i=e[gn(t)](),o=e[go(t)](),s=e[yo(t)](),l=e[mo(t)](),u=l===0,c=u&&s===0,f=c&&o===0,v=f&&i===0,h=v&&n===1,d=h&&a===1;return d?"year":h?"month":v?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Nc(r,t,e){var a=fe(r)?wt(r):r;switch(t=t||wp(r,e),t){case"year":return a[ru(e)]();case"half-year":return a[oa(e)]()>=6?1:0;case"quarter":return Math.floor((a[oa(e)]()+1)/4);case"month":return a[oa(e)]();case"day":return a[po(e)]();case"half-day":return a[gn(e)]()/24;case"hour":return a[gn(e)]();case"minute":return a[go(e)]();case"second":return a[yo(e)]();case"millisecond":return a[mo(e)]()}}function ru(r){return r?"getUTCFullYear":"getFullYear"}function oa(r){return r?"getUTCMonth":"getMonth"}function po(r){return r?"getUTCDate":"getDate"}function gn(r){return r?"getUTCHours":"getHours"}function go(r){return r?"getUTCMinutes":"getMinutes"}function yo(r){return r?"getUTCSeconds":"getSeconds"}function mo(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Rx(r){return r?"setUTCFullYear":"setFullYear"}function Tp(r){return r?"setUTCMonth":"setMonth"}function Ap(r){return r?"setUTCDate":"setDate"}function Cp(r){return r?"setUTCHours":"setHours"}function Mp(r){return r?"setUTCMinutes":"setMinutes"}function Dp(r){return r?"setUTCSeconds":"setSeconds"}function Ip(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Lp(r){if(!Hd(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Pp(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Bn=D0,Ex=/([&<>"'])/g,kx={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ye(r){return r==null?"":(r+"").replace(Ex,function(t,e){return kx[e]})}function el(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Pn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?wt(r):r;if(isNaN(+l)){if(s)return"-"}else return vo(l,a,e)}if(t==="ordinal")return Ws(r)?n(r):fe(r)&&i(r)?r+"":"-";var u=Oi(r);return i(u)?Lp(u):Ws(r)?n(r):typeof r=="boolean"?r+"":"-"}var Vc=["a","b","c","d","e","f","g"],Wo=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Rp(r,t,e){k(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=Vc[i];r=r.replace(Wo(o),Wo(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Wo(Vc[l],s),e?Ye(u):u)}return r}function Ox(r,t,e){return S(t,function(a,n){r=r.replace("{"+n+"}",e?Ye(a):a)}),r}function Bx(r,t){var e=G(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ye(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ye(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function Br(r,t){return t=t||"transparent",G(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function zc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Ti=S,Ep=["left","right","top","bottom","width","height"],Mr=[["width","left","right"],["height","top","bottom"]];function au(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),v=f&&f.getBoundingRect(),h,d;if(r==="horizontal"){var p=c.width+(v?-v.x+c.x:0);h=i+p,h>a||l.newline?(i=0,h=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(v?-v.y+c.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var Pr=au;ee(au,"vertical");ee(au,"horizontal");function He(r,t,e){e=Bn(e||0);var a=t.width,n=t.height,i=$(r.left,a),o=$(r.top,n),s=$(r.right,a),l=$(r.bottom,n),u=$(r.width,a),c=$(r.height,n),f=e[2]+e[0],v=e[1]+e[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(c)&&(c=n-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-c-f),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[0];break;case"bottom":o=n-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(c)&&(c=n-f-o-(l||0));var d=new ge(i+e[3],o+e[0],u,c);return d.margin=e,d}function nu(r,t,e,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.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 ge(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=He(K({width:u.width,height:u.height},t),e,a),v=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(i.x=v,i.y=h):(i.x+=v,i.y+=h),i===r&&r.markRedraw(),!0}function Nx(r,t){return r[Mr[t][0]]!=null||r[Mr[t][1]]!=null&&r[Mr[t][2]]!=null}function yn(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function lr(r,t,e){var a=e&&e.ignoreSize;!k(a)&&(a=[a,a]);var n=o(Mr[0],0),i=o(Mr[1],1);u(Mr[0],r,n),u(Mr[1],r,i);function o(c,f){var v={},h=0,d={},p=0,g=2;if(Ti(c,function(_){d[_]=r[_]}),Ti(c,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&h++,l(d,_)&&p++}),a[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===g||!h)return d;if(h>=g)return v;for(var y=0;y<c.length;y++){var m=c[y];if(!s(v,m)&&s(r,m)){v[m]=r[m];break}}return v}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,v){Ti(c,function(h){f[h]=v[h]})}}function Ta(r){return kp({},r)}function kp(r,t){return t&&r&&Ti(Ep,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var Vx=ne(),Aa=function(r){P(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=wa("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=yn(this),i=n?Ta(e):{},o=a.getTheme();j(e,o.get(this.mainType)),j(e,this.getDefaultOption()),n&&lr(e,i,n)},t.prototype.mergeOption=function(e,a){j(this.option,e,!0);var n=yn(this);n&&lr(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!T_(e))return e.defaultOption;var a=Vx(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=j(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return kn(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},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}(Se);Qd(Aa,Se);no(Aa);wx(Aa);Tx(Aa,zx);function zx(r){var t=[];return S(Aa.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=N(t,function(e){return xt(e).main}),r!=="dataset"&&ie(t,"dataset")<=0&&t.unshift("dataset"),t}const te=Aa;var Op="";typeof navigator<"u"&&(Op=navigator.platform||"");var $r="rgba(0, 0, 0, 0.2)";const Gx={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$r,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$r,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$r,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$r,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$r,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$r,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Op.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 Bp=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),it="original",Ue="arrayRows",gt="objectRows",Ct="keyedColumns",nr="typedArray",Np="unknown",Bt="column",Ca="row",Pe={Must:1,Might:2,Not:3},Vp=ne();function Fx(r){Vp(r).datasetMap=W()}function Wx(r,t,e){var a={},n=iu(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=Vp(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),S(r,function(p,g){var y=H(p)?p:r[g]={name:p};y.type==="ordinal"&&c==null&&(c=g,f=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});S(r,function(p,g){var y=p.name,m=d(p);if(c==null){var _=v.valueWayDim;h(a[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(c===g)h(a[y],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(a[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function zp(r,t,e){var a={},n=iu(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===gt||i===Ct)&&S(o,function(c,f){(H(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},v=[],h=0,d=Math.min(5,e);h<d;h++){var p=Fp(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);v.push(p);var g=p===Pe.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&v[c.n]===Pe.Not)&&(c.n=h),y(c)&&v[c.n]!==Pe.Not)return c;g||(p===Pe.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(c)?c:y(f)?f:null}();if(l){a.value=[l.v];var u=s!=null?s:l.n;a.itemName=[u],a.seriesName=[u]}return a}function iu(r){var t=r.get("data",!0);if(!t)return kn(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Me).models[0]}function Hx(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:kn(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Me).models}function Gp(r,t){return Fp(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function Fp(r,t,e,a,n,i){var o,s=5;if(at(r))return Pe.Not;var l,u;if(a){var c=a[i];H(c)?(l=c.name,u=c.type):G(c)&&(l=c)}if(u!=null)return u==="ordinal"?Pe.Must:Pe.Not;if(t===Ue){var f=r;if(e===Ca){for(var v=f[i],h=0;h<(v||[]).length&&h<s;h++)if((o=x(v[n+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var d=f[n+h];if(d&&(o=x(d[i]))!=null)return o}}else if(t===gt){var p=r;if(!l)return Pe.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=x(g[l]))!=null)return o}}else if(t===Ct){var y=r;if(!l)return Pe.Not;var v=y[l];if(!v||at(v))return Pe.Not;for(var h=0;h<v.length&&h<s;h++)if((o=x(v[h]))!=null)return o}else if(t===it)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],_=_a(g);if(!k(_))return Pe.Not;if((o=x(_[i]))!=null)return o}function x(w){var b=G(w);if(w!=null&&isFinite(w)&&w!=="")return b?Pe.Might:Pe.Not;if(b&&w!=="-")return Pe.Must}return Pe.Not}var tl=W();function Ux(r,t){tt(tl.get(r)==null&&t),tl.set(r,t)}function $x(r,t,e){var a=tl.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var Gc=ne(),Yx=ne(),ou=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=le(this.get("color",!0)),i=this.get("colorLayer",!0);return Wp(this,Gc,n,i,t,e,a)},r.prototype.clearColorPalette=function(){Xx(this,Gc)},r}();function Fc(r,t,e,a){var n=le(r.get(["aria","decal","decals"]));return Wp(r,Yx,n,null,t,e,a)}function Zx(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function Wp(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?e:Zx(a,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%c.length,f}}function Xx(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var $n,Pa,Wc,Hc="\0_ec_inner",Kx=1,Hp=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Se(i),this._locale=new Se(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=Yc(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Yc(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Wc(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&S(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=W(),u=a&&a.replaceMergeMainTypeMap;Fx(this),S(e,function(f,v){f!=null&&(te.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?U(f):j(n[v],f,!0))}),u&&u.each(function(f,v){te.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),te.topologicalTravel(s,te.getAllClassMainTypes(),c,this);function c(f){var v=$x(this,f,le(e[f])),h=i.get(f),d=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Xd(h,v,d);p_(p,f,te),n[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],m=0,_;S(p,function(x,w){var b=x.existing,T=x.newOption;if(!T)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var A=f==="series",C=te.getClass(f,x.keyInfo.subType,!A);if(!C)return;if(f==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=x.keyInfo.name,b.mergeOption(T,this),b.optionUpdated(T,!1);else{var D=O({componentIndex:w},x.keyInfo);b=new C(T,this,this,D),O(b,D),x.brandNew&&(b.__requireNewView=!0),b.init(T,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),n[f]=g,i.set(f,y),o.set(f,m),f==="series"&&$n(this)}this._seriesIndices||$n(this)},t.prototype.getOption=function(){var e=U(this.option);return S(e,function(a,n){if(te.hasClass(n)){for(var i=le(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!hn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[Hc],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,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],S(le(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Uc("id",i,s):o!=null?l=Uc("name",o,s):l=pe(s,function(u){return!!u}),$c(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):pe(this._componentsMap.get(n),function(u){return!!u});return l($c(o,e));function s(u){var c=n+"Index",f=n+"Id",v=n+"Name";return u&&(u[c]!=null||u[f]!=null||u[v]!=null)?{mainType:n,index:u[c],id:u[f],name:u[v]}:null}function l(u){return e.filter?pe(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(Z(e)){var o=a,s=e;i.each(function(f,v){for(var h=0;f&&h<f.length;h++){var d=f[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=G(e)?i.get(e):H(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=ke(e,null);return pe(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return pe(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return pe(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){Pa(this),S(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){S(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){Pa(this),S(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return S(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return Pa(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){Pa(this);var n=[];S(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=W(n)},t.prototype.restoreData=function(e){$n(this);var a=this._componentsMap,n=[];a.each(function(i,o){te.hasClass(o)&&n.push(o)}),te.topologicalTravel(n,te.getAllClassMainTypes(),function(i){S(a.get(i),function(o){o&&(i!=="series"||!qx(o,e))&&o.restoreData()})})},t.internalField=function(){$n=function(e){var a=e._seriesIndices=[];S(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=W(a)},Pa=function(e){},Wc=function(e,a){e.option={},e.option[Hc]=Kx,e._componentsMap=W({series:[]}),e._componentsCount=W();var n=a.aria;H(n)&&n.enabled==null&&(n.enabled=!0),jx(a,e._theme.option),j(a,Gx,!1),e._mergeOption(a,null)}}(),t}(Se);function qx(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function jx(r,t){var e=r.color&&!r.colorLayer;S(t,function(a,n){n==="colorLayer"&&e||te.hasClass(n)||(typeof a=="object"?r[n]=r[n]?j(r[n],a,!1):U(a):r[n]==null&&(r[n]=a))})}function Uc(r,t,e){if(k(t)){var a=W();return S(t,function(i){if(i!=null){var o=ke(i,null);o!=null&&a.set(i,!0)}}),pe(e,function(i){return i&&a.get(i[r])})}else{var n=ke(t,null);return pe(e,function(i){return i&&n!=null&&i[r]===n})}}function $c(r,t){return t.hasOwnProperty("subType")?pe(r,function(e){return e&&e.subType===t.subType}):r}function Yc(r){var t=W();return r&&S(le(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Xe(Hp,ou);const Up=Hp;var Jx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Qx=function(){function r(t){S(Jx,function(e){this[e]=z(t[e],t)},this)}return r}();const $p=Qx;var Ho={},eS=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var a=[];S(Ho,function(n,i){var o=n.create(t,e);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(t,e){S(this._coordinateSystems,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Ho[t]=e},r.get=function(t){return Ho[t]},r}();const su=eS;var tS=/^(min|max)?(.+)$/,rS=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(S(le(t.series),function(o){o&&o.data&&at(o.data)&&Hs(o.data)}),S(le(t.dataset),function(o){o&&o.source&&at(o.source)&&Hs(o.source)})),t=U(t);var n=this._optionBackup,i=aS(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.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=[],U(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=U(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)nS(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!oS(o,this._currentMediaIndices)&&(s=N(o,function(c){return U(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r}();function aS(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(r.options=r.media=null),i=r),c&&k(u)&&S(u,function(h){h&&h.option&&(h.query?a.push(h):n||(n=h))}),v(i),S(l,function(h){return v(h)}),S(a,function(h){return v(h.option)});function v(h){S(t,function(d){d(h,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function nS(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return S(r,function(i,o){var s=o.match(tS);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();iS(a[u],i,l)||(n=!1)}}),n}function iS(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function oS(r,t){return r.join(",")===t.join(",")}const sS=rS;var st=S,mn=H,Zc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Uo(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,a=Zc.length;e<a;e++){var n=Zc[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?j(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?j(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ee(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,K(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function ja(r){Ee(r,"itemStyle"),Ee(r,"lineStyle"),Ee(r,"areaStyle"),Ee(r,"label"),Ee(r,"labelLine"),Ee(r,"upperLabel"),Ee(r,"edgeLabel")}function _e(r,t){var e=mn(r)&&r[t],a=mn(e)&&e.textStyle;if(a)for(var n=0,i=gc.length;n<i;n++){var o=gc[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Je(r){r&&(ja(r),_e(r,"label"),r.emphasis&&_e(r.emphasis,"label"))}function lS(r){if(!!mn(r)){Uo(r),ja(r),_e(r,"label"),_e(r,"upperLabel"),_e(r,"edgeLabel"),r.emphasis&&(_e(r.emphasis,"label"),_e(r.emphasis,"upperLabel"),_e(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Uo(t),Je(t));var e=r.markLine;e&&(Uo(e),Je(e));var a=r.markArea;a&&Je(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!at(i))for(var o=0;o<i.length;o++)Je(i[o]);S(r.categories,function(u){ja(u)})}if(n&&!at(n))for(var o=0;o<n.length;o++)Je(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Je(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)k(l[o])?(Je(l[o][0]),Je(l[o][1])):Je(l[o]);r.type==="gauge"?(_e(r,"axisLabel"),_e(r,"title"),_e(r,"detail")):r.type==="treemap"?(Ee(r.breadcrumb,"itemStyle"),S(r.levels,function(u){ja(u)})):r.type==="tree"&&ja(r.leaves)}}function Lt(r){return k(r)?r:r?[r]:[]}function Xc(r){return(k(r)?r[0]:r)||{}}function uS(r,t){st(Lt(r.series),function(a){mn(a)&&lS(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),st(e,function(a){st(Lt(r[a]),function(n){n&&(_e(n,"axisLabel"),_e(n.axisPointer,"label"))})}),st(Lt(r.parallel),function(a){var n=a&&a.parallelAxisDefault;_e(n,"axisLabel"),_e(n&&n.axisPointer,"label")}),st(Lt(r.calendar),function(a){Ee(a,"itemStyle"),_e(a,"dayLabel"),_e(a,"monthLabel"),_e(a,"yearLabel")}),st(Lt(r.radar),function(a){_e(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),st(Lt(r.geo),function(a){mn(a)&&(Je(a),st(Lt(a.regions),function(n){Je(n)}))}),st(Lt(r.timeline),function(a){Je(a),Ee(a,"label"),Ee(a,"itemStyle"),Ee(a,"controlStyle",!0);var n=a.data;k(n)&&S(n,function(i){H(i)&&(Ee(i,"label"),Ee(i,"itemStyle"))})}),st(Lt(r.toolbox),function(a){Ee(a,"iconStyle"),st(a.feature,function(n){Ee(n,"iconStyle")})}),_e(Xc(r.axisPointer),"label"),_e(Xc(r.tooltip).axisPointer,"label")}function cS(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function fS(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];(a||i[n[s]]==null)&&(i[n[s]]=e)}function Kc(r){r&&S(hS,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var hS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],vS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],$o=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ra(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<$o.length;e++){var a=$o[e][1],n=$o[e][0];t[a]!=null&&(t[n]=t[a])}}function qc(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function jc(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function dS(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Yp(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Yp(r[e].children,t)}function Zp(r,t){uS(r,t),r.series=le(r.series),S(r.series,function(e){if(!!H(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),qc(e.label);var n=e.data;if(n&&!at(n))for(var i=0;i<n.length;i++)qc(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=cS(e,"pointer.color");o!=null&&fS(e,"itemStyle.color",o)}else if(a==="bar"){Ra(e),Ra(e.backgroundStyle),Ra(e.emphasis);var n=e.data;if(n&&!at(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Ra(n[i]),Ra(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),jc(e),Yp(e.data,jc)}else a==="graph"||a==="sankey"?dS(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&K(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Kc(e)}}),r.dataRange&&(r.visualMap=r.dataRange),S(vS,function(e){var a=r[e];a&&(k(a)||(a=[a]),S(a,function(n){Kc(n)}))})}function pS(r){var t=W();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),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;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(gS)}function gS(r){S(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var v=o.get(t.stackedDimension,f);if(isNaN(v))return n;var h,d;s?d=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=n_(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var _o=function(){function r(t){this.data=t.data||(t.sourceFormat===Ct?{}:[]),this.sourceFormat=t.sourceFormat||Np,this.seriesLayoutBy=t.seriesLayoutBy||Bt,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&Gp(this,a)===Pe.Must&&(n.type="ordinal")}}return r}();function lu(r){return r instanceof _o}function rl(r,t,e){e=e||Xp(r);var a=t.seriesLayoutBy,n=mS(r,e,a,t.sourceHeader,t.dimensions),i=new _o({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:U(t)});return i}function uu(r){return new _o({data:r,sourceFormat:at(r)?nr:it})}function yS(r){return new _o({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:U(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Xp(r){var t=Np;if(at(r))t=nr;else if(k(r)){r.length===0&&(t=Ue);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(k(n)){t=Ue;break}else if(H(n)){t=gt;break}}}}else if(H(r)){for(var i in r)if(J(r,i)&&In(r[i])){t=Ct;break}}return t}function mS(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:Jc(n),startIndex:o,dimensionsDetectedCount:i};if(t===Ue){var s=r;a==="auto"||a==null?Qc(function(u){u!=null&&u!=="-"&&(G(u)?o==null&&(o=1):o=0)},e,s,10):o=fe(a)?a:a?1:0,!n&&o===1&&(n=[],Qc(function(u,c){n[c]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===Ca?s.length:s[0]?s[0].length:null}else if(t===gt)n||(n=_S(r));else if(t===Ct)n||(n=[],S(r,function(u,c){n.push(c)}));else if(t===it){var l=_a(r[0]);i=k(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Jc(n),dimensionsDetectedCount:i}}function _S(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e){var a=[];return S(e,function(n,i){a.push(i)}),a}}function Jc(r){if(!!r){var t=W();return N(r,function(e,a){e=H(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function Qc(r,t,e,a){if(t===Ca)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function Kp(r){var t=r.sourceFormat;return t===gt||t===Ct}var gr,yr,mr,ef,tf,qp=function(){function r(t,e){var a=lu(t)?t:uu(t);this._source=a;var n=this._data=a.data;a.sourceFormat===nr&&(this._offset=0,this._dimSize=e,this._data=n),tf(this,n,a)}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;tf=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,v=l.dimensionsDefine,h=ef[cu(u,c)];if(O(o,h),u===nr)o.getItem=e,o.count=n,o.fillStorage=a;else{var d=jp(u,c);o.getItem=z(d,null,s,f,v);var p=Jp(u,c);o.count=z(p,null,s,f,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},a=function(o,s,l,u){for(var c=this._data,f=this._dimSize,v=0;v<f;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[v],m=0;m<g;m++){var _=c[m*f+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};ef=(t={},t[Ue+"_"+Bt]={pure:!0,appendData:i},t[Ue+"_"+Ca]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[gt]={pure:!0,appendData:i},t[Ct]={pure:!0,appendData:function(o){var s=this._data;S(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[it]={appendData:i},t[nr]={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}(),rf=function(r,t,e,a){return r[a]},xS=(gr={},gr[Ue+"_"+Bt]=function(r,t,e,a){return r[a+t]},gr[Ue+"_"+Ca]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},gr[gt]=rf,gr[Ct]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];i[o]=l?l[a]:null}return i},gr[it]=rf,gr);function jp(r,t){var e=xS[cu(r,t)];return e}var af=function(r,t,e){return r.length},SS=(yr={},yr[Ue+"_"+Bt]=function(r,t,e){return Math.max(0,r.length-t)},yr[Ue+"_"+Ca]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},yr[gt]=af,yr[Ct]=function(r,t,e){var a=e[0].name,n=r[a];return n?n.length:0},yr[it]=af,yr);function Jp(r,t){var e=SS[cu(r,t)];return e}var Yo=function(r,t,e){return r[t]},bS=(mr={},mr[Ue]=Yo,mr[gt]=function(r,t,e){return r[e]},mr[Ct]=Yo,mr[it]=function(r,t,e){var a=_a(r);return a instanceof Array?a[t]:a},mr[nr]=Yo,mr);function Qp(r){var t=bS[r];return t}function cu(r,t){return r===Ue?r+"_"+t:r}function da(r,t,e){if(!!r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return Qp(i)(a,o,s)}else{var l=a;return i===it&&(l=_a(a)),l}}}}var wS=/\{@(.+?)\}/g,eg=function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,v=f==="series",h=a.userOutput&&a.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:n,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&k(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(Z(i))return l.status=e,l.dimensionIndex=n,i(l);if(G(i)){var c=Rp(i,l);return c.replace(wS,function(f,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=da(s,t,d);if(o&&k(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return da(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function nf(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function nn(r){return new TS(r)}var TS=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,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(f||h<d)){var p=this._progress;if(k(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){of.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:of.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),k(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},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}(),of=function(){var r,t,e,a,n,i={reset:function(l,u,c,f){t=l,r=u,e=c,a=f,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}}();function Ai(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!fe(r)&&r!=null&&r!=="-"&&(r=+wt(r)),r==null||r===""?NaN:+r)}W({number:function(r){return parseFloat(r)},time:function(r){return+wt(r)},trim:function(r){return G(r)?Pn(r):r}});var AS=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=fe(t)?t:Oi(t),n=fe(e)?e:Oi(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=G(t),l=G(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),CS=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 Ai(t,e)},r}();function MS(r,t){var e=new CS,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Bt&&Ge(o);var s=[],l={},u=r.dimensionsDefine;if(u)S(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";J(l,y)&&Ge(_),l[y]=m}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=jp(n,Bt);t.__isBuiltIn&&(e.getRawDataItem=function(p){return f(a,i,s,p)},e.getRawData=z(DS,null,r)),e.cloneRawData=z(IS,null,r);var v=Jp(n,Bt);e.count=z(v,null,a,i,s);var h=Qp(n);e.retrieveValue=function(p,g){var y=f(a,i,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return e.getDimensionInfo=z(LS,null,s,l),e.cloneAllDimensionInfo=z(PS,null,s),e}function DS(r){var t=r.sourceFormat;if(!fu(t)){var e="";Ge(e)}return r.data}function IS(r){var t=r.sourceFormat,e=r.data;if(!fu(t)){var a="";Ge(a)}if(t===Ue){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===gt){for(var n=[],i=0,o=e.length;i<o;i++)n.push(O({},e[i]));return n}}function LS(r,t,e){if(e!=null){if(fe(e)||!isNaN(e)&&!J(t,e))return r[e];if(J(t,e))return t[e]}}function PS(r){return U(r)}var tg=W();function RS(r){r=U(r);var t=r.type,e="";t||Ge(e);var a=t.split(":");a.length!==2&&Ge(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,tg.set(t,r)}function ES(r,t,e){var a=le(r),n=a.length,i="";n||Ge(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=kS(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function kS(r,t,e,a){var n="";t.length||Ge(n),H(r)||Ge(n);var i=r.type,o=tg.get(i);o||Ge(n);var s=N(t,function(u){return MS(u,o)}),l=le(o.transform({upstream:s[0],upstreamList:s,config:U(r.config)}));return N(l,function(u,c){var f="";H(u)||Ge(f),u.data||Ge(f);var v=Xp(u.data);fu(v)||Ge(f);var h,d=t[0];if(d&&c===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:Bt,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Bt,sourceHeader:0,dimensions:u.dimensions};return rl(u.data,h,null)})}function fu(r){return r===Ue||r===gt}var xo="undefined",OS=typeof Uint32Array===xo?Array:Uint32Array,BS=typeof Uint16Array===xo?Array:Uint16Array,rg=typeof Int32Array===xo?Array:Int32Array,sf=typeof Float64Array===xo?Array:Float64Array,ag={float:sf,int:rg,ordinal:Array,number:Array,time:sf},Zo;function Ea(r){return r>65535?OS:BS}function Yr(){return[1/0,-1/0]}function NS(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function lf(r,t,e,a,n){var i=ag[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var al=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=Zo[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],Kp(n),this._dimensions=N(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 a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new ag[e||"float"](this._rawCount),this._rawExtent[i]=Yr(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=Yr());for(var l=i[t],u=o;u<s;u++){var c=a[u]=e.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var c=n[u];lf(a,u,c.type,l,!0)}for(var f=[],v=s;v<l;v++)for(var h=v-s,d=0;d<i;d++){var c=n[d],p=Zo.arrayRows.call(this,t[h]||f,c.property,h,d);a[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=N(o,function(m){return m.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Yr()),lf(i,c,f.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var v=[],h=t;h<e;h++){v=n.getItem(h,v);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.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 a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/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,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var n=this._chunks,i=n[t],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var v=this.getRawIndex(c),h=e-i[v],d=Math.abs(h);d<=a&&((d<s||d===s&&h>=0&&l<0)&&(s=d,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=Ea(this._rawCount);t=new a(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 a=this.clone(),n=a.count(),i=Ea(a._rawCount),o=new i(n),s=[],l=t.length,u=0,c=t[0],f=a._chunks,v=0;v<n;v++){var h=void 0,d=a.getRawIndex(v);if(l===0)h=e(v);else if(l===1){var p=f[c][d];h=e(p,v)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][d];s[g]=v,h=e.apply(null,s)}h&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Le(t),i=n.length;if(!i)return this;var o=e.count(),s=Ea(e._rawCount),l=new s(o),u=0,c=n[0],f=t[c][0],v=t[c][1],h=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var g=h[n[0]],y=0;y<a;y++){var m=g[y];(m>=f&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[n[0]],_=h[n[1]],x=t[n[1]][0],w=t[n[1]][1],y=0;y<a;y++){var m=g[y],b=_[y];(m>=f&&m<=v||isNaN(m))&&(b>=x&&b<=w||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var T=e.getRawIndex(y),m=h[n[0]][T];(m>=f&&m<=v||isNaN(m))&&(l[u++]=T)}else for(var y=0;y<o;y++){for(var A=!0,T=e.getRawIndex(y),C=0;C<i;C++){var D=n[C],m=h[D][T];(m<t[D][0]||m>t[D][1])&&(A=!1)}A&&(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 a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=Yr();for(var f=0;f<s;f++){for(var v=t.getRawIndex(f),h=0;h<o;h++)l[h]=n[e[h]][v];l[o]=f;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var c=0;c<d.length;c++){var p=e[c],g=d[c],y=u[p],m=n[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,v,h=new(Ea(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var x=this.getRawIndex(_),w=i[x];isNaN(w)||(m+=w)}m/=g-p;var b=d,T=Math.min(d+l,o),A=d-1,C=i[u];c=-1,v=b;for(var D=-1,M=0,_=b;_<T;_++){var x=this.getRawIndex(_),w=i[x];if(isNaN(w)){M++,D<0&&(D=x);continue}f=Math.abs((A-y)*(w-C)-(A-_)*(m-C)),f>c&&(c=f,v=x)}M>0&&M<T-b&&(h[s++]=Math.min(D,v),v=Math.max(D,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),a._count=s,a._indices=h,a.getRawIndex=this._getRawIdx,a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],c=this.count(),f=i._rawExtent[t]=Yr(),v=new(Ea(this._rawCount))(Math.ceil(c/l)),h=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(d+n(s,y)||0,c-1));u[m]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(!!this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=Yr();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),f=e[c];f<s&&(s=f),f>l&&(l=f)}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 a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&la(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?NS(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=U(this._extent),t._rawExtent=U(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}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,a,n,i){return Ai(e[i],this._dimensions[i])}Zo={arrayRows:t,objectRows:function(e,a,n,i){return Ai(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Ai(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),VS=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(),a=!!e.length,n,i;if(Yn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=at(s)?nr:it,i=[];var f=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=ve(f.seriesLayoutBy,v.seriesLayoutBy)||null,d=ve(f.sourceHeader,v.sourceHeader),p=ve(f.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[rl(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[rl(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&uf(i)}var o,s=[],l=[];return S(t,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&uf(f),s.push(c),l.push(u._getVersionSign())}),a?o=ES(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[yS(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 a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[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,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];Yn(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new al,s.initData(new qp(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Yn(t)){var e=iu(t);return e?[e.getSourceManager()]:[]}else return N(Hx(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(Yn(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r}();function Yn(r){return r.mainType==="series"}function uf(r){throw new Error(r)}var ng="line-height:1";function ig(r,t){var e=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ye(a+"")+"px;color:"+Ye(e)+";font-weight:"+Ye(n+""),valueStyle:"font-size:"+Ye(o+"")+"px;color:"+Ye(i)+";font-weight:"+Ye(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var zS=[0,10,20,30],GS=["",`
|
|
`,`
|
|
|
|
`,`
|
|
|
|
|
|
`];function Tt(r,t){return t.type=r,t}function nl(r){return r.type==="section"}function og(r){return nl(r)?FS:WS}function sg(r){if(nl(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return S(r.blocks,function(n){var i=sg(n);i>=t&&(t=i+ +(a&&(!i||nl(n)&&!n.noHeader)))}),t}return 0}function FS(r,t,e,a){var n=t.noHeader,i=HS(sg(t)),o=[],s=t.blocks||[];tt(!s||k(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var c=new AS(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}S(s,function(d,p){var g=t.valueFormatter,y=og(d)(g?O(O({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);y!=null&&o.push(y)});var f=r.renderMode==="richText"?o.join(i.richText):il(o.join(""),n?e:i.html);if(n)return f;var v=el(t.header,"ordinal",r.useUTC),h=ig(a,r.renderMode).nameStyle;return r.renderMode==="richText"?lg(r,v,h)+i.richText+f:il('<div style="'+h+";"+ng+';">'+Ye(v)+"</div>"+f,e)}function WS(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(x){return x=k(x)?x:[x],N(x,function(w,b){return el(w,k(h)?h[b]:h,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=i?"":el(l,"ordinal",u),h=t.valueType,d=o?[]:c(t.value),p=!s||!i,g=!s&&i,y=ig(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":f)+(i?"":lg(r,v,m))+(o?"":YS(r,d,p,g,_)):il((s?"":f)+(i?"":US(v,!s,m))+(o?"":$S(d,p,g,_)),e)}}function cf(r,t,e,a,n,i){if(!!r){var o=og(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function HS(r){return{html:zS[r],richText:GS[r]}}function il(r,t){var e='<div style="clear:both"></div>',a="margin: "+t+"px 0 0";return'<div style="'+a+";"+ng+';">'+r+e+"</div>"}function US(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ye(r)+"</span>"}function $S(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=k(r)?r:[r],'<span style="'+i+";"+a+'">'+N(r,function(o){return Ye(o)}).join(" ")+"</span>"}function lg(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function YS(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(k(t)?t.join(" "):t,i)}function ug(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Br(a)}function cg(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Xo=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Ud()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=Bx({color:e,type:t,renderMode:a,markerId:n});return G(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};k(e)?S(e,function(i){return O(a,i)}):O(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function ZS(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=k(s),u=ug(t,e),c,f,v,h;if(o>1||l&&!o){var d=XS(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=c=da(n,e,i[0]),f=p.type}else h=c=l?s[0]:s;var g=Fl(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return Tt("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[Tt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Pn(_),value:c,valueType:f})].concat(v||[])})}function XS(r,t,e,a,n){var i=t.getData(),o=la(r,function(f,v,h){var d=i.getDimensionInfo(h);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?S(a,function(f){c(da(i,e,f),f)}):S(r,c);function c(f,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(Tt("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Xt=ne();function Zn(r,t){return r.getName(t)||r.getId(t)}var Ci="__universalTransitionEnabled",So=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=nn({count:qS,reset:jS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Xt(this).sourceManager=new VS(this);i.prepareSource();var o=this.getInitialData(e,n);hf(o,this),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,ff(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=yn(this),i=n?Ta(e):{},o=this.subType;te.hasClass(o)&&(o+="Series"),j(e,a.getTheme().get(this.subType)),j(e,this.getDefaultOption()),Bi(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&lr(e,i,n)},t.prototype.mergeOption=function(e,a){e=j(this.option,e,!0),this.fillDataTextStyle(e.data);var n=yn(this);n&&lr(this.option,e,n);var i=Xt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);hf(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Xt(this).dataBeforeProcessed=o,ff(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!at(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Bi(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=ol(this);if(a){var n=a.context.data;return e==null?n:n.getLinkedData(e)}else return Xt(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=ol(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Xt(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return W(e)},t.prototype.getSourceManager=function(){return Xt(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Xt(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,a,n){return ZS({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(me.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=ou.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),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,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(!!n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Zn(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=Le(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Zn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ci])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=a[c],v=Zn(e,f);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(f)}}else if(s==="single"||s===!0){var h=a[l-1],v=Zn(e,h);o.selectedMap=(n={},n[v]=!0,n),this._selectedDataIndicesMap=(i={},i[v]=e.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return te.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}(te);Xe(So,eg);Xe(So,ou);Qd(So,te);function ff(r){var t=r.name;Fl(r)||(r.name=KS(r)||t)}function KS(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return S(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function qS(r){return r.model.getRawData().count()}function jS(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),JS}function JS(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function hf(r,t){S(I0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ee(QS,t))})}function QS(r,t){var e=ol(r);return e&&e.setOutputEnd((t||this).count()),t}function ol(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const dt=So;var hu=function(){function r(){this.group=new Q,this.uid=wa("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Hl(hu);no(hu);const Ae=hu;function vu(){var r=ne();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var fg=ne(),e1=vu(),du=function(){function r(){this.group=new Q,this.uid=wa("viewChart"),this.renderTask=nn({plan:t1,reset:r1}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||df(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||df(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){co(this.group,t)},r.markUpdateMethod=function(t,e){fg(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function vf(r,t,e){r&&Ks(r)&&(t==="emphasis"?fa:ha)(r,e)}function df(r,t,e){var a=Or(r,t),n=t&&t.highlightKey!=null?j_(t.highlightKey):null;a!=null?S(le(a),function(i){vf(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){vf(i,e,n)})}Hl(du);no(du);function t1(r){return e1(r.model)}function r1(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&fg(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),a1[l]}var a1={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Fe=du;var Wi="\0__throttleOriginMethod",pf="\0__throttleRate",gf="\0__throttleType";function pu(r,t,e){var a,n=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];a=new Date().getTime(),l=this,u=h;var p=c||t,g=c||e;c=null,s=a-(g?n:i)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){c=h},v}function Nn(r,t,e,a){var n=r[t];if(!!n){var i=n[Wi]||n,o=n[gf],s=n[pf];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=pu(i,e,a==="debounce"),n[Wi]=i,n[gf]=a,n[pf]=e}return n}}function _n(r,t){var e=r[t];e&&e[Wi]&&(e.clear&&e.clear(),r[t]=e[Wi])}var yf=ne(),mf={itemStyle:ca(_p,!0),lineStyle:ca(mp,!0)},n1={lineStyle:"stroke",itemStyle:"fill"};function hg(r,t){var e=r.visualStyleMapper||mf[t];return e||(console.warn("Unkown style type '"+t+"'."),mf.itemStyle)}function vg(r,t){var e=r.visualDrawType||n1[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var i1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=hg(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=vg(r,a),u=o[l],c=Z(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=O({},o);g[l]=c(p),h.setItemVisual(d,"style",g)}}}},ka=new Se,o1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=hg(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){ka.option=l[a];var u=n(ka),c=o.ensureUniqueItemVisual(s,"style");O(c,u),ka.option.decal&&(o.setItemVisual(s,"decal",ka.option.decal),ka.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},s1={performRawSeries:!0,overallReset:function(r){var t=W();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),yf(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=yf(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=vg(e,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var v=i.ensureUniqueItemVisual(c,"style"),h=a.getName(u)||u+"",d=a.count();v[l]=e.getColorFromPalette(h,o,d)}})}})}},Xn=Math.PI;function l1(r,t){t=t||{},K(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 Q,a=new oe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new ae({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 oe({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Vl({shape:{startAngle:-Xn/2,endAngle:-Xn/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:Xn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Xn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.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),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var u1=function(){function r(t,e,a,n){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.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 a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=W();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;S(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";tt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,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,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;S(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,v=c.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else f&&f.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),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(a){e=a.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,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(f){var v=f.uid,h=s.set(v,o&&o.get(v)||nn({plan:d1,reset:p1,count:y1}));h.context={model:f,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||nn({reset:c1});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=W(),u=t.seriesType,c=t.getTargetSeries,f=!0,v=!1,h="";tt(!t.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):c?c(a,n).each(d):(f=!1,S(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,nn({reset:f1,onDirty:v1})));y.context={model:p,overallProgress:f},y.agent=o,y.__block=f,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return Z(t)&&(t={overallReset:t,seriesType:m1(t)}),t.uid=wa("stageHandler"),e&&(t.visualType=e),t},r}();function c1(r){r.overallReset(r.ecModel,r.api,r.payload)}function f1(r){return r.overallProgress&&h1}function h1(){this.agent.dirty(),this.getDownstream().dirty()}function v1(){this.agent&&this.agent.dirty()}function d1(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function p1(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=le(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?N(t,function(e,a){return dg(a)}):g1}var g1=dg(0);function dg(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function y1(r){return r.data.count()}function m1(r){Hi=null;try{r(xn,pg)}catch{}return Hi}var xn={},pg={},Hi;gg(xn,Up);gg(pg,$p);xn.eachSeriesByType=xn.eachRawSeriesByType=function(r){Hi=r};xn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Hi=r.subType)};function gg(r,t){for(var e in t.prototype)r[e]=bt}const yg=u1;var _f=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const _1={color:_f,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],_f]};var Ne="#B9B8CE",xf="#100C2A",Kn=function(){return{axisLine:{lineStyle:{color:Ne}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Sf=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],mg={darkMode:!0,color:Sf,backgroundColor:xf,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ne}},textStyle:{color:Ne},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ne}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ne},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:Ne}},timeline:{lineStyle:{color:Ne},label:{color:Ne},controlStyle:{color:Ne,borderColor:Ne}},calendar:{itemStyle:{color:xf},dayLabel:{color:Ne},monthLabel:{color:Ne},yearLabel:{color:Ne}},timeAxis:Kn(),logAxis:Kn(),valueAxis:Kn(),categoryAxis:Kn(),line:{symbol:"circle"},graph:{color:Sf},gauge:{title:{color:Ne},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ne},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};mg.categoryAxis.splitLine.show=!1;const x1=mg;var S1=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(G(t)){var i=xt(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};S(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var v=o[f],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function c(f,v,h,d){return f[h]==null||v[d||h]===f[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),sl=["symbol","symbolSize","symbolRotate","symbolOffset"],bf=sl.concat(["symbolKeepAspect"]),b1={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 a={},n={},i=!1,o=0;o<sl.length;o++){var s=sl[o],l=r.get(s);Z(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(O({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Le(n);function c(f,v){for(var h=r.getRawValue(v),d=r.getDataParams(v),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(v,g,n[g](h,d))}}return{dataEach:i?c:null}}},w1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<bf.length;s++){var l=bf[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function _g(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function xg(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 T1(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function Sg(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}S([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=O({},n),o.dispatchAction(O(n,{type:a[1],seriesIndex:e(i,n)}))})})}function Zr(r,t,e,a,n){var i=r+t;e.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),v=Or(f,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:k(v)?f.getName(v[0]):f.getName(v),selected:G(l)?l:O({},l)})}})}function A1(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(Zr("map","selectchanged",t,n,a),Zr("pie","selectchanged",t,n,a)):a.fromAction==="select"?(Zr("map","selected",t,n,a),Zr("pie","selected",t,n,a)):a.fromAction==="unselect"&&(Zr("map","unselected",t,n,a),Zr("pie","unselected",t,n,a))})}function aa(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var C1=De.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),M1=De.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),D1=De.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;r.moveTo(e-c,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+c-f*h,l+s+v*h,e,a-d,e,a),r.bezierCurveTo(e,a-d,e-c+f*h,l+s+v*h,e-c,l+s),r.closePath()}}),I1=De.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),L1={line:Ze,rect:oe,roundRect:oe,square:oe,circle:Nt,diamond:M1,pin:D1,arrow:I1,triangle:C1},P1={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},Ui={};S(L1,function(r,t){Ui[t]=new r});var R1=De.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=Us(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=Ui[a];n||(a="rect",n=Ui[a]),P1[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function E1(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 Oe(r,t,e,a,n,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=hp(r.slice(8),new ge(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=jl(r.slice(7),{},new ge(t,e,a,n),o?"center":"cover"):l=new R1({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=E1,i&&l.setColor(i),l}function gu(r){return k(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function bo(r,t){if(r!=null)return k(r)||(r=[r,r]),[$(r[0],t[0])||0,$(ve(r[1],r[0]),t[1])||0]}var Ko=new L0,wf=new Id(100),Tf=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function $i(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&Ko.delete(r);var i=Ko.get(r);if(i)return i;var o=K(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=n?1:1/e,Ko.set(r,s),r.dirty=!1,s;function l(u){for(var c=[e],f=!0,v=0;v<Tf.length;++v){var h=o[Tf[v]];if(h!=null&&!k(h)&&!G(h)&&!fe(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var d;if(f){d=c.join(",")+(n?"-svg":"");var p=wf.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=wg(o.dashArrayX),y=k1(o.dashArrayY),m=bg(o.symbol),_=O1(g),x=Tg(y),w=!n&&Ed.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=C(),A;w&&(w.width=T.width*e,w.height=T.height*e,A=w.getContext("2d")),D(),f&&wf.put(d,w||b),u.image=w,u.svgElement=b,u.svgWidth=T.width,u.svgHeight=T.height;function C(){for(var M=1,I=0,L=_.length;I<L;++I)M=dc(M,_[I]);for(var R=1,I=0,L=m.length;I<L;++I)R=dc(R,m[I].length);M*=R;var E=x*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function D(){A&&(A.clearRect(0,0,w.width,w.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,w.width,w.height)));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(M<=0)return;for(var L=-x,R=0,E=0,V=0;L<T.height;){if(R%2===0){for(var X=E/2%m.length,B=0,F=0,Y=0;B<T.width*2;){for(var re=0,I=0;I<g[V].length;++I)re+=g[V][I];if(re<=0)break;if(F%2===0){var ue=(1-o.symbolSize)*.5,ce=B+g[V][F]*ue,Ce=L+y[R]*ue,ot=g[V][F]*o.symbolSize,be=y[R]*o.symbolSize,$t=Y/2%m[X].length;Yt(ce,Ce,ot,be,m[X][$t])}B+=g[V][F],++Y,++F,F===g[V].length&&(F=0)}++V,V===g.length&&(V=0)}L+=y[R],++E,++R,R===y.length&&(R=0)}function Yt(Ma,Da,Gn,Fn,Wn){var vr=n?1:e,Zt=Oe(Wn,Ma*vr,Da*vr,Gn*vr,Fn*vr,o.color,o.symbolKeepAspect);if(n){var It=a.painter.renderOneToVNode(Zt);It&&b.children.push(It)}else P0(A,Zt)}}}}function bg(r){if(!r||r.length===0)return[["rect"]];if(G(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!G(r[e])){t=!1;break}if(t)return bg([r]);for(var a=[],e=0;e<r.length;++e)G(r[e])?a.push([r[e]]):a.push(r[e]);return a}function wg(r){if(!r||r.length===0)return[[0,0]];if(fe(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!fe(r[a])){e=!1;break}if(e)return wg([r]);for(var n=[],a=0;a<r.length;++a)if(fe(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=N(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function k1(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(fe(r)){var t=Math.ceil(r);return[t,t]}var e=N(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function O1(r){return N(r,function(t){return Tg(t)})}function Tg(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function B1(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=$i(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=$i(n,t)}}})}var N1=new ma;const lt=N1;var Ag={};function V1(r,t){Ag[r]=t}function z1(r){return Ag[r]}var G1=typeof window<"u",F1=1,W1=800,H1=900,U1=1e3,$1=2e3,Y1=5e3,Cg=1e3,Z1=1100,yu=2e3,Mg=3e3,X1=4e3,wo=4500,K1=4600,q1=5e3,j1=6e3,Dg=7e3,J1={PROCESSOR:{FILTER:U1,SERIES_FILTER:W1,STATISTIC:Y1},VISUAL:{LAYOUT:Cg,PROGRESSIVE_LAYOUT:Z1,GLOBAL:yu,CHART:Mg,POST_CHART_LAYOUT:K1,COMPONENT:X1,BRUSH:q1,CHART_ITEM:wo,ARIA:j1,DECAL:Dg}},Re="__flagInMainProcess",ze="__pendingUpdate",qo="__needsUpdateStatus",Af=/^[a-zA-Z0-9_]+$/,jo="__connectUpdateStatus",Cf=0,Q1=1,eb=2;function Ig(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return Pg(this,r,t)}}function Lg(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Pg(this,r,t)}}function Pg(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),ma.prototype[t].apply(r,e)}var Rg=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ma),Eg=Rg.prototype;Eg.on=Lg("on");Eg.off=Lg("off");var Xr,Jo,qn,Kt,Qo,es,ts,Oa,Ba,Mf,Df,rs,If,jn,Lf,kg,Ke,Pf,Og=function(r){P(t,r);function t(e,a,n){var i=r.call(this,new S1)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},G(a)&&(a=Bg[a]),i._dom=e;var o="canvas",s=!1,l=i._zr=ic(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:n.useDirtyRect==null?s:n.useDirtyRect});i._ssr=n.ssr,i._throttledZrFlush=pu(z(l.flush,l),17),a=U(a),a&&Zp(a,!0),i._theme=a,i._locale=Mx(n.locale||xp),i._coordSysMgr=new su;var u=i._api=Lf(i);function c(f,v){return f.__prio-v.__prio}return Eo(Zi,c),Eo(ll,c),i._scheduler=new yg(i,u,ll,Zi),i._messageCenter=new Rg,i._initEvents(),i.resize=z(i.resize,i),l.animation.on("frame",i._onframe,i),Mf(l,i),Df(l,i),Hs(i),i}return t.prototype._onframe=function(){if(!this._disposed){Pf(this);var e=this._scheduler;if(this[ze]){var a=this[ze].silent;this[Re]=!0;try{Xr(this),Kt.update.call(this,null,this[ze].updateParams)}catch(l){throw this[Re]=!1,this[ze]=null,l}this._zr.flush(),this[Re]=!1,this[ze]=null,Oa.call(this,a),Ba.call(this,a)}else if(e.unfinished){var n=F1,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),es(this,i),e.performVisualTasks(i),jn(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>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,a,n){if(!this[Re]){if(this._disposed){this.id;return}var i,o,s;if(H(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Re]=!0,!this._model||a){var l=new sS(this._api),u=this._theme,c=this._model=new Up;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},ul);var f={seriesTransition:s,optionChanged:!0};if(n)this[ze]={silent:i,updateParams:f},this[Re]=!1,this.getZr().wakeUp();else{try{Xr(this),Kt.update.call(this,null,f)}catch(v){throw this[ze]=null,this[Re]=!1,v}this._ssr||this._zr.flush(),this[ze]=null,this[Re]=!1,Oa.call(this,i),Ba.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||G1&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!me.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return S(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;S(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return S(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Rf[n]){var l=s,u=s,c=-s,f=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();S(sn,function(_,x){if(_.group===n){var w=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(U(e)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),c=o(b.right,c),f=o(b.bottom,f),v.push({dom:w,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,f*=h;var d=c-l,p=f-u,g=Ed.createCanvas(),y=ic(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return S(v,function(_){var x=_.left-l,w=_.top-u;m+='<g transform="translate('+x+","+w+')">'+_.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 oe({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),S(v,function(_){var x=new zt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(x)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return Qo(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return Qo(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=en(n,e);return S(o,function(s,l){l.indexOf("Models")>=0&&S(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=en(n,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?_g(s,l,a):xg(s,a)},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;S(tb,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&aa(s,function(d){var p=q(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=O({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var v=c&&f!=null&&o.getComponent(c,f),h=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:h},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),S(on,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),S(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),A1(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&&qd(this.getDom(),_u,"");var a=this,n=a._api,i=a._model;S(a._componentsViews,function(o){o.dispose(i,n)}),S(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete sn[a.id]},t.prototype.resize=function(e){if(!this[Re]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[ze]&&(i==null&&(i=this[ze].silent),n=!0,this[ze]=null),this[Re]=!0;try{n&&Xr(this),Kt.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[Re]=!1,o}this[Re]=!1,Oa.call(this,i),Ba.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(H(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!cl[e]){var n=cl[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},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 a=O({},e);return a.type=on[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(H(a)||(a={silent:!!a}),!!Yi[e.type]&&!!this._model){if(this[Re]){this._pendingActions.push(e);return}var n=a.silent;ts.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&me.browser.weChat&&this._throttledZrFlush(),Oa.call(this,n),Ba.call(this,n)}},t.prototype.updateLabelLayout=function(){lt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Xr=function(f){var v=f._scheduler;v.restorePipelines(f._model),v.prepareStageTasks(),Jo(f,!0),Jo(f,!1),v.plan()},Jo=function(f,v){for(var h=f._model,d=f._scheduler,p=v?f._componentsViews:f._chartsViews,g=v?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(b,T){b!=="series"&&x(T)}):h.eachSeries(x);function x(b){var T=b.__requireNewView;b.__requireNewView=!1;var A="_ec_"+b.id+"_"+b.type,C=!T&&g[A];if(!C){var D=xt(b.type),M=v?Ae.getClass(D.main,D.sub):Fe.getClass(D.sub);C=new M,C.init(h,m),g[A]=C,p.push(C),y.add(C.group)}b.__viewId=C.__id=A,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(C,b,h,m)}for(var _=0;_<p.length;){var w=p[_];w.__alive?_++:(!v&&w.renderTask.dispose(),y.remove(w.group),w.dispose(h,m),p.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},qn=function(f,v,h,d,p){var g=f._model;if(g.setUpdatePayload(h),!d){S([].concat(f._componentsViews).concat(f._chartsViews),w);return}var y={};y[d+"Id"]=h[d+"Id"],y[d+"Index"]=h[d+"Index"],y[d+"Name"]=h[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=h.excludeSeriesId,x;_!=null&&(x=W(),S(le(_),function(b){var T=ke(b,null);T!=null&&x.set(T,!0)})),g&&g.eachComponent(m,function(b){var T=x&&x.get(b.id)!==null;if(!T)if(Cc(h))if(b instanceof dt)h.type===Dr&&!h.notBlur&&!b.get(["emphasis","disabled"])&&W_(b,h,f._api);else{var A=Xl(b.mainType,b.componentIndex,h.name,f._api),C=A.focusSelf,D=A.dispatchers;h.type===Dr&&C&&!h.notBlur&&Xs(b.mainType,b.componentIndex,f._api),D&&S(D,function(M){h.type===Dr?fa(M):ha(M)})}else qs(h)&&b instanceof dt&&($_(b,h,f._api),Tc(b),Ke(f))},f),g&&g.eachComponent(m,function(b){var T=x&&x.get(b.id)!==null;T||w(f[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},f);function w(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,f._api,h)}},Kt={prepareAndUpdate:function(f){Xr(this),Kt.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,d),y.performDataProcessorTasks(h,f),es(this,h),g.update(h,d),e(h),y.performVisualTasks(h,f),rs(this,h,d,f,v);var m=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),lt.trigger("afterupdate",h,d)}},updateTransform:function(f){var v=this,h=this._model,d=this._api;if(!!h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(y,m){if(y!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(m,h,d,f);x&&x.update&&p.push(_)}else p.push(_)}});var g=W();h.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,h,d,f);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),jn(this,h,d,f,{},g),lt.trigger("afterupdate",h,d)}},updateView:function(f){var v=this._model;!v||(v.setUpdatePayload(f),Fe.markUpdateMethod(f,"updateView"),e(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0}),rs(this,v,this._api,f,{}),lt.trigger("afterupdate",v,this._api))},updateVisual:function(f){var v=this,h=this._model;!h||(h.setUpdatePayload(f),h.eachSeries(function(d){d.getData().clearAllVisual()}),Fe.markUpdateMethod(f,"updateVisual"),e(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,f)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,f)}),lt.trigger("afterupdate",h,this._api))},updateLayout:function(f){Kt.update.call(this,f)}},Qo=function(f,v,h,d){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,m=en(p,h),_=0;_<g.length;_++){var x=g[_];if(x[v]&&(y=x[v](p,m,d))!=null)return y}},es=function(f,v){var h=f._chartsMap,d=f._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},ts=function(f,v){var h=this,d=this.getModel(),p=f.type,g=f.escapeConnect,y=Yi[p],m=y.actionInfo,_=(m.update||"update").split(":"),x=_.pop(),w=_[0]!=null&&xt(_[0]);this[Re]=!0;var b=[f],T=!1;f.batch&&(T=!0,b=N(f.batch,function(R){return R=K(O({},R),f),R.batch=null,R}));var A=[],C,D=qs(f),M=Cc(f);if(M&&up(this._api),S(b,function(R){if(C=y.action(R,h._model,h._api),C=C||O({},R),C.type=m.event||C.type,A.push(C),M){var E=Wl(f),V=E.queryOptionMap,X=E.mainTypeSpecified,B=X?V.keys()[0]:"series";qn(h,x,R,B),Ke(h)}else D?(qn(h,x,R,"series"),Ke(h)):w&&qn(h,x,R,w.main,w.sub)}),x!=="none"&&!M&&!D&&!w)try{this[ze]?(Xr(this),Kt.update.call(this,f),this[ze]=null):Kt[x].call(this,f)}catch(R){throw this[Re]=!1,R}if(T?C={type:m.event||p,escapeConnect:g,batch:A}:C=A[0],this[Re]=!1,!v){var I=this._messageCenter;if(I.trigger(C.type,C),D){var L={type:"selectchanged",escapeConnect:g,selected:Y_(d),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(L.type,L)}}},Oa=function(f){for(var v=this._pendingActions;v.length;){var h=v.shift();ts.call(this,h,f)}},Ba=function(f){!f&&this.trigger("updated")},Mf=function(f,v){f.on("rendered",function(h){v.trigger("rendered",h),f.animation.isFinished()&&!v[ze]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Df=function(f,v){f.on("mouseover",function(h){var d=h.target,p=aa(d,Ks);p&&(H_(p,h,v._api),Ke(v))}).on("mouseout",function(h){var d=h.target,p=aa(d,Ks);p&&(U_(p,h,v._api),Ke(v))}).on("click",function(h){var d=h.target,p=aa(d,function(m){return q(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=q(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(f){f.clearColorPalette(),f.eachSeries(function(v){v.clearColorPalette()})}function a(f){var v=[],h=[],d=!1;if(f.eachComponent(function(m,_){var x=_.get("zlevel")||0,w=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?h:v).push({zlevel:x,z:w,idx:_.componentIndex,type:m,key:b})}),d){var p=v.concat(h),g,y;Eo(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),S(p,function(m){var _=f.getComponent(m.type,m.idx),x=m.zlevel,w=m.key;g!=null&&(x=Math.max(g,x)),w?(x===g&&w!==y&&x++,y=w):y&&(x===g&&x++,y=""),g=x,_.setZLevel(x)})}}rs=function(f,v,h,d,p){a(v),If(f,v,h,d,p),S(f._chartsViews,function(g){g.__alive=!1}),jn(f,v,h,d,p),S(f._chartsViews,function(g){g.__alive||g.remove(v,h)})},If=function(f,v,h,d,p,g){S(g||f._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,h,d),s(m,y),c(m,y)})},jn=function(f,v,h,d,p,g){var y=f._scheduler;p=O(p||{},{updatedSeries:v.getSeries()}),lt.trigger("series:beforeupdate",v,h,p);var m=!1;v.eachSeries(function(_){var x=f._chartsMap[_.__viewId];x.__alive=!0;var w=x.renderTask;y.updatePayload(w,d),u(_,x),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),x.group.silent=!!_.get("silent"),o(_,x),Tc(_)}),y.unfinished=m||y.unfinished,lt.trigger("series:layoutlabels",v,h,p),lt.trigger("series:transition",v,h,p),v.eachSeries(function(_){var x=f._chartsMap[_.__viewId];s(_,x),c(_,x)}),i(f,v),lt.trigger("series:afterupdate",v,h,p)},Ke=function(f){f[qo]=!0,f.getZr().wakeUp()},Pf=function(f){!f[qo]||(f.getZr().storage.traverse(function(v){na(v)||n(v)}),f[qo]=!1)};function n(f){for(var v=[],h=f.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}f.selected&&f.states.select&&v.push("select"),f.hoverState===oo&&f.states.emphasis?v.push("emphasis"):f.hoverState===io&&f.states.blur&&v.push("blur"),f.useStates(v)}function i(f,v){var h=f._zr,d=h.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!me.node&&!me.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(f,v){var h=f.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function s(f,v){if(!f.preventAutoZ){var h=f.get("z")||0,d=f.get("zlevel")||0;v.eachRendered(function(p){return l(p,h,d,-1/0),!0})}}function l(f,v,h,d){var p=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var m=f.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],v,h,d),d);else f.z=v,f.zlevel=h,d=Math.max(f.z2,d);if(p&&(p.z=v,p.zlevel=h,isFinite(d)&&(p.z2=d+2)),g){var x=f.textGuideLineConfig;g.z=v,g.zlevel=h,isFinite(d)&&(g.z2=d+(x&&x.showAbove?1:-1))}return d}function u(f,v){v.eachRendered(function(h){if(!na(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,v){var h=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(na(y))return;if(y instanceof De&&J_(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),x=y.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}y.__dirty&&n(y)}})}Lf=function(f){return new(function(v){P(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){fa(d,p),Ke(f)},h.prototype.leaveEmphasis=function(d,p){ha(d,p),Ke(f)},h.prototype.enterBlur=function(d){F_(d),Ke(f)},h.prototype.leaveBlur=function(d){ip(d),Ke(f)},h.prototype.enterSelect=function(d){op(d),Ke(f)},h.prototype.leaveSelect=function(d){sp(d),Ke(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},h}($p))(f)},kg=function(f){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[jo]=d}}S(on,function(h,d){f._messageCenter.on(d,function(p){if(Rf[f.group]&&f[jo]!==Cf){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),y=[];S(sn,function(m){m!==f&&m.group===f.group&&y.push(m)}),v(y,Cf),S(y,function(m){m[jo]!==Q1&&m.dispatchAction(g)}),v(y,eb)}})})}}(),t}(ma),mu=Og.prototype;mu.on=Ig("on");mu.off=Ig("off");mu.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var tb=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Yi={},on={},ll=[],ul=[],Zi=[],Bg={},cl={},sn={},Rf={},rb=+new Date-0,_u="_echarts_instance_";function CR(r,t,e){var a=!(e&&e.ssr);if(a){var n=ab(r);if(n)return n}var i=new Og(r,t,e);return i.id="ec_"+rb++,sn[i.id]=i,a&&qd(r,_u,i.id),kg(i),lt.trigger("afterinit",i),i}function ab(r){return sn[x_(r,_u)]}function Ng(r,t){Bg[r]=t}function Vg(r){ie(ul,r)<0&&ul.push(r)}function zg(r,t){Su(ll,r,t,$1)}function nb(r){xu("afterinit",r)}function ib(r){xu("afterupdate",r)}function xu(r,t){lt.on(r,t)}function Mt(r,t,e){Z(t)&&(e=t,t="");var a=H(r)?r.type:[r,r={event:t}][0];r.event=(r.event||a).toLowerCase(),t=r.event,!on[t]&&(tt(Af.test(a)&&Af.test(t)),Yi[a]||(Yi[a]={action:e,actionInfo:r}),on[t]=a)}function ob(r,t){su.register(r,t)}function sb(r,t){Su(Zi,r,t,Cg,"layout")}function Fr(r,t){Su(Zi,r,t,Mg,"visual")}var Ef=[];function Su(r,t,e,a,n){if((Z(t)||H(t))&&(e=t,t=a),!(ie(Ef,e)>=0)){Ef.push(e);var i=yg.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function Gg(r,t){cl[r]=t}function lb(r,t,e){var a=z1("registerMap");a&&a(r,t,e)}var ub=RS;Fr(yu,i1);Fr(wo,o1);Fr(wo,s1);Fr(yu,b1);Fr(wo,w1);Fr(Dg,B1);Vg(Zp);zg(H1,pS);Gg("default",l1);Mt({type:Dr,event:Dr,update:Dr},bt);Mt({type:Si,event:Si,update:Si},bt);Mt({type:tn,event:tn,update:tn},bt);Mt({type:bi,event:bi,update:bi},bt);Mt({type:rn,event:rn,update:rn},bt);Ng("light",_1);Ng("dark",x1);function Na(r){return r==null?0:r.length||1}function kf(r){return r}var cb=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||kf,this._newKeyGetter=n||kf,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,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=Na(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],f=Na(u),v=Na(c);if(f>1&&v===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&v>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&v===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&v>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=Na(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[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=Na(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const Sn=cb;var fb=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 hb(r,t){var e={},a=e.encode={},n=W(),i=[],o=[],s={};S(r.dimensions,function(v){var h=r.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;as(a,d)[p]=v,h.isExtraCoord||(n.set(d,1),db(h.type)&&(i[0]=v),as(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Bp.each(function(g,y){var m=as(a,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};n.each(function(v,h){var d=a[h];u[h]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=N(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var f=a.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new fb(s,t),e}function as(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function vb(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function db(r){return!(r==="ordinal"||r==="time")}var pb=function(){function r(t){this.otherDims={},t!=null&&O(this,t)}return r}();const Mi=pb;var gb=ne(),yb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Fg=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=Ug(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return ve(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=Kp(this.source),a=!$g(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=e?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!f||!f.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=yb[u]||"f",c&&(n+=c.uid),n+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function Wg(r){return r instanceof Fg}function Hg(r){for(var t=W(),e=0;e<(r||[]).length;e++){var a=r[e],n=H(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function Ug(r){var t=gb(r);return t.dimNameMap||(t.dimNameMap=Hg(r.dimensionsDefine))}function $g(r){return r>30}var Va=H,qt=N,mb=typeof Int32Array>"u"?Array:Int32Array,_b="e\0\0",Of=-1,xb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Sb=["_approximateExtent"],Bf,Jn,za,Ga,ns,Qn,is,bb=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 a,n=!1;Wg(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var f=a[c],v=G(f)?new Mi({name:f}):f instanceof Mi?f:new Mi(f),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),i[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),d.itemName===0&&(this._nameDimIdx=c),d.itemId===0&&(this._idDimIdx=c),n&&(v.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=W();S(o,function(g){p.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 a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(fe(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(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof al&&(i=t),!i){var o=this.dimensions,s=lu(t)||In(t)?new qp(t,o.length):t;i=new al;var l=qt(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=hb(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 a=this._store.appendValues(t,e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&is(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==nr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===it;if(l&&!n.pure)for(var u=[],c=t;c<e;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&s_(f)&&(this.hasItemOption=!0),f){var v=f.name;i[c]==null&&v!=null&&(i[c]=ke(v,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=ke(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)is(this,c);Bf(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){Va(t)?O(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=za(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return Jn(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.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 a=this,n=this._store;return k(t)?n.getValues(qt(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;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 a=t&&this._invertedIndicesMap[t],n=a[e];return n==null||isNaN(n)?Of:n},r.prototype.indicesOfNearest=function(t,e,a){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,a)},r.prototype.each=function(t,e,a){Z(t)&&(a=e,e=t,t=[]);var n=a||this,i=qt(Ga(t),this._getStoreDimIndex,this);this._store.each(i,n?z(e,n):e)},r.prototype.filterSelf=function(t,e,a){Z(t)&&(a=e,e=t,t=[]);var n=a||this,i=qt(Ga(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?z(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Le(t);return S(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){Z(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=qt(Ga(t),this._getStoreDimIndex,this),s=Qn(this);return s._store=this._store.map(o,i?z(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=qt(Ga(t),this._getStoreDimIndex,this);this._store.modify(o,i?z(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=Qn(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.lttbDownSample=function(t,e){var a=Qn(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new Se(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Sn(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Jn(t,a)},function(a){return Jn(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Va(t)?O(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n==null?this.getVisual(e):n},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),k(i)?i=i.slice():Va(i)&&(i=O({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Va(e)?O(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Va(t)?O(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,a){this._itemLayouts[t]=a?O(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;E_(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){S(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:qt(this.dimensions,this._getDimInfo,this),this.hostModel)),ns(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];!Z(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(R0(arguments)))})},r.internalField=function(){Bf=function(t){var e=t._invertedIndicesMap;S(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new mb(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Of;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},za=function(t,e,a){return ke(t._getCategory(e,a),null)},Jn=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=za(t,t._idDimIdx,e)),a==null&&(a=_b+e),a},Ga=function(t){return k(t)||(t=t!=null?[t]:[]),t},Qn=function(t){var e=new r(t._schema?t._schema:qt(t.dimensions,t._getDimInfo,t),t.hostModel);return ns(e,t),e},ns=function(t,e){S(xb.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,S(Sb,function(a){t[a]=U(e[a])}),t._calculationInfo=O({},e._calculationInfo)},is=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=za(t,i,e)),l==null&&o!=null&&(n[e]=l=za(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[e]=l}}}(),r}();const bu=bb;function Yg(r,t){lu(r)||(r=uu(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=W(),i=[],o=Tb(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&$g(o),l=a===r.dimensionsDefine,u=l?Ug(r):Hg(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=W(c),v=new rg(o),h=0;h<v.length;h++)v[h]=-1;function d(C){var D=v[C];if(D<0){var M=a[C],I=H(M)?M:{name:M},L=new Mi,R=I.name;R!=null&&u.get(R)!=null&&(L.name=L.displayName=R),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var E=i.length;return v[C]=E,L.storeDimIndex=C,i.push(L),L}return i[D]}if(!s)for(var h=0;h<o;h++)d(h);f.each(function(C,D){var M=le(C).slice();if(M.length===1&&!G(M[0])&&M[0]<0){f.set(D,!1);return}var I=f.set(D,[]);S(M,function(L,R){var E=G(L)?u.get(L):L;E!=null&&E<o&&(I[R]=E,g(d(E),D,R))})});var p=0;S(e,function(C){var D,M,I,L;if(G(C))D=C,L={};else{L=C,D=L.name;var R=L.ordinalMeta;L.ordinalMeta=null,L=O({},L),L.ordinalMeta=R,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=f.get(D);if(E!==!1){if(E=le(E),!E.length)for(var V=0;V<(M&&M.length||1);V++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}S(E,function(X,B){var F=d(X);if(l&&L.type!=null&&(F.type=L.type),g(K(F,L),D,B),F.name==null&&M){var Y=M[B];!H(Y)&&(Y={name:Y}),F.name=F.displayName=Y.name,F.defaultTooltip=Y.defaultTooltip}I&&K(F.otherDims,I)})}});function g(C,D,M){Bp.get(D)!=null?C.otherDims[D]=M:(C.coordDim=D,C.coordDimIndex=M,n.set(D,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)S(i,function(C){w(C)}),i.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var b=0;b<o;b++){var T=d(b),A=T.coordDim;A==null&&(T.coordDim=Ab(x,n,_),T.coordDimIndex=0,(!y||m<=0)&&(T.isExtraCoord=!0),m--),w(T),T.type==null&&(Gp(r,b)===Pe.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return wb(i),new Fg({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function wb(r){for(var t=W(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function Tb(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return S(t,function(i){var o;H(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function Ab(r,t,e){var a=t.data;if(e||a.hasOwnProperty(r)){for(var n=0;a.hasOwnProperty(r+n);)n++;r+=n}return t.set(r,!0),r}var Cb=function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r}();function Mb(r){var t=r.get("coordinateSystem"),e=new Cb(t),a=Db[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Db={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Me).models[0],i=r.getReferringComponents("yAxis",Me).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Kr(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Kr(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Me).models[0];t.coordSysDims=["single"],e.set("single",n),Kr(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Me).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Kr(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Kr(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();S(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];e.set(c,u),Kr(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Kr(r){return r.get("type")==="category"}function Ib(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;Lb(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,v;if(S(i,function(m,_){G(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(c=m))}),c&&!a&&!u&&(a=!0),c){f="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,d=c.type,p=0;S(i,function(m){m.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:f}}function Lb(r){return!Wg(r.schema)}function Nr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Pb(r,t){return Nr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Rb(r,t){var e=r.get("coordinateSystem"),a=su.get(e),n;return t&&t.coordSysDims&&(n=N(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=vb(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function Eb(r,t,e){var a,n;return e&&S(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function To(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=uu(r)):(n=a.getSource(),i=n.sourceFormat===it);var o=Mb(t),s=Rb(t,o),l=e.useEncodeDefaulter,u=Z(l)?l:l?ee(Wx,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Yg(n,c),v=Eb(f.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(f),d=Ib(t,{schema:f,store:h}),p=new bu(f,t);p.setCalculationInfo(d);var g=v!=null&&kb(n)?function(y,m,_,x){return x===v?_:this.defaultDimValueGetter(y,m,_,x)}:null;return p.hasItemOption=!1,p.initData(i?n:h,null,g),p}function kb(r){if(r.sourceFormat===it){var t=Ob(r.data||[]);return!k(_a(t))}}function Ob(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Zg=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 a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[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}();no(Zg);const Ut=Zg;var Bb=0,Nb=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Bb}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&N(a,Vb);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!G(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r}();function Vb(r){return H(r)&&r.value!=null?r.value:r+""}const fl=Nb;function hl(r){return r.type==="interval"||r.type==="log"}function zb(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=Wd(i/t,!0);e!=null&&o<e&&(o=n.interval=e),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=Xg(o),l=n.niceTickExtent=[xe(Math.ceil(r[0]/o)*o,s),xe(Math.floor(r[1]/o)*o,s)];return Gb(l,r),n}function os(r){var t=Math.pow(10,Gl(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,xe(e*t)}function Xg(r){return Et(r)+2}function Nf(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Gb(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Nf(r,0,t),Nf(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ao(r,t){return r>=t[0]&&r<=t[1]}function Co(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Mo(r,t){return r*(t[1]-t[0])+t[0]}var Kg=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new fl({})),k(n)&&(n=new fl({categories:N(n,function(i){return H(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ao(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Co(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Mo(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;n.push(c),i[c]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},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}(Ut);Ut.registerClass(Kg);const wu=Kg;var _r=xe,qg=function(r){P(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 Ao(e,this._extent)},t.prototype.normalize=function(e){return Co(e,this._extent)},t.prototype.scale=function(e){return Mo(e,this._extent)},t.prototype.setExtent=function(e,a){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(a)||(n[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]<a[0]&&(a[0]=e[0]),e[1]>a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Xg(e)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(e?s.push({value:_r(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=_r(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return n[1]>c&&(e?s.push({value:_r(c+a,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,c=[],f=s.value-l.value,v=f/e;u<e-1;){var h=_r(l.value+(u+1)*v);h>i[0]&&h<i[1]&&c.push(h),u++}n.push(c)}return n},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=Et(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=_r(e.value,n,!0);return Lp(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(!!isFinite(o)){o<0&&(o=-o,i.reverse());var s=zb(i,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=a[0];e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(a[0]=_r(Math.floor(a[0]/o)*o)),e.fixMax||(a[1]=_r(Math.ceil(a[1]/o)*o))},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t}(Ut);Ut.registerClass(qg);const ur=qg;var jg=typeof Float32Array<"u",Fb=jg?Float32Array:Array;function kt(r){return k(r)?jg?new Float32Array(r):r:new Fb(r)}var Wb="__ec_stack_";function Tu(r){return r.get("stack")||Wb+r.seriesIndex}function Au(r){return r.dim+r.index}function Jg(r,t){var e=[];return t.eachSeriesByType(r,function(a){ry(a)&&e.push(a)}),e}function Hb(r){var t={};S(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),v=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),d=f.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(h,p);t[v]?t[v].push(y):t[v]=[y]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function Qg(r){var t=Hb(r),e=[];return S(r,function(a){var n=a.coordinateSystem,i=n.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],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),v=Math.abs(f[1]-f[0]);s=u?c/v*u:c}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=$(a.get("barWidth"),s),p=$(a.get("barMaxWidth"),s),g=$(a.get("barMinWidth")||(ay(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Au(i),stackId:Tu(a)})}),Ub(e)}function Ub(r){var t={};S(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var v=a.barMinWidth;v&&(l[u].minWidth=v);var h=a.barGap;h!=null&&(s.gap=h);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return S(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Le(i).length;s=Math.max(35-l*4,15)+"%"}var u=$(s,o),c=$(a.gap,1),f=a.remainedWidth,v=a.autoWidthCount,h=(f-u)/(v+(v-1)*c);h=Math.max(h,0),S(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),_&&(x=Math.max(x,_)),y.width=x,f-=x+c*x,v--}else{var x=h;m&&m<x&&(x=Math.min(m,f)),_&&_>x&&(x=_),x!==h&&(y.width=x,f-=x+c*x,v--)}}),h=(f-u)/(v+(v-1)*c),h=Math.max(h,0);var d=0,p;S(i,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;S(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),e}function $b(r,t,e){if(r&&t){var a=r[Au(t)];return a!=null&&e!=null?a[Tu(e)]:a}}function ey(r,t){var e=Jg(r,t),a=Qg(e);S(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Tu(n),u=a[Au(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function ty(r){return{seriesType:r,plan:vu(),reset:function(t){if(!!ry(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=Nr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=Yb(n,i),d=ay(t),p=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,x){for(var w=_.count,b=d&&kt(w*3),T=d&&l&&kt(w*3),A=d&&kt(w),C=a.master.getRect(),D=v?C.width:C.height,M,I=x.getStore(),L=0;(M=_.next())!=null;){var R=I.get(f?g:o,M),E=I.get(s,M),V=h,X=void 0;f&&(X=+R-I.get(o,M));var B=void 0,F=void 0,Y=void 0,re=void 0;if(v){var ue=a.dataToPoint([R,E]);if(f){var ce=a.dataToPoint([X,E]);V=ce[0]}B=V,F=ue[1]+m,Y=ue[0]-V,re=y,Math.abs(Y)<p&&(Y=(Y<0?-1:1)*p)}else{var ue=a.dataToPoint([E,R]);if(f){var ce=a.dataToPoint([E,X]);V=ce[1]}B=ue[0]+m,F=V,Y=y,re=ue[1]-V,Math.abs(re)<p&&(re=(re<=0?-1:1)*p)}d?(b[L]=B,b[L+1]=F,b[L+2]=v?Y:re,T&&(T[L]=v?C.x:B,T[L+1]=v?F:C.y,T[L+2]=D),A[M]=M):x.setItemLayout(M,{x:B,y:F,width:Y,height:re}),L+=3}d&&x.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:T,valueAxisHorizontal:v})}}}}}}function ry(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function ay(r){return r.pipelineContext&&r.pipelineContext.large}function Yb(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var Zb=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},ny=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return vo(e.value,Bc[Lx(ia(this._minLevelUnit))]||Bc.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Px(e,a,n,o,i)},t.prototype.getTicks=function(){var e=this._interval,a=this._extent,n=[];if(!e)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=ew(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1]&&(a[0]-=et,a[1]+=et),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-et}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=ei.length,l=Math.min(Zb(ei,this._approxInterval,0,s),s-1);this._interval=ei[l][1],this._minLevelUnit=ei[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return fe(e)?e:+wt(e)},t.prototype.contain=function(e){return Ao(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Co(this.parse(e),this._extent)},t.prototype.scale=function(e){return Mo(e,this._extent)},t.type="time",t}(ur),ei=[["second",eu],["minute",tu],["hour",an],["quarter-day",an*6],["half-day",an*12],["day",et*1.2],["half-week",et*3.5],["week",et*7],["month",et*31],["quarter",et*95],["half-year",Oc/2],["year",Oc]];function Xb(r,t,e,a){var n=wt(t),i=wt(e),o=function(d){return Nc(n,d,a)===Nc(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},v=function(){return f()&&o("second")},h=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return v();case"millisecond":return h()}}function Kb(r,t){return r/=et,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function qb(r){var t=30*et;return r/=t,r>6?6:r>3?3:r>2?2:1}function jb(r){return r/=an,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Vf(r,t){return r/=t?tu:eu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Jb(r){return Wd(r,!0)}function Qb(r,t,e){var a=new Date(r);switch(ia(t)){case"year":case"month":a[Tp(e)](0);case"day":a[Ap(e)](1);case"hour":a[Cp(e)](0);case"minute":a[Mp(e)](0);case"second":a[Dp(e)](0),a[Ip(e)](0)}return a.getTime()}function ew(r,t,e,a){var n=1e4,i=bp,o=0;function s(D,M,I,L,R,E,V){for(var X=new Date(M),B=M,F=X[L]();B<I&&B<=a[1];)V.push({value:B}),F+=D,X[R](F),B=X.getTime();V.push({value:B,notAdd:!0})}function l(D,M,I){var L=[],R=!M.length;if(!Xb(ia(D),a[0],a[1],e)){R&&(M=[{value:Qb(new Date(a[0]),D,e)},{value:a[1]}]);for(var E=0;E<M.length-1;E++){var V=M[E].value,X=M[E+1].value;if(V!==X){var B=void 0,F=void 0,Y=void 0,re=!1;switch(D){case"year":B=Math.max(1,Math.round(t/et/365)),F=ru(e),Y=Rx(e);break;case"half-year":case"quarter":case"month":B=qb(t),F=oa(e),Y=Tp(e);break;case"week":case"half-week":case"day":B=Kb(t),F=po(e),Y=Ap(e),re=!0;break;case"half-day":case"quarter-day":case"hour":B=jb(t),F=gn(e),Y=Cp(e);break;case"minute":B=Vf(t,!0),F=go(e),Y=Mp(e);break;case"second":B=Vf(t,!1),F=yo(e),Y=Dp(e);break;case"millisecond":B=Jb(t),F=mo(e),Y=Ip(e);break}s(B,V,X,F,Y,re,L),D==="year"&&I.length>1&&E===0&&I.unshift({value:I[0].value-B})}}for(var E=0;E<L.length;E++)I.push(L[E]);return L}}for(var u=[],c=[],f=0,v=0,h=0;h<i.length&&o++<n;++h){var d=ia(i[h]);if(!!Ix(i[h])){l(i[h],u[u.length-1]||[],c);var p=i[h+1]?ia(i[h+1]):null;if(d!==p){if(c.length){v=f,c.sort(function(D,M){return D.value-M.value});for(var g=[],y=0;y<c.length;++y){var m=c[y].value;(y===0||c[y-1].value!==m)&&(g.push(c[y]),m>=a[0]&&m<=a[1]&&f++)}var _=(a[1]-a[0])/t;if(f>_*1.5&&v>_/1.5||(u.push(g),f>_||r===i[h]))break}c=[]}}}for(var x=pe(N(u,function(D){return pe(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),w=[],b=x.length-1,h=0;h<x.length;++h)for(var T=x[h],A=0;A<T.length;++A)w.push({value:T[A].value,level:b-h});w.sort(function(D,M){return D.value-M.value});for(var C=[],h=0;h<w.length;++h)(h===0||w[h].value!==w[h-1].value)&&C.push(w[h]);return C}Ut.registerClass(ny);const iy=ny;var zf=Ut.prototype,ln=ur.prototype,tw=xe,rw=Math.floor,aw=Math.ceil,ti=Math.pow,qe=Math.log,Cu=function(r){P(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ur,e._interval=0,e}return t.prototype.getTicks=function(e){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=ln.getTicks.call(this,e);return N(o,function(s){var l=s.value,u=xe(ti(this.base,l));return u=l===n[0]&&this._fixMin?ri(u,i[0]):u,u=l===n[1]&&this._fixMax?ri(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,a){var n=this.base;e=qe(e)/qe(n),a=qe(a)/qe(n),ln.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=zf.getExtent.call(this);a[0]=ti(e,a[0]),a[1]=ti(e,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=ri(a[0],i[0])),this._fixMax&&(a[1]=ri(a[1],i[1])),a},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var a=this.base;e[0]=qe(e[0])/qe(a),e[1]=qe(e[1])/qe(a),zf.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=o_(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[xe(aw(a[0]/i)*i),xe(rw(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){ln.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=qe(e)/qe(this.base),Ao(e,this._extent)},t.prototype.normalize=function(e){return e=qe(e)/qe(this.base),Co(e,this._extent)},t.prototype.scale=function(e){return e=Mo(e,this._extent),ti(this.base,e)},t.type="log",t}(Ut),oy=Cu.prototype;oy.getMinorTicks=ln.getMinorTicks;oy.getLabel=ln.getLabel;function ri(r,t){return tw(r,Et(t))}Ut.registerClass(Cu);const nw=Cu;var iw=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);Z(i)?this._modelMinNum=ai(t,i({min:a[0],max:a[1]})):i!=="dataMin"&&(this._modelMinNum=ai(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(Z(o)?this._modelMaxNum=ai(t,o({min:a[0],max:a[1]})):o!=="dataMax"&&(this._modelMaxNum=ai(t,o)),n)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=k(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ua(l[0],1),ua(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=$s(s)||$s(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[sw[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=ow[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),ow={min:"_determinedMin",max:"_determinedMax"},sw={min:"_dataMin",max:"_dataMax"};function sy(r,t,e){var a=r.rawExtentInfo;return a||(a=new iw(r,t,e),r.rawExtentInfo=a,a)}function ai(r,t){return t==null?null:$s(t)?NaN:r.parse(t)}function ly(r,t){var e=r.type,a=sy(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=Jg("bar",o),l=!1;if(S(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Qg(s),c=lw(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function lw(r,t,e,a){var n=e.axis.getExtent(),i=n[1]-n[0],o=$b(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;S(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;S(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,v=c/f-c;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function bn(r,t){var e=t,a=ly(r,e),n=a.extent,i=e.get("splitNumber");r instanceof nw&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Mu(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new wu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new iy({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ut.getClass(t)||ur)}}function uw(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Vn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(t):G(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(t):Z(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(Du(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function Du(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function cw(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof wu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Vn(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var f=a?a[c]:{value:i[0]+c},v=s(f,c),h=o.getTextRect(v),d=fw(h,o.get("rotate")||0);l?l.union(d):l=d}return l}}function fw(r,t){var e=t*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=a*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new ge(r.x,r.y,i,o);return s}function Iu(r){var t=r.get("interval");return t==null?"auto":t}function uy(r){return r.type==="category"&&Iu(r.getLabelModel())===0}function Xi(r,t){var e={};return S(r.mapDimensionsAll(t),function(a){e[Pb(r,a)]=!0}),Le(e)}function hw(r,t,e){t&&S(Xi(t,e),function(a){var n=t.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var Do=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Gf=[],vw={registerPreprocessor:Vg,registerProcessor:zg,registerPostInit:nb,registerPostUpdate:ib,registerUpdateLifecycle:xu,registerAction:Mt,registerCoordinateSystem:ob,registerLayout:sb,registerVisual:Fr,registerTransform:ub,registerLoading:Gg,registerMap:lb,registerImpl:V1,PRIORITY:J1,ComponentModel:te,ComponentView:Ae,SeriesModel:dt,ChartView:Fe,registerComponentModel:function(r){te.registerClass(r)},registerComponentView:function(r){Ae.registerClass(r)},registerSeriesModel:function(r){dt.registerClass(r)},registerChartView:function(r){Fe.registerClass(r)},registerSubTypeDefaulter:function(r,t){te.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){E0(r,t)}};function Be(r){if(k(r)){S(r,function(t){Be(t)});return}ie(Gf,r)>=0||(Gf.push(r),Z(r)&&(r={install:r}),r.install(vw))}var dw=[];function ss(r,t){for(var e=0;e<r.length;e++)rt(r[e],r[e],t)}function Ff(r,t,e,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(kd(t,t,i),Od(e,e,i))}}function pw(r){for(var t=0,e=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;t+=c,e+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var cy=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}(),Wf=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Hf=function(){function r(t){this.type="linestring",this.points=t}return r}(),fy=function(r){P(t,r);function t(e,a,n){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,n=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return pw(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return S(o,function(s){s.type==="polygon"?Ff(s.exterior,n,i,e):S(s.points,function(l){Ff(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new ge(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(oc(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(oc(u[c],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new ge(e,a,n,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var v=c[f];v.type==="polygon"?(ss(v.exterior,u),S(v.interiors,function(h){ss(h,u)})):S(v.points,function(h){ss(h,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 a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t}(cy),gw=function(r){P(t,r);function t(e,a){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,a=e.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=Nl(dw),o=e;o&&!o.isGeoSVGGraphicRoot;)Ri(i,o.getLocalTransform(),i),o=o.parent;return Ln(i,i),rt(n,n,i),n},t}(cy);function yw(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return S(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(!!o)switch(i.type){case"LineString":i.coordinates=hy(s,o,e);break;case"Polygon":ls(s,o,e);break;case"MultiLineString":ls(s,o,e);break;case"MultiPolygon":S(s,function(l,u){return ls(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function ls(r,t,e){for(var a=0;a<r.length;a++)r[a]=hy(r[a],t[a],e)}function hy(r,t,e){for(var a=[],n=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+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function mw(r,t){return r=yw(r),N(pe(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Wf(o[0],o.slice(1)));break;case"MultiPolygon":S(n.coordinates,function(l){l[0]&&i.push(new Wf(l[0],l.slice(1)))});break;case"LineString":i.push(new Hf([n.coordinates]));break;case"MultiLineString":i.push(new Hf(n.coordinates))}var s=new fy(a[t||"name"],i,a.cp);return s.properties=a,s})}var wn=ne();function _w(r){return r.type==="category"?Sw(r):ww(r)}function xw(r,t){return r.type==="category"?bw(r,t):{ticks:N(r.scale.getTicks(),function(e){return e.value})}}function Sw(r){var t=r.getLabelModel(),e=vy(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function vy(r,t){var e=dy(r,"labels"),a=Iu(t),n=py(e,a);if(n)return n;var i,o;return Z(a)?i=my(r,a):(o=a==="auto"?Tw(r):a,i=yy(r,o)),gy(e,a,{labels:i,labelCategoryInterval:o})}function bw(r,t){var e=dy(r,"ticks"),a=Iu(t),n=py(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),Z(a))i=my(r,a,!0);else if(a==="auto"){var s=vy(r,r.getLabelModel());o=s.labelCategoryInterval,i=N(s.labels,function(l){return l.tickValue})}else o=a,i=yy(r,o,!0);return gy(e,a,{ticks:i,tickCategoryInterval:o})}function ww(r){var t=r.scale.getTicks(),e=Vn(r);return{labels:N(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function dy(r,t){return wn(r)[t]||(wn(r)[t]=[])}function py(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function gy(r,t,e){return r.push({key:t,value:e}),e}function Tw(r){var t=wn(r).autoInterval;return t!=null?t:wn(r).autoInterval=r.calculateCategoryInterval()}function Aw(r){var t=Cw(r),e=Vn(r),a=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.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),c=Math.abs(u*Math.cos(a)),f=Math.abs(u*Math.sin(a)),v=0,h=0;l<=i[1];l+=s){var d=0,p=0,g=ao(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),h=Math.max(h,p,7)}var y=v/c,m=h/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=wn(r.model),w=r.getExtent(),b=x.lastAutoInterval,T=x.lastTickCount;return b!=null&&T!=null&&Math.abs(b-_)<=1&&Math.abs(T-o)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function Cw(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 yy(r,t,e){var a=Vn(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=uy(r),v=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);h&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function my(r,t,e){var a=r.scale,n=Vn(r),i=[];return S(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Uf=[0,1],Mw=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Gd(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(a=a.slice(),$f(a,n.count())),he(t,Uf,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),$f(a,n.count()));var i=he(t,a,Uf,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(),a=xw(this,e),n=a.ticks,i=N(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Dw(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 a=this.scale.getMinorTicks(e),n=N(a,function(i){return N(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return _w(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(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return Aw(this)},r}();function $f(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function Dw(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[0]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;S(t,function(h){h.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s},t.push(o)}var f=i[0]>i[1];v(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&v(i[0],t[0].coord)&&t.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&v(o.coord,i[1])&&t.push({coord:i[1]});function v(h,d){return h=xe(h),d=xe(d),f?h>d:h<d}}const Dt=Mw;var Fa=Math.PI*2,xr=Bd.CMD,Iw=["top","right","bottom","left"];function Lw(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function Pw(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*e+r,f=s*e+t;if(Math.abs(a-n)%Fa<1e-4)return l[0]=c,l[1]=f,u-e;if(i){var v=a;a=Hn(n),n=Hn(v)}else a=Hn(a),n=Hn(n);a>n&&(n+=Fa);var h=Math.atan2(s,o);if(h<0&&(h+=Fa),h>=a&&h<=n||h+Fa>=a&&h+Fa<=n)return l[0]=c,l[1]=f,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Ki(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,c=e-r,f=a-t,v=Math.sqrt(c*c+f*f);c/=v,f/=v;var h=l*c+u*f,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*c,g=o[1]=t+d*f;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function _y(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var ut=[];function Rw(r,t,e){var a=_y(t.x,t.y,t.width,t.height,r.x,r.y,ut);return e.set(ut[0],ut[1]),a}function Ew(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,v=r.y,h=0;h<c.length;){var d=c[h++];h===1&&(a=c[h],n=c[h+1],i=a,o=n);var p=u;switch(d){case xr.M:i=c[h++],o=c[h++],a=i,n=o;break;case xr.L:p=Ki(a,n,c[h],c[h+1],f,v,ut,!0),a=c[h++],n=c[h++];break;case xr.C:p=O0(a,n,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,v,ut),a=c[h++],n=c[h++];break;case xr.Q:p=k0(a,n,c[h++],c[h++],c[h],c[h+1],f,v,ut),a=c[h++],n=c[h++];break;case xr.A:var g=c[h++],y=c[h++],m=c[h++],_=c[h++],x=c[h++],w=c[h++];h+=1;var b=!!(1-c[h++]);s=Math.cos(x)*m+g,l=Math.sin(x)*_+y,h<=1&&(i=s,o=l);var T=(f-g)*_/m+g;p=Pw(g,y,_,x,x+w,b,T,v,ut),a=Math.cos(x+w)*m+g,n=Math.sin(x+w)*_+y;break;case xr.R:i=a=c[h++],o=n=c[h++];var A=c[h++],C=c[h++];p=_y(i,o,A,C,f,v,ut);break;case xr.Z:p=Ki(a,n,i,o,f,v,ut,!0),a=i,n=o;break}p<u&&(u=p,e.set(ut[0],ut[1]))}return u}var ht=new we,se=new we,ye=new we,St=new we,_t=new we;function Yf(r,t){if(!!r){var e=r.getTextGuideLine(),a=r.getTextContent();if(!!(a&&e)){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||Iw,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&Ln([],c),v=t.get("length2")||0;u&&ye.copy(u);for(var h=0;h<o.length;h++){var d=o[h];Lw(d,0,s,ht,St),we.scaleAndAdd(se,ht,St,v),se.transform(f);var p=r.getBoundingRect(),g=u?u.distance(se):r instanceof De?Ew(se,r.path,ye):Rw(se,p,ye);g<l&&(l=g,se.transform(c),ye.transform(c),ye.toArray(i[0]),se.toArray(i[1]),ht.toArray(i[2]))}xy(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var qi=[],Ve=new we;function xy(r,t){if(t<=180&&t>0){t=t/180*Math.PI,ht.fromArray(r[0]),se.fromArray(r[1]),ye.fromArray(r[2]),we.sub(St,ht,se),we.sub(_t,ye,se);var e=St.len(),a=_t.len();if(!(e<.001||a<.001)){St.scale(1/e),_t.scale(1/a);var n=St.dot(_t),i=Math.cos(t);if(i<n){var o=Ki(se.x,se.y,ye.x,ye.y,ht.x,ht.y,qi,!1);Ve.fromArray(qi),Ve.scaleAndAdd(_t,o/Math.tan(Math.PI-t));var s=ye.x!==se.x?(Ve.x-se.x)/(ye.x-se.x):(Ve.y-se.y)/(ye.y-se.y);if(isNaN(s))return;s<0?we.copy(Ve,se):s>1&&we.copy(Ve,ye),Ve.toArray(r[1])}}}}function kw(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ht.fromArray(r[0]),se.fromArray(r[1]),ye.fromArray(r[2]),we.sub(St,se,ht),we.sub(_t,ye,se);var a=St.len(),n=_t.len();if(!(a<.001||n<.001)){St.scale(1/a),_t.scale(1/n);var i=St.dot(t),o=Math.cos(e);if(i<o){var s=Ki(se.x,se.y,ye.x,ye.y,ht.x,ht.y,qi,!1);Ve.fromArray(qi);var l=Math.PI/2,u=Math.acos(_t.dot(t)),c=l+u-e;if(c>=l)we.copy(Ve,ye);else{Ve.scaleAndAdd(_t,s/Math.tan(Math.PI/2-c));var f=ye.x!==se.x?(Ve.x-se.x)/(ye.x-se.x):(Ve.y-se.y)/(ye.y-se.y);if(isNaN(f))return;f<0?we.copy(Ve,se):f>1&&we.copy(Ve,ye)}Ve.toArray(r[1])}}}}function Zf(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function Ow(r,t){var e=t.smooth,a=t.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=sc(a[0],a[1]),i=sc(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=ko([],a[1],a[0],o/n),l=ko([],a[1],a[2],o/i),u=ko([],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],a[2][0],a[2][1])}else for(var c=1;c<a.length;c++)r.lineTo(a[c][0],a[c][1])}function Sy(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<Ni.length;l++){var u=Ni[l],c=t[u],f=u==="normal";if(c){var v=c.get("show"),h=f?s:ve(n.states[u]&&n.states[u].ignore,s);if(h||!ve(v,o)){var d=f?a:a&&a.states[u];d&&(d.ignore=!0);continue}a||(a=new At,r.setTextGuideLine(a),!f&&(s||!o)&&Zf(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Zf(a,!1,u,c)}}if(a){K(a.style,e),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=Ow}}function by(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<nt.length;a++){var n=nt[a];e[n]=r.getModel([n,t])}return e}function wy(r){for(var t=[],e=0;e<r.length;e++){var a=r[e];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Ei(o,i):null;t.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:c,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return t}function Ty(r,t,e,a,n,i){var o=r.length;if(o<2)return;r.sort(function(A,C){return A.rect[t]-C.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var v=r[f],h=v.rect;l=h[t]-s,l<0&&(h[t]-=l,v.label[t]-=l,u=!0);var d=Math.max(-l,0);c+=d,s=h[t]+h[e]}c>0&&i&&w(-c/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),x(y,m,1),x(m,y,-1),_(),y<0&&T(-y),m<0&&T(m);function _(){y=p.rect[t]-a,m=n-g.rect[t]-g.rect[e]}function x(A,C,D){if(A<0){var M=Math.min(C,-A);if(M>0){w(M*D,0,o);var I=M+A;I<0&&b(-I*D,1)}else b(-A*D,1)}}function w(A,C,D){A!==0&&(u=!0);for(var M=C;M<D;M++){var I=r[M],L=I.rect;L[t]+=A,I.label[t]+=A}}function b(A,C){for(var D=[],M=0,I=1;I<o;I++){var L=r[I-1].rect,R=Math.max(r[I].rect[t]-L[t]-L[e],0);D.push(R),M+=R}if(!!M){var E=Math.min(Math.abs(A)/M,C);if(A>0)for(var I=0;I<o-1;I++){var V=D[I]*E;w(V,0,I+1)}else for(var I=o-1;I>0;I--){var V=D[I-1]*E;w(-V,I,o)}}}function T(A){var C=A<0?-1:1;A=Math.abs(A);for(var D=Math.ceil(A/(o-1)),M=0;M<o-1;M++)if(C>0?w(D,0,M+1):w(-D,o-M-1,o),A-=D,A<=0)return}return u}function Bw(r,t,e,a){return Ty(r,"x","width",t,e,a)}function Ay(r,t,e,a){return Ty(r,"y","height",t,e,a)}function Cy(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new ge(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var f=i.obb,v=!1,h=0;h<t.length;h++){var d=t[h];if(!!e.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new Ei(d.localRect,d.transform)),f||(f=new Ei(s,l)),f.intersect(d.obb)){v=!0;break}}}v?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function Nw(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function Vw(r,t){var e=r.label,a=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:Nw(a&&a.shape.points)}}var Xf=["align","verticalAlign","width","height","fontSize"],$e=new ra,us=ne(),zw=ne();function ni(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var ii=["x","y","rotation"],Gw=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();ge.applyTransform(c,c,u),u?$e.setLocalTransform(u):($e.x=$e.y=$e.rotation=$e.originX=$e.originY=0,$e.scaleX=$e.scaleY=1);var f=n.__hostTarget,v;if(f){v=f.getBoundingRect().plain();var h=f.getComputedTransform();ge.applyTransform(v,v,h)}var d=v&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:$e.x,y:$e.y,scaleX:$e.scaleX,scaleY:$e.scaleY,rotation:$e.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");!(Z(n)||Le(n).length)||t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=q(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(_,x){return function(){Yf(_,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Z(o.layoutOption)?c=o.layoutOption(Vw(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var v=!1;if(c.x!=null?(s.x=$(c.x,e),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=$(c.y,a),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),v=!1)}var d=us(s);d.needsUpdateLabelLine=v,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Xf.length;p++){var g=Xf[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.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",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=wy(this._labelList),i=pe(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=pe(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});Bw(i,0,e),Ay(o,0,a);var s=pe(n,function(l){return l.layoutOption.hideOverlap});Cy(s)},r.prototype.processLabelsOverall=function(){var t=this;S(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=us(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=q(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style"),c=o.getVisual("drawType");l.stroke=u[c];var f=s.getModel("labelLine");Sy(t,by(s),l),Yf(t,f)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!na(t))){var i=us(a),o=i.oldLayout,s=q(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=e.getData(s.dataType);if(o){a.attr(o);var v=t.prevStates;v&&(ie(v,"select")>=0&&a.attr(i.oldLayoutSelect),ie(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),de(a,u,e,l)}else if(a.attr(u),!ba(a).valueAnimation){var f=ve(a.style.opacity,1);a.style.opacity=0,Ie(a,{style:{opacity:f}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};ni(h,u,ii),ni(h,a.states.select,ii)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};ni(d,u,ii),ni(d,a.states.emphasis,ii)}dx(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=zw(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),de(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Ie(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const Fw=Gw;var cs=ne();function MR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=cs(e).labelManager;n||(n=cs(e).labelManager=new Fw),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=cs(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Ww=function(r){P(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 To(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new Q,n=Oe("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=Oe(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*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),a},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}(dt);const Hw=Ww;function Io(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=da(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(da(r,t,e[o]));return i.join(" ")}}function My(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!k(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var Uw=function(r){P(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=Oe(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=$w,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(){fa(this.childAt(0))},t.prototype.downplay=function(){ha(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,f)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(h):de(v,h,s,a),dn(v)}if(this._updateCommon(e,a,l,n,i),u){var v=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ie(v,h,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,v,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,v=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Ht(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var x=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=bo(e.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(a,"style"),T=b.fill;if(s instanceof zt){var A=s.style;s.useStyle(O({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else s.__isEmptyBrush?s.useStyle(O({},b)):s.useStyle(b),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;Wt(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:T,defaultOpacity:b.opacity});function I(E){return M?e.getName(E):Io(e,E)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");if(L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c,g){var R=Math.max(fe(g)?g:1.1,3/this._sizeY);L.scaleX=this._sizeX*R,L.scaleY=this._sizeY*R}this.setSymbolScale(1),sr(this,v,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=q(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&vn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();vn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return gu(e.getItemVisual(a,"symbolSize"))},t}(Q);function $w(r,t){this.parent.drift(r,t)}const Lu=Uw;function fs(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Kf(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function qf(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:Ht(t),cursorStyle:t.get("cursor")}}var Yw=function(){function r(t){this.group=new Q,this._SymbolCtor=t||Lu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Kf(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=qf(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||a.removeAll(),t.diff(i).add(function(f){var v=c(f);if(fs(t,v,f,e)){var h=new o(t,f,l,u);h.setPosition(v),t.setItemGraphicEl(f,h),a.add(h)}}).update(function(f,v){var h=i.getItemGraphicEl(v),d=c(f);if(!fs(t,d,f,e)){a.remove(h);return}var p=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)a.remove(h),h=new o(t,f,l,u),h.setPosition(d);else{h.updateData(t,f,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):de(h,y,n)}a.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var v=i.getItemGraphicEl(f);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=qf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=Kf(a);function n(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(fs(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){co(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r}();const Dy=Yw;function Iy(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=Zw(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=N(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return Nr(t,f[0])&&(v=!0,f[0]=h),Nr(t,f[1])&&(v=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Zw(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:fe(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function Ly(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function Xw(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function Kw(r,t,e,a,n,i,o,s){for(var l=Xw(r,t),u=[],c=[],f=[],v=[],h=[],d=[],p=[],g=Iy(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],w=!0,b=void 0,T=void 0;switch(x.cmd){case"=":b=x.idx*2,T=x.idx1*2;var A=y[b],C=y[b+1],D=m[T],M=m[T+1];(isNaN(A)||isNaN(C))&&(A=D,C=M),u.push(A,C),c.push(D,M),f.push(e[b],e[b+1]),v.push(a[T],a[T+1]),p.push(t.getRawIndex(x.idx1));break;case"+":var I=x.idx,L=g.dataDimsForPoint,R=n.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);T=I*2,u.push(R[0],R[1]),c.push(m[T],m[T+1]);var E=Ly(g,n,t,I);f.push(E[0],E[1]),v.push(a[T],a[T+1]),p.push(t.getRawIndex(I));break;case"-":w=!1}w&&(h.push(x),d.push(d.length))}d.sort(function(ot,be){return p[ot]-p[be]});for(var V=u.length,X=kt(V),B=kt(V),F=kt(V),Y=kt(V),re=[],_=0;_<d.length;_++){var ue=d[_],ce=_*2,Ce=ue*2;X[ce]=u[Ce],X[ce+1]=u[Ce+1],B[ce]=c[Ce],B[ce+1]=c[Ce+1],F[ce]=f[Ce],F[ce+1]=f[Ce+1],Y[ce]=v[Ce],Y[ce+1]=v[Ce+1],re[_]=h[ue]}return{current:X,next:B,stackedOnCurrent:F,stackedOnNext:Y,status:re}}var jt=Math.min,Jt=Math.max;function Rr(r,t){return isNaN(r)||isNaN(t)}function vl(r,t,e,a,n,i,o,s,l){for(var u,c,f,v,h,d,p=e,g=0;g<a;g++){var y=t[p*2],m=t[p*2+1];if(p>=n||p<0)break;if(Rr(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),f=y,v=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){p+=i;continue}if(o>0){for(var w=p+i,b=t[w*2],T=t[w*2+1];b===y&&T===m&&g<a;)g++,w+=i,p+=i,b=t[w*2],T=t[w*2+1],y=t[p*2],m=t[p*2+1],_=y-u,x=m-c;var A=g+1;if(l)for(;Rr(b,T)&&A<a;)A++,w+=i,b=t[w*2],T=t[w*2+1];var C=.5,D=0,M=0,I=void 0,L=void 0;if(A>=a||Rr(b,T))h=y,d=m;else{D=b-u,M=T-c;var R=y-u,E=b-y,V=m-c,X=T-m,B=void 0,F=void 0;if(s==="x"){B=Math.abs(R),F=Math.abs(E);var Y=D>0?1:-1;h=y-Y*B*o,d=m,I=y+Y*F*o,L=m}else if(s==="y"){B=Math.abs(V),F=Math.abs(X);var re=M>0?1:-1;h=y,d=m-re*B*o,I=y,L=m+re*F*o}else B=Math.sqrt(R*R+V*V),F=Math.sqrt(E*E+X*X),C=F/(F+B),h=y-D*o*(1-C),d=m-M*o*(1-C),I=y+D*o*C,L=m+M*o*C,I=jt(I,Jt(b,y)),L=jt(L,Jt(T,m)),I=Jt(I,jt(b,y)),L=Jt(L,jt(T,m)),D=I-y,M=L-m,h=y-D*B/F,d=m-M*B/F,h=jt(h,Jt(u,y)),d=jt(d,Jt(c,m)),h=Jt(h,jt(u,y)),d=Jt(d,jt(c,m)),D=y-h,M=m-d,I=y+D*F/B,L=m+M*F/B}r.bezierCurveTo(f,v,h,d,y,m),f=I,v=L}else r.lineTo(y,m)}u=y,c=m,p+=i}return g}var Py=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),qw=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Py},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Rr(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Rr(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=vl(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=Bd.CMD,s,l,u=a==="x",c=[],f=0;f<i.length;){var v=i[f++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],d=i[f++],_=u?(e-s)/(h-s):(e-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(h-s)*_+s;return u?[e,x]:[x,e]}s=h,l=d;break;case o.C:h=i[f++],d=i[f++],p=i[f++],g=i[f++],y=i[f++],m=i[f++];var w=u?lc(s,h,p,y,e,c):lc(l,d,g,m,e,c);if(w>0)for(var b=0;b<w;b++){var T=c[b];if(T<=1&&T>=0){var x=u?uc(l,d,g,m,T):uc(s,h,p,y,T);return u?[e,x]:[x,e]}}s=y,l=m;break}}},t}(De),jw=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Py),Jw=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new jw},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Rr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Rr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=vl(e,n,o,s,s,1,a.smooth,l,a.connectNulls);vl(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(De);function Ry(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=e.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var f=new oe({shape:{x:o,y:s,width:l,height:u}});if(t){var v=r.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(f.shape.x+=l),f.shape.width=0):(d||(f.shape.y+=u),f.shape.height=0);var p=Z(n)?function(g){n(g,f)}:null;Ie(f,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return f}function Ey(r,t,e){var a=r.getArea(),n=xe(a.r0,1),i=xe(a.r,1),o=new Gt({shape:{cx:xe(r.cx,1),cy:xe(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Ie(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function Qw(r,t,e,a,n){if(r){if(r.type==="polar")return Ey(r,t,e);if(r.type==="cartesian2d")return Ry(r,t,e,a,n)}else return null;return null}function Pu(r,t){return r.type===t}function jf(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Jf(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function Qf(r,t){var e=Jf(r),a=e[0],n=e[1],i=Jf(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function eh(r){return fe(r)?r:r?.5:0}function eT(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=kt(a*2),i=0;i<a;i++){var o=Ly(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Qt(r,t,e,a){var n=t.getBaseAxis(),i=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(a){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&f.push(r[s],r[s+1]);r=f}for(s=0;s<r.length-2;s+=2)switch(c[0]=r[s+2],c[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var v=(u[i]+c[i])/2,h=[];l[i]=h[i]=v,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function tT(r,t){var e=[],a=r.length,n,i;function o(c,f,v){var h=c.coord,d=(v-h)/(f.coord-h),p=B0(d,[c.color,f.color]);return{coord:v,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function rT(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(!!i){var l=t.getAxis(n),u=N(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var v=tT(u,n==="x"?e.getWidth():e.getHeight()),h=v.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";S(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:f[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:f[0]||"transparent"});var m=new zl(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function aT(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(n&&nT(i,t))){var o=t.mapDimension(i.dim),s={};return S(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function nT(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Lu.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function iT(r,t){return isNaN(r)||isNaN(t)}function oT(r){for(var t=r.length/2;t>0&&iT(r[t*2-2],r[t*2-1]);t--);return t-1}function th(r,t){return[r[t*2],r[t*2+1]]}function sT(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){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 ky(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<nt.length;t++)if(r.get([nt[t],"endLabel","show"]))return!0;return!1}function hs(r,t,e,a){if(Pu(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=ky(a)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Ry(t,e,a,function(){var h=r._endLabel;h&&e&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var f=c.shape,v=Math.max(f.width,f.height);u?(f.y-=v,f.height+=v*2):(f.x-=v,f.width+=v*2)}return l&&l(1,c),c}else return Ey(t,e,a)}function lT(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var uT=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Q,a=new Dy;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),c=e.getModel("areaStyle"),f=l.getLayout("points")||[],v=o.type==="polar",h=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=e.get("animation"),_=!c.isEmpty(),x=c.get("origin"),w=Iy(o,l,x),b=_&&eT(o,l,w),T=e.get("showSymbol"),A=e.get("connectNulls"),C=T&&!v&&aT(e,l,o),D=this._data;D&&D.eachItemGraphicEl(function(be,$t){be.__temp&&(s.remove(be),D.setItemGraphicEl($t,null))}),T||d.remove(),s.add(y);var M=v?!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=rT(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&M===this._step))T&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(be){return[f[be*2],f[be*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),M&&(f=Qt(f,o,M,A),b&&(b=Qt(b,o,M,A))),p=this._newPolyline(f),_?g=this._newPolygon(f,b):g&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Br(L)),y.setClipPath(hs(this,o,!0,e));else{_&&!g?g=this._newPolygon(f,b):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Br(L));var R=y.getClipPath();if(R){var E=hs(this,o,!1,e);Ie(R,{shape:E.shape},e)}else y.setClipPath(hs(this,o,!0,e));T&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(be){return[f[be*2],f[be*2+1]]}}),(!jf(this._stackedOnPoints,b)||!jf(this._points,f))&&(m?this._doUpdateAnimation(l,b,o,n,M,x,A):(M&&(f=Qt(f,o,M,A),b&&(b=Qt(b,o,M,A))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:b})))}var V=e.getModel("emphasis"),X=V.get("focus"),B=V.get("blurScope"),F=V.get("disabled");if(p.useStyle(K(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),va(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Y=p.getState("emphasis").style;Y.lineWidth=+p.style.lineWidth+1}q(p).seriesIndex=e.seriesIndex,sr(p,X,B,F);var re=eh(e.get("smooth")),ue=e.get("smoothMonotone");if(p.setShape({smooth:re,smoothMonotone:ue,connectNulls:A}),g){var ce=l.getCalculationInfo("stackedOnSeries"),Ce=0;g.useStyle(K(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ce&&(Ce=eh(ce.get("smooth"))),g.setShape({smooth:re,stackedOnSmooth:Ce,smoothMonotone:ue,connectNulls:A}),va(g,e,"areaStyle"),q(g).seriesIndex=e.seriesIndex,sr(g,X,B,F)}var ot=function(be){i._changePolyState(be)};l.eachItemGraphicEl(function(be){be&&(be.onHoverStateChange=ot)}),this._polyline.onHoverStateChange=ot,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=x,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,a){q(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Or(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 c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var v=e.get("zlevel"),h=e.get("z");u=new Lu(o,s),u.x=c,u.y=f,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Fe.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Or(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 Fe.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Ys(this._polyline,e),a&&Ys(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new qw({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Jw({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");Z(c)&&(c=c(null));var f=u.get("animationDelay")||0,v=Z(f)?f(null):f;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var x=n,w=a.pointToCoord(g);i?(y=x.startAngle,m=x.endAngle,_=-w[1]/180*Math.PI):(y=x.r0,m=x.r,_=w[0])}else{var b=n;i?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var T=m===y?0:(_-y)/(m-y);l&&(T=1-T);var A=Z(f)?f(d):c*T+v,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(ky(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 ae({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=oT(l);c>=0&&(Wt(s,Ht(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(f,v,h){return h!=null?My(o,h):Io(o,f)},enableTextSetter:!0},lT(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=n.getLayout("points"),v=n.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,x=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),T=y?"x":"y",A=sT(f,x,T),C=A.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!h){var I=th(f,C[0]);u.attr({x:I[0]+w,y:I[1]+b}),o&&(M=v.getRawValue(C[0]))}else{var I=c.getPointOn(x,T);I&&u.attr({x:I[0]+w,y:I[1]+b});var L=v.getRawValue(C[0]),R=v.getRawValue(C[1]);o&&(M=jd(n,d,L,R,A.t))}i.lastFrameIndex=C[0]}else{var E=e===1||i.lastFrameIndex>0?C[0]:0,I=th(f,E);o&&(M=v.getRawValue(E)),u.attr({x:I[0]+w,y:I[1]+b})}o&&ba(u).setLabelText(M)}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,v=Kw(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(h=Qt(v.current,n,o,l),d=Qt(v.stackedOnCurrent,n,o,l),p=Qt(v.next,n,o,l),g=Qt(v.stackedOnNext,n,o,l)),Qf(h,p)>3e3||c&&Qf(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),de(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:d}),c.stopAnimation(),de(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],_=v.status,x=0;x<_.length;x++){var w=_[x].cmd;if(w==="="){var b=e.getItemGraphicEl(_[x].idx1);b&&m.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,A=0;A<m.length;A++){var C=m[A].el,D=m[A].ptIdx*2;C.x=T[D],C.y=T[D+1],C.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Fe);const cT=uT;function Ru(r,t){return{seriesType:r,plan:vu(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(!!n){var s=N(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Nr(a,s[0])&&(s[0]=u),Nr(a,s[1])&&(s[1]=u);var c=a.getStore(),f=a.getDimensionIndex(s[0]),v=a.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&kt(p*l),y=[],m=[],_=h.start,x=0;_<h.end;_++){var w=void 0;if(l===1){var b=c.get(f,_);w=n.dataToPoint(b,null,m)}else y[0]=c.get(f,_),y[1]=c.get(v,_),w=n.dataToPoint(y,null,m);o?(g[x++]=w[0],g[x++]=w[1]):d.setItemLayout(_,w.slice())}o&&d.setLayout("points",g)}}}}}}var fT={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},hT=function(r){return Math.round(r.length/2)};function Oy(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=a.getDevicePixelRatio(),v=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/v);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h));var d=void 0;G(i)?d=fT[i]:Z(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,hT))}}}}}function DR(r){r.registerChartView(cT),r.registerSeriesModel(Hw),r.registerLayout(Ru("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Oy("line"))}var By=function(r){P(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,a){return To(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.dataToPoint(a.clampData(e)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),l=a.getBaseAxis().isHorizontal()?0:1;return n[l]+=o+s/2,n}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}(dt);dt.registerClass(By);const ji=By;var vT=function(r){P(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 To(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"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=hr(ji.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}(ji);const dT=vT;var pT=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}(),gT=function(r){P(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new pT},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,f=a.endAngle,v=a.clockwise,h=Math.PI*2,d=v?f-c<h:c-f<h;d||(c=f-(v?h:-h));var p=Math.cos(c),g=Math.sin(c),y=Math.cos(f),m=Math.sin(f);d?(e.moveTo(p*o+n,g*o+i),e.arc(p*u+n,g*u+i,l,-Math.PI+c,c,!v)):e.moveTo(p*s+n,g*s+i),e.arc(n,i,s,c,f,!v),e.arc(y*u+n,m*u+i,l,f-Math.PI*2,f-Math.PI,!v),o!==0&&e.arc(n,i,o,f,c,v)},t}(De);const rh=gT;function yT(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Us(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,f=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(v-h)/2:0,_=Math.cos,x=Math.sin,w=c+v*_(p),b=f+v*x(p),T="left",A="top";switch(s){case"startArc":w=c+(h-l)*_(y),b=f+(h-l)*x(y),T="center",A="top";break;case"insideStartArc":w=c+(h+l)*_(y),b=f+(h+l)*x(y),T="center",A="bottom";break;case"startAngle":w=c+d*_(p)+oi(p,l+m,!1),b=f+d*x(p)+si(p,l+m,!1),T="right",A="middle";break;case"insideStartAngle":w=c+d*_(p)+oi(p,-l+m,!1),b=f+d*x(p)+si(p,-l+m,!1),T="left",A="middle";break;case"middle":w=c+d*_(y),b=f+d*x(y),T="center",A="middle";break;case"endArc":w=c+(v+l)*_(y),b=f+(v+l)*x(y),T="center",A="bottom";break;case"insideEndArc":w=c+(v-l)*_(y),b=f+(v-l)*x(y),T="center",A="top";break;case"endAngle":w=c+d*_(g)+oi(g,l+m,!0),b=f+d*x(g)+si(g,l+m,!0),T="left",A="middle";break;case"insideEndAngle":w=c+d*_(g)+oi(g,-l+m,!0),b=f+d*x(g)+si(g,-l+m,!0),T="right",A="middle";break;default:return Us(a,n,i)}return a=a||{},a.x=w,a.y=b,a.align=T,a.verticalAlign=A,a}}function mT(r,t,e,a){if(fe(a)){r.setTextConfig({rotation:a});return}else if(k(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.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 c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function oi(r,t,e){return t*Math.sin(r)*(e?-1:1)}function si(r,t,e){return t*Math.cos(r)*(e?1:-1)}var vs=Math.max,ds=Math.min;function _T(r,t){var e=r.getArea&&r.getArea();if(Pu(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var xT=function(r){P(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,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){co(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var v=e.isAnimationEnabled()?e:null,h=ST(e,u);h&&this._enableRealtimeSort(h,s,n);var d=e.get("clip",!0)||h,p=_T(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],w=this._backgroundEls,b=i&&i.isInitSort,T=i&&i.type==="changeAxisOrder";function A(M){var I=li[u.type](s,M),L=DT(u,f,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&L.setShape("r",_),x[M]=L,L}s.diff(l).add(function(M){var I=s.getItemModel(M),L=li[u.type](s,M,I);if(y&&A(M),!(!s.hasValue(M)||!sh[u.type](L))){var R=!1;d&&(R=ah[u.type](p,L));var E=nh[u.type](e,s,M,L,f,v,c.model,!1,g);h&&(E.forceLabelAnimation=!0),lh(E,s,M,I,L,e,f,u.type==="polar"),b?E.attr({shape:L}):h?ih(h,v,E,L,M,f,!1,!1):Ie(E,{shape:L},e,M),s.setItemGraphicEl(M,E),o.add(E),E.ignore=R}}).update(function(M,I){var L=s.getItemModel(M),R=li[u.type](s,M,L);if(y){var E=void 0;w.length===0?E=A(I):(E=w[I],E.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&E.setShape("r",_),x[M]=E);var V=li[u.type](s,M),X=Vy(f,V,u);de(E,{shape:X},v,M)}var B=l.getItemGraphicEl(I);if(!s.hasValue(M)||!sh[u.type](R)){o.remove(B);return}var F=!1;if(d&&(F=ah[u.type](p,R),F&&o.remove(B)),B?dn(B):B=nh[u.type](e,s,M,R,f,v,c.model,!!B,g),h&&(B.forceLabelAnimation=!0),T){var Y=B.getTextContent();if(Y){var re=ba(Y);re.prevValue!=null&&(re.prevValue=re.value)}}else lh(B,s,M,L,R,e,f,u.type==="polar");b?B.attr({shape:R}):h?ih(h,v,B,R,M,f,!0,T):de(B,{shape:R},e,M,null),s.setItemGraphicEl(M,B),B.ignore=F,o.add(B)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&Vi(I,e,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Q);C.removeAll();for(var D=0;D<x.length;++D)C.add(x[D]);o.add(C),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),ch(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),ch(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&Qw(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(!!a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l==null?NaN:l,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:N(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:a(e.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototyp |