You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/6411.90d2d7bd.async.js

50 lines
838 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[6411],{76411:function(Y,V,n){var T=n(3096);(function(){for(var M in T){if(T==null||!T.hasOwnProperty(M)||M==="default"||M==="__esModule")return;V[M]=T[M]}})();var L=n(13700);(function(){for(var M in L){if(L==null||!L.hasOwnProperty(M)||M==="default"||M==="__esModule")return;V[M]=L[M]}})(),n(72476),n(54023),n(84168),n(72586),n(70868),n(81931),n(13441),n(16557),n(70797),n(57495),n(75560),n(63662),n(47866),n(26678),n(56696),n(75230),n(97928),n(75822),n(4287),n(99434),n(24357),n(44189),n(47468),n(25957),n(12335),n(35584),n(13960),n(3068),n(11550),n(2090),n(98018),n(81584),n(84159),n(73546),n(49668),n(14680),n(2450),n(45003),n(34904),n(71142),n(32314),n(32922),n(48328),n(18427),n(85313),n(3646),n(11511),n(79200),n(99848)},33807:function(Y,V,n){var T=n(69008),L={};function M(){this._coordinateSystems=[]}M.prototype={constructor:M,create:function(C,D){var S=[];T.each(L,function(p,v){var t=p.create(C,D);S=S.concat(t||[])}),this._coordinateSystems=S},update:function(C,D){T.each(this._coordinateSystems,function(S){S.update&&S.update(C,D)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},M.register=function(C,D){L[C]=D},M.get=function(C){return L[C]};var w=M;Y.exports=w},6900:function(Y,V,n){var T=n(69008),L=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function M(C){T.each(L,function(D){this[D]=T.bind(C[D],C)},this)}var w=M;Y.exports=w},2442:function(Y,V,n){var T=n(3096),L=n(69008);function M(w,C){L.each(C,function(D){D.update="updateView",T.registerAction(D,function(S,p){var v={};return p.eachComponent({mainType:"series",subType:w,query:S},function(t){t[D.method]&&t[D.method](S.name,S.dataIndex);var s=t.getData();s.each(function(i){var a=s.getName(i);v[a]=t.isSelected(a)||!1})}),{name:S.name,selected:v,seriesId:S.seriesId}})})}Y.exports=M},37406:function(Y,V,n){var T=n(3096),L=n(69008),M=n(66710),w=M.updateCenterAndZoom;T.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(C,D){var S=C.componentType||"series";D.eachComponent({mainType:S,query:C},function(p){var v=p.coordinateSystem;if(v.type==="geo"){var t=w(v,C,p.get("scaleLimit"));p.setCenter&&p.setCenter(t.center),p.setZoom&&p.setZoom(t.zoom),S==="series"&&L.each(p.seriesGroup,function(s){s.setCenter(t.center),s.setZoom(t.zoom)})}})})},66710:function(Y,V){function n(T,L,M){var w=T.getZoom(),C=T.getCenter(),D=L.zoom,S=T.dataToPoint(C);if(L.dx!=null&&L.dy!=null){S[0]-=L.dx,S[1]-=L.dy;var C=T.pointToData(S);T.setCenter(C)}if(D!=null){if(M){var p=M.min||0,v=M.max||1/0;D=Math.max(Math.min(w*D,v),p)/w}T.scale[0]*=D,T.scale[1]*=D;var t=T.position,s=(L.originX-t[0])*(D-1),i=(L.originY-t[1])*(D-1);t[0]-=s,t[1]-=i,T.updateTransform();var C=T.pointToData(S);T.setCenter(C),T.setZoom(D*w)}return{center:T.getCenter(),zoom:T.getZoom()}}V.updateCenterAndZoom=n},84168:function(Y,V,n){var T=n(3096),L=n(69008),M=n(64816),w=M.layout,C=M.largeLayout;n(40753),n(53634),n(3359),n(47102),T.registerLayout(T.PRIORITY.VISUAL.LAYOUT,L.curry(w,"bar")),T.registerLayout(T.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,C),T.registerVisual({seriesType:"bar",reset:function(D){D.getData().setVisual("legendSymbol","roundRect")}})},53634:function(Y,V,n){var T=n(89301),L=T.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var M=this.get("progressiveThreshold"),w=this.get("largeThreshold");return w>M&&(M=w),M},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}}});Y.exports=L},3359:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(18993),D=n(55692),S=D.setLabel,p=n(24040),v=n(14534),t=n(60397),s=n(27796),i=n(83209),a=i.throttle,u=n(38797),e=u.createClipPath,o=n(79330),r=["itemStyle","barBorderWidth"],l=[0,0];w.extend(p.prototype,v);function h(U,H){var z=U.getArea&&U.getArea();if(U.type==="cartesian2d"){var B=U.getBaseAxis();if(B.type!=="category"||!B.onBand){var k=H.getLayout("bandWidth");B.isHorizontal()?(z.x-=k,z.width+=k*2):(z.y-=k,z.height+=k*2)}}return z}var f=M.extendChartView({type:"bar",render:function(U,H,z){this._updateDrawMode(U);var B=U.get("coordinateSystem");return(B==="cartesian2d"||B==="polar")&&(this._isLargeDraw?this._renderLarge(U,H,z):this._renderNormal(U,H,z)),this.group},incrementalPrepareRender:function(U,H,z){this._clear(),this._updateDrawMode(U)},incrementalRender:function(U,H,z,B){this._incrementalRenderLarge(U,H)},_updateDrawMode:function(U){var H=U.pipelineContext.large;(this._isLargeDraw==null||H^this._isLargeDraw)&&(this._isLargeDraw=H,this._clear())},_renderNormal:function(U,H,z){var B=this.group,k=U.getData(),Z=this._data,X=U.coordinateSystem,K=X.getBaseAxis(),Q;X.type==="cartesian2d"?Q=K.isHorizontal():X.type==="polar"&&(Q=K.dim==="angle");var J=U.isAnimationEnabled()?U:null,tt=U.get("clip",!0),q=h(X,k);B.removeClipPath();var rt=U.get("roundCap",!0),$=U.get("showBackground",!0),j=U.getModel("backgroundStyle"),st=j.get("barBorderRadius")||0,ot=[],vt=this._backgroundEls||[];k.diff(Z).add(function(ut){var gt=k.getItemModel(ut),Ct=m[X.type](k,ut,gt);if($){var bt=m[X.type](k,ut),et=W(X,Q,bt);et.useStyle(j.getBarItemStyle()),X.type==="cartesian2d"&&et.setShape("r",st),ot[ut]=et}if(k.hasValue(ut)){if(tt){var lt=A[X.type](q,Ct);if(lt){B.remove(ht);return}}var ht=x[X.type](ut,Ct,Q,J,!1,rt);k.setItemGraphicEl(ut,ht),B.add(ht),I(ht,k,ut,gt,Ct,U,Q,X.type==="polar")}}).update(function(ut,gt){var Ct=k.getItemModel(ut),bt=m[X.type](k,ut,Ct);if($){var et=vt[gt];et.useStyle(j.getBarItemStyle()),X.type==="cartesian2d"&&et.setShape("r",st),ot[ut]=et;var lt=m[X.type](k,ut),ht=F(Q,lt,X);C.updateProps(et,{shape:ht},J,ut)}var pt=Z.getItemGraphicEl(gt);if(!k.hasValue(ut)){B.remove(pt);return}if(tt){var mt=A[X.type](q,bt);if(mt){B.remove(pt);return}}pt?C.updateProps(pt,{shape:bt},J,ut):pt=x[X.type](ut,bt,Q,J,!0,rt),k.setItemGraphicEl(ut,pt),B.add(pt),I(pt,k,ut,Ct,bt,U,Q,X.type==="polar")}).remove(function(ut){var gt=Z.getItemGraphicEl(ut);X.type==="cartesian2d"?gt&&y(ut,J,gt):gt&&g(ut,J,gt)}).execute();var yt=this._backgroundGroup||(this._backgroundGroup=new s);yt.removeAll();for(var it=0;it<ot.length;++it)yt.add(ot[it]);B.add(yt),this._backgroundEls=ot,this._data=k},_renderLarge:function(U,H,z){this._clear(),P(U,this.group);var B=U.get("clip",!0)?e(U.coordinateSystem,!1,U):null;B?this.group.setClipPath(B):this.group.removeClipPath()},_incrementalRenderLarge:function(U,H){this._removeBackground(),P(H,this.group,!0)},dispose:w.noop,remove:function(U){this._clear(U)},_clear:function(U){var H=this.group,z=this._data;U&&U.get("animation")&&z&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],z.eachItemGraphicEl(function(B){B.type==="sector"?g(B.dataIndex,U,B):y(B.dataIndex,U,B)})):H.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),c=Math.max,d=Math.min,A={cartesian2d:function(U,H){var z=H.width<0?-1:1,B=H.height<0?-1:1;z<0&&(H.x+=H.width,H.width=-H.width),B<0&&(H.y+=H.height,H.height=-H.height);var k=c(H.x,U.x),Z=d(H.x+H.width,U.x+U.width),X=c(H.y,U.y),K=d(H.y+H.height,U.y+U.height);H.x=k,H.y=X,H.width=Z-k,H.height=K-X;var Q=H.width<0||H.height<0;return z<0&&(H.x+=H.width,H.width=-H.width),B<0&&(H.y+=H.height,H.height=-H.height),Q},polar:function(U){return!1}},x={cartesian2d:function(U,H,z,B,k){var Z=new C.Rect({shape:w.extend({},H),z2:1});if(Z.name="item",B){var X=Z.shape,K=z?"height":"width",Q={};X[K]=0,Q[K]=H[K],C[k?"updateProps":"initProps"](Z,{shape:Q},B,U)}return Z},polar:function(U,H,z,B,k,Z){var X=H.startAngle<H.endAngle,K=!z&&Z?o:C.Sector,Q=new K({shape:w.defaults({clockwise:X},H),z2:1});if(Q.name="item",B){var J=Q.shape,tt=z?"r":"endAngle",q={};J[tt]=z?0:H.startAngle,q[tt]=H[tt],C[k?"updateProps":"initProps"](Q,{shape:q},B,U)}return Q}};function y(U,H,z){z.style.text=null,C.updateProps(z,{shape:{width:0}},H,U,function(){z.parent&&z.parent.remove(z)})}function g(U,H,z){z.style.text=null,C.updateProps(z,{shape:{r:z.shape.r0}},H,U,function(){z.parent&&z.parent.remove(z)})}var m={cartesian2d:function(U,H,z){var B=U.getItemLayout(H),k=z?R(z,B):0,Z=B.width>0?1:-1,X=B.height>0?1:-1;return{x:B.x+Z*k/2,y:B.y+X*k/2,width:B.width-Z*k,height:B.height-X*k}},polar:function(U,H,z){var B=U.getItemLayout(H);return{cx:B.cx,cy:B.cy,r0:B.r0,r:B.r,startAngle:B.startAngle,endAngle:B.endAngle}}};function b(U){return U.startAngle!=null&&U.endAngle!=null&&U.startAngle===U.endAngle}function I(U,H,z,B,k,Z,X,K){var Q=H.getItemVisual(z,"color"),J=H.getItemVisual(z,"opacity"),tt=H.getVisual("borderColor"),q=B.getModel("itemStyle"),rt=B.getModel("emphasis.itemStyle").getBarItemStyle();K||U.setShape("r",q.get("barBorderRadius")||0),U.useStyle(w.defaults({stroke:b(k)?"none":tt,fill:b(k)?"none":Q,opacity:J},q.getBarItemStyle()));var $=B.getShallow("cursor");$&&U.attr("cursor",$);var j=X?k.height>0?"bottom":"top":k.width>0?"left":"right";K||S(U.style,rt,B,Q,Z,z,j),b(k)&&(rt.fill=rt.stroke="none"),C.setHoverStyle(U,rt)}function R(U,H){var z=U.get(r)||0,B=isNaN(H.width)?Number.MAX_VALUE:Math.abs(H.width),k=isNaN(H.height)?Number.MAX_VALUE:Math.abs(H.height);return Math.min(z,B,k)}var E=t.extend({type:"largeBar",shape:{points:[]},buildPath:function(U,H){for(var z=H.points,B=this.__startPoint,k=this.__baseDimIdx,Z=0;Z<z.length;Z+=2)B[k]=z[Z+k],U.moveTo(B[0],B[1]),U.lineTo(z[Z],z[Z+1])}});function P(U,H,z){var B=U.getData(),k=[],Z=B.getLayout("valueAxisHorizontal")?1:0;k[1-Z]=B.getLayout("valueAxisStart");var X=B.getLayout("largeDataIndices"),K=B.getLayout("barWidth"),Q=U.getModel("backgroundStyle"),J=U.get("showBackground",!0);if(J){var tt=B.getLayout("largeBackgroundPoints"),q=[];q[1-Z]=B.getLayout("backgroundStart");var rt=new E({shape:{points:tt},incremental:!!z,__startPoint:q,__baseDimIdx:Z,__largeDataIndices:X,__barWidth:K,silent:!0,z2:0});G(rt,Q,B),H.add(rt)}var $=new E({shape:{points:B.getLayout("largePoints")},incremental:!!z,__startPoint:k,__baseDimIdx:Z,__largeDataIndices:X,__barWidth:K});H.add($),_($,U,B),$.seriesIndex=U.seriesIndex,U.get("silent")||($.on("mousedown",O),$.on("mousemove",O))}var O=a(function(U){var H=this,z=N(H,U.offsetX,U.offsetY);H.dataIndex=z>=0?z:null},30,!1);function N(U,H,z){var B=U.__baseDimIdx,k=1-B,Z=U.shape.points,X=U.__largeDataIndices,K=Math.abs(U.__barWidth/2),Q=U.__startPoint[k];l[0]=H,l[1]=z;for(var J=l[B],tt=l[1-B],q=J-K,rt=J+K,$=0,j=Z.length/2;$<j;$++){var st=$*2,ot=Z[st+B],vt=Z[st+k];if(ot>=q&&ot<=rt&&(Q<=vt?tt>=Q&&tt<=vt:tt>=vt&&tt<=Q))return X[$]}return-1}function _(U,H,z){var B=z.getVisual("borderColor")||z.getVisual("color"),k=H.getModel("itemStyle").getItemStyle(["color","borderColor"]);U.useStyle(k),U.style.fill=null,U.style.stroke=B,U.style.lineWidth=z.getLayout("barWidth")}function G(U,H,z){var B=H.get("borderColor")||H.get("color"),k=H.getItemStyle(["color","borderColor"]);U.useStyle(k),U.style.fill=null,U.style.stroke=B,U.style.lineWidth=z.getLayout("barWidth")}function F(U,H,z){var B,k=z.type==="polar";return k?B=z.getArea():B=z.grid.getRect(),k?{cx:B.cx,cy:B.cy,r0:U?B.r0:H.r0,r:U?B.r:H.r,startAngle:U?H.startAngle:0,endAngle:U?H.endAngle:Math.PI*2}:{x:U?H.x:B.x,y:U?B.y:H.y,width:U?H.width:B.width,height:U?B.height:H.height}}function W(U,H,z){var B=U.type==="polar"?C.Sector:C.Rect;return new B({shape:F(H,z,U),silent:!0,z2:0})}Y.exports=f},89301:function(Y,V,n){var T=n(38645),L=n(32977),M=T.extend({type:"series.__base_bar__",getInitialData:function(w,C){return L(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(w){var C=this.coordinateSystem;if(C){var D=C.dataToPoint(C.clampData(w)),S=this.getData(),p=S.getLayout("offset"),v=S.getLayout("size"),t=C.getBaseAxis().isHorizontal()?0:1;return D[t]+=p+v/2,D}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});Y.exports=M},59903:function(Y,V,n){var T=n(89301),L=T.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(w){return w.stack=null,L.superApply(this,"getInitialData",arguments)}}),M=L;Y.exports=M},31061:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993),w=n(22868),C=w.createSymbol,D=n(86957),S=D.parsePercent,p=D.isNumeric,v=n(55692),t=v.setLabel,s=["itemStyle","borderWidth"],i=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],a=new M.Circle,u=T.extendChartView({type:"pictorialBar",render:function(U,H,z){var B=this.group,k=U.getData(),Z=this._data,X=U.coordinateSystem,K=X.getBaseAxis(),Q=!!K.isHorizontal(),J=X.grid.getRect(),tt={ecSize:{width:z.getWidth(),height:z.getHeight()},seriesModel:U,coordSys:X,coordSysExtent:[[J.x,J.x+J.width],[J.y,J.y+J.height]],isHorizontal:Q,valueDim:i[+Q],categoryDim:i[1-Q]};return k.diff(Z).add(function(q){if(k.hasValue(q)){var rt=g(k,q),$=e(k,q,rt,tt),j=R(k,tt,$);k.setItemGraphicEl(q,j),B.add(j),G(j,tt,$)}}).update(function(q,rt){var $=Z.getItemGraphicEl(rt);if(!k.hasValue(q)){B.remove($);return}var j=g(k,q),st=e(k,q,j,tt),ot=O(k,st);$&&ot!==$.__pictorialShapeStr&&(B.remove($),k.setItemGraphicEl(q,null),$=null),$?E($,tt,st):$=R(k,tt,st,!0),k.setItemGraphicEl(q,$),$.__pictorialSymbolMeta=st,B.add($),G($,tt,st)}).remove(function(q){var rt=Z.getItemGraphicEl(q);rt&&P(Z,q,rt.__pictorialSymbolMeta.animationModel,rt)}).execute(),this._data=k,this.group},dispose:L.noop,remove:function(U,H){var z=this.group,B=this._data;U.get("animation")?B&&B.eachItemGraphicEl(function(k){P(B,k.dataIndex,U,k)}):z.removeAll()}});function e(U,H,z,B){var k=U.getItemLayout(H),Z=z.get("symbolRepeat"),X=z.get("symbolClip"),K=z.get("symbolPosition")||"start",Q=z.get("symbolRotate"),J=(Q||0)*Math.PI/180||0,tt=z.get("symbolPatternSize")||2,q=z.isAnimationEnabled(),rt={dataIndex:H,layout:k,itemModel:z,symbolType:U.getItemVisual(H,"symbol")||"circle",color:U.getItemVisual(H,"color"),symbolClip:X,symbolRepeat:Z,symbolRepeatDirection:z.get("symbolRepeatDirection"),symbolPatternSize:tt,rotation:J,animationModel:q?z:null,hoverAnimation:q&&z.get("hoverAnimation"),z2:z.getShallow("z",!0)||0};o(z,Z,k,B,rt),l(U,H,k,Z,X,rt.boundingLength,rt.pxSign,tt,B,rt),h(z,rt.symbolScale,J,B,rt);var $=rt.symbolSize,j=z.get("symbolOffset");return L.isArray(j)&&(j=[S(j[0],$[0]),S(j[1],$[1])]),f(z,$,k,Z,X,j,K,rt.valueLineWidth,rt.boundingLength,rt.repeatCutLength,B,rt),rt}function o(U,H,z,B,k){var Z=B.valueDim,X=U.get("symbolBoundingData"),K=B.coordSys.getOtherAxis(B.coordSys.getBaseAxis()),Q=K.toGlobalCoord(K.dataToCoord(0)),J=1-+(z[Z.wh]<=0),tt;if(L.isArray(X)){var q=[r(K,X[0])-Q,r(K,X[1])-Q];q[1]<q[0]&&q.reverse(),tt=q[J]}else X!=null?tt=r(K,X)-Q:H?tt=B.coordSysExtent[Z.index][J]-Q:tt=z[Z.wh];k.boundingLength=tt,H&&(k.repeatCutLength=z[Z.wh]),k.pxSign=tt>0?1:tt<0?-1:0}function r(U,H){return U.toGlobalCoord(U.dataToCoord(U.scale.parse(H)))}function l(U,H,z,B,k,Z,X,K,Q,J){var tt=Q.valueDim,q=Q.categoryDim,rt=Math.abs(z[q.wh]),$=U.getItemVisual(H,"symbolSize");L.isArray($)?$=$.slice():($==null&&($="100%"),$=[$,$]),$[q.index]=S($[q.index],rt),$[tt.index]=S($[tt.index],B?rt:Math.abs(Z)),J.symbolSize=$;var j=J.symbolScale=[$[0]/K,$[1]/K];j[tt.index]*=(Q.isHorizontal?-1:1)*X}function h(U,H,z,B,k){var Z=U.get(s)||0;Z&&(a.attr({scale:H.slice(),rotation:z}),a.updateTransform(),Z/=a.getLineScale(),Z*=H[B.valueDim.index]),k.valueLineWidth=Z}function f(U,H,z,B,k,Z,X,K,Q,J,tt,q){var rt=tt.categoryDim,$=tt.valueDim,j=q.pxSign,st=Math.max(H[$.index]+K,0),ot=st;if(B){var vt=Math.abs(Q),yt=L.retrieve(U.get("symbolMargin"),"15%")+"",it=!1;yt.lastIndexOf("!")===yt.length-1&&(it=!0,yt=yt.slice(0,yt.length-1)),yt=S(yt,H[$.index]);var ut=Math.max(st+yt*2,0),gt=it?0:yt*2,Ct=p(B),bt=Ct?B:F((vt+gt)/ut),et=vt-bt*st;yt=et/2/(it?bt:bt-1),ut=st+yt*2,gt=it?0:yt*2,!Ct&&B!=="fixed"&&(bt=J?F((Math.abs(J)+gt)/ut):0),ot=bt*ut-gt,q.repeatTimes=bt,q.symbolMargin=yt}var lt=j*(ot/2),ht=q.pathPosition=[];ht[rt.index]=z[rt.wh]/2,ht[$.index]=X==="start"?lt:X==="end"?Q-lt:Q/2,Z&&(ht[0]+=Z[0],ht[1]+=Z[1]);var pt=q.bundlePosition=[];pt[rt.index]=z[rt.xy],pt[$.index]=z[$.xy];var mt=q.barRectShape=L.extend({},z);mt[$.wh]=j*Math.max(Math.abs(z[$.wh]),Math.abs(ht[$.index]+lt)),mt[rt.wh]=z[rt.wh];var ft=q.clipShape={};ft[rt.xy]=-z[rt.xy],ft[rt.wh]=tt.ecSize[rt.wh],ft[$.xy]=0,ft[$.wh]=z[$.wh]}function c(U){var H=U.symbolPatternSize,z=C(U.symbolType,-H/2,-H/2,H,H,U.color);return z.attr({culling:!0}),z.type!=="image"&&z.setStyle({strokeNoScale:!0}),z}function d(U,H,z,B){var k=U.__pictorialBundle,Z=z.symbolSize,X=z.valueLineWidth,K=z.pathPosition,Q=H.valueDim,J=z.repeatTimes||0,tt=0,q=Z[H.valueDim.index]+X+z.symbolMargin*2;for(N(U,function(vt){vt.__pictorialAnimationIndex=tt,vt.__pictorialRepeatTimes=J,tt<J?_(vt,null,j(tt),z,B):_(vt,null,{scale:[0,0]},z,B,function(){k.remove(vt)}),I(vt,z),tt++});tt<J;tt++){var rt=c(z);rt.__pictorialAnimationIndex=tt,rt.__pictorialRepeatTimes=J,k.add(rt);var $=j(tt);_(rt,{position:$.position,scale:[0,0]},{scale:$.scale,rotation:$.rotation},z,B),rt.on("mouseover",st).on("mouseout",ot),I(rt,z)}function j(vt){var yt=K.slice(),it=z.pxSign,ut=vt;return(z.symbolRepeatDirection==="start"?it>0:it<0)&&(ut=J-1-vt),yt[Q.index]=q*(ut-J/2+.5)+K[Q.index],{position:yt,scale:z.symbolScale.slice(),rotation:z.rotation}}function st(){N(U,function(vt){vt.trigger("emphasis")})}function ot(){N(U,function(vt){vt.trigger("normal")})}}function A(U,H,z,B){var k=U.__pictorialBundle,Z=U.__pictorialMainPath;Z?_(Z,null,{position:z.pathPosition.slice(),scale:z.symbolScale.slice(),rotation:z.rotation},z,B):(Z=U.__pictorialMainPath=c(z),k.add(Z),_(Z,{position:z.pathPosition.slice(),scale:[0,0],rotation:z.rotation},{scale:z.symbolScale.slice()},z,B),Z.on("mouseover",X).on("mouseout",K)),I(Z,z);function X(){this.trigger("emphasis")}function K(){this.trigger("normal")}}function x(U,H,z){var B=L.extend({},H.barRectShape),k=U.__pictorialBarRect;k?_(k,null,{shape:B},H,z):(k=U.__pictorialBarRect=new M.Rect({z2:2,shape:B,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),U.add(k))}function y(U,H,z,B){if(z.symbolClip){var k=U.__pictorialClipPath,Z=L.extend({},z.clipShape),X=H.valueDim,K=z.animationModel,Q=z.dataIndex;if(k)M.updateProps(k,{shape:Z},K,Q);else{Z[X.wh]=0,k=new M.Rect({shape:Z}),U.__pictorialBundle.setClipPath(k),U.__pictorialClipPath=k;var J={};J[X.wh]=z.clipShape[X.wh],M[B?"updateProps":"initProps"](k,{shape:J},K,Q)}}}function g(U,H){var z=U.getItemModel(H);return z.getAnimationDelayParams=m,z.isAnimationEnabled=b,z}function m(U){return{index:U.__pictorialAnimationIndex,count:U.__pictorialRepeatTimes}}function b(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(U,H){U.off("emphasis").off("normal");var z=H.symbolScale.slice();H.hoverAnimation&&U.on("emphasis",function(){this.animateTo({scale:[z[0]*1.1,z[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:z.slice()},400,"elasticOut")})}function R(U,H,z,B){var k=new M.Group,Z=new M.Group;return k.add(Z),k.__pictorialBundle=Z,Z.attr("position",z.bundlePosition.slice()),z.symbolRepeat?d(k,H,z):A(k,H,z),x(k,z,B),y(k,H,z,B),k.__pictorialShapeStr=O(U,z),k.__pictorialSymbolMeta=z,k}function E(U,H,z){var B=z.animationModel,k=z.dataIndex,Z=U.__pictorialBundle;M.updateProps(Z,{position:z.bundlePosition.slice()},B,k),z.symbolRepeat?d(U,H,z,!0):A(U,H,z,!0),x(U,z,!0),y(U,H,z,!0)}function P(U,H,z,B){var k=B.__pictorialBarRect;k&&(k.style.text=null);var Z=[];N(B,function(X){Z.push(X)}),B.__pictorialMainPath&&Z.push(B.__pictorialMainPath),B.__pictorialClipPath&&(z=null),L.each(Z,function(X){M.updateProps(X,{scale:[0,0]},z,H,function(){B.parent&&B.parent.remove(B)})}),U.setItemGraphicEl(H,null)}function O(U,H){return[U.getItemVisual(H.dataIndex,"symbol")||"none",!!H.symbolRepeat,!!H.symbolClip].join(":")}function N(U,H,z){L.each(U.__pictorialBundle.children(),function(B){B!==U.__pictorialBarRect&&H.call(z,B)})}function _(U,H,z,B,k,Z){H&&U.attr(H),B.symbolClip&&!k?z&&U.attr(z):z&&M[k?"updateProps":"initProps"](U,z,B.animationModel,B.dataIndex,Z)}function G(U,H,z){var B=z.color,k=z.dataIndex,Z=z.itemModel,X=Z.getModel("itemStyle").getItemStyle(["color"]),K=Z.getModel("emphasis.itemStyle").getItemStyle(),Q=Z.getShallow("cursor");N(U,function(rt){rt.setColor(B),rt.setStyle(L.defaults({fill:B,opacity:z.opacity},X)),M.setHoverStyle(rt,K),Q&&(rt.cursor=Q),rt.z2=z.z2});var J={},tt=H.valueDim.posDesc[+(z.boundingLength>0)],q=U.__pictorialBarRect;t(q.style,J,Z,B,H.seriesModel,k,tt),M.setHoverStyle(q,J)}function F(U){var H=Math.round(U);return Math.abs(U-H)<1e-4?H:Math.ceil(U)}var W=u;Y.exports=W},14534:function(Y,V,n){var T=n(76282),L=T([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),M={getBarItemStyle:function(w){var C=L(this,w);if(this.getBorderLineDash){var D=this.getBorderLineDash();D&&(C.lineDash=D)}return C}};Y.exports=M},55692:function(Y,V,n){var T=n(18993),L=n(38113),M=L.getDefaultLabel;function w(D,S,p,v,t,s,i){var a=p.getModel("label"),u=p.getModel("emphasis.label");T.setLabelStyle(D,S,a,u,{labelFetcher:t,labelDataIndex:s,defaultText:M(t.getData(),s),isRectText:!0,autoColor:v}),C(D),C(S)}function C(D,S){D.textPosition==="outside"&&(D.textPosition=S)}V.setLabel=w},56696:function(Y,V,n){var T=n(3096);n(3673),n(41831);var L=n(498),M=n(22303);T.registerVisual(L),T.registerLayout(M)},3673:function(Y,V,n){var T=n(69008),L=n(38645),M=n(45112),w=M.seriesModelMixin,C=L.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});T.mixin(C,w,!0);var D=C;Y.exports=D},41831:function(Y,V,n){var T=n(69008),L=n(68880),M=n(18993),w=n(60397),C=["itemStyle"],D=["emphasis","itemStyle"],S=L.extend({type:"boxplot",render:function(a,u,e){var o=a.getData(),r=this.group,l=this._data;this._data||r.removeAll();var h=a.get("layout")==="horizontal"?1:0;o.diff(l).add(function(f){if(o.hasValue(f)){var c=o.getItemLayout(f),d=v(c,o,f,h,!0);o.setItemGraphicEl(f,d),r.add(d)}}).update(function(f,c){var d=l.getItemGraphicEl(c);if(!o.hasValue(f)){r.remove(d);return}var A=o.getItemLayout(f);d?t(A,d,o,f):d=v(A,o,f,h),r.add(d),o.setItemGraphicEl(f,d)}).remove(function(f){var c=l.getItemGraphicEl(f);c&&r.remove(c)}).execute(),this._data=o},remove:function(a){var u=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(o){o&&u.remove(o)})},dispose:T.noop}),p=w.extend({type:"boxplotBoxPath",shape:{},buildPath:function(a,u){var e=u.points,o=0;for(a.moveTo(e[o][0],e[o][1]),o++;o<4;o++)a.lineTo(e[o][0],e[o][1]);for(a.closePath();o<e.length;o++)a.moveTo(e[o][0],e[o][1]),o++,a.lineTo(e[o][0],e[o][1])}});function v(a,u,e,o,r){var l=a.ends,h=new p({shape:{points:r?s(l,o,a):l}});return t(a,h,u,e,r),h}function t(a,u,e,o,r){var l=e.hostModel,h=M[r?"initProps":"updateProps"];h(u,{shape:{points:a.ends}},l,o);var f=e.getItemModel(o),c=f.getModel(C),d=e.getItemVisual(o,"color"),A=c.getItemStyle(["borderColor"]);A.stroke=d,A.strokeNoScale=!0,u.useStyle(A),u.z2=100;var x=f.getModel(D).getItemStyle();M.setHoverStyle(u,x)}function s(a,u,e){return T.map(a,function(o){return o=o.slice(),o[u]=e.initBaseline,o})}var i=S;Y.exports=i},22303:function(Y,V,n){var T=n(69008),L=n(86957),M=L.parsePercent,w=T.each;function C(v){var t=D(v);w(t,function(s){var i=s.seriesModels;i.length&&(S(s),w(i,function(a,u){p(a,s.boxOffsetList[u],s.boxWidthList[u])}))})}function D(v){var t=[],s=[];return v.eachSeriesByType("boxplot",function(i){var a=i.getBaseAxis(),u=T.indexOf(s,a);u<0&&(u=s.length,s[u]=a,t[u]={axis:a,seriesModels:[]}),t[u].seriesModels.push(i)}),t}function S(v){var t,s=v.axis,i=v.seriesModels,a=i.length,u=v.boxWidthList=[],e=v.boxOffsetList=[],o=[],r;if(s.type==="category")r=s.getBandWidth();else{var l=0;w(i,function(A){l=Math.max(l,A.getData().count())}),t=s.getExtent(),Math.abs(t[1]-t[0])/l}w(i,function(A){var x=A.get("boxWidth");T.isArray(x)||(x=[x,x]),o.push([M(x[0],r)||0,M(x[1],r)||0])});var h=r*.8-2,f=h/a*.3,c=(h-f*(a-1))/a,d=c/2-h/2;w(i,function(A,x){e.push(d),d+=f+c,u.push(Math.min(Math.max(c,o[x][0]),o[x][1]))})}function p(v,t,s){var i=v.coordinateSystem,a=v.getData(),u=s/2,e=v.get("layout")==="horizontal"?0:1,o=1-e,r=["x","y"],l=a.mapDimension(r[e]),h=a.mapDimension(r[o],!0);if(l==null||h.length<5)return;for(var f=0;f<a.count();f++){var c=a.get(l,f),d=b(c,h[2],f),A=b(c,h[0],f),x=b(c,h[1],f),y=b(c,h[3],f),g=b(c,h[4],f),m=[];I(m,x,0),I(m,y,1),m.push(A,x,g,y),R(m,A),R(m,g),R(m,d),a.setItemLayout(f,{initBaseline:d[o],ends:m})}function b(E,P,O){var N=a.get(P,O),_=[];_[e]=E,_[o]=N;var G;return isNaN(E)||isNaN(N)?G=[NaN,NaN]:(G=i.dataToPoint(_),G[e]+=t),G}function I(E,P,O){var N=P.slice(),_=P.slice();N[e]+=u,_[e]-=u,O?E.push(N,_):E.push(_,N)}function R(E,P){var O=P.slice(),N=P.slice();O[e]-=u,N[e]+=u,E.push(O,N)}}Y.exports=C},498:function(Y){var V=["itemStyle","borderColor"];function n(T,L){var M=T.get("color");T.eachRawSeriesByType("boxplot",function(w){var C=M[w.seriesIndex%M.length],D=w.getData();D.setVisual({legendSymbol:"roundRect",color:w.get(V)||C}),T.isSeriesFiltered(w)||D.each(function(S){var p=D.getItemModel(S);D.setItemVisual(S,{color:p.get(V,!0)})})})}Y.exports=n},75230:function(Y,V,n){var T=n(3096);n(7555),n(30570);var L=n(38368),M=n(42688),w=n(7898);T.registerPreprocessor(L),T.registerVisual(M),T.registerLayout(w)},7555:function(Y,V,n){var T=n(69008),L=n(38645),M=n(45112),w=M.seriesModelMixin,C=L.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(S,p,v){var t=p.getItemLayout(S);return t&&v.rect(t.brushRect)}});T.mixin(C,w,!0);var D=C;Y.exports=D},30570:function(Y,V,n){var T=n(69008),L=n(68880),M=n(18993),w=n(60397),C=n(38797),D=C.createClipPath,S=["itemStyle"],p=["emphasis","itemStyle"],v=["color","color0","borderColor","borderColor0"],t=L.extend({type:"candlestick",render:function(f,c,d){this.group.removeClipPath(),this._updateDrawMode(f),this._isLargeDraw?this._renderLarge(f):this._renderNormal(f)},incrementalPrepareRender:function(f,c,d){this._clear(),this._updateDrawMode(f)},incrementalRender:function(f,c,d,A){this._isLargeDraw?this._incrementalRenderLarge(f,c):this._incrementalRenderNormal(f,c)},_updateDrawMode:function(f){var c=f.pipelineContext.large;(this._isLargeDraw==null||c^this._isLargeDraw)&&(this._isLargeDraw=c,this._clear())},_renderNormal:function(f){var c=f.getData(),d=this._data,A=this.group,x=c.getLayout("isSimpleBox"),y=f.get("clip",!0),g=f.coordinateSystem,m=g.getArea&&g.getArea();this._data||A.removeAll(),c.diff(d).add(function(b){if(c.hasValue(b)){var I,R=c.getItemLayout(b);if(y&&a(m,R))return;I=i(R,b,!0),M.initProps(I,{shape:{points:R.ends}},f,b),u(I,c,b,x),A.add(I),c.setItemGraphicEl(b,I)}}).update(function(b,I){var R=d.getItemGraphicEl(I);if(!c.hasValue(b)){A.remove(R);return}var E=c.getItemLayout(b);if(y&&a(m,E)){A.remove(R);return}R?M.updateProps(R,{shape:{points:E.ends}},f,b):R=i(E,b),u(R,c,b,x),A.add(R),c.setItemGraphicEl(b,R)}).remove(function(b){var I=d.getItemGraphicEl(b);I&&A.remove(I)}).execute(),this._data=c},_renderLarge:function(f){this._clear(),r(f,this.group);var c=f.get("clip",!0)?D(f.coordinateSystem,!1,f):null;c?this.group.setClipPath(c):this.group.removeClipPath()},_incrementalRenderNormal:function(f,c){for(var d=c.getData(),A=d.getLayout("isSimpleBox"),x;(x=f.next())!=null;){var y,g=d.getItemLayout(x);y=i(g,x),u(y,d,x,A),y.incremental=!0,this.group.add(y)}},_incrementalRenderLarge:function(f,c){r(c,this.group,!0)},remove:function(f){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:T.noop}),s=w.extend({type:"normalCandlestickBox",shape:{},buildPath:function(f,c){var d=c.points;this.__simpleBox?(f.moveTo(d[4][0],d[4][1]),f.lineTo(d[6][0],d[6][1])):(f.moveTo(d[0][0],d[0][1]),f.lineTo(d[1][0],d[1][1]),f.lineTo(d[2][0],d[2][1]),f.lineTo(d[3][0],d[3][1]),f.closePath(),f.moveTo(d[4][0],d[4][1]),f.lineTo(d[5][0],d[5][1]),f.moveTo(d[6][0],d[6][1]),f.lineTo(d[7][0],d[7][1]))}});function i(f,c,d){var A=f.ends;return new s({shape:{points:d?e(A,f):A},z2:100})}function a(f,c){for(var d=!0,A=0;A<c.ends.length;A++)if(f.contain(c.ends[A][0],c.ends[A][1])){d=!1;break}return d}function u(f,c,d,A){var x=c.getItemModel(d),y=x.getModel(S),g=c.getItemVisual(d,"color"),m=c.getItemVisual(d,"borderColor")||g,b=y.getItemStyle(v);f.useStyle(b),f.style.strokeNoScale=!0,f.style.fill=g,f.style.stroke=m,f.__simpleBox=A;var I=x.getModel(p).getItemStyle();M.setHoverStyle(f,I)}function e(f,c){return T.map(f,function(d){return d=d.slice(),d[1]=c.initBaseline,d})}var o=w.extend({type:"largeCandlestickBox",shape:{},buildPath:function(f,c){for(var d=c.points,A=0;A<d.length;)if(this.__sign===d[A++]){var x=d[A++];f.moveTo(x,d[A++]),f.lineTo(x,d[A++])}else A+=3}});function r(f,c,d){var A=f.getData(),x=A.getLayout("largePoints"),y=new o({shape:{points:x},__sign:1});c.add(y);var g=new o({shape:{points:x},__sign:-1});c.add(g),l(1,y,f,A),l(-1,g,f,A),d&&(y.incremental=!0,g.incremental=!0)}function l(f,c,d,A){var x=f>0?"P":"N",y=A.getVisual("borderColor"+x)||A.getVisual("color"+x),g=d.getModel(S).getItemStyle(v);c.useStyle(g),c.style.fill=null,c.style.stroke=y}var h=t;Y.exports=h},7898:function(Y,V,n){var T=n(18993),L=T.subPixelOptimize,M=n(13861),w=n(86957),C=w.parsePercent,D=n(69008),S=D.retrieve2,p=typeof Float32Array!="undefined"?Float32Array:Array,v={seriesType:"candlestick",plan:M(),reset:function(i){var a=i.coordinateSystem,u=i.getData(),e=s(i,u),o=0,r=1,l=["x","y"],h=u.mapDimension(l[o]),f=u.mapDimension(l[r],!0),c=f[0],d=f[1],A=f[2],x=f[3];if(u.setLayout({candleWidth:e,isSimpleBox:e<=1.3}),h==null||f.length<4)return;return{progress:i.pipelineContext.large?g:y};function y(m,b){for(var I;(I=m.next())!=null;){var R=b.get(h,I),E=b.get(c,I),P=b.get(d,I),O=b.get(A,I),N=b.get(x,I),_=Math.min(E,P),G=Math.max(E,P),F=B(_,R),W=B(G,R),U=B(O,R),H=B(N,R),z=[];k(z,W,0),k(z,F,1),z.push(X(H),X(W),X(U),X(F)),b.setItemLayout(I,{sign:t(b,I,E,P,d),initBaseline:E>P?W[r]:F[r],ends:z,brushRect:Z(O,N,R)})}function B(K,Q){var J=[];return J[o]=Q,J[r]=K,isNaN(Q)||isNaN(K)?[NaN,NaN]:a.dataToPoint(J)}function k(K,Q,J){var tt=Q.slice(),q=Q.slice();tt[o]=L(tt[o]+e/2,1,!1),q[o]=L(q[o]-e/2,1,!0),J?K.push(tt,q):K.push(q,tt)}function Z(K,Q,J){var tt=B(K,J),q=B(Q,J);return tt[o]-=e/2,q[o]-=e/2,{x:tt[0],y:tt[1],width:r?e:q[0]-tt[0],height:r?q[1]-tt[1]:e}}function X(K){return K[o]=L(K[o],1),K}}function g(m,b){for(var I=new p(m.count*4),R=0,E,P=[],O=[],N;(N=m.next())!=null;){var _=b.get(h,N),G=b.get(c,N),F=b.get(d,N),W=b.get(A,N),U=b.get(x,N);if(isNaN(_)||isNaN(W)||isNaN(U)){I[R++]=NaN,R+=3;continue}I[R++]=t(b,N,G,F,d),P[o]=_,P[r]=W,E=a.dataToPoint(P,null,O),I[R++]=E?E[0]:NaN,I[R++]=E?E[1]:NaN,P[r]=U,E=a.dataToPoint(P,null,O),I[R++]=E?E[1]:NaN}b.setLayout("largePoints",I)}}};function t(i,a,u,e,o){var r;return u>e?r=-1:u<e?r=1:r=a>0?i.get(o,a-1)<=e?1:-1:1,r}function s(i,a){var u=i.getBaseAxis(),e,o=u.type==="category"?u.getBandWidth():(e=u.getExtent(),Math.abs(e[1]-e[0])/a.count()),r=C(S(i.get("barMaxWidth"),o),o),l=C(S(i.get("barMinWidth"),1),o),h=i.get("barWidth");return h!=null?C(h,o):Math.max(Math.min(o/2,r),l)}Y.exports=v},42688:function(Y,V,n){var T=n(13861),L=["itemStyle","borderColor"],M=["itemStyle","borderColor0"],w=["itemStyle","color"],C=["itemStyle","color0"],D={seriesType:"candlestick",plan:T(),performRawSeries:!0,reset:function(S,p){var v=S.getData();if(v.setVisual({legendSymbol:"roundRect",colorP:i(1,S),colorN:i(-1,S),borderColorP:a(1,S),borderColorN:a(-1,S)}),p.isSeriesFiltered(S))return;var t=S.pipelineContext.large;return!t&&{progress:s};function s(u,e){for(var o;(o=u.next())!=null;){var r=e.getItemModel(o),l=e.getItemLayout(o).sign;e.setItemVisual(o,{color:i(l,r),borderColor:a(l,r)})}}function i(u,e){return e.get(u>0?w:C)}function a(u,e){return e.get(u>0?L:M)}}};Y.exports=D},38368:function(Y,V,n){var T=n(69008);function L(M){!M||!T.isArray(M.series)||T.each(M.series,function(w){T.isObject(w)&&w.type==="k"&&(w.type="candlestick")})}Y.exports=L},47468:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(18993),C=n(38113),D=C.getDefaultLabel,S=n(32977),p=n(64816),v=p.getLayoutOnAxis,t=n(82383),s=n(38645),i=n(24040),a=n(68880),u=n(38797),e=u.createClipPath,o=n(40114),r=n(8058),l=n(66848),h=n(69171),f=n(41675),c=w.CACHED_LABEL_STYLE_PROPERTIES,d=["itemStyle"],A=["emphasis","itemStyle"],x=["label"],y=["emphasis","label"],g="e\0\0",m={cartesian2d:o,geo:r,singleAxis:l,polar:h,calendar:f};s.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(X,K){return S(this.getSource(),this)},getDataParams:function(X,K,Q){var J=s.prototype.getDataParams.apply(this,arguments);return Q&&(J.info=Q.info),J}}),a.extend({type:"custom",_data:null,render:function(X,K,Q,J){var tt=this._data,q=X.getData(),rt=this.group,$=E(X,q,K,Q);q.diff(tt).add(function(st){O(null,st,$(st,J),X,rt,q)}).update(function(st,ot){var vt=tt.getItemGraphicEl(ot);O(vt,st,$(st,J),X,rt,q)}).remove(function(st){var ot=tt.getItemGraphicEl(st);ot&&rt.remove(ot)}).execute();var j=X.get("clip",!0)?e(X.coordinateSystem,!1,X):null;j?rt.setClipPath(j):rt.removeClipPath(),this._data=q},incrementalPrepareRender:function(X,K,Q){this.group.removeAll(),this._data=null},incrementalRender:function(X,K,Q,J,tt){var q=K.getData(),rt=E(K,q,Q,J);function $(ot){ot.isGroup||(ot.incremental=!0,ot.useHoverLayer=!0)}for(var j=X.start;j<X.end;j++){var st=O(null,j,rt(j,tt),K,this.group,q);st.traverse($)}},dispose:M.noop,filterForExposedEvent:function(X,K,Q,J){var tt=K.element;if(tt==null||Q.name===tt)return!0;for(;(Q=Q.parent)&&Q!==this.group;)if(Q.name===tt)return!0;return!1}});function b(X){var K=X.type,Q;if(K==="path"){var J=X.shape,tt=J.width!=null&&J.height!=null?{x:J.x||0,y:J.y||0,width:J.width,height:J.height}:null,q=B(J);Q=w.makePath(q,null,tt,J.layout||"center"),Q.__customPathData=q}else if(K==="image")Q=new w.Image({}),Q.__customImagePath=X.style.image;else if(K==="text")Q=new w.Text({}),Q.__customText=X.style.text;else if(K==="group")Q=new w.Group;else{if(K==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var rt=w.getShapeClass(K);Q=new rt}return Q.__customGraphicType=K,Q.name=X.name,Q}function I(X,K,Q,J,tt,q,rt){var $={},j=Q.style||{};if(Q.shape&&($.shape=M.clone(Q.shape)),Q.position&&($.position=Q.position.slice()),Q.scale&&($.scale=Q.scale.slice()),Q.origin&&($.origin=Q.origin.slice()),Q.rotation&&($.rotation=Q.rotation),X.type==="image"&&Q.style){var st=$.style={};M.each(["x","y","width","height"],function(yt){R(yt,st,j,X.style,q)})}if(X.type==="text"&&Q.style){var st=$.style={};M.each(["x","y"],function(it){R(it,st,j,X.style,q)}),!j.hasOwnProperty("textFill")&&j.fill&&(j.textFill=j.fill),!j.hasOwnProperty("textStroke")&&j.stroke&&(j.textStroke=j.stroke)}if(X.type!=="group"&&(X.useStyle(j),q)){X.style.opacity=0;var ot=j.opacity;ot==null&&(ot=1),w.initProps(X,{style:{opacity:ot}},J,K)}q?X.attr($):w.updateProps(X,$,J,K),Q.hasOwnProperty("z2")&&X.attr("z2",Q.z2||0),Q.hasOwnProperty("silent")&&X.attr("silent",Q.silent),Q.hasOwnProperty("invisible")&&X.attr("invisible",Q.invisible),Q.hasOwnProperty("ignore")&&X.attr("ignore",Q.ignore),Q.hasOwnProperty("info")&&X.attr("info",Q.info);var vt=Q.styleEmphasis;w.setElementHoverStyle(X,vt),rt&&w.setAsHighDownDispatcher(X,vt!==!1)}function R(X,K,Q,J,tt){Q[X]!=null&&!tt&&(K[X]=Q[X],Q[X]=J[X])}function E(X,K,Q,J){var tt=X.get("renderItem"),q=X.coordinateSystem,rt={};q&&(rt=q.prepareCustoms?q.prepareCustoms():m[q.type](q));var $=M.defaults({getWidth:J.getWidth,getHeight:J.getHeight,getZr:J.getZr,getDevicePixelRatio:J.getDevicePixelRatio,value:Ct,style:bt,styleEmphasis:et,visual:lt,barLayout:ht,currentSeriesIndices:pt,font:mt},rt.api||{}),j={context:{},seriesId:X.id,seriesName:X.name,seriesIndex:X.seriesIndex,coordSys:rt.coordSys,dataInsideLength:K.count(),encode:P(X.getData())},st,ot=!0,vt,yt,it,ut;return function(ft,xt){return st=ft,ot=!0,tt&&tt(M.defaults({dataIndexInside:ft,dataIndex:K.getRawIndex(ft),actionType:xt?xt.type:null},j),$)};function gt(ft){ft==null&&(ft=st),ot&&(vt=K.getItemModel(ft),yt=vt.getModel(x),it=vt.getModel(y),ut=K.getItemVisual(ft,"color"),ot=!1)}function Ct(ft,xt){return xt==null&&(xt=st),K.get(K.getDimension(ft||0),xt)}function bt(ft,xt){xt==null&&(xt=st),gt(xt);var Mt=vt.getModel(d).getItemStyle();ut!=null&&(Mt.fill=ut);var Pt=K.getItemVisual(xt,"opacity");Pt!=null&&(Mt.opacity=Pt);var Rt=ft?U(ft,yt):yt;return w.setTextStyle(Mt,Rt,null,{autoColor:ut,isRectText:!0}),Mt.text=Rt.getShallow("show")?M.retrieve2(X.getFormattedLabel(xt,"normal"),D(K,xt)):null,ft&&H(Mt,ft),Mt}function et(ft,xt){xt==null&&(xt=st),gt(xt);var Mt=vt.getModel(A).getItemStyle(),Pt=ft?U(ft,it):it;return w.setTextStyle(Mt,Pt,null,{isRectText:!0},!0),Mt.text=Pt.getShallow("show")?M.retrieve3(X.getFormattedLabel(xt,"emphasis"),X.getFormattedLabel(xt,"normal"),D(K,xt)):null,ft&&H(Mt,ft),Mt}function lt(ft,xt){return xt==null&&(xt=st),K.getItemVisual(xt,ft)}function ht(ft){if(q.getBaseAxis){var xt=q.getBaseAxis();return v(M.defaults({axis:xt},ft),J)}}function pt(){return Q.getCurrentSeriesIndices()}function mt(ft){return w.getFont(ft,Q)}}function P(X){var K={};return M.each(X.dimensions,function(Q,J){var tt=X.getDimensionInfo(Q);if(!tt.isExtraCoord){var q=tt.coordDim,rt=K[q]=K[q]||[];rt[tt.coordDimIndex]=J}}),K}function O(X,K,Q,J,tt,q){return X=N(X,K,Q,J,tt,q,!0),X&&q.setItemGraphicEl(K,X),X}function N(X,K,Q,J,tt,q,rt){var $=!Q;Q=Q||{};var j=Q.type,st=Q.shape,ot=Q.style;if(X&&($||j!=null&&j!==X.__customGraphicType||j==="path"&&k(st)&&B(st)!==X.__customPathData||j==="image"&&Z(ot,"image")&&ot.image!==X.__customImagePath||j==="text"&&Z(st,"text")&&ot.text!==X.__customText)&&(tt.remove(X),X=null),!$){var vt=!X;return!X&&(X=b(Q)),I(X,K,Q,J,q,vt,rt),j==="group"&&_(X,K,Q,J,q),tt.add(X),X}}function _(X,K,Q,J,tt){var q=Q.children,rt=q?q.length:0,$=Q.$mergeChildren,j=$==="byName"||Q.diffChildrenByName,st=$===!1;if(!(!rt&&!j&&!st)){if(j){G({oldChildren:X.children()||[],newChildren:q||[],dataIndex:K,animatableModel:J,group:X,data:tt});return}st&&X.removeAll();for(var ot=0;ot<rt;ot++)q[ot]&&N(X.childAt(ot),K,q[ot],J,X,tt)}}function G(X){new t(X.oldChildren,X.newChildren,F,F,X).add(W).update(W).remove(z).execute()}function F(X,K){var Q=X&&X.name;return Q!=null?Q:g+K}function W(X,K){var Q=this.context,J=X!=null?Q.newChildren[X]:null,tt=K!=null?Q.oldChildren[K]:null;N(tt,Q.dataIndex,J,Q.animatableModel,Q.group,Q.data)}function U(X,K){var Q=new i({},K);return M.each(c,function(J,tt){X.hasOwnProperty(J)&&(Q.option[tt]=X[J])}),Q}function H(X,K){for(var Q in K)(K.hasOwnProperty(Q)||!c.hasOwnProperty(Q))&&(X[Q]=K[Q])}function z(X){var K=this.context,Q=K.oldChildren[X];Q&&K.group.remove(Q)}function B(X){return X&&(X.pathData||X.d)}function k(X){return X&&(X.hasOwnProperty("pathData")||X.hasOwnProperty("d"))}function Z(X,K){return X&&X.hasOwnProperty(K)}},97928:function(Y,V,n){var T=n(3096);n(54779),n(55423);var L=n(11404),M=n(87984);T.registerVisual(L("effectScatter","circle")),T.registerLayout(M("effectScatter"))},54779:function(Y,V,n){var T=n(32977),L=n(38645),M=L.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(w,C){return T(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});Y.exports=M},55423:function(Y,V,n){var T=n(3096),L=n(38346),M=n(82760),w=n(26237),C=n(87984),D=T.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new L(M)},render:function(S,p,v){var t=S.getData(),s=this._symbolDraw;s.updateData(t),this.group.add(s.group)},updateTransform:function(S,p,v){var t=S.getData();this.group.dirty();var s=C().reset(S);s.progress&&s.progress({start:0,end:t.count()},t),this._symbolDraw.updateLayout(t)},_updateGroupTransform:function(S){var p=S.coordinateSystem;p&&p.getRoamTransform&&(this.group.transform=w.clone(p.getRoamTransform()),this.group.decomposeTransform())},remove:function(S,p){this._symbolDraw&&this._symbolDraw.remove(p)},dispose:function(){}});Y.exports=D},63662:function(Y,V,n){var T=n(3096);n(11683),n(11011);var L=n(22333),M=n(48750),w=n(22259);T.registerVisual(L("funnel")),T.registerLayout(M),T.registerProcessor(w("funnel"))},11683:function(Y,V,n){var T=n(3096),L=n(69008),M=n(60425),w=n(90830),C=w.defaultEmphasis,D=n(67063),S=D.makeSeriesEncodeForNameBased,p=n(50329),v=T.extendSeriesModel({type:"series.funnel",init:function(s){v.superApply(this,"init",arguments),this.legendVisualProvider=new p(L.bind(this.getData,this),L.bind(this.getRawData,this)),this._defaultLabelLine(s)},getInitialData:function(s,i){return M(this,{coordDimensions:["value"],encodeDefaulter:L.curry(S,this)})},_defaultLabelLine:function(s){C(s,"labelLine",["show"]);var i=s.labelLine,a=s.emphasis.labelLine;i.show=i.show&&s.label.show,a.show=a.show&&s.emphasis.label.show},getDataParams:function(s){var i=this.getData(),a=v.superCall(this,"getDataParams",s),u=i.mapDimension("value"),e=i.getSum(u);return a.percent=e?+(i.get(u,s)/e*100).toFixed(2):0,a.$vars.push("percent"),a},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),t=v;Y.exports=t},11011:function(Y,V,n){var T=n(18993),L=n(69008),M=n(68880);function w(v,t){T.Group.call(this);var s=new T.Polygon,i=new T.Polyline,a=new T.Text;this.add(s),this.add(i),this.add(a),this.highDownOnUpdate=function(u,e){e==="emphasis"?(i.ignore=i.hoverIgnore,a.ignore=a.hoverIgnore):(i.ignore=i.normalIgnore,a.ignore=a.normalIgnore)},this.updateData(v,t,!0)}var C=w.prototype,D=["itemStyle","opacity"];C.updateData=function(v,t,s){var i=this.childAt(0),a=v.hostModel,u=v.getItemModel(t),e=v.getItemLayout(t),o=v.getItemModel(t).get(D);o=o==null?1:o,i.useStyle({}),s?(i.setShape({points:e.points}),i.setStyle({opacity:0}),T.initProps(i,{style:{opacity:o}},a,t)):T.updateProps(i,{style:{opacity:o},shape:{points:e.points}},a,t);var r=u.getModel("itemStyle"),l=v.getItemVisual(t,"color");i.setStyle(L.defaults({lineJoin:"round",fill:l},r.getItemStyle(["opacity"]))),i.hoverStyle=r.getModel("emphasis").getItemStyle(),this._updateLabel(v,t),T.setHoverStyle(this)},C._updateLabel=function(v,t){var s=this.childAt(1),i=this.childAt(2),a=v.hostModel,u=v.getItemModel(t),e=v.getItemLayout(t),o=e.label,c=v.getItemVisual(t,"color");T.updateProps(s,{shape:{points:o.linePoints||o.linePoints}},a,t),T.updateProps(i,{style:{x:o.x,y:o.y}},a,t),i.attr({rotation:o.rotation,origin:[o.x,o.y],z2:10});var r=u.getModel("label"),l=u.getModel("emphasis.label"),h=u.getModel("labelLine"),f=u.getModel("emphasis.labelLine"),c=v.getItemVisual(t,"color");T.setLabelStyle(i.style,i.hoverStyle={},r,l,{labelFetcher:v.hostModel,labelDataIndex:t,defaultText:v.getName(t),autoColor:c,useInsideStyle:!!o.inside},{textAlign:o.textAlign,textVerticalAlign:o.verticalAlign}),i.ignore=i.normalIgnore=!r.get("show"),i.hoverIgnore=!l.get("show"),s.ignore=s.normalIgnore=!h.get("show"),s.hoverIgnore=!f.get("show"),s.setStyle({stroke:c}),s.setStyle(h.getModel("lineStyle").getLineStyle()),s.hoverStyle=f.getModel("lineStyle").getLineStyle()},L.inherits(w,T.Group);var S=M.extend({type:"funnel",render:function(v,t,s){var i=v.getData(),a=this._data,u=this.group;i.diff(a).add(function(e){var o=new w(i,e);i.setItemGraphicEl(e,o),u.add(o)}).update(function(e,o){var r=a.getItemGraphicEl(o);r.updateData(i,e),u.add(r),i.setItemGraphicEl(e,r)}).remove(function(e){var o=a.getItemGraphicEl(e);u.remove(o)}).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),p=S;Y.exports=p},48750:function(Y,V,n){var T=n(7357),L=n(86957),M=L.parsePercent,w=L.linearMap;function C(v,t){return T.getLayoutRect(v.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function D(v,t){for(var s=v.mapDimension("value"),i=v.mapArray(s,function(r){return r}),a=[],u=t==="ascending",e=0,o=v.count();e<o;e++)a[e]=e;return typeof t=="function"?a.sort(t):t!=="none"&&a.sort(function(r,l){return u?i[r]-i[l]:i[l]-i[r]}),a}function S(v){v.each(function(t){var s=v.getItemModel(t),i=s.getModel("label"),a=i.get("position"),u=s.getModel("labelLine"),e=v.getItemLayout(t),o=e.points,r=a==="inner"||a==="inside"||a==="center"||a==="insideLeft"||a==="insideRight",l,h,f,c;if(r)a==="insideLeft"?(h=(o[0][0]+o[3][0])/2+5,f=(o[0][1]+o[3][1])/2,l="left"):a==="insideRight"?(h=(o[1][0]+o[2][0])/2-5,f=(o[1][1]+o[2][1])/2,l="right"):(h=(o[0][0]+o[1][0]+o[2][0]+o[3][0])/4,f=(o[0][1]+o[1][1]+o[2][1]+o[3][1])/4,l="center"),c=[[h,f],[h,f]];else{var d,A,x,y=u.get("length");a==="left"?(d=(o[3][0]+o[0][0])/2,A=(o[3][1]+o[0][1])/2,x=d-y,h=x-5,l="right"):a==="right"?(d=(o[1][0]+o[2][0])/2,A=(o[1][1]+o[2][1])/2,x=d+y,h=x+5,l="left"):a==="rightTop"?(d=o[1][0],A=o[1][1],x=d+y,h=x+5,l="top"):a==="rightBottom"?(d=o[2][0],A=o[2][1],x=d+y,h=x+5,l="bottom"):a==="leftTop"?(d=o[0][0],A=o[1][1],x=d-y,h=x-5,l="right"):a==="leftBottom"?(d=o[3][0],A=o[2][1],x=d-y,h=x-5,l="right"):(d=(o[1][0]+o[2][0])/2,A=(o[1][1]+o[2][1])/2,x=d+y,h=x+5,l="left");var g=A;c=[[d,A],[x,g]],f=g}e.label={linePoints:c,x:h,y:f,verticalAlign:"middle",textAlign:l,inside:r}})}function p(v,t,s){v.eachSeriesByType("funnel",function(i){var a=i.getData(),u=a.mapDimension("value"),e=i.get("sort"),o=C(i,t),r=D(a,e),l=[M(i.get("minSize"),o.width),M(i.get("maxSize"),o.width)],h=a.getDataExtent(u),f=i.get("min"),c=i.get("max");f==null&&(f=Math.min(h[0],0)),c==null&&(c=h[1]);var d=i.get("funnelAlign"),A=i.get("gap"),x=(o.height-A*(a.count()-1))/a.count(),y=o.y,g=function(N,_){var G=a.get(u,N)||0,F=w(G,[f,c],l,!0),W;switch(d){case"left":W=o.x;break;case"center":W=o.x+(o.width-F)/2;break;case"right":W=o.x+o.width-F;break}return[[W,_],[W+F,_]]};e==="ascending"&&(x=-x,A=-A,y+=o.height,r=r.reverse());for(var m=0;m<r.length;m++){var b=r[m],I=r[m+1],R=a.getItemModel(b),E=R.get("itemStyle.height");E==null?E=x:(E=M(E,o.height),e==="ascending"&&(E=-E));var P=g(b,y),O=g(I,y+E);y+=E+A,a.setItemLayout(b,{points:P.concat(O.slice().reverse())})}S(a)})}Y.exports=p},75560:function(Y,V,n){n(37242),n(11264)},37242:function(Y,V,n){var T=n(60425),L=n(38645),M=L.extend({type:"series.gauge",getInitialData:function(C,D){return T(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),w=M;Y.exports=w},11264:function(Y,V,n){var T=n(36131),L=n(18993),M=n(68880),w=n(86957),C=w.parsePercent,D=w.round,S=w.linearMap;function p(a,u){var e=a.get("center"),o=u.getWidth(),r=u.getHeight(),l=Math.min(o,r),h=C(e[0],u.getWidth()),f=C(e[1],u.getHeight()),c=C(a.get("radius"),l/2);return{cx:h,cy:f,r:c}}function v(a,u){return u&&(typeof u=="string"?a=u.replace("{value}",a!=null?a:""):typeof u=="function"&&(a=u(a))),a}var t=Math.PI*2,s=M.extend({type:"gauge",render:function(a,u,e){this.group.removeAll();var o=a.get("axisLine.lineStyle.color"),r=p(a,e);this._renderMain(a,u,e,o,r)},dispose:function(){},_renderMain:function(a,u,e,o,r){for(var l=this.group,h=a.getModel("axisLine"),f=h.getModel("lineStyle"),c=a.get("clockwise"),d=-a.get("startAngle")/180*Math.PI,A=-a.get("endAngle")/180*Math.PI,x=(A-d)%t,y=d,g=f.get("width"),m=h.get("show"),b=0;m&&b<o.length;b++){var I=Math.min(Math.max(o[b][0],0),1),A=d+x*I,R=new L.Sector({shape:{startAngle:y,endAngle:A,cx:r.cx,cy:r.cy,clockwise:c,r0:r.r-g,r:r.r},silent:!0});R.setStyle({fill:o[b][1]}),R.setStyle(f.getLineStyle(["color","borderWidth","borderColor"])),l.add(R),y=A}var E=function(O){if(O<=0)return o[0][1];for(var N=0;N<o.length;N++)if(o[N][0]>=O&&(N===0?0:o[N-1][0])<O)return o[N][1];return o[N-1][1]};if(!c){var P=d;d=A,A=P}this._renderTicks(a,u,e,E,r,d,A,c),this._renderPointer(a,u,e,E,r,d,A,c),this._renderTitle(a,u,e,E,r),this._renderDetail(a,u,e,E,r)},_renderTicks:function(a,u,e,o,r,l,h,f){for(var c=this.group,d=r.cx,A=r.cy,x=r.r,y=+a.get("min"),g=+a.get("max"),m=a.getModel("splitLine"),b=a.getModel("axisTick"),I=a.getModel("axisLabel"),R=a.get("splitNumber"),E=b.get("splitNumber"),P=C(m.get("length"),x),O=C(b.get("length"),x),N=l,_=(h-l)/R,G=_/E,F=m.getModel("lineStyle").getLineStyle(),W=b.getModel("lineStyle").getLineStyle(),U=0;U<=R;U++){var H=Math.cos(N),z=Math.sin(N);if(m.get("show")){var B=new L.Line({shape:{x1:H*x+d,y1:z*x+A,x2:H*(x-P)+d,y2:z*(x-P)+A},style:F,silent:!0});F.stroke==="auto"&&B.setStyle({stroke:o(U/R)}),c.add(B)}if(I.get("show")){var k=v(D(U/R*(g-y)+y),I.get("formatter")),Z=I.get("distance"),X=o(U/R);c.add(new L.Text({style:L.setTextStyle({},I,{text:k,x:H*(x-P-Z)+d,y:z*(x-P-Z)+A,textVerticalAlign:z<-.4?"top":z>.4?"bottom":"middle",textAlign:H<-.4?"left":H>.4?"right":"center"},{autoColor:X}),silent:!0}))}if(b.get("show")&&U!==R){for(var K=0;K<=E;K++){var H=Math.cos(N),z=Math.sin(N),Q=new L.Line({shape:{x1:H*x+d,y1:z*x+A,x2:H*(x-O)+d,y2:z*(x-O)+A},silent:!0,style:W});W.stroke==="auto"&&Q.setStyle({stroke:o((U+K/E)/R)}),c.add(Q),N+=G}N-=G}else N+=_}},_renderPointer:function(a,u,e,o,r,l,h,f){var c=this.group,d=this._data;if(!a.get("pointer.show")){d&&d.eachItemGraphicEl(function(m){c.remove(m)});return}var A=[+a.get("min"),+a.get("max")],x=[l,h],y=a.getData(),g=y.mapDimension("value");y.diff(d).add(function(m){var b=new T({shape:{angle:l}});L.initProps(b,{shape:{angle:S(y.get(g,m),A,x,!0)}},a),c.add(b),y.setItemGraphicEl(m,b)}).update(function(m,b){var I=d.getItemGraphicEl(b);L.updateProps(I,{shape:{angle:S(y.get(g,m),A,x,!0)}},a),c.add(I),y.setItemGraphicEl(m,I)}).remove(function(m){var b=d.getItemGraphicEl(m);c.remove(b)}).execute(),y.eachItemGraphicEl(function(m,b){var I=y.getItemModel(b),R=I.getModel("pointer");m.setShape({x:r.cx,y:r.cy,width:C(R.get("width"),r.r),r:C(R.get("length"),r.r)}),m.useStyle(I.getModel("itemStyle").getItemStyle()),m.style.fill==="auto"&&m.setStyle("fill",o(S(y.get(g,b),A,[0,1],!0))),L.setHoverStyle(m,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=y},_renderTitle:function(a,u,e,o,r){var l=a.getData(),h=l.mapDimension("value"),f=a.getModel("title");if(f.get("show")){var c=f.get("offsetCenter"),d=r.cx+C(c[0],r.r),A=r.cy+C(c[1],r.r),x=+a.get("min"),y=+a.get("max"),g=a.getData().get(h,0),m=o(S(g,[x,y],[0,1],!0));this.group.add(new L.Text({silent:!0,style:L.setTextStyle({},f,{x:d,y:A,text:l.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(a,u,e,o,r){var l=a.getModel("detail"),h=+a.get("min"),f=+a.get("max");if(l.get("show")){var c=l.get("offsetCenter"),d=r.cx+C(c[0],r.r),A=r.cy+C(c[1],r.r),x=C(l.get("width"),r.r),y=C(l.get("height"),r.r),g=a.getData(),m=g.get(g.mapDimension("value"),0),b=o(S(m,[h,f],[0,1],!0));this.group.add(new L.Text({silent:!0,style:L.setTextStyle({},l,{x:d,y:A,text:v(m,l.get("formatter")),textWidth:isNaN(x)?null:x,textHeight:isNaN(y)?null:y,textAlign:"center",textVerticalAlign:"middle"},{autoColor:b,forceRich:!0})}))}}}),i=s;Y.exports=i},36131:function(Y,V,n){var T=n(60397),L=T.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(M,w){var C=Math.cos,D=Math.sin,S=w.r,p=w.width,v=w.angle,t=w.x-C(v)*p*(p>=S/3?1:2),s=w.y-D(v)*p*(p>=S/3?1:2);v=w.angle-Math.PI/2,M.moveTo(t,s),M.lineTo(w.x+C(v)*p,w.y+D(v)*p),M.lineTo(w.x+C(w.angle)*S,w.y+D(w.angle)*S),M.lineTo(w.x-C(v)*p,w.y-D(v)*p),M.lineTo(t,s)}});Y.exports=L},57495:function(Y,V,n){var T=n(3096);n(46349),n(32979),n(6458);var L=n(12301),M=n(11404),w=n(48468),C=n(62939),D=n(293),S=n(14146),p=n(21701),v=n(57186);T.registerProcessor(L),T.registerVisual(M("graph","circle",null)),T.registerVisual(w),T.registerVisual(C),T.registerLayout(D),T.registerLayout(T.PRIORITY.VISUAL.POST_CHART_LAYOUT,S),T.registerLayout(p),T.registerCoordinateSystem("graphView",{create:v})},46349:function(Y,V,n){var T=n(3096),L=n(39177),M=n(69008),w=n(90830),C=w.defaultEmphasis,D=n(24040),S=n(17010),p=S.encodeHTML,v=n(29306),t=n(50329),s=T.extendSeriesModel({type:"series.graph",init:function(a){s.superApply(this,"init",arguments);var u=this;function e(){return u._categoriesData}this.legendVisualProvider=new t(e,e),this.fillDataTextStyle(a.edges||a.links),this._updateCategoriesData()},mergeOption:function(a){s.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(a.edges||a.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(a){s.superApply(this,"mergeDefaultAndTheme",arguments),C(a,["edgeLabel"],["show"])},getInitialData:function(a,u){var e=a.edges||a.links||[],o=a.data||a.nodes||[],r=this;if(o&&e)return v(o,e,this,!0,l).data;function l(h,f){h.wrapMethod("getItemModel",function(g){var m=r._categoriesModels,b=g.getShallow("category"),I=m[b];return I&&(I.parentModel=g.parentModel,g.parentModel=I),g});var c=r.getModel("edgeLabel"),d=new D({label:c.option},c.parentModel,u),A=r.getModel("emphasis.edgeLabel"),x=new D({emphasis:{label:A.option}},A.parentModel,u);f.wrapMethod("getItemModel",function(g){return g.customizeGetParent(y),g});function y(g){return g=this.parsePath(g),g&&g[0]==="label"?d:g&&g[0]==="emphasis"&&g[1]==="label"?x:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(a,u,e){if(e==="edge"){var o=this.getData(),r=this.getDataParams(a,e),l=o.graph.getEdgeByIndex(a),h=o.getName(l.node1.dataIndex),f=o.getName(l.node2.dataIndex),c=[];return h!=null&&c.push(h),f!=null&&c.push(f),c=p(c.join(" > ")),r.value&&(c+=" : "+p(r.value)),c}else return s.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var a=M.map(this.option.categories||[],function(e){return e.value!=null?e:M.extend({value:0},e)}),u=new L(["value"],this);u.initData(a),this._categoriesData=u,this._categoriesModels=u.mapArray(function(e){return u.getItemModel(e,!0)})},setZoom:function(a){this.option.zoom=a},setCenter:function(a){this.option.center=a},isAnimationEnabled:function(){return s.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,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,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),i=s;Y.exports=i},32979:function(Y,V,n){var T=n(3096),L=n(69008),M=n(38346),w=n(70562),C=n(38515),D=n(37419),S=n(18584),p=S.onIrrelevantElement,v=n(18993),t=n(76839),s=n(83972),i=s.getNodeGlobalScale,a="__focusNodeAdjacency",u="__unfocusNodeAdjacency",e=["itemStyle","opacity"],o=["lineStyle","opacity"];function r(c,d){var A=c.getVisual("opacity");return A!=null?A:c.getModel().get(d)}function l(c,d,A){var x=c.getGraphicEl(),y=r(c,d);A!=null&&(y==null&&(y=1),y*=A),x.downplay&&x.downplay(),x.traverse(function(g){if(!g.isGroup){var m=g.lineLabelOriginalOpacity;(m==null||A!=null)&&(m=y),g.setStyle("opacity",m)}})}function h(c,d){var A=r(c,d),x=c.getGraphicEl();x.traverse(function(y){!y.isGroup&&y.setStyle("opacity",A)}),x.highlight&&x.highlight()}var f=T.extendChartView({type:"graph",init:function(c,d){var A=new M,x=new w,y=this.group;this._controller=new C(d.getZr()),this._controllerHost={target:y},y.add(A.group),y.add(x.group),this._symbolDraw=A,this._lineDraw=x,this._firstRender=!0},render:function(c,d,A){var x=this,y=c.coordinateSystem;this._model=c;var g=this._symbolDraw,m=this._lineDraw,b=this.group;if(y.type==="view"){var I={position:y.position,scale:y.scale};this._firstRender?b.attr(I):v.updateProps(b,I,c)}t(c.getGraph(),i(c));var R=c.getData();g.updateData(R);var E=c.getEdgeData();m.updateData(E),this._updateNodeAndLinkScale(),this._updateController(c,d,A),clearTimeout(this._layoutTimeout);var P=c.forceLayout,O=c.get("force.layoutAnimation");P&&this._startForceLayoutIteration(P,O),R.eachItemGraphicEl(function(F,W){var U=R.getItemModel(W);F.off("drag").off("dragend");var H=U.get("draggable");H&&F.on("drag",function(){P&&(P.warmUp(),!this._layouting&&this._startForceLayoutIteration(P,O),P.setFixed(W),R.setItemLayout(W,F.position))},this).on("dragend",function(){P&&P.setUnfixed(W)},this),F.setDraggable(H&&P),F[a]&&F.off("mouseover",F[a]),F[u]&&F.off("mouseout",F[u]),U.get("focusNodeAdjacency")&&(F.on("mouseover",F[a]=function(){x._clearTimer(),A.dispatchAction({type:"focusNodeAdjacency",seriesId:c.id,dataIndex:F.dataIndex})}),F.on("mouseout",F[u]=function(){x._dispatchUnfocus(A)}))},this),R.graph.eachEdge(function(F){var W=F.getGraphicEl();W[a]&&W.off("mouseover",W[a]),W[u]&&W.off("mouseout",W[u]),F.getModel().get("focusNodeAdjacency")&&(W.on("mouseover",W[a]=function(){x._clearTimer(),A.dispatchAction({type:"focusNodeAdjacency",seriesId:c.id,edgeDataIndex:F.dataIndex})}),W.on("mouseout",W[u]=function(){x._dispatchUnfocus(A)}))});var N=c.get("layout")==="circular"&&c.get("circular.rotateLabel"),_=R.getLayout("cx"),G=R.getLayout("cy");R.eachItemGraphicEl(function(F,W){var U=R.getItemModel(W),H=U.get("label.rotate")||0,z=F.getSymbolPath();if(N){var B=R.getItemLayout(W),k=Math.atan2(B[1]-G,B[0]-_);k<0&&(k=Math.PI*2+k);var Z=B[0]<_;Z&&(k=k-Math.PI);var X=Z?"left":"right";v.modifyLabelStyle(z,{textRotation:-k,textPosition:X,textOrigin:"center"},{textPosition:X})}else v.modifyLabelStyle(z,{textRotation:H*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(c,d){var A=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){A._unfocusDelayTimer=null,c.dispatchAction({type:"unfocusNodeAdjacency",seriesId:A._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(c,d,A,x){var y=c.getData(),g=y.graph,m=x.dataIndex,b=x.edgeDataIndex,I=g.getNodeByIndex(m),R=g.getEdgeByIndex(b);!I&&!R||(g.eachNode(function(E){l(E,e,.1)}),g.eachEdge(function(E){l(E,o,.1)}),I&&(h(I,e),L.each(I.edges,function(E){E.dataIndex<0||(h(E,o),h(E.node1,e),h(E.node2,e))})),R&&(h(R,o),h(R.node1,e),h(R.node2,e)))},unfocusNodeAdjacency:function(c,d,A,x){var y=c.getData().graph;y.eachNode(function(g){l(g,e)}),y.eachEdge(function(g){l(g,o)})},_startForceLayoutIteration:function(c,d){var A=this;(function x(){c.step(function(y){A.updateLayout(A._model),(A._layouting=!y)&&(d?A._layoutTimeout=setTimeout(x,16):x())})})()},_updateController:function(c,d,A){var x=this._controller,y=this._controllerHost,g=this.group;if(x.setPointerChecker(function(m,b,I){var R=g.getBoundingRect();return R.applyTransform(g.transform),R.contain(b,I)&&!p(m,A,c)}),c.coordinateSystem.type!=="view"){x.disable();return}x.enable(c.get("roam")),y.zoomLimit=c.get("scaleLimit"),y.zoom=c.coordinateSystem.getZoom(),x.off("pan").off("zoom").on("pan",function(m){D.updateViewOnPan(y,m.dx,m.dy),A.dispatchAction({seriesId:c.id,type:"graphRoam",dx:m.dx,dy:m.dy})}).on("zoom",function(m){D.updateViewOnZoom(y,m.scale,m.originX,m.originY),A.dispatchAction({seriesId:c.id,type:"graphRoam",zoom:m.scale,originX:m.originX,originY:m.originY}),this._updateNodeAndLinkScale(),t(c.getGraph(),i(c)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var c=this._model,d=c.getData(),A=i(c),x=[A,A];d.eachItemGraphicEl(function(y,g){y.attr("scale",x)})},updateLayout:function(c){t(c.getGraph(),i(c)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(c,d){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});Y.exports=f},76839:function(Y,V,n){var T=n(22576),L=n(47764),M=n(83972),w=M.getSymbolSize,C=[],D=[],S=[],p=T.quadraticAt,v=L.distSquare,t=Math.abs;function s(a,u,e){for(var o=a[0],r=a[1],l=a[2],h=1/0,f,c=e*e,d=.1,A=.1;A<=.9;A+=.1){C[0]=p(o[0],r[0],l[0],A),C[1]=p(o[1],r[1],l[1],A);var x=t(v(C,u)-c);x<h&&(h=x,f=A)}for(var y=0;y<32;y++){var g=f+d;D[0]=p(o[0],r[0],l[0],f),D[1]=p(o[1],r[1],l[1],f),S[0]=p(o[0],r[0],l[0],g),S[1]=p(o[1],r[1],l[1],g);var x=v(D,u)-c;if(t(x)<.01)break;var m=v(S,u)-c;d/=2,x<0?m>=0?f=f+d:f=f-d:m>=0?f=f-d:f=f+d}return f}function i(a,u){var e=[],o=T.quadraticSubdivide,r=[[],[],[]],l=[[],[]],h=[];u/=2,a.eachEdge(function(f,c){var d=f.getLayout(),A=f.getVisual("fromSymbol"),x=f.getVisual("toSymbol");d.__original||(d.__original=[L.clone(d[0]),L.clone(d[1])],d[2]&&d.__original.push(L.clone(d[2])));var y=d.__original;if(d[2]!=null){if(L.copy(r[0],y[0]),L.copy(r[1],y[2]),L.copy(r[2],y[1]),A&&A!=="none"){var g=w(f.node1),m=s(r,y[0],g*u);o(r[0][0],r[1][0],r[2][0],m,e),r[0][0]=e[3],r[1][0]=e[4],o(r[0][1],r[1][1],r[2][1],m,e),r[0][1]=e[3],r[1][1]=e[4]}if(x&&x!=="none"){var g=w(f.node2),m=s(r,y[1],g*u);o(r[0][0],r[1][0],r[2][0],m,e),r[1][0]=e[1],r[2][0]=e[2],o(r[0][1],r[1][1],r[2][1],m,e),r[1][1]=e[1],r[2][1]=e[2]}L.copy(d[0],r[0]),L.copy(d[1],r[2]),L.copy(d[2],r[1])}else{if(L.copy(l[0],y[0]),L.copy(l[1],y[1]),L.sub(h,l[1],l[0]),L.normalize(h,h),A&&A!=="none"){var g=w(f.node1);L.scaleAndAdd(l[0],l[0],h,g*u)}if(x&&x!=="none"){var g=w(f.node2);L.scaleAndAdd(l[1],l[1],h,-g*u)}L.copy(d[0],l[0]),L.copy(d[1],l[1])}})}Y.exports=i},12301:function(Y){function V(n){var T=n.findComponents({mainType:"legend"});!T||!T.length||n.eachSeriesByType("graph",function(L){var M=L.getCategoriesData(),w=L.getGraph(),C=w.data,D=M.mapArray(M.getName);C.filterSelf(function(S){var p=C.getItemModel(S),v=p.getShallow("category");if(v!=null){typeof v=="number"&&(v=D[v]);for(var t=0;t<T.length;t++)if(!T[t].isSelected(v))return!1}return!0})},this)}Y.exports=V},48468:function(Y){function V(n){var T={};n.eachSeriesByType("graph",function(L){var M=L.getCategoriesData(),w=L.getData(),C={};M.each(function(D){var S=M.getName(D);C["ec-"+S]=D;var p=M.getItemModel(D),v=p.get("itemStyle.color")||L.getColorFromPalette(S,T);M.setItemVisual(D,"color",v);for(var t=["opacity","symbol","symbolSize","symbolKeepAspect"],s=0;s<t.length;s++){var i=p.getShallow(t[s],!0);i!=null&&M.setItemVisual(D,t[s],i)}}),M.count()&&w.each(function(D){var S=w.getItemModel(D),p=S.getShallow("category");if(p!=null){typeof p=="string"&&(p=C["ec-"+p]);for(var v=["color","opacity","symbol","symbolSize","symbolKeepAspect"],t=0;t<v.length;t++)w.getItemVisual(D,v[t],!0)==null&&w.setItemVisual(D,v[t],M.getItemVisual(p,v[t]))}})})}Y.exports=V},14146:function(Y,V,n){var T=n(79306),L=T.circularLayout;function M(w){w.eachSeriesByType("graph",function(C){C.get("layout")==="circular"&&L(C,"symbolSize")})}Y.exports=M},79306:function(Y,V,n){var T=n(47764),L=n(83972),M=L.getSymbolSize,w=L.getNodeGlobalScale,C=Math.PI,D=[];function S(v,t){var s=v.coordinateSystem;if(!(s&&s.type!=="view")){var i=s.getBoundingRect(),a=v.getData(),u=a.graph,e=i.width/2+i.x,o=i.height/2+i.y,r=Math.min(i.width,i.height)/2,l=a.count();a.setLayout({cx:e,cy:o}),l&&(p[t](v,s,u,a,r,e,o,l),u.eachEdge(function(h){var f=h.getModel().get("lineStyle.curveness")||0,c=T.clone(h.node1.getLayout()),d=T.clone(h.node2.getLayout()),A,x=(c[0]+d[0])/2,y=(c[1]+d[1])/2;+f&&(f*=3,A=[e*f+x*(1-f),o*f+y*(1-f)]),h.setLayout([c,d,A])}))}}var p={value:function(v,t,s,i,a,u,e,o){var r=0,l=i.getSum("value"),h=Math.PI*2/(l||o);s.eachNode(function(f){var c=f.getValue("value"),d=h*(l?c:1)/2;r+=d,f.setLayout([a*Math.cos(r)+u,a*Math.sin(r)+e]),r+=d})},symbolSize:function(v,t,s,i,a,u,e,o){var r=0;D.length=o;var l=w(v);s.eachNode(function(c){var d=M(c);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var A=Math.asin(d/2/a);isNaN(A)&&(A=C/2),D[c.dataIndex]=A,r+=A*2});var h=(2*C-r)/o/2,f=0;s.eachNode(function(c){var d=h+D[c.dataIndex];f+=d,c.setLayout([a*Math.cos(f)+u,a*Math.sin(f)+e]),f+=d})}};V.circularLayout=S},57186:function(Y,V,n){var T=n(86990),L=n(7357),M=L.getLayoutRect,w=n(16254);function C(S,p,v){var t=S.getBoxLayoutParams();return t.aspect=v,M(t,{width:p.getWidth(),height:p.getHeight()})}function D(S,p){var v=[];return S.eachSeriesByType("graph",function(t){var s=t.get("coordinateSystem");if(!s||s==="view"){var i=t.getData(),a=i.mapArray(function(A){var x=i.getItemModel(A);return[+x.get("x"),+x.get("y")]}),u=[],e=[];w.fromPoints(a,u,e),e[0]-u[0]===0&&(e[0]+=1,u[0]-=1),e[1]-u[1]===0&&(e[1]+=1,u[1]-=1);var o=(e[0]-u[0])/(e[1]-u[1]),r=C(t,p,o);isNaN(o)&&(u=[r.x,r.y],e=[r.x+r.width,r.y+r.height]);var l=e[0]-u[0],h=e[1]-u[1],f=r.width,c=r.height,d=t.coordinateSystem=new T;d.zoomLimit=t.get("scaleLimit"),d.setBoundingRect(u[0],u[1],l,h),d.setViewRect(r.x,r.y,f,c),d.setCenter(t.get("center")),d.setZoom(t.get("zoom")),v.push(d)}}),v}Y.exports=D},62939:function(Y){function V(T){return T instanceof Array||(T=[T,T]),T}function n(T){T.eachSeriesByType("graph",function(L){var M=L.getGraph(),w=L.getEdgeData(),C=V(L.get("edgeSymbol")),D=V(L.get("edgeSymbolSize")),S="lineStyle.color".split("."),p="lineStyle.opacity".split(".");w.setVisual("fromSymbol",C&&C[0]),w.setVisual("toSymbol",C&&C[1]),w.setVisual("fromSymbolSize",D&&D[0]),w.setVisual("toSymbolSize",D&&D[1]),w.setVisual("color",L.get(S)),w.setVisual("opacity",L.get(p)),w.each(function(v){var t=w.getItemModel(v),s=M.getEdgeByIndex(v),i=V(t.getShallow("symbol",!0)),a=V(t.getShallow("symbolSize",!0)),u=t.get(S),e=t.get(p);switch(u){case"source":u=s.node1.getVisual("color");break;case"target":u=s.node2.getVisual("color");break}i[0]&&s.setVisual("fromSymbol",i[0]),i[1]&&s.setVisual("toSymbol",i[1]),a[0]&&s.setVisual("fromSymbolSize",a[0]),a[1]&&s.setVisual("toSymbolSize",a[1]),s.setVisual("color",u),s.setVisual("opacity",e)})})}Y.exports=n},85673:function(Y,V,n){var T=n(47764),L=T.scaleAndAdd;function M(w,C,D){for(var S=D.rect,p=S.width,v=S.height,t=[S.x+p/2,S.y+v/2],s=D.gravity==null?.1:D.gravity,i=0;i<w.length;i++){var a=w[i];a.p||(a.p=T.create(p*(Math.random()-.5)+t[0],v*(Math.random()-.5)+t[1])),a.pp=T.clone(a.p),a.edges=null}var u=D.friction==null?.6:D.friction,e=u;return{warmUp:function(){e=u*.8},setFixed:function(o){w[o].fixed=!0},setUnfixed:function(o){w[o].fixed=!1},step:function(o){for(var r=[],l=w.length,h=0;h<C.length;h++){var f=C[h];if(!f.ignoreForceLayout){var c=f.n1,d=f.n2;T.sub(r,d.p,c.p);var A=T.len(r)-f.d,x=d.w/(c.w+d.w);isNaN(x)&&(x=0),T.normalize(r,r),!c.fixed&&L(c.p,c.p,r,x*A*e),!d.fixed&&L(d.p,d.p,r,-(1-x)*A*e)}}for(var h=0;h<l;h++){var y=w[h];y.fixed||(T.sub(r,t,y.p),L(y.p,y.p,r,s*e))}for(var h=0;h<l;h++)for(var c=w[h],g=h+1;g<l;g++){var d=w[g];T.sub(r,d.p,c.p);var A=T.len(r);A===0&&(T.set(r,Math.random()-.5,Math.random()-.5),A=1);var m=(c.rep+d.rep)/A/A;!c.fixed&&L(c.pp,c.pp,r,m),!d.fixed&&L(d.pp,d.pp,r,-m)}for(var b=[],h=0;h<l;h++){var y=w[h];y.fixed||(T.sub(b,y.p,y.pp),L(y.p,y.p,b,e),T.copy(y.pp,y.p))}e=e*.992,o&&o(w,C,e<.01)}}}V.forceLayout=M},21701:function(Y,V,n){var T=n(85673),L=T.forceLayout,M=n(55416),w=M.simpleLayout,C=n(79306),D=C.circularLayout,S=n(86957),p=S.linearMap,v=n(47764),t=n(69008);function s(i){i.eachSeriesByType("graph",function(a){var u=a.coordinateSystem;if(!(u&&u.type!=="view"))if(a.get("layout")==="force"){var e=a.preservedPoints||{},o=a.getGraph(),r=o.data,l=o.edgeData,h=a.getModel("force"),f=h.get("initLayout");a.preservedPoints?r.each(function(E){var P=r.getId(E);r.setItemLayout(E,e[P]||[NaN,NaN])}):!f||f==="none"?w(a):f==="circular"&&D(a,"value");var c=r.getDataExtent("value"),d=l.getDataExtent("value"),A=h.get("repulsion"),x=h.get("edgeLength");t.isArray(A)||(A=[A,A]),t.isArray(x)||(x=[x,x]),x=[x[1],x[0]];var y=r.mapArray("value",function(E,P){var O=r.getItemLayout(P),N=p(E,c,A);return isNaN(N)&&(N=(A[0]+A[1])/2),{w:N,rep:N,fixed:r.getItemModel(P).get("fixed"),p:!O||isNaN(O[0])||isNaN(O[1])?null:O}}),g=l.mapArray("value",function(E,P){var O=o.getEdgeByIndex(P),N=p(E,d,x);isNaN(N)&&(N=(x[0]+x[1])/2);var _=O.getModel();return{n1:y[O.node1.dataIndex],n2:y[O.node2.dataIndex],d:N,curveness:_.get("lineStyle.curveness")||0,ignoreForceLayout:_.get("ignoreForceLayout")}}),u=a.coordinateSystem,m=u.getBoundingRect(),b=L(y,g,{rect:m,gravity:h.get("gravity"),friction:h.get("friction")}),I=b.step;b.step=function(E){for(var P=0,O=y.length;P<O;P++)y[P].fixed&&v.copy(y[P].p,o.getNodeByIndex(P).getLayout());I(function(N,_,G){for(var F=0,W=N.length;F<W;F++)N[F].fixed||o.getNodeByIndex(F).setLayout(N[F].p),e[r.getId(F)]=N[F].p;for(var F=0,W=_.length;F<W;F++){var U=_[F],H=o.getEdgeByIndex(F),z=U.n1.p,B=U.n2.p,k=H.getLayout();k=k?k.slice():[],k[0]=k[0]||[],k[1]=k[1]||[],v.copy(k[0],z),v.copy(k[1],B),+U.curveness&&(k[2]=[(z[0]+B[0])/2-(z[1]-B[1])*U.curveness,(z[1]+B[1])/2-(B[0]-z[0])*U.curveness]),H.setLayout(k)}E&&E(G)})},a.forceLayout=b,a.preservedPoints=e,b.step()}else a.forceLayout=null})}Y.exports=s},6458:function(Y,V,n){var T=n(3096),L=n(66710),M=L.updateCenterAndZoom;n(18148);var w={type:"graphRoam",event:"graphRoam",update:"none"};T.registerAction(w,function(C,D){D.eachComponent({mainType:"series",query:C},function(S){var p=S.coordinateSystem,v=M(p,C);S.setCenter&&S.setCenter(v.center),S.setZoom&&S.setZoom(v.zoom)})})},83972:function(Y,V){function n(L){var M=L.coordinateSystem;if(M.type!=="view")return 1;var w=L.option.nodeScaleRatio,C=M.scale,D=C&&C[0]||1,S=M.getZoom(),p=(S-1)*w+1;return p/D}function T(L){var M=L.getVisual("symbolSize");return M instanceof Array&&(M=(M[0]+M[1])/2),+M}V.getNodeGlobalScale=n,V.getSymbolSize=T},293:function(Y,V,n){var T=n(69008),L=T.each,M=n(55416),w=M.simpleLayout,C=M.simpleLayoutEdge;function D(S,p){S.eachSeriesByType("graph",function(v){var t=v.get("layout"),s=v.coordinateSystem;if(s&&s.type!=="view"){var i=v.getData(),a=[];L(s.dimensions,function(h){a=a.concat(i.mapDimension(h,!0))});for(var u=0;u<i.count();u++){for(var e=[],o=!1,r=0;r<a.length;r++){var l=i.get(a[r],u);isNaN(l)||(o=!0),e.push(l)}o?i.setItemLayout(u,s.dataToPoint(e)):i.setItemLayout(u,[NaN,NaN])}C(i.graph)}else(!t||t==="none")&&w(v)})}Y.exports=D},55416:function(Y,V,n){var T=n(47764);function L(w){var C=w.coordinateSystem;if(!(C&&C.type!=="view")){var D=w.getGraph();D.eachNode(function(S){var p=S.getModel();S.setLayout([+p.get("x"),+p.get("y")])}),M(D)}}function M(w){w.eachEdge(function(C){var D=C.getModel().get("lineStyle.curveness")||0,S=T.clone(C.node1.getLayout()),p=T.clone(C.node2.getLayout()),v=[S,p];+D&&v.push([(S[0]+p[0])/2-(S[1]-p[1])*D,(S[1]+p[1])/2-(p[0]-S[0])*D]),C.setLayout(v)})}V.simpleLayout=L,V.simpleLayoutEdge=M},4287:function(Y,V,n){n(11226),n(36684)},81311:function(Y,V,n){var T=n(69008),L=256;function M(){var C=T.createCanvas();this.canvas=C,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}M.prototype={update:function(C,D,S,p,v,t){var s=this._getBrush(),i=this._getGradient(C,v,"inRange"),a=this._getGradient(C,v,"outOfRange"),u=this.pointSize+this.blurSize,e=this.canvas,o=e.getContext("2d"),r=C.length;e.width=D,e.height=S;for(var l=0;l<r;++l){var h=C[l],f=h[0],c=h[1],d=h[2],A=p(d);o.globalAlpha=A,o.drawImage(s,f-u,c-u)}if(!e.width||!e.height)return e;for(var x=o.getImageData(0,0,e.width,e.height),y=x.data,g=0,m=y.length,b=this.minOpacity,I=this.maxOpacity,R=I-b;g<m;){var A=y[g+3]/256,E=Math.floor(A*(L-1))*4;if(A>0){var P=t(A)?i:a;A>0&&(A=A*R+b),y[g++]=P[E],y[g++]=P[E+1],y[g++]=P[E+2],y[g++]=P[E+3]*A*256}else g+=4}return o.putImageData(x,0,0),e},_getBrush:function(){var C=this._brushCanvas||(this._brushCanvas=T.createCanvas()),D=this.pointSize+this.blurSize,S=D*2;C.width=S,C.height=S;var p=C.getContext("2d");return p.clearRect(0,0,S,S),p.shadowOffsetX=S,p.shadowBlur=this.blurSize,p.shadowColor="#000",p.beginPath(),p.arc(-D,D,this.pointSize,0,Math.PI*2,!0),p.closePath(),p.fill(),C},_getGradient:function(C,D,S){for(var p=this._gradientPixels,v=p[S]||(p[S]=new Uint8ClampedArray(256*4)),t=[0,0,0,0],s=0,i=0;i<256;i++)D[S](i/255,!0,t),v[s++]=t[0],v[s++]=t[1],v[s++]=t[2],v[s++]=t[3];return v}};var w=M;Y.exports=w},11226:function(Y,V,n){var T=n(38645),L=n(32977),M=n(33807),w=T.extend({type:"series.heatmap",getInitialData:function(C,D){return L(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var C=M.get(this.get("coordinateSystem"));if(C&&C.dimensions)return C.dimensions[0]==="lng"&&C.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});Y.exports=w},36684:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(18993),C=n(81311),D=n(69008);function S(s,i,a){var u=s[1]-s[0];i=D.map(i,function(r){return{interval:[(r.interval[0]-s[0])/u,(r.interval[1]-s[0])/u]}});var e=i.length,o=0;return function(r){for(var l=o;l<e;l++){var h=i[l].interval;if(h[0]<=r&&r<=h[1]){o=l;break}}if(l===e)for(var l=o-1;l>=0;l--){var h=i[l].interval;if(h[0]<=r&&r<=h[1]){o=l;break}}return l>=0&&l<e&&a[l]}}function p(s,i){var a=s[1]-s[0];return i=[(i[0]-s[0])/a,(i[1]-s[0])/a],function(u){return u>=i[0]&&u<=i[1]}}function v(s){var i=s.dimensions;return i[0]==="lng"&&i[1]==="lat"}var t=M.extendChartView({type:"heatmap",render:function(s,i,a){var u;i.eachComponent("visualMap",function(o){o.eachTargetSeries(function(r){r===s&&(u=o)})}),this.group.removeAll(),this._incrementalDisplayable=null;var e=s.coordinateSystem;e.type==="cartesian2d"||e.type==="calendar"?this._renderOnCartesianAndCalendar(s,a,0,s.getData().count()):v(e)&&this._renderOnGeo(e,s,u,a)},incrementalPrepareRender:function(s,i,a){this.group.removeAll()},incrementalRender:function(s,i,a,u){var e=i.coordinateSystem;e&&this._renderOnCartesianAndCalendar(i,u,s.start,s.end,!0)},_renderOnCartesianAndCalendar:function(s,i,a,u,e){var o=s.coordinateSystem,r,l;if(o.type==="cartesian2d"){var h=o.getAxis("x"),f=o.getAxis("y");r=h.getBandWidth(),l=f.getBandWidth()}for(var c=this.group,d=s.getData(),A="itemStyle",x="emphasis.itemStyle",y="label",g="emphasis.label",m=s.getModel(A).getItemStyle(["color"]),b=s.getModel(x).getItemStyle(),I=s.getModel(y),R=s.getModel(g),E=o.type,P=E==="cartesian2d"?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],O=a;O<u;O++){var N;if(E==="cartesian2d"){if(isNaN(d.get(P[2],O)))continue;var _=o.dataToPoint([d.get(P[0],O),d.get(P[1],O)]);N=new w.Rect({shape:{x:Math.floor(Math.round(_[0])-r/2),y:Math.floor(Math.round(_[1])-l/2),width:Math.ceil(r),height:Math.ceil(l)},style:{fill:d.getItemVisual(O,"color"),opacity:d.getItemVisual(O,"opacity")}})}else{if(isNaN(d.get(P[1],O)))continue;N=new w.Rect({z2:1,shape:o.dataToRect([d.get(P[0],O)]).contentShape,style:{fill:d.getItemVisual(O,"color"),opacity:d.getItemVisual(O,"opacity")}})}var G=d.getItemModel(O);d.hasItemOption&&(m=G.getModel(A).getItemStyle(["color"]),b=G.getModel(x).getItemStyle(),I=G.getModel(y),R=G.getModel(g));var F=s.getRawValue(O),W="-";F&&F[2]!=null&&(W=F[2]),w.setLabelStyle(m,b,I,R,{labelFetcher:s,labelDataIndex:O,defaultText:W,isRectText:!0}),N.setStyle(m),w.setHoverStyle(N,d.hasItemOption?b:D.extend({},b)),N.incremental=e,e&&(N.useHoverLayer=!0),c.add(N),d.setItemGraphicEl(O,N)}},_renderOnGeo:function(s,i,a,u){var e=a.targetVisuals.inRange,o=a.targetVisuals.outOfRange,r=i.getData(),l=this._hmLayer||this._hmLayer||new C;l.blurSize=i.get("blurSize"),l.pointSize=i.get("pointSize"),l.minOpacity=i.get("minOpacity"),l.maxOpacity=i.get("maxOpacity");var h=s.getViewRect().clone(),f=s.getRoamTransform();h.applyTransform(f);var c=Math.max(h.x,0),d=Math.max(h.y,0),A=Math.min(h.width+h.x,u.getWidth()),x=Math.min(h.height+h.y,u.getHeight()),y=A-c,g=x-d,m=[r.mapDimension("lng"),r.mapDimension("lat"),r.mapDimension("value")],b=r.mapArray(m,function(P,O,N){var _=s.dataToPoint([P,O]);return _[0]-=c,_[1]-=d,_.push(N),_}),I=a.getExtent(),R=a.type==="visualMap.continuous"?p(I,a.option.range):S(I,a.getPieceList(),a.option.selected);l.update(b,y,g,e.color.getNormalizer(),{inRange:e.color.getColorMapper(),outOfRange:o.color.getColorMapper()},R);var E=new w.Image({style:{width:y,height:g,x:c,y:d,image:l.canvas},silent:!0});this.group.add(E)},dispose:function(){}});Y.exports=t},5186:function(Y,V,n){var T=n(18993),L=n(85617),M=n(69008),w=n(22868),C=w.createSymbol,D=n(47764),S=n(22576);function p(s,i,a){T.Group.call(this),this.add(this.createLine(s,i,a)),this._updateEffectSymbol(s,i)}var v=p.prototype;v.createLine=function(s,i,a){return new L(s,i,a)},v._updateEffectSymbol=function(s,i){var a=s.getItemModel(i),u=a.getModel("effect"),e=u.get("symbolSize"),o=u.get("symbol");M.isArray(e)||(e=[e,e]);var r=u.get("color")||s.getItemVisual(i,"color"),l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=C(o,-.5,-.5,1,1,r),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",r),l.setStyle(u.getItemStyle(["color"])),l.attr("scale",e),l.setColor(r),l.attr("scale",e),this._symbolType=o,this._symbolScale=e,this._updateEffectAnimation(s,u,i))},v._updateEffectAnimation=function(s,i,a){var u=this.childAt(1);if(u){var e=this,o=s.getItemLayout(a),r=i.get("period")*1e3,l=i.get("loop"),h=i.get("constantSpeed"),f=M.retrieve(i.get("delay"),function(x){return x/s.count()*r/3}),c=typeof f=="function";if(u.ignore=!0,this.updateAnimationPoints(u,o),h>0&&(r=this.getLineLength(u)/h*1e3),r!==this._period||l!==this._loop){u.stopAnimation();var d=f;c&&(d=f(a)),u.__t>0&&(d=-r*u.__t),u.__t=0;var A=u.animate("",l).when(r,{__t:1}).delay(d).during(function(){e.updateSymbolPosition(u)});l||A.done(function(){e.remove(u)}),A.start()}this._period=r,this._loop=l}},v.getLineLength=function(s){return D.dist(s.__p1,s.__cp1)+D.dist(s.__cp1,s.__p2)},v.updateAnimationPoints=function(s,i){s.__p1=i[0],s.__p2=i[1],s.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},v.updateData=function(s,i,a){this.childAt(0).updateData(s,i,a),this._updateEffectSymbol(s,i)},v.updateSymbolPosition=function(s){var i=s.__p1,a=s.__p2,u=s.__cp1,e=s.__t,o=s.position,r=[o[0],o[1]],l=S.quadraticAt,h=S.quadraticDerivativeAt;o[0]=l(i[0],u[0],a[0],e),o[1]=l(i[1],u[1],a[1],e);var f=h(i[0],u[0],a[0],e),c=h(i[1],u[1],a[1],e);if(s.rotation=-Math.atan2(c,f)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(s.__lastT!==void 0&&s.__lastT<s.__t){var d=D.dist(r,o)*1.05;s.attr("scale",[s.scale[0],d]),e===1&&(o[0]=r[0]+(o[0]-r[0])/2,o[1]=r[1]+(o[1]-r[1])/2)}else if(s.__lastT===1){var d=2*D.dist(i,o);s.attr("scale",[s.scale[0],d])}else s.attr("scale",this._symbolScale);s.__lastT=s.__t,s.ignore=!1},v.updateLayout=function(s,i){this.childAt(0).updateLayout(s,i);var a=s.getItemModel(i).getModel("effect");this._updateEffectAnimation(s,a,i)},M.inherits(p,T.Group);var t=p;Y.exports=t},75313:function(Y,V,n){var T=n(84700),L=n(69008),M=n(5186),w=n(47764);function C(p,v,t){M.call(this,p,v,t),this._lastFrame=0,this._lastFramePercent=0}var D=C.prototype;D.createLine=function(p,v,t){return new T(p,v,t)},D.updateAnimationPoints=function(p,v){this._points=v;for(var t=[0],s=0,i=1;i<v.length;i++){var a=v[i-1],u=v[i];s+=w.dist(a,u),t.push(s)}if(s!==0){for(var i=0;i<t.length;i++)t[i]/=s;this._offsets=t,this._length=s}},D.getLineLength=function(p){return this._length},D.updateSymbolPosition=function(p){var v=p.__t,t=this._points,s=this._offsets,i=t.length;if(s){var a=this._lastFrame,u;if(v<this._lastFramePercent){var e=Math.min(a+1,i-1);for(u=e;u>=0&&!(s[u]<=v);u--);u=Math.min(u,i-2)}else{for(var u=a;u<i&&!(s[u]>v);u++);u=Math.min(u-1,i-2)}w.lerp(p.position,t[u],t[u+1],(v-s[u])/(s[u+1]-s[u]));var o=t[u+1][0]-t[u][0],r=t[u+1][1]-t[u][1];p.rotation=-Math.atan2(r,o)-Math.PI/2,this._lastFrame=u,this._lastFramePercent=v,p.ignore=!1}},L.inherits(C,M);var S=C;Y.exports=S},82760:function(Y,V,n){var T=n(69008),L=n(22868),M=L.createSymbol,w=n(18993),C=w.Group,D=n(86957),S=D.parsePercent,p=n(32427),v=3;function t(e){return T.isArray(e)||(e=[+e,+e]),e}function s(e,o){var r=o.rippleEffectColor||o.color;e.eachChild(function(l){l.attr({z:o.z,zlevel:o.zlevel,style:{stroke:o.brushType==="stroke"?r:null,fill:o.brushType==="fill"?r:null}})})}function i(e,o){C.call(this);var r=new p(e,o),l=new C;this.add(r),this.add(l),l.beforeUpdate=function(){this.attr(r.getScale())},this.updateData(e,o)}var a=i.prototype;a.stopEffectAnimation=function(){this.childAt(1).removeAll()},a.startEffectAnimation=function(e){for(var o=e.symbolType,r=e.color,l=this.childAt(1),h=0;h<v;h++){var f=M(o,-1,-1,2,2,r);f.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var c=-h/v*e.period+e.effectOffset;f.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(c).start(),f.animateStyle(!0).when(e.period,{opacity:0}).delay(c).start(),l.add(f)}s(l,e)},a.updateEffectAnimation=function(e){for(var o=this._effectCfg,r=this.childAt(1),l=["symbolType","period","rippleScale"],h=0;h<l.length;h++){var f=l[h];if(o[f]!==e[f]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}s(r,e)},a.highlight=function(){this.trigger("emphasis")},a.downplay=function(){this.trigger("normal")},a.updateData=function(e,o){var r=e.hostModel;this.childAt(0).updateData(e,o);var l=this.childAt(1),h=e.getItemModel(o),f=e.getItemVisual(o,"symbol"),c=t(e.getItemVisual(o,"symbolSize")),d=e.getItemVisual(o,"color");l.attr("scale",c),l.traverse(function(R){R.attr({fill:d})});var A=h.getShallow("symbolOffset");if(A){var x=l.position;x[0]=S(A[0],c[0]),x[1]=S(A[1],c[1])}var y=e.getItemVisual(o,"symbolRotate");l.rotation=(y||0)*Math.PI/180||0;var g={};if(g.showEffectOn=r.get("showEffectOn"),g.rippleScale=h.get("rippleEffect.scale"),g.brushType=h.get("rippleEffect.brushType"),g.period=h.get("rippleEffect.period")*1e3,g.effectOffset=o/e.count(),g.z=h.getShallow("z")||0,g.zlevel=h.getShallow("zlevel")||0,g.symbolType=f,g.color=d,g.rippleEffectColor=h.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),g.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g;else{this._effectCfg=null,this.stopEffectAnimation();var m=this.childAt(0),b=function(){m.highlight(),g.showEffectOn!=="render"&&this.startEffectAnimation(g)},I=function(){m.downplay(),g.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",b,this).on("mouseout",I,this).on("emphasis",b,this).on("normal",I,this)}this._effectCfg=g},a.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},T.inherits(i,C);var u=i;Y.exports=u},68918:function(Y,V,n){var T=n(18993),L=n(61465),M=n(10531),w=n(66514),C=T.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(v,t){var s=t.segs,i=t.curveness;if(t.polyline)for(var a=0;a<s.length;){var u=s[a++];if(u>0){v.moveTo(s[a++],s[a++]);for(var e=1;e<u;e++)v.lineTo(s[a++],s[a++])}}else for(var a=0;a<s.length;){var o=s[a++],r=s[a++],l=s[a++],h=s[a++];if(v.moveTo(o,r),i>0){var f=(o+l)/2-(r-h)*i,c=(r+h)/2-(l-o)*i;v.quadraticCurveTo(f,c,l,h)}else v.lineTo(l,h)}},findDataIndex:function(v,t){var s=this.shape,i=s.segs,a=s.curveness;if(s.polyline)for(var u=0,e=0;e<i.length;){var o=i[e++];if(o>0)for(var r=i[e++],l=i[e++],h=1;h<o;h++){var f=i[e++],c=i[e++];if(M.containStroke(r,l,f,c))return u}u++}else for(var u=0,e=0;e<i.length;){var r=i[e++],l=i[e++],f=i[e++],c=i[e++];if(a>0){var d=(r+f)/2-(l-c)*a,A=(l+c)/2-(f-r)*a;if(w.containStroke(r,l,d,A,f,c))return u}else if(M.containStroke(r,l,f,c))return u;u++}return-1}});function D(){this.group=new T.Group}var S=D.prototype;S.isPersistent=function(){return!this._incremental},S.updateData=function(v){this.group.removeAll();var t=new C({rectHover:!0,cursor:"default"});t.setShape({segs:v.getLayout("linesPoints")}),this._setCommon(t,v),this.group.add(t),this._incremental=null},S.incrementalPrepareUpdate=function(v){this.group.removeAll(),this._clearIncremental(),v.count()>5e5?(this._incremental||(this._incremental=new L({silent:!0})),this.group.add(this._incremental)):this._incremental=null},S.incrementalUpdate=function(v,t){var s=new C;s.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(s,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(s,!0):(s.rectHover=!0,s.cursor="default",s.__startIndex=v.start,this.group.add(s))},S.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},S._setCommon=function(v,t,s){var i=t.hostModel;v.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),v.useStyle(i.getModel("lineStyle").getLineStyle()),v.style.strokeNoScale=!0;var a=t.getVisual("color");a&&v.setStyle("stroke",a),v.setStyle("fill"),s||(v.seriesIndex=i.seriesIndex,v.on("mousemove",function(u){v.dataIndex=null;var e=v.findDataIndex(u.offsetX,u.offsetY);e>0&&(v.dataIndex=e+v.__startIndex)}))},S._clearIncremental=function(){var v=this._incremental;v&&v.clearDisplaybles()};var p=D;Y.exports=p},15499:function(Y,V,n){var T=n(18993),L=n(22868),M=L.createSymbol,w=n(61465),C=4,D=T.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,s){var i=s.points,a=s.size,u=this.symbolProxy,e=u.shape,o=t.getContext?t.getContext():t,r=o&&a[0]<C;if(!r)for(var l=0;l<i.length;){var h=i[l++],f=i[l++];isNaN(h)||isNaN(f)||this.softClipShape&&!this.softClipShape.contain(h,f)||(e.x=h-a[0]/2,e.y=f-a[1]/2,e.width=a[0],e.height=a[1],u.buildPath(t,e,!0))}},afterBrush:function(t){var s=this.shape,i=s.points,a=s.size,u=a[0]<C;if(u){this.setTransform(t);for(var e=0;e<i.length;){var o=i[e++],r=i[e++];isNaN(o)||isNaN(r)||this.softClipShape&&!this.softClipShape.contain(o,r)||t.fillRect(o-a[0]/2,r-a[1]/2,a[0],a[1])}this.restoreTransform(t)}},findDataIndex:function(t,s){for(var i=this.shape,a=i.points,u=i.size,e=Math.max(u[0],4),o=Math.max(u[1],4),r=a.length/2-1;r>=0;r--){var l=r*2,h=a[l]-e/2,f=a[l+1]-o/2;if(t>=h&&s>=f&&t<=h+e&&s<=f+o)return r}return-1}});function S(){this.group=new T.Group}var p=S.prototype;p.isPersistent=function(){return!this._incremental},p.updateData=function(t,s){this.group.removeAll();var i=new D({rectHover:!0,cursor:"default"});i.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(i,t,!1,s),this.group.add(i),this._incremental=null},p.updateLayout=function(t){if(!this._incremental){var s=t.getLayout("symbolPoints");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,u=i.startIndex*4*2;s=new Float32Array(s.buffer,u,a)}i.setShape("points",s)})}},p.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new w({silent:!0})),this.group.add(this._incremental)):this._incremental=null},p.incrementalUpdate=function(t,s,i){var a;this._incremental?(a=new D,this._incremental.addDisplayable(a,!0)):(a=new D({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),a.incremental=!0,this.group.add(a)),a.setShape({points:s.getLayout("symbolPoints")}),this._setCommon(a,s,!!this._incremental,i)},p._setCommon=function(t,s,i,a){var u=s.hostModel;a=a||{};var e=s.getVisual("symbolSize");t.setShape("size",e instanceof Array?e:[e,e]),t.softClipShape=a.clipShape||null,t.symbolProxy=M(s.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<C;t.useStyle(u.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var r=s.getVisual("color");r&&t.setColor(r),i||(t.seriesIndex=u.seriesIndex,t.on("mousemove",function(l){t.dataIndex=null;var h=t.findDataIndex(l.offsetX,l.offsetY);h>=0&&(t.dataIndex=h+(t.startIndex||0))}))},p.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},p._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var v=S;Y.exports=v},85617:function(Y,V,n){var T=n(69008),L=n(47764),M=n(22868),w=n(46875),C=n(18993),D=n(86957),S=D.round,p=["fromSymbol","toSymbol"];function v(r){return"_"+r+"Type"}function t(r,l,h){var f=l.getItemVisual(h,"color"),c=l.getItemVisual(h,r),d=l.getItemVisual(h,r+"Size");if(!(!c||c==="none")){T.isArray(d)||(d=[d,d]);var A=M.createSymbol(c,-d[0]/2,-d[1]/2,d[0],d[1],f);return A.name=r,A}}function s(r){var l=new w({name:"line",subPixelOptimize:!0});return i(l.shape,r),l}function i(r,l){r.x1=l[0][0],r.y1=l[0][1],r.x2=l[1][0],r.y2=l[1][1],r.percent=1;var h=l[2];h?(r.cpx1=h[0],r.cpy1=h[1]):(r.cpx1=NaN,r.cpy1=NaN)}function a(){var r=this,l=r.childOfName("fromSymbol"),h=r.childOfName("toSymbol"),f=r.childOfName("label");if(!(!l&&!h&&f.ignore)){for(var c=1,d=this.parent;d;)d.scale&&(c/=d.scale[0]),d=d.parent;var A=r.childOfName("line");if(!(!this.__dirty&&!A.__dirty)){var x=A.shape.percent,y=A.pointAt(0),g=A.pointAt(x),m=L.sub([],g,y);if(L.normalize(m,m),l){l.attr("position",y);var b=A.tangentAt(0);l.attr("rotation",Math.PI/2-Math.atan2(b[1],b[0])),l.attr("scale",[c*x,c*x])}if(h){h.attr("position",g);var b=A.tangentAt(1);h.attr("rotation",-Math.PI/2-Math.atan2(b[1],b[0])),h.attr("scale",[c*x,c*x])}if(!f.ignore){f.attr("position",g);var I,R,E,P,O=f.__labelDistance,N=O[0]*c,_=O[1]*c,G=x/2,b=A.tangentAt(G),F=[b[1],-b[0]],W=A.pointAt(G);F[1]>0&&(F[0]=-F[0],F[1]=-F[1]);var U=b[0]<0?-1:1;if(f.__position!=="start"&&f.__position!=="end"){var H=-Math.atan2(b[1],b[0]);g[0]<y[0]&&(H=Math.PI+H),f.attr("rotation",H)}var z;switch(f.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":z=-_,E="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":z=_,E="top";break;default:z=0,E="middle"}switch(f.__position){case"end":I=[m[0]*N+g[0],m[1]*_+g[1]],R=m[0]>.8?"left":m[0]<-.8?"right":"center",E=m[1]>.8?"top":m[1]<-.8?"bottom":"middle";break;case"start":I=[-m[0]*N+y[0],-m[1]*_+y[1]],R=m[0]>.8?"right":m[0]<-.8?"left":"center",E=m[1]>.8?"bottom":m[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[N*U+y[0],y[1]+z],R=b[0]<0?"right":"left",P=[-N*U,-z];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[W[0],W[1]+z],R="center",P=[0,-z];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-N*U+g[0],g[1]+z],R=b[0]>=0?"right":"left",P=[N*U,-z];break}f.attr({style:{textVerticalAlign:f.__verticalAlign||E,textAlign:f.__textAlign||R},position:I,scale:[c,c],origin:P})}}}}function u(r,l,h){C.Group.call(this),this._createLine(r,l,h)}var e=u.prototype;e.beforeUpdate=a,e._createLine=function(r,l,h){var f=r.hostModel,c=r.getItemLayout(l),d=s(c);d.shape.percent=0,C.initProps(d,{shape:{percent:1}},f,l),this.add(d);var A=new C.Text({name:"label",lineLabelOriginalOpacity:1});this.add(A),T.each(p,function(x){var y=t(x,r,l);this.add(y),this[v(x)]=r.getItemVisual(l,x)},this),this._updateCommonStl(r,l,h)},e.updateData=function(r,l,h){var f=r.hostModel,c=this.childOfName("line"),d=r.getItemLayout(l),A={shape:{}};i(A.shape,d),C.updateProps(c,A,f,l),T.each(p,function(x){var y=r.getItemVisual(l,x),g=v(x);if(this[g]!==y){this.remove(this.childOfName(x));var m=t(x,r,l);this.add(m)}this[g]=y},this),this._updateCommonStl(r,l,h)},e._updateCommonStl=function(r,l,h){var f=r.hostModel,c=this.childOfName("line"),d=h&&h.lineStyle,A=h&&h.hoverLineStyle,x=h&&h.labelModel,y=h&&h.hoverLabelModel;if(!h||r.hasItemOption){var g=r.getItemModel(l);d=g.getModel("lineStyle").getLineStyle(),A=g.getModel("emphasis.lineStyle").getLineStyle(),x=g.getModel("label"),y=g.getModel("emphasis.label")}var m=r.getItemVisual(l,"color"),b=T.retrieve3(r.getItemVisual(l,"opacity"),d.opacity,1);c.useStyle(T.defaults({strokeNoScale:!0,fill:"none",stroke:m,opacity:b},d)),c.hoverStyle=A,T.each(p,function(U){var H=this.childOfName(U);H&&(H.setColor(m),H.setStyle({opacity:b}))},this);var I=x.getShallow("show"),R=y.getShallow("show"),E=this.childOfName("label"),P,O;if((I||R)&&(P=m||"#000",O=f.getFormattedLabel(l,"normal",r.dataType),O==null)){var N=f.getRawValue(l);O=N==null?r.getName(l):isFinite(N)?S(N):N}var _=I?O:null,G=R?T.retrieve2(f.getFormattedLabel(l,"emphasis",r.dataType),O):null,F=E.style;if(_!=null||G!=null){C.setTextStyle(E.style,x,{text:_},{autoColor:P}),E.__textAlign=F.textAlign,E.__verticalAlign=F.textVerticalAlign,E.__position=x.get("position")||"middle";var W=x.get("distance");T.isArray(W)||(W=[W,W]),E.__labelDistance=W}G!=null?E.hoverStyle={text:G,textFill:y.getTextColor(!0),fontStyle:y.getShallow("fontStyle"),fontWeight:y.getShallow("fontWeight"),fontSize:y.getShallow("fontSize"),fontFamily:y.getShallow("fontFamily")}:E.hoverStyle={text:null},E.ignore=!I&&!R,C.setHoverStyle(this)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateLayout=function(r,l){this.setLinePoints(r.getItemLayout(l))},e.setLinePoints=function(r){var l=this.childOfName("line");i(l.shape,r),l.dirty()},T.inherits(u,C.Group);var o=u;Y.exports=o},70562:function(Y,V,n){var T=n(18993),L=n(85617);function M(i){this._ctor=i||L,this.group=new T.Group}var w=M.prototype;w.isPersistent=function(){return!0},w.updateData=function(i){var a=this,u=a.group,e=a._lineData;a._lineData=i,e||u.removeAll();var o=p(i);i.diff(e).add(function(r){C(a,i,r,o)}).update(function(r,l){D(a,e,i,l,r,o)}).remove(function(r){u.remove(e.getItemGraphicEl(r))}).execute()};function C(i,a,u,e){var o=a.getItemLayout(u);if(t(o)){var r=new i._ctor(a,u,e);a.setItemGraphicEl(u,r),i.group.add(r)}}function D(i,a,u,e,o,r){var l=a.getItemGraphicEl(e);if(!t(u.getItemLayout(o))){i.group.remove(l);return}l?l.updateData(u,o,r):l=new i._ctor(u,o,r),u.setItemGraphicEl(o,l),i.group.add(l)}w.updateLayout=function(){var i=this._lineData;i&&i.eachItemGraphicEl(function(a,u){a.updateLayout(i,u)},this)},w.incrementalPrepareUpdate=function(i){this._seriesScope=p(i),this._lineData=null,this.group.removeAll()};function S(i){return i.animators&&i.animators.length>0}w.incrementalUpdate=function(i,a){function u(l){!l.isGroup&&!S(l)&&(l.incremental=l.useHoverLayer=!0)}for(var e=i.start;e<i.end;e++){var o=a.getItemLayout(e);if(t(o)){var r=new this._ctor(a,e,this._seriesScope);r.traverse(u),this.group.add(r),a.setItemGraphicEl(e,r)}}};function p(i){var a=i.hostModel;return{lineStyle:a.getModel("lineStyle").getLineStyle(),hoverLineStyle:a.getModel("emphasis.lineStyle").getLineStyle(),labelModel:a.getModel("label"),hoverLabelModel:a.getModel("emphasis.label")}}w.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},w._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()};function v(i){return isNaN(i[0])||isNaN(i[1])}function t(i){return!v(i[0])&&!v(i[1])}var s=M;Y.exports=s},46875:function(Y,V,n){var T=n(18993),L=n(47764),M=T.Line.prototype,w=T.BezierCurve.prototype;function C(S){return isNaN(+S.cpx1)||isNaN(+S.cpy1)}var D=T.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(S,p){this[C(p)?"_buildPathLine":"_buildPathCurve"](S,p)},_buildPathLine:M.buildPath,_buildPathCurve:w.buildPath,pointAt:function(S){return this[C(this.shape)?"_pointAtLine":"_pointAtCurve"](S)},_pointAtLine:M.pointAt,_pointAtCurve:w.pointAt,tangentAt:function(S){var p=this.shape,v=C(p)?[p.x2-p.x1,p.y2-p.y1]:this._tangentAtCurve(S);return L.normalize(v,v)},_tangentAtCurve:w.tangentAt});Y.exports=D},84700:function(Y,V,n){var T=n(18993),L=n(69008);function M(D,S,p){T.Group.call(this),this._createPolyline(D,S,p)}var w=M.prototype;w._createPolyline=function(D,S,p){var v=D.getItemLayout(S),t=new T.Polyline({shape:{points:v}});this.add(t),this._updateCommonStl(D,S,p)},w.updateData=function(D,S,p){var v=D.hostModel,t=this.childAt(0),s={shape:{points:D.getItemLayout(S)}};T.updateProps(t,s,v,S),this._updateCommonStl(D,S,p)},w._updateCommonStl=function(D,S,p){var v=this.childAt(0),t=D.getItemModel(S),s=D.getItemVisual(S,"color"),i=p&&p.lineStyle,a=p&&p.hoverLineStyle;(!p||D.hasItemOption)&&(i=t.getModel("lineStyle").getLineStyle(),a=t.getModel("emphasis.lineStyle").getLineStyle()),v.useStyle(L.defaults({strokeNoScale:!0,fill:"none",stroke:s},i)),v.hoverStyle=a,T.setHoverStyle(this)},w.updateLayout=function(D,S){var p=this.childAt(0);p.setShape("points",D.getItemLayout(S))},L.inherits(M,T.Group);var C=M;Y.exports=C},32427:function(Y,V,n){var T=n(69008),L=n(22868),M=L.createSymbol,w=n(18993),C=n(86957),D=C.parsePercent,S=n(38113),p=S.getDefaultLabel;function v(f,c,d){w.Group.call(this),this.updateData(f,c,d)}var t=v.prototype,s=v.getSymbolSize=function(f,c){var d=f.getItemVisual(c,"symbolSize");return d instanceof Array?d.slice():[+d,+d]};function i(f){return[f[0]/2,f[1]/2]}function a(f,c){this.parent.drift(f,c)}t._createSymbol=function(f,c,d,A,x){this.removeAll();var y=c.getItemVisual(d,"color"),g=M(f,-1,-1,2,2,y,x);g.attr({z2:100,culling:!0,scale:i(A)}),g.drift=a,this._symbolType=f,this.add(g)},t.stopSymbolAnimation=function(f){this.childAt(0).stopAnimation(f)},t.getSymbolPath=function(){return this.childAt(0)},t.getScale=function(){return this.childAt(0).scale},t.highlight=function(){this.childAt(0).trigger("emphasis")},t.downplay=function(){this.childAt(0).trigger("normal")},t.setZ=function(f,c){var d=this.childAt(0);d.zlevel=f,d.z=c},t.setDraggable=function(f){var c=this.childAt(0);c.draggable=f,c.cursor=f?"move":c.cursor},t.updateData=function(f,c,d){this.silent=!1;var A=f.getItemVisual(c,"symbol")||"circle",x=f.hostModel,y=s(f,c),g=A!==this._symbolType;if(g){var m=f.getItemVisual(c,"symbolKeepAspect");this._createSymbol(A,f,c,y,m)}else{var b=this.childAt(0);b.silent=!1,w.updateProps(b,{scale:i(y)},x,c)}if(this._updateCommon(f,c,y,d),g){var b=this.childAt(0),I=d&&d.fadeIn,R={scale:b.scale.slice()};I&&(R.style={opacity:b.style.opacity}),b.scale=[0,0],I&&(b.style.opacity=0),w.initProps(b,R,x,c)}this._seriesModel=x};var u=["itemStyle"],e=["emphasis","itemStyle"],o=["label"],r=["emphasis","label"];t._updateCommon=function(f,c,d,A){var x=this.childAt(0),y=f.hostModel,g=f.getItemVisual(c,"color");x.type!=="image"?x.useStyle({strokeNoScale:!0}):x.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var m=A&&A.itemStyle,b=A&&A.hoverItemStyle,I=A&&A.symbolOffset,R=A&&A.labelModel,E=A&&A.hoverLabelModel,P=A&&A.hoverAnimation,O=A&&A.cursorStyle;if(!A||f.hasItemOption){var N=A&&A.itemModel?A.itemModel:f.getItemModel(c);m=N.getModel(u).getItemStyle(["color"]),b=N.getModel(e).getItemStyle(),I=N.getShallow("symbolOffset"),R=N.getModel(o),E=N.getModel(r),P=N.getShallow("hoverAnimation"),O=N.getShallow("cursor")}else b=T.extend({},b);var _=x.style,G=f.getItemVisual(c,"symbolRotate");x.attr("rotation",(G||0)*Math.PI/180||0),I&&x.attr("position",[D(I[0],d[0]),D(I[1],d[1])]),O&&x.attr("cursor",O),x.setColor(g,A&&A.symbolInnerColor),x.setStyle(m);var F=f.getItemVisual(c,"opacity");F!=null&&(_.opacity=F);var W=f.getItemVisual(c,"liftZ"),U=x.__z2Origin;W!=null?U==null&&(x.__z2Origin=x.z2,x.z2+=W):U!=null&&(x.z2=U,x.__z2Origin=null);var H=A&&A.useNameLabel;w.setLabelStyle(_,b,R,E,{labelFetcher:y,labelDataIndex:c,defaultText:z,isRectText:!0,autoColor:g});function z(B,k){return H?f.getName(B):p(f,B)}x.__symbolOriginalScale=i(d),x.hoverStyle=b,x.highDownOnUpdate=P&&y.isAnimationEnabled()?l:null,w.setHoverStyle(x)};function l(f,c){if(!(this.incremental||this.useHoverLayer))if(c==="emphasis"){var d=this.__symbolOriginalScale,A=d[1]/d[0],x={scale:[Math.max(d[0]*1.1,d[0]+3),Math.max(d[1]*1.1,d[1]+3*A)]};this.animateTo(x,400,"elasticOut")}else c==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}t.fadeOut=function(f,c){var d=this.childAt(0);this.silent=d.silent=!0,!(c&&c.keepLabel)&&(d.style.text=null),w.updateProps(d,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,f)},T.inherits(v,w.Group);var h=v;Y.exports=h},38346:function(Y,V,n){var T=n(18993),L=n(32427),M=n(69008),w=M.isObject;function C(s){this.group=new T.Group,this._symbolCtor=s||L}var D=C.prototype;function S(s,i,a,u){return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(u.isIgnore&&u.isIgnore(a))&&!(u.clipShape&&!u.clipShape.contain(i[0],i[1]))&&s.getItemVisual(a,"symbol")!=="none"}D.updateData=function(s,i){i=p(i);var a=this.group,u=s.hostModel,e=this._data,o=this._symbolCtor,r=v(s);e||a.removeAll(),s.diff(e).add(function(l){var h=s.getItemLayout(l);if(S(s,h,l,i)){var f=new o(s,l,r);f.attr("position",h),s.setItemGraphicEl(l,f),a.add(f)}}).update(function(l,h){var f=e.getItemGraphicEl(h),c=s.getItemLayout(l);if(!S(s,c,l,i)){a.remove(f);return}f?(f.updateData(s,l,r),T.updateProps(f,{position:c},u)):(f=new o(s,l),f.attr("position",c)),a.add(f),s.setItemGraphicEl(l,f)}).remove(function(l){var h=e.getItemGraphicEl(l);h&&h.fadeOut(function(){a.remove(h)})}).execute(),this._data=s},D.isPersistent=function(){return!0},D.updateLayout=function(){var s=this._data;s&&s.eachItemGraphicEl(function(i,a){var u=s.getItemLayout(a);i.attr("position",u)})},D.incrementalPrepareUpdate=function(s){this._seriesScope=v(s),this._data=null,this.group.removeAll()},D.incrementalUpdate=function(s,i,a){a=p(a);function u(l){l.isGroup||(l.incremental=l.useHoverLayer=!0)}for(var e=s.start;e<s.end;e++){var o=i.getItemLayout(e);if(S(i,o,e,a)){var r=new this._symbolCtor(i,e,this._seriesScope);r.traverse(u),r.attr("position",o),this.group.add(r),i.setItemGraphicEl(e,r)}}};function p(s){return s!=null&&!w(s)&&(s={isIgnore:s}),s||{}}D.remove=function(s){var i=this.group,a=this._data;a&&s?a.eachItemGraphicEl(function(u){u.fadeOut(function(){i.remove(u)})}):i.removeAll()};function v(s){var i=s.hostModel;return{itemStyle:i.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:i.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:i.get("symbolRotate"),symbolOffset:i.get("symbolOffset"),hoverAnimation:i.get("hoverAnimation"),labelModel:i.getModel("label"),hoverLabelModel:i.getModel("emphasis.label"),cursorStyle:i.get("cursor")}}var t=C;Y.exports=t},38797:function(Y,V,n){var T=n(18993),L=n(86957),M=L.round;function w(S,p,v){var t=S.getArea(),s=S.getBaseAxis().isHorizontal(),i=t.x,a=t.y,u=t.width,e=t.height,o=v.get("lineStyle.width")||2;i-=o/2,a-=o/2,u+=o,e+=o,i=Math.floor(i),u=Math.round(u);var r=new T.Rect({shape:{x:i,y:a,width:u,height:e}});return p&&(r.shape[s?"width":"height"]=0,T.initProps(r,{shape:{width:u,height:e}},v)),r}function C(S,p,v){var t=S.getArea(),s=new T.Sector({shape:{cx:M(S.cx,1),cy:M(S.cy,1),r0:M(t.r0,1),r:M(t.r,1),startAngle:t.startAngle,endAngle:t.endAngle,clockwise:t.clockwise}});return p&&(s.shape.endAngle=t.startAngle,T.initProps(s,{shape:{endAngle:t.endAngle}},v)),s}function D(S,p,v){if(S){if(S.type==="polar")return C(S,p,v);if(S.type==="cartesian2d")return w(S,p,v)}else return null;return null}V.createGridClipPath=w,V.createPolarClipPath=C,V.createClipPath=D},29306:function(Y,V,n){var T=n(69008),L=n(39177),M=n(2229),w=n(6333),C=n(34476),D=n(33807),S=n(32977);function p(v,t,s,i,a){for(var u=new M(i),e=0;e<v.length;e++)u.addNode(T.retrieve(v[e].id,v[e].name,e),e);for(var o=[],r=[],l=0,e=0;e<t.length;e++){var h=t[e],f=h.source,c=h.target;u.addEdge(f,c,l)&&(r.push(h),o.push(T.retrieve(h.id,f+" > "+c)),l++)}var d=s.get("coordinateSystem"),A;if(d==="cartesian2d"||d==="polar")A=S(v,s);else{var x=D.get(d),y=x&&x.type!=="view"?x.dimensions||[]:[];T.indexOf(y,"value")<0&&y.concat(["value"]);var g=C(v,{coordDimensions:y});A=new L(g,s),A.initData(v)}var m=new L(["value"],s);return m.initData(r,o),a&&a(A,m),w({mainData:A,struct:u,structAttr:"graph",datas:{node:A,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),u.update(),u}Y.exports=p},32977:function(Y,V,n){var T=n(69008),L=n(39177),M=n(34476),w=n(8326),C=w.SOURCE_FORMAT_ORIGINAL,D=n(28176),S=D.getDimensionTypeByAxis,p=n(90830),v=p.getDataItemValue,t=n(33807),s=n(28927),i=s.getCoordSysInfoBySeries,a=n(50751),u=n(22240),e=u.enableDataStack,o=n(67063),r=o.makeSeriesEncodeForAxisCoordSys;function l(d,A,x){x=x||{},a.isInstance(d)||(d=a.seriesDataToSource(d));var y=A.get("coordinateSystem"),g=t.get(y),m=i(A),b;m&&(b=T.map(m.coordSysDims,function(_){var G={name:_},F=m.axisMap.get(_);if(F){var W=F.get("type");G.type=S(W)}return G})),b||(b=g&&(g.getDimensionsInfo?g.getDimensionsInfo():g.dimensions.slice())||["x","y"]);var I=M(d,{coordDimensions:b,generateCoord:x.generateCoord,encodeDefaulter:x.useEncodeDefaulter?T.curry(r,b,A):null}),R,E;m&&T.each(I,function(_,G){var F=_.coordDim,W=m.categoryAxisMap.get(F);W&&(R==null&&(R=G),_.ordinalMeta=W.getOrdinalMeta()),_.otherDims.itemName!=null&&(E=!0)}),!E&&R!=null&&(I[R].otherDims.itemName=0);var P=e(A,I),O=new L(I,A);O.setCalculationInfo(P);var N=R!=null&&h(d)?function(_,G,F,W){return W===R?F:this.defaultDimValueGetter(_,G,F,W)}:null;return O.hasItemOption=!1,O.initData(d,null,N),O}function h(d){if(d.sourceFormat===C){var A=f(d.data||[]);return A!=null&&!T.isArray(v(A))}}function f(d){for(var A=0;A<d.length&&d[A]==null;)A++;return d[A]}var c=l;Y.exports=c},60425:function(Y,V,n){var T=n(34476),L=n(39177),M=n(69008),w=M.extend,C=M.isArray;function D(S,p,v){p=C(p)&&{coordDimensions:p}||w({},p);var t=S.getSource(),s=T(t,p),i=new L(s,S);return i.initData(t,v),i}Y.exports=D},13861:function(Y,V,n){var T=n(90830),L=T.makeInner;function M(){var w=L();return function(C){var D=w(C),S=C.pipelineContext,p=D.large,v=D.progressiveRender,t=D.large=S&&S.large,s=D.progressiveRender=S&&S.progressiveRender;return!!(p^t||v^s)&&"reset"}}Y.exports=M},18148:function(Y,V,n){var T=n(3096);T.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),T.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},38113:function(Y,V,n){var T=n(17751),L=T.retrieveRawValue;function M(w,C){var D=w.mapDimension("defaultedLabel",!0),S=D.length;if(S===1)return L(w,C,D[0]);if(S){for(var p=[],v=0;v<D.length;v++){var t=L(w,C,D[v]);p.push(t)}return p.join(" ")}}V.getDefaultLabel=M},22889:function(Y,V,n){var T=n(69008);function L(D,S,p){if(D&&T.indexOf(S,D.type)>=0){var v=p.getData().tree.root,t=D.targetNode;if(typeof t=="string"&&(t=v.getNodeById(t)),t&&v.contains(t))return{node:t};var s=D.targetNodeId;if(s!=null&&(t=v.getNodeById(s)))return{node:t}}}function M(D){for(var S=[];D;)D=D.parentNode,D&&S.push(D);return S.reverse()}function w(D,S){var p=M(D);return T.indexOf(p,S)>=0}function C(D,S){for(var p=[];D;){var v=D.dataIndex;p.push({name:D.name,dataIndex:v,value:S.getRawValue(v)}),D=D.parentNode}return p.reverse(),p}V.retrieveTargetInfo=L,V.getPathToRoot=M,V.aboveViewRoot=w,V.wrapTreePathInfo=C},45112:function(Y,V,n){var T=n(60425),L=n(69008),M=n(28176),w=M.getDimensionTypeByAxis,C=n(67063),D=C.makeSeriesEncodeForAxisCoordSys,S={_baseAxisDim:null,getInitialData:function(p,v){var t,s=v.getComponent("xAxis",this.get("xAxisIndex")),i=v.getComponent("yAxis",this.get("yAxisIndex")),a=s.get("type"),u=i.get("type"),e;a==="category"?(p.layout="horizontal",t=s.getOrdinalMeta(),e=!0):u==="category"?(p.layout="vertical",t=i.getOrdinalMeta(),e=!0):p.layout=p.layout||"horizontal";var o=["x","y"],r=p.layout==="horizontal"?0:1,l=this._baseAxisDim=o[r],h=o[1-r],f=[s,i],c=f[r].get("type"),d=f[1-r].get("type"),A=p.data;if(A&&e){var x=[];L.each(A,function(m,b){var I;m.value&&L.isArray(m.value)?(I=m.value.slice(),m.value.unshift(b)):L.isArray(m)?(I=m.slice(),m.unshift(b)):I=m,x.push(I)}),p.data=x}var y=this.defaultValueDimensions,g=[{name:l,type:w(c),ordinalMeta:t,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:w(d),dimsDef:y.slice()}];return T(this,{coordDimensions:g,dimensionsCount:y.length+1,encodeDefaulter:L.curry(D,g,this)})},getBaseAxis:function(){var p=this._baseAxisDim;return this.ecModel.getComponent(p+"Axis",this.get(p+"AxisIndex")).axis}};V.seriesModelMixin=S},54023:function(Y,V,n){var T=n(3096);n(30399),n(51118);var L=n(11404),M=n(87984),w=n(70932);n(47102),T.registerVisual(L("line","circle","line")),T.registerLayout(M("line")),T.registerProcessor(T.PRIORITY.PROCESSOR.STATISTIC,w("line"))},30399:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(32977),w=n(38645),C=w.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(D,S){return M(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});Y.exports=C},51118:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(16254),C=w.fromPoints,D=n(38346),S=n(32427),p=n(35553),v=n(18993),t=n(90830),s=n(81158),i=s.Polyline,a=s.Polygon,u=n(68880),e=n(75518),o=e.prepareDataCoordInfo,r=e.getStackedOnPoint,l=n(38797),h=l.createGridClipPath,f=l.createPolarClipPath;function c(E,P){if(E.length===P.length){for(var O=0;O<E.length;O++){var N=E[O],_=P[O];if(N[0]!==_[0]||N[1]!==_[1])return}return!0}}function d(E,P){var O=[],N=[],_=[],G=[];return C(E,O,N),C(P,_,G),Math.max(Math.abs(O[0]-_[0]),Math.abs(O[1]-_[1]),Math.abs(N[0]-G[0]),Math.abs(N[1]-G[1]))}function A(E){return typeof E=="number"?E:E?.5:0}function x(E,P,O){if(!O.valueDim)return[];for(var N=[],_=0,G=P.count();_<G;_++)N.push(r(O,E,P,_));return N}function y(E,P,O){for(var N=P.getBaseAxis(),_=N.dim==="x"||N.dim==="radius"?0:1,G=[],F=0;F<E.length-1;F++){var W=E[F+1],U=E[F];G.push(U);var H=[];switch(O){case"end":H[_]=W[_],H[1-_]=U[1-_],G.push(H);break;case"middle":var z=(U[_]+W[_])/2,B=[];H[_]=B[_]=z,H[1-_]=U[1-_],B[1-_]=W[1-_],G.push(H),G.push(B);break;default:H[_]=U[_],H[1-_]=W[1-_],G.push(H)}}return E[F]&&G.push(E[F]),G}function g(E,P){var O=E.getVisual("visualMeta");if(!(!O||!O.length||!E.count())&&P.type==="cartesian2d"){for(var N,_,G=O.length-1;G>=0;G--){var F=O[G].dimension,W=E.dimensions[F],U=E.getDimensionInfo(W);if(N=U&&U.coordDim,N==="x"||N==="y"){_=O[G];break}}if(_){var H=P.getAxis(N),z=M.map(_.stops,function(tt){return{coord:H.toGlobalCoord(H.dataToCoord(tt.value)),color:tt.color}}),B=z.length,k=_.outerColors.slice();B&&z[0].coord>z[B-1].coord&&(z.reverse(),k.reverse());var Z=10,X=z[0].coord-Z,K=z[B-1].coord+Z,Q=K-X;if(Q<.001)return"transparent";M.each(z,function(tt){tt.offset=(tt.coord-X)/Q}),z.push({offset:B?z[B-1].offset:.5,color:k[1]||"transparent"}),z.unshift({offset:B?z[0].offset:.5,color:k[0]||"transparent"});var J=new v.LinearGradient(0,0,0,0,z,!0);return J[N]=X,J[N+"2"]=K,J}}}function m(E,P,O){var N=E.get("showAllSymbol"),_=N==="auto";if(!(N&&!_)){var G=O.getAxesByScale("ordinal")[0];if(G&&!(_&&b(G,P))){var F=P.mapDimension(G.dim),W={};return M.each(G.getViewLabels(),function(U){W[U.tickValue]=1}),function(U){return!W.hasOwnProperty(P.get(F,U))}}}}function b(E,P){var O=E.getExtent(),N=Math.abs(O[1]-O[0])/E.scale.count();isNaN(N)&&(N=0);for(var _=P.count(),G=Math.max(1,Math.round(_/5)),F=0;F<_;F+=G)if(S.getSymbolSize(P,F)[E.isHorizontal()?1:0]*1.5>N)return!1;return!0}function I(E,P,O){if(E.type==="cartesian2d"){var N=E.getBaseAxis().isHorizontal(),_=h(E,P,O);if(!O.get("clip",!0)){var G=_.shape,F=Math.max(G.width,G.height);N?(G.y-=F,G.height+=F*2):(G.x-=F,G.width+=F*2)}return _}else return f(E,P,O)}var R=u.extend({type:"line",init:function(){var E=new v.Group,P=new D;this.group.add(P.group),this._symbolDraw=P,this._lineGroup=E},render:function(E,P,O){var N=E.coordinateSystem,_=this.group,G=E.getData(),F=E.getModel("lineStyle"),W=E.getModel("areaStyle"),U=G.mapArray(G.getItemLayout),H=N.type==="polar",z=this._coordSys,B=this._symbolDraw,k=this._polyline,Z=this._polygon,X=this._lineGroup,K=E.get("animation"),Q=!W.isEmpty(),J=W.get("origin"),tt=o(N,G,J),q=x(N,G,tt),rt=E.get("showSymbol"),$=rt&&!H&&m(E,G,N),j=this._data;j&&j.eachItemGraphicEl(function(gt,Ct){gt.__temp&&(_.remove(gt),j.setItemGraphicEl(Ct,null))}),rt||B.remove(),_.add(X);var st=!H&&E.get("step"),ot;N&&N.getArea&&E.get("clip",!0)&&(ot=N.getArea(),ot.width!=null?(ot.x-=.1,ot.y-=.1,ot.width+=.2,ot.height+=.2):ot.r0&&(ot.r0-=.5,ot.r1+=.5)),this._clipShapeForSymbol=ot,k&&z.type===N.type&&st===this._step?(Q&&!Z?Z=this._newPolygon(U,q,N,K):Z&&!Q&&(X.remove(Z),Z=this._polygon=null),X.setClipPath(I(N,!1,E)),rt&&B.updateData(G,{isIgnore:$,clipShape:ot}),G.eachItemGraphicEl(function(gt){gt.stopAnimation(!0)}),(!c(this._stackedOnPoints,q)||!c(this._points,U))&&(K?this._updateAnimation(G,q,N,O,st,J):(st&&(U=y(U,N,st),q=y(q,N,st)),k.setShape({points:U}),Z&&Z.setShape({points:U,stackedOnPoints:q})))):(rt&&B.updateData(G,{isIgnore:$,clipShape:ot}),st&&(U=y(U,N,st),q=y(q,N,st)),k=this._newPolyline(U,N,K),Q&&(Z=this._newPolygon(U,q,N,K)),X.setClipPath(I(N,!0,E)));var vt=g(G,N)||G.getVisual("color");k.useStyle(M.defaults(F.getLineStyle(),{fill:"none",stroke:vt,lineJoin:"bevel"}));var yt=E.get("smooth");if(yt=A(E.get("smooth")),k.setShape({smooth:yt,smoothMonotone:E.get("smoothMonotone"),connectNulls:E.get("connectNulls")}),Z){var it=G.getCalculationInfo("stackedOnSeries"),ut=0;Z.useStyle(M.defaults(W.getAreaStyle(),{fill:vt,opacity:.7,lineJoin:"bevel"})),it&&(ut=A(it.get("smooth"))),Z.setShape({smooth:yt,stackedOnSmooth:ut,smoothMonotone:E.get("smoothMonotone"),connectNulls:E.get("connectNulls")})}this._data=G,this._coordSys=N,this._stackedOnPoints=q,this._points=U,this._step=st,this._valueOrigin=J},dispose:function(){},highlight:function(E,P,O,N){var _=E.getData(),G=t.queryDataIndex(_,N);if(!(G instanceof Array)&&G!=null&&G>=0){var F=_.getItemGraphicEl(G);if(!F){var W=_.getItemLayout(G);if(!W||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(W[0],W[1]))return;F=new S(_,G),F.position=W,F.setZ(E.get("zlevel"),E.get("z")),F.ignore=isNaN(W[0])||isNaN(W[1]),F.__temp=!0,_.setItemGraphicEl(G,F),F.stopSymbolAnimation(!0),this.group.add(F)}F.highlight()}else u.prototype.highlight.call(this,E,P,O,N)},downplay:function(E,P,O,N){var _=E.getData(),G=t.queryDataIndex(_,N);if(G!=null&&G>=0){var F=_.getItemGraphicEl(G);F&&(F.__temp?(_.setItemGraphicEl(G,null),this.group.remove(F)):F.downplay())}else u.prototype.downplay.call(this,E,P,O,N)},_newPolyline:function(E){var P=this._polyline;return P&&this._lineGroup.remove(P),P=new i({shape:{points:E},silent:!0,z2:10}),this._lineGroup.add(P),this._polyline=P,P},_newPolygon:function(E,P){var O=this._polygon;return O&&this._lineGroup.remove(O),O=new a({shape:{points:E,stackedOnPoints:P},silent:!0}),this._lineGroup.add(O),this._polygon=O,O},_updateAnimation:function(E,P,O,N,_,G){var F=this._polyline,W=this._polygon,U=E.hostModel,H=p(this._data,E,this._stackedOnPoints,P,this._coordSys,O,this._valueOrigin,G),z=H.current,B=H.stackedOnCurrent,k=H.next,Z=H.stackedOnNext;if(_&&(z=y(H.current,O,_),B=y(H.stackedOnCurrent,O,_),k=y(H.next,O,_),Z=y(H.stackedOnNext,O,_)),d(z,k)>3e3||W&&d(B,Z)>3e3){F.setShape({points:k}),W&&W.setShape({points:k,stackedOnPoints:Z});return}F.shape.__points=H.current,F.shape.points=z,v.updateProps(F,{shape:{points:k}},U),W&&(W.setShape({points:z,stackedOnPoints:B}),v.updateProps(W,{shape:{points:k,stackedOnPoints:Z}},U));for(var X=[],K=H.status,Q=0;Q<K.length;Q++){var J=K[Q].cmd;if(J==="="){var tt=E.getItemGraphicEl(K[Q].idx1);tt&&X.push({el:tt,ptIdx:Q})}}F.animators&&F.animators.length&&F.animators[0].during(function(){for(var q=0;q<X.length;q++){var rt=X[q].el;rt.attr("position",F.shape.__points[X[q].ptIdx])}})},remove:function(E){var P=this.group,O=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),O&&O.eachItemGraphicEl(function(N,_){N.__temp&&(P.remove(N),O.setItemGraphicEl(_,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});Y.exports=R},75518:function(Y,V,n){var T=n(22240),L=T.isDimensionStacked,M=n(69008),w=M.map;function C(p,v,t){var s=p.getBaseAxis(),i=p.getOtherAxis(s),a=D(i,t),u=s.dim,e=i.dim,o=v.mapDimension(e),r=v.mapDimension(u),l=e==="x"||e==="radius"?1:0,h=w(p.dimensions,function(d){return v.mapDimension(d)}),f,c=v.getCalculationInfo("stackResultDimension");return(f|=L(v,h[0]))&&(h[0]=c),(f|=L(v,h[1]))&&(h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:e,baseAxisDim:u,stacked:!!f,valueDim:o,baseDim:r,baseDataOffset:l,stackedOverDimension:v.getCalculationInfo("stackedOverDimension")}}function D(p,v){var t=0,s=p.scale.getExtent();return v==="start"?t=s[0]:v==="end"?t=s[1]:s[0]>0?t=s[0]:s[1]<0&&(t=s[1]),t}function S(p,v,t,s){var i=NaN;p.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),s)),isNaN(i)&&(i=p.valueStart);var a=p.baseDataOffset,u=[];return u[a]=t.get(p.baseDim,s),u[1-a]=i,v.dataToPoint(u)}V.prepareDataCoordInfo=C,V.getStackedOnPoint=S},35553:function(Y,V,n){var T=n(75518),L=T.prepareDataCoordInfo,M=T.getStackedOnPoint;function w(D,S){var p=[];return S.diff(D).add(function(v){p.push({cmd:"+",idx:v})}).update(function(v,t){p.push({cmd:"=",idx:t,idx1:v})}).remove(function(v){p.push({cmd:"-",idx:v})}).execute(),p}function C(D,S,p,v,t,s,i,a){for(var u=w(D,S),e=[],o=[],r=[],l=[],h=[],f=[],c=[],d=L(t,S,i),A=L(s,D,a),x=0;x<u.length;x++){var y=u[x],g=!0;switch(y.cmd){case"=":var m=D.getItemLayout(y.idx),b=S.getItemLayout(y.idx1);(isNaN(m[0])||isNaN(m[1]))&&(m=b.slice()),e.push(m),o.push(b),r.push(p[y.idx]),l.push(v[y.idx1]),c.push(S.getRawIndex(y.idx1));break;case"+":var I=y.idx;e.push(t.dataToPoint([S.get(d.dataDimsForPoint[0],I),S.get(d.dataDimsForPoint[1],I)])),o.push(S.getItemLayout(I).slice()),r.push(M(d,t,S,I)),l.push(v[I]),c.push(S.getRawIndex(I));break;case"-":var I=y.idx,R=D.getRawIndex(I);R!==I?(e.push(D.getItemLayout(I)),o.push(s.dataToPoint([D.get(A.dataDimsForPoint[0],I),D.get(A.dataDimsForPoint[1],I)])),r.push(p[I]),l.push(M(A,s,D,I)),c.push(R)):g=!1}g&&(h.push(y),f.push(f.length))}f.sort(function(G,F){return c[G]-c[F]});for(var E=[],P=[],O=[],N=[],_=[],x=0;x<f.length;x++){var I=f[x];E[x]=e[I],P[x]=o[I],O[x]=r[I],N[x]=l[I],_[x]=h[I]}return{current:E,next:P,stackedOnCurrent:O,stackedOnNext:N,status:_}}Y.exports=C},81158:function(Y,V,n){var T=n(60397),L=n(47764),M=n(33251),w=L.min,C=L.max,D=L.scaleAndAdd,S=L.copy,p=[],v=[],t=[];function s(l){return isNaN(l[0])||isNaN(l[1])}function i(l,h,f,c,d,A,x,y,g,m,b){return m==="none"||!m?u.apply(this,arguments):a.apply(this,arguments)}function a(l,h,f,c,d,A,x,y,g,m,b){for(var I=0,R=f,E=0;E<c;E++){var P=h[R];if(R>=d||R<0)break;if(s(P)){if(b){R+=A;continue}break}if(R===f)l[A>0?"moveTo":"lineTo"](P[0],P[1]);else if(g>0){var O=h[I],N=m==="y"?1:0,_=(P[N]-O[N])*g;S(v,O),v[N]=O[N]+_,S(t,P),t[N]=P[N]-_,l.bezierCurveTo(v[0],v[1],t[0],t[1],P[0],P[1])}else l.lineTo(P[0],P[1]);I=R,R+=A}return E}function u(l,h,f,c,d,A,x,y,g,m,b){for(var I=0,R=f,E=0;E<c;E++){var P=h[R];if(R>=d||R<0)break;if(s(P)){if(b){R+=A;continue}break}if(R===f)l[A>0?"moveTo":"lineTo"](P[0],P[1]),S(v,P);else if(g>0){var O=R+A,G=h[O];if(b)for(;G&&s(h[O]);)O+=A,G=h[O];var N=.5,_=h[I],G=h[O];if(!G||s(G))S(t,P);else{s(G)&&!b&&(G=P),L.sub(p,G,_);var F,W;if(m==="x"||m==="y"){var U=m==="x"?0:1;F=Math.abs(P[U]-_[U]),W=Math.abs(P[U]-G[U])}else F=L.dist(P,_),W=L.dist(P,G);N=W/(W+F),D(t,P,p,-g*(1-N))}w(v,v,y),C(v,v,x),w(t,t,y),C(t,t,x),l.bezierCurveTo(v[0],v[1],t[0],t[1],P[0],P[1]),D(v,P,p,g*N)}else l.lineTo(P[0],P[1]);I=R,R+=A}return E}function e(l,h){var f=[1/0,1/0],c=[-1/0,-1/0];if(h)for(var d=0;d<l.length;d++){var A=l[d];A[0]<f[0]&&(f[0]=A[0]),A[1]<f[1]&&(f[1]=A[1]),A[0]>c[0]&&(c[0]=A[0]),A[1]>c[1]&&(c[1]=A[1])}return{min:h?f:c,max:h?c:f}}var o=T.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:M(T.prototype.brush),buildPath:function(l,h){var f=h.points,c=0,d=f.length,A=e(f,h.smoothConstraint);if(h.connectNulls){for(;d>0&&s(f[d-1]);d--);for(;c<d&&s(f[c]);c++);}for(;c<d;)c+=i(l,f,c,d,d,1,A.min,A.max,h.smooth,h.smoothMonotone,h.connectNulls)+1}}),r=T.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:M(T.prototype.brush),buildPath:function(l,h){var f=h.points,c=h.stackedOnPoints,d=0,A=f.length,x=h.smoothMonotone,y=e(f,h.smoothConstraint),g=e(c,h.smoothConstraint);if(h.connectNulls){for(;A>0&&s(f[A-1]);A--);for(;d<A&&s(f[d]);d++);}for(;d<A;){var m=i(l,f,d,A,A,1,y.min,y.max,h.smooth,x,h.connectNulls);i(l,c,d+m-1,m,A,-1,g.min,g.max,h.stackedOnSmooth,x,h.connectNulls),d+=m+1,l.closePath()}}});V.Polyline=o,V.Polygon=r},75822:function(Y,V,n){var T=n(3096);n(82716),n(338);var L=n(25784),M=n(29066);T.registerLayout(L),T.registerVisual(M)},82716:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(38645),w=n(39177),C=n(69008),D=C.concatArray,S=C.mergeAll,p=C.map,v=n(17010),t=v.encodeHTML,s=n(33807),i=typeof Uint32Array=="undefined"?Array:Uint32Array,a=typeof Float64Array=="undefined"?Array:Float64Array;function u(r){var l=r.data;l&&l[0]&&l[0][0]&&l[0][0].coord&&(r.data=p(l,function(h){var f=[h[0].coord,h[1].coord],c={coords:f};return h[0].name&&(c.fromName=h[0].name),h[1].name&&(c.toName=h[1].name),S([c,h[0],h[1]])}))}var e=M.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(r){r.data=r.data||[],u(r);var l=this._processFlatCoordsArray(r.data);this._flatCoords=l.flatCoords,this._flatCoordsOffset=l.flatCoordsOffset,l.flatCoords&&(r.data=new Float32Array(l.count)),e.superApply(this,"init",arguments)},mergeOption:function(r){if(r.data=r.data||[],u(r),r.data){var l=this._processFlatCoordsArray(r.data);this._flatCoords=l.flatCoords,this._flatCoordsOffset=l.flatCoordsOffset,l.flatCoords&&(r.data=new Float32Array(l.count))}e.superApply(this,"mergeOption",arguments)},appendData:function(r){var l=this._processFlatCoordsArray(r.data);l.flatCoords&&(this._flatCoords?(this._flatCoords=D(this._flatCoords,l.flatCoords),this._flatCoordsOffset=D(this._flatCoordsOffset,l.flatCoordsOffset)):(this._flatCoords=l.flatCoords,this._flatCoordsOffset=l.flatCoordsOffset),r.data=new Float32Array(l.count)),this.getRawData().appendData(r.data)},_getCoordsFromItemModel:function(r){var l=this.getData().getItemModel(r),h=l.option instanceof Array?l.option:l.getShallow("coords");return h},getLineCoordsCount:function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},getLineCoords:function(r,l){if(this._flatCoordsOffset){for(var h=this._flatCoordsOffset[r*2],f=this._flatCoordsOffset[r*2+1],c=0;c<f;c++)l[c]=l[c]||[],l[c][0]=this._flatCoords[h+c*2],l[c][1]=this._flatCoords[h+c*2+1];return f}else{for(var d=this._getCoordsFromItemModel(r),c=0;c<d.length;c++)l[c]=l[c]||[],l[c][0]=d[c][0],l[c][1]=d[c][1];return d.length}},_processFlatCoordsArray:function(r){var l=0;if(this._flatCoords&&(l=this._flatCoords.length),typeof r[0]=="number"){for(var h=r.length,f=new i(h),c=new a(h),d=0,A=0,x=0,y=0;y<h;){x++;var g=r[y++];f[A++]=d+l,f[A++]=g;for(var m=0;m<g;m++){var b=r[y++],I=r[y++];c[d++]=b,c[d++]=I,y>h}}return{flatCoordsOffset:new Uint32Array(f.buffer,0,A),flatCoords:c,count:x}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},getInitialData:function(r,l){var h=new w(["value"],this);return h.hasItemOption=!1,h.initData(r.data,[],function(f,c,d,A){if(f instanceof Array)return NaN;h.hasItemOption=!0;var x=f.value;if(x!=null)return x instanceof Array?x[A]:x}),h},formatTooltip:function(r){var l=this.getData(),h=l.getItemModel(r),f=h.get("name");if(f)return f;var c=h.get("fromName"),d=h.get("toName"),A=[];return c!=null&&A.push(c),d!=null&&A.push(d),t(A.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var r=this.option.progressive;return r==null?this.option.large?1e4:this.get("progressive"):r},getProgressiveThreshold:function(){var r=this.option.progressiveThreshold;return r==null?this.option.large?2e4:this.get("progressiveThreshold"):r},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!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}}}),o=e;Y.exports=o},338:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(70562),C=n(5186),D=n(85617),S=n(84700),p=n(75313),v=n(68918),t=n(25784),s=n(38797),i=s.createClipPath,a=M.extendChartView({type:"lines",init:function(){},render:function(u,e,o){var r=u.getData(),l=this._updateLineDraw(r,u),h=u.get("zlevel"),f=u.get("effect.trailLength"),c=o.getZr(),d=c.painter.getType()==="svg";d||c.painter.getLayer(h).clear(!0),this._lastZlevel!=null&&!d&&c.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(u)&&f&&(d||c.configLayer(h,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(f/10+.9,1),0)})),l.updateData(r);var A=u.get("clip",!0)&&i(u.coordinateSystem,!1,u);A?this.group.setClipPath(A):this.group.removeClipPath(),this._lastZlevel=h,this._finished=!0},incrementalPrepareRender:function(u,e,o){var r=u.getData(),l=this._updateLineDraw(r,u);l.incrementalPrepareUpdate(r),this._clearLayer(o),this._finished=!1},incrementalRender:function(u,e,o){this._lineDraw.incrementalUpdate(u,e.getData()),this._finished=u.end===e.getData().count()},updateTransform:function(u,e,o){var r=u.getData(),l=u.pipelineContext;if(!this._finished||l.large||l.progressiveRender)return{update:!0};var h=t.reset(u);h.progress&&h.progress({start:0,end:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(o)},_updateLineDraw:function(u,e){var o=this._lineDraw,r=this._showEffect(e),l=!!e.get("polyline"),h=e.pipelineContext,f=h.large;return(!o||r!==this._hasEffet||l!==this._isPolyline||f!==this._isLargeDraw)&&(o&&o.remove(),o=this._lineDraw=f?new v:new w(l?r?p:S:r?C:D),this._hasEffet=r,this._isPolyline=l,this._isLargeDraw=f,this.group.removeAll()),this.group.add(o.group),o},_showEffect:function(u){return!!u.get("effect.show")},_clearLayer:function(u){var e=u.getZr(),o=e.painter.getType()==="svg";!o&&this._lastZlevel!=null&&e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(u,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});Y.exports=a},25784:function(Y,V,n){var T=n(13861),L={seriesType:"lines",plan:T(),reset:function(M){var w=M.coordinateSystem,C=M.get("polyline"),D=M.pipelineContext.large;function S(p,v){var t=[];if(D){var s,i=p.end-p.start;if(C){for(var a=0,u=p.start;u<p.end;u++)a+=M.getLineCoordsCount(u);s=new Float32Array(i+a*2)}else s=new Float32Array(i*4);for(var e=0,o=[],u=p.start;u<p.end;u++){var r=M.getLineCoords(u,t);C&&(s[e++]=r);for(var l=0;l<r;l++)o=w.dataToPoint(t[l],!1,o),s[e++]=o[0],s[e++]=o[1]}v.setLayout("linesPoints",s)}else for(var u=p.start;u<p.end;u++){var h=v.getItemModel(u),r=M.getLineCoords(u,t),f=[];if(C)for(var c=0;c<r;c++)f.push(w.dataToPoint(t[c]));else{f[0]=w.dataToPoint(t[0]),f[1]=w.dataToPoint(t[1]);var d=h.get("lineStyle.curveness");+d&&(f[2]=[(f[0][0]+f[1][0])/2-(f[0][1]-f[1][1])*d,(f[0][1]+f[1][1])/2-(f[1][0]-f[0][0])*d])}v.setItemLayout(u,f)}}return{progress:S}}};Y.exports=L},29066:function(Y){function V(L){return L instanceof Array||(L=[L,L]),L}var n="lineStyle.opacity".split("."),T={seriesType:"lines",reset:function(L,M,w){var C=V(L.get("symbol")),D=V(L.get("symbolSize")),S=L.getData();S.setVisual("fromSymbol",C&&C[0]),S.setVisual("toSymbol",C&&C[1]),S.setVisual("fromSymbolSize",D&&D[0]),S.setVisual("toSymbolSize",D&&D[1]),S.setVisual("opacity",L.get(n));function p(v,t){var s=v.getItemModel(t),i=V(s.getShallow("symbol",!0)),a=V(s.getShallow("symbolSize",!0)),u=s.get(n);i[0]&&v.setItemVisual(t,"fromSymbol",i[0]),i[1]&&v.setItemVisual(t,"toSymbol",i[1]),a[0]&&v.setItemVisual(t,"fromSymbolSize",a[0]),a[1]&&v.setItemVisual(t,"toSymbolSize",a[1]),v.setItemVisual(t,"opacity",u)}return{dataEach:S.hasItemOption?p:null}}};Y.exports=T},13441:function(Y,V,n){var T=n(3096);n(21368),n(22554),n(37406),n(91148);var L=n(342),M=n(29491),w=n(63730),C=n(50027),D=n(2442);T.registerLayout(L),T.registerVisual(M),T.registerProcessor(T.PRIORITY.PROCESSOR.STATISTIC,w),T.registerPreprocessor(C),D("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},21368:function(Y,V,n){var T=n(69008),L=n(60425),M=n(38645),w=n(17010),C=w.encodeHTML,D=w.addCommas,S=n(78240),p=n(17751),v=p.retrieveRawAttr,t=n(11954),s=n(67063),i=s.makeSeriesEncodeForNameBased,a=M.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var o=L(this,{coordDimensions:["value"],encodeDefaulter:T.curry(i,this)}),r=o.mapDimension("value"),l=T.createHashMap(),h=[],f=[],c=0,d=o.count();c<d;c++){var A=o.getName(c);l.set(A,!0),h.push({name:A,value:o.get(r,c),selected:v(o,c,"selected")})}var x=t.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return T.each(x.regions,function(y){var g=y.name;l.get(g)||(h.push({name:g}),f.push(g))}),this.updateSelectedMap(h),o.appendValues([],f),o},getHostGeoModel:function(){var e=this.option.geoIndex;return e!=null?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var o=this.getData();return o.get(o.mapDimension("value"),e)},getRegionModel:function(e){var o=this.getData();return o.getItemModel(o.indexOfName(e))},formatTooltip:function(e){for(var o=this.getData(),r=D(this.getRawValue(e)),l=o.getName(e),h=this.seriesGroup,f=[],c=0;c<h.length;c++){var d=h[c].originalData.indexOfName(l),A=o.mapDimension("value");isNaN(h[c].originalData.get(A,d))||f.push(C(h[c].name))}return f.join(", ")+"<br />"+C(l+" : "+r)},getTooltipPosition:function(e){if(e!=null){var o=this.getData().getName(e),r=this.coordinateSystem,l=r.getRegion(o);return l&&r.dataToPoint(l.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,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)"}},nameProperty:"name"}});T.mixin(a,S);var u=a;Y.exports=u},22554:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993),w=n(25344),C="__seriesMapHighDown",D="__seriesMapCallKey",S=T.extendChartView({type:"map",render:function(t,s,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var u=this.group;if(u.removeAll(),!t.getHostGeoModel()){if(a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===t.id){var e=this._mapDraw;e&&u.add(e.group)}else if(t.needsDrawMap){var e=this._mapDraw||new w(i,!0);u.add(e.group),e.draw(t,s,i,this,a),this._mapDraw=e}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&s.getComponent("legend")&&this._renderSymbols(t,s,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,s,i){var a=t.originalData,u=this.group;a.each(a.mapDimension("value"),function(e,o){if(!isNaN(e)){var r=a.getItemLayout(o);if(!(!r||!r.point)){var l=r.point,h=r.offset,f=new M.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:l[0]+h*9,cy:l[1],r:3},silent:!0,z2:8+(h?0:M.Z2_EMPHASIS_LIFT+1)});if(!h){var c=t.mainSeries.getData(),d=a.getName(o),A=c.indexOfName(d),x=a.getItemModel(o),y=x.getModel("label"),g=x.getModel("emphasis.label"),m=c.getItemGraphicEl(A),b=L.retrieve2(t.getFormattedLabel(A,"normal"),d),I=L.retrieve2(t.getFormattedLabel(A,"emphasis"),b),R=m[C],E=Math.random();if(!R){R=m[C]={};var P=L.curry(p,!0),O=L.curry(p,!1);m.on("mouseover",P).on("mouseout",O).on("emphasis",P).on("normal",O)}m[D]=E,L.extend(R,{recordVersion:E,circle:f,labelModel:y,hoverLabelModel:g,emphasisText:I,normalText:b}),v(R,!1)}u.add(f)}}})}});function p(t){var s=this[C];s&&s.recordVersion===this[D]&&v(s,t)}function v(t,s){var i=t.circle,a=t.labelModel,u=t.hoverLabelModel,e=t.emphasisText,o=t.normalText;s?(i.style.extendFrom(M.setTextStyle({},u,{text:u.get("show")?e:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=M.Z2_EMPHASIS_LIFT):(M.setTextStyle(i.style,a,{text:a.get("show")?o:null,textPosition:a.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),i.__mapOriginalZ2!=null&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}Y.exports=S},50027:function(Y,V,n){var T=n(69008);function L(M){var w=[];T.each(M.series,function(C){C&&C.type==="map"&&(w.push(C),C.map=C.map||C.mapType,T.defaults(C,C.mapLocation))})}Y.exports=L},63730:function(Y,V,n){var T=n(69008);function L(w,C){var D={};return T.each(w,function(S){S.each(S.mapDimension("value"),function(p,v){var t="ec-"+S.getName(v);D[t]=D[t]||[],isNaN(p)||D[t].push(p)})}),w[0].map(w[0].mapDimension("value"),function(S,p){for(var v="ec-"+w[0].getName(p),t=0,s=1/0,i=-1/0,a=D[v].length,u=0;u<a;u++)s=Math.min(s,D[v][u]),i=Math.max(i,D[v][u]),t+=D[v][u];var e;return C==="min"?e=s:C==="max"?e=i:C==="average"?e=t/a:e=t,a===0?NaN:e})}function M(w){var C={};w.eachSeriesByType("map",function(D){var S=D.getHostGeoModel(),p=S?"o"+S.id:"i"+D.getMapType();(C[p]=C[p]||[]).push(D)}),T.each(C,function(D,S){for(var p=L(T.map(D,function(t){return t.getData()}),D[0].get("mapValueCalculation")),v=0;v<D.length;v++)D[v].originalData=D[v].getData();for(var v=0;v<D.length;v++)D[v].seriesGroup=D,D[v].needsDrawMap=v===0&&!D[v].getHostGeoModel(),D[v].setData(p.cloneShallow()),D[v].mainSeries=D[0]})}Y.exports=M},342:function(Y,V,n){var T=n(69008);function L(M){var w={};M.eachSeriesByType("map",function(C){var D=C.getMapType();if(!(C.getHostGeoModel()||w[D])){var S={};T.each(C.seriesGroup,function(v){var t=v.coordinateSystem,s=v.originalData;v.get("showLegendSymbol")&&M.getComponent("legend")&&s.each(s.mapDimension("value"),function(i,a){var u=s.getName(a),e=t.getRegion(u);if(!(!e||isNaN(i))){var o=S[u]||0,r=t.dataToPoint(e.center);S[u]=o+1,s.setItemLayout(a,{point:r,offset:o})}})});var p=C.getData();p.each(function(v){var t=p.getName(v),s=p.getItemLayout(v)||{};s.showLabel=!S[t],p.setItemLayout(v,s)}),w[D]=!0}})}Y.exports=L},29491:function(Y){function V(n){n.eachSeriesByType("map",function(T){var L=T.get("color"),M=T.getModel("itemStyle"),w=M.get("areaColor"),C=M.get("color")||L[T.seriesIndex%L.length];T.getData().setVisual({areaColor:w,color:C})})}Y.exports=V},47866:function(Y,V,n){var T=n(3096);n(3068),n(44819),n(13303);var L=n(72267);T.registerVisual(L)},44819:function(Y,V,n){var T=n(69008),L=T.each,M=T.createHashMap,w=n(38645),C=n(32977),D=w.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(v,t){var s=this.getSource();return S(s,this),C(s,this)},getRawIndicesByActiveState:function(v){var t=this.coordinateSystem,s=this.getData(),i=[];return t.eachActiveState(s,function(a,u){v===a&&i.push(s.getRawIndex(u))}),i},defaultOption:{zlevel:0,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"}});function S(v,t){if(!v.encodeDefine){var s=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(s){var i=v.encodeDefine=M();L(s.dimensions,function(a){var u=p(a);i.set(a,u)})}}}function p(v){return+v.replace("dim","")}Y.exports=D},13303:function(Y,V,n){var T=n(18993),L=n(68880),M=.3,w=L.extend({type:"parallel",init:function(){this._dataGroup=new T.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(i,a,u,e){var o=this._dataGroup,r=i.getData(),l=this._data,h=i.coordinateSystem,f=h.dimensions,c=p(i);r.diff(l).add(d).update(A).remove(x).execute();function d(g){var m=S(r,o,g,f,h);v(m,r,g,c)}function A(g,m){var b=l.getItemGraphicEl(m),I=D(r,g,f,h);r.setItemGraphicEl(g,b);var R=e&&e.animation===!1?null:i;T.updateProps(b,{shape:{points:I}},R,g),v(b,r,g,c)}function x(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var y=C(h,i,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(y)}this._data=r},incrementalPrepareRender:function(i,a,u){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(i,a,u){for(var e=a.getData(),o=a.coordinateSystem,r=o.dimensions,l=p(a),h=i.start;h<i.end;h++){var f=S(e,this._dataGroup,h,r,o);f.incremental=!0,v(f,e,h,l)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function C(i,a,u){var e=i.model,o=i.getRect(),r=new T.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),l=e.get("layout")==="horizontal"?"width":"height";return r.setShape(l,0),T.initProps(r,{shape:{width:o.width,height:o.height}},a,u),r}function D(i,a,u,e){for(var o=[],r=0;r<u.length;r++){var l=u[r],h=i.get(i.mapDimension(l),a);t(h,e.getAxis(l).type)||o.push(e.dataToPoint(h,l))}return o}function S(i,a,u,e,o){var r=D(i,u,e,o),l=new T.Polyline({shape:{points:r},silent:!0,z2:10});return a.add(l),i.setItemGraphicEl(u,l),l}function p(i){var a=i.get("smooth",!0);return a===!0&&(a=M),{lineStyle:i.getModel("lineStyle").getLineStyle(),smooth:a!=null?a:M}}function v(i,a,u,e){var o=e.lineStyle;if(a.hasItemOption){var r=a.getItemModel(u).getModel("lineStyle");o=r.getLineStyle()}i.useStyle(o);var l=i.style;l.fill=null,l.stroke=a.getItemVisual(u,"color"),l.opacity=a.getItemVisual(u,"opacity"),e.smooth&&(i.shape.smooth=e.smooth)}function t(i,a){return a==="category"?i==null:i==null||isNaN(i)}var s=w;Y.exports=s},72267:function(Y){var V=["lineStyle","normal","opacity"],n={seriesType:"parallel",reset:function(T,L,M){var w=T.getModel("itemStyle"),C=T.getModel("lineStyle"),D=L.get("color"),S=C.get("color")||w.get("color")||D[T.seriesIndex%D.length],p=T.get("inactiveOpacity"),v=T.get("activeOpacity"),t=T.getModel("lineStyle").getLineStyle(),s=T.coordinateSystem,i=T.getData(),a={normal:t.opacity,active:v,inactive:p};i.setVisual("color",S);function u(e,o){s.eachActiveState(o,function(r,l){var h=a[r];if(r==="normal"&&o.hasItemOption){var f=o.getItemModel(l).get(V,!0);f!=null&&(h=f)}o.setItemVisual(l,"opacity",h)},e.start,e.end)}return{progress:u}}};Y.exports=n},99434:function(Y,V,n){var T=n(3096),L=n(69008);n(40753),n(59903),n(31061);var M=n(64816),w=M.layout,C=n(11404);n(47102),T.registerLayout(L.curry(w,"pictorialBar")),T.registerVisual(C("pictorialBar","roundRect"))},72586:function(Y,V,n){var T=n(3096),L=n(69008);n(66403),n(60372);var M=n(2442),w=n(22333),C=n(85884),D=n(22259);M("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),T.registerVisual(w("pie")),T.registerLayout(L.curry(C,"pie")),T.registerProcessor(D("pie"))},66403:function(Y,V,n){var T=n(3096),L=n(60425),M=n(69008),w=n(90830),C=n(86957),D=C.getPercentWithPrecision,S=n(78240),p=n(17751),v=p.retrieveRawAttr,t=n(67063),s=t.makeSeriesEncodeForNameBased,i=n(50329),a=T.extendSeriesModel({type:"series.pie",init:function(e){a.superApply(this,"init",arguments),this.legendVisualProvider=new i(M.bind(this.getData,this),M.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){a.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,o){return L(this,{coordDimensions:["value"],encodeDefaulter:M.curry(s,this)})},_createSelectableList:function(){for(var e=this.getRawData(),o=e.mapDimension("value"),r=[],l=0,h=e.count();l<h;l++)r.push({name:e.getName(l),value:e.get(o,l),selected:v(e,l,"selected")});return r},getDataParams:function(e){var o=this.getData(),r=a.superCall(this,"getDataParams",e),l=[];return o.each(o.mapDimension("value"),function(h){l.push(h)}),r.percent=D(l,e,o.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},_defaultLabelLine:function(e){w.defaultEmphasis(e,"labelLine",["show"]);var o=e.labelLine,r=e.emphasis.labelLine;o.show=o.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});M.mixin(a,S);var u=a;Y.exports=u},60372:function(Y,V,n){var T=n(69008),L=n(18993),M=n(68880);function w(t,s,i,a){var u=s.getData(),e=this.dataIndex,o=u.getName(e),r=s.get("selectedOffset");a.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:s.id}),u.each(function(l){C(u.getItemGraphicEl(l),u.getItemLayout(l),s.isSelected(u.getName(l)),r,i)})}function C(t,s,i,a,u){var e=(s.startAngle+s.endAngle)/2,o=Math.cos(e),r=Math.sin(e),l=i?a:0,h=[o*l,r*l];u?t.animate().when(200,{position:h}).start("bounceOut"):t.attr("position",h)}function D(t,s){L.Group.call(this);var i=new L.Sector({z2:2}),a=new L.Polyline,u=new L.Text;this.add(i),this.add(a),this.add(u),this.updateData(t,s,!0)}var S=D.prototype;S.updateData=function(t,s,i){var a=this.childAt(0),u=this.childAt(1),e=this.childAt(2),o=t.hostModel,r=t.getItemModel(s),l=t.getItemLayout(s),h=T.extend({},l);h.label=null;var f=o.getShallow("animationTypeUpdate");if(i){a.setShape(h);var c=o.getShallow("animationType");c==="scale"?(a.shape.r=l.r0,L.initProps(a,{shape:{r:l.r}},o,s)):(a.shape.endAngle=l.startAngle,L.updateProps(a,{shape:{endAngle:l.endAngle}},o,s))}else f==="expansion"?a.setShape(h):L.updateProps(a,{shape:h},o,s);var d=t.getItemVisual(s,"color");a.useStyle(T.defaults({lineJoin:"bevel",fill:d},r.getModel("itemStyle").getItemStyle())),a.hoverStyle=r.getModel("emphasis.itemStyle").getItemStyle();var A=r.getShallow("cursor");A&&a.attr("cursor",A),C(this,t.getItemLayout(s),o.isSelected(t.getName(s)),o.get("selectedOffset"),o.get("animation"));var x=!i&&f==="transition";this._updateLabel(t,s,x),this.highDownOnUpdate=o.get("silent")?null:function(y,g){var m=o.isAnimationEnabled()&&r.get("hoverAnimation");g==="emphasis"?(u.ignore=u.hoverIgnore,e.ignore=e.hoverIgnore,m&&(a.stopAnimation(!0),a.animateTo({shape:{r:l.r+o.get("hoverOffset")}},300,"elasticOut"))):(u.ignore=u.normalIgnore,e.ignore=e.normalIgnore,m&&(a.stopAnimation(!0),a.animateTo({shape:{r:l.r}},300,"elasticOut")))},L.setHoverStyle(this)},S._updateLabel=function(t,s,i){var a=this.childAt(1),u=this.childAt(2),e=t.hostModel,o=t.getItemModel(s),r=t.getItemLayout(s),l=r.label,y=t.getItemVisual(s,"color");if(!l||isNaN(l.x)||isNaN(l.y)){u.ignore=u.normalIgnore=u.hoverIgnore=a.ignore=a.normalIgnore=a.hoverIgnore=!0;return}var h={points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]},f={x:l.x,y:l.y};i?(L.updateProps(a,{shape:h},e,s),L.updateProps(u,{style:f},e,s)):(a.attr({shape:h}),u.attr({style:f})),u.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var c=o.getModel("label"),d=o.getModel("emphasis.label"),A=o.getModel("labelLine"),x=o.getModel("emphasis.labelLine"),y=t.getItemVisual(s,"color");L.setLabelStyle(u.style,u.hoverStyle={},c,d,{labelFetcher:t.hostModel,labelDataIndex:s,defaultText:l.text,autoColor:y,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:t.getItemVisual(s,"opacity")}),u.ignore=u.normalIgnore=!c.get("show"),u.hoverIgnore=!d.get("show"),a.ignore=a.normalIgnore=!A.get("show"),a.hoverIgnore=!x.get("show"),a.setStyle({stroke:y,opacity:t.getItemVisual(s,"opacity")}),a.setStyle(A.getModel("lineStyle").getLineStyle()),a.hoverStyle=x.getModel("lineStyle").getLineStyle();var g=A.get("smooth");g&&g===!0&&(g=.4),a.setShape({smooth:g})},T.inherits(D,L.Group);var p=M.extend({type:"pie",init:function(){var t=new L.Group;this._sectorGroup=t},render:function(t,s,i,a){if(!(a&&a.from===this.uid)){var u=t.getData(),e=this._data,o=this.group,r=s.get("animation"),l=!e,h=t.get("animationType"),f=t.get("animationTypeUpdate"),c=T.curry(w,this.uid,t,r,i),d=t.get("selectedMode");if(u.diff(e).add(function(m){var b=new D(u,m);l&&h!=="scale"&&b.eachChild(function(I){I.stopAnimation(!0)}),d&&b.on("click",c),u.setItemGraphicEl(m,b),o.add(b)}).update(function(m,b){var I=e.getItemGraphicEl(b);!l&&f!=="transition"&&I.eachChild(function(R){R.stopAnimation(!0)}),I.updateData(u,m),I.off("click"),d&&I.on("click",c),o.add(I),u.setItemGraphicEl(m,I)}).remove(function(m){var b=e.getItemGraphicEl(m);o.remove(b)}).execute(),r&&u.count()>0&&(l?h!=="scale":f!=="transition")){for(var A=u.getItemLayout(0),x=1;isNaN(A.startAngle)&&x<u.count();++x)A=u.getItemLayout(x);var y=Math.max(i.getWidth(),i.getHeight())/2,g=T.bind(o.removeClipPath,o);o.setClipPath(this._createClipPath(A.cx,A.cy,y,A.startAngle,A.clockwise,g,t,l))}else o.removeClipPath();this._data=u}},dispose:function(){},_createClipPath:function(t,s,i,a,u,e,o,r){var l=new L.Sector({shape:{cx:t,cy:s,r0:0,r:i,startAngle:a,endAngle:a,clockwise:u}}),h=r?L.initProps:L.updateProps;return h(l,{shape:{endAngle:a+(u?1:-1)*Math.PI*2}},o,e),l},containPoint:function(t,s){var i=s.getData(),a=i.getItemLayout(0);if(a){var u=t[0]-a.cx,e=t[1]-a.cy,o=Math.sqrt(u*u+e*e);return o<=a.r&&o>=a.r0}}}),v=p;Y.exports=v},94034:function(Y,V,n){var T=n(63603),L=n(86957),M=L.parsePercent,w=Math.PI/180;function C(v,t,s,i,a,u,e,o,r,l){v.sort(function(I,R){return I.y-R.y});function h(I,R,E,P){for(var O=I;O<R&&!(v[O].y+E>r+e);O++)if(v[O].y+=E,O>I&&O+1<R&&v[O+1].y>v[O].y+v[O].height){f(O,E/2);return}f(R-1,E/2)}function f(I,R){for(var E=I;E>=0&&!(v[E].y-R<r||(v[E].y-=R,E>0&&v[E].y>v[E-1].y+v[E-1].height));E--);}function c(I,R,E,P,O,N){for(var _=(N>0,R?Number.MAX_VALUE:0),G=0,F=I.length;G<F;G++)if(I[G].labelAlignTo==="none"){var W=Math.abs(I[G].y-P),U=I[G].len,H=I[G].len2,z=W<O+U?Math.sqrt((O+U+H)*(O+U+H)-W*W):Math.abs(I[G].x-E);R&&z>=_&&(z=_-10),!R&&z<=_&&(z=_+10),I[G].x=E+z*N,_=z}}for(var d=0,A,x=v.length,y=[],g=[],m=0;m<x;m++){if(v[m].position==="outer"&&v[m].labelAlignTo==="labelLine"){var b=v[m].x-l;v[m].linePoints[1][0]+=b,v[m].x=l}A=v[m].y-d,A<0&&h(m,x,-A,a),d=v[m].y+v[m].height}e-d<0&&f(x-1,d-e);for(var m=0;m<x;m++)v[m].y>=s?g.push(v[m]):y.push(v[m]);c(y,!1,t,s,i,a),c(g,!0,t,s,i,a)}function D(v,t,s,i,a,u,e,o){for(var r=[],l=[],h=Number.MAX_VALUE,f=-Number.MAX_VALUE,c=0;c<v.length;c++)S(v[c])||(v[c].x<t?(h=Math.min(h,v[c].x),r.push(v[c])):(f=Math.max(f,v[c].x),l.push(v[c])));C(l,t,s,i,1,a,u,e,o,f),C(r,t,s,i,-1,a,u,e,o,h);for(var c=0;c<v.length;c++){var d=v[c];if(!S(d)){var A=d.linePoints;if(A){var x=d.labelAlignTo==="edge",y=d.textRect.width,g;x?d.x<t?g=A[2][0]-d.labelDistance-e-d.labelMargin:g=e+a-d.labelMargin-A[2][0]-d.labelDistance:d.x<t?g=d.x-e-d.bleedMargin:g=e+a-d.x-d.bleedMargin,g<d.textRect.width&&(d.text=T.truncateText(d.text,g,d.font),d.labelAlignTo==="edge"&&(y=T.getWidth(d.text,d.font)));var m=A[1][0]-A[2][0];x?d.x<t?A[2][0]=e+d.labelMargin+y+d.labelDistance:A[2][0]=e+a-d.labelMargin-y-d.labelDistance:(d.x<t?A[2][0]=d.x+d.labelDistance:A[2][0]=d.x-d.labelDistance,A[1][0]=A[2][0]+m),A[1][1]=A[2][1]=d.y}}}}function S(v){return v.position==="center"}function p(v,t,s,i,a,u){var e=v.getData(),o=[],r,l,h=!1,f=(v.get("minShowLabelAngle")||0)*w;e.each(function(c){var d=e.getItemLayout(c),A=e.getItemModel(c),x=A.getModel("label"),y=x.get("position")||A.get("emphasis.label.position"),g=x.get("distanceToLabelLine"),m=x.get("alignTo"),b=M(x.get("margin"),s),I=x.get("bleedMargin"),R=x.getFont(),E=A.getModel("labelLine"),P=E.get("length");P=M(P,s);var O=E.get("length2");if(O=M(O,s),!(d.angle<f)){var N=(d.startAngle+d.endAngle)/2,_=Math.cos(N),G=Math.sin(N),F,W,U,H;r=d.cx,l=d.cy;var z=v.getFormattedLabel(c,"normal")||e.getName(c),B=T.getBoundingRect(z,R,H,"top"),k=y==="inside"||y==="inner";if(y==="center")F=d.cx,W=d.cy,H="center";else{var Z=(k?(d.r+d.r0)/2*_:d.r*_)+r,X=(k?(d.r+d.r0)/2*G:d.r*G)+l;if(F=Z+_*3,W=X+G*3,!k){var K=Z+_*(P+t-d.r),Q=X+G*(P+t-d.r),J=K+(_<0?-1:1)*O,tt=Q;m==="edge"?F=_<0?a+b:a+s-b:F=J+(_<0?-g:g),W=tt,U=[[Z,X],[K,Q],[J,tt]]}H=k?"center":m==="edge"?_>0?"right":"left":_>0?"left":"right"}var q,rt=x.get("rotate");typeof rt=="number"?q=rt*(Math.PI/180):q=rt?_<0?-N+Math.PI:-N:0,h=!!q,d.label={x:F,y:W,position:y,height:B.height,len:P,len2:O,linePoints:U,textAlign:H,verticalAlign:"middle",rotation:q,inside:k,labelDistance:g,labelAlignTo:m,labelMargin:b,bleedMargin:I,textRect:B,text:z,font:R},k||o.push(d.label)}}),!h&&v.get("avoidLabelOverlap")&&D(o,r,l,t,s,i,a,u)}Y.exports=p},85884:function(Y,V,n){var T=n(86957),L=T.parsePercent,M=T.linearMap,w=n(7357),C=n(94034),D=n(69008),S=Math.PI*2,p=Math.PI/180;function v(s,i){return w.getLayoutRect(s.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function t(s,i,a,u){i.eachSeriesByType(s,function(e){var o=e.getData(),r=o.mapDimension("value"),l=v(e,a),h=e.get("center"),f=e.get("radius");D.isArray(f)||(f=[0,f]),D.isArray(h)||(h=[h,h]);var c=L(l.width,a.getWidth()),d=L(l.height,a.getHeight()),A=Math.min(c,d),x=L(h[0],c)+l.x,y=L(h[1],d)+l.y,g=L(f[0],A/2),m=L(f[1],A/2),b=-e.get("startAngle")*p,I=e.get("minAngle")*p,R=0;o.each(r,function(B){!isNaN(B)&&R++});var E=o.getSum(r),P=Math.PI/(E||R)*2,O=e.get("clockwise"),N=e.get("roseType"),_=e.get("stillShowZeroSum"),G=o.getDataExtent(r);G[0]=0;var F=S,W=0,U=b,H=O?1:-1;if(o.each(r,function(B,k){var Z;if(isNaN(B)){o.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:O,cx:x,cy:y,r0:g,r:N?NaN:m,viewRect:l});return}N!=="area"?Z=E===0&&_?P:B*P:Z=S/R,Z<I?(Z=I,F-=I):W+=B;var X=U+H*Z;o.setItemLayout(k,{angle:Z,startAngle:U,endAngle:X,clockwise:O,cx:x,cy:y,r0:g,r:N?M(B,G,[g,m]):m,viewRect:l}),U=X}),F<S&&R)if(F<=.001){var z=S/R;o.each(r,function(B,k){if(!isNaN(B)){var Z=o.getItemLayout(k);Z.angle=z,Z.startAngle=b+H*k*z,Z.endAngle=b+H*(k+1)*z}})}else P=F/W,U=b,o.each(r,function(B,k){if(!isNaN(B)){var Z=o.getItemLayout(k),X=Z.angle===I?I:B*P;Z.startAngle=U,Z.endAngle=U+H*X,U+=H*X}});C(e,m,l.width,l.height,l.x,l.y)})}Y.exports=t},81931:function(Y,V,n){var T=n(3096);n(99154),n(68396),n(29583);var L=n(22333),M=n(11404),w=n(22062),C=n(22259),D=n(65882);T.registerVisual(L("radar")),T.registerVisual(M("radar","circle")),T.registerLayout(w),T.registerProcessor(C("radar")),T.registerPreprocessor(D)},68396:function(Y,V,n){var T=n(38645),L=n(60425),M=n(69008),w=n(17010),C=w.encodeHTML,D=n(50329),S=T.extend({type:"series.radar",dependencies:["radar"],init:function(v){S.superApply(this,"init",arguments),this.legendVisualProvider=new D(M.bind(this.getData,this),M.bind(this.getRawData,this))},getInitialData:function(v,t){return L(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(v){var t=this.getData(),s=this.coordinateSystem,i=s.getIndicatorAxes(),a=this.getData().getName(v);return C(a===""?this.name:a)+"<br/>"+M.map(i,function(u,e){var o=t.get(t.mapDimension(u.dim),v);return C(u.name+" : "+o)}).join("<br />")},getTooltipPosition:function(v){if(v!=null){for(var t=this.getData(),s=this.coordinateSystem,i=t.getValues(M.map(s.dimensions,function(o){return t.mapDimension(o)}),v,!0),a=0,u=i.length;a<u;a++)if(!isNaN(i[a])){var e=s.getIndicatorAxes();return s.coordToPoint(e[a].dataToCoord(i[a]),a)}}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),p=S;Y.exports=p},29583:function(Y,V,n){var T=n(3096),L=n(18993),M=n(69008),w=n(22868);function C(S){return M.isArray(S)||(S=[+S,+S]),S}var D=T.extendChartView({type:"radar",render:function(S,p,v){var t=S.coordinateSystem,s=this.group,i=S.getData(),a=this._data;function u(r,l){var h=r.getItemVisual(l,"symbol")||"circle",f=r.getItemVisual(l,"color");if(h!=="none"){var c=C(r.getItemVisual(l,"symbolSize")),d=w.createSymbol(h,-1,-1,2,2,f);return d.attr({style:{strokeNoScale:!0},z2:100,scale:[c[0]/2,c[1]/2]}),d}}function e(r,l,h,f,c,d){h.removeAll();for(var A=0;A<l.length-1;A++){var x=u(f,c);x&&(x.__dimIdx=A,r[A]?(x.attr("position",r[A]),L[d?"initProps":"updateProps"](x,{position:l[A]},S,c)):x.attr("position",l[A]),h.add(x))}}function o(r){return M.map(r,function(l){return[t.cx,t.cy]})}i.diff(a).add(function(r){var l=i.getItemLayout(r);if(l){var h=new L.Polygon,f=new L.Polyline,c={shape:{points:l}};h.shape.points=o(l),f.shape.points=o(l),L.initProps(h,c,S,r),L.initProps(f,c,S,r);var d=new L.Group,A=new L.Group;d.add(f),d.add(h),d.add(A),e(f.shape.points,l,A,i,r,!0),i.setItemGraphicEl(r,d)}}).update(function(r,l){var h=a.getItemGraphicEl(l),f=h.childAt(0),c=h.childAt(1),d=h.childAt(2),A={shape:{points:i.getItemLayout(r)}};A.shape.points&&(e(f.shape.points,A.shape.points,d,i,r,!1),L.updateProps(f,A,S),L.updateProps(c,A,S),i.setItemGraphicEl(r,h))}).remove(function(r){s.remove(a.getItemGraphicEl(r))}).execute(),i.eachItemGraphicEl(function(r,l){var h=i.getItemModel(l),f=r.childAt(0),c=r.childAt(1),d=r.childAt(2),A=i.getItemVisual(l,"color");s.add(r),f.useStyle(M.defaults(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:A})),f.hoverStyle=h.getModel("emphasis.lineStyle").getLineStyle();var x=h.getModel("areaStyle"),y=h.getModel("emphasis.areaStyle"),g=x.isEmpty()&&x.parentModel.isEmpty(),m=y.isEmpty()&&y.parentModel.isEmpty();m=m&&g,c.ignore=g,c.useStyle(M.defaults(x.getAreaStyle(),{fill:A,opacity:.7})),c.hoverStyle=y.getAreaStyle();var b=h.getModel("itemStyle").getItemStyle(["color"]),I=h.getModel("emphasis.itemStyle").getItemStyle(),R=h.getModel("label"),E=h.getModel("emphasis.label");d.eachChild(function(P){P.setStyle(b),P.hoverStyle=M.clone(I);var O=i.get(i.dimensions[P.__dimIdx],l);(O==null||isNaN(O))&&(O=""),L.setLabelStyle(P.style,P.hoverStyle,R,E,{labelFetcher:i.hostModel,labelDataIndex:l,labelDimIndex:P.__dimIdx,defaultText:O,autoColor:A,isRectText:!0})}),r.highDownOnUpdate=function(P,O){c.attr("ignore",O==="emphasis"?m:g)},L.setHoverStyle(r)}),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});Y.exports=D},65882:function(Y,V,n){var T=n(69008);function L(M){var w=M.polar;if(w){T.isArray(w)||(w=[w]);var C=[];T.each(w,function(D,S){D.indicator?(D.type&&!D.shape&&(D.shape=D.type),M.radar=M.radar||[],T.isArray(M.radar)||(M.radar=[M.radar]),M.radar.push(D)):C.push(D)}),M.polar=C}T.each(M.series,function(D){D&&D.type==="radar"&&D.polarIndex&&(D.radarIndex=D.polarIndex)})}Y.exports=L},22062:function(Y,V,n){var T=n(69008);function L(C){C.eachSeriesByType("radar",function(D){var S=D.getData(),p=[],v=D.coordinateSystem;if(v){var t=v.getIndicatorAxes();T.each(t,function(s,i){S.each(S.mapDimension(t[i].dim),function(a,u){p[u]=p[u]||[];var e=v.dataToPoint(a,i);p[u][i]=M(e)?e:w(v)})}),S.each(function(s){var i=T.find(p[s],function(a){return M(a)})||w(v);p[s].push(i.slice()),S.setItemLayout(s,p[s])})}})}function M(C){return!isNaN(C[0])&&!isNaN(C[1])}function w(C){return[C.cx,C.cy]}Y.exports=L},26678:function(Y,V,n){var T=n(3096);n(49717),n(9666),n(52155);var L=n(69946),M=n(83977);T.registerLayout(L),T.registerVisual(M)},49717:function(Y,V,n){var T=n(38645),L=n(29306),M=n(17010),w=M.encodeHTML,C=n(24040),D=n(96311),S=D.__DEV__,p=T.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(t,s){for(var i=t.edges||t.links,a=t.data||t.nodes,u=t.levels,e=this.levelModels={},o=0;o<u.length;o++)u[o].depth!=null&&u[o].depth>=0&&(e[u[o].depth]=new C(u[o],this,s));if(a&&i){var r=L(a,i,this,!0,l);return r.data}function l(h,f){h.wrapMethod("getItemModel",function(c,d){return c.customizeGetParent(function(A){var x=this.parentModel,y=x.getData().getItemLayout(d).depth,g=x.levelModels[y];return g||this.parentModel}),c}),f.wrapMethod("getItemModel",function(c,d){return c.customizeGetParent(function(A){var x=this.parentModel,y=x.getGraph().getEdgeByIndex(d),g=y.node1.getLayout().depth,m=x.levelModels[g];return m||this.parentModel}),c})}},setNodePosition:function(t,s){var i=this.option.data[t];i.localX=s[0],i.localY=s[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,s,i){if(i==="edge"){var a=this.getDataParams(t,i),u=a.data,e=u.source+" -- "+u.target;return a.value&&(e+=" : "+a.value),w(e)}else if(i==="node"){var o=this.getGraph().getNodeByIndex(t),r=o.getLayout().value,l=this.getDataParams(t,i).data.name;if(r)var e=l+" : "+r;return w(e)}return p.superCall(this,"formatTooltip",t,s)},optionUpdated:function(){var t=this.option;t.focusNodeAdjacency===!0&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,s){var i=p.superCall(this,"getDataParams",t,s);if(i.value==null&&s==="node"){var a=this.getGraph().getNodeByIndex(t),u=a.getLayout().value;i.value=u}return i},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),v=p;Y.exports=v},9666:function(Y,V,n){var T=n(18993),L=n(3096),M=n(69008),w=["itemStyle","opacity"],C=["emphasis","itemStyle","opacity"],D=["lineStyle","opacity"],S=["emphasis","lineStyle","opacity"];function p(u,e){return u.getVisual("opacity")||u.getModel().get(e)}function v(u,e,o){var r=u.getGraphicEl(),l=p(u,e);o!=null&&(l==null&&(l=1),l*=o),r.downplay&&r.downplay(),r.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",l)})}function t(u,e){var o=p(u,e),r=u.getGraphicEl();r.traverse(function(l){l.type!=="group"&&l.setStyle("opacity",o)}),r.highlight&&r.highlight()}var s=T.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(u,e){var o=e.extent;u.moveTo(e.x1,e.y1),u.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),e.orient==="vertical"?(u.lineTo(e.x2+o,e.y2),u.bezierCurveTo(e.cpx2+o,e.cpy2,e.cpx1+o,e.cpy1,e.x1+o,e.y1)):(u.lineTo(e.x2,e.y2+o),u.bezierCurveTo(e.cpx2,e.cpy2+o,e.cpx1,e.cpy1+o,e.x1,e.y1+o)),u.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),i=L.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(u,e,o){var r=this,l=u.getGraph(),h=this.group,f=u.layoutInfo,c=f.width,d=f.height,A=u.getData(),x=u.getData("edge"),y=u.get("orient");this._model=u,h.removeAll(),h.attr("position",[f.x,f.y]),l.eachEdge(function(g){var m=new s;m.dataIndex=g.dataIndex,m.seriesIndex=u.seriesIndex,m.dataType="edge";var b=g.getModel("lineStyle"),I=b.get("curveness"),R=g.node1.getLayout(),E=g.node1.getModel(),P=E.get("localX"),O=E.get("localY"),N=g.node2.getLayout(),_=g.node2.getModel(),G=_.get("localX"),F=_.get("localY"),W=g.getLayout(),U,H,z,B,k,Z,X,K;switch(m.shape.extent=Math.max(1,W.dy),m.shape.orient=y,y==="vertical"?(U=(P!=null?P*c:R.x)+W.sy,H=(O!=null?O*d:R.y)+R.dy,z=(G!=null?G*c:N.x)+W.ty,B=F!=null?F*d:N.y,k=U,Z=H*(1-I)+B*I,X=z,K=H*I+B*(1-I)):(U=(P!=null?P*c:R.x)+R.dx,H=(O!=null?O*d:R.y)+W.sy,z=G!=null?G*c:N.x,B=(F!=null?F*d:N.y)+W.ty,k=U*(1-I)+z*I,Z=H,X=U*I+z*(1-I),K=B),m.setShape({x1:U,y1:H,x2:z,y2:B,cpx1:k,cpy1:Z,cpx2:X,cpy2:K}),m.setStyle(b.getItemStyle()),m.style.fill){case"source":m.style.fill=g.node1.getVisual("color");break;case"target":m.style.fill=g.node2.getVisual("color");break}T.setHoverStyle(m,g.getModel("emphasis.lineStyle").getItemStyle()),h.add(m),x.setItemGraphicEl(g.dataIndex,m)}),l.eachNode(function(g){var m=g.getLayout(),b=g.getModel(),I=b.get("localX"),R=b.get("localY"),E=b.getModel("label"),P=b.getModel("emphasis.label"),O=new T.Rect({shape:{x:I!=null?I*c:m.x,y:R!=null?R*d:m.y,width:m.dx,height:m.dy},style:b.getModel("itemStyle").getItemStyle()}),N=g.getModel("emphasis.itemStyle").getItemStyle();T.setLabelStyle(O.style,N,E,P,{labelFetcher:u,labelDataIndex:g.dataIndex,defaultText:g.id,isRectText:!0}),O.setStyle("fill",g.getVisual("color")),T.setHoverStyle(O,N),h.add(O),A.setItemGraphicEl(g.dataIndex,O),O.dataType="node"}),A.eachItemGraphicEl(function(g,m){var b=A.getItemModel(m);b.get("draggable")&&(g.drift=function(I,R){r._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=R,this.dirty(),o.dispatchAction({type:"dragNode",seriesId:u.id,dataIndex:A.getRawIndex(m),localX:this.shape.x/c,localY:this.shape.y/d})},g.ondragend=function(){r._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move"),g.highlight=function(){this.trigger("emphasis")},g.downplay=function(){this.trigger("normal")},g.focusNodeAdjHandler&&g.off("mouseover",g.focusNodeAdjHandler),g.unfocusNodeAdjHandler&&g.off("mouseout",g.unfocusNodeAdjHandler),b.get("focusNodeAdjacency")&&(g.on("mouseover",g.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,dataIndex:g.dataIndex}))}),g.on("mouseout",g.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(o)}))}),x.eachItemGraphicEl(function(g,m){var b=x.getItemModel(m);g.focusNodeAdjHandler&&g.off("mouseover",g.focusNodeAdjHandler),g.unfocusNodeAdjHandler&&g.off("mouseout",g.unfocusNodeAdjHandler),b.get("focusNodeAdjacency")&&(g.on("mouseover",g.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,edgeDataIndex:g.dataIndex}))}),g.on("mouseout",g.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(o)}))}),!this._data&&u.get("animation")&&h.setClipPath(a(h.getBoundingRect(),u,function(){h.removeClipPath()})),this._data=u.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(u){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){e._unfocusDelayTimer=null,u.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(u,e,o,r){var l=u.getData(),h=l.graph,f=r.dataIndex,c=l.getItemModel(f),d=r.edgeDataIndex;if(!(f==null&&d==null)){var A=h.getNodeByIndex(f),x=h.getEdgeByIndex(d);if(h.eachNode(function(g){v(g,w,.1)}),h.eachEdge(function(g){v(g,D,.1)}),A){t(A,C);var y=c.get("focusNodeAdjacency");y==="outEdges"?M.each(A.outEdges,function(g){g.dataIndex<0||(t(g,S),t(g.node2,C))}):y==="inEdges"?M.each(A.inEdges,function(g){g.dataIndex<0||(t(g,S),t(g.node1,C))}):y==="allEdges"&&M.each(A.edges,function(g){g.dataIndex<0||(t(g,S),g.node1!==A&&t(g.node1,C),g.node2!==A&&t(g.node2,C))})}x&&(t(x,S),t(x.node1,C),t(x.node2,C))}},unfocusNodeAdjacency:function(u,e,o,r){var l=u.getGraph();l.eachNode(function(h){v(h,w)}),l.eachEdge(function(h){v(h,D)})}});function a(u,e,o){var r=new T.Rect({shape:{x:u.x-10,y:u.y-10,width:0,height:u.height+20}});return T.initProps(r,{shape:{width:u.width+20}},e,o),r}Y.exports=i},52155:function(Y,V,n){var T=n(3096);n(18148),T.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(L,M){M.eachComponent({mainType:"series",subType:"sankey",query:L},function(w){w.setNodePosition(L.dataIndex,[L.localX,L.localY])})})},69946:function(Y,V,n){var T=n(7357),L=n(69008),M=n(90830),w=M.groupData;function C(b,I,R){b.eachSeriesByType("sankey",function(E){var P=E.get("nodeWidth"),O=E.get("nodeGap"),N=D(E,I);E.layoutInfo=N;var _=N.width,G=N.height,F=E.getGraph(),W=F.nodes,U=F.edges;p(W);var H=L.filter(W,function(Z){return Z.getLayout().value===0}),z=H.length!==0?0:E.get("layoutIterations"),B=E.get("orient"),k=E.get("nodeAlign");S(W,U,P,O,_,G,z,B,k)})}function D(b,I){return T.getLayoutRect(b.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function S(b,I,R,E,P,O,N,_,G){v(b,I,R,P,O,_,G),u(b,I,O,P,E,N,_),m(b,_)}function p(b){L.each(b,function(I){var R=y(I.outEdges,x),E=y(I.inEdges,x),P=I.getValue()||0,O=Math.max(R,E,P);I.setLayout({value:O},!0)})}function v(b,I,R,E,P,O,N){for(var _=[],G=[],F=[],W=[],U=0,$=0,H=0;H<I.length;H++)_[H]=1;for(H=0;H<b.length;H++)G[H]=b[H].inEdges.length,G[H]===0&&F.push(b[H]);for(var z=-1;F.length;){for(var B=0;B<F.length;B++){var k=F[B],Z=k.hostGraph.data.getRawDataItem(k.dataIndex),X=Z.depth!=null&&Z.depth>=0;X&&Z.depth>z&&(z=Z.depth),k.setLayout({depth:X?Z.depth:U},!0),O==="vertical"?k.setLayout({dy:R},!0):k.setLayout({dx:R},!0);for(var K=0;K<k.outEdges.length;K++){var Q=k.outEdges[K],J=I.indexOf(Q);_[J]=0;var tt=Q.node2,q=b.indexOf(tt);--G[q]===0&&W.indexOf(tt)<0&&W.push(tt)}}++U,F=W,W=[]}for(H=0;H<_.length;H++)if(_[H]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var rt=z>U-1?z:U-1;N&&N!=="left"&&s(b,N,O,rt);var $=O==="vertical"?(P-R)/rt:(E-R)/rt;a(b,$,O)}function t(b){var I=b.hostGraph.data.getRawDataItem(b.dataIndex);return I.depth!=null&&I.depth>=0}function s(b,I,R,E){if(I==="right"){for(var P=[],O=b,N=0;O.length;){for(var _=0;_<O.length;_++){var G=O[_];G.setLayout({skNodeHeight:N},!0);for(var F=0;F<G.inEdges.length;F++){var W=G.inEdges[F];P.indexOf(W.node1)<0&&P.push(W.node1)}}O=P,P=[],++N}L.each(b,function(U){t(U)||U.setLayout({depth:Math.max(0,E-U.getLayout().skNodeHeight)},!0)})}else I==="justify"&&i(b,E)}function i(b,I){L.each(b,function(R){!t(R)&&!R.outEdges.length&&R.setLayout({depth:I},!0)})}function a(b,I,R){L.each(b,function(E){var P=E.getLayout().depth*I;R==="vertical"?E.setLayout({y:P},!0):E.setLayout({x:P},!0)})}function u(b,I,R,E,P,O,N){var _=e(b,N);o(_,I,R,E,P,N),r(_,P,R,E,N);for(var G=1;O>0;O--)G*=.99,l(_,G,N),r(_,P,R,E,N),g(_,G,N),r(_,P,R,E,N)}function e(b,I){var R=[],E=I==="vertical"?"y":"x",P=w(b,function(O){return O.getLayout()[E]});return P.keys.sort(function(O,N){return O-N}),L.each(P.keys,function(O){R.push(P.buckets.get(O))}),R}function o(b,I,R,E,P,O){var N=1/0;L.each(b,function(_){var G=_.length,F=0;L.each(_,function(U){F+=U.getLayout().value});var W=O==="vertical"?(E-(G-1)*P)/F:(R-(G-1)*P)/F;W<N&&(N=W)}),L.each(b,function(_){L.each(_,function(G,F){var W=G.getLayout().value*N;O==="vertical"?(G.setLayout({x:F},!0),G.setLayout({dx:W},!0)):(G.setLayout({y:F},!0),G.setLayout({dy:W},!0))})}),L.each(I,function(_){var G=+_.getValue()*N;_.setLayout({dy:G},!0)})}function r(b,I,R,E,P){var O=P==="vertical"?"x":"y";L.each(b,function(N){N.sort(function(k,Z){return k.getLayout()[O]-Z.getLayout()[O]});for(var _,G,F,W=0,U=N.length,H=P==="vertical"?"dx":"dy",z=0;z<U;z++)G=N[z],F=W-G.getLayout()[O],F>0&&(_=G.getLayout()[O]+F,P==="vertical"?G.setLayout({x:_},!0):G.setLayout({y:_},!0)),W=G.getLayout()[O]+G.getLayout()[H]+I;var B=P==="vertical"?E:R;if(F=W-I-B,F>0)for(_=G.getLayout()[O]-F,P==="vertical"?G.setLayout({x:_},!0):G.setLayout({y:_},!0),W=_,z=U-2;z>=0;--z)G=N[z],F=G.getLayout()[O]+G.getLayout()[H]+I-W,F>0&&(_=G.getLayout()[O]-F,P==="vertical"?G.setLayout({x:_},!0):G.setLayout({y:_},!0)),W=G.getLayout()[O]})}function l(b,I,R){L.each(b.slice().reverse(),function(E){L.each(E,function(P){if(P.outEdges.length){var O=y(P.outEdges,h,R)/y(P.outEdges,x,R);if(isNaN(O)){var N=P.outEdges.length;O=N?y(P.outEdges,f,R)/N:0}if(R==="vertical"){var _=P.getLayout().x+(O-A(P,R))*I;P.setLayout({x:_},!0)}else{var G=P.getLayout().y+(O-A(P,R))*I;P.setLayout({y:G},!0)}}})})}function h(b,I){return A(b.node2,I)*b.getValue()}function f(b,I){return A(b.node2,I)}function c(b,I){return A(b.node1,I)*b.getValue()}function d(b,I){return A(b.node1,I)}function A(b,I){return I==="vertical"?b.getLayout().x+b.getLayout().dx/2:b.getLayout().y+b.getLayout().dy/2}function x(b){return b.getValue()}function y(b,I,R){for(var E=0,P=b.length,O=-1;++O<P;){var N=+I.call(b,b[O],R);isNaN(N)||(E+=N)}return E}function g(b,I,R){L.each(b,function(E){L.each(E,function(P){if(P.inEdges.length){var O=y(P.inEdges,c,R)/y(P.inEdges,x,R);if(isNaN(O)){var N=P.inEdges.length;O=N?y(P.inEdges,d,R)/N:0}if(R==="vertical"){var _=P.getLayout().x+(O-A(P,R))*I;P.setLayout({x:_},!0)}else{var G=P.getLayout().y+(O-A(P,R))*I;P.setLayout({y:G},!0)}}})})}function m(b,I){var R=I==="vertical"?"x":"y";L.each(b,function(E){E.outEdges.sort(function(P,O){return P.node2.getLayout()[R]-O.node2.getLayout()[R]}),E.inEdges.sort(function(P,O){return P.node1.getLayout()[R]-O.node1.getLayout()[R]})}),L.each(b,function(E){var P=0,O=0;L.each(E.outEdges,function(N){N.setLayout({sy:P},!0),P+=N.getLayout().dy}),L.each(E.inEdges,function(N){N.setLayout({ty:O},!0),O+=N.getLayout().dy})})}Y.exports=C},83977:function(Y,V,n){var T=n(5660),L=n(69008);function M(w,C){w.eachSeriesByType("sankey",function(D){var S=D.getGraph(),p=S.nodes;if(p.length){var v=1/0,t=-1/0;L.each(p,function(s){var i=s.getLayout().value;i<v&&(v=i),i>t&&(t=i)}),L.each(p,function(s){var i=new T({type:"color",mappingMethod:"linear",dataExtent:[v,t],visual:D.get("color")}),a=i.mapValueToVisual(s.getLayout().value),u=s.getModel().get("itemStyle.color");u!=null?s.setVisual("color",u):s.setVisual("color",a)})}})}Y.exports=M},70868:function(Y,V,n){var T=n(3096);n(94711),n(1150);var L=n(11404),M=n(87984);n(47102),T.registerVisual(L("scatter","circle")),T.registerLayout(M("scatter"))},94711:function(Y,V,n){var T=n(32977),L=n(38645),M=L.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(w,C){return T(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var w=this.option.progressive;return w==null?this.option.large?5e3:this.get("progressive"):w},getProgressiveThreshold:function(){var w=this.option.progressiveThreshold;return w==null?this.option.large?1e4:this.get("progressiveThreshold"):w},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});Y.exports=M},1150:function(Y,V,n){var T=n(3096),L=n(38346),M=n(15499),w=n(87984);T.extendChartView({type:"scatter",render:function(C,D,S){var p=C.getData(),v=this._updateSymbolDraw(p,C);v.updateData(p,{clipShape:this._getClipShape(C)}),this._finished=!0},incrementalPrepareRender:function(C,D,S){var p=C.getData(),v=this._updateSymbolDraw(p,C);v.incrementalPrepareUpdate(p),this._finished=!1},incrementalRender:function(C,D,S){this._symbolDraw.incrementalUpdate(C,D.getData(),{clipShape:this._getClipShape(D)}),this._finished=C.end===D.getData().count()},updateTransform:function(C,D,S){var p=C.getData();if(this.group.dirty(),!this._finished||p.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var v=w().reset(C);v.progress&&v.progress({start:0,end:p.count()},p),this._symbolDraw.updateLayout(p)},_getClipShape:function(C){var D=C.coordinateSystem,S=D&&D.getArea&&D.getArea();return C.get("clip",!0)?S:null},_updateSymbolDraw:function(C,D){var S=this._symbolDraw,p=D.pipelineContext,v=p.large;return(!S||v!==this._isLargeDraw)&&(S&&S.remove(),S=this._symbolDraw=v?new M:new L,this._isLargeDraw=v,this.group.removeAll()),this.group.add(S.group),S},remove:function(C,D){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},44189:function(Y,V,n){var T=n(3096),L=n(69008);n(58290),n(52637),n(50829);var M=n(22333),w=n(81005),C=n(22259);T.registerVisual(L.curry(M,"sunburst")),T.registerLayout(L.curry(w,"sunburst")),T.registerProcessor(L.curry(C,"sunburst"))},93645:function(Y,V,n){var T=n(69008),L=n(18993),M={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},w=2,C=4;function D(a,u,e){L.Group.call(this);var o=new L.Sector({z2:w});o.seriesIndex=u.seriesIndex;var r=new L.Text({z2:C,silent:a.getModel("label").get("silent")});this.add(o),this.add(r),this.updateData(!0,a,"normal",u,e);function l(){r.ignore=r.hoverIgnore}function h(){r.ignore=r.normalIgnore}this.on("emphasis",l).on("normal",h).on("mouseover",l).on("mouseout",h)}var S=D.prototype;S.updateData=function(a,u,e,o,r){this.node=u,u.piece=this,o=o||this._seriesModel,r=r||this._ecModel;var l=this.childAt(0);l.dataIndex=u.dataIndex;var h=u.getModel(),f=u.getLayout(),c=T.extend({},f);c.label=null;var d=v(u,o,r);i(u,o,d);var A=h.getModel("itemStyle").getItemStyle(),x;if(e==="normal")x=A;else{var y=h.getModel(e+".itemStyle").getItemStyle();x=T.merge(y,A)}x=T.defaults({lineJoin:"bevel",fill:x.fill||d},x),a?(l.setShape(c),l.shape.r=f.r0,L.updateProps(l,{shape:{r:f.r}},o,u.dataIndex),l.useStyle(x)):typeof x.fill=="object"&&x.fill.type||typeof l.style.fill=="object"&&l.style.fill.type?(L.updateProps(l,{shape:c},o),l.useStyle(x)):L.updateProps(l,{shape:c,style:x},o),this._updateLabel(o,d,e);var g=h.getShallow("cursor");if(g&&l.attr("cursor",g),a){var m=o.getShallow("highlightPolicy");this._initEvents(l,u,o,m)}this._seriesModel=o||this._seriesModel,this._ecModel=r||this._ecModel,L.setHoverStyle(this)},S.onEmphasis=function(a){var u=this;this.node.hostTree.root.eachNode(function(e){e.piece&&(u.node===e?e.piece.updateData(!1,e,"emphasis"):s(e,u.node,a)?e.piece.childAt(0).trigger("highlight"):a!==M.NONE&&e.piece.childAt(0).trigger("downplay"))})},S.onNormal=function(){this.node.hostTree.root.eachNode(function(a){a.piece&&a.piece.updateData(!1,a,"normal")})},S.onHighlight=function(){this.updateData(!1,this.node,"highlight")},S.onDownplay=function(){this.updateData(!1,this.node,"downplay")},S._updateLabel=function(a,u,e){var o=this.node.getModel(),r=o.getModel("label"),l=e==="normal"||e==="emphasis"?r:o.getModel(e+".label"),h=o.getModel("emphasis.label"),f=T.retrieve(a.getFormattedLabel(this.node.dataIndex,e,null,null,"label"),this.node.name);G("show")===!1&&(f="");var c=this.node.getLayout(),d=l.get("minAngle");d==null&&(d=r.get("minAngle")),d=d/180*Math.PI;var A=c.endAngle-c.startAngle;d!=null&&Math.abs(A)<d&&(f="");var x=this.childAt(1);L.setLabelStyle(x.style,x.hoverStyle||{},r,h,{defaultText:l.getShallow("show")?f:null,autoColor:u,useInsideStyle:!0});var y=(c.startAngle+c.endAngle)/2,g=Math.cos(y),m=Math.sin(y),b,I=G("position"),R=G("distance")||0,E=G("align");I==="outside"?(b=c.r+R,E=y>Math.PI/2?"right":"left"):!E||E==="center"?(b=(c.r+c.r0)/2,E="center"):E==="left"?(b=c.r0+R,y>Math.PI/2&&(E="right")):E==="right"&&(b=c.r-R,y>Math.PI/2&&(E="left")),x.attr("style",{text:f,textAlign:E,textVerticalAlign:G("verticalAlign")||"middle",opacity:G("opacity")});var P=b*g+c.cx,O=b*m+c.cy;x.attr("position",[P,O]);var N=G("rotate"),_=0;N==="radial"?(_=-y,_<-Math.PI/2&&(_+=Math.PI)):N==="tangential"?(_=Math.PI/2-y,_>Math.PI/2?_-=Math.PI:_<-Math.PI/2&&(_+=Math.PI)):typeof N=="number"&&(_=N*Math.PI/180),x.attr("rotation",_);function G(F){var W=l.get(F);return W==null?r.get(F):W}},S._initEvents=function(a,u,e,o){a.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,l=function(){r.onEmphasis(o)},h=function(){r.onNormal()},f=function(){r.onDownplay()},c=function(){r.onHighlight()};e.isAnimationEnabled()&&a.on("mouseover",l).on("mouseout",h).on("emphasis",l).on("normal",h).on("downplay",f).on("highlight",c)},T.inherits(D,L.Group);var p=D;function v(a,u,e){var o=a.getVisual("color"),r=a.getVisual("visualMeta");(!r||r.length===0)&&(o=null);var l=a.getModel("itemStyle").get("color");if(l)return l;if(o)return o;if(a.depth===0)return e.option.color[0];var h=e.option.color.length;return l=e.option.color[t(a)%h],l}function t(a){for(var u=a;u.depth>1;)u=u.parentNode;var e=a.getAncestors()[0];return T.indexOf(e.children,u)}function s(a,u,e){return e===M.NONE?!1:e===M.SELF?a===u:e===M.ANCESTOR?a===u||a.isAncestorOf(u):a===u||a.isDescendantOf(u)}function i(a,u,e){var o=u.getData();o.setItemVisual(a.dataIndex,"color",e)}Y.exports=p},58290:function(Y,V,n){var T=n(69008),L=n(38645),M=n(54327),w=n(22889),C=w.wrapTreePathInfo,D=L.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(p,v){var t={name:p.name,children:p.data};S(t);var s=p.levels||[],i={};return i.levels=s,M.createTree(t,this,i).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(p){var v=L.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(p);return v.treePathInfo=C(t,this),v},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",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},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(p){p?this._viewRoot=p:p=this._viewRoot;var v=this.getRawData().tree.root;(!p||p!==v&&!v.contains(p))&&(this._viewRoot=v)}});function S(p){var v=0;T.each(p.children,function(s){S(s);var i=s.value;T.isArray(i)&&(i=i[0]),v+=i});var t=p.value;T.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=v),t<0&&(t=0),T.isArray(p.value)?p.value[0]=t:p.value=t}Y.exports=D},52637:function(Y,V,n){var T=n(69008),L=n(68880),M=n(93645),w=n(82383),C=n(17010),D=C.windowOpen,S="sunburstRootToNode",p=L.extend({type:"sunburst",init:function(){},render:function(t,s,i,a){var u=this;this.seriesModel=t,this.api=i,this.ecModel=s;var e=t.getData(),o=e.tree.root,r=t.getViewRoot(),l=this.group,h=t.get("renderLabelForZeroData"),f=[];r.eachNode(function(b){f.push(b)});var c=this._oldChildren||[];if(x(f,c),m(o,r),a&&a.highlight&&a.highlight.piece){var d=t.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(d)}else if(a&&a.unhighlight){var A=this.virtualPiece;!A&&o.children.length&&(A=o.children[0].piece),A&&A.onNormal()}this._initEvents(),this._oldChildren=f;function x(b,I){if(b.length===0&&I.length===0)return;new w(I,b,R,R).add(E).update(E).remove(T.curry(E,null)).execute();function R(P){return P.getId()}function E(P,O){var N=P==null?null:b[P],_=O==null?null:I[O];y(N,_)}}function y(b,I){if(!h&&b&&!b.getValue()&&(b=null),b!==o&&I!==o){if(I&&I.piece)b?(I.piece.updateData(!1,b,"normal",t,s),e.setItemGraphicEl(b.dataIndex,I.piece)):g(I);else if(b){var R=new M(b,t,s);l.add(R),e.setItemGraphicEl(b.dataIndex,R)}}}function g(b){b&&b.piece&&(l.remove(b.piece),b.piece=null)}function m(b,I){if(I.depth>0){u.virtualPiece?u.virtualPiece.updateData(!1,b,"normal",t,s):(u.virtualPiece=new M(b,t,s),l.add(u.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var R=function(E){u._rootToNode(I.parentNode)};I.piece._onclickEvent=R,u.virtualPiece.on("click",R)}else u.virtualPiece&&(l.remove(u.virtualPiece),u.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var t=this,s=function(i){var a=!1,u=t.seriesModel.getViewRoot();u.eachNode(function(e){if(!a&&e.piece&&e.piece.childAt(0)===i.target){var o=e.getModel().get("nodeClick");if(o==="rootToNode")t._rootToNode(e);else if(o==="link"){var r=e.getModel(),l=r.get("link");if(l){var h=r.get("target",!0)||"_blank";D(l,h)}}a=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",s),this.group._onclickEvent=s},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:S,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,s){var i=s.getData(),a=i.getItemLayout(0);if(a){var u=t[0]-a.cx,e=t[1]-a.cy,o=Math.sqrt(u*u+e*e);return o<=a.r&&o>=a.r0}}}),v=p;Y.exports=v},50829:function(Y,V,n){var T=n(3096),L=n(22889),M="sunburstRootToNode";T.registerAction({type:M,update:"updateView"},function(D,S){S.eachComponent({mainType:"series",subType:"sunburst",query:D},p);function p(v,t){var s=L.retrieveTargetInfo(D,[M],v);if(s){var i=v.getViewRoot();i&&(D.direction=L.aboveViewRoot(i,s.node)?"rollUp":"drillDown"),v.resetViewRoot(s.node)}}});var w="sunburstHighlight";T.registerAction({type:w,update:"updateView"},function(D,S){S.eachComponent({mainType:"series",subType:"sunburst",query:D},p);function p(v,t){var s=L.retrieveTargetInfo(D,[w],v);s&&(D.highlight=s.node)}});var C="sunburstUnhighlight";T.registerAction({type:C,update:"updateView"},function(D,S){S.eachComponent({mainType:"series",subType:"sunburst",query:D},p);function p(v,t){D.unhighlight=!0}})},81005:function(Y,V,n){var T=n(86957),L=T.parsePercent,M=n(69008),w=Math.PI/180;function C(p,v,t,s){v.eachSeriesByType(p,function(i){var a=i.get("center"),u=i.get("radius");M.isArray(u)||(u=[0,u]),M.isArray(a)||(a=[a,a]);var e=t.getWidth(),o=t.getHeight(),r=Math.min(e,o),l=L(a[0],e),h=L(a[1],o),f=L(u[0],r/2),c=L(u[1],r/2),d=-i.get("startAngle")*w,A=i.get("minAngle")*w,x=i.getData().tree.root,y=i.getViewRoot(),g=y.depth,m=i.get("sort");m!=null&&D(y,m);var b=0;M.each(y.children,function(z){!isNaN(z.getValue())&&b++});var I=y.getValue(),R=Math.PI/(I||b)*2,E=y.depth>0,P=y.height-(E?-1:1),O=(c-f)/(P||1),N=i.get("clockwise"),_=i.get("stillShowZeroSum"),G=N?1:-1,F=function(z,B){if(z){var k=B;if(z!==x){var Z=z.getValue(),X=I===0&&_?R:Z*R;X<A&&(X=A),k=B+G*X;var K=z.depth-g-(E?-1:1),Q=f+O*K,J=f+O*(K+1),tt=z.getModel();tt.get("r0")!=null&&(Q=L(tt.get("r0"),r/2)),tt.get("r")!=null&&(J=L(tt.get("r"),r/2)),z.setLayout({angle:X,startAngle:B,endAngle:k,clockwise:N,cx:l,cy:h,r0:Q,r:J})}if(z.children&&z.children.length){var q=0;M.each(z.children,function(rt){q+=F(rt,B+q)})}return k-B}};if(E){var W=f,U=f+O,H=Math.PI*2;x.setLayout({angle:H,startAngle:d,endAngle:d+H,clockwise:N,cx:l,cy:h,r0:W,r:U})}F(y,d)})}function D(p,v){var t=p.children||[];p.children=S(t,v),t.length&&M.each(p.children,function(s){D(s,v)})}function S(p,v){if(typeof v=="function")return p.sort(v);var t=v==="asc";return p.sort(function(s,i){var a=(s.getValue()-i.getValue())*(t?1:-1);return a===0?(s.dataIndex-i.dataIndex)*(t?-1:1):a})}Y.exports=C},24357:function(Y,V,n){var T=n(3096);n(13960),n(54790),n(28199);var L=n(7921),M=n(5965),w=n(22259);T.registerLayout(L),T.registerVisual(M),T.registerProcessor(w("themeRiver"))},54790:function(Y,V,n){var T=n(38645),L=n(34476),M=n(28176),w=M.getDimensionTypeByAxis,C=n(39177),D=n(69008),S=n(90830),p=S.groupData,v=n(17010),t=v.encodeHTML,s=n(50329),i=2,a=T.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){a.superApply(this,"init",arguments),this.legendVisualProvider=new s(D.bind(this.getData,this),D.bind(this.getRawData,this))},fixData:function(e){var o=e.length,r=p(e,function(P){return P[2]}),l=[];r.buckets.each(function(P,O){l.push({name:O,dataList:P})});for(var h=l.length,f=-1,c=-1,d=0;d<h;++d){var A=l[d].dataList.length;A>f&&(f=A,c=d)}for(var x=0;x<h;++x)if(x!==c)for(var y=l[x].name,g=0;g<f;++g){for(var m=l[c].dataList[g][0],b=l[x].dataList.length,I=-1,R=0;R<b;++R){var E=l[x].dataList[R][0];if(E===m){I=R;break}}I===-1&&(e[o]=[],e[o][0]=m,e[o][1]=0,e[o][2]=y,o++)}return e},getInitialData:function(e,o){for(var r=o.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],l=r.get("type"),h=D.filter(e.data,function(m){return m[2]!==void 0}),f=this.fixData(h||[]),c=[],d=this.nameMap=D.createHashMap(),A=0,x=0;x<f.length;++x)c.push(f[x][i]),d.get(f[x][i])||(d.set(f[x][i],A),A++);var y=L(f,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:w(l)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),g=new C(y,this);return g.initData(f),g},getLayerSeries:function(){for(var e=this.getData(),o=e.count(),r=[],l=0;l<o;++l)r[l]=l;var h=e.mapDimension("single"),f=p(r,function(d){return e.get("name",d)}),c=[];return f.buckets.each(function(d,A){d.sort(function(x,y){return e.get(h,x)-e.get(h,y)}),c.push({name:A,indices:d})}),c},getAxisTooltipData:function(e,o,r){D.isArray(e)||(e=e?[e]:[]);for(var l=this.getData(),h=this.getLayerSeries(),f=[],c=h.length,d,A=0;A<c;++A){for(var x=Number.MAX_VALUE,y=-1,g=h[A].indices.length,m=0;m<g;++m){var b=l.get(e[0],h[A].indices[m]),I=Math.abs(b-o);I<=x&&(d=b,x=I,y=h[A].indices[m])}f.push(y)}return{dataIndices:f,nestestValue:d}},formatTooltip:function(e){var o=this.getData(),r=o.getName(e),l=o.get(o.mapDimension("value"),e);return(isNaN(l)||l==null)&&(l="-"),t(r+" : "+l)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),u=a;Y.exports=u},28199:function(Y,V,n){var T=n(3096),L=n(81158),M=L.Polygon,w=n(18993),C=n(69008),D=C.bind,S=C.extend,p=n(82383),v=T.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(s,i,a){var u=s.getData(),e=this.group,o=s.getLayerSeries(),r=u.getLayout("layoutInfo"),l=r.rect,h=r.boundaryGap;e.attr("position",[0,l.y+h[0]]);function f(x){return x.name}var c=new p(this._layersSeries||[],o,f,f),d={};c.add(D(A,this,"add")).update(D(A,this,"update")).remove(D(A,this,"remove")).execute();function A(x,y,g){var m=this._layers;if(x==="remove"){e.remove(m[y]);return}for(var b=[],I=[],R,E=o[y].indices,P=0;P<E.length;P++){var O=u.getItemLayout(E[P]),N=O.x,_=O.y0,G=O.y;b.push([N,_]),I.push([N,_+G]),R=u.getItemVisual(E[P],"color")}var F,W,U=u.getItemLayout(E[0]),H=u.getItemModel(E[P-1]),z=H.getModel("label"),B=z.get("margin");if(x==="add"){var k=d[y]=new w.Group;F=new M({shape:{points:b,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),W=new w.Text({style:{x:U.x-B,y:U.y0+U.y/2}}),k.add(F),k.add(W),e.add(k),F.setClipPath(t(F.getBoundingRect(),s,function(){F.removeClipPath()}))}else{var k=m[g];F=k.childAt(0),W=k.childAt(1),e.add(k),d[y]=k,w.updateProps(F,{shape:{points:b,stackedOnPoints:I}},s),w.updateProps(W,{style:{x:U.x-B,y:U.y0+U.y/2}},s)}var Z=H.getModel("emphasis.itemStyle"),X=H.getModel("itemStyle");w.setTextStyle(W.style,z,{text:z.get("show")?s.getFormattedLabel(E[P-1],"normal")||u.getName(E[P-1]):null,textVerticalAlign:"middle"}),F.setStyle(S({fill:R},X.getItemStyle(["color"]))),w.setHoverStyle(F,Z.getItemStyle())}this._layersSeries=o,this._layers=d},dispose:function(){}});function t(s,i,a){var u=new w.Rect({shape:{x:s.x-10,y:s.y-10,width:0,height:s.height+20}});return w.initProps(u,{shape:{width:s.width+20,height:s.height+20}},i,a),u}Y.exports=v},7921:function(Y,V,n){var T=n(69008),L=n(86957);function M(D,S){D.eachSeriesByType("themeRiver",function(p){var v=p.getData(),t=p.coordinateSystem,s={},i=t.getRect();s.rect=i;var a=p.get("boundaryGap"),u=t.getAxis();if(s.boundaryGap=a,u.orient==="horizontal"){a[0]=L.parsePercent(a[0],i.height),a[1]=L.parsePercent(a[1],i.height);var e=i.height-a[0]-a[1];w(v,p,e)}else{a[0]=L.parsePercent(a[0],i.width),a[1]=L.parsePercent(a[1],i.width);var o=i.width-a[0]-a[1];w(v,p,o)}v.setLayout("layoutInfo",s)})}function w(D,S,p){if(D.count())for(var v=S.coordinateSystem,t=S.getLayerSeries(),s=D.mapDimension("single"),i=D.mapDimension("value"),a=T.map(t,function(d){return T.map(d.indices,function(A){var x=v.dataToPoint(D.get(s,A));return x[1]=D.get(i,A),x})}),u=C(a),e=u.y0,o=p/u.max,r=t.length,l=t[0].indices.length,h,f=0;f<l;++f){h=e[f]*o,D.setItemLayout(t[0].indices[f],{layerIndex:0,x:a[0][f][0],y0:h,y:a[0][f][1]*o});for(var c=1;c<r;++c)h+=a[c-1][f][1]*o,D.setItemLayout(t[c].indices[f],{layerIndex:c,x:a[c][f][0],y0:h,y:a[c][f][1]*o})}}function C(D){for(var S=D.length,p=D[0].length,v=[],t=[],s=0,i,a={},u=0;u<p;++u){for(var e=0,i=0;e<S;++e)i+=D[e][u][1];i>s&&(s=i),v.push(i)}for(var o=0;o<p;++o)t[o]=(s-v[o])/2;s=0;for(var r=0;r<p;++r){var l=v[r]+t[r];l>s&&(s=l)}return a.y0=t,a.max=s,a}Y.exports=M},5965:function(Y,V,n){var T=n(69008),L=T.createHashMap;function M(w){w.eachSeriesByType("themeRiver",function(C){var D=C.getData(),S=C.getRawData(),p=C.get("color"),v=L();D.each(function(t){v.set(D.getRawIndex(t),t)}),S.each(function(t){var s=S.getName(t),i=p[(C.nameMap.get(s)-1)%p.length];S.setItemVisual(t,"color",i);var a=v.get(t);a!=null&&D.setItemVisual(a,"color",i)})})}Y.exports=M},16557:function(Y,V,n){var T=n(3096);n(83654),n(49936),n(48728);var L=n(11404),M=n(67367);T.registerVisual(L("tree","circle")),T.registerLayout(M)},83654:function(Y,V,n){var T=n(38645),L=n(54327),M=n(17010),w=M.encodeHTML,C=n(24040),D=T.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(S){var p={name:S.name,children:S.data},v=S.leaves||{},t=new C(v,this,this.ecModel),s=L.createTree(p,this,{},i);function i(o){o.wrapMethod("getItemModel",function(r,l){var h=s.getNodeByDataIndex(l);return(!h.children.length||!h.isExpand)&&(r.parentModel=t),r})}var a=0;s.eachNode("preorder",function(o){o.depth>a&&(a=o.depth)});var u=S.expandAndCollapse,e=u&&S.initialTreeDepth>=0?S.initialTreeDepth:a;return s.root.eachNode("preorder",function(o){var r=o.hostTree.data.getRawDataItem(o.dataIndex);o.isExpand=r&&r.collapsed!=null?!r.collapsed:o.depth<=e}),s.data},getOrient:function(){var S=this.get("orient");return S==="horizontal"?S="LR":S==="vertical"&&(S="TB"),S},setZoom:function(S){this.option.zoom=S},setCenter:function(S){this.option.center=S},formatTooltip:function(S){for(var p=this.getData().tree,v=p.root.children[0],t=p.getNodeByDataIndex(S),s=t.getValue(),i=t.name;t&&t!==v;)i=t.parentNode.name+"."+i,t=t.parentNode;return w(i+(isNaN(s)||s==null?"":" : "+s))},defaultOption:{zlevel:0,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",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});Y.exports=D},49936:function(Y,V,n){var T=n(69008),L=n(18993),M=n(32427),w=n(8940),C=w.radialCoordinate,D=n(3096),S=n(16254),p=n(86990),v=n(37419),t=n(38515),s=n(18584),i=s.onIrrelevantElement,a=n(96311),u=a.__DEV__,e=n(86957),o=e.parsePercent,r=L.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(y,g){var m=g.childPoints,b=m.length,I=g.parentPoint,R=m[0],E=m[b-1];if(b===1){y.moveTo(I[0],I[1]),y.lineTo(R[0],R[1]);return}var P=g.orient,O=P==="TB"||P==="BT"?0:1,N=1-O,_=o(g.forkPosition,1),G=[];G[O]=I[O],G[N]=I[N]+(E[N]-I[N])*_,y.moveTo(I[0],I[1]),y.lineTo(G[0],G[1]),y.moveTo(R[0],R[1]),G[O]=R[O],y.lineTo(G[0],G[1]),G[O]=E[O],y.lineTo(G[0],G[1]),y.lineTo(E[0],E[1]);for(var F=1;F<b-1;F++){var W=m[F];y.moveTo(W[0],W[1]),G[O]=W[O],y.lineTo(G[0],G[1])}}}),l=D.extendChartView({type:"tree",init:function(y,g){this._oldTree,this._mainGroup=new L.Group,this._controller=new t(g.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(y,g,m,b){var I=y.getData(),R=y.layoutInfo,E=this._mainGroup,P=y.get("layout");P==="radial"?E.attr("position",[R.x+R.width/2,R.y+R.height/2]):E.attr("position",[R.x,R.y]),this._updateViewCoordSys(y,R,P),this._updateController(y,g,m);var O=this._data,N={expandAndCollapse:y.get("expandAndCollapse"),layout:P,edgeShape:y.get("edgeShape"),edgeForkPosition:y.get("edgeForkPosition"),orient:y.getOrient(),curvature:y.get("lineStyle.curveness"),symbolRotate:y.get("symbolRotate"),symbolOffset:y.get("symbolOffset"),hoverAnimation:y.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};I.diff(O).add(function(_){h(I,_)&&c(I,_,null,E,y,N)}).update(function(_,G){var F=O.getItemGraphicEl(G);if(!h(I,_)){F&&A(O,G,F,E,y,N);return}c(I,_,F,E,y,N)}).remove(function(_){var G=O.getItemGraphicEl(_);G&&A(O,_,G,E,y,N)}).execute(),this._nodeScaleRatio=y.get("nodeScaleRatio"),this._updateNodeAndLinkScale(y),N.expandAndCollapse===!0&&I.eachItemGraphicEl(function(_,G){_.off("click").on("click",function(){m.dispatchAction({type:"treeExpandAndCollapse",seriesId:y.id,dataIndex:G})})}),this._data=I},_updateViewCoordSys:function(y){var g=y.getData(),m=[];g.each(function(O){var N=g.getItemLayout(O);N&&!isNaN(N.x)&&!isNaN(N.y)&&m.push([+N.x,+N.y])});var b=[],I=[];S.fromPoints(m,b,I);var R=this._min,E=this._max;I[0]-b[0]===0&&(b[0]=R?R[0]:b[0]-1,I[0]=E?E[0]:I[0]+1),I[1]-b[1]===0&&(b[1]=R?R[1]:b[1]-1,I[1]=E?E[1]:I[1]+1);var P=y.coordinateSystem=new p;P.zoomLimit=y.get("scaleLimit"),P.setBoundingRect(b[0],b[1],I[0]-b[0],I[1]-b[1]),P.setCenter(y.get("center")),P.setZoom(y.get("zoom")),this.group.attr({position:P.position,scale:P.scale}),this._viewCoordSys=P,this._min=b,this._max=I},_updateController:function(y,g,m){var b=this._controller,I=this._controllerHost,R=this.group;b.setPointerChecker(function(E,P,O){var N=R.getBoundingRect();return N.applyTransform(R.transform),N.contain(P,O)&&!i(E,m,y)}),b.enable(y.get("roam")),I.zoomLimit=y.get("scaleLimit"),I.zoom=y.coordinateSystem.getZoom(),b.off("pan").off("zoom").on("pan",function(E){v.updateViewOnPan(I,E.dx,E.dy),m.dispatchAction({seriesId:y.id,type:"treeRoam",dx:E.dx,dy:E.dy})},this).on("zoom",function(E){v.updateViewOnZoom(I,E.scale,E.originX,E.originY),m.dispatchAction({seriesId:y.id,type:"treeRoam",zoom:E.scale,originX:E.originX,originY:E.originY}),this._updateNodeAndLinkScale(y)},this)},_updateNodeAndLinkScale:function(y){var g=y.getData(),m=this._getNodeGlobalScale(y),b=[m,m];g.eachItemGraphicEl(function(I,R){I.attr("scale",b)})},_getNodeGlobalScale:function(y){var g=y.coordinateSystem;if(g.type!=="view")return 1;var m=this._nodeScaleRatio,b=g.scale,I=b&&b[0]||1,R=g.getZoom(),E=(R-1)*m+1;return E/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function h(y,g){var m=y.getItemLayout(g);return m&&!isNaN(m.x)&&!isNaN(m.y)&&y.getItemVisual(g,"symbol")!=="none"}function f(y,g,m){return m.itemModel=g,m.itemStyle=g.getModel("itemStyle").getItemStyle(),m.hoverItemStyle=g.getModel("emphasis.itemStyle").getItemStyle(),m.lineStyle=g.getModel("lineStyle").getLineStyle(),m.labelModel=g.getModel("label"),m.hoverLabelModel=g.getModel("emphasis.label"),y.isExpand===!1&&y.children.length!==0?m.symbolInnerColor=m.itemStyle.fill:m.symbolInnerColor="#fff",m}function c(y,g,m,b,I,N){var E=!m,P=y.tree.getNodeByDataIndex(g),O=P.getModel(),N=f(P,O,N),_=y.tree.root,G=P.parentNode===_?P:P.parentNode||P,F=y.getItemGraphicEl(G.dataIndex),W=G.getLayout(),U=F?{x:F.position[0],y:F.position[1],rawX:F.__radialOldRawX,rawY:F.__radialOldRawY}:W,H=P.getLayout();E?(m=new M(y,g,N),m.attr("position",[U.x,U.y])):m.updateData(y,g,N),m.__radialOldRawX=m.__radialRawX,m.__radialOldRawY=m.__radialRawY,m.__radialRawX=H.rawX,m.__radialRawY=H.rawY,b.add(m),y.setItemGraphicEl(g,m),L.updateProps(m,{position:[H.x,H.y]},I);var z=m.getSymbolPath();if(N.layout==="radial"){var B=_.children[0],k=B.getLayout(),Z=B.children.length,X,K;if(H.x===k.x&&P.isExpand===!0){var Q={};Q.x=(B.children[0].getLayout().x+B.children[Z-1].getLayout().x)/2,Q.y=(B.children[0].getLayout().y+B.children[Z-1].getLayout().y)/2,X=Math.atan2(Q.y-k.y,Q.x-k.x),X<0&&(X=Math.PI*2+X),K=Q.x<k.x,K&&(X=X-Math.PI)}else X=Math.atan2(H.y-k.y,H.x-k.x),X<0&&(X=Math.PI*2+X),P.children.length===0||P.children.length!==0&&P.isExpand===!1?(K=H.x<k.x,K&&(X=X-Math.PI)):(K=H.x>k.x,K||(X=X-Math.PI));var J=K?"left":"right",tt=N.labelModel.get("rotate"),q=tt*(Math.PI/180);z.setStyle({textPosition:N.labelModel.get("position")||J,textRotation:tt==null?-X:q,textOrigin:"center",verticalAlign:"middle"})}d(I,P,_,m,U,W,H,b,N)}function d(y,g,m,b,I,R,E,P,O){var N=O.edgeShape,_=b.__edge;if(N==="curve")g.parentNode&&g.parentNode!==m&&(_||(_=b.__edge=new L.BezierCurve({shape:x(O,I,I),style:T.defaults({opacity:0,strokeNoScale:!0},O.lineStyle)})),L.updateProps(_,{shape:x(O,R,E),style:{opacity:1}},y));else if(N==="polyline"&&O.layout==="orthogonal"&&g!==m&&g.children&&g.children.length!==0&&g.isExpand===!0){for(var G=g.children,F=[],W=0;W<G.length;W++){var U=G[W].getLayout();F.push([U.x,U.y])}_||(_=b.__edge=new r({shape:{parentPoint:[E.x,E.y],childPoints:[[E.x,E.y]],orient:O.orient,forkPosition:O.edgeForkPosition},style:T.defaults({opacity:0,strokeNoScale:!0},O.lineStyle)})),L.updateProps(_,{shape:{parentPoint:[E.x,E.y],childPoints:F},style:{opacity:1}},y)}P.add(_)}function A(y,g,m,b,I,N){for(var E=y.tree.getNodeByDataIndex(g),P=y.tree.root,O=E.getModel(),N=f(E,O,N),_=E.parentNode===P?E:E.parentNode||E,H=N.edgeShape,G;G=_.getLayout(),G==null;)_=_.parentNode===P?_:_.parentNode||_;L.updateProps(m,{position:[G.x+1,G.y+1]},I,function(){b.remove(m),y.setItemGraphicEl(g,null)}),m.fadeOut(null,{keepLabel:!0});var F=y.getItemGraphicEl(_.dataIndex),W=F.__edge,U=m.__edge||(_.isExpand===!1||_.children.length===1?W:void 0),H=N.edgeShape;U&&(H==="curve"?L.updateProps(U,{shape:x(N,G,G),style:{opacity:0}},I,function(){b.remove(U)}):H==="polyline"&&N.layout==="orthogonal"&&L.updateProps(U,{shape:{parentPoint:[G.x,G.y],childPoints:[[G.x,G.y]]},style:{opacity:0}},I,function(){b.remove(U)}))}function x(y,g,m){var b,I,R,E,P=y.orient,O,N,_,G;if(y.layout==="radial"){O=g.rawX,_=g.rawY,N=m.rawX,G=m.rawY;var F=C(O,_),W=C(O,_+(G-_)*y.curvature),U=C(N,G+(_-G)*y.curvature),H=C(N,G);return{x1:F.x,y1:F.y,x2:H.x,y2:H.y,cpx1:W.x,cpy1:W.y,cpx2:U.x,cpy2:U.y}}else O=g.x,_=g.y,N=m.x,G=m.y,(P==="LR"||P==="RL")&&(b=O+(N-O)*y.curvature,I=_,R=N+(O-N)*y.curvature,E=G),(P==="TB"||P==="BT")&&(b=O,I=_+(G-_)*y.curvature,R=N,E=G+(_-G)*y.curvature);return{x1:O,y1:_,x2:N,y2:G,cpx1:b,cpy1:I,cpx2:R,cpy2:E}}Y.exports=l},8940:function(Y,V,n){var T=n(7357);function L(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var o=[e],r,l;r=o.pop();)if(l=r.children,r.isExpand&&l.length)for(var h=l.length,f=h-1;f>=0;f--){var c=l[f];c.hierNode={defaultAncestor:null,ancestor:c,prelim:0,modifier:0,change:0,shift:0,i:f,thread:null},o.push(c)}}function M(e,o){var r=e.isExpand?e.children:[],l=e.parentNode.children,h=e.hierNode.i?l[e.hierNode.i-1]:null;if(r.length){p(e);var f=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;h?(e.hierNode.prelim=h.hierNode.prelim+o(e,h),e.hierNode.modifier=e.hierNode.prelim-f):e.hierNode.prelim=f}else h&&(e.hierNode.prelim=h.hierNode.prelim+o(e,h));e.parentNode.hierNode.defaultAncestor=v(e,h,e.parentNode.hierNode.defaultAncestor||l[0],o)}function w(e){var o=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:o},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function C(e){return arguments.length?e:u}function D(e,o){var r={};return e-=Math.PI/2,r.x=o*Math.cos(e),r.y=o*Math.sin(e),r}function S(e,o){return T.getLayoutRect(e.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})}function p(e){for(var o=e.children,r=o.length,l=0,h=0;--r>=0;){var f=o[r];f.hierNode.prelim+=l,f.hierNode.modifier+=l,h+=f.hierNode.change,l+=f.hierNode.shift+h}}function v(e,o,r,l){if(o){for(var h=e,f=e,c=f.parentNode.children[0],d=o,A=h.hierNode.modifier,x=f.hierNode.modifier,y=c.hierNode.modifier,g=d.hierNode.modifier;d=t(d),f=s(f),d&&f;){h=t(h),c=s(c),h.hierNode.ancestor=e;var m=d.hierNode.prelim+g-f.hierNode.prelim-x+l(d,f);m>0&&(a(i(d,e,r),e,m),x+=m,A+=m),g+=d.hierNode.modifier,x+=f.hierNode.modifier,A+=h.hierNode.modifier,y+=c.hierNode.modifier}d&&!t(h)&&(h.hierNode.thread=d,h.hierNode.modifier+=g-A),f&&!s(c)&&(c.hierNode.thread=f,c.hierNode.modifier+=x-y,r=e)}return r}function t(e){var o=e.children;return o.length&&e.isExpand?o[o.length-1]:e.hierNode.thread}function s(e){var o=e.children;return o.length&&e.isExpand?o[0]:e.hierNode.thread}function i(e,o,r){return e.hierNode.ancestor.parentNode===o.parentNode?e.hierNode.ancestor:r}function a(e,o,r){var l=r/(o.hierNode.i-e.hierNode.i);o.hierNode.change-=l,o.hierNode.shift+=r,o.hierNode.modifier+=r,o.hierNode.prelim+=r,e.hierNode.change+=l}function u(e,o){return e.parentNode===o.parentNode?1:2}V.init=L,V.firstWalk=M,V.secondWalk=w,V.separation=C,V.radialCoordinate=D,V.getViewRect=S},48311:function(Y,V){function n(L,M,w){for(var C=[L],D=[],S;S=C.pop();)if(D.push(S),S.isExpand){var p=S.children;if(p.length)for(var v=0;v<p.length;v++)C.push(p[v])}for(;S=D.pop();)M(S,w)}function T(L,M){for(var w=[L],C;C=w.pop();)if(M(C),C.isExpand){var D=C.children;if(D.length)for(var S=D.length-1;S>=0;S--)w.push(D[S])}}V.eachAfter=n,V.eachBefore=T},48728:function(Y,V,n){var T=n(3096),L=n(66710),M=L.updateCenterAndZoom;T.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(w,C){C.eachComponent({mainType:"series",subType:"tree",query:w},function(D){var S=w.dataIndex,p=D.getData().tree,v=p.getNodeByDataIndex(S);v.isExpand=!v.isExpand})}),T.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(w,C){C.eachComponent({mainType:"series",subType:"tree",query:w},function(D){var S=D.coordinateSystem,p=M(S,w);D.setCenter&&D.setCenter(p.center),D.setZoom&&D.setZoom(p.zoom)})})},67367:function(Y,V,n){var T=n(48311),L=T.eachAfter,M=T.eachBefore,w=n(8940),C=w.init,D=w.firstWalk,S=w.secondWalk,p=w.separation,v=w.radialCoordinate,t=w.getViewRect;function s(a,u){a.eachSeriesByType("tree",function(e){i(e,u)})}function i(a,u){var e=t(a,u);a.layoutInfo=e;var o=a.get("layout"),r=0,l=0,h=null;o==="radial"?(r=2*Math.PI,l=Math.min(e.height,e.width)/2,h=p(function(P,O){return(P.parentNode===O.parentNode?1:2)/P.depth})):(r=e.width,l=e.height,h=p());var f=a.getData().tree.root,c=f.children[0];if(c){C(f),L(c,D,h),f.hierNode.modifier=-c.hierNode.prelim,M(c,S);var d=c,A=c,x=c;M(c,function(P){var O=P.getLayout().x;O<d.getLayout().x&&(d=P),O>A.getLayout().x&&(A=P),P.depth>x.depth&&(x=P)});var y=d===A?1:h(d,A)/2,g=y-d.getLayout().x,m=0,b=0,I=0,R=0;if(o==="radial")m=r/(A.getLayout().x+y+g),b=l/(x.depth-1||1),M(c,function(P){I=(P.getLayout().x+g)*m,R=(P.depth-1)*b;var O=v(I,R);P.setLayout({x:O.x,y:O.y,rawX:I,rawY:R},!0)});else{var E=a.getOrient();E==="RL"||E==="LR"?(b=l/(A.getLayout().x+y+g),m=r/(x.depth-1||1),M(c,function(P){R=(P.getLayout().x+g)*b,I=E==="LR"?(P.depth-1)*m:r-(P.depth-1)*m,P.setLayout({x:I,y:R},!0)})):(E==="TB"||E==="BT")&&(m=r/(A.getLayout().x+y+g),b=l/(x.depth-1||1),M(c,function(P){I=(P.getLayout().x+g)*m,R=E==="TB"?(P.depth-1)*b:l-(P.depth-1)*b,P.setLayout({x:I,y:R},!0)}))}}}Y.exports=s},70797:function(Y,V,n){var T=n(3096);n(49080),n(61511),n(35260);var L=n(81459),M=n(17606);T.registerVisual(L),T.registerLayout(M)},36938:function(Y,V,n){var T=n(18993),L=n(7357),M=n(69008),w=n(22889),C=w.wrapTreePathInfo,D=8,S=8,p=5;function v(a){this.group=new T.Group,a.add(this.group)}v.prototype={constructor:v,render:function(a,u,e,o){var r=a.getModel("breadcrumb"),l=this.group;if(l.removeAll(),!(!r.get("show")||!e)){var h=r.getModel("itemStyle"),f=h.getModel("textStyle"),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:u.getWidth(),height:u.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(e,c,f),this._renderContent(a,c,h,f,o),L.positionElement(l,c.pos,c.box)}},_prepare:function(a,u,e){for(var o=a;o;o=o.parentNode){var r=o.getModel().get("name"),l=e.getTextRect(r),h=Math.max(l.width+D*2,u.emptyItemWidth);u.totalWidth+=h+S,u.renderList.push({node:o,text:r,width:h})}},_renderContent:function(a,u,e,o,r){for(var l=0,h=u.emptyItemWidth,f=a.get("breadcrumb.height"),c=L.getAvailableSize(u.pos,u.box),d=u.totalWidth,A=u.renderList,x=A.length-1;x>=0;x--){var y=A[x],g=y.node,m=y.width,b=y.text;d>c.width&&(d-=m-h,m=h,b=null);var I=new T.Polygon({shape:{points:t(l,0,m,f,x===A.length-1,x===0)},style:M.defaults(e.getItemStyle(),{lineJoin:"bevel",text:b,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:M.curry(r,g)});this.group.add(I),s(I,a,g),l+=m+S}},remove:function(){this.group.removeAll()}};function t(a,u,e,o,r,l){var h=[[r?a:a-p,u],[a+e,u],[a+e,u+o],[r?a:a-p,u+o]];return!l&&h.splice(2,0,[a+e+p,u+o/2]),!r&&h.push([a,u+o/2]),h}function s(a,u,e){a.eventData={componentType:"series",componentSubType:"treemap",componentIndex:u.componentIndex,seriesIndex:u.componentIndex,seriesName:u.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&C(e,u)}}var i=v;Y.exports=i},49080:function(Y,V,n){var T=n(69008),L=n(38645),M=n(54327),w=n(24040),C=n(17010),D=C.encodeHTML,S=C.addCommas,p=n(22889),v=p.wrapTreePathInfo,t=L.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,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)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(a,u){var e={name:a.name,children:a.data};s(e);var o=a.levels||[];o=a.levels=i(o,u);var r=T.map(o||[],function(f){return new w(f,this,u)},this),l=M.createTree(e,this,null,h);function h(f){f.wrapMethod("getItemModel",function(c,d){var A=l.getNodeByDataIndex(d),x=r[A.depth];return x&&(c.parentModel=x),c})}return l.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(a){var u=this.getData(),e=this.getRawValue(a),o=T.isArray(e)?S(e[0]):S(e),r=u.getName(a);return D(r+": "+o)},getDataParams:function(a){var u=L.prototype.getDataParams.apply(this,arguments),e=this.getData().tree.getNodeByDataIndex(a);return u.treePathInfo=v(e,this),u},setLayoutInfo:function(a){this.layoutInfo=this.layoutInfo||{},T.extend(this.layoutInfo,a)},mapIdToIndex:function(a){var u=this._idIndexMap;u||(u=this._idIndexMap=T.createHashMap(),this._idIndexMapCount=0);var e=u.get(a);return e==null&&u.set(a,e=this._idIndexMapCount++),e},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(a){a?this._viewRoot=a:a=this._viewRoot;var u=this.getRawData().tree.root;(!a||a!==u&&!u.contains(a))&&(this._viewRoot=u)}});function s(a){var u=0;T.each(a.children,function(o){s(o);var r=o.value;T.isArray(r)&&(r=r[0]),u+=r});var e=a.value;T.isArray(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=u),e<0&&(e=0),T.isArray(a.value)?a.value[0]=e:a.value=e}function i(a,u){var e=u.get("color");if(e){a=a||[];var o;if(T.each(a,function(l){var h=new w(l),f=h.get("color");(h.get("itemStyle.color")||f&&f!=="none")&&(o=!0)}),!o){var r=a[0]||(a[0]={});r.color=e.slice()}return a}}Y.exports=t},61511:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993),w=n(82383),C=n(22889),D=n(36938),S=n(38515),p=n(9806),v=n(26237),t=n(77550),s=n(76282),i=n(17010),a=i.windowOpen,u=L.bind,e=M.Group,o=M.Rect,r=L.each,l=3,h=["label"],f=["emphasis","label"],c=["upperLabel"],d=["emphasis","upperLabel"],A=10,x=1,y=2,g=s([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),m=function(P){var O=g(P);return O.stroke=O.fill=O.lineWidth=null,O},b=T.extendChartView({type:"treemap",init:function(P,O){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(P,O,N,_){var G=O.findComponents({mainType:"series",subType:"treemap",query:_});if(!(L.indexOf(G,P)<0)){this.seriesModel=P,this.api=N,this.ecModel=O;var F=["treemapZoomToNode","treemapRootToNode"],W=C.retrieveTargetInfo(_,F,P),U=_&&_.type,H=P.layoutInfo,z=!this._oldTree,B=this._storage,k=U==="treemapRootToNode"&&W&&B?{rootNodeGroup:B.nodeGroup[W.node.getRawIndex()],direction:_.direction}:null,Z=this._giveContainerGroup(H),X=this._doRender(Z,P,k);!z&&(!U||U==="treemapZoomToNode"||U==="treemapRootToNode")?this._doAnimation(Z,X,P,k):X.renderFinally(),this._resetController(N),this._renderBreadcrumb(P,N,W)}},_giveContainerGroup:function(P){var O=this._containerGroup;return O||(O=this._containerGroup=new e,this._initEvents(O),this.group.add(O)),O.attr("position",[P.x,P.y]),O},_doRender:function(P,O,N){var _=O.getData().tree,G=this._oldTree,F=I(),W=I(),U=this._storage,H=[],z=L.curry(R,O,W,U,N,F,H);k(_.root?[_.root]:[],G&&G.root?[G.root]:[],P,_===G||!G,0);var B=Z(U);return this._oldTree=_,this._storage=W,{lastsForAnimation:F,willDeleteEls:B,renderFinally:X};function k(K,Q,J,tt,q){tt?(Q=K,r(K,function(j,st){!j.isRemoved()&&$(st,st)})):new w(Q,K,rt,rt).add($).update($).remove(L.curry($,null)).execute();function rt(j){return j.getId()}function $(j,st){var ot=j!=null?K[j]:null,vt=st!=null?Q[st]:null,yt=z(ot,vt,J,q);yt&&k(ot&&ot.viewChildren||[],vt&&vt.viewChildren||[],yt,tt,q+1)}}function Z(K){var Q=I();return K&&r(K,function(J,tt){var q=Q[tt];r(J,function(rt){rt&&(q.push(rt),rt.__tmWillDelete=1)})}),Q}function X(){r(B,function(K){r(K,function(Q){Q.parent&&Q.parent.remove(Q)})}),r(H,function(K){K.invisible=!0,K.dirty()})}},_doAnimation:function(P,O,N,_){if(N.get("animation")){var G=N.get("animationDurationUpdate"),F=N.get("animationEasing"),W=t.createWrap();r(O.willDeleteEls,function(U,H){r(U,function(z,B){if(!z.invisible){var k=z.parent,Z;if(_&&_.direction==="drillDown")Z=k===_.rootNodeGroup?{shape:{x:0,y:0,width:k.__tmNodeWidth,height:k.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var X=0,K=0;k.__tmWillDelete||(X=k.__tmNodeWidth/2,K=k.__tmNodeHeight/2),Z=H==="nodeGroup"?{position:[X,K],style:{opacity:0}}:{shape:{x:X,y:K,width:0,height:0},style:{opacity:0}}}Z&&W.add(z,Z,G,F)}})}),r(this._storage,function(U,H){r(U,function(z,B){var k=O.lastsForAnimation[H][B],Z={};k&&(H==="nodeGroup"?k.old&&(Z.position=z.position.slice(),z.attr("position",k.old)):(k.old&&(Z.shape=L.extend({},z.shape),z.setShape(k.old)),k.fadein?(z.setStyle("opacity",0),Z.style={opacity:1}):z.style.opacity!==1&&(Z.style={opacity:1})),W.add(z,Z,G,F))})},this),this._state="animating",W.done(u(function(){this._state="ready",O.renderFinally()},this)).start()}},_resetController:function(P){var O=this._controller;O||(O=this._controller=new S(P.getZr()),O.enable(this.seriesModel.get("roam")),O.on("pan",u(this._onPan,this)),O.on("zoom",u(this._onZoom,this)));var N=new p(0,0,P.getWidth(),P.getHeight());O.setPointerChecker(function(_,G,F){return N.contain(G,F)})},_clearController:function(){var P=this._controller;P&&(P.dispose(),P=null)},_onPan:function(P){if(this._state!=="animating"&&(Math.abs(P.dx)>l||Math.abs(P.dy)>l)){var O=this.seriesModel.getData().tree.root;if(!O)return;var N=O.getLayout();if(!N)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:N.x+P.dx,y:N.y+P.dy,width:N.width,height:N.height}})}},_onZoom:function(P){var O=P.originX,N=P.originY;if(this._state!=="animating"){var _=this.seriesModel.getData().tree.root;if(!_)return;var G=_.getLayout();if(!G)return;var F=new p(G.x,G.y,G.width,G.height),W=this.seriesModel.layoutInfo;O-=W.x,N-=W.y;var U=v.create();v.translate(U,U,[-O,-N]),v.scale(U,U,[P.scale,P.scale]),v.translate(U,U,[O,N]),F.applyTransform(U),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:F.x,y:F.y,width:F.width,height:F.height}})}},_initEvents:function(P){P.on("click",function(O){if(this._state==="ready"){var N=this.seriesModel.get("nodeClick",!0);if(N){var _=this.findTarget(O.offsetX,O.offsetY);if(_){var G=_.node;if(G.getLayout().isLeafRoot)this._rootToNode(_);else if(N==="zoomToNode")this._zoomToNode(_);else if(N==="link"){var F=G.hostTree.data.getItemModel(G.dataIndex),W=F.get("link",!0),U=F.get("target",!0)||"blank";W&&a(W,U)}}}}},this)},_renderBreadcrumb:function(P,O,N){N||(N=P.get("leafDepth",!0)!=null?{node:P.getViewRoot()}:this.findTarget(O.getWidth()/2,O.getHeight()/2),N||(N={node:P.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new D(this.group))).render(P,O,N.node,u(_,this));function _(G){this._state!=="animating"&&(C.aboveViewRoot(P.getViewRoot(),G)?this._rootToNode({node:G}):this._zoomToNode({node:G}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=I(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(P){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:P.node})},_rootToNode:function(P){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:P.node})},findTarget:function(P,O){var N,_=this.seriesModel.getViewRoot();return _.eachNode({attr:"viewChildren",order:"preorder"},function(G){var F=this._storage.background[G.getRawIndex()];if(F){var W=F.transformCoordToLocal(P,O),U=F.shape;if(U.x<=W[0]&&W[0]<=U.x+U.width&&U.y<=W[1]&&W[1]<=U.y+U.height)N={node:G,offsetX:W[0],offsetY:W[1]};else return!1}},this),N}});function I(){return{nodeGroup:[],background:[],content:[]}}function R(P,O,N,_,G,F,W,U,H,z){if(!W)return;var B=W.getLayout(),k=P.getData();if(k.setItemGraphicEl(W.dataIndex,null),!B||!B.isInView)return;var Z=B.width,X=B.height,K=B.borderWidth,Q=B.invisible,J=W.getRawIndex(),tt=U&&U.getRawIndex(),q=W.viewChildren,rt=B.upperHeight,$=q&&q.length,j=W.getModel("itemStyle"),st=W.getModel("emphasis.itemStyle"),ot=lt("nodeGroup",e);if(!ot)return;if(H.add(ot),ot.attr("position",[B.x||0,B.y||0]),ot.__tmNodeWidth=Z,ot.__tmNodeHeight=X,B.isAboveViewRoot)return ot;var vt=W.getModel(),yt=lt("background",o,z,x);if(yt&&ut(ot,yt,$&&B.upperLabelHeight),$)M.isHighDownDispatcher(ot)&&M.setAsHighDownDispatcher(ot,!1),yt&&(M.setAsHighDownDispatcher(yt,!0),k.setItemGraphicEl(W.dataIndex,yt));else{var it=lt("content",o,z,y);it&&gt(ot,it),yt&&M.isHighDownDispatcher(yt)&&M.setAsHighDownDispatcher(yt,!1),M.setAsHighDownDispatcher(ot,!0),k.setItemGraphicEl(W.dataIndex,ot)}return ot;function ut(mt,ft,xt){if(ft.dataIndex=W.dataIndex,ft.seriesIndex=P.seriesIndex,ft.setShape({x:0,y:0,width:Z,height:X}),Q)Ct(ft);else{ft.invisible=!1;var Mt=W.getVisual("borderColor",!0),Pt=st.get("borderColor"),Rt=m(j);Rt.fill=Mt;var Bt=g(st);if(Bt.fill=Pt,xt){var Vt=Z-2*K;bt(Rt,Bt,Mt,Vt,rt,{x:K,y:0,width:Vt,height:rt})}else Rt.text=Bt.text=null;ft.setStyle(Rt),M.setElementHoverStyle(ft,Bt)}mt.add(ft)}function gt(mt,ft){ft.dataIndex=W.dataIndex,ft.seriesIndex=P.seriesIndex;var xt=Math.max(Z-2*K,0),Mt=Math.max(X-2*K,0);if(ft.culling=!0,ft.setShape({x:K,y:K,width:xt,height:Mt}),Q)Ct(ft);else{ft.invisible=!1;var Pt=W.getVisual("color",!0),Rt=m(j);Rt.fill=Pt;var Bt=g(st);bt(Rt,Bt,Pt,xt,Mt),ft.setStyle(Rt),M.setElementHoverStyle(ft,Bt)}mt.add(ft)}function Ct(mt){!mt.invisible&&F.push(mt)}function bt(mt,ft,xt,Mt,Pt,Rt){var Bt=vt.get("name"),Vt=vt.getModel(Rt?c:h),Gt=vt.getModel(Rt?d:f),Ft=Vt.getShallow("show");M.setLabelStyle(mt,ft,Vt,Gt,{defaultText:Ft?Bt:null,autoColor:xt,isRectText:!0,labelFetcher:P,labelDataIndex:W.dataIndex,labelProp:Rt?"upperLabel":"label"}),et(mt,Rt,B),et(ft,Rt,B),Rt&&(mt.textRect=L.clone(Rt)),mt.truncate=Ft&&Vt.get("ellipsis")?{outerWidth:Mt,outerHeight:Pt,minChar:2}:null}function et(mt,ft,xt){var Mt=mt.text;if(!ft&&xt.isLeafRoot&&Mt!=null){var Pt=P.get("drillDownIcon",!0);mt.text=Pt?Pt+" "+Mt:Mt}}function lt(mt,ft,xt,Mt){var Pt=tt!=null&&N[mt][tt],Rt=G[mt];return Pt?(N[mt][tt]=null,ht(Rt,Pt,mt)):Q||(Pt=new ft({z:E(xt,Mt)}),Pt.__tmDepth=xt,Pt.__tmStorageName=mt,pt(Rt,Pt,mt)),O[mt][J]=Pt}function ht(mt,ft,xt){var Mt=mt[J]={};Mt.old=xt==="nodeGroup"?ft.position.slice():L.extend({},ft.shape)}function pt(mt,ft,xt){var Mt=mt[J]={},Pt=W.parentNode;if(Pt&&(!_||_.direction==="drillDown")){var Rt=0,Bt=0,Vt=G.background[Pt.getRawIndex()];!_&&Vt&&Vt.old&&(Rt=Vt.old.width,Bt=Vt.old.height),Mt.old=xt==="nodeGroup"?[0,Bt]:{x:Rt,y:Bt,width:0,height:0}}Mt.fadein=xt!=="nodeGroup"}}function E(P,O){var N=P*A+O;return(N-1)/N}Y.exports=b},35260:function(Y,V,n){for(var T=n(3096),L=n(22889),M=function(){},w=["treemapZoomToNode","treemapRender","treemapMove"],C=0;C<w.length;C++)T.registerAction({type:w[C],update:"updateView"},M);T.registerAction({type:"treemapRootToNode",update:"updateView"},function(D,S){S.eachComponent({mainType:"series",subType:"treemap",query:D},p);function p(v,t){var s=["treemapZoomToNode","treemapRootToNode"],i=L.retrieveTargetInfo(D,s,v);if(i){var a=v.getViewRoot();a&&(D.direction=L.aboveViewRoot(a,i.node)?"rollUp":"drillDown"),v.resetViewRoot(i.node)}}})},17606:function(Y,V,n){var T=n(69008),L=n(9806),M=n(86957),w=M.parsePercent,C=M.MAX_SAFE_INTEGER,D=n(7357),S=n(22889),p=Math.max,v=Math.min,t=T.retrieve,s=T.each,i=["itemStyle","borderWidth"],a=["itemStyle","gapWidth"],u=["upperLabel","show"],e=["upperLabel","height"],o={seriesType:"treemap",reset:function(b,I,R,E){var P=R.getWidth(),O=R.getHeight(),N=b.option,_=D.getLayoutRect(b.getBoxLayoutParams(),{width:R.getWidth(),height:R.getHeight()}),G=N.size||[],F=w(t(_.width,G[0]),P),W=w(t(_.height,G[1]),O),U=E&&E.type,H=["treemapZoomToNode","treemapRootToNode"],z=S.retrieveTargetInfo(E,H,b),B=U==="treemapRender"||U==="treemapMove"?E.rootRect:null,k=b.getViewRoot(),Z=S.getPathToRoot(k);if(U!=="treemapMove"){var X=U==="treemapZoomToNode"?x(b,z,k,F,W):B?[B.width,B.height]:[F,W],K=N.sort;K&&K!=="asc"&&K!=="desc"&&(K="desc");var Q={squareRatio:N.squareRatio,sort:K,leafDepth:N.leafDepth};k.hostTree.clearLayouts();var J={x:0,y:0,width:X[0],height:X[1],area:X[0]*X[1]};k.setLayout(J),r(k,Q,!1,0);var J=k.getLayout();s(Z,function(q,rt){var $=(Z[rt+1]||k).getValue();q.setLayout(T.extend({dataExtent:[$,$],borderWidth:0,upperHeight:0},J))})}var tt=b.getData().tree.root;tt.setLayout(y(_,B,z),!0),b.setLayoutInfo(_),g(tt,new L(-_.x,-_.y,P,O),Z,k,0)}};function r(b,I,R,E){var P,O;if(!b.isRemoved()){var N=b.getLayout();P=N.width,O=N.height;var z=b.getModel(),_=z.get(i),G=z.get(a)/2,F=m(z),W=Math.max(_,F),U=_-G,H=W-G,z=b.getModel();b.setLayout({borderWidth:_,upperHeight:W,upperLabelHeight:F},!0),P=p(P-2*U,0),O=p(O-U-H,0);var B=P*O,k=l(b,z,B,I,R,E);if(k.length){var Z={x:U,y:H,width:P,height:O},X=v(P,O),K=1/0,Q=[];Q.area=0;for(var J=0,tt=k.length;J<tt;){var q=k[J];Q.push(q),Q.area+=q.getLayout().area;var rt=d(Q,X,I.squareRatio);rt<=K?(J++,K=rt):(Q.area-=Q.pop().getLayout().area,A(Q,X,Z,G,!1),X=v(Z.width,Z.height),Q.length=Q.area=0,K=1/0)}if(Q.length&&A(Q,X,Z,G,!0),!R){var $=z.get("childrenVisibleMin");$!=null&&B<$&&(R=!0)}for(var J=0,tt=k.length;J<tt;J++)r(k[J],I,R,E+1)}}}function l(b,I,R,E,P,O){var N=b.children||[],_=E.sort;_!=="asc"&&_!=="desc"&&(_=null);var G=E.leafDepth!=null&&E.leafDepth<=O;if(P&&!G)return b.viewChildren=[];N=T.filter(N,function(z){return!z.isRemoved()}),f(N,_);var F=c(I,N,_);if(F.sum===0)return b.viewChildren=[];if(F.sum=h(I,R,F.sum,_,N),F.sum===0)return b.viewChildren=[];for(var W=0,U=N.length;W<U;W++){var H=N[W].getValue()/F.sum*R;N[W].setLayout({area:H})}return G&&(N.length&&b.setLayout({isLeafRoot:!0},!0),N.length=0),b.viewChildren=N,b.setLayout({dataExtent:F.dataExtent},!0),N}function h(b,I,R,E,P){if(!E)return R;for(var O=b.get("visibleMin"),N=P.length,_=N,G=N-1;G>=0;G--){var F=P[E==="asc"?N-G-1:G].getValue();F/R*I<O&&(_=G,R-=F)}return E==="asc"?P.splice(0,N-_):P.splice(_,N-_),R}function f(b,I){return I&&b.sort(function(R,E){var P=I==="asc"?R.getValue()-E.getValue():E.getValue()-R.getValue();return P===0?I==="asc"?R.dataIndex-E.dataIndex:E.dataIndex-R.dataIndex:P}),b}function c(b,I,R){for(var E=0,P=0,O=I.length;P<O;P++)E+=I[P].getValue();var N=b.get("visualDimension"),_;if(!I||!I.length)_=[NaN,NaN];else if(N==="value"&&R)_=[I[I.length-1].getValue(),I[0].getValue()],R==="asc"&&_.reverse();else{var _=[1/0,-1/0];s(I,function(F){var W=F.getValue(N);W<_[0]&&(_[0]=W),W>_[1]&&(_[1]=W)})}return{sum:E,dataExtent:_}}function d(b,I,R){for(var E=0,P=1/0,O=0,N,_=b.length;O<_;O++)N=b[O].getLayout().area,N&&(N<P&&(P=N),N>E&&(E=N));var G=b.area*b.area,F=I*I*R;return G?p(F*E/G,G/(F*P)):1/0}function A(b,I,R,E,P){var O=I===R.width?0:1,N=1-O,_=["x","y"],G=["width","height"],F=R[_[O]],W=I?b.area/I:0;(P||W>R[G[N]])&&(W=R[G[N]]);for(var U=0,H=b.length;U<H;U++){var z=b[U],B={},k=W?z.getLayout().area/W:0,Z=B[G[N]]=p(W-2*E,0),X=R[_[O]]+R[G[O]]-F,K=U===H-1||X<k?X:k,Q=B[G[O]]=p(K-2*E,0);B[_[N]]=R[_[N]]+v(E,Z/2),B[_[O]]=F+v(E,Q/2),F+=K,z.setLayout(B,!0)}R[_[N]]+=W,R[G[N]]-=W}function x(b,I,R,E,P){var O=(I||{}).node,N=[E,P];if(!O||O===R)return N;for(var _,G=E*P,F=G*b.option.zoomToNodeRatio;_=O.parentNode;){for(var W=0,U=_.children,H=0,z=U.length;H<z;H++)W+=U[H].getValue();var B=O.getValue();if(B===0)return N;F*=W/B;var k=_.getModel(),Z=k.get(i),X=Math.max(Z,m(k,Z));F+=4*Z*Z+(3*Z+X)*Math.pow(F,.5),F>C&&(F=C),O=_}F<G&&(F=G);var K=Math.pow(F/G,.5);return[E*K,P*K]}function y(b,I,R){if(I)return{x:I.x,y:I.y};var E={x:0,y:0};if(!R)return E;var P=R.node,O=P.getLayout();if(!O)return E;for(var N=[O.width/2,O.height/2],_=P;_;){var G=_.getLayout();N[0]+=G.x,N[1]+=G.y,_=_.parentNode}return{x:b.width/2-N[0],y:b.height/2-N[1]}}function g(b,I,R,E,P){var O=b.getLayout(),N=R[P],_=N&&N===b;if(!(N&&!_||P===R.length&&b!==E)){b.setLayout({isInView:!0,invisible:!_&&!I.intersect(O),isAboveViewRoot:_},!0);var G=new L(I.x-O.x,I.y-O.y,I.width,I.height);s(b.viewChildren||[],function(F){g(F,G,R,E,P+1)})}}function m(b){return b.get(u)?b.get(e):0}Y.exports=o},81459:function(Y,V,n){var T=n(5660),L=n(83720),M=n(69008),w=M.isArray,C="itemStyle",D={seriesType:"treemap",reset:function(e,o,r,l){var h=e.getData().tree,f=h.root,c=e.getModel(C);if(!f.isRemoved()){var d=M.map(h.levelModels,function(A){return A?A.get(C):null});S(f,{},d,c,e.getViewRoot().getAncestors(),e)}}};function S(e,o,r,l,h,f){var c=e.getModel(),d=e.getLayout();if(!(!d||d.invisible||!d.isInView)){var A=e.getModel(C),x=r[e.depth],y=p(A,o,x,l),g=A.get("borderColor"),m=A.get("borderColorSaturation"),b;m!=null&&(b=v(y,e),g=t(m,b)),e.setVisual("borderColor",g);var I=e.viewChildren;if(!I||!I.length)b=v(y,e),e.setVisual("color",b);else{var R=i(e,c,d,A,y,I);M.each(I,function(E,P){if(E.depth>=h.length||E===h[E.depth]){var O=u(c,y,E,P,R,f);S(E,O,r,l,h,f)}})}}}function p(e,o,r,l){var h=M.extend({},o);return M.each(["color","colorAlpha","colorSaturation"],function(f){var c=e.get(f,!0);c==null&&r&&(c=r[f]),c==null&&(c=o[f]),c==null&&(c=l.get(f)),c!=null&&(h[f]=c)}),h}function v(e){var o=s(e,"color");if(o){var r=s(e,"colorAlpha"),l=s(e,"colorSaturation");return l&&(o=L.modifyHSL(o,null,null,l)),r&&(o=L.modifyAlpha(o,r)),o}}function t(e,o){return o!=null?L.modifyHSL(o,null,null,e):null}function s(e,o){var r=e[o];if(r!=null&&r!=="none")return r}function i(e,o,r,l,h,f){if(!(!f||!f.length)){var c=a(o,"color")||h.color!=null&&h.color!=="none"&&(a(o,"colorAlpha")||a(o,"colorSaturation"));if(c){var d=o.get("visualMin"),A=o.get("visualMax"),x=r.dataExtent.slice();d!=null&&d<x[0]&&(x[0]=d),A!=null&&A>x[1]&&(x[1]=A);var y=o.get("colorMappingBy"),g={type:c.name,dataExtent:x,visual:c.range};g.type==="color"&&(y==="index"||y==="id")?(g.mappingMethod="category",g.loop=!0):g.mappingMethod="linear";var m=new T(g);return m.__drColorMappingBy=y,m}}}function a(e,o){var r=e.get(o);return w(r)&&r.length?{name:o,range:r}:null}function u(e,o,r,l,h,f){var c=M.extend({},o);if(h){var d=h.type,A=d==="color"&&h.__drColorMappingBy,x=A==="index"?l:A==="id"?f.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));c[d]=h.mapValueToVisual(x)}return c}Y.exports=D},2546:function(Y,V,n){n(49900),n(33e3)},2849:function(Y,V,n){n(75089),n(8698)},33e3:function(Y,V,n){var T=n(69008),L=n(18993),M=n(24040),w=n(68089),C=n(93570),D=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function S(s,i,a){i[1]>i[0]&&(i=i.slice().reverse());var u=s.coordToPoint([i[0],a]),e=s.coordToPoint([i[1],a]);return{x1:u[0],y1:u[1],x2:e[0],y2:e[1]}}function p(s){var i=s.getRadiusAxis();return i.inverse?0:1}function v(s){var i=s[0],a=s[s.length-1];i&&a&&Math.abs(Math.abs(i.coord-a.coord)-360)<1e-4&&s.pop()}var t=w.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(s,i){if(this.group.removeAll(),!!s.get("show")){var a=s.axis,u=a.polar,e=u.getRadiusAxis().getExtent(),o=a.getTicksCoords(),r=a.getMinorTicksCoords(),l=T.map(a.getViewLabels(),function(f){var f=T.clone(f);return f.coord=a.dataToCoord(f.tickValue),f});v(l),v(o),T.each(D,function(h){s.get(h+".show")&&(!a.scale.isBlank()||h==="axisLine")&&this["_"+h](s,u,o,r,e,l)},this)}},_axisLine:function(s,i,a,u,e){var o=s.getModel("axisLine.lineStyle"),r=p(i),l=r?0:1,h;e[l]===0?h=new L.Circle({shape:{cx:i.cx,cy:i.cy,r:e[r]},style:o.getLineStyle(),z2:1,silent:!0}):h=new L.Ring({shape:{cx:i.cx,cy:i.cy,r:e[r],r0:e[l]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,this.group.add(h)},_axisTick:function(s,i,a,u,e){var o=s.getModel("axisTick"),r=(o.get("inside")?-1:1)*o.get("length"),l=e[p(i)],h=T.map(a,function(f){return new L.Line({shape:S(i,[l,l+r],f.coord)})});this.group.add(L.mergePath(h,{style:T.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:s.get("axisLine.lineStyle.color")})}))},_minorTick:function(s,i,a,u,e){if(u.length){for(var o=s.getModel("axisTick"),r=s.getModel("minorTick"),l=(o.get("inside")?-1:1)*r.get("length"),h=e[p(i)],f=[],c=0;c<u.length;c++)for(var d=0;d<u[c].length;d++)f.push(new L.Line({shape:S(i,[h,h+l],u[c][d].coord)}));this.group.add(L.mergePath(f,{style:T.defaults(r.getModel("lineStyle").getLineStyle(),T.defaults(o.getLineStyle(),{stroke:s.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(s,i,a,u,e,o){var r=s.getCategories(!0),l=s.getModel("axisLabel"),h=l.get("margin"),f=s.get("triggerEvent");T.each(o,function(c,d){var A=l,x=c.tickValue,y=e[p(i)],g=i.coordToPoint([y+h,c.coord]),m=i.cx,b=i.cy,I=Math.abs(g[0]-m)/y<.3?"center":g[0]>m?"left":"right",R=Math.abs(g[1]-b)/y<.3?"middle":g[1]>b?"top":"bottom";r&&r[x]&&r[x].textStyle&&(A=new M(r[x].textStyle,l,l.ecModel));var E=new L.Text({silent:C.isLabelSilent(s)});this.group.add(E),L.setTextStyle(E.style,A,{x:g[0],y:g[1],textFill:A.getTextColor()||s.get("axisLine.lineStyle.color"),text:c.formattedLabel,textAlign:I,textVerticalAlign:R}),f&&(E.eventData=C.makeAxisEventDataBase(s),E.eventData.targetType="axisLabel",E.eventData.value=c.rawLabel)},this)},_splitLine:function(s,i,a,u,e){var o=s.getModel("splitLine"),r=o.getModel("lineStyle"),l=r.get("color"),h=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<a.length;c++){var d=h++%l.length;f[d]=f[d]||[],f[d].push(new L.Line({shape:S(i,e,a[c].coord)}))}for(var c=0;c<f.length;c++)this.group.add(L.mergePath(f[c],{style:T.defaults({stroke:l[c%l.length]},r.getLineStyle()),silent:!0,z:s.get("z")}))},_minorSplitLine:function(s,i,a,u,e){if(u.length){for(var o=s.getModel("minorSplitLine"),r=o.getModel("lineStyle"),l=[],h=0;h<u.length;h++)for(var f=0;f<u[h].length;f++)l.push(new L.Line({shape:S(i,e,u[h][f].coord)}));this.group.add(L.mergePath(l,{style:r.getLineStyle(),silent:!0,z:s.get("z")}))}},_splitArea:function(s,i,a,u,e){if(a.length){var o=s.getModel("splitArea"),r=o.getModel("areaStyle"),l=r.get("color"),h=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,d=-a[0].coord*c,A=Math.min(e[0],e[1]),x=Math.max(e[0],e[1]),y=s.get("clockwise"),g=1;g<a.length;g++){var m=h++%l.length;f[m]=f[m]||[],f[m].push(new L.Sector({shape:{cx:i.cx,cy:i.cy,r0:A,r:x,startAngle:d,endAngle:-a[g].coord*c,clockwise:y},silent:!0})),d=-a[g].coord*c}for(var g=0;g<f.length;g++)this.group.add(L.mergePath(f[g],{style:T.defaults({fill:l[g%l.length]},r.getAreaStyle()),silent:!0}))}}});Y.exports=t},93570:function(Y,V,n){var T=n(69008),L=T.retrieve,M=T.defaults,w=T.extend,C=T.each,D=n(17010),S=n(18993),p=n(24040),v=n(86957),t=v.isRadianAroundZero,s=v.remRadian,i=n(22868),a=i.createSymbol,u=n(26237),e=n(47764),o=e.applyTransform,r=n(44815),l=r.shouldShowAllLabels,h=Math.PI,f=function(_,G){this.opt=G,this.axisModel=_,M(G,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new S.Group;var F=new S.Group({position:G.position.slice(),rotation:G.rotation});F.updateTransform(),this._transform=F.transform,this._dumbGroup=F};f.prototype={constructor:f,hasBuilder:function(_){return!!c[_]},add:function(_){c[_].call(this)},getGroup:function(){return this.group}};var c={axisLine:function(){var _=this.opt,G=this.axisModel;if(G.get("axisLine.show")){var F=this.axisModel.axis.getExtent(),W=this._transform,U=[F[0],0],H=[F[1],0];W&&(o(U,U,W),o(H,H,W));var z=w({lineCap:"round"},G.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new S.Line({anid:"line",subPixelOptimize:!0,shape:{x1:U[0],y1:U[1],x2:H[0],y2:H[1]},style:z,strokeContainThreshold:_.strokeContainThreshold||5,silent:!0,z2:1}));var B=G.get("axisLine.symbol"),k=G.get("axisLine.symbolSize"),Z=G.get("axisLine.symbolOffset")||0;if(typeof Z=="number"&&(Z=[Z,Z]),B!=null){typeof B=="string"&&(B=[B,B]),(typeof k=="string"||typeof k=="number")&&(k=[k,k]);var X=k[0],K=k[1];C([{rotate:_.rotation+Math.PI/2,offset:Z[0],r:0},{rotate:_.rotation-Math.PI/2,offset:Z[1],r:Math.sqrt((U[0]-H[0])*(U[0]-H[0])+(U[1]-H[1])*(U[1]-H[1]))}],function(Q,J){if(B[J]!=="none"&&B[J]!=null){var tt=a(B[J],-X/2,-K/2,X,K,z.stroke,!0),q=Q.r+Q.offset,rt=[U[0]+q*Math.cos(_.rotation),U[1]-q*Math.sin(_.rotation)];tt.attr({rotation:Q.rotate,position:rt,silent:!0,z2:11}),this.group.add(tt)}},this)}}},axisTickLabel:function(){var _=this.axisModel,G=this.opt,F=E(this,_,G),W=O(this,_,G);g(_,W,F),P(this,_,G)},axisName:function(){var _=this.opt,G=this.axisModel,F=L(_.axisName,G.get("name"));if(F){var W=G.get("nameLocation"),U=_.nameDirection,H=G.getModel("nameTextStyle"),z=G.get("nameGap")||0,B=this.axisModel.axis.getExtent(),k=B[0]>B[1]?-1:1,Z=[W==="start"?B[0]-k*z:W==="end"?B[1]+k*z:(B[0]+B[1])/2,I(W)?_.labelOffset+U*z:0],X,K=G.get("nameRotate");K!=null&&(K=K*h/180);var Q;I(W)?X=A(_.rotation,K!=null?K:_.rotation,U):(X=x(_,W,K||0,B),Q=_.axisNameAvailableWidth,Q!=null&&(Q=Math.abs(Q/Math.sin(X.rotation)),!isFinite(Q)&&(Q=null)));var J=H.getFont(),tt=G.get("nameTruncate",!0)||{},q=tt.ellipsis,rt=L(_.nameTruncateMaxWidth,tt.maxWidth,Q),$=q!=null&&rt!=null?D.truncateText(F,rt,J,q,{minChar:2,placeholder:tt.placeholder}):F,j=G.get("tooltip",!0),st=G.mainType,ot={componentType:st,name:F,$vars:["name"]};ot[st+"Index"]=G.componentIndex;var vt=new S.Text({anid:"name",__fullText:F,__truncatedText:$,position:Z,rotation:X.rotation,silent:y(G),z2:1,tooltip:j&&j.show?w({content:F,formatter:function(){return F},formatterParams:ot},j):null});S.setTextStyle(vt.style,H,{text:$,textFont:J,textFill:H.getTextColor()||G.get("axisLine.lineStyle.color"),textAlign:H.get("align")||X.textAlign,textVerticalAlign:H.get("verticalAlign")||X.textVerticalAlign}),G.get("triggerEvent")&&(vt.eventData=d(G),vt.eventData.targetType="axisName",vt.eventData.name=F),this._dumbGroup.add(vt),vt.updateTransform(),this.group.add(vt),vt.decomposeTransform()}}},d=f.makeAxisEventDataBase=function(_){var G={componentType:_.mainType,componentIndex:_.componentIndex};return G[_.mainType+"Index"]=_.componentIndex,G},A=f.innerTextLayout=function(_,G,F){var W=s(G-_),U,H;return t(W)?(H=F>0?"top":"bottom",U="center"):t(W-h)?(H=F>0?"bottom":"top",U="center"):(H="middle",W>0&&W<h?U=F>0?"right":"left":U=F>0?"left":"right"),{rotation:W,textAlign:U,textVerticalAlign:H}};function x(_,G,F,W){var U=s(F-_.rotation),H,z,B=W[0]>W[1],k=G==="start"&&!B||G!=="start"&&B;return t(U-h/2)?(z=k?"bottom":"top",H="center"):t(U-h*1.5)?(z=k?"top":"bottom",H="center"):(z="middle",U<h*1.5&&U>h/2?H=k?"left":"right":H=k?"right":"left"),{rotation:U,textAlign:H,textVerticalAlign:z}}var y=f.isLabelSilent=function(_){var G=_.get("tooltip");return _.get("silent")||!(_.get("triggerEvent")||G&&G.show)};function g(_,G,F){if(!l(_.axis)){var W=_.get("axisLabel.showMinLabel"),U=_.get("axisLabel.showMaxLabel");G=G||[],F=F||[];var H=G[0],z=G[1],B=G[G.length-1],k=G[G.length-2],Z=F[0],X=F[1],K=F[F.length-1],Q=F[F.length-2];W===!1?(m(H),m(Z)):b(H,z)&&(W?(m(z),m(X)):(m(H),m(Z))),U===!1?(m(B),m(K)):b(k,B)&&(U?(m(k),m(Q)):(m(B),m(K)))}}function m(_){_&&(_.ignore=!0)}function b(_,G,F){var W=_&&_.getBoundingRect().clone(),U=G&&G.getBoundingRect().clone();if(!(!W||!U)){var H=u.identity([]);return u.rotate(H,H,-_.rotation),W.applyTransform(u.mul([],H,_.getLocalTransform())),U.applyTransform(u.mul([],H,G.getLocalTransform())),W.intersect(U)}}function I(_){return _==="middle"||_==="center"}function R(_,G,F,W,U){for(var H=[],z=[],B=[],k=0;k<_.length;k++){var Z=_[k].coord;z[0]=Z,z[1]=0,B[0]=Z,B[1]=F,G&&(o(z,z,G),o(B,B,G));var X=new S.Line({anid:U+"_"+_[k].tickValue,subPixelOptimize:!0,shape:{x1:z[0],y1:z[1],x2:B[0],y2:B[1]},style:W,z2:2,silent:!0});H.push(X)}return H}function E(_,G,F){var W=G.axis,U=G.getModel("axisTick");if(!(!U.get("show")||W.scale.isBlank())){for(var H=U.getModel("lineStyle"),z=F.tickDirection*U.get("length"),B=W.getTicksCoords(),k=R(B,_._transform,z,M(H.getLineStyle(),{stroke:G.get("axisLine.lineStyle.color")}),"ticks"),Z=0;Z<k.length;Z++)_.group.add(k[Z]);return k}}function P(_,G,F){var W=G.axis,U=G.getModel("minorTick");if(!(!U.get("show")||W.scale.isBlank())){var H=W.getMinorTicksCoords();if(H.length)for(var z=U.getModel("lineStyle"),B=F.tickDirection*U.get("length"),k=M(z.getLineStyle(),M(G.getModel("axisTick").getLineStyle(),{stroke:G.get("axisLine.lineStyle.color")})),Z=0;Z<H.length;Z++)for(var X=R(H[Z],_._transform,B,k,"minorticks_"+Z),K=0;K<X.length;K++)_.group.add(X[K])}}function O(_,G,F){var W=G.axis,U=L(F.axisLabelShow,G.get("axisLabel.show"));if(!(!U||W.scale.isBlank())){var H=G.getModel("axisLabel"),z=H.get("margin"),B=W.getViewLabels(),k=(L(F.labelRotate,H.get("rotate"))||0)*h/180,Z=A(F.rotation,k,F.labelDirection),X=G.getCategories&&G.getCategories(!0),K=[],Q=y(G),J=G.get("triggerEvent");return C(B,function(tt,q){var rt=tt.tickValue,$=tt.formattedLabel,j=tt.rawLabel,st=H;X&&X[rt]&&X[rt].textStyle&&(st=new p(X[rt].textStyle,H,G.ecModel));var ot=st.getTextColor()||G.get("axisLine.lineStyle.color"),vt=W.dataToCoord(rt),yt=[vt,F.labelOffset+F.labelDirection*z],it=new S.Text({anid:"label_"+rt,position:yt,rotation:Z.rotation,silent:Q,z2:10});S.setTextStyle(it.style,st,{text:$,textAlign:st.getShallow("align",!0)||Z.textAlign,textVerticalAlign:st.getShallow("verticalAlign",!0)||st.getShallow("baseline",!0)||Z.textVerticalAlign,textFill:typeof ot=="function"?ot(W.type==="category"?j:W.type==="value"?rt+"":rt,q):ot}),J&&(it.eventData=d(G),it.eventData.targetType="axisLabel",it.eventData.value=j),_._dumbGroup.add(it),it.updateTransform(),K.push(it),_.group.add(it),it.decomposeTransform()}),K}}var N=f;Y.exports=N},68089:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(9862),C=M.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,s,i,a){this.axisPointerClass&&w.fixValue(t),C.superApply(this,"render",arguments),D(this,t,s,i,a,!0)},updateAxisPointer:function(t,s,i,a,u){D(this,t,s,i,a,!1)},remove:function(t,s){var i=this._axisPointer;i&&i.remove(s),C.superApply(this,"remove",arguments)},dispose:function(t,s){S(this,s),C.superApply(this,"dispose",arguments)}});function D(t,s,i,a,u,e){var o=C.getAxisPointerClass(t.axisPointerClass);if(o){var r=w.getAxisPointerModel(s);r?(t._axisPointer||(t._axisPointer=new o)).render(s,r,a,e):S(t,a)}}function S(t,s,i){var a=t._axisPointer;a&&a.dispose(s,i),t._axisPointer=null}var p=[];C.registerAxisPointerClass=function(t,s){p[t]=s},C.getAxisPointerClass=function(t){return t&&p[t]};var v=C;Y.exports=v},8698:function(Y,V,n){var T=n(69008),L=n(18993),M=n(93570),w=n(68089),C=n(84106),D=n(46431),S=D.rectCoordAxisBuildSplitArea,p=D.rectCoordAxisHandleRemove,v=["axisLine","axisTickLabel","axisName"],t=["splitArea","splitLine","minorSplitLine"],s=w.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(i,a,u,e){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new L.Group,this.group.add(this._axisGroup),!!i.get("show")){var r=i.getCoordSysModel(),l=C.layout(r,i),h=new M(i,l);T.each(v,h.add,h),this._axisGroup.add(h.getGroup()),T.each(t,function(f){i.get(f+".show")&&this["_"+f](i,r)},this),L.groupTransition(o,this._axisGroup,i),s.superCall(this,"render",i,a,u,e)}},remove:function(){p(this)},_splitLine:function(i,a){var u=i.axis;if(!u.scale.isBlank()){var e=i.getModel("splitLine"),o=e.getModel("lineStyle"),r=o.get("color");r=T.isArray(r)?r:[r];for(var l=a.coordinateSystem.getRect(),h=u.isHorizontal(),f=0,c=u.getTicksCoords({tickModel:e}),d=[],A=[],x=o.getLineStyle(),y=0;y<c.length;y++){var g=u.toGlobalCoord(c[y].coord);h?(d[0]=g,d[1]=l.y,A[0]=g,A[1]=l.y+l.height):(d[0]=l.x,d[1]=g,A[0]=l.x+l.width,A[1]=g);var m=f++%r.length,b=c[y].tickValue;this._axisGroup.add(new L.Line({anid:b!=null?"line_"+c[y].tickValue:null,subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:A[0],y2:A[1]},style:T.defaults({stroke:r[m]},x),silent:!0}))}}},_minorSplitLine:function(i,a){var u=i.axis,e=i.getModel("minorSplitLine"),o=e.getModel("lineStyle"),r=a.coordinateSystem.getRect(),l=u.isHorizontal(),h=u.getMinorTicksCoords();if(h.length)for(var f=[],c=[],d=o.getLineStyle(),A=0;A<h.length;A++)for(var x=0;x<h[A].length;x++){var y=u.toGlobalCoord(h[A][x].coord);l?(f[0]=y,f[1]=r.y,c[0]=y,c[1]=r.y+r.height):(f[0]=r.x,f[1]=y,c[0]=r.x+r.width,c[1]=y),this._axisGroup.add(new L.Line({anid:"minor_line_"+h[A][x].tickValue,subPixelOptimize:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:d,silent:!0}))}},_splitArea:function(i,a){S(this,this._axisGroup,i,a)}});s.extend({type:"xAxis"}),s.extend({type:"yAxis"})},69385:function(Y,V,n){var T=n(3096),L=n(69008),M=n(93570),w=n(7430),C=n(20691),D=n(18993),S=["axisLine","axisTickLabel","axisName"],p=T.extendComponentView({type:"parallelAxis",init:function(a,u){p.superApply(this,"init",arguments),(this._brushController=new w(u.getZr())).on("brush",L.bind(this._onBrush,this))},render:function(a,u,e,o){if(!v(a,u,o)){this.axisModel=a,this.api=e,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new D.Group,this.group.add(this._axisGroup),!!a.get("show")){var l=s(a,u),h=l.coordinateSystem,f=a.getAreaSelectStyle(),c=f.width,d=a.axis.dim,A=h.getAxisLayout(d),x=L.extend({strokeContainThreshold:c},A),y=new M(a,x);L.each(S,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(x,f,a,l,c,e);var g=o&&o.animation===!1?null:a;D.groupTransition(r,this._axisGroup,g)}}},_refreshBrushController:function(a,u,e,o,r,l){var h=e.axis.getExtent(),f=h[1]-h[0],c=Math.min(30,Math.abs(f)*.1),d=D.BoundingRect.create({x:h[0],y:-r/2,width:f,height:r});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:a.rotation,position:a.position}).setPanels([{panelId:"pl",clipPath:C.makeRectPanelClipPath(d),isTargetByCursor:C.makeRectIsTargetByCursor(d,l,o),getLinearBrushOtherExtent:C.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:u,removeOnClick:!0}).updateCovers(t(e))},_onBrush:function(a,u){var e=this.axisModel,o=e.axis,r=L.map(a,function(l){return[o.coordToData(l.range[0],!0),o.coordToData(l.range[1],!0)]});(!e.option.realtime===u.isEnd||u.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:e.id,intervals:r})},dispose:function(){this._brushController.dispose()}});function v(a,u,e){return e&&e.type==="axisAreaSelect"&&u.findComponents({mainType:"parallelAxis",query:e})[0]===a}function t(a){var u=a.axis;return L.map(a.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[u.dataToCoord(e[0],!0),u.dataToCoord(e[1],!0)]}})}function s(a,u){return u.getComponent("parallel",a.get("parallelIndex"))}var i=p;Y.exports=i},53099:function(Y,V,n){var T=n(69008),L=n(18993),M=n(93570),w=n(68089),C=["axisLine","axisTickLabel","axisName"],D=["splitLine","splitArea","minorSplitLine"],S=w.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(v,t){if(this.group.removeAll(),!!v.get("show")){var s=v.axis,i=s.polar,a=i.getAngleAxis(),u=s.getTicksCoords(),e=s.getMinorTicksCoords(),o=a.getExtent()[0],r=s.getExtent(),l=p(i,v,o),h=new M(v,l);T.each(C,h.add,h),this.group.add(h.getGroup()),T.each(D,function(f){v.get(f+".show")&&!s.scale.isBlank()&&this["_"+f](v,i,o,r,u,e)},this)}},_splitLine:function(v,t,s,i,a){var u=v.getModel("splitLine"),e=u.getModel("lineStyle"),o=e.get("color"),r=0;o=o instanceof Array?o:[o];for(var l=[],h=0;h<a.length;h++){var f=r++%o.length;l[f]=l[f]||[],l[f].push(new L.Circle({shape:{cx:t.cx,cy:t.cy,r:a[h].coord}}))}for(var h=0;h<l.length;h++)this.group.add(L.mergePath(l[h],{style:T.defaults({stroke:o[h%o.length],fill:null},e.getLineStyle()),silent:!0}))},_minorSplitLine:function(v,t,s,i,a,u){if(u.length){for(var e=v.getModel("minorSplitLine"),o=e.getModel("lineStyle"),r=[],l=0;l<u.length;l++)for(var h=0;h<u[l].length;h++)r.push(new L.Circle({shape:{cx:t.cx,cy:t.cy,r:u[l][h].coord}}));this.group.add(L.mergePath(r,{style:T.defaults({fill:null},o.getLineStyle()),silent:!0}))}},_splitArea:function(v,t,s,i,a){if(a.length){var u=v.getModel("splitArea"),e=u.getModel("areaStyle"),o=e.get("color"),r=0;o=o instanceof Array?o:[o];for(var l=[],h=a[0].coord,f=1;f<a.length;f++){var c=r++%o.length;l[c]=l[c]||[],l[c].push(new L.Sector({shape:{cx:t.cx,cy:t.cy,r0:h,r:a[f].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=a[f].coord}for(var f=0;f<l.length;f++)this.group.add(L.mergePath(l[f],{style:T.defaults({fill:o[f%o.length]},e.getAreaStyle()),silent:!0}))}}});function p(v,t,s){return{position:[v.cx,v.cy],rotation:s/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}Y.exports=S},27404:function(Y,V,n){var T=n(69008),L=n(93570),M=n(18993),w=n(76203),C=n(68089),D=n(46431),S=D.rectCoordAxisBuildSplitArea,p=D.rectCoordAxisHandleRemove,v=["axisLine","axisTickLabel","axisName"],t=["splitArea","splitLine"],s=C.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(a,u,e,o){var r=this.group;r.removeAll();var l=this._axisGroup;this._axisGroup=new M.Group;var h=w.layout(a),f=new L(a,h);T.each(v,f.add,f),r.add(this._axisGroup),r.add(f.getGroup()),T.each(t,function(c){a.get(c+".show")&&this["_"+c](a)},this),M.groupTransition(l,this._axisGroup,a),s.superCall(this,"render",a,u,e,o)},remove:function(){p(this)},_splitLine:function(a){var u=a.axis;if(!u.scale.isBlank()){var e=a.getModel("splitLine"),o=e.getModel("lineStyle"),r=o.get("width"),l=o.get("color");l=l instanceof Array?l:[l];for(var h=a.coordinateSystem.getRect(),f=u.isHorizontal(),c=[],d=0,A=u.getTicksCoords({tickModel:e}),x=[],y=[],g=0;g<A.length;++g){var m=u.toGlobalCoord(A[g].coord);f?(x[0]=m,x[1]=h.y,y[0]=m,y[1]=h.y+h.height):(x[0]=h.x,x[1]=m,y[0]=h.x+h.width,y[1]=m);var b=d++%l.length;c[b]=c[b]||[],c[b].push(new M.Line({subPixelOptimize:!0,shape:{x1:x[0],y1:x[1],x2:y[0],y2:y[1]},style:{lineWidth:r},silent:!0}))}for(var g=0;g<c.length;++g)this.group.add(M.mergePath(c[g],{style:{stroke:l[g%l.length],lineDash:o.getLineDash(r),lineWidth:r},silent:!0}))}},_splitArea:function(a){S(this,this._axisGroup,a,a)}}),i=s;Y.exports=i},46431:function(Y,V,n){var T=n(69008),L=n(18993);function M(C,D,S,p){var v=S.axis;if(!v.scale.isBlank()){var t=S.getModel("splitArea"),s=t.getModel("areaStyle"),i=s.get("color"),a=p.coordinateSystem.getRect(),u=v.getTicksCoords({tickModel:t,clamp:!0});if(u.length){var e=i.length,o=C.__splitAreaColors,r=T.createHashMap(),l=0;if(o)for(var h=0;h<u.length;h++){var f=o.get(u[h].tickValue);if(f!=null){l=(f+(e-1)*h)%e;break}}var c=v.toGlobalCoord(u[0].coord),d=s.getAreaStyle();i=T.isArray(i)?i:[i];for(var h=1;h<u.length;h++){var A=v.toGlobalCoord(u[h].coord),x,y,g,m;v.isHorizontal()?(x=c,y=a.y,g=A-x,m=a.height,c=x+g):(x=a.x,y=c,g=a.width,m=A-y,c=y+m);var b=u[h-1].tickValue;b!=null&&r.set(b,l),D.add(new L.Rect({anid:b!=null?"area_"+b:null,shape:{x,y,width:g,height:m},style:T.defaults({fill:i[l]},d),silent:!0})),l=(l+1)%e}C.__splitAreaColors=r}}}function w(C){C.__splitAreaColors=null}V.rectCoordAxisBuildSplitArea=M,V.rectCoordAxisHandleRemove=w},91872:function(Y,V,n){var T=n(3096),L={type:"axisAreaSelect",event:"axisAreaSelected"};T.registerAction(L,function(M,w){w.eachComponent({mainType:"parallelAxis",query:M},function(C){C.axis.model.setActiveIntervals(M.intervals)})}),T.registerAction("parallelAxisExpand",function(M,w){w.eachComponent({mainType:"parallel",query:M},function(C){C.setAxisExpand(M)})})},84159:function(Y,V,n){var T=n(3096),L=n(69008),M=n(9862),w=n(15110);n(31475),n(80634),n(77318),T.registerPreprocessor(function(C){if(C){(!C.axisPointer||C.axisPointer.length===0)&&(C.axisPointer={});var D=C.axisPointer.link;D&&!L.isArray(D)&&(C.axisPointer.link=[D])}}),T.registerProcessor(T.PRIORITY.PROCESSOR.STATISTIC,function(C,D){C.getComponent("axisPointer").coordSysAxesInfo=M.collect(C,D)}),T.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},w)},31475:function(Y,V,n){var T=n(3096),L=T.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},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}}}),M=L;Y.exports=M},80634:function(Y,V,n){var T=n(3096),L=n(46243),M=T.extendComponentView({type:"axisPointer",render:function(C,D,S){var p=D.getComponent("tooltip"),v=C.get("triggerOn")||p&&p.get("triggerOn")||"mousemove|click";L.register("axisPointer",S,function(t,s,i){v!=="none"&&(t==="leave"||v.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:s&&s.offsetX,y:s&&s.offsetY})})},remove:function(C,D){L.unregister(D.getZr(),"axisPointer"),M.superApply(this._model,"remove",arguments)},dispose:function(C,D){L.unregister("axisPointer",D),M.superApply(this._model,"dispose",arguments)}}),w=M;Y.exports=w},37874:function(Y,V,n){var T=n(69008),L=n(77305),M=n(18993),w=n(9862),C=n(92462),D=n(83209),S=n(90830),p=S.makeInner,v=p(),t=T.clone,s=T.bind;function i(){}i.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(h,f,c,d){var A=f.get("value"),x=f.get("status");if(this._axisModel=h,this._axisPointerModel=f,this._api=c,!(!d&&this._lastValue===A&&this._lastStatus===x)){this._lastValue=A,this._lastStatus=x;var y=this._group,g=this._handle;if(!x||x==="hide"){y&&y.hide(),g&&g.hide();return}y&&y.show(),g&&g.show();var m={};this.makeElOption(m,A,h,f,c);var b=m.graphicKey;b!==this._lastGraphicKey&&this.clear(c),this._lastGraphicKey=b;var I=this._moveAnimation=this.determineAnimation(h,f);if(!y)y=this._group=new M.Group,this.createPointerEl(y,m,h,f),this.createLabelEl(y,m,h,f),c.getZr().add(y);else{var R=T.curry(a,f,I);this.updatePointerEl(y,m,R,f),this.updateLabelEl(y,m,R,f)}r(y,f,!0),this._renderHandle(A)}},remove:function(h){this.clear(h)},dispose:function(h){this.clear(h)},determineAnimation:function(h,f){var c=f.get("animation"),d=h.axis,A=d.type==="category",x=f.get("snap");if(!x&&!A)return!1;if(c==="auto"||c==null){var y=this.animationThreshold;if(A&&d.getBandWidth()>y)return!0;if(x){var g=w.getAxisInfo(h).seriesDataCount,m=d.getExtent();return Math.abs(m[0]-m[1])/g>y}return!1}return c===!0},makeElOption:function(h,f,c,d,A){},createPointerEl:function(h,f,c,d){var A=f.pointer;if(A){var x=v(h).pointerEl=new M[A.type](t(f.pointer));h.add(x)}},createLabelEl:function(h,f,c,d){if(f.label){var A=v(h).labelEl=new M.Rect(t(f.label));h.add(A),e(A,d)}},updatePointerEl:function(h,f,c){var d=v(h).pointerEl;d&&f.pointer&&(d.setStyle(f.pointer.style),c(d,{shape:f.pointer.shape}))},updateLabelEl:function(h,f,c,d){var A=v(h).labelEl;A&&(A.setStyle(f.label.style),c(A,{shape:f.label.shape,position:f.label.position}),e(A,d))},_renderHandle:function(h){if(!(this._dragging||!this.updateHandleTransform)){var f=this._axisPointerModel,c=this._api.getZr(),d=this._handle,A=f.getModel("handle"),x=f.get("status");if(!A.get("show")||!x||x==="hide"){d&&c.remove(d),this._handle=null;return}var y;this._handle||(y=!0,d=this._handle=M.createIcon(A.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(b){C.stop(b.event)},onmousedown:s(this._onHandleDragMove,this,0,0),drift:s(this._onHandleDragMove,this),ondragend:s(this._onHandleDragEnd,this)}),c.add(d)),r(d,f,!1);var g=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];d.setStyle(A.getItemStyle(null,g));var m=A.get("size");T.isArray(m)||(m=[m,m]),d.attr("scale",[m[0]/2,m[1]/2]),D.createOrUpdate(this,"_doDispatchAxisPointer",A.get("throttle")||0,"fixRate"),this._moveHandleToValue(h,y)}},_moveHandleToValue:function(h,f){a(this._axisPointerModel,!f&&this._moveAnimation,this._handle,o(this.getHandleTransform(h,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(h,f){var c=this._handle;if(c){this._dragging=!0;var d=this.updateHandleTransform(o(c),[h,f],this._axisModel,this._axisPointerModel);this._payloadInfo=d,c.stopAnimation(),c.attr(o(d)),v(c).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var h=this._handle;if(h){var f=this._payloadInfo,c=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:f.cursorPoint[0],y:f.cursorPoint[1],tooltipOption:f.tooltipOption,axesInfo:[{axisDim:c.axis.dim,axisIndex:c.componentIndex}]})}},_onHandleDragEnd:function(h){this._dragging=!1;var f=this._handle;if(f){var c=this._axisPointerModel.get("value");this._moveHandleToValue(c),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(h){this._lastValue=null,this._lastStatus=null;var f=h.getZr(),c=this._group,d=this._handle;f&&c&&(this._lastGraphicKey=null,c&&f.remove(c),d&&f.remove(d),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(h,f,c){return c=c||0,{x:h[c],y:h[1-c],width:f[c],height:f[1-c]}}},i.prototype.constructor=i;function a(h,f,c,d){u(v(c).lastProp,d)||(v(c).lastProp=d,f?M.updateProps(c,d,h):(c.stopAnimation(),c.attr(d)))}function u(h,f){if(T.isObject(h)&&T.isObject(f)){var c=!0;return T.each(f,function(d,A){c=c&&u(h[A],d)}),!!c}else return h===f}function e(h,f){h[f.get("label.show")?"show":"hide"]()}function o(h){return{position:h.position.slice(),rotation:h.rotation||0}}function r(h,f,c){var d=f.get("z"),A=f.get("zlevel");h&&h.traverse(function(x){x.type!=="group"&&(d!=null&&(x.z=d),A!=null&&(x.zlevel=A),x.silent=c)})}L.enableClassExtend(i);var l=i;Y.exports=l},77318:function(Y,V,n){var T=n(37874),L=n(23263),M=n(84106),w=n(68089),C=T.extend({makeElOption:function(t,s,i,a,u){var e=i.axis,o=e.grid,r=a.get("type"),l=D(o,e).getOtherAxis(e).getGlobalExtent(),h=e.toGlobalCoord(e.dataToCoord(s,!0));if(r&&r!=="none"){var f=L.buildElStyle(a),c=S[r](e,h,l);c.style=f,t.graphicKey=c.type,t.pointer=c}var d=M.layout(o.model,i);L.buildCartesianSingleLabelElOption(s,t,d,i,a,u)},getHandleTransform:function(t,s,i){var a=M.layout(s.axis.grid.model,s,{labelInside:!1});return a.labelMargin=i.get("handle.margin"),{position:L.getTransformedPosition(s.axis,t,a),rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,s,i,a){var u=i.axis,e=u.grid,o=u.getGlobalExtent(!0),r=D(e,u).getOtherAxis(u).getGlobalExtent(),l=u.dim==="x"?0:1,h=t.position;h[l]+=s[l],h[l]=Math.min(o[1],h[l]),h[l]=Math.max(o[0],h[l]);var f=(r[1]+r[0])/2,c=[f,f];c[l]=h[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{position:h,rotation:t.rotation,cursorPoint:c,tooltipOption:d[l]}}});function D(t,s){var i={};return i[s.dim+"AxisIndex"]=s.index,t.getCartesian(i)}var S={line:function(t,s,i){var a=L.makeLineShape([s,i[0]],[s,i[1]],p(t));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(t,s,i){var a=Math.max(1,t.getBandWidth()),u=i[1]-i[0];return{type:"Rect",shape:L.makeRectShape([s-a/2,i[0]],[a,u],p(t))}}};function p(t){return t.dim==="x"?0:1}w.registerAxisPointerClass("CartesianAxisPointer",C);var v=C;Y.exports=v},32641:function(Y,V,n){var T=n(17010),L=n(37874),M=n(18993),w=n(23263),C=n(26237),D=n(93570),S=n(68089),p=L.extend({makeElOption:function(i,a,u,e,o){var r=u.axis;r.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=r.polar,h=l.getOtherAxis(r),f=h.getExtent(),c;c=r["dataTo"+T.capitalFirst(r.dim)](a);var d=e.get("type");if(d&&d!=="none"){var A=w.buildElStyle(e),x=t[d](r,l,c,f,A);x.style=A,i.graphicKey=x.type,i.pointer=x}var y=e.get("label.margin"),g=v(a,u,e,l,y);w.buildLabelElOption(i,u,e,o,g)}});function v(i,a,u,e,o){var r=a.axis,l=r.dataToCoord(i),h=e.getAngleAxis().getExtent()[0];h=h/180*Math.PI;var f=e.getRadiusAxis().getExtent(),c,d,A;if(r.dim==="radius"){var x=C.create();C.rotate(x,x,h),C.translate(x,x,[e.cx,e.cy]),c=M.applyTransform([l,-o],x);var y=a.getModel("axisLabel").get("rotate")||0,g=D.innerTextLayout(h,y*Math.PI/180,-1);d=g.textAlign,A=g.textVerticalAlign}else{var m=f[1];c=e.coordToPoint([m+o,l]);var b=e.cx,I=e.cy;d=Math.abs(c[0]-b)/m<.3?"center":c[0]>b?"left":"right",A=Math.abs(c[1]-I)/m<.3?"middle":c[1]>I?"top":"bottom"}return{position:c,align:d,verticalAlign:A}}var t={line:function(i,a,u,e,o){return i.dim==="angle"?{type:"Line",shape:w.makeLineShape(a.coordToPoint([e[0],u]),a.coordToPoint([e[1],u]))}:{type:"Circle",shape:{cx:a.cx,cy:a.cy,r:u}}},shadow:function(i,a,u,e,o){var r=Math.max(1,i.getBandWidth()),l=Math.PI/180;return i.dim==="angle"?{type:"Sector",shape:w.makeSectorShape(a.cx,a.cy,e[0],e[1],(-u-r/2)*l,(-u+r/2)*l)}:{type:"Sector",shape:w.makeSectorShape(a.cx,a.cy,u-r/2,u+r/2,0,Math.PI*2)}}};S.registerAxisPointerClass("PolarAxisPointer",p);var s=p;Y.exports=s},9242:function(Y,V,n){var T=n(37874),L=n(23263),M=n(76203),w=n(68089),C=["x","y"],D=["width","height"],S=T.extend({makeElOption:function(i,a,u,e,o){var r=u.axis,l=r.coordinateSystem,h=t(l,1-v(r)),f=l.dataToPoint(a)[0],c=e.get("type");if(c&&c!=="none"){var d=L.buildElStyle(e),A=p[c](r,f,h);A.style=d,i.graphicKey=A.type,i.pointer=A}var x=M.layout(u);L.buildCartesianSingleLabelElOption(a,i,x,u,e,o)},getHandleTransform:function(i,a,u){var e=M.layout(a,{labelInside:!1});return e.labelMargin=u.get("handle.margin"),{position:L.getTransformedPosition(a.axis,i,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(i,a,u,e){var o=u.axis,r=o.coordinateSystem,l=v(o),h=t(r,l),f=i.position;f[l]+=a[l],f[l]=Math.min(h[1],f[l]),f[l]=Math.max(h[0],f[l]);var c=t(r,1-l),d=(c[1]+c[0])/2,A=[d,d];return A[l]=f[l],{position:f,rotation:i.rotation,cursorPoint:A,tooltipOption:{verticalAlign:"middle"}}}}),p={line:function(i,a,u){var e=L.makeLineShape([a,u[0]],[a,u[1]],v(i));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(i,a,u){var e=i.getBandWidth(),o=u[1]-u[0];return{type:"Rect",shape:L.makeRectShape([a-e/2,u[0]],[e,o],v(i))}}};function v(i){return i.isHorizontal()?0:1}function t(i,a){var u=i.getRect();return[u[C[a]],u[C[a]]+u[D[a]]]}w.registerAxisPointerClass("SingleAxisPointer",S);var s=S;Y.exports=s},15110:function(Y,V,n){var T=n(69008),L=n(90830),M=L.makeInner,w=n(9862),C=n(65881),D=T.each,S=T.curry,p=M();function v(f,c,d){var A=f.currTrigger,x=[f.x,f.y],y=f,g=f.dispatchAction||T.bind(d.dispatchAction,d),m=c.getComponent("axisPointer").coordSysAxesInfo;if(m){h(x)&&(x=C({seriesIndex:y.seriesIndex,dataIndex:y.dataIndex},c).point);var b=h(x),I=y.axesInfo,R=m.axesInfo,E=A==="leave"||h(x),P={},O={},N={list:[],map:{}},_={showPointer:S(i,O),showTooltip:S(a,N)};D(m.coordSysMap,function(F,W){var U=b||F.containPoint(x);D(m.coordSysAxesInfo[W],function(H,z){var B=H.axis,k=r(I,H);if(!E&&U&&(!I||k)){var Z=k&&k.value;Z==null&&!b&&(Z=B.pointToData(x)),Z!=null&&t(H,Z,_,!1,P)}})});var G={};return D(R,function(F,W){var U=F.linkGroup;U&&!O[W]&&D(U.axesInfo,function(H,z){var B=O[z];if(H!==F&&B){var k=B.value;U.mapper&&(k=F.axis.scale.parse(U.mapper(k,l(H),l(F)))),G[F.key]=k}})}),D(G,function(F,W){t(R[W],F,_,!0,P)}),u(O,R,P),e(N,x,f,g),o(R,g,d),P}}function t(f,c,d,A,x){var y=f.axis;if(!(y.scale.isBlank()||!y.containData(c))){if(!f.involveSeries){d.showPointer(f,c);return}var g=s(c,f),m=g.payloadBatch,b=g.snapToValue;m[0]&&x.seriesIndex==null&&T.extend(x,m[0]),!A&&f.snap&&y.containData(b)&&b!=null&&(c=b),d.showPointer(f,c,m,x),d.showTooltip(f,g,b)}}function s(f,c){var d=c.axis,A=d.dim,x=f,y=[],g=Number.MAX_VALUE,m=-1;return D(c.seriesModels,function(b,I){var R=b.getData().mapDimension(A,!0),E,P;if(b.getAxisTooltipData){var O=b.getAxisTooltipData(R,f,d);P=O.dataIndices,E=O.nestestValue}else{if(P=b.getData().indicesOfNearest(R[0],f,d.type==="category"?.5:null),!P.length)return;E=b.getData().get(R[0],P[0])}if(!(E==null||!isFinite(E))){var N=f-E,_=Math.abs(N);_<=g&&((_<g||N>=0&&m<0)&&(g=_,m=N,x=E,y.length=0),D(P,function(G){y.push({seriesIndex:b.seriesIndex,dataIndexInside:G,dataIndex:b.getData().getRawIndex(G)})}))}}),{payloadBatch:y,snapToValue:x}}function i(f,c,d,A){f[c.key]={value:d,payloadBatch:A}}function a(f,c,d,A){var x=d.payloadBatch,y=c.axis,g=y.model,m=c.axisPointerModel;if(!(!c.triggerTooltip||!x.length)){var b=c.coordSys.model,I=w.makeKey(b),R=f.map[I];R||(R=f.map[I]={coordSysId:b.id,coordSysIndex:b.componentIndex,coordSysType:b.type,coordSysMainType:b.mainType,dataByAxis:[]},f.list.push(R)),R.dataByAxis.push({axisDim:y.dim,axisIndex:g.componentIndex,axisType:g.type,axisId:g.id,value:A,valueLabelOpt:{precision:m.get("label.precision"),formatter:m.get("label.formatter")},seriesDataIndices:x.slice()})}}function u(f,c,d){var A=d.axesInfo=[];D(c,function(x,y){var g=x.axisPointerModel.option,m=f[y];m?(!x.useHandle&&(g.status="show"),g.value=m.value,g.seriesDataIndices=(m.payloadBatch||[]).slice()):!x.useHandle&&(g.status="hide"),g.status==="show"&&A.push({axisDim:x.axis.dim,axisIndex:x.axis.model.componentIndex,value:g.value})})}function e(f,c,d,A){if(h(c)||!f.list.length){A({type:"hideTip"});return}var x=((f.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};A({type:"showTip",escapeConnect:!0,x:c[0],y:c[1],tooltipOption:d.tooltipOption,position:d.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:f.list})}function o(f,c,d){var A=d.getZr(),x="axisPointerLastHighlights",y=p(A)[x]||{},g=p(A)[x]={};D(f,function(I,R){var E=I.axisPointerModel.option;E.status==="show"&&D(E.seriesDataIndices,function(P){var O=P.seriesIndex+" | "+P.dataIndex;g[O]=P})});var m=[],b=[];T.each(y,function(I,R){!g[R]&&b.push(I)}),T.each(g,function(I,R){!y[R]&&m.push(I)}),b.length&&d.dispatchAction({type:"downplay",escapeConnect:!0,batch:b}),m.length&&d.dispatchAction({type:"highlight",escapeConnect:!0,batch:m})}function r(f,c){for(var d=0;d<(f||[]).length;d++){var A=f[d];if(c.axis.dim===A.axisDim&&c.axis.model.componentIndex===A.axisIndex)return A}}function l(f){var c=f.axis.model,d={},A=d.axisDim=f.axis.dim;return d.axisIndex=d[A+"AxisIndex"]=c.componentIndex,d.axisName=d[A+"AxisName"]=c.name,d.axisId=d[A+"AxisId"]=c.id,d}function h(f){return!f||f[0]==null||isNaN(f[0])||f[1]==null||isNaN(f[1])}Y.exports=v},65881:function(Y,V,n){var T=n(69008),L=n(90830);function M(w,C){var D=[],S=w.seriesIndex,p;if(S==null||!(p=C.getSeriesByIndex(S)))return{point:[]};var v=p.getData(),t=L.queryDataIndex(v,w);if(t==null||t<0||T.isArray(t))return{point:[]};var s=v.getItemGraphicEl(t),i=p.coordinateSystem;if(p.getTooltipPosition)D=p.getTooltipPosition(t)||[];else if(i&&i.dataToPoint)D=i.dataToPoint(v.getValues(T.map(i.dimensions,function(u){return v.mapDimension(u)}),t,!0))||[];else if(s){var a=s.getBoundingRect().clone();a.applyTransform(s.transform),D=[a.x+a.width/2,a.y+a.height/2]}return{point:D,el:s}}Y.exports=M},46243:function(Y,V,n){var T=n(69008),L=n(12973),M=n(90830),w=M.makeInner,C=w(),D=T.each;function S(u,e,o){if(!L.node){var r=e.getZr();C(r).records||(C(r).records={}),p(r,e);var l=C(r).records[u]||(C(r).records[u]={});l.handler=o}}function p(u,e){if(C(u).initialized)return;C(u).initialized=!0,o("click",T.curry(s,"click")),o("mousemove",T.curry(s,"mousemove")),o("globalout",t);function o(r,l){u.on(r,function(h){var f=i(e);D(C(u).records,function(c){c&&l(c,h,f.dispatchAction)}),v(f.pendings,e)})}}function v(u,e){var o=u.showTip.length,r=u.hideTip.length,l;o?l=u.showTip[o-1]:r&&(l=u.hideTip[r-1]),l&&(l.dispatchAction=null,e.dispatchAction(l))}function t(u,e,o){u.handler("leave",null,o)}function s(u,e,o,r){e.handler(u,o,r)}function i(u){var e={showTip:[],hideTip:[]},o=function(r){var l=e[r.type];l?l.push(r):(r.dispatchAction=o,u.dispatchAction(r))};return{dispatchAction:o,pendings:e}}function a(u,e){if(!L.node){var o=e.getZr(),r=(C(o).records||{})[u];r&&(C(o).records[u]=null)}}V.register=S,V.unregister=a},9862:function(Y,V,n){var T=n(69008),L=n(24040),M=T.each,w=T.curry;function C(o,r){var l={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return D(l,o,r),l.seriesInvolved&&p(l,o),l}function D(o,r,l){var h=r.getComponent("tooltip"),f=r.getComponent("axisPointer"),c=f.get("link",!0)||[],d=[];M(l.getCoordinateSystems(),function(A){if(!A.axisPointerEnabled)return;var x=e(A.model),y=o.coordSysAxesInfo[x]={};o.coordSysMap[x]=A;var g=A.model,m=g.getModel("tooltip",h);if(M(A.getAxes(),w(E,!1,null)),A.getTooltipAxes&&h&&m.get("show")){var b=m.get("trigger")==="axis",I=m.get("axisPointer.type")==="cross",R=A.getTooltipAxes(m.get("axisPointer.axis"));(b||I)&&M(R.baseAxes,w(E,I?"cross":!0,b)),I&&M(R.otherAxes,w(E,"cross",!1))}function E(P,O,N){var _=N.model.getModel("axisPointer",f),G=_.get("show");if(!(!G||G==="auto"&&!P&&!u(_))){O==null&&(O=_.get("triggerTooltip")),_=P?S(N,m,f,r,P,O):_;var F=_.get("snap"),W=e(N.model),U=O||F||N.type==="category",H=o.axesInfo[W]={key:W,axis:N,coordSys:A,axisPointerModel:_,triggerTooltip:O,involveSeries:U,snap:F,useHandle:u(_),seriesModels:[]};y[W]=H,o.seriesInvolved|=U;var z=v(c,N);if(z!=null){var B=d[z]||(d[z]={axesInfo:{}});B.axesInfo[W]=H,B.mapper=c[z].mapper,H.linkGroup=B}}}})}function S(o,r,l,h,f,c){var d=r.getModel("axisPointer"),A={};M(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(m){A[m]=T.clone(d.get(m))}),A.snap=o.type!=="category"&&!!c,d.get("type")==="cross"&&(A.type="line");var x=A.label||(A.label={});if(x.show==null&&(x.show=!1),f==="cross"){var y=d.get("label.show");if(x.show=y!=null?y:!0,!c){var g=A.lineStyle=d.get("crossStyle");g&&T.defaults(x,g.textStyle)}}return o.model.getModel("axisPointer",new L(A,l,h))}function p(o,r){r.eachSeries(function(l){var h=l.coordinateSystem,f=l.get("tooltip.trigger",!0),c=l.get("tooltip.show",!0);!h||f==="none"||f===!1||f==="item"||c===!1||l.get("axisPointer.show",!0)===!1||M(o.coordSysAxesInfo[e(h.model)],function(d){var A=d.axis;h.getAxis(A.dim)===A&&(d.seriesModels.push(l),d.seriesDataCount==null&&(d.seriesDataCount=0),d.seriesDataCount+=l.getData().count())})},this)}function v(o,r){for(var l=r.model,h=r.dim,f=0;f<o.length;f++){var c=o[f]||{};if(t(c[h+"AxisId"],l.id)||t(c[h+"AxisIndex"],l.componentIndex)||t(c[h+"AxisName"],l.name))return f}}function t(o,r){return o==="all"||T.isArray(o)&&T.indexOf(o,r)>=0||o===r}function s(o){var r=i(o);if(r){var l=r.axisPointerModel,h=r.axis.scale,f=l.option,c=l.get("status"),d=l.get("value");d!=null&&(d=h.parse(d));var A=u(l);c==null&&(f.status=A?"show":"hide");var x=h.getExtent().slice();x[0]>x[1]&&x.reverse(),(d==null||d>x[1])&&(d=x[1]),d<x[0]&&(d=x[0]),f.value=d,A&&(f.status=r.axis.scale.isBlank()?"hide":"show")}}function i(o){var r=(o.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return r&&r.axesInfo[e(o)]}function a(o){var r=i(o);return r&&r.axisPointerModel}function u(o){return!!o.get("handle.show")}function e(o){return o.type+"||"+o.id}V.collect=C,V.fixValue=s,V.getAxisInfo=i,V.getAxisPointerModel=a,V.makeKey=e},23263:function(Y,V,n){var T=n(69008),L=n(18993),M=n(63603),w=n(17010),C=n(26237),D=n(44815),S=n(93570);function p(r){var l=r.get("type"),h=r.getModel(l+"Style"),f;return l==="line"?(f=h.getLineStyle(),f.fill=null):l==="shadow"&&(f=h.getAreaStyle(),f.stroke=null),f}function v(r,l,h,f,c){var d=h.get("value"),A=s(d,l.axis,l.ecModel,h.get("seriesDataIndices"),{precision:h.get("label.precision"),formatter:h.get("label.formatter")}),x=h.getModel("label"),y=w.normalizeCssArray(x.get("padding")||0),g=x.getFont(),m=M.getBoundingRect(A,g),b=c.position,I=m.width+y[1]+y[3],R=m.height+y[0]+y[2],E=c.align;E==="right"&&(b[0]-=I),E==="center"&&(b[0]-=I/2);var P=c.verticalAlign;P==="bottom"&&(b[1]-=R),P==="middle"&&(b[1]-=R/2),t(b,I,R,f);var O=x.get("backgroundColor");(!O||O==="auto")&&(O=l.get("axisLine.lineStyle.color")),r.label={shape:{x:0,y:0,width:I,height:R,r:x.get("borderRadius")},position:b.slice(),style:{text:A,textFont:g,textFill:x.getTextColor(),textPosition:"inside",textPadding:y,fill:O,stroke:x.get("borderColor")||"transparent",lineWidth:x.get("borderWidth")||0,shadowBlur:x.get("shadowBlur"),shadowColor:x.get("shadowColor"),shadowOffsetX:x.get("shadowOffsetX"),shadowOffsetY:x.get("shadowOffsetY")},z2:10}}function t(r,l,h,f){var c=f.getWidth(),d=f.getHeight();r[0]=Math.min(r[0]+l,c)-l,r[1]=Math.min(r[1]+h,d)-h,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function s(r,l,h,f,c){r=l.scale.parse(r);var d=l.scale.getLabel(r,{precision:c.precision}),A=c.formatter;if(A){var x={value:D.getAxisRawValue(l,r),axisDimension:l.dim,axisIndex:l.index,seriesData:[]};T.each(f,function(y){var g=h.getSeriesByIndex(y.seriesIndex),m=y.dataIndexInside,b=g&&g.getDataParams(m);b&&x.seriesData.push(b)}),T.isString(A)?d=A.replace("{value}",d):T.isFunction(A)&&(d=A(x))}return d}function i(r,l,h){var f=C.create();return C.rotate(f,f,h.rotation),C.translate(f,f,h.position),L.applyTransform([r.dataToCoord(l),(h.labelOffset||0)+(h.labelDirection||1)*(h.labelMargin||0)],f)}function a(r,l,h,f,c,d){var A=S.innerTextLayout(h.rotation,0,h.labelDirection);h.labelMargin=c.get("label.margin"),v(l,f,c,d,{position:i(f.axis,r,h),align:A.textAlign,verticalAlign:A.textVerticalAlign})}function u(r,l,h){return h=h||0,{x1:r[h],y1:r[1-h],x2:l[h],y2:l[1-h]}}function e(r,l,h){return h=h||0,{x:r[h],y:r[1-h],width:l[h],height:l[1-h]}}function o(r,l,h,f,c,d){return{cx:r,cy:l,r0:h,r:f,startAngle:c,endAngle:d,clockwise:!0}}V.buildElStyle=p,V.buildLabelElOption=v,V.getValueLabel=s,V.getTransformedPosition=i,V.buildCartesianSingleLabelElOption=a,V.makeLineShape=u,V.makeRectShape=e,V.makeSectorShape=o},73546:function(Y,V,n){var T=n(3096),L=n(56311);n(65789),n(89844),n(95984),n(45613),n(85738),T.registerPreprocessor(L)},89844:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(75986),D=n(24040),S=["#ddd"],p=M.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(s,i){var a=this.option;!i&&C.replaceVisualOption(a,s,["inBrush","outOfBrush"]);var u=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:S},u.hasOwnProperty("liftZ")||(u.liftZ=5)},setAreas:function(s){s&&(this.areas=w.map(s,function(i){return v(this.option,i)},this))},setBrushOption:function(s){this.brushOption=v(this.option,s),this.brushType=this.brushOption.brushType}});function v(s,i){return w.merge({brushType:s.brushType,brushMode:s.brushMode,transformable:s.transformable,brushStyle:new D(s.brushStyle).getItemStyle(),removeOnClick:s.removeOnClick,z:s.z},i,!0)}var t=p;Y.exports=t},95984:function(Y,V,n){var T=n(3096),L=n(69008),M=n(7430),w=n(65789),C=w.layoutCovers,D=T.extendComponentView({type:"brush",init:function(p,v){this.ecModel=p,this.api=v,this.model,(this._brushController=new M(v.getZr())).on("brush",L.bind(this._onBrush,this)).mount()},render:function(p){return this.model=p,S.apply(this,arguments)},updateTransform:function(p,v){return C(v),S.apply(this,arguments)},updateView:S,dispose:function(){this._brushController.dispose()},_onBrush:function(p,v){var t=this.model.id;this.model.brushTargetManager.setOutputRanges(p,this.ecModel),(!v.isEnd||v.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:L.clone(p),$from:t}),v.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:L.clone(p),$from:t})}});function S(p,v,t,s){(!s||s.$from!==p.id)&&this._brushController.setPanels(p.brushTargetManager.makePanelOpts(t)).enableBrush(p.brushOption).updateCovers(p.areas.slice())}Y.exports=D},45613:function(Y,V,n){var T=n(3096);T.registerAction({type:"brush",event:"brush"},function(L,M){M.eachComponent({mainType:"brush",query:L},function(w){w.setAreas(L.areas)})}),T.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),T.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},56311:function(Y,V,n){var T=n(69008),L=["rect","polygon","keep","clear"];function M(C,D){var S=C&&C.brush;if(T.isArray(S)||(S=S?[S]:[]),!!S.length){var p=[];T.each(S,function(a){var u=a.hasOwnProperty("toolbox")?a.toolbox:[];u instanceof Array&&(p=p.concat(u))});var v=C&&C.toolbox;T.isArray(v)&&(v=v[0]),v||(v={feature:{}},C.toolbox=[v]);var t=v.feature||(v.feature={}),s=t.brush||(t.brush={}),i=s.type||(s.type=[]);i.push.apply(i,p),w(i),D&&!i.length&&i.push.apply(i,L)}}function w(C){var D={};T.each(C,function(S){D[S]=1}),C.length=0,T.each(D,function(S,p){C.push(p)})}Y.exports=M},11031:function(Y,V,n){var T=n(59049),L=n(9806),M=n(18993),w=M.linePolygonIntersect,C={lineX:D(0),lineY:D(1),rect:{point:function(v,t,s){return v&&s.boundingRect.contain(v[0],v[1])},rect:function(v,t,s){return v&&s.boundingRect.intersect(v)}},polygon:{point:function(v,t,s){return v&&s.boundingRect.contain(v[0],v[1])&&T.contain(s.range,v[0],v[1])},rect:function(v,t,s){var i=s.range;if(!v||i.length<=1)return!1;var a=v.x,u=v.y,e=v.width,o=v.height,r=i[0];if(T.contain(i,a,u)||T.contain(i,a+e,u)||T.contain(i,a,u+o)||T.contain(i,a+e,u+o)||L.create(v).contain(r[0],r[1])||w(a,u,a+e,u,i)||w(a,u,a,u+o,i)||w(a+e,u,a+e,u+o,i)||w(a,u+o,a+e,u+o,i))return!0}}};function D(v){var t=["x","y"],s=["width","height"];return{point:function(i,a,u){if(i){var e=u.range,o=i[v];return S(o,e)}},rect:function(i,a,u){if(i){var e=u.range,o=[i[t[v]],i[t[v]]+i[s[v]]];return o[1]<o[0]&&o.reverse(),S(o[0],e)||S(o[1],e)||S(e[0],o)||S(e[1],o)}}}}function S(v,t){return t[0]<=v&&v<=t[1]}var p=C;Y.exports=p},65789:function(Y,V,n){var T=n(3096),L=n(69008),M=n(9806),w=n(75986),C=n(11031),D=n(83209),S=n(98582),p=["inBrush","outOfBrush"],v="__ecBrushSelect",t="__ecInBrushSelectEvent",s=T.PRIORITY.VISUAL.BRUSH;T.registerLayout(s,function(c,d,A){c.eachComponent({mainType:"brush"},function(x){A&&A.type==="takeGlobalCursor"&&x.setBrushOption(A.key==="brush"?A.brushOption:{brushType:!1})}),i(c)});function i(c){c.eachComponent({mainType:"brush"},function(d){var A=d.brushTargetManager=new S(d.option,c);A.setInputRanges(d.areas,c)})}T.registerVisual(s,function(c,d,A){var x=[],y,g;c.eachComponent({mainType:"brush"},function(m,b){var I={brushId:m.id,brushIndex:b,brushName:m.name,areas:L.clone(m.areas),selected:[]};x.push(I);var R=m.option,E=R.brushLink,P=[],O=[],N=[],_=0;b||(y=R.throttleType,g=R.throttleDelay);var G=L.map(m.areas,function(B){return l(L.defaults({boundingRect:h[B.brushType](B)},B))}),F=w.createVisualMappings(m.option,p,function(B){B.mappingMethod="fixed"});L.isArray(E)&&L.each(E,function(B){P[B]=1});function W(B){return E==="all"||P[B]}function U(B){return!!B.length}c.eachSeries(function(B,k){var Z=N[k]=[];B.subType==="parallel"?H(B,k,Z):z(B,k,Z)});function H(B,k){var Z=B.coordinateSystem;_|=Z.hasAxisBrushed(),W(k)&&Z.eachActiveState(B.getData(),function(X,K){X==="active"&&(O[K]=1)})}function z(B,k,Z){var X=o(B);if(!(!X||r(m,k))&&(L.each(G,function(Q){X[Q.brushType]&&m.brushTargetManager.controlSeries(Q,B,c)&&Z.push(Q),_|=U(Z)}),W(k)&&U(Z))){var K=B.getData();K.each(function(Q){e(X,Z,K,Q)&&(O[Q]=1)})}}c.eachSeries(function(B,k){var Z={seriesId:B.id,seriesIndex:k,seriesName:B.name,dataIndex:[]};I.selected.push(Z);var X=o(B),K=N[k],Q=B.getData(),J=W(k)?function(tt){return O[tt]?(Z.dataIndex.push(Q.getRawIndex(tt)),"inBrush"):"outOfBrush"}:function(tt){return e(X,K,Q,tt)?(Z.dataIndex.push(Q.getRawIndex(tt)),"inBrush"):"outOfBrush"};(W(k)?_:U(K))&&w.applyVisual(p,F,Q,J)})}),a(d,y,g,x,A)});function a(c,d,A,x,y){if(y){var g=c.getZr();if(!g[t]){g[v]||(g[v]=u);var m=D.createOrUpdate(g,v,A,d);m(c,x)}}}function u(c,d){if(!c.isDisposed()){var A=c.getZr();A[t]=!0,c.dispatchAction({type:"brushSelect",batch:d}),A[t]=!1}}function e(c,d,A,x){for(var y=0,g=d.length;y<g;y++){var m=d[y];if(c[m.brushType](x,A,m.selectors,m))return!0}}function o(c){var d=c.brushSelector;if(L.isString(d)){var A=[];return L.each(C,function(y,g){A[g]=function(m,b,I,R){var E=b.getItemLayout(m);return y[d](E,I,R)}}),A}else if(L.isFunction(d)){var x={};return L.each(C,function(y,g){x[g]=d}),x}return d}function r(c,d){var A=c.option.seriesIndex;return A!=null&&A!=="all"&&(L.isArray(A)?L.indexOf(A,d)<0:d!==A)}function l(c){var d=c.selectors={};return L.each(C[c.brushType],function(A,x){d[x]=function(y){return A(y,d,c)}}),c}var h={lineX:L.noop,lineY:L.noop,rect:function(c){return f(c.range)},polygon:function(c){for(var d,A=c.range,x=0,y=A.length;x<y;x++){d=d||[[1/0,-1/0],[1/0,-1/0]];var g=A[x];g[0]<d[0][0]&&(d[0][0]=g[0]),g[0]>d[0][1]&&(d[0][1]=g[0]),g[1]<d[1][0]&&(d[1][0]=g[1]),g[1]>d[1][1]&&(d[1][1]=g[1])}return d&&f(d)}};function f(c){return new M(c[0][0],c[1][0],c[0][1]-c[0][0],c[1][1]-c[1][0])}V.layoutCovers=i},11550:function(Y,V,n){n(29933),n(66619),n(62336)},62336:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993),w=n(17010),C=n(86957),D={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},S={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},p=T.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(v,t,s){var i=this.group;i.removeAll();var a=v.coordinateSystem,u=a.getRangeInfo(),e=a.getOrient();this._renderDayRect(v,u,i),this._renderLines(v,u,e,i),this._renderYearText(v,u,e,i),this._renderMonthText(v,e,i),this._renderWeekText(v,u,e,i)},_renderDayRect:function(v,t,s){for(var i=v.coordinateSystem,a=v.getModel("itemStyle").getItemStyle(),u=i.getCellWidth(),e=i.getCellHeight(),o=t.start.time;o<=t.end.time;o=i.getNextNDay(o,1).time){var r=i.dataToRect([o],!1).tl,l=new M.Rect({shape:{x:r[0],y:r[1],width:u,height:e},cursor:"default",style:a});s.add(l)}},_renderLines:function(v,t,s,i){var a=this,u=v.coordinateSystem,e=v.getModel("splitLine.lineStyle").getLineStyle(),o=v.get("splitLine.show"),r=e.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,h=0;l.time<=t.end.time;h++){c(l.formatedDate),h===0&&(l=u.getDateInfo(t.start.y+"-"+t.start.m));var f=l.date;f.setMonth(f.getMonth()+1),l=u.getDateInfo(f)}c(u.getNextNDay(t.end.time,1).formatedDate);function c(d){a._firstDayOfMonth.push(u.getDateInfo(d)),a._firstDayPoints.push(u.dataToRect([d],!1).tl);var A=a._getLinePointsOfOneWeek(v,d,s);a._tlpoints.push(A[0]),a._blpoints.push(A[A.length-1]),o&&a._drawSplitline(A,e,i)}o&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,r,s),e,i),o&&this._drawSplitline(a._getEdgesPoints(a._blpoints,r,s),e,i)},_getEdgesPoints:function(v,t,s){var i=[v[0].slice(),v[v.length-1].slice()],a=s==="horizontal"?0:1;return i[0][a]=i[0][a]-t/2,i[1][a]=i[1][a]+t/2,i},_drawSplitline:function(v,t,s){var i=new M.Polyline({z2:20,shape:{points:v},style:t});s.add(i)},_getLinePointsOfOneWeek:function(v,t,s){var i=v.coordinateSystem;t=i.getDateInfo(t);for(var a=[],u=0;u<7;u++){var e=i.getNextNDay(t.time,u),o=i.dataToRect([e.time],!1);a[2*e.day]=o.tl,a[2*e.day+1]=o[s==="horizontal"?"bl":"tr"]}return a},_formatterLabel:function(v,t){return typeof v=="string"&&v?w.formatTplSimple(v,t):typeof v=="function"?v(t):t.nameMap},_yearTextPositionControl:function(v,t,s,i,a){t=t.slice();var u=["center","bottom"];i==="bottom"?(t[1]+=a,u=["center","top"]):i==="left"?t[0]-=a:i==="right"?(t[0]+=a,u=["center","top"]):t[1]-=a;var e=0;return(i==="left"||i==="right")&&(e=Math.PI/2),{rotation:e,position:t,style:{textAlign:u[0],textVerticalAlign:u[1]}}},_renderYearText:function(v,t,s,i){var a=v.getModel("yearLabel");if(a.get("show")){var u=a.get("margin"),e=a.get("position");e||(e=s!=="horizontal"?"top":"left");var o=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],r=(o[0][0]+o[1][0])/2,l=(o[0][1]+o[1][1])/2,h=s==="horizontal"?0:1,f={top:[r,o[h][1]],bottom:[r,o[1-h][1]],left:[o[1-h][0],l],right:[o[h][0],l]},c=t.start.y;+t.end.y>+t.start.y&&(c=c+"-"+t.end.y);var d=a.get("formatter"),A={start:t.start.y,end:t.end.y,nameMap:c},x=this._formatterLabel(d,A),y=new M.Text({z2:30});M.setTextStyle(y.style,a,{text:x}),y.attr(this._yearTextPositionControl(y,f[e],s,e,u)),i.add(y)}},_monthTextPositionControl:function(v,t,s,i,a){var u="left",e="top",o=v[0],r=v[1];return s==="horizontal"?(r=r+a,t&&(u="center"),i==="start"&&(e="bottom")):(o=o+a,t&&(e="middle"),i==="start"&&(u="right")),{x:o,y:r,textAlign:u,textVerticalAlign:e}},_renderMonthText:function(v,t,s){var i=v.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),u=i.get("margin"),e=i.get("position"),o=i.get("align"),r=[this._tlpoints,this._blpoints];L.isString(a)&&(a=D[a.toUpperCase()]||[]);var l=e==="start"?0:1,h=t==="horizontal"?0:1;u=e==="start"?-u:u;for(var f=o==="center",c=0;c<r[l].length-1;c++){var d=r[l][c].slice(),A=this._firstDayOfMonth[c];if(f){var x=this._firstDayPoints[c];d[h]=(x[h]+r[0][c+1][h])/2}var y=i.get("formatter"),g=a[+A.m-1],m={yyyy:A.y,yy:(A.y+"").slice(2),MM:A.m,M:+A.m,nameMap:g},b=this._formatterLabel(y,m),I=new M.Text({z2:30});L.extend(M.setTextStyle(I.style,i,{text:b}),this._monthTextPositionControl(d,f,t,e,u)),s.add(I)}}},_weekTextPositionControl:function(v,t,s,i,a){var u="center",e="middle",o=v[0],r=v[1],l=s==="start";return t==="horizontal"?(o=o+i+(l?1:-1)*a[0]/2,u=l?"right":"left"):(r=r+i+(l?1:-1)*a[1]/2,e=l?"bottom":"top"),{x:o,y:r,textAlign:u,textVerticalAlign:e}},_renderWeekText:function(v,t,s,i){var a=v.getModel("dayLabel");if(a.get("show")){var u=v.coordinateSystem,e=a.get("position"),o=a.get("nameMap"),r=a.get("margin"),l=u.getFirstDayOfWeek();L.isString(o)&&(o=S[o.toUpperCase()]||[]);var h=u.getNextNDay(t.end.time,7-t.lweek).time,f=[u.getCellWidth(),u.getCellHeight()];r=C.parsePercent(r,f[s==="horizontal"?0:1]),e==="start"&&(h=u.getNextNDay(t.start.time,-(7+t.fweek)).time,r=-r);for(var c=0;c<7;c++){var d=u.getNextNDay(h,c),A=u.dataToRect([d.time],!1).center,x=c;x=Math.abs((c+l)%7);var y=new M.Text({z2:30});L.extend(M.setTextStyle(y.style,a,{text:o[x]}),this._weekTextPositionControl(A,s,e,r,f)),i.add(y)}}}});Y.exports=p},32922:function(Y,V,n){n(18427),n(48328)},53126:function(Y,V,n){var T=n(69008),L=n(86957),M=n(14531),w=n(98810),C=T.each,D=L.asc,S=function(a,u,e,o){this._dimName=a,this._axisIndex=u,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=o,this._dataZoomModel=e};S.prototype={constructor:S,hostedBy:function(a){return this._dataZoomModel===a},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var a=[],u=this.ecModel;return u.eachSeries(function(e){if(M.isCoordSupported(e.get("coordinateSystem"))){var o=this._dimName,r=u.queryComponents({mainType:o+"Axis",index:e.get(o+"AxisIndex"),id:e.get(o+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&a.push(e)}},this),a},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var a=this._dimName,u=this.ecModel,e=this.getAxisModel(),o=a==="x"||a==="y",r,l;o?(l="gridIndex",r=a==="x"?"y":"x"):(l="polarIndex",r=a==="angle"?"radius":"angle");var h;return u.eachComponent(r+"Axis",function(f){(f.get(l)||0)===(e.get(l)||0)&&(h=f)}),h},getMinMaxSpan:function(){return T.clone(this._minMaxSpan)},calculateDataWindow:function(a){var u=this._dataExtent,e=this.getAxisModel(),o=e.axis.scale,r=this._dataZoomModel.getRangePropMode(),l=[0,100],h=[],f=[],c;C(["start","end"],function(x,y){var g=a[x],m=a[x+"Value"];r[y]==="percent"?(g==null&&(g=l[y]),m=o.parse(L.linearMap(g,l,u))):(c=!0,m=m==null?u[y]:o.parse(m),g=L.linearMap(m,u,l)),f[y]=m,h[y]=g}),D(f),D(h);var d=this._minMaxSpan;c?A(f,h,u,l,!1):A(h,f,l,u,!0);function A(x,y,g,m,b){var I=b?"Span":"ValueSpan";w(0,x,g,"all",d["min"+I],d["max"+I]);for(var R=0;R<2;R++)y[R]=L.linearMap(x[R],g,m,!0),b&&(y[R]=o.parse(y[R]))}return{valueWindow:f,percentWindow:h}},reset:function(a){if(a===this._dataZoomModel){var u=this.getTargetSeriesModels();this._dataExtent=p(this,this._dimName,u),s(this);var e=this.calculateDataWindow(a.settledOption);this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,t(this)}},restore:function(a){a===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,t(this,!0))},filterData:function(a,u){if(a!==this._dataZoomModel)return;var e=this._dimName,o=this.getTargetSeriesModels(),r=a.get("filterMode"),l=this._valueWindow;if(r==="none")return;C(o,function(f){var c=f.getData(),d=c.mapDimension(e,!0);d.length&&(r==="weakFilter"?c.filterSelf(function(A){for(var x,y,g,m=0;m<d.length;m++){var b=c.get(d[m],A),I=!isNaN(b),R=b<l[0],E=b>l[1];if(I&&!R&&!E)return!0;I&&(g=!0),R&&(x=!0),E&&(y=!0)}return g&&x&&y}):C(d,function(A){if(r==="empty")f.setData(c=c.map(A,function(y){return h(y)?y:NaN}));else{var x={};x[A]=l,c.selectRange(x)}}),C(d,function(A){c.setApproximateExtent(l,A)}))});function h(f){return f>=l[0]&&f<=l[1]}}};function p(a,u,e){var o=[1/0,-1/0];return C(e,function(r){var l=r.getData();l&&C(l.mapDimension(u,!0),function(h){var f=l.getApproximateExtent(h);f[0]<o[0]&&(o[0]=f[0]),f[1]>o[1]&&(o[1]=f[1])})}),o[1]<o[0]&&(o=[NaN,NaN]),v(a,o),o}function v(a,u){var e=a.getAxisModel(),o=e.getMin(!0),r=e.get("type")==="category",l=r&&e.getCategories().length;o!=null&&o!=="dataMin"&&typeof o!="function"?u[0]=o:r&&(u[0]=l>0?0:NaN);var h=e.getMax(!0);return h!=null&&h!=="dataMax"&&typeof h!="function"?u[1]=h:r&&(u[1]=l>0?l-1:NaN),e.get("scale",!0)||(u[0]>0&&(u[0]=0),u[1]<0&&(u[1]=0)),u}function t(a,u){var e=a.getAxisModel(),o=a._percentWindow,r=a._valueWindow;if(o){var l=L.getPixelPrecision(r,[0,500]);l=Math.min(l,20);var h=u||o[0]===0&&o[1]===100;e.setRange(h?null:+r[0].toFixed(l),h?null:+r[1].toFixed(l))}}function s(a){var u=a._minMaxSpan={},e=a._dataZoomModel,o=a._dataExtent;C(["min","max"],function(r){var l=e.get(r+"Span"),h=e.get(r+"ValueSpan");h!=null&&(h=a.getAxisModel().axis.scale.parse(h)),h!=null?l=L.linearMap(o[0]+h,o,[0,100],!0):l!=null&&(h=L.linearMap(l,[0,100],o,!0)-o[0]),u[r+"Span"]=l,u[r+"ValueSpan"]=h})}var i=S;Y.exports=i},69391:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(12973),D=n(90830),S=n(14531),p=n(53126),v=w.each,t=S.eachAxisDim,s=M.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,o,r){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var l=i(e);this.settledOption=l,this.mergeDefaultAndTheme(e,r),this.doInit(l)},mergeOption:function(e){var o=i(e);w.merge(this.option,e,!0),w.merge(this.settledOption,o,!0),this.doInit(o)},doInit:function(e){var o=this.option;C.canvasSupported||(o.realtime=!1),this._setDefaultThrottle(e),a(this,e);var r=this.settledOption;v([["start","startValue"],["end","endValue"]],function(l,h){this._rangePropMode[h]==="value"&&(o[l[0]]=r[l[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis(function(o,r,l,h){var f=this.dependentModels[o.axis][r],c=f.__dzAxisProxy||(f.__dzAxisProxy=new p(o.name,r,this,h));e[o.name+"_"+r]=c},this)},_resetTarget:function(){var e=this.option,o=this._judgeAutoMode();t(function(r){var l=r.axisIndex;e[l]=D.normalizeToArray(e[l])},this),o==="axisIndex"?this._autoSetAxisIndex():o==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,o=!1;t(function(l){e[l.axisIndex]!=null&&(o=!0)},this);var r=e.orient;if(r==null&&o)return"orient";if(!o)return r==null&&(e.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var e=!0,o=this.get("orient",!0),r=this.option,l=this.dependentModels;if(e){var h=o==="vertical"?"y":"x";l[h+"Axis"].length?(r[h+"AxisIndex"]=[0],e=!1):v(l.singleAxis,function(f){e&&f.get("orient",!0)===o&&(r.singleAxisIndex=[f.componentIndex],e=!1)})}e&&t(function(f){if(e){var c=[],d=this.dependentModels[f.axis];if(d.length&&!c.length)for(var A=0,x=d.length;A<x;A++)d[A].get("type")==="category"&&c.push(A);r[f.axisIndex]=c,c.length&&(e=!1)}},this),e&&this.ecModel.eachSeries(function(f){this._isSeriesHasAllAxesTypeOf(f,"value")&&t(function(c){var d=r[c.axisIndex],A=f.get(c.axisIndex),x=f.get(c.axisId),y=f.ecModel.queryComponents({mainType:c.axis,index:A,id:x})[0];A=y.componentIndex,w.indexOf(d,A)<0&&d.push(A)})},this)},_autoSetOrient:function(){var e;this.eachTargetAxis(function(o){!e&&(e=o.name)},this),this.option.orient=e==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,o){var r=!0;return t(function(l){var h=e.get(l.axisIndex),f=this.dependentModels[l.axis][h];(!f||f.get("type")!==o)&&(r=!1)},this),r},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var o=this.ecModel.option;this.option.throttle=o.animation&&o.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return t(function(o){if(e==null){var r=this.get(o.axisIndex);r.length&&(e=this.dependentModels[o.axis][r[0]])}},this),e},eachTargetAxis:function(e,o){var r=this.ecModel;t(function(l){v(this.get(l.axisIndex),function(h){e.call(o,l,h,this,r)},this)},this)},getAxisProxy:function(e,o){return this._axisProxies[e+"_"+o]},getAxisModel:function(e,o){var r=this.getAxisProxy(e,o);return r&&r.getAxisModel()},setRawRange:function(e){var o=this.option,r=this.settledOption;v([["start","startValue"],["end","endValue"]],function(l){(e[l[0]]!=null||e[l[1]]!=null)&&(o[l[0]]=r[l[0]]=e[l[0]],o[l[1]]=r[l[1]]=e[l[1]])},this),a(this,e)},setCalculatedRange:function(e){var o=this.option;v(["start","startValue","end","endValue"],function(r){o[r]=e[r]})},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,o){if(e==null&&o==null){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataValueWindow()}else return this.getAxisProxy(e,o).getDataValueWindow()},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var o=this._axisProxies;for(var r in o)if(o.hasOwnProperty(r)&&o[r].hostedBy(this))return o[r];for(var r in o)if(o.hasOwnProperty(r)&&!o[r].hostedBy(this))return o[r]},getRangePropMode:function(){return this._rangePropMode.slice()}});function i(e){var o={};return v(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(o[r]=e[r])}),o}function a(e,o){var r=e._rangePropMode,l=e.get("rangeMode");v([["start","startValue"],["end","endValue"]],function(h,f){var c=o[h[0]]!=null,d=o[h[1]]!=null;c&&!d?r[f]="percent":!c&&d?r[f]="value":l?r[f]=l[f]:c&&(r[f]="percent")})}var u=s;Y.exports=u},91615:function(Y,V,n){var T=n(36851),L=T.extend({type:"dataZoom",render:function(M,w,C,D){this.dataZoomModel=M,this.ecModel=w,this.api=C},getTargetCoordInfo:function(){var M=this.dataZoomModel,w=this.ecModel,C={};M.eachTargetAxis(function(S,p){var v=w.getComponent(S.axis,p);if(v){var t=v.getCoordSysModel();t&&D(t,v,C[t.mainType]||(C[t.mainType]=[]),t.componentIndex)}},this);function D(S,p,v,t){for(var s,i=0;i<v.length;i++)if(v[i].model===S){s=v[i];break}s||v.push(s={model:S,axisModels:[],coordIndex:t}),s.axisModels.push(p)}return C}});Y.exports=L},35187:function(Y,V,n){var T=n(69391),L=T.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});Y.exports=L},79226:function(Y,V,n){var T=n(69008),L=n(91615),M=n(98810),w=n(13185),C=T.bind,D=L.extend({type:"dataZoom.inside",init:function(s,i){this._range},render:function(s,i,a,u){D.superApply(this,"render",arguments),this._range=s.getPercentRange(),T.each(this.getTargetCoordInfo(),function(e,o){var r=T.map(e,function(l){return w.generateCoordId(l.model)});T.each(e,function(l){var h=l.model,f={};T.each(["pan","zoom","scrollMove"],function(c){f[c]=C(S[c],this,l,o)},this),w.register(a,{coordId:w.generateCoordId(h),allCoordIds:r,containsPoint:function(c,d,A){return h.coordinateSystem.containPoint([d,A])},dataZoomId:s.id,dataZoomModel:s,getRange:f})},this)},this)},dispose:function(){w.unregister(this.api,this.dataZoomModel.id),D.superApply(this,"dispose",arguments),this._range=null}}),S={zoom:function(s,i,a,u){var e=this._range,o=e.slice(),r=s.axisModels[0];if(r){var l=v[i](null,[u.originX,u.originY],r,a,s),h=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],f=Math.max(1/u.scale,0);o[0]=(o[0]-h)*f+h,o[1]=(o[1]-h)*f+h;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(M(0,o,[0,100],0,c.minSpan,c.maxSpan),this._range=o,e[0]!==o[0]||e[1]!==o[1])return o}},pan:p(function(s,i,a,u,e,o){var r=v[u]([o.oldX,o.oldY],[o.newX,o.newY],i,e,a);return r.signal*(s[1]-s[0])*r.pixel/r.pixelLength}),scrollMove:p(function(s,i,a,u,e,o){var r=v[u]([0,0],[o.scrollDelta,o.scrollDelta],i,e,a);return r.signal*(s[1]-s[0])*o.scrollDelta})};function p(s){return function(i,a,u,e){var o=this._range,r=o.slice(),l=i.axisModels[0];if(l){var h=s(r,l,i,a,u,e);if(M(h,r,[0,100],"all"),this._range=r,o[0]!==r[0]||o[1]!==r[1])return r}}}var v={grid:function(s,i,a,u,e){var o=a.axis,r={},l=e.model.coordinateSystem.getRect();return s=s||[0,0],o.dim==="x"?(r.pixel=i[0]-s[0],r.pixelLength=l.width,r.pixelStart=l.x,r.signal=o.inverse?1:-1):(r.pixel=i[1]-s[1],r.pixelLength=l.height,r.pixelStart=l.y,r.signal=o.inverse?-1:1),r},polar:function(s,i,a,u,e){var o=a.axis,r={},l=e.model.coordinateSystem,h=l.getRadiusAxis().getExtent(),f=l.getAngleAxis().getExtent();return s=s?l.pointToCoord(s):[0,0],i=l.pointToCoord(i),a.mainType==="radiusAxis"?(r.pixel=i[0]-s[0],r.pixelLength=h[1]-h[0],r.pixelStart=h[0],r.signal=o.inverse?1:-1):(r.pixel=i[1]-s[1],r.pixelLength=f[1]-f[0],r.pixelStart=f[0],r.signal=o.inverse?-1:1),r},singleAxis:function(s,i,a,u,e){var o=a.axis,r=e.model.coordinateSystem.getRect(),l={};return s=s||[0,0],o.orient==="horizontal"?(l.pixel=i[0]-s[0],l.pixelLength=r.width,l.pixelStart=r.x,l.signal=o.inverse?1:-1):(l.pixel=i[1]-s[1],l.pixelLength=r.height,l.pixelStart=r.y,l.signal=o.inverse?-1:1),l}},t=D;Y.exports=t},1445:function(Y,V,n){var T=n(69391),L=T.extend({type:"dataZoom.select"});Y.exports=L},63124:function(Y,V,n){var T=n(91615),L=T.extend({type:"dataZoom.select"});Y.exports=L},23291:function(Y,V,n){var T=n(69391),L=T.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),M=L;Y.exports=M},32079:function(Y,V,n){var T=n(69008),L=n(92462),M=n(18993),w=n(83209),C=n(91615),D=n(86957),S=n(7357),p=n(98810),v=M.Rect,t=D.linearMap,s=D.asc,i=T.bind,a=T.each,u=7,e=1,o=30,r="horizontal",l="vertical",h=5,f=["line","bar","candlestick","scatter"],c=C.extend({type:"dataZoom.slider",init:function(y,g){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=g},render:function(y,g,m,b){if(c.superApply(this,"render",arguments),w.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=y.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!b||b.type!=="dataZoom"||b.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){c.superApply(this,"remove",arguments),w.clear(this,"_dispatchZoomAction")},dispose:function(){c.superApply(this,"dispose",arguments),w.clear(this,"_dispatchZoomAction")},_buildView:function(){var y=this.group;y.removeAll(),this._resetLocation(),this._resetInterval();var g=this._displayables.barGroup=new M.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),y.add(g),this._positionGroup()},_resetLocation:function(){var y=this.dataZoomModel,g=this.api,m=this._findCoordRect(),b={width:g.getWidth(),height:g.getHeight()},I=this._orient===r?{right:b.width-m.x-m.width,top:b.height-o-u,width:m.width,height:o}:{right:u,top:m.y,width:o,height:m.height},R=S.getLayoutParams(y.option);T.each(["right","top","width","height"],function(P){R[P]==="ph"&&(R[P]=I[P])});var E=S.getLayoutRect(R,b,y.padding);this._location={x:E.x,y:E.y},this._size=[E.width,E.height],this._orient===l&&this._size.reverse()},_positionGroup:function(){var y=this.group,g=this._location,m=this._orient,b=this.dataZoomModel.getFirstTargetAxisModel(),I=b&&b.get("inverse"),R=this._displayables.barGroup,E=(this._dataShadowInfo||{}).otherAxisInverse;R.attr(m===r&&!I?{scale:E?[1,1]:[1,-1]}:m===r&&I?{scale:E?[-1,1]:[-1,-1]}:m===l&&!I?{scale:E?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:E?[-1,-1]:[-1,1],rotation:Math.PI/2});var P=y.getBoundingRect([R]);y.attr("position",[g.x-P.x,g.y-P.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var y=this.dataZoomModel,g=this._size,m=this._displayables.barGroup;m.add(new v({silent:!0,shape:{x:0,y:0,width:g[0],height:g[1]},style:{fill:y.get("backgroundColor")},z2:-40})),m.add(new v({shape:{x:0,y:0,width:g[0],height:g[1]},style:{fill:"transparent"},z2:0,onclick:T.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var y=this._dataShadowInfo=this._prepareDataShadowInfo();if(y){var g=this._size,m=y.series,b=m.getRawData(),I=m.getShadowDim?m.getShadowDim():y.otherDim;if(I!=null){var R=b.getDataExtent(I),E=(R[1]-R[0])*.3;R=[R[0]-E,R[1]+E];var P=[0,g[1]],O=[0,g[0]],N=[[g[0],0],[0,0]],_=[],G=O[1]/(b.count()-1),F=0,W=Math.round(b.count()/g[0]),U;b.each([I],function(z,B){if(W>0&&B%W){F+=G;return}var k=z==null||isNaN(z)||z==="",Z=k?0:t(z,R,P,!0);k&&!U&&B?(N.push([N[N.length-1][0],0]),_.push([_[_.length-1][0],0])):!k&&U&&(N.push([F,0]),_.push([F,0])),N.push([F,Z]),_.push([F,Z]),F+=G,U=k});var H=this.dataZoomModel;this._displayables.barGroup.add(new M.Polygon({shape:{points:N},style:T.defaults({fill:H.get("dataBackgroundColor")},H.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new M.Polyline({shape:{points:_},style:H.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var y=this.dataZoomModel,g=y.get("showDataShadow");if(g!==!1){var m,b=this.ecModel;return y.eachTargetAxis(function(I,R){var E=y.getAxisProxy(I.name,R).getTargetSeriesModels();T.each(E,function(P){if(!m&&!(g!==!0&&T.indexOf(f,P.get("type"))<0)){var O=b.getComponent(I.axis,R).axis,N=d(I.name),_,G=P.coordinateSystem;N!=null&&G.getOtherAxis&&(_=G.getOtherAxis(O).inverse),N=P.getData().mapDimension(N),m={thisAxis:O,series:P,thisDim:I.name,otherDim:N,otherAxisInverse:_}}},this)},this),m}},_renderHandle:function(){var y=this._displayables,g=y.handles=[],m=y.handleLabels=[],b=this._displayables.barGroup,I=this._size,R=this.dataZoomModel;b.add(y.filler=new v({draggable:!0,cursor:A(this._orient),drift:i(this._onDragMove,this,"all"),ondragstart:i(this._showDataInfo,this,!0),ondragend:i(this._onDragEnd,this),onmouseover:i(this._showDataInfo,this,!0),onmouseout:i(this._showDataInfo,this,!1),style:{fill:R.get("fillerColor"),textPosition:"inside"}})),b.add(new v({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{stroke:R.get("dataBackgroundColor")||R.get("borderColor"),lineWidth:e,fill:"rgba(0,0,0,0)"}})),a([0,1],function(E){var P=M.createIcon(R.get("handleIcon"),{cursor:A(this._orient),draggable:!0,drift:i(this._onDragMove,this,E),ondragend:i(this._onDragEnd,this),onmouseover:i(this._showDataInfo,this,!0),onmouseout:i(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),O=P.getBoundingRect();this._handleHeight=D.parsePercent(R.get("handleSize"),this._size[1]),this._handleWidth=O.width/O.height*this._handleHeight,P.setStyle(R.getModel("handleStyle").getItemStyle());var N=R.get("handleColor");N!=null&&(P.style.fill=N),b.add(g[E]=P);var _=R.textStyleModel;this.group.add(m[E]=new M.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:_.getTextColor(),textFont:_.getFont()},z2:10}))},this)},_resetInterval:function(){var y=this._range=this.dataZoomModel.getPercentRange(),g=this._getViewExtent();this._handleEnds=[t(y[0],[0,100],g,!0),t(y[1],[0,100],g,!0)]},_updateInterval:function(y,g){var m=this.dataZoomModel,b=this._handleEnds,I=this._getViewExtent(),R=m.findRepresentativeAxisProxy().getMinMaxSpan(),E=[0,100];p(g,b,I,m.get("zoomLock")?"all":y,R.minSpan!=null?t(R.minSpan,E,I,!0):null,R.maxSpan!=null?t(R.maxSpan,E,I,!0):null);var P=this._range,O=this._range=s([t(b[0],I,E,!0),t(b[1],I,E,!0)]);return!P||P[0]!==O[0]||P[1]!==O[1]},_updateView:function(y){var g=this._displayables,m=this._handleEnds,b=s(m.slice()),I=this._size;a([0,1],function(R){var E=g.handles[R],P=this._handleHeight;E.attr({scale:[P/2,P/2],position:[m[R],I[1]/2-P/2]})},this),g.filler.setShape({x:b[0],y:0,width:b[1]-b[0],height:I[1]}),this._updateDataInfo(y)},_updateDataInfo:function(y){var g=this.dataZoomModel,m=this._displayables,b=m.handleLabels,I=this._orient,R=["",""];if(g.get("showDetail")){var E=g.findRepresentativeAxisProxy();if(E){var P=E.getAxisModel().axis,O=this._range,N=y?E.calculateDataWindow({start:O[0],end:O[1]}).valueWindow:E.getDataValueWindow();R=[this._formatLabel(N[0],P),this._formatLabel(N[1],P)]}}var _=s(this._handleEnds.slice());G.call(this,0),G.call(this,1);function G(F){var W=M.getTransform(m.handles[F].parent,this.group),U=M.transformDirection(F===0?"right":"left",W),H=this._handleWidth/2+h,z=M.applyTransform([_[F]+(F===0?-H:H),this._size[1]/2],W);b[F].setStyle({x:z[0],y:z[1],textVerticalAlign:I===r?"middle":U,textAlign:I===r?U:"center",text:R[F]})}},_formatLabel:function(y,g){var m=this.dataZoomModel,b=m.get("labelFormatter"),I=m.get("labelPrecision");(I==null||I==="auto")&&(I=g.getPixelPrecision());var R=y==null||isNaN(y)?"":g.type==="category"||g.type==="time"?g.scale.getLabel(Math.round(y)):y.toFixed(Math.min(I,20));return T.isFunction(b)?b(y,R):T.isString(b)?b.replace("{value}",R):R},_showDataInfo:function(y){y=this._dragging||y;var g=this._displayables.handleLabels;g[0].attr("invisible",!y),g[1].attr("invisible",!y)},_onDragMove:function(y,g,m,b){this._dragging=!0,L.stop(b.event);var I=this._displayables.barGroup.getLocalTransform(),R=M.applyTransform([g,m],I,!0),E=this._updateInterval(y,R[0]),P=this.dataZoomModel.get("realtime");this._updateView(!P),E&&P&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var y=this.dataZoomModel.get("realtime");!y&&this._dispatchZoomAction()},_onClickPanelClick:function(y){var g=this._size,m=this._displayables.barGroup.transformCoordToLocal(y.offsetX,y.offsetY);if(!(m[0]<0||m[0]>g[0]||m[1]<0||m[1]>g[1])){var b=this._handleEnds,I=(b[0]+b[1])/2,R=this._updateInterval("all",m[0]-I);this._updateView(),R&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var y=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:y[0],end:y[1]})},_findCoordRect:function(){var y;if(a(this.getTargetCoordInfo(),function(b){if(!y&&b.length){var I=b[0].model.coordinateSystem;y=I.getRect&&I.getRect()}}),!y){var g=this.api.getWidth(),m=this.api.getHeight();y={x:g*.2,y:m*.2,width:g*.6,height:m*.6}}return y}});function d(y){var g={x:"y",y:"x",radius:"angle",angle:"radius"};return g[y]}function A(y){return y==="vertical"?"ns-resize":"ew-resize"}var x=c;Y.exports=x},51323:function(Y,V,n){var T=n(3096),L=n(69008),M=n(14531);T.registerAction("dataZoom",function(w,C){var D=M.createLinkedNodesFinder(L.bind(C.eachComponent,C,"dataZoom"),M.eachAxisDim,function(p,v){return p.get(v.axisIndex)}),S=[];C.eachComponent({mainType:"dataZoom",query:w},function(p,v){S.push.apply(S,D(p).nodes)}),L.each(S,function(p,v){p.setRawRange({start:w.start,end:w.end,startValue:w.startValue,endValue:w.endValue})})})},77069:function(Y,V,n){var T=n(3096),L=n(69008),M=L.createHashMap,w=L.each;T.registerProcessor({getTargetSeries:function(C){var D=M();return C.eachComponent("dataZoom",function(S){S.eachTargetAxis(function(p,v,t){var s=t.getAxisProxy(p.name,v);w(s.getTargetSeriesModels(),function(i){D.set(i.uid,i)})})}),D},modifyOutputEnd:!0,overallReset:function(C,D){C.eachComponent("dataZoom",function(S){S.eachTargetAxis(function(p,v,t){t.getAxisProxy(p.name,v).reset(t,D)}),S.eachTargetAxis(function(p,v,t){t.getAxisProxy(p.name,v).filterData(t,D)})}),C.eachComponent("dataZoom",function(S){var p=S.findRepresentativeAxisProxy(),v=p.getDataPercentWindow(),t=p.getDataValueWindow();S.setCalculatedRange({start:v[0],end:v[1],startValue:t[0],endValue:t[1]})})}})},14531:function(Y,V,n){var T=n(69008),L=n(17010),M=["x","y","z","radius","angle","single"],w=["cartesian2d","polar","singleAxis"];function C(v){return T.indexOf(w,v)>=0}function D(v,t){v=v.slice();var s=T.map(v,L.capitalFirst);t=(t||[]).slice();var i=T.map(t,L.capitalFirst);return function(a,u){T.each(v,function(e,o){for(var r={name:e,capital:s[o]},l=0;l<t.length;l++)r[t[l]]=e+i[l];a.call(u,r)})}}var S=D(M,["axisIndex","axis","index","id"]);function p(v,t,s){return function(e){var o={nodes:[],records:{}};if(t(function(h){o.records[h.name]={}}),!e)return o;u(e,o);var r;do r=!1,v(l);while(r);function l(h){!i(h,o)&&a(h,o)&&(u(h,o),r=!0)}return o};function i(e,o){return T.indexOf(o.nodes,e)>=0}function a(e,o){var r=!1;return t(function(l){T.each(s(e,l)||[],function(h){o.records[l.name][h]&&(r=!0)})}),r}function u(e,o){o.nodes.push(e),t(function(r){T.each(s(e,r)||[],function(l){o.records[r.name][l]=!0})})}}V.isCoordSupported=C,V.createNameEach=D,V.eachAxisDim=S,V.createLinkedNodesFinder=p},8338:function(Y,V,n){var T=n(69008),L=T.each,M="\0_ec_hist_store";function w(v,t){var s=p(v);L(t,function(i,a){for(var u=s.length-1;u>=0;u--){var e=s[u];if(e[a])break}if(u<0){var o=v.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(o){var r=o.getPercentRange();s[0][a]={dataZoomId:a,start:r[0],end:r[1]}}}}),s.push(t)}function C(v){var t=p(v),s=t[t.length-1];t.length>1&&t.pop();var i={};return L(s,function(a,u){for(var e=t.length-1;e>=0;e--){var a=t[e][u];if(a){i[u]=a;break}}}),i}function D(v){v[M]=null}function S(v){return p(v).length}function p(v){var t=v[M];return t||(t=v[M]=[{}]),t}V.push=w,V.pop=C,V.clear=D,V.count=S},13185:function(Y,V,n){var T=n(69008),L=n(38515),M=n(83209),w="\0_ec_dataZoom_roams";function C(a,u){var e=p(a),o=u.dataZoomId,r=u.coordId;T.each(e,function(f,c){var d=f.dataZoomInfos;d[o]&&T.indexOf(u.allCoordIds,r)<0&&(delete d[o],f.count--)}),t(e);var l=e[r];l||(l=e[r]={coordId:r,dataZoomInfos:{},count:0},l.controller=v(a,l),l.dispatchAction=T.curry(s,a)),!l.dataZoomInfos[o]&&l.count++,l.dataZoomInfos[o]=u;var h=i(l.dataZoomInfos);l.controller.enable(h.controlType,h.opt),l.controller.setPointerChecker(u.containsPoint),M.createOrUpdate(l,"dispatchAction",u.dataZoomModel.get("throttle",!0),"fixRate")}function D(a,u){var e=p(a);T.each(e,function(o){o.controller.dispose();var r=o.dataZoomInfos;r[u]&&(delete r[u],o.count--)}),t(e)}function S(a){return a.type+"\0_"+a.id}function p(a){var u=a.getZr();return u[w]||(u[w]={})}function v(a,u){var e=new L(a.getZr());return T.each(["pan","zoom","scrollMove"],function(o){e.on(o,function(r){var l=[];T.each(u.dataZoomInfos,function(h){if(r.isAvailableBehavior(h.dataZoomModel.option)){var f=(h.getRange||{})[o],c=f&&f(u.controller,r);!h.dataZoomModel.get("disabled",!0)&&c&&l.push({dataZoomId:h.dataZoomId,start:c[0],end:c[1]})}}),l.length&&u.dispatchAction(l)})}),e}function t(a){T.each(a,function(u,e){u.count||(u.controller.dispose(),delete a[e])})}function s(a,u){a.dispatchAction({type:"dataZoom",batch:u})}function i(a){var u,e="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return T.each(a,function(l){var h=l.dataZoomModel,f=h.get("disabled",!0)?!1:h.get("zoomLock",!0)?"move":!0;o[e+f]>o[e+u]&&(u=f),r&=h.get("preventDefaultMouseMove",!0)}),{controlType:u,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}V.register=C,V.unregister=D,V.generateCoordId=S},35190:function(Y,V,n){var T=n(16172);T.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},48328:function(Y,V,n){n(35190),n(69391),n(91615),n(35187),n(79226),n(77069),n(51323)},20393:function(Y,V,n){n(35190),n(69391),n(91615),n(1445),n(63124),n(77069),n(51323)},18427:function(Y,V,n){n(35190),n(69391),n(91615),n(23291),n(32079),n(77069),n(51323)},72476:function(Y,V,n){var T=n(16172),L=n(36851),M=n(67063),w=M.detectSourceFormat,C=n(8326),D=C.SERIES_LAYOUT_BY_COLUMN;T.extend({type:"dataset",defaultOption:{seriesLayoutBy:D,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){w(this)}}),L.extend({type:"dataset"})},35584:function(Y,V,n){var T=n(3096),L=n(69008);n(55550),n(91148),n(72621),n(37406);function M(w,C){C.update="updateView",T.registerAction(C,function(D,S){var p={};return S.eachComponent({mainType:"geo",query:D},function(v){v[w](D.name);var t=v.coordinateSystem;L.each(t.regions,function(s){p[s.name]=v.isSelected(s.name)||!1})}),{selected:p,name:D.name}})}M("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),M("select",{type:"geoSelect",event:"geoselected"}),M("unSelect",{type:"geoUnSelect",event:"geounselected"})},72621:function(Y,V,n){var T=n(25344),L=n(3096),M=L.extendComponentView({type:"geo",init:function(w,C){var D=new T(C,!0);this._mapDraw=D,this.group.add(D.group)},render:function(w,C,D,S){if(!(S&&S.type==="geoToggleSelect"&&S.from===this.uid)){var p=this._mapDraw;w.get("show")?p.draw(w,C,D,this,S):this._mapDraw.group.removeAll(),this.group.silent=w.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});Y.exports=M},2090:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(90830),D=n(18993),S=n(7357),p=n(86957),v=p.parsePercent,t={path:null,compoundPath:null,group:D.Group,image:D.Image,text:D.Text};M.registerPreprocessor(function(f){var c=f.graphic;w.isArray(c)?!c[0]||!c[0].elements?f.graphic=[{elements:c}]:f.graphic=[f.graphic[0]]:c&&!c.elements&&(f.graphic=[{elements:[c]}])});var s=M.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(f){var c=this.option.elements;this.option.elements=null,s.superApply(this,"mergeOption",arguments),this.option.elements=c},optionUpdated:function(f,c){var d=this.option,A=(c?d:f).elements,x=d.elements=c?[]:d.elements,y=[];this._flatten(A,y);var g=C.mappingToExists(x,y);C.makeIdAndName(g);var m=this._elOptionsToUpdate=[];w.each(g,function(I,R){var E=I.option;E&&(m.push(E),o(I,E),r(x,R,E),l(x[R],E))},this);for(var b=x.length-1;b>=0;b--)x[b]==null?x.splice(b,1):delete x[b].$action},_flatten:function(f,c,d){w.each(f,function(A){if(A){d&&(A.parentOption=d),c.push(A);var x=A.children;A.type==="group"&&x&&this._flatten(x,c,A),delete A.children}},this)},useElOptionsToUpdate:function(){var f=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,f}});M.extendComponentView({type:"graphic",init:function(f,c){this._elMap=w.createHashMap(),this._lastGraphicModel},render:function(f,c,d){f!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=f,this._updateElements(f),this._relocate(f,d)},_updateElements:function(f){var c=f.useElOptionsToUpdate();if(c){var d=this._elMap,A=this.group;w.each(c,function(x){var y=x.$action,g=x.id,m=d.get(g),b=x.parentId,I=b!=null?d.get(b):A,R=x.style;x.type==="text"&&R&&(x.hv&&x.hv[1]&&(R.textVerticalAlign=R.textBaseline=null),!R.hasOwnProperty("textFill")&&R.fill&&(R.textFill=R.fill),!R.hasOwnProperty("textStroke")&&R.stroke&&(R.textStroke=R.stroke));var E=u(x);!y||y==="merge"?m?m.attr(E):i(g,I,E,d):y==="replace"?(a(m,d),i(g,I,E,d)):y==="remove"&&a(m,d);var P=d.get(g);P&&(P.__ecGraphicWidthOption=x.width,P.__ecGraphicHeightOption=x.height,h(P,f,x))})}},_relocate:function(f,c){for(var d=f.option.elements,A=this.group,x=this._elMap,y=c.getWidth(),g=c.getHeight(),m=0;m<d.length;m++){var b=d[m],I=x.get(b.id);if(!(!I||!I.isGroup)){var R=I.parent,E=R===A;I.__ecGraphicWidth=v(I.__ecGraphicWidthOption,E?y:R.__ecGraphicWidth)||0,I.__ecGraphicHeight=v(I.__ecGraphicHeightOption,E?g:R.__ecGraphicHeight)||0}}for(var m=d.length-1;m>=0;m--){var b=d[m],I=x.get(b.id);if(I){var R=I.parent,P=R===A?{width:y,height:g}:{width:R.__ecGraphicWidth,height:R.__ecGraphicHeight};S.positionElement(I,b,P,null,{hv:b.hv,boundingMode:b.bounding})}}},_clear:function(){var f=this._elMap;f.each(function(c){a(c,f)}),this._elMap=w.createHashMap()},dispose:function(){this._clear()}});function i(f,c,d,A){var x=d.type,y=t.hasOwnProperty(x)?t[x]:D.getShapeClass(x),g=new y(d);c.add(g),A.set(f,g),g.__ecGraphicId=f}function a(f,c){var d=f&&f.parent;d&&(f.type==="group"&&f.traverse(function(A){a(A,c)}),c.removeKey(f.__ecGraphicId),d.remove(f))}function u(f){return f=w.extend({},f),w.each(["id","parentId","$action","hv","bounding"].concat(S.LOCATION_PARAMS),function(c){delete f[c]}),f}function e(f,c){var d;return w.each(c,function(A){f[A]!=null&&f[A]!=="auto"&&(d=!0)}),d}function o(f,c){var d=f.exist;if(c.id=f.keyInfo.id,!c.type&&d&&(c.type=d.type),c.parentId==null){var A=c.parentOption;A?c.parentId=A.id:d&&(c.parentId=d.parentId)}c.parentOption=null}function r(f,c,d){var A=w.extend({},d),x=f[c],y=d.$action||"merge";y==="merge"?x?(w.merge(x,A,!0),S.mergeLayoutParam(x,A,{ignoreSize:!0}),S.copyLayoutParams(d,x)):f[c]=A:y==="replace"?f[c]=A:y==="remove"&&x&&(f[c]=null)}function l(f,c){f&&(f.hv=c.hv=[e(c,["left","right"]),e(c,["top","bottom"])],f.type==="group"&&(f.width==null&&(f.width=c.width=0),f.height==null&&(f.height=c.height=0)))}function h(f,c,d){var A=f.eventData;!f.silent&&!f.ignore&&!A&&(A=f.eventData={componentType:"graphic",componentIndex:c.componentIndex,name:f.name}),A&&(A.info=f.info)}},25957:function(Y,V,n){n(47102),n(77318),n(84159)},47102:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993);n(40753),n(2849),T.extendComponentView({type:"grid",render:function(w,C){this.group.removeAll(),w.get("show")&&this.group.add(new M.Rect({shape:w.coordinateSystem.getRect(),style:L.defaults({fill:w.get("backgroundColor")},w.getItemStyle()),silent:!0,z2:-1}))}}),T.registerPreprocessor(function(w){w.xAxis&&w.yAxis&&!w.grid&&(w.grid={})})},7430:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(37283),C=n(18993),D=n(80255),S=n(82383),p=M.curry,v=M.each,t=M.map,s=Math.min,i=Math.max,a=Math.pow,u=1e4,e=6,o=6,r="globalPan",l={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},h={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},f={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},c=0;function d(et){w.call(this),this._zr=et,this.group=new C.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+c++,this._handlers={},v(yt,function(lt,ht){this._handlers[ht]=M.bind(lt,this)},this)}d.prototype={constructor:d,enableBrush:function(et){return this._brushType&&x(this),et.brushType&&A(this,et),this},setPanels:function(et){if(et&&et.length){var lt=this._panels={};M.each(et,function(ht){lt[ht.panelId]=M.clone(ht)})}else this._panels=null;return this},mount:function(et){et=et||{},this._enableGlobalPan=et.enableGlobalPan;var lt=this.group;return this._zr.add(lt),lt.attr({position:et.position||[0,0],rotation:et.rotation||0,scale:et.scale||[1,1]}),this._transform=lt.getLocalTransform(),this},eachCover:function(et,lt){v(this._covers,et,lt)},updateCovers:function(et){et=M.map(et,function(Bt){return M.merge(M.clone(f),Bt,!0)});var lt="\0-brush-index-",ht=this._covers,pt=this._covers=[],mt=this,ft=this._creatingCover;return new S(ht,et,Mt,xt).add(Pt).update(Pt).remove(Rt).execute(),this;function xt(Bt,Vt){return(Bt.id!=null?Bt.id:lt+Vt)+"-"+Bt.brushType}function Mt(Bt,Vt){return xt(Bt.__brushOption,Vt)}function Pt(Bt,Vt){var Gt=et[Bt];if(Vt!=null&&ht[Vt]===ft)pt[Bt]=ht[Vt];else{var Ft=pt[Bt]=Vt!=null?(ht[Vt].__brushOption=Gt,ht[Vt]):b(mt,m(mt,Gt));E(mt,Ft)}}function Rt(Bt){ht[Bt]!==ft&&mt.group.remove(ht[Bt])}},unmount:function(){return this.enableBrush(!1),_(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},M.mixin(d,w);function A(et,lt){var ht=et._zr;et._enableGlobalPan||D.take(ht,r,et._uid),y(ht,et._handlers),et._brushType=lt.brushType,et._brushOption=M.merge(M.clone(f),lt,!0)}function x(et){var lt=et._zr;D.release(lt,r,et._uid),g(lt,et._handlers),et._brushType=et._brushOption=null}function y(et,lt){v(lt,function(ht,pt){et.on(pt,ht)})}function g(et,lt){v(lt,function(ht,pt){et.off(pt,ht)})}function m(et,lt){var ht=gt[lt.brushType].createCover(et,lt);return ht.__brushOption=lt,R(ht,lt),et.group.add(ht),ht}function b(et,lt){var ht=P(lt);return ht.endCreating&&(ht.endCreating(et,lt),R(lt,lt.__brushOption)),lt}function I(et,lt){var ht=lt.__brushOption;P(lt).updateCoverShape(et,lt,ht.range,ht)}function R(et,lt){var ht=lt.z;ht==null&&(ht=u),et.traverse(function(pt){pt.z=ht,pt.z2=ht})}function E(et,lt){P(lt).updateCommon(et,lt),I(et,lt)}function P(et){return gt[et.__brushOption.brushType]}function O(et,lt,ht){var pt=et._panels;if(!pt)return!0;var mt,ft=et._transform;return v(pt,function(xt){xt.isTargetByCursor(lt,ht,ft)&&(mt=xt)}),mt}function N(et,lt){var ht=et._panels;if(!ht)return!0;var pt=lt.__brushOption.panelId;return pt!=null?ht[pt]:!0}function _(et){var lt=et._covers,ht=lt.length;return v(lt,function(pt){et.group.remove(pt)},et),lt.length=0,!!ht}function G(et,lt){var ht=t(et._covers,function(pt){var mt=pt.__brushOption,ft=M.clone(mt.range);return{brushType:mt.brushType,panelId:mt.panelId,range:ft}});et.trigger("brush",ht,{isEnd:!!lt.isEnd,removeOnClick:!!lt.removeOnClick})}function F(et){var lt=et._track;if(!lt.length)return!1;var ht=lt[lt.length-1],pt=lt[0],mt=ht[0]-pt[0],ft=ht[1]-pt[1],xt=a(mt*mt+ft*ft,.5);return xt>e}function W(et){var lt=et.length-1;return lt<0&&(lt=0),[et[0],et[lt]]}function U(et,lt,ht,pt){var mt=new C.Group;return mt.add(new C.Rect({name:"main",style:k(ht),silent:!0,draggable:!0,cursor:"move",drift:p(et,lt,mt,"nswe"),ondragend:p(G,lt,{isEnd:!0})})),v(pt,function(ft){mt.add(new C.Rect({name:ft,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:p(et,lt,mt,ft),ondragend:p(G,lt,{isEnd:!0})}))}),mt}function H(et,lt,ht,pt){var mt=pt.brushStyle.lineWidth||0,ft=i(mt,o),xt=ht[0][0],Mt=ht[1][0],Pt=xt-mt/2,Rt=Mt-mt/2,Bt=ht[0][1],Vt=ht[1][1],Gt=Bt-ft+mt/2,Ft=Vt-ft+mt/2,Kt=Bt-xt,Qt=Vt-Mt,_t=Kt+mt,Yt=Qt+mt;B(et,lt,"main",xt,Mt,Kt,Qt),pt.transformable&&(B(et,lt,"w",Pt,Rt,ft,Yt),B(et,lt,"e",Gt,Rt,ft,Yt),B(et,lt,"n",Pt,Rt,_t,ft),B(et,lt,"s",Pt,Ft,_t,ft),B(et,lt,"nw",Pt,Rt,ft,ft),B(et,lt,"ne",Gt,Rt,ft,ft),B(et,lt,"sw",Pt,Ft,ft,ft),B(et,lt,"se",Gt,Ft,ft,ft))}function z(et,lt){var ht=lt.__brushOption,pt=ht.transformable,mt=lt.childAt(0);mt.useStyle(k(ht)),mt.attr({silent:!pt,cursor:pt?"move":"default"}),v(["w","e","n","s","se","sw","ne","nw"],function(ft){var xt=lt.childOfName(ft),Mt=K(et,ft);xt&&xt.attr({silent:!pt,invisible:!pt,cursor:pt?h[Mt]+"-resize":null})})}function B(et,lt,ht,pt,mt,ft,xt){var Mt=lt.childOfName(ht);Mt&&Mt.setShape(rt(q(et,lt,[[pt,mt],[pt+ft,mt+xt]])))}function k(et){return M.defaults({strokeNoScale:!0},et.brushStyle)}function Z(et,lt,ht,pt){var mt=[s(et,ht),s(lt,pt)],ft=[i(et,ht),i(lt,pt)];return[[mt[0],ft[0]],[mt[1],ft[1]]]}function X(et){return C.getTransform(et.group)}function K(et,lt){if(lt.length>1){lt=lt.split("");var ht=[K(et,lt[0]),K(et,lt[1])];return(ht[0]==="e"||ht[0]==="w")&&ht.reverse(),ht.join("")}else{var pt={w:"left",e:"right",n:"top",s:"bottom"},mt={left:"w",right:"e",top:"n",bottom:"s"},ht=C.transformDirection(pt[lt],X(et));return mt[ht]}}function Q(et,lt,ht,pt,mt,ft,xt,Mt){var Pt=pt.__brushOption,Rt=et(Pt.range),Bt=tt(ht,ft,xt);v(mt.split(""),function(Vt){var Gt=l[Vt];Rt[Gt[0]][Gt[1]]+=Bt[Gt[0]]}),Pt.range=lt(Z(Rt[0][0],Rt[1][0],Rt[0][1],Rt[1][1])),E(ht,pt),G(ht,{isEnd:!1})}function J(et,lt,ht,pt,mt){var ft=lt.__brushOption.range,xt=tt(et,ht,pt);v(ft,function(Mt){Mt[0]+=xt[0],Mt[1]+=xt[1]}),E(et,lt),G(et,{isEnd:!1})}function tt(et,lt,ht){var pt=et.group,mt=pt.transformCoordToLocal(lt,ht),ft=pt.transformCoordToLocal(0,0);return[mt[0]-ft[0],mt[1]-ft[1]]}function q(et,lt,ht){var pt=N(et,lt);return pt&&pt!==!0?pt.clipPath(ht,et._transform):M.clone(ht)}function rt(et){var lt=s(et[0][0],et[1][0]),ht=s(et[0][1],et[1][1]),pt=i(et[0][0],et[1][0]),mt=i(et[0][1],et[1][1]);return{x:lt,y:ht,width:pt-lt,height:mt-ht}}function $(et,lt,ht){if(!(!et._brushType||ut(et,lt))){var pt=et._zr,mt=et._covers,ft=O(et,lt,ht);if(!et._dragging)for(var xt=0;xt<mt.length;xt++){var Mt=mt[xt].__brushOption;if(ft&&(ft===!0||Mt.panelId===ft.panelId)&&gt[Mt.brushType].contain(mt[xt],ht[0],ht[1]))return}ft&&pt.setCursorStyle("crosshair")}}function j(et){var lt=et.event;lt.preventDefault&&lt.preventDefault()}function st(et,lt,ht){return et.childOfName("main").contain(lt,ht)}function ot(et,lt,ht,pt){var mt=et._creatingCover,ft=et._creatingPanel,xt=et._brushOption,Mt;if(et._track.push(ht.slice()),F(et)||mt){if(ft&&!mt){xt.brushMode==="single"&&_(et);var Pt=M.clone(xt);Pt.brushType=vt(Pt.brushType,ft),Pt.panelId=ft===!0?null:ft.panelId,mt=et._creatingCover=m(et,Pt),et._covers.push(mt)}if(mt){var Rt=gt[vt(et._brushType,ft)],Bt=mt.__brushOption;Bt.range=Rt.getCreatingRange(q(et,mt,et._track)),pt&&(b(et,mt),Rt.updateCommon(et,mt)),I(et,mt),Mt={isEnd:pt}}}else pt&&xt.brushMode==="single"&&xt.removeOnClick&&O(et,lt,ht)&&_(et)&&(Mt={isEnd:pt,removeOnClick:!0});return Mt}function vt(et,lt){return et==="auto"?lt.defaultBrushType:et}var yt={mousedown:function(et){if(this._dragging)it(this,et);else if(!et.target||!et.target.draggable){j(et);var lt=this.group.transformCoordToLocal(et.offsetX,et.offsetY);this._creatingCover=null;var ht=this._creatingPanel=O(this,et,lt);ht&&(this._dragging=!0,this._track=[lt.slice()])}},mousemove:function(et){var lt=et.offsetX,ht=et.offsetY,pt=this.group.transformCoordToLocal(lt,ht);if($(this,et,pt),this._dragging){j(et);var mt=ot(this,et,pt,!1);mt&&G(this,mt)}},mouseup:function(et){it(this,et)}};function it(et,lt){if(et._dragging){j(lt);var ht=lt.offsetX,pt=lt.offsetY,mt=et.group.transformCoordToLocal(ht,pt),ft=ot(et,lt,mt,!0);et._dragging=!1,et._track=[],et._creatingCover=null,ft&&G(et,ft)}}function ut(et,lt,ht){var pt=et._zr;return lt<0||lt>pt.getWidth()||ht<0||ht>pt.getHeight()}var gt={lineX:Ct(0),lineY:Ct(1),rect:{createCover:function(et,lt){return U(p(Q,function(ht){return ht},function(ht){return ht}),et,lt,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(et){var lt=W(et);return Z(lt[1][0],lt[1][1],lt[0][0],lt[0][1])},updateCoverShape:function(et,lt,ht,pt){H(et,lt,ht,pt)},updateCommon:z,contain:st},polygon:{createCover:function(et,lt){var ht=new C.Group;return ht.add(new C.Polyline({name:"main",style:k(lt),silent:!0})),ht},getCreatingRange:function(et){return et},endCreating:function(et,lt){lt.remove(lt.childAt(0)),lt.add(new C.Polygon({name:"main",draggable:!0,drift:p(J,et,lt),ondragend:p(G,et,{isEnd:!0})}))},updateCoverShape:function(et,lt,ht,pt){lt.childAt(0).setShape({points:q(et,lt,ht)})},updateCommon:z,contain:st}};function Ct(et){return{createCover:function(lt,ht){return U(p(Q,function(pt){var mt=[pt,[0,100]];return et&&mt.reverse(),mt},function(pt){return pt[et]}),lt,ht,[["w","e"],["n","s"]][et])},getCreatingRange:function(lt){var ht=W(lt),pt=s(ht[0][et],ht[1][et]),mt=i(ht[0][et],ht[1][et]);return[pt,mt]},updateCoverShape:function(lt,ht,pt,mt){var ft,xt=N(lt,ht);if(xt!==!0&&xt.getLinearBrushOtherExtent)ft=xt.getLinearBrushOtherExtent(et,lt._transform);else{var Mt=lt._zr;ft=[0,[Mt.getWidth(),Mt.getHeight()][1-et]]}var Pt=[pt,ft];et&&Pt.reverse(),H(lt,ht,Pt,mt)},updateCommon:z,contain:st}}var bt=d;Y.exports=bt},98582:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(18993),C=n(90830),D=n(20691),S=M.each,p=M.indexOf,v=M.curry,t=["dataToPoint","pointToData"],s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function i(g,m,b){var I=this._targetInfoList=[],R={},E=e(m,g);S(o,function(P,O){(!b||!b.include||p(b.include,O)>=0)&&P(E,I,R)})}var a=i.prototype;a.setOutputRanges=function(g,m){this.matchOutputRanges(g,m,function(b,I,R){if((b.coordRanges||(b.coordRanges=[])).push(I),!b.coordRange){b.coordRange=I;var E=h[b.brushType](0,R,I);b.__rangeOffset={offset:c[b.brushType](E.values,b.range,[1,1]),xyMinMax:E.xyMinMax}}})},a.matchOutputRanges=function(g,m,b){S(g,function(I){var R=this.findTargetInfo(I,m);R&&R!==!0&&M.each(R.coordSyses,function(E){var P=h[I.brushType](1,E,I.range);b(I,P.values,E,m)})},this)},a.setInputRanges=function(g,m){S(g,function(b){var I=this.findTargetInfo(b,m);if(b.range=b.range||[],I&&I!==!0){b.panelId=I.panelId;var R=h[b.brushType](0,I.coordSys,b.coordRange),E=b.__rangeOffset;b.range=E?c[b.brushType](R.values,E.offset,A(R.xyMinMax,E.xyMinMax)):R.values}},this)},a.makePanelOpts=function(g,m){return M.map(this._targetInfoList,function(b){var I=b.getPanelRect();return{panelId:b.panelId,defaultBrushType:m&&m(b),clipPath:D.makeRectPanelClipPath(I),isTargetByCursor:D.makeRectIsTargetByCursor(I,g,b.coordSysModel),getLinearBrushOtherExtent:D.makeLinearBrushOtherExtent(I)}})},a.controlSeries=function(g,m,b){var I=this.findTargetInfo(g,b);return I===!0||I&&p(I.coordSyses,m.coordinateSystem)>=0},a.findTargetInfo=function(g,m){for(var b=this._targetInfoList,I=e(m,g),R=0;R<b.length;R++){var E=b[R],P=g.panelId;if(P){if(E.panelId===P)return E}else for(var R=0;R<r.length;R++)if(r[R](I,E))return E}return!0};function u(g){return g[0]>g[1]&&g.reverse(),g}function e(g,m){return C.parseFinder(g,m,{includeMainTypes:s})}var o={grid:function(g,m){var b=g.xAxisModels,I=g.yAxisModels,R=g.gridModels,E=M.createHashMap(),P={},O={};!b&&!I&&!R||(S(b,function(N){var _=N.axis.grid.model;E.set(_.id,_),P[_.id]=!0}),S(I,function(N){var _=N.axis.grid.model;E.set(_.id,_),O[_.id]=!0}),S(R,function(N){E.set(N.id,N),P[N.id]=!0,O[N.id]=!0}),E.each(function(N){var _=N.coordinateSystem,G=[];S(_.getCartesians(),function(F,W){(p(b,F.getAxis("x").model)>=0||p(I,F.getAxis("y").model)>=0)&&G.push(F)}),m.push({panelId:"grid--"+N.id,gridModel:N,coordSysModel:N,coordSys:G[0],coordSyses:G,getPanelRect:l.grid,xAxisDeclared:P[N.id],yAxisDeclared:O[N.id]})}))},geo:function(g,m){S(g.geoModels,function(b){var I=b.coordinateSystem;m.push({panelId:"geo--"+b.id,geoModel:b,coordSysModel:b,coordSys:I,coordSyses:[I],getPanelRect:l.geo})})}},r=[function(g,m){var b=g.xAxisModel,I=g.yAxisModel,R=g.gridModel;return!R&&b&&(R=b.axis.grid.model),!R&&I&&(R=I.axis.grid.model),R&&R===m.gridModel},function(g,m){var b=g.geoModel;return b&&b===m.geoModel}],l={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var g=this.coordSys,m=g.getBoundingRect().clone();return m.applyTransform(w.getTransform(g)),m}},h={lineX:v(f,0),lineY:v(f,1),rect:function(g,m,b){var I=m[t[g]]([b[0][0],b[1][0]]),R=m[t[g]]([b[0][1],b[1][1]]),E=[u([I[0],R[0]]),u([I[1],R[1]])];return{values:E,xyMinMax:E}},polygon:function(g,m,b){var I=[[1/0,-1/0],[1/0,-1/0]],R=M.map(b,function(E){var P=m[t[g]](E);return I[0][0]=Math.min(I[0][0],P[0]),I[1][0]=Math.min(I[1][0],P[1]),I[0][1]=Math.max(I[0][1],P[0]),I[1][1]=Math.max(I[1][1],P[1]),P});return{values:R,xyMinMax:I}}};function f(g,m,b,I){var R=b.getAxis(["x","y"][g]),E=u(M.map([0,1],function(O){return m?R.coordToData(R.toLocalCoord(I[O])):R.toGlobalCoord(R.dataToCoord(I[O]))})),P=[];return P[g]=E,P[1-g]=[NaN,NaN],{values:E,xyMinMax:P}}var c={lineX:v(d,0),lineY:v(d,1),rect:function(g,m,b){return[[g[0][0]-b[0]*m[0][0],g[0][1]-b[0]*m[0][1]],[g[1][0]-b[1]*m[1][0],g[1][1]-b[1]*m[1][1]]]},polygon:function(g,m,b){return M.map(g,function(I,R){return[I[0]-b[0]*m[R][0],I[1]-b[1]*m[R][1]]})}};function d(g,m,b,I){return[m[0]-I[g]*b[0],m[1]-I[g]*b[1]]}function A(g,m){var b=x(g),I=x(m),R=[b[0]/I[0],b[1]/I[1]];return isNaN(R[0])&&(R[0]=1),isNaN(R[1])&&(R[1]=1),R}function x(g){return g?[g[0][1]-g[0][0],g[1][1]-g[1][0]]:[NaN,NaN]}var y=i;Y.exports=y},25344:function(Y,V,n){var T=n(69008),L=n(38515),M=n(37419),w=n(18584),C=w.onIrrelevantElement,D=n(18993),S=n(11954),p=n(58744),v=p.getUID,t=n(74330);function s(o){var r=o.getItemStyle(),l=o.get("areaColor");return l!=null&&(r.fill=l),r}function i(o,r,l,h,f){l.off("click"),l.off("mousedown"),r.get("selectedMode")&&(l.on("mousedown",function(){o._mouseDownFlag=!0}),l.on("click",function(c){if(o._mouseDownFlag){o._mouseDownFlag=!1;for(var d=c.target;!d.__regions;)d=d.parent;if(d){var A={type:(r.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:T.map(d.__regions,function(x){return{name:x.name,from:f.uid}})};A[r.mainType+"Id"]=r.id,h.dispatchAction(A),a(r,l)}}}))}function a(o,r){r.eachChild(function(l){T.each(l.__regions,function(h){l.trigger(o.isSelected(h.name)?"emphasis":"normal")})})}function u(o,r){var l=new D.Group;this.uid=v("ec_map_draw"),this._controller=new L(o.getZr()),this._controllerHost={target:r?l:null},this.group=l,this._updateGroup=r,this._mouseDownFlag,this._mapName,this._initialized,l.add(this._regionsGroup=new D.Group),l.add(this._backgroundGroup=new D.Group)}u.prototype={constructor:u,draw:function(o,r,l,h,f){var c=o.mainType==="geo",d=o.getData&&o.getData();c&&r.eachComponent({mainType:"series",subType:"map"},function(W){!d&&W.getHostGeoModel()===o&&(d=W.getData())});var A=o.coordinateSystem;this._updateBackground(A);var x=this._regionsGroup,y=this.group,g=A.getTransformInfo(),m=!x.childAt(0)||f,b;if(m)y.transform=g.roamTransform,y.decomposeTransform(),y.dirty();else{var I=new t;I.transform=g.roamTransform,I.decomposeTransform();var R={scale:I.scale,position:I.position};b=I.scale,D.updateProps(y,R,o)}var E=g.rawScale,P=g.rawPosition;x.removeAll();var O=["itemStyle"],N=["emphasis","itemStyle"],_=["label"],G=["emphasis","label"],F=T.createHashMap();T.each(A.regions,function(W){var U=F.get(W.name)||F.set(W.name,new D.Group),H=new D.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});U.add(H);var z=o.getRegionModel(W.name)||o,B=z.getModel(O),k=z.getModel(N),Z=s(B),X=s(k),K=z.getModel(_),Q=z.getModel(G),J;if(d){J=d.indexOfName(W.name);var tt=d.getItemVisual(J,"color",!0);tt&&(Z.fill=tt)}var q=function(gt){return[gt[0]*E[0]+P[0],gt[1]*E[1]+P[1]]};T.each(W.geometries,function(gt){if(gt.type==="polygon"){for(var Ct=[],bt=0;bt<gt.exterior.length;++bt)Ct.push(q(gt.exterior[bt]));H.shape.paths.push(new D.Polygon({segmentIgnoreThreshold:1,shape:{points:Ct}}));for(var bt=0;bt<(gt.interiors?gt.interiors.length:0);++bt){for(var et=gt.interiors[bt],Ct=[],lt=0;lt<et.length;++lt)Ct.push(q(et[lt]));H.shape.paths.push(new D.Polygon({segmentIgnoreThreshold:1,shape:{points:Ct}}))}}}),H.setStyle(Z),H.style.strokeNoScale=!0,H.culling=!0;var rt=K.get("show"),$=Q.get("show"),j=d&&isNaN(d.get(d.mapDimension("value"),J)),st=d&&d.getItemLayout(J);if(c||j&&(rt||$)||st&&st.showLabel){var ot=c?W.name:J,vt;(!d||J>=0)&&(vt=o);var yt=new D.Text({position:q(W.center.slice()),scale:[1/y.scale[0],1/y.scale[1]],z2:10,silent:!0});if(D.setLabelStyle(yt.style,yt.hoverStyle={},K,Q,{labelFetcher:vt,labelDataIndex:ot,defaultText:W.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!m){var it=[1/b[0],1/b[1]];D.updateProps(yt,{scale:it},o)}U.add(yt)}if(d)d.setItemGraphicEl(J,U);else{var z=o.getRegionModel(W.name);H.eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:W.name,region:z&&z.option||{}}}var ut=U.__regions||(U.__regions=[]);ut.push(W),U.highDownSilentOnTouch=!!o.get("selectedMode"),D.setHoverStyle(U,X),x.add(U)}),this._updateController(o,r,l),i(this,o,x,l,h),a(o,x)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&S.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(o){var r=o.map;this._mapName!==r&&T.each(S.makeGraphic(r,this.uid),function(l){this._backgroundGroup.add(l)},this),this._mapName=r},_updateController:function(o,r,l){var h=o.coordinateSystem,f=this._controller,c=this._controllerHost;c.zoomLimit=o.get("scaleLimit"),c.zoom=h.getZoom(),f.enable(o.get("roam")||!1);var d=o.mainType;function A(){var x={type:"geoRoam",componentType:d};return x[d+"Id"]=o.id,x}f.off("pan").on("pan",function(x){this._mouseDownFlag=!1,M.updateViewOnPan(c,x.dx,x.dy),l.dispatchAction(T.extend(A(),{dx:x.dx,dy:x.dy}))},this),f.off("zoom").on("zoom",function(x){if(this._mouseDownFlag=!1,M.updateViewOnZoom(c,x.scale,x.originX,x.originY),l.dispatchAction(T.extend(A(),{zoom:x.scale,originX:x.originX,originY:x.originY})),this._updateGroup){var y=this.group.scale;this._regionsGroup.traverse(function(g){g.type==="text"&&g.attr("scale",[1/y[0],1/y[1]])})}},this),f.setPointerChecker(function(x,y,g){return h.getViewRectAfterRoam().contain(y,g)&&!C(x,l,o)})}};var e=u;Y.exports=e},38515:function(Y,V,n){var T=n(69008),L=n(37283),M=n(92462),w=n(80255);function C(e){this.pointerChecker,this._zr=e,this._opt={};var o=T.bind,r=o(D,this),l=o(S,this),h=o(p,this),f=o(v,this),c=o(t,this);L.call(this),this.setPointerChecker=function(d){this.pointerChecker=d},this.enable=function(d,A){this.disable(),this._opt=T.defaults(T.clone(A)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),d==null&&(d=!0),(d===!0||d==="move"||d==="pan")&&(e.on("mousedown",r),e.on("mousemove",l),e.on("mouseup",h)),(d===!0||d==="scale"||d==="zoom")&&(e.on("mousewheel",f),e.on("pinch",c))},this.disable=function(){e.off("mousedown",r),e.off("mousemove",l),e.off("mouseup",h),e.off("mousewheel",f),e.off("pinch",c)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}T.mixin(C,L);function D(e){if(!(M.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)){var o=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,o,r)&&(this._x=o,this._y=r,this._dragging=!0)}}function S(e){if(!(!this._dragging||!a("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||w.isTaken(this._zr,"globalPan"))){var o=e.offsetX,r=e.offsetY,l=this._x,h=this._y,f=o-l,c=r-h;this._x=o,this._y=r,this._opt.preventDefaultMouseMove&&M.stop(e.event),i(this,"pan","moveOnMouseMove",e,{dx:f,dy:c,oldX:l,oldY:h,newX:o,newY:r})}}function p(e){M.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function v(e){var o=a("zoomOnMouseWheel",e,this._opt),r=a("moveOnMouseWheel",e,this._opt),l=e.wheelDelta,h=Math.abs(l),f=e.offsetX,c=e.offsetY;if(!(l===0||!o&&!r)){if(o){var d=h>3?1.4:h>1?1.2:1.1,A=l>0?d:1/d;s(this,"zoom","zoomOnMouseWheel",e,{scale:A,originX:f,originY:c})}if(r){var x=Math.abs(l),y=(l>0?1:-1)*(x>3?.4:x>1?.15:.05);s(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:y,originX:f,originY:c})}}}function t(e){if(!w.isTaken(this._zr,"globalPan")){var o=e.pinchScale>1?1.1:1/1.1;s(this,"zoom",null,e,{scale:o,originX:e.pinchX,originY:e.pinchY})}}function s(e,o,r,l,h){e.pointerChecker&&e.pointerChecker(l,h.originX,h.originY)&&(M.stop(l.event),i(e,o,r,l,h))}function i(e,o,r,l,h){h.isAvailableBehavior=T.bind(a,null,r,l),e.trigger(o,h)}function a(e,o,r){var l=r[e];return!e||l&&(!T.isString(l)||o.event[l+"Key"])}var u=C;Y.exports=u},20691:function(Y,V,n){var T=n(9806),L=n(18584),M=L.onIrrelevantElement,w=n(18993);function C(v){return v=p(v),function(t,s){return w.clipPointsByRect(t,v)}}function D(v,t){return v=p(v),function(s){var i=t!=null?t:s,a=i?v.width:v.height,u=i?v.x:v.y;return[u,u+(a||0)]}}function S(v,t,s){return v=p(v),function(i,a,u){return v.contain(a[0],a[1])&&!M(i,t,s)}}function p(v){return T.create(v)}V.makeRectPanelClipPath=C,V.makeLinearBrushOtherExtent=D,V.makeRectIsTargetByCursor=S},18584:function(Y,V){var n={axisPointer:1,tooltip:1,brush:1};function T(L,M,w){var C=M.getComponentByElement(L.topTarget),D=C&&C.coordinateSystem;return C&&C!==w&&!n[C.mainType]&&D&&D.model!==w}V.onIrrelevantElement=T},80255:function(Y,V,n){var T=n(3096),L="\0_ec_interaction_mutex";function M(S,p,v){var t=D(S);t[p]=v}function w(S,p,v){var t=D(S),s=t[p];s===v&&(t[p]=null)}function C(S,p){return!!D(S)[p]}function D(S){return S[L]||(S[L]={})}T.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),V.take=M,V.release=w,V.isTaken=C},98449:function(Y,V,n){var T=n(7357),L=T.getLayoutRect,M=T.box,w=T.positionElement,C=n(17010),D=n(18993);function S(v,t,s){var i=t.getBoxLayoutParams(),a=t.get("padding"),u={width:s.getWidth(),height:s.getHeight()},e=L(i,u,a);M(t.get("orient"),v,t.get("itemGap"),e.width,e.height),w(v,i,u,a)}function p(a,t){var s=C.normalizeCssArray(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var a=new D.Rect({shape:{x:a.x-s[3],y:a.y-s[0],width:a.width+s[1]+s[3],height:a.height+s[0]+s[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return a}V.layout=S,V.makeBackground=p},37419:function(Y,V){function n(L,M,w){var C=L.target,D=C.position;D[0]+=M,D[1]+=w,C.dirty()}function T(L,M,w,C){var D=L.target,S=L.zoomLimit,p=D.position,v=D.scale,t=L.zoom=L.zoom||1;if(t*=M,S){var s=S.min||0,i=S.max||1/0;t=Math.max(Math.min(i,t),s)}var a=t/L.zoom;L.zoom=t,p[0]-=(w-p[0])*(a-1),p[1]-=(C-p[1])*(a-1),v[0]*=a,v[1]*=a,D.dirty()}V.updateViewOnPan=n,V.updateViewOnZoom=T},78240:function(Y,V,n){var T=n(69008),L={updateSelectedMap:function(M){this._targetList=T.isArray(M)?M.slice():[],this._selectTargetMap=T.reduce(M||[],function(w,C){return w.set(C.name,C),w},T.createHashMap())},select:function(M,w){var C=w!=null?this._targetList[w]:this._selectTargetMap.get(M),D=this.get("selectedMode");D==="single"&&this._selectTargetMap.each(function(S){S.selected=!1}),C&&(C.selected=!0)},unSelect:function(M,w){var C=w!=null?this._targetList[w]:this._selectTargetMap.get(M);C&&(C.selected=!1)},toggleSelected:function(M,w){var C=w!=null?this._targetList[w]:this._selectTargetMap.get(M);if(C!=null)return this[C.selected?"unSelect":"select"](M,w),C.selected},isSelected:function(M,w){var C=w!=null?this._targetList[w]:this._selectTargetMap.get(M);return C&&C.selected}};Y.exports=L},98810:function(Y){function V(L,M,w,C,D,S){L=L||0;var p=w[1]-w[0];if(D!=null&&(D=T(D,[0,p])),S!=null&&(S=Math.max(S,D!=null?D:0)),C==="all"){var v=Math.abs(M[1]-M[0]);v=T(v,[0,p]),D=S=T(v,[D,S]),C=0}M[0]=T(M[0],w),M[1]=T(M[1],w);var t=n(M,C);M[C]+=L;var s=D||0,i=w.slice();t.sign<0?i[0]+=s:i[1]-=s,M[C]=T(M[C],i);var a=n(M,C);D!=null&&(a.sign!==t.sign||a.span<D)&&(M[1-C]=M[C]+t.sign*D);var a=n(M,C);return S!=null&&a.span>S&&(M[1-C]=M[C]+a.sign*S),M}function n(L,M){var w=L[M]-L[1-M];return{span:Math.abs(w),sign:w>0?-1:w<0?1:M?-1:1}}function T(L,M){return Math.min(M[1]!=null?M[1]:1/0,Math.max(M[0]!=null?M[0]:-1/0,L))}Y.exports=V},32314:function(Y,V,n){var T=n(3096);n(80194),n(73120),n(71298);var L=n(19214),M=n(16172);T.registerProcessor(T.PRIORITY.PROCESSOR.SERIES_FILTER,L),M.registerSubTypeDefaulter("legend",function(){return"plain"})},80194:function(Y,V,n){var T=n(3096),L=n(69008),M=n(24040),w=n(90830),C=w.isNameSpecified,D=n(73315),S=D.legend.selector,p={all:{type:"all",title:L.clone(S.all)},inverse:{type:"inverse",title:L.clone(S.inverse)}},v=T.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(s,i,a){this.mergeDefaultAndTheme(s,a),s.selected=s.selected||{},this._updateSelector(s)},mergeOption:function(s){v.superCall(this,"mergeOption",s),this._updateSelector(s)},_updateSelector:function(s){var i=s.selector;i===!0&&(i=s.selector=["all","inverse"]),L.isArray(i)&&L.each(i,function(a,u){L.isString(a)&&(a={type:a}),i[u]=L.merge(a,p[a.type])})},optionUpdated:function(){this._updateData(this.ecModel);var s=this._data;if(s[0]&&this.get("selectedMode")==="single"){for(var i=!1,a=0;a<s.length;a++){var u=s[a].get("name");if(this.isSelected(u)){this.select(u),i=!0;break}}!i&&this.select(s[0].get("name"))}},_updateData:function(s){var i=[],a=[];s.eachRawSeries(function(o){var r=o.name;a.push(r);var l;if(o.legendVisualProvider){var h=o.legendVisualProvider,f=h.getAllNames();s.isSeriesFiltered(o)||(a=a.concat(f)),f.length?i=i.concat(f):l=!0}else l=!0;l&&C(o)&&i.push(o.name)}),this._availableNames=a;var u=this.get("data")||i,e=L.map(u,function(o){return(typeof o=="string"||typeof o=="number")&&(o={name:o}),new M(o,this,this.ecModel)},this);this._data=e},getData:function(){return this._data},select:function(s){var i=this.option.selected,a=this.get("selectedMode");if(a==="single"){var u=this._data;L.each(u,function(e){i[e.get("name")]=!1})}i[s]=!0},unSelect:function(s){this.get("selectedMode")!=="single"&&(this.option.selected[s]=!1)},toggleSelected:function(s){var i=this.option.selected;i.hasOwnProperty(s)||(i[s]=!0),this[i[s]?"unSelect":"select"](s)},allSelect:function(){var s=this._data,i=this.option.selected;L.each(s,function(a){i[a.get("name",!0)]=!0})},inverseSelect:function(){var s=this._data,i=this.option.selected;L.each(s,function(a){var u=a.get("name",!0);i.hasOwnProperty(u)||(i[u]=!0),i[u]=!i[u]})},isSelected:function(s){var i=this.option.selected;return!(i.hasOwnProperty(s)&&!i[s])&&L.indexOf(this._availableNames,s)>=0},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,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,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),t=v;Y.exports=t},71298:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(22868),D=C.createSymbol,S=n(18993),p=n(98449),v=p.makeBackground,t=n(7357),s=w.curry,i=w.each,a=S.Group,u=M.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new a),this._backgroundEl,this.group.add(this._selectorGroup=new a),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(h,f,c){var d=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!h.get("show",!0)){var A=h.get("align"),x=h.get("orient");(!A||A==="auto")&&(A=h.get("left")==="right"&&x==="vertical"?"right":"left");var y=h.get("selector",!0),g=h.get("selectorPosition",!0);y&&(!g||g==="auto")&&(g=x==="horizontal"?"end":"start"),this.renderInner(A,h,f,c,y,x,g);var m=h.getBoxLayoutParams(),b={width:c.getWidth(),height:c.getHeight()},I=h.get("padding"),R=t.getLayoutRect(m,b,I),E=this.layoutInner(h,A,R,d,y,g),P=t.getLayoutRect(w.defaults({width:E.width,height:E.height},m),b,I);this.group.attr("position",[P.x-E.x,P.y-E.y]),this.group.add(this._backgroundEl=v(E,h))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(h,f,c,d,A,x,y){var g=this.getContentGroup(),m=w.createHashMap(),b=f.get("selectedMode"),I=[];c.eachRawSeries(function(R){!R.get("legendHoverLink")&&I.push(R.id)}),i(f.getData(),function(R,E){var P=R.get("name");if(!this.newlineDisabled&&(P===""||P===`
`)){g.add(new a({newline:!0}));return}var O=c.getSeriesByName(P)[0];if(!m.get(P))if(O){var N=O.getData(),_=N.getVisual("color"),G=N.getVisual("borderColor");typeof _=="function"&&(_=_(O.getDataParams(0))),typeof G=="function"&&(G=G(O.getDataParams(0)));var F=N.getVisual("legendSymbol")||"roundRect",W=N.getVisual("symbol"),U=this._createItem(P,E,R,f,F,W,h,_,G,b);U.on("click",s(o,P,null,d,I)).on("mouseover",s(r,O.name,null,d,I)).on("mouseout",s(l,O.name,null,d,I)),m.set(P,!0)}else c.eachRawSeries(function(H){if(!m.get(P)&&H.legendVisualProvider){var z=H.legendVisualProvider;if(!z.containName(P))return;var B=z.indexOfName(P),k=z.getItemVisual(B,"color"),Z=z.getItemVisual(B,"borderColor"),X="roundRect",K=this._createItem(P,E,R,f,X,null,h,k,Z,b);K.on("click",s(o,null,P,d,I)).on("mouseover",s(r,null,P,d,I)).on("mouseout",s(l,null,P,d,I)),m.set(P,!0)}},this)},this),A&&this._createSelector(A,f,d,x,y)},_createSelector:function(h,f,c,d,A){var x=this.getSelectorGroup();i(h,function(g){y(g)});function y(g){var m=g.type,b=new S.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){c.dispatchAction({type:m==="all"?"legendAllSelect":"legendInverseSelect"})}});x.add(b);var I=f.getModel("selectorLabel"),R=f.getModel("emphasis.selectorLabel");S.setLabelStyle(b.style,b.hoverStyle={},I,R,{defaultText:g.title,isRectText:!1}),S.setHoverStyle(b)}},_createItem:function(h,f,c,d,A,x,y,g,m,b){var I=d.get("itemWidth"),R=d.get("itemHeight"),E=d.get("inactiveColor"),P=d.get("inactiveBorderColor"),O=d.get("symbolKeepAspect"),N=d.getModel("itemStyle"),_=d.isSelected(h),G=new a,F=c.getModel("textStyle"),W=c.get("icon"),U=c.getModel("tooltip"),H=U.parentModel;A=W||A;var z=D(A,0,0,I,R,_?g:E,O==null?!0:O);if(G.add(e(z,A,N,m,P,_)),!W&&x&&(x!==A||x==="none")){var B=R*.8;x==="none"&&(x="circle");var k=D(x,(I-B)/2,(R-B)/2,B,B,_?g:E,O==null?!0:O);G.add(e(k,x,N,m,P,_))}var Z=y==="left"?I+5:-5,X=y,K=d.get("formatter"),Q=h;typeof K=="string"&&K?Q=K.replace("{name}",h!=null?h:""):typeof K=="function"&&(Q=K(h)),G.add(new S.Text({style:S.setTextStyle({},F,{text:Q,x:Z,y:R/2,textFill:_?F.getTextColor():E,textAlign:X,textVerticalAlign:"middle"})}));var J=new S.Rect({shape:G.getBoundingRect(),invisible:!0,tooltip:U.get("show")?w.extend({content:h,formatter:H.get("formatter",!0)||function(){return h},formatterParams:{componentType:"legend",legendIndex:d.componentIndex,name:h,$vars:["name"]}},U.option):null});return G.add(J),G.eachChild(function(tt){tt.silent=!0}),J.silent=!b,this.getContentGroup().add(G),S.setHoverStyle(G),G.__legendDataIndex=f,G},layoutInner:function(h,f,c,d,A,x){var y=this.getContentGroup(),g=this.getSelectorGroup();t.box(h.get("orient"),y,h.get("itemGap"),c.width,c.height);var m=y.getBoundingRect(),b=[-m.x,-m.y];if(A){t.box("horizontal",g,h.get("selectorItemGap",!0));var I=g.getBoundingRect(),R=[-I.x,-I.y],E=h.get("selectorButtonGap",!0),P=h.getOrient().index,O=P===0?"width":"height",N=P===0?"height":"width",_=P===0?"y":"x";x==="end"?R[P]+=m[O]+E:b[P]+=I[O]+E,R[1-P]+=m[N]/2-I[N]/2,g.attr("position",R),y.attr("position",b);var G={x:0,y:0};return G[O]=m[O]+E+I[O],G[N]=Math.max(m[N],I[N]),G[_]=Math.min(0,I[_]+R[1-P]),G}else return y.attr("position",b),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function e(h,f,c,d,A,x){var y;return f!=="line"&&f.indexOf("empty")<0?(y=c.getItemStyle(),h.style.stroke=d,x||(y.stroke=A)):y=c.getItemStyle(["borderWidth","borderColor"]),h.setStyle(y)}function o(h,f,c,d){l(h,f,c,d),c.dispatchAction({type:"legendToggleSelect",name:h!=null?h:f}),r(h,f,c,d)}function r(h,f,c,d){var A=c.getZr().storage.getDisplayList()[0];A&&A.useHoverLayer||c.dispatchAction({type:"highlight",seriesName:h,name:f,excludeSeriesId:d})}function l(h,f,c,d){var A=c.getZr().storage.getDisplayList()[0];A&&A.useHoverLayer||c.dispatchAction({type:"downplay",seriesName:h,name:f,excludeSeriesId:d})}Y.exports=u},54601:function(Y,V,n){var T=n(80194),L=n(7357),M=L.mergeLayoutParam,w=L.getLayoutParams,C=T.extend({type:"legend.scroll",setScrollDataIndex:function(p){this.option.scrollDataIndex=p},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},init:function(p,v,t,s){var i=w(p);C.superCall(this,"init",p,v,t,s),D(this,p,i)},mergeOption:function(p,v){C.superCall(this,"mergeOption",p,v),D(this,this.option,p)}});function D(p,v,t){var s=p.getOrient(),i=[1,1];i[s.index]=0,M(v,t,{type:"box",ignoreSize:i})}var S=C;Y.exports=S},3382:function(Y,V,n){var T=n(69008),L=n(18993),M=n(7357),w=n(71298),C=L.Group,D=["width","height"],S=["x","y"],p=w.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){p.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new C),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new C),this._showController},resetInner:function(){p.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,s,i,a,u,e,o){var r=this;p.superCall(this,"renderInner",t,s,i,a,u,e,o);var l=this._controllerGroup,h=s.get("pageIconSize",!0);T.isArray(h)||(h=[h,h]),c("pagePrev",0);var f=s.getModel("pageTextStyle");l.add(new L.Text({name:"pageText",style:{textFill:f.getTextColor(),font:f.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),c("pageNext",1);function c(d,A){var x=d+"DataIndex",y=L.createIcon(s.get("pageIcons",!0)[s.getOrient().name][A],{onclick:T.bind(r._pageGo,r,x,s,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=d,l.add(y)}},layoutInner:function(t,s,i,a,u,e){var o=this.getSelectorGroup(),r=t.getOrient().index,l=D[r],h=S[r],f=D[1-r],c=S[1-r];u&&M.box("horizontal",o,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),A=o.getBoundingRect(),x=[-A.x,-A.y],y=T.clone(i);u&&(y[l]=i[l]-A[l]-d);var g=this._layoutContentAndController(t,a,y,r,l,f,c);if(u){if(e==="end")x[r]+=g[l]+d;else{var m=A[l]+d;x[r]-=m,g[h]-=m}g[l]+=A[l]+d,x[1-r]+=g[c]+g[f]/2-A[f]/2,g[f]=Math.max(g[f],A[f]),g[c]=Math.min(g[c],A[c]+x[1-r]),o.attr("position",x)}return g},_layoutContentAndController:function(t,s,i,a,u,e,o){var r=this.getContentGroup(),l=this._containerGroup,h=this._controllerGroup;M.box(t.get("orient"),r,t.get("itemGap"),a?i.width:null,a?null:i.height),M.box("horizontal",h,t.get("pageButtonItemGap",!0));var f=r.getBoundingRect(),c=h.getBoundingRect(),d=this._showController=f[u]>i[u],A=[-f.x,-f.y];s||(A[a]=r.position[a]);var x=[0,0],y=[-c.x,-c.y],g=T.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var m=t.get("pageButtonPosition",!0);m==="end"?y[a]+=i[u]-c[u]:x[a]+=c[u]+g}y[1-a]+=f[e]/2-c[e]/2,r.attr("position",A),l.attr("position",x),h.attr("position",y);var b={x:0,y:0};if(b[u]=d?i[u]:f[u],b[e]=Math.max(f[e],c[e]),b[o]=Math.min(0,c[o]+y[1-a]),l.__rectSize=i[u],d){var I={x:0,y:0};I[u]=Math.max(i[u]-c[u]-g,0),I[e]=b[e],l.setClipPath(new L.Rect({shape:I})),l.__rectSize=I[u]}else h.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var R=this._getPageInfo(t);return R.pageIndex!=null&&L.updateProps(r,{position:R.contentPosition},d?t:!1),this._updatePageInfoView(t,R),b},_pageGo:function(t,s,i){var a=this._getPageInfo(s)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:s.id})},_updatePageInfoView:function(t,s){var i=this._controllerGroup;T.each(["pagePrev","pageNext"],function(l){var h=s[l+"DataIndex"]!=null,f=i.childOfName(l);f&&(f.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),f.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),u=t.get("pageFormatter"),e=s.pageIndex,o=e!=null?e+1:0,r=s.pageCount;a&&u&&a.setStyle("text",T.isString(u)?u.replace("{current}",o).replace("{total}",r):u({current:o,total:r}))},_getPageInfo:function(t){var s=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,u=t.getOrient().index,e=D[u],o=S[u],r=this._findTargetItemIndex(s),l=i.children(),h=l[r],f=l.length,c=f?1:0,d={contentPosition:i.position.slice(),pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var A=b(h);d.contentPosition[u]=-A.s;for(var x=r+1,y=A,g=A,m=null;x<=f;++x)m=b(l[x]),(!m&&g.e>y.s+a||m&&!I(m,y.s))&&(g.i>y.i?y=g:y=m,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),g=m;for(var x=r-1,y=A,g=A,m=null;x>=-1;--x)m=b(l[x]),(!m||!I(g,m.s))&&y.i<g.i&&(g=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=m;return d;function b(R){if(R){var E=R.getBoundingRect(),P=E[o]+R.position[u];return{s:P,e:P+E[e],i:R.__legendDataIndex}}}function I(R,E){return R.e>=E&&R.s<=E+a}},_findTargetItemIndex:function(t){if(!this._showController)return 0;var s,i=this.getContentGroup(),a;return i.eachChild(function(u,e){var o=u.__legendDataIndex;a==null&&o!=null&&(a=e),o===t&&(s=e)}),s!=null?s:a}}),v=p;Y.exports=v},73120:function(Y,V,n){var T=n(3096),L=n(69008);function M(w,C,D){var S={},p=w==="toggleSelected",v;return D.eachComponent("legend",function(t){p&&v!=null?t[v?"select":"unSelect"](C.name):w==="allSelect"||w==="inverseSelect"?t[w]():(t[w](C.name),v=t.isSelected(C.name));var s=t.getData();L.each(s,function(i){var a=i.get("name");if(!(a===`
`||a==="")){var u=t.isSelected(a);S.hasOwnProperty(a)?S[a]=S[a]&&u:S[a]=u}})}),w==="allSelect"||w==="inverseSelect"?{selected:S}:{name:C.name,selected:S}}T.registerAction("legendToggleSelect","legendselectchanged",L.curry(M,"toggleSelected")),T.registerAction("legendAllSelect","legendselectall",L.curry(M,"allSelect")),T.registerAction("legendInverseSelect","legendinverseselect",L.curry(M,"inverseSelect")),T.registerAction("legendSelect","legendselected",L.curry(M,"select")),T.registerAction("legendUnSelect","legendunselected",L.curry(M,"unSelect"))},19214:function(Y){function V(n){var T=n.findComponents({mainType:"legend"});T&&T.length&&n.filterSeries(function(L){for(var M=0;M<T.length;M++)if(!T[M].isSelected(L.name))return!1;return!0})}Y.exports=V},21125:function(Y,V,n){var T=n(3096);T.registerAction("legendScroll","legendscroll",function(L,M){var w=L.scrollDataIndex;w!=null&&M.eachComponent({mainType:"legend",subType:"scroll",query:L},function(C){C.setScrollDataIndex(w)})})},71142:function(Y,V,n){n(32314),n(54601),n(3382),n(21125)},34904:function(Y,V,n){var T=n(3096);n(52687),n(40294),T.registerPreprocessor(function(L){L.markArea=L.markArea||{}})},45003:function(Y,V,n){var T=n(3096);n(18998),n(18377),T.registerPreprocessor(function(L){L.markLine=L.markLine||{}})},2450:function(Y,V,n){var T=n(3096);n(81102),n(14297),T.registerPreprocessor(function(L){L.markPoint=L.markPoint||{}})},52687:function(Y,V,n){var T=n(56079),L=T.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});Y.exports=L},40294:function(Y,V,n){var T=n(69008),L=n(83720),M=n(39177),w=n(86957),C=n(18993),D=n(77783),S=n(24513),p=function(e,o,r,l){var h=D.dataTransform(e,l[0]),f=D.dataTransform(e,l[1]),c=T.retrieve,d=h.coord,A=f.coord;d[0]=c(d[0],-1/0),d[1]=c(d[1],-1/0),A[0]=c(A[0],1/0),A[1]=c(A[1],1/0);var x=T.mergeAll([{},h,f]);return x.coord=[h.coord,f.coord],x.x0=h.x,x.y0=h.y,x.x1=f.x,x.y1=f.y,x};function v(e){return!isNaN(e)&&!isFinite(e)}function t(e,o,r,l){var h=1-e;return v(o[h])&&v(r[h])}function s(e,o){var r=o.coord[0],l=o.coord[1];return e.type==="cartesian2d"&&r&&l&&(t(1,r,l,e)||t(0,r,l,e))?!0:D.dataFilter(e,{coord:r,x:o.x0,y:o.y0})||D.dataFilter(e,{coord:l,x:o.x1,y:o.y1})}function i(e,o,r,l,h){var f=l.coordinateSystem,c=e.getItemModel(o),d,A=w.parsePercent(c.get(r[0]),h.getWidth()),x=w.parsePercent(c.get(r[1]),h.getHeight());if(!isNaN(A)&&!isNaN(x))d=[A,x];else{if(l.getMarkerPosition)d=l.getMarkerPosition(e.getValues(r,o));else{var y=e.get(r[0],o),g=e.get(r[1],o),m=[y,g];f.clampData&&f.clampData(m,m),d=f.dataToPoint(m,!0)}if(f.type==="cartesian2d"){var b=f.getAxis("x"),I=f.getAxis("y"),y=e.get(r[0],o),g=e.get(r[1],o);v(y)?d[0]=b.toGlobalCoord(b.getExtent()[r[0]==="x0"?0:1]):v(g)&&(d[1]=I.toGlobalCoord(I.getExtent()[r[1]==="y0"?0:1]))}isNaN(A)||(d[0]=A),isNaN(x)||(d[1]=x)}return d}var a=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];S.extend({type:"markArea",updateTransform:function(e,o,r){o.eachSeries(function(l){var h=l.markAreaModel;if(h){var f=h.getData();f.each(function(c){var d=T.map(a,function(x){return i(f,c,x,l,r)});f.setItemLayout(c,d);var A=f.getItemGraphicEl(c);A.setShape("points",d)})}},this)},renderSeries:function(e,o,r,l){var h=e.coordinateSystem,f=e.id,c=e.getData(),d=this.markerGroupMap,A=d.get(f)||d.set(f,{group:new C.Group});this.group.add(A.group),A.__keep=!0;var x=u(h,e,o);o.setData(x),x.each(function(y){x.setItemLayout(y,T.map(a,function(g){return i(x,y,g,e,l)})),x.setItemVisual(y,{color:c.getVisual("color")})}),x.diff(A.__data).add(function(y){var g=new C.Polygon({shape:{points:x.getItemLayout(y)}});x.setItemGraphicEl(y,g),A.group.add(g)}).update(function(y,g){var m=A.__data.getItemGraphicEl(g);C.updateProps(m,{shape:{points:x.getItemLayout(y)}},o,y),A.group.add(m),x.setItemGraphicEl(y,m)}).remove(function(y){var g=A.__data.getItemGraphicEl(y);A.group.remove(g)}).execute(),x.eachItemGraphicEl(function(y,g){var m=x.getItemModel(g),b=m.getModel("label"),I=m.getModel("emphasis.label"),R=x.getItemVisual(g,"color");y.useStyle(T.defaults(m.getModel("itemStyle").getItemStyle(),{fill:L.modifyAlpha(R,.4),stroke:R})),y.hoverStyle=m.getModel("emphasis.itemStyle").getItemStyle(),C.setLabelStyle(y.style,y.hoverStyle,b,I,{labelFetcher:o,labelDataIndex:g,defaultText:x.getName(g)||"",isRectText:!0,autoColor:R}),C.setHoverStyle(y,{}),y.dataModel=o}),A.__data=x,A.group.silent=o.get("silent")||e.get("silent")}});function u(e,o,r){var l,h,f=["x0","y0","x1","y1"];e?(l=T.map(e&&e.dimensions,function(A){var x=o.getData(),y=x.getDimensionInfo(x.mapDimension(A))||{};return T.defaults({name:A},y)}),h=new M(T.map(f,function(A,x){return{name:A,type:l[x%2].type}}),r)):(l=[{name:"value",type:"float"}],h=new M(l,r));var c=T.map(r.get("data"),T.curry(p,o,e,r));e&&(c=T.filter(c,T.curry(s,e)));var d=e?function(A,x,y,g){return A.coord[Math.floor(g/2)][g%2]}:function(A){return A.value};return h.initData(c,null,d),h.hasItemOption=!0,h}},18998:function(Y,V,n){var T=n(56079),L=T.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});Y.exports=L},18377:function(Y,V,n){var T=n(69008),L=n(39177),M=n(86957),w=n(77783),C=n(70562),D=n(24513),S=n(22240),p=S.getStackedDimension,v=function(o,r,l,h){var f=o.getData(),c=h.type;if(!T.isArray(h)&&(c==="min"||c==="max"||c==="average"||c==="median"||h.xAxis!=null||h.yAxis!=null)){var d,A;if(h.yAxis!=null||h.xAxis!=null)d=r.getAxis(h.yAxis!=null?"y":"x"),A=T.retrieve(h.yAxis,h.xAxis);else{var x=w.getAxisInfo(h,f,r,o);d=x.valueAxis;var y=p(f,x.valueDataDim);A=w.numCalculate(f,y,c)}var g=d.dim==="x"?0:1,m=1-g,b=T.clone(h),I={};b.type=null,b.coord=[],I.coord=[],b.coord[m]=-1/0,I.coord[m]=1/0;var R=l.get("precision");R>=0&&typeof A=="number"&&(A=+A.toFixed(Math.min(R,20))),b.coord[g]=I.coord[g]=A,h=[b,I,{type:c,valueIndex:h.valueIndex,value:A}]}return h=[w.dataTransform(o,h[0]),w.dataTransform(o,h[1]),T.extend({},h[2])],h[2].type=h[2].type||"",T.merge(h[2],h[0]),T.merge(h[2],h[1]),h};function t(o){return!isNaN(o)&&!isFinite(o)}function s(o,r,l,h){var f=1-o,c=h.dimensions[o];return t(r[f])&&t(l[f])&&r[o]===l[o]&&h.getAxis(c).containData(r[o])}function i(o,r){if(o.type==="cartesian2d"){var l=r[0].coord,h=r[1].coord;if(l&&h&&(s(1,l,h,o)||s(0,l,h,o)))return!0}return w.dataFilter(o,r[0])&&w.dataFilter(o,r[1])}function a(o,r,l,h,f){var c=h.coordinateSystem,d=o.getItemModel(r),A,x=M.parsePercent(d.get("x"),f.getWidth()),y=M.parsePercent(d.get("y"),f.getHeight());if(!isNaN(x)&&!isNaN(y))A=[x,y];else{if(h.getMarkerPosition)A=h.getMarkerPosition(o.getValues(o.dimensions,r));else{var g=c.dimensions,m=o.get(g[0],r),b=o.get(g[1],r);A=c.dataToPoint([m,b])}if(c.type==="cartesian2d"){var I=c.getAxis("x"),R=c.getAxis("y"),g=c.dimensions;t(o.get(g[0],r))?A[0]=I.toGlobalCoord(I.getExtent()[l?0:1]):t(o.get(g[1],r))&&(A[1]=R.toGlobalCoord(R.getExtent()[l?0:1]))}isNaN(x)||(A[0]=x),isNaN(y)||(A[1]=y)}o.setItemLayout(r,A)}var u=D.extend({type:"markLine",updateTransform:function(o,r,l){r.eachSeries(function(h){var f=h.markLineModel;if(f){var c=f.getData(),d=f.__from,A=f.__to;d.each(function(x){a(d,x,!0,h,l),a(A,x,!1,h,l)}),c.each(function(x){c.setItemLayout(x,[d.getItemLayout(x),A.getItemLayout(x)])}),this.markerGroupMap.get(h.id).updateLayout()}},this)},renderSeries:function(o,r,l,h){var f=o.coordinateSystem,c=o.id,d=o.getData(),A=this.markerGroupMap,x=A.get(c)||A.set(c,new C);this.group.add(x.group);var y=e(f,o,r),g=y.from,m=y.to,b=y.line;r.__from=g,r.__to=m,r.setData(b);var I=r.get("symbol"),R=r.get("symbolSize");T.isArray(I)||(I=[I,I]),typeof R=="number"&&(R=[R,R]),y.from.each(function(P){E(g,P,!0),E(m,P,!1)}),b.each(function(P){var O=b.getItemModel(P).get("lineStyle.color");b.setItemVisual(P,{color:O||g.getItemVisual(P,"color")}),b.setItemLayout(P,[g.getItemLayout(P),m.getItemLayout(P)]),b.setItemVisual(P,{fromSymbolSize:g.getItemVisual(P,"symbolSize"),fromSymbol:g.getItemVisual(P,"symbol"),toSymbolSize:m.getItemVisual(P,"symbolSize"),toSymbol:m.getItemVisual(P,"symbol")})}),x.updateData(b),y.line.eachItemGraphicEl(function(P,O){P.traverse(function(N){N.dataModel=r})});function E(P,O,N){var _=P.getItemModel(O);a(P,O,N,o,h),P.setItemVisual(O,{symbolSize:_.get("symbolSize")||R[N?0:1],symbol:_.get("symbol",!0)||I[N?0:1],color:_.get("itemStyle.color")||d.getVisual("color")})}x.__keep=!0,x.group.silent=r.get("silent")||o.get("silent")}});function e(o,r,l){var h;o?h=T.map(o&&o.dimensions,function(y){var g=r.getData().getDimensionInfo(r.getData().mapDimension(y))||{};return T.defaults({name:y},g)}):h=[{name:"value",type:"float"}];var f=new L(h,l),c=new L(h,l),d=new L([],l),A=T.map(l.get("data"),T.curry(v,r,o,l));o&&(A=T.filter(A,T.curry(i,o)));var x=o?w.dimValueGetter:function(y){return y.value};return f.initData(T.map(A,function(y){return y[0]}),null,x),c.initData(T.map(A,function(y){return y[1]}),null,x),d.initData(T.map(A,function(y){return y[2]})),d.hasItemOption=!0,{from:f,to:c,line:d}}Y.exports=u},81102:function(Y,V,n){var T=n(56079),L=T.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});Y.exports=L},14297:function(Y,V,n){var T=n(69008),L=n(38346),M=n(86957),w=n(39177),C=n(77783),D=n(24513);function S(t,s,i){var a=s.coordinateSystem;t.each(function(u){var e=t.getItemModel(u),o,r=M.parsePercent(e.get("x"),i.getWidth()),l=M.parsePercent(e.get("y"),i.getHeight());if(!isNaN(r)&&!isNaN(l))o=[r,l];else if(s.getMarkerPosition)o=s.getMarkerPosition(t.getValues(t.dimensions,u));else if(a){var h=t.get(a.dimensions[0],u),f=t.get(a.dimensions[1],u);o=a.dataToPoint([h,f])}isNaN(r)||(o[0]=r),isNaN(l)||(o[1]=l),t.setItemLayout(u,o)})}var p=D.extend({type:"markPoint",updateTransform:function(t,s,i){s.eachSeries(function(a){var u=a.markPointModel;u&&(S(u.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout(u))},this)},renderSeries:function(t,s,i,a){var u=t.coordinateSystem,e=t.id,o=t.getData(),r=this.markerGroupMap,l=r.get(e)||r.set(e,new L),h=v(u,t,s);s.setData(h),S(s.getData(),t,a),h.each(function(f){var c=h.getItemModel(f),d=c.getShallow("symbol"),A=c.getShallow("symbolSize"),x=T.isFunction(d),y=T.isFunction(A);if(x||y){var g=s.getRawValue(f),m=s.getDataParams(f);x&&(d=d(g,m)),y&&(A=A(g,m))}h.setItemVisual(f,{symbol:d,symbolSize:A,color:c.get("itemStyle.color")||o.getVisual("color")})}),l.updateData(h),this.group.add(l.group),h.eachItemGraphicEl(function(f){f.traverse(function(c){c.dataModel=s})}),l.__keep=!0,l.group.silent=s.get("silent")||t.get("silent")}});function v(t,s,i){var a;t?a=T.map(t&&t.dimensions,function(o){var r=s.getData().getDimensionInfo(s.getData().mapDimension(o))||{};return T.defaults({name:o},r)}):a=[{name:"value",type:"float"}];var u=new w(a,i),e=T.map(i.get("data"),T.curry(C.dataTransform,s));return t&&(e=T.filter(e,T.curry(C.dataFilter,t))),u.initData(e,null,t?C.dimValueGetter:function(o){return o.value}),u}Y.exports=p},56079:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(12973),D=n(90830),S=n(17010),p=n(64530),v=S.addCommas,t=S.encodeHTML;function s(u){D.defaultEmphasis(u,"label",["show"])}var i=M.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(u,e,o){this.mergeDefaultAndTheme(u,o),this._mergeOption(u,o,!1,!0)},isAnimationEnabled:function(){if(C.node)return!1;var u=this.__hostSeries;return this.getShallow("animation")&&u&&u.isAnimationEnabled()},mergeOption:function(u,e){this._mergeOption(u,e,!1,!1)},_mergeOption:function(u,e,o,r){var l=this.constructor,h=this.mainType+"Model";o||e.eachSeries(function(f){var c=f.get(this.mainType,!0),d=f[h];if(!c||!c.data){f[h]=null;return}d?d._mergeOption(c,e,!0):(r&&s(c),w.each(c.data,function(A){A instanceof Array?(s(A[0]),s(A[1])):s(A)}),d=new l(c,this,e),w.extend(d,{mainType:this.mainType,seriesIndex:f.seriesIndex,name:f.name,createdBySelf:!0}),d.__hostSeries=f),f[h]=d},this)},formatTooltip:function(u){var e=this.getData(),o=this.getRawValue(u),r=w.isArray(o)?w.map(o,v).join(", "):v(o),l=e.getName(u),h=t(this.name);return(o!=null||l)&&(h+="<br />"),l&&(h+=t(l),o!=null&&(h+=" : ")),o!=null&&(h+=t(r)),h},getData:function(){return this._data},setData:function(u){this._data=u}});w.mixin(i,p);var a=i;Y.exports=a},24513:function(Y,V,n){var T=n(3096),L=n(69008),M=T.extendComponentView({type:"marker",init:function(){this.markerGroupMap=L.createHashMap()},render:function(w,C,D){var S=this.markerGroupMap;S.each(function(v){v.__keep=!1});var p=this.type+"Model";C.eachSeries(function(v){var t=v[p];t&&this.renderSeries(v,t,C,D)},this),S.each(function(v){!v.__keep&&this.group.remove(v.group)},this)},renderSeries:function(){}});Y.exports=M},77783:function(Y,V,n){var T=n(69008),L=n(86957),M=n(22240),w=M.isDimensionStacked,C=T.indexOf;function D(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function S(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function p(r,l,h,f,c,d){var A=[],x=w(l,f),y=x?l.getCalculationInfo("stackResultDimension"):f,g=o(l,y,r),m=l.indicesOfNearest(y,g)[0];A[c]=l.get(h,m),A[d]=l.get(y,m);var b=l.get(f,m),I=L.getPrecision(l.get(f,m));return I=Math.min(I,20),I>=0&&(A[d]=+A[d].toFixed(I)),[A,b]}var v=T.curry,t={min:v(p,"min"),max:v(p,"max"),average:v(p,"average")};function s(r,l){var h=r.getData(),f=r.coordinateSystem;if(l&&!S(l)&&!T.isArray(l.coord)&&f){var c=f.dimensions,d=i(l,h,f,r);if(l=T.clone(l),l.type&&t[l.type]&&d.baseAxis&&d.valueAxis){var A=C(c,d.baseAxis.dim),x=C(c,d.valueAxis.dim),y=t[l.type](h,d.baseDataDim,d.valueDataDim,A,x);l.coord=y[0],l.value=y[1]}else{for(var g=[l.xAxis!=null?l.xAxis:l.radiusAxis,l.yAxis!=null?l.yAxis:l.angleAxis],m=0;m<2;m++)t[g[m]]&&(g[m]=o(h,h.mapDimension(c[m]),g[m]));l.coord=g}}return l}function i(r,l,h,f){var c={};return r.valueIndex!=null||r.valueDim!=null?(c.valueDataDim=r.valueIndex!=null?l.getDimension(r.valueIndex):r.valueDim,c.valueAxis=h.getAxis(a(f,c.valueDataDim)),c.baseAxis=h.getOtherAxis(c.valueAxis),c.baseDataDim=l.mapDimension(c.baseAxis.dim)):(c.baseAxis=f.getBaseAxis(),c.valueAxis=h.getOtherAxis(c.baseAxis),c.baseDataDim=l.mapDimension(c.baseAxis.dim),c.valueDataDim=l.mapDimension(c.valueAxis.dim)),c}function a(r,l){var h=r.getData(),f=h.dimensions;l=h.getDimension(l);for(var c=0;c<f.length;c++){var d=h.getDimensionInfo(f[c]);if(d.name===l)return d.coordDim}}function u(r,l){return r&&r.containData&&l.coord&&!D(l)?r.containData(l.coord):!0}function e(r,l,h,f){return f<2?r.coord&&r.coord[f]:r.value}function o(r,l,h){if(h==="average"){var f=0,c=0;return r.each(l,function(d,A){isNaN(d)||(f+=d,c++)}),f/c}else return h==="median"?r.getMedian(l):r.getDataExtent(l,!0)[h==="max"?1:0]}V.dataTransform=s,V.getAxisInfo=i,V.dataFilter=u,V.dimValueGetter=e,V.numCalculate=o},3068:function(Y,V,n){var T=n(3096),L=n(69008),M=n(83209),w=n(98700);n(3881),n(19061),n(30008);var C=5;T.extendComponentView({type:"parallel",render:function(p,v,t){this._model=p,this._api=t,this._handlers||(this._handlers={},L.each(D,function(s,i){t.getZr().on(i,this._handlers[i]=L.bind(s,this))},this)),M.createOrUpdate(this,"_throttledDispatchExpand",p.get("axisExpandRate"),"fixRate")},dispose:function(p,v){L.each(this._handlers,function(t,s){v.getZr().off(s,t)}),this._handlers=null},_throttledDispatchExpand:function(p){this._dispatchExpand(p)},_dispatchExpand:function(p){p&&this._api.dispatchAction(L.extend({type:"parallelAxisExpand"},p))}});var D={mousedown:function(p){S(this,"click")&&(this._mouseDownPoint=[p.offsetX,p.offsetY])},mouseup:function(p){var v=this._mouseDownPoint;if(S(this,"click")&&v){var t=[p.offsetX,p.offsetY],s=Math.pow(v[0]-t[0],2)+Math.pow(v[1]-t[1],2);if(s>C)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([p.offsetX,p.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(p){if(!(this._mouseDownPoint||!S(this,"mousemove"))){var v=this._model,t=v.coordinateSystem.getSlidedAxisExpandWindow([p.offsetX,p.offsetY]),s=t.behavior;s==="jump"&&this._throttledDispatchExpand.debounceNextCall(v.get("axisExpandDebounce")),this._throttledDispatchExpand(s==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:s==="jump"?null:!1})}}};function S(p,v){var t=p._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===v}T.registerPreprocessor(w)},30008:function(Y,V,n){n(3881),n(91872),n(69385)},12335:function(Y,V,n){var T=n(3096),L=n(69008),M=n(27116);n(49900),n(2546),n(74309),n(84159),n(32641),T.registerLayout(L.curry(M,"bar")),T.extendComponentView({type:"polar"})},99154:function(Y,V,n){n(37292),n(924),n(61747)},61747:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(93570),D=n(18993),S=["axisLine","axisTickLabel","axisName"],p=M.extendComponentView({type:"radar",render:function(v,t,s){var i=this.group;i.removeAll(),this._buildAxes(v),this._buildSplitLineAndArea(v)},_buildAxes:function(v){var t=v.coordinateSystem,s=t.getIndicatorAxes(),i=w.map(s,function(a){var u=new C(a.model,{position:[t.cx,t.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});w.each(i,function(a){w.each(S,a.add,a),this.group.add(a.getGroup())},this)},_buildSplitLineAndArea:function(v){var t=v.coordinateSystem,s=t.getIndicatorAxes();if(!s.length)return;var i=v.get("shape"),a=v.getModel("splitLine"),u=v.getModel("splitArea"),e=a.getModel("lineStyle"),o=u.getModel("areaStyle"),r=a.get("show"),l=u.get("show"),h=e.get("color"),f=o.get("color");h=w.isArray(h)?h:[h],f=w.isArray(f)?f:[f];var c=[],d=[];function A(G,F,W){var U=W%F.length;return G[U]=G[U]||[],U}if(i==="circle")for(var x=s[0].getTicksCoords(),y=t.cx,g=t.cy,m=0;m<x.length;m++){if(r){var b=A(c,h,m);c[b].push(new D.Circle({shape:{cx:y,cy:g,r:x[m].coord}}))}if(l&&m<x.length-1){var b=A(d,f,m);d[b].push(new D.Ring({shape:{cx:y,cy:g,r0:x[m].coord,r:x[m+1].coord}}))}}else for(var I,R=w.map(s,function(G,F){var W=G.getTicksCoords();return I=I==null?W.length-1:Math.min(W.length-1,I),w.map(W,function(U){return t.coordToPoint(U.coord,F)})}),E=[],m=0;m<=I;m++){for(var P=[],O=0;O<s.length;O++)P.push(R[O][m]);if(P[0]&&P.push(P[0].slice()),r){var b=A(c,h,m);c[b].push(new D.Polyline({shape:{points:P}}))}if(l&&E){var b=A(d,f,m-1);d[b].push(new D.Polygon({shape:{points:P.concat(E)}}))}E=P.slice().reverse()}var N=e.getLineStyle(),_=o.getAreaStyle();w.each(d,function(G,F){this.group.add(D.mergePath(G,{style:w.defaults({stroke:"none",fill:f[F%f.length]},_),silent:!0}))},this),w.each(c,function(G,F){this.group.add(D.mergePath(G,{style:w.defaults({fill:"none",stroke:h[F%h.length]},N),silent:!0}))},this)}});Y.exports=p},74309:function(Y,V,n){n(49900),n(53099)},13960:function(Y,V,n){var T=n(3096);n(7797),n(27404),n(44526),n(84159),n(9242),T.extendComponentView({type:"single"})},14680:function(Y,V,n){var T=n(3096),L=n(39089);n(63737),n(42456),n(13695),n(2605),T.registerPreprocessor(L)},13695:function(Y,V,n){var T=n(69008),L=n(20422),M=n(64530),w=L.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,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:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});T.mixin(w,M);var C=w;Y.exports=C},2605:function(Y,V,n){var T=n(69008),L=n(9806),M=n(26237),w=n(18993),C=n(7357),D=n(22472),S=n(53654),p=n(22868),v=p.createSymbol,t=n(44815),s=n(86957),i=n(17010),a=i.encodeHTML,u=T.bind,e=T.each,o=Math.PI,r=D.extend({type:"timeline.slider",init:function(d,A){this.api=A,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(d,A,x,y){if(this.model=d,this.api=x,this.ecModel=A,this.group.removeAll(),d.get("show",!0)){var g=this._layout(d,x),m=this._createGroup("mainGroup"),b=this._createGroup("labelGroup"),I=this._axis=this._createAxis(g,d);d.formatTooltip=function(R){return a(I.scale.getLabel(R))},e(["AxisLine","AxisTick","Control","CurrentPointer"],function(R){this["_render"+R](g,m,I,d)},this),this._renderAxisLabel(g,b,I,d),this._position(g,d)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(d,A){var x=d.get("label.position"),y=d.get("orient"),g=l(d,A);x==null||x==="auto"?x=y==="horizontal"?g.y+g.height/2<A.getHeight()/2?"-":"+":g.x+g.width/2<A.getWidth()/2?"+":"-":isNaN(x)&&(x={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[y][x]);var m={horizontal:"center",vertical:x>=0||x==="+"?"left":"right"},b={horizontal:x>=0||x==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:o/2},R=y==="vertical"?g.height:g.width,E=d.getModel("controlStyle"),P=E.get("show",!0),O=P?E.get("itemSize"):0,N=P?E.get("itemGap"):0,_=O+N,G=d.get("label.rotate")||0;G=G*o/180;var F,W,U,H,z=E.get("position",!0),B=P&&E.get("showPlayBtn",!0),k=P&&E.get("showPrevBtn",!0),Z=P&&E.get("showNextBtn",!0),X=0,K=R;return z==="left"||z==="bottom"?(B&&(F=[0,0],X+=_),k&&(W=[X,0],X+=_),Z&&(U=[K-O,0],K-=_)):(B&&(F=[K-O,0],K-=_),k&&(W=[0,0],X+=_),Z&&(U=[K-O,0],K-=_)),H=[X,K],d.get("inverse")&&H.reverse(),{viewRect:g,mainLength:R,orient:y,rotation:I[y],labelRotation:G,labelPosOpt:x,labelAlign:d.get("label.align")||m[y],labelBaseline:d.get("label.verticalAlign")||d.get("label.baseline")||b[y],playPosition:F,prevBtnPosition:W,nextBtnPosition:U,axisExtent:H,controlSize:O,controlGap:N}},_position:function(d,A){var x=this._mainGroup,y=this._labelGroup,g=d.viewRect;if(d.orient==="vertical"){var m=M.create(),b=g.x,I=g.y+g.height;M.translate(m,m,[-b,-I]),M.rotate(m,m,-o/2),M.translate(m,m,[b,I]),g=g.clone(),g.applyTransform(m)}var R=W(g),E=W(x.getBoundingRect()),P=W(y.getBoundingRect()),O=x.position,N=y.position;N[0]=O[0]=R[0][0];var _=d.labelPosOpt;if(isNaN(_)){var G=_==="+"?0:1;U(O,E,R,1,G),U(N,P,R,1,1-G)}else{var G=_>=0?0:1;U(O,E,R,1,G),N[1]=O[1]+_}x.attr("position",O),y.attr("position",N),x.rotation=y.rotation=d.rotation,F(x),F(y);function F(H){var z=H.position;H.origin=[R[0][0]-z[0],R[1][0]-z[1]]}function W(H){return[[H.x,H.x+H.width],[H.y,H.y+H.height]]}function U(H,z,B,k,Z){H[k]+=B[k][Z]-z[k][Z]}},_createAxis:function(d,A){var x=A.getData(),y=A.get("axisType"),g=t.createScaleByModel(A,y);g.getTicks=function(){return x.mapArray(["value"],function(I){return I})};var m=x.getDataExtent("value");g.setExtent(m[0],m[1]),g.niceTicks();var b=new S("value",g,d.axisExtent,y);return b.model=A,b},_createGroup:function(d){var A=this["_"+d]=new w.Group;return this.group.add(A),A},_renderAxisLine:function(d,A,x,y){var g=x.getExtent();y.get("lineStyle.show")&&A.add(new w.Line({shape:{x1:g[0],y1:0,x2:g[1],y2:0},style:T.extend({lineCap:"round"},y.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(d,A,x,y){var g=y.getData(),m=x.scale.getTicks();e(m,function(b){var I=x.dataToCoord(b),R=g.getItemModel(b),E=R.getModel("itemStyle"),P=R.getModel("emphasis.itemStyle"),O={position:[I,0],onclick:u(this._changeTimeline,this,b)},N=f(R,E,A,O);w.setHoverStyle(N,P.getItemStyle()),R.get("tooltip")?(N.dataIndex=b,N.dataModel=y):N.dataIndex=N.dataModel=null},this)},_renderAxisLabel:function(d,A,x,y){var g=x.getLabelModel();if(g.get("show")){var m=y.getData(),b=x.getViewLabels();e(b,function(I){var R=I.tickValue,E=m.getItemModel(R),P=E.getModel("label"),O=E.getModel("emphasis.label"),N=x.dataToCoord(I.tickValue),_=new w.Text({position:[N,0],rotation:d.labelRotation-d.rotation,onclick:u(this._changeTimeline,this,R),silent:!1});w.setTextStyle(_.style,P,{text:I.formattedLabel,textAlign:d.labelAlign,textVerticalAlign:d.labelBaseline}),A.add(_),w.setHoverStyle(_,w.setTextStyle({},O))},this)}},_renderControl:function(d,A,x,y){var g=d.controlSize,m=d.rotation,b=y.getModel("controlStyle").getItemStyle(),I=y.getModel("emphasis.controlStyle").getItemStyle(),R=[0,-g/2,g,g],E=y.getPlayState(),P=y.get("inverse",!0);O(d.nextBtnPosition,"controlStyle.nextIcon",u(this._changeTimeline,this,P?"-":"+")),O(d.prevBtnPosition,"controlStyle.prevIcon",u(this._changeTimeline,this,P?"+":"-")),O(d.playPosition,"controlStyle."+(E?"stopIcon":"playIcon"),u(this._handlePlayClick,this,!E),!0);function O(N,_,G,F){if(N){var W={position:N,origin:[g/2,0],rotation:F?-m:0,rectHover:!0,style:b,onclick:G},U=h(y,_,R,W);A.add(U),w.setHoverStyle(U,I)}}},_renderCurrentPointer:function(d,A,x,y){var g=y.getData(),m=y.getCurrentIndex(),b=g.getItemModel(m).getModel("checkpointStyle"),I=this,R={onCreate:function(E){E.draggable=!0,E.drift=u(I._handlePointerDrag,I),E.ondragend=u(I._handlePointerDragend,I),c(E,m,x,y,!0)},onUpdate:function(E){c(E,m,x,y)}};this._currentPointer=f(b,b,this._mainGroup,{},this._currentPointer,R)},_handlePlayClick:function(d){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:d,from:this.uid})},_handlePointerDrag:function(d,A,x){this._clearTimer(),this._pointerChangeTimeline([x.offsetX,x.offsetY])},_handlePointerDragend:function(d){this._pointerChangeTimeline([d.offsetX,d.offsetY],!0)},_pointerChangeTimeline:function(d,A){var x=this._toAxisCoord(d)[0],y=this._axis,g=s.asc(y.getExtent().slice());x>g[1]&&(x=g[1]),x<g[0]&&(x=g[0]),this._currentPointer.position[0]=x,this._currentPointer.dirty();var m=this._findNearestTick(x),b=this.model;(A||m!==b.getCurrentIndex()&&b.get("realtime"))&&this._changeTimeline(m)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(u(d,this),this.model.get("playInterval")));function d(){var A=this.model;this._changeTimeline(A.getCurrentIndex()+(A.get("rewind",!0)?-1:1))}},_toAxisCoord:function(d){var A=this._mainGroup.getLocalTransform();return w.applyTransform(d,A,!0)},_findNearestTick:function(d){var A=this.model.getData(),x=1/0,y,g=this._axis;return A.each(["value"],function(m,b){var I=g.dataToCoord(m),R=Math.abs(I-d);R<x&&(x=R,y=b)}),y},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(d){var A=this.model.getCurrentIndex();d==="+"?d=A+1:d==="-"&&(d=A-1),this.api.dispatchAction({type:"timelineChange",currentIndex:d,from:this.uid})}});function l(d,A){return C.getLayoutRect(d.getBoxLayoutParams(),{width:A.getWidth(),height:A.getHeight()},d.get("padding"))}function h(d,A,x,y){var g=w.makePath(d.get(A).replace(/^path:\/\//,""),T.clone(y||{}),new L(x[0],x[1],x[2],x[3]),"center");return g}function f(d,A,x,y,g,m){var b=A.get("color");if(g)g.setColor(b),x.add(g),m&&m.onUpdate(g);else{var I=d.get("symbol");g=v(I,-1,-1,2,2,b),g.setStyle("strokeNoScale",!0),x.add(g),m&&m.onCreate(g)}var R=A.getItemStyle(["color","symbol","symbolSize"]);g.setStyle(R),y=T.merge({rectHover:!0,z2:100},y,!0);var E=d.get("symbolSize");E=E instanceof Array?E.slice():[+E,+E],E[0]/=2,E[1]/=2,y.scale=E;var P=d.get("symbolOffset");if(P){var O=y.position=y.position||[0,0];O[0]+=s.parsePercent(P[0],E[0]),O[1]+=s.parsePercent(P[1],E[1])}var N=d.get("symbolRotate");return y.rotation=(N||0)*Math.PI/180||0,g.attr(y),g.updateTransform(),g}function c(d,A,x,y,g){if(!d.dragging){var m=y.getModel("checkpointStyle"),b=x.dataToCoord(y.getData().get(["value"],A));g||!m.get("animation",!0)?d.attr({position:[b,0]}):(d.stopAnimation(!0),d.animateTo({position:[b,0]},m.get("animationDuration",!0),m.get("animationEasing",!0)))}}Y.exports=r},53654:function(Y,V,n){var T=n(69008),L=n(97694),M=function(C,D,S,p){L.call(this,C,D,S),this.type=p||"value",this.model=null};M.prototype={constructor:M,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},T.inherits(M,L);var w=M;Y.exports=w},20422:function(Y,V,n){var T=n(69008),L=n(16172),M=n(39177),w=n(90830),C=L.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,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:[]},init:function(S,p,v){this._data,this._names,this.mergeDefaultAndTheme(S,v),this._initData()},mergeOption:function(S){C.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(S){S==null&&(S=this.option.currentIndex);var p=this._data.count();this.option.loop?S=(S%p+p)%p:(S>=p&&(S=p-1),S<0&&(S=0)),this.option.currentIndex=S},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(S){this.option.autoPlay=!!S},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var S=this.option,p=S.data||[],v=S.axisType,t=this._names=[];if(v==="category"){var s=[];T.each(p,function(u,e){var o=w.getDataItemValue(u),r;T.isObject(u)?(r=T.clone(u),r.value=e):r=e,s.push(r),!T.isString(o)&&(o==null||isNaN(o))&&(o=""),t.push(o+"")}),p=s}var i={category:"ordinal",time:"time"}[v]||"number",a=this._data=new M([{name:"value",type:i}],this);a.initData(p,t)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),D=C;Y.exports=D},22472:function(Y,V,n){var T=n(36851),L=T.extend({type:"timeline"});Y.exports=L},39089:function(Y,V,n){var T=n(69008);function L(D){var S=D&&D.timeline;T.isArray(S)||(S=S?[S]:[]),T.each(S,function(p){p&&M(p)})}function M(D){var S=D.type,p={number:"value",time:"time"};if(p[S]&&(D.axisType=p[S],delete D.type),w(D),C(D,"controlPosition")){var v=D.controlStyle||(D.controlStyle={});C(v,"position")||(v.position=D.controlPosition),v.position==="none"&&!C(v,"show")&&(v.show=!1,delete v.position),delete D.controlPosition}T.each(D.data||[],function(t){T.isObject(t)&&!T.isArray(t)&&(!C(t,"value")&&C(t,"name")&&(t.value=t.name),w(t))})}function w(D){var S=D.itemStyle||(D.itemStyle={}),p=S.emphasis||(S.emphasis={}),v=D.label||D.label||{},t=v.normal||(v.normal={}),s={normal:1,emphasis:1};T.each(v,function(i,a){!s[a]&&!C(t,a)&&(t[a]=i)}),p.label&&!C(v,"emphasis")&&(v.emphasis=p.label,delete p.label)}function C(D,S){return D.hasOwnProperty(S)}Y.exports=L},42456:function(Y,V,n){var T=n(3096),L=n(69008);T.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(M,w){var C=w.getComponent("timeline");return C&&M.currentIndex!=null&&(C.setCurrentIndex(M.currentIndex),!C.get("loop",!0)&&C.isIndexMax()&&C.setPlayState(!1)),w.resetOption("timeline"),L.defaults({currentIndex:C.option.currentIndex},M)}),T.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(M,w){var C=w.getComponent("timeline");C&&M.playState!=null&&C.setPlayState(M.playState)})},63737:function(Y,V,n){var T=n(16172);T.registerSubTypeDefaulter("timeline",function(){return"slider"})},49668:function(Y,V,n){var T=n(69008),L=n(3096),M=n(18993),w=n(7357),C=w.getLayoutRect,D=n(17010),S=D.windowOpen;L.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,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:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),L.extendComponentView({type:"title",render:function(p,v,t){if(this.group.removeAll(),!!p.get("show")){var s=this.group,i=p.getModel("textStyle"),a=p.getModel("subtextStyle"),u=p.get("textAlign"),e=T.retrieve2(p.get("textBaseline"),p.get("textVerticalAlign")),o=new M.Text({style:M.setTextStyle({},i,{text:p.get("text"),textFill:i.getTextColor()},{disableBox:!0}),z2:10}),r=o.getBoundingRect(),l=p.get("subtext"),h=new M.Text({style:M.setTextStyle({},a,{text:l,textFill:a.getTextColor(),y:r.height+p.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),f=p.get("link"),c=p.get("sublink"),d=p.get("triggerEvent",!0);o.silent=!f&&!d,h.silent=!c&&!d,f&&o.on("click",function(){S(f,"_"+p.get("target"))}),c&&h.on("click",function(){S(f,"_"+p.get("subtarget"))}),o.eventData=h.eventData=d?{componentType:"title",componentIndex:p.componentIndex}:null,s.add(o),l&&s.add(h);var A=s.getBoundingRect(),x=p.getBoxLayoutParams();x.width=A.width,x.height=A.height;var y=C(x,{width:t.getWidth(),height:t.getHeight()},p.get("padding"));u||(u=p.get("left")||p.get("right"),u==="middle"&&(u="center"),u==="right"?y.x+=y.width:u==="center"&&(y.x+=y.width/2)),e||(e=p.get("top")||p.get("bottom"),e==="center"&&(e="middle"),e==="bottom"?y.y+=y.height:e==="middle"&&(y.y+=y.height/2),e=e||"top"),s.attr("position",[y.x,y.y]);var g={textAlign:u,textVerticalAlign:e};o.setStyle(g),h.setStyle(g),A=s.getBoundingRect();var m=y.margin,b=p.getItemStyle(["color","opacity"]);b.fill=p.get("backgroundColor");var I=new M.Rect({shape:{x:A.x-m[3],y:A.y-m[0],width:A.width+m[1]+m[3],height:A.height+m[0]+m[2],r:p.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});s.add(I)}}})},98018:function(Y,V,n){n(3212),n(69380),n(92957),n(41122),n(62232),n(89457),n(94638)},3212:function(Y,V,n){var T=n(3096),L=n(69008),M=n(34031),w=T.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){w.superApply(this,"optionUpdated",arguments),L.each(this.option.feature,function(D,S){var p=M.get(S);p&&L.merge(D,p.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,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}}}),C=w;Y.exports=C},69380:function(Y,V,n){var T=n(3096),L=n(69008),M=n(63603),w=n(34031),C=n(18993),D=n(24040),S=n(82383),p=n(98449),v=T.extendComponentView({type:"toolbox",render:function(s,i,a,u){var e=this.group;if(e.removeAll(),!s.get("show"))return;var o=+s.get("itemSize"),r=s.get("feature")||{},l=this._features||(this._features={}),h=[];L.each(r,function(d,A){h.push(A)}),new S(this._featureNames||[],h).add(f).update(f).remove(L.curry(f,null)).execute(),this._featureNames=h;function f(d,A){var x=h[d],y=h[A],g=r[x],m=new D(g,s,s.ecModel),b;if(u&&u.newTitle!=null&&u.featureName===x&&(g.title=u.newTitle),x&&!y){if(t(x))b={model:m,onclick:m.option.onclick,featureName:x};else{var I=w.get(x);if(!I)return;b=new I(m,i,a)}l[x]=b}else{if(b=l[y],!b)return;b.model=m,b.ecModel=i,b.api=a}if(!x&&y){b.dispose&&b.dispose(i,a);return}if(!m.get("show")||b.unusable){b.remove&&b.remove(i,a);return}c(m,b,x),m.setIconStatus=function(R,E){var P=this.option,O=this.iconPaths;P.iconStatus=P.iconStatus||{},P.iconStatus[R]=E,O[R]&&O[R].trigger(E)},b.render&&b.render(m,i,a,u)}function c(d,A,x){var y=d.getModel("iconStyle"),g=d.getModel("emphasis.iconStyle"),m=A.getIcons?A.getIcons():d.get("icon"),b=d.get("title")||{};if(typeof m=="string"){var I=m,R=b;m={},b={},m[x]=I,b[x]=R}var E=d.iconPaths={};L.each(m,function(P,O){var N=C.createIcon(P,{},{x:-o/2,y:-o/2,width:o,height:o});N.setStyle(y.getItemStyle()),N.hoverStyle=g.getItemStyle(),N.setStyle({text:b[O],textAlign:g.get("textAlign"),textBorderRadius:g.get("textBorderRadius"),textPadding:g.get("textPadding"),textFill:null});var _=s.getModel("tooltip");_&&_.get("show")&&N.attr("tooltip",L.extend({content:b[O],formatter:_.get("formatter",!0)||function(){return b[O]},formatterParams:{componentType:"toolbox",name:O,title:b[O],$vars:["name","title"]},position:_.get("position",!0)||"bottom"},_.option)),C.setHoverStyle(N),s.get("showTitle")&&(N.__title=b[O],N.on("mouseover",function(){var G=g.getItemStyle(),F=s.get("orient")==="vertical"?s.get("right")==null?"right":"left":s.get("bottom")==null?"bottom":"top";N.setStyle({textFill:g.get("textFill")||G.fill||G.stroke||"#000",textBackgroundColor:g.get("textBackgroundColor"),textPosition:g.get("textPosition")||F})}).on("mouseout",function(){N.setStyle({textFill:null,textBackgroundColor:null})})),N.trigger(d.get("iconStatus."+O)||"normal"),e.add(N),N.on("click",L.bind(A.onclick,A,i,a,O)),E[O]=N})}p.layout(e,s,a),e.add(p.makeBackground(e.getBoundingRect(),s)),e.eachChild(function(d){var A=d.__title,x=d.hoverStyle;if(x&&A){var y=M.getBoundingRect(A,M.makeFont(x)),g=d.position[0]+e.position[0],m=d.position[1]+e.position[1]+o,b=!1;m+y.height>a.getHeight()&&(x.textPosition="top",b=!0);var I=b?-5-y.height:o+8;g+y.width/2>a.getWidth()?(x.textPosition=["100%",I],x.textAlign="right"):g-y.width/2<0&&(x.textPosition=[0,I],x.textAlign="left")}})},updateView:function(s,i,a,u){L.each(this._features,function(e){e.updateView&&e.updateView(e.model,i,a,u)})},remove:function(s,i){L.each(this._features,function(a){a.remove&&a.remove(s,i)}),this.group.removeAll()},dispose:function(s,i){L.each(this._features,function(a){a.dispose&&a.dispose(s,i)})}});function t(s){return s.indexOf("my")===0}Y.exports=v},85738:function(Y,V,n){var T=n(69008),L=n(34031),M=n(73315),w=M.toolbox.brush;function C(p,v,t){this.model=p,this.ecModel=v,this.api=t,this._brushType,this._brushMode}C.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],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.clone(w.title)};var D=C.prototype;D.render=D.updateView=function(p,v,t){var s,i,a;v.eachComponent({mainType:"brush"},function(u){s=u.brushType,i=u.brushOption.brushMode||"single",a|=u.areas.length}),this._brushType=s,this._brushMode=i,T.each(p.get("type",!0),function(u){p.setIconStatus(u,(u==="keep"?i==="multiple":u==="clear"?a:u===s)?"emphasis":"normal")})},D.getIcons=function(){var p=this.model,v=p.get("icon",!0),t={};return T.each(p.get("type",!0),function(s){v[s]&&(t[s]=v[s])}),t},D.onclick=function(p,v,t){var s=this._brushType,i=this._brushMode;t==="clear"?(v.dispatchAction({type:"axisAreaSelect",intervals:[]}),v.dispatchAction({type:"brush",command:"clear",areas:[]})):v.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:t==="keep"?s:s===t?!1:t,brushMode:t==="keep"?i==="multiple"?"single":"multiple":i}})},L.register("brush",C);var S=C;Y.exports=S},62232:function(Y,V,n){var T=n(3096),L=n(69008),M=n(92462),w=n(73315),C=n(34031),D=w.toolbox.dataView,S=new Array(60).join("-"),p=" ";function v(d){var A={},x=[],y=[];return d.eachRawSeries(function(g){var m=g.coordinateSystem;if(m&&(m.type==="cartesian2d"||m.type==="polar")){var b=m.getBaseAxis();if(b.type==="category"){var I=b.dim+"_"+b.index;A[I]||(A[I]={categoryAxis:b,valueAxis:m.getOtherAxis(b),series:[]},y.push({axisDim:b.dim,axisIndex:b.index})),A[I].series.push(g)}else x.push(g)}else x.push(g)}),{seriesGroupByCategoryAxis:A,other:x,meta:y}}function t(d){var A=[];return L.each(d,function(x,y){var g=x.categoryAxis,m=x.valueAxis,b=m.dim,I=[" "].concat(L.map(x.series,function(_){return _.name})),R=[g.model.getCategories()];L.each(x.series,function(_){R.push(_.getRawData().mapArray(b,function(G){return G}))});for(var E=[I.join(p)],P=0;P<R[0].length;P++){for(var O=[],N=0;N<R.length;N++)O.push(R[N][P]);E.push(O.join(p))}A.push(E.join(`
`))}),A.join(`
`+S+`
`)}function s(d){return L.map(d,function(A){var x=A.getRawData(),y=[A.name],g=[];return x.each(x.dimensions,function(){for(var m=arguments.length,b=arguments[m-1],I=x.getName(b),R=0;R<m-1;R++)g[R]=arguments[R];y.push((I?I+p:"")+g.join(p))}),y.join(`
`)}).join(`
`+S+`
`)}function i(d){var A=v(d);return{value:L.filter([t(A.seriesGroupByCategoryAxis),s(A.other)],function(x){return x.replace(/[\n\t\s]/g,"")}).join(`
`+S+`
`),meta:A.meta}}function a(d){return d.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function u(d){var A=d.slice(0,d.indexOf(`
`));if(A.indexOf(p)>=0)return!0}var e=new RegExp("["+p+"]+","g");function o(d){for(var A=d.split(/\n+/g),x=a(A.shift()).split(e),y=[],g=L.map(x,function(R){return{name:R,data:[]}}),m=0;m<A.length;m++){var b=a(A[m]).split(e);y.push(b.shift());for(var I=0;I<b.length;I++)g[I]&&(g[I].data[m]=b[I])}return{series:g,categories:y}}function r(d){for(var A=d.split(/\n+/g),x=a(A.shift()),y=[],g=0;g<A.length;g++){var m=a(A[g]).split(e),b="",I,R=!1;isNaN(m[0])?(R=!0,b=m[0],m=m.slice(1),y[g]={name:b,value:[]},I=y[g].value):I=y[g]=[];for(var E=0;E<m.length;E++)I.push(+m[E]);I.length===1&&(R?y[g].value=I[0]:y[g]=I[0])}return{name:x,data:y}}function l(d,A){var x=d.split(new RegExp(`
*`+S+`
*`,"g")),y={series:[]};return L.each(x,function(g,m){if(u(g)){var b=o(g),I=A[m],R=I.axisDim+"Axis";I&&(y[R]=y[R]||[],y[R][I.axisIndex]={data:b.categories},y.series=y.series.concat(b.series))}else{var b=r(g);y.series.push(b)}}),y}function h(d){this._dom=null,this.model=d}h.defaultOption={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:L.clone(D.title),lang:L.clone(D.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h.prototype.onclick=function(d,A){var x=A.getDom(),y=this.model;this._dom&&x.removeChild(this._dom);var g=document.createElement("div");g.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",g.style.backgroundColor=y.get("backgroundColor")||"#fff";var m=document.createElement("h4"),b=y.get("lang")||[];m.innerHTML=b[0]||y.get("title"),m.style.cssText="margin: 10px 20px;",m.style.color=y.get("textColor");var I=document.createElement("div"),R=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var E=y.get("optionToContent"),P=y.get("contentToOption"),O=i(d);if(typeof E=="function"){var N=E(A.getOption());typeof N=="string"?I.innerHTML=N:L.isDom(N)&&I.appendChild(N)}else I.appendChild(R),R.readOnly=y.get("readOnly"),R.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",R.style.color=y.get("textColor"),R.style.borderColor=y.get("textareaBorderColor"),R.style.backgroundColor=y.get("textareaColor"),R.value=O.value;var _=O.meta,G=document.createElement("div");G.style.cssText="position:absolute;bottom:0;left:0;right:0;";var F="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",W=document.createElement("div"),U=document.createElement("div");F+=";background-color:"+y.get("buttonColor"),F+=";color:"+y.get("buttonTextColor");var H=this;function z(){x.removeChild(g),H._dom=null}M.addEventListener(W,"click",z),M.addEventListener(U,"click",function(){var B;try{typeof P=="function"?B=P(I,A.getOption()):B=l(R.value,_)}catch(k){throw z(),new Error("Data view format error "+k)}B&&A.dispatchAction({type:"changeDataView",newOption:B}),z()}),W.innerHTML=b[1],U.innerHTML=b[2],U.style.cssText=F,W.style.cssText=F,!y.get("readOnly")&&G.appendChild(U),G.appendChild(W),g.appendChild(m),g.appendChild(I),g.appendChild(G),I.style.height=x.clientHeight-80+"px",x.appendChild(g),this._dom=g},h.prototype.remove=function(d,A){this._dom&&A.getDom().removeChild(this._dom)},h.prototype.dispose=function(d,A){this.remove(d,A)};function f(d,A){return L.map(d,function(x,y){var g=A&&A[y];return L.isObject(g)&&!L.isArray(g)?(L.isObject(x)&&!L.isArray(x)&&(x=x.value),L.defaults({value:x},g)):x})}C.register("dataView",h),T.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(d,A){var x=[];L.each(d.newOption.series,function(y){var g=A.getSeriesByName(y.name)[0];if(!g)x.push(L.extend({type:"scatter"},y));else{var m=g.get("data");x.push({name:y.name,data:f(y.data,m)})}}),A.mergeOption(L.defaults({series:x},d.newOption))});var c=h;Y.exports=c},89457:function(Y,V,n){var T=n(3096),L=n(69008),M=n(7430),w=n(98582),C=n(8338),D=n(98810),S=n(73315),p=n(34031);n(20393);var v=S.toolbox.dataZoom,t=L.each,s="\0_ec_\0toolbox-dataZoom_";function i(h,f,c){(this._brushController=new M(c.getZr())).on("brush",L.bind(this._onBrush,this)).mount(),this._isZoomActive}i.defaultOption={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:L.clone(v.title)};var a=i.prototype;a.render=function(h,f,c,d){this.model=h,this.ecModel=f,this.api=c,r(h,f,this,d,c),o(h,f)},a.onclick=function(h,f,c){u[c].call(this)},a.remove=function(h,f){this._brushController.unmount()},a.dispose=function(h,f){this._brushController.dispose()};var u={zoom:function(){var h=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:h})},back:function(){this._dispatchZoomAction(C.pop(this.ecModel))}};a._onBrush=function(h,f){if(!f.isEnd||!h.length)return;var c={},d=this.ecModel;this._brushController.updateCovers([]);var A=new w(e(this.model.option),d,{include:["grid"]});A.matchOutputRanges(h,d,function(g,m,b){if(b.type==="cartesian2d"){var I=g.brushType;I==="rect"?(x("x",b,m[0]),x("y",b,m[1])):x({lineX:"x",lineY:"y"}[I],b,m)}}),C.push(d,c),this._dispatchZoomAction(c);function x(g,m,b){var I=m.getAxis(g),R=I.model,E=y(g,R,d),P=E.findRepresentativeAxisProxy(R).getMinMaxSpan();(P.minValueSpan!=null||P.maxValueSpan!=null)&&(b=D(0,b.slice(),I.scale.getExtent(),0,P.minValueSpan,P.maxValueSpan)),E&&(c[E.id]={dataZoomId:E.id,startValue:b[0],endValue:b[1]})}function y(g,m,b){var I;return b.eachComponent({mainType:"dataZoom",subType:"select"},function(R){var E=R.getAxisModel(g,m.componentIndex);E&&(I=R)}),I}},a._dispatchZoomAction=function(h){var f=[];t(h,function(c,d){f.push(L.clone(c))}),f.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:f})};function e(h){var f={};return L.each(["xAxisIndex","yAxisIndex"],function(c){f[c]=h[c],f[c]==null&&(f[c]="all"),(f[c]===!1||f[c]==="none")&&(f[c]=[])}),f}function o(h,f){h.setIconStatus("back",C.count(f)>1?"emphasis":"normal")}function r(h,f,c,d,A){var x=c._isZoomActive;d&&d.type==="takeGlobalCursor"&&(x=d.key==="dataZoomSelect"?d.dataZoomSelectActive:!1),c._isZoomActive=x,h.setIconStatus("zoom",x?"emphasis":"normal");var y=new w(e(h.option),f,{include:["grid"]});c._brushController.setPanels(y.makePanelOpts(A,function(g){return g.xAxisDeclared&&!g.yAxisDeclared?"lineX":!g.xAxisDeclared&&g.yAxisDeclared?"lineY":"rect"})).enableBrush(x?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}p.register("dataZoom",i),T.registerPreprocessor(function(h){if(!h)return;var f=h.dataZoom||(h.dataZoom=[]);L.isArray(f)||(h.dataZoom=f=[f]);var c=h.toolbox;if(c&&(L.isArray(c)&&(c=c[0]),c&&c.feature)){var d=c.feature.dataZoom;A("xAxis",d),A("yAxis",d)}function A(y,g){if(g){var m=y+"Index",b=g[m];b!=null&&b!=="all"&&!L.isArray(b)&&(b=b===!1||b==="none"?[]:[b]),x(y,function(I,R){if(!(b!=null&&b!=="all"&&L.indexOf(b,R)===-1)){var E={type:"select",$fromToolbox:!0,filterMode:g.filterMode||"filter",id:s+y+R};E[m]=R,f.push(E)}})}}function x(y,g){var m=h[y];L.isArray(m)||(m=m?[m]:[]),t(m,g)}});var l=i;Y.exports=l},41122:function(Y,V,n){var T=n(3096),L=n(69008),M=n(73315),w=n(34031),C=M.toolbox.magicType,D="__ec_magicType_stack__";function S(i){this.model=i}S.defaultOption={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:L.clone(C.title),option:{},seriesIndex:{}};var p=S.prototype;p.getIcons=function(){var i=this.model,a=i.get("icon"),u={};return L.each(i.get("type"),function(e){a[e]&&(u[e]=a[e])}),u};var v={line:function(i,a,u,e){if(i==="bar")return L.merge({id:a,type:"line",data:u.get("data"),stack:u.get("stack"),markPoint:u.get("markPoint"),markLine:u.get("markLine")},e.get("option.line")||{},!0)},bar:function(i,a,u,e){if(i==="line")return L.merge({id:a,type:"bar",data:u.get("data"),stack:u.get("stack"),markPoint:u.get("markPoint"),markLine:u.get("markLine")},e.get("option.bar")||{},!0)},stack:function(i,a,u,e){var o=u.get("stack")===D;if(i==="line"||i==="bar")return e.setIconStatus("stack",o?"normal":"emphasis"),L.merge({id:a,stack:o?"":D},e.get("option.stack")||{},!0)}},t=[["line","bar"],["stack"]];p.onclick=function(i,a,u){var e=this.model,o=e.get("seriesIndex."+u);if(v[u]){var r={series:[]},l=function(c){var d=c.subType,A=c.id,x=v[u](d,A,c,e);x&&(L.defaults(x,c.option),r.series.push(x));var y=c.coordinateSystem;if(y&&y.type==="cartesian2d"&&(u==="line"||u==="bar")){var g=y.getAxesByScale("ordinal")[0];if(g){var m=g.dim,b=m+"Axis",I=i.queryComponents({mainType:b,index:c.get(name+"Index"),id:c.get(name+"Id")})[0],R=I.componentIndex;r[b]=r[b]||[];for(var E=0;E<=R;E++)r[b][R]=r[b][R]||{};r[b][R].boundaryGap=u==="bar"}}};L.each(t,function(c){L.indexOf(c,u)>=0&&L.each(c,function(d){e.setIconStatus(d,"normal")})}),e.setIconStatus(u,"emphasis"),i.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var h;if(u==="stack"){var f=r.series&&r.series[0]&&r.series[0].stack===D;h=f?L.merge({stack:C.title.tiled},C.title):L.clone(C.title)}a.dispatchAction({type:"changeMagicType",currentType:u,newOption:r,newTitle:h,featureName:"magicType"})}},T.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(i,a){a.mergeOption(i.newOption)}),w.register("magicType",S);var s=S;Y.exports=s},94638:function(Y,V,n){var T=n(3096),L=n(8338),M=n(73315),w=n(34031),C=M.toolbox.restore;function D(v){this.model=v}D.defaultOption={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:C.title};var S=D.prototype;S.onclick=function(v,t,s){L.clear(v),t.dispatchAction({type:"restore",from:this.uid})},w.register("restore",D),T.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(v,t){t.resetOption("recreate")});var p=D;Y.exports=p},92957:function(Y,V,n){var T=n(12973),L=n(73315),M=n(34031),w=L.toolbox.saveAsImage;function C(p){this.model=p}C.defaultOption={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:w.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:w.lang.slice()},C.prototype.unusable=!T.canvasSupported;var D=C.prototype;D.onclick=function(p,v){var t=this.model,s=t.get("name")||p.get("title.0.text")||"echarts",i=v.getZr().painter.getType()==="svg",a=i?"svg":t.get("type",!0)||"png",u=v.getConnectedDataURL({type:a,backgroundColor:t.get("backgroundColor",!0)||p.get("backgroundColor")||"#fff",connectedBackgroundColor:t.get("connectedBackgroundColor"),excludeComponents:t.get("excludeComponents"),pixelRatio:t.get("pixelRatio")});if(typeof MouseEvent=="function"&&!T.browser.ie&&!T.browser.edge){var e=document.createElement("a");e.download=s+"."+a,e.target="_blank",e.href=u;var o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});e.dispatchEvent(o)}else if(window.navigator.msSaveOrOpenBlob){for(var r=atob(u.split(",")[1]),l=r.length,h=new Uint8Array(l);l--;)h[l]=r.charCodeAt(l);var f=new Blob([h]);window.navigator.msSaveOrOpenBlob(f,s+"."+a)}else{var c=t.get("lang"),d='<body style="margin:0;"><img src="'+u+'" style="max-width:100%;" title="'+(c&&c[0]||"")+'" /></body>',A=window.open();A.document.write(d)}},M.register("saveAsImage",C);var S=C;Y.exports=S},34031:function(Y,V){var n={};function T(M,w){n[M]=w}function L(M){return n[M]}V.register=T,V.get=L},81584:function(Y,V,n){var T=n(3096);n(84159),n(34513),n(75250),T.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),T.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},98306:function(Y,V,n){var T=n(69008),L=n(83720),M=n(92462),w=n(12513),C=n(12973),D=n(17010),S=T.each,p=D.toCamelCase,v=["","-webkit-","-moz-","-o-"],t="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function s(r){var l="cubic-bezier(0.23, 1, 0.32, 1)",h="left "+r+"s "+l+",top "+r+"s "+l;return T.map(v,function(f){return f+"transition:"+h}).join(";")}function i(r){var l=[],h=r.get("fontSize"),f=r.getTextColor();return f&&l.push("color:"+f),l.push("font:"+r.getFont()),h&&l.push("line-height:"+Math.round(h*3/2)+"px"),S(["decoration","align"],function(c){var d=r.get(c);d&&l.push("text-"+c+":"+d)}),l.join(";")}function a(r){var l=[],h=r.get("transitionDuration"),f=r.get("backgroundColor"),c=r.getModel("textStyle"),d=r.get("padding");return h&&l.push(s(h)),f&&(C.canvasSupported?l.push("background-Color:"+f):(l.push("background-Color:#"+L.toHex(f)),l.push("filter:alpha(opacity=70)"))),S(["width","color","radius"],function(A){var x="border-"+A,y=p(x),g=r.get(y);g!=null&&l.push(x+":"+g+(A==="color"?"":"px"))}),l.push(i(c)),d!=null&&l.push("padding:"+D.normalizeCssArray(d).join("px ")+"px"),l.join(";")+";"}function u(r,l,h,f,c){var d=l&&l.painter;if(h){var A=d&&d.getViewportRoot();A&&w.transformLocalCoord(r,A,document.body,f,c)}else{r[0]=f,r[1]=c;var x=d&&d.getViewportRootOffset();x&&(r[0]+=x.offsetLeft,r[1]+=x.offsetTop)}}function e(r,l,h){if(C.wxa)return null;var f=document.createElement("div");f.domBelongToZr=!0,this.el=f;var c=this._zr=l.getZr(),d=this._appendToBody=h&&h.appendToBody;this._styleCoord=[0,0],u(this._styleCoord,c,d,l.getWidth()/2,l.getHeight()/2),d?document.body.appendChild(f):r.appendChild(f),this._container=r,this._show=!1,this._hideTimeout;var A=this;f.onmouseenter=function(){A._enterable&&(clearTimeout(A._hideTimeout),A._show=!0),A._inContent=!0},f.onmousemove=function(x){if(x=x||window.event,!A._enterable){var y=c.handler,g=c.painter.getViewportRoot();M.normalizeEvent(g,x,!0),y.dispatch("mousemove",x)}},f.onmouseleave=function(){A._enterable&&A._show&&A.hideLater(A._hideDelay),A._inContent=!1}}e.prototype={constructor:e,_enterable:!0,update:function(){var r=this._container,l=r.currentStyle||document.defaultView.getComputedStyle(r),h=r.style;h.position!=="absolute"&&l.position!=="absolute"&&(h.position="relative")},show:function(r){clearTimeout(this._hideTimeout);var l=this.el,h=this._styleCoord;l.style.cssText=t+a(r)+";left:"+h[0]+"px;top:"+h[1]+"px;"+(r.get("extraCssText")||""),l.style.display=l.innerHTML?"block":"none",l.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(r){this.el.innerHTML=r==null?"":r},setEnterable:function(r){this._enterable=r},getSize:function(){var r=this.el;return[r.clientWidth,r.clientHeight]},moveTo:function(r,l){var h=this._styleCoord;u(h,this._zr,this._appendToBody,r,l);var f=this.el.style;f.left=h[0]+"px",f.top=h[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(r){this._show&&!(this._inContent&&this._enterable)&&(r?(this._hideDelay=r,this._show=!1,this._hideTimeout=setTimeout(T.bind(this.hide,this),r)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var r=this.el.clientWidth,l=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(this.el);h&&(r+=parseInt(h.borderLeftWidth,10)+parseInt(h.borderRightWidth,10),l+=parseInt(h.borderTopWidth,10)+parseInt(h.borderBottomWidth,10))}return{width:r,height:l}}};var o=e;Y.exports=o},34513:function(Y,V,n){var T=n(3096),L=T.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});Y.exports=L},28817:function(Y,V,n){var T=n(69008),L=n(99999);function M(C){this._zr=C.getZr(),this._show=!1,this._hideTimeout}M.prototype={constructor:M,_enterable:!0,update:function(){},show:function(C){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(C,D,S){this.el&&this._zr.remove(this.el);for(var p={},v=C,t="{marker",s="|}",i=v.indexOf(t);i>=0;){var a=v.indexOf(s),u=v.substr(i+t.length,a-i-t.length);u.indexOf("sub")>-1?p["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:D[u],textOffset:[3,0]}:p["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:D[u]},v=v.substr(a+1),i=v.indexOf("{marker")}this.el=new L({style:{rich:p,text:C,textLineHeight:20,textBackgroundColor:S.get("backgroundColor"),textBorderRadius:S.get("borderRadius"),textFill:S.get("textStyle.color"),textPadding:S.get("padding")},z:S.get("z")}),this._zr.add(this.el);var e=this;this.el.on("mouseover",function(){e._enterable&&(clearTimeout(e._hideTimeout),e._show=!0),e._inContent=!0}),this.el.on("mouseout",function(){e._enterable&&e._show&&e.hideLater(e._hideDelay),e._inContent=!1})},setEnterable:function(C){this._enterable=C},getSize:function(){var C=this.el.getBoundingRect();return[C.width,C.height]},moveTo:function(C,D){this.el&&this.el.attr("position",[C,D])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(C){this._show&&!(this._inContent&&this._enterable)&&(C?(this._hideDelay=C,this._show=!1,this._hideTimeout=setTimeout(T.bind(this.hide,this),C)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var C=this.getSize();return{width:C[0],height:C[1]}}};var w=M;Y.exports=w},75250:function(Y,V,n){var T=n(3096),L=n(69008),M=n(12973),w=n(98306),C=n(28817),D=n(17010),S=n(86957),p=n(18993),v=n(65881),t=n(7357),s=n(24040),i=n(46243),a=n(44815),u=n(23263),e=n(90830),o=e.getTooltipRenderMode,r=L.bind,l=L.each,h=S.parsePercent,f=new p.Rect({shape:{x:-1,y:-1,width:2,height:2}}),c=T.extendComponentView({type:"tooltip",init:function(b,I){if(!M.node){var R=b.getComponent("tooltip"),E=R.get("renderMode");this._renderMode=o(E);var P;this._renderMode==="html"?(P=new w(I.getDom(),I,{appendToBody:R.get("appendToBody",!0)}),this._newLine="<br/>"):(P=new C(I),this._newLine=`
`),this._tooltipContent=P}},render:function(b,I,R){if(!M.node){this.group.removeAll(),this._tooltipModel=b,this._ecModel=I,this._api=R,this._lastDataByCoordSys=null,this._alwaysShowContent=b.get("alwaysShowContent");var E=this._tooltipContent;E.update(),E.setEnterable(b.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var b=this._tooltipModel,I=b.get("triggerOn");i.register("itemTooltip",this._api,r(function(R,E,P){I!=="none"&&(I.indexOf(R)>=0?this._tryShow(E,P):R==="leave"&&this._hide(P))},this))},_keepShow:function(){var b=this._tooltipModel,I=this._ecModel,R=this._api;if(this._lastX!=null&&this._lastY!=null&&b.get("triggerOn")!=="none"){var E=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!R.isDisposed()&&E.manuallyShowTip(b,I,R,{x:E._lastX,y:E._lastY})})}},manuallyShowTip:function(b,I,R,E){if(!(E.from===this.uid||M.node)){var P=A(E,R);this._ticket="";var O=E.dataByCoordSys;if(E.tooltip&&E.x!=null&&E.y!=null){var N=f;N.position=[E.x,E.y],N.update(),N.tooltip=E.tooltip,this._tryShow({offsetX:E.x,offsetY:E.y,target:N},P)}else if(O)this._tryShow({offsetX:E.x,offsetY:E.y,position:E.position,dataByCoordSys:E.dataByCoordSys,tooltipOption:E.tooltipOption},P);else if(E.seriesIndex!=null){if(this._manuallyAxisShowTip(b,I,R,E))return;var _=v(E,I),G=_.point[0],F=_.point[1];G!=null&&F!=null&&this._tryShow({offsetX:G,offsetY:F,position:E.position,target:_.el},P)}else E.x!=null&&E.y!=null&&(R.dispatchAction({type:"updateAxisPointer",x:E.x,y:E.y}),this._tryShow({offsetX:E.x,offsetY:E.y,position:E.position,target:R.getZr().findHover(E.x,E.y).target},P))}},manuallyHideTip:function(b,I,R,E){var P=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&P.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,E.from!==this.uid&&this._hide(A(E,R))},_manuallyAxisShowTip:function(F,I,R,E){var P=E.seriesIndex,O=E.dataIndex,N=I.getComponent("axisPointer").coordSysAxesInfo;if(!(P==null||O==null||N==null)){var _=I.getSeriesByIndex(P);if(_){var G=_.getData(),F=d([G.getItemModel(O),_,(_.coordinateSystem||{}).model,F]);if(F.get("trigger")==="axis")return R.dispatchAction({type:"updateAxisPointer",seriesIndex:P,dataIndex:O,position:E.position}),!0}}},_tryShow:function(b,I){var R=b.target,E=this._tooltipModel;if(E){this._lastX=b.offsetX,this._lastY=b.offsetY;var P=b.dataByCoordSys;P&&P.length?this._showAxisTooltip(P,b):R&&R.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(b,R,I)):R&&R.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(b,R,I)):(this._lastDataByCoordSys=null,this._hide(I))}},_showOrMove:function(b,I){var R=b.get("showDelay");I=L.bind(I,this),clearTimeout(this._showTimout),R>0?this._showTimout=setTimeout(I,R):I()},_showAxisTooltip:function(b,I){var R=this._ecModel,E=this._tooltipModel,P=[I.offsetX,I.offsetY],O=[],N=[],_=d([I.tooltipOption,E]),G=this._renderMode,F=this._newLine,W={};l(b,function(H){l(H.dataByAxis,function(z){var B=R.getComponent(z.axisDim+"Axis",z.axisIndex),k=z.value,Z=[];if(!(!B||k==null)){var X=u.getValueLabel(k,B.axis,R,z.seriesDataIndices,z.valueLabelOpt);L.each(z.seriesDataIndices,function(Q){var J=R.getSeriesByIndex(Q.seriesIndex),tt=Q.dataIndexInside,q=J&&J.getDataParams(tt);if(q.axisDim=z.axisDim,q.axisIndex=z.axisIndex,q.axisType=z.axisType,q.axisId=z.axisId,q.axisValue=a.getAxisRawValue(B.axis,k),q.axisValueLabel=X,q){N.push(q);var rt=J.formatTooltip(tt,!0,null,G),$;if(L.isObject(rt)){$=rt.html;var j=rt.markers;L.merge(W,j)}else $=rt;Z.push($)}});var K=X;G!=="html"?O.push(Z.join(F)):O.push((K?D.encodeHTML(K)+F:"")+Z.join(F))}})},this),O.reverse(),O=O.join(this._newLine+this._newLine);var U=I.position;this._showOrMove(_,function(){this._updateContentNotChangedOnAxis(b)?this._updatePosition(_,U,P[0],P[1],this._tooltipContent,N):this._showTooltipContent(_,O,N,Math.random(),P[0],P[1],U,void 0,W)})},_showSeriesItemTooltip:function(b,I,R){var E=this._ecModel,P=I.seriesIndex,O=E.getSeriesByIndex(P),N=I.dataModel||O,_=I.dataIndex,G=I.dataType,F=N.getData(G),W=d([F.getItemModel(_),N,O&&(O.coordinateSystem||{}).model,this._tooltipModel]),U=W.get("trigger");if(!(U!=null&&U!=="item")){var H=N.getDataParams(_,G),z=N.formatTooltip(_,!1,G,this._renderMode),B,k;L.isObject(z)?(B=z.html,k=z.markers):(B=z,k=null);var Z="item_"+N.name+"_"+_;this._showOrMove(W,function(){this._showTooltipContent(W,B,H,Z,b.offsetX,b.offsetY,b.position,b.target,k)}),R({type:"showTip",dataIndexInside:_,dataIndex:F.getRawIndex(_),seriesIndex:P,from:this.uid})}},_showComponentItemTooltip:function(b,I,R){var E=I.tooltip;if(typeof E=="string"){var P=E;E={content:P,formatter:P}}var O=new s(E,this._tooltipModel,this._ecModel),N=O.get("content"),_=Math.random();this._showOrMove(O,function(){this._showTooltipContent(O,N,O.get("formatterParams")||{},_,b.offsetX,b.offsetY,b.position,I)}),R({type:"showTip",from:this.uid})},_showTooltipContent:function(b,I,R,E,P,O,N,_,G){if(this._ticket="",!(!b.get("showContent")||!b.get("show"))){var F=this._tooltipContent,W=b.get("formatter");N=N||b.get("position");var U=I;if(W&&typeof W=="string")U=D.formatTpl(W,R,!0);else if(typeof W=="function"){var H=r(function(z,B){z===this._ticket&&(F.setContent(B,G,b),this._updatePosition(b,N,P,O,F,R,_))},this);this._ticket=E,U=W(R,E,H)}F.setContent(U,G,b),F.show(b),this._updatePosition(b,N,P,O,F,R,_)}},_updatePosition:function(b,I,R,E,P,O,N){var _=this._api.getWidth(),G=this._api.getHeight();I=I||b.get("position");var F=P.getSize(),W=b.get("align"),U=b.get("verticalAlign"),H=N&&N.getBoundingRect().clone();if(N&&H.applyTransform(N.transform),typeof I=="function"&&(I=I([R,E],O,P.el,H,{viewSize:[_,G],contentSize:F.slice()})),L.isArray(I))R=h(I[0],_),E=h(I[1],G);else if(L.isObject(I)){I.width=F[0],I.height=F[1];var z=t.getLayoutRect(I,{width:_,height:G});R=z.x,E=z.y,W=null,U=null}else if(typeof I=="string"&&N){var B=g(I,H,F);R=B[0],E=B[1]}else{var B=x(R,E,P,_,G,W?null:20,U?null:20);R=B[0],E=B[1]}if(W&&(R-=m(W)?F[0]/2:W==="right"?F[0]:0),U&&(E-=m(U)?F[1]/2:U==="bottom"?F[1]:0),b.get("confine")){var B=y(R,E,P,_,G);R=B[0],E=B[1]}P.moveTo(R,E)},_updateContentNotChangedOnAxis:function(b){var I=this._lastDataByCoordSys,R=!!I&&I.length===b.length;return R&&l(I,function(E,P){var O=E.dataByAxis||{},N=b[P]||{},_=N.dataByAxis||[];R&=O.length===_.length,R&&l(O,function(G,F){var W=_[F]||{},U=G.seriesDataIndices||[],H=W.seriesDataIndices||[];R&=G.value===W.value&&G.axisType===W.axisType&&G.axisId===W.axisId&&U.length===H.length,R&&l(U,function(z,B){var k=H[B];R&=z.seriesIndex===k.seriesIndex&&z.dataIndex===k.dataIndex})})}),this._lastDataByCoordSys=b,!!R},_hide:function(b){this._lastDataByCoordSys=null,b({type:"hideTip",from:this.uid})},dispose:function(b,I){M.node||(this._tooltipContent.dispose(),i.unregister("itemTooltip",I))}});function d(b){for(var I=b.pop();b.length;){var R=b.pop();R&&(s.isInstance(R)&&(R=R.get("tooltip",!0)),typeof R=="string"&&(R={formatter:R}),I=new s(R,I,I.ecModel))}return I}function A(b,I){return b.dispatchAction||L.bind(I.dispatchAction,I)}function x(b,I,R,E,P,O,N){var _=R.getOuterSize(),G=_.width,F=_.height;return O!=null&&(b+G+O>E?b-=G+O:b+=O),N!=null&&(I+F+N>P?I-=F+N:I+=N),[b,I]}function y(b,I,R,E,P){var O=R.getOuterSize(),N=O.width,_=O.height;return b=Math.min(b+N,E)-N,I=Math.min(I+_,P)-_,b=Math.max(b,0),I=Math.max(I,0),[b,I]}function g(b,I,R){var E=R[0],P=R[1],O=5,N=0,_=0,G=I.width,F=I.height;switch(b){case"inside":N=I.x+G/2-E/2,_=I.y+F/2-P/2;break;case"top":N=I.x+G/2-E/2,_=I.y-P-O;break;case"bottom":N=I.x+G/2-E/2,_=I.y+F+O;break;case"left":N=I.x-E-O,_=I.y+F/2-P/2;break;case"right":N=I.x+G+O,_=I.y+F/2-P/2}return[N,_]}function m(b){return b==="center"||b==="middle"}Y.exports=c},85313:function(Y,V,n){n(3646),n(11511)},74021:function(Y,V,n){var T=n(69008),L=n(27204),M=n(86957),w=[20,140],C=L.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(p,v){C.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){C.superApply(this,"resetItemSize",arguments);var p=this.itemSize;this._orient==="horizontal"&&p.reverse(),(p[0]==null||isNaN(p[0]))&&(p[0]=w[0]),(p[1]==null||isNaN(p[1]))&&(p[1]=w[1])},_resetRange:function(){var p=this.getExtent(),v=this.option.range;!v||v.auto?(p.auto=1,this.option.range=p):T.isArray(v)&&(v[0]>v[1]&&v.reverse(),v[0]=Math.max(v[0],p[0]),v[1]=Math.min(v[1],p[1]))},completeVisualOption:function(){L.prototype.completeVisualOption.apply(this,arguments),T.each(this.stateList,function(p){var v=this.option.controller[p].symbolSize;v&&v[0]!==v[1]&&(v[0]=0)},this)},setSelected:function(p){this.option.range=p.slice(),this._resetRange()},getSelected:function(){var p=this.getExtent(),v=M.asc((this.get("range")||[]).slice());return v[0]>p[1]&&(v[0]=p[1]),v[1]>p[1]&&(v[1]=p[1]),v[0]<p[0]&&(v[0]=p[0]),v[1]<p[0]&&(v[1]=p[0]),v},getValueState:function(p){var v=this.option.range,t=this.getExtent();return(v[0]<=t[0]||v[0]<=p)&&(v[1]>=t[1]||p<=v[1])?"inRange":"outOfRange"},findTargetDataIndices:function(p){var v=[];return this.eachTargetSeries(function(t){var s=[],i=t.getData();i.each(this.getDataDimension(i),function(a,u){p[0]<=a&&a<=p[1]&&s.push(u)},this),v.push({seriesId:t.id,dataIndex:s})},this),v},getVisualMeta:function(p){var v=D(this,"outOfRange",this.getExtent()),t=D(this,"inRange",this.option.range.slice()),s=[];function i(h,f){s.push({value:h,color:p(h,f)})}for(var a=0,u=0,e=t.length,o=v.length;u<o&&(!t.length||v[u]<=t[0]);u++)v[u]<t[a]&&i(v[u],"outOfRange");for(var r=1;a<e;a++,r=0)r&&s.length&&i(t[a],"outOfRange"),i(t[a],"inRange");for(var r=1;u<o;u++)(!t.length||t[t.length-1]<v[u])&&(r&&(s.length&&i(s[s.length-1].value,"outOfRange"),r=0),i(v[u],"outOfRange"));var l=s.length;return{stops:s,outerColors:[l?s[0].color:"transparent",l?s[l-1].color:"transparent"]}}});function D(p,v,t){if(t[0]===t[1])return t.slice();for(var s=200,i=(t[1]-t[0])/s,a=t[0],u=[],e=0;e<=s&&a<t[1];e++)u.push(a),a+=i;return u.push(t[1]),u}var S=C;Y.exports=S},74870:function(Y,V,n){var T=n(69008),L=n(57123),M=n(92462),w=n(94404),C=n(18993),D=n(86957),S=n(98810),p=n(26135),v=n(90830),t=D.linearMap,s=T.each,i=Math.min,a=Math.max,u=12,e=6,o=w.extend({type:"visualMap.continuous",init:function(){o.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(x,y,g,m){(!m||m.type!=="selectDataRange"||m.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var x=this.visualMapModel,y=this.group;this._orient=x.get("orient"),this._useHandle=x.get("calculable"),this._resetInterval(),this._renderBar(y);var g=x.get("text");this._renderEndsText(y,g,0),this._renderEndsText(y,g,1),this._updateView(!0),this.renderBackground(y),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(y)},_renderEndsText:function(x,y,g){if(y){var m=y[1-g];m=m!=null?m+"":"";var b=this.visualMapModel,I=b.get("textGap"),R=b.itemSize,E=this._shapes.barGroup,P=this._applyTransform([R[0]/2,g===0?-I:R[1]+I],E),O=this._applyTransform(g===0?"bottom":"top",E),N=this._orient,_=this.visualMapModel.textStyleModel;this.group.add(new C.Text({style:{x:P[0],y:P[1],textVerticalAlign:N==="horizontal"?"middle":O,textAlign:N==="horizontal"?O:"center",text:m,textFont:_.getFont(),textFill:_.getTextColor()}}))}},_renderBar:function(x){var y=this.visualMapModel,g=this._shapes,m=y.itemSize,b=this._orient,I=this._useHandle,R=p.getItemAlign(y,this.api,m),E=g.barGroup=this._createBarGroup(R);E.add(g.outOfRange=r()),E.add(g.inRange=r(null,I?d(this._orient):null,T.bind(this._dragHandle,this,"all",!1),T.bind(this._dragHandle,this,"all",!0)));var P=y.textStyleModel.getTextRect("\u56FD"),O=a(P.width,P.height);I&&(g.handleThumbs=[],g.handleLabels=[],g.handleLabelPoints=[],this._createHandle(E,0,m,O,b,R),this._createHandle(E,1,m,O,b,R)),this._createIndicator(E,m,O,b),x.add(E)},_createHandle:function(x,y,g,m,b){var I=T.bind(this._dragHandle,this,y,!1),R=T.bind(this._dragHandle,this,y,!0),E=r(l(y,m),d(this._orient),I,R);E.position[0]=g[0],x.add(E);var P=this.visualMapModel.textStyleModel,O=new C.Text({draggable:!0,drift:I,onmousemove:function(G){M.stop(G.event)},ondragend:R,style:{x:0,y:0,text:"",textFont:P.getFont(),textFill:P.getTextColor()}});this.group.add(O);var N=[b==="horizontal"?m/2:m*1.5,b==="horizontal"?y===0?-(m*1.5):m*1.5:y===0?-m/2:m/2],_=this._shapes;_.handleThumbs[y]=E,_.handleLabelPoints[y]=N,_.handleLabels[y]=O},_createIndicator:function(x,y,g,m){var b=r([[0,0]],"move");b.position[0]=y[0],b.attr({invisible:!0,silent:!0}),x.add(b);var I=this.visualMapModel.textStyleModel,R=new C.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(R);var E=[m==="horizontal"?g/2:e+3,0],P=this._shapes;P.indicator=b,P.indicatorLabel=R,P.indicatorLabelPoint=E},_dragHandle:function(x,y,g,m){if(this._useHandle){if(this._dragging=!y,!y){var b=this._applyTransform([g,m],this._shapes.barGroup,!0);this._updateInterval(x,b[1]),this._updateView()}y===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),y?!this._hovering&&this._clearHoverLinkToSeries():c(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[x],!1)}},_resetInterval:function(){var x=this.visualMapModel,y=this._dataInterval=x.getSelected(),g=x.getExtent(),m=[0,x.itemSize[1]];this._handleEnds=[t(y[0],g,m,!0),t(y[1],g,m,!0)]},_updateInterval:function(x,y){y=y||0;var g=this.visualMapModel,m=this._handleEnds,b=[0,g.itemSize[1]];S(y,m,b,x,0);var I=g.getExtent();this._dataInterval=[t(m[0],b,I,!0),t(m[1],b,I,!0)]},_updateView:function(x){var y=this.visualMapModel,g=y.getExtent(),m=this._shapes,b=[0,y.itemSize[1]],I=x?b:this._handleEnds,R=this._createBarVisual(this._dataInterval,g,I,"inRange"),E=this._createBarVisual(g,g,b,"outOfRange");m.inRange.setStyle({fill:R.barColor,opacity:R.opacity}).setShape("points",R.barPoints),m.outOfRange.setStyle({fill:E.barColor,opacity:E.opacity}).setShape("points",E.barPoints),this._updateHandle(I,R)},_createBarVisual:function(x,y,g,m){var b={forceState:m,convertOpacityToAlpha:!0},I=this._makeColorGradient(x,b),R=[this.getControllerVisual(x[0],"symbolSize",b),this.getControllerVisual(x[1],"symbolSize",b)],E=this._createBarPoints(g,R);return{barColor:new L(0,0,0,1,I),barPoints:E,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(x,y){var g=100,m=[],b=(x[1]-x[0])/g;m.push({color:this.getControllerVisual(x[0],"color",y),offset:0});for(var I=1;I<g;I++){var R=x[0]+b*I;if(R>x[1])break;m.push({color:this.getControllerVisual(R,"color",y),offset:I/g})}return m.push({color:this.getControllerVisual(x[1],"color",y),offset:1}),m},_createBarPoints:function(x,y){var g=this.visualMapModel.itemSize;return[[g[0]-y[0],x[0]],[g[0],x[0]],[g[0],x[1]],[g[0]-y[1],x[1]]]},_createBarGroup:function(x){var y=this._orient,g=this.visualMapModel.get("inverse");return new C.Group(y==="horizontal"&&!g?{scale:x==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:y==="horizontal"&&g?{scale:x==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:y==="vertical"&&!g?{scale:x==="left"?[1,-1]:[-1,-1]}:{scale:x==="left"?[1,1]:[-1,1]})},_updateHandle:function(x,y){if(this._useHandle){var g=this._shapes,m=this.visualMapModel,b=g.handleThumbs,I=g.handleLabels;s([0,1],function(R){var E=b[R];E.setStyle("fill",y.handlesColor[R]),E.position[1]=x[R];var P=C.applyTransform(g.handleLabelPoints[R],C.getTransform(E,this.group));I[R].setStyle({x:P[0],y:P[1],text:m.formatValueText(this._dataInterval[R]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?R===0?"bottom":"top":"left",g.barGroup)})},this)}},_showIndicator:function(x,y,g,m){var b=this.visualMapModel,I=b.getExtent(),R=b.itemSize,E=[0,R[1]],P=t(x,I,E,!0),O=this._shapes,N=O.indicator;if(N){N.position[1]=P,N.attr("invisible",!1),N.setShape("points",h(!!g,m,P,R[1]));var _={convertOpacityToAlpha:!0},G=this.getControllerVisual(x,"color",_);N.setStyle("fill",G);var F=C.applyTransform(O.indicatorLabelPoint,C.getTransform(N,this.group)),W=O.indicatorLabel;W.attr("invisible",!1);var U=this._applyTransform("left",O.barGroup),H=this._orient;W.setStyle({text:(g||"")+b.formatValueText(y),textVerticalAlign:H==="horizontal"?U:"middle",textAlign:H==="horizontal"?"center":U,x:F[0],y:F[1]})}},_enableHoverLinkToSeries:function(){var x=this;this._shapes.barGroup.on("mousemove",function(y){if(x._hovering=!0,!x._dragging){var g=x.visualMapModel.itemSize,m=x._applyTransform([y.offsetX,y.offsetY],x._shapes.barGroup,!0,!0);m[1]=i(a(0,m[1]),g[1]),x._doHoverLinkToSeries(m[1],0<=m[0]&&m[0]<=g[0])}}).on("mouseout",function(){x._hovering=!1,!x._dragging&&x._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var x=this.api.getZr();this.visualMapModel.option.hoverLink?(x.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),x.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(x,y){var g=this.visualMapModel,m=g.itemSize;if(g.option.hoverLink){var b=[0,m[1]],I=g.getExtent();x=i(a(b[0],x),b[1]);var R=f(g,I,b),E=[x-R,x+R],P=t(x,b,I,!0),O=[t(E[0],b,I,!0),t(E[1],b,I,!0)];E[0]<b[0]&&(O[0]=-1/0),E[1]>b[1]&&(O[1]=1/0),y&&(O[0]===-1/0?this._showIndicator(P,O[1],"< ",R):O[1]===1/0?this._showIndicator(P,O[0],"> ",R):this._showIndicator(P,P,"\u2248 ",R));var N=this._hoverLinkDataIndices,_=[];(y||c(g))&&(_=this._hoverLinkDataIndices=g.findTargetDataIndices(O));var G=v.compressBatches(N,_);this._dispatchHighDown("downplay",p.makeHighDownBatch(G[0],g)),this._dispatchHighDown("highlight",p.makeHighDownBatch(G[1],g))}},_hoverLinkFromSeriesMouseOver:function(x){var y=x.target,g=this.visualMapModel;if(!(!y||y.dataIndex==null)){var m=this.ecModel.getSeriesByIndex(y.seriesIndex);if(g.isTargetSeries(m)){var b=m.getData(y.dataType),I=b.get(g.getDataDimension(b),y.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)}}},_hideIndicator:function(){var x=this._shapes;x.indicator&&x.indicator.attr("invisible",!0),x.indicatorLabel&&x.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var x=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",p.makeHighDownBatch(x,this.visualMapModel)),x.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var x=this.api.getZr();x.off("mouseover",this._hoverLinkFromSeriesMouseOver),x.off("mouseout",this._hideIndicator)},_applyTransform:function(x,y,g,m){var b=C.getTransform(y,m?null:this.group);return C[T.isArray(x)?"applyTransform":"transformDirection"](x,b,g)},_dispatchHighDown:function(x,y){y&&y.length&&this.api.dispatchAction({type:x,batch:y})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function r(x,y,g,m){return new C.Polygon({shape:{points:x},draggable:!!g,cursor:y,drift:g,onmousemove:function(b){M.stop(b.event)},ondragend:m})}function l(x,y){return x===0?[[0,0],[y,0],[y,-y]]:[[0,0],[y,0],[y,y]]}function h(x,y,g,m){return x?[[0,-i(y,a(g,0))],[e,0],[0,i(y,a(m-g,0))]]:[[0,0],[5,-5],[5,5]]}function f(x,y,g){var m=u/2,b=x.get("hoverLinkDataSize");return b&&(m=t(b,y,g,!0)/2),m}function c(x){var y=x.get("hoverLinkOnHandle");return!!(y==null?x.get("realtime"):y)}function d(x){return x==="vertical"?"ns-resize":"ew-resize"}var A=o;Y.exports=A},85033:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(27204),C=n(5660),D=n(45645),S=n(86957),p=S.reformIntervals,v=w.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(a,u){v.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var e=this._mode=this._determineMode();t[this._mode].call(this),this._resetSelected(a,u);var o=this.option.categories;this.resetVisual(function(r,l){e==="categories"?(r.mappingMethod="category",r.categories=M.clone(o)):(r.dataExtent=this.getExtent(),r.mappingMethod="piecewise",r.pieceList=M.map(this._pieceList,function(f){var f=M.clone(f);return l!=="inRange"&&(f.visual=null),f}))})},completeVisualOption:function(){var a=this.option,u={},e=C.listVisualTypes(),o=this.isCategory();M.each(a.pieces,function(l){M.each(e,function(h){l.hasOwnProperty(h)&&(u[h]=1)})}),M.each(u,function(l,h){var f=0;M.each(this.stateList,function(c){f|=r(a,c,h)||r(a.target,c,h)},this),!f&&M.each(this.stateList,function(c){(a[c]||(a[c]={}))[h]=D.get(h,c==="inRange"?"active":"inactive",o)})},this);function r(l,h,f){return l&&l[h]&&(M.isObject(l[h])?l[h].hasOwnProperty(f):l[h]===f)}w.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(a,u){var e=this.option,o=this._pieceList,r=(u?e:a).selected||{};if(e.selected=r,M.each(o,function(h,f){var c=this.getSelectedMapKey(h);r.hasOwnProperty(c)||(r[c]=!0)},this),e.selectedMode==="single"){var l=!1;M.each(o,function(h,f){var c=this.getSelectedMapKey(h);r[c]&&(l?r[c]=!1:l=!0)},this)}},getSelectedMapKey:function(a){return this._mode==="categories"?a.value+"":a.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var a=this.option;return a.pieces&&a.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(a){this.option.selected=M.clone(a)},getValueState:function(a){var u=C.findPieceIndex(a,this._pieceList);return u!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[u])]?"inRange":"outOfRange"},findTargetDataIndices:function(a){var u=[];return this.eachTargetSeries(function(e){var o=[],r=e.getData();r.each(this.getDataDimension(r),function(l,h){var f=C.findPieceIndex(l,this._pieceList);f===a&&o.push(h)},this),u.push({seriesId:e.id,dataIndex:o})},this),u},getRepresentValue:function(a){var u;if(this.isCategory())u=a.value;else if(a.value!=null)u=a.value;else{var e=a.interval||[];u=e[0]===-1/0&&e[1]===1/0?0:(e[0]+e[1])/2}return u},getVisualMeta:function(a){if(this.isCategory())return;var u=[],e=[],o=this;function r(c,d){var A=o.getRepresentValue({interval:c});d||(d=o.getValueState(A));var x=a(A,d);c[0]===-1/0?e[0]=x:c[1]===1/0?e[1]=x:u.push({value:c[0],color:x},{value:c[1],color:x})}var l=this._pieceList.slice();if(!l.length)l.push({interval:[-1/0,1/0]});else{var h=l[0].interval[0];h!==-1/0&&l.unshift({interval:[-1/0,h]}),h=l[l.length-1].interval[1],h!==1/0&&l.push({interval:[h,1/0]})}var f=-1/0;return M.each(l,function(c){var d=c.interval;d&&(d[0]>f&&r([f,d[0]],"outOfRange"),r(d.slice()),f=d[1])},this),{stops:u,outerColors:e}}}),t={splitNumber:function(){var a=this.option,u=this._pieceList,e=Math.min(a.precision,20),o=this.getExtent(),r=a.splitNumber;r=Math.max(parseInt(r,10),1),a.splitNumber=r;for(var l=(o[1]-o[0])/r;+l.toFixed(e)!==l&&e<5;)e++;a.precision=e,l=+l.toFixed(e),a.minOpen&&u.push({interval:[-1/0,o[0]],close:[0,0]});for(var h=0,f=o[0];h<r;f+=l,h++){var c=h===r-1?o[1]:f+l;u.push({interval:[f,c],close:[1,1]})}a.maxOpen&&u.push({interval:[o[1],1/0],close:[0,0]}),p(u),M.each(u,function(d,A){d.index=A,d.text=this.formatValueText(d.interval)},this)},categories:function(){var a=this.option;M.each(a.categories,function(u){this._pieceList.push({text:this.formatValueText(u,!0),value:u})},this),s(a,this._pieceList)},pieces:function(){var a=this.option,u=this._pieceList;M.each(a.pieces,function(e,o){M.isObject(e)||(e={value:e});var r={text:"",index:o};if(e.label!=null&&(r.text=e.label),e.hasOwnProperty("value")){var l=r.value=e.value;r.interval=[l,l],r.close=[1,1]}else{for(var h=r.interval=[],f=r.close=[0,0],c=[1,0,1],d=[-1/0,1/0],A=[],x=0;x<2;x++){for(var y=[["gte","gt","min"],["lte","lt","max"]][x],g=0;g<3&&h[x]==null;g++)h[x]=e[y[g]],f[x]=c[g],A[x]=g===2;h[x]==null&&(h[x]=d[x])}A[0]&&h[1]===1/0&&(f[0]=0),A[1]&&h[0]===-1/0&&(f[1]=0),h[0]===h[1]&&f[0]&&f[1]&&(r.value=h[0])}r.visual=C.retrieveVisuals(e),u.push(r)},this),s(a,u),p(u),M.each(u,function(e){var o=e.close,r=[["<","\u2264"][o[1]],[">","\u2265"][o[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,r)},this)}};function s(a,u){var e=a.inverse;(a.orient==="vertical"?!e:e)&&u.reverse()}var i=v;Y.exports=i},50767:function(Y,V,n){var T=n(69008),L=n(94404),M=n(18993),w=n(22868),C=w.createSymbol,D=n(7357),S=n(26135),p=L.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var s=this.visualMapModel,i=s.get("textGap"),a=s.textStyleModel,u=a.getFont(),e=a.getTextColor(),o=this._getItemAlign(),r=s.itemSize,l=this._getViewData(),h=l.endsText,f=T.retrieve(s.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],r,f,o),T.each(l.viewPieceList,c,this),h&&this._renderEndsText(t,h[1],r,f,o),D.box(s.get("orient"),t,s.get("itemGap")),this.renderBackground(t),this.positionGroup(t);function c(d){var A=d.piece,x=new M.Group;x.onclick=T.bind(this._onItemClick,this,A),this._enableHoverLink(x,d.indexInModelPieceList);var y=s.getRepresentValue(A);if(this._createItemSymbol(x,y,[0,0,r[0],r[1]]),f){var g=this.visualMapModel.getValueState(y);x.add(new M.Text({style:{x:o==="right"?-i:r[0]+i,y:r[1]/2,text:A.text,textVerticalAlign:"middle",textAlign:o,textFont:u,textFill:e,opacity:g==="outOfRange"?.5:1}}))}t.add(x)}},_enableHoverLink:function(t,s){t.on("mouseover",T.bind(i,this,"highlight")).on("mouseout",T.bind(i,this,"downplay"));function i(a){var u=this.visualMapModel;u.option.hoverLink&&this.api.dispatchAction({type:a,batch:S.makeHighDownBatch(u.findTargetDataIndices(s),u)})}},_getItemAlign:function(){var t=this.visualMapModel,s=t.option;if(s.orient==="vertical")return S.getItemAlign(t,this.api,t.itemSize);var i=s.align;return(!i||i==="auto")&&(i="left"),i},_renderEndsText:function(t,s,i,a,u){if(s){var e=new M.Group,o=this.visualMapModel.textStyleModel;e.add(new M.Text({style:{x:a?u==="right"?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:a?u:"center",text:s,textFont:o.getFont(),textFill:o.getTextColor()}})),t.add(e)}},_getViewData:function(){var t=this.visualMapModel,s=T.map(t.getPieceList(),function(e,o){return{piece:e,indexInModelPieceList:o}}),i=t.get("text"),a=t.get("orient"),u=t.get("inverse");return(a==="horizontal"?u:!u)?s.reverse():i&&(i=i.slice().reverse()),{viewPieceList:s,endsText:i}},_createItemSymbol:function(t,s,i){t.add(C(this.getControllerVisual(s,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(s,"color")))},_onItemClick:function(t){var s=this.visualMapModel,i=s.option,a=T.clone(i.selected),u=s.getSelectedMapKey(t);i.selectedMode==="single"?(a[u]=!0,T.each(a,function(e,o){a[o]=o===u})):a[u]=!a[u],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}}),v=p;Y.exports=v},27204:function(Y,V,n){var T=n(3096),L=n(69008),M=n(12973),w=n(45645),C=n(5660),D=n(75986),S=n(90830),p=n(86957),v=C.mapVisual,t=C.eachVisual,s=L.isArray,i=L.each,a=p.asc,u=p.linearMap,e=L.noop,o=T.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,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,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(l,h,f){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(l,f)},optionUpdated:function(l,h){var f=this.option;M.canvasSupported||(f.realtime=!1),!h&&D.replaceVisualOption(f,l,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(l){var h=this.stateList;l=L.bind(l,this),this.controllerVisuals=D.createVisualMappings(this.option.controller,h,l),this.targetVisuals=D.createVisualMappings(this.option.target,h,l)},getTargetSeriesIndices:function(){var l=this.option.seriesIndex,h=[];return l==null||l==="all"?this.ecModel.eachSeries(function(f,c){h.push(c)}):h=S.normalizeToArray(l),h},eachTargetSeries:function(l,h){L.each(this.getTargetSeriesIndices(),function(f){l.call(h,this.ecModel.getSeriesByIndex(f))},this)},isTargetSeries:function(l){var h=!1;return this.eachTargetSeries(function(f){f===l&&(h=!0)}),h},formatValueText:function(l,h,f){var c=this.option,d=c.precision,A=this.dataBound,x=c.formatter,y,g;if(f=f||["<",">"],L.isArray(l)&&(l=l.slice(),y=!0),g=h?l:y?[m(l[0]),m(l[1])]:m(l),L.isString(x))return x.replace("{value}",y?g[0]:g).replace("{value2}",y?g[1]:g);if(L.isFunction(x))return y?x(l[0],l[1]):x(l);if(y)return l[0]===A[0]?f[0]+" "+g[1]:l[1]===A[1]?f[1]+" "+g[0]:g[0]+" - "+g[1];return g;function m(b){return b===A[0]?"min":b===A[1]?"max":(+b).toFixed(Math.min(d,20))}},resetExtent:function(){var l=this.option,h=a([l.min,l.max]);this._dataExtent=h},getDataDimension:function(l){var h=this.option.dimension,f=l.dimensions;if(!(h==null&&!f.length)){if(h!=null)return l.getDimension(h);for(var c=l.dimensions,d=c.length-1;d>=0;d--){var A=c[d],x=l.getDimensionInfo(A);if(!x.isCalculationCoord)return A}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var l=this.ecModel,h=this.option,f={inRange:h.inRange,outOfRange:h.outOfRange},c=h.target||(h.target={}),d=h.controller||(h.controller={});L.merge(c,f),L.merge(d,f);var A=this.isCategory();x.call(this,c),x.call(this,d),y.call(this,c,"inRange","outOfRange"),g.call(this,d);function x(m){s(h.color)&&!m.inRange&&(m.inRange={color:h.color.slice().reverse()}),m.inRange=m.inRange||{color:l.get("gradientColor")},i(this.stateList,function(b){var I=m[b];if(L.isString(I)){var R=w.get(I,"active",A);R?(m[b]={},m[b][I]=R):delete m[b]}},this)}function y(m,b,I){var R=m[b],E=m[I];R&&!E&&(E=m[I]={},i(R,function(P,O){if(C.isValidType(O)){var N=w.get(O,"inactive",A);N!=null&&(E[O]=N,O==="color"&&!E.hasOwnProperty("opacity")&&!E.hasOwnProperty("colorAlpha")&&(E.opacity=[0,0]))}}))}function g(m){var b=(m.inRange||{}).symbol||(m.outOfRange||{}).symbol,I=(m.inRange||{}).symbolSize||(m.outOfRange||{}).symbolSize,R=this.get("inactiveColor");i(this.stateList,function(E){var P=this.itemSize,O=m[E];O||(O=m[E]={color:A?R:[R]}),O.symbol==null&&(O.symbol=b&&L.clone(b)||(A?"roundRect":["roundRect"])),O.symbolSize==null&&(O.symbolSize=I&&L.clone(I)||(A?P[0]:[P[0],P[0]])),O.symbol=v(O.symbol,function(G){return G==="none"||G==="square"?"roundRect":G});var N=O.symbolSize;if(N!=null){var _=-1/0;t(N,function(G){G>_&&(_=G)}),O.symbolSize=v(N,function(G){return u(G,[0,_],[0,P[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:e,getValueState:e,getVisualMeta:e}),r=o;Y.exports=r},94404:function(Y,V,n){var T=n(3096),L=n(69008),M=n(18993),w=n(17010),C=n(7357),D=n(5660),S=T.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(p,v){this.ecModel=p,this.api=v,this.visualMapModel},render:function(p,v,t,s){if(this.visualMapModel=p,p.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(p){var v=this.visualMapModel,t=w.normalizeCssArray(v.get("padding")||0),s=p.getBoundingRect();p.add(new M.Rect({z2:-1,silent:!0,shape:{x:s.x-t[3],y:s.y-t[0],width:s.width+t[3]+t[1],height:s.height+t[0]+t[2]},style:{fill:v.get("backgroundColor"),stroke:v.get("borderColor"),lineWidth:v.get("borderWidth")}}))},getControllerVisual:function(p,v,t){t=t||{};var s=t.forceState,i=this.visualMapModel,a={};if(v==="symbol"&&(a.symbol=i.get("itemSymbol")),v==="color"){var u=i.get("contentColor");a.color=u}function e(h){return a[h]}function o(h,f){a[h]=f}var r=i.controllerVisuals[s||i.getValueState(p)],l=D.prepareVisualTypes(r);return L.each(l,function(h){var f=r[h];t.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",f=r.__alphaForOpacity),D.dependsOn(h,v)&&f&&f.applyVisual(p,e,o)}),a[v]},positionGroup:function(p){var v=this.visualMapModel,t=this.api;C.positionElement(p,v.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})},doRender:L.noop});Y.exports=S},26135:function(Y,V,n){var T=n(69008),L=n(7357),M=L.getLayoutRect;function w(D,S,p){var v=D.option,t=v.align;if(t!=null&&t!=="auto")return t;for(var s={width:S.getWidth(),height:S.getHeight()},i=v.orient==="horizontal"?1:0,a=[["left","right","width"],["top","bottom","height"]],u=a[i],e=[0,null,10],o={},r=0;r<3;r++)o[a[1-i][r]]=e[r],o[u[r]]=r===2?p[0]:v[u[r]];var l=[["x","width",3],["y","height",0]][i],h=M(o,s,v.padding);return u[(h.margin[l[2]]||0)+h[l[0]]+h[l[1]]*.5<s[l[1]]*.5?0:1]}function C(D,S){return T.each(D||[],function(p){p.dataIndex!=null&&(p.dataIndexInside=p.dataIndex,p.dataIndex=null),p.highlightKey="visualMap"+(S?S.componentIndex:"")}),D}V.getItemAlign=w,V.makeHighDownBatch=C},96288:function(Y,V,n){var T=n(69008),L=T.each;function M(C){var D=C&&C.visualMap;T.isArray(D)||(D=D?[D]:[]),L(D,function(S){if(S){w(S,"splitList")&&!w(S,"pieces")&&(S.pieces=S.splitList,delete S.splitList);var p=S.pieces;p&&T.isArray(p)&&L(p,function(v){T.isObject(v)&&(w(v,"start")&&!w(v,"min")&&(v.min=v.start),w(v,"end")&&!w(v,"max")&&(v.max=v.end))})}})}function w(C,D){return C&&C.hasOwnProperty&&C.hasOwnProperty(D)}Y.exports=M},82546:function(Y,V,n){var T=n(16172);T.registerSubTypeDefaulter("visualMap",function(L){return!L.categories&&(!(L.pieces?L.pieces.length>0:L.splitNumber>0)||L.calculable)?"continuous":"piecewise"})},86053:function(Y,V,n){var T=n(3096),L=n(69008),M=n(75986),w=n(5660),C=T.PRIORITY.VISUAL.COMPONENT;T.registerVisual(C,{createOnAllSeries:!0,reset:function(S,p){var v=[];return p.eachComponent("visualMap",function(t){var s=S.pipelineContext;!t.isTargetSeries(S)||s&&s.large||v.push(M.incrementalApplyVisual(t.stateList,t.targetVisuals,L.bind(t.getValueState,t),t.getDataDimension(S.getData())))}),v}}),T.registerVisual(C,{createOnAllSeries:!0,reset:function(S,p){var v=S.getData(),t=[];p.eachComponent("visualMap",function(s){if(s.isTargetSeries(S)){var i=s.getVisualMeta(L.bind(D,null,S,s))||{stops:[],outerColors:[]},a=s.getDataDimension(v),u=v.getDimensionInfo(a);u!=null&&(i.dimension=u.index,t.push(i))}}),S.getData().setVisual("visualMeta",t)}});function D(S,p,v,t){for(var s=p.targetVisuals[t],i=w.prepareVisualTypes(s),a={color:S.getData().getVisual("color")},u=0,e=i.length;u<e;u++){var o=i[u],r=s[o==="opacity"?"__alphaForOpacity":o];r&&r.applyVisual(v,l,h)}return a.color;function l(f){return a[f]}function h(f,c){a[f]=c}}},1376:function(Y,V,n){var T=n(3096),L={type:"selectDataRange",event:"dataRangeSelected",update:"update"};T.registerAction(L,function(M,w){w.eachComponent({mainType:"visualMap",query:M},function(C){C.setSelected(M.selected)})})},3646:function(Y,V,n){var T=n(3096),L=n(96288);n(82546),n(86053),n(74021),n(74870),n(1376),T.registerPreprocessor(L)},11511:function(Y,V,n){var T=n(3096),L=n(96288);n(82546),n(86053),n(85033),n(50767),n(1376),T.registerPreprocessor(L)},96311:function(Y,V,n){var T;typeof window!="undefined"?T=window.__DEV__:typeof n.g!="undefined"&&(T=n.g.__DEV__),typeof T=="undefined"&&(T=!0);var L=T;V.__DEV__=L},97694:function(Y,V,n){var T=n(69008),L=T.each,M=T.map,w=n(86957),C=w.linearMap,D=w.getPixelPrecision,S=w.round,p=n(20320),v=p.createAxisTicks,t=p.createAxisLabels,s=p.calculateCategoryInterval,i=[0,1],a=function(r,l,h){this.dim=r,this.scale=l,this._extent=h||[0,0],this.inverse=!1,this.onBand=!1};a.prototype={constructor:a,contain:function(r){var l=this._extent,h=Math.min(l[0],l[1]),f=Math.max(l[0],l[1]);return r>=h&&r<=f},containData:function(r){return this.scale.contain(r)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(r){return D(r||this.scale.getExtent(),this._extent)},setExtent:function(r,l){var h=this._extent;h[0]=r,h[1]=l},dataToCoord:function(r,l){var h=this._extent,f=this.scale;return r=f.normalize(r),this.onBand&&f.type==="ordinal"&&(h=h.slice(),u(h,f.count())),C(r,i,h,l)},coordToData:function(r,l){var h=this._extent,f=this.scale;this.onBand&&f.type==="ordinal"&&(h=h.slice(),u(h,f.count()));var c=C(r,h,i,l);return this.scale.scale(c)},pointToData:function(r,l){},getTicksCoords:function(r){r=r||{};var l=r.tickModel||this.getTickModel(),h=v(this,l),f=h.ticks,c=M(f,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this),d=l.get("alignWithLabel");return e(this,c,d,r.clamp),c},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var r=this.model.getModel("minorTick"),l=r.get("splitNumber");l>0&&l<100||(l=5);var h=this.scale.getMinorTicks(l),f=M(h,function(c){return M(c,function(d){return{coord:this.dataToCoord(d),tickValue:d}},this)},this);return f},getViewLabels:function(){return t(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var r=this._extent,l=this.scale.getExtent(),h=l[1]-l[0]+(this.onBand?1:0);h===0&&(h=1);var f=Math.abs(r[1]-r[0]);return Math.abs(f)/h},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return s(this)}};function u(r,l){var h=r[1]-r[0],f=l,c=h/f/2;r[0]+=c,r[1]-=c}function e(r,l,h,f){var c=l.length;if(!r.onBand||h||!c)return;var d=r.getExtent(),A,x;if(c===1)l[0].coord=d[0],A=l[1]={coord:d[0]};else{var y=l[c-1].tickValue-l[0].tickValue,g=(l[c-1].coord-l[0].coord)/y;L(l,function(R){R.coord-=g/2});var m=r.scale.getExtent();x=1+m[1]-l[c-1].tickValue,A={coord:l[c-1].coord+g*x},l.push(A)}var b=d[0]>d[1];I(l[0].coord,d[0])&&(f?l[0].coord=d[0]:l.shift()),f&&I(d[0],l[0].coord)&&l.unshift({coord:d[0]}),I(d[1],A.coord)&&(f?A.coord=d[1]:l.pop()),f&&I(A.coord,d[1])&&l.push({coord:d[1]});function I(R,E){return R=S(R),E=S(E),b?R>E:R<E}}var o=a;Y.exports=o},86990:function(Y,V,n){var T=n(69008),L=n(47764),M=n(26237),w=n(9806),C=n(74330),D=L.applyTransform;function S(){C.call(this)}T.mixin(S,C);function p(s){this.name=s,this.zoomLimit,C.call(this),this._roamTransformable=new S,this._rawTransformable=new S,this._center,this._zoom}p.prototype={constructor:p,type:"view",dimensions:["x","y"],setBoundingRect:function(s,i,a,u){return this._rect=new w(s,i,a,u),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(s,i,a,u){this.transformTo(s,i,a,u),this._viewRect=new w(s,i,a,u)},transformTo:function(s,i,a,u){var e=this.getBoundingRect(),o=this._rawTransformable;o.transform=e.calculateTransform(new w(s,i,a,u)),o.decomposeTransform(),this._updateTransform()},setCenter:function(s){s&&(this._center=s,this._updateCenterAndZoom())},setZoom:function(s){s=s||1;var i=this.zoomLimit;i&&(i.max!=null&&(s=Math.min(i.max,s)),i.min!=null&&(s=Math.max(i.min,s))),this._zoom=s,this._updateCenterAndZoom()},getDefaultCenter:function(){var s=this.getBoundingRect(),i=s.x+s.width/2,a=s.y+s.height/2;return[i,a]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var s=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,a=this.getDefaultCenter(),u=this.getCenter(),e=this.getZoom();u=L.applyTransform([],u,s),a=L.applyTransform([],a,s),i.origin=u,i.position=[a[0]-u[0],a[1]-u[1]],i.scale=[e,e],this._updateTransform()},_updateTransform:function(){var s=this._roamTransformable,i=this._rawTransformable;i.parent=s,s.updateTransform(),i.updateTransform(),M.copy(this.transform||(this.transform=[]),i.transform||M.create()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],M.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var s=this._roamTransformable.transform,i=this._rawTransformable;return{roamTransform:s?T.slice(s):M.create(),rawScale:T.slice(i.scale),rawPosition:T.slice(i.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var s=this.getBoundingRect().clone();return s.applyTransform(this.transform),s},dataToPoint:function(s,i,a){var u=i?this._rawTransform:this.transform;return a=a||[],u?D(a,s,u):L.copy(a,s)},pointToData:function(s){var i=this.invTransform;return i?D([],s,i):[s[0],s[1]]},convertToPixel:T.curry(v,"dataToPoint"),convertFromPixel:T.curry(v,"pointToData"),containPoint:function(s){return this.getViewRectAfterRoam().contain(s[0],s[1])}},T.mixin(p,C);function v(s,i,a,u){var e=a.seriesModel,o=e?e.coordinateSystem:null;return o===this?o[s](u):null}var t=p;Y.exports=t},61466:function(Y,V,n){var T=n(69008),L={show:!0,zlevel: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:"#333",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:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},M={};M.categoryAxis=T.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},L),M.valueAxis=T.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},L),M.timeAxis=T.defaults({scale:!0,min:"dataMin",max:"dataMax"},M.valueAxis),M.logAxis=T.defaults({scale:!0,logBase:10},M.valueAxis);var w=M;Y.exports=w},44815:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(43712),C=n(48149),D=n(22510),S=n(86957),p=n(64816),v=p.prepareLayoutBarSeries,t=p.makeColumnLayout,s=p.retrieveColumnLayout,i=n(9806);n(79262),n(64763);function a(x,y){var g=x.type,m=y.getMin(),b=y.getMax(),I=x.getExtent(),R,E,P;g==="ordinal"?R=y.getCategories().length:(E=y.get("boundaryGap"),M.isArray(E)||(E=[E||0,E||0]),typeof E[0]=="boolean"&&(E=[0,0]),E[0]=S.parsePercent(E[0],1),E[1]=S.parsePercent(E[1],1),P=I[1]-I[0]||Math.abs(I[0])),m==="dataMin"?m=I[0]:typeof m=="function"&&(m=m({min:I[0],max:I[1]})),b==="dataMax"?b=I[1]:typeof b=="function"&&(b=b({min:I[0],max:I[1]}));var O=m!=null,N=b!=null;m==null&&(m=g==="ordinal"?R?0:NaN:I[0]-E[0]*P),b==null&&(b=g==="ordinal"?R?R-1:NaN:I[1]+E[1]*P),(m==null||!isFinite(m))&&(m=NaN),(b==null||!isFinite(b))&&(b=NaN),x.setBlank(M.eqNaN(m)||M.eqNaN(b)||g==="ordinal"&&!x.getOrdinalMeta().categories.length),y.getNeedCrossZero()&&(m>0&&b>0&&!O&&(m=0),m<0&&b<0&&!N&&(b=0));var _=y.ecModel;if(_&&g==="time"){var G=v("bar",_),F;if(M.each(G,function(H){F|=H.getBaseAxis()===y.axis}),F){var W=t(G),U=u(m,b,y,W);m=U.min,b=U.max}}return{extent:[m,b],fixMin:O,fixMax:N}}function u(x,y,g,m){var b=g.axis.getExtent(),I=b[1]-b[0],R=s(m,g.axis);if(R===void 0)return{min:x,max:y};var E=1/0;M.each(R,function(F){E=Math.min(F.offset,E)});var P=-1/0;M.each(R,function(F){P=Math.max(F.offset+F.width,P)}),E=Math.abs(E),P=Math.abs(P);var O=E+P,N=y-x,_=1-(E+P)/I,G=N/_-N;return y+=G*(P/O),x-=G*(E/O),{min:x,max:y}}function e(x,y){var g=a(x,y),m=g.extent,b=y.get("splitNumber");x.type==="log"&&(x.base=y.get("logBase"));var I=x.type;x.setExtent(m[0],m[1]),x.niceExtent({splitNumber:b,fixMin:g.fixMin,fixMax:g.fixMax,minInterval:I==="interval"||I==="time"?y.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?y.get("maxInterval"):null});var R=y.get("interval");R!=null&&x.setInterval&&x.setInterval(R)}function o(x,y){if(y=y||x.get("type"),y)switch(y){case"category":return new w(x.getOrdinalMeta?x.getOrdinalMeta():x.getCategories(),[1/0,-1/0]);case"value":return new C;default:return(D.getClass(y)||C).create(x)}}function r(x){var y=x.scale.getExtent(),g=y[0],m=y[1];return!(g>0&&m>0||g<0&&m<0)}function l(x){var y=x.getLabelModel().get("formatter"),g=x.type==="category"?x.scale.getExtent()[0]:null;return typeof y=="string"?(y=function(m){return function(b){return b=x.scale.getLabel(b),m.replace("{value}",b!=null?b:"")}}(y),y):typeof y=="function"?function(m,b){return g!=null&&(b=m-g),y(h(x,m),b)}:function(m){return x.scale.getLabel(m)}}function h(x,y){return x.type==="category"?x.scale.getLabel(y):y}function f(x){var y=x.model,g=x.scale;if(!(!y.get("axisLabel.show")||g.isBlank())){var m=x.type==="category",b,I,R=g.getExtent();m?I=g.count():(b=g.getTicks(),I=b.length);var E=x.getLabelModel(),P=l(x),O,N=1;I>40&&(N=Math.ceil(I/40));for(var _=0;_<I;_+=N){var G=b?b[_]:R[0]+_,F=P(G),W=E.getTextRect(F),U=c(W,E.get("rotate")||0);O?O.union(U):O=U}return O}}function c(x,y){var g=y*Math.PI/180,m=x.plain(),b=m.width,I=m.height,R=b*Math.cos(g)+I*Math.sin(g),E=b*Math.sin(g)+I*Math.cos(g),P=new i(m.x,m.y,R,E);return P}function d(x){var y=x.get("interval");return y==null?"auto":y}function A(x){return x.type==="category"&&d(x.getLabelModel())===0}V.getScaleExtent=a,V.niceScaleExtent=e,V.createScaleByModel=o,V.ifAxisCrossZero=r,V.makeLabelFormatter=l,V.getAxisRawValue=h,V.estimateLabelUnionRect=f,V.getOptionCategoryInterval=d,V.shouldShowAllLabels=A},5270:function(Y,V,n){var T=n(69008),L={getMin:function(M){var w=this.option,C=!M&&w.rangeStart!=null?w.rangeStart:w.min;return this.axis&&C!=null&&C!=="dataMin"&&typeof C!="function"&&!T.eqNaN(C)&&(C=this.axis.scale.parse(C)),C},getMax:function(M){var w=this.option,C=!M&&w.rangeEnd!=null?w.rangeEnd:w.max;return this.axis&&C!=null&&C!=="dataMax"&&typeof C!="function"&&!T.eqNaN(C)&&(C=this.axis.scale.parse(C)),C},getNeedCrossZero:function(){var M=this.option;return M.rangeStart!=null||M.rangeEnd!=null?!1:!M.scale},getCoordSysModel:T.noop,setRange:function(M,w){this.option.rangeStart=M,this.option.rangeEnd=w},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};Y.exports=L},12089:function(Y,V,n){var T=n(69008),L=n(61466),M=n(16172),w=n(7357),C=w.getLayoutParams,D=w.mergeLayoutParam,S=n(82139),p=["value","category","time","log"];function v(t,s,i,a){T.each(p,function(u){s.extend({type:t+"Axis."+u,mergeDefaultAndTheme:function(e,o){var r=this.layoutMode,l=r?C(e):{},h=o.getTheme();T.merge(e,h.get(u+"Axis")),T.merge(e,this.getDefaultOption()),e.type=i(t,e),r&&D(e,l,r)},optionUpdated:function(){var e=this.option;e.type==="category"&&(this.__ordinalMeta=S.createByAxisModel(this))},getCategories:function(e){var o=this.option;if(o.type==="category")return e?o.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:T.mergeAll([{},L[u+"Axis"],a],!0)})}),M.registerSubTypeDefaulter(t+"Axis",T.curry(i,t))}Y.exports=v},20320:function(Y,V,n){var T=n(69008),L=n(63603),M=n(90830),w=M.makeInner,C=n(44815),D=C.makeLabelFormatter,S=C.getOptionCategoryInterval,p=C.shouldShowAllLabels,v=w();function t(x){return x.type==="category"?i(x):e(x)}function s(x,y){return x.type==="category"?u(x,y):{ticks:x.scale.getTicks()}}function i(x){var y=x.getLabelModel(),g=a(x,y);return!y.get("show")||x.scale.isBlank()?{labels:[],labelCategoryInterval:g.labelCategoryInterval}:g}function a(x,y){var g=o(x,"labels"),m=S(y),b=r(g,m);if(b)return b;var I,R;return T.isFunction(m)?I=A(x,m):(R=m==="auto"?h(x):m,I=d(x,R)),l(g,m,{labels:I,labelCategoryInterval:R})}function u(x,y){var g=o(x,"ticks"),m=S(y),b=r(g,m);if(b)return b;var I,R;if((!y.get("show")||x.scale.isBlank())&&(I=[]),T.isFunction(m))I=A(x,m,!0);else if(m==="auto"){var E=a(x,x.getLabelModel());R=E.labelCategoryInterval,I=T.map(E.labels,function(P){return P.tickValue})}else R=m,I=d(x,R,!0);return l(g,m,{ticks:I,tickCategoryInterval:R})}function e(x){var y=x.scale.getTicks(),g=D(x);return{labels:T.map(y,function(m,b){return{formattedLabel:g(m,b),rawLabel:x.scale.getLabel(m),tickValue:m}})}}function o(x,y){return v(x)[y]||(v(x)[y]=[])}function r(x,y){for(var g=0;g<x.length;g++)if(x[g].key===y)return x[g].value}function l(x,y,g){return x.push({key:y,value:g}),g}function h(x){var y=v(x).autoInterval;return y!=null?y:v(x).autoInterval=x.calculateCategoryInterval()}function f(x){var y=c(x),g=D(x),m=(y.axisRotate-y.labelRotate)/180*Math.PI,b=x.scale,I=b.getExtent(),R=b.count();if(I[1]-I[0]<1)return 0;var E=1;R>40&&(E=Math.max(1,Math.floor(R/40)));for(var P=I[0],O=x.dataToCoord(P+1)-x.dataToCoord(P),N=Math.abs(O*Math.cos(m)),_=Math.abs(O*Math.sin(m)),G=0,F=0;P<=I[1];P+=E){var W=0,U=0,H=L.getBoundingRect(g(P),y.font,"center","top");W=H.width*1.3,U=H.height*1.3,G=Math.max(G,W,7),F=Math.max(F,U,7)}var z=G/N,B=F/_;isNaN(z)&&(z=1/0),isNaN(B)&&(B=1/0);var k=Math.max(0,Math.floor(Math.min(z,B))),Z=v(x.model),X=x.getExtent(),K=Z.lastAutoInterval,Q=Z.lastTickCount;return K!=null&&Q!=null&&Math.abs(K-k)<=1&&Math.abs(Q-R)<=1&&K>k&&Z.axisExtend0===X[0]&&Z.axisExtend1===X[1]?k=K:(Z.lastTickCount=R,Z.lastAutoInterval=k,Z.axisExtend0=X[0],Z.axisExtend1=X[1]),k}function c(x){var y=x.getLabelModel();return{axisRotate:x.getRotate?x.getRotate():x.isHorizontal&&!x.isHorizontal()?90:0,labelRotate:y.get("rotate")||0,font:y.getFont()}}function d(x,y,g){var m=D(x),b=x.scale,I=b.getExtent(),R=x.getLabelModel(),E=[],P=Math.max((y||0)+1,1),O=I[0],N=b.count();O!==0&&P>1&&N/P>2&&(O=Math.round(Math.ceil(O/P)*P));var _=p(x),G=R.get("showMinLabel")||_,F=R.get("showMaxLabel")||_;G&&O!==I[0]&&U(I[0]);for(var W=O;W<=I[1];W+=P)U(W);F&&W-P!==I[1]&&U(I[1]);function U(H){E.push(g?H:{formattedLabel:m(H),rawLabel:b.getLabel(H),tickValue:H})}return E}function A(x,y,g){var m=x.scale,b=D(x),I=[];return T.each(m.getTicks(),function(R){var E=m.getLabel(R);y(R,E)&&I.push(g?R:{formattedLabel:b(R),rawLabel:E,tickValue:R})}),I}V.createAxisLabels=t,V.createAxisTicks=s,V.calculateCategoryInterval=f},29933:function(Y,V,n){var T=n(69008),L=n(7357),M=n(86957),w=n(33807),C=864e5;function D(v,t,s){this._model=v}D.prototype={constructor:D,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(v){v=M.parseDate(v);var t=v.getFullYear(),s=v.getMonth()+1;s=s<10?"0"+s:s;var i=v.getDate();i=i<10?"0"+i:i;var a=v.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t,m:s,d:i,day:a,time:v.getTime(),formatedDate:t+"-"+s+"-"+i,date:v}},getNextNDay:function(v,t){return t=t||0,t===0?this.getDateInfo(v):(v=new Date(this.getDateInfo(v).time),v.setDate(v.getDate()+t),this.getDateInfo(v))},update:function(v,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 s=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.get("cellSize").slice(),u=this._model.getBoxLayoutParams(),e=this._orient==="horizontal"?[s,7]:[7,s];T.each([0,1],function(h){l(a,h)&&(u[i[h]]=a[h]*e[h])});var o={width:t.getWidth(),height:t.getHeight()},r=this._rect=L.getLayoutRect(u,o);T.each([0,1],function(h){l(a,h)||(a[h]=r[i[h]]/e[h])});function l(h,f){return h[f]!=null&&h[f]!=="auto"}this._sw=a[0],this._sh=a[1]},dataToPoint:function(v,t){T.isArray(v)&&(v=v[0]),t==null&&(t=!0);var s=this.getDateInfo(v),i=this._rangeInfo,a=s.formatedDate;if(t&&!(s.time>=i.start.time&&s.time<i.end.time+C))return[NaN,NaN];var u=s.day,e=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+u*this._sw+this._sw/2,this._rect.y+e*this._sh+this._sh/2]:[this._rect.x+e*this._sw+this._sw/2,this._rect.y+u*this._sh+this._sh/2]},pointToData:function(v){var t=this.pointToDate(v);return t&&t.time},dataToRect:function(v,t){var s=this.dataToPoint(v,t);return{contentShape:{x:s[0]-(this._sw-this._lineWidth)/2,y:s[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:s,tl:[s[0]-this._sw/2,s[1]-this._sh/2],tr:[s[0]+this._sw/2,s[1]-this._sh/2],br:[s[0]+this._sw/2,s[1]+this._sh/2],bl:[s[0]-this._sw/2,s[1]+this._sh/2]}},pointToDate:function(v){var t=Math.floor((v[0]-this._rect.x)/this._sw)+1,s=Math.floor((v[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(s,t-1,i):this._getDateByWeeksAndDay(t,s-1,i)},convertToPixel:T.curry(S,"dataToPoint"),convertFromPixel:T.curry(S,"pointToData"),_initRangeOption:function(){var v=this._model.get("range"),t=v;if(T.isArray(t)&&t.length===1&&(t=t[0]),/^\d{4}$/.test(t)&&(v=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var s=this.getDateInfo(t),i=s.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);v=[s.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(v=[t,t]);var u=this._getRangeInfo(v);return u.start.time>u.end.time&&v.reverse(),v},_getRangeInfo:function(v){v=[this.getDateInfo(v[0]),this.getDateInfo(v[1])];var t;v[0].time>v[1].time&&(t=!0,v.reverse());var s=Math.floor(v[1].time/C)-Math.floor(v[0].time/C)+1,i=new Date(v[0].time),a=i.getDate(),u=v[1].date.getDate();i.setDate(a+s-1);var e=i.getDate();if(e!==u)for(var o=i.getTime()-v[1].time>0?1:-1;(e=i.getDate())!==u&&(i.getTime()-v[1].time)*o>0;)s-=o,i.setDate(e-o);var r=Math.floor((s+v[0].day+6)/7),l=t?-r+1:r-1;return t&&v.reverse(),{range:[v[0].formatedDate,v[1].formatedDate],start:v[0],end:v[1],allDay:s,weeks:r,nthWeek:l,fweek:v[0].day,lweek:v[1].day}},_getDateByWeeksAndDay:function(v,t,s){var i=this._getRangeInfo(s);if(v>i.weeks||v===0&&t<i.fweek||v===i.weeks&&t>i.lweek)return!1;var a=(v-1)*7-i.fweek+t,u=new Date(i.start.time);return u.setDate(i.start.d+a),this.getDateInfo(u)}},D.dimensions=D.prototype.dimensions,D.getDimensionsInfo=D.prototype.getDimensionsInfo,D.create=function(v,t){var s=[];return v.eachComponent("calendar",function(i){var a=new D(i,v,t);s.push(a),i.coordinateSystem=a}),v.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=s[i.get("calendarIndex")||0])}),s};function S(v,t,s,i){var a=s.calendarModel,u=s.seriesModel,e=a?a.coordinateSystem:u?u.coordinateSystem:null;return e===this?e[v](i):null}w.register("calendar",D);var p=D;Y.exports=p},66619:function(Y,V,n){var T=n(69008),L=n(16172),M=n(7357),w=M.getLayoutParams,C=M.sizeCalculable,D=M.mergeLayoutParam,S=L.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,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%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,s,i,a){var u=w(t);S.superApply(this,"init",arguments),p(t,u)},mergeOption:function(t,s){S.superApply(this,"mergeOption",arguments),p(this.option,t)}});function p(t,s){var i=t.cellSize;T.isArray(i)?i.length===1&&(i[1]=i[0]):i=t.cellSize=[i,i];var a=T.map([0,1],function(u){return C(s,u)&&(i[u]="auto"),i[u]!=null&&i[u]!=="auto"});D(t,s,{type:"box",ignoreSize:a})}var v=S;Y.exports=v},41675:function(Y){function V(n){var T=n.getRect(),L=n.getRangeInfo();return{coordSys:{type:"calendar",x:T.x,y:T.y,width:T.width,height:T.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:L.start,end:L.end,weeks:L.weeks,dayCount:L.allDay}},api:{coord:function(M,w){return n.dataToPoint(M,w)}}}}Y.exports=V},74384:function(Y,V,n){var T=n(69008),L=n(97694),M=function(C,D,S,p,v){L.call(this,C,D,S),this.type=p||"value",this.position=v||"bottom"};M.prototype={constructor:M,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var C=this.position;return C==="top"||C==="bottom"},getGlobalExtent:function(C){var D=this.getExtent();return D[0]=this.toGlobalCoord(D[0]),D[1]=this.toGlobalCoord(D[1]),C&&D[0]>D[1]&&D.reverse(),D},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(C,D){return this.coordToData(this.toLocalCoord(C[this.dim==="x"?0:1]),D)},toLocalCoord:null,toGlobalCoord:null},T.inherits(M,L);var w=M;Y.exports=w},75089:function(Y,V,n){var T=n(69008),L=n(16172),M=n(12089),w=n(5270),C=L.extend({type:"cartesian2dAxis",axis:null,init:function(){C.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){C.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){C.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function D(v,t){return t.type||(t.data?"category":"value")}T.merge(C.prototype,w);var S={offset:0};M("x",C,D,S),M("y",C,D,S);var p=C;Y.exports=p},52281:function(Y,V,n){var T=n(69008);function L(C){return this._axes[C]}var M=function(C){this._axes={},this._dimList=[],this.name=C||""};M.prototype={constructor:M,type:"cartesian",getAxis:function(C){return this._axes[C]},getAxes:function(){return T.map(this._dimList,L,this)},getAxesByScale:function(C){return C=C.toLowerCase(),T.filter(this.getAxes(),function(D){return D.scale.type===C})},addAxis:function(C){var D=C.dim;this._axes[D]=C,this._dimList.push(D)},dataToCoord:function(C){return this._dataCoordConvert(C,"dataToCoord")},coordToData:function(C){return this._dataCoordConvert(C,"coordToData")},_dataCoordConvert:function(C,D){for(var S=this._dimList,p=C instanceof Array?[]:{},v=0;v<S.length;v++){var t=S[v],s=this._axes[t];p[t]=s[D](C[t])}return p}};var w=M;Y.exports=w},6709:function(Y,V,n){var T=n(69008),L=n(9806),M=n(52281);function w(D){M.call(this,D)}w.prototype={constructor:w,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(D){var S=this.getAxis("x"),p=this.getAxis("y");return S.contain(S.toLocalCoord(D[0]))&&p.contain(p.toLocalCoord(D[1]))},containData:function(D){return this.getAxis("x").containData(D[0])&&this.getAxis("y").containData(D[1])},dataToPoint:function(D,S,p){var v=this.getAxis("x"),t=this.getAxis("y");return p=p||[],p[0]=v.toGlobalCoord(v.dataToCoord(D[0])),p[1]=t.toGlobalCoord(t.dataToCoord(D[1])),p},clampData:function(D,S){var p=this.getAxis("x").scale,v=this.getAxis("y").scale,t=p.getExtent(),s=v.getExtent(),i=p.parse(D[0]),a=v.parse(D[1]);return S=S||[],S[0]=Math.min(Math.max(Math.min(t[0],t[1]),i),Math.max(t[0],t[1])),S[1]=Math.min(Math.max(Math.min(s[0],s[1]),a),Math.max(s[0],s[1])),S},pointToData:function(D,S){var p=this.getAxis("x"),v=this.getAxis("y");return S=S||[],S[0]=p.coordToData(p.toLocalCoord(D[0])),S[1]=v.coordToData(v.toLocalCoord(D[1])),S},getOtherAxis:function(D){return this.getAxis(D.dim==="x"?"y":"x")},getArea:function(){var D=this.getAxis("x").getGlobalExtent(),S=this.getAxis("y").getGlobalExtent(),p=Math.min(D[0],D[1]),v=Math.min(S[0],S[1]),t=Math.max(D[0],D[1])-p,s=Math.max(S[0],S[1])-v,i=new L(p,v,t,s);return i}},T.inherits(w,M);var C=w;Y.exports=C},40753:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=M.isObject,C=M.each,D=M.map,S=M.indexOf,p=M.retrieve,v=n(7357),t=v.getLayoutRect,s=n(44815),i=s.createScaleByModel,a=s.ifAxisCrossZero,u=s.niceScaleExtent,e=s.estimateLabelUnionRect,o=n(6709),r=n(74384),l=n(33807),h=n(22240),f=h.getStackedDimension;n(9441);function c(E,P,O){return E.getCoordSysModel()===P}function d(E,P,O){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(E,P,O),this.model=E}var A=d.prototype;A.type="grid",A.axisPointerEnabled=!0,A.getRect=function(){return this._rect},A.update=function(E,P){var O=this._axesMap;this._updateScale(E,this.model),C(O.x,function(_){u(_.scale,_.model)}),C(O.y,function(_){u(_.scale,_.model)});var N={};C(O.x,function(_){x(O,"y",_,N)}),C(O.y,function(_){x(O,"x",_,N)}),this.resize(this.model,P)};function x(E,P,O,N){O.getAxesOnZeroOf=function(){return G?[G]:[]};var _=E[P],G,F=O.model,W=F.get("axisLine.onZero"),U=F.get("axisLine.onZeroAxisIndex");if(!W)return;if(U!=null)y(_[U])&&(G=_[U]);else for(var H in _)if(_.hasOwnProperty(H)&&y(_[H])&&!N[z(_[H])]){G=_[H];break}G&&(N[z(G)]=!0);function z(B){return B.dim+"_"+B.index}}function y(E){return E&&E.type!=="category"&&E.type!=="time"&&a(E)}A.resize=function(E,P,O){var N=t(E.getBoxLayoutParams(),{width:P.getWidth(),height:P.getHeight()});this._rect=N;var _=this._axesList;G(),!O&&E.get("containLabel")&&(C(_,function(F){if(!F.model.get("axisLabel.inside")){var W=e(F);if(W){var U=F.isHorizontal()?"height":"width",H=F.model.get("axisLabel.margin");N[U]-=W[U]+H,F.position==="top"?N.y+=W.height+H:F.position==="left"&&(N.x+=W.width+H)}}}),G());function G(){C(_,function(F){var W=F.isHorizontal(),U=W?[0,N.width]:[0,N.height],H=F.inverse?1:0;F.setExtent(U[H],U[1-H]),g(F,W?N.x:N.y)})}},A.getAxis=function(E,P){var O=this._axesMap[E];if(O!=null){if(P==null){for(var N in O)if(O.hasOwnProperty(N))return O[N]}return O[P]}},A.getAxes=function(){return this._axesList.slice()},A.getCartesian=function(E,P){if(E!=null&&P!=null){var O="x"+E+"y"+P;return this._coordsMap[O]}w(E)&&(P=E.yAxisIndex,E=E.xAxisIndex);for(var N=0,_=this._coordsList;N<_.length;N++)if(_[N].getAxis("x").index===E||_[N].getAxis("y").index===P)return _[N]},A.getCartesians=function(){return this._coordsList.slice()},A.convertToPixel=function(E,P,O){var N=this._findConvertTarget(E,P);return N.cartesian?N.cartesian.dataToPoint(O):N.axis?N.axis.toGlobalCoord(N.axis.dataToCoord(O)):null},A.convertFromPixel=function(E,P,O){var N=this._findConvertTarget(E,P);return N.cartesian?N.cartesian.pointToData(O):N.axis?N.axis.coordToData(N.axis.toLocalCoord(O)):null},A._findConvertTarget=function(E,P){var O=P.seriesModel,N=P.xAxisModel||O&&O.getReferringComponents("xAxis")[0],_=P.yAxisModel||O&&O.getReferringComponents("yAxis")[0],G=P.gridModel,F=this._coordsList,W,U;if(O)W=O.coordinateSystem,S(F,W)<0&&(W=null);else if(N&&_)W=this.getCartesian(N.componentIndex,_.componentIndex);else if(N)U=this.getAxis("x",N.componentIndex);else if(_)U=this.getAxis("y",_.componentIndex);else if(G){var H=G.coordinateSystem;H===this&&(W=this._coordsList[0])}return{cartesian:W,axis:U}},A.containPoint=function(E){var P=this._coordsList[0];if(P)return P.containPoint(E)},A._initCartesian=function(E,P,O){var N={left:!1,right:!1,top:!1,bottom:!1},_={x:{},y:{}},G={x:0,y:0};if(P.eachComponent("xAxis",F("x"),this),P.eachComponent("yAxis",F("y"),this),!G.x||!G.y){this._axesMap={},this._axesList=[];return}this._axesMap=_,C(_.x,function(W,U){C(_.y,function(H,z){var B="x"+U+"y"+z,k=new o(B);k.grid=this,k.model=E,this._coordsMap[B]=k,this._coordsList.push(k),k.addAxis(W),k.addAxis(H)},this)},this);function F(W){return function(U,H){if(c(U,E,P)){var z=U.get("position");W==="x"?z!=="top"&&z!=="bottom"&&(z=N.bottom?"top":"bottom"):z!=="left"&&z!=="right"&&(z=N.left?"right":"left"),N[z]=!0;var B=new r(W,i(U),[0,0],U.get("type"),z),k=B.type==="category";B.onBand=k&&U.get("boundaryGap"),B.inverse=U.get("inverse"),U.axis=B,B.model=U,B.grid=this,B.index=H,this._axesList.push(B),_[W][H]=B,G[W]++}}}},A._updateScale=function(E,P){C(this._axesList,function(N){N.scale.setExtent(1/0,-1/0)}),E.eachSeries(function(N){if(I(N)){var _=b(N,E),G=_[0],F=_[1];if(!c(G,P,E)||!c(F,P,E))return;var W=this.getCartesian(G.componentIndex,F.componentIndex),U=N.getData(),H=W.getAxis("x"),z=W.getAxis("y");U.type==="list"&&(O(U,H,N),O(U,z,N))}},this);function O(N,_,G){C(N.mapDimension(_.dim,!0),function(F){_.scale.unionExtentFromData(N,f(N,F))})}},A.getTooltipAxes=function(E){var P=[],O=[];return C(this.getCartesians(),function(N){var _=E!=null&&E!=="auto"?N.getAxis(E):N.getBaseAxis(),G=N.getOtherAxis(_);S(P,_)<0&&P.push(_),S(O,G)<0&&O.push(G)}),{baseAxes:P,otherAxes:O}};function g(E,P){var O=E.getExtent(),N=O[0]+O[1];E.toGlobalCoord=E.dim==="x"?function(_){return _+P}:function(_){return N-_+P},E.toLocalCoord=E.dim==="x"?function(_){return _-P}:function(_){return N-_+P}}var m=["xAxis","yAxis"];function b(E,P){return D(m,function(O){var N=E.getReferringComponents(O)[0];return N})}function I(E){return E.get("coordinateSystem")==="cartesian2d"}d.create=function(E,P){var O=[];return E.eachComponent("grid",function(N,_){var G=new d(N,E,P);G.name="grid_"+_,G.resize(N,P,!0),N.coordinateSystem=G,O.push(G)}),E.eachSeries(function(N){if(I(N)){var _=b(N,E),G=_[0],F=_[1],W=G.getCoordSysModel(),U=W.coordinateSystem;N.coordinateSystem=U.getCartesian(G.componentIndex,F.componentIndex)}}),O},d.dimensions=d.prototype.dimensions=o.prototype.dimensions,l.register("cartesian2d",d);var R=d;Y.exports=R},9441:function(Y,V,n){n(75089);var T=n(16172),L=T.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});Y.exports=L},84106:function(Y,V,n){var T=n(69008);function L(M,w,C){C=C||{};var D=M.coordinateSystem,S=w.axis,p={},v=S.getAxesOnZeroOf()[0],t=S.position,s=v?"onZero":t,i=S.dim,a=D.getRect(),u=[a.x,a.x+a.width,a.y,a.y+a.height],e={left:0,right:1,top:0,bottom:1,onZero:2},o=w.get("offset")||0,r=i==="x"?[u[2]-o,u[3]+o]:[u[0]-o,u[1]+o];if(v){var l=v.toGlobalCoord(v.dataToCoord(0));r[e.onZero]=Math.max(Math.min(l,r[1]),r[0])}p.position=[i==="y"?r[e[s]]:u[0],i==="x"?r[e[s]]:u[3]],p.rotation=Math.PI/2*(i==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};p.labelDirection=p.tickDirection=p.nameDirection=h[t],p.labelOffset=v?r[e[t]]-r[e.onZero]:0,w.get("axisTick.inside")&&(p.tickDirection=-p.tickDirection),T.retrieve(C.labelInside,w.get("axisLabel.inside"))&&(p.labelDirection=-p.labelDirection);var f=w.get("axisLabel.rotate");return p.labelRotate=s==="top"?-f:f,p.z2=1,p}V.layout=L},40114:function(Y,V,n){var T=n(69008);function L(w,C){return C=C||[0,0],T.map(["x","y"],function(D,S){var p=this.getAxis(D),v=C[S],t=w[S]/2;return p.type==="category"?p.getBandWidth():Math.abs(p.dataToCoord(v-t)-p.dataToCoord(v+t))},this)}function M(w){var C=w.grid.getRect();return{coordSys:{type:"cartesian2d",x:C.x,y:C.y,width:C.width,height:C.height},api:{coord:function(D){return w.dataToPoint(D)},size:T.bind(L,w)}}}Y.exports=M},63378:function(Y,V,n){var T=n(69008),L=n(9806),M=n(86990),w=n(11954);function C(p,v,t,s){M.call(this,p),this.map=v;var i=w.load(v,t);this._nameCoordMap=i.nameCoordMap,this._regionsMap=i.regionsMap,this._invertLongitute=s==null?!0:s,this.regions=i.regions,this._rect=i.boundingRect}C.prototype={constructor:C,type:"geo",dimensions:["lng","lat"],containCoord:function(p){for(var v=this.regions,t=0;t<v.length;t++)if(v[t].contain(p))return!0;return!1},transformTo:function(p,v,t,s){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var u=this._rawTransformable;if(u.transform=i.calculateTransform(new L(p,v,t,s)),u.decomposeTransform(),a){var e=u.scale;e[1]=-e[1]}u.updateTransform(),this._updateTransform()},getRegion:function(p){return this._regionsMap.get(p)},getRegionByCoord:function(p){for(var v=this.regions,t=0;t<v.length;t++)if(v[t].contain(p))return v[t]},addGeoCoord:function(p,v){this._nameCoordMap.set(p,v)},getGeoCoord:function(p){return this._nameCoordMap.get(p)},getBoundingRect:function(){return this._rect},dataToPoint:function(p,v,t){if(typeof p=="string"&&(p=this.getGeoCoord(p)),p)return M.prototype.dataToPoint.call(this,p,v,t)},convertToPixel:T.curry(D,"dataToPoint"),convertFromPixel:T.curry(D,"pointToData")},T.mixin(C,M);function D(p,v,t,s){var i=t.geoModel,a=t.seriesModel,u=i?i.coordinateSystem:a?a.coordinateSystem||(a.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return u===this?u[p](s):null}var S=C;Y.exports=S},55550:function(Y,V,n){var T=n(69008),L=n(90830),M=n(16172),w=n(24040),C=n(78240),D=n(91148),S=M.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(v){M.prototype.init.apply(this,arguments),L.defaultEmphasis(v,"label",["show"])},optionUpdated:function(){var v=this.option,t=this;v.regions=D.getFilledRegions(v.regions,v.map,v.nameMap),this._optionModelMap=T.reduce(v.regions||[],function(s,i){return i.name&&s.set(i.name,new w(i,t)),s},T.createHashMap()),this.updateSelectedMap(v.regions)},defaultOption:{zlevel:0,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",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(v){return this._optionModelMap.get(v)||new w(null,this,this.ecModel)},getFormattedLabel:function(v,t){var s=this.getRegionModel(v),i=s.get("label"+(t==="normal"?".":t+".")+"formatter"),a={name:v};if(typeof i=="function")return a.status=t,i(a);if(typeof i=="string")return i.replace("{a}",v!=null?v:"")},setZoom:function(v){this.option.zoom=v},setCenter:function(v){this.option.center=v}});T.mixin(S,C);var p=S;Y.exports=p},125:function(Y,V,n){var T=n(9806),L=n(16254),M=n(47764),w=n(59049);function C(S,p,v){if(this.name=S,this.geometries=p,v)v=[v[0],v[1]];else{var t=this.getBoundingRect();v=[t.x+t.width/2,t.y+t.height/2]}this.center=v}C.prototype={constructor:C,properties:null,getBoundingRect:function(){var S=this._rect;if(S)return S;for(var p=Number.MAX_VALUE,v=[p,p],t=[-p,-p],s=[],i=[],a=this.geometries,u=0;u<a.length;u++)if(a[u].type==="polygon"){var e=a[u].exterior;L.fromPoints(e,s,i),M.min(v,v,s),M.max(t,t,i)}return u===0&&(v[0]=v[1]=t[0]=t[1]=0),this._rect=new T(v[0],v[1],t[0]-v[0],t[1]-v[1])},contain:function(S){var p=this.getBoundingRect(),v=this.geometries;if(!p.contain(S[0],S[1]))return!1;t:for(var t=0,s=v.length;t<s;t++)if(v[t].type==="polygon"){var i=v[t].exterior,a=v[t].interiors;if(w.contain(i,S[0],S[1])){for(var u=0;u<(a?a.length:0);u++)if(w.contain(a[u]))continue t;return!0}}return!1},transformTo:function(S,p,v,t){var s=this.getBoundingRect(),i=s.width/s.height;v?t||(t=v/i):v=i*t;for(var a=new T(S,p,v,t),u=s.calculateTransform(a),e=this.geometries,o=0;o<e.length;o++)if(e[o].type==="polygon"){for(var r=e[o].exterior,l=e[o].interiors,h=0;h<r.length;h++)M.applyTransform(r[h],r[h],u);for(var f=0;f<(l?l.length:0);f++)for(var h=0;h<l[f].length;h++)M.applyTransform(l[f][h],l[f][h],u)}s=this._rect,s.copy(a),this.center=[s.x+s.width/2,s.y+s.height/2]},cloneShallow:function(S){S==null&&(S=this.name);var p=new C(S,this.geometries,this.center);return p._rect=this._rect,p.transformTo=null,p}};var D=C;Y.exports=D},13380:function(Y){var V=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function n(T,L){T==="china"&&L.name==="\u53F0\u6E7E"&&L.geometries.push({type:"polygon",exterior:V[0]})}Y.exports=n},22771:function(Y){var V={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function n(T,L){if(T==="world"){var M=V[L.name];if(M){var w=L.center;w[0]=M[0],w[1]=M[1]}}}Y.exports=n},96635:function(Y,V,n){for(var T=n(69008),L=n(125),M=[126,25],w=[[[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]]],C=0;C<w.length;C++)for(var D=0;D<w[C].length;D++)w[C][D][0]/=10.5,w[C][D][1]/=-10.5/.75,w[C][D][0]+=M[0],w[C][D][1]+=M[1];function S(p,v){p==="china"&&v.push(new L("\u5357\u6D77\u8BF8\u5C9B",T.map(w,function(t){return{type:"polygon",exterior:t}}),M))}Y.exports=S},98930:function(Y){var V={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function n(T,L){if(T==="china"){var M=V[L.name];if(M){var w=L.center;w[0]+=M[0]/10.5,w[1]+=-M[1]/(10.5/.75)}}}Y.exports=n},91148:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(3096),w=n(69008),C=n(63378),D=n(7357),S=n(86957),p=n(11954),v=n(62325);function t(u,e){var o=u.get("boundingCoords");if(o!=null){var r=o[0],l=o[1];isNaN(r[0])||isNaN(r[1])||isNaN(l[0])||isNaN(l[1])||this.setBoundingRect(r[0],r[1],l[0]-r[0],l[1]-r[1])}var h=this.getBoundingRect(),f,c=u.get("layoutCenter"),d=u.get("layoutSize"),A=e.getWidth(),x=e.getHeight(),y=h.width/h.height*this.aspectScale,g=!1;c&&d&&(c=[S.parsePercent(c[0],A),S.parsePercent(c[1],x)],d=S.parsePercent(d,Math.min(A,x)),!isNaN(c[0])&&!isNaN(c[1])&&!isNaN(d)&&(g=!0));var m;if(g){var m={};y>1?(m.width=d,m.height=d/y):(m.height=d,m.width=d*y),m.y=c[1]-m.height/2,m.x=c[0]-m.width/2}else f=u.getBoxLayoutParams(),f.aspect=y,m=D.getLayoutRect(f,{width:A,height:x});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(u.get("center")),this.setZoom(u.get("zoom"))}function s(u,e){w.each(e.get("geoCoord"),function(o,r){u.addGeoCoord(r,o)})}var i={dimensions:C.prototype.dimensions,create:function(u,e){var o=[];u.eachComponent("geo",function(l,h){var f=l.get("map"),c=l.get("aspectScale"),d=!0,A=v.retrieveMap(f);A&&A[0]&&A[0].type==="svg"?(c==null&&(c=1),d=!1):c==null&&(c=.75);var x=new C(f+h,f,l.get("nameMap"),d);x.aspectScale=c,x.zoomLimit=l.get("scaleLimit"),o.push(x),s(x,l),l.coordinateSystem=x,x.model=l,x.resize=t,x.resize(l,e)}),u.eachSeries(function(l){var h=l.get("coordinateSystem");if(h==="geo"){var f=l.get("geoIndex")||0;l.coordinateSystem=o[f]}});var r={};return u.eachSeriesByType("map",function(l){if(!l.getHostGeoModel()){var h=l.getMapType();r[h]=r[h]||[],r[h].push(l)}}),w.each(r,function(l,h){var f=w.map(l,function(d){return d.get("nameMap")}),c=new C(h,h,w.mergeAll(f));c.zoomLimit=w.retrieve.apply(null,w.map(l,function(d){return d.get("scaleLimit")})),o.push(c),c.resize=t,c.aspectScale=l[0].get("aspectScale"),c.resize(l[0],e),w.each(l,function(d){d.coordinateSystem=c,s(c,d)})}),o},getFilledRegions:function(u,e,o){for(var r=(u||[]).slice(),l=w.createHashMap(),h=0;h<r.length;h++)l.set(r[h].name,r[h]);var f=p.load(e,o);return w.each(f.regions,function(c){var d=c.name;!l.get(d)&&r.push({name:d})}),r}};M.registerCoordinateSystem("geo",i);var a=i;Y.exports=a},56808:function(Y,V,n){var T=n(69008),L=T.each,M=n(61338),w=n(90830),C=w.makeInner,D=n(96635),S=n(98930),p=n(22771),v=n(13380),t=C(),s={load:function(a,u,e){var o=t(u).parsed;if(o)return o;var r=u.specialAreas||{},l=u.geoJSON,h;try{h=l?M(l,e):[]}catch(f){throw new Error(`Invalid geoJson format
`+f.message)}return D(a,h),L(h,function(f){var c=f.name;S(a,f),p(a,f),v(a,f);var d=r[c];d&&f.transformTo(d.left,d.top,d.width,d.height)}),t(u).parsed={regions:h,boundingRect:i(h)}}};function i(a){for(var u,e=0;e<a.length;e++){var o=a[e].getBoundingRect();u=u||o.clone(),u.union(o)}return u}Y.exports=s},2040:function(Y,V,n){var T=n(74057),L=T.parseSVG,M=T.makeViewBoxTransform,w=n(27796),C=n(74639),D=n(69008),S=D.assert,p=D.createHashMap,v=n(9806),t=n(90830),s=t.makeInner,i=s(),a={load:function(e,o){var r=i(o).originRoot;if(r)return{root:r,boundingRect:i(o).boundingRect};var l=u(o);return i(o).originRoot=l.root,i(o).boundingRect=l.boundingRect,l},makeGraphic:function(e,o,r){var l=i(o),h=l.rootMap||(l.rootMap=p()),f=h.get(r);if(f)return f;var c=l.originRoot,d=l.boundingRect;return l.originRootHostKey?f=u(o,d).root:(l.originRootHostKey=r,f=c),h.set(r,f)},removeGraphic:function(e,o,r){var l=i(o),h=l.rootMap;h&&h.removeKey(r),r===l.originRootHostKey&&(l.originRootHostKey=null)}};function u(e,o){var r=e.svgXML,l,h;try{l=r&&L(r,{ignoreViewBox:!0,ignoreRootClip:!0})||{},h=l.root,S(h!=null)}catch(y){throw new Error(`Invalid svg format
`+y.message)}var f=l.width,c=l.height,d=l.viewBoxRect;if(o||(o=f==null||c==null?h.getBoundingRect():new v(0,0,0,0),f!=null&&(o.width=f),c!=null&&(o.height=c)),d){var A=M(d,o.width,o.height),x=h;h=new w,h.add(x),x.scale=A.scale,x.position=A.position}return h.setClipPath(new C({shape:o.plain()})),{root:h,boundingRect:o}}Y.exports=a},11954:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=M.each,C=M.createHashMap,D=n(62325),S=n(56808),p=n(2040),v=n(9806),t={geoJSON:S,svg:p},s={load:function(e,o,r){var l=[],h=C(),f=C(),c,d=u(e);return w(d,function(A){var x=t[A.type].load(e,A,r);w(x.regions,function(g){var m=g.name;o&&o.hasOwnProperty(m)&&(g=g.cloneShallow(m=o[m])),l.push(g),h.set(m,g),f.set(m,g.center)});var y=x.boundingRect;y&&(c?c.union(y):c=y.clone())}),{regions:l,regionsMap:h,nameCoordMap:f,boundingRect:c||new v(0,0,0,0)}},makeGraphic:i("makeGraphic"),removeGraphic:i("removeGraphic")};function i(e){return function(o,r){var l=u(o),h=[];return w(l,function(f){var c=t[f.type][e];c&&h.push(c(o,f,r))}),h}}function a(e){}function u(e){var o=D.retrieveMap(e)||[];return o}Y.exports=s},62325:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=M.createHashMap,C=M.isString,D=M.isArray,S=M.each,p=M.assert,v=n(74057),t=v.parseXML,s=w(),i={registerMap:function(u,e,o){var r;return D(e)?r=e:e.svg?r=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(o=e.specialAreas,e=e.geoJson),r=[{type:"geoJSON",source:e,specialAreas:o}]),S(r,function(l){var h=l.type;h==="geoJson"&&(h=l.type="geoJSON");var f=a[h];f(l)}),s.set(u,r)},retrieveMap:function(u){return s.get(u)}},a={geoJSON:function(u){var e=u.source;u.geoJSON=C(e)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(u){u.svgXML=t(u.source)}};Y.exports=i},61338:function(Y,V,n){var T=n(69008),L=n(125);function M(D){if(!D.UTF8Encoding)return D;var S=D.UTF8Scale;S==null&&(S=1024);for(var p=D.features,v=0;v<p.length;v++)for(var t=p[v],s=t.geometry,i=s.coordinates,a=s.encodeOffsets,u=0;u<i.length;u++){var e=i[u];if(s.type==="Polygon")i[u]=w(e,a[u],S);else if(s.type==="MultiPolygon")for(var o=0;o<e.length;o++){var r=e[o];e[o]=w(r,a[u][o],S)}}return D.UTF8Encoding=!1,D}function w(D,S,p){for(var v=[],t=S[0],s=S[1],i=0;i<D.length;i+=2){var a=D.charCodeAt(i)-64,u=D.charCodeAt(i+1)-64;a=a>>1^-(a&1),u=u>>1^-(u&1),a+=t,u+=s,t=a,s=u,v.push([a/p,u/p])}return v}function C(D,S){return M(D),T.map(T.filter(D.features,function(p){return p.geometry&&p.properties&&p.geometry.coordinates.length>0}),function(p){var v=p.properties,t=p.geometry,s=t.coordinates,i=[];t.type==="Polygon"&&i.push({type:"polygon",exterior:s[0],interiors:s.slice(1)}),t.type==="MultiPolygon"&&T.each(s,function(u){u[0]&&i.push({type:"polygon",exterior:u[0],interiors:u.slice(1)})});var a=new L(v[S||"name"],i,v.cp);return a.properties=v,a})}Y.exports=C},8058:function(Y,V,n){var T=n(69008);function L(w,C){return C=C||[0,0],T.map([0,1],function(D){var S=C[D],p=w[D]/2,v=[],t=[];return v[D]=S-p,t[D]=S+p,v[1-D]=t[1-D]=C[1-D],Math.abs(this.dataToPoint(v)[D]-this.dataToPoint(t)[D])},this)}function M(w){var C=w.getBoundingRect();return{coordSys:{type:"geo",x:C.x,y:C.y,width:C.width,height:C.height,zoom:w.getZoom()},api:{coord:function(D){return w.dataToPoint(D)},size:T.bind(L,w)}}}Y.exports=M},97292:function(Y,V,n){var T=n(69008),L=n(16172),M=n(76282),w=n(12089),C=n(86957),D=n(5270),S=L.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return M([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(s){var i=this.activeIntervals=T.clone(s);if(i)for(var a=i.length-1;a>=0;a--)C.asc(i[a])},getActiveState:function(s){var i=this.activeIntervals;if(!i.length)return"normal";if(s==null||isNaN(s))return"inactive";if(i.length===1){var a=i[0];if(a[0]<=s&&s<=a[1])return"active"}else for(var u=0,e=i.length;u<e;u++)if(i[u][0]<=s&&s<=i[u][1])return"active";return"inactive"}}),p={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};T.merge(S.prototype,D);function v(s,i){return i.type||(i.data?"category":"value")}w("parallel",S,v,p);var t=S;Y.exports=t},42044:function(Y,V,n){var T=n(69008),L=n(26237),M=n(7357),w=n(44815),C=n(96709),D=n(18993),S=n(86957),p=n(98810),v=T.each,t=Math.min,s=Math.max,i=Math.floor,a=Math.ceil,u=S.round,e=Math.PI;function o(c,d,A){this._axesMap=T.createHashMap(),this._axesLayout={},this.dimensions=c.dimensions,this._rect,this._model=c,this._init(c,d,A)}o.prototype={type:"parallel",constructor:o,_init:function(c,d,A){var x=c.dimensions,y=c.parallelAxisIndex;v(x,function(g,m){var b=y[m],I=d.getComponent("parallelAxis",b),R=this._axesMap.set(g,new C(g,w.createScaleByModel(I),[0,0],I.get("type"),b)),E=R.type==="category";R.onBand=E&&I.get("boundaryGap"),R.inverse=I.get("inverse"),I.axis=R,R.model=I,R.coordinateSystem=I.coordinateSystem=this},this)},update:function(c,d){this._updateAxesFromSeries(this._model,c)},containPoint:function(c){var d=this._makeLayoutInfo(),A=d.axisBase,x=d.layoutBase,y=d.pixelDimIndex,g=c[1-y],m=c[y];return g>=A&&g<=A+d.axisLength&&m>=x&&m<=x+d.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(c,d){d.eachSeries(function(A){if(c.contains(A,d)){var x=A.getData();v(this.dimensions,function(y){var g=this._axesMap.get(y);g.scale.unionExtentFromData(x,x.mapDimension(y)),w.niceScaleExtent(g.scale,g.model)},this)}},this)},resize:function(c,d){this._rect=M.getLayoutRect(c.getBoxLayoutParams(),{width:d.getWidth(),height:d.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var c=this._model,d=this._rect,A=["x","y"],x=["width","height"],y=c.get("layout"),g=y==="horizontal"?0:1,m=d[x[g]],b=[0,m],I=this.dimensions.length,R=r(c.get("axisExpandWidth"),b),E=r(c.get("axisExpandCount")||0,[0,I]),P=c.get("axisExpandable")&&I>3&&I>E&&E>1&&R>0&&m>0,O=c.get("axisExpandWindow"),N;if(O)N=r(O[1]-O[0],b),O[1]=O[0]+N;else{N=r(R*(E-1),b);var _=c.get("axisExpandCenter")||i(I/2);O=[R*_-N/2],O[1]=O[0]+N}var G=(m-N)/(I-E);G<3&&(G=0);var F=[i(u(O[0]/R,1))+1,a(u(O[1]/R,1))-1],W=G/R*O[0];return{layout:y,pixelDimIndex:g,layoutBase:d[A[g]],layoutLength:m,axisBase:d[A[1-g]],axisLength:d[x[1-g]],axisExpandable:P,axisExpandWidth:R,axisCollapseWidth:G,axisExpandWindow:O,axisCount:I,winInnerIndices:F,axisExpandWindow0Pos:W}},_layoutAxes:function(){var c=this._rect,d=this._axesMap,A=this.dimensions,x=this._makeLayoutInfo(),y=x.layout;d.each(function(g){var m=[0,x.axisLength],b=g.inverse?1:0;g.setExtent(m[b],m[1-b])}),v(A,function(g,m){var b=(x.axisExpandable?h:l)(m,x),I={horizontal:{x:b.position,y:x.axisLength},vertical:{x:0,y:b.position}},R={horizontal:e/2,vertical:0},E=[I[y].x+c.x,I[y].y+c.y],P=R[y],O=L.create();L.rotate(O,O,P),L.translate(O,O,E),this._axesLayout[g]={position:E,rotation:P,transform:O,axisNameAvailableWidth:b.axisNameAvailableWidth,axisLabelShow:b.axisLabelShow,nameTruncateMaxWidth:b.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(c){return this._axesMap.get(c)},dataToPoint:function(c,d){return this.axisCoordToPoint(this._axesMap.get(d).dataToCoord(c),d)},eachActiveState:function(c,d,A,x){A==null&&(A=0),x==null&&(x=c.count());var y=this._axesMap,g=this.dimensions,m=[],b=[];T.each(g,function(G){m.push(c.mapDimension(G)),b.push(y.get(G).model)});for(var I=this.hasAxisBrushed(),R=A;R<x;R++){var E;if(!I)E="normal";else{E="active";for(var P=c.getValues(m,R),O=0,N=g.length;O<N;O++){var _=b[O].getActiveState(P[O]);if(_==="inactive"){E="inactive";break}}}d(E,R)}},hasAxisBrushed:function(){for(var c=this.dimensions,d=this._axesMap,A=!1,x=0,y=c.length;x<y;x++)d.get(c[x]).model.getActiveState()!=="normal"&&(A=!0);return A},axisCoordToPoint:function(c,d){var A=this._axesLayout[d];return D.applyTransform([c,0],A.transform)},getAxisLayout:function(c){return T.clone(this._axesLayout[c])},getSlidedAxisExpandWindow:function(c){var d=this._makeLayoutInfo(),A=d.pixelDimIndex,x=d.axisExpandWindow.slice(),y=x[1]-x[0],g=[0,d.axisExpandWidth*(d.axisCount-1)];if(!this.containPoint(c))return{behavior:"none",axisExpandWindow:x};var m=c[A]-d.layoutBase-d.axisExpandWindow0Pos,b,I="slide",R=d.axisCollapseWidth,E=this._model.get("axisExpandSlideTriggerArea"),P=E[0]!=null;if(R)P&&R&&m<y*E[0]?(I="jump",b=m-y*E[2]):P&&R&&m>y*(1-E[0])?(I="jump",b=m-y*(1-E[2])):(b=m-y*E[1])>=0&&(b=m-y*(1-E[1]))<=0&&(b=0),b*=d.axisExpandWidth/R,b?p(b,x,g,"all"):I="none";else{var y=x[1]-x[0],O=g[1]*m/y;x=[s(0,O-y/2)],x[1]=t(g[1],x[0]+y),x[0]=x[1]-y}return{axisExpandWindow:x,behavior:I}}};function r(c,d){return t(s(c,d[0]),d[1])}function l(c,d){var A=d.layoutLength/(d.axisCount-1);return{position:A*c,axisNameAvailableWidth:A,axisLabelShow:!0}}function h(c,d){var A=d.layoutLength,x=d.axisExpandWidth,y=d.axisCount,g=d.axisCollapseWidth,m=d.winInnerIndices,b,I=g,R=!1,E;return c<m[0]?(b=c*g,E=g):c<=m[1]?(b=d.axisExpandWindow0Pos+c*x-d.axisExpandWindow[0],I=x,R=!0):(b=A-(y-1-c)*g,E=g),{position:b,axisNameAvailableWidth:I,axisLabelShow:R,nameTruncateMaxWidth:E}}var f=o;Y.exports=f},96709:function(Y,V,n){var T=n(69008),L=n(97694),M=function(C,D,S,p,v){L.call(this,C,D,S),this.type=p||"value",this.axisIndex=v};M.prototype={constructor:M,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},T.inherits(M,L);var w=M;Y.exports=w},19061:function(Y,V,n){var T=n(69008),L=n(16172);n(97292);var M=L.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,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},init:function(){L.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(w){var C=this.option;w&&T.merge(C,w,!0),this._initDimensions()},contains:function(w,C){var D=w.get("parallelIndex");return D!=null&&C.getComponent("parallel",D)===this},setAxisExpand:function(w){T.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(C){w.hasOwnProperty(C)&&(this.option[C]=w[C])},this)},_initDimensions:function(){var w=this.dimensions=[],C=this.parallelAxisIndex=[],D=T.filter(this.dependentModels.parallelAxis,function(S){return(S.get("parallelIndex")||0)===this.componentIndex},this);T.each(D,function(S){w.push("dim"+S.get("dim")),C.push(S.componentIndex)})}});Y.exports=M},3881:function(Y,V,n){var T=n(42044),L=n(33807);function M(w,C){var D=[];return w.eachComponent("parallel",function(S,p){var v=new T(S,w,C);v.name="parallel_"+p,v.resize(S,C),S.coordinateSystem=v,v.model=S,D.push(v)}),w.eachSeries(function(S){if(S.get("coordinateSystem")==="parallel"){var p=w.queryComponents({mainType:"parallel",index:S.get("parallelIndex"),id:S.get("parallelId")})[0];S.coordinateSystem=p.coordinateSystem}}),D}L.register("parallel",{create:M})},98700:function(Y,V,n){var T=n(69008),L=n(90830);function M(D){w(D),C(D)}function w(D){if(!D.parallel){var S=!1;T.each(D.series,function(p){p&&p.type==="parallel"&&(S=!0)}),S&&(D.parallel=[{}])}}function C(D){var S=L.normalizeToArray(D.parallelAxis);T.each(S,function(p){if(T.isObject(p)){var v=p.parallelIndex||0,t=L.normalizeToArray(D.parallel)[v];t&&t.parallelAxisDefault&&T.merge(p,t.parallelAxisDefault,!1)}})}Y.exports=M},6797:function(Y,V,n){var T=n(69008),L=n(63603),M=n(97694),w=n(90830),C=w.makeInner,D=C();function S(v,t){t=t||[0,360],M.call(this,"angle",v,t),this.type="category"}S.prototype={constructor:S,pointToData:function(v,t){return this.polar.pointToData(v,t)[this.dim==="radius"?0:1]},dataToAngle:M.prototype.dataToCoord,angleToData:M.prototype.coordToData,calculateCategoryInterval:function(){var v=this,t=v.getLabelModel(),s=v.scale,i=s.getExtent(),a=s.count();if(i[1]-i[0]<1)return 0;var u=i[0],e=v.dataToCoord(u+1)-v.dataToCoord(u),o=Math.abs(e),r=L.getBoundingRect(u,t.getFont(),"center","top"),l=Math.max(r.height,7),h=l/o;isNaN(h)&&(h=1/0);var f=Math.max(0,Math.floor(h)),c=D(v.model),d=c.lastAutoInterval,A=c.lastTickCount;return d!=null&&A!=null&&Math.abs(d-f)<=1&&Math.abs(A-a)<=1&&d>f?f=d:(c.lastTickCount=a,c.lastAutoInterval=f),f}},T.inherits(S,M);var p=S;Y.exports=p},98138:function(Y,V,n){var T=n(69008),L=n(16172),M=n(12089),w=n(5270),C=L.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});T.merge(C.prototype,w);var D={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function S(p,v){return v.type||(v.data?"category":"value")}M("angle",C,S,D.angle),M("radius",C,S,D.radius)},68338:function(Y,V,n){var T=n(14989),L=n(6797),M=function(C){this.name=C||"",this.cx=0,this.cy=0,this._radiusAxis=new T,this._angleAxis=new L,this._radiusAxis.polar=this._angleAxis.polar=this};M.prototype={type:"polar",axisPointerEnabled:!0,constructor:M,dimensions:["radius","angle"],model:null,containPoint:function(C){var D=this.pointToCoord(C);return this._radiusAxis.contain(D[0])&&this._angleAxis.contain(D[1])},containData:function(C){return this._radiusAxis.containData(C[0])&&this._angleAxis.containData(C[1])},getAxis:function(C){return this["_"+C+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(C){var D=[],S=this._angleAxis,p=this._radiusAxis;return S.scale.type===C&&D.push(S),p.scale.type===C&&D.push(p),D},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(C){var D=this._angleAxis;return C===D?this._radiusAxis:D},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(C){var D=C!=null&&C!=="auto"?this.getAxis(C):this.getBaseAxis();return{baseAxes:[D],otherAxes:[this.getOtherAxis(D)]}},dataToPoint:function(C,D){return this.coordToPoint([this._radiusAxis.dataToRadius(C[0],D),this._angleAxis.dataToAngle(C[1],D)])},pointToData:function(C,D){var S=this.pointToCoord(C);return[this._radiusAxis.radiusToData(S[0],D),this._angleAxis.angleToData(S[1],D)]},pointToCoord:function(C){var D=C[0]-this.cx,S=C[1]-this.cy,p=this.getAngleAxis(),v=p.getExtent(),t=Math.min(v[0],v[1]),s=Math.max(v[0],v[1]);p.inverse?t=s-360:s=t+360;var i=Math.sqrt(D*D+S*S);D/=i,S/=i;for(var a=Math.atan2(-S,D)/Math.PI*180,u=a<t?1:-1;a<t||a>s;)a+=u*360;return[i,a]},coordToPoint:function(C){var D=C[0],S=C[1]/180*Math.PI,p=Math.cos(S)*D+this.cx,v=-Math.sin(S)*D+this.cy;return[p,v]},getArea:function(){var C=this.getAngleAxis(),D=this.getRadiusAxis(),S=D.getExtent().slice();S[0]>S[1]&&S.reverse();var p=C.getExtent(),v=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:S[0],r:S[1],startAngle:-p[0]*v,endAngle:-p[1]*v,clockwise:C.inverse,contain:function(t,s){var i=t-this.cx,a=s-this.cy,u=i*i+a*a,e=this.r,o=this.r0;return u<=e*e&&u>=o*o}}}};var w=M;Y.exports=w},15001:function(Y,V,n){var T=n(3096);n(98138);var L=T.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(M){var w,C=this.ecModel;return C.eachComponent(M,function(D){D.getCoordSysModel()===this&&(w=D)},this),w},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});Y.exports=L},14989:function(Y,V,n){var T=n(69008),L=n(97694);function M(C,D){L.call(this,"radius",C,D),this.type="category"}M.prototype={constructor:M,pointToData:function(C,D){return this.polar.pointToData(C,D)[this.dim==="radius"?0:1]},dataToRadius:L.prototype.dataToCoord,radiusToData:L.prototype.coordToData},T.inherits(M,L);var w=M;Y.exports=w},49900:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(68338),C=n(86957),D=C.parsePercent,S=n(44815),p=S.createScaleByModel,v=S.niceScaleExtent,t=n(33807),s=n(22240),i=s.getStackedDimension;n(15001);function a(r,l,h){var f=l.get("center"),c=h.getWidth(),d=h.getHeight();r.cx=D(f[0],c),r.cy=D(f[1],d);var A=r.getRadiusAxis(),x=Math.min(c,d)/2,y=l.get("radius");y==null?y=[0,"100%"]:M.isArray(y)||(y=[0,y]),y=[D(y[0],x),D(y[1],x)],A.inverse?A.setExtent(y[1],y[0]):A.setExtent(y[0],y[1])}function u(r,l){var h=this,f=h.getAngleAxis(),c=h.getRadiusAxis();if(f.scale.setExtent(1/0,-1/0),c.scale.setExtent(1/0,-1/0),r.eachSeries(function(x){if(x.coordinateSystem===h){var y=x.getData();M.each(y.mapDimension("radius",!0),function(g){c.scale.unionExtentFromData(y,i(y,g))}),M.each(y.mapDimension("angle",!0),function(g){f.scale.unionExtentFromData(y,i(y,g))})}}),v(f.scale,f.model),v(c.scale,c.model),f.type==="category"&&!f.onBand){var d=f.getExtent(),A=360/f.scale.count();f.inverse?d[1]+=A:d[1]-=A,f.setExtent(d[0],d[1])}}function e(r,l){if(r.type=l.get("type"),r.scale=p(l),r.onBand=l.get("boundaryGap")&&r.type==="category",r.inverse=l.get("inverse"),l.mainType==="angleAxis"){r.inverse^=l.get("clockwise");var h=l.get("startAngle");r.setExtent(h,h+(r.inverse?-360:360))}l.axis=r,r.model=l}var o={dimensions:w.prototype.dimensions,create:function(r,l){var h=[];return r.eachComponent("polar",function(f,c){var d=new w(c);d.update=u;var A=d.getRadiusAxis(),x=d.getAngleAxis(),y=f.findAxisModel("radiusAxis"),g=f.findAxisModel("angleAxis");e(A,y),e(x,g),a(d,f,l),h.push(d),f.coordinateSystem=d,d.model=f}),r.eachSeries(function(f){if(f.get("coordinateSystem")==="polar"){var c=r.queryComponents({mainType:"polar",index:f.get("polarIndex"),id:f.get("polarId")})[0];f.coordinateSystem=c.coordinateSystem}}),h}};t.register("polar",o)},69171:function(Y,V,n){var T=n(69008);function L(w,C){return T.map(["Radius","Angle"],function(D,S){var p=this["get"+D+"Axis"](),v=C[S],t=w[S]/2,s="dataTo"+D,i=p.type==="category"?p.getBandWidth():Math.abs(p[s](v-t)-p[s](v+t));return D==="Angle"&&(i=i*Math.PI/180),i},this)}function M(w){var C=w.getRadiusAxis(),D=w.getAngleAxis(),S=C.getExtent();return S[0]>S[1]&&S.reverse(),{coordSys:{type:"polar",cx:w.cx,cy:w.cy,r:S[1],r0:S[0]},api:{coord:T.bind(function(p){var v=C.dataToRadius(p[0]),t=D.dataToAngle(p[1]),s=w.coordToPoint([v,t]);return s.push(v,t*Math.PI/180),s}),size:T.bind(L,w)}}}Y.exports=M},20671:function(Y,V,n){var T=n(69008),L=n(97694);function M(C,D,S){L.call(this,C,D,S),this.type="value",this.angle=0,this.name="",this.model}T.inherits(M,L);var w=M;Y.exports=w},37292:function(Y,V,n){var T=n(69008),L=n(20671),M=n(48149),w=n(86957),C=n(44815),D=C.getScaleExtent,S=C.niceScaleExtent,p=n(33807),v=n(64763);function t(i,a,u){this._model=i,this.dimensions=[],this._indicatorAxes=T.map(i.getIndicatorModels(),function(e,o){var r="indicator_"+o,l=new L(r,e.get("axisType")==="log"?new v:new M);return l.name=e.get("name"),l.model=e,e.axis=l,this.dimensions.push(r),l},this),this.resize(i,u),this.cx,this.cy,this.r,this.r0,this.startAngle}t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(i,a){var u=this._indicatorAxes[a];return this.coordToPoint(u.dataToCoord(i),a)},t.prototype.coordToPoint=function(i,a){var u=this._indicatorAxes[a],e=u.angle,o=this.cx+i*Math.cos(e),r=this.cy-i*Math.sin(e);return[o,r]},t.prototype.pointToData=function(i){var a=i[0]-this.cx,u=i[1]-this.cy,e=Math.sqrt(a*a+u*u);a/=e,u/=e;for(var o=Math.atan2(-u,a),r=1/0,l,h=-1,f=0;f<this._indicatorAxes.length;f++){var c=this._indicatorAxes[f],d=Math.abs(o-c.angle);d<r&&(l=c,h=f,r=d)}return[h,+(l&&l.coordToData(e))]},t.prototype.resize=function(i,a){var u=i.get("center"),e=a.getWidth(),o=a.getHeight(),r=Math.min(e,o)/2;this.cx=w.parsePercent(u[0],e),this.cy=w.parsePercent(u[1],o),this.startAngle=i.get("startAngle")*Math.PI/180;var l=i.get("radius");(typeof l=="string"||typeof l=="number")&&(l=[0,l]),this.r0=w.parsePercent(l[0],r),this.r=w.parsePercent(l[1],r),T.each(this._indicatorAxes,function(h,f){h.setExtent(this.r0,this.r);var c=this.startAngle+f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),h.angle=c},this)},t.prototype.update=function(i,a){var u=this._indicatorAxes,e=this._model;T.each(u,function(l){l.scale.setExtent(1/0,-1/0)}),i.eachSeriesByType("radar",function(l,h){if(!(l.get("coordinateSystem")!=="radar"||i.getComponent("radar",l.get("radarIndex"))!==e)){var f=l.getData();T.each(u,function(c){c.scale.unionExtentFromData(f,f.mapDimension(c.dim))})}},this);var o=e.get("splitNumber");function r(l){var h=Math.pow(10,Math.floor(Math.log(l)/Math.LN10)),f=l/h;return f===2?f=5:f*=2,f*h}T.each(u,function(l,h){var f=D(l.scale,l.model).extent;S(l.scale,l.model);var c=l.model,d=l.scale,A=c.getMin(),x=c.getMax(),y=d.getInterval();if(A!=null&&x!=null)d.setExtent(+A,+x),d.setInterval((x-A)/o);else if(A!=null){var g;do g=A+y*o,d.setExtent(+A,g),d.setInterval(y),y=r(y);while(g<f[1]&&isFinite(g)&&isFinite(f[1]))}else if(x!=null){var m;do m=x-y*o,d.setExtent(m,+x),d.setInterval(y),y=r(y);while(m>f[0]&&isFinite(m)&&isFinite(f[0]))}else{var b=d.getTicks().length-1;b>o&&(y=r(y));var g=Math.ceil(f[1]/y)*y,m=w.round(g-y*o);d.setExtent(m,g),d.setInterval(y)}})},t.dimensions=[],t.create=function(i,a){var u=[];return i.eachComponent("radar",function(e){var o=new t(e,i,a);u.push(o),e.coordinateSystem=o}),i.eachSeriesByType("radar",function(e){e.get("coordinateSystem")==="radar"&&(e.coordinateSystem=u[e.get("radarIndex")||0])}),u},p.register("radar",t);var s=t;Y.exports=s},924:function(Y,V,n){var T=n(3096),L=n(69008),M=n(61466),w=n(24040),C=n(5270),D=M.valueAxis;function S(t,s){return L.defaults({show:s},t)}var p=T.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),s=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),u=this.get("axisTick"),e=this.get("axisType"),o=this.get("axisLabel"),r=this.get("name"),l=this.get("name.show"),h=this.get("name.formatter"),f=this.get("nameGap"),c=this.get("triggerEvent"),d=L.map(this.get("indicator")||[],function(A){A.max!=null&&A.max>0&&!A.min?A.min=0:A.min!=null&&A.min<0&&!A.max&&(A.max=0);var x=r;if(A.color!=null&&(x=L.defaults({color:A.color},r)),A=L.merge(L.clone(A),{boundaryGap:t,splitNumber:s,scale:i,axisLine:a,axisTick:u,axisType:e,axisLabel:o,name:A.text,nameLocation:"end",nameGap:f,nameTextStyle:x,triggerEvent:c},!1),l||(A.name=""),typeof h=="string"){var y=A.name;A.name=h.replace("{value}",y!=null?y:"")}else typeof h=="function"&&(A.name=h(A.name,A));var g=L.extend(new w(A,null,this.ecModel),C);return g.mainType="radar",g.componentIndex=this.componentIndex,g},this);this.getIndicatorModels=function(){return d}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:L.merge({lineStyle:{color:"#bbb"}},D.axisLine),axisLabel:S(D.axisLabel,!1),axisTick:S(D.axisTick,!1),axisType:"interval",splitLine:S(D.splitLine,!0),splitArea:S(D.splitArea,!0),indicator:[]}}),v=p;Y.exports=v},44526:function(Y,V,n){var T=n(69008),L=n(16172),M=n(12089),w=n(5270),C=L.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),D={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}}};function S(v,t){return t.type||(t.data?"category":"value")}T.merge(C.prototype,w),M("single",C,S,D);var p=C;Y.exports=p},10018:function(Y,V,n){var T=n(7164),L=n(44815),M=n(7357),w=M.getLayoutRect,C=n(69008),D=C.each;function S(v,t,s){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(v,t,s),this.model=v}S.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:S,_init:function(v,t,s){var i=this.dimension,a=new T(i,L.createScaleByModel(v),[0,0],v.get("type"),v.get("position")),u=a.type==="category";a.onBand=u&&v.get("boundaryGap"),a.inverse=v.get("inverse"),a.orient=v.get("orient"),v.axis=a,a.model=v,a.coordinateSystem=this,this._axis=a},update:function(v,t){v.eachSeries(function(s){if(s.coordinateSystem===this){var i=s.getData();D(i.mapDimension(this.dimension,!0),function(a){this._axis.scale.unionExtentFromData(i,a)},this),L.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(v,t){this._rect=w({left:v.get("left"),top:v.get("top"),right:v.get("right"),bottom:v.get("bottom"),width:v.get("width"),height:v.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var v=this._rect,t=this._axis,s=t.isHorizontal(),i=s?[0,v.width]:[0,v.height],a=t.reverse?1:0;t.setExtent(i[a],i[1-a]),this._updateAxisTransform(t,s?v.x:v.y)},_updateAxisTransform:function(v,t){var s=v.getExtent(),i=s[0]+s[1],a=v.isHorizontal();v.toGlobalCoord=a?function(u){return u+t}:function(u){return i-u+t},v.toLocalCoord=a?function(u){return u-t}:function(u){return i-u+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(v){var t=this.getRect(),s=this.getAxis(),i=s.orient;return i==="horizontal"?s.contain(s.toLocalCoord(v[0]))&&v[1]>=t.y&&v[1]<=t.y+t.height:s.contain(s.toLocalCoord(v[1]))&&v[0]>=t.y&&v[0]<=t.y+t.height},pointToData:function(v){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(v[t.orient==="horizontal"?0:1]))]},dataToPoint:function(v){var t=this.getAxis(),s=this.getRect(),i=[],a=t.orient==="horizontal"?0:1;return v instanceof Array&&(v=v[0]),i[a]=t.toGlobalCoord(t.dataToCoord(+v)),i[1-a]=a===0?s.y+s.height/2:s.x+s.width/2,i}};var p=S;Y.exports=p},7164:function(Y,V,n){var T=n(69008),L=n(97694),M=function(C,D,S,p,v){L.call(this,C,D,S),this.type=p||"value",this.position=v||"bottom",this.orient=null};M.prototype={constructor:M,model:null,isHorizontal:function(){var C=this.position;return C==="top"||C==="bottom"},pointToData:function(C,D){return this.coordinateSystem.pointToData(C,D)[0]},toGlobalCoord:null,toLocalCoord:null},T.inherits(M,L);var w=M;Y.exports=w},66848:function(Y,V,n){var T=n(69008);function L(w,C){var D=this.getAxis(),S=C instanceof Array?C[0]:C,p=(w instanceof Array?w[0]:w)/2;return D.type==="category"?D.getBandWidth():Math.abs(D.dataToCoord(S-p)-D.dataToCoord(S+p))}function M(w){var C=w.getRect();return{coordSys:{type:"singleAxis",x:C.x,y:C.y,width:C.width,height:C.height},api:{coord:function(D){return w.dataToPoint(D)},size:T.bind(L,w)}}}Y.exports=M},76203:function(Y,V,n){var T=n(69008);function L(M,w){w=w||{};var C=M.coordinateSystem,D=M.axis,S={},p=D.position,v=D.orient,t=C.getRect(),s=[t.x,t.x+t.width,t.y,t.y+t.height],i={horizontal:{top:s[2],bottom:s[3]},vertical:{left:s[0],right:s[1]}};S.position=[v==="vertical"?i.vertical[p]:s[0],v==="horizontal"?i.horizontal[p]:s[3]];var a={horizontal:0,vertical:1};S.rotation=Math.PI/2*a[v];var u={top:-1,bottom:1,right:1,left:-1};S.labelDirection=S.tickDirection=S.nameDirection=u[p],M.get("axisTick.inside")&&(S.tickDirection=-S.tickDirection),T.retrieve(w.labelInside,M.get("axisLabel.inside"))&&(S.labelDirection=-S.labelDirection);var e=w.rotate;return e==null&&(e=M.get("axisLabel.rotate")),S.labelRotation=p==="top"?-e:e,S.z2=1,S}V.layout=L},7797:function(Y,V,n){var T=n(10018),L=n(33807);function M(w,C){var D=[];return w.eachComponent("singleAxis",function(S,p){var v=new T(S,w,C);v.name="single_"+p,v.resize(S,C),S.coordinateSystem=v,D.push(v)}),w.eachSeries(function(S){if(S.get("coordinateSystem")==="singleAxis"){var p=w.queryComponents({mainType:"singleAxis",index:S.get("singleAxisIndex"),id:S.get("singleAxisId")})[0];S.coordinateSystem=p&&p.coordinateSystem}}),D}L.register("single",{create:M,dimensions:T.prototype.dimensions})},82383:function(Y){function V(M){return M}function n(M,w,C,D,S){this._old=M,this._new=w,this._oldKeyGetter=C||V,this._newKeyGetter=D||V,this.context=S}n.prototype={constructor:n,add:function(M){return this._add=M,this},update:function(M){return this._update=M,this},remove:function(M){return this._remove=M,this},execute:function(){var M=this._old,w=this._new,C={},D={},S=[],p=[],v;for(T(M,C,S,"_oldKeyGetter",this),T(w,D,p,"_newKeyGetter",this),v=0;v<M.length;v++){var t=S[v],s=D[t];if(s!=null){var i=s.length;i?(i===1&&(D[t]=null),s=s.shift()):D[t]=null,this._update&&this._update(s,v)}else this._remove&&this._remove(v)}for(var v=0;v<p.length;v++){var t=p[v];if(D.hasOwnProperty(t)){var s=D[t];if(s==null)continue;if(!s.length)this._add&&this._add(s);else for(var a=0,i=s.length;a<i;a++)this._add&&this._add(s[a])}}}};function T(M,w,C,D,S){for(var p=0;p<M.length;p++){var v="_ec_"+S[D](M[p],p),t=w[v];t==null?(C.push(v),w[v]=p):(t.length||(w[v]=t=[t]),t.push(p))}}var L=n;Y.exports=L},83250:function(Y,V,n){var T=n(69008);function L(w){w!=null&&T.extend(this,w),this.otherDims={}}var M=L;Y.exports=M},2229:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(77305),C=w.enableClassCheck;function D(a){return"_EC_"+a}var S=function(a){this._directed=a||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},p=S.prototype;p.type="graph",p.isDirected=function(){return this._directed},p.addNode=function(a,u){a=a==null?""+u:""+a;var e=this._nodesMap;if(!e[D(a)]){var o=new v(a,u);return o.hostGraph=this,this.nodes.push(o),e[D(a)]=o,o}},p.getNodeByIndex=function(a){var u=this.data.getRawIndex(a);return this.nodes[u]},p.getNodeById=function(a){return this._nodesMap[D(a)]},p.addEdge=function(a,u,e){var o=this._nodesMap,r=this._edgesMap;if(typeof a=="number"&&(a=this.nodes[a]),typeof u=="number"&&(u=this.nodes[u]),v.isInstance(a)||(a=o[D(a)]),v.isInstance(u)||(u=o[D(u)]),!(!a||!u)){var l=a.id+"-"+u.id;if(!r[l]){var h=new t(a,u,e);return h.hostGraph=this,this._directed&&(a.outEdges.push(h),u.inEdges.push(h)),a.edges.push(h),a!==u&&u.edges.push(h),this.edges.push(h),r[l]=h,h}}},p.getEdgeByIndex=function(a){var u=this.edgeData.getRawIndex(a);return this.edges[u]},p.getEdge=function(a,u){v.isInstance(a)&&(a=a.id),v.isInstance(u)&&(u=u.id);var e=this._edgesMap;return this._directed?e[a+"-"+u]:e[a+"-"+u]||e[u+"-"+a]},p.eachNode=function(a,u){for(var e=this.nodes,o=e.length,r=0;r<o;r++)e[r].dataIndex>=0&&a.call(u,e[r],r)},p.eachEdge=function(a,u){for(var e=this.edges,o=e.length,r=0;r<o;r++)e[r].dataIndex>=0&&e[r].node1.dataIndex>=0&&e[r].node2.dataIndex>=0&&a.call(u,e[r],r)},p.breadthFirstTraverse=function(a,u,e,o){if(v.isInstance(u)||(u=this._nodesMap[D(u)]),!!u){for(var r=e==="out"?"outEdges":e==="in"?"inEdges":"edges",l=0;l<this.nodes.length;l++)this.nodes[l].__visited=!1;if(!a.call(o,u,null))for(var h=[u];h.length;)for(var f=h.shift(),c=f[r],l=0;l<c.length;l++){var d=c[l],A=d.node1===f?d.node2:d.node1;if(!A.__visited){if(a.call(o,A,f))return;h.push(A),A.__visited=!0}}}},p.update=function(){for(var a=this.data,u=this.edgeData,e=this.nodes,o=this.edges,r=0,l=e.length;r<l;r++)e[r].dataIndex=-1;for(var r=0,l=a.count();r<l;r++)e[a.getRawIndex(r)].dataIndex=r;u.filterSelf(function(h){var f=o[u.getRawIndex(h)];return f.node1.dataIndex>=0&&f.node2.dataIndex>=0});for(var r=0,l=o.length;r<l;r++)o[r].dataIndex=-1;for(var r=0,l=u.count();r<l;r++)o[u.getRawIndex(r)].dataIndex=r},p.clone=function(){for(var a=new S(this._directed),u=this.nodes,e=this.edges,o=0;o<u.length;o++)a.addNode(u[o].id,u[o].dataIndex);for(var o=0;o<e.length;o++){var r=e[o];a.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return a};function v(a,u){this.id=a==null?"":a,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=u==null?-1:u}v.prototype={constructor:v,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(a){if(!(this.dataIndex<0)){var u=this.hostGraph,e=u.data.getItemModel(this.dataIndex);return e.getModel(a)}}};function t(a,u,e){this.node1=a,this.node2=u,this.dataIndex=e==null?-1:e}t.prototype.getModel=function(a){if(!(this.dataIndex<0)){var u=this.hostGraph,e=u.edgeData.getItemModel(this.dataIndex);return e.getModel(a)}};var s=function(a,u){return{getValue:function(e){var o=this[a][u];return o.get(o.getDimension(e||"value"),this.dataIndex)},setVisual:function(e,o){this.dataIndex>=0&&this[a][u].setItemVisual(this.dataIndex,e,o)},getVisual:function(e,o){return this[a][u].getItemVisual(this.dataIndex,e,o)},setLayout:function(e,o){this.dataIndex>=0&&this[a][u].setItemLayout(this.dataIndex,e,o)},getLayout:function(){return this[a][u].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][u].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][u].getRawIndex(this.dataIndex)}}};M.mixin(v,s("hostGraph","data")),M.mixin(t,s("hostGraph","edgeData")),S.Node=v,S.Edge=t,C(v),C(t);var i=S;Y.exports=i},39177:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(24040),C=n(82383),D=n(50751),S=n(17751),p=S.defaultDimValueGetters,v=S.DefaultDataProvider,t=n(28176),s=t.summarizeDimensions,i=n(83250),a=M.isObject,u="undefined",e=-1,o="e\0\0",r={float:typeof Float64Array===u?Array:Float64Array,int:typeof Int32Array===u?Array:Int32Array,ordinal:Array,number:Array,time:Array},l=typeof Uint32Array===u?Array:Uint32Array,h=typeof Int32Array===u?Array:Int32Array,f=typeof Uint16Array===u?Array:Uint16Array;function c(z){return z._rawCount>65535?l:f}function d(z){var B=z.constructor;return B===Array?z.slice():new B(z)}var A=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],x=["_extent","_approximateExtent","_rawExtent"];function y(z,B){M.each(A.concat(B.__wrappedMethods||[]),function(k){B.hasOwnProperty(k)&&(z[k]=B[k])}),z.__wrappedMethods=B.__wrappedMethods,M.each(x,function(k){z[k]=M.clone(B[k])}),z._calculationInfo=M.extend(B._calculationInfo)}var g=function(z,B){z=z||["x","y"];for(var k={},Z=[],X={},K=0;K<z.length;K++){var Q=z[K];M.isString(Q)?Q=new i({name:Q}):Q instanceof i||(Q=new i(Q));var J=Q.name;Q.type=Q.type||"float",Q.coordDim||(Q.coordDim=J,Q.coordDimIndex=0),Q.otherDims=Q.otherDims||{},Z.push(J),k[J]=Q,Q.index=K,Q.createInvertedIndices&&(X[J]=[])}this.dimensions=Z,this._dimensionInfos=k,this.hostModel=B,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=s(this),this._invertedIndicesMap=X,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},m=g.prototype;m.type="list",m.hasItemOption=!0,m.getDimension=function(z){return(typeof z=="number"||!isNaN(z)&&!this._dimensionInfos.hasOwnProperty(z))&&(z=this.dimensions[z]),z},m.getDimensionInfo=function(z){return this._dimensionInfos[this.getDimension(z)]},m.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},m.mapDimension=function(z,B){var k=this._dimensionsSummary;if(B==null)return k.encodeFirstDimNotExtra[z];var Z=k.encode[z];return B===!0?(Z||[]).slice():Z&&Z[B]},m.initData=function(z,B,k){var Z=D.isInstance(z)||M.isArrayLike(z);Z&&(z=new v(z,this.dimensions.length)),this._rawData=z,this._storage={},this._indices=null,this._nameList=B||[],this._idList=[],this._nameRepeatCount={},k||(this.hasItemOption=!1),this.defaultDimValueGetter=p[this._rawData.getSource().sourceFormat],this._dimValueGetter=k=k||this.defaultDimValueGetter,this._dimValueGetterArrayRows=p.arrayRows,this._rawExtent={},this._initDataFromProvider(0,z.count()),z.pure&&(this.hasItemOption=!1)},m.getProvider=function(){return this._rawData},m.appendData=function(z){var B=this._rawData,k=this.count();B.appendData(z);var Z=B.count();B.persistent||(Z+=k),this._initDataFromProvider(k,Z)},m.appendValues=function(z,B){for(var k=this._chunkSize,Z=this._storage,X=this.dimensions,K=X.length,Q=this._rawExtent,J=this.count(),tt=J+Math.max(z.length,B?B.length:0),q=this._chunkCount,rt=0;rt<K;rt++){var $=X[rt];Q[$]||(Q[$]=W()),Z[$]||(Z[$]=[]),b(Z,this._dimensionInfos[$],k,q,tt),this._chunkCount=Z[$].length}for(var j=new Array(K),st=J;st<tt;st++){for(var ot=st-J,vt=Math.floor(st/k),yt=st%k,it=0;it<K;it++){var $=X[it],ut=this._dimValueGetterArrayRows(z[ot]||j,$,ot,it);Z[$][vt][yt]=ut;var gt=Q[$];ut<gt[0]&&(gt[0]=ut),ut>gt[1]&&(gt[1]=ut)}B&&(this._nameList[st]=B[ot])}this._rawCount=this._count=tt,this._extent={},I(this)},m._initDataFromProvider=function(z,B){if(!(z>=B)){for(var k=this._chunkSize,Z=this._rawData,X=this._storage,K=this.dimensions,Q=K.length,J=this._dimensionInfos,tt=this._nameList,q=this._idList,rt=this._rawExtent,$=this._nameRepeatCount={},j,st=this._chunkCount,ot=0;ot<Q;ot++){var vt=K[ot];rt[vt]||(rt[vt]=W());var yt=J[vt];yt.otherDims.itemName===0&&(j=this._nameDimIdx=ot),yt.otherDims.itemId===0&&(this._idDimIdx=ot),X[vt]||(X[vt]=[]),b(X,yt,k,st,B),this._chunkCount=X[vt].length}for(var it=new Array(Q),ut=z;ut<B;ut++){it=Z.getItem(ut,it);for(var gt=Math.floor(ut/k),Ct=ut%k,bt=0;bt<Q;bt++){var vt=K[bt],et=X[vt][gt],lt=this._dimValueGetter(it,vt,ut,bt);et[Ct]=lt;var ht=rt[vt];lt<ht[0]&&(ht[0]=lt),lt>ht[1]&&(ht[1]=lt)}if(!Z.pure){var pt=tt[ut];if(it&&pt==null){if(it.name!=null)tt[ut]=pt=it.name;else if(j!=null){var mt=K[j],ft=X[mt][gt];if(ft){pt=ft[Ct];var xt=J[mt].ordinalMeta;xt&&xt.categories.length&&(pt=xt.categories[pt])}}}var Mt=it==null?null:it.id;Mt==null&&pt!=null&&($[pt]=$[pt]||0,Mt=pt,$[pt]>0&&(Mt+="__ec__"+$[pt]),$[pt]++),Mt!=null&&(q[ut]=Mt)}}!Z.persistent&&Z.clean&&Z.clean(),this._rawCount=this._count=B,this._extent={},I(this)}};function b(z,B,k,Z,X){var K=r[B.type],Q=Z-1,J=B.name,tt=z[J][Q];if(tt&&tt.length<k){for(var q=new K(Math.min(X-Q*k,k)),rt=0;rt<tt.length;rt++)q[rt]=tt[rt];z[J][Q]=q}for(var $=Z*k;$<X;$+=k)z[J].push(new K(Math.min(X-$,k)))}function I(z){var B=z._invertedIndicesMap;M.each(B,function(k,Z){var X=z._dimensionInfos[Z],K=X.ordinalMeta;if(K){k=B[Z]=new h(K.categories.length);for(var Q=0;Q<k.length;Q++)k[Q]=e;for(var Q=0;Q<z._count;Q++)k[z.get(Z,Q)]=Q}})}function R(z,B,k){var Z;if(B!=null){var X=z._chunkSize,K=Math.floor(k/X),Q=k%X,J=z.dimensions[B],tt=z._storage[J][K];if(tt){Z=tt[Q];var q=z._dimensionInfos[J].ordinalMeta;q&&q.categories.length&&(Z=q.categories[Z])}}return Z}m.count=function(){return this._count},m.getIndices=function(){var z,B=this._indices;if(B){var k=B.constructor,Z=this._count;if(k===Array){z=new k(Z);for(var X=0;X<Z;X++)z[X]=B[X]}else z=new k(B.buffer,0,Z)}else for(var k=c(this),z=new k(this.count()),X=0;X<z.length;X++)z[X]=X;return z},m.get=function(z,B){if(!(B>=0&&B<this._count))return NaN;var k=this._storage;if(!k[z])return NaN;B=this.getRawIndex(B);var Z=Math.floor(B/this._chunkSize),X=B%this._chunkSize,K=k[z][Z],Q=K[X];return Q},m.getByRawIndex=function(z,B){if(!(B>=0&&B<this._rawCount))return NaN;var k=this._storage[z];if(!k)return NaN;var Z=Math.floor(B/this._chunkSize),X=B%this._chunkSize,K=k[Z];return K[X]},m._getFast=function(z,B){var k=Math.floor(B/this._chunkSize),Z=B%this._chunkSize,X=this._storage[z][k];return X[Z]},m.getValues=function(z,B){var k=[];M.isArray(z)||(B=z,z=this.dimensions);for(var Z=0,X=z.length;Z<X;Z++)k.push(this.get(z[Z],B));return k},m.hasValue=function(z){for(var B=this._dimensionsSummary.dataDimsOnCoord,k=0,Z=B.length;k<Z;k++)if(isNaN(this.get(B[k],z)))return!1;return!0},m.getDataExtent=function(z){z=this.getDimension(z);var B=this._storage[z],k=W();if(!B)return k;var Z=this.count(),X=!this._indices,K;if(X)return this._rawExtent[z].slice();if(K=this._extent[z],K)return K.slice();K=k;for(var Q=K[0],J=K[1],tt=0;tt<Z;tt++){var q=this._getFast(z,this.getRawIndex(tt));q<Q&&(Q=q),q>J&&(J=q)}return K=[Q,J],this._extent[z]=K,K},m.getApproximateExtent=function(z){return z=this.getDimension(z),this._approximateExtent[z]||this.getDataExtent(z)},m.setApproximateExtent=function(z,B){B=this.getDimension(B),this._approximateExtent[B]=z.slice()},m.getCalculationInfo=function(z){return this._calculationInfo[z]},m.setCalculationInfo=function(z,B){a(z)?M.extend(this._calculationInfo,z):this._calculationInfo[z]=B},m.getSum=function(z){var B=this._storage[z],k=0;if(B)for(var Z=0,X=this.count();Z<X;Z++){var K=this.get(z,Z);isNaN(K)||(k+=K)}return k},m.getMedian=function(z){var B=[];this.each(z,function(X,K){isNaN(X)||B.push(X)});var k=[].concat(B).sort(function(X,K){return X-K}),Z=this.count();return Z===0?0:Z%2===1?k[(Z-1)/2]:(k[Z/2]+k[Z/2-1])/2},m.rawIndexOf=function(z,B){var k=z&&this._invertedIndicesMap[z],Z=k[B];return Z==null||isNaN(Z)?e:Z},m.indexOfName=function(z){for(var B=0,k=this.count();B<k;B++)if(this.getName(B)===z)return B;return-1},m.indexOfRawIndex=function(z){if(z>=this._rawCount||z<0)return-1;if(!this._indices)return z;var B=this._indices,k=B[z];if(k!=null&&k<this._count&&k===z)return z;for(var Z=0,X=this._count-1;Z<=X;){var K=(Z+X)/2|0;if(B[K]<z)Z=K+1;else if(B[K]>z)X=K-1;else return K}return-1},m.indicesOfNearest=function(z,B,k){var Z=this._storage,X=Z[z],K=[];if(!X)return K;k==null&&(k=1/0);for(var Q=1/0,J=-1,tt=0,q=0,rt=this.count();q<rt;q++){var $=B-this.get(z,q),j=Math.abs($);j<=k&&((j<Q||j===Q&&$>=0&&J<0)&&(Q=j,J=$,tt=0),$===J&&(K[tt++]=q))}return K.length=tt,K},m.getRawIndex=E;function E(z){return z}function P(z){return z<this._count&&z>=0?this._indices[z]:-1}m.getRawDataItem=function(z){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(z));for(var B=[],k=0;k<this.dimensions.length;k++){var Z=this.dimensions[k];B.push(this.get(Z,z))}return B},m.getName=function(z){var B=this.getRawIndex(z);return this._nameList[B]||R(this,this._nameDimIdx,B)||""},m.getId=function(z){return O(this,this.getRawIndex(z))};function O(z,B){var k=z._idList[B];return k==null&&(k=R(z,z._idDimIdx,B)),k==null&&(k=o+B),k}function N(z){return M.isArray(z)||(z=[z]),z}function _(z,B){for(var k=0;k<B.length;k++)z._dimensionInfos[B[k]]||console.error("Unkown dimension "+B[k])}m.each=function(z,B,k,Z){"use strict";if(this._count){typeof z=="function"&&(Z=k,k=B,B=z,z=[]),k=k||Z||this,z=M.map(N(z),this.getDimension,this);for(var X=z.length,K=0;K<this.count();K++)switch(X){case 0:B.call(k,K);break;case 1:B.call(k,this.get(z[0],K),K);break;case 2:B.call(k,this.get(z[0],K),this.get(z[1],K),K);break;default:for(var Q=0,J=[];Q<X;Q++)J[Q]=this.get(z[Q],K);J[Q]=K,B.apply(k,J)}}},m.filterSelf=function(z,B,k,Z){"use strict";if(this._count){typeof z=="function"&&(Z=k,k=B,B=z,z=[]),k=k||Z||this,z=M.map(N(z),this.getDimension,this);for(var X=this.count(),K=c(this),Q=new K(X),J=[],tt=z.length,q=0,rt=z[0],$=0;$<X;$++){var j,st=this.getRawIndex($);if(tt===0)j=B.call(k,$);else if(tt===1){var ot=this._getFast(rt,st);j=B.call(k,ot,$)}else{for(var vt=0;vt<tt;vt++)J[vt]=this._getFast(rt,st);J[vt]=$,j=B.apply(k,J)}j&&(Q[q++]=st)}return q<X&&(this._indices=Q),this._count=q,this._extent={},this.getRawIndex=this._indices?P:E,this}},m.selectRange=function(z){"use strict";if(this._count){var B=[];for(var k in z)z.hasOwnProperty(k)&&B.push(k);var Z=B.length;if(Z){var X=this.count(),K=c(this),Q=new K(X),J=0,tt=B[0],q=z[tt][0],rt=z[tt][1],$=!1;if(!this._indices){var j=0;if(Z===1){for(var st=this._storage[B[0]],ot=0;ot<this._chunkCount;ot++)for(var vt=st[ot],yt=Math.min(this._count-ot*this._chunkSize,this._chunkSize),it=0;it<yt;it++){var ut=vt[it];(ut>=q&&ut<=rt||isNaN(ut))&&(Q[J++]=j),j++}$=!0}else if(Z===2){for(var st=this._storage[tt],gt=this._storage[B[1]],Ct=z[B[1]][0],bt=z[B[1]][1],ot=0;ot<this._chunkCount;ot++)for(var vt=st[ot],et=gt[ot],yt=Math.min(this._count-ot*this._chunkSize,this._chunkSize),it=0;it<yt;it++){var ut=vt[it],lt=et[it];(ut>=q&&ut<=rt||isNaN(ut))&&(lt>=Ct&&lt<=bt||isNaN(lt))&&(Q[J++]=j),j++}$=!0}}if(!$)if(Z===1)for(var it=0;it<X;it++){var ht=this.getRawIndex(it),ut=this._getFast(tt,ht);(ut>=q&&ut<=rt||isNaN(ut))&&(Q[J++]=ht)}else for(var it=0;it<X;it++){for(var pt=!0,ht=this.getRawIndex(it),ot=0;ot<Z;ot++){var mt=B[ot],ut=this._getFast(k,ht);(ut<z[mt][0]||ut>z[mt][1])&&(pt=!1)}pt&&(Q[J++]=this.getRawIndex(it))}return J<X&&(this._indices=Q),this._count=J,this._extent={},this.getRawIndex=this._indices?P:E,this}}},m.mapArray=function(z,B,k,Z){"use strict";typeof z=="function"&&(Z=k,k=B,B=z,z=[]),k=k||Z||this;var X=[];return this.each(z,function(){X.push(B&&B.apply(this,arguments))},k),X};function G(z,B){var k=z.dimensions,Z=new g(M.map(k,z.getDimensionInfo,z),z.hostModel);y(Z,z);for(var X=Z._storage={},K=z._storage,Q=0;Q<k.length;Q++){var J=k[Q];K[J]&&(M.indexOf(B,J)>=0?(X[J]=F(K[J]),Z._rawExtent[J]=W(),Z._extent[J]=null):X[J]=K[J])}return Z}function F(z){for(var B=new Array(z.length),k=0;k<z.length;k++)B[k]=d(z[k]);return B}function W(){return[1/0,-1/0]}m.map=function(z,B,k,Z){"use strict";k=k||Z||this,z=M.map(N(z),this.getDimension,this);var X=G(this,z);X._indices=this._indices,X.getRawIndex=X._indices?P:E;for(var K=X._storage,Q=[],J=this._chunkSize,tt=z.length,q=this.count(),rt=[],$=X._rawExtent,j=0;j<q;j++){for(var st=0;st<tt;st++)rt[st]=this.get(z[st],j);rt[tt]=j;var ot=B&&B.apply(k,rt);if(ot!=null){typeof ot!="object"&&(Q[0]=ot,ot=Q);for(var vt=this.getRawIndex(j),yt=Math.floor(vt/J),it=vt%J,ut=0;ut<ot.length;ut++){var gt=z[ut],Ct=ot[ut],bt=$[gt],et=K[gt];et&&(et[yt][it]=Ct),Ct<bt[0]&&(bt[0]=Ct),Ct>bt[1]&&(bt[1]=Ct)}}}return X},m.downSample=function(z,B,k,Z){for(var X=G(this,[z]),K=X._storage,Q=[],J=Math.floor(1/B),tt=K[z],q=this.count(),rt=this._chunkSize,$=X._rawExtent[z],j=new(c(this))(q),st=0,ot=0;ot<q;ot+=J){J>q-ot&&(J=q-ot,Q.length=J);for(var vt=0;vt<J;vt++){var yt=this.getRawIndex(ot+vt),it=Math.floor(yt/rt),ut=yt%rt;Q[vt]=tt[it][ut]}var gt=k(Q),Ct=this.getRawIndex(Math.min(ot+Z(Q,gt)||0,q-1)),bt=Math.floor(Ct/rt),et=Ct%rt;tt[bt][et]=gt,gt<$[0]&&($[0]=gt),gt>$[1]&&($[1]=gt),j[st++]=Ct}return X._count=st,X._indices=j,X.getRawIndex=P,X},m.getItemModel=function(z){var B=this.hostModel;return new w(this.getRawDataItem(z),B,B&&B.ecModel)},m.diff=function(z){var B=this;return new C(z?z.getIndices():[],this.getIndices(),function(k){return O(z,k)},function(k){return O(B,k)})},m.getVisual=function(z){var B=this._visual;return B&&B[z]},m.setVisual=function(z,B){if(a(z)){for(var k in z)z.hasOwnProperty(k)&&this.setVisual(k,z[k]);return}this._visual=this._visual||{},this._visual[z]=B},m.setLayout=function(z,B){if(a(z)){for(var k in z)z.hasOwnProperty(k)&&this.setLayout(k,z[k]);return}this._layout[z]=B},m.getLayout=function(z){return this._layout[z]},m.getItemLayout=function(z){return this._itemLayouts[z]},m.setItemLayout=function(z,B,k){this._itemLayouts[z]=k?M.extend(this._itemLayouts[z]||{},B):B},m.clearItemLayouts=function(){this._itemLayouts.length=0},m.getItemVisual=function(z,B,k){var Z=this._itemVisuals[z],X=Z&&Z[B];return X==null&&!k?this.getVisual(B):X},m.setItemVisual=function(z,B,k){var Z=this._itemVisuals[z]||{},X=this.hasItemVisual;if(this._itemVisuals[z]=Z,a(B)){for(var K in B)B.hasOwnProperty(K)&&(Z[K]=B[K],X[K]=!0);return}Z[B]=k,X[B]=!0},m.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var U=function(z){z.seriesIndex=this.seriesIndex,z.dataIndex=this.dataIndex,z.dataType=this.dataType};m.setItemGraphicEl=function(z,B){var k=this.hostModel;B&&(B.dataIndex=z,B.dataType=this.dataType,B.seriesIndex=k&&k.seriesIndex,B.type==="group"&&B.traverse(U,B)),this._graphicEls[z]=B},m.getItemGraphicEl=function(z){return this._graphicEls[z]},m.eachItemGraphicEl=function(z,B){M.each(this._graphicEls,function(k,Z){k&&z&&z.call(B,k,Z)})},m.cloneShallow=function(z){if(!z){var B=M.map(this.dimensions,this.getDimensionInfo,this);z=new g(B,this.hostModel)}if(z._storage=this._storage,y(z,this),this._indices){var k=this._indices.constructor;z._indices=new k(this._indices)}else z._indices=null;return z.getRawIndex=z._indices?P:E,z},m.wrapMethod=function(z,B){var k=this[z];typeof k=="function"&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var Z=k.apply(this,arguments);return B.apply(this,[Z].concat(M.slice(arguments)))})},m.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],m.CHANGABLE_METHODS=["filterSelf","selectRange"];var H=g;Y.exports=H},82139:function(Y,V,n){var T=n(69008),L=T.createHashMap,M=T.isObject,w=T.map;function C(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}C.createByAxisModel=function(t){var s=t.option,i=s.data,a=i&&w(i,p);return new C({categories:a,needCollect:!a,deduplication:s.dedplication!==!1})};var D=C.prototype;D.getOrdinal=function(t){return S(this).get(t)},D.parseAndCollect=function(t){var s,i=this._needCollect;if(typeof t!="string"&&!i)return t;if(i&&!this._deduplication)return s=this.categories.length,this.categories[s]=t,s;var a=S(this);return s=a.get(t),s==null&&(i?(s=this.categories.length,this.categories[s]=t,a.set(t,s)):s=NaN),s};function S(t){return t._map||(t._map=L(t.categories))}function p(t){return M(t)&&t.value!=null?t.value:t+""}var v=C;Y.exports=v},50751:function(Y,V,n){var T=n(69008),L=T.createHashMap,M=T.isTypedArray,w=n(77305),C=w.enableClassCheck,D=n(8326),S=D.SOURCE_FORMAT_ORIGINAL,p=D.SERIES_LAYOUT_BY_COLUMN,v=D.SOURCE_FORMAT_UNKNOWN,t=D.SOURCE_FORMAT_TYPED_ARRAY,s=D.SOURCE_FORMAT_KEYED_COLUMNS;function i(u){this.fromDataset=u.fromDataset,this.data=u.data||(u.sourceFormat===s?{}:[]),this.sourceFormat=u.sourceFormat||v,this.seriesLayoutBy=u.seriesLayoutBy||p,this.dimensionsDefine=u.dimensionsDefine,this.encodeDefine=u.encodeDefine&&L(u.encodeDefine),this.startIndex=u.startIndex||0,this.dimensionsDetectCount=u.dimensionsDetectCount}i.seriesDataToSource=function(u){return new i({data:u,sourceFormat:M(u)?t:S,fromDataset:!1})},C(i);var a=i;Y.exports=a},54327:function(Y,V,n){var T=n(69008),L=n(24040),M=n(6333),w=n(39177),C=n(34476),D=function(t,s){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=s};D.prototype={constructor:D,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,s,i){typeof t=="function"&&(i=s,s=t,t=null),t=t||{},T.isString(t)&&(t={order:t});var a=t.order||"preorder",u=this[t.attr||"children"],e;a==="preorder"&&(e=s.call(i,this));for(var o=0;!e&&o<u.length;o++)u[o].eachNode(t,s,i);a==="postorder"&&s.call(i,this)},updateDepthAndHeight:function(t){var s=0;this.depth=t;for(var i=0;i<this.children.length;i++){var a=this.children[i];a.updateDepthAndHeight(t+1),a.height>s&&(s=a.height)}this.height=s+1},getNodeById:function(t){if(this.getId()===t)return this;for(var s=0,i=this.children,a=i.length;s<a;s++){var u=i[s].getNodeById(t);if(u)return u}},contains:function(t){if(t===this)return!0;for(var s=0,i=this.children,a=i.length;s<a;s++){var u=i[s].contains(t);if(u)return u}},getAncestors:function(t){for(var s=[],i=t?this:this.parentNode;i;)s.push(i),i=i.parentNode;return s.reverse(),s},getValue:function(t){var s=this.hostTree.data;return s.get(s.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,s){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,s)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var s=this.hostTree,i=s.data.getItemModel(this.dataIndex),a=this.getLevelModel();return a?i.getModel(t,a.getModel(t)):i.getModel(t)}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,s){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,s)},getVisual:function(t,s){return this.hostTree.data.getItemVisual(this.dataIndex,t,s)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var s=t.parentNode;s;){if(s===this)return!0;s=s.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}};function S(t,s){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=T.map(s||[],function(i){return new L(i,t,t.ecModel)})}S.prototype={constructor:S,type:"tree",eachNode:function(t,s,i){this.root.eachNode(t,s,i)},getNodeByDataIndex:function(t){var s=this.data.getRawIndex(t);return this._nodes[s]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,s=this._nodes,i=0,a=s.length;i<a;i++)s[i].dataIndex=-1;for(var i=0,a=t.count();i<a;i++)s[t.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},S.createTree=function(t,s,i,a){var u=new S(s,i&&i.levels),e=[],o=1;r(t);function r(f,c){var d=f.value;o=Math.max(o,T.isArray(d)?d.length:1),e.push(f);var A=new D(f.name,u);c?p(A,c):u.root=A,u._nodes.push(A);var x=f.children;if(x)for(var y=0;y<x.length;y++)r(x[y],A)}u.root.updateDepthAndHeight(0);var l=C(e,{coordDimensions:["value"],dimensionsCount:o}),h=new w(l,s);return h.initData(e),a&&a(h),M({mainData:h,struct:u,structAttr:"tree"}),u.update(),u};function p(t,s){var i=s.children;t.parentNode!==s&&(i.push(t),t.parentNode=s)}var v=S;Y.exports=v},58347:function(Y,V,n){var T=n(69008),L=T.createHashMap,M=T.each,w=T.isString,C=T.defaults,D=T.extend,S=T.isObject,p=T.clone,v=n(90830),t=v.normalizeToArray,s=n(67063),i=s.guessOrdinal,a=s.BE_ORDINAL,u=n(50751),e=n(28176),o=e.OTHER_DIMENSIONS,r=n(83250);function l(d,A,x){u.isInstance(A)||(A=u.seriesDataToSource(A)),x=x||{},d=(d||[]).slice();for(var y=(x.dimsDef||[]).slice(),g=L(),m=L(),b=[],I=h(A,d,y,x.dimCount),R=0;R<I;R++){var E=y[R]=D({},S(y[R])?y[R]:{name:y[R]}),P=E.name,O=b[R]=new r;P!=null&&g.get(P)==null&&(O.name=O.displayName=P,g.set(P,R)),E.type!=null&&(O.type=E.type),E.displayName!=null&&(O.displayName=E.displayName)}var N=x.encodeDef;!N&&x.encodeDefaulter&&(N=x.encodeDefaulter(A,I)),N=L(N),N.each(function(k,Z){if(k=t(k).slice(),k.length===1&&!w(k[0])&&k[0]<0){N.set(Z,!1);return}var X=N.set(Z,[]);M(k,function(K,Q){w(K)&&(K=g.get(K)),K!=null&&K<I&&(X[Q]=K,G(b[K],Z,Q))})});var _=0;M(d,function(K,Z){var X,K,Q,J;if(w(K))X=K,K={};else{X=K.name;var tt=K.ordinalMeta;K.ordinalMeta=null,K=p(K),K.ordinalMeta=tt,Q=K.dimsDef,J=K.otherDims,K.name=K.coordDim=K.coordDimIndex=K.dimsDef=K.otherDims=null}var q=N.get(X);if(q!==!1){var q=t(q);if(!q.length)for(var rt=0;rt<(Q&&Q.length||1);rt++){for(;_<b.length&&b[_].coordDim!=null;)_++;_<b.length&&q.push(_++)}M(q,function($,j){var st=b[$];if(G(C(st,K),X,j),st.name==null&&Q){var ot=Q[j];!S(ot)&&(ot={name:ot}),st.name=st.displayName=ot.name,st.defaultTooltip=ot.defaultTooltip}J&&C(st.otherDims,J)})}});function G(k,Z,X){o.get(Z)!=null?k.otherDims[Z]=X:(k.coordDim=Z,k.coordDimIndex=X,m.set(Z,!0))}var F=x.generateCoord,W=x.generateCoordCount,U=W!=null;W=F?W||1:0;for(var H=F||"value",z=0;z<I;z++){var O=b[z]=b[z]||new r,B=O.coordDim;B==null&&(O.coordDim=f(H,m,U),O.coordDimIndex=0,(!F||W<=0)&&(O.isExtraCoord=!0),W--),O.name==null&&(O.name=f(O.coordDim,g)),O.type==null&&(i(A,z,O.name)===a.Must||O.isExtraCoord&&(O.otherDims.itemName!=null||O.otherDims.seriesName!=null))&&(O.type="ordinal")}return b}function h(d,A,x,y){var g=Math.max(d.dimensionsDetectCount||1,A.length,x.length,y||0);return M(A,function(m){var b=m.dimsDef;b&&(g=Math.max(g,b.length))}),g}function f(d,A,x){if(x||A.get(d)!=null){for(var y=0;A.get(d+y)!=null;)y++;d+=y}return A.set(d,!0),d}var c=l;Y.exports=c},34476:function(Y,V,n){var T=n(58347);function L(M,w){return w=w||{},T(w.coordDimensions||[],M,{dimsDef:w.dimensionsDefine||M.dimensionsDefine,encodeDef:w.encodeDefine||M.encodeDefine,dimCount:w.dimensionsCount,encodeDefaulter:w.encodeDefaulter,generateCoord:w.generateCoord,generateCoordCount:w.generateCoordCount})}Y.exports=L},17751:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=M.isTypedArray,C=M.extend,D=M.assert,S=M.each,p=M.isObject,v=n(90830),t=v.getDataItemValue,s=v.isDataItemOption,i=n(86957),a=i.parseDate,u=n(50751),e=n(8326),o=e.SOURCE_FORMAT_TYPED_ARRAY,r=e.SOURCE_FORMAT_ARRAY_ROWS,l=e.SOURCE_FORMAT_ORIGINAL,h=e.SOURCE_FORMAT_OBJECT_ROWS;function f(O,N){u.isInstance(O)||(O=u.seriesDataToSource(O)),this._source=O;var _=this._data=O.data,G=O.sourceFormat;G===o&&(this._offset=0,this._dimSize=N,this._data=_);var F=d[G===r?G+"_"+O.seriesLayoutBy:G];C(this,F)}var c=f.prototype;c.pure=!1,c.persistent=!0,c.getSource=function(){return this._source};var d={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(O){return this._data[O+this._source.startIndex]},appendData:y},arrayRows_row:{pure:!0,count:function(){var O=this._data[0];return O?Math.max(0,O.length-this._source.startIndex):0},getItem:function(O){O+=this._source.startIndex;for(var N=[],_=this._data,G=0;G<_.length;G++){var F=_[G];N.push(F?F[O]:null)}return N},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:A,getItem:x,appendData:y},keyedColumns:{pure:!0,count:function(){var O=this._source.dimensionsDefine[0].name,N=this._data[O];return N?N.length:0},getItem:function(O){for(var N=[],_=this._source.dimensionsDefine,G=0;G<_.length;G++){var F=this._data[_[G].name];N.push(F?F[O]:null)}return N},appendData:function(O){var N=this._data;S(O,function(_,G){for(var F=N[G]||(N[G]=[]),W=0;W<(_||[]).length;W++)F.push(_[W])})}},original:{count:A,getItem:x,appendData:y},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(O,N){O=O-this._offset,N=N||[];for(var _=this._dimSize*O,G=0;G<this._dimSize;G++)N[G]=this._data[_+G];return N},appendData:function(O){this._data=O},clean:function(){this._offset+=this.count(),this._data=null}}};function A(){return this._data.length}function x(O){return this._data[O]}function y(O){for(var N=0;N<O.length;N++)this._data.push(O[N])}var g={arrayRows:m,objectRows:function(O,N,_,G){return _!=null?O[G]:O},keyedColumns:m,original:function(O,N,_,G){var F=t(O);return _==null||!(F instanceof Array)?F:F[_]},typedArray:m};function m(O,N,_,G){return _!=null?O[_]:O}var b={arrayRows:I,objectRows:function(O,N,_,G){return R(O[N],this._dimensionInfos[N])},keyedColumns:I,original:function(O,N,_,G){var F=O&&(O.value==null?O:O.value);return!this._rawData.pure&&s(O)&&(this.hasItemOption=!0),R(F instanceof Array?F[G]:F,this._dimensionInfos[N])},typedArray:function(O,N,_,G){return O[G]}};function I(O,N,_,G){return R(O[G],this._dimensionInfos[N])}function R(O,N){var _=N&&N.type;if(_==="ordinal"){var G=N&&N.ordinalMeta;return G?G.parseAndCollect(O):O}return _==="time"&&typeof O!="number"&&O!=null&&O!=="-"&&(O=+a(O)),O==null||O===""?NaN:+O}function E(O,N,_){if(O){var G=O.getRawDataItem(N);if(G!=null){var F=O.getProvider().getSource().sourceFormat,W,U,H=O.getDimensionInfo(_);return H&&(W=H.name,U=H.index),g[F](G,N,U,W)}}}function P(O,N,_){if(O){var G=O.getProvider().getSource().sourceFormat;if(!(G!==l&&G!==h)){var F=O.getRawDataItem(N);if(G===l&&!p(F)&&(F=null),F)return F[_]}}}V.DefaultDataProvider=f,V.defaultDimValueGetters=b,V.retrieveRawValue=E,V.retrieveRawAttr=P},22240:function(Y,V,n){var T=n(69008),L=T.each,M=T.isString;function w(S,p,v){v=v||{};var t=v.byIndex,s=v.stackedCoordDimension,i=!!(S&&S.get("stack")),a,u,e,o;if(L(p,function(f,c){M(f)&&(p[c]=f={name:f}),i&&!f.isExtraCoord&&(!t&&!a&&f.ordinalMeta&&(a=f),!u&&f.type!=="ordinal"&&f.type!=="time"&&(!s||s===f.coordDim)&&(u=f))}),u&&!t&&!a&&(t=!0),u){e="__\0ecstackresult",o="__\0ecstackedover",a&&(a.createInvertedIndices=!0);var r=u.coordDim,l=u.type,h=0;L(p,function(f){f.coordDim===r&&h++}),p.push({name:e,coordDim:r,coordDimIndex:h,type:l,isExtraCoord:!0,isCalculationCoord:!0}),h++,p.push({name:o,coordDim:o,coordDimIndex:h,type:l,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:u&&u.name,stackedByDimension:a&&a.name,isStackedByIndex:t,stackedOverDimension:o,stackResultDimension:e}}function C(S,p){return!!p&&p===S.getCalculationInfo("stackedDimension")}function D(S,p){return C(S,p)?S.getCalculationInfo("stackResultDimension"):p}V.enableDataStack=w,V.isDimensionStacked=C,V.getStackedDimension=D},28176:function(Y,V,n){var T=n(69008),L=T.each,M=T.createHashMap,w=T.assert,C=n(96311),D=C.__DEV__,S=M(["tooltip","label","itemName","itemId","seriesName"]);function p(i){var a={},u=a.encode={},e=M(),o=[],r=[],l=a.userOutput={dimensionNames:i.dimensions.slice(),encode:{}};L(i.dimensions,function(A){var x=i.getDimensionInfo(A),y=x.coordDim;if(y){var g=x.coordDimIndex;v(u,y)[g]=A,x.isExtraCoord||(e.set(y,1),s(x.type)&&(o[0]=A),v(l.encode,y)[g]=x.index),x.defaultTooltip&&r.push(A)}S.each(function(m,b){var I=v(u,b),R=x.otherDims[b];R!=null&&R!==!1&&(I[R]=x.name)})});var h=[],f={};e.each(function(A,x){var y=u[x];f[x]=y[0],h=h.concat(y)}),a.dataDimsOnCoord=h,a.encodeFirstDimNotExtra=f;var c=u.label;c&&c.length&&(o=c.slice());var d=u.tooltip;return d&&d.length?r=d.slice():r.length||(r=o.slice()),u.defaultedLabel=o,u.defaultedTooltip=r,a}function v(i,a){return i.hasOwnProperty(a)||(i[a]=[]),i[a]}function t(i){return i==="category"?"ordinal":i==="time"?"time":"float"}function s(i){return!(i==="ordinal"||i==="time")}V.OTHER_DIMENSIONS=S,V.summarizeDimensions=p,V.getDimensionTypeByAxis=t},6333:function(Y,V,n){var T=n(69008),L=T.each,M="\0__link_datas",w="\0__link_mainData";function C(u){var e=u.mainData,o=u.datas;o||(o={main:e},u.datasAttr={main:"data"}),u.datas=u.mainData=null,s(e,o,u),L(o,function(r){L(e.TRANSFERABLE_METHODS,function(l){r.wrapMethod(l,T.curry(D,u))})}),e.wrapMethod("cloneShallow",T.curry(p,u)),L(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,T.curry(S,u))}),T.assert(o[e.dataType]===e)}function D(u,e){if(t(this)){var o=T.extend({},this[M]);o[this.dataType]=e,s(e,o,u)}else i(e,this.dataType,this[w],u);return e}function S(u,e){return u.struct&&u.struct.update(this),e}function p(u,e){return L(e[M],function(o,r){o!==e&&i(o.cloneShallow(),r,e,u)}),e}function v(u){var e=this[w];return u==null||e==null?e:e[M][u]}function t(u){return u[w]===u}function s(u,e,o){u[M]={},L(e,function(r,l){i(r,l,u,o)})}function i(u,e,o,r){o[M][e]=u,u[w]=o,u.dataType=e,r.struct&&(u[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=u),u.getLinkedData=v}var a=C;Y.exports=a},67063:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(90830),w=M.makeInner,C=M.getDataItemValue,D=n(69008),S=D.createHashMap,p=D.each,v=D.map,t=D.isArray,s=D.isString,i=D.isObject,a=D.isTypedArray,u=D.isArrayLike,e=D.extend,o=D.assert,r=n(50751),l=n(8326),h=l.SOURCE_FORMAT_ORIGINAL,f=l.SOURCE_FORMAT_ARRAY_ROWS,c=l.SOURCE_FORMAT_OBJECT_ROWS,d=l.SOURCE_FORMAT_KEYED_COLUMNS,A=l.SOURCE_FORMAT_UNKNOWN,x=l.SOURCE_FORMAT_TYPED_ARRAY,y=l.SERIES_LAYOUT_BY_ROW,g={Must:1,Might:2,Not:3},m=w();function b(z){var B=z.option.source,k=A;if(a(B))k=x;else if(t(B)){B.length===0&&(k=f);for(var Z=0,X=B.length;Z<X;Z++){var K=B[Z];if(K!=null){if(t(K)){k=f;break}else if(i(K)){k=c;break}}}}else if(i(B)){for(var Q in B)if(B.hasOwnProperty(Q)&&u(B[Q])){k=d;break}}else if(B!=null)throw new Error("Invalid data");m(z).sourceFormat=k}function I(z){return m(z).source}function R(z){m(z).datasetMap=S()}function E(z){var B=z.option,k=B.data,Z=a(k)?x:h,X=!1,K=B.seriesLayoutBy,Q=B.sourceHeader,J=B.dimensions,tt=W(z);if(tt){var q=tt.option;k=q.source,Z=m(tt).sourceFormat,X=!0,K=K||q.seriesLayoutBy,Q==null&&(Q=q.sourceHeader),J=J||q.dimensions}var rt=P(k,Z,K,Q,J);m(z).source=new r({data:k,fromDataset:X,seriesLayoutBy:K,sourceFormat:Z,dimensionsDefine:rt.dimensionsDefine,startIndex:rt.startIndex,dimensionsDetectCount:rt.dimensionsDetectCount,encodeDefine:B.encode})}function P(z,B,k,Z,X){if(!z)return{dimensionsDefine:O(X)};var K,Q;if(B===f)Z==="auto"||Z==null?N(function(tt){tt!=null&&tt!=="-"&&(s(tt)?Q==null&&(Q=1):Q=0)},k,z,10):Q=Z?1:0,!X&&Q===1&&(X=[],N(function(tt,q){X[q]=tt!=null?tt:""},k,z)),K=X?X.length:k===y?z.length:z[0]?z[0].length:null;else if(B===c)X||(X=_(z));else if(B===d)X||(X=[],p(z,function(tt,q){X.push(q)}));else if(B===h){var J=C(z[0]);K=t(J)&&J.length||1}return{startIndex:Q,dimensionsDefine:O(X),dimensionsDetectCount:K}}function O(z){if(z){var B=S();return v(z,function(k,Z){if(k=e({},i(k)?k:{name:k}),k.name==null)return k;k.name+="",k.displayName==null&&(k.displayName=k.name);var X=B.get(k.name);return X?k.name+="-"+X.count++:B.set(k.name,{count:1}),k})}}function N(z,B,k,Z){if(Z==null&&(Z=1/0),B===y)for(var X=0;X<k.length&&X<Z;X++)z(k[X]?k[X][0]:null,X);else for(var K=k[0]||[],X=0;X<K.length&&X<Z;X++)z(K[X],X)}function _(z){for(var B=0,k;B<z.length&&!(k=z[B++]););if(k){var Z=[];return p(k,function(X,K){Z.push(K)}),Z}}function G(z,B,k){var Z={},X=W(B);if(!X||!z)return Z;var K=[],Q=[],J=B.ecModel,tt=m(J).datasetMap,q=X.uid+"_"+k.seriesLayoutBy,rt,$;z=z.slice(),p(z,function(vt,yt){!i(vt)&&(z[yt]={name:vt}),vt.type==="ordinal"&&rt==null&&(rt=yt,$=ot(z[yt])),Z[vt.name]=[]});var j=tt.get(q)||tt.set(q,{categoryWayDim:$,valueWayDim:0});p(z,function(vt,yt){var it=vt.name,ut=ot(vt);if(rt==null){var gt=j.valueWayDim;st(Z[it],gt,ut),st(Q,gt,ut),j.valueWayDim+=ut}else if(rt===yt)st(Z[it],0,ut),st(K,0,ut);else{var gt=j.categoryWayDim;st(Z[it],gt,ut),st(Q,gt,ut),j.categoryWayDim+=ut}});function st(vt,yt,it){for(var ut=0;ut<it;ut++)vt.push(yt+ut)}function ot(vt){var yt=vt.dimsDef;return yt?yt.length:1}return K.length&&(Z.itemName=K),Q.length&&(Z.seriesName=Q),Z}function F(z,B,k){var Z={},X=W(z);if(!X)return Z;var K=B.sourceFormat,Q=B.dimensionsDefine,J;(K===c||K===d)&&p(Q,function(rt,$){(i(rt)?rt.name:rt)==="name"&&(J=$)});var tt=function(){for(var rt={},$={},j=[],st=0,ot=Math.min(5,k);st<ot;st++){var vt=H(B.data,K,B.seriesLayoutBy,Q,B.startIndex,st);j.push(vt);var yt=vt===g.Not;if(yt&&rt.v==null&&st!==J&&(rt.v=st),(rt.n==null||rt.n===rt.v||!yt&&j[rt.n]===g.Not)&&(rt.n=st),it(rt)&&j[rt.n]!==g.Not)return rt;yt||(vt===g.Might&&$.v==null&&st!==J&&($.v=st),($.n==null||$.n===$.v)&&($.n=st))}function it(ut){return ut.v!=null&&ut.n!=null}return it(rt)?rt:it($)?$:null}();if(tt){Z.value=tt.v;var q=J!=null?J:tt.n;Z.itemName=[q],Z.seriesName=[q]}return Z}function W(z){var B=z.option,k=B.data;if(!k)return z.ecModel.getComponent("dataset",B.datasetIndex||0)}function U(z,B){return H(z.data,z.sourceFormat,z.seriesLayoutBy,z.dimensionsDefine,z.startIndex,B)}function H(z,B,k,Z,X,K){var Q,J=5;if(a(z))return g.Not;var tt,q;if(Z){var rt=Z[K];i(rt)?(tt=rt.name,q=rt.type):s(rt)&&(tt=rt)}if(q!=null)return q==="ordinal"?g.Must:g.Not;if(B===f)if(k===y){for(var $=z[K],j=0;j<($||[]).length&&j<J;j++)if((Q=yt($[X+j]))!=null)return Q}else for(var j=0;j<z.length&&j<J;j++){var st=z[X+j];if(st&&(Q=yt(st[K]))!=null)return Q}else if(B===c){if(!tt)return g.Not;for(var j=0;j<z.length&&j<J;j++){var ot=z[j];if(ot&&(Q=yt(ot[tt]))!=null)return Q}}else if(B===d){if(!tt)return g.Not;var $=z[tt];if(!$||a($))return g.Not;for(var j=0;j<$.length&&j<J;j++)if((Q=yt($[j]))!=null)return Q}else if(B===h)for(var j=0;j<z.length&&j<J;j++){var ot=z[j],vt=C(ot);if(!t(vt))return g.Not;if((Q=yt(vt[K]))!=null)return Q}function yt(it){var ut=s(it);if(it!=null&&isFinite(it)&&it!=="")return ut?g.Might:g.Not;if(ut&&it!=="-")return g.Must}return g.Not}V.BE_ORDINAL=g,V.detectSourceFormat=b,V.getSource=I,V.resetSourceDefaulter=R,V.prepareSource=E,V.makeSeriesEncodeForAxisCoordSys=G,V.makeSeriesEncodeForNameBased=F,V.guessOrdinal=U},8326:function(Y,V){var n="original",T="arrayRows",L="objectRows",M="keyedColumns",w="unknown",C="typedArray",D="column",S="row";V.SOURCE_FORMAT_ORIGINAL=n,V.SOURCE_FORMAT_ARRAY_ROWS=T,V.SOURCE_FORMAT_OBJECT_ROWS=L,V.SOURCE_FORMAT_KEYED_COLUMNS=M,V.SOURCE_FORMAT_UNKNOWN=w,V.SOURCE_FORMAT_TYPED_ARRAY=C,V.SERIES_LAYOUT_BY_COLUMN=D,V.SERIES_LAYOUT_BY_ROW=S},3096:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(8531),w=n(69008),C=n(83720),D=n(12973),S=n(78083),p=n(37283),v=n(77265),t=n(6900),s=n(33807),i=n(13994),a=n(5932),u=n(61619),e=n(16172),o=n(38645),r=n(36851),l=n(68880),h=n(18993),f=n(90830),c=n(83209),d=c.throttle,A=n(27547),x=n(71486),y=n(39353),g=n(69569),m=n(27486),b=n(62339);n(72476);var I=n(62325),R=w.assert,E=w.each,P=w.isFunction,O=w.isObject,N=e.parseClassType,_="4.8.0",G={zrender:"4.3.1"},F=1,W=1e3,U=800,H=900,z=5e3,B=1e3,k=1100,Z=2e3,X=3e3,K=3500,Q=4e3,J=5e3,tt={PROCESSOR:{FILTER:W,SERIES_FILTER:U,STATISTIC:z},VISUAL:{LAYOUT:B,PROGRESSIVE_LAYOUT:k,GLOBAL:Z,CHART:X,POST_CHART_LAYOUT:K,COMPONENT:Q,BRUSH:J}},q="__flagInMainProcess",rt="__optionUpdated",$=/^[a-zA-Z0-9_]+$/;function j(nt,dt){return function(At,wt,Lt){if(!dt&&this._disposed){this.id;return}At=At&&At.toLowerCase(),p.prototype[nt].call(this,At,wt,Lt)}}function st(){p.call(this)}st.prototype.on=j("on",!0),st.prototype.off=j("off",!0),st.prototype.one=j("one",!0),w.mixin(st,p);function ot(nt,It,At){At=At||{},typeof It=="string"&&(It=oe[It]),this.id,this.group,this._dom=nt;var wt="canvas",Lt=this._zr=M.init(nt,{renderer:At.renderer||wt,devicePixelRatio:At.devicePixelRatio,width:At.width,height:At.height});this._throttledZrFlush=d(w.bind(Lt.flush,Lt),17);var It=w.clone(It);It&&a(It,!0),this._theme=It,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new s;var Et=this._api=Kt(this);function zt(Ot,Ht){return Ot.__prio-Ht.__prio}S(qt,zt),S(Zt,zt),this._scheduler=new g(this,Et,Zt,qt),p.call(this,this._ecEventProcessor=new Qt),this._messageCenter=new st,this._initEvents(),this.resize=w.bind(this.resize,this),this._pendingActions=[],Lt.animation.on("frame",this._onframe,this),ht(Lt,this),w.setAsPrimitive(this)}var vt=ot.prototype;vt._onframe=function(){if(!this._disposed){var nt=this._scheduler;if(this[rt]){var dt=this[rt].silent;this[q]=!0,ut(this),it.update.call(this),this[q]=!1,this[rt]=!1,et.call(this,dt),lt.call(this,dt)}else if(nt.unfinished){var At=F,wt=this._model,Lt=this._api;nt.unfinished=!1;do{var It=+new Date;nt.performSeriesTasks(wt),nt.performDataProcessorTasks(wt),Ct(this,wt),nt.performVisualTasks(wt),Mt(this,this._model,Lt,"remain"),At-=+new Date-It}while(At>0&&nt.unfinished);nt.unfinished||this._zr.flush()}}},vt.getDom=function(){return this._dom},vt.getZr=function(){return this._zr},vt.setOption=function(nt,dt,At){if(this._disposed){this.id;return}var wt;if(O(dt)&&(At=dt.lazyUpdate,wt=dt.silent,dt=dt.notMerge),this[q]=!0,!this._model||dt){var Lt=new i(this._api),It=this._theme,Et=this._model=new v;Et.scheduler=this._scheduler,Et.init(null,null,It,Lt)}this._model.setOption(nt,Jt),At?(this[rt]={silent:wt},this[q]=!1):(ut(this),it.update.call(this),this._zr.flush(),this[rt]=!1,this[q]=!1,et.call(this,wt),lt.call(this,wt))},vt.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},vt.getModel=function(){return this._model},vt.getOption=function(){return this._model&&this._model.getOption()},vt.getWidth=function(){return this._zr.getWidth()},vt.getHeight=function(){return this._zr.getHeight()},vt.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},vt.getRenderedCanvas=function(nt){if(D.canvasSupported){nt=nt||{},nt.pixelRatio=nt.pixelRatio||1,nt.backgroundColor=nt.backgroundColor||this._model.get("backgroundColor");var dt=this._zr;return dt.painter.getRenderedCanvas(nt)}},vt.getSvgDataURL=function(){if(D.svgSupported){var nt=this._zr,dt=nt.storage.getDisplayList();return w.each(dt,function(At){At.stopAnimation(!0)}),nt.painter.toDataURL()}},vt.getDataURL=function(nt){if(this._disposed){this.id;return}nt=nt||{};var dt=nt.excludeComponents,At=this._model,wt=[],Lt=this;E(dt,function(Et){At.eachComponent({mainType:Et},function(zt){var Ot=Lt._componentsMap[zt.__viewId];Ot.group.ignore||(wt.push(Ot),Ot.group.ignore=!0)})});var It=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(nt).toDataURL("image/"+(nt&&nt.type||"png"));return E(wt,function(Et){Et.group.ignore=!1}),It},vt.getConnectedDataURL=function(nt){if(this._disposed){this.id;return}if(D.canvasSupported){var dt=nt.type==="svg",At=this.group,wt=Math.min,Lt=Math.max,It=1/0;if(ve[At]){var Et=It,zt=It,Ot=-It,Ht=-It,Ut=[],kt=nt&&nt.pixelRatio||1;w.each(se,function(fe,Te){if(fe.group===At){var De=dt?fe.getZr().painter.getSvgDom().innerHTML:fe.getRenderedCanvas(w.clone(nt)),xe=fe.getDom().getBoundingClientRect();Et=wt(xe.left,Et),zt=wt(xe.top,zt),Ot=Lt(xe.right,Ot),Ht=Lt(xe.bottom,Ht),Ut.push({dom:De,left:xe.left,top:xe.top})}}),Et*=kt,zt*=kt,Ot*=kt,Ht*=kt;var re=Ot-Et,ee=Ht-zt,ue=w.createCanvas(),ce=M.init(ue,{renderer:dt?"svg":"canvas"});if(ce.resize({width:re,height:ee}),dt){var Ae="";return E(Ut,function(fe){var Te=fe.left-Et,De=fe.top-zt;Ae+='<g transform="translate('+Te+","+De+')">'+fe.dom+"</g>"}),ce.painter.getSvgRoot().innerHTML=Ae,nt.connectedBackgroundColor&&ce.painter.setBackgroundColor(nt.connectedBackgroundColor),ce.refreshImmediately(),ce.painter.toDataURL()}else return nt.connectedBackgroundColor&&ce.add(new h.Rect({shape:{x:0,y:0,width:re,height:ee},style:{fill:nt.connectedBackgroundColor}})),E(Ut,function(fe){var Te=new h.Image({style:{x:fe.left*kt-Et,y:fe.top*kt-zt,image:fe.dom}});ce.add(Te)}),ce.refreshImmediately(),ue.toDataURL("image/"+(nt&&nt.type||"png"))}else return this.getDataURL(nt)}},vt.convertToPixel=w.curry(yt,"convertToPixel"),vt.convertFromPixel=w.curry(yt,"convertFromPixel");function yt(nt,dt,At){if(this._disposed){this.id;return}var wt=this._model,Lt=this._coordSysMgr.getCoordinateSystems(),It;dt=f.parseFinder(wt,dt);for(var Et=0;Et<Lt.length;Et++){var zt=Lt[Et];if(zt[nt]&&(It=zt[nt](wt,dt,At))!=null)return It}}vt.containPixel=function(nt,dt){if(this._disposed){this.id;return}var At=this._model,wt;return nt=f.parseFinder(At,nt),w.each(nt,function(Lt,It){It.indexOf("Models")>=0&&w.each(Lt,function(Et){var zt=Et.coordinateSystem;if(zt&&zt.containPoint)wt|=!!zt.containPoint(dt);else if(It==="seriesModels"){var Ot=this._chartsMap[Et.__viewId];Ot&&Ot.containPoint&&(wt|=Ot.containPoint(dt,Et))}},this)},this),!!wt},vt.getVisual=function(nt,dt){var At=this._model;nt=f.parseFinder(At,nt,{defaultMainType:"series"});var wt=nt.seriesModel,Lt=wt.getData(),It=nt.hasOwnProperty("dataIndexInside")?nt.dataIndexInside:nt.hasOwnProperty("dataIndex")?Lt.indexOfRawIndex(nt.dataIndex):null;return It!=null?Lt.getItemVisual(It,dt):Lt.getVisual(dt)},vt.getViewOfComponentModel=function(nt){return this._componentsMap[nt.__viewId]},vt.getViewOfSeriesModel=function(nt){return this._chartsMap[nt.__viewId]};var it={prepareAndUpdate:function(nt){ut(this),it.update.call(this,nt)},update:function(nt){var dt=this._model,At=this._api,wt=this._zr,Lt=this._coordSysMgr,It=this._scheduler;if(dt){It.restoreData(dt,nt),It.performSeriesTasks(dt),Lt.create(dt,At),It.performDataProcessorTasks(dt,nt),Ct(this,dt),Lt.update(dt,At),mt(dt),It.performVisualTasks(dt,nt),ft(this,dt,At,nt);var Et=dt.get("backgroundColor")||"transparent";if(D.canvasSupported)wt.setBackgroundColor(Et);else{var zt=C.parse(Et);Et=C.stringify(zt,"rgb"),zt[3]===0&&(Et="transparent")}Pt(dt,At)}},updateTransform:function(nt){var dt=this._model,At=this,wt=this._api;if(dt){var Lt=[];dt.eachComponent(function(Et,zt){var Ot=At.getViewOfComponentModel(zt);if(Ot&&Ot.__alive)if(Ot.updateTransform){var Ht=Ot.updateTransform(zt,dt,wt,nt);Ht&&Ht.update&&Lt.push(Ot)}else Lt.push(Ot)});var It=w.createHashMap();dt.eachSeries(function(Et){var zt=At._chartsMap[Et.__viewId];if(zt.updateTransform){var Ot=zt.updateTransform(Et,dt,wt,nt);Ot&&Ot.update&&It.set(Et.uid,1)}else It.set(Et.uid,1)}),mt(dt),this._scheduler.performVisualTasks(dt,nt,{setDirty:!0,dirtyMap:It}),Mt(At,dt,wt,nt,It),Pt(dt,this._api)}},updateView:function(nt){var dt=this._model;dt&&(l.markUpdateMethod(nt,"updateView"),mt(dt),this._scheduler.performVisualTasks(dt,nt,{setDirty:!0}),ft(this,this._model,this._api,nt),Pt(dt,this._api))},updateVisual:function(nt){it.update.call(this,nt)},updateLayout:function(nt){it.update.call(this,nt)}};function ut(nt){var dt=nt._model,At=nt._scheduler;At.restorePipelines(dt),At.prepareStageTasks(),pt(nt,"component",dt,At),pt(nt,"chart",dt,At),At.plan()}function gt(nt,dt,At,wt,Lt){var It=nt._model;if(!wt){E(nt._componentsViews.concat(nt._chartsViews),Ht);return}var Et={};Et[wt+"Id"]=At[wt+"Id"],Et[wt+"Index"]=At[wt+"Index"],Et[wt+"Name"]=At[wt+"Name"];var zt={mainType:wt,query:Et};Lt&&(zt.subType=Lt);var Ot=At.excludeSeriesId;Ot!=null&&(Ot=w.createHashMap(f.normalizeToArray(Ot))),It&&It.eachComponent(zt,function(Ut){(!Ot||Ot.get(Ut.id)==null)&&Ht(nt[wt==="series"?"_chartsMap":"_componentsMap"][Ut.__viewId])},nt);function Ht(Ut){Ut&&Ut.__alive&&Ut[dt]&&Ut[dt](Ut.__model,It,nt._api,At)}}vt.resize=function(nt){if(this._disposed){this.id;return}this._zr.resize(nt);var dt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!dt){var At=dt.resetOption("media"),wt=nt&&nt.silent;this[q]=!0,At&&ut(this),it.update.call(this),this[q]=!1,et.call(this,wt),lt.call(this,wt)}};function Ct(nt,dt){var At=nt._chartsMap,wt=nt._scheduler;dt.eachSeries(function(Lt){wt.updateStreamModes(Lt,At[Lt.__viewId])})}vt.showLoading=function(nt,dt){if(this._disposed){this.id;return}if(O(nt)&&(dt=nt,nt=""),nt=nt||"default",this.hideLoading(),!!he[nt]){var At=he[nt](this._api,dt),wt=this._zr;this._loadingFX=At,wt.add(At)}},vt.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},vt.makeActionFromEvent=function(nt){var dt=w.extend({},nt);return dt.type=Yt[nt.type],dt},vt.dispatchAction=function(nt,dt){if(this._disposed){this.id;return}if(O(dt)||(dt={silent:!!dt}),!!_t[nt.type]&&this._model){if(this[q]){this._pendingActions.push(nt);return}bt.call(this,nt,dt.silent),dt.flush?this._zr.flush(!0):dt.flush!==!1&&D.browser.weChat&&this._throttledZrFlush(),et.call(this,dt.silent),lt.call(this,dt.silent)}};function bt(nt,dt){var At=nt.type,wt=nt.escapeConnect,Lt=_t[At],It=Lt.actionInfo,Et=(It.update||"update").split(":"),zt=Et.pop();Et=Et[0]!=null&&N(Et[0]),this[q]=!0;var Ot=[nt],Ht=!1;nt.batch&&(Ht=!0,Ot=w.map(nt.batch,function(ee){return ee=w.defaults(w.extend({},ee),nt),ee.batch=null,ee}));var Ut=[],kt,re=At==="highlight"||At==="downplay";E(Ot,function(ee){kt=Lt.action(ee,this._model,this._api),kt=kt||w.extend({},ee),kt.type=It.event||kt.type,Ut.push(kt),re?gt(this,zt,ee,"series"):Et&&gt(this,zt,ee,Et.main,Et.sub)},this),zt!=="none"&&!re&&!Et&&(this[rt]?(ut(this),it.update.call(this,nt),this[rt]=!1):it[zt].call(this,nt)),Ht?kt={type:It.event||At,escapeConnect:wt,batch:Ut}:kt=Ut[0],this[q]=!1,!dt&&this._messageCenter.trigger(kt.type,kt)}function et(nt){for(var dt=this._pendingActions;dt.length;){var At=dt.shift();bt.call(this,At,nt)}}function lt(nt){!nt&&this.trigger("updated")}function ht(nt,dt){nt.on("rendered",function(){dt.trigger("rendered"),nt.animation.isFinished()&&!dt[rt]&&!dt._scheduler.unfinished&&!dt._pendingActions.length&&dt.trigger("finished")})}vt.appendData=function(nt){if(this._disposed){this.id;return}var dt=nt.seriesIndex,At=this.getModel(),wt=At.getSeriesByIndex(dt);wt.appendData(nt),this._scheduler.unfinished=!0},vt.on=j("on",!1),vt.off=j("off",!1),vt.one=j("one",!1);function pt(nt,dt,At,wt){for(var Lt=dt==="component",It=Lt?nt._componentsViews:nt._chartsViews,Et=Lt?nt._componentsMap:nt._chartsMap,zt=nt._zr,Ot=nt._api,Ht=0;Ht<It.length;Ht++)It[Ht].__alive=!1;Lt?At.eachComponent(function(re,ee){re!=="series"&&Ut(ee)}):At.eachSeries(Ut);function Ut(re){var ee="_ec_"+re.id+"_"+re.type,ue=Et[ee];if(!ue){var ce=N(re.type),Ae=Lt?r.getClass(ce.main,ce.sub):l.getClass(ce.sub);ue=new Ae,ue.init(At,Ot),Et[ee]=ue,It.push(ue),zt.add(ue.group)}re.__viewId=ue.__id=ee,ue.__alive=!0,ue.__model=re,ue.group.__ecComponentInfo={mainType:re.mainType,index:re.componentIndex},!Lt&&wt.prepareView(ue,re,At,Ot)}for(var Ht=0;Ht<It.length;){var kt=It[Ht];kt.__alive?Ht++:(!Lt&&kt.renderTask.dispose(),zt.remove(kt.group),kt.dispose(At,Ot),It.splice(Ht,1),delete Et[kt.__id],kt.__id=kt.group.__ecComponentInfo=null)}}function mt(nt){nt.clearColorPalette(),nt.eachSeries(function(dt){dt.clearColorPalette()})}function ft(nt,dt,At,wt){xt(nt,dt,At,wt),E(nt._chartsViews,function(Lt){Lt.__alive=!1}),Mt(nt,dt,At,wt),E(nt._chartsViews,function(Lt){Lt.__alive||Lt.remove(dt,At)})}function xt(nt,dt,At,wt,Lt){E(Lt||nt._componentsViews,function(It){var Et=It.__model;It.render(Et,dt,At,wt),Ft(Et,It)})}function Mt(nt,dt,At,wt,Lt){var It=nt._scheduler,Et;dt.eachSeries(function(zt){var Ot=nt._chartsMap[zt.__viewId];Ot.__alive=!0;var Ht=Ot.renderTask;It.updatePayload(Ht,wt),Lt&&Lt.get(zt.uid)&&Ht.dirty(),Et|=Ht.perform(It.getPerformArgs(Ht)),Ot.group.silent=!!zt.get("silent"),Ft(zt,Ot),Gt(zt,Ot)}),It.unfinished|=Et,Vt(nt,dt),x(nt._zr.dom,dt)}function Pt(nt,dt){E(jt,function(At){At(nt,dt)})}var Rt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];vt._initEvents=function(){E(Rt,function(nt){var dt=function(At){var wt=this.getModel(),Lt=At.target,It,Et=nt==="globalout";if(Et)It={};else if(Lt&&Lt.dataIndex!=null){var zt=Lt.dataModel||wt.getSeriesByIndex(Lt.seriesIndex);It=zt&&zt.getDataParams(Lt.dataIndex,Lt.dataType,Lt)||{}}else Lt&&Lt.eventData&&(It=w.extend({},Lt.eventData));if(It){var Ot=It.componentType,Ht=It.componentIndex;(Ot==="markLine"||Ot==="markPoint"||Ot==="markArea")&&(Ot="series",Ht=It.seriesIndex);var Ut=Ot&&Ht!=null&&wt.getComponent(Ot,Ht),kt=Ut&&this[Ut.mainType==="series"?"_chartsMap":"_componentsMap"][Ut.__viewId];It.event=At,It.type=nt,this._ecEventProcessor.eventInfo={targetEl:Lt,packedEvent:It,model:Ut,view:kt},this.trigger(nt,It)}};dt.zrEventfulCallAtLast=!0,this._zr.on(nt,dt,this)},this),E(Yt,function(nt,dt){this._messageCenter.on(dt,function(At){this.trigger(dt,At)},this)},this)},vt.isDisposed=function(){return this._disposed},vt.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},vt.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,f.setAttribute(this.getDom(),ie,"");var nt=this._api,dt=this._model;E(this._componentsViews,function(At){At.dispose(dt,nt)}),E(this._chartsViews,function(At){At.dispose(dt,nt)}),this._zr.dispose(),delete se[this.id]},w.mixin(ot,p);function Bt(nt){}function Vt(nt,dt){var At=nt._zr,wt=At.storage,Lt=0;wt.traverse(function(It){Lt++}),Lt>dt.get("hoverLayerThreshold")&&!D.node&&dt.eachSeries(function(It){if(!It.preventUsingHoverLayer){var Et=nt._chartsMap[It.__viewId];Et.__alive&&Et.group.traverse(function(zt){zt.useHoverLayer=!0})}})}function Gt(nt,dt){var At=nt.get("blendMode")||null;dt.group.traverse(function(wt){wt.isGroup||wt.style.blend!==At&&wt.setStyle("blend",At),wt.eachPendingDisplayable&&wt.eachPendingDisplayable(function(Lt){Lt.setStyle("blend",At)})})}function Ft(nt,dt){var At=nt.get("z"),wt=nt.get("zlevel");dt.group.traverse(function(Lt){Lt.type!=="group"&&(At!=null&&(Lt.z=At),wt!=null&&(Lt.zlevel=wt))})}function Kt(nt){var dt=nt._coordSysMgr;return w.extend(new t(nt),{getCoordinateSystems:w.bind(dt.getCoordinateSystems,dt),getComponentByElement:function(At){for(;At;){var wt=At.__ecComponentInfo;if(wt!=null)return nt._model.getComponent(wt.mainType,wt.index);At=At.parent}}})}function Qt(){this.eventInfo}Qt.prototype={constructor:Qt,normalizeQuery:function(nt){var dt={},At={},wt={};if(w.isString(nt)){var Lt=N(nt);dt.mainType=Lt.main||null,dt.subType=Lt.sub||null}else{var It=["Index","Name","Id"],Et={name:1,dataIndex:1,dataType:1};w.each(nt,function(zt,Ot){for(var Ht=!1,Ut=0;Ut<It.length;Ut++){var kt=It[Ut],re=Ot.lastIndexOf(kt);if(re>0&&re===Ot.length-kt.length){var ee=Ot.slice(0,re);ee!=="data"&&(dt.mainType=ee,dt[kt.toLowerCase()]=zt,Ht=!0)}}Et.hasOwnProperty(Ot)&&(At[Ot]=zt,Ht=!0),Ht||(wt[Ot]=zt)})}return{cptQuery:dt,dataQuery:At,otherQuery:wt}},filter:function(nt,dt,At){var wt=this.eventInfo;if(!wt)return!0;var Lt=wt.targetEl,It=wt.packedEvent,Et=wt.model,zt=wt.view;if(!Et||!zt)return!0;var Ot=dt.cptQuery,Ht=dt.dataQuery;return Ut(Ot,Et,"mainType")&&Ut(Ot,Et,"subType")&&Ut(Ot,Et,"index","componentIndex")&&Ut(Ot,Et,"name")&&Ut(Ot,Et,"id")&&Ut(Ht,It,"name")&&Ut(Ht,It,"dataIndex")&&Ut(Ht,It,"dataType")&&(!zt.filterForExposedEvent||zt.filterForExposedEvent(nt,dt.otherQuery,Lt,It));function Ut(kt,re,ee,ue){return kt[ee]==null||re[ue||ee]===kt[ee]}},afterTrigger:function(){this.eventInfo=null}};var _t={},Yt={},Zt=[],Jt=[],jt=[],qt=[],oe={},he={},se={},ve={},ae=new Date-0,te=new Date-0,ie="_echarts_instance_";function at(nt){var dt=0,At=1,wt=2,Lt="__connectUpdateStatus";function It(Et,zt){for(var Ot=0;Ot<Et.length;Ot++){var Ht=Et[Ot];Ht[Lt]=zt}}E(Yt,function(Et,zt){nt._messageCenter.on(zt,function(Ot){if(ve[nt.group]&&nt[Lt]!==dt){if(Ot&&Ot.escapeConnect)return;var Ht=nt.makeActionFromEvent(Ot),Ut=[];E(se,function(kt){kt!==nt&&kt.group===nt.group&&Ut.push(kt)}),It(Ut,dt),E(Ut,function(kt){kt[Lt]!==At&&kt.dispatchAction(Ht)}),It(Ut,wt)}})})}function ct(nt,dt,At){var wt=$t(nt);if(wt)return wt;var Lt=new ot(nt,dt,At);return Lt.id="ec_"+ae++,se[Lt.id]=Lt,f.setAttribute(nt,ie,Lt.id),at(Lt),Lt}function St(nt){if(w.isArray(nt)){var dt=nt;nt=null,E(dt,function(At){At.group!=null&&(nt=At.group)}),nt=nt||"g_"+te++,E(dt,function(At){At.group=nt})}return ve[nt]=!0,nt}function Tt(nt){ve[nt]=!1}var Dt=Tt;function Nt(nt){typeof nt=="string"?nt=se[nt]:nt instanceof ot||(nt=$t(nt)),nt instanceof ot&&!nt.isDisposed()&&nt.dispose()}function $t(nt){return se[f.getAttribute(nt,ie)]}function Wt(nt){return se[nt]}function Xt(nt,dt){oe[nt]=dt}function ne(nt){Jt.push(nt)}function le(nt,dt){be(Zt,nt,dt,W)}function pe(nt){jt.push(nt)}function de(nt,dt,At){typeof dt=="function"&&(At=dt,dt="");var wt=O(nt)?nt.type:[nt,nt={event:dt}][0];nt.event=(nt.event||wt).toLowerCase(),dt=nt.event,R($.test(wt)&&$.test(dt)),_t[wt]||(_t[wt]={action:At,actionInfo:nt}),Yt[dt]=wt}function ge(nt,dt){s.register(nt,dt)}function me(nt){var dt=s.get(nt);if(dt)return dt.getDimensionsInfo?dt.getDimensionsInfo():dt.dimensions.slice()}function ye(nt,dt){be(qt,nt,dt,B,"layout")}function Se(nt,dt){be(qt,nt,dt,X,"visual")}function be(nt,dt,At,wt,Lt){(P(dt)||O(dt))&&(At=dt,dt=wt);var It=g.wrapStageHandler(At,Lt);return It.__prio=dt,It.__raw=At,nt.push(It),It}function Me(nt,dt){he[nt]=dt}function we(nt){return e.extend(nt)}function Le(nt){return r.extend(nt)}function Ie(nt){return o.extend(nt)}function Pe(nt){return l.extend(nt)}function Re(nt){w.$override("createCanvas",nt)}function Ee(nt,dt,At){I.registerMap(nt,dt,At)}function Oe(nt){var dt=I.retrieveMap(nt);return dt&&dt[0]&&{geoJson:dt[0].geoJSON,specialAreas:dt[0].specialAreas}}Se(Z,A),ne(a),le(H,u),Me("default",y),de({type:"highlight",event:"highlight",update:"highlight"},w.noop),de({type:"downplay",event:"downplay",update:"downplay"},w.noop),Xt("light",m),Xt("dark",b);var _e={};V.version=_,V.dependencies=G,V.PRIORITY=tt,V.init=ct,V.connect=St,V.disConnect=Tt,V.disconnect=Dt,V.dispose=Nt,V.getInstanceByDom=$t,V.getInstanceById=Wt,V.registerTheme=Xt,V.registerPreprocessor=ne,V.registerProcessor=le,V.registerPostUpdate=pe,V.registerAction=de,V.registerCoordinateSystem=ge,V.getCoordinateSystemDimensions=me,V.registerLayout=ye,V.registerVisual=Se,V.registerLoading=Me,V.extendComponentModel=we,V.extendComponentView=Le,V.extendSeriesModel=Ie,V.extendChartView=Pe,V.setCanvasCreator=Re,V.registerMap=Ee,V.getMap=Oe,V.dataTool=_e;var Ce=n(13700);(function(){for(var nt in Ce)Ce.hasOwnProperty(nt)&&(V[nt]=Ce[nt])})()},13700:function(Y,V,n){var T=n(8531);V.zrender=T;var L=n(26237);V.matrix=L;var M=n(47764);V.vector=M;var w=n(69008),C=n(83720);V.color=C;var D=n(18993),S=n(86957);V.number=S;var p=n(17010);V.format=p;var v=n(83209),t=v.throttle;V.throttle=v.throttle;var s=n(21864);V.helper=s;var i=n(61338);V.parseGeoJSON=i;var a=n(39177);V.List=a;var u=n(24040);V.Model=u;var e=n(97694);V.Axis=e;var o=n(12973);V.env=o;var r=i,l={};w.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(f){l[f]=w[f]});var h={};w.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(f){h[f]=D[f]}),V.parseGeoJson=r,V.util=l,V.graphic=h},21864:function(Y,V,n){var T=n(69008),L=n(32977),M=n(44815),w=n(5270),C=n(24040),D=n(7357),S=D.getLayoutRect;V.getLayoutRect=D.getLayoutRect;var p=n(22240),v=p.enableDataStack,t=p.isDimensionStacked,s=p.getStackedDimension,i=n(58347);V.completeDimensions=i;var a=n(34476);V.createDimensions=a;var u=n(22868);V.createSymbol=u.createSymbol;function e(h){return L(h.getSource(),h)}var o={isDimensionStacked:t,enableDataStack:v,getStackedDimension:s};function r(h,f){var c=f;C.isInstance(f)||(c=new C(f),T.mixin(c,w));var d=M.createScaleByModel(c);return d.setExtent(h[0],h[1]),M.niceScaleExtent(d,c),d}function l(h){T.mixin(h,w)}V.createList=e,V.dataStack=o,V.createScale=r,V.mixinAxisModelCommonMethods=l},73315:function(Y){var V={legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};Y.exports=V},64816:function(Y,V,n){var T=n(69008),L=n(86957),M=L.parsePercent,w=n(22240),C=w.isDimensionStacked,D=n(13861),S="__ec_stack_",p=.5,v=typeof Float32Array!="undefined"?Float32Array:Array;function t(A){return A.get("stack")||S+A.seriesIndex}function s(A){return A.dim+A.index}function i(A){var x=[],y=A.axis,g="axis0";if(y.type==="category"){for(var m=y.getBandWidth(),b=0;b<A.count;b++)x.push(T.defaults({bandWidth:m,axisKey:g,stackId:S+b},A));for(var I=o(x),R=[],b=0;b<A.count;b++){var E=I[g][S+b];E.offsetCenter=E.offset+E.width/2,R.push(E)}return R}}function a(A,x){var y=[];return x.eachSeriesByType(A,function(g){f(g)&&!c(g)&&y.push(g)}),y}function u(A){var x={};T.each(A,function(E){var P=E.coordinateSystem,O=P.getBaseAxis();if(!(O.type!=="time"&&O.type!=="value"))for(var N=E.getData(),_=O.dim+"_"+O.index,G=N.mapDimension(O.dim),F=0,W=N.count();F<W;++F){var U=N.get(G,F);x[_]?x[_].push(U):x[_]=[U]}});var y=[];for(var g in x)if(x.hasOwnProperty(g)){var m=x[g];if(m){m.sort(function(E,P){return E-P});for(var b=null,I=1;I<m.length;++I){var R=m[I]-m[I-1];R>0&&(b=b===null?R:Math.min(b,R))}y[g]=b}}return y}function e(A){var x=u(A),y=[];return T.each(A,function(g){var m=g.coordinateSystem,b=m.getBaseAxis(),I=b.getExtent(),R;if(b.type==="category")R=b.getBandWidth();else if(b.type==="value"||b.type==="time"){var E=b.dim+"_"+b.index,P=x[E],O=Math.abs(I[1]-I[0]),N=b.scale.getExtent(),_=Math.abs(N[1]-N[0]);R=P?O/_*P:O}else{var G=g.getData();R=Math.abs(I[1]-I[0])/G.count()}var F=M(g.get("barWidth"),R),W=M(g.get("barMaxWidth"),R),U=M(g.get("barMinWidth")||1,R),H=g.get("barGap"),z=g.get("barCategoryGap");y.push({bandWidth:R,barWidth:F,barMaxWidth:W,barMinWidth:U,barGap:H,barCategoryGap:z,axisKey:s(b),stackId:t(g)})}),o(y)}function o(A){var x={};T.each(A,function(g,m){var b=g.axisKey,I=g.bandWidth,R=x[b]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},E=R.stacks;x[b]=R;var P=g.stackId;E[P]||R.autoWidthCount++,E[P]=E[P]||{width:0,maxWidth:0};var O=g.barWidth;O&&!E[P].width&&(E[P].width=O,O=Math.min(R.remainedWidth,O),R.remainedWidth-=O);var N=g.barMaxWidth;N&&(E[P].maxWidth=N);var _=g.barMinWidth;_&&(E[P].minWidth=_);var G=g.barGap;G!=null&&(R.gap=G);var F=g.barCategoryGap;F!=null&&(R.categoryGap=F)});var y={};return T.each(x,function(g,m){y[m]={};var b=g.stacks,I=g.bandWidth,R=M(g.categoryGap,I),E=M(g.gap,1),P=g.remainedWidth,O=g.autoWidthCount,N=(P-R)/(O+(O-1)*E);N=Math.max(N,0),T.each(b,function(W){var U=W.maxWidth,H=W.minWidth;if(W.width){var z=W.width;U&&(z=Math.min(z,U)),H&&(z=Math.max(z,H)),W.width=z,P-=z+E*z,O--}else{var z=N;U&&U<z&&(z=Math.min(U,P)),H&&H>z&&(z=H),z!==N&&(W.width=z,P-=z+E*z,O--)}}),N=(P-R)/(O+(O-1)*E),N=Math.max(N,0);var _=0,G;T.each(b,function(W,U){W.width||(W.width=N),G=W,_+=W.width*(1+E)}),G&&(_-=G.width*E);var F=-_/2;T.each(b,function(W,U){y[m][U]=y[m][U]||{bandWidth:I,offset:F,width:W.width},F+=W.width*(1+E)})}),y}function r(A,x,y){if(A&&x){var g=A[s(x)];return g!=null&&y!=null&&(g=g[t(y)]),g}}function l(A,x){var y=a(A,x),g=e(y),m={},b={};T.each(y,function(I){var R=I.getData(),E=I.coordinateSystem,P=E.getBaseAxis(),O=t(I),N=g[s(P)][O],_=N.offset,G=N.width,F=E.getOtherAxis(P),W=I.get("barMinHeight")||0;m[O]=m[O]||[],b[O]=b[O]||[],R.setLayout({bandWidth:N.bandWidth,offset:_,size:G});for(var U=R.mapDimension(F.dim),H=R.mapDimension(P.dim),z=C(R,U),B=F.isHorizontal(),k=d(P,F,z),Z=0,X=R.count();Z<X;Z++){var K=R.get(U,Z),Q=R.get(H,Z),J=K>=0?"p":"n",tt=k;z&&(m[O][Q]||(m[O][Q]={p:k,n:k}),tt=m[O][Q][J]);var q,rt,$,j;if(B){var st=E.dataToPoint([K,Q]);q=tt,rt=st[1]+_,$=st[0]-k,j=G,Math.abs($)<W&&($=($<0?-1:1)*W),isNaN($)||z&&(m[O][Q][J]+=$)}else{var st=E.dataToPoint([Q,K]);q=st[0]+_,rt=tt,$=G,j=st[1]-k,Math.abs(j)<W&&(j=(j<=0?-1:1)*W),isNaN(j)||z&&(m[O][Q][J]+=j)}R.setItemLayout(Z,{x:q,y:rt,width:$,height:j})}},this)}var h={seriesType:"bar",plan:D(),reset:function(A){if(!f(A)||!c(A))return;var x=A.getData(),y=A.coordinateSystem,g=y.grid.getRect(),m=y.getBaseAxis(),b=y.getOtherAxis(m),I=x.mapDimension(b.dim),R=x.mapDimension(m.dim),E=b.isHorizontal(),P=E?0:1,O=r(e([A]),m,A).width;return O>p||(O=p),{progress:N};function N(_,G){for(var F=_.count,W=new v(F*2),U=new v(F*2),H=new v(F),z,B=[],k=[],Z=0,X=0;(z=_.next())!=null;)k[P]=G.get(I,z),k[1-P]=G.get(R,z),B=y.dataToPoint(k,null,B),U[Z]=E?g.x+g.width:B[0],W[Z++]=B[0],U[Z]=E?B[1]:g.y+g.height,W[Z++]=B[1],H[X++]=z;G.setLayout({largePoints:W,largeDataIndices:H,largeBackgroundPoints:U,barWidth:O,valueAxisStart:d(m,b,!1),backgroundStart:E?g.x:g.y,valueAxisHorizontal:E})}}};function f(A){return A.coordinateSystem&&A.coordinateSystem.type==="cartesian2d"}function c(A){return A.pipelineContext&&A.pipelineContext.large}function d(A,x,y){return x.toGlobalCoord(x.dataToCoord(x.type==="log"?1:0))}V.getLayoutOnAxis=i,V.prepareLayoutBarSeries=a,V.makeColumnLayout=e,V.retrieveColumnLayout=r,V.layout=l,V.largeLayout=h},27116:function(Y,V,n){var T=n(69008),L=n(86957),M=L.parsePercent,w=n(22240),C=w.isDimensionStacked;function D(s){return s.get("stack")||"__ec_stack_"+s.seriesIndex}function S(s,i){return i.dim+s.model.componentIndex}function p(s,i,a){var u={},e=v(T.filter(i.getSeriesByType(s),function(o){return!i.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));i.eachSeriesByType(s,function(o){if(o.coordinateSystem.type==="polar"){var r=o.getData(),l=o.coordinateSystem,h=l.getBaseAxis(),f=S(l,h),c=D(o),d=e[f][c],A=d.offset,x=d.width,y=l.getOtherAxis(h),g=o.coordinateSystem.cx,m=o.coordinateSystem.cy,b=o.get("barMinHeight")||0,I=o.get("barMinAngle")||0;u[c]=u[c]||[];for(var R=r.mapDimension(y.dim),E=r.mapDimension(h.dim),P=C(r,R),O=h.dim!=="radius"||!o.get("roundCap",!0),N=y.getExtent()[0],_=0,G=r.count();_<G;_++){var F=r.get(R,_),W=r.get(E,_),U=F>=0?"p":"n",H=N;P&&(u[c][W]||(u[c][W]={p:N,n:N}),H=u[c][W][U]);var z,B,k,Z;if(y.dim==="radius"){var X=y.dataToRadius(F)-N,K=h.dataToAngle(W);Math.abs(X)<b&&(X=(X<0?-1:1)*b),z=H,B=H+X,k=K-A,Z=k-x,P&&(u[c][W][U]=B)}else{var Q=y.dataToAngle(F,O)-N,J=h.dataToRadius(W);Math.abs(Q)<I&&(Q=(Q<0?-1:1)*I),z=J+A,B=z+x,k=H,Z=H+Q,P&&(u[c][W][U]=Z)}r.setItemLayout(_,{cx:g,cy:m,r0:z,r:B,startAngle:-k*Math.PI/180,endAngle:-Z*Math.PI/180})}}},this)}function v(s,i){var a={};T.each(s,function(e,o){var r=e.getData(),l=e.coordinateSystem,h=l.getBaseAxis(),f=S(l,h),c=h.getExtent(),d=h.type==="category"?h.getBandWidth():Math.abs(c[1]-c[0])/r.count(),A=a[f]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},x=A.stacks;a[f]=A;var y=D(e);x[y]||A.autoWidthCount++,x[y]=x[y]||{width:0,maxWidth:0};var g=M(e.get("barWidth"),d),m=M(e.get("barMaxWidth"),d),b=e.get("barGap"),I=e.get("barCategoryGap");g&&!x[y].width&&(g=Math.min(A.remainedWidth,g),x[y].width=g,A.remainedWidth-=g),m&&(x[y].maxWidth=m),b!=null&&(A.gap=b),I!=null&&(A.categoryGap=I)});var u={};return T.each(a,function(e,o){u[o]={};var r=e.stacks,l=e.bandWidth,h=M(e.categoryGap,l),f=M(e.gap,1),c=e.remainedWidth,d=e.autoWidthCount,A=(c-h)/(d+(d-1)*f);A=Math.max(A,0),T.each(r,function(m,b){var I=m.maxWidth;I&&I<A&&(I=Math.min(I,c),m.width&&(I=Math.min(I,m.width)),c-=I,m.width=I,d--)}),A=(c-h)/(d+(d-1)*f),A=Math.max(A,0);var x=0,y;T.each(r,function(m,b){m.width||(m.width=A),y=m,x+=m.width*(1+f)}),y&&(x-=y.width*f);var g=-x/2;T.each(r,function(m,b){u[o][b]=u[o][b]||{offset:g,width:m.width},g+=m.width*(1+f)})}),u}var t=p;Y.exports=t},87984:function(Y,V,n){var T=n(69008),L=T.map,M=n(13861),w=n(22240),C=w.isDimensionStacked;function D(S){return{seriesType:S,plan:M(),reset:function(p){var v=p.getData(),t=p.coordinateSystem,s=p.pipelineContext,i=s.large;if(!t)return;var a=L(t.dimensions,function(r){return v.mapDimension(r)}).slice(0,2),u=a.length,e=v.getCalculationInfo("stackResultDimension");C(v,a[0])&&(a[0]=e),C(v,a[1])&&(a[1]=e);function o(r,l){for(var h=r.end-r.start,f=i&&new Float32Array(h*u),c=r.start,d=0,A=[],x=[];c<r.end;c++){var y;if(u===1){var g=l.get(a[0],c);y=!isNaN(g)&&t.dataToPoint(g,null,x)}else{var g=A[0]=l.get(a[0],c),m=A[1]=l.get(a[1],c);y=!isNaN(g)&&!isNaN(m)&&t.dataToPoint(A,null,x)}i?(f[d++]=y?y[0]:NaN,f[d++]=y?y[1]:NaN):l.setItemLayout(c,y&&y.slice()||[NaN,NaN])}i&&l.setLayout("symbolPoints",f)}return u&&{progress:o}}}}Y.exports=D},39353:function(Y,V,n){var T=n(69008),L=n(18993),M=n(63603),w=Math.PI;function C(D,S){S=S||{},T.defaults(S,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var p=new L.Group,v=new L.Rect({style:{fill:S.maskColor},zlevel:S.zlevel,z:1e4});p.add(v);var t=S.fontSize+" sans-serif",s=new L.Rect({style:{fill:"none",text:S.text,font:t,textPosition:"right",textDistance:10,textFill:S.textColor},zlevel:S.zlevel,z:10001});if(p.add(s),S.showSpinner){var i=new L.Arc({shape:{startAngle:-w/2,endAngle:-w/2+.1,r:S.spinnerRadius},style:{stroke:S.color,lineCap:"round",lineWidth:S.lineWidth},zlevel:S.zlevel,z:10001});i.animateShape(!0).when(1e3,{endAngle:w*3/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:w*3/2}).delay(300).start("circularInOut"),p.add(i)}return p.resize=function(){var a=M.getWidth(S.text,t),u=S.showSpinner?S.spinnerRadius:0,e=(D.getWidth()-u*2-(S.showSpinner&&a?10:0)-a)/2-(S.showSpinner?0:a/2),o=D.getHeight()/2;S.showSpinner&&i.setShape({cx:e,cy:o}),s.setShape({x:e-u,y:o-u,width:u*2,height:u*2}),v.setShape({x:0,y:0,width:D.getWidth(),height:D.getHeight()})},p.resize(),p}Y.exports=C},16172:function(Y,V,n){var T=n(69008),L=n(24040),M=n(58744),w=n(77305),C=w.enableClassManagement,D=w.parseClassType,S=n(90830),p=S.makeInner,v=n(7357),t=n(51483),s=p(),i=L.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,o,r,l){L.call(this,e,o,r,l),this.uid=M.getUID("ec_cpt_model")},init:function(e,o,r,l){this.mergeDefaultAndTheme(e,r)},mergeDefaultAndTheme:function(e,o){var r=this.layoutMode,l=r?v.getLayoutParams(e):{},h=o.getTheme();T.merge(e,h.get(this.mainType)),T.merge(e,this.getDefaultOption()),r&&v.mergeLayoutParam(e,l,r)},mergeOption:function(e,o){T.merge(this.option,e,!0);var r=this.layoutMode;r&&v.mergeLayoutParam(this.option,e,r)},optionUpdated:function(e,o){},getDefaultOption:function(){var e=s(this);if(!e.defaultOption){for(var o=[],r=this.constructor;r;){var l=r.prototype.defaultOption;l&&o.push(l),r=r.superClass}for(var h={},f=o.length-1;f>=0;f--)h=T.merge(h,o[f],!0);e.defaultOption=h}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});C(i,{registerWhenExtend:!0}),M.enableSubTypeDefaulter(i),M.enableTopologicalTravel(i,a);function a(e){var o=[];return T.each(i.getClassesByMainType(e),function(r){o=o.concat(r.prototype.dependencies||[])}),o=T.map(o,function(r){return D(r).main}),e!=="dataset"&&T.indexOf(o,"dataset")<=0&&o.unshift("dataset"),o}T.mixin(i,t);var u=i;Y.exports=u},77265:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=M.each,C=M.filter,D=M.map,S=M.isArray,p=M.indexOf,v=M.isObject,t=M.isString,s=M.createHashMap,i=M.assert,a=M.clone,u=M.merge,e=M.extend,o=M.mixin,r=n(90830),l=n(24040),h=n(16172),f=n(82724),c=n(17948),d=n(67063),A=d.resetSourceDefaulter,x="\0_ec_inner",y=l.extend({init:function(_,G,F,W){F=F||{},this.option=null,this._theme=new l(F),this._optionManager=W},setOption:function(_,G){i(!(x in _),"please use chart.getOption()"),this._optionManager.setOption(_,G),this.resetOption(null)},resetOption:function(_){var G=!1,F=this._optionManager;if(!_||_==="recreate"){var W=F.mountOption(_==="recreate");!this.option||_==="recreate"?b.call(this,W):(this.restoreData(),this.mergeOption(W)),G=!0}if((_==="timeline"||_==="media")&&this.restoreData(),!_||_==="recreate"||_==="timeline"){var U=F.getTimelineOption(this);U&&(this.mergeOption(U),G=!0)}if(!_||_==="recreate"||_==="media"){var H=F.getMediaOption(this,this._api);H.length&&w(H,function(z){this.mergeOption(z,G=!0)},this)}return G},mergeOption:function(_){var G=this.option,F=this._componentsMap,W=[];A(this),w(_,function(H,z){H!=null&&(h.hasClass(z)?z&&W.push(z):G[z]=G[z]==null?a(H):u(G[z],H,!0))}),h.topologicalTravel(W,h.getAllClassMainTypes(),U,this);function U(H,z){var B=r.normalizeToArray(_[H]),k=r.mappingToExists(F.get(H),B);r.makeIdAndName(k),w(k,function(X,K){var Q=X.option;v(Q)&&(X.keyInfo.mainType=H,X.keyInfo.subType=R(H,Q,X.exist))});var Z=I(F,z);G[H]=[],F.set(H,[]),w(k,function(X,K){var Q=X.exist,J=X.option;if(i(v(J)||Q,"Empty component definition"),!J)Q.mergeOption({},this),Q.optionUpdated({},!1);else{var tt=h.getClass(H,X.keyInfo.subType,!0);if(Q&&Q.constructor===tt)Q.name=X.keyInfo.name,Q.mergeOption(J,this),Q.optionUpdated(J,!1);else{var q=e({dependentModels:Z,componentIndex:K},X.keyInfo);Q=new tt(J,this,this,q),e(Q,q),Q.init(J,this,this,q),Q.optionUpdated(null,!0)}}F.get(H)[K]=Q,G[H][K]=Q.option},this),H==="series"&&E(this,F.get("series"))}this._seriesIndicesMap=s(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var _=a(this.option);return w(_,function(G,F){if(h.hasClass(F)){for(var G=r.normalizeToArray(G),W=G.length-1;W>=0;W--)r.isIdInner(G[W])&&G.splice(W,1);_[F]=G}}),delete _[x],_},getTheme:function(){return this._theme},getComponent:function(_,G){var F=this._componentsMap.get(_);if(F)return F[G||0]},queryComponents:function(_){var G=_.mainType;if(!G)return[];var F=_.index,W=_.id,U=_.name,H=this._componentsMap.get(G);if(!H||!H.length)return[];var z;if(F!=null)S(F)||(F=[F]),z=C(D(F,function(Z){return H[Z]}),function(Z){return!!Z});else if(W!=null){var B=S(W);z=C(H,function(Z){return B&&p(W,Z.id)>=0||!B&&Z.id===W})}else if(U!=null){var k=S(U);z=C(H,function(Z){return k&&p(U,Z.name)>=0||!k&&Z.name===U})}else z=H.slice();return P(z,_)},findComponents:function(_){var G=_.query,F=_.mainType,W=H(G),U=W?this.queryComponents(W):this._componentsMap.get(F);return z(P(U,_));function H(B){var k=F+"Index",Z=F+"Id",X=F+"Name";return B&&(B[k]!=null||B[Z]!=null||B[X]!=null)?{mainType:F,index:B[k],id:B[Z],name:B[X]}:null}function z(B){return _.filter?C(B,_.filter):B}},eachComponent:function(_,G,F){var W=this._componentsMap;if(typeof _=="function")F=G,G=_,W.each(function(H,z){w(H,function(B,k){G.call(F,z,B,k)})});else if(t(_))w(W.get(_),G,F);else if(v(_)){var U=this.findComponents(_);w(U,G,F)}},getSeriesByName:function(_){var G=this._componentsMap.get("series");return C(G,function(F){return F.name===_})},getSeriesByIndex:function(_){return this._componentsMap.get("series")[_]},getSeriesByType:function(_){var G=this._componentsMap.get("series");return C(G,function(F){return F.subType===_})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(_,G){w(this._seriesIndices,function(F){var W=this._componentsMap.get("series")[F];_.call(G,W,F)},this)},eachRawSeries:function(_,G){w(this._componentsMap.get("series"),_,G)},eachSeriesByType:function(_,G,F){w(this._seriesIndices,function(W){var U=this._componentsMap.get("series")[W];U.subType===_&&G.call(F,U,W)},this)},eachRawSeriesByType:function(_,G,F){return w(this.getSeriesByType(_),G,F)},isSeriesFiltered:function(_){return this._seriesIndicesMap.get(_.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(_,G){var F=C(this._componentsMap.get("series"),_,G);E(this,F)},restoreData:function(_){var G=this._componentsMap;E(this,G.get("series"));var F=[];G.each(function(W,U){F.push(U)}),h.topologicalTravel(F,h.getAllClassMainTypes(),function(W,U){w(G.get(W),function(H){(W!=="series"||!g(H,_))&&H.restoreData()})})}});function g(_,G){if(G){var F=G.seiresIndex,W=G.seriesId,U=G.seriesName;return F!=null&&_.componentIndex!==F||W!=null&&_.id!==W||U!=null&&_.name!==U}}function m(_,G){var F=_.color&&!_.colorLayer;w(G,function(W,U){U==="colorLayer"&&F||h.hasClass(U)||(typeof W=="object"?_[U]=_[U]?u(_[U],W,!1):a(W):_[U]==null&&(_[U]=W))})}function b(_){_=_,this.option={},this.option[x]=1,this._componentsMap=s({series:[]}),this._seriesIndices,this._seriesIndicesMap,m(_,this._theme.option),u(_,f,!1),this.mergeOption(_)}function I(_,G){S(G)||(G=G?[G]:[]);var F={};return w(G,function(W){F[W]=(_.get(W)||[]).slice()}),F}function R(_,G,F){var W=G.type?G.type:F?F.subType:h.determineSubType(_,G);return W}function E(_,G){_._seriesIndicesMap=s(_._seriesIndices=D(G,function(F){return F.componentIndex})||[])}function P(_,G){return G.hasOwnProperty("subType")?C(_,function(F){return F.subType===G.subType}):_}function O(_){}o(y,c);var N=y;Y.exports=N},24040:function(Y,V,n){var T=n(69008),L=n(12973),M=n(90830),w=M.makeInner,C=n(77305),D=C.enableClassExtend,S=C.enableClassCheck,p=n(14870),v=n(72935),t=n(3596),s=n(24782),i=T.mixin,a=w();function u(l,h,f){this.parentModel=h,this.ecModel=f,this.option=l}u.prototype={constructor:u,init:null,mergeOption:function(l){T.merge(this.option,l,!0)},get:function(l,h){return l==null?this.option:e(this.option,this.parsePath(l),!h&&o(this,l))},getShallow:function(l,h){var f=this.option,c=f==null?f:f[l],d=!h&&o(this,l);return c==null&&d&&(c=d.getShallow(l)),c},getModel:function(l,h){var f=l==null?this.option:e(this.option,l=this.parsePath(l)),c;return h=h||(c=o(this,l))&&c.getModel(l),new u(f,h,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var l=this.constructor;return new l(T.clone(this.option))},setReadOnly:function(l){},parsePath:function(l){return typeof l=="string"&&(l=l.split(".")),l},customizeGetParent:function(l){a(this).getParent=l},isAnimationEnabled:function(){if(!L.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function e(l,h,f){for(var c=0;c<h.length&&!(h[c]&&(l=l&&typeof l=="object"?l[h[c]]:null,l==null));c++);return l==null&&f&&(l=f.get(h)),l}function o(l,h){var f=a(l).getParent;return f?f.call(l,h):l.parentModel}D(u),S(u),i(u,p),i(u,v),i(u,t),i(u,s);var r=u;Y.exports=r},13994:function(Y,V,n){var T=n(69008),L=n(90830),M=n(16172),w=T.each,C=T.clone,D=T.map,S=T.merge,p=/^(min|max)?(.+)$/;function v(o){this._api=o,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}v.prototype={constructor:v,setOption:function(o,r){o&&T.each(L.normalizeToArray(o.series),function(f){f&&f.data&&T.isTypedArray(f.data)&&T.setAsPrimitive(f.data)}),o=C(o);var l=this._optionBackup,h=t.call(this,o,r,!l);this._newBaseOption=h.baseOption,l?(u(l.baseOption,h.baseOption),h.timelineOptions.length&&(l.timelineOptions=h.timelineOptions),h.mediaList.length&&(l.mediaList=h.mediaList),h.mediaDefault&&(l.mediaDefault=h.mediaDefault)):this._optionBackup=h},mountOption:function(o){var r=this._optionBackup;return this._timelineOptions=D(r.timelineOptions,C),this._mediaList=D(r.mediaList,C),this._mediaDefault=C(r.mediaDefault),this._currentMediaIndices=[],C(o?r.baseOption:this._newBaseOption)},getTimelineOption:function(o){var r,l=this._timelineOptions;if(l.length){var h=o.getComponent("timeline");h&&(r=C(l[h.getCurrentIndex()],!0))}return r},getMediaOption:function(o){var r=this._api.getWidth(),l=this._api.getHeight(),h=this._mediaList,f=this._mediaDefault,c=[],d=[];if(!h.length&&!f)return d;for(var A=0,x=h.length;A<x;A++)s(h[A].query,r,l)&&c.push(A);return!c.length&&f&&(c=[-1]),c.length&&!a(c,this._currentMediaIndices)&&(d=D(c,function(y){return C(y===-1?f.option:h[y].option)})),this._currentMediaIndices=c,d}};function t(o,r,l){var h=[],f=[],c,d,A=o.timeline;if(o.baseOption&&(d=o.baseOption),(A||o.options)&&(d=d||{},h=(o.options||[]).slice()),o.media){d=d||{};var x=o.media;w(x,function(y){y&&y.option&&(y.query?f.push(y):c||(c=y))})}return d||(d=o),d.timeline||(d.timeline=A),w([d].concat(h).concat(T.map(f,function(y){return y.option})),function(y){w(r,function(g){g(y,l)})}),{baseOption:d,timelineOptions:h,mediaDefault:c,mediaList:f}}function s(o,r,l){var h={width:r,height:l,aspectratio:r/l},f=!0;return T.each(o,function(c,d){var A=d.match(p);if(!(!A||!A[1]||!A[2])){var x=A[1],y=A[2].toLowerCase();i(h[y],c,x)||(f=!1)}}),f}function i(o,r,l){return l==="min"?o>=r:l==="max"?o<=r:o===r}function a(o,r){return o.join(",")===r.join(",")}function u(o,r){r=r||{},w(r,function(l,h){if(l!=null){var f=o[h];if(!M.hasClass(h))o[h]=S(f,l,!0);else{l=L.normalizeToArray(l),f=L.normalizeToArray(f);var c=L.mappingToExists(f,l);o[h]=D(c,function(d){return d.option&&d.exist?S(d.exist,d.option,!0):d.exist||d.option})}}})}var e=v;Y.exports=e},38645:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=n(12973),C=n(17010),D=C.formatTime,S=C.encodeHTML,p=C.addCommas,v=C.getTooltipMarker,t=n(90830),s=n(16172),i=n(17948),a=n(64530),u=n(7357),e=u.getLayoutParams,o=u.mergeLayoutParam,r=n(222),l=r.createTask,h=n(67063),f=h.prepareSource,c=h.getSource,d=n(17751),A=d.retrieveRawValue,x=t.makeInner(),y=s.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(_,G,F,W){this.seriesIndex=this.componentIndex,this.dataTask=l({count:b,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(_,F),f(this);var U=this.getInitialData(_,F);E(U,this),this.dataTask.context.data=U,x(this).dataBeforeProcessed=U,g(this)},mergeDefaultAndTheme:function(_,G){var F=this.layoutMode,W=F?e(_):{},U=this.subType;s.hasClass(U)&&(U+="Series"),M.merge(_,G.getTheme().get(this.subType)),M.merge(_,this.getDefaultOption()),t.defaultEmphasis(_,"label",["show"]),this.fillDataTextStyle(_.data),F&&o(_,W,F)},mergeOption:function(_,G){_=M.merge(this.option,_,!0),this.fillDataTextStyle(_.data);var F=this.layoutMode;F&&o(this.option,_,F),f(this);var W=this.getInitialData(_,G);E(W,this),this.dataTask.dirty(),this.dataTask.context.data=W,x(this).dataBeforeProcessed=W,g(this)},fillDataTextStyle:function(_){if(_&&!M.isTypedArray(_))for(var G=["show"],F=0;F<_.length;F++)_[F]&&_[F].label&&t.defaultEmphasis(_[F],"label",G)},getInitialData:function(){},appendData:function(_){var G=this.getRawData();G.appendData(_.data)},getData:function(_){var G=O(this);if(G){var F=G.context.data;return _==null?F:F.getLinkedData(_)}else return x(this).data},setData:function(_){var G=O(this);if(G){var F=G.context;F.data!==_&&G.modifyOutputEnd&&G.setOutputEnd(_.count()),F.outputData=_,G!==this.dataTask&&(F.data=_)}x(this).data=_},getSource:function(){return c(this)},getRawData:function(){return x(this).dataBeforeProcessed},getBaseAxis:function(){var _=this.coordinateSystem;return _&&_.getBaseAxis&&_.getBaseAxis()},formatTooltip:function(_,G,F,W){var U=this;W=W||"html";var H=W==="html"?"<br/>":`
`,z=W==="richText",B={},k=0;function Z(gt){var Ct=M.reduce(gt,function(pt,mt,ft){var xt=K.getDimensionInfo(ft);return pt|=xt&&xt.tooltip!==!1&&xt.displayName!=null},0),bt=[];Q.length?M.each(Q,function(pt){et(A(K,_,pt),pt)}):M.each(gt,et);function et(pt,mt){var ft=K.getDimensionInfo(mt);if(!(!ft||ft.otherDims.tooltip===!1)){var xt=ft.type,Mt="sub"+U.seriesIndex+"at"+k,Pt=v({color:rt,type:"subItem",renderMode:W,markerId:Mt}),Rt=typeof Pt=="string"?Pt:Pt.content,Bt=(Ct?Rt+S(ft.displayName||"-")+": ":"")+S(xt==="ordinal"?pt+"":xt==="time"?G?"":D("yyyy/MM/dd hh:mm:ss",pt):p(pt));Bt&&bt.push(Bt),z&&(B[Mt]=rt,++k)}}var lt=Ct?z?`
`:"<br/>":"",ht=lt+bt.join(lt||", ");return{renderMode:W,content:ht,style:B}}function X(gt){return{renderMode:W,content:S(p(gt)),style:B}}var K=this.getData(),Q=K.mapDimension("defaultedTooltip",!0),J=Q.length,tt=this.getRawValue(_),q=M.isArray(tt),rt=K.getItemVisual(_,"color");M.isObject(rt)&&rt.colorStops&&(rt=(rt.colorStops[0]||{}).color),rt=rt||"transparent";var $=J>1||q&&!J?Z(tt):X(J?A(K,_,Q[0]):q?tt[0]:tt),j=$.content,st=U.seriesIndex+"at"+k,ot=v({color:rt,type:"item",renderMode:W,markerId:st});B[st]=rt,++k;var vt=K.getName(_),yt=this.name;t.isNameSpecified(this)||(yt=""),yt=yt?S(yt)+(G?": ":H):"";var it=typeof ot=="string"?ot:ot.content,ut=G?it+yt+j:yt+it+(vt?S(vt)+": "+j:j);return{html:ut,markers:B}},isAnimationEnabled:function(){if(w.node)return!1;var _=this.getShallow("animation");return _&&this.getData().count()>this.getShallow("animationThreshold")&&(_=!1),_},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(_,G,F){var W=this.ecModel,U=i.getColorFromPalette.call(this,_,G,F);return U||(U=W.getColorFromPalette(_,G,F)),U},coordDimToDataDim:function(_){return this.getRawData().mapDimension(_,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});M.mixin(y,a),M.mixin(y,i);function g(_){var G=_.name;t.isNameSpecified(_)||(_.name=m(_)||G)}function m(_){var G=_.getRawData(),F=G.mapDimension("seriesName",!0),W=[];return M.each(F,function(U){var H=G.getDimensionInfo(U);H.displayName&&W.push(H.displayName)}),W.join(" ")}function b(_){return _.model.getRawData().count()}function I(_){var G=_.model;return G.setData(G.getRawData().cloneShallow()),R}function R(_,G){G.outputData&&_.end>G.outputData.count()&&G.model.getRawData().cloneShallow(G.outputData)}function E(_,G){M.each(_.CHANGABLE_METHODS,function(F){_.wrapMethod(F,M.curry(P,G))})}function P(_){var G=O(_);G&&G.setOutputEnd(this.count())}function O(_){var G=(_.ecModel||{}).scheduler,F=G&&G.getPipeline(_.uid);if(F){var W=F.currentTask;if(W){var U=W.agentStubMap;U&&(W=U.get(_.uid))}return W}}var N=y;Y.exports=N},82724:function(Y){var V="";typeof navigator!="undefined"&&(V=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:V.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};Y.exports=n},72935:function(Y,V,n){var T=n(76282),L=T([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),M={getAreaStyle:function(w,C){return L(this,w,C)}};Y.exports=M},51483:function(Y){var V={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};Y.exports=V},17948:function(Y,V,n){var T=n(90830),L=T.makeInner,M=T.normalizeToArray,w=L();function C(S,p){for(var v=S.length,t=0;t<v;t++)if(S[t].length>p)return S[t];return S[v-1]}var D={clearColorPalette:function(){w(this).colorIdx=0,w(this).colorNameMap={}},getColorFromPalette:function(S,p,v){p=p||this;var t=w(p),s=t.colorIdx||0,i=t.colorNameMap=t.colorNameMap||{};if(i.hasOwnProperty(S))return i[S];var a=M(this.get("color",!0)),u=this.get("colorLayer",!0),e=v==null||!u?a:C(u,v);if(e=e||a,!(!e||!e.length)){var o=e[s];return S&&(i[S]=o),t.colorIdx=(s+1)%e.length,o}}};Y.exports=D},64530:function(Y,V,n){var T=n(17751),L=T.retrieveRawValue,M=n(17010),w=M.getTooltipMarker,C=M.formatTpl,D=n(90830),S=D.getTooltipRenderMode,p=/\{@(.+?)\}/g,v={getDataParams:function(t,s){var i=this.getData(s),a=this.getRawValue(t,s),u=i.getRawIndex(t),e=i.getName(t),o=i.getRawDataItem(t),r=i.getItemVisual(t,"color"),l=i.getItemVisual(t,"borderColor"),h=this.ecModel.getComponent("tooltip"),f=h&&h.get("renderMode"),c=S(f),d=this.mainType,A=d==="series",x=i.userOutput;return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:A?this.subType:null,seriesIndex:this.seriesIndex,seriesId:A?this.id:null,seriesName:A?this.name:null,name:e,dataIndex:u,data:o,dataType:s,value:a,color:r,borderColor:l,dimensionNames:x?x.dimensionNames:null,encode:x?x.encode:null,marker:w({color:r,renderMode:c}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,s,i,a,u){s=s||"normal";var e=this.getData(i),o=e.getItemModel(t),r=this.getDataParams(t,i);a!=null&&r.value instanceof Array&&(r.value=r.value[a]);var l=o.get(s==="normal"?[u||"label","formatter"]:[s,u||"label","formatter"]);if(typeof l=="function")return r.status=s,r.dimensionIndex=a,l(r);if(typeof l=="string"){var h=C(l,r);return h.replace(p,function(f,c){var d=c.length;return c.charAt(0)==="["&&c.charAt(d-1)==="]"&&(c=+c.slice(1,d-1)),L(e,t,c)})}},getRawValue:function(t,s){return L(this.getData(s),t)},formatTooltip:function(){}};Y.exports=v},24782:function(Y,V,n){var T=n(76282),L=T([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),M={getItemStyle:function(w,C){var D=L(this,w,C),S=this.getBorderLineDash();return S&&(D.lineDash=S),D},getBorderLineDash:function(){var w=this.get("borderType");return w==="solid"||w==null?null:w==="dashed"?[5,5]:[1,1]}};Y.exports=M},14870:function(Y,V,n){var T=n(76282),L=T([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),M={getLineStyle:function(w){var C=L(this,w);return C.lineDash=this.getLineDash(C.lineWidth),C},getLineDash:function(w){w==null&&(w=1);var C=this.get("type"),D=Math.max(w,2),S=w*4;return C==="solid"||C==null?!1:C==="dashed"?[S,S]:[D,D]}};Y.exports=M},76282:function(Y,V,n){var T=n(69008);function L(M){for(var w=0;w<M.length;w++)M[w][1]||(M[w][1]=M[w][0]);return function(C,D,S){for(var p={},v=0;v<M.length;v++){var t=M[v][1];if(!(D&&T.indexOf(D,t)>=0||S&&T.indexOf(S,t)<0)){var s=C.getShallow(t);s!=null&&(p[M[v][0]]=s)}}return p}}Y.exports=L},3596:function(Y,V,n){var T=n(63603),L=n(18993),M=["textStyle","color"],w={getTextColor:function(C){var D=this.ecModel;return this.getShallow("color")||(!C&&D?D.get(M):null)},getFont:function(){return L.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(C){return T.getBoundingRect(C,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};Y.exports=w},28927:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=M.createHashMap,C=M.retrieve,D=M.each;function S(s){this.coordSysName=s,this.coordSysDims=[],this.axisMap=w(),this.categoryAxisMap=w(),this.firstCategoryDimIndex=null}function p(s){var i=s.get("coordinateSystem"),a=new S(i),u=v[i];if(u)return u(s,a,a.axisMap,a.categoryAxisMap),a}var v={cartesian2d:function(s,i,a,u){var e=s.getReferringComponents("xAxis")[0],o=s.getReferringComponents("yAxis")[0];i.coordSysDims=["x","y"],a.set("x",e),a.set("y",o),t(e)&&(u.set("x",e),i.firstCategoryDimIndex=0),t(o)&&(u.set("y",o),i.firstCategoryDimIndex==null&(i.firstCategoryDimIndex=1))},singleAxis:function(s,i,a,u){var e=s.getReferringComponents("singleAxis")[0];i.coordSysDims=["single"],a.set("single",e),t(e)&&(u.set("single",e),i.firstCategoryDimIndex=0)},polar:function(s,i,a,u){var e=s.getReferringComponents("polar")[0],o=e.findAxisModel("radiusAxis"),r=e.findAxisModel("angleAxis");i.coordSysDims=["radius","angle"],a.set("radius",o),a.set("angle",r),t(o)&&(u.set("radius",o),i.firstCategoryDimIndex=0),t(r)&&(u.set("angle",r),i.firstCategoryDimIndex==null&&(i.firstCategoryDimIndex=1))},geo:function(s,i,a,u){i.coordSysDims=["lng","lat"]},parallel:function(s,i,a,u){var e=s.ecModel,o=e.getComponent("parallel",s.get("parallelIndex")),r=i.coordSysDims=o.dimensions.slice();D(o.parallelAxisIndex,function(l,h){var f=e.getComponent("parallelAxis",l),c=r[h];a.set(c,f),t(f)&&i.firstCategoryDimIndex==null&&(u.set(c,f),i.firstCategoryDimIndex=h)})}};function t(s){return s.get("type")==="category"}V.getCoordSysInfoBySeries=p},5932:function(Y,V,n){var T=n(69008),L=T.each,M=T.isArray,w=T.isObject,C=n(30090),D=n(90830),S=D.normalizeToArray;function p(u,e){e=e.split(",");for(var o=u,r=0;r<e.length&&(o=o&&o[e[r]],o!=null);r++);return o}function v(u,e,o,r){e=e.split(",");for(var l=u,h,f=0;f<e.length-1;f++)h=e[f],l[h]==null&&(l[h]={}),l=l[h];(r||l[e[f]]==null)&&(l[e[f]]=o)}function t(u){L(s,function(e){e[0]in u&&!(e[1]in u)&&(u[e[1]]=u[e[0]])})}var s=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],i=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function a(u,e){C(u,e),u.series=S(u.series),L(u.series,function(o){if(w(o)){var r=o.type;if(r==="line")o.clipOverflow!=null&&(o.clip=o.clipOverflow);else if(r==="pie"||r==="gauge")o.clockWise!=null&&(o.clockwise=o.clockWise);else if(r==="gauge"){var l=p(o,"pointer.color");l!=null&&v(o,"itemStyle.color",l)}t(o)}}),u.dataRange&&(u.visualMap=u.dataRange),L(i,function(o){var r=u[o];r&&(M(r)||(r=[r]),L(r,function(l){t(l)}))})}Y.exports=a},30090:function(Y,V,n){var T=n(69008),L=n(90830),M=T.each,w=T.isObject,C=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function D(e){var o=e&&e.itemStyle;if(o)for(var r=0,l=C.length;r<l;r++){var h=C[r],f=o.normal,c=o.emphasis;f&&f[h]&&(e[h]=e[h]||{},e[h].normal?T.merge(e[h].normal,f[h]):e[h].normal=f[h],f[h]=null),c&&c[h]&&(e[h]=e[h]||{},e[h].emphasis?T.merge(e[h].emphasis,c[h]):e[h].emphasis=c[h],c[h]=null)}}function S(e,o,r){if(e&&e[o]&&(e[o].normal||e[o].emphasis)){var l=e[o].normal,h=e[o].emphasis;l&&(r?(e[o].normal=e[o].emphasis=null,T.defaults(e[o],l)):e[o]=l),h&&(e.emphasis=e.emphasis||{},e.emphasis[o]=h)}}function p(e){S(e,"itemStyle"),S(e,"lineStyle"),S(e,"areaStyle"),S(e,"label"),S(e,"labelLine"),S(e,"upperLabel"),S(e,"edgeLabel")}function v(e,o){var r=w(e)&&e[o],l=w(r)&&r.textStyle;if(l)for(var h=0,f=L.TEXT_STYLE_OPTIONS.length;h<f;h++){var o=L.TEXT_STYLE_OPTIONS[h];l.hasOwnProperty(o)&&(r[o]=l[o])}}function t(e){e&&(p(e),v(e,"label"),e.emphasis&&v(e.emphasis,"label"))}function s(e){if(w(e)){D(e),p(e),v(e,"label"),v(e,"upperLabel"),v(e,"edgeLabel"),e.emphasis&&(v(e.emphasis,"label"),v(e.emphasis,"upperLabel"),v(e.emphasis,"edgeLabel"));var f=e.markPoint;f&&(D(f),t(f));var d=e.markLine;d&&(D(d),t(d));var o=e.markArea;o&&t(o);var r=e.data;if(e.type==="graph"){r=r||e.nodes;var l=e.links||e.edges;if(l&&!T.isTypedArray(l))for(var h=0;h<l.length;h++)t(l[h]);T.each(e.categories,function(x){p(x)})}if(r&&!T.isTypedArray(r))for(var h=0;h<r.length;h++)t(r[h]);var f=e.markPoint;if(f&&f.data)for(var c=f.data,h=0;h<c.length;h++)t(c[h]);var d=e.markLine;if(d&&d.data)for(var A=d.data,h=0;h<A.length;h++)T.isArray(A[h])?(t(A[h][0]),t(A[h][1])):t(A[h]);e.type==="gauge"?(v(e,"axisLabel"),v(e,"title"),v(e,"detail")):e.type==="treemap"?(S(e.breadcrumb,"itemStyle"),T.each(e.levels,function(x){p(x)})):e.type==="tree"&&p(e.leaves)}}function i(e){return T.isArray(e)?e:e?[e]:[]}function a(e){return(T.isArray(e)?e[0]:e)||{}}function u(e,o){M(i(e.series),function(l){w(l)&&s(l)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];o&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),M(r,function(l){M(i(e[l]),function(h){h&&(v(h,"axisLabel"),v(h.axisPointer,"label"))})}),M(i(e.parallel),function(l){var h=l&&l.parallelAxisDefault;v(h,"axisLabel"),v(h&&h.axisPointer,"label")}),M(i(e.calendar),function(l){S(l,"itemStyle"),v(l,"dayLabel"),v(l,"monthLabel"),v(l,"yearLabel")}),M(i(e.radar),function(l){v(l,"name")}),M(i(e.geo),function(l){w(l)&&(t(l),M(i(l.regions),function(h){t(h)}))}),M(i(e.timeline),function(l){t(l),S(l,"label"),S(l,"itemStyle"),S(l,"controlStyle",!0);var h=l.data;T.isArray(h)&&T.each(h,function(f){T.isObject(f)&&(S(f,"label"),S(f,"itemStyle"))})}),M(i(e.toolbox),function(l){S(l,"iconStyle"),M(l.feature,function(h){S(h,"iconStyle")})}),v(a(e.axisPointer),"label"),v(a(e.tooltip).axisPointer,"label")}Y.exports=u},22259:function(Y){function V(n){return{seriesType:n,reset:function(T,L){var M=L.findComponents({mainType:"legend"});if(!(!M||!M.length)){var w=T.getData();w.filterSelf(function(C){for(var D=w.getName(C),S=0;S<M.length;S++)if(!M[S].isSelected(D))return!1;return!0})}}}}Y.exports=V},70932:function(Y){var V={average:function(L){for(var M=0,w=0,C=0;C<L.length;C++)isNaN(L[C])||(M+=L[C],w++);return w===0?NaN:M/w},sum:function(L){for(var M=0,w=0;w<L.length;w++)M+=L[w]||0;return M},max:function(L){for(var M=-1/0,w=0;w<L.length;w++)L[w]>M&&(M=L[w]);return isFinite(M)?M:NaN},min:function(L){for(var M=1/0,w=0;w<L.length;w++)L[w]<M&&(M=L[w]);return isFinite(M)?M:NaN},nearest:function(L){return L[0]}},n=function(L,M){return Math.round(L.length/2)};function T(L){return{seriesType:L,modifyOutputEnd:!0,reset:function(M,w,C){var D=M.getData(),S=M.get("sampling"),p=M.coordinateSystem;if(p.type==="cartesian2d"&&S){var v=p.getBaseAxis(),t=p.getOtherAxis(v),s=v.getExtent(),i=s[1]-s[0],a=Math.round(D.count()/i);if(a>1){var u;typeof S=="string"?u=V[S]:typeof S=="function"&&(u=S),u&&M.setData(D.downSample(D.mapDimension(t.dim),1/a,u,n))}}}}}Y.exports=T},61619:function(Y,V,n){var T=n(69008),L=T.createHashMap,M=T.each;function w(D){var S=L();D.eachSeries(function(p){var v=p.get("stack");if(v){var t=S.get(v)||S.set(v,[]),s=p.getData(),i={stackResultDimension:s.getCalculationInfo("stackResultDimension"),stackedOverDimension:s.getCalculationInfo("stackedOverDimension"),stackedDimension:s.getCalculationInfo("stackedDimension"),stackedByDimension:s.getCalculationInfo("stackedByDimension"),isStackedByIndex:s.getCalculationInfo("isStackedByIndex"),data:s,seriesModel:p};if(!i.stackedDimension||!(i.isStackedByIndex||i.stackedByDimension))return;t.length&&s.setCalculationInfo("stackedOnSeries",t[t.length-1].seriesModel),t.push(i)}}),S.each(C)}function C(D){M(D,function(S,p){var v=[],t=[NaN,NaN],s=[S.stackResultDimension,S.stackedOverDimension],i=S.data,a=S.isStackedByIndex,u=i.map(s,function(e,o,r){var l=i.get(S.stackedDimension,r);if(isNaN(l))return t;var h,f;a?f=i.getRawIndex(r):h=i.get(S.stackedByDimension,r);for(var c=NaN,d=p-1;d>=0;d--){var A=D[d];if(a||(f=A.data.rawIndexOf(A.stackedByDimension,h)),f>=0){var x=A.data.getByRawIndex(A.stackResultDimension,f);if(l>=0&&x>0||l<=0&&x<0){l+=x,c=x;break}}}return v[0]=l,v[1]=c,v});i.hostModel.setData(u),S.data=u})}Y.exports=w},48149:function(Y,V,n){var T=n(86957),L=n(17010),M=n(22510),w=n(74943),C=T.round,D=M.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(p,v){var t=this._extent;isNaN(p)||(t[0]=parseFloat(p)),isNaN(v)||(t[1]=parseFloat(v))},unionExtent:function(p){var v=this._extent;p[0]<v[0]&&(v[0]=p[0]),p[1]>v[1]&&(v[1]=p[1]),D.prototype.setExtent.call(this,v[0],v[1])},getInterval:function(){return this._interval},setInterval:function(p){this._interval=p,this._niceExtent=this._extent.slice(),this._intervalPrecision=w.getIntervalPrecision(p)},getTicks:function(p){var v=this._interval,t=this._extent,s=this._niceExtent,i=this._intervalPrecision,a=[];if(!v)return a;var u=1e4;t[0]<s[0]&&(p?a.push(C(s[0]-v,i)):a.push(t[0]));for(var e=s[0];e<=s[1]&&(a.push(e),e=C(e+v,i),e!==a[a.length-1]);)if(a.length>u)return[];var o=a.length?a[a.length-1]:s[1];return t[1]>o&&(p?a.push(C(o+v,i)):a.push(t[1])),a},getMinorTicks:function(p){for(var v=this.getTicks(!0),t=[],s=this.getExtent(),i=1;i<v.length;i++){for(var a=v[i],u=v[i-1],e=0,o=[],r=a-u,l=r/p;e<p-1;){var h=T.round(u+(e+1)*l);h>s[0]&&h<s[1]&&o.push(h),e++}t.push(o)}return t},getLabel:function(p,v){if(p==null)return"";var t=v&&v.precision;return t==null?t=T.getPrecisionSafe(p)||0:t==="auto"&&(t=this._intervalPrecision),p=C(p,t,!0),L.addCommas(p)},niceTicks:function(p,v,t){p=p||5;var s=this._extent,i=s[1]-s[0];if(isFinite(i)){i<0&&(i=-i,s.reverse());var a=w.intervalScaleNiceTicks(s,p,v,t);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(p){var v=this._extent;if(v[0]===v[1])if(v[0]!==0){var t=v[0];p.fixMax||(v[1]+=t/2),v[0]-=t/2}else v[1]=1;var s=v[1]-v[0];isFinite(s)||(v[0]=0,v[1]=1),this.niceTicks(p.splitNumber,p.minInterval,p.maxInterval);var i=this._interval;p.fixMin||(v[0]=C(Math.floor(v[0]/i)*i)),p.fixMax||(v[1]=C(Math.ceil(v[1]/i)*i))}});D.create=function(){return new D};var S=D;Y.exports=S},64763:function(Y,V,n){var T=n(69008),L=n(22510),M=n(86957),w=n(48149),C=L.prototype,D=w.prototype,S=M.getPrecisionSafe,p=M.round,v=Math.floor,t=Math.ceil,s=Math.pow,i=Math.log,a=L.extend({type:"log",base:10,$constructor:function(){L.apply(this,arguments),this._originalScale=new w},getTicks:function(o){var r=this._originalScale,l=this._extent,h=r.getExtent();return T.map(D.getTicks.call(this,o),function(f){var c=M.round(s(this.base,f));return c=f===l[0]&&r.__fixMin?u(c,h[0]):c,c=f===l[1]&&r.__fixMax?u(c,h[1]):c,c},this)},getMinorTicks:D.getMinorTicks,getLabel:D.getLabel,scale:function(o){return o=C.scale.call(this,o),s(this.base,o)},setExtent:function(o,r){var l=this.base;o=i(o)/i(l),r=i(r)/i(l),D.setExtent.call(this,o,r)},getExtent:function(){var o=this.base,r=C.getExtent.call(this);r[0]=s(o,r[0]),r[1]=s(o,r[1]);var l=this._originalScale,h=l.getExtent();return l.__fixMin&&(r[0]=u(r[0],h[0])),l.__fixMax&&(r[1]=u(r[1],h[1])),r},unionExtent:function(o){this._originalScale.unionExtent(o);var r=this.base;o[0]=i(o[0])/i(r),o[1]=i(o[1])/i(r),C.unionExtent.call(this,o)},unionExtentFromData:function(o,r){this.unionExtent(o.getApproximateExtent(r))},niceTicks:function(o){o=o||10;var r=this._extent,l=r[1]-r[0];if(!(l===1/0||l<=0)){var h=M.quantity(l),f=o/l*h;for(f<=.5&&(h*=10);!isNaN(h)&&Math.abs(h)<1&&Math.abs(h)>0;)h*=10;var c=[M.round(t(r[0]/h)*h),M.round(v(r[1]/h)*h)];this._interval=h,this._niceExtent=c}},niceExtent:function(o){D.niceExtent.call(this,o);var r=this._originalScale;r.__fixMin=o.fixMin,r.__fixMax=o.fixMax}});T.each(["contain","normalize"],function(o){a.prototype[o]=function(r){return r=i(r)/i(this.base),C[o].call(this,r)}}),a.create=function(){return new a};function u(o,r){return p(o,S(r))}var e=a;Y.exports=e},43712:function(Y,V,n){var T=n(69008),L=n(22510),M=n(82139),w=L.prototype,C=L.extend({type:"ordinal",init:function(S,p){(!S||T.isArray(S))&&(S=new M({categories:S})),this._ordinalMeta=S,this._extent=p||[0,S.categories.length-1]},parse:function(S){return typeof S=="string"?this._ordinalMeta.getOrdinal(S):Math.round(S)},contain:function(S){return S=this.parse(S),w.contain.call(this,S)&&this._ordinalMeta.categories[S]!=null},normalize:function(S){return w.normalize.call(this,this.parse(S))},scale:function(S){return Math.round(w.scale.call(this,S))},getTicks:function(){for(var S=[],p=this._extent,v=p[0];v<=p[1];)S.push(v),v++;return S},getLabel:function(S){if(!this.isBlank())return this._ordinalMeta.categories[S]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(S,p){this.unionExtent(S.getApproximateExtent(p))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:T.noop,niceExtent:T.noop});C.create=function(){return new C};var D=C;Y.exports=D},22510:function(Y,V,n){var T=n(77305);function L(w){this._setting=w||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}L.prototype.parse=function(w){return w},L.prototype.getSetting=function(w){return this._setting[w]},L.prototype.contain=function(w){var C=this._extent;return w>=C[0]&&w<=C[1]},L.prototype.normalize=function(w){var C=this._extent;return C[1]===C[0]?.5:(w-C[0])/(C[1]-C[0])},L.prototype.scale=function(w){var C=this._extent;return w*(C[1]-C[0])+C[0]},L.prototype.unionExtent=function(w){var C=this._extent;w[0]<C[0]&&(C[0]=w[0]),w[1]>C[1]&&(C[1]=w[1])},L.prototype.unionExtentFromData=function(w,C){this.unionExtent(w.getApproximateExtent(C))},L.prototype.getExtent=function(){return this._extent.slice()},L.prototype.setExtent=function(w,C){var D=this._extent;isNaN(w)||(D[0]=w),isNaN(C)||(D[1]=C)},L.prototype.isBlank=function(){return this._isBlank},L.prototype.setBlank=function(w){this._isBlank=w},L.prototype.getLabel=null,T.enableClassExtend(L),T.enableClassManagement(L,{registerWhenExtend:!0});var M=L;Y.exports=M},79262:function(Y,V,n){var T=n(69008),L=n(86957),M=n(17010),w=n(74943),C=n(48149),D=C.prototype,S=Math.ceil,p=Math.floor,v=1e3,t=v*60,s=t*60,i=s*24,a=function(r,l,h,f){for(;h<f;){var c=h+f>>>1;r[c][1]<l?h=c+1:f=c}return h},u=C.extend({type:"time",getLabel:function(r){var l=this._stepLvl,h=new Date(r);return M.formatTime(l[0],h,this.getSetting("useUTC"))},niceExtent:function(r){var l=this._extent;if(l[0]===l[1]&&(l[0]-=i,l[1]+=i),l[1]===-1/0&&l[0]===1/0){var h=new Date;l[1]=+new Date(h.getFullYear(),h.getMonth(),h.getDate()),l[0]=l[1]-i}this.niceTicks(r.splitNumber,r.minInterval,r.maxInterval);var f=this._interval;r.fixMin||(l[0]=L.round(p(l[0]/f)*f)),r.fixMax||(l[1]=L.round(S(l[1]/f)*f))},niceTicks:function(r,l,h){r=r||10;var f=this._extent,c=f[1]-f[0],d=c/r;l!=null&&d<l&&(d=l),h!=null&&d>h&&(d=h);var A=e.length,x=a(e,d,0,A),y=e[Math.min(x,A-1)],g=y[1];if(y[0]==="year"){var m=c/g,b=L.nice(m/r,!0);g*=b}var I=this.getSetting("useUTC")?0:new Date(+f[0]||+f[1]).getTimezoneOffset()*60*1e3,R=[Math.round(S((f[0]-I)/g)*g+I),Math.round(p((f[1]-I)/g)*g+I)];w.fixExtent(R,f),this._stepLvl=y,this._interval=g,this._niceExtent=R},parse:function(r){return+L.parseDate(r)}});T.each(["contain","normalize"],function(r){u.prototype[r]=function(l){return D[r].call(this,this.parse(l))}});var e=[["hh:mm:ss",v],["hh:mm:ss",v*5],["hh:mm:ss",v*10],["hh:mm:ss",v*15],["hh:mm:ss",v*30],[`hh:mm
MM-dd`,t],[`hh:mm
MM-dd`,t*5],[`hh:mm
MM-dd`,t*10],[`hh:mm
MM-dd`,t*15],[`hh:mm
MM-dd`,t*30],[`hh:mm
MM-dd`,s],[`hh:mm
MM-dd`,s*2],[`hh:mm
MM-dd`,s*6],[`hh:mm
MM-dd`,s*12],[`MM-dd
yyyy`,i],[`MM-dd
yyyy`,i*2],[`MM-dd
yyyy`,i*3],[`MM-dd
yyyy`,i*4],[`MM-dd
yyyy`,i*5],[`MM-dd
yyyy`,i*6],["week",i*7],[`MM-dd
yyyy`,i*10],["week",i*14],["week",i*21],["month",i*31],["week",i*42],["month",i*62],["week",i*70],["quarter",i*95],["month",i*31*4],["month",i*31*5],["half-year",i*380/2],["month",i*31*8],["month",i*31*10],["year",i*380]];u.create=function(r){return new u({useUTC:r.ecModel.get("useUTC")})};var o=u;Y.exports=o},74943:function(Y,V,n){var T=n(86957),L=T.round;function M(S,p,v,t){var s={},i=S[1]-S[0],a=s.interval=T.nice(i/p,!0);v!=null&&a<v&&(a=s.interval=v),t!=null&&a>t&&(a=s.interval=t);var u=s.intervalPrecision=w(a),e=s.niceTickExtent=[L(Math.ceil(S[0]/a)*a,u),L(Math.floor(S[1]/a)*a,u)];return D(e,S),s}function w(S){return T.getPrecisionSafe(S)+2}function C(S,p,v){S[p]=Math.max(Math.min(S[p],v[1]),v[0])}function D(S,p){!isFinite(S[0])&&(S[0]=p[0]),!isFinite(S[1])&&(S[1]=p[1]),C(S,0,p),C(S,1,p),S[0]>S[1]&&(S[0]=S[1])}V.intervalScaleNiceTicks=M,V.getIntervalPrecision=w,V.fixExtent=D},69569:function(Y,V,n){var T=n(69008),L=T.each,M=T.map,w=T.isFunction,C=T.createHashMap,D=T.noop,S=n(222),p=S.createTask,v=n(58744),t=v.getUID,s=n(77265),i=n(6900),a=n(90830),u=a.normalizeToArray;function e(F,W,z,B){this.ecInstance=F,this.api=W,this.unfinished;var z=this._dataProcessorHandlers=z.slice(),B=this._visualHandlers=B.slice();this._allHandlers=z.concat(B),this._stageTaskMap=C()}var o=e.prototype;o.restoreData=function(F,W){F.restoreData(W),this._stageTaskMap.each(function(U){var H=U.overallTask;H&&H.dirty()})},o.getPerformArgs=function(F,W){if(F.__pipeline){var U=this._pipelineMap.get(F.__pipeline.id),H=U.context,z=!W&&U.progressiveEnabled&&(!H||H.progressiveRender)&&F.__idxInPipeline>U.blockIndex,B=z?U.step:null,k=H&&H.modDataCount,Z=k!=null?Math.ceil(k/B):null;return{step:B,modBy:Z,modDataCount:k}}},o.getPipeline=function(F){return this._pipelineMap.get(F)},o.updateStreamModes=function(F,W){var U=this._pipelineMap.get(F.uid),H=F.getData(),z=H.count(),B=U.progressiveEnabled&&W.incrementalPrepareRender&&z>=U.threshold,k=F.get("large")&&z>=F.get("largeThreshold"),Z=F.get("progressiveChunkMode")==="mod"?z:null;F.pipelineContext=U.context={progressiveRender:B,modDataCount:Z,large:k}},o.restorePipelines=function(F){var W=this,U=W._pipelineMap=C();F.eachSeries(function(H){var z=H.getProgressive(),B=H.uid;U.set(B,{id:B,head:null,tail:null,threshold:H.getProgressiveThreshold(),progressiveEnabled:z&&!(H.preventIncremental&&H.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),R(W,H,H.dataTask)})},o.prepareStageTasks=function(){var F=this._stageTaskMap,W=this.ecInstance.getModel(),U=this.api;L(this._allHandlers,function(H){var z=F.get(H.uid)||F.set(H.uid,[]);H.reset&&h(this,H,z,W,U),H.overallReset&&f(this,H,z,W,U)},this)},o.prepareView=function(F,W,U,H){var z=F.renderTask,B=z.context;B.model=W,B.ecModel=U,B.api=H,z.__block=!F.incrementalPrepareRender,R(this,W,z)},o.performDataProcessorTasks=function(F,W){r(this,this._dataProcessorHandlers,F,W,{block:!0})},o.performVisualTasks=function(F,W,U){r(this,this._visualHandlers,F,W,U)};function r(F,W,U,H,z){z=z||{};var B;L(W,function(Z,X){if(!(z.visualType&&z.visualType!==Z.visualType)){var K=F._stageTaskMap.get(Z.uid),Q=K.seriesTaskMap,J=K.overallTask;if(J){var tt,q=J.agentStubMap;q.each(function($){k(z,$)&&($.dirty(),tt=!0)}),tt&&J.dirty(),l(J,H);var rt=F.getPerformArgs(J,z.block);q.each(function($){$.perform(rt)}),B|=J.perform(rt)}else Q&&Q.each(function($,j){k(z,$)&&$.dirty();var st=F.getPerformArgs($,z.block);st.skip=!Z.performRawSeries&&U.isSeriesFiltered($.context.model),l($,H),B|=$.perform(st)})}});function k(Z,X){return Z.setDirty&&(!Z.dirtyMap||Z.dirtyMap.get(X.__pipeline.id))}F.unfinished|=B}o.performSeriesTasks=function(F){var W;F.eachSeries(function(U){W|=U.dataTask.perform()}),this.unfinished|=W},o.plan=function(){this._pipelineMap.each(function(F){var W=F.tail;do{if(W.__block){F.blockIndex=W.__idxInPipeline;break}W=W.getUpstream()}while(W)})};var l=o.updatePayload=function(F,W){W!=="remain"&&(F.context.payload=W)};function h(F,W,U,H,z){var B=U.seriesTaskMap||(U.seriesTaskMap=C()),k=W.seriesType,Z=W.getTargetSeries;W.createOnAllSeries?H.eachRawSeries(X):k?H.eachRawSeriesByType(k,X):Z&&Z(H,z).each(X);function X(Q){var J=Q.uid,tt=B.get(J)||B.set(J,p({plan:y,reset:g,count:I}));tt.context={model:Q,ecModel:H,api:z,useClearVisual:W.isVisual&&!W.isLayout,plan:W.plan,reset:W.reset,scheduler:F},R(F,Q,tt)}var K=F._pipelineMap;B.each(function(Q,J){K.get(J)||(Q.dispose(),B.removeKey(J))})}function f(F,W,U,H,z){var B=U.overallTask=U.overallTask||p({reset:c});B.context={ecModel:H,api:z,overallReset:W.overallReset,scheduler:F};var k=B.agentStubMap=B.agentStubMap||C(),Z=W.seriesType,X=W.getTargetSeries,K=!0,Q=W.modifyOutputEnd;Z?H.eachRawSeriesByType(Z,J):X?X(H,z).each(J):(K=!1,L(H.getSeries(),J));function J(q){var rt=q.uid,$=k.get(rt);$||($=k.set(rt,p({reset:d,onDirty:x})),B.dirty()),$.context={model:q,overallProgress:K,modifyOutputEnd:Q},$.agent=B,$.__block=K,R(F,q,$)}var tt=F._pipelineMap;k.each(function(q,rt){tt.get(rt)||(q.dispose(),B.dirty(),k.removeKey(rt))})}function c(F){F.overallReset(F.ecModel,F.api,F.payload)}function d(F,W){return F.overallProgress&&A}function A(){this.agent.dirty(),this.getDownstream().dirty()}function x(){this.agent&&this.agent.dirty()}function y(F){return F.plan&&F.plan(F.model,F.ecModel,F.api,F.payload)}function g(F){F.useClearVisual&&F.data.clearAllVisual();var W=F.resetDefines=u(F.reset(F.model,F.ecModel,F.api,F.payload));return W.length>1?M(W,function(U,H){return b(H)}):m}var m=b(0);function b(F){return function(W,U){var H=U.data,z=U.resetDefines[F];if(z&&z.dataEach)for(var B=W.start;B<W.end;B++)z.dataEach(H,B);else z&&z.progress&&z.progress(W,H)}}function I(F){return F.data.count()}function R(F,W,U){var H=W.uid,z=F._pipelineMap.get(H);!z.head&&(z.head=U),z.tail&&z.tail.pipe(U),z.tail=U,U.__idxInPipeline=z.count++,U.__pipeline=z}e.wrapStageHandler=function(F,W){return w(F)&&(F={overallReset:F,seriesType:E(F)}),F.uid=t("stageHandler"),W&&(F.visualType=W),F};function E(F){N=null;try{F(P,O)}catch(W){}return N}var P={},O={},N;_(P,s),_(O,i),P.eachSeriesByType=P.eachRawSeriesByType=function(F){N=F},P.eachComponent=function(F){F.mainType==="series"&&F.subType&&(N=F.subType)};function _(F,W){for(var U in W.prototype)F[U]=D}var G=e;Y.exports=G},222:function(Y,V,n){var T=n(69008),L=T.assert,M=T.isArray,w=n(96311),C=w.__DEV__;function D(i){return new S(i)}function S(i){i=i||{},this._reset=i.reset,this._plan=i.plan,this._count=i.count,this._onDirty=i.onDirty,this._dirty=!0,this.context}var p=S.prototype;p.perform=function(i){var a=this._upstream,u=i&&i.skip;if(this._dirty&&a){var e=this.context;e.data=e.outputData=a.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!u&&(o=this._plan(this.context));var r=c(this._modBy),l=this._modDataCount||0,h=c(i&&i.modBy),f=i&&i.modDataCount||0;(r!==h||l!==f)&&(o="reset");function c(I){return!(I>=1)&&(I=1),I}var d;(this._dirty||o==="reset")&&(this._dirty=!1,d=s(this,u)),this._modBy=h,this._modDataCount=f;var A=i&&i.step;if(a?this._dueEnd=a._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var x=this._dueIndex,y=Math.min(A!=null?this._dueIndex+A:1/0,this._dueEnd);if(!u&&(d||x<y)){var g=this._progress;if(M(g))for(var m=0;m<g.length;m++)t(this,g[m],x,y,h,f);else t(this,g,x,y,h,f)}this._dueIndex=y;var b=this._settedOutputEnd!=null?this._settedOutputEnd:y;this._outputDueEnd=b}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var v=function(){var i,a,u,e,o,r={reset:function(f,c,d,A){a=f,i=c,u=d,e=A,o=Math.ceil(e/u),r.next=u>1&&e>0?h:l}};return r;function l(){return a<i?a++:null}function h(){var f=a%o*u+Math.ceil(a/o),c=a>=i?null:f<e?f:a;return a++,c}}();p.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function t(i,a,u,e,o,r){v.reset(u,e,o,r),i._callingProgress=a,i._callingProgress({start:u,end:e,count:e-u,next:v.next},i.context)}function s(i,a){i._dueIndex=i._outputDueEnd=i._dueEnd=0,i._settedOutputEnd=null;var u,e;!a&&i._reset&&(u=i._reset(i.context),u&&u.progress&&(e=u.forceFirstProgress,u=u.progress),M(u)&&!u.length&&(u=null)),i._progress=u,i._modBy=i._modDataCount=null;var o=i._downstream;return o&&o.dirty(),e}p.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},p.pipe=function(i){(this._downstream!==i||this._dirty)&&(this._downstream=i,i._upstream=this,i.dirty())},p.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},p.getUpstream=function(){return this._upstream},p.getDownstream=function(){return this._downstream},p.setOutputEnd=function(i){this._outputDueEnd=this._settedOutputEnd=i},V.createTask=D},62339:function(Y){var V="#eee",n=function(){return{axisLine:{lineStyle:{color:V}},axisTick:{lineStyle:{color:V}},axisLabel:{textStyle:{color:V}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:V}}}},T=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],L={color:T,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:V},crossStyle:{color:V},label:{color:"#000"}}},legend:{textStyle:{color:V}},textStyle:{color:V},title:{textStyle:{color:V}},toolbox:{iconStyle:{normal:{borderColor:V}}},dataZoom:{textStyle:{color:V}},visualMap:{textStyle:{color:V}},timeline:{lineStyle:{color:V},itemStyle:{normal:{color:T[1]}},label:{normal:{textStyle:{color:V}}},controlStyle:{normal:{color:V,borderColor:V}}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:T},gauge:{title:{textStyle:{color:V}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};L.categoryAxis.splitLine.show=!1;var M=L;Y.exports=M},27486:function(Y){var V=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:V,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],V]};Y.exports=n},77550:function(Y,V,n){var T=n(69008);function L(){var M=[],w={},C;return{add:function(D,S,p,v,t){return T.isString(v)&&(t=v,v=0),w[D.id]?!1:(w[D.id]=1,M.push({el:D,target:S,time:p,delay:v,easing:t}),!0)},done:function(D){return C=D,this},start:function(){for(var D=M.length,S=0,p=M.length;S<p;S++){var v=M[S];v.el.animateTo(v.target,v.time,v.delay,v.easing,t)}return this;function t(){D--,D||(M.length=0,w={},C&&C())}}}}V.createWrap=L},77305:function(Y,V,n){var T=n(96311),L=T.__DEV__,M=n(69008),w=".",C="___EC__COMPONENT__CONTAINER___";function D(e){var o={main:"",sub:""};return e&&(e=e.split(w),o.main=e[0]||"",o.sub=e[1]||""),o}function S(e){M.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function p(e,o){e.$constructor=e,e.extend=function(r){var l=this,h=function(){r.$constructor?r.$constructor.apply(this,arguments):l.apply(this,arguments)};return M.extend(h.prototype,r),h.extend=this.extend,h.superCall=s,h.superApply=i,M.inherits(h,this),h.superClass=l,h}}var v=0;function t(e){var o=["__\0is_clz",v++,Math.random().toFixed(3)].join("_");e.prototype[o]=!0,e.isInstance=function(r){return!!(r&&r[o])}}function s(e,o){var r=M.slice(arguments,2);return this.superClass.prototype[o].apply(e,r)}function i(e,o,r){return this.superClass.prototype[o].apply(e,r)}function a(e,o){o=o||{};var r={};e.registerClass=function(f,c){if(c){if(S(c),c=D(c),!c.sub)r[c.main]=f;else if(c.sub!==C){var d=l(c);d[c.sub]=f}}return f},e.getClass=function(f,c,d){var A=r[f];if(A&&A[C]&&(A=c?A[c]:null),d&&!A)throw new Error(c?"Component "+f+"."+(c||"")+" not exists. Load it first.":f+".type should be specified.");return A},e.getClassesByMainType=function(f){f=D(f);var c=[],d=r[f.main];return d&&d[C]?M.each(d,function(A,x){x!==C&&c.push(A)}):c.push(d),c},e.hasClass=function(f){return f=D(f),!!r[f.main]},e.getAllClassMainTypes=function(){var f=[];return M.each(r,function(c,d){f.push(d)}),f},e.hasSubTypes=function(f){f=D(f);var c=r[f.main];return c&&c[C]},e.parseClassType=D;function l(f){var c=r[f.main];return(!c||!c[C])&&(c=r[f.main]={},c[C]=!0),c}if(o.registerWhenExtend){var h=e.extend;h&&(e.extend=function(f){var c=h.call(this,f);return e.registerClass(c,f.type)})}return e}function u(e,o){}V.parseClassType=D,V.enableClassExtend=p,V.enableClassCheck=t,V.enableClassManagement=a,V.setReadOnly=u},58744:function(Y,V,n){var T=n(69008),L=n(77305),M=L.parseClassType,w=0;function C(p){return[p||"",w++,Math.random().toFixed(5)].join("_")}function D(p){var v={};return p.registerSubTypeDefaulter=function(t,s){t=M(t),v[t.main]=s},p.determineSubType=function(t,s){var i=s.type;if(!i){var a=M(t).main;p.hasSubTypes(t)&&v[a]&&(i=v[a](s))}return i},p}function S(p,v){p.topologicalTravel=function(a,u,e,o){if(!a.length)return;var r=t(u),l=r.graph,h=r.noEntryList,f={};for(T.each(a,function(g){f[g]=!0});h.length;){var c=h.pop(),d=l[c],A=!!f[c];A&&(e.call(o,c,d.originalDeps.slice()),delete f[c]),T.each(d.successor,A?y:x)}T.each(f,function(){throw new Error("Circle dependency may exists")});function x(g){l[g].entryCount--,l[g].entryCount===0&&h.push(g)}function y(g){f[g]=!0,x(g)}};function t(a){var u={},e=[];return T.each(a,function(o){var r=s(u,o),l=r.originalDeps=v(o),h=i(l,a);r.entryCount=h.length,r.entryCount===0&&e.push(o),T.each(h,function(f){T.indexOf(r.predecessor,f)<0&&r.predecessor.push(f);var c=s(u,f);T.indexOf(c.successor,f)<0&&c.successor.push(o)})}),{graph:u,noEntryList:e}}function s(a,u){return a[u]||(a[u]={predecessor:[],successor:[]}),a[u]}function i(a,u){var e=[];return T.each(a,function(o){T.indexOf(u,o)>=0&&e.push(o)}),e}}V.getUID=C,V.enableSubTypeDefaulter=D,V.enableTopologicalTravel=S},17010:function(Y,V,n){var T=n(69008),L=n(63603),M=n(86957);function w(d){return isNaN(d)?"-":(d=(d+"").split("."),d[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(d.length>1?"."+d[1]:""))}function C(d,A){return d=(d||"").toLowerCase().replace(/-(.)/g,function(x,y){return y.toUpperCase()}),A&&d&&(d=d.charAt(0).toUpperCase()+d.slice(1)),d}var D=T.normalizeCssArray,S=/([&<>"'])/g,p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function v(d){return d==null?"":(d+"").replace(S,function(A,x){return p[x]})}var t=["a","b","c","d","e","f","g"],s=function(d,A){return"{"+d+(A==null?"":A)+"}"};function i(d,A,x){T.isArray(A)||(A=[A]);var y=A.length;if(!y)return"";for(var g=A[0].$vars||[],m=0;m<g.length;m++){var b=t[m];d=d.replace(s(b),s(b,0))}for(var I=0;I<y;I++)for(var R=0;R<g.length;R++){var E=A[I][g[R]];d=d.replace(s(t[R],I),x?v(E):E)}return d}function a(d,A,x){return T.each(A,function(y,g){d=d.replace("{"+g+"}",x?v(y):y)}),d}function u(d,g){d=T.isString(d)?{color:d,extraCssText:g}:d||{};var x=d.color,y=d.type,g=d.extraCssText,m=d.renderMode||"html",b=d.markerId||"X";return x?m==="html"?y==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+v(x)+";"+(g||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+v(x)+";"+(g||"")+'"></span>':{renderMode:m,content:"{marker"+b+"|} ",style:{color:x}}:""}function e(d,A){return d+="","0000".substr(0,A-d.length)+d}function o(d,A,x){(d==="week"||d==="month"||d==="quarter"||d==="half-year"||d==="year")&&(d=`MM-dd
yyyy`);var y=M.parseDate(A),g=x?"UTC":"",m=y["get"+g+"FullYear"](),b=y["get"+g+"Month"]()+1,I=y["get"+g+"Date"](),R=y["get"+g+"Hours"](),E=y["get"+g+"Minutes"](),P=y["get"+g+"Seconds"](),O=y["get"+g+"Milliseconds"]();return d=d.replace("MM",e(b,2)).replace("M",b).replace("yyyy",m).replace("yy",m%100).replace("dd",e(I,2)).replace("d",I).replace("hh",e(R,2)).replace("h",R).replace("mm",e(E,2)).replace("m",E).replace("ss",e(P,2)).replace("s",P).replace("SSS",e(O,3)),d}function r(d){return d&&d.charAt(0).toUpperCase()+d.substr(1)}var l=L.truncateText;function h(d){return L.getBoundingRect(d.text,d.font,d.textAlign,d.textVerticalAlign,d.textPadding,d.textLineHeight,d.rich,d.truncate)}function f(d,A,x,y,g,m,b,I){return L.getBoundingRect(d,A,x,y,g,I,m,b)}function c(d,A){if(A==="_blank"||A==="blank"){var x=window.open();x.opener=null,x.location=d}else window.open(d,A)}V.addCommas=w,V.toCamelCase=C,V.normalizeCssArray=D,V.encodeHTML=v,V.formatTpl=i,V.formatTplSimple=a,V.getTooltipMarker=u,V.formatTime=o,V.capitalFirst=r,V.truncateText=l,V.getTextBoundingRect=h,V.getTextRect=f,V.windowOpen=c},18993:function(Y,V,n){var T=n(69008),L=n(6226),M=n(83720),w=n(26237),C=n(47764),D=n(60397),S=n(74330),p=n(89444);V.Image=p;var v=n(27796);V.Group=v;var t=n(99999);V.Text=t;var s=n(67679);V.Circle=s;var i=n(63477);V.Sector=i;var a=n(71908);V.Ring=a;var u=n(66751);V.Polygon=u;var e=n(70391);V.Polyline=e;var o=n(74639);V.Rect=o;var r=n(330);V.Line=r;var l=n(53663);V.BezierCurve=l;var h=n(17745);V.Arc=h;var f=n(87500);V.CompoundPath=f;var c=n(57123);V.LinearGradient=c;var d=n(29683);V.RadialGradient=d;var A=n(9806);V.BoundingRect=A;var x=n(61465);V.IncrementalDisplayable=x;var y=n(26020),g=Math.max,m=Math.min,b={},I=1,R={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},E="emphasis",P="normal",O=1,N={},_={};function G(at){return D.extend(at)}function F(at,ct){return L.extendFromString(at,ct)}function W(at,ct){_[at]=ct}function U(at){if(_.hasOwnProperty(at))return _[at]}function H(at,ct,St,Tt){var Dt=L.createFromString(at,ct);return St&&(Tt==="center"&&(St=B(St,Dt.getBoundingRect())),Z(Dt,St)),Dt}function z(at,ct,St){var Tt=new p({style:{image:at,x:ct.x,y:ct.y,width:ct.width,height:ct.height},onload:function(Dt){if(St==="center"){var Nt={width:Dt.width,height:Dt.height};Tt.setStyle(B(ct,Nt))}}});return Tt}function B(at,ct){var St=ct.width/ct.height,Tt=at.height*St,Dt;Tt<=at.width?Dt=at.height:(Tt=at.width,Dt=Tt/St);var Nt=at.x+at.width/2,$t=at.y+at.height/2;return{x:Nt-Tt/2,y:$t-Dt/2,width:Tt,height:Dt}}var k=L.mergePath;function Z(at,ct){if(at.applyTransform){var St=at.getBoundingRect(),Tt=St.calculateTransform(ct);at.applyTransform(Tt)}}function X(at){return y.subPixelOptimizeLine(at.shape,at.shape,at.style),at}function K(at){return y.subPixelOptimizeRect(at.shape,at.shape,at.style),at}var Q=y.subPixelOptimize;function J(at){return at!=null&&at!=="none"}var tt=T.createHashMap(),q=0;function rt(at){if(typeof at!="string")return at;var ct=tt.get(at);return ct||(ct=M.lift(at,-.1),q<1e4&&(tt.set(at,ct),q++)),ct}function $(at){if(at.__hoverStlDirty){at.__hoverStlDirty=!1;var ct=at.__hoverStl;if(!ct){at.__cachedNormalStl=at.__cachedNormalZ2=null;return}var St=at.__cachedNormalStl={};at.__cachedNormalZ2=at.z2;var Tt=at.style;for(var Dt in ct)ct[Dt]!=null&&(St[Dt]=Tt[Dt]);St.fill=Tt.fill,St.stroke=Tt.stroke}}function j(at){var ct=at.__hoverStl;if(!(!ct||at.__highlighted)){var St=at.__zr,Tt=at.useHoverLayer&&St&&St.painter.type==="canvas";if(at.__highlighted=Tt?"layer":"plain",!(at.isGroup||!St&&at.useHoverLayer)){var Dt=at,Nt=at.style;Tt&&(Dt=St.addHover(at),Nt=Dt.style),Ft(Nt),Tt||$(Dt),Nt.extendFrom(ct),st(Nt,ct,"fill"),st(Nt,ct,"stroke"),Gt(Nt),Tt||(at.dirty(!1),at.z2+=I)}}}function st(at,ct,St){!J(ct[St])&&J(at[St])&&(at[St]=rt(at[St]))}function ot(at){var ct=at.__highlighted;if(ct&&(at.__highlighted=!1,!at.isGroup))if(ct==="layer")at.__zr&&at.__zr.removeHover(at);else{var St=at.style,Tt=at.__cachedNormalStl;Tt&&(Ft(St),at.setStyle(Tt),Gt(St));var Dt=at.__cachedNormalZ2;Dt!=null&&at.z2-Dt===I&&(at.z2=Dt)}}function vt(at,ct,St){var Tt=P,Dt=P,Nt;at.__highlighted&&(Tt=E,Nt=!0),ct(at,St),at.__highlighted&&(Dt=E,Nt=!0),at.isGroup&&at.traverse(function($t){!$t.isGroup&&ct($t,St)}),Nt&&at.__highDownOnUpdate&&at.__highDownOnUpdate(Tt,Dt)}function yt(at,ct){ct=at.__hoverStl=ct!==!1&&(at.hoverStyle||ct||{}),at.__hoverStlDirty=!0,at.__highlighted&&(at.__cachedNormalStl=null,ot(at),j(at))}function it(at){!bt(this,at)&&!this.__highByOuter&&vt(this,j)}function ut(at){!bt(this,at)&&!this.__highByOuter&&vt(this,ot)}function gt(at){this.__highByOuter|=1<<(at||0),vt(this,j)}function Ct(at){!(this.__highByOuter&=~(1<<(at||0)))&&vt(this,ot)}function bt(at,ct){return at.__highDownSilentOnTouch&&ct.zrByTouch}function et(at,ct){lt(at,!0),vt(at,yt,ct)}function lt(at,ct){var St=ct===!1;if(at.__highDownSilentOnTouch=at.highDownSilentOnTouch,at.__highDownOnUpdate=at.highDownOnUpdate,!St||at.__highDownDispatcher){var Tt=St?"off":"on";at[Tt]("mouseover",it)[Tt]("mouseout",ut),at[Tt]("emphasis",gt)[Tt]("normal",Ct),at.__highByOuter=at.__highByOuter||0,at.__highDownDispatcher=!St}}function ht(at){return!!(at&&at.__highDownDispatcher)}function pt(at){var ct=N[at];return ct==null&&O<=32&&(ct=N[at]=O++),ct}function mt(at,ct,St,Tt,Dt,Nt,$t){Dt=Dt||b;var Wt=Dt.labelFetcher,Xt=Dt.labelDataIndex,ne=Dt.labelDimIndex,le=Dt.labelProp,pe=St.getShallow("show"),de=Tt.getShallow("show"),ge;(pe||de)&&(Wt&&(ge=Wt.getFormattedLabel(Xt,"normal",null,ne,le)),ge==null&&(ge=T.isFunction(Dt.defaultText)?Dt.defaultText(Xt,Dt):Dt.defaultText));var me=pe?ge:null,ye=de?T.retrieve2(Wt?Wt.getFormattedLabel(Xt,"emphasis",null,ne,le):null,ge):null;(me!=null||ye!=null)&&(xt(at,St,Nt,Dt),xt(ct,Tt,$t,Dt,!0)),at.text=me,ct.text=ye}function ft(at,ct,St){var Tt=at.style;ct&&(Ft(Tt),at.setStyle(ct),Gt(Tt)),Tt=at.__hoverStl,St&&Tt&&(Ft(Tt),T.extend(Tt,St),Gt(Tt))}function xt(at,ct,St,Tt,Dt){return Pt(at,ct,Tt,Dt),St&&T.extend(at,St),at}function Mt(at,ct,St){var Tt={isRectText:!0},Dt;St===!1?Dt=!0:Tt.autoColor=St,Pt(at,ct,Tt,Dt)}function Pt(at,ct,St,Tt){if(St=St||b,St.isRectText){var Dt;St.getTextPosition?Dt=St.getTextPosition(ct,Tt):(Dt=ct.getShallow("position")||(Tt?null:"inside"),Dt==="outside"&&(Dt="top")),at.textPosition=Dt,at.textOffset=ct.getShallow("offset");var Nt=ct.getShallow("rotate");Nt!=null&&(Nt*=Math.PI/180),at.textRotation=Nt,at.textDistance=T.retrieve2(ct.getShallow("distance"),Tt?null:5)}var $t=ct.ecModel,Wt=$t&&$t.option.textStyle,Xt=Rt(ct),ne;if(Xt){ne={};for(var le in Xt)if(Xt.hasOwnProperty(le)){var pe=ct.getModel(["rich",le]);Bt(ne[le]={},pe,Wt,St,Tt)}}return at.rich=ne,Bt(at,ct,Wt,St,Tt,!0),St.forceRich&&!St.textStyle&&(St.textStyle={}),at}function Rt(at){for(var ct;at&&at!==at.ecModel;){var St=(at.option||b).rich;if(St){ct=ct||{};for(var Tt in St)St.hasOwnProperty(Tt)&&(ct[Tt]=1)}at=at.parentModel}return ct}function Bt(at,ct,St,Tt,Dt,Nt){St=!Dt&&St||b,at.textFill=Vt(ct.getShallow("color"),Tt)||St.color,at.textStroke=Vt(ct.getShallow("textBorderColor"),Tt)||St.textBorderColor,at.textStrokeWidth=T.retrieve2(ct.getShallow("textBorderWidth"),St.textBorderWidth),Dt||(Nt&&(at.insideRollbackOpt=Tt,Gt(at)),at.textFill==null&&(at.textFill=Tt.autoColor)),at.fontStyle=ct.getShallow("fontStyle")||St.fontStyle,at.fontWeight=ct.getShallow("fontWeight")||St.fontWeight,at.fontSize=ct.getShallow("fontSize")||St.fontSize,at.fontFamily=ct.getShallow("fontFamily")||St.fontFamily,at.textAlign=ct.getShallow("align"),at.textVerticalAlign=ct.getShallow("verticalAlign")||ct.getShallow("baseline"),at.textLineHeight=ct.getShallow("lineHeight"),at.textWidth=ct.getShallow("width"),at.textHeight=ct.getShallow("height"),at.textTag=ct.getShallow("tag"),(!Nt||!Tt.disableBox)&&(at.textBackgroundColor=Vt(ct.getShallow("backgroundColor"),Tt),at.textPadding=ct.getShallow("padding"),at.textBorderColor=Vt(ct.getShallow("borderColor"),Tt),at.textBorderWidth=ct.getShallow("borderWidth"),at.textBorderRadius=ct.getShallow("borderRadius"),at.textBoxShadowColor=ct.getShallow("shadowColor"),at.textBoxShadowBlur=ct.getShallow("shadowBlur"),at.textBoxShadowOffsetX=ct.getShallow("shadowOffsetX"),at.textBoxShadowOffsetY=ct.getShallow("shadowOffsetY")),at.textShadowColor=ct.getShallow("textShadowColor")||St.textShadowColor,at.textShadowBlur=ct.getShallow("textShadowBlur")||St.textShadowBlur,at.textShadowOffsetX=ct.getShallow("textShadowOffsetX")||St.textShadowOffsetX,at.textShadowOffsetY=ct.getShallow("textShadowOffsetY")||St.textShadowOffsetY}function Vt(at,ct){return at!=="auto"?at:ct&&ct.autoColor?ct.autoColor:null}function Gt(at){var ct=at.textPosition,St=at.insideRollbackOpt,Tt;if(St&&at.textFill==null){var Dt=St.autoColor,Nt=St.isRectText,$t=St.useInsideStyle,Wt=$t!==!1&&($t===!0||Nt&&ct&&typeof ct=="string"&&ct.indexOf("inside")>=0),Xt=!Wt&&Dt!=null;(Wt||Xt)&&(Tt={textFill:at.textFill,textStroke:at.textStroke,textStrokeWidth:at.textStrokeWidth}),Wt&&(at.textFill="#fff",at.textStroke==null&&(at.textStroke=Dt,at.textStrokeWidth==null&&(at.textStrokeWidth=2))),Xt&&(at.textFill=Dt)}at.insideRollback=Tt}function Ft(at){var ct=at.insideRollback;ct&&(at.textFill=ct.textFill,at.textStroke=ct.textStroke,at.textStrokeWidth=ct.textStrokeWidth,at.insideRollback=null)}function Kt(at,ct){var St=ct&&ct.getModel("textStyle");return T.trim([at.fontStyle||St&&St.getShallow("fontStyle")||"",at.fontWeight||St&&St.getShallow("fontWeight")||"",(at.fontSize||St&&St.getShallow("fontSize")||12)+"px",at.fontFamily||St&&St.getShallow("fontFamily")||"sans-serif"].join(" "))}function Qt(at,ct,St,Tt,Dt,Nt){typeof Dt=="function"&&(Nt=Dt,Dt=null);var $t=Tt&&Tt.isAnimationEnabled();if($t){var Wt=at?"Update":"",Xt=Tt.getShallow("animationDuration"+Wt),ne=Tt.getShallow("animationEasing"+Wt),le=Tt.getShallow("animationDelay"+Wt);typeof le=="function"&&(le=le(Dt,Tt.getAnimationDelayParams?Tt.getAnimationDelayParams(ct,Dt):null)),typeof Xt=="function"&&(Xt=Xt(Dt)),Xt>0?ct.animateTo(St,Xt,le||0,ne,Nt,!!Nt):(ct.stopAnimation(),ct.attr(St),Nt&&Nt())}else ct.stopAnimation(),ct.attr(St),Nt&&Nt()}function _t(at,ct,St,Tt,Dt){Qt(!0,at,ct,St,Tt,Dt)}function Yt(at,ct,St,Tt,Dt){Qt(!1,at,ct,St,Tt,Dt)}function Zt(at,ct){for(var St=w.identity([]);at&&at!==ct;)w.mul(St,at.getLocalTransform(),St),at=at.parent;return St}function Jt(at,ct,St){return ct&&!T.isArrayLike(ct)&&(ct=S.getLocalTransform(ct)),St&&(ct=w.invert([],ct)),C.applyTransform([],at,ct)}function jt(at,ct,St){var Tt=ct[4]===0||ct[5]===0||ct[0]===0?1:Math.abs(2*ct[4]/ct[0]),Dt=ct[4]===0||ct[5]===0||ct[2]===0?1:Math.abs(2*ct[4]/ct[2]),Nt=[at==="left"?-Tt:at==="right"?Tt:0,at==="top"?-Dt:at==="bottom"?Dt:0];return Nt=Jt(Nt,ct,St),Math.abs(Nt[0])>Math.abs(Nt[1])?Nt[0]>0?"right":"left":Nt[1]>0?"bottom":"top"}function qt(at,ct,St,Tt){if(!at||!ct)return;function Dt(Wt){var Xt={};return Wt.traverse(function(ne){!ne.isGroup&&ne.anid&&(Xt[ne.anid]=ne)}),Xt}function Nt(Wt){var Xt={position:C.clone(Wt.position),rotation:Wt.rotation};return Wt.shape&&(Xt.shape=T.extend({},Wt.shape)),Xt}var $t=Dt(at);ct.traverse(function(Wt){if(!Wt.isGroup&&Wt.anid){var Xt=$t[Wt.anid];if(Xt){var ne=Nt(Wt);Wt.attr(Nt(Xt)),_t(Wt,ne,St,Wt.dataIndex)}}})}function oe(at,ct){return T.map(at,function(St){var Tt=St[0];Tt=g(Tt,ct.x),Tt=m(Tt,ct.x+ct.width);var Dt=St[1];return Dt=g(Dt,ct.y),Dt=m(Dt,ct.y+ct.height),[Tt,Dt]})}function he(at,ct){var St=g(at.x,ct.x),Tt=m(at.x+at.width,ct.x+ct.width),Dt=g(at.y,ct.y),Nt=m(at.y+at.height,ct.y+ct.height);if(Tt>=St&&Nt>=Dt)return{x:St,y:Dt,width:Tt-St,height:Nt-Dt}}function se(at,ct,St){ct=T.extend({rectHover:!0},ct);var Tt=ct.style={strokeNoScale:!0};if(St=St||{x:-1,y:-1,width:2,height:2},at)return at.indexOf("image://")===0?(Tt.image=at.slice(8),T.defaults(Tt,St),new p(ct)):H(at.replace("path://",""),ct,St,"center")}function ve(at,ct,St,Tt,Dt){for(var Nt=0,$t=Dt[Dt.length-1];Nt<Dt.length;Nt++){var Wt=Dt[Nt];if(ae(at,ct,St,Tt,Wt[0],Wt[1],$t[0],$t[1]))return!0;$t=Wt}}function ae(at,ct,St,Tt,Dt,Nt,$t,Wt){var Xt=St-at,ne=Tt-ct,le=$t-Dt,pe=Wt-Nt,de=te(le,pe,Xt,ne);if(ie(de))return!1;var ge=at-Dt,me=ct-Nt,ye=te(ge,me,Xt,ne)/de;if(ye<0||ye>1)return!1;var Se=te(ge,me,le,pe)/de;return!(Se<0||Se>1)}function te(at,ct,St,Tt){return at*Tt-St*ct}function ie(at){return at<=1e-6&&at>=-1e-6}W("circle",s),W("sector",i),W("ring",a),W("polygon",u),W("polyline",e),W("rect",o),W("line",r),W("bezierCurve",l),W("arc",h),V.Z2_EMPHASIS_LIFT=I,V.CACHED_LABEL_STYLE_PROPERTIES=R,V.extendShape=G,V.extendPath=F,V.registerShape=W,V.getShapeClass=U,V.makePath=H,V.makeImage=z,V.mergePath=k,V.resizePath=Z,V.subPixelOptimizeLine=X,V.subPixelOptimizeRect=K,V.subPixelOptimize=Q,V.setElementHoverStyle=yt,V.setHoverStyle=et,V.setAsHighDownDispatcher=lt,V.isHighDownDispatcher=ht,V.getHighlightDigit=pt,V.setLabelStyle=mt,V.modifyLabelStyle=ft,V.setTextStyle=xt,V.setText=Mt,V.getFont=Kt,V.updateProps=_t,V.initProps=Yt,V.getTransform=Zt,V.applyTransform=Jt,V.transformDirection=jt,V.groupTransition=qt,V.clipPointsByRect=oe,V.clipRectByRect=he,V.createIcon=se,V.linePolygonIntersect=ve,V.lineLineIntersect=ae},7357:function(Y,V,n){var T=n(69008),L=n(9806),M=n(86957),w=M.parsePercent,C=n(17010),D=T.each,S=["left","right","top","bottom","width","height"],p=[["width","left","right"],["height","top","bottom"]];function v(f,c,d,A,x){var y=0,g=0;A==null&&(A=1/0),x==null&&(x=1/0);var m=0;c.eachChild(function(b,I){var R=b.position,E=b.getBoundingRect(),P=c.childAt(I+1),O=P&&P.getBoundingRect(),N,_;if(f==="horizontal"){var G=E.width+(O?-O.x+E.x:0);N=y+G,N>A||b.newline?(y=0,N=G,g+=m+d,m=E.height):m=Math.max(m,E.height)}else{var F=E.height+(O?-O.y+E.y:0);_=g+F,_>x||b.newline?(y+=m+d,g=0,_=F,m=E.width):m=Math.max(m,E.width)}b.newline||(R[0]=y,R[1]=g,f==="horizontal"?y=N+d:g=_+d)})}var t=v,s=T.curry(v,"vertical"),i=T.curry(v,"horizontal");function a(f,c,d){var A=c.width,x=c.height,y=w(f.x,A),g=w(f.y,x),m=w(f.x2,A),b=w(f.y2,x);return(isNaN(y)||isNaN(parseFloat(f.x)))&&(y=0),(isNaN(m)||isNaN(parseFloat(f.x2)))&&(m=A),(isNaN(g)||isNaN(parseFloat(f.y)))&&(g=0),(isNaN(b)||isNaN(parseFloat(f.y2)))&&(b=x),d=C.normalizeCssArray(d||0),{width:Math.max(m-y-d[1]-d[3],0),height:Math.max(b-g-d[0]-d[2],0)}}function u(f,c,d){d=C.normalizeCssArray(d||0);var A=c.width,x=c.height,y=w(f.left,A),g=w(f.top,x),m=w(f.right,A),b=w(f.bottom,x),I=w(f.width,A),R=w(f.height,x),E=d[2]+d[0],P=d[1]+d[3],O=f.aspect;switch(isNaN(I)&&(I=A-m-P-y),isNaN(R)&&(R=x-b-E-g),O!=null&&(isNaN(I)&&isNaN(R)&&(O>A/x?I=A*.8:R=x*.8),isNaN(I)&&(I=O*R),isNaN(R)&&(R=I/O)),isNaN(y)&&(y=A-m-I-P),isNaN(g)&&(g=x-b-R-E),f.left||f.right){case"center":y=A/2-I/2-d[3];break;case"right":y=A-I-P;break}switch(f.top||f.bottom){case"middle":case"center":g=x/2-R/2-d[0];break;case"bottom":g=x-R-E;break}y=y||0,g=g||0,isNaN(I)&&(I=A-P-y-(m||0)),isNaN(R)&&(R=x-E-g-(b||0));var N=new L(y+d[3],g+d[0],I,R);return N.margin=d,N}function e(f,c,d,A,x){var y=!x||!x.hv||x.hv[0],g=!x||!x.hv||x.hv[1],m=x&&x.boundingMode||"all";if(!(!y&&!g)){var b;if(m==="raw")b=f.type==="group"?new L(0,0,+c.width||0,+c.height||0):f.getBoundingRect();else if(b=f.getBoundingRect(),f.needLocalTransform()){var I=f.getLocalTransform();b=b.clone(),b.applyTransform(I)}c=u(T.defaults({width:b.width,height:b.height},c),d,A);var R=f.position,E=y?c.x-b.x:0,P=g?c.y-b.y:0;f.attr("position",m==="raw"?[E,P]:[R[0]+E,R[1]+P])}}function o(f,c){return f[p[c][0]]!=null||f[p[c][1]]!=null&&f[p[c][2]]!=null}function r(f,c,d){!T.isObject(d)&&(d={});var A=d.ignoreSize;!T.isArray(A)&&(A=[A,A]);var x=g(p[0],0),y=g(p[1],1);I(p[0],f,x),I(p[1],f,y);function g(R,E){var P={},O=0,N={},_=0,G=2;if(D(R,function(U){N[U]=f[U]}),D(R,function(U){m(c,U)&&(P[U]=N[U]=c[U]),b(P,U)&&O++,b(N,U)&&_++}),A[E])return b(c,R[1])?N[R[2]]=null:b(c,R[2])&&(N[R[1]]=null),N;if(_===G||!O)return N;if(O>=G)return P;for(var F=0;F<R.length;F++){var W=R[F];if(!m(P,W)&&m(f,W)){P[W]=f[W];break}}return P}function m(R,E){return R.hasOwnProperty(E)}function b(R,E){return R[E]!=null&&R[E]!=="auto"}function I(R,E,P){D(R,function(O){E[O]=P[O]})}}function l(f){return h({},f)}function h(f,c){return c&&f&&D(S,function(d){c.hasOwnProperty(d)&&(f[d]=c[d])}),f}V.LOCATION_PARAMS=S,V.HV_NAMES=p,V.box=t,V.vbox=s,V.hbox=i,V.getAvailableSize=a,V.getLayoutRect=u,V.positionElement=e,V.sizeCalculable=o,V.mergeLayoutParam=r,V.getLayoutParams=l,V.copyLayoutParams=h},90830:function(Y,V,n){var T=n(69008),L=n(12973),M=T.each,w=T.isObject,C=T.isArray,D="series\0";function S(g){return g instanceof Array?g:g==null?[]:[g]}function p(g,m,b){if(g){g[m]=g[m]||{},g.emphasis=g.emphasis||{},g.emphasis[m]=g.emphasis[m]||{};for(var I=0,R=b.length;I<R;I++){var E=b[I];!g.emphasis[m].hasOwnProperty(E)&&g[m].hasOwnProperty(E)&&(g.emphasis[m][E]=g[m][E])}}}var v=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function t(g){return w(g)&&!C(g)&&!(g instanceof Date)?g.value:g}function s(g){return w(g)&&!(g instanceof Array)}function i(g,m){m=(m||[]).slice();var b=T.map(g||[],function(I,R){return{exist:I}});return M(m,function(I,R){if(w(I)){for(var E=0;E<b.length;E++)if(!b[E].option&&I.id!=null&&b[E].exist.id===I.id+""){b[E].option=I,m[R]=null;return}for(var E=0;E<b.length;E++){var P=b[E].exist;if(!b[E].option&&(P.id==null||I.id==null)&&I.name!=null&&!e(I)&&!e(P)&&P.name===I.name+""){b[E].option=I,m[R]=null;return}}}}),M(m,function(I,R){if(w(I)){for(var E=0;E<b.length;E++){var P=b[E].exist;if(!b[E].option&&!e(P)&&I.id==null){b[E].option=I;break}}E>=b.length&&b.push({option:I})}}),b}function a(g){var m=T.createHashMap();M(g,function(b,I){var R=b.exist;R&&m.set(R.id,b)}),M(g,function(b,I){var R=b.option;T.assert(!R||R.id==null||!m.get(R.id)||m.get(R.id)===b,"id duplicates: "+(R&&R.id)),R&&R.id!=null&&m.set(R.id,b),!b.keyInfo&&(b.keyInfo={})}),M(g,function(b,I){var R=b.exist,E=b.option,P=b.keyInfo;if(w(E)){if(P.name=E.name!=null?E.name+"":R?R.name:D+I,R)P.id=R.id;else if(E.id!=null)P.id=E.id+"";else{var O=0;do P.id="\0"+P.name+"\0"+O++;while(m.get(P.id))}m.set(P.id,b)}})}function u(g){var m=g.name;return!!(m&&m.indexOf(D))}function e(g){return w(g)&&g.id&&(g.id+"").indexOf("\0_ec_\0")===0}function o(g,m){var b={},I={};return R(g||[],b),R(m||[],I,b),[E(b),E(I)];function R(P,O,N){for(var _=0,G=P.length;_<G;_++)for(var F=P[_].seriesId,W=S(P[_].dataIndex),U=N&&N[F],H=0,z=W.length;H<z;H++){var B=W[H];U&&U[B]?U[B]=null:(O[F]||(O[F]={}))[B]=1}}function E(P,O){var N=[];for(var _ in P)if(P.hasOwnProperty(_)&&P[_]!=null)if(O)N.push(+_);else{var G=E(P[_],!0);G.length&&N.push({seriesId:_,dataIndex:G})}return N}}function r(g,m){if(m.dataIndexInside!=null)return m.dataIndexInside;if(m.dataIndex!=null)return T.isArray(m.dataIndex)?T.map(m.dataIndex,function(b){return g.indexOfRawIndex(b)}):g.indexOfRawIndex(m.dataIndex);if(m.name!=null)return T.isArray(m.name)?T.map(m.name,function(b){return g.indexOfName(b)}):g.indexOfName(m.name)}function l(){var g="__\0ec_inner_"+h+++"_"+Math.random().toFixed(5);return function(m){return m[g]||(m[g]={})}}var h=0;function f(g,m,b){if(T.isString(m)){var I={};I[m+"Index"]=0,m=I}var R=b&&b.defaultMainType;R&&!c(m,R+"Index")&&!c(m,R+"Id")&&!c(m,R+"Name")&&(m[R+"Index"]=0);var E={};return M(m,function(N,O){var N=m[O];if(O==="dataIndex"||O==="dataIndexInside"){E[O]=N;return}var _=O.match(/^(\w+)(Index|Id|Name)$/)||[],G=_[1],F=(_[2]||"").toLowerCase();if(!(!G||!F||N==null||F==="index"&&N==="none"||b&&b.includeMainTypes&&T.indexOf(b.includeMainTypes,G)<0)){var W={mainType:G};(F!=="index"||N!=="all")&&(W[F]=N);var U=g.queryComponents(W);E[G+"Models"]=U,E[G+"Model"]=U[0]}}),E}function c(g,m){return g&&g.hasOwnProperty(m)}function d(g,m,b){g.setAttribute?g.setAttribute(m,b):g[m]=b}function A(g,m){return g.getAttribute?g.getAttribute(m):g[m]}function x(g){return g==="auto"?L.domSupported?"html":"richText":g||"html"}function y(g,m){var b=T.createHashMap(),I=[];return T.each(g,function(R){var E=m(R);(b.get(E)||(I.push(E),b.set(E,[]))).push(R)}),{keys:I,buckets:b}}V.normalizeToArray=S,V.defaultEmphasis=p,V.TEXT_STYLE_OPTIONS=v,V.getDataItemValue=t,V.isDataItemOption=s,V.mappingToExists=i,V.makeIdAndName=a,V.isNameSpecified=u,V.isIdInner=e,V.compressBatches=o,V.queryDataIndex=r,V.makeInner=l,V.parseFinder=f,V.setAttribute=d,V.getAttribute=A,V.getTooltipRenderMode=x,V.groupData=y},86957:function(Y,V,n){var T=n(69008),L=1e-4;function M(A){return A.replace(/^\s+|\s+$/g,"")}function w(A,x,y,g){var m=x[1]-x[0],b=y[1]-y[0];if(m===0)return b===0?y[0]:(y[0]+y[1])/2;if(g)if(m>0){if(A<=x[0])return y[0];if(A>=x[1])return y[1]}else{if(A>=x[0])return y[0];if(A<=x[1])return y[1]}else{if(A===x[0])return y[0];if(A===x[1])return y[1]}return(A-x[0])/m*b+y[0]}function C(A,x){switch(A){case"center":case"middle":A="50%";break;case"left":case"top":A="0%";break;case"right":case"bottom":A="100%";break}return typeof A=="string"?M(A).match(/%$/)?parseFloat(A)/100*x:parseFloat(A):A==null?NaN:+A}function D(A,x,y){return x==null&&(x=10),x=Math.min(Math.max(0,x),20),A=(+A).toFixed(x),y?A:+A}function S(A){return A.sort(function(x,y){return x-y}),A}function p(A){if(A=+A,isNaN(A))return 0;for(var x=1,y=0;Math.round(A*x)/x!==A;)x*=10,y++;return y}function v(A){var x=A.toString(),y=x.indexOf("e");if(y>0){var g=+x.slice(y+1);return g<0?-g:0}else{var m=x.indexOf(".");return m<0?0:x.length-1-m}}function t(A,x){var y=Math.log,g=Math.LN10,m=Math.floor(y(A[1]-A[0])/g),b=Math.round(y(Math.abs(x[1]-x[0]))/g),I=Math.min(Math.max(-m+b,0),20);return isFinite(I)?I:20}function s(A,x,y){if(!A[x])return 0;var g=T.reduce(A,function(F,W){return F+(isNaN(W)?0:W)},0);if(g===0)return 0;for(var m=Math.pow(10,y),b=T.map(A,function(F){return(isNaN(F)?0:F)/g*m*100}),I=m*100,R=T.map(b,function(F){return Math.floor(F)}),E=T.reduce(R,function(F,W){return F+W},0),P=T.map(b,function(F,W){return F-R[W]});E<I;){for(var O=Number.NEGATIVE_INFINITY,N=null,_=0,G=P.length;_<G;++_)P[_]>O&&(O=P[_],N=_);++R[N],P[N]=0,++E}return R[x]/m}var i=9007199254740991;function a(A){var x=Math.PI*2;return(A%x+x)%x}function u(A){return A>-L&&A<L}var e=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(A){if(A instanceof Date)return A;if(typeof A=="string"){var x=e.exec(A);if(!x)return new Date(NaN);if(x[8]){var y=+x[4]||0;return x[8].toUpperCase()!=="Z"&&(y-=x[8].slice(0,3)),new Date(Date.UTC(+x[1],+(x[2]||1)-1,+x[3]||1,y,+(x[5]||0),+x[6]||0,+x[7]||0))}else return new Date(+x[1],+(x[2]||1)-1,+x[3]||1,+x[4]||0,+(x[5]||0),+x[6]||0,+x[7]||0)}else if(A==null)return new Date(NaN);return new Date(Math.round(A))}function r(A){return Math.pow(10,l(A))}function l(A){if(A===0)return 0;var x=Math.floor(Math.log(A)/Math.LN10);return A/Math.pow(10,x)>=10&&x++,x}function h(A,x){var y=l(A),g=Math.pow(10,y),m=A/g,b;return x?m<1.5?b=1:m<2.5?b=2:m<4?b=3:m<7?b=5:b=10:m<1?b=1:m<2?b=2:m<3?b=3:m<5?b=5:b=10,A=b*g,y>=-20?+A.toFixed(y<0?-y:0):A}function f(A,x){var y=(A.length-1)*x+1,g=Math.floor(y),m=+A[g-1],b=y-g;return b?m+b*(A[g]-m):m}function c(A){A.sort(function(E,P){return R(E,P,0)?-1:1});for(var x=-1/0,y=1,g=0;g<A.length;){for(var m=A[g].interval,b=A[g].close,I=0;I<2;I++)m[I]<=x&&(m[I]=x,b[I]=I?1:1-y),x=m[I],y=b[I];m[0]===m[1]&&b[0]*b[1]!==1?A.splice(g,1):g++}return A;function R(E,P,O){return E.interval[O]<P.interval[O]||E.interval[O]===P.interval[O]&&(E.close[O]-P.close[O]===(O?-1:1)||!O&&R(E,P,1))}}function d(A){return A-parseFloat(A)>=0}V.linearMap=w,V.parsePercent=C,V.round=D,V.asc=S,V.getPrecision=p,V.getPrecisionSafe=v,V.getPixelPrecision=t,V.getPercentWithPrecision=s,V.MAX_SAFE_INTEGER=i,V.remRadian=a,V.isRadianAroundZero=u,V.parseDate=o,V.quantity=r,V.quantityExponent=l,V.nice=h,V.quantile=f,V.reformIntervals=c,V.isNumeric=d},79330:function(Y,V,n){var T=n(18993),L=T.extendShape,M=L({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(w,C){var D=C.cx,S=C.cy,p=Math.max(C.r0||0,0),v=Math.max(C.r,0),t=(v-p)*.5,s=p+t,i=C.startAngle,a=C.endAngle,u=C.clockwise,e=Math.cos(i),o=Math.sin(i),r=Math.cos(a),l=Math.sin(a),h=u?a-i<Math.PI*2:i-a<Math.PI*2;h&&(w.moveTo(e*p+D,o*p+S),w.arc(e*s+D,o*s+S,t,-Math.PI+i,i,!u)),w.arc(D,S,v,i,a,!u),w.moveTo(r*v+D,l*v+S),w.arc(r*s+D,l*s+S,t,a-Math.PI*2,a-Math.PI,!u),p!==0&&(w.arc(D,S,p,a,i,u),w.moveTo(e*p+D,l*p+S)),w.closePath()}});Y.exports=M},22868:function(Y,V,n){var T=n(69008),L=n(18993),M=n(9806),w=n(63603),C=w.calculateTextPosition,D=L.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(o,r){var l=r.cx,h=r.cy,f=r.width/2,c=r.height/2;o.moveTo(l,h-c),o.lineTo(l+f,h+c),o.lineTo(l-f,h+c),o.closePath()}}),S=L.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(o,r){var l=r.cx,h=r.cy,f=r.width/2,c=r.height/2;o.moveTo(l,h-c),o.lineTo(l+f,h),o.lineTo(l,h+c),o.lineTo(l-f,h),o.closePath()}}),p=L.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(o,r){var l=r.x,h=r.y,f=r.width/5*3,c=Math.max(f,r.height),d=f/2,A=d*d/(c-d),x=h-c+d+A,y=Math.asin(A/d),g=Math.cos(y)*d,m=Math.sin(y),b=Math.cos(y),I=d*.6,R=d*.7;o.moveTo(l-g,x+A),o.arc(l,x,d,Math.PI-y,Math.PI*2+y),o.bezierCurveTo(l+g-m*I,x+A+b*I,l,h-R,l,h),o.bezierCurveTo(l,h-R,l-g+m*I,x+A+b*I,l-g,x+A),o.closePath()}}),v=L.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(o,r){var l=r.height,h=r.width,f=r.x,c=r.y,d=h/3*2;o.moveTo(f,c),o.lineTo(f+d,c+l),o.lineTo(f,c+l/4*3),o.lineTo(f-d,c+l),o.lineTo(f,c),o.closePath()}}),t={line:L.Line,rect:L.Rect,roundRect:L.Rect,square:L.Rect,circle:L.Circle,diamond:S,pin:p,arrow:v,triangle:D},s={line:function(o,r,l,h,f){f.x1=o,f.y1=r+h/2,f.x2=o+l,f.y2=r+h/2},rect:function(o,r,l,h,f){f.x=o,f.y=r,f.width=l,f.height=h},roundRect:function(o,r,l,h,f){f.x=o,f.y=r,f.width=l,f.height=h,f.r=Math.min(l,h)/4},square:function(o,r,l,h,f){var c=Math.min(l,h);f.x=o,f.y=r,f.width=c,f.height=c},circle:function(o,r,l,h,f){f.cx=o+l/2,f.cy=r+h/2,f.r=Math.min(l,h)/2},diamond:function(o,r,l,h,f){f.cx=o+l/2,f.cy=r+h/2,f.width=l,f.height=h},pin:function(o,r,l,h,f){f.x=o+l/2,f.y=r+h/2,f.width=l,f.height=h},arrow:function(o,r,l,h,f){f.x=o+l/2,f.y=r+h/2,f.width=l,f.height=h},triangle:function(o,r,l,h,f){f.cx=o+l/2,f.cy=r+h/2,f.width=l,f.height=h}},i={};T.each(t,function(o,r){i[r]=new o});var a=L.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(o,r,l){var h=C(o,r,l),f=this.shape;return f&&f.symbolType==="pin"&&r.textPosition==="inside"&&(h.y=l.y+l.height*.4),h},buildPath:function(o,r,l){var h=r.symbolType;if(h!=="none"){var f=i[h];f||(h="rect",f=i[h]),s[h](r.x,r.y,r.width,r.height,f.shape),f.buildPath(o,f.shape,l)}}});function u(o,r){if(this.type!=="image"){var l=this.style,h=this.shape;h&&h.symbolType==="line"?l.stroke=o:this.__isEmptyBrush?(l.stroke=o,l.fill=r||"#fff"):(l.fill&&(l.fill=o),l.stroke&&(l.stroke=o)),this.dirty(!1)}}function e(o,r,l,h,f,c,d){var A=o.indexOf("empty")===0;A&&(o=o.substr(5,1).toLowerCase()+o.substr(6));var x;return o.indexOf("image://")===0?x=L.makeImage(o.slice(8),new M(r,l,h,f),d?"center":"cover"):o.indexOf("path://")===0?x=L.makePath(o.slice(7),{},new M(r,l,h,f),d?"center":"cover"):x=new a({shape:{symbolType:o,x:r,y:l,width:h,height:f}}),x.__isEmptyBrush=A,x.setColor=u,x.setColor(c),x}V.createSymbol=e},83209:function(Y,V){var n="\0__throttleOriginMethod",T="\0__throttleRate",L="\0__throttleType";function M(D,S,p){var v,t=0,s=0,i=null,a,u,e,o;S=S||0;function r(){s=new Date().getTime(),i=null,D.apply(u,e||[])}var l=function(){v=new Date().getTime(),u=this,e=arguments;var h=o||S,f=o||p;o=null,a=v-(f?t:s)-h,clearTimeout(i),f?i=setTimeout(r,h):a>=0?r():i=setTimeout(r,-a),t=v};return l.clear=function(){i&&(clearTimeout(i),i=null)},l.debounceNextCall=function(h){o=h},l}function w(D,S,p,v){var t=D[S];if(t){var s=t[n]||t,i=t[L],a=t[T];if(a!==p||i!==v){if(p==null||!v)return D[S]=s;t=D[S]=M(s,p,v==="debounce"),t[n]=s,t[L]=v,t[T]=p}return t}}function C(D,S){var p=D[S];p&&p[n]&&(D[S]=p[n])}V.throttle=M,V.createOrUpdate=w,V.clear=C},68880:function(Y,V,n){var T=n(69008),L=T.each,M=n(27796),w=n(58744),C=n(77305),D=n(90830),S=n(18993),p=n(222),v=p.createTask,t=n(13861),s=D.makeInner(),i=t();function a(){this.group=new M,this.uid=w.getUID("viewChart"),this.renderTask=v({plan:r,reset:l}),this.renderTask.context={view:this}}a.prototype={type:"chart",init:function(c,d){},render:function(c,d,A,x){},highlight:function(c,d,A,x){o(c.getData(),x,"emphasis")},downplay:function(c,d,A,x){o(c.getData(),x,"normal")},remove:function(c,d){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var u=a.prototype;u.updateView=u.updateLayout=u.updateVisual=function(c,d,A,x){this.render(c,d,A,x)};function e(c,d,A){if(c&&(c.trigger(d,A),c.isGroup&&!S.isHighDownDispatcher(c)))for(var x=0,y=c.childCount();x<y;x++)e(c.childAt(x),d,A)}function o(c,d,A){var x=D.queryDataIndex(c,d),y=d&&d.highlightKey!=null?S.getHighlightDigit(d.highlightKey):null;x!=null?L(D.normalizeToArray(x),function(g){e(c.getItemGraphicEl(g),A,y)}):c.eachItemGraphicEl(function(g){e(g,A,y)})}C.enableClassExtend(a,["dispose"]),C.enableClassManagement(a,{registerWhenExtend:!0}),a.markUpdateMethod=function(c,d){s(c).updateMethod=d};function r(c){return i(c.model)}function l(c){var d=c.model,A=c.ecModel,x=c.api,y=c.payload,g=d.pipelineContext.progressiveRender,m=c.view,b=y&&s(y).updateMethod,I=g?"incrementalPrepareRender":b&&m[b]?b:"render";return I!=="render"&&m[I](d,A,x,y),h[I]}var h={incrementalPrepareRender:{progress:function(c,d){d.view.incrementalRender(c,d.model,d.ecModel,d.api,d.payload)}},render:{forceFirstProgress:!0,progress:function(c,d){d.view.render(d.model,d.ecModel,d.api,d.payload)}}},f=a;Y.exports=f},36851:function(Y,V,n){var T=n(27796),L=n(58744),M=n(77305),w=function(){this.group=new T,this.uid=L.getUID("viewComponent")};w.prototype={constructor:w,init:function(S,p){},render:function(S,p,v,t){},dispose:function(){},filterForExposedEvent:null};var C=w.prototype;C.updateView=C.updateLayout=C.updateVisual=function(S,p,v,t){},M.enableClassExtend(w),M.enableClassManagement(w,{registerWhenExtend:!0});var D=w;Y.exports=D},50329:function(Y){function V(T,L){this.getAllNames=function(){var M=L();return M.mapArray(M.getName)},this.containName=function(M){var w=L();return w.indexOfName(M)>=0},this.indexOfName=function(M){var w=T();return w.indexOfName(M)},this.getItemVisual=function(M,w){var C=T();return C.getItemVisual(M,w)}}var n=V;Y.exports=n},5660:function(Y,V,n){var T=n(69008),L=n(83720),M=n(86957),w=M.linearMap,C=T.each,D=T.isObject,S=-1,p=function(x){var y=x.mappingMethod,g=x.type,m=this.option=T.clone(x);this.type=g,this.mappingMethod=y,this._normalizeData=c[y];var b=v[g];this.applyVisual=b.applyVisual,this.getColorMapper=b.getColorMapper,this._doMap=b._doMap[y],y==="piecewise"?(i(m),t(m)):y==="category"?m.categories?s(m):i(m,!0):(T.assert(y!=="linear"||m.dataExtent),i(m))};p.prototype={constructor:p,mapValueToVisual:function(x){var y=this._normalizeData(x);return this._doMap(y,x)},getNormalizer:function(){return T.bind(this._normalizeData,this)}};var v=p.visualHandlers={color:{applyVisual:e("color"),getColorMapper:function(){var x=this.option;return T.bind(x.mappingMethod==="category"?function(y,g){return!g&&(y=this._normalizeData(y)),o.call(this,y)}:function(y,g,m){var b=!!m;return!g&&(y=this._normalizeData(y)),m=L.fastLerp(y,x.parsedVisual,m),b?m:L.stringify(m,"rgba")},this)},_doMap:{linear:function(x){return L.stringify(L.fastLerp(x,this.option.parsedVisual),"rgba")},category:o,piecewise:function(x,y){var g=h.call(this,y);return g==null&&(g=L.stringify(L.fastLerp(x,this.option.parsedVisual),"rgba")),g},fixed:r}},colorHue:a(function(x,y){return L.modifyHSL(x,y)}),colorSaturation:a(function(x,y){return L.modifyHSL(x,null,y)}),colorLightness:a(function(x,y){return L.modifyHSL(x,null,null,y)}),colorAlpha:a(function(x,y){return L.modifyAlpha(x,y)}),opacity:{applyVisual:e("opacity"),_doMap:l([0,1])},liftZ:{applyVisual:e("liftZ"),_doMap:{linear:r,category:r,piecewise:r,fixed:r}},symbol:{applyVisual:function(x,y,g){var m=this.mapValueToVisual(x);if(T.isString(m))g("symbol",m);else if(D(m))for(var b in m)m.hasOwnProperty(b)&&g(b,m[b])},_doMap:{linear:u,category:o,piecewise:function(x,y){var g=h.call(this,y);return g==null&&(g=u.call(this,x)),g},fixed:r}},symbolSize:{applyVisual:e("symbolSize"),_doMap:l([0,1])}};function t(x){var y=x.pieceList;x.hasSpecialVisual=!1,T.each(y,function(g,m){g.originIndex=m,g.visual!=null&&(x.hasSpecialVisual=!0)})}function s(x){var y=x.categories,g=x.visual,m=x.categoryMap={};if(C(y,function(R,E){m[R]=E}),!T.isArray(g)){var b=[];T.isObject(g)?C(g,function(R,E){var P=m[E];b[P!=null?P:S]=R}):b[S]=g,g=f(x,b)}for(var I=y.length-1;I>=0;I--)g[I]==null&&(delete m[y[I]],y.pop())}function i(x,y){var g=x.visual,m=[];T.isObject(g)?C(g,function(I){m.push(I)}):g!=null&&m.push(g);var b={color:1,symbol:1};!y&&m.length===1&&!b.hasOwnProperty(x.type)&&(m[1]=m[0]),f(x,m)}function a(x){return{applyVisual:function(y,g,m){y=this.mapValueToVisual(y),m("color",x(g("color"),y))},_doMap:l([0,1])}}function u(x){var y=this.option.visual;return y[Math.round(w(x,[0,1],[0,y.length-1],!0))]||{}}function e(x){return function(y,g,m){m(x,this.mapValueToVisual(y))}}function o(x){var y=this.option.visual;return y[this.option.loop&&x!==S?x%y.length:x]}function r(){return this.option.visual[0]}function l(x){return{linear:function(y){return w(y,x,this.option.visual,!0)},category:o,piecewise:function(y,g){var m=h.call(this,g);return m==null&&(m=w(y,x,this.option.visual,!0)),m},fixed:r}}function h(x){var y=this.option,g=y.pieceList;if(y.hasSpecialVisual){var m=p.findPieceIndex(x,g),b=g[m];if(b&&b.visual)return b.visual[this.type]}}function f(x,y){return x.visual=y,x.type==="color"&&(x.parsedVisual=T.map(y,function(g){return L.parse(g)})),y}var c={linear:function(x){return w(x,this.option.dataExtent,[0,1],!0)},piecewise:function(x){var y=this.option.pieceList,g=p.findPieceIndex(x,y,!0);if(g!=null)return w(g,[0,y.length-1],[0,1],!0)},category:function(x){var y=this.option.categories?this.option.categoryMap[x]:x;return y==null?S:y},fixed:T.noop};p.listVisualTypes=function(){var x=[];return T.each(v,function(y,g){x.push(g)}),x},p.addVisualHandler=function(x,y){v[x]=y},p.isValidType=function(x){return v.hasOwnProperty(x)},p.eachVisual=function(x,y,g){T.isObject(x)?T.each(x,y,g):y.call(g,x)},p.mapVisual=function(x,y,g){var m,b=T.isArray(x)?[]:T.isObject(x)?{}:(m=!0,null);return p.eachVisual(x,function(I,R){var E=y.call(g,I,R);m?b=E:b[R]=E}),b},p.retrieveVisuals=function(x){var y={},g;return x&&C(v,function(m,b){x.hasOwnProperty(b)&&(y[b]=x[b],g=!0)}),g?y:null},p.prepareVisualTypes=function(x){if(D(x)){var y=[];C(x,function(g,m){y.push(m)}),x=y}else if(T.isArray(x))x=x.slice();else return[];return x.sort(function(g,m){return m==="color"&&g!=="color"&&g.indexOf("color")===0?1:-1}),x},p.dependsOn=function(x,y){return y==="color"?!!(x&&x.indexOf(y)===0):x===y},p.findPieceIndex=function(x,y,g){for(var m,b=1/0,I=0,R=y.length;I<R;I++){var E=y[I].value;if(E!=null){if(E===x||typeof E=="string"&&E===x+"")return I;g&&_(E,I)}}for(var I=0,R=y.length;I<R;I++){var P=y[I],O=P.interval,N=P.close;if(O){if(O[0]===-1/0){if(d(N[1],x,O[1]))return I}else if(O[1]===1/0){if(d(N[0],O[0],x))return I}else if(d(N[0],O[0],x)&&d(N[1],x,O[1]))return I;g&&_(O[0],I),g&&_(O[1],I)}}if(g)return x===1/0?y.length-1:x===-1/0?0:m;function _(G,F){var W=Math.abs(G-x);W<b&&(b=W,m=F)}};function d(x,y,g){return x?y<=g:y<g}var A=p;Y.exports=A},71486:function(Y,V,n){var T=n(69008),L=n(73315),M=n(17751),w=M.retrieveRawValue;function C(D,S){var p=S.getModel("aria");if(p.get("show")){if(p.get("description")){D.setAttribute("aria-label",p.get("description"));return}}else return;var v=0;S.eachSeries(function(c,d){++v},this);var t=p.get("data.maxCount")||10,s=p.get("series.maxCount")||10,i=Math.min(v,s),a;if(v<1)return;var u=h();u?a=r(l("general.withTitle"),{title:u}):a=l("general.withoutTitle");var e=[],o=v>1?"series.multiple.prefix":"series.single.prefix";a+=r(l(o),{seriesCount:v}),S.eachSeries(function(c,d){if(d<i){var A,x=c.get("name"),y="series."+(v>1?"multiple":"single")+".";A=l(x?y+"withName":y+"withoutName"),A=r(A,{seriesId:c.seriesIndex,seriesName:c.get("name"),seriesType:f(c.subType)});var g=c.getData();window.data=g,g.count()>t?A+=r(l("data.partialData"),{displayCnt:t}):A+=l("data.allData");for(var m=[],b=0;b<g.count();b++)if(b<t){var I=g.getName(b),R=w(g,b);m.push(r(l(I?"data.withName":"data.withoutName"),{name:I,value:R}))}A+=m.join(l("data.separator.middle"))+l("data.separator.end"),e.push(A)}}),a+=e.join(l("series.multiple.separator.middle"))+l("series.multiple.separator.end"),D.setAttribute("aria-label",a);function r(c,d){if(typeof c!="string")return c;var A=c;return T.each(d,function(x,y){A=A.replace(new RegExp("\\{\\s*"+y+"\\s*\\}","g"),x)}),A}function l(c){var d=p.get(c);if(d==null){for(var A=c.split("."),x=L.aria,y=0;y<A.length;++y)x=x[A[y]];return x}else return d}function h(){var c=S.getModel("title").option;return c&&c.length&&(c=c[0]),c&&c.text}function f(c){return L.series.typeNames[c]||"\u81EA\u5B9A\u4E49\u56FE"}}Y.exports=C},22333:function(Y,V,n){var T=n(69008),L=T.createHashMap;function M(w){return{getTargetSeries:function(C){var D={},S=L();return C.eachSeriesByType(w,function(p){p.__paletteScope=D,S.set(p.uid,p)}),S},reset:function(C,D){var S=C.getRawData(),p={},v=C.getData();v.each(function(t){var s=v.getRawIndex(t);p[s]=t}),S.each(function(t){var s=p[t],i=s!=null&&v.getItemVisual(s,"color",!0),a=s!=null&&v.getItemVisual(s,"borderColor",!0),u;if((!i||!a)&&(u=S.getItemModel(t)),!i){var e=u.get("itemStyle.color")||C.getColorFromPalette(S.getName(t)||t+"",C.__paletteScope,S.count());s!=null&&v.setItemVisual(s,"color",e)}if(!a){var o=u.get("itemStyle.borderColor");s!=null&&v.setItemVisual(s,"borderColor",o)}})}}}Y.exports=M},27547:function(Y,V,n){var T=n(9193),L=n(69008),M=L.isFunction,w={createOnAllSeries:!0,performRawSeries:!0,reset:function(C,D){var S=C.getData(),p=(C.visualColorAccessPath||"itemStyle.color").split("."),v=C.get(p),t=M(v)&&!(v instanceof T)?v:null;(!v||t)&&(v=C.getColorFromPalette(C.name,null,D.getSeriesCount())),S.setVisual("color",v);var s=(C.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),i=C.get(s);if(S.setVisual("borderColor",i),!D.isSeriesFiltered(C)){t&&S.each(function(u){S.setItemVisual(u,"color",t(C.getDataParams(u)))});var a=function(u,e){var o=u.getItemModel(e),r=o.get(p,!0),l=o.get(s,!0);r!=null&&u.setItemVisual(e,"color",r),l!=null&&u.setItemVisual(e,"borderColor",l)};return{dataEach:S.hasItemOption?a:null}}}};Y.exports=w},11404:function(Y,V,n){var T=n(69008),L=T.isFunction;function M(w,C,D){return{seriesType:w,performRawSeries:!0,reset:function(S,p,v){var t=S.getData(),s=S.get("symbol"),i=S.get("symbolSize"),a=S.get("symbolKeepAspect"),u=S.get("symbolRotate"),e=L(s),o=L(i),r=L(u),l=e||o||r,h=!e&&s?s:C,f=o?null:i,c=r?null:c;if(t.setVisual({legendSymbol:D||h,symbol:h,symbolSize:f,symbolKeepAspect:a,symbolRotate:u}),p.isSeriesFiltered(S))return;function d(A,x){if(l){var y=S.getRawValue(x),g=S.getDataParams(x);e&&A.setItemVisual(x,"symbol",s(y,g)),o&&A.setItemVisual(x,"symbolSize",i(y,g)),r&&A.setItemVisual(x,"symbolRotate",u(y,g))}if(A.hasItemOption){var m=A.getItemModel(x),b=m.getShallow("symbol",!0),I=m.getShallow("symbolSize",!0),R=m.getShallow("symbolRotate",!0),E=m.getShallow("symbolKeepAspect",!0);b!=null&&A.setItemVisual(x,"symbol",b),I!=null&&A.setItemVisual(x,"symbolSize",I),R!=null&&A.setItemVisual(x,"symbolRotate",R),E!=null&&A.setItemVisual(x,"symbolKeepAspect",E)}}return{dataEach:t.hasItemOption||l?d:null}}}}Y.exports=M},45645:function(Y,V,n){var T=n(69008),L={get:function(C,D,S){var p=T.clone((M[C]||{})[D]);return S&&T.isArray(p)?p[p.length-1]:p}},M={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]}},w=L;Y.exports=w},75986:function(Y,V,n){var T=n(69008),L=n(5660),M=T.each;function w(v){if(v){for(var t in v)if(v.hasOwnProperty(t))return!0}}function C(v,t,s){var i={};return M(t,function(u){var e=i[u]=a();M(v[u],function(o,r){if(L.isValidType(r)){var l={type:r,visual:o};s&&s(l,u),e[r]=new L(l),r==="opacity"&&(l=T.clone(l),l.type="colorAlpha",e.__hidden.__alphaForOpacity=new L(l))}})}),i;function a(){var u=function(){};u.prototype.__hidden=u.prototype;var e=new u;return e}}function D(v,t,s){var i;T.each(s,function(a){t.hasOwnProperty(a)&&w(t[a])&&(i=!0)}),i&&T.each(s,function(a){t.hasOwnProperty(a)&&w(t[a])?v[a]=T.clone(t[a]):delete v[a]})}function S(v,t,s,i,a,u){var e={};T.each(v,function(f){var c=L.prepareVisualTypes(t[f]);e[f]=c});var o;function r(f){return s.getItemVisual(o,f)}function l(f,c){s.setItemVisual(o,f,c)}u==null?s.each(h):s.each([u],h);function h(f,c){o=u==null?f:c;var d=s.getRawDataItem(o);if(!(d&&d.visualMap===!1))for(var A=i.call(a,f),x=t[A],y=e[A],g=0,m=y.length;g<m;g++){var b=y[g];x[b]&&x[b].applyVisual(f,r,l)}}}function p(v,t,s,i){var a={};T.each(v,function(e){var o=L.prepareVisualTypes(t[e]);a[e]=o});function u(e,o){i!=null&&(i=o.getDimension(i));function r(b){return o.getItemVisual(h,b)}function l(b,I){o.setItemVisual(h,b,I)}for(var h;(h=e.next())!=null;){var f=o.getRawDataItem(h);if(!(f&&f.visualMap===!1))for(var c=i!=null?o.get(i,h,!0):h,d=s(c),A=t[d],x=a[d],y=0,g=x.length;y<g;y++){var m=x[y];A[m]&&A[m].applyVisual(c,r,l)}}}return{progress:u}}V.createVisualMappings=C,V.replaceVisualOption=D,V.applyVisual=S,V.incrementalApplyVisual=p},35165:function(Y,V,n){var T=n(92385),L=n(37283),M=n(74330),w=n(69447),C=n(69008),D=function(p){M.call(this,p),L.call(this,p),w.call(this,p),this.id=p.id||T()};D.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(p,v){switch(this.draggable){case"horizontal":v=0;break;case"vertical":p=0;break}var t=this.transform;t||(t=this.transform=[1,0,0,1,0,0]),t[4]+=p,t[5]+=v,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(p,v){},attrKV:function(p,v){if(p==="position"||p==="scale"||p==="origin"){if(v){var t=this[p];t||(t=this[p]=[]),t[0]=v[0],t[1]=v[1]}}else this[p]=v},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(p,v){if(typeof p=="string")this.attrKV(p,v);else if(C.isObject(p))for(var t in p)p.hasOwnProperty(t)&&this.attrKV(t,p[t]);return this.dirty(!1),this},setClipPath:function(p){var v=this.__zr;v&&p.addSelfToZr(v),this.clipPath&&this.clipPath!==p&&this.removeClipPath(),this.clipPath=p,p.__zr=v,p.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var p=this.clipPath;p&&(p.__zr&&p.removeSelfFromZr(p.__zr),p.__zr=null,p.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(p){this.__zr=p;var v=this.animators;if(v)for(var t=0;t<v.length;t++)p.animation.addAnimator(v[t]);this.clipPath&&this.clipPath.addSelfToZr(p)},removeSelfFromZr:function(p){this.__zr=null;var v=this.animators;if(v)for(var t=0;t<v.length;t++)p.animation.removeAnimator(v[t]);this.clipPath&&this.clipPath.removeSelfFromZr(p)}},C.mixin(D,w),C.mixin(D,M),C.mixin(D,L);var S=D;Y.exports=S},72351:function(Y,V,n){var T=n(69008),L=n(47764),M=n(6947),w=n(37283),C=n(92462),D=n(44420),S="silent";function p(o,r,l){return{type:o,event:l,target:r.target,topTarget:r.topTarget,cancelBubble:!1,offsetX:l.zrX,offsetY:l.zrY,gestureEvent:l.gestureEvent,pinchX:l.pinchX,pinchY:l.pinchY,pinchScale:l.pinchScale,wheelDelta:l.zrDelta,zrByTouch:l.zrByTouch,which:l.which,stop:v}}function v(){C.stop(this.event)}function t(){}t.prototype.dispose=function(){};var s=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],i=function(o,r,l,h){w.call(this),this.storage=o,this.painter=r,this.painterRoot=h,l=l||new t,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,M.call(this),this.setHandlerProxy(l)};i.prototype={constructor:i,setHandlerProxy:function(o){this.proxy&&this.proxy.dispose(),o&&(T.each(s,function(r){o.on&&o.on(r,this[r],this)},this),o.handler=this),this.proxy=o},mousemove:function(o){var r=o.zrX,l=o.zrY,h=u(this,r,l),f=this._hovered,c=f.target;c&&!c.__zr&&(f=this.findHover(f.x,f.y),c=f.target);var d=this._hovered=h?{x:r,y:l}:this.findHover(r,l),A=d.target,x=this.proxy;x.setCursor&&x.setCursor(A?A.cursor:"default"),c&&A!==c&&this.dispatchToElement(f,"mouseout",o),this.dispatchToElement(d,"mousemove",o),A&&A!==c&&this.dispatchToElement(d,"mouseover",o)},mouseout:function(o){var r=o.zrEventControl,l=o.zrIsToLocalDOM;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",o),r!=="no_globalout"&&!l&&this.trigger("globalout",{type:"globalout",event:o})},resize:function(o){this._hovered={}},dispatch:function(o,r){var l=this[o];l&&l.call(this,r)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(o){var r=this.proxy;r.setCursor&&r.setCursor(o)},dispatchToElement:function(o,r,l){o=o||{};var h=o.target;if(!(h&&h.silent)){for(var f="on"+r,c=p(r,o,l);h&&(h[f]&&(c.cancelBubble=h[f].call(h,c)),h.trigger(r,c),h=h.parent,!c.cancelBubble););c.cancelBubble||(this.trigger(r,c),this.painter&&this.painter.eachOtherLayer(function(d){typeof d[f]=="function"&&d[f].call(d,c),d.trigger&&d.trigger(r,c)}))}},findHover:function(o,r,l){for(var h=this.storage.getDisplayList(),f={x:o,y:r},c=h.length-1;c>=0;c--){var d;if(h[c]!==l&&!h[c].ignore&&(d=a(h[c],o,r))&&(!f.topTarget&&(f.topTarget=h[c]),d!==S)){f.target=h[c];break}}return f},processGesture:function(o,r){this._gestureMgr||(this._gestureMgr=new D);var l=this._gestureMgr;r==="start"&&l.clear();var h=l.recognize(o,this.findHover(o.zrX,o.zrY,null).target,this.proxy.dom);if(r==="end"&&l.clear(),h){var f=h.type;o.gestureEvent=f,this.dispatchToElement({target:h.target},f,h.event)}}},T.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(o){i.prototype[o]=function(r){var l=r.zrX,h=r.zrY,f=u(this,l,h),c,d;if((o!=="mouseup"||!f)&&(c=this.findHover(l,h),d=c.target),o==="mousedown")this._downEl=d,this._downPoint=[r.zrX,r.zrY],this._upEl=d;else if(o==="mouseup")this._upEl=d;else if(o==="click"){if(this._downEl!==this._upEl||!this._downPoint||L.dist(this._downPoint,[r.zrX,r.zrY])>4)return;this._downPoint=null}this.dispatchToElement(c,o,r)}});function a(o,r,l){if(o[o.rectHover?"rectContain":"contain"](r,l)){for(var h=o,f;h;){if(h.clipPath&&!h.clipPath.contain(r,l))return!1;h.silent&&(f=!0),h=h.parent}return f?S:!0}return!1}function u(o,r,l){var h=o.painter;return r<0||r>h.getWidth()||l<0||l>h.getHeight()}T.mixin(i,w),T.mixin(i,M);var e=i;Y.exports=e},12299:function(Y,V,n){var T=n(69008),L=n(69893),M=L.devicePixelRatio,w=n(7255),C=n(55620);function D(){return!1}function S(t,s,i){var a=T.createCanvas(),u=s.getWidth(),e=s.getHeight(),o=a.style;return o&&(o.position="absolute",o.left=0,o.top=0,o.width=u+"px",o.height=e+"px",a.setAttribute("data-zr-dom-id",t)),a.width=u*i,a.height=e*i,a}var p=function(t,s,i){var a;i=i||M,typeof t=="string"?a=S(t,s,i):T.isObject(t)&&(a=t,t=a.id),this.id=t,this.dom=a;var u=a.style;u&&(a.onselectstart=D,u["-webkit-user-select"]="none",u["user-select"]="none",u["-webkit-touch-callout"]="none",u["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",u.padding=0,u.margin=0,u["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=s,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};p.prototype={constructor:p,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=S("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},resize:function(t,s){var i=this.dpr,a=this.dom,u=a.style,e=this.domBack;u&&(u.width=t+"px",u.height=s+"px"),a.width=t*i,a.height=s*i,e&&(e.width=t*i,e.height=s*i,i!==1&&this.ctxBack.scale(i,i))},clear:function(t,o){var i=this.dom,a=this.ctx,u=i.width,e=i.height,o=o||this.clearColor,r=this.motionBlur&&!t,l=this.lastFrameAlpha,h=this.dpr;if(r&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,u/h,e/h)),a.clearRect(0,0,u,e),o&&o!=="transparent"){var f;o.colorStops?(f=o.__canvasGradient||w.getGradient(a,o,{x:0,y:0,width:u,height:e}),o.__canvasGradient=f):o.image&&(f=C.prototype.getCanvasPattern.call(o,a)),a.save(),a.fillStyle=f||o,a.fillRect(0,0,u,e),a.restore()}if(r){var c=this.domBack;a.save(),a.globalAlpha=l,a.drawImage(c,0,0,u,e),a.restore()}}};var v=p;Y.exports=v},44401:function(Y,V,n){var T=n(69893),L=T.devicePixelRatio,M=n(69008),w=n(32445),C=n(9806),D=n(78083),S=n(12299),p=n(52731),v=n(89444),t=n(12973),s=1e5,i=314159,a=.01,u=.001;function e(y){return parseInt(y,10)}function o(y){return y?y.__builtin__?!0:!(typeof y.resize!="function"||typeof y.refresh!="function"):!1}var r=new C(0,0,0,0),l=new C(0,0,0,0);function h(y,g,m){return r.copy(y.getBoundingRect()),y.transform&&r.applyTransform(y.transform),l.width=g,l.height=m,!r.intersect(l)}function f(y,g){if(y===g)return!1;if(!y||!g||y.length!==g.length)return!0;for(var m=0;m<y.length;m++)if(y[m]!==g[m])return!0;return!1}function c(y,g){for(var m=0;m<y.length;m++){var b=y[m];b.setTransform(g),g.beginPath(),b.buildPath(g,b.shape),g.clip(),b.restoreTransform(g)}}function d(y,g){var m=document.createElement("div");return m.style.cssText=["position:relative","width:"+y+"px","height:"+g+"px","padding:0","margin:0","border-width:0"].join(";")+";",m}var A=function(y,g,m){this.type="canvas";var b=!y.nodeName||y.nodeName.toUpperCase()==="CANVAS";this._opts=m=M.extend({},m||{}),this.dpr=m.devicePixelRatio||L,this._singleCanvas=b,this.root=y;var I=y.style;I&&(I["-webkit-tap-highlight-color"]="transparent",I["-webkit-user-select"]=I["user-select"]=I["-webkit-touch-callout"]="none",y.innerHTML=""),this.storage=g;var R=this._zlevelList=[],E=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,b){var O=y.width,N=y.height;m.width!=null&&(O=m.width),m.height!=null&&(N=m.height),this.dpr=m.devicePixelRatio||1,y.width=O*this.dpr,y.height=N*this.dpr,this._width=O,this._height=N;var _=new S(y,this,this.dpr);_.__builtin__=!0,_.initContext(),E[i]=_,_.zlevel=i,R.push(i),this._domRoot=y}else{this._width=this._getSize(0),this._height=this._getSize(1);var P=this._domRoot=d(this._width,this._height);y.appendChild(P)}this._hoverlayer=null,this._hoverElements=[]};A.prototype={constructor:A,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var y=this.getViewportRoot();if(y)return{offsetLeft:y.offsetLeft||0,offsetTop:y.offsetTop||0}},refresh:function(y){var g=this.storage.getDisplayList(!0),m=this._zlevelList;this._redrawId=Math.random(),this._paintList(g,y,this._redrawId);for(var b=0;b<m.length;b++){var I=m[b],R=this._layers[I];if(!R.__builtin__&&R.refresh){var E=b===0?this._backgroundColor:null;R.refresh(E)}}return this.refreshHover(),this},addHover:function(y,g){if(!y.__hoverMir){var m=new y.constructor({style:y.style,shape:y.shape,z:y.z,z2:y.z2,silent:y.silent});return m.__from=y,y.__hoverMir=m,g&&m.setStyle(g),this._hoverElements.push(m),m}},removeHover:function(y){var g=y.__hoverMir,m=this._hoverElements,b=M.indexOf(m,g);b>=0&&m.splice(b,1),y.__hoverMir=null},clearHover:function(y){for(var g=this._hoverElements,m=0;m<g.length;m++){var b=g[m].__from;b&&(b.__hoverMir=null)}g.length=0},refreshHover:function(){var y=this._hoverElements,g=y.length,m=this._hoverlayer;if(m&&m.clear(),!!g){D(y,this.storage.displayableSortFunc),m||(m=this._hoverlayer=this.getLayer(s));var b={};m.ctx.save();for(var I=0;I<g;){var R=y[I],E=R.__from;if(!(E&&E.__zr)){y.splice(I,1),E.__hoverMir=null,g--;continue}I++,E.invisible||(R.transform=E.transform,R.invTransform=E.invTransform,R.__clipPaths=E.__clipPaths,this._doPaintEl(R,m,!0,b))}m.ctx.restore()}},getHoverLayer:function(){return this.getLayer(s)},_paintList:function(y,g,m){if(this._redrawId===m){g=g||!1,this._updateLayerStatus(y);var b=this._doPaintList(y,g);if(this._needsManuallyCompositing&&this._compositeManually(),!b){var I=this;p(function(){I._paintList(y,g,m)})}}},_compositeManually:function(){var y=this.getLayer(i).ctx,g=this._domRoot.width,m=this._domRoot.height;y.clearRect(0,0,g,m),this.eachBuiltinLayer(function(b){b.virtual&&y.drawImage(b.dom,0,0,g,m)})},_doPaintList:function(y,g){for(var m=[],b=0;b<this._zlevelList.length;b++){var I=this._zlevelList[b],R=this._layers[I];R.__builtin__&&R!==this._hoverlayer&&(R.__dirty||g)&&m.push(R)}for(var E=!0,P=0;P<m.length;P++){var R=m[P],O=R.ctx,N={};O.save();var _=g?R.__startIndex:R.__drawIndex,G=!g&&R.incremental&&Date.now,F=G&&Date.now(),W=R.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(R.__startIndex===R.__endIndex)R.clear(!1,W);else if(_===R.__startIndex){var U=y[_];(!U.incremental||!U.notClear||g)&&R.clear(!1,W)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=R.__startIndex);for(var H=_;H<R.__endIndex;H++){var z=y[H];if(this._doPaintEl(z,R,g,N),z.__dirty=z.__dirtyText=!1,G){var B=Date.now()-F;if(B>15)break}}R.__drawIndex=H,R.__drawIndex<R.__endIndex&&(E=!1),N.prevElClipPaths&&O.restore(),O.restore()}return t.wxa&&M.each(this._layers,function(k){k&&k.ctx&&k.ctx.draw&&k.ctx.draw()}),E},_doPaintEl:function(y,g,m,b){var I=g.ctx,R=y.transform;if((g.__dirty||m)&&!y.invisible&&y.style.opacity!==0&&!(R&&!R[0]&&!R[3])&&!(y.culling&&h(y,this._width,this._height))){var E=y.__clipPaths,P=b.prevElClipPaths;(!P||f(E,P))&&(P&&(I.restore(),b.prevElClipPaths=null,b.prevEl=null),E&&(I.save(),c(E,I),b.prevElClipPaths=E)),y.beforeBrush&&y.beforeBrush(I),y.brush(I,b.prevEl||null),b.prevEl=y,y.afterBrush&&y.afterBrush(I)}},getLayer:function(y,g){this._singleCanvas&&!this._needsManuallyCompositing&&(y=i);var m=this._layers[y];return m||(m=new S("zr_"+y,this,this.dpr),m.zlevel=y,m.__builtin__=!0,this._layerConfig[y]?M.merge(m,this._layerConfig[y],!0):this._layerConfig[y-a]&&M.merge(m,this._layerConfig[y-a],!0),g&&(m.virtual=g),this.insertLayer(y,m),m.initContext()),m},insertLayer:function(y,g){var m=this._layers,b=this._zlevelList,I=b.length,R=null,E=-1,P=this._domRoot;if(m[y]){w("ZLevel "+y+" has been used already");return}if(!o(g)){w("Layer of zlevel "+y+" is not valid");return}if(I>0&&y>b[0]){for(E=0;E<I-1&&!(b[E]<y&&b[E+1]>y);E++);R=m[b[E]]}if(b.splice(E+1,0,y),m[y]=g,!g.virtual)if(R){var O=R.dom;O.nextSibling?P.insertBefore(g.dom,O.nextSibling):P.appendChild(g.dom)}else P.firstChild?P.insertBefore(g.dom,P.firstChild):P.appendChild(g.dom)},eachLayer:function(y,g){var m=this._zlevelList,b,I;for(I=0;I<m.length;I++)b=m[I],y.call(g,this._layers[b],b)},eachBuiltinLayer:function(y,g){var m=this._zlevelList,b,I,R;for(R=0;R<m.length;R++)I=m[R],b=this._layers[I],b.__builtin__&&y.call(g,b,I)},eachOtherLayer:function(y,g){var m=this._zlevelList,b,I,R;for(R=0;R<m.length;R++)I=m[R],b=this._layers[I],b.__builtin__||y.call(g,b,I)},getLayers:function(){return this._layers},_updateLayerStatus:function(y){this.eachBuiltinLayer(function(N,_){N.__dirty=N.__used=!1});function g(N){I&&(I.__endIndex!==N&&(I.__dirty=!0),I.__endIndex=N)}if(this._singleCanvas)for(var m=1;m<y.length;m++){var b=y[m];if(b.zlevel!==y[m-1].zlevel||b.incremental){this._needsManuallyCompositing=!0;break}}for(var I=null,R=0,E,m=0;m<y.length;m++){var b=y[m],P=b.zlevel,O;E!==P&&(E=P,R=0),b.incremental?(O=this.getLayer(P+u,this._needsManuallyCompositing),O.incremental=!0,R=1):O=this.getLayer(P+(R>0?a:0),this._needsManuallyCompositing),O.__builtin__||w("ZLevel "+P+" has been used by unkown layer "+O.id),O!==I&&(O.__used=!0,O.__startIndex!==m&&(O.__dirty=!0),O.__startIndex=m,O.incremental?O.__drawIndex=-1:O.__drawIndex=m,g(m),I=O),b.__dirty&&(O.__dirty=!0,O.incremental&&O.__drawIndex<0&&(O.__drawIndex=m))}g(m),this.eachBuiltinLayer(function(N,_){!N.__used&&N.getElementCount()>0&&(N.__dirty=!0,N.__startIndex=N.__endIndex=N.__drawIndex=0),N.__dirty&&N.__drawIndex<0&&(N.__drawIndex=N.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(y){y.clear()},setBackgroundColor:function(y){this._backgroundColor=y},configLayer:function(y,g){if(g){var m=this._layerConfig;m[y]?M.merge(m[y],g,!0):m[y]=g;for(var b=0;b<this._zlevelList.length;b++){var I=this._zlevelList[b];if(I===y||I===y+a){var R=this._layers[I];M.merge(R,m[y],!0)}}}},delLayer:function(y){var g=this._layers,m=this._zlevelList,b=g[y];b&&(b.dom.parentNode.removeChild(b.dom),delete g[y],m.splice(M.indexOf(m,y),1))},resize:function(y,g){if(this._domRoot.style){var m=this._domRoot;m.style.display="none";var b=this._opts;if(y!=null&&(b.width=y),g!=null&&(b.height=g),y=this._getSize(0),g=this._getSize(1),m.style.display="",this._width!==y||g!==this._height){m.style.width=y+"px",m.style.height=g+"px";for(var I in this._layers)this._layers.hasOwnProperty(I)&&this._layers[I].resize(y,g);M.each(this._progressiveLayers,function(R){R.resize(y,g)}),this.refresh(!0)}this._width=y,this._height=g}else{if(y==null||g==null)return;this._width=y,this._height=g,this.getLayer(i).resize(y,g)}return this},clearLayer:function(y){var g=this._layers[y];g&&g.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(y){if(y=y||{},this._singleCanvas&&!this._compositeManually)return this._layers[i].dom;var g=new S("image",this,y.pixelRatio||this.dpr);if(g.initContext(),g.clear(!1,y.backgroundColor||this._backgroundColor),y.pixelRatio<=this.dpr){this.refresh();var m=g.dom.width,b=g.dom.height,I=g.ctx;this.eachLayer(function(N){N.__builtin__?I.drawImage(N.dom,0,0,m,b):N.renderToCanvas&&(g.ctx.save(),N.renderToCanvas(g.ctx),g.ctx.restore())})}else for(var R={},E=this.storage.getDisplayList(!0),P=0;P<E.length;P++){var O=E[P];this._doPaintEl(O,g,!0,R)}return g.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(y){var g=this._opts,m=["width","height"][y],b=["clientWidth","clientHeight"][y],I=["paddingLeft","paddingTop"][y],R=["paddingRight","paddingBottom"][y];if(g[m]!=null&&g[m]!=="auto")return parseFloat(g[m]);var E=this.root,P=document.defaultView.getComputedStyle(E);return(E[b]||e(P[m])||e(E.style[m]))-(e(P[I])||0)-(e(P[R])||0)|0},pathToImage:function(y,g){g=g||this.dpr;var m=document.createElement("canvas"),b=m.getContext("2d"),I=y.getBoundingRect(),R=y.style,E=R.shadowBlur*g,P=R.shadowOffsetX*g,O=R.shadowOffsetY*g,N=R.hasStroke()?R.lineWidth:0,_=Math.max(N/2,-P+E),G=Math.max(N/2,P+E),F=Math.max(N/2,-O+E),W=Math.max(N/2,O+E),U=I.width+_+G,H=I.height+F+W;m.width=U*g,m.height=H*g,b.scale(g,g),b.clearRect(0,0,U,H),b.dpr=g;var z={position:y.position,rotation:y.rotation,scale:y.scale};y.position=[_-I.x,F-I.y],y.rotation=0,y.scale=[1,1],y.updateTransform(),y&&y.brush(b);var B=v,k=new B({style:{x:0,y:0,image:m}});return z.position!=null&&(k.position=y.position=z.position),z.rotation!=null&&(k.rotation=y.rotation=z.rotation),z.scale!=null&&(k.scale=y.scale=z.scale),k}};var x=A;Y.exports=x},839:function(Y,V,n){var T=n(69008),L=n(12973),M=n(27796),w=n(78083);function C(p,v){return p.zlevel===v.zlevel?p.z===v.z?p.z2-v.z2:p.z-v.z:p.zlevel-v.zlevel}var D=function(){this._roots=[],this._displayList=[],this._displayListLen=0};D.prototype={constructor:D,traverse:function(p,v){for(var t=0;t<this._roots.length;t++)this._roots[t].traverse(p,v)},getDisplayList:function(p,v){return v=v||!1,p&&this.updateDisplayList(v),this._displayList},updateDisplayList:function(p){this._displayListLen=0;for(var v=this._roots,t=this._displayList,s=0,i=v.length;s<i;s++)this._updateAndAddDisplayable(v[s],null,p);t.length=this._displayListLen,L.canvasSupported&&w(t,C)},_updateAndAddDisplayable:function(p,v,t){if(!(p.ignore&&!t)){p.beforeUpdate(),p.__dirty&&p.update(),p.afterUpdate();var s=p.clipPath;if(s){v?v=v.slice():v=[];for(var i=s,a=p;i;)i.parent=a,i.updateTransform(),v.push(i),a=i,i=i.clipPath}if(p.isGroup){for(var u=p._children,e=0;e<u.length;e++){var o=u[e];p.__dirty&&(o.__dirty=!0),this._updateAndAddDisplayable(o,v,t)}p.__dirty=!1}else p.__clipPaths=v,this._displayList[this._displayListLen++]=p}},addRoot:function(p){p.__storage!==this&&(p instanceof M&&p.addChildrenToStorage(this),this.addToStorage(p),this._roots.push(p))},delRoot:function(p){if(p==null){for(var v=0;v<this._roots.length;v++){var t=this._roots[v];t instanceof M&&t.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(p instanceof Array){for(var v=0,s=p.length;v<s;v++)this.delRoot(p[v]);return}var i=T.indexOf(this._roots,p);i>=0&&(this.delFromStorage(p),this._roots.splice(i,1),p instanceof M&&p.delChildrenFromStorage(this))},addToStorage:function(p){return p&&(p.__storage=this,p.dirty(!1)),this},delFromStorage:function(p){return p&&(p.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:C};var S=D;Y.exports=S},75113:function(Y,V,n){var T=n(69008),L=n(92462),M=L.Dispatcher,w=n(52731),C=n(91807),D=function(p){p=p||{},this.stage=p.stage||{},this.onframe=p.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,M.call(this)};D.prototype={constructor:D,addClip:function(p){this._clips.push(p)},addAnimator:function(p){p.animation=this;for(var v=p.getClips(),t=0;t<v.length;t++)this.addClip(v[t])},removeClip:function(p){var v=T.indexOf(this._clips,p);v>=0&&this._clips.splice(v,1)},removeAnimator:function(p){for(var v=p.getClips(),t=0;t<v.length;t++)this.removeClip(v[t]);p.animation=null},_update:function(){for(var p=new Date().getTime()-this._pausedTime,v=p-this._time,t=this._clips,s=t.length,i=[],a=[],u=0;u<s;u++){var e=t[u],o=e.step(p,v);o&&(i.push(o),a.push(e))}for(var u=0;u<s;)t[u]._needsRemove?(t[u]=t[s-1],t.pop(),s--):u++;s=i.length;for(var u=0;u<s;u++)a[u].fire(i[u]);this._time=p,this.onframe(v),this.trigger("frame",v),this.stage.update&&this.stage.update()},_startLoop:function(){var p=this;this._running=!0;function v(){p._running&&(w(v),!p._paused&&p._update())}w(v)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(p,v){v=v||{};var t=new C(p,v.loop,v.getter,v.setter);return this.addAnimator(t),t}},T.mixin(D,M);var S=D;Y.exports=S},91807:function(Y,V,n){var T=n(56522),L=n(83720),M=n(69008),w=M.isArrayLike,C=Array.prototype.slice;function D(c,d){return c[d]}function S(c,d,A){c[d]=A}function p(c,d,A){return(d-c)*A+c}function v(c,d,A){return A>.5?d:c}function t(c,d,A,x,y){var g=c.length;if(y===1)for(var m=0;m<g;m++)x[m]=p(c[m],d[m],A);else for(var b=g&&c[0].length,m=0;m<g;m++)for(var I=0;I<b;I++)x[m][I]=p(c[m][I],d[m][I],A)}function s(c,d,A){var x=c.length,y=d.length;if(x!==y){var g=x>y;if(g)c.length=y;else for(var m=x;m<y;m++)c.push(A===1?d[m]:C.call(d[m]))}for(var b=c[0]&&c[0].length,m=0;m<c.length;m++)if(A===1)isNaN(c[m])&&(c[m]=d[m]);else for(var I=0;I<b;I++)isNaN(c[m][I])&&(c[m][I]=d[m][I])}function i(c,d,A){if(c===d)return!0;var x=c.length;if(x!==d.length)return!1;if(A===1){for(var y=0;y<x;y++)if(c[y]!==d[y])return!1}else for(var g=c[0].length,y=0;y<x;y++)for(var m=0;m<g;m++)if(c[y][m]!==d[y][m])return!1;return!0}function a(c,d,A,x,y,g,m,b,I){var R=c.length;if(I===1)for(var E=0;E<R;E++)b[E]=u(c[E],d[E],A[E],x[E],y,g,m);else for(var P=c[0].length,E=0;E<R;E++)for(var O=0;O<P;O++)b[E][O]=u(c[E][O],d[E][O],A[E][O],x[E][O],y,g,m)}function u(c,d,A,x,y,g,m){var b=(A-c)*.5,I=(x-d)*.5;return(2*(d-A)+b+I)*m+(-3*(d-A)-2*b-I)*g+b*y+d}function e(c){if(w(c)){var d=c.length;if(w(c[0])){for(var A=[],x=0;x<d;x++)A.push(C.call(c[x]));return A}return C.call(c)}return c}function o(c){return c[0]=Math.floor(c[0]),c[1]=Math.floor(c[1]),c[2]=Math.floor(c[2]),"rgba("+c.join(",")+")"}function r(c){var d=c[c.length-1].value;return w(d&&d[0])?2:1}function l(c,d,A,x,y,g){var m=c._getter,b=c._setter,I=d==="spline",R=x.length;if(R){var E=x[0].value,P=w(E),O=!1,N=!1,_=P?r(x):0,G;x.sort(function(vt,yt){return vt.time-yt.time}),G=x[R-1].time;for(var F=[],W=[],U=x[0].value,H=!0,z=0;z<R;z++){F.push(x[z].time/G);var B=x[z].value;if(P&&i(B,U,_)||!P&&B===U||(H=!1),U=B,typeof B=="string"){var k=L.parse(B);k?(B=k,O=!0):N=!0}W.push(B)}if(!(!g&&H)){for(var Z=W[R-1],z=0;z<R-1;z++)P?s(W[z],Z,_):isNaN(W[z])&&!isNaN(Z)&&!N&&!O&&(W[z]=Z);P&&s(m(c._target,y),Z,_);var X=0,K=0,Q,J,tt,q,rt,$;if(O)var j=[0,0,0,0];var st=function(vt,yt){var it;if(yt<0)it=0;else if(yt<K){for(Q=Math.min(X+1,R-1),it=Q;it>=0&&!(F[it]<=yt);it--);it=Math.min(it,R-2)}else{for(it=X;it<R&&!(F[it]>yt);it++);it=Math.min(it-1,R-2)}X=it,K=yt;var ut=F[it+1]-F[it];if(ut!==0)if(J=(yt-F[it])/ut,I)if(q=W[it],tt=W[it===0?it:it-1],rt=W[it>R-2?R-1:it+1],$=W[it>R-3?R-1:it+2],P)a(tt,q,rt,$,J,J*J,J*J*J,m(vt,y),_);else{var gt;if(O)gt=a(tt,q,rt,$,J,J*J,J*J*J,j,1),gt=o(j);else{if(N)return v(q,rt,J);gt=u(tt,q,rt,$,J,J*J,J*J*J)}b(vt,y,gt)}else if(P)t(W[it],W[it+1],J,m(vt,y),_);else{var gt;if(O)t(W[it],W[it+1],J,j,1),gt=o(j);else{if(N)return v(W[it],W[it+1],J);gt=p(W[it],W[it+1],J)}b(vt,y,gt)}},ot=new T({target:c._target,life:G,loop:c._loop,delay:c._delay,onframe:st,ondestroy:A});return d&&d!=="spline"&&(ot.easing=d),ot}}}var h=function(c,d,A,x){this._tracks={},this._target=c,this._loop=d||!1,this._getter=A||D,this._setter=x||S,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};h.prototype={when:function(c,d){var A=this._tracks;for(var x in d)if(d.hasOwnProperty(x)){if(!A[x]){A[x]=[];var y=this._getter(this._target,x);if(y==null)continue;c!==0&&A[x].push({time:0,value:e(y)})}A[x].push({time:c,value:d[x]})}return this},during:function(c){return this._onframeList.push(c),this},pause:function(){for(var c=0;c<this._clipList.length;c++)this._clipList[c].pause();this._paused=!0},resume:function(){for(var c=0;c<this._clipList.length;c++)this._clipList[c].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var c=this._doneList,d=c.length,A=0;A<d;A++)c[A].call(this)},start:function(c,d){var A=this,x=0,y=function(){x--,x||A._doneCallback()},g;for(var m in this._tracks)if(this._tracks.hasOwnProperty(m)){var b=l(this,c,y,this._tracks[m],m,d);b&&(this._clipList.push(b),x++,this.animation&&this.animation.addClip(b),g=b)}if(g){var I=g.onframe;g.onframe=function(R,E){I(R,E);for(var P=0;P<A._onframeList.length;P++)A._onframeList[P](R,E)}}return x||this._doneCallback(),this},stop:function(c){for(var d=this._clipList,A=this.animation,x=0;x<d.length;x++){var y=d[x];c&&y.onframe(this._target,1),A&&A.removeClip(y)}d.length=0},delay:function(c){return this._delay=c,this},done:function(c){return c&&this._doneList.push(c),this},getClips:function(){return this._clipList}};var f=h;Y.exports=f},56522:function(Y,V,n){var T=n(33014);function L(w){this._target=w.target,this._life=w.life||1e3,this._delay=w.delay||0,this._initialized=!1,this.loop=w.loop==null?!1:w.loop,this.gap=w.gap||0,this.easing=w.easing||"Linear",this.onframe=w.onframe,this.ondestroy=w.ondestroy,this.onrestart=w.onrestart,this._pausedTime=0,this._paused=!1}L.prototype={constructor:L,step:function(w,C){if(this._initialized||(this._startTime=w+this._delay,this._initialized=!0),this._paused){this._pausedTime+=C;return}var D=(w-this._startTime-this._pausedTime)/this._life;if(!(D<0)){D=Math.min(D,1);var S=this.easing,p=typeof S=="string"?T[S]:S,v=typeof p=="function"?p(D):D;return this.fire("frame",v),D===1?this.loop?(this.restart(w),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(w){var C=(w-this._startTime-this._pausedTime)%this._life;this._startTime=w-C+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(w,C){w="on"+w,this[w]&&this[w](this._target,C)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var M=L;Y.exports=M},33014:function(Y){var V={linear:function(T){return T},quadraticIn:function(T){return T*T},quadraticOut:function(T){return T*(2-T)},quadraticInOut:function(T){return(T*=2)<1?.5*T*T:-.5*(--T*(T-2)-1)},cubicIn:function(T){return T*T*T},cubicOut:function(T){return--T*T*T+1},cubicInOut:function(T){return(T*=2)<1?.5*T*T*T:.5*((T-=2)*T*T+2)},quarticIn:function(T){return T*T*T*T},quarticOut:function(T){return 1- --T*T*T*T},quarticInOut:function(T){return(T*=2)<1?.5*T*T*T*T:-.5*((T-=2)*T*T*T-2)},quinticIn:function(T){return T*T*T*T*T},quinticOut:function(T){return--T*T*T*T*T+1},quinticInOut:function(T){return(T*=2)<1?.5*T*T*T*T*T:.5*((T-=2)*T*T*T*T+2)},sinusoidalIn:function(T){return 1-Math.cos(T*Math.PI/2)},sinusoidalOut:function(T){return Math.sin(T*Math.PI/2)},sinusoidalInOut:function(T){return .5*(1-Math.cos(Math.PI*T))},exponentialIn:function(T){return T===0?0:Math.pow(1024,T-1)},exponentialOut:function(T){return T===1?1:1-Math.pow(2,-10*T)},exponentialInOut:function(T){return T===0?0:T===1?1:(T*=2)<1?.5*Math.pow(1024,T-1):.5*(-Math.pow(2,-10*(T-1))+2)},circularIn:function(T){return 1-Math.sqrt(1-T*T)},circularOut:function(T){return Math.sqrt(1- --T*T)},circularInOut:function(T){return(T*=2)<1?-.5*(Math.sqrt(1-T*T)-1):.5*(Math.sqrt(1-(T-=2)*T)+1)},elasticIn:function(T){var L,M=.1,w=.4;return T===0?0:T===1?1:(!M||M<1?(M=1,L=w/4):L=w*Math.asin(1/M)/(2*Math.PI),-(M*Math.pow(2,10*(T-=1))*Math.sin((T-L)*(2*Math.PI)/w)))},elasticOut:function(T){var L,M=.1,w=.4;return T===0?0:T===1?1:(!M||M<1?(M=1,L=w/4):L=w*Math.asin(1/M)/(2*Math.PI),M*Math.pow(2,-10*T)*Math.sin((T-L)*(2*Math.PI)/w)+1)},elasticInOut:function(T){var L,M=.1,w=.4;return T===0?0:T===1?1:(!M||M<1?(M=1,L=w/4):L=w*Math.asin(1/M)/(2*Math.PI),(T*=2)<1?-.5*(M*Math.pow(2,10*(T-=1))*Math.sin((T-L)*(2*Math.PI)/w)):M*Math.pow(2,-10*(T-=1))*Math.sin((T-L)*(2*Math.PI)/w)*.5+1)},backIn:function(T){var L=1.70158;return T*T*((L+1)*T-L)},backOut:function(T){var L=1.70158;return--T*T*((L+1)*T+L)+1},backInOut:function(T){var L=2.5949095;return(T*=2)<1?.5*(T*T*((L+1)*T-L)):.5*((T-=2)*T*((L+1)*T+L)+2)},bounceIn:function(T){return 1-V.bounceOut(1-T)},bounceOut:function(T){return T<.36363636363636365?7.5625*T*T:T<.7272727272727273?7.5625*(T-=.5454545454545454)*T+.75:T<.9090909090909091?7.5625*(T-=.8181818181818182)*T+.9375:7.5625*(T-=.9545454545454546)*T+.984375},bounceInOut:function(T){return T<.5?V.bounceIn(T*2)*.5:V.bounceOut(T*2-1)*.5+.5}},n=V;Y.exports=n},52731:function(Y){var V=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){setTimeout(n,16)};Y.exports=V},69893:function(Y,V){var n=1;typeof window!="undefined"&&(n=Math.max(window.devicePixelRatio||1,1));var T=0,L=n;V.debugMode=T,V.devicePixelRatio=L},95522:function(Y,V,n){var T=n(51052),L=T.normalizeRadian,M=Math.PI*2;function w(C,D,S,p,v,t,s,i,a){if(s===0)return!1;var u=s;i-=C,a-=D;var e=Math.sqrt(i*i+a*a);if(e-u>S||e+u<S)return!1;if(Math.abs(p-v)%M<1e-4)return!0;if(t){var o=p;p=L(v),v=L(o)}else p=L(p),v=L(v);p>v&&(v+=M);var r=Math.atan2(a,i);return r<0&&(r+=M),r>=p&&r<=v||r+M>=p&&r+M<=v}V.containStroke=w},73989:function(Y,V,n){var T=n(22576);function L(M,w,C,D,S,p,v,t,s,i,a){if(s===0)return!1;var u=s;if(a>w+u&&a>D+u&&a>p+u&&a>t+u||a<w-u&&a<D-u&&a<p-u&&a<t-u||i>M+u&&i>C+u&&i>S+u&&i>v+u||i<M-u&&i<C-u&&i<S-u&&i<v-u)return!1;var e=T.cubicProjectPoint(M,w,C,D,S,p,v,t,i,a,null);return e<=u/2}V.containStroke=L},10531:function(Y,V){function n(T,L,M,w,C,D,S){if(C===0)return!1;var p=C,v=0,t=T;if(S>L+p&&S>w+p||S<L-p&&S<w-p||D>T+p&&D>M+p||D<T-p&&D<M-p)return!1;if(T!==M)v=(L-w)/(T-M),t=(T*w-M*L)/(T-M);else return Math.abs(D-T)<=p/2;var s=v*D-S+t,i=s*s/(v*v+1);return i<=p/2*p/2}V.containStroke=n},29995:function(Y,V,n){var T=n(94615),L=n(10531),M=n(73989),w=n(66514),C=n(95522),D=n(51052),S=D.normalizeRadian,p=n(22576),v=n(55041),t=T.CMD,s=Math.PI*2,i=1e-4;function a(A,x){return Math.abs(A-x)<i}var u=[-1,-1,-1],e=[-1,-1];function o(){var A=e[0];e[0]=e[1],e[1]=A}function r(A,x,y,g,m,b,I,R,E,P){if(P>x&&P>g&&P>b&&P>R||P<x&&P<g&&P<b&&P<R)return 0;var O=p.cubicRootAt(x,g,b,R,P,u);if(O===0)return 0;for(var N=0,_=-1,G,F,W=0;W<O;W++){var U=u[W],H=U===0||U===1?.5:1,z=p.cubicAt(A,y,m,I,U);z<E||(_<0&&(_=p.cubicExtrema(x,g,b,R,e),e[1]<e[0]&&_>1&&o(),G=p.cubicAt(x,g,b,R,e[0]),_>1&&(F=p.cubicAt(x,g,b,R,e[1]))),_===2?U<e[0]?N+=G<x?H:-H:U<e[1]?N+=F<G?H:-H:N+=R<F?H:-H:U<e[0]?N+=G<x?H:-H:N+=R<G?H:-H)}return N}function l(A,x,y,g,m,b,I,R){if(R>x&&R>g&&R>b||R<x&&R<g&&R<b)return 0;var E=p.quadraticRootAt(x,g,b,R,u);if(E===0)return 0;var P=p.quadraticExtremum(x,g,b);if(P>=0&&P<=1){for(var O=0,N=p.quadraticAt(x,g,b,P),_=0;_<E;_++){var G=u[_]===0||u[_]===1?.5:1,F=p.quadraticAt(A,y,m,u[_]);F<I||(u[_]<P?O+=N<x?G:-G:O+=b<N?G:-G)}return O}else{var G=u[0]===0||u[0]===1?.5:1,F=p.quadraticAt(A,y,m,u[0]);return F<I?0:b<x?G:-G}}function h(A,x,y,g,m,b,I,R){if(R-=x,R>y||R<-y)return 0;var E=Math.sqrt(y*y-R*R);u[0]=-E,u[1]=E;var P=Math.abs(g-m);if(P<1e-4)return 0;if(P%s<1e-4){g=0,m=s;var O=b?1:-1;return I>=u[0]+A&&I<=u[1]+A?O:0}if(b){var E=g;g=S(m),m=S(E)}else g=S(g),m=S(m);g>m&&(m+=s);for(var N=0,_=0;_<2;_++){var G=u[_];if(G+A>I){var F=Math.atan2(R,G),O=b?1:-1;F<0&&(F=s+F),(F>=g&&F<=m||F+s>=g&&F+s<=m)&&(F>Math.PI/2&&F<Math.PI*1.5&&(O=-O),N+=O)}}return N}function f(A,x,y,g,m){for(var b=0,I=0,R=0,E=0,P=0,O=0;O<A.length;){var N=A[O++];switch(N===t.M&&O>1&&(y||(b+=v(I,R,E,P,g,m))),O===1&&(I=A[O],R=A[O+1],E=I,P=R),N){case t.M:E=A[O++],P=A[O++],I=E,R=P;break;case t.L:if(y){if(L.containStroke(I,R,A[O],A[O+1],x,g,m))return!0}else b+=v(I,R,A[O],A[O+1],g,m)||0;I=A[O++],R=A[O++];break;case t.C:if(y){if(M.containStroke(I,R,A[O++],A[O++],A[O++],A[O++],A[O],A[O+1],x,g,m))return!0}else b+=r(I,R,A[O++],A[O++],A[O++],A[O++],A[O],A[O+1],g,m)||0;I=A[O++],R=A[O++];break;case t.Q:if(y){if(w.containStroke(I,R,A[O++],A[O++],A[O],A[O+1],x,g,m))return!0}else b+=l(I,R,A[O++],A[O++],A[O],A[O+1],g,m)||0;I=A[O++],R=A[O++];break;case t.A:var _=A[O++],G=A[O++],F=A[O++],W=A[O++],U=A[O++],H=A[O++];O+=1;var z=1-A[O++],X=Math.cos(U)*F+_,K=Math.sin(U)*W+G;O>1?b+=v(I,R,X,K,g,m):(E=X,P=K);var B=(g-_)*W/F+_;if(y){if(C.containStroke(_,G,W,U,U+H,z,x,B,m))return!0}else b+=h(_,G,W,U,U+H,z,B,m);I=Math.cos(U+H)*F+_,R=Math.sin(U+H)*W+G;break;case t.R:E=I=A[O++],P=R=A[O++];var k=A[O++],Z=A[O++],X=E+k,K=P+Z;if(y){if(L.containStroke(E,P,X,P,x,g,m)||L.containStroke(X,P,X,K,x,g,m)||L.containStroke(X,K,E,K,x,g,m)||L.containStroke(E,K,E,P,x,g,m))return!0}else b+=v(X,P,X,K,g,m),b+=v(E,K,E,P,g,m);break;case t.Z:if(y){if(L.containStroke(I,R,E,P,x,g,m))return!0}else b+=v(I,R,E,P,g,m);I=E,R=P;break}}return!y&&!a(R,P)&&(b+=v(I,R,E,P,g,m)||0),b!==0}function c(A,x,y){return f(A,0,!1,x,y)}function d(A,x,y,g){return f(A,x,!0,y,g)}V.contain=c,V.containStroke=d},59049:function(Y,V,n){var T=n(55041),L=1e-8;function M(C,D){return Math.abs(C-D)<L}function w(C,D,S){var p=0,v=C[0];if(!v)return!1;for(var t=1;t<C.length;t++){var s=C[t];p+=T(v[0],v[1],s[0],s[1],D,S),v=s}var i=C[0];return(!M(v[0],i[0])||!M(v[1],i[1]))&&(p+=T(v[0],v[1],i[0],i[1],D,S)),p!==0}V.contain=w},66514:function(Y,V,n){var T=n(22576),L=T.quadraticProjectPoint;function M(w,C,D,S,p,v,t,s,i){if(t===0)return!1;var a=t;if(i>C+a&&i>S+a&&i>v+a||i<C-a&&i<S-a&&i<v-a||s>w+a&&s>D+a&&s>p+a||s<w-a&&s<D-a&&s<p-a)return!1;var u=L(w,C,D,S,p,v,s,i,null);return u<=a/2}V.containStroke=M},63603:function(Y,V,n){var T=n(9806),L=n(33557),M=n(69008),w=M.getContext,C=M.extend,D=M.retrieve2,S=M.retrieve3,p=M.trim,v={},t=0,s=5e3,i=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,a="12px sans-serif",u={};function e(N,_){u[N]=_}function o(N,_){_=_||a;var G=N+":"+_;if(v[G])return v[G];for(var F=(N+"").split(`
`),W=0,U=0,H=F.length;U<H;U++)W=Math.max(I(F[U],_).width,W);return t>s&&(t=0,v={}),t++,v[G]=W,W}function r(N,_,G,F,W,U,H,z){return H?h(N,_,G,F,W,U,H,z):l(N,_,G,F,W,U,z)}function l(N,_,G,F,W,U,H){var z=R(N,_,W,U,H),B=o(N,_);W&&(B+=W[1]+W[3]);var k=z.outerHeight,Z=f(0,B,G),X=c(0,k,F),K=new T(Z,X,B,k);return K.lineHeight=z.lineHeight,K}function h(N,_,G,F,W,U,H,z){var B=E(N,{rich:H,truncate:z,font:_,textAlign:G,textPadding:W,textLineHeight:U}),k=B.outerWidth,Z=B.outerHeight,X=f(0,k,G),K=c(0,Z,F);return new T(X,K,k,Z)}function f(N,_,G){return G==="right"?N-=_:G==="center"&&(N-=_/2),N}function c(N,_,G){return G==="middle"?N-=_/2:G==="bottom"&&(N-=_),N}function d(N,_,G){var F=_.textPosition,W=_.textDistance,U=G.x,H=G.y;W=W||0;var z=G.height,B=G.width,k=z/2,Z="left",X="top";switch(F){case"left":U-=W,H+=k,Z="right",X="middle";break;case"right":U+=W+B,H+=k,X="middle";break;case"top":U+=B/2,H-=W,Z="center",X="bottom";break;case"bottom":U+=B/2,H+=z+W,Z="center";break;case"inside":U+=B/2,H+=k,Z="center",X="middle";break;case"insideLeft":U+=W,H+=k,X="middle";break;case"insideRight":U+=B-W,H+=k,Z="right",X="middle";break;case"insideTop":U+=B/2,H+=W,Z="center";break;case"insideBottom":U+=B/2,H+=z-W,Z="center",X="bottom";break;case"insideTopLeft":U+=W,H+=W;break;case"insideTopRight":U+=B-W,H+=W,Z="right";break;case"insideBottomLeft":U+=W,H+=z-W,X="bottom";break;case"insideBottomRight":U+=B-W,H+=z-W,Z="right",X="bottom";break}return N=N||{},N.x=U,N.y=H,N.textAlign=Z,N.textVerticalAlign=X,N}function A(N,_,G){var F={textPosition:N,textDistance:G};return d({},F,_)}function x(N,_,G,F,W){if(!_)return"";var U=(N+"").split(`
`);W=y(_,G,F,W);for(var H=0,z=U.length;H<z;H++)U[H]=g(U[H],W);return U.join(`
`)}function y(N,_,W,F){F=C({},F),F.font=_;var W=D(W,"...");F.maxIterations=D(F.maxIterations,2);var U=F.minChar=D(F.minChar,0);F.cnCharWidth=o("\u56FD",_);var H=F.ascCharWidth=o("a",_);F.placeholder=D(F.placeholder,"");for(var z=N=Math.max(0,N-1),B=0;B<U&&z>=H;B++)z-=H;var k=o(W,_);return k>z&&(W="",k=0),z=N-k,F.ellipsis=W,F.ellipsisWidth=k,F.contentWidth=z,F.containerWidth=N,F}function g(N,_){var G=_.containerWidth,F=_.font,W=_.contentWidth;if(!G)return"";var U=o(N,F);if(U<=G)return N;for(var H=0;;H++){if(U<=W||H>=_.maxIterations){N+=_.ellipsis;break}var z=H===0?m(N,W,_.ascCharWidth,_.cnCharWidth):U>0?Math.floor(N.length*W/U):0;N=N.substr(0,z),U=o(N,F)}return N===""&&(N=_.placeholder),N}function m(N,_,G,F){for(var W=0,U=0,H=N.length;U<H&&W<_;U++){var z=N.charCodeAt(U);W+=0<=z&&z<=127?G:F}return U}function b(N){return o("\u56FD",N)}function I(N,_){return u.measureText(N,_)}u.measureText=function(N,_){var G=w();return G.font=_||a,G.measureText(N)};function R(N,_,G,F,W){N!=null&&(N+="");var U=D(F,b(_)),H=N?N.split(`
`):[],z=H.length*U,B=z,k=!0;if(G&&(B+=G[0]+G[2]),N&&W){k=!1;var Z=W.outerHeight,X=W.outerWidth;if(Z!=null&&B>Z)N="",H=[];else if(X!=null)for(var K=y(X-(G?G[1]+G[3]:0),_,W.ellipsis,{minChar:W.minChar,placeholder:W.placeholder}),Q=0,J=H.length;Q<J;Q++)H[Q]=g(H[Q],K)}return{lines:H,height:z,outerHeight:B,lineHeight:U,canCacheByTextString:k}}function E(N,_){var G={lines:[],width:0,height:0};if(N!=null&&(N+=""),!N)return G;for(var F=i.lastIndex=0,W;(W=i.exec(N))!=null;){var U=W.index;U>F&&P(G,N.substring(F,U)),P(G,W[2],W[1]),F=i.lastIndex}F<N.length&&P(G,N.substring(F,N.length));var H=G.lines,z=0,B=0,k=[],Z=_.textPadding,X=_.truncate,K=X&&X.outerWidth,Q=X&&X.outerHeight;Z&&(K!=null&&(K-=Z[1]+Z[3]),Q!=null&&(Q-=Z[0]+Z[2]));for(var J=0;J<H.length;J++){for(var tt=H[J],q=0,rt=0,$=0;$<tt.tokens.length;$++){var j=tt.tokens[$],st=j.styleName&&_.rich[j.styleName]||{},ot=j.textPadding=st.textPadding,vt=j.font=st.font||_.font,yt=j.textHeight=D(st.textHeight,b(vt));if(ot&&(yt+=ot[0]+ot[2]),j.height=yt,j.lineHeight=S(st.textLineHeight,_.textLineHeight,yt),j.textAlign=st&&st.textAlign||_.textAlign,j.textVerticalAlign=st&&st.textVerticalAlign||"middle",Q!=null&&z+j.lineHeight>Q)return{lines:[],width:0,height:0};j.textWidth=o(j.text,vt);var it=st.textWidth,ut=it==null||it==="auto";if(typeof it=="string"&&it.charAt(it.length-1)==="%")j.percentWidth=it,k.push(j),it=0;else{if(ut){it=j.textWidth;var gt=st.textBackgroundColor,Ct=gt&&gt.image;Ct&&(Ct=L.findExistImage(Ct),L.isImageReady(Ct)&&(it=Math.max(it,Ct.width*yt/Ct.height)))}var bt=ot?ot[1]+ot[3]:0;it+=bt;var et=K!=null?K-rt:null;et!=null&&et<it&&(!ut||et<bt?(j.text="",j.textWidth=it=0):(j.text=x(j.text,et-bt,vt,X.ellipsis,{minChar:X.minChar}),j.textWidth=o(j.text,vt),it=j.textWidth+bt))}rt+=j.width=it,st&&(q=Math.max(q,j.lineHeight))}tt.width=rt,tt.lineHeight=q,z+=q,B=Math.max(B,rt)}G.outerWidth=G.width=D(_.textWidth,B),G.outerHeight=G.height=D(_.textHeight,z),Z&&(G.outerWidth+=Z[1]+Z[3],G.outerHeight+=Z[0]+Z[2]);for(var J=0;J<k.length;J++){var j=k[J],lt=j.percentWidth;j.width=parseInt(lt,10)/100*B}return G}function P(N,_,G){for(var F=_==="",W=_.split(`
`),U=N.lines,H=0;H<W.length;H++){var z=W[H],B={styleName:G,text:z,isLineHolder:!z&&!F};if(H)U.push({tokens:[B]});else{var k=(U[U.length-1]||(U[0]={tokens:[]})).tokens,Z=k.length;Z===1&&k[0].isLineHolder?k[0]=B:(z||!Z||F)&&k.push(B)}}}function O(N){var _=(N.fontSize||N.fontFamily)&&[N.fontStyle,N.fontWeight,(N.fontSize||12)+"px",N.fontFamily||"sans-serif"].join(" ");return _&&p(_)||N.textFont||N.font}V.DEFAULT_FONT=a,V.$override=e,V.getWidth=o,V.getBoundingRect=r,V.adjustTextX=f,V.adjustTextY=c,V.calculateTextPosition=d,V.adjustTextPositionOnRect=A,V.truncateText=x,V.getLineHeight=b,V.measureText=I,V.parsePlainText=R,V.parseRichText=E,V.makeFont=O},51052:function(Y,V){var n=Math.PI*2;function T(L){return L%=n,L<0&&(L+=n),L}V.normalizeRadian=T},55041:function(Y){function V(n,T,L,M,w,C){if(C>T&&C>M||C<T&&C<M||M===T)return 0;var D=M<T?1:-1,S=(C-T)/(M-T);(S===1||S===0)&&(D=M<T?.5:-.5);var p=S*(L-n)+n;return p===w?1/0:p>w?D:0}Y.exports=V},27796:function(Y,V,n){var T=n(69008),L=n(35165),M=n(9806),w=function(D){D=D||{},L.call(this,D);for(var S in D)D.hasOwnProperty(S)&&(this[S]=D[S]);this._children=[],this.__storage=null,this.__dirty=!0};w.prototype={constructor:w,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(D){return this._children[D]},childOfName:function(D){for(var S=this._children,p=0;p<S.length;p++)if(S[p].name===D)return S[p]},childCount:function(){return this._children.length},add:function(D){return D&&D!==this&&D.parent!==this&&(this._children.push(D),this._doAdd(D)),this},addBefore:function(D,S){if(D&&D!==this&&D.parent!==this&&S&&S.parent===this){var p=this._children,v=p.indexOf(S);v>=0&&(p.splice(v,0,D),this._doAdd(D))}return this},_doAdd:function(D){D.parent&&D.parent.remove(D),D.parent=this;var S=this.__storage,p=this.__zr;S&&S!==D.__storage&&(S.addToStorage(D),D instanceof w&&D.addChildrenToStorage(S)),p&&p.refresh()},remove:function(D){var S=this.__zr,p=this.__storage,v=this._children,t=T.indexOf(v,D);return t<0?this:(v.splice(t,1),D.parent=null,p&&(p.delFromStorage(D),D instanceof w&&D.delChildrenFromStorage(p)),S&&S.refresh(),this)},removeAll:function(){var D=this._children,S=this.__storage,p,v;for(v=0;v<D.length;v++)p=D[v],S&&(S.delFromStorage(p),p instanceof w&&p.delChildrenFromStorage(S)),p.parent=null;return D.length=0,this},eachChild:function(D,S){for(var p=this._children,v=0;v<p.length;v++){var t=p[v];D.call(S,t,v)}return this},traverse:function(D,S){for(var p=0;p<this._children.length;p++){var v=this._children[p];D.call(S,v),v.type==="group"&&v.traverse(D,S)}return this},addChildrenToStorage:function(D){for(var S=0;S<this._children.length;S++){var p=this._children[S];D.addToStorage(p),p instanceof w&&p.addChildrenToStorage(D)}},delChildrenFromStorage:function(D){for(var S=0;S<this._children.length;S++){var p=this._children[S];D.delFromStorage(p),p instanceof w&&p.delChildrenFromStorage(D)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(D){for(var S=null,p=new M(0,0,0,0),v=D||this._children,t=[],s=0;s<v.length;s++){var i=v[s];if(!(i.ignore||i.invisible)){var a=i.getBoundingRect(),u=i.getLocalTransform(t);u?(p.copy(a),p.applyTransform(u),S=S||p.clone(),S.union(p)):(S=S||a.clone(),S.union(a))}}return S||p}},T.inherits(w,L);var C=w;Y.exports=C},9806:function(Y,V,n){var T=n(47764),L=n(26237),M=T.applyTransform,w=Math.min,C=Math.max;function D(p,v,t,s){t<0&&(p=p+t,t=-t),s<0&&(v=v+s,s=-s),this.x=p,this.y=v,this.width=t,this.height=s}D.prototype={constructor:D,union:function(p){var v=w(p.x,this.x),t=w(p.y,this.y);this.width=C(p.x+p.width,this.x+this.width)-v,this.height=C(p.y+p.height,this.y+this.height)-t,this.x=v,this.y=t},applyTransform:function(){var p=[],v=[],t=[],s=[];return function(i){if(i){p[0]=t[0]=this.x,p[1]=s[1]=this.y,v[0]=s[0]=this.x+this.width,v[1]=t[1]=this.y+this.height,M(p,p,i),M(v,v,i),M(t,t,i),M(s,s,i),this.x=w(p[0],v[0],t[0],s[0]),this.y=w(p[1],v[1],t[1],s[1]);var a=C(p[0],v[0],t[0],s[0]),u=C(p[1],v[1],t[1],s[1]);this.width=a-this.x,this.height=u-this.y}}}(),calculateTransform:function(p){var v=this,t=p.width/v.width,s=p.height/v.height,i=L.create();return L.translate(i,i,[-v.x,-v.y]),L.scale(i,i,[t,s]),L.translate(i,i,[p.x,p.y]),i},intersect:function(p){if(!p)return!1;p instanceof D||(p=D.create(p));var v=this,t=v.x,s=v.x+v.width,i=v.y,a=v.y+v.height,u=p.x,e=p.x+p.width,o=p.y,r=p.y+p.height;return!(s<u||e<t||a<o||r<i)},contain:function(p,v){var t=this;return p>=t.x&&p<=t.x+t.width&&v>=t.y&&v<=t.y+t.height},clone:function(){return new D(this.x,this.y,this.width,this.height)},copy:function(p){this.x=p.x,this.y=p.y,this.width=p.width,this.height=p.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},D.create=function(p){return new D(p.x,p.y,p.width,p.height)};var S=D;Y.exports=S},44420:function(Y,V,n){var T=n(92462),L=function(){this._track=[]};L.prototype={constructor:L,recognize:function(S,p,v){return this._doTrack(S,p,v),this._recognize(S)},clear:function(){return this._track.length=0,this},_doTrack:function(S,p,v){var t=S.touches;if(t){for(var s={points:[],touches:[],target:p,event:S},i=0,a=t.length;i<a;i++){var u=t[i],e=T.clientToLocal(v,u,{});s.points.push([e.zrX,e.zrY]),s.touches.push(u)}this._track.push(s)}},_recognize:function(S){for(var p in C)if(C.hasOwnProperty(p)){var v=C[p](this._track,S);if(v)return v}}};function M(S){var p=S[1][0]-S[0][0],v=S[1][1]-S[0][1];return Math.sqrt(p*p+v*v)}function w(S){return[(S[0][0]+S[1][0])/2,(S[0][1]+S[1][1])/2]}var C={pinch:function(S,p){var v=S.length;if(v){var t=(S[v-1]||{}).points,s=(S[v-2]||{}).points||t;if(s&&s.length>1&&t&&t.length>1){var i=M(t)/M(s);!isFinite(i)&&(i=1),p.pinchScale=i;var a=w(t);return p.pinchX=a[0],p.pinchY=a[1],{type:"pinch",target:S[0].target,event:p}}}}},D=L;Y.exports=D},52498:function(Y){var V=function(){this.head=null,this.tail=null,this._len=0},n=V.prototype;n.insert=function(C){var D=new T(C);return this.insertEntry(D),D},n.insertEntry=function(C){this.head?(this.tail.next=C,C.prev=this.tail,C.next=null,this.tail=C):this.head=this.tail=C,this._len++},n.remove=function(C){var D=C.prev,S=C.next;D?D.next=S:this.head=S,S?S.prev=D:this.tail=D,C.next=C.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var T=function(C){this.value=C,this.next,this.prev},L=function(C){this._list=new V,this._map={},this._maxSize=C||10,this._lastRemovedEntry=null},M=L.prototype;M.put=function(C,D){var S=this._list,p=this._map,v=null;if(p[C]==null){var t=S.len(),s=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var i=S.head;S.remove(i),delete p[i.key],v=i.value,this._lastRemovedEntry=i}s?s.value=D:s=new T(D),s.key=C,S.insertEntry(s),p[C]=s}return v},M.get=function(C){var D=this._map[C],S=this._list;if(D!=null)return D!==S.tail&&(S.remove(D),S.insertEntry(D)),D.value},M.clear=function(){this._list.clear(),this._map={}};var w=L;Y.exports=w},94615:function(Y,V,n){var T=n(22576),L=n(47764),M=n(16254),w=n(9806),C=n(69893),D=C.devicePixelRatio,S={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},p=[],v=[],t=[],s=[],i=Math.min,a=Math.max,u=Math.cos,e=Math.sin,o=Math.sqrt,r=Math.abs,l=typeof Float32Array!="undefined",h=function(c){this._saveData=!c,this._saveData&&(this.data=[]),this._ctx=null};h.prototype={constructor:h,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(c,d,A){A=A||0,this._ux=r(A/D/c)||0,this._uy=r(A/D/d)||0},getContext:function(){return this._ctx},beginPath:function(c){return this._ctx=c,c&&c.beginPath(),c&&(this.dpr=c.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(c,d){return this.addData(S.M,c,d),this._ctx&&this._ctx.moveTo(c,d),this._x0=c,this._y0=d,this._xi=c,this._yi=d,this},lineTo:function(c,d){var A=r(c-this._xi)>this._ux||r(d-this._yi)>this._uy||this._len<5;return this.addData(S.L,c,d),this._ctx&&A&&(this._needsDash()?this._dashedLineTo(c,d):this._ctx.lineTo(c,d)),A&&(this._xi=c,this._yi=d),this},bezierCurveTo:function(c,d,A,x,y,g){return this.addData(S.C,c,d,A,x,y,g),this._ctx&&(this._needsDash()?this._dashedBezierTo(c,d,A,x,y,g):this._ctx.bezierCurveTo(c,d,A,x,y,g)),this._xi=y,this._yi=g,this},quadraticCurveTo:function(c,d,A,x){return this.addData(S.Q,c,d,A,x),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(c,d,A,x):this._ctx.quadraticCurveTo(c,d,A,x)),this._xi=A,this._yi=x,this},arc:function(c,d,A,x,y,g){return this.addData(S.A,c,d,A,A,x,y-x,0,g?0:1),this._ctx&&this._ctx.arc(c,d,A,x,y,g),this._xi=u(y)*A+c,this._yi=e(y)*A+d,this},arcTo:function(c,d,A,x,y){return this._ctx&&this._ctx.arcTo(c,d,A,x,y),this},rect:function(c,d,A,x){return this._ctx&&this._ctx.rect(c,d,A,x),this.addData(S.R,c,d,A,x),this},closePath:function(){this.addData(S.Z);var c=this._ctx,d=this._x0,A=this._y0;return c&&(this._needsDash()&&this._dashedLineTo(d,A),c.closePath()),this._xi=d,this._yi=A,this},fill:function(c){c&&c.fill(),this.toStatic()},stroke:function(c){c&&c.stroke(),this.toStatic()},setLineDash:function(c){if(c instanceof Array){this._lineDash=c,this._dashIdx=0;for(var d=0,A=0;A<c.length;A++)d+=c[A];this._dashSum=d}return this},setLineDashOffset:function(c){return this._dashOffset=c,this},len:function(){return this._len},setData:function(c){var d=c.length;!(this.data&&this.data.length===d)&&l&&(this.data=new Float32Array(d));for(var A=0;A<d;A++)this.data[A]=c[A];this._len=d},appendPath:function(c){c instanceof Array||(c=[c]);for(var d=c.length,A=0,x=this._len,y=0;y<d;y++)A+=c[y].len();l&&this.data instanceof Float32Array&&(this.data=new Float32Array(x+A));for(var y=0;y<d;y++)for(var g=c[y].data,m=0;m<g.length;m++)this.data[x++]=g[m];this._len=x},addData:function(c){if(this._saveData){var d=this.data;this._len+arguments.length>d.length&&(this._expandData(),d=this.data);for(var A=0;A<arguments.length;A++)d[this._len++]=arguments[A];this._prevCmd=c}},_expandData:function(){if(!(this.data instanceof Array)){for(var c=[],d=0;d<this._len;d++)c[d]=this.data[d];this.data=c}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(c,d){var A=this._dashSum,x=this._dashOffset,y=this._lineDash,g=this._ctx,m=this._xi,b=this._yi,I=c-m,R=d-b,E=o(I*I+R*R),P=m,O=b,N,_=y.length,G;for(I/=E,R/=E,x<0&&(x=A+x),x%=A,P-=x*I,O-=x*R;I>0&&P<=c||I<0&&P>=c||I===0&&(R>0&&O<=d||R<0&&O>=d);)G=this._dashIdx,N=y[G],P+=I*N,O+=R*N,this._dashIdx=(G+1)%_,!(I>0&&P<m||I<0&&P>m||R>0&&O<b||R<0&&O>b)&&g[G%2?"moveTo":"lineTo"](I>=0?i(P,c):a(P,c),R>=0?i(O,d):a(O,d));I=P-c,R=O-d,this._dashOffset=-o(I*I+R*R)},_dashedBezierTo:function(c,d,A,x,y,g){var m=this._dashSum,b=this._dashOffset,I=this._lineDash,R=this._ctx,E=this._xi,P=this._yi,O,N,_,G=T.cubicAt,F=0,W=this._dashIdx,U=I.length,H,z,B=0;for(b<0&&(b=m+b),b%=m,O=0;O<1;O+=.1)N=G(E,c,A,y,O+.1)-G(E,c,A,y,O),_=G(P,d,x,g,O+.1)-G(P,d,x,g,O),F+=o(N*N+_*_);for(;W<U&&(B+=I[W],!(B>b));W++);for(O=(B-b)/F;O<=1;)H=G(E,c,A,y,O),z=G(P,d,x,g,O),W%2?R.moveTo(H,z):R.lineTo(H,z),O+=I[W]/F,W=(W+1)%U;W%2!==0&&R.lineTo(y,g),N=y-H,_=g-z,this._dashOffset=-o(N*N+_*_)},_dashedQuadraticTo:function(c,d,A,x){var y=A,g=x;A=(A+2*c)/3,x=(x+2*d)/3,c=(this._xi+2*c)/3,d=(this._yi+2*d)/3,this._dashedBezierTo(c,d,A,x,y,g)},toStatic:function(){var c=this.data;c instanceof Array&&(c.length=this._len,l&&(this.data=new Float32Array(c)))},getBoundingRect:function(){p[0]=p[1]=t[0]=t[1]=Number.MAX_VALUE,v[0]=v[1]=s[0]=s[1]=-Number.MAX_VALUE;for(var c=this.data,d=0,A=0,x=0,y=0,g=0;g<c.length;){var m=c[g++];switch(g===1&&(d=c[g],A=c[g+1],x=d,y=A),m){case S.M:x=c[g++],y=c[g++],d=x,A=y,t[0]=x,t[1]=y,s[0]=x,s[1]=y;break;case S.L:M.fromLine(d,A,c[g],c[g+1],t,s),d=c[g++],A=c[g++];break;case S.C:M.fromCubic(d,A,c[g++],c[g++],c[g++],c[g++],c[g],c[g+1],t,s),d=c[g++],A=c[g++];break;case S.Q:M.fromQuadratic(d,A,c[g++],c[g++],c[g],c[g+1],t,s),d=c[g++],A=c[g++];break;case S.A:var b=c[g++],I=c[g++],R=c[g++],E=c[g++],P=c[g++],O=c[g++]+P;g+=1;var N=1-c[g++];g===1&&(x=u(P)*R+b,y=e(P)*E+I),M.fromArc(b,I,R,E,P,O,N,t,s),d=u(O)*R+b,A=e(O)*E+I;break;case S.R:x=d=c[g++],y=A=c[g++];var _=c[g++],G=c[g++];M.fromLine(x,y,x+_,y+G,t,s);break;case S.Z:d=x,A=y;break}L.min(p,p,t),L.max(v,v,s)}return g===0&&(p[0]=p[1]=v[0]=v[1]=0),new w(p[0],p[1],v[0]-p[0],v[1]-p[1])},rebuildPath:function(c){for(var d=this.data,A,x,y,g,m,b,I=this._ux,R=this._uy,E=this._len,P=0;P<E;){var O=d[P++];switch(P===1&&(y=d[P],g=d[P+1],A=y,x=g),O){case S.M:A=y=d[P++],x=g=d[P++],c.moveTo(y,g);break;case S.L:m=d[P++],b=d[P++],(r(m-y)>I||r(b-g)>R||P===E-1)&&(c.lineTo(m,b),y=m,g=b);break;case S.C:c.bezierCurveTo(d[P++],d[P++],d[P++],d[P++],d[P++],d[P++]),y=d[P-2],g=d[P-1];break;case S.Q:c.quadraticCurveTo(d[P++],d[P++],d[P++],d[P++]),y=d[P-2],g=d[P-1];break;case S.A:var N=d[P++],_=d[P++],G=d[P++],F=d[P++],W=d[P++],U=d[P++],H=d[P++],z=d[P++],B=G>F?G:F,k=G>F?1:G/F,Z=G>F?F/G:1,X=Math.abs(G-F)>.001,K=W+U;X?(c.translate(N,_),c.rotate(H),c.scale(k,Z),c.arc(0,0,B,W,K,1-z),c.scale(1/k,1/Z),c.rotate(-H),c.translate(-N,-_)):c.arc(N,_,B,W,K,1-z),P===1&&(A=u(W)*G+N,x=e(W)*F+_),y=u(K)*G+N,g=e(K)*F+_;break;case S.R:A=y=d[P],x=g=d[P+1],c.rect(d[P++],d[P++],d[P++],d[P++]);break;case S.Z:c.closePath(),y=A,g=x}}}},h.CMD=S;var f=h;Y.exports=f},9262:function(Y){function V(){}V.prototype={diff:function(w,C,D){D||(D=function(l,h){return l===h}),this.equals=D;var S=this;w=w.slice(),C=C.slice();var p=C.length,v=w.length,t=1,s=p+v,i=[{newPos:-1,components:[]}],a=this.extractCommon(i[0],C,w,0);if(i[0].newPos+1>=p&&a+1>=v){for(var u=[],e=0;e<C.length;e++)u.push(e);return[{indices:u,count:C.length}]}function o(){for(var l=-1*t;l<=t;l+=2){var h,f=i[l-1],c=i[l+1],d=(c?c.newPos:0)-l;f&&(i[l-1]=void 0);var A=f&&f.newPos+1<p,x=c&&0<=d&&d<v;if(!A&&!x){i[l]=void 0;continue}if(!A||x&&f.newPos<c.newPos?(h=T(c),S.pushComponent(h.components,void 0,!0)):(h=f,h.newPos++,S.pushComponent(h.components,!0,void 0)),d=S.extractCommon(h,C,w,l),h.newPos+1>=p&&d+1>=v)return n(S,h.components,C,w);i[l]=h}t++}for(;t<=s;){var r=o();if(r)return r}},pushComponent:function(w,C,D){var S=w[w.length-1];S&&S.added===C&&S.removed===D?w[w.length-1]={count:S.count+1,added:C,removed:D}:w.push({count:1,added:C,removed:D})},extractCommon:function(w,C,D,S){for(var p=C.length,v=D.length,t=w.newPos,s=t-S,i=0;t+1<p&&s+1<v&&this.equals(C[t+1],D[s+1]);)t++,s++,i++;return i&&w.components.push({count:i}),w.newPos=t,s},tokenize:function(w){return w.slice()},join:function(w){return w.slice()}};function n(w,C,D,S){for(var p=0,v=C.length,t=0,s=0;p<v;p++){var i=C[p];if(i.removed){for(var a=[],u=s;u<s+i.count;u++)a.push(u);i.indices=a,s+=i.count}else{for(var a=[],u=t;u<t+i.count;u++)a.push(u);i.indices=a,t+=i.count,i.added||(s+=i.count)}}return C}function T(w){return{newPos:w.newPos,components:w.components.slice(0)}}var L=new V;function M(w,C,D){return L.diff(w,C,D)}Y.exports=M},16254:function(Y,V,n){var T=n(47764),L=n(22576),M=Math.min,w=Math.max,C=Math.sin,D=Math.cos,S=Math.PI*2,p=T.create(),v=T.create(),t=T.create();function s(l,h,f){if(l.length!==0){var c=l[0],d=c[0],A=c[0],x=c[1],y=c[1],g;for(g=1;g<l.length;g++)c=l[g],d=M(d,c[0]),A=w(A,c[0]),x=M(x,c[1]),y=w(y,c[1]);h[0]=d,h[1]=x,f[0]=A,f[1]=y}}function i(l,h,f,c,d,A){d[0]=M(l,f),d[1]=M(h,c),A[0]=w(l,f),A[1]=w(h,c)}var a=[],u=[];function e(l,h,f,c,d,A,x,y,g,m){var b=L.cubicExtrema,I=L.cubicAt,R,E=b(l,f,d,x,a);for(g[0]=1/0,g[1]=1/0,m[0]=-1/0,m[1]=-1/0,R=0;R<E;R++){var P=I(l,f,d,x,a[R]);g[0]=M(P,g[0]),m[0]=w(P,m[0])}for(E=b(h,c,A,y,u),R=0;R<E;R++){var O=I(h,c,A,y,u[R]);g[1]=M(O,g[1]),m[1]=w(O,m[1])}g[0]=M(l,g[0]),m[0]=w(l,m[0]),g[0]=M(x,g[0]),m[0]=w(x,m[0]),g[1]=M(h,g[1]),m[1]=w(h,m[1]),g[1]=M(y,g[1]),m[1]=w(y,m[1])}function o(l,h,f,c,d,A,x,y){var g=L.quadraticExtremum,m=L.quadraticAt,b=w(M(g(l,f,d),1),0),I=w(M(g(h,c,A),1),0),R=m(l,f,d,b),E=m(h,c,A,I);x[0]=M(l,d,R),x[1]=M(h,A,E),y[0]=w(l,d,R),y[1]=w(h,A,E)}function r(l,h,f,c,d,A,x,y,g){var m=T.min,b=T.max,I=Math.abs(d-A);if(I%S<1e-4&&I>1e-4){y[0]=l-f,y[1]=h-c,g[0]=l+f,g[1]=h+c;return}if(p[0]=D(d)*f+l,p[1]=C(d)*c+h,v[0]=D(A)*f+l,v[1]=C(A)*c+h,m(y,p,v),b(g,p,v),d=d%S,d<0&&(d=d+S),A=A%S,A<0&&(A=A+S),d>A&&!x?A+=S:d<A&&x&&(d+=S),x){var R=A;A=d,d=R}for(var E=0;E<A;E+=Math.PI/2)E>d&&(t[0]=D(E)*f+l,t[1]=C(E)*c+h,m(y,t,y),b(g,t,g))}V.fromPoints=s,V.fromLine=i,V.fromCubic=e,V.fromQuadratic=o,V.fromArc=r},22576:function(Y,V,n){var T=n(47764),L=T.create,M=T.distSquare,w=Math.pow,C=Math.sqrt,D=1e-8,S=1e-4,p=C(3),v=1/3,t=L(),s=L(),i=L();function a(m){return m>-D&&m<D}function u(m){return m>D||m<-D}function e(m,b,I,R,E){var P=1-E;return P*P*(P*m+3*E*b)+E*E*(E*R+3*P*I)}function o(m,b,I,R,E){var P=1-E;return 3*(((b-m)*P+2*(I-b)*E)*P+(R-I)*E*E)}function r(m,b,I,R,E,P){var O=R+3*(b-I)-m,N=3*(I-b*2+m),_=3*(b-m),G=m-E,F=N*N-3*O*_,W=N*_-9*O*G,U=_*_-3*N*G,H=0;if(a(F)&&a(W))if(a(N))P[0]=0;else{var z=-_/N;z>=0&&z<=1&&(P[H++]=z)}else{var B=W*W-4*F*U;if(a(B)){var k=W/F,z=-N/O+k,Z=-k/2;z>=0&&z<=1&&(P[H++]=z),Z>=0&&Z<=1&&(P[H++]=Z)}else if(B>0){var X=C(B),K=F*N+1.5*O*(-W+X),Q=F*N+1.5*O*(-W-X);K<0?K=-w(-K,v):K=w(K,v),Q<0?Q=-w(-Q,v):Q=w(Q,v);var z=(-N-(K+Q))/(3*O);z>=0&&z<=1&&(P[H++]=z)}else{var J=(2*F*N-3*O*W)/(2*C(F*F*F)),tt=Math.acos(J)/3,q=C(F),rt=Math.cos(tt),z=(-N-2*q*rt)/(3*O),Z=(-N+q*(rt+p*Math.sin(tt)))/(3*O),$=(-N+q*(rt-p*Math.sin(tt)))/(3*O);z>=0&&z<=1&&(P[H++]=z),Z>=0&&Z<=1&&(P[H++]=Z),$>=0&&$<=1&&(P[H++]=$)}}return H}function l(m,b,I,R,E){var P=6*I-12*b+6*m,O=9*b+3*R-3*m-9*I,N=3*b-3*m,_=0;if(a(O)){if(u(P)){var G=-N/P;G>=0&&G<=1&&(E[_++]=G)}}else{var F=P*P-4*O*N;if(a(F))E[0]=-P/(2*O);else if(F>0){var W=C(F),G=(-P+W)/(2*O),U=(-P-W)/(2*O);G>=0&&G<=1&&(E[_++]=G),U>=0&&U<=1&&(E[_++]=U)}}return _}function h(m,b,I,R,E,P){var O=(b-m)*E+m,N=(I-b)*E+b,_=(R-I)*E+I,G=(N-O)*E+O,F=(_-N)*E+N,W=(F-G)*E+G;P[0]=m,P[1]=O,P[2]=G,P[3]=W,P[4]=W,P[5]=F,P[6]=_,P[7]=R}function f(m,b,I,R,E,P,O,N,_,G,F){var W,U=.005,H=1/0,z,B,k,Z;t[0]=_,t[1]=G;for(var X=0;X<1;X+=.05)s[0]=e(m,I,E,O,X),s[1]=e(b,R,P,N,X),k=M(t,s),k<H&&(W=X,H=k);H=1/0;for(var K=0;K<32&&!(U<S);K++)z=W-U,B=W+U,s[0]=e(m,I,E,O,z),s[1]=e(b,R,P,N,z),k=M(s,t),z>=0&&k<H?(W=z,H=k):(i[0]=e(m,I,E,O,B),i[1]=e(b,R,P,N,B),Z=M(i,t),B<=1&&Z<H?(W=B,H=Z):U*=.5);return F&&(F[0]=e(m,I,E,O,W),F[1]=e(b,R,P,N,W)),C(H)}function c(m,b,I,R){var E=1-R;return E*(E*m+2*R*b)+R*R*I}function d(m,b,I,R){return 2*((1-R)*(b-m)+R*(I-b))}function A(m,b,I,R,E){var P=m-2*b+I,O=2*(b-m),N=m-R,_=0;if(a(P)){if(u(O)){var G=-N/O;G>=0&&G<=1&&(E[_++]=G)}}else{var F=O*O-4*P*N;if(a(F)){var G=-O/(2*P);G>=0&&G<=1&&(E[_++]=G)}else if(F>0){var W=C(F),G=(-O+W)/(2*P),U=(-O-W)/(2*P);G>=0&&G<=1&&(E[_++]=G),U>=0&&U<=1&&(E[_++]=U)}}return _}function x(m,b,I){var R=m+I-2*b;return R===0?.5:(m-b)/R}function y(m,b,I,R,E){var P=(b-m)*R+m,O=(I-b)*R+b,N=(O-P)*R+P;E[0]=m,E[1]=P,E[2]=N,E[3]=N,E[4]=O,E[5]=I}function g(m,b,I,R,E,P,O,N,_){var G,F=.005,W=1/0;t[0]=O,t[1]=N;for(var U=0;U<1;U+=.05){s[0]=c(m,I,E,U),s[1]=c(b,R,P,U);var H=M(t,s);H<W&&(G=U,W=H)}W=1/0;for(var z=0;z<32&&!(F<S);z++){var B=G-F,k=G+F;s[0]=c(m,I,E,B),s[1]=c(b,R,P,B);var H=M(s,t);if(B>=0&&H<W)G=B,W=H;else{i[0]=c(m,I,E,k),i[1]=c(b,R,P,k);var Z=M(i,t);k<=1&&Z<W?(G=k,W=Z):F*=.5}}return _&&(_[0]=c(m,I,E,G),_[1]=c(b,R,P,G)),C(W)}V.cubicAt=e,V.cubicDerivativeAt=o,V.cubicRootAt=r,V.cubicExtrema=l,V.cubicSubdivide=h,V.cubicProjectPoint=f,V.quadraticAt=c,V.quadraticDerivativeAt=d,V.quadraticRootAt=A,V.quadraticExtremum=x,V.quadraticSubdivide=y,V.quadraticProjectPoint=g},12513:function(Y,V,n){var T=n(12973),L=n(3702),M=L.buildTransformer,w="___zrEVENTSAVED",C=[];function D(s,i,a,u,e){return S(C,i,u,e,!0)&&S(s,a,C[0],C[1])}function S(s,i,a,u,e){if(i.getBoundingClientRect&&T.domSupported&&!t(i)){var o=i[w]||(i[w]={}),r=p(i,o),l=v(r,o,e);if(l)return l(s,a,u),!0}return!1}function p(s,i){var a=i.markers;if(a)return a;a=i.markers=[];for(var u=["left","right"],e=["top","bottom"],o=0;o<4;o++){var r=document.createElement("div"),l=r.style,h=o%2,f=(o>>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[h]+":0",e[f]+":0",u[1-h]+":auto",e[1-f]+":auto",""].join("!important;"),s.appendChild(r),a.push(r)}return a}function v(s,i,a){for(var u=a?"invTrans":"trans",e=i[u],o=i.srcCoords,r=!0,l=[],h=[],f=0;f<4;f++){var c=s[f].getBoundingClientRect(),d=2*f,A=c.left,x=c.top;l.push(A,x),r=r&&o&&A===o[d]&&x===o[d+1],h.push(s[f].offsetLeft,s[f].offsetTop)}return r&&e?e:(i.srcCoords=l,i[u]=a?M(h,l):M(l,h))}function t(s){return s.nodeName.toUpperCase()==="CANVAS"}V.transformLocalCoord=D,V.transformCoordWithViewport=S,V.isCanvasEl=t},12973:function(Y){var V={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?V={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?V={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?V={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:V=T(navigator.userAgent);var n=V;function T(L){var M={},w={},C=L.match(/Firefox\/([\d.]+)/),D=L.match(/MSIE\s([\d.]+)/)||L.match(/Trident\/.+?rv:(([\d.]+))/),S=L.match(/Edge\/([\d.]+)/),p=/micromessenger/i.test(L);return C&&(w.firefox=!0,w.version=C[1]),D&&(w.ie=!0,w.version=D[1]),S&&(w.edge=!0,w.version=S[1]),p&&(w.weChat=!0),{browser:w,os:M,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!w.ie&&!w.edge,pointerEventsSupported:"onpointerdown"in window&&(w.edge||w.ie&&w.version>=11),domSupported:typeof document!="undefined"}}Y.exports=n},92462:function(Y,V,n){var T=n(37283);V.Dispatcher=T;var L=n(12973),M=n(12513),w=M.isCanvasEl,C=M.transformCoordWithViewport,D=typeof window!="undefined"&&!!window.addEventListener,S=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,p=[];function v(l,h,f,c){return f=f||{},c||!L.canvasSupported?t(l,h,f):L.browser.firefox&&h.layerX!=null&&h.layerX!==h.offsetX?(f.zrX=h.layerX,f.zrY=h.layerY):h.offsetX!=null?(f.zrX=h.offsetX,f.zrY=h.offsetY):t(l,h,f),f}function t(l,h,f){if(L.domSupported&&l.getBoundingClientRect){var c=h.clientX,d=h.clientY;if(w(l)){var A=l.getBoundingClientRect();f.zrX=c-A.left,f.zrY=d-A.top;return}else if(C(p,l,c,d)){f.zrX=p[0],f.zrY=p[1];return}}f.zrX=f.zrY=0}function s(l){return l||window.event}function i(l,h,f){if(h=s(h),h.zrX!=null)return h;var c=h.type,d=c&&c.indexOf("touch")>=0;if(!d)v(l,h,h,f),h.zrDelta=h.wheelDelta?h.wheelDelta/120:-(h.detail||0)/3;else{var A=c!=="touchend"?h.targetTouches[0]:h.changedTouches[0];A&&v(l,A,h,f)}var x=h.button;return h.which==null&&x!==void 0&&S.test(h.type)&&(h.which=x&1?1:x&2?3:x&4?2:0),h}function a(l,h,f,c){D?l.addEventListener(h,f,c):l.attachEvent("on"+h,f)}function u(l,h,f,c){D?l.removeEventListener(h,f,c):l.detachEvent("on"+h,f)}var e=D?function(l){l.preventDefault(),l.stopPropagation(),l.cancelBubble=!0}:function(l){l.returnValue=!1,l.cancelBubble=!0};function o(l){return l.which===2||l.which===3}function r(l){return l.which>1}V.clientToLocal=v,V.getNativeEvent=s,V.normalizeEvent=i,V.addEventListener=a,V.removeEventListener=u,V.stop=e,V.isMiddleOrRightButtonOnMouseUpDown=o,V.notLeftMouse=r},3702:function(Y,V){var n=Math.log(2);function T(M,w,C,D,S,p){var v=D+"-"+S,t=M.length;if(p.hasOwnProperty(v))return p[v];if(w===1){var s=Math.round(Math.log((1<<t)-1&~S)/n);return M[C][s]}for(var i=D|1<<C,a=C+1;D&1<<a;)a++;for(var u=0,e=0,o=0;e<t;e++){var r=1<<e;r&S||(u+=(o%2?-1:1)*M[C][e]*T(M,w-1,a,i,S|r,p),o++)}return p[v]=u,u}function L(M,w){var C=[[M[0],M[1],1,0,0,0,-w[0]*M[0],-w[0]*M[1]],[0,0,0,M[0],M[1],1,-w[1]*M[0],-w[1]*M[1]],[M[2],M[3],1,0,0,0,-w[2]*M[2],-w[2]*M[3]],[0,0,0,M[2],M[3],1,-w[3]*M[2],-w[3]*M[3]],[M[4],M[5],1,0,0,0,-w[4]*M[4],-w[4]*M[5]],[0,0,0,M[4],M[5],1,-w[5]*M[4],-w[5]*M[5]],[M[6],M[7],1,0,0,0,-w[6]*M[6],-w[6]*M[7]],[0,0,0,M[6],M[7],1,-w[7]*M[6],-w[7]*M[7]]],D={},S=T(C,8,0,0,0,D);if(S!==0){for(var p=[],v=0;v<8;v++)for(var t=0;t<8;t++)p[t]==null&&(p[t]=0),p[t]+=((v+t)%2?-1:1)*T(C,7,v===0?1:0,1<<v,1<<t,D)/S*w[v];return function(s,i,a){var u=i*p[6]+a*p[7]+1;s[0]=(i*p[0]+a*p[1]+p[2])/u,s[1]=(i*p[3]+a*p[4]+p[5])/u}}}V.buildTransformer=L},92385:function(Y){var V=2311;function n(){return V++}Y.exports=n},32445:function(Y,V,n){var T=n(69893),L=T.debugMode,M=function(){};L===1&&(M=console.error);var w=M;Y.exports=w},26237:function(Y,V){var n=typeof Float32Array=="undefined"?Array:Float32Array;function T(){var t=new n(6);return L(t),t}function L(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function M(t,s){return t[0]=s[0],t[1]=s[1],t[2]=s[2],t[3]=s[3],t[4]=s[4],t[5]=s[5],t}function w(t,s,i){var a=s[0]*i[0]+s[2]*i[1],u=s[1]*i[0]+s[3]*i[1],e=s[0]*i[2]+s[2]*i[3],o=s[1]*i[2]+s[3]*i[3],r=s[0]*i[4]+s[2]*i[5]+s[4],l=s[1]*i[4]+s[3]*i[5]+s[5];return t[0]=a,t[1]=u,t[2]=e,t[3]=o,t[4]=r,t[5]=l,t}function C(t,s,i){return t[0]=s[0],t[1]=s[1],t[2]=s[2],t[3]=s[3],t[4]=s[4]+i[0],t[5]=s[5]+i[1],t}function D(t,s,i){var a=s[0],u=s[2],e=s[4],o=s[1],r=s[3],l=s[5],h=Math.sin(i),f=Math.cos(i);return t[0]=a*f+o*h,t[1]=-a*h+o*f,t[2]=u*f+r*h,t[3]=-u*h+f*r,t[4]=f*e+h*l,t[5]=f*l-h*e,t}function S(t,s,i){var a=i[0],u=i[1];return t[0]=s[0]*a,t[1]=s[1]*u,t[2]=s[2]*a,t[3]=s[3]*u,t[4]=s[4]*a,t[5]=s[5]*u,t}function p(t,s){var i=s[0],a=s[2],u=s[4],e=s[1],o=s[3],r=s[5],l=i*o-e*a;return l?(l=1/l,t[0]=o*l,t[1]=-e*l,t[2]=-a*l,t[3]=i*l,t[4]=(a*r-o*u)*l,t[5]=(e*u-i*r)*l,t):null}function v(t){var s=T();return M(s,t),s}V.create=T,V.identity=L,V.copy=M,V.mul=w,V.translate=C,V.rotate=D,V.scale=S,V.invert=p,V.clone=v},78083:function(Y){var V=32,n=7,T=256;function L(t){for(var s=0;t>=V;)s|=t&1,t>>=1;return t+s}function M(t,s,i,a){var u=s+1;if(u===i)return 1;if(a(t[u++],t[s])<0){for(;u<i&&a(t[u],t[u-1])<0;)u++;w(t,s,u)}else for(;u<i&&a(t[u],t[u-1])>=0;)u++;return u-s}function w(t,s,i){for(i--;s<i;){var a=t[s];t[s++]=t[i],t[i--]=a}}function C(t,s,i,a,u){for(a===s&&a++;a<i;a++){for(var e=t[a],o=s,r=a,l;o<r;)l=o+r>>>1,u(e,t[l])<0?r=l:o=l+1;var h=a-o;switch(h){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;h>0;)t[o+h]=t[o+h-1],h--}t[o]=e}}function D(t,s,i,a,u,e){var o=0,r=0,l=1;if(e(t,s[i+u])>0){for(r=a-u;l<r&&e(t,s[i+u+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=r);l>r&&(l=r),o+=u,l+=u}else{for(r=u+1;l<r&&e(t,s[i+u-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=r);l>r&&(l=r);var h=o;o=u-l,l=u-h}for(o++;o<l;){var f=o+(l-o>>>1);e(t,s[i+f])>0?o=f+1:l=f}return l}function S(t,s,i,a,u,e){var o=0,r=0,l=1;if(e(t,s[i+u])<0){for(r=u+1;l<r&&e(t,s[i+u-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=r);l>r&&(l=r);var h=o;o=u-l,l=u-h}else{for(r=a-u;l<r&&e(t,s[i+u+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=r);l>r&&(l=r),o+=u,l+=u}for(o++;o<l;){var f=o+(l-o>>>1);e(t,s[i+f])<0?l=f:o=f+1}return l}function p(t,s){var i=n,a=0,u=T,e=0,o,r,l=0;a=t.length,a<2*T&&(u=a>>>1);var h=[];e=a<120?5:a<1542?10:a<119151?19:40,o=[],r=[];function f(g,m){o[l]=g,r[l]=m,l+=1}function c(){for(;l>1;){var g=l-2;if(g>=1&&r[g-1]<=r[g]+r[g+1]||g>=2&&r[g-2]<=r[g]+r[g-1])r[g-1]<r[g+1]&&g--;else if(r[g]>r[g+1])break;A(g)}}function d(){for(;l>1;){var g=l-2;g>0&&r[g-1]<r[g+1]&&g--,A(g)}}function A(g){var m=o[g],b=r[g],I=o[g+1],R=r[g+1];r[g]=b+R,g===l-3&&(o[g+1]=o[g+2],r[g+1]=r[g+2]),l--;var E=S(t[I],t,m,b,0,s);m+=E,b-=E,b!==0&&(R=D(t[m+b-1],t,I,R,R-1,s),R!==0&&(b<=R?x(m,b,I,R):y(m,b,I,R)))}function x(g,m,b,I){var R=0;for(R=0;R<m;R++)h[R]=t[g+R];var E=0,P=b,O=g;if(t[O++]=t[P++],--I===0){for(R=0;R<m;R++)t[O+R]=h[E+R];return}if(m===1){for(R=0;R<I;R++)t[O+R]=t[P+R];t[O+I]=h[E];return}for(var N=i,_,G,F;;){_=0,G=0,F=!1;do if(s(t[P],h[E])<0){if(t[O++]=t[P++],G++,_=0,--I===0){F=!0;break}}else if(t[O++]=h[E++],_++,G=0,--m===1){F=!0;break}while((_|G)<N);if(F)break;do{if(_=S(t[P],h,E,m,0,s),_!==0){for(R=0;R<_;R++)t[O+R]=h[E+R];if(O+=_,E+=_,m-=_,m<=1){F=!0;break}}if(t[O++]=t[P++],--I===0){F=!0;break}if(G=D(h[E],t,P,I,0,s),G!==0){for(R=0;R<G;R++)t[O+R]=t[P+R];if(O+=G,P+=G,I-=G,I===0){F=!0;break}}if(t[O++]=h[E++],--m===1){F=!0;break}N--}while(_>=n||G>=n);if(F)break;N<0&&(N=0),N+=2}if(i=N,i<1&&(i=1),m===1){for(R=0;R<I;R++)t[O+R]=t[P+R];t[O+I]=h[E]}else{if(m===0)throw new Error;for(R=0;R<m;R++)t[O+R]=h[E+R]}}function y(g,m,b,I){var R=0;for(R=0;R<I;R++)h[R]=t[b+R];var E=g+m-1,P=I-1,O=b+I-1,N=0,_=0;if(t[O--]=t[E--],--m===0){for(N=O-(I-1),R=0;R<I;R++)t[N+R]=h[R];return}if(I===1){for(O-=m,E-=m,_=O+1,N=E+1,R=m-1;R>=0;R--)t[_+R]=t[N+R];t[O]=h[P];return}for(var G=i;;){var F=0,W=0,U=!1;do if(s(h[P],t[E])<0){if(t[O--]=t[E--],F++,W=0,--m===0){U=!0;break}}else if(t[O--]=h[P--],W++,F=0,--I===1){U=!0;break}while((F|W)<G);if(U)break;do{if(F=m-S(h[P],t,g,m,m-1,s),F!==0){for(O-=F,E-=F,m-=F,_=O+1,N=E+1,R=F-1;R>=0;R--)t[_+R]=t[N+R];if(m===0){U=!0;break}}if(t[O--]=h[P--],--I===1){U=!0;break}if(W=I-D(t[E],h,0,I,I-1,s),W!==0){for(O-=W,P-=W,I-=W,_=O+1,N=P+1,R=0;R<W;R++)t[_+R]=h[N+R];if(I<=1){U=!0;break}}if(t[O--]=t[E--],--m===0){U=!0;break}G--}while(F>=n||W>=n);if(U)break;G<0&&(G=0),G+=2}if(i=G,i<1&&(i=1),I===1){for(O-=m,E-=m,_=O+1,N=E+1,R=m-1;R>=0;R--)t[_+R]=t[N+R];t[O]=h[P]}else{if(I===0)throw new Error;for(N=O-(I-1),R=0;R<I;R++)t[N+R]=h[R]}}this.mergeRuns=c,this.forceMergeRuns=d,this.pushRun=f}function v(t,s,i,a){i||(i=0),a||(a=t.length);var u=a-i;if(!(u<2)){var e=0;if(u<V){e=M(t,i,a,s),C(t,i,a,i+e,s);return}var o=new p(t,s),r=L(u);do{if(e=M(t,i,a,s),e<r){var l=u;l>r&&(l=r),C(t,i,i+l,i+e,s),e=l}o.pushRun(i,e),o.mergeRuns(),u-=e,i+=e}while(u!==0);o.forceMergeRuns()}}Y.exports=v},69008:function(Y,V){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},T={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},L=Object.prototype.toString,M=Array.prototype,w=M.forEach,C=M.filter,D=M.slice,S=M.map,p=M.reduce,v={};function t($,j){$==="createCanvas"&&(r=null),v[$]=j}function s($){if($==null||typeof $!="object")return $;var j=$,st=L.call($);if(st==="[object Array]"){if(!Q($)){j=[];for(var ot=0,vt=$.length;ot<vt;ot++)j[ot]=s($[ot])}}else if(T[st]){if(!Q($)){var yt=$.constructor;if($.constructor.from)j=yt.from($);else{j=new yt($.length);for(var ot=0,vt=$.length;ot<vt;ot++)j[ot]=s($[ot])}}}else if(!n[st]&&!Q($)&&!G($)){j={};for(var it in $)$.hasOwnProperty(it)&&(j[it]=s($[it]))}return j}function i($,j,st){if(!O(j)||!O($))return st?s(j):$;for(var ot in j)if(j.hasOwnProperty(ot)){var vt=$[ot],yt=j[ot];O(yt)&&O(vt)&&!R(yt)&&!R(vt)&&!G(yt)&&!G(vt)&&!N(yt)&&!N(vt)&&!Q(yt)&&!Q(vt)?i(vt,yt,st):(st||!(ot in $))&&($[ot]=s(j[ot],!0))}return $}function a($,j){for(var st=$[0],ot=1,vt=$.length;ot<vt;ot++)st=i(st,$[ot],j);return st}function u($,j){for(var st in j)j.hasOwnProperty(st)&&($[st]=j[st]);return $}function e($,j,st){for(var ot in j)j.hasOwnProperty(ot)&&(st?j[ot]!=null:$[ot]==null)&&($[ot]=j[ot]);return $}var o=function(){return v.createCanvas()};v.createCanvas=function(){return document.createElement("canvas")};var r;function l(){return r||(r=o().getContext("2d")),r}function h($,j){if($){if($.indexOf)return $.indexOf(j);for(var st=0,ot=$.length;st<ot;st++)if($[st]===j)return st}return-1}function f($,j){var st=$.prototype;function ot(){}ot.prototype=j.prototype,$.prototype=new ot;for(var vt in st)st.hasOwnProperty(vt)&&($.prototype[vt]=st[vt]);$.prototype.constructor=$,$.superClass=j}function c($,j,st){$="prototype"in $?$.prototype:$,j="prototype"in j?j.prototype:j,e($,j,st)}function d($){if($)return typeof $=="string"?!1:typeof $.length=="number"}function A($,j,st){if($&&j)if($.forEach&&$.forEach===w)$.forEach(j,st);else if($.length===+$.length)for(var ot=0,vt=$.length;ot<vt;ot++)j.call(st,$[ot],ot,$);else for(var yt in $)$.hasOwnProperty(yt)&&j.call(st,$[yt],yt,$)}function x($,j,st){if($&&j){if($.map&&$.map===S)return $.map(j,st);for(var ot=[],vt=0,yt=$.length;vt<yt;vt++)ot.push(j.call(st,$[vt],vt,$));return ot}}function y($,j,st,ot){if($&&j){if($.reduce&&$.reduce===p)return $.reduce(j,st,ot);for(var vt=0,yt=$.length;vt<yt;vt++)st=j.call(ot,st,$[vt],vt,$);return st}}function g($,j,st){if($&&j){if($.filter&&$.filter===C)return $.filter(j,st);for(var ot=[],vt=0,yt=$.length;vt<yt;vt++)j.call(st,$[vt],vt,$)&&ot.push($[vt]);return ot}}function m($,j,st){if($&&j){for(var ot=0,vt=$.length;ot<vt;ot++)if(j.call(st,$[ot],ot,$))return $[ot]}}function b($,j){var st=D.call(arguments,2);return function(){return $.apply(j,st.concat(D.call(arguments)))}}function I($){var j=D.call(arguments,1);return function(){return $.apply(this,j.concat(D.call(arguments)))}}function R($){return L.call($)==="[object Array]"}function E($){return typeof $=="function"}function P($){return L.call($)==="[object String]"}function O($){var j=typeof $;return j==="function"||!!$&&j==="object"}function N($){return!!n[L.call($)]}function _($){return!!T[L.call($)]}function G($){return typeof $=="object"&&typeof $.nodeType=="number"&&typeof $.ownerDocument=="object"}function F($){return $!==$}function W($){for(var j=0,st=arguments.length;j<st;j++)if(arguments[j]!=null)return arguments[j]}function U($,j){return $!=null?$:j}function H($,j,st){return $!=null?$:j!=null?j:st}function z(){return Function.call.apply(D,arguments)}function B($){if(typeof $=="number")return[$,$,$,$];var j=$.length;return j===2?[$[0],$[1],$[0],$[1]]:j===3?[$[0],$[1],$[2],$[1]]:$}function k($,j){if(!$)throw new Error(j)}function Z($){return $==null?null:typeof $.trim=="function"?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var X="__ec_primitive__";function K($){$[X]=!0}function Q($){return $[X]}function J($){var j=R($);this.data={};var st=this;$ instanceof J?$.each(ot):$&&A($,ot);function ot(vt,yt){j?st.set(vt,yt):st.set(yt,vt)}}J.prototype={constructor:J,get:function($){return this.data.hasOwnProperty($)?this.data[$]:null},set:function($,j){return this.data[$]=j},each:function($,j){j!==void 0&&($=b($,j));for(var st in this.data)this.data.hasOwnProperty(st)&&$(this.data[st],st)},removeKey:function($){delete this.data[$]}};function tt($){return new J($)}function q($,j){for(var st=new $.constructor($.length+j.length),ot=0;ot<$.length;ot++)st[ot]=$[ot];var vt=$.length;for(ot=0;ot<j.length;ot++)st[ot+vt]=j[ot];return st}function rt(){}V.$override=t,V.clone=s,V.merge=i,V.mergeAll=a,V.extend=u,V.defaults=e,V.createCanvas=o,V.getContext=l,V.indexOf=h,V.inherits=f,V.mixin=c,V.isArrayLike=d,V.each=A,V.map=x,V.reduce=y,V.filter=g,V.find=m,V.bind=b,V.curry=I,V.isArray=R,V.isFunction=E,V.isString=P,V.isObject=O,V.isBuiltInObject=N,V.isTypedArray=_,V.isDom=G,V.eqNaN=F,V.retrieve=W,V.retrieve2=U,V.retrieve3=H,V.slice=z,V.normalizeCssArray=B,V.assert=k,V.trim=Z,V.setAsPrimitive=K,V.isPrimitive=Q,V.createHashMap=tt,V.concatArray=q,V.noop=rt},47764:function(Y,V){var n=typeof Float32Array=="undefined"?Array:Float32Array;function T(g,m){var b=new n(2);return g==null&&(g=0),m==null&&(m=0),b[0]=g,b[1]=m,b}function L(g,m){return g[0]=m[0],g[1]=m[1],g}function M(g){var m=new n(2);return m[0]=g[0],m[1]=g[1],m}function w(g,m,b){return g[0]=m,g[1]=b,g}function C(g,m,b){return g[0]=m[0]+b[0],g[1]=m[1]+b[1],g}function D(g,m,b,I){return g[0]=m[0]+b[0]*I,g[1]=m[1]+b[1]*I,g}function S(g,m,b){return g[0]=m[0]-b[0],g[1]=m[1]-b[1],g}function p(g){return Math.sqrt(t(g))}var v=p;function t(g){return g[0]*g[0]+g[1]*g[1]}var s=t;function i(g,m,b){return g[0]=m[0]*b[0],g[1]=m[1]*b[1],g}function a(g,m,b){return g[0]=m[0]/b[0],g[1]=m[1]/b[1],g}function u(g,m){return g[0]*m[0]+g[1]*m[1]}function e(g,m,b){return g[0]=m[0]*b,g[1]=m[1]*b,g}function o(g,m){var b=p(m);return b===0?(g[0]=0,g[1]=0):(g[0]=m[0]/b,g[1]=m[1]/b),g}function r(g,m){return Math.sqrt((g[0]-m[0])*(g[0]-m[0])+(g[1]-m[1])*(g[1]-m[1]))}var l=r;function h(g,m){return(g[0]-m[0])*(g[0]-m[0])+(g[1]-m[1])*(g[1]-m[1])}var f=h;function c(g,m){return g[0]=-m[0],g[1]=-m[1],g}function d(g,m,b,I){return g[0]=m[0]+I*(b[0]-m[0]),g[1]=m[1]+I*(b[1]-m[1]),g}function A(g,m,b){var I=m[0],R=m[1];return g[0]=b[0]*I+b[2]*R+b[4],g[1]=b[1]*I+b[3]*R+b[5],g}function x(g,m,b){return g[0]=Math.min(m[0],b[0]),g[1]=Math.min(m[1],b[1]),g}function y(g,m,b){return g[0]=Math.max(m[0],b[0]),g[1]=Math.max(m[1],b[1]),g}V.create=T,V.copy=L,V.clone=M,V.set=w,V.add=C,V.scaleAndAdd=D,V.sub=S,V.len=p,V.length=v,V.lenSquare=t,V.lengthSquare=s,V.mul=i,V.div=a,V.dot=u,V.scale=e,V.normalize=o,V.distance=r,V.dist=l,V.distanceSquare=h,V.distSquare=f,V.negate=c,V.lerp=d,V.applyTransform=A,V.min=x,V.max=y},42499:function(Y,V,n){var T=n(92462),L=T.addEventListener,M=T.removeEventListener,w=T.normalizeEvent,C=T.getNativeEvent,D=n(69008),S=n(37283),p=n(12973),v=300,t=p.domSupported,s=function(){var P=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],O=["touchstart","touchend","touchmove"],N={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},_=D.map(P,function(G){var F=G.replace("mouse","pointer");return N.hasOwnProperty(F)?F:G});return{mouse:P,touch:O,pointer:_}}(),i={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function a(P){return P==="mousewheel"&&p.browser.firefox?"DOMMouseScroll":P}function u(P){var O=P.pointerType;return O==="pen"||O==="touch"}function e(P){P.touching=!0,P.touchTimer!=null&&(clearTimeout(P.touchTimer),P.touchTimer=null),P.touchTimer=setTimeout(function(){P.touching=!1,P.touchTimer=null},700)}function o(P){P&&(P.zrByTouch=!0)}function r(P,O){return w(P.dom,new h(P,O),!0)}function l(P,O){for(var N=O,_=!1;N&&N.nodeType!==9&&!(_=N.domBelongToZr||N!==O&&N===P.painterRoot);)N=N.parentNode;return _}function h(P,O){this.type=O.type,this.target=this.currentTarget=P.dom,this.pointerType=O.pointerType,this.clientX=O.clientX,this.clientY=O.clientY}var f=h.prototype;f.stopPropagation=f.stopImmediatePropagation=f.preventDefault=D.noop;var c={mousedown:function(P){P=w(this.dom,P),this._mayPointerCapture=[P.zrX,P.zrY],this.trigger("mousedown",P)},mousemove:function(P){P=w(this.dom,P);var O=this._mayPointerCapture;O&&(P.zrX!==O[0]||P.zrY!==O[1])&&m(this,!0),this.trigger("mousemove",P)},mouseup:function(P){P=w(this.dom,P),m(this,!1),this.trigger("mouseup",P)},mouseout:function(P){P=w(this.dom,P),this._pointerCapturing&&(P.zrEventControl="no_globalout");var O=P.toElement||P.relatedTarget;P.zrIsToLocalDOM=l(this,O),this.trigger("mouseout",P)},touchstart:function(P){P=w(this.dom,P),o(P),this._lastTouchMoment=new Date,this.handler.processGesture(P,"start"),c.mousemove.call(this,P),c.mousedown.call(this,P)},touchmove:function(P){P=w(this.dom,P),o(P),this.handler.processGesture(P,"change"),c.mousemove.call(this,P)},touchend:function(P){P=w(this.dom,P),o(P),this.handler.processGesture(P,"end"),c.mouseup.call(this,P),+new Date-this._lastTouchMoment<v&&c.click.call(this,P)},pointerdown:function(P){c.mousedown.call(this,P)},pointermove:function(P){u(P)||c.mousemove.call(this,P)},pointerup:function(P){c.mouseup.call(this,P)},pointerout:function(P){u(P)||c.mouseout.call(this,P)}};D.each(["click","mousewheel","dblclick","contextmenu"],function(P){c[P]=function(O){O=w(this.dom,O),this.trigger(P,O)}});var d={pointermove:function(P){u(P)||d.mousemove.call(this,P)},pointerup:function(P){d.mouseup.call(this,P)},mousemove:function(P){this.trigger("mousemove",P)},mouseup:function(P){var O=this._pointerCapturing;m(this,!1),this.trigger("mouseup",P),O&&(P.zrEventControl="only_globalout",this.trigger("mouseout",P))}};function A(P,O){var N=O.domHandlers;p.pointerEventsSupported?D.each(s.pointer,function(_){y(O,_,function(G){N[_].call(P,G)})}):(p.touchEventsSupported&&D.each(s.touch,function(_){y(O,_,function(G){N[_].call(P,G),e(O)})}),D.each(s.mouse,function(_){y(O,_,function(G){G=C(G),O.touching||N[_].call(P,G)})}))}function x(P,O){p.pointerEventsSupported?D.each(i.pointer,N):p.touchEventsSupported||D.each(i.mouse,N);function N(_){function G(F){F=C(F),l(P,F.target)||(F=r(P,F),O.domHandlers[_].call(P,F))}y(O,_,G,{capture:!0})}}function y(P,O,N,_){P.mounted[O]=N,P.listenerOpts[O]=_,L(P.domTarget,a(O),N,_)}function g(P){var O=P.mounted;for(var N in O)O.hasOwnProperty(N)&&M(P.domTarget,a(N),O[N],P.listenerOpts[N]);P.mounted={}}function m(P,O){if(P._mayPointerCapture=null,t&&P._pointerCapturing^O){P._pointerCapturing=O;var N=P._globalHandlerScope;O?x(P,N):g(N)}}function b(P,O){this.domTarget=P,this.domHandlers=O,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(P,O){S.call(this),this.dom=P,this.painterRoot=O,this._localHandlerScope=new b(P,c),t&&(this._globalHandlerScope=new b(document,d)),this._pointerCapturing=!1,this._mayPointerCapture=null,A(this,this._localHandlerScope)}var R=I.prototype;R.dispose=function(){g(this._localHandlerScope),t&&g(this._globalHandlerScope)},R.setCursor=function(P){this.dom.style&&(this.dom.style.cursor=P||"default")},D.mixin(I,S);var E=I;Y.exports=E},87500:function(Y,V,n){var T=n(60397),L=T.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var M=this.__dirtyPath,w=this.shape.paths,C=0;C<w.length;C++)M=M||w[C].__dirtyPath;this.__dirtyPath=M,this.__dirty=this.__dirty||M},beforeBrush:function(){this._updatePathDirty();for(var M=this.shape.paths||[],w=this.getGlobalScale(),C=0;C<M.length;C++)M[C].path||M[C].createPathProxy(),M[C].path.setScale(w[0],w[1],M[C].segmentIgnoreThreshold)},buildPath:function(M,w){for(var C=w.paths||[],D=0;D<C.length;D++)C[D].buildPath(M,C[D].shape,!0)},afterBrush:function(){for(var M=this.shape.paths||[],w=0;w<M.length;w++)M[w].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),T.prototype.getBoundingRect.call(this)}});Y.exports=L},20168:function(Y,V,n){var T=n(69008),L=n(7255),M=n(35165),w=n(40460);function C(S){S=S||{},M.call(this,S);for(var p in S)S.hasOwnProperty(p)&&p!=="style"&&(this[p]=S[p]);this.style=new L(S.style,this),this._rect=null,this.__clipPaths=null}C.prototype={constructor:C,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(S){},afterBrush:function(S){},brush:function(S,p){},getBoundingRect:function(){},contain:function(S,p){return this.rectContain(S,p)},traverse:function(S,p){S.call(p,this)},rectContain:function(S,p){var v=this.transformCoordToLocal(S,p),t=this.getBoundingRect();return t.contain(v[0],v[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(S){return this.animate("style",S)},attrKV:function(S,p){S!=="style"?M.prototype.attrKV.call(this,S,p):this.style.set(p)},setStyle:function(S,p){return this.style.set(S,p),this.dirty(!1),this},useStyle:function(S){return this.style=new L(S,this),this.dirty(!1),this},calculateTextPosition:null},T.inherits(C,M),T.mixin(C,w);var D=C;Y.exports=D},9193:function(Y){var V=function(T){this.colorStops=T||[]};V.prototype={constructor:V,addColorStop:function(T,L){this.colorStops.push({offset:T,color:L})}};var n=V;Y.exports=n},89444:function(Y,V,n){var T=n(20168),L=n(9806),M=n(69008),w=n(33557);function C(S){T.call(this,S)}C.prototype={constructor:C,type:"image",brush:function(S,p){var v=this.style,t=v.image;v.bind(S,this,p);var s=this._image=w.createOrUpdateImage(t,this._image,this,this.onload);if(!(!s||!w.isImageReady(s))){var i=v.x||0,a=v.y||0,u=v.width,e=v.height,o=s.width/s.height;if(u==null&&e!=null?u=e*o:e==null&&u!=null?e=u/o:u==null&&e==null&&(u=s.width,e=s.height),this.setTransform(S),v.sWidth&&v.sHeight){var r=v.sx||0,l=v.sy||0;S.drawImage(s,r,l,v.sWidth,v.sHeight,i,a,u,e)}else if(v.sx&&v.sy){var r=v.sx,l=v.sy,h=u-r,f=e-l;S.drawImage(s,r,l,h,f,i,a,u,e)}else S.drawImage(s,i,a,u,e);v.text!=null&&(this.restoreTransform(S),this.drawRectText(S,this.getBoundingRect()))}},getBoundingRect:function(){var S=this.style;return this._rect||(this._rect=new L(S.x||0,S.y||0,S.width||0,S.height||0)),this._rect}},M.inherits(C,T);var D=C;Y.exports=D},61465:function(Y,V,n){var T=n(69008),L=T.inherits,M=n(20168),w=n(9806);function C(p){M.call(this,p),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}C.prototype.incremental=!0,C.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},C.prototype.addDisplayable=function(p,v){v?this._temporaryDisplayables.push(p):this._displayables.push(p),this.dirty()},C.prototype.addDisplayables=function(p,v){v=v||!1;for(var t=0;t<p.length;t++)this.addDisplayable(p[t],v)},C.prototype.eachPendingDisplayable=function(p){for(var v=this._cursor;v<this._displayables.length;v++)p&&p(this._displayables[v]);for(var v=0;v<this._temporaryDisplayables.length;v++)p&&p(this._temporaryDisplayables[v])},C.prototype.update=function(){this.updateTransform();for(var p=this._cursor;p<this._displayables.length;p++){var v=this._displayables[p];v.parent=this,v.update(),v.parent=null}for(var p=0;p<this._temporaryDisplayables.length;p++){var v=this._temporaryDisplayables[p];v.parent=this,v.update(),v.parent=null}},C.prototype.brush=function(p,v){for(var t=this._cursor;t<this._displayables.length;t++){var s=this._displayables[t];s.beforeBrush&&s.beforeBrush(p),s.brush(p,t===this._cursor?null:this._displayables[t-1]),s.afterBrush&&s.afterBrush(p)}this._cursor=t;for(var t=0;t<this._temporaryDisplayables.length;t++){var s=this._temporaryDisplayables[t];s.beforeBrush&&s.beforeBrush(p),s.brush(p,t===0?null:this._temporaryDisplayables[t-1]),s.afterBrush&&s.afterBrush(p)}this._temporaryDisplayables=[],this.notClear=!0};var D=[];C.prototype.getBoundingRect=function(){if(!this._rect){for(var p=new w(1/0,1/0,-1/0,-1/0),v=0;v<this._displayables.length;v++){var t=this._displayables[v],s=t.getBoundingRect().clone();t.needLocalTransform()&&s.applyTransform(t.getLocalTransform(D)),p.union(s)}this._rect=p}return this._rect},C.prototype.contain=function(p,v){var t=this.transformCoordToLocal(p,v),s=this.getBoundingRect();if(s.contain(t[0],t[1]))for(var i=0;i<this._displayables.length;i++){var a=this._displayables[i];if(a.contain(p,v))return!0}return!1},L(C,M);var S=C;Y.exports=S},57123:function(Y,V,n){var T=n(69008),L=n(9193),M=function(C,D,S,p,v,t){this.x=C==null?0:C,this.y=D==null?0:D,this.x2=S==null?1:S,this.y2=p==null?0:p,this.type="linear",this.global=t||!1,L.call(this,v)};M.prototype={constructor:M},T.inherits(M,L);var w=M;Y.exports=w},60397:function(Y,V,n){var T=n(20168),L=n(69008),M=n(94615),w=n(29995),C=n(55620),D=C.prototype.getCanvasPattern,S=Math.abs,p=new M(!0);function v(s){T.call(this,s),this.path=null}v.prototype={constructor:v,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(s,i){var a=this.style,u=this.path||p,e=a.hasStroke(),o=a.hasFill(),r=a.fill,l=a.stroke,h=o&&!!r.colorStops,f=e&&!!l.colorStops,c=o&&!!r.image,d=e&&!!l.image;if(a.bind(s,this,i),this.setTransform(s),this.__dirty){var A;h&&(A=A||this.getBoundingRect(),this._fillGradient=a.getGradient(s,r,A)),f&&(A=A||this.getBoundingRect(),this._strokeGradient=a.getGradient(s,l,A))}h?s.fillStyle=this._fillGradient:c&&(s.fillStyle=D.call(r,s)),f?s.strokeStyle=this._strokeGradient:d&&(s.strokeStyle=D.call(l,s));var x=a.lineDash,y=a.lineDashOffset,g=!!s.setLineDash,m=this.getGlobalScale();if(u.setScale(m[0],m[1],this.segmentIgnoreThreshold),this.__dirtyPath||x&&!g&&e?(u.beginPath(s),x&&!g&&(u.setLineDash(x),u.setLineDashOffset(y)),this.buildPath(u,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(s.beginPath(),this.path.rebuildPath(s)),o)if(a.fillOpacity!=null){var b=s.globalAlpha;s.globalAlpha=a.fillOpacity*a.opacity,u.fill(s),s.globalAlpha=b}else u.fill(s);if(x&&g&&(s.setLineDash(x),s.lineDashOffset=y),e)if(a.strokeOpacity!=null){var b=s.globalAlpha;s.globalAlpha=a.strokeOpacity*a.opacity,u.stroke(s),s.globalAlpha=b}else u.stroke(s);x&&g&&s.setLineDash([]),a.text!=null&&(this.restoreTransform(s),this.drawRectText(s,this.getBoundingRect()))},buildPath:function(s,i,a){},createPathProxy:function(){this.path=new M},getBoundingRect:function(){var s=this._rect,i=this.style,a=!s;if(a){var u=this.path;u||(u=this.path=new M),this.__dirtyPath&&(u.beginPath(),this.buildPath(u,this.shape,!1)),s=u.getBoundingRect()}if(this._rect=s,i.hasStroke()){var e=this._rectWithStroke||(this._rectWithStroke=s.clone());if(this.__dirty||a){e.copy(s);var o=i.lineWidth,r=i.strokeNoScale?this.getLineScale():1;i.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),r>1e-10&&(e.width+=o/r,e.height+=o/r,e.x-=o/r/2,e.y-=o/r/2)}return e}return s},contain:function(s,i){var a=this.transformCoordToLocal(s,i),u=this.getBoundingRect(),e=this.style;if(s=a[0],i=a[1],u.contain(s,i)){var o=this.path.data;if(e.hasStroke()){var r=e.lineWidth,l=e.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(e.hasFill()||(r=Math.max(r,this.strokeContainThreshold)),w.containStroke(o,r/l,s,i)))return!0}if(e.hasFill())return w.contain(o,s,i)}return!1},dirty:function(s){s==null&&(s=!0),s&&(this.__dirtyPath=s,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(s){return this.animate("shape",s)},attrKV:function(s,i){s==="shape"?(this.setShape(i),this.__dirtyPath=!0,this._rect=null):T.prototype.attrKV.call(this,s,i)},setShape:function(s,i){var a=this.shape;if(a){if(L.isObject(s))for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u]);else a[s]=i;this.dirty(!0)}return this},getLineScale:function(){var s=this.transform;return s&&S(s[0]-1)>1e-10&&S(s[3]-1)>1e-10?Math.sqrt(S(s[0]*s[3]-s[2]*s[1])):1}},v.extend=function(s){var i=function(u){v.call(this,u),s.style&&this.style.extendFrom(s.style,!1);var e=s.shape;if(e){this.shape=this.shape||{};var o=this.shape;for(var r in e)!o.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(o[r]=e[r])}s.init&&s.init.call(this,u)};L.inherits(i,v);for(var a in s)a!=="style"&&a!=="shape"&&(i.prototype[a]=s[a]);return i},L.inherits(v,T);var t=v;Y.exports=t},55620:function(Y){var V=function(T,L){this.image=T,this.repeat=L,this.type="pattern"};V.prototype.getCanvasPattern=function(T){return T.createPattern(this.image,this.repeat||"repeat")};var n=V;Y.exports=n},29683:function(Y,V,n){var T=n(69008),L=n(9193),M=function(C,D,S,p,v){this.x=C==null?.5:C,this.y=D==null?.5:D,this.r=S==null?.5:S,this.type="radial",this.global=v||!1,L.call(this,p)};M.prototype={constructor:M},T.inherits(M,L);var w=M;Y.exports=w},7255:function(Y,V,n){var T=n(73238),L=n(23982),M=L.ContextCachedBy,w=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],C=function(i){this.extendFrom(i,!1)};function D(i,a,u){var e=a.x==null?0:a.x,o=a.x2==null?1:a.x2,r=a.y==null?0:a.y,l=a.y2==null?0:a.y2;a.global||(e=e*u.width+u.x,o=o*u.width+u.x,r=r*u.height+u.y,l=l*u.height+u.y),e=isNaN(e)?0:e,o=isNaN(o)?1:o,r=isNaN(r)?0:r,l=isNaN(l)?0:l;var h=i.createLinearGradient(e,r,o,l);return h}function S(i,a,u){var e=u.width,o=u.height,r=Math.min(e,o),l=a.x==null?.5:a.x,h=a.y==null?.5:a.y,f=a.r==null?.5:a.r;a.global||(l=l*e+u.x,h=h*o+u.y,f=f*r);var c=i.createRadialGradient(l,h,0,l,h,f);return c}C.prototype={constructor:C,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(i,a,u){var e=this,o=u&&u.style,r=!o||i.__attrCachedBy!==M.STYLE_BIND;i.__attrCachedBy=M.STYLE_BIND;for(var l=0;l<w.length;l++){var h=w[l],f=h[0];(r||e[f]!==o[f])&&(i[f]=T(i,f,e[f]||h[1]))}if((r||e.fill!==o.fill)&&(i.fillStyle=e.fill),(r||e.stroke!==o.stroke)&&(i.strokeStyle=e.stroke),(r||e.opacity!==o.opacity)&&(i.globalAlpha=e.opacity==null?1:e.opacity),(r||e.blend!==o.blend)&&(i.globalCompositeOperation=e.blend||"source-over"),this.hasStroke()){var c=e.lineWidth;i.lineWidth=c/(this.strokeNoScale&&a&&a.getLineScale?a.getLineScale():1)}},hasFill:function(){var i=this.fill;return i!=null&&i!=="none"},hasStroke:function(){var i=this.stroke;return i!=null&&i!=="none"&&this.lineWidth>0},extendFrom:function(i,a){if(i)for(var u in i)i.hasOwnProperty(u)&&(a===!0||(a===!1?!this.hasOwnProperty(u):i[u]!=null))&&(this[u]=i[u])},set:function(i,a){typeof i=="string"?this[i]=a:this.extendFrom(i,!0)},clone:function(){var i=new this.constructor;return i.extendFrom(this,!0),i},getGradient:function(i,a,u){for(var e=a.type==="radial"?S:D,o=e(i,a,u),r=a.colorStops,l=0;l<r.length;l++)o.addColorStop(r[l].offset,r[l].color);return o}};for(var p=C.prototype,v=0;v<w.length;v++){var t=w[v];t[0]in p||(p[t[0]]=t[1])}C.getGradient=p.getGradient;var s=C;Y.exports=s},99999:function(Y,V,n){var T=n(20168),L=n(69008),M=n(63603),w=n(53750),C=n(23982),D=C.ContextCachedBy,S=function(v){T.call(this,v)};S.prototype={constructor:S,type:"text",brush:function(v,t){var s=this.style;this.__dirty&&w.normalizeTextStyle(s,!0),s.fill=s.stroke=s.shadowBlur=s.shadowColor=s.shadowOffsetX=s.shadowOffsetY=null;var i=s.text;if(i!=null&&(i+=""),!w.needDrawText(i,s)){v.__attrCachedBy=D.NONE;return}this.setTransform(v),w.renderText(this,v,i,s,null,t),this.restoreTransform(v)},getBoundingRect:function(){var v=this.style;if(this.__dirty&&w.normalizeTextStyle(v,!0),!this._rect){var t=v.text;t!=null?t+="":t="";var s=M.getBoundingRect(v.text+"",v.font,v.textAlign,v.textVerticalAlign,v.textPadding,v.textLineHeight,v.rich);if(s.x+=v.x||0,s.y+=v.y||0,w.getStroke(v.textStroke,v.textStrokeWidth)){var i=v.textStrokeWidth;s.x-=i/2,s.y-=i/2,s.width+=i,s.height+=i}this._rect=s}return this._rect}},L.inherits(S,T);var p=S;Y.exports=p},23982:function(Y,V){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},T=9;V.ContextCachedBy=n,V.WILL_BE_RESTORED=T},33251:function(Y,V,n){var T=n(12973),L=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function M(w){return T.browser.ie&&T.browser.version>=11?function(){var C=this.__clipPaths,D=this.style,S;if(C)for(var p=0;p<C.length;p++){var v=C[p],t=v&&v.shape,s=v&&v.type;if(t&&(s==="sector"&&t.startAngle===t.endAngle||s==="rect"&&(!t.width||!t.height))){for(var i=0;i<L.length;i++)L[i][2]=D[L[i][0]],D[L[i][0]]=L[i][1];S=!0;break}}if(w.apply(this,arguments),S)for(var i=0;i<L.length;i++)D[L[i][0]]=L[i][2]}:w}Y.exports=M},73238:function(Y){var V={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function n(T,L,M){return V.hasOwnProperty(L)?M*=T.dpr:M}Y.exports=n},33557:function(Y,V,n){var T=n(52498),L=new T(50);function M(S){if(typeof S=="string"){var p=L.get(S);return p&&p.image}else return S}function w(S,p,v,t,s){if(S)if(typeof S=="string"){if(p&&p.__zrImageSrc===S||!v)return p;var i=L.get(S),a={hostEl:v,cb:t,cbPayload:s};return i?(p=i.image,!D(p)&&i.pending.push(a)):(p=new Image,p.onload=p.onerror=C,L.put(S,p.__cachedImgObj={image:p,pending:[a]}),p.src=p.__zrImageSrc=S),p}else return S;else return p}function C(){var S=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var p=0;p<S.pending.length;p++){var v=S.pending[p],t=v.cb;t&&t(this,v.cbPayload),v.hostEl.dirty()}S.pending.length=0}function D(S){return S&&S.width&&S.height}V.findExistImage=M,V.createOrUpdateImage=w,V.isImageReady=D},1735:function(Y,V,n){var T=n(15842),L=n(78581);function M(w,C,D){var S=C.points,p=C.smooth;if(S&&S.length>=2){if(p&&p!=="spline"){var v=L(S,p,D,C.smoothConstraint);w.moveTo(S[0][0],S[0][1]);for(var t=S.length,s=0;s<(D?t:t-1);s++){var i=v[s*2],a=v[s*2+1],u=S[(s+1)%t];w.bezierCurveTo(i[0],i[1],a[0],a[1],u[0],u[1])}}else{p==="spline"&&(S=T(S,D)),w.moveTo(S[0][0],S[0][1]);for(var s=1,e=S.length;s<e;s++)w.lineTo(S[s][0],S[s][1])}D&&w.closePath()}}V.buildPath=M},55099:function(Y,V){function n(T,L){var M=L.x,w=L.y,C=L.width,D=L.height,S=L.r,p,v,t,s;C<0&&(M=M+C,C=-C),D<0&&(w=w+D,D=-D),typeof S=="number"?p=v=t=s=S:S instanceof Array?S.length===1?p=v=t=s=S[0]:S.length===2?(p=t=S[0],v=s=S[1]):S.length===3?(p=S[0],v=s=S[1],t=S[2]):(p=S[0],v=S[1],t=S[2],s=S[3]):p=v=t=s=0;var i;p+v>C&&(i=p+v,p*=C/i,v*=C/i),t+s>C&&(i=t+s,t*=C/i,s*=C/i),v+t>D&&(i=v+t,v*=D/i,t*=D/i),p+s>D&&(i=p+s,p*=D/i,s*=D/i),T.moveTo(M+p,w),T.lineTo(M+C-v,w),v!==0&&T.arc(M+C-v,w+v,v,-Math.PI/2,0),T.lineTo(M+C,w+D-t),t!==0&&T.arc(M+C-t,w+D-t,t,0,Math.PI/2),T.lineTo(M+s,w+D),s!==0&&T.arc(M+s,w+D-s,s,Math.PI/2,Math.PI),T.lineTo(M,w+p),p!==0&&T.arc(M+p,w+p,p,Math.PI,Math.PI*1.5)}V.buildPath=n},78581:function(Y,V,n){var T=n(47764),L=T.min,M=T.max,w=T.scale,C=T.distance,D=T.add,S=T.clone,p=T.sub;function v(t,s,i,a){var u=[],e=[],o=[],r=[],l,h,f,c;if(a){f=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,A=t.length;d<A;d++)L(f,f,t[d]),M(c,c,t[d]);L(f,f,a[0]),M(c,c,a[1])}for(var d=0,A=t.length;d<A;d++){var x=t[d];if(i)l=t[d?d-1:A-1],h=t[(d+1)%A];else if(d===0||d===A-1){u.push(S(t[d]));continue}else l=t[d-1],h=t[d+1];p(e,h,l),w(e,e,s);var y=C(x,l),g=C(x,h),m=y+g;m!==0&&(y/=m,g/=m),w(o,e,-y),w(r,e,g);var b=D([],x,o),I=D([],x,r);a&&(M(b,b,f),L(b,b,c),M(I,I,f),L(I,I,c)),u.push(b),u.push(I)}return i&&u.push(u.shift()),u}Y.exports=v},15842:function(Y,V,n){var T=n(47764),L=T.distance;function M(C,D,S,p,v,t,s){var i=(S-C)*.5,a=(p-D)*.5;return(2*(D-S)+i+a)*s+(-3*(D-S)-2*i-a)*t+i*v+D}function w(C,D){for(var S=C.length,p=[],v=0,t=1;t<S;t++)v+=L(C[t-1],C[t]);var s=v/2;s=s<S?S:s;for(var t=0;t<s;t++){var i=t/(s-1)*(D?S:S-1),a=Math.floor(i),u=i-a,e,o=C[a%S],r,l;D?(e=C[(a-1+S)%S],r=C[(a+1)%S],l=C[(a+2)%S]):(e=C[a===0?a:a-1],r=C[a>S-2?S-1:a+1],l=C[a>S-3?S-1:a+2]);var h=u*u,f=u*h;p.push([M(e[0],o[0],r[0],l[0],u,h,f),M(e[1],o[1],r[1],l[1],u,h,f)])}return p}Y.exports=w},26020:function(Y,V){var n=Math.round;function T(w,C,D){if(C){var S=C.x1,p=C.x2,v=C.y1,t=C.y2;w.x1=S,w.x2=p,w.y1=v,w.y2=t;var s=D&&D.lineWidth;s&&(n(S*2)===n(p*2)&&(w.x1=w.x2=M(S,s,!0)),n(v*2)===n(t*2)&&(w.y1=w.y2=M(v,s,!0)))}}function L(w,C,D){if(C){var S=C.x,p=C.y,v=C.width,t=C.height;w.x=S,w.y=p,w.width=v,w.height=t;var s=D&&D.lineWidth;s&&(w.x=M(S,s,!0),w.y=M(p,s,!0),w.width=Math.max(M(S+v,s,!1)-w.x,v===0?0:1),w.height=Math.max(M(p+t,s,!1)-w.y,t===0?0:1))}}function M(w,C,D){if(!C)return w;var S=n(w*2);return(S+n(C))%2===0?S/2:(S+(D?1:-1))/2}V.subPixelOptimizeLine=T,V.subPixelOptimizeRect=L,V.subPixelOptimize=M},53750:function(Y,V,n){var T=n(69008),L=T.retrieve2,M=T.retrieve3,w=T.each,C=T.normalizeCssArray,D=T.isString,S=T.isObject,p=n(63603),v=n(55099),t=n(33557),s=n(73238),i=n(23982),a=i.ContextCachedBy,u=i.WILL_BE_RESTORED,e=p.DEFAULT_FONT,o={left:1,right:1,center:1},r={top:1,bottom:1,middle:1},l=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],h={},f={};function c(U){return d(U),w(U.rich,d),U}function d(U){if(U){U.font=p.makeFont(U);var H=U.textAlign;H==="middle"&&(H="center"),U.textAlign=H==null||o[H]?H:"left";var z=U.textVerticalAlign||U.textBaseline;z==="center"&&(z="middle"),U.textVerticalAlign=z==null||r[z]?z:"top";var B=U.textPadding;B&&(U.textPadding=C(U.textPadding))}}function A(U,H,z,B,k,Z){B.rich?y(U,H,z,B,k,Z):x(U,H,z,B,k,Z)}function x(U,H,z,B,k,Z){"use strict";var X=I(B),K,Q=!1,J=H.__attrCachedBy===a.PLAIN_TEXT;Z!==u?(Z&&(K=Z.style,Q=!X&&J&&K),H.__attrCachedBy=X?a.NONE:a.PLAIN_TEXT):J&&(H.__attrCachedBy=a.NONE);var tt=B.font||e;(!Q||tt!==(K.font||e))&&(H.font=tt);var q=U.__computedFont;U.__styleFont!==tt&&(U.__styleFont=tt,q=U.__computedFont=H.font);var rt=B.textPadding,$=B.textLineHeight,j=U.__textCotentBlock;(!j||U.__dirtyText)&&(j=U.__textCotentBlock=p.parsePlainText(z,q,rt,$,B.truncate));var st=j.outerHeight,ot=j.lines,vt=j.lineHeight,yt=P(f,U,B,k),it=yt.baseX,ut=yt.baseY,gt=yt.textAlign||"left",Ct=yt.textVerticalAlign;m(H,B,k,it,ut);var bt=p.adjustTextY(ut,st,Ct),et=it,lt=bt;if(X||rt){var ht=p.getWidth(z,q),pt=ht;rt&&(pt+=rt[1]+rt[3]);var mt=p.adjustTextX(it,pt,gt);X&&R(U,H,B,mt,bt,pt,st),rt&&(et=F(it,gt,rt),lt+=rt[0])}H.textAlign=gt,H.textBaseline="middle",H.globalAlpha=B.opacity||1;for(var ft=0;ft<l.length;ft++){var xt=l[ft],Mt=xt[0],Pt=xt[1],Rt=B[Mt];(!Q||Rt!==K[Mt])&&(H[Pt]=s(H,Pt,Rt||xt[2]))}lt+=vt/2;var Bt=B.textStrokeWidth,Vt=Q?K.textStrokeWidth:null,Gt=!Q||Bt!==Vt,Ft=!Q||Gt||B.textStroke!==K.textStroke,Kt=N(B.textStroke,Bt),Qt=_(B.textFill);if(Kt&&(Gt&&(H.lineWidth=Bt),Ft&&(H.strokeStyle=Kt)),Qt&&(!Q||B.textFill!==K.textFill)&&(H.fillStyle=Qt),ot.length===1)Kt&&H.strokeText(ot[0],et,lt),Qt&&H.fillText(ot[0],et,lt);else for(var ft=0;ft<ot.length;ft++)Kt&&H.strokeText(ot[ft],et,lt),Qt&&H.fillText(ot[ft],et,lt),lt+=vt}function y(U,H,z,B,k,Z){Z!==u&&(H.__attrCachedBy=a.NONE);var X=U.__textCotentBlock;(!X||U.__dirtyText)&&(X=U.__textCotentBlock=p.parseRichText(z,B)),g(U,H,X,B,k)}function g(U,H,z,B,k){var Z=z.width,X=z.outerWidth,K=z.outerHeight,Q=B.textPadding,J=P(f,U,B,k),tt=J.baseX,q=J.baseY,rt=J.textAlign,$=J.textVerticalAlign;m(H,B,k,tt,q);var j=p.adjustTextX(tt,X,rt),st=p.adjustTextY(q,K,$),ot=j,vt=st;Q&&(ot+=Q[3],vt+=Q[0]);var yt=ot+Z;I(B)&&R(U,H,B,j,st,X,K);for(var it=0;it<z.lines.length;it++){for(var ut=z.lines[it],gt=ut.tokens,Ct=gt.length,bt=ut.lineHeight,et=ut.width,lt=0,ht=ot,pt=yt,mt=Ct-1,ft;lt<Ct&&(ft=gt[lt],!ft.textAlign||ft.textAlign==="left");)b(U,H,ft,B,bt,vt,ht,"left"),et-=ft.width,ht+=ft.width,lt++;for(;mt>=0&&(ft=gt[mt],ft.textAlign==="right");)b(U,H,ft,B,bt,vt,pt,"right"),et-=ft.width,pt-=ft.width,mt--;for(ht+=(Z-(ht-ot)-(yt-pt)-et)/2;lt<=mt;)ft=gt[lt],b(U,H,ft,B,bt,vt,ht+ft.width/2,"center"),ht+=ft.width,lt++;vt+=bt}}function m(U,H,z,B,k){if(z&&H.textRotation){var Z=H.textOrigin;Z==="center"?(B=z.width/2+z.x,k=z.height/2+z.y):Z&&(B=Z[0]+z.x,k=Z[1]+z.y),U.translate(B,k),U.rotate(-H.textRotation),U.translate(-B,-k)}}function b(U,H,z,B,k,Z,X,K){var Q=B.rich[z.styleName]||{};Q.text=z.text;var J=z.textVerticalAlign,tt=Z+k/2;J==="top"?tt=Z+z.height/2:J==="bottom"&&(tt=Z+k-z.height/2),!z.isLineHolder&&I(Q)&&R(U,H,Q,K==="right"?X-z.width:K==="center"?X-z.width/2:X,tt-z.height/2,z.width,z.height);var q=z.textPadding;q&&(X=F(X,K,q),tt-=z.height/2-q[2]-z.textHeight/2),O(H,"shadowBlur",M(Q.textShadowBlur,B.textShadowBlur,0)),O(H,"shadowColor",Q.textShadowColor||B.textShadowColor||"transparent"),O(H,"shadowOffsetX",M(Q.textShadowOffsetX,B.textShadowOffsetX,0)),O(H,"shadowOffsetY",M(Q.textShadowOffsetY,B.textShadowOffsetY,0)),O(H,"textAlign",K),O(H,"textBaseline","middle"),O(H,"font",z.font||e);var rt=N(Q.textStroke||B.textStroke,j),$=_(Q.textFill||B.textFill),j=L(Q.textStrokeWidth,B.textStrokeWidth);rt&&(O(H,"lineWidth",j),O(H,"strokeStyle",rt),H.strokeText(z.text,X,tt)),$&&(O(H,"fillStyle",$),H.fillText(z.text,X,tt))}function I(U){return!!(U.textBackgroundColor||U.textBorderWidth&&U.textBorderColor)}function R(U,H,z,B,k,Z,X){var K=z.textBackgroundColor,Q=z.textBorderWidth,J=z.textBorderColor,tt=D(K);if(O(H,"shadowBlur",z.textBoxShadowBlur||0),O(H,"shadowColor",z.textBoxShadowColor||"transparent"),O(H,"shadowOffsetX",z.textBoxShadowOffsetX||0),O(H,"shadowOffsetY",z.textBoxShadowOffsetY||0),tt||Q&&J){H.beginPath();var q=z.textBorderRadius;q?v.buildPath(H,{x:B,y:k,width:Z,height:X,r:q}):H.rect(B,k,Z,X),H.closePath()}if(tt)if(O(H,"fillStyle",K),z.fillOpacity!=null){var rt=H.globalAlpha;H.globalAlpha=z.fillOpacity*z.opacity,H.fill(),H.globalAlpha=rt}else H.fill();else if(S(K)){var $=K.image;$=t.createOrUpdateImage($,null,U,E,K),$&&t.isImageReady($)&&H.drawImage($,B,k,Z,X)}if(Q&&J)if(O(H,"lineWidth",Q),O(H,"strokeStyle",J),z.strokeOpacity!=null){var rt=H.globalAlpha;H.globalAlpha=z.strokeOpacity*z.opacity,H.stroke(),H.globalAlpha=rt}else H.stroke()}function E(U,H){H.image=U}function P(U,H,z,B){var k=z.x||0,Z=z.y||0,X=z.textAlign,K=z.textVerticalAlign;if(B){var Q=z.textPosition;if(Q instanceof Array)k=B.x+G(Q[0],B.width),Z=B.y+G(Q[1],B.height);else{var J=H&&H.calculateTextPosition?H.calculateTextPosition(h,z,B):p.calculateTextPosition(h,z,B);k=J.x,Z=J.y,X=X||J.textAlign,K=K||J.textVerticalAlign}var tt=z.textOffset;tt&&(k+=tt[0],Z+=tt[1])}return U=U||{},U.baseX=k,U.baseY=Z,U.textAlign=X,U.textVerticalAlign=K,U}function O(U,H,z){return U[H]=s(U,H,z),U[H]}function N(U,H){return U==null||H<=0||U==="transparent"||U==="none"?null:U.image||U.colorStops?"#000":U}function _(U){return U==null||U==="none"?null:U.image||U.colorStops?"#000":U}function G(U,H){return typeof U=="string"?U.lastIndexOf("%")>=0?parseFloat(U)/100*H:parseFloat(U):U}function F(U,H,z){return H==="right"?U-z[1]:H==="center"?U+z[3]/2-z[1]/2:U+z[3]}function W(U,H){return U!=null&&(U||H.textBackgroundColor||H.textBorderWidth&&H.textBorderColor||H.textPadding)}V.normalizeTextStyle=c,V.renderText=A,V.getBoxPosition=P,V.getStroke=N,V.getFill=_,V.parsePercent=G,V.needDrawText=W},40460:function(Y,V,n){var T=n(53750),L=n(9806),M=n(23982),w=M.WILL_BE_RESTORED,C=new L,D=function(){};D.prototype={constructor:D,drawRectText:function(p,v){var t=this.style;v=t.textRect||v,this.__dirty&&T.normalizeTextStyle(t,!0);var s=t.text;if(s!=null&&(s+=""),!!T.needDrawText(s,t)){p.save();var i=this.transform;t.transformText?this.setTransform(p):i&&(C.copy(v),C.applyTransform(i),v=C),T.renderText(this,p,s,t,v,w),p.restore()}}};var S=D;Y.exports=S},17745:function(Y,V,n){var T=n(60397),L=T.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(M,w){var C=w.cx,D=w.cy,S=Math.max(w.r,0),p=w.startAngle,v=w.endAngle,t=w.clockwise,s=Math.cos(p),i=Math.sin(p);M.moveTo(s*S+C,i*S+D),M.arc(C,D,S,p,v,!t)}});Y.exports=L},53663:function(Y,V,n){var T=n(60397),L=n(47764),M=n(22576),w=M.quadraticSubdivide,C=M.cubicSubdivide,D=M.quadraticAt,S=M.cubicAt,p=M.quadraticDerivativeAt,v=M.cubicDerivativeAt,t=[];function s(a,u,e){var o=a.cpx2,r=a.cpy2;return o===null||r===null?[(e?v:S)(a.x1,a.cpx1,a.cpx2,a.x2,u),(e?v:S)(a.y1,a.cpy1,a.cpy2,a.y2,u)]:[(e?p:D)(a.x1,a.cpx1,a.x2,u),(e?p:D)(a.y1,a.cpy1,a.y2,u)]}var i=T.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(a,u){var e=u.x1,o=u.y1,r=u.x2,l=u.y2,h=u.cpx1,f=u.cpy1,c=u.cpx2,d=u.cpy2,A=u.percent;A!==0&&(a.moveTo(e,o),c==null||d==null?(A<1&&(w(e,h,r,A,t),h=t[1],r=t[2],w(o,f,l,A,t),f=t[1],l=t[2]),a.quadraticCurveTo(h,f,r,l)):(A<1&&(C(e,h,c,r,A,t),h=t[1],c=t[2],r=t[3],C(o,f,d,l,A,t),f=t[1],d=t[2],l=t[3]),a.bezierCurveTo(h,f,c,d,r,l)))},pointAt:function(a){return s(this.shape,a,!1)},tangentAt:function(a){var u=s(this.shape,a,!0);return L.normalize(u,u)}});Y.exports=i},67679:function(Y,V,n){var T=n(60397),L=T.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(M,w,C){C&&M.moveTo(w.cx+w.r,w.cy),M.arc(w.cx,w.cy,w.r,0,Math.PI*2,!0)}});Y.exports=L},41422:function(Y,V,n){var T=n(60397),L=T.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(M,w){var C=.5522848,D=w.cx,S=w.cy,p=w.rx,v=w.ry,t=p*C,s=v*C;M.moveTo(D-p,S),M.bezierCurveTo(D-p,S-s,D-t,S-v,D,S-v),M.bezierCurveTo(D+t,S-v,D+p,S-s,D+p,S),M.bezierCurveTo(D+p,S+s,D+t,S+v,D,S+v),M.bezierCurveTo(D-t,S+v,D-p,S+s,D-p,S),M.closePath()}});Y.exports=L},330:function(Y,V,n){var T=n(60397),L=n(26020),M=L.subPixelOptimizeLine,w={},C=T.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(D,S){var p,v,t,s;this.subPixelOptimize?(M(w,S,this.style),p=w.x1,v=w.y1,t=w.x2,s=w.y2):(p=S.x1,v=S.y1,t=S.x2,s=S.y2);var i=S.percent;i!==0&&(D.moveTo(p,v),i<1&&(t=p*(1-i)+t*i,s=v*(1-i)+s*i),D.lineTo(t,s))},pointAt:function(D){var S=this.shape;return[S.x1*(1-D)+S.x2*D,S.y1*(1-D)+S.y2*D]}});Y.exports=C},66751:function(Y,V,n){var T=n(60397),L=n(1735),M=T.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(w,C){L.buildPath(w,C,!0)}});Y.exports=M},70391:function(Y,V,n){var T=n(60397),L=n(1735),M=T.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(w,C){L.buildPath(w,C,!1)}});Y.exports=M},74639:function(Y,V,n){var T=n(60397),L=n(55099),M=n(26020),w=M.subPixelOptimizeRect,C={},D=T.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(S,p){var v,t,s,i;this.subPixelOptimize?(w(C,p,this.style),v=C.x,t=C.y,s=C.width,i=C.height,C.r=p.r,p=C):(v=p.x,t=p.y,s=p.width,i=p.height),p.r?L.buildPath(S,p):S.rect(v,t,s,i),S.closePath()}});Y.exports=D},71908:function(Y,V,n){var T=n(60397),L=T.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(M,w){var C=w.cx,D=w.cy,S=Math.PI*2;M.moveTo(C+w.r,D),M.arc(C,D,w.r,0,S,!1),M.moveTo(C+w.r0,D),M.arc(C,D,w.r0,0,S,!0)}});Y.exports=L},63477:function(Y,V,n){var T=n(60397),L=n(33251),M=T.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:L(T.prototype.brush),buildPath:function(w,C){var D=C.cx,S=C.cy,p=Math.max(C.r0||0,0),v=Math.max(C.r,0),t=C.startAngle,s=C.endAngle,i=C.clockwise,a=Math.cos(t),u=Math.sin(t);w.moveTo(a*p+D,u*p+S),w.lineTo(a*v+D,u*v+S),w.arc(D,S,v,t,s,!i),w.lineTo(Math.cos(s)*p+D,Math.sin(s)*p+S),p!==0&&w.arc(D,S,p,s,t,i),w.closePath()}});Y.exports=M},69447:function(Y,V,n){var T=n(91807),L=n(32445),M=n(69008),w=M.isString,C=M.isFunction,D=M.isObject,S=M.isArrayLike,p=M.indexOf,v=function(){this.animators=[]};v.prototype={constructor:v,animate:function(u,e){var o,r=!1,l=this,h=this.__zr;if(u){var f=u.split("."),c=l;r=f[0]==="shape";for(var d=0,A=f.length;d<A;d++)c&&(c=c[f[d]]);c&&(o=c)}else o=l;if(!o){L('Property "'+u+'" is not existed in element '+l.id);return}var x=l.animators,y=new T(o,e);return y.during(function(g){l.dirty(r)}).done(function(){x.splice(p(x,y),1)}),x.push(y),h&&h.animation.addAnimator(y),y},stopAnimation:function(u){for(var e=this.animators,o=e.length,r=0;r<o;r++)e[r].stop(u);return e.length=0,this},animateTo:function(u,e,o,r,l,h){t(this,u,e,o,r,l,h)},animateFrom:function(u,e,o,r,l,h){t(this,u,e,o,r,l,h,!0)}};function t(u,e,o,r,l,h,f,c){w(r)?(h=l,l=r,r=0):C(l)?(h=l,l="linear",r=0):C(r)?(h=r,r=0):C(o)?(h=o,o=500):o||(o=500),u.stopAnimation(),s(u,"",u,e,o,r,c);var d=u.animators.slice(),A=d.length;function x(){A--,A||h&&h()}A||h&&h();for(var y=0;y<d.length;y++)d[y].done(x).start(l,f)}function s(u,e,o,r,l,h,f){var c={},d=0;for(var A in r)r.hasOwnProperty(A)&&(o[A]!=null?D(r[A])&&!S(r[A])?s(u,e?e+"."+A:A,o[A],r[A],l,h,f):(f?(c[A]=o[A],i(u,e,A,r[A])):c[A]=r[A],d++):r[A]!=null&&!f&&i(u,e,A,r[A]));d>0&&u.animate(e,!1).when(l==null?500:l,c).delay(h||0)}function i(u,e,o,r){if(!e)u.attr(o,r);else{var l={};l[e]={},l[e][o]=r,u.attr(l)}}var a=v;Y.exports=a},6947:function(Y){function V(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}V.prototype={constructor:V,_dragStart:function(L){for(var M=L.target;M&&!M.draggable;)M=M.parent;M&&(this._draggingTarget=M,M.dragging=!0,this._x=L.offsetX,this._y=L.offsetY,this.dispatchToElement(n(M,L),"dragstart",L.event))},_drag:function(L){var M=this._draggingTarget;if(M){var w=L.offsetX,C=L.offsetY,D=w-this._x,S=C-this._y;this._x=w,this._y=C,M.drift(D,S,L),this.dispatchToElement(n(M,L),"drag",L.event);var p=this.findHover(w,C,M).target,v=this._dropTarget;this._dropTarget=p,M!==p&&(v&&p!==v&&this.dispatchToElement(n(v,L),"dragleave",L.event),p&&p!==v&&this.dispatchToElement(n(p,L),"dragenter",L.event))}},_dragEnd:function(L){var M=this._draggingTarget;M&&(M.dragging=!1),this.dispatchToElement(n(M,L),"dragend",L.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,L),"drop",L.event),this._draggingTarget=null,this._dropTarget=null}};function n(L,M){return{target:L,topTarget:M&&M.topTarget}}var T=V;Y.exports=T},37283:function(Y){var V=Array.prototype.slice,n=function(w){this._$handlers={},this._$eventProcessor=w};n.prototype={constructor:n,one:function(w,C,D,S){return L(this,w,C,D,S,!0)},on:function(w,C,D,S){return L(this,w,C,D,S,!1)},isSilent:function(w){var C=this._$handlers;return!C[w]||!C[w].length},off:function(w,C){var D=this._$handlers;if(!w)return this._$handlers={},this;if(C){if(D[w]){for(var S=[],p=0,v=D[w].length;p<v;p++)D[w][p].h!==C&&S.push(D[w][p]);D[w]=S}D[w]&&D[w].length===0&&delete D[w]}else delete D[w];return this},trigger:function(w){var C=this._$handlers[w],D=this._$eventProcessor;if(C){var S=arguments,p=S.length;p>3&&(S=V.call(S,1));for(var v=C.length,t=0;t<v;){var s=C[t];if(D&&D.filter&&s.query!=null&&!D.filter(w,s.query)){t++;continue}switch(p){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,S[1]);break;case 3:s.h.call(s.ctx,S[1],S[2]);break;default:s.h.apply(s.ctx,S);break}s.one?(C.splice(t,1),v--):t++}}return D&&D.afterTrigger&&D.afterTrigger(w),this},triggerWithContext:function(w){var C=this._$handlers[w],D=this._$eventProcessor;if(C){var S=arguments,p=S.length;p>4&&(S=V.call(S,1,S.length-1));for(var v=S[S.length-1],t=C.length,s=0;s<t;){var i=C[s];if(D&&D.filter&&i.query!=null&&!D.filter(w,i.query)){s++;continue}switch(p){case 1:i.h.call(v);break;case 2:i.h.call(v,S[1]);break;case 3:i.h.call(v,S[1],S[2]);break;default:i.h.apply(v,S);break}i.one?(C.splice(s,1),t--):s++}}return D&&D.afterTrigger&&D.afterTrigger(w),this}};function T(w,C){var D=w._$eventProcessor;return C!=null&&D&&D.normalizeQuery&&(C=D.normalizeQuery(C)),C}function L(w,C,D,S,p,v){var t=w._$handlers;if(typeof D=="function"&&(p=S,S=D,D=null),!S||!C)return w;D=T(w,D),t[C]||(t[C]=[]);for(var s=0;s<t[C].length;s++)if(t[C][s].h===S)return w;var i={h:S,one:v,query:D,ctx:p||w,callAtLast:S.zrEventfulCallAtLast},a=t[C].length-1,u=t[C][a];return u&&u.callAtLast?t[C].splice(a,0,i):t[C].push(i),w}var M=n;Y.exports=M},74330:function(Y,V,n){var T=n(26237),L=n(47764),M=T.identity,w=5e-5;function C(i){return i>w||i<-w}var D=function(i){i=i||{},i.position||(this.position=[0,0]),i.rotation==null&&(this.rotation=0),i.scale||(this.scale=[1,1]),this.origin=this.origin||null},S=D.prototype;S.transform=null,S.needLocalTransform=function(){return C(this.rotation)||C(this.position[0])||C(this.position[1])||C(this.scale[0]-1)||C(this.scale[1]-1)};var p=[];S.updateTransform=function(){var i=this.parent,a=i&&i.transform,u=this.needLocalTransform(),e=this.transform;if(!(u||a)){e&&M(e);return}e=e||T.create(),u?this.getLocalTransform(e):M(e),a&&(u?T.mul(e,i.transform,e):T.copy(e,i.transform)),this.transform=e;var o=this.globalScaleRatio;if(o!=null&&o!==1){this.getGlobalScale(p);var r=p[0]<0?-1:1,l=p[1]<0?-1:1,h=((p[0]-r)*o+r)/p[0]||0,f=((p[1]-l)*o+l)/p[1]||0;e[0]*=h,e[1]*=h,e[2]*=f,e[3]*=f}this.invTransform=this.invTransform||T.create(),T.invert(this.invTransform,e)},S.getLocalTransform=function(i){return D.getLocalTransform(this,i)},S.setTransform=function(i){var a=this.transform,u=i.dpr||1;a?i.setTransform(u*a[0],u*a[1],u*a[2],u*a[3],u*a[4],u*a[5]):i.setTransform(u,0,0,u,0,0)},S.restoreTransform=function(i){var a=i.dpr||1;i.setTransform(a,0,0,a,0,0)};var v=[],t=T.create();S.setLocalTransform=function(i){if(i){var a=i[0]*i[0]+i[1]*i[1],u=i[2]*i[2]+i[3]*i[3],e=this.position,o=this.scale;C(a-1)&&(a=Math.sqrt(a)),C(u-1)&&(u=Math.sqrt(u)),i[0]<0&&(a=-a),i[3]<0&&(u=-u),e[0]=i[4],e[1]=i[5],o[0]=a,o[1]=u,this.rotation=Math.atan2(-i[1]/u,i[0]/a)}},S.decomposeTransform=function(){if(this.transform){var i=this.parent,a=this.transform;i&&i.transform&&(T.mul(v,i.invTransform,a),a=v);var u=this.origin;u&&(u[0]||u[1])&&(t[4]=u[0],t[5]=u[1],T.mul(v,a,t),v[4]-=u[0],v[5]-=u[1],a=v),this.setLocalTransform(a)}},S.getGlobalScale=function(i){var a=this.transform;return i=i||[],a?(i[0]=Math.sqrt(a[0]*a[0]+a[1]*a[1]),i[1]=Math.sqrt(a[2]*a[2]+a[3]*a[3]),a[0]<0&&(i[0]=-i[0]),a[3]<0&&(i[1]=-i[1]),i):(i[0]=1,i[1]=1,i)},S.transformCoordToLocal=function(i,a){var u=[i,a],e=this.invTransform;return e&&L.applyTransform(u,u,e),u},S.transformCoordToGlobal=function(i,a){var u=[i,a],e=this.transform;return e&&L.applyTransform(u,u,e),u},D.getLocalTransform=function(i,a){a=a||[],M(a);var u=i.origin,e=i.scale||[1,1],o=i.rotation||0,r=i.position||[0,0];return u&&(a[4]-=u[0],a[5]-=u[1]),T.scale(a,a,e),o&&T.rotate(a,a,o),u&&(a[4]+=u[0],a[5]+=u[1]),a[4]+=r[0],a[5]+=r[1],a};var s=D;Y.exports=s},26919:function(Y,V,n){var T=n(87764),L=T.createElement,M=n(69008),w=n(32445),C=n(60397),D=n(89444),S=n(99999),p=n(9262),v=n(69377),t=n(17583),s=n(11209),i=n(96107),a=i.path,u=i.image,e=i.text;function o(m){return parseInt(m,10)}function r(m){return m instanceof C?a:m instanceof D?u:m instanceof S?e:a}function l(m,b){return b&&m&&b.parentNode!==m}function h(m,b,I){if(l(m,b)&&I){var R=I.nextSibling;R?m.insertBefore(b,R):m.appendChild(b)}}function f(m,b){if(l(m,b)){var I=m.firstChild;I?m.insertBefore(b,I):m.appendChild(b)}}function c(m,b){b&&m&&b.parentNode===m&&m.removeChild(b)}function d(m){return m.__textSvgEl}function A(m){return m.__svgEl}var x=function(m,b,I,R){this.root=m,this.storage=b,this._opts=I=M.extend({},I||{});var E=L("svg");E.setAttribute("xmlns","http://www.w3.org/2000/svg"),E.setAttribute("version","1.1"),E.setAttribute("baseProfile","full"),E.style.cssText="user-select:none;position:absolute;left:0;top:0;";var P=L("g");E.appendChild(P);var O=L("g");E.appendChild(O),this.gradientManager=new v(R,O),this.clipPathManager=new t(R,O),this.shadowManager=new s(R,O);var N=document.createElement("div");N.style.cssText="overflow:hidden;position:relative",this._svgDom=E,this._svgRoot=O,this._backgroundRoot=P,this._viewport=N,m.appendChild(N),N.appendChild(E),this.resize(I.width,I.height),this._visibleList=[]};x.prototype={constructor:x,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var m=this.getViewportRoot();if(m)return{offsetLeft:m.offsetLeft||0,offsetTop:m.offsetTop||0}},refresh:function(){var m=this.storage.getDisplayList(!0);this._paintList(m)},setBackgroundColor:function(m){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var b=L("rect");b.setAttribute("width",this.getWidth()),b.setAttribute("height",this.getHeight()),b.setAttribute("x",0),b.setAttribute("y",0),b.setAttribute("id",0),b.style.fill=m,this._backgroundRoot.appendChild(b),this._backgroundNode=b},_paintList:function(m){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var b=this._svgRoot,I=this._visibleList,R=m.length,E=[],P;for(P=0;P<R;P++){var O=m[P],N=r(O),_=A(O)||d(O);O.invisible||(O.__dirty&&(N&&N.brush(O),this.clipPathManager.update(O),O.style&&(this.gradientManager.update(O.style.fill),this.gradientManager.update(O.style.stroke),this.shadowManager.update(_,O)),O.__dirty=!1),E.push(O))}var G=p(I,E),F;for(P=0;P<G.length;P++){var W=G[P];if(W.removed)for(var U=0;U<W.count;U++){var O=I[W.indices[U]],_=A(O),H=d(O);c(b,_),c(b,H)}}for(P=0;P<G.length;P++){var W=G[P];if(W.added)for(var U=0;U<W.count;U++){var O=E[W.indices[U]],_=A(O),H=d(O);F?h(b,_,F):f(b,_),_?h(b,H,_):F?h(b,H,F):f(b,H),h(b,H,_),F=H||_||F,this.gradientManager.addWithoutUpdate(_||H,O),this.shadowManager.addWithoutUpdate(_||H,O),this.clipPathManager.markUsed(O)}else if(!W.removed)for(var U=0;U<W.count;U++){var O=E[W.indices[U]],_=A(O),H=d(O),_=A(O),H=d(O);this.gradientManager.markUsed(O),this.gradientManager.addWithoutUpdate(_||H,O),this.shadowManager.markUsed(O),this.shadowManager.addWithoutUpdate(_||H,O),this.clipPathManager.markUsed(O),H&&h(b,H,_),F=_||H||F}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=E},_getDefs:function(m){var b=this._svgDom,I=b.getElementsByTagName("defs");if(I.length===0)if(m){var I=b.insertBefore(L("defs"),b.firstChild);return I.contains||(I.contains=function(E){var P=I.children;if(!P)return!1;for(var O=P.length-1;O>=0;--O)if(P[O]===E)return!0;return!1}),I}else return null;else return I[0]},resize:function(m,b){var I=this._viewport;I.style.display="none";var R=this._opts;if(m!=null&&(R.width=m),b!=null&&(R.height=b),m=this._getSize(0),b=this._getSize(1),I.style.display="",this._width!==m||this._height!==b){this._width=m,this._height=b;var E=I.style;E.width=m+"px",E.height=b+"px";var P=this._svgDom;P.setAttribute("width",m),P.setAttribute("height",b)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",m),this._backgroundNode.setAttribute("height",b))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(m){var b=this._opts,I=["width","height"][m],R=["clientWidth","clientHeight"][m],E=["paddingLeft","paddingTop"][m],P=["paddingRight","paddingBottom"][m];if(b[I]!=null&&b[I]!=="auto")return parseFloat(b[I]);var O=this.root,N=document.defaultView.getComputedStyle(O);return(O[R]||o(N[I])||o(O.style[I]))-(o(N[E])||0)-(o(N[P])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var m=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+m}};function y(m){return function(){w('In SVG mode painter not support method "'+m+'"')}}M.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(m){x.prototype[m]=y(m)});var g=x;Y.exports=g},87764:function(Y,V){var n="http://www.w3.org/2000/svg";function T(L){return document.createElementNS(n,L)}V.createElement=T},96107:function(Y,V,n){var T=n(87764),L=T.createElement,M=n(94615),w=n(9806),C=n(26237),D=n(63603),S=n(53750),p=n(99999),v=M.CMD,t=Array.prototype.join,s="none",i=Math.round,a=Math.sin,u=Math.cos,e=Math.PI,o=Math.PI*2,r=180/e,l=1e-4;function h(H){return i(H*1e4)/1e4}function f(H){return H<l&&H>-l}function c(H,z){var B=z?H.textFill:H.fill;return B!=null&&B!==s}function d(H,z){var B=z?H.textStroke:H.stroke;return B!=null&&B!==s}function A(H,z){z&&x(H,"transform","matrix("+t.call(z,",")+")")}function x(H,z,B){(!B||B.type!=="linear"&&B.type!=="radial")&&H.setAttribute(z,B)}function y(H,z,B){H.setAttributeNS("http://www.w3.org/1999/xlink",z,B)}function g(H,z,B,k){if(c(z,B)){var Z=B?z.textFill:z.fill;Z=Z==="transparent"?s:Z,x(H,"fill",Z),x(H,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else x(H,"fill",s);if(d(z,B)){var X=B?z.textStroke:z.stroke;X=X==="transparent"?s:X,x(H,"stroke",X);var K=B?z.textStrokeWidth:z.lineWidth,Q=!B&&z.strokeNoScale?k.getLineScale():1;x(H,"stroke-width",K/Q),x(H,"paint-order",B?"stroke":"fill"),x(H,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var J=z.lineDash;J?(x(H,"stroke-dasharray",z.lineDash.join(",")),x(H,"stroke-dashoffset",i(z.lineDashOffset||0))):x(H,"stroke-dasharray",""),z.lineCap&&x(H,"stroke-linecap",z.lineCap),z.lineJoin&&x(H,"stroke-linejoin",z.lineJoin),z.miterLimit&&x(H,"stroke-miterlimit",z.miterLimit)}else x(H,"stroke",s)}function m(H){for(var z=[],B=H.data,k=H.len(),Z=0;Z<k;){var X=B[Z++],K="",Q=0;switch(X){case v.M:K="M",Q=2;break;case v.L:K="L",Q=2;break;case v.Q:K="Q",Q=4;break;case v.C:K="C",Q=6;break;case v.A:var J=B[Z++],tt=B[Z++],q=B[Z++],rt=B[Z++],$=B[Z++],j=B[Z++],st=B[Z++],ot=B[Z++],vt=Math.abs(j),yt=f(vt-o)||(ot?j>=o:-j>=o),it=j>0?j%o:j%o+o,ut=!1;yt?ut=!0:f(vt)?ut=!1:ut=it>=e==!!ot;var gt=h(J+q*u($)),Ct=h(tt+rt*a($));yt&&(ot?j=o-1e-4:j=-o+1e-4,ut=!0,Z===9&&z.push("M",gt,Ct));var bt=h(J+q*u($+j)),et=h(tt+rt*a($+j));z.push("A",h(q),h(rt),i(st*r),+ut,+ot,bt,et);break;case v.Z:K="Z";break;case v.R:var bt=h(B[Z++]),et=h(B[Z++]),lt=h(B[Z++]),ht=h(B[Z++]);z.push("M",bt,et,"L",bt+lt,et,"L",bt+lt,et+ht,"L",bt,et+ht,"L",bt,et);break}K&&z.push(K);for(var pt=0;pt<Q;pt++)z.push(h(B[Z++]))}return z.join(" ")}var b={};b.brush=function(H){var z=H.style,B=H.__svgEl;B||(B=L("path"),H.__svgEl=B),H.path||H.createPathProxy();var k=H.path;if(H.__dirtyPath){k.beginPath(),k.subPixelOptimize=!1,H.buildPath(k,H.shape),H.__dirtyPath=!1;var Z=m(k);Z.indexOf("NaN")<0&&x(B,"d",Z)}g(B,z,!1,H),A(B,H.transform),z.text!=null?_(H,H.getBoundingRect()):U(H)};var I={};I.brush=function(H){var z=H.style,B=z.image;if(B instanceof HTMLImageElement){var k=B.src;B=k}if(B){var Z=z.x||0,X=z.y||0,K=z.width,Q=z.height,J=H.__svgEl;J||(J=L("image"),H.__svgEl=J),B!==H.__imageSrc&&(y(J,"href",B),H.__imageSrc=B),x(J,"width",K),x(J,"height",Q),x(J,"x",Z),x(J,"y",X),A(J,H.transform),z.text!=null?_(H,H.getBoundingRect()):U(H)}};var R={},E=new w,P={},O=[],N={left:"start",right:"end",center:"middle",middle:"middle"},_=function(H,z){var B=H.style,k=H.transform,Z=H instanceof p||B.transformText;H.__dirty&&S.normalizeTextStyle(B,!0);var X=B.text;if(X!=null&&(X+=""),!!S.needDrawText(X,B)){X==null&&(X=""),!Z&&k&&(E.copy(z),E.applyTransform(k),z=E);var K=H.__textSvgEl;K||(K=L("text"),H.__textSvgEl=K);var Q=K.style,J=B.font||D.DEFAULT_FONT,tt=K.__computedFont;J!==K.__styleFont&&(Q.font=K.__styleFont=J,tt=K.__computedFont=Q.font);var q=B.textPadding,rt=B.textLineHeight,$=H.__textCotentBlock;(!$||H.__dirtyText)&&($=H.__textCotentBlock=D.parsePlainText(X,tt,q,rt,B.truncate));var j=$.outerHeight,st=$.lineHeight;S.getBoxPosition(P,H,B,z);var ot=P.baseX,vt=P.baseY,yt=P.textAlign||"left",it=P.textVerticalAlign;G(K,Z,k,B,z,ot,vt);var ut=D.adjustTextY(vt,j,it),gt=ot,Ct=ut;q&&(gt=F(ot,yt,q),Ct+=q[0]),Ct+=st/2,g(K,B,!0,H);var bt=$.canCacheByTextString,et=H.__tspanList||(H.__tspanList=[]),lt=et.length;if(bt&&H.__canCacheByTextString&&H.__text===X){if(H.__dirtyText&&lt)for(var ht=0;ht<lt;++ht)W(et[ht],yt,gt,Ct+ht*st)}else{H.__text=X,H.__canCacheByTextString=bt;for(var pt=$.lines,mt=pt.length,ht=0;ht<mt;ht++){var ft=et[ht],xt=pt[ht];ft?ft.__zrText!==xt&&(ft.innerHTML="",ft.appendChild(document.createTextNode(xt))):(ft=et[ht]=L("tspan"),K.appendChild(ft),ft.appendChild(document.createTextNode(xt))),W(ft,yt,gt,Ct+ht*st)}if(lt>mt){for(;ht<lt;ht++)K.removeChild(et[ht]);et.length=mt}}}};function G(H,z,B,k,Z,X,K){C.identity(O),z&&B&&C.copy(O,B);var Q=k.textRotation;if(Z&&Q){var J=k.textOrigin;J==="center"?(X=Z.width/2+Z.x,K=Z.height/2+Z.y):J&&(X=J[0]+Z.x,K=J[1]+Z.y),O[4]-=X,O[5]-=K,C.rotate(O,O,Q),O[4]+=X,O[5]+=K}A(H,O)}function F(H,z,B){return z==="right"?H-B[1]:z==="center"?H+B[3]/2-B[1]/2:H+B[3]}function W(H,z,B,k){x(H,"dominant-baseline","middle"),x(H,"text-anchor",N[z]),x(H,"x",B),x(H,"y",k)}function U(H){H&&H.__textSvgEl&&(H.__textSvgEl.parentNode&&H.__textSvgEl.parentNode.removeChild(H.__textSvgEl),H.__textSvgEl=null,H.__tspanList=[],H.__text=null)}R.drawRectText=_,R.brush=function(H){var z=H.style;z.text!=null?_(H,!1):U(H)},V.path=b,V.image=I,V.text=R},17583:function(Y,V,n){var T=n(97507),L=n(69008),M=n(26237);function w(D,S){T.call(this,D,S,"clipPath","__clippath_in_use__")}L.inherits(w,T),w.prototype.update=function(D){var S=this.getSvgElement(D);S&&this.updateDom(S,D.__clipPaths,!1);var p=this.getTextSvgElement(D);p&&this.updateDom(p,D.__clipPaths,!0),this.markUsed(D)},w.prototype.updateDom=function(D,S,p){if(S&&S.length>0){var v=this.getDefs(!0),t=S[0],s,i,a=p?"_textDom":"_dom";t[a]?(i=t[a].getAttribute("id"),s=t[a],v.contains(s)||v.appendChild(s)):(i="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,s=this.createElement("clipPath"),s.setAttribute("id",i),v.appendChild(s),t[a]=s);var u=this.getSvgProxy(t);if(t.transform&&t.parent.invTransform&&!p){var e=Array.prototype.slice.call(t.transform);M.mul(t.transform,t.parent.invTransform,t.transform),u.brush(t),t.transform=e}else u.brush(t);var o=this.getSvgElement(t);s.innerHTML="",s.appendChild(o.cloneNode()),D.setAttribute("clip-path","url(#"+i+")"),S.length>1&&this.updateDom(s,S.slice(1),p)}else D&&D.setAttribute("clip-path","none")},w.prototype.markUsed=function(D){var S=this;D.__clipPaths&&L.each(D.__clipPaths,function(p){p._dom&&T.prototype.markUsed.call(S,p._dom),p._textDom&&T.prototype.markUsed.call(S,p._textDom)})};var C=w;Y.exports=C},97507:function(Y,V,n){var T=n(87764),L=T.createElement,M=n(69008),w=n(60397),C=n(89444),D=n(99999),S=n(96107),p=S.path,v=S.image,t=S.text,s="0",i="1";function a(e,o,r,l,h){this._zrId=e,this._svgRoot=o,this._tagNames=typeof r=="string"?[r]:r,this._markLabel=l,this._domName=h||"_dom",this.nextId=0}a.prototype.createElement=L,a.prototype.getDefs=function(e){var o=this._svgRoot,r=this._svgRoot.getElementsByTagName("defs");return r.length===0?e?(r=o.insertBefore(this.createElement("defs"),o.firstChild),r.contains||(r.contains=function(l){var h=r.children;if(!h)return!1;for(var f=h.length-1;f>=0;--f)if(h[f]===l)return!0;return!1}),r):null:r[0]},a.prototype.update=function(e,o){if(e){var r=this.getDefs(!1);if(e[this._domName]&&r.contains(e[this._domName]))typeof o=="function"&&o(e);else{var l=this.add(e);l&&(e[this._domName]=l)}}},a.prototype.addDom=function(e){var o=this.getDefs(!0);o.appendChild(e)},a.prototype.removeDom=function(e){var o=this.getDefs(!1);o&&e[this._domName]&&(o.removeChild(e[this._domName]),e[this._domName]=null)},a.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var o=[];return M.each(this._tagNames,function(r){var l=e.getElementsByTagName(r);o=o.concat([].slice.call(l))}),o},a.prototype.markAllUnused=function(){var e=this.getDoms(),o=this;M.each(e,function(r){r[o._markLabel]=s})},a.prototype.markUsed=function(e){e&&(e[this._markLabel]=i)},a.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var o=this.getDoms(),r=this;M.each(o,function(l){l[r._markLabel]!==i&&e.removeChild(l)})}},a.prototype.getSvgProxy=function(e){return e instanceof w?p:e instanceof C?v:e instanceof D?t:p},a.prototype.getTextSvgElement=function(e){return e.__textSvgEl},a.prototype.getSvgElement=function(e){return e.__svgEl};var u=a;Y.exports=u},69377:function(Y,V,n){var T=n(97507),L=n(69008),M=n(32445),w=n(83720);function C(S,p){T.call(this,S,p,["linearGradient","radialGradient"],"__gradient_in_use__")}L.inherits(C,T),C.prototype.addWithoutUpdate=function(S,p){if(p&&p.style){var v=this;L.each(["fill","stroke"],function(t){if(p.style[t]&&(p.style[t].type==="linear"||p.style[t].type==="radial")){var s=p.style[t],i=v.getDefs(!0),a;s._dom?(a=s._dom,i.contains(s._dom)||v.addDom(a)):a=v.add(s),v.markUsed(p);var u=a.getAttribute("id");S.setAttribute(t,"url(#"+u+")")}})}},C.prototype.add=function(S){var p;if(S.type==="linear")p=this.createElement("linearGradient");else if(S.type==="radial")p=this.createElement("radialGradient");else return M("Illegal gradient type."),null;return S.id=S.id||this.nextId++,p.setAttribute("id","zr"+this._zrId+"-gradient-"+S.id),this.updateDom(S,p),this.addDom(p),p},C.prototype.update=function(S){var p=this;T.prototype.update.call(this,S,function(){var v=S.type,t=S._dom.tagName;v==="linear"&&t==="linearGradient"||v==="radial"&&t==="radialGradient"?p.updateDom(S,S._dom):(p.removeDom(S),p.add(S))})},C.prototype.updateDom=function(S,p){if(S.type==="linear")p.setAttribute("x1",S.x),p.setAttribute("y1",S.y),p.setAttribute("x2",S.x2),p.setAttribute("y2",S.y2);else if(S.type==="radial")p.setAttribute("cx",S.x),p.setAttribute("cy",S.y),p.setAttribute("r",S.r);else{M("Illegal gradient type.");return}S.global?p.setAttribute("gradientUnits","userSpaceOnUse"):p.setAttribute("gradientUnits","objectBoundingBox"),p.innerHTML="";for(var v=S.colorStops,t=0,s=v.length;t<s;++t){var i=this.createElement("stop");i.setAttribute("offset",v[t].offset*100+"%");var a=v[t].color;if(a.indexOf("rgba">-1)){var u=w.parse(a)[3],e=w.toHex(a);i.setAttribute("stop-color","#"+e),i.setAttribute("stop-opacity",u)}else i.setAttribute("stop-color",v[t].color);p.appendChild(i)}S._dom=p},C.prototype.markUsed=function(S){if(S.style){var p=S.style.fill;p&&p._dom&&T.prototype.markUsed.call(this,p._dom),p=S.style.stroke,p&&p._dom&&T.prototype.markUsed.call(this,p._dom)}};var D=C;Y.exports=D},11209:function(Y,V,n){var T=n(97507),L=n(69008);function M(D,S){T.call(this,D,S,["filter"],"__filter_in_use__","_shadowDom")}L.inherits(M,T),M.prototype.addWithoutUpdate=function(D,S){if(S&&w(S.style)){var p;if(S._shadowDom){p=S._shadowDom;var v=this.getDefs(!0);v.contains(S._shadowDom)||this.addDom(p)}else p=this.add(S);this.markUsed(S);var t=p.getAttribute("id");D.style.filter="url(#"+t+")"}},M.prototype.add=function(D){var S=this.createElement("filter");return D._shadowDomId=D._shadowDomId||this.nextId++,S.setAttribute("id","zr"+this._zrId+"-shadow-"+D._shadowDomId),this.updateDom(D,S),this.addDom(S),S},M.prototype.update=function(D,S){var p=S.style;if(w(p)){var v=this;T.prototype.update.call(this,S,function(){v.updateDom(S,S._shadowDom)})}else this.remove(D,S)},M.prototype.remove=function(D,S){S._shadowDomId!=null&&(this.removeDom(D),D.style.filter="")},M.prototype.updateDom=function(D,S){var p=S.getElementsByTagName("feDropShadow");p.length===0?p=this.createElement("feDropShadow"):p=p[0];var v=D.style,t=D.scale&&D.scale[0]||1,s=D.scale&&D.scale[1]||1,i,a,u,e;if(v.shadowBlur||v.shadowOffsetX||v.shadowOffsetY)i=v.shadowOffsetX||0,a=v.shadowOffsetY||0,u=v.shadowBlur,e=v.shadowColor;else if(v.textShadowBlur)i=v.textShadowOffsetX||0,a=v.textShadowOffsetY||0,u=v.textShadowBlur,e=v.textShadowColor;else{this.removeDom(S,v);return}p.setAttribute("dx",i/t),p.setAttribute("dy",a/s),p.setAttribute("flood-color",e);var o=u/2/t,r=u/2/s,l=o+" "+r;p.setAttribute("stdDeviation",l),S.setAttribute("x","-100%"),S.setAttribute("y","-100%"),S.setAttribute("width",Math.ceil(u/2*200)+"%"),S.setAttribute("height",Math.ceil(u/2*200)+"%"),S.appendChild(p),D._shadowDom=S},M.prototype.markUsed=function(D){D._shadowDom&&T.prototype.markUsed.call(this,D._shadowDom)};function w(D){return D&&(D.shadowBlur||D.shadowOffsetX||D.shadowOffsetY||D.textShadowBlur||D.textShadowOffsetX||D.textShadowOffsetY)}var C=M;Y.exports=C},99848:function(Y,V,n){n(96107);var T=n(8531),L=T.registerPainter,M=n(26919);L("svg",M)},83720:function(Y,V,n){var T=n(52498),L={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function M(m){return m=Math.round(m),m<0?0:m>255?255:m}function w(m){return m=Math.round(m),m<0?0:m>360?360:m}function C(m){return m<0?0:m>1?1:m}function D(m){return m.length&&m.charAt(m.length-1)==="%"?M(parseFloat(m)/100*255):M(parseInt(m,10))}function S(m){return m.length&&m.charAt(m.length-1)==="%"?C(parseFloat(m)/100):C(parseFloat(m))}function p(m,b,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?m+(b-m)*I*6:I*2<1?b:I*3<2?m+(b-m)*(2/3-I)*6:m}function v(m,b,I){return m+(b-m)*I}function t(m,b,I,R,E){return m[0]=b,m[1]=I,m[2]=R,m[3]=E,m}function s(m,b){return m[0]=b[0],m[1]=b[1],m[2]=b[2],m[3]=b[3],m}var i=new T(20),a=null;function u(m,b){a&&s(a,b),a=i.put(m,a||b.slice())}function e(m,b){if(m){b=b||[];var I=i.get(m);if(I)return s(b,I);m=m+"";var R=m.replace(/ /g,"").toLowerCase();if(R in L)return s(b,L[R]),u(m,b),b;if(R.charAt(0)==="#"){if(R.length===4){var E=parseInt(R.substr(1),16);if(!(E>=0&&E<=4095)){t(b,0,0,0,1);return}return t(b,(E&3840)>>4|(E&3840)>>8,E&240|(E&240)>>4,E&15|(E&15)<<4,1),u(m,b),b}else if(R.length===7){var E=parseInt(R.substr(1),16);if(!(E>=0&&E<=16777215)){t(b,0,0,0,1);return}return t(b,(E&16711680)>>16,(E&65280)>>8,E&255,1),u(m,b),b}return}var P=R.indexOf("("),O=R.indexOf(")");if(P!==-1&&O+1===R.length){var N=R.substr(0,P),_=R.substr(P+1,O-(P+1)).split(","),G=1;switch(N){case"rgba":if(_.length!==4){t(b,0,0,0,1);return}G=S(_.pop());case"rgb":if(_.length!==3){t(b,0,0,0,1);return}return t(b,D(_[0]),D(_[1]),D(_[2]),G),u(m,b),b;case"hsla":if(_.length!==4){t(b,0,0,0,1);return}return _[3]=S(_[3]),o(_,b),u(m,b),b;case"hsl":if(_.length!==3){t(b,0,0,0,1);return}return o(_,b),u(m,b),b;default:return}}t(b,0,0,0,1)}}function o(m,b){var I=(parseFloat(m[0])%360+360)%360/360,R=S(m[1]),E=S(m[2]),P=E<=.5?E*(R+1):E+R-E*R,O=E*2-P;return b=b||[],t(b,M(p(O,P,I+1/3)*255),M(p(O,P,I)*255),M(p(O,P,I-1/3)*255),1),m.length===4&&(b[3]=m[3]),b}function r(m){if(m){var b=m[0]/255,I=m[1]/255,R=m[2]/255,E=Math.min(b,I,R),P=Math.max(b,I,R),O=P-E,N=(P+E)/2,_,G;if(O===0)_=0,G=0;else{N<.5?G=O/(P+E):G=O/(2-P-E);var F=((P-b)/6+O/2)/O,W=((P-I)/6+O/2)/O,U=((P-R)/6+O/2)/O;b===P?_=U-W:I===P?_=1/3+F-U:R===P&&(_=2/3+W-F),_<0&&(_+=1),_>1&&(_-=1)}var H=[_*360,G,N];return m[3]!=null&&H.push(m[3]),H}}function l(m,b){var I=e(m);if(I){for(var R=0;R<3;R++)b<0?I[R]=I[R]*(1-b)|0:I[R]=(255-I[R])*b+I[R]|0,I[R]>255?I[R]=255:m[R]<0&&(I[R]=0);return g(I,I.length===4?"rgba":"rgb")}}function h(m){var b=e(m);if(b)return((1<<24)+(b[0]<<16)+(b[1]<<8)+ +b[2]).toString(16).slice(1)}function f(m,b,I){if(!(!(b&&b.length)||!(m>=0&&m<=1))){I=I||[];var R=m*(b.length-1),E=Math.floor(R),P=Math.ceil(R),O=b[E],N=b[P],_=R-E;return I[0]=M(v(O[0],N[0],_)),I[1]=M(v(O[1],N[1],_)),I[2]=M(v(O[2],N[2],_)),I[3]=C(v(O[3],N[3],_)),I}}var c=f;function d(m,b,I){if(!(!(b&&b.length)||!(m>=0&&m<=1))){var R=m*(b.length-1),E=Math.floor(R),P=Math.ceil(R),O=e(b[E]),N=e(b[P]),_=R-E,G=g([M(v(O[0],N[0],_)),M(v(O[1],N[1],_)),M(v(O[2],N[2],_)),C(v(O[3],N[3],_))],"rgba");return I?{color:G,leftIndex:E,rightIndex:P,value:R}:G}}var A=d;function x(m,b,I,R){if(m=e(m),m)return m=r(m),b!=null&&(m[0]=w(b)),I!=null&&(m[1]=S(I)),R!=null&&(m[2]=S(R)),g(o(m),"rgba")}function y(m,b){if(m=e(m),m&&b!=null)return m[3]=C(b),g(m,"rgba")}function g(m,b){if(!(!m||!m.length)){var I=m[0]+","+m[1]+","+m[2];return(b==="rgba"||b==="hsva"||b==="hsla")&&(I+=","+m[3]),b+"("+I+")"}}V.parse=e,V.lift=l,V.toHex=h,V.fastLerp=f,V.fastMapToColor=c,V.lerp=d,V.mapToColor=A,V.modifyHSL=x,V.modifyAlpha=y,V.stringify=g},74057:function(Y,V,n){var T=n(27796),L=n(89444),M=n(99999),w=n(67679),C=n(74639),D=n(41422),S=n(330),p=n(60397),v=n(66751),t=n(70391),s=n(57123),i=n(7255),a=n(26237),u=n(6226),e=u.createFromString,o=n(69008),r=o.isString,l=o.extend,h=o.defaults,f=o.trim,c=o.each,d=/[\s,]+/;function A(H){if(r(H)){var z=new DOMParser;H=z.parseFromString(H,"text/xml")}for(H.nodeType===9&&(H=H.firstChild);H.nodeName.toLowerCase()!=="svg"||H.nodeType!==1;)H=H.nextSibling;return H}function x(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}x.prototype.parse=function(H,z){z=z||{};var B=A(H);if(!B)throw new Error("Illegal svg");var k=new T;this._root=k;var Z=B.getAttribute("viewBox")||"",X=parseFloat(B.getAttribute("width")||z.width),K=parseFloat(B.getAttribute("height")||z.height);isNaN(X)&&(X=null),isNaN(K)&&(K=null),E(B,k,null,!0);for(var Q=B.firstChild;Q;)this._parseNode(Q,k),Q=Q.nextSibling;var J,tt;if(Z){var q=f(Z).split(d);q.length>=4&&(J={x:parseFloat(q[0]||0),y:parseFloat(q[1]||0),width:parseFloat(q[2]),height:parseFloat(q[3])})}if(J&&X!=null&&K!=null&&(tt=W(J,X,K),!z.ignoreViewBox)){var rt=k;k=new T,k.add(rt),rt.scale=tt.scale.slice(),rt.position=tt.position.slice()}return!z.ignoreRootClip&&X!=null&&K!=null&&k.setClipPath(new C({shape:{x:0,y:0,width:X,height:K}})),{root:k,width:X,height:K,viewBoxRect:J,viewBoxTransform:tt}},x.prototype._parseNode=function(H,z){var B=H.nodeName.toLowerCase();B==="defs"?this._isDefine=!0:B==="text"&&(this._isText=!0);var k;if(this._isDefine){var Z=g[B];if(Z){var X=Z.call(this,H),K=H.getAttribute("id");K&&(this._defs[K]=X)}}else{var Z=y[B];Z&&(k=Z.call(this,H,z),z.add(k))}for(var Q=H.firstChild;Q;)Q.nodeType===1&&this._parseNode(Q,k),Q.nodeType===3&&this._isText&&this._parseText(Q,k),Q=Q.nextSibling;B==="defs"?this._isDefine=!1:B==="text"&&(this._isText=!1)},x.prototype._parseText=function(H,z){if(H.nodeType===1){var B=H.getAttribute("dx")||0,k=H.getAttribute("dy")||0;this._textX+=parseFloat(B),this._textY+=parseFloat(k)}var Z=new M({style:{text:H.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});b(z,Z),E(H,Z,this._defs);var X=Z.style.fontSize;X&&X<9&&(Z.style.fontSize=9,Z.scale=Z.scale||[1,1],Z.scale[0]*=X/9,Z.scale[1]*=X/9);var K=Z.getBoundingRect();return this._textX+=K.width,z.add(Z),Z};var y={g:function(H,z){var B=new T;return b(z,B),E(H,B,this._defs),B},rect:function(H,z){var B=new C;return b(z,B),E(H,B,this._defs),B.setShape({x:parseFloat(H.getAttribute("x")||0),y:parseFloat(H.getAttribute("y")||0),width:parseFloat(H.getAttribute("width")||0),height:parseFloat(H.getAttribute("height")||0)}),B},circle:function(H,z){var B=new w;return b(z,B),E(H,B,this._defs),B.setShape({cx:parseFloat(H.getAttribute("cx")||0),cy:parseFloat(H.getAttribute("cy")||0),r:parseFloat(H.getAttribute("r")||0)}),B},line:function(H,z){var B=new S;return b(z,B),E(H,B,this._defs),B.setShape({x1:parseFloat(H.getAttribute("x1")||0),y1:parseFloat(H.getAttribute("y1")||0),x2:parseFloat(H.getAttribute("x2")||0),y2:parseFloat(H.getAttribute("y2")||0)}),B},ellipse:function(H,z){var B=new D;return b(z,B),E(H,B,this._defs),B.setShape({cx:parseFloat(H.getAttribute("cx")||0),cy:parseFloat(H.getAttribute("cy")||0),rx:parseFloat(H.getAttribute("rx")||0),ry:parseFloat(H.getAttribute("ry")||0)}),B},polygon:function(H,z){var B=H.getAttribute("points");B&&(B=I(B));var k=new v({shape:{points:B||[]}});return b(z,k),E(H,k,this._defs),k},polyline:function(H,z){var B=new p;b(z,B),E(H,B,this._defs);var k=H.getAttribute("points");k&&(k=I(k));var Z=new t({shape:{points:k||[]}});return Z},image:function(H,z){var B=new L;return b(z,B),E(H,B,this._defs),B.setStyle({image:H.getAttribute("xlink:href"),x:H.getAttribute("x"),y:H.getAttribute("y"),width:H.getAttribute("width"),height:H.getAttribute("height")}),B},text:function(H,z){var B=H.getAttribute("x")||0,k=H.getAttribute("y")||0,Z=H.getAttribute("dx")||0,X=H.getAttribute("dy")||0;this._textX=parseFloat(B)+parseFloat(Z),this._textY=parseFloat(k)+parseFloat(X);var K=new T;return b(z,K),E(H,K,this._defs),K},tspan:function(H,z){var B=H.getAttribute("x"),k=H.getAttribute("y");B!=null&&(this._textX=parseFloat(B)),k!=null&&(this._textY=parseFloat(k));var Z=H.getAttribute("dx")||0,X=H.getAttribute("dy")||0,K=new T;return b(z,K),E(H,K,this._defs),this._textX+=Z,this._textY+=X,K},path:function(H,z){var B=H.getAttribute("d")||"",k=e(B);return b(z,k),E(H,k,this._defs),k}},g={lineargradient:function(H){var z=parseInt(H.getAttribute("x1")||0,10),B=parseInt(H.getAttribute("y1")||0,10),k=parseInt(H.getAttribute("x2")||10,10),Z=parseInt(H.getAttribute("y2")||0,10),X=new s(z,B,k,Z);return m(H,X),X},radialgradient:function(H){}};function m(H,z){for(var B=H.firstChild;B;){if(B.nodeType===1){var k=B.getAttribute("offset");k.indexOf("%")>0?k=parseInt(k,10)/100:k?k=parseFloat(k):k=0;var Z=B.getAttribute("stop-color")||"#000000";z.addColorStop(k,Z)}B=B.nextSibling}}function b(H,z){H&&H.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),h(z.__inheritedStyle,H.__inheritedStyle))}function I(H){for(var z=f(H).split(d),B=[],k=0;k<z.length;k+=2){var Z=parseFloat(z[k]),X=parseFloat(z[k+1]);B.push([Z,X])}return B}var R={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-align":"textAlign","alignment-baseline":"textBaseline"};function E(H,z,B,k){var Z=z.__inheritedStyle||{},X=z.type==="text";if(H.nodeType===1&&(_(H,z),l(Z,F(H)),!k)){for(var K in R)if(R.hasOwnProperty(K)){var Q=H.getAttribute(K);Q!=null&&(Z[R[K]]=Q)}}var J=X?"textFill":"fill",tt=X?"textStroke":"stroke";z.style=z.style||new i;var q=z.style;Z.fill!=null&&q.set(J,O(Z.fill,B)),Z.stroke!=null&&q.set(tt,O(Z.stroke,B)),c(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(rt){var $=rt==="lineWidth"&&X?"textStrokeWidth":rt;Z[rt]!=null&&q.set($,parseFloat(Z[rt]))}),(!Z.textBaseline||Z.textBaseline==="auto")&&(Z.textBaseline="alphabetic"),Z.textBaseline==="alphabetic"&&(Z.textBaseline="bottom"),Z.textAlign==="start"&&(Z.textAlign="left"),Z.textAlign==="end"&&(Z.textAlign="right"),c(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(rt){Z[rt]!=null&&q.set(rt,Z[rt])}),Z.lineDash&&(z.style.lineDash=f(Z.lineDash).split(d)),q[tt]&&q[tt]!=="none"&&(z[tt]=!0),z.__inheritedStyle=Z}var P=/url\(\s*#(.*?)\)/;function O(H,z){var B=z&&H&&H.match(P);if(B){var k=f(B[1]),Z=z[k];return Z}return H}var N=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function _(H,z){var B=H.getAttribute("transform");if(B){B=B.replace(/,/g," ");var k=null,Z=[];B.replace(N,function(J,tt,q){Z.push(tt,q)});for(var X=Z.length-1;X>0;X-=2){var K=Z[X],Q=Z[X-1];switch(k=k||a.create(),Q){case"translate":K=f(K).split(d),a.translate(k,k,[parseFloat(K[0]),parseFloat(K[1]||0)]);break;case"scale":K=f(K).split(d),a.scale(k,k,[parseFloat(K[0]),parseFloat(K[1]||K[0])]);break;case"rotate":K=f(K).split(d),a.rotate(k,k,parseFloat(K[0]));break;case"skew":K=f(K).split(d),console.warn("Skew transform is not supported yet");break;case"matrix":var K=f(K).split(d);k[0]=parseFloat(K[0]),k[1]=parseFloat(K[1]),k[2]=parseFloat(K[2]),k[3]=parseFloat(K[3]),k[4]=parseFloat(K[4]),k[5]=parseFloat(K[5]);break}}z.setLocalTransform(k)}}var G=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(H){var z=H.getAttribute("style"),B={};if(!z)return B;var k={};G.lastIndex=0;for(var Z;(Z=G.exec(z))!=null;)k[Z[1]]=Z[2];for(var X in R)R.hasOwnProperty(X)&&k[X]!=null&&(B[R[X]]=k[X]);return B}function W(H,z,B){var k=z/H.width,Z=B/H.height,X=Math.min(k,Z),K=[X,X],Q=[-(H.x+H.width/2)*X+z/2,-(H.y+H.height/2)*X+B/2];return{scale:K,position:Q}}function U(H,z){var B=new x;return B.parse(H,z)}V.parseXML=A,V.makeViewBoxTransform=W,V.parseSVG=U},6226:function(Y,V,n){var T=n(60397),L=n(94615),M=n(79860),w=Math.sqrt,C=Math.sin,D=Math.cos,S=Math.PI,p=function(h){return Math.sqrt(h[0]*h[0]+h[1]*h[1])},v=function(h,f){return(h[0]*f[0]+h[1]*f[1])/(p(h)*p(f))},t=function(h,f){return(h[0]*f[1]<h[1]*f[0]?-1:1)*Math.acos(v(h,f))};function s(h,f,c,d,A,x,y,g,m,b,I){var R=m*(S/180),E=D(R)*(h-c)/2+C(R)*(f-d)/2,P=-1*C(R)*(h-c)/2+D(R)*(f-d)/2,O=E*E/(y*y)+P*P/(g*g);O>1&&(y*=w(O),g*=w(O));var N=(A===x?-1:1)*w((y*y*(g*g)-y*y*(P*P)-g*g*(E*E))/(y*y*(P*P)+g*g*(E*E)))||0,_=N*y*P/g,G=N*-g*E/y,F=(h+c)/2+D(R)*_-C(R)*G,W=(f+d)/2+C(R)*_+D(R)*G,U=t([1,0],[(E-_)/y,(P-G)/g]),H=[(E-_)/y,(P-G)/g],z=[(-1*E-_)/y,(-1*P-G)/g],B=t(H,z);v(H,z)<=-1&&(B=S),v(H,z)>=1&&(B=0),x===0&&B>0&&(B=B-2*S),x===1&&B<0&&(B=B+2*S),I.addData(b,F,W,y,g,U,B,R,x)}var i=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,a=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(h){if(!h)return new L;for(var f=0,c=0,d=f,A=c,x,y=new L,g=L.CMD,m=h.match(i),b=0;b<m.length;b++){for(var I=m[b],R=I.charAt(0),E,P=I.match(a)||[],O=P.length,N=0;N<O;N++)P[N]=parseFloat(P[N]);for(var _=0;_<O;){var G,F,W,U,H,z,B,k=f,Z=c;switch(R){case"l":f+=P[_++],c+=P[_++],E=g.L,y.addData(E,f,c);break;case"L":f=P[_++],c=P[_++],E=g.L,y.addData(E,f,c);break;case"m":f+=P[_++],c+=P[_++],E=g.M,y.addData(E,f,c),d=f,A=c,R="l";break;case"M":f=P[_++],c=P[_++],E=g.M,y.addData(E,f,c),d=f,A=c,R="L";break;case"h":f+=P[_++],E=g.L,y.addData(E,f,c);break;case"H":f=P[_++],E=g.L,y.addData(E,f,c);break;case"v":c+=P[_++],E=g.L,y.addData(E,f,c);break;case"V":c=P[_++],E=g.L,y.addData(E,f,c);break;case"C":E=g.C,y.addData(E,P[_++],P[_++],P[_++],P[_++],P[_++],P[_++]),f=P[_-2],c=P[_-1];break;case"c":E=g.C,y.addData(E,P[_++]+f,P[_++]+c,P[_++]+f,P[_++]+c,P[_++]+f,P[_++]+c),f+=P[_-2],c+=P[_-1];break;case"S":G=f,F=c;var X=y.len(),K=y.data;x===g.C&&(G+=f-K[X-4],F+=c-K[X-3]),E=g.C,k=P[_++],Z=P[_++],f=P[_++],c=P[_++],y.addData(E,G,F,k,Z,f,c);break;case"s":G=f,F=c;var X=y.len(),K=y.data;x===g.C&&(G+=f-K[X-4],F+=c-K[X-3]),E=g.C,k=f+P[_++],Z=c+P[_++],f+=P[_++],c+=P[_++],y.addData(E,G,F,k,Z,f,c);break;case"Q":k=P[_++],Z=P[_++],f=P[_++],c=P[_++],E=g.Q,y.addData(E,k,Z,f,c);break;case"q":k=P[_++]+f,Z=P[_++]+c,f+=P[_++],c+=P[_++],E=g.Q,y.addData(E,k,Z,f,c);break;case"T":G=f,F=c;var X=y.len(),K=y.data;x===g.Q&&(G+=f-K[X-4],F+=c-K[X-3]),f=P[_++],c=P[_++],E=g.Q,y.addData(E,G,F,f,c);break;case"t":G=f,F=c;var X=y.len(),K=y.data;x===g.Q&&(G+=f-K[X-4],F+=c-K[X-3]),f+=P[_++],c+=P[_++],E=g.Q,y.addData(E,G,F,f,c);break;case"A":W=P[_++],U=P[_++],H=P[_++],z=P[_++],B=P[_++],k=f,Z=c,f=P[_++],c=P[_++],E=g.A,s(k,Z,f,c,z,B,W,U,H,E,y);break;case"a":W=P[_++],U=P[_++],H=P[_++],z=P[_++],B=P[_++],k=f,Z=c,f+=P[_++],c+=P[_++],E=g.A,s(k,Z,f,c,z,B,W,U,H,E,y);break}}(R==="z"||R==="Z")&&(E=g.Z,y.addData(E),f=d,c=A),x=E}return y.toStatic(),y}function e(h,f){var c=u(h);return f=f||{},f.buildPath=function(d){if(d.setData){d.setData(c.data);var A=d.getContext();A&&d.rebuildPath(A)}else{var A=d;c.rebuildPath(A)}},f.applyTransform=function(d){M(c,d),this.dirty(!0)},f}function o(h,f){return new T(e(h,f))}function r(h,f){return T.extend(e(h,f))}function l(h,f){for(var c=[],d=h.length,A=0;A<d;A++){var x=h[A];x.path||x.createPathProxy(),x.__dirtyPath&&x.buildPath(x.path,x.shape,!0),c.push(x.path)}var y=new T(f);return y.createPathProxy(),y.buildPath=function(g){g.appendPath(c);var m=g.getContext();m&&g.rebuildPath(m)},y}V.createFromString=o,V.extendFromString=r,V.mergePath=l},79860:function(Y,V,n){var T=n(94615),L=n(47764),M=L.applyTransform,w=T.CMD,C=[[],[],[]],D=Math.sqrt,S=Math.atan2;function p(v,t){var s=v.data,i,a,u,e,o,r,l=w.M,h=w.C,f=w.L,c=w.R,d=w.A,A=w.Q;for(u=0,e=0;u<s.length;){switch(i=s[u++],e=u,a=0,i){case l:a=1;break;case f:a=1;break;case h:a=3;break;case A:a=2;break;case d:var x=t[4],y=t[5],g=D(t[0]*t[0]+t[1]*t[1]),m=D(t[2]*t[2]+t[3]*t[3]),b=S(-t[1]/m,t[0]/g);s[u]*=g,s[u++]+=x,s[u]*=m,s[u++]+=y,s[u++]*=g,s[u++]*=m,s[u++]+=b,s[u++]+=b,u+=2,e=u;break;case c:r[0]=s[u++],r[1]=s[u++],M(r,r,t),s[e++]=r[0],s[e++]=r[1],r[0]+=s[u++],r[1]+=s[u++],M(r,r,t),s[e++]=r[0],s[e++]=r[1]}for(o=0;o<a;o++){var r=C[o];r[0]=s[u++],r[1]=s[u++],M(r,r,t),s[e++]=r[0],s[e++]=r[1]}}}Y.exports=p},93063:function(Y,V,n){var T=n(32445),L=n(1105),M=n(69008),w=M.each;function C(v){return parseInt(v,10)}function D(v,t){L.initVML(),this.root=v,this.storage=t;var s=document.createElement("div"),i=document.createElement("div");s.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",v.appendChild(s),this._vmlRoot=i,this._vmlViewport=s,this.resize();var a=t.delFromStorage,u=t.addToStorage;t.delFromStorage=function(e){a.call(t,e),e&&e.onRemove&&e.onRemove(i)},t.addToStorage=function(e){e.onAdd&&e.onAdd(i),u.call(t,e)},this._firstPaint=!0}D.prototype={constructor:D,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var v=this.getViewportRoot();if(v)return{offsetLeft:v.offsetLeft||0,offsetTop:v.offsetTop||0}},refresh:function(){var v=this.storage.getDisplayList(!0,!0);this._paintList(v)},_paintList:function(v){for(var t=this._vmlRoot,s=0;s<v.length;s++){var i=v[s];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(t),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(t),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,t),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(s,i){var s=s==null?this._getWidth():s,i=i==null?this._getHeight():i;if(this._width!==s||this._height!==i){this._width=s,this._height=i;var a=this._vmlViewport.style;a.width=s+"px",a.height=i+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var v=this.root,t=v.currentStyle;return(v.clientWidth||C(t.width))-C(t.paddingLeft)-C(t.paddingRight)|0},_getHeight:function(){var v=this.root,t=v.currentStyle;return(v.clientHeight||C(t.height))-C(t.paddingTop)-C(t.paddingBottom)|0}};function S(v){return function(){T('In IE8.0 VML mode painter not support method "'+v+'"')}}w(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(v){D.prototype[v]=S(v)});var p=D;Y.exports=p},1105:function(Y,V,n){var T=n(12973),L="urn:schemas-microsoft-com:vml",M=typeof window=="undefined"?null:window,w=!1,C=M&&M.document;function D(v){return S(v)}var S;if(C&&!T.canvasSupported)try{!C.namespaces.zrvml&&C.namespaces.add("zrvml",L),S=function(v){return C.createElement("<zrvml:"+v+' class="zrvml">')}}catch(v){S=function(t){return C.createElement("<"+t+' xmlns="'+L+'" class="zrvml">')}}function p(){if(!(w||!C)){w=!0;var v=C.styleSheets;v.length<31?C.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):v[0].addRule(".zrvml","behavior:url(#default#VML)")}}V.doc=C,V.createNode=D,V.initVML=p},90906:function(Y,V,n){var T=n(12973),L=n(47764),M=L.applyTransform,w=n(9806),C=n(83720),D=n(63603),S=n(53750),p=n(40460),v=n(20168),t=n(89444),s=n(99999),i=n(60397),a=n(94615),u=n(9193),e=n(1105),o=a.CMD,r=Math.round,l=Math.sqrt,h=Math.abs,f=Math.cos,c=Math.sin,d=Math.max;if(!T.canvasSupported){var A=",",x="progid:DXImageTransform.Microsoft",y=21600,g=y/2,m=1e5,b=1e3,I=function(it){it.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",it.coordsize=y+","+y,it.coordorigin="0,0"},R=function(it){return String(it).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},E=function(it,ut,gt){return"rgb("+[it,ut,gt].join(",")+")"},P=function(it,ut){ut&&it&&ut.parentNode!==it&&it.appendChild(ut)},O=function(it,ut){ut&&it&&ut.parentNode===it&&it.removeChild(ut)},N=function(it,ut,gt){return(parseFloat(it)||0)*m+(parseFloat(ut)||0)*b+gt},_=S.parsePercent,G=function(it,ut,gt){var Ct=C.parse(ut);gt=+gt,isNaN(gt)&&(gt=1),Ct&&(it.color=E(Ct[0],Ct[1],Ct[2]),it.opacity=gt*Ct[3])},F=function(it){var ut=C.parse(it);return[E(ut[0],ut[1],ut[2]),ut[3]]},W=function(it,ut,gt){var Ct=ut.fill;if(Ct!=null)if(Ct instanceof u){var bt,et=0,lt=[0,0],ht=0,pt=1,mt=gt.getBoundingRect(),ft=mt.width,xt=mt.height;if(Ct.type==="linear"){bt="gradient";var Mt=gt.transform,Pt=[Ct.x*ft,Ct.y*xt],Rt=[Ct.x2*ft,Ct.y2*xt];Mt&&(M(Pt,Pt,Mt),M(Rt,Rt,Mt));var Bt=Rt[0]-Pt[0],Vt=Rt[1]-Pt[1];et=Math.atan2(Bt,Vt)*180/Math.PI,et<0&&(et+=360),et<1e-6&&(et=0)}else{bt="gradientradial";var Pt=[Ct.x*ft,Ct.y*xt],Mt=gt.transform,Gt=gt.scale,Ft=ft,Kt=xt;lt=[(Pt[0]-mt.x)/Ft,(Pt[1]-mt.y)/Kt],Mt&&M(Pt,Pt,Mt),Ft/=Gt[0]*y,Kt/=Gt[1]*y;var Qt=d(Ft,Kt);ht=2*0/Qt,pt=2*Ct.r/Qt-ht}var _t=Ct.colorStops.slice();_t.sort(function(te,ie){return te.offset-ie.offset});for(var Yt=_t.length,Zt=[],Jt=[],jt=0;jt<Yt;jt++){var qt=_t[jt],oe=F(qt.color);Jt.push(qt.offset*pt+ht+" "+oe[0]),(jt===0||jt===Yt-1)&&Zt.push(oe)}if(Yt>=2){var he=Zt[0][0],se=Zt[1][0],ve=Zt[0][1]*ut.opacity,ae=Zt[1][1]*ut.opacity;it.type=bt,it.method="none",it.focus="100%",it.angle=et,it.color=he,it.color2=se,it.colors=Jt.join(","),it.opacity=ae,it.opacity2=ve}bt==="radial"&&(it.focusposition=lt.join(","))}else G(it,Ct,ut.opacity)},U=function(it,ut){ut.lineDash&&(it.dashstyle=ut.lineDash.join(" ")),ut.stroke!=null&&!(ut.stroke instanceof u)&&G(it,ut.stroke,ut.opacity)},H=function(it,ut,gt,Ct){var bt=ut==="fill",et=it.getElementsByTagName(ut)[0];gt[ut]!=null&&gt[ut]!=="none"&&(bt||!bt&&gt.lineWidth)?(it[bt?"filled":"stroked"]="true",gt[ut]instanceof u&&O(it,et),et||(et=e.createNode(ut)),bt?W(et,gt,Ct):U(et,gt),P(it,et)):(it[bt?"filled":"stroked"]="false",O(it,et))},z=[[],[],[]],B=function(it,ut){var gt=o.M,Ct=o.C,bt=o.L,et=o.A,lt=o.Q,ht=[],pt,mt,ft,xt,Mt,Pt,Rt=it.data,Bt=it.len();for(xt=0;xt<Bt;){switch(ft=Rt[xt++],mt="",pt=0,ft){case gt:mt=" m ",pt=1,Mt=Rt[xt++],Pt=Rt[xt++],z[0][0]=Mt,z[0][1]=Pt;break;case bt:mt=" l ",pt=1,Mt=Rt[xt++],Pt=Rt[xt++],z[0][0]=Mt,z[0][1]=Pt;break;case lt:case Ct:mt=" c ",pt=3;var at=Rt[xt++],ct=Rt[xt++],Vt=Rt[xt++],Gt=Rt[xt++],Ft,Kt;ft===lt?(Ft=Vt,Kt=Gt,Vt=(Vt+2*at)/3,Gt=(Gt+2*ct)/3,at=(Mt+2*at)/3,ct=(Pt+2*ct)/3):(Ft=Rt[xt++],Kt=Rt[xt++]),z[0][0]=at,z[0][1]=ct,z[1][0]=Vt,z[1][1]=Gt,z[2][0]=Ft,z[2][1]=Kt,Mt=Ft,Pt=Kt;break;case et:var Qt=0,_t=0,Yt=1,Zt=1,Jt=0;ut&&(Qt=ut[4],_t=ut[5],Yt=l(ut[0]*ut[0]+ut[1]*ut[1]),Zt=l(ut[2]*ut[2]+ut[3]*ut[3]),Jt=Math.atan2(-ut[1]/Zt,ut[0]/Yt));var jt=Rt[xt++],qt=Rt[xt++],oe=Rt[xt++],he=Rt[xt++],se=Rt[xt++]+Jt,ve=Rt[xt++]+se+Jt;xt++;var ae=Rt[xt++],te=jt+f(se)*oe,ie=qt+c(se)*he,at=jt+f(ve)*oe,ct=qt+c(ve)*he,St=ae?" wa ":" at ";Math.abs(te-at)<1e-4&&(Math.abs(ve-se)>.01?ae&&(te+=270/y):Math.abs(ie-qt)<1e-4?ae&&te<jt||!ae&&te>jt?ct-=270/y:ct+=270/y:ae&&ie<qt||!ae&&ie>qt?at+=270/y:at-=270/y),ht.push(St,r(((jt-oe)*Yt+Qt)*y-g),A,r(((qt-he)*Zt+_t)*y-g),A,r(((jt+oe)*Yt+Qt)*y-g),A,r(((qt+he)*Zt+_t)*y-g),A,r((te*Yt+Qt)*y-g),A,r((ie*Zt+_t)*y-g),A,r((at*Yt+Qt)*y-g),A,r((ct*Zt+_t)*y-g)),Mt=at,Pt=ct;break;case o.R:var Tt=z[0],Dt=z[1];Tt[0]=Rt[xt++],Tt[1]=Rt[xt++],Dt[0]=Tt[0]+Rt[xt++],Dt[1]=Tt[1]+Rt[xt++],ut&&(M(Tt,Tt,ut),M(Dt,Dt,ut)),Tt[0]=r(Tt[0]*y-g),Dt[0]=r(Dt[0]*y-g),Tt[1]=r(Tt[1]*y-g),Dt[1]=r(Dt[1]*y-g),ht.push(" m ",Tt[0],A,Tt[1]," l ",Dt[0],A,Tt[1]," l ",Dt[0],A,Dt[1]," l ",Tt[0],A,Dt[1]);break;case o.Z:ht.push(" x ")}if(pt>0){ht.push(mt);for(var Nt=0;Nt<pt;Nt++){var $t=z[Nt];ut&&M($t,$t,ut),ht.push(r($t[0]*y-g),A,r($t[1]*y-g),Nt<pt-1?A:"")}}}return ht.join("")};i.prototype.brushVML=function(it){var ut=this.style,gt=this._vmlEl;gt||(gt=e.createNode("shape"),I(gt),this._vmlEl=gt),H(gt,"fill",ut,this),H(gt,"stroke",ut,this);var Ct=this.transform,bt=Ct!=null,et=gt.getElementsByTagName("stroke")[0];if(et){var lt=ut.lineWidth;if(bt&&!ut.strokeNoScale){var ht=Ct[0]*Ct[3]-Ct[1]*Ct[2];lt*=l(h(ht))}et.weight=lt+"px"}var pt=this.path||(this.path=new a);this.__dirtyPath&&(pt.beginPath(),pt.subPixelOptimize=!1,this.buildPath(pt,this.shape),pt.toStatic(),this.__dirtyPath=!1),gt.path=B(pt,this.transform),gt.style.zIndex=N(this.zlevel,this.z,this.z2),P(it,gt),ut.text!=null?this.drawRectText(it,this.getBoundingRect()):this.removeRectText(it)},i.prototype.onRemove=function(it){O(it,this._vmlEl),this.removeRectText(it)},i.prototype.onAdd=function(it){P(it,this._vmlEl),this.appendRectText(it)};var k=function(it){return typeof it=="object"&&it.tagName&&it.tagName.toUpperCase()==="IMG"};t.prototype.brushVML=function(it){var ut=this.style,gt=ut.image,Ct,bt;if(k(gt)){var et=gt.src;if(et===this._imageSrc)Ct=this._imageWidth,bt=this._imageHeight;else{var lt=gt.runtimeStyle,ht=lt.width,pt=lt.height;lt.width="auto",lt.height="auto",Ct=gt.width,bt=gt.height,lt.width=ht,lt.height=pt,this._imageSrc=et,this._imageWidth=Ct,this._imageHeight=bt}gt=et}else gt===this._imageSrc&&(Ct=this._imageWidth,bt=this._imageHeight);if(gt){var mt=ut.x||0,ft=ut.y||0,xt=ut.width,Mt=ut.height,Pt=ut.sWidth,Rt=ut.sHeight,Bt=ut.sx||0,Vt=ut.sy||0,Gt=Pt&&Rt,Ft=this._vmlEl;Ft||(Ft=e.doc.createElement("div"),I(Ft),this._vmlEl=Ft);var Kt=Ft.style,Qt=!1,_t,Yt=1,Zt=1;if(this.transform&&(_t=this.transform,Yt=l(_t[0]*_t[0]+_t[1]*_t[1]),Zt=l(_t[2]*_t[2]+_t[3]*_t[3]),Qt=_t[1]||_t[2]),Qt){var Jt=[mt,ft],jt=[mt+xt,ft],qt=[mt,ft+Mt],oe=[mt+xt,ft+Mt];M(Jt,Jt,_t),M(jt,jt,_t),M(qt,qt,_t),M(oe,oe,_t);var he=d(Jt[0],jt[0],qt[0],oe[0]),se=d(Jt[1],jt[1],qt[1],oe[1]),ve=[];ve.push("M11=",_t[0]/Yt,A,"M12=",_t[2]/Zt,A,"M21=",_t[1]/Yt,A,"M22=",_t[3]/Zt,A,"Dx=",r(mt*Yt+_t[4]),A,"Dy=",r(ft*Zt+_t[5])),Kt.padding="0 "+r(he)+"px "+r(se)+"px 0",Kt.filter=x+".Matrix("+ve.join("")+", SizingMethod=clip)"}else _t&&(mt=mt*Yt+_t[4],ft=ft*Zt+_t[5]),Kt.filter="",Kt.left=r(mt)+"px",Kt.top=r(ft)+"px";var ae=this._imageEl,te=this._cropEl;ae||(ae=e.doc.createElement("div"),this._imageEl=ae);var ie=ae.style;if(Gt){if(Ct&&bt)ie.width=r(Yt*Ct*xt/Pt)+"px",ie.height=r(Zt*bt*Mt/Rt)+"px";else{var at=new Image,ct=this;at.onload=function(){at.onload=null,Ct=at.width,bt=at.height,ie.width=r(Yt*Ct*xt/Pt)+"px",ie.height=r(Zt*bt*Mt/Rt)+"px",ct._imageWidth=Ct,ct._imageHeight=bt,ct._imageSrc=gt},at.src=gt}te||(te=e.doc.createElement("div"),te.style.overflow="hidden",this._cropEl=te);var St=te.style;St.width=r((xt+Bt*xt/Pt)*Yt),St.height=r((Mt+Vt*Mt/Rt)*Zt),St.filter=x+".Matrix(Dx="+-Bt*xt/Pt*Yt+",Dy="+-Vt*Mt/Rt*Zt+")",te.parentNode||Ft.appendChild(te),ae.parentNode!==te&&te.appendChild(ae)}else ie.width=r(Yt*xt)+"px",ie.height=r(Zt*Mt)+"px",Ft.appendChild(ae),te&&te.parentNode&&(Ft.removeChild(te),this._cropEl=null);var Tt="",Dt=ut.opacity;Dt<1&&(Tt+=".Alpha(opacity="+r(Dt*100)+") "),Tt+=x+".AlphaImageLoader(src="+gt+", SizingMethod=scale)",ie.filter=Tt,Ft.style.zIndex=N(this.zlevel,this.z,this.z2),P(it,Ft),ut.text!=null&&this.drawRectText(it,this.getBoundingRect())}},t.prototype.onRemove=function(it){O(it,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(it)},t.prototype.onAdd=function(it){P(it,this._vmlEl),this.appendRectText(it)};var Z="normal",X={},K=0,Q=100,J=document.createElement("div"),tt=function(it){var ut=X[it];if(!ut){K>Q&&(K=0,X={});var gt=J.style,Ct;try{gt.font=it,Ct=gt.fontFamily.split(",")[0]}catch(bt){}ut={style:gt.fontStyle||Z,variant:gt.fontVariant||Z,weight:gt.fontWeight||Z,size:parseFloat(gt.fontSize||12)|0,family:Ct||"Microsoft YaHei"},X[it]=ut,K++}return ut},q;D.$override("measureText",function(it,ut){var gt=e.doc;q||(q=gt.createElement("div"),q.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",e.doc.body.appendChild(q));try{q.style.font=ut}catch(Ct){}return q.innerHTML="",q.appendChild(gt.createTextNode(it)),{width:q.offsetWidth}});for(var rt=new w,$=function(it,ut,gt,Ct){var bt=this.style;this.__dirty&&S.normalizeTextStyle(bt,!0);var et=bt.text;if(et!=null&&(et+=""),!!et){if(bt.rich){var lt=D.parseRichText(et,bt);et=[];for(var ht=0;ht<lt.lines.length;ht++){for(var pt=lt.lines[ht].tokens,mt=[],ft=0;ft<pt.length;ft++)mt.push(pt[ft].text);et.push(mt.join(""))}et=et.join(`
`)}var xt,Mt,Pt=bt.textAlign,Rt=bt.textVerticalAlign,Bt=tt(bt.font),Vt=Bt.style+" "+Bt.variant+" "+Bt.weight+" "+Bt.size+'px "'+Bt.family+'"';gt=gt||D.getBoundingRect(et,Vt,Pt,Rt,bt.textPadding,bt.textLineHeight);var Gt=this.transform;if(Gt&&!Ct&&(rt.copy(ut),rt.applyTransform(Gt),ut=rt),Ct)xt=ut.x,Mt=ut.y;else{var Ft=bt.textPosition;if(Ft instanceof Array)xt=ut.x+_(Ft[0],ut.width),Mt=ut.y+_(Ft[1],ut.height),Pt=Pt||"left";else{var Kt=this.calculateTextPosition?this.calculateTextPosition({},bt,ut):D.calculateTextPosition({},bt,ut);xt=Kt.x,Mt=Kt.y,Pt=Pt||Kt.textAlign,Rt=Rt||Kt.textVerticalAlign}}xt=D.adjustTextX(xt,gt.width,Pt),Mt=D.adjustTextY(Mt,gt.height,Rt),Mt+=gt.height/2;var Qt=e.createNode,_t=this._textVmlEl,Yt,Zt,Jt;_t?(Jt=_t.firstChild,Yt=Jt.nextSibling,Zt=Yt.nextSibling):(_t=Qt("line"),Yt=Qt("path"),Zt=Qt("textpath"),Jt=Qt("skew"),Zt.style["v-text-align"]="left",I(_t),Yt.textpathok=!0,Zt.on=!0,_t.from="0 0",_t.to="1000 0.05",P(_t,Jt),P(_t,Yt),P(_t,Zt),this._textVmlEl=_t);var jt=[xt,Mt],qt=_t.style;Gt&&Ct?(M(jt,jt,Gt),Jt.on=!0,Jt.matrix=Gt[0].toFixed(3)+A+Gt[2].toFixed(3)+A+Gt[1].toFixed(3)+A+Gt[3].toFixed(3)+",0,0",Jt.offset=(r(jt[0])||0)+","+(r(jt[1])||0),Jt.origin="0 0",qt.left="0px",qt.top="0px"):(Jt.on=!1,qt.left=r(xt)+"px",qt.top=r(Mt)+"px"),Zt.string=R(et);try{Zt.style.font=Vt}catch(oe){}H(_t,"fill",{fill:bt.textFill,opacity:bt.opacity},this),H(_t,"stroke",{stroke:bt.textStroke,opacity:bt.opacity,lineDash:bt.lineDash||null},this),_t.style.zIndex=N(this.zlevel,this.z,this.z2),P(it,_t)}},j=function(it){O(it,this._textVmlEl),this._textVmlEl=null},st=function(it){P(it,this._textVmlEl)},ot=[p,v,t,i,s],vt=0;vt<ot.length;vt++){var yt=ot[vt].prototype;yt.drawRectText=$,yt.removeRectText=j,yt.appendRectText=st}s.prototype.brushVML=function(it){var ut=this.style;ut.text!=null?this.drawRectText(it,{x:ut.x||0,y:ut.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(it)},s.prototype.onRemove=function(it){this.removeRectText(it)},s.prototype.onAdd=function(it){this.appendRectText(it)}}},79200:function(Y,V,n){n(90906);var T=n(8531),L=T.registerPainter,M=n(93063);L("vml",M)},8531:function(Y,V,n){var T=n(92385),L=n(12973),M=n(69008),w=n(72351),C=n(839),D=n(44401),S=n(75113),p=n(42499);var v=!L.canvasSupported,t={canvas:D},s={},i="4.3.1";function a(h,f){var c=new l(T(),h,f);return s[c.id]=c,c}function u(h){if(h)h.dispose();else{for(var f in s)s.hasOwnProperty(f)&&s[f].dispose();s={}}return this}function e(h){return s[h]}function o(h,f){t[h]=f}function r(h){delete s[h]}var l=function(h,f,c){c=c||{},this.dom=f,this.id=h;var d=this,A=new C,x=c.renderer;if(v){if(!t.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");x="vml"}else(!x||!t[x])&&(x="canvas");var y=new t[x](f,A,c,h);this.storage=A,this.painter=y;var g=!L.node&&!L.worker?new p(y.getViewportRoot(),y.root):null;this.handler=new w(A,y,g,y.root),this.animation=new S({stage:{update:M.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var m=A.delFromStorage,b=A.addToStorage;A.delFromStorage=function(I){m.call(A,I),I&&I.removeSelfFromZr(d)},A.addToStorage=function(I){b.call(A,I),I.addSelfToZr(d)}};l.prototype={constructor:l,getId:function(){return this.id},add:function(h){this.storage.addRoot(h),this._needsRefresh=!0},remove:function(h){this.storage.delRoot(h),this._needsRefresh=!0},configLayer:function(h,f){this.painter.configLayer&&this.painter.configLayer(h,f),this._needsRefresh=!0},setBackgroundColor:function(h){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(h),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var h;this._needsRefresh&&(h=!0,this.refreshImmediately()),this._needsRefreshHover&&(h=!0,this.refreshHoverImmediately()),h&&this.trigger("rendered")},addHover:function(h,f){if(this.painter.addHover){var c=this.painter.addHover(h,f);return this.refreshHover(),c}},removeHover:function(h){this.painter.removeHover&&(this.painter.removeHover(h),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(h){h=h||{},this.painter.resize(h.width,h.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(h,f){return this.painter.pathToImage(h,f)},setCursorStyle:function(h){this.handler.setCursorStyle(h)},findHover:function(h,f){return this.handler.findHover(h,f)},on:function(h,f,c){this.handler.on(h,f,c)},off:function(h,f){this.handler.off(h,f)},trigger:function(h,f){this.handler.trigger(h,f)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,r(this.id)}},V.version=i,V.init=a,V.dispose=u,V.getInstance=e,V.registerPainter=o}}]);