!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function n(t,e){if(!e)return t;if(0===t.indexOf(".")){var n=e.split("/"),i=t.split("/"),r=n.length-1,a=i.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(i[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return n.length=r-o,i=i.slice(s),n.concat(i).join("/")}return t}function i(t){function e(e,o){if("string"==typeof e){var s=i[e];return s||(s=a(n(e,t)),i[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var i={};return e}function r(e,i,r){for(var s=[],l=o[r],u=0,c=Math.min(e.length,i.length);c>u;u++){var h,f=n(e[u],r);switch(f){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;break;default:h=a(f)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var n=e.factory,i=n.apply(this,r(e.deps||[],n,t));"undefined"!=typeof i&&(e.exports=i),e.defined=1}return e.exports}var o={};e=function(t,e,n){o[t]={id:t,deps:e,factory:n,defined:0,exports:{},require:i(t)}},t=i("")}();var n="updateTransform",i="lineTo",r="../core/util",a="buildPath",o="moveTo",s="__dirty",l="queryComponents",u="parent",c="lineWidth",h="zrender/core/BoundingRect",f="ecModel",d="stroke",p="horizontal",v="lineStyle",m="rotation",g="hoverStyle",y="childAt",x="inside",_="undefined",w="../../util/number",b="inherits",M="isArray",S="replace",T="traverse",C="mousemove",A="splice",P="dispose",L="trigger",z="dispatchAction",k="isObject",I="updateLayout",D="colorStops",O="canvasSupported",R="toLowerCase",E="zrender/core/vector",B="zrender/core/env",N="mouseout",V="mouseover",F="getComponent",G="series",H="getName",Z="mergeOption",q="superApply",W="option",X="applyTransform",j="transform",U="hasItemOption",Y="getDataExtent",$="eachSeries",J="eachComponent",Q="componentIndex",K="resize",te="category",ee="seriesIndex",ne="parsePercent",ie="ordinal",re="ignore",ae="zlevel",oe="hostModel",se="getLineStyle",le="stopAnimation",ue="updateData",ce="dataToCoord",he="getAxis",fe="mapArray",de="radius",pe="../../util/model",ve="dataIndex",me="setHoverStyle",ge="emphasis",ye="getFormattedLabel",xe="retrieve",_e="label.emphasis",we="label.normal",be="useStyle",Me="setShape",Se="getItemVisual",Te="eachItemGraphicEl",Ce="getItemGraphicEl",Ae="setItemGraphicEl",Pe="update",Le="remove",ze="execute",ke="initProps",Ie="updateProps",De="getItemLayout",Oe="normal",Re="animation",Ee="../../echarts",Be="../../util/graphic",Ne="dataToPoint",Ve="dimensions",Fe="concat",Ge="number",He="string",Ze="indexOf",qe="getContext",We="canvas",Xe="createElement",je="filter",Ue="getShallow",Ye="getItemModel",$e="getDataParams",Je="function",Qe="cartesian2d",Ke="getExtent",tn="create",en="normalize",nn="contain",rn="length",an="extend",on="prototype",sn="registerAction",ln="opacity",un="setStyle",cn="position",hn="bottom",fn="center",dn="middle",pn="getHeight",vn="getWidth",mn="getLayoutRect",gn="getBoxLayoutParams",yn="target",xn="silent",_n="height",wn="getBoundingRect",bn="getTextColor",Mn="getFont",Sn="textAlign",Tn="textStyle",Cn="getModel",An="getItemStyle",Pn="backgroundColor",Ln="defaults",zn="coordinateSystem",kn="removeAll",In="extendComponentView",Dn="getData",On="zrender/core/util",Rn="require";e("echarts/chart/line",[Rn,On,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(On),n=t("../echarts"),i=n.PRIORITY;t("./line/LineSeries"),t("./line/LineView"),n.registerVisual(e.curry(t("../visual/symbol"),"line","circle","line")),n.registerLayout(e.curry(t("../layout/points"),"line")),n.registerProcessor(i.PROCESSOR.STATISTIC,e.curry(t("../processor/dataSample"),"line")),t("../component/grid")}),e("echarts/chart/bar",[Rn,On,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid","../echarts","../component/grid"],function(t){var e=t(On);t("../coord/cartesian/Grid"),t("./bar/BarSeries"),t("./bar/BarView");var n=t("../layout/barGrid"),i=t("../echarts");i.registerLayout(e.curry(n,"bar")),i.registerVisual(function(t){t.eachSeriesByType("bar",function(t){var e=t[Dn]();e.setVisual("legendSymbol","roundRect")})}),t("../component/grid")}),e("echarts/chart/heatmap",[Rn,"./heatmap/HeatmapSeries","./heatmap/HeatmapView"],function(t){t("./heatmap/HeatmapSeries"),t("./heatmap/HeatmapView")}),e("echarts/chart/map",[Rn,"../echarts","./map/MapSeries","./map/MapView","../action/geoRoam","../coord/geo/geoCreator","./map/mapSymbolLayout","./map/mapVisual","./map/mapDataStatistic","./map/backwardCompat","../action/createDataSelectAction"],function(t){var e=t("../echarts"),n=e.PRIORITY;t("./map/MapSeries"),t("./map/MapView"),t("../action/geoRoam"),t("../coord/geo/geoCreator"),e.registerLayout(t("./map/mapSymbolLayout")),e.registerVisual(t("./map/mapVisual")),e.registerProcessor(n.PROCESSOR.STATISTIC,t("./map/mapDataStatistic")),e.registerPreprocessor(t("./map/backwardCompat")),t("../action/createDataSelectAction")("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])}),e("echarts/chart/pie",[Rn,On,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(On),n=t("../echarts");t("./pie/PieSeries"),t("./pie/PieView"),t("../action/createDataSelectAction")("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(e.curry(t("../visual/dataColor"),"pie")),n.registerLayout(e.curry(t("./pie/pieLayout"),"pie")),n.registerProcessor(e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/chart/lines",[Rn,"./lines/LinesSeries","./lines/LinesView","../echarts","./lines/linesLayout"],function(t){t("./lines/LinesSeries"),t("./lines/LinesView");var e=t("../echarts");e.registerLayout(t("./lines/linesLayout"))}),e("echarts/chart/gauge",[Rn,"./gauge/GaugeSeries","./gauge/GaugeView"],function(t){t("./gauge/GaugeSeries"),t("./gauge/GaugeView")}),e("echarts/chart/parallel",[Rn,"../echarts","../component/parallel","./parallel/ParallelSeries","./parallel/ParallelView","./parallel/parallelVisual"],function(t){var e=t("../echarts");t("../component/parallel"),t("./parallel/ParallelSeries"),t("./parallel/ParallelView"),e.registerVisual(t("./parallel/parallelVisual"))}),e("echarts/chart/funnel",[Rn,On,"../echarts","./funnel/FunnelSeries","./funnel/FunnelView","../visual/dataColor","./funnel/funnelLayout","../processor/dataFilter"],function(t){var e=t(On),n=t("../echarts");t("./funnel/FunnelSeries"),t("./funnel/FunnelView"),n.registerVisual(e.curry(t("../visual/dataColor"),"funnel")),n.registerLayout(t("./funnel/funnelLayout")),n.registerProcessor(e.curry(t("../processor/dataFilter"),"funnel"))}),e("echarts/component/grid",[Rn,"../util/graphic",On,"../echarts","../coord/cartesian/Grid","./axis"],function(t){var e=t("../util/graphic"),n=t(On),i=t("../echarts");t("../coord/cartesian/Grid"),t("./axis"),i[In]({type:"grid",render:function(t){this.group[kn](),t.get("show")&&this.group.add(new e.Rect({shape:t[zn].getRect(),style:n[Ln]({fill:t.get(Pn)},t[An]()),silent:!0,z2:-1}))}}),i.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),e("echarts/component/title",[Rn,"../echarts","../util/graphic","../util/layout"],function(t){var e=t("../echarts"),n=t("../util/graphic"),i=t("../util/layout");e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e[In]({type:"title",render:function(t,e,r){if(this.group[kn](),t.get("show")){var a=this.group,o=t[Cn](Tn),s=t[Cn]("subtextStyle"),l=t.get(Sn),u=t.get("textBaseline"),c=new n.Text({style:{text:t.get("text"),textFont:o[Mn](),fill:o[bn]()},z2:10}),h=c[wn](),f=t.get("subtext"),d=new n.Text({style:{text:f,textFont:s[Mn](),fill:s[bn](),y:h[_n]+t.get("itemGap"),textBaseline:"top"},z2:10}),p=t.get("link"),v=t.get("sublink");c[xn]=!p,d[xn]=!v,p&&c.on("click",function(){window.open(p,"_"+t.get(yn))}),v&&d.on("click",function(){window.open(v,"_"+t.get("subtarget"))}),a.add(c),f&&a.add(d);var m=a[wn](),g=t[gn]();g.width=m.width,g[_n]=m[_n];var y=i[mn](g,{width:r[vn](),height:r[pn]()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l===dn&&(l=fn),"right"===l?y.x+=y.width:l===fn&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get(hn),u===fn&&(u=dn),u===hn?y.y+=y[_n]:u===dn&&(y.y+=y[_n]/2),u=u||"top"),a.attr(cn,[y.x,y.y]);var x={textAlign:l,textVerticalAlign:u};c[un](x),d[un](x),m=a[wn]();var _=y.margin,w=t[An](["color",ln]);w.fill=t.get(Pn);var b=new n.Rect({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m[_n]+_[0]+_[2]},style:w,silent:!0});n.subPixelOptimizeRect(b),a.add(b)}}})}),e("echarts/component/legend",[Rn,"./legend/LegendModel","./legend/legendAction","./legend/LegendView","../echarts","./legend/legendFilter"],function(t){t("./legend/LegendModel"),t("./legend/legendAction"),t("./legend/LegendView");var e=t("../echarts");e.registerProcessor(t("./legend/legendFilter"))}),e("echarts/component/tooltip",[Rn,"./tooltip/TooltipModel","./tooltip/TooltipView","../echarts"],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t("../echarts")[sn]({type:"showTip",event:"showTip",update:"none"},function(){}),t("../echarts")[sn]({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e("echarts/component/toolbox",[Rn,"./toolbox/ToolboxModel","./toolbox/ToolboxView","./toolbox/feature/SaveAsImage","./toolbox/feature/MagicType","./toolbox/feature/DataView","./toolbox/feature/DataZoom","./toolbox/feature/Restore"],function(t){t("./toolbox/ToolboxModel"),t("./toolbox/ToolboxView"),t("./toolbox/feature/SaveAsImage"),t("./toolbox/feature/MagicType"),t("./toolbox/feature/DataView"),t("./toolbox/feature/DataZoom"),t("./toolbox/feature/Restore")}),e("zrender/vml/vml",[Rn,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/scale/Time",[Rn,On,"../util/number","../util/format","./Interval"],function(t){var e=t(On),n=t("../util/number"),i=t("../util/format"),r=t("./Interval"),a=r[on],o=Math.ceil,s=Math.floor,l=1e3,u=60*l,c=60*u,h=24*c,f=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][2]<e?n=r+1:i=r}return n},d=r[an]({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return i.formatTime(e[0],n)},niceExtent:function(t,e,i){var r=this._extent;if(r[0]===r[1]&&(r[0]-=h,r[1]+=h),r[1]===-1/0&&1/0===r[0]){var a=new Date;r[1]=new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-h}this.niceTicks(t);var l=this._interval;e||(r[0]=n.round(s(r[0]/l)*l)),i||(r[1]=n.round(o(r[1]/l)*l))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0],r=i/t,a=p[rn],l=f(p,r,0,a),u=p[Math.min(l,a-1)],c=u[2];if("year"===u[0]){var h=i/c,d=n.nice(h/t,!0);c*=d}var v=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=u,this._interval=c,this._niceExtent=v},parse:function(t){return+n.parseDate(t)}});e.each([nn,en],function(t){d[on][t]=function(e){return a[t].call(this,this.parse(e))}});var p=[["hh:mm:ss",1,l],["hh:mm:ss",5,5*l],["hh:mm:ss",10,10*l],["hh:mm:ss",15,15*l],["hh:mm:ss",30,30*l],["hh:mm\nMM-dd",1,u],["hh:mm\nMM-dd",5,5*u],["hh:mm\nMM-dd",10,10*u],["hh:mm\nMM-dd",15,15*u],["hh:mm\nMM-dd",30,30*u],["hh:mm\nMM-dd",1,c],["hh:mm\nMM-dd",2,2*c],["hh:mm\nMM-dd",6,6*c],["hh:mm\nMM-dd",12,12*c],["MM-dd\nyyyy",1,h],["week",7,7*h],["month",1,31*h],["quarter",3,380*h/4],["half-year",6,380*h/2],["year",1,380*h]];return d[tn]=function(){return new d},d}),e("echarts/scale/Log",[Rn,On,"./Scale","../util/number","./Interval"],function(t){function e(t,e){return u(t,l(e))}var n=t(On),i=t("./Scale"),r=t("../util/number"),a=t("./Interval"),o=i[on],s=a[on],l=r.getPrecisionSafe,u=r.round,c=Math.floor,h=Math.ceil,f=Math.pow,d=Math.log,p=i[an]({type:"log",base:10,$constructor:function(){i.apply(this,arguments),this._originalScale=new a},getTicks:function(){var t=this._originalScale,i=this._extent,a=t[Ke]();return n.map(s.getTicks.call(this),function(n){var o=r.round(f(this.base,n));return o=n===i[0]&&t.__fixMin?e(o,a[0]):o,o=n===i[1]&&t.__fixMax?e(o,a[1]):o},this)},getLabel:s.getLabel,scale:function(t){return t=o.scale.call(this,t),f(this.base,t)},setExtent:function(t,e){var n=this.base;t=d(t)/d(n),e=d(e)/d(n),s.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,n=o[Ke].call(this);n[0]=f(t,n[0]),n[1]=f(t,n[1]);var i=this._originalScale,r=i[Ke]();return i.__fixMin&&(n[0]=e(n[0],r[0])),i.__fixMax&&(n[1]=e(n[1],r[1])),n},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=d(t[0])/d(e),t[1]=d(t[1])/d(e),o.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=r.quantity(n),a=t/n*i;for(.5>=a&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[r.round(h(e[0]/i)*i),r.round(c(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},niceExtent:function(t,e,n){s.niceExtent.call(this,t,e,n);var i=this._originalScale;i.__fixMin=e,i.__fixMax=n}});return n.each([nn,en],function(t){p[on][t]=function(e){return e=d(e)/d(this.base),o[t].call(this,e)}}),p[tn]=function(){return new p},p}),e("echarts/chart/line/LineSeries",[Rn,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),n=t("../../model/Series");return n[an]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,n){return e(t.data,this,n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})}),e("echarts/visual/symbol",[Rn],function(){return function(t,e,n,i){i.eachRawSeriesByType(t,function(t){var r=t[Dn](),a=t.get("symbol")||e,o=t.get("symbolSize");r.setVisual({legendSymbol:n||a,symbol:a,symbolSize:o}),i.isSeriesFiltered(t)||(typeof o===Je&&r.each(function(e){var n=t.getRawValue(e),i=t[$e](e);r.setItemVisual(e,"symbolSize",o(n,i))}),r.each(function(t){var e=r[Ye](t),n=e[Ue]("symbol",!0),i=e[Ue]("symbolSize",!0);null!=n&&r.setItemVisual(t,"symbol",n),null!=i&&r.setItemVisual(t,"symbolSize",i)}))})}}),e(On,[Rn],function(){function t(e){if(null==e||"object"!=typeof e)return e;var n=e,i=z.call(e);if("[object Array]"===i){n=[];for(var r=0,a=e[rn];a>r;r++)n[r]=t(e[r])}else if(L[i])n=e.constructor.from(e);else if(!P[i]&&!M(e)){n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=t(e[o]))}return n}function e(n,i,r){if(!w(i)||!w(n))return r?t(i):n;for(var a in i)if(i.hasOwnProperty(a)){var o=n[a],s=i[a];!w(s)||!w(o)||y(s)||y(o)||M(s)||M(o)||b(s)||b(o)?!r&&a in n||(n[a]=t(i[a],!0)):e(o,s,r)}return n}function n(t,n){for(var i=t[0],r=1,a=t[rn];a>r;r++)i=e(i,t[r],n);return i}function i(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function r(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function a(){return document[Xe](We)}function o(){return A||(A=B.createCanvas()[qe]("2d")),A}function s(t,e){if(t){if(t[Ze])return t[Ze](e);for(var n=0,i=t[rn];i>n;n++)if(t[n]===e)return n}return-1}function l(t,e){function n(){}var i=t[on];n[on]=e[on],t[on]=new n;for(var r in i)t[on][r]=i[r];t[on].constructor=t,t.superClass=e}function u(t,e,n){t=on in t?t[on]:t,e=on in e?e[on]:e,r(t,e,n)}function c(t){return t?typeof t==He?!1:typeof t[rn]==Ge:void 0}function h(t,e,n){if(t&&e)if(t.forEach&&t.forEach===I)t.forEach(e,n);else if(t[rn]===+t[rn])for(var i=0,r=t[rn];r>i;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function f(t,e,n){if(t&&e){if(t.map&&t.map===R)return t.map(e,n);for(var i=[],r=0,a=t[rn];a>r;r++)i.push(e.call(n,t[r],r,t));return i}}function d(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===E)return t.reduce(e,n,i);for(var r=0,a=t[rn];a>r;r++)n=e.call(i,n,t[r],r,t);return n}}function p(t,e,n){if(t&&e){if(t[je]&&t[je]===D)return t[je](e,n);for(var i=[],r=0,a=t[rn];a>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}}function v(t,e,n){if(t&&e)for(var i=0,r=t[rn];r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function m(t,e){var n=O.call(arguments,2);return function(){return t.apply(e,n[Fe](O.call(arguments)))}}function g(t){var e=O.call(arguments,1);return function(){return t.apply(this,e[Fe](O.call(arguments)))}}function y(t){return"[object Array]"===z.call(t)}function x(t){return typeof t===Je}function _(t){return"[object String]"===z.call(t)}function w(t){var e=typeof t;return e===Je||!!t&&"object"==e}function b(t){return!!P[z.call(t)]}function M(t){return"object"==typeof t&&typeof t.nodeType===Ge&&"object"==typeof t.ownerDocument}function S(){for(var t=0,e=arguments[rn];e>t;t++)if(null!=arguments[t])return arguments[t]}function T(){return Function.call.apply(O,arguments)}function C(t,e){if(!t)throw new Error(e)}var A,P={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},L={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},z=Object[on].toString,k=Array[on],I=k.forEach,D=k[je],O=k.slice,R=k.map,E=k.reduce,B={inherits:l,mixin:u,clone:t,merge:e,mergeAll:n,extend:i,defaults:r,getContext:o,createCanvas:a,indexOf:s,slice:T,find:v,isArrayLike:c,each:h,map:f,reduce:d,filter:p,bind:m,curry:g,isArray:y,isString:_,isObject:w,isFunction:x,isBuildInObject:b,isDom:M,retrieve:S,assert:C,noop:function(){}};return B}),e("echarts/layout/points",[Rn],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[Dn](),n=t[zn];if(n){var i=n[Ve];"singleAxis"===n.type?e.each(i[0],function(t,i){e.setItemLayout(i,isNaN(t)?[0/0,0/0]:n[Ne](t))}):e.each(i,function(t,i,r){e.setItemLayout(r,isNaN(t)||isNaN(i)?[0/0,0/0]:n[Ne]([t,i]))},!0)}})}}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,n=0,i=0;i<t[rn];i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?0/0:e/n},sum:function(t){for(var e=0,n=0;n<t[rn];n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t[rn];n++)t[n]>e&&(e=t[n]);return e},min:function(t){for(var e=1/0,n=0;n<t[rn];n++)t[n]<e&&(e=t[n]);return e},nearest:function(t){return t[0]}},e=function(t){return Math.round(t[rn]/2)};return function(n,i){i.eachSeriesByType(n,function(n){var i=n[Dn](),r=n.get("sampling"),a=n[zn];if(a.type===Qe&&r){var o=a.getBaseAxis(),s=a.getOtherAxis(o),l=o[Ke](),u=l[1]-l[0],c=Math.round(i.count()/u);if(c>1){var h;typeof r===He?h=t[r]:typeof r===Je&&(h=r),h&&(i=i.downSample(s.dim,1/c,h,e),n.setData(i))}}},this)}}),e("echarts/chart/bar/BarSeries",[Rn,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),n=t("../helper/createListFromArray");return e[an]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return n(t.data,this,e)},getMarkerPosition:function(t){var e=this[zn];if(e){var n=e[Ne](t,!0),i=this[Dn](),r=i.getLayout("offset"),a=i.getLayout("size"),o=e.getBaseAxis().isHorizontal()?0:1;return n[o]+=r+a/2,n}return[0/0,0/0]},brushSelector:"rect",defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,itemStyle:{normal:{},emphasis:{}}}})}),e("echarts/chart/bar/BarView",[Rn,On,Be,"../../model/Model","./barItemStyle",Ee],function(t){function e(t,e){var n=t.width>0?1:-1,i=t[_n]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[_n])),t.x+=n*e/2,t.y+=i*e/2,t.width-=n*e,t[_n]-=i*e}var n=t(On),i=t(Be);return n[an](t("../../model/Model")[on],t("./barItemStyle")),t(Ee).extendChartView({type:"bar",render:function(t,e,n){var i=t.get(zn);return i===Qe&&this._renderOnCartesian(t,e,n),this.group},dispose:n.noop,_renderOnCartesian:function(t){function r(r,a){var s=o[De](r),l=o[Ye](r).get(f)||0;e(s,l);var u=new i.Rect({shape:n[an]({},s)});if(h){var d=u.shape,p=c?_n:"width",v={};d[p]=0,v[p]=s[p],i[a?Ie:ke](u,{shape:v},t,r)}return u}var a=this.group,o=t[Dn](),s=this._data,l=t[zn],u=l.getBaseAxis(),c=u.isHorizontal(),h=t.get(Re),f=["itemStyle",Oe,"barBorderWidth"];o.diff(s).add(function(t){if(o.hasValue(t)){var e=r(t);o[Ae](t,e),a.add(e)}})[Pe](function(n,l){var u=s[Ce](l);if(!o.hasValue(n))return void a[Le](u);u||(u=r(n,!0));var c=o[De](n),h=o[Ye](n).get(f)||0;e(c,h),i[Ie](u,{shape:c},t,n),o[Ae](n,u),a.add(u)})[Le](function(e){var n=s[Ce](e);n&&(n.style.text="",i[Ie](n,{shape:{width:0}},t,e,function(){a[Le](n)}))})[ze](),this._updateStyle(t,o,c),this._data=o},_updateStyle:function(t,e,r){function a(t,e,n,r,a){i.setText(t,e,n),t.text=r,"outside"===t.textPosition&&(t.textPosition=a)}e[Te](function(o,s){var l=e[Ye](s),u=e[Se](s,"color"),c=e[Se](s,ln),h=e[De](s),f=l[Cn]("itemStyle.normal"),d=l[Cn]("itemStyle.emphasis").getBarItemStyle();o[Me]("r",f.get("barBorderRadius")||0),o[be](n[Ln]({fill:u,opacity:c},f.getBarItemStyle()));var p=r?h[_n]>0?hn:"top":h.width>0?"left":"right",v=l[Cn](we),m=l[Cn](_e),g=o.style;v.get("show")?a(g,v,u,n[xe](t[ye](s,Oe),t.getRawValue(s)),p):g.text="",m.get("show")?a(d,m,u,n[xe](t[ye](s,ge),t.getRawValue(s)),p):d.text="",i[me](o,d)})},remove:function(t){var e=this.group;t.get(Re)?this._data&&this._data[Te](function(n){n.style.text="",i[Ie](n,{shape:{width:0}},t,n[ve],function(){e[Le](n)})}):e[kn]()}})}),e("echarts/chart/line/LineView",[Rn,On,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",Be,pe,"./poly","../../view/Chart"],function(t){function e(t,e){if(t[rn]===e[rn]){for(var n=0;n<t[rn];n++){var i=t[n],r=e[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function n(t){return typeof t===Ge?t:t?.3:0}function i(t){var e=t.getGlobalExtent();if(t.onBand){var n=t.getBandWidth()/2-1,i=e[1]>e[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function r(t){return t>=0?1:-1}function a(t,e){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=n.onZero?0:i.scale[Ke]()[0],o=i.dim,s="x"===o||o===de?1:0;return e[fe]([o],function(i,l){for(var u,c=e.stackedOn;c&&r(c.get(o,l))===r(i);){u=c;break}var h=[];return h[s]=e.get(n.dim,l),h[1-s]=u?u.get(o,l,!0):a,t[Ne](h)},!0)}function o(t,e,n){var r=i(t[he]("x")),a=i(t[he]("y")),o=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),l=Math.min(a[0],a[1]),u=Math.max(r[0],r[1])-s,c=Math.max(a[0],a[1])-l,h=n.get("lineStyle.normal.width")||2,f=n.get("clipOverflow")?h/2:Math.max(u,c);o?(l-=f,c+=2*f):(s-=f,u+=2*f);var d=new v.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(d.shape[o?"width":_n]=0,v[ke](d,{shape:{width:u,height:c}},n)),d}function s(t,e,n){var i=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[Ke](),o=i[Ke](),s=Math.PI/180,l=new v.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:i.inverse}});return e&&(l.shape.endAngle=-o[0]*s,v[ke](l,{shape:{endAngle:-o[1]*s}},n)),l}function l(t,e,n){return"polar"===t.type?s(t,e,n):o(t,e,n)}function u(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||i.dim===de?0:1,a=[],o=0;o<t[rn]-1;o++){var s=t[o+1],l=t[o];a.push(l);var u=[];switch(n){case"end":u[r]=s[r],u[1-r]=l[1-r],a.push(u);break;case dn:var c=(l[r]+s[r])/2,h=[];u[r]=h[r]=c,u[1-r]=l[1-r],h[1-r]=s[1-r],a.push(u),a.push(h);break;default:u[r]=l[r],u[1-r]=s[1-r],a.push(u)}}return t[o]&&a.push(t[o]),a}function c(t,e){var n=t.getVisual("visualMeta");if(n&&n[rn]&&t.count()){for(var i,r=n[rn]-1;r>=0;r--)if(n[r].dimension<2){i=n[r];break}if(i&&e.type===Qe){var a=i.dimension,o=t[Ve][a],s=e[he](o),l=h.map(i.stops,function(t){return{coord:s.toGlobalCoord(s[ce](t.value)),color:t.color}}),u=l[rn],c=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var f=10,d=l[0].coord-f,p=l[u-1].coord+f,m=p-d;if(.001>m)return"transparent";h.each(l,function(t){t.offset=(t.coord-d)/m}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var g=new v.LinearGradient(0,0,0,0,l,!0);return g[o]=d,g[o+"2"]=p,g}}}var h=t(On),f=t("../helper/SymbolDraw"),d=t("../helper/Symbol"),p=t("./lineAnimationDiff"),v=t(Be),m=t(pe),g=t("./poly"),y=t("../../view/Chart");return y[an]({type:"line",init:function(){var t=new v.Group,e=new f;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,i,r){var o=t[zn],s=this.group,f=t[Dn](),d=t[Cn]("lineStyle.normal"),p=t[Cn]("areaStyle.normal"),v=f[fe](f[De],!0),m="polar"===o.type,g=this._coordSys,y=this._symbolDraw,x=this._polyline,_=this._polygon,w=this._lineGroup,b=t.get(Re),M=!p.isEmpty(),S=a(o,f),T=t.get("showSymbol"),C=T&&!m&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(f,o),A=this._data;A&&A[Te](function(t,e){t.__temp&&(s[Le](t),A[Ae](e,null))}),T||y[Le](),s.add(w);var P=!m&&t.get("step");x&&g.type===o.type&&P===this._step?(M&&!_?_=this._newPolygon(v,S,o,b):_&&!M&&(w[Le](_),_=this._polygon=null),w.setClipPath(l(o,!1,t)),T&&y[ue](f,C),f[Te](function(t){t[le](!0)}),e(this._stackedOnPoints,S)&&e(this._points,v)||(b?this._updateAnimation(f,S,o,r,P):(P&&(v=u(v,o,P),S=u(S,o,P)),x[Me]({points:v}),_&&_[Me]({points:v,stackedOnPoints:S})))):(T&&y[ue](f,C),P&&(v=u(v,o,P),S=u(S,o,P)),x=this._newPolyline(v,o,b),M&&(_=this._newPolygon(v,S,o,b)),w.setClipPath(l(o,!0,t)));var L=c(f,o)||f.getVisual("color");x[be](h[Ln](d[se](),{fill:"none",stroke:L,lineJoin:"bevel"}));var z=t.get("smooth");if(z=n(t.get("smooth")),x[Me]({smooth:z,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),_){var k=f.stackedOn,I=0;if(_[be](h[Ln](p.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel"})),k){var D=k[oe];I=n(D.get("smooth"))}_[Me]({smooth:z,stackedOnSmooth:I,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=f,this._coordSys=o,this._stackedOnPoints=S,this._points=v,this._step=P},dispose:function(){},highlight:function(t,e,n,i){var r=t[Dn](),a=m.queryDataIndex(r,i);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r[Ce](a);if(!o){var s=r[De](a);if(!s)return;o=new d(r,a),o[cn]=s,o.setZ(t.get(ae),t.get("z")),o[re]=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r[Ae](a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else y[on].highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t[Dn](),a=m.queryDataIndex(r,i);if(null!=a&&a>=0){var o=r[Ce](a);o&&(o.__temp?(r[Ae](a,null),this.group[Le](o)):o.downplay())}else y[on].downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup[Le](e),e=new g.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup[Le](n),n=new g.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(t,e){var n=e.getAxesByScale(ie)[0];return n&&n.isLabelIgnored?h.bind(n.isLabelIgnored,n):void 0},_updateAnimation:function(t,e,n,i,r){var a=this._polyline,o=this._polygon,s=t[oe],l=p(this._data,t,this._stackedOnPoints,e,this._coordSys,n),c=l.current,h=l.stackedOnCurrent,f=l.next,d=l.stackedOnNext;r&&(c=u(l.current,n,r),h=u(l.stackedOnCurrent,n,r),f=u(l.next,n,r),d=u(l.stackedOnNext,n,r)),a.shape.__points=l.current,a.shape.points=c,v[Ie](a,{shape:{points:f}},s),o&&(o[Me]({points:c,stackedOnPoints:h}),v[Ie](o,{shape:{points:f,stackedOnPoints:d}},s));for(var m=[],g=l.status,y=0;y<g[rn];y++){var x=g[y].cmd;if("="===x){var _=t[Ce](g[y].idx1);_&&m.push({el:_,ptIdx:y})}}a.animators&&a.animators[rn]&&a.animators[0].during(function(){for(var t=0;t<m[rn];t++){var e=m[t].el;e.attr(cn,a.shape.__points[m[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup[kn](),this._symbolDraw[Le](!0),e&&e[Te](function(n,i){n.__temp&&(t[Le](n),e[Ae](i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/layout/barGrid",[Rn,On,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[ee]}function n(t){return t.dim+t.index}function i(t){var i={};a.each(t,function(t){var r=t[Dn](),a=t[zn],o=a.getBaseAxis(),l=o[Ke](),u=o.type===te?o.getBandWidth():Math.abs(l[1]-l[0])/r.count(),c=i[n(o)]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;i[n(o)]=c;var f=e(t);h[f]||c.autoWidthCount++,h[f]=h[f]||{width:0,maxWidth:0};var d=s(t.get("barWidth"),u),p=s(t.get("barMaxWidth"),u),v=t.get("barGap"),m=t.get("barCategoryGap");d&&!h[f].width&&(d=Math.min(c.remainedWidth,d),h[f].width=d,c.remainedWidth-=d),p&&(h[f].maxWidth=p),null!=v&&(c.gap=v),null!=m&&(c.categoryGap=m)});var r={};return a.each(i,function(t,e){r[e]={};var n=t.stacks,i=t.bandWidth,o=s(t.categoryGap,i),l=s(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-o)/(c+(c-1)*l);h=Math.max(h,0),a.each(n,function(t){var e=t.maxWidth;!t.width&&e&&h>e&&(e=Math.min(e,u),u-=e,t.width=e,c--)}),h=(u-o)/(c+(c-1)*l),h=Math.max(h,0);var f,d=0;a.each(n,function(t){t.width||(t.width=h),f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p=-d/2;a.each(n,function(t,n){r[e][n]=r[e][n]||{offset:p,width:t.width},p+=t.width*(1+l)})}),r}function r(t,r){var o=i(a[je](r.getSeriesByType(t),function(t){return!r.isSeriesFiltered(t)&&t[zn]&&t[zn].type===Qe})),s={},l={};r.eachSeriesByType(t,function(t){var i=t[Dn](),r=t[zn],a=r.getBaseAxis(),u=e(t),c=o[n(a)][u],h=c.offset,f=c.width,d=r.getOtherAxis(a),p=t.get("barMinHeight")||0,v=a.onZero?d.toGlobalCoord(d[ce](0)):d.getGlobalExtent()[0],m=r.dataToPoints(i,!0);s[u]=s[u]||[],l[u]=l[u]||[],i.setLayout({offset:h,size:f}),i.each(d.dim,function(t,e){if(!isNaN(t)){s[u][e]||(s[u][e]={p:v,n:v},l[u][e]={p:v,n:v});var n,r,a,o,c=t>=0?"p":"n",g=m[e],y=s[u][e][c],x=l[u][e][c];d.isHorizontal()?(n=y,r=g[1]+h,a=g[0]-x,o=f,l[u][e][c]+=a,Math.abs(a)<p&&(a=(0>a?-1:1)*p),s[u][e][c]+=a):(n=g[0]+h,r=y,a=f,o=g[1]-x,l[u][e][c]+=o,Math.abs(o)<p&&(o=(0>=o?-1:1)*p),s[u][e][c]+=o),i.setItemLayout(e,{x:n,y:r,width:a,height:o})}},!0)},this)}var a=t(On),o=t("../util/number"),s=o[ne];return r}),e("echarts/coord/cartesian/Grid",[Rn,"exports","../../util/layout","../../coord/axisHelper",On,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e){return t.findGridModel()===e}function n(t){var e,n=t.model,i=n.getFormattedLabels(),r=n[Cn]("axisLabel.textStyle"),a=1,o=i[rn];o>40&&(a=Math.ceil(o/40));for(var s=0;o>s;s+=a)if(!t.isLabelIgnored(s)){var l=r.getTextRect(i[s]);e?e.union(l):e=l}return e}function i(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this._model=t}function r(t,e){var n=t[Ke](),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function a(t){return u.map(m,function(e){var n=t.getReferringComponents(e)[0];return n})}function o(t){return t.get(zn)===Qe}var s=t("../../util/layout"),l=t("../../coord/axisHelper"),u=t(On),c=t("./Cartesian2D"),h=t("./Axis2D"),f=u.each,d=l.ifAxisCrossZero,p=l.niceScaleExtent;t("./GridModel");var v=i[on];v.type="grid",v.getRect=function(){return this._rect},v[Pe]=function(t,e){function n(t){var e=i[t];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r&&(r.type===te||!d(r)))return!0}return!1}var i=this._axesMap;this._updateScale(t,this._model),f(i.x,function(t){p(t,t.model)}),f(i.y,function(t){p(t,t.model)
}),f(i.x,function(t){n("y")&&(t.onZero=!1)}),f(i.y,function(t){n("x")&&(t.onZero=!1)}),this[K](this._model,e)},v[K]=function(t,e){function i(){f(o,function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a[_n]],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),r(t,e?a.x:a.y)})}var a=s[mn](t[gn](),{width:e[vn](),height:e[pn]()});this._rect=a;var o=this._axesList;i(),t.get("containLabel")&&(f(o,function(t){if(!t.model.get("axisLabel.inside")){var e=n(t);if(e){var i=t.isHorizontal()?_n:"width",r=t.model.get("axisLabel.margin");a[i]-=e[i]+r,"top"===t[cn]?a.y+=e[_n]+r:"left"===t[cn]&&(a.x+=e.width+r)}}}),i())},v[he]=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},v.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}for(var i=0,r=this._coordsList;i<r[rn];i++)if(r[i][he]("x").index===t||r[i][he]("y").index===e)return r[i]},v.convertToPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian[Ne](n):i.axis?i.axis.toGlobalCoord(i.axis[ce](n)):null},v.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},v._findConvertTarget=function(t,e){var n,i,r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,l=this._coordsList;if(r)n=r[zn],u[Ze](l,n)<0&&(n=null);else if(a&&o)n=this.getCartesian(a[Q],o[Q]);else if(a)i=this[he]("x",a[Q]);else if(o)i=this[he]("y",o[Q]);else if(s){var c=s[zn];c===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},v.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},v._initCartesian=function(t,n){function i(i){return function(s,u){if(e(s,t,n)){var c=s.get(cn);"x"===i?"top"!==c&&c!==hn&&(c=hn,r[c]&&(c="top"===c?hn:"top")):"left"!==c&&"right"!==c&&(c="left",r[c]&&(c="left"===c?"right":"left")),r[c]=!0;var f=new h(i,l.createScaleByModel(s),[0,0],s.get("type"),c),d=f.type===te;f.onBand=d&&s.get("boundaryGap"),f.inverse=s.get("inverse"),f.onZero=s.get("axisLine.onZero"),s.axis=f,f.model=s,f.grid=this,f.index=u,this._axesList.push(f),a[i][u]=f,o[i]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},o={x:0,y:0};return n[J]("xAxis",i("x"),this),n[J]("yAxis",i("y"),this),o.x&&o.y?(this._axesMap=a,void f(a.x,function(t,e){f(a.y,function(n,i){var r="x"+e+"y"+i,a=new c(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(n)},this)},this)):(this._axesMap={},void(this._axesList=[]))},v._updateScale=function(t,n){function i(t,e,n){f(n.coordDimToDataDim(e.dim),function(n){e.scale.unionExtent(t[Y](n,e.scale.type!==ie))})}u.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t[$](function(r){if(o(r)){var s=a(r,t),l=s[0],u=s[1];if(!e(l,n,t)||!e(u,n,t))return;var c=this.getCartesian(l[Q],u[Q]),h=r[Dn](),f=c[he]("x"),d=c[he]("y");"list"===h.type&&(i(h,f,r),i(h,d,r))}},this)};var m=["xAxis","yAxis"];return i[tn]=function(t,e){var n=[];return t[J]("grid",function(r,a){var o=new i(r,t,e);o.name="grid_"+a,o[K](r,e),r[zn]=o,n.push(o)}),t[$](function(e){if(o(e)){var n=a(e,t),i=n[0],r=n[1],s=i.findGridModel(),l=s[zn];e[zn]=l.getCartesian(i[Q],r[Q])}}),n},i[Ve]=c[on][Ve],t("../../CoordinateSystem").register(Qe,i),i}),e("echarts/chart/heatmap/HeatmapSeries",[Rn,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),n=t("../helper/createListFromArray");return e[an]({type:"series.heatmap",getInitialData:function(t,e){return n(t.data,this,e)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}})}),e("echarts/chart/heatmap/HeatmapView",[Rn,Be,"./HeatmapLayer",On,Ee],function(t){function e(t,e,n){var i=t[1]-t[0];e=o.map(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}});var r=e[rn],a=0;return function(t){for(var i=a;r>i;i++){var o=e[i].interval;if(o[0]<=t&&t<=o[1]){a=i;break}}if(i===r)for(var i=a-1;i>=0;i--){var o=e[i].interval;if(o[0]<=t&&t<=o[1]){a=i;break}}return i>=0&&r>i&&n[i]}}function n(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function i(t){var e=t[Ve];return"lng"===e[0]&&"lat"===e[1]}var r=t(Be),a=t("./HeatmapLayer"),o=t(On);return t(Ee).extendChartView({type:"heatmap",render:function(t,e,n){var r;e[J]("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(r=e)})}),this.group[kn]();var a=t[zn];a.type===Qe?this._renderOnCartesian(a,t,n):i(a)&&this._renderOnGeo(a,t,r,n)},dispose:function(){},_renderOnCartesian:function(t,e){var n=t[he]("x"),i=t[he]("y"),a=this.group,s=n.getBandWidth(),l=i.getBandWidth(),u=e[Dn](),c="itemStyle.normal",h="itemStyle.emphasis",f=we,d=_e,p=e[Cn](c)[An](["color"]),v=e[Cn](h)[An](),m=e[Cn](we),g=e[Cn](_e);u.each(["x","y","z"],function(n,i,y,x){var _=u[Ye](x),w=t[Ne]([n,i]);if(!isNaN(y)){var b=new r.Rect({shape:{x:w[0]-s/2,y:w[1]-l/2,width:s,height:l},style:{fill:u[Se](x,"color"),opacity:u[Se](x,ln)}});u[U]&&(p=_[Cn](c)[An](["color"]),v=_[Cn](h)[An](),m=_[Cn](f),g=_[Cn](d));var M=e.getRawValue(x),S="-";M&&null!=M[2]&&(S=M[2]),m[Ue]("show")&&(r.setText(p,m),p.text=e[ye](x,Oe)||S),g[Ue]("show")&&(r.setText(v,g),v.text=e[ye](x,ge)||S),b[un](p),r[me](b,u[U]?v:o[an]({},v)),a.add(b),u[Ae](x,b)}})},_renderOnGeo:function(t,i,o,s){var l=o.targetVisuals.inRange,u=o.targetVisuals.outOfRange,c=i[Dn](),h=this._hmLayer||this._hmLayer||new a;h.blurSize=i.get("blurSize"),h.pointSize=i.get("pointSize"),h.minOpacity=i.get("minOpacity"),h.maxOpacity=i.get("maxOpacity");var f=t.getViewRect().clone(),d=t.getRoamTransform()[j];f[X](d);var p=Math.max(f.x,0),v=Math.max(f.y,0),m=Math.min(f.width+f.x,s[vn]()),g=Math.min(f[_n]+f.y,s[pn]()),y=m-p,x=g-v,_=c[fe](["lng","lat","value"],function(e,n,i){var r=t[Ne]([e,n]);return r[0]-=p,r[1]-=v,r.push(i),r}),w=o[Ke](),b="visualMap.continuous"===o.type?n(w,o[W].range):e(w,o.getPieceList(),o[W].selected);h[Pe](_,y,x,l.color.getNormalizer(),{inRange:l.color.getColorMapper(),outOfRange:u.color.getColorMapper()},b);var M=new r.Image({style:{width:y,height:x,x:p,y:v,image:h[We]},silent:!0});this.group.add(M)}})}),e("echarts/chart/map/MapSeries",[Rn,"../../data/List","../../model/Series",On,"../../data/helper/completeDimensions","../../util/format","../../component/helper/selectableMixin","../../coord/geo/geoCreator"],function(t){var e=t("../../data/List"),n=t("../../model/Series"),i=t(On),r=t("../../data/helper/completeDimensions"),a=t("../../util/format"),o=a.encodeHTML,s=a.addCommas,l=t("../../component/helper/selectableMixin"),u=t("../../coord/geo/geoCreator"),c=n[an]({type:"series.map",layoutMode:"box",needsDrawMap:!1,seriesGroup:[],init:function(t){t=this._fillOption(t,t.map),this[W]=t,c[q](this,"init",arguments),this.updateSelectedMap(t.data)},getInitialData:function(t){var n=r(["value"],t.data||[]),i=new e(n,this);return i.initData(t.data),i},mergeOption:function(t){t.data&&(t=this._fillOption(t,this[W].map)),c.superCall(this,Z,t),this.updateSelectedMap(this[W].data)},_fillOption:function(t,e){return t=i[an]({},t),t.data=u.getFilledRegions(t.data,e),t},getRawValue:function(t){return this._data.get("value",t)},getRegionModel:function(t){var e=this[Dn]();return e[Ye](e.indexOfName(t))},formatTooltip:function(t){for(var e=this[Dn](),n=s(this.getRawValue(t)),i=e[H](t),r=this.seriesGroup,a=[],l=0;l<r[rn];l++){var u=r[l].originalData.indexOfName(i);isNaN(r[l].originalData.get("value",u))||a.push(o(r[l].name))}return a.join(", ")+"<br />"+i+" : "+n},getTooltipPosition:function(t){if(null!=t){var e=this[Dn]()[H](t),n=this[zn],i=n.getRegion(e);return i&&n[Ne](i[fn])}},setZoom:function(t){this[W].zoom=t},setCenter:function(t){this[W][fn]=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"china",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215,0,0.8)"}}}});return i.mixin(c,l),c}),e("echarts/chart/map/MapView",[Rn,Be,"../../component/helper/MapDraw",Ee],function(t){var e=t(Be),n=t("../../component/helper/MapDraw");t(Ee).extendChartView({type:"map",render:function(t,e,i,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var a=this.group;if(a[kn](),r&&"geoRoam"===r.type&&r.componentType===G&&r.seriesId===t.id){var o=this._mapDraw;o&&a.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new n(i,!0);a.add(o.group),o.draw(t,e,i,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw[Le](),this._mapDraw=null;t.get("showLegendSymbol")&&e[F]("legend")&&this._renderSymbols(t,e,i)}},remove:function(){this._mapDraw&&this._mapDraw[Le](),this._mapDraw=null,this.group[kn]()},dispose:function(){this._mapDraw&&this._mapDraw[Le](),this._mapDraw=null},_renderSymbols:function(t){var n=t.originalData,i=this.group;n.each("value",function(r,a){if(!isNaN(r)){var o=n[De](a);if(o&&o.point){var s=o.point,l=o.offset,u=new e.Circle({style:{fill:t[Dn]().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:10});if(!l){var c=t.mainSeries[Dn](),h=n[H](a),f=h,d=c.indexOfName(h),p=n[Ye](a),v=p[Cn](we),m=p[Cn](_e),g=v[Cn](Tn),y=m[Cn](Tn),x=c[Ce](d);u[un]({textPosition:"bottom"});var _=function(){u[un]({text:m.get("show")?f:"",textFill:y[bn](),textFont:y[Mn]()})},w=function(){u[un]({text:v.get("show")?f:"",textFill:g[bn](),textFont:g[Mn]()})};x.on(V,_).on(N,w).on(ge,_).on(Oe,w),w()}i.add(u)}}})}})}),e("echarts/echarts",[Rn,B,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","./util/model","./util/throttle","zrender",On,"zrender/tool/color","zrender/mixin/Eventful","zrender/core/timsort","./visual/seriesColor","./preprocessor/backwardCompat","./loading/default","./data/List","./model/Model","./util/number","./util/format","zrender/core/matrix",E],function(t){function e(t){return function(e,n,i){e=e&&e[R](),ie[on][t].call(this,e,n,i)}}function n(){ie.call(this)}function i(t,e,i){function r(t,e){return t.prio-e.prio}i=i||{},typeof e===He&&(e=ke[e]),this.id,this.group,this._dom=t;var a=this._zr=Q.init(t,{renderer:i.renderer||We,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i[_n]});this._throttledZrFlush=Y.throttle(te.bind(a.flush,a),17),this._theme=te.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new w(this),this._coordSysMgr=new F,ie.call(this),this._messageCenter=new n,this._initEvents(),this[K]=te.bind(this[K],this),this._pendingActions=[],oe(ze,r),oe(Ce,r),a[Re].on("frame",this._onframe,this)}function r(t,e,n){var i,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=U.parseFinder(r,e);for(var o=0;o<a[rn];o++){var s=a[o];if(s[t]&&null!=(i=s[t](r,e,n)))return i}}function a(t,e){var n=this._model;n&&n[J]({mainType:"series",query:e},function(i){var r=this._chartsMap[i.__viewId];r&&r.__alive&&r[t](i,n,this._api,e)},this)}function o(t,e){var n=Me[t.type],i=n.actionInfo,r=i[Pe]||Pe;this[ge]=!0;var a=[t],o=!1;t.batch&&(o=!0,a=te.map(t.batch,function(e){return e=te[Ln](te[an]({},e),t),e.batch=null,e}));for(var s,l=[],u="highlight"===t.type||"downplay"===t.type,c=0;c<a[rn];c++){var h=a[c];s=n.action(h,this._model),s=s||te[an]({},h),s.type=i.event||s.type,l.push(s),u&&we[r].call(this,h)}"none"===r||u||(this[xe]?(we.prepareAndUpdate.call(this,t),this[xe]=!1):we[r].call(this,t)),s=o?{type:i.event||t.type,batch:l}:l[0],this[ge]=!1,!e&&this._messageCenter[L](s.type,s)}function s(t){for(var e=this._pendingActions;e[rn];){var n=e.shift();o.call(this,n,t)}}function l(t,e,n){var i=this._api;se(this._componentsViews,function(r){var a=r.__model;r[t](a,e,i,n),g(a,r)},this),e[$](function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,i,n),g(r,a),m(r,a)},this),v(this._zr,e)}function u(t,e){for(var n="component"===t,i=n?this._componentsViews:this._chartsViews,r=n?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<i[rn];o++)i[o].__alive=!1;e[n?J:$](function(t,o){if(n){if(t===G)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var u=Z.parseClassType(o.type),c=n?W.getClass(u.main,u.sub):X.getClass(u.sub);if(!c)return;l=new c,l.init(e,this._api),r[s]=l,i.push(l),a.add(l.group)}o.__viewId=s,l.__alive=!0,l.__id=s,l.__model=o},this);for(var o=0;o<i[rn];){var s=i[o];s.__alive?o++:(a[Le](s.group),s[P](e,this._api),i[A](o,1),delete r[s.__id])}}function c(t,e){se(Ce,function(n){n.func(t,e)})}function h(t){var e={};t[$](function(t){var n=t.get("stack"),i=t[Dn]();if(n&&"list"===i.type){var r=e[n];r&&(i.stackedOn=r),e[n]=i}})}function f(t,e){var n=this._api;se(ze,function(i){i.isLayout&&i.func(t,n,e)})}function d(t,e){var n=this._api;t.clearColorPalette(),t[$](function(t){t.clearColorPalette()}),se(ze,function(i){i.func(t,n,e)})}function p(t,e){var n=this._api;se(this._componentsViews,function(i){var r=i.__model;i.render(r,t,n,e),g(r,i)},this),se(this._chartsViews,function(t){t.__alive=!1},this),t[$](function(i){var r=this._chartsMap[i.__viewId];r.__alive=!0,r.render(i,t,n,e),r.group[xn]=!!i.get(xn),g(i,r),m(i,r)},this),v(this._zr,t),se(this._chartsViews,function(e){e.__alive||e[Le](t,n)},this)}function v(t,e){var n=t.storage,i=0;n[T](function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!x.node&&n[T](function(t){t.isGroup||(t.useHoverLayer=!0)})}function m(t,e){var n=0;e.group[T](function(t){"group"===t.type||t[re]||n++});var i=+t.get("progressive"),r=n>t.get("progressiveThreshold")&&i&&!x.node;r&&e.group[T](function(t){t.isGroup||(t.progressive=r?Math.floor(n++/i):-1,r&&t[le](!0))});var a=t.get("blendMode")||null;e.group[T](function(t){t.isGroup||t[un]("blend",a)})}function g(t,e){var n=t.get("z"),i=t.get(ae);e.group[T](function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t[ae]=i))})}function y(t){function e(t,e){for(var n=0;n<t[rn];n++){var i=t[n];i[a]=e}}var n=0,i=1,r=2,a="__connectUpdateStatus";te.each(Te,function(o,s){t._messageCenter.on(s,function(o){if(Oe[t.group]&&t[a]!==n){var s=t.makeActionFromEvent(o),l=[];te.each(De,function(e){e!==t&&e.group===t.group&&l.push(e)}),e(l,n),se(l,function(t){t[a]!==i&&t[z](s)}),e(l,r)}})})}var x=t(B),_=t("./model/Global"),w=t("./ExtensionAPI"),F=t("./CoordinateSystem"),H=t("./model/OptionManager"),Z=t("./model/Component"),q=t("./model/Series"),W=t("./view/Component"),X=t("./view/Chart"),j=t("./util/graphic"),U=t("./util/model"),Y=t("./util/throttle"),Q=t("zrender"),te=t(On),ne=t("zrender/tool/color"),ie=t("zrender/mixin/Eventful"),oe=t("zrender/core/timsort"),se=te.each,ue=1e3,ce=5e3,he=1e3,fe=2e3,de=3e3,pe=4e3,me=5e3,ge="__flagInMainProcess",ye="__hasGradientOrPatternBg",xe="__optionUpdated";n[on].on=e("on"),n[on].off=e("off"),n[on].one=e("one"),te.mixin(n,ie);var _e=i[on];_e._onframe=function(){this[xe]&&(this[ge]=!0,we.prepareAndUpdate.call(this),this[ge]=!1,this[xe]=!1)},_e.getDom=function(){return this._dom},_e.getZr=function(){return this._zr},_e.setOption=function(t,e,n){if(this[ge]=!0,!this._model||e){var i=new H(this._api),r=this._theme,a=this._model=new _(null,null,r,i);a.init(null,null,r,i)}this.__lastOnlyGraphic=!(!t||!t.graphic),te.each(t,function(t,e){"graphic"!==e&&(this.__lastOnlyGraphic=!1)},this),this._model.setOption(t,Ae),n?this[xe]=!0:(we.prepareAndUpdate.call(this),this._zr.flush(),this[xe]=!1),this[ge]=!1,s.call(this,!1)},_e.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},_e[Cn]=function(){return this._model},_e.getOption=function(){return this._model&&this._model.getOption()},_e[vn]=function(){return this._zr[vn]()},_e[pn]=function(){return this._zr[pn]()},_e.getRenderedCanvas=function(t){if(x[O]){t=t||{},t.pixelRatio=t.pixelRatio||1,t[Pn]=t[Pn]||this._model.get(Pn);var e=this._zr,n=e.storage.getDisplayList();return te.each(n,function(t){t[le](!0)}),e.painter.getRenderedCanvas(t)}},_e.getDataURL=function(t){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;se(e,function(t){n[J]({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[re]||(i.push(e),e.group[re]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return se(i,function(t){t.group[re]=!1}),a},_e.getConnectedDataURL=function(t){if(x[O]){var e=this.group,n=Math.min,i=Math.max,r=1/0;if(Oe[e]){var a=r,o=r,s=-r,l=-r,u=[],c=t&&t.pixelRatio||1;te.each(De,function(r){if(r.group===e){var c=r.getRenderedCanvas(te.clone(t)),h=r.getDom().getBoundingClientRect();a=n(h.left,a),o=n(h.top,o),s=i(h.right,s),l=i(h[hn],l),u.push({dom:c,left:h.left,top:h.top})}}),a*=c,o*=c,s*=c,l*=c;var h=s-a,f=l-o,d=te.createCanvas();d.width=h,d[_n]=f;var p=Q.init(d);return se(u,function(t){var e=new j.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});p.add(e)}),p.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},_e.convertToPixel=te.curry(r,"convertToPixel"),_e.convertFromPixel=te.curry(r,"convertFromPixel"),_e.containPixel=function(t,e){var n,i=this._model;return t=U.parseFinder(i,t),te.each(t,function(t,i){i[Ze]("Models")>=0&&te.each(t,function(t){var r=t[zn];if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n|=a.containPoint(e,t))}},this)},this),!!n},_e.getVisual=function(t,e){var n=this._model;t=U.parseFinder(n,t,{defaultMainType:"series"});var i=t.seriesModel,r=i[Dn](),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty(ve)?r.indexOfRawIndex(t[ve]):null;return null!=a?r[Se](a,e):r.getVisual(e)};var we={update:function(t){var e=this._model,n=this._api,i=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),i[tn](this._model,this._api),c.call(this,e,n),h.call(this,e),i[Pe](e,n),d.call(this,e,t),p.call(this,e,t);var a=e.get(Pn)||"transparent",o=r.painter;if(o.isSingleCanvas&&o.isSingleCanvas())r.configLayer(0,{clearColor:a});else{if(!x[O]){var s=ne.parse(a);a=ne.stringify(s,"rgb"),0===s[3]&&(a="transparent")}a[D]||a.image?(r.configLayer(0,{clearColor:a}),this[ye]=!0,this._dom.style.background="transparent"):(this[ye]&&r.configLayer(0,{clearColor:null}),this[ye]=!1,this._dom.style.background=a)}}},updateView:function(t){var e=this._model;e&&(e[$](function(t){t[Dn]().clearAllVisual()}),d.call(this,e,t),l.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e[$](function(t){t[Dn]().clearAllVisual()}),d.call(this,e,t),l.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(f.call(this,e,t),l.call(this,I,e,t))},highlight:function(t){a.call(this,"highlight",t)},downplay:function(t){a.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;u.call(this,"component",e),u.call(this,"chart",e),this.__lastOnlyGraphic?(se(this._componentsViews,function(n){var i=n.__model;i&&"graphic"===i.mainType&&(n.render(i,e,this._api,t),g(i,n))},this),this.__lastOnlyGraphic=!1):we[Pe].call(this,t)}};_e[K]=function(t){this[ge]=!0,this._zr[K](t);var e=this._model&&this._model.resetOption("media");we[e?"prepareAndUpdate":Pe].call(this),this._loadingFX&&this._loadingFX[K](),this[ge]=!1,s.call(this)},_e.showLoading=function(t,e){if(te[k](t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Ie[t]){var n=Ie[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},_e.hideLoading=function(){this._loadingFX&&this._zr[Le](this._loadingFX),this._loadingFX=null},_e.makeActionFromEvent=function(t){var e=te[an]({},t);return e.type=Te[t.type],e},_e[z]=function(t,e){if(te[k](e)||(e={silent:!!e}),Me[t.type]){if(this[ge])return void this._pendingActions.push(t);o.call(this,t,e[xn]),e.flush?this._zr.flush(!0):e.flush!==!1&&x.browser.weChat&&this._throttledZrFlush(),s.call(this,e[xn])}},_e.on=e("on"),_e.off=e("off"),_e.one=e("one");var be=["click","dblclick",V,N,C,"mousedown","mouseup","globalout","contextmenu"];_e._initEvents=function(){se(be,function(t){this._zr.on(t,function(e){var n,i=this[Cn](),r=e[yn];if("globalout"===t)n={};else if(r&&null!=r[ve]){var a=r.dataModel||i.getSeriesByIndex(r[ee]);n=a&&a[$e](r[ve],r.dataType)||{}}else r&&r.eventData&&(n=te[an]({},r.eventData));n&&(n.event=e,n.type=t,this[L](t,n))},this)},this),se(Te,function(t,e){this._messageCenter.on(e,function(t){this[L](e,t)},this)},this)},_e.isDisposed=function(){return this._disposed},_e.clear=function(){this.setOption({series:[]},!0)},_e[P]=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;se(this._componentsViews,function(n){n[P](e,t)}),se(this._chartsViews,function(n){n[P](e,t)}),this._zr[P](),delete De[this.id]}},te.mixin(i,ie);var Me=[],Te={},Ce=[],Ae=[],ze=[],ke={},Ie={},De={},Oe={},Ee=new Date-0,Be=new Date-0,Ne="_echarts_instance_",Ve={version:"3.3.2",dependencies:{zrender:"3.2.2"}};Ve.init=function(t,e,n){var r=new i(t,e,n);return r.id="ec_"+Ee++,De[r.id]=r,t.setAttribute&&t.setAttribute(Ne,r.id),y(r),r},Ve.connect=function(t){if(te[M](t)){var e=t;t=null,te.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Be++,te.each(e,function(e){e.group=t})}return Oe[t]=!0,t},Ve.disConnect=function(t){Oe[t]=!1},Ve[P]=function(t){te.isDom(t)?t=Ve.getInstanceByDom(t):typeof t===He&&(t=De[t]),t instanceof i&&!t.isDisposed()&&t[P]()},Ve.getInstanceByDom=function(t){var e=t.getAttribute(Ne);return De[e]},Ve.getInstanceById=function(t){return De[t]},Ve.registerTheme=function(t,e){ke[t]=e},Ve.registerPreprocessor=function(t){Ae.push(t)},Ve.registerProcessor=function(t,e){typeof t===Je&&(e=t,t=ue),Ce.push({prio:t,func:e})},Ve[sn]=function(t,e,n){typeof e===Je&&(n=e,e="");var i=te[k](t)?t.type:[t,t={event:e}][0];t.event=(t.event||i)[R](),e=t.event,Me[i]||(Me[i]={action:n,actionInfo:t}),Te[e]=i},Ve.registerCoordinateSystem=function(t,e){F.register(t,e)},Ve.registerLayout=function(t,e){typeof t===Je&&(e=t,t=he),ze.push({prio:t,func:e,isLayout:!0})},Ve.registerVisual=function(t,e){typeof t===Je&&(e=t,t=de),ze.push({prio:t,func:e})},Ve.registerLoading=function(t,e){Ie[t]=e};var Fe=Z.parseClassType;return Ve.extendComponentModel=function(t,e){var n=Z;if(e){var i=Fe(e);n=Z.getClass(i.main,i.sub,!0)}return n[an](t)},Ve[In]=function(t,e){var n=W;if(e){var i=Fe(e);n=W.getClass(i.main,i.sub,!0)}return n[an](t)},Ve.extendSeriesModel=function(t,e){var n=q;if(e){e="series."+e[S]("series.","");var i=Fe(e);n=Z.getClass(i.main,i.sub,!0)}return n[an](t)},Ve.extendChartView=function(t,e){var n=X;if(e){e[S]("series.","");var i=Fe(e);n=X.getClass(i.main,!0)}return n[an](t)},Ve.setCanvasCreator=function(t){te.createCanvas=t},Ve.registerVisual(fe,t("./visual/seriesColor")),Ve.registerPreprocessor(t("./preprocessor/backwardCompat")),Ve.registerLoading("default",t("./loading/default")),Ve[sn]({type:"highlight",event:"highlight",update:"highlight"},te.noop),Ve[sn]({type:"downplay",event:"downplay",update:"downplay"},te.noop),Ve.List=t("./data/List"),Ve.Model=t("./model/Model"),Ve.graphic=t("./util/graphic"),Ve[Ge]=t("./util/number"),Ve.format=t("./util/format"),Ve.matrix=t("zrender/core/matrix"),Ve.vector=t(E),Ve.color=t("zrender/tool/color"),Ve.util={},se(["map","each",je,Ze,b,"reduce",je,"bind","curry",M,"isString",k,"isFunction",an,Ln,"clone"],function(t){Ve.util[t]=te[t]}),Ve.PRIORITY={PROCESSOR:{FILTER:ue,STATISTIC:ce},VISUAL:{LAYOUT:he,GLOBAL:fe,CHART:de,COMPONENT:pe,BRUSH:me}},Ve}),e("echarts/action/geoRoam",[Rn,On,"./roamHelper","../echarts"],function(t){var e=t(On),n=t("./roamHelper"),i=t("../echarts");i[sn]({type:"geoRoam",event:"geoRoam",update:"updateLayout"},function(t,i){var r=t.componentType||G;i[J]({mainType:r,query:t},function(i){var a=i[zn];if("geo"===a.type){var o=n.updateCenterAndZoom(a,t,i.get("scaleLimit"));i.setCenter&&i.setCenter(o[fn]),i.setZoom&&i.setZoom(o.zoom),r===G&&e.each(i.seriesGroup,function(t){t.setCenter(o[fn]),t.setZoom(o.zoom)})}})})}),e("echarts/coord/geo/geoCreator",[Rn,"./Geo","../../util/layout",On,w,Ee],function(t){function e(t,e){var n,i=this[wn](),a=t.get("layoutCenter"),s=t.get("layoutSize"),l=e[vn](),u=e[pn](),c=t.get("aspectScale")||.75,h=i.width/i[_n]*c,f=!1;a&&s&&(a=[o[ne](a[0],l),o[ne](a[1],u)],s=o[ne](s,Math.min(l,u)),isNaN(a[0])||isNaN(a[1])||isNaN(s)||(f=!0));var d;if(f){var d={};h>1?(d.width=s,d[_n]=s/h):(d[_n]=s,d.width=s*h),d.y=a[1]-d[_n]/2,d.x=a[0]-d.width/2}else n=t[gn](),n.aspect=h,d=r[mn](n,{width:l,height:u});this.setViewRect(d.x,d.y,d.width,d[_n]),this.setCenter(t.get(fn)),this.setZoom(t.get("zoom"))}function n(t,e){a.each(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}var i=t("./Geo"),r=t("../../util/layout"),a=t(On),o=t(w),s={},l={dimensions:i[on][Ve],create:function(t,r){var o=[];t[J]("geo",function(t,a){var l=t.get("map"),u=s[l],c=new i(l+a,l,u&&u.geoJson,u&&u.specialAreas,t.get("nameMap"));c.zoomLimit=t.get("scaleLimit"),o.push(c),n(c,t),t[zn]=c,c.model=t,c[K]=e,c[K](t,r)}),t[$](function(t){var e=t.get(zn);if("geo"===e){var n=t.get("geoIndex")||0;t[zn]=o[n]}});var l={};return t.eachSeriesByType("map",function(t){var e=t.get("map");l[e]=l[e]||[],l[e].push(t)}),a.each(l,function(t,l){var u=s[l],c=a.map(t,function(t){return t.get("nameMap")}),h=new i(l,l,u&&u.geoJson,u&&u.specialAreas,a.mergeAll(c));h.zoomLimit=a[xe].apply(null,a.map(t,function(t){return t.get("scaleLimit")})),o.push(h),h[K]=e,h[K](t[0],r),a.each(t,function(t){t[zn]=h,n(h,t)})}),o},registerMap:function(t,e,n){e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),typeof e===He&&(e=typeof JSON!==_&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),s[t]={geoJson:e,specialAreas:n}},getMap:function(t){return s[t]},getFilledRegions:function(t,e){var n=(t||[]).slice(),i=l.getMap(e),r=i&&i.geoJson;if(!r)return t;for(var a={},o=r.features,s=0;s<n[rn];s++)a[n[s].name]=n[s];for(var s=0;s<o[rn];s++){var u=o[s].properties.name;a[u]||n.push({name:u})}return n}},u=t(Ee);return u.registerMap=l.registerMap,u.getMap=l.getMap,u.loadMap=function(){},u.registerCoordinateSystem("geo",l),l}),e("echarts/chart/map/mapVisual",[Rn],function(){return function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),n=t[Cn]("itemStyle.normal"),i=n.get("areaColor"),r=n.get("color")||e[t[ee]%e[rn]];t[Dn]().setVisual({areaColor:i,color:r})})}}),e("echarts/chart/map/mapDataStatistic",[Rn,On],function(t){function e(t,e){for(var n={},i=["value"],r=0;r<t[rn];r++)t[r].each(i,function(e,i){var a=t[r][H](i);n[a]=n[a]||[],isNaN(e)||n[a].push(e)});return t[0].map(i,function(i,r){for(var a=t[0][H](r),o=0,s=1/0,l=-1/0,u=n[a][rn],c=0;u>c;c++)s=Math.min(s,n[a][c]),l=Math.max(l,n[a][c]),o+=n[a][c];var h;return h="min"===e?s:"max"===e?l:"average"===e?o/u:o,0===u?0/0:h})}var n=t(On);return function(t){var i={};t.eachSeriesByType("map",function(t){var e=t.get("map");i[e]=i[e]||[],i[e].push(t)}),n.each(i,function(t){for(var i=e(n.map(t,function(t){return t[Dn]()}),t[0].get("mapValueCalculation")),r=0;r<t[rn];r++)t[r].originalData=t[r][Dn]();for(var r=0;r<t[rn];r++)t[r].seriesGroup=t,t[r].needsDrawMap=0===r,t[r].setData(i.cloneShallow()),t[r].mainSeries=t[0]})}}),e("echarts/chart/map/mapSymbolLayout",[Rn,On],function(t){var e=t(On);return function(t){var n={};t.eachSeriesByType("map",function(i){var r=i.get("map");if(!n[r]){var a={};e.each(i.seriesGroup,function(e){var n=e[zn],i=e.originalData;e.get("showLegendSymbol")&&t[F]("legend")&&i.each("value",function(t,e){var r=i[H](e),o=n.getRegion(r);if(o&&!isNaN(t)){var s=a[r]||0,l=n[Ne](o[fn]);a[r]=s+1,i.setItemLayout(e,{point:l,offset:s})}})});var o=i[Dn]();o.each(function(t){var e=o[H](t),n=o[De](t)||{};n.showLabel=!a[e],o.setItemLayout(t,n)}),n[r]=!0}})}}),e("echarts/chart/map/backwardCompat",[Rn,On],function(t){var e=t(On);return function(t){var n=[];e.each(t[G],function(t){"map"===t.type&&n.push(t)}),e.each(n,function(t){t.map=t.map||t.mapType,e[Ln](t,t.mapLocation)})}}),e("echarts/action/createDataSelectAction",[Rn,"../echarts",On],function(t){var e=t("../echarts"),n=t(On);return function(t,i){n.each(i,function(n){n[Pe]="updateView",e[sn](n,function(e,i){var r={};return i[J]({mainType:"series",subType:t,query:e},function(t){t[n.method]&&t[n.method](e.name);var i=t[Dn]();i.each(function(e){var n=i[H](e);r[n]=t.isSelected(n)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/chart/pie/PieSeries",[Rn,"../../data/List",On,pe,"../../data/helper/completeDimensions","../../component/helper/selectableMixin",Ee],function(t){var e=t("../../data/List"),n=t(On),i=t(pe),r=t("../../data/helper/completeDimensions"),a=t("../../component/helper/selectableMixin"),o=t(Ee).extendSeriesModel({type:"series.pie",init:function(t){o[q](this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){o.superCall(this,Z,t),this.updateSelectedMap(this[W].data)},getInitialData:function(t){var n=r(["value"],t.data),i=new e(n,this);return i.initData(t.data),i},getDataParams:function(t){var e=this._data,n=o.superCall(this,$e,t),i=e.getSum("value");return n.percent=i?+(e.get("value",t)/i*100).toFixed(2):0,n.$vars.push("percent"),n},_defaultLabelLine:function(t){i.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[Oe],n=t.labelLine[ge];e.show=e.show&&t.label[Oe].show,n.show=n.show&&t.label[ge].show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationEasing:"cubicOut",data:[]}});return n.mixin(o,a),o}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var n=e.findComponents({mainType:"legend"});n&&n[rn]&&e.eachSeriesByType(t,function(t){var e=t[Dn]();e.filterSelf(function(t){for(var i=e[H](t),r=0;r<n[rn];r++)if(!n[r].isSelected(i))return!1;return!0},this)},this)}}),e("echarts/visual/dataColor",[Rn],function(){return function(t,e){var n={};e.eachRawSeriesByType(t,function(t){var i=t.getRawData(),r={};if(!e.isSeriesFiltered(t)){var a=t[Dn]();a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),i.each(function(e){var o=i[Ye](e),s=r[e],l=null!=s&&a[Se](s,"color",!0);if(l)i.setItemVisual(e,"color",l);else{var u=o.get("itemStyle.normal.color")||t.getColorFromPalette(i[H](e),n);i.setItemVisual(e,"color",u),null!=s&&a.setItemVisual(s,"color",u)}})}})}}),e("echarts/chart/pie/pieLayout",[Rn,w,"./labelLayout",On],function(t){var e=t(w),n=e[ne],i=t("./labelLayout"),r=t(On),a=2*Math.PI,o=Math.PI/180;return function(t,s,l){s.eachSeriesByType(t,function(t){var s=t.get(fn),u=t.get(de);r[M](u)||(u=[0,u]),r[M](s)||(s=[s,s]);var c=l[vn](),h=l[pn](),f=Math.min(c,h),d=n(s[0],c),p=n(s[1],h),v=n(u[0],f/2),m=n(u[1],f/2),g=t[Dn](),y=-t.get("startAngle")*o,x=t.get("minAngle")*o,_=g.getSum("value"),w=Math.PI/(_||g.count())*2,b=t.get("clockwise"),S=t.get("roseType"),T=g[Y]("value");T[0]=0;var C=a,A=0,P=y,L=b?1:-1;if(g.each("value",function(t,n){var i;i="area"!==S?0===_?w:t*w:a/(g.count()||1),x>i?(i=x,C-=x):A+=t;var r=P+L*i;g.setItemLayout(n,{angle:i,startAngle:P,endAngle:r,clockwise:b,cx:d,cy:p,r0:v,r:S?e.linearMap(t,T,[v,m]):m}),P=r},!0),a>C)if(.001>=C){var z=a/g.count();g.each(function(t){var e=g[De](t);e.startAngle=y+L*t*z,e.endAngle=y+L*(t+1)*z})}else w=C/A,P=y,g.each("value",function(t,e){var n=g[De](e),i=n.angle===x?x:t*w;n.startAngle=P,n.endAngle=P+L*i,P+=L*i});i(t,m,c,h)})}}),e("echarts/chart/pie/PieView",[Rn,Be,On,"../../view/Chart"],function(t){function e(t,e,i,r){var a=e[Dn](),o=this[ve],s=a[H](o),l=e.get("selectedOffset");r[z]({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){n(a[Ce](t),a[De](t),e.isSelected(a[H](t)),l,i)})}function n(t,e,n,i,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=n?i:0,u=[o*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr(cn,u)}function i(t,e){function n(){o[re]=o.hoverIgnore,s[re]=s.hoverIgnore
}function i(){o[re]=o.normalIgnore,s[re]=s.normalIgnore}a.Group.call(this);var r=new a.Sector({z2:2}),o=new a.Polyline,s=new a.Text;this.add(r),this.add(o),this.add(s),this[ue](t,e,!0),this.on(ge,n).on(Oe,i).on(V,n).on(N,i)}function r(t,e,n,i,r){var a=i[Cn](Tn),s=r===x||"inner"===r;return{fill:a[bn]()||(s?"#fff":t[Se](e,"color")),opacity:t[Se](e,ln),textFont:a[Mn](),text:o[xe](t[oe][ye](e,n),t[H](e))}}var a=t(Be),o=t(On),s=i[on];s[ue]=function(t,e,i){function r(){l[le](!0),l.animateTo({shape:{r:h.r+10}},300,"elasticOut")}function s(){l[le](!0),l.animateTo({shape:{r:h.r}},300,"elasticOut")}var l=this[y](0),u=t[oe],c=t[Ye](e),h=t[De](e),f=o[an]({},h);f.label=null,i?(l[Me](f),l.shape.endAngle=h.startAngle,a[Ie](l,{shape:{endAngle:h.endAngle}},u,e)):a[Ie](l,{shape:f},u,e);var d=c[Cn]("itemStyle"),p=t[Se](e,"color");l[be](o[Ln]({lineJoin:"bevel",fill:p},d[Cn](Oe)[An]())),l[g]=d[Cn](ge)[An](),n(this,t[De](e),c.get("selected"),u.get("selectedOffset"),u.get(Re)),l.off(V).off(N).off(ge).off(Oe),c.get("hoverAnimation")&&u.ifEnableAnimation()&&l.on(V,r).on(N,s).on(ge,r).on(Oe,s),this._updateLabel(t,e),a[me](this)},s._updateLabel=function(t,e){var n=this[y](1),i=this[y](2),o=t[oe],s=t[Ye](e),l=t[De](e),u=l.label,c=t[Se](e,"color");a[Ie](n,{shape:{points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]}},o,e),a[Ie](i,{style:{x:u.x,y:u.y}},o,e),i.attr({style:{textVerticalAlign:u.verticalAlign,textAlign:u[Sn],textFont:u.font},rotation:u[m],origin:[u.x,u.y],z2:10});var h=s[Cn](we),f=s[Cn](_e),d=s[Cn]("labelLine.normal"),p=s[Cn]("labelLine.emphasis"),x=h.get(cn)||f.get(cn);i[un](r(t,e,Oe,h,x)),i[re]=i.normalIgnore=!h.get("show"),i.hoverIgnore=!f.get("show"),n[re]=n.normalIgnore=!d.get("show"),n.hoverIgnore=!p.get("show"),n[un]({stroke:c,opacity:t[Se](e,ln)}),n[un](d[Cn](v)[se]()),i[g]=r(t,e,ge,f,x),n[g]=p[Cn](v)[se]();var _=d.get("smooth");_&&_===!0&&(_=.4),n[Me]({smooth:_})},o[b](i,a.Group);var l=t("../../view/Chart")[an]({type:"pie",init:function(){var t=new a.Group;this._sectorGroup=t},render:function(t,n,r,a){if(!a||a.from!==this.uid){var s=t[Dn](),l=this._data,u=this.group,c=n.get(Re),h=!l,f=o.curry(e,this.uid,t,c,r),d=t.get("selectedMode");if(s.diff(l).add(function(t){var e=new i(s,t);h&&e.eachChild(function(t){t[le](!0)}),d&&e.on("click",f),s[Ae](t,e),u.add(e)})[Pe](function(t,e){var n=l[Ce](e);n[ue](s,t),n.off("click"),d&&n.on("click",f),u.add(n),s[Ae](t,n)})[Le](function(t){var e=l[Ce](t);u[Le](e)})[ze](),c&&h&&s.count()>0){var p=s[De](0),v=Math.max(r[vn](),r[pn]())/2,m=o.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(p.cx,p.cy,v,p.startAngle,p.clockwise,m,t))}this._data=s}},dispose:function(){},_createClipPath:function(t,e,n,i,r,o,s){var l=new a.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return a[ke](l,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},s,o),l},containPoint:function(t,e){var n=e[Dn](),i=n[De](0);if(i){var r=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}}});return l}),e("echarts/chart/lines/LinesSeries",[Rn,"../../model/Series","../../data/List",On,"../../CoordinateSystem"],function(t){function e(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=r.map(e,function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),r.mergeAll([n,t[0],t[1]])}))}var n=t("../../model/Series"),i=t("../../data/List"),r=t(On),a=(t("../../CoordinateSystem"),n[an]({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.normal.color",init:function(t){e(t),a[q](this,"init",arguments)},mergeOption:function(t){e(t),a[q](this,Z,arguments)},getInitialData:function(t){var e=new i(["value"],this);return e[U]=!1,e.initData(t.data,[],function(t,n,i,r){if(t instanceof Array)return 0/0;e[U]=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0}),e},formatTooltip:function(t){var e=this[Dn](),n=e[Ye](t),i=n.get("name");if(i)return i;var r=n.get("fromName"),a=n.get("toName");return r+" > "+a},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}}))}),e("echarts/chart/lines/LinesView",[Rn,"../helper/LineDraw","../helper/EffectLine","../helper/Line","../helper/Polyline","../helper/EffectPolyline","../helper/LargeLineDraw",Ee],function(t){var e=t("../helper/LineDraw"),n=t("../helper/EffectLine"),i=t("../helper/Line"),r=t("../helper/Polyline"),a=t("../helper/EffectPolyline"),o=t("../helper/LargeLineDraw");t(Ee).extendChartView({type:"lines",init:function(){},render:function(t,s,l){var u=t[Dn](),c=this._lineDraw,h=t.get("effect.show"),f=t.get("polyline"),d=t.get("large")&&u.count()>=t.get("largeThreshold");(h!==this._hasEffet||f!==this._isPolyline||d!==this._isLarge)&&(c&&c[Le](),c=this._lineDraw=d?new o:new e(f?h?a:r:h?n:i),this._hasEffet=h,this._isPolyline=f,this._isLarge=d);var p=t.get(ae),v=t.get("effect.trailLength"),m=l.getZr();if(m.painter.getLayer(p).clear(!0),null!=this._lastZlevel&&m.configLayer(this._lastZlevel,{motionBlur:!1}),h&&v){m.configLayer(p,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(v/10+.9,1),0)})}this.group.add(c.group),c[ue](u),this._lastZlevel=p},updateLayout:function(t,e,n){this._lineDraw[I](t);var i=n.getZr();i.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw[Le](e,!0)},dispose:function(){}})}),e("echarts/chart/lines/linesLayout",[Rn],function(){return function(t){t.eachSeriesByType("lines",function(t){var e=t[zn],n=t[Dn]();n.each(function(i){var r=n[Ye](i),a=r[W]instanceof Array?r[W]:r.get("coords"),o=[];if(t.get("polyline"))for(var s=0;s<a[rn];s++)o.push(e[Ne](a[s]));else{o[0]=e[Ne](a[0]),o[1]=e[Ne](a[1]);var l=r.get("lineStyle.normal.curveness");+l&&(o[2]=[(o[0][0]+o[1][0])/2-(o[0][1]-o[1][1])*l,(o[0][1]+o[1][1])/2-(o[1][0]-o[0][0])*l])}n.setItemLayout(i,o)})})}}),e("echarts/chart/gauge/GaugeSeries",[Rn,"../../data/List","../../model/Series",On],function(t){var e=t("../../data/List"),n=t("../../model/Series"),i=t(On),r=n[an]({type:"series.gauge",getInitialData:function(t){var n=new e(["value"],this),r=t.data||[];return i[M](r)||(r=[r]),n.initData(r),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,textStyle:{color:"auto"}},pointer:{show:!0,length:"80%",width:8},itemStyle:{normal:{color:"auto"}},title:{show:!0,offsetCenter:[0,"-40%"],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:[0,"40%"],textStyle:{color:"auto",fontSize:30}}}});return r}),e("echarts/chart/parallel/ParallelSeries",[Rn,"../../data/List",On,"../../model/Series","../../data/helper/completeDimensions"],function(t){function e(t,e,i){var r=t.get("data"),o=n(e);r&&r[rn]&&a.each(i,function(t){if(t){var e=a[Ze](r,t[o]);t[o]=e>=0?e:0/0}})}function n(t){return+t[S]("dim","")}function i(t,e){var i=0;a.each(t,function(t){var e=n(t);e>i&&(i=e)});var r=e[0];r&&r[rn]-1>i&&(i=r[rn]-1);for(var o=[],s=0;i>=s;s++)o.push("dim"+s);return o}var r=t("../../data/List"),a=t(On),o=t("../../model/Series"),s=t("../../data/helper/completeDimensions");return o[an]({type:"series.parallel",dependencies:["parallel"],getInitialData:function(t,n){var o=n[F]("parallel",this.get("parallelIndex")),l=o.parallelAxisIndex,u=t.data,c=o[Ve],h=i(c,u),f=a.map(h,function(t,i){var r=a[Ze](c,t),o=r>=0&&n[F]("parallelAxis",l[r]);return o&&o.get("type")===te?(e(o,t,u),{name:t,type:"ordinal"}):0>r&&s.guessOrdinal(u,i)?{name:t,type:"ordinal"}:t}),d=new r(f,this);return d.initData(u),this[W].progressive&&(this[W][Re]=!1),d},getRawIndicesByActiveState:function(t){var e=this[zn],n=this[Dn](),i=[];return e.eachActiveState(n,function(e,r){t===e&&i.push(n.getRawIndex(r))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}})}),e("echarts/component/parallel",[Rn,"../coord/parallel/parallelCreator","../coord/parallel/ParallelModel","./parallelAxis","../echarts",On,"../coord/parallel/parallelPreprocessor"],function(t){t("../coord/parallel/parallelCreator"),t("../coord/parallel/ParallelModel"),t("./parallelAxis");var e=t("../echarts"),n=t(On),i=5;e[In]({type:"parallel",render:function(t,e,r){var a=r.getZr();if(!this.__onMouseDown){var o;a.on("mousedown",this.__onMouseDown=function(t){o=[t.offsetX,t.offsetY]}),a.on("mouseup",this.__onMouseUp=function(e){var a=[e.offsetX,e.offsetY],s=Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2);if(t.get("axisExpandable")&&!(s>i)){var l=t[zn],u=l.findClosestAxisDim(a);if(u){var c=n[Ze](l[Ve],u);r[z]({type:"parallelAxisExpand",axisExpandCenter:c})}}})}},dispose:function(t,e){e.getZr().off(this.__onMouseDown),e.getZr().off(this.__onMouseUp)}}),e.registerPreprocessor(t("../coord/parallel/parallelPreprocessor"))}),e("echarts/chart/parallel/ParallelView",[Rn,Be,On,"../../view/Chart"],function(t){function e(t,e,n){var i=t.model,r=t.getRect(),a=new o.Rect({shape:{x:r.x,y:r.y,width:r.width,height:r[_n]}}),s=i.get("layout")===p?"width":_n;return a[Me](s,0),o[ke](a,{shape:{width:r.width,height:r[_n]}},e,n),a}function n(t,e,n,i){for(var r=[],o=0;o<n[rn];o++){var s=n[o],l=t.get(s,e);a(l,i[he](s).type)||r.push(i[Ne](l,s))}return r}function i(t,e,i,r,a){var s=n(t,i,r,a),l=new o.Polyline({shape:{points:s},silent:!0,z2:10});e.add(l),t[Ae](i,l)}function r(t,e){var n=t[oe][Cn]("lineStyle.normal"),i=n[se]();t[Te](function(r,a){if(t[U]){var o=t[Ye](a),l=o[Cn]("lineStyle.normal",n);i=l[se]()}r[be](s[an](i,{fill:null,stroke:t[Se](a,"color"),opacity:t[Se](a,ln)})),r.shape.smooth=e})}function a(t,e){return e===te?null==t:null==t||isNaN(t)}var o=t(Be),s=t(On),l=.3,u=t("../../view/Chart")[an]({type:"parallel",init:function(){this._dataGroup=new o.Group,this.group.add(this._dataGroup),this._data},render:function(t){this._renderForNormal(t)},dispose:function(){},_renderForNormal:function(t){function a(t){i(h,c,t,p,d,null,m)}function s(e,i){var r=f[Ce](i),a=n(h,e,p,d);h[Ae](e,r),o[Ie](r,{shape:{points:a}},t,e)}function u(t){var e=f[Ce](t);c[Le](e)}var c=this._dataGroup,h=t[Dn](),f=this._data,d=t[zn],p=d[Ve],v=t[W],m=v.smooth?l:null;if(h.diff(f).add(a)[Pe](s)[Le](u)[ze](),r(h,m),!this._data){var g=e(d,t,function(){setTimeout(function(){c.removeClipPath()})});c.setClipPath(g)}this._data=h},remove:function(){this._dataGroup&&this._dataGroup[kn](),this._data=null}});return u}),e("echarts/chart/parallel/parallelVisual",[Rn],function(){return function(t){t.eachSeriesByType("parallel",function(e){var n=e[Cn]("itemStyle.normal"),i=e[Cn]("lineStyle.normal"),r=t.get("color"),a=i.get("color")||n.get("color")||r[e[ee]%r[rn]],o=e.get("inactiveOpacity"),s=e.get("activeOpacity"),l=e[Cn]("lineStyle.normal")[se](),u=e[zn],c=e[Dn](),h={normal:l[ln],active:s,inactive:o};u.eachActiveState(c,function(t,e){c.setItemVisual(e,ln,h[t])}),c.setVisual("color",a)})}}),e("echarts/chart/gauge/GaugeView",[Rn,"./PointerPath",Be,w,"../../view/Chart"],function(t){function e(t,e){var n=t.get(fn),i=e[vn](),r=e[pn](),a=Math.min(i,r),s=o(n[0],e[vn]()),l=o(n[1],e[pn]()),u=o(t.get(de),a/2);return{cx:s,cy:l,r:u}}function n(t,e){return e&&(typeof e===He?t=e[S]("{value}",null!=t?t:""):typeof e===Je&&(t=e(t))),t}var i=t("./PointerPath"),r=t(Be),a=t(w),o=a[ne],s=2*Math.PI,l=t("../../view/Chart")[an]({type:"gauge",render:function(t,n,i){this.group[kn]();var r=t.get("axisLine.lineStyle.color"),a=e(t,i);this._renderMain(t,n,i,r,a)},dispose:function(){},_renderMain:function(t,e,n,i,a){for(var o=this.group,l=t[Cn]("axisLine"),u=l[Cn](v),c=t.get("clockwise"),h=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,d=(f-h)%s,p=h,m=u.get("width"),g=0;g<i[rn];g++){var y=Math.min(Math.max(i[g][0],0),1),f=h+d*y,x=new r.Sector({shape:{startAngle:p,endAngle:f,cx:a.cx,cy:a.cy,clockwise:c,r0:a.r-m,r:a.r},silent:!0});x[un]({fill:i[g][1]}),x[un](u[se](["color","borderWidth","borderColor"])),o.add(x),p=f}var _=function(t){if(0>=t)return i[0][1];for(var e=0;e<i[rn];e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};if(!c){var w=h;h=f,f=w}this._renderTicks(t,e,n,_,a,h,f,c),this._renderPointer(t,e,n,_,a,h,f,c),this._renderTitle(t,e,n,_,a),this._renderDetail(t,e,n,_,a)},_renderTicks:function(t,e,i,s,l,u,c){for(var h=this.group,f=l.cx,p=l.cy,m=l.r,g=t.get("min"),y=t.get("max"),x=t[Cn]("splitLine"),_=t[Cn]("axisTick"),w=t[Cn]("axisLabel"),b=t.get("splitNumber"),M=_.get("splitNumber"),S=o(x.get(rn),m),T=o(_.get(rn),m),C=u,A=(c-u)/b,P=A/M,L=x[Cn](v)[se](),z=_[Cn](v)[se](),k=w[Cn](Tn),I=0;b>=I;I++){var D=Math.cos(C),O=Math.sin(C);if(x.get("show")){var R=new r.Line({shape:{x1:D*m+f,y1:O*m+p,x2:D*(m-S)+f,y2:O*(m-S)+p},style:L,silent:!0});"auto"===L[d]&&R[un]({stroke:s(I/b)}),h.add(R)}if(w.get("show")){var E=n(a.round(I/b*(y-g)+g),w.get("formatter")),B=w.get("distance"),N=new r.Text({style:{text:E,x:D*(m-S-B)+f,y:O*(m-S-B)+p,fill:k[bn](),textFont:k[Mn](),textVerticalAlign:-.4>O?"top":O>.4?hn:dn,textAlign:-.4>D?"left":D>.4?"right":fn},silent:!0});"auto"===N.style.fill&&N[un]({fill:s(I/b)}),h.add(N)}if(_.get("show")&&I!==b){for(var V=0;M>=V;V++){var D=Math.cos(C),O=Math.sin(C),F=new r.Line({shape:{x1:D*m+f,y1:O*m+p,x2:D*(m-T)+f,y2:O*(m-T)+p},silent:!0,style:z});"auto"===z[d]&&F[un]({stroke:s((I+V/M)/b)}),h.add(F),C+=P}C-=P}else C+=A}},_renderPointer:function(t,e,n,s,l,u,c){var h=[+t.get("min"),+t.get("max")],f=[u,c],d=t[Dn](),p=this._data,v=this.group;d.diff(p).add(function(e){var n=new i({shape:{angle:u}});r[Ie](n,{shape:{angle:a.linearMap(d.get("value",e),h,f,!0)}},t),v.add(n),d[Ae](e,n)})[Pe](function(e,n){var i=p[Ce](n);r[Ie](i,{shape:{angle:a.linearMap(d.get("value",e),h,f,!0)}},t),v.add(i),d[Ae](e,i)})[Le](function(t){var e=p[Ce](t);v[Le](e)})[ze](),d[Te](function(t,e){var n=d[Ye](e),i=n[Cn]("pointer");t[Me]({x:l.cx,y:l.cy,width:o(i.get("width"),l.r),r:o(i.get(rn),l.r)}),t[be](n[Cn]("itemStyle.normal")[An]()),"auto"===t.style.fill&&t[un]("fill",s((d.get("value",e)-h[0])/(h[1]-h[0]))),r[me](t,n[Cn]("itemStyle.emphasis")[An]())}),this._data=d},_renderTitle:function(t,e,n,i,a){var s=t[Cn]("title");if(s.get("show")){var l=s[Cn](Tn),u=s.get("offsetCenter"),c=a.cx+o(u[0],a.r),h=a.cy+o(u[1],a.r),f=new r.Text({style:{x:c,y:h,text:t[Dn]()[H](0),fill:l[bn](),textFont:l[Mn](),textAlign:"center",textVerticalAlign:"middle"}});this.group.add(f)}},_renderDetail:function(t,e,i,s,l){var u=t[Cn]("detail"),c=t.get("min"),h=t.get("max");if(u.get("show")){var f=u[Cn](Tn),d=u.get("offsetCenter"),p=l.cx+o(d[0],l.r),v=l.cy+o(d[1],l.r),m=o(u.get("width"),l.r),g=o(u.get(_n),l.r),y=t[Dn]().get("value",0),x=new r.Rect({shape:{x:p-m/2,y:v-g/2,width:m,height:g},style:{text:n(y,u.get("formatter")),fill:u.get(Pn),textFill:f[bn](),textFont:f[Mn]()}});"auto"===x.style.textFill&&x[un]("textFill",s(a.linearMap(y,[c,h],[0,1],!0))),x[un](u[An](["color"])),this.group.add(x)}}});return l}),e("echarts/chart/funnel/FunnelView",[Rn,Be,On,"../../view/Chart"],function(t){function e(t,e){function n(){o[re]=o.hoverIgnore,s[re]=s.hoverIgnore}function r(){o[re]=o.normalIgnore,s[re]=s.normalIgnore}i.Group.call(this);var a=new i.Polygon,o=new i.Polyline,s=new i.Text;this.add(a),this.add(o),this.add(s),this[ue](t,e,!0),this.on(ge,n).on(Oe,r).on(V,n).on(N,r)}function n(t,e,n,i){var a=i[Cn](Tn),o=i.get(cn),s=o===x||"inner"===o||o===fn;return{fill:a[bn]()||(s?"#fff":t[Se](e,"color")),textFont:a[Mn](),text:r[xe](t[oe][ye](e,n),t[H](e))}}var i=t(Be),r=t(On),a=e[on],o=["itemStyle",Oe,ln];a[ue]=function(t,e,n){var a=this[y](0),s=t[oe],l=t[Ye](e),u=t[De](e),c=t[Ye](e).get(o);c=null==c?1:c,a[be]({}),n?(a[Me]({points:u.points}),a[un]({opacity:0}),i[ke](a,{style:{opacity:c}},s,e)):i[Ie](a,{style:{opacity:c},shape:{points:u.points}},s,e);var h=l[Cn]("itemStyle"),f=t[Se](e,"color");a[un](r[Ln]({lineJoin:"round",fill:f},h[Cn](Oe)[An]([ln]))),a[g]=h[Cn](ge)[An](),this._updateLabel(t,e),i[me](this)},a._updateLabel=function(t,e){var r=this[y](1),a=this[y](2),o=t[oe],s=t[Ye](e),l=t[De](e),u=l.label,c=t[Se](e,"color");i[Ie](r,{shape:{points:u.linePoints||u.linePoints}},o,e),i[Ie](a,{style:{x:u.x,y:u.y}},o,e),a.attr({style:{textAlign:u[Sn],textVerticalAlign:u.verticalAlign,textFont:u.font},rotation:u[m],origin:[u.x,u.y],z2:10});var h=s[Cn](we),f=s[Cn](_e),d=s[Cn]("labelLine.normal"),p=s[Cn]("labelLine.emphasis");a[un](n(t,e,Oe,h)),a[re]=a.normalIgnore=!h.get("show"),a.hoverIgnore=!f.get("show"),r[re]=r.normalIgnore=!d.get("show"),r.hoverIgnore=!p.get("show"),r[un]({stroke:c}),r[un](d[Cn](v)[se]()),a[g]=n(t,e,ge,f),r[g]=p[Cn](v)[se]()},r[b](e,i.Group);var s=t("../../view/Chart")[an]({type:"funnel",render:function(t){var n=t[Dn](),i=this._data,r=this.group;n.diff(i).add(function(t){var i=new e(n,t);n[Ae](t,i),r.add(i)})[Pe](function(t,e){var a=i[Ce](e);a[ue](n,t),r.add(a),n[Ae](t,a)})[Le](function(t){var e=i[Ce](t);r[Le](e)})[ze](),this._data=n},remove:function(){this.group[kn](),this._data=null},dispose:function(){}});return s}),e("echarts/chart/funnel/FunnelSeries",[Rn,"../../data/List",pe,"../../data/helper/completeDimensions",Ee],function(t){var e=t("../../data/List"),n=t(pe),i=t("../../data/helper/completeDimensions"),r=t(Ee).extendSeriesModel({type:"series.funnel",init:function(t){r[q](this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this._defaultLabelLine(t)},getInitialData:function(t){var n=i(["value"],t.data),r=new e(n,this);return r.initData(t.data),r},_defaultLabelLine:function(t){n.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[Oe],i=t.labelLine[ge];e.show=e.show&&t.label[Oe].show,i.show=i.show&&t.label[ge].show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}});return r}),e("echarts/chart/funnel/funnelLayout",[Rn,"../../util/layout",w],function(t){function e(t,e){return r[mn](t[gn](),{width:e[vn](),height:e[pn]()})}function n(t,e){for(var n=t[fe]("value",function(t){return t}),i=[],r="ascending"===e,a=0,o=t.count();o>a;a++)i[a]=a;return i.sort(function(t,e){return r?n[t]-n[e]:n[e]-n[t]}),i}function i(t){t.each(function(e){var n,i,r,a,o=t[Ye](e),s=o[Cn](we),l=s.get(cn),u=o[Cn]("labelLine.normal"),c=t[De](e),h=c.points,f="inner"===l||l===x||l===fn;if(f)i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,r=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,n=fn,a=[[i,r],[i,r]];else{var d,p,v,m=u.get(rn);"left"===l?(d=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,v=d-m,i=v-5,n="right"):(d=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,v=d+m,i=v+5,n="left");var g=p;a=[[d,p],[v,g]],r=g}c.label={linePoints:a,x:i,y:r,verticalAlign:"middle",textAlign:n,inside:f}})}var r=t("../../util/layout"),a=t(w),o=a[ne];return function(t,r){t.eachSeriesByType("funnel",function(t){var s=t[Dn](),l=t.get("sort"),u=e(t,r),c=n(s,l),h=[o(t.get("minSize"),u.width),o(t.get("maxSize"),u.width)],f=s[Y]("value"),d=t.get("min"),p=t.get("max");null==d&&(d=Math.min(f[0],0)),null==p&&(p=f[1]);var v=t.get("funnelAlign"),m=t.get("gap"),g=(u[_n]-m*(s.count()-1))/s.count(),y=u.y,x=function(t,e){var n,i=s.get("value",t)||0,r=a.linearMap(i,[d,p],h,!0);switch(v){case"left":n=u.x;break;case fn:n=u.x+(u.width-r)/2;break;case"right":n=u.x+u.width-r}return[[n,e],[n+r,e]]};"ascending"===l&&(g=-g,m=-m,y+=u[_n],c=c.reverse());for(var _=0;_<c[rn];_++){var w=c[_],b=c[_+1],M=x(w,y),S=x(b,y+g);y+=g+m,s.setItemLayout(w,{points:M[Fe](S.slice().reverse())})}i(s)})}}),e("echarts/component/axis",[Rn,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/component/legend/LegendModel",[Rn,On,"../../model/Model",Ee],function(t){var e=t(On),n=t("../../model/Model"),i=t(Ee).extendComponentModel({type:"legend",dependencies:[G],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){i.superCall(this,Z,t)},optionUpdated:function(){this._updateData(this[f]);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t[rn];n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var i=e.map(this.get("data")||[],function(t){return(typeof t===He||typeof t===Ge)&&(t={name:t}),new n(t,this,this[f])},this);this._data=i;var r=e.map(t.getSeries(),function(t){return t.name});t[$](function(t){if(t.legendDataProvider){var e=t.legendDataProvider();r=r[Fe](e[fe](e[H]))}}),this._availableNames=r},getData:function(){return this._data},select:function(t){var n=this[W].selected,i=this.get("selectedMode");if("single"===i){var r=this._data;e.each(r,function(t){n[t.get("name")]=!1})}n[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this[W].selected[t]=!1)},toggleSelected:function(t){var e=this[W].selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var n=this[W].selected;return!(n.hasOwnProperty(t)&&!n[t])&&e[Ze](this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});return i}),e("echarts/component/legend/legendAction",[Rn,Ee,On],function(t){function e(t,e,n){var r,a={},o="toggleSelected"===t;return n[J]("legend",function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):(n[t](e.name),r=n.isSelected(e.name));var s=n[Dn]();i.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);a[e]=e in a?a[e]&&i:i}})}),{name:e.name,selected:a}}var n=t(Ee),i=t(On);n[sn]("legendToggleSelect","legendselectchanged",i.curry(e,"toggleSelected")),n[sn]("legendSelect","legendselected",i.curry(e,"select")),n[sn]("legendUnSelect","legendunselected",i.curry(e,"unSelect"))}),e("echarts/component/legend/LegendView",[Rn,On,"../../util/symbol",Be,"../helper/listComponent",Ee],function(t){function e(t,e){e[z]({type:"legendToggleSelect",name:t})}function n(t,e,n){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||t.get("legendHoverLink")&&n[z]({type:"highlight",seriesName:t.name,name:e})}function i(t,e,n){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||t.get("legendHoverLink")&&n[z]({type:"downplay",seriesName:t.name,name:e})}var r=t(On),a=t("../../util/symbol"),o=t(Be),s=t("../helper/listComponent"),l=r.curry;return t(Ee)[In]({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,u){var c=this.group;if(c[kn](),t.get("show")){var h=t.get("selectedMode"),f=t.get("align");"auto"===f&&(f="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var d={};r.each(t[Dn](),function(r){var s=r.get("name");if(""===s||"\n"===s)return void c.add(new o.Group({newline:!0}));var p=a.getSeriesByName(s)[0];if(!d[s])if(p){var v=p[Dn](),m=v.getVisual("color");typeof m===Je&&(m=m(p[$e](0)));var g=v.getVisual("legendSymbol")||"roundRect",y=v.getVisual("symbol"),x=this._createItem(s,r,t,g,y,f,m,h);x.on("click",l(e,s,u)).on(V,l(n,p,null,u)).on(N,l(i,p,null,u)),d[s]=!0}else a.eachRawSeries(function(a){if(!d[s]&&a.legendDataProvider){var o=a.legendDataProvider(),c=o.indexOfName(s);if(0>c)return;var p=o[Se](c,"color"),v="roundRect",m=this._createItem(s,r,t,v,null,f,p,h);m.on("click",l(e,s,u)).on(V,l(n,a,s,u)).on(N,l(i,a,s,u)),d[s]=!0}},this)},this),s.layout(c,t,u),s.addBackground(c,t)}},_createItem:function(t,e,n,i,s,l,u,c){var h=n.get("itemWidth"),f=n.get("itemHeight"),d=n.get("inactiveColor"),p=n.isSelected(t),v=new o.Group,m=e[Cn](Tn),g=e.get("icon"),y=e[Cn]("tooltip"),x=y.parentModel;if(i=g||i,v.add(a.createSymbol(i,0,0,h,f,p?u:d)),!g&&s&&(s!==i||"none"==s)){var _=.8*f;"none"===s&&(s="circle"),v.add(a.createSymbol(s,(h-_)/2,(f-_)/2,_,_,p?u:d))}var w="left"===l?h+5:-5,b=l,M=n.get("formatter"),T=t;typeof M===He&&M?T=M[S]("{name}",null!=t?t:""):typeof M===Je&&(T=M(t));var C=new o.Text({style:{text:T,x:w,y:f/2,fill:p?m[bn]():d,textFont:m[Mn](),textAlign:b,textVerticalAlign:"middle"}});v.add(C);var A=new o.Rect({shape:v[wn](),invisible:!0,tooltip:y.get("show")?r[an]({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n[Q],name:t,$vars:["name"]}},y[W]):null});return v.add(A),v.eachChild(function(t){t[xn]=!0}),A[xn]=!c,this.group.add(v),o[me](v),v}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[rn]&&t.filterSeries(function(t){for(var n=0;n<e[rn];n++)if(!e[n].isSelected(t.name))return!1;return!0})}}),e("echarts/util/graphic",[Rn,On,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",E,"zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Ring","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/CompoundPath","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient",h],function(t){function e(t){return null!=t&&"none"!=t}function n(t){return typeof t===He?C.lift(t,-.1):t}function i(t){if(t.__hoverStlDirty){var i=t.style[d],r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?n(r):null),a[d]=a[d]||(e(i)?n(i):null);var o={};for(var s in a)a.hasOwnProperty(s)&&(o[s]=t.style[s]);t.__normalStl=o,t.__hoverStlDirty=!1}}function r(t){t.__isHover||(i(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t[un](t.__hoverStl),t.z2+=1),t.__isHover=!0)}function a(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t[un](e),t.z2-=1),t.__isHover=!1}}function o(t){"group"===t.type?t[T](function(t){"group"!==t.type&&r(t)}):r(t)}function s(t){"group"===t.type?t[T](function(t){"group"!==t.type&&a(t)}):a(t)}function l(t,e){t.__hoverStl=t[g]||e||{},t.__hoverStlDirty=!0,t.__isHover&&i(t)}function f(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&o(this)}function p(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&s(this)}function v(){this.__isEmphasis=!0,o(this)}function y(){this.__isEmphasis=!1,s(this)}function _(t,e,n,i,r,a){typeof r===Je&&(a=r,r=null);var o=i&&(i.ifEnableAnimation?i.ifEnableAnimation():i[Ue](Re));if(o){var s=t?"Update":"",l=i&&i[Ue]("animationDuration"+s),u=i&&i[Ue]("animationEasing"+s),c=i&&i[Ue]("animationDelay"+s);typeof c===Je&&(c=c(r)),l>0?e.animateTo(n,l,c||0,u,a):(e.attr(n),a&&a())}else e.attr(n),a&&a()}var w=t(On),b=t("zrender/tool/path"),M=Math.round,S=t("zrender/graphic/Path"),C=t("zrender/tool/color"),A=t("zrender/core/matrix"),P=t(E),L={};return L.Group=t("zrender/container/Group"),L.Image=t("zrender/graphic/Image"),L.Text=t("zrender/graphic/Text"),L.Circle=t("zrender/graphic/shape/Circle"),L.Sector=t("zrender/graphic/shape/Sector"),L.Ring=t("zrender/graphic/shape/Ring"),L.Polygon=t("zrender/graphic/shape/Polygon"),L.Polyline=t("zrender/graphic/shape/Polyline"),L.Rect=t("zrender/graphic/shape/Rect"),L.Line=t("zrender/graphic/shape/Line"),L.BezierCurve=t("zrender/graphic/shape/BezierCurve"),L.Arc=t("zrender/graphic/shape/Arc"),L.CompoundPath=t("zrender/graphic/CompoundPath"),L.LinearGradient=t("zrender/graphic/LinearGradient"),L.RadialGradient=t("zrender/graphic/RadialGradient"),L.BoundingRect=t(h),L.extendShape=function(t){return S[an](t)},L.extendPath=function(t,e){return b.extendFromString(t,e)},L.makePath=function(t,e,n,i){var r=b.createFromString(t,e),a=r[wn]();if(n){var o=a.width/a[_n];if(i===fn){var s,l=n[_n]*o;l<=n.width?s=n[_n]:(l=n.width,s=l/o);var u=n.x+n.width/2,c=n.y+n[_n]/2;n.x=u-l/2,n.y=c-s/2,n.width=l,n[_n]=s}this.resizePath(r,n)}return r},L.mergePath=b.mergePath,L.resizePath=function(t,e){if(t[X]){var n=t[wn](),i=n.calculateTransform(e);t[X](i)}},L.subPixelOptimizeLine=function(t){var e=L.subPixelOptimize,n=t.shape,i=t.style[c];return M(2*n.x1)===M(2*n.x2)&&(n.x1=n.x2=e(n.x1,i,!0)),M(2*n.y1)===M(2*n.y2)&&(n.y1=n.y2=e(n.y1,i,!0)),t},L.subPixelOptimizeRect=function(t){var e=L.subPixelOptimize,n=t.shape,i=t.style[c],r=n.x,a=n.y,o=n.width,s=n[_n];return n.x=e(n.x,i,!0),n.y=e(n.y,i,!0),n.width=Math.max(e(r+o,i,!1)-n.x,0===o?0:1),n[_n]=Math.max(e(a+s,i,!1)-n.y,0===s?0:1),t},L.subPixelOptimize=function(t,e,n){var i=M(2*t);return(i+M(e))%2===0?i/2:(i+(n?1:-1))/2},L[me]=function(t,e,n){t.__hoverSilentOnTouch=n&&n.hoverSilentOnTouch,"group"===t.type?t[T](function(t){"group"!==t.type&&l(t,e)}):l(t,e),t.on(V,f).on(N,p),t.on(ge,v).on(Oe,y)},L.setText=function(t,e,n){var i=e[Ue](cn)||x,r=i[Ze](x)>=0?"white":n,a=e[Cn](Tn);w[an](t,{textDistance:e[Ue]("distance")||5,textFont:a[Mn](),textPosition:i,textFill:a[bn]()||r})},L[Ie]=function(t,e,n,i,r){_(!0,t,e,n,i,r)},L[ke]=function(t,e,n,i,r){_(!1,t,e,n,i,r)},L.getTransform=function(t,e){for(var n=A.identity([]);t&&t!==e;)A.mul(n,t.getLocalTransform(),n),t=t[u];return n},L[X]=function(t,e,n){return n&&(e=A.invert([],e)),P[X]([],t,e)},L.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-r:t===hn?r:0];return a=L[X](a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?hn:"top"},L.groupTransition=function(t,e,n){function i(t){var e={};return t[T](function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:P.clone(t[cn]),rotation:t[m]};return t.shape&&(e.shape=w[an]({},t.shape)),e}if(t&&e){var a=i(t);e[T](function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var i=r(t);t.attr(r(e)),L[Ie](t,i,n,t[ve])}}})}},L}),e("echarts/util/layout",[Rn,On,h,"./number","./format"],function(t){function e(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,f=l[cn],d=l[wn](),v=e[y](u+1),m=v&&v[wn]();if(t===p){var g=d.width+(m?-m.x+d.x:0);c=a+g,c>i||l.newline?(a=0,c=g,o+=s+n,s=d[_n]):s=Math.max(s,d[_n])}else{var x=d[_n]+(m?-m.y+d.y:0);h=o+x,h>r||l.newline?(a+=s+n,o=0,h=x,s=d.width):s=Math.max(s,d.width)}l.newline||(f[0]=a,f[1]=o,t===p?a=c+n:o=h+n)})}var n=t(On),i=t(h),r=t("./number"),a=t("./format"),o=r[ne],s=n.each,l={},u=l.LOCATION_PARAMS=["left","right","top",hn,"width",_n];return l.box=e,l.vbox=n.curry(e,"vertical"),l.hbox=n.curry(e,p),l.getAvailableSize=function(t,e,n){var i=e.width,r=e[_n],s=o(t.x,i),l=o(t.y,r),u=o(t.x2,i),c=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),n=a.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}},l[mn]=function(t,e,n){n=a.normalizeCssArray(n||0);var r=e.width,s=e[_n],l=o(t.left,r),u=o(t.top,s),c=o(t.right,r),h=o(t[hn],s),f=o(t.width,r),d=o(t[_n],s),p=n[2]+n[0],v=n[1]+n[3],m=t.aspect;switch(isNaN(f)&&(f=r-c-v-l),isNaN(d)&&(d=s-h-p-u),isNaN(f)&&isNaN(d)&&(m>r/s?f=.8*r:d=.8*s),null!=m&&(isNaN(f)&&(f=m*d),isNaN(d)&&(d=f/m)),isNaN(l)&&(l=r-c-f-v),isNaN(u)&&(u=s-h-d-p),t.left||t.right){case fn:l=r/2-f/2-n[3];
break;case"right":l=r-f-v}switch(t.top||t[hn]){case dn:case fn:u=s/2-d/2-n[0];break;case hn:u=s-d-p}l=l||0,u=u||0,isNaN(f)&&(f=r-l-(c||0)),isNaN(d)&&(d=s-u-(h||0));var g=new i(l+n[3],u+n[0],f,d);return g.margin=n,g},l.positionElement=function(t,e,r,a,o){var s=!o||!o.hv||o.hv[0],u=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s||u){var h;if("raw"===c)h="group"===t.type?new i(0,0,+e.width||0,+e[_n]||0):t[wn]();else if(h=t[wn](),t.needLocalTransform()){var f=t.getLocalTransform();h=h.clone(),h[X](f)}e=l[mn](n[Ln]({width:h.width,height:h[_n]},e),r,a);var d=t[cn],p=s?e.x-h.x:0,v=u?e.y-h.y:0;t.attr(cn,"raw"===c?[p,v]:[d[0]+p,d[1]+v])}},l.mergeLayoutParam=function(t,e,i){function r(n){var r={},l=0,u={},c=0,h=i.ignoreSize?1:2;if(s(n,function(e){u[e]=t[e]}),s(n,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&l++,o(u,t)&&c++}),c!==h&&l){if(l>=h)return r;for(var f=0;f<n[rn];f++){var d=n[f];if(!a(r,d)&&a(t,d)){r[d]=t[d];break}}return r}return u}function a(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){s(t,function(t){e[t]=n[t]})}!n[k](i)&&(i={});var u=["width","left","right"],c=[_n,"top",hn],h=r(u),f=r(c);l(u,t,h),l(c,t,f)},l.getLayoutParams=function(t){return l.copyLayoutParams({},t)},l.copyLayoutParams=function(t,e){return e&&t&&s(u,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t},l}),e("echarts/component/tooltip/TooltipModel",[Rn,Ee],function(t){t(Ee).extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,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:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})}),e("echarts/component/toolbox/feature/SaveAsImage",[Rn,B,"../featureManager"],function(t){function e(t){this.model=t}var n=t(B);e.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:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["右键另存为图片"]},e[on].unusable=!n[O];var i=e[on];return i.onclick=function(t,e){var i=this.model,r=i.get("name")||t.get("title.0.text")||"echarts",a=document[Xe]("a"),o=i.get("type",!0)||"png";a.download=r+"."+o,a[yn]="_blank";var s=e.getConnectedDataURL({type:o,backgroundColor:i.get(Pn,!0)||t.get(Pn)||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(a.href=s,typeof MouseEvent!==Je||n.browser.ie||n.browser.edge){var l=i.get("lang"),u='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>',c=window.open();c.document.write(u)}else{var h=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});a.dispatchEvent(h)}},t("../featureManager").register("saveAsImage",e),e}),e("echarts/component/toolbox/ToolboxModel",[Rn,"./featureManager",On,Ee],function(t){var e=t("./featureManager"),n=t(On),i=t(Ee).extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(){i[q](this,"mergeDefaultAndTheme",arguments),n.each(this[W].feature,function(t,i){var r=e.get(i);r&&n.merge(t,r.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}});return i}),e("echarts/component/toolbox/feature/MagicType",[Rn,On,"../../../echarts","../featureManager"],function(t){function e(t){this.model=t}var n=t(On);e.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:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var i=e[on];i.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return n.each(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var r={line:function(t,e,i,r){return"bar"===t?n.merge({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.line")||{},!0):void 0},bar:function(t,e,i,r){return"line"===t?n.merge({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.bar")||{},!0):void 0},stack:function(t,e,i,r){return"line"===t||"bar"===t?n.merge({id:e,stack:"__ec_magicType_stack__"},r.get("option.stack")||{},!0):void 0},tiled:function(t,e,i,r){return"line"===t||"bar"===t?n.merge({id:e,stack:""},r.get("option.tiled")||{},!0):void 0}},a=[["line","bar"],["stack","tiled"]];i.onclick=function(t,e,i){var o=this.model,s=o.get("seriesIndex."+i);if(r[i]){var u={series:[]},c=function(e){var a=e.subType,s=e.id,c=r[i](a,s,e,o);c&&(n[Ln](c,e[W]),u[G].push(c));var h=e[zn];if(h&&h.type===Qe&&("line"===i||"bar"===i)){var f=h.getAxesByScale(ie)[0];if(f){var d=f.dim,p=d+"Axis",v=t[l]({mainType:p,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],m=v[Q];u[p]=u[p]||[];for(var g=0;m>=g;g++)u[p][m]=u[p][m]||{};u[p][m].boundaryGap="bar"===i?!0:!1}}};n.each(a,function(t){n[Ze](t,i)>=0&&n.each(t,function(t){o.setIconStatus(t,Oe)})}),o.setIconStatus(i,ge),t[J]({mainType:"series",query:null==s?null:{seriesIndex:s}},c),e[z]({type:"changeMagicType",currentType:i,newOption:u})}};var o=t("../../../echarts");return o[sn]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e[Z](t.newOption)}),t("../featureManager").register("magicType",e),e}),e("echarts/component/toolbox/ToolboxView",[Rn,"./featureManager",On,Be,"../../model/Model","../../data/DataDiffer","../helper/listComponent","zrender/contain/text",Ee],function(t){function e(t){return 0===t[Ze]("my")}var n=t("./featureManager"),i=t(On),r=t(Be),a=t("../../model/Model"),o=t("../../data/DataDiffer"),s=t("../helper/listComponent"),l=t("zrender/contain/text");return t(Ee)[In]({type:"toolbox",render:function(t,u,c,h){function p(i,r){var o,s=w[i],l=w[r],d=x[s],p=new a(d,t,t[f]);if(s&&!l){if(e(s))o={model:p,onclick:p[W].onclick,featureName:s};else{var m=n.get(s);if(!m)return;o=new m(p,u,c)}_[s]=o}else{if(o=_[l],!o)return;o.model=p,o[f]=u,o.api=c}return!s&&l?void(o[P]&&o[P](u,c)):!p.get("show")||o.unusable?void(o[Le]&&o[Le](u,c)):(v(p,o,s),p.setIconStatus=function(t,e){var n=this[W],i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t][L](e)},void(o.render&&o.render(p,u,c,h)))}function v(e,n,a){var o=e[Cn]("iconStyle"),s=n.getIcons?n.getIcons():e.get("icon"),l=e.get("title")||{};if(typeof s===He){var h=s,f=l;s={},l={},s[a]=h,l[a]=f}var p=e.iconPaths={};i.each(s,function(a,s){var h=o[Cn](Oe)[An](),f=o[Cn](ge)[An](),v={x:-y/2,y:-y/2,width:y,height:y},g=0===a[Ze]("image://")?(v.image=a.slice(8),new r.Image({style:v})):r.makePath(a[S]("path://",""),{style:h,hoverStyle:f,rectHover:!0},v,fn);r[me](g),t.get("showTitle")&&(g.__title=l[s],g.on(V,function(){var t=o[Cn](ge)[An]();g[un]({text:l[s],textPosition:t.textPosition||hn,textFill:t.fill||t[d]||"#000",textAlign:t[Sn]||fn})}).on(N,function(){g[un]({textFill:null})})),g[L](e.get("iconStatus."+s)||Oe),m.add(g),g.on("click",i.bind(n.onclick,n,u,c,s)),p[s]=g})}var m=this.group;if(m[kn](),t.get("show")){var y=+t.get("itemSize"),x=t.get("feature")||{},_=this._features||(this._features={}),w=[];i.each(x,function(t,e){w.push(e)}),new o(this._featureNames||[],w).add(p)[Pe](p)[Le](i.curry(p,null))[ze](),this._featureNames=w,s.layout(m,t,c),s.addBackground(m,t),m.eachChild(function(t){var e=t.__title,n=t[g];if(n&&e){var i=l[wn](e,n.font),r=t[cn][0]+m[cn][0],a=t[cn][1]+m[cn][1]+y,o=!1;a+i[_n]>c[pn]()&&(n.textPosition="top",o=!0);var s=o?-5-i[_n]:y+8;r+i.width/2>c[vn]()?(n.textPosition=["100%",s],n[Sn]="right"):r-i.width/2<0&&(n.textPosition=[0,s],n[Sn]="left")}})}},updateView:function(t,e,n,r){i.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,r)})},updateLayout:function(t,e,n,r){i.each(this._features,function(t){t[I]&&t[I](t.model,e,n,r)})},remove:function(t,e){i.each(this._features,function(n){n[Le]&&n[Le](t,e)}),this.group[kn]()},dispose:function(t,e){i.each(this._features,function(n){n[P]&&n[P](t,e)})}})}),e("echarts/component/toolbox/feature/DataView",[Rn,On,"zrender/core/event","../featureManager","../../../echarts"],function(t){function e(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t[zn];if(!r||r.type!==Qe&&"polar"!==r.type)n.push(t);else{var a=r.getBaseAxis();if(a.type===te){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[o][G].push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function n(t){var e=[];return f.each(t,function(t){var n=t.categoryAxis,i=t.valueAxis,r=i.dim,a=[" "][Fe](f.map(t[G],function(t){return t.name})),o=[n.model.getCategories()];f.each(t[G],function(t){o.push(t.getRawData()[fe](r,function(t){return t}))});for(var s=[a.join(v)],l=0;l<o[0][rn];l++){for(var u=[],c=0;c<o[rn];c++)u.push(o[c][l]);s.push(u.join(v))}e.push(s.join("\n"))}),e.join("\n\n"+p+"\n\n")}function i(t){return f.map(t,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e[Ve],function(){for(var t=arguments[rn],r=arguments[t-1],a=e[H](r),o=0;t-1>o;o++)i[o]=arguments[o];n.push((a?a+v:"")+i.join(v))}),n.join("\n")}).join("\n\n"+p+"\n\n")}function r(t){var r=e(t);return{value:f[je]([n(r.seriesGroupByCategoryAxis),i(r.other)],function(t){return t[S](/[\n\t\s]/g,"")}).join("\n\n"+p+"\n\n"),meta:r.meta}}function a(t){return t[S](/^\s\s*/,"")[S](/\s\s*$/,"")}function o(t){var e=t.slice(0,t[Ze]("\n"));return e[Ze](v)>=0?!0:void 0}function s(t){for(var e=t.split(/\n+/g),n=a(e.shift()).split(m),i=[],r=f.map(n,function(t){return{name:t,data:[]}}),o=0;o<e[rn];o++){var s=a(e[o]).split(m);i.push(s.shift());for(var l=0;l<s[rn];l++)r[l]&&(r[l].data[o]=s[l])}return{series:r,categories:i}}function l(t){for(var e=t.split(/\n+/g),n=a(e.shift()),i=[],r=0;r<e[rn];r++){var o,s=a(e[r]).split(m),l="",u=!1;isNaN(s[0])?(u=!0,l=s[0],s=s.slice(1),i[r]={name:l,value:[]},o=i[r].value):o=i[r]=[];for(var c=0;c<s[rn];c++)o.push(+s[c]);1===o[rn]&&(u?i[r].value=o[0]:i[r]=o[0])}return{name:n,data:i}}function u(t,e){var n=t.split(new RegExp("\n*"+p+"\n*","g")),i={series:[]};return f.each(n,function(t,n){if(o(t)){var r=s(t),a=e[n],u=a.axisDim+"Axis";a&&(i[u]=i[u]||[],i[u][a.axisIndex]={data:r.categories},i[G]=i[G][Fe](r[G]))}else{var r=l(t);i[G].push(r)}}),i}function c(t){this._dom=null,this.model=t}function h(t,e){return f.map(t,function(t,n){var i=e&&e[n];return f[k](i)&&!f[M](i)?(f[k](t)&&!f[M](t)&&(t=t.value),f[Ln]({value:t},i)):t})}var f=t(On),d=t("zrender/core/event"),p=new Array(60).join("-"),v="	",m=new RegExp("["+v+"]+","g");return c.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},c[on].onclick=function(t,e){function n(){i.removeChild(o),S._dom=null}var i=e.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document[Xe]("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style[Pn]=a.get(Pn)||"#fff";var s=document[Xe]("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=a.get("textColor");var c=document[Xe]("div"),h=document[Xe]("textarea");c.style.cssText="display:block;width:100%;overflow:hidden;";var p=a.get("optionToContent"),m=a.get("contentToOption"),g=r(t);if(typeof p===Je){var y=p(e.getOption());typeof y===He?c.innerHTML=y:f.isDom(y)&&c.appendChild(y)}else c.appendChild(h),h.readOnly=a.get("readOnly"),h.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",h.style.color=a.get("textColor"),h.style.borderColor=a.get("textareaBorderColor"),h.style[Pn]=a.get("textareaColor"),h.value=g.value;var x=g.meta,_=document[Xe]("div");_.style.cssText="position:absolute;bottom:0;left:0;right:0;";var w="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document[Xe]("div"),M=document[Xe]("div");w+=";background-color:"+a.get("buttonColor"),w+=";color:"+a.get("buttonTextColor");var S=this;d.addEventListener(b,"click",n),d.addEventListener(M,"click",function(){var t;try{t=typeof m===Je?m(c,e.getOption()):u(h.value,x)}catch(i){throw n(),new Error("Data view format error "+i)}t&&e[z]({type:"changeDataView",newOption:t}),n()}),b.innerHTML=l[1],M.innerHTML=l[2],M.style.cssText=w,b.style.cssText=w,!a.get("readOnly")&&_.appendChild(M),_.appendChild(b),d.addEventListener(h,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,n=this.selectionStart,i=this.selectionEnd;this.value=e.substring(0,n)+v+e.substring(i),this.selectionStart=this.selectionEnd=n+1,d.stop(t)}}),o.appendChild(s),o.appendChild(c),o.appendChild(_),c.style[_n]=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},c[on][Le]=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},c[on][P]=function(t,e){this[Le](t,e)},t("../featureManager").register("dataView",c),t("../../../echarts")[sn]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];f.each(t.newOption[G],function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:h(t.data,r)})}else n.push(f[an]({type:"scatter"},t))}),e[Z](f[Ln]({series:n},t.newOption))}),c}),e("echarts/component/toolbox/feature/Restore",[Rn,"../../dataZoom/history","../featureManager","../../../echarts"],function(t){function e(t){this.model=t}var n=t("../../dataZoom/history");e.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:"还原"};var i=e[on];return i.onclick=function(t,e){n.clear(t),e[z]({type:"restore",from:this.uid})},t("../featureManager").register("restore",e),t("../../../echarts")[sn]({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),e}),e("echarts/util/number",[Rn],function(){function t(t){return t[S](/^\s+/,"")[S](/\s+$/,"")}var e={},n=1e-4;return e.linearMap=function(t,e,n,i){var r=e[1]-e[0],a=n[1]-n[0];if(0===r)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(r>0){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]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*a+n[0]},e[ne]=function(e,n){switch(e){case fn:case dn:e="50%";break;case"left":case"top":e="0%";break;case"right":case hn:e="100%"}return typeof e===He?t(e).match(/%$/)?parseFloat(e)/100*n:parseFloat(e):null==e?0/0:+e},e.round=function(t,e){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),+(+t).toFixed(e)},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[Ze](".");return 0>n?0:e[rn]-1-n},e.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i);return Math.max(-r+a,0)},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-n&&n>t},e.parseDate=function(t){if(t instanceof Date)return t;if(typeof t===He){var e=new Date(t);return isNaN(+e)&&(e=new Date(new Date(t[S](/-/g,"/"))-new Date("1970/01/01"))),e}return new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},e.nice=function(t,n){var i,r=e.quantity(t),a=t/r;return i=n?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,i*r},e.reformIntervals=function(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]===(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,r=0;r<t[rn];){for(var a=t[r].interval,o=t[r].close,s=0;2>s;s++)a[s]<=n&&(a[s]=n,o[s]=s?1:1-i),n=a[s],i=o[s];a[0]===a[1]&&o[0]*o[1]!==1?t[A](r,1):r++}return t},e}),e("zrender/zrender",[Rn,"./core/guid","./core/env","./core/util","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete h[t]}var n=t("./core/guid"),i=t("./core/env"),r=t("./core/util"),a=t("./Handler"),o=t("./Storage"),s=t("./animation/Animation"),l=t("./dom/HandlerProxy"),u=!i[O],c={canvas:t("./Painter")},h={},f={};f.version="3.2.2",f.init=function(t,e){var i=new d(n(),t,e);return h[i.id]=i,i},f[P]=function(t){if(t)t[P]();else{for(var e in h)h.hasOwnProperty(e)&&h[e][P]();h={}}return f},f.getInstance=function(t){return h[t]},f.registerPainter=function(t,e){c[t]=e};var d=function(t,e,n){n=n||{},this.dom=e,this.id=t;var h=this,f=new o,d=n.renderer;if(u){if(!c.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");d="vml"}else d&&c[d]||(d=We);var p=new c[d](e,f,n);this.storage=f,this.painter=p;var v=i.node?null:new l(p.getViewportRoot());this.handler=new a(f,p,v,p.root),this[Re]=new s({stage:{update:r.bind(this.flush,this)}}),this[Re].start(),this._needsRefresh;var m=f.delFromMap,g=f.addToMap;f.delFromMap=function(t){var e=f.get(t);m.call(f,t),e&&e.removeSelfFromZr(h)},f.addToMap=function(t){g.call(f,t),t.addSelfToZr(h)}};return d[on]={constructor:d,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter[K](t.width,t[_n]),this.handler[K]()},clearAnimation:function(){this[Re].clear()},getWidth:function(){return this.painter[vn]()},getHeight:function(){return this.painter[pn]()},pathToImage:function(t,e,i){var r=n();return this.painter.pathToImage(r,t,e,i)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler[L](t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[Re].stop(),this.clear(),this.storage[P](),this.painter[P](),this.handler[P](),this[Re]=this.storage=this.painter=this.handler=null,e(this.id)}},f}),e("echarts/scale/Interval",[Rn,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),n=t("../util/format"),i=t("./Scale"),r=Math.floor,a=Math.ceil,o=e.getPrecisionSafe,s=e.round,l=i[an]({type:"interval",_interval:0,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[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l[on].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,e=this._extent,n=[],i=1e4;if(t){var r=this._niceExtent,a=o(t)+2;e[0]<r[0]&&n.push(e[0]);for(var l=r[0];l<=r[1];)if(n.push(l),l=s(l+t,a),n[rn]>i)return[];e[1]>(n[rn]?n[n[rn]-1]:r[1])&&n.push(e[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),n=0;n<e[rn];n++)t.push(this.getLabel(e[n]));return t},getLabel:function(t){return n.addCommas(t)},niceTicks:function(t){t=t||5;var n=this._extent,i=n[1]-n[0];if(isFinite(i)){0>i&&(i=-i,n.reverse());var l=s(e.nice(i/t,!0),Math.max(o(n[0]),o(n[1]))+2),u=o(l)+2,c=[s(a(n[0]/l)*l,u),s(r(n[1]/l)*l,u)];this._interval=l,this._niceExtent=c}},niceExtent:function(t,e,n){var i=this._extent;if(i[0]===i[1])if(0!==i[0]){var o=i[0];n?i[0]-=o/2:(i[1]+=o/2,i[0]-=o/2)}else i[1]=1;var l=i[1]-i[0];isFinite(l)||(i[0]=0,i[1]=1),this.niceTicks(t);var u=this._interval;e||(i[0]=s(r(i[0]/u)*u)),n||(i[1]=s(a(i[1]/u)*u))}});return l[tn]=function(){return new l},l}),e("echarts/scale/Scale",[Rn,"../util/clazz"],function(t){function e(){this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var n=t("../util/clazz"),i=e[on];return i.parse=function(t){return t},i[nn]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},i[en]=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},i.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},i.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},i[Ke]=function(){return this._extent.slice()},i.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},i.getTicksLabels=function(){for(var t=[],e=this.getTicks(),n=0;n<e[rn];n++)t.push(this.getLabel(e[n]));return t},n.enableClassExtend(e),n.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/component/toolbox/feature/DataZoom",[Rn,On,"../../helper/BrushController","../../helper/brushHelper","../../dataZoom/history","../../dataZoomSelect","../featureManager","../../../echarts"],function(t){function e(t,e,n){(this._brushController=new o(n.getZr())).on("brush",a.bind(this._onBrush,this)).mount(),this._isZoomActive}function n(t){var e={};return a.each(["xAxisIndex","yAxisIndex"],function(n){e[n]=t[n],null==e[n]&&(e[n]="all"),(e[n]===!1||"none"===e[n])&&(e[n]=[])}),e}function i(t,e){t.setIconStatus("back",l.count(e)>1?ge:Oe)}function r(t,e,i,r){var a=i._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key?r.dataZoomSelectActive:!1),i._isZoomActive=a,t.setIconStatus("zoom",a?ge:Oe);var o=s.makeCoordInfoList(n(t[W]),e),l=o.xAxisHas&&!o.yAxisHas?"lineX":!o.xAxisHas&&o.yAxisHas?"lineY":"rect";i._brushController.setPanels(s.makePanelOpts(o)).enableBrush(a?{brushType:l,brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}var a=t(On),o=t("../../helper/BrushController"),s=t("../../helper/brushHelper"),l=t("../../dataZoom/history"),u=a.each;t("../../dataZoomSelect");var c="\x00_ec_\x00toolbox-dataZoom_";e.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var h=e[on];h.render=function(t,e,n,a){this.model=t,this[f]=e,this.api=n,r(t,e,this,a),i(t,e)},h.onclick=function(t,e,n){d[n].call(this)},h[Le]=function(){this._brushController.unmount()},h[P]=function(){this._brushController[P]()};var d={zoom:function(){var t=!this._isZoomActive;this.api[z]({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(l.pop(this[f]))}};return h._onBrush=function(t,e){function i(t,e,n){var i=r(t,n[t],o);i&&(a[i.id]={dataZoomId:i.id,startValue:e[0],endValue:e[1]})}function r(t,e,n){var i;return n[J]({mainType:"dataZoom",subType:"select"},function(r){var a=r.get(t+"Index");null!=a&&n[F](t,a)===e&&(i=r)}),i}if(e.isEnd&&t[rn]){var a={},o=this[f];this._brushController.updateCovers([]);var u=s.makeCoordInfoList(n(this.model[W]),o),c=[];s.parseOutputRanges(t,u,o,c);var h=t[0],d=c[0],p=h.coordRange,v=h.brushType;if(d&&p)if("rect"===v)i("xAxis",p[0],d),i("yAxis",p[1],d);else{var m={lineX:"xAxis",lineY:"yAxis"};i(m[v],p,d)}l.push(o,a),this._dispatchZoomAction(a)}},h._dispatchZoomAction=function(t){var e=[];u(t,function(t){e.push(a.clone(t))}),e[rn]&&this.api[z]({type:"dataZoom",from:this.uid,batch:e})},t("../featureManager").register("dataZoom",e),t("../../../echarts").registerPreprocessor(function(t){function e(t,e){if(e){var r=t+"Index",o=e[r];null==o||"all"==o||a[M](o)||(o=o===!1||"none"===o?[]:[o]),n(t,function(e,n){if(null==o||"all"==o||-1!==a[Ze](o,n)){var s={type:"select",$fromToolbox:!0,id:c+t+n};s[r]=n,i.push(s)}})}}function n(e,n){var i=t[e];a[M](i)||(i=i?[i]:[]),u(i,n)}if(t){var i=t.dataZoom||(t.dataZoom=[]);a[M](i)||(t.dataZoom=i=[i]);var r=t.toolbox;if(r&&(a[M](r)&&(r=r[0]),r&&r.feature)){var o=r.feature.dataZoom;e("xAxis",o),e("yAxis",o)}}}),e}),e("echarts/coord/axisHelper",[Rn,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",On,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),n=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var i=t("../scale/Scale"),r=t("../util/number"),a=t(On),o=t("zrender/contain/text"),s={};return s.getScaleExtent=function(t,e){var n=t.scale,i=n[Ke](),o=i[1]-i[0];if(n.type===ie)return isFinite(o)?i:[0,0];var s=e.getMin?e.getMin():e.get("min"),l=e.getMax?e.getMax():e.get("max"),u=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),c=e.get("boundaryGap");a[M](c)||(c=[c||0,c||0]),c[0]=r[ne](c[0],1),c[1]=r[ne](c[1],1);var h=!0,f=!0;return null==s&&(s=i[0]-c[0]*o,h=!1),null==l&&(l=i[1]+c[1]*o,f=!1),"dataMin"===s&&(s=i[0]),"dataMax"===l&&(l=i[1]),u&&(s>0&&l>0&&!h&&(s=0),0>s&&0>l&&!f&&(l=0)),[s,l]},s.niceScaleExtent=function(t,e){var n=t.scale,i=s.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),a=null!=(e.getMax?e.getMax():e.get("max")),o=e.get("splitNumber");"log"===n.type&&(n.base=e.get("logBase")),n.setExtent(i[0],i[1]),n.niceExtent(o,r,a);var l=e.get("minInterval");if(isFinite(l)&&!r&&!a&&"interval"===n.type){var u=n.getInterval(),c=Math.max(Math.abs(u),l)/u;i=n[Ke]();var h=(i[1]+i[0])/2;n.setExtent(c*(i[0]-h)+h,c*(i[1]-h)+h),n.niceExtent(o)}var u=e.get("interval");null!=u&&n.setInterval&&n.setInterval(u)},s.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case te:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new n;default:return(i.getClass(r)||n)[tn](t)}},s.ifAxisCrossZero=function(t){var e=t.scale[Ke](),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)},s.getAxisLabelInterval=function(t,e,n,i){var r,a=0,s=0,l=1;e[rn]>40&&(l=Math.floor(e[rn]/40));for(var u=0;u<t[rn];u+=l){var c=t[u],h=o[wn](e[u],n,fn,"top");h[i?"x":"y"]+=c,h[i?"width":_n]*=1.3,r?r.intersect(h)?(s++,a=Math.max(a,s)):(r.union(h),s=0):r=h.clone()}return 0===a&&l>1?l:(a+1)*l-1},s.getFormattedLabels=function(t,e){var n=t.scale,i=n.getTicksLabels(),r=n.getTicks();return typeof e===He?(e=function(t){return function(e){return t[S]("{value}",null!=e?e:"")}}(e),a.map(i,e)):typeof e===Je?a.map(r,function(i,r){return e(t.type===te?n.getLabel(i):i,r)},this):i},s}),e("zrender/vml/Painter",[Rn,"../core/log","./core"],function(t){function e(t){return parseInt(t,10)}function n(t,e){a.initVML(),this.root=t,this.storage=e;var n=document[Xe]("div"),i=document[Xe]("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",t.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this[K]();var r=e.delFromMap,o=e.addToMap;e.delFromMap=function(t){var n=e.get(t);r.call(e,t),n&&n.onRemove&&n.onRemove(i)},e.addToMap=function(t){t.onAdd&&t.onAdd(i),o.call(e,t)},this._firstPaint=!0}function i(t){return function(){r('In IE8.0 VML mode painter not support method "'+t+'"')}}var r=t("../core/log"),a=t("./core");n[on]={constructor:n,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,n=0;n<t[rn];n++){var i=t[n];i.invisible||i[re]?(i.__alreadyNotVisible||i.onRemove(e),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(e),i.__alreadyNotVisible=!1,i[s]&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,e),i.afterBrush&&i.afterBrush())),i[s]=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){var t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!=t||this._height!=e){this._width=t,this._height=e;var n=this._vmlViewport.style;n.width=t+"px",n[_n]=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,n=t.currentStyle;return(t.clientWidth||e(n.width))-e(n.paddingLeft)-e(n.paddingRight)|0},_getHeight:function(){var t=this.root,n=t.currentStyle;return(t.clientHeight||e(n[_n]))-e(n.paddingTop)-e(n.paddingBottom)|0}};for(var o=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],l=0;l<o[rn];l++){var u=o[l];n[on][u]=i(u)}return n}),e("echarts/coord/cartesian/Cartesian2D",[Rn,On,"./Cartesian"],function(t){function e(t){i.call(this,t)}var n=t(On),i=t("./Cartesian");return e[on]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(ie)[0]||this.getAxesByScale("time")[0]||this[he]("x")},containPoint:function(t){var e=this[he]("x"),n=this[he]("y");return e[nn](e.toLocalCoord(t[0]))&&n[nn](n.toLocalCoord(t[1]))},containData:function(t){return this[he]("x").containData(t[0])&&this[he]("y").containData(t[1])},dataToPoints:function(t,e){return t[fe](["x","y"],function(t,e){return this[Ne]([t,e])},e,this)},dataToPoint:function(t,e){var n=this[he]("x"),i=this[he]("y");return[n.toGlobalCoord(n[ce](t[0],e)),i.toGlobalCoord(i[ce](t[1],e))]},pointToData:function(t,e){var n=this[he]("x"),i=this[he]("y");return[n.coordToData(n.toLocalCoord(t[0]),e),i.coordToData(i.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this[he]("x"===t.dim?"y":"x")}},n[b](e,i),e}),e("echarts/coord/cartesian/Axis2D",[Rn,On,"../Axis","./axisLabelInterval"],function(t){var e=t(On),n=t("../Axis"),i=t("./axisLabelInterval"),r=function(t,e,i,r,a){n.call(this,t,e,i),this.type=r||"value",this[cn]=a||hn};return r[on]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[cn];return"top"===t||t===hn},getGlobalExtent:function(){var t=this[Ke]();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=i(this)),t},isLabelIgnored:function(t){if(this.type===te){var e=this.getLabelInterval();return typeof e===Je&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[b](r,n),r}),e("echarts/coord/cartesian/GridModel",[Rn,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");
var e=t("../../model/Component");return e[an]({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"}})}),e("echarts/CoordinateSystem",[Rn,On],function(t){function e(){this._coordinateSystems=[]}var n=t(On),i={};return e[on]={constructor:e,create:function(t,e){var r=[];n.each(i,function(n){var i=n[tn](t,e);r=r[Fe](i||[])}),this._coordinateSystems=r},update:function(t,e){n.each(this._coordinateSystems,function(n){n[Pe]&&n[Pe](t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},e.register=function(t,e){i[t]=e},e.get=function(t){return i[t]},e}),e(B,[],function(){function t(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1]),o&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:document[Xe](We)[qe]?!0:!1,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=10)}}var e={};return e=typeof navigator===_?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/util/format",[Rn,On,"./number","zrender/contain/text"],function(t){var e=t(On),n=t("./number"),i=t("zrender/contain/text"),r={};r.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][S](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[rn]>1?"."+t[1]:""))},r.toCamelCase=function(t,e){return t=(t||"")[R]()[S](/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},r.normalizeCssArray=function(t){var e=t[rn];return typeof t===Ge?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t},r.encodeHTML=function(t){return String(t)[S](/&/g,"&amp;")[S](/</g,"&lt;")[S](/>/g,"&gt;")[S](/"/g,"&quot;")[S](/'/g,"&#39;")};var a=["a","b","c","d","e","f","g"],o=function(t,e){return"{"+t+(null==e?"":e)+"}"};r.formatTpl=function(t,n){e[M](n)||(n=[n]);var i=n[rn];if(!i)return"";for(var r=n[0].$vars||[],s=0;s<r[rn];s++){var l=a[s];t=t[S](o(l),o(l,0))}for(var u=0;i>u;u++)for(var c=0;c<r[rn];c++)t=t[S](o(a[c],u),n[u][r[c]]);return t};var s=function(t){return 10>t?"0"+t:t};return r.formatTime=function(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=n.parseDate(e),r=i.getFullYear(),a=i.getMonth()+1,o=i.getDate(),l=i.getHours(),u=i.getMinutes(),c=i.getSeconds();return t=t[S]("MM",s(a))[R]()[S]("yyyy",r)[S]("yy",r%100)[S]("dd",s(o))[S]("d",o)[S]("hh",s(l))[S]("h",l)[S]("mm",s(u))[S]("m",u)[S]("ss",s(c))[S]("s",c)},r.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},r.truncateText=i.truncateText,r}),e("echarts/ExtensionAPI",[Rn,On],function(t){function e(t){n.each(i,function(e){this[e]=n.bind(t[e],t)},this)}var n=t(On),i=["getDom","getZr",vn,pn,z,"isDisposed","on","off","getDataURL","getConnectedDataURL",Cn,"getOption"];return e}),e("echarts/component/tooltip/TooltipView",[Rn,"./TooltipContent",Be,On,"../../util/format",w,pe,B,"../../model/Model",Ee],function(t){function e(t,e){if(!t||!e)return!1;var n=y.round;return n(t[0])===n(e[0])&&n(t[1])===n(e[1])}function n(t,e,n,i){return{x1:t,y1:e,x2:n,y2:i}}function i(t,e,n,i){return{x:t,y:e,width:n,height:i}}function r(t,e,n,i,r,a){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:a,clockwise:!0}}function a(t,e,n,i,r){var a=n.clientWidth,o=n.clientHeight,s=20;return t+a+s>i?t-=a+s:t+=s,e+o+s>r?e-=o+s:e+=s,[t,e]}function s(t,e,n,i,r){var a=n.clientWidth,o=n.clientHeight;return t=Math.min(t+a,i)-a,e=Math.min(e+o,r)-o,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function l(t,e,n){var i=n.clientWidth,r=n.clientHeight,a=5,o=0,s=0,l=e.width,u=e[_n];switch(t){case x:o=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-i/2,s=e.y-r-a;break;case hn:o=e.x+l/2-i/2,s=e.y+u+a;break;case"left":o=e.x-i-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}function u(t,e,n,i,r,u,c,h){var f=h[vn](),d=h[pn](),p=c&&c[wn]().clone();if(c&&p[X](c[j]),typeof t===Je&&(t=t([e,n],u,r.el,p)),m[M](t))e=b(t[0],f),n=b(t[1],d);else if(typeof t===He&&c){var v=l(t,p,r.el);e=v[0],n=v[1]}else{var v=a(e,n,r.el,f,d);e=v[0],n=v[1]}if(i){var v=s(e,n,r.el,f,d);e=v[0],n=v[1]}r[o](e,n)}function c(t){var e=t[zn],n=t.get("tooltip.trigger",!0);return!(!e||e.type!==Qe&&"polar"!==e.type&&"singleAxis"!==e.type||"item"===n)}var h=t("./TooltipContent"),v=t(Be),m=t(On),g=t("../../util/format"),y=t(w),_=t(pe),b=y[ne],S=t(B),T=t("../../model/Model");t(Ee)[In]({type:"tooltip",_axisPointers:{},init:function(t,e){if(!S.node){var n=new h(e.getDom(),e);this._tooltipContent=n,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,n){if(!S.node){this.group[kn](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastHover={};var i=this._tooltipContent;i[Pe](),i.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;r&&this.group.add(r);var a=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==a){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){o._manuallyShowTip({x:o._lastX,y:o._lastY})})}var s=this._api.getZr();s.off("click",this._tryShow),s.off(C,this._mousemove),s.off(N,this._hide),s.off("globalout",this._hide),"click"===a?s.on("click",this._tryShow,this):a===C&&(s.on(C,this._mousemove,this),s.on(N,this._hide,this),s.on("globalout",this._hide,this))}},_mousemove:function(t){var e=this._tooltipModel.get("showDelay"),n=this;clearTimeout(this._showTimeout),e>0?this._showTimeout=setTimeout(function(){n._tryShow(t)},e):this._tryShow(t)},_manuallyShowTip:function(t){function e(e){var n=e[Dn](),i=_.queryDataIndex(n,t);return null!=i&&!m[M](i)&&n.hasValue(i)?!0:void 0}if(t.from!==this.uid){var n=this._ecModel,i=t[ee],r=n.getSeriesByIndex(i),a=this._api,o="axis"===this._tooltipModel.get(L);if(null==t.x||null==t.y){if(o?(r&&!e(r)&&(r=null),r||n[$](function(t){c(t)&&!r&&e(t)&&(r=t)})):r=r||n.getSeriesByIndex(0),r){var s=r[Dn](),l=_.queryDataIndex(s,t);if(null==l||m[M](l))return;var u,h,f=s[Ce](l),d=r[zn];if(r.getTooltipPosition){var p=r.getTooltipPosition(l)||[];u=p[0],h=p[1]}else if(d&&d[Ne]){var p=d[Ne](s.getValues(m.map(d[Ve],function(t){return r.coordDimToDataDim(t)[0]}),l,!0));u=p&&p[0],h=p&&p[1]}else if(f){var v=f[wn]().clone();v[X](f[j]),u=v.x+v.width/2,h=v.y+v[_n]/2}null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,position:t[cn],target:f,event:{}})}}else{var f=a.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,position:t[cn],target:f,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var n={};return e[$](function(t){if(c(t)){var e,i,r=t[zn];r.type===Qe?(e=r.getBaseAxis(),i=e.dim+e.index):"singleAxis"===r.type?(e=r[he](),i=e.dim+e.type):(e=r.getBaseAxis(),i=e.dim+r.name),n[i]=n[i]||{coordSys:[],series:[]},n[i].coordSys.push(r),n[i][G].push(t)}},this),n},_tryShow:function(t){var e=t[yn],n=this._tooltipModel,i=n.get(L),r=this._ecModel,a=this._api;if(n)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e[ve]){var o=e.dataModel||r.getSeriesByIndex(e[ee]),s=e[ve],l=o[Dn]()[Ye](s);"axis"===(l.get("tooltip.trigger")||i)?this._showAxisTooltip(n,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,e.dataType,t)),a[z]({type:"showTip",from:this.uid,dataIndexInside:e[ve],seriesIndex:e[ee]})}else if(e&&e.tooltip){var u=e.tooltip;if(typeof u===He){var c=u;u={content:c,formatter:c}}var h=new T(u,n),f=h.get("content"),d=Math.random();this._showTooltipContent(h,f,h.get("formatterParams")||{},d,t.offsetX,t.offsetY,t[cn],e,a)}else"item"===i?this._hide():this._showAxisTooltip(n,r,t),"cross"===n.get("axisPointer.type")&&a[z]({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,n,i){var r=t[Cn]("axisPointer"),a=r.get("type");if("cross"===a){var o=i[yn];if(o&&null!=o[ve]){var s=n.getSeriesByIndex(o[ee]),l=o[ve];this._showItemTooltipContent(s,l,o.dataType,i)}}this._showAxisPointer();var u=!0;m.each(this._seriesGroupByAxis,function(n){var o=n.coordSys,s=o[0],l=[i.offsetX,i.offsetY];if(!s.containPoint(l))return void this._hideAxisPointer(s.name);u=!1;var c=s[Ve],h=s.pointToData(l,!0);l=s[Ne](h);var f=s.getBaseAxis(),d=r.get("axis");"auto"===d&&(d=f.dim);var p=!1,v=this._lastHover;if("cross"===a)e(v.data,h)&&(p=!0),v.data=h;else{var g=m[Ze](c,d);v.data===h[g]&&(p=!0),v.data=h[g]}var y=t.get(Re);s.type!==Qe||p?"polar"!==s.type||p?"singleAxis"!==s.type||p||this._showSinglePointer(r,s,d,l,y):this._showPolarPointer(r,s,d,l,y):this._showCartesianPointer(r,s,d,l,y),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(s,n[G],l,h,p,i[cn])},this),this._tooltipModel.get("show")||this._hideAxisPointer(),u&&this._hide()},_showCartesianPointer:function(t,e,r,a,o){function s(i,r,a){var o="x"===i?n(r[0],a[0],r[0],a[1]):n(a[0],r[1],a[1],r[1]),s=u._getPointerElement(e,t,i,o);v.subPixelOptimizeLine({shape:o,style:s.style}),f?v[Ie](s,{shape:o},t):s.attr({shape:o})}function l(n,r,a){var o=e[he](n),s=o.getBandWidth(),l=a[1]-a[0],c="x"===n?i(r[0]-s/2,a[0],s,l):i(a[0],r[1]-s/2,l,s),h=u._getPointerElement(e,t,n,c);f?v[Ie](h,{shape:c},t):h.attr({shape:c})}var u=this,c=t.get("type"),h=e.getBaseAxis(),f=o&&"cross"!==c&&h.type===te&&h.getBandWidth()>20;if("cross"===c)s("x",a,e[he]("y").getGlobalExtent()),s("y",a,e[he]("x").getGlobalExtent()),this._updateCrossText(e,a,t);else{var d=e[he]("x"===r?"y":"x"),p=d.getGlobalExtent();e.type===Qe&&("line"===c?s:l)(r,a,p)}},_showSinglePointer:function(t,e,i,r,a){function o(i,r,a){var o=e[he](),l=o.orient,c=l===p?n(r[0],a[0],r[0],a[1]):n(a[0],r[1],a[1],r[1]),h=s._getPointerElement(e,t,i,c);u?v[Ie](h,{shape:c},t):h.attr({shape:c})}var s=this,l=t.get("type"),u=a&&"cross"!==l&&e.getBaseAxis().type===te,c=e.getRect(),h=[c.y,c.y+c[_n]];o(i,r,h)},_showPolarPointer:function(t,e,i,a,o){function s(i,r,a){var o,s=e.pointToCoord(r);if("angle"===i){var l=e.coordToPoint([a[0],s[1]]),c=e.coordToPoint([a[1],s[1]]);o=n(l[0],l[1],c[0],c[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var h=u._getPointerElement(e,t,i,o);d?v[Ie](h,{shape:o},t):h.attr({shape:o})}function l(n,i,a){var o,s=e[he](n),l=s.getBandWidth(),c=e.pointToCoord(i),h=Math.PI/180;o="angle"===n?r(e.cx,e.cy,a[0],a[1],(-c[1]-l/2)*h,(-c[1]+l/2)*h):r(e.cx,e.cy,c[0]-l/2,c[0]+l/2,0,2*Math.PI);var f=u._getPointerElement(e,t,n,o);d?v[Ie](f,{shape:o},t):f.attr({shape:o})}var u=this,c=t.get("type"),h=e.getAngleAxis(),f=e.getRadiusAxis(),d=o&&"cross"!==c&&e.getBaseAxis().type===te;if("cross"===c)s("angle",a,f[Ke]()),s(de,a,h[Ke]()),this._updateCrossText(e,a,t);else{var p=e[he](i===de?"angle":de),m=p[Ke]();("line"===c?s:l)(i,a,m)}},_updateCrossText:function(t,e,n){var i=n[Cn]("crossStyle"),r=i[Cn](Tn),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new v.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(o));var s=t.pointToData(e),l=t[Ve];s=m.map(s,function(e,n){var i=t[he](l[n]);return e=i.type===te||"time"===i.type?i.scale.getLabel(e):g.addCommas(e.toFixed(i.getPixelPrecision()))}),o[un]({fill:r[bn]()||i.get("color"),textFont:r[Mn](),text:s.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o[ae]=a.get(ae)},_getPointerElement:function(t,e,n,i){var r=this._tooltipModel,a=r.get("z"),o=r.get(ae),s=this._axisPointers,l=t.name;if(s[l]=s[l]||{},s[l][n])return s[l][n];var u=e.get("type"),c=e[Cn](u+"Style"),h="shadow"===u,f=c[h?"getAreaStyle":se](),p="polar"===t.type?h?"Sector":n===de?"Circle":"Line":h?"Rect":"Line";h?f[d]=null:f.fill=null;var m=s[l][n]=new v[p]({style:f,z:a,zlevel:o,silent:!0,shape:i});return this.group.add(m),m},_dispatchAndShowSeriesTooltipContent:function(t,e,n,i,r,a){var o,s=this._tooltipModel,l=t.getBaseAxis(),c="x"===l.dim||l.dim===de?0:1,h=m.map(e,function(t){return{seriesIndex:t[ee],dataIndexInside:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(l.dim),i,l):t[Dn]().indexOfNearest(t.coordDimToDataDim(l.dim)[0],i[c],!1,l.type===te?.5:null)}});m.each(h,function(t,n){e[n][Dn]().hasValue(t.dataIndexInside)&&(o=n)}),o=o||0;var f=this._lastHover,d=this._api;if(f.payloadBatch&&!r&&d[z]({type:"downplay",batch:f.payloadBatch}),r||(d[z]({type:"highlight",batch:h}),f.payloadBatch=h),d[z]({type:"showTip",dataIndexInside:h[o].dataIndexInside,seriesIndex:h[o][ee],from:this.uid}),l&&s.get("showContent")&&s.get("show")){var p=m.map(e,function(t,e){return t[$e](h[e].dataIndexInside)});if(r)u(a||s.get(cn),n[0],n[1],s.get("confine"),this._tooltipContent,p,null,d);else{var v=h[o].dataIndexInside,g="time"===l.type?l.scale.getLabel(i[c]):e[o][Dn]()[H](v),y=(g?g+"<br />":"")+m.map(e,function(t,e){return t.formatTooltip(h[e].dataIndexInside,!0)}).join("<br />"),x="axis_"+t.name+"_"+v;this._showTooltipContent(s,y,p,x,n[0],n[1],a,null,d)}}},_showItemTooltipContent:function(t,e,n,i){var r=this._api,a=t[Dn](n),o=a[Ye](e),s=o.get("tooltip",!0);if(typeof s===He){var l=s;s={formatter:l}}var u=this._tooltipModel,c=t[Cn]("tooltip",u),h=new T(s,c,c[f]),d=t[$e](e,n),p=t.formatTooltip(e,!1,n),v="item_"+t.name+"_"+e;this._showTooltipContent(h,p,d,v,i.offsetX,i.offsetY,i[cn],i[yn],r)},_showTooltipContent:function(t,e,n,i,r,a,o,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent,h=t.get("confine"),f=t.get("formatter");o=o||t.get(cn);var d=e;if(f)if(typeof f===He)d=g.formatTpl(f,n);else if(typeof f===Je){var p=this,v=i,m=function(t,e){t===p._ticket&&(c.setContent(e),u(o,r,a,h,c,n,s,l))};p._ticket=v,d=f(n,v,m)}c.show(t),c.setContent(d),u(o,r,a,h,c,n,s,l)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&m.each(e,function(t){t.show()})}else this.group.eachChild(function(t){t.show()}),this.group.show()},_resetLastHover:function(){var t=this._lastHover;t.payloadBatch&&this._api[z]({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&m.each(e,function(t){t.hide()})}else this.group.children()[rn]&&this.group.hide()},_hide:function(){clearTimeout(this._showTimeout),this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api[z]({type:"hideTip",from:this.uid}),this._lastX=this._lastY=null},dispose:function(t,e){if(!S.node){var n=e.getZr();this._tooltipContent.hide(),n.off("click",this._tryShow),n.off(C,this._mousemove),n.off(N,this._hide),n.off("globalout",this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}}})}),e("echarts/model/Series",[Rn,On,"../util/format","../util/model","./Component","./mixin/colorPalette",B,"../util/layout"],function(t){var e=t(On),n=t("../util/format"),i=t("../util/model"),r=t("./Component"),a=t("./mixin/colorPalette"),o=t(B),s=t("../util/layout"),l=n.encodeHTML,u=n.addCommas,c=r[an]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",layoutMode:null,init:function(t,e,n){this[ee]=this[Q],this.mergeDefaultAndTheme(t,n),this._dataBeforeProcessed=this.getInitialData(t,n),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,n){var r=this.layoutMode,a=r?s.getLayoutParams(t):{};e.merge(t,n.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),i.defaultEmphasis(t.label,i.LABEL_OPTIONS),this.fillDataTextStyle(t.data),r&&s.mergeLayoutParam(t,a,r)},mergeOption:function(t,n){t=e.merge(this[W],t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&s.mergeLayoutParam(this[W],t,i);var r=this.getInitialData(t,n);r&&(this._data=r,this._dataBeforeProcessed=r.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e<t[rn];e++)t[e]&&t[e].label&&i.defaultEmphasis(t[e].label,i.LABEL_OPTIONS)},getInitialData:function(){},getData:function(t){return null==t?this._data:this._data.getLinkedData(t)},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},coordDimToDataDim:function(t){return[t]},dataDimToCoordDim:function(t){return t},getBaseAxis:function(){var t=this[zn];return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,i){function r(t){var r=[];return e.each(t,function(t,e){var o,s=a.getDimensionInfo(e),l=s&&s.type;o=l===ie?t+"":"time"===l?i?"":n.formatTime("yyyy/MM/dd hh:mm:ss",t):u(t),o&&r.push(o)}),r.join(", ")}var a=this._data,o=this.getRawValue(t),s=e[M](o)?r(o):u(o),c=a[H](t),h=a[Se](t,"color");e[k](h)&&h[D]&&(h=(h[D][0]||{}).color),h=h||"transparent";var f='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+h+'"></span>',d=this.name;return"\x00-"===d&&(d=""),i?f+l(this.name)+" : "+s:(d&&l(d)+"<br />")+f+(c?l(c)+" : "+s:s)},ifEnableAnimation:function(){if(o.node)return!1;var t=this[Ue](Re);return t&&this[Dn]().count()>this[Ue]("animationThreshold")&&(t=!1),t},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(t,e){var n=this[f],i=a.getColorFromPalette.call(this,t,e);return i||(i=n.getColorFromPalette(t,e)),i},getAxisTooltipDataIndex:null,getTooltipPosition:null});return e.mixin(c,i.dataFormatMixin),e.mixin(c,a),c}),e("echarts/view/Component",[Rn,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),n=t("../util/component"),i=t("../util/clazz"),r=function(){this.group=new e,this.uid=n.getUID("viewComponent")};r[on]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[on];return a.updateView=a[I]=a.updateVisual=function(){},i.enableClassExtend(r),i.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/model/OptionManager",[Rn,On,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function n(t,e,n){var i,r,a=[],o=[],l=t.timeline;if(t.baseOption&&(r=t.baseOption),(l||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var u=t.media;c(u,function(t){t&&t[W]&&(t.query?o.push(t):i||(i=t))})}return r||(r=t),r.timeline||(r.timeline=l),c([r][Fe](a)[Fe](s.map(o,function(t){return t[W]})),function(t){c(e,function(e){e(t,n)})}),{baseOption:r,timelineOptions:a,mediaDefault:i,mediaList:o}}function i(t,e,n){var i={width:e,height:n,aspectratio:e/n},a=!0;return s.each(t,function(t,e){var n=e.match(p);if(n&&n[1]&&n[2]){var o=n[1],s=n[2][R]();r(i[s],t,o)||(a=!1)}}),a}function r(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,n){if(null!=e){var i=t[n];if(u.hasClass(n)){e=l.normalizeToArray(e),i=l.normalizeToArray(i);var r=l.mappingToExists(i,e);t[n]=f(r,function(t){return t[W]&&t.exist?d(t.exist,t[W],!0):t.exist||t[W]})}else t[n]=d(i,e,!0)}})}var s=t(On),l=t("../util/model"),u=t("./Component"),c=s.each,h=s.clone,f=s.map,d=s.merge,p=/^(min|max)?(.+)$/;return e[on]={constructor:e,setOption:function(t,e){t=h(t,!0);var i=this._optionBackup,r=n.call(this,t,e,!i);this._newBaseOption=r.baseOption,i?(o(i.baseOption,r.baseOption),r.timelineOptions[rn]&&(i.timelineOptions=r.timelineOptions),r.mediaList[rn]&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=f(e.timelineOptions,h),this._mediaList=f(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n[rn]){var i=t[F]("timeline");i&&(e=h(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[vn](),e=this._api[pn](),n=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!n[rn]&&!r)return s;for(var l=0,u=n[rn];u>l;l++)i(n[l].query,t,e)&&o.push(l);return!o[rn]&&r&&(o=[-1]),o[rn]&&!a(o,this._currentMediaIndices)&&(s=f(o,function(t){return h(-1===t?r[W]:n[t][W])})),this._currentMediaIndices=o,s}},e}),e("echarts/chart/helper/createListFromArray",[Rn,"../../data/List","../../data/helper/completeDimensions",On,pe,"../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[rn]&&null==t[e];)e++;return t[e]}function n(t){var n=e(t);return null!=n&&!c[M](d(n))}function i(t,e,i){t=t||[];var r=e.get(zn),a=v[r],l=f.get(r),m=a&&a(t,e,i),g=m&&m[Ve];g||(g=l&&l[Ve]||["x","y"],g=u(g,t,g[Fe](["value"])));var y=m?m.categoryIndex:-1,x=new s(g,e),_=o(m,t),w={},b=y>=0&&n(t)?function(t,e,n,i){return h.isDataItemOption(t)&&(x[U]=!0),i===y?n:p(d(t),g[i])}:function(t,e,n,i){var r=d(t),a=p(r&&r[i],g[i]);h.isDataItemOption(t)&&(x[U]=!0);var o=m&&m.categoryAxesModels;return o&&o[e]&&typeof a===He&&(w[e]=w[e]||o[e].getCategories(),a=c[Ze](w[e],a),0>a&&!isNaN(a)&&(a=+a)),a};return x[U]=!1,x.initData(t,_,b),x}function r(t){return t!==te&&"time"!==t}function a(t){return t===te?ie:"time"===t?"time":"float"}function o(t,e){var n,i=[],r=t&&t[Ve][t.categoryIndex];if(r&&(n=t.categoryAxesModels[r.name]),n){var a=n.getCategories();if(a){var o=e[rn];if(c[M](e[0])&&e[0][rn]>1){i=[];for(var s=0;o>s;s++)i[s]=a[e[s][t.categoryIndex||0]]}else i=a.slice(0)}}return i}var s=t("../../data/List"),u=t("../../data/helper/completeDimensions"),c=t(On),h=t(pe),f=t("../../CoordinateSystem"),d=h.getDataItemValue,p=h.converDataValue,v={cartesian2d:function(t,e,n){var i=c.map(["xAxis","yAxis"],function(t){return n[l]({mainType:t,index:e.get(t+"Index"),id:e.get(t+"Id")})[0]}),o=i[0],s=i[1],h=o.get("type"),f=s.get("type"),d=[{name:"x",type:a(h),stackable:r(h)},{name:"y",type:a(f),stackable:r(f)}],p=h===te,v=f===te;u(d,t,["x","y","z"]);var m={};return p&&(m.x=o),v&&(m.y=s),{dimensions:d,categoryIndex:p?0:v?1:-1,categoryAxesModels:m}},polar:function(t,e,n){var i=n[l]({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0],o=i.findAxisModel("angleAxis"),s=i.findAxisModel("radiusAxis"),c=s.get("type"),h=o.get("type"),f=[{name:"radius",type:a(c),stackable:r(c)},{name:"angle",type:a(h),stackable:r(h)}],d=h===te,p=c===te;u(f,t,[de,"angle","value"]);var v={};return p&&(v[de]=s),d&&(v.angle=o),{dimensions:f,categoryIndex:d?1:p?0:-1,categoryAxesModels:v}},geo:function(t){return{dimensions:u([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return i}),e("echarts/view/Chart",[Rn,"zrender/container/Group","../util/component","../util/clazz","../util/model",On],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function n(t,e){if(t&&(t[L](e),"group"===t.type))for(var i=0;i<t.childCount();i++)n(t[y](i),e)}function i(t,e,i){var r=s.queryDataIndex(t,e);null!=r?l.each(s.normalizeToArray(r),function(e){n(t[Ce](e),i)}):t[Te](function(t){n(t,i)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz"),s=t("../util/model"),l=t(On);e[on]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,n,r){i(t[Dn](),r,ge)},downplay:function(t,e,n,r){i(t[Dn](),r,Oe)},remove:function(){this.group[kn]()},dispose:function(){}};var u=e[on];return u.updateView=u[I]=u.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},o.enableClassExtend(e,[P]),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/throttle",[],function(){var t={},e="\x00__throttleOriginMethod",n="\x00__throttleRate",i="\x00__throttleType";return t.throttle=function(t,e,n){function i(){u=(new Date).getTime(),c=null,t.apply(o,s||[])}var r,a,o,s,l=0,u=0,c=null;e=e||0;var h=function(){r=(new Date).getTime(),o=this,s=arguments,a=r-(n?l:u)-e,clearTimeout(c),n?c=setTimeout(i,e):a>=0?i():c=setTimeout(i,-a),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h},t.createOrUpdate=function(r,a,o,s){var l=r[a];if(l){var u=l[e]||l,c=l[i],h=l[n];if(h!==o||c!==s){if(null==o||!s)return r[a]=u;l=r[a]=t.throttle(u,o,"debounce"===s),l[e]=u,l[i]=s,l[n]=o}return l}},t.clear=function(t,n){var i=t[n];i&&i[e]&&(t[n]=i[e])},t}),e("zrender/vml/graphic",[Rn,"../core/env","../core/vector","../core/BoundingRect","../core/PathProxy","../tool/color","../contain/text","../graphic/mixin/RectText","../graphic/Displayable","../graphic/Image","../graphic/Text","../graphic/Path","../graphic/Gradient","./core"],function(t){if(!t("../core/env")[O]){var e=t("../core/vector"),n=t("../core/BoundingRect"),i=t("../core/PathProxy").CMD,r=t("../tool/color"),o=t("../contain/text"),s=t("../graphic/mixin/RectText"),l=t("../graphic/Displayable"),u=t("../graphic/Image"),h=t("../graphic/Text"),f=t("../graphic/Path"),p=t("../graphic/Gradient"),v=t("./core"),m=Math.round,g=Math.sqrt,y=Math.abs,x=Math.cos,_=Math.sin,w=Math.max,b=e[X],M=",",T="progid:DXImageTransform.Microsoft",C=21600,A=C/2,P=1e5,L=1e3,z=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=C+","+C,t.coordorigin="0,0"},k=function(t){return String(t)[S](/&/g,"&amp;")[S](/"/g,"&quot;")},I=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},R=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},E=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},B=function(t,e,n){return(parseFloat(t)||0)*P+(parseFloat(e)||0)*L+n},N=function(t,e){return typeof t===He?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},V=function(t,e,n){var i=r.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=I(i[0],i[1],i[2]),t[ln]=n*i[3])},F=function(t){var e=r.parse(t);return[I(e[0],e[1],e[2]),e[3]]},G=function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof p){var r,a=0,o=[0,0],s=0,l=1,u=n[wn](),c=u.width,h=u[_n];if("linear"===i.type){r="gradient";var f=n[j],d=[i.x*c,i.y*h],v=[i.x2*c,i.y2*h];f&&(b(d,d,f),b(v,v,f));var m=v[0]-d[0],g=v[1]-d[1];a=180*Math.atan2(m,g)/Math.PI,0>a&&(a+=360),1e-6>a&&(a=0)}else{r="gradientradial";var d=[i.x*c,i.y*h],f=n[j],y=n.scale,x=c,_=h;o=[(d[0]-u.x)/x,(d[1]-u.y)/_],f&&b(d,d,f),x/=y[0]*C,_/=y[1]*C;var M=w(x,_);s=0/M,l=2*i.r/M-s}var S=i[D].slice();S.sort(function(t,e){return t.offset-e.offset});for(var T=S[rn],A=[],P=[],L=0;T>L;L++){var z=S[L],k=F(z.color);P.push(z.offset*l+s+" "+k[0]),(0===L||L===T-1)&&A.push(k)}if(T>=2){var I=A[0][0],O=A[1][0],R=A[0][1]*e[ln],E=A[1][1]*e[ln];t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=I,t.color2=O,t.colors=P.join(","),t[ln]=E,t.opacity2=R}"radial"===r&&(t.focusposition=o.join(","))}else V(t,i,e[ln])},H=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[d]||e[d]instanceof p||V(t,e[d],e[ln])},Z=function(t,e,n,i){var r="fill"==e,a=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n[c])?(t[r?"filled":"stroked"]="true",n[e]instanceof p&&E(t,a),a||(a=v.createNode(e)),r?G(a,n,i):H(a,n),R(t,a)):(t[r?"filled":"stroked"]="false",E(t,a))},q=[[],[],[]],W=function(t,e){var n,r,a,o,s,l,u=i.M,c=i.C,h=i.L,f=i.A,d=i.Q,p=[];for(o=0;o<t[rn];){switch(a=t[o++],r="",n=0,a){case u:r=" m ",n=1,s=t[o++],l=t[o++],q[0][0]=s,q[0][1]=l;break;case h:r=" l ",n=1,s=t[o++],l=t[o++],q[0][0]=s,q[0][1]=l;break;case d:case c:r=" c ",n=3;var v,y,w=t[o++],S=t[o++],T=t[o++],P=t[o++];a===d?(v=T,y=P,T=(T+2*w)/3,P=(P+2*S)/3,w=(s+2*w)/3,S=(l+2*S)/3):(v=t[o++],y=t[o++]),q[0][0]=w,q[0][1]=S,q[1][0]=T,q[1][1]=P,q[2][0]=v,q[2][1]=y,s=v,l=y;break;case f:var L=0,z=0,k=1,I=1,D=0;e&&(L=e[4],z=e[5],k=g(e[0]*e[0]+e[1]*e[1]),I=g(e[2]*e[2]+e[3]*e[3]),D=Math.atan2(-e[1]/I,e[0]/k));var O=t[o++],R=t[o++],E=t[o++],B=t[o++],N=t[o++]+D,V=t[o++]+N+D;o++;var F=t[o++],G=O+x(N)*E,H=R+_(N)*B,w=O+x(V)*E,S=R+_(V)*B,Z=F?" wa ":" at ";Math.abs(G-w)<1e-10&&(Math.abs(V-N)>.01?F&&(G+=270/C):Math.abs(H-R)<1e-10?F&&O>G||!F&&G>O?S-=270/C:S+=270/C:F&&R>H||!F&&H>R?w+=270/C:w-=270/C),p.push(Z,m(((O-E)*k+L)*C-A),M,m(((R-B)*I+z)*C-A),M,m(((O+E)*k+L)*C-A),M,m(((R+B)*I+z)*C-A),M,m((G*k+L)*C-A),M,m((H*I+z)*C-A),M,m((w*k+L)*C-A),M,m((S*I+z)*C-A)),s=w,l=S;break;case i.R:var W=q[0],X=q[1];W[0]=t[o++],W[1]=t[o++],X[0]=W[0]+t[o++],X[1]=W[1]+t[o++],e&&(b(W,W,e),b(X,X,e)),W[0]=m(W[0]*C-A),X[0]=m(X[0]*C-A),W[1]=m(W[1]*C-A),X[1]=m(X[1]*C-A),p.push(" m ",W[0],M,W[1]," l ",X[0],M,W[1]," l ",X[0],M,X[1]," l ",W[0],M,X[1]);break;case i.Z:p.push(" x ")}if(n>0){p.push(r);for(var j=0;n>j;j++){var U=q[j];e&&b(U,U,e),p.push(m(U[0]*C-A),M,m(U[1]*C-A),n-1>j?M:"")}}}return p.join("")};f[on].brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=v.createNode("shape"),z(n),this._vmlEl=n),Z(n,"fill",e,this),Z(n,d,e,this);var i=this[j],r=null!=i,o=n.getElementsByTagName(d)[0];if(o){var s=e[c];if(r&&!e.strokeNoScale){var l=i[0]*i[3]-i[1]*i[2];s*=g(y(l))}o.weight=s+"px"}var u=this.path;this.__dirtyPath&&(u.beginPath(),this[a](u,this.shape),u.toStatic(),this.__dirtyPath=!1),n.path=W(u.data,this[j]),n.style.zIndex=B(this[ae],this.z,this.z2),R(t,n),null!=e.text?this.drawRectText(t,this[wn]()):this.removeRectText(t)},f[on].onRemove=function(t){E(t,this._vmlEl),this.removeRectText(t)},f[on].onAdd=function(t){R(t,this._vmlEl),this.appendRectText(t)};var U=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};u[on].brushVML=function(t){var e,n,i=this.style,r=i.image;if(U(r)){var a=r.src;if(a===this._imageSrc)e=this._imageWidth,n=this._imageHeight;else{var o=r.runtimeStyle,s=o.width,l=o[_n];o.width="auto",o[_n]="auto",e=r.width,n=r[_n],o.width=s,o[_n]=l,this._imageSrc=a,this._imageWidth=e,this._imageHeight=n}r=a}else r===this._imageSrc&&(e=this._imageWidth,n=this._imageHeight);if(r){var u=i.x||0,c=i.y||0,h=i.width,f=i[_n],d=i.sWidth,p=i.sHeight,y=i.sx||0,x=i.sy||0,_=d&&p,S=this._vmlEl;S||(S=v.doc[Xe]("div"),z(S),this._vmlEl=S);var C,A=S.style,P=!1,L=1,k=1;if(this[j]&&(C=this[j],L=g(C[0]*C[0]+C[1]*C[1]),k=g(C[2]*C[2]+C[3]*C[3]),P=C[1]||C[2]),P){var I=[u,c],D=[u+h,c],O=[u,c+f],E=[u+h,c+f];b(I,I,C),b(D,D,C),b(O,O,C),b(E,E,C);var N=w(I[0],D[0],O[0],E[0]),V=w(I[1],D[1],O[1],E[1]),F=[];F.push("M11=",C[0]/L,M,"M12=",C[2]/k,M,"M21=",C[1]/L,M,"M22=",C[3]/k,M,"Dx=",m(u*L+C[4]),M,"Dy=",m(c*k+C[5])),A.padding="0 "+m(N)+"px "+m(V)+"px 0",A[je]=T+".Matrix("+F.join("")+", SizingMethod=clip)"}else C&&(u=u*L+C[4],c=c*k+C[5]),A[je]="",A.left=m(u)+"px",A.top=m(c)+"px";var G=this._imageEl,H=this._cropEl;G||(G=v.doc[Xe]("div"),this._imageEl=G);var Z=G.style;if(_){if(e&&n)Z.width=m(L*e*h/d)+"px",Z[_n]=m(k*n*f/p)+"px";else{var q=new Image,W=this;q.onload=function(){q.onload=null,e=q.width,n=q[_n],Z.width=m(L*e*h/d)+"px",Z[_n]=m(k*n*f/p)+"px",W._imageWidth=e,W._imageHeight=n,W._imageSrc=r},q.src=r}H||(H=v.doc[Xe]("div"),H.style.overflow="hidden",this._cropEl=H);var X=H.style;X.width=m((h+y*h/d)*L),X[_n]=m((f+x*f/p)*k),X[je]=T+".Matrix(Dx="+-y*h/d*L+",Dy="+-x*f/p*k+")",H.parentNode||S.appendChild(H),G.parentNode!=H&&H.appendChild(G)}else Z.width=m(L*h)+"px",Z[_n]=m(k*f)+"px",S.appendChild(G),H&&H.parentNode&&(S.removeChild(H),this._cropEl=null);var Y="",$=i[ln];1>$&&(Y+=".Alpha(opacity="+m(100*$)+") "),Y+=T+".AlphaImageLoader(src="+r+", SizingMethod=scale)",Z[je]=Y,S.style.zIndex=B(this[ae],this.z,this.z2),R(t,S),null!=i.text&&this.drawRectText(t,this[wn]())}},u[on].onRemove=function(t){E(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},u[on].onAdd=function(t){R(t,this._vmlEl),this.appendRectText(t)};var Y,$=Oe,J={},Q=0,K=100,te=document[Xe]("div"),ee=function(t){var e=J[t];if(!e){Q>K&&(Q=0,J={});var n,i=te.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(r){}e={style:i.fontStyle||$,variant:i.fontVariant||$,weight:i.fontWeight||$,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},J[t]=e,Q++}return e};o.measureText=function(t,e){var n=v.doc;Y||(Y=n[Xe]("div"),Y.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(Y));try{Y.style.font=e}catch(i){}return Y.innerHTML="",Y.appendChild(n.createTextNode(t)),{width:Y.offsetWidth}
};for(var ne=new n,ie=function(t,e,n,i){var r=this.style,a=r.text;if(null!=a&&(a+=""),a){var s,l,u=r[Sn],c=ee(r.textFont),h=c.style+" "+c.variant+" "+c.weight+" "+c.size+'px "'+c.family+'"',f=r.textBaseline,p=r.textVerticalAlign;n=n||o[wn](a,h,u,f);var g=this[j];if(g&&!i&&(ne.copy(e),ne[X](g),e=ne),i)s=e.x,l=e.y;else{var y=r.textPosition,x=r.textDistance;if(y instanceof Array)s=e.x+N(y[0],e.width),l=e.y+N(y[1],e[_n]),u=u||"left",f=f||"top";else{var _=o.adjustTextPositionOnRect(y,e,n,x);s=_.x,l=_.y,u=u||_[Sn],f=f||_.textBaseline}}if(p){switch(p){case dn:l-=n[_n]/2;break;case hn:l-=n[_n]}f="top"}var w=c.size;switch(f){case"hanging":case"top":l+=w/1.75;break;case dn:break;default:l-=w/2.25}switch(u){case"left":break;case fn:s-=n.width/2;break;case"right":s-=n.width}var S,T,C,A=v.createNode,P=this._textVmlEl;P?(C=P.firstChild,S=C.nextSibling,T=S.nextSibling):(P=A("line"),S=A("path"),T=A("textpath"),C=A("skew"),T.style["v-text-align"]="left",z(P),S.textpathok=!0,T.on=!0,P.from="0 0",P.to="1000 0.05",R(P,C),R(P,S),R(P,T),this._textVmlEl=P);var L=[s,l],I=P.style;g&&i?(b(L,L,g),C.on=!0,C.matrix=g[0].toFixed(3)+M+g[2].toFixed(3)+M+g[1].toFixed(3)+M+g[3].toFixed(3)+",0,0",C.offset=(m(L[0])||0)+","+(m(L[1])||0),C.origin="0 0",I.left="0px",I.top="0px"):(C.on=!1,I.left=m(s)+"px",I.top=m(l)+"px"),T[He]=k(a);try{T.style.font=h}catch(D){}Z(P,"fill",{fill:i?r.fill:r.textFill,opacity:r[ln]},this),Z(P,d,{stroke:i?r[d]:r.textStroke,opacity:r[ln],lineDash:r.lineDash},this),P.style.zIndex=B(this[ae],this.z,this.z2),R(t,P)}},re=function(t){E(t,this._textVmlEl),this._textVmlEl=null},oe=function(t){R(t,this._textVmlEl)},se=[s,l,u,f,h],le=0;le<se[rn];le++){var ue=se[le][on];ue.drawRectText=ie,ue.removeRectText=re,ue.appendRectText=oe}h[on].brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this[wn](),!0):this.removeRectText(t)},h[on].onRemove=function(t){this.removeRectText(t)},h[on].onAdd=function(t){this.appendRectText(t)}}}),e("echarts/model/Global",[Rn,On,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){u.each(e,function(e,n){y.hasClass(n)||("object"==typeof e?t[n]=t[n]?u.merge(t[n],e,!1):u.clone(e):null==t[n]&&(t[n]=e))})}function n(t){t=t,this[W]={},this[W][_]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[W]),u.merge(t,x,!1),this[Z](t)}function i(t,e){u[M](e)||(e=e?[e]:[]);var n={};return f(e,function(e){n[e]=(t[e]||[]).slice()}),n}function r(t,e,n){var i=e.type?e.type:n?n.subType:y.determineSubType(t,e);return i}function a(t){return p(t,function(t){return t[Q]})||[]}function o(t,e){return e.hasOwnProperty("subType")?d(t,function(t){return t.subType===e.subType}):t}function s(t){}var u=t(On),c=t("../util/model"),h=t("./Model"),f=u.each,d=u[je],p=u.map,v=u[M],m=u[Ze],g=u[k],y=t("./Component"),x=t("./globalDefault"),_="\x00_ec_inner",w=h[an]({constructor:w,init:function(t,e,n,i){n=n||{},this[W]=null,this._theme=new h(n),this._optionManager=i},setOption:function(t,e){u.assert(!(_ in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this[W]&&"recreate"!==t?(this.restoreData(),this[Z](r)):n.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(this[Z](a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o[rn]&&f(o,function(t){this[Z](t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var l=c.normalizeToArray(t[e]),h=c.mappingToExists(o[e],l);c.makeIdAndName(h),f(h,function(t){var n=t[W];g(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=r(e,n,t.exist))});var d=i(o,s);n[e]=[],o[e]=[],f(h,function(t,i){var r=t.exist,a=t[W];if(u.assert(g(a)||r,"Empty component definition"),a){var s=y.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.name=t.keyInfo.name,r[Z](a,this),r.optionUpdated(a,!1);else{var l=u[an]({dependentModels:d,componentIndex:i},t.keyInfo);r=new s(a,this,this,l),u[an](r,l),r.init(a,this,this,l),r.optionUpdated(null,!0)}}else r[Z]({},this),r.optionUpdated({},!1);o[e][i]=r,n[e][i]=r[W]},this),e===G&&(this._seriesIndices=a(o[G]))}var n=this[W],o=this._componentsMap,s=[];f(t,function(t,e){null!=t&&(y.hasClass(e)?s.push(e):n[e]=null==n[e]?u.clone(t):u.merge(n[e],t,!0))}),y.topologicalTravel(s,y.getAllClassMainTypes(),e,this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=u.clone(this[W]);return f(t,function(e,n){if(y.hasClass(n)){for(var e=c.normalizeToArray(e),i=e[rn]-1;i>=0;i--)c.isIdInner(e[i])&&e[A](i,1);t[n]=e}}),delete t[_],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap[t];return n?n[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[rn])return[];var s;if(null!=n)v(n)||(n=[n]),s=d(p(n,function(t){return a[t]}),function(t){return!!t});else if(null!=i){var l=v(i);s=d(a,function(t){return l&&m(i,t.id)>=0||!l&&t.id===i})}else if(null!=r){var u=v(r);s=d(a,function(t){return u&&m(r,t.name)>=0||!u&&t.name===r})}else s=a;return o(s,t)},findComponents:function(t){function e(t){var e=r+"Index",n=r+"Id",i=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(n)||t.hasOwnProperty(i))?{mainType:r,index:t[e],id:t[n],name:t[i]}:null}function n(e){return t[je]?d(e,t[je]):e}var i=t.query,r=t.mainType,a=e(i),s=a?this[l](a):this._componentsMap[r];return n(o(s,t))},eachComponent:function(t,e,n){var i=this._componentsMap;if(typeof t===Je)n=e,e=t,f(i,function(t,i){f(t,function(t,r){e.call(n,i,t,r)})});else if(u.isString(t))f(i[t],e,n);else if(g(t)){var r=this.findComponents(t);f(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap[G];return d(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[G][t]},getSeriesByType:function(t){var e=this._componentsMap[G];return d(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[G].slice()},eachSeries:function(t,e){s(this),f(this._seriesIndices,function(n){var i=this._componentsMap[G][n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){f(this._componentsMap[G],t,e)},eachSeriesByType:function(t,e,n){s(this),f(this._seriesIndices,function(i){var r=this._componentsMap[G][i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return f(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return s(this),u[Ze](this._seriesIndices,t[Q])<0},filterSeries:function(t,e){s(this);var n=d(this._componentsMap[G],t,e);this._seriesIndices=a(n)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=a(t[G]);var e=[];f(t,function(t,n){e.push(n)}),y.topologicalTravel(e,y.getAllClassMainTypes(),function(e){f(t[e],function(t){t.restoreData()})})}});return u.mixin(w,t("./mixin/colorPalette")),w}),e("echarts/model/Component",[Rn,"./Model",On,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return i.each(u.getClassesByMainType(t),function(t){r.apply(e,t[on].dependencies||[])}),i.map(e,function(t){return o.parseClassType(t).main})}var n=t("./Model"),i=t(On),r=Array[on].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),u=n[an]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,i,r){n.call(this,t,e,i,r),this.uid=a.getUID("componentModel")},init:function(t,e,n){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,r=n?s.getLayoutParams(t):{},a=e.getTheme();i.merge(t,a.get(this.mainType)),i.merge(t,this.getDefaultOption()),n&&s.mergeLayoutParam(t,r,n)},mergeOption:function(t){i.merge(this[W],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[W],t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var n=e[on].defaultOption;n&&t.push(n),e=e.superClass}for(var r={},a=t[rn]-1;a>=0;a--)r=i.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption},getReferringComponents:function(t){return this[f][l]({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});return o.enableClassManagement(u,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(u),a.enableTopologicalTravel(u,e),i.mixin(u,t("./mixin/boxLayout")),u}),e("echarts/visual/seriesColor",[Rn,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t){function n(n){var i=(n.visualColorAccessPath||"itemStyle.normal.color").split("."),r=n[Dn](),a=n.get(i)||n.getColorFromPalette(n.get("name"));r.setVisual("color",a),t.isSeriesFiltered(n)||(typeof a!==Je||a instanceof e||r.each(function(t){r.setItemVisual(t,"color",a(n[$e](t)))}),r.each(function(t){var e=r[Ye](t),n=e.get(i,!0);null!=n&&r.setItemVisual(t,"color",n)}))}t.eachRawSeries(n)}}),e("echarts/preprocessor/backwardCompat",[Rn,On,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var n=t,i=0;i<e[rn]&&(n=n&&n[e[i]],null!=n);i++);return n}function n(t,e,n,i){e=e.split(",");for(var r,a=t,o=0;o<e[rn]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[e[o]])&&(a[e[o]]=n)}function i(t){u(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(On),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",hn]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],l=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],u=r.each;return function(t){u(t[G],function(t){if(r[k](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&n(t,"itemStyle.normal.color",s)}for(var u=0;u<l[rn];u++)if(l[u]===t.type){i(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),u(s,function(e){var n=t[e];n&&(r[M](n)||(n=[n]),u(n,function(t){i(t)}))})}}),e("echarts/loading/default",[Rn,"../util/graphic",On],function(t){var e=t("../util/graphic"),n=t(On),i=Math.PI;return function(t,r){r=r||{},n[Ln](r,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var a=new e.Rect({style:{fill:r.maskColor},zlevel:r[ae],z:1e4}),o=new e.Arc({shape:{startAngle:-i/2,endAngle:-i/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r[ae],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[ae],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*i/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*i/2}).delay(300).start("circularInOut");var l=new e.Group;return l.add(o),l.add(s),l.add(a),l[K]=function(){var e=t[vn]()/2,n=t[pn]()/2;o[Me]({cx:e,cy:n});var i=o.shape.r;s[Me]({x:e-i,y:n-i,width:2*i,height:2*i}),a[Me]({x:0,y:0,width:t[vn](),height:t[pn]()})},l[K](),l}}),e("echarts/model/Model",[Rn,On,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,n){this.parentModel=e,this[f]=n,this[W]=t}var n=t(On),i=t("../util/clazz");e[on]={constructor:e,init:null,mergeOption:function(t){n.merge(this[W],t,!0)},get:function(t,e){if(!t)return this[W];typeof t===He&&(t=t.split("."));for(var n=this[W],i=this.parentModel,r=0;r<t[rn]&&(!t[r]||(n=n&&"object"==typeof n?n[t[r]]:null,null!=n));r++);return null==n&&i&&!e&&(n=i.get(t)),n},getShallow:function(t,e){var n=this[W],i=null==n?n:n[t],r=this.parentModel;return null==i&&r&&!e&&(i=r[Ue](t)),i},getModel:function(t,n){var i=this.get(t,!0),r=this.parentModel,a=new e(i,n||r&&r[Cn](t),this[f]);return a},isEmpty:function(){return null==this[W]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(n.clone(this[W]))},setReadOnly:function(t){i.setReadOnly(this,t)}},i.enableClassExtend(e);var r=n.mixin;return r(e,t("./mixin/lineStyle")),r(e,t("./mixin/areaStyle")),r(e,t("./mixin/textStyle")),r(e,t("./mixin/itemStyle")),e}),e("zrender/mixin/Eventful",[Rn],function(){var t=Array[on].slice,e=function(){this._$handlers={}};return e[on]={constructor:e,one:function(t,e,n){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var r=0;r<i[t][rn];r++)if(i[t][r].h===e)return this;return i[t].push({h:e,one:!0,ctx:n||this}),this},on:function(t,e,n){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var r=0;r<i[t][rn];r++)if(i[t][r].h===e)return this;return i[t].push({h:e,one:!1,ctx:n||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][rn]},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,a=n[t][rn];a>r;r++)n[t][r].h!=e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t][rn]&&delete n[t]}else delete n[t];return this},trigger:function(e){if(this._$handlers[e]){var n=arguments,i=n[rn];i>3&&(n=t.call(n,1));for(var r=this._$handlers[e],a=r[rn],o=0;a>o;){switch(i){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,n[1]);break;case 3:r[o].h.call(r[o].ctx,n[1],n[2]);break;default:r[o].h.apply(r[o].ctx,n)}r[o].one?(r[A](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var n=arguments,i=n[rn];i>4&&(n=t.call(n,1,n[rn]-1));for(var r=n[n[rn]-1],a=this._$handlers[e],o=a[rn],s=0;o>s;){switch(i){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,n[1]);break;case 3:a[s].h.call(r,n[1],n[2]);break;default:a[s].h.apply(r,n)}a[s].one?(a[A](s,1),o--):s++}}return this}},e}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===_?Array:Float32Array,e={create:function(){var n=new t(6);return e.identity(n),n},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(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},mul:function(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=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]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},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},rotate:function(t,e,n){var i=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+o*u,t[1]=-i*u+o*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t},scale:function(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t},invert:function(t,e){var n=e[0],i=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=n*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-o*r)*l,t[5]=(a*r-n*s)*l,t):null}};return e}),e("zrender/tool/color",[Rn],function(){function t(t){return t=Math.round(t),0>t?0:t>255?255:t}function e(t){return t=Math.round(t),0>t?0:t>360?360:t}function n(t){return 0>t?0:t>1?1:t}function i(e){return t(e[rn]&&"%"===e.charAt(e[rn]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return n(t[rn]&&"%"===t.charAt(t[rn]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function o(t,e,n){return t+(e-t)*n}function s(t){if(t){t+="";var e=t[S](/ /g,"")[R]();if(e in g)return g[e].slice();if("#"!==e.charAt(0)){var n=e[Ze]("("),a=e[Ze](")");if(-1!==n&&a+1===e[rn]){var o=e.substr(0,n),s=e.substr(n+1,a-(n+1)).split(","),u=1;switch(o){case"rgba":if(4!==s[rn])return;u=r(s.pop());case"rgb":if(3!==s[rn])return;return[i(s[0]),i(s[1]),i(s[2]),u];case"hsla":if(4!==s[rn])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[rn])return;return l(s);default:return}}}else{if(4===e[rn]){var c=parseInt(e.substr(1),16);if(!(c>=0&&4095>=c))return;return[(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,1]}if(7===e[rn]){var c=parseInt(e.substr(1),16);if(!(c>=0&&16777215>=c))return;return[(16711680&c)>>16,(65280&c)>>8,255&c,1]}}}}function l(e){var n=(parseFloat(e[0])%360+360)%360/360,i=r(e[1]),o=r(e[2]),s=.5>=o?o*(i+1):o+i-o*i,l=2*o-s,u=[t(255*a(l,s,n+1/3)),t(255*a(l,s,n)),t(255*a(l,s,n-1/3))];return 4===e[rn]&&(u[3]=e[3]),u}function u(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+o):l/(2-s-o);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,f=((s-a)/6+l/2)/l;i===s?e=f-h:r===s?e=1/3+c-f:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function c(t,e){var n=s(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return m(n,4===n[rn]?"rgba":"rgb")}}function h(t){var e=s(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function f(e,n,i){if(n&&n[rn]&&e>=0&&1>=e){i=i||[0,0,0,0];var r=e*(n[rn]-1),a=Math.floor(r),s=Math.ceil(r),l=n[a],u=n[s],c=r-a;return i[0]=t(o(l[0],u[0],c)),i[1]=t(o(l[1],u[1],c)),i[2]=t(o(l[2],u[2],c)),i[3]=t(o(l[3],u[3],c)),i}}function d(e,i,r){if(i&&i[rn]&&e>=0&&1>=e){var a=e*(i[rn]-1),l=Math.floor(a),u=Math.ceil(a),c=s(i[l]),h=s(i[u]),f=a-l,d=m([t(o(c[0],h[0],f)),t(o(c[1],h[1],f)),t(o(c[2],h[2],f)),n(o(c[3],h[3],f))],"rgba");return r?{color:d,leftIndex:l,rightIndex:u,value:a}:d}}function p(t,n,i,a){return t=s(t),t?(t=u(t),null!=n&&(t[0]=e(n)),null!=i&&(t[1]=r(i)),null!=a&&(t[2]=r(a)),m(l(t),"rgba")):void 0}function v(t,e){return t=s(t),t&&null!=e?(t[3]=n(e),m(t,"rgba")):void 0}function m(t,e){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}var g={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};return{parse:s,lift:c,toHex:h,fastMapToColor:f,mapToColor:d,modifyHSL:p,modifyAlpha:v,stringify:m}}),e("zrender/graphic/Path",[Rn,"./Displayable",r,"../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){n.call(this,t),this.path=new o}var n=t("./Displayable"),i=t(r),o=t("../core/PathProxy"),l=t("../contain/path"),u=t("./Pattern"),h=u[on].getCanvasPattern,f=Math.abs;return e[on]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n=this.style,i=this.path,r=n.hasStroke(),o=n.hasFill(),l=n.fill,u=n[d],c=o&&!!l[D],f=r&&!!u[D],p=o&&!!l.image,v=r&&!!u.image;if(n.bind(t,this,e),this.setTransform(t),this[s]){var m=this[wn]();c&&(this._fillGradient=n.getGradient(t,l,m)),f&&(this._strokeGradient=n.getGradient(t,u,m))}c?t.fillStyle=this._fillGradient:p&&(t.fillStyle=h.call(l,t)),f?t.strokeStyle=this._strokeGradient:v&&(t.strokeStyle=h.call(u,t));var g=n.lineDash,y=n.lineDashOffset,x=!!t.setLineDash,_=this.getGlobalScale();i.setScale(_[0],_[1]),this.__dirtyPath||g&&!x&&r?(i=this.path.beginPath(t),g&&!x&&(i.setLineDash(g),i.setLineDashOffset(y)),this[a](i,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&i.fill(t),g&&x&&(t.setLineDash(g),t.lineDashOffset=y),r&&i[d](t),g&&x&&t.setLineDash([]),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this[wn]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;this.__dirtyPath&&(i.beginPath(),this[a](i,this.shape,!1)),t=i[wn]()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this[s]||n){r.copy(t);var o=e[c],l=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),l>1e-10&&(r.width+=o/l,r[_n]+=o/l,r.x-=o/l/2,r.y-=o/l/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this[wn](),r=this.style;if(t=n[0],e=n[1],i[nn](t,e)){var a=this.path.data;if(r.hasStroke()){var o=r[c],s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),l.containStroke(a,o/s,t,e)))return!0}if(r.hasFill())return l[nn](a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this[s]=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this[Me](e),this.__dirtyPath=!0,this._rect=null):n[on].attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(i[k](t))for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[j];return t&&f(t[0]-1)>1e-10&&f(t[3]-1)>1e-10?Math.sqrt(f(t[0]*t[3]-t[2]*t[1])):1}},e[an]=function(t){var n=function(n){e.call(this,n),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var r=this.shape;for(var a in i)!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(r[a]=i[a])}t.init&&t.init.call(this,n)};i[b](n,e);for(var r in t)"style"!==r&&"shape"!==r&&(n[on][r]=t[r]);return n},i[b](e,n),e}),e("zrender/core/timsort",[],function(){function t(t){for(var e=0;t>=l;)e|=1&t,t>>=1;return t+e}function e(t,e,i,r){var a=e+1;if(a===i)return 1;if(r(t[a++],t[e])<0){for(;i>a&&r(t[a],t[a-1])<0;)a++;n(t,e,a)}else for(;i>a&&r(t[a],t[a-1])>=0;)a++;return a-e}function n(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function i(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var a,o=t[i],s=e,l=i;l>s;)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;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(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function r(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])>0){for(s=i-r;s>l&&a(t,e[n+r+l])>0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;s>l&&a(t,e[n+r-l])<=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[n+c])>0?o=c+1:l=c}return l}function a(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])<0){for(s=r+1;s>l&&a(t,e[n+r-l])<0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=i-r;s>l&&a(t,e[n+r+l])>=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[n+c])<0?l=c:o=c+1}return l}function o(t,e){function n(t,e){f[y]=t,d[y]=e,y+=1}function i(){for(;y>1;){var t=y-2;if(t>=1&&d[t-1]<=d[t]+d[t+1]||t>=2&&d[t-2]<=d[t]+d[t-1])d[t-1]<d[t+1]&&t--;else if(d[t]>d[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&d[t-1]<d[t+1]&&t--,s(t)}}function s(n){var i=f[n],o=d[n],s=f[n+1],u=d[n+1];d[n]=o+u,n===y-3&&(f[n+1]=f[n+2],d[n+1]=d[n+2]),y--;var c=a(t[s],t,i,o,0,e);i+=c,o-=c,0!==o&&(u=r(t[i+o-1],t,s,u,u-1,e),0!==u&&(u>=o?l(i,o,s,u):h(i,o,s,u)))}function l(n,i,o,s){var l=0;for(l=0;i>l;l++)x[l]=t[n+l];var c=0,h=o,f=n;if(t[f++]=t[h++],0!==--s){if(1===i){for(l=0;s>l;l++)t[f+l]=t[h+l];return void(t[f+s]=x[c])}for(var d,v,m,g=p;;){d=0,v=0,m=!1;do if(e(t[h],x[c])<0){if(t[f++]=t[h++],v++,d=0,0===--s){m=!0;break}}else if(t[f++]=x[c++],d++,v=0,1===--i){m=!0;break}while(g>(d|v));if(m)break;do{if(d=a(t[h],x,c,i,0,e),0!==d){for(l=0;d>l;l++)t[f+l]=x[c+l];if(f+=d,c+=d,i-=d,1>=i){m=!0;break}}if(t[f++]=t[h++],0===--s){m=!0;break}if(v=r(x[c],t,h,s,0,e),0!==v){for(l=0;v>l;l++)t[f+l]=t[h+l];if(f+=v,h+=v,s-=v,0===s){m=!0;break}}if(t[f++]=x[c++],1===--i){m=!0;break}g--}while(d>=u||v>=u);if(m)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===i){for(l=0;s>l;l++)t[f+l]=t[h+l];t[f+s]=x[c]}else{if(0===i)throw new Error;for(l=0;i>l;l++)t[f+l]=x[c+l]}}else for(l=0;i>l;l++)t[f+l]=x[c+l]}function h(n,i,o,s){var l=0;for(l=0;s>l;l++)x[l]=t[o+l];var c=n+i-1,h=s-1,f=o+s-1,d=0,v=0;if(t[f--]=t[c--],0!==--i){if(1===s){for(f-=i,c-=i,v=f+1,d=c+1,l=i-1;l>=0;l--)t[v+l]=t[d+l];return void(t[f]=x[h])}for(var m=p;;){var g=0,y=0,_=!1;do if(e(x[h],t[c])<0){if(t[f--]=t[c--],g++,y=0,0===--i){_=!0;break}}else if(t[f--]=x[h--],y++,g=0,1===--s){_=!0;break}while(m>(g|y));if(_)break;do{if(g=i-a(x[h],t,n,i,i-1,e),0!==g){for(f-=g,c-=g,i-=g,v=f+1,d=c+1,l=g-1;l>=0;l--)t[v+l]=t[d+l];if(0===i){_=!0;break}}if(t[f--]=x[h--],1===--s){_=!0;break}if(y=s-r(t[c],x,0,s,s-1,e),0!==y){for(f-=y,h-=y,s-=y,v=f+1,d=h+1,l=0;y>l;l++)t[v+l]=x[d+l];if(1>=s){_=!0;break}}if(t[f--]=t[c--],0===--i){_=!0;break}m--}while(g>=u||y>=u);if(_)break;0>m&&(m=0),m+=2}if(p=m,1>p&&(p=1),1===s){for(f-=i,c-=i,v=f+1,d=c+1,l=i-1;l>=0;l--)t[v+l]=t[d+l];t[f]=x[h]}else{if(0===s)throw new Error;for(d=f-(s-1),l=0;s>l;l++)t[d+l]=x[l]}}else for(d=f-(s-1),l=0;s>l;l++)t[d+l]=x[l]}var f,d,p=u,v=0,m=c,g=0,y=0;v=t[rn],2*c>v&&(m=v>>>1);var x=[];g=120>v?5:1542>v?10:119151>v?19:40,f=[],d=[],this.mergeRuns=i,this.forceMergeRuns=o,this.pushRun=n}function s(n,r,a,s){a||(a=0),s||(s=n[rn]);var u=s-a;if(!(2>u)){var c=0;if(l>u)return c=e(n,a,s,r),void i(n,a,s,a+c,r);var h=new o(n,r),f=t(u);do{if(c=e(n,a,s,r),f>c){var d=u;d>f&&(d=f),i(n,a,a+d,a+c,r),c=d}h.pushRun(a,c),h.mergeRuns(),u-=c,a+=c}while(0!==u);h.forceMergeRuns()}}var l=32,u=7,c=256;return s}),e(E,[],function(){var t=typeof Float32Array===_?Array:Float32Array,e={create:function(e,n){var i=new t(2);return null==e&&(e=0),null==n&&(n=0),i[0]=e,i[1]=n,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var n=new t(2);return n[0]=e[0],n[1]=e[1],n},set:function(t,e,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},normalize:function(t,n){var i=e.len(n);return 0===i?(t[0]=0,t[1]=0):(t[0]=n[0]/i,t[1]=n[1]/i),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},applyTransform:function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}};return e[rn]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("zrender/tool/path",[Rn,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,n,i,r,a,o,s,l,u,c){var v=l*(p/180),y=d(v)*(t-n)/2+f(v)*(e-i)/2,x=-1*f(v)*(t-n)/2+d(v)*(e-i)/2,_=y*y/(o*o)+x*x/(s*s);_>1&&(o*=h(_),s*=h(_));var w=(r===a?-1:1)*h((o*o*s*s-o*o*x*x-s*s*y*y)/(o*o*x*x+s*s*y*y))||0,b=w*o*x/s,M=w*-s*y/o,S=(t+n)/2+d(v)*b-f(v)*M,T=(e+i)/2+f(v)*b+d(v)*M,C=g([1,0],[(y-b)/o,(x-M)/s]),A=[(y-b)/o,(x-M)/s],P=[(-1*y-b)/o,(-1*x-M)/s],L=g(A,P);m(A,P)<=-1&&(L=p),m(A,P)>=1&&(L=0),0===a&&L>0&&(L-=2*p),1===a&&0>L&&(L+=2*p),c.addData(u,S,T,o,s,C,L,v,a)}function n(t){if(!t)return[];var n,i=t[S](/-/g," -")[S](/  /g," ")[S](/ /g,",")[S](/,,/g,",");for(n=0;n<c[rn];n++)i=i[S](new RegExp(c[n],"g"),"|"+c[n]);var r,a=i.split("|"),s=0,l=0,u=new o,h=o.CMD;for(n=1;n<a[rn];n++){var f,d=a[n],p=d.charAt(0),v=0,m=d.slice(1)[S](/e,-/g,"e-").split(",");m[rn]>0&&""===m[0]&&m.shift();for(var g=0;g<m[rn];g++)m[g]=parseFloat(m[g]);for(;v<m[rn]&&!isNaN(m[v])&&!isNaN(m[0]);){var y,x,_,w,b,M,T,C=s,A=l;switch(p){case"l":s+=m[v++],l+=m[v++],f=h.L,u.addData(f,s,l);break;case"L":s=m[v++],l=m[v++],f=h.L,u.addData(f,s,l);break;case"m":s+=m[v++],l+=m[v++],f=h.M,u.addData(f,s,l),p="l";break;case"M":s=m[v++],l=m[v++],f=h.M,u.addData(f,s,l),p="L";break;case"h":s+=m[v++],f=h.L,u.addData(f,s,l);break;case"H":s=m[v++],f=h.L,u.addData(f,s,l);break;case"v":l+=m[v++],f=h.L,u.addData(f,s,l);break;case"V":l=m[v++],f=h.L,u.addData(f,s,l);break;case"C":f=h.C,u.addData(f,m[v++],m[v++],m[v++],m[v++],m[v++],m[v++]),s=m[v-2],l=m[v-1];break;case"c":f=h.C,u.addData(f,m[v++]+s,m[v++]+l,m[v++]+s,m[v++]+l,m[v++]+s,m[v++]+l),s+=m[v-2],l+=m[v-1];break;case"S":y=s,x=l;var P=u.len(),L=u.data;r===h.C&&(y+=s-L[P-4],x+=l-L[P-3]),f=h.C,C=m[v++],A=m[v++],s=m[v++],l=m[v++],u.addData(f,y,x,C,A,s,l);break;case"s":y=s,x=l;var P=u.len(),L=u.data;r===h.C&&(y+=s-L[P-4],x+=l-L[P-3]),f=h.C,C=s+m[v++],A=l+m[v++],s+=m[v++],l+=m[v++],u.addData(f,y,x,C,A,s,l);break;case"Q":C=m[v++],A=m[v++],s=m[v++],l=m[v++],f=h.Q,u.addData(f,C,A,s,l);
break;case"q":C=m[v++]+s,A=m[v++]+l,s+=m[v++],l+=m[v++],f=h.Q,u.addData(f,C,A,s,l);break;case"T":y=s,x=l;var P=u.len(),L=u.data;r===h.Q&&(y+=s-L[P-4],x+=l-L[P-3]),s=m[v++],l=m[v++],f=h.Q,u.addData(f,y,x,s,l);break;case"t":y=s,x=l;var P=u.len(),L=u.data;r===h.Q&&(y+=s-L[P-4],x+=l-L[P-3]),s+=m[v++],l+=m[v++],f=h.Q,u.addData(f,y,x,s,l);break;case"A":_=m[v++],w=m[v++],b=m[v++],M=m[v++],T=m[v++],C=s,A=l,s=m[v++],l=m[v++],f=h.A,e(C,A,s,l,M,T,_,w,b,f,u);break;case"a":_=m[v++],w=m[v++],b=m[v++],M=m[v++],T=m[v++],C=s,A=l,s+=m[v++],l+=m[v++],f=h.A,e(C,A,s,l,M,T,_,w,b,f,u)}}("z"===p||"Z"===p)&&(f=h.Z,u.addData(f)),r=f}return u.toStatic(),u}function i(t,e){var i,r=n(t);return e=e||{},e[a]=function(t){t.setData(r.data),i&&l(t,i);var e=t[qe]();e&&t.rebuildPath(e)},e[X]=function(t){i||(i=u[tn]()),u.mul(i,t,i),this.dirty(!0)},e}var r=t("../graphic/Path"),o=t("../core/PathProxy"),l=t("./transformPath"),u=t("../core/matrix"),c=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],h=Math.sqrt,f=Math.sin,d=Math.cos,p=Math.PI,v=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},m=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))},g=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))};return{createFromString:function(t,e){return new r(i(t,e))},extendFromString:function(t,e){return r[an](i(t,e))},mergePath:function(t,e){for(var n=[],i=t[rn],o=0;i>o;o++){var l=t[o];l[s]&&l[a](l.path,l.shape,!0),n.push(l.path)}var u=new r(e);return u[a]=function(t){t.appendPath(n);var e=t[qe]();e&&t.rebuildPath(e)},u}}}),e("zrender/graphic/Text",[Rn,"./Displayable",r,"../contain/text"],function(t){var e=t("./Displayable"),n=t(r),i=t("../contain/text"),a=function(t){e.call(this,t)};return a[on]={constructor:a,type:"text",brush:function(t,e){var n=this.style,r=n.x||0,a=n.y||0,o=n.text;if(null!=o&&(o+=""),n.bind(t,this,e),o){this.setTransform(t);var s,l=n[Sn],u=n.textFont||n.font;if(n.textVerticalAlign){var c=i[wn](o,u,n[Sn],"top");switch(s=dn,n.textVerticalAlign){case dn:a-=c[_n]/2-c.lineHeight/2;break;case hn:a-=c[_n]-c.lineHeight/2;break;default:a+=c.lineHeight/2}}else s=n.textBaseline;t.font=u||"12px sans-serif",t[Sn]=l||"left",t[Sn]!==l&&(t[Sn]="left"),t.textBaseline=s||"alphabetic",t.textBaseline!==s&&(t.textBaseline="alphabetic");for(var h=i.measureText("国",t.font).width,f=o.split("\n"),d=0;d<f[rn];d++)n.hasFill()&&t.fillText(f[d],r,a),n.hasStroke()&&t.strokeText(f[d],r,a),a+=h;this.restoreTransform(t)}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,n=i[wn](t.text+"",t.textFont||t.font,t[Sn],e?"top":t.textBaseline);switch(e){case dn:n.y-=n[_n]/2;break;case hn:n.y-=n[_n]}n.x+=t.x||0,n.y+=t.y||0,this._rect=n}return this._rect}},n[b](a,e),a}),e("zrender/graphic/Image",[Rn,"./Displayable","../core/BoundingRect",r,"../core/LRU"],function(t){function e(t){n.call(this,t)}var n=t("./Displayable"),i=t("../core/BoundingRect"),a=t(r),o=t("../core/LRU"),s=new o(50);return e[on]={constructor:e,type:"image",brush:function(t,e){var n,i=this.style,r=i.image;if(i.bind(t,this,e),n=typeof r===He?this._image:r,!n&&r){var a=s.get(r);if(!a)return n=new Image,n.onload=function(){n.onload=null;for(var t=0;t<a.pending[rn];t++)a.pending[t].dirty()},a={image:n,pending:[this]},n.src=r,s.put(r,a),void(this._image=n);if(n=a.image,this._image=n,!n.width||!n[_n])return void a.pending.push(this)}if(n){var o=i.width||n.width,l=i[_n]||n[_n],u=i.x||0,c=i.y||0;if(!n.width||!n[_n])return;if(this.setTransform(t),i.sWidth&&i.sHeight){var h=i.sx||0,f=i.sy||0;t.drawImage(n,h,f,i.sWidth,i.sHeight,u,c,o,l)}else if(i.sx&&i.sy){var h=i.sx,f=i.sy,d=o-h,p=l-f;t.drawImage(n,h,f,d,p,u,c,o,l)}else t.drawImage(n,u,c,o,l);null==i.width&&(i.width=o),null==i[_n]&&(i[_n]=l),this.restoreTransform(t),null!=i.text&&this.drawRectText(t,this[wn]())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new i(t.x||0,t.y||0,t.width||0,t[_n]||0)),this._rect}},a[b](e,n),e}),e("zrender/graphic/shape/Circle",[Rn,"../Path"],function(t){return t("../Path")[an]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t[o](e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Sector",[Rn,"../Path"],function(t){return t("../Path")[an]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=Math.max(e.r0||0,0),s=Math.max(e.r,0),l=e.startAngle,u=e.endAngle,c=e.clockwise,h=Math.cos(l),f=Math.sin(l);t[o](h*a+n,f*a+r),t[i](h*s+n,f*s+r),t.arc(n,r,s,l,u,!c),t[i](Math.cos(u)*a+n,Math.sin(u)*a+r),0!==a&&t.arc(n,r,a,u,l,c),t.closePath()}})}),e("zrender/graphic/shape/Ring",[Rn,"../Path"],function(t){return t("../Path")[an]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t[o](n+e.r,i),t.arc(n,i,e.r,0,r,!1),t[o](n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}})}),e("zrender/graphic/shape/Polygon",[Rn,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[an]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,n){e[a](t,n,!0)}})}),e("zrender/graphic/shape/Polyline",[Rn,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[an]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,n){e[a](t,n,!1)}})}),e("zrender/graphic/shape/Rect",[Rn,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[an]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,n){var i=n.x,r=n.y,o=n.width,s=n[_n];n.r?e[a](t,n):t.rect(i,r,o,s),t.closePath()}})}),e("echarts/util/model",[Rn,"./format","./number","../model/Model",On],function(t){function e(t,e){return t&&t.hasOwnProperty(e)}var n=t("./format"),i=t("./number"),r=t("../model/Model"),a=t(On),o=a.each,s=a[k],u={};return u.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},u.defaultEmphasis=function(t,e){if(t){var n=t[ge]=t[ge]||{},i=t[Oe]=t[Oe]||{};o(e,function(t){var e=a[xe](n[t],i[t]);null!=e&&(n[t]=e)})}},u.LABEL_OPTIONS=[cn,"show",Tn,"distance","formatter"],u.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},u.isDataItemOption=function(t){return s(t)&&!(t instanceof Array)},u.converDataValue=function(t,e){var n=e&&e.type;return n===ie?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)},u.createDataFormatModel=function(t,e){var n=new r;return a.mixin(n,u.dataFormatMixin),n[ee]=e[ee],n.name=e.name||"",n.mainType=e.mainType,n.subType=e.subType,n[Dn]=function(){return t},n},u.dataFormatMixin={getDataParams:function(t,e){var n=this[Dn](e),i=this[ee],r=this.name,a=this.getRawValue(t,e),o=n.getRawIndex(t),s=n[H](t,!0),l=n.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:this.mainType===G?this.subType:null,seriesIndex:i,seriesName:r,name:s,dataIndex:o,data:l,dataType:e,value:a,color:n[Se](t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,r){e=e||Oe;var a=this[Dn](i),o=a[Ye](t),s=this[$e](t,i);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var l=o.get(["label",e,"formatter"]);return typeof l===Je?(s.status=e,l(s)):typeof l===He?n.formatTpl(l,s):void 0},getRawValue:function(t,e){var n=this[Dn](e),i=n.getRawDataItem(t);return null!=i?!s(i)||i instanceof Array?i:i.value:void 0},formatTooltip:a.noop},u.mappingToExists=function(t,e){e=(e||[]).slice();var n=a.map(t||[],function(t){return{exist:t}});return o(e,function(t,i){if(s(t)){for(var r=0;r<n[rn];r++)if(!n[r][W]&&null!=t.id&&n[r].exist.id===t.id+"")return n[r][W]=t,void(e[i]=null);for(var r=0;r<n[rn];r++){var a=n[r].exist;if(!(n[r][W]||null!=a.id&&null!=t.id||null==t.name||u.isIdInner(t)||u.isIdInner(a)||a.name!==t.name+""))return n[r][W]=t,void(e[i]=null)}}}),o(e,function(t){if(s(t)){for(var e=0;e<n[rn];e++){var i=n[e].exist;if(!n[e][W]&&!u.isIdInner(i)&&null==t.id){n[e][W]=t;break}}e>=n[rn]&&n.push({option:t})}}),n},u.makeIdAndName=function(t){var e={};o(t,function(t){var n=t.exist;n&&(e[n.id]=t)}),o(t,function(t){var n=t[W];a.assert(!n||null==n.id||!e[n.id]||e[n.id]===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(e[n.id]=t),!t.keyInfo&&(t.keyInfo={})}),o(t,function(t){var n=t.exist,i=t[W],r=t.keyInfo;if(s(i)){if(r.name=null!=i.name?i.name+"":n?n.name:"\x00-",n)r.id=n.id;else if(null!=i.id)r.id=i.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(e[r.id])}e[r.id]=t}})},u.isIdInner=function(t){return s(t)&&t.id&&0===(t.id+"")[Ze]("\x00_ec_\x00")},u.compressBatches=function(t,e){function n(t,e,n){for(var i=0,r=t[rn];r>i;i++)for(var a=t[i].seriesId,o=u.normalizeToArray(t[i][ve]),s=n&&n[a],l=0,c=o[rn];c>l;l++){var h=o[l];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function i(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var a=i(t[r],!0);a[rn]&&n.push({seriesId:r,dataIndex:a})}return n}var r={},a={};return n(t||[],r),n(e||[],a,r),[i(r),i(a)]},u.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e[ve]?a[M](e[ve])?a.map(e[ve],function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e[ve]):null!=e.name?a[M](e.name)?a.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},u.parseFinder=function(t,n,i){if(a.isString(n)){var r={};r[n+"Index"]=0,n=r}var s=i&&i.defaultMainType;!s||e(n,s+"Index")||e(n,s+"Id")||e(n,s+"Name")||(n[s+"Index"]=0);var u={};return o(n,function(e,i){var e=n[i];if(i===ve||"dataIndexInside"===i)return void(u[i]=e);var r=i.match(/^(\w+)(Index|Id|Name)$/)||[],a=r[1],o=r[2];if(a&&o){var s={mainType:a};s[o[R]()]=e;var c=t[l](s);u[a+"Models"]=c,u[a+"Model"]=c[0]}}),u},u}),e("zrender/graphic/shape/Line",[Rn,"../Path"],function(t){return t("../Path")[an]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,r=e.y1,a=e.x2,s=e.y2,l=e.percent;0!==l&&(t[o](n,r),1>l&&(a=n*(1-l)+a*l,s=r*(1-l)+s*l),t[i](a,s))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/BezierCurve",[Rn,"../../core/curve","../../core/vector","../Path"],function(t){function e(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?c:l)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?c:l)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?u:s)(t.x1,t.cpx1,t.x2,e),(n?u:s)(t.y1,t.cpy1,t.y2,e)]}var n=t("../../core/curve"),i=t("../../core/vector"),r=n.quadraticSubdivide,a=n.cubicSubdivide,s=n.quadraticAt,l=n.cubicAt,u=n.quadraticDerivativeAt,c=n.cubicDerivativeAt,h=[];return t("../Path")[an]({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,s=e.x2,l=e.y2,u=e.cpx1,c=e.cpy1,f=e.cpx2,d=e.cpy2,p=e.percent;0!==p&&(t[o](n,i),null==f||null==d?(1>p&&(r(n,u,s,p,h),u=h[1],s=h[2],r(i,c,l,p,h),c=h[1],l=h[2]),t.quadraticCurveTo(u,c,s,l)):(1>p&&(a(n,u,f,s,p,h),u=h[1],f=h[2],s=h[3],a(i,c,d,l,p,h),c=h[1],d=h[2],l=h[3]),t.bezierCurveTo(u,c,f,d,s,l)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var n=e(this.shape,t,!0);return i[en](n,n)}})}),e("zrender/graphic/shape/Arc",[Rn,"../Path"],function(t){return t("../Path")[an]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(a),c=Math.sin(a);t[o](u*r+n,c*r+i),t.arc(n,i,r,a,s,!l)}})}),e("zrender/container/Group",[Rn,r,"../Element","../core/BoundingRect"],function(t){var e=t(r),n=t("../Element"),i=t("../core/BoundingRect"),a=function(t){t=t||{},n.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this[s]=!0};return a[on]={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e[rn];n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children[rn]},add:function(t){return t&&t!==this&&t[u]!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t[u]!==this&&e&&e[u]===this){var n=this._children,i=n[Ze](e);i>=0&&(n[A](i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t[u]&&t[u][Le](t),t[u]=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var n=this.__zr,i=this.__storage,r=this._children,o=e[Ze](r,t);return 0>o?this:(r[A](o,1),t[u]=null,i&&(i.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(i)),n&&n.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n[rn];e++)t=n[e],i&&(i.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(i)),t[u]=null;return n[rn]=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n[rn];i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children[rn];n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i[T](t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[rn];e++){var n=this._children[e];t.addToMap(n),n instanceof a&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[rn];e++){var n=this._children[e];t.delFromMap(n.id),n instanceof a&&n.delChildrenFromStorage(t)}},dirty:function(){return this[s]=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new i(0,0,0,0),r=t||this._children,a=[],o=0;o<r[rn];o++){var s=r[o];if(!s[re]&&!s.invisible){var l=s[wn](),u=s.getLocalTransform(a);u?(n.copy(l),n[X](u),e=e||n.clone(),e.union(n)):(e=e||l.clone(),e.union(l))}}return e||n}},e[b](a,n),a}),e("zrender/graphic/CompoundPath",[Rn,"./Path"],function(t){var e=t("./Path");return e[an]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e[rn];n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this[s]=this[s]||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t[rn];n++)t[n].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n[rn];i++)n[i][a](t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[rn];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[on][wn].call(this)}})}),e("zrender/graphic/RadialGradient",[Rn,r,"./Gradient"],function(t){var e=t(r),n=t("./Gradient"),i=function(t,e,i,r,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,this.type="radial",this.global=a||!1,n.call(this,r)};return i[on]={constructor:i},e[b](i,n),i}),e("zrender/graphic/LinearGradient",[Rn,r,"./Gradient"],function(t){var e=t(r),n=t("./Gradient"),i=function(t,e,i,r,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==r?0:r,this.type="linear",this.global=o||!1,n.call(this,a)};return i[on]={constructor:i},e[b](i,n),i}),e("echarts/component/toolbox/featureManager",[Rn],function(){var t={};return{register:function(e,n){t[e]=n},get:function(e){return t[e]}}}),e("echarts/model/mixin/colorPalette",[],function(){return{clearColorPalette:function(){this._colorIdx=0,this._colorNameMap={}},getColorFromPalette:function(t,e){e=e||this;var n=e._colorIdx||0,i=e._colorNameMap||(e._colorNameMap={});if(i[t])return i[t];var r=this.get("color",!0)||[];if(r[rn]){var a=r[n];return t&&(i[t]=a),e._colorIdx=(n+1)%r[rn],a}}}}),e(h,[Rn,"./vector","./matrix"],function(t){function e(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this[_n]=i}var n=t("./vector"),i=t("./matrix"),r=n[X],a=Math.min,o=Math.max;return e[on]={constructor:e,union:function(t){var e=a(t.x,this.x),n=a(t.y,this.y);this.width=o(t.x+t.width,this.x+this.width)-e,this[_n]=o(t.y+t[_n],this.y+this[_n])-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(s){if(s){t[0]=n[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=n[1]=this.y+this[_n],r(t,t,s),r(e,e,s),r(n,n,s),r(i,i,s),this.x=a(t[0],e[0],n[0],i[0]),this.y=a(t[1],e[1],n[1],i[1]);var l=o(t[0],e[0],n[0],i[0]),u=o(t[1],e[1],n[1],i[1]);this.width=l-this.x,this[_n]=u-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,r=t[_n]/e[_n],a=i[tn]();return i.translate(a,a,[-e.x,-e.y]),i.scale(a,a,[n,r]),i.translate(a,a,[t.x,t.y]),a},intersect:function(t){if(!t)return!1;t instanceof e||(t=e[tn](t));var n=this,i=n.x,r=n.x+n.width,a=n.y,o=n.y+n[_n],s=t.x,l=t.x+t.width,u=t.y,c=t.y+t[_n];return!(s>r||i>l||u>o||a>c)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n[_n]},clone:function(){return new e(this.x,this.y,this.width,this[_n])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[_n]=t[_n]},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this[_n]}}},e[tn]=function(t){return new e(t.x,t.y,t.width,t[_n])},e}),e("echarts/util/clazz",[Rn,On],function(t){function e(t,e){var n=i.slice(arguments,2);return this.superClass[on][e].apply(t,n)}function n(t,e,n){return this.superClass[on][e].apply(t,n)}var i=t(On),r={},a=".",o="___EC__COMPONENT__CONTAINER___",s=r.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(a),e.main=t[0]||"",e.sub=t[1]||""),e};return r.enableClassExtend=function(t,r){t.$constructor=t,t[an]=function(t){var r=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):r.apply(this,arguments)};return i[an](a[on],t),a[an]=this[an],a.superCall=e,a[q]=n,i[b](a,this),a.superClass=r,a}},r.enableClassManagement=function(t,e){function n(t){var e=r[t.main];return e&&e[o]||(e=r[t.main]={},e[o]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(e=s(e),e.sub){if(e.sub!==o){var i=n(e);i[e.sub]=t}}else r[e.main]=t;return t},t.getClass=function(t,e,n){var i=r[t];if(i&&i[o]&&(i=e?i[e]:null),n&&!i)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return i},t.getClassesByMainType=function(t){t=s(t);var e=[],n=r[t.main];return n&&n[o]?i.each(n,function(t,n){n!==o&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=s(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return i.each(r,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=s(t);var e=r[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t[an];a&&(t[an]=function(e){var n=a.call(this,e);return t.registerClass(n,e.type)})}return t},r.setReadOnly=function(){},r}),e("zrender/graphic/Displayable",[Rn,r,"./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},a.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new i(t.style),this._rect=null,this.__clipPaths=[]}var n=t(r),i=t("./Style"),a=t("../Element"),o=t("./mixin/RectText");return e[on]={constructor:e,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:-1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this[wn]();return i[nn](n[0],n[1])},dirty:function(){this[s]=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a[on].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new i(t),this.dirty(!1),this}},n[b](e,a),n.mixin(e,o),e}),e("zrender/graphic/Gradient",[Rn],function(){var t=function(t){this[D]=t||[]};return t[on]={constructor:t,addColorStop:function(t,e){this[D].push({offset:t,color:e})}},t}),e("zrender/vml/core",[Rn,"exports","module","../core/env"],function(t,e,n){if(!t("../core/env")[O]){var i,r="urn:schemas-microsoft-com:vml",a=window,o=a.document,s=!1;try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",r),i=function(t){return o[Xe]("<zrvml:"+t+' class="zrvml">')}}catch(l){i=function(t){return o[Xe]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var u=function(){if(!s){s=!0;var t=o.styleSheets;t[rn]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};n.exports={doc:o,initVML:u,createNode:i}}}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==_&&(t=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:!0,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3}}),e("echarts/data/List",[Rn,"../model/Model","./DataDiffer",On,"../util/model"],function(t){function e(t){return c[M](t)||(t=[t]),t}function n(t,e){var n=t[Ve],i=new m(c.map(n,t.getDimensionInfo,t),t[oe]);v(i,t);for(var r=i._storage={},a=t._storage,o=0;o<n[rn];o++){var s=n[o],l=a[s];r[s]=c[Ze](e,s)>=0?new l.constructor(a[s][rn]):a[s]}return i}var i=_,r=typeof window===_?global:window,a=typeof r.Float64Array===i?Array:r.Float64Array,o=typeof r.Int32Array===i?Array:r.Int32Array,s={"float":a,"int":o,ordinal:Array,number:Array,time:Array},l=t("../model/Model"),u=t("./DataDiffer"),c=t(On),h=t("../util/model"),d=c[k],p=["stackedOn",U,"_nameList","_idList","_rawData"],v=function(t,e){c.each(p[Fe](e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods},m=function(t,e){t=t||["x","y"];for(var n={},i=[],r=0;r<t[rn];r++){var a,o={};typeof t[r]===He?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||Ge),i.push(a),n[a]=o}this[Ve]=i,this._dimensionInfos=n,this[oe]=e,this.dataType,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},g=m[on];g.type="list",g[U]=!0,g.getDimension=function(t){return isNaN(t)||(t=this[Ve][t]||t),t},g.getDimensionInfo=function(t){return c.clone(this._dimensionInfos[this.getDimension(t)])},g.initData=function(t,e,n){t=t||[],this._rawData=t;var i=this._storage={},r=this.indices=[],a=this[Ve],o=t[rn],l=this._dimensionInfos,u=[],c={};e=e||[];for(var f=0;f<a[rn];f++){var d=l[a[f]],p=s[d.type];i[a[f]]=new p(o)}var v=this;n||(v[U]=!1),n=n||function(t,e,n,i){var r=h.getDataItemValue(t);return h.isDataItemOption(t)&&(v[U]=!0),h.converDataValue(r instanceof Array?r[i]:r,l[e])};for(var m=0;m<t[rn];m++){for(var g=t[m],y=0;y<a[rn];y++){var x=a[y],_=i[x];_[m]=n(g,x,m,y)}r.push(m)}for(var f=0;f<t[rn];f++){e[f]||t[f]&&null!=t[f].name&&(e[f]=t[f].name);var w=e[f]||"",b=t[f]&&t[f].id;!b&&w&&(c[w]=c[w]||0,b=w,c[w]>0&&(b+="__ec__"+c[w]),c[w]++),b&&(u[f]=b)}this._nameList=e,this._idList=u},g.count=function(){return this.indices[rn]},g.get=function(t,e,n){var i=this._storage,r=this.indices[e];if(null==r)return 0/0;var a=i[t]&&i[t][r];if(n){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedOn}}return a},g.getValues=function(t,e,n){var i=[];c[M](t)||(n=e,e=t,t=this[Ve]);for(var r=0,a=t[rn];a>r;r++)i.push(this.get(t[r],e,n));return i},g.hasValue=function(t){for(var e=this[Ve],n=this._dimensionInfos,i=0,r=e[rn];r>i;i++)if(n[e[i]].type!==ie&&isNaN(this.get(e[i],t)))return!1;return!0},g[Y]=function(t,e){t=this.getDimension(t);var n=this._storage[t],i=this.getDimensionInfo(t);e=i&&i.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(n){for(var o=1/0,s=-1/0,l=0,u=this.count();u>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+!!e]=[o,s]}return[1/0,-1/0]},g.getSum=function(t,e){var n=this._storage[t],i=0;if(n)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(i+=o)}return i},g[Ze]=function(t,e){var n=this._storage,i=n[t],r=this.indices;if(i)for(var a=0,o=r[rn];o>a;a++){var s=r[a];if(i[s]===e)return a}return-1},g.indexOfName=function(t){for(var e=this.indices,n=this._nameList,i=0,r=e[rn];r>i;i++){var a=e[i];if(n[a]===t)return i}return-1},g.indexOfRawIndex=function(t){var e=this.indices,n=e[t];if(null!=n&&n===t)return t;for(var i=0,r=e[rn]-1;r>=i;){var a=(i+r)/2|0;if(e[a]<t)i=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},g.indexOfNearest=function(t,e,n,i){var r=this._storage,a=r[t];null==i&&(i=1/0);var o=-1;if(a)for(var s=Number.MAX_VALUE,l=0,u=this.count();u>l;l++){var c=e-this.get(t,l,n),h=Math.abs(c);i>=c&&(s>h||h===s&&c>0)&&(s=h,o=l)}return o},g.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},g.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},g[H]=function(t){return this._nameList[this.indices[t]]||""},g.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},g.each=function(t,n,i,r){typeof t===Je&&(r=i,i=n,n=t,t=[]),t=c.map(e(t),this.getDimension,this);var a=[],o=t[rn],s=this.indices;r=r||this;for(var l=0;l<s[rn];l++)switch(o){case 0:n.call(r,l);break;case 1:n.call(r,this.get(t[0],l,i),l);break;case 2:n.call(r,this.get(t[0],l,i),this.get(t[1],l,i),l);break;default:for(var u=0;o>u;u++)a[u]=this.get(t[u],l,i);a[u]=l,n.apply(r,a)}},g.filterSelf=function(t,n,i,r){typeof t===Je&&(r=i,i=n,n=t,t=[]),t=c.map(e(t),this.getDimension,this);var a=[],o=[],s=t[rn],l=this.indices;r=r||this;for(var u=0;u<l[rn];u++){var h;if(1===s)h=n.call(r,this.get(t[0],u,i),u);else{for(var f=0;s>f;f++)o[f]=this.get(t[f],u,i);o[f]=u,h=n.apply(r,o)}h&&a.push(l[u])}return this.indices=a,this._extent={},this},g[fe]=function(t,e,n,i){typeof t===Je&&(i=n,n=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n,i),r},g.map=function(t,i,r,a){t=c.map(e(t),this.getDimension,this);var o=n(this,t),s=o.indices=this.indices,l=o._storage,u=[];return this.each(t,function(){var e=arguments[arguments[rn]-1],n=i&&i.apply(this,arguments);if(null!=n){typeof n===Ge&&(u[0]=n,n=u);for(var r=0;r<n[rn];r++){var a=t[r],o=l[a],c=s[e];o&&(o[c]=n[r])}}},r,a),o},g.downSample=function(t,e,i,r){for(var a=n(this,[t]),o=this._storage,s=a._storage,l=this.indices,u=a.indices=[],c=[],h=[],f=Math.floor(1/e),d=s[t],p=this.count(),v=0;v<o[t][rn];v++)s[t][v]=o[t][v];for(var v=0;p>v;v+=f){f>p-v&&(f=p-v,c[rn]=f);for(var m=0;f>m;m++){var g=l[v+m];c[m]=d[g],h[m]=g}var y=i(c),g=h[r(c,y)||0];d[g]=y,u.push(g)}return a},g[Ye]=function(t){var e=this[oe];return t=this.indices[t],new l(this._rawData[t],e,e&&e[f])},g.diff=function(t){var e,n=this._idList,i=t&&t._idList,r="e\x00\x00";return new u(t?t.indices:[],this.indices,function(t){return null!=(e=i[t])?e:r+t},function(t){return null!=(e=n[t])?e:r+t})},g.getVisual=function(t){var e=this._visual;return e&&e[t]},g.setVisual=function(t,e){if(d(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},g.setLayout=function(t,e){if(d(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},g.getLayout=function(t){return this._layout[t]},g[De]=function(t){return this._itemLayouts[t]},g.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?c[an](this._itemLayouts[t]||{},e):e},g.clearItemLayouts=function(){this._itemLayouts[rn]=0},g[Se]=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},g.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};if(this._itemVisuals[t]=i,d(e))for(var r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);else i[e]=n},g.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var y=function(t){t[ee]=this[ee],t[ve]=this[ve],t.dataType=this.dataType};return g[Ae]=function(t,e){var n=this[oe];e&&(e[ve]=t,e.dataType=this.dataType,e[ee]=n&&n[ee],"group"===e.type&&e[T](y,e)),this._graphicEls[t]=e},g[Ce]=function(t){return this._graphicEls[t]},g[Te]=function(t,e){c.each(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},g.cloneShallow=function(){var t=c.map(this[Ve],this.getDimensionInfo,this),e=new m(t,this[oe]);return e._storage=this._storage,v(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=c[an]({},this._extent)),e},g.wrapMethod=function(t,e){var n=this[t];typeof n===Je&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t][Fe](c.slice(arguments)))})},g.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],g.CHANGABLE_METHODS=["filterSelf"],m}),e("echarts/model/mixin/lineStyle",[Rn,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[c,"width"],[d,"color"],[ln],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var n=e.call(this,t),i=this.getLineDash(n[c]);return i&&(n.lineDash=i),n},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?null:"dashed"===e?[i,i]:[n,n]}}}),e("echarts/model/mixin/areaStyle",[Rn,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[ln],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[Rn,"zrender/contain/text"],function(t){function e(t,e){return t&&t[Ue](e)}var n=t("zrender/contain/text");return{getTextColor:function(){var t=this[f];return this[Ue]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[f],n=t&&t[Cn](Tn);return[this[Ue]("fontStyle")||e(n,"fontStyle"),this[Ue]("fontWeight")||e(n,"fontWeight"),(this[Ue]("fontSize")||e(n,"fontSize")||12)+"px",this[Ue]("fontFamily")||e(n,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){return n[wn](t,this[Mn](),this[Ue]("align"),this[Ue]("baseline"))},truncateText:function(t,e,i,r){return n.truncateText(t,e,this[Mn](),i,r)}}}),e("zrender/graphic/mixin/RectText",[Rn,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===He?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var n=t("../../contain/text"),i=t("../../core/BoundingRect"),r=new i,a=function(){};return a[on]={constructor:a,drawRectText:function(t,i,a){var o=this.style,s=o.text;if(null!=s&&(s+=""),s){t.save();var l,u,c=o.textPosition,h=o.textDistance,f=o[Sn],d=o.textFont||o.font,p=o.textBaseline,v=o.textVerticalAlign;a=a||n[wn](s,d,f,p);var m=this[j];if(o.textTransform?this.setTransform(t):m&&(r.copy(i),r[X](m),i=r),c instanceof Array){if(l=i.x+e(c[0],i.width),u=i.y+e(c[1],i[_n]),f=f||"left",p=p||"top",v){switch(v){case dn:u-=a[_n]/2-a.lineHeight/2;break;case hn:u-=a[_n]-a.lineHeight/2;break;default:u+=a.lineHeight/2}p=dn}}else{var g=n.adjustTextPositionOnRect(c,i,a,h);l=g.x,u=g.y,f=f||g[Sn],p=p||g.textBaseline}t[Sn]=f||"left",t.textBaseline=p||"alphabetic";var y=o.textFill,x=o.textStroke;y&&(t.fillStyle=y),x&&(t.strokeStyle=x),t.font=d||"12px sans-serif",t.shadowBlur=o.textShadowBlur,t.shadowColor=o.textShadowColor||"transparent",t.shadowOffsetX=o.textShadowOffsetX,t.shadowOffsetY=o.textShadowOffsetY;var _=s.split("\n");o.textRotation&&(m&&t.translate(m[4],m[5]),t.rotate(o.textRotation),m&&t.translate(-m[4],-m[5]));for(var w=0;w<_[rn];w++)y&&t.fillText(_[w],l,u),x&&t.strokeText(_[w],l,u),u+=a.lineHeight;t.restore()}}},a}),e("echarts/model/mixin/itemStyle",[Rn,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["fill","color"],[d,"borderColor"],[c,"borderWidth"],[ln],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],[Sn]]);return{getItemStyle:function(t){var n=e.call(this,t),i=this.getBorderLineDash();return i&&(n.lineDash=i),n
},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/graphic/Pattern",[Rn],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[on].getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t}),e("zrender/tool/transformPath",[Rn,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var i,l,u,c,h,f,d=t.data,p=n.M,v=n.C,m=n.L,g=n.R,y=n.A,x=n.Q;for(u=0,c=0;u<d[rn];){switch(i=d[u++],c=u,l=0,i){case p:l=1;break;case m:l=1;break;case v:l=3;break;case x:l=2;break;case y:var _=e[4],w=e[5],b=o(e[0]*e[0]+e[1]*e[1]),M=o(e[2]*e[2]+e[3]*e[3]),S=s(-e[1]/M,e[0]/b);d[u++]+=_,d[u++]+=w,d[u++]*=b,d[u++]*=M,d[u++]+=S,d[u++]+=S,u+=2,c=u;break;case g:f[0]=d[u++],f[1]=d[u++],r(f,f,e),d[c++]=f[0],d[c++]=f[1],f[0]+=d[u++],f[1]+=d[u++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}for(h=0;l>h;h++){var f=a[h];f[0]=d[u++],f[1]=d[u++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}}}var n=t("../core/PathProxy").CMD,i=t("../core/vector"),r=i[X],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("echarts/data/DataDiffer",[Rn],function(){function t(t){return t}function e(e,n,i,r){this._old=e,this._new=n,this._oldKeyGetter=i||t,this._newKeyGetter=r||t}function n(t,e,n,i){for(var r=0;r<t[rn];r++){var a=i(t[r],r),o=e[a];null==o?(n.push(a),e[a]=r):(o[rn]||(e[a]=o=[o]),o.push(r))}}return e[on]={constructor:e,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,i=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={},l=[],u=[];for(n(e,o,l,r),n(i,s,u,a),t=0;t<e[rn];t++){var c=l[t],h=s[c];if(null!=h){var f=h[rn];f?(1===f&&(s[c]=null),h=h.unshift()):s[c]=null,this._update&&this._update(h,t)}else this._remove&&this._remove(t)}for(var t=0;t<u[rn];t++){var c=u[t];if(s.hasOwnProperty(c)){var h=s[c];if(null==h)continue;if(h[rn])for(var d=0,f=h[rn];f>d;d++)this._add&&this._add(h[d]);else this._add&&this._add(h)}}}},e}),e("zrender/Element",[Rn,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),r=t("./mixin/Transformable"),a=t("./mixin/Animatable"),o=t("./core/util"),s=function(t){r.call(this,t),i.call(this,t),a.call(this,t),this.id=t.id||e()};return s[on]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case p:e=0;break;case"vertical":t=0}var n=this[j];n||(n=this[j]=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this[n]()},traverse:function(){},attrKV:function(t,e){if(t===cn||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this[re]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[re]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===He)this.attrKV(t,e);else if(o[k](t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e[rn];n++)t[Re].addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e[rn];n++)t[Re].removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},o.mixin(s,a),o.mixin(s,r),o.mixin(s,i),s}),e("echarts/model/mixin/makeStyleMapper",[Rn,On],function(t){var e=t(On);return function(t){for(var n=0;n<t[rn];n++)t[n][1]||(t[n][1]=t[n][0]);return function(n){for(var i={},r=0;r<t[rn];r++){var a=t[r][1];if(!(n&&e[Ze](n,a)>=0)){var o=this[Ue](a);null!=o&&(i[t[r][0]]=o)}}return i}}}),e("zrender/contain/text",[Rn,r,"../core/BoundingRect"],function(t){function e(t,e){var n=t+":"+e;if(s[n])return s[n];for(var i=(t+"").split("\n"),r=0,a=0,o=i[rn];o>a;a++)r=Math.max(d.measureText(i[a],e).width,r);return l>u&&(l=0,s={}),l++,s[n]=r,r}function n(t,n,i,r){var a=((t||"")+"").split("\n")[rn],o=e(t,n),s=e("国",n),l=a*s,u=new h(0,0,o,l);switch(u.lineHeight=s,r){case hn:case"alphabetic":u.y-=s;break;case dn:u.y-=s/2}switch(i){case"end":case"right":u.x-=u.width;break;case fn:u.x-=u.width/2}return u}function i(t,e,n,i){var r=e.x,a=e.y,o=e[_n],s=e.width,l=n[_n],u=o/2-l/2,c="left";switch(t){case"left":r-=i,a+=u,c="right";break;case"right":r+=i+s,a+=u,c="left";break;case"top":r+=s/2,a-=i+l,c=fn;break;case hn:r+=s/2,a+=o+i,c=fn;break;case x:r+=s/2,a+=u,c=fn;break;case"insideLeft":r+=i,a+=u,c="left";break;case"insideRight":r+=s-i,a+=u,c="right";break;case"insideTop":r+=s/2,a+=i,c=fn;break;case"insideBottom":r+=s/2,a+=o-l-i,c=fn;break;case"insideTopLeft":r+=i,a+=i,c="left";break;case"insideTopRight":r+=s-i,a+=i,c="right";break;case"insideBottomLeft":r+=i,a+=o-l-i;break;case"insideBottomRight":r+=s-i,a+=o-l-i,c="right"}return{x:r,y:a,textAlign:c,textBaseline:"top"}}function a(t,n,i,r,a){if(!n)return"";a=a||{},r=f(r,"...");for(var s=f(a.maxIterations,2),l=f(a.minChar,0),u=e("国",i),c=e("a",i),h=f(a.placeholder,""),d=n=Math.max(0,n-1),p=0;l>p&&d>=c;p++)d-=c;var v=e(r);v>d&&(r="",v=0),d=n-v;for(var m=(t+"").split("\n"),p=0,g=m[rn];g>p;p++){var y=m[p],x=e(y,i);if(!(n>=x)){for(var _=0;;_++){if(d>=x||_>=s){y+=r;break}var w=0===_?o(y,d,c,u):x>0?Math.floor(y[rn]*d/x):0;y=y.substr(0,w),x=e(y,i)}""===y&&(y=h),m[p]=y}}return m.join("\n")}function o(t,e,n,i){for(var r=0,a=0,o=t[rn];o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?n:i}return a}var s={},l=0,u=5e3,c=t(r),h=t("../core/BoundingRect"),f=c[xe],d={getWidth:e,getBoundingRect:n,adjustTextPositionOnRect:i,truncateText:a,measureText:function(t,e){var n=c[qe]();return n.font=e||"12px sans-serif",n.measureText(t)}};return d}),e("echarts/scale/Ordinal",[Rn,On,"./Scale"],function(t){var e=t(On),n=t("./Scale"),i=n[on],r=n[an]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[rn]-1]},parse:function(t){return typeof t===He?e[Ze](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),i[nn].call(this,t)&&null!=this._data[t]},normalize:function(t){return i[en].call(this,this.parse(t))},scale:function(t){return Math.round(i.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[tn]=function(){return new r},r}),e("echarts/model/mixin/boxLayout",[Rn],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(hn),width:this.get("width"),height:this.get(_n)}}}}),e("zrender/contain/path",[Rn,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function n(){var t=x[0];x[0]=x[1],x[1]=t}function i(t,e,i,r,a,o,s,l,u,c){if(c>e&&c>r&&c>o&&c>l||e>c&&r>c&&o>c&&l>c)return 0;var h=d.cubicRootAt(e,r,o,l,c,y);if(0===h)return 0;for(var f,p,v=0,m=-1,g=0;h>g;g++){var _=y[g],w=0===_||1===_?.5:1,b=d.cubicAt(t,i,a,s,_);u>b||(0>m&&(m=d.cubicExtrema(e,r,o,l,x),x[1]<x[0]&&m>1&&n(),f=d.cubicAt(e,r,o,l,x[0]),m>1&&(p=d.cubicAt(e,r,o,l,x[1]))),v+=2==m?_<x[0]?e>f?w:-w:_<x[1]?f>p?w:-w:p>l?w:-w:_<x[0]?e>f?w:-w:f>l?w:-w)}return v}function r(t,e,n,i,r,a,o,s){if(s>e&&s>i&&s>a||e>s&&i>s&&a>s)return 0;var l=d.quadraticRootAt(e,i,a,s,y);if(0===l)return 0;var u=d.quadraticExtremum(e,i,a);if(u>=0&&1>=u){for(var c=0,h=d.quadraticAt(e,i,a,u),f=0;l>f;f++){var p=0===y[f]||1===y[f]?.5:1,v=d.quadraticAt(t,n,r,y[f]);o>v||(c+=y[f]<u?e>h?p:-p:h>a?p:-p)}return c}var p=0===y[0]||1===y[0]?.5:1,v=d.quadraticAt(t,n,r,y[0]);return o>v?0:e>a?p:-p}function a(t,e,n,i,r,a,o,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);y[0]=-l,y[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(1e-4>u%m){i=0,r=m;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=i;i=f(r),r=f(l)}else i=f(i),r=f(r);i>r&&(r+=m);for(var h=0,d=0;2>d;d++){var p=y[d];if(p+t>o){var v=Math.atan2(s,p),c=a?1:-1;0>v&&(v=m+v),(v>=i&&r>=v||v+m>=i&&r>=v+m)&&(v>Math.PI/2&&v<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,n,o,l,f){for(var d=0,m=0,g=0,y=0,x=0,_=0;_<t[rn];){var w=t[_++];switch(w===s.M&&_>1&&(o||(d+=p(m,g,y,x,l,f))),1==_&&(m=t[_],g=t[_+1],y=m,x=g),w){case s.M:y=t[_++],x=t[_++],m=y,g=x;break;case s.L:if(o){if(v(m,g,t[_],t[_+1],n,l,f))return!0}else d+=p(m,g,t[_],t[_+1],l,f)||0;m=t[_++],g=t[_++];break;case s.C:if(o){if(u.containStroke(m,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],n,l,f))return!0}else d+=i(m,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],l,f)||0;m=t[_++],g=t[_++];break;case s.Q:if(o){if(c.containStroke(m,g,t[_++],t[_++],t[_],t[_+1],n,l,f))return!0}else d+=r(m,g,t[_++],t[_++],t[_],t[_+1],l,f)||0;m=t[_++],g=t[_++];break;case s.A:var b=t[_++],M=t[_++],S=t[_++],T=t[_++],C=t[_++],A=t[_++],P=(t[_++],1-t[_++]),L=Math.cos(C)*S+b,z=Math.sin(C)*T+M;_>1?d+=p(m,g,L,z,l,f):(y=L,x=z);var k=(l-b)*T/S+b;if(o){if(h.containStroke(b,M,T,C,C+A,P,n,k,f))return!0}else d+=a(b,M,T,C,C+A,P,k,f);m=Math.cos(C+A)*S+b,g=Math.sin(C+A)*T+M;break;case s.R:y=m=t[_++],x=g=t[_++];var I=t[_++],D=t[_++],L=y+I,z=x+D;if(o){if(v(y,x,L,x,n,l,f)||v(L,x,L,z,n,l,f)||v(L,z,y,z,n,l,f)||v(y,z,y,x,n,l,f))return!0}else d+=p(L,x,L,z,l,f),d+=p(y,z,y,x,l,f);break;case s.Z:if(o){if(v(m,g,y,x,n,l,f))return!0}else d+=p(m,g,y,x,l,f);m=y,g=x}}return o||e(g,x)||(d+=p(m,g,y,x,l,f)||0),0!==d}var s=t("../core/PathProxy").CMD,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeRadian,d=t("../core/curve"),p=t("./windingLine"),v=l.containStroke,m=2*Math.PI,g=1e-4,y=[-1,-1,-1],x=[-1,-1];return{contain:function(t,e,n){return o(t,0,!1,e,n)},containStroke:function(t,e,n,i){return o(t,e,!0,n,i)}}}),e("echarts/util/component",[Rn,On,"./clazz"],function(t){var e=t(On),n=t("./clazz"),i=n.parseClassType,r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=i(t),e[t.main]=n},t.determineSubType=function(n,r){var a=r.type;if(!a){var o=i(n).main;t.hasSubTypes(n)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,n){function i(t){var i={},o=[];return e.each(t,function(s){var l=r(i,s),u=l.originalDeps=n(s),c=a(u,t);l.entryCount=c[rn],0===l.entryCount&&o.push(s),e.each(c,function(t){e[Ze](l.predecessor,t)<0&&l.predecessor.push(t);var n=r(i,t);e[Ze](n.successor,t)<0&&n.successor.push(s)})}),{graph:i,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,n){var i=[];return e.each(t,function(t){e[Ze](n,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,n,r,a){function o(t){u[t].entryCount--,0===u[t].entryCount&&c.push(t)}function s(t){h[t]=!0,o(t)}if(t[rn]){var l=i(n),u=l.graph,c=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[rn];){var f=c.pop(),d=u[f],p=!!h[f];p&&(r.call(a,f,d.originalDeps.slice()),delete h[f]),e.each(d.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/coord/cartesian/Cartesian",[Rn,On],function(t){function e(t){return this._axes[t]}var n=t(On),i=function(t){this._axes={},this._dimList=[],this.name=t||""};return i[on]={constructor:i,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return n.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[R](),n[je](this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,ce)},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n[rn];r++){var a=n[r],o=this._axes[a];i[a]=o[e](t[a])}return i}},i}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/Animatable",[Rn,"../animation/Animator",r,"../core/log"],function(t){var e=t("../animation/Animator"),n=t(r),i=n.isString,a=n.isFunction,o=n[k],s=t("../core/log"),l=function(){this.animators=[]};return l[on]={constructor:l,animate:function(t,i){var r,a=!1,o=this,l=this.__zr;if(t){var u=t.split("."),c=o;a="shape"===u[0];for(var h=0,f=u[rn];f>h;h++)c&&(c=c[u[h]]);c&&(r=c)}else r=o;if(!r)return void s('Property "'+t+'" is not existed in element '+o.id);var d=o.animators,p=new e(r,i);return p.during(function(){o.dirty(a)}).done(function(){d[A](n[Ze](d,p),1)}),d.push(p),l&&l[Re].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,n=e[rn],i=0;n>i;i++)e[i].stop(t);return e[rn]=0,this},animateTo:function(t,e,n,r,o){function s(){u--,u||o&&o()}i(n)?(o=r,r=n,n=0):a(r)?(o=r,r="linear",n=0):a(n)?(o=n,n=0):a(e)?(o=e,e=500):e||(e=500),this[le](),this._animateToShallow("",this,t,e,n,r,o);var l=this.animators.slice(),u=l[rn];u||o&&o();for(var c=0;c<l[rn];c++)l[c].done(s).start(r)},_animateToShallow:function(t,e,i,r,a){var s={},l=0;for(var u in i)if(i.hasOwnProperty(u))if(null!=e[u])o(i[u])&&!n.isArrayLike(i[u])?this._animateToShallow(t?t+"."+u:u,e[u],i[u],r,a):(s[u]=i[u],l++);else if(null!=i[u])if(t){var c={};c[t]={},c[t][u]=i[u],this.attr(c)}else this.attr(u,i[u]);return l>0&&this.animate(t,!1).when(null==r?500:r,s).delay(a||0),this}},l}),e("zrender/core/PathProxy",[Rn,"./curve","./vector","./bbox","./BoundingRect","../config"],function(t){var e=t("./curve"),n=t("./vector"),r=t("./bbox"),a=t("./BoundingRect"),s=t("../config").devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],f=[],p=Math.min,v=Math.max,m=Math.cos,g=Math.sin,y=Math.sqrt,x=Math.abs,w=typeof Float32Array!=_,b=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._ux=0,this._uy=0};return b[on]={constructor:b,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=x(1/s/t)||0,this._uy=x(1/s/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(l.M,t,e),this._ctx&&this._ctx[o](t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=x(t-this._xi)>this._ux||x(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx[i](t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,a){return this.addData(l.C,t,e,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,a):this._ctx.bezierCurveTo(t,e,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,n,i){return this.addData(l.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,r,a){return this.addData(l.A,t,e,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=m(r)*n+t,this._xi=g(r)*n+t,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},closePath:function(){this.addData(l.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[d](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t[rn];n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[rn];this.data&&this.data[rn]==e||!w||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[rn],n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();w&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[rn];o++)this.data[i++]=a[o];this._len=i},addData:function(t){var e=this.data;this._len+arguments[rn]>e[rn]&&(this._expandData(),e=this.data);for(var n=0;n<arguments[rn];n++)e[this._len++]=arguments[n];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,r,a=this._dashSum,s=this._dashOffset,l=this._lineDash,u=this._ctx,c=this._xi,h=this._yi,f=t-c,d=e-h,m=y(f*f+d*d),g=c,x=h,_=l[rn];for(f/=m,d/=m,0>s&&(s=a+s),s%=a,g-=s*f,x-=s*d;f>0&&t>=g||0>f&&g>=t||0==f&&(d>0&&e>=x||0>d&&x>=e);)r=this._dashIdx,n=l[r],g+=f*n,x+=d*n,this._dashIdx=(r+1)%_,f>0&&c>g||0>f&&g>c||d>0&&h>x||0>d&&x>h||u[r%2?o:i](f>=0?p(g,t):v(g,t),d>=0?p(x,e):v(x,e));f=g-t,d=x-e,this._dashOffset=-y(f*f+d*d)},_dashedBezierTo:function(t,n,r,a,s,l){var u,c,h,f,d,p=this._dashSum,v=this._dashOffset,m=this._lineDash,g=this._ctx,x=this._xi,_=this._yi,w=e.cubicAt,b=0,M=this._dashIdx,S=m[rn],T=0;for(0>v&&(v=p+v),v%=p,u=0;1>u;u+=.1)c=w(x,t,r,s,u+.1)-w(x,t,r,s,u),h=w(_,n,a,l,u+.1)-w(_,n,a,l,u),b+=y(c*c+h*h);for(;S>M&&(T+=m[M],!(T>v));M++);for(u=(T-v)/b;1>=u;)f=w(x,t,r,s,u),d=w(_,n,a,l,u),M%2?g[o](f,d):g[i](f,d),u+=m[M]/b,M=(M+1)%S;M%2!==0&&g[i](s,l),c=s-f,h=l-d,this._dashOffset=-y(c*c+h*h)},_dashedQuadraticTo:function(t,e,n,i){var r=n,a=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[rn]=this._len,w&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,o=0,s=0,d=0;d<t[rn];){var p=t[d++];switch(1==d&&(e=t[d],i=t[d+1],o=e,s=i),p){case l.M:o=t[d++],s=t[d++],e=o,i=s,h[0]=o,h[1]=s,f[0]=o,f[1]=s;break;case l.L:r.fromLine(e,i,t[d],t[d+1],h,f),e=t[d++],i=t[d++];break;case l.C:r.fromCubic(e,i,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],h,f),e=t[d++],i=t[d++];break;case l.Q:r.fromQuadratic(e,i,t[d++],t[d++],t[d],t[d+1],h,f),e=t[d++],i=t[d++];break;case l.A:var v=t[d++],y=t[d++],x=t[d++],_=t[d++],w=t[d++],b=t[d++]+w,M=(t[d++],1-t[d++]);1==d&&(o=m(w)*x+v,s=g(w)*_+y),r.fromArc(v,y,x,_,w,b,M,h,f),e=m(b)*x+v,i=g(b)*_+y;break;case l.R:o=e=t[d++],s=i=t[d++];var S=t[d++],T=t[d++];r.fromLine(o,s,o+S,s+T,h,f);break;case l.Z:e=o,i=s}n.min(u,u,h),n.max(c,c,f)}return 0===d&&(u[0]=u[1]=c[0]=c[1]=0),new a(u[0],u[1],c[0]-u[0],c[1]-u[1])},rebuildPath:function(t){for(var e,n,r,a,s,u,c=this.data,h=this._ux,f=this._uy,d=this._len,p=0;d>p;){var v=c[p++];switch(1==p&&(r=c[p],a=c[p+1],e=r,n=a),v){case l.M:e=r=c[p++],n=a=c[p++],t[o](r,a);break;case l.L:s=c[p++],u=c[p++],(x(s-r)>h||x(u-a)>f||p===d-1)&&(t[i](s,u),r=s,a=u);break;case l.C:t.bezierCurveTo(c[p++],c[p++],c[p++],c[p++],c[p++],c[p++]),r=c[p-2],a=c[p-1];break;case l.Q:t.quadraticCurveTo(c[p++],c[p++],c[p++],c[p++]),r=c[p-2],a=c[p-1];break;case l.A:var y=c[p++],_=c[p++],w=c[p++],b=c[p++],M=c[p++],S=c[p++],T=c[p++],C=c[p++],A=w>b?w:b,P=w>b?1:w/b,L=w>b?b/w:1,z=Math.abs(w-b)>.001,k=M+S;z?(t.translate(y,_),t.rotate(T),t.scale(P,L),t.arc(0,0,A,M,k,1-C),t.scale(1/P,1/L),t.rotate(-T),t.translate(-y,-_)):t.arc(y,_,A,M,k,1-C),1==p&&(e=m(M)*w+y,n=g(M)*b+_),r=m(k)*w+y,a=g(k)*b+_;break;case l.R:e=r=c[p],n=a=c[p+1],t.rect(c[p++],c[p++],c[p++],c[p++]);break;case l.Z:t.closePath(),r=e,a=n}}}},b.CMD=l,b}),e("echarts/data/helper/completeDimensions",[Rn,On],function(t){function e(t,e,a,o){if(!e)return t;var s=n(e[0]),l=i[M](s)&&s[rn]||1;a=a||[],o=o||"extra";for(var u=0;l>u;u++)if(!t[u]){var c=a[u]||o+(u-a[rn]);t[u]=r(e,u)?{type:"ordinal",name:c}:c}return t}function n(t){return i[M](t)?t:i[k](t)?t.value:t}var i=t(On),r=e.guessOrdinal=function(t,e){for(var r=0,a=t[rn];a>r;r++){var o=n(t[r]);if(!i[M](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(i.isString(o)&&"-"!==o)return!0}return!1};return e}),e("echarts/chart/helper/LineDraw",[Rn,Be,"./Line"],function(t){function e(t){return isNaN(t[0])||isNaN(t[1])}function n(t){return!e(t[0])&&!e(t[1])}function i(t){this._ctor=t||a,this.group=new r.Group}var r=t(Be),a=t("./Line"),o=i[on];return o[ue]=function(t){var e=this._lineData,i=this.group,r=this._ctor,a=t[oe],o={lineStyle:a[Cn]("lineStyle.normal")[se](),hoverLineStyle:a[Cn]("lineStyle.emphasis")[se](),labelModel:a[Cn](we),hoverLabelModel:a[Cn](_e)};t.diff(e).add(function(e){if(n(t[De](e))){var a=new r(t,e,o);t[Ae](e,a),i.add(a)}})[Pe](function(a,s){var l=e[Ce](s);return n(t[De](a))?(l?l[ue](t,a,o):l=new r(t,a,o),t[Ae](a,l),void i.add(l)):void i[Le](l)})[Le](function(t){i[Le](e[Ce](t))})[ze](),this._lineData=t},o[I]=function(){var t=this._lineData;t[Te](function(e,n){e[I](t,n)},this)},o[Le]=function(){this.group[kn]()},i}),e("zrender/mixin/Transformable",[Rn,"../core/matrix","../core/vector"],function(t){function e(t){return t>o||-o>t}var i=t("../core/matrix"),r=t("../core/vector"),a=i.identity,o=5e-5,s=function(t){t=t||{},t[cn]||(this[cn]=[0,0]),null==t[m]&&(this[m]=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=s[on];l[j]=null,l.needLocalTransform=function(){return e(this[m])||e(this[cn][0])||e(this[cn][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},l[n]=function(){var t=this[u],e=t&&t[j],n=this.needLocalTransform(),r=this[j];return n||e?(r=r||i[tn](),n?this.getLocalTransform(r):a(r),e&&(n?i.mul(r,t[j],r):i.copy(r,t[j])),this[j]=r,this.invTransform=this.invTransform||i[tn](),void i.invert(this.invTransform,r)):void(r&&a(r))},l.getLocalTransform=function(t){t=t||[],a(t);var e=this.origin,n=this.scale,r=this[m],o=this[cn];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),r&&i.rotate(t,t,r),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},l.setTransform=function(t){var e=this[j],n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},l.restoreTransform=function(t){var e=(this[j],t.dpr||1);t.setTransform(e,0,0,e,0,0)};var c=[];return l.decomposeTransform=function(){if(this[j]){var t=this[u],n=this[j];t&&t[j]&&(i.mul(c,t.invTransform,n),n=c);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],o=this[cn],s=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),n[0]<0&&(r=-r),n[3]<0&&(a=-a),o[0]=n[4],o[1]=n[5],s[0]=r,s[1]=a,this[m]=Math.atan2(-n[1]/a,n[0]/r)}},l.getGlobalScale=function(){var t=this[j];if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),n=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(n=-n),[e,n]},l.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r[X](n,n,i),n},l.transformCoordToGlobal=function(t,e){var n=[t,e],i=this[j];return i&&r[X](n,n,i),n},s}),e("echarts/chart/helper/EffectLine",[Rn,Be,"./Line",On,"../../util/symbol",E,"zrender/core/curve"],function(t){function e(t,e,i){n.Group.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}var n=t(Be),i=t("./Line"),r=t(On),a=t("../../util/symbol"),o=t(E),s=t("zrender/core/curve"),l=e[on];return l.createLine=function(t,e,n){return new i(t,e,n)},l._updateEffectSymbol=function(t,e){var n=t[Ye](e),i=n[Cn]("effect"),o=i.get("symbolSize"),s=i.get("symbol");r[M](o)||(o=[o,o]);var l=i.get("color")||t[Se](e,"color"),u=this[y](1);this._symbolType!==s&&(this[Le](u),u=a.createSymbol(s,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u[un]("shadowColor",l),u[un](i[An](["color"])),u.attr("scale",o),u.setColor(l),u.attr("scale",o),this._symbolType=s,this._updateEffectAnimation(t,i,e))},l._updateEffectAnimation=function(t,e,n){var i=this[y](1);if(i){var a=this,o=t[De](n),s=1e3*e.get("period"),l=e.get("loop"),u=e.get("constantSpeed"),c=r[xe](e.get("delay"),function(e){return e/t.count()*s/3}),h=typeof c===Je;if(i[re]=!0,this.updateAnimationPoints(i,o),u>0&&(s=this.getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i[le]();var f=c;h&&(f=c(n)),i.__t>0&&(f=-s*i.__t),i.__t=0;var d=i.animate("",l).when(s,{__t:1}).delay(f).during(function(){a.updateSymbolPosition(i)});l||d.done(function(){a[Le](i)}),d.start()}this._period=s,this._loop=l}},l.getLineLength=function(t){return o.dist(t.__p1,t.__cp1)+o.dist(t.__cp1,t.__p2)},l.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},l[ue]=function(t,e,n){this[y](0)[ue](t,e,n),this._updateEffectSymbol(t,e)},l.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,a=t[cn],o=s.quadraticAt,l=s.quadraticDerivativeAt;a[0]=o(e[0],i[0],n[0],r),a[1]=o(e[1],i[1],n[1],r);var u=l(e[0],i[0],n[0],r),c=l(e[1],i[1],n[1],r);t[m]=-Math.atan2(c,u)-Math.PI/2,t[re]=!1},l[I]=function(t,e){this[y](0)[I](t,e);var n=t[Ye](e)[Cn]("effect");this._updateEffectAnimation(t,n,e)},r[b](e,n.Group),e}),e("echarts/chart/helper/EffectPolyline",[Rn,"./Polyline",On,"./EffectLine",E],function(t){function e(t,e,n){r.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}var n=t("./Polyline"),i=t(On),r=t("./EffectLine"),a=t(E),o=e[on];return o.createLine=function(t,e,i){return new n(t,e,i)},o.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e[rn];r++){var o=e[r-1],s=e[r];i+=a.dist(o,s),n.push(i)}if(0!==i){for(var r=0;r<n[rn];r++)n[r]/=i;this._offsets=n,this._length=i}},o.getLineLength=function(){return this._length},o.updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,r=n[rn];if(i){var o,s=this._lastFrame;if(e<this._lastFramePercent){var l=Math.min(s+1,r-1);for(o=l;o>=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(var o=s;r>o&&!(i[o]>e);o++);o=Math.min(o-1,r-2)}a.lerp(t[cn],n[o],n[o+1],(e-i[o])/(i[o+1]-i[o]));var u=n[o+1][0]-n[o][0],c=n[o+1][1]-n[o][1];t[m]=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t[re]=!1}},i[b](e,r),e}),e("echarts/chart/gauge/PointerPath",[Rn,"zrender/graphic/Path"],function(t){return t("zrender/graphic/Path")[an]({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,r=Math.sin,a=e.r,s=e.width,l=e.angle,u=e.x-n(l)*s*(s>=a/3?1:2),c=e.y-r(l)*s*(s>=a/3?1:2);l=e.angle-Math.PI/2,t[o](u,c),t[i](e.x+n(l)*s,e.y+r(l)*s),t[i](e.x+n(e.angle)*a,e.y+r(e.angle)*a),t[i](e.x-n(l)*s,e.y-r(l)*s),t[i](u,c)}})}),e("echarts/coord/cartesian/axisLabelInterval",[Rn,On,"../axisHelper"],function(t){var e=t(On),n=t("../axisHelper");return function(t){var i=t.model,r=i[Cn]("axisLabel"),a=r.get("interval");return t.type!==te||"auto"!==a?"auto"===a?0:a:n.getAxisLabelInterval(e.map(t.scale.getTicks(),t[ce],t),i.getFormattedLabels(),r[Cn](Tn)[Mn](),t.isHorizontal())}}),e("echarts/coord/Axis",[Rn,"../util/number",On],function(t){function e(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}var n=t("../util/number"),i=n.linearMap,r=t(On),a=[0,1],o=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};return o[on]={constructor:o,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&i>=t},containData:function(t){return this[nn](this[ce](t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return n.getPixelPrecision(t||this.scale[Ke](),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,n){var r=this._extent,o=this.scale;return t=o[en](t),this.onBand&&o.type===ie&&(r=r.slice(),e(r,o.count())),i(t,a,r,n)},coordToData:function(t,n){var r=this._extent,o=this.scale;this.onBand&&o.type===ie&&(r=r.slice(),e(r,o.count()));var s=i(t,r,a,n);return this.scale.scale(s)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),n=[],i=0;i<e[rn];i++)n.push(e[i][0]);return e[i-1]&&n.push(e[i-1][1]),n}return r.map(this.scale.getTicks(),this[ce],this)},getLabelsCoords:function(){return r.map(this.scale.getTicks(),this[ce],this)},getBands:function(){for(var t=this[Ke](),e=[],n=this.scale.count(),i=t[0],r=t[1],a=r-i,o=0;n>o;o++)e.push([a*o/n+i,a*(o+1)/n+i]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[Ke](),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n}},o}),e("zrender/graphic/Style",[Rn],function(){function t(t,e,n){var i=e.x,r=e.x2,a=e.y,o=e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,a=a*n[_n]+n.y,o=o*n[_n]+n.y);var s=t.createLinearGradient(i,a,r,o);return s}function e(t,e,n){var i=n.width,r=n[_n],a=Math.min(i,r),o=e.x,s=e.y,l=e.r;e.global||(o=o*i+n.x,s=s*r+n.y,l*=a);var u=t.createRadialGradient(o,s,0,o,s,l);return u}var n=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],i=function(t){this.extendFrom(t)};i[on]={constructor:i,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textTransform:!1,textRotation:0,blend:null,bind:function(t,e,i){for(var r=this,a=i&&i.style,o=!a,s=0;s<n[rn];s++){var l=n[s],u=l[0];(o||r[u]!==a[u])&&(t[u]=r[u]||l[1])}if((o||r.fill!==a.fill)&&(t.fillStyle=r.fill),(o||r[d]!==a[d])&&(t.strokeStyle=r[d]),(o||r[ln]!==a[ln])&&(t.globalAlpha=null==r[ln]?1:r[ln]),(o||r.blend!==a.blend)&&(t.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var h=r[c];t[c]=h/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this[d];return null!=t&&"none"!==t&&this[c]>0},extendFrom:function(t,e){if(t){var n=this;for(var i in t)!t.hasOwnProperty(i)||!e&&n.hasOwnProperty(i)||(n[i]=t[i])}},set:function(t,e){typeof t===He?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(n,i,r){for(var a="radial"===i.type?e:t,o=a(n,i,r),s=i[D],l=0;l<s[rn];l++)o.addColorStop(s[l].offset,s[l].color);return o}};for(var r=i[on],a=0;a<n[rn];a++){var o=n[a];o[0]in r||(r[o[0]]=o[1])}return i.getGradient=r.getGradient,i}),e("echarts/chart/helper/Line",[Rn,"../../util/symbol",E,"./LinePath",Be,On,w],function(t){function e(t){return"_"+t+"Type"}function n(t,e,n){var i=e[Se](n,"color"),r=e[Se](n,t),a=e[Se](n,t+"Size");if(r&&"none"!==r){d[M](a)||(a=[a,a]);var o=l.createSymbol(r,-a[0]/2,-a[1]/2,a[0],a[1],i);return o.name=t,o}}function i(t){var e=new h({name:"line"});return r(e.shape,t),e}function r(t,e){var n=e[0],i=e[1],r=e[2];t.x1=n[0],t.y1=n[1],t.x2=i[0],t.y2=i[1],t.percent=1,r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=0/0,t.cpy1=0/0)}function a(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.childOfName("label");if(e||n||!i[re]){for(var r=1,a=this[u];a;)a.scale&&(r/=a.scale[0]),a=a[u];var o=t.childOfName("line");if(this[s]||o[s]){var l=o.shape.percent,h=o.pointAt(0),f=o.pointAt(l),d=c.sub([],f,h);if(c[en](d,d),e){e.attr(cn,h);var p=o.tangentAt(0);e.attr(m,Math.PI/2-Math.atan2(p[1],p[0])),e.attr("scale",[r*l,r*l])}if(n){n.attr(cn,f);var p=o.tangentAt(1);n.attr(m,-Math.PI/2-Math.atan2(p[1],p[0])),n.attr("scale",[r*l,r*l])}if(!i[re]){i.attr(cn,f);var v,g,y,x=5*r;if("end"===i.__position)v=[d[0]*x+f[0],d[1]*x+f[1]],g=d[0]>.8?"left":d[0]<-.8?"right":fn,y=d[1]>.8?"top":d[1]<-.8?hn:dn;else if(i.__position===dn){var _=l/2,p=o.tangentAt(_),w=[p[1],-p[0]],b=o.pointAt(_);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]),v=[b[0]+w[0]*x,b[1]+w[1]*x],g=fn,y=hn;var M=-Math.atan2(p[1],p[0]);f[0]<h[0]&&(M=Math.PI+M),i.attr(m,M)}else v=[-d[0]*x+h[0],-d[1]*x+h[1]],g=d[0]>.8?"right":d[0]<-.8?"left":fn,y=d[1]>.8?hn:d[1]<-.8?"top":dn;
i.attr({style:{textVerticalAlign:i.__verticalAlign||y,textAlign:i.__textAlign||g},position:v,scale:[r,r]})}}}}function o(t,e,n){f.Group.call(this),this._createLine(t,e,n)}var l=t("../../util/symbol"),c=t(E),h=t("./LinePath"),f=t(Be),d=t(On),p=t(w),y=["fromSymbol","toSymbol"],x=o[on];return x.beforeUpdate=a,x._createLine=function(t,r,a){var o=t[oe],s=t[De](r),l=i(s);l.shape.percent=0,f[ke](l,{shape:{percent:1}},o,r),this.add(l);var u=new f.Text({name:"label"});this.add(u),d.each(y,function(i){var a=n(i,t,r);this.add(a),this[e(i)]=t[Se](r,i)},this),this._updateCommonStl(t,r,a)},x[ue]=function(t,i,a){var o=t[oe],s=this.childOfName("line"),l=t[De](i),u={shape:{}};r(u.shape,l),f[Ie](s,u,o,i),d.each(y,function(r){var a=t[Se](i,r),o=e(r);if(this[o]!==a){this[Le](this.childOfName(r));var s=n(r,t,i);this.add(s)}this[o]=a},this),this._updateCommonStl(t,i,a)},x._updateCommonStl=function(t,e,n){var i=t[oe],r=this.childOfName("line"),a=n&&n[v],o=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;if(!n||t[U]){var u=t[Ye](e);a=u[Cn]("lineStyle.normal")[se](),o=u[Cn]("lineStyle.emphasis")[se](),s=u[Cn](we),l=u[Cn](_e)}var c=t[Se](e,"color"),h=d[xe](t[Se](e,ln),a[ln],1);r[be](d[Ln]({strokeNoScale:!0,fill:"none",stroke:c,opacity:h},a)),r[g]=o,d.each(y,function(t){var e=this.childOfName(t);e&&(e.setColor(c),e[un]({opacity:h}))},this);var m,x,_=s[Ue]("show"),w=l[Ue]("show"),b=this.childOfName("label");if(_||w){var M=i.getRawValue(e);x=null==M?x=t[H](e):isFinite(M)?p.round(M):M,m=c||"#000"}if(_){var S=s[Cn](Tn);b[un]({text:d[xe](i[ye](e,Oe,t.dataType),x),textFont:S[Mn](),fill:S[bn]()||m}),b.__textAlign=S.get("align"),b.__verticalAlign=S.get("baseline"),b.__position=s.get(cn)}else b[un]("text","");if(w){var T=l[Cn](Tn);b[g]={text:d[xe](i[ye](e,ge,t.dataType),x),textFont:T[Mn](),fill:T[bn]()||m}}else b[g]={text:""};b[re]=!_&&!w,f[me](this)},x[I]=function(t,e){this.setLinePoints(t[De](e))},x.setLinePoints=function(t){var e=this.childOfName("line");r(e.shape,t),e.dirty()},d[b](o,f.Group),o}),e("zrender/config",[],function(){var t=1;typeof window!==_&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("echarts/chart/helper/LargeLineDraw",[Rn,Be,"zrender/contain/quadratic","zrender/contain/line"],function(t){function e(){this.group=new n.Group,this._lineEl=new s}var n=t(Be),r=t("zrender/contain/quadratic"),a=t("zrender/contain/line"),s=n.extendShape({shape:{polyline:!1,segs:[]},buildPath:function(t,e){for(var n=e.segs,r=e.polyline,a=0;a<n[rn];a++){var s=n[a];if(r){t[o](s[0][0],s[0][1]);for(var l=1;l<s[rn];l++)t[i](s[l][0],s[l][1])}else t[o](s[0][0],s[0][1]),s[rn]>2?t.quadraticCurveTo(s[2][0],s[2][1],s[1][0],s[1][1]):t[i](s[1][0],s[1][1])}},findDataIndex:function(t,e){for(var n=this.shape,i=n.segs,o=n.polyline,s=Math.max(this.style[c],1),l=0;l<i[rn];l++){var u=i[l];if(o){for(var h=1;h<u[rn];h++)if(a.containStroke(u[h-1][0],u[h-1][1],u[h][0],u[h][1],s,t,e))return l}else if(u[rn]>2){if(r.containStroke(u[0][0],u[0][1],u[2][0],u[2][1],u[1][0],u[1][1],s,t,e))return l}else if(a.containStroke(u[0][0],u[0][1],u[1][0],u[1][1],s,t,e))return l}return-1}}),l=e[on];return l[ue]=function(t){this.group[kn]();var e=this._lineEl,n=t[oe];e[Me]({segs:t[fe](t[De]),polyline:n.get("polyline")}),e[be](n[Cn]("lineStyle.normal")[se]());var i=t.getVisual("color");i&&e[un](d,i),e[un]("fill"),e[ee]=n[ee],e.on(C,function(t){e[ve]=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e[ve]=n)}),this.group.add(e)},l[I]=function(t){var e=t[Dn]();this._lineEl[Me]({segs:e[fe](e[De])})},l[Le]=function(){this.group[kn]()},e}),e("zrender/core/log",[Rn,"../config"],function(t){var e=t("../config");return function(){if(0!==e.debugMode)if(1==e.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(e.debugMode>1)for(var t in arguments)console.log(arguments[t])}}),e("zrender/animation/Animator",[Rn,"./Clip","../tool/color",r],function(t){function e(t,e){return t[e]}function n(t,e,n){t[e]=n}function i(t,e,n){return(e-t)*n+t}function a(t,e,n){return n>.5?e:t}function o(t,e,n,r,a){var o=t[rn];if(1==a)for(var s=0;o>s;s++)r[s]=i(t[s],e[s],n);else for(var l=t[0][rn],s=0;o>s;s++)for(var u=0;l>u;u++)r[s][u]=i(t[s][u],e[s][u],n)}function s(t,e,n){var i=t[rn],r=e[rn];if(i!==r){var a=i>r;if(a)t[rn]=r;else for(var o=i;r>o;o++)t.push(1===n?e[o]:y.call(e[o]))}for(var s=t[0]&&t[0][rn],o=0;o<t[rn];o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var l=0;s>l;l++)isNaN(t[o][l])&&(t[o][l]=e[o][l])}function l(t,e,n){if(t===e)return!0;var i=t[rn];if(i!==e[rn])return!1;if(1===n){for(var r=0;i>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][rn],r=0;i>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function u(t,e,n,i,r,a,o,s,l){var u=t[rn];if(1==l)for(var h=0;u>h;h++)s[h]=c(t[h],e[h],n[h],i[h],r,a,o);else for(var f=t[0][rn],h=0;u>h;h++)for(var d=0;f>d;d++)s[h][d]=c(t[h][d],e[h][d],n[h][d],i[h][d],r,a,o)}function c(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}function h(t){if(g(t)){var e=t[rn];if(g(t[0])){for(var n=[],i=0;e>i;i++)n.push(y.call(t[i]));return n}return y.call(t)}return t}function f(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,n,r,h){var d=t._getter,m=t._setter,y="spline"===e,x=r[rn];if(x){var _,w=r[0].value,b=g(w),M=!1,S=!1,T=b&&g(w[0])?2:1;r.sort(function(t,e){return t.time-e.time}),_=r[x-1].time;for(var C=[],A=[],P=r[0].value,L=!0,z=0;x>z;z++){C.push(r[z].time/_);var k=r[z].value;if(b&&l(k,P,T)||!b&&k===P||(L=!1),P=k,typeof k==He){var I=v.parse(k);I?(k=I,M=!0):S=!0}A.push(k)}if(!L){for(var D=A[x-1],z=0;x-1>z;z++)b?s(A[z],D,T):!isNaN(A[z])||isNaN(D)||S||M||(A[z]=D);b&&s(d(t._target,h),D,T);var O,R,E,B,N,V,F=0,G=0;if(M)var H=[0,0,0,0];var Z=function(t,e){var n;if(0>e)n=0;else if(G>e){for(O=Math.min(F+1,x-1),n=O;n>=0&&!(C[n]<=e);n--);n=Math.min(n,x-2)}else{for(n=F;x>n&&!(C[n]>e);n++);n=Math.min(n-1,x-2)}F=n,G=e;var r=C[n+1]-C[n];if(0!==r)if(R=(e-C[n])/r,y)if(B=A[n],E=A[0===n?n:n-1],N=A[n>x-2?x-1:n+1],V=A[n>x-3?x-1:n+2],b)u(E,B,N,V,R,R*R,R*R*R,d(t,h),T);else{var s;if(M)s=u(E,B,N,V,R,R*R,R*R*R,H,1),s=f(H);else{if(S)return a(B,N,R);s=c(E,B,N,V,R,R*R,R*R*R)}m(t,h,s)}else if(b)o(A[n],A[n+1],R,d(t,h),T);else{var s;if(M)o(A[n],A[n+1],R,H,1),s=f(H);else{if(S)return a(A[n],A[n+1],R);s=i(A[n],A[n+1],R)}m(t,h,s)}},q=new p({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:Z,ondestroy:n});return e&&"spline"!==e&&(q.easing=e),q}}}var p=t("./Clip"),v=t("../tool/color"),m=t(r),g=m.isArrayLike,y=Array[on].slice,x=function(t,i,r,a){this._tracks={},this._target=t,this._loop=i||!1,this._getter=r||e,this._setter=a||n,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return x[on]={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:h(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[rn]=0;for(var t=this._doneList,e=t[rn],n=0;e>n;n++)t[n].call(this)},start:function(t){var e,n=this,i=0,r=function(){i--,i||n._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),i++,this[Re]&&this[Re].addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var i=0;i<n._onframeList[rn];i++)n._onframeList[i](t,e)}}return i||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this[Re],i=0;i<e[rn];i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e[rn]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},x}),e("echarts/coord/cartesian/AxisModel",[Rn,"../../model/Component",On,"../axisModelCreator","../axisModelCommonMixin","../axisModelZoomMixin"],function(t){function e(t,e){return e.type||(e.data?te:"value")}var n=t("../../model/Component"),i=t(On),r=t("../axisModelCreator"),a=n[an]({type:"cartesian2dAxis",axis:null,init:function(){a[q](this,"init",arguments),this.resetRange()},mergeOption:function(){a[q](this,Z,arguments),this.resetRange()},restoreData:function(){a[q](this,"restoreData",arguments),this.resetRange()},findGridModel:function(){return this[f][l]({mainType:"grid",index:this.get("gridIndex"),id:this.get("gridId")})[0]}});i.merge(a[on],t("../axisModelCommonMixin")),i.merge(a[on],t("../axisModelZoomMixin"));var o={offset:0};return r("x",a,e,o),r("y",a,e,o),a}),e("zrender/core/bbox",[Rn,"./vector","./curve"],function(t){var e=t("./vector"),n=t("./curve"),i={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,l=e[tn](),u=e[tn](),c=e[tn](),h=2*Math.PI;i.fromPoints=function(t,e,n){if(0!==t[rn]){var i,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(i=1;i<t[rn];i++)o=t[i],s=r(s,o[0]),l=a(l,o[0]),u=r(u,o[1]),c=a(c,o[1]);e[0]=s,e[1]=u,n[0]=l,n[1]=c}},i.fromLine=function(t,e,n,i,o,s){o[0]=r(t,n),o[1]=r(e,i),s[0]=a(t,n),s[1]=a(e,i)};var f=[],d=[];return i.fromCubic=function(t,e,i,o,s,l,u,c,h,p){var v,m=n.cubicExtrema,g=n.cubicAt,y=m(t,i,s,u,f);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,v=0;y>v;v++){var x=g(t,i,s,u,f[v]);h[0]=r(x,h[0]),p[0]=a(x,p[0])}for(y=m(e,o,l,c,d),v=0;y>v;v++){var _=g(e,o,l,c,d[v]);h[1]=r(_,h[1]),p[1]=a(_,p[1])}h[0]=r(t,h[0]),p[0]=a(t,p[0]),h[0]=r(u,h[0]),p[0]=a(u,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(c,h[1]),p[1]=a(c,p[1])},i.fromQuadratic=function(t,e,i,o,s,l,u,c){var h=n.quadraticExtremum,f=n.quadraticAt,d=a(r(h(t,i,s),1),0),p=a(r(h(e,o,l),1),0),v=f(t,i,s,d),m=f(e,o,l,p);u[0]=r(t,s,v),u[1]=r(e,l,m),c[0]=a(t,s,v),c[1]=a(e,l,m)},i.fromArc=function(t,n,i,r,a,f,d,p,v){var m=e.min,g=e.max,y=Math.abs(a-f);if(1e-4>y%h&&y>1e-4)return p[0]=t-i,p[1]=n-r,v[0]=t+i,void(v[1]=n+r);if(l[0]=s(a)*i+t,l[1]=o(a)*r+n,u[0]=s(f)*i+t,u[1]=o(f)*r+n,m(p,l,u),g(v,l,u),a%=h,0>a&&(a+=h),f%=h,0>f&&(f+=h),a>f&&!d?f+=h:f>a&&d&&(a+=h),d){var x=f;f=a,a=x}for(var _=0;f>_;_+=Math.PI/2)_>a&&(c[0]=s(_)*i+t,c[1]=o(_)*r+n,m(p,c,p),g(v,c,v))},i}),e("zrender/core/curve",[Rn,"./vector"],function(t){function e(t){return t>-_&&_>t}function n(t){return t>_||-_>t}function i(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function r(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)}function a(t,n,i,r,a,o){var s=r+3*(n-i)-t,l=3*(i-2*n+t),u=3*(n-t),c=t-a,h=l*l-3*s*u,f=l*u-9*s*c,d=u*u-3*l*c,p=0;if(e(h)&&e(f))if(e(l))o[0]=0;else{var v=-u/l;v>=0&&1>=v&&(o[p++]=v)}else{var m=f*f-4*h*d;if(e(m)){var g=f/h,v=-l/s+g,_=-g/2;v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_)}else if(m>0){var w=x(m),S=h*l+1.5*s*(-f+w),T=h*l+1.5*s*(-f-w);S=0>S?-y(-S,M):y(S,M),T=0>T?-y(-T,M):y(T,M);var v=(-l-(S+T))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var C=(2*h*l-3*s*f)/(2*x(h*h*h)),A=Math.acos(C)/3,P=x(h),L=Math.cos(A),v=(-l-2*P*L)/(3*s),_=(-l+P*(L+b*Math.sin(A)))/(3*s),z=(-l+P*(L-b*Math.sin(A)))/(3*s);v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_),z>=0&&1>=z&&(o[p++]=z)}}return p}function o(t,i,r,a,o){var s=6*r-12*i+6*t,l=9*i+3*a-3*t-9*r,u=3*i-3*t,c=0;if(e(l)){if(n(s)){var h=-u/s;h>=0&&1>=h&&(o[c++]=h)}}else{var f=s*s-4*l*u;if(e(f))o[0]=-s/(2*l);else if(f>0){var d=x(f),h=(-s+d)/(2*l),p=(-s-d)/(2*l);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=i}function l(t,e,n,r,a,o,s,l,u,c,h){var f,d,p,v,m,y=.005,_=1/0;S[0]=u,S[1]=c;for(var b=0;1>b;b+=.05)T[0]=i(t,n,a,s,b),T[1]=i(e,r,o,l,b),v=g(S,T),_>v&&(f=b,_=v);_=1/0;for(var M=0;32>M&&!(w>y);M++)d=f-y,p=f+y,T[0]=i(t,n,a,s,d),T[1]=i(e,r,o,l,d),v=g(T,S),d>=0&&_>v?(f=d,_=v):(C[0]=i(t,n,a,s,p),C[1]=i(e,r,o,l,p),m=g(C,S),1>=p&&_>m?(f=p,_=m):y*=.5);return h&&(h[0]=i(t,n,a,s,f),h[1]=i(e,r,o,l,f)),x(_)}function u(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function c(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function h(t,i,r,a,o){var s=t-2*i+r,l=2*(i-t),u=t-a,c=0;if(e(s)){if(n(l)){var h=-u/l;h>=0&&1>=h&&(o[c++]=h)}}else{var f=l*l-4*s*u;if(e(f)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(f>0){var d=x(f),h=(-l+d)/(2*s),p=(-l-d)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function f(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function d(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function p(t,e,n,i,r,a,o,s,l){var c,h=.005,f=1/0;S[0]=o,S[1]=s;for(var d=0;1>d;d+=.05){T[0]=u(t,n,r,d),T[1]=u(e,i,a,d);var p=g(S,T);f>p&&(c=d,f=p)}f=1/0;for(var v=0;32>v&&!(w>h);v++){var m=c-h,y=c+h;T[0]=u(t,n,r,m),T[1]=u(e,i,a,m);var p=g(T,S);if(m>=0&&f>p)c=m,f=p;else{C[0]=u(t,n,r,y),C[1]=u(e,i,a,y);var _=g(C,S);1>=y&&f>_?(c=y,f=_):h*=.5}}return l&&(l[0]=u(t,n,r,c),l[1]=u(e,i,a,c)),x(f)}var v=t("./vector"),m=v[tn],g=v.distSquare,y=Math.pow,x=Math.sqrt,_=1e-8,w=1e-4,b=x(3),M=1/3,S=m(),T=m(),C=m();return{cubicAt:i,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:u,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:f,quadraticSubdivide:d,quadraticProjectPoint:p}}),e("echarts/chart/heatmap/HeatmapLayer",[Rn,On],function(t){function e(){var t=i.createCanvas();this[We]=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}var n=256,i=t(On);return e[on]={update:function(t,e,i,r,a,o){var s=this._getBrush(),l=this._getGradient(t,a,"inRange"),u=this._getGradient(t,a,"outOfRange"),c=this.pointSize+this.blurSize,h=this[We],f=h[qe]("2d"),d=t[rn];h.width=e,h[_n]=i;for(var p=0;d>p;++p){var v=t[p],m=v[0],g=v[1],y=v[2],x=r(y);f.globalAlpha=x,f.drawImage(s,m-c,g-c)}for(var _=f.getImageData(0,0,h.width,h[_n]),w=_.data,b=0,M=w[rn],S=this.minOpacity,T=this.maxOpacity,C=T-S;M>b;){var x=w[b+3]/256,A=4*Math.floor(x*(n-1));if(x>0){var P=o(x)?l:u;x>0&&(x=x*C+S),w[b++]=P[A],w[b++]=P[A+1],w[b++]=P[A+2],w[b++]=P[A+3]*x*256}else b+=4}return f.putImageData(_,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=i.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t[_n]=n;var r=t[qe]("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),a=[],o=0,s=0;256>s;s++)e[n](s/255,!0,a),r[o++]=a[0],r[o++]=a[1],r[o++]=a[2],r[o++]=a[3];return r}},e}),e("echarts/coord/axisModelCreator",[Rn,"./axisDefault",On,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),n=t(On),i=t("../model/Component"),r=t("../util/layout"),a=["value",te,"time","log"];return function(t,o,s,l){n.each(a,function(i){o[an]({type:t+"Axis."+i,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,l=o?r.getLayoutParams(e):{},u=a.getTheme();n.merge(e,u.get(i+"Axis")),n.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,l,o)},defaultOption:n.mergeAll([{},e[i+"Axis"],l],!0)})}),i.registerSubTypeDefaulter(t+"Axis",n.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[Rn,On,"./axisHelper"],function(t){function e(t){return r[k](t)&&null!=t.value?t.value:t}function n(){return this.get("type")===te&&r.map(this.get("data"),e)}function i(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(On),a=t("./axisHelper");return{getFormattedLabels:i,getCategories:n}}),e("echarts/coord/axisModelZoomMixin",[Rn],function(){return{getMin:function(){var t=this[W],e=null!=t.rangeStart?t.rangeStart:t.min;return e instanceof Date&&(e=+e),e},getMax:function(){var t=this[W],e=null!=t.rangeEnd?t.rangeEnd:t.max;return e instanceof Date&&(e=+e),e},getNeedCrossZero:function(){var t=this[W];return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},setRange:function(t,e){this[W].rangeStart=t,this[W].rangeEnd=e},resetRange:function(){this[W].rangeStart=this[W].rangeEnd=null}}}),e("echarts/coord/axisDefault",[Rn,On],function(t){var e=t(On),n={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},i=e.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},n),r=e.merge({boundaryGap:[0,0],splitNumber:5},n),a=e[Ln]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[Ln]({logBase:10},r);return o.scale=!0,{categoryAxis:i,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/chart/helper/Polyline",[Rn,Be,On],function(t){function e(t,e,i){n.Group.call(this),this._createPolyline(t,e,i)}var n=t(Be),i=t(On),r=e[on];return r._createPolyline=function(t,e,i){var r=t[De](e),a=new n.Polyline({shape:{points:r}});this.add(a),this._updateCommonStl(t,e,i)},r[ue]=function(t,e,i){var r=t[oe],a=this[y](0),o={shape:{points:t[De](e)}};n[Ie](a,o,r,e),this._updateCommonStl(t,e,i)},r._updateCommonStl=function(t,e,r){var a=this[y](0),o=t[Ye](e),s=t[Se](e,"color"),l=r&&r[v],u=r&&r.hoverLineStyle;(!r||t[U])&&(l=o[Cn]("lineStyle.normal")[se](),u=o[Cn]("lineStyle.emphasis")[se]()),a[be](i[Ln]({strokeNoScale:!0,fill:"none",stroke:s},l)),a[g]=u,n[me](this)},r[I]=function(t,e){var n=this[y](0);n[Me]("points",t[De](e))},i[b](e,n.Group),e}),e("echarts/chart/bar/barItemStyle",[Rn,"../../model/mixin/makeStyleMapper"],function(t){var e=t("../../model/mixin/makeStyleMapper")([["fill","color"],[d,"borderColor"],[c,"borderWidth"],[d,"barBorderColor"],[c,"barBorderWidth"],[ln],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getBarItemStyle:function(t){var n=e.call(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(n.lineDash=i)}return n}}}),e("zrender/animation/Clip",[Rn,"./easing"],function(t){function e(t){this._target=t[yn],this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var n=t("./easing");return e[on]={constructor:e,step:function(t){this._initialized||(this._startTime=t+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var i=this.easing,r=typeof i==He?n[i]:i,a=typeof r===Je?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime)%this._life;this._startTime=t-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("zrender/animation/easing",[],function(){var t={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};return t}),e("zrender/contain/windingLine",[],function(){return function(t,e,n,i,r,a){if(a>e&&a>i||e>a&&i>a)return 0;if(i===e)return 0;var o=e>i?1:-1,s=(a-e)/(i-e);(1===s||0===s)&&(o=e>i?.5:-.5);var l=s*(n-t)+t;return l>r?o:0}}),e("zrender/contain/util",[Rn],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/arc",[Rn,"./util"],function(t){var e=t("./util").normalizeRadian,n=2*Math.PI;return{containStroke:function(t,i,r,a,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=i;var f=Math.sqrt(u*u+c*c);if(f-h>r||r>f+h)return!1;if(Math.abs(a-o)%n<1e-4)return!0;if(s){var d=a;a=e(o),o=e(d)}else a=e(a),o=e(o);a>o&&(o+=n);var p=Math.atan2(c,u);return 0>p&&(p+=n),p>=a&&o>=p||p+n>=a&&o>=p+n}}}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>i+s||e-s>o&&i-s>o||a>t+s&&a>n+s||t-s>a&&n-s>a)return!1;if(t===n)return Math.abs(a-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var c=l*a-o+u,h=c*c/(l*l+1);return s/2*s/2>=h}}}),e("zrender/contain/cubic",[Rn,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,n,i,r,a,o,s,l,u,c,h){if(0===u)return!1;var f=u;if(h>n+f&&h>r+f&&h>o+f&&h>l+f||n-f>h&&r-f>h&&o-f>h&&l-f>h||c>t+f&&c>i+f&&c>a+f&&c>s+f||t-f>c&&i-f>c&&a-f>c&&s-f>c)return!1;var d=e.cubicProjectPoint(t,n,i,r,a,o,s,l,c,h,null);return f/2>=d}}}),e("zrender/contain/quadratic",[Rn,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,n,i,r,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>n+c&&u>r+c&&u>o+c||n-c>u&&r-c>u&&o-c>u||l>t+c&&l>i+c&&l>a+c||t-c>l&&i-c>l&&a-c>l)return!1;var h=e.quadraticProjectPoint(t,n,i,r,a,o,l,u,null);return c/2>=h}}}),e("zrender/core/LRU",[Rn],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[on];e.insert=function(t){var e=new n(t);return this.insertEntry(e),e},e.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},e[Le]=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},e.len=function(){return this._len};var n=function(t){this.value=t,this.next,this.prev},i=function(e){this._list=new t,this._map={},this._maxSize=e||10},r=i[on];return r.put=function(t,e){var n=this._list,i=this._map;if(null==i[t]){var r=n.len();if(r>=this._maxSize&&r>0){var a=n.head;n[Le](a),delete i[a.key]}var o=n.insert(e);o.key=t,i[t]=o}},r.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n[Le](e),n.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},i}),e("zrender/graphic/helper/poly",[Rn,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),n=t("./smoothBezier");return{buildPath:function(t,r,a){var s=r.points,l=r.smooth;if(s&&s[rn]>=2){if(l&&"spline"!==l){var u=n(s,l,a,r.smoothConstraint);t[o](s[0][0],s[0][1]);for(var c=s[rn],h=0;(a?c:c-1)>h;h++){var f=u[2*h],d=u[2*h+1],p=s[(h+1)%c];t.bezierCurveTo(f[0],f[1],d[0],d[1],p[0],p[1])}}else{"spline"===l&&(s=e(s,a)),t[o](s[0][0],s[0][1]);for(var h=1,v=s[rn];v>h;h++)t[i](s[h][0],s[h][1])}a&&t.closePath()}}}}),e("zrender/dom/HandlerProxy",[Rn,"../core/event",r,"../mixin/Eventful","../core/env","../core/GestureMgr"],function(t){function e(t){return"mousewheel"===t&&h.browser.firefox?"DOMMouseScroll":t}function n(t,e,n){var i=t._gestureMgr;"start"===n&&i.clear();var r=i.recognize(e,t.handler.findHover(e.zrX,e.zrY,null),t.dom);if("end"===n&&i.clear(),r){var a=r.type;e.gestureEvent=a,t.handler.dispatchToElement(r[yn],a,r.event)}}function i(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function a(){return h.touchEventsSupported}function o(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var n=0;n<y[rn];n++){var i=y[n];t._handlers[i]=u.bind(x[i],t)}for(var n=0;n<g[rn];n++){var i=g[n];t._handlers[i]=e(x[i],t)}}function s(t){function n(n,i){u.each(n,function(n){d(t,e(n),i._handlers[n])},i)}c.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new f,this._handlers={},o(this),a()&&n(y,this),n(g,this)}var l=t("../core/event"),u=t(r),c=t("../mixin/Eventful"),h=t("../core/env"),f=t("../core/GestureMgr"),d=l.addEventListener,p=l.removeEventListener,v=l.normalizeEvent,m=300,g=["click","dblclick","mousewheel",N,"mouseup","mousedown",C,"contextmenu"],y=["touchstart","touchend","touchmove"],x={mousemove:function(t){t=v(this.dom,t),this[L](C,t)},mouseout:function(t){t=v(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this[L](N,t)},touchstart:function(t){t=v(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,n(this,t,"start"),x[C].call(this,t),x.mousedown.call(this,t),i(this)},touchmove:function(t){t=v(this.dom,t),t.zrByTouch=!0,n(this,t,"change"),x[C].call(this,t),i(this)},touchend:function(t){t=v(this.dom,t),t.zrByTouch=!0,n(this,t,"end"),x.mouseup.call(this,t),+new Date-this._lastTouchMoment<m&&x.click.call(this,t),i(this)}};u.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){x[t]=function(e){e=v(this.dom,e),this[L](t,e)}});var _=s[on];return _[P]=function(){for(var t=g[Fe](y),n=0;n<t[rn];n++){var i=t[n];p(this.dom,e(i),this._handlers[i])}},_.setCursor=function(t){this.dom.style.cursor=t||"default"},u.mixin(s,c),s}),e("zrender/Storage",[Rn,"./core/util","./core/env","./container/Group","./core/timsort"],function(t){function e(t,e){return t[ae]===e[ae]?t.z===e.z?t.z2-e.z2:t.z-e.z:t[ae]-e[ae]}var i=t("./core/util"),r=t("./core/env"),a=t("./container/Group"),o=t("./core/timsort"),l=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return l[on]={constructor:l,traverse:function(t,e){for(var n=0;n<this._roots[rn];n++)this._roots[n][T](t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var n=this._roots,i=this._displayList,a=0,s=n[rn];s>a;a++)this._updateAndAddDisplayable(n[a],null,t);i[rn]=this._displayListLen,r[O]&&o(i,e)},_updateAndAddDisplayable:function(t,e,i){if(!t[re]||i){t.beforeUpdate(),t[s]&&t[Pe](),t.afterUpdate();var r=t.clipPath;if(r&&(r[u]=t,r[n](),e?(e=e.slice(),e.push(r)):e=[r]),t.isGroup){for(var a=t._children,o=0;o<a[rn];o++){var l=a[o];t[s]&&(l[s]=!0),this._updateAndAddDisplayable(l,e,i)}t[s]=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof a&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[rn];e++){var n=this._roots[e];n instanceof a&&n.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,r=t[rn];r>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==He?this._elements[t]:t;var s=i[Ze](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[A](s,1),o instanceof a&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof a&&(t.__storage=this),t.dirty(!1),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,n=e[t];return n&&(delete e[t],n instanceof a&&(n.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:e},l}),e("zrender/animation/Animation",[Rn,r,"../core/event","./requestAnimationFrame","./Animator"],function(t){var e=t(r),n=t("../core/event").Dispatcher,i=t("./requestAnimationFrame"),a=t("./Animator"),o=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,n.call(this)};return o[on]={constructor:o,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[Re]=this;for(var e=t.getClips(),n=0;n<e[rn];n++)this.addClip(e[n])},removeClip:function(t){var n=e[Ze](this._clips,t);n>=0&&this._clips[A](n,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e[rn];n++)this.removeClip(e[n]);t[Re]=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n[rn],r=[],a=[],o=0;i>o;o++){var s=n[o],l=s.step(t);l&&(r.push(l),a.push(s))}for(var o=0;i>o;)n[o]._needsRemove?(n[o]=n[i-1],n.pop(),i--):o++;i=r[rn];for(var o=0;i>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[L]("frame",e),this.stage[Pe]&&this.stage[Pe]()},_startLoop:function(){function t(){e._running&&(i(t),!e._paused&&e._update())}var e=this;this._running=!0,i(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var n=new a(t,e.loop,e.getter,e.setter);return n}},e.mixin(o,n),o}),e("zrender/graphic/helper/smoothSpline",[Rn,"../../core/vector"],function(t){function e(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}var n=t("../../core/vector");return function(t,i){for(var r=t[rn],a=[],o=0,s=1;r>s;s++)o+=n.distance(t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var u,c,h,f=s/(l-1)*(i?r:r-1),d=Math.floor(f),p=f-d,v=t[d%r];i?(u=t[(d-1+r)%r],c=t[(d+1)%r],h=t[(d+2)%r]):(u=t[0===d?d:d-1],c=t[d>r-2?r-1:d+1],h=t[d>r-3?r-1:d+2]);var m=p*p,g=p*m;a.push([e(u[0],v[0],c[0],h[0],p,m,g),e(u[1],v[1],c[1],h[1],p,m,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[Rn,"../../core/vector"],function(t){var e=t("../../core/vector"),n=e.min,i=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,l,u){var c,h,f,d,p=[],v=[],m=[],g=[];if(u){f=[1/0,1/0],d=[-1/0,-1/0];for(var y=0,x=t[rn];x>y;y++)n(f,f,t[y]),i(d,d,t[y]);n(f,f,u[0]),i(d,d,u[1])}for(var y=0,x=t[rn];x>y;y++){var _=t[y];if(l)c=t[y?y-1:x-1],h=t[(y+1)%x];else{if(0===y||y===x-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(v,h,c),r(v,v,s);var w=a(_,c),b=a(_,h),M=w+b;0!==M&&(w/=M,b/=M),r(m,v,-w),r(g,v,b);var S=o([],_,m),T=o([],_,g);u&&(i(S,S,f),n(S,S,d),i(T,T,f),n(T,T,d)),p.push(S),p.push(T)}return l&&p.push(p.shift()),p}}),e("zrender/Handler",[Rn,"./core/util","./mixin/Draggable","./mixin/Eventful"],function(t){function e(t,e,n){return{type:t,event:n,target:e,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch}
}function n(){}function i(t,e,n){if(t[t.rectHover?"rectContain":nn](e,n)){for(var i=t;i;){if(i[xn]||i.clipPath&&!i.clipPath[nn](e,n))return!1;i=i[u]}return!0}return!1}var r=t("./core/util"),a=t("./mixin/Draggable"),o=t("./mixin/Eventful");n[on][P]=function(){};var s=["click","dblclick","mousewheel",N,"mouseup","mousedown",C,"contextmenu"],l=function(t,e,i,l){o.call(this),this.storage=t,this.painter=e,this.painterRoot=l,i=i||new n,this.proxy=i,i.handler=this,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,a.call(this),r.each(s,function(t){i.on&&i.on(t,this[t],this)},this)};return l[on]={constructor:l,mousemove:function(t){var e=t.zrX,n=t.zrY,i=this.findHover(e,n,null),r=this._hovered,a=this.proxy;this._hovered=i,a.setCursor&&a.setCursor(i?i.cursor:"default"),r&&i!==r&&r.__zr&&this.dispatchToElement(r,N,t),this.dispatchToElement(i,C,t),i&&i!==r&&this.dispatchToElement(i,V,t)},mouseout:function(t){this.dispatchToElement(this._hovered,N,t);var e,n=t.toElement||t.relatedTarget;do n=n&&n.parentNode;while(n&&9!=n.nodeType&&!(e=n===this.painterRoot));!e&&this[L]("globalout",{event:t})},resize:function(){this._hovered=null},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy[P](),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,n,i){for(var r="on"+n,a=e(n,t,i),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o[L](n,a),o=o[u],!a.cancelBubble););a.cancelBubble||(this[L](n,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==Je&&t[r].call(t,a),t[L]&&t[L](n,a)}))},findHover:function(t,e,n){for(var r=this.storage.getDisplayList(),a=r[rn]-1;a>=0;a--)if(!r[a][xn]&&r[a]!==n&&!r[a][re]&&i(r[a],t,e))return r[a]}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){l[on][t]=function(e){var n=this.findHover(e.zrX,e.zrY,null);if("mousedown"===t)this._downel=n,this._upel=n;else if("mosueup"===t)this._upel=n;else if("click"===t&&this._downel!==this._upel)return;this.dispatchToElement(n,t,e)}}),r.mixin(l,o),r.mixin(l,a),l}),e("zrender/graphic/helper/roundRect",[Rn],function(){return{buildPath:function(t,e){var n,r,a,s,l=e.x,u=e.y,c=e.width,h=e[_n],f=e.r;0>c&&(l+=c,c=-c),0>h&&(u+=h,h=-h),typeof f===Ge?n=r=a=s=f:f instanceof Array?1===f[rn]?n=r=a=s=f[0]:2===f[rn]?(n=a=f[0],r=s=f[1]):3===f[rn]?(n=f[0],r=s=f[1],a=f[2]):(n=f[0],r=f[1],a=f[2],s=f[3]):n=r=a=s=0;var d;n+r>c&&(d=n+r,n*=c/d,r*=c/d),a+s>c&&(d=a+s,a*=c/d,s*=c/d),r+a>h&&(d=r+a,r*=h/d,a*=h/d),n+s>h&&(d=n+s,n*=h/d,s*=h/d),t[o](l+n,u),t[i](l+c-r,u),0!==r&&t.quadraticCurveTo(l+c,u,l+c,u+r),t[i](l+c,u+h-a),0!==a&&t.quadraticCurveTo(l+c,u+h,l+c-a,u+h),t[i](l+s,u+h),0!==s&&t.quadraticCurveTo(l,u+h,l,u+h-s),t[i](l,u+n),0!==n&&t.quadraticCurveTo(l,u,l+n,u)}}}),e("zrender/mixin/Draggable",[Rn],function(){function t(){this.on("mousedown",this._dragStart,this),this.on(C,this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return t[on]={constructor:t,_dragStart:function(t){var e=t[yn];e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,e.drift(r,a,t),this.dispatchToElement(e,"drag",t.event);var o=this.findHover(n,i,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.dispatchToElement(s,"dragleave",t.event),o&&o!==s&&this.dispatchToElement(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(e,"dragend",t.event),this._dropTarget&&this.dispatchToElement(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("echarts/chart/helper/LinePath",[Rn,Be,E],function(t){function e(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var n=t(Be),i=t(E),r=n.Line[on],o=n.BezierCurve[on];return n.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,n){(e(n)?r:o)[a](t,n)},pointAt:function(t){return e(this.shape)?r.pointAt.call(this,t):o.pointAt.call(this,t)},tangentAt:function(t){var n=this.shape,r=e(n)?[n.x2-n.x1,n.y2-n.y1]:o.tangentAt.call(this,t);return i[en](r,r)}})}),e("zrender/animation/requestAnimationFrame",[Rn],function(){return typeof window!==_&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}}),e("zrender/core/event",[Rn,"../mixin/Eventful","./env"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function n(t,e,n,r){return n=n||{},r||!l[O]?i(t,e,n):l.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):i(t,e,n),n}function i(t,n,i){var r=e(t);i.zrX=n.clientX-r.left,i.zrY=n.clientY-r.top}function r(t,e,i){if(e=e||window.event,null!=e.zrX)return e;var r=e.type,a=r&&r[Ze]("touch")>=0;if(a){var o="touchend"!=r?e.targetTouches[0]:e.changedTouches[0];o&&n(t,o,e,i)}else n(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function a(t,e,n){u?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function o(t,e,n){u?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}var s=t("../mixin/Eventful"),l=t("./env"),u=typeof window!==_&&!!window.addEventListener,c=u?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{clientToLocal:n,normalizeEvent:r,addEventListener:a,removeEventListener:o,stop:c,Dispatcher:s}}),e("zrender/core/GestureMgr",[Rn,"./event"],function(t){function e(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function n(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var i=t("./event"),r=function(){this._track=[]};r[on]={constructor:r,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track[rn]=0,this},_doTrack:function(t,e,n){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r[rn];s>o;o++){var l=r[o],u=i.clientToLocal(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(t){for(var e in a)if(a.hasOwnProperty(e)){var n=a[e](this._track,t);if(n)return n}}};var a={pinch:function(t,i){var r=t[rn];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[rn]>1&&a&&a[rn]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),i.pinchScale=s;var l=n(a);return i.pinchX=l[0],i.pinchY=l[1],{type:"pinch",target:t[0][yn],event:i}}}}};return r}),e("zrender/Painter",[Rn,"./config","./core/util","./core/log","./core/BoundingRect","./core/timsort","./Layer","./animation/requestAnimationFrame","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function n(t){return t?t.isBuildin?!0:typeof t[K]!==Je||typeof t.refresh!==Je?!1:!0:!1}function i(t){t.__unusedCount++}function r(t){1==t.__unusedCount&&t.clear()}function o(t,e,n){return _.copy(t[wn]()),t[j]&&_[X](t[j]),w.width=e,w[_n]=n,!_.intersect(w)}function l(t,e){if(t==e)return!1;if(!t||!e||t[rn]!==e[rn])return!0;for(var n=0;n<t[rn];n++)if(t[n]!==e[n])return!0}function u(t,e){for(var n=0;n<t[rn];n++){var i=t[n],r=i.path;i.setTransform(e),r.beginPath(e),i[a](r,i.shape),e.clip(),i.restoreTransform(e)}}function c(t,e){var n=document[Xe]("div");return n.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var h=t("./config"),f=t("./core/util"),d=t("./core/log"),p=t("./core/BoundingRect"),v=t("./core/timsort"),g=t("./Layer"),y=t("./animation/requestAnimationFrame"),x=5,_=new p(0,0,0,0),w=new p(0,0,0,0),b=function(t,e,n){var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=f[an]({},n||{}),this.dpr=n.devicePixelRatio||h.devicePixelRatio,this._singleCanvas=i,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},i){var s=t.width,l=t[_n];this._width=s,this._height=l;var u=new g(t,this,1);u.initContext(),o[0]=u,a.push(0)}else{this._width=this._getSize(0),this._height=this._getSize(1);var d=this._domRoot=c(this._width,this._height);t.appendChild(d)}this.pathToImage=this._createPathToImage(),this._progressiveLayers=[],this._hoverlayer,this._hoverElements=[]};return b[on]={constructor:b,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._paintList(e,t);for(var i=0;i<n[rn];i++){var r=n[i],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this.refreshHover(),this._progressiveLayers[rn]&&this._startProgessive(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape});n.__from=t,t.__hoverMir=n,n[un](e),this._hoverElements.push(n)}},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,i=f[Ze](n,e);i>=0&&n[A](i,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t[rn];e++){var n=t[e].__from;n&&(n.__hoverMir=null)}t[rn]=0},refreshHover:function(){var t=this._hoverElements,e=t[rn],n=this._hoverlayer;if(n&&n.clear(),e){v(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(1e5));var i={};n.ctx.save();for(var r=0;e>r;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a[j]=o[j],a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,n,!0,i))):(t[A](r,1),o.__hoverMir=null,e--)}n.ctx.restore()}},_startProgessive:function(){function t(){n===e._progressiveToken&&e.storage&&(e._doPaintList(e.storage.getDisplayList()),e._furtherProgressive?(e._progress++,y(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var n=e._progressiveToken=+new Date;e._progress++,y(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,f.each(this._progressiveLayers,function(t){t[s]&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuildinLayer(i),this._doPaintList(t,e),this.eachBuildinLayer(r)},_doPaintList:function(t,e){function n(t){var e=a.dpr||1;a.save(),a.globalAlpha=1,a.shadowBlur=0,i[s]=!0,a.setTransform(1,0,0,1,0,0),a.drawImage(t.dom,0,0,h*e,p*e),a.restore()}for(var i,r,a,o,l,u,c=0,h=this._width,p=this._height,v=this._progress,m=0,g=t[rn];g>m;m++){var y=t[m],_=this._singleCanvas?0:y[ae],w=y.__frame;if(0>w&&l&&(n(l),l=null),r!==_&&(a&&a.restore(),o={},r=_,i=this.getLayer(r),i.isBuildin||d("ZLevel "+r+" has been used by unkown layer "+i.id),a=i.ctx,a.save(),i.__unusedCount=0,(i[s]||e)&&i.clear()),i[s]||e){if(w>=0){if(!l){if(l=this._progressiveLayers[Math.min(c++,x-1)],l.ctx.save(),l.renderScope={},l&&l.__progress>l.__maxProgress){m=l.__nextIdxNotProg-1;continue}u=l.__progress,l[s]||(v=u),l.__progress=v+1}w===v&&this._doPaintEl(y,l,!0,l.renderScope)}else this._doPaintEl(y,i,e,o);y[s]=!1}}l&&n(l),a&&a.restore(),this._furtherProgressive=!1,f.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,n,i){var r=e.ctx,a=t[j];if(!(!e[s]&&!n||t.invisible||0===t.style[ln]||a&&!a[0]&&!a[3]||t.culling&&o(t,this._width,this._height))){var c=t.__clipPaths;(i.prevClipLayer!==e||l(c,i.prevElClipPaths))&&(i.prevElClipPaths&&(i.prevClipLayer.ctx.restore(),i.prevClipLayer=i.prevElClipPaths=null,i.prevEl=null),c&&(r.save(),u(c,r),i.prevClipLayer=e,i.prevElClipPaths=c)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new g("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&f.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var i=this._layers,r=this._zlevelList,a=r[rn],o=null,s=-1,l=this._domRoot;if(i[t])return void d("ZLevel "+t+" has been used already");if(!n(e))return void d("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]<t&&r[s+1]>t);s++);o=i[r[s]]}if(r[A](s+1,0,t),o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);i[t]=e},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r[rn];i++)n=r[i],t.call(e,this._layers[n],n)},eachBuildinLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a[rn];r++)i=a[r],n=this._layers[i],n.isBuildin&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a[rn];r++)i=a[r],n=this._layers[i],n.isBuildin||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,n=this._progressiveLayers,i={},r={};this.eachBuildinLayer(function(t,e){i[e]=t.elCount,t.elCount=0,t[s]=!1}),f.each(n,function(t,e){r[e]=t.elCount,t.elCount=0,t[s]=!1});for(var a,o,l=0,u=0,c=0,h=t[rn];h>c;c++){var d=t[c],p=this._singleCanvas?0:d[ae],v=e[p],m=d.progressive;if(v&&(v.elCount++,v[s]=v[s]||d[s]),m>=0){o!==m&&(o=m,u++);var y=d.__frame=u-1;if(!a){var _=Math.min(l,x-1);a=n[_],a||(a=n[_]=new g("progressive",this,this.dpr),a.initContext()),a.__maxProgress=0}a[s]=a[s]||d[s],a.elCount++,a.__maxProgress=Math.max(a.__maxProgress,y),a.__maxProgress>=a.__progress&&(v[s]=!0)}else d.__frame=-1,a&&(a.__nextIdxNotProg=c,l++,a=null)}a&&(l++,a.__nextIdxNotProg=c),this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t[s]=!0)}),n[rn]=Math.min(l,x),f.each(n,function(t,e){r[e]!==t.elCount&&(d[s]=!0),t[s]&&(t.__progress=0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?f.merge(n[t],e,!0):n[t]=e;var i=this._layers[t];i&&f.merge(i,n[t],!0)}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n[A](f[Ze](n,t),1))},resize:function(t,e){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i[_n]=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!=t||e!=this._height){n.style.width=t+"px",n.style[_n]=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r][K](t,e);f.each(this._progressiveLayers,function(n){n[K](t,e)}),this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new g("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t[Pn],e.clear();for(var n=this.storage.getDisplayList(!0),i={},r=0;r<n[rn];r++){var a=n[r];this._doPaintEl(a,e,!0,i)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var n=this._opts,i=["width",_n][t],r=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[r]||e(l[i])||e(s.style[i]))-(e(l[a])||0)-(e(l[o])||0)|0},_pathToImage:function(e,n,i,r,a){var o=document[Xe](We),s=o[qe]("2d");o.width=i*a,o[_n]=r*a,s.clearRect(0,0,i*a,r*a);var l={position:n[cn],rotation:n[m],scale:n.scale};n[cn]=[0,0,0],n[m]=0,n.scale=[1,1],n&&n.brush(s);var u=t("./graphic/Image"),c=new u({id:e,style:{x:0,y:0,image:o}});return null!=l[cn]&&(c[cn]=n[cn]=l[cn]),null!=l[m]&&(c[m]=n[m]=l[m]),null!=l.scale&&(c.scale=n.scale=l.scale),c},_createPathToImage:function(){var t=this;return function(e,n,i,r){return t._pathToImage(e,n,i,r,t.dpr)}}},b}),e("echarts/util/symbol",[Rn,"./graphic",h],function(t){var e=t("./graphic"),n=t(h),r=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,s=e[_n]/2;t[o](n,r-s),t[i](n+a,r+s),t[i](n-a,r+s),t.closePath()}}),s=e.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,s=e[_n]/2;t[o](n,r-s),t[i](n+a,r),t[i](n,r+s),t[i](n-a,r),t.closePath()}}),l=e.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e[_n]),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),f=Math.cos(u);t.arc(n,l,o,Math.PI-u,2*Math.PI+u);var d=.6*o,p=.7*o;t.bezierCurveTo(n+c-h*d,l+s+f*d,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-c+h*d,l+s+f*d,n-c,l+s),t.closePath()}}),u=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e[_n],r=e.width,a=e.x,s=e.y,l=r/3*2;t[o](a,s),t[i](a+l,s+n),t[i](a,s+n/4*3),t[i](a-l,s+n),t[i](a,s),t.closePath()}}),c={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:s,pin:l,arrow:u,triangle:r},f={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r[_n]=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r[_n]=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var a=Math.min(n,i);r.x=t,r.y=e,r.width=a,r[_n]=a},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r[_n]=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r[_n]=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r[_n]=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r[_n]=i}},p={};for(var v in c)c.hasOwnProperty(v)&&(p[v]=new c[v]);var m=e.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&t.textPosition===x&&(t.textPosition=["50%","40%"],t[Sn]=fn,t.textVerticalAlign=dn)},buildPath:function(t,e,n){var i=e.symbolType,r=p[i];"none"!==e.symbolType&&(r||(i="rect",r=p[i]),f[i](e.x,e.y,e.width,e[_n],r.shape),r[a](t,r.shape,n))}}),g=function(t){if("image"!==this.type){var e=this.style,n=this.shape;n&&"line"===n.symbolType?e[d]=t:this.__isEmptyBrush?(e[d]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[d]&&(e[d]=t)),this.dirty(!1)}},y={createSymbol:function(t,i,r,a,o,s){var l=0===t[Ze]("empty");l&&(t=t.substr(5,1)[R]()+t.substr(6));var u;return u=0===t[Ze]("image://")?new e.Image({style:{image:t.slice(8),x:i,y:r,width:a,height:o}}):0===t[Ze]("path://")?e.makePath(t.slice(7),{},new n(i,r,a,o)):new m({shape:{symbolType:t,x:i,y:r,width:a,height:o}}),u.__isEmptyBrush=l,u.setColor=g,u.setColor(s),u}};return y}),e("zrender/Layer",[Rn,"./core/util","./config","./graphic/Style","./graphic/Pattern"],function(t){function e(){return!1}function n(t,e,n,i){var r=document[Xe](e),a=n[vn](),o=n[pn](),s=r.style;return s[cn]="absolute",s.left=0,s.top=0,s.width=a+"px",s[_n]=o+"px",r.width=a*i,r[_n]=o*i,r.setAttribute("data-zr-dom-id",t),r}var i=t("./core/util"),r=t("./config"),a=t("./graphic/Style"),o=t("./graphic/Pattern"),s=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===He?s=n(t,We,a,o):i[k](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return s[on]={constructor:s,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[qe]("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=n("back-"+this.id,We,this.painter,t),this.ctxBack=this.domBack[qe]("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r.width=t+"px",r[_n]=e+"px",i.width=t*n,i[_n]=e*n,a&&(a.width=t*n,a[_n]=e*n,1!=n&&this.ctxBack.scale(n,n))},clear:function(t){var e=this.dom,n=this.ctx,i=e.width,r=e[_n],s=this.clearColor,l=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr;if(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,i/c,r/c)),n.clearRect(0,0,i,r),s){var h;s[D]?(h=s.__canvasGradient||a.getGradient(n,s,{x:0,y:0,width:i,height:r}),s.__canvasGradient=h):s.image&&(h=o[on].getCanvasPattern.call(s,n)),n.save(),n.fillStyle=h||s,n.fillRect(0,0,i,r),n.restore()}if(l){var f=this.domBack;n.save(),n.globalAlpha=u,n.drawImage(f,0,0,i,r),n.restore()}}},s}),e("echarts/preprocessor/helper/compatStyle",[Rn,On],function(t){function e(t){var e=t&&t.itemStyle;e&&n.each(i,function(i){var r=e[Oe],a=e[ge];r&&r[i]&&(t[i]=t[i]||{},t[i][Oe]?n.merge(t[i][Oe],r[i]):t[i][Oe]=r[i],r[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i][ge]?n.merge(t[i][ge],a[i]):t[i][ge]=a[i],a[i]=null)})}var n=t(On),i=["areaStyle",v,"nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){if(t){e(t),e(t.markPoint),e(t.markLine);var i=t.data;if(i){for(var r=0;r<i[rn];r++)e(i[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[rn];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[rn];r++)n[M](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}}),e("echarts/chart/helper/Symbol",[Rn,On,"../../util/symbol",Be,w],function(t){function e(t){return t=t instanceof Array?t.slice():[+t,+t],t[0]/=2,t[1]/=2,t}function n(t,e,n){o.Group.call(this),this[ue](t,e,n)}function i(t,e){this[u].drift(t,e)}var r=t(On),a=t("../../util/symbol"),o=t(Be),s=t(w),l=n[on];l._createSymbol=function(t,n,r){this[kn]();var s=n[oe],l=n[Se](r,"color"),u=a.createSymbol(t,-1,-1,2,2,l);u.attr({z2:100,culling:!0,scale:[0,0]}),u.drift=i;var c=e(n[Se](r,"symbolSize"));o[ke](u,{scale:c},s,r),this._symbolType=t,this.add(u)},l.stopSymbolAnimation=function(t){this[y](0)[le](t)},l.getSymbolPath=function(){return this[y](0)},l.getScale=function(){return this[y](0).scale},l.highlight=function(){this[y](0)[L](ge)},l.downplay=function(){this[y](0)[L](Oe)},l.setZ=function(t,e){var n=this[y](0);n[ae]=t,n.z=e},l.setDraggable=function(t){var e=this[y](0);e.draggable=t,e.cursor=t?"move":"pointer"},l[ue]=function(t,n,i){this[xn]=!1;var r=t[Se](n,"symbol")||"circle",a=t[oe],s=e(t[Se](n,"symbolSize"));if(r!==this._symbolType)this._createSymbol(r,t,n);else{var l=this[y](0);o[Ie](l,{scale:s},a,n)}this._updateCommon(t,n,s,i),this._seriesModel=a};var c=["itemStyle",Oe],h=["itemStyle",ge],f=["label",Oe],d=["label",ge];return l._updateCommon=function(t,n,i,a){var l=this[y](0),u=t[oe],p=t[Se](n,"color");"image"!==l.type&&l[be]({strokeNoScale:!0}),a=a||null;var v=a&&a.itemStyle,x=a&&a.hoverItemStyle,_=a&&a.symbolRotate,w=a&&a.symbolOffset,b=a&&a.labelModel,M=a&&a.hoverLabelModel,S=a&&a.hoverAnimation;if(!a||t[U]){var T=t[Ye](n);v=T[Cn](c)[An](["color"]),x=T[Cn](h)[An](),_=T[Ue]("symbolRotate"),w=T[Ue]("symbolOffset"),b=T[Cn](f),M=T[Cn](d),S=T[Ue]("hoverAnimation")}else x=r[an]({},x);var C=l.style;l.attr(m,(_||0)*Math.PI/180||0),w&&l.attr(cn,[s[ne](w[0],i[0]),s[ne](w[1],i[1])]),l.setColor(p),l[un](v);var A=t[Se](n,ln);null!=A&&(C[ln]=A);for(var P,L,z=t[Ve].slice();z[rn]&&(P=z.pop(),L=t.getDimensionInfo(P).type,L===ie||"time"===L););null!=P&&b[Ue]("show")?(o.setText(C,b,p),C.text=r[xe](u[ye](n,Oe),t.get(P,n))):C.text="",null!=P&&M[Ue]("show")?(o.setText(x,M,p),x.text=r[xe](u[ye](n,ge),t.get(P,n))):x.text="";var k=e(t[Se](n,"symbolSize"));if(l.off(V).off(N).off(ge).off(Oe),l[g]=x,o[me](l),S&&u.ifEnableAnimation()){var I=function(){var t=k[1]/k[0];this.animateTo({scale:[Math.max(1.1*k[0],k[0]+3),Math.max(1.1*k[1],k[1]+3*t)]},400,"elasticOut")},D=function(){this.animateTo({scale:k},400,"elasticOut")};l.on(V,I).on(N,D).on(ge,I).on(Oe,D)}},l.fadeOut=function(t){var e=this[y](0);this[xn]=!0,e.style.text="",o[Ie](e,{scale:[0,0]},this._seriesModel,this[ve],t)},r[b](n,o.Group),n}),e("echarts/chart/line/lineAnimationDiff",[Rn],function(){function t(t){return t>=0?1:-1}function e(e,n,i){for(var r,a=e.getBaseAxis(),o=e.getOtherAxis(a),s=a.onZero?0:o.scale[Ke]()[0],l=o.dim,u="x"===l||l===de?1:0,c=n.stackedOn,h=n.get(l,i);c&&t(c.get(l,i))===t(h);){r=c;break}var f=[];return f[u]=n.get(a.dim,i),f[1-u]=r?r.get(l,i,!0):s,e[Ne](f)}function n(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})})[Pe](function(t,e){n.push({cmd:"=",idx:e,idx1:t})})[Le](function(t){n.push({cmd:"-",idx:t})})[ze](),n}return function(t,i,r,a,o,s){for(var l=n(t,i),u=[],c=[],h=[],f=[],d=[],p=[],v=[],m=s[Ve],g=0;g<l[rn];g++){var y=l[g],x=!0;switch(y.cmd){case"=":var _=t[De](y.idx),w=i[De](y.idx1);(isNaN(_[0])||isNaN(_[1]))&&(_=w.slice()),u.push(_),c.push(w),h.push(r[y.idx]),f.push(a[y.idx1]),v.push(i.getRawIndex(y.idx1));break;case"+":var b=y.idx;u.push(o[Ne]([i.get(m[0],b,!0),i.get(m[1],b,!0)])),c.push(i[De](b).slice()),h.push(e(o,i,b)),f.push(a[b]),v.push(i.getRawIndex(b));break;case"-":var b=y.idx,M=t.getRawIndex(b);M!==b?(u.push(t[De](b)),c.push(s[Ne]([t.get(m[0],b,!0),t.get(m[1],b,!0)])),h.push(r[b]),f.push(e(s,t,b)),v.push(M)):x=!1}x&&(d.push(y),p.push(p[rn]))}p.sort(function(t,e){return v[t]-v[e]});for(var S=[],T=[],C=[],A=[],P=[],g=0;g<p[rn];g++){var b=p[g];S[g]=u[b],T[g]=c[b],C[g]=h[b],A[g]=f[b],P[g]=d[b]}return{current:S,next:T,stackedOnCurrent:C,stackedOnNext:A,status:P}}}),e("echarts/component/helper/selectableMixin",[Rn,On],function(t){var e=t(On);return{updateSelectedMap:function(t){this._selectTargetMap=e.reduce(t||[],function(t,e){return t[e.name]=e,t},{})},select:function(t){var n=this._selectTargetMap,i=n[t],r=this.get("selectedMode");"single"===r&&e.each(n,function(t){t.selected=!1}),i&&(i.selected=!0)},unSelect:function(t){var e=this._selectTargetMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._selectTargetMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._selectTargetMap[t];return e&&e.selected}}}),e("echarts/coord/parallel/ParallelModel",[Rn,On,"../../model/Component","./AxisModel"],function(t){var e=t(On),n=t("../../model/Component");t("./AxisModel"),n[an]({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,parallelAxisDefault:null},init:function(){n[on].init.apply(this,arguments),this[Z]({})},mergeOption:function(t){var n=this[W];t&&e.merge(n,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e[F]("parallel",n)===this},setAxisExpand:function(t){e.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth"],function(e){t.hasOwnProperty(e)&&(this[W][e]=t[e])},this)},_initDimensions:function(){var t=this[Ve]=[],n=this.parallelAxisIndex=[],i=e[je](this.dependentModels.parallelAxis,function(t){return t.get("parallelIndex")===this[Q]});e.each(i,function(e){t.push("dim"+e.get("dim")),n.push(e[Q])})}})}),e("echarts/component/parallelAxis",[Rn,"../coord/parallel/parallelCreator","./axis/parallelAxisAction","./axis/ParallelAxisView"],function(t){t("../coord/parallel/parallelCreator"),t("./axis/parallelAxisAction"),t("./axis/ParallelAxisView")}),e("echarts/coord/parallel/parallelCreator",[Rn,"./Parallel","../../CoordinateSystem"],function(t){function e(t,e){var i=[];return t[J]("parallel",function(r,a){var o=new n(r,t,e);o.name="parallel_"+a,o[K](r,e),r[zn]=o,o.model=r,i.push(o)}),t[$](function(e){if("parallel"===e.get(zn)){var n=t[l]({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e[zn]=n[zn]}}),i}var n=t("./Parallel");t("../../CoordinateSystem").register("parallel",{create:e})}),e("echarts/coord/parallel/parallelPreprocessor",[Rn,On,pe],function(t){function e(t){if(!t.parallel){var e=!1;i.each(t[G],function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}function n(t){var e=r.normalizeToArray(t.parallelAxis);i.each(e,function(e){if(i[k](e)){var n=e.parallelIndex||0,a=r.normalizeToArray(t.parallel)[n];a&&a.parallelAxisDefault&&i.merge(e,a.parallelAxisDefault,!1)}})}var i=t(On),r=t(pe);return function(t){e(t),n(t)}}),e("echarts/component/helper/listComponent",[Rn,"../../util/layout","../../util/format",Be],function(t){function e(t,e,i){n.positionElement(t,e[gn](),{width:i[vn](),height:i[pn]()},e.get("padding"))}var n=t("../../util/layout"),i=t("../../util/format"),r=t(Be);return{layout:function(t,i,r){var a=n[mn](i[gn](),{width:r[vn](),height:r[pn]()},i.get("padding"));n.box(i.get("orient"),t,i.get("itemGap"),a.width,a[_n]),e(t,i,r)},addBackground:function(t,e){var n=i.normalizeCssArray(e.get("padding")),a=t[wn](),o=e[An](["color",ln]);o.fill=e.get(Pn);var s=new r.Rect({shape:{x:a.x-n[3],y:a.y-n[0],width:a.width+n[1]+n[3],height:a[_n]+n[0]+n[2]},style:o,silent:!0,z2:-1});r.subPixelOptimizeRect(s),t.add(s)}}}),e("echarts/component/tooltip/TooltipContent",[Rn,On,"zrender/tool/color","zrender/core/event","../../util/format",B],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+t+"s "+e+",top "+t+"s "+e;return a.map(f,function(t){return t+"transition:"+n}).join(";")}function n(t){var e=[],n=t.get("fontSize"),i=t[bn]();return i&&e.push("color:"+i),e.push("font:"+t[Mn]()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),u(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function i(t){t=t;var i=[],r=t.get("transitionDuration"),a=t.get(Pn),s=t[Cn](Tn),f=t.get("padding");return r&&i.push(e(r)),a&&(h[O]?i.push("background-Color:"+a):(i.push("background-Color:#"+o.toHex(a)),i.push("filter:alpha(opacity=70)"))),u(["width","color",de],function(e){var n="border-"+e,r=c(n),a=t.get(r);null!=a&&i.push(n+":"+a+("color"===e?"":"px"))}),i.push(n(s)),null!=f&&i.push("padding:"+l.normalizeCssArray(f).join("px ")+"px"),i.join(";")+";"}function r(t,e){var n=document[Xe]("div"),i=e.getZr();this.el=n,this._x=e[vn]()/2,this._y=e[pn]()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r.enterable){var n=i.handler;s.normalizeEvent(t,e,!0),n.dispatch(C,e)}},n.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}var a=t(On),o=t("zrender/tool/color"),s=t("zrender/core/event"),l=t("../../util/format"),u=a.each,c=l.toCamelCase,h=t(B),f=["","-webkit-","-moz-","-o-"],d="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";return r[on]={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n[cn]&&"absolute"!==e[cn]&&(n[cn]="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=d+i(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){var e=this.el;e.innerHTML=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var n=this.el.style;n.left=t+"px",n.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(a.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/chart/pie/labelLayout",[Rn,"zrender/contain/text"],function(t){function e(t,e,n,i,r,a,o){function s(e,n,i){for(var r=e;n>r;r++)if(t[r].y+=i,r>e&&n>r+1&&t[r+1].y>t[r].y+t[r][_n])return void l(r,i/2);
l(n-1,i/2)}function l(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1][_n]));i--);}function u(t,e,n,i,r,a){for(var o=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t[rn];l>s;s++)if(t[s][cn]!==fn){var u=Math.abs(t[s].y-i),c=t[s].len,h=t[s].len2,f=r+c>u?Math.sqrt((r+c+h)*(r+c+h)-u*u):Math.abs(t[s].x-n);e&&f>=o&&(f=o-10),!e&&o>=f&&(f=o+10),t[s].x=n+f*a,o=f}}t.sort(function(t,e){return t.y-e.y});for(var c,h=0,f=t[rn],d=[],p=[],v=0;f>v;v++)c=t[v].y-h,0>c&&s(v,f,-c,r),h=t[v].y+t[v][_n];0>o-h&&l(f-1,h-o);for(var v=0;f>v;v++)t[v].y>=n?p.push(t[v]):d.push(t[v]);u(d,!1,e,n,i,r),u(p,!0,e,n,i,r)}function n(t,n,i,r,a,o){for(var s=[],l=[],u=0;u<t[rn];u++)t[u].x<n?s.push(t[u]):l.push(t[u]);e(l,n,i,r,1,a,o),e(s,n,i,r,-1,a,o);for(var u=0;u<t[rn];u++){var c=t[u].linePoints;if(c){var h=c[1][0]-c[2][0];c[2][0]=t[u].x<n?t[u].x+3:t[u].x-3,c[1][1]=c[2][1]=t[u].y,c[1][0]=c[2][0]+h}}}var i=t("zrender/contain/text");return function(t,e,r,a){var o,s,l=t[Dn](),u=[],c=!1;l.each(function(n){var r,a,h,f,d=l[De](n),p=l[Ye](n),v=p[Cn](we),m=v.get(cn)||p.get("label.emphasis.position"),g=p[Cn]("labelLine.normal"),y=g.get(rn),_=g.get("length2"),w=(d.startAngle+d.endAngle)/2,b=Math.cos(w),M=Math.sin(w);o=d.cx,s=d.cy;var S=m===x||"inner"===m;if(m===fn)r=d.cx,a=d.cy,f=fn;else{var T=(S?(d.r+d.r0)/2*b:d.r*b)+o,C=(S?(d.r+d.r0)/2*M:d.r*M)+s;if(r=T+3*b,a=C+3*M,!S){var A=T+b*(y+e-d.r),P=C+M*(y+e-d.r),L=A+(0>b?-1:1)*_,z=P;r=L+(0>b?-5:5),a=z,h=[[T,C],[A,P],[L,z]]}f=S?fn:b>0?"left":"right"}var k=v[Cn](Tn)[Mn](),I=v.get("rotate")?0>b?-w+Math.PI:-w:0,D=t[ye](n,Oe)||l[H](n),O=i[wn](D,k,f,"top");c=!!I,d.label={x:r,y:a,position:m,height:O[_n],len:y,len2:_,linePoints:h,textAlign:f,verticalAlign:"middle",font:k,rotation:I},S||u.push(d.label)}),!c&&t.get("avoidLabelOverlap")&&n(u,o,s,e,r,a)}}),e("echarts/coord/geo/Geo",[Rn,"./parseGeoJson",On,h,"../View","./fix/nanhai","./fix/textCoord","./fix/geoCoord"],function(t){function e(t,e,n,i,r){s.call(this,t),this.map=e,this._nameCoordMap={},this.loadGeoJson(n,i,r)}function i(t,e,n,i){var r=n.geoModel,a=n.seriesModel,o=r?r[zn]:a?a[zn]||(a.getReferringComponents("geo")[0]||{})[zn]:null;return o===this?o[t](i):null}var r=t("./parseGeoJson"),a=t(On),o=t(h),s=t("../View"),l=[t("./fix/nanhai"),t("./fix/textCoord"),t("./fix/geoCoord")];return e[on]={constructor:e,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;n<e[rn];n++)if(e[n][nn](t))return!0;return!1},loadGeoJson:function(t,e,n){try{this.regions=t?r(t):[]}catch(i){throw"Invalid geoJson format\n"+i}e=e||{},n=n||{};for(var o=this.regions,s={},u=0;u<o[rn];u++){var c=o[u].name;c=n[c]||c,o[u].name=c,s[c]=o[u],this.addGeoCoord(c,o[u][fn]);var h=e[c];h&&o[u].transformTo(h.left,h.top,h.width,h[_n])}this._regionsMap=s,this._rect=null,a.each(l,function(t){t(this)},this)},transformTo:function(t,e,i,r){var a=this[wn]();a=a.clone(),a.y=-a.y-a[_n];var s=this._viewTransform;s[j]=a.calculateTransform(new o(t,e,i,r)),s.decomposeTransform();var l=s.scale;l[1]=-l[1],s[n](),this._updateTransform()},getRegion:function(t){return this._regionsMap[t]},getRegionByCoord:function(t){for(var e=this.regions,n=0;n<e[rn];n++)if(e[n][nn](t))return e[n]},addGeoCoord:function(t,e){this._nameCoordMap[t]=e},getGeoCoord:function(t){return this._nameCoordMap[t]},getBoundingRect:function(){if(this._rect)return this._rect;for(var t,e=this.regions,n=0;n<e[rn];n++){var i=e[n][wn]();t=t||i.clone(),t.union(i)}return this._rect=t||new o(0,0,0,0)},dataToPoints:function(t){var e=[];return t[fe](["lng","lat"],function(t,n){return e[0]=t,e[1]=n,this[Ne](e)},this)},dataToPoint:function(t){return typeof t===He&&(t=this.getGeoCoord(t)),t?s[on][Ne].call(this,t):void 0},convertToPixel:a.curry(i,Ne),convertFromPixel:a.curry(i,"pointToData")},a.mixin(e,s),e}),e("echarts/chart/helper/SymbolDraw",[Rn,Be,"./Symbol"],function(t){function e(t){this.group=new i.Group,this._symbolCtor=t||r}function n(t,e,n){var i=t[De](e);return!(!i||isNaN(i[0])||isNaN(i[1])||n&&n(e)||"none"===t[Se](e,"symbol"))}var i=t(Be),r=t("./Symbol"),a=e[on];return a[ue]=function(t,e){var r=this.group,a=t[oe],o=this._data,s=this._symbolCtor,l={itemStyle:a[Cn]("itemStyle.normal")[An](["color"]),hoverItemStyle:a[Cn]("itemStyle.emphasis")[An](),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a[Cn](we),hoverLabelModel:a[Cn](_e)};t.diff(o).add(function(i){var a=t[De](i);if(n(t,i,e)){var o=new s(t,i,l);o.attr(cn,a),t[Ae](i,o),r.add(o)}})[Pe](function(u,c){var h=o[Ce](c),f=t[De](u);return n(t,u,e)?(h?(h[ue](t,u,l),i[Ie](h,{position:f},a)):(h=new s(t,u),h.attr(cn,f)),r.add(h),void t[Ae](u,h)):void r[Le](h)})[Le](function(t){var e=o[Ce](t);e&&e.fadeOut(function(){r[Le](e)})})[ze](),this._data=t},a[I]=function(){var t=this._data;t&&t[Te](function(e,n){var i=t[De](n);e.attr(cn,i)})},a[Le]=function(t){var e=this.group,n=this._data;n&&(t?n[Te](function(t){t.fadeOut(function(){e[Le](t)})}):e[kn]())},e}),e("echarts/component/helper/brushHelper",[Rn,On,Be],function(t){function e(t){return t[0]>t[1]&&t.reverse(),t}function n(t,e){for(var n=!0,i=0;i<l[rn];i++){var r=l[i]+"Index";if(t[r]>=0){n=!1;for(var a=0;a<e[rn];a++)if(e[a][r]===t[r])return e[a]}}return n}function i(t,n,i,a){var o=i.coordSys[he](t);return e(r.map([0,1],function(t){return n?o.coordToData(o.toLocalCoord(a[t])):o.toGlobalCoord(o[ce](a[t]))}))}var r=t(On),a=t(Be),o=r.each,s={},l=["geo","xAxis","yAxis"],u="--",c=[Ne,"pointToData"];s.parseOutputRanges=function(t,e,i,r){o(t,function(t,i){var a=t.panelId;if(a){a=a.split(u),t[a[0]+"Index"]=+a[1];var o=n(t,e);t.coordRange=h[t.brushType](1,o,t.range),r&&(r[i]=o)}})},s.parseInputRanges=function(t){o(t.areas,function(e){var i=n(e,t.coordInfoList);e.range=e.range||[],i&&i!==!0&&(e.range=h[e.brushType](0,i,e.coordRange),e.panelId=i.panelId)})},s.makePanelOpts=function(t){var e=[];return o(t,function(t){var n,i=t.coordSys;t.geoIndex>=0?(n=i[wn]().clone(),n[X](a.getTransform(i))):n=i.grid.getRect().clone(),e.push({panelId:t.panelId,rect:n})}),e},s.makeCoordInfoList=function(t,e){var n=[];return o(l,function(i){var a=t[i+"Index"];null!=a&&"none"!==a&&("all"===a||r[M](a)||(a=[a]),e[J]({mainType:i},function(t,e){if(!("all"!==a&&r[Ze](a,e)<0)){var o,s;"xAxis"===i||"yAxis"===i?o=t.axis.grid:s=t[zn];for(var l,c=0,h=n[rn];h>c;c++){var f=n[c];if("yAxis"===i&&!f.yAxis&&f.xAxis){var d=o.getCartesian(f.xAxisIndex,e);if(d){s=d,l=f;break}}}!l&&n.push(l={}),l[i]=t,l[i+"Index"]=e,l.panelId=i+u+e,l.coordSys=s||o.getCartesian(l.xAxisIndex,l.yAxisIndex),l.coordSys?n[i+"Has"]=!0:n.pop()}}))}),n},s.controlSeries=function(t,e,i){var r=n(t,e.coordInfoList);return r===!0||r&&r.coordSys===i[zn]};var h={lineX:r.curry(i,"x"),lineY:r.curry(i,"y"),rect:function(t,n,i){var r=n.coordSys,a=r[c[t]]([i[0][0],i[1][0]]),o=r[c[t]]([i[0][1],i[1][1]]);return[e([a[0],o[0]]),e([a[1],o[1]])]},polygon:function(t,e,n){var i=e.coordSys;return r.map(n,i[c[t]],i)}};return s}),e("echarts/component/axis/AxisView",[Rn,On,Be,"./AxisBuilder",Ee],function(t){function e(t,e){function n(t){var e=i[he](t);return e.toGlobalCoord(e[ce](0))}var i=t[zn],r=e.axis,a={},o=r[cn],s=r.onZero?"onZero":o,l=r.dim,u=i.getRect(),c=[u.x,u.x+u.width,u.y,u.y+u[_n]],h=e.get("offset")||0,f={x:{top:c[2]-h,bottom:c[3]+h},y:{left:c[0]-h,right:c[1]+h}};f.x.onZero=Math.max(Math.min(n("y"),f.x[hn]),f.x.top),f.y.onZero=Math.max(Math.min(n("x"),f.y.right),f.y.left),a[cn]=["y"===l?f.y[s]:c[0],"x"===l?f.x[s]:c[3]],a[m]=Math.PI/2*("x"===l?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],r.onZero&&(a.labelOffset=f[l][o]-f[l].onZero),e[Cn]("axisTick").get(x)&&(a.tickDirection=-a.tickDirection),e[Cn]("axisLabel").get(x)&&(a.labelDirection=-a.labelDirection);var p=e[Cn]("axisLabel").get("rotate");return a.labelRotation="top"===s?-p:p,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var n=t(On),i=t(Be),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,o=r.getInterval,s=["axisLine","axisLabel","axisTick","axisName"],l=["splitArea","splitLine"],u=t(Ee)[In]({type:"axis",render:function(t){this.group[kn]();var a=this._axisGroup;if(this._axisGroup=new i.Group,this.group.add(this._axisGroup),t.get("show")){var o=t.findGridModel(),u=e(o,t),c=new r(t,u);n.each(s,c.add,c),this._axisGroup.add(c.getGroup()),n.each(l,function(e){t.get(e+".show")&&this["_"+e](t,o,u.labelInterval)},this),i.groupTransition(a,this._axisGroup,t)}},_splitLine:function(t,e,r){var s=t.axis,l=t[Cn]("splitLine"),u=l[Cn](v),c=u.get("color"),h=o(l,r);c=n[M](c)?c:[c];for(var f=e[zn].getRect(),d=s.isHorizontal(),p=0,m=s.getTicksCoords(),g=s.scale.getTicks(),y=[],x=[],_=u[se](),w=0;w<m[rn];w++)if(!a(s,w,h)){var b=s.toGlobalCoord(m[w]);d?(y[0]=b,y[1]=f.y,x[0]=b,x[1]=f.y+f[_n]):(y[0]=f.x,y[1]=b,x[0]=f.x+f.width,x[1]=b);var S=p++%c[rn];this._axisGroup.add(new i.Line(i.subPixelOptimizeLine({anid:"line_"+g[w],shape:{x1:y[0],y1:y[1],x2:x[0],y2:x[1]},style:n[Ln]({stroke:c[S]},_),silent:!0})))}},_splitArea:function(t,e,r){var s=t.axis,l=t[Cn]("splitArea"),u=l[Cn]("areaStyle"),c=u.get("color"),h=e[zn].getRect(),f=s.getTicksCoords(),d=s.scale.getTicks(),p=s.toGlobalCoord(f[0]),v=s.toGlobalCoord(f[0]),m=0,g=o(l,r),y=u.getAreaStyle();c=n[M](c)?c:[c];for(var x=1;x<f[rn];x++)if(!a(s,x,g)){var _,w,b,S,T=s.toGlobalCoord(f[x]);s.isHorizontal()?(_=p,w=h.y,b=T-_,S=h[_n]):(_=h.x,w=v,b=h.width,S=T-w);var C=m++%c[rn];this._axisGroup.add(new i.Rect({anid:"area_"+d[x],shape:{x:_,y:w,width:b,height:S},style:n[Ln]({fill:c[C]},y),silent:!0})),p=_+b,v=w+S}}});u[an]({type:"xAxis"}),u[an]({type:"yAxis"})}),e("echarts/chart/line/poly",[Rn,"zrender/graphic/Path",E],function(t){function e(t){return isNaN(t[0])||isNaN(t[1])}function n(t,n,r,a,v,m,g,y,x,_,w){for(var b=0,M=r,S=0;a>S;S++){var T=n[M];if(M>=v||0>M)break;if(e(T)){if(w){M+=m;continue}break}if(M===r)t[m>0?o:i](T[0],T[1]),h(d,T);else if(x>0){var C=M+m,A=n[C];if(w)for(;A&&e(n[C]);)C+=m,A=n[C];var P=.5,L=n[b],A=n[C];if(!A||e(A))h(p,T);else{e(A)&&!w&&(A=T),s.sub(f,A,L);var z,k;if("x"===_||"y"===_){var I="x"===_?0:1;z=Math.abs(T[I]-L[I]),k=Math.abs(T[I]-A[I])}else z=s.dist(T,L),k=s.dist(T,A);P=k/(k+z),c(p,T,f,-x*(1-P))}l(d,d,y),u(d,d,g),l(p,p,y),u(p,p,g),t.bezierCurveTo(d[0],d[1],p[0],p[1],T[0],T[1]),c(d,T,f,x*P)}else t[i](T[0],T[1]);b=M,M+=m}return S}function r(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;r<t[rn];r++){var a=t[r];a[0]<n[0]&&(n[0]=a[0]),a[1]<n[1]&&(n[1]=a[1]),a[0]>i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:e?n:i,max:e?i:n}}var a=t("zrender/graphic/Path"),s=t(E),l=s.min,u=s.max,c=s.scaleAndAdd,h=s.copy,f=[],d=[],p=[];return{Polyline:a[an]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,i){var a=i.points,o=0,s=a[rn],l=r(a,i.smoothConstraint);if(i.connectNulls){for(;s>0&&e(a[s-1]);s--);for(;s>o&&e(a[o]);o++);}for(;s>o;)o+=n(t,a,o,s,s,1,l.min,l.max,i.smooth,i.smoothMonotone,i.connectNulls)+1}}),Polygon:a[an]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,i){var a=i.points,o=i.stackedOnPoints,s=0,l=a[rn],u=i.smoothMonotone,c=r(a,i.smoothConstraint),h=r(o,i.smoothConstraint);if(i.connectNulls){for(;l>0&&e(a[l-1]);l--);for(;l>s&&e(a[s]);s++);}for(;l>s;){var f=n(t,a,s,l,l,1,c.min,c.max,i.smooth,u,i.connectNulls);n(t,o,s+f-1,f,l,-1,h.min,h.max,i.stackedOnSmooth,u,i.connectNulls),s+=f+1,t.closePath()}}})}}),e("echarts/component/dataZoom/history",[Rn,On],function(t){function e(t){var e=t[r];return e||(e=t[r]=[{}]),e}var n=t(On),i=n.each,r="\x00_ec_hist_store",a={push:function(t,n){var r=e(t);i(n,function(e,n){for(var i=r[rn]-1;i>=0;i--){var a=r[i];if(a[n])break}if(0>i){var o=t[l]({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var s=o.getPercentRange();r[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}}),r.push(n)},pop:function(t){var n=e(t),r=n[n[rn]-1];n[rn]>1&&n.pop();var a={};return i(r,function(t,e){for(var i=n[rn]-1;i>=0;i--){var t=n[i][e];if(t){a[e]=t;break}}}),a},clear:function(t){t[r]=null},count:function(t){return e(t)[rn]}};return a}),e("echarts/component/dataZoomSelect",[Rn,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SelectZoomModel","./dataZoom/SelectZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SelectZoomModel"),t("./dataZoom/SelectZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/coord/geo/fix/nanhai",[Rn,"../Region"],function(t){for(var e=t("../Region"),n=[126,25],i=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],r=0;r<i[rn];r++)for(var a=0;a<i[r][rn];a++)i[r][a][0]/=10.5,i[r][a][1]/=-14,i[r][a][0]+=n[0],i[r][a][1]+=n[1];return function(t){"china"===t.map&&t.regions.push(new e("南海诸岛",i,n))}}),e("echarts/coord/geo/parseGeoJson",[Rn,On,"./Region"],function(t){function e(t){if(!t.UTF8Encoding)return t;for(var e=t.features,i=0;i<e[rn];i++)for(var r=e[i],a=r.geometry,o=a.coordinates,s=a.encodeOffsets,l=0;l<o[rn];l++){var u=o[l];if("Polygon"===a.type)o[l]=n(u,s[l]);else if("MultiPolygon"===a.type)for(var c=0;c<u[rn];c++){var h=u[c];u[c]=n(h,s[l][c])}}return t.UTF8Encoding=!1,t}function n(t,e){for(var n=[],i=e[0],r=e[1],a=0;a<t[rn];a+=2){var o=t.charCodeAt(a)-64,s=t.charCodeAt(a+1)-64;o=o>>1^-(1&o),s=s>>1^-(1&s),o+=i,s+=r,i=o,r=s,n.push([o/1024,s/1024])}return n}function i(t){for(var e=[],n=0;n<t[rn];n++)for(var i=0;i<t[n][rn];i++)e.push(t[n][i]);return e}var r=t(On),a=t("./Region");return function(t){return e(t),r.map(r[je](t.features,function(t){return t.geometry&&t.properties}),function(t){var e=t.properties,n=t.geometry,r=n.coordinates;return"MultiPolygon"===n.type&&(r=i(r)),new a(e.name,r,e.cp)})}}),e("echarts/coord/geo/fix/textCoord",[Rn,On],function(t){var e=t(On),n={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};return function(t){e.each(t.regions,function(t){var e=n[t.name];if(e){var i=t[fn];i[0]+=e[0]/10.5,i[1]+=-e[1]/14}})}}),e("echarts/coord/geo/fix/geoCoord",[Rn,On],function(t){var e=t(On),n={Russia:[100,60],"United States of America":[-99,38]};return function(t){e.each(t.regions,function(t){var e=n[t.name];if(e){var i=t[fn];i[0]=e[0],i[1]=e[1]}})}}),e("echarts/coord/View",[Rn,E,"zrender/core/matrix","zrender/mixin/Transformable",On,h],function(t){function e(){s.call(this)}function i(t){this.name=t,this.zoomLimit,s.call(this),this._roamTransform=new e,this._viewTransform=new e,this._center,this._zoom}function r(t,e,n,i){var r=n.seriesModel,a=r?r[zn]:null;return a===this?a[t](i):null}var a=t(E),o=t("zrender/core/matrix"),s=t("zrender/mixin/Transformable"),l=t(On),c=t(h),f=a[X];return l.mixin(e,s),i[on]={constructor:i,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new c(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new c(t,e,n,i)},transformTo:function(t,e,n,i){var r=this[wn](),a=this._viewTransform;a[j]=r.calculateTransform(new c(t,e,n,i)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this[wn](),e=t.x+t.width/2,n=t.y+t[_n]/2;return[e,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransform},_updateCenterAndZoom:function(){var t=this._viewTransform.getLocalTransform(),e=this._roamTransform,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=a[X]([],i,t),n=a[X]([],n,t),e.origin=i,e[cn]=[n[0]-i[0],n[1]-i[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransform,e=this._viewTransform;e[u]=t,t[n](),e[n](),e[j]&&o.copy(this[j]||(this[j]=[]),e[j]),this[j]?(this.invTransform=this.invTransform||[],o.invert(this.invTransform,this[j])):this.invTransform=null,this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this[wn]().clone();return t[X](this[j]),t},dataToPoint:function(t){var e=this[j];return e?f([],t,e):[t[0],t[1]]},pointToData:function(t){var e=this.invTransform;return e?f([],t,e):[t[0],t[1]]},convertToPixel:l.curry(r,Ne),convertFromPixel:l.curry(r,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam()[nn](t[0],t[1])}},l.mixin(i,s),i}),e("echarts/coord/geo/Region",[Rn,"zrender/contain/polygon",h,"zrender/core/bbox",E],function(t){function e(t,e,n){if(this.name=t,this.contours=e,n)n=[n[0],n[1]];else{var i=this[wn]();n=[i.x+i.width/2,i.y+i[_n]/2]}this[fn]=n}var n=t("zrender/contain/polygon"),i=t(h),r=t("zrender/core/bbox"),a=t(E);return e[on]={constructor:e,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],o=[-e,-e],s=[],l=[],u=this.contours,c=0;c<u[rn];c++)r.fromPoints(u[c],s,l),a.min(n,n,s),a.max(o,o,l);return 0===c&&(n[0]=n[1]=o[0]=o[1]=0),this._rect=new i(n[0],n[1],o[0]-n[0],o[1]-n[1])},contain:function(t){var e=this[wn](),i=this.contours;if(e[nn](t[0],t[1]))for(var r=0,a=i[rn];a>r;r++)if(n[nn](i[r],t[0],t[1]))return!0;return!1},transformTo:function(t,e,n,r){var o=this[wn](),s=o.width/o[_n];n?r||(r=n/s):n=s*r;for(var l=new i(t,e,n,r),u=o.calculateTransform(l),c=this.contours,h=0;h<c[rn];h++)for(var f=0;f<c[h][rn];f++)a[X](c[h][f],c[h][f],u);o=this._rect,o.copy(l),this[fn]=[o.x+o.width/2,o.y+o[_n]/2]}},e}),e("zrender/contain/polygon",[Rn,"./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<r}function n(t,n,r){var a=0,o=t[0];if(!o)return!1;for(var s=1;s<t[rn];s++){var l=t[s];a+=i(o[0],o[1],l[0],l[1],n,r),o=l}var u=t[0];return e(o[0],u[0])&&e(o[1],u[1])||(a+=i(o[0],o[1],u[0],u[1],n,r)),0!==a}var i=t("./windingLine"),r=1e-8;return{contain:n}}),e("echarts/coord/parallel/Parallel",[Rn,"../../util/layout","../../coord/axisHelper",On,"./ParallelAxis",Be,"zrender/core/matrix"],function(t){function e(t,e,n){this._axesMap={},this._axesLayout={},this[Ve]=t[Ve],this._rect,this._model=t,this._init(t,e,n)}var n=t("../../util/layout"),i=t("../../coord/axisHelper"),r=t(On),a=t("./ParallelAxis"),o=t(Be),s=t("zrender/core/matrix"),l=r.each,u=Math.PI;return e[on]={type:"parallel",constructor:e,_init:function(t,e){var n=t[Ve],r=t.parallelAxisIndex;l(n,function(t,n){var o=r[n],s=e[F]("parallelAxis",o),l=this._axesMap[t]=new a(t,i.createScaleByModel(s),[0,0],s.get("type"),o),u=l.type===te;l.onBand=u&&s.get("boundaryGap"),l.inverse=s.get("inverse"),s.axis=l,l.model=s},this)},update:function(t){this._updateAxesFromSeries(this._model,t)},_updateAxesFromSeries:function(t,e){e[$](function(n){if(t.contains(n,e)){var r=n[Dn]();l(this[Ve],function(t){var e=this._axesMap[t];e.scale.unionExtent(r[Y](t)),i.niceScaleExtent(e,e.model)},this)}},this)},resize:function(t,e){this._rect=n[mn](t[gn](),{width:e[vn](),height:e[pn]()}),this._layoutAxes(t)},getRect:function(){return this._rect},_layoutAxes:function(t){var e=this._rect,n=t.get("layout"),i=this._axesMap,r=this[Ve],a=[e.width,e[_n]],o=n===p?0:1,c=a[o],h=a[1-o],f=[0,h];l(i,function(t){var e=t.inverse?1:0;t.setExtent(f[e],f[1-e])});var d,v=t.get("axisExpandable"),m=t.get("axisExpandWidth"),g=t.get("axisExpandCenter"),y=t.get("axisExpandCount")||0;if(null!=g){var x=Math.max(0,Math.floor(g-(y-1)/2)),_=x+y-1;_>=r[rn]&&(_=r[rn]-1,x=Math.max(0,Math.floor(_-y+1))),d=[x,_]}var w=v&&d&&m?function(t,e,n){var i,r=d[1]-d[0],a=(e-m*r)/(n-1-r);return i=t<d[0]?(t-1)*a:t<=d[1]?d[0]*a+(t-d[0])*m:t===n-1?e:d[0]*a+r*m+(t-d[1])*a,{position:i,axisNameAvailableWidth:d[0]<t&&t<d[1]?m:a}}:function(t,e,n){var i=e/(n-1);return{position:i*t,axisNameAvailableWidth:i}};l(r,function(t,i){var a=w(i,c,r[rn]),o={horizontal:{x:a[cn],y:h},vertical:{x:0,y:a[cn]}},l={horizontal:u/2,vertical:0},f=[o[n].x+e.x,o[n].y+e.y],p=l[n],v=s[tn]();s.rotate(v,v,p),s.translate(v,v,f),this._axesLayout[t]={position:f,rotation:p,transform:v,axisNameAvailableWidth:a.axisNameAvailableWidth,tickDirection:1,labelDirection:1,axisExpandWindow:d}},this)},getAxis:function(t){return this._axesMap[t]},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap[e][ce](t),e)},eachActiveState:function(t,e,n){for(var i=this[Ve],r=this._axesMap,a=this.hasAxisbrushed(),o=0,s=t.count();s>o;o++){var l,u=t.getValues(i,o);if(a){l="active";for(var c=0,h=i[rn];h>c;c++){var f=i[c],d=r[f].model.getActiveState(u[c],c);if("inactive"===d){l="inactive";break}}}else l=Oe;e.call(n,l,o)}},hasAxisbrushed:function(){for(var t=this[Ve],e=this._axesMap,n=!1,i=0,r=t[rn];r>i;i++)e[t[i]].model.getActiveState()!==Oe&&(n=!0);return n},axisCoordToPoint:function(t,e){var n=this._axesLayout[e];return o[X]([t,0],n[j])},getAxisLayout:function(t){return r.clone(this._axesLayout[t])},findClosestAxisDim:function(t){var e,n=1/0;return r.each(this._axesLayout,function(i,r){var a=o[X](t,i[j],!0),s=this._axesMap[r][Ke]();if(!(a[0]<s[0]||a[0]>s[1])){var l=Math.abs(a[1]);n>l&&(n=l,e=r)}},this),e}},e}),e("echarts/coord/parallel/ParallelAxis",[Rn,On,"../Axis"],function(t){var e=t(On),n=t("../Axis"),i=function(t,e,i,r,a){n.call(this,t,e,i),this.type=r||"value",this.axisIndex=a};return i[on]={constructor:i,model:null},e[b](i,n),i}),e("echarts/coord/parallel/AxisModel",[Rn,"../../model/Component",On,"../../model/mixin/makeStyleMapper","../axisModelCreator",w,"../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?te:"value")}var n=t("../../model/Component"),i=t(On),r=t("../../model/mixin/makeStyleMapper"),a=t("../axisModelCreator"),o=t(w),s=n[an]({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return r([["fill","color"],[c,"borderWidth"],[d,"borderColor"],["width","width"],[ln,ln]]).call(this[Cn]("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=i.clone(t);if(e)for(var n=e[rn]-1;n>=0;n--)o.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e[rn])return Oe;if(null==t)return"inactive";for(var n=0,i=e[rn];i>n;n++)if(e[n][0]<=t&&t<=e[n][1])return"active";return"inactive"}}),l={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};return i.merge(s[on],t("../axisModelCommonMixin")),a("parallel",s,e,l),s}),e("echarts/component/axis/parallelAxisAction",[Rn,Ee],function(t){var e=t(Ee),n={type:"axisAreaSelect",event:"axisAreaSelected",update:"updateVisual"};e[sn](n,function(t,e){e[J]({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),e[sn]("parallelAxisExpand",function(t,e){e[J]({mainType:"parallel",query:t},function(e){e.setAxisExpand(t)})})}),e("echarts/component/axis/ParallelAxisView",[Rn,On,"./AxisBuilder","../helper/BrushController",Be,Ee],function(t){function e(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}var n=t(On),i=t("./AxisBuilder"),r=t("../helper/BrushController"),a=t(Be),o=["axisLine","axisLabel","axisTick","axisName"],s=t(Ee)[In]({type:"parallelAxis",init:function(t,e){s[q](this,"init",arguments),(this._brushController=new r(e.getZr())).on("brush",n.bind(this._onBrush,this))},render:function(t,r,s,l){if(!e(t,r,l)){this.axisModel=t,this.api=s,this.group[kn]();var u=this._axisGroup;if(this._axisGroup=new a.Group,this.group.add(this._axisGroup),t.get("show")){var c,h=r[F]("parallel",t.get("parallelIndex"))[zn],f=t.getAreaSelectStyle(),d=f.width,p=t.axis.dim,v=h.getAxisLayout(p),m=n[Ze](h[Ve],p),g=v.axisExpandWindow;g&&(m<=g[0]||m>=g[1])&&(c=!1);var y=n[an]({axisLabelShow:c,strokeContainThreshold:d},v),x=new i(t,y);n.each(o,x.add,x),this._axisGroup.add(x.getGroup()),this._refreshBrushController(y,f,t,d),a.groupTransition(u,this._axisGroup,t)}}},_refreshBrushController:function(t,e,i,r){var o=i.axis,s=n.map(i.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[o[ce](t[0],!0),o[ce](t[1],!0)]}}),l=o[Ke](),u=l[1]-l[0],c=Math.min(30,.1*Math.abs(u)),h=a.BoundingRect[tn]({x:l[0],y:-r/2,width:u,height:r});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t[m],position:t[cn]}).setPanels([{panelId:"pl",rect:h}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(s)},_onBrush:function(t,e){var i=this.axisModel,r=i.axis,a=n.map(t,function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]});(!i[W].realtime===e.isEnd||e.removeOnClick)&&this.api[z]({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},dispose:function(){this._brushController[P]()}});return s}),e("echarts/component/helper/MapDraw",[Rn,"./RoamController",Be,On],function(t){function e(t){var e=t[An](),n=t.get("areaColor");return n&&(e.fill=n),e}function n(t,e,n,r,a){n.off("click"),n.off("mousedown"),e.get("selectedMode")&&(n.on("mousedown",function(){t._mouseDownFlag=!0}),n.on("click",function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var s=o[yn];!s.__region;)s=s[u];if(s){var l=s.__region,c={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",name:l.name,from:a.uid};c[e.mainType+"Id"]=e.id,r[z](c),i(e,n)}}}))}function i(t,e){e.eachChild(function(e){e.__region&&e[L](t.isSelected(e.__region.name)?ge:Oe)})}function r(t,e){var n=new o.Group;this._controller=new a(t.getZr(),e?n:null,null),this.group=n,this._updateGroup=e,this._mouseDownFlag}var a=t("./RoamController"),o=t(Be),s=t(On);return r[on]={constructor:r,draw:function(t,r,a,l,u){var c=t[Dn]&&t[Dn](),h=t[zn],f=this.group,d=h.scale,p={position:h[cn],scale:d};!f[y](0)||u?f.attr(p):o[Ie](f,p,t),f[kn]();var v=["itemStyle",Oe],m=["itemStyle",ge],g=["label",Oe],x=["label",ge];s.each(h.regions,function(n){var i=new o.Group,r=new o.CompoundPath({shape:{paths:[]}});i.add(r);var a,l=t.getRegionModel(n.name)||t,u=l[Cn](v),h=l[Cn](m),p=e(u,d),y=e(h,d),_=l[Cn](g),w=l[Cn](x);if(c){a=c.indexOfName(n.name);var b=c[Se](a,"color",!0);b&&(p.fill=b)}var M=_[Cn](Tn),S=w[Cn](Tn);s.each(n.contours,function(t){var e=new o.Polygon({shape:{points:t}});r.shape.paths.push(e)}),r[un](p),r.style.strokeNoScale=!0,r.culling=!0;var T=_.get("show"),C=w.get("show"),A=c&&isNaN(c.get("value",a)),P=c&&c[De](a);if(!c||A&&(T||C)||P&&P.showLabel){var L=c?a:n.name,z=t[ye](L,Oe),k=t[ye](L,ge),I=new o.Text({style:{text:T?z||n.name:"",fill:M[bn](),textFont:M[Mn](),textAlign:"center",textVerticalAlign:"middle"},hoverStyle:{text:C?k||n.name:"",fill:S[bn](),textFont:S[Mn]()},position:n[fn].slice(),scale:[1/d[0],1/d[1]],z2:10,silent:!0});i.add(I)}if(c)c[Ae](a,i);else{var l=t.getRegionModel(n.name);r.eventData={componentType:"geo",geoIndex:t[Q],name:n.name,region:l&&l[W]||{}}}i.__region=n,o[me](i,y,{hoverSilentOnTouch:!!t.get("selectedMode")}),f.add(i)}),this._updateController(t,r,a),n(this,t,f,a,l),i(t,f)},remove:function(){this.group[kn](),this._controller[P]()},_updateController:function(t,e,n){function i(){var e={type:"geoRoam",componentType:o};return e[o+"Id"]=t.id,e}var r=t[zn],a=this._controller;a.zoomLimit=t.get("scaleLimit"),a.zoom=r.getZoom(),a.enable(t.get("roam")||!1);var o=t.mainType;a.off("pan").on("pan",function(t,e){this._mouseDownFlag=!1,n[z](s[an](i(),{dx:t,dy:e}))},this),a.off("zoom").on("zoom",function(t,e,r){if(this._mouseDownFlag=!1,n[z](s[an](i(),{zoom:t,originX:e,originY:r})),this._updateGroup){var a=this.group,o=a.scale;a[T](function(t){"text"===t.type&&t.attr("scale",[1/o[0],1/o[1]])})}},this),a.setContainsPoint(function(t,e){return r.getViewRectAfterRoam()[nn](t,e)})}},r}),e("echarts/component/helper/RoamController",[Rn,"zrender/mixin/Eventful",On,"zrender/core/event","./interactionMutex"],function(t){function e(t){if(!t[yn]||!t[yn].draggable){var e=t.offsetX,n=t.offsetY;this.containsPoint&&this.containsPoint(e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function n(t){if(this._dragging&&(c.stop(t.event),"pinch"!==t.gestureEvent)){if(h.isTaken(this._zr,"globalPan"))return;var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,a=e-i,o=n-r;this._x=e,this._y=n;var s=this[yn];if(s){var l=s[cn];l[0]+=a,l[1]+=o,s.dirty()}c.stop(t.event),this[L]("pan",a,o,i,r,e,n)}}function i(){this._dragging=!1}function r(t){var e=t.wheelDelta>0?1.1:1/1.1;o.call(this,t,e,t.offsetX,t.offsetY)}function a(t){if(!h.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;o.call(this,t,e,t.pinchX,t.pinchY)}}function o(t,e,n,i){if(this.containsPoint&&this.containsPoint(n,i)){c.stop(t.event);var r=this[yn],a=this.zoomLimit;if(r){var o=r[cn],s=r.scale,l=this.zoom=this.zoom||1;if(l*=e,a){var u=a.min||0,h=a.max||1/0;l=Math.max(Math.min(h,l),u)}var f=l/this.zoom;this.zoom=l,o[0]-=(n-o[0])*(f-1),o[1]-=(i-o[1])*(f-1),s[0]*=f,s[1]*=f,r.dirty()}this[L]("zoom",e,n,i)}}function s(t,o){this[yn]=o,this.containsPoint,this.zoomLimit,this.zoom,this._zr=t;var s=u.bind,c=s(e,this),h=s(n,this),f=s(i,this),d=s(r,this),p=s(a,this);l.call(this),this.setContainsPoint=function(t){this.containsPoint=t},this.enable=function(e){this.disable(),null==e&&(e=!0),(e===!0||"move"===e||"pan"===e)&&(t.on("mousedown",c),t.on(C,h),t.on("mouseup",f)),(e===!0||"scale"===e||"zoom"===e)&&(t.on("mousewheel",d),t.on("pinch",p))},this.disable=function(){t.off("mousedown",c),t.off(C,h),t.off("mouseup",f),t.off("mousewheel",d),t.off("pinch",p)},this[P]=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var l=t("zrender/mixin/Eventful"),u=t(On),c=t("zrender/core/event"),h=t("./interactionMutex");return u.mixin(s,l),s}),e("echarts/component/helper/interactionMutex",[Rn,Ee],function(t){function e(t){return t[n]||(t[n]={})}var n="\x00_ec_interaction_mutex",i={take:function(t,n,i){var r=e(t);r[n]=i},release:function(t,n,i){var r=e(t),a=r[n];a===i&&(r[n]=null)},isTaken:function(t,n){return!!e(t)[n]}};return t(Ee)[sn]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),i}),e("echarts/component/helper/BrushController",[Rn,"zrender/mixin/Eventful",On,h,Be,"./interactionMutex","../../data/DataDiffer"],function(t){function e(t){G.call(this),this._zr=t,this.group=new q.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+oe++,this._handlers={},U(se,function(t,e){this._handlers[e]=H.bind(t,this)},this)}function n(t,e){var n=t._zr;t._enableGlobalPan||W.take(n,ne,t._uid),U(t._handlers,function(t,e){n.on(e,t)}),t._brushType=e.brushType,t._brushOption=H.merge(H.clone(ae),e,!0)}function i(t){var e=t._zr;W.release(e,ne,t._uid),U(t._handlers,function(t,n){e.off(n,t)}),t._brushType=t._brushOption=null}function r(t,e){var n=le[e.brushType].createCover(t,e);return s(n),n.__brushOption=e,t.group.add(n),n}function a(t,e){var n=u(e);return n.endCreating&&(n.endCreating(t,e),s(e)),e}function o(t,e){var n=e.__brushOption;u(e).updateCoverShape(t,e,n.range,n)}function s(t){t[T](function(t){t.z=K,t.z2=K})}function l(t,e){u(e).updateCommon(t,e),o(t,e)}function u(t){return le[t.__brushOption.brushType]}function f(t,e,n){var i=t._panels;if(!i)return!0;var r;return U(i,function(t){t[nn](e,n)&&(r=t)}),r}function d(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null!=i?n[i]:!0
}function p(t){var e=t._covers,n=e[rn];return U(e,function(e){t.group[Le](e)},t),e[rn]=0,!!n}function v(t,e){var n=Y(t._covers,function(t){var e=t.__brushOption,n=H.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t[L]("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function g(t){var e=t._track;if(!e[rn])return!1;var n=e[e[rn]-1],i=e[0],r=n[0]-i[0],a=n[1]-i[1],o=Q(r*r+a*a,.5);return o>te}function x(t){var e=t[rn]-1;return 0>e&&(e=0),[t[0],t[e]]}function _(t,e,n,i){var r=new q.Group;return r.add(new q.Rect({name:"main",style:S(n),silent:!0,draggable:!0,cursor:"move",drift:j(t,e,r,"nswe"),ondragend:j(v,e,{isEnd:!0})})),U(i,function(n){r.add(new q.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:j(t,e,r,n),ondragend:j(v,e,{isEnd:!0})}))}),r}function w(t,e,n,i){var r=i.brushStyle[c]||0,a=J(r,ee),o=n[0][0],s=n[1][0],l=o-r/2,u=s-r/2,h=n[0][1],f=n[1][1],d=h-a+r/2,p=f-a+r/2,v=h-o,m=f-s,g=v+r,y=m+r;M(t,e,"main",o,s,v,m),i.transformable&&(M(t,e,"w",l,u,a,y),M(t,e,"e",d,u,a,y),M(t,e,"n",l,u,g,a),M(t,e,"s",l,p,g,a),M(t,e,"nw",l,u,a,a),M(t,e,"ne",d,u,a,a),M(t,e,"sw",l,p,a,a),M(t,e,"se",d,p,a,a))}function b(t,e){var n=e.__brushOption,i=n.transformable,r=e[y](0);r[be](S(n)),r.attr({silent:!i,cursor:i?"move":"default"}),U(["w","e","n","s","se","sw","ne","nw"],function(n){var r=e.childOfName(n),a=P(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?re[a]+"-resize":null})})}function M(t,e,n,i,r,a,o){var s=e.childOfName(n);s&&s[Me](O(D(t,e,[[i,r],[i+a,r+o]])))}function S(t){return H[Ln]({strokeNoScale:!0},t.brushStyle)}function C(t,e,n,i){var r=[$(t,n),$(e,i)],a=[J(t,n),J(e,i)];return[[r[0],a[0]],[r[1],a[1]]]}function A(t){return q.getTransform(t.group)}function P(t,e){if(e[rn]>1){e=e.split("");var n=[P(t,e[0]),P(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},n=q.transformDirection(i[e],A(t));return r[n]}function z(t,e,n,i,r,a,o){var s=i.__brushOption,u=t(s.range),c=I(n,a,o);U(r.split(""),function(t){var e=ie[t];u[e[0]][e[1]]+=c[e[0]]}),s.range=e(C(u[0][0],u[1][0],u[0][1],u[1][1])),l(n,i),v(n,{isEnd:!1})}function k(t,e,n,i){var r=e.__brushOption.range,a=I(t,n,i);U(r,function(t){t[0]+=a[0],t[1]+=a[1]}),l(t,e),v(t,{isEnd:!1})}function I(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),a=i.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function D(t,e,n){var i=d(t,e);if(i===!0)return H.clone(n);var r=i[wn]();return H.map(n,function(t){var e=t[0];e=J(e,r.x),e=$(e,r.x+r.width);var n=t[1];return n=J(n,r.y),n=$(n,r.y+r[_n]),[e,n]})}function O(t){var e=$(t[0][0],t[1][0]),n=$(t[0][1],t[1][1]),i=J(t[0][0],t[1][0]),r=J(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function R(t,e){var n=e.offsetX,i=e.offsetY,r=t._zr;if(t._brushType){for(var a,o=t._panels,s=t._covers,l=0;l<s[rn];l++)if(le[s[l].__brushOption.brushType][nn](s[l],n,i)){a=!0;break}a||(o?U(o,function(t){t[nn](n,i)&&r.setCursorStyle("crosshair")}):r.setCursorStyle("crosshair"))}}function E(t){var e=t.event;e.preventDefault&&e.preventDefault()}function B(t,e,n){return t.childOfName("main")[nn](e,n)}function N(t,e,n){var i,s=e.offsetX,l=e.offsetY,u=t._creatingCover,c=t._creatingPanel,h=t._brushOption;if(t._track.push(t.group.transformCoordToLocal(s,l)),g(t)||u){if(c&&!u){"single"===h.brushMode&&p(t);var d=H.clone(h);d.panelId=c===!0?null:c.__brushPanelId,u=t._creatingCover=r(t,d),t._covers.push(u)}if(u){var v=le[t._brushType],m=u.__brushOption;m.range=v.getCreatingRange(D(t,u,t._track)),n&&(a(t,u),v.updateCommon(t,u)),o(t,u),i={isEnd:n}}}else n&&"single"===h.brushMode&&h.removeOnClick&&f(t,s,l)&&p(t)&&(i={isEnd:n,removeOnClick:!0});return i}function V(t){if(this._dragging){E(t);var e=N(this,t,!0);this._dragging=!1,this._track=[],this._creatingCover=null,e&&v(this,e)}}function F(t){return{createCover:function(e,n){return _(j(z,function(e){var n=[e,[0,100]];return t&&n.reverse(),n},function(e){return e[t]}),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=x(e),i=$(n[0][t],n[1][t]),r=J(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var a,o=r.brushStyle.width;if(null==o){var s=d(e,n),l=0;if(s!==!0){var u=s[wn]();o=t?u.width:u[_n],l=t?u.x:u.y}a=[l,l+(o||0)]}else a=[-o/2,o/2];var c=[i,a];t&&c.reverse(),w(e,n,c,r)},updateCommon:b,contain:B}}var G=t("zrender/mixin/Eventful"),H=t(On),Z=t(h),q=t(Be),W=t("./interactionMutex"),X=t("../../data/DataDiffer"),j=H.curry,U=H.each,Y=H.map,$=Math.min,J=Math.max,Q=Math.pow,K=1e4,te=6,ee=6,ne="globalPan",ie={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},re={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ae={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},oe=0;e[on]={constructor:e,enableBrush:function(t){return this._brushType&&i(this),t.brushType&&n(this,t),this},setPanels:function(t){var e=this._panels||{},n=this._panels=t&&t[rn]&&{},i=this.group;return n&&U(t,function(t){var r=t.panelId,a=e[r];a||(a=new q.Rect({silent:!0,invisible:!0}),i.add(a));var o=t.rect;o instanceof Z||(o=Z[tn](o)),a.attr("shape",o.plain()),a.__brushPanelId=r,n[r]=a,e[r]=null}),U(e,function(t){t&&i[Le](t)}),this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t[cn]||[0,0],rotation:t[m]||0,scale:t.scale||[1,1]}),this},eachCover:function(t,e){U(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:s+e)+"-"+t.brushType}function n(t,n){return e(t.__brushOption,n)}function i(e,n){var i=t[e];if(null!=n&&u[n]===f)c[e]=u[n];else{var o=c[e]=null!=n?(u[n].__brushOption=i,u[n]):a(h,r(h,i));l(h,o)}}function o(t){u[t]!==f&&h.group[Le](u[t])}t=H.map(t,function(t){return H.merge(H.clone(ae),t,!0)});var s="\x00-brush-index-",u=this._covers,c=this._covers=[],h=this,f=this._creatingCover;return new X(u,t,n,e).add(i)[Pe](i)[Le](o)[ze](),this},unmount:function(){return this.enableBrush(!1),p(this),this._zr[Le](this.group),this},dispose:function(){this.unmount(),this.off()}},H.mixin(e,G);var se={mousedown:function(t){if(this._dragging)V.call(this,t);else if(!t[yn]||!t[yn].draggable){E(t);var e=t.offsetX,n=t.offsetY;this._creatingCover=null;var i=this._creatingPanel=f(this,e,n);i&&(this._dragging=!0,this._track=[this.group.transformCoordToLocal(e,n)])}},mousemove:function(t){if(R(this,t),this._dragging){E(t);var e=N(this,t,!1);e&&v(this,e)}},mouseup:V},le={lineX:F(0),lineY:F(1),rect:{createCover:function(t,e){return _(j(z,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=x(t);return C(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){w(t,e,n,i)},updateCommon:b,contain:B},polygon:{createCover:function(t,e){var n=new q.Group;return n.add(new q.Polyline({name:"main",style:S(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e[Le](e[y](0)),e.add(new q.Polygon({name:"main",draggable:!0,drift:j(k,t,e),ondragend:j(v,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n){e[y](0)[Me]({points:D(t,e,n)})},updateCommon:b,contain:B}};return e}),e("echarts/action/roamHelper",[Rn],function(){var t={};return t.updateCenterAndZoom=function(t,e,i){var r=t.getZoom(),a=t.getCenter(),o=e.zoom,s=t[Ne](a);if(null!=e.dx&&null!=e.dy){s[0]-=e.dx,s[1]-=e.dy;var a=t.pointToData(s);t.setCenter(a)}if(null!=o){if(i){var l=i.min||0,u=i.max||1/0;o=Math.max(Math.min(r*o,u),l)/r}t.scale[0]*=o,t.scale[1]*=o;var c=t[cn],h=(e.originX-c[0])*(o-1),f=(e.originY-c[1])*(o-1);c[0]-=h,c[1]-=f,t[n]();var a=t.pointToData(s);t.setCenter(a),t.setZoom(o*r)}return{center:t.getCenter(),zoom:t.getZoom()}},t}),e("echarts/component/axis/AxisBuilder",[Rn,On,"../../util/format",Be,"../../model/Model",w,E],function(t){function e(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t[Q],e}function i(t,e,n){var i,r,a=h(e-t[m]);return d(a)?(r=n>0?"top":hn,i=fn):d(a-x)?(r=n>0?hn:"top",i=fn):(r=dn,i=a>0&&x>a?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,verticalAlign:r}}function r(t,e,n,i){var r,a,o=h(n-t[m]),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return d(o-x/2)?(a=l?hn:"top",r=fn):d(o-1.5*x)?(a=l?"top":hn,r=fn):(a=dn,r=1.5*x>o&&o>x/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,verticalAlign:a}}function a(t){var e=t.get("tooltip");return t.get(xn)||!(t.get("triggerEvent")||e&&e.show)}var o=t(On),s=t("../../util/format"),l=t(Be),u=t("../../model/Model"),c=t(w),h=c.remRadian,d=c.isRadianAroundZero,p=t(E),g=p[X],y=o[xe],x=Math.PI,_=function(t,e){this.opt=e,this.axisModel=t,o[Ln](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new l.Group;var i=new l.Group({position:e[cn].slice(),rotation:e[m]});i[n](),this._transform=i[j],this._dumbGroup=i};_[on]={constructor:_,hasBuilder:function(t){return!!b[t]},add:function(t){b[t].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis[Ke](),i=this._transform,r=[n[0],0],a=[n[1],0];i&&(g(r,r,i),g(a,a,i)),this.group.add(new l.Line(l.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:o[an]({lineCap:"round"},e[Cn]("axisLine.lineStyle")[se]()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show"))for(var e=t.axis,n=t[Cn]("axisTick"),i=this.opt,r=n[Cn](v),a=n.get(rn),s=S(n,i.labelInterval),u=e.getTicksCoords(n.get("alignWithLabel")),c=e.scale.getTicks(),h=[],f=[],d=this._transform,p=0;p<u[rn];p++)if(!M(e,p,s)){var m=u[p];h[0]=m,h[1]=0,f[0]=m,f[1]=i.tickDirection*a,d&&(g(h,h,d),g(f,f,d)),this.group.add(new l.Line(l.subPixelOptimizeLine({anid:"tick_"+c[p],shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:o[Ln](r[se](),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0})))}},axisLabel:function(){function t(t,e){var n=t&&t[wn]().clone(),i=e&&e[wn]().clone();return n&&i?(n[X](t.getLocalTransform()),i[X](e.getLocalTransform()),n.intersect(i)):void 0}var r=this.opt,s=this.axisModel,c=y(r.axisLabelShow,s.get("axisLabel.show"));if(c){var h=s.axis,d=s[Cn]("axisLabel"),p=d[Cn](Tn),v=d.get("margin"),g=h.scale.getTicks(),_=s.getFormattedLabels(),w=y(r.labelRotation,d.get("rotate"))||0;w=w*x/180;var b=i(r,w,r.labelDirection),S=s.get("data"),T=[],C=a(s),A=s.get("triggerEvent");if(o.each(g,function(t,i){if(!M(h,i,r.labelInterval)){var a=p;S&&S[t]&&S[t][Tn]&&(a=new u(S[t][Tn],p,s[f]));var o=a[bn]()||s.get("axisLine.lineStyle.color"),c=h[ce](t),d=[c,r.labelOffset+r.labelDirection*v],g=h.scale.getLabel(t),y=new l.Text({anid:"label_"+t,style:{text:_[i],textAlign:a.get("align",!0)||b[Sn],textVerticalAlign:a.get("baseline",!0)||b.verticalAlign,textFont:a[Mn](),fill:typeof o===Je?o(g):o},position:d,rotation:b[m],silent:C,z2:10});A&&(y.eventData=e(s),y.eventData.targetType="axisLabel",y.eventData.value=g),this._dumbGroup.add(y),y[n](),T.push(y),this.group.add(y),y.decomposeTransform()}},this),h.type!==te){if(s.getMin?s.getMin():s.get("min")){var P=T[0],L=T[1];t(P,L)&&(P[re]=!0)}if(s.getMax?s.getMax():s.get("max")){var z=T[T[rn]-1],k=T[T[rn]-2];t(k,z)&&(z[re]=!0)}}}},axisName:function(){var t=this.opt,u=this.axisModel,c=y(t.axisName,u.get("name"));if(c){var h,f=u.get("nameLocation"),d=t.nameDirection,p=u[Cn]("nameTextStyle"),v=u.get("nameGap")||0,g=this.axisModel.axis[Ke](),_=g[0]>g[1]?-1:1,w=["start"===f?g[0]-_*v:"end"===f?g[1]+_*v:(g[0]+g[1])/2,f===dn?t.labelOffset+d*v:0],b=u.get("nameRotate");null!=b&&(b=b*x/180);var M;f===dn?h=i(t,null!=b?b:t[m],d):(h=r(t,f,b||0,g),M=t.axisNameAvailableWidth,null!=M&&(M=Math.abs(M/Math.sin(h[m])),!isFinite(M)&&(M=null)));var S=p[Mn](),T=u.get("nameTruncate",!0)||{},C=T.ellipsis,A=y(T.maxWidth,M),P=null!=C&&null!=A?s.truncateText(c,A,S,C,{minChar:2,placeholder:T.placeholder}):c,L=u.get("tooltip",!0),z=u.mainType,k={componentType:z,name:c,$vars:["name"]};k[z+"Index"]=u[Q];var I=new l.Text({anid:"name",__fullText:c,__truncatedText:P,style:{text:P,textFont:S,fill:p[bn]()||u.get("axisLine.lineStyle.color"),textAlign:h[Sn],textVerticalAlign:h.verticalAlign},position:w,rotation:h[m],silent:a(u),z2:1,tooltip:L&&L.show?o[an]({content:c,formatter:function(){return c},formatterParams:k},L):null});u.get("triggerEvent")&&(I.eventData=e(u),I.eventData.targetType="axisName",I.eventData.name=c),this._dumbGroup.add(I),I[n](),this.group.add(I),I.decomposeTransform()}}},M=_.ifIgnoreOnTick=function(t,e,n){var i,r=t.scale;return r.type===ie&&(typeof n===Je?(i=r.getTicks()[e],!n(i,r.getLabel(i))):e%(n+1))},S=_.getInterval=function(t,e){var n=t.get("interval");return(null==n||"auto"==n)&&(n=e),n};return _}),e("echarts/component/dataZoom/SelectZoomModel",[Rn,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[an]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/DataZoomView",[Rn,"../../view/Component"],function(t){var e=t("../../view/Component");return e[an]({type:"dataZoom",render:function(t,e,n){this.dataZoomModel=t,this[f]=e,this.api=n},getTargetInfo:function(){function t(t,e,n,i){for(var r,a=0;a<n[rn];a++)if(n[a].model===t){r=n[a];break}r||n.push(r={model:t,axisModels:[],coordIndex:i}),r.axisModels.push(e)}var e=this.dataZoomModel,n=this[f],i=[],r=[],a=[];return e.eachTargetAxis(function(e,o){var s=n[F](e.axis,o);if(s){a.push(s);var u,c=e.axis;"xAxis"===c||"yAxis"===c?u="grid":("angleAxis"===c||"radiusAxis"===c)&&(u="polar");var h=u?n[l]({mainType:u,index:s.get(u+"Index"),id:s.get(u+"Id")})[0]:null;null!=h&&t(h,s,"grid"===u?i:r,h[Q])}},this),{cartesians:i,polars:r,axisModels:a}}})}),e("echarts/component/dataZoom/typeDefaulter",[Rn,"../../model/Component"],function(t){t("../../model/Component").registerSubTypeDefaulter("dataZoom",function(){return"slider"})}),e("echarts/component/dataZoom/SelectZoomView",[Rn,"./DataZoomView"],function(t){return t("./DataZoomView")[an]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/dataZoomProcessor",[Rn,Ee],function(t){function e(t,e,n){n.getAxisProxy(t.name,e).reset(n)}function n(t,e,n){n.getAxisProxy(t.name,e).filterData(n)}var i=t(Ee);i.registerProcessor(function(t){t[J]("dataZoom",function(t){t.eachTargetAxis(e),t.eachTargetAxis(n)}),t[J]("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setRawRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})})})}),e("echarts/component/dataZoom/DataZoomModel",[Rn,On,B,Ee,pe,"./helper","./AxisProxy"],function(t){function e(t){var e={};return c(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function n(t,e,n,i){null!=n[e]&&null==n[t]&&(i[t]=null)}var i=t(On),r=t(B),a=t(Ee),o=t(pe),s=t("./helper"),u=t("./AxisProxy"),c=i.each,h=s.eachAxisDim,d=a.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis",G],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null},init:function(t,n,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0;var r=e(t);this.mergeDefaultAndTheme(t,i),this.doInit(r)},mergeOption:function(t){var n=e(t);i.merge(this[W],t,!0),this.doInit(n)},doInit:function(t){var e=this[W];r[O]||(e.realtime=!1),this._setDefaultThrottle(t),n("start","startValue",t,e),n("end","endValue",t,e),this.textStyleModel=this[Cn](Tn),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,n,i,r){var a=this.dependentModels[e.axis][n],o=a.__dzAxisProxy||(a.__dzAxisProxy=new u(e.name,n,this,r));t[e.name+"_"+n]=o},this)},_resetTarget:function(){var t=this[W],e=this._judgeAutoMode();h(function(e){var n=e.axisIndex;t[n]=o.normalizeToArray(t[n])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this[W],e=!1;h(function(n){null!=t[n.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient=p),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this[W];if(t){var r="vertical"===e?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[r.axis][rn]&&(n[r.axisIndex]=[0],t=!1)}t&&h(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r[rn]&&!i[rn])for(var a=0,o=r[rn];o>a;a++)r[a].get("type")===te&&i.push(a);n[e.axisIndex]=i,i[rn]&&(t=!1)}},this),t&&this[f][$](function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&h(function(e){var r=n[e.axisIndex],a=t.get(e.axisIndex),o=t.get(e.axisId),s=t[f][l]({mainType:e.axis,index:a,id:o})[0];a=s[Q],i[Ze](r,a)<0&&r.push(a)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this[W].orient="y"===t?"vertical":p},_isSeriesHasAllAxesTypeOf:function(t,e){var n=!0;return h(function(i){var r=t.get(i.axisIndex),a=this.dependentModels[i.axis][r];a&&a.get("type")===e||(n=!1)},this),n},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this[f][W];this[W].throttle=e[Re]&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return h(function(e){if(null==t){var n=this.get(e.axisIndex);n[rn]&&(t=this.dependentModels[e.axis][n[0]])}},this),t},eachTargetAxis:function(t,e){var n=this[f];h(function(i){c(this.get(i.axisIndex),function(r){t.call(e,i,r,this,n)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(t){c(["start","end","startValue","endValue"],function(e){this[W][e]=t[e]},this)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e];for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e]}});return d}),e("echarts/component/dataZoom/dataZoomAction",[Rn,On,"./helper",Ee],function(t){var e=t(On),n=t("./helper"),i=t(Ee);i[sn]("dataZoom",function(t,i){var r=n.createLinkedNodesFinder(e.bind(i[J],i,"dataZoom"),n.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),a=[];i[J]({mainType:"dataZoom",query:t},function(t){a.push.apply(a,r(t).nodes)}),e.each(a,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}),e("echarts/component/dataZoom/helper",[Rn,"../../util/format",On],function(t){var e=t("../../util/format"),n=t(On),i={},r=["x","y","z",de,"angle"];return i.createNameEach=function(t,i){t=t.slice();var r=n.map(t,e.capitalFirst);i=(i||[]).slice();var a=n.map(i,e.capitalFirst);return function(e,o){n.each(t,function(t,n){for(var s={name:t,capital:r[n]},l=0;l<i[rn];l++)s[i[l]]=t+a[l];e.call(o,s)})}},i.eachAxisDim=i.createNameEach(r,["axisIndex","axis","index","id"]),i.createLinkedNodesFinder=function(t,e,i){function r(t,e){return n[Ze](e.nodes,t)>=0}function a(t,r){var a=!1;return e(function(e){n.each(i(t,e)||[],function(t){r.records[e.name][t]&&(a=!0)})}),a}function o(t,r){r.nodes.push(t),e(function(e){n.each(i(t,e)||[],function(t){r.records[e.name][t]=!0})})}return function(n){function i(t){!r(t,s)&&a(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!n)return s;o(n,s);var l;do l=!1,t(i);while(l);return s}},i}),e("echarts/component/dataZoom/AxisProxy",[Rn,On,w],function(t){function e(t,e){var n=[1/0,-1/0];return o(e,function(e){var i=e[Dn]();i&&o(e.coordDimToDataDim(t),function(t){var e=i[Y](t);e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])})},this),n}function n(t,e,n){return o(["min","max"],function(i,r){var a=e.get(i,!0);null!=a&&(a+"")[R]()!=="data"+i&&(t[r]=n.parse(a))}),e.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function i(t,e){var n=t.getAxisModel(),i=t._percentWindow,r=t._valueWindow;if(i){var o=e||0===i[0]&&100===i[1],s=!e&&a.getPixelPrecision(r,[0,500]),l=!(e||20>s&&s>=0),u=e||o||l;n.setRange&&n.setRange(u?null:+r[0].toFixed(s),u?null:+r[1].toFixed(s))}}var r=t(On),a=t(w),o=r.each,s=a.asc,u=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this[f]=i,this._dataZoomModel=n};return u[on]={constructor:u,hostedBy:function(t){return this._dataZoomModel===t},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this[f];return e[$](function(n){var i=n.get(zn);if(i===Qe||"polar"===i){var r=this._dimName,a=e[l]({mainType:r+"Axis",index:n.get(r+"AxisIndex"),id:n.get(r+"AxisId")})[0];this._axisIndex===(a&&a[Q])&&t.push(n)}},this),t},getAxisModel:function(){return this[f][F](this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n=this._dimName,i=this[f],r=this.getAxisModel(),a="x"===n||"y"===n;a?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?de:"angle");var o;return i[J](t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},calculateDataWindow:function(t,e){var i=this.getAxisModel(),r=i.axis.scale,l=[0,100],u=[t.start,t.end],c=[];return e=e.slice(),n(e,i,r),o(["startValue","endValue"],function(e){c.push(null!=t[e]?r.parse(t[e]):null)}),o([0,1],function(t){var n=c[t],i=u[t];null!=i||null==n?(null==i&&(i=l[t]),n=r.parse(a.linearMap(i,l,e,!0))):i=a.linearMap(n,e,l,!0),c[t]=n,u[t]=i}),{valueWindow:s(c),percentWindow:s(u)}},reset:function(t){if(t===this._dataZoomModel){var n=this._dataExtent=e(this._dimName,this.getTargetSeriesModels()),r=this.calculateDataWindow(t[W],n);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,i(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,i(this,!0))},filterData:function(t){function e(t){return t>=a[0]&&t<=a[1]}if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow,s=this.getOtherAxisModel();t.get("$fromToolbox")&&s&&s.get("type")===te&&(r="empty"),o(i,function(t){var i=t[Dn]();i&&o(t.coordDimToDataDim(n),function(n){"empty"===r?t.setData(i.map(n,function(t){return e(t)?t:0/0})):i.filterSelf(n,e)})})}}},u}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var En=t("echarts");return En.graphic=t("echarts/util/graphic"),En.number=t("echarts/util/number"),En.format=t("echarts/util/format"),t("echarts/chart/bar"),t("echarts/chart/line"),t("echarts/chart/pie"),t("echarts/chart/heatmap"),t("echarts/chart/map"),t("echarts/chart/lines"),t("echarts/chart/parallel"),t("echarts/chart/gauge"),t("echarts/chart/funnel"),t("echarts/component/grid"),t("echarts/component/title"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("echarts/component/toolbox"),t("zrender/vml/vml"),En});