webpackJsonp([47],{1127:function(t,i,e){(function(t){var e;"undefined"!=typeof window?e=window.__DEV__:void 0!==t&&(e=t.__DEV__),void 0===e&&(e=!0);var n=e;i.__DEV__=n}).call(i,e(40))},1146:function(t,e,n){var p=n(768),g=n(1152),m=n(965).parsePercent,v=n(1153),f=p.each,i=["left","right","top","bottom","width","height"],o=[["width","left","right"],["height","top","bottom"]];function a(c,h,d,p,f){var g=0,m=0;null==p&&(p=1/0),null==f&&(f=1/0);var v=0;h.eachChild(function(t,e){var n,i,a=t.position,o=t.getBoundingRect(),r=h.childAt(e+1),s=r&&r.getBoundingRect();if("horizontal"===c){var l=o.width+(s?-s.x+o.x:0);v=p<(n=g+l)||t.newline?(g=0,n=l,m+=v+d,o.height):Math.max(v,o.height)}else{var u=o.height+(s?-s.y+o.y:0);v=f<(i=m+u)||t.newline?(g+=v+d,m=0,i=u,o.width):Math.max(v,o.width)}t.newline||(a[0]=g,a[1]=m,"horizontal"===c?g=n+d:m=i+d)})}var r=a,s=p.curry(a,"vertical"),l=p.curry(a,"horizontal");function y(t,e,n){n=v.normalizeCssArray(n||0);var i=e.width,a=e.height,o=m(t.left,i),r=m(t.top,a),s=m(t.right,i),l=m(t.bottom,a),u=m(t.width,i),c=m(t.height,a),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=a-l-h-r),null!=p&&(isNaN(u)&&isNaN(c)&&(i/a=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.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},1153:function(t,e,n){var c=n(768),l=n(1319),d=n(965);var i=c.normalizeCssArray,a=/([&<>"'])/g,o={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(t){return null==t?"":(t+"").replace(a,function(t,e){return o[e]})}function p(t,e){return"{"+t+(null==e?"":e)+"}"}var f=["a","b","c","d","e","f","g"];function g(t,e){return"0000".substr(0,e-(t+="").length)+t}var r=l.truncateText;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1':'':{renderMode:a,content:"{marker"+o+"|} ",style:{color:n}}:""},e.formatTime=function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=d.parseDate(e),a=n?"UTC":"",o=i["get"+a+"FullYear"](),r=i["get"+a+"Month"]()+1,s=i["get"+a+"Date"](),l=i["get"+a+"Hours"](),u=i["get"+a+"Minutes"](),c=i["get"+a+"Seconds"](),h=i["get"+a+"Milliseconds"]();return t=t.replace("MM",g(r,2)).replace("M",r).replace("yyyy",o).replace("yy",o%100).replace("dd",g(s,2)).replace("d",s).replace("hh",g(l,2)).replace("h",l).replace("mm",g(u,2)).replace("m",u).replace("ss",g(c,2)).replace("s",c).replace("SSS",g(h,3))},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=r,e.getTextBoundingRect=function(t){return l.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},e.getTextRect=function(t,e,n,i,a,o,r,s){return l.getBoundingRect(t,e,n,i,a,s,o,r)}},1224:function(t,e,n){var i=n(1593),o=n(768),s=n(1550),l=n(2559),y=n(2120).prototype.getCanvasPattern,a=Math.abs,x=new s(!0);function r(t){i.call(this,t),this.path=null}r.prototype={constructor:r,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var n,i=this.style,a=this.path||x,o=i.hasStroke(),r=i.hasFill(),s=i.fill,l=i.stroke,u=r&&!!s.colorStops,c=o&&!!l.colorStops,h=r&&!!s.image,d=o&&!!l.image;i.bind(t,this,e),this.setTransform(t),this.__dirty&&(u&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(t,s,n)),c&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,l,n)));u?t.fillStyle=this._fillGradient:h&&(t.fillStyle=y.call(s,t)),c?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=y.call(l,t));var p=i.lineDash,f=i.lineDashOffset,g=!!t.setLineDash,m=this.getGlobalScale();if(a.setScale(m[0],m[1],this.segmentIgnoreThreshold),this.__dirtyPath||p&&!g&&o?(a.beginPath(t),p&&!g&&(a.setLineDash(p),a.setLineDashOffset(f)),this.buildPath(a,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),r)if(null!=i.fillOpacity){var v=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,a.fill(t),t.globalAlpha=v}else a.fill(t);if(p&&g&&(t.setLineDash(p),t.lineDashOffset=f),o)if(null!=i.strokeOpacity){v=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,a.stroke(t),t.globalAlpha=v}else a.stroke(t);p&&g&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new s},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i=i||(this.path=new s),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){a.copy(t);var o=e.lineWidth,r=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),1e-10":"\n",p="richText"===h,f={},g=0;function n(t){return{renderMode:h,content:S(C(t)),style:f}}var m=this.getData(),o=m.mapDimension("defaultedTooltip",!0),i=o.length,r=this.getRawValue(a),s=b.isArray(r),v=m.getItemVisual(a,"color");b.isObject(v)&&v.colorStops&&(v=(v.colorStops[0]||{}).color),v=v||"transparent";var l=(1":"",i=n+u.join(n||", ");return{renderMode:h,content:i,style:f}}(r):n(i?T(m,a,o[0]):s?r[0]:r)).content,u=d.seriesIndex+"at"+g,y=M({color:v,type:"item",renderMode:h,markerId:u});f[u]=v,++g;var x=m.getName(a),_=this.name;I.isNameSpecified(this)||(_=""),_=_?S(_)+(c?": ":e):"";var A="string"==typeof y?y:y.content;return{html:c?A+_+l:_+A+(x?S(x)+": "+l:l),markers:f}},isAnimationEnabled:function(){if(i.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,n){var i=this.ecModel,a=r.getColorFromPalette.call(this,t,e,n);return a=a||i.getColorFromPalette(t,e,n)},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 v(t){var n,e,i,a=t.name;I.isNameSpecified(t)||(t.name=(n=t.getRawData(),e=n.mapDimension("seriesName",!0),i=[],b.each(e,function(t){var e=n.getDimensionInfo(t);e.displayName&&i.push(e.displayName)}),i.join(" ")||a))}function y(t){return t.model.getRawData().count()}function x(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),_}function _(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function A(e,n){b.each(e.CHANGABLE_METHODS,function(t){e.wrapMethod(t,b.curry(D,n))})}function D(t){var e=k(t);e&&e.setOutputEnd(this.count())}function k(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(t.uid))}return i}}b.mixin(m,s),b.mixin(m,r);var P=m;t.exports=P},1284:function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array;function i(){var t=new n(6);return a(t),t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}e.create=i,e.identity=a,e.copy=o,e.mul=function(t,e,n){var i=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],r=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=a,t[2]=o,t[3]=r,t[4]=s,t[5]=l,t},e.translate=function(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t},e.rotate=function(t,e,n){var i=e[0],a=e[2],o=e[4],r=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+r*u,t[1]=-i*u+r*c,t[2]=a*c+s*u,t[3]=-a*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t},e.scale=function(t,e,n){var i=n[0],a=n[1];return t[0]=e[0]*i,t[1]=e[1]*a,t[2]=e[2]*i,t[3]=e[3]*a,t[4]=e[4]*i,t[5]=e[5]*a,t},e.invert=function(t,e){var n=e[0],i=e[2],a=e[4],o=e[1],r=e[3],s=e[5],l=n*r-o*i;return l?(l=1/l,t[0]=r*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-r*a)*l,t[5]=(o*a-n*s)*l,t):null},e.clone=function(t){var e=i();return o(e,t),e}},1319:function(t,e,n){var g=n(1152),P=n(1802),i=n(768),a=i.getContext,u=i.extend,L=i.retrieve2,B=i.retrieve3,o=i.trim,s={},l=0,c=5e3,E=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,h="12px sans-serif",r={};function O(t,e){var n=t+":"+(e=e||h);if(s[n])return s[n];for(var i=(t+"").split("\n"),a=0,o=0,r=i.length;o=e.maxIterations){t+=e.ellipsis;break}var s=0===r?p(t,a,e.ascCharWidth,e.cnCharWidth):0p)return{lines:[],width:0,height:0};D.textWidth=O(D.text,A);var w=x.textWidth,S=null==w||"auto"===w;if("string"==typeof w&&"%"===w.charAt(w.length-1))D.percentWidth=w,u.push(D),w=0;else{if(S){w=D.textWidth;var C=x.textBackgroundColor,M=C&&C.image;M&&(M=P.findExistImage(M),P.isImageReady(M)&&(w=Math.max(w,M.width*b/M.height)))}var I=_?_[1]+_[3]:0;w+=I;var T=null!=d?d-v:null;null!=T&&Tx[1]&&(x[1]=y)}e&&(this._nameList[d]=e[p])}this._rawCount=this._count=l,this._extent={},P(this)},_._initDataFromProvider=function(t,e){if(!(e<=t)){for(var n,i=this._chunkSize,a=this._rawData,o=this._storage,r=this.dimensions,s=r.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},p=this._chunkCount,f=0;fS[1]&&(S[1]=w)}if(!a.pure){var C=u[v];if(m&&null==C)if(null!=m.name)u[v]=C=m.name;else if(null!=n){var M=r[n],I=o[M][y];if(I){C=I[x];var T=l[M].ordinalMeta;T&&T.categories.length&&(C=T.categories[C])}}var D=null==m?null:m.id;null==D&&null!=C&&(d[C]=d[C]||0,0=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;a=o-1}}return-1},_.indicesOfNearest=function(t,e,n){var i=[];if(!this._storage[t])return i;null==n&&(n=1/0);for(var a=Number.MAX_VALUE,o=-1,r=0,s=this.count();rt[C][1])&&(S=!1)}S&&(o[r++]=this.getRawIndex(m))}return rA[1]&&(A[1]=_)}}}return a},_.downSample=function(t,e,n,i){for(var a=C(this,[t]),o=a._storage,r=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=this._chunkSize,h=a._rawExtent[t],d=new(M(this))(u),p=0,f=0;fh[1]&&(h[1]=x),d[p++]=_}return a._count=p,a._indices=d,a.getRawIndex=T,a},_.getItemModel=function(t){var e=this.hostModel;return new i(this.getRawDataItem(t),e,e&&e.ecModel)},_.diff=function(e){var n=this;return new a(e?e.getIndices():[],this.getIndices(),function(t){return b(e,t)},function(t){return b(n,t)})},_.getVisual=function(t){var e=this._visual;return e&&e[t]},_.setVisual=function(t,e){if(c(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},_.setLayout=function(t,e){if(c(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},_.getLayout=function(t){return this._layout[t]},_.getItemLayout=function(t){return this._itemLayouts[t]},_.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?w.extend(this._itemLayouts[t]||{},e):e},_.clearItemLayouts=function(){this._itemLayouts.length=0},_.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],a=i&&i[e];return null!=a||n?a:this.getVisual(e)},_.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},a=this.hasItemVisual;if(this._itemVisuals[t]=i,c(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],a[o]=!0);else i[e]=n,a[e]=!0},_.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};function B(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType}_.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(B,e)),this._graphicEls[t]=e},_.getItemGraphicEl=function(t){return this._graphicEls[t]},_.eachItemGraphicEl=function(n,i){w.each(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},_.cloneShallow=function(t){if(!t){var e=w.map(this.dimensions,this.getDimensionInfo,this);t=new x(e,this.hostModel)}if(t._storage=this._storage,y(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?T:I,t},_.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(w.slice(arguments)))})},_.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],_.CHANGABLE_METHODS=["filterSelf","selectRange"];var E=x;t.exports=E},1321:function(t,e,n){var i=n(768),u=n(852),c=n(1152),o=n(1319).calculateTextPosition,a=u.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,a=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+a,i+o),t.lineTo(n-a,i+o),t.closePath()}}),r=u.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,a=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+a,i),t.lineTo(n,i+o),t.lineTo(n-a,i),t.closePath()}}),s=u.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,a=e.width/5*3,o=Math.max(a,e.height),r=a/2,s=r*r/(o-r),l=i-o+r+s,u=Math.asin(s/r),c=Math.cos(u)*r,h=Math.sin(u),d=Math.cos(u),p=.6*r,f=.7*r;t.moveTo(n-c,l+s),t.arc(n,l,r,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),l=u.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,a=e.x,o=e.y,r=i/3*2;t.moveTo(a,o),t.lineTo(a+r,o+n),t.lineTo(a,o+n/4*3),t.lineTo(a-r,o+n),t.lineTo(a,o),t.closePath()}}),h={line:u.Line,rect:u.Rect,roundRect:u.Rect,square:u.Rect,circle:u.Circle,diamond:r,pin:s,arrow:l,triangle:a},d={line:function(t,e,n,i,a){a.x1=t,a.y1=e+i/2,a.x2=t+n,a.y2=e+i/2},rect:function(t,e,n,i,a){a.x=t,a.y=e,a.width=n,a.height=i},roundRect:function(t,e,n,i,a){a.x=t,a.y=e,a.width=n,a.height=i,a.r=Math.min(n,i)/4},square:function(t,e,n,i,a){var o=Math.min(n,i);a.x=t,a.y=e,a.width=o,a.height=o},circle:function(t,e,n,i,a){a.cx=t+n/2,a.cy=e+i/2,a.r=Math.min(n,i)/2},diamond:function(t,e,n,i,a){a.cx=t+n/2,a.cy=e+i/2,a.width=n,a.height=i},pin:function(t,e,n,i,a){a.x=t+n/2,a.y=e+i/2,a.width=n,a.height=i},arrow:function(t,e,n,i,a){a.x=t+n/2,a.y=e+i/2,a.width=n,a.height=i},triangle:function(t,e,n,i,a){a.cx=t+n/2,a.cy=e+i/2,a.width=n,a.height=i}},p={};i.each(h,function(t,e){p[e]=new t});var f=u.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=o(t,e,n),a=this.shape;return a&&"pin"===a.symbolType&&"inside"===e.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var a=p[i];a=a||p[i="rect"],d[i](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,n)}}});function g(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}e.createSymbol=function(t,e,n,i,a,o,r){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?u.makeImage(t.slice(8),new c(e,n,i,a),r?"center":"cover"):0===t.indexOf("path://")?u.makePath(t.slice(7),{},new c(e,n,i,a),r?"center":"cover"):new f({shape:{symbolType:t,x:e,y:n,width:i,height:a}})).__isEmptyBrush=l,s.setColor=g,s.setColor(o),s}},1381:function(t,e,n){var r=n(768),s={};function i(){this._coordinateSystems=[]}i.prototype={constructor:i,create:function(i,a){var o=[];r.each(s,function(t,e){var n=t.create(i,a);o=o.concat(n||[])}),this._coordinateSystems=o},update:function(e,n){r.each(this._coordinateSystems,function(t){t.update&&t.update(e,n)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},i.register=function(t,e){s[t]=e},i.get=function(t){return s[t]};var a=i;t.exports=a},1382:function(t,e,n){n(1127).__DEV__;var m=n(768),i=n(2586),a=n(1691),o=n(1690),v=n(965),r=n(1692),y=r.prepareLayoutBarSeries,x=r.makeColumnLayout,_=r.retrieveColumnLayout,w=n(1152);function l(t,e){var n,i,a,o=t.type,r=e.getMin(),s=e.getMax(),l=null!=r,u=null!=s,c=t.getExtent();"ordinal"===o?n=e.getCategories().length:(i=e.get("boundaryGap"),m.isArray(i)||(i=[i||0,i||0]),"boolean"==typeof i[0]&&(i=[0,0]),i[0]=v.parsePercent(i[0],1),i[1]=v.parsePercent(i[1],1),a=c[1]-c[0]||Math.abs(c[0])),null==r&&(r="ordinal"===o?n?0:NaN:c[0]-i[0]*a),null==s&&(s="ordinal"===o?n?n-1:NaN:c[1]+i[1]*a),"dataMin"===r?r=c[0]:"function"==typeof r&&(r=r({min:c[0],max:c[1]})),"dataMax"===s?s=c[1]:"function"==typeof s&&(s=s({min:c[0],max:c[1]})),null!=r&&isFinite(r)||(r=NaN),null!=s&&isFinite(s)||(s=NaN),t.setBlank(m.eqNaN(r)||m.eqNaN(s)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(0>1)%2;s.cssText=["position:absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","width:0","height:0",i[l]+":0",a[u]+":0",i[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),t.appendChild(r),n.push(r)}return n}(t,r),r);if(s)return s(c,i,a),n.zrX=c[0],void(n.zrY=c[1])}n.zrX=n.zrY=0}var h=a?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=s,e.normalizeEvent=function(t,e,n){if(null!=(e=e||window.event).zrX)return e;var i=e.type;if(i&&0<=i.indexOf("touch")){var a="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];a&&s(t,a,e,n)}else s(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&r.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e},e.addEventListener=function(t,e,n){a?t.addEventListener(e,n):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){a?t.removeEventListener(e,n):t.detachEvent("on"+e,n)},e.stop=h,e.isMiddleOrRightButtonOnMouseUpDown=function(t){return 2===t.which||3===t.which},e.notLeftMouse=function(t){return 1>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),x(t,e),e):void m(e,0,0,0,1):7===a.length?0<=(i=parseInt(a.substr(1),16))&&i<=16777215?(m(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),x(t,e),e):void m(e,0,0,0,1):void 0;var o=a.indexOf("("),r=a.indexOf(")");if(-1!==o&&r+1===a.length){var s=a.substr(0,o),l=a.substr(o+1,r-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return void m(e,0,0,0,1);u=f(l.pop());case"rgb":return 3!==l.length?void m(e,0,0,0,1):(m(e,p(l[0]),p(l[1]),p(l[2]),u),x(t,e),e);case"hsla":return 4!==l.length?void m(e,0,0,0,1):(l[3]=f(l[3]),A(l,e),x(t,e),e);case"hsl":return 3!==l.length?void m(e,0,0,0,1):(A(l,e),x(t,e),e);default:return}}m(e,0,0,0,1)}}function A(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=f(t[1]),a=f(t[2]),o=a<=.5?a*(i+1):a+i-a*i,r=2*a-o;return m(e=e||[],h(255*s(r,o,n+1/3)),h(255*s(r,o,n)),h(255*s(r,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function o(t,e,n){if(e&&e.length&&0<=t&&t<=1){n=n||[];var i=t*(e.length-1),a=Math.floor(i),o=Math.ceil(i),r=e[a],s=e[o],l=i-a;return n[0]=h(g(r[0],s[0],l)),n[1]=h(g(r[1],s[1],l)),n[2]=h(g(r[2],s[2],l)),n[3]=d(g(r[3],s[3],l)),n}}var r=o;function l(t,e,n){if(e&&e.length&&0<=t&&t<=1){var i=t*(e.length-1),a=Math.floor(i),o=Math.ceil(i),r=_(e[a]),s=_(e[o]),l=i-a,u=b([h(g(r[0],s[0],l)),h(g(r[1],s[1],l)),h(g(r[2],s[2],l)),d(g(r[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:o,value:i}:u}}var u=l;function b(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}e.parse=_,e.lift=function(t,e){var n=_(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255s[1];d(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]});d(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&d(o.coord,s[1])&&e.push({coord:s[1]});function d(t,e){return t=f(t),e=f(e),h?eu[1]?-1:1,h=["start"===o?u[0]-c*l:"end"===o?u[1]+c*l:(u[0]+u[1])/2,L(o)?t.labelOffset+r*l:0],d=e.get("nameRotate");null!=d&&(d=d*T/180),L(o)?i=k(t.rotation,null!=d?d:t.rotation,r):(i=function(t,e,n,i){var a,o,r=I(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;a=M(r-T/2)?(o=l?"bottom":"top","center"):M(r-1.5*T)?(o=l?"top":"bottom","center"):(o="middle",r<1.5*T&&T/2this._ux||k(e-this._yi)>this._uy||this._len<5;return this.addData(C.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,a,o){return this.addData(C.C,t,e,n,i,a,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,a,o):this._ctx.bezierCurveTo(t,e,n,i,a,o)),this._xi=a,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(C.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,a,o){return this.addData(C.A,t,e,n,n,i,a-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=I(a)*n+t,this._yi=T(a)*n+e,this},arcTo:function(t,e,n,i,a){return this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(C.R,t,e,n,i),this},closePath:function(){this.addData(C.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,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;for(var e=this._dashIdx=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;nl||k(r-a)>u||h===c-1)&&(t.lineTo(o,r),i=o,a=r);break;case C.C:t.bezierCurveTo(s[h++],s[h++],s[h++],s[h++],s[h++],s[h++]),i=s[h-2],a=s[h-1];break;case C.Q:t.quadraticCurveTo(s[h++],s[h++],s[h++],s[h++]),i=s[h-2],a=s[h-1];break;case C.A:var p=s[h++],f=s[h++],g=s[h++],m=s[h++],v=s[h++],y=s[h++],x=s[h++],_=s[h++],A=mo&&(e[1-i]=e[i]+h.sign*o),e}},1556:function(t,e,n){n(1127).__DEV__;var i=n(789),s=n(768),a=n(1240),o=n(987),r=n(1825),l=n(2776),u=s.each,c=r.eachAxisDim;function h(e){var n={};return u(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}function d(t,a){var o=t._rangePropMode,r=t.get("rangeMode");u([["start","startValue"],["end","endValue"]],function(t,e){var n=null!=a[t[0]],i=null!=a[t[1]];n&&!i?o[e]="percent":!n&&i?o[e]="value":r?o[e]=r[e]:n&&(o[e]="percent")})}var p=i.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,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=h(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=h(t);s.merge(this.option,t,!0),s.merge(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var n=this.option;a.canvasSupported||(n.realtime=!1),this._setDefaultThrottle(t),d(this,t);var i=this.settledOption;u([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=i[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var r=this._axisProxies;this.eachTargetAxis(function(t,e,n,i){var a=this.dependentModels[t.axis][e],o=a.__dzAxisProxy||(a.__dzAxisProxy=new l(t.name,e,this,i));r[t.name+"_"+e]=o},this)},_resetTarget:function(){var n=this.option,t=this._judgeAutoMode();c(function(t){var e=t.axisIndex;n[e]=o.normalizeToArray(n[e])},this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,n=!1;c(function(t){null!=e[t.axisIndex]&&(n=!0)},this);var t=e.orient;return null==t&&n?"orient":n?void 0:(null==t&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var o=!0,e=this.get("orient",!0),r=this.option,t=this.dependentModels;if(o){var n="vertical"===e?"y":"x";t[n+"Axis"].length?(r[n+"AxisIndex"]=[0],o=!1):u(t.singleAxis,function(t){o&&t.get("orient",!0)===e&&(r.singleAxisIndex=[t.componentIndex],o=!1)})}o&&c(function(t){if(o){var e=[],n=this.dependentModels[t.axis];if(n.length&&!e.length)for(var i=0,a=n.length;i=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 n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(t){this._isBlank=t},a.prototype.getLabel=null,i.enableClassExtend(a),i.enableClassManagement(a,{registerWhenExtend:!0});var o=a;t.exports=o},1691:function(t,e,n){var i=n(965),a=n(1153),o=n(1690),r=n(2144),s=i.round,l=o.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[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=r.getIntervalPrecision(t)},getTicks:function(){return r.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=i.getPrecisionSafe(t)||0:"auto"===n&&(n=this._intervalPrecision),t=s(t,n,!0),a.addCommas(t)},niceTicks:function(t,e,n){t=t||5;var i=this._extent,a=i[1]-i[0];if(isFinite(a)){a<0&&(a=-a,i.reverse());var o=r.intervalScaleNiceTicks(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/a)*a)),t.fixMax||(e[1]=s(Math.ceil(e[1]/a)*a))}});l.create=function(){return new l};var u=l;t.exports=u},1692:function(t,e,n){var f=n(768),v=n(965).parsePercent,D=n(1413).isDimensionStacked,i=n(1551),l="__ec_stack_",y="undefined"!=typeof Float32Array?Float32Array:Array;function k(t){return t.get("stack")||l+t.seriesIndex}function P(t){return t.dim+t.index}function a(t,e){var n=[];return e.eachSeriesByType(t,function(t){x(t)&&!_(t)&&n.push(t)}),n}function o(t){var g=function(t){var l={};f.each(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var n=t.getData(),i=e.dim+"_"+e.index,a=n.mapDimension(e.dim),o=0,r=n.count();ol[1]&&l.reverse(),(null==r||r>l[1])&&(r=l[1]),r>>1])<0?l=o:s=1+o;var u=i-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(;0>>1);0>>1);o(t,e[n+c])<0?l=c:r=c+1}return l}function d(f,g){var t,r,s,m=y,l=0;t=f.length;var v=[];function e(t){var e=r[t],n=s[t],i=r[t+1],a=s[t+1];s[t]=n+a,t===l-3&&(r[t+1]=r[t+2],s[t+1]=s[t+2]),l--;var o=_(f[i],f,e,n,0,g);e+=o,0!==(n-=o)&&0!==(a=x(f[e+n-1],f,i,a,a-1,g))&&(n<=a?function(t,e,n,i){var a=0;for(a=0;as[t+1])break;e(t)}},this.forceMergeRuns=function(){for(;1>=1;return t+e}(a);do{if((o=c(t,n,i,e))e&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;er)return!0;if(o){var s=u.getAxisInfo(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>r}return!1},makeElOption:function(t,e,n,i,a){},createPointerEl:function(t,e,n,i){var a=e.pointer;if(a){var o=r(t).pointerEl=new p[a.type](s(e.pointer));t.add(o)}},createLabelEl:function(t,e,n,i){if(e.label){var a=r(t).labelEl=new p.Rect(s(e.label));t.add(a),o(a,i)}},updatePointerEl:function(t,e,n){var i=r(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var a=r(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{shape:e.label.shape,position:e.label.position}),o(a,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),a=this._handle,o=n.getModel("handle"),r=n.get("status");if(!o.get("show")||!r||"hide"===r)return a&&i.remove(a),void(this._handle=null);this._handle||(e=!0,a=this._handle=p.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){l.stop(t.event)},onmousedown:h(this._onHandleDragMove,this,0,0),drift:h(this._onHandleDragMove,this),ondragend:h(this._onHandleDragEnd,this)}),i.add(a)),m(a,n,!1);a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");d.isArray(s)||(s=[s,s]),a.attr("scale",[s[0]/2,s[1]/2]),c.createOrUpdate(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){f(this._axisPointerModel,!e&&this._moveAnimation,this._handle,g(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(g(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(g(i)),r(n).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(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}}).constructor=a,i.enableClassExtend(a);var v=a;t.exports=v},1823:function(t,e,n){n(1127).__DEV__;var u=n(768),c=n(2750),h=n(965).parsePercent,i=n(1382),a=i.createScaleByModel,s=i.niceScaleExtent,o=n(1381),l=n(1413).getStackedDimension;function d(t,e){var n=this,i=n.getAngleAxis(),a=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();u.each(e.mapDimension("radius",!0),function(t){a.scale.unionExtentFromData(e,l(e,t))}),u.each(e.mapDimension("angle",!0),function(t){i.scale.unionExtentFromData(e,l(e,t))})}}),s(i.scale,i.model),s(a.scale,a.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),r=360/i.scale.count();i.inverse?o[1]+=r:o[1]-=r,i.setExtent(o[0],o[1])}}function p(t,e){if(t.type=e.get("type"),t.scale=a(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}(e.axis=t).model=e}n(2753);var r={dimensions:c.prototype.dimensions,create:function(n,s){var l=[];return n.eachComponent("polar",function(t,e){var n=new c(e);n.update=d;var i=n.getRadiusAxis(),a=n.getAngleAxis(),o=t.findAxisModel("radiusAxis"),r=t.findAxisModel("angleAxis");p(i,o),p(a,r),function(t,e,n){var i=e.get("center"),a=n.getWidth(),o=n.getHeight();t.cx=h(i[0],a),t.cy=h(i[1],o);var r=t.getRadiusAxis(),s=Math.min(a,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:u.isArray(l)||(l=[0,l]),l=[h(l[0],s),h(l[1],s)],r.inverse?r.setExtent(l[1],l[0]):r.setExtent(l[0],l[1])}(n,t,s),l.push(n),(t.coordinateSystem=n).model=t}),n.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var e=n.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=e.coordinateSystem}}),l}};o.register("polar",r)},1824:function(t,e,n){n(1245).registerSubTypeDefaulter("dataZoom",function(){return"slider"})},1825:function(t,e,n){var h=n(768),i=n(1153),a=["cartesian2d","polar","singleAxis"];function o(t,r){t=t.slice();var s=h.map(t,i.capitalFirst);r=(r||[]).slice();var l=h.map(r,i.capitalFirst);return function(a,o){h.each(t,function(t,e){for(var n={name:t,capital:s[e]},i=0;i"),a&&(o+=c(a),null!=n&&(o+=" : ")),null!=n&&(o+=c(i)),o},getData:function(){return this._data},setData:function(t){this._data=t}});s.mixin(d,l);var p=d;t.exports=p},1829:function(t,e,n){var h=n(768),d=n(965),p=n(1413).isDimensionStacked,f=h.indexOf;function i(t,e,n,i,a,o){var r=[],s=p(e,i)?e.getCalculationInfo("stackResultDimension"):i,l=v(e,s,t),u=e.indicesOfNearest(s,l)[0];r[a]=e.get(n,u),r[o]=e.get(i,u);var c=d.getPrecision(e.get(i,u));return 0<=(c=Math.min(c,20))&&(r[o]=+r[o].toFixed(c)),r}var a=h.curry,g={min:a(i,"min"),max:a(i,"max"),average:a(i,"average")};function m(t,e,n,i){var a={};return null!=t.valueIndex||null!=t.valueDim?(a.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var a=0;ae);n++);n=Math.min(n-1,u-2)}L=e;var i=y[(P=n)+1]-y[n];if(0!=i)if(M=(e-y[n])/i,l)if(T=x[n],I=x[0===n?n:n-1],D=x[u-2=this._maxSize&&0e)return t[i];return t[n-1]}(s,n):r;if((l=l||r)&&l.length){var u=l[a];return t&&(o[t]=u),i.colorIdx=(a+1)%l.length,u}}};t.exports=o},2137:function(t,e,n){n(1127).__DEV__;var i=n(768),a=i.createHashMap,u=(i.retrieve,i.each);var o={cartesian2d:function(t,e,n,i){var a=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",o),c(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),c(o)&&(i.set("y",o),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var a=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",a),c(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var a=t.getReferringComponents("polar")[0],o=a.findAxisModel("radiusAxis"),r=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",r),c(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),c(r)&&(i.set("angle",r),e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,a,o,r){var s=t.ecModel,e=s.getComponent("parallel",t.get("parallelIndex")),l=a.coordSysDims=e.dimensions.slice();u(e.parallelAxisIndex,function(t,e){var n=s.getComponent("parallelAxis",t),i=l[e];o.set(i,n),c(n)&&null==a.firstCategoryDimIndex&&(r.set(i,n),a.firstCategoryDimIndex=e)})}};function c(t){return"category"===t.get("type")}e.getCoordSysDefineBySeries=function(t){var e=t.get("coordinateSystem"),n={coordSysName:e,coordSysDims:[],axisMap:a(),categoryAxisMap:a()},i=o[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}},2138:function(t,e,n){var i=n(768),a=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function o(e){i.each(a,function(t){this[t]=i.bind(e[t],e)},this)}t.exports=o},2139:function(t,e,n){var i=n(1245),a=n(1689),o=n(1688).detectSourceFormat,r=n(1596).SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:r,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),a.extend({type:"dataset"})},2140:function(t,e,n){var d=n(1547),i=n(1548),s=n(1502),a=n(2130),p=n(1803),o=n(2584),r=n(2135),l=n(1224),u=n(2132),c=n(2134),h=n(1805),f=n(1801),g=n(1284),m=n(2125).createFromString,v=n(768),y=v.isString,x=v.extend,_=v.defaults,A=v.trim,b=v.each,w=/[\s,]+/;function S(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 C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(t,e){e=e||{};var n=S(t);if(!n)throw new Error("Illegal svg");var i=new d;this._root=i;var a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),r=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(r)&&(r=null),P(n,i,null,!0);for(var s,l,u=n.firstChild;u;)this._parseNode(u,i),u=u.nextSibling;if(a){var c=A(a).split(w);4<=c.length&&(s={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(s&&null!=o&&null!=r&&(l=N(s,o,r),!e.ignoreViewBox)){var h=i;(i=new d).add(h),h.scale=l.scale.slice(),h.position=l.position.slice()}return e.ignoreRootClip||null==o||null==r||i.setClipPath(new p({shape:{x:0,y:0,width:o,height:r}})),{root:i,width:o,height:r,viewBoxRect:s,viewBoxTransform:l}},C.prototype._parseNode=function(t,e){var n,i,a=t.nodeName.toLowerCase();if("defs"===a?this._isDefine=!0:"text"===a&&(this._isText=!0),this._isDefine){if(i=I[a]){var o=i.call(this,t),r=t.getAttribute("id");r&&(this._defs[r]=o)}}else(i=M[a])&&(n=i.call(this,t,e),e.add(n));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===a?this._isDefine=!1:"text"===a&&(this._isText=!1)},C.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var a=new s({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});T(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 r=a.getBoundingRect();return this._textX+=r.width,e.add(a),a};var M={g:function(t,e){var n=new d;return T(e,n),P(t,n,this._defs),n},rect:function(t,e){var n=new p;return T(e,n),P(t,n,this._defs),n.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)}),n},circle:function(t,e){var n=new a;return T(e,n),P(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new r;return T(e,n),P(t,n,this._defs),n.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)}),n},ellipse:function(t,e){var n=new o;return T(e,n),P(t,n,this._defs),n.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)}),n},polygon:function(t,e){var n=t.getAttribute("points");n=n&&D(n);var i=new u({shape:{points:n||[]}});return T(e,i),P(t,i,this._defs),i},polyline:function(t,e){var n=new l;T(e,n),P(t,n,this._defs);var i=t.getAttribute("points");return i=i&&D(i),new c({shape:{points:i||[]}})},image:function(t,e){var n=new i;return T(e,n),P(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,i=t.getAttribute("y")||0,a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var r=new d;return T(e,r),P(t,r,this._defs),r},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,r=new d;return T(e,r),P(t,r,this._defs),this._textX+=a,this._textY+=o,r},path:function(t,e){var n=t.getAttribute("d")||"",i=m(n);return T(e,i),P(t,i,this._defs),i}},I={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),a=parseInt(t.getAttribute("y2")||0,10),o=new h(e,n,i,a);return function(t,e){var n=t.firstChild;for(;n;){if(1===n.nodeType){var i=n.getAttribute("offset");i=0t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=function(t,e,n,i){var a={},o=t[1]-t[0],r=a.interval=l.nice(o/e,!0);null!=n&&r(a.length?a[a.length-1]:n[1])&&a.push(e[1]),a}},2145:function(t,e,n){var o=n(768),i=n(1690),r=n(965),a=n(1691),s=i.prototype,l=a.prototype,u=r.getPrecisionSafe,c=r.round,h=Math.floor,d=Math.ceil,p=Math.pow,f=Math.log,g=i.extend({type:"log",base:10,$constructor:function(){i.apply(this,arguments),this._originalScale=new a},getTicks:function(){var n=this._originalScale,i=this._extent,a=n.getExtent();return o.map(l.getTicks.call(this),function(t){var e=r.round(p(this.base,t));return e=t===i[0]&&n.__fixMin?m(e,a[0]):e,e=t===i[1]&&n.__fixMax?m(e,a[1]):e},this)},getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),p(this.base,t)},setExtent:function(t,e){var n=this.base;t=f(t)/f(n),e=f(e)/f(n),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=s.getExtent.call(this);e[0]=p(t,e[0]),e[1]=p(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=m(e[0],i[0])),n.__fixMax&&(e[1]=m(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=f(t[0])/f(e),t[1]=f(t[1])/f(e),s.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=r.quantity(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0>1^-(1&s),l=l>>1^-(1&l),a=s+=a,o=l+=o,i.push([s/n,l/n])}return i}t.exports=function(t){return function(t){if(!t.UTF8Encoding)return;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;ii[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var o=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:a(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,a=n.length,o=h(n,e.smoothConstraint);if(e.connectNulls){for(;0 "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=C(t,n);else{var g=S.get(f),m=g&&"view"!==g.type&&g.dimensions||[];x.indexOf(m,"value")<0&&m.concat(["value"]);var v=w(t,{coordDimensions:m});(p=new _(v,n)).initData(t)}var y=new _(["value"],n);return y.initData(l,s),a&&a(p,y),b({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}},2163:function(t,e,n){var i=n(789);i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},2164:function(t,e,n){var o=n(1150);function i(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.curveness")||0,n=o.clone(t.node1.getLayout()),i=o.clone(t.node2.getLayout()),a=[n,i];+e&&a.push([(n[0]+i[0])/2-(n[1]-i[1])*e,(n[1]+i[1])/2-(i[0]-n[0])*e]),t.setLayout(a)})}e.simpleLayout=function(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),i(n)}},e.simpleLayoutEdge=i},2165:function(t,e,n){var c=n(1150),i=n(1820),d=i.getSymbolSize,p=i.getNodeGlobalScale,f=Math.PI,g=[];var h={value:function(t,e,n,i,a,o,r,s){var l=0,u=i.getSum("value"),c=2*Math.PI/(u||s);n.eachNode(function(t){var e=t.getValue("value"),n=c*(u?e:1)/2;l+=n,t.setLayout([a*Math.cos(l)+o,a*Math.sin(l)+r]),l+=n})},symbolSize:function(t,e,n,i,a,o,r,s){var l=0;g.length=s;var u=p(t);n.eachNode(function(t){var e=d(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=u;var n=Math.asin(e/2/a);isNaN(n)&&(n=f/2),g[t.dataIndex]=n,l+=2*n});var c=(2*f-l)/s/2,h=0;n.eachNode(function(t){var e=c+g[t.dataIndex];h+=e,t.setLayout([a*Math.cos(h)+o,a*Math.sin(h)+r]),h+=e})}};e.circularLayout=function(t,e){var n=t.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),a=t.getData(),o=a.graph,s=i.width/2+i.x,l=i.height/2+i.y,r=Math.min(i.width,i.height)/2,u=a.count();a.setLayout({cx:s,cy:l}),u&&(h[e](t,n,o,a,r,s,l,u),o.eachEdge(function(t){var e,n=t.getModel().get("lineStyle.curveness")||0,i=c.clone(t.node1.getLayout()),a=c.clone(t.node2.getLayout()),o=(i[0]+a[0])/2,r=(i[1]+a[1])/2;+n&&(e=[s*(n*=3)+o*(1-n),l*n+r*(1-n)]),t.setLayout([i,a,e])}))}}},2166:function(t,e,n){var i=n(789),a=n(768),o=n(1465),r=n(2676);n(2167),n(2679),n(2681);i.extendComponentView({type:"parallel",render:function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},a.each(s,function(t,e){n.getZr().on(e,this._handlers[e]=a.bind(t,this))},this)),o.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,n){a.each(this._handlers,function(t,e){n.getZr().off(e,t)}),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(a.extend({type:"parallelAxisExpand"},t))}});var s={mousedown:function(t){l(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(l(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(5t[1]&&t.reverse(),t}function g(t,e){return a.parseFinder(t,e,{includeMainTypes:h})}p.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=x[t.brushType](0,n,e);t.__rangeOffset={offset:A[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})},p.matchOutputRanges=function(t,i,a){c(t,function(n){var t=this.findTargetInfo(n,i);t&&!0!==t&&l.each(t.coordSyses,function(t){var e=x[n.brushType](1,t,n.range);a(n,e.values,t,i)})},this)},p.setInputRanges=function(t,u){c(t,function(t){var e,n,i,a,o,r=this.findTargetInfo(t,u);if(t.range=t.range||[],r&&!0!==r){t.panelId=r.panelId;var s=x[t.brushType](0,r.coordSys,t.coordRange),l=t.__rangeOffset;t.range=l?A[t.brushType](s.values,l.offset,(e=s.xyMinMax,n=l.xyMinMax,i=w(e),a=w(n),o=[i[0]/a[0],i[1]/a[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):s.values}},this)},p.makePanelOpts=function(n,i){return l.map(this._targetInfoList,function(t){var e=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:i&&i(t),clipPath:o.makeRectPanelClipPath(e),isTargetByCursor:o.makeRectIsTargetByCursor(e,n,t.coordSysModel),getLinearBrushOtherExtent:o.makeLinearBrushOtherExtent(e)}})},p.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&0<=u(i.coordSyses,e.coordinateSystem)},p.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=g(e,t),a=0;a"],c.isArray(t)&&(t=t.slice(),i=!0),a=e?t:i?[u(t[0]),u(t[1])]:u(t),c.isString(l)?l.replace("{value}",i?a[0]:a).replace("{value2}",i?a[1]:a):c.isFunction(l)?i?l(t[0],t[1]):l(t):i?t[0]===s[0]?n[0]+" "+a[1]:t[1]===s[1]?n[1]+" "+a[0]:a[0]+" - "+a[1]:a;function u(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(r,20))}},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,a=i.length-1;0<=a;a--){var o=i[a];if(!t.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),a=e.controller||(e.controller={});c.merge(i,n),c.merge(a,n);var u=this.isCategory();function o(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(c.isString(e)){var n=r.get(e,"active",u);n?(i[t]={},i[t][e]=n):delete i[t]}},this)}o.call(this,i),o.call(this,a),function(t,e,n){var i=t[e],a=t[n];i&&!a&&(a=t[n]={},f(i,function(t,e){if(s.isValidType(e)){var n=r.get(e,"inactive",u);null!=n&&(a[e]=n,"color"!==e||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function(o){var r=(o.inRange||{}).symbol||(o.outOfRange||{}).symbol,s=(o.inRange||{}).symbolSize||(o.outOfRange||{}).symbolSize,l=this.get("inactiveColor");f(this.stateList,function(t){var e=this.itemSize,n=o[t];null==(n=n||(o[t]={color:u?l:[l]})).symbol&&(n.symbol=r&&c.clone(r)||(u?"roundRect":["roundRect"])),null==n.symbolSize&&(n.symbolSize=s&&c.clone(s)||(u?e[0]:[e[0],e[0]])),n.symbol=h(n.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var i=n.symbolSize;if(null!=i){var a=-1/0;d(i,function(t){a')}}catch(t){i=function(t){return l.createElement("<"+t+' xmlns="'+o+'" class="zrvml">')}}e.doc=l,e.createNode=function(t){return i(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)")}}},2544:function(t,e,n){var i=n(768),a=n(1150),o=n(2545),r=n(1501),s=n(1410),l=n(2547),u="silent";function c(t){s.stop(this.event)}function h(){}h.prototype.dispose=function(){};function d(t,e,n,i){r.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new h,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,o.call(this),this.setHandlerProxy(n)}var p=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"];function f(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,a=t;a;){if(a.clipPath&&!a.clipPath.contain(e,n))return!1;a.silent&&(i=!0),a=a.parent}return!i||u}return!1}d.prototype={constructor:d,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(i.each(p,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=this.findHover(e,n),r=o.target,s=this.proxy;s.setCursor&&s.setCursor(r?r.cursor:"default"),a&&r!==a&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(o,"mousemove",t),r&&r!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);for(var e,n=t.toElement||t.relatedTarget;(n=n&&n.parentNode)&&9!==n.nodeType&&!(e=n===this.painterRoot););e||this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.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,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var a,o,r="on"+e,s={type:e,event:o=n,target:(a=t).target,topTarget:a.topTarget,cancelBubble:!1,offsetX:o.zrX,offsetY:o.zrY,gestureEvent:o.gestureEvent,pinchX:o.pinchX,pinchY:o.pinchY,pinchScale:o.pinchScale,wheelDelta:o.zrDelta,zrByTouch:o.zrByTouch,which:o.which,stop:c};i&&(i[r]&&(s.cancelBubble=i[r].call(i,s)),i.trigger(e,s),i=i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(e,s),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,s),t.trigger&&t.trigger(e,s)}))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),a={x:t,y:e},o=i.length-1;0<=o;o--){var r;if(i[o]!==n&&!i[o].ignore&&(r=f(i[o],t,e))&&(a.topTarget||(a.topTarget=i[o]),r!==u)){a.target=i[o];break}}return a},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var a=i.type;t.gestureEvent=a,this.dispatchToElement({target:i.target},a,i.event)}}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(i){d.prototype[i]=function(t){var e=this.findHover(t.zrX,t.zrY),n=e.target;if("mousedown"===i)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===i)this._upEl=n;else if("click"===i){if(this._downEl!==this._upEl||!this._downPoint||4i[0]){for(r=0;rt);r++);o=n[i[r]]}if(i.splice(r+1,0,t),!(n[t]=e).virtual)if(o){var u=o.dom;u.nextSibling?s.insertBefore(e.dom,u.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else c("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,a=this._zlevelList;for(i=0;i=_[i=0]+t&&r<=_[1]+t?c:0}if(o){l=i;i=g(a),a=g(l)}else i=g(i),a=g(a);aMath.PI/2&&f<1.5*Math.PI&&(c=-c),h+=c)}}return h}function a(t,e,n,i,a){for(var o,r,s=0,l=0,u=0,c=0,h=0,d=0;dd?n+=g(m("data.partialData"),{displayCnt:d}):n+=m("data.allData");for(var r=[],s=0;sn.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:a,modBy:null!=o?Math.ceil(o/a):null,modDataCount:o}}},d.getPipeline=function(t){return this._pipelineMap.get(t)},d.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),a=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),r="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:a,modDataCount:r,large:o}},d.restorePipelines=function(t){var i=this,a=i._pipelineMap=p();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;a.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),I(i,t,t.dataTask)})},d.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.ecInstance.getModel(),a=this.api;f(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,[]);t.reset&&function(i,a,t,o,r){var s=t.seriesTaskMap||(t.seriesTaskMap=p()),e=a.seriesType,n=a.getTargetSeries;a.createOnAllSeries?o.eachRawSeries(l):e?o.eachRawSeriesByType(e,l):n&&n(o,r).each(l);function l(t){var e=t.uid,n=s.get(e)||s.set(e,g({plan:b,reset:w,count:M}));n.context={model:t,ecModel:o,api:r,useClearVisual:a.isVisual&&!a.isLayout,plan:a.plan,reset:a.reset,scheduler:i},I(i,t,n)}var u=i._pipelineMap;s.each(function(t,e){u.get(e)||(t.dispose(),s.removeKey(e))})}(this,t,e,i,a),t.overallReset&&function(i,t,e,n,a){var o=e.overallTask=e.overallTask||g({reset:y});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var r=o.agentStubMap=o.agentStubMap||p(),s=t.seriesType,l=t.getTargetSeries,u=!0,c=t.modifyOutputEnd;s?n.eachRawSeriesByType(s,h):l?l(n,a).each(h):(u=!1,f(n.getSeries(),h));function h(t){var e=t.uid,n=r.get(e);n||(n=r.set(e,g({reset:x,onDirty:A})),o.dirty()),n.context={model:t,overallProgress:u,modifyOutputEnd:c},n.agent=o,n.__block=u,I(i,t,n)}var d=i._pipelineMap;r.each(function(t,e){d.get(e)||(t.dispose(),o.dirty(),r.removeKey(e))})}(this,t,e,i,a)},this)},d.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,I(this,e,a)},d.performDataProcessorTasks=function(t,e){m(this,this._dataProcessorHandlers,t,e,{block:!0})},d.performVisualTasks=function(t,e,n){m(this,this._visualHandlers,t,e,n)},d.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},d.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=d.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 A(){this.agent&&this.agent.dirty()}function b(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function w(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=c(t.reset(t.model,t.ecModel,t.api,t.payload));return 1>>1;t[a][1]i)return!1;return!0}(o,e))){var r=e.mapDimension(o.dim),s={};return T.each(o.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(r,t))}}}}function N(t,e,n){if("cartesian2d"!==t.type)return p(t,e,n);var i=t.getBaseAxis().isHorizontal(),a=d(t,e,n);if(!n.get("clip",!0)){var o=a.shape,r=Math.max(o.width,o.height);i?(o.y-=r,o.height+=2*r):(o.x-=r,o.width+=2*r)}return a}var f=c.extend({type:"line",init:function(){var t=new D.Group,e=new i;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,a=this.group,o=t.getData(),r=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.mapArray(o.getItemLayout),u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,g=t.get("animation"),m=!s.isEmpty(),v=s.get("origin"),y=function(t,e,n){if(!n.valueDim)return[];for(var i=[],a=0,o=e.count();ac[h-1].coord&&(c.reverse(),d.reverse());var p=c[0].coord-10,f=c[h-1].coord+10,g=f-p;if(g<.001)return"transparent";T.each(c,function(t){t.offset=(t.coord-p)/g}),c.push({offset:h?c[h-1].offset:.5,color:d[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:d[0]||"transparent"});var m=new D.LinearGradient(0,0,0,0,c,!0);return m[i]=p,m[i+"2"]=f,m}}}(o,i)||o.getVisual("color");d.useStyle(T.defaults(r.getLineStyle(),{fill:"none",stroke:S,lineJoin:"bevel"}));var C=t.get("smooth");if(C=B(t.get("smooth")),d.setShape({smooth:C,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var M=o.getCalculationInfo("stackedOnSeries"),I=0;p.useStyle(T.defaults(s.getAreaStyle(),{fill:S,opacity:.7,lineJoin:"bevel"})),M&&(I=B(M.get("smooth"))),p.setShape({smooth:C,stackedOnSmooth:I,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=i,this._stackedOnPoints=y,this._points=l,this._step=w,this._valueOrigin=v},dispose:function(){},highlight:function(t,e,n,i){var a=t.getData(),o=u.queryDataIndex(a,i);if(!(o instanceof Array)&&null!=o&&0<=o){var r=a.getItemGraphicEl(o);if(!r){var s=a.getItemLayout(o);if(!s)return;(r=new l(a,o)).position=s,r.setZ(t.get("zlevel"),t.get("z")),r.ignore=isNaN(s[0])||isNaN(s[1]),r.__temp=!0,a.setItemGraphicEl(o,r),r.stopSymbolAnimation(!0),this.group.add(r)}r.highlight()}else c.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var a=t.getData(),o=u.queryDataIndex(a,i);if(null!=o&&0<=o){var r=a.getItemGraphicEl(o);r&&(r.__temp?(a.setItemGraphicEl(o,null),this.group.remove(r)):r.downplay())}else c.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new o({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new r({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n},_updateAnimation:function(t,e,n,i,a,o){var r=this._polyline,s=this._polygon,l=t.hostModel,u=y(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),c=u.current,h=u.stackedOnCurrent,d=u.next,p=u.stackedOnNext;a&&(c=E(u.current,n,a),h=E(u.stackedOnCurrent,n,a),d=E(u.next,n,a),p=E(u.stackedOnNext,n,a)),r.shape.__points=u.current,r.shape.points=c,D.updateProps(r,{shape:{points:d}},l),s&&(s.setShape({points:c,stackedOnPoints:h}),D.updateProps(s,{shape:{points:d,stackedOnPoints:p}},l));for(var f=[],g=u.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;ne[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},a.inherits(i,o);var r=i;t.exports=r},2597:function(t,e,n){n(2151);var i=n(1245).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=i},2598:function(t,e,n){n(2151),n(2599)},2599:function(t,e,n){var b=n(768),w=n(852),l=n(1468),i=n(1506),u=n(2153),c=["axisLine","axisTickLabel","axisName"],h=["splitArea","splitLine"],d=i.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new w.Group,this.group.add(this._axisGroup),e.get("show")){var o=e.getCoordSysModel(),r=u.layout(o,e),s=new l(e,r);b.each(c,s.add,s),this._axisGroup.add(s.getGroup()),b.each(h,function(t){e.get(t+".show")&&this["_"+t](e,o)},this),w.groupTransition(a,this._axisGroup,e),d.superCall(this,"render",e,t,n,i)}},remove:function(){this._splitAreaColors=null},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),a=i.getModel("lineStyle"),o=a.get("color");o=b.isArray(o)?o:[o];for(var r=e.coordinateSystem.getRect(),s=n.isHorizontal(),l=0,u=n.getTicksCoords({tickModel:i}),c=[],h=[],d=a.getLineStyle(),p=0;p=n.r0}}});t.exports=o},2608:function(t,e,n){var i=n(965),I=i.parsePercent,T=i.linearMap,D=n(2609),k=n(768),P=2*Math.PI,L=Math.PI/180;t.exports=function(t,e,M,n){e.eachSeriesByType(t,function(t){var a=t.getData(),e=a.mapDimension("value"),n=t.get("center"),i=t.get("radius");k.isArray(i)||(i=[0,i]),k.isArray(n)||(n=[n,n]);var o=M.getWidth(),r=M.getHeight(),s=Math.min(o,r),l=I(n[0],o),u=I(n[1],r),c=I(i[0],s/2),h=I(i[1],s/2),d=-t.get("startAngle")*L,p=t.get("minAngle")*L,f=0;a.each(e,function(t){isNaN(t)||f++});var g=a.getSum(e),m=Math.PI/(g||f)*2,v=t.get("clockwise"),y=t.get("roseType"),x=t.get("stillShowZeroSum"),_=a.getDataExtent(e);_[0]=0;var A=P,b=0,w=d,S=v?1:-1;if(a.each(e,function(t,e){var n;if(isNaN(t))a.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:l,cy:u,r0:c,r:y?NaN:h});else{(n="area"!==y?0===g&&x?m:t*m:P/f)a[i].y+a[i].height)return void l(i,n/2);l(e-1,n/2)}function l(t,e){for(var n=t;0<=n&&(a[n].y-=e,!(0a[n-1].y+a[n-1].height));n--);}function u(t,e,n,i,a,o){for(var r=e?Number.MAX_VALUE:0,s=0,l=t.length;s=e?f.push(a[g]):p.push(a[g]);u(p,!1,t,e,n,i),u(f,!0,t,e,n,i)}function d(t){return"center"===t.position}t.exports=function(M,I,t,e,n){var T,D,k=M.getData(),P=[],L=!1,B=(M.get("minShowLabelAngle")||0)*i;k.each(function(t){var e=k.getItemLayout(t),n=k.getItemModel(t),i=n.getModel("label"),a=i.get("position")||n.get("emphasis.label.position"),o=n.getModel("labelLine"),r=o.get("length"),s=o.get("length2");if(!(e.anglen[0]&&isFinite(u)&&isFinite(n[0]););else{var c=a.getTicks().length-1;p"+o.map(t,function(t,e){var n=a.get(a.mapDimension(t.dim),i);return r(t.name+" : "+n)}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),l=s;t.exports=l},2621:function(t,e,n){var i=n(789),v=n(852),y=n(768),d=n(1321);var a=i.extendChartView({type:"radar",render:function(l,t,e){var n=l.coordinateSystem,g=this.group,m=l.getData(),s=this._data;function u(t,e){var n=t.getItemVisual(e,"symbol")||"circle",i=t.getItemVisual(e,"color");if("none"!==n){var a,o=(a=t.getItemVisual(e,"symbolSize"),y.isArray(a)||(a=[+a,+a]),a),r=d.createSymbol(n,-1,-1,2,2,i);return r.attr({style:{strokeNoScale:!0},z2:100,scale:[o[0]/2,o[1]/2]}),r}}function c(t,e,n,i,a,o){n.removeAll();for(var r=0;r"+u(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.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)"}}}});c.mixin(r,o);var s=r;t.exports=s},2626:function(t,e,n){var r=n(768).each,s=n(2146),i=n(987).makeInner,l=n(2627),u=n(2628),c=n(2629),h=n(2630),d=i(),a={load:function(i,t){var e=d(t).parsed;if(e)return e;var n,a=t.specialAreas||{},o=t.geoJSON;try{n=o?s(o):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return l(i,n),r(n,function(t){var e=t.name;u(i,t),c(i,t),h(i,t);var n=a[e];n&&t.transformTo(n.left,n.top,n.width,n.height)}),d(t).parsed={regions:n,boundingRect:function(t){for(var e,n=0;no&&(o=t.depth)});var r=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:o;return a.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=r}),a.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,n=e.root.children[0],i=e.getNodeByDataIndex(t),a=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+"."+o,i=i.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",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=a},2640:function(t,e,n){var M=n(768),I=n(852),T=n(1693),m=n(2161).radialCoordinate,i=n(789),l=n(1686),u=n(1816),s=n(1813),a=n(1603),c=n(1698).onIrrelevantElement,o=i.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new I.Group,this._controller=new a(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(i,t,n,e){var a=i.getData(),o=i.layoutInfo,r=this._mainGroup,s=i.get("layout");"radial"===s?r.attr("position",[o.x+o.width/2,o.y+o.height/2]):r.attr("position",[o.x,o.y]),this._updateViewCoordSys(i,o,s),this._updateController(i,t,n);var l=this._data,u={expandAndCollapse:i.get("expandAndCollapse"),layout:s,orient:i.getOrient(),curvature:i.get("lineStyle.curveness"),symbolRotate:i.get("symbolRotate"),symbolOffset:i.get("symbolOffset"),hoverAnimation:i.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};a.diff(l).add(function(t){h(a,t)&&d(a,t,null,r,i,u)}).update(function(t,e){var n=l.getItemGraphicEl(e);h(a,t)?d(a,t,n,r,i,u):n&&p(l,e,n,r,i,u)}).remove(function(t){var e=l.getItemGraphicEl(t);e&&p(l,t,e,r,i,u)}).execute(),this._nodeScaleRatio=i.get("nodeScaleRatio"),this._updateNodeAndLinkScale(i),!0===u.expandAndCollapse&&a.eachItemGraphicEl(function(t,e){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:i.id,dataIndex:e})})}),this._data=a},_updateViewCoordSys:function(t){var n=t.getData(),i=[];n.each(function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])});var e=[],a=[];l.fromPoints(i,e,a);var o=this._min,r=this._max;a[0]-e[0]==0&&(e[0]=o?o[0]:e[0]-1,a[0]=r?r[0]:a[0]+1),a[1]-e[1]==0&&(e[1]=o?o[1]:e[1]-1,a[1]=r?r[1]:a[1]+1);var s=t.coordinateSystem=new u;s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(e[0],e[1],a[0]-e[0],a[1]-e[1]),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=e,this._max=a},_updateController:function(a,t,o){var e=this._controller,n=this._controllerHost,r=this.group;e.setPointerChecker(function(t,e,n){var i=r.getBoundingRect();return i.applyTransform(r.transform),i.contain(e,n)&&!c(t,o,a)}),e.enable(a.get("roam")),n.zoomLimit=a.get("scaleLimit"),n.zoom=a.coordinateSystem.getZoom(),e.off("pan").off("zoom").on("pan",function(t){s.updateViewOnPan(n,t.dx,t.dy),o.dispatchAction({seriesId:a.id,type:"treeRoam",dx:t.dx,dy:t.dy})},this).on("zoom",function(t){s.updateViewOnZoom(n,t.scale,t.originX,t.originY),o.dispatchAction({seriesId:a.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(a)},this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl(function(t,e){t.attr("scale",i)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,a=i&&i[0]||1;return((e.getZoom()-1)*n+1)/a},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function h(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==t.getItemVisual(e,"symbol")}function D(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=e.getModel("lineStyle").getLineStyle(),n.labelModel=e.getModel("label"),n.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function d(t,e,n,i,a,o){var r=!n,s=t.tree.getNodeByDataIndex(e),l=s.getModel(),u=(o=D(s,l,o),t.tree.root),c=s.parentNode===u?s:s.parentNode||s,h=t.getItemGraphicEl(c.dataIndex),d=c.getLayout(),p=h?{x:h.position[0],y:h.position[1],rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:d,f=s.getLayout();r?(n=new T(t,e,o)).attr("position",[p.x,p.y]):n.updateData(t,e,o),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=f.rawX,n.__radialRawY=f.rawY,i.add(n),t.setItemGraphicEl(e,n),I.updateProps(n,{position:[f.x,f.y]},a);var g=n.getSymbolPath();if("radial"===o.layout){var m,v,y=u.children[0],x=y.getLayout(),_=y.children.length;if(f.x===x.x&&!0===s.isExpand){var A={};A.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,A.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(A.y-x.y,A.x-x.x))<0&&(m=2*Math.PI+m),(v=A.xx.x)||(m-=Math.PI);var b=v?"left":"right",w=o.labelModel.get("rotate"),S=w*(Math.PI/180);g.setStyle({textPosition:o.labelModel.get("position")||b,textRotation:null==w?-m:S,textOrigin:"center",verticalAlign:"middle"})}if(s.parentNode&&s.parentNode!==u){var C=n.__edge;C=C||(n.__edge=new I.BezierCurve({shape:k(o,p,p),style:M.defaults({opacity:0,strokeNoScale:!0},o.lineStyle)})),I.updateProps(C,{shape:k(o,d,f),style:{opacity:1}},a),i.add(C)}}function p(t,e,n,i,a,o){for(var r,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,u=s.getModel(),c=(o=D(s,u,o),s.parentNode===l?s:s.parentNode||s);null==(r=c.getLayout());)c=c.parentNode===l?c:c.parentNode||c;I.updateProps(n,{position:[r.x+1,r.y+1]},a,function(){i.remove(n),t.setItemGraphicEl(e,null)}),n.fadeOut(null,{keepLabel:!0});var h=n.__edge;h&&I.updateProps(h,{shape:k(o,r,r),style:{opacity:0}},a,function(){i.remove(h)})}function k(t,e,n){var i,a,o,r,s,l,u,c,h=t.orient;if("radial"!==t.layout)return s=e.x,u=e.y,l=n.x,c=n.y,"LR"!==h&&"RL"!==h||(i=s+(l-s)*t.curvature,a=u,o=l+(s-l)*t.curvature,r=c),"TB"!==h&&"BT"!==h||(i=s,a=u+(c-u)*t.curvature,o=l,r=c+(u-c)*t.curvature),{x1:s,y1:u,x2:l,y2:c,cpx1:i,cpy1:a,cpx2:o,cpy2:r};s=e.rawX,u=e.rawY,l=n.rawX,c=n.rawY;var d=m(s,u),p=m(s,u+(c-u)*t.curvature),f=m(l,c+(u-c)*t.curvature),g=m(l,c);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:p.x,cpy1:p.y,cpx2:f.x,cpy2:f.y}}t.exports=o},2641:function(t,e,n){var i=n(789),a=n(1814).updateCenterAndZoom;i.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(i,t){t.eachComponent({mainType:"series",subType:"tree",query:i},function(t){var e=i.dataIndex,n=t.getData().tree.getNodeByDataIndex(e);n.isExpand=!n.isExpand})}),i.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(i,t){t.eachComponent({mainType:"series",subType:"tree",query:i},function(t){var e=t.coordinateSystem,n=a(e,i);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)})})},2642:function(t,e,n){var i=n(2643),x=i.eachAfter,_=i.eachBefore,a=n(2161),A=a.init,b=a.firstWalk,w=a.secondWalk,S=a.separation,C=a.radialCoordinate,M=a.getViewRect;t.exports=function(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=M(t,e);t.layoutInfo=n;var i=t.get("layout"),a=0,o=0,r=null;r="radial"===i?(a=2*Math.PI,o=Math.min(n.height,n.width)/2,S(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(a=n.width,o=n.height,S());var s=t.getData().tree.root,l=s.children[0];if(l){A(s),x(l,b,r),s.hierNode.modifier=-l.hierNode.prelim,_(l,w);var u=l,c=l,h=l;_(l,function(t){var e=t.getLayout().x;ec.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)});var d=u===c?1:r(u,c)/2,p=d-u.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=a/(c.getLayout().x+d+p),g=o/(h.depth-1||1),_(l,function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=C(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+p),f=a/(h.depth-1||1),_(l,function(t){v=(t.getLayout().x+p)*g,m="LR"===y?(t.depth-1)*f:a-(t.depth-1)*f,t.setLayout({x:m,y:v},!0)})):"TB"!==y&&"BT"!==y||(f=a/(c.getLayout().x+d+p),g=o/(h.depth-1||1),_(l,function(t){m=(t.getLayout().x+p)*f,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}(t,e)})}},2643:function(t,e){e.eachAfter=function(t,e,n){for(var i,a=[t],o=[];i=a.pop();)if(o.push(i),i.isExpand){var r=i.children;if(r.length)for(var s=0;sc.width&&(h-=m-l,m=l,v=null);var y=new x.Polygon({shape:{points:w(s,0,m,u,p===d.length-1,0===p)},style:A.defaults(n.getItemStyle(),{lineJoin:"bevel",text:v,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:A.curry(a,g)});this.group.add(y),o=t,r=g,y.eventData={componentType:"series",componentSubType:"treemap",componentIndex:o.componentIndex,seriesIndex:o.componentIndex,seriesName:o.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&b(r,o)},s+=m+8}},remove:function(){this.group.removeAll()}};var a=i;t.exports=a},2648:function(t,e,n){var l=n(768);e.createWrap=function(){var o,r=[],s={};return{add:function(t,e,n,i,a){return l.isString(i)&&(a=i,i=0),!s[t.id]&&(s[t.id]=1,r.push({el:t,target:e,time:n,delay:i,easing:a}),!0)},done:function(t){return o=t,this},start:function(){for(var t=r.length,e=0,n=r.length;e=r.length||t===r[t.depth]){var n=C(l,h,t,e,y,s);i(t,n,a,o,r,s)}})}else f=w(h),t.setVisual("color",f)}(o,{},_.map(a.levelModels,function(t){return t?t.get(A):null}),r,t.getViewRoot().getAncestors(),t)}};function b(n,i,a,o){var r=_.extend({},i);return _.each(["color","colorAlpha","colorSaturation"],function(t){var e=n.get(t,!0);null==e&&a&&(e=a[t]),null==e&&(e=i[t]),null==e&&(e=o.get(t)),null!=e&&(r[t]=e)}),r}function w(t){var e=o(t,"color");if(e){var n=o(t,"colorAlpha"),i=o(t,"colorSaturation");return i&&(e=x.modifyHSL(e,null,null,i)),n&&(e=x.modifyAlpha(e,n)),e}}function o(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function S(t,e,n,i,a,o){if(o&&o.length){var r=f(e,"color")||null!=a.color&&"none"!==a.color&&(f(e,"colorAlpha")||f(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:r.name,dataExtent:u,visual:r.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new p(h);return d.__drColorMappingBy=c,d}}}function f(t,e){var n=t.get(e);return i(n)&&n.length?{name:e,range:n}:null}function C(t,e,n,i,a,o){var r=_.extend({},e);if(a){var s=a.type,l="color"===s&&a.__drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));r[s]=a.mapValueToVisual(u)}return r}t.exports=a},2651:function(t,e,n){var A=n(768),b=n(1152),i=n(965),w=i.parsePercent,S=i.MAX_SAFE_INTEGER,C=n(1146),M=n(1507),I=Math.max,T=Math.min,D=A.retrieve,k=A.each,P=["itemStyle","borderWidth"],L=["itemStyle","gapWidth"],a=["upperLabel","show"],o=["upperLabel","height"],r={seriesType:"treemap",reset:function(t,e,n,i){var a=n.getWidth(),o=n.getHeight(),r=t.option,s=C.getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=r.size||[],u=w(D(s.width,l[0]),a),c=w(D(s.height,l[1]),o),h=i&&i.type,d=M.retrieveTargetInfo(i,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===h||"treemapMove"===h?i.rootRect:null,f=t.getViewRoot(),g=M.getPathToRoot(f);if("treemapMove"!==h){var m="treemapZoomToNode"===h?function(t,e,n,i,a){var o,r=(e||{}).node,s=[i,a];if(!r||r===n)return s;var l=i*a,u=l*t.option.zoomToNodeRatio;for(;o=r.parentNode;){for(var c=0,h=o.children,d=0,p=h.length;ds[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:i,dataExtent:s}}(e,r,s);if(0===h.sum)return t.viewChildren=[];if(h.sum=function(t,e,n,i,a){if(!i)return n;for(var o=t.get("visibleMin"),r=a.length,s=r,l=r-1;0<=l;l--){var u=a["asc"===i?r-l-1:l].getValue();u/n*en[l[r]])&&(c=n[l[r]]);for(var h=0,d=t.length;h ")),a.value&&(l+=" : "+c(a.value)),l},_updateCategoriesData:function(){var t=o.map(this.option.categories||[],function(t){return null!=t.value?t:o.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 d.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"},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}}}}),s=d;t.exports=s},2654:function(t,e,n){n(1127).__DEV__;var i=n(768),a=n(1427).enableClassCheck;function h(t){return"_EC_"+t}function o(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData}var r=o.prototype;function d(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function s(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}r.type="graph",r.isDirected=function(){return this._directed},r.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[h(t)]){var i=new d(t,e);return(i.hostGraph=this).nodes.push(i),n[h(t)]=i}},r.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.getNodeById=function(t){return this._nodesMap[h(t)]},r.addEdge=function(t,e,n){var i=this._nodesMap,a=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),d.isInstance(t)||(t=i[h(t)]),d.isInstance(e)||(e=i[h(e)]),t&&e){var o=t.id+"-"+e.id;if(!a[o]){var r=new s(t,e,n);return(r.hostGraph=this)._directed&&(t.outEdges.push(r),e.inEdges.push(r)),t.edges.push(r),t!==e&&e.edges.push(r),this.edges.push(r),a[o]=r}}},r.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.getEdge=function(t,e){d.isInstance(t)&&(t=t.id),d.isInstance(e)&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.eachNode=function(t,e){for(var n=this.nodes,i=n.length,a=0;a=t&&(0===e?0:i[e-1][0])a*(1-c[0])?(l="jump",r=s-a*(1-c[2])):0<=(r=s-a*c[1])&&(r=s-a*(1-c[1]))<=0&&(r=0),(r*=e.axisExpandWidth/u)?d(r,i,o,"all"):l="none";else{a=i[1]-i[0];(i=[m(0,o[1]*s/a-a/2)])[1]=g(o[1],i[0]+a),i[0]=i[1]-a}return{axisExpandWindow:i,behavior:l}}};var s=r;t.exports=s},2678:function(t,e,n){function i(t,e,n,i,a){o.call(this,t,e,n),this.type=i||"value",this.axisIndex=a}var a=n(768),o=n(1467);i.prototype={constructor:i,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},a.inherits(i,o);var r=i;t.exports=r},2679:function(t,e,n){var i=n(768),a=n(1245);n(2680);var o=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&&i.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(e){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},_initDimensions:function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],t=i.filter(this.dependentModels.parallelAxis,function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this);i.each(t,function(t){e.push("dim"+t.get("dim")),n.push(t.componentIndex)})}});t.exports=o},2680:function(t,e,n){var i=n(768),a=n(1245),o=n(1549),r=n(1694),s=n(965),l=n(1553),u=a.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=i.clone(t);if(e)for(var n=e.length-1;0<=n;n--)s.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,a=e.length;ip&&(p=m.depth),g.setLayout({depth:v?m.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y "))},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}}}),d=h;t.exports=d},2710:function(t,e,n){n(1127).__DEV__;var i=n(789),r=n(1818),s=n(2170),l=n(1819),u=n(2171),c=n(2711),h=n(2712),d=n(2172),p=n(1599).createClipPath,a=i.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),a=this._updateLineDraw(i,t),o=t.get("zlevel"),r=t.get("effect.trailLength"),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&r&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})),a.updateData(i);var u=t.get("clip",!0)&&p(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),a=t.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var o=d.reset(t);o.progress&&o.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,e){var n=this._lineDraw,i=this._showEffect(e),a=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&a===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new h:new r(a?i?c:u:i?s:l),this._hasEffet=i,this._isPolyline=a,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},_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=a},2711:function(t,e,n){var i=n(2171),a=n(768),o=n(2170),u=n(1150);function r(t,e,n){o.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}var s=r.prototype;s.createLine=function(t,e,n){return new i(t,e,n)},s.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,a=1;ae);r++);r=Math.min(r-1,a-2)}u.lerp(t.position,n[r],n[r+1],(e-i[r])/(i[r+1]-i[r]));var s=n[r+1][0]-n[r][0],l=n[r+1][1]-n[r][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}},a.inherits(r,o);var l=r;t.exports=l},2712:function(t,e,n){var i=n(852),a=n(1806),g=n(2126),m=n(2127),o=i.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var a=0;a=v[0]&&t<=v[1]}):(c=I,h=e.getPieceList(),d=e.option.selected,p=c[1]-c[0],f=(h=L.map(h,function(t){return{interval:[(t.interval[0]-c[0])/p,(t.interval[1]-c[0])/p]}})).length,g=0,function(t){for(var e=g;e=e.y&&t[1]<=e.y+e.height:n.contain(n.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(),n=this.getRect(),i=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[a]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-a]=0==a?n.y+n.height/2:n.x+n.width/2,i}};var l=o;t.exports=l},2724:function(t,e,n){function i(t,e,n,i,a){o.call(this,t,e,n),this.type=i||"value",this.position=a||"bottom",this.orient=null}var a=n(768),o=n(1467);i.prototype={constructor:i,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},a.inherits(i,o);var r=i;t.exports=r},2725:function(t,e,n){var s=n(768),l=n(1468),m=n(852),u=n(2174),i=n(1506),c=["axisLine","axisTickLabel","axisName"],h=i.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,i){var a=this.group;a.removeAll();var o=u.layout(t),r=new l(t,o);s.each(c,r.add,r),a.add(r.getGroup()),t.get("splitLine.show")&&this._splitLine(t),h.superCall(this,"render",t,e,n,i)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var n=t.getModel("splitLine"),i=n.getModel("lineStyle"),a=i.get("width"),o=i.get("color");o=o instanceof Array?o:[o];for(var r=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,c=e.getTicksCoords({tickModel:n}),h=[],d=[],p=0;p=n.r0}}});t.exports=a},2738:function(t,e,n){var S=n(768),C=n(852),r="none",s="ancestor",l="self";function i(t,e,n){C.Group.call(this);var i=new C.Sector({z2:2});i.seriesIndex=e.seriesIndex;var a=new C.Text({z2:4,silent:t.getModel("label").get("silent")});function o(){a.ignore=a.hoverIgnore}function r(){a.ignore=a.normalIgnore}this.add(i),this.add(a),this.updateData(!0,t,"normal",e,n),this.on("emphasis",o).on("normal",r).on("mouseover",o).on("mouseout",r)}var a=i.prototype;a.updateData=function(t,e,n,i,a){(this.node=e).piece=this,i=i||this._seriesModel,a=a||this._ecModel;var o=this.childAt(0);o.dataIndex=e.dataIndex;var r=e.getModel(),s=e.getLayout(),l=S.extend({},s);l.label=null;var u,c,h=function(t,e,n){var i=t.getVisual("color"),a=t.getVisual("visualMeta");a&&0!==a.length||(i=null);var o=t.getModel("itemStyle").get("color");{if(o)return o;if(i)return i;if(0===t.depth)return n.option.color[0];var r=n.option.color.length;o=n.option.color[function(t){var e=t;for(;1Math.PI/2?"right":"left"):y&&"center"!==y?"left"===y?(d=l.r0+v,p>Math.PI/2&&(y="right")):"right"===y&&(d=l.r-v,p>Math.PI/2&&(y="left")):(d=(l.r+l.r0)/2,y="center"),h.attr("style",{text:s,textAlign:y,textVerticalAlign:w("verticalAlign")||"middle",opacity:w("opacity")});var x=d*f+l.cx,_=d*g+l.cy;h.attr("position",[x,_]);var A=w("rotate"),b=0;function w(t){var e=o.get(t);return null==e?a.get(t):e}"radial"===A?(b=-p)<-Math.PI/2&&(b+=Math.PI):"tangential"===A?(b=Math.PI/2-p)>Math.PI/2?b-=Math.PI:b<-Math.PI/2&&(b+=Math.PI):"number"==typeof A&&(b=A*Math.PI/180),h.attr("rotation",b)},a._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");function a(){r.onEmphasis(i)}function o(){r.onNormal()}var r=this;n.isAnimationEnabled()&&t.on("mouseover",a).on("mouseout",o).on("emphasis",a).on("normal",o).on("downplay",function(){r.onDownplay()}).on("highlight",function(){r.onHighlight()})},S.inherits(i,C.Group);var o=i;t.exports=o},2739:function(t,e,n){var i=n(789),o=n(1507),r="sunburstRootToNode";i.registerAction({type:r,update:"updateView"},function(a,t){t.eachComponent({mainType:"series",subType:"sunburst",query:a},function(t,e){var n=o.retrieveTargetInfo(a,[r],t);if(n){var i=t.getViewRoot();i&&(a.direction=o.aboveViewRoot(i,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node)}})});var a="sunburstHighlight";i.registerAction({type:a,update:"updateView"},function(i,t){t.eachComponent({mainType:"series",subType:"sunburst",query:i},function(t,e){var n=o.retrieveTargetInfo(i,[a],t);n&&(i.highlight=n.node)})});i.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(n,t){t.eachComponent({mainType:"series",subType:"sunburst",query:n},function(t,e){n.unhighlight=!0})})},2740:function(t,e,n){var k=n(965).parsePercent,P=n(768),L=Math.PI/180;function B(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})}t.exports=function(t,e,D,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius");P.isArray(n)||(n=[0,n]),P.isArray(e)||(e=[e,e]);var i=D.getWidth(),a=D.getHeight(),c=Math.min(i,a),h=k(e[0],i),d=k(e[1],a),p=k(n[0],c/2),o=k(n[1],c/2),r=-t.get("startAngle")*L,f=t.get("minAngle")*L,g=t.getData().tree.root,s=t.getViewRoot(),m=s.depth,l=t.get("sort");null!=l&&!function e(t,n){var i=t.children||[];t.children=B(i,n);i.length&&P.each(t.children,function(t){e(t,n)})}(s,l);var u=0;P.each(s.children,function(t){isNaN(t.getValue())||u++});var v=s.getValue(),y=Math.PI/(v||u)*2,x=0t[1]&&t.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:t[1],r0:t[0]},api:{coord:i.bind(function(t){var e=o.dataToRadius(t[0]),n=r.dataToAngle(t[1]),i=a.coordToPoint([e,n]);return i.push(e,n*Math.PI/180),i}),size:i.bind(s,a)}}}},2746:function(t,e){t.exports=function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}},2747:function(t,e,n){n(1601),n(2177),n(1604)},2748:function(t,e,n){var i=n(789),a=n(768),o=n(2749);n(1823),n(2755),n(2757),n(1604),n(2759),i.registerLayout(a.curry(o,"bar")),i.extendComponentView({type:"polar"})},2749:function(t,e,n){var p=n(768),m=n(965).parsePercent,O=n(1413).isDimensionStacked;function N(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function R(t,e){return e.dim+t.model.componentIndex}function i(t,e,n){var B={},E=function(t){var g={};p.each(t,function(t,e){var n=t.getData(),i=t.coordinateSystem,a=i.getBaseAxis(),o=R(i,a),r=a.getExtent(),s="category"===a.type?a.getBandWidth():Math.abs(r[1]-r[0])/n.count(),l=g[o]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=l.stacks;g[o]=l;var c=N(t);u[c]||l.autoWidthCount++,u[c]=u[c]||{width:0,maxWidth:0};var h=m(t.get("barWidth"),s),d=m(t.get("barMaxWidth"),s),p=t.get("barGap"),f=t.get("barCategoryGap");h&&!u[c].width&&(h=Math.min(l.remainedWidth,h),u[c].width=h,l.remainedWidth-=h),d&&(u[c].maxWidth=d),null!=p&&(l.gap=p),null!=f&&(l.categoryGap=f)});var d={};return p.each(g,function(t,n){d[n]={};var e=t.stacks,i=t.bandWidth,a=m(t.categoryGap,i),o=m(t.gap,1),r=t.remainedWidth,s=t.autoWidthCount,l=(r-a)/(s+(s-1)*o);l=Math.max(l,0),p.each(e,function(t,e){var n=t.maxWidth;n&&ne[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,a=n*n+i*i,o=this.r,r=this.r0;return a<=o*o&&r*r<=a}}}};var r=i;t.exports=r},2751:function(t,e,n){var i=n(768),a=n(1467);function o(t,e){a.call(this,"radius",t,e),this.type="category"}o.prototype={constructor:o,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:a.prototype.dataToCoord,radiusToData:a.prototype.coordToData},i.inherits(o,a);var r=o;t.exports=r},2752:function(t,e,n){var i=n(768),p=n(1319),a=n(1467),f=(0,n(987).makeInner)();function o(t,e){e=e||[0,360],a.call(this,"angle",t,e),this.type="category"}o.prototype={constructor:o,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:a.prototype.dataToCoord,angleToData:a.prototype.coordToData,calculateCategoryInterval:function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),i=e.count();if(n[1]-n[0]<1)return 0;var a=n[0],o=this.dataToCoord(a+1)-this.dataToCoord(a),r=Math.abs(o),s=p.getBoundingRect(a,t.getFont(),"center","top"),l=Math.max(s.height,7)/r;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),c=f(this.model),h=c.lastAutoInterval,d=c.lastTickCount;return null!=h&&null!=d&&Math.abs(h-u)<=1&&Math.abs(d-i)<=1&&ue[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),a=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function b(t){return t.getRadiusAxis().inverse?0:1}function l(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var a=i.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,a=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),r=y.map(n.getViewLabels(),function(t){return(t=y.clone(t)).coord=n.dataToCoord(t.tickValue),t});l(r),l(o),y.each(s,function(t){!e.get(t+".show")||n.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,i,o,a,r)},this)}},_axisLine:function(t,e,n,i){var a,o=t.getModel("axisLine.lineStyle"),r=b(e),s=r?0:1;(a=0===i[s]?new x.Circle({shape:{cx:e.cx,cy:e.cy,r:i[r]},style:o.getLineStyle(),z2:1,silent:!0}):new x.Ring({shape:{cx:e.cx,cy:e.cy,r:i[r],r0:i[s]},style:o.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(a)},_axisTick:function(t,e,n,i){var a=t.getModel("axisTick"),o=(a.get("inside")?-1:1)*a.get("length"),r=i[b(e)],s=y.map(n,function(t){return new x.Line({shape:c(e,[r,r+o],t.coord)})});this.group.add(x.mergePath(s,{style:y.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(h,d,t,p,e){var f=h.getCategories(!0),g=h.getModel("axisLabel"),m=g.get("margin"),v=h.get("triggerEvent");y.each(e,function(t,e){var n=g,i=t.tickValue,a=p[b(d)],o=d.coordToPoint([a+m,t.coord]),r=d.cx,s=d.cy,l=Math.abs(o[0]-r)/a<.3?"center":o[0]>r?"left":"right",u=Math.abs(o[1]-s)/a<.3?"middle":o[1]>s?"top":"bottom";f&&f[i]&&f[i].textStyle&&(n=new _(f[i].textStyle,g,g.ecModel));var c=new x.Text({silent:A.isLabelSilent(h)});this.group.add(c),x.setTextStyle(c.style,n,{x:o[0],y:o[1],textFill:n.getTextColor()||h.get("axisLine.lineStyle.color"),text:t.formattedLabel,textAlign:l,textVerticalAlign:u}),v&&(c.eventData=A.makeAxisEventDataBase(h),c.eventData.targetType="axisLabel",c.eventData.value=t.rawLabel)},this)},_splitLine:function(t,e,n,i){var a=t.getModel("splitLine").getModel("lineStyle"),o=a.get("color"),r=0;o=o instanceof Array?o:[o];for(var s=[],l=0;lm?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,s,i.get("label.margin"));f.buildLabelElOption(t,n,i,a,d)}});var g={line:function(t,e,n,i,a){return"angle"===t.dim?{type:"Line",shape:f.makeLineShape(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,a){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:f.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:f.makeSectorShape(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}};a.registerAxisPointerClass("PolarAxisPointer",o);var r=o;t.exports=r},2760:function(t,e,n){var i=n(789),o=n(768);function a(a,t){t.update="updateView",i.registerAction(t,function(n,t){var i={};return t.eachComponent({mainType:"geo",query:n},function(e){e[a](n.name);var t=e.coordinateSystem;o.each(t.regions,function(t){i[t.name]=e.isSelected(t.name)||!1})}),{selected:i,name:n.name}})}n(2761),n(1815),n(2762),n(2159),a("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),a("select",{type:"geoSelect",event:"geoselected"}),a("unSelect",{type:"geoUnSelect",event:"geounselected"})},2761:function(t,e,n){var i=n(768),a=n(987),o=n(1245),r=n(1241),s=n(1812),l=n(1815),u=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){o.prototype.init.apply(this,arguments),a.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,n=this;t.regions=l.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=i.reduce(t.regions||[],function(t,e){return e.name&&t.set(e.name,new r(e,n)),t},i.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new r(null,this,this.ecModel)},getFormattedLabel:function(t,e){var n=this.getRegionModel(t).get("label"+("normal"===e?".":e+".")+"formatter"),i={name:t};return"function"==typeof n?(i.status=e,n(i)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});i.mixin(u,s);var c=u;t.exports=c},2762:function(t,e,n){var i=n(2157),a=n(789).extendComponentView({type:"geo",init:function(t,e){var n=new i(e,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var a=this._mapDraw;t.get("show")?a.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});t.exports=a},2763:function(t,e,n){n(2764),n(2765),n(2766)},2764:function(t,e,n){var c=n(768),h=n(1146),o=n(965),i=n(1381);function r(t,e,n){this._model=t}function a(t,e,n,i){var a=n.calendarModel,o=n.seriesModel,r=a?a.coordinateSystem:o?o.coordinateSystem:null;return r===this?r[t](i):null}r.prototype={constructor:r,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=o.parseDate(t)).getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var i=t.getDate();i=i<10?"0"+i:i;var a=t.getDay();return{y:e,m:n,d:i,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+n+"-"+i,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 n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.get("cellSize").slice(),o=this._model.getBoxLayoutParams(),r="horizontal"===this._orient?[n,7]:[7,n];c.each([0,1],function(t){u(a,t)&&(o[i[t]]=a[t]*r[t])});var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=h.getLayoutRect(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}c.each([0,1],function(t){u(a,t)||(a[t]=l[i[t]]/r[t])}),this._sw=a[0],this._sh=a[1]},dataToPoint:function(t,e){c.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.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 n=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();if(i.setDate(a+n-1),i.getDate()!==o)for(var r=0i.weeks||0===t&&ei.lweek)return!1;var a=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+a),this.getDateInfo(o)}},r.dimensions=r.prototype.dimensions,r.getDimensionsInfo=r.prototype.getDimensionsInfo,r.create=function(n,i){var a=[];return n.eachComponent("calendar",function(t){var e=new r(t,n,i);a.push(e),t.coordinateSystem=e}),n.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=a[t.get("calendarIndex")||0])}),a},i.register("calendar",r);var s=r;t.exports=s},2765:function(t,e,n){var a=n(768),i=n(1245),o=n(1146),r=o.getLayoutParams,s=o.sizeCalculable,l=o.mergeLayoutParam,u=i.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,n,i){var a=r(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 n=t.cellSize;a.isArray(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var i=a.map([0,1],function(t){return s(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});l(t,e,{type:"box",ignoreSize:i})}var h=u;t.exports=h},2766:function(t,e,n){var i=n(789),A=n(768),b=n(852),a=n(1153),v=n(965),w={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},y={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},o=i.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var a=t.coordinateSystem,o=a.getRangeInfo(),r=a.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,r,i),this._renderYearText(t,o,r,i),this._renderMonthText(t,r,i),this._renderWeekText(t,o,r,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),r=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new b.Rect({shape:{x:l[0],y:l[1],width:o,height:r},cursor:"default",style:a});n.add(u)}},_renderLines:function(n,t,i,a){var o=this,r=n.coordinateSystem,s=n.getModel("splitLine.lineStyle").getLineStyle(),l=n.get("splitLine.show"),e=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){d(u.formatedDate),0===c&&(u=r.getDateInfo(t.start.y+"-"+t.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=r.getDateInfo(h)}function d(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);var e=o._getLinePointsOfOneWeek(n,t,i);o._tlpoints.push(e[0]),o._blpoints.push(e[e.length-1]),l&&o._drawSplitline(e,s,a)}d(r.getNextNDay(t.end.time,1).formatedDate),l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,e,i),s,a),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,e,i),s,a)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],a="horizontal"===n?0:1;return i[0][a]=i[0][a]-e/2,i[1][a]=i[1][a]+e/2,i},_drawSplitline:function(t,e,n){var i=new b.Polyline({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var a=[],o=0;o<7;o++){var r=i.getNextNDay(e.time,o),s=i.dataToRect([r.time],!1);a[2*r.day]=s.tl,a[2*r.day+1]=s["horizontal"===n?"bl":"tr"]}return a},_formatterLabel:function(t,e){return"string"==typeof t&&t?a.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,a){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=a,o=["center","top"]):"left"===i?e[0]-=a:"right"===i?(e[0]+=a,o=["center","top"]):e[1]-=a;var r=0;return"left"!==i&&"right"!==i||(r=Math.PI/2),{rotation:r,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,n,i){var a=t.getModel("yearLabel");if(a.get("show")){var o=a.get("margin"),r=a.get("position");r=r||("horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=a.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new b.Text({z2:30});b.setTextStyle(m.style,a,{text:g}),m.attr(this._yearTextPositionControl(m,h[r],n,r,o)),i.add(m)}},_monthTextPositionControl:function(t,e,n,i,a){var o="left",r="top",s=t[0],l=t[1];return"horizontal"===n?(l+=a,e&&(o="center"),"start"===i&&(r="bottom")):(s+=a,e&&(r="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:r}},_renderMonthText:function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),o=i.get("margin"),r=i.get("position"),s=i.get("align"),l=[this._tlpoints,this._blpoints];A.isString(a)&&(a=w[a.toUpperCase()]||[]);var u="start"===r?0:1,c="horizontal"===e?0:1;o="start"===r?-o:o;for(var h="center"===s,d=0;dd.getHeight()&&(n.textPosition="top",o=!0);var r=o?-5-i.height:f+8;a+i.width/2>d.getWidth()?(n.textPosition=["100%",r],n.textAlign="right"):a-i.width/2<0&&(n.textPosition=[0,r],n.textAlign="left")}})}function t(t,e){var n,i=m[t],a=m[e],o=u[i],r=new _(o,c,c.ecModel);if(i&&!a){if(0===i.indexOf("my"))n={model:r,onclick:r.option.onclick,featureName:i};else{var s=y.get(i);if(!s)return;n=new s(r,h,d)}g[i]=n}else{if(!(n=g[a]))return;n.model=r,n.ecModel=h,n.api=d}i||!a?r.get("show")&&!n.unusable?(function(a,o,t){var r=a.getModel("iconStyle"),s=a.getModel("emphasis.iconStyle"),e=o.getIcons?o.getIcons():a.get("icon"),l=a.get("title")||{};if("string"==typeof e){var n=e,i=l;l={},(e={})[t]=n,l[t]=i}var u=a.iconPaths={};v.each(e,function(t,e){var n=x.createIcon(t,{},{x:-f/2,y:-f/2,width:f,height:f});n.setStyle(r.getItemStyle()),n.hoverStyle=s.getItemStyle(),n.setStyle({text:l[e],textAlign:s.get("textAlign"),textBorderRadius:s.get("textBorderRadius"),textPadding:s.get("textPadding"),textFill:null});var i=c.getModel("tooltip");i&&i.get("show")&&n.attr("tooltip",v.extend({content:l[e],formatter:i.get("formatter",!0)||function(){return l[e]},formatterParams:{componentType:"toolbox",name:e,title:l[e],$vars:["name","title"]},position:i.get("position",!0)||"bottom"},i.option)),x.setHoverStyle(n),c.get("showTitle")&&(n.__title=l[e],n.on("mouseover",function(){var t=s.getItemStyle(),e="vertical"===c.get("orient")?null==c.get("right")?"right":"left":null==c.get("bottom")?"bottom":"top";n.setStyle({textFill:s.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:s.get("textBackgroundColor"),textPosition:s.get("textPosition")||e})}).on("mouseout",function(){n.setStyle({textFill:null,textBackgroundColor:null})})),n.trigger(a.get("iconStatus."+e)||"normal"),p.add(n),n.on("click",v.bind(o.onclick,o,h,d,e)),u[e]=n})}(r,n,i),r.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},n.render&&n.render(r,h,d,l)):n.remove&&n.remove(h,d):n.dispose&&n.dispose(h,d)}},updateView:function(t,e,n,i){v.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},remove:function(e,n){v.each(this._features,function(t){t.remove&&t.remove(e,n)}),this.group.removeAll()},dispose:function(e,n){v.each(this._features,function(t){t.dispose&&t.dispose(e,n)})}});t.exports=r},2771:function(t,e,n){var f=n(1240),i=n(1466),a=n(1469),o=i.toolbox.saveAsImage;function r(t){this.model=t}r.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()},r.prototype.unusable=!f.canvasSupported,r.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",a=n.get("type",!0)||"png",o=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||f.browser.ie||f.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var r=atob(o.split(",")[1]),s=r.length,l=new Uint8Array(s);s--;)l[s]=r.charCodeAt(s);var u=new Blob([l]);window.navigator.msSaveOrOpenBlob(u,i+"."+a)}else{var c=n.get("lang"),h='';window.open().document.write(h)}else{var d=document.createElement("a");d.download=i+"."+a,d.target="_blank",d.href=o;var p=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});d.dispatchEvent(p)}},a.register("saveAsImage",r);var s=r;t.exports=s},2772:function(t,e,n){var i=n(789),p=n(768),a=n(1466),o=n(1469),r=a.toolbox.magicType;function s(t){this.model=t}s.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:p.clone(r.title),option:{},seriesIndex:{}};var l=s.prototype;l.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return p.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var f={line:function(t,e,n,i){if("bar"===t)return p.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return p.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){if("line"===t||"bar"===t)return p.merge({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(t,e,n,i){if("line"===t||"bar"===t)return p.merge({id:e,stack:""},i.get("option.tiled")||{},!0)}},g=[["line","bar"],["stack","tiled"]];l.onclick=function(u,t,c){var h=this.model,e=h.get("seriesIndex."+c);if(f[c]){var d={series:[]};p.each(g,function(t){0<=p.indexOf(t,c)&&p.each(t,function(t){h.setIconStatus(t,"normal")})}),h.setIconStatus(c,"emphasis"),u.eachComponent({mainType:"series",query:null==e?null:{seriesIndex:e}},function(t){var e=t.subType,n=t.id,i=f[c](e,n,t,h);i&&(p.defaults(i,t.option),d.series.push(i));var a=t.coordinateSystem;if(a&&"cartesian2d"===a.type&&("line"===c||"bar"===c)){var o=a.getAxesByScale("ordinal")[0];if(o){var r=o.dim+"Axis",s=u.queryComponents({mainType:r,index:t.get(name+"Index"),id:t.get(name+"Id")})[0].componentIndex;d[r]=d[r]||[];for(var l=0;l<=s;l++)d[r][s]=d[r][s]||{};d[r][s].boundaryGap="bar"===c}}}),t.dispatchAction({type:"changeMagicType",currentType:c,newOption:d})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),o.register("magicType",s);var u=s;t.exports=u},2773:function(t,e,n){var i=n(789),_=n(768),A=n(1410),a=n(1466),o=n(1469),r=a.toolbox.dataView,s=new Array(60).join("-"),h="\t";function b(t){var a,o,r,e,n,c,i=(a={},o=[],r=[],t.eachRawSeries(function(t){var e=t.coordinateSystem;if(!e||"cartesian2d"!==e.type&&"polar"!==e.type)o.push(t);else{var n=e.getBaseAxis();if("category"===n.type){var i=n.dim+"_"+n.index;a[i]||(a[i]={categoryAxis:n,valueAxis:e.getOtherAxis(n),series:[]},r.push({axisDim:n.dim,axisIndex:n.index})),a[i].series.push(t)}else o.push(t)}}),{seriesGroupByCategoryAxis:a,other:o,meta:r});return{value:_.filter([(n=i.seriesGroupByCategoryAxis,c=[],_.each(n,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,a=[" "].concat(_.map(t.series,function(t){return t.name})),o=[n.model.getCategories()];_.each(t.series,function(t){o.push(t.getRawData().mapArray(i,function(t){return t}))});for(var r=[a.join(h)],s=0;si[1]&&(i[1]=e[1])})}),i[1]h[1];if(r&&!s&&!l)return!0;r&&(i=!0),s&&(e=!0),l&&(n=!0)}return i&&e&&n}):g(c,function(t){if("empty"===a)n.setData(u=u.map(t,function(t){return(e=t)>=h[0]&&e<=h[1]?t:NaN;var e}));else{var e={};e[t]=h,u.selectRange(e)}}),g(c,function(t){u.setApproximateExtent(h,t)}))})}}};var r=i;t.exports=r},2777:function(t,e,n){var i=n(1556).extend({type:"dataZoom.select"});t.exports=i},2778:function(t,e,n){var i=n(1557).extend({type:"dataZoom.select"});t.exports=i},2779:function(t,e,n){var i=n(789),a=n(2180),o=n(1466),r=n(1469),s=o.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,n){a.clear(t),e.dispatchAction({type:"restore",from:this.uid})},r.register("restore",l),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var u=l;t.exports=u},2780:function(t,e,n){var i=n(789);n(1604),n(2781),n(2782),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},2781:function(t,e,n){var i=n(789).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=i},2782:function(t,e,n){var i=n(789),b=n(768),c=n(1240),a=n(2783),o=n(2784),m=n(1153),r=n(965),s=n(852),h=n(2175),w=n(1146),l=n(1241),u=n(2176),v=n(1382),y=n(1699),d=n(987).getTooltipRenderMode,p=b.bind,x=b.each,S=r.parsePercent,f=new s.Rect({shape:{x:-1,y:-1,width:2,height:2}}),g=i.extendComponentView({type:"tooltip",init:function(t,e){if(!c.node){var n,i=t.getComponent("tooltip").get("renderMode");this._renderMode=d(i),"html"===this._renderMode?(n=new a(e.getDom(),e),this._newLine="
"):(n=new o(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,n){if(!c.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var i=this._tooltipModel.get("triggerOn");u.register("itemTooltip",this._api,p(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!c.node){var a=A(i,n);this._ticket="";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var r=f;r.position=[i.x,i.y],r.update(),r.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:r},a)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},a);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=h(i,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:s.el,event:{}},a)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},a))}},manuallyHideTip:function(t,e,n,i){var a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(A(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var a=i.seriesIndex,o=i.dataIndex,r=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=o&&null!=r){var s=e.getSeriesByIndex(a);if(s)if("axis"===(t=_([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=b.bind(e,this),clearTimeout(this._showTimout),0e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&h(e)}};function h(t){return new a(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}},2788:function(t,e,n){var u=n(2148),c=n(1152),h=n(852).linePolygonIntersect;function i(o){var r=["x","y"],s=["width","height"];return{point:function(t,e,n){if(t){var i=n.range;return l(t[o],i)}},rect:function(t,e,n){if(t){var i=n.range,a=[t[r[o]],t[r[o]]+t[s[o]]];return a[1]=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||[],n=t.axisType,a=this._names=[];if("category"===n){var o=[];r.each(e,function(t,e){var n,i=l.getDataItemValue(t);r.isObject(t)?(n=r.clone(t)).value=e:n=e,o.push(n),r.isString(i)||null!=i&&!isNaN(i)||(i=""),a.push(i+"")}),e=o}var i={category:"ordinal",time:"time"}[n]||"number";(this._data=new s([{name:"value",type:i}],this)).initData(e,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),o=a;t.exports=o},2800:function(t,e,n){var m=n(768),v=n(1152),y=n(1284),x=n(852),I=n(1146),i=n(2801),s=n(2802),p=n(1321).createSymbol,l=n(1382),f=n(965),u=n(1153).encodeHTML,_=m.bind,h=m.each,T=Math.PI,a=i.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,n,i){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,n),o=this._createGroup("mainGroup"),r=this._createGroup("labelGroup"),s=this._axis=this._createAxis(a,e);e.formatTooltip=function(t){return u(s.scale.getLabel(t))},h(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](a,o,s,e)},this),this._renderAxisLabel(a,r,s,e),this._position(a,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n,i,a=t.get("label.position"),o=t.get("orient"),r=(n=t,i=e,I.getLayoutRect(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},n.get("padding")));null==a||"auto"===a?a="horizontal"===o?r.y+r.height/2a[1]&&(n=a[1]),nn[a],p=[-c.x,-c.y];e||(p[i]=s.position[i]);var f=[0,0],g=[-h.x,-h.y],m=_.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?g[i]+=n[a]-h[a]:f[i]+=h[a]+m);g[1-i]+=c[o]/2-h[o]/2,s.attr("position",p),l.attr("position",f),u.attr("position",g);var v={x:0,y:0};if(v[a]=d?n[a]:c[a],v[o]=Math.max(c[o],h[o]),v[r]=Math.min(0,h[r]+g[1-i]),l.__rectSize=n[a],d){var y={x:0,y:0};y[a]=Math.max(n[a]-h[a]-m,0),y[o]=v[o],l.setClipPath(new A.Rect({shape:y})),l.__rectSize=y[a]}else u.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&A.updateProps(s,{position:x.contentPosition},d&&t),this._updatePageInfoView(t,x),v},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(i,a){var o=this._controllerGroup;_.each(["pagePrev","pageNext"],function(t){var e=null!=a[t+"DataIndex"],n=o.childOfName(t);n&&(n.setStyle("fill",e?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),n.cursor=e?"pointer":"default")});var t=o.childOfName("pageText"),e=i.get("pageFormatter"),n=a.pageIndex,r=null!=n?n+1:0,s=a.pageCount;t&&e&&t.setStyle("text",_.isString(e)?e.replace("{current}",r).replace("{total}",s):e({current:r,total:s}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,a=t.getOrient().index,o=w[a],r=S[a],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:n.position.slice(),pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=y(u);d.contentPosition[a]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=c;++f)(!(v=y(l[f]))&&m.e>g.s+i||v&&!x(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(f=s-1,g=p,m=p,v=null;-1<=f;--f)(v=y(l[f]))&&x(m,v.s)||!(g.i=e&&t.s<=e+i}},_findTargetItemIndex:function(i){var a,o,t=this.getContentGroup();return this._showController&&t.eachChild(function(t,e){var n=t.__legendDataIndex;null==o&&null!=n&&(o=e),n===i&&(a=e)}),null!=a?a:o}}),o=d;t.exports=o},2817:function(t,e,n){n(789).registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})},2818:function(t,e,n){n(2184),n(2185)},2819:function(t,e,n){var i=n(1556).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=i},2820:function(t,e,n){var m=n(768),u=n(1410),v=n(852),a=n(1465),i=n(1557),c=n(965),s=n(1146),h=n(1555),d=v.Rect,y=c.linearMap,p=c.asc,f=m.bind,g=m.each,x="horizontal",_=["line","bar","candlestick","scatter"],o=i.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,n,i){o.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){o.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){o.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new v.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},a=this._orient===x?{right:i.width-n.x-n.width,top:i.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},o=s.getLayoutParams(t.option);m.each(["right","top","width","height"],function(t){"ph"===o[t]&&(o[t]=a[t])});var r=s.getLayoutRect(o,i,t.padding);this._location={x:r.x,y:r.y},this._size=[r.width,r.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),a=i&&i.get("inverse"),o=this._displayables.barGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==x||a?n===x&&a?{scale:r?[-1,1]:[-1,-1]}:"vertical"!==n||a?{scale:r?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:r?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:r?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);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,n=this._displayables.barGroup;n.add(new d({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new d({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:m.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),a=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=a){var o=i.getDataExtent(a),r=.3*(o[1]-o[0]);o=[o[0]-r,o[1]+r];var s,l=[0,e[1]],u=[0,e[0]],c=[[e[0],0],[0,0]],h=[],d=u[1]/(i.count()-1),p=0,f=Math.round(i.count()/e[0]);i.each([a],function(t,e){if(0e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,a=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-a);this._updateView(),o&&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 n;if(g(this.getTargetCoordInfo(),function(t){if(!n&&t.length){var e=t[0].model.coordinateSystem;n=e.getRect&&e.getRect()}}),!n){var t=this.api.getWidth(),e=this.api.getHeight();n={x:.2*t,y:.2*e,width:.6*t,height:.6*e}}return n}});function A(t){return"vertical"===t?"ns-resize":"ew-resize"}var r=o;t.exports=r},2821:function(t,e,n){var i=n(1556).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});t.exports=i},2822:function(t,e,n){var l=n(768),i=n(1557),h=n(1555),u=n(2823),c=l.bind,a=i.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(r,t,s,e){a.superApply(this,"render",arguments),this._range=r.getPercentRange(),l.each(this.getTargetCoordInfo(),function(t,a){var o=l.map(t,function(t){return u.generateCoordId(t.model)});l.each(t,function(e){var i=e.model,n={};l.each(["pan","zoom","scrollMove"],function(t){n[t]=c(d[t],this,e,a)},this),u.register(s,{coordId:u.generateCoordId(i),allCoordIds:o,containsPoint:function(t,e,n){return i.coordinateSystem.containPoint([e,n])},dataZoomId:r.id,dataZoomModel:r,getRange:n})},this)},this)},dispose:function(){u.unregister(this.api,this.dataZoomModel.id),a.superApply(this,"dispose",arguments),this._range=null}}),d={zoom:function(t,e,n,i){var a=this._range,o=a.slice(),r=t.axisModels[0];if(r){var s=p[e](null,[i.originX,i.originY],r,n,t),l=(0e[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),i.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=o.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(i){var a=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimension(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),a.push({seriesId:t.id,dataIndex:n})},this),a},getVisualMeta:function(n){var t=h(this,"outOfRange",this.getExtent()),e=h(this,"inRange",this.option.range.slice()),i=[];function a(t,e){i.push({value:t,color:n(t,e)})}for(var o=0,r=0,s=e.length,l=t.length;rt[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:a/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new _.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{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(i,a){if(this._useHandle){var o=this._shapes,r=this.visualMapModel,s=o.handleThumbs,l=o.handleLabels;u([0,1],function(t){var e=s[t];e.setStyle("fill",a.handlesColor[t]),e.position[1]=i[t];var n=_.applyTransform(o.handleLabelPoints[t],_.getTransform(e,this.group));l[t].setStyle({x:n[0],y:n[1],text:r.formatValueText(this._dataInterval[t]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===t?"bottom":"top":"left",o.barGroup)})},this)}},_showIndicator:function(t,e,n,i){var a=this.visualMapModel,o=a.getExtent(),r=a.itemSize,s=[0,r[1]],l=A(t,o,s,!0),u=this._shapes,c=u.indicator;if(c){var h,d,p,f;c.position[1]=l,c.attr("invisible",!1),c.setShape("points",(h=!!n,d=i,p=l,f=r[1],h?[[0,-b(d,w(p,0))],[6,0],[0,b(d,w(f-p,0))]]:[[0,0],[5,-5],[5,5]]));var g=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});c.setStyle("fill",g);var m=_.applyTransform(u.indicatorLabelPoint,_.getTransform(c,this.group)),v=u.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",u.barGroup),x=this._orient;v.setStyle({text:(n||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:m[0],y:m[1]})}},_enableHoverLinkToSeries:function(){var i=this;this._shapes.barGroup.on("mousemove",function(t){if(i._hovering=!0,!i._dragging){var e=i.visualMapModel.itemSize,n=i._applyTransform([t.offsetX,t.offsetY],i._shapes.barGroup,!0,!0);n[1]=b(w(0,n[1]),e[1]),i._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=e[0])}}).on("mouseout",function(){i._hovering=!1,i._dragging||i._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 n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var a=[0,i[1]],o=n.getExtent();t=b(w(a[0],t),a[1]);var r=function(t,e,n){var i=6,a=t.get("hoverLinkDataSize");a&&(i=A(a,e,n,!0)/2);return i}(n,o,a),s=[t-r,t+r],l=A(t,a,o,!0),u=[A(s[0],a,o,!0),A(s[1],a,o,!0)];s[0] ",r):this._showIndicator(l,l,"≈ ",r));var c=this._hoverLinkDataIndices,h=[];(e||y(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=m.compressBatches(c,h);this._dispatchHighDown("downplay",g.makeHighDownBatch(d[0],n)),this._dispatchHighDown("highlight",g.makeHighDownBatch(d[1],n))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var i=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(i)){var a=i.getData(e.dataType),o=a.get(n.getDataDimension(a),e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_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",g.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,n,i){var a=_.getTransform(e,i?null:this.group);return _[p.isArray(t)?"applyTransform":"transformDirection"](t,a,n)},_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,n,i){return new _.Polygon({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){f.stop(t.event)},ondragend:i})}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 s=o;t.exports=s},2827:function(t,e,n){n(1127).__DEV__;var p=n(768),r=n(2190),f=n(1508),s=n(2191),c=n(965).reformIntervals,a=r.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){a.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();o[this._mode].call(this),this._resetSelected(t,e);var i=this.option.categories;this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=p.clone(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=p.map(this._pieceList,function(t){t=p.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){var i=this.option,n={},t=f.listVisualTypes(),a=this.isCategory();function o(t,e,n){return t&&t[e]&&(p.isObject(t[e])?t[e].hasOwnProperty(n):t[e]===n)}p.each(i.pieces,function(e){p.each(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),p.each(n,function(t,e){var n=0;p.each(this.stateList,function(t){n|=o(i,t,e)||o(i.target,t,e)},this),n||p.each(this.stateList,function(t){(i[t]||(i[t]={}))[e]=s.get(e,"inRange"===t?"active":"inactive",a)})},this),r.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n=this.option,i=this._pieceList,a=(e?n:t).selected||{};if(n.selected=a,p.each(i,function(t,e){var n=this.getSelectedMapKey(t);a.hasOwnProperty(n)||(a[n]=!0)},this),"single"===n.selectedMode){var o=!1;p.each(i,function(t,e){var n=this.getSelectedMapKey(t);a[n]&&(o?a[n]=!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&&0n&&i([n,e[0]],"outOfRange"),i(e.slice()),n=e[1])},this),{stops:o,outerColors:r}}function i(t,e){var n=s.getRepresentValue({interval:t});e=e||s.getValueState(n);var i=a(n,e);t[0]===-1/0?r[0]=i:t[1]===1/0?r[1]=i:o.push({value:t[0],color:i},{value:t[1],color:i})}}}),o={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var o=(i[1]-i[0])/a;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n);var r=0;t.minOpen&&e.push({index:r++,interval:[-1/0,i[0]],close:[0,0]});for(var s=i[0],l=r+a;r","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function i(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var l=a;t.exports=l},2828:function(t,e,n){var p=n(768),i=n(2192),f=n(852),a=n(1321).createSymbol,g=n(1146),o=n(2193),r=i.extend({type:"visualMap.piecewise",doRender:function(){var o=this.group;o.removeAll();var r=this.visualMapModel,s=r.get("textGap"),t=r.textStyleModel,l=t.getFont(),u=t.getTextColor(),c=this._getItemAlign(),h=r.itemSize,e=this._getViewData(),n=e.endsText,d=p.retrieve(r.get("showLabel",!0),!n);n&&this._renderEndsText(o,n[0],h,d,c),p.each(e.viewPieceList,function(t){var e=t.piece,n=new f.Group;n.onclick=p.bind(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList);var i=r.getRepresentValue(e);if(this._createItemSymbol(n,i,[0,0,h[0],h[1]]),d){var a=this.visualMapModel.getValueState(i);n.add(new f.Text({style:{x:"right"===c?-s:h[0]+s,y:h[1]/2,text:e.text,textVerticalAlign:"middle",textAlign:c,textFont:l,textFill:u,opacity:"outOfRange"===a?.5:1}}))}o.add(n)},this),n&&this._renderEndsText(o,n[1],h,d,c),g.box(r.get("orient"),o,r.get("itemGap")),this.renderBackground(o),this.positionGroup(o)},_enableHoverLink:function(t,n){function e(t){var e=this.visualMapModel;e.option.hoverLink&&this.api.dispatchAction({type:t,batch:o.makeHighDownBatch(e.findTargetDataIndices(n),e)})}t.on("mouseover",p.bind(e,this,"highlight")).on("mouseout",p.bind(e,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return o.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,a){if(e){var o=new f.Group,r=this.visualMapModel.textStyleModel;o.add(new f.Text({style:{x:i?"right"===a?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?a:"center",text:e,textFont:r.getFont(),textFill:r.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=p.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),a=t.get("inverse");return("horizontal"===i?a:!a)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(a(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=p.clone(n.selected),a=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[a]=!0,p.each(i,function(t,e){i[e]=e===a})):i[a]=!i[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}});t.exports=r},2829:function(t,e,n){n(2830),(0,n(1682).registerPainter)("vml",n(2831))},2830:function(t,e,n){var i=n(1240),F=n(1150).applyTransform,a=n(1152),E=n(1411),I=n(1319),T=n(1685),o=n(2122),r=n(1593),s=n(1548),l=n(1502),u=n(1224),c=n(1550),O=n(1687),G=n(2196),H=c.CMD,W=Math.round,j=Math.sqrt,h=Math.abs,U=Math.cos,Y=Math.sin,Z=Math.max;if(!i.canvasSupported){function q(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=$+","+$,t.coordorigin="0,0"}function N(t,e,n){return"rgb("+[t,e,n].join(",")+")"}function X(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)}function d(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function K(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n}function R(t,e,n){var i=E.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=N(i[0],i[1],i[2]),t.opacity=n*i[3])}function D(t,e,n,i){var a,o,r="fill"===e,s=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof O&&d(t,s),s=s||G.createNode(e),r?function(t,e,n){var i,a,o=e.fill;if(null!=o)if(o instanceof O){var r,s=0,l=[0,0],u=0,c=1,h=n.getBoundingRect(),d=h.width,p=h.height;if("linear"===o.type){r="gradient";var f=n.transform,g=[o.x*d,o.y*p],m=[o.x2*d,o.y2*p];f&&(F(g,g,f),F(m,m,f));var v=m[0]-g[0],y=m[1]-g[1];(s=180*Math.atan2(v,y)/Math.PI)<0&&(s+=360),s<1e-6&&(s=0)}else{r="gradientradial";g=[o.x*d,o.y*p],f=n.transform;var x=n.scale,_=d,A=p;l=[(g[0]-h.x)/_,(g[1]-h.y)/A],f&&F(g,g,f),_/=x[0]*$,A/=x[1]*$;var b=Z(_,A);u=0/b,c=2*o.r/b-u}var w=o.colorStops.slice();w.sort(function(t,e){return t.offset-e.offset});for(var S=w.length,C=[],M=[],I=0;I=h&&d<=n+1){for(var i=[],a=0;a=h&&d<=a+1)return g(c,e.components,u,l);f[t]=e}else f[t]=void 0}var s;p++}for(;p<=e;){var r=o();if(r)return r}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){for(var a=e.length,o=n.length,r=t.newPos,s=r-i,l=0;r+1学习人数: "+t[0].value}},grid:{containLabel:!0,left:"30px",top:"0",bottom:"10px"},yAxis:[{data:a,inverse:!0,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{margin:10,textStyle:{fontSize:12,color:"#747A7F"},formatter:function(t){return"{Sunny|"+t+"}"},rich:{value:{lineHeight:20},Sunny:{height:25,padding:[0,8,0,8],align:"center",backgroundColor:"#fff"}}}},{data:a,inverse:!0,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1}}],xAxis:[{type:"value",splitLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1}},{type:"value",splitLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1}}],series:[{z:10,xAxisIndex:0,yAxisIndex:0,name:"",type:"pictorialBar",data:o,barCategoryGap:"90%",label:{normal:{show:!0,position:"inside",textStyle:{fontSize:12,color:"#666"}}},symbolRepeat:!1,symbolSize:["100%",25],symbolOffset:[-16.5,0],itemStyle:{normal:{color:new h.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#FFD86E"}],!1),borderRadius:"10"}},symbolClip:!0,symbolPosition:"end",symbol:"rect"}]};i.setOption(c)}(n,i,o,e),s.hideLoading(),e.hideLoading()},1e3)}else r.props.showSnackbar("未找到对应数据,请查看地址是否正确。")}).catch(function(t){console.log(t)})}},{key:"render",value:function(){var t=this.state.shixunList;return a.a.createElement("div",{className:"clearfix panelForm-2"},a.a.createElement("div",{className:"with60 pr40 fl"},a.a.createElement("div",{className:"static_shadow edu-back-white"},a.a.createElement("div",{className:"font-24 padding30-20"},"实训使用详情"),a.a.createElement("div",{className:"minH-440",id:"tableHeight"},a.a.createElement("table",{className:"edu-pop-table head-color edu-txt-center bor-top-greyE",cellSpacing:"0",cellPadding:"0"},a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",null,"章节"),a.a.createElement("th",{className:"edu-txt-left",width:"40%"},"实训名称"),a.a.createElement("th",null,"学习人数"),a.a.createElement("th",null,"受用院校"))),a.a.createElement("tbody",null,t&&t.map(function(t,e){return a.a.createElement("tr",null,a.a.createElement("td",null,t.number),a.a.createElement("td",{className:"edu-txt-left task-hide",style:{maxWidth:"272px"}},t.shixun_name),a.a.createElement("td",null,t.member_count),a.a.createElement("td",{className:"color-blue"},t.school_count))})))))),a.a.createElement("div",{className:"with40 fl static_shadow edu-back-white"},a.a.createElement("style",null,"\n\t\t\t\t\t\t\t .padding23-20{\n\t\t\t\t\t\t\t padding: 23px 20px;\n\t\t\t\t\t\t\t box-sizing: border-box;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t"),a.a.createElement("div",{className:"font-24 padding23-20"},"实训学习统计"),void 0===t?a.a.createElement("div",{id:"showloding",style:{width:"480px",height:"440px"}}):"",void 0===t?"":a.a.createElement("div",{id:"shixunStudyStatistics",style:{width:"480px",minHeight:(t&&50*t.length)+"px"}})))}}]),c);function c(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,t));return e.state={},e}e.a=u},3758:function(t,e,n){"use strict";var i=n(0),a=n.n(i),o=n(12),r=n.n(o),s=function(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t};function l(t,e){for(var n=0;ni.get("hoverLayerThreshold")&&!m.node&&i.eachSeries(function(t){if(!t.preventUsingHoverLayer){var e=n._chartsMap[t.__viewId];e.__alive&&e.group.traverse(function(t){t.useHoverLayer=!0})}}),w(o._zr.dom,t)}function tt(e,n){k(lt,function(t){t(e,n)})}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 n=e.resetOption("media"),i=t&&t.silent;this[O]=!0,n&&j(this),W.update.call(this),this[O]=!1,q.call(this,i),X.call(this,i)}}},F.showLoading=function(t,e){if(this._disposed)this.id;else if(L(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ht[t]){var n=ht[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},F.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},F.makeActionFromEvent=function(t){var e=g.extend({},t);return e.type=ot[t.type],e},F.dispatchAction=function(t,e){this._disposed?this.id:(L(e)||(e={silent:!!e}),at[t.type]&&this._model&&(this[O]?this._pendingActions.push(t):(Z.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&m.browser.weChat&&this._throttledZrFlush(),q.call(this,e.silent),X.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=z("on",!1),F.off=z("off",!1),F.one=z("one",!1);var et=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function nt(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function it(){this.eventInfo}F._initEvents=function(){k(et,function(u){function t(t){var e,n=this.getModel(),i=t.target;if("globalout"===u)e={};else if(i&&null!=i.dataIndex){var a=i.dataModel||n.getSeriesByIndex(i.seriesIndex);e=a&&a.getDataParams(i.dataIndex,i.dataType,i)||{}}else i&&i.eventData&&(e=g.extend({},i.eventData));if(e){var o=e.componentType,r=e.componentIndex;"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=e.seriesIndex);var s=o&&null!=r&&n.getComponent(o,r),l=s&&this["series"===s.mainType?"_chartsMap":"_componentsMap"][s.__viewId];e.event=t,e.type=u,this._ecEventProcessor.eventInfo={targetEl:i,packedEvent:e,model:s,view:l},this.trigger(u,e)}}t.zrEventfulCallAtLast=!0,this._zr.on(u,t,this)},this),k(ot,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,A.setAttribute(this.getDom(),mt,"");var e=this._api,n=this._model;k(this._componentsViews,function(t){t.dispose(n,e)}),k(this._chartsViews,function(t){t.dispose(n,e)}),this._zr.dispose(),delete dt[this.id]}},g.mixin(G,h),it.prototype={constructor:it,normalizeQuery:function(t){var s={},l={},u={};if(g.isString(t)){var e=B(t);s.mainType=e.main||null,s.subType=e.sub||null}else{var c=["Index","Name","Id"],h={name:1,dataIndex:1,dataType:1};g.each(t,function(t,e){for(var n=!1,i=0;ia.total?a.total:m*v])));var B=!this.hasPrev()||!r,E=!this.hasNext()||!r;return R.a.createElement("ul",N()({className:z()(e,n,O()({},e+"-disabled",i)),style:a.style,unselectable:"unselectable",ref:this.savePaginationNode},_),L,R.a.createElement("li",{title:a.showTitle?o.prev_page:null,onClick:this.prev,tabIndex:B?null:0,onKeyPress:this.runIfEnterPrev,className:(B?e+"-disabled":"")+" "+e+"-prev","aria-disabled":B},a.itemRender(y,"prev",this.getItemIcon(a.prevIcon))),s,R.a.createElement("li",{title:a.showTitle?o.next_page:null,onClick:this.next,tabIndex:E?null:0,onKeyPress:this.runIfEnterNext,className:(E?e+"-disabled":"")+" "+e+"-next","aria-disabled":E},a.itemRender(x,"next",this.getItemIcon(a.nextIcon))),R.a.createElement(G.a,{disabled:i,locale:a.locale,rootPrefixCls:e,selectComponentClass:a.selectComponentClass,selectPrefixCls:a.selectPrefixCls,changeSize:this.props.showSizeChanger?this.changePageSize:null,current:this.state.current,pageSize:this.state.pageSize,pageSizeOptions:this.props.pageSizeOptions,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:p}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n={};if("current"in t&&(n.current=t.current,t.current!==e.current&&(n.currentInputValue=n.current)),"pageSize"in t&&t.pageSize!==e.pageSize){var i=e.current,a=F(t.pageSize,e,t);i=aMath.abs(o[1])?0=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/a*o+n[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?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},e.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?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,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},e.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(0c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[e]/a},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return-1e-4=o.length&&o.push({option:t})}}),o},e.makeIdAndName=function(t){var r=h.createHashMap();d(t,function(t,e){var n=t.exist;n&&r.set(n.id,t)}),d(t,function(t,e){var n=t.option;h.assert(!n||null==n.id||!r.get(n.id)||r.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&r.set(n.id,t),t.keyInfo||(t.keyInfo={})}),d(t,function(t,e){var n=t.exist,i=t.option,a=t.keyInfo;if(s(i)){if(a.name=null!=i.name?i.name+"":n?n.name:"series\0"+e,n)a.id=n.id;else if(null!=i.id)a.id=i.id+"";else for(var o=0;a.id="\0"+a.name+"\0"+o++,r.get(a.id););r.set(a.id,t)}})},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf("series\0"))},e.isIdInner=r,e.compressBatches=function(t,e){var n={},i={};return a(t||[],n),a(e||[],i,n),[o(n),o(i)];function a(t,e,n){for(var i=0,a=t.length;i