9 lines
261 KiB
JavaScript
9 lines
261 KiB
JavaScript
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(n[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],l=o[r],c=0,u=Math.min(e.length,n.length);u>c;c++){var h,f=i(e[c],r);switch(f){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;break;default:h=a(f)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var 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="__dirty",n="moveTo",r="transform",a="radius",o="../../util/graphic",s="category",l="dimensions",c="getItemModel",u="inside",h="stroke",f="lineWidth",d="applyTransform",p="getItemGraphicEl",v="normal",m="ecModel",g="animation",y="getShallow",_="getItemVisual",x="getName",b="ordinal",w="concat",M="option",S="createElement",T="getContext",C="undefined",A="getExtent",P="contain",L="opacity",k="position",z="center",I="middle",D="getBoundingRect",O="getTextColor",E="getFont",R="textAlign",B="textStyle",N="coordinateSystem",F="removeAll",G="inherits",V="indexOf",H="filter",q="number",W="function",Z="isArray",U="replace",X="zlevel",j="setStyle",Y="seriesIndex",$="dataIndex",Q="target",K="mouseout",J="mouseover",te="splice",ee="length",ie="defaults",ne="extend",re="remove",ae="isObject",oe="getData",se="update",le="create",ce="height",ue="bottom",he="ignore",fe="storage",de="canvasSupported",pe="getHeight",ve="getWidth",me="getModel",ge="resize",ye="string",_e="prototype",xe="toLowerCase",be="zrender/core/vector",we="zrender/core/util",Me="require";e("echarts/echarts",[Me,"zrender/core/env","./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",we,"zrender/tool/color","zrender/mixin/Eventful","zrender/core/timsort","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./data/List","./model/Model","./util/number","./util/format","zrender/core/matrix",be],function(t){function e(t){return function(e,i,n){e=e&&e[xe](),L[_e][t].call(this,e,i,n)}}function i(){L.call(this)}function n(t,e,n){function r(t,e){return t.prio-e.prio}n=n||{},typeof e===ye&&(e=De[e]),this.id,this.group,this._dom=t,this._zr=C.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),this._theme=A.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new y(this),this._coordSysMgr=new _,L.call(this),this._messageCenter=new i,this._initEvents(),this[ge]=A.bind(this[ge],this),this._pendingActions=[],k(Ie,r),k(ke,r)}function r(t,e){var i=this._model;i&&i.eachComponent({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;z(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),p(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),p(r,a),d(r,a)},this),f(this._zr,e)}function o(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,r=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<n[ee];o++)n[o].__alive=!1;e[i?"eachComponent":"eachSeries"](function(t,o){if(i){if("series"===t)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var c=b.parseClassType(o.type),u=i?M.getClass(c.main,c.sub):S.getClass(c.sub);if(!u)return;l=new u,l.init(e,this._api),r[s]=l,n.push(l),a.add(l.group)}o.__viewId=s,l.__alive=!0,l.__id=s,l.__model=o},this);for(var o=0;o<n[ee];){var s=n[o];s.__alive?o++:(a[re](s.group),s.dispose(e,this._api),n[te](o,1),delete r[s.__id])}}function s(t,e){z(ke,function(i){i.func(t,e)})}function l(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),n=t[oe]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function c(t,e){var i=this._api;z(Ie,function(n){n.isLayout&&n.func(t,i,e)})}function u(t,e){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),z(Ie,function(n){n.func(t,i,e)})}function h(t,e){var i=this._api;z(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),p(r,n)},this),z(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"),p(n,r),d(n,r)},this),f(this._zr,t),z(this._chartsViews,function(e){e.__alive||e[re](t,i)},this)}function f(t,e){var i=t[fe],n=0;i.traverse(function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!m.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function d(t,e){var i=0;e.group.traverse(function(t){"group"===t.type||t[he]||i++});var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!m.node;r&&e.group.traverse(function(t){t.isGroup||(t.progressive=r?Math.floor(i++/n):-1,r&&t.stopAnimation(!0))});var a=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t[j]("blend",a)})}function p(t,e){var i=t.get("z"),n=t.get(X);e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t[X]=n))})}function v(t){function e(t,e){for(var i=0;i<t[ee];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";A.each(Le,function(o,s){t._messageCenter.on(s,function(o){if(Ee[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];for(var c in Oe){var u=Oe[c];u!==t&&u.group===t.group&&l.push(u)}e(l,i),z(l,function(t){t[a]!==n&&t.dispatchAction(s)}),e(l,r)}})})}var m=t("zrender/core/env"),g=t("./model/Global"),y=t("./ExtensionAPI"),_=t("./CoordinateSystem"),x=t("./model/OptionManager"),b=t("./model/Component"),w=t("./model/Series"),M=t("./view/Component"),S=t("./view/Chart"),T=t("./util/graphic"),C=t("zrender"),A=t(we),P=t("zrender/tool/color"),L=t("zrender/mixin/Eventful"),k=t("zrender/core/timsort"),z=A.each,I=1e3,D=5e3,O=1e3,E=2e3,R=3e3,B=4e3,N=5e3,F="__flag_in_main_process",Me="_hasGradientOrPatternBg";i[_e].on=e("on"),i[_e].off=e("off"),i[_e].one=e("one"),A.mixin(i,L);var Se=n[_e];Se.getDom=function(){return this._dom},Se.getZr=function(){return this._zr},Se.setOption=function(t,e,i){if(this[F]=!0,!this._model||e){var n=new x(this._api),r=this._theme,a=this._model=new g(null,null,r,n);a.init(null,null,r,n)}this._model.setOption(t,ze),Te.prepareAndUpdate.call(this),this[F]=!1,this._flushPendingActions(),!i&&this._zr.refreshImmediately()},Se.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Se[me]=function(){return this._model},Se.getOption=function(){return this._model.getOption()},Se[ve]=function(){return this._zr[ve]()},Se[pe]=function(){return this._zr[pe]()},Se.getRenderedCanvas=function(t){if(m[de]){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e[fe].getDisplayList();return A.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},Se.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;z(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[he]||(n.push(e),e.group[he]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return z(n,function(t){t.group[he]=!1}),a},Se.getConnectedDataURL=function(t){if(m[de]){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(Ee[e]){var a=r,o=r,s=-r,l=-r,c=[],u=t&&t.pixelRatio||1;for(var h in Oe){var f=Oe[h];if(f.group===e){var d=f.getRenderedCanvas(A.clone(t)),p=f.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),l=n(p[ue],l),c.push({dom:d,left:p.left,top:p.top})}}a*=u,o*=u,s*=u,l*=u;var v=s-a,g=l-o,y=A.createCanvas();y.width=v,y[ce]=g;var _=C.init(y);return z(c,function(t){var e=new T.Image({style:{x:t.left*u-a,y:t.top*u-o,image:t.dom}});_.add(e)}),_.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var Te={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),n[le](this._model,this._api),s.call(this,e,i),l.call(this,e),n[se](e,i),u.call(this,e,t),h.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(!m[de]){var c=P.parse(a);a=P.stringify(c,"rgb"),0===c[3]&&(a="transparent")}a.colorStops||a.image?(r.configLayer(0,{clearColor:a}),this[Me]=!0,this._dom.style.background="transparent"):(this[Me]&&r.configLayer(0,{clearColor:null}),this[Me]=!1,this._dom.style.background=a)}}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[oe]().clearAllVisual()}),u.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[oe]().clearAllVisual()}),u.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(c.call(this,e,t),a.call(this,"updateLayout",e,t))},highlight:function(t){r.call(this,"highlight",t)},downplay:function(t){r.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;o.call(this,"component",e),o.call(this,"chart",e),Te[se].call(this,t)}};Se[ge]=function(){this[F]=!0,this._zr[ge]();var t=this._model&&this._model.resetOption("media");Te[t?"prepareAndUpdate":se].call(this),this._loadingFX&&this._loadingFX[ge](),this[F]=!1,this._flushPendingActions()};var Ce=t("./loading/default");Se.showLoading=function(t,e){A[ae](t)&&(e=t,t="default"),this.hideLoading();var i=Ce(this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},Se.hideLoading=function(){this._loadingFX&&this._zr[re](this._loadingFX),this._loadingFX=null},Se.makeActionFromEvent=function(t){var e=A[ne]({},t);return e.type=Le[t.type],e},Se.dispatchAction=function(t,e){var i=Pe[t.type];if(i){var n=i.actionInfo,r=n[se]||se;if(this[F])return void this._pendingActions.push(t);this[F]=!0;var a=[t],o=!1;t.batch&&(o=!0,a=A.map(t.batch,function(e){return e=A[ie](A[ne]({},e),t),e.batch=null,e}));for(var s,l=[],c="highlight"===t.type||"downplay"===t.type,u=0;u<a[ee];u++){var h=a[u];s=i.action(h,this._model),s=s||A[ne]({},h),s.type=n.event||s.type,l.push(s),c&&Te[r].call(this,h)}"none"!==r&&!c&&Te[r].call(this,t),s=o?{type:n.event||t.type,batch:l}:l[0],this[F]=!1,!e&&this._messageCenter.trigger(s.type,s),this._flushPendingActions()}},Se._flushPendingActions=function(){for(var t=this._pendingActions;t[ee];){var e=t.shift();this.dispatchAction(e)}},Se.on=e("on"),Se.off=e("off"),Se.one=e("one");var Ae=["click","dblclick",J,K,"mousedown","mouseup","globalout"];Se._initEvents=function(){z(Ae,function(t){this._zr.on(t,function(e){var i=this[me](),n=e[Q];if(n&&null!=n[$]){var r=n.dataModel||i.getSeriesByIndex(n[Y]),a=r&&r.getDataParams(n[$],n.dataType)||{};a.event=e,a.type=t,this.trigger(t,a)}else n&&n.eventData&&this.trigger(t,n.eventData)},this)},this),z(Le,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},Se.isDisposed=function(){return this._disposed},Se.clear=function(){this.setOption({},!0)},Se.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;z(this._componentsViews,function(i){i.dispose(e,t)}),z(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete Oe[this.id]}},A.mixin(n,L);var Pe=[],Le={},ke=[],ze=[],Ie=[],De={},Oe={},Ee={},Re=new Date-0,Be=new Date-0,Ne="_echarts_instance_",Fe={version:"3.2.2",dependencies:{zrender:"3.1.2"}};Fe.init=function(t,e,i){var r=new n(t,e,i);return r.id="ec_"+Re++,Oe[r.id]=r,t.setAttribute&&t.setAttribute(Ne,r.id),v(r),r},Fe.connect=function(t){if(A[Z](t)){var e=t;t=null,A.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Be++,A.each(e,function(e){e.group=t})}return Ee[t]=!0,t},Fe.disConnect=function(t){Ee[t]=!1},Fe.dispose=function(t){A.isDom(t)?t=Fe.getInstanceByDom(t):typeof t===ye&&(t=Oe[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},Fe.getInstanceByDom=function(t){var e=t.getAttribute(Ne);return Oe[e]},Fe.getInstanceById=function(t){return Oe[t]},Fe.registerTheme=function(t,e){De[t]=e},Fe.registerPreprocessor=function(t){ze.push(t)},Fe.registerProcessor=function(t,e){typeof t===W&&(e=t,t=I),ke.push({prio:t,func:e})},Fe.registerAction=function(t,e,i){typeof e===W&&(i=e,e="");var n=A[ae](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[xe](),e=t.event,Pe[n]||(Pe[n]={action:i,actionInfo:t}),Le[e]=n},Fe.registerCoordinateSystem=function(t,e){_.register(t,e)},Fe.registerLayout=function(t,e){typeof t===W&&(e=t,t=O),Ie.push({prio:t,func:e,isLayout:!0})},Fe.registerVisual=function(t,e){typeof t===W&&(e=t,t=R),Ie.push({prio:t,func:e})};var Ge=b.parseClassType;return Fe.extendComponentModel=function(t,e){var i=b;if(e){var n=Ge(e);i=b.getClass(n.main,n.sub,!0)}return i[ne](t)},Fe.extendComponentView=function(t,e){var i=M;if(e){var n=Ge(e);i=M.getClass(n.main,n.sub,!0)}return i[ne](t)},Fe.extendSeriesModel=function(t,e){var i=w;if(e){e="series."+e[U]("series.","");var n=Ge(e);i=w.getClass(n.main,n.sub,!0)}return i[ne](t)},Fe.extendChartView=function(t,e){var i=S;if(e){e[U]("series.","");var n=Ge(e);i=S.getClass(n.main,!0)}return S[ne](t)},Fe.setCanvasCreator=function(t){A.createCanvas=t},Fe.registerVisual(E,t("./visual/seriesColor")),Fe.registerPreprocessor(t("./preprocessor/backwardCompat")),Fe.registerAction({type:"highlight",event:"highlight",update:"highlight"},A.noop),Fe.registerAction({type:"downplay",event:"downplay",update:"downplay"},A.noop),Fe.List=t("./data/List"),Fe.Model=t("./model/Model"),Fe.graphic=t("./util/graphic"),Fe[q]=t("./util/number"),Fe.format=t("./util/format"),Fe.matrix=t("zrender/core/matrix"),Fe.vector=t(be),Fe.color=t("zrender/tool/color"),Fe.util={},z(["map","each",H,V,G,"reduce",H,"bind","curry",Z,"isString",ae,"isFunction",ne,ie],function(t){Fe.util[t]=A[t]}),Fe.PRIORITY={PROCESSOR:{FILTER:I,STATISTIC:D},VISUAL:{LAYOUT:O,GLOBAL:E,CHART:R,COMPONENT:B,BRUSH:N}},Fe}),e("echarts/chart/bar",[Me,we,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid","../echarts","../component/grid"],function(t){var e=t(we);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[oe]();e.setVisual("legendSymbol","roundRect")})}),t("../component/grid")}),e("echarts/chart/line",[Me,we,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(we),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/pie",[Me,we,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(we),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",[Me,"../util/graphic",we,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),i=t(we);t("../coord/cartesian/Grid"),t("./axis"),t("../echarts").extendComponentView({type:"grid",render:function(t){this.group[F](),t.get("show")&&this.group.add(new e.Rect({shape:t[N].getRect(),style:i[ie]({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})}),e("echarts/component/title",[Me,"../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[F](),t.get("show")){var a=this.group,o=t[me](B),s=t[me]("subtextStyle"),l=t.get(R),c=t.get("textBaseline"),u=new i.Text({style:{text:t.get("text"),textFont:o[E](),fill:o[O]()},z2:10}),h=u[D](),f=t.get("subtext"),d=new i.Text({style:{text:f,textFont:s[E](),fill:s[O](),y:h[ce]+t.get("itemGap"),textBaseline:"top"},z2:10}),p=t.get("link"),v=t.get("sublink");u.silent=!p,d.silent=!v,p&&u.on("click",function(){window.open(p,"_"+t.get(Q))}),v&&d.on("click",function(){window.open(v,"_"+t.get("subtarget"))}),a.add(u),f&&a.add(d);var m=a[D](),g=t.getBoxLayoutParams();g.width=m.width,g[ce]=m[ce];var y=n.getLayoutRect(g,{width:r[ve](),height:r[pe]()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l===I&&(l=z),"right"===l?y.x+=y.width:l===z&&(y.x+=y.width/2)),c||(c=t.get("top")||t.get(ue),c===z&&(c=I),c===ue?y.y+=y[ce]:c===I&&(y.y+=y[ce]/2),c=c||"top"),a.attr(k,[y.x,y.y]);var _={textAlign:l,textVerticalAlign:c};u[j](_),d[j](_),m=a[D]();var x=y.margin,b=t.getItemStyle(["color",L]);b.fill=t.get("backgroundColor");var w=new i.Rect({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m[ce]+x[0]+x[2]},style:b,silent:!0});i.subPixelOptimizeRect(w),a.add(w)}}})}),e("echarts/component/legend",[Me,"./legend/LegendModel","./legend/legendAction","./legend/LegendView","../echarts","./legend/legendFilter"],function(t){t("./legend/LegendModel"),t("./legend/legendAction"),t("./legend/LegendView");var e=t("../echarts");e.registerProcessor(t("./legend/legendFilter"))}),e("echarts/component/tooltip",[Me,"./tooltip/TooltipModel","./tooltip/TooltipView","../echarts"],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t("../echarts").registerAction({type:"showTip",event:"showTip",update:"none"},function(){}),t("../echarts").registerAction({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e("zrender/vml/vml",[Me,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/scale/Time",[Me,we,"../util/number","../util/format","./Interval"],function(t){var e=t(we),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[_e],o=Math.ceil,s=Math.floor,l=1e3,c=60*l,u=60*c,h=24*u,f=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},d=r[ne]({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[ee],l=f(p,r,0,a),c=p[Math.min(l,a-1)],u=c[2];if("year"===c[0]){var h=n/u,d=i.nice(h/t,!0);u*=d}var v=[o(e[0]/u)*u,s(e[1]/u)*u];this._stepLvl=c,this._interval=u,this._niceExtent=v},parse:function(t){return+i.parseDate(t)}});e.each([P,"normalize"],function(t){d[_e][t]=function(e){return a[t].call(this,this.parse(e))}});var p=[["hh:mm:ss",1,l],["hh:mm:ss",5,5*l],["hh:mm:ss",10,10*l],["hh:mm:ss",15,15*l],["hh:mm:ss",30,30*l],["hh:mm\nMM-dd",1,c],["hh:mm\nMM-dd",5,5*c],["hh:mm\nMM-dd",10,10*c],["hh:mm\nMM-dd",15,15*c],["hh:mm\nMM-dd",30,30*c],["hh:mm\nMM-dd",1,u],["hh:mm\nMM-dd",2,2*u],["hh:mm\nMM-dd",6,6*u],["hh:mm\nMM-dd",12,12*u],["MM-dd\nyyyy",1,h],["week",7,7*h],["month",1,31*h],["quarter",3,380*h/4],["half-year",6,380*h/2],["year",1,380*h]];return d[le]=function(){return new d},d}),e("echarts/scale/Log",[Me,we,"./Scale","../util/number","./Interval"],function(t){var e=t(we),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[_e],o=r[_e],s=Math.floor,l=Math.ceil,c=Math.pow,u=10,h=Math.log,f=i[ne]({type:"log",getTicks:function(){return e.map(o.getTicks.call(this),function(t){return n.round(c(u,t))})},getLabel:o.getLabel,scale:function(t){return t=a.scale.call(this,t),c(u,t)},setExtent:function(t,e){t=h(t)/h(u),e=h(e)/h(u),o.setExtent.call(this,t,e)},getExtent:function(){var t=a[A].call(this);return t[0]=c(u,t[0]),t[1]=c(u,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(u),t[1]=h(t[1])/h(u),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var r=c(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(l(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([P,"normalize"],function(t){f[_e][t]=function(e){return e=h(e)/h(u),a[t].call(this,e)}}),f[le]=function(){return new f},f}),e("zrender/core/env",[],function(){function t(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),{browser:i,os:e,node:!1,canvasSupported:document[S]("canvas")[T]?!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===C?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/model/Global",[Me,we,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){for(var i in e)y.hasClass(i)||("object"==typeof e[i]?t[i]=t[i]?c.merge(t[i],e[i],!1):c.clone(e[i]):null==t[i]&&(t[i]=e[i]))}function i(t){t=t,this[M]={},this[M][x]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[M]),c.merge(t,_,!1),this.mergeOption(t)}function n(t,e){c[Z](e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};f(e,function(t){var e=t.exist;e&&(i[e.id]=t)}),f(e,function(e){var n=e[M];if(c.assert(!n||null==n.id||!i[n.id]||i[n.id]===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(i[n.id]=e),g(n)){var r=a(t,n,e.exist);e.keyInfo={mainType:t,subType:r}}}),f(e,function(t){var e=t.exist,n=t[M],r=t.keyInfo;if(g(n)){if(r.name=null!=n.name?n.name+"":e?e.name:"\x00-",e)r.id=e.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(i[r.id])}i[r.id]=t}})}function a(t,e,i){var n=e.type?e.type:i?i.subType:y.determineSubType(t,e);return n}function o(t){return p(t,function(t){return t.componentIndex})||[]}function s(t,e){return e.hasOwnProperty("subType")?d(t,function(t){return t.subType===e.subType}):t}function l(t){}var c=t(we),u=t("../util/model"),h=t("./Model"),f=c.each,d=c[H],p=c.map,v=c[Z],m=c[V],g=c[ae],y=t("./Component"),_=t("./globalDefault"),x="\x00_ec_inner",b=h[ne]({constructor:b,init:function(t,e,i,n){i=i||{},this[M]=null,this._theme=new h(i),this._optionManager=n},setOption:function(t,e){c.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[M]&&"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[ee]&&f(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var l=u.normalizeToArray(t[e]),h=u.mappingToExists(a[e],l);r(e,h);var d=n(a,s);i[e]=[],a[e]=[],f(h,function(t,n){var r=t.exist,o=t[M];if(c.assert(g(o)||r,"Empty component definition"),o){var s=y.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.mergeOption(o,this),r.optionUpdated(o,!1);else{var l=c[ne]({dependentModels:d,componentIndex:n},t.keyInfo);r=new s(o,this,this,l),r.init(o,this,this,l),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);a[e][n]=r,i[e][n]=r[M]},this),"series"===e&&(this._seriesIndices=o(a.series))}var i=this[M],a=this._componentsMap,s=[];f(t,function(t,e){null!=t&&(y.hasClass(e)?s.push(e):i[e]=null==i[e]?c.clone(t):c.merge(i[e],t,!0))}),y.topologicalTravel(s,y.getAllClassMainTypes(),e,this)},getOption:function(){var t=c.clone(this[M]);return f(t,function(e,i){if(y.hasClass(i)){for(var e=u.normalizeToArray(e),n=e[ee]-1;n>=0;n--)u.isIdInner(e[n])&&e[te](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[ee])return[];var o;if(null!=i)v(i)||(i=[i]),o=d(p(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var l=v(n);o=d(a,function(t){return l&&m(n,t.id)>=0||!l&&t.id===n})}else if(null!=r){var c=v(r);o=d(a,function(t){return c&&m(r,t.name)>=0||!c&&t.name===r})}return s(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t[H]?d(e,t[H]):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap[r];return i(s(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===W)i=e,e=t,f(n,function(t,n){f(t,function(t,r){e.call(i,n,t,r)})});else if(c.isString(t))f(n[t],e,i);else if(g(t)){var r=this.findComponents(t);f(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.series;return d(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return d(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){l(this),f(this._seriesIndices,function(i){var n=this._componentsMap.series[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,i){l(this),f(this._seriesIndices,function(n){var r=this._componentsMap.series[n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return l(this),c[V](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){l(this);var i=d(this._componentsMap.series,t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t.series);var e=[];f(t,function(t,i){e.push(i)}),y.topologicalTravel(e,y.getAllClassMainTypes(),function(e){f(t[e],function(t){t.restoreData()})})}});return c.mixin(b,t("./mixin/colorPalette")),b}),e("echarts/ExtensionAPI",[Me,we],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(we),n=["getDom","getZr",ve,pe,"dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL",me,"getOption"];return e}),e("echarts/CoordinateSystem",[Me],function(){function t(){this._coordinateSystems=[]}var e={};return t[_e]={constructor:t,create:function(t,i){var n=[];for(var r in e){var a=e[r][le](t,i);a&&(n=n[w](a))}this._coordinateSystems=n},update:function(t,e){for(var i=this._coordinateSystems,n=0;n<i[ee];n++)i[n][se]&&i[n][se](t,e)}},t.register=function(t,i){e[t]=i},t.get=function(t){return e[t]},t}),e("echarts/model/OptionManager",[Me,we,"../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 c=t.media;u(c,function(t){t&&t[M]&&(t.query?o.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=l),u([r][w](a)[w](s.map(o,function(t){return t[M]})),function(t){u(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][xe]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},u(e,function(e,i){if(null!=e){var n=t[i];if(c.hasClass(i)){e=l.normalizeToArray(e),n=l.normalizeToArray(n);var r=l.mappingToExists(n,e);t[i]=f(r,function(t){return t[M]&&t.exist?d(t.exist,t[M],!0):t.exist||t[M]})}else t[i]=d(n,e,!0)}})}var s=t(we),l=t("../util/model"),c=t("./Component"),u=s.each,h=s.clone,f=s.map,d=s.merge,p=/^(min|max)?(.+)$/;return e[_e]={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[ee]&&(n.timelineOptions=r.timelineOptions),r.mediaList[ee]&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=f(e.timelineOptions,h),this._mediaList=f(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[ee]){var n=t.getComponent("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[ve](),e=this._api[pe](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[ee]&&!r)return s;for(var l=0,c=i[ee];c>l;l++)n(i[l].query,t,e)&&o.push(l);return!o[ee]&&r&&(o=[-1]),o[ee]&&!a(o,this._currentMediaIndices)&&(s=f(o,function(t){return h(-1===t?r[M]:i[t][M])})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[Me,"./Model",we,"../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[_e].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(we),r=Array[_e].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),l=i[ne]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,r,o){i.call(this,t,e,r,o),n[ne](this,o),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[M],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[M],t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[_e].defaultOption;
|
|
i&&t.push(i),e=e.superClass}for(var r={},a=t[ee]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassManagement(l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),n.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/model/Series",[Me,we,"../util/format","../util/model","./Component","./mixin/colorPalette","zrender/core/env"],function(t){var e=t(we),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=t("./mixin/colorPalette"),o=t("zrender/core/env"),s=i.encodeHTML,l=i.addCommas,c=r[ne]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",init:function(t,e,i){this[Y]=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,n.LABEL_OPTIONS),this.fillDataTextStyle(t.data)},mergeOption:function(t,i){t=e.merge(this[M],t,!0),this.fillDataTextStyle(t.data);var n=this.getInitialData(t,i);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e<t[ee];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[N];return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,n){function r(t){return e.map(t,function(t,e){var r=a.getDimensionInfo(e),o=r&&r.type;return o===b?t:"time"===o?n?"":i.formatTime("yyyy/mm/dd hh:mm:ss",t):l(t)})[H](function(t){return!!t}).join(", ")}var a=this._data,o=this.getRawValue(t),c=e[Z](o)?r(o):l(o),u=a[x](t),h=a[_](t,"color"),f='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+h+'"></span>',d=this.name;return"\x00-"===d&&(d=""),n?f+s(this.name)+" : "+c:(d&&s(d)+"<br />")+f+(u?s(u)+" : "+c:c)},ifEnableAnimation:function(){if(o.node)return!1;var t=this[y](g);return t&&this[oe]().count()>this[y]("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});return e.mixin(c,n.dataFormatMixin),e.mixin(c,a),c}),e("echarts/view/Chart",[Me,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){var r=e&&e[$],a=e&&e.name;if(null!=r)for(var o=r instanceof Array?r:[r],s=0,l=o[ee];l>s;s++)i(t[p](o[s]),n);else if(a)for(var c=a instanceof Array?a:[a],s=0,l=c[ee];l>s;s++){var r=t.indexOfName(c[s]);i(t[p](r),n)}else t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz");e[_e]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[oe](),r,"emphasis")},downplay:function(t,e,i,r){n(t[oe](),r,v)},remove:function(){this.group[F]()},dispose:function(){}};var s=e[_e];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/view/Component",[Me,"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[_e]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[_e];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/util/graphic",[Me,we,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",be,"zrender/graphic/Gradient","zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Ring","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/CompoundPath","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient","zrender/core/BoundingRect"],function(t){function e(t){return null!=t&&"none"!=t}function i(t){return typeof t===ye?T.lift(t,-.1):t}function n(t){if(t.__hoverStlDirty){var n=t.style[h],r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?i(r):null),a[h]=a[h]||(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[j](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[j](e),t.z2-=1),t.__isHover=!1}}function o(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&r(t)}):r(t)}function s(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&a(t)}):a(t)}function l(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&n(t)}function c(){!this.__isEmphasis&&o(this)}function p(){!this.__isEmphasis&&s(this)}function m(){this.__isEmphasis=!0,o(this)}function _(){this.__isEmphasis=!1,s(this)}function x(t,e,i,n,r,a){typeof r===W&&(a=r,r=null);var o=n&&(n.ifEnableAnimation?n.ifEnableAnimation():n[y](g));if(o){var s=t?"Update":"",l=n&&n[y]("animationDuration"+s),c=n&&n[y]("animationEasing"+s),u=n&&n[y]("animationDelay"+s);typeof u===W&&(u=u(r)),l>0?e.animateTo(i,l,u||0,c,a):(e.attr(i),a&&a())}else e.attr(i),a&&a()}var b=t(we),w=t("zrender/tool/path"),M=Math.round,S=t("zrender/graphic/Path"),T=t("zrender/tool/color"),C=t("zrender/core/matrix"),A=t(be),P=(t("zrender/graphic/Gradient"),{});return P.Group=t("zrender/container/Group"),P.Image=t("zrender/graphic/Image"),P.Text=t("zrender/graphic/Text"),P.Circle=t("zrender/graphic/shape/Circle"),P.Sector=t("zrender/graphic/shape/Sector"),P.Ring=t("zrender/graphic/shape/Ring"),P.Polygon=t("zrender/graphic/shape/Polygon"),P.Polyline=t("zrender/graphic/shape/Polyline"),P.Rect=t("zrender/graphic/shape/Rect"),P.Line=t("zrender/graphic/shape/Line"),P.BezierCurve=t("zrender/graphic/shape/BezierCurve"),P.Arc=t("zrender/graphic/shape/Arc"),P.CompoundPath=t("zrender/graphic/CompoundPath"),P.LinearGradient=t("zrender/graphic/LinearGradient"),P.RadialGradient=t("zrender/graphic/RadialGradient"),P.BoundingRect=t("zrender/core/BoundingRect"),P.extendShape=function(t){return S[ne](t)},P.extendPath=function(t,e){return w.extendFromString(t,e)},P.makePath=function(t,e,i,n){var r=w.createFromString(t,e),a=r[D]();if(i){var o=a.width/a[ce];if(n===z){var s,l=i[ce]*o;l<=i.width?s=i[ce]:(l=i.width,s=l/o);var c=i.x+i.width/2,u=i.y+i[ce]/2;i.x=c-l/2,i.y=u-s/2,i.width=l,i[ce]=s}this.resizePath(r,i)}return r},P.mergePath=w.mergePath,P.resizePath=function(t,e){if(t[d]){var i=t[D](),n=i.calculateTransform(e);t[d](n)}},P.subPixelOptimizeLine=function(t){var e=P.subPixelOptimize,i=t.shape,n=t.style[f];return M(2*i.x1)===M(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),M(2*i.y1)===M(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},P.subPixelOptimizeRect=function(t){var e=P.subPixelOptimize,i=t.shape,n=t.style[f],r=i.x,a=i.y,o=i.width,s=i[ce];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[ce]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},P.subPixelOptimize=function(t,e,i){var n=M(2*t);return(n+M(e))%2===0?n/2:(n+(i?1:-1))/2},P.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&l(t,e)}):l(t,e),t.on(J,c).on(K,p),t.on("emphasis",m).on(v,_)},P.setText=function(t,e,i){var n=e[y](k)||u,r=n[V](u)>=0?"white":i,a=e[me](B);b[ne](t,{textDistance:e[y]("distance")||5,textFont:a[E](),textPosition:n,textFill:a[O]()||r})},P.updateProps=function(t,e,i,n,r){x(!0,t,e,i,n,r)},P.initProps=function(t,e,i,n,r){x(!1,t,e,i,n,r)},P.getTransform=function(t,e){for(var i=C.identity([]);t&&t!==e;)C.mul(i,t.getLocalTransform(),i),t=t.parent;return i},P[d]=function(t,e,i){return i&&(e=C.invert([],e)),A[d]([],t,e)},P.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===ue?r:0];return a=P[d](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?ue:"top"},P.groupTransition=function(t,e,i){function n(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:A.clone(t[k]),rotation:t.rotation};return t.shape&&(e.shape=b[ne]({},t.shape)),e}if(t&&e){var a=n(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=r(t);t.attr(r(e)),P.updateProps(t,n,i,t[$])}}})}},P}),e("zrender/zrender",[Me,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete u[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=t("./dom/HandlerProxy"),l=!n[de],c={canvas:t("./Painter")},u={},h={};h.version="3.1.2",h.init=function(t,e){var n=new f(i(),t,e);return u[n.id]=n,n},h.dispose=function(t){if(t)t.dispose();else{for(var e in u)u[e].dispose();u={}}return h},h.getInstance=function(t){return u[t]},h.registerPainter=function(t,e){c[t]=e};var f=function(t,e,i){i=i||{},this.dom=e,this.id=t;var u=this,h=new a,f=i.renderer;if(l){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 d=new c[f](e,h,i);this[fe]=h,this.painter=d;var p=n.node?null:new s(d.getViewportRoot());this.handler=new r(h,d,p),this[g]=new o({stage:{update:function(){u._needsRefresh&&u.refreshImmediately(),u._needsRefreshHover&&u.refreshHoverImmediately()}}}),this[g].start(),this._needsRefresh;var v=h.delFromMap,m=h.addToMap;h.delFromMap=function(t){var e=h.get(t);v.call(h,t),e&&e.removeSelfFromZr(u)},h.addToMap=function(t){m.call(h,t),t.addSelfToZr(u)}};return f[_e]={constructor:f,getId:function(){return this.id},add:function(t){this[fe].addRoot(t),this._needsRefresh=!0},remove:function(t){this[fe].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},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(){this.painter[ge](),this.handler[ge]()},clearAnimation:function(){this[g].clear()},getWidth:function(){return this.painter[ve]()},getHeight:function(){return this.painter[pe]()},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.trigger(t,e)},clear:function(){this[fe].delRoot(),this.painter.clear()},dispose:function(){this[g].stop(),this.clear(),this[fe].dispose(),this.painter.dispose(),this.handler.dispose(),this[g]=this[fe]=this.painter=this.handler=null,e(this.id)}},h}),e(we,[Me],function(){function t(e){if("object"==typeof e&&null!==e){var i=e;if(e instanceof Array){i=[];for(var n=0,r=e[ee];r>n;n++)i[n]=t(e[n])}else if(!M(e)&&!C(e)){i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=t(e[a]))}return i}return e}function e(i,n,r){if(!b(n)||!b(i))return r?t(n):i;for(var a in n)if(n.hasOwnProperty(a)){var o=i[a],s=n[a];!b(s)||!b(o)||y(s)||y(o)||C(s)||C(o)||M(s)||M(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[ee];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[S]("canvas")}function o(){return k||(k=F.createCanvas()[T]("2d")),k}function s(t,e){if(t){if(t[V])return t[V](e);for(var i=0,n=t[ee];n>i;i++)if(t[i]===e)return i}return-1}function l(t,e){function i(){}var n=t[_e];i[_e]=e[_e],t[_e]=new i;for(var r in n)t[_e][r]=n[r];t[_e].constructor=t,t.superClass=e}function c(t,e,i){t=_e in t?t[_e]:t,e=_e in e?e[_e]:e,r(t,e,i)}function u(t){return t?typeof t==ye?!1:typeof t[ee]==q:void 0}function h(t,e,i){if(t&&e)if(t.forEach&&t.forEach===O)t.forEach(e,i);else if(t[ee]===+t[ee])for(var n=0,r=t[ee];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 f(t,e,i){if(t&&e){if(t.map&&t.map===B)return t.map(e,i);for(var n=[],r=0,a=t[ee];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function d(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===N)return t.reduce(e,i,n);for(var r=0,a=t[ee];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function p(t,e,i){if(t&&e){if(t[H]&&t[H]===E)return t[H](e,i);for(var n=[],r=0,a=t[ee];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[ee];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function m(t,e){var i=R.call(arguments,2);return function(){return t.apply(e,i[w](R.call(arguments)))}}function g(t){var e=R.call(arguments,1);return function(){return t.apply(this,e[w](R.call(arguments)))}}function y(t){return"[object Array]"===I.call(t)}function _(t){return typeof t===W}function x(t){return"[object String]"===I.call(t)}function b(t){var e=typeof t;return e===W||!!t&&"object"==e}function M(t){return!!z[I.call(t)]}function C(t){return t&&1===t.nodeType&&typeof t.nodeName==ye}function A(){for(var t=0,e=arguments[ee];e>t;t++)if(null!=arguments[t])return arguments[t]}function P(){return Function.call.apply(R,arguments)}function L(t,e){if(!t)throw new Error(e)}var k,z={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1},I=Object[_e].toString,D=Array[_e],O=D.forEach,E=D[H],R=D.slice,B=D.map,N=D.reduce,F={inherits:l,mixin:c,clone:t,merge:e,mergeAll:i,extend:n,defaults:r,getContext:o,createCanvas:a,indexOf:s,slice:P,find:v,isArrayLike:u,each:h,map:f,reduce:d,filter:p,bind:m,curry:g,isArray:y,isString:x,isObject:b,isFunction:_,isBuildInObject:M,isDom:C,retrieve:A,assert:L,noop:function(){}};return F}),e("zrender/tool/color",[Me],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[ee]&&"%"===e.charAt(e[ee]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[ee]&&"%"===t.charAt(t[ee]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function o(t,e,i){return t+(e-t)*i}function s(t){if(t){t+="";var e=t[U](/ /g,"")[xe]();if(e in g)return g[e].slice();if("#"!==e.charAt(0)){var i=e[V]("("),a=e[V](")");if(-1!==i&&a+1===e[ee]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),c=1;switch(o){case"rgba":if(4!==s[ee])return;c=r(s.pop());case"rgb":if(3!==s[ee])return;return[n(s[0]),n(s[1]),n(s[2]),c];case"hsla":if(4!==s[ee])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[ee])return;return l(s);default:return}}}else{if(4===e[ee]){var u=parseInt(e.substr(1),16);if(!(u>=0&&4095>=u))return;return[(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1]}if(7===e[ee]){var u=parseInt(e.substr(1),16);if(!(u>=0&&16777215>=u))return;return[(16711680&u)>>16,(65280&u)>>8,255&u,1]}}}}function l(e){var i=(parseFloat(e[0])%360+360)%360/360,n=r(e[1]),o=r(e[2]),s=.5>=o?o*(n+1):o+n-o*n,l=2*o-s,c=[t(255*a(l,s,i+1/3)),t(255*a(l,s,i)),t(255*a(l,s,i-1/3))];return 4===e[ee]&&(c[3]=e[3]),c}function c(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,c=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>c?l/(s+o):l/(2-s-o);var u=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,f=((s-a)/6+l/2)/l;n===s?e=f-h:r===s?e=1/3+u-f:a===s&&(e=2/3+h-u),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,i,c];return null!=t[3]&&d.push(t[3]),d}}function u(t,e){var i=s(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return m(i,4===i[ee]?"rgba":"rgb")}}function h(t){var e=s(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function f(e,i,n){if(i&&i[ee]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[ee]-1),a=Math.floor(r),s=Math.ceil(r),l=i[a],c=i[s],u=r-a;return n[0]=t(o(l[0],c[0],u)),n[1]=t(o(l[1],c[1],u)),n[2]=t(o(l[2],c[2],u)),n[3]=t(o(l[3],c[3],u)),n}}function d(e,n,r){if(n&&n[ee]&&e>=0&&1>=e){var a=e*(n[ee]-1),l=Math.floor(a),c=Math.ceil(a),u=s(n[l]),h=s(n[c]),f=a-l,d=m([t(o(u[0],h[0],f)),t(o(u[1],h[1],f)),t(o(u[2],h[2],f)),i(o(u[3],h[3],f))],"rgba");return r?{color:d,leftIndex:l,rightIndex:c,value:a}:d}}function p(t,i,n,a){return t=s(t),t?(t=c(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),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:u,toHex:h,fastMapToColor:f,mapToColor:d,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 c=n-s;switch(c){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(;c>0;)t[s+c]=t[s+c-1],c--}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 c=o;o=r-l,l=r-c}for(o++;l>o;){var u=o+(l-o>>>1);a(t,e[i+u])>0?o=u+1:l=u}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 c=o;o=r-l,l=r-c}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 u=o+(l-o>>>1);a(t,e[i+u])<0?l=u:o=u+1}return l}function o(t,e){function i(t,e){f[y]=t,d[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&d[t-1]<=d[t]+d[t+1]||t>=2&&d[t-2]<=d[t]+d[t-1])d[t-1]<d[t+1]&&t--;else if(d[t]>d[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&d[t-1]<d[t+1]&&t--,s(t)}}function s(i){var n=f[i],o=d[i],s=f[i+1],c=d[i+1];d[i]=o+c,i===y-3&&(f[i+1]=f[i+2],d[i+1]=d[i+2]),y--;var u=a(t[s],t,n,o,0,e);n+=u,o-=u,0!==o&&(c=r(t[n+o-1],t,s,c,c-1,e),0!==c&&(c>=o?l(n,o,s,c):h(n,o,s,c)))}function l(i,n,o,s){var l=0;for(l=0;n>l;l++)_[l]=t[i+l];var u=0,h=o,f=i;if(t[f++]=t[h++],0!==--s){if(1===n){for(l=0;s>l;l++)t[f+l]=t[h+l];return void(t[f+s]=_[u])}for(var d,v,m,g=p;;){d=0,v=0,m=!1;do if(e(t[h],_[u])<0){if(t[f++]=t[h++],v++,d=0,0===--s){m=!0;break}}else if(t[f++]=_[u++],d++,v=0,1===--n){m=!0;break}while(g>(d|v));if(m)break;do{if(d=a(t[h],_,u,n,0,e),0!==d){for(l=0;d>l;l++)t[f+l]=_[u+l];if(f+=d,u+=d,n-=d,1>=n){m=!0;break}}if(t[f++]=t[h++],0===--s){m=!0;break}if(v=r(_[u],t,h,s,0,e),0!==v){for(l=0;v>l;l++)t[f+l]=t[h+l];if(f+=v,h+=v,s-=v,0===s){m=!0;break}}if(t[f++]=_[u++],1===--n){m=!0;break}g--}while(d>=c||v>=c);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[f+l]=t[h+l];t[f+s]=_[u]}else{if(0===n)throw new Error;for(l=0;n>l;l++)t[f+l]=_[u+l]}}else for(l=0;n>l;l++)t[f+l]=_[u+l]}function h(i,n,o,s){var l=0;for(l=0;s>l;l++)_[l]=t[o+l];var u=i+n-1,h=s-1,f=o+s-1,d=0,v=0;if(t[f--]=t[u--],0!==--n){if(1===s){for(f-=n,u-=n,v=f+1,d=u+1,l=n-1;l>=0;l--)t[v+l]=t[d+l];return void(t[f]=_[h])}for(var m=p;;){var g=0,y=0,x=!1;do if(e(_[h],t[u])<0){if(t[f--]=t[u--],g++,y=0,0===--n){x=!0;break}}else if(t[f--]=_[h--],y++,g=0,1===--s){x=!0;break}while(m>(g|y));if(x)break;do{if(g=n-a(_[h],t,i,n,n-1,e),0!==g){for(f-=g,u-=g,n-=g,v=f+1,d=u+1,l=g-1;l>=0;l--)t[v+l]=t[d+l];if(0===n){x=!0;break}}if(t[f--]=_[h--],1===--s){x=!0;break}if(y=s-r(t[u],_,0,s,s-1,e),0!==y){for(f-=y,h-=y,s-=y,v=f+1,d=h+1,l=0;y>l;l++)t[v+l]=_[d+l];if(1>=s){x=!0;break}}if(t[f--]=t[u--],0===--n){x=!0;break}m--}while(g>=c||y>=c);if(x)break;0>m&&(m=0),m+=2}if(p=m,1>p&&(p=1),1===s){for(f-=n,u-=n,v=f+1,d=u+1,l=n-1;l>=0;l--)t[v+l]=t[d+l];t[f]=_[h]}else{if(0===s)throw new Error;for(d=f-(s-1),l=0;s>l;l++)t[d+l]=_[l]}}else for(d=f-(s-1),l=0;s>l;l++)t[d+l]=_[l]}var f,d,p=c,v=0,m=u,g=0,y=0;v=t[ee],2*u>v&&(m=v>>>1);var _=[];g=120>v?5:1542>v?10:119151>v?19:40,f=[],d=[],this.mergeRuns=n,this.forceMergeRuns=o,this.pushRun=i}function s(i,r,a,s){a||(a=0),s||(s=i[ee]);var c=s-a;if(!(2>c)){var u=0;if(l>c)return u=e(i,a,s,r),void n(i,a,s,a+u,r);var h=new o(i,r),f=t(c);do{if(u=e(i,a,s,r),f>u){var d=c;d>f&&(d=f),n(i,a,a+d,a+u,r),u=d}h.pushRun(a,u),h.mergeRuns(),c-=u,a+=u}while(0!==c);h.forceMergeRuns()}}var l=32,c=7,u=256;return s}),e("zrender/mixin/Eventful",[Me],function(){var t=Array[_e].slice,e=function(){this._$handlers={}};return e[_e]={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][ee];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][ee];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][ee]},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][ee];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][ee]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,n=i[ee];n>3&&(i=t.call(i,1));for(var r=this._$handlers[e],a=r[ee],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[te](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var i=arguments,n=i[ee];n>4&&(i=t.call(i,1,i[ee]-1));for(var r=i[i[ee]-1],a=this._$handlers[e],o=a[ee],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[te](s,1),o--):s++}}return this}},e}),e("echarts/visual/seriesColor",[Me,"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[oe](),a=i.get(n)||i.getColorFromPalette(i.get("name"));r.setVisual("color",a),t.isSeriesFiltered(i)||(typeof a!==W||a instanceof e||r.each(function(t){r.setItemVisual(t,"color",a(i.getDataParams(t)))}),r.each(function(t){var e=r[c](t),i=e.get(n,!0);null!=i&&r.setItemVisual(t,"color",i)}))}t.eachRawSeries(i)}}),e("echarts/data/List",[Me,"../model/Model","./DataDiffer",we,"../util/model"],function(t){function e(t){return f[Z](t)||(t=[t]),t}function i(t,e){var i=t[l],n=new M(f.map(i,t.getDimensionInfo,t),t.hostModel);y(n,t);for(var r=n._storage={},a=t._storage,o=0;o<i[ee];o++){var s=i[o],c=a[s];r[s]=f[V](e,s)>=0?new c.constructor(a[s][ee]):a[s]}return n}var n=C,r=typeof window===C?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},u=t("../model/Model"),h=t("./DataDiffer"),f=t(we),d=t("../util/model"),v=f[ae],g=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],y=function(t,e){f.each(g[w](e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},M=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[ee];r++){var a,o={};typeof t[r]===ye?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||q),n.push(a),i[a]=o}this[l]=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},S=M[_e];S.type="list",S.hasItemOption=!0,S.getDimension=function(t){return isNaN(t)||(t=this[l][t]||t),t},S.getDimensionInfo=function(t){return f.clone(this._dimensionInfos[this.getDimension(t)])},S.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[l],o=t[ee],c=this._dimensionInfos,u=[],h={};e=e||[];for(var f=0;f<a[ee];f++){var p=c[a[f]],v=s[p.type];n[a[f]]=new v(o)}var m=this;i||(m.hasItemOption=!1),i=i||function(t,e,i,n){var r=d.getDataItemValue(t);return d.isDataItemOption(t)&&(m.hasItemOption=!0),d.converDataValue(r instanceof Array?r[n]:r,c[e])};for(var g=0;g<t[ee];g++){for(var y=t[g],_=0;_<a[ee];_++){var x=a[_],b=n[x];b[g]=i(y,x,g,_)}r.push(g)}for(var f=0;f<t[ee];f++){e[f]||t[f]&&null!=t[f].name&&(e[f]=t[f].name);var w=e[f]||"",M=t[f]&&t[f].id;!M&&w&&(h[w]=h[w]||0,M=w,h[w]>0&&(M+="__ec__"+h[w]),h[w]++),M&&(u[f]=M)}this._nameList=e,this._idList=u},S.count=function(){return this.indices[ee]},S.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},S.getValues=function(t,e,i){var n=[];f[Z](t)||(i=e,e=t,t=this[l]);for(var r=0,a=t[ee];a>r;r++)n.push(this.get(t[r],e,i));return n},S.hasValue=function(t){for(var e=this[l],i=this._dimensionInfos,n=0,r=e[ee];r>n;n++)if(i[e[n]].type!==b&&isNaN(this.get(e[n],t)))return!1;return!0},S.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,c=this.count();c>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+!!e]=[o,s]}return[1/0,-1/0]},S.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},S[V]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[ee];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},S.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[ee];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},S.indexOfRawIndex=function(t){for(var e=this.indices,i=0,n=e[ee]-1;n>=i;){var r=(i+n)/2|0;if(e[r]<t)i=r+1;else{if(!(e[r]>t))return r;n=r-1}}return-1},S.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,c=this.count();c>l;l++){var u=e-this.get(t,l,i),h=Math.abs(u);n>=u&&(s>h||h===s&&u>0)&&(s=h,o=l)}return o},S.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},S.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},S[x]=function(t){return this._nameList[this.indices[t]]||""},S.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},S.each=function(t,i,n,r){typeof t===W&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);
|
|
var a=[],o=t[ee],s=this.indices;r=r||this;for(var l=0;l<s[ee];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 c=0;o>c;c++)a[c]=this.get(t[c],l,n);a[c]=l,i.apply(r,a)}},S.filterSelf=function(t,i,n,r){typeof t===W&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=[],s=t[ee],l=this.indices;r=r||this;for(var c=0;c<l[ee];c++){var u;if(1===s)u=i.call(r,this.get(t[0],c,n),c);else{for(var h=0;s>h;h++)o[h]=this.get(t[h],c,n);o[h]=c,u=i.apply(r,o)}u&&a.push(l[c])}return this.indices=a,this._extent={},this},S.mapArray=function(t,e,i,n){typeof t===W&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},S.map=function(t,n,r,a){t=f.map(e(t),this.getDimension,this);var o=i(this,t),s=o.indices=this.indices,l=o._storage,c=[];return this.each(t,function(){var e=arguments[arguments[ee]-1],i=n&&n.apply(this,arguments);if(null!=i){typeof i===q&&(c[0]=i,i=c);for(var r=0;r<i[ee];r++){var a=t[r],o=l[a],u=s[e];o&&(o[u]=i[r])}}},r,a),o},S.downSample=function(t,e,n,r){for(var a=i(this,[t]),o=this._storage,s=a._storage,l=this.indices,c=a.indices=[],u=[],h=[],f=Math.floor(1/e),d=s[t],p=this.count(),v=0;v<o[t][ee];v++)s[t][v]=o[t][v];for(var v=0;p>v;v+=f){f>p-v&&(f=p-v,u[ee]=f);for(var m=0;f>m;m++){var g=l[v+m];u[m]=d[g],h[m]=g}var y=n(u),g=h[r(u,y)||0];d[g]=y,c.push(g)}return a},S[c]=function(t){var e=this.hostModel;return t=this.indices[t],new u(this._rawData[t],e,e&&e[m])},S.diff=function(t){var e=this._idList,i=t&&t._idList;return new h(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},S.getVisual=function(t){var e=this._visual;return e&&e[t]},S.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},S.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},S.getLayout=function(t){return this._layout[t]},S.getItemLayout=function(t){return this._itemLayouts[t]},S.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?f[ne](this._itemLayouts[t]||{},e):e},S.clearItemLayouts=function(){this._itemLayouts[ee]=0},S[_]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},S.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},S.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var T=function(t){t[Y]=this[Y],t[$]=this[$],t.dataType=this.dataType};return S.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[$]=t,e.dataType=this.dataType,e[Y]=i&&i[Y],"group"===e.type&&e.traverse(T,e)),this._graphicEls[t]=e},S[p]=function(t){return this._graphicEls[t]},S.eachItemGraphicEl=function(t,e){f.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},S.cloneShallow=function(){var t=f.map(this[l],this.getDimensionInfo,this),e=new M(t,this.hostModel);return e._storage=this._storage,y(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=f[ne]({},this._extent)),e},S.wrapMethod=function(t,e){var i=this[t];typeof i===W&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t][w](f.slice(arguments)))})},S.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],S.CHANGABLE_METHODS=["filterSelf"],M}),e("echarts/loading/default",[Me,"../util/graphic",we],function(t){var e=t("../util/graphic"),i=t(we),n=Math.PI;return function(t,r){r=r||{},i[ie](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[X],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[X],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[X],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[ge]=function(){var e=t[ve]()/2,i=t[pe]()/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[ve](),height:t[pe]()})},l[ge](),l}}),e("echarts/preprocessor/backwardCompat",[Me,we,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[ee]&&(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[ee]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){c(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(we),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",ue]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],l=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],c=r.each;return function(t){c(t.series,function(t){if(r[ae](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var c=0;c<l[ee];c++)if(l[c]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),c(s,function(e){var i=t[e];i&&(r[Z](i)||(i=[i]),c(i,function(t){n(t)}))})}}),e("echarts/model/Model",[Me,we,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e,this[m]=i,this[M]=t}var i=t(we),n=t("../util/clazz");e[_e]={constructor:e,init:null,mergeOption:function(t){i.merge(this[M],t,!0)},get:function(t,e){if(!t)return this[M];typeof t===ye&&(t=t.split("."));for(var i=this[M],n=this.parentModel,r=0;r<t[ee]&&(!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[M],n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[y](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[me](t),this[m]);return a},isEmpty:function(){return null==this[M]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[M]))},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/util/number",[Me],function(){function t(t){return t[U](/^\s+/,"")[U](/\s+$/,"")}var e={},i=1e-4;return e.linearMap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]},e.parsePercent=function(e,i){switch(e){case z:case I:e="50%";break;case"left":case"top":e="0%";break;case"right":case ue:e="100%"}return typeof e===ye?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t){return+(+t).toFixed(10)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);return Math.max(-r+a,0)},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-i&&i>t},e.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===ye?new Date(t[U](/-/g,"/"))-new Date("1970/01/01"):Math.round(t))},e.quantity=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},e.nice=function(t,i){var n,r=e.quantity(t),a=t/r;return n=i?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,n*r},e}),e("echarts/util/format",[Me,we,"./number","zrender/contain/text"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][U](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[ee]>1?"."+t[1]:""))}function i(t){return t[xe]()[U](/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[ee];return typeof t===q?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function r(t){return String(t)[U](/&/g,"&")[U](/</g,"<")[U](/>/g,">")[U](/"/g,""")[U](/'/g,"'")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){c[Z](e)||(e=[e]);var i=e[ee];if(!i)return"";for(var n=e[0].$vars||[],r=0;r<n[ee];r++){var o=f[r];t=t[U](a(o),a(o,0))}for(var s=0;i>s;s++)for(var l=0;l<n[ee];l++)t=t[U](a(f[l],s),e[s][n[l]]);return t}function s(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=u.parseDate(e),n=i.getFullYear(),r=i.getMonth()+1,a=i.getDate(),o=i.getHours(),s=i.getMinutes(),c=i.getSeconds();return t=t[U]("MM",l(r))[xe]()[U]("yyyy",n)[U]("yy",n%100)[U]("dd",l(a))[U]("d",a)[U]("hh",l(o))[U]("h",o)[U]("mm",l(s))[U]("m",s)[U]("ss",l(c))[U]("s",c)}function l(t){return 10>t?"0"+t:t}var c=t(we),u=t("./number"),h=t("zrender/contain/text"),f=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o,formatTime:s,truncateText:h.truncateText}}),e(be,[],function(){var t=typeof Float32Array===C?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[ee]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===C?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],c=Math.sin(i),u=Math.cos(i);return t[0]=n*u+o*c,t[1]=-n*c+o*u,t[2]=r*u+s*c,t[3]=-r*c+u*s,t[4]=u*a+c*l,t[5]=u*l-c*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e("echarts/coord/cartesian/Grid",[Me,"exports","../../util/layout","../../coord/axisHelper",we,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e,i){return i.getComponent("grid",t.get("gridIndex"))===e}function i(t){var e,i=t.model,n=i.getFormattedLabels(),r=1,a=n[ee];a>40&&(r=Math.ceil(a/40));for(var o=0;a>o;o+=r)if(!t.isLabelIgnored(o)){var s=i.getTextRect(n[o]);e?e.union(s):e=s}return e}function n(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function r(t,e){var i=t[A](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var a=t("../../util/layout"),o=t("../../coord/axisHelper"),c=t(we),u=t("./Cartesian2D"),h=t("./Axis2D"),f=c.each,d=o.ifAxisCrossZero,p=o.niceScaleExtent;t("./GridModel");var v=n[_e];return v.type="grid",v.getRect=function(){return this._rect},v[se]=function(t,e){function i(t){var e=n[t];for(var i in e){var r=e[i];if(r&&(r.type===s||!d(r)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this._model),f(n.x,function(t){p(t,t.model)}),f(n.y,function(t){p(t,t.model)}),f(n.x,function(t){i("y")&&(t.onZero=!1)}),f(n.y,function(t){i("x")&&(t.onZero=!1)}),this[ge](this._model,e)},v[ge]=function(t,e){function n(){f(s,function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o[ce]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),r(t,e?o.x:o.y)})}var o=a.getLayoutRect(t.getBoxLayoutParams(),{width:e[ve](),height:e[pe]()});this._rect=o;var s=this._axesList;n(),t.get("containLabel")&&(f(s,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?ce:"width",r=t.model.get("axisLabel.margin");o[n]-=e[n]+r,"top"===t[k]?o.y+=e[ce]+r:"left"===t[k]&&(o.x+=e.width+r)}}}),n())},v.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)return i[n];return i[e]}},v.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}for(var n=0,r=this._coordsList;n<r[ee];n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},v._initCartesian=function(t,i){function n(n){return function(c,u){if(e(c,t,i)){var f=c.get(k);"x"===n?"top"!==f&&f!==ue&&(f=ue,r[f]&&(f="top"===f?ue:"top")):"left"!==f&&"right"!==f&&(f="left",r[f]&&(f="left"===f?"right":"left")),r[f]=!0;var d=new h(n,o.createScaleByModel(c),[0,0],c.get("type"),f),p=d.type===s;d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),d.onZero=c.get("axisLine.onZero"),c.axis=d,d.model=c,d.grid=this,d.index=u,this._axesList.push(d),a[n][u]=d,l[n]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},l={x:0,y:0};return i.eachComponent("xAxis",n("x"),this),i.eachComponent("yAxis",n("y"),this),l.x&&l.y?(this._axesMap=a,void f(a.x,function(t,e){f(a.y,function(i,n){var r="x"+e+"y"+n,a=new u(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},v._updateScale=function(t,i){function n(t,e,i){f(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==b))})}c.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(r){if("cartesian2d"===r.get(N)){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t.getComponent("xAxis",a),l=t.getComponent("yAxis",o);if(!e(s,i,t)||!e(l,i,t))return;var c=this.getCartesian(a,o),u=r[oe](),h=c.getAxis("x"),f=c.getAxis("y");"list"===u.type&&(n(u,h,r),n(u,f,r))}},this)},n[le]=function(t,e){var i=[];return t.eachComponent("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o[ge](r,e),r[N]=o,i.push(o)}),t.eachSeries(function(e){if("cartesian2d"===e.get(N)){var n=e.get("xAxisIndex"),r=e.get("yAxisIndex"),a=t.getComponent("xAxis",n),o=i[a.get("gridIndex")];e[N]=o.getCartesian(n,r)}}),i},n[l]=u[_e][l],t("../../CoordinateSystem").register("cartesian2d",n),n}),e("echarts/chart/bar/BarSeries",[Me,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),i=t("../helper/createListFromArray");return e[ne]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},getMarkerPosition:function(t){var e=this[N];if(e){var i=e.dataToPoint(t,!0),n=this[oe](),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,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,itemStyle:{normal:{},emphasis:{}}}})}),e("echarts/chart/bar/BarView",[Me,we,o,"../../model/Model","./barItemStyle","../../echarts"],function(t){function e(t,e){var i=t.width>0?1:-1,n=t[ce]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[ce])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[ce]-=n*e}var i=t(we),n=t(o);return i[ne](t("../../model/Model")[_e],t("./barItemStyle")),t("../../echarts").extendChartView({type:"bar",render:function(t,e,i){var n=t.get(N);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(t){function r(r,a){var s=o.getItemLayout(r),l=o[c](r).get(d)||0;e(s,l);var u=new n.Rect({shape:i[ne]({},s)});if(f){var p=u.shape,v=h?ce:"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[oe](),s=this._data,l=t[N],u=l.getBaseAxis(),h=u.isHorizontal(),f=t.get(g),d=["itemStyle",v,"barBorderWidth"];o.diff(s).add(function(t){if(o.hasValue(t)){var e=r(t);o.setItemGraphicEl(t,e),a.add(e)}})[se](function(i,l){var u=s[p](l);if(!o.hasValue(i))return void a[re](u);u||(u=r(i,!0));var h=o.getItemLayout(i),f=o[c](i).get(d)||0;e(h,f),n.updateProps(u,{shape:h},t,i),o.setItemGraphicEl(i,u),a.add(u)})[re](function(e){var i=s[p](e);i&&(i.style.text="",n.updateProps(i,{shape:{width:0}},t,e,function(){a[re](i)}))}).execute(),this._updateStyle(t,o,h),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[c](s),u=e[_](s,"color"),h=e[_](s,L),f=e.getItemLayout(s),d=l[me]("itemStyle.normal"),p=l[me]("itemStyle.emphasis").getBarItemStyle();o.setShape("r",d.get("barBorderRadius")||0),o.useStyle(i[ie]({fill:u,opacity:h},d.getBarItemStyle()));var m=r?f[ce]>0?ue:"top":f.width>0?"left":"right",g=l[me]("label.normal"),y=l[me]("label.emphasis"),x=o.style;g.get("show")?a(x,g,u,i.retrieve(t.getFormattedLabel(s,v),t.getRawValue(s)),m):x.text="",y.get("show")?a(p,y,u,i.retrieve(t.getFormattedLabel(s,"emphasis"),t.getRawValue(s)),m):p.text="",n.setHoverStyle(o,p)})},remove:function(t){var e=this.group;t.get(g)?this._data&&this._data.eachItemGraphicEl(function(i){i.style.text="",n.updateProps(i,{shape:{width:0}},t,i[$],function(){e[re](i)})}):e[F]()}})}),e("echarts/layout/barGrid",[Me,we,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[Y]}function i(t){return t.dim+t.index}function n(t){var n={};a.each(t,function(t){var r=t[oe](),a=t[N],o=a.getBaseAxis(),c=o[A](),u=o.type===s?o.getBandWidth():Math.abs(c[1]-c[0])/r.count(),h=n[i(o)]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;n[i(o)]=h;var d=e(t);f[d]||h.autoWidthCount++,f[d]=f[d]||{width:0,maxWidth:0};var p=l(t.get("barWidth"),u),v=l(t.get("barMaxWidth"),u),m=t.get("barGap"),g=t.get("barCategoryGap");p&&!f[d].width&&(p=Math.min(h.remainedWidth,p),f[d].width=p,h.remainedWidth-=p),v&&(f[d].maxWidth=v),null!=m&&(h.gap=m),null!=g&&(h.categoryGap=g)});var r={};return a.each(n,function(t,e){r[e]={};var i=t.stacks,n=t.bandWidth,o=l(t.categoryGap,n),s=l(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,h=(c-o)/(u+(u-1)*s);h=Math.max(h,0),a.each(i,function(t){var e=t.maxWidth;!t.width&&e&&h>e&&(e=Math.min(e,c),c-=e,t.width=e,u--)}),h=(c-o)/(u+(u-1)*s),h=Math.max(h,0);var f,d=0;a.each(i,function(t){t.width||(t.width=h),f=t,d+=t.width*(1+s)}),f&&(d-=f.width*s);var p=-d/2;a.each(i,function(t,i){r[e][i]=r[e][i]||{offset:p,width:t.width},p+=t.width*(1+s)})}),r}function r(t,r){var o=n(a[H](r.getSeriesByType(t),function(t){return!r.isSeriesFiltered(t)&&t[N]&&"cartesian2d"===t[N].type})),s={};r.eachSeriesByType(t,function(t){var n=t[oe](),r=t[N],a=r.getBaseAxis(),l=e(t),c=o[i(a)][l],u=c.offset,h=c.width,f=r.getOtherAxis(a),d=t.get("barMinHeight")||0,p=a.onZero?f.toGlobalCoord(f.dataToCoord(0)):f.getGlobalExtent()[0],v=r.dataToPoints(n,!0);s[l]=s[l]||[],n.setLayout({offset:u,size:h}),n.each(f.dim,function(t,e){if(!isNaN(t)){s[l][e]||(s[l][e]={p:p,n:p});var i,r,a,o,c=t>=0?"p":"n",m=v[e],g=s[l][e][c];f.isHorizontal()?(i=g,r=m[1]+u,a=m[0]-g,o=h,Math.abs(a)<d&&(a=(0>a?-1:1)*d),s[l][e][c]+=a):(i=m[0]+u,r=g,a=h,o=m[1]-g,Math.abs(o)<d&&(o=(0>=o?-1:1)*d),s[l][e][c]+=o),n.setItemLayout(e,{x:i,y:r,width:a,height:o})}},!0)},this)}var a=t(we),o=t("../util/number"),l=o.parsePercent;return r}),e("echarts/chart/line/LineSeries",[Me,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[ne]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})}),e("echarts/chart/line/LineView",[Me,we,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",o,"./poly","../../view/Chart"],function(t){function e(t,e){if(t[ee]===e[ee]){for(var i=0;i<t[ee];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===q?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 s(t,e){var i=t.getBaseAxis(),n=t.getOtherAxis(i),o=i.onZero?0:n.scale[A]()[0],s=n.dim,l="x"===s||s===a?1:0;return e.mapArray([s],function(n,a){for(var c,u=e.stackedOn;u&&r(u.get(s,a))===r(n);){c=u;break}var h=[];return h[l]=e.get(i.dim,a),h[1-l]=c?c.get(s,a,!0):o,t.dataToPoint(h)},!0)}function c(t,e){return null!=e[$]?e[$]:null!=e.name?t.indexOfName(e.name):void 0}function u(t,e,i){var r=n(t.getAxis("x")),a=n(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),l=Math.min(a[0],a[1]),c=Math.max(r[0],r[1])-s,u=Math.max(a[0],a[1])-l,h=i.get("lineStyle.normal.width")||2,f=i.get("clipOverflow")?h/2:Math.max(c,u);o?(l-=f,u+=2*f):(s-=f,c+=2*f);var d=new S.Rect({shape:{x:s,y:l,width:c,height:u}});return e&&(d.shape[o?"width":ce]=0,S.initProps(d,{shape:{width:c,height:u}},i)),d}function h(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[A](),o=n[A](),s=Math.PI/180,l=new S.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,S.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function f(t,e,i){return"polar"===t.type?h(t,e,i):u(t,e,i)}function d(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||n.dim===a?0:1,o=[],s=0;s<t[ee]-1;s++){var l=t[s+1],c=t[s];o.push(c);var u=[];switch(i){case"end":u[r]=l[r],u[1-r]=c[1-r],o.push(u);break;case I:var h=(c[r]+l[r])/2,f=[];u[r]=f[r]=h,u[1-r]=c[1-r],f[1-r]=l[1-r],o.push(u),o.push(f);break;default:u[r]=c[r],u[1-r]=l[1-r],o.push(u)}}return t[s]&&o.push(t[s]),o}function v(t,e){return Math.max(Math.min(t,e[1]),e[0])}function m(t,e){var i=t.getVisual("visualMeta");if(i&&i[ee]){for(var n,r=i[ee]-1;r>=0;r--)if(i[r].dimension<2){n=i[r];break}if(n&&"cartesian2d"===e.type){var a=n.dimension,o=t[l][a],s=t.getDataExtent(o),c=n.stops,u=[];c[0].interval&&c.sort(function(t,e){return t.interval[0]-e.interval[0]});var h=c[0],f=c[c[ee]-1],d=h.interval?v(h.interval[0],s):h.value,p=f.interval?v(f.interval[1],s):f.value,m=p-d;if(0===m)return t[_](0,"color");for(var r=0;r<c[ee];r++)if(c[r].interval){if(c[r].interval[1]===c[r].interval[0])continue;u.push({offset:(v(c[r].interval[0],s)-d)/m,color:c[r].color},{offset:(v(c[r].interval[1],s)-d)/m,color:c[r].color})}else u.push({offset:(c[r].value-d)/m,color:c[r].color});var g=new S.LinearGradient(0,0,0,0,u,!0),y=e.getAxis(o),x=Math.round(y.toGlobalCoord(y.dataToCoord(d))),b=Math.round(y.toGlobalCoord(y.dataToCoord(p)));return g[o]=x,g[o+"2"]=b,g}}}var y=t(we),x=t("../helper/SymbolDraw"),w=t("../helper/Symbol"),M=t("./lineAnimationDiff"),S=t(o),T=t("./poly"),C=t("../../view/Chart");return C[ne]({type:"line",init:function(){var t=new S.Group,e=new x;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var a=t[N],o=this.group,l=t[oe](),c=t[me]("lineStyle.normal"),u=t[me]("areaStyle.normal"),h=l.mapArray(l.getItemLayout,!0),p="polar"===a.type,v=this._coordSys,_=this._symbolDraw,x=this._polyline,b=this._polygon,w=this._lineGroup,M=t.get(g),S=!u.isEmpty(),T=s(a,l),C=t.get("showSymbol"),A=C&&!p&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,a),P=this._data;P&&P.eachItemGraphicEl(function(t,e){t.__temp&&(o[re](t),P.setItemGraphicEl(e,null))}),C||_[re](),o.add(w);var L=!p&&t.get("step");x&&v.type===a.type&&L===this._step?(S&&!b?b=this._newPolygon(h,T,a,M):b&&!S&&(w[re](b),b=this._polygon=null),w.setClipPath(f(a,!1,t)),C&&_.updateData(l,A),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,T)&&e(this._points,h)||(M?this._updateAnimation(l,T,a,r,L):(x.setShape({points:h}),b&&b.setShape({points:h,stackedOnPoints:T})))):(C&&_.updateData(l,A),L&&(h=d(h,a,L),T=d(T,a,L)),x=this._newPolyline(h,a,M),S&&(b=this._newPolygon(h,T,a,M)),w.setClipPath(f(a,!0,t)));var k=m(l,a)||l.getVisual("color");x.useStyle(y[ie](c.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"}));var z=t.get("smooth");if(z=i(t.get("smooth")),x.setShape({smooth:z,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),b){var I=l.stackedOn,D=0;if(b.useStyle(y[ie](u.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel"})),I){var O=I.hostModel;D=i(O.get("smooth"))}b.setShape({smooth:z,stackedOnSmooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=h,this._step=L},highlight:function(t,e,i,n){var r=t[oe](),a=c(r,n);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r[p](a);if(!o){var s=r.getItemLayout(a);o=new w(r,a),o[k]=s,o.setZ(t.get(X),t.get("z")),o[he]=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else C[_e].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[oe](),a=c(r,n);if(null!=a&&a>=0){var o=r[p](a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group[re](o)):o.downplay())}else C[_e].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup[re](e),e=new T.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[re](i),i=new T.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(b)[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=M(this._data,t,this._stackedOnPoints,e,this._coordSys,i),c=l.current,u=l.stackedOnCurrent,h=l.next,f=l.stackedOnNext;r&&(c=d(l.current,i,r),u=d(l.stackedOnCurrent,i,r),h=d(l.next,i,r),f=d(l.stackedOnNext,i,r)),a.shape.__points=l.current,a.shape.points=c,S.updateProps(a,{shape:{points:h}},s),o&&(o.setShape({points:c,stackedOnPoints:u}),S.updateProps(o,{shape:{points:h,stackedOnPoints:f,__points:l.next}},s));for(var v=[],m=l.status,g=0;g<m[ee];g++){var y=m[g].cmd;if("="===y){var _=t[p](m[g].idx1);_&&v.push({el:_,ptIdx:g})}}a.animators&&a.animators[ee]&&a.animators[0].during(function(){for(var t=0;t<v[ee];t++){var e=v[t].el;e.attr(k,a.shape.__points[v[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup[F](),this._symbolDraw[re](!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t[re](i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/visual/symbol",[Me],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[oe](),a=t.get("symbol")||e,o=t.get("symbolSize");r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===W&&r.each(function(e){var i=t.getRawValue(e),n=t.getDataParams(e);r.setItemVisual(e,"symbolSize",o(i,n))}),r.each(function(t){var e=r[c](t),i=e[y]("symbol",!0),n=e[y]("symbolSize",!0);null!=i&&r.setItemVisual(t,"symbol",i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}}),e("echarts/layout/points",[Me],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[oe](),i=t[N];if(i){var n=i[l];"singleAxis"===i.type?e.each(n[0],function(t,n){e.setItemLayout(n,isNaN(t)?[0/0,0/0]:i.dataToPoint(t))}):e.each(n,function(t,n,r){e.setItemLayout(r,isNaN(t)||isNaN(n)?[0/0,0/0]:i.dataToPoint([t,n]))},!0)}})}}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,i=0,n=0;n<t[ee];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[ee];i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t[ee];i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t[ee];i++)t[i]<e&&(e=t[i]);return e},nearest:function(t){return t[0]}},e=function(t){return Math.round(t[ee]/2)};return function(i,n){n.eachSeriesByType(i,function(i){var n=i[oe](),r=i.get("sampling"),a=i[N];if("cartesian2d"===a.type&&r){var o=a.getBaseAxis(),s=a.getOtherAxis(o),l=o[A](),c=l[1]-l[0],u=Math.round(n.count()/c);if(u>1){var h;typeof r===ye?h=t[r]:typeof r===W&&(h=r),h&&(n=n.downSample(s.dim,1/u,h,e),i.setData(n))}}},this)}}),e("echarts/chart/pie/PieSeries",[Me,"../../data/List",we,"../../util/model","../../data/helper/completeDimensions","../../component/helper/selectableMixin","../../echarts"],function(t){var e=t("../../data/List"),i=t(we),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[M].data)},getInitialData:function(t){var i=r(["value"],t.data),n=new e(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this._data,i=o.superCall(this,"getDataParams",t),n=e.getSum("value");return i.percent=n?+(e.get("value",t)/n*100).toFixed(2):0,i.$vars.push("percent"),i},_defaultLabelLine:function(t){n.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[v],i=t.labelLine.emphasis;e.show=e.show&&t.label[v].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",[Me,o,we,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[oe](),o=this[$],s=a[x](o),l=e.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a[p](t),a.getItemLayout(t),e.isSelected(a[x](t)),l,n)})}function i(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,c=[o*l,s*l];r?t.animate().when(200,{position:c}).start("bounceOut"):t.attr(k,c)}function n(t,e){function i(){o[he]=o.hoverIgnore,s[he]=s.hoverIgnore}function n(){o[he]=o.normalIgnore,s[he]=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(v,n).on(J,i).on(K,n)}function r(t,e,i,n,r){var a=n[me](B),o=r===u||"inner"===r;return{fill:a[O]()||(o?"#fff":t[_](e,"color")),opacity:t[_](e,L),textFont:a[E](),text:s.retrieve(t.hostModel.getFormattedLabel(e,i),t[x](e))}}var a=t(o),s=t(we),l=n[_e];l.updateData=function(t,e,n){function r(){l.stopAnimation(!0),l.animateTo({shape:{r:f.r+10}},300,"elasticOut")}function o(){l.stopAnimation(!0),l.animateTo({shape:{r:f.r}},300,"elasticOut")}var l=this.childAt(0),u=t.hostModel,h=t[c](e),f=t.getItemLayout(e),d=s[ne]({},f);d.label=null,n?(l.setShape(d),l.shape.endAngle=f.startAngle,a.updateProps(l,{shape:{endAngle:f.endAngle}},u,e)):a.updateProps(l,{shape:d},u,e);var p=h[me]("itemStyle"),m=t[_](e,"color");l.useStyle(s[ie]({lineJoin:"bevel",fill:m},p[me](v).getItemStyle())),l.hoverStyle=p[me]("emphasis").getItemStyle(),i(this,t.getItemLayout(e),h.get("selected"),u.get("selectedOffset"),u.get(g)),l.off(J).off(K).off("emphasis").off(v),h.get("hoverAnimation")&&u.ifEnableAnimation()&&l.on(J,r).on(K,o).on("emphasis",r).on(v,o),this._updateLabel(t,e),a.setHoverStyle(this)},l._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),o=t.hostModel,s=t[c](e),l=t.getItemLayout(e),u=l.label,h=t[_](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[R],textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var f=s[me]("label.normal"),d=s[me]("label.emphasis"),p=s[me]("labelLine.normal"),m=s[me]("labelLine.emphasis"),g=f.get(k)||d.get(k);n[j](r(t,e,v,f,g)),n[he]=n.normalIgnore=!f.get("show"),n.hoverIgnore=!d.get("show"),i[he]=i.normalIgnore=!p.get("show"),i.hoverIgnore=!m.get("show"),i[j]({stroke:h,opacity:t[_](e,L)}),i[j](p[me]("lineStyle").getLineStyle()),n.hoverStyle=r(t,e,"emphasis",d,g),i.hoverStyle=m[me]("lineStyle").getLineStyle();var y=p.get("smooth");y&&y===!0&&(y=.4),i.setShape({smooth:y})},s[G](n,a.Group);var h=t("../../view/Chart")[ne]({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 o=t[oe](),l=this._data,c=this.group,u=i.get(g),h=!l,f=s.curry(e,this.uid,t,u,r),d=t.get("selectedMode");if(o.diff(l).add(function(t){var e=new n(o,t);h&&e.eachChild(function(t){t.stopAnimation(!0)}),d&&e.on("click",f),o.setItemGraphicEl(t,e),c.add(e)})[se](function(t,e){var i=l[p](e);i.updateData(o,t),i.off("click"),d&&i.on("click",f),c.add(i),o.setItemGraphicEl(t,i)})[re](function(t){var e=l[p](t);c[re](e)}).execute(),u&&h&&o.count()>0){var v=o.getItemLayout(0),m=Math.max(r[ve](),r[pe]())/2,y=s.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(v.cx,v.cy,m,v.startAngle,v.clockwise,y,t))}this._data=o}},_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}});return h}),e("echarts/action/createDataSelectAction",[Me,"../echarts",we],function(t){var e=t("../echarts"),i=t(we);return function(t,n){i.each(n,function(i){i[se]="updateView",e.registerAction(i,function(e,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[oe]();n.each(function(e){var i=n[x](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[Me],function(){return function(t,e){var i={};e.eachRawSeriesByType(t,function(t){var n=t.getRawData(),r={};if(!e.isSeriesFiltered(t)){var a=t[oe]();a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),n.each(function(e){var o=n[c](e),s=r[e],l=a[_](s,"color",!0);if(l)n.setItemVisual(e,"color",l);else{var u=o.get("itemStyle.normal.color")||t.getColorFromPalette(n[x](e),i);n.setItemVisual(e,"color",u),a.setItemVisual(s,"color",u)}})}})}}),e("echarts/chart/pie/pieLayout",[Me,"../../util/number","./labelLayout",we],function(t){var e=t("../../util/number"),i=e.parsePercent,n=t("./labelLayout"),r=t(we),o=2*Math.PI,s=Math.PI/180;return function(t,l,c){l.eachSeriesByType(t,function(t){var l=t.get(z),u=t.get(a);r[Z](u)||(u=[0,u]),r[Z](l)||(l=[l,l]);var h=c[ve](),f=c[pe](),d=Math.min(h,f),p=i(l[0],h),v=i(l[1],f),m=i(u[0],d/2),g=i(u[1],d/2),y=t[oe](),_=-t.get("startAngle")*s,x=t.get("minAngle")*s,b=y.getSum("value"),w=Math.PI/(b||y.count())*2,M=t.get("clockwise"),S=t.get("roseType"),T=y.getDataExtent("value");T[0]=0;var C=o,A=0,P=_,L=M?1:-1;if(y.each("value",function(t,i){var n;n="area"!==S?0===b?w:t*w:o/(y.count()||1),x>n?(n=x,C-=x):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:S?e.linearMap(t,T,[m,g]):g}),P=r},!0),o>C)if(.001>=C){var k=o/y.count();y.each(function(t){var e=y.getItemLayout(t);e.startAngle=_+L*t*k,e.endAngle=_+L*(t+1)*k})}else w=C/A,P=_,y.each("value",function(t,e){var i=y.getItemLayout(e),n=i.angle===x?x:t*w;i.startAngle=P,i.endAngle=P+L*n,P+=n});n(t,g,h,f)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e.findComponents({mainType:"legend"});i&&i[ee]&&e.eachSeriesByType(t,function(t){var e=t[oe]();e.filterSelf(function(t){for(var n=e[x](t),r=0;r<i[ee];r++)if(!i[r].isSelected(n))return!1;return!0},this)},this)}}),e("echarts/component/axis",[Me,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/util/layout",[Me,we,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,c){var u,h,f=l[k],d=l[D](),p=e.childAt(c+1),v=p&&p[D]();if("horizontal"===t){var m=d.width+(v?-v.x+d.x:0);u=a+m,u>n||l.newline?(a=0,u=m,o+=s+i,s=d[ce]):s=Math.max(s,d[ce])}else{var g=d[ce]+(v?-v.y+d.y:0);h=o+g,h>r||l.newline?(a+=s+i,o=0,h=g,s=d.width):s=Math.max(s,d.width)}l.newline||(f[0]=a,f[1]=o,"horizontal"===t?a=u+i:o=h+i)})}var i=t(we),n=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r.parsePercent,s=i.each,l={},c=["left","right","top",ue,"width",ce];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[ce],s=o(t.x,n),l=o(t.y,r),c=o(t.x2,n),u=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(c)||isNaN(parseFloat(t.x2)))&&(c=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(u)||isNaN(parseFloat(t.y2)))&&(u=r),i=a.normalizeCssArray(i||0),{width:Math.max(c-s-i[1]-i[3],0),height:Math.max(u-l-i[0]-i[2],0)}},l.getLayoutRect=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[ce],l=o(t.left,r),c=o(t.top,s),u=o(t.right,r),h=o(t[ue],s),f=o(t.width,r),d=o(t[ce],s),p=i[2]+i[0],v=i[1]+i[3],m=t.aspect;switch(isNaN(f)&&(f=r-u-v-l),isNaN(d)&&(d=s-h-p-c),isNaN(f)&&isNaN(d)&&(m>r/s?f=.8*r:d=.8*s),null!=m&&(isNaN(f)&&(f=m*d),isNaN(d)&&(d=f/m)),isNaN(l)&&(l=r-u-f-v),isNaN(c)&&(c=s-h-d-p),t.left||t.right){case z:l=r/2-f/2-i[3];break;case"right":l=r-f-v}switch(t.top||t[ue]){case I:case z:c=s/2-d/2-i[0];break;case ue:c=s-d-p}l=l||0,c=c||0,isNaN(f)&&(f=r-l-(u||0)),isNaN(d)&&(d=s-c-(h||0));var g=new n(l+i[3],c+i[0],f,d);return g.margin=i,g},l.positionGroup=function(t,e,n,r){var a=t[D]();e=i[ne](i.clone(e),{width:a.width,height:a[ce]}),e=l.getLayoutRect(e,n,r),t.attr(k,[e.x-a.x,e.y-a.y])},l.mergeLayoutParam=function(t,e,n){function r(i){var r={},l=0,c={},u=0,h=n.ignoreSize?1:2;if(s(i,function(e){c[e]=t[e]}),s(i,function(t){a(e,t)&&(r[t]=c[t]=e[t]),o(r,t)&&l++,o(c,t)&&u++}),u!==h&&l){if(l>=h)return r;for(var f=0;f<i[ee];f++){var d=i[f];if(!a(r,d)&&a(t,d)){r[d]=t[d];break}}return r}return c}function a(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,i){s(t,function(t){e[t]=i[t]})}!i[ae](n)&&(n={});var c=["width","left","right"],u=[ce,"top",ue],h=r(c),f=r(u);l(c,t,h),l(u,t,f)},l.getLayoutParams=function(t){return l.copyLayoutParams({},t)},l.copyLayoutParams=function(t,e){return e&&t&&s(c,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t},l}),e("echarts/component/legend/LegendModel",[Me,we,"../../model/Model","../../echarts"],function(t){var e=t(we),i=t("../../model/Model"),n=t("../../echarts").extendComponentModel({type:"legend",dependencies:["series"],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[ee];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===ye||typeof t===q)&&(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[w](e.mapArray(e[x]))}}),this._availableNames=r},getData:function(){return this._data},select:function(t){var i=this[M].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[M].selected[t]=!1)},toggleSelected:function(t){var e=this[M].selected;t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[M].selected;return!(t in i&&!i[t])&&e[V](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",[Me,"../../echarts",we],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[oe]();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(we);i.registerAction("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i.registerAction("legendSelect","legendselected",n.curry(e,"select")),i.registerAction("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/legend/LegendView",[Me,we,"../../util/symbol",o,"../helper/listComponent","../../echarts"],function(t){function e(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function i(t,e,i){var n=i.getZr()[fe].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()[fe].getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var r=t(we),a=t("../../util/symbol"),s=t(o),l=t("../helper/listComponent"),c=r.curry;return t("../../echarts").extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,o){var u=this.group;if(u[F](),t.get("show")){var h=t.get("selectedMode"),f=t.get("align");"auto"===f&&(f="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var d={};r.each(t[oe](),function(r){var l=r.get("name");if(""===l||"\n"===l)return void u.add(new s.Group({newline:!0}));var p=a.getSeriesByName(l)[0];if(!d[l])if(p){var v=p[oe](),m=v.getVisual("color");typeof m===W&&(m=m(p.getDataParams(0)));var g=v.getVisual("legendSymbol")||"roundRect",y=v.getVisual("symbol"),x=this._createItem(l,r,t,g,y,f,m,h);x.on("click",c(e,l,o)).on(J,c(i,p,"",o)).on(K,c(n,p,"",o)),d[l]=!0}else a.eachRawSeries(function(a){if(!d[l]&&a.legendDataProvider){var s=a.legendDataProvider(),u=s.indexOfName(l);if(0>u)return;var p=s[_](u,"color"),v="roundRect",m=this._createItem(l,r,t,v,null,f,p,h);m.on("click",c(e,l,o)).on(J,c(i,a,l,o)).on(K,c(n,a,l,o)),d[l]=!0}},this)},this),l.layout(u,t,o),l.addBackground(u,t)}},_createItem:function(t,e,i,n,o,l,c,u){var h=i.get("itemWidth"),f=i.get("itemHeight"),d=i.get("inactiveColor"),p=i.isSelected(t),v=new s.Group,m=e[me](B),g=e.get("icon"),y=e[me]("tooltip");if(n=g||n,v.add(a.createSymbol(n,0,0,h,f,p?c:d)),!g&&o&&(o!==n||"none"==o)){var _=.8*f;"none"===o&&(o="circle"),v.add(a.createSymbol(o,(h-_)/2,(f-_)/2,_,_,p?c:d))}var x="left"===l?h+5:-5,b=l,w=i.get("formatter"),S=t;typeof w===ye&&w?S=w[U]("{name}",t):typeof w===W&&(S=w(t));var T=new s.Text({style:{text:S,x:x,y:f/2,fill:p?m[O]():d,textFont:m[E](),textAlign:b,textVerticalAlign:"middle"}});v.add(T);var C=new s.Rect({shape:v[D](),invisible:!0,tooltip:y.get("show")?r[ne]({content:t,formatter:function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},y[M]):null});return v.add(C),v.eachChild(function(t){t.silent=!0}),C.silent=!u,this.group.add(v),s.setHoverStyle(v),v}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[ee]&&t.filterSeries(function(t){for(var i=0;i<e[ee];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/component/tooltip/TooltipModel",[Me,"../../echarts"],function(t){t("../../echarts").extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})}),e("echarts/component/tooltip/TooltipView",[Me,"./TooltipContent",o,we,"../../util/format","../../util/number","zrender/core/env","../../model/Model","../../echarts"],function(t){function e(t,e){if(!t||!e)return!1;var i=C.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function i(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function f(t,e,i,n){return{x:t,y:e,width:i,height:n}}function v(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function g(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 y(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,c=e[ce];switch(t){case u:o=e.x+l/2-n/2,s=e.y+c/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case ue:o=e.x+l/2-n/2,s=e.y+c+a;break;case"left":o=e.x-n-a,s=e.y+c/2-r/2;break;case"right":o=e.x+l+a,s=e.y+c/2-r/2}return[o,s]}function _(t,e,i,a,o,s,l){var c=l[ve](),u=l[pe](),h=s&&s[D]().clone();if(s&&h[d](s[r]),typeof t===W&&(t=t([e,i],o,a.el,h)),S[Z](t))e=P(t[0],c),i=P(t[1],u);else if(typeof t===ye&&s){var f=y(t,h,a.el);e=f[0],i=f[1]}else{var f=g(e,i,a.el,c,u);e=f[0],i=f[1]}a[n](e,i)}function b(t){var e=t[N],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"singleAxis"!==e.type||"item"===i)}var w=t("./TooltipContent"),M=t(o),S=t(we),T=t("../../util/format"),C=t("../../util/number"),P=C.parsePercent,L=t("zrender/core/env"),z=t("../../model/Model");t("../../echarts").extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!L.node){var i=new w(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,i){if(!L.node){this.group[F](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[se](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;if(r&&this.group.add(r),null!=this._lastX&&null!=this._lastY){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){a._manuallyShowTip({x:a._lastX,y:a._lastY})})}var o=this._api.getZr();o.off("click",this._tryShow),o.off("mousemove",this._mousemove),o.off(K,this._hide),o.off("globalout",this._hide),"click"===t.get("triggerOn")?o.on("click",this._tryShow,this):(o.on("mousemove",this._mousemove,this),o.on(K,this._hide,this),o.on("globalout",this._hide,this))}},_mousemove:function(t){var e=this._tooltipModel.get("showDelay"),i=this;clearTimeout(this._showTimeout),e>0?this._showTimeout=setTimeout(function(){i._tryShow(t)},e):this._tryShow(t)},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,i=t[Y],n=t[$],a=e.getSeriesByIndex(i),o=this._api;if(null==t.x||null==t.y){if(a||e.eachSeries(function(t){b(t)&&!a&&(a=t)}),a){var s=a[oe]();null==n&&(n=s.indexOfName(t.name));var c,u,h=s[p](n),f=a[N];if(f&&f.dataToPoint){var v=f.dataToPoint(s.getValues(S.map(f[l],function(t){return a.coordDimToDataDim(t)[0]}),n,!0));c=v&&v[0],u=v&&v[1]}else if(h){var m=h[D]().clone();m[d](h[r]),c=m.x+m.width/2,u=m.y+m[ce]/2}null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,target:h,event:{}})}}else{var h=o.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,target:h,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var i={};return e.eachSeries(function(t){if(b(t)){var e,n,r=t[N];"cartesian2d"===r.type?(e=r.getBaseAxis(),n=e.dim+e.index):"singleAxis"===r.type?(e=r.getAxis(),n=e.dim+e.type):(e=r.getBaseAxis(),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n].series.push(t)}},this),i},_tryShow:function(t){var e=t[Q],i=this._tooltipModel,n=i.get("trigger"),r=this._ecModel,a=this._api;if(i)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e[$]){var o=e.dataModel||r.getSeriesByIndex(e[Y]),s=e[$],l=o[oe]()[c](s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,e.dataType,t)),a.dispatchAction({type:"showTip",from:this.uid,dataIndex:e[$],seriesIndex:e[Y]})}else if(e&&e.tooltip){var u=e.tooltip;if(typeof u===ye){var h=u;u={content:h,formatter:h}}var f=new z(u,i),d=f.get("content"),p=Math.random();this._showTooltipContent(f,d,f.get("formatterParams")||{},p,t.offsetX,t.offsetY,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[me]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[Q];if(o&&null!=o[$]){var s=i.getSeriesByIndex(o[Y]),c=o[$];this._showItemTooltipContent(s,c,o.dataType,n)}}this._showAxisPointer();var u=!0;S.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,o=i[0],s=[n.offsetX,n.offsetY];if(!o.containPoint(s))return void this._hideAxisPointer(o.name);u=!1;var c=o[l],h=o.pointToData(s,!0);s=o.dataToPoint(h);var f=o.getBaseAxis(),d=r.get("axis");"auto"===d&&(d=f.dim);var p=!1,v=this._lastHover;if("cross"===a)e(v.data,h)&&(p=!0),v.data=h;else{var m=S[V](c,d);v.data===h[m]&&(p=!0),v.data=h[m]}"cartesian2d"!==o.type||p?"polar"!==o.type||p?"singleAxis"!==o.type||p||this._showSinglePointer(r,o,d,s):this._showPolarPointer(r,o,d,s):this._showCartesianPointer(r,o,d,s),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(o,t.series,s,h,p)},this),this._tooltipModel.get("show")||this._hideAxisPointer(),u&&this._hide()},_showCartesianPointer:function(t,e,n,r){function a(n,r,a){var o="x"===n?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),s=l._getPointerElement(e,t,n,o);M.subPixelOptimizeLine({shape:o,style:s.style}),h?M.updateProps(s,{shape:o},t):s.attr({shape:o})}function o(i,n,r){var a=e.getAxis(i),o=a.getBandWidth(),s=r[1]-r[0],c="x"===i?f(n[0]-o/2,r[0],o,s):f(r[0],n[1]-o/2,s,o),u=l._getPointerElement(e,t,i,c);h?M.updateProps(u,{shape:c},t):u.attr({shape:c})}var l=this,c=t.get("type"),u=e.getBaseAxis(),h="cross"!==c&&u.type===s&&u.getBandWidth()>20;if("cross"===c)a("x",r,e.getAxis("y").getGlobalExtent()),a("y",r,e.getAxis("x").getGlobalExtent()),this._updateCrossText(e,r,t);else{var d=e.getAxis("x"===n?"y":"x"),p=d.getGlobalExtent();"cartesian2d"===e.type&&("line"===c?a:o)(n,r,p)}},_showSinglePointer:function(t,e,n,r){function a(n,r,a){var s=e.getAxis(),l=s.orient,u="horizontal"===l?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),h=o._getPointerElement(e,t,n,u);c?M.updateProps(h,{shape:u},t):h.attr({shape:u})}var o=this,l=t.get("type"),c="cross"!==l&&e.getBaseAxis().type===s,u=e.getRect(),h=[u.y,u.y+u[ce]];a(n,r,h)},_showPolarPointer:function(t,e,n,r){function o(n,r,a){var o,s=e.pointToCoord(r);if("angle"===n){var l=e.coordToPoint([a[0],s[1]]),u=e.coordToPoint([a[1],s[1]]);o=i(l[0],l[1],u[0],u[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var h=c._getPointerElement(e,t,n,o);d?M.updateProps(h,{shape:o},t):h.attr({shape:o})}function l(i,n,r){var a,o=e.getAxis(i),s=o.getBandWidth(),l=e.pointToCoord(n),u=Math.PI/180;a="angle"===i?v(e.cx,e.cy,r[0],r[1],(-l[1]-s/2)*u,(-l[1]+s/2)*u):v(e.cx,e.cy,l[0]-s/2,l[0]+s/2,0,2*Math.PI);var h=c._getPointerElement(e,t,i,a);d?M.updateProps(h,{shape:a},t):h.attr({shape:a})}var c=this,u=t.get("type"),h=e.getAngleAxis(),f=e.getRadiusAxis(),d="cross"!==u&&e.getBaseAxis().type===s;if("cross"===u)o("angle",r,f[A]()),o(a,r,h[A]()),this._updateCrossText(e,r,t);else{var p=e.getAxis(n===a?"angle":a),m=p[A]();("line"===u?o:l)(n,r,m)}},_updateCrossText:function(t,e,i){var n=i[me]("crossStyle"),r=n[me](B),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new M.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(o));var c=t.pointToData(e),u=t[l];c=S.map(c,function(e,i){var n=t.getAxis(u[i]);return e=n.type===s||"time"===n.type?n.scale.getLabel(e):T.addCommas(e.toFixed(n.getPixelPrecision()))}),o[j]({fill:r[O]()||n.get("color"),textFont:r[E](),text:c.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o[X]=a.get(X)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,o=r.get("z"),s=r.get(X),l=this._axisPointers,c=t.name;if(l[c]=l[c]||{},l[c][i])return l[c][i];var u=e.get("type"),f=e[me](u+"Style"),d="shadow"===u,p=f[d?"getAreaStyle":"getLineStyle"](),v="polar"===t.type?d?"Sector":i===a?"Circle":"Line":d?"Rect":"Line";d?p[h]=null:p.fill=null;var m=l[c][i]=new M[v]({style:p,z:o,zlevel:s,silent:!0,shape:n});return this.group.add(m),m},_dispatchAndShowSeriesTooltipContent:function(t,e,i,n,r){var o=this._tooltipModel,l=t.getBaseAxis(),c="x"===l.dim||l.dim===a?0:1,u=S.map(e,function(t){return{seriesIndex:t[Y],dataIndex:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(l.dim),n,l):t[oe]().indexOfNearest(t.coordDimToDataDim(l.dim)[0],n[c],!1,l.type===s?.5:null)}}),h=this._lastHover,f=this._api;if(h.payloadBatch&&!r&&f.dispatchAction({type:"downplay",batch:h.payloadBatch}),r||(f.dispatchAction({type:"highlight",batch:u}),h.payloadBatch=u),f.dispatchAction({type:"showTip",dataIndex:u[0][$],seriesIndex:u[0][Y],from:this.uid}),l&&o.get("showContent")&&o.get("show")){var d=S.map(e,function(t,e){return t.getDataParams(u[e][$])});if(r)_(o.get(k),i[0],i[1],this._tooltipContent,d,null,f);else{var p=u[0][$],v="time"===l.type?l.scale.getLabel(n[c]):e[0][oe]()[x](p),m=(v?v+"<br />":"")+S.map(e,function(t,e){return t.formatTooltip(u[e][$],!0)}).join("<br />"),g="axis_"+t.name+"_"+p;this._showTooltipContent(o,m,d,g,i[0],i[1],null,f)}}},_showItemTooltipContent:function(t,e,i,n){var r=this._api,a=t[oe](i),o=a[c](e),s=o.get("tooltip",!0);if(typeof s===ye){var l=s;s={formatter:l}}var u=this._tooltipModel,h=t[me]("tooltip",u),f=new z(s,h,h[m]),d=t.getDataParams(e,i),p=t.formatTooltip(e,!1,i),v="item_"+t.name+"_"+e;this._showTooltipContent(f,p,d,v,n.offsetX,n.offsetY,n[Q],r)},_showTooltipContent:function(t,e,i,n,r,a,o,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,c=t.get("formatter"),u=t.get(k),h=e;if(c)if(typeof c===ye)h=T.formatTpl(c,i);else if(typeof c===W){var f=this,d=n,p=function(t,e){t===f._ticket&&(l.setContent(e),_(u,r,a,l,i,o,s))};f._ticket=d,h=c(i,d,p)}l.show(t),l.setContent(h),_(u,r,a,l,i,o,s)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&S.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&&S.each(e,function(t){t.hide()})}else this.group.children()[ee]&&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(!L.node){var i=e.getZr();this._tooltipContent.hide(),i.off("click",this._tryShow),i.off("mousemove",this._mousemove),i.off(K,this._hide),i.off("globalout",this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}}})}),e("zrender/vml/graphic",[Me,"../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")[de]){var e=t("../core/vector"),i=t("../core/BoundingRect"),n=t("../core/PathProxy").CMD,a=t("../tool/color"),o=t("../contain/text"),s=t("../graphic/mixin/RectText"),l=t("../graphic/Displayable"),c=t("../graphic/Image"),u=t("../graphic/Text"),p=t("../graphic/Path"),m=t("../graphic/Gradient"),g=t("./core"),y=Math.round,_=Math.sqrt,x=Math.abs,b=Math.cos,w=Math.sin,M=Math.max,T=e[d],C=",",A="progid:DXImageTransform.Microsoft",P=21600,k=P/2,O=1e5,E=1e3,B=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=P+","+P,t.coordorigin="0,0"},N=function(t){return String(t)[U](/&/g,"&")[U](/"/g,""")},F=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},G=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},V=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},q=function(t,e,i){return(parseFloat(t)||0)*O+(parseFloat(e)||0)*E+i},W=function(t,e){return typeof t===ye?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},Z=function(t,e,i){var n=a.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=F(n[0],n[1],n[2]),t[L]=i*n[3])},j=function(t){var e=a.parse(t);return[F(e[0],e[1],e[2]),e[3]]},Y=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof m){var a,o=0,s=[0,0],l=0,c=1,u=i[D](),h=u.width,f=u[ce];if("linear"===n.type){a="gradient";var d=i[r],p=[n.x*h,n.y*f],v=[n.x2*h,n.y2*f];d&&(T(p,p,d),T(v,v,d));var g=v[0]-p[0],y=v[1]-p[1];o=180*Math.atan2(g,y)/Math.PI,0>o&&(o+=360),1e-6>o&&(o=0)}else{a="gradientradial";var p=[n.x*h,n.y*f],d=i[r],_=i.scale,x=h,b=f;s=[(p[0]-u.x)/x,(p[1]-u.y)/b],d&&T(p,p,d),x/=_[0]*P,b/=_[1]*P;var w=M(x,b);l=0/w,c=2*n.r/w-l}var S=n.colorStops.slice();S.sort(function(t,e){return t.offset-e.offset});for(var C=S[ee],A=[],k=[],z=0;C>z;z++){var I=S[z],O=j(I.color);k.push(I.offset*c+l+" "+O[0]),(0===z||z===C-1)&&A.push(O)}if(C>=2){var E=A[0][0],R=A[1][0],B=A[0][1]*e[L],N=A[1][1]*e[L];t.type=a,t.method="none",t.focus="100%",t.angle=o,t.color=E,t.color2=R,t.colors=k.join(","),t[L]=N,t.opacity2=B}"radial"===a&&(t.focusposition=s.join(","))}else Z(t,n,e[L])},$=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[h]||e[h]instanceof m||Z(t,e[h],e[L])},Q=function(t,e,i,n){var r="fill"==e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i[f])?(t[r?"filled":"stroked"]="true",i[e]instanceof m&&V(t,a),a||(a=g.createNode(e)),r?Y(a,i,n):$(a,i),G(t,a)):(t[r?"filled":"stroked"]="false",V(t,a))},K=[[],[],[]],J=function(t,e){var i,r,a,o,s,l,c=n.M,u=n.C,h=n.L,f=n.A,d=n.Q,p=[];for(o=0;o<t[ee];){switch(a=t[o++],r="",i=0,a){case c:r=" m ",i=1,s=t[o++],l=t[o++],K[0][0]=s,K[0][1]=l;break;case h:r=" l ",i=1,s=t[o++],l=t[o++],K[0][0]=s,K[0][1]=l;break;case d:case u:r=" c ",i=3;var v,m,g=t[o++],x=t[o++],M=t[o++],S=t[o++];a===d?(v=M,m=S,M=(M+2*g)/3,S=(S+2*x)/3,g=(s+2*g)/3,x=(l+2*x)/3):(v=t[o++],m=t[o++]),K[0][0]=g,K[0][1]=x,K[1][0]=M,K[1][1]=S,K[2][0]=v,K[2][1]=m,s=v,l=m;break;case f:var A=0,L=0,z=1,I=1,D=0;e&&(A=e[4],L=e[5],z=_(e[0]*e[0]+e[1]*e[1]),I=_(e[2]*e[2]+e[3]*e[3]),D=Math.atan2(-e[1]/I,e[0]/z));var O=t[o++],E=t[o++],R=t[o++],B=t[o++],N=t[o++]+D,F=t[o++]+N+D;o++;var G=t[o++],V=O+b(N)*R,H=E+w(N)*B,g=O+b(F)*R,x=E+w(F)*B,q=G?" wa ":" at ";Math.abs(V-g)<1e-10&&(Math.abs(F-N)>.01?G&&(V+=270/P):Math.abs(H-E)<1e-10?G&&O>V||!G&&V>O?x-=270/P:x+=270/P:G&&E>H||!G&&H>E?g+=270/P:g-=270/P),p.push(q,y(((O-R)*z+A)*P-k),C,y(((E-B)*I+L)*P-k),C,y(((O+R)*z+A)*P-k),C,y(((E+B)*I+L)*P-k),C,y((V*z+A)*P-k),C,y((H*I+L)*P-k),C,y((g*z+A)*P-k),C,y((x*I+L)*P-k)),s=g,l=x;break;case n.R:var W=K[0],Z=K[1];W[0]=t[o++],W[1]=t[o++],Z[0]=W[0]+t[o++],Z[1]=W[1]+t[o++],e&&(T(W,W,e),T(Z,Z,e)),W[0]=y(W[0]*P-k),Z[0]=y(Z[0]*P-k),W[1]=y(W[1]*P-k),Z[1]=y(Z[1]*P-k),p.push(" m ",W[0],C,W[1]," l ",Z[0],C,W[1]," l ",Z[0],C,Z[1]," l ",W[0],C,Z[1]);break;case n.Z:p.push(" x ")}if(i>0){p.push(r);for(var U=0;i>U;U++){var X=K[U];e&&T(X,X,e),p.push(y(X[0]*P-k),C,y(X[1]*P-k),i-1>U?C:"")}}}return p.join("")};p[_e].brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=g.createNode("shape"),B(i),this._vmlEl=i),Q(i,"fill",e,this),Q(i,h,e,this);var n=this[r],a=null!=n,o=i.getElementsByTagName(h)[0];if(o){var s=e[f];if(a&&!e.strokeNoScale){var l=n[0]*n[3]-n[1]*n[2];s*=_(x(l))}o.weight=s+"px"}var c=this.path;this.__dirtyPath&&(c.beginPath(),this.buildPath(c,this.shape),c.toStatic(),this.__dirtyPath=!1),i.path=J(c.data,this[r]),i.style.zIndex=q(this[X],this.z,this.z2),G(t,i),e.text?this.drawRectText(t,this[D]()):this.removeRectText(t)},p[_e].onRemove=function(t){V(t,this._vmlEl),this.removeRectText(t)},p[_e].onAdd=function(t){G(t,this._vmlEl),this.appendRectText(t)};var te=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};c[_e].brushVML=function(t){var e,i,n=this.style,a=n.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,c=s[ce];s.width="auto",s[ce]="auto",e=a.width,i=a[ce],s.width=l,s[ce]=c,this._imageSrc=o,this._imageWidth=e,this._imageHeight=i}a=o}else a===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(a){var u=n.x||0,h=n.y||0,f=n.width,d=n[ce],p=n.sWidth,v=n.sHeight,m=n.sx||0,x=n.sy||0,b=p&&v,w=this._vmlEl;w||(w=g.doc[S]("div"),B(w),this._vmlEl=w);var P,k=w.style,z=!1,I=1,O=1;if(this[r]&&(P=this[r],I=_(P[0]*P[0]+P[1]*P[1]),O=_(P[2]*P[2]+P[3]*P[3]),z=P[1]||P[2]),z){var E=[u,h],R=[u+f,h],N=[u,h+d],F=[u+f,h+d];T(E,E,P),T(R,R,P),T(N,N,P),T(F,F,P);var V=M(E[0],R[0],N[0],F[0]),W=M(E[1],R[1],N[1],F[1]),Z=[];Z.push("M11=",P[0]/I,C,"M12=",P[2]/O,C,"M21=",P[1]/I,C,"M22=",P[3]/O,C,"Dx=",y(u*I+P[4]),C,"Dy=",y(h*O+P[5])),k.padding="0 "+y(V)+"px "+y(W)+"px 0",k[H]=A+".Matrix("+Z.join("")+", SizingMethod=clip)"
|
|
}else P&&(u=u*I+P[4],h=h*O+P[5]),k[H]="",k.left=y(u)+"px",k.top=y(h)+"px";var U=this._imageEl,j=this._cropEl;U||(U=g.doc[S]("div"),this._imageEl=U);var Y=U.style;if(b){if(e&&i)Y.width=y(I*e*f/p)+"px",Y[ce]=y(O*i*d/v)+"px";else{var $=new Image,Q=this;$.onload=function(){$.onload=null,e=$.width,i=$[ce],Y.width=y(I*e*f/p)+"px",Y[ce]=y(O*i*d/v)+"px",Q._imageWidth=e,Q._imageHeight=i,Q._imageSrc=a},$.src=a}j||(j=g.doc[S]("div"),j.style.overflow="hidden",this._cropEl=j);var K=j.style;K.width=y((f+m*f/p)*I),K[ce]=y((d+x*d/v)*O),K[H]=A+".Matrix(Dx="+-m*f/p*I+",Dy="+-x*d/v*O+")",j.parentNode||w.appendChild(j),U.parentNode!=j&&j.appendChild(U)}else Y.width=y(I*f)+"px",Y[ce]=y(O*d)+"px",w.appendChild(U),j&&j.parentNode&&(w.removeChild(j),this._cropEl=null);var J="",ee=n[L];1>ee&&(J+=".Alpha(opacity="+y(100*ee)+") "),J+=A+".AlphaImageLoader(src="+a+", SizingMethod=scale)",Y[H]=J,w.style.zIndex=q(this[X],this.z,this.z2),G(t,w),n.text&&this.drawRectText(t,this[D]())}},c[_e].onRemove=function(t){V(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},c[_e].onAdd=function(t){G(t,this._vmlEl),this.appendRectText(t)};var ie,ne=v,re={},ae=0,oe=100,se=document[S]("div"),le=function(t){var e=re[t];if(!e){ae>oe&&(ae=0,re={});var i,n=se.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||ne,variant:n.fontVariant||ne,weight:n.fontWeight||ne,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},re[t]=e,ae++}return e};o.measureText=function(t,e){var i=g.doc;ie||(ie=i[S]("div"),ie.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",g.doc.body.appendChild(ie));try{ie.style.font=e}catch(n){}return ie.innerHTML="",ie.appendChild(i.createTextNode(t)),{width:ie.offsetWidth}};for(var he=new i,fe=function(t,e,i,n){var a=this.style,s=a.text;if(s){var l,c,u=a[R],f=le(a.textFont),p=f.style+" "+f.variant+" "+f.weight+" "+f.size+'px "'+f.family+'"',v=a.textBaseline,m=a.textVerticalAlign;i=i||o[D](s,p,u,v);var _=this[r];if(_&&!n&&(he.copy(e),he[d](_),e=he),n)l=e.x,c=e.y;else{var x=a.textPosition,b=a.textDistance;if(x instanceof Array)l=e.x+W(x[0],e.width),c=e.y+W(x[1],e[ce]),u=u||"left",v=v||"top";else{var w=o.adjustTextPositionOnRect(x,e,i,b);l=w.x,c=w.y,u=u||w[R],v=v||w.textBaseline}}if(m){switch(m){case I:c-=i[ce]/2;break;case ue:c-=i[ce]}v="top"}var M=f.size;switch(v){case"hanging":case"top":c+=M/1.75;break;case I:break;default:c-=M/2.25}switch(u){case"left":break;case z:l-=i.width/2;break;case"right":l-=i.width}var S,A,P,k=g.createNode,O=this._textVmlEl;O?(P=O.firstChild,S=P.nextSibling,A=S.nextSibling):(O=k("line"),S=k("path"),A=k("textpath"),P=k("skew"),A.style["v-text-align"]="left",B(O),S.textpathok=!0,A.on=!0,O.from="0 0",O.to="1000 0.05",G(O,P),G(O,S),G(O,A),this._textVmlEl=O);var E=[l,c],F=O.style;_&&n?(T(E,E,_),P.on=!0,P.matrix=_[0].toFixed(3)+C+_[2].toFixed(3)+C+_[1].toFixed(3)+C+_[3].toFixed(3)+",0,0",P.offset=(y(E[0])||0)+","+(y(E[1])||0),P.origin="0 0",F.left="0px",F.top="0px"):(P.on=!1,F.left=y(l)+"px",F.top=y(c)+"px"),A[ye]=N(s);try{A.style.font=p}catch(V){}Q(O,"fill",{fill:n?a.fill:a.textFill,opacity:a[L]},this),Q(O,h,{stroke:n?a[h]:a.textStroke,opacity:a[L],lineDash:a.lineDash},this),O.style.zIndex=q(this[X],this.z,this.z2),G(t,O)}},pe=function(t){V(t,this._textVmlEl),this._textVmlEl=null},ve=function(t){G(t,this._textVmlEl)},me=[s,l,c,p,u],ge=0;ge<me[ee];ge++){var xe=me[ge][_e];xe.drawRectText=fe,xe.removeRectText=pe,xe.appendRectText=ve}u[_e].brushVML=function(t){var e=this.style;e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this[D](),!0):this.removeRectText(t)},u[_e].onRemove=function(t){this.removeRectText(t)},u[_e].onAdd=function(t){this.appendRectText(t)}}}),e("zrender/vml/Painter",[Me,"../core/log","./core"],function(t){function e(t){return parseInt(t,10)}function n(t,e){o.initVML(),this.root=t,this[fe]=e;var i=document[S]("div"),n=document[S]("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[ge]();var r=e.delFromMap,a=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),a.call(e,t)},this._firstPaint=!0}function r(t){return function(){a('In IE8.0 VML mode painter not support method "'+t+'"')}}var a=t("../core/log"),o=t("./core");n[_e]={constructor:n,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this[fe].getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,n=0;n<t[ee];n++){var r=t[n];r.invisible||r[he]?(r.__alreadyNotVisible||r.onRemove(e),r.__alreadyNotVisible=!0):(r.__alreadyNotVisible&&r.onAdd(e),r.__alreadyNotVisible=!1,r[i]&&(r.beforeBrush&&r.beforeBrush(),(r.brushVML||r.brush).call(r,e),r.afterBrush&&r.afterBrush())),r[i]=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(){var t=this._getWidth(),e=this._getHeight();if(this._width!=t&&this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i[ce]=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this[fe]=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){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[ce]))-e(i.paddingTop)-e(i.paddingBottom)|0}};for(var s=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],l=0;l<s[ee];l++){var c=s[l];n[_e][c]=r(c)}return n}),e("echarts/scale/Interval",[Me,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=n[ne]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o[_e].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[ee]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[ee];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 o=e.nice(n/t,!0),s=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=s}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0];n?o[0]-=s/2:(o[1]+=s/2,o[0]-=s/2)}else o[1]=1;var l=o[1]-o[0];isFinite(l)||(o[0]=0,o[1]=1),this.niceTicks(t);var c=this._interval;i||(o[0]=e.round(r(o[0]/c)*c)),n||(o[1]=e.round(a(o[1]/c)*c))}});return o[le]=function(){return new o},o}),e("echarts/scale/Scale",[Me,"../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[_e];return n.parse=function(t){return t},n[P]=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[A]=function(){return this._extent.slice()},n.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;i<e[ee];i++)t.push(this.getLabel(e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/model",[Me,"./format","./number","../model/Model",we],function(t){var e=t("./format"),i=t("./number"),n=t("../model/Model"),r=t(we),o=["x","y","z",a,"angle"],s={};return s.createNameEach=function(t,e){t=t.slice();var i=r.map(t,s.capitalFirst);e=(e||[]).slice();var n=r.map(e,s.capitalFirst);return function(a,o){r.each(t,function(t,r){for(var s={name:t,capital:i[r]},l=0;l<e[ee];l++)s[e[l]]=t+n[l];a.call(o,s)})}},s.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},s.eachAxisDim=s.createNameEach(o,["axisIndex","axis","index"]),s.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},s.createLinkedNodesFinder=function(t,e,i){function n(t,e){return r[V](e.nodes,t)>=0}function a(t,n){var a=!1;return e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]&&(a=!0)})}),a}function o(t,n){n.nodes.push(t),e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function r(t){!n(t,s)&&a(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(r);while(l);return s}},s.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t[v]=t[v]||{};r.each(e,function(t){var e=r.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},s.LABEL_OPTIONS=[k,"show",B,"distance","formatter"],s.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},s.isDataItemOption=function(t){return r[ae](t)&&!(t instanceof Array)},s.converDataValue=function(t,e){var n=e&&e.type;return n===b?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)},s.createDataFormatModel=function(t,e){var i=new n;return r.mixin(i,s.dataFormatMixin),i[Y]=e[Y],i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i[oe]=function(){return t},i},s.dataFormatMixin={getDataParams:function(t,e){var i=this[oe](e),n=this[Y],r=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i[x](t,!0),l=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:n,seriesName:r,name:s,dataIndex:o,data:l,dataType:e,value:a,color:i[_](t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,n,r){i=i||v;var a=this[oe](n),o=a[c](t),s=this.getDataParams(t,n);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var l=o.get(["label",i,"formatter"]);return typeof l===W?(s.status=i,l(s)):typeof l===ye?e.formatTpl(l,s):void 0},getRawValue:function(t,e){var i=this[oe](e),n=i.getRawDataItem(t);return null!=n?!r[ae](n)||n instanceof Array?n:n.value:void 0},formatTooltip:r.noop},s.mappingToExists=function(t,e){e=(e||[]).slice();var i=r.map(t||[],function(t){return{exist:t}});return r.each(e,function(t,n){if(r[ae](t))for(var a=0;a<i[ee];a++){var o=i[a].exist;if(!i[a][M]&&(null!=t.id&&o.id===t.id+""||null!=t.name&&!s.isIdInner(t)&&!s.isIdInner(o)&&o.name===t.name+"")){i[a][M]=t,e[n]=null;break}}}),r.each(e,function(t){if(r[ae](t)){for(var e=0;e<i[ee];e++){var n=i[e].exist;if(!i[e][M]&&!s.isIdInner(n)&&null==t.id){i[e][M]=t;break}}e>=i[ee]&&i.push({option:t})}}),i},s.isIdInner=function(t){return r[ae](t)&&t.id&&0===(t.id+"")[V]("\x00_ec_\x00")},s.compressBatches=function(t,e){function i(t,e,i){for(var n=0,r=t[ee];r>n;n++)for(var a=t[n].seriesId,o=s.normalizeToArray(t[n][$]),l=i&&i[a],c=0,u=o[ee];u>c;c++){var h=o[c];l&&l[h]?l[h]=null:(e[a]||(e[a]={}))[h]=1}}function n(t,e){var i=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)i.push(+r);else{var a=n(t[r],!0);a[ee]&&i.push({seriesId:r,dataIndex:a})}return i}var r={},a={};return i(t||[],r),i(e||[],a,r),[n(r),n(a)]},s}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==C&&(t=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],grid:{},textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:!0,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3}}),e("zrender/tool/path",[Me,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,c,d){var v=l*(p/180),y=f(v)*(t-i)/2+h(v)*(e-n)/2,_=-1*h(v)*(t-i)/2+f(v)*(e-n)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=u(x),s*=u(x));var b=(r===a?-1:1)*u((o*o*s*s-o*o*_*_-s*s*y*y)/(o*o*_*_+s*s*y*y))||0,w=b*o*_/s,M=b*-s*y/o,S=(t+i)/2+f(v)*w-h(v)*M,T=(e+n)/2+h(v)*w+f(v)*M,C=g([1,0],[(y-w)/o,(_-M)/s]),A=[(y-w)/o,(_-M)/s],P=[(-1*y-w)/o,(-1*_-M)/s],L=g(A,P);m(A,P)<=-1&&(L=p),m(A,P)>=1&&(L=0),0===a&&L>0&&(L-=2*p),1===a&&0>L&&(L+=2*p),d.addData(c,S,T,o,s,C,L,v,a)}function n(t){if(!t)return[];var i,n=t[U](/-/g," -")[U](/ /g," ")[U](/ /g,",")[U](/,,/g,",");for(i=0;i<c[ee];i++)n=n[U](new RegExp(c[i],"g"),"|"+c[i]);var r,a=n.split("|"),s=0,l=0,u=new o,h=o.CMD;for(i=1;i<a[ee];i++){var f,d=a[i],p=d.charAt(0),v=0,m=d.slice(1)[U](/e,-/g,"e-").split(",");m[ee]>0&&""===m[0]&&m.shift();for(var g=0;g<m[ee];g++)m[g]=parseFloat(m[g]);for(;v<m[ee]&&!isNaN(m[v])&&!isNaN(m[0]);){var y,_,x,b,w,M,S,T=s,C=l;switch(p){case"l":s+=m[v++],l+=m[v++],f=h.L,u.addData(f,s,l);break;case"L":s=m[v++],l=m[v++],f=h.L,u.addData(f,s,l);break;case"m":s+=m[v++],l+=m[v++],f=h.M,u.addData(f,s,l),p="l";break;case"M":s=m[v++],l=m[v++],f=h.M,u.addData(f,s,l),p="L";break;case"h":s+=m[v++],f=h.L,u.addData(f,s,l);break;case"H":s=m[v++],f=h.L,u.addData(f,s,l);break;case"v":l+=m[v++],f=h.L,u.addData(f,s,l);break;case"V":l=m[v++],f=h.L,u.addData(f,s,l);break;case"C":f=h.C,u.addData(f,m[v++],m[v++],m[v++],m[v++],m[v++],m[v++]),s=m[v-2],l=m[v-1];break;case"c":f=h.C,u.addData(f,m[v++]+s,m[v++]+l,m[v++]+s,m[v++]+l,m[v++]+s,m[v++]+l),s+=m[v-2],l+=m[v-1];break;case"S":y=s,_=l;var A=u.len(),P=u.data;r===h.C&&(y+=s-P[A-4],_+=l-P[A-3]),f=h.C,T=m[v++],C=m[v++],s=m[v++],l=m[v++],u.addData(f,y,_,T,C,s,l);break;case"s":y=s,_=l;var A=u.len(),P=u.data;r===h.C&&(y+=s-P[A-4],_+=l-P[A-3]),f=h.C,T=s+m[v++],C=l+m[v++],s+=m[v++],l+=m[v++],u.addData(f,y,_,T,C,s,l);break;case"Q":T=m[v++],C=m[v++],s=m[v++],l=m[v++],f=h.Q,u.addData(f,T,C,s,l);break;case"q":T=m[v++]+s,C=m[v++]+l,s+=m[v++],l+=m[v++],f=h.Q,u.addData(f,T,C,s,l);break;case"T":y=s,_=l;var A=u.len(),P=u.data;r===h.Q&&(y+=s-P[A-4],_+=l-P[A-3]),s=m[v++],l=m[v++],f=h.Q,u.addData(f,y,_,s,l);break;case"t":y=s,_=l;var A=u.len(),P=u.data;r===h.Q&&(y+=s-P[A-4],_+=l-P[A-3]),s+=m[v++],l+=m[v++],f=h.Q,u.addData(f,y,_,s,l);break;case"A":x=m[v++],b=m[v++],w=m[v++],M=m[v++],S=m[v++],T=s,C=l,s=m[v++],l=m[v++],f=h.A,e(T,C,s,l,M,S,x,b,w,f,u);break;case"a":x=m[v++],b=m[v++],w=m[v++],M=m[v++],S=m[v++],T=s,C=l,s+=m[v++],l+=m[v++],f=h.A,e(T,C,s,l,M,S,x,b,w,f,u)}}("z"===p||"Z"===p)&&(f=h.Z,u.addData(f)),r=f}return u.toStatic(),u}function r(t,e){var i,r=n(t);return e=e||{},e.buildPath=function(t){t.setData(r.data),i&&s(t,i);var e=t[T]();e&&t.rebuildPath(e)},e[d]=function(t){i||(i=l[le]()),l.mul(i,t,i)},e}var a=t("../graphic/Path"),o=t("../core/PathProxy"),s=t("./transformPath"),l=t("../core/matrix"),c=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],u=Math.sqrt,h=Math.sin,f=Math.cos,p=Math.PI,v=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},m=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))},g=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))};return{createFromString:function(t,e){return new a(r(t,e))},extendFromString:function(t,e){return a[ne](r(t,e))},mergePath:function(t,e){for(var n=[],r=t[ee],o=0;r>o;o++){var s=t[o];s[i]&&s.buildPath(s.path,s.shape,!0),n.push(s.path)}var l=new a(e);return l.buildPath=function(t){t.appendPath(n);var e=t[T]();e&&t.rebuildPath(e)},l}}}),e("zrender/graphic/Path",[Me,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){n.call(this,t),this.path=new o}var n=t("./Displayable"),a=t("../core/util"),o=t("../core/PathProxy"),s=t("../contain/path"),l=t("./Pattern"),c=l[_e].getCanvasPattern,u=Math.abs;return e[_e]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n=this.style,r=this.path,a=n.hasStroke(),o=n.hasFill(),s=n.fill,l=n[h],u=o&&!!s.colorStops,f=a&&!!l.colorStops,d=o&&!!s.image,p=a&&!!l.image;if(n.bind(t,this,e),this.setTransform(t),this[i]){var v=this[D]();u&&(this._fillGradient=n.getGradient(t,s,v)),f&&(this._strokeGradient=n.getGradient(t,l,v))}u?t.fillStyle=this._fillGradient:d&&(t.fillStyle=c.call(s,t)),f?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=c.call(l,t));var m=n.lineDash,g=n.lineDashOffset,y=!!t.setLineDash,_=this.getGlobalScale();r.setScale(_[0],_[1]),this.__dirtyPath||m&&!y&&a?(r=this.path.beginPath(t),m&&!y&&(r.setLineDash(m),r.setLineDashOffset(g)),this.buildPath(r,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&r.fill(t),m&&y&&(t.setLineDash(m),t.lineDashOffset=g),a&&r[h](t),m&&y&&t.setLineDash([]),this.restoreTransform(t),(n.text||0===n.text)&&this.drawRectText(t,this[D]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var r=this.path;this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),t=r[D]()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this[i]||n){a.copy(t);var o=e[f],s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=o/s,a[ce]+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this[D](),r=this.style;if(t=i[0],e=i[1],n[P](t,e)){var a=this.path.data;if(r.hasStroke()){var o=r[f],l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s.containStroke(a,o/l,t,e)))return!0}if(r.hasFill())return s[P](a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this[i]=!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):n[_e].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a[ae](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[r];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[ne]=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)};a[G](i,e);for(var n in t)"style"!==n&&"shape"!==n&&(i[_e][n]=t[n]);return i},a[G](e,n),e}),e("zrender/graphic/Gradient",[Me],function(){var t=function(t){this.colorStops=t||[]};return t[_e]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),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[ee]){var a=r[i];return t&&(n[t]=a),e._colorIdx=(i+1)%r[ee],a}}}}),e("zrender/container/Group",[Me,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),n=t("../Element"),r=t("../core/BoundingRect"),a=function(t){t=t||{},n.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this[i]=!0};return a[_e]={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e[ee];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[ee]},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i[V](e);n>=0&&(i[te](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent[re](t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var i=this.__zr,n=this.__storage,r=this._children,o=e[V](r,t);return 0>o?this:(r[te](o,1),t.parent=null,n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),i&&i.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[ee];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),t.parent=null;return i[ee]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[ee];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[ee];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[ee];e++){var i=this._children[e];t.addToMap(i),i instanceof a&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[ee];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof a&&i.delChildrenFromStorage(t)}},dirty:function(){return this[i]=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new r(0,0,0,0),n=t||this._children,a=[],o=0;o<n[ee];o++){var s=n[o];if(!s[he]&&!s.invisible){var l=s[D](),c=s.getLocalTransform(a);c?(i.copy(l),i[d](c),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[G](a,n),a}),e("zrender/graphic/Image",[Me,"./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[_e]={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===ye?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[ee];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[ce])return void a.pending.push(this)}if(i){var s=n.width||i.width,l=n[ce]||i[ce],c=n.x||0,u=n.y||0;if(!i.width||!i[ce])return;if(this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,f=n.sy||0;t.drawImage(i,h,f,n.sWidth,n.sHeight,c,u,s,l)}else if(n.sx&&n.sy){var h=n.sx,f=n.sy,d=s-h,p=l-f;t.drawImage(i,h,f,d,p,c,u,s,l)}else t.drawImage(i,c,u,s,l);null==n.width&&(n.width=s),null==n[ce]&&(n[ce]=l),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this[D]())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new n(t.x||0,t.y||0,t.width||0,t[ce]||0)),this._rect}},r[G](e,i),e}),e("zrender/graphic/Text",[Me,"./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[_e]={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[R],c=i.textFont||i.font;if(i.textVerticalAlign){var u=n[D](o,c,i[R],"top");switch(s=I,i.textVerticalAlign){case I:a-=u[ce]/2-u.lineHeight/2;break;case ue:a-=u[ce]-u.lineHeight/2;break;default:a+=u.lineHeight/2}}else s=i.textBaseline;t.font=c,t[R]=l||"left",t[R]!==l&&(t[R]="left"),t.textBaseline=s||"alphabetic",t.textBaseline!==s&&(t.textBaseline="alphabetic");for(var h=n.measureText("国",t.font).width,f=o.split("\n"),d=0;d<f[ee];d++)i.hasFill()&&t.fillText(f[d],r,a),i.hasStroke()&&t.strokeText(f[d],r,a),a+=h;this.restoreTransform(t)}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=n[D](t.text+"",t.textFont||t.font,t[R],e?"top":t.textBaseline);switch(e){case I:i.y-=i[ce]/2;break;case ue:i.y-=i[ce]}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},i[G](r,e),r}),e("zrender/graphic/shape/Circle",[Me,"../Path"],function(t){return t("../Path")[ne]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t[n](e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Sector",[Me,"../Path"],function(t){return t("../Path")[ne]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,r=e.cy,a=Math.max(e.r0||0,0),o=Math.max(e.r,0),s=e.startAngle,l=e.endAngle,c=e.clockwise,u=Math.cos(s),h=Math.sin(s);t[n](u*a+i,h*a+r),t.lineTo(u*o+i,h*o+r),t.arc(i,r,o,s,l,!c),t.lineTo(Math.cos(l)*a+i,Math.sin(l)*a+r),0!==a&&t.arc(i,r,a,l,s,c),t.closePath()}})}),e("zrender/graphic/shape/Ring",[Me,"../Path"],function(t){return t("../Path")[ne]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,r=e.cy,a=2*Math.PI;t[n](i+e.r,r),t.arc(i,r,e.r,0,a,!1),t[n](i+e.r0,r),t.arc(i,r,e.r0,0,a,!0)}})}),e("zrender/graphic/shape/Polygon",[Me,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[ne]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Polyline",[Me,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[ne]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e.buildPath(t,i,!1)}})}),e("zrender/graphic/shape/Rect",[Me,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[ne]({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[ce];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/Line",[Me,"../Path"],function(t){return t("../Path")[ne]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,r=e.y1,a=e.x2,o=e.y2,s=e.percent;0!==s&&(t[n](i,r),1>s&&(a=i*(1-s)+a*s,o=r*(1-s)+o*s),t.lineTo(a,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/BezierCurve",[Me,"../../core/curve","../../core/vector","../Path"],function(t){function e(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?u:l)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?u:l)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?c:s)(t.x1,t.cpx1,t.x2,e),(i?c:s)(t.y1,t.cpy1,t.y2,e)]}var i=t("../../core/curve"),r=t("../../core/vector"),a=i.quadraticSubdivide,o=i.cubicSubdivide,s=i.quadraticAt,l=i.cubicAt,c=i.quadraticDerivativeAt,u=i.cubicDerivativeAt,h=[];return t("../Path")[ne]({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,r=e.y1,s=e.x2,l=e.y2,c=e.cpx1,u=e.cpy1,f=e.cpx2,d=e.cpy2,p=e.percent;0!==p&&(t[n](i,r),null==f||null==d?(1>p&&(a(i,c,s,p,h),c=h[1],s=h[2],a(r,u,l,p,h),u=h[1],l=h[2]),t.quadraticCurveTo(c,u,s,l)):(1>p&&(o(i,c,f,s,p,h),c=h[1],f=h[2],s=h[3],o(r,u,d,l,p,h),u=h[1],d=h[2],l=h[3]),t.bezierCurveTo(c,u,f,d,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",[Me,"../Path"],function(t){return t("../Path")[ne]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,r=e.cy,a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,c=Math.cos(o),u=Math.sin(o);t[n](c*a+i,u*a+r),t.arc(i,r,a,o,s,!l)}})}),e("zrender/graphic/CompoundPath",[Me,"./Path"],function(t){var e=t("./Path");return e[ne]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e[ee];n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this[i]=this[i]||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t[ee];i++)t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i[ee];n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[ee];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[_e][D].call(this)}})}),e("zrender/graphic/LinearGradient",[Me,"../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[_e]={constructor:n},e[G](n,i),n}),e("zrender/graphic/RadialGradient",[Me,"../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[_e]={constructor:n},e[G](n,i),n}),e("zrender/core/BoundingRect",[Me,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[ce]=n}var i=t("./vector"),n=t("./matrix"),r=i[d],a=Math.min,o=Math.abs,s=Math.max;return e[_e]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this[ce]=s(t.y+t[ce],this.y+this[ce])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[ce],r(t,t,i),r(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=o(e[0]-t[0]),this[ce]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[ce]/e[ce],a=n[le]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e[ce],o=t.x,s=t.x+t.width,l=t.y,c=t.y+t[ce];return!(o>n||i>s||l>a||r>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[ce]},clone:function(){return new e(this.x,this.y,this.width,this[ce])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[ce]=t[ce]}},e}),e("zrender/contain/text",[Me,"../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,c=n[ee];c>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")[ee],o=e(t,i),s=e("国",i),l=a*s,c=new h(0,0,o,l);switch(c.lineHeight=s,r){case ue:case"alphabetic":c.y-=s;break;case I:c.y-=s/2}switch(n){case"end":case"right":c.x-=c.width;break;case z:c.x-=c.width/2}return c}function n(t,e,i,n){var r=e.x,a=e.y,o=e[ce],s=e.width,l=i[ce],c=o/2-l/2,h="left";switch(t){case"left":r-=n,a+=c,h="right";break;case"right":r+=n+s,a+=c,h="left";break;case"top":r+=s/2,a-=n+l,h=z;break;case ue:r+=s/2,a+=o+n,h=z;break;case u:r+=s/2,a+=c,h=z;break;case"insideLeft":r+=n,a+=c,h="left";break;case"insideRight":r+=s-n,a+=c,h="right";break;case"insideTop":r+=s/2,a+=n,h=z;break;case"insideBottom":r+=s/2,a+=o-l-n,h=z;break;case"insideTopLeft":r+=n,a+=n,h="left";break;case"insideTopRight":r+=s-n,a+=n,h="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,h="right"}return{x:r,y:a,textAlign:h,textBaseline:"top"}}function r(t,i,n,r,o){if(!i)return"";o=o||{},r=f(r,"...");for(var s=f(o.maxIterations,2),l=f(o.minChar,0),c=e("国",n),u=e("a",n),h=f(o.placeholder,""),d=i=Math.max(0,i-1),p=0;l>p&&d>=u;p++)d-=u;var v=e(r);v>d&&(r="",v=0),d=i-v;
|
|
for(var m=(t+"").split("\n"),p=0,g=m[ee];g>p;p++){var y=m[p],_=e(y,n);if(!(i>=_)){for(var x=0;;x++){if(d>=_||x>=s){y+=r;break}var b=0===x?a(y,d,u,c):_>0?Math.floor(y[ee]*d/_):0;y=y.substr(0,b),_=e(y,n)}""===y&&(y=h),m[p]=y}}return m.join("\n")}function a(t,e,i,n){for(var r=0,a=0,o=t[ee];o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?i:n}return a}var o={},s=0,l=5e3,c=t("../core/util"),h=t("../core/BoundingRect"),f=c.retrieve,d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,truncateText:r,measureText:function(t,e){var i=c[T]();return i.font=e||"12px sans-serif",i.measureText(t)}};return d}),e("echarts/coord/axisHelper",[Me,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",we,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),r=t("../util/number"),a=t(we),o=t("zrender/contain/text"),l={};return l.getScaleExtent=function(t,e){var i=t.scale,n=i[A](),o=n[1]-n[0];if(i.type===b)return isFinite(o)?n:[0,0];var s=e.getMin?e.getMin():e.get("min"),l=e.getMax?e.getMax():e.get("max"),c=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),u=e.get("boundaryGap");a[Z](u)||(u=[u||0,u||0]),u[0]=r.parsePercent(u[0],1),u[1]=r.parsePercent(u[1],1);var h=!0,f=!0;return null==s&&(s=n[0]-u[0]*o,h=!1),null==l&&(l=n[1]+u[1]*o,f=!1),"dataMin"===s&&(s=n[0]),"dataMax"===l&&(l=n[1]),c&&(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");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 c=i.getInterval(),u=Math.max(Math.abs(c),s)/c;n=i[A](),i.setExtent(u*n[0],n[1]*u),i.niceExtent(o)}var c=e.get("interval");null!=c&&i.setInterval&&i.setInterval(c)},l.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case s:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getClass(r)||i)[le](t)}},l.ifAxisCrossZero=function(t){var e=t.scale[A](),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,s=0,l=1;e[ee]>40&&(l=Math.floor(e[ee]/40));for(var c=0;c<t[ee];c+=l){var u=t[c],h=o[D](e[c],i,z,"top");h[n?"x":"y"]+=u,h[n?"width":ce]*=1.3,r?r.intersect(h)?(s++,a=Math.max(a,s)):(r.union(h),s=0):r=h.clone()}return 0===a&&l>1?l:(a+1)*l-1},l.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===ye?(e=function(t){return function(e){return t[U]("{value}",e)}}(e),a.map(n,e)):typeof e===W?a.map(r,function(n,r){return e(t.type===s?i.getLabel(n):n,r)},this):n},l}),e("echarts/coord/cartesian/Cartesian2D",[Me,we,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(we),n=t("./Cartesian");return e[_e]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(b)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e[P](e.toLocalCoord(t[0]))&&i[P](i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.toGlobalCoord(i.dataToCoord(t[0],e)),n.toGlobalCoord(n.dataToCoord(t[1],e))]},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i[G](e,n),e}),e("echarts/coord/cartesian/Axis2D",[Me,we,"../Axis","./axisLabelInterval"],function(t){var e=t(we),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[k]=a||ue};return r[_e]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[k];return"top"===t||t===ue},getGlobalExtent:function(){var t=this[A]();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===s){var e=this.getLabelInterval();return typeof e===W&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[G](r,i),r}),e("echarts/coord/cartesian/GridModel",[Me,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[ne]({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",[Me,we],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[_e][e].apply(t,i)}function i(t,e,i){return this.superClass[_e][e].apply(t,i)}var n=t(we),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){t.$constructor=t,t[ne]=function(t){var r=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):r.apply(this,arguments)};return n[ne](a[_e],t),a[ne]=this[ne],a.superCall=e,a.superApply=i,n[G](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[ne];a&&(t[ne]=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",[Me,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[f,"width"],[h,"color"],[L],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("echarts/model/mixin/areaStyle",[Me,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[L],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[Me,"zrender/contain/text"],function(t){function e(t,e){return t&&t[y](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this[m];return this[y]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[m],i=t&&t[me](B);return[this[y]("fontStyle")||e(i,"fontStyle"),this[y]("fontWeight")||e(i,"fontWeight"),(this[y]("fontSize")||e(i,"fontSize")||12)+"px",this[y]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(B)||{};return i[D](t,this[E](),e.align,e.baseline)},truncateText:function(t,e,n,r){return i.truncateText(t,e,this[E](),n,r)}}}),e("echarts/model/mixin/itemStyle",[Me,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["fill","color"],[h,"borderColor"],[f,"borderWidth"],[L],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);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",[Me,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===ye?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var i=t("../../contain/text"),n=t("../../core/BoundingRect"),a=new n,o=function(){};return o[_e]={constructor:o,drawRectText:function(t,n,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){t.save();var c,u,h=s.textPosition,f=s.textDistance,p=s[R],v=s.textFont||s.font,m=s.textBaseline,g=s.textVerticalAlign;o=o||i[D](l,v,p,m);var y=this[r];if(y&&(a.copy(n),a[d](y),n=a),h instanceof Array){if(c=n.x+e(h[0],n.width),u=n.y+e(h[1],n[ce]),p=p||"left",m=m||"top",g){switch(g){case I:u-=o[ce]/2-o.lineHeight/2;break;case ue:u-=o[ce]-o.lineHeight/2;break;default:u+=o.lineHeight/2}m=I}}else{var _=i.adjustTextPositionOnRect(h,n,o,f);c=_.x,u=_.y,p=p||_[R],m=m||_.textBaseline}t[R]=p||"left",t.textBaseline=m||"alphabetic";var x=s.textFill,b=s.textStroke;x&&(t.fillStyle=x),b&&(t.strokeStyle=b),t.font=v,t.shadowBlur=s.textShadowBlur,t.shadowColor=s.textShadowColor||"transparent",t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var w=l.split("\n"),M=0;M<w[ee];M++)x&&t.fillText(w[M],c,u),b&&t.strokeText(w[M],c,u),u+=o.lineHeight;t.restore()}}},o}),e("zrender/core/PathProxy",[Me,"./curve","./vector","./bbox","./BoundingRect","../config"],function(t){var e=t("./curve"),i=t("./vector"),r=t("./bbox"),a=t("./BoundingRect"),o=t("../config").devicePixelRatio,s={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],c=[],u=[],f=[],d=Math.min,p=Math.max,v=Math.cos,m=Math.sin,g=Math.sqrt,y=Math.abs,_=typeof Float32Array!=C,x=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 x[_e]={constructor:x,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=y(1/o/t)||0,this._uy=y(1/o/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(s.M,t,e),this._ctx&&this._ctx[n](t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||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=v(r)*i+t,this._xi=m(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[h](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[ee];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[ee];this.data&&this.data[ee]==e||!_||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[ee],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[ee];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[ee]>e[ee]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[ee];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 i,r,a=this._dashSum,o=this._dashOffset,s=this._lineDash,l=this._ctx,c=this._xi,u=this._yi,h=t-c,f=e-u,v=g(h*h+f*f),m=c,y=u,_=s[ee];for(h/=v,f/=v,0>o&&(o=a+o),o%=a,m-=o*h,y-=o*f;h>0&&t>=m||0>h&&m>=t||0==h&&(f>0&&e>=y||0>f&&y>=e);)r=this._dashIdx,i=s[r],m+=h*i,y+=f*i,this._dashIdx=(r+1)%_,h>0&&c>m||0>h&&m>c||f>0&&u>y||0>f&&y>u||l[r%2?n:"lineTo"](h>=0?d(m,t):p(m,t),f>=0?d(y,e):p(y,e));h=m-t,f=y-e,this._dashOffset=-g(h*h+f*f)},_dashedBezierTo:function(t,i,r,a,o,s){var l,c,u,h,f,d=this._dashSum,p=this._dashOffset,v=this._lineDash,m=this._ctx,y=this._xi,_=this._yi,x=e.cubicAt,b=0,w=this._dashIdx,M=v[ee],S=0;for(0>p&&(p=d+p),p%=d,l=0;1>l;l+=.1)c=x(y,t,r,o,l+.1)-x(y,t,r,o,l),u=x(_,i,a,s,l+.1)-x(_,i,a,s,l),b+=g(c*c+u*u);for(;M>w&&(S+=v[w],!(S>p));w++);for(l=(S-p)/b;1>=l;)h=x(y,t,r,o,l),f=x(_,i,a,s,l),w%2?m[n](h,f):m.lineTo(h,f),l+=v[w]/b,w=(w+1)%M;w%2!==0&&m.lineTo(o,s),c=o-h,u=s-f,this._dashOffset=-g(c*c+u*u)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[ee]=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){l[0]=l[1]=u[0]=u[1]=Number.MAX_VALUE,c[0]=c[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,o=0,h=0,d=0;d<t[ee];){var p=t[d++];switch(1==d&&(e=t[d],n=t[d+1],o=e,h=n),p){case s.M:o=t[d++],h=t[d++],e=o,n=h,u[0]=o,u[1]=h,f[0]=o,f[1]=h;break;case s.L:r.fromLine(e,n,t[d],t[d+1],u,f),e=t[d++],n=t[d++];break;case s.C:r.fromCubic(e,n,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],u,f),e=t[d++],n=t[d++];break;case s.Q:r.fromQuadratic(e,n,t[d++],t[d++],t[d],t[d+1],u,f),e=t[d++],n=t[d++];break;case s.A:var g=t[d++],y=t[d++],_=t[d++],x=t[d++],b=t[d++],w=t[d++]+b,M=(t[d++],1-t[d++]);1==d&&(o=v(b)*_+g,h=m(b)*x+y),r.fromArc(g,y,_,x,b,w,M,u,f),e=v(w)*_+g,n=m(w)*x+y;break;case s.R:o=e=t[d++],h=n=t[d++];var S=t[d++],T=t[d++];r.fromLine(o,h,o+S,h+T,u,f);break;case s.Z:e=o,n=h}i.min(l,l,u),i.max(c,c,f)}return 0===d&&(l[0]=l[1]=c[0]=c[1]=0),new a(l[0],l[1],c[0]-l[0],c[1]-l[1])},rebuildPath:function(t){for(var e,i,r,a,o,l,c=this.data,u=this._ux,h=this._uy,f=this._len,d=0;f>d;){var p=c[d++];switch(1==d&&(r=c[d],a=c[d+1],e=r,i=a),p){case s.M:e=r=c[d++],i=a=c[d++],t[n](r,a);break;case s.L:o=c[d++],l=c[d++],(y(o-r)>u||y(l-a)>h||d===f-1)&&(t.lineTo(o,l),r=o,a=l);break;case s.C:t.bezierCurveTo(c[d++],c[d++],c[d++],c[d++],c[d++],c[d++]),r=c[d-2],a=c[d-1];break;case s.Q:t.quadraticCurveTo(c[d++],c[d++],c[d++],c[d++]),r=c[d-2],a=c[d-1];break;case s.A:var g=c[d++],_=c[d++],x=c[d++],b=c[d++],w=c[d++],M=c[d++],S=c[d++],T=c[d++],C=x>b?x:b,A=x>b?1:x/b,P=x>b?b/x:1,L=Math.abs(x-b)>.001,k=w+M;L?(t.translate(g,_),t.rotate(S),t.scale(A,P),t.arc(0,0,C,w,k,1-T),t.scale(1/A,1/P),t.rotate(-S),t.translate(-g,-_)):t.arc(g,_,C,w,k,1-T),1==d&&(e=v(w)*x+g,i=m(w)*b+_),r=v(k)*x+g,a=m(k)*b+_;break;case s.R:e=r=c[d],i=a=c[d+1],t.rect(c[d++],c[d++],c[d++],c[d++]);break;case s.Z:t.closePath(),r=e,a=i}}}},x.CMD=s,x}),e("zrender/graphic/Displayable",[Me,"../core/util","./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},a.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style),this._rect=null,this.__clipPaths=[]}var n=t("../core/util"),r=t("./Style"),a=t("../Element"),o=t("./mixin/RectText");return e[_e]={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[D]();return n[P](i[0],i[1])},dirty:function(){this[i]=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a[_e].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 r(t),this.dirty(!1),this}},n[G](e,a),n.mixin(e,o),e}),e("zrender/vml/core",[Me,"exports","module","../core/env"],function(t,e,i){if(!t("../core/env")[de]){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[S]("<zrvml:"+t+' class="zrvml">')}}catch(l){n=function(t){return o[S]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var c=function(){if(!s){s=!0;var t=o.styleSheets;t[ee]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};i.exports={doc:o,initVML:c,createNode:n}}}),e("zrender/tool/transformPath",[Me,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,c,u,h,f,d=t.data,p=i.M,v=i.C,m=i.L,g=i.R,y=i.A,_=i.Q;for(c=0,u=0;c<d[ee];){switch(n=d[c++],u=c,l=0,n){case p:l=1;break;case m:l=1;break;case v:l=3;break;case _:l=2;break;case y:var x=e[4],b=e[5],w=o(e[0]*e[0]+e[1]*e[1]),M=o(e[2]*e[2]+e[3]*e[3]),S=s(-e[1]/M,e[0]/w);d[c++]+=x,d[c++]+=b,d[c++]*=w,d[c++]*=M,d[c++]+=S,d[c++]+=S,c+=2,u=c;break;case g:f[0]=d[c++],f[1]=d[c++],r(f,f,e),d[u++]=f[0],d[u++]=f[1],f[0]+=d[c++],f[1]+=d[c++],r(f,f,e),d[u++]=f[0],d[u++]=f[1]}for(h=0;l>h;h++){var f=a[h];f[0]=d[c++],f[1]=d[c++],r(f,f,e),d[u++]=f[0],d[u++]=f[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[d],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/contain/path",[Me,"../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=_[0];_[0]=_[1],_[1]=t}function n(t,e,n,r,a,o,s,l,c,u){if(u>e&&u>r&&u>o&&u>l||e>u&&r>u&&o>u&&l>u)return 0;var h=d.cubicRootAt(e,r,o,l,u,y);if(0===h)return 0;for(var f,p,v=0,m=-1,g=0;h>g;g++){var x=y[g],b=0===x||1===x?.5:1,w=d.cubicAt(t,n,a,s,x);c>w||(0>m&&(m=d.cubicExtrema(e,r,o,l,_),_[1]<_[0]&&m>1&&i(),f=d.cubicAt(e,r,o,l,_[0]),m>1&&(p=d.cubicAt(e,r,o,l,_[1]))),v+=2==m?x<_[0]?e>f?b:-b:x<_[1]?f>p?b:-b:p>l?b:-b:x<_[0]?e>f?b:-b:f>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=d.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var c=d.quadraticExtremum(e,n,a);if(c>=0&&1>=c){for(var u=0,h=d.quadraticAt(e,n,a,c),f=0;l>f;f++){var p=0===y[f]||1===y[f]?.5:1,v=d.quadraticAt(t,i,r,y[f]);o>v||(u+=y[f]<c?e>h?p:-p:h>a?p:-p)}return u}var p=0===y[0]||1===y[0]?.5:1,v=d.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 c=Math.abs(n-r);if(1e-4>c)return 0;if(1e-4>c%m){n=0,r=m;var u=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?u:0}if(a){var l=n;n=f(r),r=f(l)}else n=f(n),r=f(r);n>r&&(r+=m);for(var h=0,d=0;2>d;d++){var p=y[d];if(p+t>o){var v=Math.atan2(s,p),u=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&&(u=-u),h+=u)}}return h}function o(t,i,o,l,f){for(var d=0,m=0,g=0,y=0,_=0,x=0;x<t[ee];){var b=t[x++];switch(b===s.M&&x>1&&(o||(d+=p(m,g,y,_,l,f))),1==x&&(m=t[x],g=t[x+1],y=m,_=g),b){case s.M:y=t[x++],_=t[x++],m=y,g=_;break;case s.L:if(o){if(v(m,g,t[x],t[x+1],i,l,f))return!0}else d+=p(m,g,t[x],t[x+1],l,f)||0;m=t[x++],g=t[x++];break;case s.C:if(o){if(c.containStroke(m,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,l,f))return!0}else d+=n(m,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],l,f)||0;m=t[x++],g=t[x++];break;case s.Q:if(o){if(u.containStroke(m,g,t[x++],t[x++],t[x],t[x+1],i,l,f))return!0}else d+=r(m,g,t[x++],t[x++],t[x],t[x+1],l,f)||0;m=t[x++],g=t[x++];break;case s.A:var w=t[x++],M=t[x++],S=t[x++],T=t[x++],C=t[x++],A=t[x++],P=(t[x++],1-t[x++]),L=Math.cos(C)*S+w,k=Math.sin(C)*T+M;x>1?d+=p(m,g,L,k,l,f):(y=L,_=k);var z=(l-w)*T/S+w;if(o){if(h.containStroke(w,M,T,C,C+A,P,i,z,f))return!0}else d+=a(w,M,T,C,C+A,P,z,f);m=Math.cos(C+A)*S+w,g=Math.sin(C+A)*T+M;break;case s.R:y=m=t[x++],_=g=t[x++];var I=t[x++],D=t[x++],L=y+I,k=_+D;if(o){if(v(y,_,L,_,i,l,f)||v(L,_,L,k,i,l,f)||v(L,k,y,k,i,l,f)||v(y,k,y,_,i,l,f))return!0}else d+=p(L,_,L,k,l,f),d+=p(y,k,y,_,l,f);break;case s.Z:if(o){if(v(m,g,y,_,i,l,f))return!0}else d+=p(m,g,y,_,l,f);m=y,g=_}}return o||e(g,_)||(d+=p(m,g,y,_,l,f)||0),0!==d}var s=t("../core/PathProxy").CMD,l=t("./line"),c=t("./cubic"),u=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeRadian,d=t("../core/curve"),p=t("./windingLine"),v=l.containStroke,m=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/graphic/Pattern",[Me],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[_e].getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t}),e("echarts/scale/Ordinal",[Me,we,"./Scale"],function(t){var e=t(we),i=t("./Scale"),n=i[_e],r=i[ne]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[ee]-1]},parse:function(t){return typeof t===ye?e[V](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[P].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[le]=function(){return new r},r}),e("echarts/model/mixin/makeStyleMapper",[Me,we],function(t){var e=t(we);return function(t){for(var i=0;i<t[ee];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[ee];r++){var a=t[r][1];if(!(i&&e[V](i,a)>=0)){var o=this[y](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/core/bbox",[Me,"./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[le](),c=e[le](),u=e[le](),h=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t[ee]){var n,o=t[0],s=o[0],l=o[0],c=o[1],u=o[1];for(n=1;n<t[ee];n++)o=t[n],s=r(s,o[0]),l=a(l,o[0]),c=r(c,o[1]),u=a(u,o[1]);e[0]=s,e[1]=c,i[0]=l,i[1]=u}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)};var f=[],d=[];return n.fromCubic=function(t,e,n,o,s,l,c,u,h,p){var v,m=i.cubicExtrema,g=i.cubicAt,y=m(t,n,s,c,f);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,v=0;y>v;v++){var _=g(t,n,s,c,f[v]);h[0]=r(_,h[0]),p[0]=a(_,p[0])}for(y=m(e,o,l,u,d),v=0;y>v;v++){var x=g(e,o,l,u,d[v]);h[1]=r(x,h[1]),p[1]=a(x,p[1])}h[0]=r(t,h[0]),p[0]=a(t,p[0]),h[0]=r(c,h[0]),p[0]=a(c,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(u,h[1]),p[1]=a(u,p[1])},n.fromQuadratic=function(t,e,n,o,s,l,c,u){var h=i.quadraticExtremum,f=i.quadraticAt,d=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),v=f(t,n,s,d),m=f(e,o,l,p);c[0]=r(t,s,v),c[1]=r(e,l,m),u[0]=a(t,s,v),u[1]=a(e,l,m)},n.fromArc=function(t,i,n,r,a,f,d,p,v){var m=e.min,g=e.max,y=Math.abs(a-f);if(1e-4>y%h&&y>1e-4)return p[0]=t-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,c[0]=s(f)*n+t,c[1]=o(f)*r+i,m(p,l,c),g(v,l,c),a%=h,0>a&&(a+=h),f%=h,0>f&&(f+=h),a>f&&!d?f+=h:f>a&&d&&(a+=h),d){var _=f;f=a,a=_}for(var x=0;f>x;x+=Math.PI/2)x>a&&(u[0]=s(x)*n+t,u[1]=o(x)*r+i,m(p,u,p),g(v,u,v))},n}),e("zrender/core/curve",[Me,"./vector"],function(t){function e(t){return t>-x&&x>t}function i(t){return t>x||-x>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,l=3*(n-2*i+t),c=3*(i-t),u=t-a,h=l*l-3*s*c,f=l*c-9*s*u,d=c*c-3*l*u,p=0;if(e(h)&&e(f))if(e(l))o[0]=0;else{var v=-c/l;v>=0&&1>=v&&(o[p++]=v)}else{var m=f*f-4*h*d;if(e(m)){var g=f/h,v=-l/s+g,x=-g/2;v>=0&&1>=v&&(o[p++]=v),x>=0&&1>=x&&(o[p++]=x)}else if(m>0){var b=_(m),S=h*l+1.5*s*(-f+b),T=h*l+1.5*s*(-f-b);S=0>S?-y(-S,M):y(S,M),T=0>T?-y(-T,M):y(T,M);var v=(-l-(S+T))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var C=(2*h*l-3*s*f)/(2*_(h*h*h)),A=Math.acos(C)/3,P=_(h),L=Math.cos(A),v=(-l-2*P*L)/(3*s),x=(-l+P*(L+w*Math.sin(A)))/(3*s),k=(-l+P*(L-w*Math.sin(A)))/(3*s);v>=0&&1>=v&&(o[p++]=v),x>=0&&1>=x&&(o[p++]=x),k>=0&&1>=k&&(o[p++]=k)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,c=3*n-3*t,u=0;if(e(l)){if(i(s)){var h=-c/s;h>=0&&1>=h&&(o[u++]=h)}}else{var f=s*s-4*l*c;if(e(f))o[0]=-s/(2*l);else if(f>0){var d=_(f),h=(-s+d)/(2*l),p=(-s-d)/(2*l);h>=0&&1>=h&&(o[u++]=h),p>=0&&1>=p&&(o[u++]=p)}}return u}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,c=(s-o)*r+o,u=(l-s)*r+s,h=(u-c)*r+c;a[0]=t,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,c,u,h){var f,d,p,v,m,y=.005,x=1/0;S[0]=c,S[1]=u;for(var w=0;1>w;w+=.05)T[0]=n(t,i,a,s,w),T[1]=n(e,r,o,l,w),v=g(S,T),x>v&&(f=w,x=v);x=1/0;for(var M=0;32>M&&!(b>y);M++)d=f-y,p=f+y,T[0]=n(t,i,a,s,d),T[1]=n(e,r,o,l,d),v=g(T,S),d>=0&&x>v?(f=d,x=v):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,l,p),m=g(C,S),1>=p&&x>m?(f=p,x=m):y*=.5);return h&&(h[0]=n(t,i,a,s,f),h[1]=n(e,r,o,l,f)),_(x)}function c(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function u(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),c=t-a,u=0;if(e(s)){if(i(l)){var h=-c/l;h>=0&&1>=h&&(o[u++]=h)}}else{var f=l*l-4*s*c;if(e(f)){var h=-l/(2*s);h>=0&&1>=h&&(o[u++]=h)}else if(f>0){var d=_(f),h=(-l+d)/(2*s),p=(-l-d)/(2*s);h>=0&&1>=h&&(o[u++]=h),p>=0&&1>=p&&(o[u++]=p)}}return u}function f(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function d(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,l){var u,h=.005,f=1/0;S[0]=o,S[1]=s;for(var d=0;1>d;d+=.05){T[0]=c(t,i,r,d),T[1]=c(e,n,a,d);var p=g(S,T);f>p&&(u=d,f=p)}f=1/0;for(var v=0;32>v&&!(b>h);v++){var m=u-h,y=u+h;T[0]=c(t,i,r,m),T[1]=c(e,n,a,m);var p=g(T,S);if(m>=0&&f>p)u=m,f=p;else{C[0]=c(t,i,r,y),C[1]=c(e,n,a,y);var x=g(C,S);1>=y&&f>x?(u=y,f=x):h*=.5}}return l&&(l[0]=c(t,i,r,u),l[1]=c(e,n,a,u)),_(f)}var v=t("./vector"),m=v[le],g=v.distSquare,y=Math.pow,_=Math.sqrt,x=1e-8,b=1e-4,w=_(3),M=1/3,S=m(),T=m(),C=m();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:c,quadraticDerivativeAt:u,quadraticRootAt:h,quadraticExtremum:f,quadraticSubdivide:d,quadraticProjectPoint:p}}),e("zrender/config",[],function(){var t=1;typeof window!==C&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/graphic/Style",[Me],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[ce]+i.y,o=o*i[ce]+i.y);var s=t.createLinearGradient(n,a,r,o);return s}function e(t,e,i){var n=i.width,r=i[ce],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 c=t.createRadialGradient(o,s,0,o,s,l);return c}var i=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],n=function(t){this.extendFrom(t)};n[_e]={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,blend:null,bind:function(t,e,n){for(var r=this,a=n&&n.style,o=!a,s=0;s<i[ee];s++){var l=i[s],c=l[0];(o||r[c]!==a[c])&&(t[c]=r[c]||l[1])}if((o||r.fill!==a.fill)&&(t.fillStyle=r.fill),(o||r[h]!==a[h])&&(t.strokeStyle=r[h]),(o||r[L]!==a[L])&&(t.globalAlpha=null==r[L]?1:r[L]),(o||r.blend!==a.blend)&&(t.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var u=r[f];t[f]=u/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this[h];return null!=t&&"none"!==t&&this[f]>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===ye?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.colorStops,l=0;l<s[ee];l++)o.addColorStop(s[l].offset,s[l].color);return o}};for(var r=n[_e],a=0;a<i[ee];a++){var o=i[a];o[0]in r||(r[o[0]]=o[1])}return n.getGradient=r.getGradient,n}),e("zrender/Element",[Me,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),n=t("./mixin/Transformable"),a=t("./mixin/Animatable"),o=t("./core/util"),s=function(t){n.call(this,t),i.call(this,t),a.call(this,t),this.id=t.id||e()};return s[_e]={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[r];i||(i=this[r]=[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===k||"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[he]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[he]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===ye)this.attrKV(t,e);else if(o[ae](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[ee];i++)t[g].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[ee];i++)t[g].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},o.mixin(s,a),o.mixin(s,n),o.mixin(s,i),s}),e("echarts/coord/cartesian/Cartesian",[Me,we],function(t){function e(t){return this._axes[t]}var i=t(we),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[_e]={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[xe](),i[H](this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[ee];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("echarts/util/component",[Me,we,"./clazz"],function(t){var e=t(we),i=t("./clazz"),n=i.parseClassType,r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)
|
|
},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var l=r(n,s),c=l.originalDeps=i(s),u=a(c,t);l.entryCount=u[ee],0===l.entryCount&&o.push(s),e.each(u,function(t){e[V](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[V](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[V](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){c[t].entryCount--,0===c[t].entryCount&&u.push(t)}function s(t){h[t]=!0,o(t)}if(t[ee]){var l=n(i),c=l.graph,u=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});u[ee];){var f=u.pop(),d=c[f],p=!!h[f];p&&(r.call(a,f,d.originalDeps.slice()),delete h[f]),e.each(d.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/model/mixin/boxLayout",[Me],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(ue),width:this.get("width"),height:this.get(ce)}}}}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/Transformable",[Me,"../core/matrix","../core/vector"],function(t){function e(t){return t>o||-o>t}var i=t("../core/matrix"),n=t("../core/vector"),a=i.identity,o=5e-5,s=function(t){t=t||{},t[k]||(this[k]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=s[_e];l[r]=null,l.needLocalTransform=function(){return e(this.rotation)||e(this[k][0])||e(this[k][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},l.updateTransform=function(){var t=this.parent,e=t&&t[r],n=this.needLocalTransform(),o=this[r];return n||e?(o=o||i[le](),n?this.getLocalTransform(o):a(o),e&&(n?i.mul(o,t[r],o):i.copy(o,t[r])),this[r]=o,this.invTransform=this.invTransform||i[le](),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.rotation,o=this[k];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[r];e&&t[r](e[0],e[1],e[2],e[3],e[4],e[5])},l.restoreTransform=function(t){var e=this.invTransform;e&&t[r](e[0],e[1],e[2],e[3],e[4],e[5])};var c=[];return l.decomposeTransform=function(){if(this[r]){var t=this.parent,n=this[r];t&&t[r]&&(i.mul(c,t.invTransform,n),n=c);var a=n[0]*n[0]+n[1]*n[1],o=n[2]*n[2]+n[3]*n[3],s=this[k],l=this.scale;e(a-1)&&(a=Math.sqrt(a)),e(o-1)&&(o=Math.sqrt(o)),n[0]<0&&(a=-a),n[3]<0&&(o=-o),s[0]=n[4],s[1]=n[5],l[0]=a,l[1]=o,this.rotation=Math.atan2(-n[1]/o,n[0]/a)}},l.getGlobalScale=function(){var t=this[r];if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},l.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n[d](i,i,r),i},l.transformCoordToGlobal=function(t,e){var i=[t,e],a=this[r];return a&&n[d](i,i,a),i},s}),e("zrender/mixin/Animatable",[Me,"../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[ae],o=t("../core/log"),s=function(){this.animators=[]};return s[_e]={constructor:s,animate:function(t,n){var r,a=!1,s=this,l=this.__zr;if(t){var c=t.split("."),u=s;a="shape"===c[0];for(var h=0,f=c[ee];f>h;h++)u&&(u=u[c[h]]);u&&(r=u)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var d=s.animators,p=new e(r,n);return p.during(function(){s.dirty(a)}).done(function(){d[te](i[V](d,p),1)}),d.push(p),l&&l[g].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[ee],n=0;i>n;n++)e[n].stop(t);return e[ee]=0,this},animateTo:function(t,e,i,a,o){function s(){c--,c||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,a,o);var l=this.animators.slice(),c=l[ee];c||o&&o();for(var u=0;u<l[ee];u++)l[u].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},l=0;for(var c in n)if(null!=e[c])a(n[c])&&!i.isArrayLike(n[c])?this._animateToShallow(t?t+"."+c:c,e[c],n[c],r,o):(s[c]=n[c],l++);else if(null!=n[c])if(t){var u={};u[t]={},u[t][c]=n[c],this.attr(u)}else this.attr(c,n[c]);return l>0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("echarts/coord/Axis",[Me,"../util/number",we],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(we),a=[0,1],o=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return o[_e]={constructor:o,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[P](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[A](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var r=this._extent,o=this.scale;return t=o.normalize(t),this.onBand&&o.type===b&&(r=r.slice(),e(r,o.count())),n(t,a,r,i)},coordToData:function(t,i){var r=this._extent,o=this.scale;this.onBand&&o.type===b&&(r=r.slice(),e(r,o.count()));var s=n(t,r,a,i);return this.scale.scale(s)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;n<e[ee];n++)i.push(e[n][0]);return e[n-1]&&i.push(e[n-1][1]),i}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){return r.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this[A](),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[A](),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},o}),e("echarts/coord/cartesian/axisLabelInterval",[Me,we,"../axisHelper"],function(t){var e=t(we),i=t("../axisHelper");return function(t){var n=t.model,r=n[me]("axisLabel"),a=r.get("interval");return t.type!==s||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),n.getFormattedLabels(),r[me](B)[E](),t.isHorizontal())}}),e("zrender/core/log",[Me,"../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",[Me,"./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[ee];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][ee],s=0;o>s;s++)for(var c=0;l>c;c++)r[s][c]=n(t[s][c],e[s][c],i)}function o(t,e,i){var n=t[ee],r=e[ee];if(n!==r){var a=n>r;if(a)t[ee]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:y.call(e[o]))}for(var s=t[0]&&t[0][ee],o=0;o<t[ee];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[ee];if(n!==e[ee])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][ee],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,l){var u=t[ee];if(1==l)for(var h=0;u>h;h++)s[h]=c(t[h],e[h],i[h],n[h],r,a,o);else for(var f=t[0][ee],h=0;u>h;h++)for(var d=0;f>d;d++)s[h][d]=c(t[h][d],e[h][d],i[h][d],n[h][d],r,a,o)}function c(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function u(t){if(m(t)){var e=t[ee];if(m(t[0])){for(var i=[],n=0;e>n;n++)i.push(y.call(t[n]));return i}return y.call(t)}return t}function h(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function f(t,e,i,u,f){var v=t._getter,g=t._setter,y="spline"===e,_=u[ee];if(_){var x,b=u[0].value,w=m(b),M=!1,S=!1,T=w&&m(b[0])?2:1;u.sort(function(t,e){return t.time-e.time}),x=u[_-1].time;for(var C=[],A=[],P=u[0].value,L=!0,k=0;_>k;k++){C.push(u[k].time/x);var z=u[k].value;if(w&&s(z,P,T)||!w&&z===P||(L=!1),P=z,typeof z==ye){var I=p.parse(z);I?(z=I,M=!0):S=!0}A.push(z)}if(!L){for(var D=A[_-1],k=0;_-1>k;k++)w?o(A[k],D,T):!isNaN(A[k])||isNaN(D)||S||M||(A[k]=D);w&&o(v(t._target,f),D,T);var O,E,R,B,N,F,G=0,V=0;if(M)var H=[0,0,0,0];var q=function(t,e){var i;if(V>e){for(O=Math.min(G+1,_-1),i=O;i>=0&&!(C[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=G;_>i&&!(C[i]>e);i++);i=Math.min(i-1,_-2)}G=i,V=e;var o=C[i+1]-C[i];if(0!==o)if(E=(e-C[i])/o,y)if(B=A[i],R=A[0===i?i:i-1],N=A[i>_-2?_-1:i+1],F=A[i>_-3?_-1:i+2],w)l(R,B,N,F,E,E*E,E*E*E,v(t,f),T);else{var s;if(M)s=l(R,B,N,F,E,E*E,E*E*E,H,1),s=h(H);else{if(S)return r(B,N,E);s=c(R,B,N,F,E,E*E,E*E*E)}g(t,f,s)}else if(w)a(A[i],A[i+1],E,v(t,f),T);else{var s;if(M)a(A[i],A[i+1],E,H,1),s=h(H);else{if(S)return r(A[i],A[i+1],E);s=n(A[i],A[i+1],E)}g(t,f,s)}},W=new d({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:q,ondestroy:i});return e&&"spline"!==e&&(W.easing=e),W}}}var d=t("./Clip"),p=t("../tool/color"),v=t("../core/util"),m=v.isArrayLike,y=Array[_e].slice,_=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return _[_e]={when:function(t,e){var i=this._tracks;for(var n in e){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:u(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[ee]=0;for(var t=this._doneList,e=t[ee],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks){var o=f(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[g]&&this[g].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[ee];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[g],n=0;n<e[ee];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[ee]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},_}),e("echarts/coord/cartesian/AxisModel",[Me,"../../model/Component",we,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?s:"value")}var i=t("../../model/Component"),n=t(we),r=t("../axisModelCreator"),a=i[ne]({type:"cartesian2dAxis",axis:null,init:function(){a.superApply(this,"init",arguments),this._resetRange()},mergeOption:function(){a.superApply(this,"mergeOption",arguments),this._resetRange()},restoreData:function(){a.superApply(this,"restoreData",arguments),this._resetRange()},setRange:function(t,e){this[M].rangeStart=t,this[M].rangeEnd=e},getMin:function(){var t=this[M];return null!=t.rangeStart?t.rangeStart:t.min},getMax:function(){var t=this[M];return null!=t.rangeEnd?t.rangeEnd:t.max},getNeedCrossZero:function(){var t=this[M];return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},_resetRange:function(){this[M].rangeStart=this[M].rangeEnd=null}});n.merge(a[_e],t("../axisModelCommonMixin"));var o={gridIndex:0,offset:0};return r("x",a,e,o),r("y",a,e,o),a}),e("zrender/animation/Clip",[Me,"./easing"],function(t){function e(t){this._target=t[Q],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[_e]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var n=this.easing,r=typeof n==ye?i[n]:n,a=typeof r===W?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("echarts/coord/axisModelCreator",[Me,"./axisDefault",we,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(we),n=t("../model/Component"),r=t("../util/layout"),a=["value",s,"time","log"];return function(t,o,s,l){i.each(a,function(n){o[ne]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,l=o?r.getLayoutParams(e):{},c=a.getTheme();i.merge(e,c.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,l,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],l],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[Me,we,"./axisHelper"],function(t){function e(t){return r[ae](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===s&&r.map(this.get("data"),e)}function n(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(we),a=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",[Me,we],function(t){var e=t(we),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[ie]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[ie]({},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("zrender/contain/cubic",[Me,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,c,u,h){if(0===c)return!1;var f=c;if(h>i+f&&h>r+f&&h>o+f&&h>l+f||i-f>h&&r-f>h&&o-f>h&&l-f>h||u>t+f&&u>n+f&&u>a+f&&u>s+f||t-f>u&&n-f>u&&a-f>u&&s-f>u)return!1;var d=e.cubicProjectPoint(t,i,n,r,a,o,s,l,u,h,null);return f/2>=d}}}),e("zrender/contain/quadratic",[Me,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,c){if(0===s)return!1;var u=s;if(c>i+u&&c>r+u&&c>o+u||i-u>c&&r-u>c&&o-u>c||l>t+u&&l>n+u&&l>a+u||t-u>l&&n-u>l&&a-u>l)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,l,c,null);return u/2>=h}}}),e("zrender/contain/arc",[Me,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,c,u){if(0===l)return!1;var h=l;c-=t,u-=n;var f=Math.sqrt(c*c+u*u);if(f-h>r||r>f+h)return!1;if(Math.abs(a-o)%i<1e-4)return!0;if(s){var d=a;a=e(o),o=e(d)}else a=e(a),o=e(o);a>o&&(o+=i);var p=Math.atan2(u,c);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/util",[Me],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/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,c=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),c=(t*n-i*e)/(t-i);var u=l*a-o+c,h=u*u/(l*l+1);return s/2*s/2>=h}}}),e("echarts/chart/helper/createListFromArray",[Me,"../../data/List","../../data/helper/completeDimensions",we,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[ee]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!f[Z](v(i))}function n(t,e,n){t=t||[];var r=e.get(N),a=g[r],o=p.get(r),s=a&&a(t,e,n),y=s&&s[l];y||(y=o&&o[l]||["x","y"],y=h(y,t,y[w](["value"])));var _=s?s.categoryIndex:-1,x=new u(y,e),b=c(s,t),M={},S=_>=0&&i(t)?function(t,e,i,n){return d.isDataItemOption(t)&&(x.hasItemOption=!0),n===_?i:m(v(t),y[n])}:function(t,e,i,n){var r=v(t),a=m(r&&r[n],y[n]);d.isDataItemOption(t)&&(x.hasItemOption=!0);var o=s&&s.categoryAxesModels;return o&&o[e]&&typeof a===ye&&(M[e]=M[e]||o[e].getCategories(),a=f[V](M[e],a),0>a&&!isNaN(a)&&(a=+a)),a};return x.hasItemOption=!1,x.initData(t,b,S),x}function r(t){return t!==s&&"time"!==t}function o(t){return t===s?b:"time"===t?"time":"float"}function c(t,e){var i,n=[],r=t&&t[l][t.categoryIndex];if(r&&(i=t.categoryAxesModels[r.name]),i){var a=i.getCategories();if(a){var o=e[ee];if(f[Z](e[0])&&e[0][ee]>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(we),d=t("../../util/model"),p=t("../../CoordinateSystem"),v=d.getDataItemValue,m=d.converDataValue,g={cartesian2d:function(t,e,i){var n=i.getComponent("xAxis",e.get("xAxisIndex")),a=i.getComponent("yAxis",e.get("yAxisIndex")),l=n.get("type"),c=a.get("type"),u=[{name:"x",type:o(l),stackable:r(l)},{name:"y",type:o(c),stackable:r(c)}],f=l===s,d=c===s;h(u,t,["x","y","z"]);var p={};return f&&(p.x=n),d&&(p.y=a),{dimensions:u,categoryIndex:f?0:d?1:-1,categoryAxesModels:p}},polar:function(t,e,i){var n=e.get("polarIndex")||0,l=function(t){return t.get("polarIndex")===n},c=i.findComponents({mainType:"angleAxis",filter:l})[0],u=i.findComponents({mainType:"radiusAxis",filter:l})[0],f=u.get("type"),d=c.get("type"),p=[{name:"radius",type:o(f),stackable:r(f)},{name:"angle",type:o(d),stackable:r(d)}],v=d===s,m=f===s;h(p,t,[a,"angle","value"]);var g={};return m&&(g[a]=u),v&&(g.angle=c),{dimensions:p,categoryIndex:v?1:m?0:-1,categoryAxesModels:g}},geo:function(t){return{dimensions:h([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("zrender/core/LRU",[Me],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[_e];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[re]=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[_e];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[re](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[re](e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("echarts/data/helper/completeDimensions",[Me,we],function(t){function e(t,e,a,o){if(!e)return t;var s=i(e[0]),l=n[Z](s)&&s[ee]||1;a=a||[],o=o||"extra";for(var c=0;l>c;c++)if(!t[c]){var u=a[c]||o+(c-a[ee]);t[c]=r(e,c)?{type:"ordinal",name:u}:u}return t}function i(t){return n[Z](t)?t:n[ae](t)?t.value:t}var n=t(we),r=e.guessOrdinal=function(t,e){for(var r=0,a=t[ee];a>r;r++){var o=i(t[r]);if(!n[Z](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(n.isString(o)&&"-"!==o)return!0}return!1};return e}),e("echarts/data/DataDiffer",[Me],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[ee];r++){var a=n(t[r],r),o=e[a];null==o?(i.push(a),e[a]=r):(o[ee]||(e[a]=o=[o]),o.push(r))}}return e[_e]={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=[],c=[];for(i(e,o,l,r),i(n,s,c,a),t=0;t<e[ee];t++){var u=l[t],h=s[u];if(null!=h){var f=h[ee];f?(1===f&&(s[u]=null),h=h.unshift()):s[u]=null,this._update&&this._update(h,t)}else this._remove&&this._remove(t)}for(var t=0;t<c[ee];t++){var u=c[t];if(s.hasOwnProperty(u)){var h=s[u];if(null==h)continue;if(h[ee])for(var d=0,f=h[ee];f>d;d++)this._add&&this._add(h[d]);else this._add&&this._add(h)}}}},e}),e("zrender/graphic/helper/poly",[Me,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,r,a){var o=r.points,s=r.smooth;if(o&&o[ee]>=2){if(s&&"spline"!==s){var l=i(o,s,a,r.smoothConstraint);t[n](o[0][0],o[0][1]);for(var c=o[ee],u=0;(a?c:c-1)>u;u++){var h=l[2*u],f=l[2*u+1],d=o[(u+1)%c];t.bezierCurveTo(h[0],h[1],f[0],f[1],d[0],d[1])}}else{"spline"===s&&(o=e(o,a)),t[n](o[0][0],o[0][1]);for(var u=1,p=o[ee];p>u;u++)t.lineTo(o[u][0],o[u][1])}a&&t.closePath()}}}}),e("zrender/Storage",[Me,"./core/util","./core/env","./container/Group","./core/timsort"],function(t){function e(t,e){return t[X]===e[X]?t.z===e.z?t.z2-e.z2:t.z-e.z:t[X]-e[X]}var n=t("./core/util"),r=t("./core/env"),a=t("./container/Group"),o=t("./core/timsort"),s=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return s[_e]={constructor:s,traverse:function(t,e){for(var i=0;i<this._roots[ee];i++)this._roots[i].traverse(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,n=this._displayList,a=0,s=i[ee];s>a;a++)this._updateAndAddDisplayable(i[a],null,t);n[ee]=this._displayListLen,r[de]&&o(n,e)},_updateAndAddDisplayable:function(t,e,n){if(!t[he]||n){t.beforeUpdate(),t[i]&&t[se](),t.afterUpdate();var r=t.clipPath;if(r&&(r.parent=t,r.updateTransform(),e?(e=e.slice(),e.push(r)):e=[r]),t.isGroup){for(var a=t._children,o=0;o<a[ee];o++){var s=a[o];t[i]&&(s[i]=!0),this._updateAndAddDisplayable(s,e,n)}t[i]=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof a&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[ee];e++){var i=this._roots[e];i instanceof a&&i.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,r=t[ee];r>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==ye?this._elements[t]:t;var s=n[V](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[te](s,1),o instanceof a&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof a&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof a&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:e},s}),e("zrender/Handler",[Me,"./core/util","./mixin/Draggable","./mixin/Eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}}function i(){}function n(t,e,i){if(t[t.rectHover?"rectContain":P](e,i)){for(var n=t;n;){if(n.silent||n.clipPath&&!n.clipPath[P](e,i))return!1;n=n.parent}return!0}return!1}var r=t("./core/util"),a=t("./mixin/Draggable"),o=t("./mixin/Eventful");i[_e].dispose=function(){};var s=["click","dblclick","mousewheel",K,"mouseup","mousedown","mousemove"],l=function(t,e,n){o.call(this),this[fe]=t,this.painter=e,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[_e]={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,K,t),this.dispatchToElement(n,"mousemove",t),n&&n!==r&&this.dispatchToElement(n,J,t)},mouseout:function(t){this.dispatchToElement(this._hovered,K,t),this.trigger("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[fe]=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.trigger(i,a),o=o.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==W&&t[r].call(t,a),t.trigger&&t.trigger(i,a)}))},findHover:function(t,e,i){for(var r=this[fe].getDisplayList(),a=r[ee]-1;a>=0;a--)if(!r[a].silent&&r[a]!==i&&!r[a][he]&&n(r[a],t,e))return r[a]}},r.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){l[_e][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/animation/Animation",[Me,"../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=0,i.call(this)};return a[_e]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[g]=this;for(var e=t.getClips(),i=0;i<e[ee];i++)this.addClip(e[i])},removeClip:function(t){var i=e[V](this._clips,t);i>=0&&this._clips[te](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[ee];i++)this.removeClip(e[i]);t[g]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[ee],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[ee];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage[se]&&this.stage[se]()},start:function(){function t(){e._running&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("zrender/dom/HandlerProxy",[Me,"../core/event","../core/util","../mixin/Eventful","../core/env","../core/GestureMgr"],function(t){function e(t){return"mousewheel"===t&&u.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[Q],a,r.event)}}function n(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function r(){return u.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[ee];i++){var n=g[i];t._handlers[n]=l.bind(y[n],t)}for(var i=0;i<m[ee];i++){var n=m[i];t._handlers[n]=e(y[n],t)}}function o(t){function i(i,n){l.each(i,function(i){f(t,e(i),n._handlers[i])},n)}c.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"),c=t("../mixin/Eventful"),u=t("../core/env"),h=t("../core/GestureMgr"),f=s.addEventListener,d=s.removeEventListener,p=s.normalizeEvent,v=300,m=["click","dblclick","mousewheel",K,"mouseup","mousedown","mousemove"],g=["touchstart","touchend","touchmove"],y={mousemove:function(t){t=p(this.dom,t),this.trigger("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.trigger(K,t)},touchstart:function(t){t=p(this.dom,t),this._lastTouchMoment=new Date,i(this,t,"start"),y.mousemove.call(this,t),y.mousedown.call(this,t),n(this)},touchmove:function(t){t=p(this.dom,t),i(this,t,"change"),y.mousemove.call(this,t),n(this)},touchend:function(t){t=p(this.dom,t),i(this,t,"end"),y.mouseup.call(this,t),+new Date-this._lastTouchMoment<v&&y.click.call(this,t),n(this)}};l.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){y[t]=function(e){e=p(this.dom,e),this.trigger(t,e)}});var _=o[_e];return _.dispose=function(){for(var t=m[w](g),i=0;i<t[ee];i++){var n=t[i];d(this.dom,e(n),this._handlers[n])}},_.setCursor=function(t){this.dom.style.cursor=t||"default"
|
|
},l.mixin(o,c),o}),e("zrender/graphic/helper/smoothSpline",[Me,"../../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[ee],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var c,u,h,f=s/(l-1)*(n?r:r-1),d=Math.floor(f),p=f-d,v=t[d%r];n?(c=t[(d-1+r)%r],u=t[(d+1)%r],h=t[(d+2)%r]):(c=t[0===d?d:d-1],u=t[d>r-2?r-1:d+1],h=t[d>r-3?r-1:d+2]);var m=p*p,g=p*m;a.push([e(c[0],v[0],u[0],h[0],p,m,g),e(c[1],v[1],u[1],h[1],p,m,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[Me,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,l,c){var u,h,f,d,p=[],v=[],m=[],g=[];if(c){f=[1/0,1/0],d=[-1/0,-1/0];for(var y=0,_=t[ee];_>y;y++)i(f,f,t[y]),n(d,d,t[y]);i(f,f,c[0]),n(d,d,c[1])}for(var y=0,_=t[ee];_>y;y++){var x=t[y];if(l)u=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}u=t[y-1],h=t[y+1]}e.sub(v,h,u),r(v,v,s);var b=a(x,u),w=a(x,h),M=b+w;0!==M&&(b/=M,w/=M),r(m,v,-b),r(g,v,w);var S=o([],x,m),T=o([],x,g);c&&(n(S,S,f),i(S,S,d),n(T,T,f),i(T,T,d)),p.push(S),p.push(T)}return l&&p.push(p.shift()),p}}),e("echarts/chart/bar/barItemStyle",[Me,"../../model/mixin/makeStyleMapper"],function(t){var e=t("../../model/mixin/makeStyleMapper")([["fill","color"],[h,"borderColor"],[f,"borderWidth"],[h,"barBorderColor"],[f,"barBorderWidth"],[L],["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/Painter",[Me,"./config","./core/util","./core/log","./core/BoundingRect","./core/timsort","./Layer","./animation/requestAnimationFrame","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function n(t){return t?t.isBuildin?!0:typeof t[ge]!==W||typeof t.refresh!==W?!1:!0:!1}function a(t){t.__unusedCount++}function o(t){1==t.__unusedCount&&t.clear()}function s(t,e,i){return x.copy(t[D]()),t[r]&&x[d](t[r]),b.width=e,b[ce]=i,!x.intersect(b)}function l(t,e){if(t==e)return!1;if(!t||!e||t[ee]!==e[ee])return!0;for(var i=0;i<t[ee];i++)if(t[i]!==e[i])return!0}function c(t,e){for(var i=0;i<t[ee];i++){var n,a=t[i];a[r]&&(n=a[r],e[r](n[0],n[1],n[2],n[3],n[4],n[5]));var o=a.path;o.beginPath(e),a.buildPath(o,a.shape),e.clip(),a[r]&&(n=a.invTransform,e[r](n[0],n[1],n[2],n[3],n[4],n[5]))}}function u(t,e){var i=document[S]("div"),n=i.style;return n[k]="relative",n.overflow="hidden",n.width=t+"px",n[ce]=e+"px",i}var h=t("./config"),f=t("./core/util"),p=t("./core/log"),v=t("./core/BoundingRect"),m=t("./core/timsort"),g=t("./Layer"),y=t("./animation/requestAnimationFrame"),_=5,x=new v(0,0,0,0),b=new v(0,0,0,0),w=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||h.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this[fe]=e;var a=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},n){var s=t.width,l=t[ce];this._width=s,this._height=l;var c=new g(t,this,1);c.initContext(),o[0]=c,a.push(0)}else{this._width=this._getWidth(),this._height=this._getHeight();var f=this._domRoot=u(this._width,this._height);t.appendChild(f)}this.pathToImage=this._createPathToImage(),this._progressiveLayers=[],this._hoverlayer,this._hoverElements=[]};return w[_e]={constructor:w,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this[fe].getDisplayList(!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[ee];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this.refreshHover(),this._progressiveLayers[ee]&&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[j](e),this._hoverElements.push(i)}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=f[V](i,e);n>=0&&i[te](n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t[ee];e++){var i=t[e].__from;i&&(i.__hoverMir=null)}t[ee]=0},refreshHover:function(){var t=this._hoverElements,e=t[ee],i=this._hoverlayer;if(i&&i.clear(),e){m(t,this[fe].displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(1e5));var n={};i.ctx.save();for(var a=0;e>a;){var o=t[a],s=o.__from;s&&s.__zr?(a++,s.invisible||(o[r]=s[r],o.invTransform=s.invTransform,o.__clipPaths=s.__clipPaths,this._doPaintEl(o,i,!0,n))):(t[te](a,1),s.__hoverMir=null,e--)}i.ctx.restore()}},_startProgessive:function(){function t(){i===e._progressiveToken&&e[fe]&&(e._doPaintList(e[fe].getDisplayList()),e._furtherProgressive?(e._progress++,y(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var i=e._progressiveToken=+new Date;e._progress++,y(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,f.each(this._progressiveLayers,function(t){t[i]&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuildinLayer(a),this._doPaintList(t,e),this.eachBuildinLayer(o)},_doPaintList:function(t,e){function n(t){o.save(),o.globalAlpha=1,o.shadowBlur=0,r[i]=!0,o.drawImage(t.dom,0,0,h,d),o.restore(),r.ctx.restore()}for(var r,a,o,s,l,c,u=0,h=this._width,d=this._height,v=this._progress,m=0,g=t[ee];g>m;m++){var y=t[m],x=this._singleCanvas?0:y[X],b=y.__frame;if(0>b&&l&&(n(l),l=null),a!==x&&(o&&o.restore(),s={},a=x,r=this.getLayer(a),r.isBuildin||p("ZLevel "+a+" has been used by unkown layer "+r.id),o=r.ctx,o.save(),r.__unusedCount=0,(r[i]||e)&&r.clear()),r[i]||e){if(b>=0){if(!l){if(l=this._progressiveLayers[Math.min(u++,_-1)],l.ctx.save(),l.renderScope={},l&&l.__progress>l.__maxProgress){m=l.__nextIdxNotProg-1;continue}c=l.__progress,l[i]||(v=c),l.__progress=v+1}b===v&&this._doPaintEl(y,l,!0,l.renderScope)}else this._doPaintEl(y,r,e,s);y[i]=!1}}l&&n(l),o&&o.restore(),this._furtherProgressive=!1,f.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,n,r){var a=e.ctx;if((e[i]||n)&&!t.invisible&&0!==t.style[L]&&t.scale[0]&&t.scale[1]&&(!t.culling||!s(t,this._width,this._height))){var o=t.__clipPaths;(r.prevClipLayer!==e||l(o,r.prevElClipPaths))&&(r.prevElClipPaths&&(r.prevClipLayer.ctx.restore(),r.prevClipLayer=r.prevElClipPaths=null,r.prevEl=null),o&&(a.save(),c(o,a),r.prevClipLayer=e,r.prevElClipPaths=o)),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 g("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&f.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var i=this._layers,r=this._zlevelList,a=r[ee],o=null,s=-1,l=this._domRoot;if(i[t])return void p("ZLevel "+t+" has been used already");if(!n(e))return void p("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]<t&&r[s+1]>t);s++);o=i[r[s]]}if(r[te](s+1,0,t),o){var c=o.dom;c.nextSibling?l.insertBefore(e.dom,c.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);i[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[ee];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[ee];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[ee];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,n=this._progressiveLayers,r={},a={};this.eachBuildinLayer(function(t,e){r[e]=t.elCount,t.elCount=0,t[i]=!1}),f.each(n,function(t,e){a[e]=t.elCount,t.elCount=0,t[i]=!1});for(var o,s,l=0,c=0,u=0,h=t[ee];h>u;u++){var d=t[u],p=this._singleCanvas?0:d[X],v=e[p],m=d.progressive;if(v&&(v.elCount++,v[i]=v[i]||d[i]),m>=0){s!==m&&(s=m,c++);var y=d.__frame=c-1;if(!o){var x=Math.min(l,_-1);o=n[x],o||(o=n[x]=new g("progressive",this,this.dpr),o.initContext()),o.__maxProgress=0}o[i]=o[i]||d[i],o.elCount++,o.__maxProgress=Math.max(o.__maxProgress,y),o.__maxProgress>=o.__progress&&(v[i]=!0)}else d.__frame=-1,o&&(o.__nextIdxNotProg=u,l++,o=null)}o&&(l++,o.__nextIdxNotProg=u),this.eachBuildinLayer(function(t,e){r[e]!==t.elCount&&(t[i]=!0)}),n[ee]=Math.min(l,_),f.each(n,function(t,e){a[e]!==t.elCount&&(d[i]=!0),t[i]&&(t.__progress=0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?f.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&f.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i[te](f[V](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[ce]=e+"px";for(var n in this._layers)this._layers[n][ge](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[fe]=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new g("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();for(var i=this[fe].getDisplayList(!0),n={},r=0;r<i[ee];r++){var a=i[r];this._doPaintEl(a,e,!0,n)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(i.width)||e(t.style.width))-(e(i.paddingLeft)||0)-(e(i.paddingRight)||0)|0},_getHeight:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientHeight||e(i[ce])||e(t.style[ce]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var o=document[S]("canvas"),s=o[T]("2d");o.width=n*a,o[ce]=r*a,s.clearRect(0,0,n*a,r*a);var l={position:i[k],rotation:i.rotation,scale:i.scale};i[k]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(s);var c=t("./graphic/Image"),u=new c({id:e,style:{x:0,y:0,image:o}});return null!=l[k]&&(u[k]=i[k]=l[k]),null!=l.rotation&&(u.rotation=i.rotation=l.rotation),null!=l.scale&&(u.scale=i.scale=l.scale),u},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},w}),e("zrender/mixin/Draggable",[Me],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[_e]={constructor:t,_dragStart:function(t){var e=t[Q];e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this.dispatchToElement(e,"drag",t.event);var o=this.findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.dispatchToElement(s,"dragleave",t.event),o&&o!==s&&this.dispatchToElement(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(e,"dragend",t.event),this._dropTarget&&this.dispatchToElement(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("zrender/graphic/helper/roundRect",[Me],function(){return{buildPath:function(t,e){var i,r,a,o,s=e.x,l=e.y,c=e.width,u=e[ce],h=e.r;0>c&&(s+=c,c=-c),0>u&&(l+=u,u=-u),typeof h===q?i=r=a=o=h:h instanceof Array?1===h[ee]?i=r=a=o=h[0]:2===h[ee]?(i=a=h[0],r=o=h[1]):3===h[ee]?(i=h[0],r=o=h[1],a=h[2]):(i=h[0],r=h[1],a=h[2],o=h[3]):i=r=a=o=0;var f;i+r>c&&(f=i+r,i*=c/f,r*=c/f),a+o>c&&(f=a+o,a*=c/f,o*=c/f),r+a>u&&(f=r+a,r*=u/f,a*=u/f),i+o>u&&(f=i+o,i*=u/f,o*=u/f),t[n](s+i,l),t.lineTo(s+c-r,l),0!==r&&t.quadraticCurveTo(s+c,l,s+c,l+r),t.lineTo(s+c,l+u-a),0!==a&&t.quadraticCurveTo(s+c,l+u,s+c-a,l+u),t.lineTo(s+o,l+u),0!==o&&t.quadraticCurveTo(s,l+u,s,l+u-o),t.lineTo(s,l+i),0!==i&&t.quadraticCurveTo(s,l,s+i,l)}}}),e("zrender/core/event",[Me,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,i,n){var r=e(t);return n=n||{},n.zrX=i.clientX-r.left,n.zrY=i.clientY-r.top,n}function n(t,e){if(e=e||window.event,null!=e.zrX)return e;var n=e.type,r=n&&n[V]("touch")>=0;if(r){var a="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];a&&i(t,a,e)}else i(t,e,e),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function r(t,e,i){s?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function a(t,e,i){s?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var o=t("../mixin/Eventful"),s=typeof window!==C&&!!window.addEventListener,l=s?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{clientToLocal:i,normalizeEvent:n,addEventListener:r,removeEventListener:a,stop:l,Dispatcher:o}}),e("zrender/animation/requestAnimationFrame",[Me],function(){return typeof window!==C&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}}),e("echarts/component/axis/AxisView",[Me,we,o,"./AxisBuilder","../../echarts"],function(t){function e(t,e){function i(t){var e=n.getAxis(t);return e.toGlobalCoord(e.dataToCoord(0))}var n=t[N],r=e.axis,a={},o=r[k],s=r.onZero?"onZero":o,l=r.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c[ce]],f=e.get("offset")||0,d={x:{top:h[2]-f,bottom:h[3]+f},y:{left:h[0]-f,right:h[1]+f}};d.x.onZero=Math.max(Math.min(i("y"),d.x[ue]),d.x.top),d.y.onZero=Math.max(Math.min(i("x"),d.y.right),d.y.left),a[k]=["y"===l?d.y[s]:h[0],"x"===l?d.x[s]:h[3]],a.rotation=Math.PI/2*("x"===l?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[o],r.onZero&&(a.labelOffset=d[l][o]-d[l].onZero),e[me]("axisTick").get(u)&&(a.tickDirection=-a.tickDirection),e[me]("axisLabel").get(u)&&(a.labelDirection=-a.labelDirection);var v=e[me]("axisLabel").get("rotate");return a.labelRotation="top"===s?-v:v,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(we),n=t(o),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,s=r.getInterval,l=["axisLine","axisLabel","axisTick","axisName"],c=["splitArea","splitLine"],h=t("../../echarts").extendComponentView({type:"axis",render:function(t,a){this.group[F]();var o=this._axisGroup;if(this._axisGroup=new n.Group,this.group.add(this._axisGroup),t.get("show")){var s=a.getComponent("grid",t.get("gridIndex")),u=e(s,t),h=new r(t,u);i.each(l,h.add,h),this._axisGroup.add(h.getGroup()),i.each(c,function(e){t.get(e+".show")&&this["_"+e](t,s,u.labelInterval)},this),n.groupTransition(o,this._axisGroup,t)}},_splitLine:function(t,e,r){var o=t.axis,l=t[me]("splitLine"),c=l[me]("lineStyle"),u=c.get("color"),h=s(l,r);u=i[Z](u)?u:[u];for(var f=e[N].getRect(),d=o.isHorizontal(),p=0,v=o.getTicksCoords(),m=o.scale.getTicks(),g=[],y=[],_=c.getLineStyle(),x=0;x<v[ee];x++)if(!a(o,x,h)){var b=o.toGlobalCoord(v[x]);d?(g[0]=b,g[1]=f.y,y[0]=b,y[1]=f.y+f[ce]):(g[0]=f.x,g[1]=b,y[0]=f.x+f.width,y[1]=b);var w=p++%u[ee];this._axisGroup.add(new n.Line(n.subPixelOptimizeLine({anid:"line_"+m[x],shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:i[ie]({stroke:u[w]},_),silent:!0})))}},_splitArea:function(t,e,r){var o=t.axis,l=t[me]("splitArea"),c=l[me]("areaStyle"),u=c.get("color"),h=e[N].getRect(),f=o.getTicksCoords(),d=o.scale.getTicks(),p=o.toGlobalCoord(f[0]),v=o.toGlobalCoord(f[0]),m=0,g=s(l,r),y=c.getAreaStyle();u=i[Z](u)?u:[u];for(var _=1;_<f[ee];_++)if(!a(o,_,g)){var x,b,w,M,S=o.toGlobalCoord(f[_]);o.isHorizontal()?(x=p,b=h.y,w=S-x,M=h[ce]):(x=h.x,b=v,w=h.width,M=S-b);var T=m++%u[ee];this._axisGroup.add(new n.Rect({anid:"area_"+d[_],shape:{x:x,y:b,width:w,height:M},style:i[ie]({fill:u[T]},y),silent:!0})),p=x+w,v=b+M}}});h[ne]({type:"xAxis"}),h[ne]({type:"yAxis"})}),e("zrender/core/GestureMgr",[Me,"./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[_e]={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track[ee]=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[ee];s>o;o++){var l=r[o],c=n.clientToLocal(i,l);a.points.push([c.zrX,c.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[ee];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[ee]>1&&a&&a[ee]>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][Q],event:n}}}}};return r}),e("echarts/component/axis/AxisBuilder",[Me,we,"../../util/format",o,"../../model/Model","../../util/number",be],function(t){function e(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function i(t,e,i){var n,r,a=p(e-t.rotation);return v(a)?(r=i>0?"top":ue,n=z):v(a-x)?(r=i>0?ue:"top",n=z):(r=I,n=a>0&&x>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,verticalAlign:r}}function n(t,e,i,n){var r,a,o=p(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return v(o-x/2)?(a=l?ue:"top",r=z):v(o-1.5*x)?(a=l?"top":ue,r=z):(a=I,r=1.5*x>o&&o>x/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,verticalAlign:a}}function a(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}var l=t(we),c=t("../../util/format"),u=t(o),h=t("../../model/Model"),f=t("../../util/number"),p=f.remRadian,v=f.isRadianAroundZero,g=t(be),y=g[d],_=l.retrieve,x=Math.PI,w=function(t,e){this.opt=e,this.axisModel=t,l[ie](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var i=new u.Group({position:e[k].slice(),rotation:e.rotation});i.updateTransform(),this._transform=i[r],this._dumbGroup=i};w[_e]={constructor:w,hasBuilder:function(t){return!!M[t]},add:function(t){M[t].call(this)},getGroup:function(){return this.group}};var M={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[A](),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(y(r,r,n),y(a,a,n)),this.group.add(new u.Line(u.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l[ne]({lineCap:"round"},e[me]("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[me]("axisTick"),n=this.opt,r=i[me]("lineStyle"),a=i.get(ee),o=T(i,n.labelInterval),s=e.getTicksCoords(i.get("alignWithLabel")),c=e.scale.getTicks(),h=[],f=[],d=this._transform,p=0;p<s[ee];p++)if(!S(e,p,o)){var v=s[p];h[0]=v,h[1]=0,f[0]=v,f[1]=n.tickDirection*a,d&&(y(h,h,d),y(f,f,d)),this.group.add(new u.Line(u.subPixelOptimizeLine({anid:"tick_"+c[p],shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:l[ie](r.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0})))}},axisLabel:function(){function t(t,e){var i=t&&t[D]().clone(),n=e&&e[D]().clone();return i&&n?(i[d](t.getLocalTransform()),n[d](e.getLocalTransform()),i.intersect(n)):void 0}var n=this.opt,r=this.axisModel,o=_(n.axisLabelShow,r.get("axisLabel.show"));if(o){var l=r.axis,c=r[me]("axisLabel"),f=c[me](B),p=c.get("margin"),v=l.scale.getTicks(),g=r.getFormattedLabels(),y=_(n.labelRotation,c.get("rotate"))||0;y=y*x/180;for(var b=i(n,y,n.labelDirection),w=r.get("data"),M=[],T=a(r),C=r.get("triggerEvent"),A=0;A<v[ee];A++)if(!S(l,A,n.labelInterval)){var P=f;w&&w[A]&&w[A][B]&&(P=new h(w[A][B],f,r[m]));var L=P[O]()||r.get("axisLine.lineStyle.color"),k=l.dataToCoord(v[A]),z=[k,n.labelOffset+n.labelDirection*p],I=l.scale.getLabel(v[A]),N=new u.Text({anid:"label_"+v[A],style:{text:g[A],textAlign:P.get("align",!0)||b[R],textVerticalAlign:P.get("baseline",!0)||b.verticalAlign,textFont:P[E](),fill:typeof L===W?L(I):L},position:z,rotation:b.rotation,silent:T,z2:10});C&&(N.eventData=e(r),N.eventData.targetType="axisLabel",N.eventData.value=I),this._dumbGroup.add(N),N.updateTransform(),M.push(N),this.group.add(N),N.decomposeTransform()}if(l.type!==s){if(r.getMin?r.getMin():r.get("min")){var F=M[0],G=M[1];t(F,G)&&(F[he]=!0)}if(r.getMax?r.getMax():r.get("max")){var V=M[M[ee]-1],H=M[M[ee]-2];t(H,V)&&(V[he]=!0)}}}},axisName:function(){var t=this.opt,r=this.axisModel,o=_(t.axisName,r.get("name"));if(o){var s,h=r.get("nameLocation"),f=t.nameDirection,d=r[me]("nameTextStyle"),p=r.get("nameGap")||0,v=this.axisModel.axis[A](),m=v[0]>v[1]?-1:1,g=["start"===h?v[0]-m*p:"end"===h?v[1]+m*p:(v[0]+v[1])/2,h===I?t.labelOffset+f*p:0],y=r.get("nameRotate");null!=y&&(y=y*x/180);var b;h===I?s=i(t,null!=y?y:t.rotation,f):(s=n(t,h,y||0,v),b=t.axisNameAvailableWidth,null!=b&&(b=Math.abs(b/Math.sin(s.rotation)),!isFinite(b)&&(b=null)));var w=d[E](),M=r.get("nameTruncate",!0)||{},S=M.ellipsis,T=_(M.maxWidth,b),C=null!=S&&null!=T?c.truncateText(o,T,w,S,{minChar:2,placeholder:M.placeholder}):o,P=r.get("tooltip",!0),L=r.mainType,k={componentType:L,name:o,$vars:["name"]};k[L+"Index"]=r.componentIndex;var z=new u.Text({anid:"name",__fullText:o,__truncatedText:C,style:{text:C,textFont:w,fill:d[O]()||r.get("axisLine.lineStyle.color"),textAlign:s[R],textVerticalAlign:s.verticalAlign},position:g,rotation:s.rotation,silent:a(r),z2:1,tooltip:P&&P.show?l[ne]({content:o,formatter:function(){return o},formatterParams:k},P):null});r.get("triggerEvent")&&(z.eventData=e(r),z.eventData.targetType="axisName",z.eventData.name=o),this._dumbGroup.add(z),z.updateTransform(),this.group.add(z),z.decomposeTransform()}}},S=w.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===b&&(typeof i===W?(n=r.getTicks()[e],!i(n,r.getLabel(n))):e%(i+1))},T=w.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return w}),e("zrender/Layer",[Me,"./core/util","./config","./graphic/Style","./graphic/Pattern"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[S](e),a=i[ve](),o=i[pe](),s=r.style;return s[k]="absolute",s.left=0,s.top=0,s.width=a+"px",s[ce]=o+"px",r.width=a*n,r[ce]=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===ye?s=i(t,"canvas",a,o):n[ae](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return s[_e]={constructor:s,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[T]("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack[T]("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[ce]=e+"px",n.width=t*i,n[ce]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[ce]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[ce],s=this.clearColor,l=this.motionBlur&&!t,c=this.lastFrameAlpha,u=this.dpr;if(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/u,r/u)),i.clearRect(0,0,n/u,r/u),s){var h;s.colorStops?(h=s.__canvasGradient||a.getGradient(i,s,{x:0,y:0,width:n/u,height:r/u}),s.__canvasGradient=h):s.image&&(h=o[_e].getCanvasPattern.call(s,i)),i.save(),i.fillStyle=h||s,i.fillRect(0,0,n/u,r/u),i.restore()}if(l){var f=this.domBack;i.save(),i.globalAlpha=c,i.drawImage(f,0,0,n/u,r/u),i.restore()}}},s}),e("echarts/preprocessor/helper/compatStyle",[Me,we],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e[v],a=e.emphasis;r&&r[n]&&(t[n]=t[n]||{},t[n][v]?i.merge(t[n][v],r[n]):t[n][v]=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(we),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[ee];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[ee];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[ee];r++)i[Z](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}}),e("echarts/chart/helper/SymbolDraw",[Me,o,"./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[_](e,"symbol"))}var n=t(o),r=t("./Symbol"),a=e[_e];return a.updateData=function(t,e){var r=this.group,a=t.hostModel,o=this._data,s=this._symbolCtor,l={itemStyle:a[me]("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:a[me]("itemStyle.emphasis").getItemStyle(),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a[me]("label.normal"),hoverLabelModel:a[me]("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(k,a),t.setItemGraphicEl(n,o),r.add(o)}})[se](function(c,u){var h=o[p](u),f=t.getItemLayout(c);return i(t,c,e)?(h?(h.updateData(t,c,l),n.updateProps(h,{position:f},a)):(h=new s(t,c),h.attr(k,f)),r.add(h),void t.setItemGraphicEl(c,h)):void r[re](h)})[re](function(t){var e=o[p](t);e&&e.fadeOut(function(){r[re](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(k,n)})},a[re]=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e[re](t)})}):e[F]())},e}),e("echarts/chart/helper/Symbol",[Me,we,"../../util/symbol",o,"../../util/number"],function(t){function e(t){return t instanceof Array||(t=[+t,+t]),t}function i(t,e,i){s.Group.call(this),this.updateData(t,e,i)}function n(t,e){this.parent.drift(t,e)}var r=t(we),a=t("../../util/symbol"),s=t(o),u=t("../../util/number"),h=i[_e];h._createSymbol=function(t,i,r){this[F]();var o=i.hostModel,l=i[_](r,"color"),c=a.createSymbol(t,-.5,-.5,1,1,l);c.attr({z2:100,culling:!0,scale:[0,0]}),c.drift=n;var u=e(i[_](r,"symbolSize"));s.initProps(c,{scale:u},o,r),this._symbolType=t,this.add(c)},h.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},h.getScale=function(){return this.childAt(0).scale},h.highlight=function(){this.childAt(0).trigger("emphasis")},h.downplay=function(){this.childAt(0).trigger(v)},h.setZ=function(t,e){var i=this.childAt(0);i[X]=t,i.z=e},h.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},h.updateData=function(t,i,n){this.silent=!1;var r=t[_](i,"symbol")||"circle",a=t.hostModel,o=e(t[_](i,"symbolSize"));if(r!==this._symbolType)this._createSymbol(r,t,i);else{var l=this.childAt(0);s.updateProps(l,{scale:o},a,i)}this._updateCommon(t,i,o,n),this._seriesModel=a};var f=["itemStyle",v],d=["itemStyle","emphasis"],p=["label",v],m=["label","emphasis"];return h._updateCommon=function(t,i,n,a){var o=this.childAt(0),h=t.hostModel,g=t[_](i,"color");"image"!==o.type&&o.useStyle({strokeNoScale:!0}),a=a||null;var x=a&&a.itemStyle,w=a&&a.hoverItemStyle,M=a&&a.symbolRotate,S=a&&a.symbolOffset,T=a&&a.labelModel,C=a&&a.hoverLabelModel,A=a&&a.hoverAnimation;if(!a||t.hasItemOption){var P=t[c](i);x=P[me](f).getItemStyle(["color"]),w=P[me](d).getItemStyle(),M=P[y]("symbolRotate"),S=P[y]("symbolOffset"),T=P[me](p),C=P[me](m),A=P[y]("hoverAnimation")}else w=r[ne]({},w);var z=o.style;o.rotation=(M||0)*Math.PI/180||0,S&&o.attr(k,[u.parsePercent(S[0],n[0]),u.parsePercent(S[1],n[1])]),o.setColor(g),o[j](x);var I=t[_](i,L);null!=I&&(z[L]=I);for(var D,O,E=t[l].slice();E[ee]&&(D=E.pop(),O=t.getDimensionInfo(D).type,O===b||"time"===O););null!=D&&T[y]("show")?(s.setText(z,T,g),z.text=r.retrieve(h.getFormattedLabel(i,v),t.get(D,i))):z.text="",null!=D&&C[y]("show")?(s.setText(w,C,g),w.text=r.retrieve(h.getFormattedLabel(i,"emphasis"),t.get(D,i))):w.text="";var R=e(t[_](i,"symbolSize"));if(o.off(J).off(K).off("emphasis").off(v),s.setHoverStyle(o,w),A&&h.ifEnableAnimation()){var B=function(){var t=R[1]/R[0];this.animateTo({scale:[Math.max(1.1*R[0],R[0]+3),Math.max(1.1*R[1],R[1]+3*t)]},400,"elasticOut")},N=function(){this.animateTo({scale:R},400,"elasticOut")};o.on(J,B).on(K,N).on("emphasis",B).on(v,N)}},h.fadeOut=function(t){var e=this.childAt(0);this.silent=!0,e.style.text="",s.updateProps(e,{scale:[0,0]},this._seriesModel,this[$],t)},r[G](i,s.Group),i}),e("echarts/chart/line/lineAnimationDiff",[Me],function(){function t(t){return t>=0?1:-1}function e(e,i,n){for(var r,o=e.getBaseAxis(),s=e.getOtherAxis(o),l=o.onZero?0:s.scale[A]()[0],c=s.dim,u="x"===c||c===a?1:0,h=i.stackedOn,f=i.get(c,n);h&&t(h.get(c,n))===t(f);){r=h;break}var d=[];return d[u]=i.get(o.dim,n),d[1-u]=r?r.get(c,n,!0):l,e.dataToPoint(d)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})})[se](function(t,e){i.push({cmd:"=",idx:e,idx1:t})})[re](function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,s){for(var c=i(t,n),u=[],h=[],f=[],d=[],p=[],v=[],m=[],g=s[l],y=0;y<c[ee];y++){var _=c[y],x=!0;switch(_.cmd){case"=":var b=t.getItemLayout(_.idx),w=n.getItemLayout(_.idx1);(isNaN(b[0])||isNaN(b[1]))&&(b=w.slice()),u.push(b),h.push(w),f.push(r[_.idx]),d.push(a[_.idx1]),m.push(n.getRawIndex(_.idx1));break;case"+":var M=_.idx;u.push(o.dataToPoint([n.get(g[0],M,!0),n.get(g[1],M,!0)])),h.push(n.getItemLayout(M).slice()),f.push(e(o,n,M)),d.push(a[M]),m.push(n.getRawIndex(M));break;case"-":var M=_.idx,S=t.getRawIndex(M);S!==M?(u.push(t.getItemLayout(M)),h.push(s.dataToPoint([t.get(g[0],M,!0),t.get(g[1],M,!0)])),f.push(r[M]),d.push(e(s,t,M)),m.push(S)):x=!1}x&&(p.push(_),v.push(v[ee]))}v.sort(function(t,e){return m[t]-m[e]});for(var T=[],C=[],A=[],P=[],L=[],y=0;y<v[ee];y++){var M=v[y];T[y]=u[M],C[y]=h[M],A[y]=f[M],P[y]=d[M],L[y]=p[M]}return{current:T,next:C,stackedOnCurrent:A,stackedOnNext:P,status:L}}}),e("echarts/component/helper/selectableMixin",[Me,we],function(t){var e=t(we);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/util/symbol",[Me,"./graphic","zrender/core/BoundingRect"],function(t){var e=t("./graphic"),i=t("zrender/core/BoundingRect"),r=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,r=e.cy,a=e.width/2,o=e[ce]/2;
|
|
t[n](i,r-o),t.lineTo(i+a,r+o),t.lineTo(i-a,r+o),t.closePath()}}),a=e.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,r=e.cy,a=e.width/2,o=e[ce]/2;t[n](i,r-o),t.lineTo(i+a,r),t.lineTo(i,r+o),t.lineTo(i-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[ce]),o=r/2,s=o*o/(a-o),l=n-a+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,h=Math.sin(c),f=Math.cos(c);t.arc(i,l,o,Math.PI-c,2*Math.PI+c);var d=.6*o,p=.7*o;t.bezierCurveTo(i+u-h*d,l+s+f*d,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-u+h*d,l+s+f*d,i-u,l+s),t.closePath()}}),s=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[ce],r=e.width,a=e.x,o=e.y,s=r/3*2;t[n](a,o),t.lineTo(a+s,o+i),t.lineTo(a,o+i/4*3),t.lineTo(a-s,o+i),t.lineTo(a,o),t.closePath()}}),l={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:a,pin:o,arrow:s,triangle:r},c={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[ce]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[ce]=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[ce]=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[ce]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[ce]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[ce]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[ce]=n}},f={};for(var d in l)f[d]=new l[d];var p=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===u&&(t.textPosition=["50%","40%"],t[R]=z,t.textVerticalAlign=I)},buildPath:function(t,e,i){var n=e.symbolType,r=f[n];"none"!==e.symbolType&&(r||(n="rect",r=f[n]),c[n](e.x,e.y,e.width,e[ce],r.shape),r.buildPath(t,r.shape,i))}}),v=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[h]=t:this.__isEmptyBrush?(e[h]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[h]&&(e[h]=t)),this.dirty(!1)}},m={createSymbol:function(t,n,r,a,o,s){var l=0===t[V]("empty");l&&(t=t.substr(5,1)[xe]()+t.substr(6));var c;return c=0===t[V]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[V]("path://")?e.makePath(t.slice(7),{},new i(n,r,a,o)):new p({shape:{symbolType:t,x:n,y:r,width:a,height:o}}),c.__isEmptyBrush=l,c.setColor=v,c.setColor(s),c}};return m}),e("echarts/chart/line/poly",[Me,"zrender/graphic/Path",be],function(t){function e(t){return isNaN(t[0])||isNaN(t[1])}function i(t,i,r,a,p,v,m,g,y,_,x){for(var b=0,w=r,M=0;a>M;M++){var S=i[w];if(w>=p||0>w)break;if(e(S)){if(x){w+=v;continue}break}if(w===r)t[v>0?n:"lineTo"](S[0],S[1]),u(f,S);else if(y>0){var T=w+v,C=i[T];if(x)for(;C&&e(i[T]);)T+=v,C=i[T];var A=.5,P=i[b],C=i[T];if(!C||e(C))u(d,S);else{e(C)&&!x&&(C=S),o.sub(h,C,P);var L,k;if("x"===_||"y"===_){var z="x"===_?0:1;L=Math.abs(S[z]-P[z]),k=Math.abs(S[z]-C[z])}else L=o.dist(S,P),k=o.dist(S,C);A=k/(k+L),c(d,S,h,-y*(1-A))}s(f,f,g),l(f,f,m),s(d,d,g),l(d,d,m),t.bezierCurveTo(f[0],f[1],d[0],d[1],S[0],S[1]),c(f,S,h,y*A)}else t.lineTo(S[0],S[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[ee];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(be),s=o.min,l=o.max,c=o.scaleAndAdd,u=o.copy,h=[],f=[],d=[];return{Polyline:a[ne]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,n){var a=n.points,o=0,s=a[ee],l=r(a,n.smoothConstraint);if(n.connectNulls){for(;s>0&&e(a[s-1]);s--);for(;s>o&&e(a[o]);o++);}for(;s>o;)o+=i(t,a,o,s,s,1,l.min,l.max,n.smooth,n.smoothMonotone,n.connectNulls)+1}}),Polygon:a[ne]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,n){var a=n.points,o=n.stackedOnPoints,s=0,l=a[ee],c=n.smoothMonotone,u=r(a,n.smoothConstraint),h=r(o,n.smoothConstraint);if(n.connectNulls){for(;l>0&&e(a[l-1]);l--);for(;l>s&&e(a[s]);s++);}for(;l>s;){var f=i(t,a,s,l,l,1,u.min,u.max,n.smooth,c,n.connectNulls);i(t,o,s+f-1,f,l,-1,h.min,h.max,n.stackedOnSmooth,c,n.connectNulls),s+=f+1,t.closePath()}}})}}),e("echarts/component/helper/listComponent",[Me,"../../util/layout","../../util/format",o],function(t){function e(t,e,n){i.positionGroup(t,e.getBoxLayoutParams(),{width:n[ve](),height:n[pe]()},e.get("padding"))}var i=t("../../util/layout"),n=t("../../util/format"),r=t(o);return{layout:function(t,n,r){var a=i.getLayoutRect(n.getBoxLayoutParams(),{width:r[ve](),height:r[pe]()},n.get("padding"));i.box(n.get("orient"),t,n.get("itemGap"),a.width,a[ce]),e(t,n,r)},addBackground:function(t,e){var i=n.normalizeCssArray(e.get("padding")),a=t[D](),o=e.getItemStyle(["color",L]);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[ce]+i[0]+i[2]},style:o,silent:!0,z2:-1});r.subPixelOptimizeRect(s),t.add(s)}}}),e("echarts/component/tooltip/TooltipContent",[Me,we,"zrender/tool/color","zrender/core/event","../../util/format","zrender/core/env"],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return s.map(p,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontSize"),n=t[O]();return n&&e.push("color:"+n),e.push("font:"+t[E]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),h(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function n(t){t=t;var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t[me](B),c=t.get("padding");return r&&n.push(e(r)),o&&(d[de]?n.push("background-Color:"+o):(n.push("background-Color:#"+l.toHex(o)),n.push("filter:alpha(opacity=70)"))),h(["width","color",a],function(e){var i="border-"+e,r=f(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(s)),null!=c&&n.push("padding:"+u.normalizeCssArray(c).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document[S]("div"),n=e.getZr();this.el=i,this._x=e[ve]()/2,this._y=e[pe]()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(!r.enterable){var i=n.handler;c.normalizeEvent(t,e),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},o(i,t)}function o(t,e){function i(t){n(t[Q])&&t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i.parentNode}}c.addEventListener(e,"touchstart",i),c.addEventListener(e,"touchmove",i),c.addEventListener(e,"touchend",i)}var s=t(we),l=t("zrender/tool/color"),c=t("zrender/core/event"),u=t("../../util/format"),h=s.each,f=u.toCamelCase,d=t("zrender/core/env"),p=["","-webkit-","-moz-","-o-"],v="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";return r[_e]={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[k]&&"absolute"!==e[k]&&(i[k]="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=v+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(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/chart/pie/labelLayout",[Me,"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][ce])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][ce]));n--);}function c(t,e,i,n,r,a){for(var o=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t[ee];l>s;s++)if(t[s][k]!==z){var c=Math.abs(t[s].y-n),u=t[s].len,h=t[s].len2,f=r+u>c?Math.sqrt((r+u+h)*(r+u+h)-c*c):Math.abs(t[s].x-i);e&&f>=o&&(f=o-10),!e&&o>=f&&(f=o+10),t[s].x=i+f*a,o=f}}t.sort(function(t,e){return t.y-e.y});for(var u,h=0,f=t[ee],d=[],p=[],v=0;f>v;v++)u=t[v].y-h,0>u&&s(v,f,-u,r),h=t[v].y+t[v][ce];0>o-h&&l(f-1,h-o);for(var v=0;f>v;v++)t[v].y>=i?p.push(t[v]):d.push(t[v]);c(d,!1,e,i,n,r),c(p,!0,e,i,n,r)}function i(t,i,n,r,a,o){for(var s=[],l=[],c=0;c<t[ee];c++)t[c].x<i?s.push(t[c]):l.push(t[c]);e(l,i,n,r,1,a,o),e(s,i,n,r,-1,a,o);for(var c=0;c<t[ee];c++){var u=t[c].linePoints;if(u){var h=u[1][0]-u[2][0];u[2][0]=t[c].x<i?t[c].x+3:t[c].x-3,u[1][1]=u[2][1]=t[c].y,u[1][0]=u[2][0]+h}}}var n=t("zrender/contain/text");return function(t,e,r,a){var o,s,l=t[oe](),h=[],f=!1;l.each(function(i){var r,a,d,p,m=l.getItemLayout(i),g=l[c](i),y=g[me]("label.normal"),_=y.get(k)||g.get("label.emphasis.position"),b=g[me]("labelLine.normal"),w=b.get(ee),M=b.get("length2"),S=(m.startAngle+m.endAngle)/2,T=Math.cos(S),C=Math.sin(S);o=m.cx,s=m.cy;var A=_===u||"inner"===_;if(_===z)r=m.cx,a=m.cy,p=z;else{var P=(A?(m.r+m.r0)/2*T:m.r*T)+o,L=(A?(m.r+m.r0)/2*C:m.r*C)+s;if(r=P+3*T,a=L+3*C,!A){var I=P+T*(w+e-m.r),O=L+C*(w+e-m.r),R=I+(0>T?-1:1)*M,N=O;r=R+(0>T?-5:5),a=N,d=[[P,L],[I,O],[R,N]]}p=A?z:T>0?"left":"right"}var F=y[me](B)[E](),G=y.get("rotate")?0>T?-S+Math.PI:-S:0,V=t.getFormattedLabel(i,v)||l[x](i),H=n[D](V,F,p,"top");f=!!G,m.label={x:r,y:a,position:_,height:H[ce],len:w,len2:M,linePoints:d,textAlign:p,verticalAlign:"middle",font:F,rotation:G},A||h.push(m.label)}),!f&&t.get("avoidLabelOverlap")&&i(h,o,s,e,r,a)}}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var Se=t("echarts");return Se.graphic=t("echarts/util/graphic"),Se.number=t("echarts/util/number"),Se.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("zrender/vml/vml"),Se}); |