blob: e4473aae820e9162def43d78a9acfd155ec2d4f4 [file] [log] [blame]
!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],c=0,u=Math.min(e.length,n.length);u>c;c++){var h,d=i(e[c],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="moveTo",n="radius",r="../../echarts",a="../../util/graphic",o="dataToPoint",s="dimensions",l="ordinal",c="category",u="parsePercent",h="getItemModel",d="../core/util",f="createElement",p="undefined",g="updateProps",v="animation",m="inside",y="getShallow",x="stroke",_="lineWidth",b="applyTransform",w="Sector",S="getItemGraphicEl",M="normal",A="emphasis",C="getItemVisual",T="getName",L="ecModel",P="getComponent",z="option",k="getExtent",I="getLabel",D="contain",O="opacity",R="position",B="center",E="middle",N="getBoundingRect",V="getFont",F="textAlign",G="textStyle",H="coordinateSystem",q="removeAll",W="inherits",Z="function",X="indexOf",j="isArray",U="replace",Y="zlevel",Q="getDataParams",$="seriesIndex",K="dataIndex",J="target",te="mouseout",ee="mouseover",ie="getData",ne="splice",re="series",ae="trigger",oe="length",se="defaults",le="extend",ce="remove",ue="isObject",he="update",de="create",fe="height",pe="bottom",ge="ignore",ve="getHeight",me="getWidth",ye="getModel",xe="resize",_e="string",be="prototype",we="toLowerCase",Se="filter",Me="transform",Ae="zrender/core/util",Ce="require";e("echarts/echarts",[Ce,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",Ae,"zrender/tool/color","zrender/core/env","zrender/mixin/Eventful","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./util/number","./util/format","zrender/core/matrix","zrender/core/vector"],function(t){function e(t){return function(e,i,n){e=e&&e[we](),T[be][t].call(this,e,i,n)}}function i(){T.call(this)}function n(t,e,n){n=n||{},typeof e===_e&&(e=G[e]),e&&L(V,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=S.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),this._theme=M.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new g(this),this._coordSysMgr=new v,T.call(this),this._messageCenter=new i,this._initEvents(),this[xe]=M.bind(this[xe],this)}function r(t,e){var i=this._model;i&&i.eachComponent({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;L(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),d(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),d(r,a)},this)}function o(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[oe];o++)n[o].__alive=!1;e[i?"eachComponent":"eachSeries"](function(t,o){if(i){if(t===re)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var c=y.parseClassType(o.type),u=i?_.getClass(c.main,c.sub):b.getClass(c.sub);if(!u)return;l=new u,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[oe];){var s=n[o];s.__alive?o++:(a[ce](s.group),s.dispose(e,this._api),n[ne](o,1),delete r[s.__id])}}function s(t,e){L(z,function(i){L(N[i]||[],function(i){i(t,e)})})}function l(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),n=t[ie]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function c(t,e){var i=this._api;L(E,function(n){n(t,i,e)})}function u(t,e){L(P,function(i){L(F[i]||[],function(i){i(t,e)})})}function h(t,e){var i=this._api;L(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),d(r,n)},this),L(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.silent=!!n.get("silent"),d(n,r)},this),L(this._chartsViews,function(e){e.__alive||e[ce](t,i)},this)}function d(t,e){var i=t.get("z"),n=t.get(Y);e.group.traverse(function(t){null!=i&&(t.z=i),null!=n&&(t[Y]=n)})}function f(t){function e(t,e){for(var i=0;i<t[oe];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";M.each(B,function(o,s){t._messageCenter.on(s,function(o){if(q[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];for(var c in H){var u=H[c];u!==t&&u.group===t.group&&l.push(u)}e(l,i),L(l,function(t){t[a]!==n&&t.dispatchAction(s)}),e(l,r)}})})}var p=t("./model/Global"),g=t("./ExtensionAPI"),v=t("./CoordinateSystem"),m=t("./model/OptionManager"),y=t("./model/Component"),x=t("./model/Series"),_=t("./view/Component"),b=t("./view/Chart"),w=t("./util/graphic"),S=t("zrender"),M=t(Ae),A=t("zrender/tool/color"),C=t("zrender/core/env"),T=t("zrender/mixin/Eventful"),L=M.each,P=["echarts","chart","component"],z=[Me,Se,"statistic"];i[be].on=e("on"),i[be].off=e("off"),i[be].one=e("one"),M.mixin(i,T);var k=n[be];k.getDom=function(){return this._dom},k.getZr=function(){return this._zr},k.setOption=function(t,e,i){(!this._model||e)&&(this._model=new p(null,null,this._theme,new m(this._api))),this._model.setOption(t,V),I.prepareAndUpdate.call(this),!i&&this._zr.refreshImmediately()},k.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},k[ye]=function(){return this._model},k.getOption=function(){return this._model.getOption()},k[me]=function(){return this._zr[me]()},k[ve]=function(){return this._zr[ve]()},k.getRenderedCanvas=function(t){if(C.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return M.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},k.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;L(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[ge]||(n.push(e),e.group[ge]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return L(n,function(t){t.group[ge]=!1}),a},k.getConnectedDataURL=function(t){if(C.canvasSupported){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(q[e]){var a=r,o=r,s=-r,l=-r,c=[],u=t&&t.pixelRatio||1;for(var h in H){var d=H[h];if(d.group===e){var f=d.getRenderedCanvas(M.clone(t)),p=d.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),l=n(p[pe],l),c.push({dom:f,left:p.left,top:p.top})}}a*=u,o*=u,s*=u,l*=u;var g=s-a,v=l-o,m=M.createCanvas();m.width=g,m[fe]=v;var y=S.init(m);return L(c,function(t){var e=new w.Image({style:{x:t.left*u-a,y:t.top*u-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var I={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr;if(e){e.restoreData(),n[de](this._model,this._api),s.call(this,e,i),l.call(this,e),n[he](e,i),c.call(this,e,t),u.call(this,e,t),h.call(this,e,t);var r=e.get("backgroundColor")||"transparent",a=this._zr.painter;if(a.isSingleCanvas&&a.isSingleCanvas())this._zr.configLayer(0,{clearColor:r});else{if(!C.canvasSupported){var o=A.parse(r);r=A.stringify(o,"rgb"),0===o[3]&&(r="transparent")}r=r,this._dom.style.backgroundColor=r}}},updateView:function(t){var e=this._model;e&&(c.call(this,e,t),u.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(u.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(c.call(this,e,t),a.call(this,"updateLayout",e,t))},highlight:function(t){r.call(this,"highlight",t)},downplay:function(t){r.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;o.call(this,"component",e),o.call(this,"chart",e),I[he].call(this,t)}};k[xe]=function(){this._zr[xe]();var t=this._model&&this._model.resetOption("media");I[t?"prepareAndUpdate":he].call(this),this._loadingFX&&this._loadingFX[xe]()};var D=t("./loading/default");k.showLoading=function(t,e){M[ue](t)&&(e=t,t="default"),this.hideLoading();var i=D(this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},k.hideLoading=function(){this._loadingFX&&this._zr[ce](this._loadingFX),this._loadingFX=null},k.makeActionFromEvent=function(t){var e=M[le]({},t);return e.type=B[t.type],e},k.dispatchAction=function(t,e){var i=R[t.type];if(i){var n=i.actionInfo,r=n[he]||he,a=[t],o=!1;t.batch&&(o=!0,a=M.map(t.batch,function(e){return e=M[se](M[le]({},e),t),e.batch=null,e}));for(var s,l=[],c="highlight"===t.type||"downplay"===t.type,u=0;u<a[oe];u++){var h=a[u];s=i.action(h,this._model),s=s||M[le]({},h),s.type=n.event||s.type,l.push(s),c&&I[r].call(this,h)}"none"!==r&&!c&&I[r].call(this,t),e||(s=o?{type:n.event||t.type,batch:l}:l[0],this._messageCenter[ae](s.type,s))}},k.on=e("on"),k.off=e("off"),k.one=e("one");var O=["click","dblclick",ee,te,"mousedown","mouseup","globalout"];k._initEvents=function(){L(O,function(t){this._zr.on(t,function(e){var i=this[ye](),n=e[J];if(n&&null!=n[K]){var r=n.dataModel||i.getSeriesByIndex(n[$]),a=r&&r[Q](n[K],n.dataType)||{};a.event=e,a.type=t,this[ae](t,a)}else n&&n.eventData&&this[ae](t,n.eventData)},this)},this),L(B,function(t,e){this._messageCenter.on(e,function(t){this[ae](e,t)},this)},this)},k.isDisposed=function(){return this._disposed},k.clear=function(){this.setOption({},!0)},k.dispose=function(){this._disposed=!0;var t=this._api,e=this._model;L(this._componentsViews,function(i){i.dispose(e,t)}),L(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete H[this.id]},M.mixin(n,T);var R=[],B={},E=[],N={},V=[],F={},G={},H={},q={},Ce=new Date-0,Te=new Date-0,Le="_echarts_instance_",Pe={version:"0.0.0",dependencies:{zrender:"0.0.0"}};return Pe.init=function(t,e,i){if(S.version[U](".","")-0<Pe.dependencies.zrender[U](".","")-0)throw new Error("ZRender "+S.version+" is too old for ECharts "+Pe.version+". Current version need ZRender "+Pe.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var r=new n(t,e,i);return r.id="ec_"+Ce++,H[r.id]=r,t.setAttribute&&t.setAttribute(Le,r.id),f(r),r},Pe.connect=function(t){if(M[j](t)){var e=t;t=null,M.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Te++,M.each(e,function(e){e.group=t})}return q[t]=!0,t},Pe.disConnect=function(t){q[t]=!1},Pe.dispose=function(t){M.isDom(t)?t=Pe.getInstanceByDom(t):typeof t===_e&&(t=H[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},Pe.getInstanceByDom=function(t){var e=t.getAttribute(Le);return H[e]},Pe.getInstanceById=function(t){return H[t]},Pe.registerTheme=function(t,e){G[t]=e},Pe.registerPreprocessor=function(t){V.push(t)},Pe.registerProcessor=function(t,e){if(M[X](z,t)<0)throw new Error("stage should be one of "+z);var i=N[t]||(N[t]=[]);i.push(e)},Pe.registerAction=function(t,e,i){typeof e===Z&&(i=e,e="");var n=M[ue](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[we](),e=t.event,R[n]||(R[n]={action:i,actionInfo:t}),B[e]=n},Pe.registerCoordinateSystem=function(t,e){v.register(t,e)},Pe.registerLayout=function(t){M[X](E,t)<0&&E.push(t)},Pe.registerVisualCoding=function(t,e){if(M[X](P,t)<0)throw new Error("stage should be one of "+P);var i=F[t]||(F[t]=[]);i.push(e)},Pe.extendChartView=function(t){return b[le](t)},Pe.extendComponentModel=function(t){return y[le](t)},Pe.extendSeriesModel=function(t){return x[le](t)},Pe.extendComponentView=function(t){return _[le](t)},Pe.setCanvasCreator=function(t){M.createCanvas=t},Pe.registerVisualCoding("echarts",M.curry(t("./visual/seriesColor"),"","itemStyle")),Pe.registerPreprocessor(t("./preprocessor/backwardCompat")),Pe.registerAction({type:"highlight",event:"highlight",update:"highlight"},M.noop),Pe.registerAction({type:"downplay",event:"downplay",update:"downplay"},M.noop),Pe.graphic=t("./util/graphic"),Pe.number=t("./util/number"),Pe.format=t("./util/format"),Pe.matrix=t("zrender/core/matrix"),Pe.vector=t("zrender/core/vector"),Pe.util={},L(["map","each",Se,X,W,"reduce",Se,"bind","curry",j,"isString",ue,"isFunction",le],function(t){Pe.util[t]=M[t]}),Pe}),e("echarts/chart/bar",[Ce,Ae,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid","../echarts","../component/grid"],function(t){var e=t(Ae);t("../coord/cartesian/Grid"),t("./bar/BarSeries"),t("./bar/BarView");var i=t("../layout/barGrid"),n=t("../echarts");n.registerLayout(e.curry(i,"bar")),n.registerVisualCoding("chart",function(t){t.eachSeriesByType("bar",function(t){var e=t[ie]();e.setVisual("legendSymbol","roundRect")})}),t("../component/grid")}),e("echarts/chart/line",[Ce,Ae,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(Ae),i=t("../echarts");t("./line/LineSeries"),t("./line/LineView"),i.registerVisualCoding("chart",e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line")),i.registerProcessor("statistic",e.curry(t("../processor/dataSample"),"line")),t("../component/grid")}),e("echarts/chart/pie",[Ce,Ae,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(Ae),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.registerVisualCoding("chart",e.curry(t("../visual/dataColor"),"pie")),i.registerLayout(e.curry(t("./pie/pieLayout"),"pie")),i.registerProcessor(Se,e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/component/grid",[Ce,"../util/graphic",Ae,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),i=t(Ae);t("../coord/cartesian/Grid"),t("./axis"),t("../echarts").extendComponentView({type:"grid",render:function(t){this.group[q](),t.get("show")&&this.group.add(new e.Rect({shape:t[H].getRect(),style:i[se]({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})}),e("echarts/component/polar",[Ce,"../coord/polar/polarCreator","./angleAxis","./radiusAxis","../echarts"],function(t){t("../coord/polar/polarCreator"),t("./angleAxis"),t("./radiusAxis"),t("../echarts").extendComponentView({type:"polar"})}),e("echarts/component/title",[Ce,"../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[q](),t.get("show")){var a=this.group,o=t[ye](G),s=t[ye]("subtextStyle"),l=t.get(F),c=new i.Text({style:{text:t.get("text"),textFont:o[V](),fill:o.getTextColor(),textBaseline:"top"},z2:10}),u=c[N](),h=t.get("subtext"),d=new i.Text({style:{text:h,textFont:s[V](),fill:s.getTextColor(),y:u[fe]+t.get("itemGap"),textBaseline:"top"},z2:10}),f=t.get("link"),p=t.get("sublink");c.silent=!f,d.silent=!p,f&&c.on("click",function(){window.open(f,"_"+t.get(J))}),p&&d.on("click",function(){window.open(p,"_"+t.get("subtarget"))}),a.add(c),h&&a.add(d);var g=a[N](),v=t.getBoxLayoutParams();v.width=g.width,v[fe]=g[fe];var m=n.getLayoutRect(v,{width:r[me](),height:r[ve]()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l===E&&(l=B),"right"===l?m.x+=m.width:l===B&&(m.x+=m.width/2)),a[R]=[m.x,m.y],c.setStyle(F,l),d.setStyle(F,l),g=a[N]();var y=m.margin,x=t.getItemStyle(["color",O]);x.fill=t.get("backgroundColor");var _=new i.Rect({shape:{x:g.x-y[3],y:g.y-y[0],width:g.width+y[1]+y[3],height:g[fe]+y[0]+y[2]},style:x,silent:!0});i.subPixelOptimizeRect(_),a.add(_)}}})}),e("echarts/component/legend",[Ce,"./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(Se,t("./legend/legendFilter"))}),e("echarts/component/tooltip",[Ce,"./tooltip/TooltipModel","./tooltip/TooltipView","../echarts"],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t("../echarts").registerAction({type:"showTip",event:"showTip",update:"none"},function(){}),t("../echarts").registerAction({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e("zrender/vml/vml",[Ce,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/scale/Time",[Ce,Ae,"../util/number","../util/format","./Interval"],function(t){var e=t(Ae),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[be],o=Math.ceil,s=Math.floor,l=1e3,c=60*l,u=60*c,h=24*u,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[le]({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[oe],l=d(p,r,0,a),c=p[Math.min(l,a-1)],u=c[2];if("year"===c[0]){var h=n/u,f=i.nice(h/t,!0);u*=f}var g=[o(e[0]/u)*u,s(e[1]/u)*u];this._stepLvl=c,this._interval=u,this._niceExtent=g},parse:function(t){return+i.parseDate(t)}});e.each([D,"normalize"],function(t){f[be][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,c],["hh:mm\nMM-dd",5,5*c],["hh:mm\nMM-dd",10,10*c],["hh:mm\nMM-dd",15,15*c],["hh:mm\nMM-dd",30,30*c],["hh:mm\nMM-dd",1,u],["hh:mm\nMM-dd",2,2*u],["hh:mm\nMM-dd",6,6*u],["hh:mm\nMM-dd",12,12*u],["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",[Ce,Ae,"./Scale","../util/number","./Interval"],function(t){var e=t(Ae),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[be],o=r[be],s=Math.floor,l=Math.ceil,c=Math.pow,u=10,h=Math.log,d=i[le]({type:"log",getTicks:function(){return e.map(o.getTicks.call(this),function(t){return n.round(c(u,t))})},getLabel:o[I],scale:function(t){return t=a.scale.call(this,t),c(u,t)},setExtent:function(t,e){t=h(t)/h(u),e=h(e)/h(u),o.setExtent.call(this,t,e)},getExtent:function(){var t=a[k].call(this);return t[0]=c(u,t[0]),t[1]=c(u,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(u),t[1]=h(t[1])/h(u),a.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 r=c(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(l(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([D,"normalize"],function(t){d[be][t]=function(e){return e=h(e)/h(u),a[t].call(this,e)}}),d[de]=function(){return new d},d}),e("echarts/model/Global",[Ce,Ae,"../util/model","./Model","./Component","./globalDefault"],function(t){function e(t,e){for(var i in e)y.hasClass(i)||("object"==typeof e[i]?t[i]=t[i]?c.merge(t[i],e[i],!1):c.clone(e[i]):null==t[i]&&(t[i]=e[i]))}function i(t){t=t,this[z]={},this[z][_]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[z]),c.merge(t,x,!1),this.mergeOption(t)}function n(t,e){c[j](e)||(e=e?[e]:[]);var i={};return d(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};d(e,function(t){var e=t.exist;e&&(i[e.id]=t)}),d(e,function(e){var n=e[z];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),m(n)){var r=a(t,n,e.exist);e.keyInfo={mainType:t,subType:r}}}),d(e,function(t){var e=t.exist,n=t[z],r=t.keyInfo;if(m(n)){if(r.name=null!=n.name?n.name+"":e?e.name:"\x00-",e)r.id=e.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(i[r.id])}i[r.id]=t}})}function a(t,e,i){var n=e.type?e.type:i?i.subType:y.determineSubType(t,e);return n}function o(t){return p(t,function(t){return t.componentIndex})||[]}function s(t,e){return e.hasOwnProperty("subType")?f(t,function(t){return t.subType===e.subType}):t}function l(t){if(!t._seriesIndices)throw new Error("Series has not been initialized yet.")}var c=t(Ae),u=t("../util/model"),h=t("./Model"),d=c.each,f=c[Se],p=c.map,g=c[j],v=c[X],m=c[ue],y=t("./Component"),x=t("./globalDefault"),_="\x00_ec_inner",b=h[le]({constructor:b,init:function(t,e,i,n){i=i||{},this[z]=null,this._theme=new h(i),this._optionManager=n},setOption:function(t,e){c.assert(!(_ 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[z]&&"recreate"!==t?(this.restoreData(),this.mergeOption(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.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[oe]&&d(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var l=u.normalizeToArray(t[e]),h=u.mappingToExists(a[e],l);r(e,h);var f=n(a,s);i[e]=[],a[e]=[],d(h,function(t,n){var r=t.exist,o=t[z];if(c.assert(m(o)||r,"Empty component definition"),o){var s=y.getClass(e,t.keyInfo.subType,!0);r&&r instanceof s?(r.mergeOption(o,this),r.optionUpdated(this)):(r=new s(o,this,this,c[le]({dependentModels:f,componentIndex:n},t.keyInfo)),r.optionUpdated(this))}else r.mergeOption({},this),r.optionUpdated(this);a[e][n]=r,i[e][n]=r[z]},this),e===re&&(this._seriesIndices=o(a[re]))}var i=this[z],a=this._componentsMap,s=[];d(t,function(t,e){null!=t&&(y.hasClass(e)?s.push(e):i[e]=null==i[e]?c.clone(t):c.merge(i[e],t,!0))}),y.topologicalTravel(s,y.getAllClassMainTypes(),e,this)},getOption:function(){var t=c.clone(this[z]);return d(t,function(e,i){if(y.hasClass(i)){for(var e=u.normalizeToArray(e),n=e[oe]-1;n>=0;n--)u.isIdInner(e[n])&&e[ne](n,1);t[i]=e}}),delete t[_],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[oe])return[];var o;if(null!=i)g(i)||(i=[i]),o=f(p(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var l=g(n);o=f(a,function(t){return l&&v(n,t.id)>=0||!l&&t.id===n})}else if(null!=r){var c=g(r);o=f(a,function(t){return c&&v(r,t.name)>=0||!c&&t.name===r})}return s(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[Se]?f(e,t[Se]):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap[r];return i(s(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===Z)i=e,e=t,d(n,function(t,n){d(t,function(t,r){e.call(i,n,t,r)})});else if(c.isString(t))d(n[t],e,i);else if(m(t)){var r=this.findComponents(t);d(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap[re];return f(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[re][t]},getSeriesByType:function(t){var e=this._componentsMap[re];return f(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[re].slice()},eachSeries:function(t,e){l(this),d(this._seriesIndices,function(i){var n=this._componentsMap[re][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){d(this._componentsMap[re],t,e)},eachSeriesByType:function(t,e,i){l(this),d(this._seriesIndices,function(n){var r=this._componentsMap[re][n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return d(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return l(this),c[X](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){l(this);var i=f(this._componentsMap[re],t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t[re]);var e=[];d(t,function(t,i){e.push(i)}),y.topologicalTravel(e,y.getAllClassMainTypes(),function(e){d(t[e],function(t){t.restoreData()})})}});return b}),e("echarts/ExtensionAPI",[Ce,Ae],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(Ae),n=["getDom","getZr",me,ve,"dispatchAction","on","off","getDataURL","getConnectedDataURL",ye,"getOption"];return e}),e("echarts/CoordinateSystem",[Ce],function(){function t(){this._coordinateSystems=[]}var e={};return t[be]={constructor:t,create:function(t,i){var n=[];for(var r in e){var a=e[r][de](t,i);a&&(n=n.concat(a))}this._coordinateSystems=n},update:function(t,e){for(var i=this._coordinateSystems,n=0;n<i[oe];n++)i[n][he]&&i[n][he](t,e)}},t.register=function(t,i){e[t]=i},t.get=function(t){return e[t]},t}),e("echarts/model/OptionManager",[Ce,Ae,"../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){var i,n,r=[],a=[],o=t.timeline;if(t.baseOption&&(n=t.baseOption),(o||t.options)&&(n=n||{},r=(t.options||[]).slice()),t.media){n=n||{};var l=t.media;u(l,function(t){t&&t[z]&&(t.query?a.push(t):i||(i=t))})}return n||(n=t),n.timeline||(n.timeline=o),u([n].concat(r).concat(s.map(a,function(t){return t[z]})),function(t){u(e,function(e){e(t)})}),{baseOption:n,timelineOptions:r,mediaDefault:i,mediaList:a}}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][we]();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||{},u(e,function(e,i){if(null!=e){var n=t[i];if(c.hasClass(i)){e=l.normalizeToArray(e),n=l.normalizeToArray(n);var r=l.mappingToExists(n,e);t[i]=d(r,function(t){return t[z]&&t.exist?f(t.exist,t[z],!0):t.exist||t[z]})}else t[i]=f(n,e,!0)}})}var s=t(Ae),l=t("../util/model"),c=t("./Component"),u=s.each,h=s.clone,d=s.map,f=s.merge,p=/^(min|max)?(.+)$/;return e[be]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=i.call(this,t,e);this._newBaseOption=r.baseOption,n?(o(n.baseOption,r.baseOption),r.timelineOptions[oe]&&(n.timelineOptions=r.timelineOptions),r.mediaList[oe]&&(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[oe]){var n=t[P]("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[me](),e=this._api[ve](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[oe]&&!r)return s;for(var l=0,c=i[oe];c>l;l++)n(i[l].query,t,e)&&o.push(l);return!o[oe]&&r&&(o=[-1]),o[oe]&&!a(o,this._currentMediaIndices)&&(s=d(o,function(t){return h(-1===t?r[z]:i[t][z])})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[Ce,"./Model",Ae,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(l.getClassesByMainType(t),function(t){r.apply(e,t[be].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(Ae),r=Array[be].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),l=i[le]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(){this.mergeDefaultAndTheme(this[z],this[L])},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?s.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&s.mergeLayoutParam(t,r,i)},mergeOption:function(t){n.merge(this[z],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[z],t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[be].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[oe]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassExtend(l,function(t,e,i,r){n[le](this,r),this.uid=a.getUID("componentModel")}),o.enableClassManagement(l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),n.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/model/Series",[Ce,Ae,"../util/format","../util/model","./Component"],function(t){var e=t(Ae),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=i.encodeHTML,o=i.addCommas,s=r[le]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,i){this[$]=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[z],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[oe];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[H];return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,i){var n=this._data,r=this.getRawValue(t),s=e[j](r)?e.map(r,o).join(", "):o(r),l=n[T](t),c=n[C](t,"color"),u='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+c+'"></span>',h=this.name;return"\x00-"===h&&(h=""),i?u+a(this.name)+" : "+s:(h&&a(h)+"<br />")+u+(l?a(l)+" : "+s:s)},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getAxisTooltipDataIndex:null});
return e.mixin(s,n.dataFormatMixin),s}),e("echarts/view/Component",[Ce,"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[be]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[be];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[Ce,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[ae](e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){if(null!=e[K]){var r=t[S](e[K]);i(r,n)}else if(e.name){var a=t.indexOfName(e.name),r=t[S](a);i(r,n)}else t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz");e[be]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[ie](),r,A)},downplay:function(t,e,i,r){n(t[ie](),r,M)},remove:function(){this.group[q]()},dispose:function(){}};var s=e[be];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/graphic",[Ce,Ae,"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 t instanceof k?t:L.lift(t,-.1)}function n(t){if(t.__hoverStlDirty){var n=t.style[x],r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?i(r):null),a[x]=a[x]||(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.setStyle(t.__hoverStl),t.z2+=1,t.__isHover=!0)}function a(t){if(t.__isHover){var e=t.__normalStl;e&&t.setStyle(e),t.z2-=1,t.__isHover=!1}}function o(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&r(t)}):r(t)}function s(t){"group"===t.type?t.traverse(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 c(){!this.__isEmphasis&&o(this)}function u(){!this.__isEmphasis&&s(this)}function h(){this.__isEmphasis=!0,o(this)}function d(){this.__isEmphasis=!1,s(this)}function f(t,e,i,n,r,a){typeof r===Z&&(a=r,r=null);var o=t?"Update":"",s=n&&n[y]("animationDuration"+o),l=n&&n[y]("animationEasing"+o),c=n&&n[y]("animationDelay"+o);typeof c===Z&&(c=c(r)),n&&n[y](v)?e.animateTo(i,s,c||0,l,a):(e.attr(i),a&&a())}var p=t(Ae),S=t("zrender/tool/path"),C=Math.round,T=t("zrender/graphic/Path"),L=t("zrender/tool/color"),P=t("zrender/core/matrix"),z=t("zrender/core/vector"),k=t("zrender/graphic/Gradient"),I={};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[w]=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 T[le](t)},I.extendPath=function(t,e){return S.extendFromString(t,e)},I.makePath=function(t,e,i,n){var r=S.createFromString(t,e),a=r[N]();if(i){var o=a.width/a[fe];if(n===B){var s,l=i[fe]*o;l<=i.width?s=i[fe]:(l=i.width,s=l/o);var c=i.x+i.width/2,u=i.y+i[fe]/2;i.x=c-l/2,i.y=u-s/2,i.width=l,i[fe]=s}this.resizePath(r,i)}return r},I.mergePath=S.mergePath,I.resizePath=function(t,e){if(t[b]){var i=t[N](),n=i.calculateTransform(e);t[b](n)}},I.subPixelOptimizeLine=function(t){var e=I.subPixelOptimize,i=t.shape,n=t.style[_];return C(2*i.x1)===C(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),C(2*i.y1)===C(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[_],r=i.x,a=i.y,o=i.width,s=i[fe];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[fe]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},I.subPixelOptimize=function(t,e,i){var n=C(2*t);return(n+C(e))%2===0?n/2:(n+(i?1:-1))/2},I.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&l(t,e)}):l(t,e),t.on(ee,c).on(te,u),t.on(A,h).on(M,d)},I.setText=function(t,e,i){var n=e[y](R)||m,r=n[X](m)>=0?"white":i,a=e[ye](G);p[le](t,{textDistance:e[y]("distance")||5,textFont:a[V](),textPosition:n,textFill:a.getTextColor()||r})},I[g]=p.curry(f,!0),I.initProps=p.curry(f,!1),I.getTransform=function(t,e){for(var i=P.identity([]);t&&t!==e;)P.mul(i,t.getLocalTransform(),i),t=t.parent;return i},I[b]=function(t,e,i){return i&&(e=P.invert([],e)),z[b]([],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===pe?r:0];return a=I[b](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?pe:"top"},I}),e("zrender/tool/color",[Ce],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[oe]&&"%"===e.charAt(e[oe]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[oe]&&"%"===t.charAt(t[oe]-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[U](/ /g,"")[we]();if(e in m)return m[e].slice();if("#"!==e.charAt(0)){var i=e[X]("("),a=e[X](")");if(-1!==i&&a+1===e[oe]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),c=1;switch(o){case"rgba":if(4!==s[oe])return;c=r(s.pop());case"rgb":if(3!==s[oe])return;return[n(s[0]),n(s[1]),n(s[2]),c];case"hsla":if(4!==s[oe])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[oe])return;return l(s);default:return}}}else{if(4===e[oe]){var u=parseInt(e.substr(1),16);if(!(u>=0&&4095>=u))return;return[(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1]}if(7===e[oe]){var u=parseInt(e.substr(1),16);if(!(u>=0&&16777215>=u))return;return[(16711680&u)>>16,(65280&u)>>8,255&u,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,c=[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[oe]&&(c[3]=e[3]),c}function c(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,c=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>c?l/(s+o):l/(2-s-o);var u=((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+u-d:a===s&&(e=2/3+h-u),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,c];return null!=t[3]&&f.push(t[3]),f}}function u(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[oe]?"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[oe]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[oe]-1),a=Math.floor(r),s=Math.ceil(r),l=i[a],c=i[s],u=r-a;return n[0]=t(o(l[0],c[0],u)),n[1]=t(o(l[1],c[1],u)),n[2]=t(o(l[2],c[2],u)),n[3]=t(o(l[3],c[3],u)),n}}function f(e,n,r){if(n&&n[oe]&&e>=0&&1>=e){var a=e*(n[oe]-1),l=Math.floor(a),c=Math.ceil(a),u=s(n[l]),h=s(n[c]),d=a-l,f=v([t(o(u[0],h[0],d)),t(o(u[1],h[1],d)),t(o(u[2],h[2],d)),i(o(u[3],h[3],d))],"rgba");return r?{color:f,leftIndex:l,rightIndex:c,value:a}:f}}function p(t,i,n,a){return t=s(t),t?(t=c(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 g(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),v(t,"rgba")):void 0}function v(t,e){return("rgb"===e||"hsv"===e||"hsl"===e)&&(t=t.slice(0,3)),e+"("+t.join(",")+")"}var m={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:u,toHex:h,fastMapToColor:d,mapToColor:f,modifyHSL:p,modifyAlpha:g,stringify:v}}),e("zrender/core/env",[],function(){function t(t){var e={},i={},n=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),a=t.match(/(iPad).*OS\s([\d_]+)/),o=t.match(/(iPod)(.*OS\s([\d_]+))?/),s=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),l=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),c=l&&t.match(/TouchPad/),u=t.match(/Kindle\/([\d.]+)/),h=t.match(/Silk\/([\d._]+)/),d=t.match(/(BlackBerry).*Version\/([\d.]+)/),p=t.match(/(BB10).*Version\/([\d.]+)/),g=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),v=t.match(/PlayBook/),m=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),y=t.match(/Firefox\/([\d.]+)/),x=n&&t.match(/Mobile\//)&&!m,_=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!m,b=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),w=t.match(/Edge\/([\d.]+)/);return(i.webkit=!!n)&&(i.version=n[1]),r&&(e.android=!0,e.version=r[2]),s&&!o&&(e.ios=e.iphone=!0,e.version=s[2][U](/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2][U](/_/g,".")),o&&(e.ios=e.ipod=!0,e.version=o[3]?o[3][U](/_/g,"."):null),l&&(e.webos=!0,e.version=l[2]),c&&(e.touchpad=!0),d&&(e.blackberry=!0,e.version=d[2]),p&&(e.bb10=!0,e.version=p[2]),g&&(e.rimtabletos=!0,e.version=g[2]),v&&(i.playbook=!0),u&&(e.kindle=!0,e.version=u[1]),h&&(i.silk=!0,i.version=h[1]),!h&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),m&&(i.chrome=!0,i.version=m[1]),y&&(i.firefox=!0,i.version=y[1]),b&&(i.ie=!0,i.version=b[1]),x&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),_&&(i.webview=!0),b&&(i.ie=!0,i.version=b[1]),w&&(i.edge=!0,i.version=w[1]),e.tablet=!!(a||v||r&&!t.match(/Mobile/)||y&&t.match(/Tablet/)||b&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||s||l||d||p||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||y&&t.match(/Mobile/)||b&&t.match(/Touch/))),{browser:i,os:e,node:!1,canvasSupported:document[f]("canvas").getContext?!0:!1,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===p?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e(Ae,[Ce,"../graphic/Gradient"],function(t){function e(t){if("object"==typeof t&&null!==t){var i=t;if(t instanceof Array){i=[];for(var n=0,r=t[oe];r>n;n++)i[n]=e(t[n])}else if(!M(t)&&!A(t)){i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=e(t[a]))}return i}return t}function i(t,n,r){if(!S(n)||!S(t))return r?e(n):t;for(var a in n)if(n.hasOwnProperty(a)){var o=t[a],s=n[a];!S(s)||!S(o)||_(s)||_(o)||A(s)||A(o)||M(s)||M(o)?!r&&a in t||(t[a]=e(n[a],!0)):i(o,s,r)}return t}function n(t,e){for(var n=t[0],r=1,a=t[oe];a>r;r++)n=i(n,t[r],e);return n}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function a(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 o(){return document[f]("canvas")}function s(){return P||(P=V.createCanvas().getContext("2d")),P}function l(t,e){if(t){if(t[X])return t[X](e);for(var i=0,n=t[oe];n>i;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n=t[be];i[be]=e[be],t[be]=new i;for(var r in n)t[be][r]=n[r];t[be].constructor=t,t.superClass=e}function u(t,e,i){t=be in t?t[be]:t,e=be in e?e[be]:e,a(t,e,i)}function h(t){return t?typeof t==_e?!1:"number"==typeof t[oe]:void 0}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===O)t.forEach(e,i);else if(t[oe]===+t[oe])for(var n=0,r=t[oe];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 p(t,e,i){if(t&&e){if(t.map&&t.map===E)return t.map(e,i);for(var n=[],r=0,a=t[oe];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function g(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===N)return t.reduce(e,i,n);for(var r=0,a=t[oe];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function v(t,e,i){if(t&&e){if(t[Se]&&t[Se]===R)return t[Se](e,i);for(var n=[],r=0,a=t[oe];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[oe];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function y(t,e){var i=B.call(arguments,2);return function(){return t.apply(e,i.concat(B.call(arguments)))}}function x(t){var e=B.call(arguments,1);return function(){return t.apply(this,e.concat(B.call(arguments)))}}function _(t){return"[object Array]"===I.call(t)}function b(t){return typeof t===Z}function w(t){return"[object String]"===I.call(t)}function S(t){var e=typeof t;return e===Z||!!t&&"object"==e}function M(t){return!!k[I.call(t)]||t instanceof z}function A(t){return t&&1===t.nodeType&&typeof t.nodeName==_e}function C(){for(var t=0,e=arguments[oe];e>t;t++)if(null!=arguments[t])return arguments[t]}function T(){return Function.call.apply(B,arguments)}function L(t,e){if(!t)throw new Error(e)}var P,z=t("../graphic/Gradient"),k={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},I=Object[be].toString,D=Array[be],O=D.forEach,R=D[Se],B=D.slice,E=D.map,N=D.reduce,V={inherits:c,mixin:u,clone:e,merge:i,mergeAll:n,extend:r,defaults:a,getContext:s,createCanvas:o,indexOf:l,slice:T,find:m,isArrayLike:h,each:d,map:p,reduce:g,filter:v,bind:y,curry:x,isArray:_,isString:w,isObject:S,isFunction:b,isBuildInObject:M,isDom:A,retrieve:C,assert:L,noop:function(){}};return V}),e("zrender/zrender",[Ce,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(t){function e(t){delete c[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=!n.canvasSupported,l={canvas:t("./Painter")},c={},u={};u.version="0.0.0",u.init=function(t,e){var n=new h(i(),t,e);return c[n.id]=n,n},u.dispose=function(t){if(t)t.dispose();else{for(var e in c)c[e].dispose();c={}}return u},u.getInstance=function(t){return c[t]},u.registerPainter=function(t,e){l[t]=e};var h=function(t,e,i){i=i||{},this.dom=e,this.id=t;var c=this,u=new a,h=i.renderer;if(s){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");h="vml"}else h&&l[h]||(h="canvas");var d=new l[h](e,u,i);this.storage=u,this.painter=d,n.node||(this.handler=new r(d.getViewportRoot(),u,d)),this[v]=new o({stage:{update:function(){c._needsRefresh&&c.refreshImmediately()}}}),this[v].start(),this._needsRefresh;var f=u.delFromMap,p=u.addToMap;u.delFromMap=function(t){var e=u.get(t);f.call(u,t),e&&e.removeSelfFromZr(c)},u.addToMap=function(t){p.call(u,t),t.addSelfToZr(c)}};return h[be]={constructor:h,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter[xe](),this.handler&&this.handler[xe]()},clearAnimation:function(){this[v].clear()},getWidth:function(){return this.painter[me]()},getHeight:function(){return this.painter[ve]()},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,i){this.handler&&this.handler.on(t,e,i)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler[ae](t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[v].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler&&this.handler.dispose(),this[v]=this.storage=this.painter=this.handler=null,e(this.id)}},u}),e("zrender/mixin/Eventful",[Ce,d],function(t){var e=Array[be].slice,i=t(d),n=i[X],r=function(){this._$handlers={}};return r[be]={constructor:r,one:function(t,e,i){var r=this._$handlers;return e&&t?(r[t]||(r[t]=[]),n(r[t],t)>=0?this:(r[t].push({h:e,one:!0,ctx:i||this}),this)):this},on:function(t,e,i){var n=this._$handlers;return e&&t?(n[t]||(n[t]=[]),n[t].push({h:e,one:!1,ctx:i||this}),this):this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][oe]},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][oe];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][oe]&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var i=arguments,n=i[oe];n>3&&(i=e.call(i,1));for(var r=this._$handlers[t],a=r[oe],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[ne](o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var i=arguments,n=i[oe];n>4&&(i=e.call(i,1,i[oe]-1));for(var r=i[i[oe]-1],a=this._$handlers[t],o=a[oe],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[ne](s,1),o--):s++}}return this}},r}),e("echarts/loading/default",[Ce,"../util/graphic",Ae],function(t){var e=t("../util/graphic"),i=t(Ae),n=Math.PI;return function(t,r){r=r||{},i[se](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[Y],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[Y],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[Y],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[xe]=function(){var e=t[me]()/2,i=t[ve]()/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[me](),height:t[ve]()})},l[xe](),l}}),e("echarts/visual/seriesColor",[Ce,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t,i,n){function r(t){var r=[i,M,"color"],a=n.get("color"),o=t[ie](),s=t.get(r)||a[t[$]%a[oe]];o.setVisual("color",s),n.isSeriesFiltered(t)||(typeof s!==Z||s instanceof e||o.each(function(e){o.setItemVisual(e,"color",s(t[Q](e)))}),o.each(function(t){var e=o[h](t),i=e.get(r,!0);null!=i&&o.setItemVisual(t,"color",i)}))}t?n.eachSeriesByType(t,r):n.eachSeries(r)}}),e("echarts/preprocessor/backwardCompat",[Ce,Ae,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[oe]&&(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[oe]-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){c(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(Ae),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",pe]],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"],c=r.each;return function(t){c(t[re],function(t){if(r[ue](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 c=0;c<l[oe];c++)if(l[c]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),c(s,function(e){var i=t[e];i&&(r[j](i)||(i=[i]),c(i,function(t){n(t)}))})}}),e("echarts/util/format",[Ce,Ae,"./number"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][U](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[oe]>1?"."+t[1]:""))}function i(t){return t[we]()[U](/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[oe];return"number"==typeof t?[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}function r(t){return String(t)[U](/&/g,"&amp;")[U](/</g,"&lt;")[U](/>/g,"&gt;")[U](/"/g,"&quot;")[U](/'/g,"&#39;")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){c[j](e)||(e=[e]);var i=e[oe];if(!i)return"";for(var n=e[0].$vars,r=0;r<n[oe];r++){var o=h[r];t=t[U](a(o),a(o,0))}for(var s=0;i>s;s++)for(var l=0;l<n[oe];l++)t=t[U](a(h[l],s),e[s][n[l]]);return t}function s(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=u.parseDate(e),n=i.getFullYear(),r=i.getMonth()+1,a=i.getDate(),o=i.getHours(),s=i.getMinutes(),c=i.getSeconds();return t=t[U]("MM",l(r))[we]()[U]("yyyy",n)[U]("yy",n%100)[U]("dd",l(a))[U]("d",a)[U]("hh",l(o))[U]("h",o)[U]("mm",l(s))[U]("m",s)[U]("ss",l(c))[U]("s",c)}function l(t){return 10>t?"0"+t:t}var c=t(Ae),u=t("./number"),h=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o,formatTime:s}}),e("echarts/util/number",[Ce],function(){function t(t){return t[U](/^\s+/,"")[U](/\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[u]=function(e,i){switch(e){case B:case E:e="50%";break;case"left":case"top":e="0%";break;case"right":case pe:e="100%"}return typeof e===_e?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t){return+(+t).toFixed(10)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return 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){return t instanceof Date?t:new Date(typeof t===_e?t[U](/-/g,"/"):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("zrender/core/matrix",[],function(){var t=typeof Float32Array===p?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],c=Math.sin(i),u=Math.cos(i);return t[0]=n*u+o*c,t[1]=-n*c+o*u,t[2]=r*u+s*c,t[3]=-r*c+u*s,t[4]=u*a+c*l,t[5]=u*l-c*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===p?Array:Float32Array,e={create:function(e,i){var n=new t(2);return n[0]=e||0,n[1]=i||0,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[oe]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("echarts/coord/cartesian/Grid",[Ce,"exports","../../util/layout","../../coord/axisHelper",Ae,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e,i){return i[P]("grid",t.get("gridIndex"))===e}function i(t){var e,i=t.model,n=i.getFormattedLabels(),r=1,a=n[oe];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[k](),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}}var a=t("../../util/layout"),o=t("../../coord/axisHelper"),u=t(Ae),h=t("./Cartesian2D"),d=t("./Axis2D"),f=u.each,p=o.ifAxisCrossZero,g=o.niceScaleExtent;t("./GridModel");var v=n[be];return v.type="grid",v.getRect=function(){return this._rect},v[he]=function(t,e){function i(t){var e=n[t];for(var i in e){var r=e[i];if(r&&(r.type===c||!p(r)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this._model),f(n.x,function(t){g(t,t.model)}),f(n.y,function(t){g(t,t.model)}),f(n.x,function(t){i("y")&&(t.onZero=!1)}),f(n.y,function(t){i("x")&&(t.onZero=!1)}),this[xe](this._model,e)},v[xe]=function(t,e){function n(){f(s,function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o[fe]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),r(t,e?o.x:o.y)})}var o=a.getLayoutRect(t.getBoxLayoutParams(),{width:e[me](),height:e[ve]()});this._rect=o;var s=this._axesList;n(),t.get("containLabel")&&(f(s,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?fe:"width",r=t.model.get("axisLabel.margin");o[n]-=e[n]+r,"top"===t[R]?o.y+=e[fe]+r:"left"===t[R]&&(o.x+=e.width+r)}}}),n())},v.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)return i[n];return i[e]}},v.getCartesian=function(t,e){var i="x"+t+"y"+e;return this._coordsMap[i]},v._initCartesian=function(t,i){function n(n){return function(l,u){if(e(l,t,i)){var h=l.get(R);"x"===n?("top"!==h&&h!==pe&&(h=pe),r[h]&&(h="top"===h?pe:"top")):("left"!==h&&"right"!==h&&(h="left"),r[h]&&(h="left"===h?"right":"left")),r[h]=!0;var f=new d(n,o.createScaleByModel(l),[0,0],l.get("type"),h),p=f.type===c;f.onBand=p&&l.get("boundaryGap"),f.inverse=l.get("inverse"),f.onZero=l.get("axisLine.onZero"),l.axis=f,f.model=l,f.index=u,this._axesList.push(f),a[n][u]=f,s[n]++
}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return i.eachComponent("xAxis",n("x"),this),i.eachComponent("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=a,void f(a.x,function(t,e){f(a.y,function(i,n){var r="x"+e+"y"+n,a=new h(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=[]))},v._updateScale=function(t,i){function n(t,e,i){f(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==l))})}u.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(r){if("cartesian2d"===r.get(H)){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t[P]("xAxis",a),l=t[P]("yAxis",o);if(!e(s,i,t)||!e(l,i,t))return;var c=this.getCartesian(a,o),u=r[ie](),h=c.getAxis("x"),d=c.getAxis("y");"list"===u.type&&(n(u,h,r),n(u,d,r))}},this)},n[de]=function(t,e){var i=[];return t.eachComponent("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o[xe](r,e),r[H]=o,i.push(o)}),t.eachSeries(function(e){if("cartesian2d"===e.get(H)){var n=e.get("xAxisIndex"),r=t[P]("xAxis",n),a=i[r.get("gridIndex")];e[H]=a.getCartesian(n,e.get("yAxisIndex"))}}),i},n[s]=h[be][s],t("../../CoordinateSystem").register("cartesian2d",n),n}),e("echarts/chart/bar/BarSeries",[Ce,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),i=t("../helper/createListFromArray");return e[le]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},getMarkerPosition:function(t){var e=this[H];if(e){var i=e[o](t),n=this[ie](),r=n.getLayout("offset"),a=n.getLayout("size"),s=e.getBaseAxis().isHorizontal()?0:1;return i[s]+=r+a/2,i}return[0/0,0/0]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,itemStyle:{normal:{barBorderColor:"#fff",barBorderWidth:0},emphasis:{barBorderColor:"#fff",barBorderWidth:0}}}})}),e("echarts/chart/bar/BarView",[Ce,Ae,a,"../../model/Model","./barItemStyle",r],function(t){function e(t,e){var i=t.width>0?1:-1,n=t[fe]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[fe])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[fe]-=n*e}var i=t(Ae),n=t(a);return i[le](t("../../model/Model")[be],t("./barItemStyle")),t(r).extendChartView({type:"bar",render:function(t,e,i){var n=t.get(H);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(t){function r(r,a){var s=o.getItemLayout(r),l=o[h](r).get(f)||0;e(s,l);var c=new n.Rect({shape:i[le]({},s)});if(d){var p=c.shape,v=u?fe:"width",m={};p[v]=0,m[v]=s[v],n[a?g:"initProps"](c,{shape:m},t,r)}return c}var a=this.group,o=t[ie](),s=this._data,l=t[H],c=l.getBaseAxis(),u=c.isHorizontal(),d=t.get(v),f=["itemStyle",M,"barBorderWidth"];o.diff(s).add(function(t){if(o.hasValue(t)){var e=r(t);o.setItemGraphicEl(t,e),a.add(e)}})[he](function(i,l){var c=s[S](l);if(!o.hasValue(i))return void a[ce](c);c||(c=r(i,!0));var u=o.getItemLayout(i),d=o[h](i).get(f)||0;e(u,d),n[g](c,{shape:u},t,i),o.setItemGraphicEl(i,c),a.add(c)})[ce](function(e){var i=s[S](e);i&&(i.style.text="",n[g](i,{shape:{width:0}},t,e,function(){a[ce](i)}))}).execute(),this._updateStyle(t,o,u),this._data=o},_updateStyle:function(t,e,r){function a(t,e,i,r,a){n.setText(t,e,i),t.text=r,"outside"===t.textPosition&&(t.textPosition=a)}e.eachItemGraphicEl(function(o,s){var l=e[h](s),c=e[C](s,"color"),u=e[C](s,O),d=e.getItemLayout(s),f=l[ye]("itemStyle.normal"),p=l[ye]("itemStyle.emphasis").getBarItemStyle();o.setShape("r",f.get("barBorderRadius")||0),o.useStyle(i[se]({fill:c,opacity:u},f.getBarItemStyle()));var g=r?d[fe]>0?pe:"top":d.width>0?"left":"right",v=l[ye]("label.normal"),m=l[ye]("label.emphasis"),y=o.style;v.get("show")?a(y,v,c,i.retrieve(t.getFormattedLabel(s,M),t.getRawValue(s)),g):y.text="",m.get("show")?a(p,m,c,i.retrieve(t.getFormattedLabel(s,A),t.getRawValue(s)),g):p.text="",n.setHoverStyle(o,p)})},remove:function(t){var e=this.group;t.get(v)?this._data&&this._data.eachItemGraphicEl(function(i){i.style.text="",n[g](i,{shape:{width:0}},t,i[K],function(){e[ce](i)})}):e[q]()}})}),e("echarts/layout/barGrid",[Ce,Ae,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[$]}function i(t){var i={};r.each(t,function(t){var n=t[H],r=n.getBaseAxis(),a=i[r.index]||{remainedWidth:r.getBandWidth(),autoWidthCount:0,categoryGap:"20%",gap:"30%",axis:r,stacks:{}},o=a.stacks;i[r.index]=a;var s=e(t);o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.get("barWidth"),c=t.get("barMaxWidth"),u=t.get("barGap"),h=t.get("barCategoryGap");l&&!o[s].width&&(l=Math.min(a.remainedWidth,l),o[s].width=l,a.remainedWidth-=l),c&&(o[s].maxWidth=c),null!=u&&(a.gap=u),null!=h&&(a.categoryGap=h)});var n={};return r.each(i,function(t,e){n[e]={};var i=t.stacks,a=t.axis,s=a.getBandWidth(),l=o(t.categoryGap,s),c=o(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,d=(u-l)/(h+(h-1)*c);d=Math.max(d,0),r.each(i,function(t){var e=t.maxWidth;!t.width&&e&&d>e&&(e=Math.min(e,u),u-=e,t.width=e,h--)}),d=(u-l)/(h+(h-1)*c),d=Math.max(d,0);var f,p=0;r.each(i,function(t){t.width||(t.width=d),f=t,p+=t.width*(1+c)}),f&&(p-=f.width*c);var g=-p/2;r.each(i,function(t,i){n[e][i]=n[e][i]||{offset:g,width:t.width},g+=t.width*(1+c)})}),n}function n(t,n){var a=i(r[Se](n.getSeriesByType(t),function(t){return!n.isSeriesFiltered(t)&&t[H]&&"cartesian2d"===t[H].type})),o={};n.eachSeriesByType(t,function(t){var i=t[ie](),n=t[H],r=n.getBaseAxis(),s=e(t),l=a[r.index][s],c=l.offset,u=l.width,h=n.getOtherAxis(r),d=t.get("barMinHeight")||0,f=r.onZero?h.toGlobalCoord(h.dataToCoord(0)):h.getGlobalExtent()[0],p=n.dataToPoints(i,!0);o[s]=o[s]||[],i.setLayout({offset:c,size:u}),i.each(h.dim,function(t,e){if(!isNaN(t)){o[s][e]||(o[s][e]={p:f,n:f});var n,r,a,l,g=t>=0?"p":"n",v=p[e],m=o[s][e][g];h.isHorizontal()?(n=m,r=v[1]+c,a=v[0]-m,l=u,Math.abs(a)<d&&(a=(0>a?-1:1)*d),o[s][e][g]+=a):(n=v[0]+c,r=m,a=u,l=v[1]-m,Math.abs(l)<d&&(l=(0>=l?-1:1)*d),o[s][e][g]+=l),i.setItemLayout(e,{x:n,y:r,width:a,height:l})}},!0)},this)}var r=t(Ae),a=t("../util/number"),o=a[u];return n}),e("echarts/chart/line/LineSeries",[Ce,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[le]({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,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear"}})}),e("echarts/chart/line/LineView",[Ce,Ae,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",a,"./poly","../../view/Chart"],function(t){function e(t,e){if(t[oe]===e[oe]){for(var i=0;i<t[oe];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return"number"==typeof t?t:t?.3:0}function r(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 s(t){return t>=0?1:-1}function c(t,e){var i=t.getBaseAxis(),r=t.getOtherAxis(i),a=i.onZero?0:r.scale[k]()[0],l=r.dim,c="x"===l||l===n?1:0;return e.mapArray([l],function(n,r){for(var u,h=e.stackedOn;h&&s(h.get(l,r))===s(n);){u=h;break}var d=[];return d[c]=e.get(i.dim,r),d[1-c]=u?u.get(l,r,!0):a,t[o](d)},!0)}function u(t,e){return null!=e[K]?e[K]:null!=e.name?t.indexOfName(e.name):void 0}function h(t,e,i){var n=r(t.getAxis("x")),a=r(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),s=Math.min(n[0],n[1]),l=Math.min(a[0],a[1]),c=Math.max(n[0],n[1])-s,u=Math.max(a[0],a[1])-l,h=i.get("lineStyle.normal.width")||2,d=i.get("clipOverflow")?h/2:Math.max(c,u);o?(l-=d,u+=2*d):(s-=d,c+=2*d);var f=new _.Rect({shape:{x:s,y:l,width:c,height:u}});return e&&(f.shape[o?"width":fe]=0,_.initProps(f,{shape:{width:c,height:u}},i)),f}function d(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[k](),o=n[k](),s=Math.PI/180,l=new _[w]({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,_.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function f(t,e,i){return"polar"===t.type?d(t,e,i):h(t,e,i)}var p=t(Ae),m=t("../helper/SymbolDraw"),y=t("../helper/Symbol"),x=t("./lineAnimationDiff"),_=t(a),b=t("./poly"),M=t("../../view/Chart");return M[le]({type:"line",init:function(){var t=new _.Group,e=new m;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var a=t[H],o=this.group,s=t[ie](),l=t[ye]("lineStyle.normal"),u=t[ye]("areaStyle.normal"),h=s.mapArray(s.getItemLayout,!0),d="polar"===a.type,g=this._coordSys,m=this._symbolDraw,y=this._polyline,x=this._polygon,_=this._lineGroup,b=t.get(v),w=!u.isEmpty(),S=c(a,s),M=t.get("showSymbol"),A=M&&!d&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(s,a),C=this._data;C&&C.eachItemGraphicEl(function(t,e){t.__temp&&(o[ce](t),C.setItemGraphicEl(e,null))}),M||m[ce](),o.add(_),y&&g.type===a.type?(w&&!x?x=this._newPolygon(h,S,a,b):x&&!w&&(_[ce](x),x=this._polygon=null),_.setClipPath(f(a,!1,t)),M&&m.updateData(s,A),s.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,S)&&e(this._points,h)||(b?this._updateAnimation(s,S,a,r):(y.setShape({points:h}),x&&x.setShape({points:h,stackedOnPoints:S})))):(M&&m.updateData(s,A),y=this._newPolyline(h,a,b),w&&(x=this._newPolygon(h,S,a,b)),_.setClipPath(f(a,!0,t))),y.useStyle(p[se](l.getLineStyle(),{fill:"none",stroke:s.getVisual("color"),lineJoin:"bevel"}));var T=t.get("smooth");if(T=i(t.get("smooth")),y.setShape({smooth:T,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),x){var L=s.stackedOn,P=0;if(x.useStyle(p[se](u.getAreaStyle(),{fill:s.getVisual("color"),opacity:.7,lineJoin:"bevel"})),L){var z=L.hostModel;P=i(z.get("smooth"))}x.setShape({smooth:T,stackedOnSmooth:P,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=h},highlight:function(t,e,i,n){var r=t[ie](),a=u(r,n);if(null!=a&&a>=0){var o=r[S](a);if(!o){var s=r.getItemLayout(a);o=new y(r,a,i),o[R]=s,o.setZ(t.get(Y),t.get("z")),o[ge]=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else M[be].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[ie](),a=u(r,n);if(null!=a&&a>=0){var o=r[S](a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group[ce](o)):o.downplay())}else M[be].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup[ce](e),e=new b.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[ce](i),i=new b.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(l)[0];return i&&i.isLabelIgnored?p.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i){var n=this._polyline,r=this._polygon,a=t.hostModel,o=x(this._data,t,this._stackedOnPoints,e,this._coordSys,i);n.shape.points=o.current,_[g](n,{shape:{points:o.next}},a),r&&(r.setShape({points:o.current,stackedOnPoints:o.stackedOnCurrent}),_[g](r,{shape:{points:o.next,stackedOnPoints:o.stackedOnNext}},a));for(var s=[],l=o.status,c=0;c<l[oe];c++){var u=l[c].cmd;if("="===u){var h=t[S](l[c].idx1);h&&s.push({el:h,ptIdx:c})}}n.animators&&n.animators[oe]&&n.animators[0].during(function(){for(var t=0;t<s[oe];t++){var e=s[t].el;e.attr(R,n.shape.points[s[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup[q](),this._symbolDraw[ce](!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t[ce](i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/visual/symbol",[Ce],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[ie](),a=t.get("symbol")||e,o=t.get("symbolSize");r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===Z&&r.each(function(e){var i=t.getRawValue(e),n=t[Q](e);r.setItemVisual(e,"symbolSize",o(i,n))}),r.each(function(t){var e=r[h](t),i=e.get("symbol",!0),n=e.get("symbolSize",!0);null!=i&&r.setItemVisual(t,"symbol",i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}}),e("echarts/layout/points",[Ce],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[ie](),i=t[H];if(i){var n=i[s];e.each(n,function(t,n,r){var a;a=isNaN(t)||isNaN(n)?[0/0,0/0]:i[o]([t,n]),e.setItemLayout(r,a)},!0)}})}}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,i=0,n=0;n<t[oe];n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?0/0:e/i},sum:function(t){for(var e=0,i=0;i<t[oe];i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t[oe];i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t[oe];i++)t[i]<e&&(e=t[i]);return e},nearest:function(t){return t[0]}},e=function(t){return Math.round(t[oe]/2)};return function(i,n){n.eachSeriesByType(i,function(i){var n=i[ie](),r=i.get("sampling"),a=i[H];if("cartesian2d"===a.type&&r){var o=a.getBaseAxis(),s=a.getOtherAxis(o),l=o[k](),c=l[1]-l[0],u=Math.round(n.count()/c);if(u>1){var h;typeof r===_e?h=t[r]:typeof r===Z&&(h=r),h&&(n=n.downSample(s.dim,1/u,h,e),i.setData(n))}}},this)}}),e("echarts/chart/pie/PieSeries",[Ce,"../../data/List",Ae,"../../util/model","../../data/helper/completeDimensions","../../component/helper/selectableMixin",r],function(t){var e=t("../../data/List"),i=t(Ae),n=t("../../util/model"),a=t("../../data/helper/completeDimensions"),o=t("../../component/helper/selectableMixin"),s=t(r).extendSeriesModel({type:"series.pie",init:function(t){s.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){s.superCall(this,"mergeOption",t),this.updateSelectedMap(this[z].data)},getInitialData:function(t){var i=a(["value"],t.data),n=new e(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this._data,i=s.superCall(this,Q,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[M],i=t.labelLine[A];e.show=e.show&&t.label[M].show,i.show=i.show&&t.label[A].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:{borderColor:"rgba(0,0,0,0)",borderWidth:1},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1}},animationEasing:"cubicOut",data:[]}});return i.mixin(s,o),s}),e("echarts/chart/pie/PieView",[Ce,a,Ae,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[ie](),o=this[K],s=a[T](o),l=e.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a[S](t),a.getItemLayout(t),e.isSelected(a[T](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,c=[o*l,s*l];r?t.animate().when(200,{position:c}).start("bounceOut"):t.attr(R,c)}function n(t,e){function i(){a[ge]=a.hoverIgnore,s[ge]=s.hoverIgnore}function n(){a[ge]=a.normalIgnore,s[ge]=s.normalIgnore}o.Group.call(this);var r=new o[w]({z2:2}),a=new o.Polyline,s=new o.Text;this.add(r),this.add(a),this.add(s),this.updateData(t,e,!0),this.on(A,i).on(M,n).on(ee,i).on(te,n)}function r(t,e,i,n,r){var a=n[ye](G),o=r===m||"inner"===r;return{fill:a.getTextColor()||(o?"#fff":t[C](e,"color")),opacity:t[C](e,O),textFont:a[V](),text:s.retrieve(t.hostModel.getFormattedLabel(e,i),t[T](e))}}var o=t(a),s=t(Ae),l=n[be];l.updateData=function(t,e,n){function r(){l.stopAnimation(!0),l.animateTo({shape:{r:d.r+10}},300,"elasticOut")}function a(){l.stopAnimation(!0),l.animateTo({shape:{r:d.r}},300,"elasticOut")}var l=this.childAt(0),c=t.hostModel,u=t[h](e),d=t.getItemLayout(e),f=s[le]({},d);f.label=null,n?(l.setShape(f),l.shape.endAngle=d.startAngle,o[g](l,{shape:{endAngle:d.endAngle}},c,e)):o[g](l,{shape:f},c,e);var p=u[ye]("itemStyle"),m=t[C](e,"color");l.useStyle(s[se]({fill:m},p[ye](M).getItemStyle())),l.hoverStyle=p[ye](A).getItemStyle(),i(this,t.getItemLayout(e),u.get("selected"),c.get("selectedOffset"),c.get(v)),l.off(ee).off(te).off(A).off(M),u.get("hoverAnimation")&&l.on(ee,r).on(te,a).on(A,r).on(M,a),this._updateLabel(t,e),o.setHoverStyle(this)},l._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,s=t[h](e),l=t.getItemLayout(e),c=l.label,u=t[C](e,"color");o[g](i,{shape:{points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]}},a,e),o[g](n,{style:{x:c.x,y:c.y}},a,e),n.attr({style:{textVerticalAlign:c.verticalAlign,textAlign:c[F],textFont:c.font},rotation:c.rotation,origin:[c.x,c.y],z2:10});var d=s[ye]("label.normal"),f=s[ye]("label.emphasis"),p=s[ye]("labelLine.normal"),v=s[ye]("labelLine.emphasis"),m=d.get(R)||f.get(R);n.setStyle(r(t,e,M,d,m)),n[ge]=n.normalIgnore=!d.get("show"),n.hoverIgnore=!f.get("show"),i[ge]=i.normalIgnore=!p.get("show"),i.hoverIgnore=!v.get("show"),i.setStyle({stroke:u,opacity:t[C](e,O)}),i.setStyle(p[ye]("lineStyle").getLineStyle()),n.hoverStyle=r(t,e,A,f,m),i.hoverStyle=v[ye]("lineStyle").getLineStyle();var y=p.get("smooth");y&&y===!0&&(y=.4),i.setShape({smooth:y})},s[W](n,o.Group);var c=t("../../view/Chart")[le]({type:"pie",init:function(){var t=new o.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var o=t[ie](),l=this._data,c=this.group,u=i.get(v),h=!l,d=s.curry(e,this.uid,t,u,r),f=t.get("selectedMode");if(o.diff(l).add(function(t){var e=new n(o,t);h&&e.eachChild(function(t){t.stopAnimation(!0)}),f&&e.on("click",d),o.setItemGraphicEl(t,e),c.add(e)})[he](function(t,e){var i=l[S](e);i.updateData(o,t),i.off("click"),f&&i.on("click",d),c.add(i),o.setItemGraphicEl(t,i)})[ce](function(t){var e=l[S](t);c[ce](e)}).execute(),u&&h&&o.count()>0){var p=o.getItemLayout(0),g=Math.max(r[me](),r[ve]())/2,m=s.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(p.cx,p.cy,g,p.startAngle,p.clockwise,m,t))}this._data=o}},_createClipPath:function(t,e,i,n,r,a,s){var l=new o[w]({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return o.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,a),l}});return c}),e("echarts/action/createDataSelectAction",[Ce,"../echarts",Ae],function(t){var e=t("../echarts"),i=t(Ae);return function(t,n){i.each(n,function(i){i[he]="updateView",e.registerAction(i,function(e,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[ie]();n.each(function(e){var i=n[T](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[Ce],function(){return function(t,e){var i=e.get("color"),n=0;e.eachRawSeriesByType(t,function(t){var r=t.get("color",!0),a=t.getRawData();if(!e.isSeriesFiltered(t)){var o=t[ie]();o.each(function(t){var e=o[h](t),s=o.getRawIndex(t),l=o[C](t,"color",!0);if(l)a.setItemVisual(s,"color",l);else{var c=r?r[s%r[oe]]:i[(s+n)%i[oe]],u=e.get("itemStyle.normal.color")||c;a.setItemVisual(s,"color",u),o.setItemVisual(t,"color",u)}})}n+=a.count()})}}),e("echarts/chart/pie/pieLayout",[Ce,"../../util/number","./labelLayout",Ae],function(t){var e=t("../../util/number"),i=e[u],r=t("./labelLayout"),a=t(Ae),o=2*Math.PI,s=Math.PI/180;return function(t,l,c){l.eachSeriesByType(t,function(t){var l=t.get(B),u=t.get(n);a[j](u)||(u=[0,u]),a[j](l)||(l=[l,l]);var h=c[me](),d=c[ve](),f=Math.min(h,d),p=i(l[0],h),g=i(l[1],d),v=i(u[0],f/2),m=i(u[1],f/2),y=t[ie](),x=-t.get("startAngle")*s,_=t.get("minAngle")*s,b=y.getSum("value"),w=Math.PI/(b||y.count())*2,S=t.get("clockwise"),M=t.get("roseType"),A=y.getDataExtent("value");A[0]=0;var C=o,T=0,L=x,P=S?1:-1;if(y.each("value",function(t,i){var n;n="area"!==M?0===b?w:t*w:o/(y.count()||1),_>n?(n=_,C-=_):T+=t;var r=L+P*n;y.setItemLayout(i,{angle:n,startAngle:L,endAngle:r,clockwise:S,cx:p,cy:g,r0:v,r:M?e.linearMap(t,A,[v,m]):m}),L=r},!0),o>C)if(.001>=C){var z=o/y.count();y.each(function(t){var e=y.getItemLayout(t);e.startAngle=x+P*t*z,e.endAngle=x+P*(t+1)*z})}else w=C/T,L=x,y.each("value",function(t,e){var i=y.getItemLayout(e),n=i.angle===_?_:t*w;i.startAngle=L,i.endAngle=L+P*n,L+=n});r(t,m,h,d)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e.findComponents({mainType:"legend"});i&&i[oe]&&e.eachSeriesByType(t,function(t){var e=t[ie]();e.filterSelf(function(t){for(var n=e[T](t),r=0;r<i[oe];r++)if(!i[r].isSelected(n))return!1;return!0},this)},this)}}),e("echarts/component/axis",[Ce,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/coord/polar/polarCreator",[Ce,"./Polar","../../util/number","../../coord/axisHelper","./PolarModel","../../CoordinateSystem"],function(t){function e(t,e){var i=t.get(B),r=t.get(n),a=e[me](),s=e[ve](),l=o[u];this.cx=l(i[0],a),this.cy=l(i[1],s);var c=this.getRadiusAxis(),h=Math.min(a,s)/2;c.setExtent(0,l(r,h))}function i(t){var e=this,i=e.getAngleAxis(),r=e.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t[H]===e){var a=t[ie]();r.scale.unionExtent(a.getDataExtent(n,r.type!==c)),i.scale.unionExtent(a.getDataExtent("angle",i.type!==c))}}),h(i,i.model),h(r,r.model),i.type===c&&!i.onBand){var a=i[k](),o=360/i.scale.count();i.inverse?a[1]+=o:a[1]-=o,i.setExtent(a[0],a[1])}}function r(t,e){if(t.type=e.get("type"),t.scale=l.createScaleByModel(e),t.onBand=e.get("boundaryGap")&&t.type===c,"angleAxis"===e.mainType){var i=e.get("startAngle");t.inverse=e.get("inverse")^e.get("clockwise"),t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}var a=t("./Polar"),o=t("../../util/number"),l=t("../../coord/axisHelper"),h=l.niceScaleExtent;t("./PolarModel");var d={dimensions:a[be][s],create:function(t,n){var o=[];return t.eachComponent("polar",function(t,s){var l=new a(s);l[xe]=e,l[he]=i;var c=l.getRadiusAxis(),u=l.getAngleAxis(),h=t.findAxisModel("radiusAxis"),d=t.findAxisModel("angleAxis");r(c,h),r(u,d),l[xe](t,n),o.push(l),t[H]=l}),t.eachSeries(function(t){"polar"===t.get(H)&&(t[H]=o[t.get("polarIndex")])}),o}};t("../../CoordinateSystem").register("polar",d)}),e("echarts/component/angleAxis",[Ce,"../coord/polar/polarCreator","./axis/AngleAxisView"],function(t){t("../coord/polar/polarCreator"),t("./axis/AngleAxisView")}),e("echarts/component/radiusAxis",[Ce,"../coord/polar/polarCreator","./axis/RadiusAxisView"],function(t){t("../coord/polar/polarCreator"),t("./axis/RadiusAxisView")}),e("echarts/util/layout",[Ce,Ae,"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,c){var u,h,d=l[R],f=l[N](),p=e.childAt(c+1),g=p&&p[N]();if("horizontal"===t){var v=f.width+(g?-g.x+f.x:0);u=a+v,u>n||l.newline?(a=0,u=v,o+=s+i,s=f[fe]):s=Math.max(s,f[fe])}else{var m=f[fe]+(g?-g.y+f.y:0);h=o+m,h>r||l.newline?(a+=s+i,o=0,h=m,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=u+i:o=h+i)})}var i=t(Ae),n=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r[u],s=i.each,l={},c=["left","right","top",pe,"width",fe];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[fe],s=o(t.x,n),l=o(t.y,r),c=o(t.x2,n),u=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(c)||isNaN(parseFloat(t.x2)))&&(c=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(u)||isNaN(parseFloat(t.y2)))&&(u=r),i=a.normalizeCssArray(i||0),{width:Math.max(c-s-i[1]-i[3],0),height:Math.max(u-l-i[0]-i[2],0)}},l.getLayoutRect=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[fe],l=o(t.left,r),c=o(t.top,s),u=o(t.right,r),h=o(t[pe],s),d=o(t.width,r),f=o(t[fe],s),p=i[2]+i[0],g=i[1]+i[3],v=t.aspect;switch(isNaN(d)&&(d=r-u-g-l),isNaN(f)&&(f=s-h-p-c),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-u-d-g),isNaN(c)&&(c=s-h-f-p),t.left||t.right){case B:l=r/2-d/2-i[3];break;case"right":l=r-d-g}switch(t.top||t[pe]){case E:case B:c=s/2-f/2-i[0];break;case pe:c=s-f-p}l=l||0,c=c||0,isNaN(d)&&(d=r-l-(u||0)),isNaN(f)&&(f=s-c-(h||0));var m=new n(l+i[3],c+i[0],d,f);return m.margin=i,m},l.positionGroup=function(t,e,n,r){var a=t[N]();e=i[le](i.clone(e),{width:a.width,height:a[fe]}),e=l.getLayoutRect(e,n,r),t[R]=[e.x-a.x,e.y-a.y]},l.mergeLayoutParam=function(t,e,n){function r(i){var r={},l=0,c={},u=0,h=n.ignoreSize?1:2;if(s(i,function(e){c[e]=t[e]}),s(i,function(t){a(e,t)&&(r[t]=c[t]=e[t]),o(r,t)&&l++,o(c,t)&&u++}),u!==h&&l){if(l>=h)return r;for(var d=0;d<i[oe];d++){var f=i[d];if(!a(r,f)&&a(t,f)){r[f]=t[f];break}}return r}return c}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[ue](n)&&(n={});var c=["width","left","right"],u=[fe,"top",pe],h=r(c),d=r(u);l(c,t,h),l(u,t,d)},l.getLayoutParams=function(t){return l.copyLayoutParams({},t)},l.copyLayoutParams=function(t,e){return e&&t&&s(c,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t},l}),e("echarts/component/legend/LegendModel",[Ce,Ae,"../../model/Model",r],function(t){var e=t(Ae),i=t("../../model/Model"),n=t(r).extendComponentModel({type:"legend",dependencies:[re],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateData(i);var n=this._data,r=this[z].selected;if(n[0]&&"single"===this.get("selectedMode")){var a=!1;for(var o in r)r[o]&&(this.select(o),a=!0);!a&&this.select(n[0].get("name"))}},mergeOption:function(t){n.superCall(this,"mergeOption",t),this._updateData(this[L])},_updateData:function(t){var n=e.map(this.get("data")||[],function(t){return typeof t===_e&&(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.concat(e.mapArray(e[T]))}}),this._availableNames=r},getData:function(){return this._data},select:function(t){var i=this[z].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[z].selected[t]=!1)},toggleSelected:function(t){var e=this[z].selected;t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[z].selected;return!(t in i&&!i[t])&&e[X](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,textStyle:{color:"#333"},selectedMode:!0}});return n}),e("echarts/component/legend/legendAction",[Ce,r,Ae],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[ie]();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(r),n=t(Ae);i.registerAction("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i.registerAction("legendSelect","legendselected",n.curry(e,"select")),i.registerAction("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/legend/LegendView",[Ce,Ae,"../../util/symbol",a,"../helper/listComponent",r],function(t){function e(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function i(t,e,i){t.get("legendHoverLink")&&i.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){t.get("legendHoverLink")&&i.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var o=t(Ae),s=t("../../util/symbol"),l=t(a),c=t("../helper/listComponent"),u=o.curry,h="#ccc";return t(r).extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,r,a){var s=this.group;if(s[q](),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={};o.each(t[ie](),function(o){var c=o.get("name");if(""===c||"\n"===c)return void s.add(new l.Group({newline:!0}));var p=r.getSeriesByName(c)[0];if(!f[c])if(p){var g=p[ie](),v=g.getVisual("color");typeof v===Z&&(v=v(p[Q](0)));var m=g.getVisual("legendSymbol")||"roundRect",y=g.getVisual("symbol"),x=this._createItem(c,o,t,m,y,d,v,h);x.on("click",u(e,c,a)).on(ee,u(i,p,"",a)).on(te,u(n,p,"",a)),f[c]=!0}else r.eachRawSeries(function(r){if(!f[c]&&r.legendDataProvider){var s=r.legendDataProvider(),l=s.indexOfName(c);if(0>l)return;var p=s[C](l,"color"),g="roundRect",v=this._createItem(c,o,t,g,null,d,p,h);v.on("click",u(e,c,a)).on(ee,u(i,r,c,a)).on(te,u(n,r,c,a)),f[c]=!0}},this)},this),c.layout(s,t,a),c.addBackground(s,t)}},_createItem:function(t,e,i,n,r,a,o,c){var u=i.get("itemWidth"),d=i.get("itemHeight"),f=i.isSelected(t),p=new l.Group,g=e[ye](G),v=e.get("icon");if(n=v||n,p.add(s.createSymbol(n,0,0,u,d,f?o:h)),!v&&r&&(r!==n||"none"==r)){var m=.8*d;"none"===r&&(r="circle"),p.add(s.createSymbol(r,(u-m)/2,(d-m)/2,m,m,f?o:h))}var y="left"===a?u+5:-5,x=a,_=i.get("formatter");typeof _===_e&&_?t=_[U]("{name}",t):typeof _===Z&&(t=_(t));var b=new l.Text({style:{text:t,x:y,y:d/2,fill:f?g.getTextColor():h,textFont:g[V](),textAlign:x,textVerticalAlign:"middle"}});return p.add(b),p.add(new l.Rect({shape:p[N](),invisible:!0})),p.eachChild(function(t){t.silent=!c}),this.group.add(p),l.setHoverStyle(p),p}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[oe]&&t.filterSeries(function(t){for(var i=0;i<e[oe];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/component/tooltip/TooltipModel",[Ce,r],function(t){t(r).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",[Ce,"./TooltipContent",a,Ae,"../../util/format","../../util/number","zrender/core/env",r],function(t){function e(t,e){if(!t||!e)return!1;var i=P.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function l(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function d(t,e,i,n){return{x:t,y:e,width:i,height:n}}function f(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function p(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 v(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,c=e[fe];switch(t){case m:o=e.x+l/2-n/2,s=e.y+c/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case pe:o=e.x+l/2-n/2,s=e.y+c+a;break;case"left":o=e.x-n-a,s=e.y+c/2-r/2;break;case"right":o=e.x+l+a,s=e.y+c/2-r/2
}return[o,s]}function y(t,e,n,r,a,o,s){var l=s[me](),c=s[ve](),u=o&&o[N]().clone();if(o&&u[b](o[Me]),typeof t===Z&&(t=t([e,n],a,r.el,u)),C[j](t))e=z(t[0],l),n=z(t[1],c);else if(typeof t===_e&&o){var h=v(t,u,r.el);e=h[0],n=h[1]}else{var h=p(e,n,r.el,l,c);e=h[0],n=h[1]}r[i](e,n)}function _(t){var e=t[H],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"single"!==e.type||"item"===i)}var M=t("./TooltipContent"),A=t(a),C=t(Ae),L=t("../../util/format"),P=t("../../util/number"),z=P[u],D=t("zrender/core/env");t(r).extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!D.node){var i=new M(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,i){if(!D.node){this.group[q](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[he](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;if(r&&this.group.add(r),null!=this._lastX&&null!=this._lastY){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){a._manuallyShowTip({x:a._lastX,y:a._lastY})})}var o=this._api.getZr();o.off("click",this._tryShow),o.off("mousemove",this._mousemove),o.off(te,this._hide),o.off("globalout",this._hide),"click"===t.get("triggerOn")?o.on("click",this._tryShow,this):(o.on("mousemove",this._mousemove,this),o.on(te,this._hide,this),o.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[$],n=t[K],r=e.getSeriesByIndex(i),a=this._api;if(null==t.x||null==t.y){if(r||e.eachSeries(function(t){_(t)&&!r&&(r=t)}),r){var l=r[ie]();null==n&&(n=l.indexOfName(t.name));var c,u,h=l[S](n),d=r[H];if(d&&d[o]){var f=d[o](l.getValues(C.map(d[s],function(t){return r.coordDimToDataDim(t)[0]}),n,!0));c=f&&f[0],u=f&&f[1]}else if(h){var p=h[N]().clone();p[b](h[Me]),c=p.x+p.width/2,u=p.y+p[fe]/2}null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,target:h,event:{}})}}else{var h=a.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,target:h,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var i={};return e.eachSeries(function(t){if(_(t)){var e,n,r=t[H];"cartesian2d"===r.type?(e=r.getBaseAxis(),n=e.dim+e.index):"single"===r.type?(e=r.getAxis(),n=e.dim+e.type):(e=r.getBaseAxis(),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n][re].push(t)}},this),i},_tryShow:function(t){var e=t[J],i=this._tooltipModel,n=i.get(ae),r=this._ecModel,a=this._api;if(i)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e[K]){var o=e.dataModel||r.getSeriesByIndex(e[$]),s=e[K],l=o[ie]()[h](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.dispatchAction({type:"showTip",from:this.uid,dataIndex:e[K],seriesIndex:e[$]})}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),"cross"===i.get("axisPointer.type")&&a.dispatchAction({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,i,n){var r=t[ye]("axisPointer"),a=r.get("type");if("cross"===a){var l=n[J];if(l&&null!=l[K]){var c=i.getSeriesByIndex(l[$]),u=l[K];this._showItemTooltipContent(c,u,l.dataType,n)}}this._showAxisPointer();var h=!0;C.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,l=i[0],c=[n.offsetX,n.offsetY];if(!l.containPoint(c))return void this._hideAxisPointer(l.name);h=!1;var u=l[s],d=l.pointToData(c,!0);c=l[o](d);var f=l.getBaseAxis(),p=r.get("axis");"auto"===p&&(p=f.dim);var g=!1,v=this._lastHover;if("cross"===a)e(v.data,d)&&(g=!0),v.data=d;else{var m=C[X](u,p);v.data===d[m]&&(g=!0),v.data=d[m]}"cartesian2d"!==l.type||g?"polar"!==l.type||g?"single"!==l.type||g||this._showSinglePointer(r,l,p,c):this._showPolarPointer(r,l,p,c):this._showCartesianPointer(r,l,p,c),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(l,t[re],c,d,g)},this),this._tooltipModel.get("show")||this._hideAxisPointer(),h&&this._hide()},_showCartesianPointer:function(t,e,i,n){function r(i,n,r){var a="x"===i?l(n[0],r[0],n[0],r[1]):l(r[0],n[1],r[1],n[1]),s=o._getPointerElement(e,t,i,a);c?A[g](s,{shape:a},t):s.attr({shape:a})}function a(i,n,r){var a=e.getAxis(i),s=a.getBandWidth(),l=r[1]-r[0],u="x"===i?d(n[0]-s/2,r[0],s,l):d(r[0],n[1]-s/2,l,s),h=o._getPointerElement(e,t,i,u);c?A[g](h,{shape:u},t):h.attr({shape:u})}var o=this,s=t.get("type"),c="cross"!==s;if("cross"===s)r("x",n,e.getAxis("y").getGlobalExtent()),r("y",n,e.getAxis("x").getGlobalExtent()),this._updateCrossText(e,n,t);else{var u=e.getAxis("x"===i?"y":"x"),h=u.getGlobalExtent();"cartesian2d"===e.type&&("line"===s?r:a)(i,n,h)}},_showSinglePointer:function(t,e,i,n){function r(i,n,r){var o=e.getAxis(),c=o.orient,u="horizontal"===c?l(n[0],r[0],n[0],r[1]):l(r[0],n[1],r[1],n[1]),h=a._getPointerElement(e,t,i,u);s?A[g](h,{shape:u},t):h.attr({shape:u})}var a=this,o=t.get("type"),s="cross"!==o,c=e.getRect(),u=[c.y,c.y+c[fe]];r(i,n,u)},_showPolarPointer:function(t,e,i,r){function a(i,n,r){var a,o=e.pointToCoord(n);if("angle"===i){var c=e.coordToPoint([r[0],o[1]]),u=e.coordToPoint([r[1],o[1]]);a=l(c[0],c[1],u[0],u[1])}else a={cx:e.cx,cy:e.cy,r:o[0]};var h=s._getPointerElement(e,t,i,a);d?A[g](h,{shape:a},t):h.attr({shape:a})}function o(i,n,r){var a,o=e.getAxis(i),l=o.getBandWidth(),c=e.pointToCoord(n),u=Math.PI/180;a="angle"===i?f(e.cx,e.cy,r[0],r[1],(-c[1]-l/2)*u,(-c[1]+l/2)*u):f(e.cx,e.cy,c[0]-l/2,c[0]+l/2,0,2*Math.PI);var h=s._getPointerElement(e,t,i,a);d?A[g](h,{shape:a},t):h.attr({shape:a})}var s=this,c=t.get("type"),u=e.getAngleAxis(),h=e.getRadiusAxis(),d="cross"!==c;if("cross"===c)a("angle",r,h[k]()),a(n,r,u[k]()),this._updateCrossText(e,r,t);else{var p=e.getAxis(i===n?"angle":n),v=p[k]();("line"===c?a:o)(i,r,v)}},_updateCrossText:function(t,e,i){var n=i[ye]("crossStyle"),r=n[ye](G),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new A.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(o));var l=t.pointToData(e),u=t[s];l=C.map(l,function(e,i){var n=t.getAxis(u[i]);return e=n.type===c||"time"===n.type?n.scale[I](e):L.addCommas(e.toFixed(n.getPixelPrecision()))}),o.setStyle({fill:r.getTextColor()||n.get("color"),textFont:r[V](),text:l.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o[Y]=a.get(Y)},_getPointerElement:function(t,e,i,r){var a=this._tooltipModel,o=a.get("z"),s=a.get(Y),l=this._axisPointers,c=t.name;if(l[c]=l[c]||{},l[c][i])return l[c][i];var u=e.get("type"),h=e[ye](u+"Style"),d="shadow"===u,f=h[d?"getAreaStyle":"getLineStyle"](),p="polar"===t.type?d?w:i===n?"Circle":"Line":d?"Rect":"Line";d?f[x]=null:f.fill=null;var g=l[c][i]=new A[p]({style:f,z:o,zlevel:s,silent:!0,shape:r});return this.group.add(g),g},_dispatchAndShowSeriesTooltipContent:function(t,e,i,r,a){var o=this._tooltipModel,s=this._tooltipContent,l=t.getBaseAxis(),c=C.map(e,function(t){return{seriesIndex:t[$],dataIndex:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(l.dim),r,l):t[ie]().indexOfNearest(t.coordDimToDataDim(l.dim)[0],r["x"===l.dim||l.dim===n?0:1])}}),u=this._lastHover,h=this._api;if(u.payloadBatch&&!a&&h.dispatchAction({type:"downplay",batch:u.payloadBatch}),a||(h.dispatchAction({type:"highlight",batch:c}),u.payloadBatch=c),h.dispatchAction({type:"showTip",dataIndex:c[0][K],seriesIndex:c[0][$],from:this.uid}),l&&o.get("showContent")&&o.get("show")){var d,f=o.get("formatter"),p=o.get(R),g=C.map(e,function(t,e){return t[Q](c[e][K])});s.show(o);var v=c[0][K];if(!a){if(this._ticket="",f){if(typeof f===_e)d=L.formatTpl(f,g);else if(typeof f===Z){var m=this,x="axis_"+t.name+"_"+v,_=function(t,e){t===m._ticket&&(s.setContent(e),y(p,i[0],i[1],s,g,null,h))};m._ticket=x,d=f(g,x,_)}}else{var b=e[0][ie]()[T](v);d=(b?b+"<br />":"")+C.map(e,function(t,e){return t.formatTooltip(c[e][K],!0)}).join("<br />")}s.setContent(d)}y(p,i[0],i[1],s,g,null,h)}},_showItemTooltipContent:function(t,e,i,n){var r=this._api,a=t[ie](i),o=a[h](e),s=this._tooltipModel,l=this._tooltipContent,c=o[ye]("tooltip");if(c.parentModel?c.parentModel.parentModel=s:c.parentModel=this._tooltipModel,c.get("showContent")&&c.get("show")){var u,d=c.get("formatter"),f=c.get(R),p=t[Q](e,i);if(d){if(typeof d===_e)u=L.formatTpl(d,p);else if(typeof d===Z){var g=this,v="item_"+t.name+"_"+e,m=function(t,e){t===g._ticket&&(l.setContent(e),y(f,n.offsetX,n.offsetY,l,p,n[J],r))};g._ticket=v,u=d(p,v,m)}}else u=t.formatTooltip(e,!1,i);l.show(c),l.setContent(u),y(f,n.offsetX,n.offsetY,l,p,n[J],r)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&C.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.dispatchAction({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&C.each(e,function(t){t.hide()})}else this.group.hide()},_hide:function(){clearTimeout(this._showTimeout),this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api.dispatchAction({type:"hideTip",from:this.uid}),this._lastX=this._lastY=null},dispose:function(t,e){if(!D.node){var i=e.getZr();this._tooltipContent.hide(),i.off("click",this._tryShow),i.off("mousemove",this._mousemove),i.off(te,this._hide),i.off("globalout",this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}}})}),e("zrender/vml/graphic",[Ce,"../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").canvasSupported){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"),s=t("../graphic/Displayable"),l=t("../graphic/Image"),c=t("../graphic/Text"),u=t("../graphic/Path"),h=t("../graphic/Gradient"),d=t("./core"),p=Math.round,g=Math.sqrt,v=Math.abs,m=Math.cos,y=Math.sin,w=Math.max,S=e[b],A=",",C="progid:DXImageTransform.Microsoft",T=21600,L=T/2,P=1e5,z=1e3,k=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=T+","+T,t.coordorigin="0,0"},I=function(t){return String(t)[U](/&/g,"&amp;")[U](/"/g,"&quot;")},D=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},R=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},V=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},G=function(t,e,i){return(parseFloat(t)||0)*P+(parseFloat(e)||0)*z+i},H=function(t,e){return typeof t===_e?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},q=function(t,e,i){var n=r.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=D(n[0],n[1],n[2]),t[O]=i*n[3])},W=function(t){var e=r.parse(t);return[D(e[0],e[1],e[2]),e[3]]},Z=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof h){var r,a=0,o=[0,0],s=0,l=1,c=i[N](),u=c.width,d=c[fe];if("linear"===n.type){r="gradient";var f=i[Me],p=[n.x*u,n.y*d],g=[n.x2*u,n.y2*d];f&&(S(p,p,f),S(g,g,f));var v=g[0]-p[0],m=g[1]-p[1];a=180*Math.atan2(v,m)/Math.PI,0>a&&(a+=360),1e-6>a&&(a=0)}else{r="gradientradial";var p=[n.x*u,n.y*d],f=i[Me],y=i.scale,x=u,_=d;o=[(p[0]-c.x)/x,(p[1]-c.y)/_],f&&S(p,p,f),x/=y[0]*T,_/=y[1]*T;var b=w(x,_);s=0/b,l=2*n.r/b-s}var M=n.colorStops.slice();M.sort(function(t,e){return t.offset-e.offset});for(var A=M[oe],C=[],L=[],P=0;A>P;P++){var z=M[P],k=W(z.color);L.push(z.offset*l+s+" "+k[0]),(0===P||P===A-1)&&C.push(k)}if(A>=2){var I=C[0][0],D=C[1][0],R=C[0][1]*e[O],B=C[1][1]*e[O];t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=I,t.color2=D,t.colors=L.join(","),t[O]=B,t.opacity2=R}"radial"===r&&(t.focusposition=o.join(","))}else q(t,n,e[O])},X=function(t,e){null!=e.lineJoin&&(t.joinstyle=e.lineJoin),null!=e.miterLimit&&(t.miterlimit=e.miterLimit*T),null!=e.lineCap&&(t.endcap=e.lineCap),null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[x]||e[x]instanceof h||q(t,e[x],e[O])},j=function(t,e,i,n){var r="fill"==e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i[_])?(t[r?"filled":"stroked"]="true",i[e]instanceof h&&V(t,a),a||(a=d.createNode(e)),r?Z(a,i,n):X(a,i),R(t,a)):(t[r?"filled":"stroked"]="false",V(t,a))},Q=[[],[],[]],$=function(t,e){var i,r,a,o,s,l,c=n.M,u=n.C,h=n.L,d=n.A,f=n.Q,v=[];for(o=0;o<t[oe];){switch(a=t[o++],r="",i=0,a){case c:r=" m ",i=1,s=t[o++],l=t[o++],Q[0][0]=s,Q[0][1]=l;break;case h:r=" l ",i=1,s=t[o++],l=t[o++],Q[0][0]=s,Q[0][1]=l;break;case f:case u:r=" c ",i=3;var x,_,b=t[o++],w=t[o++],M=t[o++],C=t[o++];a===f?(x=M,_=C,M=(M+2*b)/3,C=(C+2*w)/3,b=(s+2*b)/3,w=(l+2*w)/3):(x=t[o++],_=t[o++]),Q[0][0]=b,Q[0][1]=w,Q[1][0]=M,Q[1][1]=C,Q[2][0]=x,Q[2][1]=_,s=x,l=_;break;case d:var P=0,z=0,k=1,I=1,D=0;e&&(P=e[4],z=e[5],k=g(e[0]*e[0]+e[1]*e[1]),I=g(e[2]*e[2]+e[3]*e[3]),D=Math.atan2(-e[1]/I,e[0]/k));var O=t[o++],R=t[o++],B=t[o++],E=t[o++],N=t[o++]+D,V=t[o++]+N+D;o++;var F=t[o++],G=O+m(N)*B,H=R+y(N)*E,b=O+m(V)*B,w=R+y(V)*E,q=F?" wa ":" at ";Math.abs(G-b)<1e-10&&(Math.abs(V-N)>.01?F&&(G+=270/T):Math.abs(H-R)<1e-10?F&&O>G||!F&&G>O?w-=270/T:w+=270/T:F&&R>H||!F&&H>R?b+=270/T:b-=270/T),v.push(q,p(((O-B)*k+P)*T-L),A,p(((R-E)*I+z)*T-L),A,p(((O+B)*k+P)*T-L),A,p(((R+E)*I+z)*T-L),A,p((G*k+P)*T-L),A,p((H*I+z)*T-L),A,p((b*k+P)*T-L),A,p((w*I+z)*T-L)),s=b,l=w;break;case n.R:var W=Q[0],Z=Q[1];W[0]=t[o++],W[1]=t[o++],Z[0]=W[0]+t[o++],Z[1]=W[1]+t[o++],e&&(S(W,W,e),S(Z,Z,e)),W[0]=p(W[0]*T-L),Z[0]=p(Z[0]*T-L),W[1]=p(W[1]*T-L),Z[1]=p(Z[1]*T-L),v.push(" m ",W[0],A,W[1]," l ",Z[0],A,W[1]," l ",Z[0],A,Z[1]," l ",W[0],A,Z[1]);break;case n.Z:v.push(" x ")}if(i>0){v.push(r);for(var X=0;i>X;X++){var j=Q[X];e&&S(j,j,e),v.push(p(j[0]*T-L),A,p(j[1]*T-L),i-1>X?A:"")}}}return v.join("")};u[be].brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=d.createNode("shape"),k(i),this._vmlEl=i),j(i,"fill",e,this),j(i,x,e,this);var n=this[Me],r=null!=n,a=i.getElementsByTagName(x)[0];if(a){var o=e[_];if(r&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];o*=g(v(s))}a.weight=o+"px"}var l=this.path;this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=$(l.data,this[Me]),i.style.zIndex=G(this[Y],this.z,this.z2),R(t,i),e.text?this.drawRectText(t,this[N]()):this.removeRectText(t)},u[be].onRemove=function(t){V(t,this._vmlEl),this.removeRectText(t)},u[be].onAdd=function(t){R(t,this._vmlEl),this.appendRectText(t)};var K=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};l[be].brushVML=function(t){var e,i,n=this.style,r=n.image;if(K(r)){var a=r.src;if(a===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var o=r.runtimeStyle,s=o.width,l=o[fe];o.width="auto",o[fe]="auto",e=r.width,i=r[fe],o.width=s,o[fe]=l,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,u=n.y||0,h=n.width,v=n[fe],m=n.sWidth,y=n.sHeight,x=n.sx||0,_=n.sy||0,b=m&&y,M=this._vmlEl;M||(M=d.doc[f]("div"),k(M),this._vmlEl=M);var T,L=M.style,P=!1,z=1,I=1;if(this[Me]&&(T=this[Me],z=g(T[0]*T[0]+T[1]*T[1]),I=g(T[2]*T[2]+T[3]*T[3]),P=T[1]||T[2]),P){var D=[c,u],B=[c+h,u],E=[c,u+v],V=[c+h,u+v];S(D,D,T),S(B,B,T),S(E,E,T),S(V,V,T);var F=w(D[0],B[0],E[0],V[0]),H=w(D[1],B[1],E[1],V[1]),q=[];q.push("M11=",T[0]/z,A,"M12=",T[2]/I,A,"M21=",T[1]/z,A,"M22=",T[3]/I,A,"Dx=",p(c*z+T[4]),A,"Dy=",p(u*I+T[5])),L.padding="0 "+p(F)+"px "+p(H)+"px 0",L[Se]=C+".Matrix("+q.join("")+", SizingMethod=clip)"}else T&&(c=c*z+T[4],u=u*I+T[5]),L[Se]="",L.left=p(c)+"px",L.top=p(u)+"px";var W=this._imageEl,Z=this._cropEl;W||(W=d.doc[f]("div"),this._imageEl=W);var X=W.style;if(b){if(e&&i)X.width=p(z*e*h/m)+"px",X[fe]=p(I*i*v/y)+"px";else{var j=new Image,U=this;j.onload=function(){j.onload=null,e=j.width,i=j[fe],X.width=p(z*e*h/m)+"px",X[fe]=p(I*i*v/y)+"px",U._imageWidth=e,U._imageHeight=i,U._imageSrc=r},j.src=r}Z||(Z=d.doc[f]("div"),Z.style.overflow="hidden",this._cropEl=Z);var Q=Z.style;Q.width=p((h+x*h/m)*z),Q[fe]=p((v+_*v/y)*I),Q[Se]=C+".Matrix(Dx="+-x*h/m*z+",Dy="+-_*v/y*I+")",Z.parentNode||M.appendChild(Z),W.parentNode!=Z&&Z.appendChild(W)}else X.width=p(z*h)+"px",X[fe]=p(I*v)+"px",M.appendChild(W),Z&&Z.parentNode&&(M.removeChild(Z),this._cropEl=null);var $="",J=n[O];1>J&&($+=".Alpha(opacity="+p(100*J)+") "),$+=C+".AlphaImageLoader(src="+r+", SizingMethod=scale)",X[Se]=$,M.style.zIndex=G(this[Y],this.z,this.z2),R(t,M),n.text&&this.drawRectText(t,this[N]())}},l[be].onRemove=function(t){V(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},l[be].onAdd=function(t){R(t,this._vmlEl),this.appendRectText(t)};var J,te=M,ee={},ie=0,ne=100,re=document[f]("div"),ae=function(t){var e=ee[t];if(!e){ie>ne&&(ie=0,ee={});var i,n=re.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||te,variant:n.fontVariant||te,weight:n.fontWeight||te,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},ee[t]=e,ie++}return e};a.measureText=function(t,e){var i=d.doc;J||(J=i[f]("div"),J.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",d.doc.body.appendChild(J));try{J.style.font=e}catch(n){}return J.innerHTML="",J.appendChild(i.createTextNode(t)),{width:J.offsetWidth}};for(var se=new i,le=function(t,e,i,n){var r=this.style,o=r.text;if(o){var s,l,c=r[F],u=ae(r.textFont),h=u.style+" "+u.variant+" "+u.weight+" "+u.size+'px "'+u.family+'"',f=r.textBaseline,g=r.textVerticalAlign;i=i||a[N](o,h,c,f);var v=this[Me];if(v&&!n&&(se.copy(e),se[b](v),e=se),n)s=e.x,l=e.y;else{var m=r.textPosition,y=r.textDistance;if(m instanceof Array)s=e.x+H(m[0],e.width),l=e.y+H(m[1],e[fe]),c=c||"left",f=f||"top";else{var _=a.adjustTextPositionOnRect(m,e,i,y);s=_.x,l=_.y,c=c||_[F],f=f||_.textBaseline}}if(g){switch(g){case E:l-=i[fe]/2;break;case pe:l-=i[fe]}f="top"}var w=u.size;switch(f){case"hanging":case"top":l+=w/1.75;break;case E:break;default:l-=w/2.25}switch(c){case"left":break;case B:s-=i.width/2;break;case"right":s-=i.width}var M,C,T,L=d.createNode,P=this._textVmlEl;P?(T=P.firstChild,M=T.nextSibling,C=M.nextSibling):(P=L("line"),M=L("path"),C=L("textpath"),T=L("skew"),C.style["v-text-align"]="left",k(P),M.textpathok=!0,C.on=!0,P.from="0 0",P.to="1000 0.05",R(P,T),R(P,M),R(P,C),this._textVmlEl=P);var z=[s,l],D=P.style;v&&n?(S(z,z,v),T.on=!0,T.matrix=v[0].toFixed(3)+A+v[2].toFixed(3)+A+v[1].toFixed(3)+A+v[3].toFixed(3)+",0,0",T.offset=(p(z[0])||0)+","+(p(z[1])||0),T.origin="0 0",D.left="0px",D.top="0px"):(T.on=!1,D.left=p(s)+"px",D.top=p(l)+"px"),C[_e]=I(o);try{C.style.font=h}catch(V){}j(P,"fill",{fill:n?r.fill:r.textFill,opacity:r[O]},this),j(P,x,{stroke:n?r[x]:r.textStroke,opacity:r[O],lineDash:r.lineDash},this),P.style.zIndex=G(this[Y],this.z,this.z2),R(t,P)}},ce=function(t){V(t,this._textVmlEl),this._textVmlEl=null},ue=function(t){R(t,this._textVmlEl)},he=[o,s,l,u,c],de=0;de<he[oe];de++){var ge=he[de][be];ge.drawRectText=le,ge.removeRectText=ce,ge.appendRectText=ue}c[be].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[N](),!0):this.removeRectText(t)},c[be].onRemove=function(t){this.removeRectText(t)},c[be].onAdd=function(t){this.appendRectText(t)}}}),e("echarts/scale/Interval",[Ce,"../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=n[le]({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]),o[be].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,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[oe]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[oe];i++)t.push(this[I](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 o=e.nice(n/t,!0),s=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=s}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0]/2;o[0]-=s,o[1]+=s}else o[1]=1;var l=o[1]-o[0];isFinite(l)||(o[0]=0,o[1]=1),this.niceTicks(t);var c=this._interval;i||(o[0]=e.round(r(o[0]/c)*c)),n||(o[1]=e.round(a(o[1]/c)*c))}});return o[de]=function(){return new o},o}),e("zrender/vml/Painter",[Ce,"../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[f]("div"),n=document[f]("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[xe]();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[be]={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[oe];i++){var n=t[i];n.invisible||n[ge]?(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(){var t=this._getWidth(),e=this._getHeight();if(this._width!=t&&this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i[fe]=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},_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[fe]))-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[oe];s++){var l=o[s];i[be][l]=n(l)}return i}),e("echarts/scale/Scale",[Ce,"../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[be];return n.parse=function(t){return t},n[D]=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[k]=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.getTicks(),i=0;i<e[oe];i++)t.push(this[I](e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/model",[Ce,"./format","./number",Ae],function(t){var e=t("./format"),i=t("./number"),r=t(Ae),a=["x","y","z",n,"angle"],o={};return o.createNameEach=function(t,e){t=t.slice();var i=r.map(t,o.capitalFirst);e=(e||[]).slice();var n=r.map(e,o.capitalFirst);return function(a,o){r.each(t,function(t,r){for(var s={name:t,capital:i[r]},l=0;l<e[oe];l++)s[e[l]]=t+n[l];a.call(o,s)})}},o.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},o.eachAxisDim=o.createNameEach(a,["axisIndex","axis","index"]),o.normalizeToArray=function(t){return r[j](t)?t:null==t?[]:[t]},o.createLinkedNodesFinder=function(t,e,i){function n(t,e){return r[X](e.nodes,t)>=0}function a(t,n){var a=!1;return e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]&&(a=!0)})}),a}function o(t,n){n.nodes.push(t),e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function r(t){!n(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(r);while(l);return s}},o.defaultEmphasis=function(t,e){if(t){var i=t[A]=t[A]||{},n=t[M]=t[M]||{};r.each(e,function(t){var e=r.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},o.LABEL_OPTIONS=[R,"show",G,"distance","formatter"],o.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},o.converDataValue=function(t,e){var n=e&&e.type;return n===l?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)},o.dataFormatMixin={getDataParams:function(t,e){var i=this[ie](e),n=this[$],r=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i[T](t,!0),l=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:this.mainType===re?this.subType:null,seriesIndex:n,seriesName:r,name:s,dataIndex:o,data:l,dataType:e,value:a,color:i[C](t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,n,a){i=i||M;var o=this[ie](n),s=o[h](t),l=this[Q](t,n);null!=a&&r[j](l.value)&&(l.value=l.value[a]);var c=s.get(["label",i,"formatter"]);return typeof c===Z?(l.status=i,c(l)):typeof c===_e?e.formatTpl(c,l):void 0},getRawValue:function(t,e){var i=this[ie](e),n=i.getRawDataItem(t);return null!=n?r[ue](n)&&!r[j](n)?n.value:n:void 0},formatTooltip:r.noop},o.mappingToExists=function(t,e){e=(e||[]).slice();var i=r.map(t||[],function(t){return{exist:t}});return r.each(e,function(t,n){if(r[ue](t))for(var a=0;a<i[oe];a++){var s=i[a].exist;if(!i[a][z]&&(null!=t.id&&s.id===t.id+""||null!=t.name&&!o.isIdInner(t)&&!o.isIdInner(s)&&s.name===t.name+"")){i[a][z]=t,e[n]=null;break}}}),r.each(e,function(t){if(r[ue](t)){for(var e=0;e<i[oe];e++){var n=i[e].exist;if(!i[e][z]&&!o.isIdInner(n)&&null==t.id){i[e][z]=t;break}}e>=i[oe]&&i.push({option:t})}}),i},o.isIdInner=function(t){return r[ue](t)&&t.id&&0===(t.id+"")[X]("\x00_ec_\x00")},o}),e("echarts/model/Model",[Ce,Ae,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i,n){this.parentModel=e,this[L]=i,this[z]=t,this.init&&(arguments[oe]<=4?this.init(t,e,i,n):this.init.apply(this,arguments))}var i=t(Ae),n=t("../util/clazz");e[be]={constructor:e,init:null,mergeOption:function(t){i.merge(this[z],t,!0)},get:function(t,e){if(!t)return this[z];typeof t===_e&&(t=t.split("."));for(var i=this[z],n=this.parentModel,r=0;r<t[oe]&&(!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[z],n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[y](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[ye](t),this[L]);return a},isEmpty:function(){return null==this[z]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[z]))},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("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==p&&(t=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],grid:{},textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},animation:!0,animationThreshold:2e3,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut"}}),e("zrender/tool/path",[Ce,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,f,v){var m=l*(d/180),y=h(m)*(t-i)/2+u(m)*(e-n)/2,x=-1*u(m)*(t-i)/2+h(m)*(e-n)/2,_=y*y/(o*o)+x*x/(s*s);_>1&&(o*=c(_),s*=c(_));var b=(r===a?-1:1)*c((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,S=b*-s*y/o,M=(t+i)/2+h(m)*w-u(m)*S,A=(e+n)/2+u(m)*w+h(m)*S,C=g([1,0],[(y-w)/o,(x-S)/s]),T=[(y-w)/o,(x-S)/s],L=[(-1*y-w)/o,(-1*x-S)/s],P=g(T,L);p(T,L)<=-1&&(P=d),p(T,L)>=1&&(P=0),0===a&&P>0&&(P-=2*d),1===a&&0>P&&(P+=2*d),v.addData(f,M,A,o,s,C,P,m,a)}function i(t){if(!t)return[];var i,n=t[U](/-/g," -")[U](/ /g," ")[U](/ /g,",")[U](/,,/g,",");for(i=0;i<l[oe];i++)n=n[U](new RegExp(l[i],"g"),"|"+l[i]);var r,o=n.split("|"),s=0,c=0,u=new a,h=a.CMD;for(i=1;i<o[oe];i++){var d,f=o[i],p=f.charAt(0),g=0,v=f.slice(1)[U](/e,-/g,"e-").split(",");v[oe]>0&&""===v[0]&&v.shift();for(var m=0;m<v[oe];m++)v[m]=parseFloat(v[m]);for(;g<v[oe]&&!isNaN(v[g])&&!isNaN(v[0]);){var y,x,_,b,w,S,M,A=s,C=c;switch(p){case"l":s+=v[g++],c+=v[g++],d=h.L,u.addData(d,s,c);break;case"L":s=v[g++],c=v[g++],d=h.L,u.addData(d,s,c);break;case"m":s+=v[g++],c+=v[g++],d=h.M,u.addData(d,s,c),p="l";break;case"M":s=v[g++],c=v[g++],d=h.M,u.addData(d,s,c),p="L";break;case"h":s+=v[g++],d=h.L,u.addData(d,s,c);break;case"H":s=v[g++],d=h.L,u.addData(d,s,c);break;case"v":c+=v[g++],d=h.L,u.addData(d,s,c);break;case"V":c=v[g++],d=h.L,u.addData(d,s,c);break;case"C":d=h.C,u.addData(d,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),s=v[g-2],c=v[g-1];break;case"c":d=h.C,u.addData(d,v[g++]+s,v[g++]+c,v[g++]+s,v[g++]+c,v[g++]+s,v[g++]+c),s+=v[g-2],c+=v[g-1];break;case"S":y=s,x=c;var T=u.len(),L=u.data;r===h.C&&(y+=s-L[T-4],x+=c-L[T-3]),d=h.C,A=v[g++],C=v[g++],s=v[g++],c=v[g++],u.addData(d,y,x,A,C,s,c);break;case"s":y=s,x=c;var T=u.len(),L=u.data;r===h.C&&(y+=s-L[T-4],x+=c-L[T-3]),d=h.C,A=s+v[g++],C=c+v[g++],s+=v[g++],c+=v[g++],u.addData(d,y,x,A,C,s,c);break;case"Q":A=v[g++],C=v[g++],s=v[g++],c=v[g++],d=h.Q,u.addData(d,A,C,s,c);break;case"q":A=v[g++]+s,C=v[g++]+c,s+=v[g++],c+=v[g++],d=h.Q,u.addData(d,A,C,s,c);break;case"T":y=s,x=c;var T=u.len(),L=u.data;r===h.Q&&(y+=s-L[T-4],x+=c-L[T-3]),s=v[g++],c=v[g++],d=h.Q,u.addData(d,y,x,s,c);break;case"t":y=s,x=c;var T=u.len(),L=u.data;r===h.Q&&(y+=s-L[T-4],x+=c-L[T-3]),s+=v[g++],c+=v[g++],d=h.Q,u.addData(d,y,x,s,c);break;case"A":_=v[g++],b=v[g++],w=v[g++],S=v[g++],M=v[g++],A=s,C=c,s=v[g++],c=v[g++],d=h.A,e(A,C,s,c,S,M,_,b,w,d,u);break;case"a":_=v[g++],b=v[g++],w=v[g++],S=v[g++],M=v[g++],A=s,C=c,s+=v[g++],c+=v[g++],d=h.A,e(A,C,s,c,S,M,_,b,w,d,u)}}("z"===p||"Z"===p)&&(d=h.Z,u.addData(d)),r=d}return u.toStatic(),u}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.getContext();e&&t.rebuildPath(e)},e[b]=function(t){n||(n=s[de]()),s.mul(n,t,n)},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"],c=Math.sqrt,u=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))},g=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[le](n(t,e))},mergePath:function(t,e){var i,n,a=[],o=t[oe];for(n=0;o>n;n++)i=t[n],i.__dirty&&i.buildPath(i.path,i.shape),a.push(i.path);var s=new r(e);return s.buildPath=function(t){t.appendPath(a);var e=t.getContext();e&&t.rebuildPath(e)},s}}}),e("zrender/graphic/Path",[Ce,"./Displayable",d,"../core/PathProxy","../contain/path","./Gradient"],function(t){function e(t){var e=t.fill;return null!=e&&"none"!==e}function i(t){var e=t[x];return null!=e&&"none"!==e&&t[_]>0}function n(t){r.call(this,t),this.path=new o}var r=t("./Displayable"),a=t(d),o=t("../core/PathProxy"),s=t("../contain/path"),l=(t("./Gradient"),Math.abs);return n[be]={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var n=this.style,r=this.path,a=i(n),o=e(n),s=o&&!!n.fill.colorStops,l=a&&!!n[x].colorStops;if(n.bind(t,this),this.setTransform(t),this.__dirtyPath){var c=this[N]();s&&(this._fillGradient=n.getGradient(t,n.fill,c)),l&&(this._strokeGradient=n.getGradient(t,n[x],c))}s&&(t.fillStyle=this._fillGradient),l&&(t.strokeStyle=this._strokeGradient);var u=n.lineDash,h=n.lineDashOffset,d=!!t.setLineDash,f=this.getGlobalScale();r.setScale(f[0],f[1]),this.__dirtyPath||u&&!d&&a?(r=this.path.beginPath(t),u&&!d&&(r.setLineDash(u),r.setLineDashOffset(h)),this.buildPath(r,this.shape),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&r.fill(t),u&&d&&(t.setLineDash(u),t.lineDashOffset=h),a&&r[x](t),null!=n.text&&this.drawRectText(t,this[N]()),t.restore()},buildPath:function(){},getBoundingRect:function(){var t=this._rect,n=this.style,r=!t;if(r){var a=this.path;this.__dirtyPath&&(a.beginPath(),this.buildPath(a,this.shape)),t=a[N]()}if(this._rect=t,i(n)){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||r){o.copy(t);var s=n[_],l=n.strokeNoScale?this.getLineScale():1;e(n)||(s=Math.max(s,this.strokeContainThreshold)),l>1e-10&&(o.width+=s/l,o[fe]+=s/l,o.x-=s/l/2,o.y-=s/l/2)}return o}return t},contain:function(t,n){var r=this.transformCoordToLocal(t,n),a=this[N](),o=this.style;if(t=r[0],n=r[1],a[D](t,n)){var l=this.path.data;if(i(o)){var c=o[_],u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(e(o)||(c=Math.max(c,this.strokeContainThreshold)),s.containStroke(l,c/u,t,n)))return!0}if(e(o))return s[D](l,t,n)}return!1},dirty:function(t){0===arguments[oe]&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?this.setShape(e):r[be].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a[ue](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[Me];return t&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(t[0]*t[3]-t[2]*t[1])):1}},n[le]=function(t){var e=function(e){n.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var r=this.shape;for(var a in i)!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(r[a]=i[a])}t.init&&t.init.call(this,e)};a[W](e,n);for(var i in t)"style"!==i&&"shape"!==i&&(e[be][i]=t[i]);return e},a[W](n,r),n}),e("zrender/graphic/Gradient",[Ce],function(){var t=function(t){this.colorStops=t||[]};return t[be]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),e("zrender/container/Group",[Ce,d,"../Element","../core/BoundingRect"],function(t){var e=t(d),i=t("../Element"),n=t("../core/BoundingRect"),r=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};return r[be]={constructor:r,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[oe];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[oe]},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i[X](e);n>=0&&(i[ne](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent[ce](t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof r&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var i=this.__zr,n=this.__storage,a=this._children,o=e[X](a,t);return 0>o?this:(a[ne](o,1),t.parent=null,n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),i&&i.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[oe];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),t.parent=null;return i[oe]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[oe];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[oe];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[oe];e++){var i=this._children[e];t.addToMap(i),i instanceof r&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[oe];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof r&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new n(0,0,0,0),r=t||this._children,a=[],o=0;o<r[oe];o++){var s=r[o];if(!s[ge]&&!s.invisible){var l=s[N](),c=s.getLocalTransform(a);c?(i.copy(l),i[b](c),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[W](r,i),r}),e("zrender/graphic/Image",[Ce,"./Displayable","../core/BoundingRect",d,"./helper/roundRect","../core/LRU"],function(t){function e(t){i.call(this,t)}var i=t("./Displayable"),n=t("../core/BoundingRect"),r=t(d),a=t("./helper/roundRect"),o=t("../core/LRU"),s=new o(50);return e[be]={constructor:e,type:"image",brush:function(t){var e,i=this.style,n=i.image;if(e=typeof n===_e?this._image:n,!e&&n){var r=s.get(n);if(!r)return e=new Image,e.onload=function(){e.onload=null;for(var t=0;t<r.pending[oe];t++)r.pending[t].dirty()},r={image:e,pending:[this]},e.src=n,s.put(n,r),void(this._image=e);if(e=r.image,this._image=e,!e.width||!e[fe])return void r.pending.push(this)}if(e){var o=i.width||e.width,l=i[fe]||e[fe],c=i.x||0,u=i.y||0;if(!e.width||!e[fe])return;if(t.save(),i.bind(t),this.setTransform(t),i.r&&(t.beginPath(),a.buildPath(t,i),t.clip()),i.sWidth&&i.sHeight){var h=i.sx||0,d=i.sy||0;t.drawImage(e,h,d,i.sWidth,i.sHeight,c,u,o,l)}else if(i.sx&&i.sy){var h=i.sx,d=i.sy,f=o-h,p=l-d;t.drawImage(e,h,d,f,p,c,u,o,l)}else t.drawImage(e,c,u,o,l);null==i.width&&(i.width=o),null==i[fe]&&(i[fe]=l),null!=i.text&&this.drawRectText(t,this[N]()),t.restore()}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new n(t.x||0,t.y||0,t.width||0,t[fe]||0)),this._rect}},r[W](e,i),e}),e("zrender/graphic/Text",[Ce,"./Displayable",d,"../contain/text"],function(t){var e=t("./Displayable"),i=t(d),n=t("../contain/text"),r=function(t){e.call(this,t)};return r[be]={constructor:r,type:"text",brush:function(t){var e=this.style,i=e.x||0,r=e.y||0,a=e.text,o=e.fill,s=e[x];if(null!=a&&(a+=""),a){if(t.save(),this.style.bind(t),this.setTransform(t),o&&(t.fillStyle=o),s&&(t.strokeStyle=s),t.font=e.textFont||e.font,t[F]=e[F],e.textVerticalAlign){var l=n[N](a,t.font,e[F],"top");switch(t.textBaseline=E,e.textVerticalAlign){case E:r-=l[fe]/2-l.lineHeight/2;break;case pe:r-=l[fe]-l.lineHeight/2;break;default:r+=l.lineHeight/2}}else t.textBaseline=e.textBaseline;for(var c=n.measureText("国",t.font).width,u=a.split("\n"),h=0;h<u[oe];h++)o&&t.fillText(u[h],i,r),s&&t.strokeText(u[h],i,r),r+=c;t.restore()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=n[N](t.text+"",t.textFont||t.font,t[F],e?"top":t.textBaseline);switch(e){case E:i.y-=i[fe]/2;break;case pe:i.y-=i[fe]}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},i[W](r,e),r}),e("zrender/graphic/shape/Circle",[Ce,"../Path"],function(t){return t("../Path")[le]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e){t[i](e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Sector",[Ce,"../Path"],function(t){return t("../Path")[le]({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),o=Math.max(e.r,0),s=e.startAngle,l=e.endAngle,c=e.clockwise,u=Math.cos(s),h=Math.sin(s);t[i](u*a+n,h*a+r),t.lineTo(u*o+n,h*o+r),t.arc(n,r,o,s,l,!c),t.lineTo(Math.cos(l)*a+n,Math.sin(l)*a+r),0!==a&&t.arc(n,r,a,l,s,c),t.closePath()}})}),e("zrender/graphic/shape/Ring",[Ce,"../Path"],function(t){return t("../Path")[le]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=2*Math.PI;t[i](n+e.r,r),t.arc(n,r,e.r,0,a,!1),t[i](n+e.r0,r),t.arc(n,r,e.r0,0,a,!0)}})}),e("zrender/graphic/shape/Polygon",[Ce,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[le]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Polyline",[Ce,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[le]({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",[Ce,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[le]({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[fe];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/Line",[Ce,"../Path"],function(t){return t("../Path")[le]({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,o=e.y2,s=e.percent;0!==s&&(t[i](n,r),1>s&&(a=n*(1-s)+a*s,o=r*(1-s)+o*s),t.lineTo(a,o))},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",[Ce,"../../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?u:l)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?u:l)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?c:s)(t.x1,t.cpx1,t.x2,e),(i?c:s)(t.y1,t.cpy1,t.y2,e)]}var n=t("../../core/curve"),r=t("../../core/vector"),a=n.quadraticSubdivide,o=n.cubicSubdivide,s=n.quadraticAt,l=n.cubicAt,c=n.quadraticDerivativeAt,u=n.cubicDerivativeAt,h=[];return t("../Path")[le]({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,r=e.y1,s=e.x2,l=e.y2,c=e.cpx1,u=e.cpy1,d=e.cpx2,f=e.cpy2,p=e.percent;0!==p&&(t[i](n,r),null==d||null==f?(1>p&&(a(n,c,s,p,h),c=h[1],s=h[2],a(r,u,l,p,h),u=h[1],l=h[2]),t.quadraticCurveTo(c,u,s,l)):(1>p&&(o(n,c,d,s,p,h),c=h[1],d=h[2],s=h[3],o(r,u,f,l,p,h),u=h[1],f=h[2],l=h[3]),t.bezierCurveTo(c,u,d,f,s,l)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var i=e(this.shape,t,!0);return r.normalize(i,i)}})}),e("zrender/graphic/shape/Arc",[Ce,"../Path"],function(t){return t("../Path")[le]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,r=e.cy,a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,c=Math.cos(o),u=Math.sin(o);t[i](c*a+n,u*a+r),t.arc(n,r,a,o,s,!l)}})}),e("zrender/graphic/CompoundPath",[Ce,"./Path"],function(t){var e=t("./Path");return e[le]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e[oe];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[oe];i++)t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i[oe];n++)i[n].buildPath(t,i[n].shape)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[oe];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[be][N].call(this)}})}),e("zrender/graphic/LinearGradient",[Ce,d,"./Gradient"],function(t){var e=t(d),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,i.call(this,a)};return n[be]={constructor:n,type:"linear"},e[W](n,i),n}),e("zrender/core/BoundingRect",[Ce,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[fe]=n}var i=t("./vector"),n=t("./matrix"),r=i[b],a=Math.min,o=Math.abs,s=Math.max;return e[be]={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[fe]=s(t.y+t[fe],this.y+this[fe])-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[fe],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[fe]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[fe]/e[fe],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){var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e[fe],o=t.x,s=t.x+t.width,l=t.y,c=t.y+t[fe];return!(o>n||i>s||l>a||r>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[fe]},clone:function(){return new e(this.x,this.y,this.width,this[fe])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[fe]=t[fe]}},e}),e("zrender/graphic/RadialGradient",[Ce,d,"./Gradient"],function(t){var e=t(d),i=t("./Gradient"),n=function(t,e,n,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,i.call(this,r)};return n[be]={constructor:n,type:"radial"},e[W](n,i),n}),e("echarts/coord/polar/Polar",[Ce,"./RadiusAxis","./AngleAxis"],function(t){var e=t("./RadiusAxis"),i=t("./AngleAxis"),r=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new e,this._angleAxis=new i};return r[be]={constructor:r,type:"polar",dimensions:[n,"angle"],containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis[D](e[0])&&this._angleAxis[D](e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale(l)[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},dataToPoints:function(t){return t.mapArray(this[s],function(t,e){return this[o]([t,e])},this)},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),r=n[k](),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);n.inverse?a=o-360:o=a+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,c=a>l?1:-1;a>l||l>o;)l+=360*c;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,r=-Math.sin(i)*e+this.cy;return[n,r]}},r}),e("echarts/coord/axisHelper",[Ce,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",Ae,"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(Ae),o=t("zrender/contain/text"),s={};return s.getScaleExtent=function(t,e){var i=t.scale,n=i[k](),o=n[1]-n[0];if(i.type===l)return isFinite(o)?n:[0,0];var s=e.getMin?e.getMin():e.get("min"),c=e.getMax?e.getMax():e.get("max"),h=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),d=e.get("boundaryGap");a[j](d)||(d=[d||0,d||0]),d[0]=r[u](d[0],1),d[1]=r[u](d[1],1);var f=!0,p=!0;return null==s&&(s=n[0]-d[0]*o,f=!1),null==c&&(c=n[1]+d[1]*o,p=!1),"dataMin"===s&&(s=n[0]),"dataMax"===c&&(c=n[1]),h&&(s>0&&c>0&&!f&&(s=0),0>s&&0>c&&!p&&(c=0)),[s,c]},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");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 c=i.getInterval(),u=Math.max(Math.abs(c),l)/c;n=i[k](),i.setExtent(u*n[0],n[1]*u),i.niceExtent(o)}var c=e.get("interval");null!=c&&i.setInterval&&i.setInterval(c)},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[k](),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[oe]>40&&(l=Math.round(e[oe]/40));for(var c=0;c<t[oe];c+=l){var u=t[c],h=o[N](e[c],i,B,"top");h[n?"x":"y"]+=u,h[n?"width":fe]*=1.5,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*l},s.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===_e?(e=function(t){return function(e){return t[U]("{value}",e)}}(e),a.map(n,e)):typeof e===Z?a.map(r,function(n,r){return e(t.type===c?i[I](n):n,r)},this):n},s}),e("echarts/coord/polar/PolarModel",[Ce,"./AxisModel",r],function(t){t("./AxisModel"),t(r).extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,i=this[L];return i.eachComponent(t,function(t){i[P]("polar",t[y]("polarIndex"))===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})}),e("zrender/core/PathProxy",[Ce,"./curve","./vector","./bbox","./BoundingRect","../config"],function(t){var e=t("./curve"),n=t("./vector"),r=t("./bbox"),a=t("./BoundingRect"),o=t("../config").devicePixelRatio,s={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],c=[],u=[],h=[],d=Math.min,f=Math.max,g=Math.cos,v=Math.sin,m=Math.sqrt,y=Math.abs,_=typeof Float32Array!=p,b=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._ux=0,this._uy=0};return b[be]={constructor:b,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=y(1/o/t)||0,this._uy=y(1/o/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(s.M,t,e),this._ctx&&this._ctx[i](t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||0===this._len;return this.addData(s.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,a){return this.addData(s.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(s.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(s.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=v(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(s.R,t,e,i,n),this},closePath:function(){this.addData(s.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[x](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[oe];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[oe];this.data&&this.data[oe]==e||!_||(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[oe],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();_&&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[oe];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[oe]>e[oe]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[oe];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,o=this._dashOffset,s=this._lineDash,l=this._ctx,c=this._xi,u=this._yi,h=t-c,p=e-u,g=m(h*h+p*p),v=c,y=u,x=s[oe];for(h/=g,p/=g,0>o&&(o=a+o),o%=a,v-=o*h,y-=o*p;h>=0&&t>=v||0>h&&v>t;)r=this._dashIdx,n=s[r],v+=h*n,y+=p*n,this._dashIdx=(r+1)%x,h>0&&c>v||0>h&&v>c||l[r%2?i:"lineTo"](h>=0?d(v,t):f(v,t),p>=0?d(y,e):f(y,e));h=v-t,p=y-e,this._dashOffset=-m(h*h+p*p)},_dashedBezierTo:function(t,n,r,a,o,s){var l,c,u,h,d,f=this._dashSum,p=this._dashOffset,g=this._lineDash,v=this._ctx,y=this._xi,x=this._yi,_=e.cubicAt,b=0,w=this._dashIdx,S=g[oe],M=0;for(0>p&&(p=f+p),p%=f,l=0;1>l;l+=.1)c=_(y,t,r,o,l+.1)-_(y,t,r,o,l),u=_(x,n,a,s,l+.1)-_(x,n,a,s,l),b+=m(c*c+u*u);for(;S>w&&(M+=g[w],!(M>p));w++);for(l=(M-p)/b;1>=l;)h=_(y,t,r,o,l),d=_(x,n,a,s,l),w%2?v[i](h,d):v.lineTo(h,d),l+=g[w]/b,w=(w+1)%S;w%2!==0&&v.lineTo(o,s),c=o-h,u=s-d,this._dashOffset=-m(c*c+u*u)},_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[oe]=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){l[0]=l[1]=u[0]=u[1]=Number.MAX_VALUE,c[0]=c[1]=h[0]=h[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,o=0,d=0,f=0;f<t[oe];){var p=t[f++];switch(1==f&&(e=t[f],i=t[f+1],o=e,d=i),p){case s.M:o=t[f++],d=t[f++],e=o,i=d,u[0]=o,u[1]=d,h[0]=o,h[1]=d;break;case s.L:r.fromLine(e,i,t[f],t[f+1],u,h),e=t[f++],i=t[f++];break;case s.C:r.fromCubic(e,i,t[f++],t[f++],t[f++],t[f++],t[f],t[f+1],u,h),e=t[f++],i=t[f++];break;case s.Q:r.fromQuadratic(e,i,t[f++],t[f++],t[f],t[f+1],u,h),e=t[f++],i=t[f++];break;case s.A:var m=t[f++],y=t[f++],x=t[f++],_=t[f++],b=t[f++],w=t[f++]+b,S=(t[f++],1-t[f++]);1==f&&(o=g(b)*x+m,d=v(b)*_+y),r.fromArc(m,y,x,_,b,w,S,u,h),e=g(w)*x+m,i=v(w)*_+y;break;case s.R:o=e=t[f++],d=i=t[f++];var M=t[f++],A=t[f++];r.fromLine(o,d,o+M,d+A,u,h);break;case s.Z:e=o,i=d}n.min(l,l,u),n.max(c,c,h)}return 0===f&&(l[0]=l[1]=c[0]=c[1]=0),new a(l[0],l[1],c[0]-l[0],c[1]-l[1])},rebuildPath:function(t){for(var e,n,r,a,o,l,c=this.data,u=this._ux,h=this._uy,d=this._len,f=0;d>f;){var p=c[f++];switch(1==f&&(r=c[f],a=c[f+1],e=r,n=a),p){case s.M:e=r=c[f++],n=a=c[f++],t[i](r,a);break;case s.L:o=c[f++],l=c[f++],(y(o-r)>u||y(l-a)>h||f===d-1)&&(t.lineTo(o,l),r=o,a=l);break;case s.C:t.bezierCurveTo(c[f++],c[f++],c[f++],c[f++],c[f++],c[f++]),r=c[f-2],a=c[f-1];break;case s.Q:t.quadraticCurveTo(c[f++],c[f++],c[f++],c[f++]),r=c[f-2],a=c[f-1];break;case s.A:var m=c[f++],x=c[f++],_=c[f++],b=c[f++],w=c[f++],S=c[f++],M=c[f++],A=c[f++],C=_>b?_:b,T=_>b?1:_/b,L=_>b?b/_:1,P=Math.abs(_-b)>.001,z=w+S;P?(t.translate(m,x),t.rotate(M),t.scale(T,L),t.arc(0,0,C,w,z,1-A),t.scale(1/T,1/L),t.rotate(-M),t.translate(-m,-x)):t.arc(m,x,C,w,z,1-A),1==f&&(e=g(w)*_+m,n=v(w)*b+x),r=g(z)*_+m,a=v(z)*b+x;break;case s.R:e=r=c[f],n=a=c[f+1],t.rect(c[f++],c[f++],c[f++],c[f++]);break;case s.Z:t.closePath(),r=e,a=n}}}},b.CMD=s,b}),e("zrender/contain/text",[Ce,d,"../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(s[i])return s[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[oe];o>a;a++)r=Math.max(f.measureText(n[a],e).width,r);return l>c&&(l=0,s={}),l++,s[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[oe],o=e(t,i),s=e("国",i),l=a*s,c=new h(0,0,o,l);switch(c.lineHeight=s,r){case pe:case"alphabetic":c.y-=s;break;case E:c.y-=s/2}switch(n){case"end":case"right":c.x-=c.width;break;case B:c.x-=c.width/2}return c}function n(t,e,i,n){var r=e.x,a=e.y,o=e[fe],s=e.width,l=i[fe],c=o/2-l/2,u="left";switch(t){case"left":r-=n,a+=c,u="right";break;case"right":r+=n+s,a+=c,u="left";break;case"top":r+=s/2,a-=n+l,u=B;break;case pe:r+=s/2,a+=o+n,u=B;break;case m:r+=s/2,a+=c,u=B;break;case"insideLeft":r+=n,a+=c,u="left";break;case"insideRight":r+=s-n,a+=c,u="right";break;case"insideTop":r+=s/2,a+=n,u=B;break;case"insideBottom":r+=s/2,a+=o-l-n,u=B;break;case"insideTopLeft":r+=n,a+=n,u="left";break;case"insideTopRight":r+=s-n,a+=n,u="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,u="right"}return{x:r,y:a,textAlign:u,textBaseline:"top"}}function r(t,i,n,r){if(!n)return"";r=u[se]({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:e("国",i),ascCharWidth:e("a",i)},r,!0),n-=e(r.ellipsis);for(var o=(t+"").split("\n"),s=0,l=o[oe];l>s;s++)o[s]=a(o[s],i,n,r);return o.join("\n")}function a(t,i,n,r){for(var a=0;;a++){var s=e(t,i);if(n>s||a>=r.maxIterations){t+=r.ellipsis;break}var l=0===a?o(t,n,r):Math.floor(t[oe]*n/s);if(l<r.minCharacters){t="";break}t=t.substr(0,l)}return t}function o(t,e,i){for(var n=0,r=0,a=t[oe];a>r&&e>n;r++){var o=t.charCodeAt(r);n+=o>=0&&127>=o?i.ascCharWidth:i.cnCharWidth}return r}var s={},l=0,c=5e3,u=t(d),h=t("../core/BoundingRect"),f={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,ellipsis:r,measureText:function(t,e){var i=u.getContext();return i.font=e,i.measureText(t)}};return f}),e("zrender/graphic/mixin/RectText",[Ce,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===_e?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function i(t,e){t[Me](e[0],e[1],e[2],e[3],e[4],e[5])}var n=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[be]={constructor:o,drawRectText:function(t,r,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){var c,u,h=s.textPosition,d=s.textDistance,f=s[F],p=s.textFont||s.font,g=s.textBaseline,v=s.textVerticalAlign;o=o||n[N](l,p,f,g);var m=this[Me],y=this.invTransform;if(m&&(a.copy(r),a[b](m),r=a,i(t,y)),h instanceof Array){if(c=r.x+e(h[0],r.width),u=r.y+e(h[1],r[fe]),f=f||"left",g=g||"top",v){switch(v){case E:u-=o[fe]/2-o.lineHeight/2;break;case pe:u-=o[fe]-o.lineHeight/2;break;default:u+=o.lineHeight/2}g=E}}else{var x=n.adjustTextPositionOnRect(h,r,o,d);c=x.x,u=x.y,f=f||x[F],g=g||x.textBaseline}t[F]=f,t.textBaseline=g;var _=s.textFill,w=s.textStroke;_&&(t.fillStyle=_),w&&(t.strokeStyle=w),t.font=p,t.shadowColor=s.textShadowColor,t.shadowBlur=s.textShadowBlur,t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var S=l.split("\n"),M=0;M<S[oe];M++)_&&t.fillText(S[M],c,u),w&&t.strokeText(S[M],c,u),u+=o.lineHeight;m&&i(t,m)}}},o}),e("zrender/graphic/Displayable",[Ce,d,"./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},r.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(d),n=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[be]={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,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[N]();return n[D](i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?r[be].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[W](e,r),i.mixin(e,a),e}),e("zrender/vml/core",[Ce,"exports","module","../core/env"],function(t,e,i){if(!t("../core/env").canvasSupported){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[f]("<zrvml:"+t+' class="zrvml">')}}catch(l){n=function(t){return o[f]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var c=function(){if(!s){s=!0;var t=o.styleSheets;t[oe]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};i.exports={doc:o,initVML:c,createNode:n}}}),e("echarts/util/clazz",[Ce,Ae],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[be][e].apply(t,i)}function i(t,e,i){return this.superClass[be][e].apply(t,i)}var n=t(Ae),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[le]=function(a){var o=function(){r&&r.apply(this,arguments),t.apply(this,arguments)};return n[le](o[be],a),o[le]=this[le],o.superCall=e,o.superApply=i,n[W](o,this),o.superClass=this,o}},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{if(r[e.main])throw new Error(e.main+"exists.");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[le];a&&(t[le]=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t},r.setReadOnly=function(){},r}),e("echarts/model/mixin/lineStyle",[Ce,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[_,"width"],[x,"color"],[O],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("echarts/model/mixin/areaStyle",[Ce,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[O],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[Ce,"zrender/contain/text"],function(t){function e(t,e){return t&&t[y](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this[L];return this[y]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[L],i=t&&t[ye](G);
return[this[y]("fontStyle")||e(i,"fontStyle"),this[y]("fontWeight")||e(i,"fontWeight"),(this[y]("fontSize")||e(i,"fontSize")||12)+"px",this[y]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(G)||{};return i[N](t,this[V](),e.align,e.baseline)},ellipsis:function(t,e,n){return i.ellipsis(t,this[V](),e,n)}}}),e("echarts/model/mixin/itemStyle",[Ce,"./makeStyleMapper"],function(t){return{getItemStyle:t("./makeStyleMapper")([["fill","color"],[x,"borderColor"],[_,"borderWidth"],[O],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("echarts/coord/cartesian/Cartesian2D",[Ce,Ae,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(Ae),n=t("./Cartesian");return e[be]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(l)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e[D](e.toLocalCoord(t[0]))&&i[D](i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this[o]([t,e])},e,this)},dataToPoint:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.toGlobalCoord(i.dataToCoord(t[0],e)),n.toGlobalCoord(n.dataToCoord(t[1],e))]},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i[W](e,n),e}),e("echarts/coord/cartesian/Axis2D",[Ce,Ae,"../Axis","./axisLabelInterval"],function(t){var e=t(Ae),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[R]=a||pe};return r[be]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[R];return"top"===t||t===pe},getGlobalExtent:function(){var t=this[k]();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===Z&&!e(t,this.scale[I](t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[W](r,i),r}),e("echarts/coord/cartesian/GridModel",[Ce,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[le]({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("zrender/tool/transformPath",[Ce,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,c,u,h,d,f=t.data,p=i.M,g=i.C,v=i.L,m=i.R,y=i.A,x=i.Q;for(c=0,u=0;c<f[oe];){switch(n=f[c++],u=c,l=0,n){case p:l=1;break;case v:l=1;break;case g: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]),S=o(e[2]*e[2]+e[3]*e[3]),M=s(-e[1]/S,e[0]/w);f[c++]+=_,f[c++]+=b,f[c++]*=w,f[c++]*=S,f[c++]+=M,f[c++]+=M,c+=2,u=c;break;case m:d[0]=f[c++],d[1]=f[c++],r(d,d,e),f[u++]=d[0],f[u++]=d[1],d[0]+=f[c++],d[1]+=f[c++],r(d,d,e),f[u++]=d[0],f[u++]=d[1]}for(h=0;l>h;h++){var d=a[h];d[0]=f[c++],d[1]=f[c++],r(d,d,e),f[u++]=d[0],f[u++]=d[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[b],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/contain/path",[Ce,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<m}function i(){var t=x[0];x[0]=x[1],x[1]=t}function n(t,e,n,r,a,o,s,l,c,u){if(u>e&&u>r&&u>o&&u>l||e>u&&r>u&&o>u&&l>u)return 0;var h=f.cubicRootAt(e,r,o,l,u,y);if(0===h)return 0;for(var d,p,g=0,v=-1,m=0;h>m;m++){var _=y[m],b=f.cubicAt(t,n,a,s,_);c>b||(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]))),g+=2==v?_<x[0]?e>d?1:-1:_<x[1]?d>p?1:-1:p>l?1:-1:_<x[0]?e>d?1:-1:d>l?1:-1)}return g}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 c=f.quadraticExtremum(e,n,a);if(c>=0&&1>=c){for(var u=0,h=f.quadraticAt(e,n,a,c),d=0;l>d;d++){var p=f.quadraticAt(t,i,r,y[d]);o>p||(u+=y[d]<c?e>h?1:-1:h>a?1:-1)}return u}var p=f.quadraticAt(t,i,r,y[0]);return o>p?0:e>a?1:-1}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 c=Math.abs(n-r);if(1e-4>c)return 0;if(1e-4>c%v){n=0,r=v;var u=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?u: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 g=Math.atan2(s,p),u=a?1:-1;0>g&&(g=v+g),(g>=n&&r>=g||g+v>=n&&r>=g+v)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),h+=u)}}return h}function o(t,i,o,l,d){for(var f=0,v=0,m=0,y=0,x=0,_=0;_<t[oe];){var b=t[_++];if(b===s.M&&_>1&&(o||(f+=p(v,m,y,x,l,d)),0!==f))return!0;switch(1==_&&(v=t[_],m=t[_+1],y=v,x=m),b){case s.M:y=t[_++],x=t[_++],v=y,m=x;break;case s.L:if(o){if(g(v,m,t[_],t[_+1],i,l,d))return!0}else f+=p(v,m,t[_],t[_+1],l,d)||0;v=t[_++],m=t[_++];break;case s.C:if(o){if(c.containStroke(v,m,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=n(v,m,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],l,d)||0;v=t[_++],m=t[_++];break;case s.Q:if(o){if(u.containStroke(v,m,t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=r(v,m,t[_++],t[_++],t[_],t[_+1],l,d)||0;v=t[_++],m=t[_++];break;case s.A:var w=t[_++],S=t[_++],M=t[_++],A=t[_++],C=t[_++],T=t[_++],L=(t[_++],1-t[_++]),P=Math.cos(C)*M+w,z=Math.sin(C)*A+S;_>1?f+=p(v,m,P,z,l,d):(y=P,x=z);var k=(l-w)*A/M+w;if(o){if(h.containStroke(w,S,A,C,C+T,L,i,k,d))return!0}else f+=a(w,S,A,C,C+T,L,k,d);v=Math.cos(C+T)*M+w,m=Math.sin(C+T)*A+S;break;case s.R:y=v=t[_++],x=m=t[_++];var I=t[_++],D=t[_++],P=y+I,z=x+D;if(o){if(g(y,x,P,x,i,l,d)||g(P,x,P,z,i,l,d)||g(P,z,y,z,i,l,d)||g(y,z,P,z,i,l,d))return!0}else f+=p(P,x,P,z,l,d),f+=p(y,z,y,x,l,d);break;case s.Z:if(o){if(g(v,m,y,x,i,l,d))return!0}else if(f+=p(v,m,y,x,l,d),0!==f)return!0;v=y,m=x}}return o||e(m,x)||(f+=p(v,m,y,x,l,d)||0),0!==f}var s=t("../core/PathProxy").CMD,l=t("./line"),c=t("./cubic"),u=t("./quadratic"),h=t("./arc"),d=t("./util").normalizeRadian,f=t("../core/curve"),p=t("./windingLine"),g=l.containStroke,v=2*Math.PI,m=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("echarts/coord/polar/RadiusAxis",[Ce,Ae,"../Axis"],function(t){function e(t,e){r.call(this,n,t,e),this.type=c}var i=t(Ae),r=t("../Axis");return e[be]={constructor:e,dataToRadius:r[be].dataToCoord,radiusToData:r[be].coordToData},i[W](e,r),e}),e("echarts/coord/polar/AngleAxis",[Ce,Ae,"../Axis"],function(t){function e(t,e){e=e||[0,360],n.call(this,"angle",t,e),this.type=c}var i=t(Ae),n=t("../Axis");return e[be]={constructor:e,dataToAngle:n[be].dataToCoord,angleToData:n[be].coordToData},i[W](e,n),e}),e("echarts/scale/Ordinal",[Ce,Ae,"./Scale"],function(t){var e=t(Ae),i=t("./Scale"),n=i[be],r=i[le]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[oe]-1]},parse:function(t){return typeof t===_e?e[X](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[D].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("zrender/core/curve",[Ce,"./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),c=3*(i-t),u=t-a,h=l*l-3*s*c,d=l*c-9*s*u,f=c*c-3*l*u,p=0;if(e(h)&&e(d))if(e(l))o[0]=0;else{var g=-c/l;g>=0&&1>=g&&(o[p++]=g)}else{var v=d*d-4*h*f;if(e(v)){var m=d/h,g=-l/s+m,_=-m/2;g>=0&&1>=g&&(o[p++]=g),_>=0&&1>=_&&(o[p++]=_)}else if(v>0){var b=x(v),M=h*l+1.5*s*(-d+b),A=h*l+1.5*s*(-d-b);M=0>M?-y(-M,S):y(M,S),A=0>A?-y(-A,S):y(A,S);var g=(-l-(M+A))/(3*s);g>=0&&1>=g&&(o[p++]=g)}else{var C=(2*h*l-3*s*d)/(2*x(h*h*h)),T=Math.acos(C)/3,L=x(h),P=Math.cos(T),g=(-l-2*L*P)/(3*s),_=(-l+L*(P+w*Math.sin(T)))/(3*s),z=(-l+L*(P-w*Math.sin(T)))/(3*s);g>=0&&1>=g&&(o[p++]=g),_>=0&&1>=_&&(o[p++]=_),z>=0&&1>=z&&(o[p++]=z)}}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,c=3*n-3*t,u=0;if(e(l)){if(i(s)){var h=-c/s;h>=0&&1>=h&&(o[u++]=h)}}else{var d=s*s-4*l*c;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[u++]=h),p>=0&&1>=p&&(o[u++]=p)}}return u}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,c=(s-o)*r+o,u=(l-s)*r+s,h=(u-c)*r+c;a[0]=t,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,c,u,h){var d,f,p,g,v,y=.005,_=1/0;M[0]=c,M[1]=u;for(var w=0;1>w;w+=.05)A[0]=n(t,i,a,s,w),A[1]=n(e,r,o,l,w),g=m(M,A),_>g&&(d=w,_=g);_=1/0;for(var S=0;32>S&&!(b>y);S++)f=d-y,p=d+y,A[0]=n(t,i,a,s,f),A[1]=n(e,r,o,l,f),g=m(A,M),f>=0&&_>g?(d=f,_=g):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,l,p),v=m(C,M),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 c(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function u(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),c=t-a,u=0;if(e(s)){if(i(l)){var h=-c/l;h>=0&&1>=h&&(o[u++]=h)}}else{var d=l*l-4*s*c;if(e(d)){var h=-l/(2*s);h>=0&&1>=h&&(o[u++]=h)}else if(d>0){var f=x(d),h=(-l+f)/(2*s),p=(-l-f)/(2*s);h>=0&&1>=h&&(o[u++]=h),p>=0&&1>=p&&(o[u++]=p)}}return u}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 u,h=.005,d=1/0;M[0]=o,M[1]=s;for(var f=0;1>f;f+=.05){A[0]=c(t,i,r,f),A[1]=c(e,n,a,f);var p=m(M,A);d>p&&(u=f,d=p)}d=1/0;for(var g=0;32>g&&!(b>h);g++){var v=u-h,y=u+h;A[0]=c(t,i,r,v),A[1]=c(e,n,a,v);var p=m(A,M);if(v>=0&&d>p)u=v,d=p;else{C[0]=c(t,i,r,y),C[1]=c(e,n,a,y);var _=m(C,M);1>=y&&d>_?(u=y,d=_):h*=.5}}return l&&(l[0]=c(t,i,r,u),l[1]=c(e,n,a,u)),x(d)}var g=t("./vector"),v=g[de],m=g.distSquare,y=Math.pow,x=Math.sqrt,_=1e-8,b=1e-4,w=x(3),S=1/3,M=v(),A=v(),C=v();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:c,quadraticDerivativeAt:u,quadraticRootAt:h,quadraticExtremum:d,quadraticSubdivide:f,quadraticProjectPoint:p}}),e("zrender/config",[],function(){var t=1;typeof window!==p&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/bbox",[Ce,"./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](),c=e[de](),u=e[de](),h=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t[oe]){var n,o=t[0],s=o[0],l=o[0],c=o[1],u=o[1];for(n=1;n<t[oe];n++)o=t[n],s=r(s,o[0]),l=a(l,o[0]),c=r(c,o[1]),u=a(u,o[1]);e[0]=s,e[1]=c,i[0]=l,i[1]=u}},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,c,u,h,p){var g,v=i.cubicExtrema,m=i.cubicAt,y=v(t,n,s,c,d);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,g=0;y>g;g++){var x=m(t,n,s,c,d[g]);h[0]=r(x,h[0]),p[0]=a(x,p[0])}for(y=v(e,o,l,u,f),g=0;y>g;g++){var _=m(e,o,l,u,f[g]);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(c,h[0]),p[0]=a(c,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(u,h[1]),p[1]=a(u,p[1])},n.fromQuadratic=function(t,e,n,o,s,l,c,u){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),g=d(t,n,s,f),v=d(e,o,l,p);c[0]=r(t,s,g),c[1]=r(e,l,v),u[0]=a(t,s,g),u[1]=a(e,l,v)},n.fromArc=function(t,i,n,r,a,d,f,p,g){var v=e.min,m=e.max,y=Math.abs(a-d);if(1e-4>y%h&&y>1e-4)return p[0]=t-n,p[1]=i-r,g[0]=t+n,void(g[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,c[0]=s(d)*n+t,c[1]=o(d)*r+i,v(p,l,c),m(g,l,c),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&&(u[0]=s(_)*n+t,u[1]=o(_)*r+i,v(p,u,p),m(g,u,g))},n}),e("zrender/graphic/Style",[Ce],function(){var t=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],e=function(t){this.extendFrom(t)};e[be]={constructor:e,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,bind:function(e,i){for(var n=this.fill,r=this[x],a=0;a<t[oe];a++){var o=t[a];null!=this[o]&&(e[o]=this[o])}if(null!=r){var s=this[_];e[_]=s/(this.strokeNoScale&&i&&i.getLineScale?i.getLineScale():1)}null==n||"none"===n||n.colorStops||(e.fillStyle=n),null==r||"none"===r||r.colorStops||(e.strokeStyle=r),null!=this[O]&&(e.globalAlpha=this[O])},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===_e?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},createLinearGradient:function(t,e,i){var n=e.x*i.width+i.x,r=e.x2*i.width+i.x,a=e.y*i[fe]+i.y,o=e.y2*i[fe]+i.y,s=t.createLinearGradient(n,a,r,o);return s},createRadialGradient:function(t,e,i){var n=i.width,r=i[fe],a=Math.min(n,r),o=e.x*n+i.x,s=e.y*r+i.y,l=e.r*a,c=t.createRadialGradient(o,s,0,o,s,l);return c},getGradient:function(t,e,i){for(var n="radial"===e.type?"createRadialGradient":"createLinearGradient",r=this[n](t,e,i),a=e.colorStops,o=0;o<a[oe];o++)r.addColorStop(a[o].offset,a[o].color);return r}};var i,n,r=e[be];for(n=0;n<t[oe];n++)i=t[n],i in r||(r[i]=null);return e}),e("zrender/Element",[Ce,"./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"),r=t("./mixin/Animatable"),a=t("./core/util"),o=function(t){n.call(this,t),i.call(this,t),r.call(this,t),this.id=t.id||e()};return o[be]={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[Me];i||(i=this[Me]=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty()},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===R||"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[ge]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[ge]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===_e)this.attrKV(t,e);else if(a[ue](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(),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()},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty())},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[oe];i++)t[v].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[oe];i++)t[v].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},a.mixin(o,r),a.mixin(o,n),a.mixin(o,i),o}),e("echarts/model/mixin/makeStyleMapper",[Ce,Ae],function(t){var e=t(Ae);return function(t){for(var i=0;i<t[oe];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[oe];r++){var a=t[r][1];if(!(i&&e[X](i,a)>=0)){var o=this[y](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("echarts/coord/Axis",[Ce,"../util/number",Ae],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(Ae),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[be]={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[D](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[k](),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===l&&(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===l&&(r=r.slice(),e(r,o.count()));var s=n(t,r,a,i);return this.scale.scale(s)},getTicksCoords:function(){if(this.onBand){for(var t=this.getBands(),e=[],i=0;i<t[oe];i++)e.push(t[i][0]);return t[i-1]&&e.push(t[i-1][1]),e}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){if(this.onBand){for(var t,e=this.getBands(),i=[],n=0;n<e[oe];n++)t=e[n],i.push((t[0]+t[1])/2);return i}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this[k](),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[k](),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/coord/cartesian/Cartesian",[Ce,Ae],function(t){function e(t){return this._axes[t]}var i=t(Ae),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[be]={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[we](),i[Se](this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[oe];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("zrender/core/guid",[],function(){var t=2311;return function(){return"zr_"+t++}}),e("zrender/mixin/Transformable",[Ce,"../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[R]||(this[R]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},s=o[be];s[Me]=null,s.needLocalTransform=function(){return e(this.rotation)||e(this[R][0])||e(this[R][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},s.updateTransform=function(){var t=this.parent,e=t&&t[Me],n=this.needLocalTransform(),a=this[Me];return n||e?(a=a||i[de](),n?this.getLocalTransform(a):r(a),e&&(n?i.mul(a,t[Me],a):i.copy(a,t[Me])),this[Me]=a,this.invTransform=this.invTransform||i[de](),void i.invert(this.invTransform,a)):void(a&&r(a))},s.getLocalTransform=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this.rotation,o=this[R];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},s.setTransform=function(t){var e=this[Me];e&&t[Me](e[0],e[1],e[2],e[3],e[4],e[5])};var l=[];return s.decomposeTransform=function(){if(this[Me]){var t=this.parent,n=this[Me];t&&t[Me]&&(i.mul(l,t.invTransform,n),n=l);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],o=this[R],s=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),n[0]<0&&(r=-r),n[3]<0&&(a=-a),o[0]=n[4],o[1]=n[5],s[0]=r,s[1]=a,this.rotation=Math.atan2(-n[1]/a,n[0]/r)}},s.getGlobalScale=function(){var t=this[Me];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]},s.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n[b](i,i,r),i},s.transformCoordToGlobal=function(t,e){var i=[t,e],r=this[Me];return r&&n[b](i,i,r),i},o}),e("zrender/mixin/Animatable",[Ce,"../animation/Animator",d,"../core/log"],function(t){var e=t("../animation/Animator"),i=t(d),n=i.isString,r=i.isFunction,a=i[ue],o=t("../core/log"),s=function(){this.animators=[]};return s[be]={constructor:s,animate:function(t,n){var r,a=!1,s=this,l=this.__zr;if(t){var c=t.split("."),u=s;a="shape"===c[0];for(var h=0,d=c[oe];d>h;h++)u&&(u=u[c[h]]);u&&(r=u)}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[ne](i[X](f,p),1)}),f.push(p),l&&l[v].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[oe],n=0;i>n;n++)e[n].stop(t);return e[oe]=0,this},animateTo:function(t,e,i,a,o){function s(){c--,c||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.stopAnimation(),this._animateToShallow("",this,t,e,i,a,o);var l=this.animators.slice(),c=l[oe];c||o&&o();for(var u=0;u<l[oe];u++)l[u].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},l=0;for(var c in n)if(null!=e[c])a(n[c])&&!i.isArrayLike(n[c])?this._animateToShallow(t?t+"."+c:c,e[c],n[c],r,o):(s[c]=n[c],l++);else if(null!=n[c])if(t){var u={};u[t]={},u[t][c]=n[c],this.attr(u)}else this.attr(c,n[c]);return l>0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("echarts/util/component",[Ce,Ae,"./clazz"],function(t){var e=t(Ae),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),c=l.originalDeps=i(s),u=a(c,t);l.entryCount=u[oe],0===l.entryCount&&o.push(s),e.each(u,function(t){e[X](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[X](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[X](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){c[t].entryCount--,0===c[t].entryCount&&u.push(t)}function s(t){h[t]=!0,o(t)}if(t[oe]){var l=n(i),c=l.graph,u=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});u[oe];){var d=u.pop(),f=c[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("echarts/model/mixin/boxLayout",[Ce],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(pe),width:this.get("width"),height:this.get(fe)}}}}),e("echarts/coord/polar/AxisModel",[Ce,Ae,"../../model/Component","../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?c:"value")}var i=t(Ae),r=t("../../model/Component"),a=t("../axisModelCreator"),o=r[le]({type:"polarAxis",axis:null});i.merge(o[be],t("../axisModelCommonMixin"));var s={angle:{polarIndex:0,startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{polarIndex:0,splitNumber:5}};a("angle",o,e,s.angle),a(n,o,e,s[n])}),e("echarts/coord/cartesian/axisLabelInterval",[Ce,Ae,"../axisHelper"],function(t){var e=t(Ae),i=t("../axisHelper");return function(t){var n=t.model,r=n[ye]("axisLabel"),a=r.get("interval");return t.type!==c||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),n.getFormattedLabels(),r[ye](G)[V](),t.isHorizontal())}}),e("zrender/core/log",[Ce,"../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",[Ce,"./Clip","../tool/color",d],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[oe];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][oe],s=0;o>s;s++)for(var c=0;l>c;c++)r[s][c]=n(t[s][c],e[s][c],i)}function o(t,e,i){var n=t[oe],r=e[oe];if(n!==r){var a=n>r;if(a)t[oe]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:x.call(e[o]))}for(var s=t[0]&&t[0][oe],o=0;o<t[oe];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[oe];if(n!==e[oe])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][oe],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 u=t[oe];if(1==l)for(var h=0;u>h;h++)s[h]=c(t[h],e[h],i[h],n[h],r,a,o);else for(var d=t[0][oe],h=0;u>h;h++)for(var f=0;d>f;f++)s[h][f]=c(t[h][f],e[h][f],i[h][f],n[h][f],r,a,o)}function c(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 u(t){if(y(t)){var e=t[oe];if(y(t[0])){for(var i=[],n=0;e>n;n++)i.push(x.call(t[n]));return i}return x.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 f(t,e,i,u,d){var f=t._getter,v=t._setter,m="spline"===e,x=u[oe];if(x){var _,b=u[0].value,w=y(b),S=!1,M=!1,A=w&&y(b[0])?2:1;u.sort(function(t,e){return t.time-e.time}),_=u[x-1].time;for(var C=[],T=[],L=u[0].value,P=!0,z=0;x>z;z++){C.push(u[z].time/_);var k=u[z].value;if(w&&s(k,L,A)||!w&&k===L||(P=!1),L=k,typeof k==_e){var I=g.parse(k);I?(k=I,S=!0):M=!0}T.push(k)}if(!P){for(var D=T[x-1],z=0;x-1>z;z++)w?o(T[z],D,A):!isNaN(T[z])||isNaN(D)||M||S||(T[z]=D);w&&o(f(t._target,d),D,A);var O,R,B,E,N,V,F=0,G=0;if(S)var H=[0,0,0,0];var q=function(t,e){var i;if(G>e){for(O=Math.min(F+1,x-1),i=O;i>=0&&!(C[i]<=e);i--);i=Math.min(i,x-2)}else{for(i=F;x>i&&!(C[i]>e);i++);i=Math.min(i-1,x-2)}F=i,G=e;var o=C[i+1]-C[i];if(0!==o)if(R=(e-C[i])/o,m)if(E=T[i],B=T[0===i?i:i-1],N=T[i>x-2?x-1:i+1],V=T[i>x-3?x-1:i+2],w)l(B,E,N,V,R,R*R,R*R*R,f(t,d),A);else{var s;if(S)s=l(B,E,N,V,R,R*R,R*R*R,H,1),s=h(H);else{if(M)return r(E,N,R);s=c(B,E,N,V,R,R*R,R*R*R)}v(t,d,s)}else if(w)a(T[i],T[i+1],R,f(t,d),A);else{var s;if(S)a(T[i],T[i+1],R,H,1),s=h(H);else{if(M)return r(T[i],T[i+1],R);s=n(T[i],T[i+1],R)}v(t,d,s)}},W=new p({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:q,ondestroy:i});return e&&"spline"!==e&&(W.easing=e),W}}}var p=t("./Clip"),g=t("../tool/color"),m=t(d),y=m.isArrayLike,x=Array[be].slice,_=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 _[be]={when:function(t,e){var i=this._tracks;for(var n in e){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:u(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[oe]=0;for(var t=this._doneList,e=t[oe],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){var o=f(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[v]&&this[v].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[oe];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[v],n=0;n<e[oe];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[oe]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},_}),e("echarts/coord/axisModelCreator",[Ce,"./axisDefault",Ae,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(Ae),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[le]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,l=o?r.getLayoutParams(e):{},c=a.getTheme();i.merge(e,c.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/axisModelCommonMixin",[Ce,Ae,"./axisHelper"],function(t){function e(t){return r[ue](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===c&&r.map(this.get("data"),e)}function n(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(Ae),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("echarts/coord/cartesian/AxisModel",[Ce,"../../model/Component",Ae,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?c:"value")}var i=t("../../model/Component"),n=t(Ae),r=t("../axisModelCreator"),a=i[le]({type:"cartesian2dAxis",axis:null,init:function(){a.superApply(this,"init",arguments),this._resetRange()},mergeOption:function(){a.superApply(this,"mergeOption",arguments),this._resetRange()},restoreData:function(){a.superApply(this,"restoreData",arguments),this._resetRange()},setRange:function(t,e){this[z].rangeStart=t,this[z].rangeEnd=e},getMin:function(){var t=this[z];return null!=t.rangeStart?t.rangeStart:t.min},getMax:function(){var t=this[z];return null!=t.rangeEnd?t.rangeEnd:t.max},getNeedCrossZero:function(){var t=this[z];return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},_resetRange:function(){this[z].rangeStart=this[z].rangeEnd=null}});n.merge(a[be],t("../axisModelCommonMixin"));var o={gridIndex:0};return r("x",a,e,o),r("y",a,e,o),a}),e("zrender/animation/Clip",[Ce,"./easing"],function(t){function e(t){this._target=t[J],this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var i=t("./easing");return e[be]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+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==_e?i[n]:n,a=typeof r===Z?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("echarts/coord/axisDefault",[Ce,Ae],function(t){var e=t(Ae),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameTextStyle:{},nameGap:15,silent:!0,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{color:"#333",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,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},i),r=e[se]({boundaryGap:[0,0],splitNumber:5},i),a=e[se]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[se]({},r);
return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),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("echarts/chart/helper/createListFromArray",[Ce,"../../data/List","../../data/helper/completeDimensions",Ae,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[oe]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!f[j](v(i))}function r(t,e,n){if(t=t||[],!f[j](t))throw new Error("Invalid data.");var r=e.get(H),a=y[r],o=g.get(r),c=a&&a(t,e,n),p=c&&c[s];p||(p=o&&o[s]||["x","y"],p=d(p,t,p.concat(["value"])));var x,_=c&&c.categoryAxisModel,b=p[0].type===l?0:p[1].type===l?1:-1,w=new h(p,e),S=u(c,t),M=_&&i(t)?function(t,e,i,n){return n===b?i:m(v(t),p[n])}:function(t,e,i,n){var r=v(t),a=m(r&&r[n],p[n]);return b===n&&typeof a===_e&&(x=x||_.getCategories(),a=f[X](x,a),0>a&&!isNaN(a)&&(a=+a)),a};return w.initData(t,S,M),w}function a(t){return t!==c&&"time"!==t}function o(t){return t===c?l:"time"===t?"time":"float"}function u(t,e){var i=[];if(t&&t.categoryAxisModel){var n=t.categoryAxisModel.getCategories();if(n){var r=e[oe];if(f[j](e[0])&&e[0][oe]>1){i=[];for(var a=0;r>a;a++)i[a]=n[e[a][t.categoryIndex||0]]}else i=n.slice(0)}}return i}var h=t("../../data/List"),d=t("../../data/helper/completeDimensions"),f=t(Ae),p=t("../../util/model"),g=t("../../CoordinateSystem"),v=p.getDataItemValue,m=p.converDataValue,y={cartesian2d:function(t,e,i){var n=i[P]("xAxis",e.get("xAxisIndex")),r=i[P]("yAxis",e.get("yAxisIndex"));if(!n||!r)throw new Error("Axis option not found");var s=n.get("type"),l=r.get("type"),u=[{name:"x",type:o(s),stackable:a(s)},{name:"y",type:o(l),stackable:a(l)}],h=s===c;return d(u,t,["x","y","z"]),{dimensions:u,categoryIndex:h?0:1,categoryAxisModel:h?n:l===c?r:null}},polar:function(t,e,i){var r=e.get("polarIndex")||0,s=function(t){return t.get("polarIndex")===r},l=i.findComponents({mainType:"angleAxis",filter:s})[0],u=i.findComponents({mainType:"radiusAxis",filter:s})[0];if(!l||!u)throw new Error("Axis option not found");var h=u.get("type"),f=l.get("type"),p=[{name:"radius",type:o(h),stackable:a(h)},{name:"angle",type:o(f),stackable:a(f)}],g=f===c;return d(p,t,[n,"angle","value"]),{dimensions:p,categoryIndex:g?1:0,categoryAxisModel:g?l:h===c?u:null}},geo:function(t){return{dimensions:d([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return r}),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,c=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),c=(t*n-i*e)/(t-i);var u=l*a-o+c,h=u*u/(l*l+1);return s/2*s/2>=h}}}),e("zrender/contain/cubic",[Ce,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,c,u,h){if(0===c)return!1;var d=c;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||u>t+d&&u>n+d&&u>a+d&&u>s+d||t-d>u&&n-d>u&&a-d>u&&s-d>u)return!1;var f=e.cubicProjectPoint(t,i,n,r,a,o,s,l,u,h,null);return d/2>=f}}}),e("zrender/contain/quadratic",[Ce,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,c){if(0===s)return!1;var u=s;if(c>i+u&&c>r+u&&c>o+u||i-u>c&&r-u>c&&o-u>c||l>t+u&&l>n+u&&l>a+u||t-u>l&&n-u>l&&a-u>l)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,l,c,null);return u/2>=h}}}),e("zrender/contain/arc",[Ce,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,c,u){if(0===l)return!1;var h=l;c-=t,u-=n;var d=Math.sqrt(c*c+u*u);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(u,c);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/util",[Ce],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),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),l=s*(i-t)+t;return l>r?o:0}}),e("zrender/graphic/helper/roundRect",[Ce],function(){return{buildPath:function(t,e){var n,r,a,o,s=e.x,l=e.y,c=e.width,u=e[fe],h=e.r;0>c&&(s+=c,c=-c),0>u&&(l+=u,u=-u),"number"==typeof h?n=r=a=o=h:h instanceof Array?1===h[oe]?n=r=a=o=h[0]:2===h[oe]?(n=a=h[0],r=o=h[1]):3===h[oe]?(n=h[0],r=o=h[1],a=h[2]):(n=h[0],r=h[1],a=h[2],o=h[3]):n=r=a=o=0;var d;n+r>c&&(d=n+r,n*=c/d,r*=c/d),a+o>c&&(d=a+o,a*=c/d,o*=c/d),r+a>u&&(d=r+a,r*=u/d,a*=u/d),n+o>u&&(d=n+o,n*=u/d,o*=u/d),t[i](s+n,l),t.lineTo(s+c-r,l),0!==r&&t.quadraticCurveTo(s+c,l,s+c,l+r),t.lineTo(s+c,l+u-a),0!==a&&t.quadraticCurveTo(s+c,l+u,s+c-a,l+u),t.lineTo(s+o,l+u),0!==o&&t.quadraticCurveTo(s,l+u,s,l+u-o),t.lineTo(s,l+n),0!==n&&t.quadraticCurveTo(s,l,s+n,l)}}}),e("zrender/core/LRU",[Ce],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[be];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[ce]=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[be];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[ce](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[ce](e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("echarts/data/List",[Ce,"../model/Model","./DataDiffer",Ae,"../util/model"],function(t){function e(t){return f[j](t)||(t=[t]),t}function i(t,e){var i=t[s],n=new x(f.map(i,t.getDimensionInfo,t),t.hostModel);y(n,t);for(var r=n._storage={},a=t._storage,o=0;o<i[oe];o++){var l=i[o],c=a[l];r[l]=f[X](e,l)>=0?new c.constructor(a[l][oe]):a[l]}return n}var n=p,r=typeof window===p?global:window,a=typeof r.Float64Array===n?Array:r.Float64Array,o=typeof r.Int32Array===n?Array:r.Int32Array,c={"float":a,"int":o,ordinal:Array,number:Array,time:Array},u=t("../model/Model"),d=t("./DataDiffer"),f=t(Ae),g=t("../util/model"),v=f[ue],m=["stackedOn","_nameList","_idList","_rawData"],y=function(t,e){f.each(m.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},x=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[oe];r++){var a,o={};typeof t[r]===_e?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||"number"),n.push(a),i[a]=o}this[s]=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},_=x[be];_.type="list",_.getDimension=function(t){return isNaN(t)||(t=this[s][t]||t),t},_.getDimensionInfo=function(t){return f.clone(this._dimensionInfos[this.getDimension(t)])},_.initData=function(t,e,i){if(t=t||[],!f[j](t))throw new Error("Invalid data.");this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[s],o=t[oe],l=this._dimensionInfos,u=[],h={};e=e||[];for(var d=0;d<a[oe];d++){var p=l[a[d]],v=c[p.type];n[a[d]]=new v(o)}i=i||function(t,e,i,n){var r=g.getDataItemValue(t);return g.converDataValue(f[j](r)?r[n]:r,l[e])};for(var m=0;m<t[oe];m++){for(var y=t[m],x=0;x<a[oe];x++){var _=a[x],b=n[_];b[m]=i(y,_,m,x)}r.push(m)}for(var d=0;d<t[oe];d++){var w="";e[d]||(e[d]=t[d].name,w=t[d].id);var S=e[d]||"";!w&&S&&(h[S]=h[S]||0,w=S,h[S]>0&&(w+="__ec__"+h[S]),h[S]++),w&&(u[d]=w)}this._nameList=e,this._idList=u},_.count=function(){return this.indices[oe]},_.get=function(t,e,i){var n=this._storage,r=this.indices[e];if(null==r)return 0/0;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},_.getValues=function(t,e,i){var n=[];f[j](t)||(i=e,e=t,t=this[s]);for(var r=0,a=t[oe];a>r;r++)n.push(this.get(t[r],e,i));return n},_.hasValue=function(t){for(var e=this[s],i=this._dimensionInfos,n=0,r=e[oe];r>n;n++)if(i[e[n]].type!==l&&isNaN(this.get(e[n],t)))return!1;return!0},_.getDataExtent=function(t,e){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,c=this.count();c>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]},_.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},_[X]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[oe];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},_.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[oe];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},_.indexOfNearest=function(t,e,i){var n=this._storage,r=n[t];if(r){for(var a=Number.MAX_VALUE,o=-1,s=0,l=this.count();l>s;s++){var c=e-this.get(t,s,i),u=Math.abs(c);(a>u||u===a&&c>0)&&(a=u,o=s)}return o}return-1},_.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},_.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},_[T]=function(t){return this._nameList[this.indices[t]]||""},_.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},_.each=function(t,i,n,r){typeof t===Z&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=t[oe],s=this.indices;r=r||this;for(var l=0;l<s[oe];l++)if(0===o)i.call(r,l);else if(1===o)i.call(r,this.get(t[0],l,n),l);else{for(var c=0;o>c;c++)a[c]=this.get(t[c],l,n);a[c]=l,i.apply(r,a)}},_.filterSelf=function(t,i,n,r){typeof t===Z&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=[],s=t[oe],l=this.indices;r=r||this;for(var c=0;c<l[oe];c++){var u;if(1===s)u=i.call(r,this.get(t[0],c,n),c);else{for(var h=0;s>h;h++)o[h]=this.get(t[h],c,n);o[h]=c,u=i.apply(r,o)}u&&a.push(l[c])}return this.indices=a,this._extent={},this},_.mapArray=function(t,e,i,n){typeof t===Z&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},_.map=function(t,n,r,a){t=f.map(e(t),this.getDimension,this);var o=i(this,t),s=o.indices=this.indices,l=o._storage,c=[];return this.each(t,function(){var e=arguments[arguments[oe]-1],i=n&&n.apply(this,arguments);if(null!=i){"number"==typeof i&&(c[0]=i,i=c);for(var r=0;r<i[oe];r++){var a=t[r],o=l[a],u=s[e];o&&(o[u]=i[r])}}},r,a),o},_.downSample=function(t,e,n,r){for(var a=i(this,[t]),o=this._storage,s=a._storage,l=this.indices,c=a.indices=[],u=[],h=[],d=Math.floor(1/e),f=s[t],p=this.count(),g=0;g<o[t][oe];g++)s[t][g]=o[t][g];for(var g=0;p>g;g+=d){d>p-g&&(d=p-g,u[oe]=d);for(var v=0;d>v;v++){var m=l[g+v];u[v]=f[m],h[v]=m}var y=n(u),m=h[r(u,y)||0];f[m]=y,c.push(m)}return a},_[h]=function(t){var e=this.hostModel;return t=this.indices[t],new u(this._rawData[t],e,e&&e[L])},_.diff=function(t){var e=this._idList,i=t&&t._idList;return new d(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},_.getVisual=function(t){var e=this._visual;return e&&e[t]},_.setVisual=function(t,e){if(v(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},_.setLayout=function(t,e){if(v(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},_.getLayout=function(t){return this._layout[t]},_.getItemLayout=function(t){return this._itemLayouts[t]},_.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?f[le](this._itemLayouts[t]||{},e):e},_.clearItemLayouts=function(){this._itemLayouts[oe]=0},_[C]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},_.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,v(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i};var b=function(t){t[$]=this[$],t[K]=this[K],t.dataType=this.dataType};return _.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[K]=t,e.dataType=this.dataType,e[$]=i&&i[$],"group"===e.type&&e.traverse(b,e)),this._graphicEls[t]=e},_[S]=function(t){return this._graphicEls[t]},_.eachItemGraphicEl=function(t,e){f.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},_.cloneShallow=function(){var t=f.map(this[s],this.getDimensionInfo,this),e=new x(t,this.hostModel);return e._storage=this._storage,y(e,this),e.indices=this.indices.slice(),e},_.wrapMethod=function(t,e){var i=this[t];typeof i===Z&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(f.slice(arguments)))})},_.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],_.CHANGABLE_METHODS=["filterSelf"],x}),e("echarts/data/helper/completeDimensions",[Ce,Ae],function(t){function e(t,e,a,o){if(!e)return t;var s=n(e[0]),l=r[j](s)&&s[oe]||1;a=a||[],o=o||"extra";for(var c=0;l>c;c++)if(!t[c]){var u=a[c]||o+(c-a[oe]);t[c]=i(e,c)?{type:"ordinal",name:u}:u}return t}function i(t,e){for(var i=0,a=t[oe];a>i;i++){var o=n(t[i]);if(!r[j](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r.isString(o)&&"-"!==o)return!0}return!1}function n(t){return r[j](t)?t:r[ue](t)?t.value:t}var r=t(Ae);return e}),e("zrender/graphic/helper/poly",[Ce,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),n=t("./smoothBezier");return{buildPath:function(t,r,a){var o=r.points,s=r.smooth;if(o&&o[oe]>=2){if(s&&"spline"!==s){var l=n(o,s,a,r.smoothConstraint);t[i](o[0][0],o[0][1]);for(var c=o[oe],u=0;(a?c:c-1)>u;u++){var h=l[2*u],d=l[2*u+1],f=o[(u+1)%c];t.bezierCurveTo(h[0],h[1],d[0],d[1],f[0],f[1])}}else{"spline"===s&&(o=e(o,a)),t[i](o[0][0],o[0][1]);for(var u=1,p=o[oe];p>u;u++)t.lineTo(o[u][0],o[u][1])}a&&t.closePath()}}}}),e("zrender/Handler",[Ce,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./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(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.findHover(e.zrX,e.zrY,null));if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t._dispatchProxy(r[J],a,r.event)}}function n(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=v.concat(m),n=0;n<i[oe];n++){var r=i[n];t._handlers[r]=h.bind(w[r],t)}for(var n=0;n<g[oe];n++){var r=g[n];t._handlers[r]=e(w[r],t)}}function r(t,e,i){if(t[t.rectHover?"rectContain":D](e,i)){for(var n=t;n;){if(n.silent||n.clipPath&&!n.clipPath[D](e,i))return!1;n=n.parent}return!0}return!1}function a(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function o(){return!1}function s(){return c.touchEventsSupported}function l(t){return"mousewheel"===t&&c.browser.firefox?"DOMMouseScroll":t}var c=t("./core/env"),u=t("./core/event"),h=t("./core/util"),d=t("./mixin/Draggable"),f=t("./core/GestureMgr"),p=t("./mixin/Eventful"),g=["click","dblclick","mousewheel",te];!o()&&g.push("mouseup","mousedown","mousemove");var v=["touchstart","touchend","touchmove"],m=["pointerdown","pointerup","pointermove"],y=300,x=u.addEventListener,_=u.removeEventListener,b=u.normalizeEvent,w={mousemove:function(t){t=b(this.root,t);var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered;this._hovered=n,this.root.style.cursor=n?n.cursor:this._defaultCursorStyle,r&&n!==r&&r.__zr&&this._dispatchProxy(r,te,t),this._dispatchProxy(n,"mousemove",t),n&&n!==r&&this._dispatchProxy(n,ee,t)},mouseout:function(t){t=b(this.root,t);var e=t.toElement||t.relatedTarget;if(e!=this.root)for(;e&&9!=e.nodeType;){if(e===this.root)return;e=e.parentNode}this._dispatchProxy(this._hovered,te,t),this[ae]("globalout",{event:t})},touchstart:function(t){t=b(this.root,t),this._lastTouchMoment=new Date,i(this,t,"start"),w.mousemove.call(this,t),w.mousedown.call(this,t),a(this)},touchmove:function(t){t=b(this.root,t),i(this,t,"change"),w.mousemove.call(this,t),a(this)},touchend:function(t){t=b(this.root,t),i(this,t,"end"),w.mouseup.call(this,t),+new Date-this._lastTouchMoment<y&&w.click.call(this,t),a(this)}};h.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){w[t]=function(e){e=b(this.root,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._dispatchProxy(i,t,e)}});var S=function(t,e,i){function r(e,i){h.each(e,function(e){x(t,l(e),i._handlers[e])},i)}p.call(this),this.root=t,this.storage=e,this.painter=i,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new f,this._handlers=[],this._touching=!1,this._touchTimer,n(this),o()?r(m,this):s()&&r(v,this),r(g,this),d.call(this)};return S[be]={constructor:S,resize:function(){this._hovered=null},dispatch:function(t,e){var i=this._handlers[t];i&&i.call(this,e)},dispose:function(){for(var t=this.root,e=g.concat(v),i=0;i<e[oe];i++){var n=e[i];_(t,l(n),this._handlers[n])}this.root=this.storage=this.painter=null},setDefaultCursorStyle:function(t){this._defaultCursorStyle=t},_dispatchProxy: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[ae](i,a),o=o.parent,!a.cancelBubble););a.cancelBubble||(this[ae](i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==Z&&t[r].call(t,a),t[ae]&&t[ae](i,a)}))},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),a=n[oe]-1;a>=0;a--)if(!n[a].silent&&n[a]!==i&&!n[a][ge]&&r(n[a],t,e))return n[a]}},h.mixin(S,p),h.mixin(S,d),S}),e("zrender/Storage",[Ce,"./core/util","./container/Group"],function(t){function e(t,e){return t[Y]===e[Y]?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t[Y]-e[Y]}var i=t("./core/util"),n=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[be]={constructor:r,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,n=this._displayList,r=0,a=i[oe];a>r;r++)this._updateAndAddDisplayable(i[r],null,t);n[oe]=this._displayListLen;for(var r=0,a=n[oe];a>r;r++)n[r].__renderidx=r;n.sort(e)},_updateAndAddDisplayable:function(t,e,i){if(!t[ge]||i){t.beforeUpdate(),t[he](),t.afterUpdate();var n=t.clipPath;if(n&&(n.parent=t,n.updateTransform(),e?(e=e.slice(),e.push(n)):e=[n]),"group"==t.type){for(var r=t._children,a=0;a<r[oe];a++){var o=r[a];o.__dirty=t.__dirty||o.__dirty,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 n&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[oe];e++){var r=this._roots[e];r instanceof n&&r.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[oe];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==_e?this._elements[t]:t;var s=i[X](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[ne](s,1),o instanceof n&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof n&&(t.__storage=this),t.dirty(),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 n&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},r}),e("zrender/animation/Animation",[Ce,d,"../core/event","./Animator"],function(t){var e=t(d),i=t("../core/event").Dispatcher,n=typeof window!==p&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,i.call(this)};return a[be]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[v]=this;for(var e=t.getClips(),i=0;i<e[oe];i++)this.addClip(e[i])},removeClip:function(t){var i=e[X](this._clips,t);i>=0&&this._clips[ne](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[oe];i++)this.removeClip(e[i]);t[v]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[oe],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[oe];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[ae]("frame",e),this.stage[he]&&this.stage[he]()},start:function(){function t(){e._running&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!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/Painter",[Ce,"./config","./core/util","./core/log","./core/BoundingRect","./Layer","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t[xe]!==Z||typeof t.refresh!==Z?!1:!0:!1}function n(t){t.__unusedCount++}function r(t){t.__dirty=!1,1==t.__unusedCount&&t.clear()}function a(t,e,i){return p.copy(t[N]()),t[Me]&&p[b](t[Me]),g.width=e,g[fe]=i,!p.intersect(g)}function o(t,e){if(!t||!e||t[oe]!==e[oe])return!0;for(var i=0;i<t[oe];i++)if(t[i]!==e[i])return!0}function s(t,e){for(var i=0;i<t[oe];i++){var n,r=t[i];r[Me]&&(n=r[Me],e[Me](n[0],n[1],n[2],n[3],n[4],n[5]));var a=r.path;a.beginPath(e),r.buildPath(a,r.shape),e.clip(),r[Me]&&(n=r.invTransform,e[Me](n[0],n[1],n[2],n[3],n[4],n[5]))}}var l=t("./config"),c=t("./core/util"),u=t("./core/log"),h=t("./core/BoundingRect"),d=t("./Layer"),p=new h(0,0,0,0),g=new h(0,0,0,0),v=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||l.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;if(r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e,n){var a=t.width,o=t[fe];this._width=a,this._height=o;var s=new d(t,this,1);s.initContext(),this._layers={0:s},this._zlevelList=[0]}else{var a=this._getWidth(),o=this._getHeight();this._width=a,this._height=o;var c=document[f]("div");this._domRoot=c;var u=c.style;u[R]="relative",u.overflow="hidden",u.width=this._width+"px",u[fe]=this._height+"px",t.appendChild(c),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};return v[be]={constructor:v,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[oe];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t);var i,l,c,h=this._width,d=this._height;this.eachBuildinLayer(n);for(var f=null,p=0,g=t[oe];g>p;p++){var v=t[p],m=this._singleCanvas?0:v[Y];if(l!==m&&(l=m,i=this.getLayer(l),i.isBuildin||u("ZLevel "+l+" has been used by unkown layer "+i.id),c=i.ctx,i.__unusedCount=0,(i.__dirty||e)&&i.clear()),(i.__dirty||e)&&!v.invisible&&0!==v.style[O]&&v.scale[0]&&v.scale[1]&&(!v.culling||!a(v,h,d))){var y=v.__clipPaths;o(y,f)&&(f&&c.restore(),y&&(c.save(),s(y,c)),f=y),v.beforeBrush&&v.beforeBrush(c),v.brush(c,!1),v.afterBrush&&v.afterBrush(c)}v.__dirty=!1}f&&c.restore(),this.eachBuildinLayer(r)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new d("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&c.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[oe],o=null,s=-1,l=this._domRoot;if(n[t])return void u("ZLevel "+t+" has been used already");if(!i(e))return void u("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[ne](s+1,0,t),o){var c=o.dom;c.nextSibling?l.insertBefore(e.dom,c.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[oe];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[oe];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[oe];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.eachBuildinLayer(function(t,e){i[e]=t.elCount,t.elCount=0});for(var n=0,r=t[oe];r>n;n++){var a=t[n],o=this._singleCanvas?0:a[Y],s=e[o];if(s){if(s.elCount++,s.__dirty)continue;s.__dirty=a.__dirty}}this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t.__dirty=!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]?c.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&c.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[ne](c[X](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[fe]=e+"px";for(var n in this._layers)this._layers[n][xe](t,e);this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new d("image",this,t.pixelRatio||this.dpr);e.initContext();var i=e.ctx;e.clearColor=t.backgroundColor,e.clear();for(var n=this.storage.getDisplayList(!0),r=0;r<n[oe];r++){var a=n[r];a.invisible||(a.beforeBrush&&a.beforeBrush(i),a.brush(i,!1),a.afterBrush&&a.afterBrush(i))}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(i.width)||e(t.style.width))-(e(i.paddingLeft)||0)-(e(i.paddingRight)||0)|0},_getHeight:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientHeight||e(i[fe])||e(t.style[fe]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var o=document[f]("canvas"),s=o.getContext("2d");o.width=n*a,o[fe]=r*a,s.clearRect(0,0,n*a,r*a);var l={position:i[R],rotation:i.rotation,scale:i.scale};i[R]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(s);var c=t("./graphic/Image"),u=new c({id:e,style:{x:0,y:0,image:o}});return null!=l[R]&&(u[R]=i[R]=l[R]),null!=l.rotation&&(u.rotation=i.rotation=l.rotation),null!=l.scale&&(u.scale=i.scale=l.scale),u},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},v}),e("echarts/data/DataDiffer",[Ce],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){for(var n=0;n<t[oe];n++){var r=i(t[n]),a=e[r];null==a?e[r]=n:(a[oe]||(e[r]=a=[a]),a.push(n))}}return e[be]={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={};for(i(e,o,r),i(n,s,a),t=0;t<e[oe];t++){var l=r(e[t]),c=s[l];if(null!=c){var u=c[oe];u?(1===u&&(s[l]=null),c=c.unshift()):s[l]=null,this._update&&this._update(c,t)}else this._remove&&this._remove(t)}for(var l in s)if(s.hasOwnProperty(l)){var c=s[l];if(null==c)continue;if(c[oe])for(var t=0,u=c[oe];u>t;t++)this._add&&this._add(c[t]);else this._add&&this._add(c)}}},e}),e("zrender/graphic/helper/smoothSpline",[Ce,"../../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[oe],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 c,u,h,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,g=t[f%r];n?(c=t[(f-1+r)%r],u=t[(f+1)%r],h=t[(f+2)%r]):(c=t[0===f?f:f-1],u=t[f>r-2?r-1:f+1],h=t[f>r-3?r-1:f+2]);var v=p*p,m=p*v;a.push([e(c[0],g[0],u[0],h[0],p,v,m),e(c[1],g[1],u[1],h[1],p,v,m)])}return a}}),e("zrender/graphic/helper/smoothBezier",[Ce,"../../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,c){var u,h,d,f,p=[],g=[],v=[],m=[];if(c){d=[1/0,1/0],f=[-1/0,-1/0];
for(var y=0,x=t[oe];x>y;y++)i(d,d,t[y]),n(f,f,t[y]);i(d,d,c[0]),n(f,f,c[1])}for(var y=0,x=t[oe];x>y;y++){var _=t[y];if(l)u=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}u=t[y-1],h=t[y+1]}e.sub(g,h,u),r(g,g,s);var b=a(_,u),w=a(_,h),S=b+w;0!==S&&(b/=S,w/=S),r(v,g,-b),r(m,g,w);var M=o([],_,v),A=o([],_,m);c&&(n(M,M,d),i(M,M,f),n(A,A,d),i(A,A,f)),p.push(M),p.push(A)}return l&&p.push(p.shift()),p}}),e("zrender/core/event",[Ce,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,i){if(i=i||window.event,null!=i.zrX)return i;var n=i.type,r=n&&n[X]("touch")>=0;if(r){var a="touchend"!=n?i.targetTouches[0]:i.changedTouches[0];if(a){var o=e(t);i.zrX=a.clientX-o.left,i.zrY=a.clientY-o.top}}else{var s=e(t);i.zrX=i.clientX-s.left,i.zrY=i.clientY-s.top,i.zrDelta=i.wheelDelta?i.wheelDelta/120:-(i.detail||0)/3}return i}function n(t,e,i){o?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function r(t,e,i){o?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var a=t("../mixin/Eventful"),o=typeof window!==p&&!!window.addEventListener,s=o?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{normalizeEvent:i,addEventListener:n,removeEventListener:r,stop:s,Dispatcher:a}}),e("zrender/mixin/Draggable",[Ce],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[be]={constructor:t,_dragStart:function(t){var e=t[J];e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this._dispatchProxy(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._dispatchProxy(e,"drag",t.event);var o=this.findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this._dispatchProxy(s,"dragleave",t.event),o&&o!==s&&this._dispatchProxy(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this._dispatchProxy(e,"dragend",t.event),this._dropTarget&&this._dispatchProxy(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("zrender/core/GestureMgr",[Ce],function(){function t(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function e(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var i=function(){this._track=[]};i[be]={constructor:i,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[oe]=0,this},_doTrack:function(t,e){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},r=0,a=i[oe];a>r;r++){var o=i[r];n.points.push([o.clientX,o.clientY]),n.touches.push(o)}this._track.push(n)}},_recognize:function(t){for(var e in n)if(n.hasOwnProperty(e)){var i=n[e](this._track,t);if(i)return i}}};var n={pinch:function(i,n){var r=i[oe];if(r){var a=(i[r-1]||{}).points,o=(i[r-2]||{}).points||a;if(o&&o[oe]>1&&a&&a[oe]>1){var s=t(a)/t(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=e(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:i[0][J],event:n}}}}};return i}),e("echarts/chart/bar/barItemStyle",[Ce,"../../model/mixin/makeStyleMapper"],function(t){return{getBarItemStyle:t("../../model/mixin/makeStyleMapper")([["fill","color"],[x,"borderColor"],[_,"borderWidth"],[x,"barBorderColor"],[_,"barBorderWidth"],[O],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("echarts/component/axis/AxisView",[Ce,Ae,a,"./AxisBuilder",r],function(t){function e(t,e){function i(t){var e=n.getAxis(t);return e.toGlobalCoord(e.dataToCoord(0))}var n=t[H],r=e.axis,a={},o=r[R],s=r.onZero?"onZero":o,l=r.dim,c=n.getRect(),u=[c.x,c.x+c.width,c.y,c.y+c[fe]],h={x:{top:u[2],bottom:u[3]},y:{left:u[0],right:u[1]}};h.x.onZero=Math.max(Math.min(i("y"),h.x[pe]),h.x.top),h.y.onZero=Math.max(Math.min(i("x"),h.y.right),h.y.left),a[R]=["y"===l?h.y[s]:u[0],"x"===l?h.x[s]:u[3]];var d={x:0,y:1};a.rotation=Math.PI/2*d[l];var f={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=f[o],r.onZero&&(a.labelOffset=h[l][o]-h[l].onZero),e[ye]("axisTick").get(m)&&(a.tickDirection=-a.tickDirection),e[ye]("axisLabel").get(m)&&(a.labelDirection=-a.labelDirection);var p=e[ye]("axisLabel").get("rotate");return a.labelRotation="top"===s?-p:p,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(Ae),n=t(a),o=t("./AxisBuilder"),s=o.ifIgnoreOnTick,l=o.getInterval,c=["axisLine","axisLabel","axisTick","axisName"],u=["splitLine","splitArea"],h=t(r).extendComponentView({type:"axis",render:function(t,n){if(this.group[q](),t.get("show")){var r=n[P]("grid",t.get("gridIndex")),a=e(r,t),s=new o(t,a);i.each(c,s.add,s),this.group.add(s.getGroup()),i.each(u,function(e){t.get(e+".show")&&this["_"+e](t,r,a.labelInterval)},this)}},_splitLine:function(t,e,r){var a=t.axis,o=t[ye]("splitLine"),c=o[ye]("lineStyle"),u=c.get("width"),h=c.get("color"),d=l(o,r);h=i[j](h)?h:[h];for(var f=e[H].getRect(),p=a.isHorizontal(),g=[],v=0,m=a.getTicksCoords(),y=[],x=[],_=0;_<m[oe];_++)if(!s(a,_,d)){var b=a.toGlobalCoord(m[_]);p?(y[0]=b,y[1]=f.y,x[0]=b,x[1]=f.y+f[fe]):(y[0]=f.x,y[1]=b,x[0]=f.x+f.width,x[1]=b);var w=v++%h[oe];g[w]=g[w]||[],g[w].push(new n.Line(n.subPixelOptimizeLine({shape:{x1:y[0],y1:y[1],x2:x[0],y2:x[1]},style:{lineWidth:u},silent:!0})))}for(var S=c.getLineStyle(),_=0;_<g[oe];_++)this.group.add(n.mergePath(g[_],{style:i[se]({stroke:h[_%h[oe]]},S),silent:!0}))},_splitArea:function(t,e,r){var a=t.axis,o=t[ye]("splitArea"),c=o[ye]("areaStyle"),u=c.get("color"),h=e[H].getRect(),d=a.getTicksCoords(),f=a.toGlobalCoord(d[0]),p=a.toGlobalCoord(d[0]),g=[],v=0,m=l(o,r);u=i[j](u)?u:[u];for(var y=1;y<d[oe];y++)if(!s(a,y,m)){var x,_,b,w,S=a.toGlobalCoord(d[y]);a.isHorizontal()?(x=f,_=h.y,b=S-x,w=h[fe]):(x=h.x,_=p,b=h.width,w=S-_);var M=v++%u[oe];g[M]=g[M]||[],g[M].push(new n.Rect({shape:{x:x,y:_,width:b,height:w},silent:!0})),f=x+b,p=_+w}for(var A=c.getAreaStyle(),y=0;y<g[oe];y++)this.group.add(n.mergePath(g[y],{style:i[se]({fill:u[y%u[oe]]},A),silent:!0}))}});h[le]({type:"xAxis"}),h[le]({type:"yAxis"})}),e("zrender/Layer",[Ce,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[f](e),a=i[me](),o=i[ve](),s=r.style;return s[R]="absolute",s.left=0,s.top=0,s.width=a+"px",s[fe]=o+"px",r.width=a*n,r[fe]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===_e?s=i(t,"canvas",a,o):n[ue](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)"),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 a[be]={constructor:a,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[fe]=e+"px",n.width=t*i,n[fe]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[fe]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[fe],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/l,r/l)),i.clearRect(0,0,n/l,r/l),a&&(i.save(),i.fillStyle=this.clearColor,i.fillRect(0,0,n/l,r/l),i.restore()),o){var c=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(c,0,0,n/l,r/l),i.restore()}}},a}),e("echarts/component/axis/AxisBuilder",[Ce,Ae,a,"../../model/Model","../../util/number"],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=h(e-t.rotation);return d(a)?(r=i>0?"top":pe,n=B):d(a-f)?(r=i>0?pe:"top",n=B):(r=E,n=a>0&&f>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,verticalAlign:r}}function n(t,e,i){var n,r,a=h(-t.rotation),o=i[0]>i[1],s="start"===e&&!o||"start"!==e&&o;return d(a-f/2)?(r=s?pe:"top",n=B):d(a-1.5*f)?(r=s?"top":pe,n=B):(r=E,n=1.5*f>a&&a>f/2?s?"left":"right":s?"right":"left"),{rotation:a,textAlign:n,verticalAlign:r}}var r=t(Ae),o=t(a),s=t("../../model/Model"),u=t("../../util/number"),h=u.remRadian,d=u.isRadianAroundZero,f=Math.PI,p=function(t,e){this.opt=e,this.axisModel=t,r[se](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new o.Group({position:e[R].slice(),rotation:e.rotation})};p[be]={constructor:p,hasBuilder:function(t){return!!g[t]},add:function(t){g[t].call(this)},getGroup:function(){return this.group}};var g={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[k]();this.group.add(new o.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:r[le]({lineCap:"round"},e[ye]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t.axisLineSilent,z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,i=t[ye]("axisTick"),n=this.opt,r=i[ye]("lineStyle"),a=i.get(oe),s=m(i,n.labelInterval),l=e.getTicksCoords(),c=[],u=0;u<l[oe];u++)if(!v(e,u,s)){var h=l[u];c.push(new o.Line(o.subPixelOptimizeLine({shape:{x1:h,y1:0,x2:h,y2:n.tickDirection*a},style:{lineWidth:r.get("width")},silent:!0})))}this.group.add(o.mergePath(c,{style:r.getLineStyle(),z2:2,silent:!0}))}},axisLabel:function(){function t(t,e){var i=t&&t[N]().clone(),n=e&&e[N]().clone();return i&&n?(i[b](t.getLocalTransform()),n[b](e.getLocalTransform()),i.intersect(n)):void 0}var n=this.axisModel;if(n.get("axisLabel.show")){var r=this.opt,a=n.axis,l=n[ye]("axisLabel"),u=l[ye](G),h=l.get("margin"),d=a.scale.getTicks(),p=n.getFormattedLabels(),g=r.labelRotation;null==g&&(g=l.get("rotate")||0),g=g*f/180;for(var m=i(r,g,r.labelDirection),y=n.get("data"),x=[],_=n.get("silent"),w=0;w<d[oe];w++)if(!v(a,w,r.labelInterval)){var S=u;y&&y[w]&&y[w][G]&&(S=new s(y[w][G],u,n[L]));var M=S.getTextColor(),A=a.dataToCoord(d[w]),C=[A,r.labelOffset+r.labelDirection*h],T=a.scale[I](d[w]),P=new o.Text({style:{text:p[w],textAlign:S.get("align",!0)||m[F],textVerticalAlign:S.get("baseline",!0)||m.verticalAlign,textFont:S[V](),fill:typeof M===Z?M(T):M},position:C,rotation:m.rotation,silent:_,z2:10});P.eventData=e(n),P.eventData.targetType="axisLabel",P.eventData.value=T,x.push(P),this.group.add(P)}if(a.type!==c){if(n.getMin?n.getMin():n.get("min")){var z=x[0],k=x[1];t(z,k)&&(z[ge]=!0)}if(n.getMax?n.getMax():n.get("max")){var D=x[x[oe]-1],O=x[x[oe]-2];t(O,D)&&(D[ge]=!0)}}}},axisName:function(){var t=this.opt,r=this.axisModel,a=this.opt.axisName;if(null==a&&(a=r.get("name")),a){var s,l=r.get("nameLocation"),c=t.nameDirection,u=r[ye]("nameTextStyle"),h=r.get("nameGap")||0,d=this.axisModel.axis[k](),f=d[0]>d[1]?-1:1,p=["start"===l?d[0]-f*h:"end"===l?d[1]+f*h:(d[0]+d[1])/2,l===E?t.labelOffset+c*h:0];s=l===E?i(t,t.rotation,c):n(t,l,d);var g=new o.Text({style:{text:a,textFont:u[V](),fill:u.getTextColor()||r.get("axisLine.lineStyle.color"),textAlign:s[F],textVerticalAlign:s.verticalAlign},position:p,rotation:s.rotation,silent:r.get("silent"),z2:1});g.eventData=e(r),g.eventData.targetType="axisName",g.eventData.name=a,this.group.add(g)}}},v=p.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===l&&(typeof i===Z?(n=r.getTicks()[e],!i(n,r[I](n))):e%(i+1))},m=p.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return p}),e("echarts/preprocessor/helper/compatStyle",[Ce,Ae],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e[M],a=e[A];r&&r[n]&&(t[n]=t[n]||{},t[n][M]?i.merge(t[n][M],r[n]):t[n][M]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n][A]?i.merge(t[n][A],a[n]):t[n][A]=a[n],a[n]=null)})}var i=t(Ae),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[oe];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[oe];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[oe];r++)i[j](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}}),e("echarts/component/helper/listComponent",[Ce,"../../util/layout","../../util/format",a],function(t){function e(t,e,n){i.positionGroup(t,e.getBoxLayoutParams(),{width:n[me](),height:n[ve]()},e.get("padding"))}var i=t("../../util/layout"),n=t("../../util/format"),r=t(a);return{layout:function(t,n,r){var a=i.getLayoutRect(n.getBoxLayoutParams(),{width:r[me](),height:r[ve]()},n.get("padding"));i.box(n.get("orient"),t,n.get("itemGap"),a.width,a[fe]),e(t,n,r)},addBackground:function(t,e){var i=n.normalizeCssArray(e.get("padding")),a=t[N](),o=e.getItemStyle(["color",O]);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[fe]+i[0]+i[2]},style:o,silent:!0,z2:-1});r.subPixelOptimizeRect(s),t.add(s)}}}),e("echarts/chart/helper/SymbolDraw",[Ce,a,"./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[C](e,"symbol"))}var n=t(a),r=t("./Symbol"),o=e[be];return o.updateData=function(t,e){var r=this.group,a=t.hostModel,o=this._data,s=this._symbolCtor;t.diff(o).add(function(n){var a=t.getItemLayout(n);if(i(t,n,e)){var o=new s(t,n);o.attr(R,a),t.setItemGraphicEl(n,o),r.add(o)}})[he](function(l,c){var u=o[S](c),h=t.getItemLayout(l);return i(t,l,e)?(u?(u.updateData(t,l),n[g](u,{position:h},a)):(u=new s(t,l),u.attr(R,h)),r.add(u),void t.setItemGraphicEl(l,u)):void r[ce](u)})[ce](function(t){var e=o[S](t);e&&e.fadeOut(function(){r[ce](e)})}).execute(),this._data=t},o.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){e.attr(R,t.getItemLayout(i))})},o[ce]=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e[ce](t)})}):e[q]())},e}),e("echarts/component/axis/AngleAxisView",[Ce,Ae,a,"../../model/Model",r],function(t){function e(t,e,i,n){var r=t.coordToPoint([e,n]),a=t.coordToPoint([i,n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}var i=t(Ae),n=t(a),o=t("../../model/Model"),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];t(r).extendComponentView({type:"angleAxis",render:function(t,e){if(this.group[q](),t.get("show")){var n=e[P]("polar",t.get("polarIndex")),r=t.axis,a=n[H],o=a.getRadiusAxis()[k](),l=r.getTicksCoords();r.type!==c&&l.pop(),i.each(s,function(e){t.get(e+".show")&&this["_"+e](t,a,l,o)},this)}},_axisLine:function(t,e,i,r){var a=t[ye]("axisLine.lineStyle"),o=new n.Circle({shape:{cx:e.cx,cy:e.cy,r:r[1]},style:a.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,r,a,o){var s=t[ye]("axisTick"),l=(s.get(m)?-1:1)*s.get(oe),c=i.map(a,function(t){return new n.Line({shape:e(r,o[1],o[1]+l,t)})});this.group.add(n.mergePath(c,{style:s[ye]("lineStyle").getLineStyle()}))},_axisLabel:function(t,e,i,r){for(var a=t.axis,s=t.get("data"),l=t[ye]("axisLabel"),c=l[ye](G),u=t.getFormattedLabels(),h=l.get("margin"),d=a.getLabelsCoords(),f=0;f<i[oe];f++){var p=r[1],g=e.coordToPoint([p+h,d[f]]),v=e.cx,m=e.cy,y=Math.abs(g[0]-v)/p<.3?B:g[0]>v?"left":"right",x=Math.abs(g[1]-m)/p<.3?E:g[1]>m?"top":pe,_=c;s&&s[f]&&s[f][G]&&(_=new o(s[f][G],c)),this.group.add(new n.Text({style:{x:g[0],y:g[1],fill:_.getTextColor(),text:u[f],textAlign:y,textVerticalAlign:x,textFont:_[V]()},silent:!0}))}},_splitLine:function(t,r,a,o){var s=t[ye]("splitLine"),l=s[ye]("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=0;d<a[oe];d++){var f=u++%c[oe];h[f]=h[f]||[],h[f].push(new n.Line({shape:e(r,o[0],o[1],a[d])}))}for(var d=0;d<h[oe];d++)this.group.add(n.mergePath(h[d],{style:i[se]({stroke:c[d%c[oe]]},l.getLineStyle()),silent:!0,z:t.get("z")}))},_splitArea:function(t,e,r,a){var o=t[ye]("splitArea"),s=o[ye]("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=Math.PI/180,d=-r[0]*h,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),g=t.get("clockwise"),v=1;v<r[oe];v++){var m=c++%l[oe];u[m]=u[m]||[],u[m].push(new n[w]({shape:{cx:e.cx,cy:e.cy,r0:f,r:p,startAngle:d,endAngle:-r[v]*h,clockwise:g},silent:!0})),d=-r[v]*h}for(var v=0;v<u[oe];v++)this.group.add(n.mergePath(u[v],{style:i[se]({fill:l[v%l[oe]]},s.getAreaStyle()),silent:!0}))}})}),e("echarts/component/tooltip/TooltipContent",[Ce,Ae,"zrender/tool/color","zrender/core/event","../../util/format","zrender/core/env"],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 s.map(g,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t[V]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),h(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function r(t){t=t;var r=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t[ye](G),c=t.get("padding");return a&&r.push(e(a)),o&&(p.canvasSupported?r.push("background-Color:"+o):(r.push("background-Color:#"+l.toHex(o)),r.push("filter:alpha(opacity=70)"))),h(["width","color",n],function(e){var i="border-"+e,n=d(i),a=t.get(n);null!=a&&r.push(i+":"+a+("color"===e?"":"px"))}),r.push(i(s)),null!=c&&r.push("padding:"+u.normalizeCssArray(c).join("px ")+"px"),r.join(";")+";"}function a(t,e){var i=document[f]("div"),n=e.getZr();this.el=i,this._x=e[me]()/2,this._y=e[ve]()/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(!r.enterable){var i=n.handler;c.normalizeEvent(t,e),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},o(i,t)}function o(t,e){function i(t){n(t[J])&&t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i.parentNode}}c.addEventListener(e,"touchstart",i),c.addEventListener(e,"touchmove",i),c.addEventListener(e,"touchend",i)}var s=t(Ae),l=t("zrender/tool/color"),c=t("zrender/core/event"),u=t("../../util/format"),h=s.each,d=u.toCamelCase,p=t("zrender/core/env"),g=["","-webkit-","-moz-","-o-"],v="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";return a[be]={constructor:a,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[R]&&"absolute"!==e[R]&&(i[R]="relative")},show:function(t){clearTimeout(this._hideTimeout),this.el.style.cssText=v+r(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),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(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},a}),e("echarts/component/helper/selectableMixin",[Ce,Ae],function(t){var e=t(Ae);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/line/poly",[Ce,"zrender/graphic/Path","zrender/core/vector"],function(t){function e(t){return isNaN(t[0])||isNaN(t[1])}function n(t,n,r,a,p,g,v,m,y,x,_){for(var b=0,w=r,S=0;a>S;S++){var M=n[w];if(w>=p||0>w)break;if(e(M)){if(_){w+=g;continue}break}if(w===r)t[g>0?i:"lineTo"](M[0],M[1]),u(d,M);else if(y>0){var A=w+g,C=n[A];if(_)for(;C&&e(n[A]);)A+=g,C=n[A];var T=.5,L=n[b],C=n[A];if(!C||e(C))u(f,M);else{e(C)&&!_&&(C=M),o.sub(h,C,L);var P,z;if("x"===x||"y"===x){var k="x"===x?0:1;P=Math.abs(M[k]-L[k]),z=Math.abs(M[k]-C[k])}else P=o.dist(M,L),z=o.dist(M,C);T=z/(z+P),c(f,M,h,-y*(1-T))}s(d,d,m),l(d,d,v),s(f,f,m),l(f,f,v),t.bezierCurveTo(d[0],d[1],f[0],f[1],M[0],M[1]),c(d,M,h,y*T)}else t.lineTo(M[0],M[1]);b=w,w+=g}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[oe];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"),o=t("zrender/core/vector"),s=o.min,l=o.max,c=o.scaleAndAdd,u=o.copy,h=[],d=[],f=[];return{Polyline:a[le]({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[oe],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[le]({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[oe],c=i.smoothMonotone,u=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,u.min,u.max,i.smooth,c,i.connectNulls);n(t,o,s+d-1,d,l,-1,h.min,h.max,i.stackedOnSmooth,c,i.connectNulls),s+=d+1,t.closePath()}}})}}),e("echarts/chart/line/lineAnimationDiff",[Ce],function(){function t(t){return t>=0?1:-1}function e(e,i,r){for(var a,s=e.getBaseAxis(),l=e.getOtherAxis(s),c=s.onZero?0:l.scale[k]()[0],u=l.dim,h="x"===u||u===n?1:0,d=i.stackedOn,f=i.get(u,r);d&&t(d.get(u,r))===t(f);){a=d;break}var p=[];return p[h]=i.get(s.dim,r),p[1-h]=a?a.get(u,r,!0):c,e[o](p)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})})[he](function(t,e){i.push({cmd:"=",idx:e,idx1:t})})[ce](function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,l,c){for(var u=i(t,n),h=[],d=[],f=[],p=[],g=[],v=[],m=[],y=c[s],x=0;x<u[oe];x++){var _=u[x],b=!0;switch(_.cmd){case"=":var w=t.getItemLayout(_.idx),S=n.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=S.slice()),h.push(w),d.push(S),f.push(r[_.idx]),p.push(a[_.idx1]),m.push(n.getRawIndex(_.idx1));break;case"+":var M=_.idx;h.push(l[o]([n.get(y[0],M,!0),n.get(y[1],M,!0)])),d.push(n.getItemLayout(M).slice()),f.push(e(l,n,M)),p.push(a[M]),m.push(n.getRawIndex(M));break;case"-":var M=_.idx,A=t.getRawIndex(M);A!==M?(h.push(t.getItemLayout(M)),d.push(c[o]([t.get(y[0],M,!0),t.get(y[1],M,!0)])),f.push(r[M]),p.push(e(c,t,M)),m.push(A)):b=!1}b&&(g.push(_),v.push(v[oe]))}v.sort(function(t,e){return m[t]-m[e]});for(var C=[],T=[],L=[],P=[],z=[],x=0;x<v[oe];x++){var M=v[x];C[x]=h[M],T[x]=d[M],L[x]=f[M],P[x]=p[M],z[x]=g[M]}return{current:C,next:T,stackedOnCurrent:L,stackedOnNext:P,status:z}}}),e("echarts/chart/helper/Symbol",[Ce,Ae,"../../util/symbol",a,"../../util/number"],function(t){function e(t){return r[j](t)||(t=[+t,+t]),t}function i(t,e){c.Group.call(this),this.updateData(t,e)}function n(t,e){this.parent.drift(t,e)}var r=t(Ae),o=t("../../util/symbol"),c=t(a),d=t("../../util/number"),f=i[be];f._createSymbol=function(t,i,r){this[q]();var a=i.hostModel,s=i[C](r,"color"),l=o.createSymbol(t,-.5,-.5,1,1,s);l.attr({z2:100,culling:!0,scale:[0,0]}),l.drift=n;var u=e(i[C](r,"symbolSize"));c.initProps(l,{scale:u},a,r),this._symbolType=t,this.add(l)},f.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},f.getScale=function(){return this.childAt(0).scale},f.highlight=function(){this.childAt(0)[ae](A)},f.downplay=function(){this.childAt(0)[ae](M)},f.setZ=function(t,e){var i=this.childAt(0);i[Y]=t,i.z=e},f.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},f.updateData=function(t,i){var n=t[C](i,"symbol")||"circle",r=t.hostModel,a=e(t[C](i,"symbolSize"));if(n!==this._symbolType)this._createSymbol(n,t,i);else{var o=this.childAt(0);c[g](o,{scale:a},r,i)}this._updateCommon(t,i,a),this._seriesModel=r};var p=["itemStyle",M],v=["itemStyle",A],m=["label",M],x=["label",A];return f._updateCommon=function(t,i,n){var a=this.childAt(0),o=t.hostModel,f=t[h](i),g=f[ye](p),_=t[C](i,"color");"image"!==a.type&&a.useStyle({strokeNoScale:!0});var b=a.style,w=f[ye](v).getItemStyle();a.rotation=(f[y]("symbolRotate")||0)*Math.PI/180||0;var S=f[y]("symbolOffset");if(S){var T=a[R];T[0]=d[u](S[0],n[0]),T[1]=d[u](S[1],n[1])}a.setColor(_),r[le](b,g.getItemStyle(["color"]));var L=t[C](i,O);null!=L&&(b[O]=L);for(var P,z,k=f[ye](m),I=f[ye](x),D=t[s].slice();D[oe]&&(P=D.pop(),z=t.getDimensionInfo(P).type,z===l||"time"===z););null!=P&&k.get("show")?(c.setText(b,k,_),b.text=r.retrieve(o.getFormattedLabel(i,M),t.get(P,i))):b.text="",null!=P&&I[y]("show")?(c.setText(w,I,_),w.text=r.retrieve(o.getFormattedLabel(i,A),t.get(P,i))):w.text="";var B=e(t[C](i,"symbolSize"));if(a.off(ee).off(te).off(A).off(M),c.setHoverStyle(a,w),f[y]("hoverAnimation")){var E=function(){var t=B[1]/B[0];this.animateTo({scale:[Math.max(1.1*B[0],B[0]+3),Math.max(1.1*B[1],B[1]+3*t)]},400,"elasticOut")},N=function(){this.animateTo({scale:B},400,"elasticOut")};a.on(ee,E).on(te,N).on(A,E).on(M,N)}},f.fadeOut=function(t){var e=this.childAt(0);e.off(ee).off(te).off(A).off(M),e.style.text="",c[g](e,{scale:[0,0]},this._seriesModel,this[K],t)},r[W](i,c.Group),i}),e("echarts/util/symbol",[Ce,"./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,o=e[fe]/2;t[i](n,r-o),t.lineTo(n+a,r+o),t.lineTo(n-a,r+o),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,o=e[fe]/2;t[i](n,r-o),t.lineTo(n+a,r),t.lineTo(n,r+o),t.lineTo(n-a,r),t.closePath()}}),o=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[fe]),o=r/2,s=o*o/(a-o),l=n-a+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,h=Math.sin(c),d=Math.cos(c);t.arc(i,l,o,Math.PI-c,2*Math.PI+c);var f=.6*o,p=.7*o;t.bezierCurveTo(i+u-h*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-u+h*f,l+s+d*f,i-u,l+s),t.closePath()}}),s=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e[fe],r=e.width,a=e.x,o=e.y,s=r/3*2;t[i](a,o),t.lineTo(a+s,o+n),t.lineTo(a,o+n/4*3),t.lineTo(a-s,o+n),t.lineTo(a,o),t.closePath()}}),l={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:a,pin:o,arrow:s,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[fe]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[fe]=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[fe]=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[fe]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[fe]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[fe]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[fe]=n}},u={};for(var h in l)u[h]=new l[h];var d=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===m&&(t.textPosition=["50%","40%"],t[F]=B,t.textVerticalAlign=E)},buildPath:function(t,e){var i=e.symbolType,n=u[i];"none"!==e.symbolType&&(n||(i="rect",n=u[i]),c[i](e.x,e.y,e.width,e[fe],n.shape),n.buildPath(t,n.shape))}}),f=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[x]=t:this.__isEmptyBrush?(e[x]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[x]&&(e[x]=t)),this.dirty()}},p={createSymbol:function(t,i,r,a,o,s){var l=0===t[X]("empty");l&&(t=t.substr(5,1)[we]()+t.substr(6));var c;return c=0===t[X]("image://")?new e.Image({style:{image:t.slice(8),x:i,y:r,width:a,height:o}}):0===t[X]("path://")?e.makePath(t.slice(7),{},new n(i,r,a,o)):new d({shape:{symbolType:t,x:i,y:r,width:a,height:o}}),c.__isEmptyBrush=l,c.setColor=f,c.setColor(s),c}};return p}),e("echarts/component/axis/RadiusAxisView",[Ce,Ae,a,"./AxisBuilder",r],function(t){function e(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotation:e[ye]("axisLabel").get("rotate"),z2:1}}var i=t(Ae),n=t(a),o=t("./AxisBuilder"),s=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"];t(r).extendComponentView({type:"radiusAxis",render:function(t,n){if(this.group[q](),t.get("show")){var r=n[P]("polar",t.get("polarIndex")),a=r[H].getAngleAxis(),c=t.axis,u=r[H],h=c.getTicksCoords(),d=a[k]()[0],f=c[k](),p=e(u,t,d),g=new o(t,p);i.each(s,g.add,g),this.group.add(g.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,u,d,f,h)},this)}},_splitLine:function(t,e,r,a,o){var s=t[ye]("splitLine"),l=s[ye]("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=0;d<o[oe];d++){var f=u++%c[oe];h[f]=h[f]||[],h[f].push(new n.Circle({shape:{cx:e.cx,cy:e.cy,r:o[d]},silent:!0}))}for(var d=0;d<h[oe];d++)this.group.add(n.mergePath(h[d],{style:i[se]({stroke:c[d%c[oe]],fill:null},l.getLineStyle()),silent:!0}))},_splitArea:function(t,e,r,a,o){var s=t[ye]("splitArea"),l=s[ye]("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=o[0],f=1;f<o[oe];f++){var p=u++%c[oe];h[p]=h[p]||[],h[p].push(new n[w]({shape:{cx:e.cx,cy:e.cy,r0:d,r:o[f],startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[f]}for(var f=0;f<h[oe];f++)this.group.add(n.mergePath(h[f],{style:i[se]({fill:c[f%c[oe]]},l.getAreaStyle()),silent:!0}))}})}),e("echarts/chart/pie/labelLayout",[Ce,"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][fe])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][fe]));n--);}function c(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[oe];l>s;s++)if(t[s][R]!==B){var c=Math.abs(t[s].y-n),u=t[s].len,h=t[s].len2,d=r+u>c?Math.sqrt((r+u+h)*(r+u+h)-c*c):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 u,h=0,d=t[oe],f=[],p=[],g=0;d>g;g++)u=t[g].y-h,0>u&&s(g,d,-u,r),h=t[g].y+t[g][fe];0>o-h&&l(d-1,h-o);for(var g=0;d>g;g++)t[g].y>=i?p.push(t[g]):f.push(t[g]);c(f,!1,e,i,n,r),c(p,!0,e,i,n,r)}function i(t,i,n,r,a,o){for(var s=[],l=[],c=0;c<t[oe];c++)t[c].x<i?s.push(t[c]):l.push(t[c]);e(l,i,n,r,1,a,o),e(s,i,n,r,-1,a,o);for(var c=0;c<t[oe];c++){var u=t[c].linePoints;if(u){var h=u[1][0]-u[2][0];u[2][0]=t[c].x<i?t[c].x+3:t[c].x-3,u[1][1]=u[2][1]=t[c].y,u[1][0]=u[2][0]+h}}}var n=t("zrender/contain/text");return function(t,e,r,a){var o,s,l=t[ie](),c=[],u=!1;l.each(function(i){var r,a,d,f,p=l.getItemLayout(i),g=l[h](i),v=g[ye]("label.normal"),y=v.get(R)||g.get("label.emphasis.position"),x=g[ye]("labelLine.normal"),_=x.get(oe),b=x.get("length2"),w=(p.startAngle+p.endAngle)/2,S=Math.cos(w),A=Math.sin(w);
o=p.cx,s=p.cy;var C=y===m||"inner"===y;if(y===B)r=p.cx,a=p.cy,f=B;else{var L=(C?(p.r+p.r0)/2*S:p.r*S)+o,P=(C?(p.r+p.r0)/2*A:p.r*A)+s;if(r=L+3*S,a=P+3*A,!C){var z=L+S*(_+e-p.r),k=P+A*(_+e-p.r),I=z+(0>S?-1:1)*b,D=k;r=I+(0>S?-5:5),a=D,d=[[L,P],[z,k],[I,D]]}f=C?B:S>0?"left":"right"}var O=v[ye](G)[V](),E=v.get("rotate")?0>S?-w+Math.PI:-w:0,F=t.getFormattedLabel(i,M)||l[T](i),H=n[N](F,O,f,"top");u=!!E,p.label={x:r,y:a,position:y,height:H[fe],len:_,len2:b,linePoints:d,textAlign:f,verticalAlign:"middle",font:O,rotation:E},C||c.push(p.label)}),!u&&t.get("avoidLabelOverlap")&&i(c,o,s,e,r,a)}}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var Te=t("echarts");return Te.graphic=t("echarts/util/graphic"),Te.number=t("echarts/util/number"),Te.format=t("echarts/util/format"),t("echarts/chart/bar"),t("echarts/chart/line"),t("echarts/chart/pie"),t("echarts/component/grid"),t("echarts/component/polar"),t("echarts/component/title"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("zrender/vml/vml"),Te});