text: !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 i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(n[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],l=o[r],u=0,c=Math.min(e.length,n.length);c>u;u++){var h,d=i(e[u],r);switch(d){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;break;default:h=a(d)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="lineTo",n="undefined",r="refresh",a="queryComponents",o="moveTo",s="transform",l="ecModel",u="retrieve",c="category",h="getFormattedLabels",d="rotation",f="parent",p="inside",m="stroke",v="applyTransform",g="getShallow",y="inherits",x="replace",_="traverse",b="splice",w="series",M="trigger",S="dispatchAction",T="isObject",C="colorStops",P="dataIndex",A="canvasSupported",I="toLowerCase",L="zrender/core/env",z="ordinal",k="ignore",D="zlevel",O="getItemGraphicEl",R="stopAnimation",E="remove",B="animation",N="dataToCoord",V="dimensions",G="getAxis",F="getBaseAxis",H="../../util/graphic",Z="isArray",q="parsePercent",W="getItemVisual",X="getItemModel",j="getName",U="getData",Y="eachComponent",$="update",Q="emphasis",K="normal",J="option",te="mergeOption",ee="function",ie="concat",ne="number",re="string",ae="indexOf",oe="getContext",se="createElement",le="filter",ue="getLabel",ce="getTicks",he="getExtent",de="create",fe="contain",pe="length",me="extend",ve="prototype",ge="registerAction",ye="setStyle",xe="position",_e="bottom",be="center",we="middle",Me="getHeight",Se="getWidth",Te="target",Ce="silent",Pe="height",Ae="getBoundingRect",Ie="getTextColor",Le="getFont",ze="textAlign",ke="textStyle",De="getModel",Oe="defaults",Re="coordinateSystem",Ee="removeAll",Be="zrender/core/util",Ne="require";e("echarts/chart/pie",[Ne,Be,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(Be),i=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"}]),i.registerVisual(e.curry(t("../visual/dataColor"),"pie")),i.registerLayout(e.curry(t("./pie/pieLayout"),"pie")),i.registerProcessor(e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/chart/line",[Ne,Be,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(Be),i=t("../echarts"),n=i.PRIORITY;t("./line/LineSeries"),t("./line/LineView"),i.registerVisual(e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line")),i.registerProcessor(n.PROCESSOR.STATISTIC,e.curry(t("../processor/dataSample"),"line")),t("../component/grid")}),e("echarts/component/grid",[Ne,"../util/graphic",Be,"../echarts","../coord/cartesian/Grid","./axis"],function(t){var e=t("../util/graphic"),i=t(Be),n=t("../echarts");t("../coord/cartesian/Grid"),t("./axis"),n.extendComponentView({type:"grid",render:function(t){this.group[Ee](),t.get("show")&&this.group.add(new e.Rect({shape:t[Re].getRect(),style:i[Oe]({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),e("echarts/component/title",[Ne,"../echarts","../util/graphic","../util/layout"],function(t){var e=t("../echarts"),i=t("../util/graphic"),n=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.extendComponentView({type:"title",render:function(t,e,r){if(this.group[Ee](),t.get("show")){var a=this.group,o=t[De](ke),s=t[De]("subtextStyle"),l=t.get(ze),u=t.get("textBaseline"),c=new i.Text({style:{text:t.get("text"),textFont:o[Le](),fill:o[Ie]()},z2:10}),h=c[Ae](),d=t.get("subtext"),f=new i.Text({style:{text:d,textFont:s[Le](),fill:s[Ie](),y:h[Pe]+t.get("itemGap"),textBaseline:"top"},z2:10}),p=t.get("link"),m=t.get("sublink");c[Ce]=!p,f[Ce]=!m,p&&c.on("click",function(){window.open(p,"_"+t.get(Te))}),m&&f.on("click",function(){window.open(m,"_"+t.get("subtarget"))}),a.add(c),d&&a.add(f);var v=a[Ae](),g=t.getBoxLayoutParams();g.width=v.width,g[Pe]=v[Pe];var y=n.getLayoutRect(g,{width:r[Se](),height:r[Me]()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l===we&&(l=be),"right"===l?y.x+=y.width:l===be&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get(_e),u===be&&(u=we),u===_e?y.y+=y[Pe]:u===we&&(y.y+=y[Pe]/2),u=u||"top"),a.attr(xe,[y.x,y.y]);var x={textAlign:l,textVerticalAlign:u};c[ye](x),f[ye](x),v=a[Ae]();var _=y.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new i.Rect({shape:{x:v.x-_[3],y:v.y-_[0],width:v.width+_[1]+_[3],height:v[Pe]+_[0]+_[2]},style:b,silent:!0});i.subPixelOptimizeRect(w),a.add(w)}}})}),e("echarts/component/legend",[Ne,"./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",[Ne,"./tooltip/TooltipModel","./tooltip/TooltipView","../echarts"],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t("../echarts")[ge]({type:"showTip",event:"showTip",update:"none"},function(){}),t("../echarts")[ge]({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e("echarts/component/timeline",[Ne,"../echarts","./timeline/preprocessor","./timeline/typeDefaulter","./timeline/timelineAction","./timeline/SliderTimelineModel","./timeline/SliderTimelineView"],function(t){var e=t("../echarts");e.registerPreprocessor(t("./timeline/preprocessor")),t("./timeline/typeDefaulter"),t("./timeline/timelineAction"),t("./timeline/SliderTimelineModel"),t("./timeline/SliderTimelineView")}),e("echarts/component/toolbox",[Ne,"./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",[Ne,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/scale/Time",[Ne,Be,"../util/number","../util/format","./Interval"],function(t){var e=t(Be),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[ve],o=Math.ceil,s=Math.floor,l=1e3,u=60*l,c=60*u,h=24*c,d=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},f=r[me]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return n.formatTime(e[0],i)},niceExtent:function(t,e,n){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]=i.round(s(r[0]/l)*l)),n||(r[1]=i.round(o(r[1]/l)*l))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0],r=n/t,a=p[pe],l=d(p,r,0,a),u=p[Math.min(l,a-1)],c=u[2];if("year"===u[0]){var h=n/c,f=i.nice(h/t,!0);c*=f}var m=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=u,this._interval=c,this._niceExtent=m},parse:function(t){return+i.parseDate(t)}});e.each([fe,"normalize"],function(t){f[ve][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 f[de]=function(){return new f},f}),e("echarts/scale/Log",[Ne,Be,"./Scale","../util/number","./Interval"],function(t){function e(t,e){return u(t,l(e))}var i=t(Be),n=t("./Scale"),r=t("../util/number"),a=t("./Interval"),o=n[ve],s=a[ve],l=r.getPrecisionSafe,u=r.round,c=Math.floor,h=Math.ceil,d=Math.pow,f=Math.log,p=n[me]({type:"log",base:10,$constructor:function(){n.apply(this,arguments),this._originalScale=new a},getTicks:function(){var t=this._originalScale,n=this._extent,a=t[he]();return i.map(s[ce].call(this),function(i){var o=r.round(d(this.base,i));return o=i===n[0]&&t.__fixMin?e(o,a[0]):o,o=i===n[1]&&t.__fixMax?e(o,a[1]):o},this)},getLabel:s[ue],scale:function(t){return t=o.scale.call(this,t),d(this.base,t)},setExtent:function(t,e){var i=this.base;t=f(t)/f(i),e=f(e)/f(i),s.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,i=o[he].call(this);i[0]=d(t,i[0]),i[1]=d(t,i[1]);var n=this._originalScale,r=n[he]();return n.__fixMin&&(i[0]=e(i[0],r[0])),n.__fixMax&&(i[1]=e(i[1],r[1])),i},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=f(t[0])/f(e),t[1]=f(t[1])/f(e),o.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=r.quantity(i),a=t/i*n;for(.5>=a&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[r.round(h(e[0]/n)*n),r.round(c(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(t,e,i){s.niceExtent.call(this,t,e,i);var n=this._originalScale;n.__fixMin=e,n.__fixMax=i}});return i.each([fe,"normalize"],function(t){p[ve][t]=function(e){return e=f(e)/f(this.base),o[t].call(this,e)}}),p[de]=function(){return new p},p}),e(Be,[Ne],function(){function t(e){if("object"==typeof e&&null!==e){var i=e;if(e instanceof Array){i=[];for(var n=0,r=e[pe];r>n;n++)i[n]=t(e[n])}else if(!w(e)&&!M(e)){i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=t(e[a]))}return i}return e}function e(i,n,r){if(!b(n)||!b(i))return r?t(n):i;for(var a in n)if(n.hasOwnProperty(a)){var o=i[a],s=n[a];!b(s)||!b(o)||y(s)||y(o)||M(s)||M(o)||w(s)||w(o)?!r&&a in i||(i[a]=t(n[a],!0)):e(o,s,r)}return i}function i(t,i){for(var n=t[0],r=1,a=t[pe];a>r;r++)n=e(n,t[r],i);return n}function n(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function r(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function a(){return document[se]("canvas")}function o(){return P||(P=E.createCanvas()[oe]("2d")),P}function s(t,e){if(t){if(t[ae])return t[ae](e);for(var i=0,n=t[pe];n>i;i++)if(t[i]===e)return i}return-1}function l(t,e){function i(){}var n=t[ve];i[ve]=e[ve],t[ve]=new i;for(var r in n)t[ve][r]=n[r];t[ve].constructor=t,t.superClass=e}function u(t,e,i){t=ve in t?t[ve]:t,e=ve in e?e[ve]:e,r(t,e,i)}function c(t){return t?typeof t!=re&&typeof t[pe]==ne:void 0}function h(t,e,i){if(t&&e)if(t.forEach&&t.forEach===z)t.forEach(e,i);else if(t[pe]===+t[pe])for(var n=0,r=t[pe];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function d(t,e,i){if(t&&e){if(t.map&&t.map===O)return t.map(e,i);for(var n=[],r=0,a=t[pe];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function f(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===R)return t.reduce(e,i,n);for(var r=0,a=t[pe];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function p(t,e,i){if(t&&e){if(t[le]&&t[le]===k)return t[le](e,i);for(var n=[],r=0,a=t[pe];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function m(t,e,i){if(t&&e)for(var n=0,r=t[pe];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function v(t,e){var i=D.call(arguments,2);return function(){return t.apply(e,i[ie](D.call(arguments)))}}function g(t){var e=D.call(arguments,1);return function(){return t.apply(this,e[ie](D.call(arguments)))}}function y(t){return"[object Array]"===I.call(t)}function x(t){return typeof t===ee}function _(t){return"[object String]"===I.call(t)}function b(t){var e=typeof t;return e===ee||!!t&&"object"==e}function w(t){return!!A[I.call(t)]}function M(t){return t&&1===t.nodeType&&typeof t.nodeName==re}function S(){for(var t=0,e=arguments[pe];e>t;t++)if(null!=arguments[t])return arguments[t]}function T(){return Function.call.apply(D,arguments)}function C(t,e){if(!t)throw new Error(e)}var P,A={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1},I=Object[ve].toString,L=Array[ve],z=L.forEach,k=L[le],D=L.slice,O=L.map,R=L.reduce,E={inherits:l,mixin:u,clone:t,merge:e,mergeAll:i,extend:n,defaults:r,getContext:o,createCanvas:a,indexOf:s,slice:T,find:m,isArrayLike:c,each:h,map:d,reduce:f,filter:p,bind:v,curry:g,isArray:y,isString:_,isObject:b,isFunction:x,isBuildInObject:w,isDom:M,retrieve:S,assert:C,noop:function(){}};return E}),e("echarts/chart/pie/PieSeries",[Ne,"../../data/List",Be,"../../util/model","../../data/helper/completeDimensions","../../component/helper/selectableMixin","../../echarts"],function(t){var e=t("../../data/List"),i=t(Be),n=t("../../util/model"),r=t("../../data/helper/completeDimensions"),a=t("../../component/helper/selectableMixin"),o=t("../../echarts").extendSeriesModel({type:"series.pie",init:function(t){o.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){o.superCall(this,te,t),this.updateSelectedMap(this[J].data)},getInitialData:function(t){var i=r(["value"],t.data),n=new e(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this._data,i=o.superCall(this,"getDataParams",t),n=e.getSum("value");return i.percent=n?+(e.get("value",t)/n*100).toFixed(2):0,i.$vars.push("percent"),i},_defaultLabelLine:function(t){n.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[K],i=t.labelLine[Q];e.show=e.show&&t.label[K].show,i.show=i.show&&t.label[Q].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 i.mixin(o,a),o}),e("echarts/action/createDataSelectAction",[Ne,"../echarts",Be],function(t){var e=t("../echarts"),i=t(Be);return function(t,n){i.each(n,function(i){i[$]="updateView",e[ge](i,function(e,n){var r={};return n[Y]({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[U]();n.each(function(e){var i=n[j](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[Ne],function(){return function(t,e){var i={};e.eachRawSeriesByType(t,function(t){var n=t.getRawData(),r={};if(!e.isSeriesFiltered(t)){var a=t[U]();a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),n.each(function(e){var o=n[X](e),s=r[e],l=null!=s&&a[W](s,"color",!0);if(l)n.setItemVisual(e,"color",l);else{var u=o.get("itemStyle.normal.color")||t.getColorFromPalette(n[j](e),i);n.setItemVisual(e,"color",u),null!=s&&a.setItemVisual(s,"color",u)}})}})}}),e("echarts/chart/pie/pieLayout",[Ne,"../../util/number","./labelLayout",Be],function(t){var e=t("../../util/number"),i=e[q],n=t("./labelLayout"),r=t(Be),a=2*Math.PI,o=Math.PI/180;return function(t,s,l){s.eachSeriesByType(t,function(t){var s=t.get(be),u=t.get("radius");r[Z](u)||(u=[0,u]),r[Z](s)||(s=[s,s]);var c=l[Se](),h=l[Me](),d=Math.min(c,h),f=i(s[0],c),p=i(s[1],h),m=i(u[0],d/2),v=i(u[1],d/2),g=t[U](),y=-t.get("startAngle")*o,x=t.get("minAngle")*o,_=g.getSum("value"),b=Math.PI/(_||g.count())*2,w=t.get("clockwise"),M=t.get("roseType"),S=g.getDataExtent("value");S[0]=0;var T=a,C=0,P=y,A=w?1:-1;if(g.each("value",function(t,i){var n;n="area"!==M?0===_?b:t*b:a/(g.count()||1),x>n?(n=x,T-=x):C+=t;var r=P+A*n;g.setItemLayout(i,{angle:n,startAngle:P,endAngle:r,clockwise:w,cx:f,cy:p,r0:m,r:M?e.linearMap(t,S,[m,v]):v}),P=r},!0),a>T)if(.001>=T){var I=a/g.count();g.each(function(t){var e=g.getItemLayout(t);e.startAngle=y+A*t*I,e.endAngle=y+A*(t+1)*I})}else b=T/C,P=y,g.each("value",function(t,e){var i=g.getItemLayout(e),n=i.angle===x?x:t*b;i.startAngle=P,i.endAngle=P+A*n,P+=n});n(t,v,c,h)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e.findComponents({mainType:"legend"});i&&i[pe]&&e.eachSeriesByType(t,function(t){var e=t[U]();e.filterSelf(function(t){for(var n=e[j](t),r=0;r<i[pe];r++)if(!i[r].isSelected(n))return!1;return!0},this)},this)}}),e("echarts/chart/line/LineSeries",[Ne,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[me]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},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/chart/line/LineView",[Ne,Be,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",H,"../../util/model","./poly","../../view/Chart"],function(t){function e(t,e){if(t[pe]===e[pe]){for(var i=0;i<t[pe];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return typeof t===ne?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function a(t,e){var i=t[F](),n=t.getOtherAxis(i),a=i.onZero?0:n.scale[he]()[0],o=n.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],function(n,l){for(var u,c=e.stackedOn;c&&r(c.get(o,l))===r(n);){u=c;break}var h=[];return h[s]=e.get(i.dim,l),h[1-s]=u?u.get(o,l,!0):a,t.dataToPoint(h)},!0)}function o(t,e,i){var r=n(t[G]("x")),a=n(t[G]("y")),o=t[F]().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=i.get("lineStyle.normal.width")||2,d=i.get("clipOverflow")?h/2:Math.max(u,c);o?(l-=d,c+=2*d):(s-=d,u+=2*d);var f=new v.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(f.shape[o?"width":Pe]=0,v.initProps(f,{shape:{width:u,height:c}},i)),f}function s(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[he](),o=n[he](),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:n.inverse}});return e&&(l.shape.endAngle=-o[0]*s,v.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function l(t,e,i){return"polar"===t.type?s(t,e,i):o(t,e,i)}function u(t,e,i){for(var n=e[F](),r="x"===n.dim||"radius"===n.dim?0:1,a=[],o=0;o<t[pe]-1;o++){var s=t[o+1],l=t[o];a.push(l);var u=[];switch(i){case"end":u[r]=s[r],u[1-r]=l[1-r],a.push(u);break;case we: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){return Math.max(Math.min(t,e[1]),e[0])}function h(t,e){var i=t.getVisual("visualMeta");if(i&&i[pe]&&t.count()){for(var n,r=i[pe]-1;r>=0;r--)if(i[r].dimension<2){n=i[r];break}if(n&&"cartesian2d"===e.type){var a=n.dimension,o=t[V][a],s=t.getDataExtent(o),l=n.stops,u=[];l[0].interval&&l.sort(function(t,e){return t.interval[0]-e.interval[0]});var h=l[0],d=l[l[pe]-1],f=h.interval?c(h.interval[0],s):h.value,p=d.interval?c(d.interval[1],s):d.value,m=p-f;if(0===m)return t[W](0,"color");for(var r=0;r<l[pe];r++)if(l[r].interval){if(l[r].interval[1]===l[r].interval[0])continue;u.push({offset:(c(l[r].interval[0],s)-f)/m,color:l[r].color},{offset:(c(l[r].interval[1],s)-f)/m,color:l[r].color})}else u.push({offset:(l[r].value-f)/m,color:l[r].color});var g=new v.LinearGradient(0,0,0,0,u,(!0)),y=e[G](o),x=y.toGlobalCoord(y[N](f)),_=y.toGlobalCoord(y[N](p));return g[o]=x,g[o+"2"]=_,g}}}var d=t(Be),f=t("../helper/SymbolDraw"),p=t("../helper/Symbol"),m=t("./lineAnimationDiff"),v=t(H),g=t("../../util/model"),y=t("./poly"),x=t("../../view/Chart");return x[me]({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,n,r){var o=t[Re],s=this.group,c=t[U](),f=t[De]("lineStyle.normal"),p=t[De]("areaStyle.normal"),m=c.mapArray(c.getItemLayout,!0),v="polar"===o.type,g=this._coordSys,y=this._symbolDraw,x=this._polyline,_=this._polygon,b=this._lineGroup,w=t.get(B),M=!p.isEmpty(),S=a(o,c),T=t.get("showSymbol"),C=T&&!v&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(c,o),P=this._data;P&&P.eachItemGraphicEl(function(t,e){t.__temp&&(s[E](t),P.setItemGraphicEl(e,null))}),T||y[E](),s.add(b);var A=!v&&t.get("step");x&&g.type===o.type&&A===this._step?(M&&!_?_=this._newPolygon(m,S,o,w):_&&!M&&(b[E](_),_=this._polygon=null),b.setClipPath(l(o,!1,t)),T&&y.updateData(c,C),c.eachItemGraphicEl(function(t){t[R](!0)}),e(this._stackedOnPoints,S)&&e(this._points,m)||(w?this._updateAnimation(c,S,o,r,A):(A&&(m=u(m,o,A),S=u(S,o,A)),x.setShape({points:m}),_&&_.setShape({points:m,stackedOnPoints:S})))):(T&&y.updateData(c,C),A&&(m=u(m,o,A),S=u(S,o,A)),x=this._newPolyline(m,o,w),M&&(_=this._newPolygon(m,S,o,w)),b.setClipPath(l(o,!0,t)));var I=h(c,o)||c.getVisual("color");x.useStyle(d[Oe](f.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"}));var L=t.get("smooth");if(L=i(t.get("smooth")),x.setShape({smooth:L,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),_){var z=c.stackedOn,k=0;if(_.useStyle(d[Oe](p.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel"})),z){var D=z.hostModel;k=i(D.get("smooth"))}_.setShape({smooth:L,stackedOnSmooth:k,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=c,this._coordSys=o,this._stackedOnPoints=S,this._points=m,this._step=A},dispose:function(){},highlight:function(t,e,i,n){var r=t[U](),a=g.queryDataIndex(r,n);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r[O](a);if(!o){var s=r.getItemLayout(a);o=new p(r,a),o[xe]=s,o.setZ(t.get(D),t.get("z")),o[k]=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else x[ve].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[U](),a=g.queryDataIndex(r,n);if(null!=a&&a>=0){var o=r[O](a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group[E](o)):o.downplay())}else x[ve].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup[E](e),e=new y.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup[E](i),i=new y.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(z)[0];return i&&i.isLabelIgnored?d.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n,r){var a=this._polyline,o=this._polygon,s=t.hostModel,l=m(this._data,t,this._stackedOnPoints,e,this._coordSys,i),c=l.current,h=l.stackedOnCurrent,d=l.next,f=l.stackedOnNext;r&&(c=u(l.current,i,r),h=u(l.stackedOnCurrent,i,r),d=u(l.next,i,r),f=u(l.stackedOnNext,i,r)),a.shape.__points=l.current,a.shape.points=c,v.updateProps(a,{shape:{points:d}},s),o&&(o.setShape({points:c,stackedOnPoints:h}),v.updateProps(o,{shape:{points:d,stackedOnPoints:f}},s));for(var p=[],g=l.status,y=0;y<g[pe];y++){var x=g[y].cmd;if("="===x){var _=t[O](g[y].idx1);_&&p.push({el:_,ptIdx:y})}}a.animators&&a.animators[pe]&&a.animators[0].during(function(){for(var t=0;t<p[pe];t++){var e=p[t].el;e.attr(xe,a.shape.__points[p[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup[Ee](),this._symbolDraw[E](!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t[E](i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/echarts",[Ne,L,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","./util/model","zrender",Be,"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","zrender/core/vector"],function(t){function e(t){return function(e,i,n){e=e&&e[I](),te[ve][t].call(this,e,i,n)}}function i(){te.call(this)}function n(t,e,n){function r(t,e){return t.prio-e.prio}n=n||{},typeof e===re&&(e=He[e]),this.id,this.group,this._dom=t,this._zr=Q.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n[Pe]}),this._theme=K.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new O(this),this._coordSysMgr=new N,te.call(this),this._messageCenter=new i,this._initEvents(),this.resize=K.bind(this.resize,this),this._pendingActions=[],ie(Fe,r),ie(Ve,r),this._zr[B].on("frame",this._onframe,this)}function r(t,e,i){var n,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=j.parseFinder(r,e);for(var o=0;o<a[pe];o++){var s=a[o];if(s[t]&&null!=(n=s[t](r,e,i)))return n}}function a(t,e){var i=this._model;i&&i[Y]({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function o(t,e,i){var n=this._api;oe(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),m(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),m(r,a),p(r,a)},this),f(this._zr,e)}function s(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,r=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<n[pe];o++)n[o].__alive=!1;e[i?Y:"eachSeries"](function(t,o){if(i){if(t===w)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var u=G.parseClassType(o.type),c=i?H.getClass(u.main,u.sub):q.getClass(u.sub);if(!c)return;l=new c,l.init(e,this._api),r[s]=l,n.push(l),a.add(l.group)}o.__viewId=s,l.__alive=!0,l.__id=s,l.__model=o},this);for(var o=0;o<n[pe];){var s=n[o];s.__alive?o++:(a[E](s.group),s.dispose(e,this._api),n[b](o,1),delete r[s.__id])}}function l(t,e){oe(Ve,function(i){i.func(t,e)})}function u(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),n=t[U]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function c(t,e){var i=this._api;oe(Fe,function(n){n.isLayout&&n.func(t,i,e)})}function h(t,e){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),oe(Fe,function(n){n.func(t,i,e)})}function d(t,e){var i=this._api;oe(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),m(r,n)},this),oe(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(n){var r=this._chartsMap[n.__viewId];r.__alive=!0,r.render(n,t,i,e),r.group[Ce]=!!n.get(Ce),m(n,r),p(n,r)},this),f(this._zr,t),oe(this._chartsViews,function(e){e.__alive||e[E](t,i)},this)}function f(t,e){var i=t.storage,n=0;i[_](function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!g.node&&i[_](function(t){t.isGroup||(t.useHoverLayer=!0)})}function p(t,e){var i=0;e.group[_](function(t){"group"===t.type||t[k]||i++});var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!g.node;r&&e.group[_](function(t){t.isGroup||(t.progressive=r?Math.floor(i++/n):-1,r&&t[R](!0))});var a=t.get("blendMode")||null;e.group[_](function(t){t.isGroup||t[ye]("blend",a)})}function m(t,e){var i=t.get("z"),n=t.get(D);e.group[_](function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t[D]=n))})}function v(t){function e(t,e){for(var i=0;i<t[pe];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";K.each(Ne,function(o,s){t._messageCenter.on(s,function(o){if(We[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];K.each(qe,function(e){e!==t&&e.group===t.group&&l.push(e)}),e(l,i),oe(l,function(t){t[a]!==n&&t[S](s)}),e(l,r)}})})}var g=t(L),z=t("./model/Global"),O=t("./ExtensionAPI"),N=t("./CoordinateSystem"),V=t("./model/OptionManager"),G=t("./model/Component"),F=t("./model/Series"),H=t("./view/Component"),q=t("./view/Chart"),X=t("./util/graphic"),j=t("./util/model"),Q=t("zrender"),K=t(Be),J=t("zrender/tool/color"),te=t("zrender/mixin/Eventful"),ie=t("zrender/core/timsort"),oe=K.each,se=1e3,ue=5e3,ce=1e3,he=2e3,fe=3e3,xe=4e3,be=5e3,we="__flag_in_main_process",Ae="_hasGradientOrPatternBg",Ie="_optionUpdated";i[ve].on=e("on"),i[ve].off=e("off"),i[ve].one=e("one"),K.mixin(i,te);var Le=n[ve];Le._onframe=function(){this[Ie]&&(this[we]=!0,ze.prepareAndUpdate.call(this),this[we]=!1,this[Ie]=!1)},Le.getDom=function(){return this._dom},Le.getZr=function(){return this._zr},Le.setOption=function(t,e,i){if(this[we]=!0,!this._model||e){var n=new V(this._api),r=this._theme,a=this._model=new z(null,null,r,n);a.init(null,null,r,n)}this._model.setOption(t,Ge),i?this[Ie]=!0:(ze.prepareAndUpdate.call(this),this._zr.refreshImmediately(),this[Ie]=!1),this[we]=!1,this._flushPendingActions()},Le.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Le[De]=function(){return this._model},Le.getOption=function(){return this._model&&this._model.getOption()},Le[Se]=function(){return this._zr[Se]()},Le[Me]=function(){return this._zr[Me]()},Le.getRenderedCanvas=function(t){if(g[A]){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return K.each(i,function(t){t[R](!0)}),e.painter.getRenderedCanvas(t)}},Le.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;oe(e,function(t){i[Y]({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[k]||(n.push(e),e.group[k]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return oe(n,function(t){t.group[k]=!1}),a},Le.getConnectedDataURL=function(t){if(g[A]){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(We[e]){var a=r,o=r,s=-r,l=-r,u=[],c=t&&t.pixelRatio||1;K.each(qe,function(r){if(r.group===e){var c=r.getRenderedCanvas(K.clone(t)),h=r.getDom().getBoundingClientRect();a=i(h.left,a),o=i(h.top,o),s=n(h.right,s),l=n(h[_e],l),u.push({dom:c,left:h.left,top:h.top})}}),a*=c,o*=c,s*=c,l*=c;var h=s-a,d=l-o,f=K.createCanvas();f.width=h,f[Pe]=d;var p=Q.init(f);return oe(u,function(t){var e=new X.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});p.add(e)}),p.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},Le.convertToPixel=K.curry(r,"convertToPixel"),Le.convertFromPixel=K.curry(r,"convertFromPixel"),Le.containPixel=function(t,e){var i,n=this._model;
      return t=j.parseFinder(n,t),K.each(t,function(t,n){n[ae]("Models")>=0&&K.each(t,function(t){var r=t[Re];if(r&&r.containPoint)i|=!!r.containPoint(e);else if("seriesModels"===n){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(i|=a.containPoint(e,t))}},this)},this),!!i},Le.getVisual=function(t,e){var i=this._model;t=j.parseFinder(i,t,{defaultMainType:"series"});var n=t.seriesModel,r=n[U](),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty(P)?r.indexOfRawIndex(t[P]):null;return null!=a?r[W](a,e):r.getVisual(e)};var ze={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),n[de](this._model,this._api),l.call(this,e,i),u.call(this,e),n[$](e,i),h.call(this,e,t),d.call(this,e,t);var a=e.get("backgroundColor")||"transparent",o=r.painter;if(o.isSingleCanvas&&o.isSingleCanvas())r.configLayer(0,{clearColor:a});else{if(!g[A]){var s=J.parse(a);a=J.stringify(s,"rgb"),0===s[3]&&(a="transparent")}a[C]||a.image?(r.configLayer(0,{clearColor:a}),this[Ae]=!0,this._dom.style.background="transparent"):(this[Ae]&&r.configLayer(0,{clearColor:null}),this[Ae]=!1,this._dom.style.background=a)}}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[U]().clearAllVisual()}),h.call(this,e,t),o.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[U]().clearAllVisual()}),h.call(this,e,t),o.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(c.call(this,e,t),o.call(this,"updateLayout",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;s.call(this,"component",e),s.call(this,"chart",e),ze[$].call(this,t)}};Le.resize=function(t){this[we]=!0,this._zr.resize(t);var e=this._model&&this._model.resetOption("media");ze[e?"prepareAndUpdate":$].call(this),this._loadingFX&&this._loadingFX.resize(),this[we]=!1,this._flushPendingActions()},Le.showLoading=function(t,e){if(K[T](t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Ze[t]){var i=Ze[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},Le.hideLoading=function(){this._loadingFX&&this._zr[E](this._loadingFX),this._loadingFX=null},Le.makeActionFromEvent=function(t){var e=K[me]({},t);return e.type=Ne[t.type],e},Le[S]=function(t,e){var i=Ee[t.type];if(i){var n=i.actionInfo,r=n[$]||$;if(this[we])return void this._pendingActions.push(t);this[we]=!0;var a=[t],o=!1;t.batch&&(o=!0,a=K.map(t.batch,function(e){return e=K[Oe](K[me]({},e),t),e.batch=null,e}));for(var s,l=[],u="highlight"===t.type||"downplay"===t.type,c=0;c<a[pe];c++){var h=a[c];s=i.action(h,this._model),s=s||K[me]({},h),s.type=n.event||s.type,l.push(s),u&&ze[r].call(this,h)}"none"===r||u||(this[Ie]?(ze.prepareAndUpdate.call(this,t),this[Ie]=!1):ze[r].call(this,t)),s=o?{type:n.event||t.type,batch:l}:l[0],this[we]=!1,!e&&this._messageCenter[M](s.type,s),this._flushPendingActions()}},Le._flushPendingActions=function(){for(var t=this._pendingActions;t[pe];){var e=t.shift();this[S](e)}},Le.on=e("on"),Le.off=e("off"),Le.one=e("one");var ke=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Le._initEvents=function(){oe(ke,function(t){this._zr.on(t,function(e){var i,n=this[De](),r=e[Te];if("globalout"===t)i={};else if(r&&null!=r[P]){var a=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=a&&a.getDataParams(r[P],r.dataType)||{}}else r&&r.eventData&&(i=K[me]({},r.eventData));i&&(i.event=e,i.type=t,this[M](t,i))},this)},this),oe(Ne,function(t,e){this._messageCenter.on(e,function(t){this[M](e,t)},this)},this)},Le.isDisposed=function(){return this._disposed},Le.clear=function(){this.setOption({series:[]},!0)},Le.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;oe(this._componentsViews,function(i){i.dispose(e,t)}),oe(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete qe[this.id]}},K.mixin(n,te);var Ee=[],Ne={},Ve=[],Ge=[],Fe=[],He={},Ze={},qe={},We={},Xe=new Date-0,je=new Date-0,Ue="_echarts_instance_",Ye={version:"3.3.1",dependencies:{zrender:"3.2.1"}};Ye.init=function(t,e,i){var r=new n(t,e,i);return r.id="ec_"+Xe++,qe[r.id]=r,t.setAttribute&&t.setAttribute(Ue,r.id),v(r),r},Ye.connect=function(t){if(K[Z](t)){var e=t;t=null,K.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+je++,K.each(e,function(e){e.group=t})}return We[t]=!0,t},Ye.disConnect=function(t){We[t]=!1},Ye.dispose=function(t){K.isDom(t)?t=Ye.getInstanceByDom(t):typeof t===re&&(t=qe[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},Ye.getInstanceByDom=function(t){var e=t.getAttribute(Ue);return qe[e]},Ye.getInstanceById=function(t){return qe[t]},Ye.registerTheme=function(t,e){He[t]=e},Ye.registerPreprocessor=function(t){Ge.push(t)},Ye.registerProcessor=function(t,e){typeof t===ee&&(e=t,t=se),Ve.push({prio:t,func:e})},Ye[ge]=function(t,e,i){typeof e===ee&&(i=e,e="");var n=K[T](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[I](),e=t.event,Ee[n]||(Ee[n]={action:i,actionInfo:t}),Ne[e]=n},Ye.registerCoordinateSystem=function(t,e){N.register(t,e)},Ye.registerLayout=function(t,e){typeof t===ee&&(e=t,t=ce),Fe.push({prio:t,func:e,isLayout:!0})},Ye.registerVisual=function(t,e){typeof t===ee&&(e=t,t=fe),Fe.push({prio:t,func:e})},Ye.registerLoading=function(t,e){Ze[t]=e};var $e=G.parseClassType;return Ye.extendComponentModel=function(t,e){var i=G;if(e){var n=$e(e);i=G.getClass(n.main,n.sub,!0)}return i[me](t)},Ye.extendComponentView=function(t,e){var i=H;if(e){var n=$e(e);i=H.getClass(n.main,n.sub,!0)}return i[me](t)},Ye.extendSeriesModel=function(t,e){var i=F;if(e){e="series."+e[x]("series.","");var n=$e(e);i=F.getClass(n.main,n.sub,!0)}return i[me](t)},Ye.extendChartView=function(t,e){var i=q;if(e){e[x]("series.","");var n=$e(e);i=q.getClass(n.main,!0)}return i[me](t)},Ye.setCanvasCreator=function(t){K.createCanvas=t},Ye.registerVisual(he,t("./visual/seriesColor")),Ye.registerPreprocessor(t("./preprocessor/backwardCompat")),Ye.registerLoading("default",t("./loading/default")),Ye[ge]({type:"highlight",event:"highlight",update:"highlight"},K.noop),Ye[ge]({type:"downplay",event:"downplay",update:"downplay"},K.noop),Ye.List=t("./data/List"),Ye.Model=t("./model/Model"),Ye.graphic=t("./util/graphic"),Ye[ne]=t("./util/number"),Ye.format=t("./util/format"),Ye.matrix=t("zrender/core/matrix"),Ye.vector=t("zrender/core/vector"),Ye.color=t("zrender/tool/color"),Ye.util={},oe(["map","each",le,ae,y,"reduce",le,"bind","curry",Z,"isString",T,"isFunction",me,Oe],function(t){Ye.util[t]=K[t]}),Ye.PRIORITY={PROCESSOR:{FILTER:se,STATISTIC:ue},VISUAL:{LAYOUT:ce,GLOBAL:he,CHART:fe,COMPONENT:xe,BRUSH:be}},Ye}),e("echarts/visual/symbol",[Ne],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[U](),a=t.get("symbol")||e,o=t.get("symbolSize");r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===ee&&r.each(function(e){var i=t.getRawValue(e),n=t.getDataParams(e);r.setItemVisual(e,"symbolSize",o(i,n))}),r.each(function(t){var e=r[X](t),i=e[g]("symbol",!0),n=e[g]("symbolSize",!0);null!=i&&r.setItemVisual(t,"symbol",i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}}),e("echarts/layout/points",[Ne],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[U](),i=t[Re];if(i){var n=i[V];"singleAxis"===i.type?e.each(n[0],function(t,n){e.setItemLayout(n,isNaN(t)?[NaN,NaN]:i.dataToPoint(t))}):e.each(n,function(t,n,r){e.setItemLayout(r,isNaN(t)||isNaN(n)?[NaN,NaN]:i.dataToPoint([t,n]))},!0)}})}}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,i=0,n=0;n<t[pe];n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t[pe];i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t[pe];i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t[pe];i++)t[i]<e&&(e=t[i]);return e},nearest:function(t){return t[0]}},e=function(t){return Math.round(t[pe]/2)};return function(i,n){n.eachSeriesByType(i,function(i){var n=i[U](),r=i.get("sampling"),a=i[Re];if("cartesian2d"===a.type&&r){var o=a[F](),s=a.getOtherAxis(o),l=o[he](),u=l[1]-l[0],c=Math.round(n.count()/u);if(c>1){var h;typeof r===re?h=t[r]:typeof r===ee&&(h=r),h&&(n=n.downSample(s.dim,1/c,h,e),i.setData(n))}}},this)}}),e("echarts/util/graphic",[Ne,Be,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix","zrender/core/vector","zrender/graphic/Gradient","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","zrender/core/BoundingRect"],function(t){function e(t){return null!=t&&"none"!=t}function i(t){return typeof t===re?T.lift(t,-.1):t}function n(t){if(t.__hoverStlDirty){var n=t.style[m],r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?i(r):null),a[m]=a[m]||(e(n)?i(n):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||(n(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t[ye](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[ye](e),t.z2-=1),t.__isHover=!1}}function o(t){"group"===t.type?t[_](function(t){"group"!==t.type&&r(t)}):r(t)}function s(t){"group"===t.type?t[_](function(t){"group"!==t.type&&a(t)}):a(t)}function l(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&n(t)}function u(){!this.__isEmphasis&&o(this)}function c(){!this.__isEmphasis&&s(this)}function h(){this.__isEmphasis=!0,o(this)}function y(){this.__isEmphasis=!1,s(this)}function x(t,e,i,n,r,a){typeof r===ee&&(a=r,r=null);var o=n&&(n.ifEnableAnimation?n.ifEnableAnimation():n[g](B));if(o){var s=t?"Update":"",l=n&&n[g]("animationDuration"+s),u=n&&n[g]("animationEasing"+s),c=n&&n[g]("animationDelay"+s);typeof c===ee&&(c=c(r)),l>0?e.animateTo(i,l,c||0,u,a):(e.attr(i),a&&a())}else e.attr(i),a&&a()}var b=t(Be),w=t("zrender/tool/path"),M=Math.round,S=t("zrender/graphic/Path"),T=t("zrender/tool/color"),C=t("zrender/core/matrix"),A=t("zrender/core/vector"),I=(t("zrender/graphic/Gradient"),{});return I.Group=t("zrender/container/Group"),I.Image=t("zrender/graphic/Image"),I.Text=t("zrender/graphic/Text"),I.Circle=t("zrender/graphic/shape/Circle"),I.Sector=t("zrender/graphic/shape/Sector"),I.Ring=t("zrender/graphic/shape/Ring"),I.Polygon=t("zrender/graphic/shape/Polygon"),I.Polyline=t("zrender/graphic/shape/Polyline"),I.Rect=t("zrender/graphic/shape/Rect"),I.Line=t("zrender/graphic/shape/Line"),I.BezierCurve=t("zrender/graphic/shape/BezierCurve"),I.Arc=t("zrender/graphic/shape/Arc"),I.CompoundPath=t("zrender/graphic/CompoundPath"),I.LinearGradient=t("zrender/graphic/LinearGradient"),I.RadialGradient=t("zrender/graphic/RadialGradient"),I.BoundingRect=t("zrender/core/BoundingRect"),I.extendShape=function(t){return S[me](t)},I.extendPath=function(t,e){return w.extendFromString(t,e)},I.makePath=function(t,e,i,n){var r=w.createFromString(t,e),a=r[Ae]();if(i){var o=a.width/a[Pe];if(n===be){var s,l=i[Pe]*o;l<=i.width?s=i[Pe]:(l=i.width,s=l/o);var u=i.x+i.width/2,c=i.y+i[Pe]/2;i.x=u-l/2,i.y=c-s/2,i.width=l,i[Pe]=s}this.resizePath(r,i)}return r},I.mergePath=w.mergePath,I.resizePath=function(t,e){if(t[v]){var i=t[Ae](),n=i.calculateTransform(e);t[v](n)}},I.subPixelOptimizeLine=function(t){var e=I.subPixelOptimize,i=t.shape,n=t.style.lineWidth;return M(2*i.x1)===M(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),M(2*i.y1)===M(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},I.subPixelOptimizeRect=function(t){var e=I.subPixelOptimize,i=t.shape,n=t.style.lineWidth,r=i.x,a=i.y,o=i.width,s=i[Pe];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[Pe]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},I.subPixelOptimize=function(t,e,i){var n=M(2*t);return(n+M(e))%2===0?n/2:(n+(i?1:-1))/2},I.setHoverStyle=function(t,e){"group"===t.type?t[_](function(t){"group"!==t.type&&l(t,e)}):l(t,e),t.on("mouseover",u).on("mouseout",c),t.on(Q,h).on(K,y)},I.setText=function(t,e,i){var n=e[g](xe)||p,r=n[ae](p)>=0?"white":i,a=e[De](ke);b[me](t,{textDistance:e[g]("distance")||5,textFont:a[Le](),textPosition:n,textFill:a[Ie]()||r})},I.updateProps=function(t,e,i,n,r){x(!0,t,e,i,n,r)},I.initProps=function(t,e,i,n,r){x(!1,t,e,i,n,r)},I.getTransform=function(t,e){for(var i=C.identity([]);t&&t!==e;)C.mul(i,t.getLocalTransform(),i),t=t[f];return i},I[v]=function(t,e,i){return i&&(e=C.invert([],e)),A[v]([],t,e)},I.transformDirection=function(t,e,i){var n=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?-n:"right"===t?n:0,"top"===t?-r:t===_e?r:0];return a=I[v](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?_e:"top"},I.groupTransition=function(t,e,i){function n(t){var e={};return t[_](function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:A.clone(t[xe]),rotation:t[d]};return t.shape&&(e.shape=b[me]({},t.shape)),e}if(t&&e){var a=n(t);e[_](function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=r(t);t.attr(r(e)),I.updateProps(t,n,i,t[P])}}})}},I}),e("echarts/coord/cartesian/Grid",[Ne,"exports","../../util/layout","../../coord/axisHelper",Be,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e){return t.findGridModel()===e}function i(t){var e,i=t.model,n=i[h](),r=1,a=n[pe];a>40&&(r=Math.ceil(a/40));for(var o=0;a>o;o+=r)if(!t.isLabelIgnored(o)){var s=i.getTextRect(n[o]);e?e.union(s):e=s}return e}function n(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function r(t,e){var i=t[he](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function a(t){return u.map(y,function(e){var i=t.getReferringComponents(e)[0];return i})}function o(t){return"cartesian2d"===t.get(Re)}var s=t("../../util/layout"),l=t("../../coord/axisHelper"),u=t(Be),d=t("./Cartesian2D"),f=t("./Axis2D"),p=u.each,m=l.ifAxisCrossZero,v=l.niceScaleExtent;t("./GridModel");var g=n[ve];g.type="grid",g.getRect=function(){return this._rect},g[$]=function(t,e){function i(t){var e=n[t];for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r&&(r.type===c||!m(r)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this._model),p(n.x,function(t){v(t,t.model)}),p(n.y,function(t){v(t,t.model)}),p(n.x,function(t){i("y")&&(t.onZero=!1)}),p(n.y,function(t){i("x")&&(t.onZero=!1)}),this.resize(this._model,e)},g.resize=function(t,e){function n(){p(o,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a[Pe]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),r(t,e?a.x:a.y)})}var a=s.getLayoutRect(t.getBoxLayoutParams(),{width:e[Se](),height:e[Me]()});this._rect=a;var o=this._axesList;n(),t.get("containLabel")&&(p(o,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?Pe:"width",r=t.model.get("axisLabel.margin");a[n]-=e[n]+r,"top"===t[xe]?a.y+=e[Pe]+r:"left"===t[xe]&&(a.x+=e.width+r)}}}),n())},g[G]=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},g.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}for(var n=0,r=this._coordsList;n<r[pe];n++)if(r[n][G]("x").index===t||r[n][G]("y").index===e)return r[n]},g.convertToPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis[N](i)):null},g.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},g._findConvertTarget=function(t,e){var i,n,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)i=r[Re],u[ae](l,i)<0&&(i=null);else if(a&&o)i=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)n=this[G]("x",a.componentIndex);else if(o)n=this[G]("y",o.componentIndex);else if(s){var c=s[Re];c===this&&(i=this._coordsList[0])}return{cartesian:i,axis:n}},g.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},g._initCartesian=function(t,i){function n(n){return function(s,u){if(e(s,t,i)){var h=s.get(xe);"x"===n?"top"!==h&&h!==_e&&(h=_e,r[h]&&(h="top"===h?_e:"top")):"left"!==h&&"right"!==h&&(h="left",r[h]&&(h="left"===h?"right":"left")),r[h]=!0;var d=new f(n,l.createScaleByModel(s),[0,0],s.get("type"),h),p=d.type===c;d.onBand=p&&s.get("boundaryGap"),d.inverse=s.get("inverse"),d.onZero=s.get("axisLine.onZero"),s.axis=d,d.model=s,d.grid=this,d.index=u,this._axesList.push(d),a[n][u]=d,o[n]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},o={x:0,y:0};return i[Y]("xAxis",n("x"),this),i[Y]("yAxis",n("y"),this),o.x&&o.y?(this._axesMap=a,void p(a.x,function(t,e){p(a.y,function(i,n){var r="x"+e+"y"+n,a=new d(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},g._updateScale=function(t,i){function n(t,e,i){p(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==z))})}u.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(r){if(o(r)){var s=a(r,t),l=s[0],u=s[1];if(!e(l,i,t)||!e(u,i,t))return;var c=this.getCartesian(l.componentIndex,u.componentIndex),h=r[U](),d=c[G]("x"),f=c[G]("y");"list"===h.type&&(n(h,d,r),n(h,f,r))}},this)};var y=["xAxis","yAxis"];return n[de]=function(t,e){var i=[];return t[Y]("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o.resize(r,e),r[Re]=o,i.push(o)}),t.eachSeries(function(e){if(o(e)){var i=a(e,t),n=i[0],r=i[1],s=n.findGridModel(),l=s[Re];e[Re]=l.getCartesian(n.componentIndex,r.componentIndex)}}),i},n[V]=d[ve][V],t("../../CoordinateSystem").register("cartesian2d",n),n}),e("echarts/util/layout",[Ne,Be,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l[xe],f=l[Ae](),p=e.childAt(u+1),m=p&&p[Ae]();if("horizontal"===t){var v=f.width+(m?-m.x+f.x:0);c=a+v,c>n||l.newline?(a=0,c=v,o+=s+i,s=f[Pe]):s=Math.max(s,f[Pe])}else{var g=f[Pe]+(m?-m.y+f.y:0);h=o+g,h>r||l.newline?(a+=s+i,o=0,h=g,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=c+i:o=h+i)})}var i=t(Be),n=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r[q],s=i.each,l={},u=["left","right","top",_e,"width",Pe];return l.box=e,l.vbox=i.curry(e,"vertical"),l.hbox=i.curry(e,"horizontal"),l.getAvailableSize=function(t,e,i){var n=e.width,r=e[Pe],s=o(t.x,n),l=o(t.y,r),u=o(t.x2,n),c=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=a.normalizeCssArray(i||0),{width:Math.max(u-s-i[1]-i[3],0),height:Math.max(c-l-i[0]-i[2],0)}},l.getLayoutRect=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[Pe],l=o(t.left,r),u=o(t.top,s),c=o(t.right,r),h=o(t[_e],s),d=o(t.width,r),f=o(t[Pe],s),p=i[2]+i[0],m=i[1]+i[3],v=t.aspect;switch(isNaN(d)&&(d=r-c-m-l),isNaN(f)&&(f=s-h-p-u),isNaN(d)&&isNaN(f)&&(v>r/s?d=.8*r:f=.8*s),null!=v&&(isNaN(d)&&(d=v*f),isNaN(f)&&(f=d/v)),isNaN(l)&&(l=r-c-d-m),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case be:l=r/2-d/2-i[3];break;case"right":l=r-d-m}switch(t.top||t[_e]){case we:case be:u=s/2-f/2-i[0];break;case _e:u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=r-l-(c||0)),isNaN(f)&&(f=s-u-(h||0));var g=new n(l+i[3],u+i[0],d,f);return g.margin=i,g},l.positionGroup=function(t,e,n,r){var a=t[Ae]();e=i[me](i.clone(e),{width:a.width,height:a[Pe]}),e=l.getLayoutRect(e,n,r),t.attr(xe,[e.x-a.x,e.y-a.y])},l.mergeLayoutParam=function(t,e,n){function r(i){var r={},l=0,u={},c=0,h=n.ignoreSize?1:2;if(s(i,function(e){u[e]=t[e]}),s(i,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 d=0;d<i[pe];d++){var f=i[d];if(!a(r,f)&&a(t,f)){r[f]=t[f];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,i){s(t,function(t){e[t]=i[t]})}!i[T](n)&&(n={});var u=["width","left","right"],c=[Pe,"top",_e],h=r(u),d=r(c);l(u,t,h),l(c,t,d)},l.getLayoutParams=function(t){return l.copyLayoutParams({},t)},l.copyLayoutParams=function(t,e){return e&&t&&s(u,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t},l}),e("echarts/component/axis",[Ne,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/component/legend/LegendModel",[Ne,Be,"../../model/Model","../../echarts"],function(t){var e=t(Be),i=t("../../model/Model"),n=t("../../echarts").extendComponentModel({type:"legend",dependencies:[w],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){n.superCall(this,te,t)},optionUpdated:function(){this._updateData(this[l]);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t[pe];i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var n=e.map(this.get("data")||[],function(t){return(typeof t===re||typeof t===ne)&&(t={name:t}),new i(t,this,this[l])},this);this._data=n;var r=e.map(t.getSeries(),function(t){return t.name});t.eachSeries(function(t){if(t.legendDataProvider){var e=t.legendDataProvider();r=r[ie](e.mapArray(e[j]))}}),this._availableNames=r},getData:function(){return this._data},select:function(t){var i=this[J].selected,n=this.get("selectedMode");if("single"===n){var r=this._data;e.each(r,function(t){i[t.get("name")]=!1})}i[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this[J].selected[t]=!1)},toggleSelected:function(t){var e=this[J].selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[J].selected;return!(i.hasOwnProperty(t)&&!i[t])&&e[ae](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 n}),e("echarts/component/legend/legendAction",[Ne,"../../echarts",Be],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i[Y]("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[U]();n.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a[e]=e in a?a[e]&&n:n}})}),{name:e.name,selected:a}}var i=t("../../echarts"),n=t(Be);i[ge]("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i[ge]("legendSelect","legendselected",n.curry(e,"select")),i[ge]("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[pe]&&t.filterSeries(function(t){for(var i=0;i<e[pe];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/component/legend/LegendView",[Ne,Be,"../../util/symbol",H,"../helper/listComponent","../../echarts"],function(t){function e(t,e){e[S]({type:"legendToggleSelect",name:t})}function i(t,e,i){var n=i.getZr().storage.getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i[S]({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){var n=i.getZr().storage.getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i[S]({type:"downplay",seriesName:t.name,name:e})}var r=t(Be),a=t("../../util/symbol"),o=t(H),s=t("../helper/listComponent"),l=r.curry;return t("../../echarts").extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,u){var c=this.group;if(c[Ee](),t.get("show")){var h=t.get("selectedMode"),d=t.get("align");"auto"===d&&(d="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var f={};r.each(t[U](),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(!f[s])if(p){var m=p[U](),v=m.getVisual("color");typeof v===ee&&(v=v(p.getDataParams(0)));var g=m.getVisual("legendSymbol")||"roundRect",y=m.getVisual("symbol"),x=this._createItem(s,r,t,g,y,d,v,h);x.on("click",l(e,s,u)).on("mouseover",l(i,p,null,u)).on("mouseout",l(n,p,null,u)),f[s]=!0}else a.eachRawSeries(function(a){if(!f[s]&&a.legendDataProvider){var o=a.legendDataProvider(),c=o.indexOfName(s);if(0>c)return;var p=o[W](c,"color"),m="roundRect",v=this._createItem(s,r,t,m,null,d,p,h);v.on("click",l(e,s,u)).on("mouseover",l(i,a,s,u)).on("mouseout",l(n,a,s,u)),f[s]=!0}},this)},this),s.layout(c,t,u),s.addBackground(c,t)}},_createItem:function(t,e,i,n,s,l,u,c){var h=i.get("itemWidth"),d=i.get("itemHeight"),f=i.get("inactiveColor"),p=i.isSelected(t),m=new o.Group,v=e[De](ke),g=e.get("icon"),y=e[De]("tooltip"),_=y.parentModel;if(n=g||n,m.add(a.createSymbol(n,0,0,h,d,p?u:f)),!g&&s&&(s!==n||"none"==s)){var b=.8*d;"none"===s&&(s="circle"),m.add(a.createSymbol(s,(h-b)/2,(d-b)/2,b,b,p?u:f))}var w="left"===l?h+5:-5,M=l,S=i.get("formatter"),T=t;typeof S===re&&S?T=S[x]("{name}",t):typeof S===ee&&(T=S(t));var C=new o.Text({style:{text:T,x:w,y:d/2,fill:p?v[Ie]():f,textFont:v[Le](),textAlign:M,textVerticalAlign:"middle"}});m.add(C);var P=new o.Rect({shape:m[Ae](),invisible:!0,tooltip:y.get("show")?r[me]({content:t,formatter:_.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},y[J]):null});return m.add(P),m.eachChild(function(t){t[Ce]=!0}),P[Ce]=!c,this.group.add(m),o.setHoverStyle(m),m}})}),e("echarts/component/tooltip/TooltipModel",[Ne,"../../echarts"],function(t){t("../../echarts").extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!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/tooltip/TooltipView",[Ne,"./TooltipContent",H,Be,"../../util/format","../../util/number","../../util/model",L,"../../model/Model","../../echarts"],function(t){function e(t,e){if(!t||!e)return!1;var i=_.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function i(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function n(t,e,i,n){return{x:t,y:e,width:i,height:n}}function r(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function a(t,e,i,n,r){var a=i.clientWidth,o=i.clientHeight,s=20;return t+a+s>n?t-=a+s:t+=s,e+o+s>r?e-=o+s:e+=s,[t,e]}function u(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,u=e[Pe];switch(t){case p:o=e.x+l/2-n/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case _e:o=e.x+l/2-n/2,s=e.y+u+a;break;case"left":o=e.x-n-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 h(t,e,i,n,r,l,c){var h=c[Se](),d=c[Me](),f=l&&l[Ae]().clone();if(l&&f[v](l[s]),typeof t===ee&&(t=t([e,i],r,n.el,f)),y[Z](t))e=T(t[0],h),i=T(t[1],d);else if(typeof t===re&&l){var p=u(t,f,n.el);e=p[0],i=p[1]}else{var p=a(e,i,n.el,h,d);e=p[0],i=p[1]}n[o](e,i)}function d(t){var e=t[Re],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"singleAxis"!==e.type||"item"===i)}var f=t("./TooltipContent"),g=t(H),y=t(Be),x=t("../../util/format"),_=t("../../util/number"),b=t("../../util/model"),T=_[q],C=t(L),A=t("../../model/Model");t("../../echarts").extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!C.node){var i=new f(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,i){if(!C.node){this.group[Ee](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[$](),n.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("mousemove",this._mousemove),s.off("mouseout",this._hide),s.off("globalout",this._hide),"click"===a?s.on("click",this._tryShow,this):"mousemove"===a&&(s.on("mousemove",this._mousemove,this),s.on("mouseout",this._hide,this),s.on("globalout",this._hide,this))}},_mousemove:function(t){var e=this._tooltipModel.get("showDelay"),i=this;clearTimeout(this._showTimeout),e>0?this._showTimeout=setTimeout(function(){i._tryShow(t)},e):this._tryShow(t)},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,i=t.seriesIndex,n=e.getSeriesByIndex(i),r=this._api;if(null==t.x||null==t.y){if(n||e.eachSeries(function(t){d(t)&&!n&&(n=t)}),n){var a=n[U](),o=b.queryDataIndex(a,t);if(null==o||y[Z](o))return;var l,u,c=a[O](o),h=n[Re];if(n.getTooltipPosition){var f=n.getTooltipPosition(o)||[];l=f[0],u=f[1]}else if(h&&h.dataToPoint){var f=h.dataToPoint(a.getValues(y.map(h[V],function(t){return n.coordDimToDataDim(t)[0]}),o,!0));l=f&&f[0],u=f&&f[1]}else if(c){var p=c[Ae]().clone();p[v](c[s]),l=p.x+p.width/2,u=p.y+p[Pe]/2}null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:t[xe],target:c,event:{}})}}else{var c=r.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,position:t[xe],target:c,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var i={};return e.eachSeries(function(t){if(d(t)){var e,n,r=t[Re];"cartesian2d"===r.type?(e=r[F](),n=e.dim+e.index):"singleAxis"===r.type?(e=r[G](),n=e.dim+e.type):(e=r[F](),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n][w].push(t)}},this),i},_tryShow:function(t){var e=t[Te],i=this._tooltipModel,n=i.get(M),r=this._ecModel,a=this._api;if(i)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e[P]){var o=e.dataModel||r.getSeriesByIndex(e.seriesIndex),s=e[P],l=o[U]()[X](s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,e.dataType,t)),a[S]({type:"showTip",from:this.uid,dataIndexInside:e[P],seriesIndex:e.seriesIndex})}else if(e&&e.tooltip){var u=e.tooltip;if(typeof u===re){var c=u;u={content:c,formatter:c}}var h=new A(u,i),d=h.get("content"),f=Math.random();this._showTooltipContent(h,d,h.get("formatterParams")||{},f,t.offsetX,t.offsetY,t[xe],e,a)}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),"cross"===i.get("axisPointer.type")&&a[S]({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,i,n){
          var r=t[De]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[Te];if(o&&null!=o[P]){var s=i.getSeriesByIndex(o.seriesIndex),l=o[P];this._showItemTooltipContent(s,l,o.dataType,n)}}this._showAxisPointer();var u=!0;y.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,o=i[0],s=[n.offsetX,n.offsetY];if(!o.containPoint(s))return void this._hideAxisPointer(o.name);u=!1;var l=o[V],c=o.pointToData(s,!0);s=o.dataToPoint(c);var h=o[F](),d=r.get("axis");"auto"===d&&(d=h.dim);var f=!1,p=this._lastHover;if("cross"===a)e(p.data,c)&&(f=!0),p.data=c;else{var m=y[ae](l,d);p.data===c[m]&&(f=!0),p.data=c[m]}"cartesian2d"!==o.type||f?"polar"!==o.type||f?"singleAxis"!==o.type||f||this._showSinglePointer(r,o,d,s):this._showPolarPointer(r,o,d,s):this._showCartesianPointer(r,o,d,s),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(o,t[w],s,c,f,n[xe])},this),this._tooltipModel.get("show")||this._hideAxisPointer(),u&&this._hide()},_showCartesianPointer:function(t,e,r,a){function o(n,r,a){var o="x"===n?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),s=l._getPointerElement(e,t,n,o);g.subPixelOptimizeLine({shape:o,style:s.style}),d?g.updateProps(s,{shape:o},t):s.attr({shape:o})}function s(i,r,a){var o=e[G](i),s=o.getBandWidth(),u=a[1]-a[0],c="x"===i?n(r[0]-s/2,a[0],s,u):n(a[0],r[1]-s/2,u,s),h=l._getPointerElement(e,t,i,c);d?g.updateProps(h,{shape:c},t):h.attr({shape:c})}var l=this,u=t.get("type"),h=e[F](),d="cross"!==u&&h.type===c&&h.getBandWidth()>20;if("cross"===u)o("x",a,e[G]("y").getGlobalExtent()),o("y",a,e[G]("x").getGlobalExtent()),this._updateCrossText(e,a,t);else{var f=e[G]("x"===r?"y":"x"),p=f.getGlobalExtent();"cartesian2d"===e.type&&("line"===u?o:s)(r,a,p)}},_showSinglePointer:function(t,e,n,r){function a(n,r,a){var s=e[G](),u=s.orient,c="horizontal"===u?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),h=o._getPointerElement(e,t,n,c);l?g.updateProps(h,{shape:c},t):h.attr({shape:c})}var o=this,s=t.get("type"),l="cross"!==s&&e[F]().type===c,u=e.getRect(),h=[u.y,u.y+u[Pe]];a(n,r,h)},_showPolarPointer:function(t,e,n,a){function o(n,r,a){var o,s=e.pointToCoord(r);if("angle"===n){var u=e.coordToPoint([a[0],s[1]]),c=e.coordToPoint([a[1],s[1]]);o=i(u[0],u[1],c[0],c[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var h=l._getPointerElement(e,t,n,o);f?g.updateProps(h,{shape:o},t):h.attr({shape:o})}function s(i,n,a){var o,s=e[G](i),u=s.getBandWidth(),c=e.pointToCoord(n),h=Math.PI/180;o="angle"===i?r(e.cx,e.cy,a[0],a[1],(-c[1]-u/2)*h,(-c[1]+u/2)*h):r(e.cx,e.cy,c[0]-u/2,c[0]+u/2,0,2*Math.PI);var d=l._getPointerElement(e,t,i,o);f?g.updateProps(d,{shape:o},t):d.attr({shape:o})}var l=this,u=t.get("type"),h=e.getAngleAxis(),d=e.getRadiusAxis(),f="cross"!==u&&e[F]().type===c;if("cross"===u)o("angle",a,d[he]()),o("radius",a,h[he]()),this._updateCrossText(e,a,t);else{var p=e[G]("radius"===n?"angle":"radius"),m=p[he]();("line"===u?o:s)(n,a,m)}},_updateCrossText:function(t,e,i){var n=i[De]("crossStyle"),r=n[De](ke),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new g.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(o));var s=t.pointToData(e),l=t[V];s=y.map(s,function(e,i){var n=t[G](l[i]);return e=n.type===c||"time"===n.type?n.scale[ue](e):x.addCommas(e.toFixed(n.getPixelPrecision()))}),o[ye]({fill:r[Ie]()||n.get("color"),textFont:r[Le](),text:s.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o[D]=a.get(D)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),o=r.get(D),s=this._axisPointers,l=t.name;if(s[l]=s[l]||{},s[l][i])return s[l][i];var u=e.get("type"),c=e[De](u+"Style"),h="shadow"===u,d=c[h?"getAreaStyle":"getLineStyle"](),f="polar"===t.type?h?"Sector":"radius"===i?"Circle":"Line":h?"Rect":"Line";h?d[m]=null:d.fill=null;var p=s[l][i]=new g[f]({style:d,z:a,zlevel:o,silent:!0,shape:n});return this.group.add(p),p},_dispatchAndShowSeriesTooltipContent:function(t,e,i,n,r,a){var o=this._tooltipModel,s=t[F](),l="x"===s.dim||"radius"===s.dim?0:1,u=y.map(e,function(t){return{seriesIndex:t.seriesIndex,dataIndexInside:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(s.dim),n,s):t[U]().indexOfNearest(t.coordDimToDataDim(s.dim)[0],n[l],!1,s.type===c?.5:null)}}),d=this._lastHover,f=this._api;if(d.payloadBatch&&!r&&f[S]({type:"downplay",batch:d.payloadBatch}),r||(f[S]({type:"highlight",batch:u}),d.payloadBatch=u),f[S]({type:"showTip",dataIndexInside:u[0].dataIndexInside,seriesIndex:u[0].seriesIndex,from:this.uid}),s&&o.get("showContent")&&o.get("show")){var p=y.map(e,function(t,e){return t.getDataParams(u[e].dataIndexInside)});if(r)h(a||o.get(xe),i[0],i[1],this._tooltipContent,p,null,f);else{var m=u[0].dataIndexInside,v="time"===s.type?s.scale[ue](n[l]):e[0][U]()[j](m),g=(v?v+"<br />":"")+y.map(e,function(t,e){return t.formatTooltip(u[e].dataIndexInside,!0)}).join("<br />"),x="axis_"+t.name+"_"+m;this._showTooltipContent(o,g,p,x,i[0],i[1],a,null,f)}}},_showItemTooltipContent:function(t,e,i,n){var r=this._api,a=t[U](i),o=a[X](e),s=o.get("tooltip",!0);if(typeof s===re){var u=s;s={formatter:u}}var c=this._tooltipModel,h=t[De]("tooltip",c),d=new A(s,h,h[l]),f=t.getDataParams(e,i),p=t.formatTooltip(e,!1,i),m="item_"+t.name+"_"+e;this._showTooltipContent(d,p,f,m,n.offsetX,n.offsetY,n[xe],n[Te],r)},_showTooltipContent:function(t,e,i,n,r,a,o,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");o=o||t.get(xe);var d=e;if(c)if(typeof c===re)d=x.formatTpl(c,i);else if(typeof c===ee){var f=this,p=n,m=function(t,e){t===f._ticket&&(u.setContent(e),h(o,r,a,u,i,s,l))};f._ticket=p,d=c(i,p,m)}u.show(t),u.setContent(d),h(o,r,a,u,i,s,l)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&y.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[S]({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&y.each(e,function(t){t.hide()})}else this.group.children()[pe]&&this.group.hide()},_hide:function(){clearTimeout(this._showTimeout),this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api[S]({type:"hideTip",from:this.uid}),this._lastX=this._lastY=null},dispose:function(t,e){if(!C.node){var i=e.getZr();this._tooltipContent.hide(),i.off("click",this._tryShow),i.off("mousemove",this._mousemove),i.off("mouseout",this._hide),i.off("globalout",this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}}})}),e("echarts/component/timeline/preprocessor",[Ne,Be],function(t){function e(t){var e=t.type,a={number:"value",time:"time"};if(a[e]&&(t.axisType=a[e],delete t.type),i(t),n(t,"controlPosition")){var o=t.controlStyle||(t.controlStyle={});n(o,xe)||(o[xe]=t.controlPosition),"none"!==o[xe]||n(o,"show")||(o.show=!1,delete o[xe]),delete t.controlPosition}r.each(t.data||[],function(t){r[T](t)&&!r[Z](t)&&(!n(t,"value")&&n(t,"name")&&(t.value=t.name),i(t))})}function i(t){var e=t.itemStyle||(t.itemStyle={}),i=e[Q]||(e[Q]={}),a=t.label||t.label||{},o=a[K]||(a[K]={}),s={normal:1,emphasis:1};r.each(a,function(t,e){s[e]||n(o,e)||(o[e]=t)}),i.label&&!n(a,Q)&&(a[Q]=i.label,delete i.label)}function n(t,e){return t.hasOwnProperty(e)}var r=t(Be);return function(t){var i=t&&t.timeline;r[Z](i)||(i=i?[i]:[]),r.each(i,function(t){t&&e(t)})}}),e("echarts/component/timeline/timelineAction",[Ne,"../../echarts",Be],function(t){var e=t("../../echarts"),i=t(Be);e[ge]({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),i[Oe]({currentIndex:n[J].currentIndex},t)}),e[ge]({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)})}),e("echarts/component/timeline/SliderTimelineModel",[Ne,"./TimelineModel",Be,"../../util/model"],function(t){var e=t("./TimelineModel"),i=t(Be),n=t("../../util/model"),r=e[me]({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#304654"}},emphasis:{show:!0,textStyle:{color:"#c23531"}}},itemStyle:{normal:{color:"#304654",borderWidth:1},emphasis:{color:"#c23531"}},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});return i.mixin(r,n.dataFormatMixin),r}),e("echarts/component/timeline/typeDefaulter",[Ne,"../../model/Component"],function(t){t("../../model/Component").registerSubTypeDefaulter("timeline",function(){return"slider"})}),e("echarts/component/timeline/SliderTimelineView",[Ne,Be,H,"../../util/layout","./TimelineView","./TimelineAxis","../../util/symbol","../../coord/axisHelper","zrender/core/BoundingRect","zrender/core/matrix","../../util/number","../../util/format"],function(t){function e(t,e){return s.getLayoutRect(t.getBoxLayoutParams(),{width:e[Se](),height:e[Me]()},t.get("padding"))}function i(t,e,i,n){var r=o.makePath(t.get(e)[x](/^path:\/\//,""),a.clone(n||{}),new m(i[0],i[1],i[2],i[3]),be);return r}function n(t,e,i,n,r,o){var s=e.get("color");if(r)r.setColor(s),i.add(r),o&&o.onUpdate(r);else{var l=t.get("symbol");r=f.createSymbol(l,-1,-1,2,2,s),r[ye]("strokeNoScale",!0),i.add(r),o&&o.onCreate(r)}var u=e.getItemStyle(["color","symbol","symbolSize"]);r[ye](u),n=a.merge({rectHover:!0,z2:100},n,!0);var c=t.get("symbolSize");c=c instanceof Array?c.slice():[+c,+c],c[0]/=2,c[1]/=2,n.scale=c;var h=t.get("symbolOffset");if(h){var p=n[xe]=n[xe]||[0,0];p[0]+=y[q](h[0],c[0]),p[1]+=y[q](h[1],c[1])}var m=t.get("symbolRotate");return n[d]=(m||0)*Math.PI/180||0,r.attr(n),r.updateTransform(),r}function r(t,e,i,n,r){if(!t.dragging){var a=n[De]("checkpointStyle"),o=i[N](n[U]().get(["value"],e));r||!a.get(B,!0)?t.attr({position:[o,0]}):(t[R](!0),t.animateTo({position:[o,0]},a.get("animationDuration",!0),a.get("animationEasing",!0)))}}var a=t(Be),o=t(H),s=t("../../util/layout"),u=t("./TimelineView"),c=t("./TimelineAxis"),f=t("../../util/symbol"),p=t("../../coord/axisHelper"),m=t("zrender/core/BoundingRect"),g=t("zrender/core/matrix"),y=t("../../util/number"),_=t("../../util/format"),b=_.encodeHTML,w=a.bind,M=a.each,T=Math.PI;return u[me]({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i){if(this.model=t,this.api=i,this[l]=e,this.group[Ee](),t.get("show",!0)){var n=this._layout(t,i),r=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),o=this._axis=this._createAxis(n,t);t.formatTooltip=function(t){return b(o.scale[ue](t))},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](n,r,o,t)},this),this._renderAxisLabel(n,a,o,t),this._position(n,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group[Ee]()},dispose:function(){this._clearTimer()},_layout:function(t,i){var n=t.get("label.normal.position"),r=t.get("orient"),a=e(t,i);null==n||"auto"===n?n="horizontal"===r?a.y+a[Pe]/2<i[Me]()/2?"-":"+":a.x+a.width/2<i[Se]()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][n]);var o={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},s={horizontal:n>=0||"+"===n?"top":_e,vertical:"middle"},l={horizontal:0,vertical:T/2},u="vertical"===r?a[Pe]:a.width,c=t[De]("controlStyle"),h=c.get("show"),d=h?c.get("itemSize"):0,f=h?c.get("itemGap"):0,p=d+f,m=t.get("label.normal.rotate")||0;m=m*T/180;var v,g,y,x,_=c.get(xe,!0),h=c.get("show",!0),b=h&&c.get("showPlayBtn",!0),w=h&&c.get("showPrevBtn",!0),M=h&&c.get("showNextBtn",!0),S=0,C=u;return"left"===_||_===_e?(b&&(v=[0,0],S+=p),w&&(g=[S,0],S+=p),M&&(y=[C-d,0],C-=p)):(b&&(v=[C-d,0],C-=p),w&&(g=[0,0],S+=p),M&&(y=[C-d,0],C-=p)),x=[S,C],t.get("inverse")&&x.reverse(),{viewRect:a,mainLength:u,orient:r,rotation:l[r],labelRotation:m,labelPosOpt:n,labelAlign:o[r],labelBaseline:s[r],playPosition:v,prevBtnPosition:g,nextBtnPosition:y,axisExtent:x,controlSize:d,controlGap:f}},_position:function(t){function e(t){var e=t[xe];t.origin=[c[0][0]-e[0],c[1][0]-e[1]]}function i(t){return[[t.x,t.x+t.width],[t.y,t.y+t[Pe]]]}function n(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}var r=this._mainGroup,a=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var s=g[de](),l=o.x,u=o.y+o[Pe];g.translate(s,s,[-l,-u]),g.rotate(s,s,-T/2),g.translate(s,s,[l,u]),o=o.clone(),o[v](s)}var c=i(o),h=i(r[Ae]()),f=i(a[Ae]()),p=r[xe],m=a[xe];m[0]=p[0]=c[0][0];var y=t.labelPosOpt;if(isNaN(y)){var x="+"===y?0:1;n(p,h,c,1,x),n(m,f,c,1,1-x)}else{var x=y>=0?0:1;n(p,h,c,1,x),m[1]=p[1]+y}r.attr(xe,p),a.attr(xe,m),r[d]=a[d]=t[d],e(r),e(a)},_createAxis:function(t,e){var i=e[U](),n=e.get("axisType"),r=p.createScaleByModel(e,n),a=i.getDataExtent("value");r.setExtent(a[0],a[1]),this._customizeScale(r,i),r.niceTicks();var o=new c("value",r,t.axisExtent,n);return o.model=e,o},_customizeScale:function(t,e){t[ce]=function(){return e.mapArray(["value"],function(t){return t})},t.getTicksLabels=function(){return a.map(this[ce](),t[ue],t)}},_createGroup:function(t){var e=this["_"+t]=new o.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var r=i[he]();n.get("lineStyle.show")&&e.add(new o.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:a[me]({lineCap:"round"},n[De]("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,r){var a=r[U](),s=i.scale[ce]();M(s,function(t,s){var l=i[N](t),u=a[X](s),c=u[De]("itemStyle.normal"),h=u[De]("itemStyle.emphasis"),d={position:[l,0],onclick:w(this._changeTimeline,this,s)},f=n(u,c,e,d);o.setHoverStyle(f,h.getItemStyle()),u.get("tooltip")?(f[P]=s,f.dataModel=r):f[P]=f.dataModel=null},this)},_renderAxisLabel:function(t,e,i,n){var r=n[De]("label.normal");if(r.get("show")){var a=n[U](),s=i.scale[ce](),l=p[h](i,r.get("formatter")),u=i.getLabelInterval();M(s,function(n,r){if(!i.isLabelIgnored(r,u)){var s=a[X](r),c=s[De]("label.normal.textStyle"),h=s[De]("label.emphasis.textStyle"),f=i[N](n),p=new o.Text({style:{text:l[r],textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline,textFont:c[Le](),fill:c[Ie]()},position:[f,0],rotation:t.labelRotation-t[d],onclick:w(this._changeTimeline,this,r),silent:!1});e.add(p),o.setHoverStyle(p,h.getItemStyle())}},this)}},_renderControl:function(t,e,n,r){function a(t,n,a,d){if(t){var f={position:t,origin:[s/2,0],rotation:d?-l:0,rectHover:!0,style:u,onclick:a},p=i(r,n,h,f);e.add(p),o.setHoverStyle(p,c)}}var s=t.controlSize,l=t[d],u=r[De]("controlStyle.normal").getItemStyle(),c=r[De]("controlStyle.emphasis").getItemStyle(),h=[0,-s/2,s,s],f=r.getPlayState(),p=r.get("inverse",!0);a(t.nextBtnPosition,"controlStyle.nextIcon",w(this._changeTimeline,this,p?"-":"+")),a(t.prevBtnPosition,"controlStyle.prevIcon",w(this._changeTimeline,this,p?"+":"-")),a(t.playPosition,"controlStyle."+(f?"stopIcon":"playIcon"),w(this._handlePlayClick,this,!f),!0)},_renderCurrentPointer:function(t,e,i,a){var o=a[U](),s=a.getCurrentIndex(),l=o[X](s)[De]("checkpointStyle"),u=this,c={onCreate:function(t){t.draggable=!0,t.drift=w(u._handlePointerDrag,u),t.ondragend=w(u._handlePointerDragend,u),r(t,s,i,a,!0)},onUpdate:function(t){r(t,s,i,a)}};this._currentPointer=n(l,l,this._mainGroup,{},this._currentPointer,c)},_handlePlayClick:function(t){this._clearTimer(),this.api[S]({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,r=y.asc(n[he]().slice());i>r[1]&&(i=r[1]),i<r[0]&&(i=r[0]),this._currentPointer[xe][0]=i,this._currentPointer.dirty();var a=this._findNearestTick(i),o=this.model;(e||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},_doPlayStop:function(){function t(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(w(t,this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return o[v](t,e,!0)},_findNearestTick:function(t){var e,i=this.model[U](),n=1/0,r=this._axis;return i.each(["value"],function(i,a){var o=r[N](i),s=Math.abs(o-t);n>s&&(n=s,e=a)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api[S]({type:"timelineChange",currentIndex:t,from:this.uid})}})}),e("echarts/component/toolbox/ToolboxModel",[Ne,"./featureManager",Be,"../../echarts"],function(t){var e=t("./featureManager"),i=t(Be),n=t("../../echarts").extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(){n.superApply(this,"mergeDefaultAndTheme",arguments),i.each(this[J].feature,function(t,n){var r=e.get(n);r&&i.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 n}),e("echarts/component/toolbox/ToolboxView",[Ne,"./featureManager",Be,H,"../../model/Model","../../data/DataDiffer","../helper/listComponent","zrender/contain/text","../../echarts"],function(t){function e(t){return 0===t[ae]("my")}var i=t("./featureManager"),n=t(Be),r=t(H),a=t("../../model/Model"),o=t("../../data/DataDiffer"),s=t("../helper/listComponent"),u=t("zrender/contain/text");return t("../../echarts").extendComponentView({type:"toolbox",render:function(t,c,h,d){function f(n,r){var o,s=b[n],u=b[r],f=y[s],m=new a(f,t,t[l]);if(s&&!u){if(e(s))o={model:m,onclick:m[J].onclick,featureName:s};else{var v=i.get(s);if(!v)return;o=new v(m,c,h)}_[s]=o}else{if(o=_[u],!o)return;o.model=m,o[l]=c,o.api=h}return!s&&u?void(o.dispose&&o.dispose(c,h)):!m.get("show")||o.unusable?void(o[E]&&o[E](c,h)):(p(m,o,s),m.setIconStatus=function(t,e){var i=this[J],n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t][M](e)},void(o.render&&o.render(m,c,h,d)))}function p(e,i,a){var o=e[De]("iconStyle"),s=i.getIcons?i.getIcons():e.get("icon"),l=e.get("title")||{};if(typeof s===re){var u=s,d=l;s={},l={},s[a]=u,l[a]=d}var f=e.iconPaths={};n.each(s,function(a,s){var u=o[De](K).getItemStyle(),d=o[De](Q).getItemStyle(),p={x:-g/2,y:-g/2,width:g,height:g},y=0===a[ae]("image://")?(p.image=a.slice(8),new r.Image({style:p})):r.makePath(a[x]("path://",""),{style:u,hoverStyle:d,rectHover:!0},p,be);r.setHoverStyle(y),t.get("showTitle")&&(y.__title=l[s],y.on("mouseover",function(){var t=o[De](Q).getItemStyle();y[ye]({text:l[s],textPosition:t.textPosition||_e,textFill:t.fill||t[m]||"#000",textAlign:t[ze]||be})}).on("mouseout",function(){y[ye]({textFill:null})})),y[M](e.get("iconStatus."+s)||K),v.add(y),y.on("click",n.bind(i.onclick,i,c,h,s)),f[s]=y})}var v=this.group;if(v[Ee](),t.get("show")){var g=+t.get("itemSize"),y=t.get("feature")||{},_=this._features||(this._features={}),b=[];n.each(y,function(t,e){b.push(e)}),new o(this._featureNames||[],b).add(f)[$](f)[E](n.curry(f,null)).execute(),this._featureNames=b,s.layout(v,t,h),s.addBackground(v,t),v.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var n=u[Ae](e,i.font),r=t[xe][0]+v[xe][0],a=t[xe][1]+v[xe][1]+g,o=!1;a+n[Pe]>h[Me]()&&(i.textPosition="top",o=!0);var s=o?-5-n[Pe]:g+8;r+n.width/2>h[Se]()?(i.textPosition=["100%",s],i[ze]="right"):r-n.width/2<0&&(i.textPosition=[0,s],i[ze]="left")}})}},updateView:function(t,e,i,r){n.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,i,r)})},updateLayout:function(t,e,i,r){n.each(this._features,function(t){t.updateLayout&&t.updateLayout(t.model,e,i,r)})},remove:function(t,e){n.each(this._features,function(i){i[E]&&i[E](t,e)}),this.group[Ee]()},dispose:function(t,e){n.each(this._features,function(i){i.dispose&&i.dispose(t,e)})}})}),e("echarts/component/toolbox/feature/SaveAsImage",[Ne,L,"../featureManager"],function(t){function e(t){this.model=t}var i=t(L);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[ve].unusable=!i[A];var n=e[ve];return n.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",r=document[se]("a"),a=i.get("type",!0)||"png";r.download=n+"."+a,r[Te]="_blank";var o=e.getConnectedDataURL({type:a,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(r.href=o,typeof MouseEvent===ee){var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(s)}else{var l=i.get("lang"),u='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>',c=window.open();c.document.write(u)}},t("../featureManager").register("saveAsImage",e),e}),e("echarts/component/toolbox/feature/MagicType",[Ne,Be,"../../../echarts","../featureManager"],function(t){function e(t){this.model=t}var i=t(Be);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 n=e[ve];n.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return i.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var r={line:function(t,e,n,r){return"bar"===t?i.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.line")||{},!0):void 0},bar:function(t,e,n,r){return"line"===t?i.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.bar")||{},!0):void 0},stack:function(t,e,n,r){return"line"===t||"bar"===t?i.merge({id:e,stack:"__ec_magicType_stack__"},r.get("option.stack")||{},!0):void 0},tiled:function(t,e,n,r){return"line"===t||"bar"===t?i.merge({id:e,stack:""},r.get("option.tiled")||{},!0):void 0}},o=[["line","bar"],["stack","tiled"]];n.onclick=function(t,e,n){var s=this.model,l=s.get("seriesIndex."+n);if(r[n]){var u={series:[]},c=function(e){var o=e.subType,l=e.id,c=r[n](o,l,e,s);c&&(i[Oe](c,e[J]),u[w].push(c));var h=e[Re];if(h&&"cartesian2d"===h.type&&("line"===n||"bar"===n)){var d=h.getAxesByScale(z)[0];if(d){var f=d.dim,p=f+"Axis",m=t[a]({mainType:p,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],v=m.componentIndex;u[p]=u[p]||[];for(var g=0;v>=g;g++)u[p][v]=u[p][v]||{};u[p][v].boundaryGap="bar"===n}}};i.each(o,function(t){i[ae](t,n)>=0&&i.each(t,function(t){s.setIconStatus(t,K)})}),s.setIconStatus(n,Q),t[Y]({mainType:"series",query:null==l?null:{seriesIndex:l}},c),e[S]({type:"changeMagicType",currentType:n,newOption:u})}};var s=t("../../../echarts");return s[ge]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e[te](t.newOption)}),t("../featureManager").register("magicType",e),e}),e("echarts/component/toolbox/feature/DataView",[Ne,Be,"zrender/core/event","../featureManager","../../../echarts"],function(t){function e(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var r=t[Re];if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(t);else{var a=r[F]();if(a.type===c){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),e[o][w].push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function i(t){var e=[];return f.each(t,function(t){var i=t.categoryAxis,n=t.valueAxis,r=n.dim,a=[" "][ie](f.map(t[w],function(t){return t.name})),o=[i.model.getCategories()];f.each(t[w],function(t){o.push(t.getRawData().mapArray(r,function(t){return t}))});for(var s=[a.join(v)],l=0;l<o[0][pe];l++){for(var u=[],c=0;c<o[pe];c++)u.push(o[c][l]);s.push(u.join(v))}e.push(s.join("\n"))}),e.join("\n\n"+m+"\n\n")}function n(t){return f.map(t,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e[V],function(){for(var t=arguments[pe],r=arguments[t-1],a=e[j](r),o=0;t-1>o;o++)n[o]=arguments[o];i.push((a?a+v:"")+n.join(v))}),i.join("\n")}).join("\n\n"+m+"\n\n")}function r(t){var r=e(t);return{value:f[le]([i(r.seriesGroupByCategoryAxis),n(r.other)],function(t){return t[x](/[\n\t\s]/g,"")}).join("\n\n"+m+"\n\n"),meta:r.meta}}function a(t){return t[x](/^\s\s*/,"")[x](/\s\s*$/,"")}function o(t){var e=t.slice(0,t[ae]("\n"));return e[ae](v)>=0||void 0}function s(t){for(var e=t.split(/\n+/g),i=a(e.shift()).split(g),n=[],r=f.map(i,function(t){return{name:t,data:[]}}),o=0;o<e[pe];o++){var s=a(e[o]).split(g);n.push(s.shift());for(var l=0;l<s[pe];l++)r[l]&&(r[l].data[o]=s[l])}return{series:r,categories:n}}function l(t){for(var e=t.split(/\n+/g),i=a(e.shift()),n=[],r=0;r<e[pe];r++){var o,s=a(e[r]).split(g),l="",u=!1;isNaN(s[0])?(u=!0,l=s[0],s=s.slice(1),n[r]={name:l,value:[]},o=n[r].value):o=n[r]=[];for(var c=0;c<s[pe];c++)o.push(+s[c]);1===o[pe]&&(u?n[r].value=o[0]:n[r]=o[0])}return{name:i,data:n}}function u(t,e){var i=t.split(new RegExp("\n*"+m+"\n*","g")),n={series:[]};return f.each(i,function(t,i){if(o(t)){var r=s(t),a=e[i],u=a.axisDim+"Axis";a&&(n[u]=n[u]||[],n[u][a.axisIndex]={data:r.categories},n[w]=n[w][ie](r[w]))}else{var r=l(t);n[w].push(r)}}),n}function h(t){this._dom=null,this.model=t}function d(t,e){return f.map(t,function(t,i){var n=e&&e[i];return f[T](n)&&!f[Z](n)?(f[T](t)&&!f[Z](t)&&(t=t.value),f[Oe]({value:t},n)):t})}var f=t(Be),p=t("zrender/core/event"),m=new Array(60).join("-"),v="\t",g=new RegExp("["+v+"]+","g");return h.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h[ve].onclick=function(t,e){function i(){n.removeChild(o),T._dom=null}var n=e.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var o=document[se]("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document[se]("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[se]("div"),h=document[se]("textarea");c.style.cssText="display:block;width:100%;overflow:hidden;";var d=a.get("optionToContent"),m=a.get("contentToOption"),g=r(t);if(typeof d===ee){var y=d(e.getOption());typeof y===re?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.backgroundColor=a.get("textareaColor"),h.value=g.value;var x=g.meta,_=document[se]("div");_.style.cssText="position:absolute;bottom:0;left:0;right:0;";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document[se]("div"),M=document[se]("div");b+=";background-color:"+a.get("buttonColor"),b+=";color:"+a.get("buttonTextColor");var T=this;p.addEventListener(w,"click",i),p.addEventListener(M,"click",function(){var t;try{t=typeof m===ee?m(c,e.getOption()):u(h.value,x)}catch(n){throw i(),new Error("Data view format error "+n)}t&&e[S]({type:"changeDataView",newOption:t}),i()}),w.innerHTML=l[1],M.innerHTML=l[2],M.style.cssText=b,w.style.cssText=b,!a.get("readOnly")&&_.appendChild(M),_.appendChild(w),p.addEventListener(h,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+v+e.substring(n),this.selectionStart=this.selectionEnd=i+1,p.stop(t)}}),o.appendChild(s),o.appendChild(c),o.appendChild(_),c.style[Pe]=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},h[ve][E]=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},h[ve].dispose=function(t,e){this[E](t,e)},t("../featureManager").register("dataView",h),t("../../../echarts")[ge]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];f.each(t.newOption[w],function(t){var n=e.getSeriesByName(t.name)[0];if(n){var r=n.get("data");i.push({name:t.name,data:d(t.data,r)})}else i.push(f[me]({type:"scatter"},t))}),e[te](f[Oe]({series:i},t.newOption))}),h}),e("echarts/component/toolbox/feature/Restore",[Ne,"../../dataZoom/history","../featureManager","../../../echarts"],function(t){function e(t){this.model=t}var i=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 n=e[ve];return n.onclick=function(t,e){i.clear(t),e[S]({type:"restore",from:this.uid})},t("../featureManager").register("restore",e),
      t("../../../echarts")[ge]({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),e}),e("echarts/component/toolbox/feature/DataZoom",[Ne,Be,"../../helper/BrushController","../../helper/brushHelper","../../dataZoom/history","../../dataZoomSelect","../featureManager","../../../echarts"],function(t){function e(t,e,i){(this._brushController=new o(i.getZr())).on("brush",a.bind(this._onBrush,this)).mount(),this._isZoomActive}function i(t){var e={};return a.each(["xAxisIndex","yAxisIndex"],function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(e[i]===!1||"none"===e[i])&&(e[i]=[])}),e}function n(t,e){t.setIconStatus("back",u.count(e)>1?Q:K)}function r(t,e,n,r){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?Q:K);var o=s.makeCoordInfoList(i(t[J]),e),l=o.xAxisHas&&!o.yAxisHas?"lineX":!o.xAxisHas&&o.yAxisHas?"lineY":"rect";n._brushController.setPanels(s.makePanelOpts(o)).enableBrush(!!a&&{brushType:l,brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}var a=t(Be),o=t("../../helper/BrushController"),s=t("../../helper/brushHelper"),u=t("../../dataZoom/history"),c=a.each;t("../../dataZoomSelect");var h="\0_ec_\0toolbox-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 d=e[ve];d.render=function(t,e,i,a){this.model=t,this[l]=e,this.api=i,r(t,e,this,a),n(t,e)},d.onclick=function(t,e,i){f[i].call(this)},d[E]=function(){this._brushController.unmount()},d.dispose=function(){this._brushController.dispose()};var f={zoom:function(){var t=!this._isZoomActive;this.api[S]({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(u.pop(this[l]))}};return d._onBrush=function(t,e){function n(t,e,i){var n=r(t,i[t],o);n&&(a[n.id]={dataZoomId:n.id,startValue:e[0],endValue:e[1]})}function r(t,e,i){var n;return i[Y]({mainType:"dataZoom",subType:"select"},function(r){var a=r.get(t+"Index");null!=a&&i.getComponent(t,a)===e&&(n=r)}),n}if(e.isEnd&&t[pe]){var a={},o=this[l];this._brushController.updateCovers([]);var c=s.makeCoordInfoList(i(this.model[J]),o),h=[];s.parseOutputRanges(t,c,o,h);var d=t[0],f=h[0],p=d.coordRange,m=d.brushType;if(f&&p)if("rect"===m)n("xAxis",p[0],f),n("yAxis",p[1],f);else{var v={lineX:"xAxis",lineY:"yAxis"};n(v[m],p,f)}u.push(o,a),this._dispatchZoomAction(a)}},d._dispatchZoomAction=function(t){var e=[];c(t,function(t){e.push(a.clone(t))}),e[pe]&&this.api[S]({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[Z](o)||(o=o===!1||"none"===o?[]:[o]),i(t,function(e,i){if(null==o||"all"==o||-1!==a[ae](o,i)){var s={type:"select",$fromToolbox:!0,id:h+t+i};s[r]=i,n.push(s)}})}}function i(e,i){var n=t[e];a[Z](n)||(n=n?[n]:[]),c(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);a[Z](n)||(t.dataZoom=n=[n]);var r=t.toolbox;if(r&&(a[Z](r)&&(r=r[0]),r&&r.feature)){var o=r.feature.dataZoom;e("xAxis",o),e("yAxis",o)}}}),e}),e("zrender/vml/graphic",[Ne,"../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")[A]){var e=t("../core/vector"),i=t("../core/BoundingRect"),n=t("../core/PathProxy").CMD,r=t("../tool/color"),a=t("../contain/text"),o=t("../graphic/mixin/RectText"),l=t("../graphic/Displayable"),u=t("../graphic/Image"),c=t("../graphic/Text"),h=t("../graphic/Path"),d=t("../graphic/Gradient"),f=t("./core"),p=Math.round,g=Math.sqrt,y=Math.abs,_=Math.cos,b=Math.sin,w=Math.max,M=e[v],S=",",T="progid:DXImageTransform.Microsoft",P=21600,I=P/2,L=1e5,z=1e3,k=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=P+","+P,t.coordorigin="0,0"},O=function(t){return String(t)[x](/&/g,"&amp;")[x](/"/g,"&quot;")},R=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},E=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},B=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},N=function(t,e,i){return(parseFloat(t)||0)*L+(parseFloat(e)||0)*z+i},V=function(t,e){return typeof t===re?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},G=function(t,e,i){var n=r.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=R(n[0],n[1],n[2]),t.opacity=i*n[3])},F=function(t){var e=r.parse(t);return[R(e[0],e[1],e[2]),e[3]]},H=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof d){var r,a=0,o=[0,0],l=0,u=1,c=i[Ae](),h=c.width,f=c[Pe];if("linear"===n.type){r="gradient";var p=i[s],m=[n.x*h,n.y*f],v=[n.x2*h,n.y2*f];p&&(M(m,m,p),M(v,v,p));var g=v[0]-m[0],y=v[1]-m[1];a=180*Math.atan2(g,y)/Math.PI,0>a&&(a+=360),1e-6>a&&(a=0)}else{r="gradientradial";var m=[n.x*h,n.y*f],p=i[s],x=i.scale,_=h,b=f;o=[(m[0]-c.x)/_,(m[1]-c.y)/b],p&&M(m,m,p),_/=x[0]*P,b/=x[1]*P;var S=w(_,b);l=0/S,u=2*n.r/S-l}var T=n[C].slice();T.sort(function(t,e){return t.offset-e.offset});for(var A=T[pe],I=[],L=[],z=0;A>z;z++){var k=T[z],D=F(k.color);L.push(k.offset*u+l+" "+D[0]),(0===z||z===A-1)&&I.push(D)}if(A>=2){var O=I[0][0],R=I[1][0],E=I[0][1]*e.opacity,B=I[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=O,t.color2=R,t.colors=L.join(","),t.opacity=B,t.opacity2=E}"radial"===r&&(t.focusposition=o.join(","))}else G(t,n,e.opacity)},Z=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[m]||e[m]instanceof d||G(t,e[m],e.opacity)},q=function(t,e,i,n){var r="fill"==e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i.lineWidth)?(t[r?"filled":"stroked"]="true",i[e]instanceof d&&B(t,a),a||(a=f.createNode(e)),r?H(a,i,n):Z(a,i),E(t,a)):(t[r?"filled":"stroked"]="false",B(t,a))},W=[[],[],[]],X=function(t,e){var i,r,a,o,s,l,u=n.M,c=n.C,h=n.L,d=n.A,f=n.Q,m=[];for(o=0;o<t[pe];){switch(a=t[o++],r="",i=0,a){case u:r=" m ",i=1,s=t[o++],l=t[o++],W[0][0]=s,W[0][1]=l;break;case h:r=" l ",i=1,s=t[o++],l=t[o++],W[0][0]=s,W[0][1]=l;break;case f:case c:r=" c ",i=3;var v,y,x=t[o++],w=t[o++],T=t[o++],C=t[o++];a===f?(v=T,y=C,T=(T+2*x)/3,C=(C+2*w)/3,x=(s+2*x)/3,w=(l+2*w)/3):(v=t[o++],y=t[o++]),W[0][0]=x,W[0][1]=w,W[1][0]=T,W[1][1]=C,W[2][0]=v,W[2][1]=y,s=v,l=y;break;case d:var A=0,L=0,z=1,k=1,D=0;e&&(A=e[4],L=e[5],z=g(e[0]*e[0]+e[1]*e[1]),k=g(e[2]*e[2]+e[3]*e[3]),D=Math.atan2(-e[1]/k,e[0]/z));var O=t[o++],R=t[o++],E=t[o++],B=t[o++],N=t[o++]+D,V=t[o++]+N+D;o++;var G=t[o++],F=O+_(N)*E,H=R+b(N)*B,x=O+_(V)*E,w=R+b(V)*B,Z=G?" wa ":" at ";Math.abs(F-x)<1e-10&&(Math.abs(V-N)>.01?G&&(F+=270/P):Math.abs(H-R)<1e-10?G&&O>F||!G&&F>O?w-=270/P:w+=270/P:G&&R>H||!G&&H>R?x+=270/P:x-=270/P),m.push(Z,p(((O-E)*z+A)*P-I),S,p(((R-B)*k+L)*P-I),S,p(((O+E)*z+A)*P-I),S,p(((R+B)*k+L)*P-I),S,p((F*z+A)*P-I),S,p((H*k+L)*P-I),S,p((x*z+A)*P-I),S,p((w*k+L)*P-I)),s=x,l=w;break;case n.R:var q=W[0],X=W[1];q[0]=t[o++],q[1]=t[o++],X[0]=q[0]+t[o++],X[1]=q[1]+t[o++],e&&(M(q,q,e),M(X,X,e)),q[0]=p(q[0]*P-I),X[0]=p(X[0]*P-I),q[1]=p(q[1]*P-I),X[1]=p(X[1]*P-I),m.push(" m ",q[0],S,q[1]," l ",X[0],S,q[1]," l ",X[0],S,X[1]," l ",q[0],S,X[1]);break;case n.Z:m.push(" x ")}if(i>0){m.push(r);for(var j=0;i>j;j++){var U=W[j];e&&M(U,U,e),m.push(p(U[0]*P-I),S,p(U[1]*P-I),i-1>j?S:"")}}}return m.join("")};h[ve].brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=f.createNode("shape"),k(i),this._vmlEl=i),q(i,"fill",e,this),q(i,m,e,this);var n=this[s],r=null!=n,a=i.getElementsByTagName(m)[0];if(a){var o=e.lineWidth;if(r&&!e.strokeNoScale){var l=n[0]*n[3]-n[1]*n[2];o*=g(y(l))}a.weight=o+"px"}var u=this.path;this.__dirtyPath&&(u.beginPath(),this.buildPath(u,this.shape),u.toStatic(),this.__dirtyPath=!1),i.path=X(u.data,this[s]),i.style.zIndex=N(this[D],this.z,this.z2),E(t,i),e.text?this.drawRectText(t,this[Ae]()):this.removeRectText(t)},h[ve].onRemove=function(t){B(t,this._vmlEl),this.removeRectText(t)},h[ve].onAdd=function(t){E(t,this._vmlEl),this.appendRectText(t)};var j=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};u[ve].brushVML=function(t){var e,i,n=this.style,r=n.image;if(j(r)){var a=r.src;if(a===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var o=r.runtimeStyle,l=o.width,u=o[Pe];o.width="auto",o[Pe]="auto",e=r.width,i=r[Pe],o.width=l,o[Pe]=u,this._imageSrc=a,this._imageWidth=e,this._imageHeight=i}r=a}else r===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(r){var c=n.x||0,h=n.y||0,d=n.width,m=n[Pe],v=n.sWidth,y=n.sHeight,x=n.sx||0,_=n.sy||0,b=v&&y,C=this._vmlEl;C||(C=f.doc[se]("div"),k(C),this._vmlEl=C);var P,A=C.style,I=!1,L=1,z=1;if(this[s]&&(P=this[s],L=g(P[0]*P[0]+P[1]*P[1]),z=g(P[2]*P[2]+P[3]*P[3]),I=P[1]||P[2]),I){var O=[c,h],R=[c+d,h],B=[c,h+m],V=[c+d,h+m];M(O,O,P),M(R,R,P),M(B,B,P),M(V,V,P);var G=w(O[0],R[0],B[0],V[0]),F=w(O[1],R[1],B[1],V[1]),H=[];H.push("M11=",P[0]/L,S,"M12=",P[2]/z,S,"M21=",P[1]/L,S,"M22=",P[3]/z,S,"Dx=",p(c*L+P[4]),S,"Dy=",p(h*z+P[5])),A.padding="0 "+p(G)+"px "+p(F)+"px 0",A[le]=T+".Matrix("+H.join("")+", SizingMethod=clip)"}else P&&(c=c*L+P[4],h=h*z+P[5]),A[le]="",A.left=p(c)+"px",A.top=p(h)+"px";var Z=this._imageEl,q=this._cropEl;Z||(Z=f.doc[se]("div"),this._imageEl=Z);var W=Z.style;if(b){if(e&&i)W.width=p(L*e*d/v)+"px",W[Pe]=p(z*i*m/y)+"px";else{var X=new Image,U=this;X.onload=function(){X.onload=null,e=X.width,i=X[Pe],W.width=p(L*e*d/v)+"px",W[Pe]=p(z*i*m/y)+"px",U._imageWidth=e,U._imageHeight=i,U._imageSrc=r},X.src=r}q||(q=f.doc[se]("div"),q.style.overflow="hidden",this._cropEl=q);var Y=q.style;Y.width=p((d+x*d/v)*L),Y[Pe]=p((m+_*m/y)*z),Y[le]=T+".Matrix(Dx="+-x*d/v*L+",Dy="+-_*m/y*z+")",q.parentNode||C.appendChild(q),Z.parentNode!=q&&q.appendChild(Z)}else W.width=p(L*d)+"px",W[Pe]=p(z*m)+"px",C.appendChild(Z),q&&q.parentNode&&(C.removeChild(q),this._cropEl=null);var $="",Q=n.opacity;1>Q&&($+=".Alpha(opacity="+p(100*Q)+") "),$+=T+".AlphaImageLoader(src="+r+", SizingMethod=scale)",W[le]=$,C.style.zIndex=N(this[D],this.z,this.z2),E(t,C),n.text&&this.drawRectText(t,this[Ae]())}},u[ve].onRemove=function(t){B(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},u[ve].onAdd=function(t){E(t,this._vmlEl),this.appendRectText(t)};var U,Y=K,$={},Q=0,J=100,te=document[se]("div"),ee=function(t){var e=$[t];if(!e){Q>J&&(Q=0,$={});var i,n=te.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||Y,variant:n.fontVariant||Y,weight:n.fontWeight||Y,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},$[t]=e,Q++}return e};a.measureText=function(t,e){var i=f.doc;U||(U=i[se]("div"),U.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",f.doc.body.appendChild(U));try{U.style.font=e}catch(n){}return U.innerHTML="",U.appendChild(i.createTextNode(t)),{width:U.offsetWidth}};for(var ie=new i,ne=function(t,e,i,n){var r=this.style,o=r.text;if(o){var l,u,c=r[ze],h=ee(r.textFont),d=h.style+" "+h.variant+" "+h.weight+" "+h.size+'px "'+h.family+'"',g=r.textBaseline,y=r.textVerticalAlign;i=i||a[Ae](o,d,c,g);var x=this[s];if(x&&!n&&(ie.copy(e),ie[v](x),e=ie),n)l=e.x,u=e.y;else{var _=r.textPosition,b=r.textDistance;if(_ instanceof Array)l=e.x+V(_[0],e.width),u=e.y+V(_[1],e[Pe]),c=c||"left",g=g||"top";else{var w=a.adjustTextPositionOnRect(_,e,i,b);l=w.x,u=w.y,c=c||w[ze],g=g||w.textBaseline}}if(y){switch(y){case we:u-=i[Pe]/2;break;case _e:u-=i[Pe]}g="top"}var T=h.size;switch(g){case"hanging":case"top":u+=T/1.75;break;case we:break;default:u-=T/2.25}switch(c){case"left":break;case be:l-=i.width/2;break;case"right":l-=i.width}var C,P,A,I=f.createNode,L=this._textVmlEl;L?(A=L.firstChild,C=A.nextSibling,P=C.nextSibling):(L=I("line"),C=I("path"),P=I("textpath"),A=I("skew"),P.style["v-text-align"]="left",k(L),C.textpathok=!0,P.on=!0,L.from="0 0",L.to="1000 0.05",E(L,A),E(L,C),E(L,P),this._textVmlEl=L);var z=[l,u],R=L.style;x&&n?(M(z,z,x),A.on=!0,A.matrix=x[0].toFixed(3)+S+x[2].toFixed(3)+S+x[1].toFixed(3)+S+x[3].toFixed(3)+",0,0",A.offset=(p(z[0])||0)+","+(p(z[1])||0),A.origin="0 0",R.left="0px",R.top="0px"):(A.on=!1,R.left=p(l)+"px",R.top=p(u)+"px"),P[re]=O(o);try{P.style.font=d}catch(B){}q(L,"fill",{fill:n?r.fill:r.textFill,opacity:r.opacity},this),q(L,m,{stroke:n?r[m]:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),L.style.zIndex=N(this[D],this.z,this.z2),E(t,L)}},ae=function(t){B(t,this._textVmlEl),this._textVmlEl=null},oe=function(t){E(t,this._textVmlEl)},ue=[o,l,u,h,c],ce=0;ce<ue[pe];ce++){var he=ue[ce][ve];he.drawRectText=ne,he.removeRectText=ae,he.appendRectText=oe}c[ve].brushVML=function(t){var e=this.style;e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this[Ae](),!0):this.removeRectText(t)},c[ve].onRemove=function(t){this.removeRectText(t)},c[ve].onAdd=function(t){this.appendRectText(t)}}}),e("zrender/zrender",[Ne,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete h[t]}var i=t("./core/guid"),n=t("./core/env"),a=t("./Handler"),o=t("./Storage"),s=t("./animation/Animation"),l=t("./dom/HandlerProxy"),u=!n[A],c={canvas:t("./Painter")},h={},d={};d.version="3.2.1",d.init=function(t,e){var n=new f(i(),t,e);return h[n.id]=n,n},d.dispose=function(t){if(t)t.dispose();else{for(var e in h)h.hasOwnProperty(e)&&h[e].dispose();h={}}return d},d.getInstance=function(t){return h[t]},d.registerPainter=function(t,e){c[t]=e};var f=function(t,e,i){i=i||{},this.dom=e,this.id=t;var r=this,h=new o,d=i.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="canvas");var f=new c[d](e,h,i);this.storage=h,this.painter=f;var p=n.node?null:new l(f.getViewportRoot());this.handler=new a(h,f,p,f.root),this[B]=new s({stage:{update:function(){r._needsRefresh&&r.refreshImmediately(),r._needsRefreshHover&&r.refreshHoverImmediately()}}}),this[B].start(),this._needsRefresh;var m=h.delFromMap,v=h.addToMap;h.delFromMap=function(t){var e=h.get(t);m.call(h,t),e&&e.removeSelfFromZr(r)},h.addToMap=function(t){v.call(h,t),t.addSelfToZr(r)}};return f[ve]={constructor:f,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[r](),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},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.resize(t.width,t[Pe]),this.handler.resize()},clearAnimation:function(){this[B].clear()},getWidth:function(){return this.painter[Se]()},getHeight:function(){return this.painter[Me]()},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler[M](t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[B].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this[B]=this.storage=this.painter=this.handler=null,e(this.id)}},d}),e("zrender/vml/Painter",[Ne,"../core/log","./core"],function(t){function e(t){return parseInt(t,10)}function i(t,e){a.initVML(),this.root=t,this.storage=e;var i=document[se]("div"),n=document[se]("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var r=e.delFromMap,o=e.addToMap;e.delFromMap=function(t){var i=e.get(t);r.call(e,t),i&&i.onRemove&&i.onRemove(n)},e.addToMap=function(t){t.onAdd&&t.onAdd(n),o.call(e,t)},this._firstPaint=!0}function n(t){return function(){r('In IE8.0 VML mode painter not support method "'+t+'"')}}var r=t("../core/log"),a=t("./core");i[ve]={constructor:i,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,i=0;i<t[pe];i++){var n=t[i];n.invisible||n[k]?(n.__alreadyNotVisible||n.onRemove(e),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(e),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,e),n.afterBrush&&n.afterBrush())),n.__dirty=!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 i=this._vmlViewport.style;i.width=t+"px",i[Pe]=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,i=t.currentStyle;return(t.clientWidth||e(i.width))-e(i.paddingLeft)-e(i.paddingRight)|0},_getHeight:function(){var t=this.root,i=t.currentStyle;return(t.clientHeight||e(i[Pe]))-e(i.paddingTop)-e(i.paddingBottom)|0}};for(var o=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],s=0;s<o[pe];s++){var l=o[s];i[ve][l]=n(l)}return i}),e("echarts/util/number",[Ne],function(){function t(t){return t[x](/^\s+/,"")[x](/\s+$/,"")}var e={},i=1e-4;return e.linearMap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]},e[q]=function(e,i){switch(e){case be:case we:e="50%";break;case"left":case"top":e="0%";break;case"right":case _e:e="100%"}return typeof e===re?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?NaN:+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,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPrecisionSafe=function(t){var e=t.toString(),i=e[ae](".");return 0>i?0:e[pe]-1-i},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);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>-i&&i>t},e.parseDate=function(t){if(t instanceof Date)return t;if(typeof t===re){var e=new Date(t);return isNaN(+e)&&(e=new Date(new Date(t[x](/-/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,i){var n,r=e.quantity(t),a=t/r;return n=i?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,n*r},e}),e("echarts/util/format",[Ne,Be,"./number","zrender/contain/text"],function(t){var e=t(Be),i=t("./number"),n=t("zrender/contain/text"),r={};r.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][x](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[pe]>1?"."+t[1]:""))},r.toCamelCase=function(t){return t[I]()[x](/-(.)/g,function(t,e){return e.toUpperCase()})},r.normalizeCssArray=function(t){var e=t[pe];return typeof t===ne?[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)[x](/&/g,"&amp;")[x](/</g,"&lt;")[x](/>/g,"&gt;")[x](/"/g,"&quot;")[x](/'/g,"&#39;")};var a=["a","b","c","d","e","f","g"],o=function(t,e){return"{"+t+(null==e?"":e)+"}"};r.formatTpl=function(t,i){e[Z](i)||(i=[i]);var n=i[pe];if(!n)return"";for(var r=i[0].$vars||[],s=0;s<r[pe];s++){var l=a[s];t=t[x](o(l),o(l,0))}for(var u=0;n>u;u++)for(var c=0;c<r[pe];c++)t=t[x](o(a[c],u),i[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 n=i.parseDate(e),r=n.getFullYear(),a=n.getMonth()+1,o=n.getDate(),l=n.getHours(),u=n.getMinutes(),c=n.getSeconds();return t=t[x]("MM",s(a))[I]()[x]("yyyy",r)[x]("yy",r%100)[x]("dd",s(o))[x]("d",o)[x]("hh",s(l))[x]("h",l)[x]("mm",s(u))[x]("m",u)[x]("ss",s(c))[x]("s",c)},r.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},r.truncateText=n.truncateText,r}),e("echarts/scale/Interval",[Ne,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=e.getPrecisionSafe,s=e.round,l=n[me]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l[ve].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,i=[],n=1e4;if(t){var r=this._niceExtent,a=o(t)+2;e[0]<r[0]&&i.push(e[0]);for(var l=r[0];l<=r[1];)if(i.push(l),l=s(l+t,a),i[pe]>n)return[];e[1]>(i[pe]?i[i[pe]-1]:r[1])&&i.push(e[1])}return i},getTicksLabels:function(){for(var t=[],e=this[ce](),i=0;i<e[pe];i++)t.push(this[ue](e[i]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||5;var i=this._extent,n=i[1]-i[0];if(isFinite(n)){0>n&&(n=-n,i.reverse());var l=s(e.nice(n/t,!0),Math.max(o(i[0]),o(i[1]))+2),u=o(l)+2,c=[s(a(i[0]/l)*l,u),s(r(i[1]/l)*l,u)];this._interval=l,this._niceExtent=c}},niceExtent:function(t,e,i){var n=this._extent;if(n[0]===n[1])if(0!==n[0]){var o=n[0];i?n[0]-=o/2:(n[1]+=o/2,n[0]-=o/2)}else n[1]=1;var l=n[1]-n[0];isFinite(l)||(n[0]=0,n[1]=1),this.niceTicks(t);var u=this._interval;e||(n[0]=s(r(n[0]/u)*u)),i||(n[1]=s(a(n[1]/u)*u))}});return l[de]=function(){return new l},l}),e("echarts/scale/Scale",[Ne,"../util/clazz"],function(t){function e(){this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t("../util/clazz"),n=e[ve];return n.parse=function(t){return t},n[fe]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},n.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n[he]=function(){return this._extent.slice()},n.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this[ce](),i=0;i<e[pe];i++)t.push(this[ue](e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e(L,[],function(){function t(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),{browser:i,os:e,node:!1,canvasSupported:!!document[se]("canvas")[oe],touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=10)}}var e={};return e=typeof navigator===n?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/ExtensionAPI",[Ne,Be],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(Be),n=["getDom","getZr",Se,Me,S,"isDisposed","on","off","getDataURL","getConnectedDataURL",De,"getOption"];return e}),e("echarts/CoordinateSystem",[Ne,Be],function(t){function e(){this._coordinateSystems=[]}var i=t(Be),n={};return e[ve]={constructor:e,create:function(t,e){var r=[];i.each(n,function(i){var n=i[de](t,e);r=r[ie](n||[])}),this._coordinateSystems=r},update:function(t,e){i.each(this._coordinateSystems,function(i){i[$]&&i[$](t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},e.register=function(t,e){n[t]=e},e.get=function(t){return n[t]},e}),e("echarts/model/Component",[Ne,"./Model",Be,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(c.getClassesByMainType(t),function(t){r.apply(e,t[ve].dependencies||[])}),n.map(e,function(t){return s.parseClassType(t).main})}var i=t("./Model"),n=t(Be),r=Array[ve].push,o=t("../util/component"),s=t("../util/clazz"),u=t("../util/layout"),c=i[me]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,r){i.call(this,t,e,n,r),this.uid=o.getUID("componentModel")},init:function(t,e,i){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?u.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&u.mergeLayoutParam(t,r,i)},mergeOption:function(t){n.merge(this[J],t,!0);var e=this.layoutMode;e&&u.mergeLayoutParam(this[J],t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[ve].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[pe]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption},getReferringComponents:function(t){return this[l][a]({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});return s.enableClassManagement(c,{registerWhenExtend:!0}),o.enableSubTypeDefaulter(c),o.enableTopologicalTravel(c,e),n.mixin(c,t("./mixin/boxLayout")),c}),e("echarts/model/OptionManager",[Ne,Be,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function i(t,e,i){var n,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[J]&&(t.query?o.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=l),c([r][ie](a)[ie](s.map(o,function(t){return t[J]})),function(t){c(e,function(e){e(t,i)})}),{baseOption:r,timelineOptions:a,mediaDefault:n,mediaList:o}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][I]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,i){if(null!=e){var n=t[i];if(u.hasClass(i)){e=l.normalizeToArray(e),n=l.normalizeToArray(n);var r=l.mappingToExists(n,e);t[i]=d(r,function(t){return t[J]&&t.exist?f(t.exist,t[J],!0):t.exist||t[J]})}else t[i]=f(n,e,!0)}})}var s=t(Be),l=t("../util/model"),u=t("./Component"),c=s.each,h=s.clone,d=s.map,f=s.merge,p=/^(min|max)?(.+)$/;return e[ve]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=i.call(this,t,e,!n);this._newBaseOption=r.baseOption,n?(o(n.baseOption,r.baseOption),r.timelineOptions[pe]&&(n.timelineOptions=r.timelineOptions),r.mediaList[pe]&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=d(e.timelineOptions,h),this._mediaList=d(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[pe]){var n=t.getComponent("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[Se](),e=this._api[Me](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[pe]&&!r)return s;for(var l=0,u=i[pe];u>l;l++)n(i[l].query,t,e)&&o.push(l);return!o[pe]&&r&&(o=[-1]),o[pe]&&!a(o,this._currentMediaIndices)&&(s=d(o,function(t){return h(-1===t?r[J]:i[t][J])})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Global",[Ne,Be,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){c.each(e,function(e,i){x.hasClass(i)||("object"==typeof e?t[i]=t[i]?c.merge(t[i],e,!1):c.clone(e):null==t[i]&&(t[i]=e))})}function i(t){t=t,this[J]={},this[J][M]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[J]),c.merge(t,_,!1),this[te](t)}function n(t,e){c[Z](e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};f(e,function(t){var e=t.exist;e&&(i[e.id]=t)}),f(e,function(e){var n=e[J];if(c.assert(!n||null==n.id||!i[n.id]||i[n.id]===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(i[n.id]=e),y(n)){var r=o(t,n,e.exist);e.keyInfo={mainType:t,subType:r}}}),f(e,function(t){var e=t.exist,n=t[J],r=t.keyInfo;if(y(n)){if(r.name=null!=n.name?n.name+"":e?e.name:"\0-",e)r.id=e.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\0"+r.name+"\0"+a++;while(i[r.id])}i[r.id]=t}})}function o(t,e,i){var n=e.type?e.type:i?i.subType:x.determineSubType(t,e);return n}function s(t){return m(t,function(t){return t.componentIndex})||[]}function l(t,e){return e.hasOwnProperty("subType")?p(t,function(t){return t.subType===e.subType}):t}function u(t){}var c=t(Be),h=t("../util/model"),d=t("./Model"),f=c.each,p=c[le],m=c.map,v=c[Z],g=c[ae],y=c[T],x=t("./Component"),_=t("./globalDefault"),M="\0_ec_inner",S=d[me]({constructor:S,init:function(t,e,i,n){i=i||{},this[J]=null,this._theme=new d(i),this._optionManager=n},setOption:function(t,e){c.assert(!(M in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this[J]&&"recreate"!==t?(this.restoreData(),this[te](r)):i.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this[te](a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[pe]&&f(o,function(t){this[te](t,e=!0)},this)}return e},mergeOption:function(t){function e(e,o){var l=h.normalizeToArray(t[e]),u=h.mappingToExists(a[e],l);r(e,u);var d=n(a,o);i[e]=[],a[e]=[],f(u,function(t,n){var r=t.exist,o=t[J];if(c.assert(y(o)||r,"Empty component definition"),o){var s=x.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.name=t.keyInfo.name,r[te](o,this),r.optionUpdated(o,!1);else{var l=c[me]({dependentModels:d,componentIndex:n},t.keyInfo);r=new s(o,this,this,l),c[me](r,l),r.init(o,this,this,l),r.optionUpdated(null,!0)}}else r[te]({},this),r.optionUpdated({},!1);a[e][n]=r,i[e][n]=r[J]},this),e===w&&(this._seriesIndices=s(a[w]))}var i=this[J],a=this._componentsMap,o=[];f(t,function(t,e){null!=t&&(x.hasClass(e)?o.push(e):i[e]=null==i[e]?c.clone(t):c.merge(i[e],t,!0))}),x.topologicalTravel(o,x.getAllClassMainTypes(),e,this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=c.clone(this[J]);return f(t,function(e,i){
          if(x.hasClass(i)){for(var e=h.normalizeToArray(e),n=e[pe]-1;n>=0;n--)h.isIdInner(e[n])&&e[b](n,1);t[i]=e}}),delete t[M],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[pe])return[];var o;if(null!=i)v(i)||(i=[i]),o=p(m(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var s=v(n);o=p(a,function(t){return s&&g(n,t.id)>=0||!s&&t.id===n})}else if(null!=r){var u=v(r);o=p(a,function(t){return u&&g(r,t.name)>=0||!u&&t.name===r})}else o=a;return l(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t[le]?p(e,t[le]):e}var n=t.query,r=t.mainType,o=e(n),s=o?this[a](o):this._componentsMap[r];return i(l(s,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===ee)i=e,e=t,f(n,function(t,n){f(t,function(t,r){e.call(i,n,t,r)})});else if(c.isString(t))f(n[t],e,i);else if(y(t)){var r=this.findComponents(t);f(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap[w];return p(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[w][t]},getSeriesByType:function(t){var e=this._componentsMap[w];return p(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[w].slice()},eachSeries:function(t,e){u(this),f(this._seriesIndices,function(i){var n=this._componentsMap[w][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap[w],t,e)},eachSeriesByType:function(t,e,i){u(this),f(this._seriesIndices,function(n){var r=this._componentsMap[w][n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return u(this),c[ae](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){u(this);var i=p(this._componentsMap[w],t,e);this._seriesIndices=s(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=s(t[w]);var e=[];f(t,function(t,i){e.push(i)}),x.topologicalTravel(e,x.getAllClassMainTypes(),function(e){f(t[e],function(t){t.restoreData()})})}});return c.mixin(S,t("./mixin/colorPalette")),S}),e("echarts/model/Series",[Ne,Be,"../util/format","../util/model","./Component","./mixin/colorPalette",L],function(t){var e=t(Be),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=t("./mixin/colorPalette"),o=t(L),s=i.encodeHTML,u=i.addCommas,c=r[me]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",init:function(t,e,i){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,n.LABEL_OPTIONS),this.fillDataTextStyle(t.data)},mergeOption:function(t,i){t=e.merge(this[J],t,!0),this.fillDataTextStyle(t.data);var n=this.getInitialData(t,i);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e<t[pe];e++)t[e]&&t[e].label&&n.defaultEmphasis(t[e].label,n.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[Re];return t&&t[F]&&t[F]()},formatTooltip:function(t,n){function r(t){var r=[];return e.each(t,function(t,e){var o,s=a.getDimensionInfo(e),l=s&&s.type;o=l===z?t+"":"time"===l?n?"":i.formatTime("yyyy/mm/dd hh:mm:ss",t):u(t),o&&r.push(o)}),r.join(", ")}var a=this._data,o=this.getRawValue(t),l=e[Z](o)?r(o):u(o),c=a[j](t),h=a[W](t,"color"),d='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+h+'"></span>',f=this.name;return"\0-"===f&&(f=""),n?d+s(this.name)+" : "+l:(f&&s(f)+"<br />")+d+(c?s(c)+" : "+l:l)},ifEnableAnimation:function(){if(o.node)return!1;var t=this[g](B);return t&&this[U]().count()>this[g]("animationThreshold")&&(t=!1),t},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(t,e){var i=this[l],n=a.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipDataIndex:null,getTooltipPosition:null});return e.mixin(c,n.dataFormatMixin),e.mixin(c,a),c}),e("echarts/view/Component",[Ne,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),n=t("../util/clazz"),r=function(){this.group=new e,this.uid=i.getUID("viewComponent")};r[ve]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[ve];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[Ne,"zrender/container/Group","../util/component","../util/clazz","../util/model",Be],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[M](e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){var r=s.queryDataIndex(t,e);null!=r?l.each(s.normalizeToArray(r),function(e){i(t[O](e),n)}):t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz"),s=t("../util/model"),l=t(Be);e[ve]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[U](),r,Q)},downplay:function(t,e,i,r){n(t[U](),r,K)},remove:function(){this.group[Ee]()},dispose:function(){}};var u=e[ve];return u.updateView=u.updateLayout=u.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e,["dispose"]),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/model",[Ne,"./format","./number","../model/Model",Be],function(t){function e(t,e){return t&&t.hasOwnProperty(e)}var i=t("./format"),n=t("./number"),r=t("../model/Model"),o=t(Be),s={};return s.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},s.defaultEmphasis=function(t,e){if(t){var i=t[Q]=t[Q]||{},n=t[K]=t[K]||{};o.each(e,function(t){var e=o[u](i[t],n[t]);null!=e&&(i[t]=e)})}},s.LABEL_OPTIONS=[xe,"show",ke,"distance","formatter"],s.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},s.isDataItemOption=function(t){return o[T](t)&&!(t instanceof Array)},s.converDataValue=function(t,e){var i=e&&e.type;return i===z?t:("time"!==i||isFinite(t)||null==t||"-"===t||(t=+n.parseDate(t)),null==t||""===t?NaN:+t)},s.createDataFormatModel=function(t,e){var i=new r;return o.mixin(i,s.dataFormatMixin),i.seriesIndex=e.seriesIndex,i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i[U]=function(){return t},i},s.dataFormatMixin={getDataParams:function(t,e){var i=this[U](e),n=this.seriesIndex,r=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i[j](t,!0),l=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:this.mainType===w?this.subType:null,seriesIndex:n,seriesName:r,name:s,dataIndex:o,data:l,dataType:e,value:a,color:i[W](t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,r){e=e||K;var a=this[U](n),o=a[X](t),s=this.getDataParams(t,n);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var l=o.get(["label",e,"formatter"]);return typeof l===ee?(s.status=e,l(s)):typeof l===re?i.formatTpl(l,s):void 0},getRawValue:function(t,e){var i=this[U](e),n=i.getRawDataItem(t);return null!=n?!o[T](n)||n instanceof Array?n:n.value:void 0},formatTooltip:o.noop},s.mappingToExists=function(t,e){e=(e||[]).slice();var i=o.map(t||[],function(t){return{exist:t}});return o.each(e,function(t,n){if(o[T](t)){for(var r=0;r<i[pe];r++)if(!i[r][J]&&null!=t.id&&i[r].exist.id===t.id+"")return i[r][J]=t,void(e[n]=null);for(var r=0;r<i[pe];r++){var a=i[r].exist;if(!(i[r][J]||null!=a.id&&null!=t.id||null==t.name||s.isIdInner(t)||s.isIdInner(a)||a.name!==t.name+""))return i[r][J]=t,void(e[n]=null)}}}),o.each(e,function(t){if(o[T](t)){for(var e=0;e<i[pe];e++){var n=i[e].exist;if(!i[e][J]&&!s.isIdInner(n)&&null==t.id){i[e][J]=t;break}}e>=i[pe]&&i.push({option:t})}}),i},s.isIdInner=function(t){return o[T](t)&&t.id&&0===(t.id+"")[ae]("\0_ec_\0")},s.compressBatches=function(t,e){function i(t,e,i){for(var n=0,r=t[pe];r>n;n++)for(var a=t[n].seriesId,o=s.normalizeToArray(t[n][P]),l=i&&i[a],u=0,c=o[pe];c>u;u++){var h=o[u];l&&l[h]?l[h]=null:(e[a]||(e[a]={}))[h]=1}}function n(t,e){var i=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)i.push(+r);else{var a=n(t[r],!0);a[pe]&&i.push({seriesId:r,dataIndex:a})}return i}var r={},a={};return i(t||[],r),i(e||[],a,r),[n(r),n(a)]},s.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e[P]?o[Z](e[P])?o.map(e[P],function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e[P]):null!=e.name?o[Z](e.name)?o.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},s.parseFinder=function(t,i,n){if(o.isString(i)){var r={};r[i+"Index"]=0,i=r}var s=n&&n.defaultMainType;!s||e(i,s+"Index")||e(i,s+"Id")||e(i,s+"Name")||(i[s+"Index"]=0);var l={};return o.each(i,function(e,n){var e=i[n];if(n===P||"dataIndexInside"===n)return void(l[n]=e);var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],o=r[1],s=r[2];if(o&&s){var u={mainType:o};u[s[I]()]=e;var c=t[a](u);l[o+"Models"]=c,l[o+"Model"]=c[0]}}),l},s}),e("zrender/tool/color",[Ne],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 i(t){return 0>t?0:t>1?1:t}function n(e){return t(e[pe]&&"%"===e.charAt(e[pe]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[pe]&&"%"===t.charAt(t[pe]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function o(t,e,i){return t+(e-t)*i}function s(t){if(t){t+="";var e=t[x](/ /g,"")[I]();if(e in g)return g[e].slice();if("#"!==e.charAt(0)){var i=e[ae]("("),a=e[ae](")");if(-1!==i&&a+1===e[pe]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),u=1;switch(o){case"rgba":if(4!==s[pe])return;u=r(s.pop());case"rgb":if(3!==s[pe])return;return[n(s[0]),n(s[1]),n(s[2]),u];case"hsla":if(4!==s[pe])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[pe])return;return l(s);default:return}}}else{if(4===e[pe]){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[pe]){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 i=(parseFloat(e[0])%360+360)%360/360,n=r(e[1]),o=r(e[2]),s=.5>=o?o*(n+1):o+n-o*n,l=2*o-s,u=[t(255*a(l,s,i+1/3)),t(255*a(l,s,i)),t(255*a(l,s,i-1/3))];return 4===e[pe]&&(u[3]=e[3]),u}function u(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function c(t,e){var i=s(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return v(i,4===i[pe]?"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 d(e,i,n){if(i&&i[pe]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[pe]-1),a=Math.floor(r),s=Math.ceil(r),l=i[a],u=i[s],c=r-a;return n[0]=t(o(l[0],u[0],c)),n[1]=t(o(l[1],u[1],c)),n[2]=t(o(l[2],u[2],c)),n[3]=t(o(l[3],u[3],c)),n}}function f(e,n,r){if(n&&n[pe]&&e>=0&&1>=e){var a=e*(n[pe]-1),l=Math.floor(a),u=Math.ceil(a),c=s(n[l]),h=s(n[u]),d=a-l,f=v([t(o(c[0],h[0],d)),t(o(c[1],h[1],d)),t(o(c[2],h[2],d)),i(o(c[3],h[3],d))],"rgba");return r?{color:f,leftIndex:l,rightIndex:u,value:a}:f}}function p(t,i,n,a){return t=s(t),t?(t=u(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),v(l(t),"rgba")):void 0}function m(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),v(t,"rgba")):void 0}function v(t,e){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}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:d,mapToColor:f,modifyHSL:p,modifyAlpha:m,stringify:v}}),e("zrender/mixin/Eventful",[Ne],function(){var t=Array[ve].slice,e=function(){this._$handlers={}};return e[ve]={constructor:e,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][pe];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!0,ctx:i||this}),this},on:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][pe];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!1,ctx:i||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][pe]},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t][pe];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][pe]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,n=i[pe];n>3&&(i=t.call(i,1));for(var r=this._$handlers[e],a=r[pe],o=0;a>o;){switch(n){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,i[1]);break;case 3:r[o].h.call(r[o].ctx,i[1],i[2]);break;default:r[o].h.apply(r[o].ctx,i)}r[o].one?(r[b](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var i=arguments,n=i[pe];n>4&&(i=t.call(i,1,i[pe]-1));for(var r=i[i[pe]-1],a=this._$handlers[e],o=a[pe],s=0;o>s;){switch(n){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,i[1]);break;case 3:a[s].h.call(r,i[1],i[2]);break;default:a[s].h.apply(r,i)}a[s].one?(a[b](s,1),o--):s++}}return this}},e}),e("echarts/visual/seriesColor",[Ne,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t){function i(i){var n=(i.visualColorAccessPath||"itemStyle.normal.color").split("."),r=i[U](),a=i.get(n)||i.getColorFromPalette(i.get("name"));r.setVisual("color",a),t.isSeriesFiltered(i)||(typeof a!==ee||a instanceof e||r.each(function(t){r.setItemVisual(t,"color",a(i.getDataParams(t)))}),r.each(function(t){var e=r[X](t),i=e.get(n,!0);null!=i&&r.setItemVisual(t,"color",i)}))}t.eachRawSeries(i)}}),e("echarts/preprocessor/backwardCompat",[Ne,Be,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[pe]&&(i=i&&i[e[n]],null!=i);n++);return i}function i(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e[pe]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){u(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(Be),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",_e]],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[w],function(t){if(r[T](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&&i(t,"itemStyle.normal.color",s)}for(var u=0;u<l[pe];u++)if(l[u]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),u(s,function(e){var i=t[e];i&&(r[Z](i)||(i=[i]),u(i,function(t){n(t)}))})}}),e("echarts/loading/default",[Ne,"../util/graphic",Be],function(t){var e=t("../util/graphic"),i=t(Be),n=Math.PI;return function(t,r){r=r||{},i[Oe](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[D],z:1e4}),o=new e.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r[D],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[D],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var l=new e.Group;return l.add(o),l.add(s),l.add(a),l.resize=function(){var e=t[Se]()/2,i=t[Me]()/2;o.setShape({cx:e,cy:i});var n=o.shape.r;s.setShape({x:e-n,y:i-n,width:2*n,height:2*n}),a.setShape({x:0,y:0,width:t[Se](),height:t[Me]()})},l.resize(),l}}),e("echarts/data/List",[Ne,"../model/Model","./DataDiffer",Be,"../util/model"],function(t){function e(t){return d[Z](t)||(t=[t]),t}function i(t,e){var i=t[V],n=new g(d.map(i,t.getDimensionInfo,t),t.hostModel);v(n,t);for(var r=n._storage={},a=t._storage,o=0;o<i[pe];o++){var s=i[o],l=a[s];r[s]=d[ae](e,s)>=0?new l.constructor(a[s][pe]):a[s]}return n}var r=n,a=typeof window===n?global:window,o=typeof a.Float64Array===r?Array:a.Float64Array,s=typeof a.Int32Array===r?Array:a.Int32Array,u={"float":o,"int":s,ordinal:Array,number:Array,time:Array},c=t("../model/Model"),h=t("./DataDiffer"),d=t(Be),f=t("../util/model"),p=d[T],m=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],v=function(t,e){d.each(m[ie](e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},g=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[pe];r++){var a,o={};typeof t[r]===re?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||ne),n.push(a),i[a]=o}this[V]=n,this._dimensionInfos=i,this.hostModel=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},y=g[ve];y.type="list",y.hasItemOption=!0,y.getDimension=function(t){return isNaN(t)||(t=this[V][t]||t),t},y.getDimensionInfo=function(t){return d.clone(this._dimensionInfos[this.getDimension(t)])},y.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[V],o=t[pe],s=this._dimensionInfos,l=[],c={};e=e||[];for(var h=0;h<a[pe];h++){var d=s[a[h]],p=u[d.type];n[a[h]]=new p(o)}var m=this;i||(m.hasItemOption=!1),i=i||function(t,e,i,n){var r=f.getDataItemValue(t);return f.isDataItemOption(t)&&(m.hasItemOption=!0),f.converDataValue(r instanceof Array?r[n]:r,s[e])};for(var v=0;v<t[pe];v++){for(var g=t[v],y=0;y<a[pe];y++){var x=a[y],_=n[x];_[v]=i(g,x,v,y)}r.push(v)}for(var h=0;h<t[pe];h++){e[h]||t[h]&&null!=t[h].name&&(e[h]=t[h].name);var b=e[h]||"",w=t[h]&&t[h].id;!w&&b&&(c[b]=c[b]||0,w=b,c[b]>0&&(w+="__ec__"+c[b]),c[b]++),w&&(l[h]=w)}this._nameList=e,this._idList=l},y.count=function(){return this.indices[pe]},y.get=function(t,e,i){var n=this._storage,r=this.indices[e];if(null==r)return NaN;var a=n[t]&&n[t][r];if(i){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},y.getValues=function(t,e,i){var n=[];d[Z](t)||(i=e,e=t,t=this[V]);for(var r=0,a=t[pe];a>r;r++)n.push(this.get(t[r],e,i));return n},y.hasValue=function(t){for(var e=this[V],i=this._dimensionInfos,n=0,r=e[pe];r>n;n++)if(i[e[n]].type!==z&&isNaN(this.get(e[n],t)))return!1;return!0},y.getDataExtent=function(t,e){t=this.getDimension(t);var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){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]},y.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},y[ae]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[pe];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},y.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[pe];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},y.indexOfRawIndex=function(t){var e=this.indices,i=e[t];if(null!=i&&i===t)return t;for(var n=0,r=e[pe]-1;r>=n;){var a=(n+r)/2|0;if(e[a]<t)n=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},y.indexOfNearest=function(t,e,i,n){var r=this._storage,a=r[t];null==n&&(n=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,i),h=Math.abs(c);n>=c&&(s>h||h===s&&c>0)&&(s=h,o=l)}return o},y.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},y.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},y[j]=function(t){return this._nameList[this.indices[t]]||""},y.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},y.each=function(t,i,n,r){typeof t===ee&&(r=n,n=i,i=t,t=[]),t=d.map(e(t),this.getDimension,this);var a=[],o=t[pe],s=this.indices;r=r||this;for(var l=0;l<s[pe];l++)switch(o){case 0:i.call(r,l);break;case 1:i.call(r,this.get(t[0],l,n),l);break;case 2:i.call(r,this.get(t[0],l,n),this.get(t[1],l,n),l);break;default:for(var u=0;o>u;u++)a[u]=this.get(t[u],l,n);a[u]=l,i.apply(r,a)}},y.filterSelf=function(t,i,n,r){typeof t===ee&&(r=n,n=i,i=t,t=[]),t=d.map(e(t),this.getDimension,this);var a=[],o=[],s=t[pe],l=this.indices;r=r||this;for(var u=0;u<l[pe];u++){var c;if(1===s)c=i.call(r,this.get(t[0],u,n),u);else{for(var h=0;s>h;h++)o[h]=this.get(t[h],u,n);o[h]=u,c=i.apply(r,o)}c&&a.push(l[u])}return this.indices=a,this._extent={},this},y.mapArray=function(t,e,i,n){typeof t===ee&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},y.map=function(t,n,r,a){t=d.map(e(t),this.getDimension,this);var o=i(this,t),s=o.indices=this.indices,l=o._storage,u=[];return this.each(t,function(){var e=arguments[arguments[pe]-1],i=n&&n.apply(this,arguments);if(null!=i){typeof i===ne&&(u[0]=i,i=u);for(var r=0;r<i[pe];r++){var a=t[r],o=l[a],c=s[e];o&&(o[c]=i[r])}}},r,a),o},y.downSample=function(t,e,n,r){for(var a=i(this,[t]),o=this._storage,s=a._storage,l=this.indices,u=a.indices=[],c=[],h=[],d=Math.floor(1/e),f=s[t],p=this.count(),m=0;m<o[t][pe];m++)s[t][m]=o[t][m];for(var m=0;p>m;m+=d){d>p-m&&(d=p-m,c[pe]=d);for(var v=0;d>v;v++){var g=l[m+v];c[v]=f[g],h[v]=g}var y=n(c),g=h[r(c,y)||0];f[g]=y,u.push(g)}return a},y[X]=function(t){var e=this.hostModel;return t=this.indices[t],new c(this._rawData[t],e,e&&e[l])},y.diff=function(t){var e=this._idList,i=t&&t._idList;return new h(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},y.getVisual=function(t){var e=this._visual;return e&&e[t]},y.setVisual=function(t,e){if(p(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},y.setLayout=function(t,e){if(p(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},y.getLayout=function(t){return this._layout[t]},y.getItemLayout=function(t){return this._itemLayouts[t]},y.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?d[me](this._itemLayouts[t]||{},e):e},y.clearItemLayouts=function(){this._itemLayouts[pe]=0},y[W]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},y.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,p(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i},y.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var x=function(t){t.seriesIndex=this.seriesIndex,t[P]=this[P],t.dataType=this.dataType};return y.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[P]=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e[_](x,e)),this._graphicEls[t]=e},y[O]=function(t){return this._graphicEls[t]},y.eachItemGraphicEl=function(t,e){d.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},y.cloneShallow=function(){var t=d.map(this[V],this.getDimensionInfo,this),e=new g(t,this.hostModel);return e._storage=this._storage,v(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=d[me]({},this._extent)),e},y.wrapMethod=function(t,e){var i=this[t];typeof i===ee&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t][ie](d.slice(arguments)))})},y.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],y.CHANGABLE_METHODS=["filterSelf"],g}),e("echarts/model/Model",[Ne,Be,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e,this[l]=i,this[J]=t}var i=t(Be),n=t("../util/clazz");e[ve]={constructor:e,init:null,mergeOption:function(t){i.merge(this[J],t,!0)},get:function(t,e){if(!t)return this[J];typeof t===re&&(t=t.split("."));for(var i=this[J],n=this.parentModel,r=0;r<t[pe]&&(!t[r]||(i=i&&"object"==typeof i?i[t[r]]:null,null!=i));r++);return null==i&&n&&!e&&(i=n.get(t)),i},getShallow:function(t,e){var i=this[J],n=null==i?i:i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[g](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[De](t),this[l]);return a},isEmpty:function(){return null==this[J]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[J]))},setReadOnly:function(t){n.setReadOnly(this,t)}},n.enableClassExtend(e);var r=i.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/core/matrix",[],function(){var t=typeof Float32Array===n?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},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,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+o*u,t[1]=-n*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,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e("zrender/core/vector",[],function(){var t=typeof Float32Array===n?Array:Float32Array,e={create:function(e,i){var n=new t(2);return null==e&&(e=0),null==i&&(i=0),n[0]=e,n[1]=i,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[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,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),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,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];
          return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[pe]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("zrender/tool/path",[Ne,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,f,v){var g=l*(d/180),y=h(g)*(t-i)/2+c(g)*(e-n)/2,x=-1*c(g)*(t-i)/2+h(g)*(e-n)/2,_=y*y/(o*o)+x*x/(s*s);_>1&&(o*=u(_),s*=u(_));var b=(r===a?-1:1)*u((o*o*s*s-o*o*x*x-s*s*y*y)/(o*o*x*x+s*s*y*y))||0,w=b*o*x/s,M=b*-s*y/o,S=(t+i)/2+h(g)*w-c(g)*M,T=(e+n)/2+c(g)*w+h(g)*M,C=m([1,0],[(y-w)/o,(x-M)/s]),P=[(y-w)/o,(x-M)/s],A=[(-1*y-w)/o,(-1*x-M)/s],I=m(P,A);p(P,A)<=-1&&(I=d),p(P,A)>=1&&(I=0),0===a&&I>0&&(I-=2*d),1===a&&0>I&&(I+=2*d),v.addData(f,S,T,o,s,C,I,g,a)}function i(t){if(!t)return[];var i,n=t[x](/-/g," -")[x](/  /g," ")[x](/ /g,",")[x](/,,/g,",");for(i=0;i<l[pe];i++)n=n[x](new RegExp(l[i],"g"),"|"+l[i]);var r,o=n.split("|"),s=0,u=0,c=new a,h=a.CMD;for(i=1;i<o[pe];i++){var d,f=o[i],p=f.charAt(0),m=0,v=f.slice(1)[x](/e,-/g,"e-").split(",");v[pe]>0&&""===v[0]&&v.shift();for(var g=0;g<v[pe];g++)v[g]=parseFloat(v[g]);for(;m<v[pe]&&!isNaN(v[m])&&!isNaN(v[0]);){var y,_,b,w,M,S,T,C=s,P=u;switch(p){case"l":s+=v[m++],u+=v[m++],d=h.L,c.addData(d,s,u);break;case"L":s=v[m++],u=v[m++],d=h.L,c.addData(d,s,u);break;case"m":s+=v[m++],u+=v[m++],d=h.M,c.addData(d,s,u),p="l";break;case"M":s=v[m++],u=v[m++],d=h.M,c.addData(d,s,u),p="L";break;case"h":s+=v[m++],d=h.L,c.addData(d,s,u);break;case"H":s=v[m++],d=h.L,c.addData(d,s,u);break;case"v":u+=v[m++],d=h.L,c.addData(d,s,u);break;case"V":u=v[m++],d=h.L,c.addData(d,s,u);break;case"C":d=h.C,c.addData(d,v[m++],v[m++],v[m++],v[m++],v[m++],v[m++]),s=v[m-2],u=v[m-1];break;case"c":d=h.C,c.addData(d,v[m++]+s,v[m++]+u,v[m++]+s,v[m++]+u,v[m++]+s,v[m++]+u),s+=v[m-2],u+=v[m-1];break;case"S":y=s,_=u;var A=c.len(),I=c.data;r===h.C&&(y+=s-I[A-4],_+=u-I[A-3]),d=h.C,C=v[m++],P=v[m++],s=v[m++],u=v[m++],c.addData(d,y,_,C,P,s,u);break;case"s":y=s,_=u;var A=c.len(),I=c.data;r===h.C&&(y+=s-I[A-4],_+=u-I[A-3]),d=h.C,C=s+v[m++],P=u+v[m++],s+=v[m++],u+=v[m++],c.addData(d,y,_,C,P,s,u);break;case"Q":C=v[m++],P=v[m++],s=v[m++],u=v[m++],d=h.Q,c.addData(d,C,P,s,u);break;case"q":C=v[m++]+s,P=v[m++]+u,s+=v[m++],u+=v[m++],d=h.Q,c.addData(d,C,P,s,u);break;case"T":y=s,_=u;var A=c.len(),I=c.data;r===h.Q&&(y+=s-I[A-4],_+=u-I[A-3]),s=v[m++],u=v[m++],d=h.Q,c.addData(d,y,_,s,u);break;case"t":y=s,_=u;var A=c.len(),I=c.data;r===h.Q&&(y+=s-I[A-4],_+=u-I[A-3]),s+=v[m++],u+=v[m++],d=h.Q,c.addData(d,y,_,s,u);break;case"A":b=v[m++],w=v[m++],M=v[m++],S=v[m++],T=v[m++],C=s,P=u,s=v[m++],u=v[m++],d=h.A,e(C,P,s,u,S,T,b,w,M,d,c);break;case"a":b=v[m++],w=v[m++],M=v[m++],S=v[m++],T=v[m++],C=s,P=u,s+=v[m++],u+=v[m++],d=h.A,e(C,P,s,u,S,T,b,w,M,d,c)}}("z"===p||"Z"===p)&&(d=h.Z,c.addData(d)),r=d}return c.toStatic(),c}function n(t,e){var n,r=i(t);return e=e||{},e.buildPath=function(t){t.setData(r.data),n&&o(t,n);var e=t[oe]();e&&t.rebuildPath(e)},e[v]=function(t){n||(n=s[de]()),s.mul(n,t,n),this.dirty(!0)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),s=t("../core/matrix"),l=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],u=Math.sqrt,c=Math.sin,h=Math.cos,d=Math.PI,f=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},p=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(f(t)*f(e))},m=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p(t,e))};return{createFromString:function(t,e){return new r(n(t,e))},extendFromString:function(t,e){return r[me](n(t,e))},mergePath:function(t,e){for(var i=[],n=t[pe],a=0;n>a;a++){var o=t[a];o.__dirty&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var s=new r(e);return s.buildPath=function(t){t.appendPath(i);var e=t[oe]();e&&t.rebuildPath(e)},s}}}),e("zrender/graphic/Path",[Ne,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){i.call(this,t),this.path=new a}var i=t("./Displayable"),n=t("../core/util"),a=t("../core/PathProxy"),o=t("../contain/path"),l=t("./Pattern"),u=l[ve].getCanvasPattern,c=Math.abs;return e[ve]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,n=this.path,r=i.hasStroke(),a=i.hasFill(),o=i.fill,s=i[m],l=a&&!!o[C],c=r&&!!s[C],h=a&&!!o.image,d=r&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var f=this[Ae]();l&&(this._fillGradient=i.getGradient(t,o,f)),c&&(this._strokeGradient=i.getGradient(t,s,f))}l?t.fillStyle=this._fillGradient:h&&(t.fillStyle=u.call(o,t)),c?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=u.call(s,t));var p=i.lineDash,v=i.lineDashOffset,g=!!t.setLineDash,y=this.getGlobalScale();n.setScale(y[0],y[1]),this.__dirtyPath||p&&!g&&r?(n=this.path.beginPath(t),p&&!g&&(n.setLineDash(p),n.setLineDashOffset(v)),this.buildPath(n,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),a&&n.fill(t),p&&g&&(t.setLineDash(p),t.lineDashOffset=v),r&&n[m](t),p&&g&&t.setLineDash([]),this.restoreTransform(t),(i.text||0===i.text)&&this.drawRectText(t,this[Ae]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n[Ae]()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){r.copy(t);var a=e.lineWidth,o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),o>1e-10&&(r.width+=a/o,r[Pe]+=a/o,r.x-=a/o/2,r.y-=a/o/2)}return r}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this[Ae](),r=this.style;if(t=i[0],e=i[1],n[fe](t,e)){var a=this.path.data;if(r.hasStroke()){var s=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(r.hasFill())return o[fe](a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr[r](),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i[ve].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(n[T](t))for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[s];return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},e[me]=function(t){var i=function(i){e.call(this,i),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var a in n)!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&(r[a]=n[a])}t.init&&t.init.call(this,i)};n[y](i,e);for(var r in t)"style"!==r&&"shape"!==r&&(i[ve][r]=t[r]);return i},n[y](e,i),e}),e("zrender/graphic/Image",[Ne,"./Displayable","../core/BoundingRect","../core/util","../core/LRU"],function(t){function e(t){i.call(this,t)}var i=t("./Displayable"),n=t("../core/BoundingRect"),r=t("../core/util"),a=t("../core/LRU"),o=new a(50);return e[ve]={constructor:e,type:"image",brush:function(t,e){var i,n=this.style,r=n.image;if(n.bind(t,this,e),i=typeof r===re?this._image:r,!i&&r){var a=o.get(r);if(!a)return i=new Image,i.onload=function(){i.onload=null;for(var t=0;t<a.pending[pe];t++)a.pending[t].dirty()},a={image:i,pending:[this]},i.src=r,o.put(r,a),void(this._image=i);if(i=a.image,this._image=i,!i.width||!i[Pe])return void a.pending.push(this)}if(i){var s=n.width||i.width,l=n[Pe]||i[Pe],u=n.x||0,c=n.y||0;if(!i.width||!i[Pe])return;if(this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,d=n.sy||0;t.drawImage(i,h,d,n.sWidth,n.sHeight,u,c,s,l)}else if(n.sx&&n.sy){var h=n.sx,d=n.sy,f=s-h,p=l-d;t.drawImage(i,h,d,f,p,u,c,s,l)}else t.drawImage(i,u,c,s,l);null==n.width&&(n.width=s),null==n[Pe]&&(n[Pe]=l),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this[Ae]())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new n(t.x||0,t.y||0,t.width||0,t[Pe]||0)),this._rect}},r[y](e,i),e}),e("zrender/graphic/Text",[Ne,"./Displayable","../core/util","../contain/text"],function(t){var e=t("./Displayable"),i=t("../core/util"),n=t("../contain/text"),r=function(t){e.call(this,t)};return r[ve]={constructor:r,type:"text",brush:function(t,e){var i=this.style,r=i.x||0,a=i.y||0,o=i.text;if(null!=o&&(o+=""),i.bind(t,this,e),o){this.setTransform(t);var s,l=i[ze],u=i.textFont||i.font;if(i.textVerticalAlign){var c=n[Ae](o,u,i[ze],"top");switch(s=we,i.textVerticalAlign){case we:a-=c[Pe]/2-c.lineHeight/2;break;case _e:a-=c[Pe]-c.lineHeight/2;break;default:a+=c.lineHeight/2}}else s=i.textBaseline;t.font=u||"12px sans-serif",t[ze]=l||"left",t[ze]!==l&&(t[ze]="left"),t.textBaseline=s||"alphabetic",t.textBaseline!==s&&(t.textBaseline="alphabetic");for(var h=n.measureText("国",t.font).width,d=o.split("\n"),f=0;f<d[pe];f++)i.hasFill()&&t.fillText(d[f],r,a),i.hasStroke()&&t.strokeText(d[f],r,a),a+=h;this.restoreTransform(t)}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=n[Ae](t.text+"",t.textFont||t.font,t[ze],e?"top":t.textBaseline);switch(e){case we:i.y-=i[Pe]/2;break;case _e:i.y-=i[Pe]}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},i[y](r,e),r}),e("zrender/graphic/shape/Circle",[Ne,"../Path"],function(t){return t("../Path")[me]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&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",[Ne,"../Path"],function(t){return t("../Path")[me]({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),d=Math.sin(l);t[o](h*a+n,d*a+r),t[i](h*s+n,d*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",[Ne,"../Path"],function(t){return t("../Path")[me]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t[o](i+e.r,n),t.arc(i,n,e.r,0,r,!1),t[o](i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}})}),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,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;n>a&&r(t[a],t[a-1])<0;)a++;i(t,e,a)}else for(;n>a&&r(t[a],t[a-1])>=0;)a++;return a-e}function i(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function n(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var a,o=t[n],s=e,l=n;l>s;)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function r(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])>0){for(s=n-r;s>l&&a(t,e[i+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[i+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[i+c])>0?o=c+1:l=c}return l}function a(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])<0){for(s=r+1;s>l&&a(t,e[i+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=n-r;s>l&&a(t,e[i+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[i+c])<0?l=c:o=c+1}return l}function o(t,e){function i(t,e){d[y]=t,f[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&f[t-1]<=f[t]+f[t+1]||t>=2&&f[t-2]<=f[t]+f[t-1])f[t-1]<f[t+1]&&t--;else if(f[t]>f[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&f[t-1]<f[t+1]&&t--,s(t)}}function s(i){var n=d[i],o=f[i],s=d[i+1],u=f[i+1];f[i]=o+u,i===y-3&&(d[i+1]=d[i+2],f[i+1]=f[i+2]),y--;var c=a(t[s],t,n,o,0,e);n+=c,o-=c,0!==o&&(u=r(t[n+o-1],t,s,u,u-1,e),0!==u&&(u>=o?l(n,o,s,u):h(n,o,s,u)))}function l(i,n,o,s){var l=0;for(l=0;n>l;l++)x[l]=t[i+l];var c=0,h=o,d=i;if(t[d++]=t[h++],0!==--s){if(1===n){for(l=0;s>l;l++)t[d+l]=t[h+l];return void(t[d+s]=x[c])}for(var f,m,v,g=p;;){f=0,m=0,v=!1;do if(e(t[h],x[c])<0){if(t[d++]=t[h++],m++,f=0,0===--s){v=!0;break}}else if(t[d++]=x[c++],f++,m=0,1===--n){v=!0;break}while(g>(f|m));if(v)break;do{if(f=a(t[h],x,c,n,0,e),0!==f){for(l=0;f>l;l++)t[d+l]=x[c+l];if(d+=f,c+=f,n-=f,1>=n){v=!0;break}}if(t[d++]=t[h++],0===--s){v=!0;break}if(m=r(x[c],t,h,s,0,e),0!==m){for(l=0;m>l;l++)t[d+l]=t[h+l];if(d+=m,h+=m,s-=m,0===s){v=!0;break}}if(t[d++]=x[c++],1===--n){v=!0;break}g--}while(f>=u||m>=u);if(v)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===n){for(l=0;s>l;l++)t[d+l]=t[h+l];t[d+s]=x[c]}else{if(0===n)throw new Error;for(l=0;n>l;l++)t[d+l]=x[c+l]}}else for(l=0;n>l;l++)t[d+l]=x[c+l]}function h(i,n,o,s){var l=0;for(l=0;s>l;l++)x[l]=t[o+l];var c=i+n-1,h=s-1,d=o+s-1,f=0,m=0;if(t[d--]=t[c--],0!==--n){if(1===s){for(d-=n,c-=n,m=d+1,f=c+1,l=n-1;l>=0;l--)t[m+l]=t[f+l];return void(t[d]=x[h])}for(var v=p;;){var g=0,y=0,_=!1;do if(e(x[h],t[c])<0){if(t[d--]=t[c--],g++,y=0,0===--n){_=!0;break}}else if(t[d--]=x[h--],y++,g=0,1===--s){_=!0;break}while(v>(g|y));if(_)break;do{if(g=n-a(x[h],t,i,n,n-1,e),0!==g){for(d-=g,c-=g,n-=g,m=d+1,f=c+1,l=g-1;l>=0;l--)t[m+l]=t[f+l];if(0===n){_=!0;break}}if(t[d--]=x[h--],1===--s){_=!0;break}if(y=s-r(t[c],x,0,s,s-1,e),0!==y){for(d-=y,h-=y,s-=y,m=d+1,f=h+1,l=0;y>l;l++)t[m+l]=x[f+l];if(1>=s){_=!0;break}}if(t[d--]=t[c--],0===--n){_=!0;break}v--}while(g>=u||y>=u);if(_)break;0>v&&(v=0),v+=2}if(p=v,1>p&&(p=1),1===s){for(d-=n,c-=n,m=d+1,f=c+1,l=n-1;l>=0;l--)t[m+l]=t[f+l];t[d]=x[h]}else{if(0===s)throw new Error;for(f=d-(s-1),l=0;s>l;l++)t[f+l]=x[l]}}else for(f=d-(s-1),l=0;s>l;l++)t[f+l]=x[l]}var d,f,p=u,m=0,v=c,g=0,y=0;m=t[pe],2*c>m&&(v=m>>>1);var x=[];g=120>m?5:1542>m?10:119151>m?19:40,d=[],f=[],this.mergeRuns=n,this.forceMergeRuns=o,this.pushRun=i}function s(i,r,a,s){a||(a=0),s||(s=i[pe]);var u=s-a;if(!(2>u)){var c=0;if(l>u)return c=e(i,a,s,r),void n(i,a,s,a+c,r);var h=new o(i,r),d=t(u);do{if(c=e(i,a,s,r),d>c){var f=u;f>d&&(f=d),n(i,a,a+f,a+c,r),c=f}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("zrender/graphic/shape/Polygon",[Ne,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[me]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Polyline",[Ne,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[me]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e.buildPath(t,i,!1)}})}),e("zrender/graphic/shape/Rect",[Ne,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[me]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[Pe];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/Line",[Ne,"../Path"],function(t){return t("../Path")[me]({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",[Ne,"../../core/curve","../../core/vector","../Path"],function(t){function e(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?c:l)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?c:l)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?u:s)(t.x1,t.cpx1,t.x2,e),(i?u:s)(t.y1,t.cpy1,t.y2,e)]}var i=t("../../core/curve"),n=t("../../core/vector"),r=i.quadraticSubdivide,a=i.cubicSubdivide,s=i.quadraticAt,l=i.cubicAt,u=i.quadraticDerivativeAt,c=i.cubicDerivativeAt,h=[];return t("../Path")[me]({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 i=e.x1,n=e.y1,s=e.x2,l=e.y2,u=e.cpx1,c=e.cpy1,d=e.cpx2,f=e.cpy2,p=e.percent;0!==p&&(t[o](i,n),null==d||null==f?(1>p&&(r(i,u,s,p,h),u=h[1],s=h[2],r(n,c,l,p,h),c=h[1],l=h[2]),t.quadraticCurveTo(u,c,s,l)):(1>p&&(a(i,u,d,s,p,h),u=h[1],d=h[2],s=h[3],a(n,c,f,l,p,h),c=h[1],f=h[2],l=h[3]),t.bezierCurveTo(u,c,d,f,s,l)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var i=e(this.shape,t,!0);return n.normalize(i,i)}})}),e("zrender/graphic/Gradient",[Ne],function(){var t=function(t){this[C]=t||[]};return t[ve]={constructor:t,addColorStop:function(t,e){this[C].push({offset:t,color:e})}},t}),e("zrender/graphic/shape/Arc",[Ne,"../Path"],function(t){return t("../Path")[me]({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 i=e.cx,n=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+i,c*r+n),t.arc(i,n,r,a,s,!l)}})}),e("zrender/graphic/CompoundPath",[Ne,"./Path"],function(t){var e=t("./Path");return e[me]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e[pe];i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t[pe];i++)t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i[pe];n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[pe];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[ve][Ae].call(this)}})}),e("zrender/graphic/LinearGradient",[Ne,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=o||!1,i.call(this,a)};return n[ve]={constructor:n},e[y](n,i),n}),e("zrender/graphic/RadialGradient",[Ne,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,i.call(this,r)};return n[ve]={constructor:n},e[y](n,i),n}),e("zrender/container/Group",[Ne,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),i=t("../Element"),n=t("../core/BoundingRect"),a=function(t){t=t||{},i.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};return a[ve]={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,i=0;i<e[pe];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[pe]},add:function(t){return t&&t!==this&&t[f]!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t[f]!==this&&e&&e[f]===this){var i=this._children,n=i[ae](e);n>=0&&(i[b](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t[f]&&t[f][E](t),t[f]=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),i&&i[r]()},remove:function(t){var i=this.__zr,n=this.__storage,o=this._children,s=e[ae](o,t);return 0>s?this:(o[b](s,1),t[f]=null,n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),i&&i[r](),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[pe];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),t[f]=null;return i[pe]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[pe];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[pe];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n[_](t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[pe];e++){var i=this._children[e];t.addToMap(i),i instanceof a&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[pe];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof a&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr[r](),this},getBoundingRect:function(t){for(var e=null,i=new n(0,0,0,0),r=t||this._children,a=[],o=0;o<r[pe];o++){var s=r[o];if(!s[k]&&!s.invisible){var l=s[Ae](),u=s.getLocalTransform(a);u?(i.copy(l),i[v](u),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[y](a,i),a}),e("zrender/core/BoundingRect",[Ne,"./vector","./matrix"],function(t){function e(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this[Pe]=n}var i=t("./vector"),n=t("./matrix"),r=i[v],a=Math.min,o=Math.abs,s=Math.max;return e[ve]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this[Pe]=s(t.y+t[Pe],this.y+this[Pe])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[Pe],r(t,t,i),r(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=o(e[0]-t[0]),this[Pe]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[Pe]/e[Pe],a=n[de]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){t instanceof e||(t=e[de](t));var i=this,n=i.x,r=i.x+i.width,a=i.y,o=i.y+i[Pe],s=t.x,l=t.x+t.width,u=t.y,c=t.y+t[Pe];return!(s>r||n>l||u>o||a>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[Pe]},clone:function(){return new e(this.x,this.y,this.width,this[Pe])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[Pe]=t[Pe]},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this[Pe]}}},e[de]=function(t){return new e(t.x,t.y,t.width,t[Pe])},e}),e("echarts/component/toolbox/featureManager",[Ne],function(){var t={};return{register:function(e,i){t[e]=i},get:function(e){return t[e]}}}),e("zrender/core/PathProxy",[Ne,"./curve","./vector","./bbox","./BoundingRect","../config"],function(t){var e=t("./curve"),r=t("./vector"),a=t("./bbox"),s=t("./BoundingRect"),l=t("../config").devicePixelRatio,u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],h=[],d=[],f=[],p=Math.min,v=Math.max,g=Math.cos,y=Math.sin,x=Math.sqrt,_=Math.abs,b=typeof Float32Array!=n,w=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 w[ve]={constructor:w,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=_(1/l/t)||0,this._uy=_(1/l/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(u.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=_(t-this._xi)>this._ux||_(e-this._yi)>this._uy||this._len<5;return this.addData(u.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,i,n,r,a){return this.addData(u.C,t,e,i,n,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,a):this._ctx.bezierCurveTo(t,e,i,n,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData(u.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,a){return this.addData(u.A,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=g(r)*i+t,this._xi=y(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(u.R,t,e,i,n),this},closePath:function(){this.addData(u.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t[m](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[pe];i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[pe];this.data&&this.data[pe]==e||!b||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[pe],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();b&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[pe];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[pe]>e[pe]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[pe];i++)e[this._len++]=arguments[i];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,d=t-c,f=e-h,m=x(d*d+f*f),g=c,y=h,_=l[pe];for(d/=m,f/=m,0>s&&(s=a+s),s%=a,g-=s*d,y-=s*f;d>0&&t>=g||0>d&&g>=t||0==d&&(f>0&&e>=y||0>f&&y>=e);)r=this._dashIdx,n=l[r],g+=d*n,y+=f*n,this._dashIdx=(r+1)%_,d>0&&c>g||0>d&&g>c||f>0&&h>y||0>f&&y>h||u[r%2?o:i](d>=0?p(g,t):v(g,t),f>=0?p(y,e):v(y,e));d=g-t,f=y-e,this._dashOffset=-x(d*d+f*f)},_dashedBezierTo:function(t,n,r,a,s,l){var u,c,h,d,f,p=this._dashSum,m=this._dashOffset,v=this._lineDash,g=this._ctx,y=this._xi,_=this._yi,b=e.cubicAt,w=0,M=this._dashIdx,S=v[pe],T=0;for(0>m&&(m=p+m),m%=p,u=0;1>u;u+=.1)c=b(y,t,r,s,u+.1)-b(y,t,r,s,u),h=b(_,n,a,l,u+.1)-b(_,n,a,l,u),w+=x(c*c+h*h);for(;S>M&&(T+=v[M],!(T>m));M++);for(u=(T-m)/w;1>=u;)d=b(y,t,r,s,u),f=b(_,n,a,l,u),M%2?g[o](d,f):g[i](d,f),u+=v[M]/w,M=(M+1)%S;M%2!==0&&g[i](s,l),c=s-d,h=l-f,this._dashOffset=-x(c*c+h*h)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[pe]=this._len,b&&(this.data=new Float32Array(t)))},getBoundingRect:function(){c[0]=c[1]=d[0]=d[1]=Number.MAX_VALUE,h[0]=h[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,o=0,l=0;l<t[pe];){var p=t[l++];switch(1==l&&(e=t[l],i=t[l+1],n=e,o=i),p){case u.M:n=t[l++],o=t[l++],e=n,i=o,d[0]=n,d[1]=o,f[0]=n,f[1]=o;break;case u.L:a.fromLine(e,i,t[l],t[l+1],d,f),e=t[l++],i=t[l++];break;case u.C:a.fromCubic(e,i,t[l++],t[l++],t[l++],t[l++],t[l],t[l+1],d,f),e=t[l++],i=t[l++];break;case u.Q:a.fromQuadratic(e,i,t[l++],t[l++],t[l],t[l+1],d,f),e=t[l++],i=t[l++];break;case u.A:var m=t[l++],v=t[l++],x=t[l++],_=t[l++],b=t[l++],w=t[l++]+b,M=(t[l++],1-t[l++]);1==l&&(n=g(b)*x+m,o=y(b)*_+v),a.fromArc(m,v,x,_,b,w,M,d,f),e=g(w)*x+m,i=y(w)*_+v;break;case u.R:n=e=t[l++],o=i=t[l++];var S=t[l++],T=t[l++];a.fromLine(n,o,n+S,o+T,d,f);break;case u.Z:e=n,i=o}r.min(c,c,d),r.max(h,h,f)}return 0===l&&(c[0]=c[1]=h[0]=h[1]=0),new s(c[0],c[1],h[0]-c[0],h[1]-c[1])},rebuildPath:function(t){for(var e,n,r,a,s,l,c=this.data,h=this._ux,d=this._uy,f=this._len,p=0;f>p;){var m=c[p++];switch(1==p&&(r=c[p],a=c[p+1],e=r,n=a),m){case u.M:e=r=c[p++],n=a=c[p++],t[o](r,a);break;case u.L:s=c[p++],l=c[p++],(_(s-r)>h||_(l-a)>d||p===f-1)&&(t[i](s,l),r=s,a=l);break;case u.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 u.Q:t.quadraticCurveTo(c[p++],c[p++],c[p++],c[p++]),r=c[p-2],a=c[p-1];break;case u.A:var v=c[p++],x=c[p++],b=c[p++],w=c[p++],M=c[p++],S=c[p++],T=c[p++],C=c[p++],P=b>w?b:w,A=b>w?1:b/w,I=b>w?w/b:1,L=Math.abs(b-w)>.001,z=M+S;L?(t.translate(v,x),t.rotate(T),t.scale(A,I),t.arc(0,0,P,M,z,1-C),t.scale(1/A,1/I),t.rotate(-T),t.translate(-v,-x)):t.arc(v,x,P,M,z,1-C),1==p&&(e=g(M)*b+v,n=y(M)*w+x),r=g(z)*b+v,a=y(z)*w+x;break;case u.R:e=r=c[p],n=a=c[p+1],t.rect(c[p++],c[p++],c[p++],c[p++]);break;case u.Z:t.closePath(),r=e,a=n}}}},w.CMD=u,w}),e("zrender/contain/text",[Ne,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(o[i])return o[i];for(var n=(t+"").split("\n"),r=0,a=0,u=n[pe];u>a;a++)r=Math.max(f.measureText(n[a],e).width,r);return s>l&&(s=0,o={}),s++,o[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[pe],o=e(t,i),s=e("国",i),l=a*s,u=new h(0,0,o,l);switch(u.lineHeight=s,r){case _e:case"alphabetic":u.y-=s;break;case we:u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case be:u.x-=u.width/2}return u}function n(t,e,i,n){var r=e.x,a=e.y,o=e[Pe],s=e.width,l=i[Pe],u=o/2-l/2,c="left";switch(t){case"left":r-=n,a+=u,c="right";break;case"right":r+=n+s,a+=u,c="left";break;case"top":r+=s/2,a-=n+l,c=be;break;case _e:r+=s/2,a+=o+n,c=be;break;case p:r+=s/2,a+=u,c=be;break;case"insideLeft":r+=n,a+=u,c="left";break;case"insideRight":r+=s-n,a+=u,c="right";break;case"insideTop":r+=s/2,a+=n,c=be;break;case"insideBottom":r+=s/2,a+=o-l-n,c=be;break;case"insideTopLeft":r+=n,a+=n,c="left";break;case"insideTopRight":r+=s-n,a+=n,c="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,c="right"}return{x:r,y:a,textAlign:c,textBaseline:"top"}}function r(t,i,n,r,o){if(!i)return"";o=o||{},r=d(r,"...");for(var s=d(o.maxIterations,2),l=d(o.minChar,0),u=e("国",n),c=e("a",n),h=d(o.placeholder,""),f=i=Math.max(0,i-1),p=0;l>p&&f>=c;p++)f-=c;var m=e(r);m>f&&(r="",m=0),f=i-m;for(var v=(t+"").split("\n"),p=0,g=v[pe];g>p;p++){var y=v[p],x=e(y,n);if(!(i>=x)){for(var _=0;;_++){if(f>=x||_>=s){y+=r;break}var b=0===_?a(y,f,c,u):x>0?Math.floor(y[pe]*f/x):0;y=y.substr(0,b),x=e(y,n)}""===y&&(y=h),v[p]=y}}return v.join("\n")}function a(t,e,i,n){for(var r=0,a=0,o=t[pe];o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?i:n}return a}var o={},s=0,l=5e3,c=t("../core/util"),h=t("../core/BoundingRect"),d=c[u],f={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,truncateText:r,measureText:function(t,e){var i=c[oe]();return i.font=e||"12px sans-serif",i.measureText(t)}};return f}),e("zrender/graphic/Displayable",[Ne,"../core/util","./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 n(t.style),this._rect=null,this.__clipPaths=[]}var i=t("../core/util"),n=t("./Style"),a=t("../Element"),o=t("./mixin/RectText");return e[ve]={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 i=this.transformCoordToLocal(t,e),n=this[Ae]();return n[fe](i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr[r]()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a[ve].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 n(t),this.dirty(!1),this}},i[y](e,a),i.mixin(e,o),e}),e("zrender/vml/core",[Ne,"exports","module","../core/env"],function(t,e,i){if(!t("../core/env")[A]){var n,r="urn:schemas-microsoft-com:vml",a=window,o=a.document,s=!1;try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",r),n=function(t){return o[se]("<zrvml:"+t+' class="zrvml">')}}catch(l){n=function(t){return o[se]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var u=function(){if(!s){
      s=!0;var t=o.styleSheets;t[pe]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};i.exports={doc:o,initVML:u,createNode:n}}}),e("echarts/util/clazz",[Ne,Be],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[ve][e].apply(t,i)}function i(t,e,i){return this.superClass[ve][e].apply(t,i)}var n=t(Be),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[me]=function(t){var r=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):r.apply(this,arguments)};return n[me](a[ve],t),a[me]=this[me],a.superCall=e,a.superApply=i,n[y](a,this),a.superClass=r,a}},r.enableClassManagement=function(t,e){function i(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 n=i(e);n[e.sub]=t}}else r[e.main]=t;return t},t.getClass=function(t,e,i){var n=r[t];if(n&&n[o]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return n},t.getClassesByMainType=function(t){t=s(t);var e=[],i=r[t.main];return i&&i[o]?n.each(i,function(t,i){i!==o&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=s(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return n.each(r,function(e,i){t.push(i)}),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[me];a&&(t[me]=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t},r.setReadOnly=function(){},r}),e("zrender/graphic/mixin/RectText",[Ne,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===re?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var i=t("../../contain/text"),n=t("../../core/BoundingRect"),r=new n,a=function(){};return a[ve]={constructor:a,drawRectText:function(t,n,a){var o=this.style,l=o.text;if(null!=l&&(l+=""),l){t.save();var u,c,h=o.textPosition,d=o.textDistance,f=o[ze],p=o.textFont||o.font,m=o.textBaseline,g=o.textVerticalAlign;a=a||i[Ae](l,p,f,m);var y=this[s];if(o.textTransform?this.setTransform(t):y&&(r.copy(n),r[v](y),n=r),h instanceof Array){if(u=n.x+e(h[0],n.width),c=n.y+e(h[1],n[Pe]),f=f||"left",m=m||"top",g){switch(g){case we:c-=a[Pe]/2-a.lineHeight/2;break;case _e:c-=a[Pe]-a.lineHeight/2;break;default:c+=a.lineHeight/2}m=we}}else{var x=i.adjustTextPositionOnRect(h,n,a,d);u=x.x,c=x.y,f=f||x[ze],m=m||x.textBaseline}t[ze]=f||"left",t.textBaseline=m||"alphabetic";var _=o.textFill,b=o.textStroke;_&&(t.fillStyle=_),b&&(t.strokeStyle=b),t.font=p||"12px sans-serif",t.shadowBlur=o.textShadowBlur,t.shadowColor=o.textShadowColor||"transparent",t.shadowOffsetX=o.textShadowOffsetX,t.shadowOffsetY=o.textShadowOffsetY;var w=l.split("\n");o.textRotation&&(y&&t.translate(y[4],y[5]),t.rotate(o.textRotation),y&&t.translate(-y[4],-y[5]));for(var M=0;M<w[pe];M++)_&&t.fillText(w[M],u,c),b&&t.strokeText(w[M],u,c),c+=a.lineHeight;t.restore()}}},a}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==n&&(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/model/mixin/colorPalette",[],function(){return{clearColorPalette:function(){this._colorIdx=0,this._colorNameMap={}},getColorFromPalette:function(t,e){e=e||this;var i=e._colorIdx||0,n=e._colorNameMap||(e._colorNameMap={});if(n[t])return n[t];var r=this.get("color",!0)||[];if(r[pe]){var a=r[i];return t&&(n[t]=a),e._colorIdx=(i+1)%r[pe],a}}}}),e("echarts/model/mixin/lineStyle",[Ne,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["lineWidth","width"],[m,"color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash(i.lineWidth);return n&&(i.lineDash=n),i},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}}}),e("echarts/model/mixin/areaStyle",[Ne,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[Ne,"zrender/contain/text"],function(t){function e(t,e){return t&&t[g](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this[l];return this[g]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[l],i=t&&t[De](ke);return[this[g]("fontStyle")||e(i,"fontStyle"),this[g]("fontWeight")||e(i,"fontWeight"),(this[g]("fontSize")||e(i,"fontSize")||12)+"px",this[g]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(ke)||{};return i[Ae](t,this[Le](),e.align,e.baseline)},truncateText:function(t,e,n,r){return i.truncateText(t,e,this[Le](),n,r)}}}),e("echarts/model/mixin/itemStyle",[Ne,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["fill","color"],[m,"borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],[ze]]);return{getItemStyle:function(t){var i=e.call(this,t),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/tool/transformPath",[Ne,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,u,c,h,d,f=t.data,p=i.M,m=i.C,v=i.L,g=i.R,y=i.A,x=i.Q;for(u=0,c=0;u<f[pe];){switch(n=f[u++],c=u,l=0,n){case p:l=1;break;case v:l=1;break;case m:l=3;break;case x:l=2;break;case y:var _=e[4],b=e[5],w=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]/w);f[u++]+=_,f[u++]+=b,f[u++]*=w,f[u++]*=M,f[u++]+=S,f[u++]+=S,u+=2,c=u;break;case g:d[0]=f[u++],d[1]=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1],d[0]+=f[u++],d[1]+=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1]}for(h=0;l>h;h++){var d=a[h];d[0]=f[u++],d[1]=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[v],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/contain/path",[Ne,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=x[0];x[0]=x[1],x[1]=t}function n(t,e,n,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=f.cubicRootAt(e,r,o,l,c,y);if(0===h)return 0;for(var d,p,m=0,v=-1,g=0;h>g;g++){var _=y[g],b=0===_||1===_?.5:1,w=f.cubicAt(t,n,a,s,_);u>w||(0>v&&(v=f.cubicExtrema(e,r,o,l,x),x[1]<x[0]&&v>1&&i(),d=f.cubicAt(e,r,o,l,x[0]),v>1&&(p=f.cubicAt(e,r,o,l,x[1]))),m+=2==v?_<x[0]?e>d?b:-b:_<x[1]?d>p?b:-b:p>l?b:-b:_<x[0]?e>d?b:-b:d>l?b:-b)}return m}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var l=f.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var u=f.quadraticExtremum(e,n,a);if(u>=0&&1>=u){for(var c=0,h=f.quadraticAt(e,n,a,u),d=0;l>d;d++){var p=0===y[d]||1===y[d]?.5:1,m=f.quadraticAt(t,i,r,y[d]);o>m||(c+=y[d]<u?e>h?p:-p:h>a?p:-p)}return c}var p=0===y[0]||1===y[0]?.5:1,m=f.quadraticAt(t,i,r,y[0]);return o>m?0:e>a?p:-p}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);y[0]=-l,y[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(1e-4>u%v){n=0,r=v;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=n;n=d(r),r=d(l)}else n=d(n),r=d(r);n>r&&(r+=v);for(var h=0,f=0;2>f;f++){var p=y[f];if(p+t>o){var m=Math.atan2(s,p),c=a?1:-1;0>m&&(m=v+m),(m>=n&&r>=m||m+v>=n&&r>=m+v)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,l,d){for(var f=0,v=0,g=0,y=0,x=0,_=0;_<t[pe];){var b=t[_++];switch(b===s.M&&_>1&&(o||(f+=p(v,g,y,x,l,d))),1==_&&(v=t[_],g=t[_+1],y=v,x=g),b){case s.M:y=t[_++],x=t[_++],v=y,g=x;break;case s.L:if(o){if(m(v,g,t[_],t[_+1],i,l,d))return!0}else f+=p(v,g,t[_],t[_+1],l,d)||0;v=t[_++],g=t[_++];break;case s.C:if(o){if(u.containStroke(v,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=n(v,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],l,d)||0;v=t[_++],g=t[_++];break;case s.Q:if(o){if(c.containStroke(v,g,t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=r(v,g,t[_++],t[_++],t[_],t[_+1],l,d)||0;v=t[_++],g=t[_++];break;case s.A:var w=t[_++],M=t[_++],S=t[_++],T=t[_++],C=t[_++],P=t[_++],A=(t[_++],1-t[_++]),I=Math.cos(C)*S+w,L=Math.sin(C)*T+M;_>1?f+=p(v,g,I,L,l,d):(y=I,x=L);var z=(l-w)*T/S+w;if(o){if(h.containStroke(w,M,T,C,C+P,A,i,z,d))return!0}else f+=a(w,M,T,C,C+P,A,z,d);v=Math.cos(C+P)*S+w,g=Math.sin(C+P)*T+M;break;case s.R:y=v=t[_++],x=g=t[_++];var k=t[_++],D=t[_++],I=y+k,L=x+D;if(o){if(m(y,x,I,x,i,l,d)||m(I,x,I,L,i,l,d)||m(I,L,y,L,i,l,d)||m(y,L,y,x,i,l,d))return!0}else f+=p(I,x,I,L,l,d),f+=p(y,L,y,x,l,d);break;case s.Z:if(o){if(m(v,g,y,x,i,l,d))return!0}else f+=p(v,g,y,x,l,d);v=y,g=x}}return o||e(g,x)||(f+=p(v,g,y,x,l,d)||0),0!==f}var s=t("../core/PathProxy").CMD,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),d=t("./util").normalizeRadian,f=t("../core/curve"),p=t("./windingLine"),m=l.containStroke,v=2*Math.PI,g=1e-4,y=[-1,-1,-1],x=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/graphic/Pattern",[Ne],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[ve].getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t}),e("zrender/config",[],function(){var t=1;typeof window!==n&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/bbox",[Ne,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,l=e[de](),u=e[de](),c=e[de](),h=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t[pe]){var n,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(n=1;n<t[pe];n++)o=t[n],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,i[0]=l,i[1]=c}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)};var d=[],f=[];return n.fromCubic=function(t,e,n,o,s,l,u,c,h,p){var m,v=i.cubicExtrema,g=i.cubicAt,y=v(t,n,s,u,d);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,m=0;y>m;m++){var x=g(t,n,s,u,d[m]);h[0]=r(x,h[0]),p[0]=a(x,p[0])}for(y=v(e,o,l,c,f),m=0;y>m;m++){var _=g(e,o,l,c,f[m]);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])},n.fromQuadratic=function(t,e,n,o,s,l,u,c){var h=i.quadraticExtremum,d=i.quadraticAt,f=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),m=d(t,n,s,f),v=d(e,o,l,p);u[0]=r(t,s,m),u[1]=r(e,l,v),c[0]=a(t,s,m),c[1]=a(e,l,v)},n.fromArc=function(t,i,n,r,a,d,f,p,m){var v=e.min,g=e.max,y=Math.abs(a-d);if(1e-4>y%h&&y>1e-4)return p[0]=t-n,p[1]=i-r,m[0]=t+n,void(m[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,u[0]=s(d)*n+t,u[1]=o(d)*r+i,v(p,l,u),g(m,l,u),a%=h,0>a&&(a+=h),d%=h,0>d&&(d+=h),a>d&&!f?d+=h:d>a&&f&&(a+=h),f){var x=d;d=a,a=x}for(var _=0;d>_;_+=Math.PI/2)_>a&&(c[0]=s(_)*n+t,c[1]=o(_)*r+i,v(p,c,p),g(m,c,m))},n}),e("zrender/graphic/Style",[Ne],function(){function t(t,e,i){var n=e.x,r=e.x2,a=e.y,o=e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i[Pe]+i.y,o=o*i[Pe]+i.y);var s=t.createLinearGradient(n,a,r,o);return s}function e(t,e,i){var n=i.width,r=i[Pe],a=Math.min(n,r),o=e.x,s=e.y,l=e.r;e.global||(o=o*n+i.x,s=s*r+i.y,l*=a);var u=t.createRadialGradient(o,s,0,o,s,l);return u}var i=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],n=function(t){this.extendFrom(t)};n[ve]={constructor:n,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,n){for(var r=this,a=n&&n.style,o=!a,s=0;s<i[pe];s++){var l=i[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[m]!==a[m])&&(t.strokeStyle=r[m]),(o||r.opacity!==a.opacity)&&(t.globalAlpha=null==r.opacity?1:r.opacity),(o||r.blend!==a.blend)&&(t.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var c=r.lineWidth;t.lineWidth=c/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this[m];return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasOwnProperty(n)||!e&&i.hasOwnProperty(n)||(i[n]=t[n])}},set:function(t,e){typeof t===re?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(i,n,r){for(var a="radial"===n.type?e:t,o=a(i,n,r),s=n[C],l=0;l<s[pe];l++)o.addColorStop(s[l].offset,s[l].color);return o}};for(var r=n[ve],a=0;a<i[pe];a++){var o=i[a];o[0]in r||(r[o[0]]=o[1])}return n.getGradient=r.getGradient,n}),e("zrender/Element",[Ne,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),n=t("./mixin/Transformable"),a=t("./mixin/Animatable"),o=t("./core/util"),l=function(t){n.call(this,t),i.call(this,t),a.call(this,t),this.id=t.id||e()};return l[ve]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this[s];i||(i=this[s]=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===xe||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this[k]=!0,this.__zr&&this.__zr[r]()},show:function(){this[k]=!1,this.__zr&&this.__zr[r]()},attr:function(t,e){if(typeof t===re)this.attrKV(t,e);else if(o[T](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);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 i=0;i<e[pe];i++)t[B].addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e[pe];i++)t[B].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},o.mixin(l,a),o.mixin(l,n),o.mixin(l,i),l}),e("zrender/core/curve",[Ne,"./vector"],function(t){function e(t){return t>-_&&_>t}function i(t){return t>_||-_>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,l=3*(n-2*i+t),u=3*(i-t),c=t-a,h=l*l-3*s*u,d=l*u-9*s*c,f=u*u-3*l*c,p=0;if(e(h)&&e(d))if(e(l))o[0]=0;else{var m=-u/l;m>=0&&1>=m&&(o[p++]=m)}else{var v=d*d-4*h*f;if(e(v)){var g=d/h,m=-l/s+g,_=-g/2;m>=0&&1>=m&&(o[p++]=m),_>=0&&1>=_&&(o[p++]=_)}else if(v>0){var b=x(v),S=h*l+1.5*s*(-d+b),T=h*l+1.5*s*(-d-b);S=0>S?-y(-S,M):y(S,M),T=0>T?-y(-T,M):y(T,M);var m=(-l-(S+T))/(3*s);m>=0&&1>=m&&(o[p++]=m)}else{var C=(2*h*l-3*s*d)/(2*x(h*h*h)),P=Math.acos(C)/3,A=x(h),I=Math.cos(P),m=(-l-2*A*I)/(3*s),_=(-l+A*(I+w*Math.sin(P)))/(3*s),L=(-l+A*(I-w*Math.sin(P)))/(3*s);m>=0&&1>=m&&(o[p++]=m),_>=0&&1>=_&&(o[p++]=_),L>=0&&1>=L&&(o[p++]=L)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,u=3*n-3*t,c=0;if(e(l)){if(i(s)){var h=-u/s;h>=0&&1>=h&&(o[c++]=h)}}else{var d=s*s-4*l*u;if(e(d))o[0]=-s/(2*l);else if(d>0){var f=x(d),h=(-s+f)/(2*l),p=(-s-f)/(2*l);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,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]=n}function l(t,e,i,r,a,o,s,l,u,c,h){var d,f,p,m,v,y=.005,_=1/0;S[0]=u,S[1]=c;for(var w=0;1>w;w+=.05)T[0]=n(t,i,a,s,w),T[1]=n(e,r,o,l,w),m=g(S,T),_>m&&(d=w,_=m);_=1/0;for(var M=0;32>M&&!(b>y);M++)f=d-y,p=d+y,T[0]=n(t,i,a,s,f),T[1]=n(e,r,o,l,f),m=g(T,S),f>=0&&_>m?(d=f,_=m):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,l,p),v=g(C,S),1>=p&&_>v?(d=p,_=v):y*=.5);return h&&(h[0]=n(t,i,a,s,d),h[1]=n(e,r,o,l,d)),x(_)}function u(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),u=t-a,c=0;if(e(s)){if(i(l)){var h=-u/l;h>=0&&1>=h&&(o[c++]=h)}}else{var d=l*l-4*s*u;if(e(d)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(d>0){var f=x(d),h=(-l+f)/(2*s),p=(-l-f)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function d(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function f(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,l){var c,h=.005,d=1/0;S[0]=o,S[1]=s;for(var f=0;1>f;f+=.05){T[0]=u(t,i,r,f),T[1]=u(e,n,a,f);var p=g(S,T);d>p&&(c=f,d=p)}d=1/0;for(var m=0;32>m&&!(b>h);m++){var v=c-h,y=c+h;T[0]=u(t,i,r,v),T[1]=u(e,n,a,v);var p=g(T,S);if(v>=0&&d>p)c=v,d=p;else{C[0]=u(t,i,r,y),C[1]=u(e,n,a,y);var _=g(C,S);1>=y&&d>_?(c=y,d=_):h*=.5}}return l&&(l[0]=u(t,i,r,c),l[1]=u(e,n,a,c)),x(d)}var m=t("./vector"),v=m[de],g=m.distSquare,y=Math.pow,x=Math.sqrt,_=1e-8,b=1e-4,w=x(3),M=1/3,S=v(),T=v(),C=v();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:u,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:d,quadraticSubdivide:f,quadraticProjectPoint:p}}),e("echarts/model/mixin/makeStyleMapper",[Ne,Be],function(t){var e=t(Be);return function(t){for(var i=0;i<t[pe];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[pe];r++){var a=t[r][1];if(!(i&&e[ae](i,a)>=0)){var o=this[g](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/Transformable",[Ne,"../core/matrix","../core/vector"],function(t){function e(t){return t>a||-a>t}var i=t("../core/matrix"),n=t("../core/vector"),r=i.identity,a=5e-5,o=function(t){t=t||{},t[xe]||(this[xe]=[0,0]),null==t[d]&&(this[d]=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=o[ve];l[s]=null,l.needLocalTransform=function(){return e(this[d])||e(this[xe][0])||e(this[xe][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},l.updateTransform=function(){var t=this[f],e=t&&t[s],n=this.needLocalTransform(),a=this[s];return n||e?(a=a||i[de](),n?this.getLocalTransform(a):r(a),e&&(n?i.mul(a,t[s],a):i.copy(a,t[s])),this[s]=a,this.invTransform=this.invTransform||i[de](),void i.invert(this.invTransform,a)):void(a&&r(a))},l.getLocalTransform=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this[d],o=this[xe];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),a&&i.rotate(t,t,a),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[s],i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},l.restoreTransform=function(t){var e=(this[s],t.dpr||1);t.setTransform(e,0,0,e,0,0)};var u=[];return l.decomposeTransform=function(){if(this[s]){var t=this[f],n=this[s];t&&t[s]&&(i.mul(u,t.invTransform,n),n=u);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],o=this[xe],l=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],l[0]=r,l[1]=a,this[d]=Math.atan2(-n[1]/a,n[0]/r)}},l.getGlobalScale=function(){var t=this[s];if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},l.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n[v](i,i,r),i},l.transformCoordToGlobal=function(t,e){var i=[t,e],r=this[s];return r&&n[v](i,i,r),i},o}),e("zrender/mixin/Animatable",[Ne,"../animation/Animator","../core/util","../core/log"],function(t){var e=t("../animation/Animator"),i=t("../core/util"),n=i.isString,r=i.isFunction,a=i[T],o=t("../core/log"),s=function(){this.animators=[]};return s[ve]={constructor:s,animate:function(t,n){var r,a=!1,s=this,l=this.__zr;if(t){var u=t.split("."),c=s;a="shape"===u[0];for(var h=0,d=u[pe];d>h;h++)c&&(c=c[u[h]]);c&&(r=c)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var f=s.animators,p=new e(r,n);return p.during(function(){s.dirty(a)}).done(function(){f[b](i[ae](f,p),1)}),f.push(p),l&&l[B].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[pe],n=0;i>n;n++)e[n].stop(t);return e[pe]=0,this},animateTo:function(t,e,i,a,o){function s(){u--,u||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this[R](),this._animateToShallow("",this,t,e,i,a,o);var l=this.animators.slice(),u=l[pe];u||o&&o();for(var c=0;c<l[pe];c++)l[c].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},l=0;for(var u in n)if(n.hasOwnProperty(u))if(null!=e[u])a(n[u])&&!i.isArrayLike(n[u])?this._animateToShallow(t?t+"."+u:u,e[u],n[u],r,o):(s[u]=n[u],l++);else if(null!=n[u])if(t){var c={};c[t]={},c[t][u]=n[u],this.attr(c)}else this.attr(u,n[u]);return l>0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("echarts/model/mixin/boxLayout",[Ne],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(_e),width:this.get("width"),height:this.get(Pe)}}}}),e("echarts/util/component",[Ne,Be,"./clazz"],function(t){var e=t(Be),i=t("./clazz"),n=i.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,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var l=r(n,s),u=l.originalDeps=i(s),c=a(u,t);l.entryCount=c[pe],0===l.entryCount&&o.push(s),e.each(c,function(t){e[ae](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[ae](i.successor,t)<0&&i.successor.push(s)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,i){var n=[];return e.each(t,function(t){e[ae](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,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[pe]){var l=n(i),u=l.graph,c=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[pe];){var d=c.pop(),f=u[d],p=!!h[d];p&&(r.call(a,d,f.originalDeps.slice()),delete h[d]),e.each(f.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("zrender/core/log",[Ne,"../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",[Ne,"./Clip","../tool/color","../core/util"],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[pe];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][pe],s=0;o>s;s++)for(var u=0;l>u;u++)r[s][u]=n(t[s][u],e[s][u],i)}function o(t,e,i){var n=t[pe],r=e[pe];if(n!==r){var a=n>r;if(a)t[pe]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:g.call(e[o]))}for(var s=t[0]&&t[0][pe],o=0;o<t[pe];o++)if(1===i)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 s(t,e,i){if(t===e)return!0;var n=t[pe];if(n!==e[pe])return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][pe],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,l){var c=t[pe];if(1==l)for(var h=0;c>h;h++)s[h]=u(t[h],e[h],i[h],n[h],r,a,o);else for(var d=t[0][pe],h=0;c>h;h++)for(var f=0;d>f;f++)s[h][f]=u(t[h][f],e[h][f],i[h][f],n[h][f],r,a,o)}function u(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function c(t){if(v(t)){var e=t[pe];if(v(t[0])){for(var i=[],n=0;e>n;n++)i.push(g.call(t[n]));return i}return g.call(t)}return t}function h(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,i,c,d){var m=t._getter,g=t._setter,y="spline"===e,x=c[pe];if(x){var _,b=c[0].value,w=v(b),M=!1,S=!1,T=w&&v(b[0])?2:1;c.sort(function(t,e){return t.time-e.time}),_=c[x-1].time;for(var C=[],P=[],A=c[0].value,I=!0,L=0;x>L;L++){C.push(c[L].time/_);var z=c[L].value;if(w&&s(z,A,T)||!w&&z===A||(I=!1),A=z,typeof z==re){var k=p.parse(z);k?(z=k,M=!0):S=!0}P.push(z)}if(!I){for(var D=P[x-1],L=0;x-1>L;L++)w?o(P[L],D,T):!isNaN(P[L])||isNaN(D)||S||M||(P[L]=D);w&&o(m(t._target,d),D,T);var O,R,E,B,N,V,G=0,F=0;if(M)var H=[0,0,0,0];var Z=function(t,e){var i;if(0>e)i=0;else if(F>e){for(O=Math.min(G+1,x-1),i=O;i>=0&&!(C[i]<=e);i--);i=Math.min(i,x-2)}else{for(i=G;x>i&&!(C[i]>e);i++);i=Math.min(i-1,x-2)}G=i,F=e;var o=C[i+1]-C[i];if(0!==o)if(R=(e-C[i])/o,y)if(B=P[i],E=P[0===i?i:i-1],N=P[i>x-2?x-1:i+1],V=P[i>x-3?x-1:i+2],w)l(E,B,N,V,R,R*R,R*R*R,m(t,d),T);else{var s;if(M)s=l(E,B,N,V,R,R*R,R*R*R,H,1),s=h(H);else{if(S)return r(B,N,R);s=u(E,B,N,V,R,R*R,R*R*R)}g(t,d,s)}else if(w)a(P[i],P[i+1],R,m(t,d),T);else{var s;if(M)a(P[i],P[i+1],R,H,1),s=h(H);else{if(S)return r(P[i],P[i+1],R);s=n(P[i],P[i+1],R)}g(t,d,s)}},q=new f({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:Z,ondestroy:i});return e&&"spline"!==e&&(q.easing=e),q}}}var f=t("./Clip"),p=t("../tool/color"),m=t("../core/util"),v=m.isArrayLike,g=Array[ve].slice,y=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return y[ve]={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:c(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[pe]=0;for(var t=this._doneList,e=t[pe],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._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),n++,this[B]&&this[B].addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var n=0;n<i._onframeList[pe];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[B],n=0;n<e[pe];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[pe]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},y}),e("zrender/animation/Clip",[Ne,"./easing"],function(t){function e(t){this._target=t[Te],this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&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 i=t("./easing");return e[ve]={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 n=this.easing,r=typeof n==re?i[n]:n,a=typeof r===ee?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,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.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/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*a-o+u,h=c*c/(l*l+1);return s/2*s/2>=h}}}),e("zrender/contain/arc",[Ne,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=n;var d=Math.sqrt(u*u+c*c);if(d-h>r||r>d+h)return!1;if(Math.abs(a-o)%i<1e-4)return!0;if(s){var f=a;a=e(o),o=e(f)}else a=e(a),o=e(o);a>o&&(o+=i);var p=Math.atan2(c,u);return 0>p&&(p+=i),
      p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/cubic",[Ne,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u,c,h){if(0===u)return!1;var d=u;if(h>i+d&&h>r+d&&h>o+d&&h>l+d||i-d>h&&r-d>h&&o-d>h&&l-d>h||c>t+d&&c>n+d&&c>a+d&&c>s+d||t-d>c&&n-d>c&&a-d>c&&s-d>c)return!1;var f=e.cubicProjectPoint(t,i,n,r,a,o,s,l,c,h,null);return d/2>=f}}}),e("zrender/contain/util",[Ne],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/quadratic",[Ne,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>i+c&&u>r+c&&u>o+c||i-c>u&&r-c>u&&o-c>u||l>t+c&&l>n+c&&l>a+c||t-c>l&&n-c>l&&a-c>l)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,l,u,null);return c/2>=h}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e);(1===s||0===s)&&(o=e>n?.5:-.5);var l=s*(i-t)+t;return l>r?o:0}}),e("zrender/core/LRU",[Ne],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[ve];e.insert=function(t){var e=new i(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[E]=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},e.len=function(){return this._len};var i=function(t){this.value=t,this.next,this.prev},n=function(e){this._list=new t,this._map={},this._maxSize=e||10},r=n[ve];return r.put=function(t,e){var i=this._list,n=this._map;if(null==n[t]){var r=i.len();if(r>=this._maxSize&&r>0){var a=i.head;i[E](a),delete n[a.key]}var o=i.insert(e);o.key=t,n[t]=o}},r.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i[E](e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("zrender/graphic/helper/poly",[Ne,"./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[pe]>=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[pe],h=0;(a?c:c-1)>h;h++){var d=u[2*h],f=u[2*h+1],p=s[(h+1)%c];t.bezierCurveTo(d[0],d[1],f[0],f[1],p[0],p[1])}}else{"spline"===l&&(s=e(s,a)),t[o](s[0][0],s[0][1]);for(var h=1,m=s[pe];m>h;h++)t[i](s[h][0],s[h][1])}a&&t.closePath()}}}}),e("zrender/Storage",[Ne,"./core/util","./core/env","./container/Group","./core/timsort"],function(t){function e(t,e){return t[D]===e[D]?t.z===e.z?t.z2-e.z2:t.z-e.z:t[D]-e[D]}var i=t("./core/util"),n=t("./core/env"),r=t("./container/Group"),a=t("./core/timsort"),o=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return o[ve]={constructor:o,traverse:function(t,e){for(var i=0;i<this._roots[pe];i++)this._roots[i][_](t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var i=this._roots,r=this._displayList,o=0,s=i[pe];s>o;o++)this._updateAndAddDisplayable(i[o],null,t);r[pe]=this._displayListLen,n[A]&&a(r,e)},_updateAndAddDisplayable:function(t,e,i){if(!t[k]||i){t.beforeUpdate(),t.__dirty&&t[$](),t.afterUpdate();var n=t.clipPath;if(n&&(n[f]=t,n.updateTransform(),e?(e=e.slice(),e.push(n)):e=[n]),t.isGroup){for(var r=t._children,a=0;a<r[pe];a++){var o=r[a];t.__dirty&&(o.__dirty=!0),this._updateAndAddDisplayable(o,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof r&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[pe];e++){var n=this._roots[e];n instanceof r&&n.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[pe];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==re?this._elements[t]:t;var s=i[ae](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[b](s,1),o instanceof r&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof r&&(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,i=e[t];return i&&(delete e[t],i instanceof r&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:e},o}),e("zrender/graphic/helper/smoothSpline",[Ne,"../../core/vector"],function(t){function e(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}var i=t("../../core/vector");return function(t,n){for(var r=t[pe],a=[],o=0,s=1;r>s;s++)o+=i.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,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,m=t[f%r];n?(u=t[(f-1+r)%r],c=t[(f+1)%r],h=t[(f+2)%r]):(u=t[0===f?f:f-1],c=t[f>r-2?r-1:f+1],h=t[f>r-3?r-1:f+2]);var v=p*p,g=p*v;a.push([e(u[0],m[0],c[0],h[0],p,v,g),e(u[1],m[1],c[1],h[1],p,v,g)])}return a}}),e("zrender/Painter",[Ne,"./config","./core/util","./core/log","./core/BoundingRect","./core/timsort","./Layer","./animation/requestAnimationFrame","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return!!t&&(!!t.isBuildin||typeof t.resize===ee&&typeof t[r]===ee)}function n(t){t.__unusedCount++}function a(t){1==t.__unusedCount&&t.clear()}function o(t,e,i){return w.copy(t[Ae]()),t[s]&&w[v](t[s]),M.width=e,M[Pe]=i,!w.intersect(M)}function l(t,e){if(t==e)return!1;if(!t||!e||t[pe]!==e[pe])return!0;for(var i=0;i<t[pe];i++)if(t[i]!==e[i])return!0}function u(t,e){for(var i=0;i<t[pe];i++){var n=t[i],r=n.path;n.setTransform(e),r.beginPath(e),n.buildPath(r,n.shape),e.clip(),n.restoreTransform(e)}}function c(t,e){var i=document[se]("div");return i.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}var h=t("./config"),f=t("./core/util"),p=t("./core/log"),m=t("./core/BoundingRect"),g=t("./core/timsort"),y=t("./Layer"),x=t("./animation/requestAnimationFrame"),_=5,w=new m(0,0,0,0),M=new m(0,0,0,0),S=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=f[me]({},i||{}),this.dpr=i.devicePixelRatio||h.devicePixelRatio,this._singleCanvas=n,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={},n){var s=t.width,l=t[Pe];this._width=s,this._height=l;var u=new y(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 S[ve]={constructor:S,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),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[pe];n++){var a=i[n],o=this._layers[a];!o.isBuildin&&o[r]&&o[r]()}return this.refreshHover(),this._progressiveLayers[pe]&&this._startProgessive(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape});i.__from=t,t.__hoverMir=i,i[ye](e),this._hoverElements.push(i)}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=f[ae](i,e);n>=0&&i[b](n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t[pe];e++){var i=t[e].__from;i&&(i.__hoverMir=null)}t[pe]=0},refreshHover:function(){var t=this._hoverElements,e=t[pe],i=this._hoverlayer;if(i&&i.clear(),e){g(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(1e5));var n={};i.ctx.save();for(var r=0;e>r;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a[s]=o[s],a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,i,!0,n))):(t[b](r,1),o.__hoverMir=null,e--)}i.ctx.restore()}},_startProgessive:function(){function t(){i===e._progressiveToken&&e.storage&&(e._doPaintList(e.storage.getDisplayList()),e._furtherProgressive?(e._progress++,x(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var i=e._progressiveToken=+new Date;e._progress++,x(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,f.each(this._progressiveLayers,function(t){t.__dirty&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuildinLayer(n),this._doPaintList(t,e),this.eachBuildinLayer(a)},_doPaintList:function(t,e){function i(t){var e=a.dpr||1;a.save(),a.globalAlpha=1,a.shadowBlur=0,n.__dirty=!0,a.setTransform(1,0,0,1,0,0),a.drawImage(t.dom,0,0,c*e,h*e),a.restore()}for(var n,r,a,o,s,l,u=0,c=this._width,h=this._height,d=this._progress,m=0,v=t[pe];v>m;m++){var g=t[m],y=this._singleCanvas?0:g[D],x=g.__frame;if(0>x&&s&&(i(s),s=null),r!==y&&(a&&a.restore(),o={},r=y,n=this.getLayer(r),n.isBuildin||p("ZLevel "+r+" has been used by unkown layer "+n.id),a=n.ctx,a.save(),n.__unusedCount=0,(n.__dirty||e)&&n.clear()),n.__dirty||e){if(x>=0){if(!s){if(s=this._progressiveLayers[Math.min(u++,_-1)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){m=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(d=l),s.__progress=d+1}x===d&&this._doPaintEl(g,s,!0,s.renderScope)}else this._doPaintEl(g,n,e,o);g.__dirty=!1}}s&&i(s),a&&a.restore(),this._furtherProgressive=!1,f.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,i,n){var r=e.ctx,a=t[s];if(!(!e.__dirty&&!i||t.invisible||0===t.style.opacity||a&&!a[0]&&!a[3]||t.culling&&o(t,this._width,this._height))){var c=t.__clipPaths;(n.prevClipLayer!==e||l(c,n.prevElClipPaths))&&(n.prevElClipPaths&&(n.prevClipLayer.ctx.restore(),n.prevClipLayer=n.prevElClipPaths=null,n.prevEl=null),c&&(r.save(),u(c,r),n.prevClipLayer=e,n.prevElClipPaths=c)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,n.prevEl||null),n.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 y("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 n=this._layers,r=this._zlevelList,a=r[pe],o=null,s=-1,l=this._domRoot;if(n[t])return void p("ZLevel "+t+" has been used already");if(!i(e))return void p("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=n[r[s]]}if(r[b](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);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[pe];n++)i=r[n],t.call(e,this._layers[i],i)},eachBuildinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[pe];r++)n=a[r],i=this._layers[n],i.isBuildin&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[pe];r++)n=a[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i=this._progressiveLayers,n={},r={};this.eachBuildinLayer(function(t,e){n[e]=t.elCount,t.elCount=0,t.__dirty=!1}),f.each(i,function(t,e){r[e]=t.elCount,t.elCount=0,t.__dirty=!1});for(var a,o,s=0,l=0,u=0,c=t[pe];c>u;u++){var h=t[u],d=this._singleCanvas?0:h[D],p=e[d],m=h.progressive;if(p&&(p.elCount++,p.__dirty=p.__dirty||h.__dirty),m>=0){o!==m&&(o=m,l++);var v=h.__frame=l-1;if(!a){var g=Math.min(s,_-1);a=i[g],a||(a=i[g]=new y("progressive",this,this.dpr),a.initContext()),a.__maxProgress=0}a.__dirty=a.__dirty||h.__dirty,a.elCount++,a.__maxProgress=Math.max(a.__maxProgress,v),a.__maxProgress>=a.__progress&&(p.__dirty=!0)}else h.__frame=-1,a&&(a.__nextIdxNotProg=u,s++,a=null)}a&&(s++,a.__nextIdxNotProg=u),this.eachBuildinLayer(function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)}),i[pe]=Math.min(s,_),f.each(i,function(t,e){r[e]!==t.elCount&&(h.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?f.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&f.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i[b](f[ae](i,t),1))},resize:function(t,e){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n[Pe]=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[Pe]=e+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);f.each(this._progressiveLayers,function(i){i.resize(t,e)}),this[r](!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 y("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();for(var i=this.storage.getDisplayList(!0),n={},r=0;r<i[pe];r++){var a=i[r];this._doPaintEl(a,e,!0,n)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var i=this._opts,n=["width",Pe][t],r=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=i[n]&&"auto"!==i[n])return parseFloat(i[n]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[r]||e(l[n])||e(s.style[n]))-(e(l[a])||0)-(e(l[o])||0)|0},_pathToImage:function(e,i,n,r,a){var o=document[se]("canvas"),s=o[oe]("2d");o.width=n*a,o[Pe]=r*a,s.clearRect(0,0,n*a,r*a);var l={position:i[xe],rotation:i[d],scale:i.scale};i[xe]=[0,0,0],i[d]=0,i.scale=[1,1],i&&i.brush(s);var u=t("./graphic/Image"),c=new u({id:e,style:{x:0,y:0,image:o}});return null!=l[xe]&&(c[xe]=i[xe]=l[xe]),null!=l[d]&&(c[d]=i[d]=l[d]),null!=l.scale&&(c.scale=i.scale=l.scale),c},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},S}),e("zrender/graphic/helper/smoothBezier",[Ne,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,l,u){var c,h,d,f,p=[],m=[],v=[],g=[];if(u){d=[1/0,1/0],f=[-1/0,-1/0];for(var y=0,x=t[pe];x>y;y++)i(d,d,t[y]),n(f,f,t[y]);i(d,d,u[0]),n(f,f,u[1])}for(var y=0,x=t[pe];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(m,h,c),r(m,m,s);var b=a(_,c),w=a(_,h),M=b+w;0!==M&&(b/=M,w/=M),r(v,m,-b),r(g,m,w);var S=o([],_,v),T=o([],_,g);u&&(n(S,S,d),i(S,S,f),n(T,T,d),i(T,T,f)),p.push(S),p.push(T)}return l&&p.push(p.shift()),p}}),e("echarts/chart/pie/PieView",[Ne,H,Be,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[U](),o=this[P],s=a[j](o),l=e.get("selectedOffset");r[S]({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a[O](t),a.getItemLayout(t),e.isSelected(a[j](t)),l,n)})}function i(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,u=[o*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr(xe,u)}function n(t,e){function i(){o[k]=o.hoverIgnore,s[k]=s.hoverIgnore}function n(){o[k]=o.normalIgnore,s[k]=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.updateData(t,e,!0),this.on(Q,i).on(K,n).on("mouseover",i).on("mouseout",n)}function r(t,e,i,n,r){var a=n[De](ke),s=r===p||"inner"===r;return{fill:a[Ie]()||(s?"#fff":t[W](e,"color")),opacity:t[W](e,"opacity"),textFont:a[Le](),text:o[u](t.hostModel.getFormattedLabel(e,i),t[j](e))}}var a=t(H),o=t(Be),s=n[ve];s.updateData=function(t,e,n){function r(){l[R](!0),l.animateTo({shape:{r:h.r+10}},300,"elasticOut")}function s(){l[R](!0),l.animateTo({shape:{r:h.r}},300,"elasticOut")}var l=this.childAt(0),u=t.hostModel,c=t[X](e),h=t.getItemLayout(e),d=o[me]({},h);d.label=null,n?(l.setShape(d),l.shape.endAngle=h.startAngle,a.updateProps(l,{shape:{endAngle:h.endAngle}},u,e)):a.updateProps(l,{shape:d},u,e);var f=c[De]("itemStyle"),p=t[W](e,"color");l.useStyle(o[Oe]({lineJoin:"bevel",fill:p},f[De](K).getItemStyle())),l.hoverStyle=f[De](Q).getItemStyle(),i(this,t.getItemLayout(e),c.get("selected"),u.get("selectedOffset"),u.get(B)),l.off("mouseover").off("mouseout").off(Q).off(K),c.get("hoverAnimation")&&u.ifEnableAnimation()&&l.on("mouseover",r).on("mouseout",s).on(Q,r).on(K,s),this._updateLabel(t,e),a.setHoverStyle(this)},s._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),o=t.hostModel,s=t[X](e),l=t.getItemLayout(e),u=l.label,c=t[W](e,"color");a.updateProps(i,{shape:{points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]}},o,e),a.updateProps(n,{style:{x:u.x,y:u.y}},o,e),n.attr({style:{textVerticalAlign:u.verticalAlign,textAlign:u[ze],textFont:u.font},rotation:u[d],origin:[u.x,u.y],z2:10});var h=s[De]("label.normal"),f=s[De]("label.emphasis"),p=s[De]("labelLine.normal"),m=s[De]("labelLine.emphasis"),v=h.get(xe)||f.get(xe);n[ye](r(t,e,K,h,v)),n[k]=n.normalIgnore=!h.get("show"),n.hoverIgnore=!f.get("show"),i[k]=i.normalIgnore=!p.get("show"),i.hoverIgnore=!m.get("show"),i[ye]({stroke:c,opacity:t[W](e,"opacity")}),i[ye](p[De]("lineStyle").getLineStyle()),n.hoverStyle=r(t,e,Q,f,v),i.hoverStyle=m[De]("lineStyle").getLineStyle();var g=p.get("smooth");g&&g===!0&&(g=.4),i.setShape({smooth:g})},o[y](n,a.Group);var l=t("../../view/Chart")[me]({type:"pie",init:function(){var t=new a.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var s=t[U](),l=this._data,u=this.group,c=i.get(B),h=!l,d=o.curry(e,this.uid,t,c,r),f=t.get("selectedMode");if(s.diff(l).add(function(t){var e=new n(s,t);h&&e.eachChild(function(t){t[R](!0)}),f&&e.on("click",d),s.setItemGraphicEl(t,e),u.add(e)})[$](function(t,e){var i=l[O](e);i.updateData(s,t),i.off("click"),f&&i.on("click",d),u.add(i),s.setItemGraphicEl(t,i)})[E](function(t){var e=l[O](t);u[E](e)}).execute(),c&&h&&s.count()>0){var p=s.getItemLayout(0),m=Math.max(r[Se](),r[Me]())/2,v=o.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(p.cx,p.cy,m,p.startAngle,p.clockwise,v,t))}this._data=s}},dispose:function(){},_createClipPath:function(t,e,i,n,r,o,s){var l=new a.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),l},containPoint:function(t,e){var i=e[U](),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,a=t[1]-n.cy,o=Math.sqrt(r*r+a*a);return o<=n.r&&o>=n.r0}}});return l}),e("zrender/graphic/helper/roundRect",[Ne],function(){return{buildPath:function(t,e){var n,r,a,s,l=e.x,u=e.y,c=e.width,h=e[Pe],d=e.r;0>c&&(l+=c,c=-c),0>h&&(u+=h,h=-h),typeof d===ne?n=r=a=s=d:d instanceof Array?1===d[pe]?n=r=a=s=d[0]:2===d[pe]?(n=a=d[0],r=s=d[1]):3===d[pe]?(n=d[0],r=s=d[1],a=d[2]):(n=d[0],r=d[1],a=d[2],s=d[3]):n=r=a=s=0;var f;n+r>c&&(f=n+r,n*=c/f,r*=c/f),a+s>c&&(f=a+s,a*=c/f,s*=c/f),r+a>h&&(f=r+a,r*=h/f,a*=h/f),n+s>h&&(f=n+s,n*=h/f,s*=h/f),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/dom/HandlerProxy",[Ne,"../core/event","../core/util","../mixin/Eventful","../core/env","../core/GestureMgr"],function(t){function e(t){return"mousewheel"===t&&c.browser.firefox?"DOMMouseScroll":t}function i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null),t.dom);if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t.handler.dispatchToElement(r[Te],a,r.event)}}function n(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function r(){return c.touchEventsSupported}function a(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=0;i<g[pe];i++){var n=g[i];t._handlers[n]=l.bind(y[n],t)}for(var i=0;i<v[pe];i++){var n=v[i];t._handlers[n]=e(y[n],t)}}function o(t){function i(i,n){l.each(i,function(i){d(t,e(i),n._handlers[i])},n)}u.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new h,this._handlers={},a(this),r()&&i(g,this),i(v,this)}var s=t("../core/event"),l=t("../core/util"),u=t("../mixin/Eventful"),c=t("../core/env"),h=t("../core/GestureMgr"),d=s.addEventListener,f=s.removeEventListener,p=s.normalizeEvent,m=300,v=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],g=["touchstart","touchend","touchmove"],y={mousemove:function(t){t=p(this.dom,t),this[M]("mousemove",t)},mouseout:function(t){t=p(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[M]("mouseout",t)},touchstart:function(t){t=p(this.dom,t),this._lastTouchMoment=new Date,i(this,t,"start"),y.mousemove.call(this,t),y.mousedown.call(this,t),n(this)},touchmove:function(t){t=p(this.dom,t),i(this,t,"change"),y.mousemove.call(this,t),n(this)},touchend:function(t){t=p(this.dom,t),i(this,t,"end"),y.mouseup.call(this,t),+new Date-this._lastTouchMoment<m&&y.click.call(this,t),n(this)}};l.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){y[t]=function(e){e=p(this.dom,e),this[M](t,e)}});var x=o[ve];return x.dispose=function(){for(var t=v[ie](g),i=0;i<t[pe];i++){var n=t[i];f(this.dom,e(n),this._handlers[n])}},x.setCursor=function(t){this.dom.style.cursor=t||"default"},l.mixin(o,u),o}),e("zrender/animation/Animation",[Ne,"../core/util","../core/event","./requestAnimationFrame","./Animator"],function(t){var e=t("../core/util"),i=t("../core/event").Dispatcher,n=t("./requestAnimationFrame"),r=t("./Animator"),a=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,i.call(this)};return a[ve]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[B]=this;for(var e=t.getClips(),i=0;i<e[pe];i++)this.addClip(e[i])},removeClip:function(t){var i=e[ae](this._clips,t);i>=0&&this._clips[b](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[pe];i++)this.removeClip(e[i]);t[B]=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,i=this._clips,n=i[pe],r=[],a=[],o=0;n>o;o++){var s=i[o],l=s.step(t);l&&(r.push(l),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[pe];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[M]("frame",e),this.stage[$]&&this.stage[$]()},_startLoop:function(){function t(){e._running&&(n(t),!e._paused&&e._update())}var e=this;this._running=!0,n(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 i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("zrender/Handler",[Ne,"./core/util","./mixin/Draggable","./mixin/Eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}}function i(){}function n(t,e,i){if(t[t.rectHover?"rectContain":fe](e,i)){for(var n=t;n;){if(n[Ce]||n.clipPath&&!n.clipPath[fe](e,i))return!1;n=n[f]}return!0}return!1}var r=t("./core/util"),a=t("./mixin/Draggable"),o=t("./mixin/Eventful");i[ve].dispose=function(){};var s=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],l=function(t,e,n,l){o.call(this),this.storage=t,this.painter=e,this.painterRoot=l,n=n||new i,this.proxy=n,n.handler=this,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,a.call(this),r.each(s,function(t){n.on&&n.on(t,this[t],this)},this)};return l[ve]={constructor:l,mousemove:function(t){var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered,a=this.proxy;this._hovered=n,a.setCursor&&a.setCursor(n?n.cursor:"default"),r&&n!==r&&r.__zr&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(n,"mousemove",t),n&&n!==r&&this.dispatchToElement(n,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,i=t.toElement||t.relatedTarget;do i=i&&i.parentNode;while(i&&9!=i.nodeType&&!(e=i===this.painterRoot));!e&&this[M]("globalout",{event:t})},resize:function(){this._hovered=null},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,i,n){for(var r="on"+i,a=e(i,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o[M](i,a),o=o[f],!a.cancelBubble););a.cancelBubble||(this[M](i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==ee&&t[r].call(t,a),t[M]&&t[M](i,a)}))},findHover:function(t,e,i){for(var r=this.storage.getDisplayList(),a=r[pe]-1;a>=0;a--)if(!r[a][Ce]&&r[a]!==i&&!r[a][k]&&n(r[a],t,e))return r[a]}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){l[ve][t]=function(e){var i=this.findHover(e.zrX,e.zrY,null);if("mousedown"===t)this._downel=i,this._upel=i;else if("mosueup"===t)this._upel=i;else if("click"===t&&this._downel!==this._upel)return;this.dispatchToElement(i,t,e)}}),r.mixin(l,o),r.mixin(l,a),l}),e("zrender/mixin/Draggable",[Ne],function(){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return t[ve]={constructor:t,_dragStart:function(t){var e=t[Te];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 i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this.dispatchToElement(e,"drag",t.event);var o=this.findHover(i,n,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("zrender/animation/requestAnimationFrame",[Ne],function(){return typeof window!==n&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}}),e("zrender/core/event",[Ne,"../mixin/Eventful","./env"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,e,i,n){return i=i||{},n?r(t,e,i):u.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):r(t,e,i),i}function r(t,i,n){var r=e(t);n.zrX=i.clientX-r.left,n.zrY=i.clientY-r.top}function a(t,e,n){if(e=e||window.event,null!=e.zrX)return e;var r=e.type,a=r&&r[ae]("touch")>=0;if(a){var o="touchend"!=r?e.targetTouches[0]:e.changedTouches[0];o&&i(t,o,e,n)}else i(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function o(t,e,i){c?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function s(t,e,i){c?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var l=t("../mixin/Eventful"),u=t("./env"),c=typeof window!==n&&!!window.addEventListener,h=c?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{clientToLocal:i,normalizeEvent:a,addEventListener:o,removeEventListener:s,stop:h,Dispatcher:l}}),e("zrender/core/GestureMgr",[Ne,"./event"],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=t("./event"),r=function(){this._track=[]};r[ve]={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track[pe]=0,this},_doTrack:function(t,e,i){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r[pe];s>o;o++){var l=r[o],u=n.clientToLocal(i,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 i=a[e](this._track,t);if(i)return i}}};var a={pinch:function(t,n){var r=t[pe];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[pe]>1&&a&&a[pe]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=i(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:t[0][Te],event:n}}}}};return r}),e("zrender/Layer",[Ne,"./core/util","./config","./graphic/Style","./graphic/Pattern"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[se](e),a=i[Se](),o=i[Me](),s=r.style;return s[xe]="absolute",s.left=0,s.top=0,s.width=a+"px",s[Pe]=o+"px",r.width=a*n,r[Pe]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=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===re?s=i(t,"canvas",a,o):n[T](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[ve]={constructor:s,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[oe]("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack[oe]("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[Pe]=e+"px",n.width=t*i,n[Pe]=e*i,a&&(a.width=t*i,a[Pe]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[Pe],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,n/c,r/c)),i.clearRect(0,0,n,r),s){var h;s[C]?(h=s.__canvasGradient||a.getGradient(i,s,{x:0,y:0,width:n,height:r}),s.__canvasGradient=h):s.image&&(h=o[ve].getCanvasPattern.call(s,i)),i.save(),i.fillStyle=h||s,i.fillRect(0,0,n,r),i.restore()}if(l){var d=this.domBack;i.save(),i.globalAlpha=u,i.drawImage(d,0,0,n,r),i.restore()}}},s}),e("echarts/preprocessor/helper/compatStyle",[Ne,Be],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e[K],a=e[Q];r&&r[n]&&(t[n]=t[n]||{},t[n][K]?i.merge(t[n][K],r[n]):t[n][K]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n][Q]?i.merge(t[n][Q],a[n]):t[n][Q]=a[n],
      a[n]=null)})}var i=t(Be),n=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){if(t){e(t),e(t.markPoint),e(t.markLine);var n=t.data;if(n){for(var r=0;r<n[pe];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[pe];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[pe];r++)i[Z](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}}),e("echarts/data/DataDiffer",[Ne],function(){function t(t){return t}function e(e,i,n,r){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=r||t}function i(t,e,i,n){for(var r=0;r<t[pe];r++){var a=n(t[r],r),o=e[a];null==o?(i.push(a),e[a]=r):(o[pe]||(e[a]=o=[o]),o.push(r))}}return e[ve]={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,n=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={},l=[],u=[];for(i(e,o,l,r),i(n,s,u,a),t=0;t<e[pe];t++){var c=l[t],h=s[c];if(null!=h){var d=h[pe];d?(1===d&&(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[pe];t++){var c=u[t];if(s.hasOwnProperty(c)){var h=s[c];if(null==h)continue;if(h[pe])for(var f=0,d=h[pe];d>f;f++)this._add&&this._add(h[f]);else this._add&&this._add(h)}}}},e}),e("echarts/data/helper/completeDimensions",[Ne,Be],function(t){function e(t,e,a,o){if(!e)return t;var s=i(e[0]),l=n[Z](s)&&s[pe]||1;a=a||[],o=o||"extra";for(var u=0;l>u;u++)if(!t[u]){var c=a[u]||o+(u-a[pe]);t[u]=r(e,u)?{type:"ordinal",name:c}:c}return t}function i(t){return n[Z](t)?t:n[T](t)?t.value:t}var n=t(Be),r=e.guessOrdinal=function(t,e){for(var r=0,a=t[pe];a>r;r++){var o=i(t[r]);if(!n[Z](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(n.isString(o)&&"-"!==o)return!0}return!1};return e}),e("echarts/component/helper/selectableMixin",[Ne,Be],function(t){var e=t(Be);return{updateSelectedMap:function(t){this._selectTargetMap=e.reduce(t||[],function(t,e){return t[e.name]=e,t},{})},select:function(t){var i=this._selectTargetMap,n=i[t],r=this.get("selectedMode");"single"===r&&e.each(i,function(t){t.selected=!1}),n&&(n.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/chart/helper/createListFromArray",[Ne,"../../data/List","../../data/helper/completeDimensions",Be,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[pe]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!h[Z](p(i))}function n(t,e,n){t=t||[];var r=e.get(Re),a=v[r],o=f.get(r),c=a&&a(t,e,n),g=c&&c[V];g||(g=o&&o[V]||["x","y"],g=u(g,t,g[ie](["value"])));var y=c?c.categoryIndex:-1,x=new l(g,e),_=s(c,t),b={},w=y>=0&&i(t)?function(t,e,i,n){return d.isDataItemOption(t)&&(x.hasItemOption=!0),n===y?i:m(p(t),g[n])}:function(t,e,i,n){var r=p(t),a=m(r&&r[n],g[n]);d.isDataItemOption(t)&&(x.hasItemOption=!0);var o=c&&c.categoryAxesModels;return o&&o[e]&&typeof a===re&&(b[e]=b[e]||o[e].getCategories(),a=h[ae](b[e],a),0>a&&!isNaN(a)&&(a=+a)),a};return x.hasItemOption=!1,x.initData(t,_,w),x}function r(t){return t!==c&&"time"!==t}function o(t){return t===c?z:"time"===t?"time":"float"}function s(t,e){var i,n=[],r=t&&t[V][t.categoryIndex];if(r&&(i=t.categoryAxesModels[r.name]),i){var a=i.getCategories();if(a){var o=e[pe];if(h[Z](e[0])&&e[0][pe]>1){n=[];for(var s=0;o>s;s++)n[s]=a[e[s][t.categoryIndex||0]]}else n=a.slice(0)}}return n}var l=t("../../data/List"),u=t("../../data/helper/completeDimensions"),h=t(Be),d=t("../../util/model"),f=t("../../CoordinateSystem"),p=d.getDataItemValue,m=d.converDataValue,v={cartesian2d:function(t,e,i){var n=h.map(["xAxis","yAxis"],function(t){return i[a]({mainType:t,index:e.get(t+"Index"),id:e.get(t+"Id")})[0]}),s=n[0],l=n[1],d=s.get("type"),f=l.get("type"),p=[{name:"x",type:o(d),stackable:r(d)},{name:"y",type:o(f),stackable:r(f)}],m=d===c,v=f===c;u(p,t,["x","y","z"]);var g={};return m&&(g.x=s),v&&(g.y=l),{dimensions:p,categoryIndex:m?0:v?1:-1,categoryAxesModels:g}},polar:function(t,e,i){var n=i[a]({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0],s=n.findAxisModel("angleAxis"),l=n.findAxisModel("radiusAxis"),h=l.get("type"),d=s.get("type"),f=[{name:"radius",type:o(h),stackable:r(h)},{name:"angle",type:o(d),stackable:r(d)}],p=d===c,m=h===c;u(f,t,["radius","angle","value"]);var v={};return m&&(v.radius=l),p&&(v.angle=s),{dimensions:f,categoryIndex:p?1:m?0:-1,categoryAxesModels:v}},geo:function(t){return{dimensions:u([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("echarts/coord/cartesian/Cartesian2D",[Ne,Be,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(Be),n=t("./Cartesian");return e[ve]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(z)[0]||this.getAxesByScale("time")[0]||this[G]("x")},containPoint:function(t){var e=this[G]("x"),i=this[G]("y");return e[fe](e.toLocalCoord(t[0]))&&i[fe](i.toLocalCoord(t[1]))},containData:function(t){return this[G]("x").containData(t[0])&&this[G]("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var i=this[G]("x"),n=this[G]("y");return[i.toGlobalCoord(i[N](t[0],e)),n.toGlobalCoord(n[N](t[1],e))]},pointToData:function(t,e){var i=this[G]("x"),n=this[G]("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this[G]("x"===t.dim?"y":"x")}},i[y](e,n),e}),e("echarts/coord/cartesian/Axis2D",[Ne,Be,"../Axis","./axisLabelInterval"],function(t){var e=t(Be),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[xe]=a||_e};return r[ve]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[xe];return"top"===t||t===_e},getGlobalExtent:function(){var t=this[he]();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=n(this)),t},isLabelIgnored:function(t){if(this.type===c){var e=this.getLabelInterval();return typeof e===ee&&!e(t,this.scale[ue](t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[y](r,i),r}),e("echarts/coord/axisHelper",[Ne,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",Be,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),r=t("../util/number"),a=t(Be),o=t("zrender/contain/text"),s={};return s.getScaleExtent=function(t,e){var i=t.scale,n=i[he](),o=n[1]-n[0];if(i.type===z)return isFinite(o)?n:[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[Z](c)||(c=[c||0,c||0]),c[0]=r[q](c[0],1),c[1]=r[q](c[1],1);var h=!0,d=!0;return null==s&&(s=n[0]-c[0]*o,h=!1),null==l&&(l=n[1]+c[1]*o,d=!1),"dataMin"===s&&(s=n[0]),"dataMax"===l&&(l=n[1]),u&&(s>0&&l>0&&!h&&(s=0),0>s&&0>l&&!d&&(l=0)),[s,l]},s.niceScaleExtent=function(t,e){var i=t.scale,n=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"===i.type&&(i.base=e.get("logBase")),i.setExtent(n[0],n[1]),i.niceExtent(o,r,a);var l=e.get("minInterval");if(isFinite(l)&&!r&&!a&&"interval"===i.type){var u=i.getInterval(),c=Math.max(Math.abs(u),l)/u;n=i[he]();var h=(n[1]+n[0])/2;i.setExtent(c*(n[0]-h)+h,c*(n[1]-h)+h),i.niceExtent(o)}var u=e.get("interval");null!=u&&i.setInterval&&i.setInterval(u)},s.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case c:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getClass(r)||i)[de](t)}},s.ifAxisCrossZero=function(t){var e=t.scale[he](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},s.getAxisLabelInterval=function(t,e,i,n){var r,a=0,s=0,l=1;e[pe]>40&&(l=Math.floor(e[pe]/40));for(var u=0;u<t[pe];u+=l){var c=t[u],h=o[Ae](e[u],i,be,"top");h[n?"x":"y"]+=c,h[n?"width":Pe]*=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[h]=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i[ce]();return typeof e===re?(e=function(t){return function(e){return t[x]("{value}",e)}}(e),a.map(n,e)):typeof e===ee?a.map(r,function(n,r){return e(t.type===c?i[ue](n):n,r)},this):n},s}),e("echarts/util/symbol",[Ne,"./graphic","zrender/core/BoundingRect"],function(t){var e=t("./graphic"),n=t("zrender/core/BoundingRect"),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[Pe]/2;t[o](n,r-s),t[i](n+a,r+s),t[i](n-a,r+s),t.closePath()}}),a=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[Pe]/2;t[o](n,r-s),t[i](n+a,r),t[i](n,r+s),t[i](n-a,r),t.closePath()}}),s=e.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e[Pe]),o=r/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u);t.arc(i,l,o,Math.PI-u,2*Math.PI+u);var f=.6*o,p=.7*o;t.bezierCurveTo(i+c-h*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*f,l+s+d*f,i-c,l+s),t.closePath()}}),l=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e[Pe],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()}}),u={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:a,pin:s,arrow:l,triangle:r},c={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[Pe]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[Pe]=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r[Pe]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[Pe]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[Pe]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[Pe]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[Pe]=n}},h={};for(var d in u)u.hasOwnProperty(d)&&(h[d]=new u[d]);var f=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===p&&(t.textPosition=["50%","40%"],t[ze]=be,t.textVerticalAlign=we)},buildPath:function(t,e,i){var n=e.symbolType,r=h[n];"none"!==e.symbolType&&(r||(n="rect",r=h[n]),c[n](e.x,e.y,e.width,e[Pe],r.shape),r.buildPath(t,r.shape,i))}}),v=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[m]=t:this.__isEmptyBrush?(e[m]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[m]&&(e[m]=t)),this.dirty(!1)}},g={createSymbol:function(t,i,r,a,o,s){var l=0===t[ae]("empty");l&&(t=t.substr(5,1)[I]()+t.substr(6));var u;return u=0===t[ae]("image://")?new e.Image({style:{image:t.slice(8),x:i,y:r,width:a,height:o}}):0===t[ae]("path://")?e.makePath(t.slice(7),{},new n(i,r,a,o)):new f({shape:{symbolType:t,x:i,y:r,width:a,height:o}}),u.__isEmptyBrush=l,u.setColor=v,u.setColor(s),u}};return g}),e("echarts/coord/cartesian/GridModel",[Ne,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[me]({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/component/timeline/TimelineModel",[Ne,"../../model/Component","../../data/List",Be,"../../util/model"],function(t){var e=t("../../model/Component"),i=t("../../data/List"),n=t(Be),r=t("../../util/model"),a=e[me]({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{textStyle:{color:"#000"}},emphasis:{}},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(){a.superApply(this,te,arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this[J].currentIndex);var e=this._data.count();this[J].loop?t=(t%e+e)%e:(t>=e&&(t=e-1),0>t&&(t=0)),this[J].currentIndex=t},getCurrentIndex:function(){return this[J].currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this[J].autoPlay=!!t},getPlayState:function(){return!!this[J].autoPlay},_initData:function(){var t=this[J],e=t.data||[],a=t.axisType,o=this._names=[];if(a===c){var s=[];n.each(e,function(t,e){var i,a=r.getDataItemValue(t);n[T](t)?(i=n.clone(t),i.value=e):i=e,s.push(i),n.isString(a)||null!=a&&!isNaN(a)||(a=""),o.push(a+"")}),e=s}var l={category:"ordinal",time:"time"}[a]||ne,u=this._data=new i([{name:"value",type:l}],this);u.initData(e,o)},getData:function(){return this._data},getCategories:function(){return this.get("axisType")===c?this._names.slice():void 0}});return a}),e("echarts/component/tooltip/TooltipContent",[Ne,Be,"zrender/tool/color","zrender/core/event","../../util/format",L],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return o.map(f,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontSize"),n=t[Ie]();return n&&e.push("color:"+n),e.push("font:"+t[Le]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),c(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function n(t){t=t;var n=[],r=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t[De](ke),l=t.get("padding");return r&&n.push(e(r)),a&&(d[A]?n.push("background-Color:"+a):(n.push("background-Color:#"+s.toHex(a)),n.push("filter:alpha(opacity=70)"))),c(["width","color","radius"],function(e){var i="border-"+e,r=h(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(o)),null!=l&&n.push("padding:"+u.normalizeCssArray(l).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document[se]("div"),n=e.getZr();this.el=i,this._x=e[Se]()/2,this._y=e[Me]()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!r.enterable){var i=n.handler;l.normalizeEvent(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},a(i,t)}function a(t,e){function i(t){n(t[Te])||t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i.parentNode}}l.addEventListener(e,"touchstart",i),l.addEventListener(e,"touchmove",i),l.addEventListener(e,"touchend",i)}var o=t(Be),s=t("zrender/tool/color"),l=t("zrender/core/event"),u=t("../../util/format"),c=o.each,h=u.toCamelCase,d=t(L),f=["","-webkit-","-moz-","-o-"],p="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";return r[ve]={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[xe]&&"absolute"!==e[xe]&&(i[xe]="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=p+n(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 i=this.el.style;i.left=t+"px",i.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(o.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/component/helper/listComponent",[Ne,"../../util/layout","../../util/format",H],function(t){function e(t,e,n){i.positionGroup(t,e.getBoxLayoutParams(),{width:n[Se](),height:n[Me]()},e.get("padding"))}var i=t("../../util/layout"),n=t("../../util/format"),r=t(H);return{layout:function(t,n,r){var a=i.getLayoutRect(n.getBoxLayoutParams(),{width:r[Se](),height:r[Me]()},n.get("padding"));i.box(n.get("orient"),t,n.get("itemGap"),a.width,a[Pe]),e(t,n,r)},addBackground:function(t,e){var i=n.normalizeCssArray(e.get("padding")),a=t[Ae](),o=e.getItemStyle(["color","opacity"]);o.fill=e.get("backgroundColor");var s=new r.Rect({shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[1]+i[3],height:a[Pe]+i[0]+i[2]},style:o,silent:!0,z2:-1});r.subPixelOptimizeRect(s),t.add(s)}}}),e("echarts/chart/pie/labelLayout",[Ne,"zrender/contain/text"],function(t){function e(t,e,i,n,r,a,o){function s(e,i,n){for(var r=e;i>r;r++)if(t[r].y+=n,r>e&&i>r+1&&t[r+1].y>t[r].y+t[r][Pe])return void l(r,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][Pe]));n--);}function u(t,e,i,n,r,a){for(var o=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t[pe];l>s;s++)if(t[s][xe]!==be){var u=Math.abs(t[s].y-n),c=t[s].len,h=t[s].len2,d=r+c>u?Math.sqrt((r+c+h)*(r+c+h)-u*u):Math.abs(t[s].x-i);e&&d>=o&&(d=o-10),!e&&o>=d&&(d=o+10),t[s].x=i+d*a,o=d}}t.sort(function(t,e){return t.y-e.y});for(var c,h=0,d=t[pe],f=[],p=[],m=0;d>m;m++)c=t[m].y-h,0>c&&s(m,d,-c,r),h=t[m].y+t[m][Pe];0>o-h&&l(d-1,h-o);for(var m=0;d>m;m++)t[m].y>=i?p.push(t[m]):f.push(t[m]);u(f,!1,e,i,n,r),u(p,!0,e,i,n,r)}function i(t,i,n,r,a,o){for(var s=[],l=[],u=0;u<t[pe];u++)t[u].x<i?s.push(t[u]):l.push(t[u]);e(l,i,n,r,1,a,o),e(s,i,n,r,-1,a,o);for(var u=0;u<t[pe];u++){var c=t[u].linePoints;if(c){var h=c[1][0]-c[2][0];c[2][0]=t[u].x<i?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 n=t("zrender/contain/text");return function(t,e,r,a){var o,s,l=t[U](),u=[],c=!1;l.each(function(i){var r,a,h,d,f=l.getItemLayout(i),m=l[X](i),v=m[De]("label.normal"),g=v.get(xe)||m.get("label.emphasis.position"),y=m[De]("labelLine.normal"),x=y.get(pe),_=y.get("length2"),b=(f.startAngle+f.endAngle)/2,w=Math.cos(b),M=Math.sin(b);o=f.cx,s=f.cy;var S=g===p||"inner"===g;if(g===be)r=f.cx,a=f.cy,d=be;else{var T=(S?(f.r+f.r0)/2*w:f.r*w)+o,C=(S?(f.r+f.r0)/2*M:f.r*M)+s;if(r=T+3*w,a=C+3*M,!S){var P=T+w*(x+e-f.r),A=C+M*(x+e-f.r),I=P+(0>w?-1:1)*_,L=A;r=I+(0>w?-5:5),a=L,h=[[T,C],[P,A],[I,L]]}d=S?be:w>0?"left":"right"}var z=v[De](ke)[Le](),k=v.get("rotate")?0>w?-b+Math.PI:-b:0,D=t.getFormattedLabel(i,K)||l[j](i),O=n[Ae](D,z,d,"top");c=!!k,f.label={x:r,y:a,position:g,height:O[Pe],len:x,len2:_,linePoints:h,textAlign:d,verticalAlign:"middle",font:z,rotation:k},S||u.push(f.label)}),!c&&t.get("avoidLabelOverlap")&&i(u,o,s,e,r,a)}}),e("echarts/chart/helper/SymbolDraw",[Ne,H,"./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t.getItemLayout(e);return!(!n||isNaN(n[0])||isNaN(n[1])||i&&i(e)||"none"===t[W](e,"symbol"))}var n=t(H),r=t("./Symbol"),a=e[ve];return a.updateData=function(t,e){var r=this.group,a=t.hostModel,o=this._data,s=this._symbolCtor,l={itemStyle:a[De]("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:a[De]("itemStyle.emphasis").getItemStyle(),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a[De]("label.normal"),hoverLabelModel:a[De]("label.emphasis")};t.diff(o).add(function(n){var a=t.getItemLayout(n);if(i(t,n,e)){var o=new s(t,n,l);o.attr(xe,a),t.setItemGraphicEl(n,o),r.add(o)}})[$](function(u,c){var h=o[O](c),d=t.getItemLayout(u);return i(t,u,e)?(h?(h.updateData(t,u,l),n.updateProps(h,{position:d},a)):(h=new s(t,u),h.attr(xe,d)),r.add(h),void t.setItemGraphicEl(u,h)):void r[E](h)})[E](function(t){var e=o[O](t);e&&e.fadeOut(function(){r[E](e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){var n=t.getItemLayout(i);e.attr(xe,n)})},a[E]=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e[E](t)})}):e[Ee]())},e}),e("echarts/chart/line/lineAnimationDiff",[Ne],function(){function t(t){return t>=0?1:-1}function e(e,i,n){for(var r,a=e[F](),o=e.getOtherAxis(a),s=a.onZero?0:o.scale[he]()[0],l=o.dim,u="x"===l||"radius"===l?1:0,c=i.stackedOn,h=i.get(l,n);c&&t(c.get(l,n))===t(h);){r=c;break}var d=[];return d[u]=i.get(a.dim,n),d[1-u]=r?r.get(l,n,!0):s,e.dataToPoint(d)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})})[$](function(t,e){i.push({cmd:"=",idx:e,idx1:t})})[E](function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,s){for(var l=i(t,n),u=[],c=[],h=[],d=[],f=[],p=[],m=[],v=s[V],g=0;g<l[pe];g++){var y=l[g],x=!0;switch(y.cmd){case"=":var _=t.getItemLayout(y.idx),b=n.getItemLayout(y.idx1);(isNaN(_[0])||isNaN(_[1]))&&(_=b.slice()),u.push(_),c.push(b),h.push(r[y.idx]),d.push(a[y.idx1]),m.push(n.getRawIndex(y.idx1));break;case"+":var w=y.idx;u.push(o.dataToPoint([n.get(v[0],w,!0),n.get(v[1],w,!0)])),c.push(n.getItemLayout(w).slice()),h.push(e(o,n,w)),d.push(a[w]),m.push(n.getRawIndex(w));break;case"-":var w=y.idx,M=t.getRawIndex(w);M!==w?(u.push(t.getItemLayout(w)),c.push(s.dataToPoint([t.get(v[0],w,!0),t.get(v[1],w,!0)])),h.push(r[w]),d.push(e(s,t,w)),m.push(M)):x=!1}x&&(f.push(y),p.push(p[pe]))}p.sort(function(t,e){return m[t]-m[e]});for(var S=[],T=[],C=[],P=[],A=[],g=0;g<p[pe];g++){var w=p[g];S[g]=u[w],T[g]=c[w],C[g]=h[w],P[g]=d[w],A[g]=f[w]}return{current:S,next:T,stackedOnCurrent:C,stackedOnNext:P,status:A}}}),e("echarts/chart/helper/Symbol",[Ne,Be,"../../util/symbol",H,"../../util/number"],function(t){function e(t){return t=t instanceof Array?t.slice():[+t,+t],t[0]/=2,t[1]/=2,t}function i(t,e,i){o.Group.call(this),this.updateData(t,e,i)}function n(t,e){this[f].drift(t,e)}var r=t(Be),a=t("../../util/symbol"),o=t(H),s=t("../../util/number"),l=i[ve];l._createSymbol=function(t,i,r){this[Ee]();var s=i.hostModel,l=i[W](r,"color"),u=a.createSymbol(t,-1,-1,2,2,l);u.attr({z2:100,culling:!0,scale:[0,0]}),u.drift=n;var c=e(i[W](r,"symbolSize"));o.initProps(u,{scale:c},s,r),this._symbolType=t,this.add(u)},l.stopSymbolAnimation=function(t){this.childAt(0)[R](t)},l.getSymbolPath=function(){return this.childAt(0)},l.getScale=function(){return this.childAt(0).scale},l.highlight=function(){this.childAt(0)[M](Q)},l.downplay=function(){this.childAt(0)[M](K)},l.setZ=function(t,e){var i=this.childAt(0);i[D]=t,i.z=e},l.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},l.updateData=function(t,i,n){this[Ce]=!1;var r=t[W](i,"symbol")||"circle",a=t.hostModel,s=e(t[W](i,"symbolSize"));if(r!==this._symbolType)this._createSymbol(r,t,i);else{var l=this.childAt(0);o.updateProps(l,{scale:s},a,i)}this._updateCommon(t,i,s,n),this._seriesModel=a};var c=["itemStyle",K],h=["itemStyle",Q],p=["label",K],m=["label",Q];return l._updateCommon=function(t,i,n,a){var l=this.childAt(0),f=t.hostModel,v=t[W](i,"color");"image"!==l.type&&l.useStyle({strokeNoScale:!0}),a=a||null;var y=a&&a.itemStyle,x=a&&a.hoverItemStyle,_=a&&a.symbolRotate,b=a&&a.symbolOffset,w=a&&a.labelModel,M=a&&a.hoverLabelModel,S=a&&a.hoverAnimation;if(!a||t.hasItemOption){var T=t[X](i);y=T[De](c).getItemStyle(["color"]),x=T[De](h).getItemStyle(),_=T[g]("symbolRotate"),b=T[g]("symbolOffset"),w=T[De](p),M=T[De](m),S=T[g]("hoverAnimation")}else x=r[me]({},x);var C=l.style;l.attr(d,(_||0)*Math.PI/180||0),b&&l.attr(xe,[s[q](b[0],n[0]),s[q](b[1],n[1])]),l.setColor(v),l[ye](y);var P=t[W](i,"opacity");null!=P&&(C.opacity=P);for(var A,I,L=t[V].slice();L[pe]&&(A=L.pop(),I=t.getDimensionInfo(A).type,I===z||"time"===I););null!=A&&w[g]("show")?(o.setText(C,w,v),C.text=r[u](f.getFormattedLabel(i,K),t.get(A,i))):C.text="",null!=A&&M[g]("show")?(o.setText(x,M,v),x.text=r[u](f.getFormattedLabel(i,Q),t.get(A,i))):x.text="";var k=e(t[W](i,"symbolSize"));if(l.off("mouseover").off("mouseout").off(Q).off(K),l.hoverStyle=x,o.setHoverStyle(l),S&&f.ifEnableAnimation()){var D=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")},O=function(){this.animateTo({scale:k},400,"elasticOut")};l.on("mouseover",D).on("mouseout",O).on(Q,D).on(K,O)}},l.fadeOut=function(t){var e=this.childAt(0);this[Ce]=!0,e.style.text="",o.updateProps(e,{scale:[0,0]},this._seriesModel,this[P],t)},r[y](i,o.Group),i}),e("echarts/chart/line/poly",[Ne,"zrender/graphic/Path","zrender/core/vector"],function(t){function e(t){return isNaN(t[0])||isNaN(t[1])}function n(t,n,r,a,m,v,g,y,x,_,b){for(var w=0,M=r,S=0;a>S;S++){var T=n[M];if(M>=m||0>M)break;if(e(T)){if(b){M+=v;continue}break}if(M===r)t[v>0?o:i](T[0],T[1]),h(f,T);else if(x>0){var C=M+v,P=n[C];if(b)for(;P&&e(n[C]);)C+=v,P=n[C];var A=.5,I=n[w],P=n[C];if(!P||e(P))h(p,T);else{e(P)&&!b&&(P=T),s.sub(d,P,I);var L,z;if("x"===_||"y"===_){var k="x"===_?0:1;L=Math.abs(T[k]-I[k]),z=Math.abs(T[k]-P[k])}else L=s.dist(T,I),z=s.dist(T,P);A=z/(z+L),c(p,T,d,-x*(1-A))}l(f,f,y),u(f,f,g),l(p,p,y),u(p,p,g),t.bezierCurveTo(f[0],f[1],p[0],p[1],T[0],T[1]),c(f,T,d,x*A)}else t[i](T[0],T[1]);w=M,M+=v}return S}function r(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t[pe];r++){var a=t[r];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[0]>n[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var a=t("zrender/graphic/Path"),s=t("zrender/core/vector"),l=s.min,u=s.max,c=s.scaleAndAdd,h=s.copy,d=[],f=[],p=[];return{Polyline:a[me]({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[pe],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[me]({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[pe],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 d=n(t,a,s,l,l,1,c.min,c.max,i.smooth,u,i.connectNulls);n(t,o,s+d-1,d,l,-1,h.min,h.max,i.stackedOnSmooth,u,i.connectNulls),s+=d+1,t.closePath()}}})}}),e("echarts/scale/Ordinal",[Ne,Be,"./Scale"],function(t){var e=t(Be),i=t("./Scale"),n=i[ve],r=i[me]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[pe]-1]},parse:function(t){return typeof t===re?e[ae](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[fe].call(this,t)&&null!=this._data[t]},normalize:function(t){return n.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(n.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[de]=function(){return new r},r}),e("echarts/component/timeline/TimelineView",[Ne,"../../view/Component"],function(t){var e=t("../../view/Component");return e[me]({type:"timeline"})}),e("echarts/component/helper/brushHelper",[Ne,Be,H],function(t){function e(t){return t[0]>t[1]&&t.reverse(),t}function i(t,e){for(var i=!0,n=0;n<l[pe];n++){var r=l[n]+"Index";if(t[r]>=0){i=!1;for(var a=0;a<e[pe];a++)if(e[a][r]===t[r])return e[a]}}return i}function n(t,i,n,a){var o=n.coordSys[G](t);return e(r.map([0,1],function(t){return i?o.coordToData(o.toLocalCoord(a[t])):o.toGlobalCoord(o[N](a[t]))}))}var r=t(Be),a=t(H),o=r.each,s={},l=["geo","xAxis","yAxis"],u="--",c=["dataToPoint","pointToData"];s.parseOutputRanges=function(t,e,n,r){o(t,function(t,n){var a=t.panelId;if(a){a=a.split(u),t[a[0]+"Index"]=+a[1];var o=i(t,e);t.coordRange=h[t.brushType](1,o,t.range),r&&(r[n]=o)}})},s.parseInputRanges=function(t){o(t.areas,function(e){var n=i(e,t.coordInfoList);e.range=e.range||[],n&&n!==!0&&(e.range=h[e.brushType](0,n,e.coordRange),e.panelId=n.panelId)})},s.makePanelOpts=function(t){var e=[];return o(t,function(t){var i,n=t.coordSys;t.geoIndex>=0?(i=n[Ae]().clone(),i[v](a.getTransform(n))):i=n.grid.getRect().clone(),e.push({panelId:t.panelId,rect:i})}),e},s.makeCoordInfoList=function(t,e){var i=[];return o(l,function(n){var a=t[n+"Index"];null!=a&&"none"!==a&&("all"===a||r[Z](a)||(a=[a]),e[Y]({mainType:n},function(t,e){if(!("all"!==a&&r[ae](a,e)<0)){var o,s;"xAxis"===n||"yAxis"===n?o=t.axis.grid:s=t[Re];for(var l,c=0,h=i[pe];h>c;c++){var d=i[c];if("yAxis"===n&&!d.yAxis&&d.xAxis){var f=o.getCartesian(d.xAxisIndex,e);if(f){s=f,l=d;break}}}!l&&i.push(l={}),l[n]=t,l[n+"Index"]=e,l.panelId=n+u+e,l.coordSys=s||o.getCartesian(l.xAxisIndex,l.yAxisIndex),l.coordSys?i[n+"Has"]=!0:i.pop()}}))}),i},s.controlSeries=function(t,e,n){var r=i(t,e.coordInfoList);return r===!0||r&&r.coordSys===n[Re]};var h={lineX:r.curry(n,"x"),lineY:r.curry(n,"y"),rect:function(t,i,n){var r=i.coordSys,a=r[c[t]]([n[0][0],n[1][0]]),o=r[c[t]]([n[0][1],n[1][1]]);return[e([a[0],o[0]]),e([a[1],o[1]])]},polygon:function(t,e,i){var n=e.coordSys;return r.map(i,n[c[t]],n)}};return s}),e("echarts/component/timeline/TimelineAxis",[Ne,Be,"../../coord/Axis","../../coord/axisHelper"],function(t){var e=t(Be),i=t("../../coord/Axis"),n=t("../../coord/axisHelper"),r=function(t,e,n,r){i.call(this,t,e,n),this.type=r||"value",this._autoLabelInterval,this.model=null};return r[ve]={constructor:r,getLabelInterval:function(){var t=this.model,i=t[De]("label.normal"),r=i.get("interval");if(null!=r&&"auto"!=r)return r;var r=this._autoLabelInterval;return r||(r=this._autoLabelInterval=n.getAxisLabelInterval(e.map(this.scale[ce](),this[N],this),n[h](this,i.get("formatter")),i[De](ke)[Le](),"horizontal"===t.get("orient"))),r},isLabelIgnored:function(t){if(this.type===c){var e=this.getLabelInterval();return typeof e===ee&&!e(t,this.scale[ue](t))||t%(e+1)}}},e[y](r,i),r}),e("echarts/component/dataZoom/history",[Ne,Be],function(t){function e(t){var e=t[r];return e||(e=t[r]=[{}]),e}var i=t(Be),n=i.each,r="\0_ec_hist_store",o={push:function(t,i){var r=e(t);n(i,function(e,i){for(var n=r[pe]-1;n>=0;n--){var o=r[n];if(o[i])break}if(0>n){var s=t[a]({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(i)},pop:function(t){var i=e(t),r=i[i[pe]-1];i[pe]>1&&i.pop();var a={};return n(r,function(t,e){for(var n=i[pe]-1;n>=0;n--){var t=i[n][e];if(t){a[e]=t;break}}}),a},clear:function(t){t[r]=null},count:function(t){return e(t)[pe]}};return o}),e("echarts/component/helper/BrushController",[Ne,"zrender/mixin/Eventful",Be,"zrender/core/BoundingRect",H,"./interactionMutex","../../data/DataDiffer"],function(t){function e(t){V.call(this),this._zr=t,this.group=new Z.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={},j(se,function(t,e){this._handlers[e]=G.bind(t,this)},this)}function i(t,e){var i=t._zr;t._enableGlobalPan||q.take(i,ie,t._uid),j(t._handlers,function(t,e){i.on(e,t)}),t._brushType=e.brushType,t._brushOption=G.merge(G.clone(ae),e,!0)}function n(t){var e=t._zr;q.release(e,ie,t._uid),j(t._handlers,function(t,i){e.off(i,t);
  }),t._brushType=t._brushOption=null}function r(t,e){var i=le[e.brushType].createCover(t,e);return s(i),i.__brushOption=e,t.group.add(i),i}function a(t,e){var i=u(e);return i.endCreating&&(i.endCreating(t,e),s(e)),e}function o(t,e){var i=e.__brushOption;u(e).updateCoverShape(t,e,i.range,i)}function s(t){t[_](function(t){t.z=J,t.z2=J})}function l(t,e){u(e).updateCommon(t,e),o(t,e)}function u(t){return le[t.__brushOption.brushType]}function c(t,e,i){var n=t._panels;if(!n)return!0;var r;return j(n,function(t){t[fe](e,i)&&(r=t)}),r}function h(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null==n||i[n]}function f(t){var e=t._covers,i=e[pe];return j(e,function(e){t.group[E](e)},t),e[pe]=0,!!i}function p(t,e){var i=U(t._covers,function(t){var e=t.__brushOption,i=G.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}});t[M]("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function m(t){var e=t._track;if(!e[pe])return!1;var i=e[e[pe]-1],n=e[0],r=i[0]-n[0],a=i[1]-n[1],o=K(r*r+a*a,.5);return o>te}function v(t){var e=t[pe]-1;return 0>e&&(e=0),[t[0],t[e]]}function g(t,e,i,n){var r=new Z.Group;return r.add(new Z.Rect({name:"main",style:w(i),silent:!0,draggable:!0,cursor:"move",drift:X(t,e,r,"nswe"),ondragend:X(p,e,{isEnd:!0})})),j(n,function(i){r.add(new Z.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:X(t,e,r,i),ondragend:X(p,e,{isEnd:!0})}))}),r}function y(t,e,i,n){var r=n.brushStyle.lineWidth||0,a=Q(r,ee),o=i[0][0],s=i[1][0],l=o-r/2,u=s-r/2,c=i[0][1],h=i[1][1],d=c-a+r/2,f=h-a+r/2,p=c-o,m=h-s,v=p+r,g=m+r;b(t,e,"main",o,s,p,m),n.transformable&&(b(t,e,"w",l,u,a,g),b(t,e,"e",d,u,a,g),b(t,e,"n",l,u,v,a),b(t,e,"s",l,f,v,a),b(t,e,"nw",l,u,a,a),b(t,e,"ne",d,u,a,a),b(t,e,"sw",l,f,a,a),b(t,e,"se",d,f,a,a))}function x(t,e){var i=e.__brushOption,n=i.transformable,r=e.childAt(0);r.useStyle(w(i)),r.attr({silent:!n,cursor:n?"move":"default"}),j(["w","e","n","s","se","sw","ne","nw"],function(i){var r=e.childOfName(i),a=C(t,i);r&&r.attr({silent:!n,invisible:!n,cursor:n?re[a]+"-resize":null})})}function b(t,e,i,n,r,a,o){var s=e.childOfName(i);s&&s.setShape(z(L(t,e,[[n,r],[n+a,r+o]])))}function w(t){return G[Oe]({strokeNoScale:!0},t.brushStyle)}function S(t,e,i,n){var r=[Y(t,i),Y(e,n)],a=[Q(t,i),Q(e,n)];return[[r[0],a[0]],[r[1],a[1]]]}function T(t){return Z.getTransform(t.group)}function C(t,e){if(e[pe]>1){e=e.split("");var i=[C(t,e[0]),C(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Z.transformDirection(n[e],T(t));return r[i]}function P(t,e,i,n,r,a,o){var s=n.__brushOption,u=t(s.range),c=I(i,a,o);j(r.split(""),function(t){var e=ne[t];u[e[0]][e[1]]+=c[e[0]]}),s.range=e(S(u[0][0],u[1][0],u[0][1],u[1][1])),l(i,n),p(i,{isEnd:!1})}function A(t,e,i,n){var r=e.__brushOption.range,a=I(t,i,n);j(r,function(t){t[0]+=a[0],t[1]+=a[1]}),l(t,e),p(t,{isEnd:!1})}function I(t,e,i){var n=t.group,r=n.transformCoordToLocal(e,i),a=n.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function L(t,e,i){var n=h(t,e);if(n===!0)return G.clone(i);var r=n[Ae]();return G.map(i,function(t){var e=t[0];e=Q(e,r.x),e=Y(e,r.x+r.width);var i=t[1];return i=Q(i,r.y),i=Y(i,r.y+r[Pe]),[e,i]})}function z(t){var e=Y(t[0][0],t[1][0]),i=Y(t[0][1],t[1][1]),n=Q(t[0][0],t[1][0]),r=Q(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:r-i}}function k(t,e){var i=e.offsetX,n=e.offsetY,r=t._zr;if(t._brushType){for(var a,o=t._panels,s=t._covers,l=0;l<s[pe];l++)if(le[s[l].__brushOption.brushType][fe](s[l],i,n)){a=!0;break}a||(o?j(o,function(t){t[fe](i,n)&&r.setCursorStyle("crosshair")}):r.setCursorStyle("crosshair"))}}function D(t){var e=t.event;e.preventDefault&&e.preventDefault()}function O(t,e,i){return t.childOfName("main")[fe](e,i)}function R(t,e,i){var n,s=e.offsetX,l=e.offsetY,u=t._creatingCover,h=t._creatingPanel,d=t._brushOption;if(t._track.push(t.group.transformCoordToLocal(s,l)),m(t)||u){if(h&&!u){"single"===d.brushMode&&f(t);var p=G.clone(d);p.panelId=h===!0?null:h.__brushPanelId,u=t._creatingCover=r(t,p),t._covers.push(u)}if(u){var v=le[t._brushType],g=u.__brushOption;g.range=v.getCreatingRange(L(t,u,t._track)),i&&(a(t,u),v.updateCommon(t,u)),o(t,u),n={isEnd:i}}}else i&&"single"===d.brushMode&&d.removeOnClick&&c(t,s,l)&&f(t)&&(n={isEnd:i,removeOnClick:!0});return n}function B(t){if(this._dragging){D(t);var e=R(this,t,!0);this._dragging=!1,this._track=[],this._creatingCover=null,e&&p(this,e)}}function N(t){return{createCover:function(e,i){return g(X(P,function(e){var i=[e,[0,100]];return t&&i.reverse(),i},function(e){return e[t]}),e,i,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var i=v(e),n=Y(i[0][t],i[1][t]),r=Q(i[0][t],i[1][t]);return[n,r]},updateCoverShape:function(e,i,n,r){var a,o=r.brushStyle.width;if(null==o){var s=h(e,i),l=0;if(s!==!0){var u=s[Ae]();o=t?u.width:u[Pe],l=t?u.x:u.y}a=[l,l+(o||0)]}else a=[-o/2,o/2];var c=[n,a];t&&c.reverse(),y(e,i,c,r)},updateCommon:x,contain:O}}var V=t("zrender/mixin/Eventful"),G=t(Be),F=t("zrender/core/BoundingRect"),Z=t(H),q=t("./interactionMutex"),W=t("../../data/DataDiffer"),X=G.curry,j=G.each,U=G.map,Y=Math.min,Q=Math.max,K=Math.pow,J=1e4,te=6,ee=6,ie="globalPan",ne={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[ve]={constructor:e,enableBrush:function(t){return this._brushType&&n(this),t.brushType&&i(this,t),this},setPanels:function(t){var e=this._panels||{},i=this._panels=t&&t[pe]&&{},n=this.group;return i&&j(t,function(t){var r=t.panelId,a=e[r];a||(a=new Z.Rect({silent:!0,invisible:!0}),n.add(a));var o=t.rect;o instanceof F||(o=F[de](o)),a.attr("shape",o.plain()),a.__brushPanelId=r,i[r]=a,e[r]=null}),j(e,function(t){t&&n[E](t)}),this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t[xe]||[0,0],rotation:t[d]||0,scale:t.scale||[1,1]}),this},eachCover:function(t,e){j(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:s+e)+"-"+t.brushType}function i(t,i){return e(t.__brushOption,i)}function n(e,i){var n=t[e];if(null!=i&&u[i]===d)c[e]=u[i];else{var o=c[e]=null!=i?(u[i].__brushOption=n,u[i]):a(h,r(h,n));l(h,o)}}function o(t){u[t]!==d&&h.group[E](u[t])}t=G.map(t,function(t){return G.merge(G.clone(ae),t,!0)});var s="\0-brush-index-",u=this._covers,c=this._covers=[],h=this,d=this._creatingCover;return new W(u,t,i,e).add(n)[$](n)[E](o).execute(),this},unmount:function(){return this.enableBrush(!1),f(this),this._zr[E](this.group),this},dispose:function(){this.unmount(),this.off()}},G.mixin(e,V);var se={mousedown:function(t){if(this._dragging)B.call(this,t);else if(!t[Te]||!t[Te].draggable){D(t);var e=t.offsetX,i=t.offsetY;this._creatingCover=null;var n=this._creatingPanel=c(this,e,i);n&&(this._dragging=!0,this._track=[this.group.transformCoordToLocal(e,i)])}},mousemove:function(t){if(k(this,t),this._dragging){D(t);var e=R(this,t,!1);e&&p(this,e)}},mouseup:B},le={lineX:N(0),lineY:N(1),rect:{createCover:function(t,e){return g(X(P,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=v(t);return S(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,i,n){y(t,e,i,n)},updateCommon:x,contain:O},polygon:{createCover:function(t,e){var i=new Z.Group;return i.add(new Z.Polyline({name:"main",style:w(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e[E](e.childAt(0)),e.add(new Z.Polygon({name:"main",draggable:!0,drift:X(A,t,e),ondragend:X(p,t,{isEnd:!0})}))},updateCoverShape:function(t,e,i){e.childAt(0).setShape({points:L(t,e,i)})},updateCommon:x,contain:O}};return e}),e("echarts/coord/cartesian/Cartesian",[Ne,Be],function(t){function e(t){return this._axes[t]}var i=t(Be),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[ve]={constructor:n,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[I](),i[le](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,N)},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[pe];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("echarts/component/dataZoomSelect",[Ne,"./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/Axis",[Ne,"../util/number",Be],function(t){function e(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var i=t("../util/number"),n=i.linearMap,r=t(Be),a=[0,1],o=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return o[ve]={constructor:o,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[fe](this[N](t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[he](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var r=this._extent,o=this.scale;return t=o.normalize(t),this.onBand&&o.type===z&&(r=r.slice(),e(r,o.count())),n(t,a,r,i)},coordToData:function(t,i){var r=this._extent,o=this.scale;this.onBand&&o.type===z&&(r=r.slice(),e(r,o.count()));var s=n(t,r,a,i);return this.scale.scale(s)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;n<e[pe];n++)i.push(e[n][0]);return e[n-1]&&i.push(e[n-1][1]),i}return r.map(this.scale[ce](),this[N],this)},getLabelsCoords:function(){return r.map(this.scale[ce](),this[N],this)},getBands:function(){for(var t=this[he](),e=[],i=this.scale.count(),n=t[0],r=t[1],a=r-n,o=0;i>o;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[he](),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},o}),e("echarts/component/helper/interactionMutex",[Ne,"../../echarts"],function(t){function e(t){return t[i]||(t[i]={})}var i="\0_ec_interaction_mutex",n={take:function(t,i,n){var r=e(t);r[i]=n},release:function(t,i,n){var r=e(t),a=r[i];a===n&&(r[i]=null)},isTaken:function(t,i){return!!e(t)[i]}};return t("../../echarts")[ge]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),n}),e("echarts/coord/cartesian/axisLabelInterval",[Ne,Be,"../axisHelper"],function(t){var e=t(Be),i=t("../axisHelper");return function(t){var n=t.model,r=n[De]("axisLabel"),a=r.get("interval");return t.type!==c||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale[ce](),t[N],t),n[h](),r[De](ke)[Le](),t.isHorizontal())}}),e("echarts/component/dataZoom/SelectZoomModel",[Ne,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[me]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/typeDefaulter",[Ne,"../../model/Component"],function(t){t("../../model/Component").registerSubTypeDefaulter("dataZoom",function(){return"slider"})}),e("echarts/component/dataZoom/SelectZoomView",[Ne,"./DataZoomView"],function(t){return t("./DataZoomView")[me]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/dataZoomProcessor",[Ne,"../../echarts"],function(t){function e(t,e,i){i.getAxisProxy(t.name,e).reset(i)}function i(t,e,i){i.getAxisProxy(t.name,e).filterData(i)}var n=t("../../echarts");n.registerProcessor(function(t){t[Y]("dataZoom",function(t){t.eachTargetAxis(e),t.eachTargetAxis(i)}),t[Y]("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})})})}),e("echarts/component/dataZoom/DataZoomView",[Ne,"../../view/Component"],function(t){var e=t("../../view/Component");return e[me]({type:"dataZoom",render:function(t,e,i){this.dataZoomModel=t,this[l]=e,this.api=i},getTargetInfo:function(){function t(t,e,i,n){for(var r,a=0;a<i[pe];a++)if(i[a].model===t){r=i[a];break}r||i.push(r={model:t,axisModels:[],coordIndex:n}),r.axisModels.push(e)}var e=this.dataZoomModel,i=this[l],n=[],r=[],o=[];return e.eachTargetAxis(function(e,s){var l=i.getComponent(e.axis,s);if(l){o.push(l);var u,c=e.axis;"xAxis"===c||"yAxis"===c?u="grid":("angleAxis"===c||"radiusAxis"===c)&&(u="polar");var h=u?i[a]({mainType:u,index:l.get(u+"Index"),id:l.get(u+"Id")})[0]:null;null!=h&&t(h,l,"grid"===u?n:r,h.componentIndex)}},this),{cartesians:n,polars:r,axisModels:o}}})}),e("echarts/component/dataZoom/DataZoomModel",[Ne,Be,L,"../../echarts","../../util/model","./helper","./AxisProxy"],function(t){function e(t){var e={};return d(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}function i(t,e,i,n){null!=i[e]&&null==i[t]&&(n[t]=null)}var n=t(Be),r=t(L),o=t("../../echarts"),s=t("../../util/model"),u=t("./helper"),h=t("./AxisProxy"),d=n.each,f=u.eachAxisDim,p=o.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis",w],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,i,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0;var r=e(t);this.mergeDefaultAndTheme(t,n),this.doInit(r)},mergeOption:function(t){var i=e(t);n.merge(this[J],t,!0),this.doInit(i)},doInit:function(t){var e=this[J];r[A]||(e.realtime=!1),this._setDefaultThrottle(t),i("start","startValue",t,e),i("end","endValue",t,e),this.textStyleModel=this[De](ke),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,r){var a=this.dependentModels[e.axis][i],o=a.__dzAxisProxy||(a.__dzAxisProxy=new h(e.name,i,this,r));t[e.name+"_"+i]=o},this)},_resetTarget:function(){var t=this[J],e=this._judgeAutoMode();f(function(e){var i=e.axisIndex;t[i]=s.normalizeToArray(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this[J],e=!1;f(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this[J];if(t){var r="vertical"===e?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[r.axis][pe]&&(i[r.axisIndex]=[0],t=!1)}t&&f(function(e){if(t){var n=[],r=this.dependentModels[e.axis];if(r[pe]&&!n[pe])for(var a=0,o=r[pe];o>a;a++)r[a].get("type")===c&&n.push(a);i[e.axisIndex]=n,n[pe]&&(t=!1)}},this),t&&this[l].eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&f(function(e){var r=i[e.axisIndex],o=t.get(e.axisIndex),s=t.get(e.axisId),u=t[l][a]({mainType:e.axis,index:o,id:s})[0];o=u.componentIndex,n[ae](r,o)<0&&r.push(o)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this[J].orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return f(function(n){var r=t.get(n.axisIndex),a=this.dependentModels[n.axis][r];a&&a.get("type")===e||(i=!1)},this),i},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this[l][J];this[J].throttle=e[B]&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return f(function(e){if(null==t){var i=this.get(e.axisIndex);i[pe]&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this[l];f(function(n){d(this.get(n.axisIndex),function(r){t.call(e,n,r,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(t){d(["start","end","startValue","endValue"],function(e){this[J][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 i=this.findRepresentativeAxisProxy();return i?i.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 p}),e("echarts/component/dataZoom/dataZoomAction",[Ne,Be,"./helper","../../echarts"],function(t){var e=t(Be),i=t("./helper"),n=t("../../echarts");n[ge]("dataZoom",function(t,n){var r=i.createLinkedNodesFinder(e.bind(n[Y],n,"dataZoom"),i.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),a=[];n[Y]({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/coord/cartesian/AxisModel",[Ne,"../../model/Component",Be,"../axisModelCreator","../axisModelCommonMixin","../axisModelZoomMixin"],function(t){function e(t,e){return e.type||(e.data?c:"value")}var i=t("../../model/Component"),n=t(Be),r=t("../axisModelCreator"),o=i[me]({type:"cartesian2dAxis",axis:null,init:function(){o.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){o.superApply(this,te,arguments),this.resetRange()},restoreData:function(){o.superApply(this,"restoreData",arguments),this.resetRange()},findGridModel:function(){return this[l][a]({mainType:"grid",index:this.get("gridIndex"),id:this.get("gridId")})[0]}});n.merge(o[ve],t("../axisModelCommonMixin")),n.merge(o[ve],t("../axisModelZoomMixin"));var s={offset:0};return r("x",o,e,s),r("y",o,e,s),o}),e("echarts/component/dataZoom/helper",[Ne,"../../util/format",Be],function(t){var e=t("../../util/format"),i=t(Be),n={},r=["x","y","z","radius","angle"];return n.createNameEach=function(t,n){t=t.slice();var r=i.map(t,e.capitalFirst);n=(n||[]).slice();var a=i.map(n,e.capitalFirst);return function(e,o){i.each(t,function(t,i){for(var s={name:t,capital:r[i]},l=0;l<n[pe];l++)s[n[l]]=t+a[l];e.call(o,s)})}},n.eachAxisDim=n.createNameEach(r,["axisIndex","axis","index","id"]),n.createLinkedNodesFinder=function(t,e,n){function r(t,e){return i[ae](e.nodes,t)>=0}function a(t,r){var a=!1;return e(function(e){i.each(n(t,e)||[],function(t){r.records[e.name][t]&&(a=!0)})}),a}function o(t,r){r.nodes.push(t),e(function(e){i.each(n(t,e)||[],function(t){r.records[e.name][t]=!0})})}return function(i){function n(t){!r(t,s)&&a(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(n);while(l);return s}},n}),e("echarts/component/dataZoom/AxisProxy",[Ne,Be,"../../util/number"],function(t){function e(t,e){var i=[1/0,-1/0];return u(e,function(e){var n=e[U]();n&&u(e.coordDimToDataDim(t),function(t){var e=n.getDataExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})},this),i}function i(t,e,i){var r=i.getAxisModel(),a=r.axis.scale,o=[0,100],l=[t.start,t.end],c=[];return e=e.slice(),n(e,r,a),u(["startValue","endValue"],function(e){c.push(null!=t[e]?a.parse(t[e]):null)}),u([0,1],function(t){var i=c[t],n=l[t];null!=n||null==i?(null==n&&(n=o[t]),i=a.parse(s.linearMap(n,o,e,!0))):n=s.linearMap(i,e,o,!0),c[t]=i,l[t]=n}),{valueWindow:h(c),percentWindow:h(l)}}function n(t,e,i){return u(["min","max"],function(n,r){var a=e.get(n,!0);null!=a&&(a+"")[I]()!=="data"+n&&(t[r]=i.parse(a))}),e.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function r(t,e){var i=t.getAxisModel(),n=t._percentWindow,r=t._valueWindow;if(n){var a=e||0===n[0]&&100===n[1],o=!e&&s.getPixelPrecision(r,[0,500]),l=!(e||20>o&&o>=0),u=e||a||l;i.setRange&&i.setRange(u?null:+r[0].toFixed(o),u?null:+r[1].toFixed(o))}}var o=t(Be),s=t("../../util/number"),u=o.each,h=s.asc,d=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this[l]=n,this._dataZoomModel=i};return d[ve]={constructor:d,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[l];return e.eachSeries(function(i){var n=i.get(Re);if("cartesian2d"===n||"polar"===n){var r=this._dimName,o=e[a]({mainType:r+"Axis",index:i.get(r+"AxisIndex"),id:i.get(r+"AxisId")})[0];this._axisIndex===(o&&o.componentIndex)&&t.push(i)}},this),t},getAxisModel:function(){return this[l].getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this[l],r=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle");var o;return n[Y](t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},reset:function(t){if(t===this._dataZoomModel){var n=this._dataExtent=e(this._dimName,this.getTargetSeriesModels()),a=i(t[J],n,this);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,r(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,r(this,!0))},filterData:function(t){function e(t){return t>=a[0]&&t<=a[1]}if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow,o=this.getOtherAxisModel();t.get("$fromToolbox")&&o&&o.get("type")===c&&(r="empty"),u(n,function(t){var n=t[U]();n&&u(t.coordDimToDataDim(i),function(i){"empty"===r?t.setData(n.map(i,function(t){return e(t)?t:NaN})):n.filterSelf(i,e)})})}}},d}),e("echarts/coord/axisModelCommonMixin",[Ne,Be,"./axisHelper"],function(t){function e(t){return r[T](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===c&&r.map(this.get("data"),e)}function n(){return a[h](this.axis,this.get("axisLabel.formatter"))}var r=t(Be),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("echarts/coord/axisModelZoomMixin",[Ne],function(){return{getMin:function(){var t=this[J],e=null!=t.rangeStart?t.rangeStart:t.min;return e instanceof Date&&(e=+e),e},getMax:function(){var t=this[J],e=null!=t.rangeEnd?t.rangeEnd:t.max;return e instanceof Date&&(e=+e),e},getNeedCrossZero:function(){var t=this[J];return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},setRange:function(t,e){this[J].rangeStart=t,this[J].rangeEnd=e},resetRange:function(){this[J].rangeStart=this[J].rangeEnd=null}}}),e("echarts/coord/axisModelCreator",[Ne,"./axisDefault",Be,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(Be),n=t("../model/Component"),r=t("../util/layout"),a=["value",c,"time","log"];return function(t,o,s,l){i.each(a,function(n){o[me]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,l=o?r.getLayoutParams(e):{},u=a.getTheme();i.merge(e,u.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,l,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],l],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisDefault",[Ne,Be],function(t){var e=t(Be),i={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)"]}}},n=e.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),r=e.merge({boundaryGap:[0,0],splitNumber:5},i),a=e[Oe]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[Oe]({logBase:10},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/component/axis/AxisView",[Ne,Be,H,"./AxisBuilder","../../echarts"],function(t){function e(t,e){function i(t){var e=n[G](t);return e.toGlobalCoord(e[N](0))}var n=t[Re],r=e.axis,a={},o=r[xe],s=r.onZero?"onZero":o,l=r.dim,u=n.getRect(),c=[u.x,u.x+u.width,u.y,u.y+u[Pe]],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(i("y"),f.x[_e]),f.x.top),f.y.onZero=Math.max(Math.min(i("x"),f.y.right),f.y.left),a[xe]=["y"===l?f.y[s]:c[0],"x"===l?f.x[s]:c[3]],a[d]=Math.PI/2*("x"===l?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[o],r.onZero&&(a.labelOffset=f[l][o]-f[l].onZero),e[De]("axisTick").get(p)&&(a.tickDirection=-a.tickDirection),e[De]("axisLabel").get(p)&&(a.labelDirection=-a.labelDirection);var v=e[De]("axisLabel").get("rotate");return a.labelRotation="top"===s?-v:v,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(Be),n=t(H),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,o=r.getInterval,s=["axisLine","axisLabel","axisTick","axisName"],l=["splitArea","splitLine"],u=t("../../echarts").extendComponentView({type:"axis",render:function(t){this.group[Ee]();var a=this._axisGroup;if(this._axisGroup=new n.Group,this.group.add(this._axisGroup),t.get("show")){var o=t.findGridModel(),u=e(o,t),c=new r(t,u);i.each(s,c.add,c),this._axisGroup.add(c.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,o,u.labelInterval)},this),n.groupTransition(a,this._axisGroup,t)}},_splitLine:function(t,e,r){var s=t.axis,l=t[De]("splitLine"),u=l[De]("lineStyle"),c=u.get("color"),h=o(l,r);c=i[Z](c)?c:[c];for(var d=e[Re].getRect(),f=s.isHorizontal(),p=0,m=s.getTicksCoords(),v=s.scale[ce](),g=[],y=[],x=u.getLineStyle(),_=0;_<m[pe];_++)if(!a(s,_,h)){var b=s.toGlobalCoord(m[_]);f?(g[0]=b,g[1]=d.y,y[0]=b,y[1]=d.y+d[Pe]):(g[0]=d.x,g[1]=b,y[0]=d.x+d.width,y[1]=b);var w=p++%c[pe];this._axisGroup.add(new n.Line(n.subPixelOptimizeLine({anid:"line_"+v[_],shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:i[Oe]({stroke:c[w]},x),silent:!0})))}},_splitArea:function(t,e,r){var s=t.axis,l=t[De]("splitArea"),u=l[De]("areaStyle"),c=u.get("color"),h=e[Re].getRect(),d=s.getTicksCoords(),f=s.scale[ce](),p=s.toGlobalCoord(d[0]),m=s.toGlobalCoord(d[0]),v=0,g=o(l,r),y=u.getAreaStyle();c=i[Z](c)?c:[c];for(var x=1;x<d[pe];x++)if(!a(s,x,g)){var _,b,w,M,S=s.toGlobalCoord(d[x]);s.isHorizontal()?(_=p,b=h.y,w=S-_,M=h[Pe]):(_=h.x,b=m,w=h.width,M=S-b);var T=v++%c[pe];this._axisGroup.add(new n.Rect({anid:"area_"+f[x],shape:{x:_,y:b,width:w,height:M},style:i[Oe]({fill:c[T]},y),silent:!0})),p=_+w,m=b+M}}});u[me]({type:"xAxis"}),u[me]({type:"yAxis"})}),e("echarts/component/axis/AxisBuilder",[Ne,Be,"../../util/format",H,"../../model/Model","../../util/number","zrender/core/vector"],function(t){function e(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function i(t,e,i){var n,r,a=g(e-t[d]);return y(a)?(r=i>0?"top":_e,n=be):y(a-w)?(r=i>0?_e:"top",n=be):(r=we,n=a>0&&w>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,verticalAlign:r}}function n(t,e,i,n){var r,a,o=g(i-t[d]),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return y(o-w/2)?(a=l?_e:"top",r=be):y(o-1.5*w)?(a=l?"top":_e,r=be):(a=we,r=1.5*w>o&&o>w/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,verticalAlign:a}}function r(t){var e=t.get("tooltip");return t.get(Ce)||!(t.get("triggerEvent")||e&&e.show)}var a=t(Be),o=t("../../util/format"),f=t(H),p=t("../../model/Model"),m=t("../../util/number"),g=m.remRadian,y=m.isRadianAroundZero,x=t("zrender/core/vector"),_=x[v],b=a[u],w=Math.PI,M=function(t,e){this.opt=e,this.axisModel=t,a[Oe](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new f.Group;var i=new f.Group({position:e[xe].slice(),rotation:e[d]});i.updateTransform(),this._transform=i[s],this._dumbGroup=i};M[ve]={constructor:M,hasBuilder:function(t){return!!S[t]},add:function(t){S[t].call(this)},getGroup:function(){return this.group}};var S={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[he](),n=this._transform,r=[i[0],0],o=[i[1],0];n&&(_(r,r,n),_(o,o,n)),this.group.add(new f.Line(f.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[1]},style:a[me]({lineCap:"round"},e[De]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show"))for(var e=t.axis,i=t[De]("axisTick"),n=this.opt,r=i[De]("lineStyle"),o=i.get(pe),s=C(i,n.labelInterval),l=e.getTicksCoords(i.get("alignWithLabel")),u=e.scale[ce](),c=[],h=[],d=this._transform,p=0;p<l[pe];p++)if(!T(e,p,s)){var m=l[p];c[0]=m,c[1]=0,h[0]=m,h[1]=n.tickDirection*o,d&&(_(c,c,d),_(h,h,d)),this.group.add(new f.Line(f.subPixelOptimizeLine({anid:"tick_"+u[p],shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:a[Oe](r.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0})))}},axisLabel:function(){function t(t,e){var i=t&&t[Ae]().clone(),n=e&&e[Ae]().clone();return i&&n?(i[v](t.getLocalTransform()),n[v](e.getLocalTransform()),i.intersect(n)):void 0}var n=this.opt,a=this.axisModel,o=b(n.axisLabelShow,a.get("axisLabel.show"));if(o){var s=a.axis,u=a[De]("axisLabel"),m=u[De](ke),g=u.get("margin"),y=s.scale[ce](),x=a[h](),_=b(n.labelRotation,u.get("rotate"))||0;_=_*w/180;for(var M=i(n,_,n.labelDirection),S=a.get("data"),C=[],P=r(a),A=a.get("triggerEvent"),I=0;I<y[pe];I++)if(!T(s,I,n.labelInterval)){var L=m;S&&S[I]&&S[I][ke]&&(L=new p(S[I][ke],m,a[l]));var z=L[Ie]()||a.get("axisLine.lineStyle.color"),D=s[N](y[I]),O=[D,n.labelOffset+n.labelDirection*g],R=s.scale[ue](y[I]),E=new f.Text({anid:"label_"+y[I],style:{text:x[I],textAlign:L.get("align",!0)||M[ze],textVerticalAlign:L.get("baseline",!0)||M.verticalAlign,textFont:L[Le](),fill:typeof z===ee?z(R):z},position:O,rotation:M[d],silent:P,z2:10});A&&(E.eventData=e(a),E.eventData.targetType="axisLabel",E.eventData.value=R),this._dumbGroup.add(E),E.updateTransform(),C.push(E),this.group.add(E),E.decomposeTransform()}if(s.type!==c){if(a.getMin?a.getMin():a.get("min")){var B=C[0],V=C[1];t(B,V)&&(B[k]=!0)}if(a.getMax?a.getMax():a.get("max")){var G=C[C[pe]-1],F=C[C[pe]-2];t(F,G)&&(G[k]=!0)}}}},axisName:function(){var t=this.opt,s=this.axisModel,l=b(t.axisName,s.get("name"));if(l){var u,c=s.get("nameLocation"),h=t.nameDirection,p=s[De]("nameTextStyle"),m=s.get("nameGap")||0,v=this.axisModel.axis[he](),g=v[0]>v[1]?-1:1,y=["start"===c?v[0]-g*m:"end"===c?v[1]+g*m:(v[0]+v[1])/2,c===we?t.labelOffset+h*m:0],x=s.get("nameRotate");null!=x&&(x=x*w/180);var _;c===we?u=i(t,null!=x?x:t[d],h):(u=n(t,c,x||0,v),_=t.axisNameAvailableWidth,null!=_&&(_=Math.abs(_/Math.sin(u[d])),!isFinite(_)&&(_=null)));var M=p[Le](),S=s.get("nameTruncate",!0)||{},T=S.ellipsis,C=b(S.maxWidth,_),P=null!=T&&null!=C?o.truncateText(l,C,M,T,{minChar:2,placeholder:S.placeholder}):l,A=s.get("tooltip",!0),I=s.mainType,L={componentType:I,name:l,$vars:["name"]};L[I+"Index"]=s.componentIndex;var z=new f.Text({anid:"name",__fullText:l,__truncatedText:P,style:{text:P,textFont:M,fill:p[Ie]()||s.get("axisLine.lineStyle.color"),textAlign:u[ze],textVerticalAlign:u.verticalAlign},position:y,rotation:u[d],silent:r(s),z2:1,tooltip:A&&A.show?a[me]({content:l,formatter:function(){
                  return l},formatterParams:L},A):null});s.get("triggerEvent")&&(z.eventData=e(s),z.eventData.targetType="axisName",z.eventData.name=l),this._dumbGroup.add(z),z.updateTransform(),this.group.add(z),z.decomposeTransform()}}},T=M.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===z&&(typeof i===ee?(n=r[ce]()[e],!i(n,r[ue](n))):e%(i+1))},C=M.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return M}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var Ve=t("echarts");return Ve.graphic=t("echarts/util/graphic"),Ve.number=t("echarts/util/number"),Ve.format=t("echarts/util/format"),t("echarts/chart/line"),t("echarts/chart/pie"),t("echarts/component/grid"),t("echarts/component/title"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("echarts/component/timeline"),t("echarts/component/toolbox"),t("zrender/vml/vml"),Ve});