s&&(p=s-f);for(var g=0;gd&&(d=m,c=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(c);hf-d&&(l=f-d,s.length=l);for(var p=0;ph[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();il&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return tn(t[i],this._dimensions[i])}Gv={arrayRows:e,objectRows:function(t,a,n,i){return tn(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return tn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),zA=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(iu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ue(s)?ja:pr,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=vt(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=vt(h.sourceHeader,v.sourceHeader),p=vt(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[ap(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[ap(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&u_(i)}var o,s=[],l=[];return D(e,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&u_(h),s.push(f),l.push(u._getVersionSign())}),a?o=Fk(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[bk(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var tR=qr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function eR(r){return jP(r)?!!tR[r]:!0}function _T(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;ht:n+f+c>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):d?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Wd="__zr_style_"+Math.round(Math.random()*10),ni={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},vh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ni[Wd]=!0;var r0=["z","z2","invisible"],rR=["invisible"],cr=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=wt(t),n=0;n1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(ql[0]=xv(n)*t+r,ql[1]=Sv(n)*a+e,Kl[0]=xv(i)*t+r,Kl[1]=Sv(i)*a+e,u(s,ql,Kl),f(l,ql,Kl),n=n%xn,n<0&&(n=n+xn),i=i%xn,i<0&&(i=i+xn),n>i&&!o?i+=xn:nn&&(Jl[0]=xv(c)*t+r,Jl[1]=Sv(c)*a+e,u(s,Jl,s),f(l,Jl,l))}var Bt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bn=[],wn=[],Er=[],Ia=[],kr=[],Or=[],bv=Math.min,wv=Math.max,Tn=Math.cos,An=Math.sin,aa=Math.abs,Ud=Math.PI,za=Ud*2,Tv=typeof Float32Array<"u",Wo=[];function Av(r){var e=Math.round(r/Ud*1e8)/1e8;return e%2*Ud}function Tg(r,e){var t=Av(r[0]);t<0&&(t+=za);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=za?n=t+za:e&&t-n>=za?n=t-za:!e&&t>n?n=t+(za-Av(t-n)):e&&t0&&(this._ux=aa(a/gf/e)||0,this._uy=aa(a/gf/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Bt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=aa(e-this._xi),n=aa(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Bt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(Bt.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(Bt.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),Wo[0]=n,Wo[1]=i,Tg(Wo,o),n=Wo[0],i=Wo[1];var s=i-n;return this.addData(Bt.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=Tn(i)*a+e,this._yi=An(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(Bt.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Bt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Tv&&(this.data=new Float32Array(t));for(var a=0;af.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Er[0]=Er[1]=kr[0]=kr[1]=Number.MAX_VALUE,Ia[0]=Ia[1]=Or[0]=Or[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;oa||aa(_)>n||v===t-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Bt.C:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++],x=e[v++],w=e[v++];p=CI(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case Bt.Q:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++];p=MI(i,o,S,b,g,y,10),i=g,o=y;break}case Bt.A:var T=e[v++],A=e[v++],C=e[v++],M=e[v++],L=e[v++],I=e[v++],P=I+L;v+=1,d&&(s=Tn(L)*C+T,l=An(L)*M+A),p=wv(C,M)*bv(za,Math.abs(I)),i=Tn(P)*C+T,o=An(P)*M+A;break;case Bt.R:{s=i=e[v++],l=o=e[v++];var R=e[v++],E=e[v++];p=R*2+E*2;break}case Bt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,d,p,g=0,y=0,m,_=0,S,b;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*p,!m)))t:for(var x=0;x0&&(e.lineTo(S,b),_=0),w){case Bt.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case Bt.L:{h=a[x++],v=a[x++];var A=aa(h-u),C=aa(v-f);if(A>n||C>i){if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;e.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break t}g+=M}e.lineTo(h,v),u=h,f=v,_=0}else{var I=A*A+C*C;I>_&&(S=h,b=v,_=I)}break}case Bt.C:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++],O=a[x++],B=a[x++];if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;nn(u,P,E,O,L,bn),nn(f,R,N,B,L,wn),e.bezierCurveTo(bn[1],wn[1],bn[2],wn[2],bn[3],wn[3]);break t}g+=M}e.bezierCurveTo(P,R,E,N,O,B),u=O,f=B;break}case Bt.Q:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++];if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;Ws(u,P,E,L,bn),Ws(f,R,N,L,wn),e.quadraticCurveTo(bn[1],wn[1],bn[2],wn[2]);break t}g+=M}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case Bt.A:var G=a[x++],U=a[x++],X=a[x++],rt=a[x++],at=a[x++],W=a[x++],Y=a[x++],ft=!a[x++],tt=X>rt?X:rt,q=aa(X-rt)>.001,it=at+W,Q=!1;if(c){var M=d[y++];g+M>m&&(it=at+W*(m-g)/M,Q=!0),g+=M}if(q&&e.ellipse?e.ellipse(G,U,X,rt,Y,at,it,ft):e.arc(G,U,tt,at,it,ft),Q)break t;T&&(s=Tn(at)*X+G,l=An(at)*rt+U),u=Tn(it)*X+G,f=An(it)*rt+U;break;case Bt.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var F=a[x++],Lt=a[x++];if(c){var M=d[y++];if(g+M>m){var _t=m-g;e.moveTo(h,v),e.lineTo(h+bv(_t,F),v),_t-=F,_t>0&&e.lineTo(h+F,v+bv(_t,Lt)),_t-=Lt,_t>0&&e.lineTo(h+wv(F-_t,0),v+Lt),_t-=F,_t>0&&e.lineTo(h,v+wv(Lt-_t,0));break t}g+=M}e.rect(h,v,F,Lt);break;case Bt.Z:if(c){var M=d[y++];if(g+M>m){var L=(m-g)/M;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Bt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function Fa(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||or+s&&i>t+s||i