(self.webpackChunk=self.webpackChunk||[]).push([[76411],{76411:function(t,e,i){var n=i(3096);!function(){for(var t in n){if(null==n||!n.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=n[t]}}();var a=i(13700);!function(){for(var t in a){if(null==a||!a.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=a[t]}}(),i(72476),i(54023),i(84168),i(72586),i(43394),i(81931),i(13441),i(16557),i(70797),i(57495),i(75560),i(63662),i(47866),i(26678),i(56696),i(75230),i(97928),i(75822),i(4287),i(99434),i(24357),i(44189),i(47468),i(25957),i(12335),i(24514),i(13960),i(3068),i(11550),i(2090),i(98018),i(81584),i(84159),i(73546),i(49668),i(14680),i(2450),i(45003),i(34904),i(71142),i(32314),i(32922),i(48328),i(18427),i(85313),i(3646),i(11511),i(79200),i(99848)},33807:function(t,e,i){var n=i(69008),a={};function r(){this._coordinateSystems=[]}r.prototype={constructor:r,create:function(t,e){var i=[];n.each(a,(function(n,a){var r=n.create(t,e);i=i.concat(r||[])})),this._coordinateSystems=i},update:function(t,e){n.each(this._coordinateSystems,(function(i){i.update&&i.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},r.register=function(t,e){a[t]=e},r.get=function(t){return a[t]};var o=r;t.exports=o},6900:function(t,e,i){var n=i(69008),a=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];var r=function(t){n.each(a,(function(e){this[e]=n.bind(t[e],t)}),this)};t.exports=r},2442:function(t,e,i){var n=i(3096),a=i(69008);t.exports=function(t,e){a.each(e,(function(e){e.update="updateView",n.registerAction(e,(function(i,n){var a={};return n.eachComponent({mainType:"series",subType:t,query:i},(function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each((function(e){var i=n.getName(e);a[i]=t.isSelected(i)||!1}))})),{name:i.name,selected:a,seriesId:i.seriesId}}))}))}},37406:function(t,e,i){var n=i(3096),a=i(69008),r=i(66710).updateCenterAndZoom;n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var n=e.coordinateSystem;if("geo"===n.type){var o=r(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i&&a.each(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))},66710:function(t,e){e.updateCenterAndZoom=function(t,e,i){var n=t.getZoom(),a=t.getCenter(),r=e.zoom,o=t.dataToPoint(a);if(null!=e.dx&&null!=e.dy){o[0]-=e.dx,o[1]-=e.dy;a=t.pointToData(o);t.setCenter(a)}if(null!=r){if(i){var s=i.min||0,l=i.max||1/0;r=Math.max(Math.min(n*r,l),s)/n}t.scale[0]*=r,t.scale[1]*=r;var u=t.position,c=(e.originX-u[0])*(r-1),h=(e.originY-u[1])*(r-1);u[0]-=c,u[1]-=h,t.updateTransform();a=t.pointToData(o);t.setCenter(a),t.setZoom(r*n)}return{center:t.getCenter(),zoom:t.getZoom()}}},84168:function(t,e,i){var n=i(3096),a=i(69008),r=i(64816),o=r.layout,s=r.largeLayout;i(40753),i(53634),i(3359),i(47102),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,a.curry(o,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),n.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},53634:function(t,e,i){var n=i(89301).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},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}}});t.exports=n},3359:function(t,e,i){i(96311).__DEV__;var n=i(3096),a=i(69008),r=i(18993),o=i(55692).setLabel,s=i(24040),l=i(14534),u=i(60397),c=i(27796),h=i(83209).throttle,d=i(38797).createClipPath,p=i(79330),f=["itemStyle","barBorderWidth"],g=[0,0];a.extend(s.prototype,l);var m=n.extendChartView({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i)),this.group},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var n,a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?n=u.isHorizontal():"polar"===l.type&&(n="angle"===u.dim);var h=t.isAnimationEnabled()?t:null,d=t.get("clip",!0),p=function(t,e){var i=t.getArea&&t.getArea();if("cartesian2d"===t.type){var n=t.getBaseAxis();if("category"!==n.type||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(i.x-=a,i.width+=2*a):(i.y-=a,i.height+=2*a)}}return i}(l,o);a.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("barBorderRadius")||0,y=[],M=this._backgroundEls||[];o.diff(s).add((function(e){var i=o.getItemModel(e),s=S[l.type](o,e,i);if(g){var u=S[l.type](o,e),c=function(t,e,i){var n="polar"===t.type?r.Sector:r.Rect;return new n({shape:D(e,i,t),silent:!0,z2:0})}(l,n,u);c.useStyle(m.getBarItemStyle()),"cartesian2d"===l.type&&c.setShape("r",v),y[e]=c}if(o.hasValue(e)){if(d)if(x[l.type](p,s))return void a.remove(b);var b=_[l.type](e,s,n,h,!1,f);o.setItemGraphicEl(e,b),a.add(b),I(b,o,e,i,s,t,n,"polar"===l.type)}})).update((function(e,i){var u=o.getItemModel(e),c=S[l.type](o,e,u);if(g){var b=M[i];b.useStyle(m.getBarItemStyle()),"cartesian2d"===l.type&&b.setShape("r",v),y[e]=b;var w=S[l.type](o,e),T=D(n,w,l);r.updateProps(b,{shape:T},h,e)}var A=s.getItemGraphicEl(i);if(o.hasValue(e)){if(d)if(x[l.type](p,c))return void a.remove(A);A?r.updateProps(A,{shape:c},h,e):A=_[l.type](e,c,n,h,!0,f),o.setItemGraphicEl(e,A),a.add(A),I(A,o,e,u,c,t,n,"polar"===l.type)}else a.remove(A)})).remove((function(t){var e=s.getItemGraphicEl(t);"cartesian2d"===l.type?e&&b(t,h,e):e&&w(t,h,e)})).execute();var T=this._backgroundGroup||(this._backgroundGroup=new c);T.removeAll();for(var A=0;A0?1:-1,o=n.height>0?1:-1;return{x:n.x+r*a/2,y:n.y+o*a/2,width:n.width-r*a,height:n.height-o*a}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function M(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function I(t,e,i,n,s,l,u,c){var h=e.getItemVisual(i,"color"),d=e.getItemVisual(i,"opacity"),p=e.getVisual("borderColor"),f=n.getModel("itemStyle"),g=n.getModel("emphasis.itemStyle").getBarItemStyle();c||t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(a.defaults({stroke:M(s)?"none":p,fill:M(s)?"none":h,opacity:d},f.getBarItemStyle()));var m=n.getShallow("cursor");m&&t.attr("cursor",m);var v=u?s.height>0?"bottom":"top":s.width>0?"left":"right";c||o(t.style,g,n,h,l,i,v),M(s)&&(g.fill=g.stroke="none"),r.setHoverStyle(t,g)}var T=u.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,a=this.__baseDimIdx,r=0;r=h&&v<=d&&(l<=y?c>=l&&c<=y:c>=y&&c<=l))return o[p]}return-1}(this,t.offsetX,t.offsetY);this.dataIndex=e>=0?e:null}),30,!1);function D(t,e,i){var n,a="polar"===i.type;return n=a?i.getArea():i.grid.getRect(),a?{cx:n.cx,cy:n.cy,r0:t?n.r0:e.r0,r:t?n.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:n.x,y:t?n.y:e.y,width:t?e.width:n.width,height:t?n.height:e.height}}t.exports=m},89301:function(t,e,i){var n=i(38645),a=i(32977),r=n.extend({type:"series.__base_bar__",getInitialData:function(t,e){return a(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(e.clampData(t)),n=this.getData(),a=n.getLayout("offset"),r=n.getLayout("size");return i[e.getBaseAxis().isHorizontal()?0:1]+=a+r/2,i}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:{}}});t.exports=r},59903:function(t,e,i){var n=i(89301).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(t){return t.stack=null,n.superApply(this,"getInitialData",arguments)}}),a=n;t.exports=a},31061:function(t,e,i){var n=i(3096),a=i(69008),r=i(18993),o=i(22868).createSymbol,s=i(86957),l=s.parsePercent,u=s.isNumeric,c=i(55692).setLabel,h=["itemStyle","borderWidth"],d=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],p=new r.Circle;function f(t,e,i,n){var r=t.getItemLayout(e),o=i.get("symbolRepeat"),s=i.get("symbolClip"),c=i.get("symbolPosition")||"start",d=(i.get("symbolRotate")||0)*Math.PI/180||0,f=i.get("symbolPatternSize")||2,m=i.isAnimationEnabled(),v={dataIndex:e,layout:r,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:s,symbolRepeat:o,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:d,animationModel:m?i:null,hoverAnimation:m&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};!function(t,e,i,n,r){var o,s=n.valueDim,l=t.get("symbolBoundingData"),u=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(i[s.wh]<=0);if(a.isArray(l)){var d=[g(u,l[0])-c,g(u,l[1])-c];d[1]0?1:o<0?-1:0}(i,o,r,n,v),function(t,e,i,n,r,o,s,u,c,h){var d=c.valueDim,p=c.categoryDim,f=Math.abs(i[p.wh]),g=t.getItemVisual(e,"symbolSize");a.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]);g[p.index]=l(g[p.index],f),g[d.index]=l(g[d.index],n?f:Math.abs(o)),h.symbolSize=g;var m=h.symbolScale=[g[0]/u,g[1]/u];m[d.index]*=(c.isHorizontal?-1:1)*s}(t,e,r,o,0,v.boundingLength,v.pxSign,f,n,v),function(t,e,i,n,a){var r=t.get(h)||0;r&&(p.attr({scale:e.slice(),rotation:i}),p.updateTransform(),r/=p.getLineScale(),r*=e[n.valueDim.index]);a.valueLineWidth=r}(i,v.symbolScale,d,n,v);var y=v.symbolSize,x=i.get("symbolOffset");return a.isArray(x)&&(x=[l(x[0],y[0]),l(x[1],y[1])]),function(t,e,i,n,r,o,s,c,h,d,p,f){var g=p.categoryDim,m=p.valueDim,v=f.pxSign,y=Math.max(e[m.index]+c,0),x=y;if(n){var _=Math.abs(h),b=a.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=l(b,e[m.index]);var S=Math.max(y+2*b,0),M=w?0:2*b,I=u(n),T=I?n:P((_+M)/S);S=y+2*(b=(_-T*y)/2/(w?T:T-1)),M=w?0:2*b,I||"fixed"===n||(T=d?P((Math.abs(d)+M)/S):0),x=T*S-M,f.repeatTimes=T,f.symbolMargin=b}var A=v*(x/2),C=f.pathPosition=[];C[g.index]=i[g.wh]/2,C[m.index]="start"===s?A:"end"===s?h-A:h/2,o&&(C[0]+=o[0],C[1]+=o[1]);var D=f.bundlePosition=[];D[g.index]=i[g.xy],D[m.index]=i[m.xy];var L=f.barRectShape=a.extend({},i);L[m.wh]=v*Math.max(Math.abs(i[m.wh]),Math.abs(C[m.index]+A)),L[g.wh]=i[g.wh];var k=f.clipShape={};k[g.xy]=-i[g.xy],k[g.wh]=p.ecSize[g.wh],k[m.xy]=0,k[m.wh]=i[m.wh]}(i,y,r,o,0,x,c,v.valueLineWidth,v.boundingLength,v.repeatCutLength,n,v),v}function g(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function m(t){var e=t.symbolPatternSize,i=o(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function v(t,e,i,n){var a=t.__pictorialBundle,r=i.symbolSize,o=i.valueLineWidth,s=i.pathPosition,l=e.valueDim,u=i.repeatTimes||0,c=0,h=r[e.valueDim.index]+o+2*i.symbolMargin;for(C(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c0:n<0)&&(a=u-1-t),e[l.index]=h*(a-u/2+.5)+s[l.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}function g(){C(t,(function(t){t.trigger("emphasis")}))}function v(){C(t,(function(t){t.trigger("normal")}))}}function y(t,e,i,n){var a=t.__pictorialBundle,r=t.__pictorialMainPath;r?D(r,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(r=t.__pictorialMainPath=m(i),a.add(r),D(r,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),r.on("mouseover",(function(){this.trigger("emphasis")})).on("mouseout",(function(){this.trigger("normal")}))),M(r,i)}function x(t,e,i){var n=a.extend({},e.barRectShape),o=t.__pictorialBarRect;o?D(o,null,{shape:n},e,i):(o=t.__pictorialBarRect=new r.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(o))}function _(t,e,i,n){if(i.symbolClip){var o=t.__pictorialClipPath,s=a.extend({},i.clipShape),l=e.valueDim,u=i.animationModel,c=i.dataIndex;if(o)r.updateProps(o,{shape:s},u,c);else{s[l.wh]=0,o=new r.Rect({shape:s}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[l.wh]=i.clipShape[l.wh],r[n?"updateProps":"initProps"](o,{shape:h},u,c)}}}function b(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=w,i.isAnimationEnabled=S,i}function w(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function S(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function M(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:i.slice()},400,"elasticOut")}))}function I(t,e,i,n){var a=new r.Group,o=new r.Group;return a.add(o),a.__pictorialBundle=o,o.attr("position",i.bundlePosition.slice()),i.symbolRepeat?v(a,e,i):y(a,0,i),x(a,i,n),_(a,e,i,n),a.__pictorialShapeStr=A(t,i),a.__pictorialSymbolMeta=i,a}function T(t,e,i,n){var o=n.__pictorialBarRect;o&&(o.style.text=null);var s=[];C(n,(function(t){s.push(t)})),n.__pictorialMainPath&&s.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),a.each(s,(function(t){r.updateProps(t,{scale:[0,0]},i,e,(function(){n.parent&&n.parent.remove(n)}))})),t.setItemGraphicEl(e,null)}function A(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function C(t,e,i){a.each(t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(i,n)}))}function D(t,e,i,n,a,o){e&&t.attr(e),n.symbolClip&&!a?i&&t.attr(i):i&&r[a?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,o)}function L(t,e,i){var n=i.color,o=i.dataIndex,s=i.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),u=s.getModel("emphasis.itemStyle").getItemStyle(),h=s.getShallow("cursor");C(t,(function(t){t.setColor(n),t.setStyle(a.defaults({fill:n,opacity:i.opacity},l)),r.setHoverStyle(t,u),h&&(t.cursor=h),t.z2=i.z2}));var d={},p=e.valueDim.posDesc[+(i.boundingLength>0)],f=t.__pictorialBarRect;c(f.style,d,s,n,e.seriesModel,o,p),r.setHoverStyle(f,d)}function P(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var k=n.extendChartView({type:"pictorialBar",render:function(t,e,i){var n=this.group,a=t.getData(),o=this._data,s=t.coordinateSystem,l=!!s.getBaseAxis().isHorizontal(),u=s.grid.getRect(),c={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:d[+l],categoryDim:d[1-l]};return a.diff(o).add((function(t){if(a.hasValue(t)){var e=b(a,t),i=f(a,t,e,c),r=I(a,c,i);a.setItemGraphicEl(t,r),n.add(r),L(r,c,i)}})).update((function(t,e){var i=o.getItemGraphicEl(e);if(a.hasValue(t)){var s=b(a,t),l=f(a,t,s,c),u=A(a,l);i&&u!==i.__pictorialShapeStr&&(n.remove(i),a.setItemGraphicEl(t,null),i=null),i?function(t,e,i){var n=i.animationModel,a=i.dataIndex,o=t.__pictorialBundle;r.updateProps(o,{position:i.bundlePosition.slice()},n,a),i.symbolRepeat?v(t,e,i,!0):y(t,e,i,!0);x(t,i,!0),_(t,e,i,!0)}(i,c,l):i=I(a,c,l,!0),a.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=l,n.add(i),L(i,c,l)}else n.remove(i)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&T(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=a,this.group},dispose:a.noop,remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl((function(e){T(n,e.dataIndex,t,e)})):i.removeAll()}});t.exports=k},14534:function(t,e,i){var n=i(76282)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getBarItemStyle:function(t){var e=n(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}};t.exports=a},55692:function(t,e,i){var n=i(18993),a=i(38113).getDefaultLabel;function r(t,e){"outside"===t.textPosition&&(t.textPosition=e)}e.setLabel=function(t,e,i,o,s,l,u){var c=i.getModel("label"),h=i.getModel("emphasis.label");n.setLabelStyle(t,e,c,h,{labelFetcher:s,labelDataIndex:l,defaultText:a(s.getData(),l),isRectText:!0,autoColor:o}),r(t),r(e)}},56696:function(t,e,i){var n=i(3096);i(3673),i(41831);var a=i(498),r=i(22303);n.registerVisual(a),n.registerLayout(r)},3673:function(t,e,i){var n=i(69008),a=i(38645),r=i(45112).seriesModelMixin,o=a.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}});n.mixin(o,r,!0);var s=o;t.exports=s},41831:function(t,e,i){var n=i(69008),a=i(68880),r=i(18993),o=i(60397),s=["itemStyle"],l=["emphasis","itemStyle"],u=a.extend({type:"boxplot",render:function(t,e,i){var n=t.getData(),a=this.group,r=this._data;this._data||a.removeAll();var o="horizontal"===t.get("layout")?1:0;n.diff(r).add((function(t){if(n.hasValue(t)){var e=h(n.getItemLayout(t),n,t,o,!0);n.setItemGraphicEl(t,e),a.add(e)}})).update((function(t,e){var i=r.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);i?d(s,i,n,t):i=h(s,n,t,o),a.add(i),n.setItemGraphicEl(t,i)}else a.remove(i)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&a.remove(e)})).execute(),this._data=n},remove:function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:n.noop}),c=o.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n0?"P":"N",r=n.getVisual("borderColor"+a)||n.getVisual("color"+a),o=i.getModel(l).getItemStyle(c);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var _=h;t.exports=_},7898:function(t,e,i){var n=i(18993).subPixelOptimize,a=i(13861),r=i(86957).parsePercent,o=i(69008).retrieve2,s="undefined"!=typeof Float32Array?Float32Array:Array,l={seriesType:"candlestick",plan:a(),reset:function(t){var e=t.coordinateSystem,i=t.getData(),a=function(t,e){var i,n=t.getBaseAxis(),a="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),s=r(o(t.get("barMaxWidth"),a),a),l=r(o(t.get("barMinWidth"),1),a),u=t.get("barWidth");return null!=u?r(u,a):Math.max(Math.min(a/2,s),l)}(t,i),l=["x","y"],c=i.mapDimension(l[0]),h=i.mapDimension(l[1],!0),d=h[0],p=h[1],f=h[2],g=h[3];if(i.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),!(null==c||h.length<4))return{progress:t.pipelineContext.large?function(t,i){var n,a,r=new s(4*t.count),o=0,l=[],h=[];for(;null!=(a=t.next());){var m=i.get(c,a),v=i.get(d,a),y=i.get(p,a),x=i.get(f,a),_=i.get(g,a);isNaN(m)||isNaN(x)||isNaN(_)?(r[o++]=NaN,o+=3):(r[o++]=u(i,a,v,y,p),l[0]=m,l[1]=x,n=e.dataToPoint(l,null,h),r[o++]=n?n[0]:NaN,r[o++]=n?n[1]:NaN,l[1]=_,n=e.dataToPoint(l,null,h),r[o++]=n?n[1]:NaN)}i.setLayout("largePoints",r)}:function(t,i){var r;for(;null!=(r=t.next());){var o=i.get(c,r),s=i.get(d,r),l=i.get(p,r),h=i.get(f,r),m=i.get(g,r),v=Math.min(s,l),y=Math.max(s,l),x=M(v,o),_=M(y,o),b=M(h,o),w=M(m,o),S=[];I(S,_,0),I(S,x,1),S.push(A(w),A(_),A(b),A(x)),i.setItemLayout(r,{sign:u(i,r,s,l,p),initBaseline:s>l?_[1]:x[1],ends:S,brushRect:T(h,m,o)})}function M(t,i){var n=[];return n[0]=i,n[1]=t,isNaN(i)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function I(t,e,i){var r=e.slice(),o=e.slice();r[0]=n(r[0]+a/2,1,!1),o[0]=n(o[0]-a/2,1,!0),i?t.push(r,o):t.push(o,r)}function T(t,e,i){var n=M(t,i),r=M(e,i);return n[0]-=a/2,r[0]-=a/2,{x:n[0],y:n[1],width:a,height:r[1]-n[1]}}function A(t){return t[0]=n(t[0],1),t}}}}};function u(t,e,i,n,a){return i>n?-1:i0?t.get(a,e-1)<=n?1:-1:1}t.exports=l},42688:function(t,e,i){var n=i(13861),a=["itemStyle","borderColor"],r=["itemStyle","borderColor0"],o=["itemStyle","color"],s=["itemStyle","color0"],l={seriesType:"candlestick",plan:n(),performRawSeries:!0,reset:function(t,e){if(t.getData().setVisual({legendSymbol:"roundRect",colorP:i(1,t),colorN:i(-1,t),borderColorP:n(1,t),borderColorN:n(-1,t)}),!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){var a;for(;null!=(a=t.next());){var r=e.getItemModel(a),o=e.getItemLayout(a).sign;e.setItemVisual(a,{color:i(o,r),borderColor:n(o,r)})}}};function i(t,e){return e.get(t>0?o:s)}function n(t,e){return e.get(t>0?a:r)}}};t.exports=l},38368:function(t,e,i){var n=i(69008);t.exports=function(t){t&&n.isArray(t.series)&&n.each(t.series,(function(t){n.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}},47468:function(t,e,i){i(96311).__DEV__;var n=i(69008),a=i(18993),r=i(38113).getDefaultLabel,o=i(32977),s=i(64816).getLayoutOnAxis,l=i(90515),u=i(38645),c=i(24040),h=i(68880),d=i(38797).createClipPath,p=i(40114),f=i(8058),g=i(66848),m=i(69171),v=i(41675),y=a.CACHED_LABEL_STYLE_PROPERTIES,x=["itemStyle"],_=["emphasis","itemStyle"],b=["label"],w=["emphasis","label"],S={cartesian2d:p,geo:f,singleAxis:g,polar:m,calendar:v};function M(t,e,i,n,a){null==i[t]||a||(e[t]=i[t],i[t]=n[t])}function I(t,e,i,o){var l=t.get("renderItem"),u=t.coordinateSystem,c={};u&&(c=u.prepareCustoms?u.prepareCustoms():S[u.type](u));var h,d,p,f,g,m=n.defaults({getWidth:o.getWidth,getHeight:o.getHeight,getZr:o.getZr,getDevicePixelRatio:o.getDevicePixelRatio,value:function(t,i){return null==i&&(i=h),e.get(e.getDimension(t||0),i)},style:function(i,o){null==o&&(o=h),M(o);var s=d.getModel(x).getItemStyle();null!=g&&(s.fill=g);var l=e.getItemVisual(o,"opacity");null!=l&&(s.opacity=l);var u=i?P(i,p):p;return a.setTextStyle(s,u,null,{autoColor:g,isRectText:!0}),s.text=u.getShallow("show")?n.retrieve2(t.getFormattedLabel(o,"normal"),r(e,o)):null,i&&k(s,i),s},styleEmphasis:function(i,o){null==o&&(o=h),M(o);var s=d.getModel(_).getItemStyle(),l=i?P(i,f):f;return a.setTextStyle(s,l,null,{isRectText:!0},!0),s.text=l.getShallow("show")?n.retrieve3(t.getFormattedLabel(o,"emphasis"),t.getFormattedLabel(o,"normal"),r(e,o)):null,i&&k(s,i),s},visual:function(t,i){return null==i&&(i=h),e.getItemVisual(i,t)},barLayout:function(t){if(u.getBaseAxis){var e=u.getBaseAxis();return s(n.defaults({axis:e},t),o)}},currentSeriesIndices:function(){return i.getCurrentSeriesIndices()},font:function(t){return a.getFont(t,i)}},c.api||{}),v={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:c.coordSys,dataInsideLength:e.count(),encode:T(t.getData())},y=!0;return function(t,i){return h=t,y=!0,l&&l(n.defaults({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:i?i.type:null},v),m)};function M(t){null==t&&(t=h),y&&(d=e.getItemModel(t),p=d.getModel(b),f=d.getModel(w),g=e.getItemVisual(t,"color"),y=!1)}}function T(t){var e={};return n.each(t.dimensions,(function(i,n){var a=t.getDimensionInfo(i);if(!a.isExtraCoord){var r=a.coordDim;(e[r]=e[r]||[])[a.coordDimIndex]=n}})),e}function A(t,e,i,n,a,r){return(t=C(t,e,i,n,a,r,!0))&&r.setItemGraphicEl(e,t),t}function C(t,e,i,r,o,s,u){var c,h=!i,d=(i=i||{}).type,p=i.shape,f=i.style;if(t&&(h||null!=d&&d!==t.__customGraphicType||"path"===d&&((c=p)&&(c.hasOwnProperty("pathData")||c.hasOwnProperty("d")))&&R(p)!==t.__customPathData||"image"===d&&E(f,"image")&&f.image!==t.__customImagePath||"text"===d&&E(p,"text")&&f.text!==t.__customText)&&(o.remove(t),t=null),!h){var g=!t;return!t&&(t=function(t){var e,i=t.type;if("path"===i){var n=t.shape,r=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=R(n);(e=a.makePath(o,null,r,n.layout||"center")).__customPathData=o}else if("image"===i)(e=new a.Image({})).__customImagePath=t.style.image;else if("text"===i)(e=new a.Text({})).__customText=t.style.text;else if("group"===i)e=new a.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');e=new(a.getShapeClass(i))}return e.__customGraphicType=i,e.name=t.name,e}(i)),function(t,e,i,r,o,s,l){var u={},c=i.style||{};if(i.shape&&(u.shape=n.clone(i.shape)),i.position&&(u.position=i.position.slice()),i.scale&&(u.scale=i.scale.slice()),i.origin&&(u.origin=i.origin.slice()),i.rotation&&(u.rotation=i.rotation),"image"===t.type&&i.style){var h=u.style={};n.each(["x","y","width","height"],(function(e){M(e,h,c,t.style,s)}))}"text"===t.type&&i.style&&(h=u.style={},n.each(["x","y"],(function(e){M(e,h,c,t.style,s)})),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke));if("group"!==t.type&&(t.useStyle(c),s)){t.style.opacity=0;var d=c.opacity;null==d&&(d=1),a.initProps(t,{style:{opacity:d}},r,e)}s?t.attr(u):a.updateProps(t,u,r,e),i.hasOwnProperty("z2")&&t.attr("z2",i.z2||0),i.hasOwnProperty("silent")&&t.attr("silent",i.silent),i.hasOwnProperty("invisible")&&t.attr("invisible",i.invisible),i.hasOwnProperty("ignore")&&t.attr("ignore",i.ignore),i.hasOwnProperty("info")&&t.attr("info",i.info);var p=i.styleEmphasis;a.setElementHoverStyle(t,p),l&&a.setAsHighDownDispatcher(t,!1!==p)}(t,e,i,r,0,g,u),"group"===d&&function(t,e,i,n,a){var r=i.children,o=r?r.length:0,s=i.$mergeChildren,u="byName"===s||i.diffChildrenByName,c=!1===s;if(!o&&!u&&!c)return;if(u)return h={oldChildren:t.children()||[],newChildren:r||[],dataIndex:e,animatableModel:n,group:t,data:a},void new l(h.oldChildren,h.newChildren,D,D,h).add(L).update(L).remove(O).execute();var h;c&&t.removeAll();for(var d=0;d=t&&(0===e?0:n[e-1][0]).4?"bottom":"middle",textAlign:P<-.4?"left":P>.4?"right":"center"},{autoColor:N}),silent:!0}))}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){P=Math.cos(I),k=Math.sin(I);var B=new a.Line({shape:{x1:P*g+p,y1:k*g+f,x2:P*(g-M)+p,y2:k*(g-M)+f},silent:!0,style:D});"auto"===D.stroke&&B.setStyle({stroke:n((L+z/w)/b)}),d.add(B),I+=A}I-=A}else I+=T}},_renderPointer:function(t,e,i,r,o,l,c,h){var d=this.group,p=this._data;if(t.get("pointer.show")){var f=[+t.get("min"),+t.get("max")],g=[l,c],m=t.getData(),v=m.mapDimension("value");m.diff(p).add((function(e){var i=new n({shape:{angle:l}});a.initProps(i,{shape:{angle:u(m.get(v,e),f,g,!0)}},t),d.add(i),m.setItemGraphicEl(e,i)})).update((function(e,i){var n=p.getItemGraphicEl(i);a.updateProps(n,{shape:{angle:u(m.get(v,e),f,g,!0)}},t),d.add(n),m.setItemGraphicEl(e,n)})).remove((function(t){var e=p.getItemGraphicEl(t);d.remove(e)})).execute(),m.eachItemGraphicEl((function(t,e){var i=m.getItemModel(e),n=i.getModel("pointer");t.setShape({x:o.cx,y:o.cy,width:s(n.get("width"),o.r),r:s(n.get("length"),o.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",r(u(m.get(v,e),f,[0,1],!0))),a.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=m}else p&&p.eachItemGraphicEl((function(t){d.remove(t)}))},_renderTitle:function(t,e,i,n,r){var o=t.getData(),l=o.mapDimension("value"),c=t.getModel("title");if(c.get("show")){var h=c.get("offsetCenter"),d=r.cx+s(h[0],r.r),p=r.cy+s(h[1],r.r),f=+t.get("min"),g=+t.get("max"),m=t.getData().get(l,0),v=n(u(m,[f,g],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},c,{x:d,y:p,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,r){var o=t.getModel("detail"),l=+t.get("min"),h=+t.get("max");if(o.get("show")){var d=o.get("offsetCenter"),p=r.cx+s(d[0],r.r),f=r.cy+s(d[1],r.r),g=s(o.get("width"),r.r),m=s(o.get("height"),r.r),v=t.getData(),y=v.get(v.mapDimension("value"),0),x=n(u(y,[l,h],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},o,{x:p,y:f,text:c(y,o.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}});t.exports=d},36131:function(t,e,i){var n=i(60397).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var i=Math.cos,n=Math.sin,a=e.r,r=e.width,o=e.angle,s=e.x-i(o)*r*(r>=a/3?1:2),l=e.y-n(o)*r*(r>=a/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(o)*r,e.y+n(o)*r),t.lineTo(e.x+i(e.angle)*a,e.y+n(e.angle)*a),t.lineTo(e.x-i(o)*r,e.y-n(o)*r),t.lineTo(s,l)}});t.exports=n},57495:function(t,e,i){var n=i(3096);i(46349),i(32979),i(6458);var a=i(12301),r=i(11404),o=i(48468),s=i(62939),l=i(293),u=i(14146),c=i(21701),h=i(57186);n.registerProcessor(a),n.registerVisual(r("graph","circle",null)),n.registerVisual(o),n.registerVisual(s),n.registerLayout(l),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,u),n.registerLayout(c),n.registerCoordinateSystem("graphView",{create:h})},46349:function(t,e,i){var n=i(3096),a=i(39177),r=i(69008),o=i(90830).defaultEmphasis,s=i(24040),l=i(17010).encodeHTML,u=i(29306),c=i(50329),h=n.extendSeriesModel({type:"series.graph",init:function(t){h.superApply(this,"init",arguments);var e=this;function i(){return e._categoriesData}this.legendVisualProvider=new c(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){h.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){h.superApply(this,"mergeDefaultAndTheme",arguments),o(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],a=this;if(n&&i)return u(n,i,this,!0,(function(t,i){t.wrapMethod("getItemModel",(function(t){var e=a._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=a.getModel("edgeLabel"),r=new s({label:n.option},n.parentModel,e),o=a.getModel("emphasis.edgeLabel"),l=new s({emphasis:{label:o.option}},o.parentModel,e);function u(t){return(t=this.parsePath(t))&&"label"===t[0]?r:t&&"emphasis"===t[0]&&"label"===t[1]?l:this.parentModel}i.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(u),t}))})).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),a=this.getDataParams(t,i),r=n.graph.getEdgeByIndex(t),o=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),u=[];return null!=o&&u.push(o),null!=s&&u.push(s),u=l(u.join(" > ")),a.value&&(u+=" : "+l(a.value)),u}return h.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=r.map(this.option.categories||[],(function(t){return null!=t.value?t:r.extend({value:0},t)})),e=new a(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return h.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&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}}}}),d=h;t.exports=d},32979:function(t,e,i){var n=i(3096),a=i(69008),r=i(38346),o=i(70562),s=i(38515),l=i(37419),u=i(18584).onIrrelevantElement,c=i(18993),h=i(76839),d=i(83972).getNodeGlobalScale,p="__focusNodeAdjacency",f="__unfocusNodeAdjacency",g=["itemStyle","opacity"],m=["lineStyle","opacity"];function v(t,e){var i=t.getVisual("opacity");return null!=i?i:t.getModel().get(e)}function y(t,e,i){var n=t.getGraphicEl(),a=v(t,e);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==i||(e=a),t.setStyle("opacity",e)}}))}function x(t,e){var i=v(t,e),n=t.getGraphicEl();n.traverse((function(t){!t.isGroup&&t.setStyle("opacity",i)})),n.highlight&&n.highlight()}var _=n.extendChartView({type:"graph",init:function(t,e){var i=new r,n=new o,a=this.group;this._controller=new s(e.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(t,e,i){var n=this,a=t.coordinateSystem;this._model=t;var r=this._symbolDraw,o=this._lineDraw,s=this.group;if("view"===a.type){var l={position:a.position,scale:a.scale};this._firstRender?s.attr(l):c.updateProps(s,l,t)}h(t.getGraph(),d(t));var u=t.getData();r.updateData(u);var g=t.getEdgeData();o.updateData(g),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var m=t.forceLayout,v=t.get("force.layoutAnimation");m&&this._startForceLayoutIteration(m,v),u.eachItemGraphicEl((function(e,a){var r=u.getItemModel(a);e.off("drag").off("dragend");var o=r.get("draggable");o&&e.on("drag",(function(){m&&(m.warmUp(),!this._layouting&&this._startForceLayoutIteration(m,v),m.setFixed(a),u.setItemLayout(a,e.position))}),this).on("dragend",(function(){m&&m.setUnfixed(a)}),this),e.setDraggable(o&&m),e[p]&&e.off("mouseover",e[p]),e[f]&&e.off("mouseout",e[f]),r.get("focusNodeAdjacency")&&(e.on("mouseover",e[p]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[f]=function(){n._dispatchUnfocus(i)}))}),this),u.graph.eachEdge((function(e){var a=e.getGraphicEl();a[p]&&a.off("mouseover",a[p]),a[f]&&a.off("mouseout",a[f]),e.getModel().get("focusNodeAdjacency")&&(a.on("mouseover",a[p]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),a.on("mouseout",a[f]=function(){n._dispatchUnfocus(i)}))}));var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),x=u.getLayout("cx"),_=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var i=u.getItemModel(e).get("label.rotate")||0,n=t.getSymbolPath();if(y){var a=u.getItemLayout(e),r=Math.atan2(a[1]-_,a[0]-x);r<0&&(r=2*Math.PI+r);var o=a[0]=0?n+=g:n-=g:_>=0?n-=g:n+=g}return n}t.exports=function(t,e){var i=[],o=n.quadraticSubdivide,s=[[],[],[]],l=[[],[]],u=[];e/=2,t.eachEdge((function(t,n){var c=t.getLayout(),h=t.getVisual("fromSymbol"),p=t.getVisual("toSymbol");c.__original||(c.__original=[a.clone(c[0]),a.clone(c[1])],c[2]&&c.__original.push(a.clone(c[2])));var f=c.__original;if(null!=c[2]){if(a.copy(s[0],f[0]),a.copy(s[1],f[2]),a.copy(s[2],f[1]),h&&"none"!==h){var g=r(t.node1),m=d(s,f[0],g*e);o(s[0][0],s[1][0],s[2][0],m,i),s[0][0]=i[3],s[1][0]=i[4],o(s[0][1],s[1][1],s[2][1],m,i),s[0][1]=i[3],s[1][1]=i[4]}if(p&&"none"!==p){g=r(t.node2),m=d(s,f[1],g*e);o(s[0][0],s[1][0],s[2][0],m,i),s[1][0]=i[1],s[2][0]=i[2],o(s[0][1],s[1][1],s[2][1],m,i),s[1][1]=i[1],s[2][1]=i[2]}a.copy(c[0],s[0]),a.copy(c[1],s[2]),a.copy(c[2],s[1])}else{if(a.copy(l[0],f[0]),a.copy(l[1],f[1]),a.sub(u,l[1],l[0]),a.normalize(u,u),h&&"none"!==h){g=r(t.node1);a.scaleAndAdd(l[0],l[0],u,g*e)}if(p&&"none"!==p){g=r(t.node2);a.scaleAndAdd(l[1],l[1],u,-g*e)}a.copy(c[0],l[0]),a.copy(c[1],l[1])}}))}},12301:function(t){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var i=t.getCategoriesData(),n=t.getGraph().data,a=i.mapArray(i.getName);n.filterSelf((function(t){var i=n.getItemModel(t).getShallow("category");if(null!=i){"number"==typeof i&&(i=a[i]);for(var r=0;r0){var I=r(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return h.putImageData(y,0,0),c},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=n.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var a=t.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-e,e,this.pointSize,0,2*Math.PI,!0),a.closePath(),a.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,a=n[i]||(n[i]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,s=0;s<256;s++)e[i](s/255,!0,r),a[o++]=r[0],a[o++]=r[1],a[o++]=r[2],a[o++]=r[3];return a}};var r=a;t.exports=r},11226:function(t,e,i){var n=i(38645),a=i(32977),r=i(33807),o=n.extend({type:"series.heatmap",getInitialData:function(t,e){return a(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=r.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});t.exports=o},36684:function(t,e,i){i(96311).__DEV__;var n=i(3096),a=i(18993),r=i(81311),o=i(69008);var s=n.extendChartView({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(i){i===t&&(n=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var a=t.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):function(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}(a)&&this._renderOnGeo(a,t,n,i)},incrementalPrepareRender:function(t,e,i){this.group.removeAll()},incrementalRender:function(t,e,i,n){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,i,n,r){var s,l,u=t.coordinateSystem;if("cartesian2d"===u.type){var c=u.getAxis("x"),h=u.getAxis("y");s=c.getBandWidth(),l=h.getBandWidth()}for(var d=this.group,p=t.getData(),f="itemStyle",g="emphasis.itemStyle",m="label",v="emphasis.label",y=t.getModel(f).getItemStyle(["color"]),x=t.getModel(g).getItemStyle(),_=t.getModel(m),b=t.getModel(v),w=u.type,S="cartesian2d"===w?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=i;M=e[0]&&t<=e[1]}}(b,i.option.range):function(t,e,i){var n=t[1]-t[0],a=(e=o.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}}))).length,r=0;return function(t){for(var n=r;n=0;n--){var o;if((o=e[n].interval)[0]<=t&&t<=o[1]){r=n;break}}return n>=0&&n0&&(s=this.getLineLength(n)/u*1e3),s!==this._period||l!==this._loop){n.stopAnimation();var d=c;h&&(d=c(i)),n.__t>0&&(d=-s*n.__t),n.__t=0;var p=n.animate("",l).when(s,{__t:1}).delay(d).during((function(){a.updateSymbolPosition(n)}));l||p.done((function(){a.remove(n)})),p.start()}this._period=s,this._loop=l}},c.getLineLength=function(t){return s.dist(t.__p1,t.__cp1)+s.dist(t.__cp1,t.__p2)},c.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},c.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},c.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,a=t.__t,r=t.position,o=[r[0],r[1]],u=l.quadraticAt,c=l.quadraticDerivativeAt;r[0]=u(e[0],n[0],i[0],a),r[1]=u(e[1],n[1],i[1],a);var h=c(e[0],n[0],i[0],a),d=c(e[1],n[1],i[1],a);if(t.rotation=-Math.atan2(d,h)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==t.__lastT&&t.__lastT=0&&!(n[s]<=e);s--);s=Math.min(s,a-2)}else{for(var s=r;se);s++);s=Math.min(s-1,a-2)}o.lerp(t.position,i[s],i[s+1],(e-n[s])/(n[s+1]-n[s]));var l=i[s+1][0]-i[s][0],u=i[s+1][1]-i[s][1];t.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=e,t.ignore=!1}},a.inherits(s,r);var u=s;t.exports=u},82760:function(t,e,i){var n=i(69008),a=i(22868).createSymbol,r=i(18993).Group,o=i(86957).parsePercent,s=i(32427);function l(t,e){var i=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?i:null,fill:"fill"===e.brushType?i:null}})}))}function u(t,e){r.call(this);var i=new s(t,e),n=new r;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var c=u.prototype;c.stopEffectAnimation=function(){this.childAt(1).removeAll()},c.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),r=0;r<3;r++){var o=a(e,-1,-1,2,2,i);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-r/3*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(s).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),n.add(o)}l(n,t)},c.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],a=0;a0){t.moveTo(i[a++],i[a++]);for(var o=1;o0){var h=(s+u)/2-(l-c)*n,d=(l+c)/2-(u-s)*n;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}},findDataIndex:function(t,e){var i=this.shape,n=i.segs,a=i.curveness;if(i.polyline)for(var s=0,l=0;l0)for(var c=n[l++],h=n[l++],d=1;d0){var g=(c+p)/2-(h-f)*a,m=(h+f)/2-(p-c)*a;if(o.containStroke(c,h,g,m,p,f))return s}else if(r.containStroke(c,h,p,f))return s;s++}return-1}});function l(){this.group=new n.Group}var u=l.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(t){this.group.removeAll();var e=new s({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},u.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(t,e){var i=new s;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=e.getVisual("color");a&&t.setStyle("stroke",a),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)})))},u._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var c=l;t.exports=c},15499:function(t,e,i){var n=i(18993),a=i(22868).createSymbol,r=i(61465),o=n.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,e){var i=e.points,n=e.size,a=this.symbolProxy,r=a.shape;if(!((t.getContext?t.getContext():t)&&n[0]<4))for(var o=0;o=0;s--){var l=2*s,u=n[l]-r/2,c=n[l+1]-o/2;if(t>=u&&e>=c&&t<=u+r&&e<=c+o)return s}return-1}});function s(){this.group=new n.Group}var l=s.prototype;l.isPersistent=function(){return!this._incremental},l.updateData=function(t,e){this.group.removeAll();var i=new o({rectHover:!0,cursor:"default"});i.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(i,t,!1,e),this.group.add(i),this._incremental=null},l.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e)}))}},l.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},l.incrementalUpdate=function(t,e,i){var n;this._incremental?(n=new o,this._incremental.addDisplayable(n,!0)):((n=new o({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(n)),n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!!this._incremental,i)},l._setCommon=function(t,e,i,n){var r=e.hostModel;n=n||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=n.clipShape||null,t.symbolProxy=a(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var s=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var l=e.getVisual("color");l&&t.setColor(l),i||(t.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>=0&&(t.dataIndex=i+(t.startIndex||0))})))},l.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},l._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var u=s;t.exports=u},85617:function(t,e,i){var n=i(69008),a=i(47764),r=i(22868),o=i(46875),s=i(18993),l=i(86957).round,u=["fromSymbol","toSymbol"];function c(t){return"_"+t+"Type"}function h(t,e,i){var a=e.getItemVisual(i,"color"),o=e.getItemVisual(i,t),s=e.getItemVisual(i,t+"Size");if(o&&"none"!==o){n.isArray(s)||(s=[s,s]);var l=r.createSymbol(o,-s[0]/2,-s[1]/2,s[0],s[1],a);return l.name=t,l}}function d(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var i=e[2];i?(t.cpx1=i[0],t.cpy1=i[1]):(t.cpx1=NaN,t.cpy1=NaN)}function p(t,e,i){s.Group.call(this),this._createLine(t,e,i)}var f=p.prototype;f.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var r=1,o=this.parent;o;)o.scale&&(r/=o.scale[0]),o=o.parent;var s=t.childOfName("line");if(this.__dirty||s.__dirty){var l=s.shape.percent,u=s.pointAt(0),c=s.pointAt(l),h=a.sub([],c,u);if(a.normalize(h,h),e){e.attr("position",u);var d=s.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0])),e.attr("scale",[r*l,r*l])}if(i){i.attr("position",c);d=s.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0])),i.attr("scale",[r*l,r*l])}if(!n.ignore){var p,f,g,m;n.attr("position",c);var v=n.__labelDistance,y=v[0]*r,x=v[1]*r,_=l/2,b=[(d=s.tangentAt(_))[1],-d[0]],w=s.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var S,M=d[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var I=-Math.atan2(d[1],d[0]);c[0].8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":p=[-h[0]*y+u[0],-h[1]*x+u[1]],f=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":p=[y*M+u[0],u[1]+S],f=d[0]<0?"right":"left",m=[-y*M,-S];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":p=[w[0],w[1]+S],f="center",m=[0,-S];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":p=[-y*M+c[0],c[1]+S],f=d[0]>=0?"right":"left",m=[y*M,-S]}n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||f},position:p,scale:[r,r],origin:m})}}}},f._createLine=function(t,e,i){var a=t.hostModel,r=function(t){var e=new o({name:"line",subPixelOptimize:!0});return d(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,s.initProps(r,{shape:{percent:1}},a,e),this.add(r);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),n.each(u,(function(i){var n=h(i,t,e);this.add(n),this[c(i)]=t.getItemVisual(e,i)}),this),this._updateCommonStl(t,e,i)},f.updateData=function(t,e,i){var a=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),l={shape:{}};d(l.shape,o),s.updateProps(r,l,a,e),n.each(u,(function(i){var n=t.getItemVisual(e,i),a=c(i);if(this[a]!==n){this.remove(this.childOfName(i));var r=h(i,t,e);this.add(r)}this[a]=n}),this),this._updateCommonStl(t,e,i)},f._updateCommonStl=function(t,e,i){var a=t.hostModel,r=this.childOfName("line"),o=i&&i.lineStyle,c=i&&i.hoverLineStyle,h=i&&i.labelModel,d=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var p=t.getItemModel(e);o=p.getModel("lineStyle").getLineStyle(),c=p.getModel("emphasis.lineStyle").getLineStyle(),h=p.getModel("label"),d=p.getModel("emphasis.label")}var f=t.getItemVisual(e,"color"),g=n.retrieve3(t.getItemVisual(e,"opacity"),o.opacity,1);r.useStyle(n.defaults({strokeNoScale:!0,fill:"none",stroke:f,opacity:g},o)),r.hoverStyle=c,n.each(u,(function(t){var e=this.childOfName(t);e&&(e.setColor(f),e.setStyle({opacity:g}))}),this);var m,v,y=h.getShallow("show"),x=d.getShallow("show"),_=this.childOfName("label");if((y||x)&&(m=f||"#000",null==(v=a.getFormattedLabel(e,"normal",t.dataType)))){var b=a.getRawValue(e);v=null==b?t.getName(e):isFinite(b)?l(b):b}var w=y?v:null,S=x?n.retrieve2(a.getFormattedLabel(e,"emphasis",t.dataType),v):null,M=_.style;if(null!=w||null!=S){s.setTextStyle(_.style,h,{text:w},{autoColor:m}),_.__textAlign=M.textAlign,_.__verticalAlign=M.textVerticalAlign,_.__position=h.get("position")||"middle";var I=h.get("distance");n.isArray(I)||(I=[I,I]),_.__labelDistance=I}_.hoverStyle=null!=S?{text:S,textFill:d.getTextColor(!0),fontStyle:d.getShallow("fontStyle"),fontWeight:d.getShallow("fontWeight"),fontSize:d.getShallow("fontSize"),fontFamily:d.getShallow("fontFamily")}:{text:null},_.ignore=!y&&!x,s.setHoverStyle(this)},f.highlight=function(){this.trigger("emphasis")},f.downplay=function(){this.trigger("normal")},f.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},f.setLinePoints=function(t){var e=this.childOfName("line");d(e.shape,t),e.dirty()},n.inherits(p,s.Group);var g=p;t.exports=g},70562:function(t,e,i){var n=i(18993),a=i(85617);function r(t){this._ctor=t||a,this.group=new n.Group}var o=r.prototype;function s(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function l(t){return isNaN(t[0])||isNaN(t[1])}function u(t){return!l(t[0])&&!l(t[1])}o.isPersistent=function(){return!0},o.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var a=s(t);t.diff(n).add((function(i){!function(t,e,i,n){var a=e.getItemLayout(i);if(!u(a))return;var r=new t._ctor(e,i,n);e.setItemGraphicEl(i,r),t.group.add(r)}(e,t,i,a)})).update((function(i,r){!function(t,e,i,n,a,r){var o=e.getItemGraphicEl(n);if(!u(i.getItemLayout(a)))return void t.group.remove(o);o?o.updateData(i,a,r):o=new t._ctor(i,a,r);i.setItemGraphicEl(a,o),t.group.add(o)}(e,n,t,r,i,a)})).remove((function(t){i.remove(n.getItemGraphicEl(t))})).execute()},o.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,i){e.updateLayout(t,i)}),this)},o.incrementalPrepareUpdate=function(t){this._seriesScope=s(t),this._lineData=null,this.group.removeAll()},o.incrementalUpdate=function(t,e){function i(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=t.useHoverLayer=!0)}for(var n=t.start;n "+x)),m++)}var _,b=i.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=u(t,i);else{var w=l.get(b),S=w&&"view"!==w.type&&w.dimensions||[];n.indexOf(S,"value")<0&&S.concat(["value"]);var M=s(t,{coordDimensions:S});(_=new a(M,i)).initData(t)}var I=new a(["value"],i);return I.initData(g,f),h&&h(_,I),o({mainData:_,struct:d,structAttr:"graph",datas:{node:_,edge:I},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},32977:function(t,e,i){var n=i(69008),a=i(39177),r=i(34476),o=i(8326).SOURCE_FORMAT_ORIGINAL,s=i(28176).getDimensionTypeByAxis,l=i(90830).getDataItemValue,u=i(33807),c=i(28927).getCoordSysInfoBySeries,h=i(50751),d=i(22240).enableDataStack,p=i(67063).makeSeriesEncodeForAxisCoordSys;var f=function(t,e,i){i=i||{},h.isInstance(t)||(t=h.seriesDataToSource(t));var f,g=e.get("coordinateSystem"),m=u.get(g),v=c(e);v&&(f=n.map(v.coordSysDims,(function(t){var e={name:t},i=v.axisMap.get(t);if(i){var n=i.get("type");e.type=s(n)}return e}))),f||(f=m&&(m.getDimensionsInfo?m.getDimensionsInfo():m.dimensions.slice())||["x","y"]);var y,x,_=r(t,{coordDimensions:f,generateCoord:i.generateCoord,encodeDefaulter:i.useEncodeDefaulter?n.curry(p,f,e):null});v&&n.each(_,(function(t,e){var i=t.coordDim,n=v.categoryAxisMap.get(i);n&&(null==y&&(y=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(x=!0)})),x||null==y||(_[y].otherDims.itemName=0);var b=d(e,_),w=new a(_,e);w.setCalculationInfo(b);var S=null!=y&&function(t){if(t.sourceFormat===o){var e=function(t){var e=0;for(;e=0){var a=i.getData().tree.root,r=t.targetNode;if("string"==typeof r&&(r=a.getNodeById(r)),r&&a.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=a.getNodeById(o)))return{node:r}}},e.getPathToRoot=a,e.aboveViewRoot=function(t,e){var i=a(t);return n.indexOf(i,e)>=0},e.wrapTreePathInfo=function(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}},45112:function(t,e,i){var n=i(60425),a=i(69008),r=i(28176).getDimensionTypeByAxis,o=i(67063).makeSeriesEncodeForAxisCoordSys,s={_baseAxisDim:null,getInitialData:function(t,e){var i,s,l=e.getComponent("xAxis",this.get("xAxisIndex")),u=e.getComponent("yAxis",this.get("yAxisIndex")),c=l.get("type"),h=u.get("type");"category"===c?(t.layout="horizontal",i=l.getOrdinalMeta(),s=!0):"category"===h?(t.layout="vertical",i=u.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var d=["x","y"],p="horizontal"===t.layout?0:1,f=this._baseAxisDim=d[p],g=d[1-p],m=[l,u],v=m[p].get("type"),y=m[1-p].get("type"),x=t.data;if(x&&s){var _=[];a.each(x,(function(t,e){var i;t.value&&a.isArray(t.value)?(i=t.value.slice(),t.value.unshift(e)):a.isArray(t)?(i=t.slice(),t.unshift(e)):i=t,_.push(i)})),t.data=_}var b=this.defaultValueDimensions,w=[{name:f,type:r(v),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:r(y),dimsDef:b.slice()}];return n(this,{coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:a.curry(o,w,this)})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};e.seriesModelMixin=s},54023:function(t,e,i){var n=i(3096);i(30399),i(51118);var a=i(11404),r=i(87984),o=i(70932);i(47102),n.registerVisual(a("line","circle","line")),n.registerLayout(r("line")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,o("line"))},30399:function(t,e,i){i(96311).__DEV__;var n=i(32977),a=i(38645).extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return n(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}});t.exports=a},51118:function(t,e,i){i(96311).__DEV__;var n=i(69008),a=i(16254).fromPoints,r=i(38346),o=i(32427),s=i(35553),l=i(18993),u=i(90830),c=i(81158),h=c.Polyline,d=c.Polygon,p=i(68880),f=i(75518),g=f.prepareDataCoordInfo,m=f.getStackedOnPoint,v=i(38797),y=v.createGridClipPath,x=v.createPolarClipPath;function _(t,e){if(t.length===e.length){for(var i=0;in)return!1;return!0}(s,e))){var l=e.mapDimension(s.dim),u={};return n.each(s.getViewLabels(),(function(t){u[t.tickValue]=1})),function(t){return!u.hasOwnProperty(e.get(l,t))}}}}function I(t,e,i){if("cartesian2d"===t.type){var n=t.getBaseAxis().isHorizontal(),a=y(t,e,i);if(!i.get("clip",!0)){var r=a.shape,o=Math.max(r.width,r.height);n?(r.y-=o,r.height+=2*o):(r.x-=o,r.width+=2*o)}return a}return x(t,e,i)}var T=p.extend({type:"line",init:function(){var t=new l.Group,e=new r;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var a=t.coordinateSystem,r=this.group,o=t.getData(),s=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=o.mapArray(o.getItemLayout),h="polar"===a.type,d=this._coordSys,p=this._symbolDraw,f=this._polyline,v=this._polygon,y=this._lineGroup,x=t.get("animation"),b=!u.isEmpty(),T=u.get("origin"),A=function(t,e,i){if(!i.valueDim)return[];for(var n=[],a=0,r=e.count();a=0;o--){var s=i[o].dimension,u=t.dimensions[s],c=t.getDimensionInfo(u);if("x"===(a=c&&c.coordDim)||"y"===a){r=i[o];break}}if(r){var h=e.getAxis(a),d=n.map(r.stops,(function(t){return{coord:h.toGlobalCoord(h.dataToCoord(t.value)),color:t.color}})),p=d.length,f=r.outerColors.slice();p&&d[0].coord>d[p-1].coord&&(d.reverse(),f.reverse());var g=d[0].coord-10,m=d[p-1].coord+10,v=m-g;if(v<.001)return"transparent";n.each(d,(function(t){t.offset=(t.coord-g)/v})),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var y=new l.LinearGradient(0,0,0,0,d,!0);return y[a]=g,y[a+"2"]=m,y}}}(o,a)||o.getVisual("color");f.useStyle(n.defaults(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var R=t.get("smooth");if(R=w(t.get("smooth")),f.setShape({smooth:R,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),v){var E=o.getCalculationInfo("stackedOnSeries"),N=0;v.useStyle(n.defaults(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),E&&(N=w(E.get("smooth"))),v.setShape({smooth:R,stackedOnSmooth:N,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=a,this._stackedOnPoints=A,this._points=c,this._step=k,this._valueOrigin=T},dispose:function(){},highlight:function(t,e,i,n){var a=t.getData(),r=u.queryDataIndex(a,n);if(!(r instanceof Array)&&null!=r&&r>=0){var s=a.getItemGraphicEl(r);if(!s){var l=a.getItemLayout(r);if(!l)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l[0],l[1]))return;(s=new o(a,r)).position=l,s.setZ(t.get("zlevel"),t.get("z")),s.ignore=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,a.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else p.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var a=t.getData(),r=u.queryDataIndex(a,n);if(null!=r&&r>=0){var o=a.getItemGraphicEl(r);o&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else p.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new h({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new d({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,a,r){var o=this._polyline,u=this._polygon,c=t.hostModel,h=s(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,r),d=h.current,p=h.stackedOnCurrent,f=h.next,g=h.stackedOnNext;if(a&&(d=S(h.current,i,a),p=S(h.stackedOnCurrent,i,a),f=S(h.next,i,a),g=S(h.stackedOnNext,i,a)),b(d,f)>3e3||u&&b(p,g)>3e3)return o.setShape({points:f}),void(u&&u.setShape({points:f,stackedOnPoints:g}));o.shape.__points=h.current,o.shape.points=d,l.updateProps(o,{shape:{points:f}},c),u&&(u.setShape({points:d,stackedOnPoints:p}),l.updateProps(u,{shape:{points:f,stackedOnPoints:g}},c));for(var m=[],v=h.status,y=0;y0?i=n[0]:n[1]<0&&(i=n[1]);return i}(s,i),u=o.dim,c=s.dim,h=e.mapDimension(c),d=e.mapDimension(u),p="x"===c||"radius"===c?1:0,f=a(t.dimensions,(function(t){return e.mapDimension(t)})),g=e.getCalculationInfo("stackResultDimension");return(r|=n(e,f[0]))&&(f[0]=g),(r|=n(e,f[1]))&&(f[1]=g),{dataDimsForPoint:f,valueStart:l,valueAxisDim:c,baseAxisDim:u,stacked:!!r,valueDim:h,baseDim:d,baseDataOffset:p,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}},e.getStackedOnPoint=function(t,e,i,n){var a=NaN;t.stacked&&(a=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var r=t.baseDataOffset,o=[];return o[r]=i.get(t.baseDim,n),o[1-r]=a,e.dataToPoint(o)}},35553:function(t,e,i){var n=i(75518),a=n.prepareDataCoordInfo,r=n.getStackedOnPoint;t.exports=function(t,e,i,n,o,s,l,u){for(var c=function(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}(t,e),h=[],d=[],p=[],f=[],g=[],m=[],v=[],y=a(o,e,l),x=a(s,t,u),_=0;_=a||m<0)break;if(p(y)){if(f){m+=r;continue}break}if(m===i)t[r>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var x=e[g],_="y"===c?1:0,b=(y[_]-x[_])*l;u(h,x),h[_]=x[_]+b,u(d,y),d[_]=y[_]-b,t.bezierCurveTo(h[0],h[1],d[0],d[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=m,m+=r}return v}function m(t,e,i,n,r,f,g,m,v,y,x){for(var _=0,b=i,w=0;w=r||b<0)break;if(p(S)){if(x){b+=f;continue}break}if(b===i)t[f>0?"moveTo":"lineTo"](S[0],S[1]),u(h,S);else if(v>0){var M=b+f,I=e[M];if(x)for(;I&&p(e[M]);)I=e[M+=f];var T=.5,A=e[_];if(!(I=e[M])||p(I))u(d,S);else{var C,D;if(p(I)&&!x&&(I=S),a.sub(c,I,A),"x"===y||"y"===y){var L="x"===y?0:1;C=Math.abs(S[L]-A[L]),D=Math.abs(S[L]-I[L])}else C=a.dist(S,A),D=a.dist(S,I);l(d,S,c,-v*(1-(T=D/(D+C))))}o(h,h,m),s(h,h,g),o(d,d,m),s(d,d,g),t.bezierCurveTo(h[0],h[1],d[0],d[1],S[0],S[1]),l(h,S,c,v*T)}else t.lineTo(S[0],S[1]);_=b,b+=f}return w}function v(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var a=0;an[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])}return{min:e?i:n,max:e?n:i}}var y=n.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:r(n.prototype.brush),buildPath:function(t,e){var i=e.points,n=0,a=i.length,r=v(i,e.smoothConstraint);if(e.connectNulls){for(;a>0&&p(i[a-1]);a--);for(;n0&&p(i[r-1]);r--);for(;a "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},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}}}),f=p;t.exports=f},338:function(t,e,i){i(96311).__DEV__;var n=i(3096),a=i(70562),r=i(5186),o=i(85617),s=i(84700),l=i(75313),u=i(68918),c=i(25784),h=i(38797).createClipPath,d=n.extendChartView({type:"lines",init:function(){},render:function(t,e,i){var n=t.getData(),a=this._updateLineDraw(n,t),r=t.get("zlevel"),o=t.get("effect.trailLength"),s=i.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&o&&(l||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),a.updateData(n);var u=t.get("clip",!0)&&h(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData();this._updateLineDraw(n,t).incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},incrementalRender:function(t,e,i){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData(),a=t.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var r=c.reset(t);r.progress&&r.progress({start:0,end:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(t,e){var i=this._lineDraw,n=this._showEffect(e),c=!!e.get("polyline"),h=e.pipelineContext.large;return i&&n===this._hasEffet&&c===this._isPolyline&&h===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=h?new u:new a(c?n?l:s:n?r:o),this._hasEffet=n,this._isPolyline=c,this._isLargeDraw=h,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});t.exports=d},25784:function(t,e,i){var n={seriesType:"lines",plan:i(13861)(),reset:function(t){var e=t.coordinateSystem,i=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(a,r){var o=[];if(n){var s,l=a.end-a.start;if(i){for(var u=0,c=a.start;c"+s(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},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"}});n.mixin(p,u);var f=p;t.exports=f},22554:function(t,e,i){var n=i(3096),a=i(69008),r=i(18993),o=i(25344),s="__seriesMapHighDown",l="__seriesMapCallKey",u=n.extendChartView({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id)(r=this._mapDraw)&&a.add(r.group);else if(t.needsDrawMap){var r=this._mapDraw||new o(i,!0);a.add(r.group),r.draw(t,e,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,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,e,i){var n=t.originalData,o=this.group;n.each(n.mapDimension("value"),(function(e,i){if(!isNaN(e)){var u=n.getItemLayout(i);if(u&&u.point){var d=u.point,p=u.offset,f=new r.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*p,cy:d[1],r:3},silent:!0,z2:8+(p?0:r.Z2_EMPHASIS_LIFT+1)});if(!p){var g=t.mainSeries.getData(),m=n.getName(i),v=g.indexOfName(m),y=n.getItemModel(i),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(v),w=a.retrieve2(t.getFormattedLabel(v,"normal"),m),S=a.retrieve2(t.getFormattedLabel(v,"emphasis"),w),M=b[s],I=Math.random();if(!M){M=b[s]={};var T=a.curry(c,!0),A=a.curry(c,!1);b.on("mouseover",T).on("mouseout",A).on("emphasis",T).on("normal",A)}b[l]=I,a.extend(M,{recordVersion:I,circle:f,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),h(M,!1)}o.add(f)}}}))}});function c(t){var e=this[s];e&&e.recordVersion===this[l]&&h(e,t)}function h(t,e){var i=t.circle,n=t.labelModel,a=t.hoverLabelModel,o=t.emphasisText,s=t.normalText;e?(i.style.extendFrom(r.setTextStyle({},a,{text:a.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=r.Z2_EMPHASIS_LIFT):(r.setTextStyle(i.style,n,{text:n.get("show")?s:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}t.exports=u},50027:function(t,e,i){var n=i(69008);t.exports=function(t){var e=[];n.each(t.series,(function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,n.defaults(t,t.mapLocation))}))}},63730:function(t,e,i){var n=i(69008);t.exports=function(t){var e={};t.eachSeriesByType("map",(function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)})),n.each(e,(function(t,e){for(var i,a,r,o=(i=n.map(t,(function(t){return t.getData()})),a=t[0].get("mapValueCalculation"),r={},n.each(i,(function(t){t.each(t.mapDimension("value"),(function(e,i){var n="ec-"+t.getName(i);r[n]=r[n]||[],isNaN(e)||r[n].push(e)}))})),i[0].map(i[0].mapDimension("value"),(function(t,e){for(var n="ec-"+i[0].getName(e),o=0,s=1/0,l=-1/0,u=r[n].length,c=0;c0&&(h?"scale"!==d:"transition"!==p)){for(var m=r.getItemLayout(0),v=1;isNaN(m.startAngle)&&v=i.r0}}});t.exports=c},94034:function(t,e,i){var n=i(63603),a=i(86957).parsePercent,r=Math.PI/180;function o(t,e,i,n,a,r,o,s,l,u){function c(e,i,n,a){for(var r=e;rl+o);r++)if(t[r].y+=n,r>e&&r+1t[r].y+t[r].height)return void h(r,n/2);h(i-1,n/2)}function h(e,i){for(var n=e;n>=0&&!(t[n].y-i0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function d(t,e,i,n,a,r){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=i+d*r,o=d}}t.sort((function(t,e){return t.y-e.y}));for(var p,f=0,g=t.length,m=[],v=[],y=0;y=i?v.push(t[y]):m.push(t[y]);d(m,!1,e,i,n,a),d(v,!0,e,i,n,a)}function s(t){return"center"===t.position}t.exports=function(t,e,i,l,u,c){var h,d,p=t.getData(),f=[],g=!1,m=(t.get("minShowLabelAngle")||0)*r;p.each((function(r){var o=p.getItemLayout(r),s=p.getItemModel(r),l=s.getModel("label"),c=l.get("position")||s.get("emphasis.label.position"),v=l.get("distanceToLabelLine"),y=l.get("alignTo"),x=a(l.get("margin"),i),_=l.get("bleedMargin"),b=l.getFont(),w=s.getModel("labelLine"),S=w.get("length");S=a(S,i);var M=w.get("length2");if(M=a(M,i),!(o.angle0?"right":"left":L>0?"left":"right"}var F=l.get("rotate");k="number"==typeof F?F*(Math.PI/180):F?L<0?-D+Math.PI:-D:0,g=!!k,o.label={x:I,y:T,position:c,height:R.height,len:S,len2:M,linePoints:A,textAlign:C,verticalAlign:"middle",rotation:k,inside:E,labelDistance:v,labelAlignTo:y,labelMargin:x,bleedMargin:_,textRect:R,text:O,font:b},E||f.push(o.label)}})),!g&&t.get("avoidLabelOverlap")&&function(t,e,i,a,r,l,u,c){for(var h=[],d=[],p=Number.MAX_VALUE,f=-Number.MAX_VALUE,g=0;g"+r.map(i,(function(i,n){var a=e.get(e.mapDimension(i.dim),t);return o(i.name+" : "+a)})).join("
")},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,n=e.getValues(r.map(i.dimensions,(function(t){return e.mapDimension(t)})),t,!0),a=0,o=n.length;a=0&&(s[r[l].depth]=new o(r[l],this,e));if(n&&i)return a(n,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var i=this.parentModel,n=i.getData().getItemLayout(e).depth;return i.levelModels[n]||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var i=this.parentModel,n=i.getGraph().getEdgeByIndex(e).node1.getLayout().depth;return i.levelModels[n]||this.parentModel})),t}))})).data},setNodePosition:function(t,e){var i=this.option.data[t];i.localX=e[0],i.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getDataParams(t,i),a=n.data,o=a.source+" -- "+a.target;return n.value&&(o+=" : "+n.value),r(o)}if("node"===i){var l=this.getGraph().getNodeByIndex(t).getLayout().value,u=this.getDataParams(t,i).data.name;if(l)o=u+" : "+l;return r(o)}return s.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var i=s.superCall(this,"getDataParams",t,e);if(null==i.value&&"node"===e){var n=this.getGraph().getNodeByIndex(t).getLayout().value;i.value=n}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}})),l=s;t.exports=l},9666:function(t,e,i){var n=i(18993),a=i(3096),r=i(69008),o=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],u=["emphasis","lineStyle","opacity"];function c(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function h(t,e,i){var n=t.getGraphicEl(),a=c(t,e);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",a)}))}function d(t,e){var i=c(t,e),n=t.getGraphicEl();n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",i)})),n.highlight&&n.highlight()}var p=n.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var i=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+i,e.y2),t.bezierCurveTo(e.cpx2+i,e.cpy2,e.cpx1+i,e.cpy1,e.x1+i,e.y1)):(t.lineTo(e.x2,e.y2+i),t.bezierCurveTo(e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),f=a.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(t,e,i){var a=this,r=t.getGraph(),o=this.group,s=t.layoutInfo,l=s.width,u=s.height,c=t.getData(),h=t.getData("edge"),d=t.get("orient");this._model=t,o.removeAll(),o.attr("position",[s.x,s.y]),r.eachEdge((function(e){var i=new p;i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var a,r,s,c,f,g,m,v,y=e.getModel("lineStyle"),x=y.get("curveness"),_=e.node1.getLayout(),b=e.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),T=I.get("localX"),A=I.get("localY"),C=e.getLayout();switch(i.shape.extent=Math.max(1,C.dy),i.shape.orient=d,"vertical"===d?(a=(null!=w?w*l:_.x)+C.sy,r=(null!=S?S*u:_.y)+_.dy,s=(null!=T?T*l:M.x)+C.ty,f=a,g=r*(1-x)+(c=null!=A?A*u:M.y)*x,m=s,v=r*x+c*(1-x)):(a=(null!=w?w*l:_.x)+_.dx,r=(null!=S?S*u:_.y)+C.sy,f=a*(1-x)+(s=null!=T?T*l:M.x)*x,g=r,m=a*x+s*(1-x),v=c=(null!=A?A*u:M.y)+C.ty),i.setShape({x1:a,y1:r,x2:s,y2:c,cpx1:f,cpy1:g,cpx2:m,cpy2:v}),i.setStyle(y.getItemStyle()),i.style.fill){case"source":i.style.fill=e.node1.getVisual("color");break;case"target":i.style.fill=e.node2.getVisual("color")}n.setHoverStyle(i,e.getModel("emphasis.lineStyle").getItemStyle()),o.add(i),h.setItemGraphicEl(e.dataIndex,i)})),r.eachNode((function(e){var i=e.getLayout(),a=e.getModel(),r=a.get("localX"),s=a.get("localY"),h=a.getModel("label"),d=a.getModel("emphasis.label"),p=new n.Rect({shape:{x:null!=r?r*l:i.x,y:null!=s?s*u:i.y,width:i.dx,height:i.dy},style:a.getModel("itemStyle").getItemStyle()}),f=e.getModel("emphasis.itemStyle").getItemStyle();n.setLabelStyle(p.style,f,h,d,{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),p.setStyle("fill",e.getVisual("color")),n.setHoverStyle(p,f),o.add(p),c.setItemGraphicEl(e.dataIndex,p),p.dataType="node"})),c.eachItemGraphicEl((function(e,n){var r=c.getItemModel(n);r.get("draggable")&&(e.drift=function(e,r){a._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=r,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/u})},e.ondragend=function(){a._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move"),e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),r.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){a._focusAdjacencyDisabled||(a._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){a._focusAdjacencyDisabled||a._dispatchUnfocus(i)}))})),h.eachItemGraphicEl((function(e,n){var r=h.getItemModel(n);e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),r.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){a._focusAdjacencyDisabled||(a._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){a._focusAdjacencyDisabled||a._dispatchUnfocus(i)}))})),!this._data&&t.get("animation")&&o.setClipPath(function(t,e,i){var a=new n.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return n.initProps(a,{shape:{width:t.width+20}},e,i),a}(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,i,n){var a=t.getData(),c=a.graph,p=n.dataIndex,f=a.getItemModel(p),g=n.edgeDataIndex;if(null!=p||null!=g){var m=c.getNodeByIndex(p),v=c.getEdgeByIndex(g);if(c.eachNode((function(t){h(t,o,.1)})),c.eachEdge((function(t){h(t,l,.1)})),m){d(m,s);var y=f.get("focusNodeAdjacency");"outEdges"===y?r.each(m.outEdges,(function(t){t.dataIndex<0||(d(t,u),d(t.node2,s))})):"inEdges"===y?r.each(m.inEdges,(function(t){t.dataIndex<0||(d(t,u),d(t.node1,s))})):"allEdges"===y&&r.each(m.edges,(function(t){t.dataIndex<0||(d(t,u),t.node1!==m&&d(t.node1,s),t.node2!==m&&d(t.node2,s))}))}v&&(d(v,u),d(v.node1,s),d(v.node2,s))}},unfocusNodeAdjacency:function(t,e,i,n){var a=t.getGraph();a.eachNode((function(t){h(t,o)})),a.eachEdge((function(t){h(t,l)}))}});t.exports=f},52155:function(t,e,i){var n=i(3096);i(18148),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},69946:function(t,e,i){var n=i(7357),a=i(69008),r=i(90830).groupData;function o(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function s(t,e,i,n,r){var o="vertical"===r?"x":"y";a.each(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===r?n:i))>0)for(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a,d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}))}function l(t,e,i){a.each(t.slice().reverse(),(function(t){a.each(t,(function(t){if(t.outEdges.length){var n=g(t.outEdges,u,i)/g(t.outEdges,f,i);if(isNaN(n)){var a=t.outEdges.length;n=a?g(t.outEdges,c,i)/a:0}if("vertical"===i){var r=t.getLayout().x+(n-p(t,i))*e;t.setLayout({x:r},!0)}else{var o=t.getLayout().y+(n-p(t,i))*e;t.setLayout({y:o},!0)}}}))}))}function u(t,e){return p(t.node2,e)*t.getValue()}function c(t,e){return p(t.node2,e)}function h(t,e){return p(t.node1,e)*t.getValue()}function d(t,e){return p(t.node1,e)}function p(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function f(t){return t.getValue()}function g(t,e,i){for(var n=0,a=t.length,r=-1;++r=0;_&&x.depth>m&&(m=x.depth),y.setLayout({depth:_?x.depth:p},!0),"vertical"===s?y.setLayout({dy:i},!0):y.setLayout({dx:i},!0);for(var b=0;bp-1?m:p-1;l&&"left"!==l&&function(t,e,i,n){if("right"===e){for(var r=[],s=t,l=0;s.length;){for(var u=0;u0;u--)l(h,d*=.99,c),s(h,o,i,n,c),m(h,d,c),s(h,o,i,n,c)}(t,e,c,u,n,h,d),function(t,e){var i="vertical"===e?"x":"y";a.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[i]-e.node2.getLayout()[i]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[i]-e.node1.getLayout()[i]}))})),a.each(t,(function(t){var e=0,i=0;a.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),a.each(t.inEdges,(function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy}))}))}(t,d)}(v,y,i,u,h,d,0!==a.filter(v,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}},83977:function(t,e,i){var n=i(5660),a=i(69008);t.exports=function(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph().nodes;if(e.length){var i=1/0,r=-1/0;a.each(e,(function(t){var e=t.getLayout().value;er&&(r=e)})),a.each(e,(function(e){var a=new n({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),o=e.getModel().get("itemStyle.color");null!=o?e.setVisual("color",o):e.setVisual("color",a)}))}}))}},43394:function(t,e,i){var n=i(3096);i(94711),i(1150);var a=i(11404),r=i(87984);i(47102),n.registerVisual(a("scatter","circle")),n.registerLayout(r("scatter"))},94711:function(t,e,i){var n=i(32977),a=i(38645).extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return n(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});t.exports=a},1150:function(t,e,i){var n=i(3096),a=i(38346),r=i(15499),o=i(87984);n.extendChartView({type:"scatter",render:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(t,e,i){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=o().reset(t);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_getClipShape:function(t){var e=t.coordinateSystem,i=e&&e.getArea&&e.getArea();return t.get("clip",!0)?i:null},_updateSymbolDraw:function(t,e){var i=this._symbolDraw,n=e.pipelineContext.large;return i&&n===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=n?new r:new a,this._isLargeDraw=n,this.group.removeAll()),this.group.add(i.group),i},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},44189:function(t,e,i){var n=i(3096),a=i(69008);i(58290),i(52637),i(50829);var r=i(22333),o=i(81005),s=i(22259);n.registerVisual(a.curry(r,"sunburst")),n.registerLayout(a.curry(o,"sunburst")),n.registerProcessor(a.curry(s,"sunburst"))},93645:function(t,e,i){var n=i(69008),a=i(18993),r="none",o="ancestor",s="self";function l(t,e,i){a.Group.call(this);var n=new a.Sector({z2:2});n.seriesIndex=e.seriesIndex;var r=new a.Text({z2:4,silent:t.getModel("label").get("silent")});function o(){r.ignore=r.hoverIgnore}function s(){r.ignore=r.normalIgnore}this.add(n),this.add(r),this.updateData(!0,t,"normal",e,i),this.on("emphasis",o).on("normal",s).on("mouseover",o).on("mouseout",s)}var u=l.prototype;u.updateData=function(t,e,i,r,o){this.node=e,e.piece=this,r=r||this._seriesModel,o=o||this._ecModel;var s=this.childAt(0);s.dataIndex=e.dataIndex;var l=e.getModel(),u=e.getLayout(),c=n.extend({},u);c.label=null;var h=function(t,e,i){var a=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(a=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(a)return a;if(0===t.depth)return i.option.color[0];var s=i.option.color.length;o=i.option.color[function(t){var e=t;for(;e.depth>1;)e=e.parentNode;var i=t.getAncestors()[0];return n.indexOf(i.children,e)}(t)%s];return o}(e,0,o);!function(t,e,i){var n=e.getData();n.setItemVisual(t.dataIndex,"color",i)}(e,r,h);var d,p=l.getModel("itemStyle").getItemStyle();if("normal"===i)d=p;else{var f=l.getModel(i+".itemStyle").getItemStyle();d=n.merge(f,p)}d=n.defaults({lineJoin:"bevel",fill:d.fill||h},d),t?(s.setShape(c),s.shape.r=u.r0,a.updateProps(s,{shape:{r:u.r}},r,e.dataIndex),s.useStyle(d)):"object"==typeof d.fill&&d.fill.type||"object"==typeof s.style.fill&&s.style.fill.type?(a.updateProps(s,{shape:c},r),s.useStyle(d)):a.updateProps(s,{shape:c,style:d},r),this._updateLabel(r,h,i);var g=l.getShallow("cursor");if(g&&s.attr("cursor",g),t){var m=r.getShallow("highlightPolicy");this._initEvents(s,e,r,m)}this._seriesModel=r||this._seriesModel,this._ecModel=o||this._ecModel,a.setHoverStyle(this)},u.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(i){var n,a,l;i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):(n=i,a=e.node,(l=t)!==r&&(l===s?n===a:l===o?n===a||n.isAncestorOf(a):n===a||n.isDescendantOf(a))?i.piece.childAt(0).trigger("highlight"):t!==r&&i.piece.childAt(0).trigger("downplay")))}))},u.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},u.onHighlight=function(){this.updateData(!1,this.node,"highlight")},u.onDownplay=function(){this.updateData(!1,this.node,"downplay")},u._updateLabel=function(t,e,i){var r=this.node.getModel(),o=r.getModel("label"),s="normal"===i||"emphasis"===i?o:r.getModel(i+".label"),l=r.getModel("emphasis.label"),u=n.retrieve(t.getFormattedLabel(this.node.dataIndex,i,null,null,"label"),this.node.name);!1===I("show")&&(u="");var c=this.node.getLayout(),h=s.get("minAngle");null==h&&(h=o.get("minAngle")),h=h/180*Math.PI;var d=c.endAngle-c.startAngle;null!=h&&Math.abs(d)Math.PI/2?"right":"left"):_&&"center"!==_?"left"===_?(f=c.r0+x,g>Math.PI/2&&(_="right")):"right"===_&&(f=c.r-x,g>Math.PI/2&&(_="left")):(f=(c.r+c.r0)/2,_="center"),p.attr("style",{text:u,textAlign:_,textVerticalAlign:I("verticalAlign")||"middle",opacity:I("opacity")});var b=f*m+c.cx,w=f*v+c.cy;p.attr("position",[b,w]);var S=I("rotate"),M=0;function I(t){var e=s.get(t);return null==e?o.get(t):e}"radial"===S?(M=-g)<-Math.PI/2&&(M+=Math.PI):"tangential"===S?(M=Math.PI/2-g)>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI):"number"==typeof S&&(M=S*Math.PI/180),p.attr("rotation",M)},u._initEvents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var a=this,r=function(){a.onEmphasis(n)},o=function(){a.onNormal()};i.isAnimationEnabled()&&t.on("mouseover",r).on("mouseout",o).on("emphasis",r).on("normal",o).on("downplay",(function(){a.onDownplay()})).on("highlight",(function(){a.onHighlight()}))},n.inherits(l,a.Group);var c=l;t.exports=c},58290:function(t,e,i){var n=i(69008),a=i(38645),r=i(54327),o=i(22889).wrapTreePathInfo,s=a.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var i={name:t.name,children:t.data};l(i);var n=t.levels||[],a={};return a.levels=n,r.createTree(i,this,a).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=o(i,this),e},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(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function l(t){var e=0;n.each(t.children,(function(t){l(t);var i=t.value;n.isArray(i)&&(i=i[0]),e+=i}));var i=t.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),n.isArray(t.value)?t.value[0]=i:t.value=i}t.exports=s},52637:function(t,e,i){var n=i(69008),a=i(68880),r=i(93645),o=i(90515),s=i(17010).windowOpen,l=a.extend({type:"sunburst",init:function(){},render:function(t,e,i,a){var s=this;this.seriesModel=t,this.api=i,this.ecModel=e;var l=t.getData(),u=l.tree.root,c=t.getViewRoot(),h=this.group,d=t.get("renderLabelForZeroData"),p=[];c.eachNode((function(t){p.push(t)}));var f=this._oldChildren||[];if(function(i,a){if(0===i.length&&0===a.length)return;function s(t){return t.getId()}function c(n,o){!function(i,n){d||!i||i.getValue()||(i=null);if(i!==u&&n!==u)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",t,e),l.setItemGraphicEl(i.dataIndex,n.piece)):function(t){if(!t)return;t.piece&&(h.remove(t.piece),t.piece=null)}(n);else if(i){var a=new r(i,t,e);h.add(a),l.setItemGraphicEl(i.dataIndex,a)}}(null==n?null:i[n],null==o?null:a[o])}new o(a,i,s,s).add(c).update(c).remove(n.curry(c,null)).execute()}(p,f),function(i,n){if(n.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,i,"normal",t,e):(s.virtualPiece=new r(i,t,e),h.add(s.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var a=function(t){s._rootToNode(n.parentNode)};n.piece._onclickEvent=a,s.virtualPiece.on("click",a)}else s.virtualPiece&&(h.remove(s.virtualPiece),s.virtualPiece=null)}(u,c),a&&a.highlight&&a.highlight.piece){var g=t.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(g)}else if(a&&a.unhighlight){var m=this.virtualPiece;!m&&u.children.length&&(m=u.children[0].piece),m&&m.onNormal()}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var i=!1;t.seriesModel.getViewRoot().eachNode((function(n){if(!i&&n.piece&&n.piece.childAt(0)===e.target){var a=n.getModel().get("nodeClick");if("rootToNode"===a)t._rootToNode(n);else if("link"===a){var r=n.getModel(),o=r.get("link");if(o){var l=r.get("target",!0)||"_blank";s(o,l)}}i=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(n*n+a*a);return r<=i.r&&r>=i.r0}}});t.exports=l},50829:function(t,e,i){var n=i(3096),a=i(22889),r="sunburstRootToNode";n.registerAction({type:r,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,i){var n=a.retrieveTargetInfo(t,[r],e);if(n){var o=e.getViewRoot();o&&(t.direction=a.aboveViewRoot(o,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}}))}));var o="sunburstHighlight";n.registerAction({type:o,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,i){var n=a.retrieveTargetInfo(t,[o],e);n&&(t.highlight=n.node)}))}));n.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,i){t.unhighlight=!0}))}))},81005:function(t,e,i){var n=i(86957).parsePercent,a=i(69008),r=Math.PI/180;function o(t,e){var i=t.children||[];t.children=function(t,e){if("function"==typeof e)return t.sort(e);var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}(i,e),i.length&&a.each(t.children,(function(t){o(t,e)}))}t.exports=function(t,e,i,s){e.eachSeriesByType(t,(function(t){var e=t.get("center"),s=t.get("radius");a.isArray(s)||(s=[0,s]),a.isArray(e)||(e=[e,e]);var l=i.getWidth(),u=i.getHeight(),c=Math.min(l,u),h=n(e[0],l),d=n(e[1],u),p=n(s[0],c/2),f=n(s[1],c/2),g=-t.get("startAngle")*r,m=t.get("minAngle")*r,v=t.getData().tree.root,y=t.getViewRoot(),x=y.depth,_=t.get("sort");null!=_&&o(y,_);var b=0;a.each(y.children,(function(t){!isNaN(t.getValue())&&b++}));var w=y.getValue(),S=Math.PI/(w||b)*2,M=y.depth>0,I=y.height-(M?-1:1),T=(f-p)/(I||1),A=t.get("clockwise"),C=t.get("stillShowZeroSum"),D=A?1:-1,L=function(t,e){if(t){var i=e;if(t!==v){var r=t.getValue(),o=0===w&&C?S:r*S;or&&(r=u,o=s)}for(var c=0;cr&&(r=u),n.push(u)}for(var c=0;cr&&(r=d)}return o.y0=a,o.max=r,o}(u),h=c.y0,d=i/c.max,p=o.length,f=o[0].indices.length,g=0;gs&&(s=t.depth)}));var l=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:s;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),r.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),a=n.getValue(),o=n.name;n&&n!==i;)o=n.parentNode.name+"."+o,n=n.parentNode;return r(o+(isNaN(a)||null==a?"":" : "+a))},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}});t.exports=s},49936:function(t,e,i){var n=i(69008),a=i(18993),r=i(32427),o=i(8940).radialCoordinate,s=i(3096),l=i(16254),u=i(86990),c=i(37419),h=i(38515),d=i(18584).onIrrelevantElement,p=(i(96311).__DEV__,i(86957).parsePercent),f=a.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.childPoints,n=i.length,a=e.parentPoint,r=i[0],o=i[n-1];if(1===n)return t.moveTo(a[0],a[1]),void t.lineTo(r[0],r[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=p(e.forkPosition,1),h=[];h[l]=a[l],h[u]=a[u]+(o[u]-a[u])*c,t.moveTo(a[0],a[1]),t.lineTo(h[0],h[1]),t.moveTo(r[0],r[1]),h[l]=r[l],t.lineTo(h[0],h[1]),h[l]=o[l],t.lineTo(h[0],h[1]),t.lineTo(o[0],o[1]);for(var d=1;dI.x)||(w-=Math.PI);var C=S?"left":"right",D=l.labelModel.get("rotate"),L=D*(Math.PI/180);b.setStyle({textPosition:l.labelModel.get("position")||C,textRotation:null==D?-w:L,textOrigin:"center",verticalAlign:"middle"})}!function(t,e,i,r,o,s,l,u,c){var h=c.edgeShape,d=r.__edge;if("curve"===h)e.parentNode&&e.parentNode!==i&&(d||(d=r.__edge=new a.BezierCurve({shape:_(c,o,o),style:n.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),a.updateProps(d,{shape:_(c,s,l),style:{opacity:1}},t));else if("polyline"===h&&"orthogonal"===c.layout&&e!==i&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var p=e.children,g=[],m=0;m=0;a--){var r=i[a];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(r)}},e.firstWalk=function(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,l=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){!function(t){var e=t.children,i=e.length,n=0,a=0;for(;--i>=0;){var r=e[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,a+=r.hierNode.change,n+=r.hierNode.shift+a}}(t);var u=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;l?(t.hierNode.prelim=l.hierNode.prelim+e(t,l),t.hierNode.modifier=t.hierNode.prelim-u):t.hierNode.prelim=u}else l&&(t.hierNode.prelim=l.hierNode.prelim+e(t,l));t.parentNode.hierNode.defaultAncestor=function(t,e,i,n){if(e){for(var l=t,u=t,c=u.parentNode.children[0],h=e,d=l.hierNode.modifier,p=u.hierNode.modifier,f=c.hierNode.modifier,g=h.hierNode.modifier;h=a(h),u=r(u),h&&u;){l=a(l),c=r(c),l.hierNode.ancestor=t;var m=h.hierNode.prelim+g-u.hierNode.prelim-p+n(h,u);m>0&&(s(o(h,t,i),t,m),p+=m,d+=m),g+=h.hierNode.modifier,p+=u.hierNode.modifier,d+=l.hierNode.modifier,f+=c.hierNode.modifier}h&&!a(l)&&(l.hierNode.thread=h,l.hierNode.modifier+=g-d),u&&!r(c)&&(c.hierNode.thread=u,c.hierNode.modifier+=p-f,i=t)}return i}(t,l,t.parentNode.hierNode.defaultAncestor||n[0],e)},e.secondWalk=function(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier},e.separation=function(t){return arguments.length?t:l},e.radialCoordinate=function(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i},e.getViewRect=function(t,e){return n.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}},48311:function(t,e){e.eachAfter=function(t,e,i){for(var n,a=[t],r=[];n=a.pop();)if(r.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;r--)n.push(a[r])}}},48728:function(t,e,i){var n=i(3096),a=i(66710).updateCenterAndZoom;n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=t.dataIndex,n=e.getData().tree.getNodeByDataIndex(i);n.isExpand=!n.isExpand}))})),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,n=a(i,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)}))}))},67367:function(t,e,i){var n=i(48311),a=n.eachAfter,r=n.eachBefore,o=i(8940),s=o.init,l=o.firstWalk,u=o.secondWalk,c=o.separation,h=o.radialCoordinate,d=o.getViewRect;t.exports=function(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var i=d(t,e);t.layoutInfo=i;var n=t.get("layout"),o=0,p=0,f=null;"radial"===n?(o=2*Math.PI,p=Math.min(i.height,i.width)/2,f=c((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=i.width,p=i.height,f=c());var g=t.getData().tree.root,m=g.children[0];if(m){s(g),a(m,l,f),g.hierNode.modifier=-m.hierNode.prelim,r(m,u);var v=m,y=m,x=m;r(m,(function(t){var e=t.getLayout().x;ey.getLayout().x&&(y=t),t.depth>x.depth&&(x=t)}));var _=v===y?1:f(v,y)/2,b=_-v.getLayout().x,w=0,S=0,M=0,I=0;if("radial"===n)w=o/(y.getLayout().x+_+b),S=p/(x.depth-1||1),r(m,(function(t){M=(t.getLayout().x+b)*w,I=(t.depth-1)*S;var e=h(M,I);t.setLayout({x:e.x,y:e.y,rawX:M,rawY:I},!0)}));else{var T=t.getOrient();"RL"===T||"LR"===T?(S=p/(y.getLayout().x+_+b),w=o/(x.depth-1||1),r(m,(function(t){I=(t.getLayout().x+b)*S,M="LR"===T?(t.depth-1)*w:o-(t.depth-1)*w,t.setLayout({x:M,y:I},!0)}))):"TB"!==T&&"BT"!==T||(w=o/(y.getLayout().x+_+b),S=p/(x.depth-1||1),r(m,(function(t){M=(t.getLayout().x+b)*w,I="TB"===T?(t.depth-1)*S:p-(t.depth-1)*S,t.setLayout({x:M,y:I},!0)})))}}}(t,e)}))}},70797:function(t,e,i){var n=i(3096);i(49080),i(61511),i(35260);var a=i(81459),r=i(17606);n.registerVisual(a),n.registerLayout(r)},36938:function(t,e,i){var n=i(18993),a=i(7357),r=i(69008),o=i(22889).wrapTreePathInfo;function s(t){this.group=new n.Group,t.add(this.group)}function l(t,e,i,n,a,r){var o=[[a?t:t-5,e],[t+i,e],[t+i,e+n],[a?t:t-5,e+n]];return!r&&o.splice(2,0,[t+i+5,e+n/2]),!a&&o.push([t,e+n/2]),o}function u(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&o(i,e)}}s.prototype={constructor:s,render:function(t,e,i,n){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&i){var s=r.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,u,l),this._renderContent(t,u,s,l,n),a.positionElement(o,u.pos,u.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var a=n.getModel().get("name"),r=i.getTextRect(a),o=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=o+8,e.renderList.push({node:n,text:a,width:o})}},_renderContent:function(t,e,i,o,s){for(var c=0,h=e.emptyItemWidth,d=t.get("breadcrumb.height"),p=a.getAvailableSize(e.pos,e.box),f=e.totalWidth,g=e.renderList,m=g.length-1;m>=0;m--){var v=g[m],y=v.node,x=v.width,_=v.text;f>p.width&&(f-=x-h,x=h,_=null);var b=new n.Polygon({shape:{points:l(c,0,x,d,m===g.length-1,0===m)},style:r.defaults(i.getItemStyle(),{lineJoin:"bevel",text:_,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:r.curry(s,y)});this.group.add(b),u(b,t,y),c+=x+8}},remove:function(){this.group.removeAll()}};var c=s;t.exports=c},49080:function(t,e,i){var n=i(69008),a=i(38645),r=i(54327),o=i(24040),s=i(17010),l=s.encodeHTML,u=s.addCommas,c=i(22889).wrapTreePathInfo,h=a.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:"▶",zoomToNodeRatio:.1024,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(t,e){var i={name:t.name,children:t.data};d(i);var a=t.levels||[];a=t.levels=function(t,e){var i,a=e.get("color");if(!a)return;if(t=t||[],n.each(t,(function(t){var e=new o(t),n=e.get("color");(e.get("itemStyle.color")||n&&"none"!==n)&&(i=!0)})),!i){(t[0]||(t[0]={})).color=a.slice()}return t}(a,e);var s=n.map(a||[],(function(t){return new o(t,this,e)}),this),l=r.createTree(i,this,null,(function(t){t.wrapMethod("getItemModel",(function(t,e){var i=l.getNodeByDataIndex(e),n=s[i.depth];return n&&(t.parentModel=n),t}))}));return l.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),a=n.isArray(i)?u(i[0]):u(i),r=e.getName(t);return l(r+": "+a)},getDataParams:function(t){var e=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=c(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},n.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=n.createHashMap(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function d(t){var e=0;n.each(t.children,(function(t){d(t);var i=t.value;n.isArray(i)&&(i=i[0]),e+=i}));var i=t.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),n.isArray(t.value)?t.value[0]=i:t.value=i}t.exports=h},61511:function(t,e,i){var n=i(3096),a=i(69008),r=i(18993),o=i(90515),s=i(22889),l=i(36938),u=i(38515),c=i(9806),h=i(26237),d=i(77550),p=i(76282),f=i(17010).windowOpen,g=a.bind,m=r.Group,v=r.Rect,y=a.each,x=["label"],_=["emphasis","label"],b=["upperLabel"],w=["emphasis","upperLabel"],S=p([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),M=function(t){var e=S(t);return e.stroke=e.fill=e.lineWidth=null,e},I=n.extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,i,n){var r=e.findComponents({mainType:"series",subType:"treemap",query:n});if(!(a.indexOf(r,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=e;var o=s.retrieveTargetInfo(n,["treemapZoomToNode","treemapRootToNode"],t),l=n&&n.type,u=t.layoutInfo,c=!this._oldTree,h=this._storage,d="treemapRootToNode"===l&&o&&h?{rootNodeGroup:h.nodeGroup[o.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(u),f=this._doRender(p,t,d);c||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?f.renderFinally():this._doAnimation(p,f,t,d),this._resetController(i),this._renderBreadcrumb(t,i,o)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new m,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,i){var n=e.getData().tree,r=this._oldTree,s={nodeGroup:[],background:[],content:[]},l={nodeGroup:[],background:[],content:[]},u=this._storage,c=[],h=a.curry(T,e,l,u,i,s,c);!function t(e,i,n,r,s){r?(i=e,y(e,(function(t,e){!t.isRemoved()&&u(e,e)}))):new o(i,e,l,l).add(u).update(u).remove(a.curry(u,null)).execute();function l(t){return t.getId()}function u(a,o){var l=null!=a?e[a]:null,u=null!=o?i[o]:null,c=h(l,u,n,s);c&&t(l&&l.viewChildren||[],u&&u.viewChildren||[],c,r,s+1)}}(n.root?[n.root]:[],r&&r.root?[r.root]:[],t,n===r||!r,0);var d=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&y(t,(function(t,i){var n=e[i];y(t,(function(t){t&&(n.push(t),t.__tmWillDelete=1)}))})),e}(u);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:function(){y(d,(function(t){y(t,(function(t){t.parent&&t.parent.remove(t)}))})),y(c,(function(t){t.invisible=!0,t.dirty()}))}}},_doAnimation:function(t,e,i,n){if(i.get("animation")){var r=i.get("animationDurationUpdate"),o=i.get("animationEasing"),s=d.createWrap();y(e.willDeleteEls,(function(t,e){y(t,(function(t,i){if(!t.invisible){var a,l=t.parent;if(n&&"drillDown"===n.direction)a=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),a="nodeGroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}a&&s.add(t,a,r,o)}}))})),y(this._storage,(function(t,i){y(t,(function(t,n){var l=e.lastsForAnimation[i][n],u={};l&&("nodeGroup"===i?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=a.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,r,o))}))}),this),this._state="animating",s.done(g((function(){this._state="ready",e.renderFinally()}),this)).start()}},_resetController:function(t){var e=this._controller;e||((e=this._controller=new u(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",g(this._onPan,this)),e.on("zoom",g(this._onZoom,this)));var i=new c(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return i.contain(e,n)}))},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var i=e.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},_onZoom:function(t){var e=t.originX,i=t.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var r=new c(a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;e-=o.x,i-=o.y;var s=h.create();h.translate(s,s,[-e,-i]),h.scale(s,s,[t.scale,t.scale]),h.translate(s,s,[e,i]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var a=n.hostTree.data.getItemModel(n.dataIndex),r=a.get("link",!0),o=a.get("target",!0)||"blank";r&&f(r,o)}}}}}),this)},_renderBreadcrumb:function(t,e,i){i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(i={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(t,e,i.node,g((function(e){"animating"!==this._state&&(s.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}),this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(n){var a=this._storage.background[n.getRawIndex()];if(a){var r=a.transformCoordToLocal(t,e),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;i={node:n,offsetX:r[0],offsetY:r[1]}}}),this),i}});function T(t,e,i,n,o,s,l,u,c,h){if(l){var d=l.getLayout(),p=t.getData();if(p.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var f=d.width,g=d.height,y=d.borderWidth,I=d.invisible,T=l.getRawIndex(),C=u&&u.getRawIndex(),D=l.viewChildren,L=d.upperHeight,P=D&&D.length,k=l.getModel("itemStyle"),O=l.getModel("emphasis.itemStyle"),R=F("nodeGroup",m);if(R){if(c.add(R),R.attr("position",[d.x||0,d.y||0]),R.__tmNodeWidth=f,R.__tmNodeHeight=g,d.isAboveViewRoot)return R;var E=l.getModel(),N=F("background",v,h,1);if(N&&function(e,i,n){if(i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:f,height:g}),I)B(i);else{i.invisible=!1;var a=l.getVisual("borderColor",!0),o=O.get("borderColor"),s=M(k);s.fill=a;var u=S(O);if(u.fill=o,n){var c=f-2*y;V(s,u,a,c,L,{x:y,y:0,width:c,height:L})}else s.text=u.text=null;i.setStyle(s),r.setElementHoverStyle(i,u)}e.add(i)}(R,N,P&&d.upperLabelHeight),P)r.isHighDownDispatcher(R)&&r.setAsHighDownDispatcher(R,!1),N&&(r.setAsHighDownDispatcher(N,!0),p.setItemGraphicEl(l.dataIndex,N));else{var z=F("content",v,h,2);z&&function(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var n=Math.max(f-2*y,0),a=Math.max(g-2*y,0);if(i.culling=!0,i.setShape({x:y,y:y,width:n,height:a}),I)B(i);else{i.invisible=!1;var o=l.getVisual("color",!0),s=M(k);s.fill=o;var u=S(O);V(s,u,o,n,a),i.setStyle(s),r.setElementHoverStyle(i,u)}e.add(i)}(R,z),N&&r.isHighDownDispatcher(N)&&r.setAsHighDownDispatcher(N,!1),r.setAsHighDownDispatcher(R,!0),p.setItemGraphicEl(l.dataIndex,R)}return R}}}function B(t){!t.invisible&&s.push(t)}function V(e,i,n,o,s,u){var c=E.get("name"),h=E.getModel(u?b:x),p=E.getModel(u?w:_),f=h.getShallow("show");r.setLabelStyle(e,i,h,p,{defaultText:f?c:null,autoColor:n,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),G(e,u,d),G(i,u,d),u&&(e.textRect=a.clone(u)),e.truncate=f&&h.get("ellipsis")?{outerWidth:o,outerHeight:s,minChar:2}:null}function G(e,i,n){var a=e.text;if(!i&&n.isLeafRoot&&null!=a){var r=t.get("drillDownIcon",!0);e.text=r?r+" "+a:a}}function F(t,r,s,u){var c=null!=C&&i[t][C],h=o[t];return c?(i[t][C]=null,function(t,e,i){var n=t[T]={};n.old="nodeGroup"===i?e.position.slice():a.extend({},e.shape)}(h,c,t)):I||((c=new r({z:A(s,u)})).__tmDepth=s,c.__tmStorageName=t,function(t,e,i){var a=t[T]={},r=l.parentNode;if(r&&(!n||"drillDown"===n.direction)){var s=0,u=0,c=o.background[r.getRawIndex()];!n&&c&&c.old&&(s=c.old.width,u=c.old.height),a.old="nodeGroup"===i?[0,u]:{x:s,y:u,width:0,height:0}}a.fadein="nodeGroup"!==i}(h,0,t)),e[t][T]=c}}function A(t,e){var i=10*t+e;return(i-1)/i}t.exports=I},35260:function(t,e,i){for(var n=i(3096),a=i(22889),r=function(){},o=["treemapZoomToNode","treemapRender","treemapMove"],s=0;ss&&(c=s),o=r}cs[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:n,dataExtent:s}}(e,s,l);if(0===c.sum)return t.viewChildren=[];if(c.sum=function(t,e,i,n,a){if(!n)return i;for(var r=t.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a["asc"===n?o-l-1:l].getValue();u/i*ea&&(a=n));var l=t.area*t.area,u=e*e*i;return l?c(u*a/l,l/(u*r)):1/0}function b(t,e,i,n,a){var r=e===i.width?0:1,o=1-r,s=["x","y"],l=["width","height"],u=i[s[r]],d=e?t.area/e:0;(a||d>i[l[o]])&&(d=i[l[o]]);for(var p=0,f=t.length;pc[1]&&(c[1]=u);var h=e.get("colorMappingBy"),p={type:s.name,dataExtent:c,visual:s.range};"color"!==p.type||"index"!==h&&"id"!==h?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var f=new n(p);return f.__drColorMappingBy=h,f}(0,p,f,0,v,_);r.each(_,(function(t,e){if(t.depth>=l.length||t===l[t.depth]){var n=function(t,e,i,n,a,o){var s=r.extend({},e);if(a){var l=a.type,u="color"===l&&a.__drColorMappingBy,c="index"===u?n:"id"===u?o.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));s[l]=a.mapValueToVisual(c)}return s}(p,v,t,e,b,h);u(t,n,i,o,l,h)}}))}else g=c(v),t.setVisual("color",g)}}function c(t){var e=h(t,"color");if(e){var i=h(t,"colorAlpha"),n=h(t,"colorSaturation");return n&&(e=a.modifyHSL(e,null,null,n)),i&&(e=a.modifyAlpha(e,i)),e}}function h(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function d(t,e){var i=t.get(e);return o(i)&&i.length?{name:e,range:i}:null}t.exports=l},2546:function(t,e,i){i(49900),i(33e3)},2849:function(t,e,i){i(75089),i(8698)},33e3:function(t,e,i){var n=i(69008),a=i(18993),r=i(24040),o=i(68089),s=i(93570),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function u(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),a=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function c(t){return t.getRadiusAxis().inverse?0:1}function h(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}var d=o.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,a=i.polar,r=a.getRadiusAxis().getExtent(),o=i.getTicksCoords(),s=i.getMinorTicksCoords(),u=n.map(i.getViewLabels(),(function(t){return(t=n.clone(t)).coord=i.dataToCoord(t.tickValue),t}));h(u),h(o),n.each(l,(function(e){!t.get(e+".show")||i.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,a,o,s,r,u)}),this)}},_axisLine:function(t,e,i,n,r){var o,s=t.getModel("axisLine.lineStyle"),l=c(e),u=l?0:1;(o=0===r[u]?new a.Circle({shape:{cx:e.cx,cy:e.cy,r:r[l]},style:s.getLineStyle(),z2:1,silent:!0}):new a.Ring({shape:{cx:e.cx,cy:e.cy,r:r[l],r0:r[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(o)},_axisTick:function(t,e,i,r,o){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),h=o[c(e)],d=n.map(i,(function(t){return new a.Line({shape:u(e,[h,h+l],t.coord)})}));this.group.add(a.mergePath(d,{style:n.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,e,i,r,o){if(r.length){for(var s=t.getModel("axisTick"),l=t.getModel("minorTick"),h=(s.get("inside")?-1:1)*l.get("length"),d=o[c(e)],p=[],f=0;fv?"left":"right",_=Math.abs(m[1]-y)/g<.3?"middle":m[1]>y?"top":"bottom";h&&h[u]&&h[u].textStyle&&(o=new r(h[u].textStyle,d,d.ecModel));var b=new a.Text({silent:s.isLabelSilent(t)});this.group.add(b),a.setTextStyle(b.style,o,{x:m[0],y:m[1],textFill:o.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:x,textVerticalAlign:_}),f&&(b.eventData=s.makeAxisEventDataBase(t),b.eventData.targetType="axisLabel",b.eventData.value=i.rawLabel)}),this)},_splitLine:function(t,e,i,r,o){var s=t.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var h=[],d=0;dg[1]?-1:1,v=["start"===s?g[0]-m*f:"end"===s?g[1]+m*f:(g[0]+g[1])/2,T(s)?t.labelOffset+c*f:0],x=e.get("nameRotate");null!=x&&(x=x*y/180),T(s)?n=w(t.rotation,null!=x?x:t.rotation,c):(n=function(t,e,i,n){var a,r,o=p(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;d(o-y/2)?(r=l?"bottom":"top",a="center"):d(o-1.5*y)?(r=l?"top":"bottom",a="center"):(r="middle",a=o<1.5*y&&o>y/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:a,textVerticalAlign:r}}(t,s,x||0,g),null!=(r=t.axisNameAvailableWidth)&&(r=Math.abs(r/Math.sin(n.rotation)),!isFinite(r)&&(r=null)));var _=h.getFont(),M=e.get("nameTruncate",!0)||{},I=M.ellipsis,A=a(t.nameTruncateMaxWidth,M.maxWidth,r),C=null!=I&&null!=A?l.truncateText(i,A,_,I,{minChar:2,placeholder:M.placeholder}):i,D=e.get("tooltip",!0),L=e.mainType,P={componentType:L,name:i,$vars:["name"]};P[L+"Index"]=e.componentIndex;var k=new u.Text({anid:"name",__fullText:i,__truncatedText:C,position:v,rotation:n.rotation,silent:S(e),z2:1,tooltip:D&&D.show?o({content:i,formatter:function(){return i},formatterParams:P},D):null});u.setTextStyle(k.style,h,{text:C,textFont:_,textFill:h.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:h.get("align")||n.textAlign,textVerticalAlign:h.get("verticalAlign")||n.textVerticalAlign}),e.get("triggerEvent")&&(k.eventData=b(e),k.eventData.targetType="axisName",k.eventData.name=i),this._dumbGroup.add(k),k.updateTransform(),this.group.add(k),k.decomposeTransform()}}},b=x.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},w=x.innerTextLayout=function(t,e,i){var n,a,r=p(e-t);return d(r)?(a=i>0?"top":"bottom",n="center"):d(r-y)?(a=i>0?"bottom":"top",n="center"):(a="middle",n=r>0&&r0?"right":"left":i>0?"left":"right"),{rotation:r,textAlign:n,textVerticalAlign:a}};var S=x.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function M(t){t&&(t.ignore=!0)}function I(t,e,i){var n=t&&t.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(n&&a){var r=g.identity([]);return g.rotate(r,r,-t.rotation),n.applyTransform(g.mul([],r,t.getLocalTransform())),a.applyTransform(g.mul([],r,e.getLocalTransform())),n.intersect(a)}}function T(t){return"middle"===t||"center"===t}function A(t,e,i,n,a){for(var r=[],o=[],s=[],l=0;l=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){a.unregister(e.getZr(),"axisPointer"),r.superApply(this._model,"remove",arguments)},dispose:function(t,e){a.unregister("axisPointer",e),r.superApply(this._model,"dispose",arguments)}}),o=r;t.exports=o},37874:function(t,e,i){var n=i(69008),a=i(77305),r=i(18993),o=i(9862),s=i(92462),l=i(83209),u=(0,i(90830).makeInner)(),c=n.clone,h=n.bind;function d(){}function p(t,e,i,n){f(u(i).lastProp,n)||(u(i).lastProp=n,e?r.updateProps(i,n,t):(i.stopAnimation(),i.attr(n)))}function f(t,e){if(n.isObject(t)&&n.isObject(e)){var i=!0;return n.each(e,(function(e,n){i=i&&f(t[n],e)})),!!i}return t===e}function g(t,e){t[e.get("label.show")?"show":"hide"]()}function m(t){return{position:t.position.slice(),rotation:t.rotation||0}}function v(t,e,i){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=a&&(t.zlevel=a),t.silent=i)}))}d.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,a){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,a||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,o,t,e,i);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var f=n.curry(p,e,d);this.updatePointerEl(l,c,f,e),this.updateLabelEl(l,c,f,e)}else l=this._group=new r.Group,this.createPointerEl(l,c,t,e),this.createLabelEl(l,c,t,e),i.getZr().add(l);v(l,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,a="category"===n.type,r=e.get("snap");if(!r&&!a)return!1;if("auto"===i||null==i){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(r){var l=o.getAxisInfo(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===i},makeElOption:function(t,e,i,n,a){},createPointerEl:function(t,e,i,n){var a=e.pointer;if(a){var o=u(t).pointerEl=new r[a.type](c(e.pointer));t.add(o)}},createLabelEl:function(t,e,i,n){if(e.label){var a=u(t).labelEl=new r.Rect(c(e.label));t.add(a),g(a,n)}},updatePointerEl:function(t,e,i){var n=u(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var a=u(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{shape:e.label.shape,position:e.label.position}),g(a,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,a=this._api.getZr(),o=this._handle,u=i.getModel("handle"),c=i.get("status");if(!u.get("show")||!c||"hide"===c)return o&&a.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=r.createIcon(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:h(this._onHandleDragMove,this,0,0),drift:h(this._onHandleDragMove,this),ondragend:h(this._onHandleDragEnd,this)}),a.add(o)),v(o,i,!1);o.setStyle(u.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var d=u.get("size");n.isArray(d)||(d=[d,d]),o.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){p(this._axisPointerModel,!e&&this._moveAnimation,this._handle,m(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(m(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(m(n)),u(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}}},d.prototype.constructor=d,a.enableClassExtend(d);var y=d;t.exports=y},77318:function(t,e,i){var n=i(37874),a=i(23263),r=i(84106),o=i(68089),s=n.extend({makeElOption:function(t,e,i,n,o){var s=i.axis,c=s.grid,h=n.get("type"),d=l(c,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(e,!0));if(h&&"none"!==h){var f=a.buildElStyle(n),g=u[h](s,p,d);g.style=f,t.graphicKey=g.type,t.pointer=g}var m=r.layout(c.model,i);a.buildCartesianSingleLabelElOption(e,t,m,i,n,o)},getHandleTransform:function(t,e,i){var n=r.layout(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:a.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,r=a.grid,o=a.getGlobalExtent(!0),s=l(r,a).getOtherAxis(a).getGlobalExtent(),u="x"===a.dim?0:1,c=t.position;c[u]+=e[u],c[u]=Math.min(o[1],c[u]),c[u]=Math.max(o[0],c[u]);var h=(s[1]+s[0])/2,d=[h,h];d[u]=c[u];return{position:c,rotation:t.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][u]}}});function l(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var u={line:function(t,e,i){return{type:"Line",subPixelOptimize:!0,shape:a.makeLineShape([e,i[0]],[e,i[1]],c(t))}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:a.makeRectShape([e-n/2,i[0]],[n,r],c(t))}}};function c(t){return"x"===t.dim?0:1}o.registerAxisPointerClass("CartesianAxisPointer",s);var h=s;t.exports=h},32641:function(t,e,i){var n=i(17010),a=i(37874),r=i(18993),o=i(23263),s=i(26237),l=i(93570),u=i(68089),c=a.extend({makeElOption:function(t,e,i,a,u){var c=i.axis;"angle"===c.dim&&(this.animationThreshold=Math.PI/18);var d,p=c.polar,f=p.getOtherAxis(c).getExtent();d=c["dataTo"+n.capitalFirst(c.dim)](e);var g=a.get("type");if(g&&"none"!==g){var m=o.buildElStyle(a),v=h[g](c,p,d,f,m);v.style=m,t.graphicKey=v.type,t.pointer=v}var y=function(t,e,i,n,a){var o=e.axis,u=o.dataToCoord(t),c=n.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,p,f=n.getRadiusAxis().getExtent();if("radius"===o.dim){var g=s.create();s.rotate(g,g,c),s.translate(g,g,[n.cx,n.cy]),h=r.applyTransform([u,-a],g);var m=e.getModel("axisLabel").get("rotate")||0,v=l.innerTextLayout(c,m*Math.PI/180,-1);d=v.textAlign,p=v.textVerticalAlign}else{var y=f[1];h=n.coordToPoint([y+a,u]);var x=n.cx,_=n.cy;d=Math.abs(h[0]-x)/y<.3?"center":h[0]>x?"left":"right",p=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalAlign:p}}(e,i,0,p,a.get("label.margin"));o.buildLabelElOption(t,i,a,u,y)}});var h={line:function(t,e,i,n,a){return"angle"===t.dim?{type:"Line",shape:o.makeLineShape(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,a){var r=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,n[0],n[1],(-i-r/2)*s,(r/2-i)*s)}:{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,i-r/2,i+r/2,0,2*Math.PI)}}};u.registerAxisPointerClass("PolarAxisPointer",c);var d=c;t.exports=d},9242:function(t,e,i){var n=i(37874),a=i(23263),r=i(76203),o=i(68089),s=["x","y"],l=["width","height"],u=n.extend({makeElOption:function(t,e,i,n,o){var s=i.axis,l=s.coordinateSystem,u=d(l,1-h(s)),p=l.dataToPoint(e)[0],f=n.get("type");if(f&&"none"!==f){var g=a.buildElStyle(n),m=c[f](s,p,u);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=r.layout(i);a.buildCartesianSingleLabelElOption(e,t,v,i,n,o)},getHandleTransform:function(t,e,i){var n=r.layout(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:a.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,r=a.coordinateSystem,o=h(a),s=d(r,o),l=t.position;l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=d(r,1-o),c=(u[1]+u[0])/2,p=[c,c];return p[o]=l[o],{position:l,rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(t,e,i){return{type:"Line",subPixelOptimize:!0,shape:a.makeLineShape([e,i[0]],[e,i[1]],h(t))}},shadow:function(t,e,i){var n=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:a.makeRectShape([e-n/2,i[0]],[n,r],h(t))}}};function h(t){return t.isHorizontal()?0:1}function d(t,e){var i=t.getRect();return[i[s[e]],i[s[e]]+i[l[e]]]}o.registerAxisPointerClass("SingleAxisPointer",u);var p=u;t.exports=p},15110:function(t,e,i){var n=i(69008),a=i(90830).makeInner,r=i(9862),o=i(65881),s=n.each,l=n.curry,u=a();function c(t,e,i,a,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var l=function(t,e){var i=e.axis,n=i.dim,a=t,r=[],o=Number.MAX_VALUE,l=-1;return s(e.seriesModels,(function(e,u){var c,h,d=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(d,t,i);h=p.dataIndices,c=p.nestestValue}else{if(!(h=e.getData().indicesOfNearest(d[0],t,"category"===i.type?.5:null)).length)return;c=e.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var f=t-c,g=Math.abs(f);g<=o&&((g=0&&l<0)&&(o=g,l=f,a=c,r.length=0),s(h,(function(t){r.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:r,snapToValue:a}}(e,t),u=l.payloadBatch,c=l.snapToValue;u[0]&&null==r.seriesIndex&&n.extend(r,u[0]),!a&&t.snap&&o.containData(c)&&null!=c&&(e=c),i.showPointer(t,e,u,r),i.showTooltip(t,l,c)}else i.showPointer(t,e)}function h(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function d(t,e,i,n){var a=i.payloadBatch,o=e.axis,s=o.model,l=e.axisPointerModel;if(e.triggerTooltip&&a.length){var u=e.coordSys.model,c=r.makeKey(u),h=t.map[c];h||(h=t.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:a.slice()})}}function p(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function f(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=function(t,e,i){var a=t.currTrigger,r=[t.x,t.y],g=t,m=t.dispatchAction||n.bind(i.dispatchAction,i),v=e.getComponent("axisPointer").coordSysAxesInfo;if(v){f(r)&&(r=o({seriesIndex:g.seriesIndex,dataIndex:g.dataIndex},e).point);var y=f(r),x=g.axesInfo,_=v.axesInfo,b="leave"===a||f(r),w={},S={},M={list:[],map:{}},I={showPointer:l(h,S),showTooltip:l(d,M)};s(v.coordSysMap,(function(t,e){var i=y||t.containPoint(r);s(v.coordSysAxesInfo[e],(function(t,e){var n=t.axis,a=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(x,t);if(!b&&i&&(!x||a)){var o=a&&a.value;null!=o||y||(o=n.pointToData(r)),null!=o&&c(t,o,I,!1,w)}}))}));var T={};return s(_,(function(t,e){var i=t.linkGroup;i&&!S[e]&&s(i.axesInfo,(function(e,n){var a=S[n];if(e!==t&&a){var r=a.value;i.mapper&&(r=t.axis.scale.parse(i.mapper(r,p(e),p(t)))),T[t.key]=r}}))})),s(T,(function(t,e){c(_[e],t,I,!0,w)})),function(t,e,i){var n=i.axesInfo=[];s(e,(function(e,i){var a=e.axisPointerModel.option,r=t[i];r?(!e.useHandle&&(a.status="show"),a.value=r.value,a.seriesDataIndices=(r.payloadBatch||[]).slice()):!e.useHandle&&(a.status="hide"),"show"===a.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:a.value})}))}(S,_,w),function(t,e,i,n){if(f(e)||!t.list.length)return void n({type:"hideTip"});var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}(M,r,t,m),function(t,e,i){var a=i.getZr(),r="axisPointerLastHighlights",o=u(a)[r]||{},l=u(a)[r]={};s(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&s(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;l[e]=t}))}));var c=[],h=[];n.each(o,(function(t,e){!l[e]&&h.push(t)})),n.each(l,(function(t,e){!o[e]&&c.push(t)})),h.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:h}),c.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:c})}(_,0,i),w}}},65881:function(t,e,i){var n=i(69008),a=i(90830);t.exports=function(t,e){var i,r=[],o=t.seriesIndex;if(null==o||!(i=e.getSeriesByIndex(o)))return{point:[]};var s=i.getData(),l=a.queryDataIndex(s,t);if(null==l||l<0||n.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)r=c.dataToPoint(s.getValues(n.map(c.dimensions,(function(t){return s.mapDimension(t)})),l,!0))||[];else if(u){var h=u.getBoundingRect().clone();h.applyTransform(u.transform),r=[h.x+h.width/2,h.y+h.height/2]}return{point:r,el:u}}},46243:function(t,e,i){var n=i(69008),a=i(12973),r=(0,i(90830).makeInner)(),o=n.each;function s(t,e,i){t.handler("leave",null,i)}function l(t,e,i,n){e.handler(t,i,n)}e.register=function(t,e,i){if(!a.node){var u=e.getZr();r(u).records||(r(u).records={}),function(t,e){if(r(t).initialized)return;function i(i,n){t.on(i,(function(i){var a=function(t){var e={showTip:[],hideTip:[]},i=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}(e);o(r(t).records,(function(t){t&&n(t,i,a.dispatchAction)})),function(t,e){var i,n=t.showTip.length,a=t.hideTip.length;n?i=t.showTip[n-1]:a&&(i=t.hideTip[a-1]);i&&(i.dispatchAction=null,e.dispatchAction(i))}(a.pendings,e)}))}r(t).initialized=!0,i("click",n.curry(l,"click")),i("mousemove",n.curry(l,"mousemove")),i("globalout",s)}(u,e),(r(u).records[t]||(r(u).records[t]={})).handler=i}},e.unregister=function(t,e){if(!a.node){var i=e.getZr();(r(i).records||{})[t]&&(r(i).records[t]=null)}}},9862:function(t,e,i){var n=i(69008),a=i(24040),r=n.each,o=n.curry;function s(t,e){return"all"===t||n.isArray(t)&&n.indexOf(t,e)>=0||t===e}function l(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[c(t)]}function u(t){return!!t.get("handle.show")}function c(t){return t.type+"||"+t.id}e.collect=function(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,i){var l=e.getComponent("tooltip"),h=e.getComponent("axisPointer"),d=h.get("link",!0)||[],p=[];r(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var f=c(i.model),g=t.coordSysAxesInfo[f]={};t.coordSysMap[f]=i;var m=i.model.getModel("tooltip",l);if(r(i.getAxes(),o(_,!1,null)),i.getTooltipAxes&&l&&m.get("show")){var v="axis"===m.get("trigger"),y="cross"===m.get("axisPointer.type"),x=i.getTooltipAxes(m.get("axisPointer.axis"));(v||y)&&r(x.baseAxes,o(_,!y||"cross",v)),y&&r(x.otherAxes,o(_,"cross",!1))}}function _(o,l,f){var v=f.model.getModel("axisPointer",h),y=v.get("show");if(y&&("auto"!==y||o||u(v))){null==l&&(l=v.get("triggerTooltip")),v=o?function(t,e,i,o,s,l){var u=e.getModel("axisPointer"),c={};r(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){c[t]=n.clone(u.get(t))})),c.snap="category"!==t.type&&!!l,"cross"===u.get("type")&&(c.type="line");var h=c.label||(c.label={});if(null==h.show&&(h.show=!1),"cross"===s){var d=u.get("label.show");if(h.show=null==d||d,!l){var p=c.lineStyle=u.get("crossStyle");p&&n.defaults(h,p.textStyle)}}return t.model.getModel("axisPointer",new a(c,i,o))}(f,m,h,e,o,l):v;var x=v.get("snap"),_=c(f.model),b=l||x||"category"===f.type,w=t.axesInfo[_]={key:_,axis:f,coordSys:i,axisPointerModel:v,triggerTooltip:l,involveSeries:b,snap:x,useHandle:u(v),seriesModels:[]};g[_]=w,t.seriesInvolved|=b;var S=function(t,e){for(var i=e.model,n=e.dim,a=0;ac[1]&&c.reverse(),(null==o||o>c[1])&&(o=c[1]),oe[0][1]&&(e[0][1]=r[0]),r[1]e[1][1]&&(e[1][1]=r[1])}return e&&x(e)}};function x(t){return new r(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}e.layoutCovers=f},11550:function(t,e,i){i(29933),i(66619),i(62336)},62336:function(t,e,i){var n=i(3096),a=i(69008),r=i(18993),o=i(17010),s=i(86957),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},c=n.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var a=t.coordinateSystem,r=a.getRangeInfo(),o=a.getOrient();this._renderDayRect(t,r,n),this._renderLines(t,r,o,n),this._renderYearText(t,r,o,n),this._renderMonthText(t,o,n),this._renderWeekText(t,r,o,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),s=n.getCellHeight(),l=e.start.time;l<=e.end.time;l=n.getNextNDay(l,1).time){var u=n.dataToRect([l],!1).tl,c=new r.Rect({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:a});i.add(c)}},_renderLines:function(t,e,i,n){var a=this,r=t.coordinateSystem,o=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=r.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=r.getDateInfo(h)}function d(e){a._firstDayOfMonth.push(r.getDateInfo(e)),a._firstDayPoints.push(r.dataToRect([e],!1).tl);var l=a._getLinePointsOfOneWeek(t,e,i);a._tlpoints.push(l[0]),a._blpoints.push(l[l.length-1]),s&&a._drawSplitline(l,o,n)}d(r.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,l,i),o,n),s&&this._drawSplitline(a._getEdgesPoints(a._blpoints,l,i),o,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],a="horizontal"===i?0:1;return n[0][a]=n[0][a]-e/2,n[1][a]=n[1][a]+e/2,n},_drawSplitline:function(t,e,i){var n=new r.Polyline({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var a=[],r=0;r<7;r++){var o=n.getNextNDay(e.time,r),s=n.dataToRect([o.time],!1);a[2*o.day]=s.tl,a[2*o.day+1]=s["horizontal"===i?"bl":"tr"]}return a},_formatterLabel:function(t,e){return"string"==typeof t&&t?o.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,a){e=e.slice();var r=["center","bottom"];"bottom"===n?(e[1]+=a,r=["center","top"]):"left"===n?e[0]-=a:"right"===n?(e[0]+=a,r=["center","top"]):e[1]-=a;var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(t,e,i,n){var a=t.getModel("yearLabel");if(a.get("show")){var o=a.get("margin"),s=a.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,c=(l[0][1]+l[1][1])/2,h="horizontal"===i?0:1,d={top:[u,l[h][1]],bottom:[u,l[1-h][1]],left:[l[1-h][0],c],right:[l[h][0],c]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var f=a.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:p},m=this._formatterLabel(f,g),v=new r.Text({z2:30});r.setTextStyle(v.style,a,{text:m}),v.attr(this._yearTextPositionControl(v,d[s],i,s,o)),n.add(v)}},_monthTextPositionControl:function(t,e,i,n,a){var r="left",o="top",s=t[0],l=t[1];return"horizontal"===i?(l+=a,e&&(r="center"),"start"===n&&(o="bottom")):(s+=a,e&&(o="middle"),"start"===n&&(r="right")),{x:s,y:l,textAlign:r,textVerticalAlign:o}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var o=n.get("nameMap"),s=n.get("margin"),u=n.get("position"),c=n.get("align"),h=[this._tlpoints,this._blpoints];a.isString(o)&&(o=l[o.toUpperCase()]||[]);var d="start"===u?0:1,p="horizontal"===e?0:1;s="start"===u?-s:s;for(var f="center"===c,g=0;gn[1]&&(n[1]=e[1])}))})),n[1]0?0:NaN);var o=i.getMax(!0);null!=o&&"dataMax"!==o&&"function"!=typeof o?e[1]=o:a&&(e[1]=r>0?r-1:NaN);i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(t,n),n}(this,this._dimName,e),function(t){var e=t._minMaxSpan={},i=t._dataZoomModel,n=t._dataExtent;s(["min","max"],(function(r){var o=i.get(r+"Span"),s=i.get(r+"ValueSpan");null!=s&&(s=t.getAxisModel().axis.scale.parse(s)),null!=s?o=a.linearMap(n[0]+s,n,[0,100],!0):null!=o&&(s=a.linearMap(o,[0,100],n,!0)-n[0]),e[r+"Span"]=o,e[r+"ValueSpan"]=s}))}(this);var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,c(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,c(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),a=t.get("filterMode"),r=this._valueWindow;"none"!==a&&s(n,(function(t){var e=t.getData(),n=e.mapDimension(i,!0);n.length&&("weakFilter"===a?e.filterSelf((function(t){for(var i,a,o,s=0;sr[1];if(u&&!c&&!h)return!0;u&&(o=!0),c&&(i=!0),h&&(a=!0)}return o&&i&&a})):s(n,(function(i){if("empty"===a)t.setData(e=e.map(i,(function(t){return function(t){return t>=r[0]&&t<=r[1]}(t)?t:NaN})));else{var n={};n[i]=r,e.selectRange(n)}})),s(n,(function(t){e.setApproximateExtent(r,t)})))}))}}};var h=u;t.exports=h},69391:function(t,e,i){i(96311).__DEV__;var n=i(3096),a=i(69008),r=i(12973),o=i(90830),s=i(14531),l=i(53126),u=a.each,c=s.eachAxisDim;function h(t){var e={};return u(["start","end","startValue","endValue","throttle"],(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e}function d(t,e){var i=t._rangePropMode,n=t.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(t,a){var r=null!=e[t[0]],o=null!=e[t[1]];r&&!o?i[a]="percent":!r&&o?i[a]="value":n?i[a]=n[a]:r&&(i[a]="percent")}))}var p=n.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(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=h(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=h(t);a.merge(this.option,t,!0),a.merge(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var e=this.option;r.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),d(this,t);var i=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,i,n,a){var r=this.dependentModels[e.axis][i],o=r.__dzAxisProxy||(r.__dzAxisProxy=new l(e.name,i,this,a));t[e.name+"_"+i]=o}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();c((function(e){var i=e.axisIndex;t[i]=o.normalizeToArray(t[i])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;c((function(i){null!=t[i.axisIndex]&&(e=!0)}),this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var r="vertical"===e?"y":"x";n[r+"Axis"].length?(i[r+"AxisIndex"]=[0],t=!1):u(n.singleAxis,(function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)}))}t&&c((function(e){if(t){var n=[],a=this.dependentModels[e.axis];if(a.length&&!n.length)for(var r=0,o=a.length;r0?100:20}},getFirstTargetAxisModel:function(){var t;return c((function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}}),this),t},eachTargetAxis:function(t,e){var i=this.ecModel;c((function(n){u(this.get(n.axisIndex),(function(a){t.call(e,n,a,this,i)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t){var e=this.option,i=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(n){null==t[n[0]]&&null==t[n[1]]||(e[n[0]]=i[n[0]]=t[n[0]],e[n[1]]=i[n[1]]=t[n[1]])}),this),d(this,t)},setCalculatedRange:function(t){var e=this.option;u(["start","startValue","end","endValue"],(function(i){e[i]=t[i]}))},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}});t.exports=p},91615:function(t,e,i){var n=i(36851).extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,i={};return t.eachTargetAxis((function(t,n){var a=e.getComponent(t.axis,n);if(a){var r=a.getCoordSysModel();r&&function(t,e,i,n){for(var a,r=0;r0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/n.scale,0);o[0]=(o[0]-u)*c+u,o[1]=(o[1]-u)*c+u;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return r(0,o,[0,100],0,d.minSpan,d.maxSpan),this._range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}},pan:c((function(t,e,i,n,a,r){var o=h[n]([r.oldX,r.oldY],[r.newX,r.newY],e,a,i);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength})),scrollMove:c((function(t,e,i,n,a,r){return h[n]([0,0],[r.scrollDelta,r.scrollDelta],e,a,i).signal*(t[1]-t[0])*r.scrollDelta}))};function c(t){return function(e,i,n,a){var o=this._range,s=o.slice(),l=e.axisModels[0];if(l){var u=t(s,l,e,i,n,a);return r(u,s,[0,100],"all"),this._range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}var h={grid:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=r.inverse?-1:1),o},polar:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=r.inverse?-1:1),o},singleAxis:function(t,e,i,n,a){var r=i.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=r.inverse?-1:1),s}},d=l;t.exports=d},1445:function(t,e,i){var n=i(69391).extend({type:"dataZoom.select"});t.exports=n},63124:function(t,e,i){var n=i(91615).extend({type:"dataZoom.select"});t.exports=n},23291:function(t,e,i){var n=i(69391).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"}}});t.exports=n},32079:function(t,e,i){var n=i(69008),a=i(92462),r=i(18993),o=i(83209),s=i(91615),l=i(86957),u=i(7357),c=i(98810),h=r.Rect,d=l.linearMap,p=l.asc,f=n.bind,g=n.each,m="horizontal",v="vertical",y=["line","bar","candlestick","scatter"],x=s.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){x.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){x.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){x.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new r.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,i=this._findCoordRect(),a={width:e.getWidth(),height:e.getHeight()},r=this._orient===m?{right:a.width-i.x-i.width,top:a.height-30-7,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},o=u.getLayoutParams(t.option);n.each(["right","top","width","height"],(function(t){"ph"===o[t]&&(o[t]=r[t])}));var s=u.getLayoutRect(o,a,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===v&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),a=n&&n.get("inverse"),r=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(i!==m||a?i===m&&a?{scale:o?[-1,1]:[-1,-1]}:i!==v||a?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t.getBoundingRect([r]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.barGroup;i.add(new h({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),i.add(new h({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:n.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t.series,a=i.getRawData(),o=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=o){var s=a.getDataExtent(o),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,c=[0,e[1]],h=[0,e[0]],p=[[e[0],0],[0,0]],f=[],g=h[1]/(a.count()-1),m=0,v=Math.round(a.count()/e[0]);a.each([o],(function(t,e){if(v>0&&e%v)m+=g;else{var i=null==t||isNaN(t)||""===t,n=i?0:d(t,s,c,!0);i&&!u&&e?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!i&&u&&(p.push([m,0]),f.push([m,0])),p.push([m,n]),f.push([m,n]),m+=g,u=i}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new r.Polygon({shape:{points:p},style:n.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new r.Polyline({shape:{points:f},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,a=this.ecModel;return t.eachTargetAxis((function(r,o){var s=t.getAxisProxy(r.name,o).getTargetSeriesModels();n.each(s,(function(t){if(!(i||!0!==e&&n.indexOf(y,t.get("type"))<0)){var s,l=a.getComponent(r.axis,o).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[r.name],c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(s=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),i={thisAxis:l,series:t,thisDim:r.name,otherDim:u,otherAxisInverse:s}}}),this)}),this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,a=this._size,o=this.dataZoomModel;n.add(t.filler=new h({draggable:!0,cursor:_(this._orient),drift:f(this._onDragMove,this,"all"),ondragstart:f(this._showDataInfo,this,!0),ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),n.add(new h({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),g([0,1],(function(t){var a=r.createIcon(o.get("handleIcon"),{cursor:_(this._orient),draggable:!0,drift:f(this._onDragMove,this,t),ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=a.getBoundingRect();this._handleHeight=l.parsePercent(o.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,a.setStyle(o.getModel("handleStyle").getItemStyle());var u=o.get("handleColor");null!=u&&(a.style.fill=u),n.add(e[t]=a);var c=o.textStyleModel;this.group.add(i[t]=new r.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:c.getTextColor(),textFont:c.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[d(t[0],[0,100],e,!0),d(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,a=this._getViewExtent(),r=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];c(e,n,a,i.get("zoomLock")?"all":t,null!=r.minSpan?d(r.minSpan,o,a,!0):null,null!=r.maxSpan?d(r.maxSpan,o,a,!0):null);var s=this._range,l=this._range=p([d(n[0],a,o,!0),d(n[1],a,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=p(i.slice()),a=this._size;g([0,1],(function(t){var n=e.handles[t],r=this._handleHeight;n.attr({scale:[r/2,r/2],position:[i[t],a[1]/2-r/2]})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,a=this._orient,o=["",""];if(e.get("showDetail")){var s=e.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,c=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var h=p(this._handleEnds.slice());function d(t){var e=r.getTransform(i.handles[t].parent,this.group),s=r.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+5,u=r.applyTransform([h[t]+(0===t?-l:l),this._size[1]/2],e);n[t].setStyle({x:u[0],y:u[1],textVerticalAlign:a===m?"middle":s,textAlign:a===m?s:"center",text:o[t]})}d.call(this,0),d.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,a=i.get("labelFormatter"),r=i.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return n.isFunction(a)?a(t,o):n.isString(a)?a.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i,n){this._dragging=!0,a.stop(n.event);var o=this._displayables.barGroup.getLocalTransform(),s=r.applyTransform([e,i],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,a=(n[0]+n[1])/2,r=this._updateInterval("all",i[0]-a);this._updateView(),r&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(g(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}})),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});function _(t){return"vertical"===t?"ns-resize":"ew-resize"}var b=x;t.exports=b},51323:function(t,e,i){var n=i(3096),a=i(69008),r=i(14531);n.registerAction("dataZoom",(function(t,e){var i=r.createLinkedNodesFinder(a.bind(e.eachComponent,e,"dataZoom"),r.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),n=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){n.push.apply(n,i(t).nodes)})),a.each(n,(function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))},77069:function(t,e,i){var n=i(3096),a=i(69008),r=a.createHashMap,o=a.each;n.registerProcessor({getTargetSeries:function(t){var e=r();return t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,i,n){var a=n.getAxisProxy(t.name,i);o(a.getTargetSeriesModels(),(function(t){e.set(t.uid,t)}))}))})),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,i,n){n.getAxisProxy(t.name,i).reset(n,e)})),t.eachTargetAxis((function(t,i,n){n.getAxisProxy(t.name,i).filterData(n,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}))}})},14531:function(t,e,i){var n=i(69008),a=i(17010),r=["cartesian2d","polar","singleAxis"];function o(t,e){t=t.slice();var i=n.map(t,a.capitalFirst);e=(e||[]).slice();var r=n.map(e,a.capitalFirst);return function(a,o){n.each(t,(function(t,n){for(var s={name:t,capital:i[n]},l=0;l=0},e.createNameEach=o,e.eachAxisDim=s,e.createLinkedNodesFinder=function(t,e,i){return function(r){var o,s={nodes:[],records:{}};if(e((function(t){s.records[t.name]={}})),!r)return s;a(r,s);do{o=!1,t(l)}while(o);function l(t){!function(t,e){return n.indexOf(e.nodes,t)>=0}(t,s)&&function(t,a){var r=!1;return e((function(e){n.each(i(t,e)||[],(function(t){a.records[e.name][t]&&(r=!0)}))})),r}(t,s)&&(a(t,s),o=!0)}return s};function a(t,a){a.nodes.push(t),e((function(e){n.each(i(t,e)||[],(function(t){a.records[e.name][t]=!0}))}))}}},8338:function(t,e,i){var n=i(69008).each,a="\0_ec_hist_store";function r(t){var e=t[a];return e||(e=t[a]=[{}]),e}e.push=function(t,e){var i=r(t);n(e,(function(e,n){for(var a=i.length-1;a>=0;a--){if(i[a][n])break}if(a<0){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var o=r.getPercentRange();i[0][n]={dataZoomId:n,start:o[0],end:o[1]}}}})),i.push(e)},e.pop=function(t){var e=r(t),i=e[e.length-1];e.length>1&&e.pop();var a={};return n(i,(function(t,i){for(var n=e.length-1;n>=0;n--){if(t=e[n][i]){a[i]=t;break}}})),a},e.clear=function(t){t[a]=null},e.count=function(t){return r(t).length}},13185:function(t,e,i){var n=i(69008),a=i(38515),r=i(83209),o="\0_ec_dataZoom_roams";function s(t){var e=t.getZr();return e[o]||(e[o]={})}function l(t){n.each(t,(function(e,i){e.count||(e.controller.dispose(),delete t[i])}))}function u(t,e){t.dispatchAction({type:"dataZoom",batch:e})}e.register=function(t,e){var i=s(t),o=e.dataZoomId,c=e.coordId;n.each(i,(function(t,i){var a=t.dataZoomInfos;a[o]&&n.indexOf(e.allCoordIds,c)<0&&(delete a[o],t.count--)})),l(i);var h=i[c];h||((h=i[c]={coordId:c,dataZoomInfos:{},count:0}).controller=function(t,e){var i=new a(t.getZr());return n.each(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(i){var a=[];n.each(e.dataZoomInfos,(function(n){if(i.isAvailableBehavior(n.dataZoomModel.option)){var r=(n.getRange||{})[t],o=r&&r(e.controller,i);!n.dataZoomModel.get("disabled",!0)&&o&&a.push({dataZoomId:n.dataZoomId,start:o[0],end:o[1]})}})),a.length&&e.dispatchAction(a)}))})),i}(t,h),h.dispatchAction=n.curry(u,t)),!h.dataZoomInfos[o]&&h.count++,h.dataZoomInfos[o]=e;var d,p,f,g,m,v=(d=h.dataZoomInfos,f="type_",g={type_true:2,type_move:1,type_false:0,type_undefined:-1},m=!0,n.each(d,(function(t){var e=t.dataZoomModel,i=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");g[f+i]>g[f+p]&&(p=i),m&=e.get("preventDefaultMouseMove",!0)})),{controlType:p,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!m}});h.controller.enable(v.controlType,v.opt),h.controller.setPointerChecker(e.containsPoint),r.createOrUpdate(h,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")},e.unregister=function(t,e){var i=s(t);n.each(i,(function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)})),l(i)},e.generateCoordId=function(t){return t.type+"\0_"+t.id}},35190:function(t,e,i){i(16172).registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},48328:function(t,e,i){i(35190),i(69391),i(91615),i(35187),i(79226),i(77069),i(51323)},20393:function(t,e,i){i(35190),i(69391),i(91615),i(1445),i(63124),i(77069),i(51323)},18427:function(t,e,i){i(35190),i(69391),i(91615),i(23291),i(32079),i(77069),i(51323)},72476:function(t,e,i){var n=i(16172),a=i(36851),r=i(67063).detectSourceFormat,o=i(8326).SERIES_LAYOUT_BY_COLUMN;n.extend({type:"dataset",defaultOption:{seriesLayoutBy:o,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){r(this)}}),a.extend({type:"dataset"})},24514:function(t,e,i){var n=i(3096),a=i(69008);function r(t,e){e.update="updateView",n.registerAction(e,(function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},(function(i){i[t](e.name);var r=i.coordinateSystem;a.each(r.regions,(function(t){n[t.name]=i.isSelected(t.name)||!1}))})),{selected:n,name:e.name}}))}i(55550),i(91148),i(72621),i(37406),r("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),r("select",{type:"geoSelect",event:"geoselected"}),r("unSelect",{type:"geoUnSelect",event:"geounselected"})},72621:function(t,e,i){var n=i(25344),a=i(3096).extendComponentView({type:"geo",init:function(t,e){var i=new n(e,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var a=this._mapDraw;t.get("show")?a.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});t.exports=a},2090:function(t,e,i){i(96311).__DEV__;var n=i(3096),a=i(69008),r=i(90830),o=i(18993),s=i(7357),l=i(86957).parsePercent,u={path:null,compoundPath:null,group:o.Group,image:o.Image,text:o.Text};n.registerPreprocessor((function(t){var e=t.graphic;a.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}));var c=n.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,c.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var i=this.option,n=(e?i:t).elements,o=i.elements=e?[]:i.elements,l=[];this._flatten(n,l);var u=r.mappingToExists(o,l);r.makeIdAndName(u);var c=this._elOptionsToUpdate=[];a.each(u,(function(t,e){var i=t.option;i&&(c.push(i),function(t,e){var i=t.exist;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}(t,i),function(t,e,i){var n=a.extend({},i),r=t[e],o=i.$action||"merge";"merge"===o?r?(a.merge(r,n,!0),s.mergeLayoutParam(r,n,{ignoreSize:!0}),s.copyLayoutParams(i,r)):t[e]=n:"replace"===o?t[e]=n:"remove"===o&&r&&(t[e]=null)}(o,e,i),function(t,e){if(!t)return;t.hv=e.hv=[p(e,["left","right"]),p(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0))}(o[e],i))}),this);for(var h=o.length-1;h>=0;h--)null==o[h]?o.splice(h,1):delete o[h].$action},_flatten:function(t,e,i){a.each(t,(function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function h(t,e,i,n){var a=i.type,r=new(u.hasOwnProperty(a)?u[a]:o.getShapeClass(a))(i);e.add(r),n.set(t,r),r.__ecGraphicId=t}function d(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){d(t,e)})),e.removeKey(t.__ecGraphicId),i.remove(t))}function p(t,e){var i;return a.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}n.extendComponentView({type:"graphic",init:function(t,e){this._elMap=a.createHashMap(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var i=this._elMap,n=this.group;a.each(e,(function(e){var r=e.$action,o=e.id,l=i.get(o),u=e.parentId,c=null!=u?i.get(u):n,p=e.style;"text"===e.type&&p&&(e.hv&&e.hv[1]&&(p.textVerticalAlign=p.textBaseline=null),!p.hasOwnProperty("textFill")&&p.fill&&(p.textFill=p.fill),!p.hasOwnProperty("textStroke")&&p.stroke&&(p.textStroke=p.stroke));var f=function(t){return t=a.extend({},t),a.each(["id","parentId","$action","hv","bounding"].concat(s.LOCATION_PARAMS),(function(e){delete t[e]})),t}(e);r&&"merge"!==r?"replace"===r?(d(l,i),h(o,c,f,i)):"remove"===r&&d(l,i):l?l.attr(f):h(o,c,f,i);var g=i.get(o);g&&(g.__ecGraphicWidthOption=e.width,g.__ecGraphicHeightOption=e.height,function(t,e,i){var n=t.eventData;t.silent||t.ignore||n||(n=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});n&&(n.info=t.info)}(g,t))}))}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,a=this._elMap,r=e.getWidth(),o=e.getHeight(),u=0;u=0;u--){var d;c=i[u];if(d=a.get(c.id)){var p,f=(p=d.parent)===n?{width:r,height:o}:{width:p.__ecGraphicWidth,height:p.__ecGraphicHeight};s.positionElement(d,c,f,null,{hv:c.hv,boundingMode:c.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){d(e,t)})),this._elMap=a.createHashMap()},dispose:function(){this._clear()}})},25957:function(t,e,i){i(47102),i(77318),i(84159)},47102:function(t,e,i){var n=i(3096),a=i(69008),r=i(18993);i(40753),i(2849),n.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new r.Rect({shape:t.coordinateSystem.getRect(),style:a.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))},7430:function(t,e,i){i(96311).__DEV__;var n=i(69008),a=i(37283),r=i(18993),o=i(80255),s=i(90515),l=n.curry,u=n.each,c=n.map,h=Math.min,d=Math.max,p=Math.pow,f="globalPan",g={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},m={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},v={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},y=0;function x(t){a.call(this),this._zr=t,this.group=new r.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+y++,this._handlers={},u(Y,(function(t,e){this._handlers[e]=n.bind(t,this)}),this)}function _(t,e){var i=X[e.brushType].createCover(t,e);return i.__brushOption=e,S(i,e),t.group.add(i),i}function b(t,e){var i=I(e);return i.endCreating&&(i.endCreating(t,e),S(e,e.__brushOption)),e}function w(t,e){var i=e.__brushOption;I(e).updateCoverShape(t,e,i.range,i)}function S(t,e){var i=e.z;null==i&&(i=1e4),t.traverse((function(t){t.z=i,t.z2=i}))}function M(t,e){I(e).updateCommon(t,e),w(t,e)}function I(t){return X[t.__brushOption.brushType]}function T(t,e,i){var n,a=t._panels;if(!a)return!0;var r=t._transform;return u(a,(function(t){t.isTargetByCursor(e,i,r)&&(n=t)})),n}function A(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null==n||i[n]}function C(t){var e=t._covers,i=e.length;return u(e,(function(e){t.group.remove(e)}),t),e.length=0,!!i}function D(t,e){var i=c(t._covers,(function(t){var e=t.__brushOption,i=n.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}}));t.trigger("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function L(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function P(t,e,i,n){var a=new r.Group;return a.add(new r.Rect({name:"main",style:E(i),silent:!0,draggable:!0,cursor:"move",drift:l(t,e,a,"nswe"),ondragend:l(D,e,{isEnd:!0})})),u(n,(function(i){a.add(new r.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:l(t,e,a,i),ondragend:l(D,e,{isEnd:!0})}))})),a}function k(t,e,i,n){var a=n.brushStyle.lineWidth||0,r=d(a,6),o=i[0][0],s=i[1][0],l=o-a/2,u=s-a/2,c=i[0][1],h=i[1][1],p=c-r+a/2,f=h-r+a/2,g=c-o,m=h-s,v=g+a,y=m+a;R(t,e,"main",o,s,g,m),n.transformable&&(R(t,e,"w",l,u,r,y),R(t,e,"e",p,u,r,y),R(t,e,"n",l,u,v,r),R(t,e,"s",l,f,v,r),R(t,e,"nw",l,u,r,r),R(t,e,"ne",p,u,r,r),R(t,e,"sw",l,f,r,r),R(t,e,"se",p,f,r,r))}function O(t,e){var i=e.__brushOption,n=i.transformable,a=e.childAt(0);a.useStyle(E(i)),a.attr({silent:!n,cursor:n?"move":"default"}),u(["w","e","n","s","se","sw","ne","nw"],(function(i){var a=e.childOfName(i),r=z(t,i);a&&a.attr({silent:!n,invisible:!n,cursor:n?m[r]+"-resize":null})}))}function R(t,e,i,n,a,r,o){var s,l,u,c,p,f=e.childOfName(i);f&&f.setShape((s=F(t,e,[[n,a],[n+r,a+o]]),l=h(s[0][0],s[1][0]),u=h(s[0][1],s[1][1]),c=d(s[0][0],s[1][0]),p=d(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:p-u}))}function E(t){return n.defaults({strokeNoScale:!0},t.brushStyle)}function N(t,e,i,n){var a=[h(t,i),h(e,n)],r=[d(t,i),d(e,n)];return[[a[0],r[0]],[a[1],r[1]]]}function z(t,e){if(e.length>1)return("e"===(i=[z(t,(e=e.split(""))[0]),z(t,e[1])])[0]||"w"===i[0])&&i.reverse(),i.join("");var i=r.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return r.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[i]}function B(t,e,i,n,a,r,o,s){var l=n.__brushOption,c=t(l.range),h=G(i,r,o);u(a.split(""),(function(t){var e=g[t];c[e[0]][e[1]]+=h[e[0]]})),l.range=e(N(c[0][0],c[1][0],c[0][1],c[1][1])),M(i,n),D(i,{isEnd:!1})}function V(t,e,i,n,a){var r=e.__brushOption.range,o=G(t,i,n);u(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),M(t,e),D(t,{isEnd:!1})}function G(t,e,i){var n=t.group,a=n.transformCoordToLocal(e,i),r=n.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function F(t,e,i){var a=A(t,e);return a&&!0!==a?a.clipPath(i,t._transform):n.clone(i)}function H(t){var e=t.event;e.preventDefault&&e.preventDefault()}function W(t,e,i){return t.childOfName("main").contain(e,i)}function U(t,e,i,a){var r,o=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(i.slice()),function(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],a=i[0]-n[0],r=i[1]-n[1];return p(a*a+r*r,.5)>6}(t)||o){if(s&&!o){"single"===l.brushMode&&C(t);var u=n.clone(l);u.brushType=Z(u.brushType,s),u.panelId=!0===s?null:s.panelId,o=t._creatingCover=_(t,u),t._covers.push(o)}if(o){var c=X[Z(t._brushType,s)];o.__brushOption.range=c.getCreatingRange(F(t,o,t._track)),a&&(b(t,o),c.updateCommon(t,o)),w(t,o),r={isEnd:a}}}else a&&"single"===l.brushMode&&l.removeOnClick&&T(t,e,i)&&C(t)&&(r={isEnd:a,removeOnClick:!0});return r}function Z(t,e){return"auto"===t?e.defaultBrushType:t}x.prototype={constructor:x,enableBrush:function(t){var e,i;return this._brushType&&(i=(e=this)._zr,o.release(i,f,e._uid),function(t,e){u(e,(function(e,i){t.off(i,e)}))}(i,e._handlers),e._brushType=e._brushOption=null),t.brushType&&function(t,e){var i=t._zr;t._enableGlobalPan||o.take(i,f,t._uid);(function(t,e){u(e,(function(e,i){t.on(i,e)}))})(i,t._handlers),t._brushType=e.brushType,t._brushOption=n.merge(n.clone(v),e,!0)}(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};n.each(t,(function(t){e[t.panelId]=n.clone(t)}))}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){u(this._covers,t,e)},updateCovers:function(t){t=n.map(t,(function(t){return n.merge(n.clone(v),t,!0)}));var e=this._covers,i=this._covers=[],a=this,r=this._creatingCover;return new s(e,t,(function(t,e){return o(t.__brushOption,e)}),o).add(l).update(l).remove((function(t){e[t]!==r&&a.group.remove(e[t])})).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function l(n,o){var s=t[n];if(null!=o&&e[o]===r)i[n]=e[o];else{var l=i[n]=null!=o?(e[o].__brushOption=s,e[o]):b(a,_(a,s));M(a,l)}}},unmount:function(){return this.enableBrush(!1),C(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},n.mixin(x,a);var Y={mousedown:function(t){if(this._dragging)j(this,t);else if(!t.target||!t.target.draggable){H(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=T(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,i=t.offsetY,n=this.group.transformCoordToLocal(e,i);if(function(t,e,i){if(t._brushType&&!function(t,e,i){var n=t._zr;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}(t,e)){var n=t._zr,a=t._covers,r=T(t,e,i);if(!t._dragging)for(var o=0;o=0)&&t(r,n,a)}))}var p=d.prototype;function f(t){return t[0]>t[1]&&t.reverse(),t}function g(t,e){return r.parseFinder(t,e,{includeMainTypes:h})}p.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=x[t.brushType](0,i,e);t.__rangeOffset={offset:b[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}}))},p.matchOutputRanges=function(t,e,i){s(t,(function(t){var a=this.findTargetInfo(t,e);a&&!0!==a&&n.each(a.coordSyses,(function(n){var a=x[t.brushType](1,n,t.range);i(t,a.values,n,e)}))}),this)},p.setInputRanges=function(t,e){s(t,(function(t){var i,n,a,r,o,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=x[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?b[t.brushType](l.values,u.offset,(i=l.xyMinMax,n=u.xyMinMax,a=S(i),r=S(n),o=[a[0]/r[0],a[1]/r[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):l.values}}),this)},p.makePanelOpts=function(t,e){return n.map(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e&&e(i),clipPath:o.makeRectPanelClipPath(n),isTargetByCursor:o.makeRectIsTargetByCursor(n,t,i.coordSysModel),getLinearBrushOtherExtent:o.makeLinearBrushOtherExtent(n)}}))},p.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return!0===n||n&&l(n.coordSyses,e.coordinateSystem)>=0},p.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=g(e,t),a=0;a=0||l(a,t.getAxis("y").model)>=0)&&r.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:y.grid,xAxisDeclared:u[t.id],yAxisDeclared:c[t.id]})})))},geo:function(t,e){s(t.geoModels,(function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:y.geo})}))}},v=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&i&&(a=i.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],y={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(a.getTransform(t)),e}},x={lineX:u(_,0),lineY:u(_,1),rect:function(t,e,i){var n=e[c[t]]([i[0][0],i[1][0]]),a=e[c[t]]([i[0][1],i[1][1]]),r=[f([n[0],a[0]]),f([n[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(t,e,i){var a=[[1/0,-1/0],[1/0,-1/0]];return{values:n.map(i,(function(i){var n=e[c[t]](i);return a[0][0]=Math.min(a[0][0],n[0]),a[1][0]=Math.min(a[1][0],n[1]),a[0][1]=Math.max(a[0][1],n[0]),a[1][1]=Math.max(a[1][1],n[1]),n})),xyMinMax:a}}};function _(t,e,i,a){var r=i.getAxis(["x","y"][t]),o=f(n.map([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(a[t])):r.toGlobalCoord(r.dataToCoord(a[t]))}))),s=[];return s[t]=o,s[1-t]=[NaN,NaN],{values:o,xyMinMax:s}}var b={lineX:u(w,0),lineY:u(w,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return n.map(t,(function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]}))}};function w(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function S(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var M=d;t.exports=M},25344:function(t,e,i){var n=i(69008),a=i(38515),r=i(37419),o=i(18584).onIrrelevantElement,s=i(18993),l=i(11954),u=i(58744).getUID,c=i(74330);function h(t){var e=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(e.fill=i),e}function d(t,e){e.eachChild((function(e){n.each(e.__regions,(function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")}))}))}function p(t,e){var i=new s.Group;this.uid=u("ec_map_draw"),this._controller=new a(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new s.Group),i.add(this._backgroundGroup=new s.Group)}p.prototype={constructor:p,draw:function(t,e,i,a,r){var o="geo"===t.mainType,l=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){l||e.getHostGeoModel()!==t||(l=e.getData())}));var u=t.coordinateSystem;this._updateBackground(u);var p,f=this._regionsGroup,g=this.group,m=u.getTransformInfo(),v=!f.childAt(0)||r;if(v)g.transform=m.roamTransform,g.decomposeTransform(),g.dirty();else{var y=new c;y.transform=m.roamTransform,y.decomposeTransform();var x={scale:y.scale,position:y.position};p=y.scale,s.updateProps(g,x,t)}var _=m.rawScale,b=m.rawPosition;f.removeAll();var w=["itemStyle"],S=["emphasis","itemStyle"],M=["label"],I=["emphasis","label"],T=n.createHashMap();n.each(u.regions,(function(e){var i=T.get(e.name)||T.set(e.name,new s.Group),a=new s.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});i.add(a);var r,u=(z=t.getRegionModel(e.name)||t).getModel(w),c=z.getModel(S),d=h(u),m=h(c),y=z.getModel(M),x=z.getModel(I);if(l){r=l.indexOfName(e.name);var A=l.getItemVisual(r,"color",!0);A&&(d.fill=A)}var C=function(t){return[t[0]*_[0]+b[0],t[1]*_[1]+b[1]]};n.each(e.geometries,(function(t){if("polygon"===t.type){for(var e=[],i=0;i=0)&&(O=t);var E=new s.Text({position:C(e.center.slice()),scale:[1/g.scale[0],1/g.scale[1]],z2:10,silent:!0});if(s.setLabelStyle(E.style,E.hoverStyle={},y,x,{labelFetcher:O,labelDataIndex:R,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!v){var N=[1/p[0],1/p[1]];s.updateProps(E,{scale:N},t)}i.add(E)}if(l)l.setItemGraphicEl(r,i);else{var z=t.getRegionModel(e.name);a.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:z&&z.option||{}}}(i.__regions||(i.__regions=[])).push(e),i.highDownSilentOnTouch=!!t.get("selectedMode"),s.setHoverStyle(i,m),f.add(i)})),this._updateController(t,e,i),function(t,e,i,a,r){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",(function(){t._mouseDownFlag=!0})),i.on("click",(function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var s=o.target;!s.__regions;)s=s.parent;if(s){var l={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:n.map(s.__regions,(function(t){return{name:t.name,from:r.uid}}))};l[e.mainType+"Id"]=e.id,a.dispatchAction(l),d(e,i)}}})))}(this,t,f,i,a),d(t,f)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&l.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&n.each(l.makeGraphic(e,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=e},_updateController:function(t,e,i){var a=t.coordinateSystem,s=this._controller,l=this._controllerHost;l.zoomLimit=t.get("scaleLimit"),l.zoom=a.getZoom(),s.enable(t.get("roam")||!1);var u=t.mainType;function c(){var e={type:"geoRoam",componentType:u};return e[u+"Id"]=t.id,e}s.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,r.updateViewOnPan(l,t.dx,t.dy),i.dispatchAction(n.extend(c(),{dx:t.dx,dy:t.dy}))}),this),s.off("zoom").on("zoom",(function(t){if(this._mouseDownFlag=!1,r.updateViewOnZoom(l,t.scale,t.originX,t.originY),i.dispatchAction(n.extend(c(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse((function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])}))}}),this),s.setPointerChecker((function(e,n,r){return a.getViewRectAfterRoam().contain(n,r)&&!o(e,i,t)}))}};var f=p;t.exports=f},38515:function(t,e,i){var n=i(69008),a=i(37283),r=i(92462),o=i(80255);function s(t){this.pointerChecker,this._zr=t,this._opt={};var e=n.bind,i=e(l,this),r=e(u,this),o=e(c,this),s=e(h,this),p=e(d,this);a.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,a){this.disable(),this._opt=n.defaults(n.clone(a)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",s),t.on("pinch",p))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",p)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(t){if(!(r.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function u(t){if(this._dragging&&g("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!o.isTaken(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,a=this._y,s=e-n,l=i-a;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&r.stop(t.event),f(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:n,oldY:a,newX:e,newY:i})}}function c(t){r.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function h(t){var e=g("zoomOnMouseWheel",t,this._opt),i=g("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,a=Math.abs(n),r=t.offsetX,o=t.offsetY;if(0!==n&&(e||i)){if(e){var s=a>3?1.4:a>1?1.2:1.1;p(this,"zoom","zoomOnMouseWheel",t,{scale:n>0?s:1/s,originX:r,originY:o})}if(i){var l=Math.abs(n);p(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(n>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:r,originY:o})}}}function d(t){o.isTaken(this._zr,"globalPan")||p(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function p(t,e,i,n,a){t.pointerChecker&&t.pointerChecker(n,a.originX,a.originY)&&(r.stop(n.event),f(t,e,i,n,a))}function f(t,e,i,a,r){r.isAvailableBehavior=n.bind(g,null,i,a),t.trigger(e,r)}function g(t,e,i){var a=i[t];return!t||a&&(!n.isString(a)||e.event[a+"Key"])}n.mixin(s,a);var m=s;t.exports=m},20691:function(t,e,i){var n=i(9806),a=i(18584).onIrrelevantElement,r=i(18993);function o(t){return n.create(t)}e.makeRectPanelClipPath=function(t){return t=o(t),function(e,i){return r.clipPointsByRect(e,t)}},e.makeLinearBrushOtherExtent=function(t,e){return t=o(t),function(i){var n=null!=e?e:i,a=n?t.width:t.height,r=n?t.x:t.y;return[r,r+(a||0)]}},e.makeRectIsTargetByCursor=function(t,e,i){return t=o(t),function(n,r,o){return t.contain(r[0],r[1])&&!a(n,e,i)}}},18584:function(t,e){var i={axisPointer:1,tooltip:1,brush:1};e.onIrrelevantElement=function(t,e,n){var a=e.getComponentByElement(t.topTarget),r=a&&a.coordinateSystem;return a&&a!==n&&!i[a.mainType]&&r&&r.model!==n}},80255:function(t,e,i){var n=i(3096),a="\0_ec_interaction_mutex";function r(t){return t[a]||(t[a]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),e.take=function(t,e,i){r(t)[e]=i},e.release=function(t,e,i){var n=r(t);n[e]===i&&(n[e]=null)},e.isTaken=function(t,e){return!!r(t)[e]}},98449:function(t,e,i){var n=i(7357),a=n.getLayoutRect,r=n.box,o=n.positionElement,s=i(17010),l=i(18993);e.layout=function(t,e,i){var n=e.getBoxLayoutParams(),s=e.get("padding"),l={width:i.getWidth(),height:i.getHeight()},u=a(n,l,s);r(e.get("orient"),t,e.get("itemGap"),u.width,u.height),o(t,n,l,s)},e.makeBackground=function(t,e){var i=s.normalizeCssArray(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new l.Rect({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}},37419:function(t,e){e.updateViewOnPan=function(t,e,i){var n=t.target,a=n.position;a[0]+=e,a[1]+=i,n.dirty()},e.updateViewOnZoom=function(t,e,i,n){var a=t.target,r=t.zoomLimit,o=a.position,s=a.scale,l=t.zoom=t.zoom||1;if(l*=e,r){var u=r.min||0,c=r.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/t.zoom;t.zoom=l,o[0]-=(i-o[0])*(h-1),o[1]-=(n-o[1])*(h-1),s[0]*=h,s[1]*=h,a.dirty()}},78240:function(t,e,i){var n=i(69008),a={updateSelectedMap:function(t){this._targetList=n.isArray(t)?t.slice():[],this._selectTargetMap=n.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),n.createHashMap())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each((function(t){t.selected=!1})),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=i)return this[i.selected?"unSelect":"select"](t,e),i.selected},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}};t.exports=a},98810:function(t){function e(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function i(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}t.exports=function(t,n,a,r,o,s){t=t||0;var l=a[1]-a[0];if(null!=o&&(o=i(o,[0,l])),null!=s&&(s=Math.max(s,null!=o?o:0)),"all"===r){var u=Math.abs(n[1]-n[0]);u=i(u,[0,l]),o=s=i(u,[o,s]),r=0}n[0]=i(n[0],a),n[1]=i(n[1],a);var c=e(n,r);n[r]+=t;var h=o||0,d=a.slice();c.sign<0?d[0]+=h:d[1]-=h,n[r]=i(n[r],d);var p=e(n,r);return null!=o&&(p.sign!==c.sign||p.spans&&(n[1-r]=n[r]+p.sign*s),n}},32314:function(t,e,i){var n=i(3096);i(80194),i(73120),i(71298);var a=i(19214),r=i(16172);n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,a),r.registerSubTypeDefaulter("legend",(function(){return"plain"}))},80194:function(t,e,i){var n=i(3096),a=i(69008),r=i(24040),o=i(90830).isNameSpecified,s=i(73315).legend.selector,l={all:{type:"all",title:a.clone(s.all)},inverse:{type:"inverse",title:a.clone(s.inverse)}},u=n.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){u.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;!0===e&&(e=t.selector=["all","inverse"]),a.isArray(e)&&a.each(e,(function(t,i){a.isString(t)&&(t={type:t}),e[i]=a.merge(t,l[t.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i=0},getOrient:function(){return"vertical"===this.get("orient")?{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}}}),c=u;t.exports=c},71298:function(t,e,i){i(96311).__DEV__;var n=i(3096),a=i(69008),r=i(22868).createSymbol,o=i(18993),s=i(98449).makeBackground,l=i(7357),u=a.curry,c=a.each,h=o.Group,d=n.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new h),this._backgroundEl,this.group.add(this._selectorGroup=new h),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var u=t.get("selector",!0),c=t.get("selectorPosition",!0);!u||c&&"auto"!==c||(c="horizontal"===o?"end":"start"),this.renderInner(r,t,e,i,u,o,c);var h=t.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},p=t.get("padding"),f=l.getLayoutRect(h,d,p),g=this.layoutInner(t,r,f,n,u,c),m=l.getLayoutRect(a.defaults({width:g.width,height:g.height},h),d,p);this.group.attr("position",[m.x-g.x,m.y-g.y]),this.group.add(this._backgroundEl=s(g,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,i,n,r,o,s){var l=this.getContentGroup(),d=a.createHashMap(),p=e.get("selectedMode"),v=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&v.push(t.id)})),c(e.getData(),(function(a,r){var o=a.get("name");if(this.newlineDisabled||""!==o&&"\n"!==o){var s=i.getSeriesByName(o)[0];if(!d.get(o))if(s){var c=s.getData(),y=c.getVisual("color"),x=c.getVisual("borderColor");"function"==typeof y&&(y=y(s.getDataParams(0))),"function"==typeof x&&(x=x(s.getDataParams(0)));var _=c.getVisual("legendSymbol")||"roundRect",b=c.getVisual("symbol");this._createItem(o,r,a,e,_,b,t,y,x,p).on("click",u(f,o,null,n,v)).on("mouseover",u(g,s.name,null,n,v)).on("mouseout",u(m,s.name,null,n,v)),d.set(o,!0)}else i.eachRawSeries((function(i){if(!d.get(o)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(o))return;var l=s.indexOfName(o),c=s.getItemVisual(l,"color"),h=s.getItemVisual(l,"borderColor");this._createItem(o,r,a,e,"roundRect",null,t,c,h,p).on("click",u(f,null,o,n,v)).on("mouseover",u(g,null,o,n,v)).on("mouseout",u(m,null,o,n,v)),d.set(o,!0)}}),this)}else l.add(new h({newline:!0}))}),this),r&&this._createSelector(r,e,n,o,s)},_createSelector:function(t,e,i,n,a){var r=this.getSelectorGroup();c(t,(function(t){!function(t){var n=t.type,a=new o.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});r.add(a);var s=e.getModel("selectorLabel"),l=e.getModel("emphasis.selectorLabel");o.setLabelStyle(a.style,a.hoverStyle={},s,l,{defaultText:t.title,isRectText:!1}),o.setHoverStyle(a)}(t)}))},_createItem:function(t,e,i,n,s,l,u,c,d,f){var g=n.get("itemWidth"),m=n.get("itemHeight"),v=n.get("inactiveColor"),y=n.get("inactiveBorderColor"),x=n.get("symbolKeepAspect"),_=n.getModel("itemStyle"),b=n.isSelected(t),w=new h,S=i.getModel("textStyle"),M=i.get("icon"),I=i.getModel("tooltip"),T=I.parentModel,A=r(s=M||s,0,0,g,m,b?c:v,null==x||x);if(w.add(p(A,s,_,d,y,b)),!M&&l&&(l!==s||"none"===l)){var C=.8*m;"none"===l&&(l="circle");var D=r(l,(g-C)/2,(m-C)/2,C,C,b?c:v,null==x||x);w.add(p(D,l,_,d,y,b))}var L="left"===u?g+5:-5,P=u,k=n.get("formatter"),O=t;"string"==typeof k&&k?O=k.replace("{name}",null!=t?t:""):"function"==typeof k&&(O=k(t)),w.add(new o.Text({style:o.setTextStyle({},S,{text:O,x:L,y:m/2,textFill:b?S.getTextColor():v,textAlign:P,textVerticalAlign:"middle"})}));var R=new o.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:I.get("show")?a.extend({content:t,formatter:T.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},I.option):null});return w.add(R),w.eachChild((function(t){t.silent=!0})),R.silent=!f,this.getContentGroup().add(w),o.setHoverStyle(w),w.__legendDataIndex=e,w},layoutInner:function(t,e,i,n,a,r){var o=this.getContentGroup(),s=this.getSelectorGroup();l.box(t.get("orient"),o,t.get("itemGap"),i.width,i.height);var u=o.getBoundingRect(),c=[-u.x,-u.y];if(a){l.box("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),d=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),f=t.getOrient().index,g=0===f?"width":"height",m=0===f?"height":"width",v=0===f?"y":"x";"end"===r?d[f]+=u[g]+p:c[f]+=h[g]+p,d[1-f]+=u[m]/2-h[m]/2,s.attr("position",d),o.attr("position",c);var y={x:0,y:0};return y[g]=u[g]+p+h[g],y[m]=Math.max(u[m],h[m]),y[v]=Math.min(0,h[v]+d[1-f]),y}return o.attr("position",c),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function p(t,e,i,n,a,r){var o;return"line"!==e&&e.indexOf("empty")<0?(o=i.getItemStyle(),t.style.stroke=n,r||(o.stroke=a)):o=i.getItemStyle(["borderWidth","borderColor"]),t.setStyle(o)}function f(t,e,i,n){m(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),g(t,e,i,n)}function g(t,e,i,n){var a=i.getZr().storage.getDisplayList()[0];a&&a.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function m(t,e,i,n){var a=i.getZr().storage.getDisplayList()[0];a&&a.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}t.exports=d},54601:function(t,e,i){var n=i(80194),a=i(7357),r=a.mergeLayoutParam,o=a.getLayoutParams,s=n.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},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(t,e,i,n){var a=o(t);s.superCall(this,"init",t,e,i,n),l(this,t,a)},mergeOption:function(t,e){s.superCall(this,"mergeOption",t,e),l(this,this.option,t)}});function l(t,e,i){var n=[1,1];n[t.getOrient().index]=0,r(e,i,{type:"box",ignoreSize:n})}var u=s;t.exports=u},3382:function(t,e,i){var n=i(69008),a=i(18993),r=i(7357),o=i(71298),s=a.Group,l=["width","height"],u=["x","y"],c=o.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,i,r,o,s,l){var u=this;c.superCall(this,"renderInner",t,e,i,r,o,s,l);var h=this._controllerGroup,d=e.get("pageIconSize",!0);n.isArray(d)||(d=[d,d]),f("pagePrev",0);var p=e.getModel("pageTextStyle");function f(t,i){var o=t+"DataIndex",s=a.createIcon(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:n.bind(u._pageGo,u,o,e,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=t,h.add(s)}h.add(new a.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),f("pageNext",1)},layoutInner:function(t,e,i,a,o,s){var c=this.getSelectorGroup(),h=t.getOrient().index,d=l[h],p=u[h],f=l[1-h],g=u[1-h];o&&r.box("horizontal",c,t.get("selectorItemGap",!0));var m=t.get("selectorButtonGap",!0),v=c.getBoundingRect(),y=[-v.x,-v.y],x=n.clone(i);o&&(x[d]=i[d]-v[d]-m);var _=this._layoutContentAndController(t,a,x,h,d,f,g);if(o){if("end"===s)y[h]+=_[d]+m;else{var b=v[d]+m;y[h]-=b,_[p]-=b}_[d]+=v[d]+m,y[1-h]+=_[g]+_[f]/2-v[f]/2,_[f]=Math.max(_[f],v[f]),_[g]=Math.min(_[g],v[g]+y[1-h]),c.attr("position",y)}return _},_layoutContentAndController:function(t,e,i,o,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;r.box(t.get("orient"),c,t.get("itemGap"),o?i.width:null,o?null:i.height),r.box("horizontal",d,t.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[s]>i[s],m=[-p.x,-p.y];e||(m[o]=c.position[o]);var v=[0,0],y=[-f.x,-f.y],x=n.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));g&&("end"===t.get("pageButtonPosition",!0)?y[o]+=i[s]-f[s]:v[o]+=f[s]+x);y[1-o]+=p[l]/2-f[l]/2,c.attr("position",m),h.attr("position",v),d.attr("position",y);var _={x:0,y:0};if(_[s]=g?i[s]:p[s],_[l]=Math.max(p[l],f[l]),_[u]=Math.min(0,f[u]+y[1-o]),h.__rectSize=i[s],g){var b={x:0,y:0};b[s]=Math.max(i[s]-f[s]-x,0),b[l]=_[l],h.setClipPath(new a.Rect({shape:b})),h.__rectSize=b[s]}else d.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&a.updateProps(c,{position:w.contentPosition},!!g&&t),this._updatePageInfoView(t,w),_},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;n.each(["pagePrev","pageNext"],(function(n){var a=null!=e[n+"DataIndex"],r=i.childOfName(n);r&&(r.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")}));var a=i.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,s=null!=o?o+1:0,l=e.pageCount;a&&r&&a.setStyle("text",n.isString(r)?r.replace("{current}",s).replace("{total}",l):r({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,a=t.getOrient().index,r=l[a],o=u[a],s=this._findTargetItemIndex(e),c=i.children(),h=c[s],d=c.length,p=d?1:0,f={contentPosition:i.position.slice(),pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return f;var g=_(h);f.contentPosition[a]=-g.s;for(var m=s+1,v=g,y=g,x=null;m<=d;++m)(!(x=_(c[m]))&&y.e>v.s+n||x&&!b(x,v.s))&&(v=y.i>v.i?y:x)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=v.i),++f.pageCount),y=x;for(m=s-1,v=g,y=g,x=null;m>=-1;--m)(x=_(c[m]))&&b(y,x.s)||!(v.i=e&&t.s<=e+n}},_findTargetItemIndex:function(t){return this._showController?(this.getContentGroup().eachChild((function(n,a){var r=n.__legendDataIndex;null==i&&null!=r&&(i=a),r===t&&(e=a)})),null!=e?e:i):0;var e,i}}),h=c;t.exports=h},73120:function(t,e,i){var n=i(3096),a=i(69008);function r(t,e,i){var n,r={},o="toggleSelected"===t;return i.eachComponent("legend",(function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name));var s=i.getData();a.each(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&n:r[e]=n}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}n.registerAction("legendToggleSelect","legendselectchanged",a.curry(r,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",a.curry(r,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",a.curry(r,"inverseSelect")),n.registerAction("legendSelect","legendselected",a.curry(r,"select")),n.registerAction("legendUnSelect","legendunselected",a.curry(r,"unSelect"))},19214:function(t){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;i=0&&"number"==typeof c&&(c=+c.toFixed(Math.min(v,20))),g.coord[p]=m.coord[p]=c,a=[g,m,{type:s,valueIndex:a.valueIndex,value:c}]}return(a=[o.dataTransform(t,a[0]),o.dataTransform(t,a[1]),n.extend({},a[2])])[2].type=a[2].type||"",n.merge(a[2],a[0]),n.merge(a[2],a[1]),a};function h(t){return!isNaN(t)&&!isFinite(t)}function d(t,e,i,n){var a=1-t,r=n.dimensions[t];return h(e[a])&&h(i[a])&&e[t]===i[t]&&n.getAxis(r).containData(e[t])}function p(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(d(1,i,n,t)||d(0,i,n,t)))return!0}return o.dataFilter(t,e[0])&&o.dataFilter(t,e[1])}function f(t,e,i,n,a){var o,s=n.coordinateSystem,l=t.getItemModel(e),u=r.parsePercent(l.get("x"),a.getWidth()),c=r.parsePercent(l.get("y"),a.getHeight());if(isNaN(u)||isNaN(c)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,p=t.get(d[0],e),f=t.get(d[1],e);o=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");d=s.dimensions;h(t.get(d[0],e))?o[0]=g.toGlobalCoord(g.getExtent()[i?0:1]):h(t.get(d[1],e))&&(o[1]=m.toGlobalCoord(m.getExtent()[i?0:1]))}isNaN(u)||(o[0]=u),isNaN(c)||(o[1]=c)}else o=[u,c];t.setItemLayout(e,o)}var g=l.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markLineModel;if(e){var n=e.getData(),a=e.__from,r=e.__to;a.each((function(e){f(a,e,!0,t,i),f(r,e,!1,t,i)})),n.each((function(t){n.setItemLayout(t,[a.getItemLayout(t),r.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,i,r){var l=t.coordinateSystem,u=t.id,h=t.getData(),d=this.markerGroupMap,g=d.get(u)||d.set(u,new s);this.group.add(g.group);var m=function(t,e,i){var r;r=t?n.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return n.defaults({name:t},i)})):[{name:"value",type:"float"}];var s=new a(r,i),l=new a(r,i),u=new a([],i),h=n.map(i.get("data"),n.curry(c,e,t,i));t&&(h=n.filter(h,n.curry(p,t)));var d=t?o.dimValueGetter:function(t){return t.value};return s.initData(n.map(h,(function(t){return t[0]})),null,d),l.initData(n.map(h,(function(t){return t[1]})),null,d),u.initData(n.map(h,(function(t){return t[2]}))),u.hasItemOption=!0,{from:s,to:l,line:u}}(l,t,e),v=m.from,y=m.to,x=m.line;e.__from=v,e.__to=y,e.setData(x);var _=e.get("symbol"),b=e.get("symbolSize");function w(e,i,n){var a=e.getItemModel(i);f(e,i,n,t,r),e.setItemVisual(i,{symbolSize:a.get("symbolSize")||b[n?0:1],symbol:a.get("symbol",!0)||_[n?0:1],color:a.get("itemStyle.color")||h.getVisual("color")})}n.isArray(_)||(_=[_,_]),"number"==typeof b&&(b=[b,b]),m.from.each((function(t){w(v,t,!0),w(y,t,!1)})),x.each((function(t){var e=x.getItemModel(t).get("lineStyle.color");x.setItemVisual(t,{color:e||v.getItemVisual(t,"color")}),x.setItemLayout(t,[v.getItemLayout(t),y.getItemLayout(t)]),x.setItemVisual(t,{fromSymbolSize:v.getItemVisual(t,"symbolSize"),fromSymbol:v.getItemVisual(t,"symbol"),toSymbolSize:y.getItemVisual(t,"symbolSize"),toSymbol:y.getItemVisual(t,"symbol")})})),g.updateData(x),m.line.eachItemGraphicEl((function(t,i){t.traverse((function(t){t.dataModel=e}))})),g.__keep=!0,g.group.silent=e.get("silent")||t.get("silent")}});t.exports=g},81102:function(t,e,i){var n=i(23826).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}}}});t.exports=n},14297:function(t,e,i){var n=i(69008),a=i(38346),r=i(86957),o=i(39177),s=i(77783);function l(t,e,i){var n=e.coordinateSystem;t.each((function(a){var o,s=t.getItemModel(a),l=r.parsePercent(s.get("x"),i.getWidth()),u=r.parsePercent(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(n){var c=t.get(n.dimensions[0],a),h=t.get(n.dimensions[1],a);o=n.dataToPoint([c,h])}}else o=[l,u];isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u),t.setItemLayout(a,o)}))}var u=i(24513).extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markPointModel;e&&(l(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,i,r){var u=t.coordinateSystem,c=t.id,h=t.getData(),d=this.markerGroupMap,p=d.get(c)||d.set(c,new a),f=function(t,e,i){var a;a=t?n.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return n.defaults({name:t},i)})):[{name:"value",type:"float"}];var r=new o(a,i),l=n.map(i.get("data"),n.curry(s.dataTransform,e));t&&(l=n.filter(l,n.curry(s.dataFilter,t)));return r.initData(l,null,t?s.dimValueGetter:function(t){return t.value}),r}(u,t,e);e.setData(f),l(e.getData(),t,r),f.each((function(t){var i=f.getItemModel(t),a=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=n.isFunction(a),s=n.isFunction(r);if(o||s){var l=e.getRawValue(t),u=e.getDataParams(t);o&&(a=a(l,u)),s&&(r=r(l,u))}f.setItemVisual(t,{symbol:a,symbolSize:r,color:i.get("itemStyle.color")||h.getVisual("color")})})),p.updateData(f),this.group.add(p.group),f.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),p.__keep=!0,p.group.silent=e.get("silent")||t.get("silent")}});t.exports=u},23826:function(t,e,i){i(96311).__DEV__;var n=i(3096),a=i(69008),r=i(12973),o=i(90830),s=i(17010),l=i(64530),u=s.addCommas,c=s.encodeHTML;function h(t){o.defaultEmphasis(t,"label",["show"])}var d=n.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},isAnimationEnabled:function(){if(r.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,e,i,n){var r=this.constructor,o=this.mainType+"Model";i||e.eachSeries((function(t){var i=t.get(this.mainType,!0),s=t[o];i&&i.data?(s?s._mergeOption(i,e,!0):(n&&h(i),a.each(i.data,(function(t){t instanceof Array?(h(t[0]),h(t[1])):h(t)})),s=new r(i,this,e),a.extend(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[o]=s):t[o]=null}),this)},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=a.isArray(i)?a.map(i,u).join(", "):u(i),r=e.getName(t),o=c(this.name);return(null!=i||r)&&(o+="
"),r&&(o+=c(r),null!=i&&(o+=" : ")),null!=i&&(o+=c(n)),o},getData:function(){return this._data},setData:function(t){this._data=t}});a.mixin(d,l);var p=d;t.exports=p},24513:function(t,e,i){var n=i(3096),a=i(69008),r=n.extendComponentView({type:"marker",init:function(){this.markerGroupMap=a.createHashMap()},render:function(t,e,i){var n=this.markerGroupMap;n.each((function(t){t.__keep=!1}));var a=this.type+"Model";e.eachSeries((function(t){var n=t[a];n&&this.renderSeries(t,n,e,i)}),this),n.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}});t.exports=r},77783:function(t,e,i){var n=i(69008),a=i(86957),r=i(22240).isDimensionStacked,o=n.indexOf;function s(t,e,i,n,o,s){var l=[],u=r(e,n)?e.getCalculationInfo("stackResultDimension"):n,c=h(e,u,t),d=e.indicesOfNearest(u,c)[0];l[o]=e.get(i,d),l[s]=e.get(u,d);var p=e.get(n,d),f=a.getPrecision(e.get(n,d));return(f=Math.min(f,20))>=0&&(l[s]=+l[s].toFixed(f)),[l,p]}var l=n.curry,u={min:l(s,"min"),max:l(s,"max"),average:l(s,"average")};function c(t,e,i,n){var a={};return null!=t.valueIndex||null!=t.valueDim?(a.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=i.getAxis(function(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var a=0;a5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&l(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};function l(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}n.registerPreprocessor(o)},30008:function(t,e,i){i(3881),i(91872),i(69385)},12335:function(t,e,i){var n=i(3096),a=i(69008),r=i(27116);i(49900),i(2546),i(74309),i(84159),i(32641),n.registerLayout(a.curry(r,"bar")),n.extendComponentView({type:"polar"})},99154:function(t,e,i){i(37292),i(924),i(61747)},61747:function(t,e,i){i(96311).__DEV__;var n=i(3096),a=i(69008),r=i(93570),o=i(18993),s=["axisLine","axisTickLabel","axisName"],l=n.extendComponentView({type:"radar",render:function(t,e,i){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=a.map(i,(function(t){return new r(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));a.each(n,(function(t){a.each(s,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes();if(i.length){var n=t.get("shape"),r=t.getModel("splitLine"),s=t.getModel("splitArea"),l=r.getModel("lineStyle"),u=s.getModel("areaStyle"),c=r.get("show"),h=s.get("show"),d=l.get("color"),p=u.get("color");d=a.isArray(d)?d:[d],p=a.isArray(p)?p:[p];var f=[],g=[];if("circle"===n)for(var m=i[0].getTicksCoords(),v=e.cx,y=e.cy,x=0;x=0||"+"===i?"left":"right"},h={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:m/2},p="vertical"===n?a.height:a.width,f=t.getModel("controlStyle"),g=f.get("show",!0),v=g?f.get("itemSize"):0,y=g?f.get("itemGap"):0,x=v+y,_=t.get("label.rotate")||0;_=_*m/180;var b=f.get("position",!0),w=g&&f.get("showPlayBtn",!0),S=g&&f.get("showPrevBtn",!0),M=g&&f.get("showNextBtn",!0),I=0,T=p;return"left"===b||"bottom"===b?(w&&(r=[0,0],I+=x),S&&(o=[I,0],I+=x),M&&(l=[T-v,0],T-=x)):(w&&(r=[T-v,0],T-=x),S&&(o=[0,0],I+=x),M&&(l=[T-v,0],T-=x)),u=[I,T],t.get("inverse")&&u.reverse(),{viewRect:a,mainLength:p,orient:n,rotation:d[n],labelRotation:_,labelPosOpt:i,labelAlign:t.get("label.align")||c[n],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||h[n],playPosition:r,prevBtnPosition:o,nextBtnPosition:l,axisExtent:u,controlSize:v,controlGap:y}},_position:function(t,e){var i=this._mainGroup,n=this._labelGroup,a=t.viewRect;if("vertical"===t.orient){var o=r.create(),s=a.x,l=a.y+a.height;r.translate(o,o,[-s,-l]),r.rotate(o,o,-m/2),r.translate(o,o,[s,l]),(a=a.clone()).applyTransform(o)}var u=y(a),c=y(i.getBoundingRect()),h=y(n.getBoundingRect()),d=i.position,p=n.position;p[0]=d[0]=u[0][0];var f,g=t.labelPosOpt;isNaN(g)?(x(d,c,u,1,f="+"===g?0:1),x(p,h,u,1,1-f)):(x(d,c,u,1,f=g>=0?0:1),p[1]=d[1]+g);function v(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,i,n,a){t[n]+=i[n][a]-e[n][a]}i.attr("position",d),n.attr("position",p),i.rotation=n.rotation=t.rotation,v(i),v(n)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),a=h.createScaleByModel(e,n);a.getTicks=function(){return i.mapArray(["value"],(function(t){return t}))};var r=i.getDataExtent("value");a.setExtent(r[0],r[1]),a.niceTicks();var o=new u("value",a,t.axisExtent,n);return o.model=e,o},_createGroup:function(t){var e=this["_"+t]=new o.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,a){var r=i.getExtent();a.get("lineStyle.show")&&e.add(new o.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:n.extend({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var a=n.getData(),r=i.scale.getTicks();g(r,(function(t){var r=i.dataToCoord(t),s=a.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),c={position:[r,0],onclick:f(this._changeTimeline,this,t)},h=y(s,l,e,c);o.setHoverStyle(h,u.getItemStyle()),s.get("tooltip")?(h.dataIndex=t,h.dataModel=n):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(t,e,i,n){if(i.getLabelModel().get("show")){var a=n.getData(),r=i.getViewLabels();g(r,(function(n){var r=n.tickValue,s=a.getItemModel(r),l=s.getModel("label"),u=s.getModel("emphasis.label"),c=i.dataToCoord(n.tickValue),h=new o.Text({position:[c,0],rotation:t.labelRotation-t.rotation,onclick:f(this._changeTimeline,this,r),silent:!1});o.setTextStyle(h.style,l,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),o.setHoverStyle(h,o.setTextStyle({},u))}),this)}},_renderControl:function(t,e,i,r){var s=t.controlSize,l=t.rotation,u=r.getModel("controlStyle").getItemStyle(),c=r.getModel("emphasis.controlStyle").getItemStyle(),h=[0,-s/2,s,s],d=r.getPlayState(),p=r.get("inverse",!0);function g(t,i,d,p){if(t){var f=function(t,e,i,r){var s=o.makePath(t.get(e).replace(/^path:\/\//,""),n.clone(r||{}),new a(i[0],i[1],i[2],i[3]),"center");return s}(r,i,h,{position:t,origin:[s/2,0],rotation:p?-l:0,rectHover:!0,style:u,onclick:d});e.add(f),o.setHoverStyle(f,c)}}g(t.nextBtnPosition,"controlStyle.nextIcon",f(this._changeTimeline,this,p?"-":"+")),g(t.prevBtnPosition,"controlStyle.prevIcon",f(this._changeTimeline,this,p?"+":"-")),g(t.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),f(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(t,e,i,n){var a=n.getData(),r=n.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=f(s._handlePointerDrag,s),t.ondragend=f(s._handlePointerDragend,s),x(t,r,i,n,!0)},onUpdate:function(t){x(t,r,i,n)}};this._currentPointer=y(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,a=d.asc(n.getExtent().slice());i>a[1]&&(i=a[1]),i=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,a=this._names=[];if("category"===i){var s=[];n.each(e,(function(t,e){var i,r=o.getDataItemValue(t);n.isObject(t)?(i=n.clone(t)).value=e:i=e,s.push(i),n.isString(r)||null!=r&&!isNaN(r)||(r=""),a.push(r+"")})),e=s}var l={category:"ordinal",time:"time"}[i]||"number";(this._data=new r([{name:"value",type:l}],this)).initData(e,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;t.exports=l},22472:function(t,e,i){var n=i(36851).extend({type:"timeline"});t.exports=n},39089:function(t,e,i){var n=i(69008);function a(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),a=t.label||t.label||{},o=a.normal||(a.normal={}),s={normal:1,emphasis:1};n.each(a,(function(t,e){s[e]||r(o,e)||(o[e]=t)})),i.label&&!r(a,"emphasis")&&(a.emphasis=i.label,delete i.label)}function r(t,e){return t.hasOwnProperty(e)}t.exports=function(t){var e=t&&t.timeline;n.isArray(e)||(e=e?[e]:[]),n.each(e,(function(t){t&&function(t){var e=t.type,i={number:"value",time:"time"};i[e]&&(t.axisType=i[e],delete t.type);if(a(t),r(t,"controlPosition")){var o=t.controlStyle||(t.controlStyle={});r(o,"position")||(o.position=t.controlPosition),"none"!==o.position||r(o,"show")||(o.show=!1,delete o.position),delete t.controlPosition}n.each(t.data||[],(function(t){n.isObject(t)&&!n.isArray(t)&&(!r(t,"value")&&r(t,"name")&&(t.value=t.name),a(t))}))}(t)}))}},42456:function(t,e,i){var n=i(3096),a=i(69008);n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),a.defaults({currentIndex:i.option.currentIndex},t)})),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)}))},63737:function(t,e,i){i(16172).registerSubTypeDefaulter("timeline",(function(){return"slider"}))},49668:function(t,e,i){var n=i(69008),a=i(3096),r=i(18993),o=i(7357).getLayoutRect,s=i(17010).windowOpen;a.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"}}}),a.extendComponentView({type:"title",render:function(t,e,i){if(this.group.removeAll(),t.get("show")){var a=this.group,l=t.getModel("textStyle"),u=t.getModel("subtextStyle"),c=t.get("textAlign"),h=n.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),d=new r.Text({style:r.setTextStyle({},l,{text:t.get("text"),textFill:l.getTextColor()},{disableBox:!0}),z2:10}),p=d.getBoundingRect(),f=t.get("subtext"),g=new r.Text({style:r.setTextStyle({},u,{text:f,textFill:u.getTextColor(),y:p.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),m=t.get("link"),v=t.get("sublink"),y=t.get("triggerEvent",!0);d.silent=!m&&!y,g.silent=!v&&!y,m&&d.on("click",(function(){s(m,"_"+t.get("target"))})),v&&g.on("click",(function(){s(m,"_"+t.get("subtarget"))})),d.eventData=g.eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(d),f&&a.add(g);var x=a.getBoundingRect(),_=t.getBoxLayoutParams();_.width=x.width,_.height=x.height;var b=o(_,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));c||("middle"===(c=t.get("left")||t.get("right"))&&(c="center"),"right"===c?b.x+=b.width:"center"===c&&(b.x+=b.width/2)),h||("center"===(h=t.get("top")||t.get("bottom"))&&(h="middle"),"bottom"===h?b.y+=b.height:"middle"===h&&(b.y+=b.height/2),h=h||"top"),a.attr("position",[b.x,b.y]);var w={textAlign:c,textVerticalAlign:h};d.setStyle(w),g.setStyle(w),x=a.getBoundingRect();var S=b.margin,M=t.getItemStyle(["color","opacity"]);M.fill=t.get("backgroundColor");var I=new r.Rect({shape:{x:x.x-S[3],y:x.y-S[0],width:x.width+S[1]+S[3],height:x.height+S[0]+S[2],r:t.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});a.add(I)}}})},98018:function(t,e,i){i(3212),i(69380),i(92957),i(41122),i(62232),i(89457),i(94638)},3212:function(t,e,i){var n=i(3096),a=i(69008),r=i(34031),o=n.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){o.superApply(this,"optionUpdated",arguments),a.each(this.option.feature,(function(t,e){var i=r.get(e);i&&a.merge(t,i.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}}}),s=o;t.exports=s},69380:function(t,e,i){var n=i(3096),a=i(69008),r=i(63603),o=i(34031),s=i(18993),l=i(24040),u=i(90515),c=i(98449),h=n.extendComponentView({type:"toolbox",render:function(t,e,i,n){var h=this.group;if(h.removeAll(),t.get("show")){var d=+t.get("itemSize"),p=t.get("feature")||{},f=this._features||(this._features={}),g=[];a.each(p,(function(t,e){g.push(e)})),new u(this._featureNames||[],g).add(m).update(m).remove(a.curry(m,null)).execute(),this._featureNames=g,c.layout(h,t,i),h.add(c.makeBackground(h.getBoundingRect(),t)),h.eachChild((function(t){var e=t.__title,n=t.hoverStyle;if(n&&e){var a=r.getBoundingRect(e,r.makeFont(n)),o=t.position[0]+h.position[0],s=!1;t.position[1]+h.position[1]+d+a.height>i.getHeight()&&(n.textPosition="top",s=!0);var l=s?-5-a.height:d+8;o+a.width/2>i.getWidth()?(n.textPosition=["100%",l],n.textAlign="right"):o-a.width/2<0&&(n.textPosition=[0,l],n.textAlign="left")}}))}function m(r,u){var c,m=g[r],v=g[u],y=p[m],x=new l(y,t,t.ecModel);if(n&&null!=n.newTitle&&n.featureName===m&&(y.title=n.newTitle),m&&!v){if(function(t){return 0===t.indexOf("my")}(m))c={model:x,onclick:x.option.onclick,featureName:m};else{var _=o.get(m);if(!_)return;c=new _(x,e,i)}f[m]=c}else{if(!(c=f[v]))return;c.model=x,c.ecModel=e,c.api=i}m||!v?x.get("show")&&!c.unusable?(!function(n,r,o){var l=n.getModel("iconStyle"),u=n.getModel("emphasis.iconStyle"),c=r.getIcons?r.getIcons():n.get("icon"),p=n.get("title")||{};if("string"==typeof c){var f=c,g=p;p={},(c={})[o]=f,p[o]=g}var m=n.iconPaths={};a.each(c,(function(o,c){var f=s.createIcon(o,{},{x:-d/2,y:-d/2,width:d,height:d});f.setStyle(l.getItemStyle()),f.hoverStyle=u.getItemStyle(),f.setStyle({text:p[c],textAlign:u.get("textAlign"),textBorderRadius:u.get("textBorderRadius"),textPadding:u.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&f.attr("tooltip",a.extend({content:p[c],formatter:g.get("formatter",!0)||function(){return p[c]},formatterParams:{componentType:"toolbox",name:c,title:p[c],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),s.setHoverStyle(f),t.get("showTitle")&&(f.__title=p[c],f.on("mouseover",(function(){var e=u.getItemStyle(),i="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:u.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:u.get("textBackgroundColor"),textPosition:u.get("textPosition")||i})})).on("mouseout",(function(){f.setStyle({textFill:null,textBackgroundColor:null})}))),f.trigger(n.get("iconStatus."+c)||"normal"),h.add(f),f.on("click",a.bind(r.onclick,r,e,i,c)),m[c]=f}))}(x,c,m),x.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},c.render&&c.render(x,e,i,n)):c.remove&&c.remove(e,i):c.dispose&&c.dispose(e,i)}},updateView:function(t,e,i,n){a.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,i,n)}))},remove:function(t,e){a.each(this._features,(function(i){i.remove&&i.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){a.each(this._features,(function(i){i.dispose&&i.dispose(t,e)}))}});t.exports=h},85738:function(t,e,i){var n=i(69008),a=i(34031),r=i(73315).toolbox.brush;function o(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}o.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:n.clone(r.title)};var s=o.prototype;s.render=s.updateView=function(t,e,i){var a,r,o;e.eachComponent({mainType:"brush"},(function(t){a=t.brushType,r=t.brushOption.brushMode||"single",o|=t.areas.length})),this._brushType=a,this._brushMode=r,n.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===a)?"emphasis":"normal")}))},s.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return n.each(t.get("type",!0),(function(t){e[t]&&(i[t]=e[t])})),i},s.onclick=function(t,e,i){var n=this._brushType,a=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===a?"single":"multiple":a}})},a.register("brush",o);var l=o;t.exports=l},62232:function(t,e,i){var n=i(3096),a=i(69008),r=i(92462),o=i(73315),s=i(34031),l=o.toolbox.dataView,u=new Array(60).join("-"),c="\t";function h(t){return a.map(t,(function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,a=arguments[t-1],r=e.getName(a),o=0;o=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),i=d(e.shift()).split(p),n=[],r=a.map(i,(function(t){return{name:t,data:[]}})),o=0;o1?"emphasis":"normal")}(t,e)},f.onclick=function(t,e,i){g[i].call(this)},f.remove=function(t,e){this._brushController.unmount()},f.dispose=function(t,e){this._brushController.dispose()};var g={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function m(t){var e={};return a.each(["xAxisIndex","yAxisIndex"],(function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(!1===e[i]||"none"===e[i])&&(e[i]=[])})),e}f._onBrush=function(t,e){if(e.isEnd&&t.length){var i={},n=this.ecModel;this._brushController.updateCovers([]),new o(m(this.model.option),n,{include:["grid"]}).matchOutputRanges(t,n,(function(t,e,i){if("cartesian2d"===i.type){var n=t.brushType;"rect"===n?(a("x",i,e[0]),a("y",i,e[1])):a({lineX:"x",lineY:"y"}[n],i,e)}})),s.push(n,i),this._dispatchZoomAction(i)}function a(t,e,a){var r=e.getAxis(t),o=r.model,s=function(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){i.getAxisModel(t,e.componentIndex)&&(n=i)})),n}(t,o,n),u=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(a=l(0,a.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(i[s.id]={dataZoomId:s.id,startValue:a[0],endValue:a[1]})}},f._dispatchZoomAction=function(t){var e=[];d(t,(function(t,i){e.push(a.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},c.register("dataZoom",p),n.registerPreprocessor((function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);a.isArray(e)||(t.dataZoom=e=[e]);var i=t.toolbox;if(i&&(a.isArray(i)&&(i=i[0]),i&&i.feature)){var n=i.feature.dataZoom;r("xAxis",n),r("yAxis",n)}}function r(i,n){if(n){var r=i+"Index",o=n[r];null==o||"all"===o||a.isArray(o)||(o=!1===o||"none"===o?[]:[o]),function(e,i){var n=t[e];a.isArray(n)||(n=n?[n]:[]);d(n,i)}(i,(function(t,s){if(null==o||"all"===o||-1!==a.indexOf(o,s)){var l={type:"select",$fromToolbox:!0,filterMode:n.filterMode||"filter",id:"\0_ec_\0toolbox-dataZoom_"+i+s};l[r]=s,e.push(l)}}))}}}));var v=p;t.exports=v},41122:function(t,e,i){var n=i(3096),a=i(69008),r=i(73315),o=i(34031),s=r.toolbox.magicType,l="__ec_magicType_stack__";function u(t){this.model=t}u.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:a.clone(s.title),option:{},seriesIndex:{}};var c=u.prototype;c.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return a.each(t.get("type"),(function(t){e[t]&&(i[t]=e[t])})),i};var h={line:function(t,e,i,n){if("bar"===t)return a.merge({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(t,e,i,n){if("line"===t)return a.merge({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(t,e,i,n){var r=i.get("stack")===l;if("line"===t||"bar"===t)return n.setIconStatus("stack",r?"normal":"emphasis"),a.merge({id:e,stack:r?"":l},n.get("option.stack")||{},!0)}},d=[["line","bar"],["stack"]];c.onclick=function(t,e,i){var n=this.model,r=n.get("seriesIndex."+i);if(h[i]){var o,u={series:[]};if(a.each(d,(function(t){a.indexOf(t,i)>=0&&a.each(t,(function(t){n.setIconStatus(t,"normal")}))})),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(e){var r=e.subType,o=e.id,s=h[i](r,o,e,n);s&&(a.defaults(s,e.option),u.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var c=l.getAxesByScale("ordinal")[0];if(c){var d=c.dim+"Axis",p=t.queryComponents({mainType:d,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;u[d]=u[d]||[];for(var f=0;f<=p;f++)u[d][p]=u[d][p]||{};u[d][p].boundaryGap="bar"===i}}})),"stack"===i)o=u.series&&u.series[0]&&u.series[0].stack===l?a.merge({stack:s.title.tiled},s.title):a.clone(s.title);e.dispatchAction({type:"changeMagicType",currentType:i,newOption:u,newTitle:o,featureName:"magicType"})}},n.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),o.register("magicType",u);var p=u;t.exports=p},94638:function(t,e,i){var n=i(3096),a=i(8338),r=i(73315),o=i(34031),s=r.toolbox.restore;function l(t){this.model=t}l.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:s.title},l.prototype.onclick=function(t,e,i){a.clear(t),e.dispatchAction({type:"restore",from:this.uid})},o.register("restore",l),n.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var u=l;t.exports=u},92957:function(t,e,i){var n=i(12973),a=i(73315),r=i(34031),o=a.toolbox.saveAsImage;function s(t){this.model=t}s.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:o.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:o.lang.slice()},s.prototype.unusable=!n.canvasSupported,s.prototype.onclick=function(t,e){var i=this.model,a=i.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType()?"svg":i.get("type",!0)||"png",o=e.getConnectedDataURL({type:r,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!=typeof MouseEvent||n.browser.ie||n.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(o.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var c=new Blob([u]);window.navigator.msSaveOrOpenBlob(c,a+"."+r)}else{var h=i.get("lang"),d='';window.open().document.write(d)}else{var p=document.createElement("a");p.download=a+"."+r,p.target="_blank",p.href=o;var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});p.dispatchEvent(f)}},r.register("saveAsImage",s);var l=s;t.exports=l},34031:function(t,e){var i={};e.register=function(t,e){i[t]=e},e.get=function(t){return i[t]}},81584:function(t,e,i){var n=i(3096);i(84159),i(34513),i(75250),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},98306:function(t,e,i){var n=i(69008),a=i(83720),r=i(92462),o=i(12513),s=i(12973),l=i(17010),u=n.each,c=l.toCamelCase,h=["","-webkit-","-moz-","-o-"];function d(t){var e,i,r,o=[],d=t.get("transitionDuration"),p=t.get("backgroundColor"),f=t.getModel("textStyle"),g=t.get("padding");return d&&o.push((r="left "+(e=d)+"s "+(i="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+e+"s "+i,n.map(h,(function(t){return t+"transition:"+r})).join(";"))),p&&(s.canvasSupported?o.push("background-Color:"+p):(o.push("background-Color:#"+a.toHex(p)),o.push("filter:alpha(opacity=70)"))),u(["width","color","radius"],(function(e){var i="border-"+e,n=c(i),a=t.get(n);null!=a&&o.push(i+":"+a+("color"===e?"":"px"))})),o.push(function(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),u(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}(f)),null!=g&&o.push("padding:"+l.normalizeCssArray(g).join("px ")+"px"),o.join(";")+";"}function p(t,e,i,n,a){var r=e&&e.painter;if(i){var s=r&&r.getViewportRoot();s&&o.transformLocalCoord(t,s,document.body,n,a)}else{t[0]=n,t[1]=a;var l=r&&r.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}}function f(t,e,i){if(s.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0],p(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var l=this;n.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=a.handler,i=a.painter.getViewportRoot();r.normalizeEvent(i,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}f.prototype={constructor:f,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,i=this._styleCoord;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+d(t)+";left:"+i[0]+"px;top:"+i[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i=this._styleCoord;p(i,this._zr,this._appendToBody,t,e);var n=this.el.style;n.left=i[0]+"px",n.top=i[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(t+=parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),e+=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:t,height:e}}};var g=f;t.exports=g},34513:function(t,e,i){var n=i(3096).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}}});t.exports=n},28817:function(t,e,i){var n=i(69008),a=i(99999);function r(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}r.prototype={constructor:r,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,i){this.el&&this._zr.remove(this.el);for(var n={},r=t,o="{marker",s=r.indexOf(o);s>=0;){var l=r.indexOf("|}"),u=r.substr(s+o.length,l-s-o.length);u.indexOf("sub")>-1?n["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[u],textOffset:[3,0]}:n["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[u]},s=(r=r.substr(l+1)).indexOf("{marker")}this.el=new a({style:{rich:n,text:t,textLineHeight:20,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding")},z:i.get("z")}),this._zr.add(this.el);var c=this;this.el.on("mouseover",(function(){c._enterable&&(clearTimeout(c._hideTimeout),c._show=!0),c._inContent=!0})),this.el.on("mouseout",(function(){c._enterable&&c._show&&c.hideLater(c._hideDelay),c._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var o=r;t.exports=o},75250:function(t,e,i){var n=i(3096),a=i(69008),r=i(12973),o=i(98306),s=i(28817),l=i(17010),u=i(86957),c=i(18993),h=i(65881),d=i(7357),p=i(24040),f=i(46243),g=i(44815),m=i(23263),v=i(90830).getTooltipRenderMode,y=a.bind,x=a.each,_=u.parsePercent,b=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),w=n.extendComponentView({type:"tooltip",init:function(t,e){if(!r.node){var i,n=t.getComponent("tooltip"),a=n.get("renderMode");this._renderMode=v(a),"html"===this._renderMode?(i=new o(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)}),this._newLine="
"):(i=new s(e),this._newLine="\n"),this._tooltipContent=i}},render:function(t,e,i){if(!r.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");f.register("itemTooltip",this._api,y((function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!r.node){var a=M(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var s=b;s.position=[n.x,n.y],s.update(),s.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:s},a)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},a);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var l=h(n,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:n.position,target:l.el},a)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},a))}},manuallyHideTip:function(t,e,i,n){var a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(M(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var a=n.seriesIndex,r=n.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=r&&null!=o){var s=e.getSeriesByIndex(a);if(s)if("axis"===(t=S([s.getData().getItemModel(r),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:r,position:n.position}),!0}},_tryShow:function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=a.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=[],s=[],u=S([e.tooltipOption,n]),c=this._renderMode,h=this._newLine,d={};x(t,(function(t){x(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,r=[];if(e&&null!=n){var u=m.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);a.each(t.seriesDataIndices,(function(o){var l=i.getSeriesByIndex(o.seriesIndex),h=o.dataIndexInside,p=l&&l.getDataParams(h);if(p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=g.getAxisRawValue(e.axis,n),p.axisValueLabel=u,p){s.push(p);var f,m=l.formatTooltip(h,!0,null,c);if(a.isObject(m)){f=m.html;var v=m.markers;a.merge(d,v)}else f=m;r.push(f)}}));var p=u;"html"!==c?o.push(r.join(h)):o.push((p?l.encodeHTML(p)+h:"")+r.join(h))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var p=e.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(u,o,s,Math.random(),r[0],r[1],p,void 0,d)}))},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,r=e.seriesIndex,o=n.getSeriesByIndex(r),s=e.dataModel||o,l=e.dataIndex,u=e.dataType,c=s.getData(u),h=S([c.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var p,f,g=s.getDataParams(l,u),m=s.formatTooltip(l,!1,u,this._renderMode);a.isObject(m)?(p=m.html,f=m.markers):(p=m,f=null);var v="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,p,g,v,t.offsetX,t.offsetY,t.position,t.target,f)})),i({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){n={content:n,formatter:n}}var a=new p(n,this._tooltipModel,this._ecModel),r=a.get("content"),o=Math.random();this._showOrMove(a,(function(){this._showTooltipContent(a,r,a.get("formatterParams")||{},o,t.offsetX,t.offsetY,t.position,e)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,a,r,o,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent,h=t.get("formatter");o=o||t.get("position");var d=e;if(h&&"string"==typeof h)d=l.formatTpl(h,i,!0);else if("function"==typeof h){var p=y((function(e,n){e===this._ticket&&(c.setContent(n,u,t),this._updatePosition(t,o,a,r,c,i,s))}),this);this._ticket=n,d=h(i,n,p)}c.setContent(d,u,t),c.show(t),this._updatePosition(t,o,a,r,c,i,s)}},_updatePosition:function(t,e,i,n,r,o,s){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=r.getSize(),h=t.get("align"),p=t.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"==typeof e&&(e=e([i,n],o,r.el,f,{viewSize:[l,u],contentSize:c.slice()})),a.isArray(e))i=_(e[0],l),n=_(e[1],u);else if(a.isObject(e)){e.width=c[0],e.height=c[1];var g=d.getLayoutRect(e,{width:l,height:u});i=g.x,n=g.y,h=null,p=null}else if("string"==typeof e&&s){var m=function(t,e,i){var n=i[0],a=i[1],r=5,o=0,s=0,l=e.width,u=e.height;switch(t){case"inside":o=e.x+l/2-n/2,s=e.y+u/2-a/2;break;case"top":o=e.x+l/2-n/2,s=e.y-a-r;break;case"bottom":o=e.x+l/2-n/2,s=e.y+u+r;break;case"left":o=e.x-n-r,s=e.y+u/2-a/2;break;case"right":o=e.x+l+r,s=e.y+u/2-a/2}return[o,s]}(e,f,c);i=m[0],n=m[1]}else{m=function(t,e,i,n,a,r,o){var s=i.getOuterSize(),l=s.width,u=s.height;null!=r&&(t+l+r>n?t-=l+r:t+=r);null!=o&&(e+u+o>a?e-=u+o:e+=o);return[t,e]}(i,n,r,l,u,h?null:20,p?null:20);i=m[0],n=m[1]}if(h&&(i-=I(h)?c[0]/2:"right"===h?c[0]:0),p&&(n-=I(p)?c[1]/2:"bottom"===p?c[1]:0),t.get("confine")){m=function(t,e,i,n,a){var r=i.getOuterSize(),o=r.width,s=r.height;return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(i,n,r,l,u);i=m[0],n=m[1]}r.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&x(e,(function(e,n){var a=e.dataByAxis||{},r=(t[n]||{}).dataByAxis||[];(i&=a.length===r.length)&&x(a,(function(t,e){var n=r[e]||{},a=t.seriesDataIndices||[],o=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&a.length===o.length)&&x(a,(function(t,e){var n=o[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){r.node||(this._tooltipContent.dispose(),f.unregister("itemTooltip",e))}});function S(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(p.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new p(i,e,e.ecModel))}return e}function M(t,e){return t.dispatchAction||a.bind(e.dispatchAction,e)}function I(t){return"center"===t||"middle"===t}t.exports=w},85313:function(t,e,i){i(3646),i(11511)},74021:function(t,e,i){var n=i(69008),a=i(27204),r=i(86957),o=[20,140],s=a.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(t,e){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=o[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=o[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):n.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){a.prototype.completeVisualOption.apply(this,arguments),n.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=r.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getVisualMeta:function(t){var e=l(this,"outOfRange",this.getExtent()),i=l(this,"inRange",this.option.range.slice()),n=[];function a(e,i){n.push({value:e,color:t(e,i)})}for(var r=0,o=0,s=i.length,u=e.length;ot[1])break;i.push({color:this.getControllerVisual(r,"color",e),offset:a/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,r=i.handleLabels;p([0,1],(function(o){var l=a[o];l.setStyle("fill",e.handlesColor[o]),l.position[1]=t[o];var u=s.applyTransform(i.handleLabelPoints[o],s.getTransform(l,this.group));r[o].setStyle({x:u[0],y:u[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})}),this)}},_showIndicator:function(t,e,i,n){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,l=[0,o[1]],u=d(t,r,l,!0),c=this._shapes,h=c.indicator;if(h){h.position[1]=u,h.attr("invisible",!1),h.setShape("points",function(t,e,i,n){return t?[[0,-f(e,g(i,0))],[6,0],[0,f(e,g(n-i,0))]]:[[0,0],[5,-5],[5,5]]}(!!i,n,u,o[1]));var p=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});h.setStyle("fill",p);var m=s.applyTransform(c.indicatorLabelPoint,s.getTransform(h,this.group)),v=c.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",c.barGroup),x=this._orient;v.setStyle({text:(i||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:m[0],y:m[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=f(g(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var a=[0,n[1]],r=i.getExtent();t=f(g(a[0],t),a[1]);var o=function(t,e,i){var n=6,a=t.get("hoverLinkDataSize");a&&(n=d(a,e,i,!0)/2);return n}(i,r,a),s=[t-o,t+o],l=d(t,a,r,!0),u=[d(s[0],a,r,!0),d(s[1],a,r,!0)];s[0]a[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var p=this._hoverLinkDataIndices,m=[];(e||y(i))&&(m=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var v=h.compressBatches(p,m);this._dispatchHighDown("downplay",c.makeHighDownBatch(v[0],i)),this._dispatchHighDown("highlight",c.makeHighDownBatch(v[1],i))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var a=n.getData(e.dataType),r=a.get(i.getDataDimension(a),e.dataIndex,!0);isNaN(r)||this._showIndicator(r,r)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,a){var r=s.getTransform(e,a?null:this.group);return s[n.isArray(t)?"applyTransform":"transformDirection"](t,r,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function v(t,e,i,n){return new s.Polygon({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){r.stop(t.event)},ondragend:n})}function y(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function x(t){return"vertical"===t?"ns-resize":"ew-resize"}var _=m;t.exports=_},85033:function(t,e,i){i(96311).__DEV__;var n=i(69008),a=i(27204),r=i(5660),o=i(45645),s=i(86957).reformIntervals,l=a.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(t,e){l.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();u[this._mode].call(this),this._resetSelected(t,e);var a=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=n.clone(a)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=n.map(this._pieceList,(function(t){t=n.clone(t);return"inRange"!==e&&(t.visual=null),t})))}))},completeVisualOption:function(){var t=this.option,e={},i=r.listVisualTypes(),s=this.isCategory();function l(t,e,i){return t&&t[e]&&(n.isObject(t[e])?t[e].hasOwnProperty(i):t[e]===i)}n.each(t.pieces,(function(t){n.each(i,(function(i){t.hasOwnProperty(i)&&(e[i]=1)}))})),n.each(e,(function(e,i){var a=0;n.each(this.stateList,(function(e){a|=l(t,e,i)||l(t.target,e,i)}),this),!a&&n.each(this.stateList,(function(e){(t[e]||(t[e]={}))[i]=o.get(i,"inRange"===e?"active":"inactive",s)}))}),this),a.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,a=this._pieceList,r=(e?i:t).selected||{};if(i.selected=r,n.each(a,(function(t,e){var i=this.getSelectedMapKey(t);r.hasOwnProperty(i)||(r[i]=!0)}),this),"single"===i.selectedMode){var o=!1;n.each(a,(function(t,e){var i=this.getSelectedMapKey(t);r[i]&&(o?r[i]=!1:o=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=n.clone(t)},getValueState:function(t){var e=r.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(e,i){r.findPieceIndex(e,this._pieceList)===t&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],i=[],a=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return n.each(r,(function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:e,outerColors:i}}function l(n,r){var o=a.getRepresentValue({interval:n});r||(r=a.getValueState(o));var s=t(o,r);n[0]===-1/0?i[0]=s:n[1]===1/0?i[1]=s:e.push({value:n[0],color:s},{value:n[1],color:s})}}}),u={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),a=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(a[1]-a[0])/r;+o.toFixed(i)!==o&&i<5;)i++;t.precision=i,o=+o.toFixed(i),t.minOpen&&e.push({interval:[-1/0,a[0]],close:[0,0]});for(var l=0,u=a[0];l","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function c(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var h=l;t.exports=h},50767:function(t,e,i){var n=i(69008),a=i(94404),r=i(18993),o=i(22868).createSymbol,s=i(7357),l=i(26135),u=a.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),a=e.textStyleModel,o=a.getFont(),l=a.getTextColor(),u=this._getItemAlign(),c=e.itemSize,h=this._getViewData(),d=h.endsText,p=n.retrieve(e.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],c,p,u),n.each(h.viewPieceList,(function(a){var s=a.piece,h=new r.Group;h.onclick=n.bind(this._onItemClick,this,s),this._enableHoverLink(h,a.indexInModelPieceList);var d=e.getRepresentValue(s);if(this._createItemSymbol(h,d,[0,0,c[0],c[1]]),p){var f=this.visualMapModel.getValueState(d);h.add(new r.Text({style:{x:"right"===u?-i:c[0]+i,y:c[1]/2,text:s.text,textVerticalAlign:"middle",textAlign:u,textFont:o,textFill:l,opacity:"outOfRange"===f?.5:1}}))}t.add(h)}),this),d&&this._renderEndsText(t,d[1],c,p,u),s.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:l.makeHighDownBatch(i.findTargetDataIndices(e),i)})}t.on("mouseover",n.bind(i,this,"highlight")).on("mouseout",n.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return l.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,a){if(e){var o=new r.Group,s=this.visualMapModel.textStyleModel;o.add(new r.Text({style:{x:n?"right"===a?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?a:"center",text:e,textFont:s.getFont(),textFill:s.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=n.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),a=t.get("orient"),r=t.get("inverse");return("horizontal"===a?r:!r)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(o(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,a=n.clone(i.selected),r=e.getSelectedMapKey(t);"single"===i.selectedMode?(a[r]=!0,n.each(a,(function(t,e){a[e]=e===r}))):a[r]=!a[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}});t.exports=u},27204:function(t,e,i){var n=i(3096),a=i(69008),r=i(12973),o=i(45645),s=i(5660),l=i(75986),u=i(90830),c=i(86957),h=s.mapVisual,d=s.eachVisual,p=a.isArray,f=a.each,g=c.asc,m=c.linearMap,v=a.noop,y=n.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(t,e,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,i)},optionUpdated:function(t,e){var i=this.option;r.canvasSupported||(i.realtime=!1),!e&&l.replaceVisualOption(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=a.bind(t,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,e,t),this.targetVisuals=l.createVisualMappings(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,i){e.push(i)})):e=u.normalizeToArray(t),e},eachTargetSeries:function(t,e){a.each(this.getTargetSeriesIndices(),(function(i){t.call(e,this.ecModel.getSeriesByIndex(i))}),this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries((function(i){i===t&&(e=!0)})),e},formatValueText:function(t,e,i){var n,r,o=this.option,s=o.precision,l=this.dataBound,u=o.formatter;return i=i||["<",">"],a.isArray(t)&&(t=t.slice(),n=!0),r=e?t:n?[c(t[0]),c(t[1])]:c(t),a.isString(u)?u.replace("{value}",n?r[0]:r).replace("{value2}",n?r[1]:r):a.isFunction(u)?n?u(t[0],t[1]):u(t):n?t[0]===l[0]?i[0]+" "+r[1]:t[1]===l[1]?i[1]+" "+r[0]:r[0]+" - "+r[1]:r;function c(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,a=n.length-1;a>=0;a--){var r=n[a];if(!t.getDimensionInfo(r).isCalculationCoord)return r}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),r=e.controller||(e.controller={});a.merge(n,i),a.merge(r,i);var l=this.isCategory();function u(i){p(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")},f(this.stateList,(function(t){var e=i[t];if(a.isString(e)){var n=o.get(e,"active",l);n?(i[t]={},i[t][e]=n):delete i[t]}}),this)}u.call(this,n),u.call(this,r),function(t,e,i){var n=t[e],a=t[i];n&&!a&&(a=t[i]={},f(n,(function(t,e){if(s.isValidType(e)){var i=o.get(e,"inactive",l);null!=i&&(a[e]=i,"color"!==e||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}})))}.call(this,n,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor");f(this.stateList,(function(r){var o=this.itemSize,s=t[r];s||(s=t[r]={color:l?n:[n]}),null==s.symbol&&(s.symbol=e&&a.clone(e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&a.clone(i)||(l?o[0]:[o[0],o[0]])),s.symbol=h(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var u=s.symbolSize;if(null!=u){var c=-1/0;d(u,(function(t){t>c&&(c=t)})),s.symbolSize=h(u,(function(t){return m(t,[0,c],[0,o[0]],!0)}))}}),this)}.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v});t.exports=y},94404:function(t,e,i){var n=i(3096),a=i(69008),r=i(18993),o=i(17010),s=i(7357),l=i(5660),u=n.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,i,n){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,i=o.normalizeCssArray(e.get("padding")||0),n=t.getBoundingRect();t.add(new r.Rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,i){var n=(i=i||{}).forceState,r=this.visualMapModel,o={};if("symbol"===e&&(o.symbol=r.get("itemSymbol")),"color"===e){var s=r.get("contentColor");o.color=s}function u(t){return o[t]}function c(t,e){o[t]=e}var h=r.controllerVisuals[n||r.getValueState(t)],d=l.prepareVisualTypes(h);return a.each(d,(function(n){var a=h[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",a=h.__alphaForOpacity),l.dependsOn(n,e)&&a&&a.applyVisual(t,u,c)})),o[e]},positionGroup:function(t){var e=this.visualMapModel,i=this.api;s.positionElement(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:a.noop});t.exports=u},26135:function(t,e,i){var n=i(69008),a=i(7357).getLayoutRect;e.getItemAlign=function(t,e,i){var n=t.option,r=n.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},s="horizontal"===n.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},d=0;d<3;d++)h[l[1-s][d]]=c[d],h[u[d]]=2===d?i[0]:n[u[d]];var p=[["x","width",3],["y","height",0]][s],f=a(h,o,n.padding);return u[(f.margin[p[2]]||0)+f[p[0]]+.5*f[p[1]]<.5*o[p[1]]?0:1]},e.makeHighDownBatch=function(t,e){return n.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},96288:function(t,e,i){var n=i(69008),a=n.each;function r(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}t.exports=function(t){var e=t&&t.visualMap;n.isArray(e)||(e=e?[e]:[]),a(e,(function(t){if(t){r(t,"splitList")&&!r(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&n.isArray(e)&&a(e,(function(t){n.isObject(t)&&(r(t,"start")&&!r(t,"min")&&(t.min=t.start),r(t,"end")&&!r(t,"max")&&(t.max=t.end))}))}}))}},82546:function(t,e,i){i(16172).registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}))},86053:function(t,e,i){var n=i(3096),a=i(69008),r=i(75986),o=i(5660),s=n.PRIORITY.VISUAL.COMPONENT;function l(t,e,i,n){for(var a=e.targetVisuals[n],r=o.prepareVisualTypes(a),s={color:t.getData().getVisual("color")},l=0,u=r.length;l=i&&t<=n},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return l(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&m(i=i.slice(),n.count()),s(t,f,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&m(i=i.slice(),n.count());var a=s(t,i,f,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=h(this,e).ticks,n=r(i,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this);return function(t,e,i,n){var r=e.length;if(!t.onBand||i||!r)return;var o,s,l=t.getExtent();if(1===r)e[0].coord=l[0],o=e[1]={coord:l[0]};else{var c=e[r-1].tickValue-e[0].tickValue,h=(e[r-1].coord-e[0].coord)/c;a(e,(function(t){t.coord-=h/2})),s=1+t.scale.getExtent()[1]-e[r-1].tickValue,o={coord:e[r-1].coord+h*s},e.push(o)}var d=l[0]>l[1];p(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift());n&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]});p(l[1],o.coord)&&(n?o.coord=l[1]:e.pop());n&&p(o.coord,l[1])&&e.push({coord:l[1]});function p(t,e){return t=u(t),e=u(e),d?t>e:t0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return r(e,(function(t){return r(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},getViewLabels:function(){return d(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return p(this)}};var v=g;t.exports=v},86990:function(t,e,i){var n=i(69008),a=i(47764),r=i(26237),o=i(9806),s=i(74330),l=a.applyTransform;function u(){s.call(this)}function c(t){this.name=t,this.zoomLimit,s.call(this),this._roamTransformable=new u,this._rawTransformable=new u,this._center,this._zoom}function h(t,e,i,n){var a=i.seriesModel,r=a?a.coordinateSystem:null;return r===this?r[t](n):null}n.mixin(u,s),c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new o(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new o(t,e,i,n)},transformTo:function(t,e,i,n){var a=this.getBoundingRect(),r=this._rawTransformable;r.transform=a.calculateTransform(new o(t,e,i,n)),r.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),r=this.getZoom();n=a.applyTransform([],n,t),i=a.applyTransform([],i,t),e.origin=n,e.position=[i[0]-n[0],i[1]-n[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),r.copy(this.transform||(this.transform=[]),e.transform||r.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],r.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,e=this._rawTransformable;return{roamTransform:t?n.slice(t):r.create(),rawScale:n.slice(e.scale),rawPosition:n.slice(e.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,i){var n=e?this._rawTransform:this.transform;return i=i||[],n?l(i,t,n):a.copy(i,t)},pointToData:function(t){var e=this.invTransform;return e?l([],t,e):[t[0],t[1]]},convertToPixel:n.curry(h,"dataToPoint"),convertFromPixel:n.curry(h,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},n.mixin(c,s);var d=c;t.exports=d},61466:function(t,e,i){var n=i(69008),a={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)"]}}},r={};r.categoryAxis=n.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},a),r.valueAxis=n.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},a),r.timeAxis=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},r.valueAxis),r.logAxis=n.defaults({scale:!0,logBase:10},r.valueAxis);var o=r;t.exports=o},44815:function(t,e,i){i(96311).__DEV__;var n=i(69008),a=i(43712),r=i(48149),o=i(22510),s=i(86957),l=i(64816),u=l.prepareLayoutBarSeries,c=l.makeColumnLayout,h=l.retrieveColumnLayout,d=i(9806);function p(t,e){var i,a,r,o=t.type,l=e.getMin(),d=e.getMax(),p=t.getExtent();"ordinal"===o?i=e.getCategories().length:(a=e.get("boundaryGap"),n.isArray(a)||(a=[a||0,a||0]),"boolean"==typeof a[0]&&(a=[0,0]),a[0]=s.parsePercent(a[0],1),a[1]=s.parsePercent(a[1],1),r=p[1]-p[0]||Math.abs(p[0])),"dataMin"===l?l=p[0]:"function"==typeof l&&(l=l({min:p[0],max:p[1]})),"dataMax"===d?d=p[1]:"function"==typeof d&&(d=d({min:p[0],max:p[1]}));var f=null!=l,g=null!=d;null==l&&(l="ordinal"===o?i?0:NaN:p[0]-a[0]*r),null==d&&(d="ordinal"===o?i?i-1:NaN:p[1]+a[1]*r),(null==l||!isFinite(l))&&(l=NaN),(null==d||!isFinite(d))&&(d=NaN),t.setBlank(n.eqNaN(l)||n.eqNaN(d)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(l>0&&d>0&&!f&&(l=0),l<0&&d<0&&!g&&(d=0));var m=e.ecModel;if(m&&"time"===o){var v,y=u("bar",m);if(n.each(y,(function(t){v|=t.getBaseAxis()===e.axis})),v){var x=c(y),_=function(t,e,i,a){var r=i.axis.getExtent(),o=r[1]-r[0],s=h(a,i.axis);if(void 0===s)return{min:t,max:e};var l=1/0;n.each(s,(function(t){l=Math.min(t.offset,l)}));var u=-1/0;n.each(s,(function(t){u=Math.max(t.offset+t.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,d=e-t,p=d/(1-(l+u)/o)-d;return e+=p*(u/c),t-=p*(l/c),{min:t,max:e}}(l,d,e,x);l=_.min,d=_.max}}return{extent:[l,d],fixMin:f,fixMax:g}}function f(t){var e,i=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof i?(e=i,i=function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}):"function"==typeof i?function(e,a){return null!=n&&(a=e-n),i(g(t,e),a)}:function(e){return t.scale.getLabel(e)}}function g(t,e){return"category"===t.type?t.scale.getLabel(e):e}function m(t){var e=t.get("interval");return null==e?"auto":e}i(79262),i(64763),e.getScaleExtent=p,e.niceScaleExtent=function(t,e){var i=p(t,e),n=i.extent,a=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var r=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===r||"time"===r?e.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?e.get("maxInterval"):null});var o=e.get("interval");null!=o&&t.setInterval&&t.setInterval(o)},e.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new a(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new r;default:return(o.getClass(e)||r).create(t)}},e.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)},e.makeLabelFormatter=f,e.getAxisRawValue=g,e.estimateLabelUnionRect=function(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,a,r="category"===t.type,o=i.getExtent();a=r?i.count():(n=i.getTicks()).length;var s,l,u,c,h,p,g,m,v,y=t.getLabelModel(),x=f(t),_=1;a>40&&(_=Math.ceil(a/40));for(var b=0;b1&&d/c>2&&(h=Math.round(Math.ceil(h/c)*c));var p=u(t),f=o.get("showMinLabel")||p,g=o.get("showMaxLabel")||p;f&&h!==r[0]&&v(r[0]);for(var m=h;m<=r[1];m+=c)v(m);function v(t){l.push(i?t:{formattedLabel:n(t),rawLabel:a.getLabel(t),tickValue:t})}return g&&m-c!==r[1]&&v(r[1]),l}function m(t,e,i){var a=t.scale,r=s(t),o=[];return n.each(a.getTicks(),(function(t){var n=a.getLabel(t);e(t,n)&&o.push(i?t:{formattedLabel:r(t),rawLabel:n,tickValue:t})})),o}e.createAxisLabels=function(t){return"category"===t.type?function(t){var e=t.getLabelModel(),i=h(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(t):function(t){var e=t.scale.getTicks(),i=s(t);return{labels:n.map(e,(function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}}))}}(t)},e.createAxisTicks=function(t,e){return"category"===t.type?function(t,e){var i,a,r=d(t,"ticks"),o=l(e),s=p(r,o);if(s)return s;e.get("show")&&!t.scale.isBlank()||(i=[]);if(n.isFunction(o))i=m(t,o,!0);else if("auto"===o){var u=h(t,t.getLabelModel());a=u.labelCategoryInterval,i=n.map(u.labels,(function(t){return t.tickValue}))}else i=g(t,a=o,!0);return f(r,o,{ticks:i,tickCategoryInterval:a})}(t,e):{ticks:t.scale.getTicks()}},e.calculateCategoryInterval=function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),i=s(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),l=r.count();if(o[1]-o[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var h=o[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),p=Math.abs(d*Math.cos(n)),f=Math.abs(d*Math.sin(n)),g=0,m=0;h<=o[1];h+=u){var v,y,x=a.getBoundingRect(i(h),e.font,"center","top");v=1.3*x.width,y=1.3*x.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var _=g/p,b=m/f;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(_,b))),S=c(t.model),M=t.getExtent(),I=S.lastAutoInterval,T=S.lastTickCount;return null!=I&&null!=T&&Math.abs(I-w)<=1&&Math.abs(T-l)<=1&&I>w&&S.axisExtend0===M[0]&&S.axisExtend1===M[1]?w=I:(S.lastTickCount=l,S.lastAutoInterval=w,S.axisExtend0=M[0],S.axisExtend1=M[1]),w}},29933:function(t,e,i){var n=i(69008),a=i(7357),r=i(86957),o=i(33807),s=864e5;function l(t,e,i){this._model=t}function u(t,e,i,n){var a=i.calendarModel,r=i.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem:null;return o===this?o[t](n):null}l.prototype={constructor:l,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(t){var e=(t=r.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var a=t.getDay();return{y:e,m:i,d:n,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,r=["width","height"],o=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[i,7]:[7,i];n.each([0,1],(function(t){h(o,t)&&(s[r[t]]=o[t]*l[t])}));var u={width:e.getWidth(),height:e.getHeight()},c=this._rect=a.getLayoutRect(s,u);function h(t,e){return null!=t[e]&&"auto"!==t[e]}n.each([0,1],(function(t){h(o,t)||(o[t]=c[r[t]]/l[t])})),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){n.isArray(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),a=this._rangeInfo,r=i.formatedDate;if(e&&!(i.time>=a.start.time&&i.timeo.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/s)-Math.floor(t[0].time/s)+1,n=new Date(t[0].time),a=n.getDate(),r=t[1].date.getDate();n.setDate(a+i-1);var o=n.getDate();if(o!==r)for(var l=n.getTime()-t[1].time>0?1:-1;(o=n.getDate())!==r&&(n.getTime()-t[1].time)*l>0;)i-=l,n.setDate(o-l);var u=Math.floor((i+t[0].day+6)/7),c=e?1-u:u-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:u,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var a=7*(t-1)-n.fweek+e,r=new Date(n.start.time);return r.setDate(n.start.d+a),this.getDateInfo(r)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(t,e){var i=[];return t.eachComponent("calendar",(function(n){var a=new l(n,t,e);i.push(a),n.coordinateSystem=a})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},o.register("calendar",l);var c=l;t.exports=c},66619:function(t,e,i){var n=i(69008),a=i(16172),r=i(7357),o=r.getLayoutParams,s=r.sizeCalculable,l=r.mergeLayoutParam,u=a.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,e,i,n){var a=o(t);u.superApply(this,"init",arguments),c(t,a)},mergeOption:function(t,e){u.superApply(this,"mergeOption",arguments),c(this.option,t)}});function c(t,e){var i=t.cellSize;n.isArray(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var a=n.map([0,1],(function(t){return s(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));l(t,e,{type:"box",ignoreSize:a})}var h=u;t.exports=h},41675:function(t){t.exports=function(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}}},74384:function(t,e,i){var n=i(69008),a=i(97694),r=function(t,e,i,n,r){a.call(this,t,e,i),this.type=n||"value",this.position=r||"bottom"};r.prototype={constructor:r,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},n.inherits(r,a);var o=r;t.exports=o},75089:function(t,e,i){var n=i(69008),a=i(16172),r=i(12089),o=i(5270),s=a.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(t,e){return e.type||(e.data?"category":"value")}n.merge(s.prototype,o);var u={offset:0};r("x",s,l,u),r("y",s,l,u);var c=s;t.exports=c},52281:function(t,e,i){var n=i(69008);function a(t){return this._axes[t]}var r=function(t){this._axes={},this._dimList=[],this.name=t||""};r.prototype={constructor:r,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return n.map(this._dimList,a,this)},getAxesByScale:function(t){return t=t.toLowerCase(),n.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},a=0;a1?(g.width=c,g.height=c/p):(g.height=c,g.width=c*p),g.y=u[1]-g.height/2,g.x=u[0]-g.width/2}else(r=t.getBoxLayoutParams()).aspect=p,g=o.getLayoutRect(r,{width:h,height:d});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function h(t,e){a.each(e.get("geoCoord"),(function(e,i){t.addGeoCoord(i,e)}))}var d={dimensions:r.prototype.dimensions,create:function(t,e){var i=[];t.eachComponent("geo",(function(t,n){var a=t.get("map"),o=t.get("aspectScale"),s=!0,l=u.retrieveMap(a);l&&l[0]&&"svg"===l[0].type?(null==o&&(o=1),s=!1):null==o&&(o=.75);var d=new r(a+n,a,t.get("nameMap"),s);d.aspectScale=o,d.zoomLimit=t.get("scaleLimit"),i.push(d),h(d,t),t.coordinateSystem=d,d.model=t,d.resize=c,d.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=i[e]}}));var n={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();n[e]=n[e]||[],n[e].push(t)}})),a.each(n,(function(t,n){var o=a.map(t,(function(t){return t.get("nameMap")})),s=new r(n,n,a.mergeAll(o));s.zoomLimit=a.retrieve.apply(null,a.map(t,(function(t){return t.get("scaleLimit")}))),i.push(s),s.resize=c,s.aspectScale=t[0].get("aspectScale"),s.resize(t[0],e),a.each(t,(function(t){t.coordinateSystem=s,h(s,t)}))})),i},getFilledRegions:function(t,e,i){for(var n=(t||[]).slice(),r=a.createHashMap(),o=0;o>1^-(1&s),l=l>>1^-(1&l),a=s+=a,r=l+=r,n.push([s/i,l/i])}return n}t.exports=function(t,e){return function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n0})),(function(t){var i=t.properties,r=t.geometry,o=r.coordinates,s=[];"Polygon"===r.type&&s.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===r.type&&n.each(o,(function(t){t[0]&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var l=new a(i[e||"name"],s,i.cp);return l.properties=i,l}))}},8058:function(t,e,i){var n=i(69008);function a(t,e){return e=e||[0,0],n.map([0,1],(function(i){var n=e[i],a=t[i]/2,r=[],o=[];return r[i]=n-a,o[i]=n+a,r[1-i]=o[1-i]=e[1-i],Math.abs(this.dataToPoint(r)[i]-this.dataToPoint(o)[i])}),this)}t.exports=function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:n.bind(a,t)}}}},97292:function(t,e,i){var n=i(69008),a=i(16172),r=i(76282),o=i(12089),s=i(86957),l=i(5270),u=a.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return r([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=n.clone(t);if(e)for(var i=e.length-1;i>=0;i--)s.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,a=e.length;n=i&&r<=i+e.axisLength&&o>=n&&o<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(i){if(t.contains(i,e)){var n=i.getData();h(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),o.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],a=["width","height"],r=e.get("layout"),o="horizontal"===r?0:1,s=i[a[o]],l=[0,s],u=this.dimensions.length,c=x(e.get("axisExpandWidth"),l),h=x(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");p?(t=x(p[1]-p[0],l),p[1]=p[0]+t):(t=x(c*(h-1),l),(p=[c*(e.get("axisExpandCenter")||f(u/2))-t/2])[1]=p[0]+t);var v=(s-t)/(u-h);v<3&&(v=0);var y=[f(m(p[0]/c,1))+1,g(m(p[1]/c,1))-1],_=v/c*p[0];return{layout:r,pixelDimIndex:o,layoutBase:i[n[o]],layoutLength:s,axisBase:i[n[1-o]],axisLength:i[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:v,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:_}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;e.each((function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])})),h(i,(function(e,i){var o=(n.axisExpandable?b:_)(i,n),s={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},l={horizontal:v/2,vertical:0},u=[s[r].x+t.x,s[r].y+t.y],c=l[r],h=a.create();a.rotate(h,h,c),a.translate(h,h,u),this._axesLayout[e]={position:u,rotation:c,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,i,a){null==i&&(i=0),null==a&&(a=t.count());var r=this._axesMap,o=this.dimensions,s=[],l=[];n.each(o,(function(e){s.push(t.mapDimension(e)),l.push(r.get(e).model)}));for(var u=this.hasAxisBrushed(),c=i;ca*(1-h[0])?(l="jump",o=s-a*(1-h[2])):(o=s-a*h[1])>=0&&(o=s-a*(1-h[1]))<=0&&(o=0),(o*=e.axisExpandWidth/u)?c(o,n,r,"all"):l="none";else{a=n[1]-n[0];(n=[p(0,r[1]*s/a-a/2)])[1]=d(r[1],n[0]+a),n[0]=n[1]-a}return{axisExpandWindow:n,behavior:l}}};var w=y;t.exports=w},96709:function(t,e,i){var n=i(69008),a=i(97694),r=function(t,e,i,n,r){a.call(this,t,e,i),this.type=n||"value",this.axisIndex=r};r.prototype={constructor:r,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},n.inherits(r,a);var o=r;t.exports=o},19061:function(t,e,i){var n=i(69008),a=i(16172);i(97292);var r=a.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(){a.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&n.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var i=t.get("parallelIndex");return null!=i&&e.getComponent("parallel",i)===this},setAxisExpand:function(t){n.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],i=n.filter(this.dependentModels.parallelAxis,(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);n.each(i,(function(i){t.push("dim"+i.get("dim")),e.push(i.componentIndex)}))}});t.exports=r},3881:function(t,e,i){var n=i(42044);i(33807).register("parallel",{create:function(t,e){var i=[];return t.eachComponent("parallel",(function(a,r){var o=new n(a,t,e);o.name="parallel_"+r,o.resize(a,e),a.coordinateSystem=o,o.model=a,i.push(o)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}})},98700:function(t,e,i){var n=i(69008),a=i(90830);t.exports=function(t){!function(t){if(t.parallel)return;var e=!1;n.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=a.normalizeToArray(t.parallelAxis);n.each(e,(function(e){if(n.isObject(e)){var i=e.parallelIndex||0,r=a.normalizeToArray(t.parallel)[i];r&&r.parallelAxisDefault&&n.merge(e,r.parallelAxisDefault,!1)}}))}(t)}},6797:function(t,e,i){var n=i(69008),a=i(63603),r=i(97694),o=(0,i(90830).makeInner)();function s(t,e){e=e||[0,360],r.call(this,"angle",t,e),this.type="category"}s.prototype={constructor:s,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:r.prototype.dataToCoord,angleToData:r.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),i=t.scale,n=i.getExtent(),r=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=a.getBoundingRect(s,e.getFont(),"center","top"),h=Math.max(c.height,7)/u;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),p=o(t.model),f=p.lastAutoInterval,g=p.lastTickCount;return null!=f&&null!=g&&Math.abs(f-d)<=1&&Math.abs(g-r)<=1&&f>d?d=f:(p.lastTickCount=r,p.lastAutoInterval=d),d}},n.inherits(s,r);var l=s;t.exports=l},98138:function(t,e,i){var n=i(69008),a=i(16172),r=i(12089),o=i(5270),s=a.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});n.merge(s.prototype,o);var l={splitNumber:5};function u(t,e){return e.type||(e.data?"category":"value")}r("angle",s,u,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),r("radius",s,u,l)},68338:function(t,e,i){var n=i(14989),a=i(6797),r=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new n,this._angleAxis=new a,this._radiusAxis.polar=this._angleAxis.polar=this};r.prototype={type:"polar",axisPointerEnabled:!0,constructor:r,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),a=n.getExtent(),r=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]);n.inverse?r=o-360:o=r+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,u=lo;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var i=t.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:t.inverse,contain:function(t,e){var i=t-this.cx,n=e-this.cy,a=i*i+n*n,r=this.r,o=this.r0;return a<=r*r&&a>=o*o}}}};var o=r;t.exports=o},15001:function(t,e,i){var n=i(3096);i(98138);var a=n.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});t.exports=a},14989:function(t,e,i){var n=i(69008),a=i(97694);function r(t,e){a.call(this,"radius",t,e),this.type="category"}r.prototype={constructor:r,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:a.prototype.dataToCoord,radiusToData:a.prototype.coordToData},n.inherits(r,a);var o=r;t.exports=o},49900:function(t,e,i){i(96311).__DEV__;var n=i(69008),a=i(68338),r=i(86957).parsePercent,o=i(44815),s=o.createScaleByModel,l=o.niceScaleExtent,u=i(33807),c=i(22240).getStackedDimension;function h(t,e){var i=this,a=i.getAngleAxis(),r=i.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===i){var e=t.getData();n.each(e.mapDimension("radius",!0),(function(t){r.scale.unionExtentFromData(e,c(e,t))})),n.each(e.mapDimension("angle",!0),(function(t){a.scale.unionExtentFromData(e,c(e,t))}))}})),l(a.scale,a.model),l(r.scale,r.model),"category"===a.type&&!a.onBand){var o=a.getExtent(),s=360/a.scale.count();a.inverse?o[1]+=s:o[1]-=s,a.setExtent(o[0],o[1])}}function d(t,e){if(t.type=e.get("type"),t.scale=s(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}i(15001);var p={dimensions:a.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",(function(t,o){var s=new a(o);s.update=h;var l=s.getRadiusAxis(),u=s.getAngleAxis(),c=t.findAxisModel("radiusAxis"),p=t.findAxisModel("angleAxis");d(l,c),d(u,p),function(t,e,i){var a=e.get("center"),o=i.getWidth(),s=i.getHeight();t.cx=r(a[0],o),t.cy=r(a[1],s);var l=t.getRadiusAxis(),u=Math.min(o,s)/2,c=e.get("radius");null==c?c=[0,"100%"]:n.isArray(c)||(c=[0,c]),c=[r(c[0],u),r(c[1],u)],l.inverse?l.setExtent(c[1],c[0]):l.setExtent(c[0],c[1])}(s,t,e),i.push(s),t.coordinateSystem=s,s.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}};u.register("polar",p)},69171:function(t,e,i){var n=i(69008);function a(t,e){return n.map(["Radius","Angle"],(function(i,n){var a=this["get"+i+"Axis"](),r=e[n],o=t[n]/2,s="dataTo"+i,l="category"===a.type?a.getBandWidth():Math.abs(a[s](r-o)-a[s](r+o));return"Angle"===i&&(l=l*Math.PI/180),l}),this)}t.exports=function(t){var e=t.getRadiusAxis(),i=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:n.bind((function(n){var a=e.dataToRadius(n[0]),r=i.dataToAngle(n[1]),o=t.coordToPoint([a,r]);return o.push(a,r*Math.PI/180),o})),size:n.bind(a,t)}}}},20671:function(t,e,i){var n=i(69008),a=i(97694);function r(t,e,i){a.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}n.inherits(r,a);var o=r;t.exports=o},37292:function(t,e,i){var n=i(69008),a=i(20671),r=i(48149),o=i(86957),s=i(44815),l=s.getScaleExtent,u=s.niceScaleExtent,c=i(33807),h=i(64763);function d(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=n.map(t.getIndicatorModels(),(function(t,e){var i="indicator_"+e,n=new a(i,"log"===t.get("axisType")?new h:new r);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n}),this),this.resize(t,i),this.cx,this.cy,this.r,this.r0,this.startAngle}d.prototype.getIndicatorAxes=function(){return this._indicatorAxes},d.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},d.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},d.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var a,r=Math.atan2(-i,e),o=1/0,s=-1,l=0;li[0]&&isFinite(f)&&isFinite(i[0]))}else{a.getTicks().length-1>r&&(d=s(d));var p=Math.ceil(i[1]/d)*d,f=o.round(p-d*r);a.setExtent(f,p),a.setInterval(d)}}))},d.dimensions=[],d.create=function(t,e){var i=[];return t.eachComponent("radar",(function(n){var a=new d(n,t,e);i.push(a),n.coordinateSystem=a})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},c.register("radar",d);var p=d;t.exports=p},924:function(t,e,i){var n=i(3096),a=i(69008),r=i(61466),o=i(24040),s=i(5270),l=r.valueAxis;function u(t,e){return a.defaults({show:e},t)}var c=n.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),r=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),c=this.get("name"),h=this.get("name.show"),d=this.get("name.formatter"),p=this.get("nameGap"),f=this.get("triggerEvent"),g=a.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var m=c;if(null!=g.color&&(m=a.defaults({color:g.color},c)),g=a.merge(a.clone(g),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:r,axisType:l,axisLabel:u,name:g.text,nameLocation:"end",nameGap:p,nameTextStyle:m,triggerEvent:f},!1),h||(g.name=""),"string"==typeof d){var v=g.name;g.name=d.replace("{value}",null!=v?v:"")}else"function"==typeof d&&(g.name=d(g.name,g));var y=a.extend(new o(g,null,this.ecModel),s);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},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:a.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:u(l.axisLabel,!1),axisTick:u(l.axisTick,!1),axisType:"interval",splitLine:u(l.splitLine,!0),splitArea:u(l.splitArea,!0),indicator:[]}});t.exports=c},44526:function(t,e,i){var n=i(69008),a=i(16172),r=i(12089),o=i(5270),s=a.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}});n.merge(s.prototype,o),r("single",s,(function(t,e){return e.type||(e.data?"category":"value")}),{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}}});var l=s;t.exports=l},10018:function(t,e,i){var n=i(7164),a=i(44815),r=i(7357).getLayoutRect,o=i(69008).each;function s(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}s.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:s,_init:function(t,e,i){var r=this.dimension,o=new n(r,a.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===o.type;o.onBand=s&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();o(e.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),a.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=r({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],a=e.reverse?1:0;e.setExtent(n[a],n[1-a]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],a=t.isHorizontal();t.toGlobalCoord=a?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=a?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis();return"horizontal"===i.orient?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}};var l=s;t.exports=l},7164:function(t,e,i){var n=i(69008),a=i(97694),r=function(t,e,i,n,r){a.call(this,t,e,i),this.type=n||"value",this.position=r||"bottom",this.orient=null};r.prototype={constructor:r,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},n.inherits(r,a);var o=r;t.exports=o},66848:function(t,e,i){var n=i(69008);function a(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,a=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-a)-i.dataToCoord(n+a))}t.exports=function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:n.bind(a,t)}}}},76203:function(t,e,i){var n=i(69008);e.layout=function(t,e){e=e||{};var i=t.coordinateSystem,a=t.axis,r={},o=a.position,s=a.orient,l=i.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};r.position=["vertical"===s?c.vertical[o]:u[0],"horizontal"===s?c.horizontal[o]:u[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[s],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),n.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get("axisLabel.rotate")),r.labelRotation="top"===o?-h:h,r.z2=1,r}},7797:function(t,e,i){var n=i(10018);i(33807).register("single",{create:function(t,e){var i=[];return t.eachComponent("singleAxis",(function(a,r){var o=new n(a,t,e);o.name="single_"+r,o.resize(a,e),a.coordinateSystem=o,i.push(o)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}})),i},dimensions:n.prototype.dimensions})},90515:function(t){function e(t){return t}function i(t,i,n,a,r){this._old=t,this._new=i,this._oldKeyGetter=n||e,this._newKeyGetter=a||e,this.context=r}function n(t,e,i,n,a){for(var r=0;r=0&&t.call(e,i[a],a)},s.eachEdge=function(t,e){for(var i=this.edges,n=i.length,a=0;a=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&t.call(e,i[a],a)},s.breadthFirstTraverse=function(t,e,i,n){if(l.isInstance(e)||(e=this._nodesMap[r(e)]),e){for(var a="out"===i?"outEdges":"in"===i?"inEdges":"edges",o=0;o=0&&i.node2.dataIndex>=0}));for(a=0,r=n.length;a=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};n.mixin(l,c("hostGraph","data")),n.mixin(u,c("hostGraph","edgeData")),o.Node=l,o.Edge=u,a(l),a(u);var h=o;t.exports=h},39177:function(t,e,i){i(96311).__DEV__;var n=i(69008),a=i(24040),r=i(90515),o=i(50751),s=i(17751),l=s.defaultDimValueGetters,u=s.DefaultDataProvider,c=i(28176).summarizeDimensions,h=i(83250),d=n.isObject,p="undefined",f={float:typeof Float64Array===p?Array:Float64Array,int:typeof Int32Array===p?Array:Int32Array,ordinal:Array,number:Array,time:Array},g=typeof Uint32Array===p?Array:Uint32Array,m=typeof Int32Array===p?Array:Int32Array,v=typeof Uint16Array===p?Array:Uint16Array;function y(t){return t._rawCount>65535?g:v}var x=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],_=["_extent","_approximateExtent","_rawExtent"];function b(t,e){n.each(x.concat(e.__wrappedMethods||[]),(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t.__wrappedMethods=e.__wrappedMethods,n.each(_,(function(i){t[i]=n.clone(e[i])})),t._calculationInfo=n.extend(e._calculationInfo)}var w=function(t,e){t=t||["x","y"];for(var i={},a=[],r={},o=0;o=0?this._indices[t]:-1}function D(t,e){var i=t._idList[e];return null==i&&(i=T(t,t._idDimIdx,e)),null==i&&(i="e\0\0"+e),i}function L(t){return n.isArray(t)||(t=[t]),t}function P(t,e){var i=t.dimensions,a=new w(n.map(i,t.getDimensionInfo,t),t.hostModel);b(a,t);for(var r=a._storage={},o=t._storage,s=0;s=0?(r[l]=k(o[l]),a._rawExtent[l]=O(),a._extent[l]=null):r[l]=o[l])}return a}function k(t){for(var e,i,n=new Array(t.length),a=0;ax[1]&&(x[1]=y)}e&&(this._nameList[d]=e[p])}this._rawCount=this._count=l,this._extent={},I(this)},S._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,a=this._rawData,r=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},p=this._chunkCount,f=0;fT[1]&&(T[1]=S)}if(!a.pure){var A=u[v];if(m&&null==A)if(null!=m.name)u[v]=A=m.name;else if(null!=i){var C=o[i],D=r[C][y];if(D){A=D[x];var L=l[C].ordinalMeta;L&&L.categories.length&&(A=L.categories[A])}}var P=null==m?null:m.id;null==P&&null!=A&&(d[A]=d[A]||0,P=A,d[A]>0&&(P+="__ec__"+d[A]),d[A]++),null!=P&&(c[v]=P)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent={},I(this)}},S.count=function(){return this._count},S.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array){a=new e(i);for(var n=0;n=0&&e=0&&eo&&(o=l)}return n=[r,o],this._extent[t]=n,n},S.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},S.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},S.getCalculationInfo=function(t){return this._calculationInfo[t]},S.setCalculationInfo=function(t,e){d(t)?n.extend(this._calculationInfo,t):this._calculationInfo[t]=e},S.getSum=function(t){var e=0;if(this._storage[t])for(var i=0,n=this.count();i=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&it))return r;a=r-1}}return-1},S.indicesOfNearest=function(t,e,i){var n=[];if(!this._storage[t])return n;null==i&&(i=1/0);for(var a=1/0,r=-1,o=0,s=0,l=this.count();s=0&&r<0)&&(a=c,r=u,o=0),u===r&&(n[o++]=s))}return n.length=o,n},S.getRawIndex=A,S.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i=l&&w<=u||isNaN(w))&&(r[o++]=h),h++}c=!0}else if(2===n){d=this._storage[s];var v=this._storage[e[1]],x=t[e[1]][0],_=t[e[1]][1];for(p=0;p=l&&w<=u||isNaN(w))&&(S>=x&&S<=_||isNaN(S))&&(r[o++]=h),h++}}c=!0}}if(!c)if(1===n)for(m=0;m=l&&w<=u||isNaN(w))&&(r[o++]=M)}else for(m=0;mt[T][1])&&(I=!1)}I&&(r[o++]=this.getRawIndex(m))}return ow[1]&&(w[1]=b)}}}return r},S.downSample=function(t,e,i,n){for(var a=P(this,[t]),r=a._storage,o=[],s=Math.floor(1/e),l=r[t],u=this.count(),c=this._chunkSize,h=a._rawExtent[t],d=new(y(this))(u),p=0,f=0;fu-f&&(s=u-f,o.length=s);for(var g=0;gh[1]&&(h[1]=_),d[p++]=b}return a._count=p,a._indices=d,a.getRawIndex=C,a},S.getItemModel=function(t){var e=this.hostModel;return new a(this.getRawDataItem(t),e,e&&e.ecModel)},S.diff=function(t){var e=this;return new r(t?t.getIndices():[],this.getIndices(),(function(e){return D(t,e)}),(function(t){return D(e,t)}))},S.getVisual=function(t){var e=this._visual;return e&&e[t]},S.setVisual=function(t,e){if(d(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},S.setLayout=function(t,e){if(d(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},S.getLayout=function(t){return this._layout[t]},S.getItemLayout=function(t){return this._itemLayouts[t]},S.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?n.extend(this._itemLayouts[t]||{},e):e},S.clearItemLayouts=function(){this._itemLayouts.length=0},S.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],a=n&&n[e];return null!=a||i?a:this.getVisual(e)},S.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},a=this.hasItemVisual;if(this._itemVisuals[t]=n,d(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r],a[r]=!0);else n[e]=i,a[e]=!0},S.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var R=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};S.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(R,e)),this._graphicEls[t]=e},S.getItemGraphicEl=function(t){return this._graphicEls[t]},S.eachItemGraphicEl=function(t,e){n.each(this._graphicEls,(function(i,n){i&&t&&t.call(e,i,n)}))},S.cloneShallow=function(t){if(!t){var e=n.map(this.dimensions,this.getDimensionInfo,this);t=new w(e,this.hostModel)}if(t._storage=this._storage,b(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?C:A,t},S.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(n.slice(arguments)))})},S.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],S.CHANGABLE_METHODS=["filterSelf","selectRange"];var E=w;t.exports=E},82139:function(t,e,i){var n=i(69008),a=n.createHashMap,r=n.isObject,o=n.map;function s(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}s.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&o(i,c);return new s({categories:n,needCollect:!n,deduplication:!1!==e.dedplication})};var l=s.prototype;function u(t){return t._map||(t._map=a(t.categories))}function c(t){return r(t)&&null!=t.value?t.value:t+""}l.getOrdinal=function(t){return u(this).get(t)},l.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=u(this);return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e};var h=s;t.exports=h},50751:function(t,e,i){var n=i(69008),a=n.createHashMap,r=n.isTypedArray,o=i(77305).enableClassCheck,s=i(8326),l=s.SOURCE_FORMAT_ORIGINAL,u=s.SERIES_LAYOUT_BY_COLUMN,c=s.SOURCE_FORMAT_UNKNOWN,h=s.SOURCE_FORMAT_TYPED_ARRAY,d=s.SOURCE_FORMAT_KEYED_COLUMNS;function p(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===d?{}:[]),this.sourceFormat=t.sourceFormat||c,this.seriesLayoutBy=t.seriesLayoutBy||u,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&a(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}p.seriesDataToSource=function(t){return new p({data:t,sourceFormat:r(t)?h:l,fromDataset:!1})},o(p);var f=p;t.exports=f},54327:function(t,e,i){var n=i(69008),a=i(24040),r=i(6333),o=i(39177),s=i(34476),l=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};function u(t,e){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=n.map(e||[],(function(e){return new a(e,t,t.ecModel)}))}l.prototype={constructor:l,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,i){"function"==typeof t&&(i=e,e=t,t=null),t=t||{},n.isString(t)&&(t={order:t});var a,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(a=e.call(i,this));for(var s=0;!a&&se&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree.data.getItemModel(this.dataIndex),i=this.getLevelModel();return i?e.getModel(t,i.getModel(t)):e.getModel(t)}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},u.prototype={constructor:u,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;i0&&t.unfinished);t.unfinished||this._zr.flush()}}},F.getDom=function(){return this._dom},F.getZr=function(){return this._zr},F.setOption=function(t,e,i){if(this._disposed)this.id;else{var n;if(k(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[E]=!0,!this._model||e){var a=new d(this._api),r=this._theme,o=this._model=new u;o.scheduler=this._scheduler,o.init(null,null,r,a)}this._model.setOption(t,st),i?(this[N]={silent:n},this[E]=!1):(U(this),W.update.call(this),this._zr.flush(),this[N]=!1,this[E]=!1,X.call(this,n),q.call(this,n))}},F.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},F.getModel=function(){return this._model},F.getOption=function(){return this._model&&this._model.getOption()},F.getWidth=function(){return this._zr.getWidth()},F.getHeight=function(){return this._zr.getHeight()},F.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},F.getRenderedCanvas=function(t){if(o.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},F.getSvgDataURL=function(){if(o.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return a.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},F.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,i=this._model,n=[],a=this;L(e,(function(t){i.eachComponent({mainType:t},(function(t){var e=a._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return L(n,(function(t){t.group.ignore=!1})),r}this.id},F.getConnectedDataURL=function(t){if(this._disposed)this.id;else if(o.canvasSupported){var e="svg"===t.type,i=this.group,r=Math.min,s=Math.max,l=1/0;if(pt[i]){var u=l,c=l,h=-1/0,d=-1/0,p=[],f=t&&t.pixelRatio||1;a.each(dt,(function(n,o){if(n.group===i){var l=e?n.getZr().painter.getSvgDom().innerHTML:n.getRenderedCanvas(a.clone(t)),f=n.getDom().getBoundingClientRect();u=r(f.left,u),c=r(f.top,c),h=s(f.right,h),d=s(f.bottom,d),p.push({dom:l,left:f.left,top:f.top})}}));var g=(h*=f)-(u*=f),m=(d*=f)-(c*=f),v=a.createCanvas(),y=n.init(v,{renderer:e?"svg":"canvas"});if(y.resize({width:g,height:m}),e){var _="";return L(p,(function(t){var e=t.left-u,i=t.top-c;_+=''+t.dom+""})),y.painter.getSvgRoot().innerHTML=_,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new x.Rect({shape:{x:0,y:0,width:g,height:m},style:{fill:t.connectedBackgroundColor}})),L(p,(function(t){var e=new x.Image({style:{x:t.left*f-u,y:t.top*f-c,image:t.dom}});y.add(e)})),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},F.convertToPixel=a.curry(H,"convertToPixel"),F.convertFromPixel=a.curry(H,"convertFromPixel"),F.containPixel=function(t,e){if(!this._disposed){var i,n=this._model;return t=_.parseFinder(n,t),a.each(t,(function(t,n){n.indexOf("Models")>=0&&a.each(t,(function(t){var a=t.coordinateSystem;if(a&&a.containPoint)i|=!!a.containPoint(e);else if("seriesModels"===n){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(i|=r.containPoint(e,t))}}),this)}),this),!!i}this.id},F.getVisual=function(t,e){var i=this._model,n=(t=_.parseFinder(i,t,{defaultMainType:"series"})).seriesModel.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=a?n.getItemVisual(a,e):n.getVisual(e)},F.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},F.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var W={prepareAndUpdate:function(t){U(this),W.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,a=this._coordSysMgr,s=this._scheduler;if(e){s.restoreData(e,t),s.performSeriesTasks(e),a.create(e,i),s.performDataProcessorTasks(e,t),Y(this,e),a.update(e,i),$(e),s.performVisualTasks(e,t),J(this,e,i,t);var l=e.get("backgroundColor")||"transparent";if(o.canvasSupported)n.setBackgroundColor(l);else{var u=r.parse(l);l=r.stringify(u,"rgb"),0===u[3]&&(l="transparent")}tt(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var r=[];e.eachComponent((function(a,o){var s=i.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,n,t);l&&l.update&&r.push(s)}else r.push(s)}));var o=a.createHashMap();e.eachSeries((function(a){var r=i._chartsMap[a.__viewId];if(r.updateTransform){var s=r.updateTransform(a,e,n,t);s&&s.update&&o.set(a.uid,1)}else o.set(a.uid,1)})),$(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),Q(i,e,n,t,o),tt(e,this._api)}},updateView:function(t){var e=this._model;e&&(y.markUpdateMethod(t,"updateView"),$(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),J(this,this._model,this._api,t),tt(e,this._api))},updateVisual:function(t){W.update.call(this,t)},updateLayout:function(t){W.update.call(this,t)}};function U(t){var e=t._model,i=t._scheduler;i.restorePipelines(e),i.prepareStageTasks(),K(t,"component",e,i),K(t,"chart",e,i),i.plan()}function Z(t,e,i,n,r){var o=t._model;if(n){var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var u=i.excludeSeriesId;null!=u&&(u=a.createHashMap(_.normalizeToArray(u))),o&&o.eachComponent(l,(function(e){u&&null!=u.get(e.id)||c(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else L(t._componentsViews.concat(t._chartsViews),c);function c(n){n&&n.__alive&&n[e]&&n[e](n.__model,o,t._api,i)}}function Y(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries((function(t){n.updateStreamModes(t,i[t.__viewId])}))}function j(t,e){var i=t.type,n=t.escapeConnect,r=at[i],o=r.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&O(s[0]),this[E]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=a.map(t.batch,(function(e){return(e=a.defaults(a.extend({},e),t)).batch=null,e})));var h,d=[],p="highlight"===i||"downplay"===i;L(u,(function(t){(h=(h=r.action(t,this._model,this._api))||a.extend({},t)).type=o.event||h.type,d.push(h),p?Z(this,l,t,"series"):s&&Z(this,l,t,s.main,s.sub)}),this),"none"===l||p||s||(this[N]?(U(this),W.update.call(this,t),this[N]=!1):W[l].call(this,t)),h=c?{type:o.event||i,escapeConnect:n,batch:d}:d[0],this[E]=!1,!e&&this._messageCenter.trigger(h.type,h)}function X(t){for(var e=this._pendingActions;e.length;){var i=e.shift();j.call(this,i,t)}}function q(t){!t&&this.trigger("updated")}function K(t,e,i,n){for(var a="component"===e,r=a?t._componentsViews:t._chartsViews,o=a?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;ue.get("hoverLayerThreshold")&&!o.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.group.traverse((function(t){t.useHoverLayer=!0}))}}))}(t,e),S(t._zr.dom,e)}function tt(t,e){L(lt,(function(i){i(t,e)}))}F.resize=function(t){if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[E]=!0,i&&U(this),W.update.call(this),this[E]=!1,X.call(this,n),q.call(this,n)}}},F.showLoading=function(t,e){if(this._disposed)this.id;else if(k(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ht[t]){var i=ht[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},F.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},F.makeActionFromEvent=function(t){var e=a.extend({},t);return e.type=rt[t.type],e},F.dispatchAction=function(t,e){this._disposed?this.id:(k(e)||(e={silent:!!e}),at[t.type]&&this._model&&(this[E]?this._pendingActions.push(t):(j.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&o.browser.weChat&&this._throttledZrFlush(),X.call(this,e.silent),q.call(this,e.silent))))},F.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0}},F.on=B("on",!1),F.off=B("off",!1),F.one=B("one",!1);var et=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function it(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))}))}function nt(){this.eventInfo}F._initEvents=function(){L(et,(function(t){var e=function(e){var i,n=this.getModel(),r=e.target;if("globalout"===t)i={};else if(r&&null!=r.dataIndex){var o=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=o&&o.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(i=a.extend({},r.eventData));if(i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&n.getComponent(s,l),c=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:i,model:u,view:c},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),L(rt,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},F.isDisposed=function(){return this._disposed},F.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},F.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,_.setAttribute(this.getDom(),mt,"");var t=this._api,e=this._model;L(this._componentsViews,(function(i){i.dispose(e,t)})),L(this._chartsViews,(function(i){i.dispose(e,t)})),this._zr.dispose(),delete dt[this.id]}},a.mixin(G,l),nt.prototype={constructor:nt,normalizeQuery:function(t){var e={},i={},n={};if(a.isString(t)){var r=O(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};a.each(t,(function(t,a){for(var r=!1,l=0;l0&&c===a.length-u.length){var h=a.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,r=!0)}}s.hasOwnProperty(a)&&(i[a]=t,r=!0),r||(n[a]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:n}},filter:function(t,e,i){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,r=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,r,"name")&&c(u,r,"dataIndex")&&c(u,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,r));function c(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},afterTrigger:function(){this.eventInfo=null}};var at={},rt={},ot=[],st=[],lt=[],ut=[],ct={},ht={},dt={},pt={},ft=new Date-0,gt=new Date-0,mt="_echarts_instance_";function vt(t){pt[t]=!1}var yt=vt;function xt(t){return dt[_.getAttribute(t,mt)]}function _t(t,e){ct[t]=e}function bt(t){st.push(t)}function wt(t,e){It(ot,t,e,1e3)}function St(t,e,i){"function"==typeof e&&(i=e,e="");var n=k(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,D(z.test(n)&&z.test(e)),at[n]||(at[n]={action:i,actionInfo:t}),rt[e]=n}function Mt(t,e){It(ut,t,e,3e3,"visual")}function It(t,e,i,n,a){(P(e)||k(e))&&(i=e,e=n);var r=I.wrapStageHandler(i,a);return r.__prio=e,r.__raw=i,t.push(r),r}function Tt(t,e){ht[t]=e}Mt(2e3,w),bt(p),wt(900,f),Tt("default",M),St({type:"highlight",event:"highlight",update:"highlight"},a.noop),St({type:"downplay",event:"downplay",update:"downplay"},a.noop),_t("light",T),_t("dark",A);e.version="4.8.0",e.dependencies={zrender:"4.3.1"},e.PRIORITY=R,e.init=function(t,e,i){var n=xt(t);if(n)return n;var a=new G(t,e,i);return a.id="ec_"+ft++,dt[a.id]=a,_.setAttribute(t,mt,a.id),function(t){var e="__connectUpdateStatus";function i(t,i){for(var n=0;n0&&(o=null===o?l:Math.min(o,l))}i[a]=o}}return i}(t),i=[];return n.each(t,(function(t){var n,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)n=r.getBandWidth();else if("value"===r.type||"time"===r.type){var s=r.dim+"_"+r.index,l=e[s],h=Math.abs(o[1]-o[0]),d=r.scale.getExtent(),p=Math.abs(d[1]-d[0]);n=l?h/p*l:h}else{var f=t.getData();n=Math.abs(o[1]-o[0])/f.count()}var g=a(t.get("barWidth"),n),m=a(t.get("barMaxWidth"),n),v=a(t.get("barMinWidth")||1,n),y=t.get("barGap"),x=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:g,barMaxWidth:m,barMinWidth:v,barGap:y,barCategoryGap:x,axisKey:c(r),stackId:u(t)})})),p(i)}function p(t){var e={};n.each(t,(function(t,i){var n=t.axisKey,a=t.bandWidth,r=e[n]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;e[n]=r;var s=t.stackId;o[s]||r.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var u=t.barMaxWidth;u&&(o[s].maxWidth=u);var c=t.barMinWidth;c&&(o[s].minWidth=c);var h=t.barGap;null!=h&&(r.gap=h);var d=t.barCategoryGap;null!=d&&(r.categoryGap=d)}));var i={};return n.each(e,(function(t,e){i[e]={};var r=t.stacks,o=t.bandWidth,s=a(t.categoryGap,o),l=a(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),n.each(r,(function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,u-=n+l*n,c--}else{var n=h;e&&en&&(n=i),n!==h&&(t.width=n,u-=n+l*n,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;n.each(r,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;n.each(r,(function(t,n){i[e][n]=i[e][n]||{bandWidth:o,offset:f,width:t.width},f+=t.width*(1+l)}))})),i}function f(t,e,i){if(t&&e){var n=t[c(e)];return null!=n&&null!=i&&(n=n[u(i)]),n}}var g={seriesType:"bar",plan:o(),reset:function(t){if(m(t)&&v(t)){var e=t.getData(),i=t.coordinateSystem,n=i.grid.getRect(),a=i.getBaseAxis(),r=i.getOtherAxis(a),o=e.mapDimension(r.dim),s=e.mapDimension(a.dim),u=r.isHorizontal(),c=u?0:1,h=f(d([t]),a,t).width;return h>.5||(h=.5),{progress:function(t,e){var d,p=t.count,f=new l(2*p),g=new l(2*p),m=new l(p),v=[],x=[],_=0,b=0;for(;null!=(d=t.next());)x[c]=e.get(o,d),x[1-c]=e.get(s,d),v=i.dataToPoint(x,null,v),g[_]=u?n.x+n.width:v[0],f[_++]=v[0],g[_]=u?v[1]:n.y+n.height,f[_++]=v[1],m[b++]=d;e.setLayout({largePoints:f,largeDataIndices:m,largeBackgroundPoints:g,barWidth:h,valueAxisStart:y(a,r,!1),backgroundStart:u?n.x:n.y,valueAxisHorizontal:u})}}}}};function m(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function v(t){return t.pipelineContext&&t.pipelineContext.large}function y(t,e,i){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}e.getLayoutOnAxis=function(t){var e=[],i=t.axis,a="axis0";if("category"===i.type){for(var r=i.getBandWidth(),o=0;o=0?"p":"n",k=b;if(x&&(o[l][L]||(o[l][L]={p:b,n:b}),k=o[l][L][P]),_)M=k,I=(C=i.dataToPoint([D,L]))[1]+d,T=C[0]-b,A=p,Math.abs(T)=0?"p":"n",O=S;if(b&&(l[c][P]||(l[c][P]={p:S,n:S}),O=l[c][P][k]),"radius"===f.dim){var R=f.dataToRadius(L)-S,E=n.dataToAngle(P);Math.abs(R)=0;o--)r=n.merge(r,e[o],!0);t.defaultOption=r}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});s(p,{registerWhenExtend:!0}),r.enableSubTypeDefaulter(p),r.enableTopologicalTravel(p,(function(t){var e=[];n.each(p.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=n.map(e,(function(t){return l(t).main})),"dataset"!==t&&n.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e})),n.mixin(p,h);var f=p;t.exports=f},77265:function(t,e,i){i(96311).__DEV__;var n=i(69008),a=n.each,r=n.filter,o=n.map,s=n.isArray,l=n.indexOf,u=n.isObject,c=n.isString,h=n.createHashMap,d=n.assert,p=n.clone,f=n.merge,g=n.extend,m=n.mixin,v=i(90830),y=i(24040),x=i(16172),_=i(82724),b=i(17948),w=i(67063).resetSourceDefaulter,S="\0_ec_inner",M=y.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new y(i),this._optionManager=n},setOption:function(t,e){d(!(S in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):I.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=i.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o.length&&a(o,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,i=this._componentsMap,n=[];w(this),a(t,(function(t,i){null!=t&&(x.hasClass(i)?i&&n.push(i):e[i]=null==e[i]?p(t):f(e[i],t,!0))})),x.topologicalTravel(n,x.getAllClassMainTypes(),(function(n,r){var o=v.normalizeToArray(t[n]),l=v.mappingToExists(i.get(n),o);v.makeIdAndName(l),a(l,(function(t,e){var i=t.option;u(i)&&(t.keyInfo.mainType=n,t.keyInfo.subType=function(t,e,i){var n=e.type?e.type:i?i.subType:x.determineSubType(t,e);return n}(n,i,t.exist))}));var c=function(t,e){s(e)||(e=e?[e]:[]);var i={};return a(e,(function(e){i[e]=(t.get(e)||[]).slice()})),i}(i,r);e[n]=[],i.set(n,[]),a(l,(function(t,a){var r=t.exist,o=t.option;if(d(u(o)||r,"Empty component definition"),o){var s=x.getClass(n,t.keyInfo.subType,!0);if(r&&r.constructor===s)r.name=t.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var l=g({dependentModels:c,componentIndex:a},t.keyInfo);r=new s(o,this,this,l),g(r,l),r.init(o,this,this,l),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);i.get(n)[a]=r,e[n][a]=r.option}),this),"series"===n&&T(this,i.get("series"))}),this),this._seriesIndicesMap=h(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=p(this.option);return a(t,(function(e,i){if(x.hasClass(i)){for(var n=(e=v.normalizeToArray(e)).length-1;n>=0;n--)v.isIdInner(e[n])&&e.splice(n,1);t[i]=e}})),delete t[S],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,a=t.id,u=t.name,c=this._componentsMap.get(e);if(!c||!c.length)return[];if(null!=n)s(n)||(n=[n]),i=r(o(n,(function(t){return c[t]})),(function(t){return!!t}));else if(null!=a){var h=s(a);i=r(c,(function(t){return h&&l(a,t.id)>=0||!h&&t.id===a}))}else if(null!=u){var d=s(u);i=r(c,(function(t){return d&&l(u,t.name)>=0||!d&&t.name===u}))}else i=c.slice();return A(i,t)},findComponents:function(t){var e,i,n,a,o,s=t.query,l=t.mainType,u=(i=l+"Index",n=l+"Id",a=l+"Name",!(e=s)||null==e[i]&&null==e[n]&&null==e[a]?null:{mainType:l,index:e[i],id:e[n],name:e[a]}),c=u?this.queryComponents(u):this._componentsMap.get(l);return o=A(c,t),t.filter?r(o,t.filter):o},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,n.each((function(t,n){a(t,(function(t,a){e.call(i,n,t,a)}))}));else if(c(t))a(n.get(t),e,i);else if(u(t)){var r=this.findComponents(t);a(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return r(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return r(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){a(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},eachRawSeries:function(t,e){a(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){a(this._seriesIndices,(function(n){var a=this._componentsMap.get("series")[n];a.subType===t&&e.call(i,a,n)}),this)},eachRawSeriesByType:function(t,e,i){return a(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){T(this,r(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;T(this,e.get("series"));var i=[];e.each((function(t,e){i.push(e)})),x.topologicalTravel(i,x.getAllClassMainTypes(),(function(i,n){a(e.get(i),(function(e){("series"!==i||!function(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,a=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=a&&t.name!==a}}(e,t))&&e.restoreData()}))}))}});function I(t){var e,i,n;this.option={},this.option[S]=1,this._componentsMap=h({series:[]}),this._seriesIndices,this._seriesIndicesMap,e=t,i=this._theme.option,n=e.color&&!e.colorLayer,a(i,(function(t,i){"colorLayer"===i&&n||x.hasClass(i)||("object"==typeof t?e[i]=e[i]?f(e[i],t,!1):p(t):null==e[i]&&(e[i]=t))})),f(t,_,!1),this.mergeOption(t)}function T(t,e){t._seriesIndicesMap=h(t._seriesIndices=o(e,(function(t){return t.componentIndex}))||[])}function A(t,e){return e.hasOwnProperty("subType")?r(t,(function(t){return t.subType===e.subType})):t}m(M,b);var C=M;t.exports=C},24040:function(t,e,i){var n=i(69008),a=i(12973),r=i(90830).makeInner,o=i(77305),s=o.enableClassExtend,l=o.enableClassCheck,u=i(14870),c=i(72935),h=i(3596),d=i(24782),p=n.mixin,f=r();function g(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function m(t,e,i){for(var n=0;n=e:"max"===i?t<=e:t===e})(a[o],t,n)||(r=!1)}})),r}h.prototype={constructor:h,setOption:function(t,e){t&&n.each(a.normalizeToArray(t.series),(function(t){t&&t.data&&n.isTypedArray(t.data)&&n.setAsPrimitive(t.data)})),t=s(t);var i,c,h=this._optionBackup,p=d.call(this,t,e,!h);this._newBaseOption=p.baseOption,h?(i=h.baseOption,c=p.baseOption,o(c=c||{},(function(t,e){if(null!=t){var n=i[e];if(r.hasClass(e)){t=a.normalizeToArray(t),n=a.normalizeToArray(n);var o=a.mappingToExists(n,t);i[e]=l(o,(function(t){return t.option&&t.exist?u(t.exist,t.option,!0):t.exist||t.option}))}else i[e]=u(n,t,!0)}})),p.timelineOptions.length&&(h.timelineOptions=p.timelineOptions),p.mediaList.length&&(h.mediaList=p.mediaList),p.mediaDefault&&(h.mediaDefault=p.mediaDefault)):this._optionBackup=p},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=l(e.timelineOptions,s),this._mediaList=l(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=s(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,i,n=this._api.getWidth(),a=this._api.getHeight(),r=this._mediaList,o=this._mediaDefault,u=[],c=[];if(!r.length&&!o)return c;for(var h=0,d=r.length;h":"\n",d="richText"===a,p={},f=0;function g(t){return{renderMode:a,content:s(l(t)),style:p}}var m=this.getData(),v=m.mapDimension("defaultedTooltip",!0),y=v.length,x=this.getRawValue(t),_=n.isArray(x),w=m.getItemVisual(t,"color");n.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=y>1||_&&!y?function(i){var c=n.reduce(i,(function(t,e,i){var n=m.getDimensionInfo(i);return t|(n&&!1!==n.tooltip&&null!=n.displayName)}),0),h=[];function g(t,i){var n=m.getDimensionInfo(i);if(n&&!1!==n.otherDims.tooltip){var g=n.type,v="sub"+r.seriesIndex+"at"+f,y=u({color:w,type:"subItem",renderMode:a,markerId:v}),x="string"==typeof y?y:y.content,_=(c?x+s(n.displayName||"-")+": ":"")+s("ordinal"===g?t+"":"time"===g?e?"":o("yyyy/MM/dd hh:mm:ss",t):l(t));_&&h.push(_),d&&(p[v]=w,++f)}}v.length?n.each(v,(function(e){g(b(m,t,e),e)})):n.each(i,g);var y=c?d?"\n":"
":"",x=y+h.join(y||", ");return{renderMode:a,content:x,style:p}}(x):g(y?b(m,t,v[0]):_?x[0]:x),M=S.content,I=r.seriesIndex+"at"+f,T=u({color:w,type:"item",renderMode:a,markerId:I});p[I]=w,++f;var A=m.getName(t),C=this.name;c.isNameSpecified(this)||(C=""),C=C?s(C)+(e?": ":h):"";var D="string"==typeof T?T:T.content;return{html:e?D+C+M:C+D+(A?s(A)+": "+M:M),markers:p}},isAnimationEnabled:function(){if(a.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,a=d.getColorFromPalette.call(this,t,e,i);return a||(a=n.getColorFromPalette(t,e,i)),a},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function M(t){var e=t.name;c.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),i=e.mapDimension("seriesName",!0),a=[];return n.each(i,(function(t){var i=e.getDimensionInfo(t);i.displayName&&a.push(i.displayName)})),a.join(" ")}(t)||e)}function I(t){return t.model.getRawData().count()}function T(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),A}function A(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function C(t,e){n.each(t.CHANGABLE_METHODS,(function(i){t.wrapMethod(i,n.curry(D,e))}))}function D(t){var e=L(t);e&&e.setOutputEnd(this.count())}function L(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}n.mixin(S,p),n.mixin(S,d);var P=S;t.exports=P},82724:function(t){var e="";"undefined"!=typeof navigator&&(e=navigator.platform||"");var i={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:e.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};t.exports=i},72935:function(t,e,i){var n=i(76282)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a={getAreaStyle:function(t,e){return n(this,t,e)}};t.exports=a},51483:function(t){t.exports={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")}}}},17948:function(t,e,i){var n=i(90830),a=n.makeInner,r=n.normalizeToArray,o=a();var s={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(t,e,i){var n=o(e=e||this),a=n.colorIdx||0,s=n.colorNameMap=n.colorNameMap||{};if(s.hasOwnProperty(t))return s[t];var l=r(this.get("color",!0)),u=this.get("colorLayer",!0),c=null!=i&&u?function(t,e){for(var i=t.length,n=0;ne)return t[n];return t[i-1]}(u,i):l;if((c=c||l)&&c.length){var h=c[a];return t&&(s[t]=h),n.colorIdx=(a+1)%c.length,h}}};t.exports=s},64530:function(t,e,i){var n=i(17751).retrieveRawValue,a=i(17010),r=a.getTooltipMarker,o=a.formatTpl,s=i(90830).getTooltipRenderMode,l=/\{@(.+?)\}/g,u={getDataParams:function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),l=i.getRawDataItem(t),u=i.getItemVisual(t,"color"),c=i.getItemVisual(t,"borderColor"),h=this.ecModel.getComponent("tooltip"),d=h&&h.get("renderMode"),p=s(d),f=this.mainType,g="series"===f,m=i.userOutput;return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:o,dataIndex:a,data:l,dataType:e,value:n,color:u,borderColor:c,dimensionNames:m?m.dimensionNames:null,encode:m?m.encode:null,marker:r({color:u,renderMode:p}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,a,r){e=e||"normal";var s=this.getData(i),u=s.getItemModel(t),c=this.getDataParams(t,i);null!=a&&c.value instanceof Array&&(c.value=c.value[a]);var h=u.get("normal"===e?[r||"label","formatter"]:[e,r||"label","formatter"]);return"function"==typeof h?(c.status=e,c.dimensionIndex=a,h(c)):"string"==typeof h?o(h,c).replace(l,(function(e,i){var a=i.length;return"["===i.charAt(0)&&"]"===i.charAt(a-1)&&(i=+i.slice(1,a-1)),n(s,t,i)})):void 0},getRawValue:function(t,e){return n(this.getData(e),t)},formatTooltip:function(){}};t.exports=u},24782:function(t,e,i){var n=i(76282)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),a={getItemStyle:function(t,e){var i=n(this,t,e),a=this.getBorderLineDash();return a&&(i.lineDash=a),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=a},14870:function(t,e,i){var n=i(76282)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getLineStyle:function(t){var e=n(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"!==e&&null!=e&&("dashed"===e?[n,n]:[i,i])}};t.exports=a},76282:function(t,e,i){var n=i(69008);t.exports=function(t){for(var e=0;e=0||a&&n.indexOf(a,s)<0)){var l=e.getShallow(s);null!=l&&(r[t[o][0]]=l)}}return r}}},3596:function(t,e,i){var n=i(63603),a=i(18993),r=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(r):null)},getFont:function(){return a.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return n.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},28927:function(t,e,i){i(96311).__DEV__;var n=i(69008),a=n.createHashMap,r=(n.retrieve,n.each);function o(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=a(),this.categoryAxisMap=a(),this.firstCategoryDimIndex=null}var s={cartesian2d:function(t,e,i,n){var a=t.getReferringComponents("xAxis")[0],r=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",a),i.set("y",r),l(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),l(r)&&(n.set("y",r),e.firstCategoryDimIndex,e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){var a=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",a),l(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var a=t.getReferringComponents("polar")[0],r=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",r),i.set("angle",o),l(r)&&(n.set("radius",r),e.firstCategoryDimIndex=0),l(o)&&(n.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var a=t.ecModel,o=a.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=o.dimensions.slice();r(o.parallelAxisIndex,(function(t,r){var o=a.getComponent("parallelAxis",t),u=s[r];i.set(u,o),l(o)&&null==e.firstCategoryDimIndex&&(n.set(u,o),e.firstCategoryDimIndex=r)}))}};function l(t){return"category"===t.get("type")}e.getCoordSysInfoBySeries=function(t){var e=t.get("coordinateSystem"),i=new o(e),n=s[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}},5932:function(t,e,i){var n=i(69008),a=n.each,r=n.isArray,o=n.isObject,s=i(30090),l=i(90830).normalizeToArray;function u(t){a(c,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var c=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],h=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];t.exports=function(t,e){s(t,e),t.series=l(t.series),a(t.series,(function(t){if(o(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var i=function(t,e){e=e.split(",");for(var i=t,n=0;ne&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i1)"string"==typeof o?l=e[o]:"function"==typeof o&&(l=o),l&&t.setData(r.downSample(r.mapDimension(c.dim),1/p,l,i))}}}}},61619:function(t,e,i){var n=i(69008),a=n.createHashMap,r=n.each;function o(t){r(t,(function(e,i){var n=[],a=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(r,(function(r,l,u){var c,h,d=o.get(e.stackedDimension,u);if(isNaN(d))return a;s?h=o.getRawIndex(u):c=o.get(e.stackedByDimension,u);for(var p=NaN,f=i-1;f>=0;f--){var g=t[f];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d+=m,p=m;break}}}return n[0]=d,n[1]=p,n}));o.hostModel.setData(l),e.data=l}))}t.exports=function(t){var e=a();t.eachSeries((function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=t.getData(),r={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(r)}})),e.each(o)}},48149:function(t,e,i){var n=i(86957),a=i(17010),r=i(22510),o=i(74943),s=n.round,l=r.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,i=this._extent,n=this._niceExtent,a=this._intervalPrecision,r=[];if(!e)return r;i[0]1e4)return[];var l=r.length?r[r.length-1]:n[1];return i[1]>l&&(t?r.push(s(l+e,a)):r.push(i[1])),r},getMinorTicks:function(t){for(var e=this.getTicks(!0),i=[],a=this.getExtent(),r=1;ra[0]&&h0;)n*=10;var a=[r.round(d(e[0]/n)*n),r.round(h(e[1]/n)*n)];this._interval=n,this._niceExtent=a}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function m(t,e){return c(t,u(e))}n.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=f(e)/f(this.base),s[t].call(this,e)}})),g.create=function(){return new g};var v=g;t.exports=v},43712:function(t,e,i){var n=i(69008),a=i(22510),r=i(82139),o=a.prototype,s=a.extend({type:"ordinal",init:function(t,e){t&&!n.isArray(t)||(t=new r({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:n.noop,niceExtent:n.noop});s.create=function(){return new s};var l=s;t.exports=l},22510:function(t,e,i){var n=i(77305);function a(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}a.prototype.parse=function(t){return t},a.prototype.getSetting=function(t){return this._setting[t]},a.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},a.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},a.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},a.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},a.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(t){this._isBlank=t},a.prototype.getLabel=null,n.enableClassExtend(a),n.enableClassManagement(a,{registerWhenExtend:!0});var r=a;t.exports=r},79262:function(t,e,i){var n=i(69008),a=i(86957),r=i(17010),o=i(74943),s=i(48149),l=s.prototype,u=Math.ceil,c=Math.floor,h=1e3,d=6e4,p=36e5,f=864e5,g=s.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return r.formatTime(e[0],i,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=f,e[1]+=f),e[1]===-1/0&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-f}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var n=this._interval;t.fixMin||(e[0]=a.round(c(e[0]/n)*n)),t.fixMax||(e[1]=a.round(u(e[1]/n)*n))},niceTicks:function(t,e,i){t=t||10;var n=this._extent,r=n[1]-n[0],s=r/t;null!=e&&si&&(s=i);var l=m.length,h=function(t,e,i,n){for(;i>>1;t[a][1]t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=function(t,e,i,o){var l={},u=t[1]-t[0],c=l.interval=n.nice(u/e,!0);null!=i&&co&&(c=l.interval=o);var h=l.intervalPrecision=r(c);return s(l.niceTickExtent=[a(Math.ceil(t[0]/c)*c,h),a(Math.floor(t[1]/c)*c,h)],t),l},e.getIntervalPrecision=r,e.fixExtent=s},69569:function(t,e,i){var n=i(69008),a=n.each,r=n.map,o=n.isFunction,s=n.createHashMap,l=n.noop,u=i(222).createTask,c=i(58744).getUID,h=i(77265),d=i(6900),p=i(90830).normalizeToArray;function f(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=s()}var g=f.prototype;function m(t,e,i,n,r){var o;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}r=r||{},a(e,(function(e,a){if(!r.visualType||r.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){s(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),v(c,n);var p=t.getPerformArgs(c,r.block);d.each((function(t){t.perform(p)})),o|=c.perform(p)}else u&&u.each((function(a,l){s(r,a)&&a.dirty();var u=t.getPerformArgs(a,r.block);u.skip=!e.performRawSeries&&i.isSeriesFiltered(a.context.model),v(a,n),o|=a.perform(u)}))}})),t.unfinished|=o}g.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},g.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,r=n&&n.modDataCount;return{step:a,modBy:null!=r?Math.ceil(r/a):null,modDataCount:r}}},g.getPipeline=function(t){return this._pipelineMap.get(t)},g.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),a=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,r=t.get("large")&&n>=t.get("largeThreshold"),o="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:a,modDataCount:o,large:r}},g.restorePipelines=function(t){var e=this,i=e._pipelineMap=s();t.eachSeries((function(t){var n=t.getProgressive(),a=t.uid;i.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),A(e,t,t.dataTask)}))},g.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;a(this._allHandlers,(function(n){var r=t.get(n.uid)||t.set(n.uid,[]);n.reset&&function(t,e,i,n,a){var r=i.seriesTaskMap||(i.seriesTaskMap=s()),o=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):o?n.eachRawSeriesByType(o,c):l&&l(n,a).each(c);function c(i){var o=i.uid,s=r.get(o)||r.set(o,u({plan:w,reset:S,count:T}));s.context={model:i,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},A(t,i,s)}var h=t._pipelineMap;r.each((function(t,e){h.get(e)||(t.dispose(),r.removeKey(e))}))}(this,n,r,e,i),n.overallReset&&function(t,e,i,n,r){var o=i.overallTask=i.overallTask||u({reset:y});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:t};var l=o.agentStubMap=o.agentStubMap||s(),c=e.seriesType,h=e.getTargetSeries,d=!0,p=e.modifyOutputEnd;c?n.eachRawSeriesByType(c,f):h?h(n,r).each(f):(d=!1,a(n.getSeries(),f));function f(e){var i=e.uid,n=l.get(i);n||(n=l.set(i,u({reset:x,onDirty:b})),o.dirty()),n.context={model:e,overallProgress:d,modifyOutputEnd:p},n.agent=o,n.__block=d,A(t,e,n)}var g=t._pipelineMap;l.each((function(t,e){g.get(e)||(t.dispose(),o.dirty(),l.removeKey(e))}))}(this,n,r,e,i)}),this)},g.prepareView=function(t,e,i,n){var a=t.renderTask,r=a.context;r.model=e,r.ecModel=i,r.api=n,a.__block=!t.incrementalPrepareRender,A(this,e,a)},g.performDataProcessorTasks=function(t,e){m(this,this._dataProcessorHandlers,t,e,{block:!0})},g.performVisualTasks=function(t,e,i){m(this,this._visualHandlers,t,e,i)},g.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},g.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var v=g.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function y(t){t.overallReset(t.ecModel,t.api,t.payload)}function x(t,e){return t.overallProgress&&_}function _(){this.agent.dirty(),this.getDownstream().dirty()}function b(){this.agent&&this.agent.dirty()}function w(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function S(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=p(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?r(e,(function(t,e){return I(e)})):M}var M=I(0);function I(t){return function(e,i){var n=i.data,a=i.resetDefines[t];if(a&&a.dataEach)for(var r=e.start;r=1)&&(t=1),t}s===c&&u===h||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=function(t,e){var i,n;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((i=t._reset(t.context))&&i.progress&&(n=i.forceFirstProgress,i=i.progress),a(i)&&!i.length&&(i=null));t._progress=i,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),n}(this,n)),this._modBy=c,this._modDataCount=h;var p=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,g=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(o||f1&&n>0?s:o}};return r;function o(){return e=t?null:r=0&&i.push(t)})),i}(s.originalDeps=e(o),t);s.entryCount=l.length,0===s.entryCount&&r.push(o),n.each(l,(function(t){n.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(a,t);n.indexOf(e.successor,t)<0&&e.successor.push(o)}))})),{graph:a,noEntryList:r}}(a),l=s.graph,u=s.noEntryList,c={};for(n.each(t,(function(t){c[t]=!0}));u.length;){var h=u.pop(),d=l[h],p=!!c[h];p&&(r.call(o,h,d.originalDeps.slice()),delete c[h]),n.each(d.successor,p?g:f)}n.each(c,(function(){throw new Error("Circle dependency may exists")}))}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){c[t]=!0,f(t)}}}},17010:function(t,e,i){var n=i(69008),a=i(63603),r=i(86957);var o=n.normalizeCssArray,s=/([&<>"'])/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"};function u(t){return null==t?"":(t+"").replace(s,(function(t,e){return l[e]}))}var c=["a","b","c","d","e","f","g"],h=function(t,e){return"{"+t+(null==e?"":e)+"}"};function d(t,e){return"0000".substr(0,e-(t+="").length)+t}var p=a.truncateText;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},e.normalizeCssArray=o,e.encodeHTML=u,e.formatTpl=function(t,e,i){n.isArray(e)||(e=[e]);var a=e.length;if(!a)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:r,content:"{marker"+o+"|} ",style:{color:i}}:""},e.formatTime=function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=r.parseDate(e),a=i?"UTC":"",o=n["get"+a+"FullYear"](),s=n["get"+a+"Month"]()+1,l=n["get"+a+"Date"](),u=n["get"+a+"Hours"](),c=n["get"+a+"Minutes"](),h=n["get"+a+"Seconds"](),p=n["get"+a+"Milliseconds"]();return t=t.replace("MM",d(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",d(l,2)).replace("d",l).replace("hh",d(u,2)).replace("h",u).replace("mm",d(c,2)).replace("m",c).replace("ss",d(h,2)).replace("s",h).replace("SSS",d(p,3))},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=p,e.getTextBoundingRect=function(t){return a.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},e.getTextRect=function(t,e,i,n,r,o,s,l){return a.getBoundingRect(t,e,i,n,r,l,o,s)},e.windowOpen=function(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location=t}else window.open(t,e)}},18993:function(t,e,i){var n=i(69008),a=i(6226),r=i(83720),o=i(26237),s=i(47764),l=i(60397),u=i(74330),c=i(89444);e.Image=c;var h=i(27796);e.Group=h;var d=i(99999);e.Text=d;var p=i(67679);e.Circle=p;var f=i(63477);e.Sector=f;var g=i(71908);e.Ring=g;var m=i(66751);e.Polygon=m;var v=i(70391);e.Polyline=v;var y=i(74639);e.Rect=y;var x=i(330);e.Line=x;var _=i(53663);e.BezierCurve=_;var b=i(17745);e.Arc=b;var w=i(87500);e.CompoundPath=w;var S=i(57123);e.LinearGradient=S;var M=i(29683);e.RadialGradient=M;var I=i(9806);e.BoundingRect=I;var T=i(61465);e.IncrementalDisplayable=T;var A=i(26020),C=Math.max,D=Math.min,L={},P="emphasis",k="normal",O=1,R={},E={};function N(t,e){E[t]=e}function z(t,e,i,n){var r=a.createFromString(t,e);return i&&("center"===n&&(i=B(i,r.getBoundingRect())),G(r,i)),r}function B(t,e){var i,n=e.width/e.height,a=t.height*n;return i=a<=t.width?t.height:(a=t.width)/n,{x:t.x+t.width/2-a/2,y:t.y+t.height/2-i/2,width:a,height:i}}var V=a.mergePath;function G(t,e){if(t.applyTransform){var i=t.getBoundingRect().calculateTransform(e);t.applyTransform(i)}}var F=A.subPixelOptimize;function H(t){return null!=t&&"none"!==t}var W=n.createHashMap(),U=0;function Z(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var i=t.__zr,n=t.useHoverLayer&&i&&"canvas"===i.painter.type;if(t.__highlighted=n?"layer":"plain",!(t.isGroup||!i&&t.useHoverLayer)){var a=t,r=t.style;n&&(r=(a=i.addHover(t)).style),st(r),n||function(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var i=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var n=t.style;for(var a in e)null!=e[a]&&(i[a]=n[a]);i.fill=n.fill,i.stroke=n.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}(a),r.extendFrom(e),Y(r,e,"fill"),Y(r,e,"stroke"),ot(r),n||(t.dirty(!1),t.z2+=1)}}}function Y(t,e,i){!H(e[i])&&H(t[i])&&(t[i]=function(t){if("string"!=typeof t)return t;var e=W.get(t);return e||(e=r.lift(t,-.1),U<1e4&&(W.set(t,e),U++)),e}(t[i]))}function j(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var i=t.style,n=t.__cachedNormalStl;n&&(st(i),t.setStyle(n),ot(i));var a=t.__cachedNormalZ2;null!=a&&t.z2-a==1&&(t.z2=a)}}function X(t,e,i){var n,a=k,r=k;t.__highlighted&&(a=P,n=!0),e(t,i),t.__highlighted&&(r=P,n=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,i)})),n&&t.__highDownOnUpdate&&t.__highDownOnUpdate(a,r)}function q(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,j(t),Z(t))}function K(t){!tt(this,t)&&!this.__highByOuter&&X(this,Z)}function $(t){!tt(this,t)&&!this.__highByOuter&&X(this,j)}function J(t){this.__highByOuter|=1<<(t||0),X(this,Z)}function Q(t){!(this.__highByOuter&=~(1<<(t||0)))&&X(this,j)}function tt(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function et(t,e){var i=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!i||t.__highDownDispatcher){var n=i?"off":"on";t[n]("mouseover",K)[n]("mouseout",$),t[n]("emphasis",J)[n]("normal",Q),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!i}}function it(t,e,i,a,r){return nt(t,e,a,r),i&&n.extend(t,i),t}function nt(t,e,i,a){if((i=i||L).isRectText){var r;i.getTextPosition?r=i.getTextPosition(e,a):"outside"===(r=e.getShallow("position")||(a?null:"inside"))&&(r="top"),t.textPosition=r,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=n.retrieve2(e.getShallow("distance"),a?null:5)}var s,l=e.ecModel,u=l&&l.option.textStyle,c=function(t){var e;for(;t&&t!==t.ecModel;){var i=(t.option||L).rich;if(i)for(var n in e=e||{},i)i.hasOwnProperty(n)&&(e[n]=1);t=t.parentModel}return e}(e);if(c)for(var h in s={},c)if(c.hasOwnProperty(h)){var d=e.getModel(["rich",h]);at(s[h]={},d,u,i,a)}return t.rich=s,at(t,e,u,i,a,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function at(t,e,i,a,r,o){i=!r&&i||L,t.textFill=rt(e.getShallow("color"),a)||i.color,t.textStroke=rt(e.getShallow("textBorderColor"),a)||i.textBorderColor,t.textStrokeWidth=n.retrieve2(e.getShallow("textBorderWidth"),i.textBorderWidth),r||(o&&(t.insideRollbackOpt=a,ot(t)),null==t.textFill&&(t.textFill=a.autoColor)),t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&a.disableBox||(t.textBackgroundColor=rt(e.getShallow("backgroundColor"),a),t.textPadding=e.getShallow("padding"),t.textBorderColor=rt(e.getShallow("borderColor"),a),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function rt(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function ot(t){var e,i=t.textPosition,n=t.insideRollbackOpt;if(n&&null==t.textFill){var a=n.autoColor,r=n.isRectText,o=n.useInsideStyle,s=!1!==o&&(!0===o||r&&i&&"string"==typeof i&&i.indexOf("inside")>=0),l=!s&&null!=a;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=a,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=a)}t.insideRollback=e}function st(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function lt(t,e,i,n,a,r){if("function"==typeof a&&(r=a,a=null),n&&n.isAnimationEnabled()){var o=t?"Update":"",s=n.getShallow("animationDuration"+o),l=n.getShallow("animationEasing"+o),u=n.getShallow("animationDelay"+o);"function"==typeof u&&(u=u(a,n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null)),"function"==typeof s&&(s=s(a)),s>0?e.animateTo(i,s,u||0,l,r,!!r):(e.stopAnimation(),e.attr(i),r&&r())}else e.stopAnimation(),e.attr(i),r&&r()}function ut(t,e,i,n,a){lt(!0,t,e,i,n,a)}function ct(t,e,i){return e&&!n.isArrayLike(e)&&(e=u.getLocalTransform(e)),i&&(e=o.invert([],e)),s.applyTransform([],t,e)}function ht(t,e,i,n,a,r,o,s){var l,u=i-t,c=n-e,h=o-a,d=s-r,p=dt(h,d,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-a,g=e-r,m=dt(f,g,u,c)/p;if(m<0||m>1)return!1;var v=dt(f,g,h,d)/p;return!(v<0||v>1)}function dt(t,e,i,n){return t*n-i*e}N("circle",p),N("sector",f),N("ring",g),N("polygon",m),N("polyline",v),N("rect",y),N("line",x),N("bezierCurve",_),N("arc",b),e.Z2_EMPHASIS_LIFT=1,e.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},e.extendShape=function(t){return l.extend(t)},e.extendPath=function(t,e){return a.extendFromString(t,e)},e.registerShape=N,e.getShapeClass=function(t){if(E.hasOwnProperty(t))return E[t]},e.makePath=z,e.makeImage=function(t,e,i){var n=new c({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var a={width:t.width,height:t.height};n.setStyle(B(e,a))}}});return n},e.mergePath=V,e.resizePath=G,e.subPixelOptimizeLine=function(t){return A.subPixelOptimizeLine(t.shape,t.shape,t.style),t},e.subPixelOptimizeRect=function(t){return A.subPixelOptimizeRect(t.shape,t.shape,t.style),t},e.subPixelOptimize=F,e.setElementHoverStyle=q,e.setHoverStyle=function(t,e){et(t,!0),X(t,q,e)},e.setAsHighDownDispatcher=et,e.isHighDownDispatcher=function(t){return!(!t||!t.__highDownDispatcher)},e.getHighlightDigit=function(t){var e=R[t];return null==e&&O<=32&&(e=R[t]=O++),e},e.setLabelStyle=function(t,e,i,a,r,o,s){var l,u=(r=r||L).labelFetcher,c=r.labelDataIndex,h=r.labelDimIndex,d=r.labelProp,p=i.getShallow("show"),f=a.getShallow("show");(p||f)&&(u&&(l=u.getFormattedLabel(c,"normal",null,h,d)),null==l&&(l=n.isFunction(r.defaultText)?r.defaultText(c,r):r.defaultText));var g=p?l:null,m=f?n.retrieve2(u?u.getFormattedLabel(c,"emphasis",null,h,d):null,l):null;null==g&&null==m||(it(t,i,o,r),it(e,a,s,r,!0)),t.text=g,e.text=m},e.modifyLabelStyle=function(t,e,i){var a=t.style;e&&(st(a),t.setStyle(e),ot(a)),a=t.__hoverStl,i&&a&&(st(a),n.extend(a,i),ot(a))},e.setTextStyle=it,e.setText=function(t,e,i){var n,a={isRectText:!0};!1===i?n=!0:a.autoColor=i,nt(t,e,a,n)},e.getFont=function(t,e){var i=e&&e.getModel("textStyle");return n.trim([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))},e.updateProps=ut,e.initProps=function(t,e,i,n,a){lt(!1,t,e,i,n,a)},e.getTransform=function(t,e){for(var i=o.identity([]);t&&t!==e;)o.mul(i,t.getLocalTransform(),i),t=t.parent;return i},e.applyTransform=ct,e.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),r=["left"===t?-n:"right"===t?n:0,"top"===t?-a:"bottom"===t?a:0];return r=ct(r,e,i),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"},e.groupTransition=function(t,e,i,a){if(t&&e){var r,o=(r={},t.traverse((function(t){!t.isGroup&&t.anid&&(r[t.anid]=t)})),r);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var n=l(t);t.attr(l(e)),ut(t,n,i,t.dataIndex)}}}))}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=n.extend({},t.shape)),e}},e.clipPointsByRect=function(t,e){return n.map(t,(function(t){var i=t[0];i=C(i,e.x),i=D(i,e.x+e.width);var n=t[1];return n=C(n,e.y),[i,n=D(n,e.y+e.height)]}))},e.clipRectByRect=function(t,e){var i=C(t.x,e.x),n=D(t.x+t.width,e.x+e.width),a=C(t.y,e.y),r=D(t.y+t.height,e.y+e.height);if(n>=i&&r>=a)return{x:i,y:a,width:n-i,height:r-a}},e.createIcon=function(t,e,i){var a=(e=n.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(a.image=t.slice(8),n.defaults(a,i),new c(e)):z(t.replace("path://",""),e,i,"center")},e.linePolygonIntersect=function(t,e,i,n,a){for(var r=0,o=a[a.length-1];rn||l.newline?(r=0,c=m,o+=s+i,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(g?-g.y+p.y:0);(h=o+v)>a||l.newline?(r+=s+i,o=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(d[0]=r,d[1]=o,"horizontal"===t?r=c+i:o=h+i)}))}var h=c,d=n.curry(c,"vertical"),p=n.curry(c,"horizontal");function f(t,e,i){i=o.normalizeCssArray(i||0);var n=e.width,s=e.height,l=r(t.left,n),u=r(t.top,s),c=r(t.right,n),h=r(t.bottom,s),d=r(t.width,n),p=r(t.height,s),f=i[2]+i[0],g=i[1]+i[3],m=t.aspect;switch(isNaN(d)&&(d=n-c-g-l),isNaN(p)&&(p=s-h-f-u),null!=m&&(isNaN(d)&&isNaN(p)&&(m>n/s?d=.8*n:p=.8*s),isNaN(d)&&(d=m*p),isNaN(p)&&(p=d/m)),isNaN(l)&&(l=n-c-d-g),isNaN(u)&&(u=s-h-p-f),t.left||t.right){case"center":l=n/2-d/2-i[3];break;case"right":l=n-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-p/2-i[0];break;case"bottom":u=s-p-f}l=l||0,u=u||0,isNaN(d)&&(d=n-g-l-(c||0)),isNaN(p)&&(p=s-f-u-(h||0));var v=new a(l+i[3],u+i[0],d,p);return v.margin=i,v}function g(t,e){return e&&t&&s(l,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}e.LOCATION_PARAMS=l,e.HV_NAMES=u,e.box=h,e.vbox=d,e.hbox=p,e.getAvailableSize=function(t,e,i){var n=e.width,a=e.height,s=r(t.x,n),l=r(t.y,a),u=r(t.x2,n),c=r(t.y2,a);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=a),i=o.normalizeCssArray(i||0),{width:Math.max(u-s-i[1]-i[3],0),height:Math.max(c-l-i[0]-i[2],0)}},e.getLayoutRect=f,e.positionElement=function(t,e,i,r,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===t.type?new a(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(c=c.clone()).applyTransform(h)}e=f(n.defaults({width:c.width,height:c.height},e),i,r);var d=t.position,p=s?e.x-c.x:0,g=l?e.y-c.y:0;t.attr("position","raw"===u?[p,g]:[d[0]+p,d[1]+g])}},e.sizeCalculable=function(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]},e.mergeLayoutParam=function(t,e,i){!n.isObject(i)&&(i={});var a=i.ignoreSize;!n.isArray(a)&&(a=[a,a]);var r=l(u[0],0),o=l(u[1],1);function l(i,n){var r={},o=0,l={},u=0;if(s(i,(function(e){l[e]=t[e]})),s(i,(function(t){c(e,t)&&(r[t]=l[t]=e[t]),h(r,t)&&o++,h(l,t)&&u++})),a[n])return h(e,i[1])?l[i[2]]=null:h(e,i[2])&&(l[i[1]]=null),l;if(2!==u&&o){if(o>=2)return r;for(var d=0;d=i.length&&i.push({option:t})}})),i},e.makeIdAndName=function(t){var e=n.createHashMap();r(t,(function(t,i){var n=t.exist;n&&e.set(n.id,t)})),r(t,(function(t,i){var a=t.option;n.assert(!a||null==a.id||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&null!=a.id&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})})),r(t,(function(t,i){var n=t.exist,a=t.option,r=t.keyInfo;if(o(a)){if(r.name=null!=a.name?a.name+"":n?n.name:l+i,n)r.id=n.id;else if(null!=a.id)r.id=a.id+"";else{var s=0;do{r.id="\0"+r.name+"\0"+s++}while(e.get(r.id))}e.set(r.id,t)}}))},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf(l))},e.isIdInner=c,e.compressBatches=function(t,e){var i={},n={};return a(t||[],i),a(e||[],n,i),[r(i),r(n)];function a(t,e,i){for(var n=0,a=t.length;n=10&&e++,e}e.linearMap=function(t,e,i,n){var a=e[1]-e[0],r=i[1]-i[0];if(0===a)return 0===r?i[0]:(i[0]+i[1])/2;if(n)if(a>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/a*r+i[0]},e.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(i=t,i.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var i},e.round=function(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t},e.asc=function(t){return t.sort((function(t,e){return t-e})),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPrecisionSafe=function(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var a=e.indexOf(".");return a<0?0:e.length-1-a},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,a=Math.floor(i(t[1]-t[0])/n),r=Math.round(i(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+r,0),20);return isFinite(o)?o:20},e.getPercentWithPrecision=function(t,e,i){if(!t[e])return 0;var a=n.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===a)return 0;for(var r=Math.pow(10,i),o=n.map(t,(function(t){return(isNaN(t)?0:t)/a*r*100})),s=100*r,l=n.map(o,(function(t){return Math.floor(t)})),u=n.reduce(l,(function(t,e){return t+e}),0),c=n.map(o,(function(t,e){return t-l[e]}));uh&&(h=c[p],d=p);++l[d],c[d]=0,++u}return l[e]/r},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-1e-4&&t=-20?+t.toFixed(i<0?-i:0):t},e.quantile=function(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),a=+t[n-1],r=i-n;return r?a+r*(t[n]-a):a},e.reformIntervals=function(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,i=1,n=0;n=0}},79330:function(t,e,i){var n=(0,i(18993).extendShape)({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=Math.max(e.r0||0,0),r=Math.max(e.r,0),o=.5*(r-a),s=a+o,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=Math.cos(l),d=Math.sin(l),p=Math.cos(u),f=Math.sin(u);(c?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(h*a+i,d*a+n),t.arc(h*s+i,d*s+n,o,-Math.PI+l,l,!c)),t.arc(i,n,r,l,u,!c),t.moveTo(p*r+i,f*r+n),t.arc(p*s+i,f*s+n,o,u-2*Math.PI,u-Math.PI,!c),0!==a&&(t.arc(i,n,a,u,l,c),t.moveTo(h*a+i,f*a+n)),t.closePath()}});t.exports=n},22868:function(t,e,i){var n=i(69008),a=i(18993),r=i(9806),o=i(63603).calculateTextPosition,s=a.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,r=e.height/2;t.moveTo(i,n-r),t.lineTo(i+a,n+r),t.lineTo(i-a,n+r),t.closePath()}}),l=a.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,r=e.height/2;t.moveTo(i,n-r),t.lineTo(i+a,n),t.lineTo(i,n+r),t.lineTo(i-a,n),t.closePath()}}),u=a.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,a=e.width/5*3,r=Math.max(a,e.height),o=a/2,s=o*o/(r-o),l=n-r+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),p=.6*o,f=.7*o;t.moveTo(i-c,l+s),t.arc(i,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+c-h*p,l+s+d*p,i,n-f,i,n),t.bezierCurveTo(i,n-f,i-c+h*p,l+s+d*p,i-c,l+s),t.closePath()}}),c=a.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,a=e.x,r=e.y,o=n/3*2;t.moveTo(a,r),t.lineTo(a+o,r+i),t.lineTo(a,r+i/4*3),t.lineTo(a-o,r+i),t.lineTo(a,r),t.closePath()}}),h={line:a.Line,rect:a.Rect,roundRect:a.Rect,square:a.Rect,circle:a.Circle,diamond:l,pin:u,arrow:c,triangle:s},d={line:function(t,e,i,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+i,a.y2=e+n/2},rect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n},roundRect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n,a.r=Math.min(i,n)/4},square:function(t,e,i,n,a){var r=Math.min(i,n);a.x=t,a.y=e,a.width=r,a.height=r},circle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.r=Math.min(i,n)/2},diamond:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n},pin:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},arrow:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},triangle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n}},p={};n.each(h,(function(t,e){p[e]=new t}));var f=a.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=o(t,e,i),a=this.shape;return a&&"pin"===a.symbolType&&"inside"===e.textPosition&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var a=p[n];a||(a=p[n="rect"]),d[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,i)}}});function g(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}e.createSymbol=function(t,e,i,n,o,s,l){var u,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(u=0===t.indexOf("image://")?a.makeImage(t.slice(8),new r(e,i,n,o),l?"center":"cover"):0===t.indexOf("path://")?a.makePath(t.slice(7),{},new r(e,i,n,o),l?"center":"cover"):new f({shape:{symbolType:t,x:e,y:i,width:n,height:o}})).__isEmptyBrush=c,u.setColor=g,u.setColor(s),u}},83209:function(t,e){var i="\0__throttleOriginMethod",n="\0__throttleRate",a="\0__throttleType";function r(t,e,i){var n,a,r,o,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(r,o||[])}e=e||0;var d=function(){n=(new Date).getTime(),r=this,o=arguments;var t=s||e,d=s||i;s=null,a=n-(d?l:u)-t,clearTimeout(c),d?c=setTimeout(h,t):a>=0?h():c=setTimeout(h,-a),l=n};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}e.throttle=r,e.createOrUpdate=function(t,e,o,s){var l=t[e];if(l){var u=l[i]||l,c=l[a];if(l[n]!==o||c!==s){if(null==o||!s)return t[e]=u;(l=t[e]=r(u,o,"debounce"===s))[i]=u,l[a]=s,l[n]=o}return l}},e.clear=function(t,e){var n=t[e];n&&n[i]&&(t[e]=n[i])}},68880:function(t,e,i){var n=i(69008).each,a=i(27796),r=i(58744),o=i(77305),s=i(90830),l=i(18993),u=i(222).createTask,c=i(13861),h=s.makeInner(),d=c();function p(){this.group=new a,this.uid=r.getUID("viewChart"),this.renderTask=u({plan:v,reset:y}),this.renderTask.context={view:this}}p.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){m(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){m(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var f=p.prototype;function g(t,e,i){if(t&&(t.trigger(e,i),t.isGroup&&!l.isHighDownDispatcher(t)))for(var n=0,a=t.childCount();n=0},this.indexOfName=function(e){return t().indexOfName(e)},this.getItemVisual=function(e,i){return t().getItemVisual(e,i)}};t.exports=e},5660:function(t,e,i){var n=i(69008),a=i(83720),r=i(86957).linearMap,o=n.each,s=n.isObject,l=-1,u=function(t){var e=t.mappingMethod,i=t.type,a=this.option=n.clone(t);this.type=i,this.mappingMethod=e,this._normalizeData=_[e];var r=c[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._doMap=r._doMap[e],"piecewise"===e?(h(a),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,n.each(e,(function(e,i){e.originIndex=i,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(a)):"category"===e?a.categories?function(t){var e=t.categories,i=t.visual,a=t.categoryMap={};if(o(e,(function(t,e){a[t]=e})),!n.isArray(i)){var r=[];n.isObject(i)?o(i,(function(t,e){var i=a[e];r[null!=i?i:l]=t})):r[-1]=i,i=x(t,r)}for(var s=e.length-1;s>=0;s--)null==i[s]&&(delete a[e[s]],e.pop())}(a):h(a,!0):(n.assert("linear"!==e||a.dataExtent),h(a))};u.prototype={constructor:u,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return n.bind(this._normalizeData,this)}};var c=u.visualHandlers={color:{applyVisual:f("color"),getColorMapper:function(){var t=this.option;return n.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),g.call(this,t)}:function(e,i,n){var r=!!n;return!i&&(e=this._normalizeData(e)),n=a.fastLerp(e,t.parsedVisual,n),r?n:a.stringify(n,"rgba")},this)},_doMap:{linear:function(t){return a.stringify(a.fastLerp(t,this.option.parsedVisual),"rgba")},category:g,piecewise:function(t,e){var i=y.call(this,e);return null==i&&(i=a.stringify(a.fastLerp(t,this.option.parsedVisual),"rgba")),i},fixed:m}},colorHue:d((function(t,e){return a.modifyHSL(t,e)})),colorSaturation:d((function(t,e){return a.modifyHSL(t,null,e)})),colorLightness:d((function(t,e){return a.modifyHSL(t,null,null,e)})),colorAlpha:d((function(t,e){return a.modifyAlpha(t,e)})),opacity:{applyVisual:f("opacity"),_doMap:v([0,1])},liftZ:{applyVisual:f("liftZ"),_doMap:{linear:m,category:m,piecewise:m,fixed:m}},symbol:{applyVisual:function(t,e,i){var a=this.mapValueToVisual(t);if(n.isString(a))i("symbol",a);else if(s(a))for(var r in a)a.hasOwnProperty(r)&&i(r,a[r])},_doMap:{linear:p,category:g,piecewise:function(t,e){var i=y.call(this,e);return null==i&&(i=p.call(this,t)),i},fixed:m}},symbolSize:{applyVisual:f("symbolSize"),_doMap:v([0,1])}};function h(t,e){var i=t.visual,a=[];n.isObject(i)?o(i,(function(t){a.push(t)})):null!=i&&a.push(i);e||1!==a.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(a[1]=a[0]),x(t,a)}function d(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:v([0,1])}}function p(t){var e=this.option.visual;return e[Math.round(r(t,[0,1],[0,e.length-1],!0))]||{}}function f(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function g(t){var e=this.option.visual;return e[this.option.loop&&t!==l?t%e.length:t]}function m(){return this.option.visual[0]}function v(t){return{linear:function(e){return r(e,t,this.option.visual,!0)},category:g,piecewise:function(e,i){var n=y.call(this,i);return null==n&&(n=r(e,t,this.option.visual,!0)),n},fixed:m}}function y(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=i[u.findPieceIndex(t,i)];if(n&&n.visual)return n.visual[this.type]}}function x(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=n.map(e,(function(t){return a.parse(t)}))),e}var _={linear:function(t){return r(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=u.findPieceIndex(t,e,!0);if(null!=i)return r(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?l:e},fixed:n.noop};function b(t,e,i){return t?e<=i:e1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:o}),e.eachSeries((function(t,e){if(e1?"multiple":"single")+".";i=p(i=f(n?s+"withName":s+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(y=t.subType,a.series.typeNames[y]||"自定义图")});var u=t.getData();window.data=u,u.count()>l?i+=p(f("data.partialData"),{displayCnt:l}):i+=f("data.allData");for(var h=[],g=0;gn.getWidth()||i<0||i>n.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(n.each(d,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=g(this,e,i),a=this._hovered,r=a.target;r&&!r.__zr&&(r=(a=this.findHover(a.x,a.y)).target);var o=this._hovered=n?{x:e,y:i}:this.findHover(e,i),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),r&&s!==r&&this.dispatchToElement(a,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==r&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,i=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!i&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var a="on"+e,r=function(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:c}}(e,t,i);n&&(n[a]&&(r.cancelBubble=n[a].call(n,r)),n.trigger(e,r),n=n.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer((function(t){"function"==typeof t[a]&&t[a].call(t,r),t.trigger&&t.trigger(e,r)})))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),a={x:t,y:e},r=n.length-1;r>=0;r--){var o;if(n[r]!==i&&!n[r].ignore&&(o=f(n[r],t,e))&&(!a.topTarget&&(a.topTarget=n[r]),o!==u)){a.target=n[r];break}}return a},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var a=n.type;t.gestureEvent=a,this.dispatchToElement({target:n.target},a,n.event)}}},n.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){p.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,s=g(this,r,o);if("mouseup"===t&&s||(n=(i=this.findHover(r,o)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}})),n.mixin(p,o),n.mixin(p,r);var m=p;t.exports=m},12299:function(t,e,i){var n=i(69008),a=i(69893).devicePixelRatio,r=i(7255),o=i(55620);function s(){return!1}function l(t,e,i){var a=n.createCanvas(),r=e.getWidth(),o=e.getHeight(),s=a.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=r+"px",s.height=o+"px",a.setAttribute("data-zr-dom-id",t)),a.width=r*i,a.height=o*i,a}var u=function(t,e,i){var r;i=i||a,"string"==typeof t?r=l(t,e,i):n.isObject(t)&&(t=(r=t).id),this.id=t,this.dom=r;var o=r.style;o&&(r.onselectstart=s,o["-webkit-user-select"]="none",o["user-select"]="none",o["-webkit-touch-callout"]="none",o["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",o.padding=0,o.margin=0,o["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};u.prototype={constructor:u,__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=l("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,a=n.style,r=this.domBack;a&&(a.width=t+"px",a.height=e+"px"),n.width=t*i,n.height=e*i,r&&(r.width=t*i,r.height=e*i,1!==i&&this.ctxBack.scale(i,i))},clear:function(t,e){var i,n=this.dom,a=this.ctx,s=n.width,l=n.height,u=(e=e||this.clearColor,this.motionBlur&&!t),c=this.lastFrameAlpha,h=this.dpr;(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,s/h,l/h)),a.clearRect(0,0,s,l),e&&"transparent"!==e)&&(e.colorStops?(i=e.__canvasGradient||r.getGradient(a,e,{x:0,y:0,width:s,height:l}),e.__canvasGradient=i):e.image&&(i=o.prototype.getCanvasPattern.call(e,a)),a.save(),a.fillStyle=i||e,a.fillRect(0,0,s,l),a.restore());if(u){var d=this.domBack;a.save(),a.globalAlpha=c,a.drawImage(d,0,0,s,l),a.restore()}}};var c=u;t.exports=c},44401:function(t,e,i){var n=i(69893).devicePixelRatio,a=i(69008),r=i(32445),o=i(9806),s=i(78083),l=i(12299),u=i(52731),c=i(89444),h=i(12973),d=1e5,p=314159,f=.01;function g(t){return parseInt(t,10)}var m=new o(0,0,0,0),v=new o(0,0,0,0);var y=function(t,e,i){this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=a.extend({},i||{}),this.dpr=i.devicePixelRatio||n,this._singleCanvas=r,this.root=t;var o=t.style;o&&(o["-webkit-tap-highlight-color"]="transparent",o["-webkit-user-select"]=o["user-select"]=o["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var s=this._zlevelList=[],u=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,r){var c=t.width,h=t.height;null!=i.width&&(c=i.width),null!=i.height&&(h=i.height),this.dpr=i.devicePixelRatio||1,t.width=c*this.dpr,t.height=h*this.dpr,this._width=c,this._height=h;var d=new l(t,this,this.dpr);d.__builtin__=!0,d.initContext(),u[314159]=d,d.zlevel=p,s.push(p),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=function(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}(this._width,this._height);t.appendChild(f)}this._hoverlayer=null,this._hoverElements=[]};y.prototype={constructor:y,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var n=0;n=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i15)break}l.__drawIndex=v,l.__drawIndex0&&t>n[0]){for(s=0;st);s++);o=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)}else r("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,a=this._zlevelList;for(n=0;n0?f:0),this._needsManuallyCompositing),l.__builtin__||r("ZLevel "+u+" has been used by unkown layer "+l.id),l!==a&&(l.__used=!0,l.__startIndex!==i&&(l.__dirty=!0),l.__startIndex=i,l.incremental?l.__drawIndex=-1:l.__drawIndex=i,e(i),a=l),s.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?a.merge(i[t],e,!0):i[t]=e;for(var n=0;n=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof r&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=l;t.exports=u},75113:function(t,e,i){var n=i(69008),a=i(92462).Dispatcher,r=i(52731),o=i(91807),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,a.call(this)};s.prototype={constructor:s,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i.5?e:t}function h(t,e,i,n,a){var r=t.length;if(1===a)for(var o=0;oa)t.length=a;else for(var r=n;r=0&&!(A[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=G;i<_&&!(A[i]>e);i++);i=Math.min(i-1,_-2)}G=i,F=e;var n=A[i+1]-A[i];if(0!==n)if(E=(e-A[i])/n,x)if(z=C[i],N=C[0===i?i:i-1],B=C[i>_-2?_-1:i+1],V=C[i>_-3?_-1:i+2],S)f(N,z,B,V,E,E*E,E*E*E,m(t,s),T);else{if(M)a=f(N,z,B,V,E,E*E,E*E*E,H,1),a=v(H);else{if(I)return c(z,B,E);a=g(N,z,B,V,E,E*E,E*E*E)}y(t,s,a)}else if(S)h(C[i],C[i+1],E,m(t,s),T);else{var a;if(M)h(C[i],C[i+1],E,H,1),a=v(H);else{if(I)return c(C[i],C[i+1],E);a=u(C[i],C[i+1],E)}y(t,s,a)}},ondestroy:i});return e&&"spline"!==e&&(W.easing=e),W}}}var x=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||s,this._setter=n||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};x.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==t&&i[n].push({time:0,value:m(a)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;ti||d+ho&&(o+=a);var f=Math.atan2(c,u);return f<0&&(f+=a),f>=r&&f<=o||f+a>=r&&f+a<=o}},73989:function(t,e,i){var n=i(22576);e.containStroke=function(t,e,i,a,r,o,s,l,u,c,h){if(0===u)return!1;var d=u;return!(h>e+d&&h>a+d&&h>o+d&&h>l+d||ht+d&&c>i+d&&c>r+d&&c>s+d||ce+s&&o>n+s||ot+s&&r>i+s||re&&c>n&&c>r&&c>s||c1&&(h=void 0,h=f[0],f[0]=f[1],f[1]=h),g=u.cubicAt(e,n,r,s,f[0]),y>1&&(m=u.cubicAt(e,n,r,s,f[1]))),2===y?_e&&s>n&&s>r||s=0&&c<=1){for(var h=0,d=u.quadraticAt(e,n,r,c),f=0;fi||s<-i)return 0;var u=Math.sqrt(i*i-s*s);p[0]=-u,p[1]=u;var c=Math.abs(n-a);if(c<1e-4)return 0;if(c%d<1e-4){n=0,a=d;var h=r?1:-1;return o>=p[0]+t&&o<=p[1]+t?h:0}if(r){u=n;n=l(a),a=l(u)}else n=l(n),a=l(a);n>a&&(a+=d);for(var f=0,g=0;g<2;g++){var m=p[g];if(m+t>o){var v=Math.atan2(s,m);h=r?1:-1;v<0&&(v=d+v),(v>=n&&v<=a||v+d>=n&&v+d<=a)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),f+=h)}}return f}function y(t,e,i,n,l){for(var u,d,p=0,f=0,y=0,x=0,_=0,b=0;b1&&(i||(p+=c(f,y,x,_,n,l))),1===b&&(x=f=t[b],_=y=t[b+1]),w){case h.M:f=x=t[b++],y=_=t[b++];break;case h.L:if(i){if(a.containStroke(f,y,t[b],t[b+1],e,n,l))return!0}else p+=c(f,y,t[b],t[b+1],n,l)||0;f=t[b++],y=t[b++];break;case h.C:if(i){if(r.containStroke(f,y,t[b++],t[b++],t[b++],t[b++],t[b],t[b+1],e,n,l))return!0}else p+=g(f,y,t[b++],t[b++],t[b++],t[b++],t[b],t[b+1],n,l)||0;f=t[b++],y=t[b++];break;case h.Q:if(i){if(o.containStroke(f,y,t[b++],t[b++],t[b],t[b+1],e,n,l))return!0}else p+=m(f,y,t[b++],t[b++],t[b],t[b+1],n,l)||0;f=t[b++],y=t[b++];break;case h.A:var S=t[b++],M=t[b++],I=t[b++],T=t[b++],A=t[b++],C=t[b++];b+=1;var D=1-t[b++],L=Math.cos(A)*I+S,P=Math.sin(A)*T+M;b>1?p+=c(f,y,L,P,n,l):(x=L,_=P);var k=(n-S)*T/I+S;if(i){if(s.containStroke(S,M,T,A,A+C,D,e,k,l))return!0}else p+=v(S,M,T,A,A+C,D,k,l);f=Math.cos(A+C)*I+S,y=Math.sin(A+C)*T+M;break;case h.R:x=f=t[b++],_=y=t[b++];L=x+t[b++],P=_+t[b++];if(i){if(a.containStroke(x,_,L,_,e,n,l)||a.containStroke(L,_,L,P,e,n,l)||a.containStroke(L,P,x,P,e,n,l)||a.containStroke(x,P,x,_,e,n,l))return!0}else p+=c(L,_,L,P,n,l),p+=c(x,P,x,_,n,l);break;case h.Z:if(i){if(a.containStroke(f,y,x,_,e,n,l))return!0}else p+=c(f,y,x,_,n,l);f=x,y=_}}return i||(u=y,d=_,Math.abs(u-d)<1e-4)||(p+=c(f,y,x,_,n,l)||0),0!==p}e.contain=function(t,e,i){return y(t,0,!1,e,i)},e.containStroke=function(t,e,i,n){return y(t,e,!0,i,n)}},59049:function(t,e,i){var n=i(55041);function a(t,e){return Math.abs(t-e)<1e-8}e.contain=function(t,e,i){var r=0,o=t[0];if(!o)return!1;for(var s=1;se+c&&u>a+c&&u>o+c||ut+c&&l>i+c&&l>r+c||l5e3&&(d=0,h={}),d++,h[i]=a,a}function v(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function y(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function x(t,e,i){var n=e.textPosition,a=e.textDistance,r=i.x,o=i.y;a=a||0;var s=i.height,l=i.width,u=s/2,c="left",h="top";switch(n){case"left":r-=a,o+=u,c="right",h="middle";break;case"right":r+=a+l,o+=u,h="middle";break;case"top":r+=l/2,o-=a,c="center",h="bottom";break;case"bottom":r+=l/2,o+=s+a,c="center";break;case"inside":r+=l/2,o+=u,c="center",h="middle";break;case"insideLeft":r+=a,o+=u,h="middle";break;case"insideRight":r+=l-a,o+=u,c="right",h="middle";break;case"insideTop":r+=l/2,o+=a,c="center";break;case"insideBottom":r+=l/2,o+=s-a,c="center",h="bottom";break;case"insideTopLeft":r+=a,o+=a;break;case"insideTopRight":r+=l-a,o+=a,c="right";break;case"insideBottomLeft":r+=a,o+=s-a,h="bottom";break;case"insideBottomRight":r+=l-a,o+=s-a,c="right",h="bottom"}return(t=t||{}).x=r,t.y=o,t.textAlign=c,t.textVerticalAlign=h,t}function _(t,e,i,n,a){if(!e)return"";var r=(t+"").split("\n");a=b(e,i,n,a);for(var o=0,s=r.length;o=r;u++)o-=r;var c=m(i,e);return c>o&&(i="",c=0),o=t-c,n.ellipsis=i,n.ellipsisWidth=c,n.contentWidth=o,n.containerWidth=t,n}function w(t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i)return"";var r=m(t,n);if(r<=i)return t;for(var o=0;;o++){if(r<=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?S(t,a,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(t.length*a/r):0;r=m(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function S(t,e,i,n){for(var a=0,r=0,o=t.length;rh)t="",o=[];else if(null!=d)for(var p=b(d-(i?i[1]+i[3]:0),e,a.ellipsis,{minChar:a.minChar,placeholder:a.placeholder}),f=0,g=o.length;fr&&C(i,t.substring(r,o)),C(i,n[2],n[1]),r=p.lastIndex}ry)return{lines:[],width:0,height:0};z.textWidth=m(z.text,D);var P=T.textWidth,k=null==P||"auto"===P;if("string"==typeof P&&"%"===P.charAt(P.length-1))z.percentWidth=P,d.push(z),P=0;else{if(k){P=z.textWidth;var O=T.textBackgroundColor,R=O&&O.image;R&&(R=a.findExistImage(R),a.isImageReady(R)&&(P=Math.max(P,R.width*L/R.height)))}var E=A?A[1]+A[3]:0;P+=E;var N=null!=v?v-S:null;null!=N&&Ne&&r>n||ra?o:0}},27796:function(t,e,i){var n=i(69008),a=i(35165),r=i(9806),o=function(t){for(var e in t=t||{},a.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,a=this._children,r=n.indexOf(a,t);return r<0||(a.splice(r,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(i)),e&&e.refresh()),this},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new d(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},d.create=function(t){return new d(t.x,t.y,t.width,t.height)};var p=d;t.exports=p},44420:function(t,e,i){var n=i(92462),a=function(){this._track=[]};function r(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}a.prototype={constructor:a,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var a=t.touches;if(a){for(var r={points:[],touches:[],target:e,event:t},o=0,s=a.length;o1&&a&&a.length>1){var s=r(a)/r(o);!isFinite(s)&&(s=1),e.pinchScale=s;var l=[((n=a)[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},s=a;t.exports=s},52498:function(t){var e=function(){this.head=null,this.tail=null,this._len=0},i=e.prototype;i.insert=function(t){var e=new n(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},i.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};var n=function(t){this.value=t,this.next,this.prev},a=function(t){this._list=new e,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},r=a.prototype;r.put=function(t,e){var i=this._list,a=this._map,r=null;if(null==a[t]){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete a[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new n(e),s.key=t,i.insertEntry(s),a[t]=s}return r},r.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.clear=function(){this._list.clear(),this._map={}};var o=a;t.exports=o},94615:function(t,e,i){var n=i(22576),a=i(47764),r=i(16254),o=i(9806),s=i(69893).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],d=[],p=Math.min,f=Math.max,g=Math.cos,m=Math.sin,v=Math.sqrt,y=Math.abs,x="undefined"!=typeof Float32Array,_=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};_.prototype={constructor:_,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,i){i=i||0,this._ux=y(i/s/t)||0,this._uy=y(i/s/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,a,r){return this.addData(l.C,t,e,i,n,a,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,a,r):this._ctx.bezierCurveTo(t,e,i,n,a,r)),this._xi=a,this._yi=r,this},quadraticCurveTo:function(t,e,i,n){return this.addData(l.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,a,r){return this.addData(l.A,t,e,i,i,n,a-n,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,r),this._xi=g(a)*i+t,this._yi=m(a)*i+e,this},arcTo:function(t,e,i,n,a){return this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(l.R,t,e,i,n),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ie.length&&(this._expandData(),e=this.data);for(var i=0;i0&&g<=t||c<0&&g>=t||0===c&&(h>0&&m<=e||h<0&&m>=e);)g+=c*(i=o[n=this._dashIdx]),m+=h*i,this._dashIdx=(n+1)%y,c>0&&gl||h>0&&mu||s[n%2?"moveTo":"lineTo"](c>=0?p(g,t):f(g,t),h>=0?p(m,e):f(m,e));c=g-t,h=m-e,this._dashOffset=-v(c*c+h*h)},_dashedBezierTo:function(t,e,i,a,r,o){var s,l,u,c,h,d=this._dashSum,p=this._dashOffset,f=this._lineDash,g=this._ctx,m=this._xi,y=this._yi,x=n.cubicAt,_=0,b=this._dashIdx,w=f.length,S=0;for(p<0&&(p=d+p),p%=d,s=0;s<1;s+=.1)l=x(m,t,i,r,s+.1)-x(m,t,i,r,s),u=x(y,e,a,o,s+.1)-x(y,e,a,o,s),_+=v(l*l+u*u);for(;bp);b++);for(s=(S-p)/_;s<=1;)c=x(m,t,i,r,s),h=x(y,e,a,o,s),b%2?g.moveTo(c,h):g.lineTo(c,h),s+=f[b]/_,b=(b+1)%w;b%2!=0&&g.lineTo(r,o),l=r-c,u=o-h,this._dashOffset=-v(l*l+u*u)},_dashedQuadraticTo:function(t,e,i,n){var a=i,r=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,a,r)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,s=0,p=0;pu||y(o-a)>c||d===h-1)&&(t.lineTo(r,o),n=r,a=o);break;case l.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),n=s[d-2],a=s[d-1];break;case l.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),n=s[d-2],a=s[d-1];break;case l.A:var f=s[d++],v=s[d++],x=s[d++],_=s[d++],b=s[d++],w=s[d++],S=s[d++],M=s[d++],I=x>_?x:_,T=x>_?1:x/_,A=x>_?_/x:1,C=b+w;Math.abs(x-_)>.001?(t.translate(f,v),t.rotate(S),t.scale(T,A),t.arc(0,0,I,b,C,1-M),t.scale(1/T,1/A),t.rotate(-S),t.translate(-f,-v)):t.arc(f,v,I,b,C,1-M),1===d&&(e=g(b)*x+f,i=m(b)*_+v),n=g(C)*x+f,a=m(C)*_+v;break;case l.R:e=n=s[d],i=a=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case l.Z:t.closePath(),n=e,a=i}}}},_.CMD=l;var b=_;t.exports=b},9262:function(t){function e(){}function i(t,e,i,n){for(var a=0,r=e.length,o=0,s=0;a=r&&c+1>=o){for(var h=[],d=0;d=r&&d+1>=o)return i(a,l.components,e,t);u[n]=l}else u[n]=void 0}var g;s++}for(;s<=l;){var f=p();if(f)return f}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){for(var a=e.length,r=i.length,o=t.newPos,s=o-n,l=0;o+11e-4)return f[0]=t-i,f[1]=e-a,g[0]=t+i,void(g[1]=e+a);if(c[0]=l(r)*i+t,c[1]=s(r)*a+e,h[0]=l(o)*i+t,h[1]=s(o)*a+e,m(f,c,h),v(g,c,h),(r%=u)<0&&(r+=u),(o%=u)<0&&(o+=u),r>o&&!p?o+=u:rr&&(d[0]=l(_)*i+t,d[1]=s(_)*a+e,m(f,d,f),v(g,d,g))}},22576:function(t,e,i){var n=i(47764),a=n.create,r=n.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,u=1e-4,c=s(3),h=1/3,d=a(),p=a(),f=a();function g(t){return t>-1e-8&&tl||t<-1e-8}function v(t,e,i,n,a){var r=1-a;return r*r*(r*t+3*a*e)+a*a*(a*n+3*r*i)}function y(t,e,i,n){var a=1-n;return a*(a*t+2*n*e)+n*n*i}e.cubicAt=v,e.cubicDerivativeAt=function(t,e,i,n,a){var r=1-a;return 3*(((e-t)*r+2*(i-e)*a)*r+(n-i)*a*a)},e.cubicRootAt=function(t,e,i,n,a,r){var l=n+3*(e-i)-t,u=3*(i-2*e+t),d=3*(e-t),p=t-a,f=u*u-3*l*d,m=u*d-9*l*p,v=d*d-3*u*p,y=0;if(g(f)&&g(m)){if(g(u))r[0]=0;else(D=-d/u)>=0&&D<=1&&(r[y++]=D)}else{var x=m*m-4*f*v;if(g(x)){var _=m/f,b=-_/2;(D=-u/l+_)>=0&&D<=1&&(r[y++]=D),b>=0&&b<=1&&(r[y++]=b)}else if(x>0){var w=s(x),S=f*u+1.5*l*(-m+w),M=f*u+1.5*l*(-m-w);(D=(-u-((S=S<0?-o(-S,h):o(S,h))+(M=M<0?-o(-M,h):o(M,h))))/(3*l))>=0&&D<=1&&(r[y++]=D)}else{var I=(2*f*u-3*l*m)/(2*s(f*f*f)),T=Math.acos(I)/3,A=s(f),C=Math.cos(T),D=(-u-2*A*C)/(3*l),L=(b=(-u+A*(C+c*Math.sin(T)))/(3*l),(-u+A*(C-c*Math.sin(T)))/(3*l));D>=0&&D<=1&&(r[y++]=D),b>=0&&b<=1&&(r[y++]=b),L>=0&&L<=1&&(r[y++]=L)}}return y},e.cubicExtrema=function(t,e,i,n,a){var r=6*i-12*e+6*t,o=9*e+3*n-3*t-9*i,l=3*e-3*t,u=0;if(g(o)){if(m(r))(h=-l/r)>=0&&h<=1&&(a[u++]=h)}else{var c=r*r-4*o*l;if(g(c))a[0]=-r/(2*o);else if(c>0){var h,d=s(c),p=(-r-d)/(2*o);(h=(-r+d)/(2*o))>=0&&h<=1&&(a[u++]=h),p>=0&&p<=1&&(a[u++]=p)}}return u},e.cubicSubdivide=function(t,e,i,n,a,r){var o=(e-t)*a+t,s=(i-e)*a+e,l=(n-i)*a+i,u=(s-o)*a+o,c=(l-s)*a+s,h=(c-u)*a+u;r[0]=t,r[1]=o,r[2]=u,r[3]=h,r[4]=h,r[5]=c,r[6]=l,r[7]=n},e.cubicProjectPoint=function(t,e,i,n,a,o,l,c,h,g,m){var y,x,_,b,w,S=.005,M=1/0;d[0]=h,d[1]=g;for(var I=0;I<1;I+=.05)p[0]=v(t,i,a,l,I),p[1]=v(e,n,o,c,I),(b=r(d,p))=0&&b=0&&h<=1&&(a[u++]=h)}else{var c=o*o-4*r*l;if(g(c))(h=-o/(2*r))>=0&&h<=1&&(a[u++]=h);else if(c>0){var h,d=s(c),p=(-o-d)/(2*r);(h=(-o+d)/(2*r))>=0&&h<=1&&(a[u++]=h),p>=0&&p<=1&&(a[u++]=p)}}return u},e.quadraticExtremum=function(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n},e.quadraticSubdivide=function(t,e,i,n,a){var r=(e-t)*n+t,o=(i-e)*n+e,s=(o-r)*n+r;a[0]=t,a[1]=r,a[2]=s,a[3]=s,a[4]=o,a[5]=i},e.quadraticProjectPoint=function(t,e,i,n,a,o,l,c,h){var g,m=.005,v=1/0;d[0]=l,d[1]=c;for(var x=0;x<1;x+=.05){p[0]=y(t,i,a,x),p[1]=y(e,n,o,x),(S=r(d,p))=0&&S>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[s]+":0",a[l]+":0",n[1-s]+":auto",a[1-l]+":auto",""].join("!important;"),t.appendChild(o),i.push(o)}return i}(e,u),h=function(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,s=!0,l=[],u=[],c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,p=h.left,f=h.top;l.push(p,f),s=s&&o&&p===o[d]&&f===o[d+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return s&&r?r:(e.srcCoords=l,e[n]=i?a(u,l):a(l,u))}(c,u,s);if(h)return h(t,i,o),!0}return!1}function l(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=function(t,e,i,n,a){return s(o,e,n,a,!0)&&s(t,i,o[0],o[1])},e.transformCoordWithViewport=s,e.isCanvasEl=l},12973:function(t){var e="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),r=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(i.firefox=!0,i.version=n[1]);a&&(i.ie=!0,i.version=a[1]);r&&(i.edge=!0,i.version=r[1]);o&&(i.weChat=!0);return{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent);t.exports=e},92462:function(t,e,i){var n=i(37283);e.Dispatcher=n;var a=i(12973),r=i(12513),o=r.isCanvasEl,s=r.transformCoordWithViewport,l="undefined"!=typeof window&&!!window.addEventListener,u=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function h(t,e,i,n){return i=i||{},n||!a.canvasSupported?d(t,e,i):a.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):d(t,e,i),i}function d(t,e,i){if(a.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(o(t)){var l=t.getBoundingClientRect();return i.zrX=n-l.left,void(i.zrY=r-l.top)}if(s(c,t,n,r))return i.zrX=c[0],void(i.zrY=c[1])}i.zrX=i.zrY=0}function p(t){return t||window.event}var f=l?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=h,e.getNativeEvent=p,e.normalizeEvent=function(t,e,i){if(null!=(e=p(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var a="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];a&&h(t,a,e,i)}else h(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var r=e.button;return null==e.which&&void 0!==r&&u.test(e.type)&&(e.which=1&r?1:2&r?3:4&r?2:0),e},e.addEventListener=function(t,e,i,n){l?t.addEventListener(e,i,n):t.attachEvent("on"+e,i)},e.removeEventListener=function(t,e,i,n){l?t.removeEventListener(e,i,n):t.detachEvent("on"+e,i)},e.stop=f,e.isMiddleOrRightButtonOnMouseUpDown=function(t){return 2===t.which||3===t.which},e.notLeftMouse=function(t){return t.which>1}},3702:function(t,e){var i=Math.log(2);function n(t,e,a,r,o,s){var l=r+"-"+o,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<=0;)a++;return a-e}function i(t,e,i,n,a){for(n===e&&n++;n>>1])<0?l=r:s=r+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function n(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])>0){for(s=n-a;l0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);r(t,e[i+c])>0?o=c+1:l=c}return l}function a(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);r(t,e[i+c])<0?l=c:o=c+1}return l}function r(t,e){var i,r,o,s=7,l=0;i=t.length;var u=[];function c(i){var c=r[i],h=o[i],d=r[i+1],p=o[i+1];o[i]=h+p,i===l-3&&(r[i+1]=r[i+2],o[i+1]=o[i+2]),l--;var f=a(t[d],t,c,h,0,e);c+=f,0!==(h-=f)&&0!==(p=n(t[c+h-1],t,d,p,p-1,e))&&(h<=p?function(i,r,o,l){var c=0;for(c=0;c=7||g>=7);if(m)break;v<0&&(v=0),v+=2}if((s=v)<1&&(s=1),1===r){for(c=0;c=0;c--)t[g+c]=t[f+c];return void(t[p]=u[d])}var m=s;for(;;){var v=0,y=0,x=!1;do{if(e(u[d],t[h])<0){if(t[p--]=t[h--],v++,y=0,0==--r){x=!0;break}}else if(t[p--]=u[d--],y++,v=0,1==--l){x=!0;break}}while((v|y)=0;c--)t[g+c]=t[f+c];if(0===r){x=!0;break}}if(t[p--]=u[d--],1==--l){x=!0;break}if(0!==(y=l-n(t[h],u,0,l,l-1,e))){for(l-=y,g=(p-=y)+1,f=(d-=y)+1,c=0;c=7||y>=7);if(x)break;m<0&&(m=0),m+=2}(s=m)<1&&(s=1);if(1===l){for(g=(p-=r)+1,f=(h-=r)+1,c=r-1;c>=0;c--)t[g+c]=t[f+c];t[p]=u[d]}else{if(0===l)throw new Error;for(f=p-(l-1),c=0;c1;){var t=l-2;if(t>=1&&o[t-1]<=o[t]+o[t+1]||t>=2&&o[t-2]<=o[t]+o[t-1])o[t-1]o[t+1])break;c(t)}},this.forceMergeRuns=function(){for(;l>1;){var t=l-2;t>0&&o[t-1]=32;)e|=1&t,t>>=1;return t+e}(s);do{if((l=e(t,a,o,n))c&&(h=c),i(t,a,a+h,a+l,n),l=h}u.pushRun(a,l),u.mergeRuns(),s-=l,a+=l}while(0!==s);u.forceMergeRuns()}}}},69008:function(t,e){var i={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},n={"[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},a=Object.prototype.toString,r=Array.prototype,o=r.forEach,s=r.filter,l=r.slice,u=r.map,c=r.reduce,h={};function d(t){if(null==t||"object"!=typeof t)return t;var e=t,r=a.call(t);if("[object Array]"===r){if(!M(t)){e=[];for(var o=0,s=t.length;o1e-10&&(a.width+=o/s,a.height+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),a=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var r=this.path.data;if(a.hasStroke()){var s=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(a.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(r,s/l,t,e)))return!0}if(a.hasFill())return o.contain(r,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(t[0]*t[3]-t[2]*t[1])):1}},c.extend=function(t){var e=function(e){c.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}t.init&&t.init.call(this,e)};for(var i in a.inherits(e,c),t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},a.inherits(c,n);var h=c;t.exports=h},55620:function(t){var e=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};e.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var i=e;t.exports=i},29683:function(t,e,i){var n=i(69008),a=i(9193),r=function(t,e,i,n,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,this.type="radial",this.global=r||!1,a.call(this,n)};r.prototype={constructor:r},n.inherits(r,a);var o=r;t.exports=o},7255:function(t,e,i){var n=i(73238),a=i(23982).ContextCachedBy,r=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],o=function(t){this.extendFrom(t,!1)};function s(t,e,i){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,r=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,a=a*i.width+i.x,r=r*i.height+i.y,o=o*i.height+i.y),n=isNaN(n)?0:n,a=isNaN(a)?1:a,r=isNaN(r)?0:r,o=isNaN(o)?0:o,t.createLinearGradient(n,r,a,o)}function l(t,e,i){var n=i.width,a=i.height,r=Math.min(n,a),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*n+i.x,s=s*a+i.y,l*=r),t.createRadialGradient(o,s,0,o,s,l)}o.prototype={constructor:o,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(t,e,i){var o=this,s=i&&i.style,l=!s||t.__attrCachedBy!==a.STYLE_BIND;t.__attrCachedBy=a.STYLE_BIND;for(var u=0;u0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n=("radial"===e.type?l:s)(t,e,i),a=e.colorStops,r=0;r=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var r=0;r=2){if(o&&"spline"!==o){var s=a(r,o,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var l=r.length,u=0;u<(i?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=r[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(r=n(r,i)),t.moveTo(r[0][0],r[0][1]);u=1;for(var p=r.length;uu&&(i*=u/(o=i+n),n*=u/o),a+r>u&&(a*=u/(o=a+r),r*=u/o),n+a>c&&(n*=c/(o=n+a),a*=c/o),i+r>c&&(i*=c/(o=i+r),r*=c/o),t.moveTo(s+i,l),t.lineTo(s+u-n,l),0!==n&&t.arc(s+u-n,l+n,n,-Math.PI/2,0),t.lineTo(s+u,l+c-a),0!==a&&t.arc(s+u-a,l+c-a,a,0,Math.PI/2),t.lineTo(s+r,l+c),0!==r&&t.arc(s+r,l+c-r,r,Math.PI/2,Math.PI),t.lineTo(s,l+i),0!==i&&t.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}},78581:function(t,e,i){var n=i(47764),a=n.min,r=n.max,o=n.scale,s=n.distance,l=n.add,u=n.clone,c=n.sub;t.exports=function(t,e,i,n){var h,d,p,f,g=[],m=[],v=[],y=[];if(n){p=[1/0,1/0],f=[-1/0,-1/0];for(var x=0,_=t.length;x<_;x++)a(p,p,t[x]),r(f,f,t[x]);a(p,p,n[0]),r(f,f,n[1])}for(x=0,_=t.length;x<_;x++){var b=t[x];if(i)h=t[x?x-1:_-1],d=t[(x+1)%_];else{if(0===x||x===_-1){g.push(u(t[x]));continue}h=t[x-1],d=t[x+1]}c(m,d,h),o(m,m,e);var w=s(b,h),S=s(b,d),M=w+S;0!==M&&(w/=M,S/=M),o(v,m,-w),o(y,m,S);var I=l([],b,v),T=l([],b,y);n&&(r(I,I,p),a(I,I,f),r(T,T,p),a(T,T,f)),g.push(I),g.push(T)}return i&&g.push(g.shift()),g}},15842:function(t,e,i){var n=i(47764).distance;function a(t,e,i,n,a,r,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*r+s*a+e}t.exports=function(t,e){for(var i=t.length,r=[],o=0,s=1;si-2?i-1:p+1],h=t[p>i-3?i-1:p+2]);var m=f*f,v=f*m;r.push([a(u[0],g[0],c[0],h[0],f,m,v),a(u[1],g[1],c[1],h[1],f,m,v)])}return r}},26020:function(t,e){var i=Math.round;function n(t,e,n){if(!e)return t;var a=i(2*t);return(a+i(e))%2==0?a/2:(a+(n?1:-1))/2}e.subPixelOptimizeLine=function(t,e,a){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var u=a&&a.lineWidth;u&&(i(2*r)===i(2*o)&&(t.x1=t.x2=n(r,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=n(s,u,!0)))}},e.subPixelOptimizeRect=function(t,e,i){if(e){var a=e.x,r=e.y,o=e.width,s=e.height;t.x=a,t.y=r,t.width=o,t.height=s;var l=i&&i.lineWidth;l&&(t.x=n(a,l,!0),t.y=n(r,l,!0),t.width=Math.max(n(a+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(n(r+s,l,!1)-t.y,0===s?0:1))}},e.subPixelOptimize=n},53750:function(t,e,i){var n=i(69008),a=n.retrieve2,r=n.retrieve3,o=n.each,s=n.normalizeCssArray,l=n.isString,u=n.isObject,c=i(63603),h=i(55099),d=i(33557),p=i(73238),f=i(23982),g=f.ContextCachedBy,m=f.WILL_BE_RESTORED,v=c.DEFAULT_FONT,y={left:1,right:1,center:1},x={top:1,bottom:1,middle:1},_=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(t){if(t){t.font=c.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||x[i]?i:"top",t.textPadding&&(t.textPadding=s(t.textPadding))}}function M(t,e,i,n,a){if(i&&e.textRotation){var r=e.textOrigin;"center"===r?(n=i.width/2+i.x,a=i.height/2+i.y):r&&(n=r[0]+i.x,a=r[1]+i.y),t.translate(n,a),t.rotate(-e.textRotation),t.translate(-n,-a)}}function I(t,e,i,n,o,s,l,u){var c=n.rich[i.styleName]||{};c.text=i.text;var h=i.textVerticalAlign,d=s+o/2;"top"===h?d=s+i.height/2:"bottom"===h&&(d=s+o-i.height/2),!i.isLineHolder&&T(c)&&A(t,e,c,"right"===u?l-i.width:"center"===u?l-i.width/2:l,d-i.height/2,i.width,i.height);var p=i.textPadding;p&&(l=R(l,u,p),d-=i.height/2-p[2]-i.textHeight/2),L(e,"shadowBlur",r(c.textShadowBlur,n.textShadowBlur,0)),L(e,"shadowColor",c.textShadowColor||n.textShadowColor||"transparent"),L(e,"shadowOffsetX",r(c.textShadowOffsetX,n.textShadowOffsetX,0)),L(e,"shadowOffsetY",r(c.textShadowOffsetY,n.textShadowOffsetY,0)),L(e,"textAlign",u),L(e,"textBaseline","middle"),L(e,"font",i.font||v);var f=P(c.textStroke||n.textStroke,m),g=k(c.textFill||n.textFill),m=a(c.textStrokeWidth,n.textStrokeWidth);f&&(L(e,"lineWidth",m),L(e,"strokeStyle",f),e.strokeText(i.text,l,d)),g&&(L(e,"fillStyle",g),e.fillText(i.text,l,d))}function T(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function A(t,e,i,n,a,r,o){var s=i.textBackgroundColor,c=i.textBorderWidth,p=i.textBorderColor,f=l(s);if(L(e,"shadowBlur",i.textBoxShadowBlur||0),L(e,"shadowColor",i.textBoxShadowColor||"transparent"),L(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),L(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),f||c&&p){e.beginPath();var g=i.textBorderRadius;g?h.buildPath(e,{x:n,y:a,width:r,height:o,r:g}):e.rect(n,a,r,o),e.closePath()}if(f)if(L(e,"fillStyle",s),null!=i.fillOpacity){var m=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=m}else e.fill();else if(u(s)){var v=s.image;(v=d.createOrUpdateImage(v,null,t,C,s))&&d.isImageReady(v)&&e.drawImage(v,n,a,r,o)}if(c&&p)if(L(e,"lineWidth",c),L(e,"strokeStyle",p),null!=i.strokeOpacity){m=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=m}else e.stroke()}function C(t,e){e.image=t}function D(t,e,i,n){var a=i.x||0,r=i.y||0,o=i.textAlign,s=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)a=n.x+O(l[0],n.width),r=n.y+O(l[1],n.height);else{var u=e&&e.calculateTextPosition?e.calculateTextPosition(b,i,n):c.calculateTextPosition(b,i,n);a=u.x,r=u.y,o=o||u.textAlign,s=s||u.textVerticalAlign}var h=i.textOffset;h&&(a+=h[0],r+=h[1])}return(t=t||{}).baseX=a,t.baseY=r,t.textAlign=o,t.textVerticalAlign=s,t}function L(t,e,i){return t[e]=p(t,e,i),t[e]}function P(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function k(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function O(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function R(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}e.normalizeTextStyle=function(t){return S(t),o(t.rich,S),t},e.renderText=function(t,e,i,n,a,r){n.rich?function(t,e,i,n,a,r){r!==m&&(e.__attrCachedBy=g.NONE);var o=t.__textCotentBlock;o&&!t.__dirtyText||(o=t.__textCotentBlock=c.parseRichText(i,n));!function(t,e,i,n,a){var r=i.width,o=i.outerWidth,s=i.outerHeight,l=n.textPadding,u=D(w,t,n,a),h=u.baseX,d=u.baseY,p=u.textAlign,f=u.textVerticalAlign;M(e,n,a,h,d);var g=c.adjustTextX(h,o,p),m=c.adjustTextY(d,s,f),v=g,y=m;l&&(v+=l[3],y+=l[0]);var x=v+r;T(n)&&A(t,e,n,g,m,o,s);for(var _=0;_=0&&"right"===(b=C[N]).textAlign;)I(t,e,b,n,P,y,E,"right"),k-=b.width,E-=b.width,N--;for(R+=(r-(R-v)-(x-E)-k)/2;O<=N;)I(t,e,b=C[O],n,P,y,R+b.width/2,"center"),R+=b.width,O++;y+=P}}(t,e,o,n,a)}(t,e,i,n,a,r):function(t,e,i,n,a,r){"use strict";var o,s=T(n),l=!1,u=e.__attrCachedBy===g.PLAIN_TEXT;r!==m?(r&&(o=r.style,l=!s&&u&&o),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(e.__attrCachedBy=g.NONE);var h=n.font||v;l&&h===(o.font||v)||(e.font=h);var d=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,d=t.__computedFont=e.font);var f=n.textPadding,y=n.textLineHeight,x=t.__textCotentBlock;x&&!t.__dirtyText||(x=t.__textCotentBlock=c.parsePlainText(i,d,f,y,n.truncate));var b=x.outerHeight,S=x.lines,I=x.lineHeight,C=D(w,t,n,a),L=C.baseX,O=C.baseY,E=C.textAlign||"left",N=C.textVerticalAlign;M(e,n,a,L,O);var z=c.adjustTextY(O,b,N),B=L,V=z;if(s||f){var G=c.getWidth(i,d);f&&(G+=f[1]+f[3]);var F=c.adjustTextX(L,G,E);s&&A(t,e,n,F,z,G,b),f&&(B=R(L,E,f),V+=f[0])}e.textAlign=E,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(var H=0;H<_.length;H++){var W=_[H],U=W[0],Z=W[1],Y=n[U];l&&Y===o[U]||(e[Z]=p(e,Z,Y||W[2]))}V+=I/2;var j=n.textStrokeWidth,X=l?o.textStrokeWidth:null,q=!l||j!==X,K=!l||q||n.textStroke!==o.textStroke,$=P(n.textStroke,j),J=k(n.textFill);$&&(q&&(e.lineWidth=j),K&&(e.strokeStyle=$));J&&(l&&n.textFill===o.textFill||(e.fillStyle=J));if(1===S.length)$&&e.strokeText(S[0],B,V),J&&e.fillText(S[0],B,V);else for(H=0;H0&&t.animate(e,!1).when(null==a?500:a,s).delay(r||0)}function f(t,e,i,n){if(e){var a={};a[e]={},a[e][i]=n,t.attr(a)}else t.attr(i,n)}h.prototype={constructor:h,animate:function(t,e){var i,r=!1,o=this,s=this.__zr;if(t){var l=t.split("."),u=o;r="shape"===l[0];for(var h=0,d=l.length;h3&&(a=e.call(a,1));for(var o=i.length,s=0;s4&&(a=e.call(a,1,a.length-1));for(var o=a[a.length-1],s=i.length,l=0;lo||t<-5e-5}var l=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var c=[];u.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),a=this.transform;if(i||e){a=a||n.create(),i?this.getLocalTransform(a):r(a),e&&(i?n.mul(a,t.transform,a):n.copy(a,t.transform)),this.transform=a;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(c);var s=c[0]<0?-1:1,l=c[1]<0?-1:1,u=((c[0]-s)*o+s)/c[0]||0,h=((c[1]-l)*o+l)/c[1]||0;a[0]*=u,a[1]*=u,a[2]*=h,a[3]*=h}this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,a)}else a&&r(a)},u.getLocalTransform=function(t){return l.getLocalTransform(this,t)},u.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},u.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var h=[],d=n.create();u.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,a=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],a[0]=e,a[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(n.mul(h,t.invTransform,e),e=h);var i=this.origin;i&&(i[0]||i[1])&&(d[4]=i[0],d[5]=i[1],n.mul(h,e,d),h[4]-=i[0],h[5]-=i[1],e=h),this.setLocalTransform(e)}},u.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},u.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&a.applyTransform(i,i,n),i},u.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&a.applyTransform(i,i,n),i},l.getLocalTransform=function(t,e){r(e=e||[]);var i=t.origin,a=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),n.scale(e,e,a),o&&n.rotate(e,e,o),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=s[0],e[5]+=s[1],e};var p=l;t.exports=p},26919:function(t,e,i){var n=i(87764).createElement,a=i(69008),r=i(32445),o=i(60397),s=i(89444),l=i(99999),u=i(9262),c=i(69377),h=i(17583),d=i(11209),p=i(96107),f=p.path,g=p.image,m=p.text;function v(t){return parseInt(t,10)}function y(t,e){return e&&t&&e.parentNode!==t}function x(t,e,i){if(y(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function _(t,e){if(y(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function b(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function w(t){return t.__textSvgEl}function S(t){return t.__svgEl}var M=function(t,e,i,r){this.root=t,this.storage=e,this._opts=i=a.extend({},i||{});var o=n("svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=n("g");o.appendChild(s);var l=n("g");o.appendChild(l),this.gradientManager=new c(r,l),this.clipPathManager=new h(r,l),this.shadowManager=new d(r,l);var u=document.createElement("div");u.style.cssText="overflow:hidden;position:relative",this._svgDom=o,this._svgRoot=l,this._backgroundRoot=s,this._viewport=u,t.appendChild(u),u.appendChild(o),this.resize(i.width,i.height),this._visibleList=[]};M.prototype={constructor:M,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=n("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i,n=this._svgRoot,a=this._visibleList,r=t.length,c=[];for(e=0;e=0;--n)if(i[n]===t)return!0;return!1}),e):null:e[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var a=i.style;a.width=t+"px",a.height=e+"px";var r=this._svgDom;r.setAttribute("width",t),r.setAttribute("height",e)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||v(s[i])||v(o.style[i]))-(v(s[a])||0)-(v(s[r])||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(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(this._svgDom.outerHTML.replace(/>\n\r<"))}},a.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(t){var e;M.prototype[t]=(e=t,function(){r('In SVG mode painter not support method "'+e+'"')})}));var I=M;t.exports=I},87764:function(t,e){e.createElement=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},96107:function(t,e,i){var n=i(87764).createElement,a=i(94615),r=i(9806),o=i(26237),s=i(63603),l=i(53750),u=i(99999),c=a.CMD,h=Array.prototype.join,d="none",p=Math.round,f=Math.sin,g=Math.cos,m=Math.PI,v=2*Math.PI,y=180/m,x=1e-4;function _(t){return p(1e4*t)/1e4}function b(t){return t-1e-4}function w(t,e){e&&S(t,"transform","matrix("+h.call(e,",")+")")}function S(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&t.setAttribute(e,i)}function M(t,e,i,n){if(function(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==d}(e,i)){var a=i?e.textFill:e.fill;S(t,"fill",a="transparent"===a?d:a),S(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else S(t,"fill",d);if(function(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==d}(e,i)){var r=i?e.textStroke:e.stroke;S(t,"stroke",r="transparent"===r?d:r),S(t,"stroke-width",(i?e.textStrokeWidth:e.lineWidth)/(!i&&e.strokeNoScale?n.getLineScale():1)),S(t,"paint-order",i?"stroke":"fill"),S(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?(S(t,"stroke-dasharray",e.lineDash.join(",")),S(t,"stroke-dashoffset",p(e.lineDashOffset||0))):S(t,"stroke-dasharray",""),e.lineCap&&S(t,"stroke-linecap",e.lineCap),e.lineJoin&&S(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&S(t,"stroke-miterlimit",e.miterLimit)}else S(t,"stroke",d)}var I={};I.brush=function(t){var e=t.style,i=t.__svgEl;i||(i=n("path"),t.__svgEl=i),t.path||t.createPathProxy();var a=t.path;if(t.__dirtyPath){a.beginPath(),a.subPixelOptimize=!1,t.buildPath(a,t.shape),t.__dirtyPath=!1;var r=function(t){for(var e=[],i=t.data,n=t.len(),a=0;a=v:-x>=v),T=x>0?x%v:x%v+v,A=!1;A=!!I||!b(M)&&T>=m==!!S;var C=_(s+u*g(d)),D=_(l+h*f(d));I&&(x=S?v-1e-4:1e-4-v,A=!0,9===a&&e.push("M",C,D));var L=_(s+u*g(d+x)),P=_(l+h*f(d+x));e.push("A",_(u),_(h),p(w*y),+A,+S,L,P);break;case c.Z:r="Z";break;case c.R:L=_(i[a++]),P=_(i[a++]);var k=_(i[a++]),O=_(i[a++]);e.push("M",L,P,"L",L+k,P,"L",L+k,P+O,"L",L,P+O,"L",L,P)}r&&e.push(r);for(var R=0;Rz){for(;E0){var n,a,o=this.getDefs(!0),s=e[0],l=i?"_textDom":"_dom";s[l]?(a=s[l].getAttribute("id"),n=s[l],o.contains(n)||o.appendChild(n)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(n=this.createElement("clipPath")).setAttribute("id",a),o.appendChild(n),s[l]=n);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var c=Array.prototype.slice.call(s.transform);r.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=c}else u.brush(s);var h=this.getSvgElement(s);n.innerHTML="",n.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+a+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},o.prototype.markUsed=function(t){var e=this;t.__clipPaths&&a.each(t.__clipPaths,(function(t){t._dom&&n.prototype.markUsed.call(e,t._dom),t._textDom&&n.prototype.markUsed.call(e,t._textDom)}))};var s=o;t.exports=s},97507:function(t,e,i){var n=i(87764).createElement,a=i(69008),r=i(60397),o=i(89444),s=i(99999),l=i(96107),u=l.path,c=l.image,h=l.text;function d(t,e,i,n,a){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof i?[i]:i,this._markLabel=n,this._domName=a||"_dom",this.nextId=0}d.prototype.createElement=n,d.prototype.getDefs=function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?((i=e.insertBefore(this.createElement("defs"),e.firstChild)).contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},d.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t[this._domName]&&i.contains(t[this._domName]))"function"==typeof e&&e(t);else{var n=this.add(t);n&&(t[this._domName]=n)}}},d.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},d.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},d.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return a.each(this._tagNames,(function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))})),e},d.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;a.each(t,(function(t){t[e._markLabel]="0"}))},d.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},d.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;a.each(e,(function(e){"1"!==e[i._markLabel]&&t.removeChild(e)}))}},d.prototype.getSvgProxy=function(t){return t instanceof r?u:t instanceof o?c:t instanceof s?h:u},d.prototype.getTextSvgElement=function(t){return t.__textSvgEl},d.prototype.getSvgElement=function(t){return t.__svgEl};var p=d;t.exports=p},69377:function(t,e,i){var n=i(97507),a=i(69008),r=i(32445),o=i(83720);function s(t,e){n.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}a.inherits(s,n),s.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;a.each(["fill","stroke"],(function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var a,r=e.style[n],o=i.getDefs(!0);r._dom?(a=r._dom,o.contains(r._dom)||i.addDom(a)):a=i.add(r),i.markUsed(e);var s=a.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}}))}},s.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return r("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},s.prototype.update=function(t){var e=this;n.prototype.update.call(this,t,(function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))}))},s.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void r("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,a=i.length;n255?255:t}function o(t){return t<0?0:t>1?1:t}function s(t){return t.length&&"%"===t.charAt(t.length-1)?r(parseFloat(t)/100*255):r(parseInt(t,10))}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100):o(parseFloat(t))}function u(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function c(t,e,i){return t+(e-t)*i}function h(t,e,i,n,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=a,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new n(20),f=null;function g(t,e){f&&d(f,e),f=p.put(t,f||e.slice())}function m(t,e){if(t){e=e||[];var i=p.get(t);if(i)return d(e,i);var n,r=(t+="").replace(/ /g,"").toLowerCase();if(r in a)return d(e,a[r]),g(t,e),e;if("#"===r.charAt(0))return 4===r.length?(n=parseInt(r.substr(1),16))>=0&&n<=4095?(h(e,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1),g(t,e),e):void h(e,0,0,0,1):7===r.length?(n=parseInt(r.substr(1),16))>=0&&n<=16777215?(h(e,(16711680&n)>>16,(65280&n)>>8,255&n,1),g(t,e),e):void h(e,0,0,0,1):void 0;var o=r.indexOf("("),u=r.indexOf(")");if(-1!==o&&u+1===r.length){var c=r.substr(0,o),f=r.substr(o+1,u-(o+1)).split(","),m=1;switch(c){case"rgba":if(4!==f.length)return void h(e,0,0,0,1);m=l(f.pop());case"rgb":return 3!==f.length?void h(e,0,0,0,1):(h(e,s(f[0]),s(f[1]),s(f[2]),m),g(t,e),e);case"hsla":return 4!==f.length?void h(e,0,0,0,1):(f[3]=l(f[3]),v(f,e),g(t,e),e);case"hsl":return 3!==f.length?void h(e,0,0,0,1):(v(f,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function v(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=l(t[1]),a=l(t[2]),o=a<=.5?a*(n+1):a+n-a*n,s=2*a-o;return h(e=e||[],r(255*u(s,o,i+1/3)),r(255*u(s,o,i)),r(255*u(s,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),a=Math.floor(n),s=Math.ceil(n),l=e[a],u=e[s],h=n-a;return i[0]=r(c(l[0],u[0],h)),i[1]=r(c(l[1],u[1],h)),i[2]=r(c(l[2],u[2],h)),i[3]=o(c(l[3],u[3],h)),i}}var x=y;function _(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),a=Math.floor(n),s=Math.ceil(n),l=m(e[a]),u=m(e[s]),h=n-a,d=w([r(c(l[0],u[0],h)),r(c(l[1],u[1],h)),r(c(l[2],u[2],h)),o(c(l[3],u[3],h))],"rgba");return i?{color:d,leftIndex:a,rightIndex:s,value:n}:d}}var b=_;function w(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}e.parse=m,e.lift=function(t,e){var i=m(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return w(i,4===i.length?"rgba":"rgb")}},e.toHex=function(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},e.fastLerp=y,e.fastMapToColor=x,e.lerp=_,e.mapToColor=b,e.modifyHSL=function(t,e,i,n){if(t=m(t))return t=function(t){if(t){var e,i,n=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-a)/6+l/2)/l,d=((s-r)/6+l/2)/l;n===s?e=d-h:a===s?e=1/3+c-d:r===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,i,u];return null!=t[3]&&p.push(t[3]),p}}(t),null!=e&&(t[0]=(a=e,(a=Math.round(a))<0?0:a>360?360:a)),null!=i&&(t[1]=l(i)),null!=n&&(t[2]=l(n)),w(v(t),"rgba");var a},e.modifyAlpha=function(t,e){if((t=m(t))&&null!=e)return t[3]=o(e),w(t,"rgba")},e.stringify=w},74057:function(t,e,i){var n=i(27796),a=i(89444),r=i(99999),o=i(67679),s=i(74639),l=i(41422),u=i(330),c=i(60397),h=i(66751),d=i(70391),p=i(57123),f=i(7255),g=i(26237),m=i(6226).createFromString,v=i(69008),y=v.isString,x=v.extend,_=v.defaults,b=v.trim,w=v.each,S=/[\s,]+/;function M(t){y(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function I(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}I.prototype.parse=function(t,e){e=e||{};var i=M(t);if(!i)throw new Error("Illegal svg");var a=new n;this._root=a;var r=i.getAttribute("viewBox")||"",o=parseFloat(i.getAttribute("width")||e.width),l=parseFloat(i.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(l)&&(l=null),P(i,a,null,!0);for(var u,c,h=i.firstChild;h;)this._parseNode(h,a),h=h.nextSibling;if(r){var d=b(r).split(S);d.length>=4&&(u={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(u&&null!=o&&null!=l&&(c=N(u,o,l),!e.ignoreViewBox)){var p=a;(a=new n).add(p),p.scale=c.scale.slice(),p.position=c.position.slice()}return e.ignoreRootClip||null==o||null==l||a.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:a,width:o,height:l,viewBoxRect:u,viewBoxTransform:c}},I.prototype._parseNode=function(t,e){var i,n,a=t.nodeName.toLowerCase();if("defs"===a?this._isDefine=!0:"text"===a&&(this._isText=!0),this._isDefine){if(n=A[a]){var r=n.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=r)}}else(n=T[a])&&(i=n.call(this,t,e),e.add(i));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===a?this._isDefine=!1:"text"===a&&(this._isText=!1)},I.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var a=new r({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});C(e,a),P(t,a,this._defs);var o=a.style.fontSize;o&&o<9&&(a.style.fontSize=9,a.scale=a.scale||[1,1],a.scale[0]*=o/9,a.scale[1]*=o/9);var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a};var T={g:function(t,e){var i=new n;return C(e,i),P(t,i,this._defs),i},rect:function(t,e){var i=new s;return C(e,i),P(t,i,this._defs),i.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),i},circle:function(t,e){var i=new o;return C(e,i),P(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),i},line:function(t,e){var i=new u;return C(e,i),P(t,i,this._defs),i.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),i},ellipse:function(t,e){var i=new l;return C(e,i),P(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),i},polygon:function(t,e){var i=t.getAttribute("points");i&&(i=D(i));var n=new h({shape:{points:i||[]}});return C(e,n),P(t,n,this._defs),n},polyline:function(t,e){var i=new c;C(e,i),P(t,i,this._defs);var n=t.getAttribute("points");return n&&(n=D(n)),new d({shape:{points:n||[]}})},image:function(t,e){var i=new a;return C(e,i),P(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(t,e){var i=t.getAttribute("x")||0,a=t.getAttribute("y")||0,r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(a)+parseFloat(o);var s=new n;return C(e,s),P(t,s,this._defs),s},tspan:function(t,e){var i=t.getAttribute("x"),a=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=a&&(this._textY=parseFloat(a));var r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,s=new n;return C(e,s),P(t,s,this._defs),this._textX+=r,this._textY+=o,s},path:function(t,e){var i=t.getAttribute("d")||"",n=m(i);return C(e,n),P(t,n,this._defs),n}},A={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),i=parseInt(t.getAttribute("y1")||0,10),n=parseInt(t.getAttribute("x2")||10,10),a=parseInt(t.getAttribute("y2")||0,10),r=new p(e,i,n,a);return function(t,e){var i=t.firstChild;for(;i;){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var a=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,a)}i=i.nextSibling}}(t,r),r},radialgradient:function(t){}};function C(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_(e.__inheritedStyle,t.__inheritedStyle))}function D(t){for(var e=b(t).split(S),i=[],n=0;n0;r-=2){var o=a[r],s=a[r-1];switch(n=n||g.create(),s){case"translate":o=b(o).split(S),g.translate(n,n,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=b(o).split(S),g.scale(n,n,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=b(o).split(S),g.rotate(n,n,parseFloat(o[0]));break;case"skew":o=b(o).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":o=b(o).split(S);n[0]=parseFloat(o[0]),n[1]=parseFloat(o[1]),n[2]=parseFloat(o[2]),n[3]=parseFloat(o[3]),n[4]=parseFloat(o[4]),n[5]=parseFloat(o[5])}}e.setLocalTransform(n)}}(t,e),x(a,function(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n,a={};E.lastIndex=0;for(;null!=(n=E.exec(e));)a[n[1]]=n[2];for(var r in L)L.hasOwnProperty(r)&&null!=a[r]&&(i[L[r]]=a[r]);return i}(t)),!n))for(var o in L)if(L.hasOwnProperty(o)){var s=t.getAttribute(o);null!=s&&(a[L[o]]=s)}var l=r?"textFill":"fill",u=r?"textStroke":"stroke";e.style=e.style||new f;var c=e.style;null!=a.fill&&c.set(l,O(a.fill,i)),null!=a.stroke&&c.set(u,O(a.stroke,i)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&r?"textStrokeWidth":t;null!=a[t]&&c.set(e,parseFloat(a[t]))})),a.textBaseline&&"auto"!==a.textBaseline||(a.textBaseline="alphabetic"),"alphabetic"===a.textBaseline&&(a.textBaseline="bottom"),"start"===a.textAlign&&(a.textAlign="left"),"end"===a.textAlign&&(a.textAlign="right"),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=a[t]&&c.set(t,a[t])})),a.lineDash&&(e.style.lineDash=b(a.lineDash).split(S)),c[u]&&"none"!==c[u]&&(e[u]=!0),e.__inheritedStyle=a}var k=/url\(\s*#(.*?)\)/;function O(t,e){var i=e&&t&&t.match(k);return i?e[b(i[1])]:t}var R=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var E=/([^\s:;]+)\s*:\s*([^:;]+)/g;function N(t,e,i){var n=e/t.width,a=i/t.height,r=Math.min(n,a);return{scale:[r,r],position:[-(t.x+t.width/2)*r+e/2,-(t.y+t.height/2)*r+i/2]}}e.parseXML=M,e.makeViewBoxTransform=N,e.parseSVG=function(t,e){return(new I).parse(t,e)}},6226:function(t,e,i){var n=i(60397),a=i(94615),r=i(79860),o=Math.sqrt,s=Math.sin,l=Math.cos,u=Math.PI,c=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},h=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(c(t)*c(e))},d=function(t,e){return(t[0]*e[1]1&&(c*=o(_),p*=o(_));var b=(a===r?-1:1)*o((c*c*(p*p)-c*c*(x*x)-p*p*(y*y))/(c*c*(x*x)+p*p*(y*y)))||0,w=b*c*x/p,S=b*-p*y/c,M=(t+i)/2+l(v)*w-s(v)*S,I=(e+n)/2+s(v)*w+l(v)*S,T=d([1,0],[(y-w)/c,(x-S)/p]),A=[(y-w)/c,(x-S)/p],C=[(-1*y-w)/c,(-1*x-S)/p],D=d(A,C);h(A,C)<=-1&&(D=u),h(A,C)>=1&&(D=0),0===r&&D>0&&(D-=2*u),1===r&&D<0&&(D+=2*u),m.addData(g,M,I,c,p,T,D,v,r)}var f=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function m(t,e){var i=function(t){if(!t)return new a;for(var e,i=0,n=0,r=i,o=n,s=new a,l=a.CMD,u=t.match(f),c=0;c')}}catch(t){n=function(t){return l.createElement("<"+t+' xmlns="'+r+'" class="zrvml">')}}e.doc=l,e.createNode=function(t){return n(t)},e.initVML=function(){if(!s&&l){s=!0;var t=l.styleSheets;t.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}},90906:function(t,e,i){var n=i(12973),a=i(47764).applyTransform,r=i(9806),o=i(83720),s=i(63603),l=i(53750),u=i(40460),c=i(20168),h=i(89444),d=i(99999),p=i(60397),f=i(94615),g=i(9193),m=i(1105),v=f.CMD,y=Math.round,x=Math.sqrt,_=Math.abs,b=Math.cos,w=Math.sin,S=Math.max;if(!n.canvasSupported){var M=",",I="progid:DXImageTransform.Microsoft",T=21600,A=T/2,C=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=T+","+T,t.coordorigin="0,0"},D=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},L=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},P=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},k=function(t,e,i){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+i},O=l.parsePercent,R=function(t,e,i){var n=o.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=D(n[0],n[1],n[2]),t.opacity=i*n[3])},E=function(t,e,i,n){var r="fill"===e,s=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i.lineWidth)?(t[r?"filled":"stroked"]="true",i[e]instanceof g&&P(t,s),s||(s=m.createNode(e)),r?function(t,e,i){var n,r,s=e.fill;if(null!=s)if(s instanceof g){var l,u=0,c=[0,0],h=0,d=1,p=i.getBoundingRect(),f=p.width,m=p.height;if("linear"===s.type){l="gradient";var v=i.transform,y=[s.x*f,s.y*m],x=[s.x2*f,s.y2*m];v&&(a(y,y,v),a(x,x,v));var _=x[0]-y[0],b=x[1]-y[1];(u=180*Math.atan2(_,b)/Math.PI)<0&&(u+=360),u<1e-6&&(u=0)}else{l="gradientradial",y=[s.x*f,s.y*m],v=i.transform;var w=i.scale,M=f,I=m;c=[(y[0]-p.x)/M,(y[1]-p.y)/I],v&&a(y,y,v),M/=w[0]*T,I/=w[1]*T;var A=S(M,I);h=0/A,d=2*s.r/A-h}var C=s.colorStops.slice();C.sort((function(t,e){return t.offset-e.offset}));for(var L=C.length,P=[],k=[],O=0;O=2){var z=P[0][0],B=P[1][0],V=P[0][1]*e.opacity,G=P[1][1]*e.opacity;t.type=l,t.method="none",t.focus="100%",t.angle=u,t.color=z,t.color2=B,t.colors=k.join(","),t.opacity=G,t.opacity2=V}"radial"===l&&(t.focusposition=c.join(","))}else R(t,s,e.opacity)}(s,i,n):function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof g||R(t,e.stroke,e.opacity)}(s,i),L(t,s)):(t[r?"filled":"stroked"]="false",P(t,s))},N=[[],[],[]];p.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=m.createNode("shape"),C(i),this._vmlEl=i),E(i,"fill",e,this),E(i,"stroke",e,this);var n=this.transform,r=null!=n,o=i.getElementsByTagName("stroke")[0];if(o){var s=e.lineWidth;if(r&&!e.strokeNoScale){var l=n[0]*n[3]-n[1]*n[2];s*=x(_(l))}o.weight=s+"px"}var u=this.path||(this.path=new f);this.__dirtyPath&&(u.beginPath(),u.subPixelOptimize=!1,this.buildPath(u,this.shape),u.toStatic(),this.__dirtyPath=!1),i.path=function(t,e){var i,n,r,o,s,l,u=v.M,c=v.C,h=v.L,d=v.A,p=v.Q,f=[],g=t.data,m=t.len();for(o=0;o.01?W&&(U+=270/T):Math.abs(Z-B)<1e-4?W&&Uz?C-=270/T:C+=270/T:W&&ZB?I+=270/T:I-=270/T),f.push(Y,y(((z-V)*O+P)*T-A),M,y(((B-G)*R+k)*T-A),M,y(((z+V)*O+P)*T-A),M,y(((B+G)*R+k)*T-A),M,y((U*O+P)*T-A),M,y((Z*R+k)*T-A),M,y((I*O+P)*T-A),M,y((C*R+k)*T-A)),s=I,l=C;break;case v.R:var j=N[0],X=N[1];j[0]=g[o++],j[1]=g[o++],X[0]=j[0]+g[o++],X[1]=j[1]+g[o++],e&&(a(j,j,e),a(X,X,e)),j[0]=y(j[0]*T-A),X[0]=y(X[0]*T-A),j[1]=y(j[1]*T-A),X[1]=y(X[1]*T-A),f.push(" m ",j[0],M,j[1]," l ",X[0],M,j[1]," l ",X[0],M,X[1]," l ",j[0],M,X[1]);break;case v.Z:f.push(" x ")}if(i>0){f.push(n);for(var q=0;q100&&(G=0,V={});var i,n=F.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(t){}e={style:n.fontStyle||B,variant:n.fontVariant||B,weight:n.fontWeight||B,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},V[t]=e,G++}return e}(r.font),b=_.style+" "+_.variant+" "+_.weight+" "+_.size+'px "'+_.family+'"';i=i||s.getBoundingRect(o,b,v,x,r.textPadding,r.textLineHeight);var w=this.transform;if(w&&!n&&(H.copy(e),H.applyTransform(w),e=H),n)f=e.x,g=e.y;else{var S=r.textPosition;if(S instanceof Array)f=e.x+O(S[0],e.width),g=e.y+O(S[1],e.height),v=v||"left";else{var I=this.calculateTextPosition?this.calculateTextPosition({},r,e):s.calculateTextPosition({},r,e);f=I.x,g=I.y,v=v||I.textAlign,x=x||I.textVerticalAlign}}f=s.adjustTextX(f,i.width,v),g=s.adjustTextY(g,i.height,x),g+=i.height/2;var T,A,D,P=m.createNode,R=this._textVmlEl;R?A=(T=(D=R.firstChild).nextSibling).nextSibling:(R=P("line"),T=P("path"),A=P("textpath"),D=P("skew"),A.style["v-text-align"]="left",C(R),T.textpathok=!0,A.on=!0,R.from="0 0",R.to="1000 0.05",L(R,D),L(R,T),L(R,A),this._textVmlEl=R);var N=[f,g],z=R.style;w&&n?(a(N,N,w),D.on=!0,D.matrix=w[0].toFixed(3)+M+w[2].toFixed(3)+M+w[1].toFixed(3)+M+w[3].toFixed(3)+",0,0",D.offset=(y(N[0])||0)+","+(y(N[1])||0),D.origin="0 0",z.left="0px",z.top="0px"):(D.on=!1,z.left=y(f)+"px",z.top=y(g)+"px"),A.string=String(o).replace(/&/g,"&").replace(/"/g,""");try{A.style.font=b}catch(t){}E(R,"fill",{fill:r.textFill,opacity:r.opacity},this),E(R,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash||null},this),R.style.zIndex=k(this.zlevel,this.z,this.z2),L(t,R)}},U=function(t){P(t,this._textVmlEl),this._textVmlEl=null},Z=function(t){L(t,this._textVmlEl)},Y=[u,c,h,p,d],j=0;j