10 lines
308 KiB
JavaScript
Executable File
10 lines
308 KiB
JavaScript
Executable File
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(n[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],l=o[r],u=0,c=Math.min(e.length,n.length);c>u;u++){var h,d=i(e[u],r);switch(d){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;break;default:h=a(d)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="moveTo",n="transform",r="category",a="dataToCoord",o="getAxis",s="dataToPoint",l="radius",u="../../util/graphic",c="dimensions",h="getItemModel",d="ordinal",f="retrieve",p="rotation",v="parent",m="inside",g="getShallow",y="stroke",x="lineWidth",_="applyTransform",b="getItemGraphicEl",w="normal",M="ecModel",T="componentIndex",S="queryComponents",C="option",A="concat",P="createElement",L="getContext",I="undefined",k="getTicks",z="getExtent",D="contain",O="opacity",R="position",E="center",B="middle",N="getBoundingRect",V="getFont",F="textAlign",G="textStyle",H="removeAll",Z="inherits",q="filter",W="number",j="function",U="isArray",X="replace",Y="zlevel",$="setStyle",Q="traverse",K="getDataParams",J="target",te="mouseout",ee="mouseover",ie="splice",ne="series",re="trigger",ae="defaults",oe="extend",se="remove",le="isObject",ue="colorStops",ce="update",he="create",de="getItemVisual",fe="dataIndex",pe="getData",ve="coordinateSystem",me="indexOf",ge="length",ye="bottom",xe="ignore",_e="eachComponent",be="storage",we="canvasSupported",Me="getHeight",Te="getWidth",Se="getModel",Ce="animation",Ae="resize",Pe="height",Le="string",Ie="prototype",ke="toLowerCase",ze="zrender/core/vector",De="zrender/core/util",Oe="zrender/core/env",Re="require";e("echarts/echarts",[Re,Oe,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","./util/model","./util/throttle","zrender",De,"zrender/tool/color","zrender/mixin/Eventful","zrender/core/timsort","./visual/seriesColor","./preprocessor/backwardCompat","./loading/default","./data/List","./model/Model","./util/number","./util/format","zrender/core/matrix",ze],function(t){function e(t){return function(e,i,n){e=e&&e[ke](),O[Ie][t].call(this,e,i,n)}}function i(){O.call(this)}function n(t,e,n){function r(t,e){return t.prio-e.prio}n=n||{},typeof e===Le&&(e=Ue[e]),this.id,this.group,this._dom=t;var a=this._zr=k.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n[Pe]});this._throttledZrFlush=I.throttle(z.bind(a.flush,a),17),this._theme=z.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new b(this),this._coordSysMgr=new w,O.call(this),this._messageCenter=new i,this._initEvents(),this[Ae]=z.bind(this[Ae],this),this._pendingActions=[],R(je,r),R(qe,r),a[Ce].on("frame",this._onframe,this)}function r(t,e,i){var n,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=L.parseFinder(r,e);for(var o=0;o<a[ge];o++){var s=a[o];if(s[t]&&null!=(n=s[t](r,e,i)))return n}}function a(t,e){var i=this._model;i&&i[_e]({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function o(t,e){var i=He[t.type],n=i.actionInfo,r=n[ce]||ce;this[Ee]=!0;var a=[t],o=!1;t.batch&&(o=!0,a=z.map(t.batch,function(e){return e=z[ae](z[oe]({},e),t),e.batch=null,e}));for(var s,l=[],u="highlight"===t.type||"downplay"===t.type,c=0;c<a[ge];c++){var h=a[c];s=i.action(h,this._model),s=s||z[oe]({},h),s.type=n.event||s.type,l.push(s),u&&Fe[r].call(this,h)}"none"===r||u||(this[Ne]?(Fe.prepareAndUpdate.call(this,t),this[Ne]=!1):Fe[r].call(this,t)),s=o?{type:n.event||t.type,batch:l}:l[0],this[Ee]=!1,!e&&this._messageCenter[re](s.type,s)}function s(t){for(var e=this._pendingActions;e[ge];){var i=e.shift();o.call(this,i,t)}}function l(t,e,i){var n=this._api;E(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),g(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),g(r,a),m(r,a)},this),v(this._zr,e)}function u(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[ge];o++)n[o].__alive=!1;e[i?_e:"eachSeries"](function(t,o){if(i){if(t===ne)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var u=T.parseClassType(o.type),c=i?C.getClass(u.main,u.sub):A.getClass(u.sub);if(!c)return;l=new c,l.init(e,this._api),r[s]=l,n.push(l),a.add(l.group)}o.__viewId=s,l.__alive=!0,l.__id=s,l.__model=o},this);for(var o=0;o<n[ge];){var s=n[o];s.__alive?o++:(a[se](s.group),s.dispose(e,this._api),n[ie](o,1),delete r[s.__id])}}function c(t,e){E(qe,function(i){i.func(t,e)})}function h(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),n=t[pe]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function d(t,e){var i=this._api;E(je,function(n){n.isLayout&&n.func(t,i,e)})}function f(t,e){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),E(je,function(n){n.func(t,i,e)})}function p(t,e){var i=this._api;E(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),g(r,n)},this),E(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"),g(n,r),m(n,r)},this),v(this._zr,t),E(this._chartsViews,function(e){e.__alive||e[se](t,i)},this)}function v(t,e){var i=t[be],n=0;i[Q](function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!x.node&&i[Q](function(t){t.isGroup||(t.useHoverLayer=!0)})}function m(t,e){var i=0;e.group[Q](function(t){"group"===t.type||t[xe]||i++});var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!x.node;r&&e.group[Q](function(t){t.isGroup||(t.progressive=r?Math.floor(i++/n):-1,r&&t.stopAnimation(!0))});var a=t.get("blendMode")||null;e.group[Q](function(t){t.isGroup||t[$]("blend",a)})}function g(t,e){var i=t.get("z"),n=t.get(Y);e.group[Q](function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t[Y]=n))})}function y(t){function e(t,e){for(var i=0;i<t[ge];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";z.each(Ze,function(o,s){t._messageCenter.on(s,function(o){if($e[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];z.each(Ye,function(e){e!==t&&e.group===t.group&&l.push(e)}),e(l,i),E(l,function(t){t[a]!==n&&t.dispatchAction(s)}),e(l,r)}})})}var x=t(Oe),_=t("./model/Global"),b=t("./ExtensionAPI"),w=t("./CoordinateSystem"),M=t("./model/OptionManager"),T=t("./model/Component"),S=t("./model/Series"),C=t("./view/Component"),A=t("./view/Chart"),P=t("./util/graphic"),L=t("./util/model"),I=t("./util/throttle"),k=t("zrender"),z=t(De),D=t("zrender/tool/color"),O=t("zrender/mixin/Eventful"),R=t("zrender/core/timsort"),E=z.each,B=1e3,N=5e3,V=1e3,F=2e3,G=3e3,H=4e3,Re=5e3,Ee="__flagInMainProcess",Be="__hasGradientOrPatternBg",Ne="__optionUpdated";i[Ie].on=e("on"),i[Ie].off=e("off"),i[Ie].one=e("one"),z.mixin(i,O);var Ve=n[Ie];Ve._onframe=function(){this[Ne]&&(this[Ee]=!0,Fe.prepareAndUpdate.call(this),this[Ee]=!1,this[Ne]=!1)},Ve.getDom=function(){return this._dom},Ve.getZr=function(){return this._zr},Ve.setOption=function(t,e,i){if(this[Ee]=!0,!this._model||e){var n=new M(this._api),r=this._theme,a=this._model=new _(null,null,r,n);a.init(null,null,r,n)}this.__lastOnlyGraphic=!(!t||!t.graphic),z.each(t,function(t,e){"graphic"!==e&&(this.__lastOnlyGraphic=!1)},this),this._model.setOption(t,We),i?this[Ne]=!0:(Fe.prepareAndUpdate.call(this),this._zr.flush(),this[Ne]=!1),this[Ee]=!1,s.call(this,!1)},Ve.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Ve[Se]=function(){return this._model},Ve.getOption=function(){return this._model&&this._model.getOption()},Ve[Te]=function(){return this._zr[Te]()},Ve[Me]=function(){return this._zr[Me]()},Ve.getRenderedCanvas=function(t){if(x[we]){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e[be].getDisplayList();return z.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},Ve.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;E(e,function(t){i[_e]({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[xe]||(n.push(e),e.group[xe]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return E(n,function(t){t.group[xe]=!1}),a},Ve.getConnectedDataURL=function(t){if(x[we]){var e=this.group,i=Math.min,n=Math.max,r=1/0;if($e[e]){var a=r,o=r,s=-r,l=-r,u=[],c=t&&t.pixelRatio||1;z.each(Ye,function(r){if(r.group===e){var c=r.getRenderedCanvas(z.clone(t)),h=r.getDom().getBoundingClientRect();a=i(h.left,a),o=i(h.top,o),s=n(h.right,s),l=n(h[ye],l),u.push({dom:c,left:h.left,top:h.top})}}),a*=c,o*=c,s*=c,l*=c;var h=s-a,d=l-o,f=z.createCanvas();f.width=h,f[Pe]=d;var p=k.init(f);return E(u,function(t){var e=new P.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});p.add(e)}),p.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},Ve.convertToPixel=z.curry(r,"convertToPixel"),Ve.convertFromPixel=z.curry(r,"convertFromPixel"),Ve.containPixel=function(t,e){var i,n=this._model;return t=L.parseFinder(n,t),z.each(t,function(t,n){n[me]("Models")>=0&&z.each(t,function(t){var r=t[ve];if(r&&r.containPoint)i|=!!r.containPoint(e);else if("seriesModels"===n){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(i|=a.containPoint(e,t))}},this)},this),!!i},Ve.getVisual=function(t,e){var i=this._model;t=L.parseFinder(i,t,{defaultMainType:"series"});var n=t.seriesModel,r=n[pe](),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty(fe)?r.indexOfRawIndex(t[fe]):null;return null!=a?r[de](a,e):r.getVisual(e)};var Fe={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),n[he](this._model,this._api),c.call(this,e,i),h.call(this,e),n[ce](e,i),f.call(this,e,t),p.call(this,e,t);var a=e.get("backgroundColor")||"transparent",o=r.painter;if(o.isSingleCanvas&&o.isSingleCanvas())r.configLayer(0,{clearColor:a});else{if(!x[we]){var s=D.parse(a);a=D.stringify(s,"rgb"),0===s[3]&&(a="transparent")}a[ue]||a.image?(r.configLayer(0,{clearColor:a}),this[Be]=!0,this._dom.style.background="transparent"):(this[Be]&&r.configLayer(0,{clearColor:null}),this[Be]=!1,this._dom.style.background=a)}}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[pe]().clearAllVisual()}),f.call(this,e,t),l.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[pe]().clearAllVisual()}),f.call(this,e,t),l.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(d.call(this,e,t),l.call(this,"updateLayout",e,t))},highlight:function(t){a.call(this,"highlight",t)},downplay:function(t){a.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;u.call(this,"component",e),u.call(this,"chart",e),this.__lastOnlyGraphic?(E(this._componentsViews,function(i){var n=i.__model;n&&"graphic"===n.mainType&&(i.render(n,e,this._api,t),g(n,i))},this),this.__lastOnlyGraphic=!1):Fe[ce].call(this,t)}};Ve[Ae]=function(t){this[Ee]=!0,this._zr[Ae](t);var e=this._model&&this._model.resetOption("media");Fe[e?"prepareAndUpdate":ce].call(this),this._loadingFX&&this._loadingFX[Ae](),this[Ee]=!1,s.call(this)},Ve.showLoading=function(t,e){if(z[le](t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Xe[t]){var i=Xe[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},Ve.hideLoading=function(){this._loadingFX&&this._zr[se](this._loadingFX),this._loadingFX=null},Ve.makeActionFromEvent=function(t){var e=z[oe]({},t);return e.type=Ze[t.type],e},Ve.dispatchAction=function(t,e){if(z[le](e)||(e={silent:!!e}),He[t.type]){if(this[Ee])return void this._pendingActions.push(t);o.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&x.browser.weChat&&this._throttledZrFlush(),s.call(this,e.silent)}},Ve.on=e("on"),Ve.off=e("off"),Ve.one=e("one");var Ge=["click","dblclick",ee,te,"mousemove","mousedown","mouseup","globalout","contextmenu"];Ve._initEvents=function(){E(Ge,function(t){this._zr.on(t,function(e){var i,n=this[Se](),r=e[J];if("globalout"===t)i={};else if(r&&null!=r[fe]){var a=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=a&&a[K](r[fe],r.dataType)||{}}else r&&r.eventData&&(i=z[oe]({},r.eventData));i&&(i.event=e,i.type=t,this[re](t,i))},this)},this),E(Ze,function(t,e){this._messageCenter.on(e,function(t){this[re](e,t)},this)},this)},Ve.isDisposed=function(){return this._disposed},Ve.clear=function(){this.setOption({series:[]},!0)},Ve.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;E(this._componentsViews,function(i){i.dispose(e,t)}),E(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete Ye[this.id]}},z.mixin(n,O);var He=[],Ze={},qe=[],We=[],je=[],Ue={},Xe={},Ye={},$e={},Qe=new Date-0,Ke=new Date-0,Je="_echarts_instance_",ti={version:"3.3.2",dependencies:{zrender:"3.2.2"}};ti.init=function(t,e,i){var r=new n(t,e,i);return r.id="ec_"+Qe++,Ye[r.id]=r,t.setAttribute&&t.setAttribute(Je,r.id),y(r),r},ti.connect=function(t){if(z[U](t)){var e=t;t=null,z.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Ke++,z.each(e,function(e){e.group=t})}return $e[t]=!0,t},ti.disConnect=function(t){$e[t]=!1},ti.dispose=function(t){z.isDom(t)?t=ti.getInstanceByDom(t):typeof t===Le&&(t=Ye[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},ti.getInstanceByDom=function(t){var e=t.getAttribute(Je);return Ye[e]},ti.getInstanceById=function(t){return Ye[t]},ti.registerTheme=function(t,e){Ue[t]=e},ti.registerPreprocessor=function(t){We.push(t)},ti.registerProcessor=function(t,e){typeof t===j&&(e=t,t=B),qe.push({prio:t,func:e})},ti.registerAction=function(t,e,i){typeof e===j&&(i=e,e="");var n=z[le](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[ke](),e=t.event,He[n]||(He[n]={action:i,actionInfo:t}),Ze[e]=n},ti.registerCoordinateSystem=function(t,e){w.register(t,e)},ti.registerLayout=function(t,e){typeof t===j&&(e=t,t=V),je.push({prio:t,func:e,isLayout:!0})},ti.registerVisual=function(t,e){typeof t===j&&(e=t,t=G),je.push({prio:t,func:e})},ti.registerLoading=function(t,e){Xe[t]=e};var ei=T.parseClassType;return ti.extendComponentModel=function(t,e){var i=T;if(e){var n=ei(e);i=T.getClass(n.main,n.sub,!0)}return i[oe](t)},ti.extendComponentView=function(t,e){var i=C;if(e){var n=ei(e);i=C.getClass(n.main,n.sub,!0)}return i[oe](t)},ti.extendSeriesModel=function(t,e){var i=S;if(e){e="series."+e[X]("series.","");var n=ei(e);i=T.getClass(n.main,n.sub,!0)}return i[oe](t)},ti.extendChartView=function(t,e){var i=A;if(e){e[X]("series.","");var n=ei(e);i=A.getClass(n.main,!0)}return i[oe](t)},ti.setCanvasCreator=function(t){z.createCanvas=t},ti.registerVisual(F,t("./visual/seriesColor")),ti.registerPreprocessor(t("./preprocessor/backwardCompat")),ti.registerLoading("default",t("./loading/default")),ti.registerAction({type:"highlight",event:"highlight",update:"highlight"},z.noop),ti.registerAction({type:"downplay",event:"downplay",update:"downplay"},z.noop),ti.List=t("./data/List"),ti.Model=t("./model/Model"),ti.graphic=t("./util/graphic"),ti[W]=t("./util/number"),ti.format=t("./util/format"),ti.matrix=t("zrender/core/matrix"),ti.vector=t(ze),ti.color=t("zrender/tool/color"),ti.util={},E(["map","each",q,me,Z,"reduce",q,"bind","curry",U,"isString",le,"isFunction",oe,ae,"clone"],function(t){ti.util[t]=z[t]}),ti.PRIORITY={PROCESSOR:{FILTER:B,STATISTIC:N},VISUAL:{LAYOUT:V,GLOBAL:F,CHART:G,COMPONENT:H,BRUSH:Re}},ti}),e("echarts/chart/line",[Re,De,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(De),i=t("../echarts"),n=i.PRIORITY;t("./line/LineSeries"),t("./line/LineView"),i.registerVisual(e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line")),i.registerProcessor(n.PROCESSOR.STATISTIC,e.curry(t("../processor/dataSample"),"line")),t("../component/grid")}),e("echarts/chart/bar",[Re,De,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid","../echarts","../component/grid"],function(t){var e=t(De);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.registerVisual(function(t){t.eachSeriesByType("bar",function(t){var e=t[pe]();e.setVisual("legendSymbol","roundRect")})}),t("../component/grid")}),e("echarts/chart/pie",[Re,De,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(De),i=t("../echarts");t("./pie/PieSeries"),t("./pie/PieView"),t("../action/createDataSelectAction")("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(e.curry(t("../visual/dataColor"),"pie")),i.registerLayout(e.curry(t("./pie/pieLayout"),"pie")),i.registerProcessor(e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/component/grid",[Re,"../util/graphic",De,"../echarts","../coord/cartesian/Grid","./axis"],function(t){var e=t("../util/graphic"),i=t(De),n=t("../echarts");t("../coord/cartesian/Grid"),t("./axis"),n.extendComponentView({type:"grid",render:function(t){this.group[H](),t.get("show")&&this.group.add(new e.Rect({shape:t[ve].getRect(),style:i[ae]({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),e("echarts/component/legend",[Re,"./legend/LegendModel","./legend/legendAction","./legend/LegendView","../echarts","./legend/legendFilter"],function(t){t("./legend/LegendModel"),t("./legend/legendAction"),t("./legend/LegendView");var e=t("../echarts");e.registerProcessor(t("./legend/legendFilter"))}),e("echarts/component/title",[Re,"../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[H](),t.get("show")){var a=this.group,o=t[Se](G),s=t[Se]("subtextStyle"),l=t.get(F),u=t.get("textBaseline"),c=new i.Text({style:{text:t.get("text"),textFont:o[V](),fill:o.getTextColor()},z2:10}),h=c[N](),d=t.get("subtext"),f=new i.Text({style:{text:d,textFont:s[V](),fill:s.getTextColor(),y:h[Pe]+t.get("itemGap"),textBaseline:"top"},z2:10}),p=t.get("link"),v=t.get("sublink");c.silent=!p,f.silent=!v,p&&c.on("click",function(){window.open(p,"_"+t.get(J))}),v&&f.on("click",function(){window.open(v,"_"+t.get("subtarget"))}),a.add(c),d&&a.add(f);var m=a[N](),g=t.getBoxLayoutParams();g.width=m.width,g[Pe]=m[Pe];var y=n.getLayoutRect(g,{width:r[Te](),height:r[Me]()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l===B&&(l=E),"right"===l?y.x+=y.width:l===E&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get(ye),u===E&&(u=B),u===ye?y.y+=y[Pe]:u===B&&(y.y+=y[Pe]/2),u=u||"top"),a.attr(R,[y.x,y.y]);var x={textAlign:l,textVerticalAlign:u};c[$](x),f[$](x),m=a[N]();var _=y.margin,b=t.getItemStyle(["color",O]);b.fill=t.get("backgroundColor");var w=new i.Rect({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m[Pe]+_[0]+_[2]},style:b,silent:!0});i.subPixelOptimizeRect(w),a.add(w)}}})}),e("zrender/vml/vml",[Re,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/component/tooltip",[Re,"./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("echarts/component/toolbox",[Re,"./toolbox/ToolboxModel","./toolbox/ToolboxView","./toolbox/feature/SaveAsImage","./toolbox/feature/MagicType","./toolbox/feature/DataView","./toolbox/feature/DataZoom","./toolbox/feature/Restore"],function(t){t("./toolbox/ToolboxModel"),t("./toolbox/ToolboxView"),t("./toolbox/feature/SaveAsImage"),t("./toolbox/feature/MagicType"),t("./toolbox/feature/DataView"),t("./toolbox/feature/DataZoom"),t("./toolbox/feature/Restore")}),e("echarts/scale/Time",[Re,De,"../util/number","../util/format","./Interval"],function(t){var e=t(De),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[Ie],o=Math.ceil,s=Math.floor,l=1e3,u=60*l,c=60*u,h=24*c,d=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},f=r[oe]({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[ge],l=d(p,r,0,a),u=p[Math.min(l,a-1)],c=u[2];if("year"===u[0]){var h=n/c,f=i.nice(h/t,!0);c*=f}var v=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=u,this._interval=c,this._niceExtent=v},parse:function(t){return+i.parseDate(t)}});e.each([D,"normalize"],function(t){f[Ie][t]=function(e){return a[t].call(this,this.parse(e))}});var p=[["hh:mm:ss",1,l],["hh:mm:ss",5,5*l],["hh:mm:ss",10,10*l],["hh:mm:ss",15,15*l],["hh:mm:ss",30,30*l],["hh:mm\nMM-dd",1,u],["hh:mm\nMM-dd",5,5*u],["hh:mm\nMM-dd",10,10*u],["hh:mm\nMM-dd",15,15*u],["hh:mm\nMM-dd",30,30*u],["hh:mm\nMM-dd",1,c],["hh:mm\nMM-dd",2,2*c],["hh:mm\nMM-dd",6,6*c],["hh:mm\nMM-dd",12,12*c],["MM-dd\nyyyy",1,h],["week",7,7*h],["month",1,31*h],["quarter",3,380*h/4],["half-year",6,380*h/2],["year",1,380*h]];return f[he]=function(){return new f},f}),e("echarts/scale/Log",[Re,De,"./Scale","../util/number","./Interval"],function(t){function e(t,e){return u(t,l(e))}var i=t(De),n=t("./Scale"),r=t("../util/number"),a=t("./Interval"),o=n[Ie],s=a[Ie],l=r.getPrecisionSafe,u=r.round,c=Math.floor,h=Math.ceil,d=Math.pow,f=Math.log,p=n[oe]({type:"log",base:10,$constructor:function(){n.apply(this,arguments),this._originalScale=new a},getTicks:function(){var t=this._originalScale,n=this._extent,a=t[z]();return i.map(s[k].call(this),function(i){var o=r.round(d(this.base,i));return o=i===n[0]&&t.__fixMin?e(o,a[0]):o,o=i===n[1]&&t.__fixMax?e(o,a[1]):o},this)},getLabel:s.getLabel,scale:function(t){return t=o.scale.call(this,t),d(this.base,t)},setExtent:function(t,e){var i=this.base;t=f(t)/f(i),e=f(e)/f(i),s.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,i=o[z].call(this);i[0]=d(t,i[0]),i[1]=d(t,i[1]);var n=this._originalScale,r=n[z]();return n.__fixMin&&(i[0]=e(i[0],r[0])),n.__fixMax&&(i[1]=e(i[1],r[1])),i},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=f(t[0])/f(e),t[1]=f(t[1])/f(e),o.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=r.quantity(i),a=t/i*n;for(.5>=a&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[r.round(h(e[0]/n)*n),r.round(c(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(t,e,i){s.niceExtent.call(this,t,e,i);var n=this._originalScale;n.__fixMin=e,n.__fixMax=i}});return i.each([D,"normalize"],function(t){p[Ie][t]=function(e){return e=f(e)/f(this.base),o[t].call(this,e)}}),p[he]=function(){return new p},p}),e(Oe,[],function(){function t(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),o&&(i.weChat=!0),{browser:i,os:e,node:!1,canvasSupported:document[P]("canvas")[L]?!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===I?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/CoordinateSystem",[Re,De],function(t){function e(){this._coordinateSystems=[]}var i=t(De),n={};return e[Ie]={constructor:e,create:function(t,e){var r=[];i.each(n,function(i){var n=i[he](t,e);r=r[A](n||[])}),this._coordinateSystems=r},update:function(t,e){i.each(this._coordinateSystems,function(i){i[ce]&&i[ce](t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},e.register=function(t,e){n[t]=e},e.get=function(t){return n[t]},e}),e("echarts/ExtensionAPI",[Re,De],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(De),n=["getDom","getZr",Te,Me,"dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL",Se,"getOption"];return e}),e("echarts/model/Global",[Re,De,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){l.each(e,function(e,i){g.hasClass(i)||("object"==typeof e?t[i]=t[i]?l.merge(t[i],e,!1):l.clone(e):null==t[i]&&(t[i]=e))})}function i(t){t=t,this[C]={},this[C][x]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[C]),l.merge(t,y,!1),this.mergeOption(t)}function n(t,e){l[U](e)||(e=e?[e]:[]);var i={};return h(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e,i){var n=e.type?e.type:i?i.subType:g.determineSubType(t,e);return n}function a(t){return f(t,function(t){return t[T]})||[]}function o(t,e){return e.hasOwnProperty("subType")?d(t,function(t){return t.subType===e.subType}):t}function s(t){}var l=t(De),u=t("../util/model"),c=t("./Model"),h=l.each,d=l[q],f=l.map,p=l[U],v=l[me],m=l[le],g=t("./Component"),y=t("./globalDefault"),x="\x00_ec_inner",_=c[oe]({constructor:_,init:function(t,e,i,n){i=i||{},this[C]=null,this._theme=new c(i),this._optionManager=n},setOption:function(t,e){l.assert(!(x 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[C]&&"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[ge]&&h(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var c=u.normalizeToArray(t[e]),d=u.mappingToExists(o[e],c);u.makeIdAndName(d),h(d,function(t){var i=t[C];m(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=r(e,i,t.exist))});var f=n(o,s);i[e]=[],o[e]=[],h(d,function(t,n){var r=t.exist,a=t[C];if(l.assert(m(a)||r,"Empty component definition"),a){var s=g.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.name=t.keyInfo.name,r.mergeOption(a,this),r.optionUpdated(a,!1);else{var u=l[oe]({dependentModels:f,componentIndex:n},t.keyInfo);r=new s(a,this,this,u),l[oe](r,u),r.init(a,this,this,u),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);o[e][n]=r,i[e][n]=r[C]},this),e===ne&&(this._seriesIndices=a(o[ne]))}var i=this[C],o=this._componentsMap,s=[];h(t,function(t,e){null!=t&&(g.hasClass(e)?s.push(e):i[e]=null==i[e]?l.clone(t):l.merge(i[e],t,!0))}),g.topologicalTravel(s,g.getAllClassMainTypes(),e,this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=l.clone(this[C]);return h(t,function(e,i){if(g.hasClass(i)){for(var e=u.normalizeToArray(e),n=e[ge]-1;n>=0;n--)u.isIdInner(e[n])&&e[ie](n,1);t[i]=e}}),delete t[x],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[ge])return[];var s;if(null!=i)p(i)||(i=[i]),s=d(f(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var l=p(n);s=d(a,function(t){return l&&v(n,t.id)>=0||!l&&t.id===n})}else if(null!=r){var u=p(r);s=d(a,function(t){return u&&v(r,t.name)>=0||!u&&t.name===r})}else s=a;return o(s,t)},findComponents:function(t){function e(t){var e=r+"Index",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[q]?d(e,t[q]):e}var n=t.query,r=t.mainType,a=e(n),s=a?this[S](a):this._componentsMap[r];return i(o(s,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===j)i=e,e=t,h(n,function(t,n){h(t,function(t,r){e.call(i,n,t,r)})});else if(l.isString(t))h(n[t],e,i);else if(m(t)){var r=this.findComponents(t);h(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap[ne];return d(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[ne][t]},getSeriesByType:function(t){var e=this._componentsMap[ne];return d(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[ne].slice()},eachSeries:function(t,e){s(this),h(this._seriesIndices,function(i){var n=this._componentsMap[ne][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){h(this._componentsMap[ne],t,e)},eachSeriesByType:function(t,e,i){s(this),h(this._seriesIndices,function(n){var r=this._componentsMap[ne][n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return h(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return s(this),l[me](this._seriesIndices,t[T])<0},filterSeries:function(t,e){s(this);var i=d(this._componentsMap[ne],t,e);this._seriesIndices=a(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=a(t[ne]);var e=[];h(t,function(t,i){e.push(i)}),g.topologicalTravel(e,g.getAllClassMainTypes(),function(e){h(t[e],function(t){t.restoreData()})})}});return l.mixin(_,t("./mixin/colorPalette")),_}),e("echarts/model/Component",[Re,"./Model",De,"../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[Ie].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(De),r=Array[Ie].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),l=i[oe]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,r){i.call(this,t,e,n,r),this.uid=a.getUID("componentModel")},init:function(t,e,i){this.mergeDefaultAndTheme(t,i)},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[C],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[C],t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[Ie].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[ge]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption},getReferringComponents:function(t){return this[M][S]({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});return o.enableClassManagement(l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),n.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/model/OptionManager",[Re,De,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function i(t,e,i){var n,r,a=[],o=[],l=t.timeline;if(t.baseOption&&(r=t.baseOption),(l||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var u=t.media;c(u,function(t){t&&t[C]&&(t.query?o.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=l),c([r][A](a)[A](s.map(o,function(t){return t[C]})),function(t){c(e,function(e){e(t,i)})}),{baseOption:r,timelineOptions:a,mediaDefault:n,mediaList:o}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][ke]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,i){if(null!=e){var n=t[i];if(u.hasClass(i)){e=l.normalizeToArray(e),n=l.normalizeToArray(n);var r=l.mappingToExists(n,e);t[i]=d(r,function(t){return t[C]&&t.exist?f(t.exist,t[C],!0):t.exist||t[C]})}else t[i]=f(n,e,!0)}})}var s=t(De),l=t("../util/model"),u=t("./Component"),c=s.each,h=s.clone,d=s.map,f=s.merge,p=/^(min|max)?(.+)$/;return e[Ie]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=i.call(this,t,e,!n);this._newBaseOption=r.baseOption,n?(o(n.baseOption,r.baseOption),r.timelineOptions[ge]&&(n.timelineOptions=r.timelineOptions),r.mediaList[ge]&&(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[ge]){var n=t.getComponent("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[Te](),e=this._api[Me](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[ge]&&!r)return s;for(var l=0,u=i[ge];u>l;l++)n(i[l].query,t,e)&&o.push(l);return!o[ge]&&r&&(o=[-1]),o[ge]&&!a(o,this._currentMediaIndices)&&(s=d(o,function(t){return h(-1===t?r[C]:i[t][C])})),this._currentMediaIndices=o,s}},e}),e("echarts/view/Component",[Re,"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[Ie]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[Ie];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[Re,"zrender/container/Group","../util/component","../util/clazz","../util/model",De],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[re](e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){var r=s.queryDataIndex(t,e);null!=r?l.each(s.normalizeToArray(r),function(e){i(t[b](e),n)}):t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz"),s=t("../util/model"),l=t(De);e[Ie]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[pe](),r,"emphasis")},downplay:function(t,e,i,r){n(t[pe](),r,w)},remove:function(){this.group[H]()},dispose:function(){}};var u=e[Ie];return u.updateView=u.updateLayout=u.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e,["dispose"]),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/throttle",[],function(){var t={},e="\x00__throttleOriginMethod",i="\x00__throttleRate",n="\x00__throttleType";return t.throttle=function(t,e,i){function n(){u=(new Date).getTime(),c=null,t.apply(o,s||[])}var r,a,o,s,l=0,u=0,c=null;e=e||0;var h=function(){r=(new Date).getTime(),o=this,s=arguments,a=r-(i?l:u)-e,clearTimeout(c),i?c=setTimeout(n,e):a>=0?n():c=setTimeout(n,-a),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h},t.createOrUpdate=function(r,a,o,s){var l=r[a];if(l){var u=l[e]||l,c=l[n],h=l[i];if(h!==o||c!==s){if(null==o||!s)return r[a]=u;l=r[a]=t.throttle(u,o,"debounce"===s),l[e]=u,l[n]=s,l[i]=o}return l}},t.clear=function(t,i){var n=t[i];n&&n[e]&&(t[i]=n[e])},t}),e("echarts/util/graphic",[Re,De,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",ze,"zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Ring","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/CompoundPath","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient","zrender/core/BoundingRect"],function(t){function e(t){return null!=t&&"none"!=t}function i(t){return typeof t===Le?C.lift(t,-.1):t}function n(t){if(t.__hoverStlDirty){var n=t.style[y],r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?i(r):null),a[y]=a[y]||(e(n)?i(n):null);var o={};for(var s in a)a.hasOwnProperty(s)&&(o[s]=t.style[s]);t.__normalStl=o,t.__hoverStlDirty=!1}}function r(t){t.__isHover||(n(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t[$](t.__hoverStl),t.z2+=1),t.__isHover=!0)}function a(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t[$](e),t.z2-=1),t.__isHover=!1}}function o(t){"group"===t.type?t[Q](function(t){"group"!==t.type&&r(t)}):r(t)}function s(t){"group"===t.type?t[Q](function(t){"group"!==t.type&&a(t)}):a(t)}function l(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&n(t)}function u(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&o(this)}function c(t){this.__hoverSilentOnTouch&&t.zrByTouch||!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===j&&(a=r,r=null);var o=n&&(n.ifEnableAnimation?n.ifEnableAnimation():n[g](Ce));if(o){var s=t?"Update":"",l=n&&n[g]("animationDuration"+s),u=n&&n[g]("animationEasing"+s),c=n&&n[g]("animationDelay"+s);typeof c===j&&(c=c(r)),l>0?e.animateTo(i,l,c||0,u,a):(e.attr(i),a&&a())}else e.attr(i),a&&a()}var b=t(De),M=t("zrender/tool/path"),T=Math.round,S=t("zrender/graphic/Path"),C=t("zrender/tool/color"),A=t("zrender/core/matrix"),P=t(ze),L={};return L.Group=t("zrender/container/Group"),L.Image=t("zrender/graphic/Image"),L.Text=t("zrender/graphic/Text"),L.Circle=t("zrender/graphic/shape/Circle"),L.Sector=t("zrender/graphic/shape/Sector"),L.Ring=t("zrender/graphic/shape/Ring"),L.Polygon=t("zrender/graphic/shape/Polygon"),L.Polyline=t("zrender/graphic/shape/Polyline"),L.Rect=t("zrender/graphic/shape/Rect"),L.Line=t("zrender/graphic/shape/Line"),L.BezierCurve=t("zrender/graphic/shape/BezierCurve"),L.Arc=t("zrender/graphic/shape/Arc"),L.CompoundPath=t("zrender/graphic/CompoundPath"),L.LinearGradient=t("zrender/graphic/LinearGradient"),L.RadialGradient=t("zrender/graphic/RadialGradient"),L.BoundingRect=t("zrender/core/BoundingRect"),L.extendShape=function(t){return S[oe](t)},L.extendPath=function(t,e){return M.extendFromString(t,e)},L.makePath=function(t,e,i,n){var r=M.createFromString(t,e),a=r[N]();if(i){var o=a.width/a[Pe];if(n===E){var s,l=i[Pe]*o;l<=i.width?s=i[Pe]:(l=i.width,s=l/o);var u=i.x+i.width/2,c=i.y+i[Pe]/2;i.x=u-l/2,i.y=c-s/2,i.width=l,i[Pe]=s}this.resizePath(r,i)}return r},L.mergePath=M.mergePath,L.resizePath=function(t,e){if(t[_]){var i=t[N](),n=i.calculateTransform(e);t[_](n)}},L.subPixelOptimizeLine=function(t){var e=L.subPixelOptimize,i=t.shape,n=t.style[x];return T(2*i.x1)===T(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),T(2*i.y1)===T(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},L.subPixelOptimizeRect=function(t){var e=L.subPixelOptimize,i=t.shape,n=t.style[x],r=i.x,a=i.y,o=i.width,s=i[Pe];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[Pe]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},L.subPixelOptimize=function(t,e,i){var n=T(2*t);return(n+T(e))%2===0?n/2:(n+(i?1:-1))/2},L.setHoverStyle=function(t,e,i){t.__hoverSilentOnTouch=i&&i.hoverSilentOnTouch,"group"===t.type?t[Q](function(t){"group"!==t.type&&l(t,e)}):l(t,e),t.on(ee,u).on(te,c),t.on("emphasis",h).on(w,d)},L.setText=function(t,e,i){var n=e[g](R)||m,r=n[me](m)>=0?"white":i,a=e[Se](G);b[oe](t,{textDistance:e[g]("distance")||5,textFont:a[V](),textPosition:n,textFill:a.getTextColor()||r})},L.updateProps=function(t,e,i,n,r){f(!0,t,e,i,n,r)},L.initProps=function(t,e,i,n,r){f(!1,t,e,i,n,r)},L.getTransform=function(t,e){for(var i=A.identity([]);t&&t!==e;)A.mul(i,t.getLocalTransform(),i),t=t[v];return i},L[_]=function(t,e,i){return i&&(e=A.invert([],e)),P[_]([],t,e)},L.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===ye?r:0];return a=L[_](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?ye:"top"},L.groupTransition=function(t,e,i){function n(t){var e={};return t[Q](function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:P.clone(t[R]),rotation:t[p]};return t.shape&&(e.shape=b[oe]({},t.shape)),e}if(t&&e){var a=n(t);e[Q](function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=r(t);t.attr(r(e)),L.updateProps(t,n,i,t[fe])}}})}},L}),e("echarts/util/model",[Re,"./format","./number","../model/Model",De],function(t){function e(t,e){return t&&t.hasOwnProperty(e)}var i=t("./format"),n=t("./number"),r=t("../model/Model"),a=t(De),o=a.each,s=a[le],l={};return l.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},l.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t[w]=t[w]||{};o(e,function(t){var e=a[f](i[t],n[t]);null!=e&&(i[t]=e)})}},l.LABEL_OPTIONS=[R,"show",G,"distance","formatter"],l.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},l.isDataItemOption=function(t){return s(t)&&!(t instanceof Array)},l.converDataValue=function(t,e){var i=e&&e.type;return i===d?t:("time"!==i||isFinite(t)||null==t||"-"===t||(t=+n.parseDate(t)),null==t||""===t?0/0:+t)},l.createDataFormatModel=function(t,e){var i=new r;return a.mixin(i,l.dataFormatMixin),i.seriesIndex=e.seriesIndex,i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i[pe]=function(){return t},i},l.dataFormatMixin={getDataParams:function(t,e){var i=this[pe](e),n=this.seriesIndex,r=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i.getName(t,!0),l=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:this.mainType===ne?this.subType:null,seriesIndex:n,seriesName:r,name:s,dataIndex:o,data:l,dataType:e,value:a,color:i[de](t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,r){e=e||w;var a=this[pe](n),o=a[h](t),s=this[K](t,n);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var l=o.get(["label",e,"formatter"]);return typeof l===j?(s.status=e,l(s)):typeof l===Le?i.formatTpl(l,s):void 0},getRawValue:function(t,e){var i=this[pe](e),n=i.getRawDataItem(t);return null!=n?!s(n)||n instanceof Array?n:n.value:void 0},formatTooltip:a.noop},l.mappingToExists=function(t,e){e=(e||[]).slice();var i=a.map(t||[],function(t){return{exist:t}});return o(e,function(t,n){if(s(t)){for(var r=0;r<i[ge];r++)if(!i[r][C]&&null!=t.id&&i[r].exist.id===t.id+"")return i[r][C]=t,void(e[n]=null);for(var r=0;r<i[ge];r++){var a=i[r].exist;if(!(i[r][C]||null!=a.id&&null!=t.id||null==t.name||l.isIdInner(t)||l.isIdInner(a)||a.name!==t.name+""))return i[r][C]=t,void(e[n]=null)}}}),o(e,function(t){if(s(t)){for(var e=0;e<i[ge];e++){var n=i[e].exist;if(!i[e][C]&&!l.isIdInner(n)&&null==t.id){i[e][C]=t;break}}e>=i[ge]&&i.push({option:t})}}),i},l.makeIdAndName=function(t){var e={};o(t,function(t){var i=t.exist;i&&(e[i.id]=t)}),o(t,function(t){var i=t[C];a.assert(!i||null==i.id||!e[i.id]||e[i.id]===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&(e[i.id]=t),!t.keyInfo&&(t.keyInfo={})}),o(t,function(t){var i=t.exist,n=t[C],r=t.keyInfo;if(s(n)){if(r.name=null!=n.name?n.name+"":i?i.name:"\x00-",i)r.id=i.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(e[r.id])}e[r.id]=t}})},l.isIdInner=function(t){return s(t)&&t.id&&0===(t.id+"")[me]("\x00_ec_\x00")},l.compressBatches=function(t,e){function i(t,e,i){for(var n=0,r=t[ge];r>n;n++)for(var a=t[n].seriesId,o=l.normalizeToArray(t[n][fe]),s=i&&i[a],u=0,c=o[ge];c>u;u++){var h=o[u];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function n(t,e){var i=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)i.push(+r);else{var a=n(t[r],!0);a[ge]&&i.push({seriesId:r,dataIndex:a})}return i}var r={},a={};return i(t||[],r),i(e||[],a,r),[n(r),n(a)]},l.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e[fe]?a[U](e[fe])?a.map(e[fe],function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e[fe]):null!=e.name?a[U](e.name)?a.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},l.parseFinder=function(t,i,n){if(a.isString(i)){var r={};r[i+"Index"]=0,i=r}var s=n&&n.defaultMainType;!s||e(i,s+"Index")||e(i,s+"Id")||e(i,s+"Name")||(i[s+"Index"]=0);var l={};return o(i,function(e,n){var e=i[n];if(n===fe||"dataIndexInside"===n)return void(l[n]=e);var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],a=r[1],o=r[2];if(a&&o){var s={mainType:a};s[o[ke]()]=e;var u=t[S](s);l[a+"Models"]=u,l[a+"Model"]=u[0]}}),l},l}),e("echarts/model/Series",[Re,De,"../util/format","../util/model","./Component","./mixin/colorPalette",Oe,"../util/layout"],function(t){var e=t(De),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=t("./mixin/colorPalette"),o=t(Oe),s=t("../util/layout"),l=i.encodeHTML,u=i.addCommas,c=r[oe]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",layoutMode:null,init:function(t,e,i){this.seriesIndex=this[T],this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){var r=this.layoutMode,a=r?s.getLayoutParams(t):{};e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,n.LABEL_OPTIONS),this.fillDataTextStyle(t.data),r&&s.mergeLayoutParam(t,a,r)},mergeOption:function(t,i){t=e.merge(this[C],t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&s.mergeLayoutParam(this[C],t,n);var r=this.getInitialData(t,i);r&&(this._data=r,this._dataBeforeProcessed=r.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e<t[ge];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[ve];return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,n){function r(t){var r=[];return e.each(t,function(t,e){var o,s=a.getDimensionInfo(e),l=s&&s.type;o=l===d?t+"":"time"===l?n?"":i.formatTime("yyyy/MM/dd hh:mm:ss",t):u(t),o&&r.push(o)}),r.join(", ")}var a=this._data,o=this.getRawValue(t),s=e[U](o)?r(o):u(o),c=a.getName(t),h=a[de](t,"color");e[le](h)&&h[ue]&&(h=(h[ue][0]||{}).color),h=h||"transparent";var f='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+h+'"></span>',p=this.name;return"\x00-"===p&&(p=""),n?f+l(this.name)+" : "+s:(p&&l(p)+"<br />")+f+(c?l(c)+" : "+s:s)},ifEnableAnimation:function(){if(o.node)return!1;var t=this[g](Ce);return t&&this[pe]().count()>this[g]("animationThreshold")&&(t=!1),t},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(t,e){var i=this[M],n=a.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipDataIndex:null,getTooltipPosition:null});return e.mixin(c,n.dataFormatMixin),e.mixin(c,a),c}),e("zrender/zrender",[Re,"./core/guid","./core/env","./core/util","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete h[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./core/util"),a=t("./Handler"),o=t("./Storage"),s=t("./animation/Animation"),l=t("./dom/HandlerProxy"),u=!n[we],c={canvas:t("./Painter")},h={},d={};d.version="3.2.2",d.init=function(t,e){var n=new f(i(),t,e);return h[n.id]=n,n},d.dispose=function(t){if(t)t.dispose();else{for(var e in h)h.hasOwnProperty(e)&&h[e].dispose();h={}}return d},d.getInstance=function(t){return h[t]},d.registerPainter=function(t,e){c[t]=e};var f=function(t,e,i){i=i||{},this.dom=e,this.id=t;var h=this,d=new o,f=i.renderer;if(u){if(!c.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&c[f]||(f="canvas");var p=new c[f](e,d,i);this[be]=d,this.painter=p;var v=n.node?null:new l(p.getViewportRoot());this.handler=new a(d,p,v,p.root),this[Ce]=new s({stage:{update:r.bind(this.flush,this)}}),this[Ce].start(),this._needsRefresh;var m=d.delFromMap,g=d.addToMap;d.delFromMap=function(t){var e=d.get(t);m.call(d,t),e&&e.removeSelfFromZr(h)},d.addToMap=function(t){g.call(d,t),t.addSelfToZr(h)}};return f[Ie]={constructor:f,getId:function(){return this.id},add:function(t){this[be].addRoot(t),this._needsRefresh=!0},remove:function(t){this[be].delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter[Ae](t.width,t[Pe]),this.handler[Ae]()},clearAnimation:function(){this[Ce].clear()},getWidth:function(){return this.painter[Te]()},getHeight:function(){return this.painter[Me]()},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler[re](t,e)},clear:function(){this[be].delRoot(),this.painter.clear()},dispose:function(){this[Ce].stop(),this.clear(),this[be].dispose(),this.painter.dispose(),this.handler.dispose(),this[Ce]=this[be]=this.painter=this.handler=null,e(this.id)}},d}),e(De,[Re],function(){function t(e){if(null==e||"object"!=typeof e)return e;var i=e,n=D.call(e);if("[object Array]"===n){i=[];for(var r=0,a=e[ge];a>r;r++)i[r]=t(e[r])}else if(z[n])i=e.constructor.from(e);else if(!k[n]&&!M(e)){i={};for(var o in e)e.hasOwnProperty(o)&&(i[o]=t(e[o]))}return i}function e(i,n,r){if(!b(n)||!b(i))return r?t(n):i;for(var a in n)if(n.hasOwnProperty(a)){var o=i[a],s=n[a];!b(s)||!b(o)||y(s)||y(o)||M(s)||M(o)||w(s)||w(o)?!r&&a in i||(i[a]=t(n[a],!0)):e(o,s,r)}return i}function i(t,i){for(var n=t[0],r=1,a=t[ge];a>r;r++)n=e(n,t[r],i);return n}function n(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function r(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function a(){return document[P]("canvas")}function o(){return I||(I=F.createCanvas()[L]("2d")),I}function s(t,e){if(t){if(t[me])return t[me](e);for(var i=0,n=t[ge];n>i;i++)if(t[i]===e)return i}return-1}function l(t,e){function i(){}var n=t[Ie];i[Ie]=e[Ie],t[Ie]=new i;for(var r in n)t[Ie][r]=n[r];t[Ie].constructor=t,t.superClass=e}function u(t,e,i){t=Ie in t?t[Ie]:t,e=Ie in e?e[Ie]:e,r(t,e,i)}function c(t){return t?typeof t==Le?!1:typeof t[ge]==W:void 0}function h(t,e,i){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,i);else if(t[ge]===+t[ge])for(var n=0,r=t[ge];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function d(t,e,i){if(t&&e){if(t.map&&t.map===N)return t.map(e,i);for(var n=[],r=0,a=t[ge];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function f(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===V)return t.reduce(e,i,n);for(var r=0,a=t[ge];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function p(t,e,i){if(t&&e){if(t[q]&&t[q]===E)return t[q](e,i);for(var n=[],r=0,a=t[ge];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function v(t,e,i){if(t&&e)for(var n=0,r=t[ge];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function m(t,e){var i=B.call(arguments,2);return function(){return t.apply(e,i[A](B.call(arguments)))}}function g(t){var e=B.call(arguments,1);return function(){return t.apply(this,e[A](B.call(arguments)))}}function y(t){return"[object Array]"===D.call(t)}function x(t){return typeof t===j}function _(t){return"[object String]"===D.call(t)}function b(t){var e=typeof t;return e===j||!!t&&"object"==e}function w(t){return!!k[D.call(t)]}function M(t){return"object"==typeof t&&typeof t.nodeType===W&&"object"==typeof t.ownerDocument}function T(){for(var t=0,e=arguments[ge];e>t;t++)if(null!=arguments[t])return arguments[t]}function S(){return Function.call.apply(B,arguments)}function C(t,e){if(!t)throw new Error(e)}var I,k={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},z={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},D=Object[Ie].toString,O=Array[Ie],R=O.forEach,E=O[q],B=O.slice,N=O.map,V=O.reduce,F={inherits:l,mixin:u,clone:t,merge:e,mergeAll:i,extend:n,defaults:r,getContext:o,createCanvas:a,indexOf:s,slice:S,find:v,isArrayLike:c,each:h,map:d,reduce:f,filter:p,bind:m,curry:g,isArray:y,isString:_,isObject:b,isFunction:x,isBuildInObject:w,isDom:M,retrieve:T,assert:C,noop:function(){}};return F}),e("zrender/mixin/Eventful",[Re],function(){var t=Array[Ie].slice,e=function(){this._$handlers={}};return e[Ie]={constructor:e,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][ge];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!0,ctx:i||this}),this},on:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][ge];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!1,ctx:i||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][ge]},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][ge];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][ge]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,n=i[ge];n>3&&(i=t.call(i,1));for(var r=this._$handlers[e],a=r[ge],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[ie](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var i=arguments,n=i[ge];n>4&&(i=t.call(i,1,i[ge]-1));for(var r=i[i[ge]-1],a=this._$handlers[e],o=a[ge],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[ie](s,1),o--):s++}}return this}},e}),e("zrender/tool/color",[Re],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[ge]&&"%"===e.charAt(e[ge]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[ge]&&"%"===t.charAt(t[ge]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function o(t,e,i){return t+(e-t)*i}function s(t){if(t){t+="";var e=t[X](/ /g,"")[ke]();if(e in g)return g[e].slice();if("#"!==e.charAt(0)){var i=e[me]("("),a=e[me](")");if(-1!==i&&a+1===e[ge]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),u=1;switch(o){case"rgba":if(4!==s[ge])return;u=r(s.pop());case"rgb":if(3!==s[ge])return;return[n(s[0]),n(s[1]),n(s[2]),u];case"hsla":if(4!==s[ge])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[ge])return;return l(s);default:return}}}else{if(4===e[ge]){var c=parseInt(e.substr(1),16);if(!(c>=0&&4095>=c))return;return[(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,1]}if(7===e[ge]){var c=parseInt(e.substr(1),16);if(!(c>=0&&16777215>=c))return;return[(16711680&c)>>16,(65280&c)>>8,255&c,1]}}}}function l(e){var i=(parseFloat(e[0])%360+360)%360/360,n=r(e[1]),o=r(e[2]),s=.5>=o?o*(n+1):o+n-o*n,l=2*o-s,u=[t(255*a(l,s,i+1/3)),t(255*a(l,s,i)),t(255*a(l,s,i-1/3))];return 4===e[ge]&&(u[3]=e[3]),u}function u(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function c(t,e){var i=s(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return m(i,4===i[ge]?"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[ge]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[ge]-1),a=Math.floor(r),s=Math.ceil(r),l=i[a],u=i[s],c=r-a;return n[0]=t(o(l[0],u[0],c)),n[1]=t(o(l[1],u[1],c)),n[2]=t(o(l[2],u[2],c)),n[3]=t(o(l[3],u[3],c)),n}}function f(e,n,r){if(n&&n[ge]&&e>=0&&1>=e){var a=e*(n[ge]-1),l=Math.floor(a),u=Math.ceil(a),c=s(n[l]),h=s(n[u]),d=a-l,f=m([t(o(c[0],h[0],d)),t(o(c[1],h[1],d)),t(o(c[2],h[2],d)),i(o(c[3],h[3],d))],"rgba");return r?{color:f,leftIndex:l,rightIndex:u,value:a}:f}}function p(t,i,n,a){return t=s(t),t?(t=u(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),m(l(t),"rgba")):void 0}function v(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),m(t,"rgba")):void 0}function m(t,e){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}var g={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};return{parse:s,lift:c,toHex:h,fastMapToColor:d,mapToColor:f,modifyHSL:p,modifyAlpha:v,stringify:m}}),e("zrender/core/timsort",[],function(){function t(t){for(var e=0;t>=l;)e|=1&t,t>>=1;return t+e}function e(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;n>a&&r(t[a],t[a-1])<0;)a++;i(t,e,a)}else for(;n>a&&r(t[a],t[a-1])>=0;)a++;return a-e}function i(t,e,i){for(i--;i>e;){var n=t[e];
|
|
t[e++]=t[i],t[i--]=n}}function n(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var a,o=t[n],s=e,l=n;l>s;)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function r(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])>0){for(s=n-r;s>l&&a(t,e[i+r+l])>0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;s>l&&a(t,e[i+r-l])<=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[i+c])>0?o=c+1:l=c}return l}function a(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])<0){for(s=r+1;s>l&&a(t,e[i+r-l])<0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=n-r;s>l&&a(t,e[i+r+l])>=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[i+c])<0?l=c:o=c+1}return l}function o(t,e){function i(t,e){d[y]=t,f[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&f[t-1]<=f[t]+f[t+1]||t>=2&&f[t-2]<=f[t]+f[t-1])f[t-1]<f[t+1]&&t--;else if(f[t]>f[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&f[t-1]<f[t+1]&&t--,s(t)}}function s(i){var n=d[i],o=f[i],s=d[i+1],u=f[i+1];f[i]=o+u,i===y-3&&(d[i+1]=d[i+2],f[i+1]=f[i+2]),y--;var c=a(t[s],t,n,o,0,e);n+=c,o-=c,0!==o&&(u=r(t[n+o-1],t,s,u,u-1,e),0!==u&&(u>=o?l(n,o,s,u):h(n,o,s,u)))}function l(i,n,o,s){var l=0;for(l=0;n>l;l++)x[l]=t[i+l];var c=0,h=o,d=i;if(t[d++]=t[h++],0!==--s){if(1===n){for(l=0;s>l;l++)t[d+l]=t[h+l];return void(t[d+s]=x[c])}for(var f,v,m,g=p;;){f=0,v=0,m=!1;do if(e(t[h],x[c])<0){if(t[d++]=t[h++],v++,f=0,0===--s){m=!0;break}}else if(t[d++]=x[c++],f++,v=0,1===--n){m=!0;break}while(g>(f|v));if(m)break;do{if(f=a(t[h],x,c,n,0,e),0!==f){for(l=0;f>l;l++)t[d+l]=x[c+l];if(d+=f,c+=f,n-=f,1>=n){m=!0;break}}if(t[d++]=t[h++],0===--s){m=!0;break}if(v=r(x[c],t,h,s,0,e),0!==v){for(l=0;v>l;l++)t[d+l]=t[h+l];if(d+=v,h+=v,s-=v,0===s){m=!0;break}}if(t[d++]=x[c++],1===--n){m=!0;break}g--}while(f>=u||v>=u);if(m)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===n){for(l=0;s>l;l++)t[d+l]=t[h+l];t[d+s]=x[c]}else{if(0===n)throw new Error;for(l=0;n>l;l++)t[d+l]=x[c+l]}}else for(l=0;n>l;l++)t[d+l]=x[c+l]}function h(i,n,o,s){var l=0;for(l=0;s>l;l++)x[l]=t[o+l];var c=i+n-1,h=s-1,d=o+s-1,f=0,v=0;if(t[d--]=t[c--],0!==--n){if(1===s){for(d-=n,c-=n,v=d+1,f=c+1,l=n-1;l>=0;l--)t[v+l]=t[f+l];return void(t[d]=x[h])}for(var m=p;;){var g=0,y=0,_=!1;do if(e(x[h],t[c])<0){if(t[d--]=t[c--],g++,y=0,0===--n){_=!0;break}}else if(t[d--]=x[h--],y++,g=0,1===--s){_=!0;break}while(m>(g|y));if(_)break;do{if(g=n-a(x[h],t,i,n,n-1,e),0!==g){for(d-=g,c-=g,n-=g,v=d+1,f=c+1,l=g-1;l>=0;l--)t[v+l]=t[f+l];if(0===n){_=!0;break}}if(t[d--]=x[h--],1===--s){_=!0;break}if(y=s-r(t[c],x,0,s,s-1,e),0!==y){for(d-=y,h-=y,s-=y,v=d+1,f=h+1,l=0;y>l;l++)t[v+l]=x[f+l];if(1>=s){_=!0;break}}if(t[d--]=t[c--],0===--n){_=!0;break}m--}while(g>=u||y>=u);if(_)break;0>m&&(m=0),m+=2}if(p=m,1>p&&(p=1),1===s){for(d-=n,c-=n,v=d+1,f=c+1,l=n-1;l>=0;l--)t[v+l]=t[f+l];t[d]=x[h]}else{if(0===s)throw new Error;for(f=d-(s-1),l=0;s>l;l++)t[f+l]=x[l]}}else for(f=d-(s-1),l=0;s>l;l++)t[f+l]=x[l]}var d,f,p=u,v=0,m=c,g=0,y=0;v=t[ge],2*c>v&&(m=v>>>1);var x=[];g=120>v?5:1542>v?10:119151>v?19:40,d=[],f=[],this.mergeRuns=n,this.forceMergeRuns=o,this.pushRun=i}function s(i,r,a,s){a||(a=0),s||(s=i[ge]);var u=s-a;if(!(2>u)){var c=0;if(l>u)return c=e(i,a,s,r),void n(i,a,s,a+c,r);var h=new o(i,r),d=t(u);do{if(c=e(i,a,s,r),d>c){var f=u;f>d&&(f=d),n(i,a,a+f,a+c,r),c=f}h.pushRun(a,c),h.mergeRuns(),u-=c,a+=c}while(0!==u);h.forceMergeRuns()}}var l=32,u=7,c=256;return s}),e("echarts/visual/seriesColor",[Re,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t){function i(i){var n=(i.visualColorAccessPath||"itemStyle.normal.color").split("."),r=i[pe](),a=i.get(n)||i.getColorFromPalette(i.get("name"));r.setVisual("color",a),t.isSeriesFiltered(i)||(typeof a!==j||a instanceof e||r.each(function(t){r.setItemVisual(t,"color",a(i[K](t)))}),r.each(function(t){var e=r[h](t),i=e.get(n,!0);null!=i&&r.setItemVisual(t,"color",i)}))}t.eachRawSeries(i)}}),e("echarts/preprocessor/backwardCompat",[Re,De,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[ge]&&(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[ge]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){u(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(De),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",ye]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],l=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],u=r.each;return function(t){u(t[ne],function(t){if(r[le](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var u=0;u<l[ge];u++)if(l[u]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),u(s,function(e){var i=t[e];i&&(r[U](i)||(i=[i]),u(i,function(t){n(t)}))})}}),e("echarts/loading/default",[Re,"../util/graphic",De],function(t){var e=t("../util/graphic"),i=t(De),n=Math.PI;return function(t,r){r=r||{},i[ae](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[Ae]=function(){var e=t[Te]()/2,i=t[Me]()/2;o.setShape({cx:e,cy:i});var n=o.shape.r;s.setShape({x:e-n,y:i-n,width:2*n,height:2*n}),a.setShape({x:0,y:0,width:t[Te](),height:t[Me]()})},l[Ae](),l}}),e("echarts/model/Model",[Re,De,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e,this[M]=i,this[C]=t}var i=t(De),n=t("../util/clazz");e[Ie]={constructor:e,init:null,mergeOption:function(t){i.merge(this[C],t,!0)},get:function(t,e){if(!t)return this[C];typeof t===Le&&(t=t.split("."));for(var i=this[C],n=this.parentModel,r=0;r<t[ge]&&(!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[C],n=null==i?i:i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[g](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[Se](t),this[M]);return a},isEmpty:function(){return null==this[C]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[C]))},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/data/List",[Re,"../model/Model","./DataDiffer",De,"../util/model"],function(t){function e(t){return f[U](t)||(t=[t]),t}function i(t,e){var i=t[c],n=new y(f.map(i,t.getDimensionInfo,t),t.hostModel);g(n,t);for(var r=n._storage={},a=t._storage,o=0;o<i[ge];o++){var s=i[o],l=a[s];r[s]=f[me](e,s)>=0?new l.constructor(a[s][ge]):a[s]}return n}var n=I,r=typeof window===I?global:window,a=typeof r.Float64Array===n?Array:r.Float64Array,o=typeof r.Int32Array===n?Array:r.Int32Array,s={"float":a,"int":o,ordinal:Array,number:Array,time:Array},l=t("../model/Model"),u=t("./DataDiffer"),f=t(De),p=t("../util/model"),v=f[le],m=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],g=function(t,e){f.each(m[A](e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},y=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[ge];r++){var a,o={};typeof t[r]===Le?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||W),n.push(a),i[a]=o}this[c]=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=y[Ie];x.type="list",x.hasItemOption=!0,x.getDimension=function(t){return isNaN(t)||(t=this[c][t]||t),t},x.getDimensionInfo=function(t){return f.clone(this._dimensionInfos[this.getDimension(t)])},x.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[c],o=t[ge],l=this._dimensionInfos,u=[],h={};e=e||[];for(var d=0;d<a[ge];d++){var f=l[a[d]],v=s[f.type];n[a[d]]=new v(o)}var m=this;i||(m.hasItemOption=!1),i=i||function(t,e,i,n){var r=p.getDataItemValue(t);return p.isDataItemOption(t)&&(m.hasItemOption=!0),p.converDataValue(r instanceof Array?r[n]:r,l[e])};for(var g=0;g<t[ge];g++){for(var y=t[g],x=0;x<a[ge];x++){var _=a[x],b=n[_];b[g]=i(y,_,g,x)}r.push(g)}for(var d=0;d<t[ge];d++){e[d]||t[d]&&null!=t[d].name&&(e[d]=t[d].name);var w=e[d]||"",M=t[d]&&t[d].id;!M&&w&&(h[w]=h[w]||0,M=w,h[w]>0&&(M+="__ec__"+h[w]),h[w]++),M&&(u[d]=M)}this._nameList=e,this._idList=u},x.count=function(){return this.indices[ge]},x.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},x.getValues=function(t,e,i){var n=[];f[U](t)||(i=e,e=t,t=this[c]);for(var r=0,a=t[ge];a>r;r++)n.push(this.get(t[r],e,i));return n},x.hasValue=function(t){for(var e=this[c],i=this._dimensionInfos,n=0,r=e[ge];r>n;n++)if(i[e[n]].type!==d&&isNaN(this.get(e[n],t)))return!1;return!0},x.getDataExtent=function(t,e){t=this.getDimension(t);var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,l=0,u=this.count();u>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+!!e]=[o,s]}return[1/0,-1/0]},x.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[me]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[ge];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},x.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[ge];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},x.indexOfRawIndex=function(t){var e=this.indices,i=e[t];if(null!=i&&i===t)return t;for(var n=0,r=e[ge]-1;r>=n;){var a=(n+r)/2|0;if(e[a]<t)n=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},x.indexOfNearest=function(t,e,i,n){var r=this._storage,a=r[t];null==n&&(n=1/0);var o=-1;if(a)for(var s=Number.MAX_VALUE,l=0,u=this.count();u>l;l++){var c=e-this.get(t,l,i),h=Math.abs(c);n>=c&&(s>h||h===s&&c>0)&&(s=h,o=l)}return o},x.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},x.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},x.getName=function(t){return this._nameList[this.indices[t]]||""},x.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},x.each=function(t,i,n,r){typeof t===j&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=t[ge],s=this.indices;r=r||this;for(var l=0;l<s[ge];l++)switch(o){case 0:i.call(r,l);break;case 1:i.call(r,this.get(t[0],l,n),l);break;case 2:i.call(r,this.get(t[0],l,n),this.get(t[1],l,n),l);break;default:for(var u=0;o>u;u++)a[u]=this.get(t[u],l,n);a[u]=l,i.apply(r,a)}},x.filterSelf=function(t,i,n,r){typeof t===j&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=[],s=t[ge],l=this.indices;r=r||this;for(var u=0;u<l[ge];u++){var c;if(1===s)c=i.call(r,this.get(t[0],u,n),u);else{for(var h=0;s>h;h++)o[h]=this.get(t[h],u,n);o[h]=u,c=i.apply(r,o)}c&&a.push(l[u])}return this.indices=a,this._extent={},this},x.mapArray=function(t,e,i,n){typeof t===j&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},x.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,u=[];return this.each(t,function(){var e=arguments[arguments[ge]-1],i=n&&n.apply(this,arguments);if(null!=i){typeof i===W&&(u[0]=i,i=u);for(var r=0;r<i[ge];r++){var a=t[r],o=l[a],c=s[e];o&&(o[c]=i[r])}}},r,a),o},x.downSample=function(t,e,n,r){for(var a=i(this,[t]),o=this._storage,s=a._storage,l=this.indices,u=a.indices=[],c=[],h=[],d=Math.floor(1/e),f=s[t],p=this.count(),v=0;v<o[t][ge];v++)s[t][v]=o[t][v];for(var v=0;p>v;v+=d){d>p-v&&(d=p-v,c[ge]=d);for(var m=0;d>m;m++){var g=l[v+m];c[m]=f[g],h[m]=g}var y=n(c),g=h[r(c,y)||0];f[g]=y,u.push(g)}return a},x[h]=function(t){var e=this.hostModel;return t=this.indices[t],new l(this._rawData[t],e,e&&e[M])},x.diff=function(t){var e,i=this._idList,n=t&&t._idList,r="e\x00\x00";return new u(t?t.indices:[],this.indices,function(t){return null!=(e=n[t])?e:r+t},function(t){return null!=(e=i[t])?e:r+t})},x.getVisual=function(t){var e=this._visual;return e&&e[t]},x.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},x.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},x.getLayout=function(t){return this._layout[t]},x.getItemLayout=function(t){return this._itemLayouts[t]},x.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?f[oe](this._itemLayouts[t]||{},e):e},x.clearItemLayouts=function(){this._itemLayouts[ge]=0},x[de]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},x.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},x.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var _=function(t){t.seriesIndex=this.seriesIndex,t[fe]=this[fe],t.dataType=this.dataType};return x.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[fe]=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e[Q](_,e)),this._graphicEls[t]=e},x[b]=function(t){return this._graphicEls[t]},x.eachItemGraphicEl=function(t,e){f.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},x.cloneShallow=function(){var t=f.map(this[c],this.getDimensionInfo,this),e=new y(t,this.hostModel);return e._storage=this._storage,g(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=f[oe]({},this._extent)),e},x.wrapMethod=function(t,e){var i=this[t];typeof i===j&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t][A](f.slice(arguments)))})},x.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],x.CHANGABLE_METHODS=["filterSelf"],y}),e("echarts/util/number",[Re],function(){function t(t){return t[X](/^\s+/,"")[X](/\s+$/,"")}var e={},i=1e-4;return e.linearMap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]},e.parsePercent=function(e,i){switch(e){case E:case B:e="50%";break;case"left":case"top":e="0%";break;case"right":case ye:e="100%"}return typeof e===Le?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t,e){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),+(+t).toFixed(e)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPrecisionSafe=function(t){var e=t.toString(),i=e[me](".");return 0>i?0:e[ge]-1-i},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);return Math.max(-r+a,0)},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-i&&i>t},e.parseDate=function(t){if(t instanceof Date)return t;if(typeof t===Le){var e=new Date(t);return isNaN(+e)&&(e=new Date(new Date(t[X](/-/g,"/"))-new Date("1970/01/01"))),e}return new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},e.nice=function(t,i){var n,r=e.quantity(t),a=t/r;return n=i?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,n*r},e.reformIntervals=function(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]===(n?-1:1)||!n&&e(t,i,1))}t.sort(function(t,i){return e(t,i,0)?-1:1});for(var i=-1/0,n=1,r=0;r<t[ge];){for(var a=t[r].interval,o=t[r].close,s=0;2>s;s++)a[s]<=i&&(a[s]=i,o[s]=s?1:1-n),i=a[s],n=o[s];a[0]===a[1]&&o[0]*o[1]!==1?t[ie](r,1):r++}return t},e}),e("echarts/util/format",[Re,De,"./number","zrender/contain/text"],function(t){var e=t(De),i=t("./number"),n=t("zrender/contain/text"),r={};r.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][X](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[ge]>1?"."+t[1]:""))},r.toCamelCase=function(t,e){return t=(t||"")[ke]()[X](/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},r.normalizeCssArray=function(t){var e=t[ge];return typeof t===W?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t},r.encodeHTML=function(t){return String(t)[X](/&/g,"&")[X](/</g,"<")[X](/>/g,">")[X](/"/g,""")[X](/'/g,"'")};var a=["a","b","c","d","e","f","g"],o=function(t,e){return"{"+t+(null==e?"":e)+"}"};r.formatTpl=function(t,i){e[U](i)||(i=[i]);var n=i[ge];if(!n)return"";for(var r=i[0].$vars||[],s=0;s<r[ge];s++){var l=a[s];t=t[X](o(l),o(l,0))}for(var u=0;n>u;u++)for(var c=0;c<r[ge];c++)t=t[X](o(a[c],u),i[u][r[c]]);return t};var s=function(t){return 10>t?"0"+t:t};return r.formatTime=function(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=i.parseDate(e),r=n.getFullYear(),a=n.getMonth()+1,o=n.getDate(),l=n.getHours(),u=n.getMinutes(),c=n.getSeconds();return t=t[X]("MM",s(a))[ke]()[X]("yyyy",r)[X]("yy",r%100)[X]("dd",s(o))[X]("d",o)[X]("hh",s(l))[X]("h",l)[X]("mm",s(u))[X]("m",u)[X]("ss",s(c))[X]("s",c)},r.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},r.truncateText=n.truncateText,r}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===I?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+o*u,t[1]=-n*u+o*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e(ze,[],function(){var t=typeof Float32Array===I?Array:Float32Array,e={create:function(e,i){var n=new t(2);return null==e&&(e=0),null==i&&(i=0),n[0]=e,n[1]=i,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[ge]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("echarts/chart/line/LineView",[Re,De,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",u,"../../util/model","./poly","../../view/Chart"],function(t){function e(t,e){if(t[ge]===e[ge]){for(var i=0;i<t[ge];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return typeof t===W?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function h(t,e){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=i.onZero?0:n.scale[z]()[0],o=n.dim,u="x"===o||o===l?1:0;return e.mapArray([o],function(n,l){for(var c,h=e.stackedOn;h&&r(h.get(o,l))===r(n);){c=h;break}var d=[];return d[u]=e.get(i.dim,l),d[1-u]=c?c.get(o,l,!0):a,t[s](d)},!0)}function f(t,e,i){var r=n(t[o]("x")),a=n(t[o]("y")),s=t.getBaseAxis().isHorizontal(),l=Math.min(r[0],r[1]),u=Math.min(a[0],a[1]),c=Math.max(r[0],r[1])-l,h=Math.max(a[0],a[1])-u,d=i.get("lineStyle.normal.width")||2,f=i.get("clipOverflow")?d/2:Math.max(c,h);s?(u-=f,h+=2*f):(l-=f,c+=2*f);var p=new M.Rect({shape:{x:l,y:u,width:c,height:h}});return e&&(p.shape[s?"width":Pe]=0,M.initProps(p,{shape:{width:c,height:h}},i)),p}function p(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[z](),o=n[z](),s=Math.PI/180,l=new M.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n.inverse}});return e&&(l.shape.endAngle=-o[0]*s,M.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function v(t,e,i){return"polar"===t.type?p(t,e,i):f(t,e,i)}function m(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||n.dim===l?0:1,a=[],o=0;o<t[ge]-1;o++){var s=t[o+1],u=t[o];a.push(u);var c=[];switch(i){case"end":c[r]=s[r],c[1-r]=u[1-r],a.push(c);break;case B:var h=(u[r]+s[r])/2,d=[];c[r]=d[r]=h,c[1-r]=u[1-r],d[1-r]=s[1-r],a.push(c),a.push(d);break;default:c[r]=u[r],c[1-r]=s[1-r],a.push(c)}}return t[o]&&a.push(t[o]),a}function g(t,e){var i=t.getVisual("visualMeta");if(i&&i[ge]&&t.count()){for(var n,r=i[ge]-1;r>=0;r--)if(i[r].dimension<2){n=i[r];break}if(n&&"cartesian2d"===e.type){var s=n.dimension,l=t[c][s],u=e[o](l),h=y.map(n.stops,function(t){return{coord:u.toGlobalCoord(u[a](t.value)),color:t.color}}),d=h[ge],f=n.outerColors.slice();d&&h[0].coord>h[d-1].coord&&(h.reverse(),f.reverse());var p=10,v=h[0].coord-p,m=h[d-1].coord+p,g=m-v;if(.001>g)return"transparent";y.each(h,function(t){t.offset=(t.coord-v)/g}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var x=new M.LinearGradient(0,0,0,0,h,!0);return x[l]=v,x[l+"2"]=m,x}}}var y=t(De),x=t("../helper/SymbolDraw"),_=t("../helper/Symbol"),w=t("./lineAnimationDiff"),M=t(u),T=t("../../util/model"),S=t("./poly"),C=t("../../view/Chart");return C[oe]({type:"line",init:function(){var t=new M.Group,e=new x;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var a=t[ve],o=this.group,s=t[pe](),l=t[Se]("lineStyle.normal"),u=t[Se]("areaStyle.normal"),c=s.mapArray(s.getItemLayout,!0),d="polar"===a.type,f=this._coordSys,p=this._symbolDraw,x=this._polyline,_=this._polygon,b=this._lineGroup,w=t.get(Ce),M=!u.isEmpty(),T=h(a,s),S=t.get("showSymbol"),C=S&&!d&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(s,a),A=this._data;A&&A.eachItemGraphicEl(function(t,e){t.__temp&&(o[se](t),A.setItemGraphicEl(e,null))}),S||p[se](),o.add(b);var P=!d&&t.get("step");x&&f.type===a.type&&P===this._step?(M&&!_?_=this._newPolygon(c,T,a,w):_&&!M&&(b[se](_),_=this._polygon=null),b.setClipPath(v(a,!1,t)),S&&p.updateData(s,C),s.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,T)&&e(this._points,c)||(w?this._updateAnimation(s,T,a,r,P):(P&&(c=m(c,a,P),T=m(T,a,P)),x.setShape({points:c}),_&&_.setShape({points:c,stackedOnPoints:T})))):(S&&p.updateData(s,C),P&&(c=m(c,a,P),T=m(T,a,P)),x=this._newPolyline(c,a,w),M&&(_=this._newPolygon(c,T,a,w)),b.setClipPath(v(a,!0,t)));var L=g(s,a)||s.getVisual("color");x.useStyle(y[ae](l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"}));var I=t.get("smooth");if(I=i(t.get("smooth")),x.setShape({smooth:I,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),_){var k=s.stackedOn,z=0;if(_.useStyle(y[ae](u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel"})),k){var D=k.hostModel;z=i(D.get("smooth"))}_.setShape({smooth:I,stackedOnSmooth:z,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=s,this._coordSys=a,this._stackedOnPoints=T,this._points=c,this._step=P},dispose:function(){},highlight:function(t,e,i,n){var r=t[pe](),a=T.queryDataIndex(r,n);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r[b](a);if(!o){var s=r.getItemLayout(a);if(!s)return;o=new _(r,a),o[R]=s,o.setZ(t.get(Y),t.get("z")),o[xe]=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else C[Ie].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[pe](),a=T.queryDataIndex(r,n);if(null!=a&&a>=0){var o=r[b](a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group[se](o)):o.downplay())}else C[Ie].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup[se](e),e=new S.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[se](i),i=new S.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(d)[0];return i&&i.isLabelIgnored?y.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n,r){var a=this._polyline,o=this._polygon,s=t.hostModel,l=w(this._data,t,this._stackedOnPoints,e,this._coordSys,i),u=l.current,c=l.stackedOnCurrent,h=l.next,d=l.stackedOnNext;r&&(u=m(l.current,i,r),c=m(l.stackedOnCurrent,i,r),h=m(l.next,i,r),d=m(l.stackedOnNext,i,r)),a.shape.__points=l.current,a.shape.points=u,M.updateProps(a,{shape:{points:h}},s),o&&(o.setShape({points:u,stackedOnPoints:c}),M.updateProps(o,{shape:{points:h,stackedOnPoints:d}},s));for(var f=[],p=l.status,v=0;v<p[ge];v++){var g=p[v].cmd;if("="===g){var y=t[b](p[v].idx1);y&&f.push({el:y,ptIdx:v})}}a.animators&&a.animators[ge]&&a.animators[0].during(function(){for(var t=0;t<f[ge];t++){var e=f[t].el;e.attr(R,a.shape.__points[f[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup[H](),this._symbolDraw[se](!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t[se](i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/chart/line/LineSeries",[Re,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[oe]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})}),e("echarts/layout/points",[Re],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[pe](),i=t[ve];if(i){var n=i[c];"singleAxis"===i.type?e.each(n[0],function(t,n){e.setItemLayout(n,isNaN(t)?[0/0,0/0]:i[s](t))}):e.each(n,function(t,n,r){e.setItemLayout(r,isNaN(t)||isNaN(n)?[0/0,0/0]:i[s]([t,n]))},!0)}})}}),e("echarts/visual/symbol",[Re],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[pe](),a=t.get("symbol")||e,o=t.get("symbolSize");r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===j&&r.each(function(e){var i=t.getRawValue(e),n=t[K](e);r.setItemVisual(e,"symbolSize",o(i,n))}),r.each(function(t){var e=r[h](t),i=e[g]("symbol",!0),n=e[g]("symbolSize",!0);null!=i&&r.setItemVisual(t,"symbol",i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,i=0,n=0;n<t[ge];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[ge];i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t[ge];i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t[ge];i++)t[i]<e&&(e=t[i]);return e},nearest:function(t){return t[0]}},e=function(t){return Math.round(t[ge]/2)};return function(i,n){n.eachSeriesByType(i,function(i){var n=i[pe](),r=i.get("sampling"),a=i[ve];if("cartesian2d"===a.type&&r){var o=a.getBaseAxis(),s=a.getOtherAxis(o),l=o[z](),u=l[1]-l[0],c=Math.round(n.count()/u);if(c>1){var h;typeof r===Le?h=t[r]:typeof r===j&&(h=r),h&&(n=n.downSample(s.dim,1/c,h,e),i.setData(n))}}},this)}}),e("echarts/coord/cartesian/Grid",[Re,"exports","../../util/layout","../../coord/axisHelper",De,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e){return t.findGridModel()===e}function i(t){var e,i=t.model,n=i.getFormattedLabels(),r=i[Se]("axisLabel.textStyle"),a=1,o=n[ge];o>40&&(a=Math.ceil(o/40));for(var s=0;o>s;s+=a)if(!t.isLabelIgnored(s)){var l=r.getTextRect(n[s]);e?e.union(l):e=l}return e}function n(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function l(t,e){var i=t[z](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function u(t){return v.map(w,function(e){var i=t.getReferringComponents(e)[0];return i})}function h(t){return"cartesian2d"===t.get(ve)}var f=t("../../util/layout"),p=t("../../coord/axisHelper"),v=t(De),m=t("./Cartesian2D"),g=t("./Axis2D"),y=v.each,x=p.ifAxisCrossZero,_=p.niceScaleExtent;t("./GridModel");var b=n[Ie];b.type="grid",b.getRect=function(){return this._rect},b[ce]=function(t,e){function i(t){var e=n[t];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];if(a&&(a.type===r||!x(a)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this._model),y(n.x,function(t){_(t,t.model)}),y(n.y,function(t){_(t,t.model)}),y(n.x,function(t){i("y")&&(t.onZero=!1)}),y(n.y,function(t){i("x")&&(t.onZero=!1)
|
|
}),this[Ae](this._model,e)},b[Ae]=function(t,e){function n(){y(a,function(t){var e=t.isHorizontal(),i=e?[0,r.width]:[0,r[Pe]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),l(t,e?r.x:r.y)})}var r=f.getLayoutRect(t.getBoxLayoutParams(),{width:e[Te](),height:e[Me]()});this._rect=r;var a=this._axesList;n(),t.get("containLabel")&&(y(a,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?Pe:"width",a=t.model.get("axisLabel.margin");r[n]-=e[n]+a,"top"===t[R]?r.y+=e[Pe]+a:"left"===t[R]&&(r.x+=e.width+a)}}}),n())},b[o]=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},b.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}for(var n=0,r=this._coordsList;n<r[ge];n++)if(r[n][o]("x").index===t||r[n][o]("y").index===e)return r[n]},b.convertToPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian[s](i):n.axis?n.axis.toGlobalCoord(n.axis[a](i)):null},b.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},b._findConvertTarget=function(t,e){var i,n,r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],s=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],l=e.gridModel,u=this._coordsList;if(r)i=r[ve],v[me](u,i)<0&&(i=null);else if(a&&s)i=this.getCartesian(a[T],s[T]);else if(a)n=this[o]("x",a[T]);else if(s)n=this[o]("y",s[T]);else if(l){var c=l[ve];c===this&&(i=this._coordsList[0])}return{cartesian:i,axis:n}},b.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},b._initCartesian=function(t,i){function n(n){return function(l,u){if(e(l,t,i)){var c=l.get(R);"x"===n?"top"!==c&&c!==ye&&(c=ye,a[c]&&(c="top"===c?ye:"top")):"left"!==c&&"right"!==c&&(c="left",a[c]&&(c="left"===c?"right":"left")),a[c]=!0;var h=new g(n,p.createScaleByModel(l),[0,0],l.get("type"),c),d=h.type===r;h.onBand=d&&l.get("boundaryGap"),h.inverse=l.get("inverse"),h.onZero=l.get("axisLine.onZero"),l.axis=h,h.model=l,h.grid=this,h.index=u,this._axesList.push(h),o[n][u]=h,s[n]++}}}var a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};return i[_e]("xAxis",n("x"),this),i[_e]("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=o,void y(o.x,function(t,e){y(o.y,function(i,n){var r="x"+e+"y"+n,a=new m(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=[]))},b._updateScale=function(t,i){function n(t,e,i){y(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==d))})}v.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(r){if(h(r)){var a=u(r,t),s=a[0],l=a[1];if(!e(s,i,t)||!e(l,i,t))return;var c=this.getCartesian(s[T],l[T]),d=r[pe](),f=c[o]("x"),p=c[o]("y");"list"===d.type&&(n(d,f,r),n(d,p,r))}},this)};var w=["xAxis","yAxis"];return n[he]=function(t,e){var i=[];return t[_e]("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o[Ae](r,e),r[ve]=o,i.push(o)}),t.eachSeries(function(e){if(h(e)){var i=u(e,t),n=i[0],r=i[1],a=n.findGridModel(),o=a[ve];e[ve]=o.getCartesian(n[T],r[T])}}),i},n[c]=m[Ie][c],t("../../CoordinateSystem").register("cartesian2d",n),n}),e("echarts/chart/bar/BarSeries",[Re,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),i=t("../helper/createListFromArray");return e[oe]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},getMarkerPosition:function(t){var e=this[ve];if(e){var i=e[s](t,!0),n=this[pe](),r=n.getLayout("offset"),a=n.getLayout("size"),o=e.getBaseAxis().isHorizontal()?0:1;return i[o]+=r+a/2,i}return[0/0,0/0]},brushSelector:"rect",defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,itemStyle:{normal:{},emphasis:{}}}})}),e("echarts/chart/bar/BarView",[Re,De,u,"../../model/Model","./barItemStyle","../../echarts"],function(t){function e(t,e){var i=t.width>0?1:-1,n=t[Pe]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[Pe])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[Pe]-=n*e}var i=t(De),n=t(u);return i[oe](t("../../model/Model")[Ie],t("./barItemStyle")),t("../../echarts").extendChartView({type:"bar",render:function(t,e,i){var n=t.get(ve);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},dispose:i.noop,_renderOnCartesian:function(t){function r(r,a){var s=o.getItemLayout(r),l=o[h](r).get(f)||0;e(s,l);var u=new n.Rect({shape:i[oe]({},s)});if(d){var p=u.shape,v=c?Pe:"width",m={};p[v]=0,m[v]=s[v],n[a?"updateProps":"initProps"](u,{shape:m},t,r)}return u}var a=this.group,o=t[pe](),s=this._data,l=t[ve],u=l.getBaseAxis(),c=u.isHorizontal(),d=t.get(Ce),f=["itemStyle",w,"barBorderWidth"];o.diff(s).add(function(t){if(o.hasValue(t)){var e=r(t);o.setItemGraphicEl(t,e),a.add(e)}})[ce](function(i,l){var u=s[b](l);if(!o.hasValue(i))return void a[se](u);u||(u=r(i,!0));var c=o.getItemLayout(i),d=o[h](i).get(f)||0;e(c,d),n.updateProps(u,{shape:c},t,i),o.setItemGraphicEl(i,u),a.add(u)})[se](function(e){var i=s[b](e);i&&(i.style.text="",n.updateProps(i,{shape:{width:0}},t,e,function(){a[se](i)}))}).execute(),this._updateStyle(t,o,c),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),u=e[de](s,"color"),c=e[de](s,O),d=e.getItemLayout(s),p=l[Se]("itemStyle.normal"),v=l[Se]("itemStyle.emphasis").getBarItemStyle();o.setShape("r",p.get("barBorderRadius")||0),o.useStyle(i[ae]({fill:u,opacity:c},p.getBarItemStyle()));var m=r?d[Pe]>0?ye:"top":d.width>0?"left":"right",g=l[Se]("label.normal"),y=l[Se]("label.emphasis"),x=o.style;g.get("show")?a(x,g,u,i[f](t.getFormattedLabel(s,w),t.getRawValue(s)),m):x.text="",y.get("show")?a(v,y,u,i[f](t.getFormattedLabel(s,"emphasis"),t.getRawValue(s)),m):v.text="",n.setHoverStyle(o,v)})},remove:function(t){var e=this.group;t.get(Ce)?this._data&&this._data.eachItemGraphicEl(function(i){i.style.text="",n.updateProps(i,{shape:{width:0}},t,i[fe],function(){e[se](i)})}):e[H]()}})}),e("echarts/chart/pie/PieSeries",[Re,"../../data/List",De,"../../util/model","../../data/helper/completeDimensions","../../component/helper/selectableMixin","../../echarts"],function(t){var e=t("../../data/List"),i=t(De),n=t("../../util/model"),r=t("../../data/helper/completeDimensions"),a=t("../../component/helper/selectableMixin"),o=t("../../echarts").extendSeriesModel({type:"series.pie",init:function(t){o.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){o.superCall(this,"mergeOption",t),this.updateSelectedMap(this[C].data)},getInitialData:function(t){var i=r(["value"],t.data),n=new e(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this._data,i=o.superCall(this,K,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[w],i=t.labelLine.emphasis;e.show=e.show&&t.label[w].show,i.show=i.show&&t.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationEasing:"cubicOut",data:[]}});return i.mixin(o,a),o}),e("echarts/chart/pie/PieView",[Re,u,De,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[pe](),o=this[fe],s=a.getName(o),l=e.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a[b](t),a.getItemLayout(t),e.isSelected(a.getName(t)),l,n)})}function i(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,u=[o*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr(R,u)}function n(t,e){function i(){o[xe]=o.hoverIgnore,s[xe]=s.hoverIgnore}function n(){o[xe]=o.normalIgnore,s[xe]=s.normalIgnore}a.Group.call(this);var r=new a.Sector({z2:2}),o=new a.Polyline,s=new a.Text;this.add(r),this.add(o),this.add(s),this.updateData(t,e,!0),this.on("emphasis",i).on(w,n).on(ee,i).on(te,n)}function r(t,e,i,n,r){var a=n[Se](G),s=r===m||"inner"===r;return{fill:a.getTextColor()||(s?"#fff":t[de](e,"color")),opacity:t[de](e,O),textFont:a[V](),text:o[f](t.hostModel.getFormattedLabel(e,i),t.getName(e))}}var a=t(u),o=t(De),s=n[Ie];s.updateData=function(t,e,n){function r(){l.stopAnimation(!0),l.animateTo({shape:{r:d.r+10}},300,"elasticOut")}function s(){l.stopAnimation(!0),l.animateTo({shape:{r:d.r}},300,"elasticOut")}var l=this.childAt(0),u=t.hostModel,c=t[h](e),d=t.getItemLayout(e),f=o[oe]({},d);f.label=null,n?(l.setShape(f),l.shape.endAngle=d.startAngle,a.updateProps(l,{shape:{endAngle:d.endAngle}},u,e)):a.updateProps(l,{shape:f},u,e);var p=c[Se]("itemStyle"),v=t[de](e,"color");l.useStyle(o[ae]({lineJoin:"bevel",fill:v},p[Se](w).getItemStyle())),l.hoverStyle=p[Se]("emphasis").getItemStyle(),i(this,t.getItemLayout(e),c.get("selected"),u.get("selectedOffset"),u.get(Ce)),l.off(ee).off(te).off("emphasis").off(w),c.get("hoverAnimation")&&u.ifEnableAnimation()&&l.on(ee,r).on(te,s).on("emphasis",r).on(w,s),this._updateLabel(t,e),a.setHoverStyle(this)},s._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),o=t.hostModel,s=t[h](e),l=t.getItemLayout(e),u=l.label,c=t[de](e,"color");a.updateProps(i,{shape:{points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]}},o,e),a.updateProps(n,{style:{x:u.x,y:u.y}},o,e),n.attr({style:{textVerticalAlign:u.verticalAlign,textAlign:u[F],textFont:u.font},rotation:u[p],origin:[u.x,u.y],z2:10});var d=s[Se]("label.normal"),f=s[Se]("label.emphasis"),v=s[Se]("labelLine.normal"),m=s[Se]("labelLine.emphasis"),g=d.get(R)||f.get(R);n[$](r(t,e,w,d,g)),n[xe]=n.normalIgnore=!d.get("show"),n.hoverIgnore=!f.get("show"),i[xe]=i.normalIgnore=!v.get("show"),i.hoverIgnore=!m.get("show"),i[$]({stroke:c,opacity:t[de](e,O)}),i[$](v[Se]("lineStyle").getLineStyle()),n.hoverStyle=r(t,e,"emphasis",f,g),i.hoverStyle=m[Se]("lineStyle").getLineStyle();var y=v.get("smooth");y&&y===!0&&(y=.4),i.setShape({smooth:y})},o[Z](n,a.Group);var l=t("../../view/Chart")[oe]({type:"pie",init:function(){var t=new a.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var s=t[pe](),l=this._data,u=this.group,c=i.get(Ce),h=!l,d=o.curry(e,this.uid,t,c,r),f=t.get("selectedMode");if(s.diff(l).add(function(t){var e=new n(s,t);h&&e.eachChild(function(t){t.stopAnimation(!0)}),f&&e.on("click",d),s.setItemGraphicEl(t,e),u.add(e)})[ce](function(t,e){var i=l[b](e);i.updateData(s,t),i.off("click"),f&&i.on("click",d),u.add(i),s.setItemGraphicEl(t,i)})[se](function(t){var e=l[b](t);u[se](e)}).execute(),c&&h&&s.count()>0){var p=s.getItemLayout(0),v=Math.max(r[Te](),r[Me]())/2,m=o.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(p.cx,p.cy,v,p.startAngle,p.clockwise,m,t))}this._data=s}},dispose:function(){},_createClipPath:function(t,e,i,n,r,o,s){var l=new a.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),l},containPoint:function(t,e){var i=e[pe](),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,a=t[1]-n.cy,o=Math.sqrt(r*r+a*a);return o<=n.r&&o>=n.r0}}});return l}),e("echarts/layout/barGrid",[Re,De,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function i(t){return t.dim+t.index}function n(t){var n={};s.each(t,function(t){var a=t[pe](),o=t[ve],s=o.getBaseAxis(),l=s[z](),c=s.type===r?s.getBandWidth():Math.abs(l[1]-l[0])/a.count(),h=n[i(s)]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;n[i(s)]=h;var f=e(t);d[f]||h.autoWidthCount++,d[f]=d[f]||{width:0,maxWidth:0};var p=u(t.get("barWidth"),c),v=u(t.get("barMaxWidth"),c),m=t.get("barGap"),g=t.get("barCategoryGap");p&&!d[f].width&&(p=Math.min(h.remainedWidth,p),d[f].width=p,h.remainedWidth-=p),v&&(d[f].maxWidth=v),null!=m&&(h.gap=m),null!=g&&(h.categoryGap=g)});var a={};return s.each(n,function(t,e){a[e]={};var i=t.stacks,n=t.bandWidth,r=u(t.categoryGap,n),o=u(t.gap,1),l=t.remainedWidth,c=t.autoWidthCount,h=(l-r)/(c+(c-1)*o);h=Math.max(h,0),s.each(i,function(t){var e=t.maxWidth;!t.width&&e&&h>e&&(e=Math.min(e,l),l-=e,t.width=e,c--)}),h=(l-r)/(c+(c-1)*o),h=Math.max(h,0);var d,f=0;s.each(i,function(t){t.width||(t.width=h),d=t,f+=t.width*(1+o)}),d&&(f-=d.width*o);var p=-f/2;s.each(i,function(t,i){a[e][i]=a[e][i]||{offset:p,width:t.width},p+=t.width*(1+o)})}),a}function o(t,r){var o=n(s[q](r.getSeriesByType(t),function(t){return!r.isSeriesFiltered(t)&&t[ve]&&"cartesian2d"===t[ve].type})),l={},u={};r.eachSeriesByType(t,function(t){var n=t[pe](),r=t[ve],s=r.getBaseAxis(),c=e(t),h=o[i(s)][c],d=h.offset,f=h.width,p=r.getOtherAxis(s),v=t.get("barMinHeight")||0,m=s.onZero?p.toGlobalCoord(p[a](0)):p.getGlobalExtent()[0],g=r.dataToPoints(n,!0);l[c]=l[c]||[],u[c]=u[c]||[],n.setLayout({offset:d,size:f}),n.each(p.dim,function(t,e){if(!isNaN(t)){l[c][e]||(l[c][e]={p:m,n:m},u[c][e]={p:m,n:m});var i,r,a,o,s=t>=0?"p":"n",h=g[e],y=l[c][e][s],x=u[c][e][s];p.isHorizontal()?(i=y,r=h[1]+d,a=h[0]-x,o=f,u[c][e][s]+=a,Math.abs(a)<v&&(a=(0>a?-1:1)*v),l[c][e][s]+=a):(i=h[0]+d,r=y,a=f,o=h[1]-x,u[c][e][s]+=o,Math.abs(o)<v&&(o=(0>=o?-1:1)*v),l[c][e][s]+=o),n.setItemLayout(e,{x:i,y:r,width:a,height:o})}},!0)},this)}var s=t(De),l=t("../util/number"),u=l.parsePercent;return o}),e("echarts/visual/dataColor",[Re],function(){return function(t,e){var i={};e.eachRawSeriesByType(t,function(t){var n=t.getRawData(),r={};if(!e.isSeriesFiltered(t)){var a=t[pe]();a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),n.each(function(e){var o=n[h](e),s=r[e],l=null!=s&&a[de](s,"color",!0);if(l)n.setItemVisual(e,"color",l);else{var u=o.get("itemStyle.normal.color")||t.getColorFromPalette(n.getName(e),i);n.setItemVisual(e,"color",u),null!=s&&a.setItemVisual(s,"color",u)}})}})}}),e("echarts/action/createDataSelectAction",[Re,"../echarts",De],function(t){var e=t("../echarts"),i=t(De);return function(t,n){i.each(n,function(i){i[ce]="updateView",e.registerAction(i,function(e,n){var r={};return n[_e]({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[pe]();n.each(function(e){var i=n.getName(e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/chart/pie/pieLayout",[Re,"../../util/number","./labelLayout",De],function(t){var e=t("../../util/number"),i=e.parsePercent,n=t("./labelLayout"),r=t(De),a=2*Math.PI,o=Math.PI/180;return function(t,s,u){s.eachSeriesByType(t,function(t){var s=t.get(E),c=t.get(l);r[U](c)||(c=[0,c]),r[U](s)||(s=[s,s]);var h=u[Te](),d=u[Me](),f=Math.min(h,d),p=i(s[0],h),v=i(s[1],d),m=i(c[0],f/2),g=i(c[1],f/2),y=t[pe](),x=-t.get("startAngle")*o,_=t.get("minAngle")*o,b=y.getSum("value"),w=Math.PI/(b||y.count())*2,M=t.get("clockwise"),T=t.get("roseType"),S=y.getDataExtent("value");S[0]=0;var C=a,A=0,P=x,L=M?1:-1;if(y.each("value",function(t,i){var n;n="area"!==T?0===b?w:t*w:a/(y.count()||1),_>n?(n=_,C-=_):A+=t;var r=P+L*n;y.setItemLayout(i,{angle:n,startAngle:P,endAngle:r,clockwise:M,cx:p,cy:v,r0:m,r:T?e.linearMap(t,S,[m,g]):g}),P=r},!0),a>C)if(.001>=C){var I=a/y.count();y.each(function(t){var e=y.getItemLayout(t);e.startAngle=x+L*t*I,e.endAngle=x+L*(t+1)*I})}else w=C/A,P=x,y.each("value",function(t,e){var i=y.getItemLayout(e),n=i.angle===_?_:t*w;i.startAngle=P,i.endAngle=P+L*n,P+=L*n});n(t,g,h,d)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e.findComponents({mainType:"legend"});i&&i[ge]&&e.eachSeriesByType(t,function(t){var e=t[pe]();e.filterSelf(function(t){for(var n=e.getName(t),r=0;r<i[ge];r++)if(!i[r].isSelected(n))return!1;return!0},this)},this)}}),e("echarts/component/axis",[Re,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/component/legend/LegendModel",[Re,De,"../../model/Model","../../echarts"],function(t){var e=t(De),i=t("../../model/Model"),n=t("../../echarts").extendComponentModel({type:"legend",dependencies:[ne],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){n.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this[M]);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t[ge];i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var n=e.map(this.get("data")||[],function(t){return(typeof t===Le||typeof t===W)&&(t={name:t}),new i(t,this,this[M])},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[A](e.mapArray(e.getName))}}),this._availableNames=r},getData:function(){return this._data},select:function(t){var i=this[C].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[C].selected[t]=!1)},toggleSelected:function(t){var e=this[C].selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[C].selected;return!(i.hasOwnProperty(t)&&!i[t])&&e[me](this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});return n}),e("echarts/component/legend/legendAction",[Re,"../../echarts",De],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i[_e]("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[pe]();n.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a[e]=e in a?a[e]&&n:n}})}),{name:e.name,selected:a}}var i=t("../../echarts"),n=t(De);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/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[ge]&&t.filterSeries(function(t){for(var i=0;i<e[ge];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/component/legend/LegendView",[Re,De,"../../util/symbol",u,"../helper/listComponent","../../echarts"],function(t){function e(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function i(t,e,i){var n=i.getZr()[be].getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){var n=i.getZr()[be].getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var r=t(De),a=t("../../util/symbol"),o=t(u),s=t("../helper/listComponent"),l=r.curry;return t("../../echarts").extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,u){var c=this.group;if(c[H](),t.get("show")){var h=t.get("selectedMode"),d=t.get("align");"auto"===d&&(d="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var f={};r.each(t[pe](),function(r){var s=r.get("name");if(""===s||"\n"===s)return void c.add(new o.Group({newline:!0}));var p=a.getSeriesByName(s)[0];if(!f[s])if(p){var v=p[pe](),m=v.getVisual("color");typeof m===j&&(m=m(p[K](0)));var g=v.getVisual("legendSymbol")||"roundRect",y=v.getVisual("symbol"),x=this._createItem(s,r,t,g,y,d,m,h);x.on("click",l(e,s,u)).on(ee,l(i,p,null,u)).on(te,l(n,p,null,u)),f[s]=!0}else a.eachRawSeries(function(a){if(!f[s]&&a.legendDataProvider){var o=a.legendDataProvider(),c=o.indexOfName(s);if(0>c)return;var p=o[de](c,"color"),v="roundRect",m=this._createItem(s,r,t,v,null,d,p,h);m.on("click",l(e,s,u)).on(ee,l(i,a,s,u)).on(te,l(n,a,s,u)),f[s]=!0}},this)},this),s.layout(c,t,u),s.addBackground(c,t)}},_createItem:function(t,e,i,n,s,l,u,c){var h=i.get("itemWidth"),d=i.get("itemHeight"),f=i.get("inactiveColor"),p=i.isSelected(t),v=new o.Group,m=e[Se](G),g=e.get("icon"),y=e[Se]("tooltip"),x=y.parentModel;if(n=g||n,v.add(a.createSymbol(n,0,0,h,d,p?u:f)),!g&&s&&(s!==n||"none"==s)){var _=.8*d;"none"===s&&(s="circle"),v.add(a.createSymbol(s,(h-_)/2,(d-_)/2,_,_,p?u:f))}var b="left"===l?h+5:-5,w=l,M=i.get("formatter"),S=t;typeof M===Le&&M?S=M[X]("{name}",null!=t?t:""):typeof M===j&&(S=M(t));var A=new o.Text({style:{text:S,x:b,y:d/2,fill:p?m.getTextColor():f,textFont:m[V](),textAlign:w,textVerticalAlign:"middle"}});v.add(A);var P=new o.Rect({shape:v[N](),invisible:!0,tooltip:y.get("show")?r[oe]({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i[T],name:t,$vars:["name"]}},y[C]):null});return v.add(P),v.eachChild(function(t){t.silent=!0}),P.silent=!c,this.group.add(v),o.setHoverStyle(v),v}})}),e("echarts/util/layout",[Re,De,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l[R],f=l[N](),p=e.childAt(u+1),v=p&&p[N]();if("horizontal"===t){var m=f.width+(v?-v.x+f.x:0);c=a+m,c>n||l.newline?(a=0,c=m,o+=s+i,s=f[Pe]):s=Math.max(s,f[Pe])}else{var g=f[Pe]+(v?-v.y+f.y:0);h=o+g,h>r||l.newline?(a+=s+i,o=0,h=g,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=c+i:o=h+i)})}var i=t(De),n=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r.parsePercent,s=i.each,l={},u=l.LOCATION_PARAMS=["left","right","top",ye,"width",Pe];return l.box=e,l.vbox=i.curry(e,"vertical"),l.hbox=i.curry(e,"horizontal"),l.getAvailableSize=function(t,e,i){var n=e.width,r=e[Pe],s=o(t.x,n),l=o(t.y,r),u=o(t.x2,n),c=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=a.normalizeCssArray(i||0),{width:Math.max(u-s-i[1]-i[3],0),height:Math.max(c-l-i[0]-i[2],0)}},l.getLayoutRect=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[Pe],l=o(t.left,r),u=o(t.top,s),c=o(t.right,r),h=o(t[ye],s),d=o(t.width,r),f=o(t[Pe],s),p=i[2]+i[0],v=i[1]+i[3],m=t.aspect;switch(isNaN(d)&&(d=r-c-v-l),isNaN(f)&&(f=s-h-p-u),isNaN(d)&&isNaN(f)&&(m>r/s?d=.8*r:f=.8*s),null!=m&&(isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=r-c-d-v),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case E:l=r/2-d/2-i[3];break;case"right":l=r-d-v}switch(t.top||t[ye]){case B:case E:u=s/2-f/2-i[0];break;case ye:u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=r-l-(c||0)),isNaN(f)&&(f=s-u-(h||0));var g=new n(l+i[3],u+i[0],d,f);return g.margin=i,g},l.positionElement=function(t,e,r,a,o){var s=!o||!o.hv||o.hv[0],u=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s||u){var h;if("raw"===c)h="group"===t.type?new n(0,0,+e.width||0,+e[Pe]||0):t[N]();else if(h=t[N](),t.needLocalTransform()){var d=t.getLocalTransform();h=h.clone(),h[_](d)}e=l.getLayoutRect(i[ae]({width:h.width,height:h[Pe]},e),r,a);var f=t[R],p=s?e.x-h.x:0,v=u?e.y-h.y:0;t.attr(R,"raw"===c?[p,v]:[f[0]+p,f[1]+v])}},l.mergeLayoutParam=function(t,e,n){function r(i){var r={},l=0,u={},c=0,h=n.ignoreSize?1:2;if(s(i,function(e){u[e]=t[e]}),s(i,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&l++,o(u,t)&&c++}),c!==h&&l){if(l>=h)return r;for(var d=0;d<i[ge];d++){var f=i[d];if(!a(r,f)&&a(t,f)){r[f]=t[f];break}}return r}return u}function a(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,i){s(t,function(t){e[t]=i[t]})}!i[le](n)&&(n={});var u=["width","left","right"],c=[Pe,"top",ye],h=r(u),d=r(c);l(u,t,h),l(c,t,d)},l.getLayoutParams=function(t){return l.copyLayoutParams({},t)},l.copyLayoutParams=function(t,e){return e&&t&&s(u,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t},l}),e("zrender/vml/graphic",[Re,"../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")[we]){var e=t("../core/vector"),i=t("../core/BoundingRect"),r=t("../core/PathProxy").CMD,a=t("../tool/color"),o=t("../contain/text"),s=t("../graphic/mixin/RectText"),l=t("../graphic/Displayable"),u=t("../graphic/Image"),c=t("../graphic/Text"),h=t("../graphic/Path"),d=t("../graphic/Gradient"),f=t("./core"),p=Math.round,v=Math.sqrt,m=Math.abs,g=Math.cos,b=Math.sin,M=Math.max,T=e[_],S=",",C="progid:DXImageTransform.Microsoft",A=21600,L=A/2,I=1e5,k=1e3,z=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=A+","+A,t.coordorigin="0,0"},D=function(t){return String(t)[X](/&/g,"&")[X](/"/g,""")},R=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},V=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},G=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},H=function(t,e,i){return(parseFloat(t)||0)*I+(parseFloat(e)||0)*k+i},Z=function(t,e){return typeof t===Le?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},W=function(t,e,i){var n=a.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=R(n[0],n[1],n[2]),t[O]=i*n[3])},j=function(t){var e=a.parse(t);return[R(e[0],e[1],e[2]),e[3]]},U=function(t,e,i){var r=e.fill;if(null!=r)if(r instanceof d){var a,o=0,s=[0,0],l=0,u=1,c=i[N](),h=c.width,f=c[Pe];if("linear"===r.type){a="gradient";var p=i[n],v=[r.x*h,r.y*f],m=[r.x2*h,r.y2*f];p&&(T(v,v,p),T(m,m,p));var g=m[0]-v[0],y=m[1]-v[1];o=180*Math.atan2(g,y)/Math.PI,0>o&&(o+=360),1e-6>o&&(o=0)}else{a="gradientradial";var v=[r.x*h,r.y*f],p=i[n],x=i.scale,_=h,b=f;s=[(v[0]-c.x)/_,(v[1]-c.y)/b],p&&T(v,v,p),_/=x[0]*A,b/=x[1]*A;var w=M(_,b);l=0/w,u=2*r.r/w-l}var S=r[ue].slice();S.sort(function(t,e){return t.offset-e.offset});for(var C=S[ge],P=[],L=[],I=0;C>I;I++){var k=S[I],z=j(k.color);L.push(k.offset*u+l+" "+z[0]),(0===I||I===C-1)&&P.push(z)}if(C>=2){var D=P[0][0],R=P[1][0],E=P[0][1]*e[O],B=P[1][1]*e[O];t.type=a,t.method="none",t.focus="100%",t.angle=o,t.color=D,t.color2=R,t.colors=L.join(","),t[O]=B,t.opacity2=E}"radial"===a&&(t.focusposition=s.join(","))}else W(t,r,e[O])},$=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[y]||e[y]instanceof d||W(t,e[y],e[O])},Q=function(t,e,i,n){var r="fill"==e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i[x])?(t[r?"filled":"stroked"]="true",i[e]instanceof d&&G(t,a),a||(a=f.createNode(e)),r?U(a,i,n):$(a,i),V(t,a)):(t[r?"filled":"stroked"]="false",G(t,a))},K=[[],[],[]],J=function(t,e){var i,n,a,o,s,l,u=r.M,c=r.C,h=r.L,d=r.A,f=r.Q,m=[];for(o=0;o<t[ge];){switch(a=t[o++],n="",i=0,a){case u:n=" m ",i=1,s=t[o++],l=t[o++],K[0][0]=s,K[0][1]=l;break;case h:n=" l ",i=1,s=t[o++],l=t[o++],K[0][0]=s,K[0][1]=l;break;case f:case c:n=" c ",i=3;var y,x,_=t[o++],w=t[o++],M=t[o++],C=t[o++];a===f?(y=M,x=C,M=(M+2*_)/3,C=(C+2*w)/3,_=(s+2*_)/3,w=(l+2*w)/3):(y=t[o++],x=t[o++]),K[0][0]=_,K[0][1]=w,K[1][0]=M,K[1][1]=C,K[2][0]=y,K[2][1]=x,s=y,l=x;break;case d:var P=0,I=0,k=1,z=1,D=0;e&&(P=e[4],I=e[5],k=v(e[0]*e[0]+e[1]*e[1]),z=v(e[2]*e[2]+e[3]*e[3]),D=Math.atan2(-e[1]/z,e[0]/k));var O=t[o++],R=t[o++],E=t[o++],B=t[o++],N=t[o++]+D,V=t[o++]+N+D;o++;var F=t[o++],G=O+g(N)*E,H=R+b(N)*B,_=O+g(V)*E,w=R+b(V)*B,Z=F?" wa ":" at ";Math.abs(G-_)<1e-10&&(Math.abs(V-N)>.01?F&&(G+=270/A):Math.abs(H-R)<1e-10?F&&O>G||!F&&G>O?w-=270/A:w+=270/A:F&&R>H||!F&&H>R?_+=270/A:_-=270/A),m.push(Z,p(((O-E)*k+P)*A-L),S,p(((R-B)*z+I)*A-L),S,p(((O+E)*k+P)*A-L),S,p(((R+B)*z+I)*A-L),S,p((G*k+P)*A-L),S,p((H*z+I)*A-L),S,p((_*k+P)*A-L),S,p((w*z+I)*A-L)),s=_,l=w;break;case r.R:var q=K[0],W=K[1];q[0]=t[o++],q[1]=t[o++],W[0]=q[0]+t[o++],W[1]=q[1]+t[o++],e&&(T(q,q,e),T(W,W,e)),q[0]=p(q[0]*A-L),W[0]=p(W[0]*A-L),q[1]=p(q[1]*A-L),W[1]=p(W[1]*A-L),m.push(" m ",q[0],S,q[1]," l ",W[0],S,q[1]," l ",W[0],S,W[1]," l ",q[0],S,W[1]);break;case r.Z:m.push(" x ")}if(i>0){m.push(n);for(var j=0;i>j;j++){var U=K[j];e&&T(U,U,e),m.push(p(U[0]*A-L),S,p(U[1]*A-L),i-1>j?S:"")}}}return m.join("")};h[Ie].brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=f.createNode("shape"),z(i),this._vmlEl=i),Q(i,"fill",e,this),Q(i,y,e,this);var r=this[n],a=null!=r,o=i.getElementsByTagName(y)[0];if(o){var s=e[x];if(a&&!e.strokeNoScale){var l=r[0]*r[3]-r[1]*r[2];s*=v(m(l))}o.weight=s+"px"}var u=this.path;this.__dirtyPath&&(u.beginPath(),this.buildPath(u,this.shape),u.toStatic(),this.__dirtyPath=!1),i.path=J(u.data,this[n]),i.style.zIndex=H(this[Y],this.z,this.z2),V(t,i),null!=e.text?this.drawRectText(t,this[N]()):this.removeRectText(t)},h[Ie].onRemove=function(t){G(t,this._vmlEl),this.removeRectText(t)},h[Ie].onAdd=function(t){V(t,this._vmlEl),this.appendRectText(t)};var te=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};u[Ie].brushVML=function(t){var e,i,r=this.style,a=r.image;if(te(a)){var o=a.src;if(o===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var s=a.runtimeStyle,l=s.width,u=s[Pe];s.width="auto",s[Pe]="auto",e=a.width,i=a[Pe],s.width=l,s[Pe]=u,this._imageSrc=o,this._imageWidth=e,this._imageHeight=i}a=o}else a===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(a){var c=r.x||0,h=r.y||0,d=r.width,m=r[Pe],g=r.sWidth,y=r.sHeight,x=r.sx||0,_=r.sy||0,b=g&&y,w=this._vmlEl;w||(w=f.doc[P]("div"),z(w),this._vmlEl=w);var A,L=w.style,I=!1,k=1,D=1;if(this[n]&&(A=this[n],k=v(A[0]*A[0]+A[1]*A[1]),D=v(A[2]*A[2]+A[3]*A[3]),I=A[1]||A[2]),I){var R=[c,h],E=[c+d,h],B=[c,h+m],F=[c+d,h+m];T(R,R,A),T(E,E,A),T(B,B,A),T(F,F,A);var G=M(R[0],E[0],B[0],F[0]),Z=M(R[1],E[1],B[1],F[1]),W=[];W.push("M11=",A[0]/k,S,"M12=",A[2]/D,S,"M21=",A[1]/k,S,"M22=",A[3]/D,S,"Dx=",p(c*k+A[4]),S,"Dy=",p(h*D+A[5])),L.padding="0 "+p(G)+"px "+p(Z)+"px 0",L[q]=C+".Matrix("+W.join("")+", SizingMethod=clip)"}else A&&(c=c*k+A[4],h=h*D+A[5]),L[q]="",L.left=p(c)+"px",L.top=p(h)+"px";var j=this._imageEl,U=this._cropEl;j||(j=f.doc[P]("div"),this._imageEl=j);var X=j.style;if(b){if(e&&i)X.width=p(k*e*d/g)+"px",X[Pe]=p(D*i*m/y)+"px";else{var $=new Image,Q=this;$.onload=function(){$.onload=null,e=$.width,i=$[Pe],X.width=p(k*e*d/g)+"px",X[Pe]=p(D*i*m/y)+"px",Q._imageWidth=e,Q._imageHeight=i,Q._imageSrc=a},$.src=a}U||(U=f.doc[P]("div"),U.style.overflow="hidden",this._cropEl=U);var K=U.style;K.width=p((d+x*d/g)*k),K[Pe]=p((m+_*m/y)*D),K[q]=C+".Matrix(Dx="+-x*d/g*k+",Dy="+-_*m/y*D+")",U.parentNode||w.appendChild(U),j.parentNode!=U&&U.appendChild(j)}else X.width=p(k*d)+"px",X[Pe]=p(D*m)+"px",w.appendChild(j),U&&U.parentNode&&(w.removeChild(U),this._cropEl=null);var J="",ee=r[O];1>ee&&(J+=".Alpha(opacity="+p(100*ee)+") "),J+=C+".AlphaImageLoader(src="+a+", SizingMethod=scale)",X[q]=J,w.style.zIndex=H(this[Y],this.z,this.z2),V(t,w),null!=r.text&&this.drawRectText(t,this[N]())}},u[Ie].onRemove=function(t){G(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},u[Ie].onAdd=function(t){V(t,this._vmlEl),this.appendRectText(t)};var ee,ie=w,ne={},re=0,ae=100,oe=document[P]("div"),se=function(t){var e=ne[t];if(!e){re>ae&&(re=0,ne={});var i,n=oe.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||ie,variant:n.fontVariant||ie,weight:n.fontWeight||ie,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},ne[t]=e,re++}return e};o.measureText=function(t,e){var i=f.doc;
|
|
ee||(ee=i[P]("div"),ee.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",f.doc.body.appendChild(ee));try{ee.style.font=e}catch(n){}return ee.innerHTML="",ee.appendChild(i.createTextNode(t)),{width:ee.offsetWidth}};for(var le=new i,ce=function(t,e,i,r){var a=this.style,s=a.text;if(null!=s&&(s+=""),s){var l,u,c=a[F],h=se(a.textFont),d=h.style+" "+h.variant+" "+h.weight+" "+h.size+'px "'+h.family+'"',v=a.textBaseline,m=a.textVerticalAlign;i=i||o[N](s,d,c,v);var g=this[n];if(g&&!r&&(le.copy(e),le[_](g),e=le),r)l=e.x,u=e.y;else{var x=a.textPosition,b=a.textDistance;if(x instanceof Array)l=e.x+Z(x[0],e.width),u=e.y+Z(x[1],e[Pe]),c=c||"left",v=v||"top";else{var w=o.adjustTextPositionOnRect(x,e,i,b);l=w.x,u=w.y,c=c||w[F],v=v||w.textBaseline}}if(m){switch(m){case B:u-=i[Pe]/2;break;case ye:u-=i[Pe]}v="top"}var M=h.size;switch(v){case"hanging":case"top":u+=M/1.75;break;case B:break;default:u-=M/2.25}switch(c){case"left":break;case E:l-=i.width/2;break;case"right":l-=i.width}var C,A,P,L=f.createNode,I=this._textVmlEl;I?(P=I.firstChild,C=P.nextSibling,A=C.nextSibling):(I=L("line"),C=L("path"),A=L("textpath"),P=L("skew"),A.style["v-text-align"]="left",z(I),C.textpathok=!0,A.on=!0,I.from="0 0",I.to="1000 0.05",V(I,P),V(I,C),V(I,A),this._textVmlEl=I);var k=[l,u],R=I.style;g&&r?(T(k,k,g),P.on=!0,P.matrix=g[0].toFixed(3)+S+g[2].toFixed(3)+S+g[1].toFixed(3)+S+g[3].toFixed(3)+",0,0",P.offset=(p(k[0])||0)+","+(p(k[1])||0),P.origin="0 0",R.left="0px",R.top="0px"):(P.on=!1,R.left=p(l)+"px",R.top=p(u)+"px"),A[Le]=D(s);try{A.style.font=d}catch(G){}Q(I,"fill",{fill:r?a.fill:a.textFill,opacity:a[O]},this),Q(I,y,{stroke:r?a[y]:a.textStroke,opacity:a[O],lineDash:a.lineDash},this),I.style.zIndex=H(this[Y],this.z,this.z2),V(t,I)}},he=function(t){G(t,this._textVmlEl),this._textVmlEl=null},de=function(t){V(t,this._textVmlEl)},fe=[s,l,u,h,c],pe=0;pe<fe[ge];pe++){var ve=fe[pe][Ie];ve.drawRectText=ce,ve.removeRectText=he,ve.appendRectText=de}c[Ie].brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this[N](),!0):this.removeRectText(t)},c[Ie].onRemove=function(t){this.removeRectText(t)},c[Ie].onAdd=function(t){this.appendRectText(t)}}}),e("zrender/vml/Painter",[Re,"../core/log","./core"],function(t){function e(t){return parseInt(t,10)}function i(t,e){a.initVML(),this.root=t,this[be]=e;var i=document[P]("div"),n=document[P]("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[Ae]();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[Ie]={constructor:i,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this[be].getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t[ge];i++){var n=t[i];n.invisible||n[xe]?(n.__alreadyNotVisible||n.onRemove(e),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(e),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,e),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){var t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!=t||this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i[Pe]=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this[be]=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,i=t.currentStyle;return(t.clientWidth||e(i.width))-e(i.paddingLeft)-e(i.paddingRight)|0},_getHeight:function(){var t=this.root,i=t.currentStyle;return(t.clientHeight||e(i[Pe]))-e(i.paddingTop)-e(i.paddingBottom)|0}};for(var o=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],s=0;s<o[ge];s++){var l=o[s];i[Ie][l]=n(l)}return i}),e("echarts/component/tooltip/TooltipModel",[Re,"../../echarts"],function(t){t("../../echarts").extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})}),e("echarts/component/tooltip/TooltipView",[Re,"./TooltipContent",u,De,"../../util/format","../../util/number","../../util/model",Oe,"../../model/Model","../../echarts"],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 a(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,n,r){var a=i.clientWidth,o=i.clientHeight;return t=Math.min(t+a,n)-a,e=Math.min(e+o,r)-o,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function g(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,u=e[Pe];switch(t){case m:o=e.x+l/2-n/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case ye:o=e.x+l/2-n/2,s=e.y+u+a;break;case"left":o=e.x-n-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}function x(t,e,r,a,o,s,l,u){var c=u[Te](),h=u[Me](),d=l&&l[N]().clone();if(l&&d[_](l[n]),typeof t===j&&(t=t([e,r],s,o.el,d)),C[U](t))e=I(t[0],c),r=I(t[1],h);else if(typeof t===Le&&l){var f=g(t,d,o.el);e=f[0],r=f[1]}else{var f=p(e,r,o.el,c,h);e=f[0],r=f[1]}if(a){var f=v(e,r,o.el,c,h);e=f[0],r=f[1]}o[i](e,r)}function w(t){var e=t[ve],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"singleAxis"!==e.type||"item"===i)}var T=t("./TooltipContent"),S=t(u),C=t(De),A=t("../../util/format"),P=t("../../util/number"),L=t("../../util/model"),I=P.parsePercent,k=t(Oe),D=t("../../model/Model");t("../../echarts").extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!k.node){var i=new T(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,i){if(!k.node){this.group[H](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[ce](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;r&&this.group.add(r);var a=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==a){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){o._manuallyShowTip({x:o._lastX,y:o._lastY})})}var s=this._api.getZr();s.off("click",this._tryShow),s.off("mousemove",this._mousemove),s.off(te,this._hide),s.off("globalout",this._hide),"click"===a?s.on("click",this._tryShow,this):"mousemove"===a&&(s.on("mousemove",this._mousemove,this),s.on(te,this._hide,this),s.on("globalout",this._hide,this))}},_mousemove:function(t){var e=this._tooltipModel.get("showDelay"),i=this;clearTimeout(this._showTimeout),e>0?this._showTimeout=setTimeout(function(){i._tryShow(t)},e):this._tryShow(t)},_manuallyShowTip:function(t){function e(e){var i=e[pe](),n=L.queryDataIndex(i,t);return null!=n&&!C[U](n)&&i.hasValue(n)?!0:void 0}if(t.from!==this.uid){var i=this._ecModel,r=t.seriesIndex,a=i.getSeriesByIndex(r),o=this._api,l="axis"===this._tooltipModel.get(re);if(null==t.x||null==t.y){if(l?(a&&!e(a)&&(a=null),a||i.eachSeries(function(t){w(t)&&!a&&e(t)&&(a=t)})):a=a||i.getSeriesByIndex(0),a){var u=a[pe](),h=L.queryDataIndex(u,t);if(null==h||C[U](h))return;var d,f,p=u[b](h),v=a[ve];if(a.getTooltipPosition){var m=a.getTooltipPosition(h)||[];d=m[0],f=m[1]}else if(v&&v[s]){var m=v[s](u.getValues(C.map(v[c],function(t){return a.coordDimToDataDim(t)[0]}),h,!0));d=m&&m[0],f=m&&m[1]}else if(p){var g=p[N]().clone();g[_](p[n]),d=g.x+g.width/2,f=g.y+g[Pe]/2}null!=d&&null!=f&&this._tryShow({offsetX:d,offsetY:f,position:t[R],target:p,event:{}})}}else{var p=o.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,position:t[R],target:p,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var i={};return e.eachSeries(function(t){if(w(t)){var e,n,r=t[ve];"cartesian2d"===r.type?(e=r.getBaseAxis(),n=e.dim+e.index):"singleAxis"===r.type?(e=r[o](),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][ne].push(t)}},this),i},_tryShow:function(t){var e=t[J],i=this._tooltipModel,n=i.get(re),r=this._ecModel,a=this._api;if(i)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e[fe]){var o=e.dataModel||r.getSeriesByIndex(e.seriesIndex),s=e[fe],l=o[pe]()[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,dataIndexInside:e[fe],seriesIndex:e.seriesIndex})}else if(e&&e.tooltip){var u=e.tooltip;if(typeof u===Le){var c=u;u={content:c,formatter:c}}var d=new D(u,i),f=d.get("content"),p=Math.random();this._showTooltipContent(d,f,d.get("formatterParams")||{},p,t.offsetX,t.offsetY,t[R],e,a)}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[Se]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[J];if(o&&null!=o[fe]){var l=i.getSeriesByIndex(o.seriesIndex),u=o[fe];this._showItemTooltipContent(l,u,o.dataType,n)}}this._showAxisPointer();var h=!0;C.each(this._seriesGroupByAxis,function(i){var o=i.coordSys,l=o[0],u=[n.offsetX,n.offsetY];if(!l.containPoint(u))return void this._hideAxisPointer(l.name);h=!1;var d=l[c],f=l.pointToData(u,!0);u=l[s](f);var p=l.getBaseAxis(),v=r.get("axis");"auto"===v&&(v=p.dim);var m=!1,g=this._lastHover;if("cross"===a)e(g.data,f)&&(m=!0),g.data=f;else{var y=C[me](d,v);g.data===f[y]&&(m=!0),g.data=f[y]}var x=t.get(Ce);"cartesian2d"!==l.type||m?"polar"!==l.type||m?"singleAxis"!==l.type||m||this._showSinglePointer(r,l,v,u,x):this._showPolarPointer(r,l,v,u,x):this._showCartesianPointer(r,l,v,u,x),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(l,i[ne],u,f,m,n[R])},this),this._tooltipModel.get("show")||this._hideAxisPointer(),h&&this._hide()},_showCartesianPointer:function(t,e,i,n,s){function l(i,n,r){var o="x"===i?a(n[0],r[0],n[0],r[1]):a(r[0],n[1],r[1],n[1]),s=c._getPointerElement(e,t,i,o);S.subPixelOptimizeLine({shape:o,style:s.style}),p?S.updateProps(s,{shape:o},t):s.attr({shape:o})}function u(i,n,r){var a=e[o](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=c._getPointerElement(e,t,i,u);p?S.updateProps(h,{shape:u},t):h.attr({shape:u})}var c=this,h=t.get("type"),f=e.getBaseAxis(),p=s&&"cross"!==h&&f.type===r&&f.getBandWidth()>20;if("cross"===h)l("x",n,e[o]("y").getGlobalExtent()),l("y",n,e[o]("x").getGlobalExtent()),this._updateCrossText(e,n,t);else{var v=e[o]("x"===i?"y":"x"),m=v.getGlobalExtent();"cartesian2d"===e.type&&("line"===h?l:u)(i,n,m)}},_showSinglePointer:function(t,e,i,n,s){function l(i,n,r){var s=e[o](),l=s.orient,c="horizontal"===l?a(n[0],r[0],n[0],r[1]):a(r[0],n[1],r[1],n[1]),d=u._getPointerElement(e,t,i,c);h?S.updateProps(d,{shape:c},t):d.attr({shape:c})}var u=this,c=t.get("type"),h=s&&"cross"!==c&&e.getBaseAxis().type===r,d=e.getRect(),f=[d.y,d.y+d[Pe]];l(i,n,f)},_showPolarPointer:function(t,e,i,n,s){function u(i,n,r){var o,s=e.pointToCoord(n);if("angle"===i){var l=e.coordToPoint([r[0],s[1]]),u=e.coordToPoint([r[1],s[1]]);o=a(l[0],l[1],u[0],u[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var c=h._getPointerElement(e,t,i,o);m?S.updateProps(c,{shape:o},t):c.attr({shape:o})}function c(i,n,r){var a,s=e[o](i),l=s.getBandWidth(),u=e.pointToCoord(n),c=Math.PI/180;a="angle"===i?f(e.cx,e.cy,r[0],r[1],(-u[1]-l/2)*c,(-u[1]+l/2)*c):f(e.cx,e.cy,u[0]-l/2,u[0]+l/2,0,2*Math.PI);var d=h._getPointerElement(e,t,i,a);m?S.updateProps(d,{shape:a},t):d.attr({shape:a})}var h=this,d=t.get("type"),p=e.getAngleAxis(),v=e.getRadiusAxis(),m=s&&"cross"!==d&&e.getBaseAxis().type===r;if("cross"===d)u("angle",n,v[z]()),u(l,n,p[z]()),this._updateCrossText(e,n,t);else{var g=e[o](i===l?"angle":l),y=g[z]();("line"===d?u:c)(i,n,y)}},_updateCrossText:function(t,e,i){var n=i[Se]("crossStyle"),a=n[Se](G),s=this._tooltipModel,l=this._crossText;l||(l=this._crossText=new S.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(l));var u=t.pointToData(e),h=t[c];u=C.map(u,function(e,i){var n=t[o](h[i]);return e=n.type===r||"time"===n.type?n.scale.getLabel(e):A.addCommas(e.toFixed(n.getPixelPrecision()))}),l[$]({fill:a.getTextColor()||n.get("color"),textFont:a[V](),text:u.join(", "),x:e[0]+5,y:e[1]-5}),l.z=s.get("z"),l[Y]=s.get(Y)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),o=r.get(Y),s=this._axisPointers,u=t.name;if(s[u]=s[u]||{},s[u][i])return s[u][i];var c=e.get("type"),h=e[Se](c+"Style"),d="shadow"===c,f=h[d?"getAreaStyle":"getLineStyle"](),p="polar"===t.type?d?"Sector":i===l?"Circle":"Line":d?"Rect":"Line";d?f[y]=null:f.fill=null;var v=s[u][i]=new S[p]({style:f,z:a,zlevel:o,silent:!0,shape:n});return this.group.add(v),v},_dispatchAndShowSeriesTooltipContent:function(t,e,i,n,a,o){var s,u=this._tooltipModel,c=t.getBaseAxis(),h="x"===c.dim||c.dim===l?0:1,d=C.map(e,function(t){return{seriesIndex:t.seriesIndex,dataIndexInside:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(c.dim),n,c):t[pe]().indexOfNearest(t.coordDimToDataDim(c.dim)[0],n[h],!1,c.type===r?.5:null)}});C.each(d,function(t,i){e[i][pe]().hasValue(t.dataIndexInside)&&(s=i)}),s=s||0;var f=this._lastHover,p=this._api;if(f.payloadBatch&&!a&&p.dispatchAction({type:"downplay",batch:f.payloadBatch}),a||(p.dispatchAction({type:"highlight",batch:d}),f.payloadBatch=d),p.dispatchAction({type:"showTip",dataIndexInside:d[s].dataIndexInside,seriesIndex:d[s].seriesIndex,from:this.uid}),c&&u.get("showContent")&&u.get("show")){var v=C.map(e,function(t,e){return t[K](d[e].dataIndexInside)});if(a)x(o||u.get(R),i[0],i[1],u.get("confine"),this._tooltipContent,v,null,p);else{var m=d[s].dataIndexInside,g="time"===c.type?c.scale.getLabel(n[h]):e[s][pe]().getName(m),y=(g?g+"<br />":"")+C.map(e,function(t,e){return t.formatTooltip(d[e].dataIndexInside,!0)}).join("<br />"),_="axis_"+t.name+"_"+m;this._showTooltipContent(u,y,v,_,i[0],i[1],o,null,p)}}},_showItemTooltipContent:function(t,e,i,n){var r=this._api,a=t[pe](i),o=a[h](e),s=o.get("tooltip",!0);if(typeof s===Le){var l=s;s={formatter:l}}var u=this._tooltipModel,c=t[Se]("tooltip",u),d=new D(s,c,c[M]),f=t[K](e,i),p=t.formatTooltip(e,!1,i),v="item_"+t.name+"_"+e;this._showTooltipContent(d,p,f,v,n.offsetX,n.offsetY,n[R],n[J],r)},_showTooltipContent:function(t,e,i,n,r,a,o,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("confine"),h=t.get("formatter");o=o||t.get(R);var d=e;if(h)if(typeof h===Le)d=A.formatTpl(h,i);else if(typeof h===j){var f=this,p=n,v=function(t,e){t===f._ticket&&(u.setContent(e),x(o,r,a,c,u,i,s,l))};f._ticket=p,d=h(i,p,v)}u.show(t),u.setContent(d),x(o,r,a,c,u,i,s,l)}},_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.children()[ge]&&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(!k.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("echarts/component/toolbox/ToolboxModel",[Re,"./featureManager",De,"../../echarts"],function(t){var e=t("./featureManager"),i=t(De),n=t("../../echarts").extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(){n.superApply(this,"mergeDefaultAndTheme",arguments),i.each(this[C].feature,function(t,n){var r=e.get(n);r&&i.merge(t,r.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}});return n}),e("echarts/component/toolbox/ToolboxView",[Re,"./featureManager",De,u,"../../model/Model","../../data/DataDiffer","../helper/listComponent","zrender/contain/text","../../echarts"],function(t){function e(t){return 0===t[me]("my")}var i=t("./featureManager"),n=t(De),r=t(u),a=t("../../model/Model"),o=t("../../data/DataDiffer"),s=t("../helper/listComponent"),l=t("zrender/contain/text");return t("../../echarts").extendComponentView({type:"toolbox",render:function(t,u,c,h){function d(n,r){var o,s=x[n],l=x[r],d=m[s],p=new a(d,t,t[M]);if(s&&!l){if(e(s))o={model:p,onclick:p[C].onclick,featureName:s};else{var v=i.get(s);if(!v)return;o=new v(p,u,c)}g[s]=o}else{if(o=g[l],!o)return;o.model=p,o[M]=u,o.api=c}return!s&&l?void(o.dispose&&o.dispose(u,c)):!p.get("show")||o.unusable?void(o[se]&&o[se](u,c)):(f(p,o,s),p.setIconStatus=function(t,e){var i=this[C],n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t][re](e)},void(o.render&&o.render(p,u,c,h)))}function f(e,i,a){var o=e[Se]("iconStyle"),s=i.getIcons?i.getIcons():e.get("icon"),l=e.get("title")||{};if(typeof s===Le){var h=s,d=l;s={},l={},s[a]=h,l[a]=d}var f=e.iconPaths={};n.each(s,function(a,s){var h=o[Se](w).getItemStyle(),d=o[Se]("emphasis").getItemStyle(),m={x:-v/2,y:-v/2,width:v,height:v},g=0===a[me]("image://")?(m.image=a.slice(8),new r.Image({style:m})):r.makePath(a[X]("path://",""),{style:h,hoverStyle:d,rectHover:!0},m,E);r.setHoverStyle(g),t.get("showTitle")&&(g.__title=l[s],g.on(ee,function(){var t=o[Se]("emphasis").getItemStyle();g[$]({text:l[s],textPosition:t.textPosition||ye,textFill:t.fill||t[y]||"#000",textAlign:t[F]||E})}).on(te,function(){g[$]({textFill:null})})),g[re](e.get("iconStatus."+s)||w),p.add(g),g.on("click",n.bind(i.onclick,i,u,c,s)),f[s]=g})}var p=this.group;if(p[H](),t.get("show")){var v=+t.get("itemSize"),m=t.get("feature")||{},g=this._features||(this._features={}),x=[];n.each(m,function(t,e){x.push(e)}),new o(this._featureNames||[],x).add(d)[ce](d)[se](n.curry(d,null)).execute(),this._featureNames=x,s.layout(p,t,c),s.addBackground(p,t),p.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var n=l[N](e,i.font),r=t[R][0]+p[R][0],a=t[R][1]+p[R][1]+v,o=!1;a+n[Pe]>c[Me]()&&(i.textPosition="top",o=!0);var s=o?-5-n[Pe]:v+8;r+n.width/2>c[Te]()?(i.textPosition=["100%",s],i[F]="right"):r-n.width/2<0&&(i.textPosition=[0,s],i[F]="left")}})}},updateView:function(t,e,i,r){n.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,i,r)})},updateLayout:function(t,e,i,r){n.each(this._features,function(t){t.updateLayout&&t.updateLayout(t.model,e,i,r)})},remove:function(t,e){n.each(this._features,function(i){i[se]&&i[se](t,e)}),this.group[H]()},dispose:function(t,e){n.each(this._features,function(i){i.dispose&&i.dispose(t,e)})}})}),e("echarts/component/toolbox/feature/SaveAsImage",[Re,Oe,"../featureManager"],function(t){function e(t){this.model=t}var i=t(Oe);e.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["右键另存为图片"]},e[Ie].unusable=!i[we];var n=e[Ie];return n.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",a=document[P]("a"),o=n.get("type",!0)||"png";a.download=r+"."+o,a[J]="_blank";var s=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(a.href=s,typeof MouseEvent!==j||i.browser.ie||i.browser.edge){var l=n.get("lang"),u='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>',c=window.open();c.document.write(u)}else{var h=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});a.dispatchEvent(h)}},t("../featureManager").register("saveAsImage",e),e}),e("echarts/component/toolbox/feature/MagicType",[Re,De,"../../../echarts","../featureManager"],function(t){function e(t){this.model=t}var i=t(De);e.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var n=e[Ie];n.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return i.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var r={line:function(t,e,n,r){return"bar"===t?i.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.line")||{},!0):void 0},bar:function(t,e,n,r){return"line"===t?i.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.bar")||{},!0):void 0},stack:function(t,e,n,r){return"line"===t||"bar"===t?i.merge({id:e,stack:"__ec_magicType_stack__"},r.get("option.stack")||{},!0):void 0},tiled:function(t,e,n,r){return"line"===t||"bar"===t?i.merge({id:e,stack:""},r.get("option.tiled")||{},!0):void 0}},a=[["line","bar"],["stack","tiled"]];n.onclick=function(t,e,n){var o=this.model,s=o.get("seriesIndex."+n);if(r[n]){var l={series:[]},u=function(e){var a=e.subType,s=e.id,u=r[n](a,s,e,o);u&&(i[ae](u,e[C]),l[ne].push(u));var c=e[ve];if(c&&"cartesian2d"===c.type&&("line"===n||"bar"===n)){var h=c.getAxesByScale(d)[0];if(h){var f=h.dim,p=f+"Axis",v=t[S]({mainType:p,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],m=v[T];l[p]=l[p]||[];for(var g=0;m>=g;g++)l[p][m]=l[p][m]||{};l[p][m].boundaryGap="bar"===n?!0:!1}}};i.each(a,function(t){i[me](t,n)>=0&&i.each(t,function(t){o.setIconStatus(t,w)})}),o.setIconStatus(n,"emphasis"),t[_e]({mainType:"series",query:null==s?null:{seriesIndex:s}},u),e.dispatchAction({type:"changeMagicType",currentType:n,newOption:l})}};var o=t("../../../echarts");return o.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),t("../featureManager").register("magicType",e),e}),e("echarts/component/toolbox/feature/DataView",[Re,De,"zrender/core/event","../featureManager","../../../echarts"],function(t){function e(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var a=t[ve];if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)i.push(t);else{var o=a.getBaseAxis();if(o.type===r){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s][ne].push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function i(t){var e=[];return p.each(t,function(t){var i=t.categoryAxis,n=t.valueAxis,r=n.dim,a=[" "][A](p.map(t[ne],function(t){return t.name})),o=[i.model.getCategories()];p.each(t[ne],function(t){o.push(t.getRawData().mapArray(r,function(t){return t}))});for(var s=[a.join(g)],l=0;l<o[0][ge];l++){for(var u=[],c=0;c<o[ge];c++)u.push(o[c][l]);s.push(u.join(g))}e.push(s.join("\n"))}),e.join("\n\n"+m+"\n\n")}function n(t){return p.map(t,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e[c],function(){for(var t=arguments[ge],r=arguments[t-1],a=e.getName(r),o=0;t-1>o;o++)n[o]=arguments[o];i.push((a?a+g:"")+n.join(g))}),i.join("\n")}).join("\n\n"+m+"\n\n")}function a(t){var r=e(t);return{value:p[q]([i(r.seriesGroupByCategoryAxis),n(r.other)],function(t){return t[X](/[\n\t\s]/g,"")}).join("\n\n"+m+"\n\n"),meta:r.meta}}function o(t){return t[X](/^\s\s*/,"")[X](/\s\s*$/,"")}function s(t){var e=t.slice(0,t[me]("\n"));return e[me](g)>=0?!0:void 0}function l(t){for(var e=t.split(/\n+/g),i=o(e.shift()).split(y),n=[],r=p.map(i,function(t){return{name:t,data:[]}}),a=0;a<e[ge];a++){var s=o(e[a]).split(y);n.push(s.shift());for(var l=0;l<s[ge];l++)r[l]&&(r[l].data[a]=s[l])}return{series:r,categories:n}}function u(t){for(var e=t.split(/\n+/g),i=o(e.shift()),n=[],r=0;r<e[ge];r++){var a,s=o(e[r]).split(y),l="",u=!1;isNaN(s[0])?(u=!0,l=s[0],s=s.slice(1),n[r]={name:l,value:[]},a=n[r].value):a=n[r]=[];for(var c=0;c<s[ge];c++)a.push(+s[c]);1===a[ge]&&(u?n[r].value=a[0]:n[r]=a[0])}return{name:i,data:n}}function h(t,e){var i=t.split(new RegExp("\n*"+m+"\n*","g")),n={series:[]};return p.each(i,function(t,i){if(s(t)){var r=l(t),a=e[i],o=a.axisDim+"Axis";a&&(n[o]=n[o]||[],n[o][a.axisIndex]={data:r.categories},n[ne]=n[ne][A](r[ne]))}else{var r=u(t);n[ne].push(r)}}),n}function d(t){this._dom=null,this.model=t}function f(t,e){return p.map(t,function(t,i){var n=e&&e[i];return p[le](n)&&!p[U](n)?(p[le](t)&&!p[U](t)&&(t=t.value),p[ae]({value:t},n)):t})}var p=t(De),v=t("zrender/core/event"),m=new Array(60).join("-"),g=" ",y=new RegExp("["+g+"]+","g");return d.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},d[Ie].onclick=function(t,e){function i(){n.removeChild(o),T._dom=null}var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var o=document[P]("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=r.get("backgroundColor")||"#fff";var s=document[P]("h4"),l=r.get("lang")||[];s.innerHTML=l[0]||r.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=r.get("textColor");var u=document[P]("div"),c=document[P]("textarea");u.style.cssText="display:block;width:100%;overflow:hidden;";var d=r.get("optionToContent"),f=r.get("contentToOption"),m=a(t);if(typeof d===j){var y=d(e.getOption());typeof y===Le?u.innerHTML=y:p.isDom(y)&&u.appendChild(y)}else u.appendChild(c),c.readOnly=r.get("readOnly"),c.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",c.style.color=r.get("textColor"),c.style.borderColor=r.get("textareaBorderColor"),c.style.backgroundColor=r.get("textareaColor"),c.value=m.value;var x=m.meta,_=document[P]("div");_.style.cssText="position:absolute;bottom:0;left:0;right:0;";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document[P]("div"),M=document[P]("div");b+=";background-color:"+r.get("buttonColor"),b+=";color:"+r.get("buttonTextColor");var T=this;v.addEventListener(w,"click",i),v.addEventListener(M,"click",function(){var t;try{t=typeof f===j?f(u,e.getOption()):h(c.value,x)}catch(n){throw i(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),i()}),w.innerHTML=l[1],M.innerHTML=l[2],M.style.cssText=b,w.style.cssText=b,!r.get("readOnly")&&_.appendChild(M),_.appendChild(w),v.addEventListener(c,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+g+e.substring(n),this.selectionStart=this.selectionEnd=i+1,v.stop(t)}}),o.appendChild(s),o.appendChild(u),o.appendChild(_),u.style[Pe]=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},d[Ie][se]=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},d[Ie].dispose=function(t,e){this[se](t,e)},t("../featureManager").register("dataView",d),t("../../../echarts").registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];p.each(t.newOption[ne],function(t){var n=e.getSeriesByName(t.name)[0];if(n){var r=n.get("data");i.push({name:t.name,data:f(t.data,r)})}else i.push(p[oe]({type:"scatter"},t))}),e.mergeOption(p[ae]({series:i},t.newOption))}),d}),e("echarts/component/toolbox/feature/DataZoom",[Re,De,"../../helper/BrushController","../../helper/brushHelper","../../dataZoom/history","../../dataZoomSelect","../featureManager","../../../echarts"],function(t){function e(t,e,i){(this._brushController=new o(i.getZr())).on("brush",a.bind(this._onBrush,this)).mount(),this._isZoomActive}function i(t){var e={};return a.each(["xAxisIndex","yAxisIndex"],function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(e[i]===!1||"none"===e[i])&&(e[i]=[])}),e}function n(t,e){t.setIconStatus("back",l.count(e)>1?"emphasis":w)}function r(t,e,n,r){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key?r.dataZoomSelectActive:!1),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":w);var o=s.makeCoordInfoList(i(t[C]),e),l=o.xAxisHas&&!o.yAxisHas?"lineX":!o.xAxisHas&&o.yAxisHas?"lineY":"rect";n._brushController.setPanels(s.makePanelOpts(o)).enableBrush(a?{brushType:l,brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}var a=t(De),o=t("../../helper/BrushController"),s=t("../../helper/brushHelper"),l=t("../../dataZoom/history"),u=a.each;t("../../dataZoomSelect");var c="\x00_ec_\x00toolbox-dataZoom_";e.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var h=e[Ie];h.render=function(t,e,i,a){this.model=t,this[M]=e,this.api=i,r(t,e,this,a),n(t,e)},h.onclick=function(t,e,i){d[i].call(this)},h[se]=function(){this._brushController.unmount()},h.dispose=function(){this._brushController.dispose()};var d={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(l.pop(this[M]))}};return h._onBrush=function(t,e){function n(t,e,i){var n=r(t,i[t],o);n&&(a[n.id]={dataZoomId:n.id,startValue:e[0],endValue:e[1]})
|
|
}function r(t,e,i){var n;return i[_e]({mainType:"dataZoom",subType:"select"},function(r){var a=r.get(t+"Index");null!=a&&i.getComponent(t,a)===e&&(n=r)}),n}if(e.isEnd&&t[ge]){var a={},o=this[M];this._brushController.updateCovers([]);var u=s.makeCoordInfoList(i(this.model[C]),o),c=[];s.parseOutputRanges(t,u,o,c);var h=t[0],d=c[0],f=h.coordRange,p=h.brushType;if(d&&f)if("rect"===p)n("xAxis",f[0],d),n("yAxis",f[1],d);else{var v={lineX:"xAxis",lineY:"yAxis"};n(v[p],f,d)}l.push(o,a),this._dispatchZoomAction(a)}},h._dispatchZoomAction=function(t){var e=[];u(t,function(t){e.push(a.clone(t))}),e[ge]&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},t("../featureManager").register("dataZoom",e),t("../../../echarts").registerPreprocessor(function(t){function e(t,e){if(e){var r=t+"Index",o=e[r];null==o||"all"==o||a[U](o)||(o=o===!1||"none"===o?[]:[o]),i(t,function(e,i){if(null==o||"all"==o||-1!==a[me](o,i)){var s={type:"select",$fromToolbox:!0,id:c+t+i};s[r]=i,n.push(s)}})}}function i(e,i){var n=t[e];a[U](n)||(n=n?[n]:[]),u(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);a[U](n)||(t.dataZoom=n=[n]);var r=t.toolbox;if(r&&(a[U](r)&&(r=r[0]),r&&r.feature)){var o=r.feature.dataZoom;e("xAxis",o),e("yAxis",o)}}}),e}),e("echarts/component/toolbox/feature/Restore",[Re,"../../dataZoom/history","../featureManager","../../../echarts"],function(t){function e(t){this.model=t}var i=t("../../dataZoom/history");e.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var n=e[Ie];return n.onclick=function(t,e){i.clear(t),e.dispatchAction({type:"restore",from:this.uid})},t("../featureManager").register("restore",e),t("../../../echarts").registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),e}),e("echarts/scale/Interval",[Re,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=e.getPrecisionSafe,s=e.round,l=n[oe]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l[Ie].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,e=this._extent,i=[],n=1e4;if(t){var r=this._niceExtent,a=o(t)+2;e[0]<r[0]&&i.push(e[0]);for(var l=r[0];l<=r[1];)if(i.push(l),l=s(l+t,a),i[ge]>n)return[];e[1]>(i[ge]?i[i[ge]-1]:r[1])&&i.push(e[1])}return i},getTicksLabels:function(){for(var t=[],e=this[k](),i=0;i<e[ge];i++)t.push(this.getLabel(e[i]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||5;var i=this._extent,n=i[1]-i[0];if(isFinite(n)){0>n&&(n=-n,i.reverse());var l=s(e.nice(n/t,!0),Math.max(o(i[0]),o(i[1]))+2),u=o(l)+2,c=[s(a(i[0]/l)*l,u),s(r(i[1]/l)*l,u)];this._interval=l,this._niceExtent=c}},niceExtent:function(t,e,i){var n=this._extent;if(n[0]===n[1])if(0!==n[0]){var o=n[0];i?n[0]-=o/2:(n[1]+=o/2,n[0]-=o/2)}else n[1]=1;var l=n[1]-n[0];isFinite(l)||(n[0]=0,n[1]=1),this.niceTicks(t);var u=this._interval;e||(n[0]=s(r(n[0]/u)*u)),i||(n[1]=s(a(n[1]/u)*u))}});return l[he]=function(){return new l},l}),e("echarts/scale/Scale",[Re,"../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[Ie];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[z]=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[k](),i=0;i<e[ge];i++)t.push(this.getLabel(e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==I&&(t=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:!0,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3}}),e("echarts/model/mixin/colorPalette",[],function(){return{clearColorPalette:function(){this._colorIdx=0,this._colorNameMap={}},getColorFromPalette:function(t,e){e=e||this;var i=e._colorIdx||0,n=e._colorNameMap||(e._colorNameMap={});if(n[t])return n[t];var r=this.get("color",!0)||[];if(r[ge]){var a=r[i];return t&&(n[t]=a),e._colorIdx=(i+1)%r[ge],a}}}}),e("zrender/tool/path",[Re,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,f,m){var g=l*(d/180),y=h(g)*(t-i)/2+c(g)*(e-n)/2,x=-1*c(g)*(t-i)/2+h(g)*(e-n)/2,_=y*y/(o*o)+x*x/(s*s);_>1&&(o*=u(_),s*=u(_));var b=(r===a?-1:1)*u((o*o*s*s-o*o*x*x-s*s*y*y)/(o*o*x*x+s*s*y*y))||0,w=b*o*x/s,M=b*-s*y/o,T=(t+i)/2+h(g)*w-c(g)*M,S=(e+n)/2+c(g)*w+h(g)*M,C=v([1,0],[(y-w)/o,(x-M)/s]),A=[(y-w)/o,(x-M)/s],P=[(-1*y-w)/o,(-1*x-M)/s],L=v(A,P);p(A,P)<=-1&&(L=d),p(A,P)>=1&&(L=0),0===a&&L>0&&(L-=2*d),1===a&&0>L&&(L+=2*d),m.addData(f,T,S,o,s,C,L,g,a)}function i(t){if(!t)return[];var i,n=t[X](/-/g," -")[X](/ /g," ")[X](/ /g,",")[X](/,,/g,",");for(i=0;i<l[ge];i++)n=n[X](new RegExp(l[i],"g"),"|"+l[i]);var r,o=n.split("|"),s=0,u=0,c=new a,h=a.CMD;for(i=1;i<o[ge];i++){var d,f=o[i],p=f.charAt(0),v=0,m=f.slice(1)[X](/e,-/g,"e-").split(",");m[ge]>0&&""===m[0]&&m.shift();for(var g=0;g<m[ge];g++)m[g]=parseFloat(m[g]);for(;v<m[ge]&&!isNaN(m[v])&&!isNaN(m[0]);){var y,x,_,b,w,M,T,S=s,C=u;switch(p){case"l":s+=m[v++],u+=m[v++],d=h.L,c.addData(d,s,u);break;case"L":s=m[v++],u=m[v++],d=h.L,c.addData(d,s,u);break;case"m":s+=m[v++],u+=m[v++],d=h.M,c.addData(d,s,u),p="l";break;case"M":s=m[v++],u=m[v++],d=h.M,c.addData(d,s,u),p="L";break;case"h":s+=m[v++],d=h.L,c.addData(d,s,u);break;case"H":s=m[v++],d=h.L,c.addData(d,s,u);break;case"v":u+=m[v++],d=h.L,c.addData(d,s,u);break;case"V":u=m[v++],d=h.L,c.addData(d,s,u);break;case"C":d=h.C,c.addData(d,m[v++],m[v++],m[v++],m[v++],m[v++],m[v++]),s=m[v-2],u=m[v-1];break;case"c":d=h.C,c.addData(d,m[v++]+s,m[v++]+u,m[v++]+s,m[v++]+u,m[v++]+s,m[v++]+u),s+=m[v-2],u+=m[v-1];break;case"S":y=s,x=u;var A=c.len(),P=c.data;r===h.C&&(y+=s-P[A-4],x+=u-P[A-3]),d=h.C,S=m[v++],C=m[v++],s=m[v++],u=m[v++],c.addData(d,y,x,S,C,s,u);break;case"s":y=s,x=u;var A=c.len(),P=c.data;r===h.C&&(y+=s-P[A-4],x+=u-P[A-3]),d=h.C,S=s+m[v++],C=u+m[v++],s+=m[v++],u+=m[v++],c.addData(d,y,x,S,C,s,u);break;case"Q":S=m[v++],C=m[v++],s=m[v++],u=m[v++],d=h.Q,c.addData(d,S,C,s,u);break;case"q":S=m[v++]+s,C=m[v++]+u,s+=m[v++],u+=m[v++],d=h.Q,c.addData(d,S,C,s,u);break;case"T":y=s,x=u;var A=c.len(),P=c.data;r===h.Q&&(y+=s-P[A-4],x+=u-P[A-3]),s=m[v++],u=m[v++],d=h.Q,c.addData(d,y,x,s,u);break;case"t":y=s,x=u;var A=c.len(),P=c.data;r===h.Q&&(y+=s-P[A-4],x+=u-P[A-3]),s+=m[v++],u+=m[v++],d=h.Q,c.addData(d,y,x,s,u);break;case"A":_=m[v++],b=m[v++],w=m[v++],M=m[v++],T=m[v++],S=s,C=u,s=m[v++],u=m[v++],d=h.A,e(S,C,s,u,M,T,_,b,w,d,c);break;case"a":_=m[v++],b=m[v++],w=m[v++],M=m[v++],T=m[v++],S=s,C=u,s+=m[v++],u+=m[v++],d=h.A,e(S,C,s,u,M,T,_,b,w,d,c)}}("z"===p||"Z"===p)&&(d=h.Z,c.addData(d)),r=d}return c.toStatic(),c}function n(t,e){var n,r=i(t);return e=e||{},e.buildPath=function(t){t.setData(r.data),n&&o(t,n);var e=t[L]();e&&t.rebuildPath(e)},e[_]=function(t){n||(n=s[he]()),s.mul(n,t,n),this.dirty(!0)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),s=t("../core/matrix"),l=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],u=Math.sqrt,c=Math.sin,h=Math.cos,d=Math.PI,f=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},p=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(f(t)*f(e))},v=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[oe](n(t,e))},mergePath:function(t,e){for(var i=[],n=t[ge],a=0;n>a;a++){var o=t[a];o.__dirty&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var s=new r(e);return s.buildPath=function(t){t.appendPath(i);var e=t[L]();e&&t.rebuildPath(e)},s}}}),e("zrender/graphic/Path",[Re,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){i.call(this,t),this.path=new a}var i=t("./Displayable"),r=t("../core/util"),a=t("../core/PathProxy"),o=t("../contain/path"),s=t("./Pattern"),l=s[Ie].getCanvasPattern,u=Math.abs;return e[Ie]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,n=this.path,r=i.hasStroke(),a=i.hasFill(),o=i.fill,s=i[y],u=a&&!!o[ue],c=r&&!!s[ue],h=a&&!!o.image,d=r&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var f=this[N]();u&&(this._fillGradient=i.getGradient(t,o,f)),c&&(this._strokeGradient=i.getGradient(t,s,f))}u?t.fillStyle=this._fillGradient:h&&(t.fillStyle=l.call(o,t)),c?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=l.call(s,t));var p=i.lineDash,v=i.lineDashOffset,m=!!t.setLineDash,g=this.getGlobalScale();n.setScale(g[0],g[1]),this.__dirtyPath||p&&!m&&r?(n=this.path.beginPath(t),p&&!m&&(n.setLineDash(p),n.setLineDashOffset(v)),this.buildPath(n,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),a&&n.fill(t),p&&m&&(t.setLineDash(p),t.lineDashOffset=v),r&&n[y](t),p&&m&&t.setLineDash([]),this.restoreTransform(t),null!=i.text&&this.drawRectText(t,this[N]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n[N]()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){r.copy(t);var a=e[x],o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),o>1e-10&&(r.width+=a/o,r[Pe]+=a/o,r.x-=a/o/2,r.y-=a/o/2)}return r}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this[N](),r=this.style;if(t=i[0],e=i[1],n[D](t,e)){var a=this.path.data;if(r.hasStroke()){var s=r[x],l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(r.hasFill())return o[D](a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i[Ie].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(r[le](t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[n];return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},e[oe]=function(t){var i=function(i){e.call(this,i),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var a in n)!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&(r[a]=n[a])}t.init&&t.init.call(this,i)};r[Z](i,e);for(var n in t)"style"!==n&&"shape"!==n&&(i[Ie][n]=t[n]);return i},r[Z](e,i),e}),e("zrender/container/Group",[Re,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),i=t("../Element"),n=t("../core/BoundingRect"),r=function(t){t=t||{},i.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};return r[Ie]={constructor:r,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e[ge];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[ge]},add:function(t){return t&&t!==this&&t[v]!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t[v]!==this&&e&&e[v]===this){var i=this._children,n=i[me](e);n>=0&&(i[ie](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t[v]&&t[v][se](t),t[v]=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[me](a,t);return 0>o?this:(a[ie](o,1),t[v]=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[ge];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),t[v]=null;return i[ge]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[ge];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[ge];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n[Q](t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[ge];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[ge];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[ge];o++){var s=r[o];if(!s[xe]&&!s.invisible){var l=s[N](),u=s.getLocalTransform(a);u?(i.copy(l),i[_](u),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[Z](r,i),r}),e("zrender/graphic/Image",[Re,"./Displayable","../core/BoundingRect","../core/util","../core/LRU"],function(t){function e(t){i.call(this,t)}var i=t("./Displayable"),n=t("../core/BoundingRect"),r=t("../core/util"),a=t("../core/LRU"),o=new a(50);return e[Ie]={constructor:e,type:"image",brush:function(t,e){var i,n=this.style,r=n.image;if(n.bind(t,this,e),i=typeof r===Le?this._image:r,!i&&r){var a=o.get(r);if(!a)return i=new Image,i.onload=function(){i.onload=null;for(var t=0;t<a.pending[ge];t++)a.pending[t].dirty()},a={image:i,pending:[this]},i.src=r,o.put(r,a),void(this._image=i);if(i=a.image,this._image=i,!i.width||!i[Pe])return void a.pending.push(this)}if(i){var s=n.width||i.width,l=n[Pe]||i[Pe],u=n.x||0,c=n.y||0;if(!i.width||!i[Pe])return;if(this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,d=n.sy||0;t.drawImage(i,h,d,n.sWidth,n.sHeight,u,c,s,l)}else if(n.sx&&n.sy){var h=n.sx,d=n.sy,f=s-h,p=l-d;t.drawImage(i,h,d,f,p,u,c,s,l)}else t.drawImage(i,u,c,s,l);null==n.width&&(n.width=s),null==n[Pe]&&(n[Pe]=l),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this[N]())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new n(t.x||0,t.y||0,t.width||0,t[Pe]||0)),this._rect}},r[Z](e,i),e}),e("zrender/graphic/Text",[Re,"./Displayable","../core/util","../contain/text"],function(t){var e=t("./Displayable"),i=t("../core/util"),n=t("../contain/text"),r=function(t){e.call(this,t)};return r[Ie]={constructor:r,type:"text",brush:function(t,e){var i=this.style,r=i.x||0,a=i.y||0,o=i.text;if(null!=o&&(o+=""),i.bind(t,this,e),o){this.setTransform(t);var s,l=i[F],u=i.textFont||i.font;if(i.textVerticalAlign){var c=n[N](o,u,i[F],"top");switch(s=B,i.textVerticalAlign){case B:a-=c[Pe]/2-c.lineHeight/2;break;case ye:a-=c[Pe]-c.lineHeight/2;break;default:a+=c.lineHeight/2}}else s=i.textBaseline;t.font=u||"12px sans-serif",t[F]=l||"left",t[F]!==l&&(t[F]="left"),t.textBaseline=s||"alphabetic",t.textBaseline!==s&&(t.textBaseline="alphabetic");for(var h=n.measureText("国",t.font).width,d=o.split("\n"),f=0;f<d[ge];f++)i.hasFill()&&t.fillText(d[f],r,a),i.hasStroke()&&t.strokeText(d[f],r,a),a+=h;this.restoreTransform(t)}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=n[N](t.text+"",t.textFont||t.font,t[F],e?"top":t.textBaseline);switch(e){case B:i.y-=i[Pe]/2;break;case ye:i.y-=i[Pe]}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},i[Z](r,e),r}),e("zrender/graphic/shape/Circle",[Re,"../Path"],function(t){return t("../Path")[oe]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&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",[Re,"../Path"],function(t){return t("../Path")[oe]({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,u=e.clockwise,c=Math.cos(s),h=Math.sin(s);t[i](c*a+n,h*a+r),t.lineTo(c*o+n,h*o+r),t.arc(n,r,o,s,l,!u),t.lineTo(Math.cos(l)*a+n,Math.sin(l)*a+r),0!==a&&t.arc(n,r,a,l,s,u),t.closePath()}})}),e("zrender/graphic/shape/Polyline",[Re,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[oe]({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/Polygon",[Re,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[oe]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Line",[Re,"../Path"],function(t){return t("../Path")[oe]({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/Rect",[Re,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[oe]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[Pe];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/Ring",[Re,"../Path"],function(t){return t("../Path")[oe]({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/BezierCurve",[Re,"../../core/curve","../../core/vector","../Path"],function(t){function e(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?c:l)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?c:l)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?u:s)(t.x1,t.cpx1,t.x2,e),(i?u:s)(t.y1,t.cpy1,t.y2,e)]}var n=t("../../core/curve"),r=t("../../core/vector"),a=n.quadraticSubdivide,o=n.cubicSubdivide,s=n.quadraticAt,l=n.cubicAt,u=n.quadraticDerivativeAt,c=n.cubicDerivativeAt,h=[];return t("../Path")[oe]({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,u=e.cpx1,c=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,u,s,p,h),u=h[1],s=h[2],a(r,c,l,p,h),c=h[1],l=h[2]),t.quadraticCurveTo(u,c,s,l)):(1>p&&(o(n,u,d,s,p,h),u=h[1],d=h[2],s=h[3],o(r,c,f,l,p,h),c=h[1],f=h[2],l=h[3]),t.bezierCurveTo(u,c,d,f,s,l)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var i=e(this.shape,t,!0);return r.normalize(i,i)}})}),e("zrender/graphic/shape/Arc",[Re,"../Path"],function(t){return t("../Path")[oe]({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,u=Math.cos(o),c=Math.sin(o);t[i](u*a+n,c*a+r),t.arc(n,r,a,o,s,!l)}})}),e("zrender/graphic/CompoundPath",[Re,"./Path"],function(t){var e=t("./Path");return e[oe]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e[ge];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[ge];i++)t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i[ge];n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[ge];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[Ie][N].call(this)}})}),e("zrender/graphic/LinearGradient",[Re,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=o||!1,i.call(this,a)};return n[Ie]={constructor:n},e[Z](n,i),n}),e("zrender/core/BoundingRect",[Re,"./vector","./matrix"],function(t){function e(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this[Pe]=n}var i=t("./vector"),n=t("./matrix"),r=i[_],a=Math.min,o=Math.max;return e[Ie]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=o(t.x+t.width,this.x+this.width)-e,this[Pe]=o(t.y+t[Pe],this.y+this[Pe])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[],i=[],n=[];return function(s){if(s){t[0]=i[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=i[1]=this.y+this[Pe],r(t,t,s),r(e,e,s),r(i,i,s),r(n,n,s),this.x=a(t[0],e[0],i[0],n[0]),this.y=a(t[1],e[1],i[1],n[1]);var l=o(t[0],e[0],i[0],n[0]),u=o(t[1],e[1],i[1],n[1]);this.width=l-this.x,this[Pe]=u-this.y}}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[Pe]/e[Pe],a=n[he]();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){if(!t)return!1;t instanceof e||(t=e[he](t));var i=this,n=i.x,r=i.x+i.width,a=i.y,o=i.y+i[Pe],s=t.x,l=t.x+t.width,u=t.y,c=t.y+t[Pe];return!(s>r||n>l||u>o||a>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[Pe]},clone:function(){return new e(this.x,this.y,this.width,this[Pe])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[Pe]=t[Pe]},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this[Pe]}}},e[he]=function(t){return new e(t.x,t.y,t.width,t[Pe])},e}),e("zrender/graphic/RadialGradient",[Re,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,i.call(this,r)};return n[Ie]={constructor:n},e[Z](n,i),n}),e("zrender/contain/text",[Re,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(o[i])return o[i];for(var n=(t+"").split("\n"),r=0,a=0,u=n[ge];u>a;a++)r=Math.max(d.measureText(n[a],e).width,r);return s>l&&(s=0,o={}),s++,o[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[ge],o=e(t,i),s=e("国",i),l=a*s,u=new c(0,0,o,l);switch(u.lineHeight=s,r){case ye:case"alphabetic":u.y-=s;break;case B:u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case E:u.x-=u.width/2}return u}function n(t,e,i,n){var r=e.x,a=e.y,o=e[Pe],s=e.width,l=i[Pe],u=o/2-l/2,c="left";switch(t){case"left":r-=n,a+=u,c="right";break;case"right":r+=n+s,a+=u,c="left";break;case"top":r+=s/2,a-=n+l,c=E;break;case ye:r+=s/2,a+=o+n,c=E;break;case m:r+=s/2,a+=u,c=E;break;case"insideLeft":r+=n,a+=u,c="left";break;case"insideRight":r+=s-n,a+=u,c="right";break;case"insideTop":r+=s/2,a+=n,c=E;break;case"insideBottom":r+=s/2,a+=o-l-n,c=E;break;case"insideTopLeft":r+=n,a+=n,c="left";break;case"insideTopRight":r+=s-n,a+=n,c="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,c="right"}return{x:r,y:a,textAlign:c,textBaseline:"top"}}function r(t,i,n,r,o){if(!i)return"";o=o||{},r=h(r,"...");for(var s=h(o.maxIterations,2),l=h(o.minChar,0),u=e("国",n),c=e("a",n),d=h(o.placeholder,""),f=i=Math.max(0,i-1),p=0;l>p&&f>=c;p++)f-=c;var v=e(r);v>f&&(r="",v=0),f=i-v;for(var m=(t+"").split("\n"),p=0,g=m[ge];g>p;p++){var y=m[p],x=e(y,n);if(!(i>=x)){for(var _=0;;_++){if(f>=x||_>=s){y+=r;break}var b=0===_?a(y,f,c,u):x>0?Math.floor(y[ge]*f/x):0;y=y.substr(0,b),x=e(y,n)}""===y&&(y=d),m[p]=y}}return m.join("\n")}function a(t,e,i,n){for(var r=0,a=0,o=t[ge];o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?i:n}return a}var o={},s=0,l=5e3,u=t("../core/util"),c=t("../core/BoundingRect"),h=u[f],d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,truncateText:r,measureText:function(t,e){var i=u[L]();return i.font=e||"12px sans-serif",i.measureText(t)}};return d}),e("echarts/coord/axisHelper",[Re,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",De,"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"),a=t("../util/number"),o=t(De),s=t("zrender/contain/text"),l={};return l.getScaleExtent=function(t,e){var i=t.scale,n=i[z](),r=n[1]-n[0];if(i.type===d)return isFinite(r)?n:[0,0];var s=e.getMin?e.getMin():e.get("min"),l=e.getMax?e.getMax():e.get("max"),u=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),c=e.get("boundaryGap");o[U](c)||(c=[c||0,c||0]),c[0]=a.parsePercent(c[0],1),c[1]=a.parsePercent(c[1],1);var h=!0,f=!0;return null==s&&(s=n[0]-c[0]*r,h=!1),null==l&&(l=n[1]+c[1]*r,f=!1),"dataMin"===s&&(s=n[0]),"dataMax"===l&&(l=n[1]),u&&(s>0&&l>0&&!h&&(s=0),0>s&&0>l&&!f&&(l=0)),[s,l]},l.niceScaleExtent=function(t,e){var i=t.scale,n=l.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),a=null!=(e.getMax?e.getMax():e.get("max")),o=e.get("splitNumber");"log"===i.type&&(i.base=e.get("logBase")),i.setExtent(n[0],n[1]),i.niceExtent(o,r,a);var s=e.get("minInterval");if(isFinite(s)&&!r&&!a&&"interval"===i.type){var u=i.getInterval(),c=Math.max(Math.abs(u),s)/u;n=i[z]();var h=(n[1]+n[0])/2;i.setExtent(c*(n[0]-h)+h,c*(n[1]-h)+h),i.niceExtent(o)}var u=e.get("interval");null!=u&&i.setInterval&&i.setInterval(u)},l.createScaleByModel=function(t,a){if(a=a||t.get("type"))switch(a){case r:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getClass(a)||i)[he](t)}},l.ifAxisCrossZero=function(t){var e=t.scale[z](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},l.getAxisLabelInterval=function(t,e,i,n){var r,a=0,o=0,l=1;e[ge]>40&&(l=Math.floor(e[ge]/40));for(var u=0;u<t[ge];u+=l){var c=t[u],h=s[N](e[u],i,E,"top");h[n?"x":"y"]+=c,h[n?"width":Pe]*=1.3,r?r.intersect(h)?(o++,a=Math.max(a,o)):(r.union(h),o=0):r=h.clone()}return 0===a&&l>1?l:(a+1)*l-1},l.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),a=i[k]();return typeof e===Le?(e=function(t){return function(e){return t[X]("{value}",null!=e?e:"")}}(e),o.map(n,e)):typeof e===j?o.map(a,function(n,a){return e(t.type===r?i.getLabel(n):n,a)},this):n},l}),e("echarts/coord/cartesian/Cartesian2D",[Re,De,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(De),n=t("./Cartesian");return e[Ie]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(d)[0]||this.getAxesByScale("time")[0]||this[o]("x")},containPoint:function(t){var e=this[o]("x"),i=this[o]("y");return e[D](e.toLocalCoord(t[0]))&&i[D](i.toLocalCoord(t[1]))},containData:function(t){return this[o]("x").containData(t[0])&&this[o]("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this[s]([t,e])},e,this)},dataToPoint:function(t,e){var i=this[o]("x"),n=this[o]("y");return[i.toGlobalCoord(i[a](t[0],e)),n.toGlobalCoord(n[a](t[1],e))]},pointToData:function(t,e){var i=this[o]("x"),n=this[o]("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this[o]("x"===t.dim?"y":"x")}},i[Z](e,n),e}),e("echarts/coord/cartesian/Axis2D",[Re,De,"../Axis","./axisLabelInterval"],function(t){var e=t(De),i=t("../Axis"),n=t("./axisLabelInterval"),a=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[R]=a||ye};return a[Ie]={constructor:a,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[R];return"top"===t||t===ye},getGlobalExtent:function(){var t=this[z]();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===r){var e=this.getLabelInterval();return typeof e===j&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[Z](a,i),a}),e("echarts/coord/cartesian/GridModel",[Re,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[oe]({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})}),e("echarts/util/clazz",[Re,De],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[Ie][e].apply(t,i)}function i(t,e,i){return this.superClass[Ie][e].apply(t,i)}var n=t(De),r={},a=".",o="___EC__COMPONENT__CONTAINER___",s=r.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(a),e.main=t[0]||"",e.sub=t[1]||""),e};return r.enableClassExtend=function(t,r){t.$constructor=t,t[oe]=function(t){var r=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):r.apply(this,arguments)};return n[oe](a[Ie],t),a[oe]=this[oe],a.superCall=e,a.superApply=i,n[Z](a,this),a.superClass=r,a}},r.enableClassManagement=function(t,e){function i(t){var e=r[t.main];return e&&e[o]||(e=r[t.main]={},e[o]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(e=s(e),e.sub){if(e.sub!==o){var n=i(e);n[e.sub]=t}}else r[e.main]=t;return t},t.getClass=function(t,e,i){var n=r[t];if(n&&n[o]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return n},t.getClassesByMainType=function(t){t=s(t);var e=[],i=r[t.main];return i&&i[o]?n.each(i,function(t,i){i!==o&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=s(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return n.each(r,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=s(t);var e=r[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t[oe];a&&(t[oe]=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",[Re,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[x,"width"],[y,"color"],[O],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash(i[x]);return n&&(i.lineDash=n),i},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}}}),e("echarts/model/mixin/areaStyle",[Re,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[O],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[Re,"zrender/contain/text"],function(t){function e(t,e){return t&&t[g](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this[M];return this[g]("color")||t&&t.get("textStyle.color")
|
|
},getFont:function(){var t=this[M],i=t&&t[Se](G);return[this[g]("fontStyle")||e(i,"fontStyle"),this[g]("fontWeight")||e(i,"fontWeight"),(this[g]("fontSize")||e(i,"fontSize")||12)+"px",this[g]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){return i[N](t,this[V](),this[g]("align"),this[g]("baseline"))},truncateText:function(t,e,n,r){return i.truncateText(t,e,this[V](),n,r)}}}),e("echarts/model/mixin/itemStyle",[Re,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["fill","color"],[y,"borderColor"],[x,"borderWidth"],[O],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],[F]]);return{getItemStyle:function(t){var i=e.call(this,t),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/graphic/mixin/RectText",[Re,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===Le?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var i=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[Ie]={constructor:o,drawRectText:function(t,r,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){t.save();var u,c,h=s.textPosition,d=s.textDistance,f=s[F],p=s.textFont||s.font,v=s.textBaseline,m=s.textVerticalAlign;o=o||i[N](l,p,f,v);var g=this[n];if(s.textTransform?this.setTransform(t):g&&(a.copy(r),a[_](g),r=a),h instanceof Array){if(u=r.x+e(h[0],r.width),c=r.y+e(h[1],r[Pe]),f=f||"left",v=v||"top",m){switch(m){case B:c-=o[Pe]/2-o.lineHeight/2;break;case ye:c-=o[Pe]-o.lineHeight/2;break;default:c+=o.lineHeight/2}v=B}}else{var y=i.adjustTextPositionOnRect(h,r,o,d);u=y.x,c=y.y,f=f||y[F],v=v||y.textBaseline}t[F]=f||"left",t.textBaseline=v||"alphabetic";var x=s.textFill,b=s.textStroke;x&&(t.fillStyle=x),b&&(t.strokeStyle=b),t.font=p||"12px sans-serif",t.shadowBlur=s.textShadowBlur,t.shadowColor=s.textShadowColor||"transparent",t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;var w=l.split("\n");s.textRotation&&(g&&t.translate(g[4],g[5]),t.rotate(s.textRotation),g&&t.translate(-g[4],-g[5]));for(var M=0;M<w[ge];M++)x&&t.fillText(w[M],u,c),b&&t.strokeText(w[M],u,c),c+=o.lineHeight;t.restore()}}},o}),e("zrender/core/PathProxy",[Re,"./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=[],u=[],c=[],h=[],d=Math.min,f=Math.max,p=Math.cos,v=Math.sin,m=Math.sqrt,g=Math.abs,x=typeof Float32Array!=I,_=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 _[Ie]={constructor:_,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=g(1/o/t)||0,this._uy=g(1/o/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(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=g(t-this._xi)>this._ux||g(e-this._yi)>this._uy||this._len<5;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=p(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[y](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[ge];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[ge];this.data&&this.data[ge]==e||!x||(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[ge],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();x&&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[ge];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[ge]>e[ge]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[ge];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,u=this._xi,c=this._yi,h=t-u,p=e-c,v=m(h*h+p*p),g=u,y=c,x=s[ge];for(h/=v,p/=v,0>o&&(o=a+o),o%=a,g-=o*h,y-=o*p;h>0&&t>=g||0>h&&g>=t||0==h&&(p>0&&e>=y||0>p&&y>=e);)r=this._dashIdx,n=s[r],g+=h*n,y+=p*n,this._dashIdx=(r+1)%x,h>0&&u>g||0>h&&g>u||p>0&&c>y||0>p&&y>c||l[r%2?i:"lineTo"](h>=0?d(g,t):f(g,t),p>=0?d(y,e):f(y,e));h=g-t,p=y-e,this._dashOffset=-m(h*h+p*p)},_dashedBezierTo:function(t,n,r,a,o,s){var l,u,c,h,d,f=this._dashSum,p=this._dashOffset,v=this._lineDash,g=this._ctx,y=this._xi,x=this._yi,_=e.cubicAt,b=0,w=this._dashIdx,M=v[ge],T=0;for(0>p&&(p=f+p),p%=f,l=0;1>l;l+=.1)u=_(y,t,r,o,l+.1)-_(y,t,r,o,l),c=_(x,n,a,s,l+.1)-_(x,n,a,s,l),b+=m(u*u+c*c);for(;M>w&&(T+=v[w],!(T>p));w++);for(l=(T-p)/b;1>=l;)h=_(y,t,r,o,l),d=_(x,n,a,s,l),w%2?g[i](h,d):g.lineTo(h,d),l+=v[w]/b,w=(w+1)%M;w%2!==0&&g.lineTo(o,s),u=o-h,c=s-d,this._dashOffset=-m(u*u+c*c)},_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[ge]=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){l[0]=l[1]=c[0]=c[1]=Number.MAX_VALUE,u[0]=u[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[ge];){var m=t[f++];switch(1==f&&(e=t[f],i=t[f+1],o=e,d=i),m){case s.M:o=t[f++],d=t[f++],e=o,i=d,c[0]=o,c[1]=d,h[0]=o,h[1]=d;break;case s.L:r.fromLine(e,i,t[f],t[f+1],c,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],c,h),e=t[f++],i=t[f++];break;case s.Q:r.fromQuadratic(e,i,t[f++],t[f++],t[f],t[f+1],c,h),e=t[f++],i=t[f++];break;case s.A:var g=t[f++],y=t[f++],x=t[f++],_=t[f++],b=t[f++],w=t[f++]+b,M=(t[f++],1-t[f++]);1==f&&(o=p(b)*x+g,d=v(b)*_+y),r.fromArc(g,y,x,_,b,w,M,c,h),e=p(w)*x+g,i=v(w)*_+y;break;case s.R:o=e=t[f++],d=i=t[f++];var T=t[f++],S=t[f++];r.fromLine(o,d,o+T,d+S,c,h);break;case s.Z:e=o,i=d}n.min(l,l,c),n.max(u,u,h)}return 0===f&&(l[0]=l[1]=u[0]=u[1]=0),new a(l[0],l[1],u[0]-l[0],u[1]-l[1])},rebuildPath:function(t){for(var e,n,r,a,o,l,u=this.data,c=this._ux,h=this._uy,d=this._len,f=0;d>f;){var m=u[f++];switch(1==f&&(r=u[f],a=u[f+1],e=r,n=a),m){case s.M:e=r=u[f++],n=a=u[f++],t[i](r,a);break;case s.L:o=u[f++],l=u[f++],(g(o-r)>c||g(l-a)>h||f===d-1)&&(t.lineTo(o,l),r=o,a=l);break;case s.C:t.bezierCurveTo(u[f++],u[f++],u[f++],u[f++],u[f++],u[f++]),r=u[f-2],a=u[f-1];break;case s.Q:t.quadraticCurveTo(u[f++],u[f++],u[f++],u[f++]),r=u[f-2],a=u[f-1];break;case s.A:var y=u[f++],x=u[f++],_=u[f++],b=u[f++],w=u[f++],M=u[f++],T=u[f++],S=u[f++],C=_>b?_:b,A=_>b?1:_/b,P=_>b?b/_:1,L=Math.abs(_-b)>.001,I=w+M;L?(t.translate(y,x),t.rotate(T),t.scale(A,P),t.arc(0,0,C,w,I,1-S),t.scale(1/A,1/P),t.rotate(-T),t.translate(-y,-x)):t.arc(y,x,C,w,I,1-S),1==f&&(e=p(w)*_+y,n=v(w)*b+x),r=p(I)*_+y,a=v(I)*b+x;break;case s.R:e=r=u[f],n=a=u[f+1],t.rect(u[f++],u[f++],u[f++],u[f++]);break;case s.Z:t.closePath(),r=e,a=n}}}},_.CMD=s,_}),e("zrender/graphic/Displayable",[Re,"../core/util","./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("../core/util"),n=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[Ie]={constructor:e,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:-1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this[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[Ie].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[Z](e,r),i.mixin(e,a),e}),e("zrender/graphic/Gradient",[Re],function(){var t=function(t){this[ue]=t||[]};return t[Ie]={constructor:t,addColorStop:function(t,e){this[ue].push({offset:t,color:e})}},t}),e("zrender/vml/core",[Re,"exports","module","../core/env"],function(t,e,i){if(!t("../core/env")[we]){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[P]("<zrvml:"+t+' class="zrvml">')}}catch(l){n=function(t){return o[P]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var u=function(){if(!s){s=!0;var t=o.styleSheets;t[ge]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};i.exports={doc:o,initVML:u,createNode:n}}}),e("echarts/component/toolbox/featureManager",[Re],function(){var t={};return{register:function(e,i){t[e]=i},get:function(e){return t[e]}}}),e("zrender/contain/path",[Re,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=x[0];x[0]=x[1],x[1]=t}function n(t,e,n,r,a,o,s,l,u,c){if(c>e&&c>r&&c>o&&c>l||e>c&&r>c&&o>c&&l>c)return 0;var h=f.cubicRootAt(e,r,o,l,c,y);if(0===h)return 0;for(var d,p,v=0,m=-1,g=0;h>g;g++){var _=y[g],b=0===_||1===_?.5:1,w=f.cubicAt(t,n,a,s,_);u>w||(0>m&&(m=f.cubicExtrema(e,r,o,l,x),x[1]<x[0]&&m>1&&i(),d=f.cubicAt(e,r,o,l,x[0]),m>1&&(p=f.cubicAt(e,r,o,l,x[1]))),v+=2==m?_<x[0]?e>d?b:-b:_<x[1]?d>p?b:-b:p>l?b:-b:_<x[0]?e>d?b:-b:d>l?b:-b)}return v}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var l=f.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var u=f.quadraticExtremum(e,n,a);if(u>=0&&1>=u){for(var c=0,h=f.quadraticAt(e,n,a,u),d=0;l>d;d++){var p=0===y[d]||1===y[d]?.5:1,v=f.quadraticAt(t,i,r,y[d]);o>v||(c+=y[d]<u?e>h?p:-p:h>a?p:-p)}return c}var p=0===y[0]||1===y[0]?.5:1,v=f.quadraticAt(t,i,r,y[0]);return o>v?0:e>a?p:-p}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);y[0]=-l,y[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(1e-4>u%m){n=0,r=m;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=n;n=d(r),r=d(l)}else n=d(n),r=d(r);n>r&&(r+=m);for(var h=0,f=0;2>f;f++){var p=y[f];if(p+t>o){var v=Math.atan2(s,p),c=a?1:-1;0>v&&(v=m+v),(v>=n&&r>=v||v+m>=n&&r>=v+m)&&(v>Math.PI/2&&v<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,l,d){for(var f=0,m=0,g=0,y=0,x=0,_=0;_<t[ge];){var b=t[_++];switch(b===s.M&&_>1&&(o||(f+=p(m,g,y,x,l,d))),1==_&&(m=t[_],g=t[_+1],y=m,x=g),b){case s.M:y=t[_++],x=t[_++],m=y,g=x;break;case s.L:if(o){if(v(m,g,t[_],t[_+1],i,l,d))return!0}else f+=p(m,g,t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.C:if(o){if(u.containStroke(m,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=n(m,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.Q:if(o){if(c.containStroke(m,g,t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=r(m,g,t[_++],t[_++],t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.A:var w=t[_++],M=t[_++],T=t[_++],S=t[_++],C=t[_++],A=t[_++],P=(t[_++],1-t[_++]),L=Math.cos(C)*T+w,I=Math.sin(C)*S+M;_>1?f+=p(m,g,L,I,l,d):(y=L,x=I);var k=(l-w)*S/T+w;if(o){if(h.containStroke(w,M,S,C,C+A,P,i,k,d))return!0}else f+=a(w,M,S,C,C+A,P,k,d);m=Math.cos(C+A)*T+w,g=Math.sin(C+A)*S+M;break;case s.R:y=m=t[_++],x=g=t[_++];var z=t[_++],D=t[_++],L=y+z,I=x+D;if(o){if(v(y,x,L,x,i,l,d)||v(L,x,L,I,i,l,d)||v(L,I,y,I,i,l,d)||v(y,I,y,x,i,l,d))return!0}else f+=p(L,x,L,I,l,d),f+=p(y,I,y,x,l,d);break;case s.Z:if(o){if(v(m,g,y,x,i,l,d))return!0}else f+=p(m,g,y,x,l,d);m=y,g=x}}return o||e(g,x)||(f+=p(m,g,y,x,l,d)||0),0!==f}var s=t("../core/PathProxy").CMD,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),d=t("./util").normalizeRadian,f=t("../core/curve"),p=t("./windingLine"),v=l.containStroke,m=2*Math.PI,g=1e-4,y=[-1,-1,-1],x=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/tool/transformPath",[Re,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,u,c,h,d,f=t.data,p=i.M,v=i.C,m=i.L,g=i.R,y=i.A,x=i.Q;for(u=0,c=0;u<f[ge];){switch(n=f[u++],c=u,l=0,n){case p:l=1;break;case m:l=1;break;case v:l=3;break;case x:l=2;break;case y:var _=e[4],b=e[5],w=o(e[0]*e[0]+e[1]*e[1]),M=o(e[2]*e[2]+e[3]*e[3]),T=s(-e[1]/M,e[0]/w);f[u++]+=_,f[u++]+=b,f[u++]*=w,f[u++]*=M,f[u++]+=T,f[u++]+=T,u+=2,c=u;break;case g:d[0]=f[u++],d[1]=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1],d[0]+=f[u++],d[1]+=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1]}for(h=0;l>h;h++){var d=a[h];d[0]=f[u++],d[1]=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[_],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/graphic/Pattern",[Re],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[Ie].getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t}),e("echarts/scale/Ordinal",[Re,De,"./Scale"],function(t){var e=t(De),i=t("./Scale"),n=i[Ie],r=i[oe]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[ge]-1]},parse:function(t){return typeof t===Le?e[me](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[he]=function(){return new r},r}),e("echarts/model/mixin/makeStyleMapper",[Re,De],function(t){var e=t(De);return function(t){for(var i=0;i<t[ge];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[ge];r++){var a=t[r][1];if(!(i&&e[me](i,a)>=0)){var o=this[g](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/core/curve",[Re,"./vector"],function(t){function e(t){return t>-_&&_>t}function i(t){return t>_||-_>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,l=3*(n-2*i+t),u=3*(i-t),c=t-a,h=l*l-3*s*u,d=l*u-9*s*c,f=u*u-3*l*c,p=0;if(e(h)&&e(d))if(e(l))o[0]=0;else{var v=-u/l;v>=0&&1>=v&&(o[p++]=v)}else{var m=d*d-4*h*f;if(e(m)){var g=d/h,v=-l/s+g,_=-g/2;v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_)}else if(m>0){var b=x(m),T=h*l+1.5*s*(-d+b),S=h*l+1.5*s*(-d-b);T=0>T?-y(-T,M):y(T,M),S=0>S?-y(-S,M):y(S,M);var v=(-l-(T+S))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var C=(2*h*l-3*s*d)/(2*x(h*h*h)),A=Math.acos(C)/3,P=x(h),L=Math.cos(A),v=(-l-2*P*L)/(3*s),_=(-l+P*(L+w*Math.sin(A)))/(3*s),I=(-l+P*(L-w*Math.sin(A)))/(3*s);v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_),I>=0&&1>=I&&(o[p++]=I)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,u=3*n-3*t,c=0;if(e(l)){if(i(s)){var h=-u/s;h>=0&&1>=h&&(o[c++]=h)}}else{var d=s*s-4*l*u;if(e(d))o[0]=-s/(2*l);else if(d>0){var f=x(d),h=(-s+f)/(2*l),p=(-s-f)/(2*l);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,u,c,h){var d,f,p,v,m,y=.005,_=1/0;T[0]=u,T[1]=c;for(var w=0;1>w;w+=.05)S[0]=n(t,i,a,s,w),S[1]=n(e,r,o,l,w),v=g(T,S),_>v&&(d=w,_=v);_=1/0;for(var M=0;32>M&&!(b>y);M++)f=d-y,p=d+y,S[0]=n(t,i,a,s,f),S[1]=n(e,r,o,l,f),v=g(S,T),f>=0&&_>v?(d=f,_=v):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,l,p),m=g(C,T),1>=p&&_>m?(d=p,_=m):y*=.5);return h&&(h[0]=n(t,i,a,s,d),h[1]=n(e,r,o,l,d)),x(_)}function u(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),u=t-a,c=0;if(e(s)){if(i(l)){var h=-u/l;h>=0&&1>=h&&(o[c++]=h)}}else{var d=l*l-4*s*u;if(e(d)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(d>0){var f=x(d),h=(-l+f)/(2*s),p=(-l-f)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function d(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function f(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,l){var c,h=.005,d=1/0;T[0]=o,T[1]=s;for(var f=0;1>f;f+=.05){S[0]=u(t,i,r,f),S[1]=u(e,n,a,f);var p=g(T,S);d>p&&(c=f,d=p)}d=1/0;for(var v=0;32>v&&!(b>h);v++){var m=c-h,y=c+h;S[0]=u(t,i,r,m),S[1]=u(e,n,a,m);var p=g(S,T);if(m>=0&&d>p)c=m,d=p;else{C[0]=u(t,i,r,y),C[1]=u(e,n,a,y);var _=g(C,T);1>=y&&d>_?(c=y,d=_):h*=.5}}return l&&(l[0]=u(t,i,r,c),l[1]=u(e,n,a,c)),x(d)}var v=t("./vector"),m=v[he],g=v.distSquare,y=Math.pow,x=Math.sqrt,_=1e-8,b=1e-4,w=x(3),M=1/3,T=m(),S=m(),C=m();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:u,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:d,quadraticSubdivide:f,quadraticProjectPoint:p}}),e("zrender/core/bbox",[Re,"./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[he](),u=e[he](),c=e[he](),h=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t[ge]){var n,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(n=1;n<t[ge];n++)o=t[n],s=r(s,o[0]),l=a(l,o[0]),u=r(u,o[1]),c=a(c,o[1]);e[0]=s,e[1]=u,i[0]=l,i[1]=c}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)};var d=[],f=[];return n.fromCubic=function(t,e,n,o,s,l,u,c,h,p){var v,m=i.cubicExtrema,g=i.cubicAt,y=m(t,n,s,u,d);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,v=0;y>v;v++){var x=g(t,n,s,u,d[v]);h[0]=r(x,h[0]),p[0]=a(x,p[0])}for(y=m(e,o,l,c,f),v=0;y>v;v++){var _=g(e,o,l,c,f[v]);h[1]=r(_,h[1]),p[1]=a(_,p[1])}h[0]=r(t,h[0]),p[0]=a(t,p[0]),h[0]=r(u,h[0]),p[0]=a(u,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(c,h[1]),p[1]=a(c,p[1])},n.fromQuadratic=function(t,e,n,o,s,l,u,c){var h=i.quadraticExtremum,d=i.quadraticAt,f=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),v=d(t,n,s,f),m=d(e,o,l,p);u[0]=r(t,s,v),u[1]=r(e,l,m),c[0]=a(t,s,v),c[1]=a(e,l,m)},n.fromArc=function(t,i,n,r,a,d,f,p,v){var m=e.min,g=e.max,y=Math.abs(a-d);if(1e-4>y%h&&y>1e-4)return p[0]=t-n,p[1]=i-r,v[0]=t+n,void(v[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,u[0]=s(d)*n+t,u[1]=o(d)*r+i,m(p,l,u),g(v,l,u),a%=h,0>a&&(a+=h),d%=h,0>d&&(d+=h),a>d&&!f?d+=h:d>a&&f&&(a+=h),f){var x=d;d=a,a=x}for(var _=0;d>_;_+=Math.PI/2)_>a&&(c[0]=s(_)*n+t,c[1]=o(_)*r+i,m(p,c,p),g(v,c,v))},n}),e("zrender/config",[],function(){var t=1;typeof window!==I&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/graphic/Style",[Re],function(){function t(t,e,i){var n=e.x,r=e.x2,a=e.y,o=e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i[Pe]+i.y,o=o*i[Pe]+i.y);var s=t.createLinearGradient(n,a,r,o);return s}function e(t,e,i){var n=i.width,r=i[Pe],a=Math.min(n,r),o=e.x,s=e.y,l=e.r;e.global||(o=o*n+i.x,s=s*r+i.y,l*=a);var u=t.createRadialGradient(o,s,0,o,s,l);return u}var i=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],n=function(t){this.extendFrom(t)};n[Ie]={constructor:n,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textTransform:!1,textRotation:0,blend:null,bind:function(t,e,n){for(var r=this,a=n&&n.style,o=!a,s=0;s<i[ge];s++){var l=i[s],u=l[0];(o||r[u]!==a[u])&&(t[u]=r[u]||l[1])}if((o||r.fill!==a.fill)&&(t.fillStyle=r.fill),(o||r[y]!==a[y])&&(t.strokeStyle=r[y]),(o||r[O]!==a[O])&&(t.globalAlpha=null==r[O]?1:r[O]),(o||r.blend!==a.blend)&&(t.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var c=r[x];t[x]=c/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this[y];return null!=t&&"none"!==t&&this[x]>0},extendFrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasOwnProperty(n)||!e&&i.hasOwnProperty(n)||(i[n]=t[n])}},set:function(t,e){typeof t===Le?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(i,n,r){for(var a="radial"===n.type?e:t,o=a(i,n,r),s=n[ue],l=0;l<s[ge];l++)o.addColorStop(s[l].offset,s[l].color);return o}};for(var r=n[Ie],a=0;a<i[ge];a++){var o=i[a];o[0]in r||(r[o[0]]=o[1])}return n.getGradient=r.getGradient,n}),e("zrender/Element",[Re,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),r=t("./mixin/Transformable"),a=t("./mixin/Animatable"),o=t("./core/util"),s=function(t){r.call(this,t),i.call(this,t),a.call(this,t),this.id=t.id||e()};return s[Ie]={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[n];i||(i=this[n]=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===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[xe]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[xe]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===Le)this.attrKV(t,e);else if(o[le](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[ge];i++)t[Ce].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[ge];i++)t[Ce].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},o.mixin(s,a),o.mixin(s,r),o.mixin(s,i),s}),e("echarts/coord/cartesian/Cartesian",[Re,De],function(t){function e(t){return this._axes[t]}var i=t(De),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[Ie]={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[ke](),i[q](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,a)},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[ge];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("echarts/util/component",[Re,De,"./clazz"],function(t){var e=t(De),i=t("./clazz"),n=i.parseClassType,r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var l=r(n,s),u=l.originalDeps=i(s),c=a(u,t);l.entryCount=c[ge],0===l.entryCount&&o.push(s),e.each(c,function(t){e[me](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[me](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[me](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){u[t].entryCount--,0===u[t].entryCount&&c.push(t)}function s(t){h[t]=!0,o(t)}if(t[ge]){var l=n(i),u=l.graph,c=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[ge];){var d=c.pop(),f=u[d],p=!!h[d];p&&(r.call(a,d,f.originalDeps.slice()),delete h[d]),e.each(f.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/model/mixin/boxLayout",[Re],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(ye),width:this.get("width"),height:this.get(Pe)}}}}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/Transformable",[Re,"../core/matrix","../core/vector"],function(t){function e(t){return t>o||-o>t}var i=t("../core/matrix"),r=t("../core/vector"),a=i.identity,o=5e-5,s=function(t){t=t||{},t[R]||(this[R]=[0,0]),null==t[p]&&(this[p]=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=s[Ie];l[n]=null,l.needLocalTransform=function(){return e(this[p])||e(this[R][0])||e(this[R][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},l.updateTransform=function(){var t=this[v],e=t&&t[n],r=this.needLocalTransform(),o=this[n];return r||e?(o=o||i[he](),r?this.getLocalTransform(o):a(o),e&&(r?i.mul(o,t[n],o):i.copy(o,t[n])),this[n]=o,this.invTransform=this.invTransform||i[he](),void i.invert(this.invTransform,o)):void(o&&a(o))},l.getLocalTransform=function(t){t=t||[],a(t);var e=this.origin,n=this.scale,r=this[p],o=this[R];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),r&&i.rotate(t,t,r),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},l.setTransform=function(t){var e=this[n],i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},l.restoreTransform=function(t){var e=(this[n],t.dpr||1);t.setTransform(e,0,0,e,0,0)};var u=[];return l.decomposeTransform=function(){if(this[n]){var t=this[v],r=this[n];t&&t[n]&&(i.mul(u,t.invTransform,r),r=u);var a=r[0]*r[0]+r[1]*r[1],o=r[2]*r[2]+r[3]*r[3],s=this[R],l=this.scale;e(a-1)&&(a=Math.sqrt(a)),e(o-1)&&(o=Math.sqrt(o)),r[0]<0&&(a=-a),r[3]<0&&(o=-o),s[0]=r[4],s[1]=r[5],l[0]=a,l[1]=o,this[p]=Math.atan2(-r[1]/o,r[0]/a)}},l.getGlobalScale=function(){var t=this[n];if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},l.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&r[_](i,i,n),i},l.transformCoordToGlobal=function(t,e){var i=[t,e],a=this[n];return a&&r[_](i,i,a),i},s}),e("zrender/mixin/Animatable",[Re,"../animation/Animator","../core/util","../core/log"],function(t){var e=t("../animation/Animator"),i=t("../core/util"),n=i.isString,r=i.isFunction,a=i[le],o=t("../core/log"),s=function(){this.animators=[]};return s[Ie]={constructor:s,animate:function(t,n){var r,a=!1,s=this,l=this.__zr;if(t){var u=t.split("."),c=s;a="shape"===u[0];for(var h=0,d=u[ge];d>h;h++)c&&(c=c[u[h]]);c&&(r=c)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var f=s.animators,p=new e(r,n);return p.during(function(){s.dirty(a)}).done(function(){f[ie](i[me](f,p),1)}),f.push(p),l&&l[Ce].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[ge],n=0;i>n;n++)e[n].stop(t);return e[ge]=0,this},animateTo:function(t,e,i,a,o){function s(){u--,u||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,a,o);var l=this.animators.slice(),u=l[ge];u||o&&o();for(var c=0;c<l[ge];c++)l[c].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},l=0;for(var u in n)if(n.hasOwnProperty(u))if(null!=e[u])a(n[u])&&!i.isArrayLike(n[u])?this._animateToShallow(t?t+"."+u:u,e[u],n[u],r,o):(s[u]=n[u],l++);else if(null!=n[u])if(t){var c={};c[t]={},c[t][u]=n[u],this.attr(c)}else this.attr(u,n[u]);return l>0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("echarts/coord/Axis",[Re,"../util/number",De],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(De),o=[0,1],s=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return s[Ie]={constructor:s,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[a](t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[z](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var r=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type===d&&(r=r.slice(),e(r,a.count())),n(t,o,r,i)},coordToData:function(t,i){var r=this._extent,a=this.scale;this.onBand&&a.type===d&&(r=r.slice(),e(r,a.count()));var s=n(t,r,o,i);return this.scale.scale(s)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;n<e[ge];n++)i.push(e[n][0]);return e[n-1]&&i.push(e[n-1][1]),i}return r.map(this.scale[k](),this[a],this)},getLabelsCoords:function(){return r.map(this.scale[k](),this[a],this)},getBands:function(){for(var t=this[z](),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[z](),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}},s}),e("echarts/coord/cartesian/axisLabelInterval",[Re,De,"../axisHelper"],function(t){var e=t(De),i=t("../axisHelper");return function(t){var n=t.model,o=n[Se]("axisLabel"),s=o.get("interval");return t.type!==r||"auto"!==s?"auto"===s?0:s:i.getAxisLabelInterval(e.map(t.scale[k](),t[a],t),n.getFormattedLabels(),o[Se](G)[V](),t.isHorizontal())}}),e("zrender/core/log",[Re,"../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",[Re,"./Clip","../tool/color","../core/util"],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[ge];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][ge],s=0;o>s;s++)for(var u=0;l>u;u++)r[s][u]=n(t[s][u],e[s][u],i)}function o(t,e,i){var n=t[ge],r=e[ge];if(n!==r){var a=n>r;if(a)t[ge]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:g.call(e[o]))}for(var s=t[0]&&t[0][ge],o=0;o<t[ge];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[ge];if(n!==e[ge])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][ge],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,l){var c=t[ge];if(1==l)for(var h=0;c>h;h++)s[h]=u(t[h],e[h],i[h],n[h],r,a,o);else for(var d=t[0][ge],h=0;c>h;h++)for(var f=0;d>f;f++)s[h][f]=u(t[h][f],e[h][f],i[h][f],n[h][f],r,a,o)}function u(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function c(t){if(m(t)){var e=t[ge];if(m(t[0])){for(var i=[],n=0;e>n;n++)i.push(g.call(t[n]));return i}return g.call(t)}return t}function h(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,c,d){var v=t._getter,g=t._setter,y="spline"===e,x=c[ge];if(x){var _,b=c[0].value,w=m(b),M=!1,T=!1,S=w&&m(b[0])?2:1;c.sort(function(t,e){return t.time-e.time}),_=c[x-1].time;for(var C=[],A=[],P=c[0].value,L=!0,I=0;x>I;I++){C.push(c[I].time/_);var k=c[I].value;if(w&&s(k,P,S)||!w&&k===P||(L=!1),P=k,typeof k==Le){var z=p.parse(k);z?(k=z,M=!0):T=!0}A.push(k)}if(!L){for(var D=A[x-1],I=0;x-1>I;I++)w?o(A[I],D,S):!isNaN(A[I])||isNaN(D)||T||M||(A[I]=D);w&&o(v(t._target,d),D,S);var O,R,E,B,N,V,F=0,G=0;if(M)var H=[0,0,0,0];var Z=function(t,e){var i;if(0>e)i=0;else 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,y)if(B=A[i],E=A[0===i?i:i-1],N=A[i>x-2?x-1:i+1],V=A[i>x-3?x-1:i+2],w)l(E,B,N,V,R,R*R,R*R*R,v(t,d),S);else{var s;if(M)s=l(E,B,N,V,R,R*R,R*R*R,H,1),s=h(H);else{if(T)return r(B,N,R);s=u(E,B,N,V,R,R*R,R*R*R)}g(t,d,s)}else if(w)a(A[i],A[i+1],R,v(t,d),S);else{var s;if(M)a(A[i],A[i+1],R,H,1),s=h(H);else{if(T)return r(A[i],A[i+1],R);s=n(A[i],A[i+1],R)}g(t,d,s)}},q=new f({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:Z,ondestroy:i});return e&&"spline"!==e&&(q.easing=e),q}}}var f=t("./Clip"),p=t("../tool/color"),v=t("../core/util"),m=v.isArrayLike,g=Array[Ie].slice,y=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return y[Ie]={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:c(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[ge]=0;for(var t=this._doneList,e=t[ge],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[Ce]&&this[Ce].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[ge];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[Ce],n=0;n<e[ge];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[ge]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},y}),e("echarts/coord/cartesian/AxisModel",[Re,"../../model/Component",De,"../axisModelCreator","../axisModelCommonMixin","../axisModelZoomMixin"],function(t){function e(t,e){return e.type||(e.data?r:"value")}var i=t("../../model/Component"),n=t(De),a=t("../axisModelCreator"),o=i[oe]({type:"cartesian2dAxis",axis:null,init:function(){o.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){o.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){o.superApply(this,"restoreData",arguments),this.resetRange()},findGridModel:function(){return this[M][S]({mainType:"grid",index:this.get("gridIndex"),id:this.get("gridId")})[0]}});n.merge(o[Ie],t("../axisModelCommonMixin")),n.merge(o[Ie],t("../axisModelZoomMixin"));var s={offset:0};return a("x",o,e,s),a("y",o,e,s),o}),e("zrender/animation/Clip",[Re,"./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[Ie]={constructor:e,step:function(t){this._initialized||(this._startTime=t+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var n=this.easing,r=typeof n==Le?i[n]:n,a=typeof r===j?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime)%this._life;this._startTime=t-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("echarts/coord/axisModelZoomMixin",[Re],function(){return{getMin:function(){var t=this[C],e=null!=t.rangeStart?t.rangeStart:t.min;return e instanceof Date&&(e=+e),e},getMax:function(){var t=this[C],e=null!=t.rangeEnd?t.rangeEnd:t.max;return e instanceof Date&&(e=+e),e},getNeedCrossZero:function(){var t=this[C];return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},setRange:function(t,e){this[C].rangeStart=t,this[C].rangeEnd=e},resetRange:function(){this[C].rangeStart=this[C].rangeEnd=null}}}),e("echarts/coord/axisModelCreator",[Re,"./axisDefault",De,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(De),n=t("../model/Component"),a=t("../util/layout"),o=["value",r,"time","log"];return function(t,r,s,l){i.each(o,function(n){r[oe]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,r){var o=this.layoutMode,l=o?a.getLayoutParams(e):{},u=r.getTheme();i.merge(e,u.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&a.mergeLayoutParam(e,l,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],l],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[Re,De,"./axisHelper"],function(t){function e(t){return a[le](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===r&&a.map(this.get("data"),e)}function n(){return o.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var a=t(De),o=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),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/coord/axisDefault",[Re,De],function(t){var e=t(De),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n=e.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),r=e.merge({boundaryGap:[0,0],splitNumber:5},i),a=e[ae]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[ae]({logBase:10},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("zrender/contain/arc",[Re,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=n;var d=Math.sqrt(u*u+c*c);if(d-h>r||r>d+h)return!1;if(Math.abs(a-o)%i<1e-4)return!0;if(s){var f=a;a=e(o),o=e(f)}else a=e(a),o=e(o);a>o&&(o+=i);var p=Math.atan2(c,u);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/cubic",[Re,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u,c,h){if(0===u)return!1;var d=u;if(h>i+d&&h>r+d&&h>o+d&&h>l+d||i-d>h&&r-d>h&&o-d>h&&l-d>h||c>t+d&&c>n+d&&c>a+d&&c>s+d||t-d>c&&n-d>c&&a-d>c&&s-d>c)return!1;var f=e.cubicProjectPoint(t,i,n,r,a,o,s,l,c,h,null);return d/2>=f}}}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*a-o+u,h=c*c/(l*l+1);return s/2*s/2>=h}}}),e("zrender/contain/quadratic",[Re,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>i+c&&u>r+c&&u>o+c||i-c>u&&r-c>u&&o-c>u||l>t+c&&l>n+c&&l>a+c||t-c>l&&n-c>l&&a-c>l)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,l,u,null);return c/2>=h}}}),e("zrender/contain/util",[Re],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);(1===s||0===s)&&(o=e>n?.5:-.5);var l=s*(i-t)+t;return l>r?o:0}}),e("zrender/core/LRU",[Re],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[Ie];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[se]=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[Ie];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[se](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[se](e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("echarts/chart/helper/createListFromArray",[Re,"../../data/List","../../data/helper/completeDimensions",De,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[ge]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!f[U](m(i))}function n(t,e,n){t=t||[];var r=e.get(ve),a=y[r],o=v.get(r),l=a&&a(t,e,n),d=l&&l[c];d||(d=o&&o[c]||["x","y"],d=h(d,t,d[A](["value"])));var x=l?l.categoryIndex:-1,_=new u(d,e),b=s(l,t),w={},M=x>=0&&i(t)?function(t,e,i,n){return p.isDataItemOption(t)&&(_.hasItemOption=!0),n===x?i:g(m(t),d[n])}:function(t,e,i,n){var r=m(t),a=g(r&&r[n],d[n]);p.isDataItemOption(t)&&(_.hasItemOption=!0);var o=l&&l.categoryAxesModels;return o&&o[e]&&typeof a===Le&&(w[e]=w[e]||o[e].getCategories(),a=f[me](w[e],a),0>a&&!isNaN(a)&&(a=+a)),a};return _.hasItemOption=!1,_.initData(t,b,M),_}function a(t){return t!==r&&"time"!==t}function o(t){return t===r?d:"time"===t?"time":"float"}function s(t,e){var i,n=[],r=t&&t[c][t.categoryIndex];if(r&&(i=t.categoryAxesModels[r.name]),i){var a=i.getCategories();if(a){var o=e[ge];if(f[U](e[0])&&e[0][ge]>1){n=[];for(var s=0;o>s;s++)n[s]=a[e[s][t.categoryIndex||0]]}else n=a.slice(0)}}return n}var u=t("../../data/List"),h=t("../../data/helper/completeDimensions"),f=t(De),p=t("../../util/model"),v=t("../../CoordinateSystem"),m=p.getDataItemValue,g=p.converDataValue,y={cartesian2d:function(t,e,i){var n=f.map(["xAxis","yAxis"],function(t){return i[S]({mainType:t,index:e.get(t+"Index"),id:e.get(t+"Id")})[0]}),s=n[0],l=n[1],u=s.get("type"),c=l.get("type"),d=[{name:"x",type:o(u),stackable:a(u)},{name:"y",type:o(c),stackable:a(c)}],p=u===r,v=c===r;h(d,t,["x","y","z"]);var m={};return p&&(m.x=s),v&&(m.y=l),{dimensions:d,categoryIndex:p?0:v?1:-1,categoryAxesModels:m}},polar:function(t,e,i){var n=i[S]({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0],s=n.findAxisModel("angleAxis"),u=n.findAxisModel("radiusAxis"),c=u.get("type"),d=s.get("type"),f=[{name:"radius",type:o(c),stackable:a(c)},{name:"angle",type:o(d),stackable:a(d)}],p=d===r,v=c===r;h(f,t,[l,"angle","value"]);var m={};return v&&(m[l]=u),p&&(m.angle=s),{dimensions:f,categoryIndex:p?1:v?0:-1,categoryAxesModels:m}},geo:function(t){return{dimensions:h([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("zrender/graphic/helper/poly",[Re,"./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[ge]>=2){if(s&&"spline"!==s){var l=n(o,s,a,r.smoothConstraint);t[i](o[0][0],o[0][1]);for(var u=o[ge],c=0;(a?u:u-1)>c;c++){var h=l[2*c],d=l[2*c+1],f=o[(c+1)%u];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 c=1,p=o[ge];p>c;c++)t.lineTo(o[c][0],o[c][1])}a&&t.closePath()}}}}),e("zrender/animation/Animation",[Re,"../core/util","../core/event","./requestAnimationFrame","./Animator"],function(t){var e=t("../core/util"),i=t("../core/event").Dispatcher,n=t("./requestAnimationFrame"),r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,i.call(this)};return a[Ie]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[Ce]=this;for(var e=t.getClips(),i=0;i<e[ge];i++)this.addClip(e[i])},removeClip:function(t){var i=e[me](this._clips,t);i>=0&&this._clips[ie](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[ge];i++)this.removeClip(e[i]);t[Ce]=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,i=this._clips,n=i[ge],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[ge];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[re]("frame",e),this.stage[ce]&&this.stage[ce]()},_startLoop:function(){function t(){e._running&&(n(t),!e._paused&&e._update())}var e=this;this._running=!0,n(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("zrender/Handler",[Re,"./core/util","./mixin/Draggable","./mixin/Eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch}}function i(){}function n(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[v]}return!0}return!1}var r=t("./core/util"),a=t("./mixin/Draggable"),o=t("./mixin/Eventful");i[Ie].dispose=function(){};var s=["click","dblclick","mousewheel",te,"mouseup","mousedown","mousemove","contextmenu"],l=function(t,e,n,l){o.call(this),this[be]=t,this.painter=e,this.painterRoot=l,n=n||new i,this.proxy=n,n.handler=this,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,a.call(this),r.each(s,function(t){n.on&&n.on(t,this[t],this)},this)};return l[Ie]={constructor:l,mousemove:function(t){var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered,a=this.proxy;this._hovered=n,a.setCursor&&a.setCursor(n?n.cursor:"default"),r&&n!==r&&r.__zr&&this.dispatchToElement(r,te,t),this.dispatchToElement(n,"mousemove",t),n&&n!==r&&this.dispatchToElement(n,ee,t)},mouseout:function(t){this.dispatchToElement(this._hovered,te,t);var e,i=t.toElement||t.relatedTarget;do i=i&&i.parentNode;while(i&&9!=i.nodeType&&!(e=i===this.painterRoot));!e&&this[re]("globalout",{event:t})},resize:function(){this._hovered=null},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this[be]=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,i,n){for(var r="on"+i,a=e(i,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o[re](i,a),o=o[v],!a.cancelBubble););a.cancelBubble||(this[re](i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==j&&t[r].call(t,a),t[re]&&t[re](i,a)}))},findHover:function(t,e,i){for(var r=this[be].getDisplayList(),a=r[ge]-1;a>=0;a--)if(!r[a].silent&&r[a]!==i&&!r[a][xe]&&n(r[a],t,e))return r[a]}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){l[Ie][t]=function(e){var i=this.findHover(e.zrX,e.zrY,null);if("mousedown"===t)this._downel=i,this._upel=i;else if("mosueup"===t)this._upel=i;else if("click"===t&&this._downel!==this._upel)return;this.dispatchToElement(i,t,e)}}),r.mixin(l,o),r.mixin(l,a),l}),e("zrender/dom/HandlerProxy",[Re,"../core/event","../core/util","../mixin/Eventful","../core/env","../core/GestureMgr"],function(t){function e(t){return"mousewheel"===t&&c.browser.firefox?"DOMMouseScroll":t}function i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null),t.dom);if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t.handler.dispatchToElement(r[J],a,r.event)}}function n(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function r(){return c.touchEventsSupported}function a(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=0;i<g[ge];i++){var n=g[i];t._handlers[n]=l.bind(y[n],t)}for(var i=0;i<m[ge];i++){var n=m[i];t._handlers[n]=e(y[n],t)}}function o(t){function i(i,n){l.each(i,function(i){d(t,e(i),n._handlers[i])},n)}u.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new h,this._handlers={},a(this),r()&&i(g,this),i(m,this)}var s=t("../core/event"),l=t("../core/util"),u=t("../mixin/Eventful"),c=t("../core/env"),h=t("../core/GestureMgr"),d=s.addEventListener,f=s.removeEventListener,p=s.normalizeEvent,v=300,m=["click","dblclick","mousewheel",te,"mouseup","mousedown","mousemove","contextmenu"],g=["touchstart","touchend","touchmove"],y={mousemove:function(t){t=p(this.dom,t),this[re]("mousemove",t)},mouseout:function(t){t=p(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this[re](te,t)},touchstart:function(t){t=p(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,i(this,t,"start"),y.mousemove.call(this,t),y.mousedown.call(this,t),n(this)},touchmove:function(t){t=p(this.dom,t),t.zrByTouch=!0,i(this,t,"change"),y.mousemove.call(this,t),n(this)},touchend:function(t){t=p(this.dom,t),t.zrByTouch=!0,i(this,t,"end"),y.mouseup.call(this,t),+new Date-this._lastTouchMoment<v&&y.click.call(this,t),n(this)}};l.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){y[t]=function(e){e=p(this.dom,e),this[re](t,e)}});var x=o[Ie];return x.dispose=function(){for(var t=m[A](g),i=0;i<t[ge];i++){var n=t[i];f(this.dom,e(n),this._handlers[n])}},x.setCursor=function(t){this.dom.style.cursor=t||"default"},l.mixin(o,u),o}),e("zrender/Painter",[Re,"./config","./core/util","./core/log","./core/BoundingRect","./core/timsort","./Layer","./animation/requestAnimationFrame","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t[Ae]!==j||typeof t.refresh!==j?!1:!0:!1}function r(t){t.__unusedCount++}function a(t){1==t.__unusedCount&&t.clear()}function o(t,e,i){return x.copy(t[N]()),t[n]&&x[_](t[n]),b.width=e,b[Pe]=i,!x.intersect(b)}function s(t,e){if(t==e)return!1;if(!t||!e||t[ge]!==e[ge])return!0;for(var i=0;i<t[ge];i++)if(t[i]!==e[i])return!0}function l(t,e){for(var i=0;i<t[ge];i++){var n=t[i],r=n.path;n.setTransform(e),r.beginPath(e),n.buildPath(r,n.shape),e.clip(),n.restoreTransform(e)}}function u(t,e){var i=document[P]("div");return i.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}var c=t("./config"),h=t("./core/util"),d=t("./core/log"),f=t("./core/BoundingRect"),v=t("./core/timsort"),m=t("./Layer"),g=t("./animation/requestAnimationFrame"),y=5,x=new f(0,0,0,0),b=new f(0,0,0,0),w=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=h[oe]({},i||{}),this.dpr=i.devicePixelRatio||c.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this[be]=e;var a=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},n){var s=t.width,l=t[Pe];this._width=s,this._height=l;var d=new m(t,this,1);d.initContext(),o[0]=d,a.push(0)}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=u(this._width,this._height);t.appendChild(f)}this.pathToImage=this._createPathToImage(),this._progressiveLayers=[],this._hoverlayer,this._hoverElements=[]};return w[Ie]={constructor:w,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this[be].getDisplayList(!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[ge];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this.refreshHover(),this._progressiveLayers[ge]&&this._startProgessive(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape});i.__from=t,t.__hoverMir=i,i[$](e),this._hoverElements.push(i)}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=h[me](i,e);n>=0&&i[ie](n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t[ge];e++){var i=t[e].__from;i&&(i.__hoverMir=null)}t[ge]=0},refreshHover:function(){var t=this._hoverElements,e=t[ge],i=this._hoverlayer;if(i&&i.clear(),e){v(t,this[be].displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(1e5));var r={};i.ctx.save();for(var a=0;e>a;){var o=t[a],s=o.__from;s&&s.__zr?(a++,s.invisible||(o[n]=s[n],o.invTransform=s.invTransform,o.__clipPaths=s.__clipPaths,this._doPaintEl(o,i,!0,r))):(t[ie](a,1),s.__hoverMir=null,e--)}i.ctx.restore()}},_startProgessive:function(){function t(){i===e._progressiveToken&&e[be]&&(e._doPaintList(e[be].getDisplayList()),e._furtherProgressive?(e._progress++,g(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var i=e._progressiveToken=+new Date;e._progress++,g(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,h.each(this._progressiveLayers,function(t){t.__dirty&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuildinLayer(r),this._doPaintList(t,e),this.eachBuildinLayer(a)},_doPaintList:function(t,e){function i(t){var e=a.dpr||1;a.save(),a.globalAlpha=1,a.shadowBlur=0,n.__dirty=!0,a.setTransform(1,0,0,1,0,0),a.drawImage(t.dom,0,0,c*e,f*e),a.restore()}for(var n,r,a,o,s,l,u=0,c=this._width,f=this._height,p=this._progress,v=0,m=t[ge];m>v;v++){var g=t[v],x=this._singleCanvas?0:g[Y],_=g.__frame;if(0>_&&s&&(i(s),s=null),r!==x&&(a&&a.restore(),o={},r=x,n=this.getLayer(r),n.isBuildin||d("ZLevel "+r+" has been used by unkown layer "+n.id),a=n.ctx,a.save(),n.__unusedCount=0,(n.__dirty||e)&&n.clear()),n.__dirty||e){if(_>=0){if(!s){if(s=this._progressiveLayers[Math.min(u++,y-1)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){v=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(p=l),s.__progress=p+1}_===p&&this._doPaintEl(g,s,!0,s.renderScope)}else this._doPaintEl(g,n,e,o);g.__dirty=!1}}s&&i(s),a&&a.restore(),this._furtherProgressive=!1,h.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,i,r){var a=e.ctx,u=t[n];if(!(!e.__dirty&&!i||t.invisible||0===t.style[O]||u&&!u[0]&&!u[3]||t.culling&&o(t,this._width,this._height))){var c=t.__clipPaths;(r.prevClipLayer!==e||s(c,r.prevElClipPaths))&&(r.prevElClipPaths&&(r.prevClipLayer.ctx.restore(),r.prevClipLayer=r.prevElClipPaths=null,r.prevEl=null),c&&(a.save(),l(c,a),r.prevClipLayer=e,r.prevElClipPaths=c)),t.beforeBrush&&t.beforeBrush(a),t.brush(a,r.prevEl||null),r.prevEl=t,t.afterBrush&&t.afterBrush(a)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new m("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&h.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[ge],o=null,s=-1,l=this._domRoot;if(n[t])return void d("ZLevel "+t+" has been used already");if(!i(e))return void d("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]<t&&r[s+1]>t);s++);o=n[r[s]]}if(r[ie](s+1,0,t),o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[ge];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[ge];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[ge];r++)n=a[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i=this._progressiveLayers,n={},r={};this.eachBuildinLayer(function(t,e){n[e]=t.elCount,t.elCount=0,t.__dirty=!1}),h.each(i,function(t,e){r[e]=t.elCount,t.elCount=0,t.__dirty=!1});for(var a,o,s=0,l=0,u=0,c=t[ge];c>u;u++){var d=t[u],f=this._singleCanvas?0:d[Y],p=e[f],v=d.progressive;if(p&&(p.elCount++,p.__dirty=p.__dirty||d.__dirty),v>=0){o!==v&&(o=v,l++);var g=d.__frame=l-1;if(!a){var x=Math.min(s,y-1);a=i[x],a||(a=i[x]=new m("progressive",this,this.dpr),a.initContext()),a.__maxProgress=0}a.__dirty=a.__dirty||d.__dirty,a.elCount++,a.__maxProgress=Math.max(a.__maxProgress,g),a.__maxProgress>=a.__progress&&(p.__dirty=!0)}else d.__frame=-1,a&&(a.__nextIdxNotProg=u,s++,a=null)}a&&(s++,a.__nextIdxNotProg=u),this.eachBuildinLayer(function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)}),i[ge]=Math.min(s,y),h.each(i,function(t,e){r[e]!==t.elCount&&(d.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?h.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&h.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[ie](h[me](i,t),1))},resize:function(t,e){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n[Pe]=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[Pe]=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r][Ae](t,e);h.each(this._progressiveLayers,function(i){i[Ae](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[be]=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new m("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();for(var i=this[be].getDisplayList(!0),n={},r=0;r<i[ge];r++){var a=i[r];this._doPaintEl(a,e,!0,n)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var i=this._opts,n=["width",Pe][t],r=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=i[n]&&"auto"!==i[n])return parseFloat(i[n]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[r]||e(l[n])||e(s.style[n]))-(e(l[a])||0)-(e(l[o])||0)|0},_pathToImage:function(e,i,n,r,a){var o=document[P]("canvas"),s=o[L]("2d");o.width=n*a,o[Pe]=r*a,s.clearRect(0,0,n*a,r*a);var l={position:i[R],rotation:i[p],scale:i.scale};i[R]=[0,0,0],i[p]=0,i.scale=[1,1],i&&i.brush(s);var u=t("./graphic/Image"),c=new u({id:e,style:{x:0,y:0,image:o}});return null!=l[R]&&(c[R]=i[R]=l[R]),null!=l[p]&&(c[p]=i[p]=l[p]),null!=l.scale&&(c.scale=i.scale=l.scale),c},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},w}),e("echarts/data/helper/completeDimensions",[Re,De],function(t){function e(t,e,a,o){if(!e)return t;
|
|
var s=i(e[0]),l=n[U](s)&&s[ge]||1;a=a||[],o=o||"extra";for(var u=0;l>u;u++)if(!t[u]){var c=a[u]||o+(u-a[ge]);t[u]=r(e,u)?{type:"ordinal",name:c}:c}return t}function i(t){return n[U](t)?t:n[le](t)?t.value:t}var n=t(De),r=e.guessOrdinal=function(t,e){for(var r=0,a=t[ge];a>r;r++){var o=i(t[r]);if(!n[U](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(n.isString(o)&&"-"!==o)return!0}return!1};return e}),e("zrender/Storage",[Re,"./core/util","./core/env","./container/Group","./core/timsort"],function(t){function e(t,e){return t[Y]===e[Y]?t.z===e.z?t.z2-e.z2:t.z-e.z:t[Y]-e[Y]}var i=t("./core/util"),n=t("./core/env"),r=t("./container/Group"),a=t("./core/timsort"),o=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return o[Ie]={constructor:o,traverse:function(t,e){for(var i=0;i<this._roots[ge];i++)this._roots[i][Q](t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var i=this._roots,r=this._displayList,o=0,s=i[ge];s>o;o++)this._updateAndAddDisplayable(i[o],null,t);r[ge]=this._displayListLen,n[we]&&a(r,e)},_updateAndAddDisplayable:function(t,e,i){if(!t[xe]||i){t.beforeUpdate(),t.__dirty&&t[ce](),t.afterUpdate();var n=t.clipPath;if(n&&(n[v]=t,n.updateTransform(),e?(e=e.slice(),e.push(n)):e=[n]),t.isGroup){for(var r=t._children,a=0;a<r[ge];a++){var o=r[a];t.__dirty&&(o.__dirty=!0),this._updateAndAddDisplayable(o,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof r&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[ge];e++){var n=this._roots[e];n instanceof r&&n.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[ge];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==Le?this._elements[t]:t;var s=i[me](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[ie](s,1),o instanceof r&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof r&&(t.__storage=this),t.dirty(!1),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof r&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:e},o}),e("echarts/data/DataDiffer",[Re],function(){function t(t){return t}function e(e,i,n,r){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=r||t}function i(t,e,i,n){for(var r=0;r<t[ge];r++){var a=n(t[r],r),o=e[a];null==o?(i.push(a),e[a]=r):(o[ge]||(e[a]=o=[o]),o.push(r))}}return e[Ie]={constructor:e,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={},l=[],u=[];for(i(e,o,l,r),i(n,s,u,a),t=0;t<e[ge];t++){var c=l[t],h=s[c];if(null!=h){var d=h[ge];d?(1===d&&(s[c]=null),h=h.unshift()):s[c]=null,this._update&&this._update(h,t)}else this._remove&&this._remove(t)}for(var t=0;t<u[ge];t++){var c=u[t];if(s.hasOwnProperty(c)){var h=s[c];if(null==h)continue;if(h[ge])for(var f=0,d=h[ge];d>f;f++)this._add&&this._add(h[f]);else this._add&&this._add(h)}}}},e}),e("zrender/graphic/helper/smoothSpline",[Re,"../../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[ge],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var u,c,h,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,v=t[f%r];n?(u=t[(f-1+r)%r],c=t[(f+1)%r],h=t[(f+2)%r]):(u=t[0===f?f:f-1],c=t[f>r-2?r-1:f+1],h=t[f>r-3?r-1:f+2]);var m=p*p,g=p*m;a.push([e(u[0],v[0],c[0],h[0],p,m,g),e(u[1],v[1],c[1],h[1],p,m,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[Re,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,l,u){var c,h,d,f,p=[],v=[],m=[],g=[];if(u){d=[1/0,1/0],f=[-1/0,-1/0];for(var y=0,x=t[ge];x>y;y++)i(d,d,t[y]),n(f,f,t[y]);i(d,d,u[0]),n(f,f,u[1])}for(var y=0,x=t[ge];x>y;y++){var _=t[y];if(l)c=t[y?y-1:x-1],h=t[(y+1)%x];else{if(0===y||y===x-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(v,h,c),r(v,v,s);var b=a(_,c),w=a(_,h),M=b+w;0!==M&&(b/=M,w/=M),r(m,v,-b),r(g,v,w);var T=o([],_,m),S=o([],_,g);u&&(n(T,T,d),i(T,T,f),n(S,S,d),i(S,S,f)),p.push(T),p.push(S)}return l&&p.push(p.shift()),p}}),e("zrender/mixin/Draggable",[Re],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[Ie]={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.dispatchToElement(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this.dispatchToElement(e,"drag",t.event);var o=this.findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.dispatchToElement(s,"dragleave",t.event),o&&o!==s&&this.dispatchToElement(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(e,"dragend",t.event),this._dropTarget&&this.dispatchToElement(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("echarts/chart/bar/barItemStyle",[Re,"../../model/mixin/makeStyleMapper"],function(t){var e=t("../../model/mixin/makeStyleMapper")([["fill","color"],[y,"borderColor"],[x,"borderWidth"],[y,"barBorderColor"],[x,"barBorderWidth"],[O],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getBarItemStyle:function(t){var i=e.call(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(i.lineDash=n)}return i}}}),e("zrender/graphic/helper/roundRect",[Re],function(){return{buildPath:function(t,e){var n,r,a,o,s=e.x,l=e.y,u=e.width,c=e[Pe],h=e.r;0>u&&(s+=u,u=-u),0>c&&(l+=c,c=-c),typeof h===W?n=r=a=o=h:h instanceof Array?1===h[ge]?n=r=a=o=h[0]:2===h[ge]?(n=a=h[0],r=o=h[1]):3===h[ge]?(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>u&&(d=n+r,n*=u/d,r*=u/d),a+o>u&&(d=a+o,a*=u/d,o*=u/d),r+a>c&&(d=r+a,r*=c/d,a*=c/d),n+o>c&&(d=n+o,n*=c/d,o*=c/d),t[i](s+n,l),t.lineTo(s+u-r,l),0!==r&&t.quadraticCurveTo(s+u,l,s+u,l+r),t.lineTo(s+u,l+c-a),0!==a&&t.quadraticCurveTo(s+u,l+c,s+u-a,l+c),t.lineTo(s+o,l+c),0!==o&&t.quadraticCurveTo(s,l+c,s,l+c-o),t.lineTo(s,l+n),0!==n&&t.quadraticCurveTo(s,l,s+n,l)}}}),e("zrender/core/event",[Re,"../mixin/Eventful","./env"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,e,i,r){return i=i||{},r||!l[we]?n(t,e,i):l.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):n(t,e,i),i}function n(t,i,n){var r=e(t);n.zrX=i.clientX-r.left,n.zrY=i.clientY-r.top}function r(t,e,n){if(e=e||window.event,null!=e.zrX)return e;var r=e.type,a=r&&r[me]("touch")>=0;if(a){var o="touchend"!=r?e.targetTouches[0]:e.changedTouches[0];o&&i(t,o,e,n)}else i(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function a(t,e,i){u?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function o(t,e,i){u?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var s=t("../mixin/Eventful"),l=t("./env"),u=typeof window!==I&&!!window.addEventListener,c=u?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{clientToLocal:i,normalizeEvent:r,addEventListener:a,removeEventListener:o,stop:c,Dispatcher:s}}),e("zrender/animation/requestAnimationFrame",[Re],function(){return typeof window!==I&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}}),e("zrender/core/GestureMgr",[Re,"./event"],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=t("./event"),r=function(){this._track=[]};r[Ie]={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track[ge]=0,this},_doTrack:function(t,e,i){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r[ge];s>o;o++){var l=r[o],u=n.clientToLocal(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(t){for(var e in a)if(a.hasOwnProperty(e)){var i=a[e](this._track,t);if(i)return i}}};var a={pinch:function(t,n){var r=t[ge];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[ge]>1&&a&&a[ge]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=i(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:t[0][J],event:n}}}}};return r}),e("zrender/Layer",[Re,"./core/util","./config","./graphic/Style","./graphic/Pattern"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[P](e),a=i[Te](),o=i[Me](),s=r.style;return s[R]="absolute",s.left=0,s.top=0,s.width=a+"px",s[Pe]=o+"px",r.width=a*n,r[Pe]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=t("./graphic/Style"),o=t("./graphic/Pattern"),s=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===Le?s=i(t,"canvas",a,o):n[le](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return s[Ie]={constructor:s,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[L]("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack[L]("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[Pe]=e+"px",n.width=t*i,n[Pe]=e*i,a&&(a.width=t*i,a[Pe]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[Pe],s=this.clearColor,l=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr;if(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/c,r/c)),i.clearRect(0,0,n,r),s){var h;s[ue]?(h=s.__canvasGradient||a.getGradient(i,s,{x:0,y:0,width:n,height:r}),s.__canvasGradient=h):s.image&&(h=o[Ie].getCanvasPattern.call(s,i)),i.save(),i.fillStyle=h||s,i.fillRect(0,0,n,r),i.restore()}if(l){var d=this.domBack;i.save(),i.globalAlpha=u,i.drawImage(d,0,0,n,r),i.restore()}}},s}),e("echarts/preprocessor/helper/compatStyle",[Re,De],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e[w],a=e.emphasis;r&&r[n]&&(t[n]=t[n]||{},t[n][w]?i.merge(t[n][w],r[n]):t[n][w]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n].emphasis?i.merge(t[n].emphasis,a[n]):t[n].emphasis=a[n],a[n]=null)})}var i=t(De),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[ge];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[ge];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[ge];r++)i[U](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}}),e("echarts/chart/helper/SymbolDraw",[Re,u,"./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[de](e,"symbol"))}var n=t(u),r=t("./Symbol"),a=e[Ie];return a.updateData=function(t,e){var r=this.group,a=t.hostModel,o=this._data,s=this._symbolCtor,l={itemStyle:a[Se]("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:a[Se]("itemStyle.emphasis").getItemStyle(),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a[Se]("label.normal"),hoverLabelModel:a[Se]("label.emphasis")};t.diff(o).add(function(n){var a=t.getItemLayout(n);if(i(t,n,e)){var o=new s(t,n,l);o.attr(R,a),t.setItemGraphicEl(n,o),r.add(o)}})[ce](function(u,c){var h=o[b](c),d=t.getItemLayout(u);return i(t,u,e)?(h?(h.updateData(t,u,l),n.updateProps(h,{position:d},a)):(h=new s(t,u),h.attr(R,d)),r.add(h),void t.setItemGraphicEl(u,h)):void r[se](h)})[se](function(t){var e=o[b](t);e&&e.fadeOut(function(){r[se](e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){var n=t.getItemLayout(i);e.attr(R,n)})},a[se]=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e[se](t)})}):e[H]())},e}),e("echarts/component/axis/AxisView",[Re,De,u,"./AxisBuilder","../../echarts"],function(t){function e(t,e){function i(t){var e=n[o](t);return e.toGlobalCoord(e[a](0))}var n=t[ve],r=e.axis,s={},l=r[R],u=r.onZero?"onZero":l,c=r.dim,h=n.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h[Pe]],f=e.get("offset")||0,v={x:{top:d[2]-f,bottom:d[3]+f},y:{left:d[0]-f,right:d[1]+f}};v.x.onZero=Math.max(Math.min(i("y"),v.x[ye]),v.x.top),v.y.onZero=Math.max(Math.min(i("x"),v.y.right),v.y.left),s[R]=["y"===c?v.y[u]:d[0],"x"===c?v.x[u]:d[3]],s[p]=Math.PI/2*("x"===c?0:1);var g={top:-1,bottom:1,left:-1,right:1};s.labelDirection=s.tickDirection=s.nameDirection=g[l],r.onZero&&(s.labelOffset=v[c][l]-v[c].onZero),e[Se]("axisTick").get(m)&&(s.tickDirection=-s.tickDirection),e[Se]("axisLabel").get(m)&&(s.labelDirection=-s.labelDirection);var y=e[Se]("axisLabel").get("rotate");return s.labelRotation="top"===u?-y:y,s.labelInterval=r.getLabelInterval(),s.z2=1,s}var i=t(De),n=t(u),r=t("./AxisBuilder"),s=r.ifIgnoreOnTick,l=r.getInterval,c=["axisLine","axisLabel","axisTick","axisName"],h=["splitArea","splitLine"],d=t("../../echarts").extendComponentView({type:"axis",render:function(t){this.group[H]();var a=this._axisGroup;if(this._axisGroup=new n.Group,this.group.add(this._axisGroup),t.get("show")){var o=t.findGridModel(),s=e(o,t),l=new r(t,s);i.each(c,l.add,l),this._axisGroup.add(l.getGroup()),i.each(h,function(e){t.get(e+".show")&&this["_"+e](t,o,s.labelInterval)},this),n.groupTransition(a,this._axisGroup,t)}},_splitLine:function(t,e,r){var a=t.axis,o=t[Se]("splitLine"),u=o[Se]("lineStyle"),c=u.get("color"),h=l(o,r);c=i[U](c)?c:[c];for(var d=e[ve].getRect(),f=a.isHorizontal(),p=0,v=a.getTicksCoords(),m=a.scale[k](),g=[],y=[],x=u.getLineStyle(),_=0;_<v[ge];_++)if(!s(a,_,h)){var b=a.toGlobalCoord(v[_]);f?(g[0]=b,g[1]=d.y,y[0]=b,y[1]=d.y+d[Pe]):(g[0]=d.x,g[1]=b,y[0]=d.x+d.width,y[1]=b);var w=p++%c[ge];this._axisGroup.add(new n.Line(n.subPixelOptimizeLine({anid:"line_"+m[_],shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:i[ae]({stroke:c[w]},x),silent:!0})))}},_splitArea:function(t,e,r){var a=t.axis,o=t[Se]("splitArea"),u=o[Se]("areaStyle"),c=u.get("color"),h=e[ve].getRect(),d=a.getTicksCoords(),f=a.scale[k](),p=a.toGlobalCoord(d[0]),v=a.toGlobalCoord(d[0]),m=0,g=l(o,r),y=u.getAreaStyle();c=i[U](c)?c:[c];for(var x=1;x<d[ge];x++)if(!s(a,x,g)){var _,b,w,M,T=a.toGlobalCoord(d[x]);a.isHorizontal()?(_=p,b=h.y,w=T-_,M=h[Pe]):(_=h.x,b=v,w=h.width,M=T-b);var S=m++%c[ge];this._axisGroup.add(new n.Rect({anid:"area_"+f[x],shape:{x:_,y:b,width:w,height:M},style:i[ae]({fill:c[S]},y),silent:!0})),p=_+w,v=b+M}}});d[oe]({type:"xAxis"}),d[oe]({type:"yAxis"})}),e("echarts/component/helper/selectableMixin",[Re,De],function(t){var e=t(De);return{updateSelectedMap:function(t){this._selectTargetMap=e.reduce(t||[],function(t,e){return t[e.name]=e,t},{})},select:function(t){var i=this._selectTargetMap,n=i[t],r=this.get("selectedMode");"single"===r&&e.each(i,function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t){var e=this._selectTargetMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._selectTargetMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._selectTargetMap[t];return e&&e.selected}}}),e("echarts/chart/helper/Symbol",[Re,De,"../../util/symbol",u,"../../util/number"],function(t){function e(t){return t=t instanceof Array?t.slice():[+t,+t],t[0]/=2,t[1]/=2,t}function i(t,e,i){o.Group.call(this),this.updateData(t,e,i)}function n(t,e){this[v].drift(t,e)}var r=t(De),a=t("../../util/symbol"),o=t(u),s=t("../../util/number"),l=i[Ie];l._createSymbol=function(t,i,r){this[H]();var s=i.hostModel,l=i[de](r,"color"),u=a.createSymbol(t,-1,-1,2,2,l);u.attr({z2:100,culling:!0,scale:[0,0]}),u.drift=n;var c=e(i[de](r,"symbolSize"));o.initProps(u,{scale:c},s,r),this._symbolType=t,this.add(u)},l.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},l.getSymbolPath=function(){return this.childAt(0)},l.getScale=function(){return this.childAt(0).scale},l.highlight=function(){this.childAt(0)[re]("emphasis")},l.downplay=function(){this.childAt(0)[re](w)},l.setZ=function(t,e){var i=this.childAt(0);i[Y]=t,i.z=e},l.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},l.updateData=function(t,i,n){this.silent=!1;var r=t[de](i,"symbol")||"circle",a=t.hostModel,s=e(t[de](i,"symbolSize"));if(r!==this._symbolType)this._createSymbol(r,t,i);else{var l=this.childAt(0);o.updateProps(l,{scale:s},a,i)}this._updateCommon(t,i,s,n),this._seriesModel=a};var m=["itemStyle",w],y=["itemStyle","emphasis"],x=["label",w],_=["label","emphasis"];return l._updateCommon=function(t,i,n,a){var l=this.childAt(0),u=t.hostModel,v=t[de](i,"color");"image"!==l.type&&l.useStyle({strokeNoScale:!0}),a=a||null;var b=a&&a.itemStyle,M=a&&a.hoverItemStyle,T=a&&a.symbolRotate,S=a&&a.symbolOffset,C=a&&a.labelModel,A=a&&a.hoverLabelModel,P=a&&a.hoverAnimation;if(!a||t.hasItemOption){var L=t[h](i);b=L[Se](m).getItemStyle(["color"]),M=L[Se](y).getItemStyle(),T=L[g]("symbolRotate"),S=L[g]("symbolOffset"),C=L[Se](x),A=L[Se](_),P=L[g]("hoverAnimation")}else M=r[oe]({},M);var I=l.style;l.attr(p,(T||0)*Math.PI/180||0),S&&l.attr(R,[s.parsePercent(S[0],n[0]),s.parsePercent(S[1],n[1])]),l.setColor(v),l[$](b);var k=t[de](i,O);null!=k&&(I[O]=k);for(var z,D,E=t[c].slice();E[ge]&&(z=E.pop(),D=t.getDimensionInfo(z).type,D===d||"time"===D););null!=z&&C[g]("show")?(o.setText(I,C,v),I.text=r[f](u.getFormattedLabel(i,w),t.get(z,i))):I.text="",null!=z&&A[g]("show")?(o.setText(M,A,v),M.text=r[f](u.getFormattedLabel(i,"emphasis"),t.get(z,i))):M.text="";var B=e(t[de](i,"symbolSize"));if(l.off(ee).off(te).off("emphasis").off(w),l.hoverStyle=M,o.setHoverStyle(l),P&&u.ifEnableAnimation()){var N=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")},V=function(){this.animateTo({scale:B},400,"elasticOut")};l.on(ee,N).on(te,V).on("emphasis",N).on(w,V)}},l.fadeOut=function(t){var e=this.childAt(0);this.silent=!0,e.style.text="",o.updateProps(e,{scale:[0,0]},this._seriesModel,this[fe],t)},r[Z](i,o.Group),i}),e("echarts/chart/line/poly",[Re,"zrender/graphic/Path",ze],function(t){function e(t){return isNaN(t[0])||isNaN(t[1])}function n(t,n,r,a,p,v,m,g,y,x,_){for(var b=0,w=r,M=0;a>M;M++){var T=n[w];if(w>=p||0>w)break;if(e(T)){if(_){w+=v;continue}break}if(w===r)t[v>0?i:"lineTo"](T[0],T[1]),c(d,T);else if(y>0){var S=w+v,C=n[S];if(_)for(;C&&e(n[S]);)S+=v,C=n[S];var A=.5,P=n[b],C=n[S];if(!C||e(C))c(f,T);else{e(C)&&!_&&(C=T),o.sub(h,C,P);var L,I;if("x"===x||"y"===x){var k="x"===x?0:1;L=Math.abs(T[k]-P[k]),I=Math.abs(T[k]-C[k])}else L=o.dist(T,P),I=o.dist(T,C);A=I/(I+L),u(f,T,h,-y*(1-A))}s(d,d,g),l(d,d,m),s(f,f,g),l(f,f,m),t.bezierCurveTo(d[0],d[1],f[0],f[1],T[0],T[1]),u(d,T,h,y*A)}else t.lineTo(T[0],T[1]);b=w,w+=v}return M}function r(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t[ge];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(ze),s=o.min,l=o.max,u=o.scaleAndAdd,c=o.copy,h=[],d=[],f=[];return{Polyline:a[oe]({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[ge],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[oe]({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[ge],u=i.smoothMonotone,c=r(a,i.smoothConstraint),h=r(o,i.smoothConstraint);if(i.connectNulls){for(;l>0&&e(a[l-1]);l--);for(;l>s&&e(a[s]);s++);}for(;l>s;){var d=n(t,a,s,l,l,1,c.min,c.max,i.smooth,u,i.connectNulls);n(t,o,s+d-1,d,l,-1,h.min,h.max,i.stackedOnSmooth,u,i.connectNulls),s+=d+1,t.closePath()}}})}}),e("echarts/chart/line/lineAnimationDiff",[Re],function(){function t(t){return t>=0?1:-1}function e(e,i,n){for(var r,a=e.getBaseAxis(),o=e.getOtherAxis(a),u=a.onZero?0:o.scale[z]()[0],c=o.dim,h="x"===c||c===l?1:0,d=i.stackedOn,f=i.get(c,n);d&&t(d.get(c,n))===t(f);){r=d;break}var p=[];return p[h]=i.get(a.dim,n),p[1-h]=r?r.get(c,n,!0):u,e[s](p)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})})[ce](function(t,e){i.push({cmd:"=",idx:e,idx1:t})})[se](function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,l){for(var u=i(t,n),h=[],d=[],f=[],p=[],v=[],m=[],g=[],y=l[c],x=0;x<u[ge];x++){var _=u[x],b=!0;switch(_.cmd){case"=":var w=t.getItemLayout(_.idx),M=n.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=M.slice()),h.push(w),d.push(M),f.push(r[_.idx]),p.push(a[_.idx1]),g.push(n.getRawIndex(_.idx1));break;case"+":var T=_.idx;h.push(o[s]([n.get(y[0],T,!0),n.get(y[1],T,!0)])),d.push(n.getItemLayout(T).slice()),f.push(e(o,n,T)),p.push(a[T]),g.push(n.getRawIndex(T));break;case"-":var T=_.idx,S=t.getRawIndex(T);S!==T?(h.push(t.getItemLayout(T)),d.push(l[s]([t.get(y[0],T,!0),t.get(y[1],T,!0)])),f.push(r[T]),p.push(e(l,t,T)),g.push(S)):b=!1}b&&(v.push(_),m.push(m[ge]))}m.sort(function(t,e){return g[t]-g[e]});for(var C=[],A=[],P=[],L=[],I=[],x=0;x<m[ge];x++){var T=m[x];C[x]=h[T],A[x]=d[T],P[x]=f[T],L[x]=p[T],I[x]=v[T]}return{current:C,next:A,stackedOnCurrent:P,stackedOnNext:L,status:I}}}),e("echarts/util/symbol",[Re,"./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[Pe]/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[Pe]/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[Pe]),o=r/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u);t.arc(i,l,o,Math.PI-u,2*Math.PI+u);var f=.6*o,p=.7*o;t.bezierCurveTo(i+c-h*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*f,l+s+d*f,i-c,l+s),t.closePath()}}),s=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e[Pe],r=e.width,a=e.x,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},u={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[Pe]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[Pe]=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r[Pe]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[Pe]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[Pe]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[Pe]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[Pe]=n}},c={};for(var h in l)l.hasOwnProperty(h)&&(c[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]=E,t.textVerticalAlign=B)},buildPath:function(t,e,i){var n=e.symbolType,r=c[n];"none"!==e.symbolType&&(r||(n="rect",r=c[n]),u[n](e.x,e.y,e.width,e[Pe],r.shape),r.buildPath(t,r.shape,i))}}),f=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[y]=t:this.__isEmptyBrush?(e[y]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[y]&&(e[y]=t)),this.dirty(!1)}},p={createSymbol:function(t,i,r,a,o,s){var l=0===t[me]("empty");l&&(t=t.substr(5,1)[ke]()+t.substr(6));var u;return u=0===t[me]("image://")?new e.Image({style:{image:t.slice(8),x:i,y:r,width:a,height:o}}):0===t[me]("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}}),u.__isEmptyBrush=l,u.setColor=f,u.setColor(s),u}};return p}),e("echarts/component/helper/listComponent",[Re,"../../util/layout","../../util/format",u],function(t){function e(t,e,n){i.positionElement(t,e.getBoxLayoutParams(),{width:n[Te](),height:n[Me]()},e.get("padding"))}var i=t("../../util/layout"),n=t("../../util/format"),r=t(u);return{layout:function(t,n,r){var a=i.getLayoutRect(n.getBoxLayoutParams(),{width:r[Te](),height:r[Me]()},n.get("padding"));i.box(n.get("orient"),t,n.get("itemGap"),a.width,a[Pe]),e(t,n,r)},addBackground:function(t,e){var i=n.normalizeCssArray(e.get("padding")),a=t[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[Pe]+i[0]+i[2]},style:o,silent:!0,z2:-1});r.subPixelOptimizeRect(s),t.add(s)}}}),e("echarts/component/tooltip/TooltipContent",[Re,De,"zrender/tool/color","zrender/core/event","../../util/format",Oe],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 a.map(f,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"),c(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function n(t){t=t;var n=[],r=t.get("transitionDuration"),a=t.get("backgroundColor"),s=t[Se](G),f=t.get("padding");return r&&n.push(e(r)),a&&(d[we]?n.push("background-Color:"+a):(n.push("background-Color:#"+o.toHex(a)),n.push("filter:alpha(opacity=70)"))),c(["width","color",l],function(e){var i="border-"+e,r=h(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(s)),null!=f&&n.push("padding:"+u.normalizeCssArray(f).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document[P]("div"),n=e.getZr();this.el=i,this._x=e[Te]()/2,this._y=e[Me]()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!r.enterable){var i=n.handler;s.normalizeEvent(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}var a=t(De),o=t("zrender/tool/color"),s=t("zrender/core/event"),u=t("../../util/format"),c=a.each,h=u.toCamelCase,d=t(Oe),f=["","-webkit-","-moz-","-o-"],p="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";return r[Ie]={constructor:r,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);var e=this.el;e.style.cssText=p+n(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){var e=this.el;e.innerHTML=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var i=this.el.style;i.left=t+"px",i.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(a.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/chart/pie/labelLayout",[Re,"zrender/contain/text"],function(t){function e(t,e,i,n,r,a,o){function s(e,i,n){for(var r=e;i>r;r++)if(t[r].y+=n,r>e&&i>r+1&&t[r+1].y>t[r].y+t[r][Pe])return void l(r,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][Pe]));n--);}function u(t,e,i,n,r,a){for(var o=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t[ge];l>s;s++)if(t[s][R]!==E){var u=Math.abs(t[s].y-n),c=t[s].len,h=t[s].len2,d=r+c>u?Math.sqrt((r+c+h)*(r+c+h)-u*u):Math.abs(t[s].x-i);e&&d>=o&&(d=o-10),!e&&o>=d&&(d=o+10),t[s].x=i+d*a,o=d}}t.sort(function(t,e){return t.y-e.y});for(var c,h=0,d=t[ge],f=[],p=[],v=0;d>v;v++)c=t[v].y-h,0>c&&s(v,d,-c,r),h=t[v].y+t[v][Pe];0>o-h&&l(d-1,h-o);for(var v=0;d>v;v++)t[v].y>=i?p.push(t[v]):f.push(t[v]);u(f,!1,e,i,n,r),u(p,!0,e,i,n,r)}function i(t,i,n,r,a,o){for(var s=[],l=[],u=0;u<t[ge];u++)t[u].x<i?s.push(t[u]):l.push(t[u]);e(l,i,n,r,1,a,o),e(s,i,n,r,-1,a,o);for(var u=0;u<t[ge];u++){var c=t[u].linePoints;if(c){var h=c[1][0]-c[2][0];c[2][0]=t[u].x<i?t[u].x+3:t[u].x-3,c[1][1]=c[2][1]=t[u].y,c[1][0]=c[2][0]+h}}}var n=t("zrender/contain/text");return function(t,e,r,a){var o,s,l=t[pe](),u=[],c=!1;l.each(function(i){var r,a,d,f,p=l.getItemLayout(i),v=l[h](i),g=v[Se]("label.normal"),y=g.get(R)||v.get("label.emphasis.position"),x=v[Se]("labelLine.normal"),_=x.get(ge),b=x.get("length2"),M=(p.startAngle+p.endAngle)/2,T=Math.cos(M),S=Math.sin(M);o=p.cx,s=p.cy;var C=y===m||"inner"===y;if(y===E)r=p.cx,a=p.cy,f=E;else{var A=(C?(p.r+p.r0)/2*T:p.r*T)+o,P=(C?(p.r+p.r0)/2*S:p.r*S)+s;if(r=A+3*T,a=P+3*S,!C){var L=A+T*(_+e-p.r),I=P+S*(_+e-p.r),k=L+(0>T?-1:1)*b,z=I;r=k+(0>T?-5:5),a=z,d=[[A,P],[L,I],[k,z]]}f=C?E:T>0?"left":"right"}var D=g[Se](G)[V](),O=g.get("rotate")?0>T?-M+Math.PI:-M:0,B=t.getFormattedLabel(i,w)||l.getName(i),F=n[N](B,D,f,"top");c=!!O,p.label={x:r,y:a,position:y,height:F[Pe],len:_,len2:b,linePoints:d,textAlign:f,verticalAlign:"middle",font:D,rotation:O},C||u.push(p.label)}),!c&&t.get("avoidLabelOverlap")&&i(u,o,s,e,r,a)}}),e("echarts/component/axis/AxisBuilder",[Re,De,"../../util/format",u,"../../model/Model","../../util/number",ze],function(t){function e(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t[T],e}function i(t,e,i){var n,r,a=g(e-t[p]);return y(a)?(r=i>0?"top":ye,n=E):y(a-S)?(r=i>0?ye:"top",n=E):(r=B,n=a>0&&S>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,verticalAlign:r}}function o(t,e,i,n){var r,a,o=g(i-t[p]),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return y(o-S/2)?(a=l?ye:"top",r=E):y(o-1.5*S)?(a=l?"top":ye,r=E):(a=B,r=1.5*S>o&&o>S/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,verticalAlign:a}}function s(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}var l=t(De),c=t("../../util/format"),h=t(u),v=t("../../model/Model"),m=t("../../util/number"),g=m.remRadian,y=m.isRadianAroundZero,x=t(ze),b=x[_],w=l[f],S=Math.PI,C=function(t,e){this.opt=e,this.axisModel=t,l[ae](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new h.Group;
|
|
var i=new h.Group({position:e[R].slice(),rotation:e[p]});i.updateTransform(),this._transform=i[n],this._dumbGroup=i};C[Ie]={constructor:C,hasBuilder:function(t){return!!A[t]},add:function(t){A[t].call(this)},getGroup:function(){return this.group}};var A={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[z](),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(b(r,r,n),b(a,a,n)),this.group.add(new h.Line(h.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l[oe]({lineCap:"round"},e[Se]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show"))for(var e=t.axis,i=t[Se]("axisTick"),n=this.opt,r=i[Se]("lineStyle"),a=i.get(ge),o=L(i,n.labelInterval),s=e.getTicksCoords(i.get("alignWithLabel")),u=e.scale[k](),c=[],d=[],f=this._transform,p=0;p<s[ge];p++)if(!P(e,p,o)){var v=s[p];c[0]=v,c[1]=0,d[0]=v,d[1]=n.tickDirection*a,f&&(b(c,c,f),b(d,d,f)),this.group.add(new h.Line(h.subPixelOptimizeLine({anid:"tick_"+u[p],shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:l[ae](r.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),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[_](t.getLocalTransform()),n[_](e.getLocalTransform()),i.intersect(n)):void 0}var n=this.opt,o=this.axisModel,u=w(n.axisLabelShow,o.get("axisLabel.show"));if(u){var c=o.axis,d=o[Se]("axisLabel"),f=d[Se](G),m=d.get("margin"),g=c.scale[k](),y=o.getFormattedLabels(),x=w(n.labelRotation,d.get("rotate"))||0;x=x*S/180;var b=i(n,x,n.labelDirection),T=o.get("data"),C=[],A=s(o),L=o.get("triggerEvent");if(l.each(g,function(t,i){if(!P(c,i,n.labelInterval)){var r=f;T&&T[t]&&T[t][G]&&(r=new v(T[t][G],f,o[M]));var s=r.getTextColor()||o.get("axisLine.lineStyle.color"),l=c[a](t),u=[l,n.labelOffset+n.labelDirection*m],d=c.scale.getLabel(t),g=new h.Text({anid:"label_"+t,style:{text:y[i],textAlign:r.get("align",!0)||b[F],textVerticalAlign:r.get("baseline",!0)||b.verticalAlign,textFont:r[V](),fill:typeof s===j?s(d):s},position:u,rotation:b[p],silent:A,z2:10});L&&(g.eventData=e(o),g.eventData.targetType="axisLabel",g.eventData.value=d),this._dumbGroup.add(g),g.updateTransform(),C.push(g),this.group.add(g),g.decomposeTransform()}},this),c.type!==r){if(o.getMin?o.getMin():o.get("min")){var I=C[0],z=C[1];t(I,z)&&(I[xe]=!0)}if(o.getMax?o.getMax():o.get("max")){var D=C[C[ge]-1],O=C[C[ge]-2];t(O,D)&&(D[xe]=!0)}}}},axisName:function(){var t=this.opt,n=this.axisModel,r=w(t.axisName,n.get("name"));if(r){var a,u=n.get("nameLocation"),d=t.nameDirection,f=n[Se]("nameTextStyle"),v=n.get("nameGap")||0,m=this.axisModel.axis[z](),g=m[0]>m[1]?-1:1,y=["start"===u?m[0]-g*v:"end"===u?m[1]+g*v:(m[0]+m[1])/2,u===B?t.labelOffset+d*v:0],x=n.get("nameRotate");null!=x&&(x=x*S/180);var _;u===B?a=i(t,null!=x?x:t[p],d):(a=o(t,u,x||0,m),_=t.axisNameAvailableWidth,null!=_&&(_=Math.abs(_/Math.sin(a[p])),!isFinite(_)&&(_=null)));var b=f[V](),M=n.get("nameTruncate",!0)||{},C=M.ellipsis,A=w(M.maxWidth,_),P=null!=C&&null!=A?c.truncateText(r,A,b,C,{minChar:2,placeholder:M.placeholder}):r,L=n.get("tooltip",!0),I=n.mainType,k={componentType:I,name:r,$vars:["name"]};k[I+"Index"]=n[T];var D=new h.Text({anid:"name",__fullText:r,__truncatedText:P,style:{text:P,textFont:b,fill:f.getTextColor()||n.get("axisLine.lineStyle.color"),textAlign:a[F],textVerticalAlign:a.verticalAlign},position:y,rotation:a[p],silent:s(n),z2:1,tooltip:L&&L.show?l[oe]({content:r,formatter:function(){return r},formatterParams:k},L):null});n.get("triggerEvent")&&(D.eventData=e(n),D.eventData.targetType="axisName",D.eventData.name=r),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},P=C.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===d&&(typeof i===j?(n=r[k]()[e],!i(n,r.getLabel(n))):e%(i+1))},L=C.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return C}),e("echarts/component/helper/brushHelper",[Re,De,u],function(t){function e(t){return t[0]>t[1]&&t.reverse(),t}function i(t,e){for(var i=!0,n=0;n<d[ge];n++){var r=d[n]+"Index";if(t[r]>=0){i=!1;for(var a=0;a<e[ge];a++)if(e[a][r]===t[r])return e[a]}}return i}function n(t,i,n,s){var l=n.coordSys[o](t);return e(r.map([0,1],function(t){return i?l.coordToData(l.toLocalCoord(s[t])):l.toGlobalCoord(l[a](s[t]))}))}var r=t(De),l=t(u),c=r.each,h={},d=["geo","xAxis","yAxis"],f="--",p=[s,"pointToData"];h.parseOutputRanges=function(t,e,n,r){c(t,function(t,n){var a=t.panelId;if(a){a=a.split(f),t[a[0]+"Index"]=+a[1];var o=i(t,e);t.coordRange=v[t.brushType](1,o,t.range),r&&(r[n]=o)}})},h.parseInputRanges=function(t){c(t.areas,function(e){var n=i(e,t.coordInfoList);e.range=e.range||[],n&&n!==!0&&(e.range=v[e.brushType](0,n,e.coordRange),e.panelId=n.panelId)})},h.makePanelOpts=function(t){var e=[];return c(t,function(t){var i,n=t.coordSys;t.geoIndex>=0?(i=n[N]().clone(),i[_](l.getTransform(n))):i=n.grid.getRect().clone(),e.push({panelId:t.panelId,rect:i})}),e},h.makeCoordInfoList=function(t,e){var i=[];return c(d,function(n){var a=t[n+"Index"];null!=a&&"none"!==a&&("all"===a||r[U](a)||(a=[a]),e[_e]({mainType:n},function(t,e){if(!("all"!==a&&r[me](a,e)<0)){var o,s;"xAxis"===n||"yAxis"===n?o=t.axis.grid:s=t[ve];for(var l,u=0,c=i[ge];c>u;u++){var h=i[u];if("yAxis"===n&&!h.yAxis&&h.xAxis){var d=o.getCartesian(h.xAxisIndex,e);if(d){s=d,l=h;break}}}!l&&i.push(l={}),l[n]=t,l[n+"Index"]=e,l.panelId=n+f+e,l.coordSys=s||o.getCartesian(l.xAxisIndex,l.yAxisIndex),l.coordSys?i[n+"Has"]=!0:i.pop()}}))}),i},h.controlSeries=function(t,e,n){var r=i(t,e.coordInfoList);return r===!0||r&&r.coordSys===n[ve]};var v={lineX:r.curry(n,"x"),lineY:r.curry(n,"y"),rect:function(t,i,n){var r=i.coordSys,a=r[p[t]]([n[0][0],n[1][0]]),o=r[p[t]]([n[0][1],n[1][1]]);return[e([a[0],o[0]]),e([a[1],o[1]])]},polygon:function(t,e,i){var n=e.coordSys;return r.map(i,n[p[t]],n)}};return h}),e("echarts/component/dataZoom/history",[Re,De],function(t){function e(t){var e=t[r];return e||(e=t[r]=[{}]),e}var i=t(De),n=i.each,r="\x00_ec_hist_store",a={push:function(t,i){var r=e(t);n(i,function(e,i){for(var n=r[ge]-1;n>=0;n--){var a=r[n];if(a[i])break}if(0>n){var o=t[S]({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();r[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),r.push(i)},pop:function(t){var i=e(t),r=i[i[ge]-1];i[ge]>1&&i.pop();var a={};return n(r,function(t,e){for(var n=i[ge]-1;n>=0;n--){var t=i[n][e];if(t){a[e]=t;break}}}),a},clear:function(t){t[r]=null},count:function(t){return e(t)[ge]}};return a}),e("echarts/component/helper/BrushController",[Re,"zrender/mixin/Eventful",De,"zrender/core/BoundingRect",u,"./interactionMutex","../../data/DataDiffer"],function(t){function e(t){G.call(this),this._zr=t,this.group=new q.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+fe++,this._handlers={},X(pe,function(t,e){this._handlers[e]=H.bind(t,this)},this)}function i(t,e){var i=t._zr;t._enableGlobalPan||W.take(i,oe,t._uid),X(t._handlers,function(t,e){i.on(e,t)}),t._brushType=e.brushType,t._brushOption=H.merge(H.clone(de),e,!0)}function n(t){var e=t._zr;W.release(e,oe,t._uid),X(t._handlers,function(t,i){e.off(i,t)}),t._brushType=t._brushOption=null}function r(t,e){var i=ve[e.brushType].createCover(t,e);return s(i),i.__brushOption=e,t.group.add(i),i}function a(t,e){var i=c(e);return i.endCreating&&(i.endCreating(t,e),s(e)),e}function o(t,e){var i=e.__brushOption;c(e).updateCoverShape(t,e,i.range,i)}function s(t){t[Q](function(t){t.z=ee,t.z2=ee})}function l(t,e){c(e).updateCommon(t,e),o(t,e)}function c(t){return ve[t.__brushOption.brushType]}function h(t,e,i){var n=t._panels;if(!n)return!0;var r;return X(n,function(t){t[D](e,i)&&(r=t)}),r}function d(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null!=n?i[n]:!0}function f(t){var e=t._covers,i=e[ge];return X(e,function(e){t.group[se](e)},t),e[ge]=0,!!i}function v(t,e){var i=Y(t._covers,function(t){var e=t.__brushOption,i=H.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}});t[re]("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function m(t){var e=t._track;if(!e[ge])return!1;var i=e[e[ge]-1],n=e[0],r=i[0]-n[0],a=i[1]-n[1],o=te(r*r+a*a,.5);return o>ie}function g(t){var e=t[ge]-1;return 0>e&&(e=0),[t[0],t[e]]}function y(t,e,i,n){var r=new q.Group;return r.add(new q.Rect({name:"main",style:M(i),silent:!0,draggable:!0,cursor:"move",drift:U(t,e,r,"nswe"),ondragend:U(v,e,{isEnd:!0})})),X(n,function(i){r.add(new q.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:U(t,e,r,i),ondragend:U(v,e,{isEnd:!0})}))}),r}function _(t,e,i,n){var r=n.brushStyle[x]||0,a=K(r,ne),o=i[0][0],s=i[1][0],l=o-r/2,u=s-r/2,c=i[0][1],h=i[1][1],d=c-a+r/2,f=h-a+r/2,p=c-o,v=h-s,m=p+r,g=v+r;w(t,e,"main",o,s,p,v),n.transformable&&(w(t,e,"w",l,u,a,g),w(t,e,"e",d,u,a,g),w(t,e,"n",l,u,m,a),w(t,e,"s",l,f,m,a),w(t,e,"nw",l,u,a,a),w(t,e,"ne",d,u,a,a),w(t,e,"sw",l,f,a,a),w(t,e,"se",d,f,a,a))}function b(t,e){var i=e.__brushOption,n=i.transformable,r=e.childAt(0);r.useStyle(M(i)),r.attr({silent:!n,cursor:n?"move":"default"}),X(["w","e","n","s","se","sw","ne","nw"],function(i){var r=e.childOfName(i),a=C(t,i);r&&r.attr({silent:!n,invisible:!n,cursor:n?ue[a]+"-resize":null})})}function w(t,e,i,n,r,a,o){var s=e.childOfName(i);s&&s.setShape(k(I(t,e,[[n,r],[n+a,r+o]])))}function M(t){return H[ae]({strokeNoScale:!0},t.brushStyle)}function T(t,e,i,n){var r=[$(t,i),$(e,n)],a=[K(t,i),K(e,n)];return[[r[0],a[0]],[r[1],a[1]]]}function S(t){return q.getTransform(t.group)}function C(t,e){if(e[ge]>1){e=e.split("");var i=[C(t,e[0]),C(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=q.transformDirection(n[e],S(t));return r[i]}function A(t,e,i,n,r,a,o){var s=n.__brushOption,u=t(s.range),c=L(i,a,o);X(r.split(""),function(t){var e=le[t];u[e[0]][e[1]]+=c[e[0]]}),s.range=e(T(u[0][0],u[1][0],u[0][1],u[1][1])),l(i,n),v(i,{isEnd:!1})}function P(t,e,i,n){var r=e.__brushOption.range,a=L(t,i,n);X(r,function(t){t[0]+=a[0],t[1]+=a[1]}),l(t,e),v(t,{isEnd:!1})}function L(t,e,i){var n=t.group,r=n.transformCoordToLocal(e,i),a=n.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function I(t,e,i){var n=d(t,e);if(n===!0)return H.clone(i);var r=n[N]();return H.map(i,function(t){var e=t[0];e=K(e,r.x),e=$(e,r.x+r.width);var i=t[1];return i=K(i,r.y),i=$(i,r.y+r[Pe]),[e,i]})}function k(t){var e=$(t[0][0],t[1][0]),i=$(t[0][1],t[1][1]),n=K(t[0][0],t[1][0]),r=K(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:r-i}}function z(t,e){var i=e.offsetX,n=e.offsetY,r=t._zr;if(t._brushType){for(var a,o=t._panels,s=t._covers,l=0;l<s[ge];l++)if(ve[s[l].__brushOption.brushType][D](s[l],i,n)){a=!0;break}a||(o?X(o,function(t){t[D](i,n)&&r.setCursorStyle("crosshair")}):r.setCursorStyle("crosshair"))}}function O(t){var e=t.event;e.preventDefault&&e.preventDefault()}function E(t,e,i){return t.childOfName("main")[D](e,i)}function B(t,e,i){var n,s=e.offsetX,l=e.offsetY,u=t._creatingCover,c=t._creatingPanel,d=t._brushOption;if(t._track.push(t.group.transformCoordToLocal(s,l)),m(t)||u){if(c&&!u){"single"===d.brushMode&&f(t);var p=H.clone(d);p.panelId=c===!0?null:c.__brushPanelId,u=t._creatingCover=r(t,p),t._covers.push(u)}if(u){var v=ve[t._brushType],g=u.__brushOption;g.range=v.getCreatingRange(I(t,u,t._track)),i&&(a(t,u),v.updateCommon(t,u)),o(t,u),n={isEnd:i}}}else i&&"single"===d.brushMode&&d.removeOnClick&&h(t,s,l)&&f(t)&&(n={isEnd:i,removeOnClick:!0});return n}function V(t){if(this._dragging){O(t);var e=B(this,t,!0);this._dragging=!1,this._track=[],this._creatingCover=null,e&&v(this,e)}}function F(t){return{createCover:function(e,i){return y(U(A,function(e){var i=[e,[0,100]];return t&&i.reverse(),i},function(e){return e[t]}),e,i,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var i=g(e),n=$(i[0][t],i[1][t]),r=K(i[0][t],i[1][t]);return[n,r]},updateCoverShape:function(e,i,n,r){var a,o=r.brushStyle.width;if(null==o){var s=d(e,i),l=0;if(s!==!0){var u=s[N]();o=t?u.width:u[Pe],l=t?u.x:u.y}a=[l,l+(o||0)]}else a=[-o/2,o/2];var c=[n,a];t&&c.reverse(),_(e,i,c,r)},updateCommon:b,contain:E}}var G=t("zrender/mixin/Eventful"),H=t(De),Z=t("zrender/core/BoundingRect"),q=t(u),W=t("./interactionMutex"),j=t("../../data/DataDiffer"),U=H.curry,X=H.each,Y=H.map,$=Math.min,K=Math.max,te=Math.pow,ee=1e4,ie=6,ne=6,oe="globalPan",le={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},ue={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},de={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},fe=0;e[Ie]={constructor:e,enableBrush:function(t){return this._brushType&&n(this),t.brushType&&i(this,t),this},setPanels:function(t){var e=this._panels||{},i=this._panels=t&&t[ge]&&{},n=this.group;return i&&X(t,function(t){var r=t.panelId,a=e[r];a||(a=new q.Rect({silent:!0,invisible:!0}),n.add(a));var o=t.rect;o instanceof Z||(o=Z[he](o)),a.attr("shape",o.plain()),a.__brushPanelId=r,i[r]=a,e[r]=null}),X(e,function(t){t&&n[se](t)}),this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t[R]||[0,0],rotation:t[p]||0,scale:t.scale||[1,1]}),this},eachCover:function(t,e){X(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:s+e)+"-"+t.brushType}function i(t,i){return e(t.__brushOption,i)}function n(e,i){var n=t[e];if(null!=i&&u[i]===d)c[e]=u[i];else{var o=c[e]=null!=i?(u[i].__brushOption=n,u[i]):a(h,r(h,n));l(h,o)}}function o(t){u[t]!==d&&h.group[se](u[t])}t=H.map(t,function(t){return H.merge(H.clone(de),t,!0)});var s="\x00-brush-index-",u=this._covers,c=this._covers=[],h=this,d=this._creatingCover;return new j(u,t,i,e).add(n)[ce](n)[se](o).execute(),this},unmount:function(){return this.enableBrush(!1),f(this),this._zr[se](this.group),this},dispose:function(){this.unmount(),this.off()}},H.mixin(e,G);var pe={mousedown:function(t){if(this._dragging)V.call(this,t);else if(!t[J]||!t[J].draggable){O(t);var e=t.offsetX,i=t.offsetY;this._creatingCover=null;var n=this._creatingPanel=h(this,e,i);n&&(this._dragging=!0,this._track=[this.group.transformCoordToLocal(e,i)])}},mousemove:function(t){if(z(this,t),this._dragging){O(t);var e=B(this,t,!1);e&&v(this,e)}},mouseup:V},ve={lineX:F(0),lineY:F(1),rect:{createCover:function(t,e){return y(U(A,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=g(t);return T(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,i,n){_(t,e,i,n)},updateCommon:b,contain:E},polygon:{createCover:function(t,e){var i=new q.Group;return i.add(new q.Polyline({name:"main",style:M(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e[se](e.childAt(0)),e.add(new q.Polygon({name:"main",draggable:!0,drift:U(P,t,e),ondragend:U(v,t,{isEnd:!0})}))},updateCoverShape:function(t,e,i){e.childAt(0).setShape({points:I(t,e,i)})},updateCommon:b,contain:E}};return e}),e("echarts/component/dataZoomSelect",[Re,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SelectZoomModel","./dataZoom/SelectZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SelectZoomModel"),t("./dataZoom/SelectZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/component/helper/interactionMutex",[Re,"../../echarts"],function(t){function e(t){return t[i]||(t[i]={})}var i="\x00_ec_interaction_mutex",n={take:function(t,i,n){var r=e(t);r[i]=n},release:function(t,i,n){var r=e(t),a=r[i];a===n&&(r[i]=null)},isTaken:function(t,i){return!!e(t)[i]}};return t("../../echarts").registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),n}),e("echarts/component/dataZoom/typeDefaulter",[Re,"../../model/Component"],function(t){t("../../model/Component").registerSubTypeDefaulter("dataZoom",function(){return"slider"})}),e("echarts/component/dataZoom/DataZoomModel",[Re,De,Oe,"../../echarts","../../util/model","./helper","./AxisProxy"],function(t){function e(t){var e={};return c(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}function i(t,e,i,n){null!=i[e]&&null==i[t]&&(n[t]=null)}var n=t(De),a=t(Oe),o=t("../../echarts"),s=t("../../util/model"),l=t("./helper"),u=t("./AxisProxy"),c=n.each,h=l.eachAxisDim,d=o.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis",ne],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null},init:function(t,i,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0;var r=e(t);this.mergeDefaultAndTheme(t,n),this.doInit(r)},mergeOption:function(t){var i=e(t);n.merge(this[C],t,!0),this.doInit(i)},doInit:function(t){var e=this[C];a[we]||(e.realtime=!1),this._setDefaultThrottle(t),i("start","startValue",t,e),i("end","endValue",t,e),this.textStyleModel=this[Se](G),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,r){var a=this.dependentModels[e.axis][i],o=a.__dzAxisProxy||(a.__dzAxisProxy=new u(e.name,i,this,r));t[e.name+"_"+i]=o},this)},_resetTarget:function(){var t=this[C],e=this._judgeAutoMode();h(function(e){var i=e.axisIndex;t[i]=s.normalizeToArray(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this[C],e=!1;h(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this[C];if(t){var a="vertical"===e?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[a.axis][ge]&&(i[a.axisIndex]=[0],t=!1)}t&&h(function(e){if(t){var n=[],a=this.dependentModels[e.axis];if(a[ge]&&!n[ge])for(var o=0,s=a[ge];s>o;o++)a[o].get("type")===r&&n.push(o);i[e.axisIndex]=n,n[ge]&&(t=!1)}},this),t&&this[M].eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&h(function(e){var r=i[e.axisIndex],a=t.get(e.axisIndex),o=t.get(e.axisId),s=t[M][S]({mainType:e.axis,index:a,id:o})[0];a=s[T],n[me](r,a)<0&&r.push(a)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this[C].orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return h(function(n){var r=t.get(n.axisIndex),a=this.dependentModels[n.axis][r];a&&a.get("type")===e||(i=!1)},this),i},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this[M][C];this[C].throttle=e[Ce]&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return h(function(e){if(null==t){var i=this.get(e.axisIndex);i[ge]&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this[M];h(function(n){c(this.get(n.axisIndex),function(r){t.call(e,n,r,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(t){c(["start","end","startValue","endValue"],function(e){this[C][e]=t[e]},this)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e];for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e]}});return d}),e("echarts/component/dataZoom/dataZoomProcessor",[Re,"../../echarts"],function(t){function e(t,e,i){i.getAxisProxy(t.name,e).reset(i)}function i(t,e,i){i.getAxisProxy(t.name,e).filterData(i)}var n=t("../../echarts");n.registerProcessor(function(t){t[_e]("dataZoom",function(t){t.eachTargetAxis(e),t.eachTargetAxis(i)}),t[_e]("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})})})}),e("echarts/component/dataZoom/SelectZoomModel",[Re,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[oe]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/DataZoomView",[Re,"../../view/Component"],function(t){var e=t("../../view/Component");return e[oe]({type:"dataZoom",render:function(t,e,i){this.dataZoomModel=t,this[M]=e,this.api=i},getTargetInfo:function(){function t(t,e,i,n){for(var r,a=0;a<i[ge];a++)if(i[a].model===t){r=i[a];break}r||i.push(r={model:t,axisModels:[],coordIndex:n}),r.axisModels.push(e)}var e=this.dataZoomModel,i=this[M],n=[],r=[],a=[];return e.eachTargetAxis(function(e,o){var s=i.getComponent(e.axis,o);if(s){a.push(s);var l,u=e.axis;"xAxis"===u||"yAxis"===u?l="grid":("angleAxis"===u||"radiusAxis"===u)&&(l="polar");var c=l?i[S]({mainType:l,index:s.get(l+"Index"),id:s.get(l+"Id")})[0]:null;null!=c&&t(c,s,"grid"===l?n:r,c[T])}},this),{cartesians:n,polars:r,axisModels:a}}})}),e("echarts/component/dataZoom/SelectZoomView",[Re,"./DataZoomView"],function(t){return t("./DataZoomView")[oe]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/dataZoomAction",[Re,De,"./helper","../../echarts"],function(t){var e=t(De),i=t("./helper"),n=t("../../echarts");n.registerAction("dataZoom",function(t,n){var r=i.createLinkedNodesFinder(e.bind(n[_e],n,"dataZoom"),i.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),a=[];n[_e]({mainType:"dataZoom",query:t},function(t){a.push.apply(a,r(t).nodes)}),e.each(a,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}),e("echarts/component/dataZoom/AxisProxy",[Re,De,"../../util/number"],function(t){function e(t,e){var i=[1/0,-1/0];return s(e,function(e){var n=e[pe]();n&&s(e.coordDimToDataDim(t),function(t){var e=n.getDataExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})},this),i}function i(t,e,i){return s(["min","max"],function(n,r){var a=e.get(n,!0);null!=a&&(a+"")[ke]()!=="data"+n&&(t[r]=i.parse(a))}),e.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function n(t,e){var i=t.getAxisModel(),n=t._percentWindow,r=t._valueWindow;if(n){var a=e||0===n[0]&&100===n[1],s=!e&&o.getPixelPrecision(r,[0,500]),l=!(e||20>s&&s>=0),u=e||a||l;i.setRange&&i.setRange(u?null:+r[0].toFixed(s),u?null:+r[1].toFixed(s))}}var a=t(De),o=t("../../util/number"),s=a.each,u=o.asc,c=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this[M]=n,this._dataZoomModel=i};return c[Ie]={constructor:c,hostedBy:function(t){return this._dataZoomModel===t},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this[M];return e.eachSeries(function(i){var n=i.get(ve);if("cartesian2d"===n||"polar"===n){var r=this._dimName,a=e[S]({mainType:r+"Axis",index:i.get(r+"AxisIndex"),id:i.get(r+"AxisId")})[0];this._axisIndex===(a&&a[T])&&t.push(i)}},this),t},getAxisModel:function(){return this[M].getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this[M],r=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?l:"angle");var o;return n[_e](t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},calculateDataWindow:function(t,e){var n=this.getAxisModel(),r=n.axis.scale,a=[0,100],l=[t.start,t.end],c=[];return e=e.slice(),i(e,n,r),s(["startValue","endValue"],function(e){c.push(null!=t[e]?r.parse(t[e]):null)}),s([0,1],function(t){var i=c[t],n=l[t];null!=n||null==i?(null==n&&(n=a[t]),i=r.parse(o.linearMap(n,a,e,!0))):n=o.linearMap(i,e,a,!0),c[t]=i,l[t]=n}),{valueWindow:u(c),percentWindow:u(l)}},reset:function(t){if(t===this._dataZoomModel){var i=this._dataExtent=e(this._dimName,this.getTargetSeriesModels()),r=this.calculateDataWindow(t[C],i);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,n(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,n(this,!0))},filterData:function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow,l=this.getOtherAxisModel();t.get("$fromToolbox")&&l&&l.get("type")===r&&(a="empty"),s(n,function(t){var n=t[pe]();n&&s(t.coordDimToDataDim(i),function(i){"empty"===a?t.setData(n.map(i,function(t){return e(t)?t:0/0})):n.filterSelf(i,e)})})}}},c}),e("echarts/component/dataZoom/helper",[Re,"../../util/format",De],function(t){var e=t("../../util/format"),i=t(De),n={},r=["x","y","z",l,"angle"];return n.createNameEach=function(t,n){t=t.slice();var r=i.map(t,e.capitalFirst);n=(n||[]).slice();var a=i.map(n,e.capitalFirst);return function(e,o){i.each(t,function(t,i){for(var s={name:t,capital:r[i]},l=0;l<n[ge];l++)s[n[l]]=t+a[l];e.call(o,s)})}},n.eachAxisDim=n.createNameEach(r,["axisIndex","axis","index","id"]),n.createLinkedNodesFinder=function(t,e,n){function r(t,e){return i[me](e.nodes,t)>=0}function a(t,r){var a=!1;return e(function(e){i.each(n(t,e)||[],function(t){r.records[e.name][t]&&(a=!0)})}),a}function o(t,r){r.nodes.push(t),e(function(e){i.each(n(t,e)||[],function(t){r.records[e.name][t]=!0})})}return function(i){function n(t){!r(t,s)&&a(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(n);while(l);return s}},n}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var Ee=t("echarts");return Ee.graphic=t("echarts/util/graphic"),Ee.number=t("echarts/util/number"),Ee.format=t("echarts/util/format"),t("echarts/chart/bar"),t("echarts/chart/line"),t("echarts/chart/pie"),t("echarts/component/grid"),t("echarts/component/title"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("echarts/component/toolbox"),t("zrender/vml/vml"),Ee}); |