=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,n){return Nu(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function KE(e){var t,n;return at(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function mf(e){return new Vfe(e)}var Vfe=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h1&&r>0?s:o}};return a;function o(){return t=e?null:li?-this._resultLT:0},e}(),Wfe=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return Sp(t,n)},e}();function Ufe(e,t){var n=new Wfe,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Ga&&wr(o);var s=[],l={},u=e.dimensionsDefine;if(u)X(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var _="";es(l,m)&&wr(_),l[m]=y}});else for(var c=0;c65535?Jfe:Qfe}function jl(){return[1/0,-1/0]}function ede(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function qE(e,t,n,r,i){var a=EN[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;ug[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=et(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,a=i[t],o=[];if(!a)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var a=0;a=f&&y<=d||isNaN(y))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],b=t[i[1]][0],S=t[i[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(C>=b&&C<=S||isNaN(C))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=x)}else for(var m=0;mt[A][1])&&(E=!1)}E&&(l[u++]=n.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,h=new(Kl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=f,d=b)}k>0&&ks&&(v=s-c);for(var g=0;gp&&(p=y,h=c+g)}var _=this.getRawIndex(f),b=this.getRawIndex(h);fc-p&&(l=c-p,s.length=l);for(var v=0;vf[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,i,a){return Sp(n[a],this._dimensions[a])}Gy={arrayRows:t,objectRows:function(n,r,i,a){return Sp(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,i,a){var o=n&&(n.value==null?n:n.value);return Sp(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(n,r,i,a){return n[a]}}}(),e}(),tde=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,a;if(Ch(t)){var o=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=dr(s)?Go:bi,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=St(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=St(f.sourceHeader,d.sourceHeader),v=St(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;i=g?[a_(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var m=t;if(r){var y=this._applyTransform(n);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[a_(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&XE(a)}var o,s=[],l=[];return X(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&XE(f),s.push(c),l.push(u._getVersionSign())}),r?o=Xfe(r,s,{datasetIndex:n.componentIndex}):i!=null&&(o=[Lfe(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Zle=_a(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Jle(e){return Xle(e)?!!Zle[e]:!0}function hR(e,t,n,r,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fn:i+c+h>n){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):p?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var Yb="__zr_style_"+Math.round(Math.random()*10),ol={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},$g={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ol[Yb]=!0;var HT=["z","z2","invisible"],Qle=["invisible"],Id=function(e){jt(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=tn(n),i=0;i1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(fh[0]=Ey(i)*n+e,fh[1]=Ty(i)*r+t,dh[0]=Ey(a)*n+e,dh[1]=Ty(a)*r+t,u(s,fh,dh),c(l,fh,dh),i=i%Es,i<0&&(i=i+Es),a=a%Es,a<0&&(a=a+Es),i>a&&!o?a+=Es:ii&&(hh[0]=Ey(h)*n+e,hh[1]=Ty(h)*r+t,u(s,hh,s),c(l,hh,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},As=[],Ms=[],Qi=[],fo=[],ea=[],ta=[],Ay=Math.min,My=Math.max,ks=Math.cos,Is=Math.sin,Ia=Math.abs,qb=Math.PI,Co=qb*2,ky=typeof Float32Array<"u",gc=[];function Iy(e){var t=Math.round(e/qb*1e8)/1e8;return t%2*qb}function Nw(e,t){var n=Iy(e[0]);n<0&&(n+=Co);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Co?i=n+Co:t&&n-i>=Co?i=n-Co:!t&&n>i?i=n+(Co-Iy(n-i)):t&&n0&&(this._ux=Ia(r/hv/t)||0,this._uy=Ia(r/hv/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(zt.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=Ia(t-this._xi),i=Ia(n-this._yi),a=r>this._ux||i>this._uy;if(this.addData(zt.L,t,n),this._ctx&&a&&this._ctx.lineTo(t,n),a)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var o=r*r+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,a,o){return this._drawPendingPt(),this.addData(zt.C,t,n,r,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData(zt.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,a,o){this._drawPendingPt(),gc[0]=i,gc[1]=a,Nw(gc,o),i=gc[0],a=gc[1];var s=a-i;return this.addData(zt.A,t,n,r,r,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,i,a,o),this._xi=ks(a)*r+t,this._yi=Is(a)*r+n,this},e.prototype.arcTo=function(t,n,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,a),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData(zt.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&ky&&(this.data=new Float32Array(n));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Qi[0]=Qi[1]=ea[0]=ea[1]=Number.MAX_VALUE,fo[0]=fo[1]=ta[0]=ta[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,a=0,o;for(o=0;or||Ia(_)>i||d===n-1)&&(v=Math.sqrt(y*y+_*_),a=g,o=m);break}case zt.C:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++],C=t[d++],x=t[d++];v=pse(a,o,b,S,g,m,C,x,10),a=C,o=x;break}case zt.Q:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++];v=mse(a,o,b,S,g,m,10),a=g,o=m;break}case zt.A:var E=t[d++],T=t[d++],A=t[d++],k=t[d++],O=t[d++],V=t[d++],z=V+O;d+=1,p&&(s=ks(O)*A+E,l=Is(O)*k+T),v=My(A,k)*Ay(Co,Math.abs(V)),a=ks(z)*A+E,o=Is(z)*k+T;break;case zt.R:{s=a=t[d++],l=o=t[d++];var D=t[d++],I=t[d++];v=D*2+I*2;break}case zt.Z:{var y=s-a,_=l-o;v=Math.sqrt(y*y+_*_),a=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=n<1,p,v,g=0,m=0,y,_=0,b,S;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,y=n*v,!y)))e:for(var C=0;C0&&(t.lineTo(b,S),_=0),x){case zt.M:s=u=r[C++],l=c=r[C++],t.moveTo(u,c);break;case zt.L:{f=r[C++],d=r[C++];var T=Ia(f-u),A=Ia(d-c);if(T>i||A>a){if(h){var k=p[m++];if(g+k>y){var O=(y-g)/k;t.lineTo(u*(1-O)+f*O,c*(1-O)+d*O);break e}g+=k}t.lineTo(f,d),u=f,c=d,_=0}else{var V=T*T+A*A;V>_&&(b=f,S=d,_=V)}break}case zt.C:{var z=r[C++],D=r[C++],I=r[C++],N=r[C++],P=r[C++],R=r[C++];if(h){var k=p[m++];if(g+k>y){var O=(y-g)/k;fv(u,z,I,P,O,As),fv(c,D,N,R,O,Ms),t.bezierCurveTo(As[1],Ms[1],As[2],Ms[2],As[3],Ms[3]);break e}g+=k}t.bezierCurveTo(z,D,I,N,P,R),u=P,c=R;break}case zt.Q:{var z=r[C++],D=r[C++],I=r[C++],N=r[C++];if(h){var k=p[m++];if(g+k>y){var O=(y-g)/k;dv(u,z,I,O,As),dv(c,D,N,O,Ms),t.quadraticCurveTo(As[1],Ms[1],As[2],Ms[2]);break e}g+=k}t.quadraticCurveTo(z,D,I,N),u=I,c=N;break}case zt.A:var W=r[C++],q=r[C++],te=r[C++],Z=r[C++],se=r[C++],pe=r[C++],le=r[C++],ee=!r[C++],oe=te>Z?te:Z,ue=Ia(te-Z)>.001,me=se+pe,ve=!1;if(h){var k=p[m++];g+k>y&&(me=se+pe*(y-g)/k,ve=!0),g+=k}if(ue&&t.ellipse?t.ellipse(W,q,te,Z,le,se,me,ee):t.arc(W,q,oe,se,me,ee),ve)break e;E&&(s=ks(se)*te+W,l=Is(se)*Z+q),u=ks(me)*te+W,c=Is(me)*Z+q;break;case zt.R:s=u=r[C],l=c=r[C+1],f=r[C++],d=r[C++];var F=r[C++],G=r[C++];if(h){var k=p[m++];if(g+k>y){var J=y-g;t.moveTo(f,d),t.lineTo(f+Ay(J,F),d),J-=F,J>0&&t.lineTo(f+F,d+Ay(J,G)),J-=G,J>0&&t.lineTo(f+My(F-J,0),d+G),J-=F,J>0&&t.lineTo(f,d+My(G-J,0));break e}g+=k}t.rect(f,d,F,G);break;case zt.Z:if(h){var k=p[m++];if(g+k>y){var O=(y-g)/k;t.lineTo(u*(1-O)+s*O,c*(1-O)+l*O);break e}g+=k}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=zt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Vl(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+f&&c>r+f&&c>a+f&&c>s+f||ce+f&&u>n+f&&u>i+f&&u>o+f||ut+u&&l>r+u&&l>a+u||le+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=mc);var d=Math.atan2(l,s);return d<0&&(d+=mc),d>=r&&d<=i||d+mc>=r&&d+mc<=i}function Ra(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var ho=yl.CMD,Ds=Math.PI*2,sue=1e-4;function lue(e,t){return Math.abs(e-t)t&&u>r&&u>a&&u>s||u1&&uue(),h=Bn(t,r,a,s,Qr[0]),d>1&&(p=Bn(t,r,a,s,Qr[1]))),d===2?gt&&s>r&&s>a||s=0&&u<=1){for(var c=0,f=_r(t,r,a,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);tr[0]=-l,tr[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ds-1e-4){r=0,i=Ds;var c=a?1:-1;return o>=tr[0]+e&&o<=tr[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=Ds,i+=Ds);for(var d=0,h=0;h<2;h++){var p=tr[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=Ds+v),(v>=r&&v<=i||v+Ds>=r&&v+Ds<=i)&&(v>Math.PI/2&&v1&&(n||(s+=Ra(l,u,c,f,r,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case ho.M:c=a[p++],f=a[p++],l=c,u=f;break;case ho.L:if(n){if(Vl(l,u,a[p],a[p+1],t,r,i))return!0}else s+=Ra(l,u,a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case ho.C:if(n){if(iue(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,r,i))return!0}else s+=cue(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case ho.Q:if(n){if(aue(l,u,a[p++],a[p++],a[p],a[p+1],t,r,i))return!0}else s+=fue(l,u,a[p++],a[p++],a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case ho.A:var m=a[p++],y=a[p++],_=a[p++],b=a[p++],S=a[p++],C=a[p++];p+=1;var x=!!(1-a[p++]);d=Math.cos(S)*_+m,h=Math.sin(S)*b+y,g?(c=d,f=h):s+=Ra(l,u,d,h,r,i);var E=(r-m)*b/_+m;if(n){if(oue(m,y,b,S,S+C,x,t,E,i))return!0}else s+=due(m,y,b,S,S+C,x,E,i);l=Math.cos(S+C)*_+m,u=Math.sin(S+C)*b+y;break;case ho.R:c=l=a[p++],f=u=a[p++];var T=a[p++],A=a[p++];if(d=c+T,h=f+A,n){if(Vl(c,f,d,f,t,r,i)||Vl(d,f,d,h,t,r,i)||Vl(d,h,c,h,t,r,i)||Vl(c,h,c,f,t,r,i))return!0}else s+=Ra(d,f,d,h,r,i),s+=Ra(c,h,c,f,r,i);break;case ho.Z:if(n){if(Vl(l,u,c,f,t,r,i))return!0}else s+=Ra(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!lue(u,f)&&(s+=Ra(l,u,c,f,r,i)||0),s!==0}function hue(e,t,n){return pR(e,0,!1,t,n)}function pue(e,t,n,r){return pR(e,t,!0,n,r)}var vR=$t({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ol),vue={style:$t({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$g.style)},Dy=Uf.concat(["invisible","culling","z","z2","zlevel","parent"]),Wt=function(e){jt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Hb:r>.2?Gse:Wb}else if(n)return Wb}return Hb},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Ye(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Wf(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Nc)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect(),o=this.style;if(n=i[0],r=i[1],a.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),pue(s,l/u,n,r)))return!0}if(this.hasFill())return hue(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Nc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:De(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Nc)},t.prototype.createStyle=function(n){return xd(vR,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=De({},this.shape))},t.prototype._applyStateObj=function(n,r,i,a,o,s){e.prototype._applyStateObj.call(this,n,r,i,a,o,s);var l=!(r&&a),u;if(r&&r.shape?o?a?u=r.shape:(u=De({},i.shape),De(u,r.shape)):(u=De({},a?this.shape:i.shape),De(u,r.shape)):l&&(u=i.shape),u)if(o){this.shape=De({},this.shape);for(var c={},f=tn(u),d=0;d0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return xd(gue,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=kw(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var a=n.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(Id);vv.prototype.type="tspan";var mue=$t({x:0,y:0},ol),yue={style:$t({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$g.style)};function bue(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Ca=function(e){jt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return xd(mue,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var a=bue(r.image)?r.image:this.__image;if(!a)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?a[n]:a[n]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return yue},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Lt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Id);Ca.prototype.type="image";function _ue(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(n=n+i,i=-i),a<0&&(r=r+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(n+s,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+a-u),u!==0&&e.arc(n+i-u,r+a-u,u,0,Math.PI/2),e.lineTo(n+c,r+a),c!==0&&e.arc(n+c,r+a-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var ru=Math.round;function gR(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(ru(r*2)===ru(i*2)&&(e.x1=e.x2=js(r,s,!0)),ru(a*2)===ru(o*2)&&(e.y1=e.y2=js(a,s,!0))),e}}function mR(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=js(r,s,!0),e.y=js(i,s,!0),e.width=Math.max(js(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(js(i+o,s,!1)-e.y,o===0?0:1)),e}}function js(e,t,n){if(!t)return e;var r=ru(e*2);return(r+ru(t))%2===0?r/2:(r+(n?1:-1))/2}var wue=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Sue={},Sn=function(e){jt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new wue},t.prototype.buildPath=function(n,r){var i,a,o,s;if(this.subPixelOptimize){var l=mR(Sue,r,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,a=r.y,o=r.width,s=r.height;r.r?_ue(n,r):n.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Wt);Sn.prototype.type="rect";var jT={fill:"#000"},YT=2,Cue={style:$t({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},$g.style)},gn=function(e){jt(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=jT,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,O=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),V=o.calculatedLineHeight,z=0;z=0&&(z=C[V],z.align==="right");)this._placeToken(z,n,E,m,O,"right",_),T-=z.width,O-=z.width,V--;for(k+=(a-(k-g)-(y-O)-T)/2;A<=V;)z=C[A],this._placeToken(z,n,E,m,k+z.width/2,"center",_),k+=z.width,A++;m+=E}},t.prototype._placeToken=function(n,r,i,a,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=a+i/2;c==="top"?f=a+n.height/2:c==="bottom"&&(f=a+i-n.height/2);var d=!n.isLineHolder&&Py(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var h=!!u.backgroundColor,p=n.textPadding;p&&(o=eE(o,s,p),f-=n.height/2-p[0]-n.innerHeight/2);var v=this._getOrCreateChild(vv),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,_=0,b=QT("fill"in u?u.fill:"fill"in r?r.fill:(y=!0,m.fill)),S=JT("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!m.autoStroke||y)?(_=YT,m.stroke):null),C=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,C&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||gl,g.opacity=uu(u.opacity,r.opacity,1),XT(g,u),S&&(g.lineWidth=uu(u.lineWidth,r.lineWidth,_),g.lineDash=St(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=S),b&&(g.fill=b);var x=n.contentWidth,E=n.contentHeight;v.setBoundingRect(new Lt(Bc(g.x,x,g.textAlign),tu(g.y,E,g.textBaseline),x,E))},t.prototype._renderBackground=function(n,r,i,a,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,p=this,v,g;if(d||n.lineHeight||u&&c){v=this._getOrCreateChild(Sn),v.useStyle(v.createStyle()),v.style.fill=null;var m=v.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,v.dirtyShape()}if(d){var y=v.style;y.fill=l||null,y.fillOpacity=St(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Ca),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var y=v.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=St(n.strokeOpacity,1),y.lineDash=n.borderDash,y.lineDashOffset=n.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(v||g).style;b.shadowBlur=n.shadowBlur||0,b.shadowColor=n.shadowColor||"transparent",b.shadowOffsetX=n.shadowOffsetX||0,b.shadowOffsetY=n.shadowOffsetY||0,b.opacity=uu(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Aue(n)&&(r=[n.fontStyle,n.fontWeight,Eue(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Di(r)||n.textFont||n.font},t}(Id),xue={left:!0,right:1,center:1},Tue={top:1,bottom:1,middle:1},qT=["fontStyle","fontWeight","fontSize","fontFamily"];function Eue(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?vw+"px":e+"px"}function XT(e,t){for(var n=0;n=0,a=!1;if(e instanceof Wt){var o=yR(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Hl(s)||Hl(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(a=!0,r=De({},r),u=De({},u),u.fill=s):!Hl(u.fill)&&Hl(s)?(a=!0,r=De({},r),u=De({},u),u.fill=Rb(s)):!Hl(u.stroke)&&Hl(l)&&(a||(r=De({},r),u=De({},u)),u.stroke=Rb(l)),r.style=u}}if(r&&r.z2==null){a||(r=De({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??kue)}return r}function Rue(e,t,n){if(n&&n.z2==null){n=De({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Iue)}return n}function Nue(e,t,n){var r=Ht(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Lue(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=De({},n),o=De({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Ly(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Oue(this,e,t,n);if(e==="blur")return Nue(this,e,n);if(e==="select")return Rue(this,e,n)}return n}function $ue(e){e.stateProxy=Ly;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Ly),n&&(n.stateProxy=Ly)}function oE(e,t){!TR(e,t)&&!e.__highByOuter&&ao(e,bR)}function sE(e,t){!TR(e,t)&&!e.__highByOuter&&ao(e,_R)}function mv(e,t){e.__highByOuter|=1<<(t||0),ao(e,bR)}function yv(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ao(e,_R)}function Bue(e){ao(e,Fw)}function SR(e){ao(e,wR)}function CR(e){ao(e,Due)}function xR(e){ao(e,Pue)}function TR(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function ER(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,a){var o=$w(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){wR(u)}),s&&n.push(a)),o.isBlured=!1}),X(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function Zb(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:n.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function bv(e,t,n){AR(e,!0),ao(e,$ue),Gue(e,t,n)}function Uue(e){AR(e,!1)}function bl(e,t,n,r){r?Uue(e):bv(e,t,n)}function Gue(e,t,n){var r=Nt(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var uE=["emphasis","blur","select"],Kue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Lu(e,t,n,r){n=n||"itemStyle";for(var i=0;i1&&(o*=Oy(p),s*=Oy(p));var v=(i===a?-1:1)*Oy((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,m=v*-s*d/o,y=(e+n)/2+gh(f)*g-vh(f)*m,_=(t+r)/2+vh(f)*g+gh(f)*m,b=hE([1,0],[(d-g)/o,(h-m)/s]),S=[(d-g)/o,(h-m)/s],C=[(-1*d-g)/o,(-1*h-m)/s],x=hE(S,C);if(t_(S,C)<=-1&&(x=yc),t_(S,C)>=1&&(x=0),x<0){var E=Math.round(x/yc*1e6)/1e6;x=yc*2+E%2*yc}c.addData(u,y,_,o,s,b,x,f,a)}var Jue=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Que=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ece(e){var t=new yl;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=yl.CMD,l=e.match(Jue);if(!l)return t;for(var u=0;uz*z+D*D&&(E=A,T=k),{cx:E,cy:T,x0:-c,y0:-f,x1:E*(i/S-1),y1:T*(i/S-1)}}function lce(e){var t;if(We(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function uce(e,t){var n,r=Fc(t.r,0),i=Fc(t.r0||0,0),a=r>0,o=i>0;if(!(!a&&!o)){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=vE(u-l),p=h>Ry&&h%Ry;if(p>Ci&&(h=p),!(r>Ci))e.moveTo(c,f);else if(h>Ry-Ci)e.moveTo(c+r*Ul(l),f+r*Ps(l)),e.arc(c,f,r,l,u,!d),i>Ci&&(e.moveTo(c+i*Ul(u),f+i*Ps(u)),e.arc(c,f,i,u,l,d));else{var v=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,C=void 0,x=void 0,E=void 0,T=void 0,A=void 0,k=void 0,O=void 0,V=void 0,z=void 0,D=r*Ul(l),I=r*Ps(l),N=i*Ul(u),P=i*Ps(u),R=h>Ci;if(R){var W=t.cornerRadius;W&&(n=lce(W),v=n[0],g=n[1],m=n[2],y=n[3]);var q=vE(r-i)/2;if(_=na(q,m),b=na(q,y),S=na(q,v),C=na(q,g),T=x=Fc(_,b),A=E=Fc(S,C),(x>Ci||E>Ci)&&(k=r*Ul(u),O=r*Ps(u),V=i*Ul(l),z=i*Ps(l),hCi){var ue=na(m,T),me=na(y,T),ve=mh(V,z,D,I,r,ue,d),F=mh(k,O,N,P,r,me,d);e.moveTo(c+ve.cx+ve.x0,f+ve.cy+ve.y0),T