Agriculture-front-end/dist/assets/index.2809c208.js

27 lines
616 KiB
JavaScript

import{ak as Fe,Z as pe,al as Ia,am as Ly,an as vu,j as G,ao as Pt,$ as My,ap as Yf,o as D,aq as K,ar as Py,as as Ry,ag as $,at as Xf,au as tl,av as Jt,aw as Kf,ax as Yt,ay as ky,az as It,aA as qf,aB as Ey,aC as Vy,aD as At,aE as Ny,aF as dn,aG as Oy,aH as Oi,aI as zy,K as lt,aJ as it,aK as Gy,aL as By,aM as Fy,aN as Hy,aO as Wy,aP as $y,aQ as Zy,aR as jf,aS as el,aT as Uy,aU as Yy,aV as Xy,aW as Ky,h as B,a1 as _t,aX as cu,aY as qy,aZ as _e,a_ as E,c as Ee,a$ as Y,a8 as Et,a5 as Tt,b0 as hu,b1 as Fr,b2 as Hr,b3 as ct,b4 as fe,b5 as bt,b6 as zt,b7 as xr,b8 as Wt,b9 as St,l as et,ba as Wr,bb as Qr,bc as ta,i as $r,bd as vr,be as fu,bf as pu,R as ft,a9 as be,bg as ue,bh as Zr,x as Q,bi as $t,bj as is,a6 as xt,bk as zi,B as vt,bl as jy,bm as Jf,aj as gn,bn as La,bo as Jy,bp as yn,bq as Qe,br as du,bs as Gi,bt as Bi,bu as Qf,bv as Qy,N as J,bw as tp,bx as ep,by as rp,af as ht,J as Gt,bz as F,bA as he,bB as tm,bC as em,bD as rm,bE as de,bF as ap,bG as ea,bH as ip,bI as mn,S as te,bJ as Z,bK as rl,bL as am,bM as Za,bN as Ct,bO as np,U as kt,C as Lt,bP as ee,m as we,A as Ua,w as dt,bQ as im,bR as xn,bS as Sn,O as nm,ab as op,ac as Pe,G as om,I as ge,bT as Ft,bU as Fi,bV as sm,bW as Gn,bX as lm,q as yt,a as bn,bY as ns,bZ as um,b_ as os,n as Ur,b$ as Kt,c0 as Ma,c1 as vm,c2 as cm,D as gt,c3 as Ya,c4 as hm,c5 as fm,c6 as ra,c7 as Hi,M as Rt,c8 as sp,c9 as Pa,E as Vt,ca as nt,cb as _n,u as tt,cc as pm,cd as ve,ce as Sr,cf as dm,cg as Ut,ch as Xa,ci as lp,cj as ce,ck as wn,cl as gu,cm as Ye,cn as up,co as W,cp as gm,cq as ym,cr as mm,cs as vp,ct as cp,cu as Xe,aa as br,cv as xm,cw as Sm,W as bm,V as _m,cx as hp,cy as gr,cz as Yr,cA as An,cB as wm,cC as Ka,cD as ga,cE as Am,cF as Xt,cG as al,cH as Tm,cI as Cm,X as fp,cJ as il,cK as Tn,ah as ss,cL as Dm,cM as pp,cN as Ce,ae as dp,cO as ls,cP as jt,cQ as Cn,cR as Im,cS as gp,cT as Ke,cU as Wi,cV as yu,cW as ya,cX as mu,cY as Lm,cZ as Bn,c_ as Pi,p as yp,d0 as Aa,d1 as $i,d2 as xu,d3 as Ze,d4 as qa,d5 as Mm,d6 as Pm,d7 as Nr,d8 as Su,d9 as Rm,da as us,db as km,dc as mp,dd as Em,ad as Vm,de as xp,df as Nm,dg as bu,dh as Om,di as zm,dj as Gm,dk as aa,dl as Ra,dm as Ie,dn as le,dp as nl,dq as zr,dr as Bm,ds as vs,dt as cs,du as Fm,dv as Fn,dw as Sp,dx as wt,dy as Hn,dz as Hm,dA as ma,dB as Wm,a7 as _u,dC as $m,dD as wu,dE as Zm,dF as li,dG as Um,T as Ym,dH as ka,dI as Xm,dJ as bp,dK as ja,dL as Au,dM as Km,dN as _p,dO as qm,dP as wp,dQ as Dn,dR as In,dS as ol,dT as Ap,dU as qt,dV as jm,dW as Jm,dX as Tu,Y as Qm,dY as t0,dZ as e0,d_ as r0,d$ as a0,e0 as i0,e1 as n0,e2 as o0,e3 as hr,e4 as hs,e5 as Cu,e6 as Tp,e7 as s0,e8 as l0,e9 as Cp,ea as u0,eb as Dp,ec as v0,ed as c0,ee as Wn,ef as Du,eg as Iu,eh as h0,_ as f0,ei as p0,ej as d0,ek as Ip,el as Lp,em as na,en as ui,eo as g0,ep as Mp,eq as Gr,er as y0,es as m0,et as x0,eu as Zi,ev as S0,ew as b0,ex as Ln,g as _0,ey as w0,ez as A0,eA as T0,eB as Lu,eC as Pp,eD as C0,eE as D0,eF as I0,eG as L0,eH as Ui,eI as sl,eJ as M0,eK as $n,eL as P0,b as R0,d as k0,f as E0}from"./linkSeriesData.e74eae00.js";var Zn=Math.sin,Un=Math.cos,Rp=Math.PI,tr=Math.PI*2,V0=180/Rp,N0=function(){function a(){}return a.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},a.prototype.moveTo=function(e,t){this._add("M",e,t)},a.prototype.lineTo=function(e,t){this._add("L",e,t)},a.prototype.bezierCurveTo=function(e,t,r,i,n,o){this._add("C",e,t,r,i,n,o)},a.prototype.quadraticCurveTo=function(e,t,r,i){this._add("Q",e,t,r,i)},a.prototype.arc=function(e,t,r,i,n,o){this.ellipse(e,t,r,r,0,i,n,o)},a.prototype.ellipse=function(e,t,r,i,n,o,s,l){var u=s-o,v=!l,c=Math.abs(u),h=Fe(c-tr)||(v?u>=tr:-u>=tr),f=u>0?u%tr:u%tr+tr,p=!1;h?p=!0:Fe(c)?p=!1:p=f>=Rp==!!v;var d=e+r*Un(o),g=t+i*Zn(o);this._start&&this._add("M",d,g);var y=Math.round(n*V0);if(h){var x=1/this._p,m=(v?1:-1)*(tr-x);this._add("A",r,i,y,1,+v,e+r*Un(o+m),t+i*Zn(o+m)),x>.01&&this._add("A",r,i,y,0,+v,d,g)}else{var S=e+r*Un(s),b=t+i*Zn(s);this._add("A",r,i,y,+p,+v,S,b)}},a.prototype.rect=function(e,t,r,i){this._add("M",e,t),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(e,t,r,i,n,o,s,l,u){for(var v=[],c=this._p,h=1;h<arguments.length;h++){var f=arguments[h];if(isNaN(f)){this._invalid=!0;return}v.push(Math.round(f*c)/c)}this._d.push(e+v.join(" ")),this._start=e==="Z"},a.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},a.prototype.getStr=function(){return this._str},a}();const kp=N0;var Ta="none",O0=Math.round;function z0(a){var e=a.fill;return e!=null&&e!==Ta}function G0(a){var e=a.stroke;return e!=null&&e!==Ta}var fs=["lineCap","miterLimit","lineJoin"],B0=G(fs,function(a){return"stroke-"+a.toLowerCase()});function F0(a,e,t,r){var i=e.opacity==null?1:e.opacity;if(t instanceof pe){a("opacity",i);return}if(z0(e)){var n=Ia(e.fill);a("fill",n.color);var o=e.fillOpacity!=null?e.fillOpacity*n.opacity*i:n.opacity*i;(r||o<1)&&a("fill-opacity",o)}else a("fill",Ta);if(G0(e)){var s=Ia(e.stroke);a("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,v=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,c=e.strokeFirst;if((r||u!==1)&&a("stroke-width",u),(r||c)&&a("paint-order",c?"stroke":"fill"),(r||v<1)&&a("stroke-opacity",v),e.lineDash){var h=Ly(t),f=h[0],p=h[1];f&&(p=O0(p||0),a("stroke-dasharray",f.join(",")),(p||r)&&a("stroke-dashoffset",p))}else r&&a("stroke-dasharray",Ta);for(var d=0;d<fs.length;d++){var g=fs[d];if(r||e[g]!==vu[g]){var y=e[g]||vu[g];y&&a(B0[d],y)}}}else r&&a("stroke",Ta)}var Ep="http://www.w3.org/2000/svg",Vp="http://www.w3.org/1999/xlink",H0="http://www.w3.org/2000/xmlns/",W0="http://www.w3.org/XML/1998/namespace",Mu="ecmeta_";function Np(a){return document.createElementNS(Ep,a)}function Ot(a,e,t,r,i){return{tag:a,attrs:t||{},children:r,text:i,key:e}}function $0(a,e){var t=[];if(e)for(var r in e){var i=e[r],n=r;i!==!1&&(i!==!0&&i!=null&&(n+='="'+i+'"'),t.push(n))}return"<"+a+" "+t.join(" ")+">"}function Z0(a){return"</"+a+">"}function ll(a,e){e=e||{};var t=e.newline?`
`:"";function r(i){var n=i.children,o=i.tag,s=i.attrs,l=i.text;return $0(o,s)+(o!=="style"?My(l):l||"")+(n?""+t+G(n,function(u){return r(u)}).join(t)+t:"")+Z0(o)}return r(a)}function U0(a,e,t){t=t||{};var r=t.newline?`
`:"",i=" {"+r,n=r+"}",o=G(Pt(a),function(l){return l+i+G(Pt(a[l]),function(u){return u+":"+a[l][u]+";"}).join(r)+n}).join(r),s=G(Pt(e),function(l){return"@keyframes "+l+i+G(Pt(e[l]),function(u){return u+i+G(Pt(e[l][u]),function(v){var c=e[l][u][v];return v==="d"&&(c='path("'+c+'")'),v+":"+c+";"}).join(r)+n}).join(r)+n}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function ps(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Pu(a,e,t,r){return Ot("svg","root",{width:a,height:e,xmlns:Ep,"xmlns:xlink":Vp,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+a+" "+e:!1},t)}var Y0=0;function Op(){return Y0++}var Ru={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},rr="transform-origin";function X0(a,e,t){var r=$({},a.shape);$(r,e),a.buildPath(t,r);var i=new kp;return i.reset(Kf(a)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function K0(a,e){var t=e.originX,r=e.originY;(t||r)&&(a[rr]=t+"px "+r+"px")}var q0={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function zp(a,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=a,t}function j0(a,e,t){var r=a.shape.paths,i={},n,o;if(D(r,function(l){var u=ps(t.zrId);u.animation=!0,Mn(l,{},u,!0);var v=u.cssAnims,c=u.cssNodes,h=Pt(v),f=h.length;if(!!f){o=h[f-1];var p=v[o];for(var d in p){var g=p[d];i[d]=i[d]||{d:""},i[d].d+=g.d||""}for(var y in c){var x=c[y].animation;x.indexOf(o)>=0&&(n=x)}}}),!!n){e.d=!1;var s=zp(i,t);return n.replace(o,s)}}function ku(a){return K(a)?Ru[a]?"cubic-bezier("+Ru[a]+")":Py(a)?a:"":""}function Mn(a,e,t,r){var i=a.animators,n=i.length,o=[];if(a instanceof Yf){var s=j0(a,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var v=i[u],c=[v.getMaxTime()/1e3+"s"],h=ku(v.getClip().easing),f=v.getDelay();h?c.push(h):c.push("linear"),f&&c.push(f/1e3+"s"),v.getLoop()&&c.push("infinite");var p=c.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(v)}function d(x){var m=x[1],S=m.length,b={},_={},w={},A="animation-timing-function";function T(U,ut,st){for(var pt=U.getTracks(),Nt=U.getMaxTime(),Bt=0;Bt<pt.length;Bt++){var mt=pt[Bt];if(mt.needsAnimate()){var Mt=mt.keyframes,Dt=mt.propName;if(st&&(Dt=st(Dt)),Dt)for(var Zt=0;Zt<Mt.length;Zt++){var Ae=Mt[Zt],Qt=Math.round(Ae.time/Nt*100)+"%",si=ku(Ae.easing),Ve=Ae.rawValue;(K(Ve)||Yt(Ve))&&(ut[Qt]=ut[Qt]||{},ut[Qt][Dt]=Ae.rawValue,si&&(ut[Qt][A]=si))}}}}for(var C=0;C<S;C++){var I=m[C],L=I.targetName;L?L==="shape"&&T(I,_):!r&&T(I,b)}for(var M in b){var P={};Ry(P,a),$(P,b[M]);var R=Xf(P),k=b[M][A];w[M]=R?{transform:R}:{},K0(w[M],P),k&&(w[M][A]=k)}var N,V=!0;for(var M in _){w[M]=w[M]||{};var O=!N,k=_[M][A];O&&(N=new tl);var z=N.len();N.reset(),w[M].d=X0(a,_[M],N);var H=N.len();if(!O&&z!==H){V=!1;break}k&&(w[M][A]=k)}if(!V)for(var M in w)delete w[M].d;if(!r)for(var C=0;C<S;C++){var I=m[C],L=I.targetName;L==="style"&&T(I,w,function(pt){return q0[pt]})}for(var q=Pt(w),j=!0,X,C=1;C<q.length;C++){var at=q[C-1],ot=q[C];if(w[at][rr]!==w[ot][rr]){j=!1;break}X=w[at][rr]}if(j&&X){for(var M in w)w[M][rr]&&delete w[M][rr];e[rr]=X}if(Jt(q,function(U){return Pt(w[U]).length>0}).length){var rt=zp(w,t);return rt+" "+x[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+Op();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function J0(a,e,t){if(!a.ignore)if(a.isSilent()){var r={"pointer-events":"none"};Eu(r,e,t,!0)}else{var i=a.states.emphasis&&a.states.emphasis.style?a.states.emphasis.style:{},n=i.fill;if(!n){var o=a.style&&a.style.fill,s=a.states.select&&a.states.select.style&&a.states.select.style.fill,l=a.currentStates.indexOf("select")>=0&&s||o;l&&(n=ky(l))}var u=i.lineWidth;if(u){var v=!i.strokeNoScale&&a.transform?a.transform[0]:1;u=u/v}var r={cursor:"pointer"};n&&(r.fill=n),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),Eu(r,e,t,!0)}}function Eu(a,e,t,r){var i=JSON.stringify(a),n=t.cssStyleCache[i];n||(n=t.zrId+"-cls-"+Op(),t.cssStyleCache[i]=n,t.cssNodes["."+n+(r?":hover":"")]=a),e.class=e.class?e.class+" "+n:n}var Ea=Math.round;function Gp(a){return a&&K(a.src)}function Bp(a){return a&&it(a.toDataURL)}function ul(a,e,t,r){F0(function(i,n){var o=i==="fill"||i==="stroke";o&&jf(n)?Hp(e,a,i,r):o&&el(n)?Wp(t,a,i,r):o&&n==="none"?a[i]="transparent":a[i]=n},e,t,!1),nx(t,a,r)}function vl(a,e){var t=Uy(e);t&&(t.each(function(r,i){r!=null&&(a[(Mu+i).toLowerCase()]=r+"")}),e.isSilent()&&(a[Mu+"silent"]="true"))}function Vu(a){return Fe(a[0]-1)&&Fe(a[1])&&Fe(a[2])&&Fe(a[3]-1)}function Q0(a){return Fe(a[4])&&Fe(a[5])}function cl(a,e,t){if(e&&!(Q0(e)&&Vu(e))){var r=t?10:1e4;a.transform=Vu(e)?"translate("+Ea(e[4]*r)/r+" "+Ea(e[5]*r)/r+")":Yy(e)}}function Nu(a,e,t){for(var r=a.points,i=[],n=0;n<r.length;n++)i.push(Ea(r[n][0]*t)/t),i.push(Ea(r[n][1]*t)/t);e.points=i.join(" ")}function Ou(a){return!a.smooth}function tx(a){var e=G(a,function(t){return typeof t=="string"?[t,t]:t});return function(t,r,i){for(var n=0;n<e.length;n++){var o=e[n],s=t[o[0]];s!=null&&(r[o[1]]=Ea(s*i)/i)}}}var ex={circle:[tx(["cx","cy","r"])],polyline:[Nu,Ou],polygon:[Nu,Ou]};function rx(a){for(var e=a.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function Fp(a,e){var t=a.style,r=a.shape,i=ex[a.type],n={},o=e.animation,s="path",l=a.style.strokePercent,u=e.compress&&Kf(a)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&rx(a))&&!(l<1)){s=a.type;var v=Math.pow(10,u);i[0](r,n,v)}else{var c=!a.path||a.shapeChanged();a.path||a.createPathProxy();var h=a.path;c&&(h.beginPath(),a.buildPath(h,a.shape),a.pathUpdated());var f=h.getVersion(),p=a,d=p.__svgPathBuilder;(p.__svgPathVersion!==f||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new kp),d.reset(u),h.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=f,p.__svgPathStrokePercent=l),n.d=d.getStr()}return cl(n,a.transform),ul(n,t,a,e),vl(n,a),e.animation&&Mn(a,n,e),e.emphasis&&J0(a,n,e),Ot(s,a.id+"",n)}function ax(a,e){var t=a.style,r=t.image;if(r&&!K(r)&&(Gp(r)?r=r.src:Bp(r)&&(r=r.toDataURL())),!!r){var i=t.x||0,n=t.y||0,o=t.width,s=t.height,l={href:r,width:o,height:s};return i&&(l.x=i),n&&(l.y=n),cl(l,a.transform),ul(l,t,a,e),vl(l,a),e.animation&&Mn(a,l,e),Ot("image",a.id+"",l)}}function ix(a,e){var t=a.style,r=t.text;if(r!=null&&(r+=""),!(!r||isNaN(t.x)||isNaN(t.y))){var i=t.font||Gy,n=t.x||0,o=By(t.y||0,Fy(i),t.textBaseline),s=Hy[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Wy(t)){var u="",v=t.fontStyle,c=$y(t.fontSize);if(!parseFloat(c))return;var h=t.fontFamily||Zy,f=t.fontWeight;u+="font-size:"+c+";font-family:"+h+";",v&&v!=="normal"&&(u+="font-style:"+v+";"),f&&f!=="normal"&&(u+="font-weight:"+f+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),cl(l,a.transform),ul(l,t,a,e),vl(l,a),e.animation&&Mn(a,l,e),Ot("text",a.id+"",l,void 0,r)}}function zu(a,e){if(a instanceof It)return Fp(a,e);if(a instanceof pe)return ax(a,e);if(a instanceof qf)return ix(a,e)}function nx(a,e,t){var r=a.style;if(Xy(r)){var i=Ky(a),n=t.shadowCache,o=n[i];if(!o){var s=a.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var v=r.shadowOffsetX||0,c=r.shadowOffsetY||0,h=r.shadowBlur,f=Ia(r.shadowColor),p=f.opacity,d=f.color,g=h/2/l,y=h/2/u,x=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Ot("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ot("feDropShadow","",{dx:v/l,dy:c/u,stdDeviation:x,"flood-color":d,"flood-opacity":p})]),n[i]=o}e.filter=dn(o)}}function Hp(a,e,t,r){var i=a[t],n,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Ey(i))n="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Vy(i))n="radialGradient",o.cx=At(i.x,.5),o.cy=At(i.y,.5),o.r=At(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,v=s.length;u<v;++u){var c=Ny(s[u].offset)*100+"%",h=s[u].color,f=Ia(h),p=f.color,d=f.opacity,g={offset:c};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(Ot("stop",u+"",g))}var y=Ot(n,"",o,l),x=ll(y),m=r.gradientCache,S=m[x];S||(S=r.zrId+"-g"+r.gradientIdx++,m[x]=S,o.id=S,r.defs[S]=Ot(n,S,o,l)),e[t]=dn(S)}function Wp(a,e,t,r){var i=a.style[t],n=a.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",v=s==="repeat-y",c;if(Oy(i)){var h=i.imageWidth,f=i.imageHeight,p=void 0,d=i.image;if(K(d)?p=d:Gp(d)?p=d.src:Bp(d)&&(p=d.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Oi(h,g),Oi(f,g)}else if(h==null||f==null){var y=function(C,I){if(C){var L=C.elm,M=h||I.width,P=f||I.height;C.tag==="pattern"&&(u?(P=1,M/=n.width):v&&(M=1,P/=n.height)),C.attrs.width=M,C.attrs.height=P,L&&(L.setAttribute("width",M),L.setAttribute("height",P))}},x=zy(p,null,a,function(C){l||y(_,C),y(c,C)});x&&x.width&&x.height&&(h=h||x.width,f=f||x.height)}c=Ot("image","img",{href:p,width:h,height:f}),o.width=h,o.height=f}else i.svgElement&&(c=lt(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(!!c){var m,S;l?m=S=1:u?(S=1,m=o.width/n.width):v?(m=1,S=o.height/n.height):o.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(o.width=m),S!=null&&!isNaN(S)&&(o.height=S);var b=Xf(i);b&&(o.patternTransform=b);var _=Ot("pattern","",o,[c]),w=ll(_),A=r.patternCache,T=A[w];T||(T=r.zrId+"-p"+r.patternIdx++,A[w]=T,o.id=T,_=r.defs[T]=Ot("pattern",T,o,[c])),e[t]=dn(T)}}function ox(a,e,t){var r=t.clipPathCache,i=t.defs,n=r[a.id];if(!n){n=t.zrId+"-c"+t.clipPathIdx++;var o={id:n};r[a.id]=n,i[n]=Ot("clipPath",n,o,[Fp(a,t)])}e["clip-path"]=dn(n)}function Gu(a){return document.createTextNode(a)}function sr(a,e,t){a.insertBefore(e,t)}function Bu(a,e){a.removeChild(e)}function Fu(a,e){a.appendChild(e)}function $p(a){return a.parentNode}function Zp(a){return a.nextSibling}function Yn(a,e){a.textContent=e}var Hu=58,sx=120,lx=Ot("","");function ds(a){return a===void 0}function Se(a){return a!==void 0}function ux(a,e,t){for(var r={},i=e;i<=t;++i){var n=a[i].key;n!==void 0&&(r[n]=i)}return r}function xa(a,e){var t=a.key===e.key,r=a.tag===e.tag;return r&&t}function Va(a){var e,t=a.children,r=a.tag;if(Se(r)){var i=a.elm=Np(r);if(hl(lx,a),B(t))for(e=0;e<t.length;++e){var n=t[e];n!=null&&Fu(i,Va(n))}else Se(a.text)&&!_t(a.text)&&Fu(i,Gu(a.text))}else a.elm=Gu(a.text);return a.elm}function Up(a,e,t,r,i){for(;r<=i;++r){var n=t[r];n!=null&&sr(a,Va(n),e)}}function Yi(a,e,t,r){for(;t<=r;++t){var i=e[t];if(i!=null)if(Se(i.tag)){var n=$p(i.elm);Bu(n,i.elm)}else Bu(a,i.elm)}}function hl(a,e){var t,r=e.elm,i=a&&a.attrs||{},n=e.attrs||{};if(i!==n){for(t in n){var o=n[t],s=i[t];s!==o&&(o===!0?r.setAttribute(t,""):o===!1?r.removeAttribute(t):t==="style"?r.style.cssText=o:t.charCodeAt(0)!==sx?r.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?r.setAttributeNS(H0,t,o):t.charCodeAt(3)===Hu?r.setAttributeNS(W0,t,o):t.charCodeAt(5)===Hu?r.setAttributeNS(Vp,t,o):r.setAttribute(t,o))}for(t in i)t in n||r.removeAttribute(t)}}function vx(a,e,t){for(var r=0,i=0,n=e.length-1,o=e[0],s=e[n],l=t.length-1,u=t[0],v=t[l],c,h,f,p;r<=n&&i<=l;)o==null?o=e[++r]:s==null?s=e[--n]:u==null?u=t[++i]:v==null?v=t[--l]:xa(o,u)?(kr(o,u),o=e[++r],u=t[++i]):xa(s,v)?(kr(s,v),s=e[--n],v=t[--l]):xa(o,v)?(kr(o,v),sr(a,o.elm,Zp(s.elm)),o=e[++r],v=t[--l]):xa(s,u)?(kr(s,u),sr(a,s.elm,o.elm),s=e[--n],u=t[++i]):(ds(c)&&(c=ux(e,r,n)),h=c[u.key],ds(h)?sr(a,Va(u),o.elm):(f=e[h],f.tag!==u.tag?sr(a,Va(u),o.elm):(kr(f,u),e[h]=void 0,sr(a,f.elm,o.elm))),u=t[++i]);(r<=n||i<=l)&&(r>n?(p=t[l+1]==null?null:t[l+1].elm,Up(a,p,t,i,l)):Yi(a,e,r,n))}function kr(a,e){var t=e.elm=a.elm,r=a.children,i=e.children;a!==e&&(hl(a,e),ds(e.text)?Se(r)&&Se(i)?r!==i&&vx(t,r,i):Se(i)?(Se(a.text)&&Yn(t,""),Up(t,null,i,0,i.length-1)):Se(r)?Yi(t,r,0,r.length-1):Se(a.text)&&Yn(t,""):a.text!==e.text&&(Se(r)&&Yi(t,r,0,r.length-1),Yn(t,e.text)))}function cx(a,e){if(xa(a,e))kr(a,e);else{var t=a.elm,r=$p(t);Va(e),r!==null&&(sr(r,e.elm,Zp(t)),Yi(r,[a],0,0))}return e}var hx=0,fx=function(){function a(e,t,r){if(this.type="svg",this.refreshHover=Wu(),this.configLayer=Wu(),this.storage=t,this._opts=r=$({},r),this.root=e,this._id="zr"+hx++,this._oldVNode=Pu(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Np("svg");hl(null,this._oldVNode),i.appendChild(n),e.appendChild(i)}this.resize(r.width,r.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",cx(this._oldVNode,e),this._oldVNode=e}},a.prototype.renderOneToVNode=function(e){return zu(e,ps(this._id))},a.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,i=this._height,n=ps(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis;var o=[],s=this._bgVNode=px(r,i,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=Ot("g","main",{},[]);this._paintList(t,n,l?l.children:o),l&&o.push(l);var u=G(Pt(n.defs),function(h){return n.defs[h]});if(u.length&&o.push(Ot("defs","defs",{},u)),e.animation){var v=U0(n.cssNodes,n.cssAnims,{newline:!0});if(v){var c=Ot("style","stl",{},[],v);o.push(c)}}return Pu(r,i,o,e.useViewBox)},a.prototype.renderToString=function(e){return e=e||{},ll(this.renderToVNode({animation:At(e.cssAnimation,!0),emphasis:At(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:At(e.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(e,t,r){for(var i=e.length,n=[],o=0,s,l,u=0,v=0;v<i;v++){var c=e[v];if(!c.invisible){var h=c.__clipPaths,f=h&&h.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(f-1,p-1);d>=0&&!(h&&l&&h[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=n[o-1];for(var y=d+1;y<f;y++){var x={};ox(h[y],x,t);var m=Ot("g","clip-g-"+u++,x,[]);(s?s.children:r).push(m),n[o++]=m,s=m}l=h;var S=zu(c,t);S&&(s?s.children:r).push(S)}}},a.prototype.resize=function(e,t){var r=this._opts,i=this.root,n=this._viewport;if(e!=null&&(r.width=e),t!=null&&(r.height=t),i&&n&&(n.style.display="none",e=cu(i,0,r),t=cu(i,1,r),n.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,n){var o=n.style;o.width=e+"px",o.height=t+"px"}if(el(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},a.prototype.getWidth=function(){return this._width},a.prototype.getHeight=function(){return this._height},a.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},a.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},a.prototype.toDataURL=function(e){var t=this.renderToString(),r="data:image/svg+xml;";return e?(t=qy(t),t&&r+"base64,"+t):r+"charset=UTF-8,"+encodeURIComponent(t)},a}();function Wu(a){return function(){}}function px(a,e,t,r){var i;if(t&&t!=="none")if(i=Ot("rect","bg",{width:a,height:e,x:"0",y:"0"}),jf(t))Hp({fill:t},i.attrs,"fill",r);else if(el(t))Wp({style:{fill:t},dirty:_e,getBoundingRect:function(){return{width:a,height:e}}},i.attrs,"fill",r);else{var n=Ia(t),o=n.color,s=n.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}const dx=fx;function gx(a){a.registerPainter("svg",dx)}var yx=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Ee(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var r=new Y,i=Et("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);r.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=t.itemHeight*.8,u=Et(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);r.add(u),u.setStyle(t.itemStyle);var v=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=v*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Tt);const mx=yx;function Xr(a,e){var t=a.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var i=hu(a,e,t[0]);return i!=null?i+"":null}else if(r){for(var n=[],o=0;o<t.length;o++)n.push(hu(a,e,t[o]));return n.join(" ")}}function Yp(a,e){var t=a.mapDimensionsAll("defaultedLabel");if(!B(e))return e+"";for(var r=[],i=0;i<t.length;i++){var n=a.getDimensionIndex(t[i]);n>=0&&r.push(e[n])}return r.join(" ")}var xx=function(a){E(e,a);function e(t,r,i,n){var o=a.call(this)||this;return o.updateData(t,r,i,n),o}return e.prototype._createSymbol=function(t,r,i,n,o){this.removeAll();var s=Et(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=Sx,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Fr(this.childAt(0))},e.prototype.downplay=function(){Hr(this.childAt(0))},e.prototype.setZ=function(t,r){var i=this.childAt(0);i.zlevel=t,i.z=r},e.prototype.setDraggable=function(t,r){var i=this.childAt(0);i.draggable=t,i.cursor=!r&&t?"move":i.cursor},e.prototype.updateData=function(t,r,i,n){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,v=n&&n.disableAnimation;if(u){var c=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,c)}else{var h=this.childAt(0);h.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};v?h.attr(f):ct(h,f,s,r),fe(h)}if(this._updateCommon(t,r,l,i,n),u){var h=this.childAt(0);if(!v){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,bt(h,f,s,r)}}v&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,i,n,o){var s=this.childAt(0),l=t.hostModel,u,v,c,h,f,p,d,g,y;if(n&&(u=n.emphasisItemStyle,v=n.blurItemStyle,c=n.selectItemStyle,h=n.focus,f=n.blurScope,d=n.labelStatesModels,g=n.hoverScale,y=n.cursorStyle,p=n.emphasisDisabled),!n||t.hasItemOption){var x=n&&n.itemModel?n.itemModel:t.getItemModel(r),m=x.getModel("emphasis");u=m.getModel("itemStyle").getItemStyle(),c=x.getModel(["select","itemStyle"]).getItemStyle(),v=x.getModel(["blur","itemStyle"]).getItemStyle(),h=m.get("focus"),f=m.get("blurScope"),p=m.get("disabled"),d=zt(x),g=m.getShallow("scale"),y=x.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=xr(t.getItemVisual(r,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var _=t.getItemVisual(r,"style"),w=_.fill;if(s instanceof pe){var A=s.style;s.useStyle($({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},_))}else s.__isEmptyBrush?s.useStyle($({},_)):s.useStyle(_),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=t.getItemVisual(r,"liftZ"),C=this._z2;T!=null?C==null&&(this._z2=s.z2,s.z2+=T):C!=null&&(s.z2=C,this._z2=null);var I=o&&o.useNameLabel;Wt(s,d,{labelFetcher:l,labelDataIndex:r,defaultText:L,inheritColor:w,defaultOpacity:_.opacity});function L(R){return I?t.getName(R):Xr(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=v;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),St(this,h,f,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var n=this.childAt(0),o=et(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&Wr(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Wr(n,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return Qr(t.getItemVisual(r,"symbolSize"))},e}(Y);function Sx(a,e){this.parent.drift(a,e)}const Ja=xx;function Xn(a,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&a.getItemVisual(t,"symbol")!=="none"}function $u(a){return a!=null&&!_t(a)&&(a={isIgnore:a}),a||{}}function Zu(a){var e=a.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:zt(e),cursorStyle:e.get("cursor")}}var bx=function(){function a(e){this.group=new Y,this._SymbolCtor=e||Ja}return a.prototype.updateData=function(e,t){this._progressiveEls=null,t=$u(t);var r=this.group,i=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Zu(e),u={disableAnimation:s},v=t.getSymbolPoint||function(c){return e.getItemLayout(c)};n||r.removeAll(),e.diff(n).add(function(c){var h=v(c);if(Xn(e,h,c,t)){var f=new o(e,c,l,u);f.setPosition(h),e.setItemGraphicEl(c,f),r.add(f)}}).update(function(c,h){var f=n.getItemGraphicEl(h),p=v(c);if(!Xn(e,p,c,t)){r.remove(f);return}var d=e.getItemVisual(c,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==d)r.remove(f),f=new o(e,c,l,u),f.setPosition(p);else{f.updateData(e,c,l,u);var y={x:p[0],y:p[1]};s?f.attr(y):ct(f,y,i)}r.add(f),e.setItemGraphicEl(c,f)}).remove(function(c){var h=n.getItemGraphicEl(c);h&&h.fadeOut(function(){r.remove(h)},i)}).execute(),this._getSymbolPoint=v,this._data=e},a.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,i){var n=e._getSymbolPoint(i);r.setPosition(n),r.markRedraw()})},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Zu(e),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=$u(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var o=t.getItemLayout(n);if(Xn(t,o,n,r)){var s=new this._SymbolCtor(t,n,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},a.prototype.eachRendered=function(e){ta(this._progressiveEls||this.group,e)},a.prototype.remove=function(e){var t=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},r.hostModel)}):t.removeAll()},a}();const Qa=bx;function Xp(a,e,t){var r=a.getBaseAxis(),i=a.getOtherAxis(r),n=_x(i,t),o=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),v=s==="x"||s==="radius"?1:0,c=G(a.dimensions,function(p){return e.mapDimension(p)}),h=!1,f=e.getCalculationInfo("stackResultDimension");return $r(e,c[0])&&(h=!0,c[0]=f),$r(e,c[1])&&(h=!0,c[1]=f),{dataDimsForPoint:c,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:v,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function _x(a,e){var t=0,r=a.scale.getExtent();return e==="start"?t=r[0]:e==="end"?t=r[1]:Yt(e)&&!isNaN(e)?t=e:r[0]>0?t=r[0]:r[1]<0&&(t=r[1]),t}function Kp(a,e,t,r){var i=NaN;a.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=a.valueStart);var n=a.baseDataOffset,o=[];return o[n]=t.get(a.baseDim,r),o[1-n]=i,e.dataToPoint(o)}function wx(a,e){var t=[];return e.diff(a).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function Ax(a,e,t,r,i,n,o,s){for(var l=wx(a,e),u=[],v=[],c=[],h=[],f=[],p=[],d=[],g=Xp(i,e,o),y=a.getLayout("points")||[],x=e.getLayout("points")||[],m=0;m<l.length;m++){var S=l[m],b=!0,_=void 0,w=void 0;switch(S.cmd){case"=":_=S.idx*2,w=S.idx1*2;var A=y[_],T=y[_+1],C=x[w],I=x[w+1];(isNaN(A)||isNaN(T))&&(A=C,T=I),u.push(A,T),v.push(C,I),c.push(t[_],t[_+1]),h.push(r[w],r[w+1]),d.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,M=g.dataDimsForPoint,P=i.dataToPoint([e.get(M[0],L),e.get(M[1],L)]);w=L*2,u.push(P[0],P[1]),v.push(x[w],x[w+1]);var R=Kp(g,i,e,L);c.push(R[0],R[1]),h.push(r[w],r[w+1]),d.push(e.getRawIndex(L));break;case"-":b=!1}b&&(f.push(S),p.push(p.length))}p.sort(function(at,ot){return d[at]-d[ot]});for(var k=u.length,N=vr(k),V=vr(k),O=vr(k),z=vr(k),H=[],m=0;m<p.length;m++){var q=p[m],j=m*2,X=q*2;N[j]=u[X],N[j+1]=u[X+1],V[j]=v[X],V[j+1]=v[X+1],O[j]=c[X],O[j+1]=c[X+1],z[j]=h[X],z[j+1]=h[X+1],H[m]=f[q]}return{current:N,next:V,stackedOnCurrent:O,stackedOnNext:z,status:H}}var Ne=Math.min,Oe=Math.max;function fr(a,e){return isNaN(a)||isNaN(e)}function gs(a,e,t,r,i,n,o,s,l){for(var u,v,c,h,f,p,d=t,g=0;g<r;g++){var y=e[d*2],x=e[d*2+1];if(d>=i||d<0)break;if(fr(y,x)){if(l){d+=n;continue}break}if(d===t)a[n>0?"moveTo":"lineTo"](y,x),c=y,h=x;else{var m=y-u,S=x-v;if(m*m+S*S<.5){d+=n;continue}if(o>0){for(var b=d+n,_=e[b*2],w=e[b*2+1];_===y&&w===x&&g<r;)g++,b+=n,d+=n,_=e[b*2],w=e[b*2+1],y=e[d*2],x=e[d*2+1],m=y-u,S=x-v;var A=g+1;if(l)for(;fr(_,w)&&A<r;)A++,b+=n,_=e[b*2],w=e[b*2+1];var T=.5,C=0,I=0,L=void 0,M=void 0;if(A>=r||fr(_,w))f=y,p=x;else{C=_-u,I=w-v;var P=y-u,R=_-y,k=x-v,N=w-x,V=void 0,O=void 0;if(s==="x"){V=Math.abs(P),O=Math.abs(R);var z=C>0?1:-1;f=y-z*V*o,p=x,L=y+z*O*o,M=x}else if(s==="y"){V=Math.abs(k),O=Math.abs(N);var H=I>0?1:-1;f=y,p=x-H*V*o,L=y,M=x+H*O*o}else V=Math.sqrt(P*P+k*k),O=Math.sqrt(R*R+N*N),T=O/(O+V),f=y-C*o*(1-T),p=x-I*o*(1-T),L=y+C*o*T,M=x+I*o*T,L=Ne(L,Oe(_,y)),M=Ne(M,Oe(w,x)),L=Oe(L,Ne(_,y)),M=Oe(M,Ne(w,x)),C=L-y,I=M-x,f=y-C*V/O,p=x-I*V/O,f=Ne(f,Oe(u,y)),p=Ne(p,Oe(v,x)),f=Oe(f,Ne(u,y)),p=Oe(p,Ne(v,x)),C=y-f,I=x-p,L=y+C*O/V,M=x+I*O/V}a.bezierCurveTo(c,h,f,p,y,x),c=L,h=M}else a.lineTo(y,x)}u=y,v=x,d+=n}return g}var qp=function(){function a(){this.smooth=0,this.smoothConstraint=!0}return a}(),Tx=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qp},e.prototype.buildPath=function(t,r){var i=r.points,n=0,o=i.length/2;if(r.connectNulls){for(;o>0&&fr(i[o*2-2],i[o*2-1]);o--);for(;n<o&&fr(i[n*2],i[n*2+1]);n++);}for(;n<o;)n+=gs(t,i,n,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(t,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,n=i.data,o=tl.CMD,s,l,u=r==="x",v=[],c=0;c<n.length;){var h=n[c++],f=void 0,p=void 0,d=void 0,g=void 0,y=void 0,x=void 0,m=void 0;switch(h){case o.M:s=n[c++],l=n[c++];break;case o.L:if(f=n[c++],p=n[c++],m=u?(t-s)/(f-s):(t-l)/(p-l),m<=1&&m>=0){var S=u?(p-l)*m+l:(f-s)*m+s;return u?[t,S]:[S,t]}s=f,l=p;break;case o.C:f=n[c++],p=n[c++],d=n[c++],g=n[c++],y=n[c++],x=n[c++];var b=u?fu(s,f,d,y,t,v):fu(l,p,g,x,t,v);if(b>0)for(var _=0;_<b;_++){var w=v[_];if(w<=1&&w>=0){var S=u?pu(l,p,g,x,w):pu(s,f,d,y,w);return u?[t,S]:[S,t]}}s=y,l=x;break}}},e}(It),Cx=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e}(qp),jp=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new Cx},e.prototype.buildPath=function(t,r){var i=r.points,n=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&fr(i[s*2-2],i[s*2-1]);s--);for(;o<s&&fr(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=gs(t,i,o,s,s,1,r.smooth,l,r.connectNulls);gs(t,n,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,t.closePath()}},e}(It);function Jp(a,e,t,r,i){var n=a.getArea(),o=n.x,s=n.y,l=n.width,u=n.height,v=t.get(["lineStyle","width"])||2;o-=v/2,s-=v/2,l+=v,u+=v,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new ft({shape:{x:o,y:s,width:l,height:u}});if(e){var h=a.getBaseAxis(),f=h.isHorizontal(),p=h.inverse;f?(p&&(c.shape.x+=l),c.shape.width=0):(p||(c.shape.y+=u),c.shape.height=0);var d=it(i)?function(g){i(g,c)}:null;bt(c,{shape:{width:l,height:u,x:o,y:s}},t,null,r,d)}return c}function Qp(a,e,t){var r=a.getArea(),i=be(r.r0,1),n=be(r.r,1),o=new ue({shape:{cx:be(a.cx,1),cy:be(a.cy,1),r0:i,r:n,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s=a.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=i,bt(o,{shape:{endAngle:r.endAngle,r:n}},t)}return o}function ti(a,e,t,r,i){if(a){if(a.type==="polar")return Qp(a,e,t);if(a.type==="cartesian2d")return Jp(a,e,t,r,i)}else return null;return null}function _r(a,e){return a.type===e}function Uu(a,e){if(a.length===e.length){for(var t=0;t<a.length;t++)if(a[t]!==e[t])return;return!0}}function Yu(a){for(var e=1/0,t=1/0,r=-1/0,i=-1/0,n=0;n<a.length;){var o=a[n++],s=a[n++];isNaN(o)||(e=Math.min(o,e),r=Math.max(o,r)),isNaN(s)||(t=Math.min(s,t),i=Math.max(s,i))}return[[e,t],[r,i]]}function Xu(a,e){var t=Yu(a),r=t[0],i=t[1],n=Yu(e),o=n[0],s=n[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Ku(a){return Yt(a)?a:a?.5:0}function Dx(a,e,t){if(!t.valueDim)return[];for(var r=e.count(),i=vr(r*2),n=0;n<r;n++){var o=Kp(t,a,e,n);i[n*2]=o[0],i[n*2+1]=o[1]}return i}function ze(a,e,t,r){var i=e.getBaseAxis(),n=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],v=[],c=[];if(r){for(s=0;s<a.length;s+=2)!isNaN(a[s])&&!isNaN(a[s+1])&&c.push(a[s],a[s+1]);a=c}for(s=0;s<a.length-2;s+=2)switch(v[0]=a[s+2],v[1]=a[s+3],u[0]=a[s],u[1]=a[s+1],o.push(u[0],u[1]),t){case"end":l[n]=v[n],l[1-n]=u[1-n],o.push(l[0],l[1]);break;case"middle":var h=(u[n]+v[n])/2,f=[];l[n]=f[n]=h,l[1-n]=u[1-n],f[1-n]=v[1-n],o.push(l[0],l[1]),o.push(f[0],f[1]);break;default:l[n]=u[n],l[1-n]=v[1-n],o.push(l[0],l[1])}return o.push(a[s++],a[s++]),o}function Ix(a,e){var t=[],r=a.length,i,n;function o(v,c,h){var f=v.coord,p=(h-f)/(c.coord-f),d=Jy(p,[v.color,c.color]);return{coord:h,color:d}}for(var s=0;s<r;s++){var l=a[s],u=l.coord;if(u<0)i=l;else if(u>e){n?t.push(o(n,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),n=l}return t}function Lx(a,e,t){var r=a.getVisual("visualMeta");if(!(!r||!r.length||!a.count())&&e.type==="cartesian2d"){for(var i,n,o=r.length-1;o>=0;o--){var s=a.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=r[o];break}}if(!!n){var l=e.getAxis(i),u=G(n.stops,function(m){return{coord:l.toGlobalCoord(l.dataToCoord(m.value)),color:m.color}}),v=u.length,c=n.outerColors.slice();v&&u[0].coord>u[v-1].coord&&(u.reverse(),c.reverse());var h=Ix(u,i==="x"?t.getWidth():t.getHeight()),f=h.length;if(!f&&v)return u[0].coord<0?c[1]?c[1]:u[v-1].color:c[0]?c[0]:u[0].color;var p=10,d=h[0].coord-p,g=h[f-1].coord+p,y=g-d;if(y<.001)return"transparent";D(h,function(m){m.offset=(m.coord-d)/y}),h.push({offset:f?h[f-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:c[0]||"transparent"});var x=new gn(0,0,0,0,h,!0);return x[i]=d,x[i+"2"]=g,x}}}function Mx(a,e,t){var r=a.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var n=t.getAxesByScale("ordinal")[0];if(!!n&&!(i&&Px(n,e))){var o=e.mapDimension(n.dim),s={};return D(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Px(a,e){var t=a.getExtent(),r=Math.abs(t[1]-t[0])/a.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),n=Math.max(1,Math.round(i/5)),o=0;o<i;o+=n)if(Ja.getSymbolSize(e,o)[a.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Rx(a,e){return isNaN(a)||isNaN(e)}function kx(a){for(var e=a.length/2;e>0&&Rx(a[e*2-2],a[e*2-1]);e--);return e-1}function qu(a,e){return[a[e*2],a[e*2+1]]}function Ex(a,e,t){for(var r=a.length/2,i=t==="x"?0:1,n,o,s=0,l=-1,u=0;u<r;u++)if(o=a[u*2+i],!(isNaN(o)||isNaN(a[u*2+1-i]))){if(u===0){n=o;continue}if(n<=e&&o>=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function td(a){if(a.get(["endLabel","show"]))return!0;for(var e=0;e<La.length;e++)if(a.get([La[e],"endLabel","show"]))return!0;return!1}function Kn(a,e,t,r){if(_r(e,"cartesian2d")){var i=r.getModel("endLabel"),n=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=td(r)?function(f,p){a._endLabelOnDuring(f,p,o,s,n,i,e)}:null,u=e.getBaseAxis().isHorizontal(),v=Jp(e,t,r,function(){var f=a._endLabel;f&&t&&s.originalX!=null&&f.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var c=v.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,v),v}else return Qp(e,t,r)}function Vx(a,e){var t=e.getBaseAxis(),r=t.isHorizontal(),i=t.inverse,n=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:a.get("align")||n,verticalAlign:a.get("verticalAlign")||o}}}var Nx=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Y,r=new Qa;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=t},e.prototype.render=function(t,r,i){var n=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),v=t.getModel("areaStyle"),c=l.getLayout("points")||[],h=o.type==="polar",f=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,x=!r.ssr&&t.get("animation"),m=!v.isEmpty(),S=v.get("origin"),b=Xp(o,l,S),_=m&&Dx(o,l,b),w=t.get("showSymbol"),A=t.get("connectNulls"),T=w&&!h&&Mx(t,l,o),C=this._data;C&&C.eachItemGraphicEl(function(ot,rt){ot.__temp&&(s.remove(ot),C.setItemGraphicEl(rt,null))}),w||p.remove(),s.add(y);var I=h?!1:t.get("step"),L;o&&o.getArea&&t.get("clip",!0)&&(L=o.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var M=Lx(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(d&&f.type===o.type&&I===this._step))w&&p.updateData(l,{isIgnore:T,clipShape:L,disableAnimation:!0,getSymbolPoint:function(ot){return[c[ot*2],c[ot*2+1]]}}),x&&this._initSymbolLabelAnimation(l,o,L),I&&(c=ze(c,o,I,A),_&&(_=ze(_,o,I,A))),d=this._newPolyline(c),m?g=this._newPolygon(c,_):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,Zr(M)),y.setClipPath(Kn(this,o,!0,t));else{m&&!g?g=this._newPolygon(c,_):g&&!m&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,Zr(M));var P=y.getClipPath();if(P){var R=Kn(this,o,!1,t);bt(P,{shape:R.shape},t)}else y.setClipPath(Kn(this,o,!0,t));w&&p.updateData(l,{isIgnore:T,clipShape:L,disableAnimation:!0,getSymbolPoint:function(ot){return[c[ot*2],c[ot*2+1]]}}),(!Uu(this._stackedOnPoints,_)||!Uu(this._points,c))&&(x?this._doUpdateAnimation(l,_,o,i,I,S,A):(I&&(c=ze(c,o,I,A),_&&(_=ze(_,o,I,A))),d.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:_})))}var k=t.getModel("emphasis"),N=k.get("focus"),V=k.get("blurScope"),O=k.get("disabled");if(d.useStyle(Q(u.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),$t(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var z=d.getState("emphasis").style;z.lineWidth=+d.style.lineWidth+1}et(d).seriesIndex=t.seriesIndex,St(d,N,V,O);var H=Ku(t.get("smooth")),q=t.get("smoothMonotone");if(d.setShape({smooth:H,smoothMonotone:q,connectNulls:A}),g){var j=l.getCalculationInfo("stackedOnSeries"),X=0;g.useStyle(Q(v.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(X=Ku(j.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:X,smoothMonotone:q,connectNulls:A}),$t(g,t,"areaStyle"),et(g).seriesIndex=t.seriesIndex,St(g,N,V,O)}var at=function(ot){n._changePolyState(ot)};l.eachItemGraphicEl(function(ot){ot&&(ot.onHoverStateChange=at)}),this._polyline.onHoverStateChange=at,this._data=l,this._coordSys=o,this._stackedOnPoints=_,this._points=c,this._step=I,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,r){et(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,i,n){var o=t.getData(),s=is(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var v=l[s*2],c=l[s*2+1];if(isNaN(v)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(v,c))return;var h=t.get("zlevel")||0,f=t.get("z")||0;u=new Ja(o,s),u.x=v,u.y=c,u.setZ(h,f);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=f,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else xt.prototype.highlight.call(this,t,r,i,n)},e.prototype.downplay=function(t,r,i,n){var o=t.getData(),s=is(o,n);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 xt.prototype.downplay.call(this,t,r,i,n)},e.prototype._changePolyState=function(t){var r=this._polygon;zi(this._polyline,t),r&&zi(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Tx({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new jp({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,r,i){var n,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):r.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,v=u.get("animationDuration");it(v)&&(v=v(null));var c=u.get("animationDelay")||0,h=it(c)?c(null):c;t.eachItemGraphicEl(function(f,p){var d=f;if(d){var g=[f.x,f.y],y=void 0,x=void 0,m=void 0;if(i)if(o){var S=i,b=r.pointToCoord(g);n?(y=S.startAngle,x=S.endAngle,m=-b[1]/180*Math.PI):(y=S.r0,x=S.r,m=b[0])}else{var _=i;n?(y=_.x,x=_.x+_.width,m=f.x):(y=_.y+_.height,x=_.y,m=f.y)}var w=x===y?0:(m-y)/(x-y);l&&(w=1-w);var A=it(c)?c(p):v*w+h,T=d.getSymbolPath(),C=T.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:A}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var n=t.getModel("endLabel");if(td(t)){var o=t.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 vt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var v=kx(l);v>=0&&(Wt(s,zt(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:v,defaultText:function(c,h,f){return f!=null?Yp(o,f):Xr(o,c)},enableTextSetter:!0},Vx(n,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,i,n,o,s,l){var u=this._endLabel,v=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,f=h.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),x=g.inverse,m=r.shape,S=x?y?m.x:m.y+m.height:y?m.x+m.width:m.y,b=(y?d:0)*(x?-1:1),_=(y?0:-d)*(x?-1:1),w=y?"x":"y",A=Ex(c,S,w),T=A.range,C=T[1]-T[0],I=void 0;if(C>=1){if(C>1&&!f){var L=qu(c,T[0]);u.attr({x:L[0]+b,y:L[1]+_}),o&&(I=h.getRawValue(T[0]))}else{var L=v.getPointOn(S,w);L&&u.attr({x:L[0]+b,y:L[1]+_});var M=h.getRawValue(T[0]),P=h.getRawValue(T[1]);o&&(I=jy(i,p,M,P,A.t))}n.lastFrameIndex=T[0]}else{var R=t===1||n.lastFrameIndex>0?T[0]:0,L=qu(c,R);o&&(I=h.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+_})}if(o){var k=Jf(u);typeof k.setLabelText=="function"&&k.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,r,i,n,o,s,l){var u=this._polyline,v=this._polygon,c=t.hostModel,h=Ax(this._data,t,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),f=h.current,p=h.stackedOnCurrent,d=h.next,g=h.stackedOnNext;if(o&&(f=ze(h.current,i,o,l),p=ze(h.stackedOnCurrent,i,o,l),d=ze(h.next,i,o,l),g=ze(h.stackedOnNext,i,o,l)),Xu(f,d)>3e3||v&&Xu(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),v&&(v.stopAnimation(),v.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=f;var y={shape:{points:d}};h.current!==f&&(y.shape.__points=h.next),u.stopAnimation(),ct(u,y,c),v&&(v.setShape({points:f,stackedOnPoints:p}),v.stopAnimation(),ct(v,{shape:{stackedOnPoints:g}},c),u.shape.points!==v.shape.points&&(v.shape.points=u.shape.points));for(var x=[],m=h.status,S=0;S<m.length;S++){var b=m[S].cmd;if(b==="="){var _=t.getItemGraphicEl(m[S].idx1);_&&x.push({el:_,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){v&&v.dirtyShape();for(var w=u.shape.__points,A=0;A<x.length;A++){var T=x[A].el,C=x[A].ptIdx*2;T.x=w[C],T.y=w[C+1],T.markRedraw()}})},e.prototype.remove=function(t){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(n,o){n.__temp&&(r.remove(n),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(xt);const Ox=Nx;function ei(a,e){return{seriesType:a,plan:yn(),reset:function(t){var r=t.getData(),i=t.coordinateSystem,n=t.pipelineContext,o=e||n.large;if(!!i){var s=G(i.dimensions,function(f){return r.mapDimension(f)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");$r(r,s[0])&&(s[0]=u),$r(r,s[1])&&(s[1]=u);var v=r.getStore(),c=r.getDimensionIndex(s[0]),h=r.getDimensionIndex(s[1]);return l&&{progress:function(f,p){for(var d=f.end-f.start,g=o&&vr(d*l),y=[],x=[],m=f.start,S=0;m<f.end;m++){var b=void 0;if(l===1){var _=v.get(c,m);b=i.dataToPoint(_,null,x)}else y[0]=v.get(c,m),y[1]=v.get(h,m),b=i.dataToPoint(y,null,x);o?(g[S++]=b[0],g[S++]=b[1]):p.setItemLayout(m,b.slice())}o&&p.setLayout("points",g)}}}}}}var zx={average:function(a){for(var e=0,t=0,r=0;r<a.length;r++)isNaN(a[r])||(e+=a[r],t++);return t===0?NaN:e/t},sum:function(a){for(var e=0,t=0;t<a.length;t++)e+=a[t]||0;return e},max:function(a){for(var e=-1/0,t=0;t<a.length;t++)a[t]>e&&(e=a[t]);return isFinite(e)?e:NaN},min:function(a){for(var e=1/0,t=0;t<a.length;t++)a[t]<e&&(e=a[t]);return isFinite(e)?e:NaN},minmax:function(a){for(var e=-1/0,t=-1/0,r=0;r<a.length;r++){var i=a[r],n=Math.abs(i);n>e&&(e=n,t=i)}return isFinite(t)?t:NaN},nearest:function(a){return a[0]}},Gx=function(a){return Math.round(a.length/2)};function ed(a){return{seriesType:a,reset:function(e,t,r){var i=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),v=l.getExtent(),c=r.getDevicePixelRatio(),h=Math.abs(v[1]-v[0])*(c||1),f=Math.round(s/h);if(isFinite(f)&&f>1){n==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/f));var p=void 0;K(n)?p=zx[n]:it(n)&&(p=n),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/f,p,Gx))}}}}}function Bx(a){a.registerChartView(Ox),a.registerSeriesModel(mx),a.registerLayout(ei("line",!0)),a.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,ed("line"))}var rd=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return Ee(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,i){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(t),s=n.dataToPoint(o);if(i)D(n.getAxes(),function(h,f){if(h.type==="category"&&r!=null){var p=h.getTicksCoords(),d=h.getTickModel().get("alignWithLabel"),g=o[f],y=r[f]==="x1"||r[f]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[f]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var x=void 0,m=void 0,S=1,b=0;b<p.length;b++){var _=p[b].coord,w=b===p.length-1?p[b-1].tickValue+S:p[b].tickValue;if(w===g){m=_;break}else if(w<g)x=_;else if(x!=null&&w>g){m=(_+x)/2;break}b===1&&(S=w-p[0].tickValue)}m==null&&(x?x&&(m=p[p.length-1].coord):m=p[0].coord),s[f]=h.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),v=l.getLayout("size"),c=n.getBaseAxis().isHorizontal()?0:1;s[c]+=u+v/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Tt);Tt.registerClass(rd);const Xi=rd;var Fx=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Ee(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,i){return i.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Qe(Xi.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}),e}(Xi);const Hx=Fx;var Wx=function(){function a(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return a}(),$x=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new Wx},e.prototype.buildPath=function(t,r){var i=r.cx,n=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,v=r.startAngle,c=r.endAngle,h=r.clockwise,f=Math.PI*2,p=h?c-v<f:v-c<f;p||(v=c-(h?f:-f));var d=Math.cos(v),g=Math.sin(v),y=Math.cos(c),x=Math.sin(c);p?(t.moveTo(d*o+i,g*o+n),t.arc(d*u+i,g*u+n,l,-Math.PI+v,v,!h)):t.moveTo(d*s+i,g*s+n),t.arc(i,n,s,v,c,!h),t.arc(y*u+i,x*u+n,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&t.arc(i,n,o,c,v,h)},e}(It);const Ki=$x;function Zx(a,e){e=e||{};var t=e.isRoundCap;return function(r,i,n){var o=i.position;if(!o||o instanceof Array)return du(r,i,n);var s=a(o),l=i.distance!=null?i.distance:5,u=this.shape,v=u.cx,c=u.cy,h=u.r,f=u.r0,p=(h+f)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,x=t?Math.abs(h-f)/2:0,m=Math.cos,S=Math.sin,b=v+h*m(d),_=c+h*S(d),w="left",A="top";switch(s){case"startArc":b=v+(f-l)*m(y),_=c+(f-l)*S(y),w="center",A="top";break;case"insideStartArc":b=v+(f+l)*m(y),_=c+(f+l)*S(y),w="center",A="bottom";break;case"startAngle":b=v+p*m(d)+vi(d,l+x,!1),_=c+p*S(d)+ci(d,l+x,!1),w="right",A="middle";break;case"insideStartAngle":b=v+p*m(d)+vi(d,-l+x,!1),_=c+p*S(d)+ci(d,-l+x,!1),w="left",A="middle";break;case"middle":b=v+p*m(y),_=c+p*S(y),w="center",A="middle";break;case"endArc":b=v+(h+l)*m(y),_=c+(h+l)*S(y),w="center",A="bottom";break;case"insideEndArc":b=v+(h-l)*m(y),_=c+(h-l)*S(y),w="center",A="top";break;case"endAngle":b=v+p*m(g)+vi(g,l+x,!0),_=c+p*S(g)+ci(g,l+x,!0),w="left",A="middle";break;case"insideEndAngle":b=v+p*m(g)+vi(g,-l+x,!0),_=c+p*S(g)+ci(g,-l+x,!0),w="right",A="middle";break;default:return du(r,i,n)}return r=r||{},r.x=b,r.y=_,r.align=w,r.verticalAlign=A,r}}function Ux(a,e,t,r){if(Yt(r)){a.setTextConfig({rotation:r});return}else if(B(e)){a.setTextConfig({rotation:0});return}var i=a.shape,n=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(n+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=n;break;case"endAngle":case"insideEndAngle":l=o;break;default:a.setTextConfig({rotation:0});return}var v=Math.PI*1.5-l;u==="middle"&&v>Math.PI/2&&v<Math.PI*1.5&&(v-=Math.PI),a.setTextConfig({rotation:v})}function vi(a,e,t){return e*Math.sin(a)*(t?-1:1)}function ci(a,e,t){return e*Math.cos(a)*(t?1:-1)}function cr(a,e,t){var r=a.get("borderRadius");if(r==null)return t?{cornerRadius:0}:null;B(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:G(r,function(n){return Gi(n,i)})}}var qn=Math.max,jn=Math.min;function Yx(a,e){var t=a.getArea&&a.getArea();if(_r(a,"cartesian2d")){var r=a.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(t.x-=i,t.width+=i*2):(t.y-=i,t.height+=i*2)}}return t}var Xx=function(a){E(e,a);function e(){var t=a.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,r,i,n){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,r,i):this._renderNormal(t,r,i,n))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,r){this._progressiveEls=[],this._incrementalRenderLarge(t,r)},e.prototype.eachRendered=function(t){ta(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t,r,i,n){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,v=u.getBaseAxis(),c;u.type==="cartesian2d"?c=v.isHorizontal():u.type==="polar"&&(c=v.dim==="angle");var h=t.isAnimationEnabled()?t:null,f=Kx(t,u);f&&this._enableRealtimeSort(f,s,i);var p=t.get("clip",!0)||f,d=Yx(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),x=t.getModel("backgroundStyle"),m=x.get("borderRadius")||0,S=[],b=this._backgroundEls,_=n&&n.isInitSort,w=n&&n.type==="changeAxisOrder";function A(I){var L=hi[u.type](s,I),M=rS(u,c,L);return M.useStyle(x.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",m):M.setShape("cornerRadius",m),S[I]=M,M}s.diff(l).add(function(I){var L=s.getItemModel(I),M=hi[u.type](s,I,L);if(y&&A(I),!(!s.hasValue(I)||!ev[u.type](M))){var P=!1;p&&(P=ju[u.type](d,M));var R=Ju[u.type](t,s,I,M,c,h,v.model,!1,g);f&&(R.forceLabelAnimation=!0),rv(R,s,I,L,M,t,c,u.type==="polar"),_?R.attr({shape:M}):f?Qu(f,h,R,M,I,c,!1,!1):bt(R,{shape:M},t,I),s.setItemGraphicEl(I,R),o.add(R),R.ignore=P}}).update(function(I,L){var M=s.getItemModel(I),P=hi[u.type](s,I,M);if(y){var R=void 0;b.length===0?R=A(L):(R=b[L],R.useStyle(x.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",m):R.setShape("cornerRadius",m),S[I]=R);var k=hi[u.type](s,I),N=id(c,k,u);ct(R,{shape:N},h,I)}var V=l.getItemGraphicEl(L);if(!s.hasValue(I)||!ev[u.type](P)){o.remove(V);return}var O=!1;if(p&&(O=ju[u.type](d,P),O&&o.remove(V)),V?fe(V):V=Ju[u.type](t,s,I,P,c,h,v.model,!!V,g),f&&(V.forceLabelAnimation=!0),w){var z=V.getTextContent();if(z){var H=Jf(z);H.prevValue!=null&&(H.prevValue=H.value)}}else rv(V,s,I,M,P,t,c,u.type==="polar");_?V.attr({shape:P}):f?Qu(f,h,V,P,I,c,!0,w):ct(V,{shape:P},t,I,null),s.setItemGraphicEl(I,V),V.ignore=O,o.add(V)}).remove(function(I){var L=l.getItemGraphicEl(I);L&&Bi(L,t,I)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new Y);T.removeAll();for(var C=0;C<S.length;++C)T.add(S[C]);o.add(T),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,r,i){this._clear(),iv(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,r){this._removeBackground(),iv(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var r=t.get("clip",!0)&&ti(t.coordinateSystem,!1,t),i=this.group;r?i.setClipPath(r):i.removeClipPath()},e.prototype._enableRealtimeSort=function(t,r,i){var n=this;if(!!r.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,t,i),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),v=u&&u.shape;return v&&Math.abs(o.isHorizontal()?v.height:v.width)||0};this._onRendered=function(){n._updateSortWithinSameData(r,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,r,i){var n=[];return t.each(t.mapDimension(r.dim),function(o,s){var l=i(s);l=l==null?NaN:l,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(n,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,r,i){for(var n=i.scale,o=t.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var v=t.rawIndexOf(o,n.getRawOrdinalNumber(l)),c=v<0?Number.MIN_VALUE:r(t.indexOfRawIndex(v));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var i=r.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,i,n){if(!!this._isOrderChangedWithinSameData(t,r,i)){var o=this._dataSort(t,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,i){var n=r.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){Bi(n,t,et(n).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(xt),ju={cartesian2d:function(a,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=a.x+a.width,n=a.y+a.height,o=qn(e.x,a.x),s=jn(e.x+e.width,i),l=qn(e.y,a.y),u=jn(e.y+e.height,n),v=s<o,c=u<l;return e.x=v&&o>i?s:o,e.y=c&&l>n?u:l,e.width=v?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),v||c},polar:function(a,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var i=jn(e.r,a.r),n=qn(e.r0,a.r0);e.r=i,e.r0=n;var o=i-n<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},Ju={cartesian2d:function(a,e,t,r,i,n,o,s,l){var u=new ft({shape:$({},r),z2:1});if(u.__dataIndex=t,u.name="item",n){var v=u.shape,c=i?"height":"width";v[c]=0}return u},polar:function(a,e,t,r,i,n,o,s,l){var u=!i&&l?Ki:ue,v=new u({shape:r,z2:1});v.name="item";var c=ad(i);if(v.calculateTextPosition=Zx(c,{isRoundCap:u===Ki}),n){var h=v.shape,f=i?"r":"endAngle",p={};h[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?ct:bt)(v,{shape:p},n)}return v}};function Kx(a,e){var t=a.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function Qu(a,e,t,r,i,n,o,s){var l,u;n?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ct:bt)(t,{shape:l},e,i,null);var v=e?a.baseAxis.model:null;(o?ct:bt)(t,{shape:u},v,i)}function tv(a,e){for(var t=0;t<e.length;t++)if(!isFinite(a[e[t]]))return!0;return!1}var qx=["x","y","width","height"],jx=["cx","cy","r","startAngle","endAngle"],ev={cartesian2d:function(a){return!tv(a,qx)},polar:function(a){return!tv(a,jx)}},hi={cartesian2d:function(a,e,t){var r=a.getItemLayout(e),i=t?Qx(t,r):0,n=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+n*i/2,y:r.y+o*i/2,width:r.width-n*i,height:r.height-o*i}},polar:function(a,e,t){var r=a.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Jx(a){return a.startAngle!=null&&a.endAngle!=null&&a.startAngle===a.endAngle}function ad(a){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(a)}function rv(a,e,t,r,i,n,o,s){var l=e.getItemVisual(t,"style");if(s){if(!n.get("roundCap")){var v=a.shape,c=cr(r.getModel("itemStyle"),v,!0);$(v,c),a.setShape(v)}}else{var u=r.get(["itemStyle","borderRadius"])||0;a.setShape("r",u)}a.useStyle(l);var h=r.getShallow("cursor");h&&a.attr("cursor",h);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=zt(r);Wt(a,p,{labelFetcher:n,labelDataIndex:t,defaultText:Xr(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var d=a.getTextContent();if(s&&d){var g=r.get(["label","position"]);a.textConfig.inside=g==="middle"?!0:null,Ux(a,g==="outside"?f:g,ad(o),r.get(["label","rotate"]))}Qf(d,p,n.getRawValue(t),function(x){return Yp(e,x)});var y=r.getModel(["emphasis"]);St(a,y.get("focus"),y.get("blurScope"),y.get("disabled")),$t(a,r),Jx(i)&&(a.style.fill="none",a.style.stroke="none",D(a.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function Qx(a,e){var t=a.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=a.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,n)}var tS=function(){function a(){}return a}(),av=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new tS},e.prototype.buildPath=function(t,r){for(var i=r.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,v=0;v<i.length;v+=3)l[n]=u,l[o]=i[v+2],s[n]=i[v+n],s[o]=i[v+o],t.rect(s[0],s[1],l[0],l[1])},e}(It);function iv(a,e,t,r){var i=a.getData(),n=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=a.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var v=new av({shape:{points:u},incremental:!!r,silent:!0,z2:0});v.baseDimIdx=n,v.largeDataIndices=o,v.barWidth=s,v.useStyle(l.getItemStyle()),e.add(v),t&&t.push(v)}var c=new av({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=n,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(i.getVisual("style")),et(c).seriesIndex=a.seriesIndex,a.get("silent")||(c.on("mousedown",nv),c.on("mousemove",nv)),t&&t.push(c)}var nv=Qy(function(a){var e=this,t=eS(e,a.offsetX,a.offsetY);et(e).dataIndex=t>=0?t:null},30,!1);function eS(a,e,t){for(var r=a.baseDimIdx,i=1-r,n=a.shape.points,o=a.largeDataIndices,s=[],l=[],u=a.barWidth,v=0,c=n.length/3;v<c;v++){var h=v*3;if(l[r]=u,l[i]=n[h+2],s[r]=n[h+r],s[i]=n[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[v]}return-1}function id(a,e,t){if(_r(t,"cartesian2d")){var r=e,i=t.getArea();return{x:a?r.x:i.x,y:a?i.y:r.y,width:a?r.width:i.width,height:a?i.height:r.height}}else{var i=t.getArea(),n=e;return{cx:i.cx,cy:i.cy,r0:a?i.r0:n.r0,r:a?i.r:n.r,startAngle:a?n.startAngle:0,endAngle:a?n.endAngle:Math.PI*2}}}function rS(a,e,t){var r=a.type==="polar"?ue:ft;return new r({shape:id(e,t,a),silent:!0,z2:0})}const aS=Xx;function iS(a){a.registerChartView(aS),a.registerSeriesModel(Hx),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,J(ep,"bar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,tp("bar")),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,ed("bar")),a.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var ov=Math.PI*2,fi=Math.PI/180;function nd(a,e){return Gt(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function od(a,e){var t=nd(a,e),r=a.get("center"),i=a.get("radius");B(i)||(i=[0,i]);var n=F(t.width,e.getWidth()),o=F(t.height,e.getHeight()),s=Math.min(n,o),l=F(i[0],s/2),u=F(i[1],s/2),v,c,h=a.coordinateSystem;if(h){var f=h.dataToPoint(r);v=f[0]||0,c=f[1]||0}else B(r)||(r=[r,r]),v=F(r[0],n)+t.x,c=F(r[1],o)+t.y;return{cx:v,cy:c,r0:l,r:u}}function nS(a,e,t){e.eachSeriesByType(a,function(r){var i=r.getData(),n=i.mapDimension("value"),o=nd(r,t),s=od(r,t),l=s.cx,u=s.cy,v=s.r,c=s.r0,h=-r.get("startAngle")*fi,f=r.get("endAngle"),p=r.get("padAngle")*fi;f=f==="auto"?h-ov:-f*fi;var d=r.get("minAngle")*fi,g=d+p,y=0;i.each(n,function(k){!isNaN(k)&&y++});var x=i.getSum(n),m=Math.PI/(x||y)*2,S=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),w=i.getDataExtent(n);w[0]=0;var A=S?1:-1,T=[h,f],C=A*p/2;rp(T,!S),h=T[0],f=T[1];var I=Math.abs(f-h),L=I,M=0,P=h;if(i.setLayout({viewRect:o,r:v}),i.each(n,function(k,N){var V;if(isNaN(k)){i.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:c,r:b?NaN:v});return}b!=="area"?V=x===0&&_?m:k*m:V=I/y,V<g?(V=g,L-=g):M+=k;var O=P+A*V,z=0,H=0;p>V?(z=P+A*V/2,H=z):(z=P+C,H=O-C),i.setItemLayout(N,{angle:V,startAngle:z,endAngle:H,clockwise:S,cx:l,cy:u,r0:c,r:b?ht(k,w,[c,v]):v}),P=O}),L<ov&&y)if(L<=.001){var R=I/y;i.each(n,function(k,N){if(!isNaN(k)){var V=i.getItemLayout(N);V.angle=R;var O=0,z=0;R<p?(O=h+A*(N+1/2)*R,z=O):(O=h+A*N*R+C,z=h+A*(N+1)*R-C),V.startAngle=O,V.endAngle=z}})}else m=L/M,P=h,i.each(n,function(k,N){if(!isNaN(k)){var V=i.getItemLayout(N),O=V.angle===g?g:k*m,z=0,H=0;O<p?(z=P+A*O/2,H=z):(z=P+C,H=P+A*O-C),V.startAngle=z,V.endAngle=H,P+=A*O}})})}function ri(a){return{seriesType:a,reset:function(e,t){var r=t.findComponents({mainType:"legend"});if(!(!r||!r.length)){var i=e.getData();i.filterSelf(function(n){for(var o=i.getName(n),s=0;s<r.length;s++)if(!r[s].isSelected(o))return!1;return!0})}}}}var oS=Math.PI/180;function sv(a,e,t,r,i,n,o,s,l,u){if(a.length<2)return;function v(d){for(var g=d.rB,y=g*g,x=0;x<d.list.length;x++){var m=d.list[x],S=Math.abs(m.label.y-t),b=r+m.len,_=b*b,w=Math.sqrt((1-Math.abs(S*S/y))*_),A=e+(w+m.len2)*i,T=A-m.label.x,C=m.targetTextWidth-T*i;sd(m,C,!0),m.label.x=A}}function c(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},x=0;x<d.length;x++)if(d[x].labelAlignTo==="none"){var m=d[x],S=m.label.y>t?y:g,b=Math.abs(m.label.y-t);if(b>=S.maxY){var _=m.label.x-e-m.len2*i,w=r+m.len,A=Math.abs(_)<w?Math.sqrt(b*b/(1-_*_/w/w)):w;S.rB=A,S.maxY=b}S.list.push(m)}v(g),v(y)}for(var h=a.length,f=0;f<h;f++)if(a[f].position==="outer"&&a[f].labelAlignTo==="labelLine"){var p=a[f].label.x-u;a[f].linePoints[1][0]+=p,a[f].label.x=u}rm(a,l,l+o)&&c(a)}function sS(a,e,t,r,i,n,o,s){for(var l=[],u=[],v=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<a.length;h++){var f=a[h].label;Jn(a[h])||(f.x<e?(v=Math.min(v,f.x),l.push(a[h])):(c=Math.max(c,f.x),u.push(a[h])))}for(var h=0;h<a.length;h++){var p=a[h];if(!Jn(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var f=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?f.x<e?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+i-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?f.x<e?g=v-o-p.bleedMargin:g=o+i-c-p.bleedMargin:f.x<e?g=f.x-o-p.bleedMargin:g=o+i-f.x-p.bleedMargin,p.targetTextWidth=g,sd(p,g)}}sv(u,e,t,r,1,i,n,o,s,c),sv(l,e,t,r,-1,i,n,o,s,v);for(var h=0;h<a.length;h++){var p=a[h];if(!Jn(p)&&p.linePoints){var f=p.label,d=p.linePoints,y=p.labelAlignTo==="edge",x=f.style.padding,m=x?x[1]+x[3]:0,S=f.style.backgroundColor?0:m,b=p.rect.width+S,_=d[1][0]-d[2][0];y?f.x<e?d[2][0]=o+p.edgeDistance+b+p.labelDistance:d[2][0]=o+i-p.edgeDistance-b-p.labelDistance:(f.x<e?d[2][0]=f.x+p.labelDistance:d[2][0]=f.x-p.labelDistance,d[1][0]=d[2][0]+_),d[1][1]=d[2][1]=f.y}}}function sd(a,e,t){if(t===void 0&&(t=!1),a.labelStyleWidth==null){var r=a.label,i=r.style,n=a.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,v=n.width+(o?0:l);if(e<v||t){var c=n.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var h=r.getBoundingRect();r.setStyle("width",Math.ceil(h.width)),r.setStyle("backgroundColor",o)}else{var f=e-l,p=e<v?f:t?f>a.unconstrainedWidth?null:f:null;r.setStyle("width",p)}var d=r.getBoundingRect();n.width=d.width;var g=(r.style.margin||0)+2.1;n.height=d.height+g,n.y-=(n.height-c)/2}}}function Jn(a){return a.position==="center"}function lS(a){var e=a.getData(),t=[],r,i,n=!1,o=(a.get("minShowLabelAngle")||0)*oS,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,v=s.x,c=s.y,h=s.height;function f(_){_.ignore=!0}function p(_){if(!_.ignore)return!0;for(var w in _.states)if(_.states[w].ignore===!1)return!0;return!1}e.each(function(_){var w=e.getItemGraphicEl(_),A=w.shape,T=w.getTextContent(),C=w.getTextGuideLine(),I=e.getItemModel(_),L=I.getModel("label"),M=L.get("position")||I.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),k=F(L.get("edgeDistance"),u),N=L.get("bleedMargin"),V=I.getModel("labelLine"),O=V.get("length");O=F(O,u);var z=V.get("length2");if(z=F(z,u),Math.abs(A.endAngle-A.startAngle)<o){D(T.states,f),T.ignore=!0,C&&(D(C.states,f),C.ignore=!0);return}if(!!p(T)){var H=(A.startAngle+A.endAngle)/2,q=Math.cos(H),j=Math.sin(H),X,at,ot,rt;r=A.cx,i=A.cy;var U=M==="inside"||M==="inner";if(M==="center")X=A.cx,at=A.cy,rt="center";else{var ut=(U?(A.r+A.r0)/2*q:A.r*q)+r,st=(U?(A.r+A.r0)/2*j:A.r*j)+i;if(X=ut+q*3,at=st+j*3,!U){var pt=ut+q*(O+l-A.r),Nt=st+j*(O+l-A.r),Bt=pt+(q<0?-1:1)*z,mt=Nt;R==="edge"?X=q<0?v+k:v+u-k:X=Bt+(q<0?-P:P),at=mt,ot=[[ut,st],[pt,Nt],[Bt,mt]]}rt=U?"center":R==="edge"?q>0?"right":"left":q>0?"left":"right"}var Mt=Math.PI,Dt=0,Zt=L.get("rotate");if(Yt(Zt))Dt=Zt*(Mt/180);else if(M==="center")Dt=0;else if(Zt==="radial"||Zt===!0){var Ae=q<0?-H+Mt:-H;Dt=Ae}else if(Zt==="tangential"&&M!=="outside"&&M!=="outer"){var Qt=Math.atan2(q,j);Qt<0&&(Qt=Mt*2+Qt);var si=j>0;si&&(Qt=Mt+Qt),Dt=Qt-Mt}if(n=!!Dt,T.x=X,T.y=at,T.rotation=Dt,T.setStyle({verticalAlign:"middle"}),U){T.setStyle({align:rt});var zn=T.states.select;zn&&(zn.x+=T.x,zn.y+=T.y)}else{var Ve=T.getBoundingRect().clone();Ve.applyTransform(T.getComputedTransform());var uu=(T.style.margin||0)+2.1;Ve.y-=uu/2,Ve.height+=uu,t.push({label:T,labelLine:C,position:M,len:O,len2:z,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new he(q,j),linePoints:ot,textAlign:rt,labelDistance:P,labelAlignTo:R,edgeDistance:k,bleedMargin:N,rect:Ve,unconstrainedWidth:Ve.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:U})}}),!n&&a.get("avoidLabelOverlap")&&sS(t,r,i,l,u,h,v,c);for(var d=0;d<t.length;d++){var g=t[d],y=g.label,x=g.labelLine,m=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),m&&(D(y.states,f),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(x){var b=g.linePoints;m||!b?(D(x.states,f),x.ignore=!0):(tm(b,g.minTurnAngle),em(b,g.surfaceNormal,g.maxSurfaceAngle),x.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new he(b[0][0],b[0][1])})}}}var uS=function(a){E(e,a);function e(t,r,i){var n=a.call(this)||this;n.z2=2;var o=new vt;return n.setTextContent(o),n.updateData(t,r,i,!0),n}return e.prototype.updateData=function(t,r,i,n){var o=this,s=t.hostModel,l=t.getItemModel(r),u=l.getModel("emphasis"),v=t.getItemLayout(r),c=$(cr(l.getModel("itemStyle"),v,!0),v);if(isNaN(c.startAngle)){o.setShape(c);return}if(n){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(bt(o,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=v.r0,bt(o,{shape:{r:v.r}},s,r)):i!=null?(o.setShape({startAngle:i,endAngle:i}),bt(o,{shape:{startAngle:v.startAngle,endAngle:v.endAngle}},s,r)):(o.shape.endAngle=v.startAngle,ct(o,{shape:{endAngle:v.endAngle}},s,r))}else fe(o),ct(o,{shape:c},s,r);o.useStyle(t.getItemVisual(r,"style")),$t(o,l);var f=(v.startAngle+v.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(f)*p,g=Math.sin(f)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,r),o.ensureState("emphasis").shape=$({r:v.r+(u.get("scale")&&u.get("scaleSize")||0)},cr(u.getModel("itemStyle"),v)),$(o.ensureState("select"),{x:d,y:g,shape:cr(l.getModel(["select","itemStyle"]),v)}),$(o.ensureState("blur"),{shape:cr(l.getModel(["blur","itemStyle"]),v)});var x=o.getTextGuideLine(),m=o.getTextContent();x&&$(x.ensureState("select"),{x:d,y:g}),$(m.ensureState("select"),{x:d,y:g}),St(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r,i){var n=this,o=r.getItemModel(i),s=o.getModel("labelLine"),l=r.getItemVisual(i,"style"),u=l&&l.fill,v=l&&l.opacity;Wt(n,zt(o),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:v,defaultText:t.getFormattedLabel(i,"normal")||r.getName(i)});var c=n.getTextContent();n.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=t.get(["label","position"]);if(h!=="outside"&&h!=="outer")n.removeTextGuideLine();else{var f=this.getTextGuideLine();f||(f=new de,this.setTextGuideLine(f)),ap(this,ip(o),{stroke:u,opacity:ea(s.get(["lineStyle","opacity"]),v,1)})}},e}(ue),vS=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,i,n){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var v=o.getItemLayout(0),c=1;isNaN(v&&v.startAngle)&&c<o.count();++c)v=o.getItemLayout(c);v&&(u=v.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=new ue({shape:od(t,i)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(f){var p=new uS(o,f,u);o.setItemGraphicEl(f,p),l.add(p)}).update(function(f,p){var d=s.getItemGraphicEl(p);d.updateData(o,f,u),d.off("click"),l.add(d),o.setItemGraphicEl(f,d)}).remove(function(f){var p=s.getItemGraphicEl(f);Bi(p,t,f)}).execute(),lS(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,r){var i=r.getData(),n=i.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="pie",e}(xt);const cS=vS;function ia(a,e,t){e=B(e)&&{coordDimensions:e}||$({encodeDefine:a.getEncode()},e);var r=a.getSource(),i=mn(r,e).dimensions,n=new te(i,a);return n.initData(r,t),n}var hS=function(){function a(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return a.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},a.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},a.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},a.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},a}();const ai=hS;var fS=Ct(),pS=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ai(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){a.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return ia(this,{coordDimensions:["value"],encodeDefaulter:J(rl,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),i=fS(r),n=i.seats;if(!n){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),n=i.seats=am(o,r.hostModel.get("percentPrecision"))}var s=a.prototype.getDataParams.call(this,t);return s.percent=n[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Za(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Tt);const dS=pS;function gS(a){return{seriesType:a,reset:function(e,t){var r=e.getData();r.filterSelf(function(i){var n=r.mapDimension("value"),o=r.get(n,i);return!(Yt(o)&&!isNaN(o)&&o<0)})}}}function yS(a){a.registerChartView(cS),a.registerSeriesModel(dS),np("pie",a.registerAction),a.registerLayout(J(nS,"pie")),a.registerProcessor(ri("pie")),a.registerProcessor(gS("pie"))}var mS=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return Ee(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,r,i){return i.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}},e}(Tt);const xS=mS;var ld=4,SS=function(){function a(){}return a}(),bS=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new SS},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var i=r.points,n=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]<ld,v=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var h=i[c++],f=i[c++];isNaN(h)||isNaN(f)||v&&!v.contain(h,f)||(s.x=h-n[0]/2,s.y=f-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,r=t.points,i=t.size,n=this._ctx,o=this.softClipShape,s;if(!!n){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||n.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,r){for(var i=this.shape,n=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=n.length/2-1;u>=0;u--){var v=u*2,c=n[v]-s/2,h=n[v+1]-l/2;if(t>=c&&r>=h&&t<=c+s&&r<=h+l)return u}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),n=this.getBoundingRect();if(t=i[0],r=i[1],n.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.points,n=r.size,o=n[0],s=n[1],l=1/0,u=1/0,v=-1/0,c=-1/0,h=0;h<i.length;){var f=i[h++],p=i[h++];l=Math.min(f,l),v=Math.max(f,v),u=Math.min(p,u),c=Math.max(p,c)}t=this._rect=new kt(l-o/2,u-s/2,v-l+o,c-u+s)}return t},e}(It),_S=function(){function a(){this.group=new Y}return a.prototype.updateData=function(e,t){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,t)},a.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,n=r.startIndex*4*2;t=new Float32Array(t.buffer,n,i)}r.setShape("points",t),r.reset()})},a.prototype.incrementalPrepareUpdate=function(e){this._clear()},a.prototype.incrementalUpdate=function(e,t,r){var i=this._newAdded[0],n=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+n.length);l.set(o),l.set(n,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:n}),this._setCommon(u,t,r)}},a.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},a.prototype._create=function(){var e=new bS({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},a.prototype._setCommon=function(e,t,r){var i=t.hostModel;r=r||{};var n=t.getVisual("symbolSize");e.setShape("size",n instanceof Array?n:[n,n]),e.softClipShape=r.clipShape||null,e.symbolProxy=Et(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<ld;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=et(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(v){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}();const wS=_S;var AS=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=ei("").reset(t,r,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(!!t.get("clip",!0)){var r=t.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,r){var i=this._symbolDraw,n=r.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new wS:new Qa,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(xt);const TS=AS;var CS=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(Lt);const DS=CS;var ys=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ee).models[0]},e.type="cartesian2dAxis",e}(Lt);we(ys,Ua);var ud={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)"]}}},IS=dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},ud),fl=dt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},ud),LS=dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fl),MS=Q({logBase:10},fl);const vd={category:IS,value:fl,time:LS,log:MS};var PS={value:1,category:1,time:1,log:1};function Kr(a,e,t,r){D(PS,function(i,n){var o=dt(dt({},vd[n],!0),r,!0),s=function(l){E(u,l);function u(){var v=l!==null&&l.apply(this,arguments)||this;return v.type=e+"Axis."+n,v}return u.prototype.mergeDefaultAndTheme=function(v,c){var h=im(this),f=h?xn(v):{},p=c.getTheme();dt(v,p.get(n+"Axis")),dt(v,this.getDefaultOption()),v.type=lv(v),h&&Sn(v,f,h)},u.prototype.optionUpdated=function(){var v=this.option;v.type==="category"&&(this.__ordinalMeta=nm.createByAxisModel(this))},u.prototype.getCategories=function(v){var c=this.option;if(c.type==="category")return v?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+n,u.defaultOption=o,u}(t);a.registerComponentModel(s)}),a.registerSubTypeDefaulter(e+"Axis",lv)}function lv(a){return a.type||(a.data?"category":"value")}var ms=["x","y"];function uv(a){return a.type==="interval"||a.type==="time"}var RS=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=ms,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!uv(t)||!uv(r))){var i=t.getExtent(),n=r.getExtent(),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var v=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-i[0]*v,f=o[1]-n[0]*c,p=this._transform=[v,0,0,c,h,f];this._invTransform=op([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var i=this.dataToPoint(t),n=this.dataToPoint(r),o=this.getArea(),s=new kt(i[0],i[1],n[0]-i[0],n[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,i){i=i||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return Pe(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},e.prototype.clampData=function(t,r){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(t[0]),u=n.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var i=[];if(this._invTransform)return Pe(i,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),r),i[1]=o.coordToData(o.toLocalCoord(t[1]),r),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(r[0],r[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(r[0],r[1])-n+t,l=Math.max(i[0],i[1])-o+t;return new kt(n,o,s,l)},e}(om),kS=function(a){E(e,a);function e(t,r,i,n,o){var s=a.call(this,t,r,i)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(ge);const ES=kS;function xs(a,e,t){t=t||{};var r=a.coordinateSystem,i=e.axis,n={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,v=r.getRect(),c=[v.x,v.x+v.width,v.y,v.y+v.height],h={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p=u==="x"?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(d,p[1]),p[0])}n.position=[u==="y"?p[h[l]]:c[0],u==="x"?p[h[l]]:c[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=g[s],n.labelOffset=o?p[h[s]]-p[h.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ft(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var y=e.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-y:y,n.z2=1,n}function vv(a){return a.get("coordinateSystem")==="cartesian2d"}function cv(a){var e={xAxisModel:null,yAxisModel:null};return D(e,function(t,r){var i=r.replace(/Model$/,""),n=a.getReferringComponents(i,ee).models[0];e[r]=n}),e}var Qn=Math.log;function cd(a,e,t){var r=Fi.prototype,i=r.getTicks.call(t),n=r.getTicks.call(t,!0),o=i.length-1,s=r.getInterval.call(t),l=sm(a,e),u=l.extent,v=l.fixMin,c=l.fixMax;if(a.type==="log"){var h=Qn(a.base);u=[Qn(u[0])/h,Qn(u[1])/h]}a.setExtent(u[0],u[1]),a.calcNiceExtent({splitNumber:o,fixMin:v,fixMax:c});var f=r.getExtent.call(a);v&&(u[0]=f[0]),c&&(u[1]=f[1]);var p=r.getInterval.call(a),d=u[0],g=u[1];if(v&&c)p=(g-d)/o;else if(v)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Gn(p),g=u[0]+p*o;else if(c)for(d=u[1]-p*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=Gn(p),d=u[1]-p*o;else{var y=a.getTicks().length-1;y>o&&(p=Gn(p));var x=p*o;g=Math.ceil(u[1]/p)*p,d=be(g-x),d<0&&u[0]>=0?(d=0,g=be(x)):g>0&&u[1]<=0&&(g=0,d=-be(x))}var m=(i[0].value-n[0].value)/s,S=(i[o].value-n[o].value)/s;r.setExtent.call(a,d+p*m,g+p*S),r.setInterval.call(a,p),(m||S)&&r.setNiceExtent.call(a,d+p,g-p)}var VS=function(){function a(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ms,this._initCartesian(e,t,r),this.model=e}return a.prototype.getRect=function(){return this._rect},a.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Pt(o),u=l.length;if(!!u){for(var v=[],c=u-1;c>=0;c--){var h=+l[c],f=o[h],p=f.model,d=f.scale;os(d)&&p.get("alignTicks")&&p.get("interval")==null?v.push(f):(Ur(d,p),os(d)&&(s=f))}v.length&&(s||(s=v.pop(),Ur(s.scale,s.model)),D(v,function(g){cd(g.scale,g.model,s.scale)}))}}i(r.x),i(r.y);var n={};D(r.x,function(o){hv(r,"y",o,n)}),D(r.y,function(o){hv(r,"x",o,n)}),this.resize(this.model,t)},a.prototype.resize=function(e,t,r){var i=e.getBoxLayoutParams(),n=!r&&e.get("containLabel"),o=Gt(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),n&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var v=lm(u);if(v){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=v[c]+h,u.position==="top"?o.y+=v.height+h:u.position==="left"&&(o.x+=v.width+h)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var v=u.isHorizontal(),c=v?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),NS(u,v?o.x:o.y)})}},a.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},a.prototype.getAxes=function(){return this._axesList.slice()},a.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}_t(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,n=this._coordsList;i<n.length;i++)if(n[i].getAxis("x").index===e||n[i].getAxis("y").index===t)return n[i]},a.prototype.getCartesians=function(){return this._coordsList.slice()},a.prototype.convertToPixel=function(e,t,r){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},a.prototype.convertFromPixel=function(e,t,r){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},a.prototype._findConvertTarget=function(e){var t=e.seriesModel,r=e.xAxisModel||t&&t.getReferringComponents("xAxis",ee).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",ee).models[0],n=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,yt(o,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(n){var u=n.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},a.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},a.prototype._initCartesian=function(e,t,r){var i=this,n=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(v,c){D(s.y,function(h,f){var p="x"+c+"y"+f,d=new RS(p);d.master=i,d.model=e,i._coordsMap[p]=d,i._coordsList.push(d),d.addAxis(v),d.addAxis(h)})});function u(v){return function(c,h){if(!!to(c,e)){var f=c.get("position");v==="x"?f!=="top"&&f!=="bottom"&&(f=o.bottom?"top":"bottom"):f!=="left"&&f!=="right"&&(f=o.left?"right":"left"),o[f]=!0;var p=new ES(v,bn(c),[0,0],c.get("type"),f),d=p.type==="category";p.onBand=d&&c.get("boundaryGap"),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=n,p.index=h,n._axesList.push(p),s[v][h]=p,l[v]++}}}},a.prototype._updateScale=function(e,t){D(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var n=i.model.get("categorySortInfo");i.scale.setSortInfo(n)}}),e.eachSeries(function(i){if(vv(i)){var n=cv(i),o=n.xAxisModel,s=n.yAxisModel;if(!to(o,t)||!to(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),v=l.getAxis("x"),c=l.getAxis("y");r(u,v),r(u,c)}},this);function r(i,n){D(ns(i,n.dim),function(o){n.scale.unionExtentFromData(i,o)})}},a.prototype.getTooltipAxes=function(e){var t=[],r=[];return D(this.getCartesians(),function(i){var n=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(n);yt(t,n)<0&&t.push(n),yt(r,o)<0&&r.push(o)}),{baseAxes:t,otherAxes:r}},a.create=function(e,t){var r=[];return e.eachComponent("grid",function(i,n){var o=new a(i,e,t);o.name="grid_"+n,o.resize(i,t,!0),i.coordinateSystem=o,r.push(o)}),e.eachSeries(function(i){if(!!vv(i)){var n=cv(i),o=n.xAxisModel,s=n.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},a.dimensions=ms,a}();function to(a,e){return a.getCoordSysModel()===e}function hv(a,e,t,r){t.getAxesOnZeroOf=function(){return n?[n]:[]};var i=a[e],n,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)fv(i[l])&&(n=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&fv(i[u])&&!r[v(i[u])]){n=i[u];break}n&&(r[v(n)]=!0);function v(c){return c.dim+"_"+c.index}}function fv(a){return a&&a.type!=="category"&&a.type!=="time"&&um(a)}function NS(a,e){var t=a.getExtent(),r=t[0]+t[1];a.toGlobalCoord=a.dim==="x"?function(i){return i+e}:function(i){return r-i+e},a.toLocalCoord=a.dim==="x"?function(i){return i-e}:function(i){return r-i+e}}const OS=VS;var He=Math.PI,pr=function(){function a(e,t){this.group=new Y,this.opt=t,this.axisModel=e,Q(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Y({x:t.position[0],y:t.position[1],rotation:t.rotation});r.updateTransform(),this._transformGroup=r}return a.prototype.hasBuilder=function(e){return!!pv[e]},a.prototype.add=function(e){pv[e](this.opt,this.axisModel,this.group,this._transformGroup)},a.prototype.getGroup=function(){return this.group},a.innerTextLayout=function(e,t,r){var i=sp(t-e),n,o;return Pa(i)?(o=r>0?"top":"bottom",n="center"):Pa(i-He)?(o=r>0?"bottom":"top",n="center"):(o="middle",i>0&&i<He?n=r>0?"right":"left":n=r>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},a.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},a.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},a}(),pv={axisLine:function(a,e,t,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&a.handleAutoShown&&(i=a.handleAutoShown("axisLine")),!!i){var n=e.axis.getExtent(),o=r.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&(Pe(s,s,o),Pe(l,l,o));var v=$({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Kt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:v,strokeContainThreshold:a.strokeContainThreshold||5,silent:!0,z2:1});Ma(c.shape,c.style.lineWidth),c.anid="line",t.add(c);var h=e.get(["axisLine","symbol"]);if(h!=null){var f=e.get(["axisLine","symbolSize"]);K(h)&&(h=[h,h]),(K(f)||Yt(f))&&(f=[f,f]);var p=xr(e.get(["axisLine","symbolOffset"])||0,f),d=f[0],g=f[1];D([{rotate:a.rotation+Math.PI/2,offset:p[0],r:0},{rotate:a.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,x){if(h[x]!=="none"&&h[x]!=null){var m=Et(h[x],-d/2,-g/2,d,g,v.stroke,!0),S=y.r+y.offset,b=u?l:s;m.attr({rotation:y.rotate,x:b[0]+S*Math.cos(a.rotation),y:b[1]-S*Math.sin(a.rotation),silent:!0,z2:11}),t.add(m)}})}}},axisTickLabel:function(a,e,t,r){var i=BS(t,r,e,a),n=HS(t,r,e,a);if(GS(e,n,i),FS(t,r,e,a.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=vm(G(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));cm(o)}},axisName:function(a,e,t,r){var i=Ft(a.axisName,e.get("name"));if(!!i){var n=e.get("nameLocation"),o=a.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),v=u[0]>u[1]?-1:1,c=[n==="start"?u[0]-v*l:n==="end"?u[1]+v*l:(u[0]+u[1])/2,gv(n)?a.labelOffset+o*l:0],h,f=e.get("nameRotate");f!=null&&(f=f*He/180);var p;gv(n)?h=pr.innerTextLayout(a.rotation,f!=null?f:a.rotation,o):(h=zS(a.rotation,n,f||0,u),p=a.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,x=Ft(a.nameTruncateMaxWidth,g.maxWidth,p),m=new vt({x:c[0],y:c[1],rotation:h.rotation,silent:pr.isLabelSilent(e),style:gt(s,{text:i,font:d,overflow:"truncate",width:x,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ya({el:m,componentModel:e,itemName:i}),m.__fullText=i,m.anid="name",e.get("triggerEvent")){var S=pr.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,et(m).eventData=S}r.add(m),m.updateTransform(),t.add(m),m.decomposeTransform()}}};function zS(a,e,t,r){var i=sp(t-a),n,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return Pa(i-He/2)?(o=l?"bottom":"top",n="center"):Pa(i-He*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",i<He*1.5&&i>He/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function GS(a,e,t){if(!hm(a.axis)){var r=a.get(["axisLabel","showMinLabel"]),i=a.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var n=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],v=t[1],c=t[t.length-1],h=t[t.length-2];r===!1?(ae(n),ae(u)):dv(n,o)&&(r?(ae(o),ae(v)):(ae(n),ae(u))),i===!1?(ae(s),ae(c)):dv(l,s)&&(i?(ae(l),ae(h)):(ae(s),ae(c)))}}function ae(a){a&&(a.ignore=!0)}function dv(a,e){var t=a&&a.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var i=fm([]);return ra(i,i,-a.rotation),t.applyTransform(Hi([],i,a.getLocalTransform())),r.applyTransform(Hi([],i,e.getLocalTransform())),t.intersect(r)}}function gv(a){return a==="middle"||a==="center"}function hd(a,e,t,r,i){for(var n=[],o=[],s=[],l=0;l<a.length;l++){var u=a[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Pe(o,o,e),Pe(s,s,e));var v=new Kt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Ma(v.shape,v.style.lineWidth),v.anid=i+"_"+a[l].tickValue,n.push(v)}return n}function BS(a,e,t,r){var i=t.axis,n=t.getModel("axisTick"),o=n.get("show");if(o==="auto"&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=n.getModel("lineStyle"),l=r.tickDirection*n.get("length"),u=i.getTicksCoords(),v=hd(u,e.transform,l,Q(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<v.length;c++)a.add(v[c]);return v}}function FS(a,e,t,r){var i=t.axis,n=t.getModel("minorTick");if(!(!n.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(!!o.length)for(var s=n.getModel("lineStyle"),l=r*n.get("length"),u=Q(s.getLineStyle(),Q(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),v=0;v<o.length;v++)for(var c=hd(o[v],e.transform,l,u,"minorticks_"+v),h=0;h<c.length;h++)a.add(c[h])}}function HS(a,e,t,r){var i=t.axis,n=Ft(r.axisLabelShow,t.get(["axisLabel","show"]));if(!(!n||i.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Ft(r.labelRotate,o.get("rotate"))||0)*He/180,v=pr.innerTextLayout(r.rotation,u,r.labelDirection),c=t.getCategories&&t.getCategories(!0),h=[],f=pr.isLabelSilent(t),p=t.get("triggerEvent");return D(l,function(d,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,x=d.formattedLabel,m=d.rawLabel,S=o;if(c&&c[y]){var b=c[y];_t(b)&&b.textStyle&&(S=new Rt(b.textStyle,o,t.ecModel))}var _=S.getTextColor()||t.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(y),A=S.getShallow("align",!0)||v.textAlign,T=At(S.getShallow("alignMinLabel",!0),A),C=At(S.getShallow("alignMaxLabel",!0),A),I=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||v.textVerticalAlign,L=At(S.getShallow("verticalAlignMinLabel",!0),I),M=At(S.getShallow("verticalAlignMaxLabel",!0),I),P=new vt({x:w,y:r.labelOffset+r.labelDirection*s,rotation:v.rotation,silent:f,z2:10+(d.level||0),style:gt(S,{text:x,align:g===0?T:g===l.length-1?C:A,verticalAlign:g===0?L:g===l.length-1?M:I,fill:it(_)?_(i.type==="category"?m:i.type==="value"?y+"":y,g):_})});if(P.anid="label_"+y,p){var R=pr.makeAxisEventDataBase(t);R.targetType="axisLabel",R.value=m,R.tickIndex=g,i.type==="category"&&(R.dataIndex=y),et(P).eventData=R}e.add(P),P.updateTransform(),h.push(P),a.add(P),P.decomposeTransform()}),h}}const Re=pr;function WS(a,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return $S(t,a,e),t.seriesInvolved&&US(t,a),t}function $S(a,e,t){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),n=i.get("link",!0)||[],o=[];D(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Na(s.model),u=a.coordSysAxesInfo[l]={};a.coordSysMap[l]=s;var v=s.model,c=v.getModel("tooltip",r);if(D(s.getAxes(),J(d,!1,null)),s.getTooltipAxes&&r&&c.get("show")){var h=c.get("trigger")==="axis",f=c.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||f)&&D(p.baseAxes,J(d,f?"cross":!0,h)),f&&D(p.otherAxes,J(d,"cross",!1))}function d(g,y,x){var m=x.model.getModel("axisPointer",i),S=m.get("show");if(!(!S||S==="auto"&&!g&&!Ss(m))){y==null&&(y=m.get("triggerTooltip")),m=g?ZS(x,c,i,e,g,y):m;var b=m.get("snap"),_=m.get("triggerEmphasis"),w=Na(x.model),A=y||b||x.type==="category",T=a.axesInfo[w]={key:w,axis:x,coordSys:s,axisPointerModel:m,triggerTooltip:y,triggerEmphasis:_,involveSeries:A,snap:b,useHandle:Ss(m),seriesModels:[],linkGroup:null};u[w]=T,a.seriesInvolved=a.seriesInvolved||A;var C=YS(n,x);if(C!=null){var I=o[C]||(o[C]={axesInfo:{}});I.axesInfo[w]=T,I.mapper=n[C].mapper,T.linkGroup=I}}}})}function ZS(a,e,t,r,i,n){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(h){l[h]=lt(o.get(h))}),l.snap=a.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var v=o.get(["label","show"]);if(u.show=v!=null?v:!0,!n){var c=l.lineStyle=o.get("crossStyle");c&&Q(u,c.textStyle)}}return a.model.getModel("axisPointer",new Rt(l,t,r))}function US(a,e){e.eachSeries(function(t){var r=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||n===!1||t.get(["axisPointer","show"],!0)===!1||D(a.coordSysAxesInfo[Na(r.model)],function(o){var s=o.axis;r.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function YS(a,e){for(var t=e.model,r=e.dim,i=0;i<a.length;i++){var n=a[i]||{};if(eo(n[r+"AxisId"],t.id)||eo(n[r+"AxisIndex"],t.componentIndex)||eo(n[r+"AxisName"],t.name))return i}}function eo(a,e){return a==="all"||B(a)&&yt(a,e)>=0||a===e}function XS(a){var e=pl(a);if(!!e){var t=e.axisPointerModel,r=e.axis.scale,i=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=Ss(t);n==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function pl(a){var e=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Na(a)]}function KS(a){var e=pl(a);return e&&e.axisPointerModel}function Ss(a){return!!a.get(["handle","show"])}function Na(a){return a.type+"||"+a.id}var yv={},qS=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){this.axisPointerClass&&XS(t),a.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},e.prototype.updateAxisPointer=function(t,r,i,n){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,r){var i=this._axisPointer;i&&i.remove(r)},e.prototype.dispose=function(t,r){this._disposeAxisPointer(r),a.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,r,i){var n=e.getAxisPointerClass(this.axisPointerClass);if(!!n){var o=KS(t);o?(this._axisPointer||(this._axisPointer=new n)).render(t,o,r,i):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,r){yv[t]=r},e.getAxisPointerClass=function(t){return t&&yv[t]},e.type="axis",e}(Vt);const wr=qS;var bs=Ct();function fd(a,e,t,r){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:n,clamp:!0});if(!!u.length){var v=s.length,c=bs(a).splitAreaColors,h=nt(),f=0;if(c)for(var p=0;p<u.length;p++){var d=c.get(u[p].tickValue);if(d!=null){f=(d+(v-1)*p)%v;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=B(s)?s:[s];for(var p=1;p<u.length;p++){var x=i.toGlobalCoord(u[p].coord),m=void 0,S=void 0,b=void 0,_=void 0;i.isHorizontal()?(m=g,S=l.y,b=x-m,_=l.height,g=m+b):(m=l.x,S=g,b=l.width,_=x-S,g=S+_);var w=u[p-1].tickValue;w!=null&&h.set(w,f),e.add(new ft({anid:w!=null?"area_"+w:null,shape:{x:m,y:S,width:b,height:_},style:Q({fill:s[f]},y),autoBatch:!0,silent:!0})),f=(f+1)%v}bs(a).splitAreaColors=h}}}function pd(a){bs(a).splitAreaColors=null}var jS=["axisLine","axisTickLabel","axisName"],JS=["splitArea","splitLine","minorSplitLine"],dd=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,r,i,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Y,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=xs(s,t),u=new Re(t,$({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),f=0;f<h.length;f++)if(os(h[f].getOtherAxis(t.axis).scale))return!0;return!1}},l));D(jS,u.add,u),this._axisGroup.add(u.getGroup()),D(JS,function(c){t.get([c,"show"])&&QS[c](this,this._axisGroup,t,s)},this);var v=n&&n.type==="changeAxisOrder"&&n.isInitSort;v||_n(o,this._axisGroup,t),a.prototype.render.call(this,t,r,i,n)}},e.prototype.remove=function(){pd(this)},e.type="cartesianAxis",e}(wr),QS={splitLine:function(a,e,t,r){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=B(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),v=0,c=i.getTicksCoords({tickModel:n}),h=[],f=[],p=o.getLineStyle(),d=0;d<c.length;d++){var g=i.toGlobalCoord(c[d].coord);u?(h[0]=g,h[1]=l.y,f[0]=g,f[1]=l.y+l.height):(h[0]=l.x,h[1]=g,f[0]=l.x+l.width,f[1]=g);var y=v++%s.length,x=c[d].tickValue,m=new Kt({anid:x!=null?"line_"+c[d].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:Q({stroke:s[y]},p),silent:!0});Ma(m.shape,p.lineWidth),e.add(m)}}},minorSplitLine:function(a,e,t,r){var i=t.axis,n=t.getModel("minorSplitLine"),o=n.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(!!u.length)for(var v=[],c=[],h=o.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var d=i.toGlobalCoord(u[f][p].coord);l?(v[0]=d,v[1]=s.y,c[0]=d,c[1]=s.y+s.height):(v[0]=s.x,v[1]=d,c[0]=s.x+s.width,c[1]=d);var g=new Kt({anid:"minor_line_"+u[f][p].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:h,silent:!0});Ma(g.shape,h.lineWidth),e.add(g)}},splitArea:function(a,e,t,r){fd(a,e,t,r)}},gd=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(dd),t1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=gd.type,t}return e.type="yAxis",e}(dd),e1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,r){this.group.removeAll(),t.get("show")&&this.group.add(new ft({shape:t.coordinateSystem.getRect(),style:Q({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Vt),mv={offset:0};function yd(a){a.registerComponentView(e1),a.registerComponentModel(DS),a.registerCoordinateSystem("cartesian2d",OS),Kr(a,"x",ys,mv),Kr(a,"y",ys,mv),a.registerComponentView(gd),a.registerComponentView(t1),a.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function r1(a){tt(yd),a.registerSeriesModel(xS),a.registerChartView(TS),a.registerLayout(ei("scatter"))}function a1(a){a.eachSeriesByType("radar",function(e){var t=e.getData(),r=[],i=e.coordinateSystem;if(!!i){var n=i.getIndicatorAxes();D(n,function(o,s){t.each(t.mapDimension(n[s].dim),function(l,u){r[u]=r[u]||[];var v=i.dataToPoint(l,s);r[u][s]=xv(v)?v:Sv(i)})}),t.each(function(o){var s=pm(r[o],function(l){return xv(l)})||Sv(i);r[o].push(s.slice()),t.setItemLayout(o,r[o])})}})}function xv(a){return!isNaN(a[0])&&!isNaN(a[1])}function Sv(a){return[a.cx,a.cy]}function i1(a){var e=a.polar;if(e){B(e)||(e=[e]);var t=[];D(e,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),a.radar=a.radar||[],B(a.radar)||(a.radar=[a.radar]),a.radar.push(r)):t.push(r)}),a.polar=t}D(a.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var n1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,f){var p=h.getItemVisual(f,"symbol")||"circle";if(p!=="none"){var d=Qr(h.getItemVisual(f,"symbolSize")),g=Et(p,-1,-1,2,2),y=h.getItemVisual(f,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function v(h,f,p,d,g,y){p.removeAll();for(var x=0;x<f.length-1;x++){var m=u(d,g);m&&(m.__dimIdx=x,h[x]?(m.setPosition(h[x]),Sr[y?"initProps":"updateProps"](m,{x:f[x][0],y:f[x][1]},t,g)):m.setPosition(f[x]),p.add(m))}}function c(h){return G(h,function(f){return[n.cx,n.cy]})}s.diff(l).add(function(h){var f=s.getItemLayout(h);if(!!f){var p=new ve,d=new de,g={shape:{points:f}};p.shape.points=c(f),d.shape.points=c(f),bt(p,g,t,h),bt(d,g,t,h);var y=new Y,x=new Y;y.add(d),y.add(p),y.add(x),v(d.shape.points,f,x,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,f){var p=l.getItemGraphicEl(f),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),x={shape:{points:s.getItemLayout(h)}};!x.shape.points||(v(d.shape.points,x.shape.points,y,s,h,!1),fe(g),fe(d),ct(d,x,t),ct(g,x,t),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,f){var p=s.getItemModel(f),d=h.childAt(0),g=h.childAt(1),y=h.childAt(2),x=s.getItemVisual(f,"style"),m=x.fill;o.add(h),d.useStyle(Q(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:m})),$t(d,p,"lineStyle"),$t(g,p,"areaStyle");var S=p.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,D(["emphasis","select","blur"],function(A){var T=p.getModel([A,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(A).ignore=C&&b}),g.useStyle(Q(S.getAreaStyle(),{fill:m,opacity:.7,decal:x.decal}));var _=p.getModel("emphasis"),w=_.getModel("itemStyle").getItemStyle();y.eachChild(function(A){if(A instanceof pe){var T=A.style;A.useStyle($({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else A.useStyle(x),A.setColor(m),A.style.strokeNoScale=!0;var C=A.ensureState("emphasis");C.style=lt(w);var I=s.getStore().get(s.getDimensionIndex(A.__dimIdx),f);(I==null||isNaN(I))&&(I=""),Wt(A,zt(p),{labelFetcher:s.hostModel,labelDataIndex:f,labelDimIndex:A.__dimIdx,defaultText:I,inheritColor:m,defaultOpacity:x.opacity})}),St(h,_.get("focus"),_.get("blurScope"),_.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(xt);const o1=n1;var s1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ai(Z(this.getData,this),Z(this.getRawData,this))},e.prototype.getInitialData=function(t,r){return ia(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,v=dm(this,t);return Ut("section",{header:u,sortBlocks:!0,blocks:G(s,function(c){var h=n.get(n.mapDimension(c.dim),t);return Ut("nameValue",{markerType:"subItem",markerColor:v,name:c.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var r=this.getData(),i=this.coordinateSystem,n=r.getValues(G(i.dimensions,function(u){return r.mapDimension(u)}),t),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(n[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Tt);const l1=s1;var oa=vd.value;function pi(a,e){return Q({show:e},a)}var u1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),r=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),v=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),f=G(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=Q({color:p.color},l));var g=dt(lt(p),{boundaryGap:t,splitNumber:r,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:h},!1);if(K(v)){var y=g.name;g.name=v.replace("{value}",y!=null?y:"")}else it(v)&&(g.name=v(g.name,g));var x=new Rt(g,null,this.ecModel);return we(x,Ua.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x},this);this._indicatorModels=f},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:dt({lineStyle:{color:"#bbb"}},oa.axisLine),axisLabel:pi(oa.axisLabel,!1),axisTick:pi(oa.axisTick,!1),splitLine:pi(oa.splitLine,!0),splitArea:pi(oa.splitArea,!0),indicator:[]},e}(Lt);const v1=u1;var c1=["axisLine","axisTickLabel","axisName"],h1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes(),n=G(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Re(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(n,function(o){D(c1,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),v=o.get("show"),c=s.get("show"),h=l.get("color"),f=u.get("color"),p=B(h)?h:[h],d=B(f)?f:[f],g=[],y=[];function x(R,k,N){var V=N%k.length;return R[V]=R[V]||[],V}if(n==="circle")for(var m=i[0].getTicksCoords(),S=r.cx,b=r.cy,_=0;_<m.length;_++){if(v){var w=x(g,p,_);g[w].push(new Xa({shape:{cx:S,cy:b,r:m[_].coord}}))}if(c&&_<m.length-1){var w=x(y,d,_);y[w].push(new lp({shape:{cx:S,cy:b,r0:m[_].coord,r:m[_+1].coord}}))}}else for(var A,T=G(i,function(R,k){var N=R.getTicksCoords();return A=A==null?N.length-1:Math.min(N.length-1,A),G(N,function(V){return r.coordToPoint(V.coord,k)})}),C=[],_=0;_<=A;_++){for(var I=[],L=0;L<i.length;L++)I.push(T[L][_]);if(I[0]&&I.push(I[0].slice()),v){var w=x(g,p,_);g[w].push(new de({shape:{points:I}}))}if(c&&C){var w=x(y,d,_-1);y[w].push(new ve({shape:{points:I.concat(C)}}))}C=I.slice().reverse()}var M=l.getLineStyle(),P=u.getAreaStyle();D(y,function(R,k){this.group.add(ce(R,{style:Q({stroke:"none",fill:d[k%d.length]},P),silent:!0}))},this),D(g,function(R,k){this.group.add(ce(R,{style:Q({fill:"none",stroke:p[k%p.length]},M),silent:!0}))},this)},e.type="radar",e}(Vt);const f1=h1;var p1=function(a){E(e,a);function e(t,r,i){var n=a.call(this,t,r,i)||this;return n.type="value",n.angle=0,n.name="",n}return e}(ge);const d1=p1;var g1=function(){function a(e,t,r){this.dimensions=[],this._model=e,this._indicatorAxes=G(e.getIndicatorModels(),function(i,n){var o="indicator_"+n,s=new d1(o,new Fi);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,r)}return a.prototype.getIndicatorAxes=function(){return this._indicatorAxes},a.prototype.dataToPoint=function(e,t){var r=this._indicatorAxes[t];return this.coordToPoint(r.dataToCoord(e),t)},a.prototype.coordToPoint=function(e,t){var r=this._indicatorAxes[t],i=r.angle,n=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[n,o]},a.prototype.pointToData=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=Math.sqrt(t*t+r*r);t/=i,r/=i;for(var n=Math.atan2(-r,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var v=this._indicatorAxes[u],c=Math.abs(n-v.angle);c<o&&(s=v,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},a.prototype.resize=function(e,t){var r=e.get("center"),i=t.getWidth(),n=t.getHeight(),o=Math.min(i,n)/2;this.cx=F(r[0],i),this.cy=F(r[1],n),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(K(s)||Yt(s))&&(s=[0,s]),this.r0=F(s[0],o),this.r=F(s[1],o),D(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var v=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;v=Math.atan2(Math.sin(v),Math.cos(v)),l.angle=v},this)},a.prototype.update=function(e,t){var r=this._indicatorAxes,i=this._model;D(r,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();D(r,function(v){v.scale.unionExtentFromData(u,u.mapDimension(v.dim))})}},this);var n=i.get("splitNumber"),o=new Fi;o.setExtent(0,n),o.setInterval(1),D(r,function(s,l){cd(s.scale,s.model,o)})},a.prototype.convertToPixel=function(e,t,r){return console.warn("Not implemented."),null},a.prototype.convertFromPixel=function(e,t,r){return console.warn("Not implemented."),null},a.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},a.create=function(e,t){var r=[];return e.eachComponent("radar",function(i){var n=new a(i,e,t);r.push(n),i.coordinateSystem=n}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=r[i.get("radarIndex")||0])}),r},a.dimensions=[],a}();const y1=g1;function m1(a){a.registerCoordinateSystem("radar",y1),a.registerComponentModel(v1),a.registerComponentView(f1),a.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(r){t.setItemVisual(r,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function x1(a){tt(m1),a.registerChartView(o1),a.registerSeriesModel(l1),a.registerLayout(a1),a.registerProcessor(ri("radar")),a.registerPreprocessor(i1)}var bv="\0_ec_interaction_mutex";function S1(a,e,t){var r=dl(a);r[e]=t}function b1(a,e,t){var r=dl(a),i=r[e];i===t&&(r[e]=null)}function _v(a,e){return!!dl(a)[e]}function dl(a){return a[bv]||(a[bv]={})}wn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},_e);var _1=function(a){E(e,a);function e(t){var r=a.call(this)||this;r._zr=t;var i=Z(r._mousedownHandler,r),n=Z(r._mousemoveHandler,r),o=Z(r._mouseupHandler,r),s=Z(r._mousewheelHandler,r),l=Z(r._pinchHandler,r);return r.enable=function(u,v){this.disable(),this._opt=Q(lt(v)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",i),t.on("mousemove",n),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},r.disable=function(){t.off("mousedown",i),t.off("mousemove",n),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!gu(t)){for(var r=t.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Ri("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||_v(this._zr,"globalPan"))){var r=t.offsetX,i=t.offsetY,n=this._x,o=this._y,s=r-n,l=i-o;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&Ye(t.event),md(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:n,oldY:o,newX:r,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){gu(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var r=Ri("zoomOnMouseWheel",t,this._opt),i=Ri("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),s=t.offsetX,l=t.offsetY;if(!(n===0||!r&&!i)){if(r){var u=o>3?1.4:o>1?1.2:1.1,v=n>0?u:1/u;ro(this,"zoom","zoomOnMouseWheel",t,{scale:v,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(n),h=(n>0?1:-1)*(c>3?.4:c>1?.15:.05);ro(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!_v(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;ro(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(up);function ro(a,e,t,r,i){a.pointerChecker&&a.pointerChecker(r,i.originX,i.originY)&&(Ye(r.event),md(a,e,t,r,i))}function md(a,e,t,r,i){i.isAvailableBehavior=Z(Ri,null,t,r),a.trigger(e,i)}function Ri(a,e,t){var r=t[a];return!a||r&&(!K(r)||e.event[r+"Key"])}const ii=_1;function gl(a,e,t){var r=a.target;r.x+=e,r.y+=t,r.dirty()}function yl(a,e,t,r){var i=a.target,n=a.zoomLimit,o=a.zoom=a.zoom||1;if(o*=e,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/a.zoom;a.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var w1={axisPointer:1,tooltip:1,brush:1};function Pn(a,e,t){var r=e.getComponentByElement(a.topTarget),i=r&&r.coordinateSystem;return r&&r!==t&&!w1.hasOwnProperty(r.mainType)&&i&&i.model!==t}function xd(a){if(K(a)){var e=new DOMParser;a=e.parseFromString(a,"text/xml")}var t=a;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var ao,qi={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},wv=Pt(qi),ji={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Av=Pt(ji),A1=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(e,t){t=t||{};var r=xd(e);this._defsUsePending=[];var i=new Y;this._root=i;var n=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),re(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;D1(this._defs,this._defsUsePending),this._defsUsePending=[];var v,c;if(o){var h=Rn(o);h.length>=4&&(v={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(v&&s!=null&&l!=null&&(c=bd(v,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var f=i;i=new Y,i.add(f),f.scaleX=f.scaleY=c.scale,f.x=c.x,f.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new ft({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:v,viewBoxTransform:c,named:n}},a.prototype._parseNode=function(e,t,r,i,n,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var v=ao[s];if(v&&W(ao,s)){l=v.call(this,e,t);var c=e.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};r.push(h),s==="g"&&(u=h)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var f=Tv[s];if(f&&W(Tv,s)){var p=f.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,n,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},a.prototype._parseText=function(e,t){var r=new qf({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ie(t,r),re(e,r,this._defsUsePending,!1,!1),T1(r,t);var i=r.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,r.scaleX*=n/9,r.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},a.internalField=function(){ao={g:function(e,t){var r=new Y;return ie(t,r),re(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new ft;return ie(t,r),re(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new Xa;return ie(t,r),re(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new Kt;return ie(t,r),re(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new gm;return ie(t,r),re(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),i;r&&(i=Iv(r));var n=new ve({shape:{points:i||[]},silent:!0});return ie(t,n),re(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var r=e.getAttribute("points"),i;r&&(i=Iv(r));var n=new de({shape:{points:i||[]},silent:!0});return ie(t,n),re(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var r=new pe;return ie(t,r),re(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new Y;return ie(t,s),re(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Y;return ie(t,s),re(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",i=ym(r);return ie(t,i),re(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),a}(),Tv={lineargradient:function(a){var e=parseInt(a.getAttribute("x1")||"0",10),t=parseInt(a.getAttribute("y1")||"0",10),r=parseInt(a.getAttribute("x2")||"10",10),i=parseInt(a.getAttribute("y2")||"0",10),n=new gn(e,t,r,i);return Cv(a,n),Dv(a,n),n},radialgradient:function(a){var e=parseInt(a.getAttribute("cx")||"0",10),t=parseInt(a.getAttribute("cy")||"0",10),r=parseInt(a.getAttribute("r")||"0",10),i=new mm(e,t,r);return Cv(a,i),Dv(a,i),i}};function Cv(a,e){var t=a.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Dv(a,e){for(var t=a.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var n={};Sd(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function ie(a,e){a&&a.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,a.__inheritedStyle))}function Iv(a){for(var e=Rn(a),t=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),n=parseFloat(e[r+1]);t.push([i,n])}return t}function re(a,e,t,r,i){var n=e,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};a.nodeType===1&&(M1(a,e),Sd(a,o,s),r||P1(a,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=Lv(n,"fill",o.fill,t)),o.stroke!=null&&(n.style.stroke=Lv(n,"stroke",o.stroke,t)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(n.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(n.style[l]=o[l])}),i&&(n.__selfStyle=s),o.lineDash&&(n.style.lineDash=G(Rn(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0)}function T1(a,e){var t=e.__selfStyle;if(t){var r=t.textBaseline,i=r;!r||r==="auto"||r==="baseline"?i="alphabetic":r==="before-edge"||r==="text-before-edge"?i="top":r==="after-edge"||r==="text-after-edge"?i="bottom":(r==="central"||r==="mathematical")&&(i="middle"),a.style.textBaseline=i}var n=e.__inheritedStyle;if(n){var o=n.textAlign,s=o;o&&(o==="middle"&&(s="center"),a.style.textAlign=s)}}var C1=/^url\(\s*#(.*?)\)/;function Lv(a,e,t,r){var i=t&&t.match(C1);if(i){var n=vp(i[1]);r.push([a,e,n]);return}return t==="none"&&(t=null),t}function D1(a,e){for(var t=0;t<e.length;t++){var r=e[t];r[0].style[r[1]]=a[r[2]]}}var I1=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Rn(a){return a.match(I1)||[]}var L1=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,io=Math.PI/180;function M1(a,e){var t=a.getAttribute("transform");if(t){t=t.replace(/,/g," ");var r=[],i=null;t.replace(L1,function(c,h,f){return r.push(h,f),""});for(var n=r.length-1;n>0;n-=2){var o=r[n],s=r[n-1],l=Rn(o);switch(i=i||br(),s){case"translate":Xe(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":cp(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ra(i,i,-parseFloat(l[0])*io,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*io);Hi(i,[1,0,u,1,0,0],i);break;case"skewY":var v=Math.tan(parseFloat(l[0])*io);Hi(i,[1,v,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var Mv=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Sd(a,e,t){var r=a.getAttribute("style");if(!!r){Mv.lastIndex=0;for(var i;(i=Mv.exec(r))!=null;){var n=i[1],o=W(qi,n)?qi[n]:null;o&&(e[o]=i[2]);var s=W(ji,n)?ji[n]:null;s&&(t[s]=i[2])}}}function P1(a,e,t){for(var r=0;r<wv.length;r++){var i=wv[r],n=a.getAttribute(i);n!=null&&(e[qi[i]]=n)}for(var r=0;r<Av.length;r++){var i=Av[r],n=a.getAttribute(i);n!=null&&(t[ji[i]]=n)}}function bd(a,e){var t=e.width/a.width,r=e.height/a.height,i=Math.min(t,r);return{scale:i,x:-(a.x+a.width/2)*i+(e.x+e.width/2),y:-(a.y+a.height/2)*i+(e.y+e.height/2)}}function R1(a,e){var t=new A1;return t.parse(a,e)}var k1=nt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),E1=function(){function a(e,t){this.type="geoSVG",this._usedGraphicMap=nt(),this._freedGraphics=[],this._mapName=e,this._parsedXML=xd(t)}return a.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=N1(e.named),r=t.regions,i=t.regionsMap;this._regions=r,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},a.prototype._buildGraphic=function(e){var t,r;try{t=e&&R1(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=t.root,Oi(r!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var i=new Y;i.add(r),i.isGeoSVGGraphicRoot=!0;var n=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,v=void 0,c=void 0,h=void 0;if(n!=null?(u=0,c=n):s&&(u=s.x,c=s.width),o!=null?(v=0,h=o):s&&(v=s.y,h=s.height),u==null||v==null){var f=r.getBoundingRect();u==null&&(u=f.x,c=f.width),v==null&&(v=f.y,h=f.height)}l=this._boundingRect=new kt(u,v,c,h)}if(s){var p=bd(s,l);r.scaleX=r.scaleY=p.scale,r.x=p.x,r.y=p.y}i.setClipPath(new ft({shape:l.plain()}));var d=[];return D(t.named,function(g){k1.get(g.svgNodeTagLower)!=null&&(d.push(g),V1(g.el))}),{root:i,boundingRect:l,named:d}},a.prototype.useGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,r),r)},a.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);r&&(t.removeKey(e),this._freedGraphics.push(r))},a}();function V1(a){a.silent=!1,a.isGroup&&a.traverse(function(e){e.silent=!1})}function N1(a){var e=[],t=nt();return D(a,function(r){if(r.namedFrom==null){var i=new xm(r.name,r.el);e.push(i),t.set(r.name,i)}}),{regions:e,regionsMap:t}}var _s=[126,25],Pv="\u5357\u6D77\u8BF8\u5C9B",ar=[[[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 er=0;er<ar.length;er++)for(var Tr=0;Tr<ar[er].length;Tr++)ar[er][Tr][0]/=10.5,ar[er][Tr][1]/=-10.5/.75,ar[er][Tr][0]+=_s[0],ar[er][Tr][1]+=_s[1];function O1(a,e){if(a==="china"){for(var t=0;t<e.length;t++)if(e[t].name===Pv)return;e.push(new Sm(Pv,G(ar,function(r){return{type:"polygon",exterior:r}}),_s))}}var z1=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function G1(a,e){a==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:z1[0]})}var B1="name",F1=function(){function a(e,t,r){this.type="geoJSON",this._parsedMap=nt(),this._mapName=e,this._specialAreas=r,this._geoJSON=W1(t)}return a.prototype.load=function(e,t){t=t||B1;var r=this._parsedMap.get(t);if(!r){var i=this._parseToRegions(t);r=this._parsedMap.set(t,{regions:i,boundingRect:H1(i)})}var n=nt(),o=[];return D(r.regions,function(s){var l=s.name;e&&W(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new kt(0,0,0,0),regionsMap:n}},a.prototype._parseToRegions=function(e){var t=this._mapName,r=this._geoJSON,i;try{i=r?bm(r,e):[]}catch(n){throw new Error(`Invalid geoJson format
`+n.message)}return O1(t,i),D(i,function(n){var o=n.name;_m(t,n),G1(t,n);var s=this._specialAreas&&this._specialAreas[o];s&&n.transformTo(s.left,s.top,s.width,s.height)},this),i},a.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},a}();function H1(a){for(var e,t=0;t<a.length;t++){var r=a[t].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function W1(a){return K(a)?typeof JSON<"u"&&JSON.parse?JSON.parse(a):new Function("return ("+a+");")():a}var sa=nt();const ke={registerMap:function(a,e,t){if(e.svg){var r=new E1(a,e.svg);sa.set(a,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var r=new F1(a,i,t);sa.set(a,r)}},getGeoResource:function(a){return sa.get(a)},getMapForUser:function(a){var e=sa.get(a);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(a,e,t){var r=sa.get(a);if(!!r)return r.load(e,t)}};var ml=["rect","circle","line","ellipse","polygon","polyline","path"],$1=nt(ml),Z1=nt(ml.concat(["g"])),U1=nt(ml.concat(["g"])),_d=Ct();function di(a){var e=a.getItemStyle(),t=a.get("areaColor");return t!=null&&(e.fill=t),e}function Rv(a){var e=a.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Y1=function(){function a(e){var t=new Y;this.uid=hp("ec_map_draw"),this._controller=new ii(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Y),t.add(this._svgGroup=new Y)}return a.prototype.draw=function(e,t,r,i,n){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,v=this.group,c=l.getTransformInfo(),h=c.raw,f=c.roam,p=!u.childAt(0)||n;p?(v.x=f.x,v.y=f.y,v.scaleX=f.scaleX,v.scaleY=f.scaleY,v.dirty()):ct(v,f,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,i)},a.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=nt(),r=nt(),i=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function v(f,p){return p&&(f=p(f)),f&&[f[0]*n.scaleX+n.x,f[1]*n.scaleY+n.y]}function c(f){for(var p=[],d=!u&&l&&l.project,g=0;g<f.length;++g){var y=v(f[g],d);y&&p.push(y)}return p}function h(f){return{shape:{points:c(f)}}}i.removeAll(),D(e.geo.regions,function(f){var p=f.name,d=t.get(p),g=r.get(p)||{},y=g.dataIdx,x=g.regionModel;d||(d=t.set(p,new Y),i.add(d),y=s?s.indexOfName(p):null,x=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,r.set(p,{dataIdx:y,regionModel:x}));var m=[],S=[];D(f.geometries,function(w){if(w.type==="polygon"){var A=[w.exterior].concat(w.interiors||[]);u&&(A=zv(A,u)),D(A,function(C){m.push(new ve(h(C)))})}else{var T=w.points;u&&(T=zv(T,u,!0)),D(T,function(C){S.push(new de(h(C)))})}});var b=v(f.getCenter(),l&&l.project);function _(w,A){if(!!w.length){var T=new Yf({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});d.add(T),kv(e,T,y,x),Ev(e,T,p,x,o,y,b),A&&(Rv(T),D(T.states,Rv))}}_(m),_(S,!0)}),t.each(function(f,p){var d=r.get(p),g=d.dataIdx,y=d.regionModel;Vv(e,f,p,y,o,g),Nv(e,f,p,y,o),Ov(e,f,p,y,o)},this)},a.prototype._buildSVG=function(e){var t=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=nt(),n=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,v=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,f=l.getRegionModel(s);if($1.get(v)!=null&&c instanceof gr&&kv(e,c,h,f),c instanceof gr&&(c.culling=!0),c.z2EmphasisLift=0,!o.namedFrom&&(U1.get(v)!=null&&Ev(e,c,s,f,l,h,null),Vv(e,c,s,f,l,h),Nv(e,c,s,f,l),Z1.get(v)!=null)){var p=Ov(e,c,s,f,l);p==="self"&&(n=!0);var d=i.get(s)||i.set(s,[]);d.push(c)}},this),this._enableBlurEntireSVG(n,e)},a.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var r=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=r.opacity;this._svgGraphicRecord.root.traverse(function(n){if(!n.isGroup){Yr(n);var o=n.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),n.ensureState("emphasis")}})}},a.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},a.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var r=t.coordinateSystem;if(r.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var n=i.get(e);return n?[n]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},a.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},a.prototype._useSVG=function(e){var t=ke.getGeoResource(e);if(t&&t.type==="geoSVG"){var r=t.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},a.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=ke.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},a.prototype._updateController=function(e,t,r){var i=e.coordinateSystem,n=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),n.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}n.off("pan").on("pan",function(u){this._mouseDownFlag=!1,gl(o,u.dx,u.dy),r.dispatchAction($(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),n.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,yl(o,u.scale,u.originX,u.originY),r.dispatchAction($(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),n.setPointerChecker(function(u,v,c){return i.containPoint([v,c])&&!Pn(u,r,e)})},a.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=_d(t).ignore)})},a.prototype._updateMapSelectHandler=function(e,t,r,i){var n=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){n._mouseDownFlag=!0}),t.on("click",function(o){!n._mouseDownFlag||(n._mouseDownFlag=!1)}))},a}();function kv(a,e,t,r){var i=r.getModel("itemStyle"),n=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=di(i),u=di(n),v=di(s),c=di(o),h=a.data;if(h){var f=h.getItemVisual(t,"style"),p=h.getItemVisual(t,"decal");a.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=An(p,a.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=v,e.ensureState("blur").style=c,Yr(e)}function Ev(a,e,t,r,i,n,o){var s=a.data,l=a.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),n)),v=s&&s.getItemLayout(n);if(l||u||v&&v.showLabel){var c=l?t:n,h=void 0;(!s||n>=0)&&(h=i);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Wt(e,zt(r),{labelFetcher:h,labelDataIndex:c,defaultText:t},f);var p=e.getTextContent();if(p&&(_d(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Vv(a,e,t,r,i,n){a.data?a.data.setItemGraphicEl(n,e):et(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:r&&r.option||{}}}function Nv(a,e,t,r,i){a.data||Ya({el:e,componentModel:i,itemName:t,itemTooltipOption:r.get("tooltip")})}function Ov(a,e,t,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var n=r.getModel("emphasis"),o=n.get("focus");return St(e,o,n.get("blurScope"),n.get("disabled")),a.isGeo&&wm(e,i,t),o}function zv(a,e,t){var r=[],i;function n(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),D(a,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),r}const wd=Y1;var X1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&n&&n.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new wd(i);o.add(s.group),s.draw(t,r,i,this,n),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(t,r,i)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,r,i){var n=t.originalData,o=this.group;n.each(n.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=n.getItemLayout(l);if(!(!u||!u.point)){var v=u.point,c=u.offset,h=new Xa({style:{fill:t.getData().getVisual("style").fill},shape:{cx:v[0]+c*9,cy:v[1],r:3},silent:!0,z2:8+(c?0:Ka+1)});if(!c){var f=t.mainSeries.getData(),p=n.getName(l),d=f.indexOfName(p),g=n.getItemModel(l),y=g.getModel("label"),x=f.getItemGraphicEl(d);Wt(h,zt(g),{labelFetcher:{getFormattedLabel:function(m,S){return t.getFormattedLabel(d,S)}},defaultText:p}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),x.onHoverStateChange=function(m){zi(h,m)}}o.add(h)}}})},e.type="map",e}(xt);const K1=X1;var q1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(r){if(r!=null){var i=this.getData().getName(r),n=this.coordinateSystem,o=n.getRegion(i);return o&&n.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var r=ia(this,{coordDimensions:["value"],encodeDefaulter:J(rl,this)}),i=nt(),n=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);i.set(l,!0)}var u=ke.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(v){var c=v.name;i.get(c)||n.push(c)}),r.appendValues([],n),r},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var r=this.getData();return r.get(r.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var r=this.getData();return r.getItemModel(r.indexOfName(t))},e.prototype.formatTooltip=function(t,r,i){for(var n=this.getData(),o=this.getRawValue(t),s=n.getName(t),l=this.seriesGroup,u=[],v=0;v<l.length;v++){var c=l[v].originalData.indexOfName(s),h=n.mapDimension("value");isNaN(l[v].originalData.get(h,c))||u.push(l[v].name)}return Ut("section",{header:u.join(", "),noHeader:!u.length,blocks:[Ut("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var r=t.icon||"roundRect",i=Et(r,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.style.stroke="none",r.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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"},e}(Tt);const j1=q1;function J1(a,e){var t={};return D(a,function(r){r.each(r.mapDimension("value"),function(i,n){var o="ec-"+r.getName(n);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),a[0].map(a[0].mapDimension("value"),function(r,i){for(var n="ec-"+a[0].getName(i),o=0,s=1/0,l=-1/0,u=t[n].length,v=0;v<u;v++)s=Math.min(s,t[n][v]),l=Math.max(l,t[n][v]),o+=t[n][v];var c;return e==="min"?c=s:e==="max"?c=l:e==="average"?c=o/u:c=o,u===0?NaN:c})}function Q1(a){var e={};a.eachSeriesByType("map",function(t){var r=t.getHostGeoModel(),i=r?"o"+r.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),D(e,function(t,r){for(var i=J1(G(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),n=0;n<t.length;n++)t[n].originalData=t[n].getData();for(var n=0;n<t.length;n++)t[n].seriesGroup=t,t[n].needsDrawMap=n===0&&!t[n].getHostGeoModel(),t[n].setData(i.cloneShallow()),t[n].mainSeries=t[0]})}function tb(a){var e={};a.eachSeriesByType("map",function(t){var r=t.getMapType();if(!(t.getHostGeoModel()||e[r])){var i={};D(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&a.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,v){var c=l.getName(v),h=s.getRegion(c);if(!(!h||isNaN(u))){var f=i[c]||0,p=s.dataToPoint(h.getCenter());i[c]=f+1,l.setItemLayout(v,{point:p,offset:f})}})});var n=t.getData();n.each(function(o){var s=n.getName(o),l=n.getItemLayout(o)||{};l.showLabel=!i[s],n.setItemLayout(o,l)}),e[r]=!0}})}var Gv=Pe,eb=function(a){E(e,a);function e(t){var r=a.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new ga,r._rawTransformable=new ga,r.name=t,r}return e.prototype.setBoundingRect=function(t,r,i,n){return this._rect=new kt(t,r,i,n),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,r,i,n){this._transformTo(t,r,i,n),this._viewRect=new kt(t,r,i,n)},e.prototype._transformTo=function(t,r,i,n){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new kt(t,r,i,n));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,r){!t||(this._center=[F(t[0],r.getWidth()),F(t[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var r=this.zoomLimit;r&&(r.max!=null&&(t=Math.min(r.max,t)),r.min!=null&&(t=Math.max(r.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),r=t.x+t.width/2,i=t.y+t.height/2;return[r,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),o=this.getZoom();n=Pe([],n,t),i=Pe([],i,t),r.originX=n[0],r.originY=n[1],r.x=i[0]-n[0],r.y=i[1]-n[1],r.scaleX=r.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,r=this._rawTransformable;r.parent=t,t.updateTransform(),r.updateTransform(),Am(this.transform||(this.transform=[]),r.transform||br()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],op(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,r=this._roamTransformable,i=new ga;return i.transform=r.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,r,i){var n=r?this._rawTransform:this.transform;return i=i||[],n?Gv(i,t,n):Xt(i,t)},e.prototype.pointToData=function(t){var r=this.invTransform;return r?Gv([],t,r):[t[0],t[1]]},e.prototype.convertToPixel=function(t,r,i){var n=Bv(r);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,r,i){var n=Bv(r);return n===this?n.pointToData(i):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(ga);function Bv(a){var e=a.seriesModel;return e?e.coordinateSystem:null}const ni=eb;var rb={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Ad=["lng","lat"],Td=function(a){E(e,a);function e(t,r,i){var n=a.call(this,t)||this;n.dimensions=Ad,n.type="geo",n._nameCoordMap=nt(),n.map=r;var o=i.projection,s=ke.load(r,i.nameMap,i.nameProperty),l=ke.getGeoResource(r);n.resourceType=l?l.type:null;var u=n.regions=s.regions,v=rb[l.type];n._regionsMap=s.regionsMap,n.regions=s.regions,n.projection=o;var c;if(o)for(var h=0;h<u.length;h++){var f=u[h].getBoundingRect(o);c=c||f.clone(),c.union(f)}else c=s.boundingRect;return n.setBoundingRect(c.x,c.y,c.width,c.height),n.aspectScale=o?1:At(i.aspectScale,v.aspectScale),n._invertLongitute=o?!1:v.invertLongitute,n}return e.prototype._transformTo=function(t,r,i,n){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 kt(t,r,i,n));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var r=this.regions,i=0;i<r.length;i++){var n=r[i];if(n.type==="geoJSON"&&n.contain(t))return r[i]}},e.prototype.addGeoCoord=function(t,r){this._nameCoordMap.set(t,r)},e.prototype.getGeoCoord=function(t){var r=this._regionsMap.get(t);return this._nameCoordMap.get(t)||r&&r.getCenter()},e.prototype.dataToPoint=function(t,r,i){if(K(t)&&(t=this.getGeoCoord(t)),t){var n=this.projection;return n&&(t=n.project(t)),t&&this.projectedToPoint(t,r,i)}},e.prototype.pointToData=function(t){var r=this.projection;return r&&(t=r.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return a.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,r,i){return a.prototype.dataToPoint.call(this,t,r,i)},e.prototype.convertToPixel=function(t,r,i){var n=Fv(r);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,r,i){var n=Fv(r);return n===this?n.pointToData(i):null},e}(ni);we(Td,ni);function Fv(a){var e=a.geoModel,t=a.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",ee).models[0]||{}).coordinateSystem:null}const Hv=Td;function Wv(a,e){var t=a.get("boundingCoords");if(t!=null){var r=t[0],i=t[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var n=this.projection;if(n){var o=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var v=function(_,w,A,T){for(var C=A-_,I=T-w,L=0;L<=100;L++){var M=L/100,P=n.project([_+C*M,w+I*M]);Tm(r,r,P),Cm(i,i,P)}};v(o,s,l,s),v(l,s,l,u),v(l,u,o,u),v(o,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var c=this.getBoundingRect(),h=a.get("layoutCenter"),f=a.get("layoutSize"),p=e.getWidth(),d=e.getHeight(),g=c.width/c.height*this.aspectScale,y=!1,x,m;h&&f&&(x=[F(h[0],p),F(h[1],d)],m=F(f,Math.min(p,d)),!isNaN(x[0])&&!isNaN(x[1])&&!isNaN(m)&&(y=!0));var S;if(y)S={},g>1?(S.width=m,S.height=m/g):(S.height=m,S.width=m*g),S.y=x[1]-S.height/2,S.x=x[0]-S.width/2;else{var b=a.getBoxLayoutParams();b.aspect=g,S=Gt(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(a.get("center"),e),this.setZoom(a.get("zoom"))}function ab(a,e){D(e.get("geoCoord"),function(t,r){a.addGeoCoord(r,t)})}var ib=function(){function a(){this.dimensions=Ad}return a.prototype.create=function(e,t){var r=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Hv(l+s,l,$({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Wv,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var n={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),D(n,function(o,s){var l=G(o,function(v){return v.get("nameMap")}),u=new Hv(s,s,$({nameMap:al(l)},i(o[0])));u.zoomLimit=Ft.apply(null,G(o,function(v){return v.get("scaleLimit")})),r.push(u),u.resize=Wv,u.resize(o[0],t),D(o,function(v){v.coordinateSystem=u,ab(u,v)})}),r},a.prototype.getFilledRegions=function(e,t,r,i){for(var n=(e||[]).slice(),o=nt(),s=0;s<n.length;s++)o.set(n[s].name,n[s]);var l=ke.load(t,r,i);return D(l.regions,function(u){var v=u.name;!o.get(v)&&n.push({name:v})}),n},a}(),nb=new ib;const Cd=nb;var ob=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,i){var n=ke.getGeoResource(t.map);if(n&&n.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,i),Za(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,r=this.option;r.regions=Cd.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var i={};this._optionModelMap=fp(r.regions||[],function(n,o){var s=o.name;return s&&(n.set(s,new Rt(o,t,t.ecModel)),o.selected&&(i[s]=!0)),n},nt()),r.selectedMap||(r.selectedMap=i)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Rt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,r){var i=this.getRegionModel(t),n=r==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:t};if(it(n))return o.status=r,n(o);if(K(n))return n.replace("{a}",t!=null?t:"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var r=this.option,i=r.selectedMode;if(!!i){i!=="multiple"&&(r.selectedMap=null);var n=r.selectedMap||(r.selectedMap={});n[t]=!0}},e.prototype.unSelect=function(t){var r=this.option.selectedMap;r&&(r[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var r=this.option.selectedMap;return!!(r&&r[t])},e.type="geo",e.layoutMode="box",e.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:[]},e}(Lt);const sb=ob;function $v(a,e){return a.pointToProjected?a.pointToProjected(e):a.pointToData(e)}function xl(a,e,t,r){var i=a.getZoom(),n=a.getCenter(),o=e.zoom,s=a.projectedToPoint?a.projectedToPoint(n):a.dataToPoint(n);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,a.setCenter($v(a,s),r)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}a.scaleX*=o,a.scaleY*=o;var v=(e.originX-a.x)*(o-1),c=(e.originY-a.y)*(o-1);a.x-=v,a.y-=c,a.updateTransform(),a.setCenter($v(a,s),r),a.setZoom(o*i)}return{center:a.getCenter(),zoom:a.getZoom()}}var lb=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,r){this._api=r},e.prototype.render=function(t,r,i,n){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new wd(i));var o=this._mapDraw;o.draw(t,r,i,this,n),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,r,i)},e.prototype._handleRegionClick=function(t){var r;il(t.target,function(i){return(r=et(i).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(t,r,i){var n=this;this._mapDraw.group.traverse(function(o){var s=et(o).eventData;if(s)return n._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Vt);const ub=lb;function vb(a,e,t){ke.registerMap(a,e,t)}function Dd(a){a.registerCoordinateSystem("geo",Cd),a.registerComponentModel(sb),a.registerComponentView(ub),a.registerImpl("registerMap",vb),a.registerImpl("getMap",function(t){return ke.getMapForUser(t)});function e(t,r){r.update="geo:updateSelectStatus",a.registerAction(r,function(i,n){var o={},s=[];return n.eachComponent({mainType:"geo",query:i},function(l){l[t](i.name);var u=l.coordinateSystem;D(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var v=[];D(o,function(c,h){o[h]&&v.push(h)}),s.push({geoIndex:l.componentIndex,name:v})}),{selected:o,allSelected:s,name:i.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),a.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,r,i){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=xl(s,t,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),n==="series"&&D(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function cb(a){tt(Dd),a.registerChartView(K1),a.registerSeriesModel(j1),a.registerLayout(tb),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,Q1),np("map",a.registerAction)}function hb(a){var e=a;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],r,i;r=t.pop();)if(i=r.children,r.isExpand&&i.length)for(var n=i.length,o=n-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function fb(a,e){var t=a.isExpand?a.children:[],r=a.parentNode.children,i=a.hierNode.i?r[a.hierNode.i-1]:null;if(t.length){gb(a);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;i?(a.hierNode.prelim=i.hierNode.prelim+e(a,i),a.hierNode.modifier=a.hierNode.prelim-n):a.hierNode.prelim=n}else i&&(a.hierNode.prelim=i.hierNode.prelim+e(a,i));a.parentNode.hierNode.defaultAncestor=yb(a,i,a.parentNode.hierNode.defaultAncestor||r[0],e)}function pb(a){var e=a.hierNode.prelim+a.parentNode.hierNode.modifier;a.setLayout({x:e},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function Zv(a){return arguments.length?a:Sb}function Sa(a,e){return a-=Math.PI/2,{x:e*Math.cos(a),y:e*Math.sin(a)}}function db(a,e){return Gt(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gb(a){for(var e=a.children,t=e.length,r=0,i=0;--t>=0;){var n=e[t];n.hierNode.prelim+=r,n.hierNode.modifier+=r,i+=n.hierNode.change,r+=n.hierNode.shift+i}}function yb(a,e,t,r){if(e){for(var i=a,n=a,o=n.parentNode.children[0],s=e,l=i.hierNode.modifier,u=n.hierNode.modifier,v=o.hierNode.modifier,c=s.hierNode.modifier;s=no(s),n=oo(n),s&&n;){i=no(i),o=oo(o),i.hierNode.ancestor=a;var h=s.hierNode.prelim+c-n.hierNode.prelim-u+r(s,n);h>0&&(xb(mb(s,a,t),a,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,v+=o.hierNode.modifier}s&&!no(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=c-l),n&&!oo(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-v,t=a)}return t}function no(a){var e=a.children;return e.length&&a.isExpand?e[e.length-1]:a.hierNode.thread}function oo(a){var e=a.children;return e.length&&a.isExpand?e[0]:a.hierNode.thread}function mb(a,e,t){return a.hierNode.ancestor.parentNode===e.parentNode?a.hierNode.ancestor:t}function xb(a,e,t){var r=t/(e.hierNode.i-a.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,a.hierNode.change+=r}function Sb(a,e){return a.parentNode===e.parentNode?1:2}var bb=function(){function a(){this.parentPoint=[],this.childPoints=[]}return a}(),_b=function(a){E(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new bb},e.prototype.buildPath=function(t,r){var i=r.childPoints,n=i.length,o=r.parentPoint,s=i[0],l=i[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,v=u==="TB"||u==="BT"?0:1,c=1-v,h=F(r.forkPosition,1),f=[];f[v]=o[v],f[c]=o[c]+(l[c]-o[c])*h,t.moveTo(o[0],o[1]),t.lineTo(f[0],f[1]),t.moveTo(s[0],s[1]),f[v]=s[v],t.lineTo(f[0],f[1]),f[v]=l[v],t.lineTo(f[0],f[1]),t.lineTo(l[0],l[1]);for(var p=1;p<n-1;p++){var d=i[p];t.moveTo(d[0],d[1]),f[v]=d[v],t.lineTo(f[0],f[1])}},e}(It),wb=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Y,t}return e.prototype.init=function(t,r){this._controller=new ii(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,r,i){var n=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,i),this._updateController(t,r,i);var u=this._data;n.diff(u).add(function(v){Uv(n,v)&&Yv(n,v,null,s,t)}).update(function(v,c){var h=u.getItemGraphicEl(c);if(!Uv(n,v)){h&&Kv(u,c,h,s,t);return}Yv(n,v,h,s,t)}).remove(function(v){var c=u.getItemGraphicEl(v);c&&Kv(u,v,c,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&n.eachItemGraphicEl(function(v,c){v.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:c})})}),this._data=n},e.prototype._updateViewCoordSys=function(t,r){var i=t.getData(),n=[];i.each(function(c){var h=i.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&n.push([+h.x,+h.y])});var o=[],s=[];Tn(n,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var v=t.coordinateSystem=new ni;v.zoomLimit=t.get("scaleLimit"),v.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),v.setCenter(t.get("center"),r),v.setZoom(t.get("zoom")),this.group.attr({x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,r,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,v,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(v,c)&&!Pn(u,i,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){gl(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){yl(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(t),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var r=t.getData(),i=this._getNodeGlobalScale(t);r.eachItemGraphicEl(function(n,o){n.setSymbolScale(i)})},e.prototype._getNodeGlobalScale=function(t){var r=t.coordinateSystem;if(r.type!=="view")return 1;var i=this._nodeScaleRatio,n=r.scaleX||1,o=r.getZoom(),s=(o-1)*i+1;return s/n},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(xt);function Uv(a,e){var t=a.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function Yv(a,e,t,r,i){var n=!t,o=a.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",v=a.tree.root,c=o.parentNode===v?o:o.parentNode||o,h=a.getItemGraphicEl(c.dataIndex),f=c.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:f,d=o.getLayout();n?(t=new Ja(a,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=p.x,t.y=p.y):t.updateData(a,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,r.add(t),a.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,ct(t,{x:d.x,y:d.y},i);var g=t.getSymbolPath();if(i.get("layout")==="radial"){var y=v.children[0],x=y.getLayout(),m=y.children.length,S=void 0,b=void 0;if(d.x===x.x&&o.isExpand===!0&&y.children.length){var _={x:(y.children[0].getLayout().x+y.children[m-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[m-1].getLayout().y)/2};S=Math.atan2(_.y-x.y,_.x-x.x),S<0&&(S=Math.PI*2+S),b=_.x<x.x,b&&(S=S-Math.PI)}else S=Math.atan2(d.y-x.y,d.x-x.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=d.x<x.x,b&&(S=S-Math.PI)):(b=d.x>x.x,b||(S=S-Math.PI));var w=b?"left":"right",A=s.getModel("label"),T=A.get("rotate"),C=T*(Math.PI/180),I=g.getTextContent();I&&(g.setTextConfig({position:A.get("position")||w,rotation:T==null?-S:C,origin:"center"}),I.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),M=L==="relative"?ss(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;M&&(et(t).focus=M),Ab(i,o,v,t,p,f,d,r),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&a.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Dm||zi(t.__edge,P)}})}function Ab(a,e,t,r,i,n,o,s){var l=e.getModel(),u=a.get("edgeShape"),v=a.get("layout"),c=a.getOrient(),h=a.get(["lineStyle","curveness"]),f=a.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=r.__edge=new pp({shape:ws(v,c,h,i,i)})),ct(d,{shape:ws(v,c,h,n,o)},a));else if(u==="polyline"&&v==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],x=0;x<g.length;x++){var m=g[x].getLayout();y.push([m.x,m.y])}d||(d=r.__edge=new _b({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:f}})),ct(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},a)}d&&!(u==="polyline"&&!e.isExpand)&&(d.useStyle(Q({strokeNoScale:!0,fill:null},p)),$t(d,l,"lineStyle"),Yr(d),s.add(d))}function Xv(a,e,t,r,i){var n=e.tree.root,o=Id(n,a),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(a.dataIndex);if(!!u){var v=e.getItemGraphicEl(s.dataIndex),c=v.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),f=r.get("edgeShape"),p=r.get("layout"),d=r.get("orient"),g=r.get(["lineStyle","curveness"]);h&&(f==="curve"?Wr(h,{shape:ws(p,d,g,l,l),style:{opacity:0}},r,{cb:function(){t.remove(h)},removeOpt:i}):f==="polyline"&&r.get("layout")==="orthogonal"&&Wr(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){t.remove(h)},removeOpt:i}))}}function Id(a,e){for(var t=e.parentNode===a?e:e.parentNode||e,r;r=t.getLayout(),r==null;)t=t.parentNode===a?t:t.parentNode||t;return{source:t,sourceLayout:r}}function Kv(a,e,t,r,i){var n=a.tree.getNodeByDataIndex(e),o=a.tree.root,s=Id(o,n).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Wr(t,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(t),a.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,a.hostModel,{fadeLabel:!0,animation:l}),n.children.forEach(function(u){Xv(u,a,r,i,l)}),Xv(n,a,r,i,l)}function ws(a,e,t,r,i){var n,o,s,l,u,v,c,h;if(a==="radial"){u=r.rawX,c=r.rawY,v=i.rawX,h=i.rawY;var f=Sa(u,c),p=Sa(u,c+(h-c)*t),d=Sa(v,h+(c-h)*t),g=Sa(v,h);return{x1:f.x||0,y1:f.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=r.x,c=r.y,v=i.x,h=i.y,(e==="LR"||e==="RL")&&(n=u+(v-u)*t,o=c,s=v+(u-v)*t,l=h),(e==="TB"||e==="BT")&&(n=u,o=c+(h-c)*t,s=v,l=h+(c-h)*t);return{x1:u,y1:c,x2:v,y2:h,cpx1:n,cpy1:o,cpx2:s,cpy2:l}}const Tb=wb;var Cb=function(){function a(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return a.prototype.isRemoved=function(){return this.dataIndex<0},a.prototype.eachNode=function(e,t,r){it(e)&&(r=t,t=e,e=null),e=e||{},K(e)&&(e={order:e});var i=e.order||"preorder",n=this[e.attr||"children"],o;i==="preorder"&&(o=t.call(r,this));for(var s=0;!o&&s<n.length;s++)n[s].eachNode(e,t,r);i==="postorder"&&t.call(r,this)},a.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var r=0;r<this.children.length;r++){var i=this.children[r];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},a.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,i=r.length;t<i;t++){var n=r[t].getNodeById(e);if(n)return n}},a.prototype.contains=function(e){if(e===this)return!0;for(var t=0,r=this.children,i=r.length;t<i;t++){var n=r[t].contains(e);if(n)return n}},a.prototype.getAncestors=function(e){for(var t=[],r=e?this:this.parentNode;r;)t.push(r),r=r.parentNode;return t.reverse(),t},a.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},a.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},a.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},a.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},a.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},a.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},a.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},a}(),Db=function(){function a(e){this.type="tree",this._nodes=[],this.hostModel=e}return a.prototype.eachNode=function(e,t,r){this.root.eachNode(e,t,r)},a.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},a.prototype.getNodeById=function(e){return this.root.getNodeById(e)},a.prototype.update=function(){for(var e=this.data,t=this._nodes,r=0,i=t.length;r<i;r++)t[r].dataIndex=-1;for(var r=0,i=e.count();r<i;r++)t[e.getRawIndex(r)].dataIndex=r},a.prototype.clearLayouts=function(){this.data.clearItemLayouts()},a.createTree=function(e,t,r){var i=new a(t),n=[],o=1;s(e);function s(v,c){var h=v.value;o=Math.max(o,B(h)?h.length:1),n.push(v);var f=new Cb(Ce(v.name,""),i);c?Ib(f,c):i.root=f,i._nodes.push(f);var p=v.children;if(p)for(var d=0;d<p.length;d++)s(p[d],f)}i.root.updateDepthAndHeight(0);var l=mn(n,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new te(l,t);return u.initData(n),r&&r(u),dp({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},a}();function Ib(a,e){var t=e.children;a.parentNode!==e&&(t.push(a),a.parentNode=e)}const Sl=Db;function Oa(a,e,t){if(a&&yt(e,a.type)>=0){var r=t.getData().tree.root,i=a.targetNode;if(K(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var n=a.targetNodeId;if(n!=null&&(i=r.getNodeById(n)))return{node:i}}}function Ld(a){for(var e=[];a;)a=a.parentNode,a&&e.push(a);return e.reverse()}function bl(a,e){var t=Ld(a);return yt(t,e)>=0}function kn(a,e){for(var t=[];a;){var r=a.dataIndex;t.push({name:a.name,dataIndex:r,value:e.getRawValue(r)}),a=a.parentNode}return t.reverse(),t}var Lb=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},i=t.leaves||{},n=new Rt(i,this,this.ecModel),o=Sl.createTree(r,this,s);function s(c){c.wrapMethod("getItemModel",function(h,f){var p=o.getNodeByDataIndex(f);return p&&p.children.length&&p.isExpand||(h.parentModel=n),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=t.expandAndCollapse,v=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.depth<=v}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,i){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Ut("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=kn(i,this),r.collapsed=!i.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Tt);const Mb=Lb;function Pb(a,e,t){for(var r=[a],i=[],n;n=r.pop();)if(i.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;n=i.pop();)e(n,t)}function la(a,e){for(var t=[a],r;r=t.pop();)if(e(r),r.isExpand){var i=r.children;if(i.length)for(var n=i.length-1;n>=0;n--)t.push(i[n])}}function Rb(a,e){a.eachSeriesByType("tree",function(t){kb(t,e)})}function kb(a,e){var t=db(a,e);a.layoutInfo=t;var r=a.get("layout"),i=0,n=0,o=null;r==="radial"?(i=2*Math.PI,n=Math.min(t.height,t.width)/2,o=Zv(function(m,S){return(m.parentNode===S.parentNode?1:2)/m.depth})):(i=t.width,n=t.height,o=Zv());var s=a.getData().tree.root,l=s.children[0];if(l){hb(s),Pb(l,fb,o),s.hierNode.modifier=-l.hierNode.prelim,la(l,pb);var u=l,v=l,c=l;la(l,function(m){var S=m.getLayout().x;S<u.getLayout().x&&(u=m),S>v.getLayout().x&&(v=m),m.depth>c.depth&&(c=m)});var h=u===v?1:o(u,v)/2,f=h-u.getLayout().x,p=0,d=0,g=0,y=0;if(r==="radial")p=i/(v.getLayout().x+h+f),d=n/(c.depth-1||1),la(l,function(m){g=(m.getLayout().x+f)*p,y=(m.depth-1)*d;var S=Sa(g,y);m.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var x=a.getOrient();x==="RL"||x==="LR"?(d=n/(v.getLayout().x+h+f),p=i/(c.depth-1||1),la(l,function(m){y=(m.getLayout().x+f)*d,g=x==="LR"?(m.depth-1)*p:i-(m.depth-1)*p,m.setLayout({x:g,y},!0)})):(x==="TB"||x==="BT")&&(p=i/(v.getLayout().x+h+f),d=n/(c.depth-1||1),la(l,function(m){g=(m.getLayout().x+f)*p,y=x==="TB"?(m.depth-1)*d:n-(m.depth-1)*d,m.setLayout({x:g,y},!0)}))}}}function Eb(a){a.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var n=i.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(i.dataIndex,"style");$(s,o)})})}function Vb(a){a.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var i=e.dataIndex,n=r.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),a.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var n=i.coordinateSystem,o=xl(n,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Nb(a){a.registerChartView(Tb),a.registerSeriesModel(Mb),a.registerLayout(Rb),a.registerVisual(Eb),Vb(a)}var qv=["treemapZoomToNode","treemapRender","treemapMove"];function Ob(a){for(var e=0;e<qv.length;e++)a.registerAction({type:qv[e],update:"updateView"},_e);a.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"treemap",query:t},i);function i(n,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Oa(t,s,n);if(l){var u=n.getViewRoot();u&&(t.direction=bl(u,l.node)?"rollUp":"drillDown"),n.resetViewRoot(l.node)}}})}function Md(a){var e=a.getData(),t=e.tree,r={};t.eachNode(function(i){for(var n=i;n&&n.depth>1;)n=n.parentNode;var o=ls(a.ecModel,n.name||n.dataIndex+"",r);i.setVisual("decal",o)})}var zb=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};Pd(i);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new Rt({itemStyle:o},this,r);n=t.levels=Gb(n,r);var l=G(n||[],function(c){return new Rt(c,s,r)},this),u=Sl.createTree(i,this,v);function v(c){c.wrapMethod("getItemModel",function(h,f){var p=u.getNodeByDataIndex(f),d=p?l[p.depth]:null;return h.parentModel=d||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return Ut("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=kn(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},$(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=nt(),this._idIndexMapCount=0);var i=r.get(t);return i==null&&r.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Md(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Tt);function Pd(a){var e=0;D(a.children,function(r){Pd(r);var i=r.value;B(i)&&(i=i[0]),e+=i});var t=a.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(a.value)?a.value[0]=t:a.value=t}function Gb(a,e){var t=jt(e.get("color")),r=jt(e.get(["aria","decal","decals"]));if(!!t){a=a||[];var i,n;D(a,function(s){var l=new Rt(s),u=l.get("color"),v=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||v&&v!=="none")&&(n=!0)});var o=a[0]||(a[0]={});return i||(o.color=t.slice()),!n&&r&&(o.decal=r.slice()),a}}const Bb=zb;var Fb=8,jv=8,so=5,Hb=function(){function a(e){this.group=new Y,e.add(this.group)}return a.prototype.render=function(e,t,r,i){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!r)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),v=l.getModel(["itemStyle","textStyle"]),c={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,c,u),this._renderContent(e,c,s,l,u,v,i),Cn(o,c.pos,c.box)}},a.prototype._prepare=function(e,t,r){for(var i=e;i;i=i.parentNode){var n=Ce(i.getModel().get("name"),""),o=r.getTextRect(n),s=Math.max(o.width+Fb*2,t.emptyItemWidth);t.totalWidth+=s+jv,t.renderList.push({node:i,text:n,width:s})}},a.prototype._renderContent=function(e,t,r,i,n,o,s){for(var l=0,u=t.emptyItemWidth,v=e.get(["breadcrumb","height"]),c=Im(t.pos,t.box),h=t.totalWidth,f=t.renderList,p=i.getModel("itemStyle").getItemStyle(),d=f.length-1;d>=0;d--){var g=f[d],y=g.node,x=g.width,m=g.text;h>c.width&&(h-=x-u,x=u,m=null);var S=new ve({shape:{points:Wb(l,0,x,v,d===f.length-1,d===0)},style:Q(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new vt({style:gt(n,{text:m})}),textConfig:{position:"inside"},z2:Ka*1e4,onclick:J(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=gt(o,{text:m}),S.ensureState("emphasis").style=p,St(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),$b(S,e,y),l+=x+jv}},a.prototype.remove=function(){this.group.removeAll()},a}();function Wb(a,e,t,r,i,n){var o=[[i?a:a-so,e],[a+t,e],[a+t,e+r],[i?a:a-so,e+r]];return!n&&o.splice(2,0,[a+t+so,e+r/2]),!i&&o.push([a,e+r/2]),o}function $b(a,e,t){et(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&kn(t,e)}}const Zb=Hb;var Ub=function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(e,t,r,i,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:i,easing:n}),!0)},a.prototype.finished=function(e){return this._finishedCallback=e,this},a.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,n=this._storage.length;i<n;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},a}();function Yb(){return new Ub}var As=Y,Jv=ft,Qv=3,tc="label",ec="upperLabel",Xb=Ka*10,Kb=Ka*2,qb=Ka*3,ir=gp([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),rc=function(a){var e=ir(a);return e.stroke=e.fill=e.lineWidth=null,e},Ji=Ct(),jb=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=ua(),t}return e.prototype.render=function(t,r,i,n){var o=r.findComponents({mainType:"series",subType:"treemap",query:n});if(!(yt(o,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Oa(n,s,t),u=n&&n.type,v=t.layoutInfo,c=!this._oldTree,h=this._storage,f=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(v),d=t.get("animation"),g=this._doRender(p,t,f);d&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,t,f):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(t,i,l)}},e.prototype._giveContainerGroup=function(t){var r=this._containerGroup;return r||(r=this._containerGroup=new As,this._initEvents(r),this.group.add(r)),r.x=t.x,r.y=t.y,r},e.prototype._doRender=function(t,r,i){var n=r.getData().tree,o=this._oldTree,s=ua(),l=ua(),u=this._storage,v=[];function c(g,y,x,m){return Jb(r,l,u,i,s,v,g,y,x,m)}f(n.root?[n.root]:[],o&&o.root?[o.root]:[],t,n===o||!o,0);var h=p(u);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:d};function f(g,y,x,m,S){m?(y=g,D(g,function(w,A){!w.isRemoved()&&_(A,A)})):new Ke(y,g,b,b).add(_).update(_).remove(J(_,null)).execute();function b(w){return w.getId()}function _(w,A){var T=w!=null?g[w]:null,C=A!=null?y[A]:null,I=c(T,C,x,S);I&&f(T&&T.viewChildren||[],C&&C.viewChildren||[],I,m,S+1)}}function p(g){var y=ua();return g&&D(g,function(x,m){var S=y[m];D(x,function(b){b&&(S.push(b),Ji(b).willDelete=!0)})}),y}function d(){D(h,function(g){D(g,function(y){y.parent&&y.parent.remove(y)})}),D(v,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,r,i,n){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(it(o)?0:o)||0,u=(it(s)?null:s)||"cubicOut",v=Yb();D(r.willDeleteEls,function(c,h){D(c,function(f,p){if(!f.invisible){var d=f.parent,g,y=Ji(d);if(n&&n.direction==="drillDown")g=d===n.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var x=0,m=0;y.willDelete||(x=y.nodeWidth/2,m=y.nodeHeight/2),g=h==="nodeGroup"?{x,y:m,style:{opacity:0}}:{shape:{x,y:m,width:0,height:0},style:{opacity:0}}}g&&v.add(f,g,l,0,u)}})}),D(this._storage,function(c,h){D(c,function(f,p){var d=r.lastsForAnimation[h][p],g={};!d||(f instanceof Y?d.oldX!=null&&(g.x=f.x,g.y=f.y,f.x=d.oldX,f.y=d.oldY):(d.oldShape&&(g.shape=$({},f.shape),f.setShape(d.oldShape)),d.fadein?(f.setStyle("opacity",0),g.style={opacity:1}):f.style.opacity!==1&&(g.style={opacity:1})),v.add(f,g,l,0,u))})},this),this._state="animating",v.finished(Z(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(t){var r=this._controller;r||(r=this._controller=new ii(t.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",Z(this._onPan,this)),r.on("zoom",Z(this._onZoom,this)));var i=new kt(0,0,t.getWidth(),t.getHeight());r.setPointerChecker(function(n,o,s){return i.contain(o,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>Qv||Math.abs(t.dy)>Qv)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var r=t.originX,i=t.originY;if(this._state!=="animating"){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var s=new kt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,i-=l.y;var u=br();Xe(u,u,[-r,-i]),cp(u,u,[t.scale,t.scale]),Xe(u,u,[r,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(i){if(r._state==="ready"){var n=r.seriesModel.get("nodeClick",!0);if(!!n){var o=r.findTarget(i.offsetX,i.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(n==="zoomToNode")r._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),v=l.get("target",!0)||"blank";u&&Wi(u,v)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,i){var n=this;i||(i=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Zb(this.group))).render(t,r,i.node,function(o){n._state!=="animating"&&(bl(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ua(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(xt);function ua(){return{nodeGroup:[],background:[],content:[]}}function Jb(a,e,t,r,i,n,o,s,l,u){if(!o)return;var v=o.getLayout(),c=a.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!v||!v.isInView)return;var f=v.width,p=v.height,d=v.borderWidth,g=v.invisible,y=o.getRawIndex(),x=s&&s.getRawIndex(),m=o.viewChildren,S=v.upperHeight,b=m&&m.length,_=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),A=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),C=_.get("borderRadius")||0,I=X("nodeGroup",As);if(!I)return;if(l.add(I),I.x=v.x||0,I.y=v.y||0,I.markRedraw(),Ji(I).nodeWidth=f,Ji(I).nodeHeight=p,v.isAboveViewRoot)return I;var L=X("background",Jv,u,Kb);L&&O(I,L,b&&v.upperLabelHeight);var M=h.getModel("emphasis"),P=M.get("focus"),R=M.get("blurScope"),k=M.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)yu(I)&&ya(I,!1),L&&(ya(L,!k),c.setItemGraphicEl(o.dataIndex,L),mu(L,N,R));else{var V=X("content",Jv,u,qb);V&&z(I,V),L.disableMorphing=!0,L&&yu(L)&&ya(L,!1),ya(I,!k),c.setItemGraphicEl(o.dataIndex,I),mu(I,N,R)}return I;function O(rt,U,ut){var st=et(U);if(st.dataIndex=o.dataIndex,st.seriesIndex=a.seriesIndex,U.setShape({x:0,y:0,width:f,height:p,r:C}),g)H(U);else{U.invisible=!1;var pt=o.getVisual("style"),Nt=pt.stroke,Bt=rc(_);Bt.fill=Nt;var mt=ir(w);mt.fill=w.get("borderColor");var Mt=ir(A);Mt.fill=A.get("borderColor");var Dt=ir(T);if(Dt.fill=T.get("borderColor"),ut){var Zt=f-2*d;q(U,Nt,pt.opacity,{x:d,y:0,width:Zt,height:S})}else U.removeTextContent();U.setStyle(Bt),U.ensureState("emphasis").style=mt,U.ensureState("blur").style=Mt,U.ensureState("select").style=Dt,Yr(U)}rt.add(U)}function z(rt,U){var ut=et(U);ut.dataIndex=o.dataIndex,ut.seriesIndex=a.seriesIndex;var st=Math.max(f-2*d,0),pt=Math.max(p-2*d,0);if(U.culling=!0,U.setShape({x:d,y:d,width:st,height:pt,r:C}),g)H(U);else{U.invisible=!1;var Nt=o.getVisual("style"),Bt=Nt.fill,mt=rc(_);mt.fill=Bt,mt.decal=Nt.decal;var Mt=ir(w),Dt=ir(A),Zt=ir(T);q(U,Bt,Nt.opacity,null),U.setStyle(mt),U.ensureState("emphasis").style=Mt,U.ensureState("blur").style=Dt,U.ensureState("select").style=Zt,Yr(U)}rt.add(U)}function H(rt){!rt.invisible&&n.push(rt)}function q(rt,U,ut,st){var pt=h.getModel(st?ec:tc),Nt=Ce(h.get("name"),null),Bt=pt.getShallow("show");Wt(rt,zt(h,st?ec:tc),{defaultText:Bt?Nt:null,inheritColor:U,defaultOpacity:ut,labelFetcher:a,labelDataIndex:o.dataIndex});var mt=rt.getTextContent();if(!!mt){var Mt=mt.style,Dt=Lm(Mt.padding||0);st&&(rt.setTextConfig({layoutRect:st}),mt.disableLabelLayout=!0),mt.beforeUpdate=function(){var Ae=Math.max((st?st.width:rt.shape.width)-Dt[1]-Dt[3],0),Qt=Math.max((st?st.height:rt.shape.height)-Dt[0]-Dt[2],0);(Mt.width!==Ae||Mt.height!==Qt)&&mt.setStyle({width:Ae,height:Qt})},Mt.truncateMinChar=2,Mt.lineOverflow="truncate",j(Mt,st,v);var Zt=mt.getState("emphasis");j(Zt?Zt.style:null,st,v)}}function j(rt,U,ut){var st=rt?rt.text:null;if(!U&&ut.isLeafRoot&&st!=null){var pt=a.get("drillDownIcon",!0);rt.text=pt?pt+" "+st:st}}function X(rt,U,ut,st){var pt=x!=null&&t[rt][x],Nt=i[rt];return pt?(t[rt][x]=null,at(Nt,pt)):g||(pt=new U,pt instanceof gr&&(pt.z2=Qb(ut,st)),ot(Nt,pt)),e[rt][y]=pt}function at(rt,U){var ut=rt[y]={};U instanceof As?(ut.oldX=U.x,ut.oldY=U.y):ut.oldShape=$({},U.shape)}function ot(rt,U){var ut=rt[y]={},st=o.parentNode,pt=U instanceof Y;if(st&&(!r||r.direction==="drillDown")){var Nt=0,Bt=0,mt=i.background[st.getRawIndex()];!r&&mt&&mt.oldShape&&(Nt=mt.oldShape.width,Bt=mt.oldShape.height),pt?(ut.oldX=0,ut.oldY=Bt):ut.oldShape={x:Nt,y:Bt,width:0,height:0}}ut.fadein=!pt}}function Qb(a,e){return a*Xb+e}const t_=jb;var za=D,e_=_t,Qi=-1,_l=function(){function a(e){var t=e.mappingMethod,r=e.type,i=this.option=lt(e);this.type=r,this.mappingMethod=t,this._normalizeData=i_[t];var n=a.visualHandlers[r];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(lo(i),r_(i)):t==="category"?i.categories?a_(i):lo(i,!0):(Oi(t!=="linear"||i.dataExtent),lo(i))}return a.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},a.prototype.getNormalizer=function(){return Z(this._normalizeData,this)},a.listVisualTypes=function(){return Pt(a.visualHandlers)},a.isValidType=function(e){return a.visualHandlers.hasOwnProperty(e)},a.eachVisual=function(e,t,r){_t(e)?D(e,t,r):t.call(r,e)},a.mapVisual=function(e,t,r){var i,n=B(e)?[]:_t(e)?{}:(i=!0,null);return a.eachVisual(e,function(o,s){var l=t.call(r,o,s);i?n=l:n[s]=l}),n},a.retrieveVisuals=function(e){var t={},r;return e&&za(a.visualHandlers,function(i,n){e.hasOwnProperty(n)&&(t[n]=e[n],r=!0)}),r?t:null},a.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if(e_(e)){var t=[];za(e,function(r,i){t.push(i)}),e=t}else return[];return e.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},a.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},a.findPieceIndex=function(e,t,r){for(var i,n=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||K(l)&&l===e+"")return o;r&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],v=u.interval,c=u.close;if(v){if(v[0]===-1/0){if(yi(c[1],e,v[1]))return o}else if(v[1]===1/0){if(yi(c[0],v[0],e))return o}else if(yi(c[0],v[0],e)&&yi(c[1],e,v[1]))return o;r&&h(v[0],o),r&&h(v[1],o)}}if(r)return e===1/0?t.length-1:e===-1/0?0:i;function h(f,p){var d=Math.abs(f-e);d<n&&(n=d,i=p)}},a.visualHandlers={color:{applyVisual:va("color"),getColorMapper:function(){var e=this.option;return Z(e.mappingMethod==="category"?function(t,r){return!r&&(t=this._normalizeData(t)),ba.call(this,t)}:function(t,r,i){var n=!!i;return!r&&(t=this._normalizeData(t)),i=Bn(t,e.parsedVisual,i),n?i:Pi(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Pi(Bn(e,this.option.parsedVisual),"rgba")},category:ba,piecewise:function(e,t){var r=Cs.call(this,t);return r==null&&(r=Pi(Bn(e,this.option.parsedVisual),"rgba")),r},fixed:nr}},colorHue:gi(function(e,t){return Aa(e,t)}),colorSaturation:gi(function(e,t){return Aa(e,null,t)}),colorLightness:gi(function(e,t){return Aa(e,null,null,t)}),colorAlpha:gi(function(e,t){return $i(e,t)}),decal:{applyVisual:va("decal"),_normalizedToVisual:{linear:null,category:ba,piecewise:null,fixed:null}},opacity:{applyVisual:va("opacity"),_normalizedToVisual:Ts([0,1])},liftZ:{applyVisual:va("liftZ"),_normalizedToVisual:{linear:nr,category:nr,piecewise:nr,fixed:nr}},symbol:{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("symbol",i)},_normalizedToVisual:{linear:ac,category:ba,piecewise:function(e,t){var r=Cs.call(this,t);return r==null&&(r=ac.call(this,e)),r},fixed:nr}},symbolSize:{applyVisual:va("symbolSize"),_normalizedToVisual:Ts([0,1])}},a}();function r_(a){var e=a.pieceList;a.hasSpecialVisual=!1,D(e,function(t,r){t.originIndex=r,t.visual!=null&&(a.hasSpecialVisual=!0)})}function a_(a){var e=a.categories,t=a.categoryMap={},r=a.visual;if(za(e,function(o,s){t[o]=s}),!B(r)){var i=[];_t(r)?za(r,function(o,s){var l=t[s];i[l!=null?l:Qi]=o}):i[Qi]=r,r=Rd(a,i)}for(var n=e.length-1;n>=0;n--)r[n]==null&&(delete t[e[n]],e.pop())}function lo(a,e){var t=a.visual,r=[];_t(t)?za(t,function(n){r.push(n)}):t!=null&&r.push(t);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(a.type)&&(r[1]=r[0]),Rd(a,r)}function gi(a){return{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("color",a(t("color"),i))},_normalizedToVisual:Ts([0,1])}}function ac(a){var e=this.option.visual;return e[Math.round(ht(a,[0,1],[0,e.length-1],!0))]||{}}function va(a){return function(e,t,r){r(a,this.mapValueToVisual(e))}}function ba(a){var e=this.option.visual;return e[this.option.loop&&a!==Qi?a%e.length:a]}function nr(){return this.option.visual[0]}function Ts(a){return{linear:function(e){return ht(e,a,this.option.visual,!0)},category:ba,piecewise:function(e,t){var r=Cs.call(this,t);return r==null&&(r=ht(e,a,this.option.visual,!0)),r},fixed:nr}}function Cs(a){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=_l.findPieceIndex(a,t),i=t[r];if(i&&i.visual)return i.visual[this.type]}}function Rd(a,e){return a.visual=e,a.type==="color"&&(a.parsedVisual=G(e,function(t){var r=yp(t);return r||[0,0,0,1]})),e}var i_={linear:function(a){return ht(a,this.option.dataExtent,[0,1],!0)},piecewise:function(a){var e=this.option.pieceList,t=_l.findPieceIndex(a,e,!0);if(t!=null)return ht(t,[0,e.length-1],[0,1],!0)},category:function(a){var e=this.option.categories?this.option.categoryMap[a]:a;return e==null?Qi:e},fixed:_e};function yi(a,e,t){return a?e<=t:e<t}const Ht=_l;var n_="itemStyle",kd=Ct();const o_={seriesType:"treemap",reset:function(a){var e=a.getData().tree,t=e.root;t.isRemoved()||Ed(t,{},a.getViewRoot().getAncestors(),a)}};function Ed(a,e,t,r){var i=a.getModel(),n=a.getLayout(),o=a.hostTree.data;if(!(!n||n.invisible||!n.isInView)){var s=i.getModel(n_),l=s_(s,e,r),u=o.ensureUniqueItemVisual(a.dataIndex,"style"),v=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=ic(l),v=l_(c,h)),u.stroke=v;var f=a.viewChildren;if(!f||!f.length)h=ic(l),u.fill=h;else{var p=u_(a,i,n,s,l,f);D(f,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=v_(i,l,d,g,p,r);Ed(d,y,t,r)}})}}}function s_(a,e,t){var r=$({},e),i=t.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(n){i[n]=e[n];var o=a.get(n);i[n]=null,o!=null&&(r[n]=o)}),r}function ic(a){var e=uo(a,"color");if(e){var t=uo(a,"colorAlpha"),r=uo(a,"colorSaturation");return r&&(e=Aa(e,null,null,r)),t&&(e=$i(e,t)),e}}function l_(a,e){return e!=null?Aa(e,null,null,a):null}function uo(a,e){var t=a[e];if(t!=null&&t!=="none")return t}function u_(a,e,t,r,i,n){if(!(!n||!n.length)){var o=vo(e,"color")||i.color!=null&&i.color!=="none"&&(vo(e,"colorAlpha")||vo(e,"colorSaturation"));if(!!o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var v=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(v==="index"||v==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new Ht(c);return kd(h).drColorMappingBy=v,h}}}function vo(a,e){var t=a.get(e);return B(t)&&t.length?{name:e,range:t}:null}function v_(a,e,t,r,i,n){var o=$({},e);if(i){var s=i.type,l=s==="color"&&kd(i).drColorMappingBy,u=l==="index"?r:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(a.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Ga=Math.max,tn=Math.min,nc=Ft,wl=D,Vd=["itemStyle","borderWidth"],c_=["itemStyle","gapWidth"],h_=["upperLabel","show"],f_=["upperLabel","height"];const p_={seriesType:"treemap",reset:function(a,e,t,r){var i=t.getWidth(),n=t.getHeight(),o=a.option,s=Gt(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=F(nc(s.width,l[0]),i),v=F(nc(s.height,l[1]),n),c=r&&r.type,h=["treemapZoomToNode","treemapRootToNode"],f=Oa(r,h,a),p=c==="treemapRender"||c==="treemapMove"?r.rootRect:null,d=a.getViewRoot(),g=Ld(d);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?S_(a,f,d,u,v):p?[p.width,p.height]:[u,v],x=o.sort;x&&x!=="asc"&&x!=="desc"&&(x="desc");var m={squareRatio:o.squareRatio,sort:x,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),Nd(d,m,!1,0),S=d.getLayout(),wl(g,function(_,w){var A=(g[w+1]||d).getValue();_.setLayout($({dataExtent:[A,A],borderWidth:0,upperHeight:0},S))})}var b=a.getData().tree.root;b.setLayout(b_(s,p,f),!0),a.setLayoutInfo(s),Od(b,new kt(-s.x,-s.y,i,n),g,d,0)}};function Nd(a,e,t,r){var i,n;if(!a.isRemoved()){var o=a.getLayout();i=o.width,n=o.height;var s=a.getModel(),l=s.get(Vd),u=s.get(c_)/2,v=zd(s),c=Math.max(l,v),h=l-u,f=c-u;a.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:v},!0),i=Ga(i-2*h,0),n=Ga(n-h-f,0);var p=i*n,d=d_(a,s,p,e,t,r);if(!!d.length){var g={x:h,y:f,width:i,height:n},y=tn(i,n),x=1/0,m=[];m.area=0;for(var S=0,b=d.length;S<b;){var _=d[S];m.push(_),m.area+=_.getLayout().area;var w=x_(m,y,e.squareRatio);w<=x?(S++,x=w):(m.area-=m.pop().getLayout().area,oc(m,y,g,u,!1),y=tn(g.width,g.height),m.length=m.area=0,x=1/0)}if(m.length&&oc(m,y,g,u,!0),!t){var A=s.get("childrenVisibleMin");A!=null&&p<A&&(t=!0)}for(var S=0,b=d.length;S<b;S++)Nd(d[S],e,t,r+1)}}}function d_(a,e,t,r,i,n){var o=a.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=n;if(i&&!l)return a.viewChildren=[];o=Jt(o,function(f){return!f.isRemoved()}),y_(o,s);var u=m_(e,o,s);if(u.sum===0)return a.viewChildren=[];if(u.sum=g_(e,t,u.sum,s,o),u.sum===0)return a.viewChildren=[];for(var v=0,c=o.length;v<c;v++){var h=o[v].getValue()/u.sum*t;o[v].setLayout({area:h})}return l&&(o.length&&a.setLayout({isLeafRoot:!0},!0),o.length=0),a.viewChildren=o,a.setLayout({dataExtent:u.dataExtent},!0),o}function g_(a,e,t,r,i){if(!r)return t;for(var n=a.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[r==="asc"?o-l-1:l].getValue();u/t*e<n&&(s=l,t-=u)}return r==="asc"?i.splice(0,o-s):i.splice(s,o-s),t}function y_(a,e){return e&&a.sort(function(t,r){var i=e==="asc"?t.getValue()-r.getValue():r.getValue()-t.getValue();return i===0?e==="asc"?t.dataIndex-r.dataIndex:r.dataIndex-t.dataIndex:i}),a}function m_(a,e,t){for(var r=0,i=0,n=e.length;i<n;i++)r+=e[i].getValue();var o=a.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],wl(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function x_(a,e,t){for(var r=0,i=1/0,n=0,o=void 0,s=a.length;n<s;n++)o=a[n].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var l=a.area*a.area,u=e*e*t;return l?Ga(u*r/l,l/(u*i)):1/0}function oc(a,e,t,r,i){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],v=e?a.area/e:0;(i||v>t[l[o]])&&(v=t[l[o]]);for(var c=0,h=a.length;c<h;c++){var f=a[c],p={},d=v?f.getLayout().area/v:0,g=p[l[o]]=Ga(v-2*r,0),y=t[s[n]]+t[l[n]]-u,x=c===h-1||y<d?y:d,m=p[l[n]]=Ga(x-2*r,0);p[s[o]]=t[s[o]]+tn(r,g/2),p[s[n]]=u+tn(r,m/2),u+=x,f.setLayout(p,!0)}t[s[o]]+=v,t[l[o]]-=v}function S_(a,e,t,r,i){var n=(e||{}).node,o=[r,i];if(!n||n===t)return o;for(var s,l=r*i,u=l*a.option.zoomToNodeRatio;s=n.parentNode;){for(var v=0,c=s.children,h=0,f=c.length;h<f;h++)v+=c[h].getValue();var p=n.getValue();if(p===0)return o;u*=v/p;var d=s.getModel(),g=d.get(Vd),y=Math.max(g,zd(d));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>xu&&(u=xu),n=s}u<l&&(u=l);var x=Math.pow(u/l,.5);return[r*x,i*x]}function b_(a,e,t){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!t)return r;var i=t.node,n=i.getLayout();if(!n)return r;for(var o=[n.width/2,n.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:a.width/2-o[0],y:a.height/2-o[1]}}function Od(a,e,t,r,i){var n=a.getLayout(),o=t[i],s=o&&o===a;if(!(o&&!s||i===t.length&&a!==r)){a.setLayout({isInView:!0,invisible:!s&&!e.intersect(n),isAboveViewRoot:s},!0);var l=new kt(e.x-n.x,e.y-n.y,e.width,e.height);wl(a.viewChildren||[],function(u){Od(u,l,t,r,i+1)})}}function zd(a){return a.get(h_)?a.get(f_):0}function __(a){a.registerSeriesModel(Bb),a.registerChartView(t_),a.registerVisual(o_),a.registerLayout(p_),Ob(a)}function w_(a){var e=a.findComponents({mainType:"legend"});!e||!e.length||a.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),i=t.getGraph(),n=i.data,o=r.mapArray(r.getName);n.filterSelf(function(s){var l=n.getItemModel(s),u=l.getShallow("category");if(u!=null){Yt(u)&&(u=o[u]);for(var v=0;v<e.length;v++)if(!e[v].isSelected(u))return!1}return!0})})}function A_(a){var e={};a.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),i=t.getData(),n={};r.each(function(o){var s=r.getName(o);n["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),r.setItemVisual(o,"style",u);for(var v=["symbol","symbolSize","symbolKeepAspect"],c=0;c<v.length;c++){var h=l.getShallow(v[c],!0);h!=null&&r.setItemVisual(o,v[c],h)}}),r.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){K(l)&&(l=n["ec-"+l]);var u=r.getItemVisual(l,"style"),v=i.ensureUniqueItemVisual(o,"style");$(v,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)i.setItemVisual(o,c[h],r.getItemVisual(l,c[h]))}})})}function mi(a){return a instanceof Array||(a=[a,a]),a}function T_(a){a.eachSeriesByType("graph",function(e){var t=e.getGraph(),r=e.getEdgeData(),i=mi(e.get("edgeSymbol")),n=mi(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(o){var s=r.getItemModel(o),l=t.getEdgeByIndex(o),u=mi(s.getShallow("symbol",!0)),v=mi(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=r.ensureUniqueItemVisual(o,"style");switch($(h,c),h.stroke){case"source":{var f=l.node1.getVisual("style");h.stroke=f&&f.fill;break}case"target":{var f=l.node2.getVisual("style");h.stroke=f&&f.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),v[0]&&l.setVisual("fromSymbolSize",v[0]),v[1]&&l.setVisual("toSymbolSize",v[1])})})}var Ds="-->",En=function(a){return a.get("autoCurveness")||null},Gd=function(a,e){var t=En(a),r=20,i=[];if(Yt(t))r=t;else if(B(t)){a.__curvenessList=t;return}e>r&&(r=e);var n=r%2?r+2:r+3;i=[];for(var o=0;o<n;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));a.__curvenessList=i},Ba=function(a,e,t){var r=[a.id,a.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[t.uid,r,i].join(Ds)},Bd=function(a){var e=a.split(Ds);return[e[0],e[2],e[1]].join(Ds)},C_=function(a,e){var t=Ba(a.node1,a.node2,e);return e.__edgeMap[t]},D_=function(a,e){var t=Is(Ba(a.node1,a.node2,e),e),r=Is(Ba(a.node2,a.node1,e),e);return t+r},Is=function(a,e){var t=e.__edgeMap;return t[a]?t[a].length:0};function I_(a){!En(a)||(a.__curvenessList=[],a.__edgeMap={},Gd(a))}function L_(a,e,t,r){if(!!En(t)){var i=Ba(a,e,t),n=t.__edgeMap,o=n[Bd(i)];n[i]&&!o?n[i].isForward=!0:o&&n[i]&&(o.isForward=!0,n[i].isForward=!1),n[i]=n[i]||[],n[i].push(r)}}function Al(a,e,t,r){var i=En(e),n=B(i);if(!i)return null;var o=C_(a,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=D_(a,e);Gd(e,u),a.lineStyle=a.lineStyle||{};var v=Ba(a.node1,a.node2,e),c=e.__curvenessList,h=n||u%2?0:1;if(o.isForward)return c[h+s];var f=Bd(v),p=Is(f,e),d=c[s+p+h];return r?n?i&&i[0]===0?(p+h)%2?d:-d:((p%2?0:1)+h)%2?d:-d:(p+h)%2?d:-d:c[s+p+h]}function Fd(a){var e=a.coordinateSystem;if(!(e&&e.type!=="view")){var t=a.getGraph();t.eachNode(function(r){var i=r.getModel();r.setLayout([+i.get("x"),+i.get("y")])}),Tl(t,a)}}function Tl(a,e){a.eachEdge(function(t,r){var i=ea(t.getModel().get(["lineStyle","curveness"]),-Al(t,e,r,!0),0),n=Ze(t.node1.getLayout()),o=Ze(t.node2.getLayout()),s=[n,o];+i&&s.push([(n[0]+o[0])/2-(n[1]-o[1])*i,(n[1]+o[1])/2-(o[0]-n[0])*i]),t.setLayout(s)})}function M_(a,e){a.eachSeriesByType("graph",function(t){var r=t.get("layout"),i=t.coordinateSystem;if(i&&i.type!=="view"){var n=t.getData(),o=[];D(i.dimensions,function(h){o=o.concat(n.mapDimensionsAll(h))});for(var s=0;s<n.count();s++){for(var l=[],u=!1,v=0;v<o.length;v++){var c=n.get(o[v],s);isNaN(c)||(u=!0),l.push(c)}u?n.setItemLayout(s,i.dataToPoint(l)):n.setItemLayout(s,[NaN,NaN])}Tl(n.graph,t)}else(!r||r==="none")&&Fd(t)})}function _a(a){var e=a.coordinateSystem;if(e.type!=="view")return 1;var t=a.option.nodeScaleRatio,r=e.scaleX,i=e.getZoom(),n=(i-1)*t+1;return n/r}function wa(a){var e=a.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var sc=Math.PI,co=[];function Cl(a,e,t,r){var i=a.coordinateSystem;if(!(i&&i.type!=="view")){var n=i.getBoundingRect(),o=a.getData(),s=o.graph,l=n.width/2+n.x,u=n.height/2+n.y,v=Math.min(n.width,n.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(t){var h=i.pointToData(r),f=h[0],p=h[1],d=[f-l,p-u];qa(d,d),Mm(d,d,v),t.setLayout([l+d[0],u+d[1]],!0);var g=a.get(["circular","rotateLabel"]);Hd(t,g,l,u)}P_[e](a,s,o,v,l,u,c),s.eachEdge(function(y,x){var m=ea(y.getModel().get(["lineStyle","curveness"]),Al(y,a,x),0),S=Ze(y.node1.getLayout()),b=Ze(y.node2.getLayout()),_,w=(S[0]+b[0])/2,A=(S[1]+b[1])/2;+m&&(m*=3,_=[l*m+w*(1-m),u*m+A*(1-m)]),y.setLayout([S,b,_])})}}}var P_={value:function(a,e,t,r,i,n,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(v){var c=v.getValue("value"),h=u*(l?c:1)/2;s+=h,v.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+n]),s+=h})},symbolSize:function(a,e,t,r,i,n,o){var s=0;co.length=o;var l=_a(a);e.eachNode(function(c){var h=wa(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var f=Math.asin(h/2/r);isNaN(f)&&(f=sc/2),co[c.dataIndex]=f,s+=f*2});var u=(2*sc-s)/o/2,v=0;e.eachNode(function(c){var h=u+co[c.dataIndex];v+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([r*Math.cos(v)+i,r*Math.sin(v)+n]),v+=h})}};function Hd(a,e,t,r){var i=a.getGraphicEl();if(!!i){var n=a.getModel(),o=n.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=a.getLayout(),u=Math.atan2(l[1]-r,l[0]-t);u<0&&(u=Math.PI*2+u);var v=l[0]<t;v&&(u=u-Math.PI);var c=v?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");$(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function R_(a){a.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Cl(e,"symbolSize")})}var Cr=us;function k_(a,e,t){for(var r=a,i=e,n=t.rect,o=n.width,s=n.height,l=[n.x+o/2,n.y+s/2],u=t.gravity==null?.1:t.gravity,v=0;v<r.length;v++){var c=r[v];c.p||(c.p=Pm(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=Ze(c.p),c.edges=null}var h=t.friction==null?.6:t.friction,f=h,p,d;return{warmUp:function(){f=h*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(r,i);for(var y=[],x=r.length,m=0;m<i.length;m++){var S=i[m];if(!S.ignoreForceLayout){var b=S.n1,_=S.n2;Nr(y,_.p,b.p);var w=Su(y)-S.d,A=_.w/(b.w+_.w);isNaN(A)&&(A=0),qa(y,y),!b.fixed&&Cr(b.p,b.p,y,A*w*f),!_.fixed&&Cr(_.p,_.p,y,-(1-A)*w*f)}}for(var m=0;m<x;m++){var T=r[m];T.fixed||(Nr(y,l,T.p),Cr(T.p,T.p,y,u*f))}for(var m=0;m<x;m++)for(var b=r[m],C=m+1;C<x;C++){var _=r[C];Nr(y,_.p,b.p);var w=Su(y);w===0&&(Rm(y,Math.random()-.5,Math.random()-.5),w=1);var I=(b.rep+_.rep)/w/w;!b.fixed&&Cr(b.pp,b.pp,y,I),!_.fixed&&Cr(_.pp,_.pp,y,-I)}for(var L=[],m=0;m<x;m++){var T=r[m];T.fixed||(Nr(L,T.p,T.pp),Cr(T.p,T.p,L,f),Xt(T.pp,T.p))}f=f*.992;var M=f<.01;d&&d(r,i,M),g&&g(M)}}}function E_(a){a.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},i=e.getGraph(),n=i.data,o=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?n.each(function(m){var S=n.getId(m);n.setItemLayout(m,r[S]||[NaN,NaN])}):!l||l==="none"?Fd(e):l==="circular"&&Cl(e,"value");var u=n.getDataExtent("value"),v=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),f=B(c)?c:[c,c],p=B(h)?h:[h,h];p=[p[1],p[0]];var d=n.mapArray("value",function(m,S){var b=n.getItemLayout(S),_=ht(m,u,f);return isNaN(_)&&(_=(f[0]+f[1])/2),{w:_,rep:_,fixed:n.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(m,S){var b=i.getEdgeByIndex(S),_=ht(m,v,p);isNaN(_)&&(_=(p[0]+p[1])/2);var w=b.getModel(),A=ea(b.getModel().get(["lineStyle","curveness"]),-Al(b,e,S,!0),0);return{n1:d[b.node1.dataIndex],n2:d[b.node2.dataIndex],d:_,curveness:A,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),x=k_(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});x.beforeStep(function(m,S){for(var b=0,_=m.length;b<_;b++)m[b].fixed&&Xt(m[b].p,i.getNodeByIndex(b).getLayout())}),x.afterStep(function(m,S,b){for(var _=0,w=m.length;_<w;_++)m[_].fixed||i.getNodeByIndex(_).setLayout(m[_].p),r[n.getId(_)]=m[_].p;for(var _=0,w=S.length;_<w;_++){var A=S[_],T=i.getEdgeByIndex(_),C=A.n1.p,I=A.n2.p,L=T.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Xt(L[0],C),Xt(L[1],I),+A.curveness&&(L[2]=[(C[0]+I[0])/2-(C[1]-I[1])*A.curveness,(C[1]+I[1])/2-(I[0]-C[0])*A.curveness]),T.setLayout(L)}}),e.forceLayout=x,e.preservedPoints=r,x.step()}else e.forceLayout=null})}function V_(a,e,t){var r=$(a.getBoxLayoutParams(),{aspect:t});return Gt(r,{width:e.getWidth(),height:e.getHeight()})}function N_(a,e){var t=[];return a.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var n=r.getData(),o=n.mapArray(function(g){var y=n.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Tn(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),v=V_(r,e,u);isNaN(u)&&(s=[v.x,v.y],l=[v.x+v.width,v.y+v.height]);var c=l[0]-s[0],h=l[1]-s[1],f=v.width,p=v.height,d=r.coordinateSystem=new ni;d.zoomLimit=r.get("scaleLimit"),d.setBoundingRect(s[0],s[1],c,h),d.setViewRect(v.x,v.y,f,p),d.setCenter(r.get("center"),e),d.setZoom(r.get("zoom")),t.push(d)}}),t}var lc=Kt.prototype,ho=pp.prototype,Wd=function(){function a(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return a}();(function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e})(Wd);function fo(a){return isNaN(+a.cpx1)||isNaN(+a.cpy1)}var O_=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Wd},e.prototype.buildPath=function(t,r){fo(r)?lc.buildPath.call(this,t,r):ho.buildPath.call(this,t,r)},e.prototype.pointAt=function(t){return fo(this.shape)?lc.pointAt.call(this,t):ho.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var r=this.shape,i=fo(r)?[r.x2-r.x1,r.y2-r.y1]:ho.tangentAt.call(this,t);return qa(i,i)},e}(It);const z_=O_;var po=["fromSymbol","toSymbol"];function uc(a){return"_"+a+"Type"}function vc(a,e,t){var r=e.getItemVisual(t,a);if(!r||r==="none")return r;var i=e.getItemVisual(t,a+"Size"),n=e.getItemVisual(t,a+"Rotate"),o=e.getItemVisual(t,a+"Offset"),s=e.getItemVisual(t,a+"KeepAspect"),l=Qr(i),u=xr(o||0,l);return r+l+u+(n||"")+(s||"")}function cc(a,e,t){var r=e.getItemVisual(t,a);if(!(!r||r==="none")){var i=e.getItemVisual(t,a+"Size"),n=e.getItemVisual(t,a+"Rotate"),o=e.getItemVisual(t,a+"Offset"),s=e.getItemVisual(t,a+"KeepAspect"),l=Qr(i),u=xr(o||0,l),v=Et(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return v.__specifiedRotation=n==null||isNaN(n)?void 0:+n*Math.PI/180||0,v.name=a,v}}function G_(a){var e=new z_({name:"line",subPixelOptimize:!0});return Ls(e.shape,a),e}function Ls(a,e){a.x1=e[0][0],a.y1=e[0][1],a.x2=e[1][0],a.y2=e[1][1],a.percent=1;var t=e[2];t?(a.cpx1=t[0],a.cpy1=t[1]):(a.cpx1=NaN,a.cpy1=NaN)}var B_=function(a){E(e,a);function e(t,r,i){var n=a.call(this)||this;return n._createLine(t,r,i),n}return e.prototype._createLine=function(t,r,i){var n=t.hostModel,o=t.getItemLayout(r),s=G_(o);s.shape.percent=0,bt(s,{shape:{percent:1}},n,r),this.add(s),D(po,function(l){var u=cc(l,t,r);this.add(u),this[uc(l)]=vc(l,t,r)},this),this._updateCommonStl(t,r,i)},e.prototype.updateData=function(t,r,i){var n=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(r),l={shape:{}};Ls(l.shape,s),ct(o,l,n,r),D(po,function(u){var v=vc(u,t,r),c=uc(u);if(this[c]!==v){this.remove(this.childOfName(u));var h=cc(u,t,r);this.add(h)}this[c]=v},this),this._updateCommonStl(t,r,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,r,i){var n=t.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,v=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,h=i&&i.focus,f=i&&i.blurScope;if(!i||t.hasItemOption){var p=t.getItemModel(r),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),h=d.get("focus"),f=d.get("blurScope"),v=zt(p)}var g=t.getItemVisual(r,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,D(po,function(_){var w=this.childOfName(_);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var A=0;A<La.length;A++){var T=La[A],C=o.getState(T);if(C){var I=C.style||{},L=w.ensureState(T),M=L.style||(L.style={});I.stroke!=null&&(M[w.__isEmptyBrush?"stroke":"fill"]=I.stroke),I.opacity!=null&&(M.opacity=I.opacity)}}w.markRedraw()}},this);var x=n.getRawValue(r);Wt(this,v,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(_,w){return n.getFormattedLabel(_,w,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(x==null?t.getName(r):isFinite(x)?be(x):x)+""});var m=this.getTextContent();if(m){var S=v.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=S.get("position")||"middle";var b=S.get("distance");B(b)||(b=[b,b]),m.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),St(this,h,f,c)},e.prototype.highlight=function(){Fr(this)},e.prototype.downplay=function(){Hr(this)},e.prototype.updateLayout=function(t,r){this.setLinePoints(t.getItemLayout(r))},e.prototype.setLinePoints=function(t){var r=this.childOfName("line");Ls(r.shape,t),r.dirty()},e.prototype.beforeUpdate=function(){var t=this,r=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.getTextContent();if(!r&&!i&&(!n||n.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,v=l.pointAt(0),c=l.pointAt(u),h=Nr([],c,v);qa(h,h);function f(C,I){var L=C.__specifiedRotation;if(L==null){var M=l.tangentAt(I);C.attr("rotation",(I===1?-1:1)*Math.PI/2-Math.atan2(M[1],M[0]))}else C.attr("rotation",L)}if(r&&(r.setPosition(v),f(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),i&&(i.setPosition(c),f(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var p=void 0,d=void 0,g=n.__labelDistance,y=g[0]*o,x=g[1]*o,m=u/2,S=l.tangentAt(m),b=[S[1],-S[0]],_=l.pointAt(m);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var A=-Math.atan2(S[1],S[0]);c[0]<v[0]&&(A=Math.PI+A),n.rotation=A}var T=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-x,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=x,d="top";break;default:T=0,d="middle"}switch(n.__position){case"end":n.x=h[0]*y+c[0],n.y=h[1]*x+c[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":n.x=-h[0]*y+v[0],n.y=-h[1]*x+v[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=y*w+v[0],n.y=v[1]+T,p=S[0]<0?"right":"left",n.originX=-y*w,n.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=_[0],n.y=_[1]+T,p="center",n.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-y*w+c[0],n.y=c[1]+T,p=S[0]>=0?"right":"left",n.originX=y*w,n.originY=-T;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||p})}},e}(Y);const Dl=B_;var F_=function(){function a(e){this.group=new Y,this._LineCtor=e||Dl}return a.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,i=r.group,n=r._lineData;r._lineData=e,n||i.removeAll();var o=hc(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},a.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=hc(e),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!H_(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var n=t.getItemLayout(i);if(go(n)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(r),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},a.prototype.remove=function(){this.group.removeAll()},a.prototype.eachRendered=function(e){ta(this._progressiveEls||this.group,e)},a.prototype._doAdd=function(e,t,r){var i=e.getItemLayout(t);if(!!go(i)){var n=new this._LineCtor(e,t,r);e.setItemGraphicEl(t,n),this.group.add(n)}},a.prototype._doUpdate=function(e,t,r,i,n){var o=e.getItemGraphicEl(r);if(!go(t.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(t,i,n):o=new this._LineCtor(t,i,n),t.setItemGraphicEl(i,o),this.group.add(o)},a}();function H_(a){return a.animators&&a.animators.length>0}function hc(a){var e=a.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:zt(e)}}function fc(a){return isNaN(a[0])||isNaN(a[1])}function go(a){return a&&!fc(a[0])&&!fc(a[1])}const Il=F_;var yo=[],mo=[],xo=[],Dr=mp,So=Em,pc=Math.abs;function dc(a,e,t){for(var r=a[0],i=a[1],n=a[2],o=1/0,s,l=t*t,u=.1,v=.1;v<=.9;v+=.1){yo[0]=Dr(r[0],i[0],n[0],v),yo[1]=Dr(r[1],i[1],n[1],v);var c=pc(So(yo,e)-l);c<o&&(o=c,s=v)}for(var h=0;h<32;h++){var f=s+u;mo[0]=Dr(r[0],i[0],n[0],s),mo[1]=Dr(r[1],i[1],n[1],s),xo[0]=Dr(r[0],i[0],n[0],f),xo[1]=Dr(r[1],i[1],n[1],f);var c=So(mo,e)-l;if(pc(c)<.01)break;var p=So(xo,e)-l;u/=2,c<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function bo(a,e){var t=[],r=km,i=[[],[],[]],n=[[],[]],o=[];e/=2,a.eachEdge(function(s,l){var u=s.getLayout(),v=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[Ze(u[0]),Ze(u[1])],u[2]&&u.__original.push(Ze(u[2])));var h=u.__original;if(u[2]!=null){if(Xt(i[0],h[0]),Xt(i[1],h[2]),Xt(i[2],h[1]),v&&v!=="none"){var f=wa(s.node1),p=dc(i,h[0],f*e);r(i[0][0],i[1][0],i[2][0],p,t),i[0][0]=t[3],i[1][0]=t[4],r(i[0][1],i[1][1],i[2][1],p,t),i[0][1]=t[3],i[1][1]=t[4]}if(c&&c!=="none"){var f=wa(s.node2),p=dc(i,h[1],f*e);r(i[0][0],i[1][0],i[2][0],p,t),i[1][0]=t[1],i[2][0]=t[2],r(i[0][1],i[1][1],i[2][1],p,t),i[1][1]=t[1],i[2][1]=t[2]}Xt(u[0],i[0]),Xt(u[1],i[2]),Xt(u[2],i[1])}else{if(Xt(n[0],h[0]),Xt(n[1],h[1]),Nr(o,n[1],n[0]),qa(o,o),v&&v!=="none"){var f=wa(s.node1);us(n[0],n[0],o,f*e)}if(c&&c!=="none"){var f=wa(s.node2);us(n[1],n[1],o,-f*e)}Xt(u[0],n[0]),Xt(u[1],n[1])}})}function gc(a){return a.type==="view"}var W_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var i=new Qa,n=new Il,o=this.group;this._controller=new ii(r.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,r,i){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(gc(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(v):ct(u,v,t)}bo(t.getGraph(),_a(t));var c=t.getData();s.updateData(c);var h=t.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,r,i),clearTimeout(this._layoutTimeout);var f=t.forceLayout,p=t.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,p);var d=t.get("layout");c.graph.eachNode(function(m){var S=m.dataIndex,b=m.getGraphicEl(),_=m.getModel();if(!!b){b.off("drag").off("dragend");var w=_.get("draggable");w&&b.on("drag",function(T){switch(d){case"force":f.warmUp(),!n._layouting&&n._startForceLayoutIteration(f,p),f.setFixed(S),c.setItemLayout(S,[b.x,b.y]);break;case"circular":c.setItemLayout(S,[b.x,b.y]),m.setLayout({fixed:!0},!0),Cl(t,"symbolSize",m,[T.offsetX,T.offsetY]),n.updateLayout(t);break;case"none":default:c.setItemLayout(S,[b.x,b.y]),Tl(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){f&&f.setUnfixed(S)}),b.setDraggable(w,!!_.get("cursor"));var A=_.get(["emphasis","focus"]);A==="adjacency"&&(et(b).focus=m.getAdjacentDataIndices())}}),c.graph.eachEdge(function(m){var S=m.getGraphicEl(),b=m.getModel().get(["emphasis","focus"]);!S||b==="adjacency"&&(et(S).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),x=c.getLayout("cy");c.graph.eachNode(function(m){Hd(m,g,y,x)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var i=this;(function n(){t.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(r?i._layoutTimeout=setTimeout(n,16):n())})})()},e.prototype._updateController=function(t,r,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,v,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(v,c)&&!Pn(u,i,t)}),!gc(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){gl(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){yl(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),bo(t.getGraph(),_a(t)),n._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),i=_a(t);r.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(i)})},e.prototype.updateLayout=function(t){bo(t.getGraph(),_a(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(xt);const $_=W_;function $d(a,e,t,r,i){for(var n=new Vm(r),o=0;o<a.length;o++)n.addNode(Ft(a[o].id,a[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var v=e[o],c=v.source,h=v.target;n.addEdge(c,h,u)&&(l.push(v),s.push(Ft(Ce(v.id,null),c+" > "+h)),u++)}var f=t.get("coordinateSystem"),p;if(f==="cartesian2d"||f==="polar")p=Ee(a,t);else{var d=xp.get(f),g=d?d.dimensions||[]:[];yt(g,"value")<0&&g.concat(["value"]);var y=mn(a,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new te(y,t),p.initData(a)}var x=new te(["value"],t);return x.initData(l,s),i&&i(p,x),dp({mainData:p,struct:n,structAttr:"graph",datas:{node:p,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var Z_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new ai(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){a.prototype.mergeDefaultAndTheme.apply(this,arguments),Za(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var i=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&i){I_(this);var s=$d(n,i,this,!0,l);return D(s.edges,function(u){L_(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,v){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var c=Rt.prototype.getModel;function h(p,d){var g=c.call(this,p,d);return g.resolveParentPath=f,g}v.wrapMethod("getItemModel",function(p){return p.resolveParentPath=f,p.getModel=h,p});function f(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,i){if(i==="edge"){var n=this.getData(),o=this.getDataParams(t,i),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),v=[];return l!=null&&v.push(l),u!=null&&v.push(u),Ut("nameValue",{name:v.join(" > "),value:o.value,noValue:o.value==null})}var c=Nm({series:this,dataIndex:t,multipleSeries:r});return c},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(i){return i.value!=null?i:$({value:0},i)}),r=new te(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Tt);const U_=Z_;var Y_={type:"graphRoam",event:"graphRoam",update:"none"};function X_(a){a.registerChartView($_),a.registerSeriesModel(U_),a.registerProcessor(w_),a.registerVisual(A_),a.registerVisual(T_),a.registerLayout(M_),a.registerLayout(a.PRIORITY.VISUAL.POST_CHART_LAYOUT,R_),a.registerLayout(E_),a.registerCoordinateSystem("graphView",{dimensions:ni.dimensions,create:N_}),a.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},_e),a.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},_e),a.registerAction(Y_,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(i){var n=i.coordinateSystem,o=xl(n,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var K_=function(){function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return a}(),q_=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new K_},e.prototype.buildPath=function(t,r){var i=Math.cos,n=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=o/3?1:2),v=r.y-n(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,v),t.lineTo(r.x+i(l)*s,r.y+n(l)*s),t.lineTo(r.x+i(r.angle)*o,r.y+n(r.angle)*o),t.lineTo(r.x-i(l)*s,r.y-n(l)*s),t.lineTo(u,v)},e}(It);const j_=q_;function J_(a,e){var t=a.get("center"),r=e.getWidth(),i=e.getHeight(),n=Math.min(r,i),o=F(t[0],e.getWidth()),s=F(t[1],e.getHeight()),l=F(a.get("radius"),n/2);return{cx:o,cy:s,r:l}}function xi(a,e){var t=a==null?"":a+"";return e&&(K(e)?t=e.replace("{value}",t):it(e)&&(t=e(a))),t}var Q_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=J_(t,i);this._renderMain(t,r,i,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,i,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,v=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap"),f=h?Ki:ue,p=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),y=[u,v];rp(y,!l),u=y[0],v=y[1];for(var x=v-u,m=u,S=[],b=0;p&&b<n.length;b++){var _=Math.min(Math.max(n[b][0],0),1);v=u+x*_;var w=new f({shape:{startAngle:m,endAngle:v,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:n[b][1]}),w.setStyle(d.getLineStyle(["color","width"])),S.push(w),m=v}S.reverse(),D(S,function(T){return s.add(T)});var A=function(T){if(T<=0)return n[0][1];var C;for(C=0;C<n.length;C++)if(n[C][0]>=T&&(C===0?0:n[C-1][0])<T)return n[C][1];return n[C-1][1]};this._renderTicks(t,r,i,A,o,u,v,l,g),this._renderTitleAndDetail(t,r,i,A,o),this._renderAnchor(t,o),this._renderPointer(t,r,i,A,o,u,v,l,g)},e.prototype._renderTicks=function(t,r,i,n,o,s,l,u,v){for(var c=this.group,h=o.cx,f=o.cy,p=o.r,d=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),x=t.getModel("axisTick"),m=t.getModel("axisLabel"),S=t.get("splitNumber"),b=x.get("splitNumber"),_=F(y.get("length"),p),w=F(x.get("length"),p),A=s,T=(l-s)/S,C=T/b,I=y.getModel("lineStyle").getLineStyle(),L=x.getModel("lineStyle").getLineStyle(),M=y.get("distance"),P,R,k=0;k<=S;k++){if(P=Math.cos(A),R=Math.sin(A),y.get("show")){var N=M?M+v:v,V=new Kt({shape:{x1:P*(p-N)+h,y1:R*(p-N)+f,x2:P*(p-_-N)+h,y2:R*(p-_-N)+f},style:I,silent:!0});I.stroke==="auto"&&V.setStyle({stroke:n(k/S)}),c.add(V)}if(m.get("show")){var N=m.get("distance")+M,O=xi(be(k/S*(g-d)+d),m.get("formatter")),z=n(k/S),H=P*(p-_-N)+h,q=R*(p-_-N)+f,j=m.get("rotate"),X=0;j==="radial"?(X=-A+2*Math.PI,X>Math.PI/2&&(X+=Math.PI)):j==="tangential"?X=-A-Math.PI/2:Yt(j)&&(X=j*Math.PI/180),X===0?c.add(new vt({style:gt(m,{text:O,x:H,y:q,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:z}),silent:!0})):c.add(new vt({style:gt(m,{text:O,x:H,y:q,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:H,originY:q,rotation:X}))}if(x.get("show")&&k!==S){var N=x.get("distance");N=N?N+v:v;for(var at=0;at<=b;at++){P=Math.cos(A),R=Math.sin(A);var ot=new Kt({shape:{x1:P*(p-N)+h,y1:R*(p-N)+f,x2:P*(p-w-N)+h,y2:R*(p-w-N)+f},silent:!0,style:L});L.stroke==="auto"&&ot.setStyle({stroke:n((k+at/b)/S)}),c.add(ot),A+=C}A-=C}else A+=T}},e.prototype._renderPointer=function(t,r,i,n,o,s,l,u,v){var c=this.group,h=this._data,f=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),x=t.getData(),m=x.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),_=[S,b],w=[s,l];function A(C,I){var L=x.getItemModel(C),M=L.getModel("pointer"),P=F(M.get("width"),o.r),R=F(M.get("length"),o.r),k=t.get(["pointer","icon"]),N=M.get("offsetCenter"),V=F(N[0],o.r),O=F(N[1],o.r),z=M.get("keepAspect"),H;return k?H=Et(k,V-P/2,O-R,P,R,null,z):H=new j_({shape:{angle:-Math.PI/2,width:P,r:R,x:V,y:O}}),H.rotation=-(I+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function T(C,I){var L=g.get("roundCap"),M=L?Ki:ue,P=g.get("overlap"),R=P?g.get("width"):v/x.count(),k=P?o.r-R:o.r-(C+1)*R,N=P?o.r:o.r-C*R,V=new M({shape:{startAngle:s,endAngle:I,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:N}});return P&&(V.z2=b-x.get(m,C)%b),V}(y||d)&&(x.diff(h).add(function(C){var I=x.get(m,C);if(d){var L=A(C,s);bt(L,{rotation:-((isNaN(+I)?w[0]:ht(I,_,w,!0))+Math.PI/2)},t),c.add(L),x.setItemGraphicEl(C,L)}if(y){var M=T(C,s),P=g.get("clip");bt(M,{shape:{endAngle:ht(I,_,w,P)}},t),c.add(M),bu(t.seriesIndex,x.dataType,C,M),p[C]=M}}).update(function(C,I){var L=x.get(m,C);if(d){var M=h.getItemGraphicEl(I),P=M?M.rotation:s,R=A(C,P);R.rotation=P,ct(R,{rotation:-((isNaN(+L)?w[0]:ht(L,_,w,!0))+Math.PI/2)},t),c.add(R),x.setItemGraphicEl(C,R)}if(y){var k=f[I],N=k?k.shape.endAngle:s,V=T(C,N),O=g.get("clip");ct(V,{shape:{endAngle:ht(L,_,w,O)}},t),c.add(V),bu(t.seriesIndex,x.dataType,C,V),p[C]=V}}).execute(),x.each(function(C){var I=x.getItemModel(C),L=I.getModel("emphasis"),M=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(d){var k=x.getItemGraphicEl(C),N=x.getItemVisual(C,"style"),V=N.fill;if(k instanceof pe){var O=k.style;k.useStyle($({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},N))}else k.useStyle(N),k.type!=="pointer"&&k.setColor(V);k.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",n(ht(x.get(m,C),_,[0,1],!0))),k.z2EmphasisLift=0,$t(k,I),St(k,M,P,R)}if(y){var z=p[C];z.useStyle(x.getItemVisual(C,"style")),z.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,$t(z,I),St(z,M,P,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var i=t.getModel("anchor"),n=i.get("show");if(n){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),v=Et(s,r.cx-o/2+F(l[0],r.r),r.cy-o/2+F(l[1],r.r),o,o,null,u);v.z2=i.get("showAbove")?1:0,v.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(v)}},e.prototype._renderTitleAndDetail=function(t,r,i,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),v=+t.get("min"),c=+t.get("max"),h=new Y,f=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){f[y]=new vt({silent:!0}),p[y]=new vt({silent:!0})}).update(function(y,x){f[y]=s._titleEls[x],p[y]=s._detailEls[x]}).execute(),l.each(function(y){var x=l.getItemModel(y),m=l.get(u,y),S=new Y,b=n(ht(m,[v,c],[0,1],!0)),_=x.getModel("title");if(_.get("show")){var w=_.get("offsetCenter"),A=o.cx+F(w[0],o.r),T=o.cy+F(w[1],o.r),C=f[y];C.attr({z2:g?0:2,style:gt(_,{x:A,y:T,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(C)}var I=x.getModel("detail");if(I.get("show")){var L=I.get("offsetCenter"),M=o.cx+F(L[0],o.r),P=o.cy+F(L[1],o.r),R=F(I.get("width"),o.r),k=F(I.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,C=p[y],V=I.get("formatter");C.attr({z2:g?0:2,style:gt(I,{x:M,y:P,text:xi(m,V),width:isNaN(R)?null:R,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:N})}),Qf(C,{normal:I},m,function(z){return xi(z,V)}),d&&Om(C,y,l,t,{getFormattedLabel:function(z,H,q,j,X,at){return xi(at?at.interpolatedValue:m,V)}}),S.add(C)}h.add(S)}),this.group.add(h),this._titleEls=f,this._detailEls=p},e.type="gauge",e}(xt);const tw=Q_;var ew=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return ia(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Tt);const rw=ew;function aw(a){a.registerChartView(tw),a.registerSeriesModel(rw)}var iw=["itemStyle","opacity"],nw=function(a){E(e,a);function e(t,r){var i=a.call(this)||this,n=i,o=new de,s=new vt;return n.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,r,!0),i}return e.prototype.updateData=function(t,r,i){var n=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),v=s.get(iw);v=v==null?1:v,i||fe(n),n.useStyle(t.getItemVisual(r,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,bt(n,{style:{opacity:v}},o,r)):ct(n,{style:{opacity:v},shape:{points:l.points}},o,r),$t(n,s),this._updateLabel(t,r),St(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var i=this,n=this.getTextGuideLine(),o=i.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),v=u.label,c=t.getItemVisual(r,"style"),h=c.fill;Wt(o,zt(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:c.opacity,defaultText:t.getName(r)},{normal:{align:v.textAlign,verticalAlign:v.verticalAlign}}),i.setTextConfig({local:!0,inside:!!v.inside,insideStroke:h,outsideFill:h});var f=v.linePoints;n.setShape({points:f}),i.textGuideLineConfig={anchor:f?new he(f[0][0],f[0][1]):null},ct(o,{style:{x:v.x,y:v.y}},s,r),o.attr({rotation:v.rotation,originX:v.x,originY:v.y,z2:10}),ap(i,ip(l),{stroke:h})},e}(ve),ow=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new nw(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var v=o.getItemGraphicEl(u);v.updateData(n,l),s.add(v),n.setItemGraphicEl(l,v)}).remove(function(l){var u=o.getItemGraphicEl(l);Bi(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(xt);const sw=ow;var lw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ai(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return ia(this,{coordDimensions:["value"],encodeDefaulter:J(rl,this)})},e.prototype._defaultLabelLine=function(t){Za(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),i=a.prototype.getDataParams.call(this,t),n=r.mapDimension("value"),o=r.getSum(n);return i.percent=o?+(r.get(n,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Tt);const uw=lw;function vw(a,e){return Gt(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function cw(a,e){for(var t=a.mapDimension("value"),r=a.mapArray(t,function(l){return l}),i=[],n=e==="ascending",o=0,s=a.count();o<s;o++)i[o]=o;return it(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return n?r[l]-r[u]:r[u]-r[l]}),i}function hw(a){var e=a.hostModel,t=e.get("orient");a.each(function(r){var i=a.getItemModel(r),n=i.getModel("label"),o=n.get("position"),s=i.getModel("labelLine"),l=a.getItemLayout(r),u=l.points,v=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,f,p;if(v)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,f=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,f=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,f=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),p=[[h,f],[h,f]];else{var d=void 0,g=void 0,y=void 0,x=void 0,m=s.get("length");o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-m,h=y-5,c="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+m,h=y+5,c="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,x=g-m,f=x-5,c="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,x=g+m,f=x+5,c="center"):o==="rightTop"?(d=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(x=g-m,f=x-5,c="center"):(y=d+m,h=y+5,c="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],t==="horizontal"?(x=g+m,f=x+5,c="center"):(y=d+m,h=y+5,c="bottom")):o==="leftTop"?(d=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(x=g-m,f=x-5,c="center"):(y=d-m,h=y-5,c="right")):o==="leftBottom"?(d=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(x=g+m,f=x+5,c="center"):(y=d-m,h=y-5,c="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(x=g+m,f=x+5,c="center"):(y=d+m,h=y+5,c="left")),t==="horizontal"?(y=d,h=y):(x=g,f=x),p=[[d,g],[y,x]]}l.label={linePoints:p,x:h,y:f,verticalAlign:"middle",textAlign:c,inside:v}})}function fw(a,e){a.eachSeriesByType("funnel",function(t){var r=t.getData(),i=r.mapDimension("value"),n=t.get("sort"),o=vw(t,e),s=t.get("orient"),l=o.width,u=o.height,v=cw(r,n),c=o.x,h=o.y,f=s==="horizontal"?[F(t.get("minSize"),u),F(t.get("maxSize"),u)]:[F(t.get("minSize"),l),F(t.get("maxSize"),l)],p=r.getDataExtent(i),d=t.get("min"),g=t.get("max");d==null&&(d=Math.min(p[0],0)),g==null&&(g=p[1]);var y=t.get("funnelAlign"),x=t.get("gap"),m=s==="horizontal"?l:u,S=(m-x*(r.count()-1))/r.count(),b=function(P,R){if(s==="horizontal"){var k=r.get(i,P)||0,N=ht(k,[d,g],f,!0),V=void 0;switch(y){case"top":V=h;break;case"center":V=h+(u-N)/2;break;case"bottom":V=h+(u-N);break}return[[R,V],[R,V+N]]}var O=r.get(i,P)||0,z=ht(O,[d,g],f,!0),H;switch(y){case"left":H=c;break;case"center":H=c+(l-z)/2;break;case"right":H=c+l-z;break}return[[H,R],[H+z,R]]};n==="ascending"&&(S=-S,x=-x,s==="horizontal"?c+=l:h+=u,v=v.reverse());for(var _=0;_<v.length;_++){var w=v[_],A=v[_+1],T=r.getItemModel(w);if(s==="horizontal"){var C=T.get(["itemStyle","width"]);C==null?C=S:(C=F(C,l),n==="ascending"&&(C=-C));var I=b(w,c),L=b(A,c+C);c+=C+x,r.setItemLayout(w,{points:I.concat(L.slice().reverse())})}else{var M=T.get(["itemStyle","height"]);M==null?M=S:(M=F(M,u),n==="ascending"&&(M=-M));var I=b(w,h),L=b(A,h+M);h+=M+x,r.setItemLayout(w,{points:I.concat(L.slice().reverse())})}}hw(r)})}function pw(a){a.registerChartView(sw),a.registerSeriesModel(uw),a.registerLayout(fw),a.registerProcessor(ri("funnel"))}var dw=.3,gw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Y,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,r,i,n){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,v=u.dimensions,c=mc(t);s.diff(l).add(h).update(f).remove(p).execute();function h(g){var y=yc(s,o,g,v,u);_o(y,s,g,c)}function f(g,y){var x=l.getItemGraphicEl(y),m=Zd(s,g,v,u);s.setItemGraphicEl(g,x),ct(x,{shape:{points:m}},t,g),fe(x),_o(x,s,g,c)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=yw(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,r,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,r,i){for(var n=r.getData(),o=r.coordinateSystem,s=o.dimensions,l=mc(r),u=this._progressiveEls=[],v=t.start;v<t.end;v++){var c=yc(n,this._dataGroup,v,s,o);c.incremental=!0,_o(c,n,v,l),u.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(xt);function yw(a,e,t){var r=a.model,i=a.getRect(),n=new ft({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get("layout")==="horizontal"?"width":"height";return n.setShape(o,0),bt(n,{shape:{width:i.width,height:i.height}},e,t),n}function Zd(a,e,t,r){for(var i=[],n=0;n<t.length;n++){var o=t[n],s=a.get(a.mapDimension(o),e);mw(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function yc(a,e,t,r,i){var n=Zd(a,t,r,i),o=new de({shape:{points:n},z2:10});return e.add(o),a.setItemGraphicEl(t,o),o}function mc(a){var e=a.get("smooth",!0);return e===!0&&(e=dw),e=zm(e),Gm(e)&&(e=0),{smooth:e}}function _o(a,e,t,r){a.useStyle(e.getItemVisual(t,"style")),a.style.fill=null,a.setShape("smooth",r.smooth);var i=e.getItemModel(t),n=i.getModel("emphasis");$t(a,i,"lineStyle"),St(a,n.get("focus"),n.get("blurScope"),n.get("disabled"))}function mw(a,e){return e==="category"?a==null:a==null||isNaN(a)}const xw=gw;var Sw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,r){return Ee(null,this,{useEncodeDefaulter:Z(bw,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var r=this.coordinateSystem,i=this.getData(),n=[];return r.eachActiveState(i,function(o,s){t===o&&n.push(i.getRawIndex(s))}),n},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Tt);function bw(a){var e=a.ecModel.getComponent("parallel",a.get("parallelIndex"));if(!!e){var t={};return D(e.dimensions,function(r){var i=_w(r);t[r]=i}),t}}function _w(a){return+a.replace("dim","")}const ww=Sw;var Aw=["lineStyle","opacity"],Tw={seriesType:"parallel",reset:function(a,e){var t=a.coordinateSystem,r={normal:a.get(["lineStyle","opacity"]),active:a.get("activeOpacity"),inactive:a.get("inactiveOpacity")};return{progress:function(i,n){t.eachActiveState(n,function(o,s){var l=r[o];if(o==="normal"&&n.hasItemOption){var u=n.getItemModel(s).get(Aw,!0);u!=null&&(l=u)}var v=n.ensureUniqueItemVisual(s,"style");v.opacity=l},i.start,i.end)}}}};const Cw=Tw;function Dw(a){Iw(a),Lw(a)}function Iw(a){if(!a.parallel){var e=!1;D(a.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(a.parallel=[{}])}}function Lw(a){var e=jt(a.parallelAxis);D(e,function(t){if(!!_t(t)){var r=t.parallelIndex||0,i=jt(a.parallel)[r];i&&i.parallelAxisDefault&&dt(t,i.parallelAxisDefault,!1)}})}var Mw=5,Pw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this._model=t,this._api=i,this._handlers||(this._handlers={},D(Rw,function(n,o){i.getZr().on(o,this._handlers[o]=Z(n,this))},this)),aa(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,r){Ra(this,"_throttledDispatchExpand"),D(this._handlers,function(i,n){r.getZr().off(n,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction($({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Vt),Rw={mousedown:function(a){wo(this,"click")&&(this._mouseDownPoint=[a.offsetX,a.offsetY])},mouseup:function(a){var e=this._mouseDownPoint;if(wo(this,"click")&&e){var t=[a.offsetX,a.offsetY],r=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(r>Mw)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(a){if(!(this._mouseDownPoint||!wo(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function wo(a,e){var t=a._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const kw=Pw;var Ew=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&dt(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var i=t.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],i=Jt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);D(i,function(n){t.push("dim"+n.get("dim")),r.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}(Lt);const Vw=Ew;var Nw=function(a){E(e,a);function e(t,r,i,n,o){var s=a.call(this,t,r,i)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(ge);const Ow=Nw;function Ar(a,e,t,r,i,n){a=a||0;var o=t[1]-t[0];if(i!=null&&(i=Ir(i,[0,o])),n!=null&&(n=Math.max(n,i!=null?i:0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Ir(s,[0,o]),i=n=Ir(s,[i,n]),r=0}e[0]=Ir(e[0],t),e[1]=Ir(e[1],t);var l=Ao(e,r);e[r]+=a;var u=i||0,v=t.slice();l.sign<0?v[0]+=u:v[1]-=u,e[r]=Ir(e[r],v);var c;return c=Ao(e,r),i!=null&&(c.sign!==l.sign||c.span<i)&&(e[1-r]=e[r]+l.sign*i),c=Ao(e,r),n!=null&&c.span>n&&(e[1-r]=e[r]+c.sign*n),e}function Ao(a,e){var t=a[e]-a[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ir(a,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,a))}var To=D,Ud=Math.min,Yd=Math.max,xc=Math.floor,zw=Math.ceil,Sc=be,Gw=Math.PI,Bw=function(){function a(e,t,r){this.type="parallel",this._axesMap=nt(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var i=e.dimensions,n=e.parallelAxisIndex;To(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),v=this._axesMap.set(o,new Ow(o,bn(u),[0,0],u.get("type"),l)),c=v.type==="category";v.onBand=c&&u.get("boundaryGap"),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},a.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},a.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,i=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=r&&o<=r+t.axisLength&&s>=i&&s<=i+t.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(!!e.contains(r,t)){var i=r.getData();To(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),Ur(o.scale,o.model)},this)}},this)},a.prototype.resize=function(e,t){this._rect=Gt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],i=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,v=Si(e.get("axisExpandWidth"),l),c=Si(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>c&&c>1&&v>0&&s>0,f=e.get("axisExpandWindow"),p;if(f)p=Si(f[1]-f[0],l),f[1]=f[0]+p;else{p=Si(v*(c-1),l);var d=e.get("axisExpandCenter")||xc(u/2);f=[v*d-p/2],f[1]=f[0]+p}var g=(s-p)/(u-c);g<3&&(g=0);var y=[xc(Sc(f[0]/v,1))+1,zw(Sc(f[1]/v,1))-1],x=g/v*f[0];return{layout:n,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[i[1-o]],axisExpandable:h,axisExpandWidth:v,axisCollapseWidth:g,axisExpandWindow:f,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:x}},a.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),To(r,function(o,s){var l=(i.axisExpandable?Hw:Fw)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},v={horizontal:Gw/2,vertical:0},c=[u[n].x+e.x,u[n].y+e.y],h=v[n],f=br();ra(f,f,h),Xe(f,f,c),this._axesLayout[o]={position:c,rotation:h,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(e){return this._axesMap.get(e)},a.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},a.prototype.eachActiveState=function(e,t,r,i){r==null&&(r=0),i==null&&(i=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(e.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),v=r;v<i;v++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=e.getValues(s,v),f=0,p=o.length;f<p;f++){var d=l[f].getActiveState(h[f]);if(d==="inactive"){c="inactive";break}}}t(c,v)}},a.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,r=!1,i=0,n=e.length;i<n;i++)t.get(e[i]).model.getActiveState()!=="normal"&&(r=!0);return r},a.prototype.axisCoordToPoint=function(e,t){var r=this._axesLayout[t];return Ie([e,0],r.transform)},a.prototype.getAxisLayout=function(e){return lt(this._axesLayout[e])},a.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),r=t.pixelDimIndex,i=t.axisExpandWindow.slice(),n=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var s=e[r]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",v=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(v)h&&v&&s<n*c[0]?(u="jump",l=s-n*c[2]):h&&v&&s>n*(1-c[0])?(u="jump",l=s-n*(1-c[2])):(l=s-n*c[1])>=0&&(l=s-n*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/v,l?Ar(l,i,o,"all"):u="none";else{var f=i[1]-i[0],p=o[1]*s/f;i=[Yd(0,p-f/2)],i[1]=Ud(o[1],i[0]+f),i[0]=i[1]-f}return{axisExpandWindow:i,behavior:u}},a}();function Si(a,e){return Ud(Yd(a,e[0]),e[1])}function Fw(a,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*a,axisNameAvailableWidth:t,axisLabelShow:!0}}function Hw(a,e){var t=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,v;return a<o[0]?(s=a*n,v=n):a<=o[1]?(s=e.axisExpandWindow0Pos+a*r-e.axisExpandWindow[0],l=r,u=!0):(s=t-(i-1-a)*n,v=n),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:v}}const Ww=Bw;function $w(a,e){var t=[];return a.eachComponent("parallel",function(r,i){var n=new Ww(r,a,e);n.name="parallel_"+i,n.resize(r,e),r.coordinateSystem=n,n.model=r,t.push(n)}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var i=r.getReferringComponents("parallel",ee).models[0];r.coordinateSystem=i.coordinateSystem}}),t}var Zw={create:$w};const Uw=Zw;var Xd=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return gp([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var r=this.activeIntervals=lt(t);if(r)for(var i=r.length-1;i>=0;i--)le(r[i])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=r.length;n<o;n++)if(r[n][0]<=t&&t<=r[n][1])return"active";return"inactive"},e}(Lt);we(Xd,Ua);const bc=Xd;var yr=!0,Fa=Math.min,qr=Math.max,Yw=Math.pow,Xw=1e4,Kw=6,qw=6,_c="globalPan",jw={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Jw={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wc={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Qw=0,tA=function(a){E(e,a);function e(t){var r=a.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=t,r.group=new Y,r._uid="brushController_"+Qw++,D(sA,function(i,n){this._handlers[n]=Z(i,this)},r),r}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var r=this._zr;this._enableGlobalPan||S1(r,_c,this._uid),D(this._handlers,function(i,n){r.on(n,i)}),this._brushType=t.brushType,this._brushOption=dt(lt(wc),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;b1(t,_c,this._uid),D(this._handlers,function(r,i){t.off(i,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var r=this._panels={};D(t,function(i){r[i.panelId]=lt(i)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=G(t,function(h){return dt(lt(wc),h,!0)});var r="\0-brush-index-",i=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new Ke(i,t,u,l).add(v).update(v).remove(c).execute(),this;function l(h,f){return(h.id!=null?h.id:r+f)+"-"+h.brushType}function u(h,f){return l(h.__brushOption,f)}function v(h,f){var p=t[h];if(f!=null&&i[f]===s)n[h]=i[f];else{var d=n[h]=f!=null?(i[f].__brushOption=p,i[f]):qd(o,Kd(o,p));Ll(o,d)}}function c(h){i[h]!==s&&o.group.remove(i[h])}},e.prototype.unmount=function(){return this.enableBrush(!1),Ms(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(up);function Kd(a,e){var t=Vn[e.brushType].createCover(a,e);return t.__brushOption=e,Jd(t,e),a.group.add(t),t}function qd(a,e){var t=Ml(e);return t.endCreating&&(t.endCreating(a,e),Jd(e,e.__brushOption)),e}function jd(a,e){var t=e.__brushOption;Ml(e).updateCoverShape(a,e,t.range,t)}function Jd(a,e){var t=e.z;t==null&&(t=Xw),a.traverse(function(r){r.z=t,r.z2=t})}function Ll(a,e){Ml(e).updateCommon(a,e),jd(a,e)}function Ml(a){return Vn[a.__brushOption.brushType]}function Pl(a,e,t){var r=a._panels;if(!r)return yr;var i,n=a._transform;return D(r,function(o){o.isTargetByCursor(e,t,n)&&(i=o)}),i}function Qd(a,e){var t=a._panels;if(!t)return yr;var r=e.__brushOption.panelId;return r!=null?t[r]:yr}function Ms(a){var e=a._covers,t=e.length;return D(e,function(r){a.group.remove(r)},a),e.length=0,!!t}function mr(a,e){var t=G(a._covers,function(r){var i=r.__brushOption,n=lt(i.range);return{brushType:i.brushType,panelId:i.panelId,range:n}});a.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function eA(a){var e=a._track;if(!e.length)return!1;var t=e[e.length-1],r=e[0],i=t[0]-r[0],n=t[1]-r[1],o=Yw(i*i+n*n,.5);return o>Kw}function tg(a){var e=a.length-1;return e<0&&(e=0),[a[0],a[e]]}function eg(a,e,t,r){var i=new Y;return i.add(new ft({name:"main",style:Rl(t),silent:!0,draggable:!0,cursor:"move",drift:J(Ac,a,e,i,["n","s","w","e"]),ondragend:J(mr,e,{isEnd:!0})})),D(r,function(n){i.add(new ft({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:J(Ac,a,e,i,n),ondragend:J(mr,e,{isEnd:!0})}))}),i}function rg(a,e,t,r){var i=r.brushStyle.lineWidth||0,n=qr(i,qw),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,v=t[0][1],c=t[1][1],h=v-n+i/2,f=c-n+i/2,p=v-o,d=c-s,g=p+i,y=d+i;Te(a,e,"main",o,s,p,d),r.transformable&&(Te(a,e,"w",l,u,n,y),Te(a,e,"e",h,u,n,y),Te(a,e,"n",l,u,g,n),Te(a,e,"s",l,f,g,n),Te(a,e,"nw",l,u,n,n),Te(a,e,"ne",h,u,n,n),Te(a,e,"sw",l,f,n,n),Te(a,e,"se",h,f,n,n))}function Ps(a,e){var t=e.__brushOption,r=t.transformable,i=e.childAt(0);i.useStyle(Rl(t)),i.attr({silent:!r,cursor:r?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?Rs(a,n[0]):aA(a,n);o&&o.attr({silent:!r,invisible:!r,cursor:r?Jw[s]+"-resize":null})})}function Te(a,e,t,r,i,n,o){var s=e.childOfName(t);s&&s.setShape(nA(kl(a,e,[[r,i],[r+n,i+o]])))}function Rl(a){return Q({strokeNoScale:!0},a.brushStyle)}function ag(a,e,t,r){var i=[Fa(a,t),Fa(e,r)],n=[qr(a,t),qr(e,r)];return[[i[0],n[0]],[i[1],n[1]]]}function rA(a){return zr(a.group)}function Rs(a,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=nl(t[e],rA(a));return r[i]}function aA(a,e){var t=[Rs(a,e[0]),Rs(a,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Ac(a,e,t,r,i,n){var o=t.__brushOption,s=a.toRectRange(o.range),l=ig(e,i,n);D(r,function(u){var v=jw[u];s[v[0]][v[1]]+=l[v[0]]}),o.range=a.fromRectRange(ag(s[0][0],s[1][0],s[0][1],s[1][1])),Ll(e,t),mr(e,{isEnd:!1})}function iA(a,e,t,r){var i=e.__brushOption.range,n=ig(a,t,r);D(i,function(o){o[0]+=n[0],o[1]+=n[1]}),Ll(a,e),mr(a,{isEnd:!1})}function ig(a,e,t){var r=a.group,i=r.transformCoordToLocal(e,t),n=r.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function kl(a,e,t){var r=Qd(a,e);return r&&r!==yr?r.clipPath(t,a._transform):lt(t)}function nA(a){var e=Fa(a[0][0],a[1][0]),t=Fa(a[0][1],a[1][1]),r=qr(a[0][0],a[1][0]),i=qr(a[0][1],a[1][1]);return{x:e,y:t,width:r-e,height:i-t}}function oA(a,e,t){if(!(!a._brushType||lA(a,e.offsetX,e.offsetY))){var r=a._zr,i=a._covers,n=Pl(a,e,t);if(!a._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(n&&(n===yr||s.panelId===n.panelId)&&Vn[s.brushType].contain(i[o],t[0],t[1]))return}n&&r.setCursorStyle("crosshair")}}function ks(a){var e=a.event;e.preventDefault&&e.preventDefault()}function Es(a,e,t){return a.childOfName("main").contain(e,t)}function ng(a,e,t,r){var i=a._creatingCover,n=a._creatingPanel,o=a._brushOption,s;if(a._track.push(t.slice()),eA(a)||i){if(n&&!i){o.brushMode==="single"&&Ms(a);var l=lt(o);l.brushType=Tc(l.brushType,n),l.panelId=n===yr?null:n.panelId,i=a._creatingCover=Kd(a,l),a._covers.push(i)}if(i){var u=Vn[Tc(a._brushType,n)],v=i.__brushOption;v.range=u.getCreatingRange(kl(a,i,a._track)),r&&(qd(a,i),u.updateCommon(a,i)),jd(a,i),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&Pl(a,e,t)&&Ms(a)&&(s={isEnd:r,removeOnClick:!0});return s}function Tc(a,e){return a==="auto"?e.defaultBrushType:a}var sA={mousedown:function(a){if(this._dragging)Cc(this,a);else if(!a.target||!a.target.draggable){ks(a);var e=this.group.transformCoordToLocal(a.offsetX,a.offsetY);this._creatingCover=null;var t=this._creatingPanel=Pl(this,a,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(a){var e=a.offsetX,t=a.offsetY,r=this.group.transformCoordToLocal(e,t);if(oA(this,a,r),this._dragging){ks(a);var i=ng(this,a,r,!1);i&&mr(this,i)}},mouseup:function(a){Cc(this,a)}};function Cc(a,e){if(a._dragging){ks(e);var t=e.offsetX,r=e.offsetY,i=a.group.transformCoordToLocal(t,r),n=ng(a,e,i,!0);a._dragging=!1,a._track=[],a._creatingCover=null,n&&mr(a,n)}}function lA(a,e,t){var r=a._zr;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}var Vn={lineX:Dc(0),lineY:Dc(1),rect:{createCover:function(a,e){function t(r){return r}return eg({toRectRange:t,fromRectRange:t},a,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(a){var e=tg(a);return ag(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(a,e,t,r){rg(a,e,t,r)},updateCommon:Ps,contain:Es},polygon:{createCover:function(a,e){var t=new Y;return t.add(new de({name:"main",style:Rl(e),silent:!0})),t},getCreatingRange:function(a){return a},endCreating:function(a,e){e.remove(e.childAt(0)),e.add(new ve({name:"main",draggable:!0,drift:J(iA,a,e),ondragend:J(mr,a,{isEnd:!0})}))},updateCoverShape:function(a,e,t,r){e.childAt(0).setShape({points:kl(a,e,t)})},updateCommon:Ps,contain:Es}};function Dc(a){return{createCover:function(e,t){return eg({toRectRange:function(r){var i=[r,[0,100]];return a&&i.reverse(),i},fromRectRange:function(r){return r[a]}},e,t,[[["w"],["e"]],[["n"],["s"]]][a])},getCreatingRange:function(e){var t=tg(e),r=Fa(t[0][a],t[1][a]),i=qr(t[0][a],t[1][a]);return[r,i]},updateCoverShape:function(e,t,r,i){var n,o=Qd(e,t);if(o!==yr&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(a);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-a]]}var l=[r,n];a&&l.reverse(),rg(e,t,l,i)},updateCommon:Ps,contain:Es}}const El=tA;function og(a){return a=Vl(a),function(e){return Bm(e,a)}}function sg(a,e){return a=Vl(a),function(t){var r=e!=null?e:t,i=r?a.width:a.height,n=r?a.x:a.y;return[n,n+(i||0)]}}function lg(a,e,t){var r=Vl(a);return function(i,n){return r.contain(n[0],n[1])&&!Pn(i,e,t)}}function Vl(a){return kt.create(a)}var uA=["axisLine","axisTickLabel","axisName"],vA=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){a.prototype.init.apply(this,arguments),(this._brushController=new El(r.getZr())).on("brush",Z(this._onBrush,this))},e.prototype.render=function(t,r,i,n){if(!cA(t,r,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Y,this.group.add(this._axisGroup),!!t.get("show")){var s=fA(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),v=u.width,c=t.axis.dim,h=l.getAxisLayout(c),f=$({strokeContainThreshold:v},h),p=new Re(t,f);D(uA,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(f,u,t,s,v,i),_n(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],v=Math.min(30,Math.abs(u)*.1),c=kt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=v,c.width+=2*v,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:og(c),isTargetByCursor:lg(c,s,n),getLinearBrushOtherExtent:sg(c,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(hA(i))},e.prototype._onBrush=function(t){var r=t.areas,i=this.axisModel,n=i.axis,o=G(r,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Vt);function cA(a,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===a}function hA(a){var e=a.axis;return G(a.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function fA(a,e){return e.getComponent("parallel",a.get("parallelIndex"))}const pA=vA;var dA={type:"axisAreaSelect",event:"axisAreaSelected"};function gA(a){a.registerAction(dA,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),a.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var yA={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function ug(a){a.registerComponentView(kw),a.registerComponentModel(Vw),a.registerCoordinateSystem("parallel",Uw),a.registerPreprocessor(Dw),a.registerComponentModel(bc),a.registerComponentView(pA),Kr(a,"parallel",bc,yA),gA(a)}function mA(a){tt(ug),a.registerChartView(xw),a.registerSeriesModel(ww),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,Cw)}var xA=function(){function a(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return a}(),SA=function(a){E(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new xA},e.prototype.buildPath=function(t,r){var i=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+i,r.y2),t.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(t.lineTo(r.x2,r.y2+i),t.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),t.closePath()},e.prototype.highlight=function(){Fr(this)},e.prototype.downplay=function(){Hr(this)},e}(It),bA=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,i){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,v=l.height,c=t.getData(),h=t.getData("edge"),f=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new SA,g=et(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),x=y.getModel("lineStyle"),m=x.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),_=b.get("localX"),w=b.get("localY"),A=p.node2.getLayout(),T=p.node2.getModel(),C=T.get("localX"),I=T.get("localY"),L=p.getLayout(),M,P,R,k,N,V,O,z;d.shape.extent=Math.max(1,L.dy),d.shape.orient=f,f==="vertical"?(M=(_!=null?_*u:S.x)+L.sy,P=(w!=null?w*v:S.y)+S.dy,R=(C!=null?C*u:A.x)+L.ty,k=I!=null?I*v:A.y,N=M,V=P*(1-m)+k*m,O=R,z=P*m+k*(1-m)):(M=(_!=null?_*u:S.x)+S.dx,P=(w!=null?w*v:S.y)+L.sy,R=C!=null?C*u:A.x,k=(I!=null?I*v:A.y)+L.ty,N=M*(1-m)+R*m,V=P,O=M*m+R*(1-m),z=k),d.setShape({x1:M,y1:P,x2:R,y2:k,cpx1:N,cpy1:V,cpx2:O,cpy2:z}),d.useStyle(x.getItemStyle()),Ic(d.style,f,p);var H=""+y.get("value"),q=zt(y,"edgeLabel");Wt(d,q,{labelFetcher:{getFormattedLabel:function(at,ot,rt,U,ut,st){return t.getFormattedLabel(at,ot,"edge",U,ea(ut,q.normal&&q.normal.get("formatter"),H),st)}},labelDataIndex:p.dataIndex,defaultText:H}),d.setTextConfig({position:"inside"});var j=y.getModel("emphasis");$t(d,y,"lineStyle",function(at){var ot=at.getItemStyle();return Ic(ot,f,p),ot}),s.add(d),h.setItemGraphicEl(p.dataIndex,d);var X=j.get("focus");St(d,X==="adjacency"?p.getAdjacentDataIndices():X==="trajectory"?p.getTrajectoryDataIndices():X,j.get("blurScope"),j.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),x=g.get("localY"),m=g.getModel("emphasis"),S=new ft({shape:{x:y!=null?y*u:d.x,y:x!=null?x*v:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});Wt(S,zt(g),{labelFetcher:{getFormattedLabel:function(_,w){return t.getFormattedLabel(_,w,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),$t(S,g),s.add(S),c.setItemGraphicEl(p.dataIndex,S),et(S).dataType="node";var b=m.get("focus");St(S,b==="adjacency"?p.getAdjacentDataIndices():b==="trajectory"?p.getTrajectoryDataIndices():b,m.get("blurScope"),m.get("disabled"))}),c.eachItemGraphicEl(function(p,d){var g=c.getItemModel(d);g.get("draggable")&&(p.drift=function(y,x){n._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=x,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/v})},p.ondragend=function(){n._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(_A(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(xt);function Ic(a,e,t){switch(a.fill){case"source":a.fill=t.node1.getVisual("color"),a.decal=t.node1.getVisual("style").decal;break;case"target":a.fill=t.node2.getVisual("color"),a.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),i=t.node2.getVisual("color");K(r)&&K(i)&&(a.fill=new gn(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function _A(a,e,t){var r=new ft({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return bt(r,{shape:{width:a.width+20}},e,t),r}const wA=bA;var AA=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var i=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Rt(o[l],this,r));if(n&&i){var u=$d(n,i,this,!0,v);return u.data}function v(c,h){c.wrapMethod("getItemModel",function(f,p){var d=f.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,x=d.levelModels[y];x&&(f.parentModel=x)}return f}),h.wrapMethod("getItemModel",function(f,p){var d=f.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var x=y.depth,m=d.levelModels[x];m&&(f.parentModel=m)}return f})}},e.prototype.setNodePosition=function(t,r){var i=this.option.data||this.option.nodes,n=i[t];n.localX=r[0],n.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,i){function n(f){return isNaN(f)||f==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Ut("nameValue",{name:u,value:l,noValue:n(l)})}else{var v=this.getGraph().getNodeByIndex(t),c=v.getLayout().value,h=this.getDataParams(t,i).data.name;return Ut("nameValue",{name:h!=null?h+"":null,value:c,noValue:n(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var i=a.prototype.getDataParams.call(this,t,r);if(i.value==null&&r==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Tt);const TA=AA;function CA(a,e){a.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),i=t.get("nodeGap"),n=DA(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,v=l.edges;LA(u);var c=Jt(u,function(d){return d.getLayout().value===0}),h=c.length!==0?0:t.get("layoutIterations"),f=t.get("orient"),p=t.get("nodeAlign");IA(u,v,r,i,o,s,h,f,p)})}function DA(a,e){return Gt(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function IA(a,e,t,r,i,n,o,s,l){MA(a,e,t,i,n,s,l),EA(a,e,n,i,r,o,s),WA(a,s)}function LA(a){D(a,function(e){var t=Ue(e.outEdges,en),r=Ue(e.inEdges,en),i=e.getValue()||0,n=Math.max(t,r,i);e.setLayout({value:n},!0)})}function MA(a,e,t,r,i,n,o){for(var s=[],l=[],u=[],v=[],c=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<a.length;h++)l[h]=a[h].inEdges.length,l[h]===0&&u.push(a[h]);for(var f=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>f&&(f=g.depth),d.setLayout({depth:y?g.depth:c},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var x=0;x<d.outEdges.length;x++){var m=d.outEdges[x],S=e.indexOf(m);s[S]=0;var b=m.node2,_=a.indexOf(b);--l[_]===0&&v.indexOf(b)<0&&v.push(b)}}++c,u=v,v=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=f>c-1?f:c-1;o&&o!=="left"&&PA(a,o,n,w);var A=n==="vertical"?(i-t)/w:(r-t)/w;kA(a,A,n)}function vg(a){var e=a.hostGraph.data.getRawDataItem(a.dataIndex);return e.depth!=null&&e.depth>=0}function PA(a,e,t,r){if(e==="right"){for(var i=[],n=a,o=0;n.length;){for(var s=0;s<n.length;s++){var l=n[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var v=l.inEdges[u];i.indexOf(v.node1)<0&&i.push(v.node1)}}n=i,i=[],++o}D(a,function(c){vg(c)||c.setLayout({depth:Math.max(0,r-c.getLayout().skNodeHeight)},!0)})}else e==="justify"&&RA(a,r)}function RA(a,e){D(a,function(t){!vg(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function kA(a,e,t){D(a,function(r){var i=r.getLayout().depth*e;t==="vertical"?r.setLayout({y:i},!0):r.setLayout({x:i},!0)})}function EA(a,e,t,r,i,n,o){var s=VA(a,o);NA(s,e,t,r,i,o),Co(s,i,t,r,o);for(var l=1;n>0;n--)l*=.99,OA(s,l,o),Co(s,i,t,r,o),HA(s,l,o),Co(s,i,t,r,o)}function VA(a,e){var t=[],r=e==="vertical"?"y":"x",i=vs(a,function(n){return n.getLayout()[r]});return i.keys.sort(function(n,o){return n-o}),D(i.keys,function(n){t.push(i.buckets.get(n))}),t}function NA(a,e,t,r,i,n){var o=1/0;D(a,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var v=n==="vertical"?(r-(l-1)*i)/u:(t-(l-1)*i)/u;v<o&&(o=v)}),D(a,function(s){D(s,function(l,u){var v=l.getLayout().value*o;n==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:v},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:v},!0))})}),D(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Co(a,e,t,r,i){var n=i==="vertical"?"x":"y";D(a,function(o){o.sort(function(d,g){return d.getLayout()[n]-g.getLayout()[n]});for(var s,l,u,v=0,c=o.length,h=i==="vertical"?"dx":"dy",f=0;f<c;f++)l=o[f],u=v-l.getLayout()[n],u>0&&(s=l.getLayout()[n]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[n]+l.getLayout()[h]+e;var p=i==="vertical"?r:t;if(u=v-e-p,u>0){s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),v=s;for(var f=c-2;f>=0;--f)l=o[f],u=l.getLayout()[n]+l.getLayout()[h]+e-v,u>0&&(s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[n]}})}function OA(a,e,t){D(a.slice().reverse(),function(r){D(r,function(i){if(i.outEdges.length){var n=Ue(i.outEdges,zA,t)/Ue(i.outEdges,en);if(isNaN(n)){var o=i.outEdges.length;n=o?Ue(i.outEdges,GA,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-qe(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-qe(i,t))*e;i.setLayout({y:l},!0)}}})})}function zA(a,e){return qe(a.node2,e)*a.getValue()}function GA(a,e){return qe(a.node2,e)}function BA(a,e){return qe(a.node1,e)*a.getValue()}function FA(a,e){return qe(a.node1,e)}function qe(a,e){return e==="vertical"?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function en(a){return a.getValue()}function Ue(a,e,t){for(var r=0,i=a.length,n=-1;++n<i;){var o=+e(a[n],t);isNaN(o)||(r+=o)}return r}function HA(a,e,t){D(a,function(r){D(r,function(i){if(i.inEdges.length){var n=Ue(i.inEdges,BA,t)/Ue(i.inEdges,en);if(isNaN(n)){var o=i.inEdges.length;n=o?Ue(i.inEdges,FA,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-qe(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-qe(i,t))*e;i.setLayout({y:l},!0)}}})})}function WA(a,e){var t=e==="vertical"?"x":"y";D(a,function(r){r.outEdges.sort(function(i,n){return i.node2.getLayout()[t]-n.node2.getLayout()[t]}),r.inEdges.sort(function(i,n){return i.node1.getLayout()[t]-n.node1.getLayout()[t]})}),D(a,function(r){var i=0,n=0;D(r.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),D(r.inEdges,function(o){o.setLayout({ty:n},!0),n+=o.getLayout().dy})})}function $A(a){a.eachSeriesByType("sankey",function(e){var t=e.getGraph(),r=t.nodes,i=t.edges;if(r.length){var n=1/0,o=-1/0;D(r,function(s){var l=s.getLayout().value;l<n&&(n=l),l>o&&(o=l)}),D(r,function(s){var l=new Ht({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),v=s.getModel().get(["itemStyle","color"]);v!=null?(s.setVisual("color",v),s.setVisual("style",{fill:v})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function ZA(a){a.registerChartView(wA),a.registerSeriesModel(TA),a.registerLayout(CA),a.registerVisual($A),a.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var cg=function(){function a(){}return a.prototype.getInitialData=function(e,t){var r,i=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],v=e.layout==="horizontal"?0:1,c=this._baseAxisDim=u[v],h=u[1-v],f=[i,n],p=f[v].get("type"),d=f[1-v].get("type"),g=e.data;if(g&&l){var y=[];D(g,function(S,b){var _;B(S)?(_=S.slice(),S.unshift(b)):B(S.value)?(_=$({},S),_.value=_.value.slice(),S.value.unshift(b)):_=S,y.push(_)}),e.data=y}var x=this.defaultValueDimensions,m=[{name:c,type:cs(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:cs(d),dimsDef:x.slice()}];return ia(this,{coordDimensions:m,dimensionsCount:x.length+1,encodeDefaulter:J(Fm,m,this)})},a.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},a}(),hg=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Tt);we(hg,cg,!0);const UA=hg;var YA=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var v=n.getItemLayout(u),c=Lc(v,n,u,l,!0);n.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,v){var c=s.getItemGraphicEl(v);if(!n.hasValue(u)){o.remove(c);return}var h=n.getItemLayout(u);c?(fe(c),fg(h,c,n,u)):c=Lc(h,n,u,l),o.add(c),n.setItemGraphicEl(u,c)}).remove(function(u){var v=s.getItemGraphicEl(u);v&&o.remove(v)}).execute(),this._data=n},e.prototype.remove=function(t){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&r.remove(n)})},e.type="boxplot",e}(xt),XA=function(){function a(){}return a}(),KA=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new XA},e.prototype.buildPath=function(t,r){var i=r.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n<i.length;n++)t.moveTo(i[n][0],i[n][1]),n++,t.lineTo(i[n][0],i[n][1])},e}(It);function Lc(a,e,t,r,i){var n=a.ends,o=new KA({shape:{points:i?qA(n,r,a):n}});return fg(a,o,e,t,i),o}function fg(a,e,t,r,i){var n=t.hostModel,o=Sr[i?"initProps":"updateProps"];o(e,{shape:{points:a.ends}},n,r),e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(r),l=s.getModel("emphasis");$t(e,s),St(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function qA(a,e,t){return G(a,function(r){return r=r.slice(),r[e]=t.initBaseline,r})}const jA=YA;var Ca=D;function JA(a){var e=QA(a);Ca(e,function(t){var r=t.seriesModels;!r.length||(tT(t),Ca(r,function(i,n){eT(i,t.boxOffsetList[n],t.boxWidthList[n])}))})}function QA(a){var e=[],t=[];return a.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),n=yt(t,i);n<0&&(n=t.length,t[n]=i,e[n]={axis:i,seriesModels:[]}),e[n].seriesModels.push(r)}),e}function tT(a){var e=a.axis,t=a.seriesModels,r=t.length,i=a.boxWidthList=[],n=a.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Ca(t,function(p){l=Math.max(l,p.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Ca(t,function(p){var d=p.get("boxWidth");B(d)||(d=[d,d]),o.push([F(d[0],s)||0,F(d[1],s)||0])});var v=s*.8-2,c=v/r*.3,h=(v-c*(r-1))/r,f=h/2-v/2;Ca(t,function(p,d){n.push(f),f+=c+h,i.push(Math.min(Math.max(h,o[d][0]),o[d][1]))})}function eT(a,e,t){var r=a.coordinateSystem,i=a.getData(),n=t/2,o=a.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),v=i.mapDimensionsAll(l[s]);if(u==null||v.length<5)return;for(var c=0;c<i.count();c++){var h=i.get(u,c),f=m(h,v[2],c),p=m(h,v[0],c),d=m(h,v[1],c),g=m(h,v[3],c),y=m(h,v[4],c),x=[];S(x,d,!1),S(x,g,!0),x.push(p,d,y,g),b(x,p),b(x,y),b(x,f),i.setItemLayout(c,{initBaseline:f[s],ends:x})}function m(_,w,A){var T=i.get(w,A),C=[];C[o]=_,C[s]=T;var I;return isNaN(_)||isNaN(T)?I=[NaN,NaN]:(I=r.dataToPoint(C),I[o]+=e),I}function S(_,w,A){var T=w.slice(),C=w.slice();T[o]+=n,C[o]-=n,A?_.push(T,C):_.push(C,T)}function b(_,w){var A=w.slice(),T=w.slice();A[o]-=n,T[o]+=n,_.push(A,T)}}function rT(a,e){e=e||{};for(var t=[],r=[],i=e.boundIQR,n=i==="none"||i===0,o=0;o<a.length;o++){var s=le(a[o].slice()),l=Fn(s,.25),u=Fn(s,.5),v=Fn(s,.75),c=s[0],h=s[s.length-1],f=(i==null?1.5:i)*(v-l),p=n?c:Math.max(c,l-f),d=n?h:Math.min(h,v+f),g=e.itemNameFormatter,y=it(g)?g({value:o}):K(g)?g.replace("{value}",o+""):o+"";t.push([y,p,l,u,v,d]);for(var x=0;x<s.length;x++){var m=s[x];if(m<p||m>d){var S=[y,m];r.push(S)}}}return{boxData:t,outliers:r}}var aT={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Sp){var r="";wt(r)}var i=rT(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function iT(a){a.registerSeriesModel(UA),a.registerChartView(jA),a.registerLayout(JA),a.registerTransform(aT)}var nT=["color","borderColor"],oT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){ta(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),i=this._data,n=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),r.diff(i).add(function(v){if(r.hasValue(v)){var c=r.getItemLayout(v);if(s&&Mc(u,c))return;var h=Do(c,v,!0);bt(h,{shape:{points:c.ends}},t,v),Io(h,r,v,o),n.add(h),r.setItemGraphicEl(v,h)}}).update(function(v,c){var h=i.getItemGraphicEl(c);if(!r.hasValue(v)){n.remove(h);return}var f=r.getItemLayout(v);if(s&&Mc(u,f)){n.remove(h);return}h?(ct(h,{shape:{points:f.ends}},t,v),fe(h)):h=Do(f),Io(h,r,v,o),n.add(h),r.setItemGraphicEl(v,h)}).remove(function(v){var c=i.getItemGraphicEl(v);c&&n.remove(c)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),Pc(t,this.group);var r=t.get("clip",!0)?ti(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var i=r.getData(),n=i.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=i.getItemLayout(o),l=Do(s);Io(l,i,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){Pc(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(xt),sT=function(){function a(){}return a}(),lT=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new sT},e.prototype.buildPath=function(t,r){var i=r.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(It);function Do(a,e,t){var r=a.ends;return new lT({shape:{points:t?uT(r,a):r},z2:100})}function Mc(a,e){for(var t=!0,r=0;r<e.ends.length;r++)if(a.contain(e.ends[r][0],e.ends[r][1])){t=!1;break}return t}function Io(a,e,t,r){var i=e.getItemModel(t);a.useStyle(e.getItemVisual(t,"style")),a.style.strokeNoScale=!0,a.__simpleBox=r,$t(a,i)}function uT(a,e){return G(a,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var vT=function(){function a(){}return a}(),Lo=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new vT},e.prototype.buildPath=function(t,r){for(var i=r.points,n=0;n<i.length;)if(this.__sign===i[n++]){var o=i[n++];t.moveTo(o,i[n++]),t.lineTo(o,i[n++])}else n+=3},e}(It);function Pc(a,e,t,r){var i=a.getData(),n=i.getLayout("largePoints"),o=new Lo({shape:{points:n},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new Lo({shape:{points:n},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Lo({shape:{points:n},__sign:0,ignoreCoarsePointer:!0});e.add(l),Mo(1,o,a),Mo(-1,s,a),Mo(0,l,a),r&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function Mo(a,e,t,r){var i=t.get(["itemStyle",a>0?"borderColor":"borderColor0"])||t.get(["itemStyle",a>0?"color":"color0"]);a===0&&(i=t.get(["itemStyle","borderColorDoji"]));var n=t.getModel("itemStyle").getItemStyle(nT);e.useStyle(n),e.style.fill=null,e.style.stroke=i}const cT=oT;var pg=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,i){var n=r.getItemLayout(t);return n&&i.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Tt);we(pg,cg,!0);const hT=pg;function fT(a){!a||!B(a.series)||D(a.series,function(e){_t(e)&&e.type==="k"&&(e.type="candlestick")})}var pT=["itemStyle","borderColor"],dT=["itemStyle","borderColor0"],gT=["itemStyle","borderColorDoji"],yT=["itemStyle","color"],mT=["itemStyle","color0"],xT={seriesType:"candlestick",plan:yn(),performRawSeries:!0,reset:function(a,e){function t(n,o){return o.get(n>0?yT:mT)}function r(n,o){return o.get(n===0?gT:n>0?pT:dT)}if(!e.isSeriesFiltered(a)){var i=a.pipelineContext.large;return!i&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,v=l.getItemStyle();v.fill=t(u,l),v.stroke=r(u,l)||v.fill;var c=o.ensureUniqueItemVisual(s,"style");$(c,v)}}}}}};const ST=xT;var bT={seriesType:"candlestick",plan:yn(),reset:function(a){var e=a.coordinateSystem,t=a.getData(),r=_T(a,t),i=0,n=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[i])),l=G(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],v=l[1],c=l[2],h=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:a.pipelineContext.large?p:f};function f(d,g){for(var y,x=g.getStore();(y=d.next())!=null;){var m=x.get(s,y),S=x.get(u,y),b=x.get(v,y),_=x.get(c,y),w=x.get(h,y),A=Math.min(S,b),T=Math.max(S,b),C=N(A,m),I=N(T,m),L=N(_,m),M=N(w,m),P=[];V(P,I,0),V(P,C,1),P.push(z(M),z(I),z(L),z(C));var R=g.getItemModel(y),k=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:Rc(x,y,S,b,v,k),initBaseline:S>b?I[n]:C[n],ends:P,brushRect:O(_,w,m)})}function N(H,q){var j=[];return j[i]=q,j[n]=H,isNaN(q)||isNaN(H)?[NaN,NaN]:e.dataToPoint(j)}function V(H,q,j){var X=q.slice(),at=q.slice();X[i]=Hn(X[i]+r/2,1,!1),at[i]=Hn(at[i]-r/2,1,!0),j?H.push(X,at):H.push(at,X)}function O(H,q,j){var X=N(H,j),at=N(q,j);return X[i]-=r/2,at[i]-=r/2,{x:X[0],y:X[1],width:r,height:at[1]-X[1]}}function z(H){return H[i]=Hn(H[i],1),H}}function p(d,g){for(var y=vr(d.count*4),x=0,m,S=[],b=[],_,w=g.getStore(),A=!!a.get(["itemStyle","borderColorDoji"]);(_=d.next())!=null;){var T=w.get(s,_),C=w.get(u,_),I=w.get(v,_),L=w.get(c,_),M=w.get(h,_);if(isNaN(T)||isNaN(L)||isNaN(M)){y[x++]=NaN,x+=3;continue}y[x++]=Rc(w,_,C,I,v,A),S[i]=T,S[n]=L,m=e.dataToPoint(S,null,b),y[x++]=m?m[0]:NaN,y[x++]=m?m[1]:NaN,S[n]=M,m=e.dataToPoint(S,null,b),y[x++]=m?m[1]:NaN}g.setLayout("largePoints",y)}}};function Rc(a,e,t,r,i,n){var o;return t>r?o=-1:t<r?o=1:o=n?0:e>0?a.get(i,e-1)<=r?1:-1:1,o}function _T(a,e){var t=a.getBaseAxis(),r,i=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),n=F(At(a.get("barMaxWidth"),i),i),o=F(At(a.get("barMinWidth"),1),i),s=a.get("barWidth");return s!=null?F(s,i):Math.max(Math.min(i/2,n),o)}const wT=bT;function AT(a){a.registerChartView(cT),a.registerSeriesModel(hT),a.registerPreprocessor(fT),a.registerVisual(ST),a.registerLayout(wT)}function kc(a,e){var t=e.rippleEffectColor||e.color;a.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var TT=function(a){E(e,a);function e(t,r){var i=a.call(this)||this,n=new Ja(t,r),o=new Y;return i.add(n),i.add(o),i.updateData(t,r),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,i=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s<n;s++){var l=Et(r,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/n*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}kc(o,t)},e.prototype.updateEffectAnimation=function(t){for(var r=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],o=0;o<n.length;o++){var s=n[o];if(r[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}kc(i,t)},e.prototype.highlight=function(){Fr(this)},e.prototype.downplay=function(){Hr(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,r){var i=this,n=t.hostModel;this.childAt(0).updateData(t,r);var o=this.childAt(1),s=t.getItemModel(r),l=t.getItemVisual(r,"symbol"),u=Qr(t.getItemVisual(r,"symbolSize")),v=t.getItemVisual(r,"style"),c=v&&v.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var f=xr(t.getItemVisual(r,"symbolOffset"),u);f&&(o.x=f[0],o.y=f[1]);var p=t.getItemVisual(r,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=n.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=r/t.count(),d.z=n.getShallow("z")||0,d.zlevel=n.getShallow("zlevel")||0,d.symbolType=l,d.color=c,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?d.showEffectOn!=="render"&&i.startEffectAnimation(d):g==="normal"&&d.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=d,St(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Y);const CT=TT;var DT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Qa(CT)},e.prototype.render=function(t,r,i){var n=t.getData(),o=this._symbolDraw;o.updateData(n,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,i=r&&r.getArea&&r.getArea();return t.get("clip",!0)?i:null},e.prototype.updateTransform=function(t,r,i){var n=t.getData();this.group.dirty();var o=ei("").reset(t,r,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var r=t.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=Hm(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(xt);const IT=DT;var LT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return Ee(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,r,i){return i.point(r.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Tt);const MT=LT;function PT(a){a.registerChartView(IT),a.registerSeriesModel(MT),a.registerLayout(ei("effectScatter"))}var RT=function(a){E(e,a);function e(t,r,i){var n=a.call(this)||this;return n.add(n.createLine(t,r,i)),n._updateEffectSymbol(t,r),n}return e.prototype.createLine=function(t,r,i){return new Dl(t,r,i)},e.prototype._updateEffectSymbol=function(t,r){var i=t.getItemModel(r),n=i.getModel("effect"),o=n.get("symbolSize"),s=n.get("symbol");B(o)||(o=[o,o]);var l=t.getItemVisual(r,"style"),u=n.get("color")||l&&l.stroke,v=this.childAt(1);this._symbolType!==s&&(this.remove(v),v=Et(s,-.5,-.5,1,1,u),v.z2=100,v.culling=!0,this.add(v)),v&&(v.setStyle("shadowColor",u),v.setStyle(n.getItemStyle(["color"])),v.scaleX=o[0],v.scaleY=o[1],v.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,n,r))},e.prototype._updateEffectAnimation=function(t,r,i){var n=this.childAt(1);if(!!n){var o=t.getItemLayout(i),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),v=r.get("constantSpeed"),c=Ft(r.get("delay"),function(f){return f/t.count()*s/3});if(n.ignore=!0,this._updateAnimationPoints(n,o),v>0&&(s=this._getLineLength(n)/v*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var h=void 0;it(c)?h=c(i):h=c,n.__t>0&&(h=-s*n.__t),this._animateSymbol(n,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,i,n,o){if(r>0){t.__t=0;var s=this,l=t.animate("",n).when(o?r*2:r,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return ma(t.__p1,t.__cp1)+ma(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,i){this.childAt(0).updateData(t,r,i),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=mp,v=Wm;s[0]=u(r[0],n[0],i[0],o),s[1]=u(r[1],n[1],i[1],o);var c=t.__t<1?v(r[0],n[0],i[0],o):v(i[0],n[0],r[0],1-o),h=t.__t<1?v(r[1],n[1],i[1],o):v(i[1],n[1],r[1],1-o);t.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=ma(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*ma(r,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,r){this.childAt(0).updateLayout(t,r);var i=t.getItemModel(r).getModel("effect");this._updateEffectAnimation(t,i,r)},e}(Y);const dg=RT;var kT=function(a){E(e,a);function e(t,r,i){var n=a.call(this)||this;return n._createPolyline(t,r,i),n}return e.prototype._createPolyline=function(t,r,i){var n=t.getItemLayout(r),o=new de({shape:{points:n}});this.add(o),this._updateCommonStl(t,r,i)},e.prototype.updateData=function(t,r,i){var n=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(r)}};ct(o,s,n,r),this._updateCommonStl(t,r,i)},e.prototype._updateCommonStl=function(t,r,i){var n=this.childAt(0),o=t.getItemModel(r),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,v=i&&i.emphasisDisabled;if(!i||t.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),v=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}n.useStyle(t.getItemVisual(r,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var h=n.ensureState("emphasis");h.style=s,St(this,l,u,v)},e.prototype.updateLayout=function(t,r){var i=this.childAt(0);i.setShape("points",t.getItemLayout(r))},e}(Y);const gg=kT;var ET=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,r,i){return new gg(t,r,i)},e.prototype._updateAnimationPoints=function(t,r){this._points=r;for(var i=[0],n=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];n+=ma(s,l),i.push(n)}if(n===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=n;this._offsets=i,this._length=n},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var r=t.__t<1?t.__t:2-t.__t,i=this._points,n=this._offsets,o=i.length;if(!!n){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(n[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(n[l]>r);l++);l=Math.min(l-1,o-2)}var v=(r-n[l])/(n[l+1]-n[l]),c=i[l],h=i[l+1];t.x=c[0]*(1-v)+v*h[0],t.y=c[1]*(1-v)+v*h[1];var f=t.__t<1?h[0]-c[0]:c[0]-h[0],p=t.__t<1?h[1]-c[1]:c[1]-h[1];t.rotation=-Math.atan2(p,f)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(dg);const VT=ET;var NT=function(){function a(){this.polyline=!1,this.curveness=0,this.segs=[]}return a}(),OT=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new NT},e.prototype.buildPath=function(t,r){var i=r.segs,n=r.curveness,o;if(r.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){t.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)t.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],v=i[o++],c=i[o++],h=i[o++];if(t.moveTo(u,v),n>0){var f=(u+c)/2-(v-h)*n,p=(v+h)/2-(c-u)*n;t.quadraticCurveTo(f,p,c,h)}else t.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var i=this.shape,n=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<n.length;){var v=n[u++];if(v>0)for(var c=n[u++],h=n[u++],f=1;f<v;f++){var p=n[u++],d=n[u++];if(_u(c,h,p,d,s,t,r))return l}l++}else for(var l=0,u=0;u<n.length;){var c=n[u++],h=n[u++],p=n[u++],d=n[u++];if(o>0){var g=(c+p)/2-(h-d)*o,y=(h+d)/2-(p-c)*o;if($m(c,h,g,y,p,d,s,t,r))return l}else if(_u(c,h,p,d,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),n=this.getBoundingRect();if(t=i[0],r=i[1],n.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var v=i[u++],c=i[u++];n=Math.min(v,n),s=Math.max(v,s),o=Math.min(c,o),l=Math.max(c,l)}t=this._rect=new kt(n,o,s,l)}return t},e}(It),zT=function(){function a(){this.group=new Y}return a.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},a.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},a.prototype.incrementalUpdate=function(e,t){var r=this._newAdded[0],i=t.getLayout("linesPoints"),n=r&&r.shape.segs;if(n&&n.length<2e4){var o=n.length,s=new Float32Array(o+i.length);s.set(n),s.set(i,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,t),l.__startIndex=e.start}},a.prototype.remove=function(){this._clear()},a.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},a.prototype._create=function(){var e=new OT({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},a.prototype._setCommon=function(e,t,r){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var n=t.getVisual("style");n&&n.stroke&&e.setStyle("stroke",n.stroke),e.setStyle("fill",null);var o=et(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}();const GT=zT;var BT={seriesType:"lines",plan:yn(),reset:function(a){var e=a.coordinateSystem;if(!!e){var t=a.get("polyline"),r=a.pipelineContext.large;return{progress:function(i,n){var o=[];if(r){var s=void 0,l=i.end-i.start;if(t){for(var u=0,v=i.start;v<i.end;v++)u+=a.getLineCoordsCount(v);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],v=i.start;v<i.end;v++){var f=a.getLineCoords(v,o);t&&(s[c++]=f);for(var p=0;p<f;p++)h=e.dataToPoint(o[p],!1,h),s[c++]=h[0],s[c++]=h[1]}n.setLayout("linesPoints",s)}else for(var v=i.start;v<i.end;v++){var d=n.getItemModel(v),f=a.getLineCoords(v,o),g=[];if(t)for(var y=0;y<f;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var x=d.get(["lineStyle","curveness"]);+x&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*x,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*x])}n.setItemLayout(v,g)}}}}}};const yg=BT;var FT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this._updateLineDraw(n,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=i.getZr(),v=u.painter.getType()==="svg";v||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!v&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(v||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var c=t.get("clip",!0)&&ti(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,i){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=yg.reset(t,r,i);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,r){var i=this._lineDraw,n=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!i||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new GT:new Il(o?n?VT:gg:n?dg:Dl),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(xt);const HT=FT;var WT=typeof Uint32Array>"u"?Array:Uint32Array,$T=typeof Float64Array>"u"?Array:Float64Array;function Ec(a){var e=a.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(a.data=G(e,function(t){var r=[t[0].coord,t[1].coord],i={coords:r};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),al([i,t[0],t[1]])}))}var ZT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],Ec(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),a.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(Ec(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}a.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=ss(this._flatCoords,r.flatCoords),this._flatCoordsOffset=ss(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),i=r.option instanceof Array?r.option:r.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;o<n;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[i+o*2],r[o][1]=this._flatCoords[i+o*2+1];return n}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),Yt(t[0])){for(var i=t.length,n=new WT(i),o=new $T(i),s=0,l=0,u=0,v=0;v<i;){u++;var c=t[v++];n[l++]=s+r,n[l++]=c;for(var h=0;h<c;h++){var f=t[v++],p=t[v++];o[s++]=f,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,r){var i=new te(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(n,o,s,l){if(n instanceof Array)return NaN;i.hasItemOption=!0;var u=n.value;if(u!=null)return u instanceof Array?u[l]:u}),i},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=n.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),v=[];return l!=null&&v.push(l),u!=null&&v.push(u),Ut("nameValue",{name:v.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Tt);const UT=ZT;function bi(a){return a instanceof Array||(a=[a,a]),a}var YT={seriesType:"lines",reset:function(a){var e=bi(a.get("symbol")),t=bi(a.get("symbolSize")),r=a.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function i(n,o){var s=n.getItemModel(o),l=bi(s.getShallow("symbol",!0)),u=bi(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}};const XT=YT;function KT(a){a.registerChartView(HT),a.registerSeriesModel(UT),a.registerLayout(yg),a.registerVisual(XT)}var qT=256,jT=function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=wu.createCanvas();this.canvas=e}return a.prototype.update=function(e,t,r,i,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),v=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),f=e.length;c.width=t,c.height=r;for(var p=0;p<f;++p){var d=e[p],g=d[0],y=d[1],x=d[2],m=i(x);h.globalAlpha=m,h.drawImage(s,g-v,y-v)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,_=0,w=b.length,A=this.minOpacity,T=this.maxOpacity,C=T-A;_<w;){var m=b[_+3]/256,I=Math.floor(m*(qT-1))*4;if(m>0){var L=o(m)?l:u;m>0&&(m=m*C+A),b[_++]=L[I],b[_++]=L[I+1],b[_++]=L[I+2],b[_++]=L[I+3]*m*256}else _+=4}return h.putImageData(S,0,0),c},a.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=wu.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},a.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,i=r[t]||(r[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},a}();const JT=jT;function QT(a,e,t){var r=a[1]-a[0];e=G(e,function(o){return{interval:[(o.interval[0]-a[0])/r,(o.interval[1]-a[0])/r]}});var i=e.length,n=0;return function(o){var s;for(s=n;s<i;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}if(s===i)for(s=n-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s<i&&t[s]}}function tC(a,e){var t=a[1]-a[0];return e=[(e[0]-a[0])/t,(e[1]-a[0])/t],function(r){return r>=e[0]&&r<=e[1]}}function Vc(a){var e=a.dimensions;return e[0]==="lng"&&e[1]==="lat"}var eC=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):Vc(o)&&this._renderOnGeo(o,t,n,i)},e.prototype.incrementalPrepareRender=function(t,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,i,n){var o=r.coordinateSystem;o&&(Vc(o)?this.render(r,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ta(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,i,n,o){var s=t.coordinateSystem,l=_r(s,"cartesian2d"),u,v,c,h;if(l){var f=s.getAxis("x"),p=s.getAxis("y");u=f.getBandWidth()+.5,v=p.getBandWidth()+.5,c=f.scale.getExtent(),h=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),x=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=zt(t),_=t.getModel("emphasis"),w=_.get("focus"),A=_.get("blurScope"),T=_.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],I=i;I<n;I++){var L=void 0,M=g.getItemVisual(I,"style");if(l){var P=g.get(C[0],I),R=g.get(C[1],I);if(isNaN(g.get(C[2],I))||isNaN(P)||isNaN(R)||P<c[0]||P>c[1]||R<h[0]||R>h[1])continue;var k=s.dataToPoint([P,R]);L=new ft({shape:{x:k[0]-u/2,y:k[1]-v/2,width:u,height:v},style:M})}else{if(isNaN(g.get(C[1],I)))continue;L=new ft({z2:1,shape:s.dataToRect([g.get(C[0],I)]).contentShape,style:M})}if(g.hasItemOption){var N=g.getItemModel(I),V=N.getModel("emphasis");y=V.getModel("itemStyle").getItemStyle(),x=N.getModel(["blur","itemStyle"]).getItemStyle(),m=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),w=V.get("focus"),A=V.get("blurScope"),T=V.get("disabled"),b=zt(N)}L.shape.r=S;var O=t.getRawValue(I),z="-";O&&O[2]!=null&&(z=O[2]+""),Wt(L,b,{labelFetcher:t,labelDataIndex:I,defaultOpacity:M.opacity,defaultText:z}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=x,L.ensureState("select").style=m,St(L,w,A,T),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),g.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,r,i,n){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new JT;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var v=t.getViewRect().clone(),c=t.getRoamTransform();v.applyTransform(c);var h=Math.max(v.x,0),f=Math.max(v.y,0),p=Math.min(v.width+v.x,n.getWidth()),d=Math.min(v.height+v.y,n.getHeight()),g=p-h,y=d-f,x=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],m=l.mapArray(x,function(w,A,T){var C=t.dataToPoint([w,A]);return C[0]-=h,C[1]-=f,C.push(T),C}),S=i.getExtent(),b=i.type==="visualMap.continuous"?tC(S,i.option.range):QT(S,i.getPieceList(),i.option.selected);u.update(m,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var _=new pe({style:{width:g,height:y,x:h,y:f,image:u.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(xt);const rC=eC;var aC=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return Ee(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=xp.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Tt);const iC=aC;function nC(a){a.registerChartView(rC),a.registerSeriesModel(iC)}var oC=["itemStyle","borderWidth"],Nc=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Po=new Xa,sC=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),v=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:v,valueDim:Nc[+v],categoryDim:Nc[1-+v]};o.diff(s).add(function(p){if(!!o.hasValue(p)){var d=zc(o,p),g=Oc(o,p,d,h),y=Gc(o,h,g);o.setItemGraphicEl(p,y),n.add(y),Fc(y,h,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){n.remove(g);return}var y=zc(o,p),x=Oc(o,p,y,h),m=wg(o,x);g&&m!==g.__pictorialShapeStr&&(n.remove(g),o.setItemGraphicEl(p,null),g=null),g?pC(g,h,x):g=Gc(o,h,x,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=x,n.add(g),Fc(g,h,x)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&Bc(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var f=t.get("clip",!0)?ti(t.coordinateSystem,!1,t):null;return f?n.setClipPath(f):n.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,r){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){Bc(n,et(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(xt);function Oc(a,e,t,r){var i=a.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,v=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),h={dataIndex:e,layout:i,itemModel:t,symbolType:a.getItemVisual(e,"symbol")||"circle",style:a.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:v,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};lC(t,n,i,r,h),uC(a,e,i,n,o,h.boundingLength,h.pxSign,v,r,h),vC(t,h.symbolScale,u,r,h);var f=h.symbolSize,p=xr(t.get("symbolOffset"),f);return cC(t,f,i,n,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function lC(a,e,t,r,i){var n=r.valueDim,o=a.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),v;if(B(o)){var c=[Ro(s,o[0])-l,Ro(s,o[1])-l];c[1]<c[0]&&c.reverse(),v=c[u]}else o!=null?v=Ro(s,o)-l:e?v=r.coordSysExtent[n.index][u]-l:v=t[n.wh];i.boundingLength=v,e&&(i.repeatCutLength=t[n.wh]),i.pxSign=v>0?1:-1}function Ro(a,e){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(e)))}function uC(a,e,t,r,i,n,o,s,l,u){var v=l.valueDim,c=l.categoryDim,h=Math.abs(t[c.wh]),f=a.getItemVisual(e,"symbolSize"),p;B(f)?p=f.slice():f==null?p=["100%","100%"]:p=[f,f],p[c.index]=F(p[c.index],h),p[v.index]=F(p[v.index],r?h:Math.abs(n)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[v.index]*=(l.isHorizontal?-1:1)*o}function vC(a,e,t,r,i){var n=a.get(oC)||0;n&&(Po.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Po.updateTransform(),n/=Po.getLineScale(),n*=e[r.valueDim.index]),i.valueLineWidth=n||0}function cC(a,e,t,r,i,n,o,s,l,u,v,c){var h=v.categoryDim,f=v.valueDim,p=c.pxSign,d=Math.max(e[f.index]+s,0),g=d;if(r){var y=Math.abs(l),x=Ft(a.get("symbolMargin"),"15%")+"",m=!1;x.lastIndexOf("!")===x.length-1&&(m=!0,x=x.slice(0,x.length-1));var S=F(x,e[f.index]),b=Math.max(d+S*2,0),_=m?0:S*2,w=Zm(r),A=w?r:Hc((y+_)/b),T=y-A*d;S=T/2/(m?A:Math.max(A-1,1)),b=d+S*2,_=m?0:S*2,!w&&r!=="fixed"&&(A=u?Hc((Math.abs(u)+_)/b):0),g=A*b-_,c.repeatTimes=A,c.symbolMargin=S}var C=p*(g/2),I=c.pathPosition=[];I[h.index]=t[h.wh]/2,I[f.index]=o==="start"?C:o==="end"?l-C:l/2,n&&(I[0]+=n[0],I[1]+=n[1]);var L=c.bundlePosition=[];L[h.index]=t[h.xy],L[f.index]=t[f.xy];var M=c.barRectShape=$({},t);M[f.wh]=p*Math.max(Math.abs(t[f.wh]),Math.abs(I[f.index]+C)),M[h.wh]=t[h.wh];var P=c.clipShape={};P[h.xy]=-t[h.xy],P[h.wh]=v.ecSize[h.wh],P[f.xy]=0,P[f.wh]=t[f.wh]}function mg(a){var e=a.symbolPatternSize,t=Et(a.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function xg(a,e,t,r){var i=a.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,v=0,c=n[e.valueDim.index]+o+t.symbolMargin*2;for(Nl(a,function(d){d.__pictorialAnimationIndex=v,d.__pictorialRepeatTimes=u,v<u?Br(d,null,p(v),t,r):Br(d,null,{scaleX:0,scaleY:0},t,r,function(){i.remove(d)}),v++});v<u;v++){var h=mg(t);h.__pictorialAnimationIndex=v,h.__pictorialRepeatTimes=u,i.add(h);var f=p(v);Br(h,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},t,r)}function p(d){var g=s.slice(),y=t.pxSign,x=d;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(x=u-1-d),g[l.index]=c*(x-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function Sg(a,e,t,r){var i=a.__pictorialBundle,n=a.__pictorialMainPath;n?Br(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(n=a.__pictorialMainPath=mg(t),i.add(n),Br(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function bg(a,e,t){var r=$({},e.barRectShape),i=a.__pictorialBarRect;i?Br(i,null,{shape:r},e,t):(i=a.__pictorialBarRect=new ft({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,a.add(i))}function _g(a,e,t,r){if(t.symbolClip){var i=a.__pictorialClipPath,n=$({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)ct(i,{shape:n},s,l);else{n[o.wh]=0,i=new ft({shape:n}),a.__pictorialBundle.setClipPath(i),a.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],Sr[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function zc(a,e){var t=a.getItemModel(e);return t.getAnimationDelayParams=hC,t.isAnimationEnabled=fC,t}function hC(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function fC(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Gc(a,e,t,r){var i=new Y,n=new Y;return i.add(n),i.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?xg(i,e,t):Sg(i,e,t),bg(i,t,r),_g(i,e,t,r),i.__pictorialShapeStr=wg(a,t),i.__pictorialSymbolMeta=t,i}function pC(a,e,t){var r=t.animationModel,i=t.dataIndex,n=a.__pictorialBundle;ct(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,i),t.symbolRepeat?xg(a,e,t,!0):Sg(a,e,t,!0),bg(a,t,!0),_g(a,e,t,!0)}function Bc(a,e,t,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var n=[];Nl(r,function(o){n.push(o)}),r.__pictorialMainPath&&n.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),D(n,function(o){Wr(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),a.setItemGraphicEl(e,null)}function wg(a,e){return[a.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Nl(a,e,t){D(a.__pictorialBundle.children(),function(r){r!==a.__pictorialBarRect&&e.call(t,r)})}function Br(a,e,t,r,i,n){e&&a.attr(e),r.symbolClip&&!i?t&&a.attr(t):t&&Sr[i?"updateProps":"initProps"](a,t,r.animationModel,r.dataIndex,n)}function Fc(a,e,t){var r=t.dataIndex,i=t.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),v=n.get("focus"),c=n.get("blurScope"),h=n.get("scale");Nl(a,function(d){if(d instanceof pe){var g=d.style;d.useStyle($({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,h&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var f=e.valueDim.posDesc[+(t.boundingLength>0)],p=a.__pictorialBarRect;p.ignoreClip=!0,Wt(p,zt(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Xr(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:f}),St(a,v,c,n.get("disabled"))}function Hc(a){var e=Math.round(a);return Math.abs(a-e)<1e-4?e:Math.ceil(a)}const dC=sC;var gC=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,a.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Qe(Xi.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Xi);const yC=gC;function mC(a){a.registerChartView(dC),a.registerSeriesModel(yC),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,J(ep,"pictorialBar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,tp("pictorialBar"))}var xC=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),v=u.rect,c=u.boundaryGap;s.x=0,s.y=v.y+c[0];function h(g){return g.name}var f=new Ke(this._layersSeries||[],l,h,h),p=[];f.add(Z(d,this,"add")).update(Z(d,this,"update")).remove(Z(d,this,"remove")).execute();function d(g,y,x){var m=o._layers;if(g==="remove"){s.remove(m[y]);return}for(var S=[],b=[],_,w=l[y].indices,A=0;A<w.length;A++){var T=n.getItemLayout(w[A]),C=T.x,I=T.y0,L=T.y;S.push(C,I),b.push(C,I+L),_=n.getItemVisual(w[A],"style")}var M,P=n.getItemLayout(w[0]),R=t.getModel("label"),k=R.get("margin"),N=t.getModel("emphasis");if(g==="add"){var V=p[y]=new Y;M=new jp({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),V.add(M),s.add(V),t.isAnimationEnabled()&&M.setClipPath(SC(M.getBoundingRect(),t,function(){M.removeClipPath()}))}else{var V=m[x];M=V.childAt(0),s.add(V),p[y]=V,ct(M,{shape:{points:S,stackedOnPoints:b}},t),fe(M)}Wt(M,zt(t),{labelDataIndex:w[A-1],defaultText:n.getName(w[A-1]),inheritColor:_.fill},{normal:{verticalAlign:"middle"}}),M.setTextConfig({position:null,local:!0});var O=M.getTextContent();O&&(O.x=P.x-k,O.y=P.y0+P.y/2),M.useStyle(_),n.setItemGraphicEl(y,M),$t(M,t),St(M,N.get("focus"),N.get("blurScope"),N.get("disabled"))}this._layersSeries=l,this._layers=p},e.type="themeRiver",e}(xt);function SC(a,e,t){var r=new ft({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return bt(r,{shape:{x:a.x-50,width:a.width+100,height:a.height+20}},e,t),r}const bC=xC;var ko=2,_C=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ai(Z(this.getData,this),Z(this.getRawData,this))},e.prototype.fixData=function(t){var r=t.length,i={},n=vs(t,function(h){return i.hasOwnProperty(h[0]+"")||(i[h[0]+""]=-1),h[2]}),o=[];n.buckets.each(function(h,f){o.push({name:f,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,v=0;v<o[l].dataList.length;++v){var c=o[l].dataList[v][0]+"";i[c]=l}for(var c in i)i.hasOwnProperty(c)&&i[c]!==l&&(i[c]=l,t[r]=[c,0,u],r++)}return t},e.prototype.getInitialData=function(t,r){for(var i=this.getReferringComponents("singleAxis",ee).models[0],n=i.get("type"),o=Jt(t.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=nt(),v=0,c=0;c<s.length;++c)l.push(s[c][ko]),u.get(s[c][ko])||(u.set(s[c][ko],v),v++);var h=mn(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:cs(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,f=new te(h,this);return f.initData(s),f},e.prototype.getLayerSeries=function(){for(var t=this.getData(),r=t.count(),i=[],n=0;n<r;++n)i[n]=n;var o=t.mapDimension("single"),s=vs(i,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,v){u.sort(function(c,h){return t.get(o,c)-t.get(o,h)}),l.push({name:v,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,r,i){B(t)||(t=t?[t]:[]);for(var n=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,v=0;v<l;++v){for(var c=Number.MAX_VALUE,h=-1,f=o[v].indices.length,p=0;p<f;++p){var d=n.get(t[0],o[v].indices[p]),g=Math.abs(d-r);g<=c&&(u=d,c=g,h=o[v].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=n.getName(t),s=n.get(n.mapDimension("value"),t);return Ut("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Tt);const wC=_C;function AC(a,e){a.eachSeriesByType("themeRiver",function(t){var r=t.getData(),i=t.coordinateSystem,n={},o=i.getRect();n.rect=o;var s=t.get("boundaryGap"),l=i.getAxis();if(n.boundaryGap=s,l.orient==="horizontal"){s[0]=F(s[0],o.height),s[1]=F(s[1],o.height);var u=o.height-s[0]-s[1];Wc(r,t,u)}else{s[0]=F(s[0],o.width),s[1]=F(s[1],o.width);var v=o.width-s[0]-s[1];Wc(r,t,v)}r.setLayout("layoutInfo",n)})}function Wc(a,e,t){if(!!a.count())for(var r=e.coordinateSystem,i=e.getLayerSeries(),n=a.mapDimension("single"),o=a.mapDimension("value"),s=G(i,function(g){return G(g.indices,function(y){var x=r.dataToPoint(a.get(n,y));return x[1]=a.get(o,y),x})}),l=TC(s),u=l.y0,v=t/l.max,c=i.length,h=i[0].indices.length,f,p=0;p<h;++p){f=u[p]*v,a.setItemLayout(i[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:f,y:s[0][p][1]*v});for(var d=1;d<c;++d)f+=s[d-1][p][1]*v,a.setItemLayout(i[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:f,y:s[d][p][1]*v})}}function TC(a){for(var e=a.length,t=a[0].length,r=[],i=[],n=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=a[l][o][1];s>n&&(n=s),r.push(s)}for(var u=0;u<t;++u)i[u]=(n-r[u])/2;n=0;for(var v=0;v<t;++v){var c=r[v]+i[v];c>n&&(n=c)}return{y0:i,max:n}}function CC(a){a.registerChartView(bC),a.registerSeriesModel(wC),a.registerLayout(AC),a.registerProcessor(ri("themeRiver"))}var DC=2,IC=4,LC=function(a){E(e,a);function e(t,r,i,n){var o=a.call(this)||this;o.z2=DC,o.textConfig={inside:!0},et(o).seriesIndex=r.seriesIndex;var s=new vt({z2:IC,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,i,n),o}return e.prototype.updateData=function(t,r,i,n,o){this.node=r,r.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;et(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),v=r.getLayout(),c=$({},v);c.label=null;var h=r.getVisual("style");h.lineJoin="bevel";var f=r.getVisual("decal");f&&(h.decal=An(f,o));var p=cr(l.getModel("itemStyle"),c,!0);$(c,p),D(La,function(x){var m=s.ensureState(x),S=l.getModel([x,"itemStyle"]);m.style=S.getItemStyle();var b=cr(S,c);b&&(m.shape=b)}),t?(s.setShape(c),s.shape.r=v.r0,bt(s,{shape:{r:v.r}},i,r.dataIndex)):(ct(s,{shape:c},i),fe(s)),s.useStyle(h),this._updateLabel(i);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;St(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,i=this.node.getModel(),n=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),v=Math.sin(l),c=this,h=c.getTextContent(),f=this.node.dataIndex,p=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!d,D(Um,function(y){var x=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),m=y==="normal",S=m?h:h.ensureState(y),b=t.getFormattedLabel(f,y);m&&(b=b||r.node.name),S.style=gt(x,{},null,y!=="normal",!0),b&&(S.style.text=b);var _=x.get("show");_!=null&&!m&&(S.ignore=!_);var w=g(x,"position"),A=m?c:c.states[y],T=A.style.fill;A.textConfig={outsideFill:x.get("color")==="inherit"?T:null,inside:w!=="outside"};var C,I=g(x,"distance")||0,L=g(x,"align"),M=g(x,"rotate"),P=Math.PI*.5,R=Math.PI*1.5,k=li(M==="tangential"?Math.PI/2-l:l),N=k>P&&!Pa(k-P)&&k<R;w==="outside"?(C=o.r+I,L=N?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?C=0:C=(o.r+o.r0)/2,L="center"):L==="left"?(C=o.r0+I,L=N?"right":"left"):L==="right"&&(C=o.r-I,L=N?"left":"right"),S.style.align=L,S.style.verticalAlign=g(x,"verticalAlign")||"middle",S.x=C*u+o.cx,S.y=C*v+o.cy;var V=0;M==="radial"?V=li(-l)+(N?Math.PI:0):M==="tangential"?V=li(Math.PI/2-l)+(N?Math.PI:0):Yt(M)&&(V=M*Math.PI/180),S.rotation=li(V)});function g(y,x){var m=y.get(x);return m==null?n.get(x):m}h.dirtyStyle()},e}(ue);const $c=LC;var Vs="sunburstRootToNode",Zc="sunburstHighlight",MC="sunburstUnhighlight";function PC(a){a.registerAction({type:Vs,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(i,n){var o=Oa(e,[Vs],i);if(o){var s=i.getViewRoot();s&&(e.direction=bl(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),a.registerAction({type:Zc,update:"none"},function(e,t,r){e=$({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(n){var o=Oa(e,[Zc],n);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction($(e,{type:"highlight"}))}),a.registerAction({type:MC,update:"updateView"},function(e,t,r){e=$({},e),r.dispatchAction($(e,{type:"downplay"}))})}var RC=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){var o=this;this.seriesModel=t,this.api=i,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),v=this.group,c=t.get("renderLabelForZeroData"),h=[];u.eachNode(function(x){h.push(x)});var f=this._oldChildren||[];p(h,f),y(l,u),this._initEvents(),this._oldChildren=h;function p(x,m){if(x.length===0&&m.length===0)return;new Ke(m,x,S,S).add(b).update(b).remove(J(b,null)).execute();function S(_){return _.getId()}function b(_,w){var A=_==null?null:x[_],T=w==null?null:m[w];d(A,T)}}function d(x,m){if(!c&&x&&!x.getValue()&&(x=null),x!==l&&m!==l){if(m&&m.piece)x?(m.piece.updateData(!1,x,t,r,i),s.setItemGraphicEl(x.dataIndex,m.piece)):g(m);else if(x){var S=new $c(x,t,r,i);v.add(S),s.setItemGraphicEl(x.dataIndex,S)}}}function g(x){!x||x.piece&&(v.remove(x.piece),x.piece=null)}function y(x,m){m.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,x,t,r,i):(o.virtualPiece=new $c(x,t,r,i),v.add(o.virtualPiece)),m.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(m.parentNode)})):o.virtualPiece&&(v.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!i&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var v=l.get("target",!0)||"_blank";Wi(u,v)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Vs,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var i=r.getData(),n=i.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(xt);const kC=RC;var EC=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};Ag(i);var n=this._levelModels=G(t.levels||[],function(l){return new Rt(l,this,r)},this),o=Sl.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,v){var c=o.getNodeByDataIndex(v),h=n[c.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=kn(i,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Md(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Tt);function Ag(a){var e=0;D(a.children,function(r){Ag(r);var i=r.value;B(i)&&(i=i[0]),e+=i});var t=a.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(a.value)?a.value[0]=t:a.value=t}const VC=EC;var Uc=Math.PI/180;function NC(a,e,t){e.eachSeriesByType(a,function(r){var i=r.get("center"),n=r.get("radius");B(n)||(n=[0,n]),B(i)||(i=[i,i]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=F(i[0],o),v=F(i[1],s),c=F(n[0],l/2),h=F(n[1],l/2),f=-r.get("startAngle")*Uc,p=r.get("minAngle")*Uc,d=r.getData().tree.root,g=r.getViewRoot(),y=g.depth,x=r.get("sort");x!=null&&Tg(g,x);var m=0;D(g.children,function(k){!isNaN(k.getValue())&&m++});var S=g.getValue(),b=Math.PI/(S||m)*2,_=g.depth>0,w=g.height-(_?-1:1),A=(h-c)/(w||1),T=r.get("clockwise"),C=r.get("stillShowZeroSum"),I=T?1:-1,L=function(k,N){if(!!k){var V=N;if(k!==d){var O=k.getValue(),z=S===0&&C?b:O*b;z<p&&(z=p),V=N+I*z;var H=k.depth-y-(_?-1:1),q=c+A*H,j=c+A*(H+1),X=r.getLevelModel(k);if(X){var at=X.get("r0",!0),ot=X.get("r",!0),rt=X.get("radius",!0);rt!=null&&(at=rt[0],ot=rt[1]),at!=null&&(q=F(at,l/2)),ot!=null&&(j=F(ot,l/2))}k.setLayout({angle:z,startAngle:N,endAngle:V,clockwise:T,cx:u,cy:v,r0:q,r:j})}if(k.children&&k.children.length){var U=0;D(k.children,function(ut){U+=L(ut,N+U)})}return V-N}};if(_){var M=c,P=c+A,R=Math.PI*2;d.setLayout({angle:R,startAngle:f,endAngle:f+R,clockwise:T,cx:u,cy:v,r0:M,r:P})}L(g,f)})}function Tg(a,e){var t=a.children||[];a.children=OC(t,e),t.length&&D(a.children,function(r){Tg(r,e)})}function OC(a,e){if(it(e)){var t=G(a,function(i,n){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:n}});return t.sort(function(i,n){return e(i.params,n.params)}),G(t,function(i){return a[i.index]})}else{var r=e==="asc";return a.sort(function(i,n){var o=(i.getValue()-n.getValue())*(r?1:-1);return o===0?(i.dataIndex-n.dataIndex)*(r?-1:1):o})}}function zC(a){var e={};function t(r,i,n){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&K(s)&&(s=Ym(s,(r.depth-1)/(n-1)*.5)),s}a.eachSeriesByType("sunburst",function(r){var i=r.getData(),n=i.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,n.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");$(u,l)})})}function GC(a){a.registerChartView(kC),a.registerSeriesModel(VC),a.registerLayout(J(NC,"sunburst")),a.registerProcessor(J(ri,"sunburst")),a.registerVisual(zC),PC(a)}var Yc={color:"fill",borderColor:"stroke"},BC={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Le=Ct(),FC=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return Ee(null,this)},e.prototype.getDataParams=function(t,r,i){var n=a.prototype.getDataParams.call(this,t,r);return i&&(n.info=Le(i).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Tt);const HC=FC;function WC(a,e){return e=e||[0,0],G(["x","y"],function(t,r){var i=this.getAxis(t),n=e[r],o=a[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function $C(a){var e=a.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:Z(WC,a)}}}function ZC(a,e){return e=e||[0,0],G([0,1],function(t){var r=e[t],i=a[t]/2,n=[],o=[];return n[t]=r-i,o[t]=r+i,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function UC(a){var e=a.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:a.getZoom()},api:{coord:function(t){return a.dataToPoint(t)},size:Z(ZC,a)}}}function YC(a,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,i=(a instanceof Array?a[0]:a)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-i)-t.dataToCoord(r+i))}function XC(a){var e=a.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:Z(YC,a)}}}function KC(a,e){return e=e||[0,0],G(["Radius","Angle"],function(t,r){var i="get"+t+"Axis",n=this[i](),o=e[r],s=a[r]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function qC(a){var e=a.getRadiusAxis(),t=a.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:r[1],r0:r[0]},api:{coord:function(i){var n=e.dataToRadius(i[0]),o=t.dataToAngle(i[1]),s=a.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:Z(KC,a)}}}function jC(a){var e=a.getRect(),t=a.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,i){return a.dataToPoint(r,i)}}}}function Cg(a,e,t,r){return a&&(a.legacy||a.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||W(a,"text")))}function Dg(a,e,t){var r=a,i,n,o;if(e==="text")o=r;else{o={},W(r,"text")&&(o.text=r.text),W(r,"rich")&&(o.rich=r.rich),W(r,"textFill")&&(o.fill=r.textFill),W(r,"textStroke")&&(o.stroke=r.textStroke),W(r,"fontFamily")&&(o.fontFamily=r.fontFamily),W(r,"fontSize")&&(o.fontSize=r.fontSize),W(r,"fontStyle")&&(o.fontStyle=r.fontStyle),W(r,"fontWeight")&&(o.fontWeight=r.fontWeight),n={type:"text",style:o,silent:!0},i={};var s=W(r,"textPosition");t?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),W(r,"textPosition")&&(i.position=r.textPosition),W(r,"textOffset")&&(i.offset=r.textOffset),W(r,"textRotation")&&(i.rotation=r.textRotation),W(r,"textDistance")&&(i.distance=r.textDistance)}return Xc(o,a),D(o.rich,function(l){Xc(l,l)}),{textConfig:i,textContent:n}}function Xc(a,e){!e||(e.font=e.textFont||e.font,W(e,"textStrokeWidth")&&(a.lineWidth=e.textStrokeWidth),W(e,"textAlign")&&(a.align=e.textAlign),W(e,"textVerticalAlign")&&(a.verticalAlign=e.textVerticalAlign),W(e,"textLineHeight")&&(a.lineHeight=e.textLineHeight),W(e,"textWidth")&&(a.width=e.textWidth),W(e,"textHeight")&&(a.height=e.textHeight),W(e,"textBackgroundColor")&&(a.backgroundColor=e.textBackgroundColor),W(e,"textPadding")&&(a.padding=e.textPadding),W(e,"textBorderColor")&&(a.borderColor=e.textBorderColor),W(e,"textBorderWidth")&&(a.borderWidth=e.textBorderWidth),W(e,"textBorderRadius")&&(a.borderRadius=e.textBorderRadius),W(e,"textBoxShadowColor")&&(a.shadowColor=e.textBoxShadowColor),W(e,"textBoxShadowBlur")&&(a.shadowBlur=e.textBoxShadowBlur),W(e,"textBoxShadowOffsetX")&&(a.shadowOffsetX=e.textBoxShadowOffsetX),W(e,"textBoxShadowOffsetY")&&(a.shadowOffsetY=e.textBoxShadowOffsetY))}function Kc(a,e,t){var r=a;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var i=r.textPosition.indexOf("inside")>=0,n=a.fill||"#000";qc(r,e);var o=r.textFill==null;return i?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=n),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=a.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,D(e.rich,function(s){qc(s,s)}),r}function qc(a,e){!e||(W(e,"fill")&&(a.textFill=e.fill),W(e,"stroke")&&(a.textStroke=e.fill),W(e,"lineWidth")&&(a.textStrokeWidth=e.lineWidth),W(e,"font")&&(a.font=e.font),W(e,"fontStyle")&&(a.fontStyle=e.fontStyle),W(e,"fontWeight")&&(a.fontWeight=e.fontWeight),W(e,"fontSize")&&(a.fontSize=e.fontSize),W(e,"fontFamily")&&(a.fontFamily=e.fontFamily),W(e,"align")&&(a.textAlign=e.align),W(e,"verticalAlign")&&(a.textVerticalAlign=e.verticalAlign),W(e,"lineHeight")&&(a.textLineHeight=e.lineHeight),W(e,"width")&&(a.textWidth=e.width),W(e,"height")&&(a.textHeight=e.height),W(e,"backgroundColor")&&(a.textBackgroundColor=e.backgroundColor),W(e,"padding")&&(a.textPadding=e.padding),W(e,"borderColor")&&(a.textBorderColor=e.borderColor),W(e,"borderWidth")&&(a.textBorderWidth=e.borderWidth),W(e,"borderRadius")&&(a.textBorderRadius=e.borderRadius),W(e,"shadowColor")&&(a.textBoxShadowColor=e.shadowColor),W(e,"shadowBlur")&&(a.textBoxShadowBlur=e.shadowBlur),W(e,"shadowOffsetX")&&(a.textBoxShadowOffsetX=e.shadowOffsetX),W(e,"shadowOffsetY")&&(a.textBoxShadowOffsetY=e.shadowOffsetY),W(e,"textShadowColor")&&(a.textShadowColor=e.textShadowColor),W(e,"textShadowBlur")&&(a.textShadowBlur=e.textShadowBlur),W(e,"textShadowOffsetX")&&(a.textShadowOffsetX=e.textShadowOffsetX),W(e,"textShadowOffsetY")&&(a.textShadowOffsetY=e.textShadowOffsetY))}var Ig={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},jc=Pt(Ig);fp(ka,function(a,e){return a[e]=1,a},{});ka.join(", ");var rn=["","style","shape","extra"],jr=Ct();function Ol(a,e,t,r,i){var n=a+"Animation",o=ja(a,r,i)||{},s=jr(e).userDuring;return o.duration>0&&(o.during=s?Z(rD,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=a),$(o,t[n]),o}function ki(a,e,t,r){r=r||{};var i=r.dataIndex,n=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=jr(a),u=e.style;l.userDuring=e.during;var v={},c={};if(iD(a,e,c),Qc("shape",e,c),Qc("extra",e,c),!n&&s&&(aD(a,e,v),Jc("shape",a,e,v),Jc("extra",a,e,v),nD(a,e,u,v)),c.style=u,JC(a,c,o),tD(a,e),s)if(n){var h={};D(rn,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(h[p]=h[p]||{}),$(p?h[p]:h,d.enterFrom))});var f=Ol("enter",a,e,t,i);f.duration>0&&a.animateFrom(h,f)}else QC(a,e,i||0,t,v);Lg(a,e),u?a.dirty():a.markRedraw()}function Lg(a,e){for(var t=jr(a).leaveToProps,r=0;r<rn.length;r++){var i=rn[r],n=i?e[i]:e;n&&n.leaveTo&&(t||(t=jr(a).leaveToProps={}),i&&(t[i]=t[i]||{}),$(i?t[i]:t,n.leaveTo))}}function Nn(a,e,t,r){if(a){var i=a.parent,n=jr(a).leaveToProps;if(n){var o=Ol("update",a,e,t,0);o.done=function(){i.remove(a),r&&r()},a.animateTo(n,o)}else i.remove(a),r&&r()}}function dr(a){return a==="all"}function JC(a,e,t){var r=e.style;if(!a.isGroup&&r){if(t){a.useStyle({});for(var i=a.animators,n=0;n<i.length;n++){var o=i[n];o.targetName==="style"&&o.changeTarget(a.style)}}a.setStyle(r)}e&&(e.style=null,e&&a.attr(e),e.style=r)}function QC(a,e,t,r,i){if(i){var n=Ol("update",a,e,r,t);n.duration>0&&a.animateFrom(i,n)}}function tD(a,e){W(e,"silent")&&(a.silent=e.silent),W(e,"ignore")&&(a.ignore=e.ignore),a instanceof gr&&W(e,"invisible")&&(a.invisible=e.invisible),a instanceof It&&W(e,"autoBatch")&&(a.autoBatch=e.autoBatch)}var me={},eD={setTransform:function(a,e){return me.el[a]=e,this},getTransform:function(a){return me.el[a]},setShape:function(a,e){var t=me.el,r=t.shape||(t.shape={});return r[a]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(a){var e=me.el.shape;if(e)return e[a]},setStyle:function(a,e){var t=me.el,r=t.style;return r&&(r[a]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(a){var e=me.el.style;if(e)return e[a]},setExtra:function(a,e){var t=me.el.extra||(me.el.extra={});return t[a]=e,this},getExtra:function(a){var e=me.el.extra;if(e)return e[a]}};function rD(){var a=this,e=a.el;if(!!e){var t=jr(e).userDuring,r=a.userDuring;if(t!==r){a.el=a.userDuring=null;return}me.el=e,r(eD)}}function Jc(a,e,t,r){var i=t[a];if(!!i){var n=e[a],o;if(n){var s=t.transition,l=i.transition;if(l)if(!o&&(o=r[a]={}),dr(l))$(o,n);else for(var u=jt(l),v=0;v<u.length;v++){var c=u[v],h=n[c];o[c]=h}else if(dr(s)||yt(s,a)>=0){!o&&(o=r[a]={});for(var f=Pt(n),v=0;v<f.length;v++){var c=f[v],h=n[c];oD(i[c],h)&&(o[c]=h)}}}}}function Qc(a,e,t){var r=e[a];if(!!r)for(var i=t[a]={},n=Pt(r),o=0;o<n.length;o++){var s=n[o];i[s]=Xm(r[s])}}function aD(a,e,t){for(var r=e.transition,i=dr(r)?ka:jt(r||[]),n=0;n<i.length;n++){var o=i[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=a[o];t[o]=s}}}function iD(a,e,t){for(var r=0;r<jc.length;r++){var i=jc[r],n=Ig[i],o=e[i];o&&(t[n[0]]=o[0],t[n[1]]=o[1])}for(var r=0;r<ka.length;r++){var s=ka[r];e[s]!=null&&(t[s]=e[s])}}function nD(a,e,t,r){if(!!t){var i=a.style,n;if(i){var o=t.transition,s=e.transition;if(o&&!dr(o)){var l=jt(o);!n&&(n=r.style={});for(var u=0;u<l.length;u++){var v=l[u],c=i[v];n[v]=c}}else if(a.getAnimationStyleProps&&(dr(s)||dr(o)||yt(s,"style")>=0)){var h=a.getAnimationStyleProps(),f=h?h.style:null;if(f){!n&&(n=r.style={});for(var p=Pt(t),u=0;u<p.length;u++){var v=p[u];if(f[v]){var c=i[v];n[v]=c}}}}}}}function oD(a,e){return bp(a)?a!==e:a!=null&&isFinite(a)}var Mg=Ct(),sD=["percent","easing","shape","style","extra"];function Pg(a){a.stopAnimation("keyframe"),a.attr(Mg(a))}function an(a,e,t){if(!(!t.isAnimationEnabled()||!e)){if(B(e)){D(e,function(s){an(a,s,t)});return}var r=e.keyframes,i=e.duration;if(t&&i==null){var n=ja("enter",t,0);i=n&&n.duration}if(!(!r||!i)){var o=Mg(a);D(rn,function(s){if(!(s&&!a[s])){var l;r.sort(function(u,v){return u.percent-v.percent}),D(r,function(u){var v=a.animators,c=s?u[s]:u;if(!!c){var h=Pt(c);if(s||(h=Jt(h,function(d){return yt(sD,d)<0})),!!h.length){l||(l=a.animate(s,e.loop,!0),l.scope="keyframe");for(var f=0;f<v.length;f++)v[f]!==l&&v[f].targetName===l.targetName&&v[f].stopTracks(h);s&&(o[s]=o[s]||{});var p=s?o[s]:o;D(h,function(d){p[d]=((s?a[s]:a)||{})[d]}),l.whenWithKeys(i*u.percent,c,h,u.easing)}}}),l&&l.delay(e.delay||0).duration(i).start(e.easing)}})}}}var Me="emphasis",We="normal",zl="blur",Gl="select",je=[We,Me,zl,Gl],Eo={normal:["itemStyle"],emphasis:[Me,"itemStyle"],blur:[zl,"itemStyle"],select:[Gl,"itemStyle"]},Vo={normal:["label"],emphasis:[Me,"label"],blur:[zl,"label"],select:[Gl,"label"]},lD=["x","y"],uD="e\0\0",ne={normal:{},emphasis:{},blur:{},select:{}},vD={cartesian2d:$C,geo:UC,single:XC,polar:qC,calendar:jC};function Ns(a){return a instanceof It}function Os(a){return a instanceof gr}function cD(a,e){e.copyTransform(a),Os(e)&&Os(a)&&(e.setStyle(a.style),e.z=a.z,e.z2=a.z2,e.zlevel=a.zlevel,e.invisible=a.invisible,e.ignore=a.ignore,Ns(e)&&Ns(a)&&e.setShape(a.shape))}var hD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=th(t,s,r,i);o||l.removeAll(),s.diff(o).add(function(c){No(i,null,c,u(c,n),t,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&Nn(h,Le(h).option,t)}).update(function(c,h){var f=o.getItemGraphicEl(h);No(i,f,c,u(c,n),t,l,s)}).execute();var v=t.get("clip",!0)?ti(t.coordinateSystem,!1,t):null;v?l.setClipPath(v):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,r,i){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,r,i,n,o){var s=r.getData(),l=th(r,s,i,n),u=this._progressiveEls=[];function v(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var h=No(null,null,c,l(c,o),r,this.group,s);h&&(h.traverse(v),u.push(h))}},e.prototype.eachRendered=function(t){ta(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,r,i,n){var o=r.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},e.type="custom",e}(xt);const fD=hD;function Bl(a){var e=a.type,t;if(e==="path"){var r=a.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,n=Eg(r);t=qm(n,null,i,r.layout||"center"),Le(t).customPathData=n}else if(e==="image")t=new pe({}),Le(t).customImagePath=a.style.image;else if(e==="text")t=new vt({});else if(e==="group")t=new Y;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=wp(e);if(!o){var s="";wt(s)}t=new o}return Le(t).customGraphicType=e,t.name=a.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Fl(a,e,t,r,i,n,o){Pg(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=lD);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;W(u,"textFill")&&(u.fill=u.textFill),W(u,"textStroke")&&(u.stroke=u.textStroke)}var v=void 0,c=Ns(e)?l.decal:null;a&&c&&(c.dirty=!0,v=An(c,a)),l.__decalPattern=v}if(Os(e)&&l){var v=l.__decalPattern;v&&(l.decal=v)}ki(e,r,n,{dataIndex:t,isInit:o,clearStyle:!0}),an(e,r.keyframeAnimation,n)}function Rg(a,e,t,r,i){var n=e.isGroup?null:e,o=i&&i[a].cfg;if(n){var s=n.ensureState(a);if(r===!1){var l=n.getState(a);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),Yr(n)}}function pD(a,e,t){if(!a.isGroup){var r=a,i=t.currentZ,n=t.currentZLevel;r.z=i,r.zlevel=n;var o=e.z2;o!=null&&(r.z2=o||0);for(var s=0;s<je.length;s++)dD(r,e,je[s])}}function dD(a,e,t){var r=t===We,i=r?e:nn(e,t),n=i?i.z2:null,o;n!=null&&(o=r?a:a.ensureState(t),o.z2=n||0)}function th(a,e,t,r){var i=a.get("renderItem"),n=a.coordinateSystem,o={};n&&(o=n.prepareCustoms?n.prepareCustoms(n):vD[n.type](n));for(var s=Q({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:S,style:_,ordinalRawValue:b,styleEmphasis:w,visual:C,barLayout:I,currentSeriesIndices:L,font:M},o.api||{}),l={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:gD(a.getData())},u,v,c={},h={},f={},p={},d=0;d<je.length;d++){var g=je[d];f[g]=a.getModel(Eo[g]),p[g]=a.getModel(Vo[g])}function y(P){return P===u?v||(v=e.getItemModel(P)):e.getItemModel(P)}function x(P,R){return e.hasItemOption?P===u?c[R]||(c[R]=y(P).getModel(Eo[R])):y(P).getModel(Eo[R]):f[R]}function m(P,R){return e.hasItemOption?P===u?h[R]||(h[R]=y(P).getModel(Vo[R])):y(P).getModel(Vo[R]):p[R]}return function(P,R){return u=P,v=null,c={},h={},i&&i(Q({dataIndexInside:P,dataIndex:e.getRawIndex(P),actionType:R?R.type:null},l),s)};function S(P,R){return R==null&&(R=u),e.getStore().get(e.getDimensionIndex(P||0),R)}function b(P,R){R==null&&(R=u),P=P||0;var k=e.getDimensionInfo(P);if(!k){var N=e.getDimensionIndex(P);return N>=0?e.getStore().get(N,R):void 0}var V=e.get(k.name,R),O=k&&k.ordinalMeta;return O?O.categories[V]:V}function _(P,R){R==null&&(R=u);var k=e.getItemVisual(R,"style"),N=k&&k.fill,V=k&&k.opacity,O=x(R,We).getItemStyle();N!=null&&(O.fill=N),V!=null&&(O.opacity=V);var z={inheritColor:K(N)?N:"#000"},H=m(R,We),q=gt(H,null,z,!1,!0);q.text=H.getShallow("show")?At(a.getFormattedLabel(R,We),Xr(e,R)):null;var j=Au(H,z,!1);return T(P,O),O=Kc(O,q,j),P&&A(O,P),O.legacy=!0,O}function w(P,R){R==null&&(R=u);var k=x(R,Me).getItemStyle(),N=m(R,Me),V=gt(N,null,null,!0,!0);V.text=N.getShallow("show")?ea(a.getFormattedLabel(R,Me),a.getFormattedLabel(R,We),Xr(e,R)):null;var O=Au(N,null,!0);return T(P,k),k=Kc(k,V,O),P&&A(k,P),k.legacy=!0,k}function A(P,R){for(var k in R)W(R,k)&&(P[k]=R[k])}function T(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function C(P,R){if(R==null&&(R=u),W(Yc,P)){var k=e.getItemVisual(R,"style");return k?k[Yc[P]]:null}if(W(BC,P))return e.getItemVisual(R,P)}function I(P){if(n.type==="cartesian2d"){var R=n.getBaseAxis();return Km(Q({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function M(P){return _p(P,t)}}function gD(a){var e={};return D(a.dimensions,function(t){var r=a.getDimensionInfo(t);if(!r.isExtraCoord){var i=r.coordDim,n=e[i]=e[i]||[];n[r.coordDimIndex]=a.getDimensionIndex(t)}}),e}function No(a,e,t,r,i,n,o){if(!r){n.remove(e);return}var s=Hl(a,e,t,r,i,n);return s&&o.setItemGraphicEl(t,s),s&&St(s,r.focus,r.blurScope,r.emphasisDisabled),s}function Hl(a,e,t,r,i,n){var o=-1,s=e;e&&kg(e,r,i)&&(o=yt(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Bl(r),s&&cD(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ne.normal.cfg=ne.normal.conOpt=ne.emphasis.cfg=ne.emphasis.conOpt=ne.blur.cfg=ne.blur.conOpt=ne.select.cfg=ne.select.conOpt=null,ne.isLegacy=!1,mD(u,t,r,i,l,ne),yD(u,t,r,i,l),Fl(a,u,t,r,ne,i,l),W(r,"info")&&(Le(u).info=r.info);for(var v=0;v<je.length;v++){var c=je[v];if(c!==We){var h=nn(r,c),f=Wl(r,h,c);Rg(c,u,h,f,ne)}}return pD(u,r,i),r.type==="group"&&xD(a,u,t,r,i),o>=0?n.replaceAt(u,o):n.add(u),u}function kg(a,e,t){var r=Le(a),i=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&wD(n)&&Eg(n)!==r.customPathData||i==="image"&&W(o,"image")&&o.image!==r.customImagePath}function yD(a,e,t,r,i){var n=t.clipPath;if(n===!1)a&&a.getClipPath()&&a.removeClipPath();else if(n){var o=a.getClipPath();o&&kg(o,n,r)&&(o=null),o||(o=Bl(n),a.setClipPath(o)),Fl(null,o,e,n,null,r,i)}}function mD(a,e,t,r,i,n){if(!a.isGroup){eh(t,null,n),eh(t,Me,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var v=a.getTextContent();if(o===!1)v&&a.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},v?v.clearStates():(v=Bl(o),a.setTextContent(v)),Fl(null,v,e,o,null,r,i);for(var c=o&&o.style,h=0;h<je.length;h++){var f=je[h];if(f!==We){var p=n[f].conOpt;Rg(f,v,p,Wl(o,p,f),null)}}c?v.dirty():v.markRedraw()}}}}function eh(a,e,t){var r=e?nn(a,e):a,i=e?Wl(a,r,Me):a.style,n=a.type,o=r?r.textConfig:null,s=a.textContent,l=s?e?nn(s,e):s:null;if(i&&(t.isLegacy||Cg(i,n,!!o,!!l))){t.isLegacy=!0;var u=Dg(i,n,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var v=l;!v.type&&(v.type="text")}var c=e?t[e]:t.normal;c.cfg=o,c.conOpt=l}function nn(a,e){return e?a?a[e]:null:a}function Wl(a,e,t){var r=e&&e.style;return r==null&&t===Me&&a&&(r=a.styleEmphasis),r}function xD(a,e,t,r,i){var n=r.children,o=n?n.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){bD({api:a,oldChildren:e.children()||[],newChildren:n||[],dataIndex:t,seriesModel:i,group:e});return}u&&e.removeAll();for(var v=0;v<o;v++){var c=n[v],h=e.childAt(v);c?(c.ignore==null&&(c.ignore=!1),Hl(a,h,t,c,i,e)):h.ignore=!0}for(var f=e.childCount()-1;f>=v;f--){var p=e.childAt(f);SD(e,p,i)}}}function SD(a,e,t){e&&Nn(e,Le(a).option,t)}function bD(a){new Ke(a.oldChildren,a.newChildren,rh,rh,a).add(ah).update(ah).remove(_D).execute()}function rh(a,e){var t=a&&a.name;return t!=null?t:uD+e}function ah(a,e){var t=this.context,r=a!=null?t.newChildren[a]:null,i=e!=null?t.oldChildren[e]:null;Hl(t.api,i,t.dataIndex,r,t.seriesModel,t.group)}function _D(a){var e=this.context,t=e.oldChildren[a];t&&Nn(t,Le(t).option,e.seriesModel)}function Eg(a){return a&&(a.pathData||a.d)}function wD(a){return a&&(W(a,"pathData")||W(a,"d"))}function AD(a){a.registerChartView(fD),a.registerSeriesModel(HC)}var lr=Ct(),ih=lt,Oo=Z,TD=function(){function a(){this._dragging=!1,this.animationThreshold=15}return a.prototype.render=function(e,t,r,i){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!i&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,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,n,e,t,r);var v=u.graphicKey;v!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=v;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Y,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var h=J(nh,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}sh(s,t,!0),this._renderHandle(n)}},a.prototype.remove=function(e){this.clear(e)},a.prototype.dispose=function(e){this.clear(e)},a.prototype.determineAnimation=function(e,t){var r=t.get("animation"),i=e.axis,n=i.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(n&&i.getBandWidth()>s)return!0;if(o){var l=pl(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},a.prototype.makeElOption=function(e,t,r,i,n){},a.prototype.createPointerEl=function(e,t,r,i){var n=t.pointer;if(n){var o=lr(e).pointerEl=new Sr[n.type](ih(t.pointer));e.add(o)}},a.prototype.createLabelEl=function(e,t,r,i){if(t.label){var n=lr(e).labelEl=new vt(ih(t.label));e.add(n),oh(n,i)}},a.prototype.updatePointerEl=function(e,t,r){var i=lr(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),r(i,{shape:t.pointer.shape}))},a.prototype.updateLabelEl=function(e,t,r,i){var n=lr(e).labelEl;n&&(n.setStyle(t.label.style),r(n,{x:t.label.x,y:t.label.y}),oh(n,i))},a.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),i=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Dn(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ye(u.event)},onmousedown:Oo(this._onHandleDragMove,this,0,0),drift:Oo(this._onHandleDragMove,this),ondragend:Oo(this._onHandleDragEnd,this)}),r.add(i)),sh(i,t,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");B(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,aa(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},a.prototype._moveHandleToValue=function(e,t){nh(this._axisPointerModel,!t&&this._moveAnimation,this._handle,zo(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},a.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(!!r){this._dragging=!0;var i=this.updateHandleTransform(zo(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(zo(i)),lr(r).lastProp=null,this._doDispatchAxisPointer()}},a.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},a.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},a.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,i=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Ra(this,"_doDispatchAxisPointer")},a.prototype.doClear=function(){},a.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},a}();function nh(a,e,t,r){Vg(lr(t).lastProp,r)||(lr(t).lastProp=r,e?ct(t,r,a):(t.stopAnimation(),t.attr(r)))}function Vg(a,e){if(_t(a)&&_t(e)){var t=!0;return D(e,function(r,i){t=t&&Vg(a[i],r)}),!!t}else return a===e}function oh(a,e){a[e.get(["label","show"])?"show":"hide"]()}function zo(a){return{x:a.x||0,y:a.y||0,rotation:a.rotation||0}}function sh(a,e,t){var r=e.get("z"),i=e.get("zlevel");a&&a.traverse(function(n){n.type!=="group"&&(r!=null&&(n.z=r),i!=null&&(n.zlevel=i),n.silent=t)})}const $l=TD;function Zl(a){var e=a.get("type"),t=a.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function Ng(a,e,t,r,i){var n=t.get("value"),o=Og(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=In(s.get("padding")||0),u=s.getFont(),v=ol(o,u),c=i.position,h=v.width+l[1]+l[3],f=v.height+l[0]+l[2],p=i.align;p==="right"&&(c[0]-=h),p==="center"&&(c[0]-=h/2);var d=i.verticalAlign;d==="bottom"&&(c[1]-=f),d==="middle"&&(c[1]-=f/2),CD(c,h,f,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),a.label={x:c[0],y:c[1],style:gt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function CD(a,e,t,r){var i=r.getWidth(),n=r.getHeight();a[0]=Math.min(a[0]+e,i)-e,a[1]=Math.min(a[1]+t,n)-t,a[0]=Math.max(a[0],0),a[1]=Math.max(a[1],0)}function Og(a,e,t,r,i){a=e.scale.parse(a);var n=e.scale.getLabel({value:a},{precision:i.precision}),o=i.formatter;if(o){var s={value:Ap(e,{value:a}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};D(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),v=l.dataIndexInside,c=u&&u.getDataParams(v);c&&s.seriesData.push(c)}),K(o)?n=o.replace("{value}",n):it(o)&&(n=o(s))}return n}function Ul(a,e,t){var r=br();return ra(r,r,t.rotation),Xe(r,r,t.position),Ie([a.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function zg(a,e,t,r,i,n){var o=Re.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),Ng(e,r,i,n,{position:Ul(r.axis,a,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Yl(a,e,t){return t=t||0,{x1:a[t],y1:a[1-t],x2:e[t],y2:e[1-t]}}function Gg(a,e,t){return t=t||0,{x:a[t],y:a[1-t],width:e[t],height:e[1-t]}}function lh(a,e,t,r,i,n){return{cx:a,cy:e,r0:t,r,startAngle:i,endAngle:n,clockwise:!0}}var DD=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),v=uh(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var h=Zl(n),f=ID[u](s,c,v);f.style=h,t.graphicKey=f.type,t.pointer=f}var p=xs(l.model,i);zg(r,t,p,i,n,o)},e.prototype.getHandleTransform=function(t,r,i){var n=xs(r.axis.grid.model,r,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=Ul(r.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,n){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=uh(s,o).getOtherAxis(o).getGlobalExtent(),v=o.dim==="x"?0:1,c=[t.x,t.y];c[v]+=r[v],c[v]=Math.min(l[1],c[v]),c[v]=Math.max(l[0],c[v]);var h=(u[1]+u[0])/2,f=[h,h];f[v]=c[v];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:f,tooltipOption:p[v]}},e}($l);function uh(a,e){var t={};return t[e.dim+"AxisIndex"]=e.index,a.getCartesian(t)}var ID={line:function(a,e,t){var r=Yl([e,t[0]],[e,t[1]],vh(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,t){var r=Math.max(1,a.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:Gg([e-r/2,t[0]],[r,i],vh(a))}}};function vh(a){return a.dim==="x"?0:1}const LD=DD;var MD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Lt);const PD=MD;var De=Ct(),RD=D;function Bg(a,e,t){if(!qt.node){var r=e.getZr();De(r).records||(De(r).records={}),kD(r,e);var i=De(r).records[a]||(De(r).records[a]={});i.handler=t}}function kD(a,e){if(De(a).initialized)return;De(a).initialized=!0,t("click",J(ch,"click")),t("mousemove",J(ch,"mousemove")),t("globalout",VD);function t(r,i){a.on(r,function(n){var o=ND(e);RD(De(a).records,function(s){s&&i(s,n,o.dispatchAction)}),ED(o.pendings,e)})}}function ED(a,e){var t=a.showTip.length,r=a.hideTip.length,i;t?i=a.showTip[t-1]:r&&(i=a.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function VD(a,e,t){a.handler("leave",null,t)}function ch(a,e,t,r){e.handler(a,t,r)}function ND(a){var e={showTip:[],hideTip:[]},t=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=t,a.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function zs(a,e){if(!qt.node){var t=e.getZr(),r=(De(t).records||{})[a];r&&(De(t).records[a]=null)}}var OD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=r.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";Bg("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){zs("axisPointer",r)},e.prototype.dispose=function(t,r){zs("axisPointer",r)},e.type="axisPointer",e}(Vt);const zD=OD;function Fg(a,e){var t=[],r=a.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var n=i.getData(),o=is(n,a);if(o==null||o<0||B(o))return{point:[]};var s=n.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(a.isStacked){var u=l.getBaseAxis(),v=l.getOtherAxis(u),c=v.dim,h=u.dim,f=c==="x"||c==="radius"?1:0,p=n.mapDimension(h),d=[];d[f]=n.get(p,o),d[1-f]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues(G(l.dimensions,function(y){return n.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var hh=Ct();function GD(a,e,t){var r=a.currTrigger,i=[a.x,a.y],n=a,o=a.dispatchAction||Z(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Ei(i)&&(i=Fg({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=Ei(i),u=n.axesInfo,v=s.axesInfo,c=r==="leave"||Ei(i),h={},f={},p={list:[],map:{}},d={showPointer:J(FD,f),showTooltip:J(HD,p)};D(s.coordSysMap,function(y,x){var m=l||y.containPoint(i);D(s.coordSysAxesInfo[x],function(S,b){var _=S.axis,w=UD(u,S);if(!c&&m&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=_.pointToData(i)),A!=null&&fh(S,A,d,!1,h)}})});var g={};return D(v,function(y,x){var m=y.linkGroup;m&&!f[x]&&D(m.axesInfo,function(S,b){var _=f[b];if(S!==y&&_){var w=_.value;m.mapper&&(w=y.axis.scale.parse(m.mapper(w,ph(S),ph(y)))),g[y.key]=w}})}),D(g,function(y,x){fh(v[x],y,d,!0,h)}),WD(f,v,h),$D(p,i,a,o),ZD(v,o,t),h}}function fh(a,e,t,r,i){var n=a.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!a.involveSeries){t.showPointer(a,e);return}var o=BD(e,a),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&$(i,s[0]),!r&&a.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(a,e,s),t.showTooltip(a,o,l)}}function BD(a,e){var t=e.axis,r=t.dim,i=a,n=[],o=Number.MAX_VALUE,s=-1;return D(e.seriesModels,function(l,u){var v=l.getData().mapDimensionsAll(r),c,h;if(l.getAxisTooltipData){var f=l.getAxisTooltipData(v,a,t);h=f.dataIndices,c=f.nestestValue}else{if(h=l.getData().indicesOfNearest(v[0],a,t.type==="category"?.5:null),!h.length)return;c=l.getData().get(v[0],h[0])}if(!(c==null||!isFinite(c))){var p=a-c,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,i=c,n.length=0),D(h,function(g){n.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:n,snapToValue:i}}function FD(a,e,t,r){a[e.key]={value:t,payloadBatch:r}}function HD(a,e,t,r){var i=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Na(l),v=a.map[u];v||(v=a.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},a.list.push(v)),v.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function WD(a,e,t){var r=t.axesInfo=[];D(e,function(i,n){var o=i.axisPointerModel.option,s=a[n];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function $D(a,e,t,r){if(Ei(e)||!a.list.length){r({type:"hideTip"});return}var i=((a.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:a.list})}function ZD(a,e,t){var r=t.getZr(),i="axisPointerLastHighlights",n=hh(r)[i]||{},o=hh(r)[i]={};D(a,function(u,v){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&D(c.seriesDataIndices,function(h){var f=h.seriesIndex+" | "+h.dataIndex;o[f]=h})});var s=[],l=[];D(n,function(u,v){!o[v]&&l.push(u)}),D(o,function(u,v){!n[v]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function UD(a,e){for(var t=0;t<(a||[]).length;t++){var r=a[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function ph(a){var e=a.axis.model,t={},r=t.axisDim=a.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function Ei(a){return!a||a[0]==null||isNaN(a[0])||a[1]==null||isNaN(a[1])}function oi(a){wr.registerAxisPointerClass("CartesianAxisPointer",LD),a.registerComponentModel(PD),a.registerComponentView(zD),a.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=WS(e,t)}),a.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},GD)}function YD(a){tt(yd),tt(oi)}var XD=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,n,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),v=u.getExtent(),c=s.dataToCoord(r),h=n.get("type");if(h&&h!=="none"){var f=Zl(n),p=qD[h](s,l,c,v);p.style=f,t.graphicKey=p.type,t.pointer=p}var d=n.get(["label","margin"]),g=KD(r,i,n,l,d);Ng(t,i,n,o,g)},e}($l);function KD(a,e,t,r,i){var n=e.axis,o=n.dataToCoord(a),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,v,c;if(n.dim==="radius"){var h=br();ra(h,h,s),Xe(h,h,[r.cx,r.cy]),u=Ie([o,-i],h);var f=e.getModel("axisLabel").get("rotate")||0,p=Re.innerTextLayout(s,f*Math.PI/180,-1);v=p.textAlign,c=p.textVerticalAlign}else{var d=l[1];u=r.coordToPoint([d+i,o]);var g=r.cx,y=r.cy;v=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:v,verticalAlign:c}}var qD={line:function(a,e,t,r){return a.dim==="angle"?{type:"Line",shape:Yl(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(a,e,t,r){var i=Math.max(1,a.getBandWidth()),n=Math.PI/180;return a.dim==="angle"?{type:"Sector",shape:lh(e.cx,e.cy,r[0],r[1],(-t-i/2)*n,(-t+i/2)*n)}:{type:"Sector",shape:lh(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}};const jD=XD;var JD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,i=this.ecModel;return i.eachComponent(t,function(n){n.getCoordSysModel()===this&&(r=n)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Lt);const QD=JD;var Xl=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ee).models[0]},e.type="polarAxis",e}(Lt);we(Xl,Ua);var tI=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Xl),eI=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Xl),Kl=function(a){E(e,a);function e(t,r){return a.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(ge);Kl.prototype.dataToRadius=ge.prototype.dataToCoord;Kl.prototype.radiusToData=ge.prototype.coordToData;const rI=Kl;var aI=Ct(),ql=function(a){E(e,a);function e(t,r){return a.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),i=t.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),v=ol(s==null?"":s+"",r.getFont(),"center","top"),c=Math.max(v.height,7),h=c/u;isNaN(h)&&(h=1/0);var f=Math.max(0,Math.floor(h)),p=aI(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-f)<=1&&Math.abs(g-o)<=1&&d>f?f=d:(p.lastTickCount=o,p.lastAutoInterval=f),f},e}(ge);ql.prototype.dataToAngle=ge.prototype.dataToCoord;ql.prototype.angleToData=ge.prototype.coordToData;const iI=ql;var Hg=["radius","angle"],nI=function(){function a(e){this.dimensions=Hg,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new rI,this._angleAxis=new iI,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return a.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},a.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},a.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},a.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},a.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&t.push(r),i.scale.type===e&&t.push(i),t},a.prototype.getAngleAxis=function(){return this._angleAxis},a.prototype.getRadiusAxis=function(){return this._radiusAxis},a.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},a.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},a.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},a.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},a.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),n=i.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,v=u<o?1:-1;u<o||u>s;)u+=v*360;return[l,u]},a.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*t+this.cx,n=-Math.sin(r)*t+this.cy;return[i,n]},a.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var i=e.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,v=l*l+u*u-1e-4,c=this.r,h=this.r0;return v<=c*c&&v>=h*h}}},a.prototype.convertToPixel=function(e,t,r){var i=dh(t);return i===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var i=dh(t);return i===this?this.pointToData(r):null},a}();function dh(a){var e=a.seriesModel,t=a.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const oI=nI;function sI(a,e,t){var r=e.get("center"),i=t.getWidth(),n=t.getHeight();a.cx=F(r[0],i),a.cy=F(r[1],n);var o=a.getRadiusAxis(),s=Math.min(i,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:B(l)||(l=[0,l]);var u=[F(l[0],s),F(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function lI(a,e){var t=this,r=t.getAngleAxis(),i=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),a.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();D(ns(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(ns(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Ur(r.scale,r.model),Ur(i.scale,i.model),r.type==="category"&&!r.onBand){var n=r.getExtent(),o=360/r.scale.count();r.inverse?n[1]+=o:n[1]-=o,r.setExtent(n[0],n[1])}}function uI(a){return a.mainType==="angleAxis"}function gh(a,e){var t;if(a.type=e.get("type"),a.scale=bn(e),a.onBand=e.get("boundaryGap")&&a.type==="category",a.inverse=e.get("inverse"),uI(e)){a.inverse=a.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=(t=e.get("endAngle"))!==null&&t!==void 0?t:r+(a.inverse?-360:360);a.setExtent(r,i)}e.axis=a,a.model=e}var vI={dimensions:Hg,create:function(a,e){var t=[];return a.eachComponent("polar",function(r,i){var n=new oI(i+"");n.update=lI;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");gh(o,l),gh(s,u),sI(n,r,e),t.push(n),r.coordinateSystem=n,n.model=r}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",ee).models[0];r.coordinateSystem=i.coordinateSystem}}),t}};const cI=vI;var hI=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function _i(a,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=a.coordToPoint([e[0],t]),i=a.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function wi(a){var e=a.getRadiusAxis();return e.inverse?0:1}function yh(a){var e=a[0],t=a[a.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&a.pop()}var fI=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,n=i.polar,o=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=G(i.getViewLabels(),function(v){v=lt(v);var c=i.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(v.tickValue):v.tickValue;return v.coord=i.dataToCoord(h),v});yh(u),yh(s),D(hI,function(v){t.get([v,"show"])&&(!i.scale.isBlank()||v==="axisLine")&&pI[v](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(wr),pI={axisLine:function(a,e,t,r,i,n){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),v=wi(t),c=v?0:1,h,f=Math.abs(u[1]-u[0])===360?"Circle":"Arc";n[c]===0?h=new Sr[f]({shape:{cx:t.cx,cy:t.cy,r:n[v],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new lp({shape:{cx:t.cx,cy:t.cy,r:n[v],r0:n[c]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,a.add(h)},axisTick:function(a,e,t,r,i,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[wi(t)],u=G(r,function(v){return new Kt({shape:_i(t,[l,l+s],v.coord)})});a.add(ce(u,{style:Q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(a,e,t,r,i,n){if(!!i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[wi(t)],v=[],c=0;c<i.length;c++)for(var h=0;h<i[c].length;h++)v.push(new Kt({shape:_i(t,[u,u+l],i[c][h].coord)}));a.add(ce(v,{style:Q(s.getModel("lineStyle").getLineStyle(),Q(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(a,e,t,r,i,n,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),v=e.get("triggerEvent");D(o,function(c,h){var f=l,p=c.tickValue,d=n[wi(t)],g=t.coordToPoint([d+u,c.coord]),y=t.cx,x=t.cy,m=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-x)/d<.3?"middle":g[1]>x?"top":"bottom";if(s&&s[p]){var b=s[p];_t(b)&&b.textStyle&&(f=new Rt(b.textStyle,l,l.ecModel))}var _=new vt({silent:Re.isLabelSilent(e),style:gt(f,{x:g[0],y:g[1],fill:f.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:m,verticalAlign:S})});if(a.add(_),v){var w=Re.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=c.rawLabel,et(_).eventData=w}},this)},splitLine:function(a,e,t,r,i,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],c=0;c<r.length;c++){var h=u++%l.length;v[h]=v[h]||[],v[h].push(new Kt({shape:_i(t,n,r[c].coord)}))}for(var c=0;c<v.length;c++)a.add(ce(v[c],{style:Q({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(a,e,t,r,i,n){if(!!i.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var v=0;v<i[u].length;v++)l.push(new Kt({shape:_i(t,n,i[u][v].coord)}));a.add(ce(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(a,e,t,r,i,n){if(!!r.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],c=Math.PI/180,h=-r[0].coord*c,f=Math.min(n[0],n[1]),p=Math.max(n[0],n[1]),d=e.get("clockwise"),g=1,y=r.length;g<=y;g++){var x=g===y?r[0].coord:r[g].coord,m=u++%l.length;v[m]=v[m]||[],v[m].push(new ue({shape:{cx:t.cx,cy:t.cy,r0:f,r:p,startAngle:h,endAngle:-x*c,clockwise:d},silent:!0})),h=-x*c}for(var g=0;g<v.length;g++)a.add(ce(v[g],{style:Q({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const dI=fI;var gI=["axisLine","axisTickLabel","axisName"],yI=["splitLine","splitArea","minorSplitLine"],mI=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,n=this._axisGroup=new Y;this.group.add(n);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),v=o.getMinorTicksCoords(),c=l.getExtent()[0],h=o.getExtent(),f=SI(s,t,c),p=new Re(t,f);D(gI,p.add,p),n.add(p.getGroup()),_n(i,n,t),D(yI,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&xI[d](this.group,t,s,c,h,u,v)},this)}},e.type="radiusAxis",e}(wr),xI={splitLine:function(a,e,t,r,i,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,v=t.getAngleAxis(),c=Math.PI/180,h=v.getExtent(),f=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],d=0;d<n.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new Sr[f]({shape:{cx:t.cx,cy:t.cy,r:Math.max(n[d].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:v.inverse}}))}for(var d=0;d<p.length;d++)a.add(ce(p[d],{style:Q({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(a,e,t,r,i,n,o){if(!!o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],v=0;v<o.length;v++)for(var c=0;c<o[v].length;c++)u.push(new Xa({shape:{cx:t.cx,cy:t.cy,r:o[v][c].coord}}));a.add(ce(u,{style:Q({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(a,e,t,r,i,n){if(!!n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],c=n[0].coord,h=1;h<n.length;h++){var f=u++%l.length;v[f]=v[f]||[],v[f].push(new ue({shape:{cx:t.cx,cy:t.cy,r0:c,r:n[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=n[h].coord}for(var h=0;h<v.length;h++)a.add(ce(v[h],{style:Q({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function SI(a,e,t){return{position:[a.cx,a.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const bI=mI;function Wg(a){return a.get("stack")||"__ec_stack_"+a.seriesIndex}function $g(a,e){return e.dim+a.model.componentIndex}function _I(a,e,t){var r={},i=wI(Jt(e.getSeriesByType(a),function(n){return!e.isSeriesFiltered(n)&&n.coordinateSystem&&n.coordinateSystem.type==="polar"}));e.eachSeriesByType(a,function(n){if(n.coordinateSystem.type==="polar"){var o=n.getData(),s=n.coordinateSystem,l=s.getBaseAxis(),u=$g(s,l),v=Wg(n),c=i[u][v],h=c.offset,f=c.width,p=s.getOtherAxis(l),d=n.coordinateSystem.cx,g=n.coordinateSystem.cy,y=n.get("barMinHeight")||0,x=n.get("barMinAngle")||0;r[v]=r[v]||[];for(var m=o.mapDimension(p.dim),S=o.mapDimension(l.dim),b=$r(o,m),_=l.dim!=="radius"||!n.get("roundCap",!0),w=p.dataToCoord(0),A=0,T=o.count();A<T;A++){var C=o.get(m,A),I=o.get(S,A),L=C>=0?"p":"n",M=w;b&&(r[v][I]||(r[v][I]={p:w,n:w}),M=r[v][I][L]);var P=void 0,R=void 0,k=void 0,N=void 0;if(p.dim==="radius"){var V=p.dataToCoord(C)-w,O=l.dataToCoord(I);Math.abs(V)<y&&(V=(V<0?-1:1)*y),P=M,R=M+V,k=O-h,N=k-f,b&&(r[v][I][L]=R)}else{var z=p.dataToCoord(C,_)-w,H=l.dataToCoord(I);Math.abs(z)<x&&(z=(z<0?-1:1)*x),P=H+h,R=P+f,k=M,N=M+z,b&&(r[v][I][L]=N)}o.setItemLayout(A,{cx:d,cy:g,r0:P,r:R,startAngle:-k*Math.PI/180,endAngle:-N*Math.PI/180,clockwise:k>=N})}}})}function wI(a){var e={};D(a,function(r,i){var n=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=$g(o,s),u=s.getExtent(),v=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),c=e[l]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;e[l]=c;var f=Wg(r);h[f]||c.autoWidthCount++,h[f]=h[f]||{width:0,maxWidth:0};var p=F(r.get("barWidth"),v),d=F(r.get("barMaxWidth"),v),g=r.get("barGap"),y=r.get("barCategoryGap");p&&!h[f].width&&(p=Math.min(c.remainedWidth,p),h[f].width=p,c.remainedWidth-=p),d&&(h[f].maxWidth=d),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var t={};return D(e,function(r,i){t[i]={};var n=r.stacks,o=r.bandWidth,s=F(r.categoryGap,o),l=F(r.gap,1),u=r.remainedWidth,v=r.autoWidthCount,c=(u-s)/(v+(v-1)*l);c=Math.max(c,0),D(n,function(d,g){var y=d.maxWidth;y&&y<c&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,v--)}),c=(u-s)/(v+(v-1)*l),c=Math.max(c,0);var h=0,f;D(n,function(d,g){d.width||(d.width=c),f=d,h+=d.width*(1+l)}),f&&(h-=f.width*l);var p=-h/2;D(n,function(d,g){t[i][g]=t[i][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),t}var AI={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},TI={splitNumber:5},CI=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Vt);function DI(a){tt(oi),wr.registerAxisPointerClass("PolarAxisPointer",jD),a.registerCoordinateSystem("polar",cI),a.registerComponentModel(QD),a.registerComponentView(CI),Kr(a,"angle",tI,AI),Kr(a,"radius",eI,TI),a.registerComponentView(dI),a.registerComponentView(bI),a.registerLayout(J(_I,"bar"))}function Gs(a,e){e=e||{};var t=a.coordinateSystem,r=a.axis,i={},n=r.position,o=r.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[n]:l[0],o==="horizontal"?u.horizontal[n]:l[3]];var v={horizontal:0,vertical:1};i.rotation=Math.PI/2*v[o];var c={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=c[n],a.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ft(e.labelInside,a.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var h=e.rotate;return h==null&&(h=a.get(["axisLabel","rotate"])),i.labelRotation=n==="top"?-h:h,i.z2=1,i}var II=["axisLine","axisTickLabel","axisName"],LI=["splitArea","splitLine"],MI=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,r,i,n){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Y;var l=Gs(t),u=new Re(t,l);D(II,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),D(LI,function(v){t.get([v,"show"])&&PI[v](this,this.group,this._axisGroup,t)},this),_n(s,this._axisGroup,t),a.prototype.render.call(this,t,r,i,n)},e.prototype.remove=function(){pd(this)},e.type="singleAxis",e}(wr),PI={splitLine:function(a,e,t,r){var i=r.axis;if(!i.scale.isBlank()){var n=r.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),v=i.isHorizontal(),c=[],h=0,f=i.getTicksCoords({tickModel:n}),p=[],d=[],g=0;g<f.length;++g){var y=i.toGlobalCoord(f[g].coord);v?(p[0]=y,p[1]=u.y,d[0]=y,d[1]=u.y+u.height):(p[0]=u.x,p[1]=y,d[0]=u.x+u.width,d[1]=y);var x=new Kt({shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},silent:!0});Ma(x.shape,l);var m=h++%s.length;c[m]=c[m]||[],c[m].push(x)}for(var S=o.getLineStyle(["color"]),g=0;g<c.length;++g)e.add(ce(c[g],{style:Q({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(a,e,t,r){fd(a,t,r,r)}};const RI=MI;var Zg=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Lt);we(Zg,Ua.prototype);const Go=Zg;var kI=function(a){E(e,a);function e(t,r,i,n,o){var s=a.call(this,t,r,i)||this;return s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,r){return this.coordinateSystem.pointToData(t)[0]},e}(ge);const EI=kI;var Ug=["single"],VI=function(){function a(e,t,r){this.type="single",this.dimension="single",this.dimensions=Ug,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var i=this.dimension,n=new EI(i,bn(e),[0,0],e.get("type"),e.get("position")),o=n.type==="category";n.onBand=o&&e.get("boundaryGap"),n.inverse=e.get("inverse"),n.orient=e.get("orient"),e.axis=n,n.model=e,n.coordinateSystem=this,this._axis=n},a.prototype.update=function(e,t){e.eachSeries(function(r){if(r.coordinateSystem===this){var i=r.getData();D(i.mapDimensionsAll(this.dimension),function(n){this._axis.scale.unionExtentFromData(i,n)},this),Ur(this._axis.scale,this._axis.model)}},this)},a.prototype.resize=function(e,t){this._rect=Gt({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},a.prototype.getRect=function(){return this._rect},a.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,r=t.isHorizontal(),i=r?[0,e.width]:[0,e.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),this._updateAxisTransform(t,r?e.x:e.y)},a.prototype._updateAxisTransform=function(e,t){var r=e.getExtent(),i=r[0]+r[1],n=e.isHorizontal();e.toGlobalCoord=n?function(o){return o+t}:function(o){return i-o+t},e.toLocalCoord=n?function(o){return o-t}:function(o){return i-o+t}},a.prototype.getAxis=function(){return this._axis},a.prototype.getBaseAxis=function(){return this._axis},a.prototype.getAxes=function(){return[this._axis]},a.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},a.prototype.containPoint=function(e){var t=this.getRect(),r=this.getAxis(),i=r.orient;return i==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},a.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},a.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),i=[],n=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[n]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-n]=n===0?r.y+r.height/2:r.x+r.width/2,i},a.prototype.convertToPixel=function(e,t,r){var i=mh(t);return i===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var i=mh(t);return i===this?this.pointToData(r):null},a}();function mh(a){var e=a.seriesModel,t=a.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function NI(a,e){var t=[];return a.eachComponent("singleAxis",function(r,i){var n=new VI(r,a,e);n.name="single_"+i,n.resize(r,e),r.coordinateSystem=n,t.push(n)}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",ee).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),t}var OI={create:NI,dimensions:Ug};const zI=OI;var xh=["x","y"],GI=["width","height"],BI=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,n,o){var s=i.axis,l=s.coordinateSystem,u=Bo(l,1-on(s)),v=l.dataToPoint(r)[0],c=n.get("type");if(c&&c!=="none"){var h=Zl(n),f=FI[c](s,v,u);f.style=h,t.graphicKey=f.type,t.pointer=f}var p=Gs(i);zg(r,t,p,i,n,o)},e.prototype.getHandleTransform=function(t,r,i){var n=Gs(r,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=Ul(r.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,n){var o=i.axis,s=o.coordinateSystem,l=on(o),u=Bo(s,l),v=[t.x,t.y];v[l]+=r[l],v[l]=Math.min(u[1],v[l]),v[l]=Math.max(u[0],v[l]);var c=Bo(s,1-l),h=(c[1]+c[0])/2,f=[h,h];return f[l]=v[l],{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},e}($l),FI={line:function(a,e,t){var r=Yl([e,t[0]],[e,t[1]],on(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,t){var r=a.getBandWidth(),i=t[1]-t[0];return{type:"Rect",shape:Gg([e-r/2,t[0]],[r,i],on(a))}}};function on(a){return a.isHorizontal()?0:1}function Bo(a,e){var t=a.getRect();return[t[xh[e]],t[xh[e]]+t[GI[e]]]}const HI=BI;var WI=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Vt);function $I(a){tt(oi),wr.registerAxisPointerClass("SingleAxisPointer",HI),a.registerComponentView(WI),a.registerComponentView(RI),a.registerComponentModel(Go),Kr(a,"single",Go,Go.defaultOption),a.registerCoordinateSystem("single",zI)}var ZI=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,i){var n=xn(t);a.prototype.init.apply(this,arguments),Sh(t,n)},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),Sh(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.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}},e}(Lt);function Sh(a,e){var t=a.cellSize,r;B(t)?r=t:r=a.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var i=G([0,1],function(n){return jm(e,n)&&(r[n]="auto"),r[n]!=null&&r[n]!=="auto"});Sn(a,e,{type:"box",ignoreSize:i})}const UI=ZI;var YI=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,r,i){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=r.start.time;u<=r.end.time;u=n.getNextNDay(u,1).time){var v=n.dataToRect([u],!1).tl,c=new ft({shape:{x:v[0],y:v[1],width:s,height:l},cursor:"default",style:o});i.add(c)}},e.prototype._renderLines=function(t,r,i,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),v=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=r.start,h=0;c.time<=r.end.time;h++){p(c.formatedDate),h===0&&(c=s.getDateInfo(r.start.y+"-"+r.start.m));var f=c.date;f.setMonth(f.getMonth()+1),c=s.getDateInfo(f)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,v,i),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,v,i),l,n)},e.prototype._getEdgesPoints=function(t,r,i){var n=[t[0].slice(),t[t.length-1].slice()],o=i==="horizontal"?0:1;return n[0][o]=n[0][o]-r/2,n[1][o]=n[1][o]+r/2,n},e.prototype._drawSplitline=function(t,r,i){var n=new de({z2:20,shape:{points:t},style:r});i.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,r,i){for(var n=t.coordinateSystem,o=n.getDateInfo(r),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),v=n.dataToRect([u.time],!1);s[2*u.day]=v.tl,s[2*u.day+1]=v[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return K(t)&&t?Jm(t,r):it(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,i,n,o){var s=r[0],l=r[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var v=0;return(n==="left"||n==="right")&&(v=Math.PI/2),{rotation:v,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,i,n){var o=t.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],v=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,f={top:[v,u[h][1]],bottom:[v,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var d=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(d,g),x=new vt({z2:30,style:gt(o,{text:y})});x.attr(this._yearTextPositionControl(x,f[l],i,l,s)),n.add(x)}},e.prototype._monthTextPositionControl=function(t,r,i,n,o){var s="left",l="top",u=t[0],v=t[1];return i==="horizontal"?(v=v+o,r&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),n==="start"&&(s="right")),{x:u,y:v,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,i,n){var o=t.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),v=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||K(s))&&(s&&(r=Tu(s)||r),s=r.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,f=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=v==="center",d=0;d<c[h].length-1;d++){var g=c[h][d].slice(),y=this._firstDayOfMonth[d];if(p){var x=this._firstDayPoints[d];g[f]=(x[f]+c[0][d+1][f])/2}var m=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},_=this._formatterLabel(m,b),w=new vt({z2:30,style:$(gt(o,{text:_}),this._monthTextPositionControl(g,p,i,u,l))});n.add(w)}}},e.prototype._weekTextPositionControl=function(t,r,i,n,o){var s="center",l="middle",u=t[0],v=t[1],c=i==="start";return r==="horizontal"?(u=u+n+(c?1:-1)*o[0]/2,s=c?"right":"left"):(v=v+n+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:v,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,r,i,n,o){var s=t.getModel("dayLabel");if(!!s.get("show")){var l=t.coordinateSystem,u=s.get("position"),v=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!v||K(v)){v&&(r=Tu(v)||r);var f=r.get(["time","dayOfWeekShort"]);v=f||G(r.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(i.end.time,7-i.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];c=F(c,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(i.start.time,-(7+i.fweek)).time,c=-c);for(var g=0;g<7;g++){var y=l.getNextNDay(p,g),x=l.dataToRect([y.time],!1).center,m=g;m=Math.abs((g+h)%7);var S=new vt({z2:30,style:$(gt(s,{text:v[m]}),this._weekTextPositionControl(x,n,u,c,d))});o.add(S)}}},e.type="calendar",e}(Vt);const XI=YI;var Fo=864e5,KI=function(){function a(e,t,r){this.type="calendar",this.dimensions=a.dimensions,this.getDimensionsInfo=a.getDimensionsInfo,this._model=e}return a.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},a.prototype.getRangeInfo=function(){return this._rangeInfo},a.prototype.getModel=function(){return this._model},a.prototype.getRect=function(){return this._rect},a.prototype.getCellWidth=function(){return this._sw},a.prototype.getCellHeight=function(){return this._sh},a.prototype.getOrient=function(){return this._orient},a.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},a.prototype.getDateInfo=function(e){e=Qm(e);var t=e.getFullYear(),r=e.getMonth()+1,i=r<10?"0"+r:""+r,n=e.getDate(),o=n<10?"0"+n:""+n,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},a.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},a.prototype.update=function(e,t){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 r=this._rangeInfo.weeks||1,i=["width","height"],n=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];D([0,1],function(c){v(n,c)&&(o[i[c]]=n[c]*s[c])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Gt(o,l);D([0,1],function(c){v(n,c)||(n[c]=u[i[c]]/s[c])});function v(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=n[0],this._sh=n[1]},a.prototype.dataToPoint=function(e,t){B(e)&&(e=e[0]),t==null&&(t=!0);var r=this.getDateInfo(e),i=this._rangeInfo,n=r.formatedDate;if(t&&!(r.time>=i.start.time&&r.time<i.end.time+Fo))return[NaN,NaN];var o=r.day,s=this._getRangeInfo([i.start.time,n]).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]},a.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},a.prototype.dataToRect=function(e,t){var r=this.dataToPoint(e,t);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},a.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,t-1,i):this._getDateByWeeksAndDay(t,r-1,i)},a.prototype.convertToPixel=function(e,t,r){var i=bh(t);return i===this?i.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var i=bh(t);return i===this?i.pointToData(r):null},a.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},a.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(B(e)&&e.length===1&&(e=e[0]),B(e))t=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(t=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),n=i.date;n.setMonth(n.getMonth()+1);var o=this.getNextNDay(n,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(t=[r,r])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},a.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var i=Math.floor(t[1].time/Fo)-Math.floor(t[0].time/Fo)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+i-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)i-=u,n.setDate(l-u);var v=Math.floor((i+t[0].day+6)/7),c=r?-v+1:v-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:v,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},a.prototype._getDateByWeeksAndDay=function(e,t,r){var i=this._getRangeInfo(r);if(e>i.weeks||e===0&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var n=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+n),this.getDateInfo(o)},a.create=function(e,t){var r=[];return e.eachComponent("calendar",function(i){var n=new a(i);r.push(n),i.coordinateSystem=n}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},a.dimensions=["time","value"],a}();function bh(a){var e=a.calendarModel,t=a.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const qI=KI;function jI(a){a.registerComponentModel(UI),a.registerComponentView(XI),a.registerCoordinateSystem("calendar",qI)}function JI(a,e){var t=a.existing;if(e.id=a.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function _h(a,e){var t;return D(e,function(r){a[r]!=null&&a[r]!=="auto"&&(t=!0)}),t}function QI(a,e,t){var r=$({},t),i=a[e],n=t.$action||"merge";n==="merge"?i?(dt(i,r,!0),Sn(i,r,{ignoreSize:!0}),e0(t,i),Ai(t,i),Ai(t,i,"shape"),Ai(t,i,"style"),Ai(t,i,"extra"),t.clipPath=i.clipPath):a[e]=r:n==="replace"?a[e]=r:n==="remove"&&i&&(a[e]=null)}var Yg=["transition","enterFrom","leaveTo"],tL=Yg.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Ai(a,e,t){if(t&&(!a[t]&&e[t]&&(a[t]={}),a=a[t],e=e[t]),!(!a||!e))for(var r=t?Yg:tL,i=0;i<r.length;i++){var n=r[i];a[n]==null&&e[n]!=null&&(a[n]=e[n])}}function eL(a,e){if(!!a&&(a.hv=e.hv=[_h(e,["left","right"]),_h(e,["top","bottom"])],a.type==="group")){var t=a,r=e;t.width==null&&(t.width=r.width=0),t.height==null&&(t.height=r.height=0)}}var rL=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,r){var i=this.option.elements;this.option.elements=null,a.prototype.mergeOption.call(this,t,r),this.option.elements=i},e.prototype.optionUpdated=function(t,r){var i=this.option,n=(r?i:t).elements,o=i.elements=r?[]:i.elements,s=[];this._flatten(n,s,null);var l=t0(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(v,c){var h=v.newOption;!h||(u.push(h),JI(v,h),QI(o,c,h),eL(o[c],h))},this),i.elements=Jt(o,function(v){return v&&delete v.$action,v!=null})},e.prototype._flatten=function(t,r,i){D(t,function(n){if(!!n){i&&(n.parentOption=i),r.push(n);var o=n.children;o&&o.length&&this._flatten(o,r,n),delete n.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Lt),wh={path:null,compoundPath:null,group:Y,image:pe,text:vt},oe=Ct(),aL=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=nt()},e.prototype.render=function(t,r,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},e.prototype._updateElements=function(t){var r=t.useElOptionsToUpdate();if(!!r){var i=this._elMap,n=this.group,o=t.get("z"),s=t.get("zlevel");D(r,function(l){var u=Ce(l.id,null),v=u!=null?i.get(u):null,c=Ce(l.parentId,null),h=c!=null?i.get(c):n,f=l.type,p=l.style;f==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&Cg(p,f,!!g,!!d)){var y=Dg(p,f,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var x=iL(l),m=l.$action||"merge",S=m==="merge",b=m==="replace";if(S){var _=!v,w=v;_?w=Ah(u,h,l.type,i):(w&&(oe(w).isNew=!1),Pg(w)),w&&(ki(w,x,t,{isInit:_}),Th(w,l,o,s))}else if(b){Vi(v,l,i,t);var A=Ah(u,h,l.type,i);A&&(ki(A,x,t,{isInit:!0}),Th(A,l,o,s))}else m==="remove"&&(Lg(v,l),Vi(v,l,i,t));var T=i.get(u);if(T&&d)if(S){var C=T.getTextContent();C?C.attr(d):T.setTextContent(new vt(d))}else b&&T.setTextContent(new vt(d));if(T){var I=l.clipPath;if(I){var L=I.type,M=void 0,_=!1;if(S){var P=T.getClipPath();_=!P||oe(P).type!==L,M=_?Bs(L):P}else b&&(_=!0,M=Bs(L));T.setClipPath(M),ki(M,I,t,{isInit:_}),an(M,I.keyframeAnimation,t)}var R=oe(T);T.setTextConfig(g),R.option=l,nL(T,t,l),Ya({el:T,componentModel:t,itemName:T.name,itemTooltipOption:l.tooltip}),an(T,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,r){for(var i=t.option.elements,n=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],v=0;v<i.length;v++){var c=i[v],h=Ce(c.id,null),f=h!=null?o.get(h):null;if(!(!f||!f.isGroup)){var p=f.parent,d=p===n,g=oe(f),y=oe(p);g.width=F(g.option.width,d?s:y.width)||0,g.height=F(g.option.height,d?l:y.height)||0}}for(var v=i.length-1;v>=0;v--){var c=i[v],h=Ce(c.id,null),f=h!=null?o.get(h):null;if(!!f){var p=f.parent,y=oe(p),x=p===n?{width:s,height:l}:{width:y.width,height:y.height},m={},S=Cn(f,c,x,null,{hv:c.hv,boundingMode:c.bounding},m);if(!oe(f).isNew&&S){for(var b=c.transition,_={},w=0;w<u.length;w++){var A=u[w],T=m[A];b&&(dr(b)||yt(b,A)>=0)?_[A]=T:f[A]=T}ct(f,_,t,0)}else f.attr(m)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(i){Vi(i,oe(i).option,r,t._lastGraphicModel)}),this._elMap=nt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Vt);function Bs(a){var e=W(wh,a)?wh[a]:wp(a),t=new e({});return oe(t).type=a,t}function Ah(a,e,t,r){var i=Bs(t);return e.add(i),r.set(a,i),oe(i).id=a,oe(i).isNew=!0,i}function Vi(a,e,t,r){var i=a&&a.parent;i&&(a.type==="group"&&a.traverse(function(n){Vi(n,e,t,r)}),Nn(a,e,r),t.removeKey(oe(a).id))}function Th(a,e,t,r){a.isGroup||D([["cursor",gr.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(i){var n=i[0];W(e,n)?a[n]=At(e[n],i[1]):a[n]==null&&(a[n]=i[1])}),D(Pt(e),function(i){if(i.indexOf("on")===0){var n=e[i];a[i]=it(n)?n:null}}),W(e,"draggable")&&(a.draggable=e.draggable),e.name!=null&&(a.name=e.name),e.id!=null&&(a.id=e.id)}function iL(a){return a=$({},a),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(r0),function(e){delete a[e]}),a}function nL(a,e,t){var r=et(a).eventData;!a.silent&&!a.ignore&&!r&&(r=et(a).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:a.name}),r&&(r.info=t.info)}function oL(a){a.registerComponentModel(rL),a.registerComponentView(aL),a.registerPreprocessor(function(e){var t=e.graphic;B(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Ch=["x","y","radius","angle","single"],sL=["cartesian2d","polar","singleAxis"];function lL(a){var e=a.get("coordinateSystem");return yt(sL,e)>=0}function $e(a){return a+"Axis"}function uL(a,e){var t=nt(),r=[],i=nt();a.eachComponent({mainType:"dataZoom",query:e},function(v){i.get(v.uid)||s(v)});var n;do n=!1,a.eachComponent("dataZoom",o);while(n);function o(v){!i.get(v.uid)&&l(v)&&(s(v),n=!0)}function s(v){i.set(v.uid,!0),r.push(v),u(v)}function l(v){var c=!1;return v.eachTargetAxis(function(h,f){var p=t.get(h);p&&p[f]&&(c=!0)}),c}function u(v){v.eachTargetAxis(function(c,h){(t.get(c)||t.set(c,[]))[h]=!0})}return r}function Xg(a){var e=a.ecModel,t={infoList:[],infoMap:nt()};return a.eachTargetAxis(function(r,i){var n=e.getComponent($e(r),i);if(!!n){var o=n.getCoordSysModel();if(!!o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}var Ho=function(){function a(){this.indexList=[],this.indexMap=[]}return a.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},a}(),vL=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,i){var n=Dh(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var r=Dh(t);dt(this.option,t,!0),dt(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(r[n[0]]=i[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=nt(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return D(Ch,function(i){var n=this.getReferringComponents($e(i),a0);if(!!n.specified){r=!0;var o=new Ho;D(n.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var i=this.ecModel,n=!0;if(n){var o=r==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=i.findComponents({mainType:"singleAxis",filter:function(v){return v.get("orient",!0)===r}});l(s,"single")}function l(u,v){var c=u[0];if(!!c){var h=new Ho;if(h.add(c.componentIndex),t.set(v,h),n=!1,v==="x"||v==="y"){var f=c.getReferringComponents("grid",ee).models[0];f&&D(u,function(p){c.componentIndex!==p.componentIndex&&f===p.getReferringComponents("grid",ee).models[0]&&h.add(p.componentIndex)})}}}n&&D(Ch,function(u){if(!!n){var v=i.findComponents({mainType:$e(u),filter:function(h){return h.get("type",!0)==="category"}});if(v[0]){var c=new Ho;c.add(v[0].componentIndex),t.set(u,c),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,i=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":i?r[o]=i[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,i){t==null&&(t=this.ecModel.getComponent($e(r),i))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(i,n){D(i.indexList,function(o){t.call(r,n,o)})})},e.prototype.getAxisProxy=function(t,r){var i=this.getAxisModel(t,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[r])return this.ecModel.getComponent($e(t),r)},e.prototype.setRawRange=function(t){var r=this.option,i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(r[n[0]]=i[n[0]]=t[n[0]],r[n[1]]=i[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;D(["start","startValue","end","endValue"],function(i){r[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var o=i[n],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;r||(r=u)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Lt);function Dh(a){var e={};return D(["start","end","startValue","endValue","throttle"],function(t){a.hasOwnProperty(t)&&(e[t]=a[t])}),e}const Ha=vL;var cL=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Ha);const hL=cL;var fL=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){this.dataZoomModel=t,this.ecModel=r,this.api=i},e.type="dataZoom",e}(Vt);const jl=fL;var pL=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(jl);const dL=pL;var Er=D,Ih=le,gL=function(){function a(e,t,r,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=r}return a.prototype.hostedBy=function(e){return this._dataZoomModel===e},a.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},a.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},a.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(lL(t)){var r=$e(this._dimName),i=t.getReferringComponents(r,ee).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}},this),e},a.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},a.prototype.getMinMaxSpan=function(){return lt(this._minMaxSpan)},a.prototype.calculateDataWindow=function(e){var t=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,n=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Er(["start","end"],function(h,f){var p=e[h],d=e[h+"Value"];n[f]==="percent"?(p==null&&(p=o[f]),d=i.parse(ht(p,o,t))):(u=!0,d=d==null?t[f]:i.parse(d),p=ht(d,t,o)),l[f]=d==null||isNaN(d)?t[f]:d,s[f]=p==null||isNaN(p)?o[f]:p}),Ih(l),Ih(s);var v=this._minMaxSpan;u?c(l,s,t,o,!1):c(s,l,o,t,!0);function c(h,f,p,d,g){var y=g?"Span":"ValueSpan";Ar(0,h,p,"all",v["min"+y],v["max"+y]);for(var x=0;x<2;x++)f[x]=ht(h[x],p,d,!0),g&&(f[x]=i.parse(f[x]))}return{valueWindow:l,percentWindow:s}},a.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=yL(this,this._dimName,t),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},a.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var r=this._dimName,i=this.getTargetSeriesModels(),n=e.get("filterMode"),o=this._valueWindow;if(n==="none")return;Er(i,function(l){var u=l.getData(),v=u.mapDimensionsAll(r);if(!!v.length){if(n==="weakFilter"){var c=u.getStore(),h=G(v,function(f){return u.getDimensionIndex(f)},u);u.filterSelf(function(f){for(var p,d,g,y=0;y<v.length;y++){var x=c.get(h[y],f),m=!isNaN(x),S=x<o[0],b=x>o[1];if(m&&!S&&!b)return!0;m&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else Er(v,function(f){if(n==="empty")l.setData(u=u.map(f,function(d){return s(d)?d:NaN}));else{var p={};p[f]=o,u.selectRange(p)}});Er(v,function(f){u.setApproximateExtent(o,f)})}});function s(l){return l>=o[0]&&l<=o[1]}},a.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;Er(["min","max"],function(i){var n=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=ht(r[0]+o,r,[0,100],!0):n!=null&&(o=ht(n,[0,100],r,!0)-r[0]),e[i+"Span"]=n,e[i+"ValueSpan"]=o},this)},a.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(!!t){var i=i0(r,[0,500]);i=Math.min(i,20);var n=e.axis.scale.rawExtentInfo;t[0]!==0&&n.setDeterminedMinMax("min",+r[0].toFixed(i)),t[1]!==100&&n.setDeterminedMinMax("max",+r[1].toFixed(i)),n.freeze()}},a}();function yL(a,e,t){var r=[1/0,-1/0];Er(t,function(o){n0(r,o.getData(),e)});var i=a.getAxisModel(),n=o0(i.axis.scale,i,r).calculate();return[n.min,n.max]}const mL=gL;var xL={getTargetSeries:function(a){function e(i){a.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=a.getComponent($e(o),s);i(o,s,l,n)})})}e(function(i,n,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new mL(i,n,s,a),t.push(o.__dzAxisProxy))});var r=nt();return D(t,function(i){D(i.getTargetSeriesModels(),function(n){r.set(n.uid,n)})}),r},overallReset:function(a,e){a.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).reset(t)}),t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).filterData(t,e)})}),a.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),n=r.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}};const SL=xL;function bL(a){a.registerAction("dataZoom",function(e,t){var r=uL(t,e);D(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Lh=!1;function Jl(a){Lh||(Lh=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,SL),bL(a),a.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function _L(a){a.registerComponentModel(hL),a.registerComponentView(dL),Jl(a)}var se=function(){function a(){}return a}(),Kg={};function Vr(a,e){Kg[a]=e}function qg(a){return Kg[a]}var wL=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){a.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;D(this.option.feature,function(r,i){var n=qg(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),dt(r,n.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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"}},e}(Lt);const AL=wL;function TL(a,e,t){var r=e.getBoxLayoutParams(),i=e.get("padding"),n={width:t.getWidth(),height:t.getHeight()},o=Gt(r,n,i);hr(e.get("orient"),a,e.get("itemGap"),o.width,o.height),Cn(a,r,n,i)}function jg(a,e){var t=In(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),a=new ft({shape:{x:a.x-t[3],y:a.y-t[0],width:a.width+t[1]+t[3],height:a.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),a}var CL=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},v=this._features||(this._features={}),c=[];D(u,function(p,d){c.push(d)}),new Ke(this._featureNames||[],c).add(h).update(h).remove(J(h,null)).execute(),this._featureNames=c;function h(p,d){var g=c[p],y=c[d],x=u[g],m=new Rt(x,t,t.ecModel),S;if(n&&n.newTitle!=null&&n.featureName===g&&(x.title=n.newTitle),g&&!y){if(DL(g))S={onclick:m.option.onclick,featureName:g};else{var b=qg(g);if(!b)return;S=new b}v[g]=S}else if(S=v[y],!S)return;S.uid=hp("toolbox-feature"),S.model=m,S.ecModel=r,S.api=i;var _=S instanceof se;if(!g&&y){_&&S.dispose&&S.dispose(r,i);return}if(!m.get("show")||_&&S.unusable){_&&S.remove&&S.remove(r,i);return}f(m,S,g),m.setIconStatus=function(w,A){var T=this.option,C=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[w]=A,C[w]&&(A==="emphasis"?Fr:Hr)(C[w])},S instanceof se&&S.render&&S.render(m,r,i,n)}function f(p,d,g){var y=p.getModel("iconStyle"),x=p.getModel(["emphasis","iconStyle"]),m=d instanceof se&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,_;K(m)?(b={},b[g]=m):b=m,K(S)?(_={},_[g]=S):_=S;var w=p.iconPaths={};D(b,function(A,T){var C=Dn(A,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var I=C.ensureState("emphasis");I.style=x.getItemStyle();var L=new vt({style:{text:_[T],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:_p({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},r)},ignore:!0});C.setTextContent(L),Ya({el:C,componentModel:t,itemName:T,formatterParamsExtra:{title:_[T]}}),C.__title=_[T],C.on("mouseover",function(){var M=x.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:x.get("textFill")||M.fill||M.stroke||"#000",backgroundColor:x.get("textBackgroundColor")}),C.setTextConfig({position:x.get("textPosition")||P}),L.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(p.get(["iconStatus",T])==="emphasis"?Fr:Hr)(C),o.add(C),C.on("click",Z(d.onclick,d,r,i,T)),w[T]=C})}TL(o,t,i),o.add(jg(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),x=p.getTextContent(),m=x&&x.ensureState("emphasis");if(m&&!it(m)&&d){var S=m.style||(m.style={}),b=ol(d,vt.makeFont(S)),_=p.x+o.x,w=p.y+o.y+s,A=!1;w+b.height>i.getHeight()&&(y.position="top",A=!0);var T=A?-5-b.height:s+10;_+b.width/2>i.getWidth()?(y.position=["100%",T],S.align="right"):_-b.width/2<0&&(y.position=[0,T],S.align="left")}})},e.prototype.updateView=function(t,r,i,n){D(this._features,function(o){o instanceof se&&o.updateView&&o.updateView(o.model,r,i,n)})},e.prototype.remove=function(t,r){D(this._features,function(i){i instanceof se&&i.remove&&i.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){D(this._features,function(i){i instanceof se&&i.dispose&&i.dispose(t,r)})},e.type="toolbox",e}(Vt);function DL(a){return a.indexOf("my")===0}const IL=CL;var LL=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=qt.browser;if(it(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var v=document.createElement("a");v.download=n+"."+s,v.target="_blank",v.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});v.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),f=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];f&&(p=window.atob(p));var d=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var x=new Blob([y]);window.navigator.msSaveOrOpenBlob(x,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var S=m.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var _=i.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',A=window.open();A.document.write(w),A.document.title=n}},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(se);const ML=LL;var Mh="__ec_magicType_stack__",PL=[["line","bar"],["stack"]],RL=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),i={};return D(t.get("type"),function(n){r[n]&&(i[n]=r[n])}),i},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,i){var n=this.model,o=n.get(["seriesIndex",i]);if(!!Ph[i]){var s={series:[]},l=function(c){var h=c.subType,f=c.id,p=Ph[i](h,f,c,n);p&&(Q(p,c.option),s.series.push(p));var d=c.coordinateSystem;if(d&&d.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,x=y+"Axis",m=c.getReferringComponents(x,ee).models[0],S=m.componentIndex;s[x]=s[x]||[];for(var b=0;b<=S;b++)s[x][S]=s[x][S]||{};s[x][S].boundaryGap=i==="bar"}}};D(PL,function(c){yt(c,i)>=0&&D(c,function(h){n.setIconStatus(h,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,v=i;i==="stack"&&(u=dt({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",i])!=="emphasis"&&(v="tiled")),r.dispatchAction({type:"changeMagicType",currentType:v,newOption:s,newTitle:u,featureName:"magicType"})}},e}(se),Ph={line:function(a,e,t,r){if(a==="bar")return dt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(a,e,t,r){if(a==="line")return dt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(a,e,t,r){var i=t.get("stack")===Mh;if(a==="line"||a==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),dt({id:e,stack:i?"":Mh},r.get(["option","stack"])||{},!0)}};wn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,e){e.mergeOption(a.newOption)});const kL=RL;var On=new Array(60).join("-"),Jr=" ";function EL(a){var e={},t=[],r=[];return a.eachRawSeries(function(i){var n=i.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function VL(a){var e=[];return D(a,function(t,r){var i=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(G(t.series,function(f){return f.name})),l=[i.model.getCategories()];D(t.series,function(f){var p=f.getRawData();l.push(f.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(Jr)],v=0;v<l[0].length;v++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][v]);u.push(c.join(Jr))}e.push(u.join(`
`))}),e.join(`
`+On+`
`)}function NL(a){return G(a,function(e){var t=e.getRawData(),r=[e.name],i=[];return t.each(t.dimensions,function(){for(var n=arguments.length,o=arguments[n-1],s=t.getName(o),l=0;l<n-1;l++)i[l]=arguments[l];r.push((s?s+Jr:"")+i.join(Jr))}),r.join(`
`)}).join(`
`+On+`
`)}function OL(a){var e=EL(a);return{value:Jt([VL(e.seriesGroupByCategoryAxis),NL(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
`+On+`
`),meta:e.meta}}function sn(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function zL(a){var e=a.slice(0,a.indexOf(`
`));if(e.indexOf(Jr)>=0)return!0}var Fs=new RegExp("["+Jr+"]+","g");function GL(a){for(var e=a.split(/\n+/g),t=sn(e.shift()).split(Fs),r=[],i=G(t,function(l){return{name:l,data:[]}}),n=0;n<e.length;n++){var o=sn(e[n]).split(Fs);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[n]=o[s])}return{series:i,categories:r}}function BL(a){for(var e=a.split(/\n+/g),t=sn(e.shift()),r=[],i=0;i<e.length;i++){var n=sn(e[i]);if(!!n){var o=n.split(Fs),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var v=0;v<o.length;v++)l.push(+o[v]);l.length===1&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:t,data:r}}function FL(a,e){var t=a.split(new RegExp(`
*`+On+`
*`,"g")),r={series:[]};return D(t,function(i,n){if(zL(i)){var o=GL(i),s=e[n],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=BL(i);r.series.push(o)}}),r}var HL=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var i=r.getDom(),n=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=n.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin:10px 20px",s.style.color=n.get("textColor");var u=document.createElement("div"),v=document.createElement("textarea");u.style.cssText="overflow:auto";var c=n.get("optionToContent"),h=n.get("contentToOption"),f=OL(t);if(it(c)){var p=c(r.getOption());K(p)?u.innerHTML=p:hs(p)&&u.appendChild(p)}else{v.readOnly=n.get("readOnly");var d=v.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=n.get("textColor"),d.borderColor=n.get("textareaBorderColor"),d.backgroundColor=n.get("textareaColor"),v.value=f.value,u.appendChild(v)}var g=f.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var x="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),S=document.createElement("div");x+=";background-color:"+n.get("buttonColor"),x+=";color:"+n.get("buttonTextColor");var b=this;function _(){i.removeChild(o),b._dom=null}Cu(m,"click",_),Cu(S,"click",function(){if(h==null&&c!=null||h!=null&&c==null){_();return}var w;try{it(h)?w=h(u,r.getOption()):w=FL(v.value,g)}catch(A){throw _(),new Error("Data view format error "+A)}w&&r.dispatchAction({type:"changeDataView",newOption:w}),_()}),m.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=m.style.cssText=x,!n.get("readOnly")&&y.appendChild(S),y.appendChild(m),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.remove=function(t,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e}(se);function WL(a,e){return G(a,function(t,r){var i=e&&e[r];if(_t(i)&&!B(i)){var n=_t(t)&&!B(t);n||(t={value:t});var o=i.name!=null&&t.name==null;return t=Q(t,i),o&&delete t.name,t}else return t})}wn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(a,e){var t=[];D(a.newOption.series,function(r){var i=e.getSeriesByName(r.name)[0];if(!i)t.push($({type:"scatter"},r));else{var n=i.get("data");t.push({name:r.name,data:WL(r.data,n)})}}),e.mergeOption(Q({series:t},a.newOption))});const $L=HL;var Jg=D,Qg=Ct();function ZL(a,e){var t=Ql(a);Jg(e,function(r,i){for(var n=t.length-1;n>=0;n--){var o=t[n];if(o[i])break}if(n<0){var s=a.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function UL(a){var e=Ql(a),t=e[e.length-1];e.length>1&&e.pop();var r={};return Jg(t,function(i,n){for(var o=e.length-1;o>=0;o--)if(i=e[o][n],i){r[n]=i;break}}),r}function YL(a){Qg(a).snapshots=null}function XL(a){return Ql(a).length}function Ql(a){var e=Qg(a);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var KL=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){YL(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(se);wn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(a,e){e.resetOption("recreate")});const qL=KL;var jL=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],JL=function(){function a(e,t,r){var i=this;this._targetInfoList=[];var n=Rh(t,e);D(QL,function(o,s){(!r||!r.include||yt(r.include,s)>=0)&&o(n,i._targetInfoList)})}return a.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,i,n){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var o=Wo[r.brushType](0,n,i);r.__rangeOffset={offset:Nh[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},a.prototype.matchOutputRanges=function(e,t,r){D(e,function(i){var n=this.findTargetInfo(i,t);n&&n!==!0&&D(n.coordSyses,function(o){var s=Wo[i.brushType](1,o,i.range,!0);r(i,s.values,o,t)})},this)},a.prototype.setInputRanges=function(e,t){D(e,function(r){var i=this.findTargetInfo(r,t);if(r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var n=Wo[r.brushType](0,i.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?Nh[r.brushType](n.values,o.offset,tM(n.xyMinMax,o.xyMinMax)):n.values}},this)},a.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:og(i),isTargetByCursor:lg(i,e,r.coordSysModel),getLinearBrushOtherExtent:sg(i)}})},a.prototype.controlSeries=function(e,t,r){var i=this.findTargetInfo(e,r);return i===!0||i&&yt(i.coordSyses,t.coordinateSystem)>=0},a.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,i=Rh(t,e),n=0;n<r.length;n++){var o=r[n],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<kh.length;l++)if(kh[l](i,o))return o}return!0},a}();function Hs(a){return a[0]>a[1]&&a.reverse(),a}function Rh(a,e){return Tp(a,e,{includeMainTypes:jL})}var QL={grid:function(a,e){var t=a.xAxisModels,r=a.yAxisModels,i=a.gridModels,n=nt(),o={},s={};!t&&!r&&!i||(D(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),D(r,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),D(i,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,v=[];D(u.getCartesians(),function(c,h){(yt(t,c.getAxis("x").model)>=0||yt(r,c.getAxis("y").model)>=0)&&v.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:v[0],coordSyses:v,getPanelRect:Eh.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(a,e){D(a.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:Eh.geo})})}},kh=[function(a,e){var t=a.xAxisModel,r=a.yAxisModel,i=a.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(a,e){var t=a.geoModel;return t&&t===e.geoModel}],Eh={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var a=this.coordSys,e=a.getBoundingRect().clone();return e.applyTransform(zr(a)),e}},Wo={lineX:J(Vh,0),lineY:J(Vh,1),rect:function(a,e,t,r){var i=a?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),n=a?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[Hs([i[0],n[0]]),Hs([i[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(a,e,t,r){var i=[[1/0,-1/0],[1/0,-1/0]],n=G(t,function(o){var s=a?e.pointToData(o,r):e.dataToPoint(o,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:n,xyMinMax:i}}};function Vh(a,e,t,r){var i=t.getAxis(["x","y"][a]),n=Hs(G([0,1],function(s){return e?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),o=[];return o[a]=n,o[1-a]=[NaN,NaN],{values:n,xyMinMax:o}}var Nh={lineX:J(Oh,0),lineY:J(Oh,1),rect:function(a,e,t){return[[a[0][0]-t[0]*e[0][0],a[0][1]-t[0]*e[0][1]],[a[1][0]-t[1]*e[1][0],a[1][1]-t[1]*e[1][1]]]},polygon:function(a,e,t){return G(a,function(r,i){return[r[0]-t[0]*e[i][0],r[1]-t[1]*e[i][1]]})}};function Oh(a,e,t,r){return[e[0]-r[a]*t[0],e[1]-r[a]*t[1]]}function tM(a,e){var t=zh(a),r=zh(e),i=[t[0]/r[0],t[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function zh(a){return a?[a[0][1]-a[0][0],a[1][1]-a[1][0]]:[NaN,NaN]}const tu=JL;var Ws=D,eM=l0("toolbox-dataZoom_"),rM=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,n){this._brushController||(this._brushController=new El(i.getZr()),this._brushController.on("brush",Z(this._onBrush,this)).mount()),nM(t,r,this,n,i),iM(t,r)},e.prototype.onclick=function(t,r,i){aM[i].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var i={},n=this.ecModel;this._brushController.updateCovers([]);var o=new tu(eu(this.model),n,{include:["grid"]});o.matchOutputRanges(r,n,function(u,v,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,v[0]),s("y",c,v[1])):s({lineX:"x",lineY:"y"}[h],c,v)}}),ZL(n,i),this._dispatchZoomAction(i);function s(u,v,c){var h=v.getAxis(u),f=h.model,p=l(u,f,n),d=p.findRepresentativeAxisProxy(f).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(c=Ar(0,c.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:c[0],endValue:c[1]})}function l(u,v,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(f){var p=f.getAxisModel(u,v.componentIndex);p&&(h=f)}),h}},e.prototype._dispatchZoomAction=function(t){var r=[];Ws(t,function(i,n){r.push(lt(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(se),aM={zoom:function(){var a=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:a})},back:function(){this._dispatchZoomAction(UL(this.ecModel))}};function eu(a){var e={xAxisIndex:a.get("xAxisIndex",!0),yAxisIndex:a.get("yAxisIndex",!0),xAxisId:a.get("xAxisId",!0),yAxisId:a.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function iM(a,e){a.setIconStatus("back",XL(e)>1?"emphasis":"normal")}function nM(a,e,t,r,i){var n=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(n=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=n,a.setIconStatus("zoom",n?"emphasis":"normal");var o=new tu(eu(a),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()}:!1)}s0("dataZoom",function(a){var e=a.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),i=[],n=eu(r),o=Tp(a,n);Ws(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Ws(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,v){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:eM+u+c};h[v]=c,i.push(h)}return i});const oM=rM;function sM(a){a.registerComponentModel(AL),a.registerComponentView(IL),Vr("saveAsImage",ML),Vr("magicType",kL),Vr("dataView",$L),Vr("dataZoom",oM),Vr("restore",qL),tt(_L)}var lM=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(Lt);const uM=lM;function ty(a){var e=a.get("confine");return e!=null?!!e:a.get("renderMode")==="richText"}function ey(a){if(!!qt.domSupported){for(var e=document.documentElement.style,t=0,r=a.length;t<r;t++)if(a[t]in e)return a[t]}}var ry=ey(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),vM=ey(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function ay(a,e){if(!a)return e;e=Cp(e,!0);var t=a.indexOf(e);return a=t===-1?e:"-"+a.slice(0,t)+"-"+e,a.toLowerCase()}function cM(a,e){var t=a.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(a);return t?e?t[e]:t:null}var hM=ay(vM,"transition"),ru=ay(ry,"transform"),fM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(qt.transform3dSupported?"will-change:transform;":"");function pM(a){return a=a==="left"?"right":a==="right"?"left":a==="top"?"bottom":"top",a}function dM(a,e,t){if(!K(t)||t==="inside")return"";var r=a.get("backgroundColor"),i=a.get("borderWidth");e=Zr(e);var n=pM(t),o=Math.max(Math.round(i)*1.5,6),s="",l=ru+":",u;yt(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var v=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(v))+c*Math.abs(Math.sin(v)),f=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+n+":-"+f+"px";var p=e+" solid "+i+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'<div style="'+d.join("")+'"></div>'}function gM(a,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+a/2+"s "+t,i="opacity"+r+",visibility"+r;return e||(r=" "+a+"s "+t,i+=qt.transformSupported?","+ru+r:",left"+r+",top"+r),hM+":"+i}function Gh(a,e,t){var r=a.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!qt.transformSupported)return t?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var n=qt.transform3dSupported,o="translate"+(n?"3d":"")+"("+r+","+i+(n?",0":"")+")";return t?"top:0;left:0;"+ru+":"+o+";":[["top",0],["left",0],[ry,o]]}function yM(a){var e=[],t=a.get("fontSize"),r=a.getTextColor();r&&e.push("color:"+r),e.push("font:"+a.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var i=a.get("textShadowColor"),n=a.get("textShadowBlur")||0,o=a.get("textShadowOffsetX")||0,s=a.get("textShadowOffsetY")||0;return i&&n&&e.push("text-shadow:"+o+"px "+s+"px "+n+"px "+i),D(["decoration","align"],function(l){var u=a.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function mM(a,e,t){var r=[],i=a.get("transitionDuration"),n=a.get("backgroundColor"),o=a.get("shadowBlur"),s=a.get("shadowColor"),l=a.get("shadowOffsetX"),u=a.get("shadowOffsetY"),v=a.getModel("textStyle"),c=Dp(a,"html"),h=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+h),e&&i&&r.push(gM(i,t)),n&&r.push("background-color:"+n),D(["width","color","radius"],function(f){var p="border-"+f,d=Cp(p),g=a.get(d);g!=null&&r.push(p+":"+g+(f==="color"?"":"px"))}),r.push(yM(v)),c!=null&&r.push("padding:"+In(c).join("px ")+"px"),r.join(";")+";"}function Bh(a,e,t,r,i){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&v0(a,o,t,r,i)}else{a[0]=r,a[1]=i;var s=n&&n.getViewportRootOffset();s&&(a[0]+=s.offsetLeft,a[1]+=s.offsetTop)}a[2]=a[0]/e.getWidth(),a[3]=a[1]/e.getHeight()}var xM=function(){function a(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,qt.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),n=t.appendTo,o=n&&(K(n)?document.querySelector(n):hs(n)?n:it(n)&&n(e.getDom()));Bh(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(r),this._api=e,this._container=o;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,v=i.painter.getViewportRoot();u0(v,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return a.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),r=cM(t,"position"),i=t.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=e.get("className")||""},a.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,n=this._styleCoord;r.innerHTML?i.cssText=fM+mM(e,!this._firstShow,this._longHide)+Gh(n[0],n[1],!0)+("border-color:"+Zr(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},a.prototype.setContent=function(e,t,r,i,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(K(n)&&r.get("trigger")==="item"&&!ty(r)&&(s=dM(r,i,n)),K(e))o.innerHTML=e+s;else if(e){o.innerHTML="",B(e)||(e=[e]);for(var l=0;l<e.length;l++)hs(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},a.prototype.setEnterable=function(e){this._enterable=e},a.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},a.prototype.moveTo=function(e,t){var r=this._styleCoord;if(Bh(r,this._zr,this._container,e,t),r[0]!=null&&r[1]!=null){var i=this.el.style,n=Gh(r[0],r[1]);D(n,function(o){i[o[0]]=o[1]})}},a.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},a.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",qt.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},a.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),e)):this.hide())},a.prototype.isShow=function(){return this._show},a.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},a}();const SM=xM;var bM=function(){function a(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Hh(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return a.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},a.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},a.prototype.setContent=function(e,t,r,i,n){var o=this;_t(e)&&wt(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new vt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Dp(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),D(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},a.prototype.setEnterable=function(e){this._enterable=e},a.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),r=Fh(e.style);return[t.width+r.left+r.right,t.height+r.top+r.bottom]},a.prototype.moveTo=function(e,t){var r=this.el;if(r){var i=this._styleCoord;Hh(i,this._zr,e,t),e=i[0],t=i[1];var n=r.style,o=Ge(n.borderWidth||0),s=Fh(n);r.x=e+o+s.left,r.y=t+o+s.top,r.markRedraw()}},a.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},a.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},a.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),e)):this.hide())},a.prototype.isShow=function(){return this._show},a.prototype.dispose=function(){this._zr.remove(this.el)},a}();function Ge(a){return Math.max(0,a)}function Fh(a){var e=Ge(a.shadowBlur||0),t=Ge(a.shadowOffsetX||0),r=Ge(a.shadowOffsetY||0);return{left:Ge(e-t),right:Ge(e+t),top:Ge(e-r),bottom:Ge(e+r)}}function Hh(a,e,t,r){a[0]=t,a[1]=r,a[2]=a[0]/e.getWidth(),a[3]=a[1]/e.getHeight()}const _M=bM;var wM=new ft({shape:{x:-1,y:-1,width:2,height:2}}),AM=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){if(!(qt.node||!r.getDom())){var i=t.getComponent("tooltip"),n=this._renderMode=c0(i.get("renderMode"));this._tooltipContent=n==="richText"?new _M(r):new SM(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,r,i){if(!(qt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=r,this._api=i;var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?aa(this,"_updatePosition",50,"fixRate"):Ra(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,r=t.get("triggerOn");Bg("itemTooltip",this._api,Z(function(i,n,o){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(n,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,i=this._api,n=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,r,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,i,n){if(!(n.from===this.uid||qt.node||!i.getDom())){var o=Wh(n,i);this._ticket="";var s=n.dataByCoordSys,l=IM(n,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var v=wM;v.x=n.x,v.y=n.y,v.update(),et(v).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:v},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,i,n))return;var c=Fg(n,r),h=c.point[0],f=c.point[1];h!=null&&f!=null&&this._tryShow({offsetX:h,offsetY:f,target:c.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,i,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(Wh(n,i))},e.prototype._manuallyAxisShowTip=function(t,r,i,n){var o=n.seriesIndex,s=n.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(!!u){var v=u.getData(),c=ca([v.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,r){var i=t.target,n=this._tooltipModel;if(!!n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){var s=et(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;il(i,function(v){if(et(v).dataIndex!=null)return l=v,!0;if(et(v).tooltipConfig!=null)return u=v,!0},!0),l?this._showSeriesItemTooltip(t,l,r):u?this._showComponentItemTooltip(t,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var i=t.get("showDelay");r=Z(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(t,r){var i=this._ecModel,n=this._tooltipModel,o=[r.offsetX,r.offsetY],s=ca([r.tooltipOption],n),l=this._renderMode,u=[],v=Ut("section",{blocks:[],noHeader:!0}),c=[],h=new Wn;D(t,function(x){D(x.dataByAxis,function(m){var S=i.getComponent(m.axisDim+"Axis",m.axisIndex),b=m.value;if(!(!S||b==null)){var _=Og(b,S.axis,i,m.seriesDataIndices,m.valueLabelOpt),w=Ut("section",{header:_,noHeader:!vp(_),sortBlocks:!0,blocks:[]});v.blocks.push(w),D(m.seriesDataIndices,function(A){var T=i.getSeriesByIndex(A.seriesIndex),C=A.dataIndexInside,I=T.getDataParams(C);if(!(I.dataIndex<0)){I.axisDim=m.axisDim,I.axisIndex=m.axisIndex,I.axisType=m.axisType,I.axisId=m.axisId,I.axisValue=Ap(S.axis,{value:b}),I.axisValueLabel=_,I.marker=h.makeTooltipMarker("item",Zr(I.color),l);var L=Du(T.formatTooltip(C,!0,null)),M=L.frag;if(M){var P=ca([T],n).get("valueFormatter");w.blocks.push(P?$({valueFormatter:P},M):M)}L.text&&c.push(L.text),u.push(I)}})}})}),v.blocks.reverse(),c.reverse();var f=r.position,p=s.get("order"),d=Iu(v,h,l,p,i.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var g=l==="richText"?`
`:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,f,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],f,null,h)})},e.prototype._showSeriesItemTooltip=function(t,r,i){var n=this._ecModel,o=et(r),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,v=o.dataIndex,c=o.dataType,h=u.getData(c),f=this._renderMode,p=t.positionDefault,d=ca([h.getItemModel(v),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(v,c),x=new Wn;y.marker=x.makeTooltipMarker("item",Zr(y.color),f);var m=Du(u.formatTooltip(v,!1,c)),S=d.get("order"),b=d.get("valueFormatter"),_=m.frag,w=_?Iu(b?$({valueFormatter:b},_):_,x,f,S,n.get("useUTC"),d.get("textStyle")):m.text,A="item_"+u.name+"_"+v;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,A,t.offsetX,t.offsetY,t.position,t.target,x)}),i({type:"showTip",dataIndexInside:v,dataIndex:h.getRawIndex(v),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,i){var n=et(r),o=n.tooltipConfig,s=o.option||{};if(K(s)){var l=s;s={content:l,formatter:l}}var u=[s],v=this._ecModel.getComponent(n.componentMainType,n.componentIndex);v&&u.push(v),u.push({formatter:s.content});var c=t.positionDefault,h=ca(u,this._tooltipModel,c?{position:c}:null),f=h.get("content"),p=Math.random()+"",d=new Wn;this._showOrMove(h,function(){var g=lt(h.get("formatterParams")||{});this._showTooltipContent(h,f,g,p,t.offsetX,t.offsetY,t.position,r,d)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,i,n,o,s,l,u,v){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var f=r,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),d=p.color;if(h)if(K(h)){var g=t.ecModel.get("useUTC"),y=B(i)?i[0]:i,x=y&&y.axisType&&y.axisType.indexOf("time")>=0;f=h,x&&(f=h0(y.axisValue,f,g)),f=f0(f,i,!0)}else if(it(h)){var m=Z(function(S,b){S===this._ticket&&(c.setContent(b,v,t,d,l),this._updatePosition(t,l,o,s,c,i,u))},this);this._ticket=n,f=h(i,n,m)}else f=h;c.setContent(f,v,t,d,l),c.show(t,d),this._updatePosition(t,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(t,r,i,n){if(i==="axis"||B(r))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!B(r))return{color:n||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,i,n,o,s,l){var u=this._api.getWidth(),v=this._api.getHeight();r=r||t.get("position");var c=o.getSize(),h=t.get("align"),f=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),it(r)&&(r=r([i,n],s,o.el,p,{viewSize:[u,v],contentSize:c.slice()})),B(r))i=F(r[0],u),n=F(r[1],v);else if(_t(r)){var d=r;d.width=c[0],d.height=c[1];var g=Gt(d,{width:u,height:v});i=g.x,n=g.y,h=null,f=null}else if(K(r)&&l){var y=DM(r,p,c,t.get("borderWidth"));i=y[0],n=y[1]}else{var y=TM(i,n,o,u,v,h?null:20,f?null:20);i=y[0],n=y[1]}if(h&&(i-=$h(h)?c[0]/2:h==="right"?c[0]:0),f&&(n-=$h(f)?c[1]/2:f==="bottom"?c[1]:0),ty(t)){var y=CM(i,n,o,u,v);i=y[0],n=y[1]}o.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===t.length;return o&&D(i,function(s,l){var u=s.dataByAxis||[],v=t[l]||{},c=v.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(h,f){var p=c[f]||{},d=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&d.length===g.length,o&&D(d,function(y,x){var m=g[x];o=o&&y.seriesIndex===m.seriesIndex&&y.dataIndex===m.dataIndex}),n&&D(h.seriesDataIndices,function(y){var x=y.seriesIndex,m=r[x],S=n[x];m&&S&&S.data!==m.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){qt.node||!r.getDom()||(Ra(this,"_updatePosition"),this._tooltipContent.dispose(),zs("itemTooltip",r))},e.type="tooltip",e}(Vt);function ca(a,e,t){var r=e.ecModel,i;t?(i=new Rt(t,r,r),i=new Rt(e.option,i,r)):i=e;for(var n=a.length-1;n>=0;n--){var o=a[n];o&&(o instanceof Rt&&(o=o.get("tooltip",!0)),K(o)&&(o={formatter:o}),o&&(i=new Rt(o,i,r)))}return i}function Wh(a,e){return a.dispatchAction||Z(e.dispatchAction,e)}function TM(a,e,t,r,i,n,o){var s=t.getSize(),l=s[0],u=s[1];return n!=null&&(a+l+n+2>r?a-=l+n:a+=n),o!=null&&(e+u+o>i?e-=u+o:e+=o),[a,e]}function CM(a,e,t,r,i){var n=t.getSize(),o=n[0],s=n[1];return a=Math.min(a+o,r)-o,e=Math.min(e+s,i)-s,a=Math.max(a,0),e=Math.max(e,0),[a,e]}function DM(a,e,t,r){var i=t[0],n=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,v=e.height;switch(a){case"inside":s=e.x+u/2-i/2,l=e.y+v/2-n/2;break;case"top":s=e.x+u/2-i/2,l=e.y-n-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+v+o;break;case"left":s=e.x-i-o,l=e.y+v/2-n/2;break;case"right":s=e.x+u+o,l=e.y+v/2-n/2}return[s,l]}function $h(a){return a==="center"||a==="middle"}function IM(a,e,t){var r=p0(a).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var n=d0(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(!!o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var v=et(u).tooltipConfig;if(v&&v.name===a.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const LM=AM;function MM(a){tt(oi),a.registerComponentModel(uM),a.registerComponentView(LM),a.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_e),a.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_e)}var PM=["rect","polygon","keep","clear"];function RM(a,e){var t=jt(a?a.brush:[]);if(!!t.length){var r=[];D(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var i=a&&a.toolbox;B(i)&&(i=i[0]),i||(i={feature:{}},a.toolbox=[i]);var n=i.feature||(i.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),kM(s),e&&!s.length&&s.push.apply(s,PM)}}function kM(a){var e={};D(a,function(t){e[t]=1}),a.length=0,D(e,function(t,r){a.push(r)})}var Zh=D;function Uh(a){if(a){for(var e in a)if(a.hasOwnProperty(e))return!0}}function $s(a,e,t){var r={};return Zh(e,function(n){var o=r[n]=i();Zh(a[n],function(s,l){if(!!Ht.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new Ht(u),l==="opacity"&&(u=lt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ht(u))}})}),r;function i(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function iy(a,e,t){var r;D(t,function(i){e.hasOwnProperty(i)&&Uh(e[i])&&(r=!0)}),r&&D(t,function(i){e.hasOwnProperty(i)&&Uh(e[i])?a[i]=lt(e[i]):delete a[i]})}function EM(a,e,t,r,i,n){var o={};D(a,function(c){var h=Ht.prepareVisualTypes(e[c]);o[c]=h});var s;function l(c){return Ip(t,s,c)}function u(c,h){Lp(t,s,c,h)}n==null?t.each(v):t.each([n],v);function v(c,h){s=n==null?c:h;var f=t.getRawDataItem(s);if(!(f&&f.visualMap===!1))for(var p=r.call(i,c),d=e[p],g=o[p],y=0,x=g.length;y<x;y++){var m=g[y];d[m]&&d[m].applyVisual(c,l,u)}}}function VM(a,e,t,r){var i={};return D(a,function(n){var o=Ht.prepareVisualTypes(e[n]);i[n]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(b){return Ip(s,c,b)}function v(b,_){Lp(s,c,b,_)}for(var c,h=s.getStore();(c=o.next())!=null;){var f=s.getRawDataItem(c);if(!(f&&f.visualMap===!1))for(var p=r!=null?h.get(l,c):c,d=t(p),g=e[d],y=i[d],x=0,m=y.length;x<m;x++){var S=y[x];g[S]&&g[S].applyVisual(p,u,v)}}}}}function NM(a){var e=a.brushType,t={point:function(r){return Yh[e].point(r,t,a)},rect:function(r){return Yh[e].rect(r,t,a)}};return t}var Yh={lineX:Xh(0),lineY:Xh(1),rect:{point:function(a,e,t){return a&&t.boundingRect.contain(a[0],a[1])},rect:function(a,e,t){return a&&t.boundingRect.intersect(a)}},polygon:{point:function(a,e,t){return a&&t.boundingRect.contain(a[0],a[1])&&na(t.range,a[0],a[1])},rect:function(a,e,t){var r=t.range;if(!a||r.length<=1)return!1;var i=a.x,n=a.y,o=a.width,s=a.height,l=r[0];if(na(r,i,n)||na(r,i+o,n)||na(r,i,n+s)||na(r,i+o,n+s)||kt.create(a).contain(l[0],l[1])||ui(i,n,i+o,n,r)||ui(i,n,i,n+s,r)||ui(i+o,n,i+o,n+s,r)||ui(i,n+s,i+o,n+s,r))return!0}}};function Xh(a){var e=["x","y"],t=["width","height"];return{point:function(r,i,n){if(r){var o=n.range,s=r[a];return ha(s,o)}},rect:function(r,i,n){if(r){var o=n.range,s=[r[e[a]],r[e[a]]+r[t[a]]];return s[1]<s[0]&&s.reverse(),ha(s[0],o)||ha(s[1],o)||ha(o[0],s)||ha(o[1],s)}}}}function ha(a,e){return e[0]<=a&&a<=e[1]}var Kh=["inBrush","outOfBrush"],$o="__ecBrushSelect",Zs="__ecInBrushSelectEvent";function ny(a){a.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new tu(e.option,a);t.setInputRanges(e.areas,a)})}function OM(a,e,t){var r=[],i,n;a.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),ny(a),a.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:lt(o.areas),selected:[]};r.push(l);var u=o.option,v=u.brushLink,c=[],h=[],f=[],p=!1;s||(i=u.throttleType,n=u.throttleDelay);var d=G(o.areas,function(b){var _=FM[b.brushType],w=Q({boundingRect:_?_(b):void 0},b);return w.selectors=NM(w),w}),g=$s(o.option,Kh,function(b){b.mappingMethod="fixed"});B(v)&&D(v,function(b){c[b]=1});function y(b){return v==="all"||!!c[b]}function x(b){return!!b.length}a.eachSeries(function(b,_){var w=f[_]=[];b.subType==="parallel"?m(b,_):S(b,_,w)});function m(b,_){var w=b.coordinateSystem;p=p||w.hasAxisBrushed(),y(_)&&w.eachActiveState(b.getData(),function(A,T){A==="active"&&(h[T]=1)})}function S(b,_,w){if(!(!b.brushSelector||BM(o,_))&&(D(d,function(T){o.brushTargetManager.controlSeries(T,b,a)&&w.push(T),p=p||x(w)}),y(_)&&x(w))){var A=b.getData();A.each(function(T){qh(b,w,A,T)&&(h[T]=1)})}}a.eachSeries(function(b,_){var w={seriesId:b.id,seriesIndex:_,seriesName:b.name,dataIndex:[]};l.selected.push(w);var A=f[_],T=b.getData(),C=y(_)?function(I){return h[I]?(w.dataIndex.push(T.getRawIndex(I)),"inBrush"):"outOfBrush"}:function(I){return qh(b,A,T,I)?(w.dataIndex.push(T.getRawIndex(I)),"inBrush"):"outOfBrush"};(y(_)?p:x(A))&&EM(Kh,g,T,C)})}),zM(e,i,n,r,t)}function zM(a,e,t,r,i){if(!!i){var n=a.getZr();if(!n[Zs]){n[$o]||(n[$o]=GM);var o=aa(n,$o,t,e);o(a,r)}}}function GM(a,e){if(!a.isDisposed()){var t=a.getZr();t[Zs]=!0,a.dispatchAction({type:"brushSelect",batch:e}),t[Zs]=!1}}function qh(a,e,t,r){for(var i=0,n=e.length;i<n;i++){var o=e[i];if(a.brushSelector(r,t,o.selectors,o))return!0}}function BM(a,e){var t=a.option.seriesIndex;return t!=null&&t!=="all"&&(B(t)?yt(t,e)<0:e!==t)}var FM={rect:function(a){return jh(a.range)},polygon:function(a){for(var e,t=a.range,r=0,i=t.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var n=t[r];n[0]<e[0][0]&&(e[0][0]=n[0]),n[0]>e[0][1]&&(e[0][1]=n[0]),n[1]<e[1][0]&&(e[1][0]=n[1]),n[1]>e[1][1]&&(e[1][1]=n[1])}return e&&jh(e)}};function jh(a){return new kt(a[0][0],a[1][0],a[0][1]-a[0][0],a[1][1]-a[1][0])}var HM=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new El(r.getZr())).on("brush",Z(this._onBrush,this)).mount()},e.prototype.render=function(t,r,i,n){this.model=t,this._updateController(t,r,i,n)},e.prototype.updateTransform=function(t,r,i,n){ny(r),this._updateController(t,r,i,n)},e.prototype.updateVisual=function(t,r,i,n){this.updateTransform(t,r,i,n)},e.prototype.updateView=function(t,r,i,n){this._updateController(t,r,i,n)},e.prototype._updateController=function(t,r,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:lt(i),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:lt(i),$from:r})},e.type="brush",e}(Vt);const WM=HM;var $M="#ddd",ZM=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var i=this.option;!r&&iy(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:$M},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=G(t,function(r){return Jh(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Jh(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Lt);function Jh(a,e){return dt({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new Rt(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},e,!0)}const UM=ZM;var YM=["rect","polygon","lineX","lineY","keep","clear"],XM=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,i){var n,o,s;r.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,D(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,i){this.render(t,r,i)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),i={};return D(t.get("type",!0),function(n){r[n]&&(i[n]=r[n])}),i},e.prototype.onclick=function(t,r,i){var n=this._brushType,o=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?n:n===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:YM.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(se);const KM=XM;function qM(a){a.registerComponentView(WM),a.registerComponentModel(UM),a.registerPreprocessor(RM),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,OM),a.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),a.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},_e),a.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},_e),Vr("brush",KM)}var jM=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.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"}},e}(Lt),JM=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){if(this.group.removeAll(),!!t.get("show")){var n=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=At(t.get("textBaseline"),t.get("textVerticalAlign")),v=new vt({style:gt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=v.getBoundingRect(),h=t.get("subtext"),f=new vt({style:gt(s,{text:h,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);v.silent=!p&&!g,f.silent=!d&&!g,p&&v.on("click",function(){Wi(p,"_"+t.get("target"))}),d&&f.on("click",function(){Wi(d,"_"+t.get("subtarget"))}),et(v).eventData=et(f).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(v),h&&n.add(f);var y=n.getBoundingRect(),x=t.getBoxLayoutParams();x.width=y.width,x.height=y.height;var m=Gt(x,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?m.x+=m.width:l==="center"&&(m.x+=m.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?m.y+=m.height:u==="middle"&&(m.y+=m.height/2),u=u||"top"),n.x=m.x,n.y=m.y,n.markRedraw();var S={align:l,verticalAlign:u};v.setStyle(S),f.setStyle(S),y=n.getBoundingRect();var b=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var w=new ft({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:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});n.add(w)}},e.type="title",e}(Vt);function QM(a){a.registerComponentModel(jM),a.registerComponentView(JM)}var t2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],i=t.axisType,n=this._names=[],o;i==="category"?(o=[],D(r,function(u,v){var c=Ce(g0(u),""),h;_t(u)?(h=lt(u),h.value=v):h=v,o.push(h),n.push(c)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new te([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.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:[]},e}(Lt);const Qh=t2;var oy=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Qe(Qh.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:[]}),e}(Qh);we(oy,Mp.prototype);const e2=oy;var r2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Vt);const a2=r2;var i2=function(a){E(e,a);function e(t,r,i,n){var o=a.call(this,t,r,i)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(ge);const n2=i2;var Zo=Math.PI,tf=Ct(),o2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,i){if(this.model=t,this.api=i,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var v=l.scale.getLabel({value:u});return Ut("nameValue",{noName:!0,value:v})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var i=t.get(["label","position"]),n=t.get("orient"),o=l2(t,r),s;i==null||i==="auto"?s=n==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":K(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},v={horizontal:0,vertical:Zo/2},c=n==="vertical"?o.height:o.width,h=t.getModel("controlStyle"),f=h.get("show",!0),p=f?h.get("itemSize"):0,d=f?h.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*Zo/180;var x,m,S,b=h.get("position",!0),_=f&&h.get("showPlayBtn",!0),w=f&&h.get("showPrevBtn",!0),A=f&&h.get("showNextBtn",!0),T=0,C=c;b==="left"||b==="bottom"?(_&&(x=[0,0],T+=g),w&&(m=[T,0],T+=g),A&&(S=[C-p,0],C-=g)):(_&&(x=[C-p,0],C-=g),w&&(m=[0,0],T+=g),A&&(S=[C-p,0],C-=g));var I=[T,C];return t.get("inverse")&&I.reverse(),{viewRect:o,mainLength:c,orient:n,rotation:v[n],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:x,prevBtnPosition:m,nextBtnPosition:S,axisExtent:I,controlSize:p,controlGap:d}},e.prototype._position=function(t,r){var i=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=br(),l=o.x,u=o.y+o.height;Xe(s,s,[-l,-u]),ra(s,s,-Zo/2),Xe(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var v=x(o),c=x(i.getBoundingRect()),h=x(n.getBoundingRect()),f=[i.x,i.y],p=[n.x,n.y];p[0]=f[0]=v[0][0];var d=t.labelPosOpt;if(d==null||K(d)){var g=d==="+"?0:1;m(f,c,v,1,g),m(p,h,v,1,1-g)}else{var g=d>=0?0:1;m(f,c,v,1,g),p[1]=f[1]+d}i.setPosition(f),n.setPosition(p),i.rotation=n.rotation=t.rotation,y(i),y(n);function y(S){S.originX=v[0][0]-S.x,S.originY=v[1][0]-S.y}function x(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function m(S,b,_,w,A){S[w]+=_[w][A]-b[w][A]}},e.prototype._createAxis=function(t,r){var i=r.getData(),n=r.get("axisType"),o=s2(r,n);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new n2("value",o,t.axisExtent,n);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Y;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,i,n){var o=i.getExtent();if(!!n.get(["lineStyle","show"])){var s=new Kt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:$({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Kt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Q({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,i,n){var o=this,s=n.getData(),l=i.scale.getTicks();this._tickSymbols=[],D(l,function(u){var v=i.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),f=c.getModel(["emphasis","itemStyle"]),p=c.getModel(["progress","itemStyle"]),d={x:v,y:0,onclick:Z(o._changeTimeline,o,u.value)},g=ef(c,h,r,d);g.ensureState("emphasis").style=f.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Gr(g);var y=et(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=n):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,r,i,n){var o=this,s=i.getLabelModel();if(!!s.get("show")){var l=n.getData(),u=i.getViewLabels();this._tickLabels=[],D(u,function(v){var c=v.tickValue,h=l.getItemModel(c),f=h.getModel("label"),p=h.getModel(["emphasis","label"]),d=h.getModel(["progress","label"]),g=i.dataToCoord(v.tickValue),y=new vt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Z(o._changeTimeline,o,c),silent:!1,style:gt(f,{text:v.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=gt(p),y.ensureState("progress").style=gt(d),r.add(y),Gr(y),tf(y).dataIndex=c,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,i,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),v=n.getPlayState(),c=n.get("inverse",!0);h(t.nextBtnPosition,"next",Z(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",Z(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,v?"stop":"play",Z(this._handlePlayClick,this,!v),!0);function h(f,p,d,g){if(!!f){var y=Gi(At(n.get(["controlStyle",p+"BtnSize"]),o),o),x=[0,-y/2,y,y],m=u2(n,p+"Icon",x,{x:f[0],y:f[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});m.ensureState("emphasis").style=u,r.add(m),Gr(m)}}},e.prototype._renderCurrentPointer=function(t,r,i,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,v={onCreate:function(c){c.draggable=!0,c.drift=Z(u._handlePointerDrag,u),c.ondragend=Z(u._handlePointerDragend,u),rf(c,u._progressLine,s,i,n,!0)},onUpdate:function(c){rf(c,u._progressLine,s,i,n)}};this._currentPointer=ef(l,l,this._mainGroup,{},this._currentPointer,v)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var i=this._toAxisCoord(t)[0],n=this._axis,o=le(n.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=t.model;t._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var r=this._mainGroup.getLocalTransform();return Ie(t,r,!0)},e.prototype._findNearestTick=function(t){var r=this.model.getData(),i=1/0,n,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),v=Math.abs(u-t);v<i&&(i=v,n=l)}),n},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var r=this.model.getCurrentIndex();t==="+"?t=r+1:t==="-"&&(t=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),r=this._tickSymbols,i=this._tickLabels;if(r)for(var n=0;n<r.length;n++)r&&r[n]&&r[n].toggleState("progress",n<t);if(i)for(var n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",tf(i[n]).dataIndex<=t)},e.type="timeline.slider",e}(a2);function s2(a,e){if(e=e||a.get("type"),e)switch(e){case"category":return new m0({ordinalMeta:a.getCategories(),extent:[1/0,-1/0]});case"time":return new y0({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new Fi}}function l2(a,e){return Gt(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},a.get("padding"))}function u2(a,e,t,r){var i=r.style,n=Dn(a.get(["controlStyle",e]),r||{},new kt(t[0],t[1],t[2],t[3]));return i&&n.setStyle(i),n}function ef(a,e,t,r,i,n){var o=e.get("color");if(i)i.setColor(o),t.add(i),n&&n.onUpdate(i);else{var s=a.get("symbol");i=Et(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),t.add(i),n&&n.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=dt({rectHover:!0,z2:100},r,!0);var u=Qr(a.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var v=xr(a.get("symbolOffset"),u);v&&(r.x=(r.x||0)+v[0],r.y=(r.y||0)+v[1]);var c=a.get("symbolRotate");return r.rotation=(c||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function rf(a,e,t,r,i,n){if(!a.dragging){var o=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",t));if(n||!o.get("animation",!0))a.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};a.stopAnimation(null,!0),a.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const v2=o2;function c2(a){a.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,r){var i=t.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Q({currentIndex:i.option.currentIndex},e)}),a.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var r=t.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function h2(a){var e=a&&a.timeline;B(e)||(e=e?[e]:[]),D(e,function(t){!t||f2(t)})}function f2(a){var e=a.type,t={number:"value",time:"time"};if(t[e]&&(a.axisType=t[e],delete a.type),af(a),ur(a,"controlPosition")){var r=a.controlStyle||(a.controlStyle={});ur(r,"position")||(r.position=a.controlPosition),r.position==="none"&&!ur(r,"show")&&(r.show=!1,delete r.position),delete a.controlPosition}D(a.data||[],function(i){_t(i)&&!B(i)&&(!ur(i,"value")&&ur(i,"name")&&(i.value=i.name),af(i))})}function af(a){var e=a.itemStyle||(a.itemStyle={}),t=e.emphasis||(e.emphasis={}),r=a.label||a.label||{},i=r.normal||(r.normal={}),n={normal:1,emphasis:1};D(r,function(o,s){!n[s]&&!ur(i,s)&&(i[s]=o)}),t.label&&!ur(r,"emphasis")&&(r.emphasis=t.label,delete t.label)}function ur(a,e){return a.hasOwnProperty(e)}function p2(a){a.registerComponentModel(e2),a.registerComponentView(v2),a.registerSubTypeDefaulter("timeline",function(){return"slider"}),c2(a),a.registerPreprocessor(h2)}function au(a,e){if(!a)return!1;for(var t=B(a)?a:[a],r=0;r<t.length;r++)if(t[r]&&t[r][e])return!0;return!1}function Ti(a){Za(a,"label",["show"])}var Ci=Ct(),sy=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(qt.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,r){this._mergeOption(t,r,!1,!1)},e.prototype._mergeOption=function(t,r,i,n){var o=this.mainType;i||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Ci(s)[o];if(!l||!l.data){Ci(s)[o]=null;return}u?u._mergeOption(l,r,!0):(n&&Ti(l),D(l.data,function(v){v instanceof Array?(Ti(v[0]),Ti(v[1])):Ti(v)}),u=this.createMarkerModelFromSeries(l,this,r),$(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Ci(s)[o]=u},this)},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return Ut("section",{header:this.name,blocks:[Ut("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,r){return Ci(t)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Lt);we(sy,Mp.prototype);const Je=sy;var d2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Je);const g2=d2;function Us(a){return!(isNaN(parseFloat(a.x))&&isNaN(parseFloat(a.y)))}function y2(a){return!isNaN(parseFloat(a.x))&&!isNaN(parseFloat(a.y))}function Di(a,e,t,r,i,n){var o=[],s=$r(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=iu(e,l,a),v=e.indicesOfNearest(l,u)[0];o[i]=e.get(t,v),o[n]=e.get(l,v);var c=e.get(r,v),h=x0(e.get(r,v));return h=Math.min(h,20),h>=0&&(o[n]=+o[n].toFixed(h)),[o,c]}var Uo={min:J(Di,"min"),max:J(Di,"max"),average:J(Di,"average"),median:J(Di,"median")};function Wa(a,e){if(!!e){var t=a.getData(),r=a.coordinateSystem,i=r&&r.dimensions;if(!y2(e)&&!B(e.coord)&&B(i)){var n=ly(e,t,r,a);if(e=lt(e),e.type&&Uo[e.type]&&n.baseAxis&&n.valueAxis){var o=yt(i,n.baseAxis.dim),s=yt(i,n.valueAxis.dim),l=Uo[e.type](t,n.baseDataDim,n.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!B(i))e.coord=[];else for(var u=e.coord,v=0;v<2;v++)Uo[u[v]]&&(u[v]=iu(t,t.mapDimension(i[v]),u[v]));return e}}function ly(a,e,t,r){var i={};return a.valueIndex!=null||a.valueDim!=null?(i.valueDataDim=a.valueIndex!=null?e.getDimension(a.valueIndex):a.valueDim,i.valueAxis=t.getAxis(m2(r,i.valueDataDim)),i.baseAxis=t.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=t.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function m2(a,e){var t=a.getData().getDimensionInfo(e);return t&&t.coordDim}function $a(a,e){return a&&a.containData&&e.coord&&!Us(e)?a.containData(e.coord):!0}function x2(a,e,t){return a&&a.containZone&&e.coord&&t.coord&&!Us(e)&&!Us(t)?a.containZone(e.coord,t.coord):!0}function uy(a,e){return a?function(t,r,i,n){var o=n<2?t.coord&&t.coord[n]:t.value;return Zi(o,e[n])}:function(t,r,i,n){return Zi(t.value,e[n])}}function iu(a,e,t){if(t==="average"){var r=0,i=0;return a.each(e,function(n,o){isNaN(n)||(r+=n,i++)}),r/i}else return t==="median"?a.getMedian(e):a.getDataExtent(e)[t==="max"?1:0]}var Yo=Ct(),S2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=nt()},e.prototype.render=function(t,r,i){var n=this,o=this.markerGroupMap;o.each(function(s){Yo(s).keep=!1}),r.eachSeries(function(s){var l=Je.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,r,i)}),o.each(function(s){!Yo(s).keep&&n.group.remove(s.group)})},e.prototype.markKeep=function(t){Yo(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var i=this;D(t,function(n){var o=Je.getMarkerModelFromSeries(n,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?S0(l):b0(l))})}})},e.type="marker",e}(Vt);const nu=S2;function nf(a,e,t){var r=e.coordinateSystem;a.each(function(i){var n=a.getItemModel(i),o,s=F(n.get("x"),t.getWidth()),l=F(n.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(a.getValues(a.dimensions,i));else if(r){var u=a.get(r.dimensions[0],i),v=a.get(r.dimensions[1],i);o=r.dataToPoint([u,v])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),a.setItemLayout(i,o)})}var b2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(n){var o=Je.getMarkerModelFromSeries(n,"markPoint");o&&(nf(o.getData(),n,i),this.markerGroupMap.get(n.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new Qa),c=_2(o,t,r);r.setData(c),nf(r.getData(),t,n),c.each(function(h){var f=c.getItemModel(h),p=f.getShallow("symbol"),d=f.getShallow("symbolSize"),g=f.getShallow("symbolRotate"),y=f.getShallow("symbolOffset"),x=f.getShallow("symbolKeepAspect");if(it(p)||it(d)||it(g)||it(y)){var m=r.getRawValue(h),S=r.getDataParams(h);it(p)&&(p=p(m,S)),it(d)&&(d=d(m,S)),it(g)&&(g=g(m,S)),it(y)&&(y=y(m,S))}var b=f.getModel("itemStyle").getItemStyle(),_=Ln(l,"color");b.fill||(b.fill=_),c.setItemVisual(h,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:x,style:b})}),v.updateData(c),this.group.add(v.group),c.eachItemGraphicEl(function(h){h.traverse(function(f){et(f).dataModel=r})}),this.markKeep(v),v.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(nu);function _2(a,e,t){var r;a?r=G(a&&a.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return $($({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new te(r,t),n=G(t.get("data"),J(Wa,e));a&&(n=Jt(n,J($a,a)));var o=uy(!!a,r);return i.initData(n,null,o),i}const w2=b2;function A2(a){a.registerComponentModel(g2),a.registerComponentView(w2),a.registerPreprocessor(function(e){au(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var T2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Je);const C2=T2;var Ii=Ct(),D2=function(a,e,t,r){var i=a.getData(),n;if(B(r))n=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Ft(r.yAxis,r.xAxis);else{var u=ly(r,i,e,a);s=u.valueAxis;var v=_0(i,u.valueDataDim);l=iu(i,v,o)}var c=s.dim==="x"?0:1,h=1-c,f=lt(r),p={coord:[]};f.type=null,f.coord=[],f.coord[h]=-1/0,p.coord[h]=1/0;var d=t.get("precision");d>=0&&Yt(l)&&(l=+l.toFixed(Math.min(d,20))),f.coord[c]=p.coord[c]=l,n=[f,p,{type:o,valueIndex:r.valueIndex,value:l}]}else n=[]}var g=[Wa(a,n[0]),Wa(a,n[1]),$({},n[2])];return g[2].type=g[2].type||null,dt(g[2],g[0]),dt(g[2],g[1]),g};function ln(a){return!isNaN(a)&&!isFinite(a)}function of(a,e,t,r){var i=1-a,n=r.dimensions[a];return ln(e[i])&&ln(t[i])&&e[a]===t[a]&&r.getAxis(n).containData(e[a])}function I2(a,e){if(a.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(of(1,t,r,a)||of(0,t,r,a)))return!0}return $a(a,e[0])&&$a(a,e[1])}function Xo(a,e,t,r,i){var n=r.coordinateSystem,o=a.getItemModel(e),s,l=F(o.get("x"),i.getWidth()),u=F(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(a.getValues(a.dimensions,e));else{var v=n.dimensions,c=a.get(v[0],e),h=a.get(v[1],e);s=n.dataToPoint([c,h])}if(_r(n,"cartesian2d")){var f=n.getAxis("x"),p=n.getAxis("y"),v=n.dimensions;ln(a.get(v[0],e))?s[0]=f.toGlobalCoord(f.getExtent()[t?0:1]):ln(a.get(v[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}a.setItemLayout(e,s)}var L2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(n){var o=Je.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=Ii(o).from,u=Ii(o).to;l.each(function(v){Xo(l,v,!0,n,i),Xo(u,v,!1,n,i)}),s.each(function(v){s.setItemLayout(v,[l.getItemLayout(v),u.getItemLayout(v)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new Il);this.group.add(v.group);var c=M2(o,t,r),h=c.from,f=c.to,p=c.line;Ii(r).from=h,Ii(r).to=f,r.setData(p);var d=r.get("symbol"),g=r.get("symbolSize"),y=r.get("symbolRotate"),x=r.get("symbolOffset");B(d)||(d=[d,d]),B(g)||(g=[g,g]),B(y)||(y=[y,y]),B(x)||(x=[x,x]),c.from.each(function(S){m(h,S,!0),m(f,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[h.getItemLayout(S),f.getItemLayout(S)]),b.stroke==null&&(b.stroke=h.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(S,"symbolOffset"),toSymbolRotate:f.getItemVisual(S,"symbolRotate"),toSymbolSize:f.getItemVisual(S,"symbolSize"),toSymbol:f.getItemVisual(S,"symbol"),style:b})}),v.updateData(p),c.line.eachItemGraphicEl(function(S){et(S).dataModel=r,S.traverse(function(b){et(b).dataModel=r})});function m(S,b,_){var w=S.getItemModel(b);Xo(S,b,_,t,n);var A=w.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=Ln(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:At(w.get("symbolOffset",!0),x[_?0:1]),symbolRotate:At(w.get("symbolRotate",!0),y[_?0:1]),symbolSize:At(w.get("symbolSize"),g[_?0:1]),symbol:At(w.get("symbol",!0),d[_?0:1]),style:A})}this.markKeep(v),v.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(nu);function M2(a,e,t){var r;a?r=G(a&&a.dimensions,function(u){var v=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return $($({},v),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new te(r,t),n=new te(r,t),o=new te([],t),s=G(t.get("data"),J(D2,e,a,t));a&&(s=Jt(s,J(I2,a)));var l=uy(!!a,r);return i.initData(G(s,function(u){return u[0]}),null,l),n.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:n,line:o}}const P2=L2;function R2(a){a.registerComponentModel(C2),a.registerComponentView(P2),a.registerPreprocessor(function(e){au(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var k2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Je);const E2=k2;var Li=Ct(),V2=function(a,e,t,r){var i=r[0],n=r[1];if(!(!i||!n)){var o=Wa(a,i),s=Wa(a,n),l=o.coord,u=s.coord;l[0]=Ft(l[0],-1/0),l[1]=Ft(l[1],-1/0),u[0]=Ft(u[0],1/0),u[1]=Ft(u[1],1/0);var v=al([{},o,s]);return v.coord=[o.coord,s.coord],v.x0=o.x,v.y0=o.y,v.x1=s.x,v.y1=s.y,v}};function un(a){return!isNaN(a)&&!isFinite(a)}function sf(a,e,t,r){var i=1-a;return un(e[i])&&un(t[i])}function N2(a,e){var t=e.coord[0],r=e.coord[1],i={coord:t,x:e.x0,y:e.y0},n={coord:r,x:e.x1,y:e.y1};return _r(a,"cartesian2d")?t&&r&&(sf(1,t,r)||sf(0,t,r))?!0:x2(a,i,n):$a(a,i)||$a(a,n)}function lf(a,e,t,r,i){var n=r.coordinateSystem,o=a.getItemModel(e),s,l=F(o.get(t[0]),i.getWidth()),u=F(o.get(t[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var v=a.getValues(["x0","y0"],e),c=a.getValues(["x1","y1"],e),h=n.clampData(v),f=n.clampData(c),p=[];t[0]==="x0"?p[0]=h[0]>f[0]?c[0]:v[0]:p[0]=h[0]>f[0]?v[0]:c[0],t[1]==="y0"?p[1]=h[1]>f[1]?c[1]:v[1]:p[1]=h[1]>f[1]?v[1]:c[1],s=r.getMarkerPosition(p,t,!0)}else{var d=a.get(t[0],e),g=a.get(t[1],e),y=[d,g];n.clampData&&n.clampData(y,y),s=n.dataToPoint(y,!0)}if(_r(n,"cartesian2d")){var x=n.getAxis("x"),m=n.getAxis("y"),d=a.get(t[0],e),g=a.get(t[1],e);un(d)?s[0]=x.toGlobalCoord(x.getExtent()[t[0]==="x0"?0:1]):un(g)&&(s[1]=m.toGlobalCoord(m.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var uf=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],O2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(n){var o=Je.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(uf,function(c){return lf(s,l,c,n,i)});s.setItemLayout(l,u);var v=s.getItemGraphicEl(l);v.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,{group:new Y});this.group.add(v.group),this.markKeep(v);var c=z2(o,t,r);r.setData(c),c.each(function(h){var f=G(uf,function(A){return lf(c,h,A,t,n)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),x=[p.parse(c.get("x0",h)),p.parse(c.get("x1",h))],m=[d.parse(c.get("y0",h)),d.parse(c.get("y1",h))];le(x),le(m);var S=!(g[0]>x[1]||g[1]<x[0]||y[0]>m[1]||y[1]<m[0]),b=!S;c.setItemLayout(h,{points:f,allClipped:b});var _=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=Ln(l,"color");_.fill||(_.fill=w,K(_.fill)&&(_.fill=$i(_.fill,.4))),_.stroke||(_.stroke=w),c.setItemVisual(h,"style",_)}),c.diff(Li(v).data).add(function(h){var f=c.getItemLayout(h);if(!f.allClipped){var p=new ve({shape:{points:f.points}});c.setItemGraphicEl(h,p),v.group.add(p)}}).update(function(h,f){var p=Li(v).data.getItemGraphicEl(f),d=c.getItemLayout(h);d.allClipped?p&&v.group.remove(p):(p?ct(p,{shape:{points:d.points}},r,h):p=new ve({shape:{points:d.points}}),c.setItemGraphicEl(h,p),v.group.add(p))}).remove(function(h){var f=Li(v).data.getItemGraphicEl(h);v.group.remove(f)}).execute(),c.eachItemGraphicEl(function(h,f){var p=c.getItemModel(f),d=c.getItemVisual(f,"style");h.useStyle(c.getItemVisual(f,"style")),Wt(h,zt(p),{labelFetcher:r,labelDataIndex:f,defaultText:c.getName(f)||"",inheritColor:K(d.fill)?$i(d.fill,1):"#000"}),$t(h,p),St(h,null,null,p.get(["emphasis","disabled"])),et(h).dataModel=r}),Li(v).data=c,v.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(nu);function z2(a,e,t){var r,i,n=["x0","y0","x1","y1"];if(a){var o=G(a&&a.dimensions,function(u){var v=e.getData(),c=v.getDimensionInfo(v.mapDimension(u))||{};return $($({},c),{name:u,ordinalMeta:null})});i=G(n,function(u,v){return{name:u,type:o[v%2].type}}),r=new te(i,t)}else i=[{name:"value",type:"float"}],r=new te(i,t);var s=G(t.get("data"),J(V2,e,a,t));a&&(s=Jt(s,J(N2,a)));var l=a?function(u,v,c,h){var f=u.coord[Math.floor(h/2)][h%2];return Zi(f,i[h])}:function(u,v,c,h){return Zi(u.value,i[h])};return r.initData(s,null,l),r.hasItemOption=!0,r}const G2=O2;function B2(a){a.registerComponentModel(E2),a.registerComponentView(G2),a.registerPreprocessor(function(e){au(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var F2=function(a,e){if(e==="all")return{type:"all",title:a.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:a.getLocaleModel().get(["legend","selector","inverse"])}},H2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){a.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,i=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),B(r)&&D(r,function(n,o){K(n)&&(n={type:n}),r[o]=dt(n,F2(i,n.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),r=!0;break}}!r&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var r=[],i=[];t.eachRawSeries(function(l){var u=l.name;i.push(u);var v;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();t.isSeriesFiltered(l)||(i=i.concat(h)),h.length?r=r.concat(h):v=!0}else v=!0;v&&w0(l)&&r.push(l.name)}),this._availableNames=i;var n=this.get("data")||r,o=nt(),s=G(n,function(l){return(K(l)||Yt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Rt(l,this,this.ecModel))},this);this._data=Jt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var n=this._data;D(n,function(o){r[o.get("name")]=!1})}r[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var r=this.option.selected;r.hasOwnProperty(t)||(r[t]=!0),this[r[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,r=this.option.selected;D(t,function(i){r[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,r=this.option.selected;D(t,function(i){var n=i.get("name",!0);r.hasOwnProperty(n)||(r[n]=!0),r[n]=!r[n]})},e.prototype.isSelected=function(t){var r=this.option.selected;return!(r.hasOwnProperty(t)&&!r[t])&&yt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(Lt);const Ys=H2;var Lr=J,Xs=D,Mi=Y,W2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Mi),this.group.add(this._selectorGroup=new Mi),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,i,l,s,u);var v=t.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=t.get("padding"),f=Gt(v,c,h),p=this.layoutInner(t,o,f,n,l,u),d=Gt(Q({width:p.width,height:p.height},v),c,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jg(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,i,n,o,s,l){var u=this.getContentGroup(),v=nt(),c=r.get("selectedMode"),h=[];i.eachRawSeries(function(f){!f.get("legendHoverLink")&&h.push(f.id)}),Xs(r.getData(),function(f,p){var d=f.get("name");if(!this.newlineDisabled&&(d===""||d===`
`)){var g=new Mi;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(d)[0];if(!v.get(d))if(y){var x=y.getData(),m=x.getVisual("legendLineStyle")||{},S=x.getVisual("legendIcon"),b=x.getVisual("style"),_=this._createItem(y,d,p,f,r,t,m,b,S,c,n);_.on("click",Lr(vf,d,null,n,h)).on("mouseover",Lr(Ks,y.name,null,n,h)).on("mouseout",Lr(qs,y.name,null,n,h)),i.ssr&&_.eachChild(function(w){var A=et(w);A.seriesIndex=y.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),v.set(d,!0)}else i.eachRawSeries(function(w){if(!v.get(d)&&w.legendVisualProvider){var A=w.legendVisualProvider;if(!A.containName(d))return;var T=A.indexOfName(d),C=A.getItemVisual(T,"style"),I=A.getItemVisual(T,"legendIcon"),L=yp(C.fill);L&&L[3]===0&&(L[3]=.2,C=$($({},C),{fill:Pi(L,"rgba")}));var M=this._createItem(w,d,p,f,r,t,{},C,I,c,n);M.on("click",Lr(vf,null,d,n,h)).on("mouseover",Lr(Ks,null,d,n,h)).on("mouseout",Lr(qs,null,d,n,h)),i.ssr&&M.eachChild(function(P){var R=et(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),v.set(d,!0)}},this)},this),o&&this._createSelector(o,r,n,s,l)},e.prototype._createSelector=function(t,r,i,n,o){var s=this.getSelectorGroup();Xs(t,function(u){var v=u.type,c=new vt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:v==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=r.getModel("selectorLabel"),f=r.getModel(["emphasis","selectorLabel"]);Wt(c,{normal:h,emphasis:f},{defaultText:u.title}),Gr(c)})},e.prototype._createItem=function(t,r,i,n,o,s,l,u,v,c,h){var f=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(r),y=n.get("symbolRotate"),x=n.get("symbolKeepAspect"),m=n.get("icon");v=m||v||"roundRect";var S=$2(v,n,l,u,f,g,h),b=new Mi,_=n.getModel("textStyle");if(it(t.getLegendIcon)&&(!m||m==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:v,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:x}));else{var w=m==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(Z2({itemWidth:p,itemHeight:d,icon:v,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:x}))}var A=s==="left"?p+5:-5,T=s,C=o.get("formatter"),I=r;K(C)&&C?I=C.replace("{name}",r!=null?r:""):it(C)&&(I=C(r));var L=g?_.getTextColor():n.get("inactiveColor");b.add(new vt({style:gt(_,{text:I,x:A,y:d/2,fill:L,align:T,verticalAlign:"middle"},{inheritColor:L})}));var M=new ft({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=n.getModel("tooltip");return P.get("show")&&Ya({el:M,componentModel:o,itemName:r,itemTooltipOption:P.option}),b.add(M),b.eachChild(function(R){R.silent=!0}),M.silent=!c,this.getContentGroup().add(b),Gr(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(t,r,i,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();hr(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var v=l.getBoundingRect(),c=[-v.x,-v.y];if(u.markRedraw(),l.markRedraw(),o){hr("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),f=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",x=d===0?"y":"x";s==="end"?f[d]+=v[g]+p:c[d]+=h[g]+p,f[1-d]+=v[y]/2-h[y]/2,u.x=f[0],u.y=f[1],l.x=c[0],l.y=c[1];var m={x:0,y:0};return m[g]=v[g]+p+h[g],m[y]=Math.max(v[y],h[y]),m[x]=Math.min(0,h[x]+f[1-d]),m}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Vt);function $2(a,e,t,r,i,n,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Xs(g,function(x,m){g[m]==="inherit"&&(g[m]=y[m])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),v=a.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?r.decal:An(c,o),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[v]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:t).opacity),s(u,r);var h=e.getModel("lineStyle"),f=h.getLineStyle();if(s(f,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),f.stroke==="auto"&&(f.stroke=r.fill),!n){var p=e.get("inactiveBorderWidth"),d=u[v];u.lineWidth=p==="auto"?r.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=h.get("inactiveColor"),f.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function Z2(a){var e=a.icon||"roundRect",t=Et(e,0,0,a.itemWidth,a.itemHeight,a.itemStyle.fill,a.symbolKeepAspect);return t.setStyle(a.itemStyle),t.rotation=(a.iconRotate||0)*Math.PI/180,t.setOrigin([a.itemWidth/2,a.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function vf(a,e,t,r){qs(a,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:a!=null?a:e}),Ks(a,e,t,r)}function vy(a){for(var e=a.getZr().storage.getDisplayList(),t,r=0,i=e.length;r<i&&!(t=e[r].states.emphasis);)r++;return t&&t.hoverLayer}function Ks(a,e,t,r){vy(t)||t.dispatchAction({type:"highlight",seriesName:a,name:e,excludeSeriesId:r})}function qs(a,e,t,r){vy(t)||t.dispatchAction({type:"downplay",seriesName:a,name:e,excludeSeriesId:r})}const cy=W2;function U2(a){var e=a.findComponents({mainType:"legend"});e&&e.length&&a.filterSeries(function(t){for(var r=0;r<e.length;r++)if(!e[r].isSelected(t.name))return!1;return!0})}function fa(a,e,t){var r={},i=a==="toggleSelected",n;return t.eachComponent("legend",function(o){i&&n!=null?o[n?"select":"unSelect"](e.name):a==="allSelect"||a==="inverseSelect"?o[a]():(o[a](e.name),n=o.isSelected(e.name));var s=o.getData();D(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var v=o.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&v:r[u]=v}})}),a==="allSelect"||a==="inverseSelect"?{selected:r}:{name:e.name,selected:r}}function Y2(a){a.registerAction("legendToggleSelect","legendselectchanged",J(fa,"toggleSelected")),a.registerAction("legendAllSelect","legendselectall",J(fa,"allSelect")),a.registerAction("legendInverseSelect","legendinverseselect",J(fa,"inverseSelect")),a.registerAction("legendSelect","legendselected",J(fa,"select")),a.registerAction("legendUnSelect","legendunselected",J(fa,"unSelect"))}function hy(a){a.registerComponentModel(Ys),a.registerComponentView(cy),a.registerProcessor(a.PRIORITY.PROCESSOR.SERIES_FILTER,U2),a.registerSubTypeDefaulter("legend",function(){return"plain"}),Y2(a)}var X2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,r,i){var n=xn(t);a.prototype.init.call(this,t,r,i),cf(this,t,n)},e.prototype.mergeOption=function(t,r){a.prototype.mergeOption.call(this,t,r),cf(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Qe(Ys.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}),e}(Ys);function cf(a,e,t){var r=a.getOrient(),i=[1,1];i[r.index]=0,Sn(e,t,{type:"box",ignoreSize:!!i})}const K2=X2;var hf=Y,Ko=["width","height"],qo=["x","y"],q2=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){a.prototype.init.call(this),this.group.add(this._containerGroup=new hf),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new hf)},e.prototype.resetInner=function(){a.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,r,i,n,o,s,l){var u=this;a.prototype.renderInner.call(this,t,r,i,n,o,s,l);var v=this._controllerGroup,c=r.get("pageIconSize",!0),h=B(c)?c:[c,c];p("pagePrev",0);var f=r.getModel("pageTextStyle");v.add(new vt({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",x=Dn(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:Z(u._pageGo,u,y,r,n)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});x.name=d,v.add(x)}},e.prototype.layoutInner=function(t,r,i,n,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,v=Ko[u],c=qo[u],h=Ko[1-u],f=qo[1-u];o&&hr("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=lt(i);o&&(y[v]=i[v]-d[v]-p);var x=this._layoutContentAndController(t,n,y,u,v,h,f,c);if(o){if(s==="end")g[u]+=x[v]+p;else{var m=d[v]+p;g[u]-=m,x[c]-=m}x[v]+=d[v]+p,g[1-u]+=x[f]+x[h]/2-d[h]/2,x[h]=Math.max(x[h],d[h]),x[f]=Math.min(x[f],d[f]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return x},e.prototype._layoutContentAndController=function(t,r,i,n,o,s,l,u){var v=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;hr(t.get("orient"),v,t.get("itemGap"),n?i.width:null,n?null:i.height),hr("horizontal",h,t.get("pageButtonItemGap",!0));var f=v.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=f[o]>i[o],g=[-f.x,-f.y];r||(g[n]=v[u]);var y=[0,0],x=[-p.x,-p.y],m=At(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?x[n]+=i[o]-p[o]:y[n]+=p[o]+m}x[1-n]+=f[s]/2-p[s]/2,v.setPosition(g),c.setPosition(y),h.setPosition(x);var b={x:0,y:0};if(b[o]=d?i[o]:f[o],b[s]=Math.max(f[s],p[s]),b[l]=Math.min(0,p[l]+x[1-n]),c.__rectSize=i[o],d){var _={x:0,y:0};_[o]=Math.max(i[o]-p[o]-m,0),_[s]=b[s],c.setClipPath(new ft({shape:_})),c.__rectSize=_[o]}else h.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&ct(v,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,r,i){var n=this._getPageInfo(r)[t];n!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(v){var c=v+"DataIndex",h=r[c]!=null,f=i.childOfName(v);f&&(f.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),f.cursor=h?"pointer":"default")});var n=i.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;n&&o&&n.setStyle("text",K(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=t.getOrient().index,s=Ko[o],l=qo[o],u=this._findTargetItemIndex(r),v=i.children(),c=v[u],h=v.length,f=h?1:0,p={contentPosition:[i.x,i.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var d=S(c);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,x=d,m=null;g<=h;++g)m=S(v[g]),(!m&&x.e>y.s+n||m&&!b(m,y.s))&&(x.i>y.i?y=x:y=m,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),x=m;for(var g=u-1,y=d,x=d,m=null;g>=-1;--g)m=S(v[g]),(!m||!b(x,m.s))&&y.i<x.i&&(x=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=m;return p;function S(_){if(_){var w=_.getBoundingRect(),A=w[l]+_[l];return{s:A,e:A+w[s],i:_.__legendDataIndex}}}function b(_,w){return _.e>=w&&_.s<=w+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,i=this.getContentGroup(),n;return i.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===t&&(r=s)}),r!=null?r:n},e.type="legend.scroll",e}(cy);const j2=q2;function J2(a){a.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}function Q2(a){tt(hy),a.registerComponentModel(K2),a.registerComponentView(j2),J2(a)}function tP(a){tt(hy),tt(Q2)}var eP=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Qe(Ha.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ha);const rP=eP;var ou=Ct();function aP(a,e,t){ou(a).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function iP(a,e){for(var t=ou(a).coordSysRecordMap,r=t.keys(),i=0;i<r.length;i++){var n=r[i],o=t.get(n),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||fy(t,o))}}}function fy(a,e){if(e){a.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function nP(a,e){var t={model:e,containsPoint:J(sP,e),dispatchAction:J(oP,a),dataZoomInfoMap:null,controller:null},r=t.controller=new ii(a.getZr());return D(["pan","zoom","scrollMove"],function(i){r.on(i,function(n){var o=[];t.dataZoomInfoMap.each(function(s){if(!!n.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,n);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function oP(a,e){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function sP(a,e,t,r){return a.coordinateSystem.containPoint([t,r])}function lP(a){var e,t="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return a.each(function(n){var o=n.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[t+s]>r[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function uP(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=ou(t),i=r.coordSysRecordMap||(r.coordSysRecordMap=nt());i.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=Xg(n);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,nP(t,s.model)),v=u.dataZoomInfoMap||(u.dataZoomInfoMap=nt());v.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),i.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){fy(i,n);return}var v=lP(l);o.enable(v.controlType,v.opt),o.setPointerChecker(n.containsPoint),aa(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var vP=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,i){if(a.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),aP(i,t,{pan:Z(jo.pan,this),zoom:Z(jo.zoom,this),scrollMove:Z(jo.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){iP(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(jl),jo={zoom:function(a,e,t,r){var i=this.range,n=i.slice(),o=a.axisModels[0];if(!!o){var s=Jo[e](null,[r.originX,r.originY],o,t,a),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/r.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ar(0,n,[0,100],0,v.minSpan,v.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:ff(function(a,e,t,r,i,n){var o=Jo[r]([n.oldX,n.oldY],[n.newX,n.newY],e,i,t);return o.signal*(a[1]-a[0])*o.pixel/o.pixelLength}),scrollMove:ff(function(a,e,t,r,i,n){var o=Jo[r]([0,0],[n.scrollDelta,n.scrollDelta],e,i,t);return o.signal*(a[1]-a[0])*n.scrollDelta})};function ff(a){return function(e,t,r,i){var n=this.range,o=n.slice(),s=e.axisModels[0];if(!!s){var l=a(o,s,e,t,r,i);if(Ar(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var Jo={grid:function(a,e,t,r,i){var n=t.axis,o={},s=i.model.coordinateSystem.getRect();return a=a||[0,0],n.dim==="x"?(o.pixel=e[0]-a[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-a[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(a,e,t,r,i){var n=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return a=a?s.pointToCoord(a):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-a[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-a[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(a,e,t,r,i){var n=t.axis,o=i.model.coordinateSystem.getRect(),s={};return a=a||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-a[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-a[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}};const cP=vP;function py(a){Jl(a),a.registerComponentModel(rP),a.registerComponentView(cP),uP(a)}var hP=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Qe(Ha.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"}}}),e}(Ha);const fP=hP;var pa=ft,pf=7,pP=1,Qo=30,dP=7,da="horizontal",df="vertical",gP=5,yP=["line","bar","candlestick","scatter"],mP={easing:"cubicOut",duration:100,delay:0},xP=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=Z(this._onBrush,this),this._onBrushEnd=Z(this._onBrushEnd,this)},e.prototype.render=function(t,r,i,n){if(a.prototype.render.apply(this,arguments),aa(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ra(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Y;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,i=t.get("brushSelect"),n=i?dP:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===da?{right:s.width-o.x-o.width,top:s.height-Qo-pf-n,width:o.width,height:Qo}:{right:pf,top:o.y,width:Qo,height:o.height},u=xn(t.option);D(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var v=Gt(u,s);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===df&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===da&&!o?{scaleY:l?1:-1,scaleX:1}:i===da&&o?{scaleY:l?1:-1,scaleX:-1}:i===df&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new pa({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new pa({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Z(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,i=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,v=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var f=[0,r[1]],p=[0,r[0]],d=[[r[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),x=0,m=Math.round(o.count()/r[0]),S;o.each([l],function(T,C){if(m>0&&C%m){x+=y;return}var I=T==null||isNaN(T)||T==="",L=I?0:ht(T,c,f,!0);I&&!S&&C?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!I&&S&&(d.push([x,0]),g.push([x,0])),d.push([x,L]),g.push([x,L]),x+=y,S=I}),u=this._shadowPolygonPts=d,v=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var b=this.dataZoomModel;function _(T){var C=b.getModel(T?"selectedDataBackground":"dataBackground"),I=new Y,L=new ve({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),M=new de({shape:{points:v},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(L),I.add(M),I}for(var w=0;w<3;w++){var A=_(w===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var i,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!i&&!(r!==!0&&yt(yP,u.get("type"))<0)){var v=n.getComponent($e(o),s).axis,c=SP(o),h,f=u.coordinateSystem;c!=null&&f.getOtherAxis&&(h=f.getOtherAxis(v).inverse),c=u.getData().mapDimension(c),i={thisAxis:v,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,i=r.handles=[null,null],n=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,v=l.get("borderRadius")||0,c=l.get("brushSelect"),h=r.filler=new pa({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new pa({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:v},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:pP,fill:"rgba(0,0,0,0)"}})),D([0,1],function(m){var S=l.get("handleIcon");!A0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=Et(S,-1,0,2,2,null,!0);b.attr({cursor:gf(this._orient),draggable:!0,drift:Z(this._onDragMove,this,m),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1),z2:5});var _=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=F(w,this._size[1]),this._handleWidth=_.width/_.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(),Gr(b);var A=l.get("handleColor");A!=null&&(b.style.fill=A),o.add(i[m]=b);var T=l.getModel("textStyle");t.add(n[m]=new vt({silent:!0,invisible:!0,style:gt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var f=h;if(c){var p=F(l.get("moveHandleSize"),s[1]),d=r.moveHandle=new ft({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=r.moveHandleIcon=Et(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var x=Math.min(s[1]/2,Math.max(p,10));f=r.moveZone=new ft({invisible:!0,shape:{y:s[1]-x,height:p+x}}),f.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(f)}f.attr({draggable:!0,cursor:gf(this._orient),drift:Z(this._onDragMove,this,"all"),ondragstart:Z(this._showDataInfo,this,!0),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[ht(t[0],[0,100],r,!0),ht(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ar(r,n,o,i.get("zoomLock")?"all":t,s.minSpan!=null?ht(s.minSpan,l,o,!0):null,s.maxSpan!=null?ht(s.maxSpan,l,o,!0):null);var u=this._range,v=this._range=le([ht(n[0],o,l,!0),ht(n[1],o,l,!0)]);return!u||u[0]!==v[0]||u[1]!==v[1]},e.prototype._updateView=function(t){var r=this._displayables,i=this._handleEnds,n=le(i.slice()),o=this._size;D([0,1],function(f){var p=r.handles[f],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:i[f]+(f?-1:1),y:o[1]/2-d/2})},this),r.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,n[0],n[1],o[0]],v=0;v<l.length;v++){var c=l[v],h=c.getClipPath();h||(h=new ft,c.setClipPath(h)),h.setShape({x:u[v],y:0,width:u[v+1]-u[v],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var r=this.dataZoomModel,i=this._displayables,n=i.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,v=this._range,c=t?l.calculateDataWindow({start:v[0],end:v[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=le(this._handleEnds.slice());f.call(this,0),f.call(this,1);function f(p){var d=zr(i.handles[p].parent,this.group),g=nl(p===0?"right":"left",d),y=this._handleWidth/2+gP,x=Ie([h[p]+(p===0?-y:y),this._size[1]/2],d);n[p].setStyle({x:x[0],y:x[1],verticalAlign:o===da?"middle":g,align:o===da?g:"center",text:s[p]})}},e.prototype._formatLabel=function(t,r){var i=this.dataZoomModel,n=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=t==null||isNaN(t)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return it(n)?n(t,s):K(n)?n.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var r=this._displayables,i=r.handleLabels;i[0].attr("invisible",!t),i[1].attr("invisible",!t),r.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(t,r,i,n){this._dragging=!0,Ye(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ie([r,i],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,i=t.offsetY;this._brushStart=new he(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!!this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=le([ht(i.x,o,s,!0),ht(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Ye(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var i=this._displayables,n=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new pa({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),v=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:v[0],y:0,width:u[0]-v[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?mP:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=Xg(this.dataZoomModel).infoList;if(!t&&r.length){var i=r[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(jl);function SP(a){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[a]}function gf(a){return a==="vertical"?"ns-resize":"ew-resize"}const bP=xP;function dy(a){a.registerComponentModel(fP),a.registerComponentView(bP),Jl(a)}function _P(a){tt(py),tt(dy)}var wP={get:function(a,e,t){var r=lt((AP[a]||{})[e]);return t&&B(r)?r[r.length-1]:r}},AP={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 gy=wP;var yf=Ht.mapVisual,TP=Ht.eachVisual,CP=B,mf=D,DP=le,IP=ht,LP=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,r){var i=this.option;!r&&iy(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=Z(t,this),this.controllerVisuals=$s(this.option.controller,r,t),this.targetVisuals=$s(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,n){r.push(n)}):r=jt(t),r},e.prototype.eachTargetSeries=function(t,r){D(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&t.call(r,n)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(i){i===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,i){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;i=i||["<",">"],B(t)&&(t=t.slice(),u=!0);var v=r?t:u?[c(t[0]),c(t[1])]:c(t);if(K(l))return l.replace("{value}",u?v[0]:v).replace("{value2}",u?v[1]:v);if(it(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+v[1]:t[1]===s[1]?i[1]+" "+v[0]:v[0]+" - "+v[1];return v;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=DP([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var i=t.dimensions,n=i.length-1;n>=0;n--){var o=i[n],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},n=r.target||(r.target={}),o=r.controller||(r.controller={});dt(n,i),dt(o,i);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),v.call(this,o);function l(c){CP(r.color)&&!c.inRange&&(c.inRange={color:r.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,h,f){var p=c[h],d=c[f];p&&!d&&(d=c[f]={},mf(p,function(g,y){if(!!Ht.isValidType(y)){var x=gy.get(y,"inactive",s);x!=null&&(d[y]=x,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function v(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,f=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";mf(this.stateList,function(y){var x=this.itemSize,m=c[y];m||(m=c[y]={color:s?p:[p]}),m.symbol==null&&(m.symbol=h&&lt(h)||(s?g:[g])),m.symbolSize==null&&(m.symbolSize=f&&lt(f)||(s?x[0]:[x[0],x[0]])),m.symbol=yf(m.symbol,function(_){return _==="none"?g:_});var S=m.symbolSize;if(S!=null){var b=-1/0;TP(S,function(_){_>b&&(b=_)}),m.symbolSize=yf(S,function(_){return IP(_,[0,b],[0,x[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.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"}},e}(Lt);const vn=LP;var xf=[20,140],MP=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=xf[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=xf[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):B(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=le((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]<t[0]&&(r[0]=t[0]),r[1]<t[0]&&(r[1]=t[0]),r},e.prototype.getValueState=function(t){var r=this.option.range,i=this.getExtent();return(r[0]<=i[0]||r[0]<=t)&&(r[1]>=i[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),r.push({seriesId:i.id,dataIndex:n})},this),r},e.prototype.getVisualMeta=function(t){var r=Sf(this,"outOfRange",this.getExtent()),i=Sf(this,"inRange",this.option.range.slice()),n=[];function o(f,p){n.push({value:f,color:t(f,p)})}for(var s=0,l=0,u=i.length,v=r.length;l<v&&(!i.length||r[l]<=i[0]);l++)r[l]<i[s]&&o(r[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&n.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var c=1;l<v;l++)(!i.length||i[i.length-1]<r[l])&&(c&&(n.length&&o(n[n.length-1].value,"outOfRange"),c=0),o(r[l],"outOfRange"));var h=n.length;return{stops:n,outerColors:[h?n[0].color:"transparent",h?n[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Qe(vn.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)"}}),e}(vn);function Sf(a,e,t){if(t[0]===t[1])return t.slice();for(var r=200,i=(t[1]-t[0])/r,n=t[0],o=[],s=0;s<=r&&n<t[1];s++)o.push(n),n+=i;return o.push(t[1]),o}const PP=MP;var RP=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r},e.prototype.render=function(t,r,i,n){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,r,i,n)},e.prototype.renderBackground=function(t){var r=this.visualMapModel,i=In(r.get("padding")||0),n=t.getBoundingRect();t.add(new ft({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,r,i){i=i||{};var n=i.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(f){return s[f]}function v(f,p){s[f]=p}var c=o.controllerVisuals[n||o.getValueState(t)],h=Ht.prepareVisualTypes(c);return D(h,function(f){var p=c[f];i.convertOpacityToAlpha&&f==="opacity"&&(f="colorAlpha",p=c.__alphaForOpacity),Ht.dependsOn(f,r)&&p&&p.applyVisual(t,u,v)}),s[r]},e.prototype.positionGroup=function(t){var r=this.visualMapModel,i=this.api;Cn(t,r.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,r,i,n){},e.type="visualMap",e}(Vt);const yy=RP;var bf=[["left","right","width"],["top","bottom","height"]];function my(a,e,t){var r=a.option,i=r.align;if(i!=null&&i!=="auto")return i;for(var n={width:e.getWidth(),height:e.getHeight()},o=r.orient==="horizontal"?1:0,s=bf[o],l=[0,null,10],u={},v=0;v<3;v++)u[bf[1-o][v]]=l[v],u[s[v]]=v===2?t[0]:r[s[v]];var c=[["x","width",3],["y","height",0]][o],h=Gt(u,n,r.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<n[c[1]]*.5?0:1]}function Ni(a,e){return D(a||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),a}var xe=ht,kP=D,_f=Math.min,ts=Math.max,EP=12,VP=6,NP=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,r){a.prototype.init.call(this,t,r),this._hoverLinkFromSeriesMouseOver=Z(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Z(this._hideIndicator,this)},e.prototype.doRender=function(t,r,i,n){(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,r=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(r);var i=t.get("text");this._renderEndsText(r,i,0),this._renderEndsText(r,i,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(t,r,i){if(!!r){var n=r[1-i];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,v=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),c=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new vt({style:gt(f,{x:v[0],y:v[1],verticalAlign:h==="horizontal"?"middle":c,align:h==="horizontal"?c:"center",text:n})}))}},e.prototype._renderBar=function(t){var r=this.visualMapModel,i=this._shapes,n=r.itemSize,o=this._orient,s=this._useHandle,l=my(r,this.api,n),u=i.mainGroup=this._createBarGroup(l),v=new Y;u.add(v),v.add(i.outOfRange=wf()),v.add(i.inRange=wf(null,s?Tf(this._orient):null,Z(this._dragHandle,this,"all",!1),Z(this._dragHandle,this,"all",!0))),v.setClipPath(new ft({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var c=r.textStyleModel.getTextRect("\u56FD"),h=ts(c.width,c.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(r,u,0,n,h,o),this._createHandle(r,u,1,n,h,o)),this._createIndicator(r,u,n,h,o),t.add(u)},e.prototype._createHandle=function(t,r,i,n,o,s){var l=Z(this._dragHandle,this,i,!1),u=Z(this._dragHandle,this,i,!0),v=Gi(t.get("handleSize"),n[0]),c=Et(t.get("handleIcon"),-v/2,-v/2,v,v,null,!0),h=Tf(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Ye(y.event)}}),c.x=n[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ya(c,!0),r.add(c);var f=this.visualMapModel.textStyleModel,p=new vt({cursor:h,draggable:!0,drift:l,onmousemove:function(y){Ye(y.event)},ondragend:u,style:gt(f,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[v,0],g=this._shapes;g.handleThumbs[i]=c,g.handleLabelPoints[i]=d,g.handleLabels[i]=p},e.prototype._createIndicator=function(t,r,i,n,o){var s=Gi(t.get("indicatorSize"),i[0]),l=Et(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof pe){var v=l.style;l.useStyle($({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},u))}else l.useStyle(u);r.add(l);var c=this.visualMapModel.textStyleModel,h=new vt({silent:!0,invisible:!0,style:gt(c,{x:0,y:0,text:""})});this.group.add(h);var f=[(o==="horizontal"?n/2:VP)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=f,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,r,i,n){if(!!this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():Af(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,r=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[xe(r[0],i,n,!0),xe(r[1],i,n,!0)]},e.prototype._updateInterval=function(t,r){r=r||0;var i=this.visualMapModel,n=this._handleEnds,o=[0,i.itemSize[1]];Ar(r,n,o,t,0);var s=i.getExtent();this._dataInterval=[xe(n[0],o,s,!0),xe(n[1],o,s,!0)]},e.prototype._updateView=function(t){var r=this.visualMapModel,i=r.getExtent(),n=this._shapes,o=[0,r.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,r,i,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new gn(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,r){var i=100,n=[],o=(t[1]-t[0])/i;n.push({color:this.getControllerVisual(t[0],"color",r),offset:0});for(var s=1;s<i;s++){var l=t[0]+o*s;if(l>t[1])break;n.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return n.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),n},e.prototype._createBarPoints=function(t,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,i=this.visualMapModel.get("inverse");return new Y(r==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(!!this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=n.itemSize,u=n.getExtent();kP([0,1],function(v){var c=o[v];c.setStyle("fill",r.handlesColor[v]),c.y=t[v];var h=xe(t[v],[0,l[1]],u,!0),f=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=f/l[0],c.x=l[0]-f/2;var p=Ie(i.handleLabelPoints[v],zr(c,this.group));s[v].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,i,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],v=this._shapes,c=v.indicator;if(!!c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},f=this.getControllerVisual(t,"color",h),p=this.getControllerVisual(t,"symbolSize"),d=xe(t,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var x=Ie(v.indicatorLabelPoint,zr(c,this.group)),m=v.indicatorLabel;m.attr("invisible",!1);var S=this._applyTransform("left",v.mainGroup),b=this._orient,_=b==="horizontal";m.setStyle({text:(i||"")+o.formatValueText(r),verticalAlign:_?S:"middle",align:_?"center":S});var w={x:g,y:d,style:{fill:f}},A={style:{x:x[0],y:x[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,T),m.animateTo(A,T)}else c.attr(w),m.attr(A);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var I=0;I<C.length;I++)this.api.enterBlur(C[I])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(r){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([r.offsetX,r.offsetY],t._shapes.mainGroup,!0,!0);n[1]=_f(ts(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,r){var i=this.visualMapModel,n=i.itemSize;if(!!i.option.hoverLink){var o=[0,n[1]],s=i.getExtent();t=_f(ts(o[0],t),o[1]);var l=OP(i,s,o),u=[t-l,t+l],v=xe(t,o,s,!0),c=[xe(u[0],o,s,!0),xe(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),r&&(c[0]===-1/0?this._showIndicator(v,c[1],"< ",l):c[1]===1/0?this._showIndicator(v,c[0],"> ",l):this._showIndicator(v,v,"\u2248 ",l));var h=this._hoverLinkDataIndices,f=[];(r||Af(i))&&(f=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var p=T0(h,f);this._dispatchHighDown("downplay",Ni(p[0],i)),this._dispatchHighDown("highlight",Ni(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(il(t.target,function(l){var u=et(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),n=this.visualMapModel;if(!!n.isTargetSeries(i)){var o=i.getData(r.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i<r.length;i++)this.api.leaveBlur(r[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ni(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,r,i,n){var o=zr(r,n?null:this.group);return B(t)?Ie(t,o,i):nl(t,o,i)},e.prototype._dispatchHighDown=function(t,r){r&&r.length&&this.api.dispatchAction({type:t,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(yy);function wf(a,e,t,r){return new ve({shape:{points:a},draggable:!!t,cursor:e,drift:t,onmousemove:function(i){Ye(i.event)},ondragend:r})}function OP(a,e,t){var r=EP/2,i=a.get("hoverLinkDataSize");return i&&(r=xe(i,e,t,!0)/2),r}function Af(a){var e=a.get("hoverLinkOnHandle");return!!(e==null?a.get("realtime"):e)}function Tf(a){return a==="vertical"?"ns-resize":"ew-resize"}const zP=NP;var GP={type:"selectDataRange",event:"dataRangeSelected",update:"update"},BP=function(a,e){e.eachComponent({mainType:"visualMap",query:a},function(t){t.setSelected(a.selected)})},FP=[{createOnAllSeries:!0,reset:function(a,e){var t=[];return e.eachComponent("visualMap",function(r){var i=a.pipelineContext;!r.isTargetSeries(a)||i&&i.large||t.push(VM(r.stateList,r.targetVisuals,Z(r.getValueState,r),r.getDataDimensionIndex(a.getData())))}),t}},{createOnAllSeries:!0,reset:function(a,e){var t=a.getData(),r=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(a)){var n=i.getVisualMeta(Z(HP,null,a,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(t);o>=0&&(n.dimension=o,r.push(n))}}),a.getData().setVisual("visualMeta",r)}}];function HP(a,e,t,r){for(var i=e.targetVisuals[r],n=Ht.prepareVisualTypes(i),o={color:Ln(a.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],v=i[u==="opacity"?"__alphaForOpacity":u];v&&v.applyVisual(t,c,h)}return o.color;function c(f){return o[f]}function h(f,p){o[f]=p}}var Cf=D;function WP(a){var e=a&&a.visualMap;B(e)||(e=e?[e]:[]),Cf(e,function(t){if(!!t){Mr(t,"splitList")&&!Mr(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var r=t.pieces;r&&B(r)&&Cf(r,function(i){_t(i)&&(Mr(i,"start")&&!Mr(i,"min")&&(i.min=i.start),Mr(i,"end")&&!Mr(i,"max")&&(i.max=i.end))})}})}function Mr(a,e){return a&&a.hasOwnProperty&&a.hasOwnProperty(e)}var Df=!1;function xy(a){Df||(Df=!0,a.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),a.registerAction(GP,BP),D(FP,function(e){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,e)}),a.registerPreprocessor(WP))}function Sy(a){a.registerComponentModel(PP),a.registerComponentView(zP),xy(a)}var $P=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],ZP[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var n=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=lt(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=lt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},i=Ht.listVisualTypes(),n=this.isCategory();D(t.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),D(r,function(s,l){var u=!1;D(this.stateList,function(v){u=u||o(t,v,l)||o(t.target,v,l)},this),!u&&D(this.stateList,function(v){(t[v]||(t[v]={}))[l]=gy.get(l,v==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}a.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var i=this.option,n=this._pieceList,o=(r?i:t).selected||{};if(i.selected=o,D(n,function(l,u){var v=this.getSelectedMapKey(l);o.hasOwnProperty(v)||(o[v]=!0)},this),i.selectedMode==="single"){var s=!1;D(n,function(l,u){var v=this.getSelectedMapKey(l);o[v]&&(s?o[v]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=lt(t)},e.prototype.getValueState=function(t){var r=Ht.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],i=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var v=Ht.findPieceIndex(l,i);v===t&&o.push(u)},this),r.push({seriesId:n.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var i=t.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],i=["",""],n=this;function o(v,c){var h=n.getRepresentValue({interval:v});c||(c=n.getValueState(h));var f=t(h,c);v[0]===-1/0?i[0]=f:v[1]===1/0?i[1]=f:r.push({value:v[0],color:f},{value:v[1],color:f})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(v){var c=v.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=Qe(vn.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}),e}(vn),ZP={splitNumber:function(a){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var n=(r[1]-r[0])/i;+n.toFixed(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&a.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=n,o++){var l=o===i-1?r[1]:s+n;a.push({interval:[s,l],close:[1,1]})}e.maxOpen&&a.push({interval:[r[1],1/0],close:[0,0]}),Lu(a),D(a,function(u,v){u.index=v,u.text=this.formatValueText(u.interval)},this)},categories:function(a){var e=this.option;D(e.categories,function(t){a.push({text:this.formatValueText(t,!0),value:t})},this),If(e,a)},pieces:function(a){var e=this.option;D(e.pieces,function(t,r){_t(t)||(t={value:t});var i={text:"",index:r};if(t.label!=null&&(i.text=t.label),t.hasOwnProperty("value")){var n=i.value=t.value;i.interval=[n,n],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],v=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],f=0;f<3&&o[c]==null;f++)o[c]=t[h[f]],s[c]=l[f],v[c]=f===2;o[c]==null&&(o[c]=u[c])}v[0]&&o[1]===1/0&&(s[0]=0),v[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Ht.retrieveVisuals(t),a.push(i)},this),If(e,a),Lu(a),D(a,function(t){var r=t.close,i=[["<","\u2264"][r[1]],[">","\u2265"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function If(a,e){var t=a.inverse;(a.orient==="vertical"?!t:t)&&e.reverse()}const UP=$P;var YP=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,i=r.get("textGap"),n=r.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=r.itemSize,v=this._getViewData(),c=v.endsText,h=Ft(r.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],u,h,l),D(v.viewPieceList,function(f){var p=f.piece,d=new Y;d.onclick=Z(this._onItemClick,this,p),this._enableHoverLink(d,f.indexInModelPieceList);var g=r.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(g);d.add(new vt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),c&&this._renderEndsText(t,c[1],u,h,l),hr(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var i=this;t.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Ni(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return my(t,this.api,t.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,r,i,n,o){if(!!r){var s=new Y,l=this.visualMapModel.textStyleModel;s.add(new vt({style:gt(l,{x:n?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(t,r,i){t.add(Et(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,i=r.option,n=i.selectedMode;if(!!n){var o=lt(i.selected),s=r.getSelectedMapKey(t);n==="single"||n===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(yy);const XP=YP;function by(a){a.registerComponentModel(UP),a.registerComponentView(XP),xy(a)}function KP(a){tt(Sy),tt(by)}var qP={label:{enabled:!0},decal:{show:!1}},Lf=Ct(),jP={};function JP(a,e){var t=a.getModel("aria");if(!t.get("enabled"))return;var r=lt(qP);dt(r.label,a.getLocaleModel().get("aria"),!1),dt(t.option,r,!1),i(),n();function i(){var u=t.getModel("decal"),v=u.get("show");if(v){var c=nt();a.eachSeries(function(h){if(!h.isColorBySeries()){var f=c.get(h.type);f||(f={},c.set(h.type,f)),Lf(h).scope=f}}),a.eachRawSeries(function(h){if(a.isSeriesFiltered(h))return;if(it(h.enableAriaDecal)){h.enableAriaDecal();return}var f=h.getData();if(h.isColorBySeries()){var x=ls(h.ecModel,h.name,jP,a.getSeriesCount()),m=f.getVisual("decal");f.setVisual("decal",S(m,x))}else{var p=h.getRawData(),d={},g=Lf(h).scope;f.each(function(b){var _=f.getRawIndex(b);d[_]=b});var y=p.count();p.each(function(b){var _=d[b],w=p.getName(b)||b+"",A=ls(h.ecModel,w,g,y),T=f.getItemVisual(_,"decal");f.setItemVisual(_,"decal",S(T,A))})}function S(b,_){var w=b?$($({},_),b):_;return w.dirty=!0,w}})}}function n(){var u=a.getLocaleModel().get("aria"),v=t.getModel("label");if(v.option=Q(v.option,u),!!v.get("enabled")){var c=e.getZr().dom;if(v.get("description")){c.setAttribute("aria-label",v.get("description"));return}var h=a.getSeriesCount(),f=v.get(["data","maxCount"])||10,p=v.get(["series","maxCount"])||10,d=Math.min(h,p),g;if(!(h<1)){var y=s();if(y){var x=v.get(["general","withTitle"]);g=o(x,{title:y})}else g=v.get(["general","withoutTitle"]);var m=[],S=h>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),a.eachSeries(function(A,T){if(T<d){var C=void 0,I=A.get("name"),L=I?"withName":"withoutName";C=h>1?v.get(["series","multiple",L]):v.get(["series","single",L]),C=o(C,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var M=A.getData();if(M.count()>f){var P=v.get(["data","partialData"]);C+=o(P,{displayCnt:f})}else C+=v.get(["data","allData"]);for(var R=v.get(["data","separator","middle"]),k=v.get(["data","separator","end"]),N=[],V=0;V<M.count();V++)if(V<f){var O=M.getName(V),z=M.getValues(V),H=v.get(["data",O?"withName":"withoutName"]);N.push(o(H,{name:O,value:z.join(R)}))}C+=N.join(R)+k,m.push(C)}});var b=v.getModel(["series","multiple","separator"]),_=b.get("middle"),w=b.get("end");g+=m.join(_)+w,c.setAttribute("aria-label",g)}}}function o(u,v){if(!K(u))return u;var c=u;return D(v,function(h,f){c=c.replace(new RegExp("\\{\\s*"+f+"\\s*\\}","g"),h)}),c}function s(){var u=a.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var v=a.getLocaleModel().get(["series","typeNames"]);return v[u]||v.chart}}function QP(a){if(!(!a||!a.aria)){var e=a.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},D(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function tR(a){a.registerPreprocessor(QP),a.registerVisual(a.PRIORITY.VISUAL.ARIA,JP)}var Mf={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},eR=function(){function a(e){var t=this._condVal=K(e)?new RegExp(e):D0(e)?e:null;if(t==null){var r="";wt(r)}}return a.prototype.evaluate=function(e){var t=typeof e;return K(t)?this._condVal.test(e):Yt(t)?this._condVal.test(e+""):!1},a}(),rR=function(){function a(){}return a.prototype.evaluate=function(){return this.value},a}(),aR=function(){function a(){}return a.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},a}(),iR=function(){function a(){}return a.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},a}(),nR=function(){function a(){}return a.prototype.evaluate=function(){return!this.child.evaluate()},a}(),oR=function(){function a(){}return a.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,r=t(this.valueGetterParam),i=e?this.valueParser(r):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(e?i:r))return!1;return!0},a}();function su(a,e){if(a===!0||a===!1){var t=new rR;return t.value=a,t}var r="";return _y(a)||wt(r),a.and?Pf("and",a,e):a.or?Pf("or",a,e):a.not?sR(a,e):lR(a,e)}function Pf(a,e,t){var r=e[a],i="";B(r)||wt(i),r.length||wt(i);var n=a==="and"?new aR:new iR;return n.children=G(r,function(o){return su(o,t)}),n.children.length||wt(i),n}function sR(a,e){var t=a.not,r="";_y(t)||wt(r);var i=new nR;return i.child=su(t,e),i.child||wt(r),i}function lR(a,e){for(var t="",r=e.prepareGetValue(a),i=[],n=Pt(a),o=a.parser,s=o?Pp(o):null,l=0;l<n.length;l++){var u=n[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var v=W(Mf,u)?Mf[u]:u,c=a[u],h=s?s(c):c,f=C0(v,h)||v==="reg"&&new eR(h);f||wt(t),i.push(f)}}i.length||wt(t);var p=new oR;return p.valueGetterParam=r,p.valueParser=s,p.getValue=e.getValue,p.subCondList=i,p}function _y(a){return _t(a)&&!bp(a)}var uR=function(){function a(e,t){this._cond=su(e,t)}return a.prototype.evaluate=function(){return this._cond.evaluate()},a}();function vR(a,e){return new uR(a,e)}var cR={type:"echarts:filter",transform:function(a){for(var e=a.upstream,t,r=vR(a.config,{valueGetterAttrMap:nt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;W(s,"dimension")||wt(l);var v=e.getDimensionInfo(u);return v||wt(l),{dimIdx:v.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),i=[],n=0,o=e.count();n<o;n++)t=e.getRawDataItem(n),r.evaluate()&&i.push(t);return{data:i}}},hR={type:"echarts:sort",transform:function(a){var e=a.upstream,t=a.config,r="",i=jt(t);i.length||wt(r);var n=[];D(i,function(v){var c=v.dimension,h=v.order,f=v.parser,p=v.incomparable;if(c==null&&wt(r),h!=="asc"&&h!=="desc"&&wt(r),p&&p!=="min"&&p!=="max"){var d="";wt(d)}if(h!=="asc"&&h!=="desc"){var g="";wt(g)}var y=e.getDimensionInfo(c);y||wt(r);var x=f?Pp(f):null;f&&!x&&wt(r),n.push({dimIdx:y.index,parser:x,comparator:new I0(h,p)})});var o=e.sourceFormat;o!==Sp&&o!==L0&&wt(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(v,c){for(var h=0;h<n.length;h++){var f=n[h],p=e.retrieveValueFromItem(v,f.dimIdx),d=e.retrieveValueFromItem(c,f.dimIdx);f.parser&&(p=f.parser(p),d=f.parser(d));var g=f.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function fR(a){a.registerTransform(cR),a.registerTransform(hR)}var ye=tl.CMD;function Or(a,e){return Math.abs(a-e)<1e-5}function js(a){var e=a.data,t=a.len(),r=[],i,n=0,o=0,s=0,l=0;function u(M,P){i&&i.length>2&&r.push(i),i=[M,P]}function v(M,P,R,k){Or(M,R)&&Or(P,k)||i.push(M,P,R,k,R,k)}function c(M,P,R,k,N,V){var O=Math.abs(P-M),z=Math.tan(O/4)*4/3,H=P<M?-1:1,q=Math.cos(M),j=Math.sin(M),X=Math.cos(P),at=Math.sin(P),ot=q*N+R,rt=j*V+k,U=X*N+R,ut=at*V+k,st=N*z*H,pt=V*z*H;i.push(ot-st*j,rt+pt*q,U+st*at,ut-pt*X,U,ut)}for(var h,f,p,d,g=0;g<t;){var y=e[g++],x=g===1;switch(x&&(n=e[g],o=e[g+1],s=n,l=o,(y===ye.L||y===ye.C||y===ye.Q)&&(i=[s,l])),y){case ye.M:n=s=e[g++],o=l=e[g++],u(s,l);break;case ye.L:h=e[g++],f=e[g++],v(n,o,h,f),n=h,o=f;break;case ye.C:i.push(e[g++],e[g++],e[g++],e[g++],n=e[g++],o=e[g++]);break;case ye.Q:h=e[g++],f=e[g++],p=e[g++],d=e[g++],i.push(n+2/3*(h-n),o+2/3*(f-o),p+2/3*(h-p),d+2/3*(f-d),p,d),n=p,o=d;break;case ye.A:var m=e[g++],S=e[g++],b=e[g++],_=e[g++],w=e[g++],A=e[g++]+w;g+=1;var T=!e[g++];h=Math.cos(w)*b+m,f=Math.sin(w)*_+S,x?(s=h,l=f,u(s,l)):v(n,o,h,f),n=Math.cos(A)*b+m,o=Math.sin(A)*_+S;for(var C=(T?-1:1)*Math.PI/2,I=w;T?I>A:I<A;I+=C){var L=T?Math.max(I+C,A):Math.min(I+C,A);c(I,L,m,S,b,_)}break;case ye.R:s=n=e[g++],l=o=e[g++],h=s+e[g++],f=l+e[g++],u(h,l),v(h,l,h,f),v(h,f,s,f),v(s,f,s,l),v(s,l,h,l);break;case ye.Z:i&&v(n,o,s,l),n=s,o=l;break}}return i&&i.length>2&&r.push(i),r}function Js(a,e,t,r,i,n,o,s,l,u){if(Or(a,t)&&Or(e,r)&&Or(i,o)&&Or(n,s)){l.push(o,s);return}var v=2/u,c=v*v,h=o-a,f=s-e,p=Math.sqrt(h*h+f*f);h/=p,f/=p;var d=t-a,g=r-e,y=i-o,x=n-s,m=d*d+g*g,S=y*y+x*x;if(m<c&&S<c){l.push(o,s);return}var b=h*d+f*g,_=-h*y-f*x,w=m-b*b,A=S-_*_;if(w<c&&b>=0&&A<c&&_>=0){l.push(o,s);return}var T=[],C=[];Ui(a,t,i,o,.5,T),Ui(e,r,n,s,.5,C),Js(T[0],C[0],T[1],C[1],T[2],C[2],T[3],C[3],l,u),Js(T[4],C[4],T[5],C[5],T[6],C[6],T[7],C[7],l,u)}function pR(a,e){var t=js(a),r=[];e=e||1;for(var i=0;i<t.length;i++){var n=t[i],o=[],s=n[0],l=n[1];o.push(s,l);for(var u=2;u<n.length;){var v=n[u++],c=n[u++],h=n[u++],f=n[u++],p=n[u++],d=n[u++];Js(s,l,v,c,h,f,p,d,o,e),s=p,l=d}r.push(o)}return r}function wy(a,e,t){var r=a[e],i=a[1-e],n=Math.abs(r/i),o=Math.ceil(Math.sqrt(n*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var v=o*s,c=t-v;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function Rf(a,e,t){for(var r=a.r0,i=a.r,n=a.startAngle,o=a.endAngle,s=Math.abs(o-n),l=s*i,u=i-r,v=l>Math.abs(u),c=wy([l,u],v?0:1,e),h=(v?s:u)/c.length,f=0;f<c.length;f++)for(var p=(v?u:s)/c[f],d=0;d<c[f];d++){var g={};v?(g.startAngle=n+h*f,g.endAngle=n+h*(f+1),g.r0=r+p*d,g.r=r+p*(d+1)):(g.startAngle=n+p*d,g.endAngle=n+p*(d+1),g.r0=r+h*f,g.r=r+h*(f+1)),g.clockwise=a.clockwise,g.cx=a.cx,g.cy=a.cy,t.push(g)}}function dR(a,e,t){for(var r=a.width,i=a.height,n=r>i,o=wy([r,i],n?0:1,e),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",v=n?"y":"x",c=a[s]/o.length,h=0;h<o.length;h++)for(var f=a[l]/o[h],p=0;p<o[h];p++){var d={};d[u]=h*c,d[v]=p*f,d[s]=c,d[l]=f,d.x+=a.x,d.y+=a.y,t.push(d)}}function kf(a,e,t,r){return a*r-t*e}function gR(a,e,t,r,i,n,o,s){var l=t-a,u=r-e,v=o-i,c=s-n,h=kf(v,c,l,u);if(Math.abs(h)<1e-6)return null;var f=a-i,p=e-n,d=kf(f,p,v,c)/h;return d<0||d>1?null:new he(d*l+a,d*u+e)}function yR(a,e,t){var r=new he;he.sub(r,t,e),r.normalize();var i=new he;he.sub(i,a,e);var n=i.dot(r);return n}function Pr(a,e){var t=a[a.length-1];t&&t[0]===e[0]&&t[1]===e[1]||a.push(e)}function mR(a,e,t){for(var r=a.length,i=[],n=0;n<r;n++){var o=a[n],s=a[(n+1)%r],l=gR(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&i.push({projPt:yR(l,e,t),pt:l,idx:n})}if(i.length<2)return[{points:a},{points:a}];i.sort(function(g,y){return g.projPt-y.projPt});var u=i[0],v=i[i.length-1];if(v.idx<u.idx){var c=u;u=v,v=c}for(var h=[u.pt.x,u.pt.y],f=[v.pt.x,v.pt.y],p=[h],d=[f],n=u.idx+1;n<=v.idx;n++)Pr(p,a[n].slice());Pr(p,f),Pr(p,h);for(var n=v.idx+1;n<=u.idx+r;n++)Pr(d,a[n%r].slice());return Pr(d,h),Pr(d,f),[{points:p},{points:d}]}function Ef(a){var e=a.points,t=[],r=[];Tn(e,t,r);var i=new kt(t[0],t[1],r[0]-t[0],r[1]-t[1]),n=i.width,o=i.height,s=i.x,l=i.y,u=new he,v=new he;return n>o?(u.x=v.x=s+n/2,u.y=l,v.y=l+o):(u.y=v.y=l+o/2,u.x=s,v.x=s+n),mR(e,u,v)}function cn(a,e,t,r){if(t===1)r.push(e);else{var i=Math.floor(t/2),n=a(e);cn(a,n[0],i,r),cn(a,n[1],t-i,r)}return r}function xR(a,e){for(var t=[],r=0;r<e;r++)t.push(sl(a));return t}function SR(a,e){e.setStyle(a.style),e.z=a.z,e.z2=a.z2,e.zlevel=a.zlevel}function bR(a){for(var e=[],t=0;t<a.length;)e.push([a[t++],a[t++]]);return e}function _R(a,e){var t=[],r=a.shape,i;switch(a.type){case"rect":dR(r,e,t),i=ft;break;case"sector":Rf(r,e,t),i=ue;break;case"circle":Rf({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,t),i=ue;break;default:var n=a.getComputedTransform(),o=n?Math.sqrt(Math.max(n[0]*n[0]+n[1]*n[1],n[2]*n[2]+n[3]*n[3])):1,s=G(pR(a.getUpdatedPathProxy(),o),function(y){return bR(y)}),l=s.length;if(l===0)cn(Ef,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var v=0,c=G(s,function(y){var x=[],m=[];Tn(y,x,m);var S=(m[1]-x[1])*(m[0]-x[0]);return v+=S,{poly:y,area:S}});c.sort(function(y,x){return x.area-y.area});for(var h=e,u=0;u<l;u++){var f=c[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(f.area/v*e);p<0||(cn(Ef,{points:f.poly},p,t),h-=p)}}i=ve;break}if(!i)return xR(a,e);for(var d=[],u=0;u<t.length;u++){var g=new i;g.setShape(t[u]),SR(a,g),d.push(g)}return d}function wR(a,e){var t=a.length,r=e.length;if(t===r)return[a,e];for(var i=[],n=[],o=t<r?a:e,s=Math.min(t,r),l=Math.abs(r-t)/6,u=(s-2)/6,v=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,f=2;f<s;){var p=o[f-2],d=o[f-1],g=o[f++],y=o[f++],x=o[f++],m=o[f++],S=o[f++],b=o[f++];if(h<=0){c.push(g,y,x,m,S,b);continue}for(var _=Math.min(h,v-1)+1,w=1;w<=_;w++){var A=w/_;Ui(p,g,x,S,A,i),Ui(d,y,m,b,A,n),p=i[3],d=n[3],c.push(i[1],n[1],i[2],n[2],p,d),g=i[5],y=n[5],x=i[6],m=n[6]}h-=_-1}return o===a?[c,e]:[a,c]}function Vf(a,e){for(var t=a.length,r=a[t-2],i=a[t-1],n=[],o=0;o<e.length;)n[o++]=r,n[o++]=i;return n}function AR(a,e){for(var t,r,i,n=[],o=[],s=0;s<Math.max(a.length,e.length);s++){var l=a[s],u=e[s],v=void 0,c=void 0;l?u?(t=wR(l,u),v=t[0],c=t[1],r=v,i=c):(c=Vf(i||l,l),v=l):(v=Vf(r||u,u),c=u),n.push(v),o.push(c)}return[n,o]}function Nf(a){for(var e=0,t=0,r=0,i=a.length,n=0,o=i-2;n<i;o=n,n+=2){var s=a[o],l=a[o+1],u=a[n],v=a[n+1],c=s*v-u*l;e+=c,t+=(s+u)*c,r+=(l+v)*c}return e===0?[a[0]||0,a[1]||0]:[t/e/3,r/e/3,e]}function TR(a,e,t,r){for(var i=(a.length-2)/6,n=1/0,o=0,s=a.length,l=s-2,u=0;u<i;u++){for(var v=u*6,c=0,h=0;h<s;h+=2){var f=h===0?v:(v+h-2)%l+2,p=a[f]-t[0],d=a[f+1]-t[1],g=e[h]-r[0],y=e[h+1]-r[1],x=g-p,m=y-d;c+=x*x+m*m}c<n&&(n=c,o=u)}return o}function CR(a){for(var e=[],t=a.length,r=0;r<t;r+=2)e[r]=a[t-r-2],e[r+1]=a[t-r-1];return e}function DR(a,e,t,r){for(var i=[],n,o=0;o<a.length;o++){var s=a[o],l=e[o],u=Nf(s),v=Nf(l);n==null&&(n=u[2]<0!=v[2]<0);var c=[],h=[],f=0,p=1/0,d=[],g=s.length;n&&(s=CR(s));for(var y=TR(s,l,u,v)*6,x=g-2,m=0;m<x;m+=2){var S=(y+m)%x+2;c[m+2]=s[S]-u[0],c[m+3]=s[S+1]-u[1]}if(c[0]=s[y]-u[0],c[1]=s[y+1]-u[1],t>0)for(var b=r/t,_=-r/2;_<=r/2;_+=b){for(var w=Math.sin(_),A=Math.cos(_),T=0,m=0;m<s.length;m+=2){var C=c[m],I=c[m+1],L=l[m]-v[0],M=l[m+1]-v[1],P=L*A-M*w,R=L*w+M*A;d[m]=P,d[m+1]=R;var k=P-C,N=R-I;T+=k*k+N*N}if(T<p){p=T,f=_;for(var V=0;V<d.length;V++)h[V]=d[V]}}else for(var O=0;O<g;O+=2)h[O]=l[O]-v[0],h[O+1]=l[O+1]-v[1];i.push({from:c,to:h,fromCp:u,toCp:v,rotation:-f})}return i}function hn(a){return a.__isCombineMorphing}var Ay="__mOriginal_";function fn(a,e,t){var r=Ay+e,i=a[r]||a[e];a[r]||(a[r]=a[e]);var n=t.replace,o=t.after,s=t.before;a[e]=function(){var l=arguments,u;return s&&s.apply(this,l),n?u=n.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Da(a,e){var t=Ay+e;a[t]&&(a[e]=a[t],a[t]=null)}function Of(a,e){for(var t=0;t<a.length;t++)for(var r=a[t],i=0;i<r.length;){var n=r[i],o=r[i+1];r[i++]=e[0]*n+e[2]*o+e[4],r[i++]=e[1]*n+e[3]*o+e[5]}}function Ty(a,e){var t=a.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=AR(js(t),js(r)),n=i[0],o=i[1],s=a.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Of(n,s),l&&Of(o,l),fn(e,"updateTransform",{replace:u}),e.transform=null;var v=DR(n,o,10,Math.PI),c=[];fn(e,"buildPath",{replace:function(h){for(var f=e.__morphT,p=1-f,d=[],g=0;g<v.length;g++){var y=v[g],x=y.from,m=y.to,S=y.rotation*f,b=y.fromCp,_=y.toCp,w=Math.sin(S),A=Math.cos(S);M0(d,b,_,f);for(var T=0;T<x.length;T+=2){var C=x[T],I=x[T+1],L=m[T],M=m[T+1],P=C*p+L*f,R=I*p+M*f;c[T]=P*A-R*w+d[0],c[T+1]=P*w+R*A+d[1]}var k=c[0],N=c[1];h.moveTo(k,N);for(var T=2;T<x.length;){var L=c[T++],M=c[T++],V=c[T++],O=c[T++],z=c[T++],H=c[T++];k===L&&N===M&&V===z&&O===H?h.lineTo(z,H):h.bezierCurveTo(L,M,V,O,z,H),k=z,N=H}}}})}function lu(a,e,t){if(!a||!e)return e;var r=t.done,i=t.during;Ty(a,e),e.__morphT=0;function n(){Da(e,"buildPath"),Da(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Q({during:function(o){e.dirtyShape(),i&&i(o)},done:function(){n(),r&&r()}},t)),e}function IR(a,e,t,r,i,n){var o=16;a=i===t?0:Math.round(32767*(a-t)/(i-t)),e=n===r?0:Math.round(32767*(e-r)/(n-r));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var v=0,c=0;(a&u)>0&&(v=1),(e&u)>0&&(c=1),s+=u*u*(3*v^c),c===0&&(v===1&&(a=u-1-a,e=u-1-e),l=a,a=e,e=l)}return s}function pn(a){var e=1/0,t=1/0,r=-1/0,i=-1/0,n=G(a,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),v=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return e=Math.min(v,e),t=Math.min(c,t),r=Math.max(v,r),i=Math.max(c,i),[v,c]}),o=G(n,function(s,l){return{cp:s,z:IR(s[0],s[1],e,t,r,i),path:a[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Cy(a){return _R(a.path,a.count)}function Qs(){return{fromIndividuals:[],toIndividuals:[],count:0}}function LR(a,e,t){var r=[];function i(b){for(var _=0;_<b.length;_++){var w=b[_];hn(w)?i(w.childrenRef()):w instanceof It&&r.push(w)}}i(a);var n=r.length;if(!n)return Qs();var o=t.dividePath||Cy,s=o({path:e,count:n});if(s.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Qs();r=pn(r),s=pn(s);for(var l=t.done,u=t.during,v=t.individualDelay,c=new ga,h=0;h<n;h++){var f=r[h],p=s[h];p.parent=e,p.copyTransform(c),v||Ty(f,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(b){for(var _=0;_<s.length;_++)s[_].addSelfToZr(b)}fn(e,"addSelfToZr",{after:function(b){d(b)}}),fn(e,"removeSelfFromZr",{after:function(b){for(var _=0;_<s.length;_++)s[_].removeSelfFromZr(b)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Da(e,"addSelfToZr"),Da(e,"removeSelfFromZr")}var y=s.length;if(v)for(var x=y,m=function(){x--,x===0&&(g(),l&&l())},h=0;h<y;h++){var S=v?Q({delay:(t.delay||0)+v(h,y,r[h],s[h]),done:m},t):t;lu(r[h],s[h],S)}else e.__morphT=0,e.animateTo({__morphT:1},Q({during:function(b){for(var _=0;_<y;_++){var w=s[_];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<a.length;b++)Da(a[b],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function MR(a,e,t){var r=e.length,i=[],n=t.dividePath||Cy;function o(f){for(var p=0;p<f.length;p++){var d=f[p];hn(d)?o(d.childrenRef()):d instanceof It&&i.push(d)}}if(hn(a)){o(a.childrenRef());var s=i.length;if(s<r)for(var l=0,u=s;u<r;u++)i.push(sl(i[l++%s]));i.length=r}else{i=n({path:a,count:r});for(var v=a.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(v);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),Qs()}i=pn(i),e=pn(e);for(var c=t.individualDelay,u=0;u<r;u++){var h=c?Q({delay:(t.delay||0)+c(u,r,i[u],e[u])},t):t;lu(i[u],e[u],h)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function zf(a){return B(a[0])}function Gf(a,e){for(var t=[],r=a.length,i=0;i<r;i++)t.push({one:a[i],many:[]});for(var i=0;i<e.length;i++){var n=e[i].length,o=void 0;for(o=0;o<n;o++)t[o%r].many.push(e[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!t[i].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var n=l.length,u=Math.ceil(n/2);t[i].many=l.slice(u,n),t[s].many=l.slice(0,u),s++}return t}var PR={clone:function(a){for(var e=[],t=1-Math.pow(1-a.path.style.opacity,1/a.count),r=0;r<a.count;r++){var i=sl(a.path);i.setStyle("opacity",t),e.push(i)}return e},split:null};function es(a,e,t,r,i,n){if(!a.length||!e.length)return;var o=ja("update",r,i);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,v;zf(a)&&(u=a,v=e),zf(e)&&(u=e,v=a);function c(y,x,m,S,b){var _=y.many,w=y.one;if(_.length===1&&!b){var A=x?_[0]:w,T=x?w:_[0];if(hn(A))c({many:[A],one:T},!0,m,S,!0);else{var C=s?Q({delay:s(m,S)},l):l;lu(A,T,C),n(A,T,A,T,C)}}else for(var I=Q({dividePath:PR[t],individualDelay:s&&function(N,V,O,z){return s(N+m,S)}},l),L=x?LR(_,w,I):MR(w,_,I),M=L.fromIndividuals,P=L.toIndividuals,R=M.length,k=0;k<R;k++){var C=s?Q({delay:s(k,R)},l):l;n(M[k],P[k],x?_[k]:y.one,x?y.one:_[k],C)}}for(var h=u?u===a:a.length>e.length,f=u?Gf(v,u):Gf(h?e:a,[h?a:e]),p=0,d=0;d<f.length;d++)p+=f[d].many.length;for(var g=0,d=0;d<f.length;d++)c(f[d],h,g,p),g+=f[d].many.length}function or(a){if(!a)return[];if(B(a)){for(var e=[],t=0;t<a.length;t++)e.push(or(a[t]));return e}var r=[];return a.traverse(function(i){i instanceof It&&!i.disableMorphing&&!i.invisible&&!i.ignore&&r.push(i)}),r}var Dy=1e4,RR=0,Bf=1,Ff=2,kR=Ct();function ER(a,e){for(var t=a.dimensions,r=0;r<t.length;r++){var i=a.getDimensionInfo(t[r]);if(i&&i.otherDims[e]===0)return t[r]}}function VR(a,e,t){var r=a.getDimensionInfo(t),i=r&&r.ordinalMeta;if(r){var n=a.get(r.name,e);return i&&i.categories[n]||n+""}}function Hf(a,e,t,r){var i=r?"itemChildGroupId":"itemGroupId",n=ER(a,i);if(n){var o=VR(a,e,n);return o}var s=a.getRawDataItem(e),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return t||a.getId(e)}function Wf(a){var e=[];return D(a,function(t){var r=t.data,i=t.dataGroupId;if(!(r.count()>Dy))for(var n=r.getIndices(),o=0;o<n.length;o++)e.push({data:r,groupId:Hf(r,o,i,!1),childGroupId:Hf(r,o,i,!0),divide:t.divide,dataIndex:o})}),e}function rs(a,e,t){a.traverse(function(r){r instanceof It&&bt(r,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function as(a){if(a.parent){var e=a.getComputedTransform();a.setLocalTransform(e),a.parent.remove(a)}}function Rr(a){a.stopAnimation(),a.isGroup&&a.traverse(function(e){e.stopAnimation()})}function NR(a,e,t){var r=ja("update",t,e);r&&a.traverse(function(i){if(i instanceof gr){var n=P0(i);n&&i.animateFrom({style:n},r)}})}function OR(a,e){var t=a.length;if(t!==e.length)return!1;for(var r=0;r<t;r++){var i=a[r],n=e[r];if(i.data.getId(i.dataIndex)!==n.data.getId(n.dataIndex))return!1}return!0}function Iy(a,e,t){var r=Wf(a),i=Wf(e);function n(m,S,b,_,w){(b||m)&&S.animateFrom({style:b&&b!==m?$($({},b.style),m.style):m.style},w)}var o=!1,s=RR,l=nt(),u=nt();r.forEach(function(m){m.groupId&&l.set(m.groupId,!0),m.childGroupId&&u.set(m.childGroupId,!0)});for(var v=0;v<i.length;v++){var c=i[v].groupId;if(u.get(c)){s=Bf;break}var h=i[v].childGroupId;if(h&&l.get(h)){s=Ff;break}}function f(m,S){return function(b){var _=b.data,w=b.dataIndex;return S?_.getId(w):m?s===Bf?b.childGroupId:b.groupId:s===Ff?b.childGroupId:b.groupId}}var p=OR(r,i),d={};if(!p)for(var v=0;v<i.length;v++){var g=i[v],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function x(m,S){var b=r[S],_=i[m],w=_.data.hostModel,A=b.data.getItemGraphicEl(b.dataIndex),T=_.data.getItemGraphicEl(_.dataIndex);if(A===T){T&&NR(T,_.dataIndex,w);return}A&&d[A.id]||T&&(Rr(T),A?(Rr(A),as(A),o=!0,es(or(A),or(T),_.divide,w,m,n)):rs(T,w,m))}new Ke(r,i,f(!0,p),f(!1,p),null,"multiple").update(x).updateManyToOne(function(m,S){var b=i[m],_=b.data,w=_.hostModel,A=_.getItemGraphicEl(b.dataIndex),T=Jt(G(S,function(C){return r[C].data.getItemGraphicEl(r[C].dataIndex)}),function(C){return C&&C!==A&&!d[C.id]});A&&(Rr(A),T.length?(D(T,function(C){Rr(C),as(C)}),o=!0,es(or(T),or(A),b.divide,w,m,n)):rs(A,w,b.dataIndex))}).updateOneToMany(function(m,S){var b=r[S],_=b.data.getItemGraphicEl(b.dataIndex);if(!(_&&d[_.id])){var w=Jt(G(m,function(T){return i[T].data.getItemGraphicEl(i[T].dataIndex)}),function(T){return T&&T!==_}),A=i[m[0]].data.hostModel;w.length&&(D(w,function(T){return Rr(T)}),_?(Rr(_),as(_),o=!0,es(or(_),or(w),b.divide,A,m[0],n)):D(w,function(T){return rs(T,A,m[0])}))}}).updateManyToMany(function(m,S){new Ke(S,m,function(b){return r[b].data.getId(r[b].dataIndex)},function(b){return i[b].data.getId(i[b].dataIndex)}).update(function(b,_){x(m[b],S[_])}).execute()}).execute(),o&&D(e,function(m){var S=m.data,b=S.hostModel,_=b&&t.getViewOfSeriesModel(b),w=ja("update",b,0);_&&b.isAnimationEnabled()&&w&&w.duration>0&&_.group.traverse(function(A){A instanceof It&&!A.animators.length&&A.animateFrom({style:{opacity:0}},w)})})}function $f(a){var e=a.getModel("universalTransition").get("seriesKey");return e||a.id}function Zf(a){return B(a)?a.sort().join(","):a}function Be(a){if(a.hostModel)return a.hostModel.getModel("universalTransition").get("divideShape")}function zR(a,e){var t=nt(),r=nt(),i=nt();return D(a.oldSeries,function(n,o){var s=a.oldDataGroupIds[o],l=a.oldData[o],u=$f(n),v=Zf(u);r.set(v,{dataGroupId:s,data:l}),B(u)&&D(u,function(c){i.set(c,{key:v,dataGroupId:s,data:l})})}),D(e.updatedSeries,function(n){if(n.isUniversalTransitionEnabled()&&n.isAnimationEnabled()){var o=n.get("dataGroupId"),s=n.getData(),l=$f(n),u=Zf(l),v=r.get(u);if(v)t.set(u,{oldSeries:[{dataGroupId:v.dataGroupId,divide:Be(v.data),data:v.data}],newSeries:[{dataGroupId:o,divide:Be(s),data:s}]});else if(B(l)){var c=[];D(l,function(p){var d=r.get(p);d.data&&c.push({dataGroupId:d.dataGroupId,divide:Be(d.data),data:d.data})}),c.length&&t.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Be(s)}]})}else{var h=i.get(l);if(h){var f=t.get(h.key);f||(f={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Be(h.data)}],newSeries:[]},t.set(h.key,f)),f.newSeries.push({dataGroupId:o,data:s,divide:Be(s)})}}}}),t}function Uf(a,e){for(var t=0;t<a.length;t++){var r=e.seriesIndex!=null&&e.seriesIndex===a[t].seriesIndex||e.seriesId!=null&&e.seriesId===a[t].id;if(r)return t}}function GR(a,e,t,r){var i=[],n=[];D(jt(a.from),function(o){var s=Uf(e.oldSeries,o);s>=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Be(e.oldData[s]),groupIdDim:o.dimension})}),D(jt(a.to),function(o){var s=Uf(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();n.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Be(l),groupIdDim:o.dimension})}}),i.length>0&&n.length>0&&Iy(i,n,r)}function BR(a){a.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){D(jt(r.seriesTransition),function(i){D(jt(i.to),function(n){for(var o=r.updatedSeries,s=0;s<o.length;s++)(n.seriesIndex!=null&&n.seriesIndex===o[s].seriesIndex||n.seriesId!=null&&n.seriesId===o[s].id)&&(o[s][$n]=!0)})})}),a.registerUpdateLifecycle("series:transition",function(e,t,r){var i=kR(t);if(i.oldSeries&&r.updatedSeries&&r.optionChanged){var n=r.seriesTransition;if(n)D(jt(n),function(f){GR(f,i,r,t)});else{var o=zR(i,r);D(o.keys(),function(f){var p=o.get(f);Iy(p.oldSeries,p.newSeries,t)})}D(r.updatedSeries,function(f){f[$n]&&(f[$n]=!1)})}for(var s=e.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],v=i.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<Dy&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),v.push(h))}})}tt([R0]);tt([gx]);tt([Bx,iS,yS,r1,x1,cb,Nb,__,X_,aw,pw,mA,ZA,iT,AT,PT,KT,nC,mC,CC,GC,AD]);tt(YD);tt(DI);tt(Dd);tt($I);tt(ug);tt(jI);tt(oL);tt(sM);tt(MM);tt(oi);tt(qM);tt(QM);tt(p2);tt(A2);tt(R2);tt(B2);tt(tP);tt(_P);tt(py);tt(dy);tt(KP);tt(Sy);tt(by);tt(tR);tt(fR);tt(k0);tt(BR);tt(E0);