1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/likeadmin-likeadmin_java

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
echarts.6ad8c478.js 600 КБ
Копировать Редактировать Исходные данные Просмотреть построчно История
Jason Отправлено 3 лет назад 0b06603
import{i as W,r as ua,m as z,c as U,e as w,a as Y,b as rt,d as he,f as $s,g as N,h as oe,j as _e,k as b0,l as B,n as X,L as Rd,o as In,p as Pe,P as De,q as lc,s as A0,t as de,u as T0,T as aa,v as Ln,w as at,x as K,Z as Mt,y as Q,z as C0,A as M0,B as D0,C as I0,D as Wl,E as Ei,F as Gt,G as Ed,S as pt,R as no,H as vr,I as Dt,J as le,K as ze,M as kd,N as Hl,O as L0,Q as ee,U as ae,V as P0,W as Od,X as Ul,Y as R0,_ as ge,$ as ki,a0 as Te,a1 as Pn,a2 as J,a3 as Z,a4 as Ke,a5 as E0,a6 as te,a7 as nt,a8 as pe,a9 as F,aa as Ys,ab as k0,ac as bt,ad as Zs,ae as O0,af as Nd,ag as N0,ah as ma,ai as uc,aj as No,ak as B0,al as ca,am as Xs,an as V0,ao as cc,ap as Bd,aq as Vd,ar as io,as as fc,at as Bo,au as z0,av as G0,aw as zd,ax as Hn,ay as vc,az as hc,aA as F0,aB as W0,aC as or,aD as Rn,aE as H0,aF as dc,aG as sr,aH as U0,aI as $0,aJ as Y0,aK as un,aL as Z0,aM as En,aN as X0,aO as K0,aP as Vo,aQ as Si,aR as zo,aS as q0,aT as Gd,aU as j0,aV as cn,aW as fn,aX as J0,aY as Fd,aZ as pc,a_ as Q0,a$ as e_,b0 as t_,b1 as r_,b2 as a_,b3 as n_,b4 as i_,b5 as o_}from"./zrender.f91f2f01.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ks=function(r,t){return Ks=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},Ks(r,t)};function E(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ks(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var gc=1e-4,Wd=20;function s_(r){return r.replace(/^\s+|\s+$/g,"")}function se(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 H(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 W(r)?s_(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),Wd),r=(+r).toFixed(t),e?r:+r}function Ot(r){return r.sort(function(t,e){return t-e}),r}function Nt(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 l_(r)}function l_(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 Hd(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 u_(r,t,e){if(!r[t])return 0;var a=ua(r,function(d,p){return d+(isNaN(p)?0:p)},0);if(a===0)return 0;for(var n=Math.pow(10,e),i=z(r,function(d){return(isNaN(d)?0:d)/a*n*100}),o=n*100,s=z(i,function(d){return Math.floor(d)}),l=ua(s,function(d,p){return d+p},0),u=z(i,function(d,p){return d-s[p]});l<o;){for(var c=Number.NEGATIVE_INFINITY,f=null,h=0,v=u.length;h<v;++h)u[h]>c&&(c=u[h],f=h);++s[f],u[f]=0,++l}return s[t]/n}function c_(r,t){var e=Math.max(Nt(r),Nt(t)),a=r+t;return e>Wd?a:xe(a,e)}function Ud(r){var t=Math.PI*2;return(r%t+t)%t}function Oi(r){return r>-gc&&r<gc}var f_=/^(?:(\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 At(r){if(r instanceof Date)return r;if(W(r)){var t=f_.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 v_(r){return Math.pow(10,$l(r))}function $l(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 $d(r,t){var e=$l(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 yc(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 Ni(r){var t=parseFloat(r);return t==r&&(t!==0||!W(r)||r.indexOf("x")<=0)?t:NaN}function Yd(r){return!isNaN(Ni(r))}function Zd(){return Math.round(Math.random()*9)}function Xd(r,t){return t===0?r:Xd(t,r%t)}function mc(r,t){return r==null?t:t==null?r:r*t/Xd(r,t)}function He(r){throw new Error(r)}function _c(r,t,e){return(t-r)*e+r}var Kd="series\0",qd="\0_ec_\0";function ce(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 xc=["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 Y(r)&&!N(r)&&!(r instanceof Date)?r.value:r}function h_(r){return Y(r)&&!(r instanceof Array)}function jd(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=U();w(t,function(l,u){if(!Y(l)){t[u]=null;return}});var s=d_(r,o,e);return(a||n)&&p_(s,r,o,t),a&&g_(s,t),a||n?y_(s,t,n):i&&m_(s,t),__(s),s}function d_(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"||vn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function p_(r,t,e,a){w(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];rt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function g_(r,t){w(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)&&!vn(e)&&!vn(i)&&Jd("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function y_(r,t,e){w(t,function(a){if(!!a){for(var n,i=0;(n=r[i])&&(n.newOption||vn(n.existing)||n.existing&&a.id!=null&&!Jd("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function m_(r,t){w(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function __(r){var t=U();w(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),w(r,function(e){var a=e.newOption;rt(!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={})}),w(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(!!Y(i)){if(o.name=i.name!=null?Qa(i.name):n?n.name:Kd+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 Jd(r,t,e){var a=Oe(t[r],null),n=Oe(e[r],null);return a!=null&&n!=null&&a===n}function Qa(r){return Oe(r,"")}function Oe(r,t){return r==null?t:W(r)?r:he(r)||$s(r)?r+"":t}function Yl(r){var t=r.name;return!!(t&&t.indexOf(Kd))}function vn(r){return r&&r.id!=null&&Qa(r.id).indexOf(qd)===0}function x_(r){return qd+r}function S_(r,t,e){w(r,function(a){var n=a.newOption;Y(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=w_(t,n,a.existing,e))})}function w_(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function b_(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=Oe(o[u].seriesId,null);if(f==null)return;for(var h=ce(o[u].dataIndex),v=l&&l[f],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[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 Nr(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return N(t.dataIndex)?z(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return N(t.name)?z(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ne(){var r="__ec_inner_"+A_++;return function(t){return t[r]||(t[r]={})}}var A_=Zd();function en(r,t,e){var a=Zl(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 Zl(r,t){var e;if(W(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=U(),i={},o=!1;return w(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&&oe(t.includeMainTypes,c)<0)){o=o||!!c;var h=n.get(c)||n.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Ie={useDefault:!0,enableAll:!1,enableNone:!1},T_={useDefault:!1,enableAll:!0,enableNone:!0};function kn(r,t,e,a){a=a||Ie;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?(rt(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(rt(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 C_(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function M_(r){return r==="auto"?_e.domSupported?"html":"richText":r||"html"}function ep(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(he(a)){var o=_c(e||0,a,n);return xe(o,i?Math.max(Nt(e||0),Nt(a)):t)}else{if(W(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 h=r.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var v=l&&l[f]?l[f]:0,d=u[f],o=_c(v,d,n);s[f]=xe(o,i?Math.max(Nt(v),Nt(d)):t)}}return s}}var D_=".",pr="___EC__COMPONENT__CONTAINER___",tp="___EC__EXTENDED_CLASS___";function St(r){var t={main:"",sub:""};if(r){var e=r.split(D_);t.main=e[0]||"",t.sub=e[1]||""}return t}function I_(r){rt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function L_(r){return!!(r&&r[tp])}function Xl(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return P_(a)?n=function(i){E(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},b0(n,this)),B(n.prototype,e),n[tp]=!0,n.extend=this.extend,n.superCall=k_,n.superApply=O_,n.superClass=a,n}}function P_(r){return X(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function rp(r,t){r.extend=t.extend}var R_=Math.round(Math.random()*10);function E_(r){var t=["__\0is_clz",R_++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function k_(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 O_(r,t,e){return this.superClass.prototype[t].apply(r,e)}function oo(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){I_(n),a.prototype.type=n;var i=St(n);if(!i.sub)t[i.main]=a;else if(i.sub!==pr){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[pr]&&(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=St(a),i=[],o=t[n.main];return o&&o[pr]?w(o,function(s,l){l!==pr&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=St(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return w(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=St(a),i=t[n.main];return i&&i[pr]};function e(a){var n=t[a.main];return(!n||!n[pr])&&(n=t[a.main]={},n[pr]=!0),n}}function fa(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&&oe(n,l)>=0||i&&oe(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var N_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],B_=fa(N_),V_=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return B_(this,t,e)},r}(),j=ne(),qs=function(r,t,e,a){if(a){var n=j(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,a.type==="group"&&a.traverse(function(i){var o=j(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},Sc=1,wc={},ap=ne(),Kl=ne(),ql=0,so=1,lo=2,it=["emphasis","blur","select"],Vi=["normal","emphasis","blur","select"],np=10,z_=9,Ir="highlight",wi="downplay",tn="select",bi="unselect",rn="toggleSelect";function $r(r){return r!=null&&r!=="none"}var bc=new Rd(100);function Ac(r){if(W(r)){var t=bc.get(r);return t||(t=lc(r,-.1),bc.put(r,t)),t}else if(A0(r)){var e=B({},r);return e.colorStops=z(r.colorStops,function(a){return{offset:a.offset,color:lc(a.color,-.1)}}),e}return r}function uo(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function ip(r){uo(r,"emphasis",lo)}function op(r){r.hoverState===lo&&uo(r,"normal",ql)}function jl(r){uo(r,"blur",so)}function sp(r){r.hoverState===so&&uo(r,"normal",ql)}function G_(r){r.selected=!0}function F_(r){r.selected=!1}function Tc(r,t,e){t(r,e)}function Wt(r,t,e){Tc(r,t,e),r.isGroup&&r.traverse(function(a){Tc(a,t,e)})}function js(r,t){switch(t){case"emphasis":r.hoverState=lo;break;case"normal":r.hoverState=ql;break;case"blur":r.hoverState=so;break;case"select":r.selected=!0}}function W_(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 H_(r,t,e,a){var n=e&&oe(e,"select")>=0,i=!1;if(r instanceof De){var o=ap(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if($r(s)||$r(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=B({},a),u=B({},u),u.fill=s):!$r(u.fill)&&$r(s)?(i=!0,a=B({},a),u=B({},u),u.fill=Ac(s)):!$r(u.stroke)&&$r(l)&&(i||(a=B({},a),u=B({},u)),u.stroke=Ac(l)),a.style=u}}if(a&&a.z2==null){i||(a=B({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c!=null?c:np)}return a}function U_(r,t,e){if(e&&e.z2==null){e=B({},e);var a=r.z2SelectLift;e.z2=r.z2+(a!=null?a:z_)}return e}function $_(r,t,e){var a=oe(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:W_(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:a?n:i.opacity*.1},o),e.style=o),e}function Go(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return H_(this,r,t,e);if(r==="blur")return $_(this,r,e);if(r==="select")return U_(this,r,e)}return e}function Jl(r){r.stateProxy=Go;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Go),e&&(e.stateProxy=Go)}function Cc(r,t){!fp(r,t)&&!r.__highByOuter&&Wt(r,ip)}function Mc(r,t){!fp(r,t)&&!r.__highByOuter&&Wt(r,op)}function va(r,t){r.__highByOuter|=1<<(t||0),Wt(r,ip)}function ha(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Wt(r,op)}function Y_(r){Wt(r,jl)}function lp(r){Wt(r,sp)}function up(r){Wt(r,G_)}function cp(r){Wt(r,F_)}function fp(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function vp(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Kl(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){sp(u)}),s&&e.push(i)),o.isBlured=!1}),w(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Js(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&lp(h)}}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 h=f&&s?f===s:c;if(!(e==="series"&&!c||e==="coordinateSystem"&&!h||t==="series"&&c)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(g){jl(g)}),In(t))i(u.getData(),t);else if(Y(t))for(var d=Pe(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),Kl(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 Qs(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(!!a){Kl(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){jl(i)})}}}function Z_(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(!!n){var i=Nr(n,t);i=(N(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=j(o);Js(a,u.focus,u.blurScope,e)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&Js(a,c,f,e)}}}function Ql(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(j(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function X_(r,t,e){var a=j(r),n=Ql(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&Qs(a.componentMainType,a.componentIndex,e),w(i,function(s){return Cc(s,t)})):(Js(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&Qs(a.componentMainType,a.componentIndex,e),Cc(r,t))}function K_(r,t,e){vp(e);var a=j(r),n=Ql(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?w(n,function(i){return Mc(i,t)}):Mc(r,t)}function q_(r,t,e){if(!!tl(t)){var a=t.dataType,n=r.getData(a),i=Nr(n,t);N(i)||(i=[i]),r[t.type===rn?"toggleSelect":t.type===tn?"select":"unselect"](i,a)}}function Dc(r){var t=r.getAllData();w(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?up(i):cp(i)})})}function j_(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();w(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 Lr(r,t,e){eu(r,!0),Wt(r,Jl),Q_(r,t,e)}function J_(r){eu(r,!1)}function Tt(r,t,e,a){a?J_(r):Lr(r,t,e)}function Q_(r,t,e){var a=j(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var Ic=["emphasis","blur","select"],ex={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function lr(r,t,e,a){e=e||"itemStyle";for(var n=0;n<Ic.length;n++){var i=Ic[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[ex[e]]()}}function eu(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 el(r){return!!(r&&r.__highDownDispatcher)}function tx(r,t,e){var a=j(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function rx(r){var t=wc[r];return t==null&&Sc<=32&&(t=wc[r]=Sc++),t}function tl(r){var t=r.type;return t===tn||t===bi||t===rn}function Lc(r){var t=r.type;return t===Ir||t===wi}function ax(r){var t=ap(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 hp=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=de(a.duration,200),c=de(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)),X(f)&&(f=f(e,n)),X(u)&&(u=u(e));var h={duration:u||0,delay:f,easing:c};return h}else return null}function tu(r,t,e,a,n,i,o){var s=!1,l;X(n)?(o=i,i=n,n=null):Y(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,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,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 ve(r,t,e,a,n,i){tu("update",r,t,e,a,n,i)}function Ce(r,t,e,a,n,i){tu("enter",r,t,e,a,n,i)}function ia(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 hn(r,t,e,a,n,i){ia(r)||tu("leave",r,t,e,a,n,i)}function Pc(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),hn(r,{style:{opacity:0}},t,e,a)}function zi(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Pc(n,t,e,a)}):Pc(r,t,e,a)}function dn(r){hp(r).oldStyle=r.style}function nx(r){return hp(r).oldStyle}var Gi=Math.max,Fi=Math.min,rl={};function ix(r){return De.extend(r)}var ox=L0;function sx(r,t){return ox(r,t)}function gt(r,t){rl[r]=t}function dp(r){if(rl.hasOwnProperty(r))return rl[r]}function ru(r,t,e,a){var n=C0(r,t);return e&&(a==="center"&&(e=gp(e,n.getBoundingRect())),yp(n,e)),n}function pp(r,t,e){var a=new Mt({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(gp(t,i))}}});return a}function gp(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 vt=T0;function yp(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function lx(r){return M0(r.shape,r.shape,r.style),r}function ux(r){return D0(r.shape,r.shape,r.style),r}var cx=I0;function Pr(r,t){for(var e=Wl([]);r&&r!==t;)Ei(e,r.getLocalTransform(),e),r=r.parent;return e}function dt(r,t,e){return t&&!In(t)&&(t=aa.getLocalTransform(t)),e&&(t=Ln([],t)),at([],r,t)}function co(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=dt(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Rc(r){return!r.isGroup}function fx(r){return r.shape!=null}function fo(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){Rc(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return fx(o)&&(s.shape=B({},o.shape)),s}var i=a(r);t.traverse(function(o){if(Rc(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),ve(o,l,e,j(o).dataIndex)}}})}function mp(r,t){return z(r,function(e){var a=e[0];a=Gi(a,t.x),a=Fi(a,t.x+t.width);var n=e[1];return n=Gi(n,t.y),n=Fi(n,t.y+t.height),[a,n]})}function vx(r,t){var e=Gi(r.x,t.x),a=Fi(r.x+r.width,t.x+t.width),n=Gi(r.y,t.y),i=Fi(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=B({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 Mt(a)):ru(r.replace("path://",""),a,e,"center")}function hx(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(_p(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function _p(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,f=s-i,h=Fo(c,f,l,u);if(dx(h))return!1;var v=r-n,d=t-i,p=Fo(v,d,l,u)/h;if(p<0||p>1)return!1;var g=Fo(v,d,c,f)/h;return!(g<0||g>1)}function Fo(r,t,e,a){return r*a-e*t}function dx(r){return r<=1e-6&&r>=-1e-6}function Sa(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=W(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&&w(Pe(l),function(c){Q(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=j(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:K({content:a,formatterParams:s},n)}}function Ec(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function vo(r,t){if(r)if(N(r))for(var e=0;e<r.length;e++)Ec(r[e],t);else Ec(r,t)}gt("circle",Gt);gt("ellipse",Ed);gt("sector",pt);gt("ring",no);gt("polygon",vr);gt("polyline",Dt);gt("rect",le);gt("line",ze);gt("bezierCurve",kd);gt("arc",Hl);const ho=Object.freeze(Object.defineProperty({__proto__:null,updateProps:ve,initProps:Ce,removeElement:hn,removeElementWithFadeOut:zi,isElementRemoved:ia,extendShape:ix,extendPath:sx,registerShape:gt,getShapeClass:dp,makePath:ru,makeImage:pp,mergePath:vt,resizePath:yp,subPixelOptimizeLine:lx,subPixelOptimizeRect:ux,subPixelOptimize:cx,getTransform:Pr,applyTransform:dt,transformDirection:co,groupTransition:fo,clipPointsByRect:mp,clipRectByRect:vx,createIcon:On,linePolygonIntersect:hx,lineLineIntersect:_p,setTooltipConfig:Sa,traverseElements:vo,Group:ee,Image:Mt,Text:ae,Circle:Gt,Ellipse:Ed,Sector:pt,Ring:no,Polygon:vr,Polyline:Dt,Rect:le,Line:ze,BezierCurve:kd,Arc:Hl,IncrementalDisplayable:P0,CompoundPath:Od,LinearGradient:Ul,RadialGradient:R0,BoundingRect:ge,OrientedBoundingRect:ki,Point:Te,Path:De},Symbol.toStringTag,{value:"Module"}));var po={};function xp(r,t){for(var e=0;e<it.length;e++){var a=it[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 al(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=X(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<it.length;u++){var c=it[u],f=t[c];l[c]=de(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Ht(r,t,e,a){e=e||po;for(var n=r instanceof ae,i=!1,o=0;o<Vi.length;o++){var s=t[Vi[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=al(e,t),c=t.normal,f=!!c.getShallow("show"),h=ye(c,a&&a.normal,e,!1,!n);h.text=u.normal,n||r.setTextConfig(kc(c,e,!1));for(var o=0;o<it.length;o++){var v=it[o],s=t[v];if(s){var d=l.ensureState(v),p=!!de(s.getShallow("show"),f);if(p!==f&&(d.ignore=!p),d.style=ye(s,a&&a[v],e,!0,!n),d.style.text=u[v],!n){var g=r.ensureState(v);g.textConfig=kc(s,e,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),e.enableTextSetter&&(wa(l).setLabelText=function(y){var m=al(e,t,y);xp(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Ut(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<it.length;a++){var n=it[a];e[n]=r.getModel([n,t])}return e}function ye(r,t,e,a,n){var i={};return px(i,r,e,a,n),t&&B(i,t),i}function kc(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=de(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 px(r,t,e,a,n){e=e||po;var i=t.ecModel,o=i&&i.option.textStyle,s=gx(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Vc(l[u]={},c,o,e,a,n,!1,!0)}}l&&(r.rich=l);var f=t.get("overflow");f&&(r.overflow=f);var h=t.get("minMargin");h!=null&&(r.margin=h),Vc(r,t,o,e,a,n,!0,!1)}function gx(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||po).rich;if(e){t=t||{};for(var a=Pe(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var Oc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Nc=["align","lineHeight","width","height","tag","verticalAlign"],Bc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Vc(r,t,e,a,n,i,o,s){e=!n&&e||po;var l=a&&a.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=de(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 h=de(t.getShallow("textBorderWidth"),e.textBorderWidth);h!=null&&(r.lineWidth=h);var v=de(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=de(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<Oc.length;p++){var g=Oc[p],y=de(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<Nc.length;p++){var g=Nc[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<Bc.length;p++){var g=Bc[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 yx(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 wa=ne();function Sp(r,t,e,a){if(!!r){var n=wa(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 wp(r,t,e,a,n){var i=wa(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=de(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=ep(e,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var h=al({labelDataIndex:t,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);xp(r,h)}r.percent=0,(i.prevValue==null?Ce:ve)(r,{percent:1},a,t,null,u)}var mx=["textStyle","color"],Wo=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ho=new ae,_x=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(mx):null)},r.prototype.getFont=function(){return yx({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<Wo.length;a++)e[Wo[a]]=this.getShallow(Wo[a]);return Ho.useStyle(e),Ho.update(),Ho.getBoundingRect()},r}();const xx=_x;var bp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Sx=fa(bp),wx=function(){function r(){}return r.prototype.getLineStyle=function(t){return Sx(this,t)},r}(),Ap=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],bx=fa(Ap),Ax=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return bx(this,t,e)},r}(),Fr=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(Z(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(!_e.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}();Xl(Fr);E_(Fr);Ke(Fr,wx);Ke(Fr,Ax);Ke(Fr,V_);Ke(Fr,xx);const we=Fr;var Tx=Math.round(Math.random()*10);function ba(r){return[r||"",Tx++].join("_")}function Cx(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=St(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=St(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function Mx(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),c=u.graph,f=u.noEntryList,h={};for(w(i,function(m){h[m]=!0});f.length;){var v=f.pop(),d=c[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),w(d.successor,p?y:g)}w(h,function(){var m="";throw new Error(m)});function g(m){c[m].entryCount--,c[m].entryCount===0&&f.push(m)}function y(m){h[m]=!0,g(m)}};function e(i){var o={},s=[];return w(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),w(f,function(h){oe(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);oe(v.successor,h)<0&&v.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 w(i,function(l){oe(o,l)>=0&&s.push(l)}),s}}function hr(r,t){return J(J({},r,!0),t,!0)}const Dx={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:". "}}}},Ix={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 Wi="ZH",au="EN",pn=au,Ai={},nu={},Tp=_e.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Wi)>-1?Wi:pn}():pn;function Cp(r,t){r=r.toUpperCase(),nu[r]=new we(t),Ai[r]=t}function Lx(r){if(W(r)){var t=Ai[r.toUpperCase()]||{};return r===Wi||r===au?Z(t):J(Z(t),Z(Ai[pn]),!1)}else return J(Z(r),Z(Ai[pn]),!1)}function nl(r){return nu[r]}function Px(){return nu[pn]}Cp(au,Dx);Cp(Wi,Ix);var iu=1e3,ou=iu*60,an=ou*60,tt=an*24,zc=tt*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}",Gc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Un,hour:Un+" "+qa.hour,minute:Un+" "+qa.minute,second:Un+" "+qa.second,millisecond:qa.none},Uo=["year","month","day","hour","minute","second","millisecond"],Mp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function gr(r,t){return r+="","0000".substr(0,t-r.length)+r}function oa(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 Rx(r){return r===oa(r)}function Ex(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function go(r,t,e,a){var n=At(r),i=n[su(e)](),o=n[sa(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[yo(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[gn(e)](),f=(c-1)%12+1,h=n[mo(e)](),v=n[_o(e)](),d=n[xo(e)](),p=a instanceof we?a:nl(a||Tp)||Px(),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,gr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,gr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,gr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,gr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,gr(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,gr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,gr(d,3)).replace(/{S}/g,d+"")}function kx(r,t,e,a,n){var i=null;if(W(e))i=e;else if(X(e))i=e(r.value,t,{level:r.level});else{var o=B({},qa);if(r.level>0)for(var s=0;s<Uo.length;++s)o[Uo[s]]="{primary|"+o[Uo[s]]+"}";var l=e?e.inherit===!1?e:K(e,o):o,u=Dp(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=Mp.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(N(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 go(new Date(r.value),i,n,a)}function Dp(r,t){var e=At(r),a=e[sa(t)]()+1,n=e[yo(t)](),i=e[gn(t)](),o=e[mo(t)](),s=e[_o(t)](),l=e[xo(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Fc(r,t,e){var a=he(r)?At(r):r;switch(t=t||Dp(r,e),t){case"year":return a[su(e)]();case"half-year":return a[sa(e)]()>=6?1:0;case"quarter":return Math.floor((a[sa(e)]()+1)/4);case"month":return a[sa(e)]();case"day":return a[yo(e)]();case"half-day":return a[gn(e)]()/24;case"hour":return a[gn(e)]();case"minute":return a[mo(e)]();case"second":return a[_o(e)]();case"millisecond":return a[xo(e)]()}}function su(r){return r?"getUTCFullYear":"getFullYear"}function sa(r){return r?"getUTCMonth":"getMonth"}function yo(r){return r?"getUTCDate":"getDate"}function gn(r){return r?"getUTCHours":"getHours"}function mo(r){return r?"getUTCMinutes":"getMinutes"}function _o(r){return r?"getUTCSeconds":"getSeconds"}function xo(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Ox(r){return r?"setUTCFullYear":"setFullYear"}function Ip(r){return r?"setUTCMonth":"setMonth"}function Lp(r){return r?"setUTCDate":"setDate"}function Pp(r){return r?"setUTCHours":"setHours"}function Rp(r){return r?"setUTCMinutes":"setMinutes"}function Ep(r){return r?"setUTCSeconds":"setSeconds"}function kp(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Op(r){if(!Yd(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Np(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 Nn=E0,Nx=/([&<>"'])/g,Bx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Xe(r){return r==null?"":(r+"").replace(Nx,function(t,e){return Bx[e]})}function il(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?At(r):r;if(isNaN(+l)){if(s)return"-"}else return go(l,a,e)}if(t==="ordinal")return $s(r)?n(r):he(r)&&i(r)?r+"":"-";var u=Ni(r);return i(u)?Op(u):$s(r)?n(r):typeof r=="boolean"?r+"":"-"}var Wc=["a","b","c","d","e","f","g"],$o=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Bp(r,t,e){N(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=Wc[i];r=r.replace($o(o),$o(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($o(Wc[l],s),e?Xe(u):u)}return r}function Vx(r,t,e){return w(t,function(a,n){r=r.replace("{"+n+"}",e?Xe(a):a)}),r}function zx(r,t){var e=W(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:'+Xe(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Xe(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",W(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Hc(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=w,Vp=["left","right","top","bottom","width","height"],Dr=[["width","left","right"],["height","top","bottom"]];function lu(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),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.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=v+e:o=d+e)})}var Rr=lu;te(lu,"vertical");te(lu,"horizontal");function $e(r,t,e){e=Nn(e||0);var a=t.width,n=t.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n),u=H(r.width,a),c=H(r.height,n),f=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(c)&&(c=n-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=a-s-u-h),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-h;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-h-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 uu(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=$e(K({width:u.width,height:u.height},t),e,a),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function Gx(r,t){return r[Dr[t][0]]!=null||r[Dr[t][1]]!=null&&r[Dr[t][2]]!=null}function yn(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function ur(r,t,e){var a=e&&e.ignoreSize;!N(a)&&(a=[a,a]);var n=o(Dr[0],0),i=o(Dr[1],1);u(Dr[0],r,n),u(Dr[1],r,i);function o(c,f){var h={},v=0,d={},p=0,g=2;if(Ti(c,function(_){d[_]=r[_]}),Ti(c,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,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||!v)return d;if(v>=g)return h;for(var y=0;y<c.length;y++){var m=c[y];if(!s(h,m)&&s(r,m)){h[m]=r[m];break}}return h}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,h){Ti(c,function(v){f[v]=h[v]})}}function Aa(r){return zp({},r)}function zp(r,t){return t&&r&&Ti(Vp,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var Fx=ne(),Ta=function(r){E(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=ba("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?Aa(e):{},o=a.getTheme();J(e,o.get(this.mainType)),J(e,this.getDefaultOption()),n&&ur(e,i,n)},t.prototype.mergeOption=function(e,a){J(this.option,e,!0);var n=yn(this);n&&ur(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!L_(e))return e.defaultOption;var a=Fx(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}(we);rp(Ta,we);oo(Ta);Cx(Ta);Mx(Ta,Wx);function Wx(r){var t=[];return w(Ta.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return St(e).main}),r!=="dataset"&&oe(t,"dataset")<=0&&t.unshift("dataset"),t}const re=Ta;var Gp="";typeof navigator<"u"&&(Gp=navigator.platform||"");var Yr="rgba(0, 0, 0, 0.2)";const Hx={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Yr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Yr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Yr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Yr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Yr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Yr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Gp.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 Fp=U(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),st="original",Ye="arrayRows",yt="objectRows",It="keyedColumns",ir="typedArray",Wp="unknown",zt="column",Ca="row",Re={Must:1,Might:2,Not:3},Hp=ne();function Ux(r){Hp(r).datasetMap=U()}function $x(r,t,e){var a={},n=cu(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=Hp(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),w(r,function(p,g){var y=Y(p)?p:r[g]={name:p};y.type==="ordinal"&&c==null&&(c=g,f=d(y)),a[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});w(r,function(p,g){var y=p.name,m=d(p);if(c==null){var _=h.valueWayDim;v(a[y],_,m),v(o,_,m),h.valueWayDim+=m}else if(c===g)v(a[y],0,m),v(i,0,m);else{var _=h.categoryWayDim;v(a[y],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function Up(r,t,e){var a={},n=cu(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===yt||i===It)&&w(o,function(c,f){(Y(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},h=[],v=0,d=Math.min(5,e);v<d;v++){var p=Yp(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);h.push(p);var g=p===Re.Not;if(g&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!g&&h[c.n]===Re.Not)&&(c.n=v),y(c)&&h[c.n]!==Re.Not)return c;g||(p===Re.Might&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v)&&(f.n=v))}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 cu(r){var t=r.get("data",!0);if(!t)return kn(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ie).models[0]}function Yx(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:kn(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ie).models}function $p(r,t){return Yp(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function Yp(r,t,e,a,n,i){var o,s=5;if(nt(r))return Re.Not;var l,u;if(a){var c=a[i];Y(c)?(l=c.name,u=c.type):W(c)&&(l=c)}if(u!=null)return u==="ordinal"?Re.Must:Re.Not;if(t===Ye){var f=r;if(e===Ca){for(var h=f[i],v=0;v<(h||[]).length&&v<s;v++)if((o=x(h[n+v]))!=null)return o}else for(var v=0;v<f.length&&v<s;v++){var d=f[n+v];if(d&&(o=x(d[i]))!=null)return o}}else if(t===yt){var p=r;if(!l)return Re.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=x(g[l]))!=null)return o}}else if(t===It){var y=r;if(!l)return Re.Not;var h=y[l];if(!h||nt(h))return Re.Not;for(var v=0;v<h.length&&v<s;v++)if((o=x(h[v]))!=null)return o}else if(t===st)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=_a(g);if(!N(_))return Re.Not;if((o=x(_[i]))!=null)return o}function x(b){var S=W(b);if(b!=null&&isFinite(b)&&b!=="")return S?Re.Might:Re.Not;if(S&&b!=="-")return Re.Must}return Re.Not}var ol=U();function Zx(r,t){rt(ol.get(r)==null&&t),ol.set(r,t)}function Xx(r,t,e){var a=ol.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var Uc=ne(),Kx=ne(),fu=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=ce(this.get("color",!0)),i=this.get("colorLayer",!0);return Zp(this,Uc,n,i,t,e,a)},r.prototype.clearColorPalette=function(){jx(this,Uc)},r}();function $c(r,t,e,a){var n=ce(r.get(["aria","decal","decals"]));return Zp(r,Kx,n,null,t,e,a)}function qx(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 Zp(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:qx(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 jx(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var $n,Pa,Yc,Zc="\0_ec_inner",Jx=1,Xp=function(r){E(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 we(i),this._locale=new we(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=qc(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,qc(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"?Yc(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&&w(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=U(),u=a&&a.replaceMergeMainTypeMap;Ux(this),w(e,function(f,h){f!=null&&(re.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?Z(f):J(n[h],f,!0))}),u&&u.each(function(f,h){re.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),re.topologicalTravel(s,re.getAllClassMainTypes(),c,this);function c(f){var h=Xx(this,f,ce(e[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=jd(v,h,d);S_(p,f,re),n[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],m=0,_;w(p,function(x,b){var S=x.existing,A=x.newOption;if(!A)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=f==="series",C=re.getClass(f,x.keyInfo.subType,!T);if(!C)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===C)S.name=x.keyInfo.name,S.mergeOption(A,this),S.optionUpdated(A,!1);else{var M=B({componentIndex:b},x.keyInfo);S=new C(A,this,this,M),B(S,M),x.brandNew&&(S.__requireNewView=!0),S.init(A,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),y.push(S),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=Z(this.option);return w(e,function(a,n){if(re.hasClass(n)){for(var i=ce(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!vn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[Zc],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=[],w(ce(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Xc("id",i,s):o!=null?l=Xc("name",o,s):l=pe(s,function(u){return!!u}),Kc(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(Kc(o,e));function s(u){var c=n+"Index",f=n+"Id",h=n+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:n,index:u[c],id:u[f],name:u[h]}:null}function l(u){return e.filter?pe(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(X(e)){var o=a,s=e;i.each(function(f,h){for(var v=0;f&&v<f.length;v++){var d=f[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=W(e)?i.get(e):Y(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=Oe(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),w(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){w(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){Pa(this),w(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 w(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=[];w(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=U(n)},t.prototype.restoreData=function(e){$n(this);var a=this._componentsMap,n=[];a.each(function(i,o){re.hasClass(o)&&n.push(o)}),re.topologicalTravel(n,re.getAllClassMainTypes(),function(i){w(a.get(i),function(o){o&&(i!=="series"||!Qx(o,e))&&o.restoreData()})})},t.internalField=function(){$n=function(e){var a=e._seriesIndices=[];w(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=U(a)},Pa=function(e){},Yc=function(e,a){e.option={},e.option[Zc]=Jx,e._componentsMap=U({series:[]}),e._componentsCount=U();var n=a.aria;Y(n)&&n.enabled==null&&(n.enabled=!0),eS(a,e._theme.option),J(a,Hx,!1),e._mergeOption(a,null)}}(),t}(we);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 eS(r,t){var e=r.color&&!r.colorLayer;w(t,function(a,n){n==="colorLayer"&&e||re.hasClass(n)||(typeof a=="object"?r[n]=r[n]?J(r[n],a,!1):Z(a):r[n]==null&&(r[n]=a))})}function Xc(r,t,e){if(N(t)){var a=U();return w(t,function(i){if(i!=null){var o=Oe(i,null);o!=null&&a.set(i,!0)}}),pe(e,function(i){return i&&a.get(i[r])})}else{var n=Oe(t,null);return pe(e,function(i){return i&&n!=null&&i[r]===n})}}function Kc(r,t){return t.hasOwnProperty("subType")?pe(r,function(e){return e&&e.subType===t.subType}):r}function qc(r){var t=U();return r&&w(ce(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Ke(Xp,fu);const Kp=Xp;var tS=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],rS=function(){function r(t){w(tS,function(e){this[e]=F(t[e],t)},this)}return r}();const qp=rS;var Yo={},aS=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var a=[];w(Yo,function(n,i){var o=n.create(t,e);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(t,e){w(this._coordinateSystems,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Yo[t]=e},r.get=function(t){return Yo[t]},r}();const vu=aS;var nS=/^(min|max)?(.+)$/,iS=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(w(ce(t.series),function(o){o&&o.data&&nt(o.data)&&Ys(o.data)}),w(ce(t.dataset),function(o){o&&o.source&&nt(o.source)&&Ys(o.source)})),t=Z(t);var n=this._optionBackup,i=oS(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=[],Z(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=Z(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++)sS(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!uS(o,this._currentMediaIndices)&&(s=z(o,function(c){return Z(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r}();function oS(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&&N(u)&&w(u,function(v){v&&v.option&&(v.query?a.push(v):n||(n=v))}),h(i),w(l,function(v){return h(v)}),w(a,function(v){return h(v.option)});function h(v){w(t,function(d){d(v,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function sS(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return w(r,function(i,o){var s=o.match(nS);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();lS(a[u],i,l)||(n=!1)}}),n}function lS(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function uS(r,t){return r.join(",")===t.join(",")}const cS=iS;var lt=w,mn=Y,jc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Zo(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,a=jc.length;e<a;e++){var n=jc[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 ke(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){ke(r,"itemStyle"),ke(r,"lineStyle"),ke(r,"areaStyle"),ke(r,"label"),ke(r,"labelLine"),ke(r,"upperLabel"),ke(r,"edgeLabel")}function Se(r,t){var e=mn(r)&&r[t],a=mn(e)&&e.textStyle;if(a)for(var n=0,i=xc.length;n<i;n++){var o=xc[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Qe(r){r&&(ja(r),Se(r,"label"),r.emphasis&&Se(r.emphasis,"label"))}function fS(r){if(!!mn(r)){Zo(r),ja(r),Se(r,"label"),Se(r,"upperLabel"),Se(r,"edgeLabel"),r.emphasis&&(Se(r.emphasis,"label"),Se(r.emphasis,"upperLabel"),Se(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Zo(t),Qe(t));var e=r.markLine;e&&(Zo(e),Qe(e));var a=r.markArea;a&&Qe(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!nt(i))for(var o=0;o<i.length;o++)Qe(i[o]);w(r.categories,function(u){ja(u)})}if(n&&!nt(n))for(var o=0;o<n.length;o++)Qe(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Qe(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)N(l[o])?(Qe(l[o][0]),Qe(l[o][1])):Qe(l[o]);r.type==="gauge"?(Se(r,"axisLabel"),Se(r,"title"),Se(r,"detail")):r.type==="treemap"?(ke(r.breadcrumb,"itemStyle"),w(r.levels,function(u){ja(u)})):r.type==="tree"&&ja(r.leaves)}}function Et(r){return N(r)?r:r?[r]:[]}function Jc(r){return(N(r)?r[0]:r)||{}}function vS(r,t){lt(Et(r.series),function(a){mn(a)&&fS(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),lt(e,function(a){lt(Et(r[a]),function(n){n&&(Se(n,"axisLabel"),Se(n.axisPointer,"label"))})}),lt(Et(r.parallel),function(a){var n=a&&a.parallelAxisDefault;Se(n,"axisLabel"),Se(n&&n.axisPointer,"label")}),lt(Et(r.calendar),function(a){ke(a,"itemStyle"),Se(a,"dayLabel"),Se(a,"monthLabel"),Se(a,"yearLabel")}),lt(Et(r.radar),function(a){Se(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)}),lt(Et(r.geo),function(a){mn(a)&&(Qe(a),lt(Et(a.regions),function(n){Qe(n)}))}),lt(Et(r.timeline),function(a){Qe(a),ke(a,"label"),ke(a,"itemStyle"),ke(a,"controlStyle",!0);var n=a.data;N(n)&&w(n,function(i){Y(i)&&(ke(i,"label"),ke(i,"itemStyle"))})}),lt(Et(r.toolbox),function(a){ke(a,"iconStyle"),lt(a.feature,function(n){ke(n,"iconStyle")})}),Se(Jc(r.axisPointer),"label"),Se(Jc(r.tooltip).axisPointer,"label")}function hS(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 dS(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 Qc(r){r&&w(pS,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var pS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],gS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Xo=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ra(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Xo.length;e++){var a=Xo[e][1],n=Xo[e][0];t[a]!=null&&(t[n]=t[a])}}function ef(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function tf(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function yS(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function jp(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&jp(r[e].children,t)}function Jp(r,t){vS(r,t),r.series=ce(r.series),w(r.series,function(e){if(!!Y(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),ef(e.label);var n=e.data;if(n&&!nt(n))for(var i=0;i<n.length;i++)ef(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=hS(e,"pointer.color");o!=null&&dS(e,"itemStyle.color",o)}else if(a==="bar"){Ra(e),Ra(e.backgroundStyle),Ra(e.emphasis);var n=e.data;if(n&&!nt(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)),tf(e),jp(e.data,tf)}else a==="graph"||a==="sankey"?yS(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)),Qc(e)}}),r.dataRange&&(r.visualMap=r.dataRange),w(gS,function(e){var a=r[e];a&&(N(a)||(a=[a]),w(a,function(n){Qc(n)}))})}function mS(r){var t=U();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(_S)}function _S(r){w(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 h=o.get(t.stackedDimension,f);if(isNaN(h))return n;var v,d;s?d=o.getRawIndex(f):v=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,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=c_(h,m),p=m;break}}}return a[0]=h,a[1]=p,a})})}var So=function(){function r(t){this.data=t.data||(t.sourceFormat===It?{}:[]),this.sourceFormat=t.sourceFormat||Wp,this.seriesLayoutBy=t.seriesLayoutBy||zt,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&&$p(this,a)===Re.Must&&(n.type="ordinal")}}return r}();function hu(r){return r instanceof So}function sl(r,t,e){e=e||Qp(r);var a=t.seriesLayoutBy,n=SS(r,e,a,t.sourceHeader,t.dimensions),i=new So({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:Z(t)});return i}function du(r){return new So({data:r,sourceFormat:nt(r)?ir:st})}function xS(r){return new So({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Z(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Qp(r){var t=Wp;if(nt(r))t=ir;else if(N(r)){r.length===0&&(t=Ye);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(N(n)){t=Ye;break}else if(Y(n)){t=yt;break}}}}else if(Y(r)){for(var i in r)if(Q(r,i)&&In(r[i])){t=It;break}}return t}function SS(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:rf(n),startIndex:o,dimensionsDetectedCount:i};if(t===Ye){var s=r;a==="auto"||a==null?af(function(u){u!=null&&u!=="-"&&(W(u)?o==null&&(o=1):o=0)},e,s,10):o=he(a)?a:a?1:0,!n&&o===1&&(n=[],af(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===yt)n||(n=wS(r));else if(t===It)n||(n=[],w(r,function(u,c){n.push(c)}));else if(t===st){var l=_a(r[0]);i=N(l)&&l.length||1}return{startIndex:o,dimensionsDefine:rf(n),dimensionsDetectedCount:i}}function wS(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e){var a=[];return w(e,function(n,i){a.push(i)}),a}}function rf(r){if(!!r){var t=U();return z(r,function(e,a){e=Y(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 af(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 eg(r){var t=r.sourceFormat;return t===yt||t===It}var yr,mr,_r,nf,of,tg=function(){function r(t,e){var a=hu(t)?t:du(t);this._source=a;var n=this._data=a.data;a.sourceFormat===ir&&(this._offset=0,this._dimSize=e,this._data=n),of(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;of=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,v=nf[pu(u,c)];if(B(o,v),u===ir)o.getItem=e,o.count=n,o.fillStorage=a;else{var d=rg(u,c);o.getItem=F(d,null,s,f,h);var p=ag(u,c);o.count=F(p,null,s,f,h)}};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,h=0;h<f;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=l[h],m=0;m<g;m++){var _=c[m*f+h];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};nf=(t={},t[Ye+"_"+zt]={pure:!0,appendData:i},t[Ye+"_"+Ca]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[yt]={pure:!0,appendData:i},t[It]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[st]={appendData:i},t[ir]={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}(),sf=function(r,t,e,a){return r[a]},bS=(yr={},yr[Ye+"_"+zt]=function(r,t,e,a){return r[a+t]},yr[Ye+"_"+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},yr[yt]=sf,yr[It]=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},yr[st]=sf,yr);function rg(r,t){var e=bS[pu(r,t)];return e}var lf=function(r,t,e){return r.length},AS=(mr={},mr[Ye+"_"+zt]=function(r,t,e){return Math.max(0,r.length-t)},mr[Ye+"_"+Ca]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},mr[yt]=lf,mr[It]=function(r,t,e){var a=e[0].name,n=r[a];return n?n.length:0},mr[st]=lf,mr);function ag(r,t){var e=AS[pu(r,t)];return e}var Ko=function(r,t,e){return r[t]},TS=(_r={},_r[Ye]=Ko,_r[yt]=function(r,t,e){return r[e]},_r[It]=Ko,_r[st]=function(r,t,e){var a=_a(r);return a instanceof Array?a[t]:a},_r[ir]=Ko,_r);function ng(r){var t=TS[r];return t}function pu(r,t){return r===Ye?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 ng(i)(a,o,s)}else{var l=a;return i===st&&(l=_a(a)),l}}}}var CS=/\{@(.+?)\}/g,ig=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,h=f==="series",v=a.userOutput&&a.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:n,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.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&&N(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(X(i))return l.status=e,l.dimensionIndex=n,i(l);if(W(i)){var c=Bp(i,l);return c.replace(CS,function(f,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=da(s,t,d);if(o&&N(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 uf(r){var t,e;return Y(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function nn(r){return new MS(r)}var MS=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 h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(f||v<d)){var p=this._progress;if(N(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){cf.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:cf.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),N(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}(),cf=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 Ci(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!he(r)&&r!=null&&r!=="-"&&(r=+At(r)),r==null||r===""?NaN:+r)}U({number:function(r){return parseFloat(r)},time:function(r){return+At(r)},trim:function(r){return W(r)?Pn(r):r}});var DS=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=he(t)?t:Ni(t),n=he(e)?e:Ni(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=W(t),l=W(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),IS=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 Ci(t,e)},r}();function LS(r,t){var e=new IS,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==zt&&He(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Q(l,y)&&He(_),l[y]=m}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=rg(n,zt);t.__isBuiltIn&&(e.getRawDataItem=function(p){return f(a,i,s,p)},e.getRawData=F(PS,null,r)),e.cloneRawData=F(RS,null,r);var h=ag(n,zt);e.count=F(h,null,a,i,s);var v=ng(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 v(p,g,y.name)}};return e.getDimensionInfo=F(ES,null,s,l),e.cloneAllDimensionInfo=F(kS,null,s),e}function PS(r){var t=r.sourceFormat;if(!gu(t)){var e="";He(e)}return r.data}function RS(r){var t=r.sourceFormat,e=r.data;if(!gu(t)){var a="";He(a)}if(t===Ye){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===yt){for(var n=[],i=0,o=e.length;i<o;i++)n.push(B({},e[i]));return n}}function ES(r,t,e){if(e!=null){if(he(e)||!isNaN(e)&&!Q(t,e))return r[e];if(Q(t,e))return t[e]}}function kS(r){return Z(r)}var og=U();function OS(r){r=Z(r);var t=r.type,e="";t||He(e);var a=t.split(":");a.length!==2&&He(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,og.set(t,r)}function NS(r,t,e){var a=ce(r),n=a.length,i="";n||He(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=BS(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function BS(r,t,e,a){var n="";t.length||He(n),Y(r)||He(n);var i=r.type,o=og.get(i);o||He(n);var s=z(t,function(u){return LS(u,o)}),l=ce(o.transform({upstream:s[0],upstreamList:s,config:Z(r.config)}));return z(l,function(u,c){var f="";Y(u)||He(f),u.data||He(f);var h=Qp(u.data);gu(h)||He(f);var v,d=t[0];if(d&&c===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:zt,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:zt,sourceHeader:0,dimensions:u.dimensions};return sl(u.data,v,null)})}function gu(r){return r===Ye||r===yt}var wo="undefined",VS=typeof Uint32Array===wo?Array:Uint32Array,zS=typeof Uint16Array===wo?Array:Uint16Array,sg=typeof Int32Array===wo?Array:Int32Array,ff=typeof Float64Array===wo?Array:Float64Array,lg={float:ff,int:sg,ordinal:Array,number:Array,time:ff},qo;function Ea(r){return r>65535?VS:zS}function Zr(){return[1/0,-1/0]}function GS(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function vf(r,t,e,a,n){var i=lg[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 ll=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}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=qo[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],eg(n),this._dimensions=z(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var 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 lg[e||"float"](this._rawCount),this._rawExtent[i]=Zr(),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]=Zr());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];vf(a,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var c=n[d],p=qo.arrayRows.call(this,t[v]||f,c.property,v,d);a[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(m){return m.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Zr()),vf(i,c,f.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var h=[],v=t;v<e;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!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 h=this.getRawIndex(c),v=e-i[h],d=Math.abs(v);d<=a&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===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,h=0;h<n;h++){var v=void 0,d=a.getRawIndex(h);if(l===0)v=e(h);else if(l===1){var p=f[c][d];v=e(p,h)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][d];s[g]=h,v=e.apply(null,s)}v&&(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=Pe(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],h=t[c][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var g=v[n[0]],y=0;y<a;y++){var m=g[y];(m>=f&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[n[0]],_=v[n[1]],x=t[n[1]][0],b=t[n[1]][1],y=0;y<a;y++){var m=g[y],S=_[y];(m>=f&&m<=h||isNaN(m))&&(S>=x&&S<=b||isNaN(S))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var A=e.getRawIndex(y),m=v[n[0]][A];(m>=f&&m<=h||isNaN(m))&&(l[u++]=A)}else for(var y=0;y<o;y++){for(var T=!0,A=e.getRawIndex(y),C=0;C<i;C++){var M=n[C],m=v[M][A];(m<t[M][0]||m>t[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var 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]]=Zr();for(var f=0;f<s;f++){for(var h=t.getRawIndex(f),v=0;v<o;v++)l[v]=n[e[v]][h];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[h]=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,h,v=new(Ea(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var x=this.getRawIndex(_),b=i[x];isNaN(b)||(m+=b)}m/=g-p;var S=d,A=Math.min(d+l,o),T=d-1,C=i[u];c=-1,h=S;for(var M=-1,D=0,_=S;_<A;_++){var x=this.getRawIndex(_),b=i[x];if(isNaN(b)){D++,M<0&&(M=x);continue}f=Math.abs((T-y)*(b-C)-(T-_)*(m-C)),f>c&&(c=f,h=x)}D>0&&D<A-S&&(v[s++]=Math.min(M,h),h=Math.max(M,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,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]=Zr(),h=new(Ea(this._rawCount))(Math.ceil(c/l)),v=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),h[v++]=m}return i._count=v,i._indices=h,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=Zr();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&&ua(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?GS(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=Z(this._extent),t._rawExtent=Z(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 Ci(e[i],this._dimensions[i])}qo={arrayRows:t,objectRows:function(e,a,n,i){return Ci(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Ci(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),FS=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=nt(s)?ir:st,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=de(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=de(f.sourceHeader,h.sourceHeader),p=de(f.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=g?[sl(s,{seriesLayoutBy:v,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=[sl(_,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&&hf(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&hf(f),s.push(c),l.push(u._getVersionSign())}),a?o=NS(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[xS(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 ll,s.initData(new tg(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Yn(t)){var e=cu(t);return e?[e.getSourceManager()]:[]}else return z(Yx(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 hf(r){throw new Error(r)}var ug="line-height:1";function cg(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:"+Xe(a+"")+"px;color:"+Xe(e)+";font-weight:"+Xe(n+""),valueStyle:"font-size:"+Xe(o+"")+"px;color:"+Xe(i)+";font-weight:"+Xe(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var WS=[0,10,20,30],HS=["",`
`,`
`,`
`];function Ct(r,t){return t.type=r,t}function ul(r){return r.type==="section"}function fg(r){return ul(r)?US:$S}function vg(r){if(ul(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return w(r.blocks,function(n){var i=vg(n);i>=t&&(t=i+ +(a&&(!i||ul(n)&&!n.noHeader)))}),t}return 0}function US(r,t,e,a){var n=t.noHeader,i=YS(vg(t)),o=[],s=t.blocks||[];rt(!s||N(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Q(u,l)){var c=new DS(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var g=t.valueFormatter,y=fg(d)(g?B(B({},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):cl(o.join(""),n?e:i.html);if(n)return f;var h=il(t.header,"ordinal",r.useUTC),v=cg(a,r.renderMode).nameStyle;return r.renderMode==="richText"?hg(r,h,v)+i.richText+f:cl('<div style="'+v+";"+ug+';">'+Xe(h)+"</div>"+f,e)}function $S(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=N(x)?x:[x],z(x,function(b,S){return il(b,N(v)?v[S]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),h=i?"":il(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value),p=!s||!i,g=!s&&i,y=cg(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":f)+(i?"":hg(r,h,m))+(o?"":KS(r,d,p,g,_)):cl((s?"":f)+(i?"":ZS(h,!s,m))+(o?"":XS(d,p,g,_)),e)}}function df(r,t,e,a,n,i){if(!!r){var o=fg(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function YS(r){return{html:WS[r],richText:HS[r]}}function cl(r,t){var e='<div style="clear:both"></div>',a="margin: "+t+"px 0 0";return'<div style="'+a+";"+ug+';">'+r+e+"</div>"}function ZS(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Xe(r)+"</span>"}function XS(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=N(r)?r:[r],'<span style="'+i+";"+a+'">'+z(r,function(o){return Xe(o)}).join("&nbsp;&nbsp;")+"</span>"}function hg(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function KS(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(N(t)?t.join(" "):t,i)}function dg(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Br(a)}function pg(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var jo=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Zd()}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=zx({color:e,type:t,renderMode:a,markerId:n});return W(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};N(e)?w(e,function(i){return B(a,i)}):B(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function qS(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=N(s),u=dg(t,e),c,f,h,v;if(o>1||l&&!o){var d=jS(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=c=da(n,e,i[0]),f=p.type}else v=c=l?s[0]:s;var g=Yl(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return Ct("section",{header:y,noHeader:a||!g,sortParam:v,blocks:[Ct("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Pn(_),value:c,valueType:f})].concat(h||[])})}function jS(r,t,e,a,n){var i=t.getData(),o=ua(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?w(a,function(f){c(da(i,e,f),f)}):w(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Ct("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Kt=ne();function Zn(r,t){return r.getName(t)||r.getId(t)}var Mi="__universalTransitionEnabled",bo=function(r){E(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:e1}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Kt(this).sourceManager=new FS(this);i.prepareSource();var o=this.getInitialData(e,n);gf(o,this),this.dataTask.context.data=o,Kt(this).dataBeforeProcessed=o,pf(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=yn(this),i=n?Aa(e):{},o=this.subType;re.hasClass(o)&&(o+="Series"),J(e,a.getTheme().get(this.subType)),J(e,this.getDefaultOption()),Bi(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&ur(e,i,n)},t.prototype.mergeOption=function(e,a){e=J(this.option,e,!0),this.fillDataTextStyle(e.data);var n=yn(this);n&&ur(this.option,e,n);var i=Kt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);gf(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Kt(this).dataBeforeProcessed=o,pf(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!nt(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=fl(this);if(a){var n=a.context.data;return e==null?n:n.getLinkedData(e)}else return Kt(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=fl(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Kt(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return U(e)},t.prototype.getSourceManager=function(){return Kt(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Kt(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 qS({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(_e.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=fu.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=Pe(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[Mi])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"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=a[c],h=Zn(e,f);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(f)}}else if(s==="single"||s===!0){var v=a[l-1],h=Zn(e,v);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(v),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 re.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}(re);Ke(bo,ig);Ke(bo,fu);rp(bo,re);function pf(r){var t=r.name;Yl(r)||(r.name=JS(r)||t)}function JS(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return w(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 e1(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),t1}function t1(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function gf(r,t){w(k0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,te(r1,t))})}function r1(r,t){var e=fl(r);return e&&e.setOutputEnd((t||this).count()),t}function fl(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 ot=bo;var yu=function(){function r(){this.group=new ee,this.uid=ba("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}();Xl(yu);oo(yu);const Me=yu;function mu(){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 gg=ne(),a1=mu(),_u=function(){function r(){this.group=new ee,this.uid=ba("viewChart"),this.renderTask=nn({plan:n1,reset:i1}),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||mf(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||mf(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){vo(this.group,t)},r.markUpdateMethod=function(t,e){gg(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function yf(r,t,e){r&&el(r)&&(t==="emphasis"?va:ha)(r,e)}function mf(r,t,e){var a=Nr(r,t),n=t&&t.highlightKey!=null?rx(t.highlightKey):null;a!=null?w(ce(a),function(i){yf(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){yf(i,e,n)})}Xl(_u);oo(_u);function n1(r){return a1(r.model)}function i1(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&gg(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),o1[l]}var o1={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 Ge=_u;var Hi="\0__throttleOriginMethod",_f="\0__throttleRate",xf="\0__throttleType";function xu(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 h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;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 h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function Bn(r,t,e,a){var n=r[t];if(!!n){var i=n[Hi]||n,o=n[xf],s=n[_f];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=xu(i,e,a==="debounce"),n[Hi]=i,n[xf]=a,n[_f]=e}return n}}function _n(r,t){var e=r[t];e&&e[Hi]&&(e.clear&&e.clear(),r[t]=e[Hi])}var Sf=ne(),wf={itemStyle:fa(Ap,!0),lineStyle:fa(bp,!0)},s1={lineStyle:"stroke",itemStyle:"fill"};function yg(r,t){var e=r.visualStyleMapper||wf[t];return e||(console.warn("Unkown style type '"+t+"'."),wf.itemStyle)}function mg(r,t){var e=r.visualDrawType||s1[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var l1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=yg(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=mg(r,a),u=o[l],c=X(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=B({},o);g[l]=c(p),v.setItemVisual(d,"style",g)}}}},ka=new we,u1={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=yg(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");B(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}}}},c1={performRawSeries:!0,overallReset:function(r){var t=U();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)),Sf(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=Sf(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=mg(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 h=i.ensureUniqueItemVisual(c,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},Xn=Math.PI;function f1(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 ee,a=new le({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 le({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 Hl({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 v1=function(){function r(t,e,a,n){this._stageTaskMap=U(),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=U();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;w(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";rt(!(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;w(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(g){g.perform(p)}),h.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=U(),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 h=f.uid,v=s.set(h,o&&o.get(h)||nn({plan:y1,reset:m1,count:x1}));v.context={model:f,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||nn({reset:h1});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=U(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";rt(!t.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):c?c(a,n).each(d):(f=!1,w(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(h=!0,nn({reset:d1,onDirty:g1})));y.context={model:p,overallProgress:f},y.agent=o,y.__block=f,i._pipe(p,y)}h&&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 X(t)&&(t={overallReset:t,seriesType:S1(t)}),t.uid=ba("stageHandler"),e&&(t.visualType=e),t},r}();function h1(r){r.overallReset(r.ecModel,r.api,r.payload)}function d1(r){return r.overallProgress&&p1}function p1(){this.agent.dirty(),this.getDownstream().dirty()}function g1(){this.agent&&this.agent.dirty()}function y1(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function m1(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ce(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,a){return _g(a)}):_1}var _1=_g(0);function _g(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 x1(r){return r.data.count()}function S1(r){Ui=null;try{r(xn,xg)}catch{}return Ui}var xn={},xg={},Ui;Sg(xn,Kp);Sg(xg,qp);xn.eachSeriesByType=xn.eachRawSeriesByType=function(r){Ui=r};xn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Ui=r.subType)};function Sg(r,t){for(var e in t.prototype)r[e]=bt}const wg=v1;var bf=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const w1={color:bf,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],bf]};var Be="#B9B8CE",Af="#100C2A",Kn=function(){return{axisLine:{lineStyle:{color:Be}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Tf=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],bg={darkMode:!0,color:Tf,backgroundColor:Af,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Be}},textStyle:{color:Be},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Be}},dataZoom:{borderColor:"#71708A",textStyle:{color:Be},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:Be}},timeline:{lineStyle:{color:Be},label:{color:Be},controlStyle:{color:Be,borderColor:Be}},calendar:{itemStyle:{color:Af},dayLabel:{color:Be},monthLabel:{color:Be},yearLabel:{color:Be}},timeAxis:Kn(),logAxis:Kn(),valueAxis:Kn(),categoryAxis:Kn(),line:{symbol:"circle"},graph:{color:Tf},gauge:{title:{color:Be},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Be},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};bg.categoryAxis.splitLine.show=!1;const b1=bg;var A1=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(W(t)){var i=St(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var h=o[f],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,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,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),vl=["symbol","symbolSize","symbolRotate","symbolOffset"],Cf=vl.concat(["symbolKeepAspect"]),T1={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<vl.length;o++){var s=vl[o],l=r.get(s);X(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(B({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Pe(n);function c(f,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(h,g,n[g](v,d))}}return{dataEach:i?c:null}}},C1={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<Cf.length;s++){var l=Cf[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function Ag(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 Tg(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 M1(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 Cg(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=B({},n),o.dispatchAction(B(n,{type:a[1],seriesIndex:e(i,n)}))})})}function Xr(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(),h=Nr(f,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:N(h)?f.getName(h[0]):f.getName(h),selected:W(l)?l:B({},l)})}})}function D1(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(Xr("map","selectchanged",t,n,a),Xr("pie","selectchanged",t,n,a)):a.fromAction==="select"?(Xr("map","selected",t,n,a),Xr("pie","selected",t,n,a)):a.fromAction==="unselect"&&(Xr("map","unselected",t,n,a),Xr("pie","unselected",t,n,a))})}function na(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var I1=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()}}),L1=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()}}),P1=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),h=Math.cos(u),v=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*v,l+s+h*v,e,a-d,e,a),r.bezierCurveTo(e,a-d,e-c+f*v,l+s+h*v,e-c,l+s),r.closePath()}}),R1=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()}}),E1={line:ze,rect:le,roundRect:le,square:le,circle:Gt,diamond:L1,pin:P1,arrow:R1,triangle:I1},k1={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}},$i={};w(E1,function(r,t){$i[t]=new r});var O1=De.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=Zs(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=$i[a];n||(a="rect",n=$i[a]),k1[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function N1(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 Le(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=pp(r.slice(8),new ge(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=ru(r.slice(7),{},new ge(t,e,a,n),o?"center":"cover"):l=new O1({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=N1,i&&l.setColor(i),l}function Su(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ao(r,t){if(r!=null)return N(r)||(r=[r,r]),[H(r[0],t[0])||0,H(de(r[1],r[0]),t[1])||0]}var Jo=new O0,Mf=new Rd(100),Df=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Yi(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&Jo.delete(r);var i=Jo.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,Jo.set(r,s),r.dirty=!1,s;function l(u){for(var c=[e],f=!0,h=0;h<Df.length;++h){var v=o[Df[h]];if(v!=null&&!N(v)&&!W(v)&&!he(v)&&typeof v!="boolean"){f=!1;break}c.push(v)}var d;if(f){d=c.join(",")+(n?"-svg":"");var p=Mf.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=Dg(o.dashArrayX),y=B1(o.dashArrayY),m=Mg(o.symbol),_=V1(g),x=Ig(y),b=!n&&Nd.createCanvas(),S=n&&{tag:"g",attrs:{},key:"dcl",children:[]},A=C(),T;b&&(b.width=A.width*e,b.height=A.height*e,T=b.getContext("2d")),M(),f&&Mf.put(d,b||S),u.image=b,u.svgElement=S,u.svgWidth=A.width,u.svgHeight=A.height;function C(){for(var D=1,I=0,L=_.length;I<L;++I)D=mc(D,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=mc(P,m[I].length);D*=P;var R=x*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(D<=0)return;for(var L=-x,P=0,R=0,O=0;L<A.height;){if(P%2===0){for(var G=R/2%m.length,k=0,V=0,$=0;k<A.width*2;){for(var q=0,I=0;I<g[O].length;++I)q+=g[O][I];if(q<=0)break;if(V%2===0){var ie=(1-o.symbolSize)*.5,fe=k+g[O][V]*ie,be=L+y[P]*ie,Fe=g[O][V]*o.symbolSize,Ae=y[P]*o.symbolSize,Yt=$/2%m[G].length;Zt(fe,be,Fe,Ae,m[G][Yt])}k+=g[O][V],++$,++V,V===g[O].length&&(V=0)}++O,O===g.length&&(O=0)}L+=y[P],++R,++P,P===y.length&&(P=0)}function Zt(Ma,Da,Gn,Fn,Wn){var dr=n?1:e,Xt=Le(Wn,Ma*dr,Da*dr,Gn*dr,Fn*dr,o.color,o.symbolKeepAspect);if(n){var Rt=a.painter.renderOneToVNode(Xt);Rt&&S.children.push(Rt)}else N0(T,Xt)}}}}function Mg(r){if(!r||r.length===0)return[["rect"]];if(W(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!W(r[e])){t=!1;break}if(t)return Mg([r]);for(var a=[],e=0;e<r.length;++e)W(r[e])?a.push([r[e]]):a.push(r[e]);return a}function Dg(r){if(!r||r.length===0)return[[0,0]];if(he(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!he(r[a])){e=!1;break}if(e)return Dg([r]);for(var n=[],a=0;a<r.length;++a)if(he(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=z(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function B1(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(he(r)){var t=Math.ceil(r);return[t,t]}var e=z(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function V1(r){return z(r,function(t){return Ig(t)})}function Ig(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function z1(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=Yi(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Yi(n,t)}}})}var G1=new ma;const ut=G1;var Lg={};function F1(r,t){Lg[r]=t}function W1(r){return Lg[r]}var H1=typeof window<"u",U1=1,$1=800,Y1=900,Z1=1e3,X1=2e3,K1=5e3,Pg=1e3,q1=1100,wu=2e3,Rg=3e3,j1=4e3,To=4500,J1=4600,Q1=5e3,ew=6e3,Eg=7e3,tw={PROCESSOR:{FILTER:Z1,SERIES_FILTER:$1,STATISTIC:K1},VISUAL:{LAYOUT:Pg,PROGRESSIVE_LAYOUT:q1,GLOBAL:wu,CHART:Rg,POST_CHART_LAYOUT:J1,COMPONENT:j1,BRUSH:Q1,CHART_ITEM:To,ARIA:ew,DECAL:Eg}},Ee="__flagInMainProcess",We="__pendingUpdate",Qo="__needsUpdateStatus",If=/^[a-zA-Z0-9_]+$/,es="__connectUpdateStatus",Lf=0,rw=1,aw=2;function kg(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return Ng(this,r,t)}}function Og(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ng(this,r,t)}}function Ng(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),ma.prototype[t].apply(r,e)}var Bg=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ma),Vg=Bg.prototype;Vg.on=Og("on");Vg.off=Og("off");var Kr,ts,qn,qt,rs,as,ns,Oa,Na,Pf,Rf,is,Ef,jn,kf,zg,qe,Of,Gg=function(r){E(t,r);function t(e,a,n){var i=r.call(this,new A1)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},W(a)&&(a=Fg[a]),i._dom=e;var o="canvas",s=!1,l=i._zr=uc(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=xu(F(l.flush,l),17),a=Z(a),a&&Jp(a,!0),i._theme=a,i._locale=Lx(n.locale||Tp),i._coordSysMgr=new vu;var u=i._api=kf(i);function c(f,h){return f.__prio-h.__prio}return No(Xi,c),No(hl,c),i._scheduler=new wg(i,u,hl,Xi),i._messageCenter=new Bg,i._initEvents(),i.resize=F(i.resize,i),l.animation.on("frame",i._onframe,i),Pf(l,i),Rf(l,i),Ys(i),i}return t.prototype._onframe=function(){if(!this._disposed){Of(this);var e=this._scheduler;if(this[We]){var a=this[We].silent;this[Ee]=!0;try{Kr(this),qt.update.call(this,null,this[We].updateParams)}catch(l){throw this[Ee]=!1,this[We]=null,l}this._zr.flush(),this[Ee]=!1,this[We]=null,Oa.call(this,a),Na.call(this,a)}else if(e.unfinished){var n=U1,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),as(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[Ee]){if(this._disposed){this.id;return}var i,o,s;if(Y(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ee]=!0,!this._model||a){var l=new cS(this._api),u=this._theme,c=this._model=new Kp;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},dl);var f={seriesTransition:s,optionChanged:!0};if(n)this[We]={silent:i,updateParams:f},this[Ee]=!1,this.getZr().wakeUp();else{try{Kr(this),qt.update.call(this,null,f)}catch(h){throw this[We]=null,this[Ee]=!1,h}this._ssr||this._zr.flush(),this[We]=null,this[Ee]=!1,Oa.call(this,i),Na.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||H1&&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(!!_e.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return w(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;w(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 w(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(Nf[n]){var l=s,u=s,c=-s,f=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(sn,function(_,x){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Z(e)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),h.push({dom:b,left:S.left,top:S.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,g=Nd.createCanvas(),y=uc(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return w(h,function(_){var x=_.left-l,b=_.top-u;m+='<g transform="translate('+x+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new le({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var x=new Mt({style:{x:_.left*v-l,y:_.top*v-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 rs(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return rs(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 w(o,function(s,l){l.indexOf("Models")>=0&&w(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?Ag(s,l,a):Tg(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;w(nw,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&na(s,function(d){var p=j(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=B({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),w(on,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),w(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),D1(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(),Au,"");var a=this,n=a._api,i=a._model;w(a._componentsViews,function(o){o.dispose(i,n)}),w(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[Ee]){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[We]&&(i==null&&(i=this[We].silent),n=!0,this[We]=null),this[Ee]=!0;try{n&&Kr(this),qt.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Ee]=!1,o}this[Ee]=!1,Oa.call(this,i),Na.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(Y(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!pl[e]){var n=pl[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=B({},e);return a.type=on[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(Y(a)||(a={silent:!!a}),!!Zi[e.type]&&!!this._model){if(this[Ee]){this._pendingActions.push(e);return}var n=a.silent;ns.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&_e.browser.weChat&&this._throttledZrFlush(),Oa.call(this,n),Na.call(this,n)}},t.prototype.updateLabelLayout=function(){ut.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(){Kr=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),ts(f,!0),ts(f,!1),h.plan()},ts=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,g=h?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(S,A){S!=="series"&&x(A)}):v.eachSeries(x);function x(S){var A=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,C=!A&&g[T];if(!C){var M=St(S.type),D=h?Me.getClass(M.main,M.sub):Ge.getClass(M.sub);C=new D,C.init(v,m),g[T]=C,p.push(C),y.add(C.group)}S.__viewId=C.__id=T,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!h&&d.prepareView(C,S,v,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},qn=function(f,h,v,d,p){var g=f._model;if(g.setUpdatePayload(v),!d){w([].concat(f._componentsViews).concat(f._chartsViews),b);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=v.excludeSeriesId,x;_!=null&&(x=U(),w(ce(_),function(S){var A=Oe(S,null);A!=null&&x.set(A,!0)})),g&&g.eachComponent(m,function(S){var A=x&&x.get(S.id)!==null;if(!A)if(Lc(v))if(S instanceof ot)v.type===Ir&&!v.notBlur&&!S.get(["emphasis","disabled"])&&Z_(S,v,f._api);else{var T=Ql(S.mainType,S.componentIndex,v.name,f._api),C=T.focusSelf,M=T.dispatchers;v.type===Ir&&C&&!v.notBlur&&Qs(S.mainType,S.componentIndex,f._api),M&&w(M,function(D){v.type===Ir?va(D):ha(D)})}else tl(v)&&S instanceof ot&&(q_(S,v,f._api),Dc(S),qe(f))},f),g&&g.eachComponent(m,function(S){var A=x&&x.get(S.id)!==null;A||b(f[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function b(S){S&&S.__alive&&S[h]&&S[h](S.__model,g,f._api,v)}},qt={prepareAndUpdate:function(f){Kr(this),qt.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!v){v.setUpdatePayload(f),y.restoreData(v,f),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,f),as(this,v),g.update(v,d),e(v),y.performVisualTasks(v,f),is(this,v,d,f,h);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),ut.trigger("afterupdate",v,d)}},updateTransform:function(f){var h=this,v=this._model,d=this._api;if(!!v){v.setUpdatePayload(f);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(m,v,d,f);x&&x.update&&p.push(_)}else p.push(_)}});var g=U();v.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,f);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0,dirtyMap:g}),jn(this,v,d,f,{},g),ut.trigger("afterupdate",v,d)}},updateView:function(f){var h=this._model;!h||(h.setUpdatePayload(f),Ge.markUpdateMethod(f,"updateView"),e(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),is(this,h,this._api,f,{}),ut.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,v=this._model;!v||(v.setUpdatePayload(f),v.eachSeries(function(d){d.getData().clearAllVisual()}),Ge.markUpdateMethod(f,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,f,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,f)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,f)}),ut.trigger("afterupdate",v,this._api))},updateLayout:function(f){qt.update.call(this,f)}},rs=function(f,h,v,d){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,m=en(p,v),_=0;_<g.length;_++){var x=g[_];if(x[h]&&(y=x[h](p,m,d))!=null)return y}},as=function(f,h){var v=f._chartsMap,d=f._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},ns=function(f,h){var v=this,d=this.getModel(),p=f.type,g=f.escapeConnect,y=Zi[p],m=y.actionInfo,_=(m.update||"update").split(":"),x=_.pop(),b=_[0]!=null&&St(_[0]);this[Ee]=!0;var S=[f],A=!1;f.batch&&(A=!0,S=z(f.batch,function(P){return P=K(B({},P),f),P.batch=null,P}));var T=[],C,M=tl(f),D=Lc(f);if(D&&vp(this._api),w(S,function(P){if(C=y.action(P,v._model,v._api),C=C||B({},P),C.type=m.event||C.type,T.push(C),D){var R=Zl(f),O=R.queryOptionMap,G=R.mainTypeSpecified,k=G?O.keys()[0]:"series";qn(v,x,P,k),qe(v)}else M?(qn(v,x,P,"series"),qe(v)):b&&qn(v,x,P,b.main,b.sub)}),x!=="none"&&!D&&!M&&!b)try{this[We]?(Kr(this),qt.update.call(this,f),this[We]=null):qt[x].call(this,f)}catch(P){throw this[Ee]=!1,P}if(A?C={type:m.event||p,escapeConnect:g,batch:T}:C=T[0],this[Ee]=!1,!h){var I=this._messageCenter;if(I.trigger(C.type,C),M){var L={type:"selectchanged",escapeConnect:g,selected:j_(d),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(L.type,L)}}},Oa=function(f){for(var h=this._pendingActions;h.length;){var v=h.shift();ns.call(this,v,f)}},Na=function(f){!f&&this.trigger("updated")},Pf=function(f,h){f.on("rendered",function(v){h.trigger("rendered",v),f.animation.isFinished()&&!h[We]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Rf=function(f,h){f.on("mouseover",function(v){var d=v.target,p=na(d,el);p&&(X_(p,v,h._api),qe(h))}).on("mouseout",function(v){var d=v.target,p=na(d,el);p&&(K_(p,v,h._api),qe(h))}).on("click",function(v){var d=v.target,p=na(d,function(m){return j(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=j(p);h._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function a(f){var h=[],v=[],d=!1;if(f.eachComponent(function(m,_){var x=_.get("zlevel")||0,b=_.get("z")||0,S=_.getZLevelKey();d=d||!!S,(m==="series"?v:h).push({zlevel:x,z:b,idx:_.componentIndex,type:m,key:S})}),d){var p=h.concat(v),g,y;No(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),w(p,function(m){var _=f.getComponent(m.type,m.idx),x=m.zlevel,b=m.key;g!=null&&(x=Math.max(g,x)),b?(x===g&&b!==y&&x++,y=b):y&&(x===g&&x++,y=""),g=x,_.setZLevel(x)})}}is=function(f,h,v,d,p){a(h),Ef(f,h,v,d,p),w(f._chartsViews,function(g){g.__alive=!1}),jn(f,h,v,d,p),w(f._chartsViews,function(g){g.__alive||g.remove(h,v)})},Ef=function(f,h,v,d,p,g){w(g||f._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,v,d),s(m,y),c(m,y)})},jn=function(f,h,v,d,p,g){var y=f._scheduler;p=B(p||{},{updatedSeries:h.getSeries()}),ut.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var x=f._chartsMap[_.__viewId];x.__alive=!0;var b=x.renderTask;y.updatePayload(b,d),u(_,x),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),x.group.silent=!!_.get("silent"),o(_,x),Dc(_)}),y.unfinished=m||y.unfinished,ut.trigger("series:layoutlabels",h,v,p),ut.trigger("series:transition",h,v,p),h.eachSeries(function(_){var x=f._chartsMap[_.__viewId];s(_,x),c(_,x)}),i(f,h),ut.trigger("series:afterupdate",h,v,p)},qe=function(f){f[Qo]=!0,f.getZr().wakeUp()},Of=function(f){!f[Qo]||(f.getZr().storage.traverse(function(h){ia(h)||n(h)}),f[Qo]=!1)};function n(f){for(var h=[],v=f.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}f.selected&&f.states.select&&h.push("select"),f.hoverState===lo&&f.states.emphasis?h.push("emphasis"):f.hoverState===so&&f.states.blur&&h.push("blur"),f.useStates(h)}function i(f,h){var v=f._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!_e.node&&!_e.worker&&h.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,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,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[_],h,v,d),d);else f.z=h,f.zlevel=v,d=Math.max(f.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var x=f.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+(x&&x.showAbove?1:-1))}return d}function u(f,h){h.eachRendered(function(v){if(!ia(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,h){var v=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(ia(y))return;if(y instanceof De&&ax(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)}})}kf=function(f){return new(function(h){E(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){va(d,p),qe(f)},v.prototype.leaveEmphasis=function(d,p){ha(d,p),qe(f)},v.prototype.enterBlur=function(d){Y_(d),qe(f)},v.prototype.leaveBlur=function(d){lp(d),qe(f)},v.prototype.enterSelect=function(d){up(d),qe(f)},v.prototype.leaveSelect=function(d){cp(d),qe(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(qp))(f)},zg=function(f){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[es]=d}}w(on,function(v,d){f._messageCenter.on(d,function(p){if(Nf[f.group]&&f[es]!==Lf){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),y=[];w(sn,function(m){m!==f&&m.group===f.group&&y.push(m)}),h(y,Lf),w(y,function(m){m[es]!==rw&&m.dispatchAction(g)}),h(y,aw)}})})}}(),t}(ma),bu=Gg.prototype;bu.on=kg("on");bu.off=kg("off");bu.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 nw=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Zi={},on={},hl=[],dl=[],Xi=[],Fg={},pl={},sn={},Nf={},iw=+new Date-0,Au="_echarts_instance_";function NR(r,t,e){var a=!(e&&e.ssr);if(a){var n=ow(r);if(n)return n}var i=new Gg(r,t,e);return i.id="ec_"+iw++,sn[i.id]=i,a&&Qd(r,Au,i.id),zg(i),ut.trigger("afterinit",i),i}function ow(r){return sn[C_(r,Au)]}function Wg(r,t){Fg[r]=t}function Hg(r){oe(dl,r)<0&&dl.push(r)}function Ug(r,t){Cu(hl,r,t,X1)}function sw(r){Tu("afterinit",r)}function lw(r){Tu("afterupdate",r)}function Tu(r,t){ut.on(r,t)}function Lt(r,t,e){X(t)&&(e=t,t="");var a=Y(r)?r.type:[r,r={event:t}][0];r.event=(r.event||a).toLowerCase(),t=r.event,!on[t]&&(rt(If.test(a)&&If.test(t)),Zi[a]||(Zi[a]={action:e,actionInfo:r}),on[t]=a)}function uw(r,t){vu.register(r,t)}function cw(r,t){Cu(Xi,r,t,Pg,"layout")}function Wr(r,t){Cu(Xi,r,t,Rg,"visual")}var Bf=[];function Cu(r,t,e,a,n){if((X(t)||Y(t))&&(e=t,t=a),!(oe(Bf,e)>=0)){Bf.push(e);var i=wg.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function $g(r,t){pl[r]=t}function fw(r,t,e){var a=W1("registerMap");a&&a(r,t,e)}var vw=OS;Wr(wu,l1);Wr(To,u1);Wr(To,c1);Wr(wu,T1);Wr(To,C1);Wr(Eg,z1);Hg(Jp);Ug(Y1,mS);$g("default",f1);Lt({type:Ir,event:Ir,update:Ir},bt);Lt({type:wi,event:wi,update:wi},bt);Lt({type:tn,event:tn,update:tn},bt);Lt({type:bi,event:bi,update:bi},bt);Lt({type:rn,event:rn,update:rn},bt);Wg("light",w1);Wg("dark",b1);function Ba(r){return r==null?0:r.length||1}function Vf(r){return r}var hw=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||Vf,this._newKeyGetter=n||Vf,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=Ba(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=Ba(u),h=Ba(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var v=0;v<f;v++)this._remove&&this._remove(u[v]);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=Ba(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=Ba(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const Sn=hw;var dw=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 pw(r,t){var e={},a=e.encode={},n=U(),i=[],o=[],s={};w(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;os(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),yw(v.type)&&(i[0]=h),os(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}Fp.each(function(g,y){var m=os(a,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};n.each(function(h,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=z(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var 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 dw(s,t),e}function os(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function gw(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function yw(r){return!(r==="ordinal"||r==="time")}var mw=function(){function r(t){this.otherDims={},t!=null&&B(this,t)}return r}();const Di=mw;var _w=ne(),xw={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Yg=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=Kg(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return de(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=eg(this.source),a=!qg(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 h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.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+=xw[u]||"f",c&&(n+=c.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.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 Zg(r){return r instanceof Yg}function Xg(r){for(var t=U(),e=0;e<(r||[]).length;e++){var a=r[e],n=Y(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function Kg(r){var t=_w(r);return t.dimNameMap||(t.dimNameMap=Xg(r.dimensionsDefine))}function qg(r){return r>30}var Va=Y,jt=z,Sw=typeof Int32Array>"u"?Array:Int32Array,ww="e\0\0",zf=-1,bw=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Aw=["_approximateExtent"],Gf,Jn,za,Ga,ss,Qn,ls,Tw=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;Zg(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],h=W(f)?new Di({name:f}):f instanceof Di?f:new Di(f),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=c),d.itemId===0&&(this._idDimIdx=c),n&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=U();w(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(he(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 ll&&(i=t),!i){var o=this.dimensions,s=hu(t)||In(t)?new tg(t,o.length):t;i=new ll;var l=jt(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=pw(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&&ls(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!==ir&&!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===st;if(l&&!n.pure)for(var u=[],c=t;c<e;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&h_(f)&&(this.hasItemOption=!0),f){var h=f.name;i[c]==null&&h!=null&&(i[c]=Oe(h,null));var v=f.id;o[c]==null&&v!=null&&(o[c]=Oe(v,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)ls(this,c);Gf(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)?B(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 N(t)?n.getValues(jt(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)?zf:n},r.prototype.indicesOfNearest=function(t,e,a){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,a)},r.prototype.each=function(t,e,a){X(t)&&(a=e,e=t,t=[]);var n=a||this,i=jt(Ga(t),this._getStoreDimIndex,this);this._store.each(i,n?F(e,n):e)},r.prototype.filterSelf=function(t,e,a){X(t)&&(a=e,e=t,t=[]);var n=a||this,i=jt(Ga(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?F(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Pe(t);return w(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){X(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=jt(Ga(t),this._getStoreDimIndex,this),s=Qn(this);return s._store=this._store.map(o,i?F(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=jt(Ga(t),this._getStoreDimIndex,this);this._store.modify(o,i?F(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 we(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)?B(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),N(i)?i=i.slice():Va(i)&&(i=B({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Va(e)?B(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Va(t)?B(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?B(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;qs(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(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:jt(this.dimensions,this._getDimInfo,this),this.hostModel)),ss(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];!X(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(B0(arguments)))})},r.internalField=function(){Gf=function(t){var e=t._invertedIndicesMap;w(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new Sw(o.categories.length);for(var l=0;l<a.length;l++)a[l]=zf;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},za=function(t,e,a){return Oe(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=ww+e),a},Ga=function(t){return N(t)||(t=t!=null?[t]:[]),t},Qn=function(t){var e=new r(t._schema?t._schema:jt(t.dimensions,t._getDimInfo,t),t.hostModel);return ss(e,t),e},ss=function(t,e){w(bw.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,w(Aw,function(a){t[a]=Z(e[a])}),t._calculationInfo=B({},e._calculationInfo)},ls=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 Mu=Tw;function jg(r,t){hu(r)||(r=du(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=U(),i=[],o=Mw(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&qg(o),l=a===r.dimensionsDefine,u=l?Kg(r):Xg(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=U(c),h=new sg(o),v=0;v<h.length;v++)h[v]=-1;function d(C){var M=h[C];if(M<0){var D=a[C],I=Y(D)?D:{name:D},L=new Di,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var R=i.length;return h[C]=R,L.storeDimIndex=C,i.push(L),L}return i[M]}if(!s)for(var v=0;v<o;v++)d(v);f.each(function(C,M){var D=ce(C).slice();if(D.length===1&&!W(D[0])&&D[0]<0){f.set(M,!1);return}var I=f.set(M,[]);w(D,function(L,P){var R=W(L)?u.get(L):L;R!=null&&R<o&&(I[P]=R,g(d(R),M,P))})});var p=0;w(e,function(C){var M,D,I,L;if(W(C))M=C,L={};else{L=C,M=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=B({},L),L.ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=f.get(M);if(R!==!1){if(R=ce(R),!R.length)for(var O=0;O<(D&&D.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}w(R,function(G,k){var V=d(G);if(l&&L.type!=null&&(V.type=L.type),g(K(V,L),M,k),V.name==null&&D){var $=D[k];!Y($)&&($={name:$}),V.name=V.displayName=$.name,V.defaultTooltip=$.defaultTooltip}I&&K(V.otherDims,I)})}});function g(C,M,D){Fp.get(M)!=null?C.otherDims[M]=D:(C.coordDim=M,C.coordDimIndex=D,n.set(M,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)w(i,function(C){b(C)}),i.sort(function(C,M){return C.storeDimIndex-M.storeDimIndex});else for(var S=0;S<o;S++){var A=d(S),T=A.coordDim;T==null&&(A.coordDim=Dw(x,n,_),A.coordDimIndex=0,(!y||m<=0)&&(A.isExtraCoord=!0),m--),b(A),A.type==null&&($p(r,S)===Re.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return Cw(i),new Yg({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Cw(r){for(var t=U(),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 Mw(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return w(t,function(i){var o;Y(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function Dw(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 Iw=function(){function r(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return r}();function Lw(r){var t=r.get("coordinateSystem"),e=new Iw(t),a=Pw[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Pw={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Ie).models[0],i=r.getReferringComponents("yAxis",Ie).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),qr(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),qr(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Ie).models[0];t.coordSysDims=["single"],e.set("single",n),qr(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Ie).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),qr(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),qr(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();w(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];e.set(c,u),qr(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function qr(r){return r.get("type")==="category"}function Rw(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;Ew(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(w(i,function(m,_){W(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,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;w(i,function(m){m.coordDim===v&&p++});var g={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,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:h,stackResultDimension:f}}function Ew(r){return!Zg(r.schema)}function Vr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function kw(r,t){return Vr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Ow(r,t){var e=r.get("coordinateSystem"),a=vu.get(e),n;return t&&t.coordSysDims&&(n=z(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=gw(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function Nw(r,t,e){var a,n;return e&&w(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 Co(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=du(r)):(n=a.getSource(),i=n.sourceFormat===st);var o=Lw(t),s=Ow(t,o),l=e.useEncodeDefaulter,u=X(l)?l:l?te($x,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=jg(n,c),h=Nw(f.dimensions,e.createInvertedIndices,o),v=i?null:a.getSharedDataStore(f),d=Rw(t,{schema:f,store:v}),p=new Mu(f,t);p.setCalculationInfo(d);var g=h!=null&&Bw(n)?function(y,m,_,x){return x===h?_:this.defaultDimValueGetter(y,m,_,x)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,g),p}function Bw(r){if(r.sourceFormat===st){var t=Vw(r.data||[]);return!N(_a(t))}}function Vw(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Jg=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}();oo(Jg);const $t=Jg;var zw=0,Gw=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++zw}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&z(a,Fw);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(!W(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=U(this.categories))},r}();function Fw(r){return Y(r)&&r.value!=null?r.value:r+""}const gl=Gw;function yl(r){return r.type==="interval"||r.type==="log"}function Ww(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=$d(i/t,!0);e!=null&&o<e&&(o=n.interval=e),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=Qg(o),l=n.niceTickExtent=[xe(Math.ceil(r[0]/o)*o,s),xe(Math.floor(r[1]/o)*o,s)];return Hw(l,r),n}function us(r){var t=Math.pow(10,$l(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,xe(e*t)}function Qg(r){return Nt(r)+2}function Ff(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Hw(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Ff(r,0,t),Ff(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Mo(r,t){return r>=t[0]&&r<=t[1]}function Do(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Io(r,t){return r*(t[1]-t[0])+t[0]}var ey=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new gl({})),N(n)&&(n=new gl({categories:z(n,function(i){return Y(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:W(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Mo(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Do(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Io(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}($t);$t.registerClass(ey);const Du=ey;var xr=xe,ty=function(r){E(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 Mo(e,this._extent)},t.prototype.normalize=function(e){return Do(e,this._extent)},t.prototype.scale=function(e){return Io(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=Qg(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:xr(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=xr(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:xr(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,h=f/e;u<e-1;){var v=xr(l.value+(u+1)*h);v>i[0]&&v<i[1]&&c.push(v),u++}n.push(c)}return n},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=Nt(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=xr(e.value,n,!0);return Op(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=Ww(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]=xr(Math.floor(a[0]/o)*o)),e.fixMax||(a[1]=xr(Math.ceil(a[1]/o)*o))},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t}($t);$t.registerClass(ty);const cr=ty;var ry=typeof Float32Array<"u",Uw=ry?Float32Array:Array;function Bt(r){return N(r)?ry?new Float32Array(r):r:new Uw(r)}var $w="__ec_stack_";function Iu(r){return r.get("stack")||$w+r.seriesIndex}function Lu(r){return r.dim+r.index}function ay(r,t){var e=[];return t.eachSeriesByType(r,function(a){sy(a)&&e.push(a)}),e}function Yw(r){var t={};w(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,v=f.getDimensionIndex(f.mapDimension(c.dim)),d=f.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);t[h]?t[h].push(y):t[h]=[y]}});var e={};for(var 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 ny(r){var t=Yw(r),e=[];return w(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(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=H(a.get("barWidth"),s),p=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(ly(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:Lu(i),stackId:Iu(a)})}),Zw(e)}function Zw(r){var t={};w(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 h=a.barMinWidth;h&&(l[u].minWidth=h);var v=a.barGap;v!=null&&(s.gap=v);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Pe(i).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),c=H(a.gap,1),f=a.remainedWidth,h=a.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),w(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,h--}else{var x=v;m&&m<x&&(x=Math.min(m,f)),_&&_>x&&(x=_),x!==v&&(y.width=x,f-=x+c*x,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;w(i,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;w(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),e}function Xw(r,t,e){if(r&&t){var a=r[Lu(t)];return a!=null&&e!=null?a[Iu(e)]:a}}function iy(r,t){var e=ay(r,t),a=ny(e);w(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Iu(n),u=a[Lu(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function oy(r){return{seriesType:r,plan:mu(),reset:function(t){if(!!sy(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=Vr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=Kw(n,i),d=ly(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 b=_.count,S=d&&Bt(b*3),A=d&&l&&Bt(b*3),T=d&&Bt(b),C=a.master.getRect(),M=h?C.width:C.height,D,I=x.getStore(),L=0;(D=_.next())!=null;){var P=I.get(f?g:o,D),R=I.get(s,D),O=v,G=void 0;f&&(G=+P-I.get(o,D));var k=void 0,V=void 0,$=void 0,q=void 0;if(h){var ie=a.dataToPoint([P,R]);if(f){var fe=a.dataToPoint([G,R]);O=fe[0]}k=O,V=ie[1]+m,$=ie[0]-O,q=y,Math.abs($)<p&&($=($<0?-1:1)*p)}else{var ie=a.dataToPoint([R,P]);if(f){var fe=a.dataToPoint([R,G]);O=fe[1]}k=ie[0]+m,V=O,$=y,q=ie[1]-O,Math.abs(q)<p&&(q=(q<=0?-1:1)*p)}d?(S[L]=k,S[L+1]=V,S[L+2]=h?$:q,A&&(A[L]=h?C.x:k,A[L+1]=h?V:C.y,A[L+2]=M),T[D]=D):x.setItemLayout(D,{x:k,y:V,width:$,height:q}),L+=3}d&&x.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:A,valueAxisHorizontal:h})}}}}}}function sy(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function ly(r){return r.pipelineContext&&r.pipelineContext.large}function Kw(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var qw=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},uy=function(r){E(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 go(e.value,Gc[Ex(oa(this._minLevelUnit))]||Gc.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return kx(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=ab(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]-=tt,a[1]+=tt),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]-tt}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(qw(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 he(e)?e:+At(e)},t.prototype.contain=function(e){return Mo(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Do(this.parse(e),this._extent)},t.prototype.scale=function(e){return Io(e,this._extent)},t.type="time",t}(cr),ei=[["second",iu],["minute",ou],["hour",an],["quarter-day",an*6],["half-day",an*12],["day",tt*1.2],["half-week",tt*3.5],["week",tt*7],["month",tt*31],["quarter",tt*95],["half-year",zc/2],["year",zc]];function jw(r,t,e,a){var n=At(t),i=At(e),o=function(d){return Fc(n,d,a)===Fc(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")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function Jw(r,t){return r/=tt,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Qw(r){var t=30*tt;return r/=t,r>6?6:r>3?3:r>2?2:1}function eb(r){return r/=an,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Wf(r,t){return r/=t?ou:iu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function tb(r){return $d(r,!0)}function rb(r,t,e){var a=new Date(r);switch(oa(t)){case"year":case"month":a[Ip(e)](0);case"day":a[Lp(e)](1);case"hour":a[Pp(e)](0);case"minute":a[Rp(e)](0);case"second":a[Ep(e)](0),a[kp(e)](0)}return a.getTime()}function ab(r,t,e,a){var n=1e4,i=Mp,o=0;function s(M,D,I,L,P,R,O){for(var G=new Date(D),k=D,V=G[L]();k<I&&k<=a[1];)O.push({value:k}),V+=M,G[P](V),k=G.getTime();O.push({value:k,notAdd:!0})}function l(M,D,I){var L=[],P=!D.length;if(!jw(oa(M),a[0],a[1],e)){P&&(D=[{value:rb(new Date(a[0]),M,e)},{value:a[1]}]);for(var R=0;R<D.length-1;R++){var O=D[R].value,G=D[R+1].value;if(O!==G){var k=void 0,V=void 0,$=void 0,q=!1;switch(M){case"year":k=Math.max(1,Math.round(t/tt/365)),V=su(e),$=Ox(e);break;case"half-year":case"quarter":case"month":k=Qw(t),V=sa(e),$=Ip(e);break;case"week":case"half-week":case"day":k=Jw(t),V=yo(e),$=Lp(e),q=!0;break;case"half-day":case"quarter-day":case"hour":k=eb(t),V=gn(e),$=Pp(e);break;case"minute":k=Wf(t,!0),V=mo(e),$=Rp(e);break;case"second":k=Wf(t,!1),V=_o(e),$=Ep(e);break;case"millisecond":k=tb(t),V=xo(e),$=kp(e);break}s(k,O,G,V,$,q,L),M==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-k})}}for(var R=0;R<L.length;R++)I.push(L[R]);return L}}for(var u=[],c=[],f=0,h=0,v=0;v<i.length&&o++<n;++v){var d=oa(i[v]);if(!!Rx(i[v])){l(i[v],u[u.length-1]||[],c);var p=i[v+1]?oa(i[v+1]):null;if(d!==p){if(c.length){h=f,c.sort(function(M,D){return M.value-D.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&&h>_/1.5||(u.push(g),f>_||r===i[v]))break}c=[]}}}for(var x=pe(z(u,function(M){return pe(M,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],S=x.length-1,v=0;v<x.length;++v)for(var A=x[v],T=0;T<A.length;++T)b.push({value:A[T].value,level:S-v});b.sort(function(M,D){return M.value-D.value});for(var C=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&C.push(b[v]);return C}$t.registerClass(uy);const cy=uy;var Hf=$t.prototype,ln=cr.prototype,nb=xe,ib=Math.floor,ob=Math.ceil,ti=Math.pow,je=Math.log,Pu=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new cr,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 z(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=je(e)/je(n),a=je(a)/je(n),ln.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=Hf.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]=je(e[0])/je(a),e[1]=je(e[1])/je(a),Hf.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=v_(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(ob(a[0]/i)*i),xe(ib(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=je(e)/je(this.base),Mo(e,this._extent)},t.prototype.normalize=function(e){return e=je(e)/je(this.base),Do(e,this._extent)},t.prototype.scale=function(e){return e=Io(e,this._extent),ti(this.base,e)},t.type="log",t}($t),fy=Pu.prototype;fy.getMinorTicks=ln.getMinorTicks;fy.getLabel=ln.getLabel;function ri(r,t){return nb(r,Nt(t))}$t.registerClass(Pu);const sb=Pu;var lb=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);X(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(X(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=N(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ca(l[0],1),ca(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=Xs(s)||Xs(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[cb[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=ub[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),ub={min:"_determinedMin",max:"_determinedMax"},cb={min:"_dataMin",max:"_dataMax"};function vy(r,t,e){var a=r.rawExtentInfo;return a||(a=new lb(r,t,e),r.rawExtentInfo=a,a)}function ai(r,t){return t==null?null:Xs(t)?NaN:r.parse(t)}function hy(r,t){var e=r.type,a=vy(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=ay("bar",o),l=!1;if(w(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=ny(s),c=fb(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function fb(r,t,e,a){var n=e.axis.getExtent(),i=n[1]-n[0],o=Xw(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,h=c/f-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function wn(r,t){var e=t,a=hy(r,e),n=a.extent,i=e.get("splitNumber");r instanceof sb&&(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 Ru(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Du({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new cy({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new($t.getClass(t)||cr)}}function vb(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):W(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(t):X(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(Eu(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function Eu(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function hb(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof Du?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},h=s(f,c),v=o.getTextRect(h),d=db(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function db(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 ku(r){var t=r.get("interval");return t==null?"auto":t}function dy(r){return r.type==="category"&&ku(r.getLabelModel())===0}function Ki(r,t){var e={};return w(r.mapDimensionsAll(t),function(a){e[kw(r,a)]=!0}),Pe(e)}function pb(r,t,e){t&&w(Ki(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 Lo=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Uf=[],gb={registerPreprocessor:Hg,registerProcessor:Ug,registerPostInit:sw,registerPostUpdate:lw,registerUpdateLifecycle:Tu,registerAction:Lt,registerCoordinateSystem:uw,registerLayout:cw,registerVisual:Wr,registerTransform:vw,registerLoading:$g,registerMap:fw,registerImpl:F1,PRIORITY:tw,ComponentModel:re,ComponentView:Me,SeriesModel:ot,ChartView:Ge,registerComponentModel:function(r){re.registerClass(r)},registerComponentView:function(r){Me.registerClass(r)},registerSeriesModel:function(r){ot.registerClass(r)},registerChartView:function(r){Ge.registerClass(r)},registerSubTypeDefaulter:function(r,t){re.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){V0(r,t)}};function Ne(r){if(N(r)){w(r,function(t){Ne(t)});return}oe(Uf,r)>=0||(Uf.push(r),X(r)&&(r={install:r}),r.install(gb))}var yb=[];function cs(r,t){for(var e=0;e<r.length;e++)at(r[e],r[e],t)}function $f(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])&&(Bd(t,t,i),Vd(e,e,i))}}function mb(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 py=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}(),Yf=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Zf=function(){function r(t){this.type="linestring",this.points=t}return r}(),gy=function(r){E(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 mb(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 w(o,function(s){s.type==="polygon"?$f(s.exterior,n,i,e):w(s.points,function(l){$f(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(cc(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(cc(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 h=c[f];h.type==="polygon"?(cs(h.exterior,u),w(h.interiors,function(v){cs(v,u)})):w(h.points,function(v){cs(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t}(py),_b=function(r){E(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=Wl(yb),o=e;o&&!o.isGeoSVGGraphicRoot;)Ei(i,o.getLocalTransform(),i),o=o.parent;return Ln(i,i),at(n,n,i),n},t}(py);function xb(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return w(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(!!o)switch(i.type){case"LineString":i.coordinates=yy(s,o,e);break;case"Polygon":fs(s,o,e);break;case"MultiLineString":fs(s,o,e);break;case"MultiPolygon":w(s,function(l,u){return fs(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function fs(r,t,e){for(var a=0;a<r.length;a++)r[a]=yy(r[a],t[a],e)}function yy(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 Sb(r,t){return r=xb(r),z(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 Yf(o[0],o.slice(1)));break;case"MultiPolygon":w(n.coordinates,function(l){l[0]&&i.push(new Yf(l[0],l.slice(1)))});break;case"LineString":i.push(new Zf([n.coordinates]));break;case"MultiLineString":i.push(new Zf(n.coordinates))}var s=new gy(a[t||"name"],i,a.cp);return s.properties=a,s})}var bn=ne();function wb(r){return r.type==="category"?Ab(r):Cb(r)}function bb(r,t){return r.type==="category"?Tb(r,t):{ticks:z(r.scale.getTicks(),function(e){return e.value})}}function Ab(r){var t=r.getLabelModel(),e=my(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function my(r,t){var e=_y(r,"labels"),a=ku(t),n=xy(e,a);if(n)return n;var i,o;return X(a)?i=by(r,a):(o=a==="auto"?Mb(r):a,i=wy(r,o)),Sy(e,a,{labels:i,labelCategoryInterval:o})}function Tb(r,t){var e=_y(r,"ticks"),a=ku(t),n=xy(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),X(a))i=by(r,a,!0);else if(a==="auto"){var s=my(r,r.getLabelModel());o=s.labelCategoryInterval,i=z(s.labels,function(l){return l.tickValue})}else o=a,i=wy(r,o,!0);return Sy(e,a,{ticks:i,tickCategoryInterval:o})}function Cb(r){var t=r.scale.getTicks(),e=Vn(r);return{labels:z(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function _y(r,t){return bn(r)[t]||(bn(r)[t]=[])}function xy(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function Sy(r,t,e){return r.push({key:t,value:e}),e}function Mb(r){var t=bn(r).autoInterval;return t!=null?t:bn(r).autoInterval=r.calculateCategoryInterval()}function Db(r){var t=Ib(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)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=io(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var y=h/c,m=v/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=bn(r.model),b=r.getExtent(),S=x.lastAutoInterval,A=x.lastTickCount;return S!=null&&A!=null&&Math.abs(S-_)<=1&&Math.abs(A-o)<=1&&S>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=S:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}function Ib(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 wy(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=dy(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&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 by(r,t,e){var a=r.scale,n=Vn(r),i=[];return w(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 Xf=[0,1],Lb=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 Hd(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(),Kf(a,n.count())),se(t,Xf,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Kf(a,n.count()));var i=se(t,a,Xf,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=bb(this,e),n=a.ticks,i=z(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Pb(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=z(a,function(i){return z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return wb(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 Db(this)},r}();function Kf(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function Pb(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;w(t,function(v){v.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];h(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=xe(v),d=xe(d),f?v>d:v<d}}const Pt=Lb;var Fa=Math.PI*2,Sr=zd.CMD,Rb=["top","right","bottom","left"];function Eb(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 kb(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 h=a;a=Hn(n),n=Hn(h)}else a=Hn(a),n=Hn(n);a>n&&(n+=Fa);var v=Math.atan2(s,o);if(v<0&&(v+=Fa),v>=a&&v<=n||v+Fa>=a&&v+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 qi(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,c=e-r,f=a-t,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;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 Ay(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 ct=[];function Ob(r,t,e){var a=Ay(t.x,t.y,t.width,t.height,r.x,r.y,ct);return e.set(ct[0],ct[1]),a}function Nb(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,h=r.y,v=0;v<c.length;){var d=c[v++];v===1&&(a=c[v],n=c[v+1],i=a,o=n);var p=u;switch(d){case Sr.M:i=c[v++],o=c[v++],a=i,n=o;break;case Sr.L:p=qi(a,n,c[v],c[v+1],f,h,ct,!0),a=c[v++],n=c[v++];break;case Sr.C:p=G0(a,n,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],f,h,ct),a=c[v++],n=c[v++];break;case Sr.Q:p=z0(a,n,c[v++],c[v++],c[v],c[v+1],f,h,ct),a=c[v++],n=c[v++];break;case Sr.A:var g=c[v++],y=c[v++],m=c[v++],_=c[v++],x=c[v++],b=c[v++];v+=1;var S=!!(1-c[v++]);s=Math.cos(x)*m+g,l=Math.sin(x)*_+y,v<=1&&(i=s,o=l);var A=(f-g)*_/m+g;p=kb(g,y,_,x,x+b,S,A,h,ct),a=Math.cos(x+b)*m+g,n=Math.sin(x+b)*_+y;break;case Sr.R:i=a=c[v++],o=n=c[v++];var T=c[v++],C=c[v++];p=Ay(i,o,T,C,f,h,ct);break;case Sr.Z:p=qi(a,n,i,o,f,h,ct,!0),a=i,n=o;break}p<u&&(u=p,e.set(ct[0],ct[1]))}return u}var ht=new Te,ue=new Te,me=new Te,wt=new Te,xt=new Te;function qf(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||Rb,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&Ln([],c),h=t.get("length2")||0;u&&me.copy(u);for(var v=0;v<o.length;v++){var d=o[v];Eb(d,0,s,ht,wt),Te.scaleAndAdd(ue,ht,wt,h),ue.transform(f);var p=r.getBoundingRect(),g=u?u.distance(ue):r instanceof De?Nb(ue,r.path,me):Ob(ue,p,me);g<l&&(l=g,ue.transform(c),me.transform(c),me.toArray(i[0]),ue.toArray(i[1]),ht.toArray(i[2]))}Ty(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var ji=[],Ve=new Te;function Ty(r,t){if(t<=180&&t>0){t=t/180*Math.PI,ht.fromArray(r[0]),ue.fromArray(r[1]),me.fromArray(r[2]),Te.sub(wt,ht,ue),Te.sub(xt,me,ue);var e=wt.len(),a=xt.len();if(!(e<.001||a<.001)){wt.scale(1/e),xt.scale(1/a);var n=wt.dot(xt),i=Math.cos(t);if(i<n){var o=qi(ue.x,ue.y,me.x,me.y,ht.x,ht.y,ji,!1);Ve.fromArray(ji),Ve.scaleAndAdd(xt,o/Math.tan(Math.PI-t));var s=me.x!==ue.x?(Ve.x-ue.x)/(me.x-ue.x):(Ve.y-ue.y)/(me.y-ue.y);if(isNaN(s))return;s<0?Te.copy(Ve,ue):s>1&&Te.copy(Ve,me),Ve.toArray(r[1])}}}}function Bb(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ht.fromArray(r[0]),ue.fromArray(r[1]),me.fromArray(r[2]),Te.sub(wt,ue,ht),Te.sub(xt,me,ue);var a=wt.len(),n=xt.len();if(!(a<.001||n<.001)){wt.scale(1/a),xt.scale(1/n);var i=wt.dot(t),o=Math.cos(e);if(i<o){var s=qi(ue.x,ue.y,me.x,me.y,ht.x,ht.y,ji,!1);Ve.fromArray(ji);var l=Math.PI/2,u=Math.acos(xt.dot(t)),c=l+u-e;if(c>=l)Te.copy(Ve,me);else{Ve.scaleAndAdd(xt,s/Math.tan(Math.PI/2-c));var f=me.x!==ue.x?(Ve.x-ue.x)/(me.x-ue.x):(Ve.y-ue.y)/(me.y-ue.y);if(isNaN(f))return;f<0?Te.copy(Ve,ue):f>1&&Te.copy(Ve,me)}Ve.toArray(r[1])}}}}function jf(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 Vb(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=fc(a[0],a[1]),i=fc(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=Bo([],a[1],a[0],o/n),l=Bo([],a[1],a[2],o/i),u=Bo([],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 Cy(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<Vi.length;l++){var u=Vi[l],c=t[u],f=u==="normal";if(c){var h=c.get("show"),v=f?s:de(n.states[u]&&n.states[u].ignore,s);if(v||!de(h,o)){var d=f?a:a&&a.states[u];d&&(d.ignore=!0);continue}a||(a=new Dt,r.setTextGuideLine(a),!f&&(s||!o)&&jf(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),jf(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=Vb}}function My(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<it.length;a++){var n=it[a];e[n]=r.getModel([n,t])}return e}function Dy(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 ki(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 Iy(r,t,e,a,n,i){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.rect[t]-C.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var h=r[f],v=h.rect;l=v[t]-s,l<0&&(v[t]-=l,h.label[t]-=l,u=!0);var d=Math.max(-l,0);c+=d,s=v[t]+v[e]}c>0&&i&&b(-c/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&S(-y,.8),m<0&&S(m,.8),_(),x(y,m,1),x(m,y,-1),_(),y<0&&A(-y),m<0&&A(m);function _(){y=p.rect[t]-a,m=n-g.rect[t]-g.rect[e]}function x(T,C,M){if(T<0){var D=Math.min(C,-T);if(D>0){b(D*M,0,o);var I=D+T;I<0&&S(-I*M,1)}else S(-T*M,1)}}function b(T,C,M){T!==0&&(u=!0);for(var D=C;D<M;D++){var I=r[D],L=I.rect;L[t]+=T,I.label[t]+=T}}function S(T,C){for(var M=[],D=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[t]-L[t]-L[e],0);M.push(P),D+=P}if(!!D){var R=Math.min(Math.abs(T)/D,C);if(T>0)for(var I=0;I<o-1;I++){var O=M[I]*R;b(O,0,I+1)}else for(var I=o-1;I>0;I--){var O=M[I-1]*R;b(-O,I,o)}}}function A(T){var C=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D<o-1;D++)if(C>0?b(M,0,D+1):b(-M,o-D-1,o),T-=M,T<=0)return}return u}function zb(r,t,e,a){return Iy(r,"x","width",t,e,a)}function Ly(r,t,e,a){return Iy(r,"y","height",t,e,a)}function Py(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,h=!1,v=0;v<t.length;v++){var d=t[v];if(!!e.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new ki(d.localRect,d.transform)),f||(f=new ki(s,l)),f.intersect(d.obb)){h=!0;break}}}h?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function Gb(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function Fb(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:Gb(a&&a.shape.points)}}var Jf=["align","verticalAlign","width","height","fontSize"],Ze=new aa,vs=ne(),Wb=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"],Hb=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?Ze.setLocalTransform(u):(Ze.x=Ze.y=Ze.rotation=Ze.originX=Ze.originY=0,Ze.scaleX=Ze.scaleY=1);var f=n.__hostTarget,h;if(f){h=f.getBoundingRect().plain();var v=f.getComputedTransform();ge.applyTransform(h,h,v)}var d=h&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:Ze.x,y:Ze.y,scaleX:Ze.scaleX,scaleY:Ze.scaleY,rotation:Ze.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");!(X(n)||Pe(n).length)||t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=j(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(){qf(_,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;X(o.layoutOption)?c=o.layoutOption(Fb(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 h=!1;if(c.x!=null?(s.x=H(c.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=H(c.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),h=!1)}var d=vs(s);d.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Jf.length;p++){var g=Jf[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=Dy(this._labelList),i=pe(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=pe(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});zb(i,0,e),Ly(o,0,a);var s=pe(n,function(l){return l.layoutOption.hideOverlap});Py(s)},r.prototype.processLabelsOverall=function(){var t=this;w(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=vs(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=j(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");Cy(t,My(s),l),qf(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&&!ia(t))){var i=vs(a),o=i.oldLayout,s=j(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 h=t.prevStates;h&&(oe(h,"select")>=0&&a.attr(i.oldLayoutSelect),oe(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),ve(a,u,e,l)}else if(a.attr(u),!wa(a).valueAnimation){var f=de(a.style.opacity,1);a.style.opacity=0,Ce(a,{style:{opacity:f}},e,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};ni(v,u,ii),ni(v,a.states.select,ii)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};ni(d,u,ii),ni(d,a.states.emphasis,ii)}wp(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=Wb(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),ve(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Ce(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const Ub=Hb;var hs=ne();function BR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=hs(e).labelManager;n||(n=hs(e).labelManager=new Ub),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=hs(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var $b=function(r){E(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 Co(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new ee,n=Le("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=Le(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}(ot);const Yb=$b;function Po(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 Ry(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!N(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 Zb=function(r){E(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=Le(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Xb,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(){va(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 h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):ve(h,v,s,a),dn(h)}if(this._updateCommon(e,a,l,n,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ce(h,v,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,h,v,d,p,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=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(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Ut(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var x=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var b=Ao(e.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var S=e.getItemVisual(a,"style"),A=S.fill;if(s instanceof Mt){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(B({},S)):s.useStyle(S),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Ht(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:A,defaultOpacity:S.opacity});function I(R){return D?e.getName(R):Po(e,R)}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 P=Math.max(he(g)?g:1.1,3/this._sizeY);L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P}this.setSymbolScale(1),Tt(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=j(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&hn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();hn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Su(e.getItemVisual(a,"symbolSize"))},t}(ee);function Xb(r,t){this.parent.drift(r,t)}const Ou=Zb;function ds(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 Qf(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function ev(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:Ut(t),cursorStyle:t.get("cursor")}}var Kb=function(){function r(t){this.group=new ee,this._SymbolCtor=t||Ou}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Qf(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=ev(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||a.removeAll(),t.diff(i).add(function(f){var h=c(f);if(ds(t,h,f,e)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),a.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!ds(t,d,f,e)){a.remove(v);return}var p=t.getItemVisual(f,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)a.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):ve(v,y,n)}a.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){a.remove(h)},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=ev(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=Qf(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(ds(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){vo(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 Ey=Kb;function ky(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=qb(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=z(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Vr(t,f[0])&&(h=!0,f[0]=v),Vr(t,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function qb(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:he(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function Oy(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 jb(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 Jb(r,t,e,a,n,i,o,s){for(var l=jb(r,t),u=[],c=[],f=[],h=[],v=[],d=[],p=[],g=ky(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],b=!0,S=void 0,A=void 0;switch(x.cmd){case"=":S=x.idx*2,A=x.idx1*2;var T=y[S],C=y[S+1],M=m[A],D=m[A+1];(isNaN(T)||isNaN(C))&&(T=M,C=D),u.push(T,C),c.push(M,D),f.push(e[S],e[S+1]),h.push(a[A],a[A+1]),p.push(t.getRawIndex(x.idx1));break;case"+":var I=x.idx,L=g.dataDimsForPoint,P=n.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);A=I*2,u.push(P[0],P[1]),c.push(m[A],m[A+1]);var R=Oy(g,n,t,I);f.push(R[0],R[1]),h.push(a[A],a[A+1]),p.push(t.getRawIndex(I));break;case"-":b=!1}b&&(v.push(x),d.push(d.length))}d.sort(function(Fe,Ae){return p[Fe]-p[Ae]});for(var O=u.length,G=Bt(O),k=Bt(O),V=Bt(O),$=Bt(O),q=[],_=0;_<d.length;_++){var ie=d[_],fe=_*2,be=ie*2;G[fe]=u[be],G[fe+1]=u[be+1],k[fe]=c[be],k[fe+1]=c[be+1],V[fe]=f[be],V[fe+1]=f[be+1],$[fe]=h[be],$[fe+1]=h[be+1],q[_]=v[ie]}return{current:G,next:k,stackedOnCurrent:V,stackedOnNext:$,status:q}}var Jt=Math.min,Qt=Math.max;function Er(r,t){return isNaN(r)||isNaN(t)}function ml(r,t,e,a,n,i,o,s,l){for(var u,c,f,h,v,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(Er(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),f=y,h=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){p+=i;continue}if(o>0){for(var b=p+i,S=t[b*2],A=t[b*2+1];S===y&&A===m&&g<a;)g++,b+=i,p+=i,S=t[b*2],A=t[b*2+1],y=t[p*2],m=t[p*2+1],_=y-u,x=m-c;var T=g+1;if(l)for(;Er(S,A)&&T<a;)T++,b+=i,S=t[b*2],A=t[b*2+1];var C=.5,M=0,D=0,I=void 0,L=void 0;if(T>=a||Er(S,A))v=y,d=m;else{M=S-u,D=A-c;var P=y-u,R=S-y,O=m-c,G=A-m,k=void 0,V=void 0;if(s==="x"){k=Math.abs(P),V=Math.abs(R);var $=M>0?1:-1;v=y-$*k*o,d=m,I=y+$*V*o,L=m}else if(s==="y"){k=Math.abs(O),V=Math.abs(G);var q=D>0?1:-1;v=y,d=m-q*k*o,I=y,L=m+q*V*o}else k=Math.sqrt(P*P+O*O),V=Math.sqrt(R*R+G*G),C=V/(V+k),v=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=Jt(I,Qt(S,y)),L=Jt(L,Qt(A,m)),I=Qt(I,Jt(S,y)),L=Qt(L,Jt(A,m)),M=I-y,D=L-m,v=y-M*k/V,d=m-D*k/V,v=Jt(v,Qt(u,y)),d=Jt(d,Qt(c,m)),v=Qt(v,Jt(u,y)),d=Qt(d,Jt(c,m)),M=y-v,D=m-d,I=y+M*V/k,L=m+D*V/k}r.bezierCurveTo(f,h,v,d,y,m),f=I,h=L}else r.lineTo(y,m)}u=y,c=m,p+=i}return g}var Ny=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),Qb=function(r){E(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 Ny},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Er(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Er(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=ml(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=zd.CMD,s,l,u=a==="x",c=[],f=0;f<i.length;){var h=i[f++],v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[f++],l=i[f++];break;case o.L:if(v=i[f++],d=i[f++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(v-s)*_+s;return u?[e,x]:[x,e]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],g=i[f++],y=i[f++],m=i[f++];var b=u?vc(s,v,p,y,e,c):vc(l,d,g,m,e,c);if(b>0)for(var S=0;S<b;S++){var A=c[S];if(A<=1&&A>=0){var x=u?hc(l,d,g,m,A):hc(s,v,p,y,A);return u?[e,x]:[x,e]}}s=y,l=m;break}}},t}(De),eA=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ny),tA=function(r){E(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 eA},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&&Er(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Er(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=ml(e,n,o,s,s,1,a.smooth,l,a.connectNulls);ml(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(De);function By(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 le({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(f.shape.x+=l),f.shape.width=0):(d||(f.shape.y+=u),f.shape.height=0);var p=X(n)?function(g){n(g,f)}:null;Ce(f,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return f}function Vy(r,t,e){var a=r.getArea(),n=xe(a.r0,1),i=xe(a.r,1),o=new pt({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,Ce(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function rA(r,t,e,a,n){if(r){if(r.type==="polar")return Vy(r,t,e);if(r.type==="cartesian2d")return By(r,t,e,a,n)}else return null;return null}function Nu(r,t){return r.type===t}function tv(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function rv(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 av(r,t){var e=rv(r),a=e[0],n=e[1],i=rv(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 nv(r){return he(r)?r:r?.5:0}function aA(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=Bt(a*2),i=0;i<a;i++){var o=Oy(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function er(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 h=(u[i]+c[i])/2,v=[];l[i]=v[i]=h,l[1-i]=u[1-i],v[1-i]=c[1-i],o.push(l[0],l[1]),o.push(v[0],v[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 nA(r,t){var e=[],a=r.length,n,i;function o(c,f,h){var v=c.coord,d=(h-v)/(f.coord-v),p=F0(d,[c.color,f.color]);return{coord:h,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 iA(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=z(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 h=nA(u,n==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&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=h[0].coord-d,g=h[v-1].coord+d,y=g-p;if(y<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/y}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var m=new Ul(0,0,0,0,h,!0);return m[n]=p,m[n+"2"]=g,m}}}function oA(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(n&&sA(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function sA(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(Ou.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function lA(r,t){return isNaN(r)||isNaN(t)}function uA(r){for(var t=r.length/2;t>0&&lA(r[t*2-2],r[t*2-1]);t--);return t-1}function iv(r,t){return[r[t*2],r[t*2+1]]}function cA(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 zy(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<it.length;t++)if(r.get([it[t],"endLabel","show"]))return!0;return!1}function ps(r,t,e,a){if(Nu(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=zy(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),c=By(t,e,a,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return Vy(t,e,a)}function fA(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 vA=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new ee,a=new Ey;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")||[],h=o.type==="polar",v=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=e.get("animation"),_=!c.isEmpty(),x=c.get("origin"),b=ky(o,l,x),S=_&&aA(o,l,b),A=e.get("showSymbol"),T=e.get("connectNulls"),C=A&&!h&&oA(e,l,o),M=this._data;M&&M.eachItemGraphicEl(function(Ae,Yt){Ae.__temp&&(s.remove(Ae),M.setItemGraphicEl(Yt,null))}),A||d.remove(),s.add(y);var D=h?!1:e.get("step"),I;o&&o.getArea&&e.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=iA(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&v.type===o.type&&D===this._step))A&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),D&&(f=er(f,o,D,T),S&&(S=er(S,o,D,T))),p=this._newPolyline(f),_?g=this._newPolygon(f,S):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,Br(L)),y.setClipPath(ps(this,o,!0,e));else{_&&!g?g=this._newPolygon(f,S):g&&!_&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,Br(L));var P=y.getClipPath();if(P){var R=ps(this,o,!1,e);Ce(P,{shape:R.shape},e)}else y.setClipPath(ps(this,o,!0,e));A&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),(!tv(this._stackedOnPoints,S)||!tv(this._points,f))&&(m?this._doUpdateAnimation(l,S,o,n,D,x,T):(D&&(f=er(f,o,D,T),S&&(S=er(S,o,D,T))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:S})))}var O=e.getModel("emphasis"),G=O.get("focus"),k=O.get("blurScope"),V=O.get("disabled");if(p.useStyle(K(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),lr(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var $=p.getState("emphasis").style;$.lineWidth=+p.style.lineWidth+1}j(p).seriesIndex=e.seriesIndex,Tt(p,G,k,V);var q=nv(e.get("smooth")),ie=e.get("smoothMonotone");if(p.setShape({smooth:q,smoothMonotone:ie,connectNulls:T}),g){var fe=l.getCalculationInfo("stackedOnSeries"),be=0;g.useStyle(K(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),fe&&(be=nv(fe.get("smooth"))),g.setShape({smooth:q,stackedOnSmooth:be,smoothMonotone:ie,connectNulls:T}),lr(g,e,"areaStyle"),j(g).seriesIndex=e.seriesIndex,Tt(g,G,k,V)}var Fe=function(Ae){i._changePolyState(Ae)};l.eachItemGraphicEl(function(Ae){Ae&&(Ae.onHoverStateChange=Fe)}),this._polyline.onHoverStateChange=Fe,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=D,this._valueOrigin=x,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,a){j(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=Nr(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 h=e.get("zlevel"),v=e.get("z");u=new Ou(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ge.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Nr(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 Ge.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;js(this._polyline,e),a&&js(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new Qb({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 tA({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");X(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=X(f)?f(null):f;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var x=n,b=a.pointToCoord(g);i?(y=x.startAngle,m=x.endAngle,_=-b[1]/180*Math.PI):(y=x.r0,m=x.r,_=b[0])}else{var S=n;i?(y=S.x,m=S.x+S.width,_=v.x):(y=S.y+S.height,m=S.y,_=v.y)}var A=m===y?0:(_-y)/(m-y);l&&(A=1-A);var T=X(f)?f(d):c*A+h,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(zy(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=uA(l);c>=0&&(Ht(s,Ut(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?Ry(o,v):Po(o,f)},enableTextSetter:!0},fA(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"),h=n.hostModel,v=h.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,b=(y?p:0)*(m?-1:1),S=(y?0:-p)*(m?-1:1),A=y?"x":"y",T=cA(f,x,A),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!v){var I=iv(f,C[0]);u.attr({x:I[0]+b,y:I[1]+S}),o&&(D=h.getRawValue(C[0]))}else{var I=c.getPointOn(x,A);I&&u.attr({x:I[0]+b,y:I[1]+S});var L=h.getRawValue(C[0]),P=h.getRawValue(C[1]);o&&(D=ep(n,d,L,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=iv(f,R);o&&(D=h.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+S})}o&&wa(u).setLabelText(D)}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,h=Jb(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=er(h.current,n,o,l),d=er(h.stackedOnCurrent,n,o,l),p=er(h.next,n,o,l),g=er(h.stackedOnNext,n,o,l)),av(v,p)>3e3||c&&av(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:p}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),ve(u,y,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),ve(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],_=h.status,x=0;x<_.length;x++){var b=_[x].cmd;if(b==="="){var S=e.getItemGraphicEl(_[x].idx1);S&&m.push({el:S,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var A=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,M=m[T].ptIdx*2;C.x=A[M],C.y=A[M+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}(Ge);const hA=vA;function Bu(r,t){return{seriesType:r,plan:mu(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(!!n){var s=z(n.dimensions,function(v){return a.mapDimension(v)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Vr(a,s[0])&&(s[0]=u),Vr(a,s[1])&&(s[1]=u);var c=a.getStore(),f=a.getDimensionIndex(s[0]),h=a.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&Bt(p*l),y=[],m=[],_=v.start,x=0;_<v.end;_++){var b=void 0;if(l===1){var S=c.get(f,_);b=n.dataToPoint(S,null,m)}else y[0]=c.get(f,_),y[1]=c.get(h,_),b=n.dataToPoint(y,null,m);o?(g[x++]=b[0],g[x++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",g)}}}}}}var dA={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]}},pA=function(r){return Math.round(r.length/2)};function Gy(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(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v));var d=void 0;W(i)?d=dA[i]:X(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,d,pA))}}}}}function VR(r){r.registerChartView(hA),r.registerSeriesModel(Yb),r.registerLayout(Bu("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,Gy("line"))}var Fy=function(r){E(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 Co(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}(ot);ot.registerClass(Fy);const Ji=Fy;var gA=function(r){E(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 Co(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 yA=gA;var mA=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}(),_A=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new mA},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,h=a.clockwise,v=Math.PI*2,d=h?f-c<v:c-f<v;d||(c=f-(h?v:-v));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,!h)):e.moveTo(p*s+n,g*s+i),e.arc(n,i,s,c,f,!h),e.arc(y*u+n,m*u+i,l,f-Math.PI*2,f-Math.PI,!h),o!==0&&e.arc(n,i,o,f,c,h)},t}(De);const Qi=_A;function xA(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Zs(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,f=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(h-v)/2:0,_=Math.cos,x=Math.sin,b=c+h*_(p),S=f+h*x(p),A="left",T="top";switch(s){case"startArc":b=c+(v-l)*_(y),S=f+(v-l)*x(y),A="center",T="top";break;case"insideStartArc":b=c+(v+l)*_(y),S=f+(v+l)*x(y),A="center",T="bottom";break;case"startAngle":b=c+d*_(p)+oi(p,l+m,!1),S=f+d*x(p)+si(p,l+m,!1),A="right",T="middle";break;case"insideStartAngle":b=c+d*_(p)+oi(p,-l+m,!1),S=f+d*x(p)+si(p,-l+m,!1),A="left",T="middle";break;case"middle":b=c+d*_(y),S=f+d*x(y),A="center",T="middle";break;case"endArc":b=c+(h+l)*_(y),S=f+(h+l)*x(y),A="center",T="bottom";break;case"insideEndArc":b=c+(h-l)*_(y),S=f+(h-l)*x(y),A="center",T="top";break;case"endAngle":b=c+d*_(g)+oi(g,l+m,!0),S=f+d*x(g)+si(g,l+m,!0),A="left",T="middle";break;case"insideEndAngle":b=c+d*_(g)+oi(g,-l+m,!0),S=f+d*x(g)+si(g,-l+m,!0),A="right",T="middle";break;default:return Zs(a,n,i)}return a=a||{},a.x=b,a.y=S,a.align=A,a.verticalAlign=T,a}}function SA(r,t,e,a){if(he(a)){r.setTextConfig({rotation:a});return}else if(N(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 gs=Math.max,ys=Math.min;function wA(r,t){var e=r.getArea&&r.getArea();if(Nu(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 bA=function(r){E(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){vo(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 h=e.isAnimationEnabled()?e:null,v=AA(e,u);v&&this._enableRealtimeSort(v,s,n);var d=e.get("clip",!0)||v,p=wA(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],b=this._backgroundEls,S=i&&i.isInitSort,A=i&&i.type==="changeAxisOrder";function T(D){var I=li[u.type](s,D),L=PA(u,f,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&L.setShape("r",_),x[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=li[u.type](s,D,I);if(y&&T(D),!(!s.hasValue(D)||!cv[u.type](L))){var P=!1;d&&(P=ov[u.type](p,L));var R=sv[u.type](e,s,D,L,f,h,c.model,!1,g);v&&(R.forceLabelAnimation=!0),fv(R,s,D,I,L,e,f,u.type==="polar"),S?R.attr({shape:L}):v?lv(v,h,R,L,D,f,!1,!1):Ce(R,{shape:L},e,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=li[u.type](s,D,L);if(y){var R=void 0;b.length===0?R=T(I):(R=b[I],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&R.setShape("r",_),x[D]=R);var O=li[u.type](s,D),G=Hy(f,O,u);ve(R,{shape:G},h,D)}var k=l.getItemGraphicEl(I);if(!s.hasValue(D)||!cv[u.type](P)){o.remove(k);return}var V=!1;if(d&&(V=ov[u.type](p,P),V&&o.remove(k)),k?dn(k):k=sv[u.type](e,s,D,P,f,h,c.model,!!k,g),v&&(k.forceLabelAnimation=!0),A){var $=k.getTextContent();if($){var q=wa($);q.prevValue!=null&&(q.prevValue=q.value)}}else fv(k,s,D,L,P,e,f,u.type==="polar");S?k.attr({shape:P}):v?lv(v,h,k,P,D,f,!0,A):ve(k,{shape:P},e,D,null),s.setItemGraphicEl(D,k),k.ignore=V,o.add(k)}).remove(function(D){var I=l.getItemGraphicEl(D);I&&zi(I,e,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ee);C.removeAll();for(var M=0;M<x.length;++M)C.add(x[M]);o.add(C),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),hv(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),hv(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&rA(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:z(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.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(!!this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){zi(i,e,j(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Ge),ov={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=gs(t.x,r.x),s=ys(t.x+t.width,n),l=gs(t.y,r.y),u=ys(t.y+t.height,i),c=s<o,f=u<l;return t.x=c&&o>n?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=ys(t.r,r.r),i=gs(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},sv={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new le({shape:B({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=n?"height":"width";c[f]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?Qi:pt,c=new u({shape:a,z2:1});c.name="item";var f=Wy(n);if(c.calculateTextPosition=xA(f,{isRoundCap:u===Qi}),i){var h=c.shape,v=n?"r":"endAngle",d={};h[v]=n?0:a.startAngle,d[v]=a[v],(s?ve:Ce)(c,{shape:d},i)}return c}};function AA(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function lv(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?ve:Ce)(e,{shape:l},t,n,null);var c=t?r.baseAxis.model:null;(o?ve:Ce)(e,{shape:u},c,n)}function uv(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var TA=["x","y","width","height"],CA=["cx","cy","r","startAngle","endAngle"],cv={cartesian2d:function(r){return!uv(r,TA)},polar:function(r){return!uv(r,CA)}},li={cartesian2d:function(r,t,e){var a=r.getItemLayout(t),n=e?DA(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function MA(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Wy(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function fv(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");s||r.setShape("r",a.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=a.getShallow("cursor");u&&r.attr("cursor",u);var c=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",f=Ut(a);Ht(r,f,{labelFetcher:i,labelDataIndex:e,defaultText:Po(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var h=r.getTextContent();if(s&&h){var v=a.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,SA(r,v==="outside"?c:v,Wy(o),a.get(["label","rotate"]))}Sp(h,f,i.getRawValue(e),function(p){return Ry(t,p)});var d=a.getModel(["emphasis"]);Tt(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),lr(r,a),MA(n)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function DA(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var IA=function(){function r(){}return r}(),vv=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new IA},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<n.length;c+=3)l[i]=u,l[o]=n[c+2],s[i]=n[c+i],s[o]=n[c+o],e.rect(s[0],s[1],l[0],l[1])},t}(De);function hv(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var c=new vv({shape:{points:u},incremental:!!a,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var f=new vv({shape:{points:n.getLayout("largePoints")},incremental:!!a,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(n.getVisual("style")),j(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",dv),f.on("mousemove",dv)),e&&e.push(f)}var dv=xu(function(r){var t=this,e=LA(t,r.offsetX,r.offsetY);j(t).dataIndex=e>=0?e:null},30,!1);function LA(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c<f;c++){var h=c*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function Hy(r,t,e){if(Nu(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function PA(r,t,e){var a=r.type==="polar"?pt:le;return new a({shape:Hy(t,e,r),silent:!0,z2:0})}const RA=bA;function zR(r){r.registerChartView(RA),r.registerSeriesModel(yA),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,te(iy,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oy("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Gy("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var ui=Math.PI*2,pv=Math.PI/180;function Uy(r,t){return $e(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function $y(r,t){var e=Uy(r,t),a=r.get("center"),n=r.get("radius");N(n)||(n=[0,n]),N(a)||(a=[a,a]);var i=H(e.width,t.getWidth()),o=H(e.height,t.getHeight()),s=Math.min(i,o),l=H(a[0],i)+e.x,u=H(a[1],o)+e.y,c=H(n[0],s/2),f=H(n[1],s/2);return{cx:l,cy:u,r0:c,r:f}}function EA(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=Uy(a,e),s=$y(a,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-a.get("startAngle")*pv,v=a.get("minAngle")*pv,d=0;n.each(i,function(M){!isNaN(M)&&d++});var p=n.getSum(i),g=Math.PI/(p||d)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),x=n.getDataExtent(i);x[0]=0;var b=ui,S=0,A=h,T=y?1:-1;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(M,D){var I;if(isNaN(M)){n.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:f,r:m?NaN:c});return}m!=="area"?I=p===0&&_?g:M*g:I=ui/d,I<v?(I=v,b-=v):S+=M;var L=A+T*I;n.setItemLayout(D,{angle:I,startAngle:A,endAngle:L,clockwise:y,cx:l,cy:u,r0:f,r:m?se(M,x,[f,c]):c}),A=L}),b<ui&&d)if(b<=.001){var C=ui/d;n.each(i,function(M,D){if(!isNaN(M)){var I=n.getItemLayout(D);I.angle=C,I.startAngle=h+T*D*C,I.endAngle=h+T*(D+1)*C}})}else g=b/S,A=h,n.each(i,function(M,D){if(!isNaN(M)){var I=n.getItemLayout(D),L=I.angle===v?v:M*g;I.startAngle=A,I.endAngle=A+T*L,A+=T*L}})})}function Yy(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var kA=Math.PI/180;function gv(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function c(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],x=Math.abs(_.label.y-e),b=a+_.len,S=b*b,A=Math.sqrt((1-Math.abs(x*x/y))*S),T=t+(A+_.len2)*n,C=T-_.label.x,M=_.targetTextWidth-C*n;Zy(_,M,!0),_.label.x=T}}function f(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],x=_.label.y>e?y:g,b=Math.abs(_.label.y-e);if(b>=x.maxY){var S=_.label.x-t-_.len2*n,A=a+_.len,T=Math.abs(S)<A?Math.sqrt(b*b/(1-S*S/A/A)):A;x.rB=T,x.maxY=b}x.list.push(_)}c(g),c(y)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}Ly(r,l,l+o)&&f(r)}function OA(r,t,e,a,n,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;ms(r[h])||(v.x<t?(c=Math.min(c,v.x),l.push(r[h])):(f=Math.max(f,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!ms(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?g=c-o-d.bleedMargin:g=o+n-f-d.bleedMargin:v.x<t?g=v.x-o-d.bleedMargin:g=o+n-v.x-d.bleedMargin,d.targetTextWidth=g,Zy(d,g)}}gv(u,t,e,a,1,n,i,o,s,f),gv(l,t,e,a,-1,n,i,o,s,c);for(var h=0;h<r.length;h++){var d=r[h];if(!ms(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,x=v.style.backgroundColor?0:_,b=d.rect.width+x,S=p[1][0]-p[2][0];y?v.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+S),p[1][1]=p[2][1]=v.y}}}function Zy(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,c=i.width+(o?0:l);if(t<c||e){var f=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var h=a.getBoundingRect();a.setStyle("width",Math.ceil(h.width)),a.setStyle("backgroundColor",o)}else{var v=t-l,d=t<c?v:e?v>r.unconstrainedWidth?null:v:null;a.setStyle("width",d)}var p=a.getBoundingRect();i.width=p.width;var g=(a.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function ms(r){return r.position==="center"}function NA(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*kA,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var A in S.states)if(S.states[A].ignore===!1)return!0;return!1}t.each(function(S){var A=t.getItemGraphicEl(S),T=A.shape,C=A.getTextContent(),M=A.getTextGuideLine(),D=t.getItemModel(S),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),O=H(I.get("edgeDistance"),u),G=I.get("bleedMargin"),k=D.getModel("labelLine"),V=k.get("length");V=H(V,u);var $=k.get("length2");if($=H($,u),Math.abs(T.endAngle-T.startAngle)<o){w(C.states,v),C.ignore=!0;return}if(!!d(C)){var q=(T.startAngle+T.endAngle)/2,ie=Math.cos(q),fe=Math.sin(q),be,Fe,Ae,Yt;a=T.cx,n=T.cy;var Zt=L==="inside"||L==="inner";if(L==="center")be=T.cx,Fe=T.cy,Yt="center";else{var Ma=(Zt?(T.r+T.r0)/2*ie:T.r*ie)+a,Da=(Zt?(T.r+T.r0)/2*fe:T.r*fe)+n;if(be=Ma+ie*3,Fe=Da+fe*3,!Zt){var Gn=Ma+ie*(V+l-T.r),Fn=Da+fe*(V+l-T.r),Wn=Gn+(ie<0?-1:1)*$,dr=Fn;R==="edge"?be=ie<0?c+O:c+u-O:be=Wn+(ie<0?-P:P),Fe=dr,Ae=[[Ma,Da],[Gn,Fn],[Wn,dr]]}Yt=Zt?"center":R==="edge"?ie>0?"right":"left":ie>0?"left":"right"}var Xt=Math.PI,Rt=0,Ia=I.get("rotate");if(he(Ia))Rt=Ia*(Xt/180);else if(L==="center")Rt=0;else if(Ia==="radial"||Ia===!0){var S0=ie<0?-q+Xt:-q;Rt=S0}else if(Ia==="tangential"&&L!=="outside"&&L!=="outer"){var Ur=Math.atan2(ie,fe);Ur<0&&(Ur=Xt*2+Ur);var w0=fe>0;w0&&(Ur=Xt+Ur),Rt=Ur-Xt}if(i=!!Rt,C.x=be,C.y=Fe,C.rotation=Rt,C.setStyle({verticalAlign:"middle"}),Zt){C.setStyle({align:Yt});var Oo=C.states.select;Oo&&(Oo.x+=C.x,Oo.y+=C.y)}else{var La=C.getBoundingRect().clone();La.applyTransform(C.getComputedTransform());var sc=(C.style.margin||0)+2.1;La.y-=sc/2,La.height+=sc,e.push({label:C,labelLine:M,position:L,len:V,len2:$,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new Te(ie,fe),linePoints:Ae,textAlign:Yt,labelDistance:P,labelAlignTo:R,edgeDistance:O,bleedMargin:G,rect:La,unconstrainedWidth:La.width,labelStyleWidth:C.style.width})}A.setTextConfig({inside:Zt})}}),!i&&r.get("avoidLabelOverlap")&&OA(e,a,n,l,u,h,c,f);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(w(y.states,v),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var b=g.linePoints;_||!b?(w(m.states,v),m.ignore=!0):(Ty(b,g.minTurnAngle),Bb(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new Te(b[0][0],b[0][1])})}}}function ci(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;N(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(a,function(i){return ca(i,n)})}}var BA=function(r){E(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new ae;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),c=e.getItemLayout(a),f=B(ci(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var h=s.getShallow("animationType");s.ecModel.ssr?(Ce(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):h==="scale"?(o.shape.r=c.r0,Ce(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Ce(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,ve(o,{shape:{endAngle:c.endAngle}},s,a))}else dn(o),ve(o,{shape:f},s,a);o.useStyle(e.getItemVisual(a,"style")),lr(o,l);var v=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=B({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},ci(u.getModel("itemStyle"),c)),B(o.ensureState("select"),{x:p,y:g,shape:ci(l.getModel(["select","itemStyle"]),c)}),B(o.ensureState("blur"),{shape:ci(l.getModel(["blur","itemStyle"]),c)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&B(m.ensureState("select"),{x:p,y:g}),B(_.ensureState("select"),{x:p,y:g}),Tt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;Ht(i,Ut(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var h=e.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Dt,this.setTextGuideLine(v)),Cy(this,My(o),{stroke:u,opacity:W0(s.get(["lineStyle","opacity"]),c,1)})}},t}(pt),VA=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=new pt({shape:$y(e,n)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var d=new BA(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var p=s.getItemGraphicEl(d);p.updateData(o,v,u),p.off("click"),l.add(p),o.setItemGraphicEl(v,p)}).remove(function(v){var d=s.getItemGraphicEl(v);zi(d,e,v)}).execute(),NA(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(Ge);const zA=VA;function Ro(r,t,e){t=N(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=jg(a,t).dimensions,i=new Mu(n,r);return i.initData(a,e),i}var GA=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}();const Xy=GA;var FA=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xy(F(this.getData,this),F(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Ro(this,{coordDimensions:["value"],encodeDefaulter:te(Up,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=[];return a.each(a.mapDimension("value"),function(o){i.push(o)}),n.percent=u_(i,e,a.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){Bi(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ot);const WA=FA;function HA(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(he(o)&&!isNaN(o)&&o<0)})}}}function GR(r){r.registerChartView(zA),r.registerSeriesModel(WA),Cg("pie",r.registerAction),r.registerLayout(te(EA,"pie")),r.registerProcessor(Yy("pie")),r.registerProcessor(HA("pie"))}var UA=function(r){E(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,a){return Co(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(ot);const $A=UA;var Ky=4,YA=function(){function r(){}return r}(),ZA=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new YA},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<Ky,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<n.length;){var h=n[f++],v=n[f++];isNaN(h)||isNaN(v)||c&&!c.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,a=e.points,n=e.size,i=this._ctx,o=this.softClipShape,s;if(!!i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(e>=f&&a>=h&&e<=f+s&&a<=h+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h<n.length;){var v=n[h++],d=n[h++];l=Math.min(v,l),c=Math.max(v,c),u=Math.min(d,u),f=Math.max(d,f)}e=this._rect=new ge(l-o/2,u-s/2,c-l+o,f-u+s)}return e},t}(De),XA=function(){function r(){this.group=new ee}return r.prototype.updateData=function(t,e){this._clear();var a=this._create();a.setShape({points:t.getLayout("points")}),this._setCommon(a,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;e=new Float32Array(e.buffer,i,n)}a.setShape("points",e),a.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,a){var n=this._newAdded[0],i=e.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=t.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,a)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new ZA({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;a=a||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=a.clipShape||null,t.symbolProxy=Le(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Ky;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=j(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const KA=XA;var qA=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Bu("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var a=e.coordinateSystem,n=a&&a.getArea&&a.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new KA:new Ey,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Ge);const jA=qA;var JA=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(re);const QA=JA;var _l=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ie).models[0]},t.type="cartesian2dAxis",t}(re);Ke(_l,Lo);var qy={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},eT=J({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},qy),Vu=J({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},qy),tT=J({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vu),rT=K({logBase:10},Vu);const jy={category:eT,value:Vu,time:tT,log:rT};var aT={value:1,category:1,time:1,log:1};function An(r,t,e,a){w(aT,function(n,i){var o=J(J({},jy[i],!0),a,!0),s=function(l){E(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=yn(this),v=h?Aa(c):{},d=f.getTheme();J(c,d.get(i+"Axis")),J(c,this.getDefaultOption()),c.type=yv(c),h&&ur(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=gl.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",yv)}function yv(r){return r.type||(r.data?"category":"value")}var nT=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),pe(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const iT=nT;var xl=["x","y"];function mv(r){return r.type==="interval"||r.type==="time"}var oT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=xl,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!mv(e)||!mv(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-n[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=Ln([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new ge(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return at(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var n=[];if(this._invTransform)return at(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(a[0],a[1]),o=Math.max(e[0],e[1])-n,s=Math.max(a[0],a[1])-i;return new ge(n,i,o,s)},t}(iT),sT=function(r){E(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Pt);const lT=sT;function Sl(r,t,e){e=e||{};var a=r.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,c=a.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),or(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function _v(r){return r.get("coordinateSystem")==="cartesian2d"}function xv(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ie).models[0];t[a]=i}),t}var _s=Math.log;function Jy(r,t,e){var a=cr.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=hy(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=_s(r.base);u=[_s(u[0])/h,_s(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=a.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(c&&f)d=(g-p)/o;else if(c)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=us(d),g=u[0]+d*o;else if(f)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=us(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=us(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=xe(g-m),p<0&&u[0]>=0?(p=0,g=xe(m)):g>0&&u[1]<=0&&(g=0,p=-xe(m))}var _=(n[0].value-i[0].value)/s,x=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+d*_,g+d*x),a.setInterval.call(r,d),(_||x)&&a.setNiceExtent.call(r,p+d,g-d)}var uT=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=xl,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Pe(o),u=l.length;if(!!u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;yl(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(wn(p,d),yl(p)&&(s=v))}c.length&&(s||(s=c.pop(),wn(s.scale,s.model)),w(c,function(g){Jy(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};w(a.x,function(o){Sv(a,"y",o,i)}),w(a.y,function(o){Sv(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=t.getBoxLayoutParams(),i=!a&&t.get("containLabel"),o=$e(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=hb(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),cT(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",Ie).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Ie).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,oe(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(c,f){w(s.y,function(h,v){var d="x"+f+"y"+v,p=new oT(d);p.master=n,p.model=t,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(c),p.addAxis(h)})});function u(c){return function(f,h){if(!!xs(f,t)){var v=f.get("position");c==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new lT(c,Ru(f),[0,0],f.get("type"),v),p=d.type==="category";d.onBand=p&&f.get("boundaryGap"),d.inverse=f.get("inverse"),f.axis=d,d.model=f,d.grid=i,d.index=h,i._axesList.push(d),s[c][h]=d,l[c]++}}}},r.prototype._updateScale=function(t,e){w(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(_v(n)){var i=xv(n),o=i.xAxisModel,s=i.yAxisModel;if(!xs(o,e)||!xs(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),c=l.getAxis("x"),f=l.getAxis("y");a(u,c),a(u,f)}},this);function a(n,i){w(Ki(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return w(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);oe(e,i)<0&&e.push(i),oe(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){if(!!_v(n)){var i=xv(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=xl,r}();function xs(r,t){return r.getCoordSysModel()===t}function Sv(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)wv(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&wv(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function wv(r){return r&&r.type!=="category"&&r.type!=="time"&&vb(r)}function cT(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}const fT=uT;var ar=Math.PI,kr=function(){function r(t,e){this.group=new ee,this.opt=e,this.axisModel=t,K(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new ee({x:e.position[0],y:e.position[1],rotation:e.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(t){return!!bv[t]},r.prototype.add=function(t){bv[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,a){var n=Ud(e-t),i,o;return Oi(n)?(o=a>0?"top":"bottom",i="center"):Oi(n-ar)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<ar?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),bv={axisLine:function(r,t,e,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0];o&&(at(s,s,o),at(l,l,o));var u=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new ze({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",e.add(c);var f=t.get(["axisLine","symbol"]);if(f!=null){var h=t.get(["axisLine","symbolSize"]);W(f)&&(f=[f,f]),(W(h)||he(h))&&(h=[h,h]);var v=Ao(t.get(["axisLine","symbolOffset"])||0,h),d=h[0],p=h[1];w([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(f[y]!=="none"&&f[y]!=null){var m=Le(f[y],-d/2,-p/2,d,p,u.stroke,!0),_=g.r+g.offset;m.attr({rotation:g.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,a){var n=dT(e,a,t,r),i=gT(e,a,t,r);if(hT(t,i,n),pT(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Dy(z(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Py(o)}},axisName:function(r,t,e,a){var n=or(r.axisName,t.get("name"));if(!!n){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,Tv(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*ar/180);var d;Tv(i)?h=kr.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(h=vT(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=or(r.nameTruncateMaxWidth,g.maxWidth,d),_=new ae({x:f[0],y:f[1],rotation:h.rotation,silent:kr.isLabelSilent(t),style:ye(s,{text:n,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Sa({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var x=kr.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,j(_).eventData=x}a.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function vT(r,t,e,a){var n=Ud(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return Oi(n-ar/2)?(o=l?"bottom":"top",i="center"):Oi(n-ar*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<ar*1.5&&n>ar/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function hT(r,t,e){if(!dy(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],h=e[e.length-2];a===!1?(Je(i),Je(u)):Av(i,o)&&(a?(Je(o),Je(c)):(Je(i),Je(u))),n===!1?(Je(s),Je(f)):Av(l,s)&&(n?(Je(l),Je(h)):(Je(s),Je(f)))}}function Je(r){r&&(r.ignore=!0)}function Av(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var n=Wl([]);return Rn(n,n,-r.rotation),e.applyTransform(Ei([],n,r.getLocalTransform())),a.applyTransform(Ei([],n,t.getLocalTransform())),e.intersect(a)}}function Tv(r){return r==="middle"||r==="center"}function Qy(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(at(o,o,t),at(s,s,t));var c=new ze({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function dT(r,t,e,a){var n=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),u=n.getTicksCoords(),c=Qy(u,t.transform,l,K(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)r.add(c[f]);return c}}function pT(r,t,e,a){var n=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(!!o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=K(s.getLineStyle(),K(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=Qy(o[c],t.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)r.add(f[h])}}function gT(r,t,e,a){var n=e.axis,i=or(a.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(or(a.labelRotate,o.get("rotate"))||0)*ar/180,c=kr.innerTextLayout(a.rotation,u,a.labelDirection),f=e.getCategories&&e.getCategories(!0),h=[],v=kr.isLabelSilent(e),d=e.get("triggerEvent");return w(l,function(p,g){var y=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,x=o;if(f&&f[y]){var b=f[y];Y(b)&&b.textStyle&&(x=new we(b.textStyle,o,e.ecModel))}var S=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),A=n.dataToCoord(y),T=new ae({x:A,y:a.labelOffset+a.labelDirection*s,rotation:c.rotation,silent:v,z2:10+(p.level||0),style:ye(x,{text:m,align:x.getShallow("align",!0)||c.textAlign,verticalAlign:x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||c.textVerticalAlign,fill:X(S)?S(n.type==="category"?_:n.type==="value"?y+"":y,g):S})});if(T.anid="label_"+y,d){var C=kr.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=_,C.tickIndex=g,n.type==="category"&&(C.dataIndex=y),j(T).eventData=C}t.add(T),T.updateTransform(),h.push(T),r.add(T),T.decomposeTransform()}),h}}const fr=kr;function yT(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return mT(e,r,t),e.seriesInvolved&&xT(e,r),e}function mT(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];w(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Tn(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",a);if(w(s.getAxes(),te(p,!1,null)),s.getTooltipAxes&&a&&f.get("show")){var h=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||v)&&w(d.baseAxes,te(p,v?"cross":!0,h)),v&&w(d.otherAxes,te(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!g&&!wl(_))){y==null&&(y=_.get("triggerTooltip")),_=g?_T(m,f,n,t,g,y):_;var b=_.get("snap"),S=Tn(m.model),A=y||b||m.type==="category",T=r.axesInfo[S]={key:S,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,involveSeries:A,snap:b,useHandle:wl(_),seriesModels:[],linkGroup:null};u[S]=T,r.seriesInvolved=r.seriesInvolved||A;var C=ST(i,m);if(C!=null){var M=o[C]||(o[C]={axesInfo:{}});M.axesInfo[S]=T,M.mapper=i[C].mapper,T.linkGroup=M}}}})}function _T(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(h){l[h]=Z(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c!=null?c:!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&K(u,f.textStyle)}}return r.model.getModel("axisPointer",new we(l,e,a))}function xT(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||w(r.coordSysAxesInfo[Tn(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function ST(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(Ss(i[a+"AxisId"],e.id)||Ss(i[a+"AxisIndex"],e.componentIndex)||Ss(i[a+"AxisName"],e.name))return n}}function Ss(r,t){return r==="all"||N(r)&&oe(r,t)>=0||r===t}function wT(r){var t=zu(r);if(!!t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=wl(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function zu(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Tn(r)]}function bT(r){var t=zu(r);return t&&t.axisPointerModel}function wl(r){return!!r.get(["handle","show"])}function Tn(r){return r.type+"||"+r.id}var Cv={},AT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.axisPointerClass&&wT(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(!!i){var o=bT(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){Cv[e]=a},t.getAxisPointerClass=function(e){return e&&Cv[e]},t.type="axis",t}(Me);const zn=AT;var bl=ne();function TT(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(!!u.length){var c=s.length,f=bl(r).splitAreaColors,h=U(),v=0;if(f)for(var d=0;d<u.length;d++){var p=f.get(u[d].tickValue);if(p!=null){v=(p+(c-1)*d)%c;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=N(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,x=void 0,b=void 0,S=void 0;n.isHorizontal()?(_=g,x=l.y,b=m-_,S=l.height,g=_+b):(_=l.x,x=g,b=l.width,S=m-x,g=x+S);var A=u[d-1].tickValue;A!=null&&h.set(A,v),t.add(new le({anid:A!=null?"area_"+A:null,shape:{x:_,y:x,width:b,height:S},style:K({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%c}bl(r).splitAreaColors=h}}}function CT(r){bl(r).splitAreaColors=null}var MT=["axisLine","axisTickLabel","axisName"],DT=["splitArea","splitLine","minorSplitLine"],em=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ee,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Sl(s,e),u=new fr(e,B({handleAutoShown:function(f){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(yl(h[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));w(MT,u.add,u),this._axisGroup.add(u.getGroup()),w(DT,function(f){e.get([f,"show"])&&IT[f](this,this._axisGroup,e,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||fo(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){CT(this)},t.type="cartesianAxis",t}(zn),IT={splitLine:function(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=N(s)?s:[s];for(var l=a.coordinateSystem.getRect(),u=n.isHorizontal(),c=0,f=n.getTicksCoords({tickModel:i}),h=[],v=[],d=o.getLineStyle(),p=0;p<f.length;p++){var g=n.toGlobalCoord(f[p].coord);u?(h[0]=g,h[1]=l.y,v[0]=g,v[1]=l.y+l.height):(h[0]=l.x,h[1]=g,v[0]=l.x+l.width,v[1]=g);var y=c++%s.length,m=f[p].tickValue;t.add(new ze({anid:m!=null?"line_"+f[p].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:K({stroke:s[y]},d),silent:!0}))}}},minorSplitLine:function(r,t,e,a){var n=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(!!u.length)for(var c=[],f=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=n.toGlobalCoord(u[v][d].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p),t.add(new ze({anid:"minor_line_"+u[v][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0}))}},splitArea:function(r,t,e,a){TT(r,t,e,a)}},tm=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(em),LT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=tm.type,e}return t.type="yAxis",t}(em),PT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new le({shape:e.coordinateSystem.getRect(),style:K({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Me),Mv={offset:0};function rm(r){r.registerComponentView(PT),r.registerComponentModel(QA),r.registerCoordinateSystem("cartesian2d",fT),An(r,"x",_l,Mv),An(r,"y",_l,Mv),r.registerComponentView(tm),r.registerComponentView(LT),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function FR(r){Ne(rm),r.registerSeriesModel($A),r.registerChartView(jA),r.registerLayout(Bu("scatter"))}function RT(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(!!n){var i=n.getIndicatorAxes();w(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var c=n.dataToPoint(l,s);a[u][s]=Dv(c)?c:Iv(n)})}),e.each(function(o){var s=H0(a[o],function(l){return Dv(l)})||Iv(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function Dv(r){return!isNaN(r[0])&&!isNaN(r[1])}function Iv(r){return[r.cx,r.cy]}function ET(r){var t=r.polar;if(t){N(t)||(t=[t]);var e=[];w(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],N(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}w(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var kT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=Su(h.getItemVisual(v,"symbolSize")),g=Le(d,-1,-1,2,2),y=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function c(h,v,d,p,g,y){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),ho[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,g)):_.setPosition(v[m]),d.add(_))}}function f(h){return z(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(!!v){var d=new vr,p=new Dt,g={shape:{points:v}};d.shape.points=f(v),p.shape.points=f(v),Ce(d,g,e,h),Ce(p,g,e,h);var y=new ee,m=new ee;y.add(p),y.add(d),y.add(m),c(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};!m.shape.points||(c(p.shape.points,m.shape.points,y,s,h,!1),dn(g),dn(p),ve(p,m,e),ve(g,m,e),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(K(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),lr(p,d,"lineStyle"),lr(g,d,"areaStyle");var x=d.getModel("areaStyle"),b=x.isEmpty()&&x.parentModel.isEmpty();g.ignore=b,w(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),M=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=M&&b}),g.useStyle(K(x.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var S=d.getModel("emphasis"),A=S.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Mt){var C=T.style;T.useStyle(B({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var M=T.ensureState("emphasis");M.style=Z(A);var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(D==null||isNaN(D))&&(D=""),Ht(T,Ut(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),Tt(h,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Ge);const OT=kT;var NT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xy(F(this.getData,this),F(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return Ro(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,c=dg(this,e);return Ct("section",{header:u,sortBlocks:!0,blocks:z(s,function(f){var h=i.get(i.mapDimension(f.dim),e);return Ct("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(z(n.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(ot);const BT=NT;var Wa=jy.value;function fi(r,t){return K({show:t},r)}var VT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),h=this.get("triggerEvent"),v=z(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=K({color:d.color},l));var g=J(Z(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:h},!1);if(W(c)){var y=g.name;g.name=c.replace("{value}",y!=null?y:"")}else X(c)&&(g.name=c(g.name,g));var m=new we(g,null,this.ecModel);return Ke(m,Lo.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:J({lineStyle:{color:"#bbb"}},Wa.axisLine),axisLabel:fi(Wa.axisLabel,!1),axisTick:fi(Wa.axisTick,!1),splitLine:fi(Wa.splitLine,!0),splitArea:fi(Wa.splitArea,!0),indicator:[]},t}(re);const zT=VT;var GT=["axisLine","axisTickLabel","axisName"],FT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes(),i=z(n,function(o){var s=o.model.get("showName")?o.name:"",l=new fr(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});w(i,function(o){w(GT,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),v=u.get("color"),d=N(h)?h:[h],p=N(v)?v:[v],g=[],y=[];function m(R,O,G){var k=G%O.length;return R[k]=R[k]||[],k}if(i==="circle")for(var _=n[0].getTicksCoords(),x=a.cx,b=a.cy,S=0;S<_.length;S++){if(c){var A=m(g,d,S);g[A].push(new Gt({shape:{cx:x,cy:b,r:_[S].coord}}))}if(f&&S<_.length-1){var A=m(y,p,S);y[A].push(new no({shape:{cx:x,cy:b,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var T,C=z(n,function(R,O){var G=R.getTicksCoords();return T=T==null?G.length-1:Math.min(G.length-1,T),z(G,function(k){return a.coordToPoint(k.coord,O)})}),M=[],S=0;S<=T;S++){for(var D=[],I=0;I<n.length;I++)D.push(C[I][S]);if(D[0]&&D.push(D[0].slice()),c){var A=m(g,d,S);g[A].push(new Dt({shape:{points:D}}))}if(f&&M){var A=m(y,p,S-1);y[A].push(new vr({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();w(y,function(R,O){this.group.add(vt(R,{style:K({stroke:"none",fill:p[O%p.length]},P),silent:!0}))},this),w(g,function(R,O){this.group.add(vt(R,{style:K({fill:"none",stroke:d[O%d.length]},L),silent:!0}))},this)},t.type="radar",t}(Me);const WT=FT;var HT=function(r){E(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t}(Pt);const UT=HT;var $T=function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=z(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new UT(o,new cr);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight(),o=Math.min(n,i)/2;this.cx=H(a[0],n),this.cy=H(a[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(W(s)||he(s))&&(s=[0,s]),this.r0=H(s[0],o),this.r=H(s[1],o),w(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;w(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();w(a,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=n.get("splitNumber"),o=new cr;o.setExtent(0,i),o.setInterval(1),w(a,function(s,l){Jy(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r}();const YT=$T;function ZT(r){r.registerCoordinateSystem("radar",YT),r.registerComponentModel(zT),r.registerComponentView(WT),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function WR(r){Ne(ZT),r.registerChartView(OT),r.registerSeriesModel(BT),r.registerLayout(RT),r.registerProcessor(Yy("radar")),r.registerPreprocessor(ET)}var Lv="\0_ec_interaction_mutex";function XT(r,t,e){var a=Gu(r);a[t]=e}function KT(r,t,e){var a=Gu(r),n=a[t];n===e&&(a[t]=null)}function Pv(r,t){return!!Gu(r)[t]}function Gu(r){return r[Lv]||(r[Lv]={})}Lt({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},bt);var qT=function(r){E(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=F(a._mousedownHandler,a),i=F(a._mousemoveHandler,a),o=F(a._mouseupHandler,a),s=F(a._mousewheelHandler,a),l=F(a._pinchHandler,a);return a.enable=function(u,c){this.disable(),this._opt=K(Z(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",n),e.on("mousemove",i),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},a.disable=function(){e.off("mousedown",n),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(dc(e)||e.target&&e.target.draggable)){var a=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,a,n)&&(this._x=a,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Ii("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Pv(this._zr,"globalPan"))){var a=e.offsetX,n=e.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&sr(e.event),am(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){dc(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var a=Ii("zoomOnMouseWheel",e,this._opt),n=Ii("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;ws(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var f=Math.abs(i),h=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);ws(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Pv(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;ws(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(ma);function ws(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(sr(a.event),am(r,t,e,a,n))}function am(r,t,e,a,n){n.isAvailableBehavior=F(Ii,null,e,a),r.trigger(t,n)}function Ii(r,t,e){var a=e[r];return!r||a&&(!W(a)||t.event[a+"Key"])}const nm=qT;function jT(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function JT(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(e-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var QT={axisPointer:1,tooltip:1,brush:1};function im(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!QT.hasOwnProperty(a.mainType)&&n&&n.model!==e}var eC=U(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),tC=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=U(),this._freedGraphics=[],this._mapName=t,this._parsedXML=U0(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=aC(t.named),a=e.regions,n=e.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,a;try{e=t&&$0(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,rt(a!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var n=new ee;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,h=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var v=a.getBoundingRect();u==null&&(u=v.x,f=v.width),c==null&&(c=v.y,h=v.height)}l=this._boundingRect=new ge(u,c,f,h)}if(s){var d=Y0(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new le({shape:l.plain()}));var p=[];return w(e.named,function(g){eC.get(g.svgNodeTagLower)!=null&&(p.push(g),rC(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r}();function rC(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function aC(r){var t=[],e=U();return w(r,function(a){if(a.namedFrom==null){var n=new _b(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var Al=[126,25],Rv="\u5357\u6D77\u8BF8\u5C9B",br=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var wr=0;wr<br.length;wr++)for(var jr=0;jr<br[wr].length;jr++)br[wr][jr][0]/=10.5,br[wr][jr][1]/=-10.5/.75,br[wr][jr][0]+=Al[0],br[wr][jr][1]+=Al[1];function nC(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Rv)return;t.push(new gy(Rv,z(br,function(a){return{type:"polygon",exterior:a}}),Al))}}var iC={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function oC(r,t){if(r==="china"){var e=iC[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var sC=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function lC(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:sC[0]})}var uC="name",cC=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=U(),this._mapName=t,this._specialAreas=a,this._geoJSON=vC(e)}return r.prototype.load=function(t,e){e=e||uC;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:fC(n)})}var i=U(),o=[];return w(a.regions,function(s){var l=s.name;t&&Q(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ge(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?Sb(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return nC(e,n),w(n,function(i){var o=i.name;oC(e,i),lC(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function fC(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function vC(r){return W(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ha=U();const Ft={registerMap:function(r,t,e){if(t.svg){var a=new tC(r,t.svg);Ha.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new cC(r,n,e);Ha.set(r,a)}},getGeoResource:function(r){return Ha.get(r)},getMapForUser:function(r){var t=Ha.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=Ha.get(r);if(!!a)return a.load(t,e)}};var Fu=["rect","circle","line","ellipse","polygon","polyline","path"],hC=U(Fu),dC=U(Fu.concat(["g"])),pC=U(Fu.concat(["g"])),om=ne();function vi(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function Ev(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var gC=function(){function r(t){var e=new ee;this.uid=ba("ec_map_draw"),this._controller=new nm(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new ee),e.add(this._svgGroup=new ee)}return r.prototype.draw=function(t,e,a,n,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),h=f.raw,v=f.roam,d=!u.childAt(0)||i;d?(c.x=v.x,c.y=v.y,c.scaleX=v.scaleX,c.scaleY=v.scaleY,c.dirty()):ve(c,v,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=U(),a=U(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(v,d){return d&&(v=d(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function f(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var y=c(v[g],p);y&&d.push(y)}return d}function h(v){return{shape:{points:f(v)}}}n.removeAll(),w(t.geo.regions,function(v){var d=v.name,p=e.get(d),g=a.get(d)||{},y=g.dataIdx,m=g.regionModel;p||(p=e.set(d,new ee),n.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,a.set(d,{dataIdx:y,regionModel:m}));var _=[],x=[];w(v.geometries,function(A){if(A.type==="polygon"){var T=[A.exterior].concat(A.interiors||[]);u&&(T=zv(T,u)),w(T,function(M){_.push(new vr(h(M)))})}else{var C=A.points;u&&(C=zv(C,u,!0)),w(C,function(M){x.push(new Dt(h(M)))})}});var b=c(v.getCenter(),l&&l.project);function S(A,T){if(!!A.length){var C=new Od({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});p.add(C),kv(t,C,y,m),Ov(t,C,d,m,o,y,b),T&&(Ev(C),w(C.states,Ev))}}S(_),S(x,!0)}),e.each(function(v,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;Nv(t,v,d,y,o,g),Bv(t,v,d,y,o),Vv(t,v,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=U(),i=!1;w(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);if(hC.get(c)!=null&&f instanceof un&&kv(t,f,h,v),f instanceof un&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(pC.get(c)!=null&&Ov(t,f,s,v,l,h,null),Nv(t,f,s,v,l,h),Bv(t,f,s,v,l),dC.get(c)!=null)){var d=Vv(t,f,s,v,l);d==="self"&&(i=!0);var p=n.get(s)||n.set(s,[]);p.push(f)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var a=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Jl(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var a=e.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(t);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=Ft.getGeoResource(t);if(e&&e.type==="geoSVG"){var a=e.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=Ft.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,a){var n=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,jT(o,u.dx,u.dy),a.dispatchAction(B(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,JT(o,u.scale,u.originX,u.originY),a.dispatchAction(B(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return n.containPoint([c,f])&&!im(u,a,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=om(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,a,n){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){!i._mouseDownFlag||(i._mouseDownFlag=!1)}))},r}();function kv(r,t,e,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=vi(n),u=vi(i),c=vi(s),f=vi(o),h=r.data;if(h){var v=h.getItemVisual(e,"style"),d=h.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=Yi(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,Jl(t)}function Ov(r,t,e,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?e:i,h=void 0;(!s||i>=0)&&(h=n);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ht(t,Ut(a),{labelFetcher:h,labelDataIndex:f,defaultText:e},v);var d=t.getTextContent();if(d&&(om(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Nv(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):j(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function Bv(r,t,e,a,n){r.data||Sa({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function Vv(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Tt(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&tx(t,n,e),o}function zv(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),w(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),a}const sm=gC;var yC=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new sm(n);o.add(s.group),s.draw(e,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(e,a,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,a,n){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,h=new Gt({style:{fill:e.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:np+1)});if(!f){var v=e.mainSeries.getData(),d=i.getName(l),p=v.indexOfName(d),g=i.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(p);Ht(h,Ut(g),{labelFetcher:{getFormattedLabel:function(_,x){return e.getFormattedLabel(p,x)}},defaultText:d}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){js(h,_)}}o.add(h)}}})},t.type="map",t}(Ge);const mC=yC;var _C=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var a=Ro(this,{coordDimensions:["value"],encodeDefaulter:te(Up,this)}),n=U(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,!0)}var u=Ft.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return w(u.regions,function(c){var f=c.name;n.get(f)||i.push(f)}),a.appendValues([],i),a},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var a=this.getData();return a.get(a.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var a=this.getData();return a.getItemModel(a.indexOfName(e))},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[c].originalData.get(h,f))||u.push(l[c].name)}return Ct("section",{header:u.join(", "),noHeader:!u.length,blocks:[Ct("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var a=e.icon||"roundRect",n=Le(a,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(ot);const xC=_C;function SC(r,t){var e={};return w(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,c=0;c<u;c++)s=Math.min(s,e[i][c]),l=Math.max(l,e[i][c]),o+=e[i][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function wC(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getHostGeoModel(),n=a?"o"+a.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)}),w(t,function(e,a){for(var n=SC(z(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=i===0&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]})}function bC(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getMapType();if(!(e.getHostGeoModel()||t[a])){var n={};w(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),h=s.getRegion(f);if(!(!h||isNaN(u))){var v=n[f]||0,d=s.dataToPoint(h.getCenter());n[f]=v+1,l.setItemLayout(c,{point:d,offset:v})}})});var i=e.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),t[a]=!0}})}var Gv=at,AC=function(r){E(t,r);function t(e){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new aa,a._rawTransformable=new aa,a.name=e,a}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new ge(e,a,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=new ge(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ge(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,a){!e||(this._center=[H(e[0],a.getWidth()),H(e[1],a.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var a=this.zoomLimit;a&&(a.max!=null&&(e=Math.min(a.max,e)),a.min!=null&&(e=Math.max(a.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=at([],i,e),n=at([],n,e),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),Z0(this.transform||(this.transform=[]),a.transform||En()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Ln(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new aa;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?Gv(n,e,i):X0(n,e)},t.prototype.pointToData=function(e){var a=this.invTransform;return a?Gv([],e,a):[e[0],e[1]]},t.prototype.convertToPixel=function(e,a,n){var i=Fv(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=Fv(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(aa);function Fv(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const lm=AC;var TC={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},um=["lng","lat"],cm=function(r){E(t,r);function t(e,a,n){var i=r.call(this,e)||this;i.dimensions=um,i.type="geo",i._nameCoordMap=U(),i.map=a;var o=n.projection,s=Ft.load(a,n.nameMap,n.nameProperty),l=Ft.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=TC[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var h=0;h<u.length;h++){var v=u[h].getBoundingRect(o);f=f||v.clone(),f.union(v)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:de(n.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ge(e,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(e))return a[n]}},t.prototype.addGeoCoord=function(e,a){this._nameCoordMap.set(e,a)},t.prototype.getGeoCoord=function(e){var a=this._regionsMap.get(e);return this._nameCoordMap.get(e)||a&&a.getCenter()},t.prototype.dataToPoint=function(e,a,n){if(W(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,a,n)}},t.prototype.pointToData=function(e){var a=this.projection;return a&&(e=a.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,a,n){return r.prototype.dataToPoint.call(this,e,a,n)},t.prototype.convertToPixel=function(e,a,n){var i=Wv(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=Wv(a);return i===this?i.pointToData(n):null},t}(lm);Ke(cm,lm);function Wv(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Ie).models[0]||{}).coordinateSystem:null}const Hv=cm;function Uv(r,t){var e=r.get("boundingCoords");if(e!=null){var a=e[0],n=e[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var c=function(S,A,T,C){for(var M=T-S,D=C-A,I=0;I<=100;I++){var L=I/100,P=i.project([S+M*L,A+D*L]);Bd(a,a,P),Vd(n,n,P)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var f=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),d=t.getWidth(),p=t.getHeight(),g=f.width/f.height*this.aspectScale,y=!1,m,_;h&&v&&(m=[H(h[0],d),H(h[1],p)],_=H(v,Math.min(d,p)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var x;if(y)x={},g>1?(x.width=_,x.height=_/g):(x.height=_,x.width=_*g),x.y=m[1]-x.height/2,x.x=m[0]-x.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,x=$e(b,{width:d,height:p})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function CC(r,t){w(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var MC=function(){function r(){this.dimensions=um}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Hv(l+s,l,B({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=Uv,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),w(i,function(o,s){var l=z(o,function(c){return c.get("nameMap")}),u=new Hv(s,s,B({nameMap:K0(l)},n(o[0])));u.zoomLimit=or.apply(null,z(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=Uv,u.resize(o[0],e),w(o,function(c){c.coordinateSystem=u,CC(u,c)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=U(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Ft.load(e,a,n);return w(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},r}(),DC=new MC;const fm=DC;var IC=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=Ft.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),Bi(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=fm.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=ua(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new we(o,e,e.ecModel)),o.selected&&(n[s]=!0)),i},U()),a.selectedMap||(a.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new we(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,a){var n=this.getRegionModel(e),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};if(X(i))return o.status=a,i(o);if(W(i))return i.replace("{a}",e!=null?e:"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var a=this.option,n=a.selectedMode;if(!!n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var a=this.option.selectedMap;a&&(a[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var a=this.option.selectedMap;return!!(a&&a[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(re);const LC=IC;function $v(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function PC(r,t,e,a){var n=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter($v(r,s),a)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var c=(t.originX-r.x)*(o-1),f=(t.originY-r.y)*(o-1);r.x-=c,r.y-=f,r.updateTransform(),r.setCenter($v(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var RC=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,a){this._api=a},t.prototype.render=function(e,a,n,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new sm(n));var o=this._mapDraw;o.draw(e,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,a,n)},t.prototype._handleRegionClick=function(e){var a;na(e.target,function(n){return(a=j(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},t.prototype.updateSelectStatus=function(e,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=j(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Me);const EC=RC;function kC(r,t,e){Ft.registerMap(r,t,e)}function OC(r){r.registerCoordinateSystem("geo",fm),r.registerComponentModel(LC),r.registerComponentView(EC),r.registerImpl("registerMap",kC),r.registerImpl("getMap",function(e){return Ft.getMapForUser(e)});function t(e,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[e](n.name);var u=l.coordinateSystem;w(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];w(o,function(f,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:n.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,a,n){var i=e.componentType||"series";a.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=PC(s,e,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&w(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function HR(r){Ne(OC),r.registerChartView(mC),r.registerSeriesModel(xC),r.registerLayout(bC),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,wC),Cg("map",r.registerAction)}var Cn=w,NC=Y,eo=-1,Wu=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=Z(t);this.type=a,this.mappingMethod=e,this._normalizeData=zC[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(bs(n),BC(n)):e==="category"?n.categories?VC(n):bs(n,!0):(rt(e!=="linear"||n.dataExtent),bs(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return F(this._normalizeData,this)},r.listVisualTypes=function(){return Pe(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){Y(t)?w(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=N(t)?[]:Y(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&Cn(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(N(t))t=t.slice();else if(NC(t)){var e=[];Cn(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||W(l)&&l===t+"")return o;a&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(di(f[1],t,c[1]))return o}else if(c[1]===1/0){if(di(f[0],c[0],t))return o}else if(di(f[0],c[0],t)&&di(f[1],t,c[1]))return o;a&&h(c[0],o),a&&h(c[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function h(v,d){var p=Math.abs(v-t);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:Ua("color"),getColorMapper:function(){var t=this.option;return F(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),Ja.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=Vo(e,t.parsedVisual,n),i?n:Si(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Si(Vo(t,this.option.parsedVisual),"rgba")},category:Ja,piecewise:function(t,e){var a=Cl.call(this,e);return a==null&&(a=Si(Vo(t,this.option.parsedVisual),"rgba")),a},fixed:Ar}},colorHue:hi(function(t,e){return zo(t,e)}),colorSaturation:hi(function(t,e){return zo(t,null,e)}),colorLightness:hi(function(t,e){return zo(t,null,null,e)}),colorAlpha:hi(function(t,e){return q0(t,e)}),decal:{applyVisual:Ua("decal"),_normalizedToVisual:{linear:null,category:Ja,piecewise:null,fixed:null}},opacity:{applyVisual:Ua("opacity"),_normalizedToVisual:Tl([0,1])},liftZ:{applyVisual:Ua("liftZ"),_normalizedToVisual:{linear:Ar,category:Ar,piecewise:Ar,fixed:Ar}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:Yv,category:Ja,piecewise:function(t,e){var a=Cl.call(this,e);return a==null&&(a=Yv.call(this,t)),a},fixed:Ar}},symbolSize:{applyVisual:Ua("symbolSize"),_normalizedToVisual:Tl([0,1])}},r}();function BC(r){var t=r.pieceList;r.hasSpecialVisual=!1,w(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function VC(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Cn(t,function(o,s){e[o]=s}),!N(a)){var n=[];Y(a)?Cn(a,function(o,s){var l=e[s];n[l!=null?l:eo]=o}):n[eo]=a,a=vm(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function bs(r,t){var e=r.visual,a=[];Y(e)?Cn(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),vm(r,a)}function hi(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Tl([0,1])}}function Yv(r){var t=this.option.visual;return t[Math.round(se(r,[0,1],[0,t.length-1],!0))]||{}}function Ua(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Ja(r){var t=this.option.visual;return t[this.option.loop&&r!==eo?r%t.length:r]}function Ar(){return this.option.visual[0]}function Tl(r){return{linear:function(t){return se(t,r,this.option.visual,!0)},category:Ja,piecewise:function(t,e){var a=Cl.call(this,e);return a==null&&(a=se(t,r,this.option.visual,!0)),a},fixed:Ar}}function Cl(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=Wu.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function vm(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=z(t,function(e){var a=Gd(e);return a||[0,0,0,1]})),t}var zC={linear:function(r){return se(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Wu.findPieceIndex(r,t,!0);if(e!=null)return se(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?eo:t},fixed:bt};function di(r,t,e){return r?t<=e:t<e}const Ue=Wu;var GC=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),FC=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new GC},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),c=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,c)},t}(De);const WC=FC;function HC(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=H(e[0],t.getWidth()),s=H(e[1],t.getHeight()),l=H(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function pi(r,t){var e=r==null?"":r+"";return t&&(W(t)?e=t.replace("{value}",e):X(t)&&(e=t(r))),e}var UC=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=HC(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,f=e.getModel("axisLine"),h=f.get("roundCap"),v=h?Qi:pt,d=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),y=[u,c];j0(y,!l),u=y[0],c=y[1];for(var m=c-u,_=u,x=0;d&&x<i.length;x++){var b=Math.min(Math.max(i[x][0],0),1);c=u+m*b;var S=new v({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});S.setStyle({fill:i[x][1]}),S.setStyle(p.getLineStyle(["color","width"])),s.add(S),_=c}var A=function(T){if(T<=0)return i[0][1];var C;for(C=0;C<i.length;C++)if(i[C][0]>=T&&(C===0?0:i[C-1][0])<T)return i[C][1];return i[C-1][1]};this._renderTicks(e,a,n,A,o,u,c,l,g),this._renderTitleAndDetail(e,a,n,A,o),this._renderAnchor(e,o),this._renderPointer(e,a,n,A,o,u,c,l,g)},t.prototype._renderTicks=function(e,a,n,i,o,s,l,u,c){for(var f=this.group,h=o.cx,v=o.cy,d=o.r,p=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),x=e.get("splitNumber"),b=m.get("splitNumber"),S=H(y.get("length"),d),A=H(m.get("length"),d),T=s,C=(l-s)/x,M=C/b,D=y.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),P,R,O=0;O<=x;O++){if(P=Math.cos(T),R=Math.sin(T),y.get("show")){var G=L?L+c:c,k=new ze({shape:{x1:P*(d-G)+h,y1:R*(d-G)+v,x2:P*(d-S-G)+h,y2:R*(d-S-G)+v},style:D,silent:!0});D.stroke==="auto"&&k.setStyle({stroke:i(O/x)}),f.add(k)}if(_.get("show")){var G=_.get("distance")+L,V=pi(xe(O/x*(g-p)+p),_.get("formatter")),$=i(O/x);f.add(new ae({style:ye(_,{text:V,x:P*(d-S-G)+h,y:R*(d-S-G)+v,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:$}),silent:!0}))}if(m.get("show")&&O!==x){var G=m.get("distance");G=G?G+c:c;for(var q=0;q<=b;q++){P=Math.cos(T),R=Math.sin(T);var ie=new ze({shape:{x1:P*(d-G)+h,y1:R*(d-G)+v,x2:P*(d-A-G)+h,y2:R*(d-A-G)+v},silent:!0,style:I});I.stroke==="auto"&&ie.setStyle({stroke:i((O+q/b)/x)}),f.add(ie),T+=M}T-=M}else T+=C}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),x=+e.get("min"),b=+e.get("max"),S=[x,b],A=[s,l];function T(M,D){var I=m.getItemModel(M),L=I.getModel("pointer"),P=H(L.get("width"),o.r),R=H(L.get("length"),o.r),O=e.get(["pointer","icon"]),G=L.get("offsetCenter"),k=H(G[0],o.r),V=H(G[1],o.r),$=L.get("keepAspect"),q;return O?q=Le(O,k-P/2,V-R,P,R,null,$):q=new WC({shape:{angle:-Math.PI/2,width:P,r:R,x:k,y:V}}),q.rotation=-(D+Math.PI/2),q.x=o.cx,q.y=o.cy,q}function C(M,D){var I=g.get("roundCap"),L=I?Qi:pt,P=g.get("overlap"),R=P?g.get("width"):c/m.count(),O=P?o.r-R:o.r-(M+1)*R,G=P?o.r:o.r-M*R,k=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:G}});return P&&(k.z2=b-m.get(_,M)%b),k}(y||p)&&(m.diff(h).add(function(M){var D=m.get(_,M);if(p){var I=T(M,s);Ce(I,{rotation:-((isNaN(+D)?A[0]:se(D,S,A,!0))+Math.PI/2)},e),f.add(I),m.setItemGraphicEl(M,I)}if(y){var L=C(M,s),P=g.get("clip");Ce(L,{shape:{endAngle:se(D,S,A,P)}},e),f.add(L),qs(e.seriesIndex,m.dataType,M,L),d[M]=L}}).update(function(M,D){var I=m.get(_,M);if(p){var L=h.getItemGraphicEl(D),P=L?L.rotation:s,R=T(M,P);R.rotation=P,ve(R,{rotation:-((isNaN(+I)?A[0]:se(I,S,A,!0))+Math.PI/2)},e),f.add(R),m.setItemGraphicEl(M,R)}if(y){var O=v[D],G=O?O.shape.endAngle:s,k=C(M,G),V=g.get("clip");ve(k,{shape:{endAngle:se(I,S,A,V)}},e),f.add(k),qs(e.seriesIndex,m.dataType,M,k),d[M]=k}}).execute(),m.each(function(M){var D=m.getItemModel(M),I=D.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),R=I.get("disabled");if(p){var O=m.getItemGraphicEl(M),G=m.getItemVisual(M,"style"),k=G.fill;if(O instanceof Mt){var V=O.style;O.useStyle(B({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},G))}else O.useStyle(G),O.type!=="pointer"&&O.setColor(k);O.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",i(se(m.get(_,M),S,[0,1],!0))),O.z2EmphasisLift=0,lr(O,D),Tt(O,L,P,R)}if(y){var $=d[M];$.useStyle(m.getItemVisual(M,"style")),$.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),$.z2EmphasisLift=0,lr($,D),Tt($,L,P,R)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=Le(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),c=+e.get("min"),f=+e.get("max"),h=new ee,v=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new ae({silent:!0}),d[y]=new ae({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),x=new ee,b=i(se(_,[c,f],[0,1],!0)),S=m.getModel("title");if(S.get("show")){var A=S.get("offsetCenter"),T=o.cx+H(A[0],o.r),C=o.cy+H(A[1],o.r),M=v[y];M.attr({z2:g?0:2,style:ye(S,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),x.add(M)}var D=m.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+H(I[0],o.r),P=o.cy+H(I[1],o.r),R=H(D.get("width"),o.r),O=H(D.get("height"),o.r),G=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,M=d[y],k=D.get("formatter");M.attr({z2:g?0:2,style:ye(D,{x:L,y:P,text:pi(_,k),width:isNaN(R)?null:R,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:G})}),Sp(M,{normal:D},_,function($){return pi($,k)}),p&&wp(M,y,l,e,{getFormattedLabel:function($,q,ie,fe,be,Fe){return pi(Fe?Fe.interpolatedValue:_,k)}}),x.add(M)}h.add(x)}),this.group.add(h),this._titleEls=v,this._detailEls=d},t.type="gauge",t}(Ge);const $C=UC;var YC=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Ro(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ot);const ZC=YC;function UR(r){r.registerChartView($C),r.registerSeriesModel(ZC)}function XC(r){KC(r),qC(r)}function KC(r){if(!r.parallel){var t=!1;w(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function qC(r){var t=ce(r.parallelAxis);w(t,function(e){if(!!Y(e)){var a=e.parallelIndex||0,n=ce(r.parallel)[a];n&&n.parallelAxisDefault&&J(e,n.parallelAxisDefault,!1)}})}var jC=5,JC=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this._model=e,this._api=n,this._handlers||(this._handlers={},w(QC,function(i,o){n.getZr().on(o,this._handlers[o]=F(i,this))},this)),Bn(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){_n(this,"_throttledDispatchExpand"),w(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(B({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Me),QC={mousedown:function(r){As(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(As(this,"click")&&t){var e=[r.offsetX,r.offsetY],a=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(a>jC)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!As(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function As(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const eM=JC;var tM=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&J(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){w(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=pe(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);w(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(re);const rM=tM;var aM=function(r){E(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Pt);const nM=aM;function Hr(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Jr(n,[0,o])),i!=null&&(i=Math.max(i,n!=null?n:0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Jr(s,[0,o]),n=i=Jr(s,[n,i]),a=0}t[0]=Jr(t[0],e),t[1]=Jr(t[1],e);var l=Ts(t,a);t[a]+=r;var u=n||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[a]=Jr(t[a],c);var f;return f=Ts(t,a),n!=null&&(f.sign!==l.sign||f.span<n)&&(t[1-a]=t[a]+l.sign*n),f=Ts(t,a),i!=null&&f.span>i&&(t[1-a]=t[a]+f.sign*i),t}function Ts(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Jr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Cs=w,hm=Math.min,dm=Math.max,Zv=Math.floor,iM=Math.ceil,Xv=xe,oM=Math.PI,sM=function(){function r(t,e,a){this.type="parallel",this._axesMap=U(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;Cs(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),c=this._axesMap.set(o,new nM(o,Ru(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(!!t.contains(a,e)){var n=a.getData();Cs(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),wn(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=$e(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,c=gi(t.get("axisExpandWidth"),l),f=gi(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=gi(v[1]-v[0],l),v[1]=v[0]+d;else{d=gi(c*(f-1),l);var p=t.get("axisExpandCenter")||Zv(u/2);v=[c*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-f);g<3&&(g=0);var y=[Zv(Xv(v[0]/c,1))+1,iM(Xv(v[1]/c,1))-1],m=g/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Cs(a,function(o,s){var l=(n.axisExpandable?uM:lM)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:oM/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],h=c[i],v=En();Rn(v,v,h),cn(v,v,f),this._axesLayout[o]={position:f,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];w(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=a;c<n;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var h=t.getValues(s,c),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(h[v]);if(p==="inactive"){f="inactive";break}}}e(f,c)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,a=!1,n=0,i=t.length;n<i;n++)e.get(t[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(t,e){var a=this._axesLayout[e];return dt([t,0],a.transform)},r.prototype.getAxisLayout=function(t){return Z(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),a=e.pixelDimIndex,n=e.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var s=t[a]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",c=e.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),h=f[0]!=null;if(c)h&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):h&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=e.axisExpandWidth/c,l?Hr(l,n,o,"all"):u="none";else{var v=n[1]-n[0],d=o[1]*s/v;n=[dm(0,d-v/2)],n[1]=hm(o[1],n[0]+v),n[0]=n[1]-v}return{axisExpandWindow:n,behavior:u}},r}();function gi(r,t){return hm(dm(r,t[0]),t[1])}function lM(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function uM(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*a-t.axisExpandWindow[0],l=a,u=!0):(s=e-(n-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const cM=sM;function fM(r,t){var e=[];return r.eachComponent("parallel",function(a,n){var i=new cM(a,r,t);i.name="parallel_"+n,i.resize(a,t),a.coordinateSystem=i,i.model=a,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",Ie).models[0];a.coordinateSystem=n.coordinateSystem}}),e}var vM={create:fM};const hM=vM;var pm=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return fa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=Z(e);if(a)for(var n=a.length-1;n>=0;n--)Ot(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=e&&e<=a[i][1])return"active";return"inactive"},t}(re);Ke(pm,Lo);const Kv=pm;var zr=!0,Mn=Math.min,pa=Math.max,dM=Math.pow,pM=1e4,gM=6,yM=6,qv="globalPan",mM={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},_M={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},jv={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},xM=0,SM=function(r){E(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new ee,a._uid="brushController_"+xM++,w(DM,function(n,i){this._handlers[i]=F(n,this)},a),a}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var a=this._zr;this._enableGlobalPan||XT(a,qv,this._uid),w(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=J(Z(jv),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;KT(e,qv,this._uid),w(this._handlers,function(a,n){e.off(n,a)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var a=this._panels={};w(e,function(n){a[n.panelId]=Z(n)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=a.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=z(e,function(h){return J(Z(jv),h,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Sn(n,e,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:a+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=e[h];if(v!=null&&n[v]===s)i[h]=n[v];else{var p=i[h]=v!=null?(n[v].__brushOption=d,n[v]):ym(o,gm(o,d));Hu(o,p)}}function f(h){n[h]!==s&&o.group.remove(n[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Ml(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ma);function gm(r,t){var e=Eo[t.brushType].createCover(r,t);return e.__brushOption=t,_m(e,t),r.group.add(e),e}function ym(r,t){var e=Uu(t);return e.endCreating&&(e.endCreating(r,t),_m(t,t.__brushOption)),t}function mm(r,t){var e=t.__brushOption;Uu(t).updateCoverShape(r,t,e.range,e)}function _m(r,t){var e=t.z;e==null&&(e=pM),r.traverse(function(a){a.z=e,a.z2=e})}function Hu(r,t){Uu(t).updateCommon(r,t),mm(r,t)}function Uu(r){return Eo[r.__brushOption.brushType]}function $u(r,t,e){var a=r._panels;if(!a)return zr;var n,i=r._transform;return w(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function xm(r,t){var e=r._panels;if(!e)return zr;var a=t.__brushOption.panelId;return a!=null?e[a]:zr}function Ml(r){var t=r._covers,e=t.length;return w(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function Gr(r,t){var e=z(r._covers,function(a){var n=a.__brushOption,i=Z(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function wM(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],a=t[0],n=e[0]-a[0],i=e[1]-a[1],o=dM(n*n+i*i,.5);return o>gM}function Sm(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function wm(r,t,e,a){var n=new ee;return n.add(new le({name:"main",style:Yu(e),silent:!0,draggable:!0,cursor:"move",drift:te(Jv,r,t,n,["n","s","w","e"]),ondragend:te(Gr,t,{isEnd:!0})})),w(a,function(i){n.add(new le({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:te(Jv,r,t,n,i),ondragend:te(Gr,t,{isEnd:!0})}))}),n}function bm(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=pa(n,yM),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,c=e[0][1],f=e[1][1],h=c-i+n/2,v=f-i+n/2,d=c-o,p=f-s,g=d+n,y=p+n;kt(r,t,"main",o,s,d,p),a.transformable&&(kt(r,t,"w",l,u,i,y),kt(r,t,"e",h,u,i,y),kt(r,t,"n",l,u,g,i),kt(r,t,"s",l,v,g,i),kt(r,t,"nw",l,u,i,i),kt(r,t,"ne",h,u,i,i),kt(r,t,"sw",l,v,i,i),kt(r,t,"se",h,v,i,i))}function Dl(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(Yu(e)),n.attr({silent:!a,cursor:a?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Il(r,i[0]):AM(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?_M[s]+"-resize":null})})}function kt(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(CM(Zu(r,t,[[a,n],[a+i,n+o]])))}function Yu(r){return K({strokeNoScale:!0},r.brushStyle)}function Am(r,t,e,a){var n=[Mn(r,e),Mn(t,a)],i=[pa(r,e),pa(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function bM(r){return Pr(r.group)}function Il(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=co(e[t],bM(r));return a[n]}function AM(r,t){var e=[Il(r,t[0]),Il(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Jv(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=Tm(t,n,i);w(a,function(u){var c=mM[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(Am(s[0][0],s[1][0],s[0][1],s[1][1])),Hu(t,e),Gr(t,{isEnd:!1})}function TM(r,t,e,a){var n=t.__brushOption.range,i=Tm(r,e,a);w(n,function(o){o[0]+=i[0],o[1]+=i[1]}),Hu(r,t),Gr(r,{isEnd:!1})}function Tm(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Zu(r,t,e){var a=xm(r,t);return a&&a!==zr?a.clipPath(e,r._transform):Z(e)}function CM(r){var t=Mn(r[0][0],r[1][0]),e=Mn(r[0][1],r[1][1]),a=pa(r[0][0],r[1][0]),n=pa(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function MM(r,t,e){if(!(!r._brushType||IM(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=$u(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===zr||s.panelId===i.panelId)&&Eo[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function Ll(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Pl(r,t,e){return r.childOfName("main").contain(t,e)}function Cm(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),wM(r)||n){if(i&&!n){o.brushMode==="single"&&Ml(r);var l=Z(o);l.brushType=Qv(l.brushType,i),l.panelId=i===zr?null:i.panelId,n=r._creatingCover=gm(r,l),r._covers.push(n)}if(n){var u=Eo[Qv(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(Zu(r,n,r._track)),a&&(ym(r,n),u.updateCommon(r,n)),mm(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&$u(r,t,e)&&Ml(r)&&(s={isEnd:a,removeOnClick:!0});return s}function Qv(r,t){return r==="auto"?t.defaultBrushType:r}var DM={mousedown:function(r){if(this._dragging)eh(this,r);else if(!r.target||!r.target.draggable){Ll(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=$u(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,a=this.group.transformCoordToLocal(t,e);if(MM(this,r,a),this._dragging){Ll(r);var n=Cm(this,r,a,!1);n&&Gr(this,n)}},mouseup:function(r){eh(this,r)}};function eh(r,t){if(r._dragging){Ll(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=Cm(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Gr(r,i)}}function IM(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var Eo={lineX:th(0),lineY:th(1),rect:{createCover:function(r,t){function e(a){return a}return wm({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Sm(r);return Am(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){bm(r,t,e,a)},updateCommon:Dl,contain:Pl},polygon:{createCover:function(r,t){var e=new ee;return e.add(new Dt({name:"main",style:Yu(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new vr({name:"main",draggable:!0,drift:te(TM,r,t),ondragend:te(Gr,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:Zu(r,t,e)})},updateCommon:Dl,contain:Pl}};function th(r){return{createCover:function(t,e){return wm({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Sm(t),a=Mn(e[0][r],e[1][r]),n=pa(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=xm(t,e);if(o!==zr&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),bm(t,e,l,n)},updateCommon:Dl,contain:Pl}}const Mm=SM;function Dm(r){return r=Xu(r),function(t){return mp(t,r)}}function Im(r,t){return r=Xu(r),function(e){var a=t!=null?t:e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function Lm(r,t,e){var a=Xu(r);return function(n,i){return a.contain(i[0],i[1])&&!im(n,t,e)}}function Xu(r){return ge.create(r)}var LM=["axisLine","axisTickLabel","axisName"],PM=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new Mm(a.getZr())).on("brush",F(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!RM(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ee,this.group.add(this._axisGroup),!!e.get("show")){var s=kM(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,f=e.axis.dim,h=l.getAxisLayout(f),v=B({strokeContainThreshold:c},h),d=new fr(e,v);w(LM,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,e,s,c,n),fo(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=ge.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Dm(f),isTargetByCursor:Lm(f,s,i),getLinearBrushOtherExtent:Im(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(EM(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=z(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Me);function RM(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function EM(r){var t=r.axis;return z(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function kM(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const OM=PM;var NM={type:"axisAreaSelect",event:"axisAreaSelected"};function BM(r){r.registerAction(NM,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var VM={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function $R(r){r.registerComponentView(eM),r.registerComponentModel(rM),r.registerCoordinateSystem("parallel",hM),r.registerPreprocessor(XC),r.registerComponentModel(Kv),r.registerComponentView(OM),An(r,"parallel",Kv,VM),BM(r)}var zM=["itemStyle","borderWidth"],rh=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ms=new Gt,GM=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:rh[+c],categoryDim:rh[1-+c]};return o.diff(s).add(function(v){if(!!o.hasValue(v)){var d=nh(o,v),p=ah(o,v,d,h),g=ih(o,h,p);o.setItemGraphicEl(v,g),i.add(g),sh(g,h,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){i.remove(p);return}var g=nh(o,v),y=ah(o,v,g,h),m=Nm(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(v,null),p=null),p?ZM(p,h,y):p=ih(o,h,y,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),sh(p,h,y)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&oh(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){oh(i,j(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Ge);function ah(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),h={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};FM(e,i,n,a,h),WM(r,t,n,i,o,h.boundingLength,h.pxSign,c,a,h),HM(e,h.symbolScale,u,a,h);var v=h.symbolSize,d=Ao(e.get("symbolOffset"),v);return UM(e,v,n,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,a,h),h}function FM(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(N(o)){var f=[Ds(s,o[0])-l,Ds(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=Ds(s,o)-l:t?c=a.coordSysExtent[i.index][u]-l:c=e[i.wh];n.boundingLength=c,t&&(n.repeatCutLength=e[i.wh]),n.pxSign=c>0?1:-1}function Ds(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function WM(r,t,e,a,n,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(e[f.wh]),v=r.getItemVisual(t,"symbolSize"),d;N(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=H(d[f.index],h),d[c.index]=H(d[c.index],a?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function HM(r,t,e,a,n){var i=r.get(zM)||0;i&&(Ms.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Ms.updateTransform(),i/=Ms.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function UM(r,t,e,a,n,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(a){var y=Math.abs(l),m=or(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var x=H(m,t[v.index]),b=Math.max(p+x*2,0),S=_?0:x*2,A=Yd(a),T=A?a:lh((y+S)/b),C=y-T*p;x=C/2/(_?T:Math.max(T-1,1)),b=p+x*2,S=_?0:x*2,!A&&a!=="fixed"&&(T=u?lh((Math.abs(u)+S)/b):0),g=T*b-S,f.repeatTimes=T,f.symbolMargin=x}var M=d*(g/2),D=f.pathPosition=[];D[h.index]=e[h.wh]/2,D[v.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var I=f.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=f.barRectShape=B({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(D[v.index]+M)),L[h.wh]=e[h.wh];var P=f.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=c.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Pm(r){var t=r.symbolPatternSize,e=Le(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Rm(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+e.symbolMargin*2;for(Ku(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?la(p,null,d(c),e,a):la(p,null,{scaleX:0,scaleY:0},e,a,function(){n.remove(p)}),c++});c<u;c++){var h=Pm(e);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,n.add(h);var v=d(c);la(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},e,a)}function d(p){var g=s.slice(),y=e.pxSign,m=p;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=f*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Em(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?la(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=Pm(e),n.add(i),la(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function km(r,t,e){var a=B({},t.barRectShape),n=r.__pictorialBarRect;n?la(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new le({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Om(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=B({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)ve(n,{shape:i},s,l);else{i[o.wh]=0,n=new le({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],ho[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function nh(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=$M,e.isAnimationEnabled=YM,e}function $M(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function YM(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function ih(r,t,e,a){var n=new ee,i=new ee;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Rm(n,t,e):Em(n,t,e),km(n,e,a),Om(n,t,e,a),n.__pictorialShapeStr=Nm(r,e),n.__pictorialSymbolMeta=e,n}function ZM(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;ve(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Rm(r,t,e,!0):Em(r,t,e,!0),km(r,e,!0),Om(r,t,e,!0)}function oh(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];Ku(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),w(i,function(o){hn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Nm(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Ku(r,t,e){w(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function la(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&ho[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function sh(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");Ku(r,function(p){if(p instanceof Mt){var g=p.style;p.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,h&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;Ht(d,Ut(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Po(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Tt(r,c,f,i.get("disabled"))}function lh(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const XM=GM;var KM=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=hr(Ji.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Ji);const qM=KM;function YR(r){r.registerChartView(XM),r.registerSeriesModel(qM),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,te(iy,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oy("pictorialBar"))}function jM(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||Q(r,"text")))}function JM(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},Q(a,"text")&&(o.text=a.text),Q(a,"rich")&&(o.rich=a.rich),Q(a,"textFill")&&(o.fill=a.textFill),Q(a,"textStroke")&&(o.stroke=a.textStroke),Q(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Q(a,"fontSize")&&(o.fontSize=a.fontSize),Q(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Q(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Q(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Q(a,"textPosition")&&(n.position=a.textPosition),Q(a,"textOffset")&&(n.offset=a.textOffset),Q(a,"textRotation")&&(n.rotation=a.textRotation),Q(a,"textDistance")&&(n.distance=a.textDistance)}return uh(o,r),w(o.rich,function(l){uh(l,l)}),{textConfig:n,textContent:i}}function uh(r,t){!t||(t.font=t.textFont||t.font,Q(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),Q(t,"textAlign")&&(r.align=t.textAlign),Q(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),Q(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),Q(t,"textWidth")&&(r.width=t.textWidth),Q(t,"textHeight")&&(r.height=t.textHeight),Q(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),Q(t,"textPadding")&&(r.padding=t.textPadding),Q(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),Q(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),Q(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),Q(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),Q(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),Q(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),Q(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}var Bm={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ch=Pe(Bm);ua(fn,function(r,t){return r[t]=1,r},{});fn.join(", ");var to=["","style","shape","extra"],ga=ne();function qu(r,t,e,a,n){var i=r+"Animation",o=xa(r,a,n)||{},s=ga(t).userDuring;return o.duration>0&&(o.during=s?F(nD,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,e[i]),o}function Is(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=ga(r),u=t.style;l.userDuring=t.during;var c={},f={};if(oD(r,t,f),vh("shape",t,f),vh("extra",t,f),!i&&s&&(iD(r,t,c),fh("shape",r,t,c),fh("extra",r,t,c),sD(r,t,u,c)),f.style=u,eD(r,f,o),rD(r,t),s)if(i){var h={};w(to,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),B(d?h[d]:h,p.enterFrom))});var v=qu("enter",r,t,e,n);v.duration>0&&r.animateFrom(h,v)}else tD(r,t,n||0,e,c);Vm(r,t),u?r.dirty():r.markRedraw()}function Vm(r,t){for(var e=ga(r).leaveToProps,a=0;a<to.length;a++){var n=to[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=ga(r).leaveToProps={}),n&&(e[n]=e[n]||{}),B(n?e[n]:e,i.leaveTo))}}function QM(r,t,e,a){if(r){var n=r.parent,i=ga(r).leaveToProps;if(i){var o=qu("update",r,t,e,0);o.done=function(){n.remove(r),a&&a()},r.animateTo(i,o)}else n.remove(r),a&&a()}}function Or(r){return r==="all"}function eD(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function tD(r,t,e,a,n){if(n){var i=qu("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function rD(r,t){Q(t,"silent")&&(r.silent=t.silent),Q(t,"ignore")&&(r.ignore=t.ignore),r instanceof un&&Q(t,"invisible")&&(r.invisible=t.invisible),r instanceof De&&Q(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var mt={},aD={setTransform:function(r,t){return mt.el[r]=t,this},getTransform:function(r){return mt.el[r]},setShape:function(r,t){var e=mt.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=mt.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=mt.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=mt.el.style;if(t)return t[r]},setExtra:function(r,t){var e=mt.el.extra||(mt.el.extra={});return e[r]=t,this},getExtra:function(r){var t=mt.el.extra;if(t)return t[r]}};function nD(){var r=this,t=r.el;if(!!t){var e=ga(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}mt.el=t,a(aD)}}function fh(r,t,e,a){var n=e[r];if(!!n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),Or(l))B(o,i);else for(var u=ce(l),c=0;c<u.length;c++){var f=u[c],h=i[f];o[f]=h}else if(Or(s)||oe(s,r)>=0){!o&&(o=a[r]={});for(var v=Pe(i),c=0;c<v.length;c++){var f=v[c],h=i[f];lD(n[f],h)&&(o[f]=h)}}}}}function vh(r,t,e){var a=t[r];if(!!a)for(var n=e[r]={},i=Pe(a),o=0;o<i.length;o++){var s=i[o];n[s]=J0(a[s])}}function iD(r,t,e){for(var a=t.transition,n=Or(a)?fn:ce(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function oD(r,t,e){for(var a=0;a<ch.length;a++){var n=ch[a],i=Bm[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<fn.length;a++){var s=fn[a];t[s]!=null&&(e[s]=t[s])}}function sD(r,t,e,a){if(!!e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!Or(o)){var l=ce(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var c=l[u],f=n[c];i[c]=f}}else if(r.getAnimationStyleProps&&(Or(s)||Or(o)||oe(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=a.style={});for(var d=Pe(e),u=0;u<d.length;u++){var c=d[u];if(v[c]){var f=n[c];i[c]=f}}}}}}}function lD(r,t){return In(r)?r!==t:r!=null&&isFinite(r)}var zm=ne(),uD=["percent","easing","shape","style","extra"];function cD(r){r.stopAnimation("keyframe"),r.attr(zm(r))}function Rl(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(N(t)){w(t,function(s){Rl(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=xa("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=zm(r);w(to,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,c){return u.percent-c.percent}),w(a,function(u){var c=r.animators,f=s?u[s]:u;if(!!f){var h=Pe(f);if(s||(h=pe(h,function(p){return oe(uD,p)<0})),!!h.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<c.length;v++)c[v]!==l&&c[v].targetName===l.targetName&&c[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;w(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,f,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var Cr=ne(),hh=Z,Ls=F,fD=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new ee,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var h=te(dh,e,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}gh(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=zu(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=Cr(t).pointerEl=new ho[i.type](hh(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Cr(t).labelEl=new ae(hh(e.label));t.add(i),ph(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Cr(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=Cr(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),ph(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=On(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){sr(u.event)},onmousedown:Ls(this._onHandleDragMove,this,0,0),drift:Ls(this._onHandleDragMove,this),ondragend:Ls(this._onHandleDragEnd,this)}),a.add(n)),gh(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");N(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Bn(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){dh(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Ps(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(!!a){this._dragging=!0;var n=this.updateHandleTransform(Ps(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Ps(n)),Cr(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),_n(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function dh(r,t,e,a){Gm(Cr(e).lastProp,a)||(Cr(e).lastProp=a,t?ve(e,a,r):(e.stopAnimation(),e.attr(a)))}function Gm(r,t){if(Y(r)&&Y(t)){var e=!0;return w(t,function(a,n){e=e&&Gm(r[n],a)}),!!e}else return r===t}function ph(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Ps(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function gh(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}const Fm=fD;function Wm(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function Hm(r,t,e,a,n){var i=e.get("value"),o=Um(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Nn(s.get("padding")||0),u=s.getFont(),c=io(o,u),f=n.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=n.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),vD(f,h,v,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:ye(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function vD(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Um(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Eu(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),W(o)?i=o.replace("{value}",i):X(o)&&(i=o(s))}return i}function $m(r,t,e){var a=En();return Rn(a,a,e.rotation),cn(a,a,e.position),dt([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function hD(r,t,e,a,n,i){var o=fr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),Hm(t,a,n,i,{position:$m(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Ym(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function dD(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function yh(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var pD=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),c=mh(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=Wm(i),v=gD[u](s,f,c);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Sl(l.model,n);hD(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Sl(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=$m(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=mh(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=a[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[c]}},t}(Fm);function mh(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var gD={line:function(r,t,e){var a=Ym([t,e[0]],[t,e[1]],_h(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:dD([t-a/2,e[0]],[a,n],_h(r))}}};function _h(r){return r.dim==="x"?0:1}const yD=pD;var mD=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(re);const _D=mD;var Vt=ne(),xD=w;function Zm(r,t,e){if(!_e.node){var a=t.getZr();Vt(a).records||(Vt(a).records={}),SD(a,t);var n=Vt(a).records[r]||(Vt(a).records[r]={});n.handler=e}}function SD(r,t){if(Vt(r).initialized)return;Vt(r).initialized=!0,e("click",te(xh,"click")),e("mousemove",te(xh,"mousemove")),e("globalout",bD);function e(a,n){r.on(a,function(i){var o=AD(t);xD(Vt(r).records,function(s){s&&n(s,i,o.dispatchAction)}),wD(o.pendings,t)})}}function wD(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function bD(r,t,e){r.handler("leave",null,e)}function xh(r,t,e,a){t.handler(r,e,a)}function AD(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function El(r,t){if(!_e.node){var e=t.getZr(),a=(Vt(e).records||{})[r];a&&(Vt(e).records[r]=null)}}var TD=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Zm("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){El("axisPointer",a)},t.prototype.dispose=function(e,a){El("axisPointer",a)},t.type="axisPointer",t}(Me);const CD=TD;function Xm(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Nr(i,r);if(o==null||o<0||N(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(z(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Sh=ne();function MD(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||F(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Li(n)&&(n=Xm({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Li(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||Li(n),h={},v={},d={list:[],map:{}},p={showPointer:te(ID,v),showTooltip:te(LD,d)};w(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);w(s.coordSysAxesInfo[m],function(x,b){var S=x.axis,A=kD(u,x);if(!f&&_&&(!u||A)){var T=A&&A.value;T==null&&!l&&(T=S.pointToData(n)),T!=null&&wh(x,T,p,!1,h)}})});var g={};return w(c,function(y,m){var _=y.linkGroup;_&&!v[m]&&w(_.axesInfo,function(x,b){var S=v[b];if(x!==y&&S){var A=S.value;_.mapper&&(A=y.axis.scale.parse(_.mapper(A,bh(x),bh(y)))),g[y.key]=A}})}),w(g,function(y,m){wh(c[m],y,p,!0,h)}),PD(v,c,h),RD(d,n,r,o),ED(c,o,e),h}}function wh(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=DD(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&B(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function DD(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,e);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=f,i.length=0),w(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function ID(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function LD(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=Tn(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function PD(r,t,e){var a=e.axesInfo=[];w(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function RD(r,t,e,a){if(Li(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function ED(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=Sh(a)[n]||{},o=Sh(a)[n]={};w(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&w(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,c){!o[c]&&l.push(u)}),w(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function kD(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function bh(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Li(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ju(r){zn.registerAxisPointerClass("CartesianAxisPointer",yD),r.registerComponentModel(_D),r.registerComponentView(CD),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=yT(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},MD)}function ZR(r){Ne(rm),Ne(ju)}var OD=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(a),h=i.get("type");if(h&&h!=="none"){var v=Wm(i),d=BD[h](s,l,f,c);d.style=v,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=ND(a,n,i,l,p);Hm(e,n,i,o,g)},t}(Fm);function ND(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var h=En();Rn(h,h,s),cn(h,h,[a.cx,a.cy]),u=dt([o,-n],h);var v=t.getModel("axisLabel").get("rotate")||0,d=fr.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var BD={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:Ym(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:yh(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:yh(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const VD=OD;var zD=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(re);const GD=zD;var Ju=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ie).models[0]},t.type="polarAxis",t}(re);Ke(Ju,Lo);var FD=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(Ju),WD=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(Ju),Qu=function(r){E(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(Pt);Qu.prototype.dataToRadius=Pt.prototype.dataToCoord;Qu.prototype.radiusToData=Pt.prototype.coordToData;const HD=Qu;var UD=ne(),ec=function(r){E(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),c=io(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=UD(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(Pt);ec.prototype.dataToAngle=Pt.prototype.dataToCoord;ec.prototype.angleToData=Pt.prototype.coordToData;const $D=ec;var Km=["radius","angle"],YD=function(){function r(t){this.dimensions=Km,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new HD,this._angleAxis=new $D,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,h=this.r0;return c<=f*f&&c>=h*h}}},r.prototype.convertToPixel=function(t,e,a){var n=Ah(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Ah(e);return n===this?this.pointToData(a):null},r}();function Ah(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const ZD=YD;function XD(r,t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight();r.cx=H(a[0],n),r.cy=H(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:N(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function KD(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();w(Ki(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),w(Ki(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),wn(a.scale,a.model),wn(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function qD(r){return r.mainType==="angleAxis"}function Th(r,t){if(r.type=t.get("type"),r.scale=Ru(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),qD(t)){r.inverse=r.inverse!==t.get("clockwise");var e=t.get("startAngle");r.setExtent(e,e+(r.inverse?-360:360))}t.axis=r,r.model=t}var jD={dimensions:Km,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new ZD(n+"");i.update=KD;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Th(o,l),Th(s,u),XD(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Ie).models[0];a.coordinateSystem=n.coordinateSystem}}),e}};const JD=jD;var QD=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function yi(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function mi(r){var t=r.getRadiusAxis();return t.inverse?0:1}function Ch(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var eI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=z(n.getViewLabels(),function(c){c=Z(c);var f=n.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(h),c});Ch(u),Ch(s),w(QD,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&tI[c](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(zn),tI={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=mi(e),l=s?0:1,u;i[l]===0?u=new Gt({shape:{cx:e.cx,cy:e.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new no({shape:{cx:e.cx,cy:e.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[mi(e)],u=z(a,function(c){return new ze({shape:yi(e,[l,l+s],c.coord)})});r.add(vt(u,{style:K(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(!!n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[mi(e)],c=[],f=0;f<n.length;f++)for(var h=0;h<n[f].length;h++)c.push(new ze({shape:yi(e,[u,u+l],n[f][h].coord)}));r.add(vt(c,{style:K(s.getModel("lineStyle").getLineStyle(),K(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,n,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");w(o,function(f,h){var v=l,d=f.tickValue,p=i[mi(e)],g=e.coordToPoint([p+u,f.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",x=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];Y(b)&&b.textStyle&&(v=new we(b.textStyle,l,l.ecModel))}var S=new ae({silent:fr.isLabelSilent(t),style:ye(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:x})});if(r.add(S),c){var A=fr.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,j(S).eventData=A}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<a.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new ze({shape:yi(e,i,a[f].coord)}))}for(var f=0;f<c.length;f++)r.add(vt(c[f],{style:K({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,n,i){if(!!n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new ze({shape:yi(e,i,n[u][c].coord)}));r.add(vt(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,n,i){if(!!a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,h=-a[0].coord*f,v=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,y=a.length;g<=y;g++){var m=g===y?a[0].coord:a[g].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new pt({shape:{cx:e.cx,cy:e.cy,r0:v,r:d,startAngle:h,endAngle:-m*f,clockwise:p},silent:!0})),h=-m*f}for(var g=0;g<c.length;g++)r.add(vt(c[g],{style:K({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const rI=eI;var aI=["axisLine","axisTickLabel","axisName"],nI=["splitLine","splitArea","minorSplitLine"],iI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=this._axisGroup,i=this._axisGroup=new ee;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],h=o.getExtent(),v=sI(s,e,f),d=new fr(e,v);w(aI,d.add,d),i.add(d.getGroup()),fo(n,i,e),w(nI,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&oI[p](this.group,e,s,f,h,u,c)},this)}},t.type="radiusAxis",t}(zn),oI={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<i.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Gt({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)r.add(vt(c[f],{style:K({stroke:l[f%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(!!o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Gt({shape:{cx:e.cx,cy:e.cy,r:o[c][f].coord}}));r.add(vt(u,{style:K({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,n,i){if(!!i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new pt({shape:{cx:e.cx,cy:e.cy,r0:f,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[h].coord}for(var h=0;h<c.length;h++)r.add(vt(c[h],{style:K({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function sI(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const lI=iI;function qm(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function jm(r,t){return t.dim+r.model.componentIndex}function uI(r,t,e){var a={},n=cI(pe(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=jm(s,l),c=qm(i),f=n[u][c],h=f.offset,v=f.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;a[c]=a[c]||[];for(var _=o.mapDimension(d.dim),x=o.mapDimension(l.dim),b=Vr(o,_),S=l.dim!=="radius"||!i.get("roundCap",!0),A=d.dataToCoord(0),T=0,C=o.count();T<C;T++){var M=o.get(_,T),D=o.get(x,T),I=M>=0?"p":"n",L=A;b&&(a[c][D]||(a[c][D]={p:A,n:A}),L=a[c][D][I]);var P=void 0,R=void 0,O=void 0,G=void 0;if(d.dim==="radius"){var k=d.dataToCoord(M)-A,V=l.dataToCoord(D);Math.abs(k)<y&&(k=(k<0?-1:1)*y),P=L,R=L+k,O=V-h,G=O-v,b&&(a[c][D][I]=R)}else{var $=d.dataToCoord(M,S)-A,q=l.dataToCoord(D);Math.abs($)<m&&($=($<0?-1:1)*m),P=q+h,R=P+v,O=L,G=L+$,b&&(a[c][D][I]=G)}o.setItemLayout(T,{cx:p,cy:g,r0:P,r:R,startAngle:-O*Math.PI/180,endAngle:-G*Math.PI/180,clockwise:O>=G})}}})}function cI(r){var t={};w(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=jm(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;t[l]=f;var v=qm(a);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=H(a.get("barWidth"),c),p=H(a.get("barMaxWidth"),c),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(f.remainedWidth,d),h[v].width=d,f.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(f.gap=g),y!=null&&(f.categoryGap=y)});var e={};return w(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=H(a.categoryGap,o),l=H(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),w(i,function(p,g){var y=p.maxWidth;y&&y<f&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var h=0,v;w(i,function(p,g){p.width||(p.width=f),v=p,h+=p.width*(1+l)}),v&&(h-=v.width*l);var d=-h/2;w(i,function(p,g){e[n][g]=e[n][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var fI={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},vI={splitNumber:5},hI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Me);function XR(r){Ne(ju),zn.registerAxisPointerClass("PolarAxisPointer",VD),r.registerCoordinateSystem("polar",JD),r.registerComponentModel(GD),r.registerComponentView(hI),An(r,"angle",FD,fI),An(r,"radius",WD,vI),r.registerComponentView(rI),r.registerComponentView(lI),r.registerLayout(te(uI,"bar"))}var dI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=Aa(e);r.prototype.init.apply(this,arguments),Mh(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),Mh(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(re);function Mh(r,t){var e=r.cellSize,a;N(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=z([0,1],function(i){return Gx(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});ur(r,t,{type:"box",ignoreSize:n})}const pI=dI;var gI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new le({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});n.add(f)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=a.start,h=0;f.time<=a.end.time;h++){d(f.formatedDate),h===0&&(f=s.getDateInfo(a.start.y+"-"+a.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new Dt({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return W(e)&&e?Vx(e,a):X(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,v={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new ae({z2:30,style:ye(o,{text:y})});m.attr(this._yearTextPositionControl(m,v[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],c=e[1];return n==="horizontal"?(c=c+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||W(s))&&(s&&(a=nl(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",p=0;p<f[h].length-1;p++){var g=f[h][p].slice(),y=this._firstDayOfMonth[p];if(d){var m=this._firstDayPoints[p];g[v]=(m[v]+f[0][p+1][v])/2}var _=o.get("formatter"),x=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:x},S=this._formatterLabel(_,b),A=new ae({z2:30,style:B(ye(o,{text:S}),this._monthTextPositionControl(g,d,n,u,l))});i.add(A)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],c=e[1],f=n==="start";return a==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,a,n,i,o){var s=e.getModel("dayLabel");if(!!s.get("show")){var l=e.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),h=l.getFirstDayOfWeek();if(!c||W(c)){c&&(a=nl(c)||a);var v=a.get(["time","dayOfWeekShort"]);c=v||z(a.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=H(f,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,f=-f);for(var g=0;g<7;g++){var y=l.getNextNDay(d,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+h)%7);var x=new ae({z2:30,style:B(ye(s,{text:c[_]}),this._weekTextPositionControl(m,i,u,f,p))});o.add(x)}}},t.type="calendar",t}(Me);const yI=gI;var Rs=864e5,mI=function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=At(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];w([0,1],function(f){c(i,f)&&(o[n[f]]=i[f]*s[f])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=$e(o,l);w([0,1],function(f){c(i,f)||(i[f]=u[n[f]]/s[f])});function c(f,h){return f[h]!=null&&f[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e){N(t)&&(t=t[0]),e==null&&(e=!0);var a=this.getDateInfo(t),n=this._rangeInfo,i=a.formatedDate;if(e&&!(a.time>=n.start.time&&a.time<n.end.time+Rs))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var a=this.dataToPoint(t,e);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},r.prototype.convertToPixel=function(t,e,a){var n=Dh(e);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Dh(e);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(N(t)&&t.length===1&&(t=t[0]),N(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/Rs)-Math.floor(e[0].time/Rs)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var c=Math.floor((n+e[0].day+6)/7),f=a?-c+1:c-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:c,nthWeek:f,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),t.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function Dh(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}const _I=mI;function KR(r){r.registerComponentModel(pI),r.registerComponentView(yI),r.registerCoordinateSystem("calendar",_I)}function xI(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function Ih(r,t){var e;return w(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function SI(r,t,e){var a=B({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(J(n,a,!0),ur(n,a,{ignoreSize:!0}),zp(e,n),_i(e,n),_i(e,n,"shape"),_i(e,n,"style"),_i(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var Jm=["transition","enterFrom","leaveTo"],wI=Jm.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function _i(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?Jm:wI,n=0;n<a.length;n++){var i=a[n];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function bI(r,t){if(!!r&&(r.hv=t.hv=[Ih(t,["left","right"]),Ih(t,["top","bottom"])],r.type==="group")){var e=r,a=t;e.width==null&&(e.width=a.width=0),e.height==null&&(e.height=a.height=0)}}var AI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,a),this.option.elements=n},t.prototype.optionUpdated=function(e,a){var n=this.option,i=(a?n:e).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=jd(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];w(l,function(c,f){var h=c.newOption;!h||(u.push(h),xI(c,h),SI(o,f,h),bI(o[f],h))},this),n.elements=pe(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(e,a,n){w(e,function(i){if(!!i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(re),Lh={path:null,compoundPath:null,group:ee,image:Mt,text:ae},et=ne(),TI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=U()},t.prototype.render=function(e,a,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var a=e.useElOptionsToUpdate();if(!!a){var n=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");w(a,function(l){var u=Oe(l.id,null),c=u!=null?n.get(u):null,f=Oe(l.parentId,null),h=f!=null?n.get(f):i,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&jM(d,v,!!g,!!p)){var y=JM(d,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=CI(l),_=l.$action||"merge",x=_==="merge",b=_==="replace";if(x){var S=!c,A=c;S?A=Ph(u,h,l.type,n):(A&&(et(A).isNew=!1),cD(A)),A&&(Is(A,m,e,{isInit:S}),Rh(A,l,o,s))}else if(b){Pi(c,l,n,e);var T=Ph(u,h,l.type,n);T&&(Is(T,m,e,{isInit:!0}),Rh(T,l,o,s))}else _==="remove"&&(Vm(c,l),Pi(c,l,n,e));var C=n.get(u);if(C&&p)if(x){var M=C.getTextContent();M?M.attr(p):C.setTextContent(new ae(p))}else b&&C.setTextContent(new ae(p));if(C){var D=l.clipPath;if(D){var I=D.type,L=void 0,S=!1;if(x){var P=C.getClipPath();S=!P||et(P).type!==I,L=S?kl(I):P}else b&&(S=!0,L=kl(I));C.setClipPath(L),Is(L,D,e,{isInit:S}),Rl(L,D.keyframeAnimation,e)}var R=et(C);C.setTextConfig(g),R.option=l,MI(C,e,l),Sa({el:C,componentModel:e,itemName:C.name,itemTooltipOption:l.tooltip}),Rl(C,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,a){for(var n=e.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],c=0;c<n.length;c++){var f=n[c],h=Oe(f.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===i,g=et(v),y=et(d);g.width=H(g.option.width,p?s:y.width)||0,g.height=H(g.option.height,p?l:y.height)||0}}for(var c=n.length-1;c>=0;c--){var f=n[c],h=Oe(f.id,null),v=h!=null?o.get(h):null;if(!!v){var d=v.parent,y=et(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},x=uu(v,f,m,null,{hv:f.hv,boundingMode:f.bounding},_);if(!et(v).isNew&&x){for(var b=f.transition,S={},A=0;A<u.length;A++){var T=u[A],C=_[T];b&&(Or(b)||oe(b,T)>=0)?S[T]=C:v[T]=C}ve(v,S,e,0)}else v.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Pi(n,et(n).option,a,e._lastGraphicModel)}),this._elMap=U()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Me);function kl(r){var t=Q(Lh,r)?Lh[r]:dp(r),e=new t({});return et(e).type=r,e}function Ph(r,t,e,a){var n=kl(e);return t.add(n),a.set(r,n),et(n).id=r,et(n).isNew=!0,n}function Pi(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Pi(i,t,e,a)}),QM(r,t,a),e.removeKey(et(r).id))}function Rh(r,t,e,a){r.isGroup||w([["cursor",un.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];Q(t,i)?r[i]=de(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),w(Pe(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=X(i)?i:null}}),Q(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function CI(r){return r=B({},r),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Vp),function(t){delete r[t]}),r}function MI(r,t,e){var a=j(r).eventData;!r.silent&&!r.ignore&&!a&&(a=j(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function qR(r){r.registerComponentModel(AI),r.registerComponentView(TI),r.registerPreprocessor(function(t){var e=t.graphic;N(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var Eh=["x","y","radius","angle","single"],DI=["cartesian2d","polar","singleAxis"];function II(r){var t=r.get("coordinateSystem");return oe(DI,t)>=0}function nr(r){return r+"Axis"}function LI(r,t){var e=U(),a=[],n=U();r.eachComponent({mainType:"dataZoom",query:t},function(c){n.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!n.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){n.set(c.uid,!0),a.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(e.get(f)||e.set(f,[]))[h]=!0})}return a}function Qm(r){var t=r.ecModel,e={infoList:[],infoMap:U()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(nr(a),n);if(!!i){var o=i.getCoordSysModel();if(!!o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Es=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),PI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=kh(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=kh(e);J(this.option,e,!0),J(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=U(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return w(Eh,function(n){var i=this.getReferringComponents(nr(n),T_);if(!!i.specified){a=!0;var o=new Es;w(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===a}});l(s,"single")}function l(u,c){var f=u[0];if(!!f){var h=new Es;if(h.add(f.componentIndex),e.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Ie).models[0];v&&w(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Ie).models[0]&&h.add(d.componentIndex)})}}}i&&w(Eh,function(u){if(!!i){var c=n.findComponents({mainType:nr(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Es;f.add(c[0].componentIndex),e.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(nr(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){w(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(nr(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;w(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(re);function kh(r){var t={};return w(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const Dn=PI;var RI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Dn);const EI=RI;var kI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t}(Me);const tc=kI;var OI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(tc);const NI=OI;var ra=w,Oh=Ot,BI=function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(II(e)){var a=nr(this._dimName),n=e.getReferringComponents(a,Ie).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Z(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;ra(["start","end"],function(h,v){var d=t[h],p=t[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=n.parse(se(d,o,e))):(u=!0,p=p==null?e[v]:n.parse(p),d=se(p,e,o)),l[v]=p,s[v]=d}),Oh(l),Oh(s);var c=this._minMaxSpan;u?f(l,s,e,o,!1):f(s,l,o,e,!0);function f(h,v,d,p,g){var y=g?"Span":"ValueSpan";Hr(0,h,d,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)v[m]=se(h[m],d,p,!0),g&&(v[m]=n.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=VI(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;ra(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(a);if(!!c.length){if(i==="weakFilter"){var f=u.getStore(),h=z(c,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,y=0;y<c.length;y++){var m=f.get(h[y],v),_=!isNaN(m),x=m<o[0],b=m>o[1];if(_&&!x&&!b)return!0;_&&(g=!0),x&&(d=!0),b&&(p=!0)}return g&&d&&p})}else ra(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});ra(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;ra(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=se(a[0]+o,a,[0,100],!0):i!=null&&(o=se(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(!!e){var n=Hd(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function VI(r,t,e){var a=[1/0,-1/0];ra(e,function(o){pb(a,o.getData(),t)});var n=r.getAxisModel(),i=vy(n.axis.scale,n,a).calculate();return[i.min,i.max]}const zI=BI;var GI={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(nr(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new zI(n,i,s,r),e.push(o.__dzAxisProxy))});var a=U();return w(e,function(n){w(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const FI=GI;function WI(r){r.registerAction("dataZoom",function(t,e){var a=LI(e,t);w(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Nh=!1;function rc(r){Nh||(Nh=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,FI),WI(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function HI(r){r.registerComponentModel(EI),r.registerComponentView(NI),rc(r)}var ft=function(){function r(){}return r}(),e0={};function $a(r,t){e0[r]=t}function t0(r){return e0[r]}var UI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(a,n){var i=t0(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),J(a,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(re);const $I=UI;function YI(r,t,e){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=$e(a,i,n);Rr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),uu(r,a,i,n)}function r0(r,t){var e=Nn(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new le({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var ZI=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),f=[];w(u,function(d,p){f.push(p)}),new Sn(this._featureNames||[],f).add(h).update(h).remove(te(h,null)).execute(),this._featureNames=f;function h(d,p){var g=f[d],y=f[p],m=u[g],_=new we(m,e,e.ecModel),x;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(XI(g))x={onclick:_.option.onclick,featureName:g};else{var b=t0(g);if(!b)return;x=new b}c[g]=x}else if(x=c[y],!x)return;x.uid=ba("toolbox-feature"),x.model=_,x.ecModel=a,x.api=n;var S=x instanceof ft;if(!g&&y){S&&x.dispose&&x.dispose(a,n);return}if(!_.get("show")||S&&x.unusable){S&&x.remove&&x.remove(a,n);return}v(_,x,g),_.setIconStatus=function(A,T){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[A]=T,M[A]&&(T==="emphasis"?va:ha)(M[A])},x instanceof ft&&x.render&&x.render(_,a,n,i)}function v(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof ft&&p.getIcons?p.getIcons():d.get("icon"),x=d.get("title")||{},b,S;W(_)?(b={},b[g]=_):b=_,W(x)?(S={},S[g]=x):S=x;var A=d.iconPaths={};w(b,function(T,C){var M=On(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var I=new ae({style:{text:S[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});M.setTextContent(I),Sa({el:M,componentModel:e,itemName:C,formatterParamsExtra:{title:S[C]}}),M.__title=S[C],M.on("mouseover",function(){var L=m.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?va:ha)(M),o.add(M),M.on("click",F(p.onclick,p,a,n,C)),A[C]=M})}YI(o,e,n),o.add(r0(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!X(_)&&p){var x=_.style||(_.style={}),b=io(p,ae.makeFont(x)),S=d.x+o.x,A=d.y+o.y+s,T=!1;A+b.height>n.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;S+b.width/2>n.getWidth()?(y.position=["100%",C],x.align="right"):S-b.width/2<0&&(y.position=[0,C],x.align="left")}})},t.prototype.updateView=function(e,a,n,i){w(this._features,function(o){o instanceof ft&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){w(this._features,function(n){n instanceof ft&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){w(this._features,function(n){n instanceof ft&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(Me);function XI(r){return r.indexOf("my")===0}const KI=ZI;var qI=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=_e.browser;if(X(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var x=_.contentWindow,b=x.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),x.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var S=n.get("lang"),A='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',T=window.open();T.document.write(A),T.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(ft);const jI=qI;var Bh="__ec_magicType_stack__",JI=[["line","bar"],["stack"]],QI=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return w(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(!!Vh[n]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=Vh[n](h,v,f,i);d&&(K(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=f.getReferringComponents(m,Ie).models[0],x=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=x;b++)s[m][x]=s[m][x]||{};s[m][x].boundaryGap=n==="bar"}}};w(JI,function(f){oe(f,n)>=0&&w(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;n==="stack"&&(u=J({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ft),Vh={line:function(r,t,e,a){if(r==="bar")return J({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return J({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===Bh;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),J({id:t,stack:n?"":Bh},a.get(["option","stack"])||{},!0)}};Lt({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const eL=QI;var ko=new Array(60).join("-"),ya=" ";function tL(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function rL(r){var t=[];return w(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(z(e.series,function(v){return v.name})),l=[n.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(ya)],c=0;c<l[0].length;c++){for(var f=[],h=0;h<l.length;h++)f.push(l[h][c]);u.push(f.join(ya))}t.push(u.join(`
`))}),t.join(`
`+ko+`
`)}function aL(r){return z(r,function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+ya:"")+n.join(ya))}),a.join(`
`)}).join(`
`+ko+`
`)}function nL(r){var t=tL(r);return{value:pe([rL(t.seriesGroupByCategoryAxis),aL(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
`+ko+`
`),meta:t.meta}}function ro(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function iL(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(ya)>=0)return!0}var Ol=new RegExp("["+ya+"]+","g");function oL(r){for(var t=r.split(/\n+/g),e=ro(t.shift()).split(Ol),a=[],n=z(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=ro(t[i]).split(Ol);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function sL(r){for(var t=r.split(/\n+/g),e=ro(t.shift()),a=[],n=0;n<t.length;n++){var i=ro(t[n]);if(!!i){var o=i.split(Ol),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function lL(r,t){var e=r.split(new RegExp(`
*`+ko+`
*`,"g")),a={series:[]};return w(e,function(n,i){if(iL(n)){var o=oL(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=sL(n);a.series.push(o)}}),a}var uL=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),h=i.get("contentToOption"),v=nL(e);if(X(f)){var d=f(a.getOption());W(d)?u.innerHTML=d:Fd(d)&&u.appendChild(d)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=v.value,u.appendChild(c)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function S(){n.removeChild(o),b._dom=null}pc(_,"click",S),pc(x,"click",function(){if(h==null&&f!=null||h!=null&&f==null){S();return}var A;try{X(h)?A=h(u,a.getOption()):A=lL(c.value,g)}catch(T){throw S(),new Error("Data view format error "+T)}A&&a.dispatchAction({type:"changeDataView",newOption:A}),S()}),_.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(x),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},t}(ft);function cL(r,t){return z(r,function(e,a){var n=t&&t[a];if(Y(n)&&!N(n)){var i=Y(e)&&!N(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=K(e,n),o&&delete e.name,e}else return e})}Lt({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];w(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(B({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:cL(a.data,i)})}}),t.mergeOption(K({series:e},r.newOption))});const fL=uL;var a0=w,n0=ne();function vL(r,t){var e=ac(r);a0(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function hL(r){var t=ac(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return a0(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function dL(r){n0(r).snapshots=null}function pL(r){return ac(r).length}function ac(r){var t=n0(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var gL=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){dL(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t}(ft);Lt({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const yL=gL;var mL=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],_L=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=zh(e,t);w(xL,function(o,s){(!a||!a.include||oe(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=ks[a.brushType](0,i,n);a.__rangeOffset={offset:Hh[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){w(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=ks[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=ks[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?Hh[a.brushType](i.values,o.offset,SL(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:Dm(n),isTargetByCursor:Lm(n,t,a.coordSysModel),getLinearBrushOtherExtent:Im(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&oe(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=zh(e,t),i=0;i<a.length;i++){var o=a[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Gh.length;l++)if(Gh[l](n,o))return o}return!0},r}();function Nl(r){return r[0]>r[1]&&r.reverse(),r}function zh(r,t){return en(r,t,{includeMainTypes:mL})}var xL={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=U(),o={},s={};!e&&!a&&!n||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];w(u.getCartesians(),function(f,h){(oe(e,f.getAxis("x").model)>=0||oe(a,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:Fh.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:Fh.geo})})}},Gh=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Fh={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Pr(r)),t}},ks={lineX:te(Wh,0),lineY:te(Wh,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[Nl([n[0],i[0]]),Nl([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=z(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function Wh(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=Nl(z([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Hh={lineX:te(Uh,0),lineY:te(Uh,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return z(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function Uh(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function SL(r,t){var e=$h(r),a=$h(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function $h(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const i0=_L;var Bl=w,wL=x_("toolbox-dataZoom_"),bL=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new Mm(n.getZr()),this._brushController.on("brush",F(this._onBrush,this)).mount()),CL(e,a,this,i,n),TL(e,a)},t.prototype.onclick=function(e,a,n){AL[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new i0(nc(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),vL(i,n),this._dispatchZoomAction(n);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=Hr(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var a=[];Bl(e,function(n,i){a.push(Z(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},t}(ft),AL={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(hL(this.ecModel))}};function nc(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function TL(r,t){r.setIconStatus("back",pL(t)>1?"emphasis":"normal")}function CL(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new i0(nc(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}Zx("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=nc(a),o=en(r,i);Bl(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Bl(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:wL+u+f};h[c]=f,n.push(h)}return n});const ML=bL;function jR(r){r.registerComponentModel($I),r.registerComponentView(KI),$a("saveAsImage",jI),$a("magicType",eL),$a("dataView",fL),$a("dataZoom",ML),$a("restore",yL),Ne(HI)}var DL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(re);const IL=DL;function o0(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function s0(r){if(!!_e.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var l0=s0(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),LL=s0(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function u0(r,t){if(!r)return t;t=Np(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function PL(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var RL=u0(LL,"transition"),ic=u0(l0,"transform"),EL="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(_e.transform3dSupported?"will-change:transform;":"");function kL(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function OL(r,t,e){if(!W(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=Br(t);var i=kL(e),o=Math.max(Math.round(n)*1.5,6),s="",l=ic+":",u;oe(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+n,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function NL(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,n="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,n+=_e.transformSupported?","+ic+a:",left"+a+",top"+a),RL+":"+n}function Yh(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!_e.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=_e.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+ic+":"+o+";":[["top",0],["left",0],[l0,o]]}function BL(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function VL(r,t,e){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=pg(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+h),t&&n&&a.push(NL(n,e)),i&&a.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=Np(d),g=r.get(p);g!=null&&a.push(d+":"+g+(v==="color"?"":"px"))}),a.push(BL(c)),f!=null&&a.push("padding:"+Nn(f).join("px ")+"px"),a.join(";")+";"}function Zh(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&e_(r,o,document.body,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var zL=function(){function r(t,e,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,_e.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),o=this._appendToBody=a&&a.appendToBody;Zh(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Q0(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,a=PL(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=EL+VL(t,!this._firstShow,this._longHide)+Yh(i[0],i[1],!0)+("border-color:"+Br(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(i)&&a.get("trigger")==="item"&&!o0(a)&&(s=OL(a,n,i)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var l=0;l<t.length;l++)Fd(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var a=this._styleCoord;if(Zh(a,this._zr,this._appendToBody,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Yh(a[0],a[1]);w(i,function(o){n[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",_e.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(F(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const GL=zL;var FL=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),Kh(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;Y(t)&&He(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new ae({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:pg(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=Xh(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;Kh(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=tr(i.borderWidth||0),s=Xh(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(F(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function tr(r){return Math.max(0,r)}function Xh(r){var t=tr(r.shadowBlur||0),e=tr(r.shadowOffsetX||0),a=tr(r.shadowOffsetY||0);return{left:tr(t-e),right:tr(t+e),top:tr(t-a),bottom:tr(t+a)}}function Kh(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const WL=FL;var HL=new le({shape:{x:-1,y:-1,width:2,height:2}}),UL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(_e.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=M_(n.get("renderMode"));this._tooltipContent=i==="richText"?new WL(a):new GL(a.getDom(),a,{appendToBody:n.get("appendToBody",!0)})}},t.prototype.render=function(e,a,n){if(!(_e.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Bn(this,"_updatePosition",50,"fixRate"):_n(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");Zm("itemTooltip",this._api,F(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||_e.node||!n.getDom())){var o=qh(i,n);this._ticket="";var s=i.dataByCoordSys,l=XL(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=HL;c.x=i.x,c.y=i.y,c.update(),j(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var f=Xm(i,a),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(qh(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(!!u){var c=u.getData(),f=Ya([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(!!i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){this._lastDataByCoordSys=null;var s,l;na(n,function(u){if(j(u).dataIndex!=null)return s=u,!0;if(j(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,a):l?this._showComponentItemTooltip(e,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=F(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Ya([a.tooltipOption],i),l=this._renderMode,u=[],c=Ct("section",{blocks:[],noHeader:!0}),f=[],h=new jo;w(e,function(m){w(m.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!x||b==null)){var S=Um(b,x.axis,n,_.seriesDataIndices,_.valueLabelOpt),A=Ct("section",{header:S,noHeader:!Pn(S),sortBlocks:!0,blocks:[]});c.blocks.push(A),w(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Eu(x.axis,{value:b}),D.axisValueLabel=S,D.marker=h.makeTooltipMarker("item",Br(D.color),l);var I=uf(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=Ya([C],i).get("valueFormatter");A.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&f.push(I.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var v=a.position,d=s.get("order"),p=df(c,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
`:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=j(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=e.positionDefault,p=Ya([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new jo;y.marker=m.makeTooltipMarker("item",Br(y.color),v);var _=uf(u.formatTooltip(c,!1,f)),x=p.get("order"),b=p.get("valueFormatter"),S=_.frag,A=S?df(b?B({valueFormatter:b},S):S,m,v,x,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,A,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=j(a),o=i.tooltipConfig,s=o.option||{};if(W(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=e.positionDefault,h=Ya(u,this._tooltipModel,f?{position:f}:null),v=h.get("content"),d=Math.random()+"",p=new jo;this._showOrMove(h,function(){var g=Z(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,d,e.offsetX,e.offsetY,e.position,a,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(W(h)){var g=e.ecModel.get("useUTC"),y=N(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=go(y.axisValue,v,g)),v=Bp(v,n,!0)}else if(X(h)){var _=F(function(x,b){x===this._ticket&&(f.setContent(b,c,e,p,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=i,v=h(n,i,_)}else v=h;f.setContent(v,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||N(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!N(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var f=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),X(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),N(a))n=H(a[0],u),i=H(a[1],c);else if(Y(a)){var p=a;p.width=f[0],p.height=f[1];var g=$e(p,{width:u,height:c});n=g.x,i=g.y,h=null,v=null}else if(W(a)&&l){var y=ZL(a,d,f,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=$L(n,i,o,u,c,h?null:20,v?null:20);n=y[0],i=y[1]}if(h&&(n-=jh(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=jh(v)?f[1]/2:v==="bottom"?f[1]:0),o0(e)){var y=YL(n,i,o,u,c);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&w(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&w(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&w(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],x=i[m];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){_e.node||!a.getDom()||(_n(this,"_updatePosition"),this._tooltipContent.dispose(),El("itemTooltip",a))},t.type="tooltip",t}(Me);function Ya(r,t,e){var a=t.ecModel,n;e?(n=new we(e,a,a),n=new we(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof we&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(n=new we(o,n,a)))}return n}function qh(r,t){return r.dispatchAction||F(t.dispatchAction,t)}function $L(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function YL(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ZL(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+c+o;break;case"left":s=t.x-n-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function jh(r){return r==="center"||r==="middle"}function XL(r,t,e){var a=Zl(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=kn(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=j(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const KL=UL;function JR(r){Ne(ju),r.registerComponentModel(IL),r.registerComponentView(KL),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},bt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},bt)}var Jh=w;function Qh(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function ed(r,t,e){var a={};return Jh(t,function(i){var o=a[i]=n();Jh(r[i],function(s,l){if(!!Ue.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Ue(u),l==="opacity"&&(u=Z(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ue(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function qL(r,t,e){var a;w(e,function(n){t.hasOwnProperty(n)&&Qh(t[n])&&(a=!0)}),a&&w(e,function(n){t.hasOwnProperty(n)&&Qh(t[n])?r[n]=Z(t[n]):delete r[n]})}function jL(r,t,e,a){var n={};return w(r,function(i){var o=Ue.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(b){return Ag(s,f,b)}function c(b,S){M1(s,f,b,S)}for(var f,h=s.getStore();(f=o.next())!=null;){var v=s.getRawDataItem(f);if(!(v&&v.visualMap===!1))for(var d=a!=null?h.get(l,f):f,p=e(d),g=t[p],y=n[p],m=0,_=y.length;m<_;m++){var x=y[m];g[x]&&g[x].applyVisual(d,u,c)}}}}}var JL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(re),QL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=de(e.get("textBaseline"),e.get("textVerticalAlign")),c=new ae({style:ye(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=e.get("subtext"),v=new ae({style:ye(s,{text:h,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);c.silent=!d&&!g,v.silent=!p&&!g,d&&c.on("click",function(){Hc(d,"_"+e.get("target"))}),p&&v.on("click",function(){Hc(p,"_"+e.get("subtarget"))}),j(c).eventData=j(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),h&&i.add(v);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=$e(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var x={align:l,verticalAlign:u};c.setStyle(x),v.setStyle(x),y=i.getBoundingRect();var b=_.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var A=new le({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(A)}},t.type="title",t}(Me);function QR(r){r.registerComponentModel(JL),r.registerComponentView(QL)}var eP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],w(a,function(u,c){var f=Oe(_a(u),""),h;Y(u)?(h=Z(u),h.value=c):h=c,o.push(h),i.push(f)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Mu([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(re);const td=eP;var c0=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=hr(td.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(td);Ke(c0,ig.prototype);const tP=c0;var rP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Me);const aP=rP;var nP=function(r){E(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Pt);const iP=nP;var Os=Math.PI,rd=ne(),oP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Ct("nameValue",{noName:!0,value:c})},w(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=lP(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":W(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Os/2},f=i==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Os/180;var m,_,x,b=h.get("position",!0),S=v&&h.get("showPlayBtn",!0),A=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),C=0,M=f;b==="left"||b==="bottom"?(S&&(m=[0,0],C+=g),A&&(_=[C,0],C+=g),T&&(x=[M-d,0],M-=g)):(S&&(m=[M-d,0],M-=g),A&&(_=[0,0],C+=g),T&&(x=[M-d,0],M-=g));var D=[C,M];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:x,axisExtent:D,controlSize:d,controlGap:p}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=En(),l=o.x,u=o.y+o.height;cn(s,s,[-l,-u]),Rn(s,s,-Os/2),cn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),f=m(n.getBoundingRect()),h=m(i.getBoundingRect()),v=[n.x,n.y],d=[i.x,i.y];d[0]=v[0]=c[0][0];var p=e.labelPosOpt;if(p==null||W(p)){var g=p==="+"?0:1;_(v,f,c,1,g),_(d,h,c,1,1-g)}else{var g=p>=0?0:1;_(v,f,c,1,g),d[1]=v[1]+p}n.setPosition(v),i.setPosition(d),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(x){x.originX=c[0][0]-x.x,x.originY=c[1][0]-x.y}function m(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function _(x,b,S,A,T){x[A]+=S[A][T]-b[A][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=sP(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new iP("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new ee;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(!!i.get(["lineStyle","show"])){var s=new ze({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new ze({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:K({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],w(l,function(u){var c=n.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),d=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:F(o._changeTimeline,o,u.value)},g=ad(f,h,a,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),Lr(g);var y=j(g);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(!!s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],w(u,function(c){var f=c.tickValue,h=l.getItemModel(f),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),g=n.dataToCoord(c.tickValue),y=new ae({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:F(o._changeTimeline,o,f),silent:!1,style:ye(v,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=ye(d),y.ensureState("progress").style=ye(p),a.add(y),Lr(y),rd(y).dataIndex=f,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);h(e.nextBtnPosition,"next",F(this._changeTimeline,this,f?"-":"+")),h(e.prevBtnPosition,"prev",F(this._changeTimeline,this,f?"+":"-")),h(e.playPosition,c?"stop":"play",F(this._handlePlayClick,this,!c),!0);function h(v,d,p,g){if(!!v){var y=ca(de(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=uP(i,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),Lr(_)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=F(u._handlePointerDrag,u),f.ondragend=F(u._handlePointerDragend,u),nd(f,u._progressLine,s,n,i,!0)},onUpdate:function(f){nd(f,u._progressLine,s,n,i)}};this._currentPointer=ad(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=Ot(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var s=this._findNearestTick(n),l=this.model;(a||s!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(s)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=e.model;e._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var a=this._mainGroup.getLocalTransform();return dt(e,a,!0)},t.prototype._findNearestTick=function(e){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-e);c<n&&(n=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var a=this.model.getCurrentIndex();e==="+"?e=a+1:e==="-"&&(e=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<e);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",rd(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(aP);function sP(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Du({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new cy({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new cr}}function lP(r,t){return $e(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function uP(r,t,e,a){var n=a.style,i=On(r.get(["controlStyle",t]),a||{},new ge(e[0],e[1],e[2],e[3]));return n&&i.setStyle(n),i}function ad(r,t,e,a,n,i){var o=t.get("color");if(n)n.setColor(o),e.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=Le(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),e.add(n),i&&i.onCreate(n)}var l=t.getItemStyle(["color"]);n.setStyle(l),a=J({rectHover:!0,z2:100},a,!0);var u=Su(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=Ao(r.get("symbolOffset"),u);c&&(a.x=(a.x||0)+c[0],a.y=(a.y||0)+c[1]);var f=r.get("symbolRotate");return a.rotation=(f||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function nd(r,t,e,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",e));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const cP=oP;function fP(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,a){var n=e.getComponent("timeline");return n&&t.currentIndex!=null&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),K({currentIndex:n.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var a=e.getComponent("timeline");a&&t.playState!=null&&a.setPlayState(t.playState)})}function vP(r){var t=r&&r.timeline;N(t)||(t=t?[t]:[]),w(t,function(e){!e||hP(e)})}function hP(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),id(r),Mr(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Mr(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Mr(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}w(r.data||[],function(n){Y(n)&&!N(n)&&(!Mr(n,"value")&&Mr(n,"name")&&(n.value=n.name),id(n))})}function id(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};w(a,function(o,s){!i[s]&&!Mr(n,s)&&(n[s]=o)}),e.label&&!Mr(a,"emphasis")&&(a.emphasis=e.label,delete e.label)}function Mr(r,t){return r.hasOwnProperty(t)}function e2(r){r.registerComponentModel(tP),r.registerComponentView(cP),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),fP(r),r.registerPreprocessor(vP)}var dP=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},pP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),N(a)&&w(a,function(i,o){W(i)&&(i={type:i}),a[o]=J(i,dP(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(s){var l=s.name;n.push(l);var u;if(s.legendVisualProvider){var c=s.legendVisualProvider,f=c.getAllNames();e.isSeriesFiltered(s)||(n=n.concat(f)),f.length?a=a.concat(f):u=!0}else u=!0;u&&Yl(s)&&a.push(s.name)}),this._availableNames=n;var i=this.get("data")||a,o=z(i,function(s){return(W(s)||he(s))&&(s={name:s}),new we(s,this,this.ecModel)},this);this._data=o},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;w(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;w(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;w(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&oe(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(re);const Vl=pP;var Qr=te,zl=w,xi=ee,gP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new xi),this.group.add(this._selectorGroup=new xi),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var c=e.getBoxLayoutParams(),f={width:n.getWidth(),height:n.getHeight()},h=e.get("padding"),v=$e(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=$e(K({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=r0(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),c=U(),f=a.get("selectedMode"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),zl(a.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new xi;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!c.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),b=m.getVisual("style"),S=this._createItem(y,p,d,v,a,e,_,b,x,f,i);S.on("click",Qr(od,p,null,i,h)).on("mouseover",Qr(Gl,y.name,null,i,h)).on("mouseout",Qr(Fl,y.name,null,i,h)),c.set(p,!0)}else n.eachRawSeries(function(A){if(!c.get(p)&&A.legendVisualProvider){var T=A.legendVisualProvider;if(!T.containName(p))return;var C=T.indexOfName(p),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),I=Gd(M.fill);I&&I[3]===0&&(I[3]=.2,M=B(B({},M),{fill:Si(I,"rgba")}));var L=this._createItem(A,p,d,v,a,e,{},M,D,f,i);L.on("click",Qr(od,null,p,i,h)).on("mouseover",Qr(Gl,null,p,i,h)).on("mouseout",Qr(Fl,null,p,i,h)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();zl(e,function(u){var c=u.type,f=new ae({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);Ht(f,{normal:h,emphasis:v},{defaultText:u.title}),Lr(f)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,f,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var x=yP(c,i,l,u,v,g,h),b=new xi,S=i.getModel("textStyle");if(X(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var A=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(mP({itemWidth:d,itemHeight:p,icon:c,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=a;W(M)&&M?D=M.replace("{name}",a!=null?a:""):X(M)&&(D=M(a));var I=i.get("inactiveColor");b.add(new ae({style:ye(S,{text:D,x:T,y:p/2,fill:g?S.getTextColor():I,align:C,verticalAlign:"middle"})}));var L=new le({shape:b.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&Sa({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!f,this.getContentGroup().add(b),Lr(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Rr(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Rr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=c[g]+d:f[p]+=h[g]+d,v[1-p]+=c[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+h[g],_[y]=Math.max(c[y],h[y]),_[m]=Math.min(0,h[m]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Me);function yP(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),zl(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:Yi(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function mP(r){var t=r.icon||"roundRect",e=Le(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function od(r,t,e,a){Fl(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Gl(r,t,e,a)}function f0(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function Gl(r,t,e,a){f0(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function Fl(r,t,e,a){f0(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}const v0=gP;function _P(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function Za(r,t,e){var a={},n=r==="toggleSelected",i;return e.eachComponent("legend",function(o){n&&i!=null?o[i?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),i=o.isSelected(t.name));var s=o.getData();w(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var c=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&c:a[u]=c}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:t.name,selected:a}}function xP(r){r.registerAction("legendToggleSelect","legendselectchanged",te(Za,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",te(Za,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",te(Za,"inverseSelect")),r.registerAction("legendSelect","legendselected",te(Za,"select")),r.registerAction("legendUnSelect","legendunselected",te(Za,"unSelect"))}function h0(r){r.registerComponentModel(Vl),r.registerComponentView(v0),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,_P),r.registerSubTypeDefaulter("legend",function(){return"plain"}),xP(r)}var SP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=Aa(e);r.prototype.init.call(this,e,a,n),sd(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),sd(this,this.option,e)},t.type="legend.scroll",t.defaultOption=hr(Vl.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Vl);function sd(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,ur(t,e,{type:"box",ignoreSize:!!n})}const wP=SP;var ld=ee,Ns=["width","height"],Bs=["x","y"],bP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new ld),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ld)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),h=N(f)?f:[f,f];d("pagePrev",0);var v=a.getModel("pageTextStyle");c.add(new ae({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=On(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:F(u._pageGo,u,y,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,c.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=Ns[u],f=Bs[u],h=Ns[1-u],v=Bs[1-u];o&&Rr("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=Z(n);o&&(y[c]=n[c]-p[c]-d);var m=this._layoutContentAndController(e,i,y,u,c,h,v,f);if(o){if(s==="end")g[u]+=m[c]+d;else{var _=p[c]+d;g[u]-=_,m[f]-=_}m[c]+=p[c]+d,g[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;Rr(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),Rr("horizontal",h,e.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],g=[-v.x,-v.y];a||(g[i]=c[u]);var y=[0,0],m=[-d.x,-d.y],_=de(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,c.setPosition(g),f.setPosition(y),h.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),f.__rectSize=n[o],p){var S={x:0,y:0};S[o]=Math.max(n[o]-d[o]-_,0),S[s]=b[s],f.setClipPath(new le({shape:S})),f.__rectSize=S[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(e);return A.pageIndex!=null&&ve(c,{x:A.contentPosition[0],y:A.contentPosition[1]},p?e:null),this._updatePageInfoView(e,A),b},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;w(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=a[f]!=null,v=n.childOfName(c);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",W(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Ns[o],l=Bs[o],u=this._findTargetItemIndex(a),c=n.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=x(f);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=h;++g)_=x(c[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=x(c[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function x(S){if(S){var A=S.getBoundingRect(),T=A[l]+S[l];return{s:T,e:T+A[s],i:S.__legendDataIndex}}}function b(S,A){return S.e>=A&&S.s<=A+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a!=null?a:i},t.type="legend.scroll",t}(v0);const AP=bP;function TP(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function CP(r){Ne(h0),r.registerComponentModel(wP),r.registerComponentView(AP),TP(r)}function t2(r){Ne(h0),Ne(CP)}var MP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=hr(Dn.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Dn);const DP=MP;var oc=ne();function IP(r,t,e){oc(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function LP(r,t){for(var e=oc(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||d0(e,o))}}}function d0(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function PP(r,t){var e={model:t,containsPoint:te(EP,t),dispatchAction:te(RP,r),dataZoomInfoMap:null,controller:null},a=e.controller=new nm(r.getZr());return w(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(!!i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function RP(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function EP(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function kP(r){var t,e="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[e+s]>a[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function OP(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=oc(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=U());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Qm(i);w(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,PP(e,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=U());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){d0(n,i);return}var c=kP(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Bn(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var NP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),IP(n,e,{pan:F(Vs.pan,this),zoom:F(Vs.zoom,this),scrollMove:F(Vs.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){LP(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(tc),Vs={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(!!o){var s=zs[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Hr(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:ud(function(r,t,e,a,n,i){var o=zs[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:ud(function(r,t,e,a,n,i){var o=zs[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function ud(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(!!s){var l=r(o,s,t,e,a,n);if(Hr(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var zs={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const BP=NP;function VP(r){rc(r),r.registerComponentModel(DP),r.registerComponentView(BP),OP(r)}var zP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=hr(Dn.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Dn);const GP=zP;var Xa=le,cd=7,FP=1,Gs=30,WP=7,Ka="horizontal",fd="vertical",HP=5,UP=["line","bar","candlestick","scatter"],$P={easing:"cubicOut",duration:100,delay:0},YP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=F(this._onBrush,this),this._onBrushEnd=F(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Bn(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){_n(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new ee;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?WP:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Ka?{right:s.width-o.x-o.width,top:s.height-Gs-cd-i,width:o.width,height:Gs}:{right:cd,top:o.y,width:Gs,height:o.height},u=Aa(e.option);w(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=$e(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===fd&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Ka&&!o?{scaleY:l?1:-1,scaleX:1}:n===Ka&&o?{scaleY:l?1:-1,scaleX:-1}:n===fd&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new Xa({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Xa({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:F(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim?i.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var c=o.getDataExtent(s),f=(c[1]-c[0])*.3;c=[c[0]-f,c[1]+f];var h=[0,a[1]],v=[0,a[0]],d=[[a[0],0],[0,0]],p=[],g=v[1]/(o.count()-1),y=0,m=Math.round(o.count()/a[0]),_;o.each([s],function(T,C){if(m>0&&C%m){y+=g;return}var M=T==null||isNaN(T)||T==="",D=M?0:se(T,c,h,!0);M&&!_&&C?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!M&&_&&(d.push([y,0]),p.push([y,0])),d.push([y,D]),p.push([y,D]),y+=g,_=M}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=s,this._shadowSize=[a[0],a[1]];var x=this.dataZoomModel;function b(T){var C=x.getModel(T?"selectedDataBackground":"dataBackground"),M=new ee,D=new vr({shape:{points:l},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Dt({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(D),M.add(I),M}for(var S=0;S<3;S++){var A=b(S===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!n&&!(a!==!0&&oe(UP,u.get("type"))<0)){var c=i.getComponent(nr(o),s).axis,f=ZP(o),h,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(h=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),n={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=a.filler=new Xa({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Xa({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:FP,fill:"rgba(0,0,0,0)"}})),w([0,1],function(_){var x=l.get("handleIcon");!$i[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var b=Le(x,-1,0,2,2,null,!0);b.attr({cursor:vd(this._orient),draggable:!0,drift:F(this._onDragMove,this,_),ondragend:F(this._onDragEnd,this),onmouseover:F(this._showDataInfo,this,!0),onmouseout:F(this._showDataInfo,this,!1),z2:5});var S=b.getBoundingRect(),A=l.get("handleSize");this._handleHeight=H(A,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Lr(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var C=l.getModel("textStyle");e.add(i[_]=new ae({silent:!0,invisible:!0,style:ye(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=h;if(f){var d=H(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new le({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=Le(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=a.moveZone=new le({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:vd(this._orient),drift:F(this._onDragMove,this,"all"),ondragstart:F(this._showDataInfo,this,!0),ondragend:F(this._onDragEnd,this),onmouseover:F(this._showDataInfo,this,!0),onmouseout:F(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[se(e[0],[0,100],a,!0),se(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Hr(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?se(s.minSpan,l,o,!0):null,s.maxSpan!=null?se(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ot([se(i[0],o,l,!0),se(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Ot(n.slice()),o=this._size;w([0,1],function(v){var d=a.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[v]+(v?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],h=f.getClipPath();h||(h=new le,f.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=e?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var h=Ot(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=Pr(n.handles[d].parent,this.group),g=co(d===0?"right":"left",p),y=this._handleWidth/2+HP,m=dt([h[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Ka?"middle":g,align:o===Ka?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return X(i)?i(e,s):W(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var a=this._displayables,n=a.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),a.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](a.moveHandle,1)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,sr(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=dt([a,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new Te(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(!!this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ot([se(n.x,o,s,!0),se(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(sr(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Xa({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?$P:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=Qm(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(tc);function ZP(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function vd(r){return r==="vertical"?"ns-resize":"ew-resize"}const XP=YP;function KP(r){r.registerComponentModel(GP),r.registerComponentView(XP),rc(r)}function r2(r){Ne(VP),Ne(KP)}var qP={get:function(r,t,e){var a=Z((jP[r]||{})[t]);return e&&N(a)?a[a.length-1]:a}},jP={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const p0=qP;var hd=Ue.mapVisual,JP=Ue.eachVisual,QP=N,dd=w,eR=Ot,tR=se,rR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&qL(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=F(e,this),this.controllerVisuals=ed(this.option.controller,a,e),this.targetVisuals=ed(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,a=[];return e==null||e==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=ce(e),a},t.prototype.eachTargetSeries=function(e,a){w(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],N(e)&&(e=e.slice(),u=!0);var c=a?e:u?[f(e[0]),f(e[1])]:f(e);if(W(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(X(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+c[1]:e[1]===s[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=eR([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});J(i,n),J(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){QP(a.color)&&!f.inRange&&(f.inRange={color:a.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function u(f,h,v){var d=f[h],p=f[v];d&&!p&&(p=f[v]={},dd(d,function(g,y){if(!!Ue.isValidType(y)){var m=p0.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";dd(this.stateList,function(y){var m=this.itemSize,_=f[y];_||(_=f[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&Z(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&Z(v)||(s?m[0]:[m[0],m[0]])),_.symbol=hd(_.symbol,function(S){return S==="none"?g:S});var x=_.symbolSize;if(x!=null){var b=-1/0;JP(x,function(S){S>b&&(b=S)}),_.symbolSize=hd(x,function(S){return tR(S,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(re);const ao=rR;var pd=[20,140],aR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=pd[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=pd[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):N(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),w(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Ot((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=e)&&(a[1]>=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=gd(this,"outOfRange",this.getExtent()),n=gd(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:e(v,d)})}for(var s=0,l=0,u=n.length,c=a.length;l<c&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var f=1;l<c;l++)(!n.length||n[n.length-1]<a[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=hr(ao.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(ao);function gd(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,n=(e[1]-e[0])/a,i=e[0],o=[],s=0;s<=a&&i<e[1];s++)o.push(i),i+=n;return o.push(e[1]),o}const nR=aR;var iR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,n,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,n,i)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,n=Nn(a.get("padding")||0),i=e.getBoundingRect();e.add(new le({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function c(v,d){s[v]=d}var f=o.controllerVisuals[i||o.getValueState(e)],h=Ue.prepareVisualTypes(f);return w(h,function(v){var d=f[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=f.__alphaForOpacity),Ue.dependsOn(v,a)&&d&&d.applyVisual(e,u,c)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api;uu(e,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t}(Me);const g0=iR;var yd=[["left","right","width"],["top","bottom","height"]];function y0(r,t,e){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=yd[o],l=[0,null,10],u={},c=0;c<3;c++)u[yd[1-o][c]]=l[c],u[s[c]]=c===2?e[0]:a[s[c]];var f=[["x","width",3],["y","height",0]][o],h=$e(u,i,a.padding);return s[(h.margin[f[2]]||0)+h[f[0]]+h[f[1]]*.5<i[f[1]]*.5?0:1]}function Ri(r,t){return w(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var _t=se,oR=w,md=Math.min,Fs=Math.max,sR=12,lR=6,uR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.doRender=function(e,a,n,i){this._api=n,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,n){if(!!a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),f=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new ae({style:ye(v,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":f,align:h==="horizontal"?f:"center",text:i})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=y0(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new ee;u.add(c),c.add(n.outOfRange=_d()),c.add(n.inRange=_d(null,s?Sd(this._orient):null,F(this._dragHandle,this,"all",!1),F(this._dragHandle,this,"all",!0))),c.setClipPath(new le({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=a.textStyleModel.getTextRect("\u56FD"),h=Fs(f.width,f.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),e.add(u)},t.prototype._createHandle=function(e,a,n,i,o,s){var l=F(this._dragHandle,this,n,!1),u=F(this._dragHandle,this,n,!0),c=ca(e.get("handleSize"),i[0]),f=Le(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=Sd(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){sr(y.event)}}),f.x=i[0]/2,f.useStyle(e.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),eu(f,!0),a.add(f);var v=this.visualMapModel.textStyleModel,d=new ae({cursor:h,draggable:!0,drift:l,onmousemove:function(y){sr(y.event)},ondragend:u,style:ye(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[c,0],g=this._shapes;g.handleThumbs[n]=f,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},t.prototype._createIndicator=function(e,a,n,i,o){var s=ca(e.get("indicatorSize"),n[0]),l=Le(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Mt){var c=l.style;l.useStyle(B({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);a.add(l);var f=this.visualMapModel.textStyleModel,h=new ae({silent:!0,invisible:!0,style:ye(f,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:lR)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(!!this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():xd(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[_t(a[0],n,i,!0),_t(a[1],n,i,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];Hr(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[_t(i[0],o,s,!0),_t(i[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Ul(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new ee(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(!!this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();oR([0,1],function(c){var f=o[c];f.setStyle("fill",a.handlesColor[c]),f.y=e[c];var h=_t(e[c],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=v/l[0],f.x=l[0]-v/2;var d=dt(n.handleLabelPoints[c],Pr(f,this.group));s[c].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(!!f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",h),d=this.getControllerVisual(e,"symbolSize"),p=_t(e,s,u,!0),g=l[0]-d/2,y={x:f.x,y:f.y};f.y=p,f.x=g;var m=dt(c.indicatorLabelPoint,Pr(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),b=this._orient,S=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:S?x:"middle",align:S?"center":x});var A={x:g,y:p,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(A,C),_.animateTo(T,C)}else f.attr(A),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this._api.enterBlur(M[D])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);i[1]=md(Fs(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var n=this.visualMapModel,i=n.itemSize;if(!!n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();e=md(Fs(o[0],e),o[1]);var l=cR(n,s,o),u=[e-l,e+l],c=_t(e,o,s,!0),f=[_t(u[0],o,s,!0),_t(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),a&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var h=this._hoverLinkDataIndices,v=[];(a||xd(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var d=b_(h,v);this._dispatchHighDown("downplay",Ri(d[0],n)),this._dispatchHighDown("highlight",Ri(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a=e.target,n=this.visualMapModel;if(!(!a||j(a).dataIndex==null)){var i=j(a),o=this.ecModel.getSeriesByIndex(i.seriesIndex);if(!!n.isTargetSeries(o)){var s=o.getData(i.dataType),l=s.getStore().get(n.getDataDimensionIndex(s),i.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this._api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ri(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=Pr(a,i?null:this.group);return N(e)?dt(e,o,n):co(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(g0);function _d(r,t,e,a){return new vr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){sr(n.event)},ondragend:a})}function cR(r,t,e){var a=sR/2,n=r.get("hoverLinkDataSize");return n&&(a=_t(n,t,e,!0)/2),a}function xd(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function Sd(r){return r==="vertical"?"ns-resize":"ew-resize"}const fR=uR;var vR={type:"selectDataRange",event:"dataRangeSelected",update:"update"},hR=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},dR=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(jL(a.stateList,a.targetVisuals,F(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(F(pR,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function pR(r,t,e,a){for(var n=t.targetVisuals[a],i=Ue.prepareVisualTypes(n),o={color:Tg(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=n[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(e,f,h)}return o.color;function f(v){return o[v]}function h(v,d){o[v]=d}}var wd=w;function gR(r){var t=r&&r.visualMap;N(t)||(t=t?[t]:[]),wd(t,function(e){if(!!e){ea(e,"splitList")&&!ea(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&N(a)&&wd(a,function(n){Y(n)&&(ea(n,"start")&&!ea(n,"min")&&(n.min=n.start),ea(n,"end")&&!ea(n,"max")&&(n.max=n.end))})}})}function ea(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var bd=!1;function m0(r){bd||(bd=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(vR,hR),w(dR,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(gR))}function yR(r){r.registerComponentModel(nR),r.registerComponentView(fR),m0(r)}var mR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],_R[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=Z(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=z(this._pieceList,function(l){return l=Z(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=Ue.listVisualTypes(),i=this.isCategory();w(e.pieces,function(s){w(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),w(a,function(s,l){var u=!1;w(this.stateList,function(c){u=u||o(e,c,l)||o(e.target,c,l)},this),!u&&w(this.stateList,function(c){(e[c]||(e[c]={}))[l]=p0.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,w(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var s=!1;w(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Z(e)},t.prototype.getValueState=function(e){var a=Ue.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Ue.findPieceIndex(l,n);c===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(c,f){var h=i.getRepresentValue({interval:c});f||(f=i.getValueState(h));var v=e(h,f);c[0]===-1/0?n[0]=v:c[1]===1/0?n[1]=v:a.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return w(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=hr(ao.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(ao),_R={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),yc(r),w(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;w(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),Ad(t,r)},pieces:function(r){var t=this.option;w(t.pieces,function(e,a){Y(e)||(e={value:e});var n={text:"",index:a};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var h=[["gte","gt","min"],["lte","lt","max"]][f],v=0;v<3&&o[f]==null;v++)o[f]=e[h[v]],s[f]=l[v],c[f]=v===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=Ue.retrieveVisuals(e),r.push(n)},this),Ad(t,r),yc(r),w(r,function(e){var a=e.close,n=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function Ad(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const xR=mR;var SR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,c=this._getViewData(),f=c.endsText,h=or(a.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],u,h,l),w(c.viewPieceList,function(v){var d=v.piece,p=new ee;p.onclick=F(this._onItemClick,this,d),this._enableHoverLink(p,v.indexInModelPieceList);var g=a.getRepresentValue(d);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(g);p.add(new ae({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(p)},this),f&&this._renderEndsText(e,f[1],u,h,l),Rr(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Ri(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return y0(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(!!a){var s=new ee,l=this.visualMapModel.textStyleModel;s.add(new ae({style:ye(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=z(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n){e.add(Le(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(!!i){var o=Z(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,w(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(g0);const wR=SR;function bR(r){r.registerComponentModel(xR),r.registerComponentView(wR),m0(r)}function a2(r){Ne(yR),Ne(bR)}var AR={label:{enabled:!0},decal:{show:!1}},Td=ne(),TR={};function CR(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=Z(AR);J(a.label,r.getLocaleModel().get("aria"),!1),J(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=U();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),Td(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(X(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=$c(h.ecModel,h.name,TR,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",x(_,m))}else{var d=h.getRawData(),p={},g=Td(h).scope;v.each(function(b){var S=v.getRawIndex(b);p[S]=b});var y=d.count();d.each(function(b){var S=p[b],A=d.getName(b)||b+"",T=$c(h.ecModel,A,g,y),C=v.getItemVisual(S,"decal");v.setItemVisual(S,"decal",x(C,T))})}function x(b,S){var A=b?B(B({},S),b):S;return A.dirty=!0,A}})}}function i(){var u=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=K(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],x=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(x,{seriesCount:h}),r.eachSeries(function(T,C){if(C<p){var M=void 0,D=T.get("name"),I=D?"withName":"withoutName";M=h>1?c.get(["series","multiple",I]):c.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),G=[],k=0;k<L.count();k++)if(k<v){var V=L.getName(k),$=L.getValues(k),q=c.get(["data",V?"withName":"withoutName"]);G.push(o(q,{name:V,value:$.join(R)}))}M+=G.join(R)+O,_.push(M)}});var b=c.getModel(["series","multiple","separator"]),S=b.get("middle"),A=b.get("end");g+=_.join(S)+A,f.setAttribute("aria-label",g)}}}function o(u,c){if(!W(u))return u;var f=u;return w(c,function(h,v){f=f.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),f}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"\u81EA\u5B9A\u4E49\u56FE"}}function MR(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},w(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function n2(r){r.registerPreprocessor(MR),r.registerVisual(r.PRIORITY.VISUAL.ARIA,CR)}function i2(r){r.registerPainter("canvas",t_)}function Cd(r){return N(r[0])}function Md(r,t){for(var e=[],a=r.length,n=0;n<a;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var i=t[n].length,o=void 0;for(o=0;o<i;o++)e[o%a].many.push(t[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var DR={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=o_(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function Ws(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=xa("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Cd(r)&&(u=r,c=t),Cd(t)&&(u=t,c=r);function f(y,m,_,x,b){var S=y.many,A=y.one;if(S.length===1&&!b){var T=m?S[0]:A,C=m?A:S[0];if(r_(T))f({many:[T],one:C},!0,_,x,!0);else{var M=s?K({delay:s(_,x)},l):l;a_(T,C,M),i(T,C,T,C,M)}}else for(var D=K({dividePath:DR[e],individualDelay:s&&function(G,k,V,$){return s(G+_,x)}},l),I=m?n_(S,A,D):i_(A,S,D),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,O=0;O<R;O++){var M=s?K({delay:s(O,R)},l):l;i(L[O],P[O],m?S[O]:y.one,m?y.one:S[O],M)}}for(var h=u?u===r:r.length>t.length,v=u?Md(c,u):Md(h?t:r,[h?r:t]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)f(v[p],h,g,d),g+=v[p].many.length}function Tr(r){if(!r)return[];if(N(r)){for(var t=[],e=0;e<r.length;e++)t.push(Tr(r[e]));return t}var a=[];return r.traverse(function(n){n instanceof De&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var _0=1e4,IR=ne();function LR(r){for(var t=r.dimensions,e=0;e<t.length;e++){var a=r.getDimensionInfo(t[e]);if(a&&a.otherDims.itemGroupId===0)return t[e]}}function Dd(r){var t=[];return w(r,function(e){var a=e.data;if(!(a.count()>_0))for(var n=a.getIndices(),i=LR(a),o=0;o<n.length;o++)t.push({data:a,dim:e.dim||i,divide:e.divide,dataIndex:o})}),t}function Hs(r,t,e){r.traverse(function(a){a instanceof De&&Ce(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function Us(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function ta(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function PR(r,t,e){var a=xa("update",e,t);a&&r.traverse(function(n){if(n instanceof un){var i=nx(n);i&&n.animateFrom({style:i},a)}})}function RR(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++){var n=r[a],i=t[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function x0(r,t,e){var a=Dd(r),n=Dd(t);function i(y,m,_,x,b){(_||y)&&m.animateFrom({style:_&&_!==y?B(B({},_.style),y.style):y.style},b)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(a),l=o(n),u=!1;function c(y,m){return function(_){var x=_.data,b=_.dataIndex;if(m)return x.getId(b);var S=x.hostModel&&x.hostModel.get("dataGroupId"),A=y?s||l:l||s,T=A&&x.getDimensionInfo(A),C=T&&T.ordinalMeta;if(T){var M=x.get(T.name,b);return C&&C.categories[M]||M+""}var D=x.getRawDataItem(b);return D&&D.groupId?D.groupId+"":S||x.getId(b)}}var f=RR(a,n),h={};if(!f)for(var v=0;v<n.length;v++){var d=n[v],p=d.data.getItemGraphicEl(d.dataIndex);p&&(h[p.id]=!0)}function g(y,m){var _=a[m],x=n[y],b=x.data.hostModel,S=_.data.getItemGraphicEl(_.dataIndex),A=x.data.getItemGraphicEl(x.dataIndex);if(S===A){A&&PR(A,x.dataIndex,b);return}S&&h[S.id]||A&&(ta(A),S?(ta(S),Us(S),u=!0,Ws(Tr(S),Tr(A),x.divide,b,y,i)):Hs(A,b,y))}new Sn(a,n,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(y,m){var _=n[y],x=_.data,b=x.hostModel,S=x.getItemGraphicEl(_.dataIndex),A=pe(z(m,function(T){return a[T].data.getItemGraphicEl(a[T].dataIndex)}),function(T){return T&&T!==S&&!h[T.id]});S&&(ta(S),A.length?(w(A,function(T){ta(T),Us(T)}),u=!0,Ws(Tr(A),Tr(S),_.divide,b,y,i)):Hs(S,b,_.dataIndex))}).updateOneToMany(function(y,m){var _=a[m],x=_.data.getItemGraphicEl(_.dataIndex);if(!(x&&h[x.id])){var b=pe(z(y,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==x}),S=n[y[0]].data.hostModel;b.length&&(w(b,function(A){return ta(A)}),x?(ta(x),Us(x),u=!0,Ws(Tr(x),Tr(b),_.divide,S,y[0],i)):w(b,function(A){return Hs(A,S,y[0])}))}}).updateManyToMany(function(y,m){new Sn(m,y,function(_){return a[_].data.getId(a[_].dataIndex)},function(_){return n[_].data.getId(n[_].dataIndex)}).update(function(_,x){g(y[_],m[x])}).execute()}).execute(),u&&w(t,function(y){var m=y.data,_=m.hostModel,x=_&&e.getViewOfSeriesModel(_),b=xa("update",_,0);x&&_.isAnimationEnabled()&&b&&b.duration>0&&x.group.traverse(function(S){S instanceof De&&!S.animators.length&&S.animateFrom({style:{opacity:0}},b)})})}function Id(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Ld(r){return N(r)?r.sort().join(","):r}function rr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function ER(r,t){var e=U(),a=U(),n=U();return w(r.oldSeries,function(i,o){var s=r.oldData[o],l=Id(i),u=Ld(l);a.set(u,s),N(l)&&w(l,function(c){n.set(c,{data:s,key:u})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.getData(),s=Id(i),l=Ld(s),u=a.get(l);if(u)e.set(l,{oldSeries:[{divide:rr(u),data:u}],newSeries:[{divide:rr(o),data:o}]});else if(N(s)){var c=[];w(s,function(v){var d=a.get(v);d&&c.push({divide:rr(d),data:d})}),c.length&&e.set(l,{oldSeries:c,newSeries:[{data:o,divide:rr(o)}]})}else{var f=n.get(s);if(f){var h=e.get(f.key);h||(h={oldSeries:[{data:f.data,divide:rr(f.data)}],newSeries:[]},e.set(f.key,h)),h.newSeries.push({data:o,divide:rr(o)})}}}}),e}function Pd(r,t){for(var e=0;e<r.length;e++){var a=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(a)return e}}function kR(r,t,e,a){var n=[],i=[];w(ce(r.from),function(o){var s=Pd(t.oldSeries,o);s>=0&&n.push({data:t.oldData[s],divide:rr(t.oldData[s]),dim:o.dimension})}),w(ce(r.to),function(o){var s=Pd(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({data:l,divide:rr(l),dim:o.dimension})}}),n.length>0&&i.length>0&&x0(n,i,a)}function o2(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){w(ce(a.seriesTransition),function(n){w(ce(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Mi]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=IR(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)w(ce(i),function(h){kR(h,n,a,e)});else{var o=ER(n,a);w(o.keys(),function(h){var v=o.get(h);x0(v.oldSeries,v.newSeries,e)})}w(a.updatedSeries,function(h){h[Mi]&&(h[Mi]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldData=[],c=0;c<s.length;c++){var f=s[c].getData();f.count()<_0&&(l.push(s[c]),u.push(f))}})}export{o2 as A,UR as B,t2 as a,QR as b,JR as c,ZR as d,XR as e,n2 as f,$R as g,zR as h,NR as i,VR as j,GR as k,HR as l,WR as m,YR as n,ZT as o,jR as p,r2 as q,a2 as r,e2 as s,xu as t,Ne as u,KR as v,qR as w,FR as x,i2 as y,BR as z};

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://gitlife.ru/oschina-mirror/likeadmin-likeadmin_java.git
git@gitlife.ru:oschina-mirror/likeadmin-likeadmin_java.git
oschina-mirror
likeadmin-likeadmin_java
likeadmin-likeadmin_java
1.3.4